@ckeditor/ckeditor5-ai 47.4.0-alpha.6 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +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/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/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/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/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/aireviewcheckresultchange.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 _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);}}
|
|
23
|
+
const _0x169e6d=_0x4cf5;(function(_0x66ba7,_0x2a82a6){const _0x4eb860=_0x4cf5,_0x22c9fe=_0x66ba7();while(!![]){try{const _0x23ea98=parseInt(_0x4eb860(0x20d))/0x1+parseInt(_0x4eb860(0x1b4))/0x2*(parseInt(_0x4eb860(0x23e))/0x3)+-parseInt(_0x4eb860(0x1e8))/0x4+parseInt(_0x4eb860(0x164))/0x5+-parseInt(_0x4eb860(0x221))/0x6+-parseInt(_0x4eb860(0x186))/0x7+-parseInt(_0x4eb860(0x213))/0x8*(-parseInt(_0x4eb860(0x1b6))/0x9);if(_0x23ea98===_0x2a82a6)break;else _0x22c9fe['push'](_0x22c9fe['shift']());}catch(_0x14fa53){_0x22c9fe['push'](_0x22c9fe['shift']());}}}(_0x1b93,0x56448));import{ContextPlugin as _0x3b7bad,Editor as _0x2b3f80}from'ckeditor5/src/core.js';function _0x1b93(){const _0x3e625a=['open','clearConversationContextUI','ai-chat-context-form-data-size-limits-exceeded','_aiEditing','uploadProgressChanged','_stopLastInteraction','change','ai-chat-invalid-request','remove','ready','data','setFeedItemRenderingStrategy','applySuggestion','end','contextItems','_integrateEditor','ai-chat-resource-load-failed','webSearchFinished','sendMessage','isDocumentOperation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','removeFromContext','data-id','contextSent','72736hpPazQ','ai-chat-url-upload-failed','uid','hasChanges','_balloonShowDiff','config','184uzqSNV','handleRemovedConversation','changes','setIsUploadInProgress','Liked\x20response','message','editing','removeContextItem','showPrevious','resize','text-delta','unshift','filter','messageId','1009572tLzcWG','partIndex','view','updateFeedItemAIReplySuggestionContent','populateSourceResourceBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','insertSuggestion','addFeedItemAIReply','addUrlToContext','like','addOperation','fetchConversation','replyCreated','options','_aiConnector','activateTab','getDocumentContext','_toggleWebSearch','getReply','ai-chat-context-file-too-many-pages','alignToTop','removeFeedInteraction','accepted','resizeTabs','toViewRange','node','hideFakeVisualSelection','new','cloneNode','7932VrEtZi','slice','getChildren','setIsMaximized','isPremiumPlugin','updateResourceState','addDocumentToContext','domConverter','start','isDisabled','conversationInitialized','reasoningStarted','setConversationContext','getSelectionText','ai-chat-context-file-too-large','contextItemAdded','query','resetConversationTitle','updateCapabilities','history','finishInteraction','dislike','add','clearPendingContextUI','content','AIEditing','addSelectionToContext','addFeedItemUserMessage','activeConversation','resizedTabs','getDiff','_handleUIUserMessage','ai-no-track-changes','setLoadingMessage','pluginName','$graveyard','showNext','ai.chat.context','from','commands','_bodyCollection','startsWith','replyId','rootName','getChild','AI_CHAT_CONTEXT_FILE_TOO_LARGE','_setIsMaximized','addContextOptionsChanged','createConversation','TrackChangesEditing','version','interactionStarted','_aiChatUi','selection','AI_CHAT_GENERIC_ERROR','ai-chat-conversation-not-found','sourceId','state','ai.chat.models.defaultModelId','mapper','interactionDestroyed','delete','AI_BALLOON_HEADER_TITLE','markers','isInContext','AI_CHAT_UNTITLED_CONVERSATION','current-document','outdated','abortPromptStream','showDiff','getAttribute','baseVersion','updateFeedItemAIReplyContent','findIndex','_flushLastInteractionUI','rejected','isOpen','collaboration.channelId','type','contextItem','resourceStateChanged','AI_CHAT_ABORTED_MESSAGE','set','mouseLeaveSuggestion','getDocumentData','sourceResourcesLoaded','toString','has','static','locale','changeGroups','AIChatUI','AIChatController','updateFeedItemAIReplySources','addFeedItemStaticMessage','nextSibling','_removeAISelectionMarkers','mouseOverSuggestion','redo','addCurrentDocumentToContext','showChangeInText','_openBalloonFor','viewRangeToDom','ai-conversation-','startAutoScroll','requires','getOperations','getTransformedByOperation','enableControls','resources','split','close','getRanges','get','lastInteraction','editors','forEach','removeMarker','error','showFakeVisualSelection','ai-chat-context-unsupported-type','indexOf','isStarted','resourceId','ai-request-aborted','_applyOperationsAsSuggestions','createRange','main','contextItemLoadingEnded','interactionId','disableControls','log','DocumentCompare','ai-chat-missing-channel-id','_startConversationSafely','setSelectedModel','AIConnector','destroy','_updateRatings','removeSelectionFromChatContext','webSearchStarted','ai-chat-context-unsupported-file-type','addSelectionToChatContext','modelSelected','scrollFeedToSuggestion','isUploadInProgress','removed','addFileToContext','loadSourceResources','1985140FhMpdD','model','replies','afterInit','setChangeGroupState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','setConversationTitle','updateConversationTitle','isCurrentDocumentInContext','ai.chat.models.displayedModels','isCurrentDocumentInConversation','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','chat','_showConversationHistory','children','addResourceToContext','marker','root','plugins','getGroupId','setModel','_aiChatModels','stop','attachToDom','ai-chat-conversation-start-failed','init','handleUserInteraction','ai-chat-controller-mouse-over','listenTo','find','ai-chat-context-invalid-data','_insertSuggestion','focusPromptInput','_previewedChangeGroup','3510325lICkQu','uiId','full','isLoading','toggleWebSearch','pending','getContentParts','maxOffset','capabilitiesUpdated','_removeFromContext','ai-chat-source-resources-load-failed','getPath','document','getMarkersGroup','load','TrackChanges','getRoot','anchorId','sources','replyChangeGroupStateUpdated','_getDocumentRangeForReplyChanges','revert','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','resetMessageInput','updateCurrentDocumentInContext','_handleStartConversation','setContextItemLoading','streaming','Disliked\x20response','interactionFinished','AI_CHAT_RESOURCE_LOAD_FAILED','upsertAIChatRating','_createFromRanges','AI_CHAT_INVALID_REQUEST','toggleReasoning','getChildAtOffset','getInteractionAndReplyById','replyContentUpdated','_updateReplyContent','loadConversation','context','howMany','reasoningFinished','AI_CHAT_UNABLE_TO_START_CONVERSATION','closeSourceResourceBalloon','addFeedItemAISuggestion','154HFMLfj','AI_CHAT_CONTEXT_INVALID_DATA','145377ZerSfk','detachFromDom','push','AITabs','applyOperation','removeSelectionFromContext','selectedModel','startInteraction','addFilesToContext','stopInteraction','undo','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','stopListening','length','isOfficialPlugin','addFeedInteractionHeader','ai-chat-conversation-init-failed','_scrollToSuggestionRange','source','sendUserMessage','updateFeedItemAIReplySuggestionPartState','ai.availableReplyActions','ai-chat-controller-no-active-conversation','batch','parse','interactionCreated','setAddContextOptions','_batchToChanges','getFirstRange','createPositionAt','getInteraction','selectModel','dialogClosed','indexes','isModelAvailable','ai-chat-file-upload-failed','createPositionFromPath','contextItemRemoved','addFeedItemError','index','Undo','range','_toggleReasoning','updateContent','_applySuggestion','toggleSuggestionDisplayMode','documentContextContent','path','startConversation','resource','87128EVZHkR','sourcePosition','Showing\x20conversation\x20history...','getConversation','_logError','toggleLoadingSkeleton','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','map','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','modification-delta','rejectSuggestion','addContextItem'];_0x1b93=function(){return _0x3e625a;};return _0x1b93();}import{BodyCollection as _0x4c78ae}from'ckeditor5/src/ui.js';import{CKEditorError as _0x28a72d,logError as _0x4cc11e,scrollViewportToShowTarget as _0x586101,uid as _0x58e462}from'ckeditor5/src/utils.js';import{AIConnector as _0x2e5bc4}from'../aicore/aiconnector.js';import{AITabs as _0x5cf0be}from'../aitabs/aitabs.js';import{AIChatConversation as _0x4ffdd5}from'./model/aichatconversation.js';import{getTranslation as _0x9da48b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1d99ea}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x496b0d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIModels as _0x44bc48}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0xb6cbe3}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x15b59e,DATA_ID_MODEL_ATTRIBUTE as _0x1b060b}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4cf5(_0x5d1c16,_0x23c578){const _0x1b93df=_0x1b93();return _0x4cf5=function(_0x4cf524,_0x87d784){_0x4cf524=_0x4cf524-0x13e;let _0x4b4572=_0x1b93df[_0x4cf524];return _0x4b4572;},_0x4cf5(_0x5d1c16,_0x23c578);}import{fixMarkerOperationOldRange as _0x43fff4,getOperationsFromReply as _0x2aaf4d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x53f173,getMinimalSelection as _0x8c2588}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x54a3a8,_DetachOperation as _0x3fb04c}from'ckeditor5/src/engine.js';import{findOne as _0x40bece,getAttribute as _0x3cdfc8,serialize as _0x278fde,Document as _0x50d221,findByAttribute as _0x5f16e7}from'../aicore/utils/htmlparser.js';import{IconAI as _0x45d4f7}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x360299}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x22fd61}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3b7bad{[_0x169e6d(0x1f8)];[_0x169e6d(0x22f)];[_0x169e6d(0x272)];[_0x169e6d(0x179)];[_0x169e6d(0x1d1)]=new Map();[_0x169e6d(0x185)]=null;[_0x169e6d(0x211)]=!0x1;[_0x169e6d(0x266)];static get[_0x169e6d(0x2a7)](){return[_0x2e5bc4,_0x22fd61,_0x15b59e];}static get[_0x169e6d(0x260)](){const _0x3e29e2=_0x169e6d;return _0x3e29e2(0x29a);}static get[_0x169e6d(0x1c4)](){return!0x0;}static get[_0x169e6d(0x242)](){return!0x0;}[_0x169e6d(0x17d)](){const _0x445376=_0x169e6d;this[_0x445376(0x266)]=new _0x4c78ae(this[_0x445376(0x1ae)][_0x445376(0x297)]),this[_0x445376(0x266)][_0x445376(0x17b)](),this[_0x445376(0x22f)]=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x157)),this[_0x445376(0x272)]=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x299)),this[_0x445376(0x1f8)]=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x257)),this[_0x445376(0x179)]=new _0x44bc48({'connector':this[_0x445376(0x22f)],'availableModels':this[_0x445376(0x1ae)][_0x445376(0x212)][_0x445376(0x140)](_0x445376(0x16d)),'defaultModelId':this[_0x445376(0x1ae)][_0x445376(0x212)][_0x445376(0x140)](_0x445376(0x278)),'locale':this[_0x445376(0x1ae)][_0x445376(0x297)]});const _0x217b1f=this[_0x445376(0x1ae)][_0x445376(0x176)][_0x445376(0x140)](_0x445376(0x1b9));this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1e6),()=>{const _0x48f76f=_0x445376;this[_0x48f76f(0x155)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1c9),(_0x5e6ac5,_0x2f3dc7)=>{const _0x5e43b2=_0x445376;this[_0x5e43b2(0x25d)]({'userMessage':_0x2f3dc7});}),this[_0x445376(0x180)](_0x217b1f,_0x445376(0x25b),(_0x15506b,_0x44ad1a)=>{const _0x5e85f9=_0x445376;this[_0x5e85f9(0x26c)](_0x44ad1a);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x238),()=>{const _0x5c66ba=_0x445376;_0x217b1f[_0x5c66ba(0x21c)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x282),async()=>{const _0x1d1c97=_0x445376;await this[_0x1d1c97(0x1fa)](),await this[_0x1d1c97(0x288)](),this[_0x1d1c97(0x15a)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x244),()=>{const _0x235df5=_0x445376;this[_0x235df5(0x25a)]?.[_0x235df5(0x2a1)](_0x9da48b(this[_0x235df5(0x1ae)][_0x235df5(0x297)],_0x235df5(0x226)));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x162),(_0xb8d401,_0x2de883)=>{const _0x448664=_0x445376;this[_0x448664(0x25a)]?.[_0x448664(0x1be)](Array[_0x448664(0x264)](_0x2de883));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x229),(_0x13c9e9,_0x327ed4)=>{const _0x3287c5=_0x445376;this[_0x3287c5(0x25a)]?.[_0x3287c5(0x229)](_0x327ed4);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x173),(_0x5ad3b9,_0x17ac0d)=>{const _0x50281a=_0x445376;this[_0x50281a(0x25a)]?.[_0x50281a(0x173)](_0x17ac0d[_0x50281a(0x1c8)],_0x17ac0d[_0x50281a(0x1e7)]);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x21a),(_0x35b95e,_0x3e78d3)=>{const _0x3c4f6a=_0x445376;this[_0x3c4f6a(0x18f)](_0x3e78d3);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x163),(_0x1b09af,_0x20a75c)=>{const _0x55ce78=_0x445376;this[_0x55ce78(0x25a)]?.[_0x55ce78(0x163)](_0x20a75c[_0x55ce78(0x276)],_0x20a75c[_0x55ce78(0x24e)],_0x20a75c[_0x55ce78(0x20f)]);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x18a),()=>{const _0x3680b6=_0x445376;this[_0x3680b6(0x232)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1a8),()=>{const _0x299de6=_0x445376;this[_0x299de6(0x1e0)]();}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1d5),(_0x2e0539,_0x526f67)=>{const _0x1d3f67=_0x445376;this[_0x1d3f67(0x25a)]?.[_0x1d3f67(0x178)](_0x526f67);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x22a),(_0x581442,{replyId:_0x24ffdf})=>{const _0x5395a1=_0x445376;console[_0x5395a1(0x152)](_0x5395a1(0x217),_0x24ffdf);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x253),(_0xa12271,{replyId:_0x3d14ae})=>{const _0x57a665=_0x445376;console[_0x57a665(0x152)](_0x57a665(0x1a2),_0x3d14ae);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x227),(_0x4752a8,_0x4a0d0b)=>{const _0xb23b4f=_0x445376;this[_0xb23b4f(0x1ae)][_0xb23b4f(0x176)][_0xb23b4f(0x140)](_0x22fd61)[_0xb23b4f(0x13e)](),this[_0xb23b4f(0x183)](_0x4a0d0b);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x2a2),(_0x4a2246,{replyId:_0x22138b,partIndex:_0x23b2dc})=>{const _0x272008=_0x445376;this[_0x272008(0x211)]=this[_0x272008(0x272)][_0x272008(0x283)],this[_0x272008(0x2a3)](_0x22138b,_0x23b2dc);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x29f),(_0x175258,{replyId:_0x164ad0,partIndex:_0x3915ff})=>{const _0x27cc7b=_0x445376,_0x369c54=this[_0x27cc7b(0x19a)](_0x164ad0,_0x3915ff);_0x369c54&&_0x27cc7b(0x261)!=_0x369c54[_0x27cc7b(0x1df)][_0x27cc7b(0x175)][_0x27cc7b(0x269)]&&this[_0x27cc7b(0x1f8)][_0x27cc7b(0x146)]([_0x369c54[_0x27cc7b(0x1df)]],_0x27cc7b(0x17f));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x291),()=>{const _0x346883=_0x445376;this[_0x346883(0x1f8)][_0x346883(0x23b)](_0x346883(0x17f));}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x201),(_0x1cc383,_0x429f5e)=>{const _0x53ff73=_0x445376;this[_0x53ff73(0x1ae)][_0x53ff73(0x176)][_0x53ff73(0x140)](_0x22fd61)[_0x53ff73(0x13e)](),this[_0x53ff73(0x1e2)](_0x429f5e);}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1e3),async(_0x29c782,{replyId:_0x45c022,showDiff:_0x43ef68})=>{const _0x311def=_0x445376,{reply:_0xc23eb3}=this[_0x311def(0x1aa)](_0x45c022),_0x4660d0=_0xc23eb3[_0x311def(0x18c)]({'showDiff':_0x43ef68});await this[_0x311def(0x272)][_0x311def(0x224)]({'id':_0xc23eb3['id'],'parts':_0x4660d0,'renderingStrategy':_0x311def(0x296)});}),this[_0x445376(0x180)](this[_0x445376(0x272)],_0x445376(0x1f3),(_0x53040c,{replyId:_0x2c14c3,partIndex:_0x3d4d15})=>{const _0x169923=_0x445376;this[_0x169923(0x185)]?.[_0x169923(0x268)]==_0x2c14c3&&this[_0x169923(0x185)]?.[_0x169923(0x222)]==_0x3d4d15&&this[_0x169923(0x1ae)][_0x169923(0x176)][_0x169923(0x140)](_0x22fd61)[_0x169923(0x13e)]();const {reply:_0x4e07a7}=this[_0x169923(0x1aa)](_0x2c14c3);_0x4e07a7[_0x169923(0x168)](_0x3d4d15,_0x169923(0x289)),this[_0x169923(0x1f8)][_0x169923(0x23b)](_0x169923(0x17f));});}async[_0x169e6d(0x167)](){const _0x4000e0=_0x169e6d;this[_0x4000e0(0x1ae)]instanceof _0x2b3f80?this[_0x4000e0(0x204)](this[_0x4000e0(0x1ae)]):this[_0x4000e0(0x180)](this[_0x4000e0(0x1ae)][_0x4000e0(0x142)],_0x4000e0(0x254),(_0x492f4e,_0x29e7a8)=>{const _0x21482e=_0x4000e0;_0x29e7a8['on'](_0x21482e(0x1fe),()=>{const _0x3b7992=_0x21482e;this[_0x3b7992(0x204)](_0x29e7a8);});}),await this[_0x4000e0(0x155)]();}[_0x169e6d(0x158)](){const _0x1a257c=_0x169e6d;this[_0x1a257c(0x266)][_0x1a257c(0x1b7)](),super[_0x1a257c(0x158)]();}[_0x169e6d(0x183)](_0x2c5685){const _0x38466b=_0x169e6d,_0xa681dc=_0xb6cbe3(this[_0x38466b(0x1ae)]);if(!_0xa681dc[_0x38466b(0x176)][_0x38466b(0x295)](_0x38466b(0x195)))throw new _0x28a72d(_0x38466b(0x25e),null);const _0x30c40d=this[_0x38466b(0x1ae)][_0x38466b(0x176)][_0x38466b(0x140)](_0x38466b(0x153)),{reply:_0x91cf9d,interaction:_0x5631bd}=this[_0x38466b(0x1aa)](_0x2c5685[_0x38466b(0x268)]),_0x105ec2=this[_0x38466b(0x19a)](_0x2c5685[_0x38466b(0x268)],_0x2c5685[_0x38466b(0x222)]),_0xfe570c=void 0x0!==_0x2c5685[_0x38466b(0x222)]?[_0x91cf9d[_0x38466b(0x298)][_0x2c5685[_0x38466b(0x222)]]]:_0x91cf9d[_0x38466b(0x298)][_0x38466b(0x21f)](_0x29d65d=>_0x38466b(0x18b)==_0x29d65d[_0x38466b(0x277)]),_0x2c5373=_0xfe570c[_0x38466b(0x1ef)](_0x2a95b1=>_0x91cf9d[_0x38466b(0x298)][_0x38466b(0x148)](_0x2a95b1));if(!_0x105ec2||_0x38466b(0x261)==_0x105ec2[_0x38466b(0x1df)][_0x38466b(0x175)][_0x38466b(0x269)])return void _0x2c5373[_0x38466b(0x143)](_0x4a7827=>_0x91cf9d[_0x38466b(0x168)](_0x4a7827,_0x38466b(0x281)));_0x2c5373[_0x38466b(0x143)](_0x226481=>_0x91cf9d[_0x38466b(0x168)](_0x226481,_0x38466b(0x237)));const _0x38457b=_0x2aaf4d({'editor':_0xa681dc,'reply':_0x91cf9d,'interaction':_0x5631bd,'groups':_0xfe570c,'transform':!0x0,'documentCompare':_0x30c40d,'documentCompareOptions':{'anchor':_0x38466b(0x14e),'markDeletions':!0x0}});let _0x1ab873;_0x105ec2&&this[_0x38466b(0x1c7)](_0x105ec2[_0x38466b(0x1df)]),_0xa681dc[_0x38466b(0x165)][_0x38466b(0x1fb)](_0x1c79b6=>{const _0x2fc6a7=_0x38466b;_0x1ab873=_0x1c79b6[_0x2fc6a7(0x1cd)],_0xa681dc[_0x2fc6a7(0x176)][_0x2fc6a7(0x140)](_0x2fc6a7(0x26f))[_0x2fc6a7(0x14c)](_0x38457b),this[_0x2fc6a7(0x1f8)][_0x2fc6a7(0x23b)](_0x2fc6a7(0x17f));}),this[_0x38466b(0x1d1)][_0x38466b(0x290)](_0x1ab873,{'interactionId':_0x5631bd['id'],'replyId':_0x91cf9d['id'],'indexes':_0x2c5373[_0x38466b(0x23f)]()}),this[_0x38466b(0x159)](_0x91cf9d);}[_0x169e6d(0x1e2)](_0x28b366){const _0x2b3dfe=_0x169e6d,_0x5d59a6=_0xb6cbe3(this[_0x2b3dfe(0x1ae)]),_0x2e241b=this[_0x2b3dfe(0x1ae)][_0x2b3dfe(0x176)][_0x2b3dfe(0x140)](_0x15b59e),{reply:_0x17d1b7,interaction:_0x5f1d3a}=this[_0x2b3dfe(0x1aa)](_0x28b366[_0x2b3dfe(0x268)]),_0x2b7fe6=this[_0x2b3dfe(0x19a)](_0x28b366[_0x2b3dfe(0x268)],_0x28b366[_0x2b3dfe(0x222)]),_0x4041b4=void 0x0!==_0x28b366[_0x2b3dfe(0x222)]?[_0x17d1b7[_0x2b3dfe(0x298)][_0x28b366[_0x2b3dfe(0x222)]]]:_0x17d1b7[_0x2b3dfe(0x298)][_0x2b3dfe(0x21f)](_0x21271b=>_0x2b3dfe(0x18b)==_0x21271b[_0x2b3dfe(0x277)]),_0x130aa1=_0x4041b4[_0x2b3dfe(0x1ef)](_0x2005b1=>_0x17d1b7[_0x2b3dfe(0x298)][_0x2b3dfe(0x148)](_0x2005b1));if(!_0x2b7fe6||_0x2b3dfe(0x261)==_0x2b7fe6[_0x2b3dfe(0x1df)][_0x2b3dfe(0x175)][_0x2b3dfe(0x269)])return void _0x130aa1[_0x2b3dfe(0x143)](_0x48325e=>_0x17d1b7[_0x2b3dfe(0x168)](_0x48325e,_0x2b3dfe(0x281)));_0x130aa1[_0x2b3dfe(0x143)](_0x45a425=>_0x17d1b7[_0x2b3dfe(0x168)](_0x45a425,_0x2b3dfe(0x237)));const _0x46c2dd=_0x2aaf4d({'editor':_0x5d59a6,'reply':_0x17d1b7,'interaction':_0x5f1d3a,'groups':_0x4041b4,'transform':!0x0,'documentCompare':_0x2e241b,'documentCompareOptions':{'anchor':_0x2b3dfe(0x14e),'markDeletions':!0x1}});let _0xdf7548;_0x2b7fe6&&this[_0x2b3dfe(0x1c7)](_0x2b7fe6[_0x2b3dfe(0x1df)]),_0x5d59a6[_0x2b3dfe(0x165)][_0x2b3dfe(0x1fb)](_0xf4cf8d=>{const _0x22a0bd=_0x2b3dfe;_0xdf7548=_0xf4cf8d[_0x22a0bd(0x1cd)];for(const _0x46c2e4 of _0x46c2dd)_0x46c2e4[_0x22a0bd(0x285)]=_0x5d59a6[_0x22a0bd(0x165)][_0x22a0bd(0x192)][_0x22a0bd(0x270)],_0x43fff4(_0x5d59a6,_0x46c2e4),_0xf4cf8d[_0x22a0bd(0x1cd)][_0x22a0bd(0x22b)](_0x46c2e4),_0x5d59a6[_0x22a0bd(0x165)][_0x22a0bd(0x1ba)](_0x46c2e4);}),this[_0x2b3dfe(0x1d1)][_0x2b3dfe(0x290)](_0xdf7548,{'interactionId':_0x5f1d3a['id'],'replyId':_0x17d1b7['id'],'indexes':_0x130aa1[_0x2b3dfe(0x23f)]()}),this[_0x2b3dfe(0x159)](_0x17d1b7);}[_0x169e6d(0x2a3)](_0x219493,_0x4cc221){const _0x51ff7f=_0x169e6d,_0x2fd8f5=_0xb6cbe3(this[_0x51ff7f(0x1ae)]),_0x1072cb=this[_0x51ff7f(0x19a)](_0x219493,_0x4cc221),_0x2688b2=this[_0x51ff7f(0x1ae)][_0x51ff7f(0x176)][_0x51ff7f(0x140)](_0x22fd61);if(!_0x1072cb)return void _0x2688b2[_0x51ff7f(0x13e)]();const {range:_0x5da1ec,currentIndex:_0x581e78}=_0x1072cb;if(_0x51ff7f(0x261)==_0x5da1ec[_0x51ff7f(0x175)][_0x51ff7f(0x269)]){const {reply:_0x7b02a3}=this[_0x51ff7f(0x1aa)](_0x219493);return _0x7b02a3[_0x51ff7f(0x168)](_0x581e78,_0x51ff7f(0x281)),void _0x2688b2[_0x51ff7f(0x13e)]();}if(this[_0x51ff7f(0x185)]?.[_0x51ff7f(0x268)]==_0x219493&&this[_0x51ff7f(0x185)]?.[_0x51ff7f(0x222)]==_0x581e78)return;this[_0x51ff7f(0x1c2)](_0x2688b2),this[_0x51ff7f(0x185)]={'replyId':_0x219493,'partIndex':_0x581e78};let _0x49aeb4=_0x2fd8f5[_0x51ff7f(0x212)][_0x51ff7f(0x140)](_0x51ff7f(0x1cb))||[..._0x496b0d];_0x2fd8f5[_0x51ff7f(0x176)][_0x51ff7f(0x295)](_0x51ff7f(0x195))||(_0x49aeb4=_0x49aeb4[_0x51ff7f(0x21f)](_0x1cc27f=>_0x51ff7f(0x227)!=_0x1cc27f));const _0x420141=new _0x360299(_0x2fd8f5[_0x51ff7f(0x297)],{'showDiff':this[_0x51ff7f(0x211)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x51ff7f(0x188)},'hideHeader':!0x0,'availableActions':_0x49aeb4},this[_0x51ff7f(0x266)]);this[_0x51ff7f(0x1c2)](_0x420141);const {reply:_0x5128a1}=this[_0x51ff7f(0x1aa)](_0x219493),_0x536d5a=_0x5128a1[_0x51ff7f(0x18c)]({'showDiff':this[_0x51ff7f(0x211)]})[_0x51ff7f(0x21f)](_0x5ca4c6=>_0x5ca4c6[_0x51ff7f(0x210)]),_0x53d6a5=_0x536d5a[_0x51ff7f(0x287)](_0xd443b=>_0xd443b[_0x51ff7f(0x1dd)]==_0x581e78);if(-0x1==_0x53d6a5)return;const _0x51fc70=_0x536d5a[_0x53d6a5],_0x14d971=_0x536d5a['at']((_0x53d6a5-0x1)%_0x536d5a[_0x51ff7f(0x1c3)])?.[_0x51ff7f(0x1dd)],_0x809e99=_0x536d5a['at']((_0x53d6a5+0x1)%_0x536d5a[_0x51ff7f(0x1c3)])?.[_0x51ff7f(0x1dd)];_0x420141[_0x51ff7f(0x1e1)]({'parts':[_0x51fc70],'renderingStrategy':_0x51ff7f(0x296)});const _0xe59507=_0x581e78!==_0x14d971;this[_0x51ff7f(0x1c7)](_0x5da1ec,!0x0),_0x2688b2[_0x51ff7f(0x1f5)]({'index':_0x581e78,'title':_0x9da48b(this[_0x51ff7f(0x1ae)][_0x51ff7f(0x297)],_0x51ff7f(0x27c),(_0x53d6a5+0x1)[_0x51ff7f(0x294)]()),'icon':_0x45d4f7,'mainView':_0x420141,'showRotator':_0xe59507,'showApplyButton':!0x0,'showSuggestButton':_0x2fd8f5[_0x51ff7f(0x176)][_0x51ff7f(0x295)](_0x51ff7f(0x195)),'ranges':[_0x5da1ec]}),this[_0x51ff7f(0x272)][_0x51ff7f(0x15f)](_0x219493,_0x581e78),this[_0x51ff7f(0x180)](_0x420141,_0x51ff7f(0x1e3),(_0x28e0e6,{showDiff:_0x4132f0})=>{const _0x57d9d9=_0x51ff7f;this[_0x57d9d9(0x211)]=_0x4132f0;const {reply:_0xa48c17}=this[_0x57d9d9(0x1aa)](_0x219493),_0xf15f3b=_0xa48c17[_0x57d9d9(0x18c)]({'showDiff':_0x4132f0,'groupIndex':_0x581e78});_0x420141[_0x57d9d9(0x1e1)]({'parts':_0xf15f3b,'renderingStrategy':_0x57d9d9(0x296)});}),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x201),()=>{const _0x40d5b5=_0x51ff7f;this[_0x40d5b5(0x1e2)]({'replyId':_0x219493,'partIndex':_0x581e78}),_0xe59507?this[_0x40d5b5(0x2a3)](_0x219493,_0x809e99):_0x2688b2[_0x40d5b5(0x13e)]();}),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x227),()=>{const _0x35c3e0=_0x51ff7f;this[_0x35c3e0(0x183)]({'replyId':_0x219493,'partIndex':_0x581e78}),_0xe59507?this[_0x35c3e0(0x2a3)](_0x219493,_0x809e99):_0x2688b2[_0x35c3e0(0x13e)]();}),_0xe59507&&(this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x262),()=>{const _0x4b5165=_0x51ff7f;this[_0x4b5165(0x2a3)](_0x219493,_0x809e99);}),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x21b),()=>{const _0x7ccfed=_0x51ff7f;this[_0x7ccfed(0x2a3)](_0x219493,_0x14d971);})),this[_0x51ff7f(0x180)](_0x2688b2,_0x51ff7f(0x1d6),()=>{const _0xb83aa2=_0x51ff7f;this[_0xb83aa2(0x1c2)](_0x2688b2),this[_0xb83aa2(0x1c2)](_0x420141),this[_0xb83aa2(0x185)]=null;});}[_0x169e6d(0x19a)](_0x43f821,_0x59e3f2){const _0x47a789=_0x169e6d,_0x49bcc3=_0xb6cbe3(this[_0x47a789(0x1ae)]),{reply:_0x5cee9d,interaction:_0x57c043}=this[_0x47a789(0x1aa)](_0x43f821),_0x4404e7=_0x5cee9d[_0x47a789(0x298)][_0x47a789(0x21f)](_0x20112f=>_0x47a789(0x18b)==_0x20112f[_0x47a789(0x277)]),_0x2fe144=_0x4404e7[_0x47a789(0x1ef)](_0x20ab33=>_0x5cee9d[_0x47a789(0x298)][_0x47a789(0x148)](_0x20ab33));void 0x0===_0x59e3f2&&(_0x59e3f2=_0x2fe144[0x0]);const _0x5d5844=_0x2fe144[_0x47a789(0x148)](_0x59e3f2);if(-0x1==_0x5d5844)return null;const _0x1770dc=_0x4404e7[_0x5d5844],_0x23d3a2=new _0x50d221([]),_0x437a68=new _0x50d221([]);for(const _0x5c8a47 of _0x1770dc[_0x47a789(0x215)])if(_0x47a789(0x161)!=_0x5c8a47[_0x47a789(0x28c)]&&_0x437a68[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x5c8a47[_0x47a789(0x23a)][_0x47a789(0x23d)](!0x0)),_0x47a789(0x23c)!=_0x5c8a47[_0x47a789(0x28c)]){const _0x285380=_0x40bece(_0x4865c7=>_0x3cdfc8(_0x4865c7,_0x47a789(0x20b))==_0x5c8a47['id'],_0x5cee9d[_0x47a789(0x1e4)],!0x0);_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x285380[_0x47a789(0x23d)](!0x0));}if(0x0==_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1c3)]){if(_0x1770dc[_0x47a789(0x215)][0x0][_0x47a789(0x197)]){const _0x296168=_0x5f16e7(_0x47a789(0x20b),_0x1770dc[_0x47a789(0x215)][0x0][_0x47a789(0x197)],_0x5cee9d[_0x47a789(0x1e4)]);_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x21e)](_0x296168[_0x47a789(0x23d)](!0x0)),_0x437a68[_0x47a789(0x172)][_0x47a789(0x21e)](_0x296168[_0x47a789(0x23d)](!0x0)),_0x296168[_0x47a789(0x29d)]&&(_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x296168[_0x47a789(0x29d)][_0x47a789(0x23d)](!0x0)),_0x437a68[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x296168[_0x47a789(0x29d)][_0x47a789(0x23d)](!0x0)));}else{const _0x3e85ad=_0x5cee9d[_0x47a789(0x1e4)][_0x47a789(0x172)][0x0];if(!_0x3e85ad)return null;_0x23d3a2[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x3e85ad[_0x47a789(0x23d)](!0x0)),_0x437a68[_0x47a789(0x172)][_0x47a789(0x1b8)](_0x3e85ad[_0x47a789(0x23d)](!0x0));}}const _0x131b22=_0x57c043[_0x47a789(0x231)](),_0x54dec7=_0x49bcc3[_0x47a789(0x1ff)][_0x47a789(0x1ce)](_0x131b22[_0x47a789(0x256)]),_0x229722=_0x278fde(_0x23d3a2),_0x276437=_0x49bcc3[_0x47a789(0x1ff)][_0x47a789(0x1ce)](_0x229722),_0x398792=_0x49bcc3[_0x47a789(0x1ff)][_0x47a789(0x1ce)](_0x229722),_0x779a71=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1d3)](_0x276437,0x0),_0x5e180f=_0x278fde(_0x437a68),_0x38349b={'anchor':_0x779a71,'markDeletions':!0x1},_0x12c22c=_0x49bcc3[_0x47a789(0x176)][_0x47a789(0x140)](_0x15b59e)[_0x47a789(0x25c)](_0x229722,_0x5e180f,_0x38349b)[_0x47a789(0x2a8)]();if(!_0x12c22c[_0x47a789(0x1c3)])return null;_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1fb)](_0x1a32cc=>{const _0x17cb63=_0x47a789;for(const _0x400e58 of _0x12c22c)if(_0x17cb63(0x1fd)==_0x400e58[_0x17cb63(0x28c)]){const _0xa0a875=_0x400e58[_0x17cb63(0x1e9)],_0x167d86=_0x400e58[_0x17cb63(0x1af)],_0x2e94c6=new _0x3fb04c(_0xa0a875,_0x167d86);_0x1a32cc[_0x17cb63(0x1cd)][_0x17cb63(0x22b)](_0x2e94c6),_0x49bcc3[_0x17cb63(0x165)][_0x17cb63(0x1ba)](_0x2e94c6);}else _0x17cb63(0x174)!==_0x400e58[_0x17cb63(0x28c)]&&(_0x400e58[_0x17cb63(0x285)]=null,_0x400e58[_0x17cb63(0x208)]=!0x1,_0x1a32cc[_0x17cb63(0x1cd)][_0x17cb63(0x22b)](_0x400e58),_0x49bcc3[_0x17cb63(0x165)][_0x17cb63(0x1ba)](_0x400e58));});const _0x196d9d=_0x8c2588(_0x49bcc3,_0x12c22c,_0x276437);_0x53f173(_0x49bcc3[_0x47a789(0x165)],_0x196d9d);const _0x27b16b=_0x196d9d[_0x47a789(0x1d2)]()[_0x47a789(0x246)][_0x47a789(0x1e5)][_0x47a789(0x23f)](),_0x59bc2f=_0x196d9d[_0x47a789(0x1d2)]()[_0x47a789(0x202)][_0x47a789(0x1e5)][_0x47a789(0x23f)](),_0x48f4ed=[];let _0x3817a0=_0x276437,_0x2aaffc=_0x398792;for(let _0x29bccd=0x0;_0x29bccd<_0x59bc2f[_0x47a789(0x1c3)];_0x29bccd++){const _0x36e386=_0x3817a0[_0x47a789(0x18d)]-_0x59bc2f[_0x29bccd];_0x48f4ed[_0x29bccd]=_0x2aaffc[_0x47a789(0x18d)]-_0x36e386,_0x3817a0=_0x3817a0[_0x47a789(0x1a9)](_0x59bc2f[_0x29bccd]),_0x2aaffc=_0x2aaffc[_0x47a789(0x1a9)](_0x48f4ed[_0x29bccd]);}const _0x44c9ef=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x14d)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x398792,_0x27b16b),_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x398792,_0x48f4ed)),_0x19f96b=_0x398792[_0x47a789(0x26a)](0x0)[_0x47a789(0x284)](_0x1b060b),_0x3faca0=Array[_0x47a789(0x264)](_0x54dec7[_0x47a789(0x240)]())[_0x47a789(0x181)](_0x48cf90=>_0x48cf90[_0x47a789(0x284)](_0x1b060b)==_0x19f96b)[_0x47a789(0x191)](),_0x5e9de4=_0x44c9ef[_0x47a789(0x246)][_0x47a789(0x1e5)][_0x47a789(0x23f)](),_0x1134a0=_0x44c9ef[_0x47a789(0x202)][_0x47a789(0x1e5)][_0x47a789(0x23f)]();_0x5e9de4[0x0]=_0x3faca0[0x0]+_0x5e9de4[0x0],_0x1134a0[0x0]=_0x3faca0[0x0]+_0x1134a0[0x0];let _0x58b4da=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x14d)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x192)][_0x47a789(0x196)](),_0x5e9de4),_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x1da)](_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x192)][_0x47a789(0x196)](),_0x1134a0));const _0xc547e7=_0x49bcc3[_0x47a789(0x165)][_0x47a789(0x192)][_0x47a789(0x251)][_0x47a789(0x2a8)](_0x131b22[_0x47a789(0x270)]);for(const _0x24a219 of _0xc547e7)_0x58b4da=_0x54a3a8[_0x47a789(0x1a6)](_0x58b4da[_0x47a789(0x2a9)](_0x24a219));return{'range':_0x58b4da,'currentIndex':_0x59e3f2};}[_0x169e6d(0x204)](_0x192d2b){const _0x479a45=_0x169e6d;if(!_0x192d2b[_0x479a45(0x176)][_0x479a45(0x295)](_0x479a45(0x1de)))return;const _0x4b24bf=_0x192d2b[_0x479a45(0x265)][_0x479a45(0x140)](_0x479a45(0x1c0)),_0x375053=_0x192d2b[_0x479a45(0x265)][_0x479a45(0x140)](_0x479a45(0x2a0));this[_0x479a45(0x180)](_0x4b24bf,_0x479a45(0x19b),(_0x125d79,_0x9dca27,_0x5ed0bc)=>{const _0x3edd42=_0x479a45,_0x2a9ff7=this[_0x3edd42(0x1d1)][_0x3edd42(0x140)](_0x9dca27);if(!_0x2a9ff7)return;const _0x54071a=this[_0x3edd42(0x25a)][_0x3edd42(0x1d4)](_0x2a9ff7[_0x3edd42(0x150)])[_0x3edd42(0x233)](_0x2a9ff7[_0x3edd42(0x268)]);_0x2a9ff7[_0x3edd42(0x1d7)][_0x3edd42(0x143)](_0x58eb71=>_0x54071a[_0x3edd42(0x168)](_0x58eb71,_0x3edd42(0x18b))),this[_0x3edd42(0x1d1)][_0x3edd42(0x27b)](_0x9dca27),this[_0x3edd42(0x1d1)][_0x3edd42(0x290)](_0x5ed0bc,_0x2a9ff7);}),this[_0x479a45(0x180)](_0x375053,_0x479a45(0x19b),(_0x40f092,_0x23373c,_0x2c151a)=>{const _0x20cae3=_0x479a45,_0x1cf9f9=this[_0x20cae3(0x1d1)][_0x20cae3(0x140)](_0x23373c);if(!_0x1cf9f9)return;const _0x4f9906=this[_0x20cae3(0x25a)][_0x20cae3(0x1d4)](_0x1cf9f9[_0x20cae3(0x150)])[_0x20cae3(0x233)](_0x1cf9f9[_0x20cae3(0x268)]);_0x1cf9f9[_0x20cae3(0x1d7)][_0x20cae3(0x143)](_0x24439b=>_0x4f9906[_0x20cae3(0x168)](_0x24439b,_0x20cae3(0x237))),this[_0x20cae3(0x1d1)][_0x20cae3(0x27b)](_0x23373c),this[_0x20cae3(0x1d1)][_0x20cae3(0x290)](_0x2c151a,_0x1cf9f9);});}async[_0x169e6d(0x1ad)](_0x2e6050){const _0x3b9ce0=_0x169e6d;this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x176)][_0x3b9ce0(0x140)](_0x22fd61)[_0x3b9ce0(0x13e)](),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x200)](_0x3b9ce0(0x296)),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x1ed)](!0x0),await this[_0x3b9ce0(0x1fa)]();try{await this[_0x3b9ce0(0x22f)][_0x3b9ce0(0x22c)](_0x2e6050)[_0x3b9ce0(0x1eb)](),await this[_0x3b9ce0(0x155)](_0x2e6050),this[_0x3b9ce0(0x16b)]('\x20');const {sessionId:_0x4e683a}=this[_0x3b9ce0(0x1f8)][_0x3b9ce0(0x292)]();await this[_0x3b9ce0(0x25a)][_0x3b9ce0(0x194)](_0x2e6050,_0x4e683a),this[_0x3b9ce0(0x25a)][_0x3b9ce0(0x16e)]()&&this[_0x3b9ce0(0x25a)][_0x3b9ce0(0x2a1)](_0x9da48b(this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x297)],_0x3b9ce0(0x226)));}catch(_0x5a5243){this[_0x3b9ce0(0x272)][_0x3b9ce0(0x1dc)]({'errorMessage':_0x9da48b(this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x297)],_0x3b9ce0(0x16f)),'id':_0x2e6050}),this[_0x3b9ce0(0x1ec)](new _0x28a72d(_0x3b9ce0(0x275),this,{'error':_0x5a5243}));}finally{this[_0x3b9ce0(0x1ae)][_0x3b9ce0(0x176)][_0x3b9ce0(0x140)](_0x5cf0be)[_0x3b9ce0(0x223)][_0x3b9ce0(0x230)](_0x3b9ce0(0x170)),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x2a6)](),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x200)](_0x3b9ce0(0x1a1)),this[_0x3b9ce0(0x272)][_0x3b9ce0(0x1ed)](!0x1);}}[_0x169e6d(0x214)](_0x5af082){const _0x22a808=_0x169e6d;this[_0x22a808(0x25a)]['id']===_0x5af082&&this[_0x22a808(0x155)]();}async[_0x169e6d(0x15d)](){const _0x1d8115=_0x169e6d,_0x5253fd=this[_0x1d8115(0x1f8)][_0x1d8115(0x24b)]();this[_0x1d8115(0x25a)]?.[_0x1d8115(0x258)](_0x5253fd),this[_0x1d8115(0x25a)]?.[_0x1d8115(0x2a1)](_0x9da48b(this[_0x1d8115(0x1ae)][_0x1d8115(0x297)],_0x1d8115(0x226)));}[_0x169e6d(0x15a)](){const _0x36fc27=_0x169e6d;this[_0x36fc27(0x25a)]?.[_0x36fc27(0x1bb)]();}[_0x169e6d(0x184)](){const _0x53b74e=_0x169e6d;this[_0x53b74e(0x272)][_0x53b74e(0x184)]();}async[_0x169e6d(0x1e6)](){const _0x91da4b=_0x169e6d;await this[_0x91da4b(0x155)]();}async[_0x169e6d(0x207)]({message:_0x4d2265,quickActionData:_0x5652fb}){const _0x55a568=_0x169e6d;await this[_0x55a568(0x25d)]({'userMessage':_0x4d2265,'quickActionData':_0x5652fb});}[_0x169e6d(0x177)](){const _0x570180=_0x169e6d,_0xc0209c=this[_0x570180(0x1ae)][_0x570180(0x212)][_0x570180(0x140)](_0x570180(0x28b));if(!_0xc0209c)throw new _0x28a72d(_0x570180(0x154),this);return _0xc0209c;}async[_0x169e6d(0x155)](_0x47ade9){const _0x2ddaf7=_0x169e6d;try{this[_0x2ddaf7(0x272)][_0x2ddaf7(0x2aa)](),await this[_0x2ddaf7(0x19f)](_0x47ade9);}catch(_0x123dcc){this[_0x2ddaf7(0x272)][_0x2ddaf7(0x1dc)]({'errorMessage':_0x9da48b(this[_0x2ddaf7(0x1ae)][_0x2ddaf7(0x297)],_0x2ddaf7(0x1b1)),'id':_0x47ade9||_0x58e462()}),console[_0x2ddaf7(0x145)](_0x123dcc),this[_0x2ddaf7(0x25a)]=void 0x0,this[_0x2ddaf7(0x272)][_0x2ddaf7(0x151)]();}}async[_0x169e6d(0x19f)](_0x570fa8){const _0xe4796d=_0x169e6d,_0x41f3f4=this[_0xe4796d(0x1ae)][_0xe4796d(0x176)][_0xe4796d(0x140)](_0x22fd61);let _0x392a49;_0x41f3f4[_0xe4796d(0x28a)]&&_0x41f3f4[_0xe4796d(0x13e)](),_0x570fa8||!this[_0xe4796d(0x25a)]?_0x392a49=this[_0xe4796d(0x1ae)][_0xe4796d(0x212)][_0xe4796d(0x140)](_0xe4796d(0x278)):this[_0xe4796d(0x272)][_0xe4796d(0x1d8)]&&(_0x392a49=this[_0xe4796d(0x25a)][_0xe4796d(0x1bc)]['id']),await this[_0xe4796d(0x1fa)]();const _0x4290c4=this[_0xe4796d(0x177)](),_0x16dbf0=_0x570fa8||_0x58e462();this[_0xe4796d(0x25a)]=new _0x4ffdd5({'connector':this[_0xe4796d(0x22f)],'chatModels':this[_0xe4796d(0x179)],'selectedModelId':_0x392a49,'conversationId':_0x16dbf0,'group':_0x4290c4,'getEditor':()=>_0xb6cbe3(this[_0xe4796d(0x1ae)])}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x248),(_0x145f29,_0x55dcaf)=>{const _0x41909a=_0xe4796d;this[_0x41909a(0x272)][_0x41909a(0x26e)](_0x55dcaf),this[_0x41909a(0x272)][_0x41909a(0x19d)](),this[_0x41909a(0x272)][_0x41909a(0x255)](),this[_0x41909a(0x272)][_0x41909a(0x1f6)](),_0x570fa8||(this[_0x41909a(0x272)][_0x41909a(0x24f)](),this[_0x41909a(0x25a)]?.[_0x41909a(0x2a1)](_0x9da48b(this[_0x41909a(0x1ae)][_0x41909a(0x297)],_0x41909a(0x226))));}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1f9),(_0x3bc792,_0x4b833f)=>{const _0x5007e3=_0xe4796d;this[_0x5007e3(0x272)][_0x5007e3(0x216)](_0x4b833f[_0x5007e3(0x160)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1cf),(_0x325ef7,_0x1a3f68)=>{const _0x436041=_0xe4796d;this[_0x436041(0x272)][_0x436041(0x259)](_0x1a3f68);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x15b),()=>{const _0x203f77=_0xe4796d;this[_0x203f77(0x272)][_0x203f77(0x25f)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x249),()=>{const _0x12c56e=_0xe4796d;this[_0x12c56e(0x272)][_0x12c56e(0x25f)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x206),(_0x1a9158,_0x45d108)=>{const _0x1d918a=_0xe4796d;this[_0x1d918a(0x272)][_0x1d918a(0x1c5)](_0x45d108,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1b0),(_0x301528,_0x2c4a87)=>{const _0x387dc7=_0xe4796d;this[_0x387dc7(0x272)][_0x387dc7(0x1c5)](_0x2c4a87,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x271),()=>{const _0x50c0b4=_0xe4796d;this[_0x50c0b4(0x272)][_0x50c0b4(0x1bd)]();}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1a3),async()=>{const _0x5060ae=_0xe4796d;await this[_0x5060ae(0x272)][_0x5060ae(0x252)]();}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x27a),(_0x363ffb,_0x4f426a)=>{const _0x55aec9=_0xe4796d;this[_0x55aec9(0x272)][_0x55aec9(0x236)](_0x4f426a['id']);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x16a),(_0x5c8d7d,_0x13312f,_0x1c9e6c)=>{const _0x2081a6=_0xe4796d;this[_0x2081a6(0x16b)](_0x13312f,_0x1c9e6c);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x22d),(_0x54f4be,_0x549b40)=>{const _0x311494=_0xe4796d;_0x311494(0x21d)===_0x549b40[_0x311494(0x28c)]?this[_0x311494(0x272)][_0x311494(0x228)](_0x549b40):this[_0x311494(0x272)][_0x311494(0x1b3)](_0x549b40);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1ab),async(_0xf06094,_0xbacb36)=>{const _0x37ae43=_0xe4796d;await this[_0x37ae43(0x1ac)]({'reply':_0xbacb36});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x199),(_0x26fa20,{reply:_0x3ef783,index:_0x3bb0f2,state:_0x12cc75})=>{const _0x2a1cf2=_0xe4796d;this[_0x2a1cf2(0x272)][_0x2a1cf2(0x1ca)]({'id':_0x3ef783['id'],'index':_0x3bb0f2,'state':_0x12cc75});}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x24d),(_0x19cad1,_0x489e71)=>{const _0x48f442=_0xe4796d;if(this[_0x48f442(0x272)][_0x48f442(0x1f4)](_0x489e71[_0x48f442(0x28d)],_0x489e71[_0x48f442(0x189)]),_0x48f442(0x273)===_0x489e71[_0x48f442(0x28d)][_0x48f442(0x28c)]){const _0x2322ec=[..._0xb6cbe3(this[_0x48f442(0x1ae)])[_0x48f442(0x165)][_0x48f442(0x192)][_0x48f442(0x273)][_0x48f442(0x13f)]()];this[_0x48f442(0x1f8)][_0x48f442(0x146)](_0x2322ec,_0x48f442(0x2a5)+this[_0x48f442(0x25a)]?.['id']);}}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x1db),(_0x238d7a,_0x469a61)=>{const _0x54edff=_0xe4796d;this[_0x54edff(0x272)][_0x54edff(0x21a)](_0x469a61[_0x54edff(0x187)]),_0x54edff(0x280)==_0x469a61[_0x54edff(0x187)]&&this[_0x54edff(0x15a)](),_0x54edff(0x273)===_0x469a61[_0x54edff(0x28c)]&&this[_0x54edff(0x1f8)][_0x54edff(0x23b)](_0x54edff(0x2a5)+this[_0x54edff(0x25a)]?.['id']);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x14f),(_0x1fbd80,_0x1e2b1c)=>{const _0x2b3c9a=_0xe4796d;this[_0x2b3c9a(0x272)][_0x2b3c9a(0x1a0)](_0x1e2b1c[_0x2b3c9a(0x28d)][_0x2b3c9a(0x187)],_0x1e2b1c[_0x2b3c9a(0x189)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x20c),(_0x388812,_0x513d3d)=>{const _0x3b146f=_0xe4796d;this[_0x3b146f(0x272)][_0x3b146f(0x24a)](_0x513d3d[_0x3b146f(0x203)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x26d),(_0x2258d0,_0x4fca32)=>{const _0x5ee61e=_0xe4796d;this[_0x5ee61e(0x272)][_0x5ee61e(0x1d0)](_0x4fca32[_0x5ee61e(0x22e)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x293),(_0x10a7da,_0x2eff47)=>{const _0x2575c5=_0xe4796d;this[_0x2575c5(0x272)][_0x2575c5(0x225)](_0x2eff47[_0x2575c5(0x276)],_0x2eff47[_0x2575c5(0x1c8)],_0x2eff47[_0x2575c5(0x2ab)],_0x2eff47[_0x2575c5(0x20f)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x28e),(_0x49af37,_0x58a985)=>{const _0x112712=_0xe4796d;this[_0x112712(0x272)][_0x112712(0x243)](_0x58a985[_0x112712(0x276)],_0x58a985[_0x112712(0x14a)],_0x58a985[_0x112712(0x27e)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x18e),(_0x298ccf,_0x5553f9)=>{const _0x290576=_0xe4796d;this[_0x290576(0x272)][_0x290576(0x250)](_0x5553f9);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x15e),(_0x3004d3,_0x4bd2d6)=>{const _0x47849f=_0xe4796d;this[_0x47849f(0x272)][_0x47849f(0x156)](_0x4bd2d6[_0x47849f(0x1bc)],_0x4bd2d6[_0x47849f(0x247)]);}),this[_0xe4796d(0x25a)]['on'](_0xe4796d(0x145),(_0x134132,{error:_0x3cc716,interactionId:_0xd17258,fileName:_0xdae4ad,url:_0x398b4,sourceId:_0x1ac132,sourceLabel:_0x3bb4a1})=>{const _0x119764=_0xe4796d,_0x2a84a1=_0xd17258?_0xd17258+':'+_0x58e462():_0x58e462();_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x14b))?this[_0x119764(0x272)][_0x119764(0x29c)]({'staticMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x28f)),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1c6))||_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x17c))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1b1)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1d9))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x169),_0xdae4ad),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x20e))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x19c),_0x398b4),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x182))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1b5)),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x147))?this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1ee)),'id':_0x2a84a1}):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x190))?(_0x1ac132&&this[_0x119764(0x272)][_0x119764(0x1b2)](_0x1ac132),this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x209),_0x3bb4a1||_0x119764(0x1c8)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x205))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1a4)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1fc))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1a7)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x15c))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1c1)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x24c))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x26b)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x234))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1f0)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):_0x3cc716[_0x119764(0x218)][_0x119764(0x267)](_0x119764(0x1f7))?(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x1f1)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716)):(this[_0x119764(0x272)][_0x119764(0x1dc)]({'errorMessage':_0x9da48b(this[_0x119764(0x1ae)][_0x119764(0x297)],_0x119764(0x274)),'id':_0x2a84a1}),this[_0x119764(0x1ec)](_0x3cc716));}),await this[_0xe4796d(0x25a)][_0xe4796d(0x17d)](this[_0xe4796d(0x1ae)][_0xe4796d(0x212)][_0xe4796d(0x140)](_0xe4796d(0x263))),_0x570fa8||await this[_0xe4796d(0x25a)][_0xe4796d(0x246)]();}async[_0x169e6d(0x25d)]({userMessage:_0x461154,quickActionData:_0x1c296f}){const _0x513253=_0x169e6d;if(!this[_0x513253(0x25a)])throw new _0x28a72d(_0x513253(0x1cc));this[_0x513253(0x25a)][_0x513253(0x16c)]()&&await this[_0x513253(0x25a)][_0x513253(0x19e)](this[_0x513253(0x1f8)][_0x513253(0x292)]()),this[_0x513253(0x25a)]['id']&&this[_0x513253(0x25a)][_0x513253(0x149)]&&await this[_0x513253(0x25a)][_0x513253(0x17e)]({'userMessage':_0x461154,'quickActionData':_0x1c296f}),this[_0x513253(0x29e)]();}[_0x169e6d(0x29e)](){const _0x55a944=_0x169e6d,_0x5c9310=_0xb6cbe3(this[_0x55a944(0x1ae)])[_0x55a944(0x165)],_0x2ac47e=Array[_0x55a944(0x264)](_0x5c9310[_0x55a944(0x27d)][_0x55a944(0x193)](_0x1d99ea));_0x5c9310[_0x55a944(0x1fb)](_0x4afbe6=>{const _0xca7752=_0x55a944;_0x2ac47e[_0xca7752(0x143)](_0x311a58=>_0x4afbe6[_0xca7752(0x144)](_0x311a58));});}[_0x169e6d(0x171)](){const _0x109f63=_0x169e6d;console[_0x109f63(0x152)](_0x109f63(0x1ea));}[_0x169e6d(0x26c)](_0x1cf25d){const _0x5d7cdf=_0x169e6d;this[_0x5d7cdf(0x272)][_0x5d7cdf(0x241)](_0x1cf25d);}[_0x169e6d(0x1ec)](_0x4f92db){const _0x5467f8=_0x169e6d;_0x4cc11e(_0x4f92db[_0x5467f8(0x218)]);}[_0x169e6d(0x18f)](_0x50be53){const _0x27a838=_0x169e6d;this[_0x27a838(0x25a)]?.[_0x27a838(0x20a)](_0x50be53);}[_0x169e6d(0x232)](){const _0x456b99=_0x169e6d;this[_0x456b99(0x25a)]?.[_0x456b99(0x18a)]();}[_0x169e6d(0x1e0)](){const _0x563270=_0x169e6d;this[_0x563270(0x25a)]?.[_0x563270(0x1a8)]();}[_0x169e6d(0x1aa)](_0x16f343){const _0x27e85c=_0x169e6d,[_0x44a3df,_0x56fef7]=_0x16f343[_0x27e85c(0x2ac)](':'),_0x23b4ae=this[_0x27e85c(0x25a)][_0x27e85c(0x1d4)](_0x44a3df),_0x3f347d=_0x23b4ae[_0x27e85c(0x233)](_0x56fef7);return{'interaction':_0x23b4ae,'reply':_0x3f347d};}[_0x169e6d(0x1c7)](_0x3dd039,_0x300458=!0x1){const _0x1644b7=_0x169e6d,_0x2e75be=_0xb6cbe3(this[_0x1644b7(0x1ae)]),_0x4f89d4={'target':_0x2e75be[_0x1644b7(0x219)][_0x1644b7(0x223)][_0x1644b7(0x245)][_0x1644b7(0x2a4)](_0x2e75be[_0x1644b7(0x219)][_0x1644b7(0x279)][_0x1644b7(0x239)](_0x3dd039)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x300458};_0x300458&&(_0x4f89d4[_0x1644b7(0x235)]=!0x0),_0x586101(_0x4f89d4);}[_0x169e6d(0x16b)](_0x9694ef,_0x14c612=!0x1){const _0x2e4597=_0x169e6d;this[_0x2e4597(0x272)][_0x2e4597(0x16a)](_0x9694ef||_0x9da48b(this[_0x2e4597(0x1ae)][_0x2e4597(0x297)],_0x2e4597(0x27f)),_0x14c612);}async[_0x169e6d(0x1ac)]({reply:_0x36cb8d,renderingStrategy:_0x4aa5dd}){const _0x7fa55e=_0x169e6d,{id:_0x91542e,isDone:_0x1ee8af,type:_0x9a5984,parsedContent:_0x3f0498}=_0x36cb8d;if(_0x7fa55e(0x1f2)===_0x9a5984){const _0x595f98=_0x36cb8d[_0x7fa55e(0x18c)]({'showDiff':this[_0x7fa55e(0x272)][_0x7fa55e(0x283)]});await this[_0x7fa55e(0x272)][_0x7fa55e(0x224)]({'id':_0x91542e,'parts':_0x595f98,'renderingStrategy':_0x4aa5dd,'isDone':_0x1ee8af});}else _0x7fa55e(0x21d)===_0x9a5984&&await this[_0x7fa55e(0x272)][_0x7fa55e(0x286)]({'id':_0x91542e,'parsedContent':_0x3f0498,'renderingStrategy':_0x4aa5dd,'isDone':_0x1ee8af});_0x1ee8af&&_0x36cb8d[_0x7fa55e(0x198)][_0x7fa55e(0x1c3)]>0x0&&this[_0x7fa55e(0x272)][_0x7fa55e(0x29b)](_0x91542e,_0x36cb8d[_0x7fa55e(0x198)]);}async[_0x169e6d(0x1fa)](){const _0x255a6f=_0x169e6d,_0x31749a=this[_0x255a6f(0x25a)]?.[_0x255a6f(0x141)];_0x31749a&&(_0x31749a[_0x255a6f(0x17a)](),this[_0x255a6f(0x272)][_0x255a6f(0x1bf)](_0x31749a));}async[_0x169e6d(0x288)](){const _0xc5cca1=_0x169e6d,_0x295574=this[_0xc5cca1(0x25a)]?.[_0xc5cca1(0x141)];if(_0x295574){for await(const _0x532efe of _0x295574[_0xc5cca1(0x166)])await this[_0xc5cca1(0x1ac)]({'reply':_0x532efe,'renderingStrategy':_0xc5cca1(0x296)});}}[_0x169e6d(0x159)](_0x1e8234){const _0x18f896=_0x169e6d,_0x1e55be={'positiveCount':_0x1e8234[_0x18f896(0x298)][_0x18f896(0x21f)](_0x2d50cb=>_0x18f896(0x237)===_0x2d50cb[_0x18f896(0x277)])[_0x18f896(0x1c3)],'totalCount':_0x1e8234[_0x18f896(0x298)][_0x18f896(0x1c3)],'modificationId':_0x1e8234['id']},_0x52ed49=this[_0x18f896(0x25a)][_0x18f896(0x1d4)](_0x1e8234[_0x18f896(0x150)])[_0x18f896(0x220)];this[_0x18f896(0x22f)][_0x18f896(0x1a5)](this[_0x18f896(0x25a)]['id'],_0x52ed49,_0x1e55be);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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;}}
|
|
23
|
+
const _0x38b7c1=_0x323c;(function(_0x6896f2,_0x30ef74){const _0x25ae83=_0x323c,_0x41fc32=_0x6896f2();while(!![]){try{const _0x26ef99=-parseInt(_0x25ae83(0x16b))/0x1+parseInt(_0x25ae83(0x199))/0x2+-parseInt(_0x25ae83(0x1c2))/0x3+parseInt(_0x25ae83(0x1dd))/0x4+parseInt(_0x25ae83(0x1db))/0x5+parseInt(_0x25ae83(0x1ae))/0x6+-parseInt(_0x25ae83(0x1c4))/0x7*(parseInt(_0x25ae83(0x15e))/0x8);if(_0x26ef99===_0x30ef74)break;else _0x41fc32['push'](_0x41fc32['shift']());}catch(_0x38eeab){_0x41fc32['push'](_0x41fc32['shift']());}}}(_0x22a4,0x1df5e));import{ContextPlugin as _0x11e43a}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5c0d32}from'ckeditor5/src/utils.js';import{AIChatView as _0x400e8a}from'./ui/aichatview.js';import{AITabs as _0x15069f}from'../aitabs/aitabs.js';import{getTranslation as _0x197f9f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x51e880}from'ckeditor5/src/icons.js';function _0x22a4(){const _0x5b4d0d=['areActionsDisabled','value','</p>','showDiff','addFeedItemAIReply','enableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','showResizeButton','enqueue','setWebSearch','35560ofMRDe','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isPremiumPlugin','setLoadingMessage','TrackChanges','_promiseQueue','userMessage','startsWith','clearConversationContextUI','children','AITabs','updateFeedItemAIReplySources','setModelList','resetConversationTitle','clear','setConversationContext','updateFeedItemAIReplyContent','queueEmptyPromise','closeSourceResourceBalloon','addItem','setConversationTitle','setReasoning','removeContextItem','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markFeedItemAsDone','stopInteraction','updateFeedItemAIReplySuggestionContent','trackChanges','remove','interaction-header','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AIChatUI','renderingStrategy','setInputPlaceholder','addContextItem','addFeedItemStaticMessage','addFeedItemAISuggestion','ai-reply','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setModel','plugins','isDone','last','isReasoningEnabled','streaming','116402ZnmLXc','requires','stopAutoScroll','ai.availableReplyActions','isVisible','updateSuggestionItem','updateFeedItemAIReplySuggestionPartState','chatControls','markItemAsDone','<p>','removeItem','createConversation','addFeedInteractionHeader','options','AI_CHAT_HEADING','delegate','error-message','updateCapabilities','conversation-start','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','_getInputPlaceholder','528450axvPHl','addFeedItemUserMessage','view','find','_interactionPromiseResolver','_titleAnimationInterval','chat','isPending','chatFeed','abort','setContextItemLoading','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','_animateConversationTitle','get','quickActionData','filter','populateSourceResourceBalloon','enableModelSelector','AI_CHAT_WELCOME_MESSAGE','from','545787EglLbZ','config','292894FXjMbM','disableModelSelector','then','ai-suggestion-reply','isLoading','scrollToSuggestion','addTab','isMaximized','clearPendingContextUI','length','setFeedItemRenderingStrategy','chatHeader','locale','bind','getItemIds','set','values','isModelAvailable','availableModels','scrollFeedToSuggestion','setSelectedModel','resetMessageInput','pluginName','1086330BhKEgZ','isTrackChangesOn','576132RRxDfC','isOfficialPlugin','startInteraction','forEach','label','destroy','context','updateResourceState','addFeedItemError','_view','updateSuggestionPartState','finishInteraction','displayedPrompt','insertSuggestion','disableControls','commands','focusPromptInput','startAutoScroll','isBusy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','toggleSuggestionDisplayMode','isWebSearchEnabled','setIsUploadInProgress','ai.chat.models.modelSelectorAlwaysVisible','updateFeedInteractionHeader','_isTrackChangesCommandValueBound','user-message','removeFeedInteraction','updateReplyItem','ai.chat.context.searchInputVisibleFrom','updateWebSources','setIsMaximized','setAddContextOptions','feedItemRenderingStrategy','toggleLoadingSkeleton','interactionId','has','isDisabled','32RozLAg','contextItems','_getLoadingMessage'];_0x22a4=function(){return _0x5b4d0d;};return _0x22a4();}import{AIChatFeedInteractionHeaderView as _0x245042}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1a7663}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x212e28}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x324200}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x48ae6c}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x323c(_0x16a084,_0x4b96d5){const _0x22a4db=_0x22a4();return _0x323c=function(_0x323c0f,_0x539a80){_0x323c0f=_0x323c0f-0x143;let _0x17c7b4=_0x22a4db[_0x323c0f];return _0x17c7b4;},_0x323c(_0x16a084,_0x4b96d5);}export class AIChatUI extends _0x11e43a{static get[_0x38b7c1(0x19a)](){return[_0x15069f];}[_0x38b7c1(0x1e6)];static get[_0x38b7c1(0x1da)](){const _0x5c89c8=_0x38b7c1;return _0x5c89c8(0x18b);}static get[_0x38b7c1(0x1de)](){return!0x0;}static get[_0x38b7c1(0x16d)](){return!0x0;}[_0x38b7c1(0x159)]=_0x38b7c1(0x198);[_0x38b7c1(0x164)]=!0x0;[_0x38b7c1(0x170)];[_0x38b7c1(0x1b2)];[_0x38b7c1(0x1b3)]=void 0x0;[_0x38b7c1(0x151)]=!0x1;constructor(_0x99a87d){const _0x3befd7=_0x38b7c1;super(_0x99a87d);const _0x5e7569=this[_0x3befd7(0x1e3)][_0x3befd7(0x194)][_0x3befd7(0x1bb)](_0x3befd7(0x175));this[_0x3befd7(0x1d3)](_0x3befd7(0x14a),!0x1),this[_0x3befd7(0x170)]=new _0x1a7663(),this[_0x3befd7(0x1e6)]=new _0x400e8a(this[_0x3befd7(0x1e3)][_0x3befd7(0x1d0)],{'showResizeButton':_0x5e7569[_0x3befd7(0x168)],'contextResourcesSearchInputVisibleFrom':this[_0x3befd7(0x1e3)][_0x3befd7(0x1c3)][_0x3befd7(0x1bb)](_0x3befd7(0x155))}),this[_0x3befd7(0x1e6)][_0x3befd7(0x1a8)](..._0x212e28)['to'](this),this[_0x3befd7(0x1e6)]['on'](_0x3befd7(0x14c),(_0x11d3aa,{showDiff:_0x3002e6})=>{const _0x461739=_0x3befd7;this[_0x461739(0x164)]=_0x3002e6;}),_0x5e7569[_0x3befd7(0x1b0)][_0x3befd7(0x1ca)]({'id':_0x3befd7(0x1b4),'buttonLabel':_0x197f9f(this[_0x3befd7(0x1e3)][_0x3befd7(0x1d0)],_0x3befd7(0x1a7)),'buttonIcon':_0x51e880,'order':0x0,'content':this[_0x3befd7(0x1e6)]}),this[_0x3befd7(0x1e6)][_0x3befd7(0x1a0)][_0x3befd7(0x1d1)](_0x3befd7(0x1c8))['to'](this,_0x3befd7(0x14a),_0x26aa31=>_0x26aa31),this[_0x3befd7(0x1e6)][_0x3befd7(0x1b6)][_0x3befd7(0x1d1)](_0x3befd7(0x1b5))['to'](this,_0x3befd7(0x14a),_0x12a357=>_0x12a357),this[_0x3befd7(0x1e6)][_0x3befd7(0x1a0)][_0x3befd7(0x18d)](this[_0x3befd7(0x1ad)]()),this[_0x3befd7(0x1d1)](_0x3befd7(0x1d5))['to'](this[_0x3befd7(0x1e6)][_0x3befd7(0x1a0)],_0x3befd7(0x1d5));}[_0x38b7c1(0x1e2)](){const _0x1d7cf0=_0x38b7c1;super[_0x1d7cf0(0x1e2)](),this[_0x1d7cf0(0x1b3)]&&clearInterval(this[_0x1d7cf0(0x1b3)]);}[_0x38b7c1(0x1a4)](_0x1e076c){const _0xfdf9d5=_0x38b7c1;this[_0xfdf9d5(0x1e6)][_0xfdf9d5(0x1b6)][_0xfdf9d5(0x179)](),this[_0xfdf9d5(0x1e6)][_0xfdf9d5(0x1a0)][_0xfdf9d5(0x1bf)](),this[_0xfdf9d5(0x1e6)][_0xfdf9d5(0x1a0)][_0xfdf9d5(0x177)](_0x1e076c[_0xfdf9d5(0x1d6)],!this[_0xfdf9d5(0x1e3)][_0xfdf9d5(0x1c3)][_0xfdf9d5(0x1bb)](_0xfdf9d5(0x14f))),this[_0xfdf9d5(0x18f)]({'id':_0xfdf9d5(0x1ab),'staticMessage':_0x197f9f(this[_0xfdf9d5(0x1e3)][_0xfdf9d5(0x1d0)],_0xfdf9d5(0x1c0))});}[_0x38b7c1(0x18f)]({id:_0x53af4a,staticMessage:_0x15181f}){const _0x28b9f4=_0x38b7c1;this[_0x28b9f4(0x1e6)][_0x28b9f4(0x1b6)][_0x28b9f4(0x17e)](_0x28b9f4(0x191),{'id':_0x53af4a,'initialContent':_0x28b9f4(0x1a2)+_0x15181f+_0x28b9f4(0x163)});}[_0x38b7c1(0x1af)](_0x591228){const _0x2a5749=_0x38b7c1,_0x5083d7=_0x591228[_0x2a5749(0x1bc)]?.[_0x2a5749(0x144)]||_0x591228[_0x2a5749(0x171)];this[_0x2a5749(0x1e6)][_0x2a5749(0x1b6)][_0x2a5749(0x17e)](_0x2a5749(0x152),{'contextItems':Array[_0x2a5749(0x1c1)](_0x591228[_0x2a5749(0x15f)][_0x2a5749(0x1d4)]()),'initialContent':_0x2a5749(0x1a2)+_0x5083d7+_0x2a5749(0x163),'id':_0x591228['id']});}[_0x38b7c1(0x1e5)]({errorMessage:_0x5dcc6c,id:_0x53a8c2}){const _0xf04dc2=_0x38b7c1;this[_0xf04dc2(0x1e6)][_0xf04dc2(0x1b6)][_0xf04dc2(0x17e)](_0xf04dc2(0x1a9),{'initialContent':_0xf04dc2(0x1a2)+_0x5dcc6c+_0xf04dc2(0x163),'id':_0x53a8c2});}[_0x38b7c1(0x165)](_0x3453ff){const _0x5e8a2a=_0x38b7c1;return this[_0x5e8a2a(0x170)][_0x5e8a2a(0x169)](async()=>{const _0x5a3167=_0x5e8a2a;this[_0x5a3167(0x1e6)][_0x5a3167(0x1b6)][_0x5a3167(0x17e)](_0x5a3167(0x191),{'id':_0x3453ff[_0x5a3167(0x15b)]+':'+_0x3453ff['id']}),this[_0x5a3167(0x16e)](null);});}async[_0x38b7c1(0x190)](_0xd489ac){const _0xa6e00a=_0x38b7c1,_0x5f0fae=_0x324200(this[_0xa6e00a(0x1e3)]);let _0x200e2a=_0x5f0fae[_0xa6e00a(0x1c3)][_0xa6e00a(0x1bb)](_0xa6e00a(0x19c))||[..._0x48ae6c];if(_0x5f0fae[_0xa6e00a(0x194)][_0xa6e00a(0x15c)](_0xa6e00a(0x16f))){if(!this[_0xa6e00a(0x151)]){this[_0xa6e00a(0x151)]=!0x0;const _0x1965b9=_0x5f0fae[_0xa6e00a(0x147)][_0xa6e00a(0x1bb)](_0xa6e00a(0x187));this[_0xa6e00a(0x1e6)][_0xa6e00a(0x1b6)][_0xa6e00a(0x1d1)](_0xa6e00a(0x1dc))['to'](_0x1965b9,_0xa6e00a(0x162));}}else _0x200e2a=_0x200e2a[_0xa6e00a(0x1bd)](_0x504be5=>_0xa6e00a(0x145)!=_0x504be5);return this[_0xa6e00a(0x170)][_0xa6e00a(0x169)](async()=>{const _0x1d2d7a=_0xa6e00a;this[_0x1d2d7a(0x1e6)][_0x1d2d7a(0x1b6)][_0x1d2d7a(0x17e)](_0x1d2d7a(0x1c7),{'id':_0xd489ac[_0x1d2d7a(0x15b)]+':'+_0xd489ac['id'],'areActionsDisabled':_0xd489ac[_0x1d2d7a(0x161)],'showDiff':this[_0x1d2d7a(0x164)],'availableActions':_0x200e2a}),this[_0x1d2d7a(0x16e)](null);});}[_0x38b7c1(0x1a5)](_0x3920cb,_0x499a21){const _0x3c3a56=_0x38b7c1,_0x2a8a7a=this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x174)][_0x3c3a56(0x196)];if(_0x2a8a7a instanceof _0x245042)return this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x174)][_0x3c3a56(0x188)](_0x2a8a7a),void this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x17e)](_0x3c3a56(0x189),{'id':_0x3920cb['id'],'capabilities':{'isWebSearchEnabled':_0x2a8a7a[_0x3c3a56(0x182)][_0x3c3a56(0x14d)]||_0x499a21[_0x3c3a56(0x14d)],'isReasoningEnabled':_0x2a8a7a[_0x3c3a56(0x182)][_0x3c3a56(0x197)]||_0x499a21[_0x3c3a56(0x197)]}});this[_0x3c3a56(0x1e6)][_0x3c3a56(0x1b6)][_0x3c3a56(0x17e)](_0x3c3a56(0x189),{'id':_0x3920cb['id'],'capabilities':_0x499a21});}[_0x38b7c1(0x150)](_0x16ddfc){const _0x2a5da8=_0x38b7c1,_0x2056d8=this[_0x2a5da8(0x1e6)][_0x2a5da8(0x1b6)][_0x2a5da8(0x174)][_0x2a5da8(0x1b1)](_0x4fc1c2=>_0x4fc1c2[_0x2a5da8(0x1a6)]['id']==_0x16ddfc['id']&&_0x4fc1c2 instanceof _0x245042);_0x2056d8&&_0x2056d8[_0x2a5da8(0x1d3)](_0x2a5da8(0x19d),_0x16ddfc[_0x2a5da8(0x19d)]);}async[_0x38b7c1(0x17b)](_0x497297){const _0x30c63c=_0x38b7c1,_0x41076f=_0x497297[_0x30c63c(0x18c)]||this[_0x30c63c(0x159)];return this[_0x30c63c(0x170)][_0x30c63c(0x169)](async _0x3757e7=>{const _0x314447=_0x30c63c;await this[_0x314447(0x1e6)][_0x314447(0x1b6)][_0x314447(0x154)]({..._0x497297,'abortSignal':_0x3757e7,'renderingStrategy':_0x41076f}),_0x497297[_0x314447(0x195)]&&this[_0x314447(0x184)](_0x497297['id']);});}[_0x38b7c1(0x176)](_0x8129e6,_0x209f3c){const _0x3a9b88=_0x38b7c1;this[_0x3a9b88(0x1e6)][_0x3a9b88(0x1b6)][_0x3a9b88(0x156)](_0x8129e6,_0x209f3c);}async[_0x38b7c1(0x186)](_0x35d78f){const _0x45fe4c=_0x38b7c1,_0x4ce43b=_0x35d78f[_0x45fe4c(0x18c)]||this[_0x45fe4c(0x159)];return this[_0x45fe4c(0x170)][_0x45fe4c(0x169)](async _0x476a51=>{const _0x1d8b02=_0x45fe4c;await this[_0x1d8b02(0x1e6)][_0x1d8b02(0x1b6)][_0x1d8b02(0x19e)]({..._0x35d78f,'abortSignal':_0x476a51,'renderingStrategy':_0x4ce43b}),_0x35d78f[_0x1d8b02(0x195)]&&this[_0x1d8b02(0x184)](_0x35d78f['id']);});}[_0x38b7c1(0x19f)](_0x3a13c4){const _0x46a1c1=_0x38b7c1;this[_0x46a1c1(0x1e6)][_0x46a1c1(0x1b6)][_0x46a1c1(0x1e7)](_0x3a13c4);}[_0x38b7c1(0x184)](_0x2e1d46){const _0x5977b3=_0x38b7c1;this[_0x5977b3(0x1e6)][_0x5977b3(0x1b6)][_0x5977b3(0x1a1)](_0x2e1d46);}[_0x38b7c1(0x153)](_0xc0d345){const _0x17d02b=_0x38b7c1;this[_0x17d02b(0x1e6)][_0x17d02b(0x1b6)][_0x17d02b(0x1d2)]()[_0x17d02b(0x1bd)](_0x566e38=>_0x566e38[_0x17d02b(0x172)](_0xc0d345))[_0x17d02b(0x1e0)](_0x1973e1=>this[_0x17d02b(0x1e6)][_0x17d02b(0x1b6)][_0x17d02b(0x1a3)](_0x1973e1));}[_0x38b7c1(0x1df)](){const _0x4a3c22=_0x38b7c1;this[_0x4a3c22(0x16e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x4a3c22(0x1e6)][_0x4a3c22(0x1a0)][_0x4a3c22(0x1c5)](!this[_0x4a3c22(0x1e3)][_0x4a3c22(0x1c3)][_0x4a3c22(0x1bb)](_0x4a3c22(0x14f))),this[_0x4a3c22(0x14a)]=!0x0,this[_0x4a3c22(0x1e6)][_0x4a3c22(0x1b6)][_0x4a3c22(0x149)]();}[_0x38b7c1(0x185)](_0x2c7f8f){const _0x272580=_0x38b7c1;this[_0x272580(0x170)][_0x272580(0x1b7)](),this[_0x272580(0x1e6)][_0x272580(0x1b6)][_0x272580(0x1d2)]()[_0x272580(0x1bd)](_0x225380=>_0x225380[_0x272580(0x172)](_0x2c7f8f['id']))[_0x272580(0x1e0)](_0x6fefc0=>this[_0x272580(0x184)](_0x6fefc0)),this[_0x272580(0x14a)]=!0x1,this[_0x272580(0x1e6)][_0x272580(0x1b6)][_0x272580(0x19b)]();}async[_0x38b7c1(0x143)](){const _0x43acd1=_0x38b7c1;return this[_0x43acd1(0x170)][_0x43acd1(0x17c)][_0x43acd1(0x1c6)](()=>{const _0x18ae64=_0x43acd1;this[_0x18ae64(0x14a)]=!0x1,this[_0x18ae64(0x1e6)][_0x18ae64(0x1b6)][_0x18ae64(0x19b)]();});}[_0x38b7c1(0x18e)](_0x43ca23,_0x12233d){const _0x9b169b=_0x38b7c1;this[_0x9b169b(0x1e6)][_0x9b169b(0x1a0)][_0x9b169b(0x18e)](_0x43ca23,_0x12233d);}[_0x38b7c1(0x181)](_0x4b9665){const _0x1438a0=_0x38b7c1;this[_0x1438a0(0x1e6)][_0x1438a0(0x1a0)][_0x1438a0(0x181)](_0x4b9665);}[_0x38b7c1(0x1b8)](_0x5a38c7,_0x4ed17b){const _0x41bf49=_0x38b7c1;this[_0x41bf49(0x1e6)][_0x41bf49(0x1a0)][_0x41bf49(0x1b8)](_0x5a38c7,_0x4ed17b);}[_0x38b7c1(0x14e)](_0x2b94){const _0x380b96=_0x38b7c1;this[_0x380b96(0x1e6)][_0x380b96(0x1a0)][_0x380b96(0x14e)](_0x2b94);}[_0x38b7c1(0x17a)](_0x15c3cb){const _0x3a2dbb=_0x38b7c1;this[_0x3a2dbb(0x1e6)][_0x3a2dbb(0x1a0)][_0x3a2dbb(0x17a)](_0x15c3cb);}[_0x38b7c1(0x1cc)](){const _0x43131f=_0x38b7c1;this[_0x43131f(0x1e6)][_0x43131f(0x1a0)][_0x43131f(0x1cc)]();}[_0x38b7c1(0x173)](){const _0x491718=_0x38b7c1;this[_0x491718(0x1e6)][_0x491718(0x1a0)][_0x491718(0x173)]();}[_0x38b7c1(0x1e4)](_0x3612dc,_0x1af743,_0x15de7b){const _0x468b3a=_0x38b7c1;this[_0x468b3a(0x1e6)][_0x468b3a(0x1a0)][_0x468b3a(0x1e4)](_0x3612dc,_0x1af743,_0x15de7b);}[_0x38b7c1(0x1d9)](){const _0x27c9c0=_0x38b7c1;this[_0x27c9c0(0x1e6)][_0x27c9c0(0x1a0)][_0x27c9c0(0x1d9)](),this[_0x27c9c0(0x1e6)][_0x27c9c0(0x1a0)][_0x27c9c0(0x18d)](this[_0x27c9c0(0x1ad)]());}[_0x38b7c1(0x158)](_0x40232a){const _0x3e0633=_0x38b7c1;this[_0x3e0633(0x1e6)][_0x3e0633(0x1a0)][_0x3e0633(0x158)](_0x40232a);}[_0x38b7c1(0x1aa)](_0x5dd612){const _0x4100dc=_0x38b7c1;this[_0x4100dc(0x1e6)][_0x4100dc(0x1a0)][_0x4100dc(0x16a)](_0x5dd612[_0x4100dc(0x14d)]),this[_0x4100dc(0x1e6)][_0x4100dc(0x1a0)][_0x4100dc(0x180)](_0x5dd612[_0x4100dc(0x197)]),this[_0x4100dc(0x1e6)][_0x4100dc(0x1a0)][_0x4100dc(0x18d)](this[_0x4100dc(0x1ad)](_0x5dd612));}[_0x38b7c1(0x1d8)](_0x3ea400,_0x2d0ce4){const _0xf53b74=_0x38b7c1;this[_0xf53b74(0x1e6)][_0xf53b74(0x1a0)][_0xf53b74(0x193)](_0x3ea400),_0x2d0ce4&&this[_0xf53b74(0x1e6)][_0xf53b74(0x1a0)][_0xf53b74(0x1c5)](!0x1);}[_0x38b7c1(0x1ce)](_0x2ac6e8){const _0x49b3c2=_0x38b7c1;this[_0x49b3c2(0x159)]=_0x2ac6e8;}[_0x38b7c1(0x15a)](_0x2ecf7d){const _0x56ff0c=_0x38b7c1;this[_0x56ff0c(0x1e6)][_0x56ff0c(0x1b6)][_0x56ff0c(0x15a)](_0x2ecf7d);}[_0x38b7c1(0x178)](){const _0x49e176=_0x38b7c1;this[_0x49e176(0x17f)](_0x197f9f(this[_0x49e176(0x1e3)][_0x49e176(0x1d0)],_0x49e176(0x1a7)));}[_0x38b7c1(0x17f)](_0x34ae3b,_0x2e6988=!0x1){const _0x28f4e=_0x38b7c1;if(_0x2e6988&&!_0x5c0d32()&&_0x34ae3b[_0x28f4e(0x1cd)])return this[_0x28f4e(0x1e6)][_0x28f4e(0x1cf)][_0x28f4e(0x1e1)]='',void this[_0x28f4e(0x1ba)](_0x34ae3b);this[_0x28f4e(0x1e6)][_0x28f4e(0x1cf)][_0x28f4e(0x1e1)]=_0x34ae3b;}[_0x38b7c1(0x16e)](_0x521ddb){const _0x43b047=_0x38b7c1,_0x82319d=this[_0x43b047(0x160)](_0x521ddb);this[_0x43b047(0x1e6)][_0x43b047(0x1b6)][_0x43b047(0x16e)](_0x82319d);}[_0x38b7c1(0x1ba)](_0x4e042e){const _0x452433=_0x38b7c1;let _0x5e8132=0x0;clearInterval(this[_0x452433(0x1b3)]),this[_0x452433(0x1b3)]=setInterval(()=>{const _0x1b3ac6=_0x452433;this[_0x1b3ac6(0x1e6)][_0x1b3ac6(0x1cf)][_0x1b3ac6(0x1e1)]=this[_0x1b3ac6(0x1e6)][_0x1b3ac6(0x1cf)][_0x1b3ac6(0x1e1)]+_0x4e042e[_0x5e8132],_0x5e8132++,_0x5e8132===_0x4e042e[_0x1b3ac6(0x1cd)]&&clearInterval(this[_0x1b3ac6(0x1b3)]);},0x1e);}[_0x38b7c1(0x157)](_0xe040ce){const _0x5bf9b0=_0x38b7c1;this[_0x5bf9b0(0x1e6)][_0x5bf9b0(0x1cf)][_0x5bf9b0(0x1cb)]=_0xe040ce;}[_0x38b7c1(0x160)](_0x2ef42f){const _0x3f3fc4=_0x38b7c1;return _0x2ef42f?_0x2ef42f[_0x3f3fc4(0x14d)]&&_0x2ef42f[_0x3f3fc4(0x197)]?_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x192)):_0x2ef42f[_0x3f3fc4(0x14d)]?_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x183)):_0x2ef42f[_0x3f3fc4(0x197)]?_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x167)):_0x197f9f(this[_0x3f3fc4(0x1e3)][_0x3f3fc4(0x1d0)],_0x3f3fc4(0x18a)):'';}[_0x38b7c1(0x1ad)](_0x38e385){const _0x48d1d1=_0x38b7c1;return _0x38e385?_0x38e385[_0x48d1d1(0x14d)]&&_0x38e385[_0x48d1d1(0x197)]?_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x14b)):_0x38e385[_0x48d1d1(0x14d)]?_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x1ac)):_0x38e385[_0x48d1d1(0x197)]?_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x16c)):_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x1b9)):_0x197f9f(this[_0x48d1d1(0x1e3)][_0x48d1d1(0x1d0)],_0x48d1d1(0x1b9));}[_0x38b7c1(0x1be)](_0x3f79f7,_0x546ad5,_0x224fda,_0x4fa246){const _0x5c39a1=_0x38b7c1;this[_0x5c39a1(0x1e6)][_0x5c39a1(0x1be)](_0x3f79f7,_0x546ad5,_0x224fda,_0x4fa246);}[_0x38b7c1(0x17d)](_0x248a8e){const _0x58f503=_0x38b7c1;this[_0x58f503(0x1e6)][_0x58f503(0x17d)](_0x248a8e);}[_0x38b7c1(0x148)](){const _0x3ee84d=_0x38b7c1;this[_0x3ee84d(0x1e6)][_0x3ee84d(0x1a0)][_0x3ee84d(0x148)]();}[_0x38b7c1(0x1d7)](_0x199aee,_0x23ffee){const _0x28e5be=_0x38b7c1;this[_0x28e5be(0x1e6)][_0x28e5be(0x1b6)][_0x28e5be(0x1c9)](_0x199aee,_0x23ffee);}[_0x38b7c1(0x149)](){const _0x2ae409=_0x38b7c1;this[_0x2ae409(0x1e6)][_0x2ae409(0x1b6)][_0x2ae409(0x149)]();}[_0x38b7c1(0x146)](){const _0x546ae9=_0x38b7c1;this[_0x546ae9(0x1e6)][_0x546ae9(0x1a0)][_0x546ae9(0x15d)]=!0x0;}[_0x38b7c1(0x166)](){const _0x11b068=_0x38b7c1;this[_0x11b068(0x1e6)][_0x11b068(0x1a0)][_0x11b068(0x15d)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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();}
|
|
23
|
+
const _0x5ec5ae=_0x3ea5;(function(_0xdfa081,_0x1531b9){const _0x3dc568=_0x3ea5,_0x6c895a=_0xdfa081();while(!![]){try{const _0x45c54b=parseInt(_0x3dc568(0xf1))/0x1*(parseInt(_0x3dc568(0xfb))/0x2)+-parseInt(_0x3dc568(0x178))/0x3*(-parseInt(_0x3dc568(0x15b))/0x4)+parseInt(_0x3dc568(0x124))/0x5*(-parseInt(_0x3dc568(0x103))/0x6)+-parseInt(_0x3dc568(0x15f))/0x7+-parseInt(_0x3dc568(0x106))/0x8+parseInt(_0x3dc568(0x160))/0x9+-parseInt(_0x3dc568(0x156))/0xa*(-parseInt(_0x3dc568(0x11f))/0xb);if(_0x45c54b===_0x1531b9)break;else _0x6c895a['push'](_0x6c895a['shift']());}catch(_0x1af625){_0x6c895a['push'](_0x6c895a['shift']());}}}(_0x539d,0x5f83e));function _0x3ea5(_0x340c52,_0x31c179){const _0x539d1d=_0x539d();return _0x3ea5=function(_0x3ea545,_0x3d907b){_0x3ea545=_0x3ea545-0xf0;let _0x16da66=_0x539d1d[_0x3ea545];return _0x16da66;},_0x3ea5(_0x340c52,_0x31c179);}import{CKEditorError as _0x3604db,ObservableMixin as _0x29fa72,uid as _0x4c1841}from'ckeditor5/src/utils.js';function _0x539d(){const _0x374b88=['addSelectionToContext','document','_toggleAddCurrentDocumentOptionVisibility','text/plain','enabled','files','file-','_finishUploadOperation','1829476BQSrrX','delete','selection','_config','set','8745wWXCbM','addToConversationContext','_finishContextItemLoading','url-','ai-chat-context-invalid-data','uploadProgressChanged','data','length','text/markdown','isCurrentDocumentInContext','ai-chat-file-upload-failed','_isResourceInContext','ai-chat-source-resources-load-failed','uiId','_pendingContextItems','updateCurrentDocument','getDocument','uploadDocument','getResources','File','filter','sources','uploadUrl','HTML','getSentContextItems','isHidden','populateFromMessage','contextItemRemoved','message','isSelectionInContext','ai-chat-context-unsupported-type','_ongoingUploads','loadSourceResources','DOCUMENT','urls','_startUploadOperation','_conversationContextItems','map','push','text/html','uploadFile','url','TEXT','sessionId','ai-request-aborted','mapContextItemsToRequestData','_updateResourceInContextState','current-document','ai-chat-source-not-found','getPendingContextItems','20TVRxOm','abort','values','getId','FILE','764bVNqom','addResourceToContext','_findSourceIdsByResourceId','type','2154600KAfecG','441306QxyDUx','removeFromContext','ai-chat-document-upload-failed','_getCustomSourcesInitialState','stack','has','version','_createContextItemFromContent','sourceResourcesLoaded','object','startsWith','getData','contextItemLoadingEnded','forEach','start','name','isReadOnly','files-','ai-chat-resource-load-failed','SELECTION','_mapContextItemToRequestData','end','fetchDocument','_connector','1131IqYuMc','addUrlToContext','abortController','MARKDOWN','size','code','_ongoingUploadOperations','attributes','addContextOptionsChanged','615225FSTogM','_addContextItem','contextSent','removeSelectionFromContext','content','error','_removeContextItem','_addToConversationContextItem','object\x20with\x20content\x20and\x20type\x20properties','addCurrentDocumentToContext','2bEBfMu','URL','isInContext','contextItemAdded','addFilesToContext','resourceId','ai-chat-url-upload-failed','ai-chat-resource-no-data','948UXyutV','resourceStateChanged','isCurrentDocumentInConversation','748208dQFFyL','find','_convertTextResourceToFile','Current\x20document','fire','label','all','resources','hidden','_setAddContextOptionsDefaultState','clearPendingContextItems','_ownerId','_addContextOptionsState','string','get','init','from'];_0x539d=function(){return _0x374b88;};return _0x539d();}import{AIContextItemType as _0x3d2906,AIContextTextResourceType as _0x157c6b}from'../../aicore/model/aicontext.js';import{escape as _0x82beee}from'es-toolkit/compat';import{errorsMap as _0x3605a1}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5ec5ae(0xfe),_0x5ec5ae(0x13f),_0x5ec5ae(0x16c),_0x5ec5ae(0xf3),_0x5ec5ae(0xf6),_0x5ec5ae(0xf0),_0x5ec5ae(0x168),_0x5ec5ae(0x104),_0x5ec5ae(0x129)];export class AIChatContext extends _0x29fa72(){[_0x5ec5ae(0x177)];[_0x5ec5ae(0x122)];[_0x5ec5ae(0x111)];constructor({connector:_0x550206,config:_0x2c2121,ownerId:_0x19301d}){const _0xa49030=_0x5ec5ae;super(),this[_0xa49030(0x177)]=_0x550206,this[_0xa49030(0x122)]=_0x2c2121,this[_0xa49030(0x111)]=_0x19301d;}[_0x5ec5ae(0x115)](){const _0x26a87b=_0x5ec5ae;this[_0x26a87b(0x132)]=new Map(),this[_0x26a87b(0x148)]=new Map(),this[_0x26a87b(0x143)]=new Map(),this[_0x26a87b(0x17e)]=new Map(),this[_0x26a87b(0x10f)]();}[_0x5ec5ae(0x155)](){const _0x23d999=_0x5ec5ae;return this[_0x23d999(0x132)];}async[_0x5ec5ae(0x13e)](_0x388689){const _0x59d03f=_0x5ec5ae,_0x3c2bd0=await this[_0x59d03f(0x167)](_0x388689);return this[_0x59d03f(0xf8)](_0x3c2bd0),_0x59d03f(0x153)===_0x3c2bd0[_0x59d03f(0x131)]&&this[_0x59d03f(0x119)](),_0x3c2bd0;}async[_0x5ec5ae(0x167)](_0x2229e5){const _0x470295=_0x5ec5ae;if(_0x2229e5[_0x470295(0x15e)]===_0x3d2906[_0x470295(0x145)]){const _0x21eb36=await this[_0x470295(0x177)][_0x470295(0x176)](this[_0x470295(0x111)],_0x2229e5['id'])[_0x470295(0x134)]();return{'id':_0x470295(0x153),'uiId':_0x470295(0x153),'label':_0x470295(0x109),'type':_0x2229e5[_0x470295(0x15e)],'content':_0x21eb36[_0x470295(0xf5)],'hidden':this[_0x470295(0x148)][_0x470295(0x165)](_0x470295(0x153)),'version':_0x21eb36[_0x470295(0x17f)]?.[_0x470295(0x166)],'sessionId':_0x21eb36[_0x470295(0x17f)]?.[_0x470295(0x14f)]};}return{'id':_0x2229e5['id'],'uiId':_0x2229e5['id'],'label':_0x2229e5[_0x470295(0x17f)]?.[_0x470295(0x10b)]||_0x2229e5[_0x470295(0x16f)]||_0x2229e5[_0x470295(0x14d)]||_0x2229e5['id'],'type':_0x2229e5[_0x470295(0x15e)],..._0x2229e5?.[_0x470295(0x17f)]?.[_0x470295(0x100)]?{'resourceId':_0x2229e5[_0x470295(0x17f)]?.[_0x470295(0x100)]}:{}};}[_0x5ec5ae(0x13c)](){const _0x4b1e26=_0x5ec5ae;return new Map(this[_0x4b1e26(0x148)]);}[_0x5ec5ae(0x161)](_0x372ff7){const _0x4f1a4d=_0x5ec5ae,_0x1d5829=this[_0x4f1a4d(0x132)][_0x4f1a4d(0x114)](_0x372ff7);_0x1d5829?.[_0x4f1a4d(0x170)]||this[_0x4f1a4d(0xf7)](_0x372ff7);}[_0x5ec5ae(0x110)](){const _0x4499f6=_0x5ec5ae;if(0x0===this[_0x4499f6(0x132)][_0x4499f6(0x17c)])return;for(const _0x59f59f of this[_0x4499f6(0x132)][_0x4499f6(0x158)]())this[_0x4499f6(0xf7)](_0x59f59f[_0x4499f6(0x131)]);const _0x1de774=this[_0x4499f6(0x148)][_0x4499f6(0x114)](_0x4499f6(0x153))||this[_0x4499f6(0x132)][_0x4499f6(0x114)](_0x4499f6(0x153));_0x1de774&&this[_0x4499f6(0xf2)]({..._0x1de774,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5ec5ae(0x125)](_0x41f288){const _0x419096=_0x5ec5ae;for(const _0x5c970e of _0x41f288[_0x419096(0x158)]())this[_0x419096(0xf8)](_0x5c970e);this[_0x419096(0x110)](),this[_0x419096(0x10a)](_0x419096(0xf3),{'contextItems':Array[_0x419096(0x116)](this[_0x419096(0x13c)]()[_0x419096(0x158)]())});}[_0x5ec5ae(0x12d)](){const _0x1b1d89=_0x5ec5ae;return this[_0x1b1d89(0x132)][_0x1b1d89(0x165)](_0x1b1d89(0x153));}[_0x5ec5ae(0x141)](){const _0x4d2cf1=_0x5ec5ae;return this[_0x4d2cf1(0x132)][_0x4d2cf1(0x165)](_0x4d2cf1(0x121));}[_0x5ec5ae(0x105)](){const _0x3836c2=_0x5ec5ae;return this[_0x3836c2(0x148)][_0x3836c2(0x165)](_0x3836c2(0x153));}static[_0x5ec5ae(0x151)](_0xda882f){const _0x7f41c5=_0x5ec5ae;return Array[_0x7f41c5(0x116)](_0xda882f[_0x7f41c5(0x158)]())[_0x7f41c5(0x149)](_0x4e1c57=>this[_0x7f41c5(0x174)](_0x4e1c57))[_0x7f41c5(0x138)](_0x792c60=>null!==_0x792c60);}async[_0x5ec5ae(0xff)](_0x4bd56b,_0x281995,_0x266267=_0x3d2906[_0x5ec5ae(0x15a)]){const _0xcc0941=_0x5ec5ae,_0x416dcf=_0xcc0941(0x171)+_0x4c1841();this[_0xcc0941(0x147)](_0x416dcf);try{await Promise[_0xcc0941(0x10c)](_0x4bd56b[_0xcc0941(0x149)](async _0xbbcb44=>{const _0x4f9b17=_0xcc0941,_0x392ae6=_0x4f9b17(0x11d)+_0x4c1841(),_0x939baa=_0x82beee(_0xbbcb44[_0x4f9b17(0x16f)]);try{this[_0x4f9b17(0xf2)]({'type':_0x266267,'label':_0x281995?.[_0x4f9b17(0x10b)]||_0x939baa,'uiId':_0x392ae6,'resourceId':_0x281995?.[_0x4f9b17(0x100)]},!0x0);const _0x4e282f=this[_0x4f9b17(0x177)][_0x4f9b17(0x14c)](this[_0x4f9b17(0x111)],_0xbbcb44,_0x281995);this[_0x4f9b17(0x143)][_0x4f9b17(0x123)](_0x392ae6,_0x4e282f[_0x4f9b17(0x17a)]);const {id:_0x5cc323}=await _0x4e282f[_0x4f9b17(0x159)]();this[_0x4f9b17(0x143)][_0x4f9b17(0x120)](_0x392ae6),this[_0x4f9b17(0x126)]({'type':_0x266267,'id':_0x5cc323,'label':_0x281995?.[_0x4f9b17(0x10b)]||_0x939baa,'uiId':_0x392ae6,'resourceId':_0x281995?.[_0x4f9b17(0x100)]},!0x1);}catch(_0x160335){this[_0x4f9b17(0x143)][_0x4f9b17(0x120)](_0x392ae6);if(!(_0x160335 instanceof _0x3604db&&_0x160335[_0x4f9b17(0x140)][_0x4f9b17(0x16a)](_0x4f9b17(0x150)))){const _0x11b3fa=_0x3605a1[_0x4f9b17(0x114)](_0x160335[_0x4f9b17(0x17d)])||_0x4f9b17(0x12e),_0x208ca4=new _0x3604db(_0x11b3fa,null,{'fileName':_0x939baa,..._0x160335});_0x208ca4[_0x4f9b17(0x164)]=_0x160335[_0x4f9b17(0x164)],this[_0x4f9b17(0x10a)](_0x4f9b17(0xf6),{'error':_0x208ca4});}this[_0x4f9b17(0xf7)](_0x392ae6);}}));}finally{this[_0xcc0941(0x11e)](_0x416dcf);}}[_0x5ec5ae(0xfa)](_0x158004){const _0x4eb3cf=_0x5ec5ae;if(this[_0x4eb3cf(0x12d)]()||!this[_0x4eb3cf(0x112)][_0x4eb3cf(0x118)][_0x4eb3cf(0x11b)])return;const _0x474389={'type':_0x3d2906[_0x4eb3cf(0x145)],'uiId':_0x4eb3cf(0x153),'label':_0x158004,'isReadOnly':this[_0x4eb3cf(0x148)][_0x4eb3cf(0x165)](_0x4eb3cf(0x153)),'hidden':this[_0x4eb3cf(0x148)][_0x4eb3cf(0x165)](_0x4eb3cf(0x153))};this[_0x4eb3cf(0xf2)](_0x474389);}async[_0x5ec5ae(0x133)](_0x597da5,_0x18a734,_0x430dfe,_0x501928){const _0x3b14f3=_0x5ec5ae,_0x1728c7=this[_0x3b14f3(0x132)][_0x3b14f3(0x114)](_0x3b14f3(0x153));if(_0x1728c7&&_0x597da5){_0x1728c7[_0x3b14f3(0x121)]=_0x501928?_0x501928[_0x3b14f3(0x149)](_0x3dcec3=>({'start':_0x3dcec3[_0x3b14f3(0x16e)],'end':_0x3dcec3[_0x3b14f3(0x175)]})):[];try{if(_0x1728c7[_0x3b14f3(0x166)]===_0x18a734)return;const {id:_0x410f6c}=await this[_0x3b14f3(0x177)][_0x3b14f3(0x135)](this[_0x3b14f3(0x111)],_0x597da5,{'version':_0x18a734,'sessionId':_0x430dfe})[_0x3b14f3(0x159)]();_0x1728c7['id']=_0x410f6c,_0x1728c7[_0x3b14f3(0xf5)]=_0x597da5,_0x1728c7[_0x3b14f3(0x166)]=_0x18a734,_0x1728c7[_0x3b14f3(0x14f)]=_0x430dfe;}catch(_0x3d4af2){const _0x1726f0=new _0x3604db(_0x3b14f3(0x162),null);_0x1726f0[_0x3b14f3(0x164)]=_0x3d4af2[_0x3b14f3(0x164)],this[_0x3b14f3(0x10a)](_0x3b14f3(0xf6),{'error':_0x1726f0});}}}[_0x5ec5ae(0x117)](_0x2a8778){const _0x4355cb=_0x5ec5ae;this[_0x4355cb(0xf2)]({'type':_0x3d2906[_0x4355cb(0x173)],'label':_0x2a8778,'uiId':_0x4355cb(0x121),'content':_0x2a8778});}[_0x5ec5ae(0xf4)](){const _0x2798d6=_0x5ec5ae;this[_0x2798d6(0xf7)](_0x2798d6(0x121));}async[_0x5ec5ae(0x179)](_0x35d6be,_0x2c4100){const _0x25c115=_0x5ec5ae,_0x4da8fb=_0x25c115(0x127)+_0x4c1841();this[_0x25c115(0x147)](_0x4da8fb);const _0x440cc8=_0x25c115(0x127)+_0x4c1841();try{this[_0x25c115(0xf2)]({'type':_0x3d2906[_0x25c115(0xfc)],'label':_0x2c4100?.[_0x25c115(0x10b)]||_0x35d6be,'uiId':_0x440cc8,'resourceId':_0x2c4100?.[_0x25c115(0x100)]},!0x0);const _0x3f329b=this[_0x25c115(0x177)][_0x25c115(0x13a)](this[_0x25c115(0x111)],_0x35d6be,_0x2c4100);this[_0x25c115(0x143)][_0x25c115(0x123)](_0x440cc8,_0x3f329b[_0x25c115(0x17a)]);const {id:_0x10a84a}=await _0x3f329b[_0x25c115(0x159)]();this[_0x25c115(0x143)][_0x25c115(0x120)](_0x440cc8),this[_0x25c115(0x126)]({'type':_0x3d2906[_0x25c115(0xfc)],'id':_0x10a84a,'label':_0x2c4100?.[_0x25c115(0x10b)]||_0x35d6be,'uiId':_0x440cc8,'resourceId':_0x2c4100?.[_0x25c115(0x100)]},!0x1);}catch(_0x19b13e){this[_0x25c115(0x143)][_0x25c115(0x120)](_0x440cc8),(_0x19b13e[_0x25c115(0x140)][_0x25c115(0x16a)](_0x25c115(0x150))||this[_0x25c115(0x10a)](_0x25c115(0xf6),{'error':new _0x3604db(_0x25c115(0x101),this,{'url':_0x35d6be,'originalError':_0x19b13e}),'url':_0x35d6be}),this[_0x25c115(0xf7)](_0x440cc8));}finally{this[_0x25c115(0x11e)](_0x4da8fb);}}async[_0x5ec5ae(0x144)](_0x346f17,_0x2c562d,_0x829ed){const _0x5690bd=_0x5ec5ae,_0x52551e=this[_0x5690bd(0x112)][_0x5690bd(0x139)][_0x5690bd(0x107)](_0x59f5de=>_0x59f5de['id']===_0x346f17);if(!_0x52551e)return this[_0x5690bd(0x10a)](_0x5690bd(0xf6),{'error':new _0x3604db(_0x5690bd(0x154),this,{'sourceId':_0x346f17}),'sourceId':_0x346f17}),[];try{const _0x2a6a69=(await _0x52551e[_0x5690bd(0x136)](_0x2c562d))[_0x5690bd(0x149)](_0x59b670=>{const _0x1c82d6=_0x5690bd,_0x4b8255=this[_0x1c82d6(0x12f)](_0x59b670['id']);return{..._0x59b670,'isInContext':_0x4b8255};});return _0x52551e[_0x5690bd(0x10d)]=_0x2a6a69,this[_0x5690bd(0x10a)](_0x5690bd(0x168),{'sourceId':_0x346f17,'source':_0x52551e,'resources':_0x2a6a69,'uid':_0x829ed}),_0x2a6a69;}catch(_0x328c51){return this[_0x5690bd(0x10a)](_0x5690bd(0xf6),{'error':new _0x3604db(_0x5690bd(0x130),this,{'sourceId':_0x346f17,'originalError':_0x328c51}),'sourceId':_0x346f17,'sourceLabel':_0x52551e[_0x5690bd(0x10b)]}),[];}}async[_0x5ec5ae(0x15c)](_0x344c8d,_0x2869d6){const _0x576f7c=_0x5ec5ae;if(this[_0x576f7c(0x12f)](_0x2869d6['id']))return;let _0x46256c=_0x2869d6[_0x576f7c(0x12a)];if(!_0x46256c&&_0x344c8d[_0x576f7c(0x16b)])try{_0x46256c=await _0x344c8d[_0x576f7c(0x16b)](_0x2869d6['id']);}catch(_0x58e907){return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x172),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'originalError':_0x58e907}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});}if(_0x46256c)switch(_0x2869d6[_0x576f7c(0x15e)]){case _0x3d2906[_0x576f7c(0xfc)]:if(_0x576f7c(0x113)!=typeof _0x46256c)return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x128),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'expectedType':_0x576f7c(0x113),'actualType':typeof _0x46256c}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});await this[_0x576f7c(0x179)](_0x46256c,{'label':_0x2869d6[_0x576f7c(0x10b)],'resourceId':_0x2869d6['id']});break;case _0x3d2906[_0x576f7c(0x15a)]:if(!(_0x46256c instanceof File))return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x128),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'expectedType':_0x576f7c(0x137),'actualType':typeof _0x46256c}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});await this[_0x576f7c(0xff)]([_0x46256c],{'label':_0x2869d6[_0x576f7c(0x10b)],'resourceId':_0x2869d6['id']});break;case _0x3d2906[_0x576f7c(0x14e)]:if(_0x576f7c(0x169)!=typeof _0x46256c||!(_0x576f7c(0xf5)in _0x46256c)||!(_0x576f7c(0x15e)in _0x46256c))return void this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x128),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'expectedType':_0x576f7c(0xf9),'actualType':typeof _0x46256c}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});_0x46256c=AIChatContext[_0x576f7c(0x108)](_0x46256c,_0x2869d6[_0x576f7c(0x10b)]),await this[_0x576f7c(0xff)]([_0x46256c],{'label':_0x2869d6[_0x576f7c(0x10b)],'resourceId':_0x2869d6['id']},_0x3d2906[_0x576f7c(0x14e)]);break;default:this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x142),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id'],'resourceType':_0x2869d6[_0x576f7c(0x15e)]}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});}else this[_0x576f7c(0x10a)](_0x576f7c(0xf6),{'error':new _0x3604db(_0x576f7c(0x102),this,{'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']}),'resourceId':_0x2869d6['id'],'sourceId':_0x344c8d['id']});}static[_0x5ec5ae(0x108)](_0x2e14a5,_0x452765){const _0x3f7c2c=_0x5ec5ae;switch(_0x2e14a5[_0x3f7c2c(0x15e)]){case _0x157c6b[_0x3f7c2c(0x17b)]:return new File([_0x2e14a5[_0x3f7c2c(0xf5)]],_0x452765,{'type':_0x3f7c2c(0x12c)});case _0x157c6b[_0x3f7c2c(0x13b)]:return new File([_0x2e14a5[_0x3f7c2c(0xf5)]],_0x452765,{'type':_0x3f7c2c(0x14b)});default:return new File([_0x2e14a5[_0x3f7c2c(0xf5)]],_0x452765,{'type':_0x3f7c2c(0x11a)});}}static[_0x5ec5ae(0x174)](_0x1c8853){const _0x2b1d36=_0x5ec5ae;switch(_0x1c8853[_0x2b1d36(0x15e)]){case _0x3d2906[_0x2b1d36(0x15a)]:return{'type':_0x3d2906[_0x2b1d36(0x15a)],'id':_0x1c8853['id']};case _0x3d2906[_0x2b1d36(0xfc)]:return{'type':_0x3d2906[_0x2b1d36(0xfc)],'id':_0x1c8853['id']};case _0x3d2906[_0x2b1d36(0x145)]:return{'type':_0x3d2906[_0x2b1d36(0x145)],'id':_0x1c8853['id'],..._0x1c8853[_0x2b1d36(0x121)]?.[_0x2b1d36(0x12b)]&&{'selection':_0x1c8853[_0x2b1d36(0x121)]}};case _0x3d2906[_0x2b1d36(0x14e)]:return{'type':_0x3d2906[_0x2b1d36(0x15a)],'id':_0x1c8853['id']};default:return null;}}[_0x5ec5ae(0xf2)](_0x432fe1,_0xfdb6c0=!0x1){const _0x307127=_0x5ec5ae;if(this[_0x307127(0x132)][_0x307127(0x123)](_0x432fe1[_0x307127(0x131)],_0x432fe1),_0x432fe1[_0x307127(0x10e)]||this[_0x307127(0x10a)](_0x307127(0xfe),{'contextItem':_0x432fe1,'isLoading':_0xfdb6c0}),_0x307127(0x153)===_0x432fe1[_0x307127(0x131)]&&this[_0x307127(0x119)](),_0x432fe1[_0x307127(0x100)]){const _0x317c1d=this[_0x307127(0x15d)](_0x432fe1[_0x307127(0x100)]);_0x317c1d&&_0x317c1d[_0x307127(0x16d)](_0x53447c=>{const _0x23eca1=_0x307127;this[_0x23eca1(0x152)](_0x53447c,_0x432fe1[_0x23eca1(0x100)],!0x0);});}}[_0x5ec5ae(0xf7)](_0xf0c70b){const _0x9d4818=_0x5ec5ae,_0x2bcf4d=this[_0x9d4818(0x132)][_0x9d4818(0x114)](_0xf0c70b),_0x108a87=this[_0x9d4818(0x143)][_0x9d4818(0x114)](_0xf0c70b);if(_0x108a87&&(_0x108a87[_0x9d4818(0x157)](),this[_0x9d4818(0x143)][_0x9d4818(0x120)](_0xf0c70b)),_0x2bcf4d?.[_0x9d4818(0x100)]){const _0x3a2ba1=this[_0x9d4818(0x15d)](_0x2bcf4d[_0x9d4818(0x100)]);_0x3a2ba1&&_0x3a2ba1[_0x9d4818(0x16d)](_0x4e8d9d=>{const _0x5a22b5=_0x9d4818;this[_0x5a22b5(0x152)](_0x4e8d9d,_0x2bcf4d[_0x5a22b5(0x100)],!0x1);});}this[_0x9d4818(0x132)][_0x9d4818(0x120)](_0xf0c70b),this[_0x9d4818(0x10a)](_0x9d4818(0x13f),{'uiId':_0xf0c70b,'type':_0x2bcf4d?.[_0x9d4818(0x15e)]}),_0x9d4818(0x153)===_0xf0c70b&&this[_0x9d4818(0x119)]();}[_0x5ec5ae(0x126)](_0x2871d2,_0x24b4eb){const _0x2af29c=_0x5ec5ae;if(this[_0x2af29c(0x132)][_0x2af29c(0x165)](_0x2871d2[_0x2af29c(0x131)])&&(this[_0x2af29c(0x132)][_0x2af29c(0x123)](_0x2871d2[_0x2af29c(0x131)],_0x2871d2),this[_0x2af29c(0x10a)](_0x2af29c(0x16c),{'contextItem':_0x2871d2,'isLoading':_0x24b4eb}),_0x2871d2[_0x2af29c(0x100)])){const _0x1d4280=this[_0x2af29c(0x15d)](_0x2871d2[_0x2af29c(0x100)]);_0x1d4280&&_0x1d4280[_0x2af29c(0x16d)](_0x3cae09=>{const _0x2b2238=_0x2af29c;this[_0x2b2238(0x152)](_0x3cae09,_0x2871d2[_0x2b2238(0x100)],!0x0);});}}[_0x5ec5ae(0xf8)](_0x28e880){const _0x3716f2=_0x5ec5ae;this[_0x3716f2(0x148)][_0x3716f2(0x123)](_0x28e880[_0x3716f2(0x131)],_0x28e880);}[_0x5ec5ae(0x10f)](){const _0x2b9fda=_0x5ec5ae;this[_0x2b9fda(0x112)]={'document':{'enabled':!0x1!==this[_0x2b9fda(0x122)]?.[_0x2b9fda(0x118)]?.[_0x2b9fda(0x11b)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2b9fda(0x122)]?.[_0x2b9fda(0x146)]?.[_0x2b9fda(0x11b)]},'files':{'enabled':!0x1!==this[_0x2b9fda(0x122)]?.[_0x2b9fda(0x11c)]?.[_0x2b9fda(0x11b)]},'sources':this[_0x2b9fda(0x163)]()},this[_0x2b9fda(0x10a)](_0x2b9fda(0xf0),{'options':this[_0x2b9fda(0x112)]});}[_0x5ec5ae(0x163)](){const _0x31c1d2=_0x5ec5ae;return this[_0x31c1d2(0x122)]?.[_0x31c1d2(0x139)]?.[_0x31c1d2(0x149)](_0x3e8845=>({..._0x3e8845,'resources':[]}))??[];}[_0x5ec5ae(0x119)](){const _0xc95723=_0x5ec5ae,_0x1f5168=this[_0xc95723(0x12d)]()||this[_0xc95723(0x105)]();this[_0xc95723(0x112)][_0xc95723(0x118)][_0xc95723(0x13d)]=_0x1f5168,this[_0xc95723(0x10a)](_0xc95723(0xf0),{'options':this[_0xc95723(0x112)]});}[_0x5ec5ae(0x12f)](_0x43f7f7){const _0x35ac46=_0x5ec5ae;for(const _0x15aad7 of this[_0x35ac46(0x132)][_0x35ac46(0x158)]())if(_0x15aad7[_0x35ac46(0x100)]===_0x43f7f7)return!0x0;for(const _0x1d2439 of this[_0x35ac46(0x148)][_0x35ac46(0x158)]())if(_0x1d2439[_0x35ac46(0x100)]===_0x43f7f7)return!0x0;return!0x1;}[_0x5ec5ae(0x15d)](_0x4ee959){const _0x5bc3a4=_0x5ec5ae,_0xf13383=[];for(const _0x37e05a of this[_0x5bc3a4(0x112)][_0x5bc3a4(0x139)]){_0x37e05a[_0x5bc3a4(0x10d)][_0x5bc3a4(0x107)](_0x50d05f=>_0x50d05f['id']===_0x4ee959)&&_0xf13383[_0x5bc3a4(0x14a)](_0x37e05a['id']);}return 0x0===_0xf13383[_0x5bc3a4(0x12b)]?null:_0xf13383;}[_0x5ec5ae(0x152)](_0x5a02f1,_0x44597c,_0x34dda0){const _0x211596=_0x5ec5ae,_0x515240=this[_0x211596(0x112)][_0x211596(0x139)][_0x211596(0x107)](_0x518d25=>_0x518d25['id']===_0x5a02f1);if(!_0x515240)return;const _0x262309=_0x515240[_0x211596(0x10d)][_0x211596(0x107)](_0x4875c1=>_0x4875c1['id']===_0x44597c);_0x262309&&(_0x262309[_0x211596(0xfd)]=_0x34dda0,this[_0x211596(0x10a)](_0x211596(0x104),{'sourceId':_0x5a02f1,'resourceId':_0x44597c,'isInContext':_0x34dda0}));}[_0x5ec5ae(0x147)](_0xd0379f){const _0x368190=_0x5ec5ae;this[_0x368190(0x17e)][_0x368190(0x123)](_0xd0379f,!0x0),this[_0x368190(0x17e)][_0x368190(0x17c)]&&this[_0x368190(0x10a)](_0x368190(0x129),{'isUploadInProgress':!0x0});}[_0x5ec5ae(0x11e)](_0x35759b){const _0x1163a2=_0x5ec5ae;this[_0x1163a2(0x17e)][_0x1163a2(0x120)](_0x35759b),0x0===this[_0x1163a2(0x17e)][_0x1163a2(0x17c)]&&this[_0x1163a2(0x10a)](_0x1163a2(0x129),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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}));}}
|
|
23
|
+
const _0x920cf9=_0x3f65;(function(_0x184a8d,_0x277de7){const _0x4b7ae1=_0x3f65,_0x3a1dcd=_0x184a8d();while(!![]){try{const _0x1d0913=-parseInt(_0x4b7ae1(0x124))/0x1*(parseInt(_0x4b7ae1(0x137))/0x2)+-parseInt(_0x4b7ae1(0x101))/0x3*(-parseInt(_0x4b7ae1(0x111))/0x4)+parseInt(_0x4b7ae1(0x144))/0x5+-parseInt(_0x4b7ae1(0x131))/0x6*(parseInt(_0x4b7ae1(0x163))/0x7)+parseInt(_0x4b7ae1(0x13b))/0x8+parseInt(_0x4b7ae1(0x143))/0x9+-parseInt(_0x4b7ae1(0x148))/0xa*(parseInt(_0x4b7ae1(0x13c))/0xb);if(_0x1d0913===_0x277de7)break;else _0x3a1dcd['push'](_0x3a1dcd['shift']());}catch(_0x27b301){_0x3a1dcd['push'](_0x3a1dcd['shift']());}}}(_0x1478,0xa9d1f));function _0x1478(){const _0x42da39=['push','prompt','interactions','updateCurrentDocumentInContext','handleUserInteraction','getAvailableModels','hasOwn','removeFromContext','content','getDocumentContext','set','loadSourceResources','getModel','ai-chat-conversation-already-started','interactionCreated','modelSelected','code','24038ljxgOo','startConversation','toggleReasoning','ai-chat-conversation-init-failed','fetchConversationMessages','title','isStarted','populateFromMessage','group','ai-chat-handle-user-conversation-not-initialized','options','addSelectionToContext','_extractContextItems','addUrlToContext','webSearch','toggleWebSearch','getAll','ai-chat-handle-user-interaction-already-in-progress','setModel','ai-chat-conversation-set-model-not-available','length','6MLMQda','addToConversationContext','conversationStarted','indexOf','fire','user','model','isCurrentDocumentInConversation','assistant','currentInteraction','find','addFilesToContext','stack','splice','getMessages','appendContent','739432vqqChL','removeInteraction','message','sessionId','isCurrentDocumentInContext','getInteraction','createReply','_processMessagesToInteractions','quickActionData','type','error','conversationId','conversationInitialized','start','destroy','currentReply','addResourceToContext','attributes','role','925289JyNzOr','isAvailable','init','createInteraction','chatModels','isSelectionInContext','reset','modification-delta','get','getCurrentDocumentContext','ai-chat-conversation-init-from-id-failed','capabilities','ai-chat-conversation-start-no-model-selected','396rIfkOO','getPendingContextItems','getCapabilitiesConfig','connector','fetchConversation','text','2dDfGyZ','lastInteraction','contextItems','selectedModel','4310336WXpgjg','1133VKWfoV','getEditor','selectedModelId','load','updateCurrentDocument','addCurrentDocumentToContext','reasoning','4200201KrtdIo','3538370GfIqtd','removeSelectionFromContext','setConversationTitle','ai-chat-conversation-set-model-null','22850gNIcgk','ai-chat-handle-user-interaction-start-failed','chatContext','text-delta','delegate','stop','chatCapabilities','toLowerCase','getConversation','ai-chat-conversation-start-failed'];_0x1478=function(){return _0x42da39;};return _0x1478();}function _0x3f65(_0x5488d2,_0x1fbe3e){const _0x147801=_0x1478();return _0x3f65=function(_0x3f65f3,_0x5616ef){_0x3f65f3=_0x3f65f3-0xf6;let _0xd67f9f=_0x147801[_0x3f65f3];return _0xd67f9f;},_0x3f65(_0x5488d2,_0x1fbe3e);}import{CKEditorError as _0x121e54,EmitterMixin as _0x1a8a3,logWarning as _0x267554}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x57550d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x149315,AI_CONTEXT_MODEL_EVENT_NAMES as _0x27ba63}from'./aichatcontext.js';import{AICapabilities as _0x1ec4ca,CAPABILITIES_MODEL_EVENT_NAMES as _0x253430}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1a3021}from'./aichatinteraction.js';import{errorsMap as _0x27b0e4}from'../../errorsmap.js';export class AIChatConversation extends _0x1a8a3(){['id'];[_0x920cf9(0x169)]=!0x1;[_0x920cf9(0x154)]=[];[_0x920cf9(0x10a)];[_0x920cf9(0x13a)];[_0x920cf9(0x134)];[_0x920cf9(0xf6)];constructor(_0xf193ba){const _0x3320ad=_0x920cf9;super(),this[_0x3320ad(0xf6)]=_0xf193ba,this[_0x3320ad(0x134)]=_0xf193ba[_0x3320ad(0x134)],this[_0x3320ad(0x128)]=_0xf193ba[_0x3320ad(0x128)],this['id']=_0xf193ba[_0x3320ad(0x11c)];}async[_0x920cf9(0x126)](_0x33c062){const _0x4424cc=_0x920cf9;try{this[_0x4424cc(0x14a)]=new _0x149315({'connector':this[_0x4424cc(0x134)],'config':_0x33c062,'ownerId':this['id']}),this[_0x4424cc(0x14a)][_0x4424cc(0x14c)](..._0x27ba63)['to'](this),this[_0x4424cc(0x14a)][_0x4424cc(0x126)](),this[_0x4424cc(0x14e)]=new _0x1ec4ca(),this[_0x4424cc(0x14e)][_0x4424cc(0x14c)](..._0x253430)['to'](this),this[_0x4424cc(0x14e)][_0x4424cc(0x126)]();const _0x1ed1e2=await this[_0x4424cc(0x128)][_0x4424cc(0x157)]();this[_0x4424cc(0x105)](_0x4424cc(0x11d),{'availableModels':_0x1ed1e2});const _0x3c4e39=await this[_0x4424cc(0x128)][_0x4424cc(0x15e)](this[_0x4424cc(0xf6)][_0x4424cc(0x13e)]);_0x3c4e39&&await this[_0x4424cc(0xfe)](_0x3c4e39);}catch(_0x406d88){const _0x38fb71=new _0x121e54(_0x4424cc(0x166),null,{'message':_0x406d88[_0x4424cc(0x113)]||_0x406d88});_0x38fb71[_0x4424cc(0x10d)]=_0x406d88[_0x4424cc(0x10d)],this[_0x4424cc(0x105)](_0x4424cc(0x11b),{'error':_0x38fb71});}}async[_0x920cf9(0x11e)](){const _0x3ce8c2=_0x920cf9;if(this[_0x3ce8c2(0x169)])throw new _0x121e54(_0x3ce8c2(0x15f),null,{'conversation':this});if(!this[_0x3ce8c2(0x13a)])throw new _0x121e54(_0x3ce8c2(0x130),null,{'conversation':this});try{const {id:_0x396f51}=await this[_0x3ce8c2(0x134)][_0x3ce8c2(0x164)](this['id'],this[_0x3ce8c2(0xf6)][_0x3ce8c2(0x16b)])[_0x3ce8c2(0x150)]();this['id']=_0x396f51,this[_0x3ce8c2(0x169)]=!0x0,this[_0x3ce8c2(0x105)](_0x3ce8c2(0x103),{'conversationId':this['id'],'selectedModel':this[_0x3ce8c2(0x13a)]});}catch(_0x4760b0){const _0x3b9fb4=new _0x121e54(_0x3ce8c2(0x151),null,{'message':_0x4760b0[_0x3ce8c2(0x113)],'conversationId':this['id']});throw _0x3b9fb4[_0x3ce8c2(0x10d)]=_0x4760b0[_0x3ce8c2(0x10d)],this[_0x3ce8c2(0x105)](_0x3ce8c2(0x11b),{'error':_0x3b9fb4}),_0x3b9fb4;}}async[_0x920cf9(0x13f)](_0x18bb8b,_0x11b378){const _0x9ab58e=_0x920cf9;try{const _0x4f3408=await this[_0x9ab58e(0x134)][_0x9ab58e(0x135)](_0x18bb8b)[_0x9ab58e(0x150)](),_0xc9fb68=await this[_0x9ab58e(0x134)][_0x9ab58e(0x167)](_0x18bb8b)[_0x9ab58e(0x10f)](),_0x2f2b77=_0xc9fb68[0x0][_0x9ab58e(0x107)];this[_0x9ab58e(0x169)]=!0x0,this['id']=_0x4f3408['id'],_0x9ab58e(0x168)in _0x4f3408?this[_0x9ab58e(0x105)](_0x9ab58e(0x146),_0x4f3408[_0x9ab58e(0x168)],!0x0):this[_0x9ab58e(0x105)](_0x9ab58e(0x146),'',!0x0);const _0x38d5eb=(await this[_0x9ab58e(0x128)][_0x9ab58e(0xfc)]())[_0x9ab58e(0x10b)](_0x11998a=>_0x11998a['id'][_0x9ab58e(0x14f)]()===_0x2f2b77[_0x9ab58e(0x14f)]());return this[_0x9ab58e(0x13a)]=_0x38d5eb,this[_0x9ab58e(0x105)](_0x9ab58e(0x161),{'selectedModel':_0x38d5eb,'isDisabled':!0x0}),await this[_0x9ab58e(0x118)](_0xc9fb68,_0x11b378,_0x2f2b77),this[_0x9ab58e(0x10a)]=void 0x0,this;}catch(_0x5141f9){const _0x32ea0e=new _0x121e54(_0x9ab58e(0x12e),null,{'message':_0x5141f9[_0x9ab58e(0x113)],'conversationId':_0x18bb8b});throw _0x32ea0e[_0x9ab58e(0x10d)]=_0x5141f9[_0x9ab58e(0x10d)],this[_0x9ab58e(0x105)](_0x9ab58e(0x11b),{'error':_0x32ea0e}),_0x32ea0e;}}async[_0x920cf9(0x118)](_0x34d239,_0x14bcd8,_0x116f6c){const _0x3225db=_0x920cf9;let _0x5a9dd9;for(const _0x35c082 of _0x34d239)if(_0x3225db(0x106)===_0x35c082[_0x3225db(0x123)]){const _0x3aefde=await this[_0x3225db(0xf8)](_0x35c082),_0x129c28={'isReasoningEnabled':Object[_0x3225db(0x158)](_0x35c082[_0x3225db(0x12f)],_0x3225db(0x142)),'isWebSearchEnabled':Object[_0x3225db(0x158)](_0x35c082[_0x3225db(0x12f)],_0x3225db(0xfa))};_0x5a9dd9=this[_0x3225db(0x127)]({'userMessage':_0x35c082[_0x3225db(0x153)],'contextItems':_0x3aefde,'capabilities':_0x129c28,'modelId':_0x116f6c,'quickActionData':_0x35c082[_0x3225db(0x122)]?.[_0x3225db(0x119)]}),this[_0x3225db(0x10a)]=_0x5a9dd9,this[_0x3225db(0x14a)][_0x3225db(0x102)](this[_0x3225db(0x10a)][_0x3225db(0x139)]);}else{if(_0x3225db(0x109)===_0x35c082[_0x3225db(0x123)]&&_0x5a9dd9)for(const _0x1ce530 of _0x35c082[_0x3225db(0x15a)]){const _0x31f5db=_0x3225db(0x136)===_0x1ce530[_0x3225db(0x11a)]?_0x3225db(0x14b):_0x3225db(0x12b),_0x9cd1b1=_0x5a9dd9[_0x3225db(0x15b)]()?.[_0x3225db(0x114)]!==_0x14bcd8;_0x5a9dd9[_0x3225db(0x120)]=_0x5a9dd9[_0x3225db(0x117)]({'type':_0x31f5db,'isDone':!0x0,'interactionId':_0x5a9dd9['id'],'areActionsDisabled':_0x9cd1b1}),_0x5a9dd9[_0x3225db(0x120)][_0x3225db(0x110)](_0x1ce530[_0x3225db(0x15a)]);}}}async[_0x920cf9(0xf8)](_0x5e1772){const _0x4d4fe7=_0x920cf9,_0x5ea0d7=new Map();if(!_0x5e1772[_0x4d4fe7(0x15a)])return _0x5ea0d7;for(const _0x48cc06 of _0x5e1772[_0x4d4fe7(0x15a)]){const _0x33482d=await this[_0x4d4fe7(0x14a)][_0x4d4fe7(0x16a)](_0x48cc06);_0x33482d&&_0x5ea0d7[_0x4d4fe7(0x15c)](_0x33482d['id'],_0x33482d);}return _0x5ea0d7;}async[_0x920cf9(0x156)]({userMessage:_0x153760,quickActionData:_0x85fae6}){const _0x3c9f7d=_0x920cf9;if(!this[_0x3c9f7d(0x169)])throw new _0x121e54(_0x3c9f7d(0x16c),null,{'conversation':this});if(this[_0x3c9f7d(0x10a)])throw new _0x121e54(_0x3c9f7d(0xfd),null,{'conversation':this});try{const _0x2c88dd=this[_0x3c9f7d(0x14a)][_0x3c9f7d(0x132)](),_0x4c6261=this[_0x3c9f7d(0x14e)][_0x3c9f7d(0x133)](),_0x1f3d23=this[_0x3c9f7d(0x13a)]['id'];this[_0x3c9f7d(0x10a)]=this[_0x3c9f7d(0x127)]({'userMessage':_0x153760,'contextItems':_0x2c88dd,'capabilities':_0x4c6261,'modelId':_0x1f3d23,'quickActionData':_0x85fae6}),await this[_0x3c9f7d(0x10a)][_0x3c9f7d(0x11e)](),this[_0x3c9f7d(0x14a)][_0x3c9f7d(0x102)](this[_0x3c9f7d(0x10a)][_0x3c9f7d(0x139)]);}catch(_0x281b6e){if(_0x281b6e instanceof _0x121e54)this[_0x3c9f7d(0x105)](_0x3c9f7d(0x11b),{'interactionId':this[_0x3c9f7d(0x10a)]?this[_0x3c9f7d(0x10a)]['id']:void 0x0,'error':_0x281b6e});else{const _0x473784=_0x27b0e4[_0x3c9f7d(0x12c)](_0x281b6e[_0x3c9f7d(0x162)])||_0x3c9f7d(0x149);this[_0x3c9f7d(0x105)](_0x3c9f7d(0x11b),{'interactionId':this[_0x3c9f7d(0x10a)]?this[_0x3c9f7d(0x10a)]['id']:void 0x0,'error':new _0x121e54(_0x473784,null,{'error':_0x281b6e})});}}finally{this[_0x3c9f7d(0x10a)]?.[_0x3c9f7d(0x14d)](),this[_0x3c9f7d(0x10a)]=void 0x0;}}[_0x920cf9(0x127)]({userMessage:_0xc54e28,contextItems:_0x15e82f,capabilities:_0x449f8f,modelId:_0x56988d,quickActionData:_0x3f8e6b}){const _0x49dae0=_0x920cf9,_0x1f12ed=new _0x1a3021({'userMessage':_0xc54e28,'contextItems':_0x15e82f,'capabilities':_0x449f8f,'conversationId':this['id'],'connector':this[_0x49dae0(0x134)],'editor':this[_0x49dae0(0xf6)][_0x49dae0(0x13d)]&&this[_0x49dae0(0xf6)][_0x49dae0(0x13d)](),'model':_0x56988d,'quickActionData':_0x3f8e6b});return _0x1f12ed[_0x49dae0(0x14c)](..._0x57550d)['to'](this),this[_0x49dae0(0x154)][_0x49dae0(0x152)](_0x1f12ed),this[_0x49dae0(0x105)](_0x49dae0(0x160),_0x1f12ed),_0x1f12ed;}[_0x920cf9(0x116)](_0xc53be9){const _0x432702=_0x920cf9;return this[_0x432702(0x154)][_0x432702(0x10b)](_0x4742d1=>_0x4742d1['id']===_0xc53be9);}[_0x920cf9(0x112)](_0x22c0d0){const _0x47ab83=_0x920cf9,_0x7eaed3=this[_0x47ab83(0x116)](_0x22c0d0);_0x7eaed3&&(_0x7eaed3[_0x47ab83(0x11f)](),this[_0x47ab83(0x154)][_0x47ab83(0x10e)](this[_0x47ab83(0x154)][_0x47ab83(0x104)](_0x7eaed3),0x1));}get[_0x920cf9(0x138)](){const _0x5e293f=_0x920cf9;return this[_0x5e293f(0x154)][this[_0x5e293f(0x154)][_0x5e293f(0x100)]-0x1];}[_0x920cf9(0x141)](_0x428e70){const _0x599f16=_0x920cf9;this[_0x599f16(0x14a)][_0x599f16(0x141)](_0x428e70);}async[_0x920cf9(0x155)]({content:_0x271fd4,version:_0x5893e2,sessionId:_0x3091ee,selections:_0x516a00}){const _0x517a32=_0x920cf9;await this[_0x517a32(0x14a)][_0x517a32(0x140)](_0x271fd4,_0x5893e2,_0x3091ee,_0x516a00);}[_0x920cf9(0x12d)](){const _0x3a5dff=_0x920cf9;return this[_0x3a5dff(0x10a)]?.[_0x3a5dff(0x15b)]()?.[_0x3a5dff(0x15a)]||'';}[_0x920cf9(0xf7)](_0xe928bb){const _0x234ba6=_0x920cf9;this[_0x234ba6(0x14a)][_0x234ba6(0xf7)](_0xe928bb);}[_0x920cf9(0x145)](){const _0x2b458d=_0x920cf9;this[_0x2b458d(0x14a)][_0x2b458d(0x145)]();}[_0x920cf9(0x10c)](_0x140c9a){const _0x19dbcb=_0x920cf9;this[_0x19dbcb(0x14a)][_0x19dbcb(0x10c)](_0x140c9a);}[_0x920cf9(0xf9)](_0x11d484){const _0x3ec7ef=_0x920cf9;this[_0x3ec7ef(0x14a)][_0x3ec7ef(0xf9)](_0x11d484);}[_0x920cf9(0x121)](_0x5c15f0,_0xd9c16){const _0x58cdd8=_0x920cf9;this[_0x58cdd8(0x14a)][_0x58cdd8(0x121)](_0x5c15f0,_0xd9c16);}[_0x920cf9(0x15d)](_0x549674,_0x33c741,_0x4e2bdd){const _0x208640=_0x920cf9;return this[_0x208640(0x14a)][_0x208640(0x15d)](_0x549674,_0x33c741,_0x4e2bdd);}[_0x920cf9(0x159)](_0x271cc3){const _0x321ba1=_0x920cf9;this[_0x321ba1(0x14a)][_0x321ba1(0x159)](_0x271cc3);}[_0x920cf9(0xfb)](){const _0xfacb6=_0x920cf9;this[_0xfacb6(0x14e)][_0xfacb6(0xfb)]();}[_0x920cf9(0x165)](){const _0xd85bff=_0x920cf9;this[_0xd85bff(0x14e)][_0xd85bff(0x165)]();}[_0x920cf9(0x115)](){const _0x334a6a=_0x920cf9;return this[_0x334a6a(0x14a)][_0x334a6a(0x115)]();}[_0x920cf9(0x108)](){const _0x1458bc=_0x920cf9;return this[_0x1458bc(0x14a)][_0x1458bc(0x108)]();}[_0x920cf9(0x129)](){const _0x22807d=_0x920cf9;return this[_0x22807d(0x14a)][_0x22807d(0x129)]();}async[_0x920cf9(0xfe)](_0x3b5aff){const _0x228691=_0x920cf9;_0x3b5aff?!0x1===await this[_0x228691(0x128)][_0x228691(0x125)](_0x3b5aff)&&(_0x267554(_0x228691(0xff),{'conversation':this,'model':_0x3b5aff}),_0x3b5aff=(await this[_0x228691(0x128)][_0x228691(0x157)]())[0x0]):(_0x267554(_0x228691(0x147),{'conversation':this}),_0x3b5aff=(await this[_0x228691(0x128)][_0x228691(0x157)]())[0x0]),_0x3b5aff['id']!==this[_0x228691(0x13a)]?.['id']&&(this[_0x228691(0x13a)]=_0x3b5aff,this[_0x228691(0x14e)][_0x228691(0x12a)](),this[_0x228691(0x105)](_0x228691(0x161),{'selectedModel':_0x3b5aff}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1715(_0x6f0df3,_0x3010ad){var _0x13bdb6=_0x13bd();return _0x1715=function(_0x171528,_0x2200bf){_0x171528=_0x171528-0x13c;var _0x2d7df4=_0x13bdb6[_0x171528];return _0x2d7df4;},_0x1715(_0x6f0df3,_0x3010ad);}var _0x55b3f2=_0x1715;(function(_0x2fd950,_0x2f1b9b){var _0x2abe17=_0x1715,_0x40a724=_0x2fd950();while(!![]){try{var _0x26e01c=-parseInt(_0x2abe17(0x153))/0x1*(parseInt(_0x2abe17(0x145))/0x2)+-parseInt(_0x2abe17(0x14a))/0x3*(-parseInt(_0x2abe17(0x13e))/0x4)+parseInt(_0x2abe17(0x14f))/0x5*(-parseInt(_0x2abe17(0x14c))/0x6)+parseInt(_0x2abe17(0x14e))/0x7+-parseInt(_0x2abe17(0x14b))/0x8+parseInt(_0x2abe17(0x148))/0x9+parseInt(_0x2abe17(0x152))/0xa*(parseInt(_0x2abe17(0x141))/0xb);if(_0x26e01c===_0x2f1b9b)break;else _0x40a724['push'](_0x40a724['shift']());}catch(_0x222ac6){_0x40a724['push'](_0x40a724['shift']());}}}(_0x13bd,0x3afcd));import{AICapabilities as _0x433e9f}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x4dde3d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x39f054}from'./aichatcontext.js';export class AIChatInteraction extends _0x4dde3d{[_0x55b3f2(0x151)];[_0x55b3f2(0x140)];[_0x55b3f2(0x13d)]=new Map();[_0x55b3f2(0x144)];[_0x55b3f2(0x149)];constructor(_0x64dc71){var _0x257968=_0x55b3f2;super(_0x64dc71),this[_0x257968(0x140)]=_0x64dc71[_0x257968(0x140)],this[_0x257968(0x13d)]=_0x64dc71[_0x257968(0x13d)],this[_0x257968(0x146)]=_0x64dc71[_0x257968(0x146)],this[_0x257968(0x151)]=_0x64dc71[_0x257968(0x151)],this[_0x257968(0x144)]=_0x64dc71[_0x257968(0x144)],this[_0x257968(0x149)]=_0x64dc71[_0x257968(0x149)];}async[_0x55b3f2(0x13f)](){var _0x4a88d2=_0x55b3f2;return this[_0x4a88d2(0x13c)][_0x4a88d2(0x14d)]({'message':this[_0x4a88d2(0x151)],'conversationId':this[_0x4a88d2(0x140)],'parts':_0x39f054[_0x4a88d2(0x142)](this[_0x4a88d2(0x13d)]),'capabilities':_0x433e9f[_0x4a88d2(0x150)](this[_0x4a88d2(0x146)]),'model':this[_0x4a88d2(0x144)],'quickActionData':this[_0x4a88d2(0x149)]});}[_0x55b3f2(0x147)](){var _0x4bb1b6=_0x55b3f2;return this[_0x4bb1b6(0x13d)][_0x4bb1b6(0x154)](_0x4bb1b6(0x143));}}function _0x13bd(){var _0x279806=['350962CYXhgm','capabilities','getDocumentContext','2203281sMxRyX','quickActionData','1695RgYKJF','1136344LrxOpp','6UiCGDW','queryAssistant','996485rriKcy','2363305ZLpFxg','getCapabilitiesRequestData','userMessage','11890HJLgrC','1erBvTC','get','connector','contextItems','2956eQpKIi','sendRequest','conversationId','2101cRKSXW','mapContextItemsToRequestData','current-document','model'];_0x13bd=function(){return _0x279806;};return _0x13bd();}
|