@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- 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/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/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/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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.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/promisequeue.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 +2 -2
- 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/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.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/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.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/aicore/utils/scrollmanager.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2ed2b1=_0x43e0;(function(_0x211fbd,_0x132ee2){const _0x2055ba=_0x43e0,_0x2714d8=_0x211fbd();while(!![]){try{const _0x2f3a98=parseInt(_0x2055ba(0x2fb))/0x1+parseInt(_0x2055ba(0x1d6))/0x2*(parseInt(_0x2055ba(0x258))/0x3)+-parseInt(_0x2055ba(0x21a))/0x4*(-parseInt(_0x2055ba(0x2b0))/0x5)+-parseInt(_0x2055ba(0x2b6))/0x6+parseInt(_0x2055ba(0x1e3))/0x7*(-parseInt(_0x2055ba(0x228))/0x8)+parseInt(_0x2055ba(0x203))/0x9*(-parseInt(_0x2055ba(0x1b3))/0xa)+parseInt(_0x2055ba(0x2e8))/0xb*(parseInt(_0x2055ba(0x27d))/0xc);if(_0x2f3a98===_0x132ee2)break;else _0x2714d8['push'](_0x2714d8['shift']());}catch(_0x2bc762){_0x2714d8['push'](_0x2714d8['shift']());}}}(_0x37ff,0x6ca28));import{ContextPlugin as _0x3df393,Editor as _0x458652}from'ckeditor5/src/core.js';import{BodyCollection as _0x557983}from'ckeditor5/src/ui.js';import{CKEditorError as _0x56335c,logError as _0x5678bd,scrollViewportToShowTarget as _0x168f9e,uid as _0x3c32fe}from'ckeditor5/src/utils.js';import{AIConnector as _0x184352}from'../aicore/aiconnector.js';import{AITabs as _0x19b00d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x38cc37}from'./model/aichatconversation.js';import{getTranslation as _0x293bcb}from'../aicore/utils/common-translations.js';function _0x43e0(_0x54c9f0,_0x292144){const _0x37ffed=_0x37ff();return _0x43e0=function(_0x43e08e,_0x4736c4){_0x43e08e=_0x43e08e-0x199;let _0x11ac07=_0x37ffed[_0x43e08e];return _0x11ac07;},_0x43e0(_0x54c9f0,_0x292144);}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x46d8a9}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x1176cb}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0xc38e}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x5aabc3}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x55ea8c,DATA_ID_MODEL_ATTRIBUTE as _0xf63df4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x594803,getOperationsFromReply as _0x3706be}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x260592,getMinimalSelection as _0x3d329c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x23f00f,_DetachOperation as _0x2eb90c}from'ckeditor5/src/engine.js';function _0x37ff(){const _0x2a992d=['getConversation','reasoningFinished','addFeedItemUserMessage','replies','resetConversationTitle','fetchConversation','AI_CHAT_UNTITLED_CONVERSATION','isPremiumPlugin','addOperation','cloneNode','accepted','scrollFeedToSuggestion','addFeedItemError','_startConversationSafely','updateResourceState','ai-no-track-changes','AI_CHAT_UNABLE_TO_START_CONVERSATION','contextItemRemoved','webSearchStarted','ai-chat-context-unsupported-type','_setIsMaximized','range','15rWKWBm','upsertAIChatRating','_aiEditing','DocumentCompare','toggleSuggestionDisplayMode','ai-chat-context-unsupported-file-type','4882740cfNaiU','Liked\x20response','addSelectionToContext','destroy','getContentParts','contextItems','contextItem','$graveyard','undo','changes','interactionId','removeFromContext','mouseOverSuggestion','ai-chat-file-upload-failed','ai.chat.models.displayedModels','viewRangeToDom','_insertSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemAdded','updateCurrentDocumentInContext','content','modification-delta','conversationInitialized','setChangeGroupState','anchorId','chat','current-document','_removeFromContext','delete','batch','AIChatController','filter','replyContentUpdated','toViewRange','getPath','addSelectionToChatContext','open','addContextOptionsChanged','afterInit','webSearchFinished','_stopLastInteraction','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','view','data-id','interactionDestroyed','ai-chat-missing-channel-id','lastInteraction','log','setIsUploadInProgress','plugins','17210237bolsvo','_toggleReasoning','_balloonShowDiff','uploadProgressChanged','updateCapabilities','AI_CHAT_GENERIC_ERROR','AI_BALLOON_HEADER_TITLE','add','ai-chat-source-resources-load-failed','full','_applySuggestion','index','reasoningStarted','showFakeVisualSelection','_flushLastInteractionUI','markers','revert','loadConversation','abortPromptStream','509951UjTCXT','getFirstRange','updateConversationTitle','resourceId','children','howMany','removeSelectionFromChatContext','rejectSuggestion','error','setConversationTitle','replyChangeGroupStateUpdated','rootName','pending','model','AI_CHAT_ABORTED_MESSAGE','ai-chat-context-file-too-large','unshift','showDiff','remove','version','addFeedItemAIReply','get','showPrevious','_openBalloonFor','AI_CHAT_CONTEXT_FILE_TOO_LARGE','replyCreated','close','main','getDiff','AI_CHAT_CONTEXT_INVALID_DATA','changeGroups','isUploadInProgress','sourcePosition','documentContextContent','_updateRatings','toggleWebSearch','interactionStarted','sources','push','getInteractionAndReplyById','redo','maxOffset','130tiwQYS','ai.chat.models.defaultModelId','ai-chat-resource-load-failed','_aiChatUi','attachToDom','_handleUIUserMessage','end','_updateReplyContent','startsWith','state','removed','setFeedItemRenderingStrategy','updateContent','ai-chat-controller-mouse-over','AI_CHAT_INVALID_REQUEST','applySuggestion','activeConversation','updateFeedItemAIReplySources','getAttribute','sendUserMessage','outdated','ai-chat-url-upload-failed','addFilesToContext','TrackChanges','source','ai-chat-controller-no-active-conversation','_createFromRanges','focusPromptInput','addDocumentToContext','rejected','_integrateEditor','slice','stop','_removeAISelectionMarkers','interactionCreated','8486KPvtYf','like','toString','uid','setModel','ai-chat-conversation-init-failed','hideFakeVisualSelection','parse','selection','ai-chat-invalid-request','createPositionFromPath','addFileToContext','addContextItem','26551FLyMSq','root','init','handleRemovedConversation','replyId','Showing\x20conversation\x20history...','addResourceToContext','new','getMarkersGroup','pluginName','setSelectedModel','type','document','sendMessage','Disliked\x20response','contextSent','isCurrentDocumentInConversation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','resize','stopListening','resizeTabs','setIsMaximized','editors','streaming','enableControls','clearPendingContextUI','addCurrentDocumentToContext','addUrlToContext','AIConnector','getChildAtOffset','setContextItemLoading','showNext','432612nEopJS','getDocumentContext','history','sourceResourcesLoaded','ai.chat.context','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','set','indexOf','stopInteraction','hasChanges','dialogClosed','mapper','_showConversationHistory','config','load','removeSelectionFromContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_scrollToSuggestionRange','modelSelected','start','createPositionAt','AITabs','_previewedChangeGroup','33340NYPpLc','context','map','ai.availableReplyActions','isLoading','nextSibling','domConverter','mouseLeaveSuggestion','activateTab','ai-chat-context-file-too-many-pages','contextItemLoadingEnded','ai-conversation-','updateFeedItemAIReplyContent','isOpen','1216DyPWcI','createConversation','getSelectionText','getOperations','from','resourceStateChanged','isDisabled','AI_CHAT_RESOURCE_LOAD_FAILED','text-delta','finishInteraction','_logError','ai-chat-conversation-start-failed','has','interactionFinished','find','getDocumentData','AIEditing','change','applyOperation','forEach','insertSuggestion','getChildren','setAddContextOptions','addFeedItemStaticMessage','getReply','data','resources','editing','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','collaboration.channelId','marker','isStarted','locale','startAutoScroll','ai-request-aborted','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','startInteraction','isModelAvailable','_applyOperationsAsSuggestions','requires','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplySuggestionPartState','ready','loadSourceResources','removeMarker','message','ai-chat-context-form-data-size-limits-exceeded','isOfficialPlugin','255rsiMqv','closeSourceResourceBalloon','dislike','_bodyCollection','clearConversationContextUI','detachFromDom','sourceId','messageId','setConversationContext','_aiChatModels','resizedTabs','getInteraction','capabilitiesUpdated','createRange','selectModel','getTransformedByOperation','uiId','query','handleUserInteraction','getRoot','indexes','_aiConnector','_getDocumentRangeForReplyChanges','removeContextItem','Undo','addFeedInteractionHeader','resetMessageInput','isCurrentDocumentInContext','getGroupId','baseVersion','alignToTop','addFeedItemAISuggestion','isDocumentOperation','AIChatUI','options','getRanges','findIndex','12ZMhSfu','ai-chat-conversation-not-found','resource','listenTo','removeFeedInteraction','partIndex','toggleLoadingSkeleton','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getChild','selectedModel','path','startConversation','toggleReasoning','TrackChangesEditing','node','populateSourceResourceBalloon','setLoadingMessage','_batchToChanges','disableControls','split','_handleStartConversation','showChangeInText','static','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','isInContext','_toggleWebSearch','length','ai-chat-context-invalid-data','commands'];_0x37ff=function(){return _0x2a992d;};return _0x37ff();}import{findOne as _0x5e8914,getAttribute as _0x1a7623,serialize as _0x42c957,Document as _0x5bc963,findByAttribute as _0x49e6f5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x49ff7c}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3bc644}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4b5329}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3df393{[_0x2ed2b1(0x2b2)];[_0x2ed2b1(0x26d)];[_0x2ed2b1(0x1b6)];[_0x2ed2b1(0x261)];[_0x2ed2b1(0x28e)]=new Map();[_0x2ed2b1(0x219)]=null;[_0x2ed2b1(0x2ea)]=!0x1;[_0x2ed2b1(0x25b)];static get[_0x2ed2b1(0x24f)](){return[_0x184352,_0x4b5329,_0x55ea8c];}static get[_0x2ed2b1(0x1ec)](){const _0x479988=_0x2ed2b1;return _0x479988(0x2d4);}static get[_0x2ed2b1(0x257)](){return!0x0;}static get[_0x2ed2b1(0x2a1)](){return!0x0;}[_0x2ed2b1(0x1e5)](){const _0x23f62a=_0x2ed2b1;this[_0x23f62a(0x25b)]=new _0x557983(this[_0x23f62a(0x21b)][_0x23f62a(0x248)]),this[_0x23f62a(0x25b)][_0x23f62a(0x1b7)](),this[_0x23f62a(0x26d)]=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x1ff)),this[_0x23f62a(0x1b6)]=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x279)),this[_0x23f62a(0x2b2)]=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x238)),this[_0x23f62a(0x261)]=new _0xc38e({'connector':this[_0x23f62a(0x26d)],'availableModels':this[_0x23f62a(0x21b)][_0x23f62a(0x210)][_0x23f62a(0x19e)](_0x23f62a(0x2c4)),'defaultModelId':this[_0x23f62a(0x21b)][_0x23f62a(0x210)][_0x23f62a(0x19e)](_0x23f62a(0x1b4)),'locale':this[_0x23f62a(0x21b)][_0x23f62a(0x248)]});const _0xc3fb6d=this[_0x23f62a(0x21b)][_0x23f62a(0x2e7)][_0x23f62a(0x19e)](_0x23f62a(0x218));this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x288),()=>{const _0x28dffe=_0x23f62a;this[_0x28dffe(0x2a7)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1c6),(_0x41d517,_0x41e6c8)=>{const _0x30888c=_0x23f62a;this[_0x30888c(0x1b8)]({'userMessage':_0x41e6c8});}),this[_0x23f62a(0x280)](_0xc3fb6d,_0x23f62a(0x262),(_0x2fc106,_0x217f29)=>{const _0x2d4207=_0x23f62a;this[_0x2d4207(0x2ae)](_0x217f29);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1f7),()=>{const _0x58c22d=_0x23f62a;_0xc3fb6d[_0x58c22d(0x1f5)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x2fa),async()=>{const _0x4636c9=_0x23f62a;await this[_0x4636c9(0x2de)](),await this[_0x4636c9(0x2f6)](),this[_0x4636c9(0x301)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1cf),()=>{const _0x2c69c0=_0x23f62a;this[_0x2c69c0(0x1c3)]?.[_0x2c69c0(0x1fd)](_0x293bcb(this[_0x2c69c0(0x21b)][_0x2c69c0(0x248)],_0x2c69c0(0x2c7)));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1e1),(_0x20a6d6,_0x4fce8d)=>{const _0x5a3999=_0x23f62a;this[_0x5a3999(0x1c3)]?.[_0x5a3999(0x1c9)](Array[_0x5a3999(0x22c)](_0x4fce8d));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1fe),(_0x25b2a5,_0x4a957d)=>{const _0x1e0a60=_0x23f62a;this[_0x1e0a60(0x1c3)]?.[_0x1e0a60(0x1fe)](_0x4a957d);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1e9),(_0xf96bbf,_0x53d3ac)=>{const _0x36f3a9=_0x23f62a;this[_0x36f3a9(0x1c3)]?.[_0x36f3a9(0x1e9)](_0x53d3ac[_0x36f3a9(0x1cb)],_0x53d3ac[_0x36f3a9(0x27f)]);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x26f),(_0x5c086d,_0x648062)=>{const _0x1e8d25=_0x23f62a;this[_0x1e8d25(0x2d1)](_0x648062);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x253),(_0x1fface,_0x396fa7)=>{const _0x53d9e4=_0x23f62a;this[_0x53d9e4(0x1c3)]?.[_0x53d9e4(0x253)](_0x396fa7[_0x53d9e4(0x25e)],_0x396fa7[_0x53d9e4(0x269)],_0x396fa7[_0x53d9e4(0x1d9)]);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1ac),()=>{const _0x18f7ed=_0x23f62a;this[_0x18f7ed(0x296)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x289),()=>{const _0x3e5050=_0x23f62a;this[_0x3e5050(0x2e9)]();}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x266),(_0x413ed0,_0x3a4dbe)=>{const _0x57f85f=_0x23f62a;this[_0x57f85f(0x1c3)]?.[_0x57f85f(0x1da)](_0x3a4dbe);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1d7),(_0x1b17c6,{replyId:_0x1f1651})=>{const _0x478583=_0x23f62a;console[_0x478583(0x2e5)](_0x478583(0x2b7),_0x1f1651);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x25a),(_0x47bff4,{replyId:_0x4676ce})=>{const _0x3af815=_0x23f62a;console[_0x3af815(0x2e5)](_0x3af815(0x1f1),_0x4676ce);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x23c),(_0x1a8452,_0x102d85)=>{const _0x25d497=_0x23f62a;this[_0x25d497(0x21b)][_0x25d497(0x2e7)][_0x25d497(0x19e)](_0x4b5329)[_0x25d497(0x1a3)](),this[_0x25d497(0x2c6)](_0x102d85);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x292),(_0x1cf627,{replyId:_0x1b261a,partIndex:_0x110f7b})=>{const _0x4e9f6f=_0x23f62a;this[_0x4e9f6f(0x2ea)]=this[_0x4e9f6f(0x1b6)][_0x4e9f6f(0x19a)],this[_0x4e9f6f(0x1a0)](_0x1b261a,_0x110f7b);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x2c2),(_0xfab209,{replyId:_0x5535f5,partIndex:_0x1d18ae})=>{const _0x674428=_0x23f62a,_0x3da3c7=this[_0x674428(0x26e)](_0x5535f5,_0x1d18ae);_0x3da3c7&&_0x674428(0x2bd)!=_0x3da3c7[_0x674428(0x2af)][_0x674428(0x1e4)][_0x674428(0x306)]&&this[_0x674428(0x2b2)][_0x674428(0x2f5)]([_0x3da3c7[_0x674428(0x2af)]],_0x674428(0x1c0));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x221),()=>{const _0x3e41da=_0x23f62a;this[_0x3e41da(0x2b2)][_0x3e41da(0x1dc)](_0x3e41da(0x1c0));}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x1c2),(_0x11bc06,_0x101f3e)=>{const _0x35fd3a=_0x23f62a;this[_0x35fd3a(0x21b)][_0x35fd3a(0x2e7)][_0x35fd3a(0x19e)](_0x4b5329)[_0x35fd3a(0x1a3)](),this[_0x35fd3a(0x2f2)](_0x101f3e);}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x2b4),async(_0x3b4237,{replyId:_0x2c18d5,showDiff:_0x302aaa})=>{const _0x3ea5e1=_0x23f62a,{reply:_0x12e57e}=this[_0x3ea5e1(0x1b0)](_0x2c18d5),_0x815810=_0x12e57e[_0x3ea5e1(0x2ba)]({'showDiff':_0x302aaa});await this[_0x3ea5e1(0x1b6)][_0x3ea5e1(0x250)]({'id':_0x12e57e['id'],'parts':_0x815810,'renderingStrategy':_0x3ea5e1(0x293)});}),this[_0x23f62a(0x280)](this[_0x23f62a(0x1b6)],_0x23f62a(0x302),(_0x2f5401,{replyId:_0x2d3e2d,partIndex:_0x3e0920})=>{const _0x178945=_0x23f62a;this[_0x178945(0x219)]?.[_0x178945(0x1e7)]==_0x2d3e2d&&this[_0x178945(0x219)]?.[_0x178945(0x282)]==_0x3e0920&&this[_0x178945(0x21b)][_0x178945(0x2e7)][_0x178945(0x19e)](_0x4b5329)[_0x178945(0x1a3)]();const {reply:_0xff4ddc}=this[_0x178945(0x1b0)](_0x2d3e2d);_0xff4ddc[_0x178945(0x2cd)](_0x3e0920,_0x178945(0x1d0)),this[_0x178945(0x2b2)][_0x178945(0x1dc)](_0x178945(0x1c0));});}async[_0x2ed2b1(0x2dc)](){const _0xc7fa35=_0x2ed2b1;this[_0xc7fa35(0x21b)]instanceof _0x458652?this[_0xc7fa35(0x1d1)](this[_0xc7fa35(0x21b)]):this[_0xc7fa35(0x280)](this[_0xc7fa35(0x21b)][_0xc7fa35(0x1f9)],_0xc7fa35(0x2ef),(_0x5634e2,_0x2a5ec0)=>{const _0x3cbacc=_0xc7fa35;_0x2a5ec0['on'](_0x3cbacc(0x252),()=>{const _0x491bd8=_0x3cbacc;this[_0x491bd8(0x1d1)](_0x2a5ec0);});}),await this[_0xc7fa35(0x2a7)]();}[_0x2ed2b1(0x2b9)](){const _0x44869c=_0x2ed2b1;this[_0x44869c(0x25b)][_0x44869c(0x25d)](),super[_0x44869c(0x2b9)]();}[_0x2ed2b1(0x2c6)](_0x3c283b){const _0x391a56=_0x2ed2b1,_0x14f375=_0x5aabc3(this[_0x391a56(0x21b)]);if(!_0x14f375[_0x391a56(0x2e7)][_0x391a56(0x234)](_0x391a56(0x1ca)))throw new _0x56335c(_0x391a56(0x2a9),null);const _0x59fe37=this[_0x391a56(0x21b)][_0x391a56(0x2e7)][_0x391a56(0x19e)](_0x391a56(0x2b3)),{reply:_0x3e52ca,interaction:_0xa44f71}=this[_0x391a56(0x1b0)](_0x3c283b[_0x391a56(0x1e7)]),_0x392ab3=this[_0x391a56(0x26e)](_0x3c283b[_0x391a56(0x1e7)],_0x3c283b[_0x391a56(0x282)]),_0x5b9b8c=void 0x0!==_0x3c283b[_0x391a56(0x282)]?[_0x3e52ca[_0x391a56(0x1a7)][_0x3c283b[_0x391a56(0x282)]]]:_0x3e52ca[_0x391a56(0x1a7)][_0x391a56(0x2d5)](_0xd14d83=>_0x391a56(0x307)==_0xd14d83[_0x391a56(0x1bc)]),_0x3954f0=_0x5b9b8c[_0x391a56(0x21c)](_0x377e02=>_0x3e52ca[_0x391a56(0x1a7)][_0x391a56(0x20a)](_0x377e02));if(!_0x392ab3||_0x391a56(0x2bd)==_0x392ab3[_0x391a56(0x2af)][_0x391a56(0x1e4)][_0x391a56(0x306)])return void _0x3954f0[_0x391a56(0x23b)](_0x40be16=>_0x3e52ca[_0x391a56(0x2cd)](_0x40be16,_0x391a56(0x1c7)));_0x3954f0[_0x391a56(0x23b)](_0x24e085=>_0x3e52ca[_0x391a56(0x2cd)](_0x24e085,_0x391a56(0x2a4)));const _0x43ba1d=_0x3706be({'editor':_0x14f375,'reply':_0x3e52ca,'interaction':_0xa44f71,'groups':_0x5b9b8c,'transform':!0x0,'documentCompare':_0x59fe37,'documentCompareOptions':{'anchor':_0x391a56(0x1a4),'markDeletions':!0x0}});let _0x44c0c4;_0x392ab3&&this[_0x391a56(0x214)](_0x392ab3[_0x391a56(0x2af)]),_0x14f375[_0x391a56(0x308)][_0x391a56(0x239)](_0x17c4ee=>{const _0x4331c4=_0x391a56;_0x44c0c4=_0x17c4ee[_0x4331c4(0x2d3)],_0x14f375[_0x4331c4(0x2e7)][_0x4331c4(0x19e)](_0x4331c4(0x28a))[_0x4331c4(0x24e)](_0x43ba1d),this[_0x4331c4(0x2b2)][_0x4331c4(0x1dc)](_0x4331c4(0x1c0));}),this[_0x391a56(0x28e)][_0x391a56(0x209)](_0x44c0c4,{'interactionId':_0xa44f71['id'],'replyId':_0x3e52ca['id'],'indexes':_0x3954f0[_0x391a56(0x1d2)]()}),this[_0x391a56(0x1ab)](_0x3e52ca);}[_0x2ed2b1(0x2f2)](_0x4434fd){const _0x33ee6f=_0x2ed2b1,_0x201ca5=_0x5aabc3(this[_0x33ee6f(0x21b)]),_0x33447c=this[_0x33ee6f(0x21b)][_0x33ee6f(0x2e7)][_0x33ee6f(0x19e)](_0x55ea8c),{reply:_0x55c6f2,interaction:_0x5b2d91}=this[_0x33ee6f(0x1b0)](_0x4434fd[_0x33ee6f(0x1e7)]),_0x35862b=this[_0x33ee6f(0x26e)](_0x4434fd[_0x33ee6f(0x1e7)],_0x4434fd[_0x33ee6f(0x282)]),_0x6d57e8=void 0x0!==_0x4434fd[_0x33ee6f(0x282)]?[_0x55c6f2[_0x33ee6f(0x1a7)][_0x4434fd[_0x33ee6f(0x282)]]]:_0x55c6f2[_0x33ee6f(0x1a7)][_0x33ee6f(0x2d5)](_0x34fc10=>_0x33ee6f(0x307)==_0x34fc10[_0x33ee6f(0x1bc)]),_0x5ec119=_0x6d57e8[_0x33ee6f(0x21c)](_0x26e1c5=>_0x55c6f2[_0x33ee6f(0x1a7)][_0x33ee6f(0x20a)](_0x26e1c5));if(!_0x35862b||_0x33ee6f(0x2bd)==_0x35862b[_0x33ee6f(0x2af)][_0x33ee6f(0x1e4)][_0x33ee6f(0x306)])return void _0x5ec119[_0x33ee6f(0x23b)](_0x2413a8=>_0x55c6f2[_0x33ee6f(0x2cd)](_0x2413a8,_0x33ee6f(0x1c7)));_0x5ec119[_0x33ee6f(0x23b)](_0x1f7e24=>_0x55c6f2[_0x33ee6f(0x2cd)](_0x1f7e24,_0x33ee6f(0x2a4)));const _0x4c2166=_0x3706be({'editor':_0x201ca5,'reply':_0x55c6f2,'interaction':_0x5b2d91,'groups':_0x6d57e8,'transform':!0x0,'documentCompare':_0x33447c,'documentCompareOptions':{'anchor':_0x33ee6f(0x1a4),'markDeletions':!0x1}});let _0x1cb82f;_0x35862b&&this[_0x33ee6f(0x214)](_0x35862b[_0x33ee6f(0x2af)]),_0x201ca5[_0x33ee6f(0x308)][_0x33ee6f(0x239)](_0x467e15=>{const _0x3b1cf9=_0x33ee6f;_0x1cb82f=_0x467e15[_0x3b1cf9(0x2d3)];for(const _0x275b27 of _0x4c2166)_0x275b27[_0x3b1cf9(0x275)]=_0x201ca5[_0x3b1cf9(0x308)][_0x3b1cf9(0x1ef)][_0x3b1cf9(0x19c)],_0x594803(_0x201ca5,_0x275b27),_0x467e15[_0x3b1cf9(0x2d3)][_0x3b1cf9(0x2a2)](_0x275b27),_0x201ca5[_0x3b1cf9(0x308)][_0x3b1cf9(0x23a)](_0x275b27);}),this[_0x33ee6f(0x28e)][_0x33ee6f(0x209)](_0x1cb82f,{'interactionId':_0x5b2d91['id'],'replyId':_0x55c6f2['id'],'indexes':_0x5ec119[_0x33ee6f(0x1d2)]()}),this[_0x33ee6f(0x1ab)](_0x55c6f2);}[_0x2ed2b1(0x1a0)](_0x4f09f1,_0x160da7){const _0x5a6448=_0x2ed2b1,_0x1ba34a=_0x5aabc3(this[_0x5a6448(0x21b)]),_0x1e9764=this[_0x5a6448(0x26e)](_0x4f09f1,_0x160da7),_0x5e06b4=this[_0x5a6448(0x21b)][_0x5a6448(0x2e7)][_0x5a6448(0x19e)](_0x4b5329);if(!_0x1e9764)return void _0x5e06b4[_0x5a6448(0x1a3)]();const {range:_0x10632a,currentIndex:_0x1dad21}=_0x1e9764;if(_0x5a6448(0x2bd)==_0x10632a[_0x5a6448(0x1e4)][_0x5a6448(0x306)]){const {reply:_0xfbc672}=this[_0x5a6448(0x1b0)](_0x4f09f1);return _0xfbc672[_0x5a6448(0x2cd)](_0x1dad21,_0x5a6448(0x1c7)),void _0x5e06b4[_0x5a6448(0x1a3)]();}if(this[_0x5a6448(0x219)]?.[_0x5a6448(0x1e7)]==_0x4f09f1&&this[_0x5a6448(0x219)]?.[_0x5a6448(0x282)]==_0x1dad21)return;this[_0x5a6448(0x1f6)](_0x5e06b4),this[_0x5a6448(0x219)]={'replyId':_0x4f09f1,'partIndex':_0x1dad21};let _0x5848f9=_0x1ba34a[_0x5a6448(0x210)][_0x5a6448(0x19e)](_0x5a6448(0x21d))||[..._0x1176cb];_0x1ba34a[_0x5a6448(0x2e7)][_0x5a6448(0x234)](_0x5a6448(0x1ca))||(_0x5848f9=_0x5848f9[_0x5a6448(0x2d5)](_0x279915=>_0x5a6448(0x23c)!=_0x279915));const _0x1d556e=new _0x3bc644(_0x1ba34a[_0x5a6448(0x248)],{'showDiff':this[_0x5a6448(0x2ea)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x5a6448(0x2f1)},'hideHeader':!0x0,'availableActions':_0x5848f9},this[_0x5a6448(0x25b)]);this[_0x5a6448(0x1f6)](_0x1d556e);const {reply:_0x5bf715}=this[_0x5a6448(0x1b0)](_0x4f09f1),_0x5ce60b=_0x5bf715[_0x5a6448(0x2ba)]({'showDiff':this[_0x5a6448(0x2ea)]})[_0x5a6448(0x2d5)](_0x770478=>_0x770478[_0x5a6448(0x20c)]),_0x314d88=_0x5ce60b[_0x5a6448(0x27c)](_0x5c3e6c=>_0x5c3e6c[_0x5a6448(0x2f3)]==_0x1dad21);if(-0x1==_0x314d88)return;const _0x5a794d=_0x5ce60b[_0x314d88],_0x5fd359=_0x5ce60b['at']((_0x314d88-0x1)%_0x5ce60b[_0x5a6448(0x297)])?.[_0x5a6448(0x2f3)],_0x193ae4=_0x5ce60b['at']((_0x314d88+0x1)%_0x5ce60b[_0x5a6448(0x297)])?.[_0x5a6448(0x2f3)];_0x1d556e[_0x5a6448(0x1bf)]({'parts':[_0x5a794d],'renderingStrategy':_0x5a6448(0x293)});const _0x5b1049=_0x1dad21!==_0x5fd359;this[_0x5a6448(0x214)](_0x10632a,!0x0),_0x5e06b4[_0x5a6448(0x2da)]({'index':_0x1dad21,'title':_0x293bcb(this[_0x5a6448(0x21b)][_0x5a6448(0x248)],_0x5a6448(0x2ee),(_0x314d88+0x1)[_0x5a6448(0x1d8)]()),'icon':_0x49ff7c,'mainView':_0x1d556e,'showRotator':_0x5b1049,'showApplyButton':!0x0,'showSuggestButton':_0x1ba34a[_0x5a6448(0x2e7)][_0x5a6448(0x234)](_0x5a6448(0x1ca)),'ranges':[_0x10632a]}),this[_0x5a6448(0x1b6)][_0x5a6448(0x2a5)](_0x4f09f1,_0x1dad21),this[_0x5a6448(0x280)](_0x1d556e,_0x5a6448(0x2b4),(_0x580659,{showDiff:_0x198472})=>{const _0x40c5c8=_0x5a6448;this[_0x40c5c8(0x2ea)]=_0x198472;const {reply:_0x43ad90}=this[_0x40c5c8(0x1b0)](_0x4f09f1),_0x64bd48=_0x43ad90[_0x40c5c8(0x2ba)]({'showDiff':_0x198472,'groupIndex':_0x1dad21});_0x1d556e[_0x40c5c8(0x1bf)]({'parts':_0x64bd48,'renderingStrategy':_0x40c5c8(0x293)});}),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x1c2),()=>{const _0x2bb1a4=_0x5a6448;this[_0x2bb1a4(0x2f2)]({'replyId':_0x4f09f1,'partIndex':_0x1dad21}),_0x5b1049?this[_0x2bb1a4(0x1a0)](_0x4f09f1,_0x193ae4):_0x5e06b4[_0x2bb1a4(0x1a3)]();}),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x23c),()=>{const _0x2b1746=_0x5a6448;this[_0x2b1746(0x2c6)]({'replyId':_0x4f09f1,'partIndex':_0x1dad21}),_0x5b1049?this[_0x2b1746(0x1a0)](_0x4f09f1,_0x193ae4):_0x5e06b4[_0x2b1746(0x1a3)]();}),_0x5b1049&&(this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x202),()=>{const _0x73aa5e=_0x5a6448;this[_0x73aa5e(0x1a0)](_0x4f09f1,_0x193ae4);}),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x19f),()=>{const _0x113de9=_0x5a6448;this[_0x113de9(0x1a0)](_0x4f09f1,_0x5fd359);})),this[_0x5a6448(0x280)](_0x5e06b4,_0x5a6448(0x20d),()=>{const _0x579174=_0x5a6448;this[_0x579174(0x1f6)](_0x5e06b4),this[_0x579174(0x1f6)](_0x1d556e),this[_0x579174(0x219)]=null;});}[_0x2ed2b1(0x26e)](_0x16a63d,_0x1c7d60){const _0x1227ca=_0x2ed2b1,_0x56782a=_0x5aabc3(this[_0x1227ca(0x21b)]),{reply:_0x4a2935,interaction:_0xec6865}=this[_0x1227ca(0x1b0)](_0x16a63d),_0x15e78e=_0x4a2935[_0x1227ca(0x1a7)][_0x1227ca(0x2d5)](_0x218aff=>_0x1227ca(0x307)==_0x218aff[_0x1227ca(0x1bc)]),_0x4e847b=_0x15e78e[_0x1227ca(0x21c)](_0x3c458d=>_0x4a2935[_0x1227ca(0x1a7)][_0x1227ca(0x20a)](_0x3c458d));void 0x0===_0x1c7d60&&(_0x1c7d60=_0x4e847b[0x0]);const _0x5f2433=_0x4e847b[_0x1227ca(0x20a)](_0x1c7d60);if(-0x1==_0x5f2433)return null;const _0xdde262=_0x15e78e[_0x5f2433],_0x13e3a6=new _0x5bc963([]),_0x272cd8=new _0x5bc963([]);for(const _0x49438e of _0xdde262[_0x1227ca(0x2bf)])if(_0x1227ca(0x1bd)!=_0x49438e[_0x1227ca(0x1ee)]&&_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x49438e[_0x1227ca(0x28b)][_0x1227ca(0x2a3)](!0x0)),_0x1227ca(0x1ea)!=_0x49438e[_0x1227ca(0x1ee)]){const _0xfb541=_0x5e8914(_0x5d223e=>_0x1a7623(_0x5d223e,_0x1227ca(0x2e1))==_0x49438e['id'],_0x4a2935[_0x1227ca(0x1aa)],!0x0);_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0xfb541[_0x1227ca(0x2a3)](!0x0));}if(0x0==_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x297)]){if(_0xdde262[_0x1227ca(0x2bf)][0x0][_0x1227ca(0x2ce)]){const _0x54fb98=_0x49e6f5(_0x1227ca(0x2e1),_0xdde262[_0x1227ca(0x2bf)][0x0][_0x1227ca(0x2ce)],_0x4a2935[_0x1227ca(0x1aa)]);_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x199)](_0x54fb98[_0x1227ca(0x2a3)](!0x0)),_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x199)](_0x54fb98[_0x1227ca(0x2a3)](!0x0)),_0x54fb98[_0x1227ca(0x21f)]&&(_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x54fb98[_0x1227ca(0x21f)][_0x1227ca(0x2a3)](!0x0)),_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x54fb98[_0x1227ca(0x21f)][_0x1227ca(0x2a3)](!0x0)));}else{const _0x43c7b7=_0x4a2935[_0x1227ca(0x1aa)][_0x1227ca(0x2ff)][0x0];if(!_0x43c7b7)return null;_0x13e3a6[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x43c7b7[_0x1227ca(0x2a3)](!0x0)),_0x272cd8[_0x1227ca(0x2ff)][_0x1227ca(0x1af)](_0x43c7b7[_0x1227ca(0x2a3)](!0x0));}}const _0x174339=_0xec6865[_0x1227ca(0x204)](),_0x502276=_0x56782a[_0x1227ca(0x241)][_0x1227ca(0x1dd)](_0x174339[_0x1227ca(0x2ca)]),_0x16fcef=_0x42c957(_0x13e3a6),_0x56488c=_0x56782a[_0x1227ca(0x241)][_0x1227ca(0x1dd)](_0x16fcef),_0xaf6f6f=_0x56782a[_0x1227ca(0x241)][_0x1227ca(0x1dd)](_0x16fcef),_0x5af3dc=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x217)](_0x56488c,0x0),_0x376ea0=_0x42c957(_0x272cd8),_0x270192={'anchor':_0x5af3dc,'markDeletions':!0x1},_0x2480f8=_0x56782a[_0x1227ca(0x2e7)][_0x1227ca(0x19e)](_0x55ea8c)[_0x1227ca(0x1a5)](_0x16fcef,_0x376ea0,_0x270192)[_0x1227ca(0x22b)]();if(!_0x2480f8[_0x1227ca(0x297)])return null;_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x239)](_0x13acd7=>{const _0x3250fa=_0x1227ca;for(const _0x1a04d6 of _0x2480f8)if(_0x3250fa(0x19b)==_0x1a04d6[_0x3250fa(0x1ee)]){const _0x13c0d8=_0x1a04d6[_0x3250fa(0x1a9)],_0x486a57=_0x1a04d6[_0x3250fa(0x300)],_0x4e48f3=new _0x2eb90c(_0x13c0d8,_0x486a57);_0x13acd7[_0x3250fa(0x2d3)][_0x3250fa(0x2a2)](_0x4e48f3),_0x56782a[_0x3250fa(0x308)][_0x3250fa(0x23a)](_0x4e48f3);}else _0x3250fa(0x246)!==_0x1a04d6[_0x3250fa(0x1ee)]&&(_0x1a04d6[_0x3250fa(0x275)]=null,_0x1a04d6[_0x3250fa(0x278)]=!0x1,_0x13acd7[_0x3250fa(0x2d3)][_0x3250fa(0x2a2)](_0x1a04d6),_0x56782a[_0x3250fa(0x308)][_0x3250fa(0x23a)](_0x1a04d6));});const _0x89559=_0x3d329c(_0x56782a,_0x2480f8,_0x56488c);_0x260592(_0x56782a[_0x1227ca(0x308)],_0x89559);const _0x2410ea=_0x89559[_0x1227ca(0x2fc)]()[_0x1227ca(0x216)][_0x1227ca(0x287)][_0x1227ca(0x1d2)](),_0x16a111=_0x89559[_0x1227ca(0x2fc)]()[_0x1227ca(0x1b9)][_0x1227ca(0x287)][_0x1227ca(0x1d2)](),_0x41d31e=[];let _0x47bec0=_0x56488c,_0x175d47=_0xaf6f6f;for(let _0xd953b6=0x0;_0xd953b6<_0x16a111[_0x1227ca(0x297)];_0xd953b6++){const _0xac74be=_0x47bec0[_0x1227ca(0x1b2)]-_0x16a111[_0xd953b6];_0x41d31e[_0xd953b6]=_0x175d47[_0x1227ca(0x1b2)]-_0xac74be,_0x47bec0=_0x47bec0[_0x1227ca(0x200)](_0x16a111[_0xd953b6]),_0x175d47=_0x175d47[_0x1227ca(0x200)](_0x41d31e[_0xd953b6]);}const _0x55401c=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x265)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0xaf6f6f,_0x2410ea),_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0xaf6f6f,_0x41d31e)),_0x26d7c0=_0xaf6f6f[_0x1227ca(0x285)](0x0)[_0x1227ca(0x1c5)](_0xf63df4),_0x2e7702=Array[_0x1227ca(0x22c)](_0x502276[_0x1227ca(0x23d)]())[_0x1227ca(0x236)](_0x4e065a=>_0x4e065a[_0x1227ca(0x1c5)](_0xf63df4)==_0x26d7c0)[_0x1227ca(0x2d8)](),_0x388f9d=_0x55401c[_0x1227ca(0x216)][_0x1227ca(0x287)][_0x1227ca(0x1d2)](),_0x40ff34=_0x55401c[_0x1227ca(0x1b9)][_0x1227ca(0x287)][_0x1227ca(0x1d2)]();_0x388f9d[0x0]=_0x2e7702[0x0]+_0x388f9d[0x0],_0x40ff34[0x0]=_0x2e7702[0x0]+_0x40ff34[0x0];let _0x21add4=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x265)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1ef)][_0x1227ca(0x26b)](),_0x388f9d),_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1e0)](_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1ef)][_0x1227ca(0x26b)](),_0x40ff34));const _0x106243=_0x56782a[_0x1227ca(0x308)][_0x1227ca(0x1ef)][_0x1227ca(0x205)][_0x1227ca(0x22b)](_0x174339[_0x1227ca(0x19c)]);for(const _0x5835a9 of _0x106243)_0x21add4=_0x23f00f[_0x1227ca(0x1cd)](_0x21add4[_0x1227ca(0x267)](_0x5835a9));return{'range':_0x21add4,'currentIndex':_0x1c7d60};}[_0x2ed2b1(0x1d1)](_0x4bad2a){const _0x2d6922=_0x2ed2b1;if(!_0x4bad2a[_0x2d6922(0x2e7)][_0x2d6922(0x234)](_0x2d6922(0x270)))return;const _0x56b439=_0x4bad2a[_0x2d6922(0x299)][_0x2d6922(0x19e)](_0x2d6922(0x2be)),_0x1791c8=_0x4bad2a[_0x2d6922(0x299)][_0x2d6922(0x19e)](_0x2d6922(0x1b1));this[_0x2d6922(0x280)](_0x56b439,_0x2d6922(0x2f8),(_0x17a59c,_0x5fd5a5,_0x5b01ba)=>{const _0x3d2f46=_0x2d6922,_0x366ab2=this[_0x3d2f46(0x28e)][_0x3d2f46(0x19e)](_0x5fd5a5);if(!_0x366ab2)return;const _0x2dcd42=this[_0x3d2f46(0x1c3)][_0x3d2f46(0x263)](_0x366ab2[_0x3d2f46(0x2c0)])[_0x3d2f46(0x240)](_0x366ab2[_0x3d2f46(0x1e7)]);_0x366ab2[_0x3d2f46(0x26c)][_0x3d2f46(0x23b)](_0x2b813e=>_0x2dcd42[_0x3d2f46(0x2cd)](_0x2b813e,_0x3d2f46(0x307))),this[_0x3d2f46(0x28e)][_0x3d2f46(0x2d2)](_0x5fd5a5),this[_0x3d2f46(0x28e)][_0x3d2f46(0x209)](_0x5b01ba,_0x366ab2);}),this[_0x2d6922(0x280)](_0x1791c8,_0x2d6922(0x2f8),(_0x147ac9,_0x248483,_0x1e0a3a)=>{const _0x47d147=_0x2d6922,_0x2afa7c=this[_0x47d147(0x28e)][_0x47d147(0x19e)](_0x248483);if(!_0x2afa7c)return;const _0x7ff216=this[_0x47d147(0x1c3)][_0x47d147(0x263)](_0x2afa7c[_0x47d147(0x2c0)])[_0x47d147(0x240)](_0x2afa7c[_0x47d147(0x1e7)]);_0x2afa7c[_0x47d147(0x26c)][_0x47d147(0x23b)](_0x227e1e=>_0x7ff216[_0x47d147(0x2cd)](_0x227e1e,_0x47d147(0x2a4))),this[_0x47d147(0x28e)][_0x47d147(0x2d2)](_0x248483),this[_0x47d147(0x28e)][_0x47d147(0x209)](_0x1e0a3a,_0x2afa7c);});}async[_0x2ed2b1(0x2f9)](_0x3582b0){const _0x466089=_0x2ed2b1;this[_0x466089(0x21b)][_0x466089(0x2e7)][_0x466089(0x19e)](_0x4b5329)[_0x466089(0x1a3)](),this[_0x466089(0x1b6)][_0x466089(0x1be)](_0x466089(0x293)),this[_0x466089(0x1b6)][_0x466089(0x283)](!0x0),await this[_0x466089(0x2de)]();try{await this[_0x466089(0x26d)][_0x466089(0x29f)](_0x3582b0)[_0x466089(0x29a)](),await this[_0x466089(0x2a7)](_0x3582b0),this[_0x466089(0x2fd)]('\x20');const {sessionId:_0xc366e2}=this[_0x466089(0x2b2)][_0x466089(0x237)]();await this[_0x466089(0x1c3)][_0x466089(0x211)](_0x3582b0,_0xc366e2),this[_0x466089(0x1c3)][_0x466089(0x1f3)]()&&this[_0x466089(0x1c3)][_0x466089(0x1fd)](_0x293bcb(this[_0x466089(0x21b)][_0x466089(0x248)],_0x466089(0x2c7)));}catch(_0x3c0c31){this[_0x466089(0x1b6)][_0x466089(0x2a6)]({'errorMessage':_0x293bcb(this[_0x466089(0x21b)][_0x466089(0x248)],_0x466089(0x2df)),'id':_0x3582b0}),this[_0x466089(0x232)](new _0x56335c(_0x466089(0x27e),this,{'error':_0x3c0c31}));}finally{this[_0x466089(0x21b)][_0x466089(0x2e7)][_0x466089(0x19e)](_0x19b00d)[_0x466089(0x2e0)][_0x466089(0x222)](_0x466089(0x2cf)),this[_0x466089(0x1b6)][_0x466089(0x249)](),this[_0x466089(0x1b6)][_0x466089(0x1be)](_0x466089(0x1fa)),this[_0x466089(0x1b6)][_0x466089(0x283)](!0x1);}}[_0x2ed2b1(0x1e6)](_0x47ad1d){const _0x1b9616=_0x2ed2b1;this[_0x1b9616(0x1c3)]['id']===_0x47ad1d&&this[_0x1b9616(0x2a7)]();}async[_0x2ed2b1(0x2d9)](){const _0x41342d=_0x2ed2b1,_0x2ce839=this[_0x41342d(0x2b2)][_0x41342d(0x22a)]();this[_0x41342d(0x1c3)]?.[_0x41342d(0x2b8)](_0x2ce839),this[_0x41342d(0x1c3)]?.[_0x41342d(0x1fd)](_0x293bcb(this[_0x41342d(0x21b)][_0x41342d(0x248)],_0x41342d(0x2c7)));}[_0x2ed2b1(0x301)](){const _0x1d16eb=_0x2ed2b1;this[_0x1d16eb(0x1c3)]?.[_0x1d16eb(0x212)]();}[_0x2ed2b1(0x1ce)](){const _0x3b1073=_0x2ed2b1;this[_0x3b1073(0x1b6)][_0x3b1073(0x1ce)]();}async[_0x2ed2b1(0x288)](){const _0x5105b6=_0x2ed2b1;await this[_0x5105b6(0x2a7)]();}async[_0x2ed2b1(0x1f0)]({message:_0x3447fc,quickActionData:_0x2cb4e2}){const _0x2a026d=_0x2ed2b1;await this[_0x2a026d(0x1b8)]({'userMessage':_0x3447fc,'quickActionData':_0x2cb4e2});}[_0x2ed2b1(0x274)](){const _0x29af49=_0x2ed2b1,_0x2a0b10=this[_0x29af49(0x21b)][_0x29af49(0x210)][_0x29af49(0x19e)](_0x29af49(0x245));if(!_0x2a0b10)throw new _0x56335c(_0x29af49(0x2e3),this);return _0x2a0b10;}async[_0x2ed2b1(0x2a7)](_0x5e4831){const _0x5a7d75=_0x2ed2b1;try{this[_0x5a7d75(0x1b6)][_0x5a7d75(0x1fb)](),await this[_0x5a7d75(0x291)](_0x5e4831);}catch(_0xdf02f9){this[_0x5a7d75(0x1b6)][_0x5a7d75(0x2a6)]({'errorMessage':_0x293bcb(this[_0x5a7d75(0x21b)][_0x5a7d75(0x248)],_0x5a7d75(0x2aa)),'id':_0x5e4831||_0x3c32fe()}),console[_0x5a7d75(0x303)](_0xdf02f9),this[_0x5a7d75(0x1c3)]=void 0x0,this[_0x5a7d75(0x1b6)][_0x5a7d75(0x28f)]();}}async[_0x2ed2b1(0x291)](_0x4bc952){const _0x2898c6=_0x2ed2b1,_0x5814f8=this[_0x2898c6(0x21b)][_0x2898c6(0x2e7)][_0x2898c6(0x19e)](_0x4b5329);let _0x5a809b;_0x5814f8[_0x2898c6(0x227)]&&_0x5814f8[_0x2898c6(0x1a3)](),_0x4bc952||!this[_0x2898c6(0x1c3)]?_0x5a809b=this[_0x2898c6(0x21b)][_0x2898c6(0x210)][_0x2898c6(0x19e)](_0x2898c6(0x1b4)):this[_0x2898c6(0x1b6)][_0x2898c6(0x24d)]&&(_0x5a809b=this[_0x2898c6(0x1c3)][_0x2898c6(0x286)]['id']),await this[_0x2898c6(0x2de)]();const _0x3870f6=this[_0x2898c6(0x274)](),_0x59732c=_0x4bc952||_0x3c32fe();this[_0x2898c6(0x1c3)]=new _0x38cc37({'connector':this[_0x2898c6(0x26d)],'chatModels':this[_0x2898c6(0x261)],'selectedModelId':_0x5a809b,'conversationId':_0x59732c,'group':_0x3870f6,'getEditor':()=>_0x5aabc3(this[_0x2898c6(0x21b)])}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2cc),(_0x1f00d7,_0x2d3000)=>{const _0x4876e8=_0x2898c6;this[_0x4876e8(0x1b6)][_0x4876e8(0x229)](_0x2d3000),this[_0x4876e8(0x1b6)][_0x4876e8(0x272)](),this[_0x4876e8(0x1b6)][_0x4876e8(0x1fc)](),this[_0x4876e8(0x1b6)][_0x4876e8(0x25c)](),_0x4bc952||(this[_0x4876e8(0x1b6)][_0x4876e8(0x29e)](),this[_0x4876e8(0x1c3)]?.[_0x4876e8(0x1fd)](_0x293bcb(this[_0x4876e8(0x21b)][_0x4876e8(0x248)],_0x4876e8(0x2c7))));}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2eb),(_0x301092,_0x456cdd)=>{const _0x4b32e0=_0x2898c6;this[_0x4b32e0(0x1b6)][_0x4b32e0(0x2e6)](_0x456cdd[_0x4b32e0(0x1a8)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1d5),(_0x35c8cb,_0x229a24)=>{const _0x4318d6=_0x2898c6;this[_0x4318d6(0x1b6)][_0x4318d6(0x29c)](_0x229a24);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2ac),()=>{const _0x4a3b8c=_0x2898c6;this[_0x4a3b8c(0x1b6)][_0x4a3b8c(0x28d)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2f4),()=>{const _0x1a8783=_0x2898c6;this[_0x1a8783(0x1b6)][_0x1a8783(0x28d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2dd),(_0x1f11fc,_0x55358a)=>{const _0x40e4d0=_0x2898c6;this[_0x40e4d0(0x1b6)][_0x40e4d0(0x271)](_0x55358a,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x29b),(_0x2bb094,_0x555ea9)=>{const _0x5c2fc9=_0x2898c6;this[_0x5c2fc9(0x1b6)][_0x5c2fc9(0x271)](_0x555ea9,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1ad),()=>{const _0x83ab2=_0x2898c6;this[_0x83ab2(0x1b6)][_0x83ab2(0x24c)]();}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x235),async()=>{const _0x2811ad=_0x2898c6;await this[_0x2811ad(0x1b6)][_0x2811ad(0x231)]();}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2e2),(_0x13b110,_0x3919e6)=>{const _0x826471=_0x2898c6;this[_0x826471(0x1b6)][_0x826471(0x281)](_0x3919e6['id']);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x304),(_0x1fed78,_0x4162b1,_0x245266)=>{const _0x17d87a=_0x2898c6;this[_0x17d87a(0x2fd)](_0x4162b1,_0x245266);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1a2),(_0x400827,_0x5028e4)=>{const _0x4dfdea=_0x2898c6;_0x4dfdea(0x230)===_0x5028e4[_0x4dfdea(0x1ee)]?this[_0x4dfdea(0x1b6)][_0x4dfdea(0x19d)](_0x5028e4):this[_0x4dfdea(0x1b6)][_0x4dfdea(0x277)](_0x5028e4);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2d6),async(_0x24eeb5,_0x162118)=>{const _0x5e4192=_0x2898c6;await this[_0x5e4192(0x1ba)]({'reply':_0x162118});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x305),(_0x26bc73,{reply:_0x214b59,index:_0x3eeaa2,state:_0x5bff1f})=>{const _0x2708a5=_0x2898c6;this[_0x2708a5(0x1b6)][_0x2708a5(0x251)]({'id':_0x214b59['id'],'index':_0x3eeaa2,'state':_0x5bff1f});}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2c8),(_0x2fb8a0,_0xb39178)=>{const _0x2aa41d=_0x2898c6;if(this[_0x2aa41d(0x1b6)][_0x2aa41d(0x1e2)](_0xb39178[_0x2aa41d(0x2bc)],_0xb39178[_0x2aa41d(0x21e)]),_0x2aa41d(0x1de)===_0xb39178[_0x2aa41d(0x2bc)][_0x2aa41d(0x1ee)]){const _0x1a0f18=[..._0x5aabc3(this[_0x2aa41d(0x21b)])[_0x2aa41d(0x308)][_0x2aa41d(0x1ef)][_0x2aa41d(0x1de)][_0x2aa41d(0x27b)]()];this[_0x2aa41d(0x2b2)][_0x2aa41d(0x2f5)](_0x1a0f18,_0x2aa41d(0x225)+this[_0x2aa41d(0x1c3)]?.['id']);}}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2ab),(_0x6c36d5,_0x4f2a5d)=>{const _0x462578=_0x2898c6;this[_0x462578(0x1b6)][_0x462578(0x26f)](_0x4f2a5d[_0x462578(0x268)]),_0x462578(0x2d0)==_0x4f2a5d[_0x462578(0x268)]&&this[_0x462578(0x301)](),_0x462578(0x1de)===_0x4f2a5d[_0x462578(0x1ee)]&&this[_0x462578(0x2b2)][_0x462578(0x1dc)](_0x462578(0x225)+this[_0x462578(0x1c3)]?.['id']);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x224),(_0x201fad,_0x16a043)=>{const _0x344ed2=_0x2898c6;this[_0x344ed2(0x1b6)][_0x344ed2(0x201)](_0x16a043[_0x344ed2(0x2bc)][_0x344ed2(0x268)],_0x16a043[_0x344ed2(0x21e)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x1f2),(_0x2b8b84,_0x45ca73)=>{const _0x4f447c=_0x2898c6;this[_0x4f447c(0x1b6)][_0x4f447c(0x260)](_0x45ca73[_0x4f447c(0x2bb)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x2db),(_0x332076,_0x314b7e)=>{const _0xdcbf82=_0x2898c6;this[_0xdcbf82(0x1b6)][_0xdcbf82(0x23e)](_0x314b7e[_0xdcbf82(0x27a)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x206),(_0xa0f178,_0x140e24)=>{const _0x41c76c=_0x2898c6;this[_0x41c76c(0x1b6)][_0x41c76c(0x28c)](_0x140e24[_0x41c76c(0x25e)],_0x140e24[_0x41c76c(0x1cb)],_0x140e24[_0x41c76c(0x242)],_0x140e24[_0x41c76c(0x1d9)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x22d),(_0x559c3e,_0xc21f0c)=>{const _0x22e8dc=_0x2898c6;this[_0x22e8dc(0x1b6)][_0x22e8dc(0x2a8)](_0xc21f0c[_0x22e8dc(0x25e)],_0xc21f0c[_0x22e8dc(0x2fe)],_0xc21f0c[_0x22e8dc(0x295)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x264),(_0x5ef6f3,_0x314413)=>{const _0x32b406=_0x2898c6;this[_0x32b406(0x1b6)][_0x32b406(0x2ec)](_0x314413);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x215),(_0x471b97,_0x52d850)=>{const _0x33f2d7=_0x2898c6;this[_0x33f2d7(0x1b6)][_0x33f2d7(0x1ed)](_0x52d850[_0x33f2d7(0x286)],_0x52d850[_0x33f2d7(0x22e)]);}),this[_0x2898c6(0x1c3)]['on'](_0x2898c6(0x303),(_0x8ce69,{error:_0x5c9497,interactionId:_0x21b91f,fileName:_0x46a9dc,url:_0x4aa57c,sourceId:_0x355dbb,sourceLabel:_0x51cb4b})=>{const _0x37ca3e=_0x2898c6,_0x19d5b1=_0x21b91f?_0x21b91f+':'+_0x3c32fe():_0x3c32fe();_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x24a))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x23f)]({'staticMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x309)),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1db))||_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x233))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x2aa)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2c3))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x213),_0x46a9dc),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1c8))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x244),_0x4aa57c),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x298))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1a6)),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2ad))?this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x284)),'id':_0x19d5b1}):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2f0))?(_0x355dbb&&this[_0x37ca3e(0x1b6)][_0x37ca3e(0x259)](_0x355dbb),this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1f4),_0x51cb4b||_0x37ca3e(0x1cb)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1b5))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x22f)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x1df))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1c1)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x2b5))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x294)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x30a))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x1a1)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x223))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x208)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):_0x5c9497[_0x37ca3e(0x255)][_0x37ca3e(0x1bb)](_0x37ca3e(0x256))?(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x24b)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497)):(this[_0x37ca3e(0x1b6)][_0x37ca3e(0x2a6)]({'errorMessage':_0x293bcb(this[_0x37ca3e(0x21b)][_0x37ca3e(0x248)],_0x37ca3e(0x2ed)),'id':_0x19d5b1}),this[_0x37ca3e(0x232)](_0x5c9497));}),await this[_0x2898c6(0x1c3)][_0x2898c6(0x1e5)](this[_0x2898c6(0x21b)][_0x2898c6(0x210)][_0x2898c6(0x19e)](_0x2898c6(0x207))),_0x4bc952||await this[_0x2898c6(0x1c3)][_0x2898c6(0x216)]();}async[_0x2ed2b1(0x1b8)]({userMessage:_0x58bf4a,quickActionData:_0x2ef835}){const _0x3de21e=_0x2ed2b1;if(!this[_0x3de21e(0x1c3)])throw new _0x56335c(_0x3de21e(0x1cc));this[_0x3de21e(0x1c3)][_0x3de21e(0x273)]()&&await this[_0x3de21e(0x1c3)][_0x3de21e(0x2c9)](this[_0x3de21e(0x2b2)][_0x3de21e(0x237)]()),this[_0x3de21e(0x1c3)]['id']&&this[_0x3de21e(0x1c3)][_0x3de21e(0x247)]&&await this[_0x3de21e(0x1c3)][_0x3de21e(0x26a)]({'userMessage':_0x58bf4a,'quickActionData':_0x2ef835}),this[_0x3de21e(0x1d4)]();}[_0x2ed2b1(0x1d4)](){const _0x286254=_0x2ed2b1,_0x46c933=_0x5aabc3(this[_0x286254(0x21b)])[_0x286254(0x308)],_0x5ee183=Array[_0x286254(0x22c)](_0x46c933[_0x286254(0x2f7)][_0x286254(0x1eb)](_0x46d8a9));_0x46c933[_0x286254(0x239)](_0x35663f=>{const _0x1a6cec=_0x286254;_0x5ee183[_0x1a6cec(0x23b)](_0x32cb49=>_0x35663f[_0x1a6cec(0x254)](_0x32cb49));});}[_0x2ed2b1(0x20f)](){const _0x4b838e=_0x2ed2b1;console[_0x4b838e(0x2e5)](_0x4b838e(0x1e8));}[_0x2ed2b1(0x2ae)](_0x5a4a1b){const _0x21cf4c=_0x2ed2b1;this[_0x21cf4c(0x1b6)][_0x21cf4c(0x1f8)](_0x5a4a1b);}[_0x2ed2b1(0x232)](_0x45927e){const _0x2b6d70=_0x2ed2b1;_0x5678bd(_0x45927e[_0x2b6d70(0x255)]);}[_0x2ed2b1(0x2d1)](_0x2d026d){const _0x1ddb6b=_0x2ed2b1;this[_0x1ddb6b(0x1c3)]?.[_0x1ddb6b(0x2c1)](_0x2d026d);}[_0x2ed2b1(0x296)](){const _0x54143=_0x2ed2b1;this[_0x54143(0x1c3)]?.[_0x54143(0x1ac)]();}[_0x2ed2b1(0x2e9)](){const _0x20dd29=_0x2ed2b1;this[_0x20dd29(0x1c3)]?.[_0x20dd29(0x289)]();}[_0x2ed2b1(0x1b0)](_0x45ae18){const _0x518b02=_0x2ed2b1,[_0x181d3d,_0xe26af2]=_0x45ae18[_0x518b02(0x290)](':'),_0x4ff122=this[_0x518b02(0x1c3)][_0x518b02(0x263)](_0x181d3d),_0x441131=_0x4ff122[_0x518b02(0x240)](_0xe26af2);return{'interaction':_0x4ff122,'reply':_0x441131};}[_0x2ed2b1(0x214)](_0xe367a8,_0x30b051=!0x1){const _0x420aa2=_0x2ed2b1,_0x19f6f0=_0x5aabc3(this[_0x420aa2(0x21b)]),_0x323647={'target':_0x19f6f0[_0x420aa2(0x243)][_0x420aa2(0x2e0)][_0x420aa2(0x220)][_0x420aa2(0x2c5)](_0x19f6f0[_0x420aa2(0x243)][_0x420aa2(0x20e)][_0x420aa2(0x2d7)](_0xe367a8)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x30b051};_0x30b051&&(_0x323647[_0x420aa2(0x276)]=!0x0),_0x168f9e(_0x323647);}[_0x2ed2b1(0x2fd)](_0x16dce6,_0x403459=!0x1){const _0x2f16ec=_0x2ed2b1;this[_0x2f16ec(0x1b6)][_0x2f16ec(0x304)](_0x16dce6||_0x293bcb(this[_0x2f16ec(0x21b)][_0x2f16ec(0x248)],_0x2f16ec(0x2a0)),_0x403459);}async[_0x2ed2b1(0x1ba)]({reply:_0x411320,renderingStrategy:_0x5b268b}){const _0x6f375b=_0x2ed2b1,{id:_0x4519ba,isDone:_0x355e05,type:_0x16176f,parsedContent:_0xeddecd}=_0x411320;if(_0x6f375b(0x2cb)===_0x16176f){const _0x1057f1=_0x411320[_0x6f375b(0x2ba)]({'showDiff':this[_0x6f375b(0x1b6)][_0x6f375b(0x19a)]});await this[_0x6f375b(0x1b6)][_0x6f375b(0x250)]({'id':_0x4519ba,'parts':_0x1057f1,'renderingStrategy':_0x5b268b,'isDone':_0x355e05});}else _0x6f375b(0x230)===_0x16176f&&await this[_0x6f375b(0x1b6)][_0x6f375b(0x226)]({'id':_0x4519ba,'parsedContent':_0xeddecd,'renderingStrategy':_0x5b268b,'isDone':_0x355e05});_0x355e05&&_0x411320[_0x6f375b(0x1ae)][_0x6f375b(0x297)]>0x0&&this[_0x6f375b(0x1b6)][_0x6f375b(0x1c4)](_0x4519ba,_0x411320[_0x6f375b(0x1ae)]);}async[_0x2ed2b1(0x2de)](){const _0x189bcc=_0x2ed2b1,_0x221bbf=this[_0x189bcc(0x1c3)]?.[_0x189bcc(0x2e4)];_0x221bbf&&(_0x221bbf[_0x189bcc(0x1d3)](),this[_0x189bcc(0x1b6)][_0x189bcc(0x20b)](_0x221bbf));}async[_0x2ed2b1(0x2f6)](){const _0xed86f3=_0x2ed2b1,_0x2b1d1a=this[_0xed86f3(0x1c3)]?.[_0xed86f3(0x2e4)];if(_0x2b1d1a){for await(const _0x1481f5 of _0x2b1d1a[_0xed86f3(0x29d)])await this[_0xed86f3(0x1ba)]({'reply':_0x1481f5,'renderingStrategy':_0xed86f3(0x293)});}}[_0x2ed2b1(0x1ab)](_0x5667c6){const _0x1ffd00=_0x2ed2b1,_0x28853e={'positiveCount':_0x5667c6[_0x1ffd00(0x1a7)][_0x1ffd00(0x2d5)](_0x4c763a=>_0x1ffd00(0x2a4)===_0x4c763a[_0x1ffd00(0x1bc)])[_0x1ffd00(0x297)],'totalCount':_0x5667c6[_0x1ffd00(0x1a7)][_0x1ffd00(0x297)],'modificationId':_0x5667c6['id']},_0x3494be=this[_0x1ffd00(0x1c3)][_0x1ffd00(0x263)](_0x5667c6[_0x1ffd00(0x2c0)])[_0x1ffd00(0x25f)];this[_0x1ffd00(0x26d)][_0x1ffd00(0x2b1)](this[_0x1ffd00(0x1c3)]['id'],_0x3494be,_0x28853e);}}
|
|
23
|
+
const _0x3d8fcb=_0x5db8;(function(_0x55613b,_0x5b12ba){const _0x113099=_0x5db8,_0x80133e=_0x55613b();while(!![]){try{const _0x360204=-parseInt(_0x113099(0x1de))/0x1+parseInt(_0x113099(0x1d3))/0x2+parseInt(_0x113099(0x1e8))/0x3*(parseInt(_0x113099(0x1a9))/0x4)+parseInt(_0x113099(0x2d5))/0x5+parseInt(_0x113099(0x2ac))/0x6+parseInt(_0x113099(0x1d5))/0x7+-parseInt(_0x113099(0x241))/0x8;if(_0x360204===_0x5b12ba)break;else _0x80133e['push'](_0x80133e['shift']());}catch(_0x4c1650){_0x80133e['push'](_0x80133e['shift']());}}}(_0x4121,0xcd5d7));import{ContextPlugin as _0x59417d,Editor as _0x2c26c0}from'ckeditor5/src/core.js';function _0x4121(){const _0x4e63c0=['AI_CHAT_GENERIC_ERROR','isOfficialPlugin','addFeedItemStaticMessage','indexes','ai-chat-file-upload-failed','editing','main','clearPendingContextUI','_integrateEditor','mouseOverSuggestion','maxOffset','setModel','document','like','replyCreated','ai.availableReplyActions','insertSuggestion','getPath','isCurrentDocumentInContext','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','baseVersion','start','delete','sourceId','contextItem','sourceResourcesLoaded','interactionStarted','plugins','getFirstRange','ai-chat-context-file-too-large','replyChangeGroupStateUpdated','scrollFeedToSuggestion','setContextItemLoading','forEach','setConversationTitle','focusPromptInput','removed','resize','getInteraction','interactionId','ai-chat-context-unsupported-file-type','hideFakeVisualSelection','context','rootName','ai-chat-context-form-data-size-limits-exceeded','_aiEditing','accepted','chat','handleUserInteraction','_logError','resetConversationTitle','948QWLlQy','isDocumentOperation','range','ai-chat-context-file-too-many-pages','push','AI_CHAT_RESOURCE_LOAD_FAILED','text-delta','addSelectionToChatContext','ai-chat-conversation-start-failed','toggleSuggestionDisplayMode','_getDocumentRangeForReplyChanges','path','_insertSuggestion','addSelectionToContext','collaboration.channelId','add','_stopLastInteraction','Showing\x20conversation\x20history...','ai-chat-conversation-not-found','interactionCreated','addFeedInteractionHeader','getDocumentContext','full','toggleReasoning','redo','getRanges','outdated','load','addContextItem','find','stopListening','domConverter','revert','isModelAvailable','TrackChangesEditing','isOpen','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','_removeAISelectionMarkers','_aiChatModels','commands','ai-chat-conversation-init-failed','removeFromContext','1781852OkMpHm','change','3803905exQkGU','data-id','rejectSuggestion','removeMarker','activeConversation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai-chat-missing-channel-id','finishInteraction','_applySuggestion','1429411jEWNUV','webSearchFinished','updateFeedItemAIReplySuggestionContent','query','handleRemovedConversation','setFeedItemRenderingStrategy','afterInit','set','AIEditing','attachToDom','441dglSIN','state','markers','remove','updateFeedItemAIReplySources','_openBalloonFor','ai.chat.context','ai-conversation-','updateResourceState','AI_CHAT_ABORTED_MESSAGE','upsertAIChatRating','ai-chat-controller-no-active-conversation','setSelectedModel','resources','addContextOptionsChanged','contextItems','_updateRatings','getChild','_updateReplyContent','end','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','replies','from','toggleLoadingSkeleton','createRange','model','getOperations','updateFeedItemAIReplySuggestionPartState','type','replyContentUpdated','open','changeGroups','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','setChangeGroupState','updateCurrentDocumentInContext','$graveyard','getDocumentData','ai-chat-url-upload-failed','streaming','_bodyCollection','webSearchStarted','error','AI_CHAT_UNTITLED_CONVERSATION','Liked\x20response','removeSelectionFromChatContext','hasChanges','ai-no-track-changes','interactionDestroyed','new','listenTo','showChangeInText','nextSibling','setIsUploadInProgress','parse','getRoot','ready','batch','replyId','showPrevious','updateFeedItemAIReplyContent','messageId','_handleUIUserMessage','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','ai-chat-context-invalid-data','_toggleWebSearch','interactionFinished','showDiff','alignToTop','dislike','view','modelSelected','resizedTabs','isPremiumPlugin','applyOperation','abortPromptStream','createConversation','viewRangeToDom','getContentParts','_previewedChangeGroup','requires','changes','_batchToChanges','getDiff','rejected','getChildAtOffset','node','cloneNode','partIndex','capabilitiesUpdated','14041640mkxmZH','sendMessage','isInContext','filter','getGroupId','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_handleStartConversation','_flushLastInteractionUI','options','isUploadInProgress','_aiConnector','addResourceToContext','isDisabled','getConversation','dialogClosed','_showConversationHistory','marker','setAddContextOptions','ai-chat-invalid-request','anchorId','mouseLeaveSuggestion','selectModel','isStarted','_scrollToSuggestionRange','static','showFakeVisualSelection','showNext','data','current-document','content','length','indexOf','map','removeSelectionFromContext','clearConversationContextUI','version','index','message','enableControls','findIndex','addFeedItemAIReply','updateContent','getChildren','config','resourceStateChanged','editors','detachFromDom','isCurrentDocumentInConversation','getInteractionAndReplyById','AIConnector','contextItemAdded','addFeedItemError','children','_aiChatUi','addDocumentToContext','updateCapabilities','fetchConversation','contextItemLoadingEnded','AIChatUI','setConversationContext','resizeTabs','startConversation','createPositionAt','updateConversationTitle','startsWith','history','ai-chat-resource-load-failed','root','get','startAutoScroll','addUrlToContext','destroy','_startConversationSafely','AI_CHAT_CONTEXT_INVALID_DATA','lastInteraction','howMany','ai.chat.models.displayedModels','resetMessageInput','_applyOperationsAsSuggestions','addOperation','log','closeSourceResourceBalloon','source','toViewRange','DocumentCompare','getSelectionText','split','getTransformedByOperation','reasoningFinished','addCurrentDocumentToContext','populateSourceResourceBalloon','selectedModel','uid','addFileToContext','addFeedItemAISuggestion','pluginName','AI_BALLOON_HEADER_TITLE','slice','_toggleReasoning','activateTab','createPositionFromPath','modification-delta','_createFromRanges','disableControls','mapper','loadConversation','toString','6353880CPVgrm','sources','getMarkersGroup','ai-chat-source-resources-load-failed','unshift','close','resource','sendUserMessage','TrackChanges','Disliked\x20response','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','ai.chat.models.defaultModelId','setLoadingMessage','stopInteraction','toggleWebSearch','ai-chat-context-unsupported-type','AI_CHAT_CONTEXT_FILE_TOO_LARGE','applySuggestion','setIsMaximized','addFeedItemUserMessage','documentContextContent','startInteraction','pending','AI_CHAT_INVALID_REQUEST','has','AITabs','Undo','AI_CHAT_UNABLE_TO_START_CONVERSATION','loadSourceResources','ai-request-aborted','conversationInitialized','_balloonShowDiff','undo','stop','addFilesToContext','removeContextItem','resourceId','isLoading','removeFeedInteraction','AIChatController','getAttribute','7488155rUEtvT','sourcePosition','reasoningStarted','contextSent','selection','ai-chat-controller-mouse-over','uiId','contextItemRemoved','getReply','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','uploadProgressChanged','_setIsMaximized','locale','init','_removeFromContext'];_0x4121=function(){return _0x4e63c0;};return _0x4121();}import{BodyCollection as _0x5cb913}from'ckeditor5/src/ui.js';import{CKEditorError as _0x49ab00,logError as _0x272904,scrollViewportToShowTarget as _0x47f9c4,uid as _0x5efed6}from'ckeditor5/src/utils.js';import{AIConnector as _0x5d7a01}from'../aicore/aiconnector.js';import{AITabs as _0x5fec5e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x55364e}from'./model/aichatconversation.js';function _0x5db8(_0x351199,_0x5a0452){const _0x41212d=_0x4121();return _0x5db8=function(_0x5db813,_0xf78e62){_0x5db813=_0x5db813-0x1a4;let _0xb36ce8=_0x41212d[_0x5db813];return _0xb36ce8;},_0x5db8(_0x351199,_0x5a0452);}import{getTranslation as _0x3da35b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x32dd7d}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0xc633fe}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x48d396}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x482669}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1c589e,DATA_ID_MODEL_ATTRIBUTE as _0x5db607}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x10322c,getOperationsFromReply as _0x59ef3e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4bc8eb,getMinimalSelection as _0x3e6ccc}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x393e05,_DetachOperation as _0x440562}from'ckeditor5/src/engine.js';import{findOne as _0x5b5b6a,getAttribute as _0x13985f,serialize as _0x1e0709,Document as _0x2ea254,findByAttribute as _0x2517b7}from'../aicore/utils/htmlparser.js';import{IconAI as _0x594162}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x207dd5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4efdc9}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x59417d{[_0x3d8fcb(0x311)];[_0x3d8fcb(0x24b)];[_0x3d8fcb(0x276)];[_0x3d8fcb(0x1cf)];[_0x3d8fcb(0x239)]=new Map();[_0x3d8fcb(0x236)]=null;[_0x3d8fcb(0x2cb)]=!0x1;[_0x3d8fcb(0x20f)];static get[_0x3d8fcb(0x237)](){return[_0x5d7a01,_0x4efdc9,_0x1c589e];}static get[_0x3d8fcb(0x2a0)](){const _0x529a71=_0x3d8fcb;return _0x529a71(0x2d3);}static get[_0x3d8fcb(0x2e5)](){return!0x0;}static get[_0x3d8fcb(0x230)](){return!0x0;}[_0x3d8fcb(0x2e2)](){const _0x4e9322=_0x3d8fcb;this[_0x4e9322(0x20f)]=new _0x5cb913(this[_0x4e9322(0x30e)][_0x4e9322(0x2e1)]),this[_0x4e9322(0x20f)][_0x4e9322(0x1e7)](),this[_0x4e9322(0x24b)]=this[_0x4e9322(0x30e)][_0x4e9322(0x2ff)][_0x4e9322(0x285)](_0x4e9322(0x272)),this[_0x4e9322(0x276)]=this[_0x4e9322(0x30e)][_0x4e9322(0x2ff)][_0x4e9322(0x285)](_0x4e9322(0x27b)),this[_0x4e9322(0x311)]=this[_0x4e9322(0x30e)][_0x4e9322(0x2ff)][_0x4e9322(0x285)](_0x4e9322(0x1e6)),this[_0x4e9322(0x1cf)]=new _0x48d396({'connector':this[_0x4e9322(0x24b)],'availableModels':this[_0x4e9322(0x30e)][_0x4e9322(0x26c)][_0x4e9322(0x285)](_0x4e9322(0x28d)),'defaultModelId':this[_0x4e9322(0x30e)][_0x4e9322(0x26c)][_0x4e9322(0x285)](_0x4e9322(0x2b7)),'locale':this[_0x4e9322(0x30e)][_0x4e9322(0x2e1)]});const _0x20ae9c=this[_0x4e9322(0x30e)][_0x4e9322(0x2ff)][_0x4e9322(0x285)](_0x4e9322(0x2c5));this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x27e),()=>{const _0x48e038=_0x4e9322;this[_0x48e038(0x289)]();}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2b3),(_0xed4ee5,_0x8be2af)=>{const _0x551562=_0x4e9322;this[_0x551562(0x225)]({'userMessage':_0x8be2af});}),this[_0x4e9322(0x219)](_0x20ae9c,_0x4e9322(0x22f),(_0x164f2e,_0x55ca0b)=>{const _0x415055=_0x4e9322;this[_0x415055(0x2e0)](_0x55ca0b);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x27d),()=>{const _0x5b241a=_0x4e9322;_0x20ae9c[_0x5b241a(0x309)]();}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x232),async()=>{const _0xe1ae31=_0x4e9322;await this[_0xe1ae31(0x1b9)](),await this[_0xe1ae31(0x248)](),this[_0xe1ae31(0x214)]();}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x277),()=>{const _0x427910=_0x4e9322;this[_0x427910(0x1d9)]?.[_0x427910(0x29a)](_0x3da35b(this[_0x427910(0x30e)][_0x427910(0x2e1)],_0x427910(0x1fc)));}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x29e),(_0x45e8dc,_0x3aac99)=>{const _0x44f370=_0x4e9322;this[_0x44f370(0x1d9)]?.[_0x44f370(0x2ce)](Array[_0x44f370(0x1fe)](_0x3aac99));}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x287),(_0x2b7094,_0x554c2b)=>{const _0x2d9fa2=_0x4e9322;this[_0x2d9fa2(0x1d9)]?.[_0x2d9fa2(0x287)](_0x554c2b);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x24c),(_0xe33ae8,_0x370f32)=>{const _0x51ff65=_0x4e9322;this[_0x51ff65(0x1d9)]?.[_0x51ff65(0x24c)](_0x370f32[_0x51ff65(0x293)],_0x370f32[_0x51ff65(0x2b2)]);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2cf),(_0x3eb3db,_0x4ca4a7)=>{const _0x21d075=_0x4e9322;this[_0x21d075(0x2e3)](_0x4ca4a7);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2c8),(_0x1c49da,_0x50f2fa)=>{const _0x436345=_0x4e9322;this[_0x436345(0x1d9)]?.[_0x436345(0x2c8)](_0x50f2fa[_0x436345(0x2fb)],_0x50f2fa[_0x436345(0x1e1)],_0x50f2fa[_0x436345(0x29d)]);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2ba),()=>{const _0x2be09d=_0x4e9322;this[_0x2be09d(0x228)]();}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x1c0),()=>{const _0x351c33=_0x4e9322;this[_0x351c33(0x2a3)]();}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x256),(_0x49fd84,_0x384057)=>{const _0x15146a=_0x4e9322;this[_0x15146a(0x1d9)]?.[_0x15146a(0x2ef)](_0x384057);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2f1),(_0x2c764c,{replyId:_0x402d6e})=>{const _0x21fcf1=_0x4e9322;console[_0x21fcf1(0x291)](_0x21fcf1(0x213),_0x402d6e);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x22c),(_0x4298bd,{replyId:_0x34aef1})=>{const _0x3f0ace=_0x4e9322;console[_0x3f0ace(0x291)](_0x3f0ace(0x2b5),_0x34aef1);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2f4),(_0x30a69a,_0x375614)=>{const _0x276050=_0x4e9322;this[_0x276050(0x30e)][_0x276050(0x2ff)][_0x276050(0x285)](_0x4efdc9)[_0x276050(0x2b1)](),this[_0x276050(0x1b5)](_0x375614);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x21a),(_0x3eb1e1,{replyId:_0x196fba,partIndex:_0x2d45b4})=>{const _0xa50b4f=_0x4e9322;this[_0xa50b4f(0x2cb)]=this[_0xa50b4f(0x276)][_0xa50b4f(0x22a)],this[_0xa50b4f(0x1ed)](_0x196fba,_0x2d45b4);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2ed),(_0x1eb5dc,{replyId:_0x2350ca,partIndex:_0x36f2f2})=>{const _0x1cdc63=_0x4e9322,_0x44f037=this[_0x1cdc63(0x1b3)](_0x2350ca,_0x36f2f2);_0x44f037&&_0x1cdc63(0x20b)!=_0x44f037[_0x1cdc63(0x1ab)][_0x1cdc63(0x284)][_0x1cdc63(0x30f)]&&this[_0x1cdc63(0x311)][_0x1cdc63(0x25a)]([_0x44f037[_0x1cdc63(0x1ab)]],_0x1cdc63(0x2da));}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x255),()=>{const _0x1ee115=_0x4e9322;this[_0x1ee115(0x311)][_0x1ee115(0x30d)](_0x1ee115(0x2da));}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x2bd),(_0x12886c,_0x4eb22a)=>{const _0x3b9a9c=_0x4e9322;this[_0x3b9a9c(0x30e)][_0x3b9a9c(0x2ff)][_0x3b9a9c(0x285)](_0x4efdc9)[_0x3b9a9c(0x2b1)](),this[_0x3b9a9c(0x1dd)](_0x4eb22a);}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x1b2),async(_0x186c15,{replyId:_0x4149a9,showDiff:_0x376e48})=>{const _0x1793b5=_0x4e9322,{reply:_0x437811}=this[_0x1793b5(0x271)](_0x4149a9),_0x10bf99=_0x437811[_0x1793b5(0x235)]({'showDiff':_0x376e48});await this[_0x1793b5(0x276)][_0x1793b5(0x1e0)]({'id':_0x437811['id'],'parts':_0x10bf99,'renderingStrategy':_0x1793b5(0x259)});}),this[_0x4e9322(0x219)](this[_0x4e9322(0x276)],_0x4e9322(0x1d7),(_0xa9fe59,{replyId:_0x59eacd,partIndex:_0x594ae5})=>{const _0x1bfe43=_0x4e9322;this[_0x1bfe43(0x236)]?.[_0x1bfe43(0x221)]==_0x59eacd&&this[_0x1bfe43(0x236)]?.[_0x1bfe43(0x23f)]==_0x594ae5&&this[_0x1bfe43(0x30e)][_0x1bfe43(0x2ff)][_0x1bfe43(0x285)](_0x4efdc9)[_0x1bfe43(0x2b1)]();const {reply:_0x20e52b}=this[_0x1bfe43(0x271)](_0x59eacd);_0x20e52b[_0x1bfe43(0x209)](_0x594ae5,_0x1bfe43(0x23b)),this[_0x1bfe43(0x311)][_0x1bfe43(0x30d)](_0x1bfe43(0x2da));});}async[_0x3d8fcb(0x1e4)](){const _0x2cea9f=_0x3d8fcb;this[_0x2cea9f(0x30e)]instanceof _0x2c26c0?this[_0x2cea9f(0x2ec)](this[_0x2cea9f(0x30e)]):this[_0x2cea9f(0x219)](this[_0x2cea9f(0x30e)][_0x2cea9f(0x26e)],_0x2cea9f(0x1b8),(_0x1eee5a,_0x27bb1a)=>{const _0x13d94d=_0x2cea9f;_0x27bb1a['on'](_0x13d94d(0x21f),()=>{const _0x497c58=_0x13d94d;this[_0x497c58(0x2ec)](_0x27bb1a);});}),await this[_0x2cea9f(0x289)]();}[_0x3d8fcb(0x288)](){const _0xee1e23=_0x3d8fcb;this[_0xee1e23(0x20f)][_0xee1e23(0x26f)](),super[_0xee1e23(0x288)]();}[_0x3d8fcb(0x1b5)](_0xb1c77c){const _0x4aad72=_0x3d8fcb,_0x4837b5=_0x482669(this[_0x4aad72(0x30e)]);if(!_0x4837b5[_0x4aad72(0x2ff)][_0x4aad72(0x2c4)](_0x4aad72(0x2b4)))throw new _0x49ab00(_0x4aad72(0x216),null);const _0x1f0340=this[_0x4aad72(0x30e)][_0x4aad72(0x2ff)][_0x4aad72(0x285)](_0x4aad72(0x295)),{reply:_0x539c4e,interaction:_0x56144d}=this[_0x4aad72(0x271)](_0xb1c77c[_0x4aad72(0x221)]),_0xc8001a=this[_0x4aad72(0x1b3)](_0xb1c77c[_0x4aad72(0x221)],_0xb1c77c[_0x4aad72(0x23f)]),_0x4dc916=void 0x0!==_0xb1c77c[_0x4aad72(0x23f)]?[_0x539c4e[_0x4aad72(0x207)][_0xb1c77c[_0x4aad72(0x23f)]]]:_0x539c4e[_0x4aad72(0x207)][_0x4aad72(0x244)](_0x40d449=>_0x4aad72(0x2c2)==_0x40d449[_0x4aad72(0x1e9)]),_0x6023a7=_0x4dc916[_0x4aad72(0x261)](_0x279b80=>_0x539c4e[_0x4aad72(0x207)][_0x4aad72(0x260)](_0x279b80));if(!_0xc8001a||_0x4aad72(0x20b)==_0xc8001a[_0x4aad72(0x1ab)][_0x4aad72(0x284)][_0x4aad72(0x30f)])return void _0x6023a7[_0x4aad72(0x305)](_0x4ccbac=>_0x539c4e[_0x4aad72(0x209)](_0x4ccbac,_0x4aad72(0x1c3)));_0x6023a7[_0x4aad72(0x305)](_0x5b9ead=>_0x539c4e[_0x4aad72(0x209)](_0x5b9ead,_0x4aad72(0x1a4)));const _0x51530d=_0x59ef3e({'editor':_0x4837b5,'reply':_0x539c4e,'interaction':_0x56144d,'groups':_0x4dc916,'transform':!0x0,'documentCompare':_0x1f0340,'documentCompareOptions':{'anchor':_0x4aad72(0x2ea),'markDeletions':!0x0}});let _0x2079c3;_0xc8001a&&this[_0x4aad72(0x258)](_0xc8001a[_0x4aad72(0x1ab)]),_0x4837b5[_0x4aad72(0x201)][_0x4aad72(0x1d4)](_0x13eeb6=>{const _0x224d73=_0x4aad72;_0x2079c3=_0x13eeb6[_0x224d73(0x220)],_0x4837b5[_0x224d73(0x2ff)][_0x224d73(0x285)](_0x224d73(0x1cb))[_0x224d73(0x28f)](_0x51530d),this[_0x224d73(0x311)][_0x224d73(0x30d)](_0x224d73(0x2da));}),this[_0x4aad72(0x239)][_0x4aad72(0x1e5)](_0x2079c3,{'interactionId':_0x56144d['id'],'replyId':_0x539c4e['id'],'indexes':_0x6023a7[_0x4aad72(0x2a2)]()}),this[_0x4aad72(0x1f8)](_0x539c4e);}[_0x3d8fcb(0x1dd)](_0x434799){const _0x42854b=_0x3d8fcb,_0x489a4d=_0x482669(this[_0x42854b(0x30e)]),_0x1aa47c=this[_0x42854b(0x30e)][_0x42854b(0x2ff)][_0x42854b(0x285)](_0x1c589e),{reply:_0x336297,interaction:_0x5c3819}=this[_0x42854b(0x271)](_0x434799[_0x42854b(0x221)]),_0x5ed7ad=this[_0x42854b(0x1b3)](_0x434799[_0x42854b(0x221)],_0x434799[_0x42854b(0x23f)]),_0x10c3a5=void 0x0!==_0x434799[_0x42854b(0x23f)]?[_0x336297[_0x42854b(0x207)][_0x434799[_0x42854b(0x23f)]]]:_0x336297[_0x42854b(0x207)][_0x42854b(0x244)](_0x3c480e=>_0x42854b(0x2c2)==_0x3c480e[_0x42854b(0x1e9)]),_0x3995fd=_0x10c3a5[_0x42854b(0x261)](_0x4937db=>_0x336297[_0x42854b(0x207)][_0x42854b(0x260)](_0x4937db));if(!_0x5ed7ad||_0x42854b(0x20b)==_0x5ed7ad[_0x42854b(0x1ab)][_0x42854b(0x284)][_0x42854b(0x30f)])return void _0x3995fd[_0x42854b(0x305)](_0x13059b=>_0x336297[_0x42854b(0x209)](_0x13059b,_0x42854b(0x1c3)));_0x3995fd[_0x42854b(0x305)](_0x5a90dc=>_0x336297[_0x42854b(0x209)](_0x5a90dc,_0x42854b(0x1a4)));const _0xd90c78=_0x59ef3e({'editor':_0x489a4d,'reply':_0x336297,'interaction':_0x5c3819,'groups':_0x10c3a5,'transform':!0x0,'documentCompare':_0x1aa47c,'documentCompareOptions':{'anchor':_0x42854b(0x2ea),'markDeletions':!0x1}});let _0x318192;_0x5ed7ad&&this[_0x42854b(0x258)](_0x5ed7ad[_0x42854b(0x1ab)]),_0x489a4d[_0x42854b(0x201)][_0x42854b(0x1d4)](_0x272851=>{const _0x213b3a=_0x42854b;_0x318192=_0x272851[_0x213b3a(0x220)];for(const _0x4a9c29 of _0xd90c78)_0x4a9c29[_0x213b3a(0x2f8)]=_0x489a4d[_0x213b3a(0x201)][_0x213b3a(0x2f0)][_0x213b3a(0x264)],_0x10322c(_0x489a4d,_0x4a9c29),_0x272851[_0x213b3a(0x220)][_0x213b3a(0x290)](_0x4a9c29),_0x489a4d[_0x213b3a(0x201)][_0x213b3a(0x231)](_0x4a9c29);}),this[_0x42854b(0x239)][_0x42854b(0x1e5)](_0x318192,{'interactionId':_0x5c3819['id'],'replyId':_0x336297['id'],'indexes':_0x3995fd[_0x42854b(0x2a2)]()}),this[_0x42854b(0x1f8)](_0x336297);}[_0x3d8fcb(0x1ed)](_0x49dbe0,_0x28a2a2){const _0x163d21=_0x3d8fcb,_0x52b36d=_0x482669(this[_0x163d21(0x30e)]),_0x5ccec1=this[_0x163d21(0x1b3)](_0x49dbe0,_0x28a2a2),_0x31b555=this[_0x163d21(0x30e)][_0x163d21(0x2ff)][_0x163d21(0x285)](_0x4efdc9);if(!_0x5ccec1)return void _0x31b555[_0x163d21(0x2b1)]();const {range:_0x5c5c44,currentIndex:_0x526919}=_0x5ccec1;if(_0x163d21(0x20b)==_0x5c5c44[_0x163d21(0x284)][_0x163d21(0x30f)]){const {reply:_0x482a7c}=this[_0x163d21(0x271)](_0x49dbe0);return _0x482a7c[_0x163d21(0x209)](_0x526919,_0x163d21(0x1c3)),void _0x31b555[_0x163d21(0x2b1)]();}if(this[_0x163d21(0x236)]?.[_0x163d21(0x221)]==_0x49dbe0&&this[_0x163d21(0x236)]?.[_0x163d21(0x23f)]==_0x526919)return;this[_0x163d21(0x1c7)](_0x31b555),this[_0x163d21(0x236)]={'replyId':_0x49dbe0,'partIndex':_0x526919};let _0x1a254e=_0x52b36d[_0x163d21(0x26c)][_0x163d21(0x285)](_0x163d21(0x2f3))||[..._0xc633fe];_0x52b36d[_0x163d21(0x2ff)][_0x163d21(0x2c4)](_0x163d21(0x2b4))||(_0x1a254e=_0x1a254e[_0x163d21(0x244)](_0x3af62b=>_0x163d21(0x2f4)!=_0x3af62b));const _0x268ff8=new _0x207dd5(_0x52b36d[_0x163d21(0x2e1)],{'showDiff':this[_0x163d21(0x2cb)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x163d21(0x1bf)},'hideHeader':!0x0,'availableActions':_0x1a254e},this[_0x163d21(0x20f)]);this[_0x163d21(0x1c7)](_0x268ff8);const {reply:_0x4ecf49}=this[_0x163d21(0x271)](_0x49dbe0),_0x48c501=_0x4ecf49[_0x163d21(0x235)]({'showDiff':this[_0x163d21(0x2cb)]})[_0x163d21(0x244)](_0x537369=>_0x537369[_0x163d21(0x215)]),_0x48dba1=_0x48c501[_0x163d21(0x268)](_0x17351b=>_0x17351b[_0x163d21(0x265)]==_0x526919);if(-0x1==_0x48dba1)return;const _0x3417ec=_0x48c501[_0x48dba1],_0x1b1fa8=_0x48c501['at']((_0x48dba1-0x1)%_0x48c501[_0x163d21(0x25f)])?.[_0x163d21(0x265)],_0x22f180=_0x48c501['at']((_0x48dba1+0x1)%_0x48c501[_0x163d21(0x25f)])?.[_0x163d21(0x265)];_0x268ff8[_0x163d21(0x26a)]({'parts':[_0x3417ec],'renderingStrategy':_0x163d21(0x259)});const _0x4e27d2=_0x526919!==_0x1b1fa8;this[_0x163d21(0x258)](_0x5c5c44,!0x0),_0x31b555[_0x163d21(0x206)]({'index':_0x526919,'title':_0x3da35b(this[_0x163d21(0x30e)][_0x163d21(0x2e1)],_0x163d21(0x2a1),(_0x48dba1+0x1)[_0x163d21(0x2ab)]()),'icon':_0x594162,'mainView':_0x268ff8,'showRotator':_0x4e27d2,'showApplyButton':!0x0,'showSuggestButton':_0x52b36d[_0x163d21(0x2ff)][_0x163d21(0x2c4)](_0x163d21(0x2b4)),'ranges':[_0x5c5c44]}),this[_0x163d21(0x276)][_0x163d21(0x303)](_0x49dbe0,_0x526919),this[_0x163d21(0x219)](_0x268ff8,_0x163d21(0x1b2),(_0x4de1b7,{showDiff:_0x1036e0})=>{const _0x33da6e=_0x163d21;this[_0x33da6e(0x2cb)]=_0x1036e0;const {reply:_0x584fc4}=this[_0x33da6e(0x271)](_0x49dbe0),_0x1673a0=_0x584fc4[_0x33da6e(0x235)]({'showDiff':_0x1036e0,'groupIndex':_0x526919});_0x268ff8[_0x33da6e(0x26a)]({'parts':_0x1673a0,'renderingStrategy':_0x33da6e(0x259)});}),this[_0x163d21(0x219)](_0x31b555,_0x163d21(0x2bd),()=>{const _0x2c3dcd=_0x163d21;this[_0x2c3dcd(0x1dd)]({'replyId':_0x49dbe0,'partIndex':_0x526919}),_0x4e27d2?this[_0x2c3dcd(0x1ed)](_0x49dbe0,_0x22f180):_0x31b555[_0x2c3dcd(0x2b1)]();}),this[_0x163d21(0x219)](_0x31b555,_0x163d21(0x2f4),()=>{const _0x3a3158=_0x163d21;this[_0x3a3158(0x1b5)]({'replyId':_0x49dbe0,'partIndex':_0x526919}),_0x4e27d2?this[_0x3a3158(0x1ed)](_0x49dbe0,_0x22f180):_0x31b555[_0x3a3158(0x2b1)]();}),_0x4e27d2&&(this[_0x163d21(0x219)](_0x31b555,_0x163d21(0x25b),()=>{const _0x2e6f84=_0x163d21;this[_0x2e6f84(0x1ed)](_0x49dbe0,_0x22f180);}),this[_0x163d21(0x219)](_0x31b555,_0x163d21(0x222),()=>{const _0x7038e5=_0x163d21;this[_0x7038e5(0x1ed)](_0x49dbe0,_0x1b1fa8);})),this[_0x163d21(0x219)](_0x31b555,_0x163d21(0x24f),()=>{const _0x33a0cc=_0x163d21;this[_0x33a0cc(0x1c7)](_0x31b555),this[_0x33a0cc(0x1c7)](_0x268ff8),this[_0x33a0cc(0x236)]=null;});}[_0x3d8fcb(0x1b3)](_0x12108d,_0x6442b8){const _0x21a3fb=_0x3d8fcb,_0x186072=_0x482669(this[_0x21a3fb(0x30e)]),{reply:_0x2ce9de,interaction:_0x462443}=this[_0x21a3fb(0x271)](_0x12108d),_0x4162e2=_0x2ce9de[_0x21a3fb(0x207)][_0x21a3fb(0x244)](_0x48d1a6=>_0x21a3fb(0x2c2)==_0x48d1a6[_0x21a3fb(0x1e9)]),_0xa789c8=_0x4162e2[_0x21a3fb(0x261)](_0x32e007=>_0x2ce9de[_0x21a3fb(0x207)][_0x21a3fb(0x260)](_0x32e007));void 0x0===_0x6442b8&&(_0x6442b8=_0xa789c8[0x0]);const _0x1c7479=_0xa789c8[_0x21a3fb(0x260)](_0x6442b8);if(-0x1==_0x1c7479)return null;const _0x2c2600=_0x4162e2[_0x1c7479],_0x2d483c=new _0x2ea254([]),_0x2eda9f=new _0x2ea254([]);for(const _0x332655 of _0x2c2600[_0x21a3fb(0x238)])if(_0x21a3fb(0x308)!=_0x332655[_0x21a3fb(0x204)]&&_0x2eda9f[_0x21a3fb(0x275)][_0x21a3fb(0x1ad)](_0x332655[_0x21a3fb(0x23d)][_0x21a3fb(0x23e)](!0x0)),_0x21a3fb(0x218)!=_0x332655[_0x21a3fb(0x204)]){const _0x27f290=_0x5b5b6a(_0x5e8cda=>_0x13985f(_0x5e8cda,_0x21a3fb(0x1d6))==_0x332655['id'],_0x2ce9de[_0x21a3fb(0x2c0)],!0x0);_0x2d483c[_0x21a3fb(0x275)][_0x21a3fb(0x1ad)](_0x27f290[_0x21a3fb(0x23e)](!0x0));}if(0x0==_0x2d483c[_0x21a3fb(0x275)][_0x21a3fb(0x25f)]){if(_0x2c2600[_0x21a3fb(0x238)][0x0][_0x21a3fb(0x254)]){const _0x53b102=_0x2517b7(_0x21a3fb(0x1d6),_0x2c2600[_0x21a3fb(0x238)][0x0][_0x21a3fb(0x254)],_0x2ce9de[_0x21a3fb(0x2c0)]);_0x2d483c[_0x21a3fb(0x275)][_0x21a3fb(0x2b0)](_0x53b102[_0x21a3fb(0x23e)](!0x0)),_0x2eda9f[_0x21a3fb(0x275)][_0x21a3fb(0x2b0)](_0x53b102[_0x21a3fb(0x23e)](!0x0)),_0x53b102[_0x21a3fb(0x21b)]&&(_0x2d483c[_0x21a3fb(0x275)][_0x21a3fb(0x1ad)](_0x53b102[_0x21a3fb(0x21b)][_0x21a3fb(0x23e)](!0x0)),_0x2eda9f[_0x21a3fb(0x275)][_0x21a3fb(0x1ad)](_0x53b102[_0x21a3fb(0x21b)][_0x21a3fb(0x23e)](!0x0)));}else{const _0x2827f9=_0x2ce9de[_0x21a3fb(0x2c0)][_0x21a3fb(0x275)][0x0];if(!_0x2827f9)return null;_0x2d483c[_0x21a3fb(0x275)][_0x21a3fb(0x1ad)](_0x2827f9[_0x21a3fb(0x23e)](!0x0)),_0x2eda9f[_0x21a3fb(0x275)][_0x21a3fb(0x1ad)](_0x2827f9[_0x21a3fb(0x23e)](!0x0));}}const _0x2eb863=_0x462443[_0x21a3fb(0x1be)](),_0x29d293=_0x186072[_0x21a3fb(0x25c)][_0x21a3fb(0x21d)](_0x2eb863[_0x21a3fb(0x25e)]),_0x42f0a7=_0x1e0709(_0x2d483c),_0x154938=_0x186072[_0x21a3fb(0x25c)][_0x21a3fb(0x21d)](_0x42f0a7),_0x4552be=_0x186072[_0x21a3fb(0x25c)][_0x21a3fb(0x21d)](_0x42f0a7),_0xabcaba=_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x27f)](_0x154938,0x0),_0x5da86c=_0x1e0709(_0x2eda9f),_0x1d8c01={'anchor':_0xabcaba,'markDeletions':!0x1},_0x305a24=_0x186072[_0x21a3fb(0x2ff)][_0x21a3fb(0x285)](_0x1c589e)[_0x21a3fb(0x23a)](_0x42f0a7,_0x5da86c,_0x1d8c01)[_0x21a3fb(0x202)]();if(!_0x305a24[_0x21a3fb(0x25f)])return null;_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x1d4)](_0x1e3d42=>{const _0x55278f=_0x21a3fb;for(const _0x24baf7 of _0x305a24)if(_0x55278f(0x1eb)==_0x24baf7[_0x55278f(0x204)]){const _0xfd473e=_0x24baf7[_0x55278f(0x2d6)],_0x5d0491=_0x24baf7[_0x55278f(0x28c)],_0x551a31=new _0x440562(_0xfd473e,_0x5d0491);_0x1e3d42[_0x55278f(0x220)][_0x55278f(0x290)](_0x551a31),_0x186072[_0x55278f(0x201)][_0x55278f(0x231)](_0x551a31);}else _0x55278f(0x251)!==_0x24baf7[_0x55278f(0x204)]&&(_0x24baf7[_0x55278f(0x2f8)]=null,_0x24baf7[_0x55278f(0x1aa)]=!0x1,_0x1e3d42[_0x55278f(0x220)][_0x55278f(0x290)](_0x24baf7),_0x186072[_0x55278f(0x201)][_0x55278f(0x231)](_0x24baf7));});const _0x38904d=_0x3e6ccc(_0x186072,_0x305a24,_0x154938);_0x4bc8eb(_0x186072[_0x21a3fb(0x201)],_0x38904d);const _0x1c126b=_0x38904d[_0x21a3fb(0x300)]()[_0x21a3fb(0x2f9)][_0x21a3fb(0x1b4)][_0x21a3fb(0x2a2)](),_0x5ba8cc=_0x38904d[_0x21a3fb(0x300)]()[_0x21a3fb(0x1fb)][_0x21a3fb(0x1b4)][_0x21a3fb(0x2a2)](),_0x35848d=[];let _0x118578=_0x154938,_0x5df8bc=_0x4552be;for(let _0x1479b3=0x0;_0x1479b3<_0x5ba8cc[_0x21a3fb(0x25f)];_0x1479b3++){const _0x17046=_0x118578[_0x21a3fb(0x2ee)]-_0x5ba8cc[_0x1479b3];_0x35848d[_0x1479b3]=_0x5df8bc[_0x21a3fb(0x2ee)]-_0x17046,_0x118578=_0x118578[_0x21a3fb(0x23c)](_0x5ba8cc[_0x1479b3]),_0x5df8bc=_0x5df8bc[_0x21a3fb(0x23c)](_0x35848d[_0x1479b3]);}const _0x47cecf=_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x200)](_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x2a5)](_0x4552be,_0x1c126b),_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x2a5)](_0x4552be,_0x35848d)),_0x5852f6=_0x4552be[_0x21a3fb(0x1f9)](0x0)[_0x21a3fb(0x2d4)](_0x5db607),_0x1af960=Array[_0x21a3fb(0x1fe)](_0x29d293[_0x21a3fb(0x26b)]())[_0x21a3fb(0x1c6)](_0x4fa28e=>_0x4fa28e[_0x21a3fb(0x2d4)](_0x5db607)==_0x5852f6)[_0x21a3fb(0x2f5)](),_0x6f4fb7=_0x47cecf[_0x21a3fb(0x2f9)][_0x21a3fb(0x1b4)][_0x21a3fb(0x2a2)](),_0x309775=_0x47cecf[_0x21a3fb(0x1fb)][_0x21a3fb(0x1b4)][_0x21a3fb(0x2a2)]();_0x6f4fb7[0x0]=_0x1af960[0x0]+_0x6f4fb7[0x0],_0x309775[0x0]=_0x1af960[0x0]+_0x309775[0x0];let _0x5e4b70=_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x200)](_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x2a5)](_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x2f0)][_0x21a3fb(0x21e)](),_0x6f4fb7),_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x2a5)](_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x2f0)][_0x21a3fb(0x21e)](),_0x309775));const _0x77ba07=_0x186072[_0x21a3fb(0x201)][_0x21a3fb(0x2f0)][_0x21a3fb(0x282)][_0x21a3fb(0x202)](_0x2eb863[_0x21a3fb(0x264)]);for(const _0x1b3a9c of _0x77ba07)_0x5e4b70=_0x393e05[_0x21a3fb(0x2a7)](_0x5e4b70[_0x21a3fb(0x298)](_0x1b3a9c));return{'range':_0x5e4b70,'currentIndex':_0x6442b8};}[_0x3d8fcb(0x2ec)](_0x4d9758){const _0x31af5e=_0x3d8fcb;if(!_0x4d9758[_0x31af5e(0x2ff)][_0x31af5e(0x2c4)](_0x31af5e(0x2c6)))return;const _0x379de9=_0x4d9758[_0x31af5e(0x1d0)][_0x31af5e(0x285)](_0x31af5e(0x2cc)),_0x2fc736=_0x4d9758[_0x31af5e(0x1d0)][_0x31af5e(0x285)](_0x31af5e(0x1c1));this[_0x31af5e(0x219)](_0x379de9,_0x31af5e(0x1c9),(_0x74ed4d,_0x32313d,_0x2a0bcd)=>{const _0x5ebf15=_0x31af5e,_0x4bdecd=this[_0x5ebf15(0x239)][_0x5ebf15(0x285)](_0x32313d);if(!_0x4bdecd)return;const _0x32fd22=this[_0x5ebf15(0x1d9)][_0x5ebf15(0x30a)](_0x4bdecd[_0x5ebf15(0x30b)])[_0x5ebf15(0x2dd)](_0x4bdecd[_0x5ebf15(0x221)]);_0x4bdecd[_0x5ebf15(0x2e7)][_0x5ebf15(0x305)](_0xbb01d2=>_0x32fd22[_0x5ebf15(0x209)](_0xbb01d2,_0x5ebf15(0x2c2))),this[_0x5ebf15(0x239)][_0x5ebf15(0x2fa)](_0x32313d),this[_0x5ebf15(0x239)][_0x5ebf15(0x1e5)](_0x2a0bcd,_0x4bdecd);}),this[_0x31af5e(0x219)](_0x2fc736,_0x31af5e(0x1c9),(_0x3a2a0a,_0x2bfa04,_0x5d8f2a)=>{const _0x1af6bb=_0x31af5e,_0x5652b7=this[_0x1af6bb(0x239)][_0x1af6bb(0x285)](_0x2bfa04);if(!_0x5652b7)return;const _0x5b1819=this[_0x1af6bb(0x1d9)][_0x1af6bb(0x30a)](_0x5652b7[_0x1af6bb(0x30b)])[_0x1af6bb(0x2dd)](_0x5652b7[_0x1af6bb(0x221)]);_0x5652b7[_0x1af6bb(0x2e7)][_0x1af6bb(0x305)](_0x4e147b=>_0x5b1819[_0x1af6bb(0x209)](_0x4e147b,_0x1af6bb(0x1a4))),this[_0x1af6bb(0x239)][_0x1af6bb(0x2fa)](_0x2bfa04),this[_0x1af6bb(0x239)][_0x1af6bb(0x1e5)](_0x5d8f2a,_0x5652b7);});}async[_0x3d8fcb(0x2aa)](_0x2354e8){const _0x183233=_0x3d8fcb;this[_0x183233(0x30e)][_0x183233(0x2ff)][_0x183233(0x285)](_0x4efdc9)[_0x183233(0x2b1)](),this[_0x183233(0x276)][_0x183233(0x1e3)](_0x183233(0x259)),this[_0x183233(0x276)][_0x183233(0x1ff)](!0x0),await this[_0x183233(0x1b9)]();try{await this[_0x183233(0x24b)][_0x183233(0x279)](_0x2354e8)[_0x183233(0x24e)](),await this[_0x183233(0x289)](_0x2354e8),this[_0x183233(0x280)]('\x20');const {sessionId:_0xe34c3b}=this[_0x183233(0x311)][_0x183233(0x20c)]();await this[_0x183233(0x1d9)][_0x183233(0x1c4)](_0x2354e8,_0xe34c3b),this[_0x183233(0x1d9)][_0x183233(0x270)]()&&this[_0x183233(0x1d9)][_0x183233(0x29a)](_0x3da35b(this[_0x183233(0x30e)][_0x183233(0x2e1)],_0x183233(0x1fc)));}catch(_0x252003){this[_0x183233(0x276)][_0x183233(0x274)]({'errorMessage':_0x3da35b(this[_0x183233(0x30e)][_0x183233(0x2e1)],_0x183233(0x2f7)),'id':_0x2354e8}),this[_0x183233(0x1a7)](new _0x49ab00(_0x183233(0x1bb),this,{'error':_0x252003}));}finally{this[_0x183233(0x30e)][_0x183233(0x2ff)][_0x183233(0x285)](_0x5fec5e)[_0x183233(0x22d)][_0x183233(0x2a4)](_0x183233(0x1a5)),this[_0x183233(0x276)][_0x183233(0x286)](),this[_0x183233(0x276)][_0x183233(0x1e3)](_0x183233(0x20e)),this[_0x183233(0x276)][_0x183233(0x1ff)](!0x1);}}[_0x3d8fcb(0x1e2)](_0x54d3a4){const _0x45cee3=_0x3d8fcb;this[_0x45cee3(0x1d9)]['id']===_0x54d3a4&&this[_0x45cee3(0x289)]();}async[_0x3d8fcb(0x1b0)](){const _0x55a83d=_0x3d8fcb,_0x3cb35c=this[_0x55a83d(0x311)][_0x55a83d(0x296)]();this[_0x55a83d(0x1d9)]?.[_0x55a83d(0x1b6)](_0x3cb35c),this[_0x55a83d(0x1d9)]?.[_0x55a83d(0x29a)](_0x3da35b(this[_0x55a83d(0x30e)][_0x55a83d(0x2e1)],_0x55a83d(0x1fc)));}[_0x3d8fcb(0x214)](){const _0x29e2e7=_0x3d8fcb;this[_0x29e2e7(0x1d9)]?.[_0x29e2e7(0x262)]();}[_0x3d8fcb(0x307)](){const _0x3424a3=_0x3d8fcb;this[_0x3424a3(0x276)][_0x3424a3(0x307)]();}async[_0x3d8fcb(0x27e)](){const _0x3e7c9e=_0x3d8fcb;await this[_0x3e7c9e(0x289)]();}async[_0x3d8fcb(0x242)]({message:_0x3caddc,quickActionData:_0x3f2945}){const _0x223740=_0x3d8fcb;await this[_0x223740(0x225)]({'userMessage':_0x3caddc,'quickActionData':_0x3f2945});}[_0x3d8fcb(0x245)](){const _0x4854f7=_0x3d8fcb,_0x594a89=this[_0x4854f7(0x30e)][_0x4854f7(0x26c)][_0x4854f7(0x285)](_0x4854f7(0x1b7));if(!_0x594a89)throw new _0x49ab00(_0x4854f7(0x1db),this);return _0x594a89;}async[_0x3d8fcb(0x289)](_0x3a5f85){const _0x500250=_0x3d8fcb;try{this[_0x500250(0x276)][_0x500250(0x267)](),await this[_0x500250(0x247)](_0x3a5f85);}catch(_0x46ba2c){this[_0x500250(0x276)][_0x500250(0x274)]({'errorMessage':_0x3da35b(this[_0x500250(0x30e)][_0x500250(0x2e1)],_0x500250(0x2c7)),'id':_0x3a5f85||_0x5efed6()}),console[_0x500250(0x211)](_0x46ba2c),this[_0x500250(0x1d9)]=void 0x0,this[_0x500250(0x276)][_0x500250(0x2a8)]();}}async[_0x3d8fcb(0x247)](_0x19fefd){const _0x55cd0b=_0x3d8fcb,_0xf32d62=this[_0x55cd0b(0x30e)][_0x55cd0b(0x2ff)][_0x55cd0b(0x285)](_0x4efdc9);let _0x9c439b;_0xf32d62[_0x55cd0b(0x1cc)]&&_0xf32d62[_0x55cd0b(0x2b1)](),_0x19fefd||!this[_0x55cd0b(0x1d9)]?_0x9c439b=this[_0x55cd0b(0x30e)][_0x55cd0b(0x26c)][_0x55cd0b(0x285)](_0x55cd0b(0x2b7)):this[_0x55cd0b(0x276)][_0x55cd0b(0x1ca)]&&(_0x9c439b=this[_0x55cd0b(0x1d9)][_0x55cd0b(0x29c)]['id']),await this[_0x55cd0b(0x1b9)]();const _0x2170e4=this[_0x55cd0b(0x245)](),_0x8378c8=_0x19fefd||_0x5efed6();this[_0x55cd0b(0x1d9)]=new _0x55364e({'connector':this[_0x55cd0b(0x24b)],'chatModels':this[_0x55cd0b(0x1cf)],'selectedModelId':_0x9c439b,'conversationId':_0x8378c8,'group':_0x2170e4,'getEditor':()=>_0x482669(this[_0x55cd0b(0x30e)])}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2ca),(_0x314630,_0x4077ee)=>{const _0x219a59=_0x55cd0b;this[_0x219a59(0x276)][_0x219a59(0x233)](_0x4077ee),this[_0x219a59(0x276)][_0x219a59(0x28e)](),this[_0x219a59(0x276)][_0x219a59(0x2eb)](),this[_0x219a59(0x276)][_0x219a59(0x263)](),_0x19fefd||(this[_0x219a59(0x276)][_0x219a59(0x1a8)](),this[_0x219a59(0x1d9)]?.[_0x219a59(0x29a)](_0x3da35b(this[_0x219a59(0x30e)][_0x219a59(0x2e1)],_0x219a59(0x1fc))));}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2df),(_0x471911,_0x1ba535)=>{const _0x1cea68=_0x55cd0b;this[_0x1cea68(0x276)][_0x1cea68(0x21c)](_0x1ba535[_0x1cea68(0x24a)]);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x1bc),(_0x36dd30,_0x1682eb)=>{const _0x21491a=_0x55cd0b;this[_0x21491a(0x276)][_0x21491a(0x2bf)](_0x1682eb);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x210),()=>{const _0x5667c7=_0x55cd0b;this[_0x5667c7(0x276)][_0x5667c7(0x2b8)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2d7),()=>{const _0x448d31=_0x55cd0b;this[_0x448d31(0x276)][_0x448d31(0x2b8)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x1df),(_0x456ce0,_0x5d5fa8)=>{const _0x2fe57f=_0x55cd0b;this[_0x2fe57f(0x276)][_0x2fe57f(0x1bd)](_0x5d5fa8,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x299),(_0x19a715,_0x44c69d)=>{const _0x3303d0=_0x55cd0b;this[_0x3303d0(0x276)][_0x3303d0(0x1bd)](_0x44c69d,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2fe),()=>{const _0x224004=_0x55cd0b;this[_0x224004(0x276)][_0x224004(0x2c1)]();}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x229),async()=>{const _0x657b18=_0x55cd0b;await this[_0x657b18(0x276)][_0x657b18(0x1dc)]();}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x217),(_0x3cb99f,_0x4c1374)=>{const _0x892f30=_0x55cd0b;this[_0x892f30(0x276)][_0x892f30(0x2d2)](_0x4c1374['id']);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x306),(_0x55eb3b,_0x5780c6,_0x3058c9)=>{const _0x10fa51=_0x55cd0b;this[_0x10fa51(0x280)](_0x5780c6,_0x3058c9);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2f2),(_0xd815ee,_0x385a60)=>{const _0x329185=_0x55cd0b;_0x329185(0x1af)===_0x385a60[_0x329185(0x204)]?this[_0x329185(0x276)][_0x329185(0x269)](_0x385a60):this[_0x329185(0x276)][_0x329185(0x29f)](_0x385a60);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x205),async(_0x665c55,_0x25a4b6)=>{const _0x108e69=_0x55cd0b;await this[_0x108e69(0x1fa)]({'reply':_0x25a4b6});}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x302),(_0x87ea66,{reply:_0x340f4e,index:_0x4529b1,state:_0x4a6a08})=>{const _0x1e4093=_0x55cd0b;this[_0x1e4093(0x276)][_0x1e4093(0x203)]({'id':_0x340f4e['id'],'index':_0x4529b1,'state':_0x4a6a08});}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x273),(_0x34907f,_0x54e7b2)=>{const _0x2b9b9d=_0x55cd0b;if(this[_0x2b9b9d(0x276)][_0x2b9b9d(0x1c5)](_0x54e7b2[_0x2b9b9d(0x2fc)],_0x54e7b2[_0x2b9b9d(0x2d1)]),_0x2b9b9d(0x2d9)===_0x54e7b2[_0x2b9b9d(0x2fc)][_0x2b9b9d(0x204)]){const _0x431865=[..._0x482669(this[_0x2b9b9d(0x30e)])[_0x2b9b9d(0x201)][_0x2b9b9d(0x2f0)][_0x2b9b9d(0x2d9)][_0x2b9b9d(0x1c2)]()];this[_0x2b9b9d(0x311)][_0x2b9b9d(0x25a)](_0x431865,_0x2b9b9d(0x1ef)+this[_0x2b9b9d(0x1d9)]?.['id']);}}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2dc),(_0x3f0836,_0x15ac72)=>{const _0x2585ac=_0x55cd0b;this[_0x2585ac(0x276)][_0x2585ac(0x2cf)](_0x15ac72[_0x2585ac(0x2db)]),_0x2585ac(0x25d)==_0x15ac72[_0x2585ac(0x2db)]&&this[_0x2585ac(0x214)](),_0x2585ac(0x2d9)===_0x15ac72[_0x2585ac(0x204)]&&this[_0x2585ac(0x311)][_0x2585ac(0x30d)](_0x2585ac(0x1ef)+this[_0x2585ac(0x1d9)]?.['id']);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x27a),(_0x3e1a6f,_0x339fc)=>{const _0x5a461c=_0x55cd0b;this[_0x5a461c(0x276)][_0x5a461c(0x304)](_0x339fc[_0x5a461c(0x2fc)][_0x5a461c(0x2db)],_0x339fc[_0x5a461c(0x2d1)]);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2d8),(_0x5ce99a,_0xf972e7)=>{const _0x5f4c83=_0x55cd0b;this[_0x5f4c83(0x276)][_0x5f4c83(0x27c)](_0xf972e7[_0x5f4c83(0x1f7)]);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x1f6),(_0x426722,_0x56826a)=>{const _0x339c98=_0x55cd0b;this[_0x339c98(0x276)][_0x339c98(0x252)](_0x56826a[_0x339c98(0x249)]);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x2fd),(_0x2a8af,_0x4b2645)=>{const _0x14ae23=_0x55cd0b;this[_0x14ae23(0x276)][_0x14ae23(0x29b)](_0x4b2645[_0x14ae23(0x2fb)],_0x4b2645[_0x14ae23(0x293)],_0x4b2645[_0x14ae23(0x1f5)],_0x4b2645[_0x14ae23(0x29d)]);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x26d),(_0x38bcaa,_0x2d899e)=>{const _0x351a47=_0x55cd0b;this[_0x351a47(0x276)][_0x351a47(0x1f0)](_0x2d899e[_0x351a47(0x2fb)],_0x2d899e[_0x351a47(0x2d0)],_0x2d899e[_0x351a47(0x243)]);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x240),(_0x683f88,_0xf370e4)=>{const _0x440942=_0x55cd0b;this[_0x440942(0x276)][_0x440942(0x278)](_0xf370e4);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x22e),(_0x2f0d4a,_0x4e3aa0)=>{const _0x28e8c8=_0x55cd0b;this[_0x28e8c8(0x276)][_0x28e8c8(0x1f4)](_0x4e3aa0[_0x28e8c8(0x29c)],_0x4e3aa0[_0x28e8c8(0x24d)]);}),this[_0x55cd0b(0x1d9)]['on'](_0x55cd0b(0x211),(_0xa60253,{error:_0xabf3b4,interactionId:_0x65dddb,fileName:_0x5b5ffe,url:_0x2bb3da,sourceId:_0x439af8,sourceLabel:_0xd4c597})=>{const _0x29fb8c=_0x55cd0b,_0x3c0b5e=_0x65dddb?_0x65dddb+':'+_0x5efed6():_0x5efed6();_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x2c9))?this[_0x29fb8c(0x276)][_0x29fb8c(0x2e6)]({'staticMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x1f1)),'id':_0x3c0b5e}):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x1d1))||_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x1b1))?(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x2c7)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x2e8))?this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x1cd),_0x5b5ffe),'id':_0x3c0b5e}):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x20d))?this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x226),_0x2bb3da),'id':_0x3c0b5e}):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x227))?this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x28a)),'id':_0x3c0b5e}):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x2bb))?this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x2de)),'id':_0x3c0b5e}):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x2af))?(_0x439af8&&this[_0x29fb8c(0x276)][_0x29fb8c(0x292)](_0x439af8),this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x1da),_0xd4c597||_0x29fb8c(0x293)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x283))?(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x1ae)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x253))?(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x2c3)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x30c))?(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x246)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x301))?(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x2bc)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x1ac))?(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x2b6)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):_0xabf3b4[_0x29fb8c(0x266)][_0x29fb8c(0x281)](_0x29fb8c(0x310))?(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x208)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4)):(this[_0x29fb8c(0x276)][_0x29fb8c(0x274)]({'errorMessage':_0x3da35b(this[_0x29fb8c(0x30e)][_0x29fb8c(0x2e1)],_0x29fb8c(0x2e4)),'id':_0x3c0b5e}),this[_0x29fb8c(0x1a7)](_0xabf3b4));}),await this[_0x55cd0b(0x1d9)][_0x55cd0b(0x2e2)](this[_0x55cd0b(0x30e)][_0x55cd0b(0x26c)][_0x55cd0b(0x285)](_0x55cd0b(0x1ee))),_0x19fefd||await this[_0x55cd0b(0x1d9)][_0x55cd0b(0x2f9)]();}async[_0x3d8fcb(0x225)]({userMessage:_0x2097d0,quickActionData:_0x36d778}){const _0x52af7b=_0x3d8fcb;if(!this[_0x52af7b(0x1d9)])throw new _0x49ab00(_0x52af7b(0x1f3));this[_0x52af7b(0x1d9)][_0x52af7b(0x2f6)]()&&await this[_0x52af7b(0x1d9)][_0x52af7b(0x20a)](this[_0x52af7b(0x311)][_0x52af7b(0x20c)]()),this[_0x52af7b(0x1d9)]['id']&&this[_0x52af7b(0x1d9)][_0x52af7b(0x257)]&&await this[_0x52af7b(0x1d9)][_0x52af7b(0x1a6)]({'userMessage':_0x2097d0,'quickActionData':_0x36d778}),this[_0x52af7b(0x1ce)]();}[_0x3d8fcb(0x1ce)](){const _0x4d5419=_0x3d8fcb,_0x2fdf9f=_0x482669(this[_0x4d5419(0x30e)])[_0x4d5419(0x201)],_0x4aa7d0=Array[_0x4d5419(0x1fe)](_0x2fdf9f[_0x4d5419(0x1ea)][_0x4d5419(0x2ae)](_0x32dd7d));_0x2fdf9f[_0x4d5419(0x1d4)](_0x2dd05f=>{const _0x1b169b=_0x4d5419;_0x4aa7d0[_0x1b169b(0x305)](_0x58f7df=>_0x2dd05f[_0x1b169b(0x1d8)](_0x58f7df));});}[_0x3d8fcb(0x250)](){const _0x17ccab=_0x3d8fcb;console[_0x17ccab(0x291)](_0x17ccab(0x1ba));}[_0x3d8fcb(0x2e0)](_0x26679d){const _0x534eb9=_0x3d8fcb;this[_0x534eb9(0x276)][_0x534eb9(0x2be)](_0x26679d);}[_0x3d8fcb(0x1a7)](_0x402c45){const _0x3c8f99=_0x3d8fcb;_0x272904(_0x402c45[_0x3c8f99(0x266)]);}[_0x3d8fcb(0x2e3)](_0x2f6877){const _0x359bf7=_0x3d8fcb;this[_0x359bf7(0x1d9)]?.[_0x359bf7(0x1d2)](_0x2f6877);}[_0x3d8fcb(0x228)](){const _0x403dc6=_0x3d8fcb;this[_0x403dc6(0x1d9)]?.[_0x403dc6(0x2ba)]();}[_0x3d8fcb(0x2a3)](){const _0x5a1517=_0x3d8fcb;this[_0x5a1517(0x1d9)]?.[_0x5a1517(0x1c0)]();}[_0x3d8fcb(0x271)](_0x1c3e51){const _0x54fcd9=_0x3d8fcb,[_0x56f4cb,_0x5ab750]=_0x1c3e51[_0x54fcd9(0x297)](':'),_0x1405b5=this[_0x54fcd9(0x1d9)][_0x54fcd9(0x30a)](_0x56f4cb),_0x5216dc=_0x1405b5[_0x54fcd9(0x2dd)](_0x5ab750);return{'interaction':_0x1405b5,'reply':_0x5216dc};}[_0x3d8fcb(0x258)](_0x4a12d3,_0x41c860=!0x1){const _0x3b3d24=_0x3d8fcb,_0x2ecf83=_0x482669(this[_0x3b3d24(0x30e)]),_0x173d95={'target':_0x2ecf83[_0x3b3d24(0x2e9)][_0x3b3d24(0x22d)][_0x3b3d24(0x1c8)][_0x3b3d24(0x234)](_0x2ecf83[_0x3b3d24(0x2e9)][_0x3b3d24(0x2a9)][_0x3b3d24(0x294)](_0x4a12d3)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x41c860};_0x41c860&&(_0x173d95[_0x3b3d24(0x22b)]=!0x0),_0x47f9c4(_0x173d95);}[_0x3d8fcb(0x280)](_0x5bf6fc,_0x3571bf=!0x1){const _0x10c7f1=_0x3d8fcb;this[_0x10c7f1(0x276)][_0x10c7f1(0x306)](_0x5bf6fc||_0x3da35b(this[_0x10c7f1(0x30e)][_0x10c7f1(0x2e1)],_0x10c7f1(0x212)),_0x3571bf);}async[_0x3d8fcb(0x1fa)]({reply:_0x1c8c79,renderingStrategy:_0x165e72}){const _0xc76d20=_0x3d8fcb,{id:_0x3938fe,isDone:_0x4250ed,type:_0x39dd11,parsedContent:_0x1180fe}=_0x1c8c79;if(_0xc76d20(0x2a6)===_0x39dd11){const _0x3f915d=_0x1c8c79[_0xc76d20(0x235)]({'showDiff':this[_0xc76d20(0x276)][_0xc76d20(0x22a)]});await this[_0xc76d20(0x276)][_0xc76d20(0x1e0)]({'id':_0x3938fe,'parts':_0x3f915d,'renderingStrategy':_0x165e72,'isDone':_0x4250ed});}else _0xc76d20(0x1af)===_0x39dd11&&await this[_0xc76d20(0x276)][_0xc76d20(0x223)]({'id':_0x3938fe,'parsedContent':_0x1180fe,'renderingStrategy':_0x165e72,'isDone':_0x4250ed});_0x4250ed&&_0x1c8c79[_0xc76d20(0x2ad)][_0xc76d20(0x25f)]>0x0&&this[_0xc76d20(0x276)][_0xc76d20(0x1ec)](_0x3938fe,_0x1c8c79[_0xc76d20(0x2ad)]);}async[_0x3d8fcb(0x1b9)](){const _0x3d2d5b=_0x3d8fcb,_0x4c12d7=this[_0x3d2d5b(0x1d9)]?.[_0x3d2d5b(0x28b)];_0x4c12d7&&(_0x4c12d7[_0x3d2d5b(0x2cd)](),this[_0x3d2d5b(0x276)][_0x3d2d5b(0x2b9)](_0x4c12d7));}async[_0x3d8fcb(0x248)](){const _0x3c02cf=_0x3d8fcb,_0x2feec0=this[_0x3c02cf(0x1d9)]?.[_0x3c02cf(0x28b)];if(_0x2feec0){for await(const _0x482798 of _0x2feec0[_0x3c02cf(0x1fd)])await this[_0x3c02cf(0x1fa)]({'reply':_0x482798,'renderingStrategy':_0x3c02cf(0x259)});}}[_0x3d8fcb(0x1f8)](_0x3ebfc1){const _0x4e4116=_0x3d8fcb,_0x45fe59={'positiveCount':_0x3ebfc1[_0x4e4116(0x207)][_0x4e4116(0x244)](_0x494447=>_0x4e4116(0x1a4)===_0x494447[_0x4e4116(0x1e9)])[_0x4e4116(0x25f)],'totalCount':_0x3ebfc1[_0x4e4116(0x207)][_0x4e4116(0x25f)],'modificationId':_0x3ebfc1['id']},_0x9ba8e2=this[_0x4e4116(0x1d9)][_0x4e4116(0x30a)](_0x3ebfc1[_0x4e4116(0x30b)])[_0x4e4116(0x224)];this[_0x4e4116(0x24b)][_0x4e4116(0x1f2)](this[_0x4e4116(0x1d9)]['id'],_0x9ba8e2,_0x45fe59);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f44c5=_0x3982;(function(_0x2b4890,_0x172529){const _0xc50c07=_0x3982,_0x71f7d8=_0x2b4890();while(!![]){try{const _0x3e89fc=-parseInt(_0xc50c07(0xc9))/0x1*(-parseInt(_0xc50c07(0xf4))/0x2)+parseInt(_0xc50c07(0xd2))/0x3+parseInt(_0xc50c07(0xbe))/0x4+-parseInt(_0xc50c07(0xb6))/0x5+-parseInt(_0xc50c07(0xa3))/0x6*(parseInt(_0xc50c07(0x124))/0x7)+-parseInt(_0xc50c07(0xfd))/0x8+parseInt(_0xc50c07(0xd1))/0x9;if(_0x3e89fc===_0x172529)break;else _0x71f7d8['push'](_0x71f7d8['shift']());}catch(_0x5c8893){_0x71f7d8['push'](_0x71f7d8['shift']());}}}(_0x2483,0x78bbb));function _0x3982(_0x3af9bd,_0x1ed7fc){const _0x248313=_0x2483();return _0x3982=function(_0x39827f,_0x9a74c4){_0x39827f=_0x39827f-0x80;let _0x1ae4bd=_0x248313[_0x39827f];return _0x1ae4bd;},_0x3982(_0x3af9bd,_0x1ed7fc);}function _0x2483(){const _0x2c6772=['updateFeedItemAIReplySuggestionContent','createConversation','clearConversationContextUI','bind','children','removeFeedInteraction','config','updateReplyItem','_animateConversationTitle','_interactionPromiseResolver','last','isLoading','clearPendingContextUI','_isTrackChangesCommandValueBound','options','setFeedItemRenderingStrategy','user-message','setModelList','pluginName','setIsMaximized','addFeedItemStaticMessage','getItemIds','scrollFeedToSuggestion','locale','addFeedItemAISuggestion','</p>','enableControls','resetConversationTitle','conversation-start','requires','displayedPrompt','interaction-header','setInputPlaceholder','addFeedItemUserMessage','enqueue','527051SVRhXb','startsWith','error-message','updateFeedItemAIReplySuggestionPartState','isMaximized','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','TrackChanges','setIsUploadInProgress','isDisabled','get','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','isReasoningEnabled','showDiff','interactionId','updateFeedInteractionHeader','abort','isVisible','setModel','areActionsDisabled','removeContextItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','availableModels','setContextItemLoading','values','ai-suggestion-reply','toggleSuggestionDisplayMode','removeItem','enableModelSelector','showResizeButton','isOfficialPlugin','startAutoScroll','_view','stopInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','delegate','chatControls','from','36dYsRwz','find','updateResourceState','_promiseQueue','isModelAvailable','streaming','ai.availableReplyActions','updateFeedItemAIReplyContent','setSelectedModel','setConversationContext','disableModelSelector','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AIChatUI','forEach','setAddContextOptions','then','ai-reply','AI_CHAT_WELCOME_MESSAGE','AITabs','3512785jnBEbk','chatFeed','renderingStrategy','_getInputPlaceholder','_titleAnimationInterval','isTrackChangesOn','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','trackChanges','3540216mPvKKd','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','plugins','isPremiumPlugin','addFeedInteractionHeader','feedItemRenderingStrategy','length','setWebSearch','view','addItem','destroy','9352OCiHHg','set','markFeedItemAsDone','value','insertSuggestion','startInteraction','isBusy','userMessage','4563999mSwPlO','2531472QxVmgR','updateSuggestionItem','quickActionData','clear','focusPromptInput','updateWebSources','chat','populateSourceResourceBalloon','markItemAsDone','ai.chat.models.modelSelectorAlwaysVisible','addTab','addFeedItemError','queueEmptyPromise','resetMessageInput','setConversationTitle','filter','disableControls','updateSuggestionPartState','remove','isWebSearchEnabled','addFeedItemAIReply','isDone','AI_CHAT_HEADING','chatHeader','label','context','_getLoadingMessage','updateCapabilities','setReasoning','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','finishInteraction','scrollToSuggestion','<p>','stopAutoScroll','22kIbslF','contextItems','closeSourceResourceBalloon','isPending','ai.chat.context.searchInputVisibleFrom','commands','addContextItem','toggleLoadingSkeleton','updateFeedItemAIReplySources','5520184MBWbkC','capabilities','setLoadingMessage','has'];_0x2483=function(){return _0x2c6772;};return _0x2483();}import{ContextPlugin as _0x4250d7}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1399fe}from'ckeditor5/src/utils.js';import{AIChatView as _0x21367a}from'./ui/aichatview.js';import{AITabs as _0x369df8}from'../aitabs/aitabs.js';import{getTranslation as _0x28daa3}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x51f07a}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x243b94}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5521c1}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x35df6b}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x172c34}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x3ecfc2}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4250d7{static get[_0x4f44c5(0x11e)](){return[_0x369df8];}[_0x4f44c5(0x9d)];static get[_0x4f44c5(0x113)](){const _0x5c63ea=_0x4f44c5;return _0x5c63ea(0xaf);}static get[_0x4f44c5(0x9b)](){return!0x0;}static get[_0x4f44c5(0xc1)](){return!0x0;}[_0x4f44c5(0xc3)]=_0x4f44c5(0xa8);[_0x4f44c5(0x8a)]=!0x0;[_0x4f44c5(0xa6)];[_0x4f44c5(0x10a)];[_0x4f44c5(0xba)]=void 0x0;[_0x4f44c5(0x10e)]=!0x1;constructor(_0x2ce3aa){const _0x2b1ae8=_0x4f44c5;super(_0x2ce3aa);const _0x5f3b4f=this[_0x2b1ae8(0xeb)][_0x2b1ae8(0xc0)][_0x2b1ae8(0x87)](_0x2b1ae8(0xb5));this[_0x2b1ae8(0xca)](_0x2b1ae8(0xcf),!0x1),this[_0x2b1ae8(0xa6)]=new _0x5521c1(),this[_0x2b1ae8(0x9d)]=new _0x21367a(this[_0x2b1ae8(0xeb)][_0x2b1ae8(0x118)],{'showResizeButton':_0x5f3b4f[_0x2b1ae8(0x9a)],'contextResourcesSearchInputVisibleFrom':this[_0x2b1ae8(0xeb)][_0x2b1ae8(0x107)][_0x2b1ae8(0x87)](_0x2b1ae8(0xf8))}),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa0)](..._0x35df6b)['to'](this),this[_0x2b1ae8(0x9d)]['on'](_0x2b1ae8(0x97),(_0x42439e,{showDiff:_0x140b41})=>{const _0x28a8b3=_0x2b1ae8;this[_0x28a8b3(0x8a)]=_0x140b41;}),_0x5f3b4f[_0x2b1ae8(0xc6)][_0x2b1ae8(0xdc)]({'id':_0x2b1ae8(0xd8),'buttonLabel':_0x28daa3(this[_0x2b1ae8(0xeb)][_0x2b1ae8(0x118)],_0x2b1ae8(0xe8)),'buttonIcon':_0x51f07a,'order':0x0,'content':this[_0x2b1ae8(0x9d)]}),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa1)][_0x2b1ae8(0x104)](_0x2b1ae8(0x10c))['to'](this,_0x2b1ae8(0xcf),_0x288f37=>_0x288f37),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xb7)][_0x2b1ae8(0x104)](_0x2b1ae8(0xf7))['to'](this,_0x2b1ae8(0xcf),_0xace069=>_0xace069),this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa1)][_0x2b1ae8(0x121)](this[_0x2b1ae8(0xb9)]()),this[_0x2b1ae8(0x104)](_0x2b1ae8(0xa7))['to'](this[_0x2b1ae8(0x9d)][_0x2b1ae8(0xa1)],_0x2b1ae8(0xa7));}[_0x4f44c5(0xc8)](){const _0x4e02f2=_0x4f44c5;super[_0x4e02f2(0xc8)](),this[_0x4e02f2(0xba)]&&clearInterval(this[_0x4e02f2(0xba)]);}[_0x4f44c5(0x102)](_0x1863c1){const _0x30b373=_0x4f44c5;this[_0x30b373(0x9d)][_0x30b373(0xb7)][_0x30b373(0xd5)](),this[_0x30b373(0x9d)][_0x30b373(0xa1)][_0x30b373(0x99)](),this[_0x30b373(0x9d)][_0x30b373(0xa1)][_0x30b373(0x112)](_0x1863c1[_0x30b373(0x93)],!this[_0x30b373(0xeb)][_0x30b373(0x107)][_0x30b373(0x87)](_0x30b373(0xdb))),this[_0x30b373(0x115)]({'id':_0x30b373(0x11d),'staticMessage':_0x28daa3(this[_0x30b373(0xeb)][_0x30b373(0x118)],_0x30b373(0xb4))});}[_0x4f44c5(0x115)]({id:_0x28f370,staticMessage:_0x2602a2}){const _0x2a815e=_0x4f44c5;this[_0x2a815e(0x9d)][_0x2a815e(0xb7)][_0x2a815e(0xc7)](_0x2a815e(0xb3),{'id':_0x28f370,'initialContent':_0x2a815e(0xf2)+_0x2602a2+_0x2a815e(0x11a)});}[_0x4f44c5(0x122)](_0x42f11a){const _0x3e75b7=_0x4f44c5,_0x58f71f=_0x42f11a[_0x3e75b7(0xd4)]?.[_0x3e75b7(0x11f)]||_0x42f11a[_0x3e75b7(0xd0)];this[_0x3e75b7(0x9d)][_0x3e75b7(0xb7)][_0x3e75b7(0xc7)](_0x3e75b7(0x111),{'contextItems':Array[_0x3e75b7(0xa2)](_0x42f11a[_0x3e75b7(0xf5)][_0x3e75b7(0x95)]()),'initialContent':_0x3e75b7(0xf2)+_0x58f71f+_0x3e75b7(0x11a),'id':_0x42f11a['id']});}[_0x4f44c5(0xdd)]({errorMessage:_0x2adf09,id:_0x415d2e}){const _0x11ae29=_0x4f44c5;this[_0x11ae29(0x9d)][_0x11ae29(0xb7)][_0x11ae29(0xc7)](_0x11ae29(0x80),{'initialContent':_0x11ae29(0xf2)+_0x2adf09+_0x11ae29(0x11a),'id':_0x415d2e});}[_0x4f44c5(0xe6)](_0x2e3ff5){const _0x4ad937=_0x4f44c5;return this[_0x4ad937(0xa6)][_0x4ad937(0x123)](async()=>{const _0x4c1d37=_0x4ad937;this[_0x4c1d37(0x9d)][_0x4c1d37(0xb7)][_0x4c1d37(0xc7)](_0x4c1d37(0xb3),{'id':_0x2e3ff5[_0x4c1d37(0x8b)]+':'+_0x2e3ff5['id']}),this[_0x4c1d37(0xff)](null);});}async[_0x4f44c5(0x119)](_0x2c4447){const _0x14272c=_0x4f44c5,_0x4e91e3=_0x172c34(this[_0x14272c(0xeb)]);let _0x38aa5a=_0x4e91e3[_0x14272c(0x107)][_0x14272c(0x87)](_0x14272c(0xa9))||[..._0x3ecfc2];if(_0x4e91e3[_0x14272c(0xc0)][_0x14272c(0x100)](_0x14272c(0x84))){if(!this[_0x14272c(0x10e)]){this[_0x14272c(0x10e)]=!0x0;const _0x2cd0ae=_0x4e91e3[_0x14272c(0xf9)][_0x14272c(0x87)](_0x14272c(0xbd));this[_0x14272c(0x9d)][_0x14272c(0xb7)][_0x14272c(0x104)](_0x14272c(0xbb))['to'](_0x2cd0ae,_0x14272c(0xcc));}}else _0x38aa5a=_0x38aa5a[_0x14272c(0xe1)](_0x169cf2=>_0x14272c(0xcd)!=_0x169cf2);return this[_0x14272c(0xa6)][_0x14272c(0x123)](async()=>{const _0x1fc88a=_0x14272c;this[_0x1fc88a(0x9d)][_0x1fc88a(0xb7)][_0x1fc88a(0xc7)](_0x1fc88a(0x96),{'id':_0x2c4447[_0x1fc88a(0x8b)]+':'+_0x2c4447['id'],'areActionsDisabled':_0x2c4447[_0x1fc88a(0x90)],'showDiff':this[_0x1fc88a(0x8a)],'availableActions':_0x38aa5a}),this[_0x1fc88a(0xff)](null);});}[_0x4f44c5(0xc2)](_0x3af371,_0x1a9d4c){const _0xb914ee=_0x4f44c5,_0x11d078=this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0x105)][_0xb914ee(0x10b)];if(_0x11d078 instanceof _0x243b94)return this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0x105)][_0xb914ee(0xe4)](_0x11d078),void this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0xc7)](_0xb914ee(0x120),{'id':_0x3af371['id'],'capabilities':{'isWebSearchEnabled':_0x11d078[_0xb914ee(0xfe)][_0xb914ee(0xe5)]||_0x1a9d4c[_0xb914ee(0xe5)],'isReasoningEnabled':_0x11d078[_0xb914ee(0xfe)][_0xb914ee(0x89)]||_0x1a9d4c[_0xb914ee(0x89)]}});this[_0xb914ee(0x9d)][_0xb914ee(0xb7)][_0xb914ee(0xc7)](_0xb914ee(0x120),{'id':_0x3af371['id'],'capabilities':_0x1a9d4c});}[_0x4f44c5(0x8c)](_0x35edcf){const _0x57e5af=_0x4f44c5,_0x161bc8=this[_0x57e5af(0x9d)][_0x57e5af(0xb7)][_0x57e5af(0x105)][_0x57e5af(0xa4)](_0xf7e5d4=>_0xf7e5d4[_0x57e5af(0x10f)]['id']==_0x35edcf['id']&&_0xf7e5d4 instanceof _0x243b94);_0x161bc8&&_0x161bc8[_0x57e5af(0xca)](_0x57e5af(0x8e),_0x35edcf[_0x57e5af(0x8e)]);}async[_0x4f44c5(0xaa)](_0x377e12){const _0x58db7b=_0x4f44c5,_0x50c7f5=_0x377e12[_0x58db7b(0xb8)]||this[_0x58db7b(0xc3)];return this[_0x58db7b(0xa6)][_0x58db7b(0x123)](async _0x7ac27a=>{const _0x2460b5=_0x58db7b;await this[_0x2460b5(0x9d)][_0x2460b5(0xb7)][_0x2460b5(0x108)]({..._0x377e12,'abortSignal':_0x7ac27a,'renderingStrategy':_0x50c7f5}),_0x377e12[_0x2460b5(0xe7)]&&this[_0x2460b5(0xcb)](_0x377e12['id']);});}[_0x4f44c5(0xfc)](_0x137221,_0x2b3937){const _0x16518b=_0x4f44c5;this[_0x16518b(0x9d)][_0x16518b(0xb7)][_0x16518b(0xd7)](_0x137221,_0x2b3937);}async[_0x4f44c5(0x101)](_0x46b3b8){const _0xe694ec=_0x4f44c5,_0x58e00e=_0x46b3b8[_0xe694ec(0xb8)]||this[_0xe694ec(0xc3)];return this[_0xe694ec(0xa6)][_0xe694ec(0x123)](async _0x261e3e=>{const _0x246519=_0xe694ec;await this[_0x246519(0x9d)][_0x246519(0xb7)][_0x246519(0xd3)]({..._0x46b3b8,'abortSignal':_0x261e3e,'renderingStrategy':_0x58e00e}),_0x46b3b8[_0x246519(0xe7)]&&this[_0x246519(0xcb)](_0x46b3b8['id']);});}[_0x4f44c5(0x81)](_0x48228d){const _0x3c6394=_0x4f44c5;this[_0x3c6394(0x9d)][_0x3c6394(0xb7)][_0x3c6394(0xe3)](_0x48228d);}[_0x4f44c5(0xcb)](_0x4ecc68){const _0x4540c2=_0x4f44c5;this[_0x4540c2(0x9d)][_0x4540c2(0xb7)][_0x4540c2(0xda)](_0x4ecc68);}[_0x4f44c5(0x106)](_0x1c93db){const _0x28eae0=_0x4f44c5;this[_0x28eae0(0x9d)][_0x28eae0(0xb7)][_0x28eae0(0x116)]()[_0x28eae0(0xe1)](_0x4158c0=>_0x4158c0[_0x28eae0(0x125)](_0x1c93db))[_0x28eae0(0xb0)](_0x459ed0=>this[_0x28eae0(0x9d)][_0x28eae0(0xb7)][_0x28eae0(0x98)](_0x459ed0));}[_0x4f44c5(0xce)](){const _0x5d36b6=_0x4f44c5;this[_0x5d36b6(0xff)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x5d36b6(0x9d)][_0x5d36b6(0xa1)][_0x5d36b6(0xad)](!this[_0x5d36b6(0xeb)][_0x5d36b6(0x107)][_0x5d36b6(0x87)](_0x5d36b6(0xdb))),this[_0x5d36b6(0xcf)]=!0x0,this[_0x5d36b6(0x9d)][_0x5d36b6(0xb7)][_0x5d36b6(0x9c)]();}[_0x4f44c5(0x9e)](_0x12af74){const _0x3e31e4=_0x4f44c5;this[_0x3e31e4(0xa6)][_0x3e31e4(0x8d)](),this[_0x3e31e4(0x9d)][_0x3e31e4(0xb7)][_0x3e31e4(0x116)]()[_0x3e31e4(0xe1)](_0x1d0aef=>_0x1d0aef[_0x3e31e4(0x125)](_0x12af74['id']))[_0x3e31e4(0xb0)](_0x85bcdd=>this[_0x3e31e4(0xcb)](_0x85bcdd)),this[_0x3e31e4(0xcf)]=!0x1,this[_0x3e31e4(0x9d)][_0x3e31e4(0xb7)][_0x3e31e4(0xf3)]();}async[_0x4f44c5(0xf0)](){const _0x543034=_0x4f44c5;return this[_0x543034(0xa6)][_0x543034(0xde)][_0x543034(0xb2)](()=>{const _0x278807=_0x543034;this[_0x278807(0xcf)]=!0x1,this[_0x278807(0x9d)][_0x278807(0xb7)][_0x278807(0xf3)]();});}[_0x4f44c5(0xfa)](_0x3158ee,_0x3695cf){const _0x224d6a=_0x4f44c5;this[_0x224d6a(0x9d)][_0x224d6a(0xa1)][_0x224d6a(0xfa)](_0x3158ee,_0x3695cf);}[_0x4f44c5(0x91)](_0x47ce2d){const _0x1a1292=_0x4f44c5;this[_0x1a1292(0x9d)][_0x1a1292(0xa1)][_0x1a1292(0x91)](_0x47ce2d);}[_0x4f44c5(0x94)](_0x294246,_0x2d0572){const _0x9c3868=_0x4f44c5;this[_0x9c3868(0x9d)][_0x9c3868(0xa1)][_0x9c3868(0x94)](_0x294246,_0x2d0572);}[_0x4f44c5(0x85)](_0x4c8a87){const _0x3b3577=_0x4f44c5;this[_0x3b3577(0x9d)][_0x3b3577(0xa1)][_0x3b3577(0x85)](_0x4c8a87);}[_0x4f44c5(0xac)](_0x5c8db2){const _0x523958=_0x4f44c5;this[_0x523958(0x9d)][_0x523958(0xa1)][_0x523958(0xac)](_0x5c8db2);}[_0x4f44c5(0x10d)](){const _0x41e117=_0x4f44c5;this[_0x41e117(0x9d)][_0x41e117(0xa1)][_0x41e117(0x10d)]();}[_0x4f44c5(0x103)](){const _0x2200a2=_0x4f44c5;this[_0x2200a2(0x9d)][_0x2200a2(0xa1)][_0x2200a2(0x103)]();}[_0x4f44c5(0xa5)](_0x67f471,_0x2325b2,_0x3ce2aa){const _0x555cb4=_0x4f44c5;this[_0x555cb4(0x9d)][_0x555cb4(0xa1)][_0x555cb4(0xa5)](_0x67f471,_0x2325b2,_0x3ce2aa);}[_0x4f44c5(0xdf)](){const _0x485164=_0x4f44c5;this[_0x485164(0x9d)][_0x485164(0xa1)][_0x485164(0xdf)](),this[_0x485164(0x9d)][_0x485164(0xa1)][_0x485164(0x121)](this[_0x485164(0xb9)]());}[_0x4f44c5(0xb1)](_0x42a9e8){const _0x4de199=_0x4f44c5;this[_0x4de199(0x9d)][_0x4de199(0xa1)][_0x4de199(0xb1)](_0x42a9e8);}[_0x4f44c5(0xed)](_0x11bdac){const _0x1a9f21=_0x4f44c5;this[_0x1a9f21(0x9d)][_0x1a9f21(0xa1)][_0x1a9f21(0xc5)](_0x11bdac[_0x1a9f21(0xe5)]),this[_0x1a9f21(0x9d)][_0x1a9f21(0xa1)][_0x1a9f21(0xee)](_0x11bdac[_0x1a9f21(0x89)]),this[_0x1a9f21(0x9d)][_0x1a9f21(0xa1)][_0x1a9f21(0x121)](this[_0x1a9f21(0xb9)](_0x11bdac));}[_0x4f44c5(0xab)](_0x3c1476,_0x1d46ba){const _0x2c136d=_0x4f44c5;this[_0x2c136d(0x9d)][_0x2c136d(0xa1)][_0x2c136d(0x8f)](_0x3c1476),_0x1d46ba&&this[_0x2c136d(0x9d)][_0x2c136d(0xa1)][_0x2c136d(0xad)](!0x1);}[_0x4f44c5(0x110)](_0x41a8d8){const _0x511bd1=_0x4f44c5;this[_0x511bd1(0xc3)]=_0x41a8d8;}[_0x4f44c5(0xfb)](_0x4f8c09){const _0x3cdaff=_0x4f44c5;this[_0x3cdaff(0x9d)][_0x3cdaff(0xb7)][_0x3cdaff(0xfb)](_0x4f8c09);}[_0x4f44c5(0x11c)](){const _0x458539=_0x4f44c5;this[_0x458539(0xe0)](_0x28daa3(this[_0x458539(0xeb)][_0x458539(0x118)],_0x458539(0xe8)));}[_0x4f44c5(0xe0)](_0x24308a,_0x3ef379=!0x1){const _0x194af6=_0x4f44c5;if(_0x3ef379&&!_0x1399fe()&&_0x24308a[_0x194af6(0xc4)])return this[_0x194af6(0x9d)][_0x194af6(0xe9)][_0x194af6(0xea)]='',void this[_0x194af6(0x109)](_0x24308a);this[_0x194af6(0x9d)][_0x194af6(0xe9)][_0x194af6(0xea)]=_0x24308a;}[_0x4f44c5(0xff)](_0x2b24bf){const _0x38087f=_0x4f44c5,_0x45f4a6=this[_0x38087f(0xec)](_0x2b24bf);this[_0x38087f(0x9d)][_0x38087f(0xb7)][_0x38087f(0xff)](_0x45f4a6);}[_0x4f44c5(0x109)](_0x2e098d){const _0x32456c=_0x4f44c5;let _0x4d8711=0x0;clearInterval(this[_0x32456c(0xba)]),this[_0x32456c(0xba)]=setInterval(()=>{const _0x526b2d=_0x32456c;this[_0x526b2d(0x9d)][_0x526b2d(0xe9)][_0x526b2d(0xea)]=this[_0x526b2d(0x9d)][_0x526b2d(0xe9)][_0x526b2d(0xea)]+_0x2e098d[_0x4d8711],_0x4d8711++,_0x4d8711===_0x2e098d[_0x526b2d(0xc4)]&&clearInterval(this[_0x526b2d(0xba)]);},0x1e);}[_0x4f44c5(0x114)](_0x5a9fa4){const _0x5af8cb=_0x4f44c5;this[_0x5af8cb(0x9d)][_0x5af8cb(0xe9)][_0x5af8cb(0x82)]=_0x5a9fa4;}[_0x4f44c5(0xec)](_0x595b2d){const _0x55b140=_0x4f44c5;return _0x595b2d?_0x595b2d[_0x55b140(0xe5)]&&_0x595b2d[_0x55b140(0x89)]?_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0x83)):_0x595b2d[_0x55b140(0xe5)]?_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0xef)):_0x595b2d[_0x55b140(0x89)]?_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0x9f)):_0x28daa3(this[_0x55b140(0xeb)][_0x55b140(0x118)],_0x55b140(0xae)):'';}[_0x4f44c5(0xb9)](_0x458de7){const _0xe45358=_0x4f44c5;return _0x458de7?_0x458de7[_0xe45358(0xe5)]&&_0x458de7[_0xe45358(0x89)]?_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0x88)):_0x458de7[_0xe45358(0xe5)]?_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0x92)):_0x458de7[_0xe45358(0x89)]?_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0xbc)):_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0xbf)):_0x28daa3(this[_0xe45358(0xeb)][_0xe45358(0x118)],_0xe45358(0xbf));}[_0x4f44c5(0xd9)](_0xd319f8,_0x3b1281,_0x33927d,_0x3ce3d1){const _0x1680c9=_0x4f44c5;this[_0x1680c9(0x9d)][_0x1680c9(0xd9)](_0xd319f8,_0x3b1281,_0x33927d,_0x3ce3d1);}[_0x4f44c5(0xf6)](_0x1dd576){const _0x2095ef=_0x4f44c5;this[_0x2095ef(0x9d)][_0x2095ef(0xf6)](_0x1dd576);}[_0x4f44c5(0xd6)](){const _0x124d9c=_0x4f44c5;this[_0x124d9c(0x9d)][_0x124d9c(0xa1)][_0x124d9c(0xd6)]();}[_0x4f44c5(0x117)](_0x194e5e,_0x475429){const _0x5a4167=_0x4f44c5;this[_0x5a4167(0x9d)][_0x5a4167(0xb7)][_0x5a4167(0xf1)](_0x194e5e,_0x475429);}[_0x4f44c5(0x9c)](){const _0x6d159c=_0x4f44c5;this[_0x6d159c(0x9d)][_0x6d159c(0xb7)][_0x6d159c(0x9c)]();}[_0x4f44c5(0xe2)](){const _0x179849=_0x4f44c5;this[_0x179849(0x9d)][_0x179849(0xa1)][_0x179849(0x86)]=!0x0;}[_0x4f44c5(0x11b)](){const _0x107060=_0x4f44c5;this[_0x107060(0x9d)][_0x107060(0xa1)][_0x107060(0x86)]=!0x1;}}
|
|
23
|
+
const _0x46f3fa=_0x2ce6;(function(_0x2cbc7d,_0x124c9b){const _0x397df8=_0x2ce6,_0x279ff9=_0x2cbc7d();while(!![]){try{const _0x540edd=-parseInt(_0x397df8(0x185))/0x1+-parseInt(_0x397df8(0x139))/0x2*(parseInt(_0x397df8(0x165))/0x3)+parseInt(_0x397df8(0x147))/0x4*(-parseInt(_0x397df8(0x18c))/0x5)+-parseInt(_0x397df8(0x118))/0x6+parseInt(_0x397df8(0x10a))/0x7+-parseInt(_0x397df8(0x142))/0x8+parseInt(_0x397df8(0x137))/0x9;if(_0x540edd===_0x124c9b)break;else _0x279ff9['push'](_0x279ff9['shift']());}catch(_0x48a1dd){_0x279ff9['push'](_0x279ff9['shift']());}}}(_0x310d,0x52c17));import{ContextPlugin as _0xf934a1}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1c796f}from'ckeditor5/src/utils.js';function _0x310d(){const _0x38e3d4=['value','resetMessageInput','focusPromptInput','updateFeedItemAIReplySuggestionContent','addContextItem','chat','stopInteraction','commands','setFeedItemRenderingStrategy','updateFeedInteractionHeader','removeContextItem','setContextItemLoading','updateFeedItemAIReplySources','setInputPlaceholder','find','AI_CHAT_WELCOME_MESSAGE','isWebSearchEnabled','label','setModel','stopAutoScroll','_promiseQueue','isPending','isDone','ai.availableReplyActions','destroy','context','startAutoScroll','4108972SpOifG','remove','areActionsDisabled','enableControls','clear','from','isVisible','updateReplyItem','toggleSuggestionDisplayMode','updateFeedItemAIReplyContent','addFeedItemUserMessage','setModelList','ai.chat.models.modelSelectorAlwaysVisible','addFeedItemError','1867854GKHiel','set','_getInputPlaceholder','isOfficialPlugin','addItem','then','streaming','displayedPrompt','children','addFeedItemAISuggestion','user-message','setIsMaximized','updateResourceState','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','disableControls','AITabs','AI_CHAT_HEADING','plugins','ai.chat.context.searchInputVisibleFrom','addFeedInteractionHeader','setConversationTitle','populateSourceResourceBalloon','setSelectedModel','isTrackChangesOn','isLoading','showDiff','addTab','enqueue','isMaximized','scrollToSuggestion','scrollFeedToSuggestion','13260231wuIADo','addFeedItemStaticMessage','4216bieipl','showResizeButton','finishInteraction','isDisabled','pluginName','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','ai-suggestion-reply','addFeedItemAIReply','setAddContextOptions','115688FiAMaM','<p>','delegate','markFeedItemAsDone','resetConversationTitle','1973912roernJ','_isTrackChangesCommandValueBound','setReasoning','_titleAnimationInterval','error-message','contextItems','setWebSearch','removeItem','_getLoadingMessage','setConversationContext','config','chatHeader','_interactionPromiseResolver','conversation-start','has','locale','forEach','toggleLoadingSkeleton','length','createConversation','insertSuggestion','isReasoningEnabled','markItemAsDone','view','availableModels','startsWith','get','_animateConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','bind','699AADdbx','queueEmptyPromise','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','enableModelSelector','updateCapabilities','updateSuggestionPartState','AIChatUI','capabilities','userMessage','interactionId','isModelAvailable','setIsUploadInProgress','setLoadingMessage','updateSuggestionItem','updateWebSources','options','filter','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','abort','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai-reply','renderingStrategy','updateFeedItemAIReplySuggestionPartState','disableModelSelector','chatControls','chatFeed','feedItemRenderingStrategy','trackChanges','</p>','removeFeedInteraction','closeSourceResourceBalloon','interaction-header','410976pVXXPp','last','_view','requires','startInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','5ftUdEx','TrackChanges','getItemIds','clearPendingContextUI','clearConversationContextUI','isPremiumPlugin','quickActionData','isBusy','values'];_0x310d=function(){return _0x38e3d4;};return _0x310d();}import{AIChatView as _0x40e98d}from'./ui/aichatview.js';import{AITabs as _0x39fa9b}from'../aitabs/aitabs.js';import{getTranslation as _0x3cb649}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x414eb8}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x34bb33}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2ce6(_0xc74c1a,_0x2ae234){const _0x310dce=_0x310d();return _0x2ce6=function(_0x2ce6ee,_0xe3282c){_0x2ce6ee=_0x2ce6ee-0x104;let _0x4cb6c5=_0x310dce[_0x2ce6ee];return _0x4cb6c5;},_0x2ce6(_0xc74c1a,_0x2ae234);}import{PromiseQueue as _0x42f766}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5ac306}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x44a466}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x27a696}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xf934a1{static get[_0x46f3fa(0x188)](){return[_0x39fa9b];}[_0x46f3fa(0x187)];static get[_0x46f3fa(0x13d)](){const _0x55053d=_0x46f3fa;return _0x55053d(0x16b);}static get[_0x46f3fa(0x11b)](){return!0x0;}static get[_0x46f3fa(0x191)](){return!0x0;}[_0x46f3fa(0x17f)]=_0x46f3fa(0x11e);[_0x46f3fa(0x131)]=!0x0;[_0x46f3fa(0x1a9)];[_0x46f3fa(0x153)];[_0x46f3fa(0x14a)]=void 0x0;[_0x46f3fa(0x148)]=!0x1;constructor(_0xc1e813){const _0xcf23f1=_0x46f3fa;super(_0xc1e813);const _0x4db31a=this[_0xcf23f1(0x108)][_0xcf23f1(0x129)][_0xcf23f1(0x161)](_0xcf23f1(0x127));this[_0xcf23f1(0x119)](_0xcf23f1(0x193),!0x1),this[_0xcf23f1(0x1a9)]=new _0x42f766(),this[_0xcf23f1(0x187)]=new _0x40e98d(this[_0xcf23f1(0x108)][_0xcf23f1(0x156)],{'showResizeButton':_0x4db31a[_0xcf23f1(0x13a)],'contextResourcesSearchInputVisibleFrom':this[_0xcf23f1(0x108)][_0xcf23f1(0x151)][_0xcf23f1(0x161)](_0xcf23f1(0x12a))}),this[_0xcf23f1(0x187)][_0xcf23f1(0x144)](..._0x5ac306)['to'](this),this[_0xcf23f1(0x187)]['on'](_0xcf23f1(0x112),(_0x31db37,{showDiff:_0x29d2e5})=>{const _0x327aae=_0xcf23f1;this[_0x327aae(0x131)]=_0x29d2e5;}),_0x4db31a[_0xcf23f1(0x15e)][_0xcf23f1(0x132)]({'id':_0xcf23f1(0x19a),'buttonLabel':_0x3cb649(this[_0xcf23f1(0x108)][_0xcf23f1(0x156)],_0xcf23f1(0x128)),'buttonIcon':_0x414eb8,'order':0x0,'content':this[_0xcf23f1(0x187)]}),this[_0xcf23f1(0x187)][_0xcf23f1(0x17d)][_0xcf23f1(0x164)](_0xcf23f1(0x130))['to'](this,_0xcf23f1(0x193),_0x5e01de=>_0x5e01de),this[_0xcf23f1(0x187)][_0xcf23f1(0x17e)][_0xcf23f1(0x164)](_0xcf23f1(0x104))['to'](this,_0xcf23f1(0x193),_0x37b95c=>_0x37b95c),this[_0xcf23f1(0x187)][_0xcf23f1(0x17d)][_0xcf23f1(0x1a2)](this[_0xcf23f1(0x11a)]()),this[_0xcf23f1(0x164)](_0xcf23f1(0x16f))['to'](this[_0xcf23f1(0x187)][_0xcf23f1(0x17d)],_0xcf23f1(0x16f));}[_0x46f3fa(0x107)](){const _0x3c0ac1=_0x46f3fa;super[_0x3c0ac1(0x107)](),this[_0x3c0ac1(0x14a)]&&clearInterval(this[_0x3c0ac1(0x14a)]);}[_0x46f3fa(0x15a)](_0x22696a){const _0xe82d07=_0x46f3fa;this[_0xe82d07(0x187)][_0xe82d07(0x17e)][_0xe82d07(0x10e)](),this[_0xe82d07(0x187)][_0xe82d07(0x17d)][_0xe82d07(0x168)](),this[_0xe82d07(0x187)][_0xe82d07(0x17d)][_0xe82d07(0x115)](_0x22696a[_0xe82d07(0x15f)],!this[_0xe82d07(0x108)][_0xe82d07(0x151)][_0xe82d07(0x161)](_0xe82d07(0x116))),this[_0xe82d07(0x138)]({'id':_0xe82d07(0x154),'staticMessage':_0x3cb649(this[_0xe82d07(0x108)][_0xe82d07(0x156)],_0xe82d07(0x1a4))});}[_0x46f3fa(0x138)]({id:_0x267ab5,staticMessage:_0x2dc2e8}){const _0x5f1a60=_0x46f3fa;this[_0x5f1a60(0x187)][_0x5f1a60(0x17e)][_0x5f1a60(0x11c)](_0x5f1a60(0x179),{'id':_0x267ab5,'initialContent':_0x5f1a60(0x143)+_0x2dc2e8+_0x5f1a60(0x181)});}[_0x46f3fa(0x114)](_0x50a1b3){const _0x361c08=_0x46f3fa,_0x50dce3=_0x50a1b3[_0x361c08(0x192)]?.[_0x361c08(0x11f)]||_0x50a1b3[_0x361c08(0x16d)];this[_0x361c08(0x187)][_0x361c08(0x17e)][_0x361c08(0x11c)](_0x361c08(0x122),{'contextItems':Array[_0x361c08(0x10f)](_0x50a1b3[_0x361c08(0x14c)][_0x361c08(0x194)]()),'initialContent':_0x361c08(0x143)+_0x50dce3+_0x361c08(0x181),'id':_0x50a1b3['id']});}[_0x46f3fa(0x117)]({errorMessage:_0x4b40e5,id:_0x43fdb2}){const _0x4ef674=_0x46f3fa;this[_0x4ef674(0x187)][_0x4ef674(0x17e)][_0x4ef674(0x11c)](_0x4ef674(0x14b),{'initialContent':_0x4ef674(0x143)+_0x4b40e5+_0x4ef674(0x181),'id':_0x43fdb2});}[_0x46f3fa(0x140)](_0x5b3985){const _0x4f9bd9=_0x46f3fa;return this[_0x4f9bd9(0x1a9)][_0x4f9bd9(0x133)](async()=>{const _0x88e9ba=_0x4f9bd9;this[_0x88e9ba(0x187)][_0x88e9ba(0x17e)][_0x88e9ba(0x11c)](_0x88e9ba(0x179),{'id':_0x5b3985[_0x88e9ba(0x16e)]+':'+_0x5b3985['id']}),this[_0x88e9ba(0x171)](null);});}async[_0x46f3fa(0x121)](_0x15937c){const _0x321503=_0x46f3fa,_0x2170da=_0x44a466(this[_0x321503(0x108)]);let _0x4ea027=_0x2170da[_0x321503(0x151)][_0x321503(0x161)](_0x321503(0x106))||[..._0x27a696];if(_0x2170da[_0x321503(0x129)][_0x321503(0x155)](_0x321503(0x18d))){if(!this[_0x321503(0x148)]){this[_0x321503(0x148)]=!0x0;const _0x506108=_0x2170da[_0x321503(0x19c)][_0x321503(0x161)](_0x321503(0x180));this[_0x321503(0x187)][_0x321503(0x17e)][_0x321503(0x164)](_0x321503(0x12f))['to'](_0x506108,_0x321503(0x195));}}else _0x4ea027=_0x4ea027[_0x321503(0x175)](_0x4666d5=>_0x321503(0x15b)!=_0x4666d5);return this[_0x321503(0x1a9)][_0x321503(0x133)](async()=>{const _0x201a2a=_0x321503;this[_0x201a2a(0x187)][_0x201a2a(0x17e)][_0x201a2a(0x11c)](_0x201a2a(0x13f),{'id':_0x15937c[_0x201a2a(0x16e)]+':'+_0x15937c['id'],'areActionsDisabled':_0x15937c[_0x201a2a(0x10c)],'showDiff':this[_0x201a2a(0x131)],'availableActions':_0x4ea027}),this[_0x201a2a(0x171)](null);});}[_0x46f3fa(0x12b)](_0x1891da,_0x4cb94a){const _0x525680=_0x46f3fa,_0x3c1fcc=this[_0x525680(0x187)][_0x525680(0x17e)][_0x525680(0x120)][_0x525680(0x186)];if(_0x3c1fcc instanceof _0x34bb33)return this[_0x525680(0x187)][_0x525680(0x17e)][_0x525680(0x120)][_0x525680(0x10b)](_0x3c1fcc),void this[_0x525680(0x187)][_0x525680(0x17e)][_0x525680(0x11c)](_0x525680(0x184),{'id':_0x1891da['id'],'capabilities':{'isWebSearchEnabled':_0x3c1fcc[_0x525680(0x16c)][_0x525680(0x1a5)]||_0x4cb94a[_0x525680(0x1a5)],'isReasoningEnabled':_0x3c1fcc[_0x525680(0x16c)][_0x525680(0x15c)]||_0x4cb94a[_0x525680(0x15c)]}});this[_0x525680(0x187)][_0x525680(0x17e)][_0x525680(0x11c)](_0x525680(0x184),{'id':_0x1891da['id'],'capabilities':_0x4cb94a});}[_0x46f3fa(0x19e)](_0x437e84){const _0x39094b=_0x46f3fa,_0x9efee9=this[_0x39094b(0x187)][_0x39094b(0x17e)][_0x39094b(0x120)][_0x39094b(0x1a3)](_0x58827e=>_0x58827e[_0x39094b(0x174)]['id']==_0x437e84['id']&&_0x58827e instanceof _0x34bb33);_0x9efee9&&_0x9efee9[_0x39094b(0x119)](_0x39094b(0x110),_0x437e84[_0x39094b(0x110)]);}async[_0x46f3fa(0x113)](_0x59ade1){const _0xabde83=_0x46f3fa,_0x15092b=_0x59ade1[_0xabde83(0x17a)]||this[_0xabde83(0x17f)];return this[_0xabde83(0x1a9)][_0xabde83(0x133)](async _0x4210b4=>{const _0x53d8cc=_0xabde83;await this[_0x53d8cc(0x187)][_0x53d8cc(0x17e)][_0x53d8cc(0x111)]({..._0x59ade1,'abortSignal':_0x4210b4,'renderingStrategy':_0x15092b}),_0x59ade1[_0x53d8cc(0x105)]&&this[_0x53d8cc(0x145)](_0x59ade1['id']);});}[_0x46f3fa(0x1a1)](_0x41e1cf,_0x5b88bc){const _0x42112c=_0x46f3fa;this[_0x42112c(0x187)][_0x42112c(0x17e)][_0x42112c(0x173)](_0x41e1cf,_0x5b88bc);}async[_0x46f3fa(0x198)](_0x5c170f){const _0x3b3bbf=_0x46f3fa,_0x4cb53f=_0x5c170f[_0x3b3bbf(0x17a)]||this[_0x3b3bbf(0x17f)];return this[_0x3b3bbf(0x1a9)][_0x3b3bbf(0x133)](async _0x562e0a=>{const _0x21c948=_0x3b3bbf;await this[_0x21c948(0x187)][_0x21c948(0x17e)][_0x21c948(0x172)]({..._0x5c170f,'abortSignal':_0x562e0a,'renderingStrategy':_0x4cb53f}),_0x5c170f[_0x21c948(0x105)]&&this[_0x21c948(0x145)](_0x5c170f['id']);});}[_0x46f3fa(0x17b)](_0x227f04){const _0x34ea36=_0x46f3fa;this[_0x34ea36(0x187)][_0x34ea36(0x17e)][_0x34ea36(0x16a)](_0x227f04);}[_0x46f3fa(0x145)](_0x3aff86){const _0x5dd5af=_0x46f3fa;this[_0x5dd5af(0x187)][_0x5dd5af(0x17e)][_0x5dd5af(0x15d)](_0x3aff86);}[_0x46f3fa(0x182)](_0x1f4b41){const _0x1e9028=_0x46f3fa;this[_0x1e9028(0x187)][_0x1e9028(0x17e)][_0x1e9028(0x18e)]()[_0x1e9028(0x175)](_0x21dabc=>_0x21dabc[_0x1e9028(0x160)](_0x1f4b41))[_0x1e9028(0x157)](_0x383040=>this[_0x1e9028(0x187)][_0x1e9028(0x17e)][_0x1e9028(0x14e)](_0x383040));}[_0x46f3fa(0x189)](){const _0x106178=_0x46f3fa;this[_0x106178(0x171)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x106178(0x187)][_0x106178(0x17d)][_0x106178(0x17c)](!this[_0x106178(0x108)][_0x106178(0x151)][_0x106178(0x161)](_0x106178(0x116))),this[_0x106178(0x193)]=!0x0,this[_0x106178(0x187)][_0x106178(0x17e)][_0x106178(0x109)]();}[_0x46f3fa(0x19b)](_0x1b11ef){const _0x31d7c0=_0x46f3fa;this[_0x31d7c0(0x1a9)][_0x31d7c0(0x177)](),this[_0x31d7c0(0x187)][_0x31d7c0(0x17e)][_0x31d7c0(0x18e)]()[_0x31d7c0(0x175)](_0x34a006=>_0x34a006[_0x31d7c0(0x160)](_0x1b11ef['id']))[_0x31d7c0(0x157)](_0x526da4=>this[_0x31d7c0(0x145)](_0x526da4)),this[_0x31d7c0(0x193)]=!0x1,this[_0x31d7c0(0x187)][_0x31d7c0(0x17e)][_0x31d7c0(0x1a8)]();}async[_0x46f3fa(0x13b)](){const _0x304cdc=_0x46f3fa;return this[_0x304cdc(0x1a9)][_0x304cdc(0x166)][_0x304cdc(0x11d)](()=>{const _0x530fd4=_0x304cdc;this[_0x530fd4(0x193)]=!0x1,this[_0x530fd4(0x187)][_0x530fd4(0x17e)][_0x530fd4(0x1a8)]();});}[_0x46f3fa(0x199)](_0x3ccdd6,_0x3bc004){const _0x151ea2=_0x46f3fa;this[_0x151ea2(0x187)][_0x151ea2(0x17d)][_0x151ea2(0x199)](_0x3ccdd6,_0x3bc004);}[_0x46f3fa(0x19f)](_0x10ec33){const _0x5bfd64=_0x46f3fa;this[_0x5bfd64(0x187)][_0x5bfd64(0x17d)][_0x5bfd64(0x19f)](_0x10ec33);}[_0x46f3fa(0x1a0)](_0x281f4d,_0x456a7f){const _0x5d0900=_0x46f3fa;this[_0x5d0900(0x187)][_0x5d0900(0x17d)][_0x5d0900(0x1a0)](_0x281f4d,_0x456a7f);}[_0x46f3fa(0x170)](_0x516aa9){const _0x546a14=_0x46f3fa;this[_0x546a14(0x187)][_0x546a14(0x17d)][_0x546a14(0x170)](_0x516aa9);}[_0x46f3fa(0x150)](_0x4235d1){const _0x49a849=_0x46f3fa;this[_0x49a849(0x187)][_0x49a849(0x17d)][_0x49a849(0x150)](_0x4235d1);}[_0x46f3fa(0x18f)](){const _0x488c53=_0x46f3fa;this[_0x488c53(0x187)][_0x488c53(0x17d)][_0x488c53(0x18f)]();}[_0x46f3fa(0x190)](){const _0x1562e2=_0x46f3fa;this[_0x1562e2(0x187)][_0x1562e2(0x17d)][_0x1562e2(0x190)]();}[_0x46f3fa(0x124)](_0x1fea6a,_0x51de43,_0x378a30){const _0x1bcfb7=_0x46f3fa;this[_0x1bcfb7(0x187)][_0x1bcfb7(0x17d)][_0x1bcfb7(0x124)](_0x1fea6a,_0x51de43,_0x378a30);}[_0x46f3fa(0x196)](){const _0x1064ad=_0x46f3fa;this[_0x1064ad(0x187)][_0x1064ad(0x17d)][_0x1064ad(0x196)](),this[_0x1064ad(0x187)][_0x1064ad(0x17d)][_0x1064ad(0x1a2)](this[_0x1064ad(0x11a)]());}[_0x46f3fa(0x141)](_0x5be9df){const _0x594c4b=_0x46f3fa;this[_0x594c4b(0x187)][_0x594c4b(0x17d)][_0x594c4b(0x141)](_0x5be9df);}[_0x46f3fa(0x169)](_0xfc47cc){const _0x4be4f2=_0x46f3fa;this[_0x4be4f2(0x187)][_0x4be4f2(0x17d)][_0x4be4f2(0x14d)](_0xfc47cc[_0x4be4f2(0x1a5)]),this[_0x4be4f2(0x187)][_0x4be4f2(0x17d)][_0x4be4f2(0x149)](_0xfc47cc[_0x4be4f2(0x15c)]),this[_0x4be4f2(0x187)][_0x4be4f2(0x17d)][_0x4be4f2(0x1a2)](this[_0x4be4f2(0x11a)](_0xfc47cc));}[_0x46f3fa(0x12e)](_0x1c283c,_0x2ba8cd){const _0x1d1974=_0x46f3fa;this[_0x1d1974(0x187)][_0x1d1974(0x17d)][_0x1d1974(0x1a7)](_0x1c283c),_0x2ba8cd&&this[_0x1d1974(0x187)][_0x1d1974(0x17d)][_0x1d1974(0x17c)](!0x1);}[_0x46f3fa(0x19d)](_0x5e40b4){const _0x373721=_0x46f3fa;this[_0x373721(0x17f)]=_0x5e40b4;}[_0x46f3fa(0x158)](_0x554ed9){const _0x1385c1=_0x46f3fa;this[_0x1385c1(0x187)][_0x1385c1(0x17e)][_0x1385c1(0x158)](_0x554ed9);}[_0x46f3fa(0x146)](){const _0x2952e1=_0x46f3fa;this[_0x2952e1(0x12c)](_0x3cb649(this[_0x2952e1(0x108)][_0x2952e1(0x156)],_0x2952e1(0x128)));}[_0x46f3fa(0x12c)](_0x2382d5,_0x40de9a=!0x1){const _0x1ba023=_0x46f3fa;if(_0x40de9a&&!_0x1c796f()&&_0x2382d5[_0x1ba023(0x159)])return this[_0x1ba023(0x187)][_0x1ba023(0x152)][_0x1ba023(0x1a6)]='',void this[_0x1ba023(0x162)](_0x2382d5);this[_0x1ba023(0x187)][_0x1ba023(0x152)][_0x1ba023(0x1a6)]=_0x2382d5;}[_0x46f3fa(0x171)](_0x193082){const _0x44cd20=_0x46f3fa,_0x2702d0=this[_0x44cd20(0x14f)](_0x193082);this[_0x44cd20(0x187)][_0x44cd20(0x17e)][_0x44cd20(0x171)](_0x2702d0);}[_0x46f3fa(0x162)](_0x441553){const _0x4999d7=_0x46f3fa;let _0x2d6d47=0x0;clearInterval(this[_0x4999d7(0x14a)]),this[_0x4999d7(0x14a)]=setInterval(()=>{const _0x20d8ad=_0x4999d7;this[_0x20d8ad(0x187)][_0x20d8ad(0x152)][_0x20d8ad(0x1a6)]=this[_0x20d8ad(0x187)][_0x20d8ad(0x152)][_0x20d8ad(0x1a6)]+_0x441553[_0x2d6d47],_0x2d6d47++,_0x2d6d47===_0x441553[_0x20d8ad(0x159)]&&clearInterval(this[_0x20d8ad(0x14a)]);},0x1e);}[_0x46f3fa(0x123)](_0x1b51a7){const _0x441156=_0x46f3fa;this[_0x441156(0x187)][_0x441156(0x152)][_0x441156(0x134)]=_0x1b51a7;}[_0x46f3fa(0x14f)](_0x299cd0){const _0xc3e31f=_0x46f3fa;return _0x299cd0?_0x299cd0[_0xc3e31f(0x1a5)]&&_0x299cd0[_0xc3e31f(0x15c)]?_0x3cb649(this[_0xc3e31f(0x108)][_0xc3e31f(0x156)],_0xc3e31f(0x13e)):_0x299cd0[_0xc3e31f(0x1a5)]?_0x3cb649(this[_0xc3e31f(0x108)][_0xc3e31f(0x156)],_0xc3e31f(0x176)):_0x299cd0[_0xc3e31f(0x15c)]?_0x3cb649(this[_0xc3e31f(0x108)][_0xc3e31f(0x156)],_0xc3e31f(0x18a)):_0x3cb649(this[_0xc3e31f(0x108)][_0xc3e31f(0x156)],_0xc3e31f(0x125)):'';}[_0x46f3fa(0x11a)](_0x481692){const _0x227a03=_0x46f3fa;return _0x481692?_0x481692[_0x227a03(0x1a5)]&&_0x481692[_0x227a03(0x15c)]?_0x3cb649(this[_0x227a03(0x108)][_0x227a03(0x156)],_0x227a03(0x163)):_0x481692[_0x227a03(0x1a5)]?_0x3cb649(this[_0x227a03(0x108)][_0x227a03(0x156)],_0x227a03(0x178)):_0x481692[_0x227a03(0x15c)]?_0x3cb649(this[_0x227a03(0x108)][_0x227a03(0x156)],_0x227a03(0x18b)):_0x3cb649(this[_0x227a03(0x108)][_0x227a03(0x156)],_0x227a03(0x167)):_0x3cb649(this[_0x227a03(0x108)][_0x227a03(0x156)],_0x227a03(0x167));}[_0x46f3fa(0x12d)](_0x3f584a,_0x5f53a9,_0x21f68c,_0x33b9e6){const _0x3c8378=_0x46f3fa;this[_0x3c8378(0x187)][_0x3c8378(0x12d)](_0x3f584a,_0x5f53a9,_0x21f68c,_0x33b9e6);}[_0x46f3fa(0x183)](_0x48b09f){const _0x3729c9=_0x46f3fa;this[_0x3729c9(0x187)][_0x3729c9(0x183)](_0x48b09f);}[_0x46f3fa(0x197)](){const _0x51114a=_0x46f3fa;this[_0x51114a(0x187)][_0x51114a(0x17d)][_0x51114a(0x197)]();}[_0x46f3fa(0x136)](_0x19b28a,_0x9ad799){const _0x3c99d6=_0x46f3fa;this[_0x3c99d6(0x187)][_0x3c99d6(0x17e)][_0x3c99d6(0x135)](_0x19b28a,_0x9ad799);}[_0x46f3fa(0x109)](){const _0x4b0591=_0x46f3fa;this[_0x4b0591(0x187)][_0x4b0591(0x17e)][_0x4b0591(0x109)]();}[_0x46f3fa(0x126)](){const _0x40aae9=_0x46f3fa;this[_0x40aae9(0x187)][_0x40aae9(0x17d)][_0x40aae9(0x13c)]=!0x0;}[_0x46f3fa(0x10d)](){const _0x365c48=_0x46f3fa;this[_0x365c48(0x187)][_0x365c48(0x17d)][_0x365c48(0x13c)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5740aa=_0x3ed1;(function(_0x1d0926,_0x4ecba2){const _0x180f8d=_0x3ed1,_0x185540=_0x1d0926();while(!![]){try{const _0x58bb71=-parseInt(_0x180f8d(0x156))/0x1*(-parseInt(_0x180f8d(0x130))/0x2)+-parseInt(_0x180f8d(0x111))/0x3*(parseInt(_0x180f8d(0x118))/0x4)+-parseInt(_0x180f8d(0x110))/0x5*(-parseInt(_0x180f8d(0x164))/0x6)+-parseInt(_0x180f8d(0x165))/0x7*(-parseInt(_0x180f8d(0x147))/0x8)+parseInt(_0x180f8d(0x155))/0x9+parseInt(_0x180f8d(0x193))/0xa+-parseInt(_0x180f8d(0x175))/0xb*(parseInt(_0x180f8d(0x153))/0xc);if(_0x58bb71===_0x4ecba2)break;else _0x185540['push'](_0x185540['shift']());}catch(_0xe68ba4){_0x185540['push'](_0x185540['shift']());}}}(_0x2696,0xe5c18));function _0x3ed1(_0x225f33,_0x4acc9b){const _0x2696d1=_0x2696();return _0x3ed1=function(_0x3ed1b1,_0x1a71d7){_0x3ed1b1=_0x3ed1b1-0x107;let _0x141a7d=_0x2696d1[_0x3ed1b1];return _0x141a7d;},_0x3ed1(_0x225f33,_0x4acc9b);}import{CKEditorError as _0x2a5557,ObservableMixin as _0x10d4e3,uid as _0x57fc2b}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a8329,AIContextTextResourceType as _0x2f8119}from'../../aicore/model/aicontext.js';import{escape as _0x5036fd}from'es-toolkit/compat';import{errorsMap as _0x4ffe61}from'../../errorsmap.js';function _0x2696(){const _0x53c61e=['addFilesToContext','fire','_createContextItemFromContent','_updateResourceInContextState','contextSent','getDocument','find','Current\x20document','code','ai-chat-source-not-found','type','text/plain','updateCurrentDocument','ai-chat-resource-load-failed','delete','values','getData','_finishUploadOperation','text/markdown','ai-request-aborted','8468632gnvBiN','uploadProgressChanged','resourceStateChanged','url-','removeFromContext','sources','set','ai-chat-context-unsupported-type','clearPendingContextItems','files-','selection','SELECTION','50364wdJmKO','_mapContextItemToRequestData','3630528MDREZI','14NrDCoN','filter','_convertTextResourceToFile','removeSelectionFromContext','map','uploadDocument','addSelectionToContext','mapContextItemsToRequestData','stack','URL','uiId','_addToConversationContextItem','isReadOnly','abortController','66tjVqGi','7KYHAbl','text/html','_startUploadOperation','init','isHidden','_ongoingUploadOperations','File','addCurrentDocumentToContext','from','_finishContextItemLoading','getPendingContextItems','isInContext','message','uploadFile','data','_addContextOptionsState','10351pALTan','FILE','_setAddContextOptionsDefaultState','document','contextItemAdded','addUrlToContext','_pendingContextItems','abort','urls','isCurrentDocumentInContext','forEach','_conversationContextItems','error','sourceResourcesLoaded','_config','_removeContextItem','_toggleAddCurrentDocumentOptionVisibility','url','loadSourceResources','_findSourceIdsByResourceId','sessionId','object\x20with\x20content\x20and\x20type\x20properties','get','fetchDocument','current-document','getId','ai-chat-url-upload-failed','_addContextItem','getResources','has','6136630SZlfBM','addContextOptionsChanged','_isResourceInContext','start','populateFromMessage','object','MARKDOWN','push','TEXT','ai-chat-resource-no-data','addToConversationContext','length','ai-chat-document-upload-failed','isCurrentDocumentInConversation','668165uuvJaB','175704eHEmFm','_ongoingUploads','string','files','ai-chat-file-upload-failed','name','file-','24DEfPcw','resources','contextItemLoadingEnded','HTML','size','contextItemRemoved','_ownerId','version','enabled','ai-chat-context-invalid-data','_connector','end','_getCustomSourcesInitialState','ai-chat-source-resources-load-failed','hidden','getSentContextItems','DOCUMENT','resourceId','addResourceToContext','content','startsWith','uploadUrl','attributes','all','242324IjtZhg','isSelectionInContext','label'];_0x2696=function(){return _0x53c61e;};return _0x2696();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5740aa(0x179),_0x5740aa(0x11d),_0x5740aa(0x11a),_0x5740aa(0x137),_0x5740aa(0x181),_0x5740aa(0x194),_0x5740aa(0x182),_0x5740aa(0x149),_0x5740aa(0x148)];export class AIChatContext extends _0x10d4e3(){[_0x5740aa(0x122)];[_0x5740aa(0x183)];[_0x5740aa(0x11e)];constructor({connector:_0x34a9ff,config:_0xef53cc,ownerId:_0x2006d9}){const _0x3f6bc4=_0x5740aa;super(),this[_0x3f6bc4(0x122)]=_0x34a9ff,this[_0x3f6bc4(0x183)]=_0xef53cc,this[_0x3f6bc4(0x11e)]=_0x2006d9;}[_0x5740aa(0x168)](){const _0x4cdd6f=_0x5740aa;this[_0x4cdd6f(0x17b)]=new Map(),this[_0x4cdd6f(0x180)]=new Map(),this[_0x4cdd6f(0x112)]=new Map(),this[_0x4cdd6f(0x16a)]=new Map(),this[_0x4cdd6f(0x177)]();}[_0x5740aa(0x16f)](){const _0x3d4ec0=_0x5740aa;return this[_0x3d4ec0(0x17b)];}async[_0x5740aa(0x197)](_0x539a61){const _0x2b26f8=_0x5740aa,_0x53c591=await this[_0x2b26f8(0x135)](_0x539a61);return this[_0x2b26f8(0x161)](_0x53c591),_0x2b26f8(0x18d)===_0x53c591[_0x2b26f8(0x160)]&&this[_0x2b26f8(0x185)](),_0x53c591;}async[_0x5740aa(0x135)](_0x93ac0){const _0x3084ba=_0x5740aa;if(_0x93ac0[_0x3084ba(0x13d)]===_0x4a8329[_0x3084ba(0x128)]){const _0x565d03=await this[_0x3084ba(0x122)][_0x3084ba(0x18c)](this[_0x3084ba(0x11e)],_0x93ac0['id'])[_0x3084ba(0x138)]();return{'id':_0x3084ba(0x18d),'uiId':_0x3084ba(0x18d),'label':_0x3084ba(0x13a),'type':_0x93ac0[_0x3084ba(0x13d)],'content':_0x565d03[_0x3084ba(0x12b)],'hidden':this[_0x3084ba(0x180)][_0x3084ba(0x192)](_0x3084ba(0x18d)),'version':_0x565d03[_0x3084ba(0x12e)]?.[_0x3084ba(0x11f)],'sessionId':_0x565d03[_0x3084ba(0x12e)]?.[_0x3084ba(0x189)]};}return{'id':_0x93ac0['id'],'uiId':_0x93ac0['id'],'label':_0x93ac0[_0x3084ba(0x12e)]?.[_0x3084ba(0x132)]||_0x93ac0[_0x3084ba(0x116)]||_0x93ac0[_0x3084ba(0x186)]||_0x93ac0['id'],'type':_0x93ac0[_0x3084ba(0x13d)],..._0x93ac0?.[_0x3084ba(0x12e)]?.[_0x3084ba(0x129)]?{'resourceId':_0x93ac0[_0x3084ba(0x12e)]?.[_0x3084ba(0x129)]}:{}};}[_0x5740aa(0x127)](){const _0x1802a7=_0x5740aa;return new Map(this[_0x1802a7(0x180)]);}[_0x5740aa(0x14b)](_0x271253){const _0x1b0e8d=_0x5740aa,_0x269fb2=this[_0x1b0e8d(0x17b)][_0x1b0e8d(0x18b)](_0x271253);_0x269fb2?.[_0x1b0e8d(0x162)]||this[_0x1b0e8d(0x184)](_0x271253);}[_0x5740aa(0x14f)](){const _0x2a93b3=_0x5740aa;if(0x0===this[_0x2a93b3(0x17b)][_0x2a93b3(0x11c)])return;for(const _0x424aa3 of this[_0x2a93b3(0x17b)][_0x2a93b3(0x142)]())this[_0x2a93b3(0x184)](_0x424aa3[_0x2a93b3(0x160)]);const _0x52d215=this[_0x2a93b3(0x180)][_0x2a93b3(0x18b)](_0x2a93b3(0x18d))||this[_0x2a93b3(0x17b)][_0x2a93b3(0x18b)](_0x2a93b3(0x18d));_0x52d215&&this[_0x2a93b3(0x190)]({..._0x52d215,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5740aa(0x10c)](_0x18d115){const _0x3d3696=_0x5740aa;for(const _0x175e3f of _0x18d115[_0x3d3696(0x142)]())this[_0x3d3696(0x161)](_0x175e3f);this[_0x3d3696(0x14f)](),this[_0x3d3696(0x134)](_0x3d3696(0x137),{'contextItems':Array[_0x3d3696(0x16d)](this[_0x3d3696(0x127)]()[_0x3d3696(0x142)]())});}[_0x5740aa(0x17e)](){const _0x42b2b1=_0x5740aa;return this[_0x42b2b1(0x17b)][_0x42b2b1(0x192)](_0x42b2b1(0x18d));}[_0x5740aa(0x131)](){const _0x457861=_0x5740aa;return this[_0x457861(0x17b)][_0x457861(0x192)](_0x457861(0x151));}[_0x5740aa(0x10f)](){const _0x2dc626=_0x5740aa;return this[_0x2dc626(0x180)][_0x2dc626(0x192)](_0x2dc626(0x18d));}static[_0x5740aa(0x15d)](_0x2615ce){const _0x1590e4=_0x5740aa;return Array[_0x1590e4(0x16d)](_0x2615ce[_0x1590e4(0x142)]())[_0x1590e4(0x15a)](_0x56b115=>this[_0x1590e4(0x154)](_0x56b115))[_0x1590e4(0x157)](_0x48e095=>null!==_0x48e095);}async[_0x5740aa(0x133)](_0x314bf7,_0x36bed1,_0xadb6f0=_0x4a8329[_0x5740aa(0x176)]){const _0x4149d2=_0x5740aa,_0x59af53=_0x4149d2(0x150)+_0x57fc2b();this[_0x4149d2(0x167)](_0x59af53);try{await Promise[_0x4149d2(0x12f)](_0x314bf7[_0x4149d2(0x15a)](async _0x23f43d=>{const _0x28eaf0=_0x4149d2,_0x28c748=_0x28eaf0(0x117)+_0x57fc2b(),_0x32dec6=_0x5036fd(_0x23f43d[_0x28eaf0(0x116)]);try{this[_0x28eaf0(0x190)]({'type':_0xadb6f0,'label':_0x36bed1?.[_0x28eaf0(0x132)]||_0x32dec6,'uiId':_0x28c748,'resourceId':_0x36bed1?.[_0x28eaf0(0x129)]},!0x0);const _0x454bb1=this[_0x28eaf0(0x122)][_0x28eaf0(0x172)](this[_0x28eaf0(0x11e)],_0x23f43d,_0x36bed1);this[_0x28eaf0(0x112)][_0x28eaf0(0x14d)](_0x28c748,_0x454bb1[_0x28eaf0(0x163)]);const {id:_0x573bfa}=await _0x454bb1[_0x28eaf0(0x18e)]();this[_0x28eaf0(0x112)][_0x28eaf0(0x141)](_0x28c748),this[_0x28eaf0(0x16e)]({'type':_0xadb6f0,'id':_0x573bfa,'label':_0x36bed1?.[_0x28eaf0(0x132)]||_0x32dec6,'uiId':_0x28c748,'resourceId':_0x36bed1?.[_0x28eaf0(0x129)]},!0x1);}catch(_0x326169){this[_0x28eaf0(0x112)][_0x28eaf0(0x141)](_0x28c748);if(!(_0x326169 instanceof _0x2a5557&&_0x326169[_0x28eaf0(0x171)][_0x28eaf0(0x12c)](_0x28eaf0(0x146)))){const _0xff7cd4=_0x4ffe61[_0x28eaf0(0x18b)](_0x326169[_0x28eaf0(0x13b)])||_0x28eaf0(0x115),_0x230693=new _0x2a5557(_0xff7cd4,null,{'fileName':_0x32dec6,..._0x326169});_0x230693[_0x28eaf0(0x15e)]=_0x326169[_0x28eaf0(0x15e)],this[_0x28eaf0(0x134)](_0x28eaf0(0x181),{'error':_0x230693});}this[_0x28eaf0(0x184)](_0x28c748);}}));}finally{this[_0x4149d2(0x144)](_0x59af53);}}[_0x5740aa(0x16c)](_0x31fece){const _0xaa7fc6=_0x5740aa;if(this[_0xaa7fc6(0x17e)]()||!this[_0xaa7fc6(0x174)][_0xaa7fc6(0x178)][_0xaa7fc6(0x120)])return;const _0x37a28f={'type':_0x4a8329[_0xaa7fc6(0x128)],'uiId':_0xaa7fc6(0x18d),'label':_0x31fece,'isReadOnly':this[_0xaa7fc6(0x180)][_0xaa7fc6(0x192)](_0xaa7fc6(0x18d)),'hidden':this[_0xaa7fc6(0x180)][_0xaa7fc6(0x192)](_0xaa7fc6(0x18d))};this[_0xaa7fc6(0x190)](_0x37a28f);}async[_0x5740aa(0x13f)](_0x4e95c3,_0x3ad3b8,_0x2bf4fc,_0x481219){const _0x33ded1=_0x5740aa,_0x483b79=this[_0x33ded1(0x17b)][_0x33ded1(0x18b)](_0x33ded1(0x18d));if(_0x483b79&&_0x4e95c3){_0x483b79[_0x33ded1(0x151)]=_0x481219?_0x481219[_0x33ded1(0x15a)](_0x5a84a2=>({'start':_0x5a84a2[_0x33ded1(0x196)],'end':_0x5a84a2[_0x33ded1(0x123)]})):[];try{if(_0x483b79[_0x33ded1(0x11f)]===_0x3ad3b8)return;const {id:_0x5ee9e}=await this[_0x33ded1(0x122)][_0x33ded1(0x15b)](this[_0x33ded1(0x11e)],_0x4e95c3,{'version':_0x3ad3b8,'sessionId':_0x2bf4fc})[_0x33ded1(0x18e)]();_0x483b79['id']=_0x5ee9e,_0x483b79[_0x33ded1(0x12b)]=_0x4e95c3,_0x483b79[_0x33ded1(0x11f)]=_0x3ad3b8,_0x483b79[_0x33ded1(0x189)]=_0x2bf4fc;}catch(_0x4a6b5c){const _0xadfd8f=new _0x2a5557(_0x33ded1(0x10e),null);_0xadfd8f[_0x33ded1(0x15e)]=_0x4a6b5c[_0x33ded1(0x15e)],this[_0x33ded1(0x134)](_0x33ded1(0x181),{'error':_0xadfd8f});}}}[_0x5740aa(0x15c)](_0x2c6922){const _0x44cc78=_0x5740aa;this[_0x44cc78(0x190)]({'type':_0x4a8329[_0x44cc78(0x152)],'label':_0x2c6922,'uiId':_0x44cc78(0x151),'content':_0x2c6922});}[_0x5740aa(0x159)](){const _0x493b03=_0x5740aa;this[_0x493b03(0x184)](_0x493b03(0x151));}async[_0x5740aa(0x17a)](_0x20789f,_0x1b03f5){const _0x87ae51=_0x5740aa,_0xd51db4=_0x87ae51(0x14a)+_0x57fc2b();this[_0x87ae51(0x167)](_0xd51db4);const _0xad6e31=_0x87ae51(0x14a)+_0x57fc2b();try{this[_0x87ae51(0x190)]({'type':_0x4a8329[_0x87ae51(0x15f)],'label':_0x1b03f5?.[_0x87ae51(0x132)]||_0x20789f,'uiId':_0xad6e31,'resourceId':_0x1b03f5?.[_0x87ae51(0x129)]},!0x0);const _0x277b35=this[_0x87ae51(0x122)][_0x87ae51(0x12d)](this[_0x87ae51(0x11e)],_0x20789f,_0x1b03f5);this[_0x87ae51(0x112)][_0x87ae51(0x14d)](_0xad6e31,_0x277b35[_0x87ae51(0x163)]);const {id:_0x52a679}=await _0x277b35[_0x87ae51(0x18e)]();this[_0x87ae51(0x112)][_0x87ae51(0x141)](_0xad6e31),this[_0x87ae51(0x16e)]({'type':_0x4a8329[_0x87ae51(0x15f)],'id':_0x52a679,'label':_0x1b03f5?.[_0x87ae51(0x132)]||_0x20789f,'uiId':_0xad6e31,'resourceId':_0x1b03f5?.[_0x87ae51(0x129)]},!0x1);}catch(_0x2b87a7){this[_0x87ae51(0x112)][_0x87ae51(0x141)](_0xad6e31),(_0x2b87a7[_0x87ae51(0x171)][_0x87ae51(0x12c)](_0x87ae51(0x146))||this[_0x87ae51(0x134)](_0x87ae51(0x181),{'error':new _0x2a5557(_0x87ae51(0x18f),this,{'url':_0x20789f,'originalError':_0x2b87a7}),'url':_0x20789f}),this[_0x87ae51(0x184)](_0xad6e31));}finally{this[_0x87ae51(0x144)](_0xd51db4);}}async[_0x5740aa(0x187)](_0x27e95d,_0x5d3dd0,_0x1b7826){const _0x2df96a=_0x5740aa,_0x29519f=this[_0x2df96a(0x174)][_0x2df96a(0x14c)][_0x2df96a(0x139)](_0xee6b45=>_0xee6b45['id']===_0x27e95d);if(!_0x29519f)return this[_0x2df96a(0x134)](_0x2df96a(0x181),{'error':new _0x2a5557(_0x2df96a(0x13c),this,{'sourceId':_0x27e95d}),'sourceId':_0x27e95d}),[];try{const _0xd9c874=(await _0x29519f[_0x2df96a(0x191)](_0x5d3dd0))[_0x2df96a(0x15a)](_0x532dd2=>{const _0x161669=_0x2df96a,_0x4dbfc3=this[_0x161669(0x195)](_0x532dd2['id']);return{..._0x532dd2,'isInContext':_0x4dbfc3};});return _0x29519f[_0x2df96a(0x119)]=_0xd9c874,this[_0x2df96a(0x134)](_0x2df96a(0x182),{'sourceId':_0x27e95d,'source':_0x29519f,'resources':_0xd9c874,'uid':_0x1b7826}),_0xd9c874;}catch(_0x452645){return this[_0x2df96a(0x134)](_0x2df96a(0x181),{'error':new _0x2a5557(_0x2df96a(0x125),this,{'sourceId':_0x27e95d,'originalError':_0x452645}),'sourceId':_0x27e95d,'sourceLabel':_0x29519f[_0x2df96a(0x132)]}),[];}}async[_0x5740aa(0x12a)](_0x4ed33c,_0x50187e){const _0xe93d72=_0x5740aa;if(this[_0xe93d72(0x195)](_0x50187e['id']))return;let _0x38c81d=_0x50187e[_0xe93d72(0x173)];if(!_0x38c81d&&_0x4ed33c[_0xe93d72(0x143)])try{_0x38c81d=await _0x4ed33c[_0xe93d72(0x143)](_0x50187e['id']);}catch(_0x542d2a){return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x140),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'originalError':_0x542d2a}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}if(_0x38c81d)switch(_0x50187e[_0xe93d72(0x13d)]){case _0x4a8329[_0xe93d72(0x15f)]:if(_0xe93d72(0x113)!=typeof _0x38c81d)return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x113),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});await this[_0xe93d72(0x17a)](_0x38c81d,{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']});break;case _0x4a8329[_0xe93d72(0x176)]:if(!(_0x38c81d instanceof File))return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x16b),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});await this[_0xe93d72(0x133)]([_0x38c81d],{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']});break;case _0x4a8329[_0xe93d72(0x10a)]:if(_0xe93d72(0x107)!=typeof _0x38c81d||!(_0xe93d72(0x12b)in _0x38c81d)||!(_0xe93d72(0x13d)in _0x38c81d))return void this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x121),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'expectedType':_0xe93d72(0x18a),'actualType':typeof _0x38c81d}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});_0x38c81d=AIChatContext[_0xe93d72(0x158)](_0x38c81d,_0x50187e[_0xe93d72(0x132)]),await this[_0xe93d72(0x133)]([_0x38c81d],{'label':_0x50187e[_0xe93d72(0x132)],'resourceId':_0x50187e['id']},_0x4a8329[_0xe93d72(0x10a)]);break;default:this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x14e),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id'],'resourceType':_0x50187e[_0xe93d72(0x13d)]}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}else this[_0xe93d72(0x134)](_0xe93d72(0x181),{'error':new _0x2a5557(_0xe93d72(0x10b),this,{'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']}),'resourceId':_0x50187e['id'],'sourceId':_0x4ed33c['id']});}static[_0x5740aa(0x158)](_0x17cbca,_0xe32b23){const _0x1c3ceb=_0x5740aa;switch(_0x17cbca[_0x1c3ceb(0x13d)]){case _0x2f8119[_0x1c3ceb(0x108)]:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x145)});case _0x2f8119[_0x1c3ceb(0x11b)]:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x166)});default:return new File([_0x17cbca[_0x1c3ceb(0x12b)]],_0xe32b23,{'type':_0x1c3ceb(0x13e)});}}static[_0x5740aa(0x154)](_0x11d2ac){const _0xae013b=_0x5740aa;switch(_0x11d2ac[_0xae013b(0x13d)]){case _0x4a8329[_0xae013b(0x176)]:return{'type':_0x4a8329[_0xae013b(0x176)],'id':_0x11d2ac['id']};case _0x4a8329[_0xae013b(0x15f)]:return{'type':_0x4a8329[_0xae013b(0x15f)],'id':_0x11d2ac['id']};case _0x4a8329[_0xae013b(0x128)]:return{'type':_0x4a8329[_0xae013b(0x128)],'id':_0x11d2ac['id'],..._0x11d2ac[_0xae013b(0x151)]?.[_0xae013b(0x10d)]&&{'selection':_0x11d2ac[_0xae013b(0x151)]}};case _0x4a8329[_0xae013b(0x10a)]:return{'type':_0x4a8329[_0xae013b(0x176)],'id':_0x11d2ac['id']};default:return null;}}[_0x5740aa(0x190)](_0x432858,_0x4d52e0=!0x1){const _0x183017=_0x5740aa;if(this[_0x183017(0x17b)][_0x183017(0x14d)](_0x432858[_0x183017(0x160)],_0x432858),_0x432858[_0x183017(0x126)]||this[_0x183017(0x134)](_0x183017(0x179),{'contextItem':_0x432858,'isLoading':_0x4d52e0}),_0x183017(0x18d)===_0x432858[_0x183017(0x160)]&&this[_0x183017(0x185)](),_0x432858[_0x183017(0x129)]){const _0x3048fa=this[_0x183017(0x188)](_0x432858[_0x183017(0x129)]);_0x3048fa&&_0x3048fa[_0x183017(0x17f)](_0x3afbaf=>{const _0x50dd25=_0x183017;this[_0x50dd25(0x136)](_0x3afbaf,_0x432858[_0x50dd25(0x129)],!0x0);});}}[_0x5740aa(0x184)](_0x5c55e3){const _0x43fb0f=_0x5740aa,_0x1240f6=this[_0x43fb0f(0x17b)][_0x43fb0f(0x18b)](_0x5c55e3),_0x9672ef=this[_0x43fb0f(0x112)][_0x43fb0f(0x18b)](_0x5c55e3);if(_0x9672ef&&(_0x9672ef[_0x43fb0f(0x17c)](),this[_0x43fb0f(0x112)][_0x43fb0f(0x141)](_0x5c55e3)),_0x1240f6?.[_0x43fb0f(0x129)]){const _0x275086=this[_0x43fb0f(0x188)](_0x1240f6[_0x43fb0f(0x129)]);_0x275086&&_0x275086[_0x43fb0f(0x17f)](_0x4e0913=>{const _0x5158b0=_0x43fb0f;this[_0x5158b0(0x136)](_0x4e0913,_0x1240f6[_0x5158b0(0x129)],!0x1);});}this[_0x43fb0f(0x17b)][_0x43fb0f(0x141)](_0x5c55e3),this[_0x43fb0f(0x134)](_0x43fb0f(0x11d),{'uiId':_0x5c55e3,'type':_0x1240f6?.[_0x43fb0f(0x13d)]}),_0x43fb0f(0x18d)===_0x5c55e3&&this[_0x43fb0f(0x185)]();}[_0x5740aa(0x16e)](_0x2fa98f,_0x35bcec){const _0x38a680=_0x5740aa;if(this[_0x38a680(0x17b)][_0x38a680(0x192)](_0x2fa98f[_0x38a680(0x160)])&&(this[_0x38a680(0x17b)][_0x38a680(0x14d)](_0x2fa98f[_0x38a680(0x160)],_0x2fa98f),this[_0x38a680(0x134)](_0x38a680(0x11a),{'contextItem':_0x2fa98f,'isLoading':_0x35bcec}),_0x2fa98f[_0x38a680(0x129)])){const _0x27a763=this[_0x38a680(0x188)](_0x2fa98f[_0x38a680(0x129)]);_0x27a763&&_0x27a763[_0x38a680(0x17f)](_0xeb8ea8=>{const _0x14e276=_0x38a680;this[_0x14e276(0x136)](_0xeb8ea8,_0x2fa98f[_0x14e276(0x129)],!0x0);});}}[_0x5740aa(0x161)](_0x3abb6f){const _0x17a9c4=_0x5740aa;this[_0x17a9c4(0x180)][_0x17a9c4(0x14d)](_0x3abb6f[_0x17a9c4(0x160)],_0x3abb6f);}[_0x5740aa(0x177)](){const _0x27c7e=_0x5740aa;this[_0x27c7e(0x174)]={'document':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x178)]?.[_0x27c7e(0x120)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x17d)]?.[_0x27c7e(0x120)]},'files':{'enabled':!0x1!==this[_0x27c7e(0x183)]?.[_0x27c7e(0x114)]?.[_0x27c7e(0x120)]},'sources':this[_0x27c7e(0x124)]()},this[_0x27c7e(0x134)](_0x27c7e(0x194),{'options':this[_0x27c7e(0x174)]});}[_0x5740aa(0x124)](){const _0x1993c9=_0x5740aa;return this[_0x1993c9(0x183)]?.[_0x1993c9(0x14c)]?.[_0x1993c9(0x15a)](_0x2f37b4=>({..._0x2f37b4,'resources':[]}))??[];}[_0x5740aa(0x185)](){const _0x31b211=_0x5740aa,_0x3e892a=this[_0x31b211(0x17e)]()||this[_0x31b211(0x10f)]();this[_0x31b211(0x174)][_0x31b211(0x178)][_0x31b211(0x169)]=_0x3e892a,this[_0x31b211(0x134)](_0x31b211(0x194),{'options':this[_0x31b211(0x174)]});}[_0x5740aa(0x195)](_0x2f1c5a){const _0x43d838=_0x5740aa;for(const _0x24f00c of this[_0x43d838(0x17b)][_0x43d838(0x142)]())if(_0x24f00c[_0x43d838(0x129)]===_0x2f1c5a)return!0x0;for(const _0x1b8e9b of this[_0x43d838(0x180)][_0x43d838(0x142)]())if(_0x1b8e9b[_0x43d838(0x129)]===_0x2f1c5a)return!0x0;return!0x1;}[_0x5740aa(0x188)](_0x5039dc){const _0x17dc68=_0x5740aa,_0x5c2703=[];for(const _0x3d8ba9 of this[_0x17dc68(0x174)][_0x17dc68(0x14c)]){_0x3d8ba9[_0x17dc68(0x119)][_0x17dc68(0x139)](_0x596050=>_0x596050['id']===_0x5039dc)&&_0x5c2703[_0x17dc68(0x109)](_0x3d8ba9['id']);}return 0x0===_0x5c2703[_0x17dc68(0x10d)]?null:_0x5c2703;}[_0x5740aa(0x136)](_0xacc381,_0x545faf,_0x1b0ddd){const _0x39ae65=_0x5740aa,_0x512eea=this[_0x39ae65(0x174)][_0x39ae65(0x14c)][_0x39ae65(0x139)](_0x1c88a8=>_0x1c88a8['id']===_0xacc381);if(!_0x512eea)return;const _0x1b4056=_0x512eea[_0x39ae65(0x119)][_0x39ae65(0x139)](_0x125737=>_0x125737['id']===_0x545faf);_0x1b4056&&(_0x1b4056[_0x39ae65(0x170)]=_0x1b0ddd,this[_0x39ae65(0x134)](_0x39ae65(0x149),{'sourceId':_0xacc381,'resourceId':_0x545faf,'isInContext':_0x1b0ddd}));}[_0x5740aa(0x167)](_0x6ce028){const _0x32edf9=_0x5740aa;this[_0x32edf9(0x16a)][_0x32edf9(0x14d)](_0x6ce028,!0x0),this[_0x32edf9(0x16a)][_0x32edf9(0x11c)]&&this[_0x32edf9(0x134)](_0x32edf9(0x148),{'isUploadInProgress':!0x0});}[_0x5740aa(0x144)](_0x400dee){const _0x3e047b=_0x5740aa;this[_0x3e047b(0x16a)][_0x3e047b(0x141)](_0x400dee),0x0===this[_0x3e047b(0x16a)][_0x3e047b(0x11c)]&&this[_0x3e047b(0x134)](_0x3e047b(0x148),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x1eaa07=_0x13c4;(function(_0x2cdf1b,_0x259108){const _0x3df61a=_0x13c4,_0x3d0acd=_0x2cdf1b();while(!![]){try{const _0x496b7e=parseInt(_0x3df61a(0x84))/0x1+-parseInt(_0x3df61a(0xa6))/0x2+parseInt(_0x3df61a(0x8e))/0x3+parseInt(_0x3df61a(0xbd))/0x4+-parseInt(_0x3df61a(0x9a))/0x5+parseInt(_0x3df61a(0xb9))/0x6*(parseInt(_0x3df61a(0x9c))/0x7)+-parseInt(_0x3df61a(0xa5))/0x8;if(_0x496b7e===_0x259108)break;else _0x3d0acd['push'](_0x3d0acd['shift']());}catch(_0x37af04){_0x3d0acd['push'](_0x3d0acd['shift']());}}}(_0x2ad4,0x4bdf5));import{CKEditorError as _0x558326,ObservableMixin as _0x5dc1e1,uid as _0x3a514f}from'ckeditor5/src/utils.js';function _0x13c4(_0x264fd3,_0x587cc1){const _0x2ad4f6=_0x2ad4();return _0x13c4=function(_0x13c437,_0x5e9523){_0x13c437=_0x13c437-0x83;let _0x4217b4=_0x2ad4f6[_0x13c437];return _0x4217b4;},_0x13c4(_0x264fd3,_0x587cc1);}import{AIContextItemType as _0x4703e5,AIContextTextResourceType as _0x4ff1d2}from'../../aicore/model/aicontext.js';import{escape as _0x2139bb}from'es-toolkit/compat';import{errorsMap as _0x1f6fc3}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1eaa07(0xea),_0x1eaa07(0xd4),_0x1eaa07(0xd9),_0x1eaa07(0x8c),_0x1eaa07(0xc2),_0x1eaa07(0x103),_0x1eaa07(0xe9),_0x1eaa07(0xa9),_0x1eaa07(0xaf)];export class AIChatContext extends _0x5dc1e1(){[_0x1eaa07(0x89)];[_0x1eaa07(0xad)];[_0x1eaa07(0xf2)];constructor({connector:_0x48de5d,config:_0x5b4b04,ownerId:_0x4fe4ff}){const _0x14bc39=_0x1eaa07;super(),this[_0x14bc39(0x89)]=_0x48de5d,this[_0x14bc39(0xad)]=_0x5b4b04,this[_0x14bc39(0xf2)]=_0x4fe4ff;}[_0x1eaa07(0xf3)](){const _0x4b12c6=_0x1eaa07;this[_0x4b12c6(0xdc)]=new Map(),this[_0x4b12c6(0xe1)]=new Map(),this[_0x4b12c6(0x101)]=new Map(),this[_0x4b12c6(0x91)]=new Map(),this[_0x4b12c6(0x98)]();}[_0x1eaa07(0xb7)](){const _0x38d6fd=_0x1eaa07;return this[_0x38d6fd(0xdc)];}async[_0x1eaa07(0xc1)](_0x149aba){const _0x4172cf=_0x1eaa07,_0x3b3552=await this[_0x4172cf(0xeb)](_0x149aba);return this[_0x4172cf(0xd6)](_0x3b3552),_0x4172cf(0xed)===_0x3b3552[_0x4172cf(0xca)]&&this[_0x4172cf(0xfb)](),_0x3b3552;}async[_0x1eaa07(0xeb)](_0x43a1f3){const _0x5ce9a0=_0x1eaa07;if(_0x43a1f3[_0x5ce9a0(0xb2)]===_0x4703e5[_0x5ce9a0(0xa4)]){const _0x37f0c6=await this[_0x5ce9a0(0x89)][_0x5ce9a0(0xde)](this[_0x5ce9a0(0xf2)],_0x43a1f3['id'])[_0x5ce9a0(0x100)]();return{'id':_0x5ce9a0(0xed),'uiId':_0x5ce9a0(0xed),'label':_0x5ce9a0(0xd1),'type':_0x43a1f3[_0x5ce9a0(0xb2)],'content':_0x37f0c6[_0x5ce9a0(0x10b)],'hidden':this[_0x5ce9a0(0xe1)][_0x5ce9a0(0xd7)](_0x5ce9a0(0xed)),'version':_0x37f0c6[_0x5ce9a0(0x104)]?.[_0x5ce9a0(0xd0)],'sessionId':_0x37f0c6[_0x5ce9a0(0x104)]?.[_0x5ce9a0(0x88)]};}return{'id':_0x43a1f3['id'],'uiId':_0x43a1f3['id'],'label':_0x43a1f3[_0x5ce9a0(0x104)]?.[_0x5ce9a0(0xee)]||_0x43a1f3[_0x5ce9a0(0xfc)]||_0x43a1f3[_0x5ce9a0(0xf0)]||_0x43a1f3['id'],'type':_0x43a1f3[_0x5ce9a0(0xb2)],..._0x43a1f3?.[_0x5ce9a0(0x104)]?.[_0x5ce9a0(0x97)]?{'resourceId':_0x43a1f3[_0x5ce9a0(0x104)]?.[_0x5ce9a0(0x97)]}:{}};}[_0x1eaa07(0xc7)](){const _0x351cb1=_0x1eaa07;return new Map(this[_0x351cb1(0xe1)]);}[_0x1eaa07(0xae)](_0x2fdad3){const _0x3ea637=_0x1eaa07,_0x358066=this[_0x3ea637(0xdc)][_0x3ea637(0xe4)](_0x2fdad3);_0x358066?.[_0x3ea637(0x92)]||this[_0x3ea637(0xc3)](_0x2fdad3);}[_0x1eaa07(0xf5)](){const _0x5f21fc=_0x1eaa07;if(0x0===this[_0x5f21fc(0xdc)][_0x5f21fc(0xd5)])return;for(const _0x328b09 of this[_0x5f21fc(0xdc)][_0x5f21fc(0x10d)]())this[_0x5f21fc(0xc3)](_0x328b09[_0x5f21fc(0xca)]);const _0x499262=this[_0x5f21fc(0xe1)][_0x5f21fc(0xe4)](_0x5f21fc(0xed))||this[_0x5f21fc(0xdc)][_0x5f21fc(0xe4)](_0x5f21fc(0xed));_0x499262&&this[_0x5f21fc(0xbc)]({..._0x499262,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1eaa07(0xb6)](_0x22724f){const _0x1a6c7d=_0x1eaa07;for(const _0x1fdb67 of _0x22724f[_0x1a6c7d(0x10d)]())this[_0x1a6c7d(0xd6)](_0x1fdb67);this[_0x1a6c7d(0xf5)](),this[_0x1a6c7d(0x87)](_0x1a6c7d(0x8c),{'contextItems':Array[_0x1a6c7d(0xfa)](this[_0x1a6c7d(0xc7)]()[_0x1a6c7d(0x10d)]())});}[_0x1eaa07(0xf1)](){const _0x2018c8=_0x1eaa07;return this[_0x2018c8(0xdc)][_0x2018c8(0xd7)](_0x2018c8(0xed));}[_0x1eaa07(0xe8)](){const _0x115e82=_0x1eaa07;return this[_0x115e82(0xdc)][_0x115e82(0xd7)](_0x115e82(0x9f));}[_0x1eaa07(0x107)](){const _0x25570a=_0x1eaa07;return this[_0x25570a(0xe1)][_0x25570a(0xd7)](_0x25570a(0xed));}static[_0x1eaa07(0x10a)](_0x35cceb){const _0x48df24=_0x1eaa07;return Array[_0x48df24(0xfa)](_0x35cceb[_0x48df24(0x10d)]())[_0x48df24(0xa7)](_0x3bae89=>this[_0x48df24(0x90)](_0x3bae89))[_0x48df24(0xc8)](_0x2572ff=>null!==_0x2572ff);}async[_0x1eaa07(0xda)](_0x36bcd6,_0x2a821e,_0x120565=_0x4703e5[_0x1eaa07(0x8a)]){const _0x79cbb2=_0x1eaa07,_0x154453=_0x79cbb2(0x9d)+_0x3a514f();this[_0x79cbb2(0xa8)](_0x154453);try{await Promise[_0x79cbb2(0xbf)](_0x36bcd6[_0x79cbb2(0xa7)](async _0x4820d4=>{const _0x3ef06f=_0x79cbb2,_0x4a7223=_0x3ef06f(0xd8)+_0x3a514f(),_0x1be86a=_0x2139bb(_0x4820d4[_0x3ef06f(0xfc)]);try{this[_0x3ef06f(0xbc)]({'type':_0x120565,'label':_0x2a821e?.[_0x3ef06f(0xee)]||_0x1be86a,'uiId':_0x4a7223,'resourceId':_0x2a821e?.[_0x3ef06f(0x97)]},!0x0);const _0x162854=this[_0x3ef06f(0x89)][_0x3ef06f(0xe6)](this[_0x3ef06f(0xf2)],_0x4820d4,_0x2a821e);this[_0x3ef06f(0x101)][_0x3ef06f(0xb1)](_0x4a7223,_0x162854[_0x3ef06f(0x102)]);const {id:_0x5a3cd6}=await _0x162854[_0x3ef06f(0x85)]();this[_0x3ef06f(0x101)][_0x3ef06f(0xb3)](_0x4a7223),this[_0x3ef06f(0xef)]({'type':_0x120565,'id':_0x5a3cd6,'label':_0x2a821e?.[_0x3ef06f(0xee)]||_0x1be86a,'uiId':_0x4a7223,'resourceId':_0x2a821e?.[_0x3ef06f(0x97)]},!0x1);}catch(_0x571237){this[_0x3ef06f(0x101)][_0x3ef06f(0xb3)](_0x4a7223);if(!(_0x571237 instanceof _0x558326&&_0x571237[_0x3ef06f(0xf8)][_0x3ef06f(0xf6)](_0x3ef06f(0xb0)))){const _0xdcbbf5=_0x1f6fc3[_0x3ef06f(0xe4)](_0x571237[_0x3ef06f(0xf7)])||_0x3ef06f(0x83),_0x2dd8f7=new _0x558326(_0xdcbbf5,null,{'fileName':_0x1be86a,..._0x571237});_0x2dd8f7[_0x3ef06f(0x94)]=_0x571237[_0x3ef06f(0x94)],this[_0x3ef06f(0x87)](_0x3ef06f(0xc2),{'error':_0x2dd8f7});}this[_0x3ef06f(0xc3)](_0x4a7223);}}));}finally{this[_0x79cbb2(0xe7)](_0x154453);}}[_0x1eaa07(0xcd)](_0x3759e4){const _0x3fcdc5=_0x1eaa07;if(this[_0x3fcdc5(0xf1)]()||!this[_0x3fcdc5(0x10f)][_0x3fcdc5(0xc6)][_0x3fcdc5(0xc4)])return;const _0x54c18f={'type':_0x4703e5[_0x3fcdc5(0xa4)],'uiId':_0x3fcdc5(0xed),'label':_0x3759e4,'isReadOnly':this[_0x3fcdc5(0xe1)][_0x3fcdc5(0xd7)](_0x3fcdc5(0xed)),'hidden':this[_0x3fcdc5(0xe1)][_0x3fcdc5(0xd7)](_0x3fcdc5(0xed))};this[_0x3fcdc5(0xbc)](_0x54c18f);}async[_0x1eaa07(0xe0)](_0x25bf73,_0x4f0a5c,_0x1a4554,_0x45fc78){const _0x3a6431=_0x1eaa07,_0x3897e4=this[_0x3a6431(0xdc)][_0x3a6431(0xe4)](_0x3a6431(0xed));if(_0x3897e4&&_0x25bf73){_0x3897e4[_0x3a6431(0x9f)]=_0x45fc78?_0x45fc78[_0x3a6431(0xa7)](_0x142e26=>({'start':_0x142e26[_0x3a6431(0xba)],'end':_0x142e26[_0x3a6431(0xd2)]})):[];try{if(_0x3897e4[_0x3a6431(0xd0)]===_0x4f0a5c)return;const {id:_0x4b0fde}=await this[_0x3a6431(0x89)][_0x3a6431(0x86)](this[_0x3a6431(0xf2)],_0x25bf73,{'version':_0x4f0a5c,'sessionId':_0x1a4554})[_0x3a6431(0x85)]();_0x3897e4['id']=_0x4b0fde,_0x3897e4[_0x3a6431(0x10b)]=_0x25bf73,_0x3897e4[_0x3a6431(0xd0)]=_0x4f0a5c,_0x3897e4[_0x3a6431(0x88)]=_0x1a4554;}catch(_0x32d496){const _0x5b130f=new _0x558326(_0x3a6431(0xe3),null);_0x5b130f[_0x3a6431(0x94)]=_0x32d496[_0x3a6431(0x94)],this[_0x3a6431(0x87)](_0x3a6431(0xc2),{'error':_0x5b130f});}}}[_0x1eaa07(0x8b)](_0x147fa2){const _0x557ffb=_0x1eaa07;this[_0x557ffb(0xbc)]({'type':_0x4703e5[_0x557ffb(0xab)],'label':_0x147fa2,'uiId':_0x557ffb(0x9f),'content':_0x147fa2});}[_0x1eaa07(0xc0)](){const _0x1402f2=_0x1eaa07;this[_0x1402f2(0xc3)](_0x1402f2(0x9f));}async[_0x1eaa07(0x9b)](_0x387608,_0x53ae89){const _0xbd70fa=_0x1eaa07,_0x50d9ae=_0xbd70fa(0xdb)+_0x3a514f();this[_0xbd70fa(0xa8)](_0x50d9ae);const _0x447d9b=_0xbd70fa(0xdb)+_0x3a514f();try{this[_0xbd70fa(0xbc)]({'type':_0x4703e5[_0xbd70fa(0xdd)],'label':_0x53ae89?.[_0xbd70fa(0xee)]||_0x387608,'uiId':_0x447d9b,'resourceId':_0x53ae89?.[_0xbd70fa(0x97)]},!0x0);const _0x5e07a4=this[_0xbd70fa(0x89)][_0xbd70fa(0xfe)](this[_0xbd70fa(0xf2)],_0x387608,_0x53ae89);this[_0xbd70fa(0x101)][_0xbd70fa(0xb1)](_0x447d9b,_0x5e07a4[_0xbd70fa(0x102)]);const {id:_0x936690}=await _0x5e07a4[_0xbd70fa(0x85)]();this[_0xbd70fa(0x101)][_0xbd70fa(0xb3)](_0x447d9b),this[_0xbd70fa(0xef)]({'type':_0x4703e5[_0xbd70fa(0xdd)],'id':_0x936690,'label':_0x53ae89?.[_0xbd70fa(0xee)]||_0x387608,'uiId':_0x447d9b,'resourceId':_0x53ae89?.[_0xbd70fa(0x97)]},!0x1);}catch(_0x1df6f5){this[_0xbd70fa(0x101)][_0xbd70fa(0xb3)](_0x447d9b),(_0x1df6f5[_0xbd70fa(0xf8)][_0xbd70fa(0xf6)](_0xbd70fa(0xb0))||this[_0xbd70fa(0x87)](_0xbd70fa(0xc2),{'error':new _0x558326(_0xbd70fa(0x10e),this,{'url':_0x387608,'originalError':_0x1df6f5}),'url':_0x387608}),this[_0xbd70fa(0xc3)](_0x447d9b));}finally{this[_0xbd70fa(0xe7)](_0x50d9ae);}}async[_0x1eaa07(0x8f)](_0x5c7cf5,_0x12e983,_0x4207b5){const _0x4703a7=_0x1eaa07,_0x3ddd82=this[_0x4703a7(0x10f)][_0x4703a7(0x10c)][_0x4703a7(0xa2)](_0x443f48=>_0x443f48['id']===_0x5c7cf5);if(!_0x3ddd82)return this[_0x4703a7(0x87)](_0x4703a7(0xc2),{'error':new _0x558326(_0x4703a7(0x105),this,{'sourceId':_0x5c7cf5}),'sourceId':_0x5c7cf5}),[];try{const _0x195198=(await _0x3ddd82[_0x4703a7(0x95)](_0x12e983))[_0x4703a7(0xa7)](_0x512fbd=>{const _0x29ad08=_0x4703a7,_0x256f82=this[_0x29ad08(0xdf)](_0x512fbd['id']);return{..._0x512fbd,'isInContext':_0x256f82};});return _0x3ddd82[_0x4703a7(0xb4)]=_0x195198,this[_0x4703a7(0x87)](_0x4703a7(0xe9),{'sourceId':_0x5c7cf5,'source':_0x3ddd82,'resources':_0x195198,'uid':_0x4207b5}),_0x195198;}catch(_0x49a1e2){return this[_0x4703a7(0x87)](_0x4703a7(0xc2),{'error':new _0x558326(_0x4703a7(0xcb),this,{'sourceId':_0x5c7cf5,'originalError':_0x49a1e2}),'sourceId':_0x5c7cf5,'sourceLabel':_0x3ddd82[_0x4703a7(0xee)]}),[];}}async[_0x1eaa07(0xec)](_0xc69e28,_0x5f0790){const _0x33c8a4=_0x1eaa07;if(this[_0x33c8a4(0xdf)](_0x5f0790['id']))return;let _0x59a751=_0x5f0790[_0x33c8a4(0x109)];if(!_0x59a751&&_0xc69e28[_0x33c8a4(0xff)])try{_0x59a751=await _0xc69e28[_0x33c8a4(0xff)](_0x5f0790['id']);}catch(_0x27c94a){return void this[_0x33c8a4(0x87)](_0x33c8a4(0xc2),{'error':new _0x558326(_0x33c8a4(0xbb),this,{'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id'],'originalError':_0x27c94a}),'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id']});}if(_0x59a751)switch(_0x5f0790[_0x33c8a4(0xb2)]){case _0x4703e5[_0x33c8a4(0xdd)]:if(_0x33c8a4(0xfd)!=typeof _0x59a751)return void this[_0x33c8a4(0x87)](_0x33c8a4(0xc2),{'error':new _0x558326(_0x33c8a4(0xbe),this,{'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id'],'expectedType':_0x33c8a4(0xfd),'actualType':typeof _0x59a751}),'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id']});await this[_0x33c8a4(0x9b)](_0x59a751,{'label':_0x5f0790[_0x33c8a4(0xee)],'resourceId':_0x5f0790['id']});break;case _0x4703e5[_0x33c8a4(0x8a)]:if(!(_0x59a751 instanceof File))return void this[_0x33c8a4(0x87)](_0x33c8a4(0xc2),{'error':new _0x558326(_0x33c8a4(0xbe),this,{'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id'],'expectedType':_0x33c8a4(0xc9),'actualType':typeof _0x59a751}),'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id']});await this[_0x33c8a4(0xda)]([_0x59a751],{'label':_0x5f0790[_0x33c8a4(0xee)],'resourceId':_0x5f0790['id']});break;case _0x4703e5[_0x33c8a4(0xe2)]:if(_0x33c8a4(0xe5)!=typeof _0x59a751||!(_0x33c8a4(0x10b)in _0x59a751)||!(_0x33c8a4(0xb2)in _0x59a751))return void this[_0x33c8a4(0x87)](_0x33c8a4(0xc2),{'error':new _0x558326(_0x33c8a4(0xbe),this,{'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id'],'expectedType':_0x33c8a4(0x96),'actualType':typeof _0x59a751}),'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id']});_0x59a751=AIChatContext[_0x33c8a4(0xaa)](_0x59a751,_0x5f0790[_0x33c8a4(0xee)]),await this[_0x33c8a4(0xda)]([_0x59a751],{'label':_0x5f0790[_0x33c8a4(0xee)],'resourceId':_0x5f0790['id']},_0x4703e5[_0x33c8a4(0xe2)]);break;default:this[_0x33c8a4(0x87)](_0x33c8a4(0xc2),{'error':new _0x558326(_0x33c8a4(0xac),this,{'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id'],'resourceType':_0x5f0790[_0x33c8a4(0xb2)]}),'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id']});}else this[_0x33c8a4(0x87)](_0x33c8a4(0xc2),{'error':new _0x558326(_0x33c8a4(0x108),this,{'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id']}),'resourceId':_0x5f0790['id'],'sourceId':_0xc69e28['id']});}static[_0x1eaa07(0xaa)](_0xfb2018,_0x2677ab){const _0x3905af=_0x1eaa07;switch(_0xfb2018[_0x3905af(0xb2)]){case _0x4ff1d2[_0x3905af(0xa1)]:return new File([_0xfb2018[_0x3905af(0x10b)]],_0x2677ab,{'type':_0x3905af(0xb8)});case _0x4ff1d2[_0x3905af(0x9e)]:return new File([_0xfb2018[_0x3905af(0x10b)]],_0x2677ab,{'type':_0x3905af(0xb5)});default:return new File([_0xfb2018[_0x3905af(0x10b)]],_0x2677ab,{'type':_0x3905af(0xcc)});}}static[_0x1eaa07(0x90)](_0x4c8c9a){const _0x5f58f0=_0x1eaa07;switch(_0x4c8c9a[_0x5f58f0(0xb2)]){case _0x4703e5[_0x5f58f0(0x8a)]:return{'type':_0x4703e5[_0x5f58f0(0x8a)],'id':_0x4c8c9a['id']};case _0x4703e5[_0x5f58f0(0xdd)]:return{'type':_0x4703e5[_0x5f58f0(0xdd)],'id':_0x4c8c9a['id']};case _0x4703e5[_0x5f58f0(0xa4)]:return{'type':_0x4703e5[_0x5f58f0(0xa4)],'id':_0x4c8c9a['id'],..._0x4c8c9a[_0x5f58f0(0x9f)]?.[_0x5f58f0(0x93)]&&{'selection':_0x4c8c9a[_0x5f58f0(0x9f)]}};case _0x4703e5[_0x5f58f0(0xe2)]:return{'type':_0x4703e5[_0x5f58f0(0x8a)],'id':_0x4c8c9a['id']};default:return null;}}[_0x1eaa07(0xbc)](_0x306686,_0x6f306b=!0x1){const _0x3966f0=_0x1eaa07;if(this[_0x3966f0(0xdc)][_0x3966f0(0xb1)](_0x306686[_0x3966f0(0xca)],_0x306686),_0x306686[_0x3966f0(0xce)]||this[_0x3966f0(0x87)](_0x3966f0(0xea),{'contextItem':_0x306686,'isLoading':_0x6f306b}),_0x3966f0(0xed)===_0x306686[_0x3966f0(0xca)]&&this[_0x3966f0(0xfb)](),_0x306686[_0x3966f0(0x97)]){const _0x4f96c7=this[_0x3966f0(0xd3)](_0x306686[_0x3966f0(0x97)]);_0x4f96c7&&_0x4f96c7[_0x3966f0(0x8d)](_0x440eff=>{const _0xe34e34=_0x3966f0;this[_0xe34e34(0xa3)](_0x440eff,_0x306686[_0xe34e34(0x97)],!0x0);});}}[_0x1eaa07(0xc3)](_0x25c8d6){const _0x24c1ce=_0x1eaa07,_0x355395=this[_0x24c1ce(0xdc)][_0x24c1ce(0xe4)](_0x25c8d6),_0x356591=this[_0x24c1ce(0x101)][_0x24c1ce(0xe4)](_0x25c8d6);if(_0x356591&&(_0x356591[_0x24c1ce(0xcf)](),this[_0x24c1ce(0x101)][_0x24c1ce(0xb3)](_0x25c8d6)),_0x355395?.[_0x24c1ce(0x97)]){const _0x22b4ba=this[_0x24c1ce(0xd3)](_0x355395[_0x24c1ce(0x97)]);_0x22b4ba&&_0x22b4ba[_0x24c1ce(0x8d)](_0x4ffc11=>{const _0x43d5f7=_0x24c1ce;this[_0x43d5f7(0xa3)](_0x4ffc11,_0x355395[_0x43d5f7(0x97)],!0x1);});}this[_0x24c1ce(0xdc)][_0x24c1ce(0xb3)](_0x25c8d6),this[_0x24c1ce(0x87)](_0x24c1ce(0xd4),{'uiId':_0x25c8d6,'type':_0x355395?.[_0x24c1ce(0xb2)]}),_0x24c1ce(0xed)===_0x25c8d6&&this[_0x24c1ce(0xfb)]();}[_0x1eaa07(0xef)](_0x522d51,_0x941cb2){const _0x18e262=_0x1eaa07;if(this[_0x18e262(0xdc)][_0x18e262(0xd7)](_0x522d51[_0x18e262(0xca)])&&(this[_0x18e262(0xdc)][_0x18e262(0xb1)](_0x522d51[_0x18e262(0xca)],_0x522d51),this[_0x18e262(0x87)](_0x18e262(0xd9),{'contextItem':_0x522d51,'isLoading':_0x941cb2}),_0x522d51[_0x18e262(0x97)])){const _0x23b837=this[_0x18e262(0xd3)](_0x522d51[_0x18e262(0x97)]);_0x23b837&&_0x23b837[_0x18e262(0x8d)](_0x1141f1=>{const _0x16fc02=_0x18e262;this[_0x16fc02(0xa3)](_0x1141f1,_0x522d51[_0x16fc02(0x97)],!0x0);});}}[_0x1eaa07(0xd6)](_0x575a76){const _0x2d09c3=_0x1eaa07;this[_0x2d09c3(0xe1)][_0x2d09c3(0xb1)](_0x575a76[_0x2d09c3(0xca)],_0x575a76);}[_0x1eaa07(0x98)](){const _0x429ab6=_0x1eaa07;this[_0x429ab6(0x10f)]={'document':{'enabled':!0x1!==this[_0x429ab6(0xad)]?.[_0x429ab6(0xc6)]?.[_0x429ab6(0xc4)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x429ab6(0xad)]?.[_0x429ab6(0xf9)]?.[_0x429ab6(0xc4)]},'files':{'enabled':!0x1!==this[_0x429ab6(0xad)]?.[_0x429ab6(0xa0)]?.[_0x429ab6(0xc4)]},'sources':this[_0x429ab6(0x99)]()},this[_0x429ab6(0x87)](_0x429ab6(0x103),{'options':this[_0x429ab6(0x10f)]});}[_0x1eaa07(0x99)](){const _0x37ed8c=_0x1eaa07;return this[_0x37ed8c(0xad)]?.[_0x37ed8c(0x10c)]?.[_0x37ed8c(0xa7)](_0x10593a=>({..._0x10593a,'resources':[]}))??[];}[_0x1eaa07(0xfb)](){const _0x18d8b8=_0x1eaa07,_0x3b1167=this[_0x18d8b8(0xf1)]()||this[_0x18d8b8(0x107)]();this[_0x18d8b8(0x10f)][_0x18d8b8(0xc6)][_0x18d8b8(0xc5)]=_0x3b1167,this[_0x18d8b8(0x87)](_0x18d8b8(0x103),{'options':this[_0x18d8b8(0x10f)]});}[_0x1eaa07(0xdf)](_0x2e2fc5){const _0x177578=_0x1eaa07;for(const _0x256a48 of this[_0x177578(0xdc)][_0x177578(0x10d)]())if(_0x256a48[_0x177578(0x97)]===_0x2e2fc5)return!0x0;for(const _0x2a14b2 of this[_0x177578(0xe1)][_0x177578(0x10d)]())if(_0x2a14b2[_0x177578(0x97)]===_0x2e2fc5)return!0x0;return!0x1;}[_0x1eaa07(0xd3)](_0x4e446a){const _0x4f9cc6=_0x1eaa07,_0x4612ab=[];for(const _0xa24ea0 of this[_0x4f9cc6(0x10f)][_0x4f9cc6(0x10c)]){_0xa24ea0[_0x4f9cc6(0xb4)][_0x4f9cc6(0xa2)](_0x23a7f7=>_0x23a7f7['id']===_0x4e446a)&&_0x4612ab[_0x4f9cc6(0x106)](_0xa24ea0['id']);}return 0x0===_0x4612ab[_0x4f9cc6(0x93)]?null:_0x4612ab;}[_0x1eaa07(0xa3)](_0x3f6e2b,_0x308b95,_0x52fce9){const _0x2b7a3d=_0x1eaa07,_0x53bdce=this[_0x2b7a3d(0x10f)][_0x2b7a3d(0x10c)][_0x2b7a3d(0xa2)](_0x280db3=>_0x280db3['id']===_0x3f6e2b);if(!_0x53bdce)return;const _0x49d60d=_0x53bdce[_0x2b7a3d(0xb4)][_0x2b7a3d(0xa2)](_0x5117e9=>_0x5117e9['id']===_0x308b95);_0x49d60d&&(_0x49d60d[_0x2b7a3d(0xf4)]=_0x52fce9,this[_0x2b7a3d(0x87)](_0x2b7a3d(0xa9),{'sourceId':_0x3f6e2b,'resourceId':_0x308b95,'isInContext':_0x52fce9}));}[_0x1eaa07(0xa8)](_0x1750ad){const _0x55a6f4=_0x1eaa07;this[_0x55a6f4(0x91)][_0x55a6f4(0xb1)](_0x1750ad,!0x0),this[_0x55a6f4(0x91)][_0x55a6f4(0xd5)]&&this[_0x55a6f4(0x87)](_0x55a6f4(0xaf),{'isUploadInProgress':!0x0});}[_0x1eaa07(0xe7)](_0x2b5627){const _0x410832=_0x1eaa07;this[_0x410832(0x91)][_0x410832(0xb3)](_0x2b5627),0x0===this[_0x410832(0x91)][_0x410832(0xd5)]&&this[_0x410832(0x87)](_0x410832(0xaf),{'isUploadInProgress':!0x1});}}function _0x2ad4(){const _0x25db70=['addSelectionToContext','contextSent','forEach','1854813FgVzmj','loadSourceResources','_mapContextItemToRequestData','_ongoingUploadOperations','isReadOnly','length','stack','getResources','object\x20with\x20content\x20and\x20type\x20properties','resourceId','_setAddContextOptionsDefaultState','_getCustomSourcesInitialState','874700cnyUvV','addUrlToContext','52584bJqiRo','files-','HTML','selection','files','MARKDOWN','find','_updateResourceInContextState','DOCUMENT','3501896UiOhFH','1167630zMleze','map','_startUploadOperation','resourceStateChanged','_convertTextResourceToFile','SELECTION','ai-chat-context-unsupported-type','_config','removeFromContext','uploadProgressChanged','ai-request-aborted','set','type','delete','resources','text/html','addToConversationContext','getPendingContextItems','text/markdown','156rQDPGK','start','ai-chat-resource-load-failed','_addContextItem','2247004DahfUI','ai-chat-context-invalid-data','all','removeSelectionFromContext','populateFromMessage','error','_removeContextItem','enabled','isHidden','document','getSentContextItems','filter','File','uiId','ai-chat-source-resources-load-failed','text/plain','addCurrentDocumentToContext','hidden','abort','version','Current\x20document','end','_findSourceIdsByResourceId','contextItemRemoved','size','_addToConversationContextItem','has','file-','contextItemLoadingEnded','addFilesToContext','url-','_pendingContextItems','URL','fetchDocument','_isResourceInContext','updateCurrentDocument','_conversationContextItems','TEXT','ai-chat-document-upload-failed','get','object','uploadFile','_finishUploadOperation','isSelectionInContext','sourceResourcesLoaded','contextItemAdded','_createContextItemFromContent','addResourceToContext','current-document','label','_finishContextItemLoading','url','isCurrentDocumentInContext','_ownerId','init','isInContext','clearPendingContextItems','startsWith','code','message','urls','from','_toggleAddCurrentDocumentOptionVisibility','name','string','uploadUrl','getData','getDocument','_ongoingUploads','abortController','addContextOptionsChanged','attributes','ai-chat-source-not-found','push','isCurrentDocumentInConversation','ai-chat-resource-no-data','data','mapContextItemsToRequestData','content','sources','values','ai-chat-url-upload-failed','_addContextOptionsState','ai-chat-file-upload-failed','131931pwNrlM','getId','uploadDocument','fire','sessionId','_connector','FILE'];_0x2ad4=function(){return _0x25db70;};return _0x2ad4();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x520ee2=_0x2daa;function _0x2daa(_0x3faf66,_0xa5061b){const _0x4c493d=_0x4c49();return _0x2daa=function(_0x2daace,_0x2d85f1){_0x2daace=_0x2daace-0x170;let _0x36ade2=_0x4c493d[_0x2daace];return _0x36ade2;},_0x2daa(_0x3faf66,_0xa5061b);}(function(_0x3cdb8c,_0x3752e2){const _0x568834=_0x2daa,_0x178ab8=_0x3cdb8c();while(!![]){try{const _0x510f2c=-parseInt(_0x568834(0x171))/0x1+parseInt(_0x568834(0x1b8))/0x2+-parseInt(_0x568834(0x17f))/0x3+-parseInt(_0x568834(0x1c6))/0x4+parseInt(_0x568834(0x182))/0x5*(parseInt(_0x568834(0x199))/0x6)+parseInt(_0x568834(0x1be))/0x7+parseInt(_0x568834(0x1cc))/0x8;if(_0x510f2c===_0x3752e2)break;else _0x178ab8['push'](_0x178ab8['shift']());}catch(_0x57ac2a){_0x178ab8['push'](_0x178ab8['shift']());}}}(_0x4c49,0x5497b));import{CKEditorError as _0x218c11,EmitterMixin as _0x101ef9,logWarning as _0x9c61de}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x20b2c3}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x457b4f,AI_CONTEXT_MODEL_EVENT_NAMES as _0xc7e11}from'./aichatcontext.js';function _0x4c49(){const _0xffc244=['setModel','contextItems','800730YUHBqL','conversationStarted','ai-chat-handle-user-conversation-not-initialized','message','_extractContextItems','modification-delta','type','fetchConversationMessages','getConversation','getMessages','fire','ai-chat-conversation-already-started','chatContext','interactions','content','push','isStarted','load','addSelectionToContext','reset','toggleWebSearch','ai-chat-conversation-set-model-not-available','updateCurrentDocument','init','destroy','reasoning','find','getCurrentDocumentContext','addResourceToContext','modelSelected','set','891440shzPKv','addCurrentDocumentToContext','addFilesToContext','stop','indexOf','capabilities','3609207IZzcZg','createReply','conversationId','lastInteraction','attributes','handleUserInteraction','quickActionData','_processMessagesToInteractions','2247048wxjeVo','splice','ai-chat-handle-user-interaction-already-in-progress','isSelectionInContext','interactionCreated','title','4095520RZUwIW','assistant','hasOwn','getInteraction','delegate','options','currentInteraction','ai-chat-conversation-start-failed','chatCapabilities','populateFromMessage','webSearch','selectedModelId','removeInteraction','removeFromContext','toLowerCase','setConversationTitle','text','getAvailableModels','conversationInitialized','sessionId','code','prompt','getAll','toggleReasoning','ai-chat-conversation-set-model-null','547209AqYqps','connector','isAvailable','chatModels','ai-chat-conversation-init-failed','updateCurrentDocumentInContext','fetchConversation','getPendingContextItems','loadSourceResources','createInteraction','getModel','length','model','getCapabilitiesConfig','1254492CplyYe','ai-chat-handle-user-interaction-start-failed','addUrlToContext','15ayOWZr','text-delta','getDocumentContext','removeSelectionFromContext','isCurrentDocumentInConversation','start','selectedModel','role','error','get','getEditor','startConversation','appendContent','addToConversationContext','ai-chat-conversation-init-from-id-failed','group','ai-chat-conversation-start-no-model-selected','currentReply','isCurrentDocumentInContext','user','stack'];_0x4c49=function(){return _0xffc244;};return _0x4c49();}import{AICapabilities as _0x1a1978,CAPABILITIES_MODEL_EVENT_NAMES as _0x1f2153}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x171660}from'./aichatinteraction.js';import{errorsMap as _0x2923af}from'../../errorsmap.js';export class AIChatConversation extends _0x101ef9(){['id'];[_0x520ee2(0x1a9)]=!0x1;[_0x520ee2(0x1a6)]=[];[_0x520ee2(0x1d2)];[_0x520ee2(0x188)];[_0x520ee2(0x172)];[_0x520ee2(0x1d1)];constructor(_0x1512b3){const _0x2a3ce0=_0x520ee2;super(),this[_0x2a3ce0(0x1d1)]=_0x1512b3,this[_0x2a3ce0(0x172)]=_0x1512b3[_0x2a3ce0(0x172)],this[_0x2a3ce0(0x174)]=_0x1512b3[_0x2a3ce0(0x174)],this['id']=_0x1512b3[_0x2a3ce0(0x1c0)];}async[_0x520ee2(0x1b0)](_0x301737){const _0x1750f2=_0x520ee2;try{this[_0x1750f2(0x1a5)]=new _0x457b4f({'connector':this[_0x1750f2(0x172)],'config':_0x301737,'ownerId':this['id']}),this[_0x1750f2(0x1a5)][_0x1750f2(0x1d0)](..._0xc7e11)['to'](this),this[_0x1750f2(0x1a5)][_0x1750f2(0x1b0)](),this[_0x1750f2(0x1d4)]=new _0x1a1978(),this[_0x1750f2(0x1d4)][_0x1750f2(0x1d0)](..._0x1f2153)['to'](this),this[_0x1750f2(0x1d4)][_0x1750f2(0x1b0)]();const _0x50289a=await this[_0x1750f2(0x174)][_0x1750f2(0x1dd)]();this[_0x1750f2(0x1a3)](_0x1750f2(0x1de),{'availableModels':_0x50289a});const _0x202f0b=await this[_0x1750f2(0x174)][_0x1750f2(0x17b)](this[_0x1750f2(0x1d1)][_0x1750f2(0x1d7)]);_0x202f0b&&await this[_0x1750f2(0x197)](_0x202f0b);}catch(_0xcb734c){const _0x4e9b2d=new _0x218c11(_0x1750f2(0x175),null,{'message':_0xcb734c[_0x1750f2(0x19c)]||_0xcb734c});_0x4e9b2d[_0x1750f2(0x196)]=_0xcb734c[_0x1750f2(0x196)],this[_0x1750f2(0x1a3)](_0x1750f2(0x18a),{'error':_0x4e9b2d});}}async[_0x520ee2(0x187)](){const _0x1e886f=_0x520ee2;if(this[_0x1e886f(0x1a9)])throw new _0x218c11(_0x1e886f(0x1a4),null,{'conversation':this});if(!this[_0x1e886f(0x188)])throw new _0x218c11(_0x1e886f(0x192),null,{'conversation':this});try{const {id:_0x443378}=await this[_0x1e886f(0x172)][_0x1e886f(0x18d)](this['id'],this[_0x1e886f(0x1d1)][_0x1e886f(0x191)])[_0x1e886f(0x1a1)]();this['id']=_0x443378,this[_0x1e886f(0x1a9)]=!0x0,this[_0x1e886f(0x1a3)](_0x1e886f(0x19a),{'conversationId':this['id'],'selectedModel':this[_0x1e886f(0x188)]});}catch(_0x3fe9fe){const _0x8422b7=new _0x218c11(_0x1e886f(0x1d3),null,{'message':_0x3fe9fe[_0x1e886f(0x19c)],'conversationId':this['id']});throw _0x8422b7[_0x1e886f(0x196)]=_0x3fe9fe[_0x1e886f(0x196)],this[_0x1e886f(0x1a3)](_0x1e886f(0x18a),{'error':_0x8422b7}),_0x8422b7;}}async[_0x520ee2(0x1aa)](_0x2ca34a,_0x4dca6f){const _0x1acbfe=_0x520ee2;try{const _0x231199=await this[_0x1acbfe(0x172)][_0x1acbfe(0x177)](_0x2ca34a)[_0x1acbfe(0x1a1)](),_0x1e61d3=await this[_0x1acbfe(0x172)][_0x1acbfe(0x1a0)](_0x2ca34a)[_0x1acbfe(0x1a2)](),_0x5cd7c3=_0x1e61d3[0x0][_0x1acbfe(0x17d)];this[_0x1acbfe(0x1a9)]=!0x0,this['id']=_0x231199['id'],_0x1acbfe(0x1cb)in _0x231199?this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1db),_0x231199[_0x1acbfe(0x1cb)],!0x0):this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1db),'',!0x0);const _0x2cf204=(await this[_0x1acbfe(0x174)][_0x1acbfe(0x1e2)]())[_0x1acbfe(0x1b3)](_0x45dc9d=>_0x45dc9d['id'][_0x1acbfe(0x1da)]()===_0x5cd7c3[_0x1acbfe(0x1da)]());return this[_0x1acbfe(0x188)]=_0x2cf204,this[_0x1acbfe(0x1a3)](_0x1acbfe(0x1b6),{'selectedModel':_0x2cf204,'isDisabled':!0x0}),await this[_0x1acbfe(0x1c5)](_0x1e61d3,_0x4dca6f,_0x5cd7c3),this[_0x1acbfe(0x1d2)]=void 0x0,this;}catch(_0x7c6007){const _0x1ac078=new _0x218c11(_0x1acbfe(0x190),null,{'message':_0x7c6007[_0x1acbfe(0x19c)],'conversationId':_0x2ca34a});throw _0x1ac078[_0x1acbfe(0x196)]=_0x7c6007[_0x1acbfe(0x196)],this[_0x1acbfe(0x1a3)](_0x1acbfe(0x18a),{'error':_0x1ac078}),_0x1ac078;}}async[_0x520ee2(0x1c5)](_0x437d5d,_0x379d36,_0x49e10e){const _0x56b450=_0x520ee2;let _0x3aa6ff;for(const _0x39c6e4 of _0x437d5d)if(_0x56b450(0x195)===_0x39c6e4[_0x56b450(0x189)]){const _0x2e9aa8=await this[_0x56b450(0x19d)](_0x39c6e4),_0x417d51={'isReasoningEnabled':Object[_0x56b450(0x1ce)](_0x39c6e4[_0x56b450(0x1bd)],_0x56b450(0x1b2)),'isWebSearchEnabled':Object[_0x56b450(0x1ce)](_0x39c6e4[_0x56b450(0x1bd)],_0x56b450(0x1d6))};_0x3aa6ff=this[_0x56b450(0x17a)]({'userMessage':_0x39c6e4[_0x56b450(0x1e1)],'contextItems':_0x2e9aa8,'capabilities':_0x417d51,'modelId':_0x49e10e,'quickActionData':_0x39c6e4[_0x56b450(0x1c2)]?.[_0x56b450(0x1c4)]}),this[_0x56b450(0x1d2)]=_0x3aa6ff,this[_0x56b450(0x1a5)][_0x56b450(0x18f)](this[_0x56b450(0x1d2)][_0x56b450(0x198)]);}else{if(_0x56b450(0x1cd)===_0x39c6e4[_0x56b450(0x189)]&&_0x3aa6ff)for(const _0x5eb448 of _0x39c6e4[_0x56b450(0x1a7)]){const _0x2f8cce=_0x56b450(0x1dc)===_0x5eb448[_0x56b450(0x19f)]?_0x56b450(0x183):_0x56b450(0x19e),_0x2455c6=_0x3aa6ff[_0x56b450(0x184)]()?.[_0x56b450(0x1df)]!==_0x379d36;_0x3aa6ff[_0x56b450(0x193)]=_0x3aa6ff[_0x56b450(0x1bf)]({'type':_0x2f8cce,'isDone':!0x0,'interactionId':_0x3aa6ff['id'],'areActionsDisabled':_0x2455c6}),_0x3aa6ff[_0x56b450(0x193)][_0x56b450(0x18e)](_0x5eb448[_0x56b450(0x1a7)]);}}}async[_0x520ee2(0x19d)](_0x153a34){const _0x453d67=_0x520ee2,_0x147eba=new Map();if(!_0x153a34[_0x453d67(0x1a7)])return _0x147eba;for(const _0x660da3 of _0x153a34[_0x453d67(0x1a7)]){const _0x28695f=await this[_0x453d67(0x1a5)][_0x453d67(0x1d5)](_0x660da3);_0x28695f&&_0x147eba[_0x453d67(0x1b7)](_0x28695f['id'],_0x28695f);}return _0x147eba;}async[_0x520ee2(0x1c3)]({userMessage:_0x158f7f,quickActionData:_0x3bb3de}){const _0x2c5453=_0x520ee2;if(!this[_0x2c5453(0x1a9)])throw new _0x218c11(_0x2c5453(0x19b),null,{'conversation':this});if(this[_0x2c5453(0x1d2)])throw new _0x218c11(_0x2c5453(0x1c8),null,{'conversation':this});try{const _0x1ce271=this[_0x2c5453(0x1a5)][_0x2c5453(0x178)](),_0x54ff9e=this[_0x2c5453(0x1d4)][_0x2c5453(0x17e)](),_0x5a3bdb=this[_0x2c5453(0x188)]['id'];this[_0x2c5453(0x1d2)]=this[_0x2c5453(0x17a)]({'userMessage':_0x158f7f,'contextItems':_0x1ce271,'capabilities':_0x54ff9e,'modelId':_0x5a3bdb,'quickActionData':_0x3bb3de}),await this[_0x2c5453(0x1d2)][_0x2c5453(0x187)](),this[_0x2c5453(0x1a5)][_0x2c5453(0x18f)](this[_0x2c5453(0x1d2)][_0x2c5453(0x198)]);}catch(_0x1a21d6){if(_0x1a21d6 instanceof _0x218c11)this[_0x2c5453(0x1a3)](_0x2c5453(0x18a),{'interactionId':this[_0x2c5453(0x1d2)]?this[_0x2c5453(0x1d2)]['id']:void 0x0,'error':_0x1a21d6});else{const _0x1ae1d0=_0x2923af[_0x2c5453(0x18b)](_0x1a21d6[_0x2c5453(0x1e0)])||_0x2c5453(0x180);this[_0x2c5453(0x1a3)](_0x2c5453(0x18a),{'interactionId':this[_0x2c5453(0x1d2)]?this[_0x2c5453(0x1d2)]['id']:void 0x0,'error':new _0x218c11(_0x1ae1d0,null,{'error':_0x1a21d6})});}}finally{this[_0x2c5453(0x1d2)]?.[_0x2c5453(0x1bb)](),this[_0x2c5453(0x1d2)]=void 0x0;}}[_0x520ee2(0x17a)]({userMessage:_0x3d8640,contextItems:_0x1cd1ba,capabilities:_0x33115e,modelId:_0x31e3a0,quickActionData:_0x3582da}){const _0x54c674=_0x520ee2,_0x201c61=new _0x171660({'userMessage':_0x3d8640,'contextItems':_0x1cd1ba,'capabilities':_0x33115e,'conversationId':this['id'],'connector':this[_0x54c674(0x172)],'editor':this[_0x54c674(0x1d1)][_0x54c674(0x18c)]&&this[_0x54c674(0x1d1)][_0x54c674(0x18c)](),'model':_0x31e3a0,'quickActionData':_0x3582da});return _0x201c61[_0x54c674(0x1d0)](..._0x20b2c3)['to'](this),this[_0x54c674(0x1a6)][_0x54c674(0x1a8)](_0x201c61),this[_0x54c674(0x1a3)](_0x54c674(0x1ca),_0x201c61),_0x201c61;}[_0x520ee2(0x1cf)](_0x3dda55){const _0x10a754=_0x520ee2;return this[_0x10a754(0x1a6)][_0x10a754(0x1b3)](_0x3bceeb=>_0x3bceeb['id']===_0x3dda55);}[_0x520ee2(0x1d8)](_0xca8aa4){const _0x5c31bd=_0x520ee2,_0x4b4027=this[_0x5c31bd(0x1cf)](_0xca8aa4);_0x4b4027&&(_0x4b4027[_0x5c31bd(0x1b1)](),this[_0x5c31bd(0x1a6)][_0x5c31bd(0x1c7)](this[_0x5c31bd(0x1a6)][_0x5c31bd(0x1bc)](_0x4b4027),0x1));}get[_0x520ee2(0x1c1)](){const _0x89b73d=_0x520ee2;return this[_0x89b73d(0x1a6)][this[_0x89b73d(0x1a6)][_0x89b73d(0x17c)]-0x1];}[_0x520ee2(0x1b9)](_0x1a2a32){const _0x27a132=_0x520ee2;this[_0x27a132(0x1a5)][_0x27a132(0x1b9)](_0x1a2a32);}async[_0x520ee2(0x176)]({content:_0x45c300,version:_0x1ddcd4,sessionId:_0x2a4c72,selections:_0x4621c7}){const _0x34fdf0=_0x520ee2;await this[_0x34fdf0(0x1a5)][_0x34fdf0(0x1af)](_0x45c300,_0x1ddcd4,_0x2a4c72,_0x4621c7);}[_0x520ee2(0x1b4)](){const _0x31648a=_0x520ee2;return this[_0x31648a(0x1d2)]?.[_0x31648a(0x184)]()?.[_0x31648a(0x1a7)]||'';}[_0x520ee2(0x1ab)](_0x207b18){const _0x47d5f9=_0x520ee2;this[_0x47d5f9(0x1a5)][_0x47d5f9(0x1ab)](_0x207b18);}[_0x520ee2(0x185)](){const _0x3f2a08=_0x520ee2;this[_0x3f2a08(0x1a5)][_0x3f2a08(0x185)]();}[_0x520ee2(0x1ba)](_0x370d07){const _0x13758e=_0x520ee2;this[_0x13758e(0x1a5)][_0x13758e(0x1ba)](_0x370d07);}[_0x520ee2(0x181)](_0x288937){const _0x53a86b=_0x520ee2;this[_0x53a86b(0x1a5)][_0x53a86b(0x181)](_0x288937);}[_0x520ee2(0x1b5)](_0x11476f,_0x47e8d0){const _0x3da49d=_0x520ee2;this[_0x3da49d(0x1a5)][_0x3da49d(0x1b5)](_0x11476f,_0x47e8d0);}[_0x520ee2(0x179)](_0x547d08,_0x51eecf,_0x139e40){const _0x5454d6=_0x520ee2;return this[_0x5454d6(0x1a5)][_0x5454d6(0x179)](_0x547d08,_0x51eecf,_0x139e40);}[_0x520ee2(0x1d9)](_0x4da6bb){const _0x5a3f97=_0x520ee2;this[_0x5a3f97(0x1a5)][_0x5a3f97(0x1d9)](_0x4da6bb);}[_0x520ee2(0x1ad)](){const _0xba900e=_0x520ee2;this[_0xba900e(0x1d4)][_0xba900e(0x1ad)]();}[_0x520ee2(0x1e3)](){const _0x2eed=_0x520ee2;this[_0x2eed(0x1d4)][_0x2eed(0x1e3)]();}[_0x520ee2(0x194)](){const _0x5eaa7e=_0x520ee2;return this[_0x5eaa7e(0x1a5)][_0x5eaa7e(0x194)]();}[_0x520ee2(0x186)](){const _0x55ed26=_0x520ee2;return this[_0x55ed26(0x1a5)][_0x55ed26(0x186)]();}[_0x520ee2(0x1c9)](){const _0x278f60=_0x520ee2;return this[_0x278f60(0x1a5)][_0x278f60(0x1c9)]();}async[_0x520ee2(0x197)](_0x11f41a){const _0x4693a2=_0x520ee2;_0x11f41a?!0x1===await this[_0x4693a2(0x174)][_0x4693a2(0x173)](_0x11f41a)&&(_0x9c61de(_0x4693a2(0x1ae),{'conversation':this,'model':_0x11f41a}),_0x11f41a=(await this[_0x4693a2(0x174)][_0x4693a2(0x1dd)]())[0x0]):(_0x9c61de(_0x4693a2(0x170),{'conversation':this}),_0x11f41a=(await this[_0x4693a2(0x174)][_0x4693a2(0x1dd)]())[0x0]),_0x11f41a['id']!==this[_0x4693a2(0x188)]?.['id']&&(this[_0x4693a2(0x188)]=_0x11f41a,this[_0x4693a2(0x1d4)][_0x4693a2(0x1ac)](),this[_0x4693a2(0x1a3)](_0x4693a2(0x1b6),{'selectedModel':_0x11f41a}));}}
|
|
23
|
+
function _0x4957(){const _0x1890c2=['ai-chat-handle-user-interaction-already-in-progress','ai-chat-handle-user-conversation-not-initialized','getMessages','destroy','stack','message','119xZGzll','getModel','fetchConversation','get','4656hjHMQj','prompt','role','webSearch','toggleReasoning','assistant','lastInteraction','chatModels','currentInteraction','getInteraction','1506988LSZsVk','start','setConversationTitle','updateCurrentDocumentInContext','selectedModelId','capabilities','load','isStarted','model','removeFromContext','6377481rNYgiF','getPendingContextItems','getAll','hasOwn','isAvailable','getCurrentDocumentContext','4372350gVsWzj','appendContent','init','ai-chat-handle-user-interaction-start-failed','handleUserInteraction','interactionCreated','_processMessagesToInteractions','content','updateCurrentDocument','1yaQwUo','removeSelectionFromContext','loadSourceResources','modelSelected','addUrlToContext','user','sessionId','ai-chat-conversation-set-model-null','splice','connector','quickActionData','addCurrentDocumentToContext','chatCapabilities','find','populateFromMessage','toLowerCase','contextItems','reset','set','612688fzCeUR','ai-chat-conversation-init-failed','addFilesToContext','currentReply','isSelectionInContext','title','removeInteraction','length','isCurrentDocumentInConversation','modification-delta','addToConversationContext','conversationId','toggleWebSearch','ai-chat-conversation-init-from-id-failed','ai-chat-conversation-start-no-model-selected','stop','selectedModel','ai-chat-conversation-already-started','conversationStarted','_extractContextItems','conversationInitialized','indexOf','group','text','ai-chat-conversation-start-failed','addResourceToContext','getAvailableModels','reasoning','chatContext','4905385eprDAR','error','addSelectionToContext','4cLFnIx','startConversation','getEditor','getConversation','3565062KZyVOI','fetchConversationMessages','createInteraction','delegate','setModel','attributes','interactions','options','push','code','text-delta','fire','getCapabilitiesConfig','createReply','type','ai-chat-conversation-set-model-not-available','getDocumentContext','isCurrentDocumentInContext'];_0x4957=function(){return _0x1890c2;};return _0x4957();}const _0x1f3aeb=_0x2430;(function(_0x2814a0,_0x204e12){const _0x13417b=_0x2430,_0x10fb2c=_0x2814a0();while(!![]){try{const _0x24c623=-parseInt(_0x13417b(0x1c3))/0x1*(-parseInt(_0x13417b(0x1aa))/0x2)+-parseInt(_0x13417b(0x184))/0x3+-parseInt(_0x13417b(0x180))/0x4*(-parseInt(_0x13417b(0x17d))/0x5)+-parseInt(_0x13417b(0x1a0))/0x6*(-parseInt(_0x13417b(0x19c))/0x7)+-parseInt(_0x13417b(0x1d6))/0x8+parseInt(_0x13417b(0x1b4))/0x9+-parseInt(_0x13417b(0x1ba))/0xa;if(_0x24c623===_0x204e12)break;else _0x10fb2c['push'](_0x10fb2c['shift']());}catch(_0x51980a){_0x10fb2c['push'](_0x10fb2c['shift']());}}}(_0x4957,0xb8215));import{CKEditorError as _0x406115,EmitterMixin as _0x57e7a7,logWarning as _0x28bc6b}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1d5d7f}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1bafad,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1a7bae}from'./aichatcontext.js';import{AICapabilities as _0x4eff8f,CAPABILITIES_MODEL_EVENT_NAMES as _0x26b503}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5c77b8}from'./aichatinteraction.js';import{errorsMap as _0x4fbb79}from'../../errorsmap.js';function _0x2430(_0x342018,_0x3a230e){const _0x49575f=_0x4957();return _0x2430=function(_0x24301f,_0x126fb7){_0x24301f=_0x24301f-0x170;let _0x1bf281=_0x49575f[_0x24301f];return _0x1bf281;},_0x2430(_0x342018,_0x3a230e);}export class AIChatConversation extends _0x57e7a7(){['id'];[_0x1f3aeb(0x1b1)]=!0x1;[_0x1f3aeb(0x18a)]=[];[_0x1f3aeb(0x1a8)];[_0x1f3aeb(0x170)];[_0x1f3aeb(0x1cc)];[_0x1f3aeb(0x18b)];constructor(_0x3d23ae){const _0x4e657a=_0x1f3aeb;super(),this[_0x4e657a(0x18b)]=_0x3d23ae,this[_0x4e657a(0x1cc)]=_0x3d23ae[_0x4e657a(0x1cc)],this[_0x4e657a(0x1a7)]=_0x3d23ae[_0x4e657a(0x1a7)],this['id']=_0x3d23ae[_0x4e657a(0x1e1)];}async[_0x1f3aeb(0x1bc)](_0x147bc5){const _0x532e6c=_0x1f3aeb;try{this[_0x532e6c(0x17c)]=new _0x1bafad({'connector':this[_0x532e6c(0x1cc)],'config':_0x147bc5,'ownerId':this['id']}),this[_0x532e6c(0x17c)][_0x532e6c(0x187)](..._0x1a7bae)['to'](this),this[_0x532e6c(0x17c)][_0x532e6c(0x1bc)](),this[_0x532e6c(0x1cf)]=new _0x4eff8f(),this[_0x532e6c(0x1cf)][_0x532e6c(0x187)](..._0x26b503)['to'](this),this[_0x532e6c(0x1cf)][_0x532e6c(0x1bc)]();const _0x343c3a=await this[_0x532e6c(0x1a7)][_0x532e6c(0x17a)]();this[_0x532e6c(0x18f)](_0x532e6c(0x174),{'availableModels':_0x343c3a});const _0x57ac15=await this[_0x532e6c(0x1a7)][_0x532e6c(0x19d)](this[_0x532e6c(0x18b)][_0x532e6c(0x1ae)]);_0x57ac15&&await this[_0x532e6c(0x188)](_0x57ac15);}catch(_0x4d67cf){const _0x5c5c5f=new _0x406115(_0x532e6c(0x1d7),null,{'message':_0x4d67cf[_0x532e6c(0x19b)]||_0x4d67cf});_0x5c5c5f[_0x532e6c(0x19a)]=_0x4d67cf[_0x532e6c(0x19a)],this[_0x532e6c(0x18f)](_0x532e6c(0x17e),{'error':_0x5c5c5f});}}async[_0x1f3aeb(0x1ab)](){const _0x5e408f=_0x1f3aeb;if(this[_0x5e408f(0x1b1)])throw new _0x406115(_0x5e408f(0x171),null,{'conversation':this});if(!this[_0x5e408f(0x170)])throw new _0x406115(_0x5e408f(0x1e4),null,{'conversation':this});try{const {id:_0x2c6988}=await this[_0x5e408f(0x1cc)][_0x5e408f(0x181)](this['id'],this[_0x5e408f(0x18b)][_0x5e408f(0x176)])[_0x5e408f(0x183)]();this['id']=_0x2c6988,this[_0x5e408f(0x1b1)]=!0x0,this[_0x5e408f(0x18f)](_0x5e408f(0x172),{'conversationId':this['id'],'selectedModel':this[_0x5e408f(0x170)]});}catch(_0x1e819a){const _0x533752=new _0x406115(_0x5e408f(0x178),null,{'message':_0x1e819a[_0x5e408f(0x19b)],'conversationId':this['id']});throw _0x533752[_0x5e408f(0x19a)]=_0x1e819a[_0x5e408f(0x19a)],this[_0x5e408f(0x18f)](_0x5e408f(0x17e),{'error':_0x533752}),_0x533752;}}async[_0x1f3aeb(0x1b0)](_0x305d,_0x3fa6b6){const _0x5c4c20=_0x1f3aeb;try{const _0x1571dc=await this[_0x5c4c20(0x1cc)][_0x5c4c20(0x19e)](_0x305d)[_0x5c4c20(0x183)](),_0x4e6fc5=await this[_0x5c4c20(0x1cc)][_0x5c4c20(0x185)](_0x305d)[_0x5c4c20(0x198)](),_0x1a3a7e=_0x4e6fc5[0x0][_0x5c4c20(0x1b2)];this[_0x5c4c20(0x1b1)]=!0x0,this['id']=_0x1571dc['id'],_0x5c4c20(0x1db)in _0x1571dc?this[_0x5c4c20(0x18f)](_0x5c4c20(0x1ac),_0x1571dc[_0x5c4c20(0x1db)],!0x0):this[_0x5c4c20(0x18f)](_0x5c4c20(0x1ac),'',!0x0);const _0x17f2e4=(await this[_0x5c4c20(0x1a7)][_0x5c4c20(0x1b6)]())[_0x5c4c20(0x1d0)](_0x2772c4=>_0x2772c4['id'][_0x5c4c20(0x1d2)]()===_0x1a3a7e[_0x5c4c20(0x1d2)]());return this[_0x5c4c20(0x170)]=_0x17f2e4,this[_0x5c4c20(0x18f)](_0x5c4c20(0x1c6),{'selectedModel':_0x17f2e4,'isDisabled':!0x0}),await this[_0x5c4c20(0x1c0)](_0x4e6fc5,_0x3fa6b6,_0x1a3a7e),this[_0x5c4c20(0x1a8)]=void 0x0,this;}catch(_0x13cc86){const _0x51ebce=new _0x406115(_0x5c4c20(0x1e3),null,{'message':_0x13cc86[_0x5c4c20(0x19b)],'conversationId':_0x305d});throw _0x51ebce[_0x5c4c20(0x19a)]=_0x13cc86[_0x5c4c20(0x19a)],this[_0x5c4c20(0x18f)](_0x5c4c20(0x17e),{'error':_0x51ebce}),_0x51ebce;}}async[_0x1f3aeb(0x1c0)](_0x17821a,_0x4460c1,_0x1321b3){const _0x32fa3b=_0x1f3aeb;let _0x51866d;for(const _0x34d506 of _0x17821a)if(_0x32fa3b(0x1c8)===_0x34d506[_0x32fa3b(0x1a2)]){const _0x3e801e=await this[_0x32fa3b(0x173)](_0x34d506),_0x2cbc27={'isReasoningEnabled':Object[_0x32fa3b(0x1b7)](_0x34d506[_0x32fa3b(0x1af)],_0x32fa3b(0x17b)),'isWebSearchEnabled':Object[_0x32fa3b(0x1b7)](_0x34d506[_0x32fa3b(0x1af)],_0x32fa3b(0x1a3))};_0x51866d=this[_0x32fa3b(0x186)]({'userMessage':_0x34d506[_0x32fa3b(0x1a1)],'contextItems':_0x3e801e,'capabilities':_0x2cbc27,'modelId':_0x1321b3,'quickActionData':_0x34d506[_0x32fa3b(0x189)]?.[_0x32fa3b(0x1cd)]}),this[_0x32fa3b(0x1a8)]=_0x51866d,this[_0x32fa3b(0x17c)][_0x32fa3b(0x1e0)](this[_0x32fa3b(0x1a8)][_0x32fa3b(0x1d3)]);}else{if(_0x32fa3b(0x1a5)===_0x34d506[_0x32fa3b(0x1a2)]&&_0x51866d)for(const _0x20f18b of _0x34d506[_0x32fa3b(0x1c1)]){const _0xbef8c2=_0x32fa3b(0x177)===_0x20f18b[_0x32fa3b(0x192)]?_0x32fa3b(0x18e):_0x32fa3b(0x1df),_0x5f0a47=_0x51866d[_0x32fa3b(0x194)]()?.[_0x32fa3b(0x1c9)]!==_0x4460c1;_0x51866d[_0x32fa3b(0x1d9)]=_0x51866d[_0x32fa3b(0x191)]({'type':_0xbef8c2,'isDone':!0x0,'interactionId':_0x51866d['id'],'areActionsDisabled':_0x5f0a47}),_0x51866d[_0x32fa3b(0x1d9)][_0x32fa3b(0x1bb)](_0x20f18b[_0x32fa3b(0x1c1)]);}}}async[_0x1f3aeb(0x173)](_0x45c357){const _0x3967aa=_0x1f3aeb,_0x20109b=new Map();if(!_0x45c357[_0x3967aa(0x1c1)])return _0x20109b;for(const _0x53cfc0 of _0x45c357[_0x3967aa(0x1c1)]){const _0x5736bf=await this[_0x3967aa(0x17c)][_0x3967aa(0x1d1)](_0x53cfc0);_0x5736bf&&_0x20109b[_0x3967aa(0x1d5)](_0x5736bf['id'],_0x5736bf);}return _0x20109b;}async[_0x1f3aeb(0x1be)]({userMessage:_0x1fb6f4,quickActionData:_0x421d8e}){const _0x1d8f1c=_0x1f3aeb;if(!this[_0x1d8f1c(0x1b1)])throw new _0x406115(_0x1d8f1c(0x197),null,{'conversation':this});if(this[_0x1d8f1c(0x1a8)])throw new _0x406115(_0x1d8f1c(0x196),null,{'conversation':this});try{const _0x3588cf=this[_0x1d8f1c(0x17c)][_0x1d8f1c(0x1b5)](),_0x1fccac=this[_0x1d8f1c(0x1cf)][_0x1d8f1c(0x190)](),_0x18161d=this[_0x1d8f1c(0x170)]['id'];this[_0x1d8f1c(0x1a8)]=this[_0x1d8f1c(0x186)]({'userMessage':_0x1fb6f4,'contextItems':_0x3588cf,'capabilities':_0x1fccac,'modelId':_0x18161d,'quickActionData':_0x421d8e}),await this[_0x1d8f1c(0x1a8)][_0x1d8f1c(0x1ab)](),this[_0x1d8f1c(0x17c)][_0x1d8f1c(0x1e0)](this[_0x1d8f1c(0x1a8)][_0x1d8f1c(0x1d3)]);}catch(_0x4506d8){if(_0x4506d8 instanceof _0x406115)this[_0x1d8f1c(0x18f)](_0x1d8f1c(0x17e),{'interactionId':this[_0x1d8f1c(0x1a8)]?this[_0x1d8f1c(0x1a8)]['id']:void 0x0,'error':_0x4506d8});else{const _0x2fae54=_0x4fbb79[_0x1d8f1c(0x19f)](_0x4506d8[_0x1d8f1c(0x18d)])||_0x1d8f1c(0x1bd);this[_0x1d8f1c(0x18f)](_0x1d8f1c(0x17e),{'interactionId':this[_0x1d8f1c(0x1a8)]?this[_0x1d8f1c(0x1a8)]['id']:void 0x0,'error':new _0x406115(_0x2fae54,null,{'error':_0x4506d8})});}}finally{this[_0x1d8f1c(0x1a8)]?.[_0x1d8f1c(0x1e5)](),this[_0x1d8f1c(0x1a8)]=void 0x0;}}[_0x1f3aeb(0x186)]({userMessage:_0x40464b,contextItems:_0x16bb33,capabilities:_0x28619d,modelId:_0x5a3d53,quickActionData:_0x457c99}){const _0x2d3d57=_0x1f3aeb,_0x39b29b=new _0x5c77b8({'userMessage':_0x40464b,'contextItems':_0x16bb33,'capabilities':_0x28619d,'conversationId':this['id'],'connector':this[_0x2d3d57(0x1cc)],'editor':this[_0x2d3d57(0x18b)][_0x2d3d57(0x182)]&&this[_0x2d3d57(0x18b)][_0x2d3d57(0x182)](),'model':_0x5a3d53,'quickActionData':_0x457c99});return _0x39b29b[_0x2d3d57(0x187)](..._0x1d5d7f)['to'](this),this[_0x2d3d57(0x18a)][_0x2d3d57(0x18c)](_0x39b29b),this[_0x2d3d57(0x18f)](_0x2d3d57(0x1bf),_0x39b29b),_0x39b29b;}[_0x1f3aeb(0x1a9)](_0x4dd0a0){const _0x2c7000=_0x1f3aeb;return this[_0x2c7000(0x18a)][_0x2c7000(0x1d0)](_0x2145b6=>_0x2145b6['id']===_0x4dd0a0);}[_0x1f3aeb(0x1dc)](_0x5ef40c){const _0x3fb0ae=_0x1f3aeb,_0x81bd12=this[_0x3fb0ae(0x1a9)](_0x5ef40c);_0x81bd12&&(_0x81bd12[_0x3fb0ae(0x199)](),this[_0x3fb0ae(0x18a)][_0x3fb0ae(0x1cb)](this[_0x3fb0ae(0x18a)][_0x3fb0ae(0x175)](_0x81bd12),0x1));}get[_0x1f3aeb(0x1a6)](){const _0x4ae15e=_0x1f3aeb;return this[_0x4ae15e(0x18a)][this[_0x4ae15e(0x18a)][_0x4ae15e(0x1dd)]-0x1];}[_0x1f3aeb(0x1ce)](_0x35d7c9){const _0x15c459=_0x1f3aeb;this[_0x15c459(0x17c)][_0x15c459(0x1ce)](_0x35d7c9);}async[_0x1f3aeb(0x1ad)]({content:_0x42f3d9,version:_0x67172,sessionId:_0x577e57,selections:_0x3d2f6e}){const _0x571ad6=_0x1f3aeb;await this[_0x571ad6(0x17c)][_0x571ad6(0x1c2)](_0x42f3d9,_0x67172,_0x577e57,_0x3d2f6e);}[_0x1f3aeb(0x1b9)](){const _0x1c6e51=_0x1f3aeb;return this[_0x1c6e51(0x1a8)]?.[_0x1c6e51(0x194)]()?.[_0x1c6e51(0x1c1)]||'';}[_0x1f3aeb(0x17f)](_0x2bda7d){const _0x20a103=_0x1f3aeb;this[_0x20a103(0x17c)][_0x20a103(0x17f)](_0x2bda7d);}[_0x1f3aeb(0x1c4)](){const _0x56f445=_0x1f3aeb;this[_0x56f445(0x17c)][_0x56f445(0x1c4)]();}[_0x1f3aeb(0x1d8)](_0x57699b){const _0x4b113f=_0x1f3aeb;this[_0x4b113f(0x17c)][_0x4b113f(0x1d8)](_0x57699b);}[_0x1f3aeb(0x1c7)](_0x3d7f26){const _0x18a020=_0x1f3aeb;this[_0x18a020(0x17c)][_0x18a020(0x1c7)](_0x3d7f26);}[_0x1f3aeb(0x179)](_0x15d030,_0x2bb475){const _0x3297fa=_0x1f3aeb;this[_0x3297fa(0x17c)][_0x3297fa(0x179)](_0x15d030,_0x2bb475);}[_0x1f3aeb(0x1c5)](_0x4e0414,_0x504ff8,_0x22a817){const _0x1fd00e=_0x1f3aeb;return this[_0x1fd00e(0x17c)][_0x1fd00e(0x1c5)](_0x4e0414,_0x504ff8,_0x22a817);}[_0x1f3aeb(0x1b3)](_0x5eaea6){const _0x2d698b=_0x1f3aeb;this[_0x2d698b(0x17c)][_0x2d698b(0x1b3)](_0x5eaea6);}[_0x1f3aeb(0x1e2)](){const _0x4b7eed=_0x1f3aeb;this[_0x4b7eed(0x1cf)][_0x4b7eed(0x1e2)]();}[_0x1f3aeb(0x1a4)](){const _0x39d97f=_0x1f3aeb;this[_0x39d97f(0x1cf)][_0x39d97f(0x1a4)]();}[_0x1f3aeb(0x195)](){const _0x43f051=_0x1f3aeb;return this[_0x43f051(0x17c)][_0x43f051(0x195)]();}[_0x1f3aeb(0x1de)](){const _0x17c5a0=_0x1f3aeb;return this[_0x17c5a0(0x17c)][_0x17c5a0(0x1de)]();}[_0x1f3aeb(0x1da)](){const _0x3c43be=_0x1f3aeb;return this[_0x3c43be(0x17c)][_0x3c43be(0x1da)]();}async[_0x1f3aeb(0x188)](_0x1d556c){const _0x31a76c=_0x1f3aeb;_0x1d556c?!0x1===await this[_0x31a76c(0x1a7)][_0x31a76c(0x1b8)](_0x1d556c)&&(_0x28bc6b(_0x31a76c(0x193),{'conversation':this,'model':_0x1d556c}),_0x1d556c=(await this[_0x31a76c(0x1a7)][_0x31a76c(0x17a)]())[0x0]):(_0x28bc6b(_0x31a76c(0x1ca),{'conversation':this}),_0x1d556c=(await this[_0x31a76c(0x1a7)][_0x31a76c(0x17a)]())[0x0]),_0x1d556c['id']!==this[_0x31a76c(0x170)]?.['id']&&(this[_0x31a76c(0x170)]=_0x1d556c,this[_0x31a76c(0x1cf)][_0x31a76c(0x1d4)](),this[_0x31a76c(0x18f)](_0x31a76c(0x1c6),{'selectedModel':_0x1d556c}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x25c054=_0x29f4;function _0x29f4(_0xba2010,_0x5b22c8){var _0x99d7cc=_0x99d7();return _0x29f4=function(_0x29f410,_0x34074f){_0x29f410=_0x29f410-0x11f;var _0x49550e=_0x99d7cc[_0x29f410];return _0x49550e;},_0x29f4(_0xba2010,_0x5b22c8);}(function(_0x41c54a,_0x337200){var _0x147ab3=_0x29f4,_0x3327cc=_0x41c54a();while(!![]){try{var _0x43465f=parseInt(_0x147ab3(0x132))/0x1+parseInt(_0x147ab3(0x127))/0x2*(-parseInt(_0x147ab3(0x12a))/0x3)+-parseInt(_0x147ab3(0x12f))/0x4*(parseInt(_0x147ab3(0x12d))/0x5)+parseInt(_0x147ab3(0x135))/0x6*(-parseInt(_0x147ab3(0x121))/0x7)+-parseInt(_0x147ab3(0x137))/0x8+parseInt(_0x147ab3(0x130))/0x9*(parseInt(_0x147ab3(0x12b))/0xa)+parseInt(_0x147ab3(0x136))/0xb;if(_0x43465f===_0x337200)break;else _0x3327cc['push'](_0x3327cc['shift']());}catch(_0x458c0f){_0x3327cc['push'](_0x3327cc['shift']());}}}(_0x99d7,0x56164));import{AICapabilities as _0x556c95}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x1cd32b}from'../../aicore/model/aiinteraction.js';function _0x99d7(){var _0x1d5f44=['current-document','mapContextItemsToRequestData','7998DHWhEK','6142026CtQHVu','3355560sfbUPd','quickActionData','capabilities','1673MgQvbT','model','queryAssistant','userMessage','getCapabilitiesRequestData','conversationId','6542fnDJeJ','contextItems','get','6AlRUXE','6830VlIsHH','connector','220hpVbtU','getDocumentContext','19440LQdQGe','3123iFKCVq','sendRequest','515659AEDigT'];_0x99d7=function(){return _0x1d5f44;};return _0x99d7();}import{AIChatContext as _0x175856}from'./aichatcontext.js';export class AIChatInteraction extends _0x1cd32b{[_0x25c054(0x124)];[_0x25c054(0x126)];[_0x25c054(0x128)]=new Map();[_0x25c054(0x122)];[_0x25c054(0x11f)];constructor(_0x5151fd){var _0x34b82d=_0x25c054;super(_0x5151fd),this[_0x34b82d(0x126)]=_0x5151fd[_0x34b82d(0x126)],this[_0x34b82d(0x128)]=_0x5151fd[_0x34b82d(0x128)],this[_0x34b82d(0x120)]=_0x5151fd[_0x34b82d(0x120)],this[_0x34b82d(0x124)]=_0x5151fd[_0x34b82d(0x124)],this[_0x34b82d(0x122)]=_0x5151fd[_0x34b82d(0x122)],this[_0x34b82d(0x11f)]=_0x5151fd[_0x34b82d(0x11f)];}async[_0x25c054(0x131)](){var _0x470dd4=_0x25c054;return this[_0x470dd4(0x12c)][_0x470dd4(0x123)]({'message':this[_0x470dd4(0x124)],'conversationId':this[_0x470dd4(0x126)],'parts':_0x175856[_0x470dd4(0x134)](this[_0x470dd4(0x128)]),'capabilities':_0x556c95[_0x470dd4(0x125)](this[_0x470dd4(0x120)]),'model':this[_0x470dd4(0x122)],'quickActionData':this[_0x470dd4(0x11f)]});}[_0x25c054(0x12e)](){var _0x5f2ce8=_0x25c054;return this[_0x5f2ce8(0x128)][_0x5f2ce8(0x129)](_0x5f2ce8(0x133));}}
|