@ckeditor/ckeditor5-ai 47.3.0-alpha.0 → 47.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +0 -4
- package/dist/index.css +0 -4
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/ar.po +9 -9
- package/lang/translations/bg.po +9 -9
- package/lang/translations/bn.po +9 -9
- package/lang/translations/ca.po +9 -9
- package/lang/translations/cs.po +9 -9
- package/lang/translations/da.po +9 -9
- package/lang/translations/de.po +9 -9
- package/lang/translations/el.po +9 -9
- package/lang/translations/es.po +9 -9
- package/lang/translations/et.po +9 -9
- package/lang/translations/fi.po +9 -9
- package/lang/translations/fr.po +9 -9
- package/lang/translations/he.po +9 -9
- package/lang/translations/hi.po +9 -9
- package/lang/translations/hu.po +9 -9
- package/lang/translations/id.po +9 -9
- package/lang/translations/it.po +9 -9
- package/lang/translations/ja.po +9 -9
- package/lang/translations/ko.po +9 -9
- package/lang/translations/lt.po +9 -9
- package/lang/translations/lv.po +9 -9
- package/lang/translations/ms.po +9 -9
- package/lang/translations/nl.po +9 -9
- package/lang/translations/no.po +9 -9
- package/lang/translations/pl.po +9 -9
- package/lang/translations/pt-br.po +9 -9
- package/lang/translations/pt.po +9 -9
- package/lang/translations/ro.po +9 -9
- package/lang/translations/ru.po +9 -9
- package/lang/translations/sk.po +9 -9
- package/lang/translations/sr.po +9 -9
- package/lang/translations/sv.po +9 -9
- package/lang/translations/th.po +9 -9
- package/lang/translations/tr.po +9 -9
- package/lang/translations/uk.po +9 -9
- package/lang/translations/vi.po +9 -9
- package/lang/translations/zh-cn.po +9 -9
- package/lang/translations/zh.po +9 -9
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/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/aicontext.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/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/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/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
- package/theme/aiquickactions/aiquickactions.css +0 -4
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x28f4(_0x311076,_0x13b492){const _0x5c5f90=_0x5c5f();return _0x28f4=function(_0x28f490,_0xa812bc){_0x28f490=_0x28f490-0xbd;let _0x182374=_0x5c5f90[_0x28f490];return _0x182374;},_0x28f4(_0x311076,_0x13b492);}const _0xfba34b=_0x28f4;function _0x5c5f(){const _0x3fc57a=['addResourceToContext','applySuggestion','addFeedItemAISuggestion','data-id','webSearchStarted','setIsUploadInProgress','cloneNode','ai-chat-controller-no-active-conversation','setConversationTitle','change','getMarkersGroup','ai-chat-context-unsupported-file-type','replyId','activateTab','selectedModel','_showConversationHistory','model','populateSourceResourceBalloon','getInteractionAndReplyById','like','interactionId','sendUserMessage','lastInteraction','locale','ai-chat-controller-mouse-over','domConverter','focusPromptInput','hasChanges','loadConversation','$graveyard','has','isPremiumPlugin','getOperations','AI_CHAT_GENERIC_ERROR','commands','uploadProgressChanged','updateFeedItemAIReplySuggestionPartState','84zsFqCV','addFeedItemStaticMessage','getDocumentData','baseVersion','removeFeedInteraction','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','plugins','ai-chat-context-file-too-many-pages','136614SjkiRV','get','AI_CHAT_CONTEXT_INVALID_DATA','resetMessageInput','removeFromContext','closeSourceResourceBalloon','12mSUiGs','rejectSuggestion','_scrollToSuggestionRange','interactionFinished','parse','documentContextContent','showDiff','_updateReplyContent','startInteraction','resource','hideFakeVisualSelection','removeContextItem','isUploadInProgress','mouseLeaveSuggestion','index','setContextItemLoading','filter','ai-chat-conversation-start-failed','isCurrentDocumentInContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','updateCurrentDocumentInContext','_handleStartConversation','ai-request-aborted','AIChatUI','ai.availableReplyActions','updateConversationTitle','interactionStarted','contextSent','type','toggleSuggestionDisplayMode','accepted','selection','setAddContextOptions','full','afterInit','addUrlToContext','Disliked\x20response','remove','text-delta','2445240reqjsj','_aiChatUi','mouseOverSuggestion','uiId','changes','_insertSuggestion','showNext','outdated','indexes','removeMarker','split','_handleUIUserMessage','updateFeedItemAIReplyContent','interactionCreated','ai-conversation-','_flushLastInteractionUI','removeSelectionFromChatContext','_openBalloonFor','addFeedItemAIReply','maxOffset','forEach','stopInteraction','resources','find','_balloonShowDiff','419193jybPKH','isLoading','viewRangeToDom','sendMessage','marker','clearPendingContextUI','handleUserInteraction','webSearchFinished','conversationInitialized','markers','ready','node','addFeedItemUserMessage','ai-chat-resource-load-failed','showFakeVisualSelection','new','length','listenTo','rejected','applyOperation','_stopLastInteraction','sources','rootName','_batchToChanges','changeGroups','query','getContentParts','getFirstRange','stopListening','_removeAISelectionMarkers','addSelectionToContext','finishInteraction','_aiEditing','ai-no-track-changes','removed','open','getSelectionText','delete','disableControls','Undo','setSelectedModel','AIChatController','fetchConversation','startAutoScroll','ai-chat-conversation-init-failed','startsWith','source','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','showChangeInText','ai-chat-invalid-request','AI_CHAT_CONTEXT_FILE_TOO_LARGE','ai.chat.context','static','reasoningStarted','collaboration.channelId','updateResourceState','document','resize','log','addContextOptionsChanged','AI_BALLOON_HEADER_TITLE','map','messageId','createRange','1260265zCQSPY','pending','contextItemAdded','9ISUnhf','replyCreated','context','replyContentUpdated','toViewRange','updateFeedItemAIReplySources','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','start','message','isCurrentDocumentInConversation','isInContext','_integrateEditor','getRanges','setFeedItemRenderingStrategy','resizeTabs','loadSourceResources','getInteraction','ai.chat.models.displayedModels','addCurrentDocumentToContext','redo','push','findIndex','setConversationContext','toggleLoadingSkeleton','getChildren','createPositionAt','activeConversation','4qHCmhM','isDisabled','selectModel','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getDiff','325201iTbuUe','addFeedItemError','getGroupId','config','streaming','getRoot','end','state','undo','setModel','mapper','from','updateContent','isOpen','_setIsMaximized','scrollFeedToSuggestion','ai-chat-conversation-not-found','DocumentCompare','chat','ai-chat-context-unsupported-type','nextSibling','set','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','getChildAtOffset','_aiConnector','pluginName','Liked\x20response','main','removeSelectionFromContext','clearConversationContextUI','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','addFilesToContext','AIEditing','resizedTabs','load','close','revert','setChangeGroupState','ai-chat-source-resources-load-failed','contextItems','_getDocumentRangeForReplyChanges','uid','addFileToContext','content','slice','contextItemLoadingEnded','setLoadingMessage','ai-chat-url-upload-failed','enableControls','insertSuggestion','getPath','root','resetConversationTitle','getReply','getChild','resourceId','toggleWebSearch','editing','requires','reasoningFinished','isDocumentOperation','add','getAttribute','sourcePosition','children','AI_CHAT_ABORTED_MESSAGE','handleRemovedConversation','contextItemRemoved','_createFromRanges','getConversation','isOfficialPlugin','dislike','toString','capabilitiesUpdated','howMany','anchorId','addSelectionToChatContext','replyChangeGroupStateUpdated','startConversation','TrackChangesEditing','758417aOBorg','ai-chat-file-upload-failed','Showing\x20conversation\x20history...','_applyOperationsAsSuggestions','history','current-document','ai-chat-context-form-data-size-limits-exceeded','369944MzKBrm','modification-delta','2wPTUrE','modelSelected','ai-chat-context-file-too-large','interactionDestroyed','editors','range','path','_applySuggestion','dialogClosed','AI_CHAT_UNABLE_TO_START_CONVERSATION','resourceStateChanged','replies','isStarted','unshift','_startConversationSafely','toggleReasoning','getDocumentContext','AI_CHAT_INVALID_REQUEST','sourceResourcesLoaded','contextItem','getTransformedByOperation','showPrevious','AITabs','isModelAvailable','version','addDocumentToContext','addContextItem','_previewedChangeGroup','data','AIConnector','upsertAIChatRating','AI_CHAT_RESOURCE_LOAD_FAILED','partIndex','_updateRatings','_toggleWebSearch','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','alignToTop','ai.chat.models.defaultModelId','_removeFromContext','updateFeedItemAIReplySuggestionContent','init','createPositionFromPath','indexOf','_toggleReasoning','_aiChatModels','createConversation','addFeedInteractionHeader','ai-chat-context-invalid-data','_logError','view','options','batch','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','addOperation','updateCapabilities','ai-chat-missing-channel-id','AI_CHAT_UNTITLED_CONVERSATION','error','TrackChanges','setIsMaximized','sourceId','abortPromptStream','stop'];_0x5c5f=function(){return _0x3fc57a;};return _0x5c5f();}(function(_0x4aaa50,_0xc782b0){const _0x12187c=_0x28f4,_0x3fa6ea=_0x4aaa50();while(!![]){try{const _0xc2d146=parseInt(_0x12187c(0xee))/0x1*(parseInt(_0x12187c(0x147))/0x2)+-parseInt(_0x12187c(0x1f9))/0x3*(-parseInt(_0x12187c(0xe9))/0x4)+-parseInt(_0x12187c(0xcb))/0x5+-parseInt(_0x12187c(0x1b3))/0x6*(parseInt(_0x12187c(0x1ab))/0x7)+parseInt(_0x12187c(0x145))/0x8*(-parseInt(_0x12187c(0xce))/0x9)+parseInt(_0x12187c(0x1e0))/0xa+parseInt(_0x12187c(0x13e))/0xb*(parseInt(_0x12187c(0x1b9))/0xc);if(_0xc2d146===_0xc782b0)break;else _0x3fa6ea['push'](_0x3fa6ea['shift']());}catch(_0x200854){_0x3fa6ea['push'](_0x3fa6ea['shift']());}}}(_0x5c5f,0x3281f));import{ContextPlugin as _0xaf1511,Editor as _0x3b72ad}from'ckeditor5/src/core.js';import{CKEditorError as _0x2f3966,logError as _0x1c67a5,scrollViewportToShowTarget as _0x819849,uid as _0x1fe331}from'ckeditor5/src/utils.js';import{AIConnector as _0x20e343}from'../aicore/aiconnector.js';import{AITabs as _0x4ff8a5}from'../aitabs/aitabs.js';import{AIChatConversation as _0x23e024}from'./model/aichatconversation.js';import{getTranslation as _0x53e39a}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1a1f0f}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x49e2dc}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x46931b}from'./model/aichatmodels.js';import{getEditorFromContext as _0x420b18}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x334ef2,DATA_ID_MODEL_ATTRIBUTE as _0x1a5ae8}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4a1844,getOperationsFromReply as _0x27175d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x8f6274,getMinimalSelection as _0x387a7d}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x124b73,_DetachOperation as _0x2c5643}from'ckeditor5/src/engine.js';import{findOne as _0x11553c,getAttribute as _0x198b2a,serialize as _0x423327,Document as _0x1eed08,findByAttribute as _0x22bc82}from'../aicore/utils/htmlparser.js';import{IconAI as _0x139108}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x57b9b8}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x460556}from'../aiballoon/aiballoon.js';export class AIChatController extends _0xaf1511{[_0xfba34b(0x219)];[_0xfba34b(0x106)];[_0xfba34b(0x1e1)];[_0xfba34b(0x173)];[_0xfba34b(0x210)]=new Map();[_0xfba34b(0x162)]=null;[_0xfba34b(0x1f8)]=!0x1;static get[_0xfba34b(0x128)](){return[_0x20e343,_0x460556,_0x334ef2];}static get[_0xfba34b(0x107)](){const _0x5852de=_0xfba34b;return _0x5852de(0x222);}static get[_0xfba34b(0x134)](){return!0x0;}static get[_0xfba34b(0x1a5)](){return!0x0;}[_0xfba34b(0x16f)](){const _0x1d4cc4=_0xfba34b;this[_0x1d4cc4(0x106)]=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x164)),this[_0x1d4cc4(0x1e1)]=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x1d0)),this[_0x1d4cc4(0x219)]=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x10e)),this[_0x1d4cc4(0x173)]=new _0x46931b({'connector':this[_0x1d4cc4(0x106)],'availableModels':this[_0x1d4cc4(0xd0)][_0x1d4cc4(0xf1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0xdf)),'defaultModelId':this[_0x1d4cc4(0xd0)][_0x1d4cc4(0xf1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x16c))});const _0x3249c3=this[_0x1d4cc4(0xd0)][_0x1d4cc4(0x1b1)][_0x1d4cc4(0x1b4)](_0x1d4cc4(0x15d));this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x13c),()=>{const _0x10f6fb=_0x1d4cc4;this[_0x10f6fb(0x155)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x19b),(_0x55fd32,_0x44adfd)=>{const _0x4c2a71=_0x1d4cc4;this[_0x4c2a71(0x1eb)]({'userMessage':_0x44adfd});}),this[_0x1d4cc4(0x20a)](_0x3249c3,_0x1d4cc4(0x10f),(_0x390171,_0x43830f)=>{const _0x5deadd=_0x1d4cc4;this[_0x5deadd(0xfc)](_0x43830f);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0xdc),()=>{const _0xe8de87=_0x1d4cc4;_0x3249c3[_0xe8de87(0xc4)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x184),async()=>{const _0x2b363b=_0x1d4cc4;await this[_0x2b363b(0x20d)](),await this[_0x2b363b(0x1ef)](),this[_0x2b363b(0x1f0)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x160),()=>{const _0x3f53a7=_0x1d4cc4;this[_0x3f53a7(0xe8)]?.[_0x3f53a7(0xe0)](_0x53e39a(this[_0x3f53a7(0xd0)][_0x3f53a7(0x19d)],_0x3f53a7(0x1b0)));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x118),(_0x300f45,_0x19a60a)=>{const _0x221cf3=_0x1d4cc4;this[_0x221cf3(0xe8)]?.[_0x221cf3(0x10d)](Array[_0x221cf3(0xf9)](_0x19a60a));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1dc),(_0x56e2c9,_0x24da7e)=>{const _0x2ec06c=_0x1d4cc4;this[_0x2ec06c(0xe8)]?.[_0x2ec06c(0x1dc)](_0x24da7e);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x186),(_0x35e8d2,_0x109245)=>{const _0x301be7=_0x1d4cc4;this[_0x301be7(0xe8)]?.[_0x301be7(0x186)](_0x109245[_0x301be7(0x227)],_0x109245[_0x301be7(0x1c2)]);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1c4),(_0x2762c8,_0x30442a)=>{const _0x8a36aa=_0x1d4cc4;this[_0x8a36aa(0x16d)](_0x30442a);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0xdd),(_0x4f4358,_0x1f2eb7)=>{const _0x5cc0e2=_0x1d4cc4;this[_0x5cc0e2(0xe8)]?.[_0x5cc0e2(0xdd)](_0x1f2eb7[_0x5cc0e2(0x183)],_0x1f2eb7[_0x5cc0e2(0x212)],_0x1f2eb7[_0x5cc0e2(0x117)]);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x126),()=>{const _0x3d56b4=_0x1d4cc4;this[_0x3d56b4(0x169)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x156),()=>{const _0x13e78f=_0x1d4cc4;this[_0x13e78f(0x172)]();}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0xeb),(_0x178b3d,_0x2a9809)=>{const _0x6b6d5b=_0x1d4cc4;this[_0x6b6d5b(0xe8)]?.[_0x6b6d5b(0xf7)](_0x2a9809);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x199),(_0x35d345,{replyId:_0x55b65b})=>{const _0x1757e9=_0x1d4cc4;console[_0x1757e9(0xc5)](_0x1757e9(0x108),_0x55b65b);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x135),(_0x47bb75,{replyId:_0x5e77b8})=>{const _0x523cfb=_0x1d4cc4;console[_0x523cfb(0xc5)](_0x523cfb(0x1dd),_0x5e77b8);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x11f),(_0x13fb3d,_0x5204a2)=>{const _0x2c8c06=_0x1d4cc4;this[_0x2c8c06(0xd0)][_0x2c8c06(0x1b1)][_0x2c8c06(0x1b4)](_0x460556)[_0x2c8c06(0x111)](),this[_0x2c8c06(0x1e5)](_0x5204a2);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x229),(_0x326d01,{replyId:_0x1f148b,partIndex:_0x29b0ea})=>{const _0x205bfe=_0x1d4cc4;this[_0x205bfe(0x1f8)]=this[_0x205bfe(0x1e1)][_0x205bfe(0x1bf)],this[_0x205bfe(0x1f1)](_0x1f148b,_0x29b0ea);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1e2),(_0x186759,{replyId:_0x407dc5,partIndex:_0x4b039e})=>{const _0x431448=_0x1d4cc4,_0x2959a7=this[_0x431448(0x116)](_0x407dc5,_0x4b039e);_0x2959a7&&_0x431448(0x1a3)!=_0x2959a7[_0x431448(0x14c)][_0x431448(0x121)][_0x431448(0x20f)]&&this[_0x431448(0x219)][_0x431448(0x207)]([_0x2959a7[_0x431448(0x14c)]],_0x431448(0x19e));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1c6),()=>{const _0x421ad7=_0x1d4cc4;this[_0x421ad7(0x219)][_0x421ad7(0x1c3)](_0x421ad7(0x19e));}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x187),(_0x542f47,_0x53c551)=>{const _0xf3e79=_0x1d4cc4;this[_0xf3e79(0xd0)][_0xf3e79(0x1b1)][_0xf3e79(0x1b4)](_0x460556)[_0xf3e79(0x111)](),this[_0xf3e79(0x14e)](_0x53c551);}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1d6),async(_0xeddd64,{replyId:_0x2c258a,showDiff:_0x4d0666})=>{const _0x5f51eb=_0x1d4cc4,{reply:_0x15b4a5}=this[_0x5f51eb(0x198)](_0x2c258a),_0x260ec0=_0x15b4a5[_0x5f51eb(0x213)]({'showDiff':_0x4d0666});await this[_0x5f51eb(0x1e1)][_0x5f51eb(0x16e)]({'id':_0x15b4a5['id'],'parts':_0x260ec0,'renderingStrategy':_0x5f51eb(0xbf)});}),this[_0x1d4cc4(0x20a)](this[_0x1d4cc4(0x1e1)],_0x1d4cc4(0x1ba),(_0x4916a5,{replyId:_0x151a14,partIndex:_0x512701})=>{const _0x429b60=_0x1d4cc4;this[_0x429b60(0x162)]?.[_0x429b60(0x192)]==_0x151a14&&this[_0x429b60(0x162)]?.[_0x429b60(0x167)]==_0x512701&&this[_0x429b60(0xd0)][_0x429b60(0x1b1)][_0x429b60(0x1b4)](_0x460556)[_0x429b60(0x111)]();const {reply:_0x2a3395}=this[_0x429b60(0x198)](_0x151a14);_0x2a3395[_0x429b60(0x113)](_0x512701,_0x429b60(0x20b)),this[_0x429b60(0x219)][_0x429b60(0x1c3)](_0x429b60(0x19e));});}async[_0xfba34b(0x1db)](){const _0x158ad0=_0xfba34b;this[_0x158ad0(0xd0)]instanceof _0x3b72ad?this[_0x158ad0(0xd9)](this[_0x158ad0(0xd0)]):this[_0x158ad0(0x20a)](this[_0x158ad0(0xd0)][_0x158ad0(0x14b)],_0x158ad0(0x12b),(_0x3c8fe1,_0x2fc34d)=>{const _0x1cbc83=_0x158ad0;_0x2fc34d['on'](_0x1cbc83(0x203),()=>{const _0x2b8a7e=_0x1cbc83;this[_0x2b8a7e(0xd9)](_0x2fc34d);});}),await this[_0x158ad0(0x155)]();}[_0xfba34b(0x1e5)](_0x179904){const _0xfc41a1=_0xfba34b,_0x15a0a2=_0x420b18(this[_0xfc41a1(0xd0)]);if(!_0x15a0a2[_0xfc41a1(0x1b1)][_0xfc41a1(0x1a4)](_0xfc41a1(0x181)))throw new _0x2f3966(_0xfc41a1(0x21a),null);const _0x2c4959=this[_0xfc41a1(0xd0)][_0xfc41a1(0x1b1)][_0xfc41a1(0x1b4)](_0xfc41a1(0xff)),{reply:_0x2d7bfd,interaction:_0x3fc6aa}=this[_0xfc41a1(0x198)](_0x179904[_0xfc41a1(0x192)]),_0xed78b0=this[_0xfc41a1(0x116)](_0x179904[_0xfc41a1(0x192)],_0x179904[_0xfc41a1(0x167)]),_0x11795c=void 0x0!==_0x179904[_0xfc41a1(0x167)]?[_0x2d7bfd[_0xfc41a1(0x211)][_0x179904[_0xfc41a1(0x167)]]]:_0x2d7bfd[_0xfc41a1(0x211)][_0xfc41a1(0x1c9)](_0x7d3307=>_0xfc41a1(0xcc)==_0x7d3307[_0xfc41a1(0xf5)]),_0x184e4f=_0x11795c[_0xfc41a1(0xc8)](_0xf34763=>_0x2d7bfd[_0xfc41a1(0x211)][_0xfc41a1(0x171)](_0xf34763));if(!_0xed78b0||_0xfc41a1(0x1a3)==_0xed78b0[_0xfc41a1(0x14c)][_0xfc41a1(0x121)][_0xfc41a1(0x20f)])return void _0x184e4f[_0xfc41a1(0x1f4)](_0x35e512=>_0x2d7bfd[_0xfc41a1(0x113)](_0x35e512,_0xfc41a1(0x1e7)));_0x184e4f[_0xfc41a1(0x1f4)](_0x569205=>_0x2d7bfd[_0xfc41a1(0x113)](_0x569205,_0xfc41a1(0x1d7)));const _0x354d13=_0x27175d({'editor':_0x15a0a2,'reply':_0x2d7bfd,'interaction':_0x3fc6aa,'groups':_0x11795c,'transform':!0x0,'documentCompare':_0x2c4959,'documentCompareOptions':{'anchor':_0xfc41a1(0x109),'markDeletions':!0x0}});let _0x2843b;_0xed78b0&&this[_0xfc41a1(0x1bb)](_0xed78b0[_0xfc41a1(0x14c)]),_0x15a0a2[_0xfc41a1(0x196)][_0xfc41a1(0x18f)](_0x499b7e=>{const _0x464eab=_0xfc41a1;_0x2843b=_0x499b7e[_0x464eab(0x17a)],_0x15a0a2[_0x464eab(0x1b1)][_0x464eab(0x1b4)](_0x464eab(0x13d))[_0x464eab(0x141)](_0x354d13),this[_0x464eab(0x219)][_0x464eab(0x1c3)](_0x464eab(0x19e));}),this[_0xfc41a1(0x210)][_0xfc41a1(0x103)](_0x2843b,{'interactionId':_0x3fc6aa['id'],'replyId':_0x2d7bfd['id'],'indexes':_0x184e4f[_0xfc41a1(0x11a)]()}),this[_0xfc41a1(0x168)](_0x2d7bfd);}[_0xfba34b(0x14e)](_0x23045c){const _0x461a52=_0xfba34b,_0x14ff6e=_0x420b18(this[_0x461a52(0xd0)]),_0x574ad8=this[_0x461a52(0xd0)][_0x461a52(0x1b1)][_0x461a52(0x1b4)](_0x334ef2),{reply:_0xf7b7b8,interaction:_0x2a85d7}=this[_0x461a52(0x198)](_0x23045c[_0x461a52(0x192)]),_0x454956=this[_0x461a52(0x116)](_0x23045c[_0x461a52(0x192)],_0x23045c[_0x461a52(0x167)]),_0x6cb987=void 0x0!==_0x23045c[_0x461a52(0x167)]?[_0xf7b7b8[_0x461a52(0x211)][_0x23045c[_0x461a52(0x167)]]]:_0xf7b7b8[_0x461a52(0x211)][_0x461a52(0x1c9)](_0x421b02=>_0x461a52(0xcc)==_0x421b02[_0x461a52(0xf5)]),_0x52b3bf=_0x6cb987[_0x461a52(0xc8)](_0x1835ba=>_0xf7b7b8[_0x461a52(0x211)][_0x461a52(0x171)](_0x1835ba));if(!_0x454956||_0x461a52(0x1a3)==_0x454956[_0x461a52(0x14c)][_0x461a52(0x121)][_0x461a52(0x20f)])return void _0x52b3bf[_0x461a52(0x1f4)](_0x3e4ea9=>_0xf7b7b8[_0x461a52(0x113)](_0x3e4ea9,_0x461a52(0x1e7)));_0x52b3bf[_0x461a52(0x1f4)](_0x520b70=>_0xf7b7b8[_0x461a52(0x113)](_0x520b70,_0x461a52(0x1d7)));const _0x35dea2=_0x27175d({'editor':_0x14ff6e,'reply':_0xf7b7b8,'interaction':_0x2a85d7,'groups':_0x6cb987,'transform':!0x0,'documentCompare':_0x574ad8,'documentCompareOptions':{'anchor':_0x461a52(0x109),'markDeletions':!0x1}});let _0x5acfdd;_0x454956&&this[_0x461a52(0x1bb)](_0x454956[_0x461a52(0x14c)]),_0x14ff6e[_0x461a52(0x196)][_0x461a52(0x18f)](_0x5be1bc=>{const _0x36315f=_0x461a52;_0x5acfdd=_0x5be1bc[_0x36315f(0x17a)];for(const _0x11e858 of _0x35dea2)_0x11e858[_0x36315f(0x1ae)]=_0x14ff6e[_0x36315f(0x196)][_0x36315f(0xc3)][_0x36315f(0x15f)],_0x4a1844(_0x14ff6e,_0x11e858),_0x5be1bc[_0x36315f(0x17a)][_0x36315f(0x17c)](_0x11e858),_0x14ff6e[_0x36315f(0x196)][_0x36315f(0x20c)](_0x11e858);}),this[_0x461a52(0x210)][_0x461a52(0x103)](_0x5acfdd,{'interactionId':_0x2a85d7['id'],'replyId':_0xf7b7b8['id'],'indexes':_0x52b3bf[_0x461a52(0x11a)]()}),this[_0x461a52(0x168)](_0xf7b7b8);}[_0xfba34b(0x1f1)](_0x37b1f1,_0x173e93){const _0x3f3f53=_0xfba34b,_0xcc2ae9=_0x420b18(this[_0x3f3f53(0xd0)]),_0x114b1f=this[_0x3f3f53(0x116)](_0x37b1f1,_0x173e93),_0x190807=this[_0x3f3f53(0xd0)][_0x3f3f53(0x1b1)][_0x3f3f53(0x1b4)](_0x460556);if(!_0x114b1f)return void _0x190807[_0x3f3f53(0x111)]();const {range:_0x506752,currentIndex:_0xfa950b}=_0x114b1f;if(_0x3f3f53(0x1a3)==_0x506752[_0x3f3f53(0x121)][_0x3f3f53(0x20f)]){const {reply:_0x5299f0}=this[_0x3f3f53(0x198)](_0x37b1f1);return _0x5299f0[_0x3f3f53(0x113)](_0xfa950b,_0x3f3f53(0x1e7)),void _0x190807[_0x3f3f53(0x111)]();}if(this[_0x3f3f53(0x162)]?.[_0x3f3f53(0x192)]==_0x37b1f1&&this[_0x3f3f53(0x162)]?.[_0x3f3f53(0x167)]==_0xfa950b)return;this[_0x3f3f53(0x215)](_0x190807),this[_0x3f3f53(0x162)]={'replyId':_0x37b1f1,'partIndex':_0xfa950b};let _0x153182=_0xcc2ae9[_0x3f3f53(0xf1)][_0x3f3f53(0x1b4)](_0x3f3f53(0x1d1))||[..._0x49e2dc];_0xcc2ae9[_0x3f3f53(0x1b1)][_0x3f3f53(0x1a4)](_0x3f3f53(0x181))||(_0x153182=_0x153182[_0x3f3f53(0x1c9)](_0x2652fc=>_0x3f3f53(0x11f)!=_0x2652fc));const _0x5eedcd=new _0x57b9b8(_0xcc2ae9[_0x3f3f53(0x19d)],{'showDiff':this[_0x3f3f53(0x1f8)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x3f3f53(0x1da)},'hideHeader':!0x0,'availableActions':_0x153182});this[_0x3f3f53(0x215)](_0x5eedcd);const {reply:_0x18d7a3}=this[_0x3f3f53(0x198)](_0x37b1f1),_0x4e5a79=_0x18d7a3[_0x3f3f53(0x213)]({'showDiff':this[_0x3f3f53(0x1f8)]})[_0x3f3f53(0x1c9)](_0x345fe9=>_0x345fe9[_0x3f3f53(0x1a1)]),_0x5250eb=_0x4e5a79[_0x3f3f53(0xe3)](_0x8c87db=>_0x8c87db[_0x3f3f53(0x1c7)]==_0xfa950b);if(-0x1==_0x5250eb)return;const _0x330806=_0x4e5a79[_0x5250eb],_0x424a9f=_0x4e5a79['at']((_0x5250eb-0x1)%_0x4e5a79[_0x3f3f53(0x209)])?.[_0x3f3f53(0x1c7)],_0x3dd0a7=_0x4e5a79['at']((_0x5250eb+0x1)%_0x4e5a79[_0x3f3f53(0x209)])?.[_0x3f3f53(0x1c7)];_0x5eedcd[_0x3f3f53(0xfa)]({'parts':[_0x330806],'renderingStrategy':_0x3f3f53(0xbf)});const _0x4411c0=_0xfa950b!==_0x424a9f;this[_0x3f3f53(0x1bb)](_0x506752,!0x0),_0x190807[_0x3f3f53(0x21c)]({'index':_0xfa950b,'title':_0x53e39a(this[_0x3f3f53(0xd0)][_0x3f3f53(0x19d)],_0x3f3f53(0xc7),(_0x5250eb+0x1)[_0x3f3f53(0x136)]()),'icon':_0x139108,'mainView':_0x5eedcd,'showRotator':_0x4411c0,'showApplyButton':!0x0,'showSuggestButton':_0xcc2ae9[_0x3f3f53(0x1b1)][_0x3f3f53(0x1a4)](_0x3f3f53(0x181)),'ranges':[_0x506752]}),this[_0x3f3f53(0x1e1)][_0x3f3f53(0xfd)](_0x37b1f1,_0xfa950b),this[_0x3f3f53(0x20a)](_0x5eedcd,_0x3f3f53(0x1d6),(_0x1b39db,{showDiff:_0x5db250})=>{const _0x155e75=_0x3f3f53;this[_0x155e75(0x1f8)]=_0x5db250;const {reply:_0x4cff00}=this[_0x155e75(0x198)](_0x37b1f1),_0xd05376=_0x4cff00[_0x155e75(0x213)]({'showDiff':_0x5db250,'groupIndex':_0xfa950b});_0x5eedcd[_0x155e75(0xfa)]({'parts':_0xd05376,'renderingStrategy':_0x155e75(0xbf)});}),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x187),()=>{const _0x374e6f=_0x3f3f53;this[_0x374e6f(0x14e)]({'replyId':_0x37b1f1,'partIndex':_0xfa950b}),_0x4411c0?this[_0x374e6f(0x1f1)](_0x37b1f1,_0x3dd0a7):_0x190807[_0x374e6f(0x111)]();}),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x11f),()=>{const _0x39e546=_0x3f3f53;this[_0x39e546(0x1e5)]({'replyId':_0x37b1f1,'partIndex':_0xfa950b}),_0x4411c0?this[_0x39e546(0x1f1)](_0x37b1f1,_0x3dd0a7):_0x190807[_0x39e546(0x111)]();}),_0x4411c0&&(this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x1e6),()=>{const _0x44f83c=_0x3f3f53;this[_0x44f83c(0x1f1)](_0x37b1f1,_0x3dd0a7);}),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x15c),()=>{const _0x44b175=_0x3f3f53;this[_0x44b175(0x1f1)](_0x37b1f1,_0x424a9f);})),this[_0x3f3f53(0x20a)](_0x190807,_0x3f3f53(0x14f),()=>{const _0xeda2e5=_0x3f3f53;this[_0xeda2e5(0x215)](_0x190807),this[_0xeda2e5(0x215)](_0x5eedcd),this[_0xeda2e5(0x162)]=null;});}[_0xfba34b(0x116)](_0x342463,_0x2ce4be){const _0x3e3d51=_0xfba34b,_0x589c5c=_0x420b18(this[_0x3e3d51(0xd0)]),{reply:_0x11bc33,interaction:_0x15f55f}=this[_0x3e3d51(0x198)](_0x342463),_0x1973f4=_0x11bc33[_0x3e3d51(0x211)][_0x3e3d51(0x1c9)](_0x3868d1=>_0x3e3d51(0xcc)==_0x3868d1[_0x3e3d51(0xf5)]),_0xe04d4=_0x1973f4[_0x3e3d51(0xc8)](_0xe94ec0=>_0x11bc33[_0x3e3d51(0x211)][_0x3e3d51(0x171)](_0xe94ec0));void 0x0===_0x2ce4be&&(_0x2ce4be=_0xe04d4[0x0]);const _0x15617f=_0xe04d4[_0x3e3d51(0x171)](_0x2ce4be);if(-0x1==_0x15617f)return null;const _0x4872fc=_0x1973f4[_0x15617f],_0x5a6c42=new _0x1eed08([]),_0x52da90=new _0x1eed08([]);for(const _0x18cf8a of _0x4872fc[_0x3e3d51(0x1e4)])if(_0x3e3d51(0x21b)!=_0x18cf8a[_0x3e3d51(0x1d5)]&&_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x18cf8a[_0x3e3d51(0x204)][_0x3e3d51(0x18c)](!0x0)),_0x3e3d51(0x208)!=_0x18cf8a[_0x3e3d51(0x1d5)]){const _0x165e1d=_0x11553c(_0x239cd0=>_0x198b2a(_0x239cd0,_0x3e3d51(0x189))==_0x18cf8a['id'],_0x11bc33[_0x3e3d51(0x1be)],!0x0);_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x165e1d[_0x3e3d51(0x18c)](!0x0));}if(0x0==_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0x209)]){if(_0x4872fc[_0x3e3d51(0x1e4)][0x0][_0x3e3d51(0x139)]){const _0x21e4d0=_0x22bc82(_0x3e3d51(0x189),_0x4872fc[_0x3e3d51(0x1e4)][0x0][_0x3e3d51(0x139)],_0x11bc33[_0x3e3d51(0x1be)]);_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0x154)](_0x21e4d0[_0x3e3d51(0x18c)](!0x0)),_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0x154)](_0x21e4d0[_0x3e3d51(0x18c)](!0x0)),_0x21e4d0[_0x3e3d51(0x102)]&&(_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x21e4d0[_0x3e3d51(0x102)][_0x3e3d51(0x18c)](!0x0)),_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x21e4d0[_0x3e3d51(0x102)][_0x3e3d51(0x18c)](!0x0)));}else{const _0x560eed=_0x11bc33[_0x3e3d51(0x1be)][_0x3e3d51(0x12e)][0x0];if(!_0x560eed)return null;_0x5a6c42[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x560eed[_0x3e3d51(0x18c)](!0x0)),_0x52da90[_0x3e3d51(0x12e)][_0x3e3d51(0xe2)](_0x560eed[_0x3e3d51(0x18c)](!0x0));}}const _0x448c6a=_0x15f55f[_0x3e3d51(0x157)](),_0x50a1d8=_0x589c5c[_0x3e3d51(0x163)][_0x3e3d51(0x1bd)](_0x448c6a[_0x3e3d51(0x119)]),_0x2dd821=_0x423327(_0x5a6c42),_0x249e45=_0x589c5c[_0x3e3d51(0x163)][_0x3e3d51(0x1bd)](_0x2dd821),_0xb68832=_0x589c5c[_0x3e3d51(0x163)][_0x3e3d51(0x1bd)](_0x2dd821),_0x2e6143=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xe7)](_0x249e45,0x0),_0x3c33d6=_0x423327(_0x52da90),_0x10d46f={'anchor':_0x2e6143,'markDeletions':!0x1},_0x335c2e=_0x589c5c[_0x3e3d51(0x1b1)][_0x3e3d51(0x1b4)](_0x334ef2)[_0x3e3d51(0xed)](_0x2dd821,_0x3c33d6,_0x10d46f)[_0x3e3d51(0x1a6)]();if(!_0x335c2e[_0x3e3d51(0x209)])return null;_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x18f)](_0x21e836=>{const _0x3f4d69=_0x3e3d51;for(const _0x298c82 of _0x335c2e)if(_0x3f4d69(0x1de)==_0x298c82[_0x3f4d69(0x1d5)]){const _0x43b1a8=_0x298c82[_0x3f4d69(0x12d)],_0x5f0662=_0x298c82[_0x3f4d69(0x138)],_0x51989b=new _0x2c5643(_0x43b1a8,_0x5f0662);_0x21e836[_0x3f4d69(0x17a)][_0x3f4d69(0x17c)](_0x51989b),_0x589c5c[_0x3f4d69(0x196)][_0x3f4d69(0x20c)](_0x51989b);}else _0x3f4d69(0x1fd)!==_0x298c82[_0x3f4d69(0x1d5)]&&(_0x298c82[_0x3f4d69(0x1ae)]=null,_0x298c82[_0x3f4d69(0x12a)]=!0x1,_0x21e836[_0x3f4d69(0x17a)][_0x3f4d69(0x17c)](_0x298c82),_0x589c5c[_0x3f4d69(0x196)][_0x3f4d69(0x20c)](_0x298c82));});const _0x3daf0b=_0x387a7d(_0x589c5c,_0x335c2e,_0x249e45);_0x8f6274(_0x589c5c[_0x3e3d51(0x196)],_0x3daf0b);const _0x33ebb9=_0x3daf0b[_0x3e3d51(0x214)]()[_0x3e3d51(0xd5)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)](),_0x56b0ee=_0x3daf0b[_0x3e3d51(0x214)]()[_0x3e3d51(0xf4)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)](),_0x270e44=[];let _0x42993d=_0x249e45,_0x2a71a0=_0xb68832;for(let _0xa3647b=0x0;_0xa3647b<_0x56b0ee[_0x3e3d51(0x209)];_0xa3647b++){const _0x57e2f5=_0x42993d[_0x3e3d51(0x1f3)]-_0x56b0ee[_0xa3647b];_0x270e44[_0xa3647b]=_0x2a71a0[_0x3e3d51(0x1f3)]-_0x57e2f5,_0x42993d=_0x42993d[_0x3e3d51(0x105)](_0x56b0ee[_0xa3647b]),_0x2a71a0=_0x2a71a0[_0x3e3d51(0x105)](_0x270e44[_0xa3647b]);}const _0x378fcb=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xca)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0xb68832,_0x33ebb9),_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0xb68832,_0x270e44)),_0x476e2c=_0xb68832[_0x3e3d51(0x124)](0x0)[_0x3e3d51(0x12c)](_0x1a5ae8),_0x800b6c=Array[_0x3e3d51(0xf9)](_0x50a1d8[_0x3e3d51(0xe6)]())[_0x3e3d51(0x1f7)](_0x3b6ece=>_0x3b6ece[_0x3e3d51(0x12c)](_0x1a5ae8)==_0x476e2c)[_0x3e3d51(0x120)](),_0x1876a9=_0x378fcb[_0x3e3d51(0xd5)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)](),_0x38b9a4=_0x378fcb[_0x3e3d51(0xf4)][_0x3e3d51(0x14d)][_0x3e3d51(0x11a)]();_0x1876a9[0x0]=_0x800b6c[0x0]+_0x1876a9[0x0],_0x38b9a4[0x0]=_0x800b6c[0x0]+_0x38b9a4[0x0];let _0x1513b7=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xca)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xc3)][_0x3e3d51(0xf3)](),_0x1876a9),_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0x170)](_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xc3)][_0x3e3d51(0xf3)](),_0x38b9a4));const _0x5a1fb2=_0x589c5c[_0x3e3d51(0x196)][_0x3e3d51(0xc3)][_0x3e3d51(0x142)][_0x3e3d51(0x1a6)](_0x448c6a[_0x3e3d51(0x15f)]);for(const _0x109521 of _0x5a1fb2)_0x1513b7=_0x124b73[_0x3e3d51(0x132)](_0x1513b7[_0x3e3d51(0x15b)](_0x109521));return{'range':_0x1513b7,'currentIndex':_0x2ce4be};}[_0xfba34b(0xd9)](_0x515781){const _0x2ec953=_0xfba34b;if(!_0x515781[_0x2ec953(0x1b1)][_0x2ec953(0x1a4)](_0x2ec953(0x220)))return;const _0x3cc616=_0x515781[_0x2ec953(0x1a8)][_0x2ec953(0x1b4)](_0x2ec953(0xf6)),_0x6ef239=_0x515781[_0x2ec953(0x1a8)][_0x2ec953(0x1b4)](_0x2ec953(0xe1));this[_0x2ec953(0x20a)](_0x3cc616,_0x2ec953(0x112),(_0x3fd081,_0x23890f,_0x30e906)=>{const _0x282f0f=_0x2ec953,_0x21bf8d=this[_0x282f0f(0x210)][_0x282f0f(0x1b4)](_0x23890f);if(!_0x21bf8d)return;const _0x1b84fd=this[_0x282f0f(0xe8)][_0x282f0f(0xde)](_0x21bf8d[_0x282f0f(0x19a)])[_0x282f0f(0x123)](_0x21bf8d[_0x282f0f(0x192)]);_0x21bf8d[_0x282f0f(0x1e8)][_0x282f0f(0x1f4)](_0x4ff407=>_0x1b84fd[_0x282f0f(0x113)](_0x4ff407,_0x282f0f(0xcc))),this[_0x282f0f(0x210)][_0x282f0f(0x21e)](_0x23890f),this[_0x282f0f(0x210)][_0x282f0f(0x103)](_0x30e906,_0x21bf8d);}),this[_0x2ec953(0x20a)](_0x6ef239,_0x2ec953(0x112),(_0x5d1dbe,_0x3706e6,_0x57c507)=>{const _0x145a17=_0x2ec953,_0x5afcbe=this[_0x145a17(0x210)][_0x145a17(0x1b4)](_0x3706e6);if(!_0x5afcbe)return;const _0x28b61f=this[_0x145a17(0xe8)][_0x145a17(0xde)](_0x5afcbe[_0x145a17(0x19a)])[_0x145a17(0x123)](_0x5afcbe[_0x145a17(0x192)]);_0x5afcbe[_0x145a17(0x1e8)][_0x145a17(0x1f4)](_0x5ee8e4=>_0x28b61f[_0x145a17(0x113)](_0x5ee8e4,_0x145a17(0x1d7))),this[_0x145a17(0x210)][_0x145a17(0x21e)](_0x3706e6),this[_0x145a17(0x210)][_0x145a17(0x103)](_0x57c507,_0x5afcbe);});}async[_0xfba34b(0x1a2)](_0x3a19a7){const _0x428ed8=_0xfba34b;this[_0x428ed8(0xd0)][_0x428ed8(0x1b1)][_0x428ed8(0x1b4)](_0x460556)[_0x428ed8(0x111)](),this[_0x428ed8(0x1e1)][_0x428ed8(0xdb)](_0x428ed8(0xbf)),this[_0x428ed8(0x1e1)][_0x428ed8(0xe5)](!0x0),await this[_0x428ed8(0x20d)]();try{await this[_0x428ed8(0x106)][_0x428ed8(0x223)](_0x3a19a7)[_0x428ed8(0x133)](),await this[_0x428ed8(0x155)](_0x3a19a7),this[_0x428ed8(0x1d2)]('\x20');const {sessionId:_0x4a58f1}=this[_0x428ed8(0x219)][_0x428ed8(0x1ad)]();await this[_0x428ed8(0xe8)][_0x428ed8(0x110)](_0x3a19a7,_0x4a58f1),this[_0x428ed8(0xe8)][_0x428ed8(0xd7)]()&&this[_0x428ed8(0xe8)][_0x428ed8(0xe0)](_0x53e39a(this[_0x428ed8(0xd0)][_0x428ed8(0x19d)],_0x428ed8(0x1b0)));}catch(_0x17bc96){this[_0x428ed8(0x1e1)][_0x428ed8(0xef)]({'errorMessage':_0x53e39a(this[_0x428ed8(0xd0)][_0x428ed8(0x19d)],_0x428ed8(0xd4)),'id':_0x3a19a7}),this[_0x428ed8(0x177)](new _0x2f3966(_0x428ed8(0xfe),this,{'error':_0x17bc96}));}finally{this[_0x428ed8(0xd0)][_0x428ed8(0x1b1)][_0x428ed8(0x1b4)](_0x4ff8a5)[_0x428ed8(0x178)][_0x428ed8(0x193)](_0x428ed8(0x100)),this[_0x428ed8(0x1e1)][_0x428ed8(0x224)](),this[_0x428ed8(0x1e1)][_0x428ed8(0xdb)](_0x428ed8(0xf2)),this[_0x428ed8(0x1e1)][_0x428ed8(0xe5)](!0x1);}}[_0xfba34b(0x130)](_0x3fcdae){const _0x4a1967=_0xfba34b;this[_0x4a1967(0xe8)]['id']===_0x3fcdae&&this[_0x4a1967(0x155)]();}async[_0xfba34b(0x13a)](){const _0x197279=_0xfba34b,_0x54a3e5=this[_0x197279(0x219)][_0x197279(0x21d)]();this[_0x197279(0xe8)]?.[_0x197279(0x217)](_0x54a3e5),this[_0x197279(0xe8)]?.[_0x197279(0xe0)](_0x53e39a(this[_0x197279(0xd0)][_0x197279(0x19d)],_0x197279(0x1b0)));}[_0xfba34b(0x1f0)](){const _0x175805=_0xfba34b;this[_0x175805(0xe8)]?.[_0x175805(0x10a)]();}[_0xfba34b(0x1a0)](){const _0x18e9e1=_0xfba34b;this[_0x18e9e1(0x1e1)][_0x18e9e1(0x1a0)]();}async[_0xfba34b(0x13c)](){const _0x1d34cd=_0xfba34b;await this[_0x1d34cd(0x155)]();}async[_0xfba34b(0x1fc)]({message:_0x27fd00,quickActionData:_0x35010e}){const _0x4caecf=_0xfba34b;await this[_0x4caecf(0x1eb)]({'userMessage':_0x27fd00,'quickActionData':_0x35010e});}[_0xfba34b(0xf0)](){const _0xe53ee=_0xfba34b,_0x3b6d28=this[_0xe53ee(0xd0)][_0xe53ee(0xf1)][_0xe53ee(0x1b4)](_0xe53ee(0xc1));if(!_0x3b6d28)throw new _0x2f3966(_0xe53ee(0x17e),this);return _0x3b6d28;}async[_0xfba34b(0x155)](_0x5d88df){const _0x253c8b=_0xfba34b;try{this[_0x253c8b(0x1e1)][_0x253c8b(0x11e)](),await this[_0x253c8b(0x1ce)](_0x5d88df);}catch(_0x1ce193){_0x1c67a5(_0x253c8b(0x1ca),_0x1ce193),this[_0x253c8b(0xe8)]=void 0x0,this[_0x253c8b(0x1e1)][_0x253c8b(0x21f)]();}}async[_0xfba34b(0x1ce)](_0x543216){const _0x44ab9b=_0xfba34b,_0x5ec02c=this[_0x44ab9b(0xd0)][_0x44ab9b(0x1b1)][_0x44ab9b(0x1b4)](_0x460556);let _0x21e3f0;_0x5ec02c[_0x44ab9b(0xfb)]&&_0x5ec02c[_0x44ab9b(0x111)](),_0x543216||!this[_0x44ab9b(0xe8)]?_0x21e3f0=this[_0x44ab9b(0xd0)][_0x44ab9b(0xf1)][_0x44ab9b(0x1b4)](_0x44ab9b(0x16c)):this[_0x44ab9b(0x1e1)][_0x44ab9b(0x15e)]&&(_0x21e3f0=this[_0x44ab9b(0xe8)][_0x44ab9b(0x194)]['id']),await this[_0x44ab9b(0x20d)]();const _0x597a89=this[_0x44ab9b(0xf0)](),_0x21fb39=_0x543216||_0x1fe331();this[_0x44ab9b(0xe8)]=new _0x23e024({'connector':this[_0x44ab9b(0x106)],'chatModels':this[_0x44ab9b(0x173)],'selectedModelId':_0x21e3f0,'conversationId':_0x21fb39,'group':_0x597a89,'getEditor':()=>_0x420b18(this[_0x44ab9b(0xd0)])}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x201),(_0x44d1e3,_0x5c97dc)=>{const _0x44d9e7=_0x44ab9b;this[_0x44d9e7(0x1e1)][_0x44d9e7(0x174)](_0x5c97dc),this[_0x44d9e7(0x1e1)][_0x44d9e7(0x1b6)](),this[_0x44d9e7(0x1e1)][_0x44d9e7(0x1fe)](),this[_0x44d9e7(0x1e1)][_0x44d9e7(0x10b)](),_0x543216||(this[_0x44d9e7(0x1e1)][_0x44d9e7(0x122)](),this[_0x44d9e7(0xe8)]?.[_0x44d9e7(0xe0)](_0x53e39a(this[_0x44d9e7(0xd0)][_0x44d9e7(0x19d)],_0x44d9e7(0x1b0))));}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1a9),(_0x1493ba,_0x30b2e3)=>{const _0x1f4290=_0x44ab9b;this[_0x1f4290(0x1e1)][_0x1f4290(0x18b)](_0x30b2e3[_0x1f4290(0x1c5)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1ed),(_0x1b9c58,_0x1d9040)=>{const _0x3a87e7=_0x44ab9b;this[_0x3a87e7(0x1e1)][_0x3a87e7(0x205)](_0x1d9040);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x18a),()=>{const _0x5f377f=_0x44ab9b;this[_0x5f377f(0x1e1)][_0x5f377f(0x11c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xc0),()=>{const _0x3a2bc3=_0x44ab9b;this[_0x3a2bc3(0x1e1)][_0x3a2bc3(0x11c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x200),(_0x269482,_0x193b14)=>{const _0x45763a=_0x44ab9b;this[_0x45763a(0x1e1)][_0x45763a(0x175)](_0x193b14,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x129),(_0x32568e,_0x5e5400)=>{const _0x43e72d=_0x44ab9b;this[_0x43e72d(0x1e1)][_0x43e72d(0x175)](_0x5e5400,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1d3),()=>{const _0x3cfdec=_0x44ab9b;this[_0x3cfdec(0x1e1)][_0x3cfdec(0x1c1)]();}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1bc),async()=>{const _0xf5a6f2=_0x44ab9b;await this[_0xf5a6f2(0x1e1)][_0xf5a6f2(0x218)]();}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x14a),(_0x553b57,_0x384a07)=>{const _0x3be87c=_0x44ab9b;this[_0x3be87c(0x1e1)][_0x3be87c(0x1af)](_0x384a07['id']);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x18e),(_0x3a2951,_0x278565,_0x22f0c5)=>{const _0x62eb76=_0x44ab9b;this[_0x62eb76(0x1d2)](_0x278565,_0x22f0c5);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xcf),(_0x53e02b,_0x2c6be4)=>{const _0x2b0eb5=_0x44ab9b;_0x2b0eb5(0x1df)===_0x2c6be4[_0x2b0eb5(0x1d5)]?this[_0x2b0eb5(0x1e1)][_0x2b0eb5(0x1f2)](_0x2c6be4):this[_0x2b0eb5(0x1e1)][_0x2b0eb5(0x188)](_0x2c6be4);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xd1),async(_0x1242af,_0x1f74de)=>{const _0x4cf5ca=_0x44ab9b;await this[_0x4cf5ca(0x1c0)]({'reply':_0x1f74de});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x13b),(_0x44ac07,{reply:_0xd2595b,index:_0x1b1ea9,state:_0x50f66b})=>{const _0x25f253=_0x44ab9b;this[_0x25f253(0x1e1)][_0x25f253(0x1aa)]({'id':_0xd2595b['id'],'index':_0x1b1ea9,'state':_0x50f66b});}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xcd),(_0x2613ec,_0x495110)=>{const _0x4fee89=_0x44ab9b;if(this[_0x4fee89(0x1e1)][_0x4fee89(0x161)](_0x495110[_0x4fee89(0x15a)],_0x495110[_0x4fee89(0x1fa)]),_0x4fee89(0x1d8)===_0x495110[_0x4fee89(0x15a)][_0x4fee89(0x1d5)]){const _0xb65848=[..._0x420b18(this[_0x4fee89(0xd0)])[_0x4fee89(0x196)][_0x4fee89(0xc3)][_0x4fee89(0x1d8)][_0x4fee89(0xda)]()];this[_0x4fee89(0x219)][_0x4fee89(0x207)](_0xb65848,_0x4fee89(0x1ee)+this[_0x4fee89(0xe8)]?.['id']);}}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x131),(_0xd5eb5f,_0x97313a)=>{const _0x4c452d=_0x44ab9b;this[_0x4c452d(0x1e1)][_0x4c452d(0x1c4)](_0x97313a[_0x4c452d(0x1e3)]),_0x4c452d(0x143)==_0x97313a[_0x4c452d(0x1e3)]&&this[_0x4c452d(0x1f0)](),_0x4c452d(0x1d8)===_0x97313a[_0x4c452d(0x1d5)]&&this[_0x4c452d(0x219)][_0x4c452d(0x1c3)](_0x4c452d(0x1ee)+this[_0x4c452d(0xe8)]?.['id']);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x11b),(_0x354631,_0x41e4f7)=>{const _0x4d72aa=_0x44ab9b;this[_0x4d72aa(0x1e1)][_0x4d72aa(0x1c8)](_0x41e4f7[_0x4d72aa(0x15a)][_0x4d72aa(0x1e3)],_0x41e4f7[_0x4d72aa(0x1fa)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x1d4),(_0x3601e0,_0x5cc9be)=>{const _0x203e3a=_0x44ab9b;this[_0x203e3a(0x1e1)][_0x203e3a(0xe4)](_0x5cc9be[_0x203e3a(0x115)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0xc6),(_0x1c5dcd,_0x3a0e35)=>{const _0x4fbbae=_0x44ab9b;this[_0x4fbbae(0x1e1)][_0x4fbbae(0x1d9)](_0x3a0e35[_0x4fbbae(0x179)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x159),(_0x17d622,_0x81d4da)=>{const _0x363f96=_0x44ab9b;this[_0x363f96(0x1e1)][_0x363f96(0x197)](_0x81d4da[_0x363f96(0x183)],_0x81d4da[_0x363f96(0x227)],_0x81d4da[_0x363f96(0x1f6)],_0x81d4da[_0x363f96(0x117)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x151),(_0x46db15,_0x58fb51)=>{const _0x2f58d1=_0x44ab9b;this[_0x2f58d1(0x1e1)][_0x2f58d1(0xc2)](_0x58fb51[_0x2f58d1(0x183)],_0x58fb51[_0x2f58d1(0x125)],_0x58fb51[_0x2f58d1(0xd8)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x137),(_0x1f13b0,_0x33fad2)=>{const _0x124f3e=_0x44ab9b;this[_0x124f3e(0x1e1)][_0x124f3e(0x17d)](_0x33fad2);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x148),(_0x3b5693,_0x55ec7f)=>{const _0x1b9a2b=_0x44ab9b;this[_0x1b9a2b(0x1e1)][_0x1b9a2b(0x221)](_0x55ec7f[_0x1b9a2b(0x194)],_0x55ec7f[_0x1b9a2b(0xea)]);}),this[_0x44ab9b(0xe8)]['on'](_0x44ab9b(0x180),(_0x5258ab,{error:_0x9983b3,interactionId:_0x583f9e,fileName:_0x4a63e6,url:_0xa3bc46,sourceId:_0x153cb3,sourceLabel:_0x56bf6a})=>{const _0x2c9ccd=_0x44ab9b,_0x3f41fc=_0x583f9e?_0x583f9e+':'+_0x1fe331():_0x1fe331();_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x1cf))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0x1ac)]({'staticMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x12f)),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x225))||_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x1ca))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x150)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x13f))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x10c),_0x4a63e6),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x11d))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x1cc),_0xa3bc46),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x176))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x1b5)),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x101))?this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x228)),'id':_0x3f41fc}):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x114))?(_0x153cb3&&this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0x1b8)](_0x153cb3),this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x16a),_0x56bf6a||_0x2c9ccd(0x227)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x206))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x166)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x22a))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x158)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x191))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x17b)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x149))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0xbd)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x1b2))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x104)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):_0x9983b3[_0x2c9ccd(0xd6)][_0x2c9ccd(0x226)](_0x2c9ccd(0x144))?(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0xec)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3)):(this[_0x2c9ccd(0x1e1)][_0x2c9ccd(0xef)]({'errorMessage':_0x53e39a(this[_0x2c9ccd(0xd0)][_0x2c9ccd(0x19d)],_0x2c9ccd(0x1a7)),'id':_0x3f41fc}),this[_0x2c9ccd(0x177)](_0x9983b3));}),await this[_0x44ab9b(0xe8)][_0x44ab9b(0x16f)](this[_0x44ab9b(0xd0)][_0x44ab9b(0xf1)][_0x44ab9b(0x1b4)](_0x44ab9b(0xbe))),_0x543216||await this[_0x44ab9b(0xe8)][_0x44ab9b(0xd5)]();}async[_0xfba34b(0x1eb)]({userMessage:_0x44db74,quickActionData:_0x2af9b7}){const _0x4ff675=_0xfba34b;if(!this[_0x4ff675(0xe8)])throw new _0x2f3966(_0x4ff675(0x18d));this[_0x4ff675(0xe8)][_0x4ff675(0x1cb)]()&&await this[_0x4ff675(0xe8)][_0x4ff675(0x1cd)](this[_0x4ff675(0x219)][_0x4ff675(0x1ad)]()),this[_0x4ff675(0xe8)]['id']&&this[_0x4ff675(0xe8)][_0x4ff675(0x153)]&&await this[_0x4ff675(0xe8)][_0x4ff675(0x1ff)]({'userMessage':_0x44db74,'quickActionData':_0x2af9b7}),this[_0x4ff675(0x216)]();}[_0xfba34b(0x216)](){const _0x209136=_0xfba34b,_0x505171=_0x420b18(this[_0x209136(0xd0)])[_0x209136(0x196)],_0x85df91=Array[_0x209136(0xf9)](_0x505171[_0x209136(0x202)][_0x209136(0x190)](_0x1a1f0f));_0x505171[_0x209136(0x18f)](_0x4e7f12=>{const _0x4c1129=_0x209136;_0x85df91[_0x4c1129(0x1f4)](_0x1f5758=>_0x4e7f12[_0x4c1129(0x1e9)](_0x1f5758));});}[_0xfba34b(0x195)](){const _0x4fc4f7=_0xfba34b;console[_0x4fc4f7(0xc5)](_0x4fc4f7(0x140));}[_0xfba34b(0xfc)](_0x3af492){const _0x258cd2=_0xfba34b;this[_0x258cd2(0x1e1)][_0x258cd2(0x182)](_0x3af492);}[_0xfba34b(0x177)](_0x5a7f3d){const _0x297dd8=_0xfba34b;_0x1c67a5(_0x5a7f3d[_0x297dd8(0xd6)]);}[_0xfba34b(0x16d)](_0x1c0c15){const _0x356f64=_0xfba34b;this[_0x356f64(0xe8)]?.[_0x356f64(0x1b7)](_0x1c0c15);}[_0xfba34b(0x169)](){const _0x3ff0cb=_0xfba34b;this[_0x3ff0cb(0xe8)]?.[_0x3ff0cb(0x126)]();}[_0xfba34b(0x172)](){const _0x5cbc54=_0xfba34b;this[_0x5cbc54(0xe8)]?.[_0x5cbc54(0x156)]();}[_0xfba34b(0x198)](_0x5778aa){const _0xf8bd6b=_0xfba34b,[_0x306a62,_0x1d7c25]=_0x5778aa[_0xf8bd6b(0x1ea)](':'),_0x3bdf6a=this[_0xf8bd6b(0xe8)][_0xf8bd6b(0xde)](_0x306a62),_0x4b1dea=_0x3bdf6a[_0xf8bd6b(0x123)](_0x1d7c25);return{'interaction':_0x3bdf6a,'reply':_0x4b1dea};}[_0xfba34b(0x1bb)](_0x36e575,_0x5ec04c=!0x1){const _0x58c5fb=_0xfba34b,_0x181640=_0x420b18(this[_0x58c5fb(0xd0)]),_0x262fbc={'target':_0x181640[_0x58c5fb(0x127)][_0x58c5fb(0x178)][_0x58c5fb(0x19f)][_0x58c5fb(0x1fb)](_0x181640[_0x58c5fb(0x127)][_0x58c5fb(0xf8)][_0x58c5fb(0xd2)](_0x36e575)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x5ec04c};_0x5ec04c&&(_0x262fbc[_0x58c5fb(0x16b)]=!0x0),_0x819849(_0x262fbc);}[_0xfba34b(0x1d2)](_0x318809,_0x335359=!0x1){const _0x140248=_0xfba34b;this[_0x140248(0x1e1)][_0x140248(0x18e)](_0x318809||_0x53e39a(this[_0x140248(0xd0)][_0x140248(0x19d)],_0x140248(0x17f)),_0x335359);}async[_0xfba34b(0x1c0)]({reply:_0x48e262,renderingStrategy:_0x7ac59e}){const _0x1f2854=_0xfba34b,{id:_0x16ae26,isDone:_0x28186f,type:_0x1ada36,parsedContent:_0x37f03b}=_0x48e262;if(_0x1f2854(0x146)===_0x1ada36){const _0x40fc03=_0x48e262[_0x1f2854(0x213)]({'showDiff':this[_0x1f2854(0x1e1)][_0x1f2854(0x1bf)]});await this[_0x1f2854(0x1e1)][_0x1f2854(0x16e)]({'id':_0x16ae26,'parts':_0x40fc03,'renderingStrategy':_0x7ac59e,'isDone':_0x28186f});}else _0x1f2854(0x1df)===_0x1ada36&&await this[_0x1f2854(0x1e1)][_0x1f2854(0x1ec)]({'id':_0x16ae26,'parsedContent':_0x37f03b,'renderingStrategy':_0x7ac59e,'isDone':_0x28186f});_0x28186f&&_0x48e262[_0x1f2854(0x20e)][_0x1f2854(0x209)]>0x0&&this[_0x1f2854(0x1e1)][_0x1f2854(0xd3)](_0x16ae26,_0x48e262[_0x1f2854(0x20e)]);}async[_0xfba34b(0x20d)](){const _0x4a2f81=_0xfba34b,_0x26667e=this[_0x4a2f81(0xe8)]?.[_0x4a2f81(0x19c)];_0x26667e&&(_0x26667e[_0x4a2f81(0x185)](),this[_0x4a2f81(0x1e1)][_0x4a2f81(0x1f5)](_0x26667e));}async[_0xfba34b(0x1ef)](){const _0x2bfcf4=_0xfba34b,_0x13447f=this[_0x2bfcf4(0xe8)]?.[_0x2bfcf4(0x19c)];if(_0x13447f){for await(const _0x2de5bd of _0x13447f[_0x2bfcf4(0x152)])await this[_0x2bfcf4(0x1c0)]({'reply':_0x2de5bd,'renderingStrategy':_0x2bfcf4(0xbf)});}}[_0xfba34b(0x168)](_0x2547bc){const _0x4afd41=_0xfba34b,_0x4f7ae1={'positiveCount':_0x2547bc[_0x4afd41(0x211)][_0x4afd41(0x1c9)](_0x23bcc9=>_0x4afd41(0x1d7)===_0x23bcc9[_0x4afd41(0xf5)])[_0x4afd41(0x209)],'totalCount':_0x2547bc[_0x4afd41(0x211)][_0x4afd41(0x209)],'modificationId':_0x2547bc['id']},_0x23196b=this[_0x4afd41(0xe8)][_0x4afd41(0xde)](_0x2547bc[_0x4afd41(0x19a)])[_0x4afd41(0xc9)];this[_0x4afd41(0x106)][_0x4afd41(0x165)](this[_0x4afd41(0xe8)]['id'],_0x23196b,_0x4f7ae1);}}
|
|
23
|
+
const _0x2bebe0=_0x134b;(function(_0x1dc91e,_0x4c3355){const _0x2c7892=_0x134b,_0x4ad028=_0x1dc91e();while(!![]){try{const _0x592e18=-parseInt(_0x2c7892(0x223))/0x1*(parseInt(_0x2c7892(0x2ec))/0x2)+-parseInt(_0x2c7892(0x2c2))/0x3*(parseInt(_0x2c7892(0x20f))/0x4)+-parseInt(_0x2c7892(0x2f8))/0x5*(parseInt(_0x2c7892(0x237))/0x6)+-parseInt(_0x2c7892(0x29d))/0x7*(-parseInt(_0x2c7892(0x206))/0x8)+parseInt(_0x2c7892(0x2e3))/0x9*(-parseInt(_0x2c7892(0x2ff))/0xa)+parseInt(_0x2c7892(0x30a))/0xb*(-parseInt(_0x2c7892(0x2b9))/0xc)+parseInt(_0x2c7892(0x20c))/0xd;if(_0x592e18===_0x4c3355)break;else _0x4ad028['push'](_0x4ad028['shift']());}catch(_0x2c2107){_0x4ad028['push'](_0x4ad028['shift']());}}}(_0x2fa2,0xd3998));import{ContextPlugin as _0x145d9a,Editor as _0x5c386c}from'ckeditor5/src/core.js';function _0x2fa2(){const _0xfaaec9=['setSelectedModel','replyChangeGroupStateUpdated','nextSibling','toViewRange','log','AI_CHAT_INVALID_REQUEST','addUrlToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','ai-chat-context-unsupported-type','addOperation','ai-chat-conversation-init-failed','pluginName','redo','rootName','_updateRatings','activeConversation','addContextItem','isLoading','getChildAtOffset','removeFromContext','getAttribute','length','batch','getChildren','21kTTSGs','webSearchFinished','AIConnector','change','contextItemLoadingEnded','showDiff','node','ai-chat-url-upload-failed','ai-chat-missing-channel-id','addFeedItemStaticMessage','changeGroups','root','createPositionAt','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','ai-conversation-','context','applyOperation','activateTab','like','markers','startConversation','_aiConnector','stopInteraction','selection','interactionDestroyed','isDisabled','addResourceToContext','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','12mJsFAL','_stopLastInteraction','partIndex','removeFeedInteraction','interactionId','addFeedItemAISuggestion','TrackChangesEditing','start','addFileToContext','1431081ASvqja','reasoningStarted','_toggleWebSearch','toggleReasoning','AI_CHAT_UNTITLED_CONVERSATION','rejected','addCurrentDocumentToContext','filter','getChild','setAddContextOptions','uiId','state','documentContextContent','getReply','slice','showFakeVisualSelection','getRoot','addFeedItemError','disableControls','upsertAIChatRating','showNext','_logError','showPrevious','showChangeInText','getTransformedByOperation','mapper','close','type','ai.availableReplyActions','_insertSuggestion','ai-chat-context-file-too-many-pages','getFirstRange','new','1007829KDIqwa','reasoningFinished','setConversationTitle','uploadProgressChanged','contextSent','streaming','options','addFeedItemUserMessage','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','775468peeAhN','sourceResourcesLoaded','handleUserInteraction','createConversation','isDocumentOperation','_startConversationSafely','query','rejectSuggestion','ai-chat-controller-mouse-over','accepted','cloneNode','TrackChanges','6974105FEjjYg','addFeedInteractionHeader','resetConversationTitle','lastInteraction','isCurrentDocumentInConversation','createRange','sources','140QYaUBW','AIChatUI','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','ai.chat.models.defaultModelId','applySuggestion','_handleStartConversation','anchorId','dislike','removeSelectionFromChatContext','_batchToChanges','populateSourceResourceBalloon','16203121mDhpnQ','startAutoScroll','clearConversationContextUI','addContextOptionsChanged','toString','modelSelected','interactionStarted','config','_previewedChangeGroup','sourceId','hasChanges','plugins','static','setModel','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','AI_CHAT_UNABLE_TO_START_CONVERSATION','startInteraction','replyContentUpdated','addFilesToContext','stopListening','history','mouseLeaveSuggestion','resizedTabs','unshift','resourceStateChanged','addDocumentToContext','interactionFinished','model','handleRemovedConversation','split','forEach','_showConversationHistory','ai-chat-context-invalid-data','alignToTop','replies','setLoadingMessage','getDocumentContext','afterInit','removeMarker','messageId','load','selectedModel','contextItems','_setIsMaximized','updateCurrentDocumentInContext','resetMessageInput','data','revert','get','getConversation','end','AI_CHAT_RESOURCE_LOAD_FAILED','viewRangeToDom','sourcePosition','$graveyard','toggleWebSearch','isCurrentDocumentInContext','addSelectionToContext','DocumentCompare','howMany','_flushLastInteractionUI','stop','init','setFeedItemRenderingStrategy','getPath','ai.chat.context','ai-chat-source-resources-load-failed','resourceId','AI_CHAT_ABORTED_MESSAGE','open','from','loadConversation','getMarkersGroup','AI_BALLOON_HEADER_TITLE','Liked\x20response','children','view','capabilitiesUpdated','isStarted','contextItemAdded','ai-chat-context-file-too-large','updateFeedItemAIReplySuggestionContent','AITabs','_openBalloonFor','isOpen','content','enableControls','loadSourceResources','isModelAvailable','insertSuggestion','commands','sendMessage','resizeTabs','source','updateContent','_aiEditing','setIsUploadInProgress','AI_CHAT_GENERIC_ERROR','_removeFromContext','set','updateFeedItemAIReplySuggestionPartState','findIndex','sendUserMessage','error','resource','isInContext','_removeAISelectionMarkers','4325624HUnMhJ','setConversationContext','resize','contextItem','changes','_toggleReasoning','71486792eyNxDX','_handleUIUserMessage','fetchConversation','12HcjgYt','indexOf','delete','ai-chat-controller-no-active-conversation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','locale','scrollFeedToSuggestion','AI_CHAT_CONTEXT_FILE_TOO_LARGE','updateConversationTitle','ready','ai-chat-conversation-start-failed','ai-chat-context-form-data-size-limits-exceeded','document','getDocumentData','undo','index','updateFeedItemAIReplySources','AIChatController','pending','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','1vgXGHA','_createFromRanges','version','setIsMaximized','isPremiumPlugin','ai-chat-resource-load-failed','_updateReplyContent','createPositionFromPath','chat','closeSourceResourceBalloon','full','startsWith','toggleSuggestionDisplayMode','getGroupId','ai-chat-context-unsupported-file-type','listenTo','AI_CHAT_CONTEXT_INVALID_DATA','editing','add','ai-chat-invalid-request','6abbnLT','getOperations','replyId','finishInteraction','getInteractionAndReplyById','push','getDiff','marker','addSelectionToChatContext','removeContextItem','abortPromptStream','ai.chat.models.displayedModels','maxOffset','modification-delta','toggleLoadingSkeleton','editors','getRanges','isUploadInProgress','focusPromptInput','webSearchStarted','contextItemRemoved','updateResourceState','collaboration.channelId','current-document','mouseOverSuggestion','isOfficialPlugin','indexes','updateCapabilities','_applyOperationsAsSuggestions','_scrollToSuggestionRange','removed','getContentParts','replyCreated','main','range','Disliked\x20response','Undo','dialogClosed','_integrateEditor','requires','conversationInitialized','resources','domConverter','has','setContextItemLoading','AIEditing','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','_getDocumentRangeForReplyChanges','ai-chat-file-upload-failed','_balloonShowDiff','remove','ai-no-track-changes','selectModel','removeSelectionFromContext','setChangeGroupState','text-delta','ai-chat-conversation-not-found','find','getSelectionText','Showing\x20conversation\x20history...','interactionCreated','outdated','parse','addFeedItemAIReply','message','map','baseVersion','_aiChatModels','uid','clearPendingContextUI','data-id','_applySuggestion','ai-request-aborted','_aiChatUi','path','updateFeedItemAIReplyContent','getInteraction','hideFakeVisualSelection'];_0x2fa2=function(){return _0xfaaec9;};return _0x2fa2();}import{CKEditorError as _0x467613,logError as _0x533e07,scrollViewportToShowTarget as _0x12e565,uid as _0x5f3022}from'ckeditor5/src/utils.js';import{AIConnector as _0x1be0a9}from'../aicore/aiconnector.js';import{AITabs as _0x47d958}from'../aitabs/aitabs.js';import{AIChatConversation as _0x303e02}from'./model/aichatconversation.js';import{getTranslation as _0x48e9f1}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3b7459}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x1b7888}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x3ef6e5}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2b7d60}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0xf9b9a3,DATA_ID_MODEL_ATTRIBUTE as _0x193346}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4bcf55,getOperationsFromReply as _0x2f4b70}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4fc5ba,getMinimalSelection as _0x38fec4}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x134b(_0x4efc8f,_0x13edd2){const _0x2fa29e=_0x2fa2();return _0x134b=function(_0x134bcd,_0x5ac1c8){_0x134bcd=_0x134bcd-0x1da;let _0x13600c=_0x2fa29e[_0x134bcd];return _0x13600c;},_0x134b(_0x4efc8f,_0x13edd2);}import{ModelRange as _0x2f8406,_DetachOperation as _0x5b77b1}from'ckeditor5/src/engine.js';import{findOne as _0x552680,getAttribute as _0x1879c2,serialize as _0x5cf332,Document as _0x4b6cd4,findByAttribute as _0x1deead}from'../aicore/utils/htmlparser.js';import{IconAI as _0x16cb59}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x33fc6e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x22b587}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x145d9a{[_0x2bebe0(0x1fa)];[_0x2bebe0(0x2b2)];[_0x2bebe0(0x280)];[_0x2bebe0(0x27a)];[_0x2bebe0(0x308)]=new Map();[_0x2bebe0(0x312)]=null;[_0x2bebe0(0x268)]=!0x1;static get[_0x2bebe0(0x25e)](){return[_0x1be0a9,_0x22b587,_0xf9b9a3];}static get[_0x2bebe0(0x290)](){const _0x2e7049=_0x2bebe0;return _0x2e7049(0x220);}static get[_0x2bebe0(0x250)](){return!0x0;}static get[_0x2bebe0(0x227)](){return!0x0;}[_0x2bebe0(0x348)](){const _0x5bca80=_0x2bebe0;this[_0x5bca80(0x2b2)]=this[_0x5bca80(0x2ac)][_0x5bca80(0x315)][_0x5bca80(0x33a)](_0x5bca80(0x29f)),this[_0x5bca80(0x280)]=this[_0x5bca80(0x2ac)][_0x5bca80(0x315)][_0x5bca80(0x33a)](_0x5bca80(0x300)),this[_0x5bca80(0x1fa)]=this[_0x5bca80(0x2ac)][_0x5bca80(0x315)][_0x5bca80(0x33a)](_0x5bca80(0x264)),this[_0x5bca80(0x27a)]=new _0x3ef6e5({'connector':this[_0x5bca80(0x2b2)],'availableModels':this[_0x5bca80(0x2ac)][_0x5bca80(0x311)][_0x5bca80(0x33a)](_0x5bca80(0x242)),'defaultModelId':this[_0x5bca80(0x2ac)][_0x5bca80(0x311)][_0x5bca80(0x33a)](_0x5bca80(0x302))});const _0x86174c=this[_0x5bca80(0x2ac)][_0x5bca80(0x315)][_0x5bca80(0x33a)](_0x5bca80(0x1ed));this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x2b1),()=>{const _0x1be438=_0x5bca80;this[_0x1be438(0x2f1)]();}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x201),(_0x2a204c,_0x48f0e3)=>{const _0x42d994=_0x5bca80;this[_0x42d994(0x20d)]({'userMessage':_0x48f0e3});}),this[_0x5bca80(0x232)](_0x86174c,_0x5bca80(0x320),(_0x216d97,_0x5684a6)=>{const _0x5b168e=_0x5bca80;this[_0x5b168e(0x335)](_0x5684a6);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x1f7),()=>{const _0x42d0bd=_0x5bca80;_0x86174c[_0x42d0bd(0x208)]();}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x241),async()=>{const _0x29132e=_0x5bca80;await this[_0x29132e(0x2ba)](),await this[_0x29132e(0x346)](),this[_0x29132e(0x307)]();}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x323),()=>{const _0xb20886=_0x5bca80;this[_0xb20886(0x294)]?.[_0xb20886(0x2c8)](_0x48e9f1(this[_0xb20886(0x2ac)][_0xb20886(0x214)],_0xb20886(0x222)));}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x2c1),(_0x1f47e3,_0x4d7233)=>{const _0x5c5fbf=_0x5bca80;this[_0x5c5fbf(0x294)]?.[_0x5c5fbf(0x31c)](Array[_0x5c5fbf(0x1e1)](_0x4d7233));}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x28b),(_0x4b4035,_0x7985a8)=>{const _0x522c4a=_0x5bca80;this[_0x522c4a(0x294)]?.[_0x522c4a(0x28b)](_0x7985a8);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x2b7),(_0x506142,_0x3f772d)=>{const _0x48de17=_0x5bca80;this[_0x48de17(0x294)]?.[_0x48de17(0x2b7)](_0x3f772d[_0x48de17(0x1f8)],_0x3f772d[_0x48de17(0x203)]);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x240),(_0x31e323,_0x1a4eb0)=>{const _0x1c3ee6=_0x5bca80;this[_0x1c3ee6(0x1fd)](_0x1a4eb0);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x1f2),(_0x501876,_0x230664)=>{const _0x1a9c48=_0x5bca80;this[_0x1a9c48(0x294)]?.[_0x1a9c48(0x1f2)](_0x230664[_0x1a9c48(0x313)],_0x230664[_0x1a9c48(0x2f2)],_0x230664[_0x1a9c48(0x27b)]);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x341),()=>{const _0x302640=_0x5bca80;this[_0x302640(0x2c4)]();}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x2c5),()=>{const _0x147e2c=_0x5bca80;this[_0x147e2c(0x20b)]();}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x26b),(_0x4372ec,_0x5bdb19)=>{const _0x4ab1c2=_0x5bca80;this[_0x4ab1c2(0x294)]?.[_0x4ab1c2(0x317)](_0x5bdb19);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x2af),(_0x4d685f,{replyId:_0x32847d})=>{const _0x11e57a=_0x5bca80;console[_0x11e57a(0x289)](_0x11e57a(0x1e5),_0x32847d);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x306),(_0xb942ce,{replyId:_0x138d39})=>{const _0x88e99d=_0x5bca80;console[_0x88e99d(0x289)](_0x88e99d(0x25a),_0x138d39);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x1f4),(_0x24f529,_0x35fa11)=>{const _0x18f1a6=_0x5bca80;this[_0x18f1a6(0x2ac)][_0x18f1a6(0x315)][_0x18f1a6(0x33a)](_0x22b587)[_0x18f1a6(0x2dc)](),this[_0x18f1a6(0x2df)](_0x35fa11);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x2d9),(_0x33f043,{replyId:_0x2d7de0,partIndex:_0x40338b})=>{const _0x54fd67=_0x5bca80;this[_0x54fd67(0x268)]=this[_0x54fd67(0x280)][_0x54fd67(0x2a2)],this[_0x54fd67(0x1ee)](_0x2d7de0,_0x40338b);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x24f),(_0x41ab60,{replyId:_0x462bb1,partIndex:_0x5c3dd0})=>{const _0x591519=_0x5bca80,_0x502146=this[_0x591519(0x266)](_0x462bb1,_0x5c3dd0);_0x502146&&_0x591519(0x340)!=_0x502146[_0x591519(0x259)][_0x591519(0x2a8)][_0x591519(0x292)]&&this[_0x591519(0x1fa)][_0x591519(0x2d1)]([_0x502146[_0x591519(0x259)]],_0x591519(0x2f4));}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x31f),()=>{const _0x3967be=_0x5bca80;this[_0x3967be(0x1fa)][_0x3967be(0x284)](_0x3967be(0x2f4));}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x303),(_0x10eafb,_0x46e24e)=>{const _0x4640a7=_0x5bca80;this[_0x4640a7(0x2ac)][_0x4640a7(0x315)][_0x4640a7(0x33a)](_0x22b587)[_0x4640a7(0x2dc)](),this[_0x4640a7(0x27e)](_0x46e24e);}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x22f),async(_0xbcf4d8,{replyId:_0x37d695,showDiff:_0x186f19})=>{const _0x5bcf3d=_0x5bca80,{reply:_0xc523fe}=this[_0x5bcf3d(0x23b)](_0x37d695),_0x42caa7=_0xc523fe[_0x5bcf3d(0x256)]({'showDiff':_0x186f19});await this[_0x5bcf3d(0x280)][_0x5bcf3d(0x1ec)]({'id':_0xc523fe['id'],'parts':_0x42caa7,'renderingStrategy':_0x5bcf3d(0x316)});}),this[_0x5bca80(0x232)](this[_0x5bca80(0x280)],_0x5bca80(0x2f3),(_0x3dc6c6,{replyId:_0xe84c72,partIndex:_0x27dab0})=>{const _0x53c027=_0x5bca80;this[_0x53c027(0x312)]?.[_0x53c027(0x239)]==_0xe84c72&&this[_0x53c027(0x312)]?.[_0x53c027(0x2bb)]==_0x27dab0&&this[_0x53c027(0x2ac)][_0x53c027(0x315)][_0x53c027(0x33a)](_0x22b587)[_0x53c027(0x2dc)]();const {reply:_0x1c6dd7}=this[_0x53c027(0x23b)](_0xe84c72);_0x1c6dd7[_0x53c027(0x26d)](_0x27dab0,_0x53c027(0x2c7)),this[_0x53c027(0x1fa)][_0x53c027(0x284)](_0x53c027(0x2f4));});}async[_0x2bebe0(0x32f)](){const _0x3efee2=_0x2bebe0;this[_0x3efee2(0x2ac)]instanceof _0x5c386c?this[_0x3efee2(0x25d)](this[_0x3efee2(0x2ac)]):this[_0x3efee2(0x232)](this[_0x3efee2(0x2ac)][_0x3efee2(0x246)],_0x3efee2(0x235),(_0x202ef2,_0x269c11)=>{const _0x2ed093=_0x3efee2;_0x269c11['on'](_0x2ed093(0x218),()=>{const _0x2ebe28=_0x2ed093;this[_0x2ebe28(0x25d)](_0x269c11);});}),await this[_0x3efee2(0x2f1)]();}[_0x2bebe0(0x2df)](_0x4aea4a){const _0x5eb6b4=_0x2bebe0,_0x125b69=_0x2b7d60(this[_0x5eb6b4(0x2ac)]);if(!_0x125b69[_0x5eb6b4(0x315)][_0x5eb6b4(0x262)](_0x5eb6b4(0x2f7)))throw new _0x467613(_0x5eb6b4(0x26a),null);const _0x7bf533=this[_0x5eb6b4(0x2ac)][_0x5eb6b4(0x315)][_0x5eb6b4(0x33a)](_0x5eb6b4(0x344)),{reply:_0x36e0a0,interaction:_0x47376a}=this[_0x5eb6b4(0x23b)](_0x4aea4a[_0x5eb6b4(0x239)]),_0x220e02=this[_0x5eb6b4(0x266)](_0x4aea4a[_0x5eb6b4(0x239)],_0x4aea4a[_0x5eb6b4(0x2bb)]),_0x5470bb=void 0x0!==_0x4aea4a[_0x5eb6b4(0x2bb)]?[_0x36e0a0[_0x5eb6b4(0x2a7)][_0x4aea4a[_0x5eb6b4(0x2bb)]]]:_0x36e0a0[_0x5eb6b4(0x2a7)][_0x5eb6b4(0x2c9)](_0x404d6b=>_0x5eb6b4(0x221)==_0x404d6b[_0x5eb6b4(0x2cd)]),_0x475d72=_0x5470bb[_0x5eb6b4(0x278)](_0x100fe8=>_0x36e0a0[_0x5eb6b4(0x2a7)][_0x5eb6b4(0x210)](_0x100fe8));if(!_0x220e02||_0x5eb6b4(0x340)==_0x220e02[_0x5eb6b4(0x259)][_0x5eb6b4(0x2a8)][_0x5eb6b4(0x292)])return void _0x475d72[_0x5eb6b4(0x328)](_0x5a5a32=>_0x36e0a0[_0x5eb6b4(0x26d)](_0x5a5a32,_0x5eb6b4(0x274)));_0x475d72[_0x5eb6b4(0x328)](_0x551df9=>_0x36e0a0[_0x5eb6b4(0x26d)](_0x551df9,_0x5eb6b4(0x2f5)));const _0x157fd1=_0x2f4b70({'editor':_0x125b69,'reply':_0x36e0a0,'interaction':_0x47376a,'groups':_0x5470bb,'transform':!0x0,'documentCompare':_0x7bf533,'documentCompareOptions':{'anchor':_0x5eb6b4(0x258),'markDeletions':!0x0}});let _0x568f92;_0x220e02&&this[_0x5eb6b4(0x254)](_0x220e02[_0x5eb6b4(0x259)]),_0x125b69[_0x5eb6b4(0x325)][_0x5eb6b4(0x2a0)](_0x59b530=>{const _0x566724=_0x5eb6b4;_0x568f92=_0x59b530[_0x566724(0x29b)],_0x125b69[_0x566724(0x315)][_0x566724(0x33a)](_0x566724(0x2bf))[_0x566724(0x253)](_0x157fd1),this[_0x566724(0x1fa)][_0x566724(0x284)](_0x566724(0x2f4));}),this[_0x5eb6b4(0x308)][_0x5eb6b4(0x1fe)](_0x568f92,{'interactionId':_0x47376a['id'],'replyId':_0x36e0a0['id'],'indexes':_0x475d72[_0x5eb6b4(0x2d0)]()}),this[_0x5eb6b4(0x293)](_0x36e0a0);}[_0x2bebe0(0x27e)](_0x3b6967){const _0x1a95ce=_0x2bebe0,_0x4472f7=_0x2b7d60(this[_0x1a95ce(0x2ac)]),_0x320512=this[_0x1a95ce(0x2ac)][_0x1a95ce(0x315)][_0x1a95ce(0x33a)](_0xf9b9a3),{reply:_0x19b0e1,interaction:_0x4f30fb}=this[_0x1a95ce(0x23b)](_0x3b6967[_0x1a95ce(0x239)]),_0x1eb3bf=this[_0x1a95ce(0x266)](_0x3b6967[_0x1a95ce(0x239)],_0x3b6967[_0x1a95ce(0x2bb)]),_0x28f387=void 0x0!==_0x3b6967[_0x1a95ce(0x2bb)]?[_0x19b0e1[_0x1a95ce(0x2a7)][_0x3b6967[_0x1a95ce(0x2bb)]]]:_0x19b0e1[_0x1a95ce(0x2a7)][_0x1a95ce(0x2c9)](_0x155ef6=>_0x1a95ce(0x221)==_0x155ef6[_0x1a95ce(0x2cd)]),_0x291a53=_0x28f387[_0x1a95ce(0x278)](_0x1c8720=>_0x19b0e1[_0x1a95ce(0x2a7)][_0x1a95ce(0x210)](_0x1c8720));if(!_0x1eb3bf||_0x1a95ce(0x340)==_0x1eb3bf[_0x1a95ce(0x259)][_0x1a95ce(0x2a8)][_0x1a95ce(0x292)])return void _0x291a53[_0x1a95ce(0x328)](_0x35d013=>_0x19b0e1[_0x1a95ce(0x26d)](_0x35d013,_0x1a95ce(0x274)));_0x291a53[_0x1a95ce(0x328)](_0x2601f5=>_0x19b0e1[_0x1a95ce(0x26d)](_0x2601f5,_0x1a95ce(0x2f5)));const _0x493be0=_0x2f4b70({'editor':_0x4472f7,'reply':_0x19b0e1,'interaction':_0x4f30fb,'groups':_0x28f387,'transform':!0x0,'documentCompare':_0x320512,'documentCompareOptions':{'anchor':_0x1a95ce(0x258),'markDeletions':!0x1}});let _0xb05391;_0x1eb3bf&&this[_0x1a95ce(0x254)](_0x1eb3bf[_0x1a95ce(0x259)]),_0x4472f7[_0x1a95ce(0x325)][_0x1a95ce(0x2a0)](_0xa60dee=>{const _0x24187f=_0x1a95ce;_0xb05391=_0xa60dee[_0x24187f(0x29b)];for(const _0x2b1110 of _0x493be0)_0x2b1110[_0x24187f(0x279)]=_0x4472f7[_0x24187f(0x325)][_0x24187f(0x21b)][_0x24187f(0x225)],_0x4bcf55(_0x4472f7,_0x2b1110),_0xa60dee[_0x24187f(0x29b)][_0x24187f(0x28e)](_0x2b1110),_0x4472f7[_0x24187f(0x325)][_0x24187f(0x2ad)](_0x2b1110);}),this[_0x1a95ce(0x308)][_0x1a95ce(0x1fe)](_0xb05391,{'interactionId':_0x4f30fb['id'],'replyId':_0x19b0e1['id'],'indexes':_0x291a53[_0x1a95ce(0x2d0)]()}),this[_0x1a95ce(0x293)](_0x19b0e1);}[_0x2bebe0(0x1ee)](_0x91d214,_0x3ab1ae){const _0x3415a9=_0x2bebe0,_0x53e93d=_0x2b7d60(this[_0x3415a9(0x2ac)]),_0x4951cf=this[_0x3415a9(0x266)](_0x91d214,_0x3ab1ae),_0x1a37d3=this[_0x3415a9(0x2ac)][_0x3415a9(0x315)][_0x3415a9(0x33a)](_0x22b587);if(!_0x4951cf)return void _0x1a37d3[_0x3415a9(0x2dc)]();const {range:_0x2bf425,currentIndex:_0x38ae17}=_0x4951cf;if(_0x3415a9(0x340)==_0x2bf425[_0x3415a9(0x2a8)][_0x3415a9(0x292)]){const {reply:_0xd6700e}=this[_0x3415a9(0x23b)](_0x91d214);return _0xd6700e[_0x3415a9(0x26d)](_0x38ae17,_0x3415a9(0x274)),void _0x1a37d3[_0x3415a9(0x2dc)]();}if(this[_0x3415a9(0x312)]?.[_0x3415a9(0x239)]==_0x91d214&&this[_0x3415a9(0x312)]?.[_0x3415a9(0x2bb)]==_0x38ae17)return;this[_0x3415a9(0x31d)](_0x1a37d3),this[_0x3415a9(0x312)]={'replyId':_0x91d214,'partIndex':_0x38ae17};let _0x461fbd=_0x53e93d[_0x3415a9(0x311)][_0x3415a9(0x33a)](_0x3415a9(0x2de))||[..._0x1b7888];_0x53e93d[_0x3415a9(0x315)][_0x3415a9(0x262)](_0x3415a9(0x2f7))||(_0x461fbd=_0x461fbd[_0x3415a9(0x2c9)](_0xada24c=>_0x3415a9(0x1f4)!=_0xada24c));const _0x4b6825=new _0x33fc6e(_0x53e93d[_0x3415a9(0x214)],{'showDiff':this[_0x3415a9(0x268)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x3415a9(0x22d)},'hideHeader':!0x0,'availableActions':_0x461fbd});this[_0x3415a9(0x31d)](_0x4b6825);const {reply:_0x1eda2e}=this[_0x3415a9(0x23b)](_0x91d214),_0x4080b8=_0x1eda2e[_0x3415a9(0x256)]({'showDiff':this[_0x3415a9(0x268)]})[_0x3415a9(0x2c9)](_0x236692=>_0x236692[_0x3415a9(0x314)]),_0x27168b=_0x4080b8[_0x3415a9(0x200)](_0x1a6133=>_0x1a6133[_0x3415a9(0x21e)]==_0x38ae17);if(-0x1==_0x27168b)return;const _0x16e168=_0x4080b8[_0x27168b],_0x1caefe=_0x4080b8['at']((_0x27168b-0x1)%_0x4080b8[_0x3415a9(0x29a)])?.[_0x3415a9(0x21e)],_0x5146d3=_0x4080b8['at']((_0x27168b+0x1)%_0x4080b8[_0x3415a9(0x29a)])?.[_0x3415a9(0x21e)];_0x4b6825[_0x3415a9(0x1f9)]({'parts':[_0x16e168],'renderingStrategy':_0x3415a9(0x316)});const _0x1ad306=_0x38ae17!==_0x1caefe;this[_0x3415a9(0x254)](_0x2bf425,!0x0),_0x1a37d3[_0x3415a9(0x1e0)]({'index':_0x38ae17,'title':_0x48e9f1(this[_0x3415a9(0x2ac)][_0x3415a9(0x214)],_0x3415a9(0x1e4),(_0x27168b+0x1)[_0x3415a9(0x30e)]()),'icon':_0x16cb59,'mainView':_0x4b6825,'showRotator':_0x1ad306,'showApplyButton':!0x0,'showSuggestButton':_0x53e93d[_0x3415a9(0x315)][_0x3415a9(0x262)](_0x3415a9(0x2f7)),'ranges':[_0x2bf425]}),this[_0x3415a9(0x280)][_0x3415a9(0x215)](_0x91d214,_0x38ae17),this[_0x3415a9(0x232)](_0x4b6825,_0x3415a9(0x22f),(_0x3d540e,{showDiff:_0x2120eb})=>{const _0x53c10a=_0x3415a9;this[_0x53c10a(0x268)]=_0x2120eb;const {reply:_0x4f41f8}=this[_0x53c10a(0x23b)](_0x91d214),_0x1fcd02=_0x4f41f8[_0x53c10a(0x256)]({'showDiff':_0x2120eb,'groupIndex':_0x38ae17});_0x4b6825[_0x53c10a(0x1f9)]({'parts':_0x1fcd02,'renderingStrategy':_0x53c10a(0x316)});}),this[_0x3415a9(0x232)](_0x1a37d3,_0x3415a9(0x303),()=>{const _0x378bd1=_0x3415a9;this[_0x378bd1(0x27e)]({'replyId':_0x91d214,'partIndex':_0x38ae17}),_0x1ad306?this[_0x378bd1(0x1ee)](_0x91d214,_0x5146d3):_0x1a37d3[_0x378bd1(0x2dc)]();}),this[_0x3415a9(0x232)](_0x1a37d3,_0x3415a9(0x1f4),()=>{const _0x8d9dea=_0x3415a9;this[_0x8d9dea(0x2df)]({'replyId':_0x91d214,'partIndex':_0x38ae17}),_0x1ad306?this[_0x8d9dea(0x1ee)](_0x91d214,_0x5146d3):_0x1a37d3[_0x8d9dea(0x2dc)]();}),_0x1ad306&&(this[_0x3415a9(0x232)](_0x1a37d3,_0x3415a9(0x2d6),()=>{const _0x1b077c=_0x3415a9;this[_0x1b077c(0x1ee)](_0x91d214,_0x5146d3);}),this[_0x3415a9(0x232)](_0x1a37d3,_0x3415a9(0x2d8),()=>{const _0x4622ae=_0x3415a9;this[_0x4622ae(0x1ee)](_0x91d214,_0x1caefe);})),this[_0x3415a9(0x232)](_0x1a37d3,_0x3415a9(0x25c),()=>{const _0xec71a9=_0x3415a9;this[_0xec71a9(0x31d)](_0x1a37d3),this[_0xec71a9(0x31d)](_0x4b6825),this[_0xec71a9(0x312)]=null;});}[_0x2bebe0(0x266)](_0x5cf1a7,_0x4280c0){const _0x542bd1=_0x2bebe0,_0x4f3190=_0x2b7d60(this[_0x542bd1(0x2ac)]),{reply:_0x12830a,interaction:_0x328765}=this[_0x542bd1(0x23b)](_0x5cf1a7),_0x8fdd65=_0x12830a[_0x542bd1(0x2a7)][_0x542bd1(0x2c9)](_0x23362f=>_0x542bd1(0x221)==_0x23362f[_0x542bd1(0x2cd)]),_0x186037=_0x8fdd65[_0x542bd1(0x278)](_0x44cbd2=>_0x12830a[_0x542bd1(0x2a7)][_0x542bd1(0x210)](_0x44cbd2));void 0x0===_0x4280c0&&(_0x4280c0=_0x186037[0x0]);const _0x2bdf98=_0x186037[_0x542bd1(0x210)](_0x4280c0);if(-0x1==_0x2bdf98)return null;const _0x351c2f=_0x8fdd65[_0x2bdf98],_0x4b9636=new _0x4b6cd4([]),_0x31470e=new _0x4b6cd4([]);for(const _0x65679a of _0x351c2f[_0x542bd1(0x20a)])if(_0x542bd1(0x255)!=_0x65679a[_0x542bd1(0x2dd)]&&_0x31470e[_0x542bd1(0x1e6)][_0x542bd1(0x23c)](_0x65679a[_0x542bd1(0x2a3)][_0x542bd1(0x2f6)](!0x0)),_0x542bd1(0x2e2)!=_0x65679a[_0x542bd1(0x2dd)]){const _0x7c1b5a=_0x552680(_0x23163e=>_0x1879c2(_0x23163e,_0x542bd1(0x27d))==_0x65679a['id'],_0x12830a[_0x542bd1(0x2ce)],!0x0);_0x4b9636[_0x542bd1(0x1e6)][_0x542bd1(0x23c)](_0x7c1b5a[_0x542bd1(0x2f6)](!0x0));}if(0x0==_0x4b9636[_0x542bd1(0x1e6)][_0x542bd1(0x29a)]){if(_0x351c2f[_0x542bd1(0x20a)][0x0][_0x542bd1(0x305)]){const _0x338493=_0x1deead(_0x542bd1(0x27d),_0x351c2f[_0x542bd1(0x20a)][0x0][_0x542bd1(0x305)],_0x12830a[_0x542bd1(0x2ce)]);_0x4b9636[_0x542bd1(0x1e6)][_0x542bd1(0x321)](_0x338493[_0x542bd1(0x2f6)](!0x0)),_0x31470e[_0x542bd1(0x1e6)][_0x542bd1(0x321)](_0x338493[_0x542bd1(0x2f6)](!0x0)),_0x338493[_0x542bd1(0x287)]&&(_0x4b9636[_0x542bd1(0x1e6)][_0x542bd1(0x23c)](_0x338493[_0x542bd1(0x287)][_0x542bd1(0x2f6)](!0x0)),_0x31470e[_0x542bd1(0x1e6)][_0x542bd1(0x23c)](_0x338493[_0x542bd1(0x287)][_0x542bd1(0x2f6)](!0x0)));}else{const _0x27b65d=_0x12830a[_0x542bd1(0x2ce)][_0x542bd1(0x1e6)][0x0];if(!_0x27b65d)return null;_0x4b9636[_0x542bd1(0x1e6)][_0x542bd1(0x23c)](_0x27b65d[_0x542bd1(0x2f6)](!0x0)),_0x31470e[_0x542bd1(0x1e6)][_0x542bd1(0x23c)](_0x27b65d[_0x542bd1(0x2f6)](!0x0));}}const _0xc13eca=_0x328765[_0x542bd1(0x32e)](),_0xb95629=_0x4f3190[_0x542bd1(0x338)][_0x542bd1(0x275)](_0xc13eca[_0x542bd1(0x1f0)]),_0x1d8515=_0x5cf332(_0x4b9636),_0x4c6cc1=_0x4f3190[_0x542bd1(0x338)][_0x542bd1(0x275)](_0x1d8515),_0x3a9e30=_0x4f3190[_0x542bd1(0x338)][_0x542bd1(0x275)](_0x1d8515),_0x5750f0=_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x2a9)](_0x4c6cc1,0x0),_0x6080cb=_0x5cf332(_0x31470e),_0x254f3d={'anchor':_0x5750f0,'markDeletions':!0x1},_0x249291=_0x4f3190[_0x542bd1(0x315)][_0x542bd1(0x33a)](_0xf9b9a3)[_0x542bd1(0x23d)](_0x1d8515,_0x6080cb,_0x254f3d)[_0x542bd1(0x238)]();if(!_0x249291[_0x542bd1(0x29a)])return null;_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x2a0)](_0x5a0f2a=>{const _0x4840de=_0x542bd1;for(const _0x463838 of _0x249291)if(_0x4840de(0x269)==_0x463838[_0x4840de(0x2dd)]){const _0x41d4c7=_0x463838[_0x4840de(0x33f)],_0x2f84c0=_0x463838[_0x4840de(0x345)],_0x172ba3=new _0x5b77b1(_0x41d4c7,_0x2f84c0);_0x5a0f2a[_0x4840de(0x29b)][_0x4840de(0x28e)](_0x172ba3),_0x4f3190[_0x4840de(0x325)][_0x4840de(0x2ad)](_0x172ba3);}else _0x4840de(0x23e)!==_0x463838[_0x4840de(0x2dd)]&&(_0x463838[_0x4840de(0x279)]=null,_0x463838[_0x4840de(0x2f0)]=!0x1,_0x5a0f2a[_0x4840de(0x29b)][_0x4840de(0x28e)](_0x463838),_0x4f3190[_0x4840de(0x325)][_0x4840de(0x2ad)](_0x463838));});const _0x2a1baa=_0x38fec4(_0x4f3190,_0x249291,_0x4c6cc1);_0x4fc5ba(_0x4f3190[_0x542bd1(0x325)],_0x2a1baa);const _0x26d7c8=_0x2a1baa[_0x542bd1(0x2e1)]()[_0x542bd1(0x2c0)][_0x542bd1(0x281)][_0x542bd1(0x2d0)](),_0x1bffc5=_0x2a1baa[_0x542bd1(0x2e1)]()[_0x542bd1(0x33c)][_0x542bd1(0x281)][_0x542bd1(0x2d0)](),_0x5d9850=[];let _0x2a418a=_0x4c6cc1,_0x3340bb=_0x3a9e30;for(let _0x4aabe7=0x0;_0x4aabe7<_0x1bffc5[_0x542bd1(0x29a)];_0x4aabe7++){const _0x2044bb=_0x2a418a[_0x542bd1(0x243)]-_0x1bffc5[_0x4aabe7];_0x5d9850[_0x4aabe7]=_0x3340bb[_0x542bd1(0x243)]-_0x2044bb,_0x2a418a=_0x2a418a[_0x542bd1(0x297)](_0x1bffc5[_0x4aabe7]),_0x3340bb=_0x3340bb[_0x542bd1(0x297)](_0x5d9850[_0x4aabe7]);}const _0x2dd431=_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x2fd)](_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x22a)](_0x3a9e30,_0x26d7c8),_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x22a)](_0x3a9e30,_0x5d9850)),_0x3a3360=_0x3a9e30[_0x542bd1(0x2ca)](0x0)[_0x542bd1(0x299)](_0x193346),_0x10397f=Array[_0x542bd1(0x1e1)](_0xb95629[_0x542bd1(0x29c)]())[_0x542bd1(0x270)](_0x27d421=>_0x27d421[_0x542bd1(0x299)](_0x193346)==_0x3a3360)[_0x542bd1(0x1db)](),_0xc4a352=_0x2dd431[_0x542bd1(0x2c0)][_0x542bd1(0x281)][_0x542bd1(0x2d0)](),_0x22c1ee=_0x2dd431[_0x542bd1(0x33c)][_0x542bd1(0x281)][_0x542bd1(0x2d0)]();_0xc4a352[0x0]=_0x10397f[0x0]+_0xc4a352[0x0],_0x22c1ee[0x0]=_0x10397f[0x0]+_0x22c1ee[0x0];let _0x1102bb=_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x2fd)](_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x22a)](_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x21b)][_0x542bd1(0x2d2)](),_0xc4a352),_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x22a)](_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x21b)][_0x542bd1(0x2d2)](),_0x22c1ee));const _0x3ecc4a=_0x4f3190[_0x542bd1(0x325)][_0x542bd1(0x21b)][_0x542bd1(0x31e)][_0x542bd1(0x238)](_0xc13eca[_0x542bd1(0x225)]);for(const _0x277abd of _0x3ecc4a)_0x1102bb=_0x2f8406[_0x542bd1(0x224)](_0x1102bb[_0x542bd1(0x2da)](_0x277abd));return{'range':_0x1102bb,'currentIndex':_0x4280c0};}[_0x2bebe0(0x25d)](_0x1fac8c){const _0x4c0b5d=_0x2bebe0;if(!_0x1fac8c[_0x4c0b5d(0x315)][_0x4c0b5d(0x262)](_0x4c0b5d(0x25b)))return;const _0x30fff7=_0x1fac8c[_0x4c0b5d(0x1f5)][_0x4c0b5d(0x33a)](_0x4c0b5d(0x21d)),_0xbdadc0=_0x1fac8c[_0x4c0b5d(0x1f5)][_0x4c0b5d(0x33a)](_0x4c0b5d(0x291));this[_0x4c0b5d(0x232)](_0x30fff7,_0x4c0b5d(0x339),(_0x1f8bf2,_0x4bc94c,_0x301eb2)=>{const _0x20181f=_0x4c0b5d,_0x3547e9=this[_0x20181f(0x308)][_0x20181f(0x33a)](_0x4bc94c);if(!_0x3547e9)return;const _0x55e5b2=this[_0x20181f(0x294)][_0x20181f(0x283)](_0x3547e9[_0x20181f(0x2bd)])[_0x20181f(0x2cf)](_0x3547e9[_0x20181f(0x239)]);_0x3547e9[_0x20181f(0x251)][_0x20181f(0x328)](_0x35d3bb=>_0x55e5b2[_0x20181f(0x26d)](_0x35d3bb,_0x20181f(0x221))),this[_0x20181f(0x308)][_0x20181f(0x211)](_0x4bc94c),this[_0x20181f(0x308)][_0x20181f(0x1fe)](_0x301eb2,_0x3547e9);}),this[_0x4c0b5d(0x232)](_0xbdadc0,_0x4c0b5d(0x339),(_0x282186,_0x26887f,_0x5b1d90)=>{const _0x3b9a10=_0x4c0b5d,_0x4de195=this[_0x3b9a10(0x308)][_0x3b9a10(0x33a)](_0x26887f);if(!_0x4de195)return;const _0x2130c8=this[_0x3b9a10(0x294)][_0x3b9a10(0x283)](_0x4de195[_0x3b9a10(0x2bd)])[_0x3b9a10(0x2cf)](_0x4de195[_0x3b9a10(0x239)]);_0x4de195[_0x3b9a10(0x251)][_0x3b9a10(0x328)](_0x40df1e=>_0x2130c8[_0x3b9a10(0x26d)](_0x40df1e,_0x3b9a10(0x2f5))),this[_0x3b9a10(0x308)][_0x3b9a10(0x211)](_0x26887f),this[_0x3b9a10(0x308)][_0x3b9a10(0x1fe)](_0x5b1d90,_0x4de195);});}async[_0x2bebe0(0x1e2)](_0x498b6c){const _0x55349d=_0x2bebe0;this[_0x55349d(0x2ac)][_0x55349d(0x315)][_0x55349d(0x33a)](_0x22b587)[_0x55349d(0x2dc)](),this[_0x55349d(0x280)][_0x55349d(0x1da)](_0x55349d(0x316)),this[_0x55349d(0x280)][_0x55349d(0x245)](!0x0),await this[_0x55349d(0x2ba)]();try{await this[_0x55349d(0x2b2)][_0x55349d(0x20e)](_0x498b6c)[_0x55349d(0x33b)](),await this[_0x55349d(0x2f1)](_0x498b6c),this[_0x55349d(0x217)]('\x20');const {sessionId:_0x5f4140}=this[_0x55349d(0x1fa)][_0x55349d(0x21c)]();await this[_0x55349d(0x294)][_0x55349d(0x332)](_0x498b6c,_0x5f4140),this[_0x55349d(0x294)][_0x55349d(0x2fc)]()&&this[_0x55349d(0x294)][_0x55349d(0x2c8)](_0x48e9f1(this[_0x55349d(0x2ac)][_0x55349d(0x214)],_0x55349d(0x222)));}catch(_0x5841ed){this[_0x55349d(0x280)][_0x55349d(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x55349d(0x2ac)][_0x55349d(0x214)],_0x55349d(0x265)),'id':_0x498b6c}),this[_0x55349d(0x2d7)](new _0x467613(_0x55349d(0x26f),this,{'error':_0x5841ed}));}finally{this[_0x55349d(0x2ac)][_0x55349d(0x315)][_0x55349d(0x33a)](_0x47d958)[_0x55349d(0x1e7)][_0x55349d(0x2ae)](_0x55349d(0x22b)),this[_0x55349d(0x280)][_0x55349d(0x30b)](),this[_0x55349d(0x280)][_0x55349d(0x1da)](_0x55349d(0x2e8)),this[_0x55349d(0x280)][_0x55349d(0x245)](!0x1);}}[_0x2bebe0(0x326)](_0x524017){const _0x488a50=_0x2bebe0;this[_0x488a50(0x294)]['id']===_0x524017&&this[_0x488a50(0x2f1)]();}async[_0x2bebe0(0x23f)](){const _0x1bf4b3=_0x2bebe0,_0x465c5f=this[_0x1bf4b3(0x1fa)][_0x1bf4b3(0x271)]();this[_0x1bf4b3(0x294)]?.[_0x1bf4b3(0x343)](_0x465c5f),this[_0x1bf4b3(0x294)]?.[_0x1bf4b3(0x2c8)](_0x48e9f1(this[_0x1bf4b3(0x2ac)][_0x1bf4b3(0x214)],_0x1bf4b3(0x222)));}[_0x2bebe0(0x307)](){const _0xacef4b=_0x2bebe0;this[_0xacef4b(0x294)]?.[_0xacef4b(0x26c)]();}[_0x2bebe0(0x249)](){const _0x4d611f=_0x2bebe0;this[_0x4d611f(0x280)][_0x4d611f(0x249)]();}async[_0x2bebe0(0x2b1)](){const _0x576d15=_0x2bebe0;await this[_0x576d15(0x2f1)]();}async[_0x2bebe0(0x1f6)]({message:_0x2e5fe6,quickActionData:_0x284483}){const _0x31ca0b=_0x2bebe0;await this[_0x31ca0b(0x20d)]({'userMessage':_0x2e5fe6,'quickActionData':_0x284483});}[_0x2bebe0(0x230)](){const _0x11ac47=_0x2bebe0,_0x517092=this[_0x11ac47(0x2ac)][_0x11ac47(0x311)][_0x11ac47(0x33a)](_0x11ac47(0x24d));if(!_0x517092)throw new _0x467613(_0x11ac47(0x2a5),this);return _0x517092;}async[_0x2bebe0(0x2f1)](_0x2af3f8){const _0x3ad3ea=_0x2bebe0;try{this[_0x3ad3ea(0x280)][_0x3ad3ea(0x1f1)](),await this[_0x3ad3ea(0x304)](_0x2af3f8);}catch(_0x18b8d5){_0x533e07(_0x3ad3ea(0x219),_0x18b8d5),this[_0x3ad3ea(0x294)]=void 0x0,this[_0x3ad3ea(0x280)][_0x3ad3ea(0x2d4)]();}}async[_0x2bebe0(0x304)](_0x62d1e2){const _0x13802d=_0x2bebe0,_0x1c4a1b=this[_0x13802d(0x2ac)][_0x13802d(0x315)][_0x13802d(0x33a)](_0x22b587);let _0x210e55;_0x1c4a1b[_0x13802d(0x1ef)]&&_0x1c4a1b[_0x13802d(0x2dc)](),_0x62d1e2||!this[_0x13802d(0x294)]?_0x210e55=this[_0x13802d(0x2ac)][_0x13802d(0x311)][_0x13802d(0x33a)](_0x13802d(0x302)):this[_0x13802d(0x280)][_0x13802d(0x1f3)]&&(_0x210e55=this[_0x13802d(0x294)][_0x13802d(0x333)]['id']),await this[_0x13802d(0x2ba)]();const _0xb3dc0e=this[_0x13802d(0x230)](),_0xc03ed=_0x62d1e2||_0x5f3022();this[_0x13802d(0x294)]=new _0x303e02({'connector':this[_0x13802d(0x2b2)],'chatModels':this[_0x13802d(0x27a)],'selectedModelId':_0x210e55,'conversationId':_0xc03ed,'group':_0xb3dc0e,'getEditor':()=>_0x2b7d60(this[_0x13802d(0x2ac)])}),this[_0x13802d(0x294)]['on'](_0x13802d(0x25f),(_0x4e3633,_0xaa8d82)=>{const _0x27ce9b=_0x13802d;this[_0x27ce9b(0x280)][_0x27ce9b(0x2ef)](_0xaa8d82),this[_0x27ce9b(0x280)][_0x27ce9b(0x337)](),this[_0x27ce9b(0x280)][_0x27ce9b(0x27c)](),this[_0x27ce9b(0x280)][_0x27ce9b(0x30c)](),_0x62d1e2||(this[_0x27ce9b(0x280)][_0x27ce9b(0x2fa)](),this[_0x27ce9b(0x294)]?.[_0x27ce9b(0x2c8)](_0x48e9f1(this[_0x27ce9b(0x2ac)][_0x27ce9b(0x214)],_0x27ce9b(0x222))));}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2e6),(_0x399f55,_0x29146b)=>{const _0x1aef3c=_0x13802d;this[_0x1aef3c(0x280)][_0x1aef3c(0x1fb)](_0x29146b[_0x1aef3c(0x248)]);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x273),(_0x2e56e7,_0x556a88)=>{const _0x1d5f99=_0x13802d;this[_0x1d5f99(0x280)][_0x1d5f99(0x2ea)](_0x556a88);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x24a),()=>{const _0x2692a6=_0x13802d;this[_0x2692a6(0x280)][_0x2692a6(0x32d)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2c3),()=>{const _0x411c0d=_0x13802d;this[_0x411c0d(0x280)][_0x411c0d(0x32d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x13802d(0x294)]['on'](_0x13802d(0x29e),(_0x3d4c8f,_0x1579df)=>{const _0x37149f=_0x13802d;this[_0x37149f(0x280)][_0x37149f(0x2f9)](_0x1579df,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2e4),(_0x5646f7,_0x46d862)=>{const _0x3a8ece=_0x13802d;this[_0x3a8ece(0x280)][_0x3a8ece(0x2f9)](_0x46d862,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x13802d(0x294)]['on'](_0x13802d(0x310),()=>{const _0x25ba01=_0x13802d;this[_0x25ba01(0x280)][_0x25ba01(0x31a)]();}),this[_0x13802d(0x294)]['on'](_0x13802d(0x324),async()=>{const _0x335d1c=_0x13802d;await this[_0x335d1c(0x280)][_0x335d1c(0x23a)]();}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2b5),(_0x4f26ae,_0x3eee1e)=>{const _0x1fb4bd=_0x13802d;this[_0x1fb4bd(0x280)][_0x1fb4bd(0x2bc)](_0x3eee1e['id']);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2e5),(_0x197318,_0x58f128,_0x3125f3)=>{const _0x3136aa=_0x13802d;this[_0x3136aa(0x217)](_0x58f128,_0x3125f3);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x257),(_0x420771,_0x24736e)=>{const _0x587a68=_0x13802d;_0x587a68(0x26e)===_0x24736e[_0x587a68(0x2dd)]?this[_0x587a68(0x280)][_0x587a68(0x276)](_0x24736e):this[_0x587a68(0x280)][_0x587a68(0x2be)](_0x24736e);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x31b),async(_0x3c07ee,_0x4629eb)=>{const _0x4f40df=_0x13802d;await this[_0x4f40df(0x229)]({'reply':_0x4629eb});}),this[_0x13802d(0x294)]['on'](_0x13802d(0x286),(_0x5cebe1,{reply:_0x249a18,index:_0x4fbf96,state:_0x318dbb})=>{const _0x308ae8=_0x13802d;this[_0x308ae8(0x280)][_0x308ae8(0x1ff)]({'id':_0x249a18['id'],'index':_0x4fbf96,'state':_0x318dbb});}),this[_0x13802d(0x294)]['on'](_0x13802d(0x1ea),(_0x9aca1,_0xfd6813)=>{const _0x246971=_0x13802d;if(this[_0x246971(0x280)][_0x246971(0x295)](_0xfd6813[_0x246971(0x209)],_0xfd6813[_0x246971(0x296)]),_0x246971(0x2b4)===_0xfd6813[_0x246971(0x209)][_0x246971(0x2dd)]){const _0x1a46f4=[..._0x2b7d60(this[_0x246971(0x2ac)])[_0x246971(0x325)][_0x246971(0x21b)][_0x246971(0x2b4)][_0x246971(0x247)]()];this[_0x246971(0x1fa)][_0x246971(0x2d1)](_0x1a46f4,_0x246971(0x2ab)+this[_0x246971(0x294)]?.['id']);}}),this[_0x13802d(0x294)]['on'](_0x13802d(0x24b),(_0x4b5146,_0x5c7414)=>{const _0x2d961f=_0x13802d;this[_0x2d961f(0x280)][_0x2d961f(0x240)](_0x5c7414[_0x2d961f(0x2cc)]),_0x2d961f(0x24e)==_0x5c7414[_0x2d961f(0x2cc)]&&this[_0x2d961f(0x307)](),_0x2d961f(0x2b4)===_0x5c7414[_0x2d961f(0x2dd)]&&this[_0x2d961f(0x1fa)][_0x2d961f(0x284)](_0x2d961f(0x2ab)+this[_0x2d961f(0x294)]?.['id']);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2a1),(_0x5e024f,_0x9f54b7)=>{const _0x23acf1=_0x13802d;this[_0x23acf1(0x280)][_0x23acf1(0x263)](_0x9f54b7[_0x23acf1(0x209)][_0x23acf1(0x2cc)],_0x9f54b7[_0x23acf1(0x296)]);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2e7),(_0x4248eb,_0x465a4c)=>{const _0xd4fc92=_0x13802d;this[_0xd4fc92(0x280)][_0xd4fc92(0x207)](_0x465a4c[_0xd4fc92(0x334)]);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x30d),(_0x14b715,_0x422100)=>{const _0xf282d0=_0x13802d;this[_0xf282d0(0x280)][_0xf282d0(0x2cb)](_0x422100[_0xf282d0(0x2e9)]);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x2ed),(_0x19c34d,_0x36f1fc)=>{const _0x2c71b0=_0x13802d;this[_0x2c71b0(0x280)][_0x2c71b0(0x309)](_0x36f1fc[_0x2c71b0(0x313)],_0x36f1fc[_0x2c71b0(0x1f8)],_0x36f1fc[_0x2c71b0(0x260)],_0x36f1fc[_0x2c71b0(0x27b)]);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x322),(_0x5bf621,_0x3bdf9b)=>{const _0x3a6e9f=_0x13802d;this[_0x3a6e9f(0x280)][_0x3a6e9f(0x24c)](_0x3bdf9b[_0x3a6e9f(0x313)],_0x3bdf9b[_0x3a6e9f(0x1de)],_0x3bdf9b[_0x3a6e9f(0x204)]);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x1e8),(_0x32c273,_0x4c90eb)=>{const _0x33af46=_0x13802d;this[_0x33af46(0x280)][_0x33af46(0x252)](_0x4c90eb);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x30f),(_0x1246fa,_0x3d3062)=>{const _0x9aebb6=_0x13802d;this[_0x9aebb6(0x280)][_0x9aebb6(0x285)](_0x3d3062[_0x9aebb6(0x333)],_0x3d3062[_0x9aebb6(0x2b6)]);}),this[_0x13802d(0x294)]['on'](_0x13802d(0x202),(_0x2a4e74,{error:_0x241d04,interactionId:_0x1641c1,fileName:_0x5f3d2d,url:_0x3971a1,sourceId:_0x3fee28,sourceLabel:_0x59768d})=>{const _0x3c8035=_0x13802d,_0x6adfe8=_0x1641c1?_0x1641c1+':'+_0x5f3022():_0x5f3022();_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x27f))?this[_0x3c8035(0x280)][_0x3c8035(0x2a6)]({'staticMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x1df)),'id':_0x6adfe8}):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x28f))||_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x219))?(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x319)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x267))?this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x28c),_0x5f3d2d),'id':_0x6adfe8}):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x2a4))?this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x2aa),_0x3971a1),'id':_0x6adfe8}):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x32a))?this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x233)),'id':_0x6adfe8}):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x28d))?this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x2eb)),'id':_0x6adfe8}):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x1dd))?(_0x3fee28&&this[_0x3c8035(0x280)][_0x3c8035(0x22c)](_0x3fee28),this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x213),_0x59768d||_0x3c8035(0x1f8)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x228))?(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x33d)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x236))?(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x28a)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x231))?(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x301)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x1eb))?(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x216)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x2e0))?(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x318)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):_0x241d04[_0x3c8035(0x277)][_0x3c8035(0x22e)](_0x3c8035(0x21a))?(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x2b8)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04)):(this[_0x3c8035(0x280)][_0x3c8035(0x2d3)]({'errorMessage':_0x48e9f1(this[_0x3c8035(0x2ac)][_0x3c8035(0x214)],_0x3c8035(0x1fc)),'id':_0x6adfe8}),this[_0x3c8035(0x2d7)](_0x241d04));}),await this[_0x13802d(0x294)][_0x13802d(0x348)](this[_0x13802d(0x2ac)][_0x13802d(0x311)][_0x13802d(0x33a)](_0x13802d(0x1dc))),_0x62d1e2||await this[_0x13802d(0x294)][_0x13802d(0x2c0)]();}async[_0x2bebe0(0x20d)]({userMessage:_0x6d2500,quickActionData:_0x1e9b39}){const _0x129501=_0x2bebe0;if(!this[_0x129501(0x294)])throw new _0x467613(_0x129501(0x212));this[_0x129501(0x294)][_0x129501(0x342)]()&&await this[_0x129501(0x294)][_0x129501(0x336)](this[_0x129501(0x1fa)][_0x129501(0x21c)]()),this[_0x129501(0x294)]['id']&&this[_0x129501(0x294)][_0x129501(0x1e9)]&&await this[_0x129501(0x294)][_0x129501(0x2ee)]({'userMessage':_0x6d2500,'quickActionData':_0x1e9b39}),this[_0x129501(0x205)]();}[_0x2bebe0(0x205)](){const _0x54492b=_0x2bebe0,_0x20e647=_0x2b7d60(this[_0x54492b(0x2ac)])[_0x54492b(0x325)],_0x571b62=Array[_0x54492b(0x1e1)](_0x20e647[_0x54492b(0x2b0)][_0x54492b(0x1e3)](_0x3b7459));_0x20e647[_0x54492b(0x2a0)](_0x4474c8=>{const _0x58c734=_0x54492b;_0x571b62[_0x58c734(0x328)](_0x375beb=>_0x4474c8[_0x58c734(0x330)](_0x375beb));});}[_0x2bebe0(0x329)](){const _0x57c277=_0x2bebe0;console[_0x57c277(0x289)](_0x57c277(0x272));}[_0x2bebe0(0x335)](_0x5b8df9){const _0x1dbd1a=_0x2bebe0;this[_0x1dbd1a(0x280)][_0x1dbd1a(0x226)](_0x5b8df9);}[_0x2bebe0(0x2d7)](_0x438125){const _0x2563e3=_0x2bebe0;_0x533e07(_0x438125[_0x2563e3(0x277)]);}[_0x2bebe0(0x1fd)](_0x2f1c7d){const _0xf2df7=_0x2bebe0;this[_0xf2df7(0x294)]?.[_0xf2df7(0x298)](_0x2f1c7d);}[_0x2bebe0(0x2c4)](){const _0x2b4da4=_0x2bebe0;this[_0x2b4da4(0x294)]?.[_0x2b4da4(0x341)]();}[_0x2bebe0(0x20b)](){const _0x4a64d4=_0x2bebe0;this[_0x4a64d4(0x294)]?.[_0x4a64d4(0x2c5)]();}[_0x2bebe0(0x23b)](_0x32033f){const _0x58020e=_0x2bebe0,[_0x710cf,_0x443f2e]=_0x32033f[_0x58020e(0x327)](':'),_0x36a6bc=this[_0x58020e(0x294)][_0x58020e(0x283)](_0x710cf),_0xd85726=_0x36a6bc[_0x58020e(0x2cf)](_0x443f2e);return{'interaction':_0x36a6bc,'reply':_0xd85726};}[_0x2bebe0(0x254)](_0x58cf66,_0x2bcc2a=!0x1){const _0x4c88d3=_0x2bebe0,_0x43aa6a=_0x2b7d60(this[_0x4c88d3(0x2ac)]),_0x32dd32={'target':_0x43aa6a[_0x4c88d3(0x234)][_0x4c88d3(0x1e7)][_0x4c88d3(0x261)][_0x4c88d3(0x33e)](_0x43aa6a[_0x4c88d3(0x234)][_0x4c88d3(0x2db)][_0x4c88d3(0x288)](_0x58cf66)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2bcc2a};_0x2bcc2a&&(_0x32dd32[_0x4c88d3(0x32b)]=!0x0),_0x12e565(_0x32dd32);}[_0x2bebe0(0x217)](_0x3a7434,_0x59c2e6=!0x1){const _0xd2fc3e=_0x2bebe0;this[_0xd2fc3e(0x280)][_0xd2fc3e(0x2e5)](_0x3a7434||_0x48e9f1(this[_0xd2fc3e(0x2ac)][_0xd2fc3e(0x214)],_0xd2fc3e(0x2c6)),_0x59c2e6);}async[_0x2bebe0(0x229)]({reply:_0xdd0a77,renderingStrategy:_0x436df3}){const _0x2f9b49=_0x2bebe0,{id:_0x56d0ff,isDone:_0x20ea97,type:_0x470d53,parsedContent:_0xe88ee5}=_0xdd0a77;if(_0x2f9b49(0x244)===_0x470d53){const _0x446327=_0xdd0a77[_0x2f9b49(0x256)]({'showDiff':this[_0x2f9b49(0x280)][_0x2f9b49(0x2a2)]});await this[_0x2f9b49(0x280)][_0x2f9b49(0x1ec)]({'id':_0x56d0ff,'parts':_0x446327,'renderingStrategy':_0x436df3,'isDone':_0x20ea97});}else _0x2f9b49(0x26e)===_0x470d53&&await this[_0x2f9b49(0x280)][_0x2f9b49(0x282)]({'id':_0x56d0ff,'parsedContent':_0xe88ee5,'renderingStrategy':_0x436df3,'isDone':_0x20ea97});_0x20ea97&&_0xdd0a77[_0x2f9b49(0x2fe)][_0x2f9b49(0x29a)]>0x0&&this[_0x2f9b49(0x280)][_0x2f9b49(0x21f)](_0x56d0ff,_0xdd0a77[_0x2f9b49(0x2fe)]);}async[_0x2bebe0(0x2ba)](){const _0x3dd414=_0x2bebe0,_0x4781fa=this[_0x3dd414(0x294)]?.[_0x3dd414(0x2fb)];_0x4781fa&&(_0x4781fa[_0x3dd414(0x347)](),this[_0x3dd414(0x280)][_0x3dd414(0x2b3)](_0x4781fa));}async[_0x2bebe0(0x346)](){const _0x339c48=_0x2bebe0,_0x30ddbd=this[_0x339c48(0x294)]?.[_0x339c48(0x2fb)];if(_0x30ddbd){for await(const _0x24c971 of _0x30ddbd[_0x339c48(0x32c)])await this[_0x339c48(0x229)]({'reply':_0x24c971,'renderingStrategy':_0x339c48(0x316)});}}[_0x2bebe0(0x293)](_0x230f31){const _0x46a62e=_0x2bebe0,_0x23a568={'positiveCount':_0x230f31[_0x46a62e(0x2a7)][_0x46a62e(0x2c9)](_0x5e524c=>_0x46a62e(0x2f5)===_0x5e524c[_0x46a62e(0x2cd)])[_0x46a62e(0x29a)],'totalCount':_0x230f31[_0x46a62e(0x2a7)][_0x46a62e(0x29a)],'modificationId':_0x230f31['id']},_0xe41ab5=this[_0x46a62e(0x294)][_0x46a62e(0x283)](_0x230f31[_0x46a62e(0x2bd)])[_0x46a62e(0x331)];this[_0x46a62e(0x2b2)][_0x46a62e(0x2d5)](this[_0x46a62e(0x294)]['id'],_0xe41ab5,_0x23a568);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x295d3a=_0x35ef;(function(_0x2c9971,_0x2fd581){const _0x37af99=_0x35ef,_0x58edeb=_0x2c9971();while(!![]){try{const _0x161f4f=parseInt(_0x37af99(0x10e))/0x1*(-parseInt(_0x37af99(0xb4))/0x2)+parseInt(_0x37af99(0x107))/0x3*(-parseInt(_0x37af99(0xe5))/0x4)+-parseInt(_0x37af99(0x124))/0x5*(parseInt(_0x37af99(0xba))/0x6)+-parseInt(_0x37af99(0xea))/0x7+-parseInt(_0x37af99(0xb0))/0x8+parseInt(_0x37af99(0x114))/0x9*(parseInt(_0x37af99(0x98))/0xa)+parseInt(_0x37af99(0xff))/0xb;if(_0x161f4f===_0x2fd581)break;else _0x58edeb['push'](_0x58edeb['shift']());}catch(_0x2a198f){_0x58edeb['push'](_0x58edeb['shift']());}}}(_0x412a,0x39f3f));import{ContextPlugin as _0x54acbf}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3167ca}from'ckeditor5/src/utils.js';import{AIChatView as _0x5c1178}from'./ui/aichatview.js';function _0x35ef(_0x593f16,_0x5a405c){const _0x412a23=_0x412a();return _0x35ef=function(_0x35ef7d,_0xe930ae){_0x35ef7d=_0x35ef7d-0x83;let _0x1d8cd6=_0x412a23[_0x35ef7d];return _0x1d8cd6;},_0x35ef(_0x593f16,_0x5a405c);}import{AITabs as _0x31c1f5}from'../aitabs/aitabs.js';import{getTranslation as _0x147f16}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3073b8}from'ckeditor5/src/icons.js';function _0x412a(){const _0xfeda5e=['AIChatUI','view','removeItem','isWebSearchEnabled','has','interactionId','updateReplyItem','setIsMaximized','setAddContextOptions','userMessage','destroy','enableControls','resetMessageInput','setModel','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','TrackChanges','12662012NhsCxo','bind','locale','chatControls','ai.chat.models.modelSelectorAlwaysVisible','pluginName','updateCapabilities','updateFeedItemAIReplySuggestionPartState','6JtnYHv','setInputPlaceholder','plugins','markItemAsDone','ai.availableReplyActions','delegate','stopAutoScroll','1489vJWVNc','showResizeButton','stopInteraction','AITabs','ai.chat.context.searchInputVisibleFrom','createConversation','468SHtpjh','focusPromptInput','then','isLoading','isModelAvailable','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','addFeedItemAISuggestion','values','removeFeedInteraction','displayedPrompt','setModelList','startsWith','setFeedItemRenderingStrategy','updateSuggestionPartState','from','toggleLoadingSkeleton','10csAZzr','addContextItem','setIsUploadInProgress','isDisabled','get','</p>','setConversationContext','_isTrackChangesCommandValueBound','resetConversationTitle','find','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','addTab','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','renderingStrategy','insertSuggestion','feedItemRenderingStrategy','ai-suggestion-reply','setReasoning','addFeedItemAIReply','updateWebSources','removeContextItem','areActionsDisabled','queueEmptyPromise','isBusy','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','remove','addFeedInteractionHeader','81240toxgPi','addFeedItemStaticMessage','setContextItemLoading','_interactionPromiseResolver','updateFeedItemAIReplySources','options','set','last','capabilities','interaction-header','isVisible','config','updateFeedItemAIReplyContent','chat','clearConversationContextUI','startAutoScroll','ai-reply','children','setConversationTitle','markFeedItemAsDone','scrollToSuggestion','enqueue','setLoadingMessage','addItem','3128848cSMNoT','toggleSuggestionDisplayMode','disableControls','filter','30ICTzDv','isPending','streaming','label','commands','getItemIds','441150UVFagH','<p>','finishInteraction','setWebSearch','requires','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','updateSuggestionItem','_getInputPlaceholder','isPremiumPlugin','AI_CHAT_WELCOME_MESSAGE','isDone','addFeedItemUserMessage','value','AI_CHAT_HEADING','isTrackChangesOn','addFeedItemError','_getLoadingMessage','isOfficialPlugin','enableModelSelector','trackChanges','error-message','abort','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','clear','_view','showDiff','populateSourceResourceBalloon','startInteraction','quickActionData','chatHeader','updateFeedInteractionHeader','context','updateFeedItemAIReplySuggestionContent','disableModelSelector','_promiseQueue','_animateConversationTitle','scrollFeedToSuggestion','forEach','_titleAnimationInterval','contextItems','conversation-start','isReasoningEnabled','setSelectedModel','652408XJPYJB','isMaximized','clearPendingContextUI','updateResourceState','closeSourceResourceBalloon','3146290yLDebu','length','chatFeed','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','user-message'];_0x412a=function(){return _0xfeda5e;};return _0x412a();}import{AIChatFeedInteractionHeaderView as _0x5cf797}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x21c4e6}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x242ae6}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x261f1f}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x30b9cf}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x54acbf{static get[_0x295d3a(0xbe)](){return[_0x31c1f5];}[_0x295d3a(0xd2)];static get[_0x295d3a(0x104)](){const _0x21aa5a=_0x295d3a;return _0x21aa5a(0xef);}static get[_0x295d3a(0xcb)](){return!0x0;}static get[_0x295d3a(0xc2)](){return!0x0;}[_0x295d3a(0x8b)]=_0x295d3a(0xb6);[_0x295d3a(0xd3)]=!0x0;[_0x295d3a(0xdc)];[_0x295d3a(0x9b)];[_0x295d3a(0xe0)]=void 0x0;[_0x295d3a(0x83)]=!0x1;constructor(_0x10fef5){const _0x317c96=_0x295d3a;super(_0x10fef5);const _0x41a79e=this[_0x317c96(0xd9)][_0x317c96(0x109)][_0x317c96(0x128)](_0x317c96(0x111));this[_0x317c96(0x9e)](_0x317c96(0x93),!0x1),this[_0x317c96(0xdc)]=new _0x21c4e6(),this[_0x317c96(0xd2)]=new _0x5c1178(this[_0x317c96(0xd9)][_0x317c96(0x101)],{'showResizeButton':_0x41a79e[_0x317c96(0x10f)],'contextResourcesSearchInputVisibleFrom':this[_0x317c96(0xd9)][_0x317c96(0xa3)][_0x317c96(0x128)](_0x317c96(0x112))}),this[_0x317c96(0xd2)][_0x317c96(0x10c)](..._0x242ae6)['to'](this),this[_0x317c96(0xd2)]['on'](_0x317c96(0xb1),(_0x177ab7,{showDiff:_0x41687c})=>{const _0x45bf4b=_0x317c96;this[_0x45bf4b(0xd3)]=_0x41687c;}),_0x41a79e[_0x317c96(0xf0)][_0x317c96(0x87)]({'id':_0x317c96(0xa5),'buttonLabel':_0x147f16(this[_0x317c96(0xd9)][_0x317c96(0x101)],_0x317c96(0xc7)),'buttonIcon':_0x3073b8,'order':0x0,'content':this[_0x317c96(0xd2)]}),this[_0x317c96(0xd2)][_0x317c96(0x102)][_0x317c96(0x100)](_0x317c96(0x117))['to'](this,_0x317c96(0x93),_0x118e5a=>_0x118e5a),this[_0x317c96(0xd2)][_0x317c96(0xec)][_0x317c96(0x100)](_0x317c96(0xb5))['to'](this,_0x317c96(0x93),_0x46a612=>_0x46a612),this[_0x317c96(0xd2)][_0x317c96(0x102)][_0x317c96(0x108)](this[_0x317c96(0xc1)]()),this[_0x317c96(0x100)](_0x317c96(0x118))['to'](this[_0x317c96(0xd2)][_0x317c96(0x102)],_0x317c96(0x118));}[_0x295d3a(0xf9)](){const _0x4b6405=_0x295d3a;super[_0x4b6405(0xf9)](),this[_0x4b6405(0xe0)]&&clearInterval(this[_0x4b6405(0xe0)]);}[_0x295d3a(0x113)](_0x194b83){const _0x3dc440=_0x295d3a;this[_0x3dc440(0xd2)][_0x3dc440(0xec)][_0x3dc440(0xd1)](),this[_0x3dc440(0xd2)][_0x3dc440(0x102)][_0x3dc440(0xcc)](),this[_0x3dc440(0xd2)][_0x3dc440(0x102)][_0x3dc440(0x11e)](_0x194b83[_0x3dc440(0x94)],!this[_0x3dc440(0xd9)][_0x3dc440(0xa3)][_0x3dc440(0x128)](_0x3dc440(0x103))),this[_0x3dc440(0x99)]({'id':_0x3dc440(0xe2),'staticMessage':_0x147f16(this[_0x3dc440(0xd9)][_0x3dc440(0x101)],_0x3dc440(0xc3))});}[_0x295d3a(0x99)]({id:_0x4b8aba,staticMessage:_0x5637d2}){const _0x512fec=_0x295d3a;this[_0x512fec(0xd2)][_0x512fec(0xec)][_0x512fec(0xaf)](_0x512fec(0xa8),{'id':_0x4b8aba,'initialContent':_0x512fec(0xbb)+_0x5637d2+_0x512fec(0x129)});}[_0x295d3a(0xc5)](_0x27d161){const _0x3e4272=_0x295d3a,_0x5352c1=_0x27d161[_0x3e4272(0xd6)]?.[_0x3e4272(0x11d)]||_0x27d161[_0x3e4272(0xf8)];this[_0x3e4272(0xd2)][_0x3e4272(0xec)][_0x3e4272(0xaf)](_0x3e4272(0xee),{'contextItems':Array[_0x3e4272(0x122)](_0x27d161[_0x3e4272(0xe1)][_0x3e4272(0x11b)]()),'initialContent':_0x3e4272(0xbb)+_0x5352c1+_0x3e4272(0x129),'id':_0x27d161['id']});}[_0x295d3a(0xc9)]({errorMessage:_0x16eadd,id:_0x30a377}){const _0xaee03a=_0x295d3a;this[_0xaee03a(0xd2)][_0xaee03a(0xec)][_0xaee03a(0xaf)](_0xaee03a(0xce),{'initialContent':_0xaee03a(0xbb)+_0x16eadd+_0xaee03a(0x129),'id':_0x30a377});}[_0x295d3a(0x8e)](_0x2f5a6b){const _0x58c65a=_0x295d3a;return this[_0x58c65a(0xdc)][_0x58c65a(0xad)](async()=>{const _0x54e428=_0x58c65a;this[_0x54e428(0xd2)][_0x54e428(0xec)][_0x54e428(0xaf)](_0x54e428(0xa8),{'id':_0x2f5a6b[_0x54e428(0xf4)]+':'+_0x2f5a6b['id']}),this[_0x54e428(0xae)](null);});}async[_0x295d3a(0x11a)](_0x1ef7d9){const _0x1b061f=_0x295d3a,_0xb7dffb=_0x261f1f(this[_0x1b061f(0xd9)]);let _0xb61140=_0xb7dffb[_0x1b061f(0xa3)][_0x1b061f(0x128)](_0x1b061f(0x10b))||[..._0x30b9cf];if(_0xb7dffb[_0x1b061f(0x109)][_0x1b061f(0xf3)](_0x1b061f(0xfe))){if(!this[_0x1b061f(0x83)]){this[_0x1b061f(0x83)]=!0x0;const _0x4ed4d7=_0xb7dffb[_0x1b061f(0xb8)][_0x1b061f(0x128)](_0x1b061f(0xcd));this[_0x1b061f(0xd2)][_0x1b061f(0xec)][_0x1b061f(0x100)](_0x1b061f(0xc8))['to'](_0x4ed4d7,_0x1b061f(0xc6));}}else _0xb61140=_0xb61140[_0x1b061f(0xb3)](_0x55dd68=>_0x1b061f(0x8a)!=_0x55dd68);return this[_0x1b061f(0xdc)][_0x1b061f(0xad)](async()=>{const _0x2c2c1b=_0x1b061f;this[_0x2c2c1b(0xd2)][_0x2c2c1b(0xec)][_0x2c2c1b(0xaf)](_0x2c2c1b(0x8c),{'id':_0x1ef7d9[_0x2c2c1b(0xf4)]+':'+_0x1ef7d9['id'],'areActionsDisabled':_0x1ef7d9[_0x2c2c1b(0x91)],'showDiff':this[_0x2c2c1b(0xd3)],'availableActions':_0xb61140}),this[_0x2c2c1b(0xae)](null);});}[_0x295d3a(0x97)](_0x9133a0,_0x5a9a3c){const _0x1132ea=_0x295d3a,_0x28e50b=this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xa9)][_0x1132ea(0x9f)];if(_0x28e50b instanceof _0x5cf797)return this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xa9)][_0x1132ea(0x96)](_0x28e50b),void this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xaf)](_0x1132ea(0xa1),{'id':_0x9133a0['id'],'capabilities':{'isWebSearchEnabled':_0x28e50b[_0x1132ea(0xa0)][_0x1132ea(0xf2)]||_0x5a9a3c[_0x1132ea(0xf2)],'isReasoningEnabled':_0x28e50b[_0x1132ea(0xa0)][_0x1132ea(0xe3)]||_0x5a9a3c[_0x1132ea(0xe3)]}});this[_0x1132ea(0xd2)][_0x1132ea(0xec)][_0x1132ea(0xaf)](_0x1132ea(0xa1),{'id':_0x9133a0['id'],'capabilities':_0x5a9a3c});}[_0x295d3a(0xd8)](_0x15ab49){const _0x15ae0d=_0x295d3a,_0xc1ecec=this[_0x15ae0d(0xd2)][_0x15ae0d(0xec)][_0x15ae0d(0xa9)][_0x15ae0d(0x85)](_0x3d2eda=>_0x3d2eda[_0x15ae0d(0x9d)]['id']==_0x15ab49['id']&&_0x3d2eda instanceof _0x5cf797);_0xc1ecec&&_0xc1ecec[_0x15ae0d(0x9e)](_0x15ae0d(0xa2),_0x15ab49[_0x15ae0d(0xa2)]);}async[_0x295d3a(0xa4)](_0x5f5d1e){const _0x38bbb6=_0x295d3a,_0x10b46c=_0x5f5d1e[_0x38bbb6(0x89)]||this[_0x38bbb6(0x8b)];return this[_0x38bbb6(0xdc)][_0x38bbb6(0xad)](async _0x40ac14=>{const _0x1afa71=_0x38bbb6;await this[_0x1afa71(0xd2)][_0x1afa71(0xec)][_0x1afa71(0xf5)]({..._0x5f5d1e,'abortSignal':_0x40ac14,'renderingStrategy':_0x10b46c}),_0x5f5d1e[_0x1afa71(0xc4)]&&this[_0x1afa71(0xab)](_0x5f5d1e['id']);});}[_0x295d3a(0x9c)](_0x48cde3,_0x4526f9){const _0x245ae1=_0x295d3a;this[_0x245ae1(0xd2)][_0x245ae1(0xec)][_0x245ae1(0x8f)](_0x48cde3,_0x4526f9);}async[_0x295d3a(0xda)](_0x311f5a){const _0x590c08=_0x295d3a,_0x348b97=_0x311f5a[_0x590c08(0x89)]||this[_0x590c08(0x8b)];return this[_0x590c08(0xdc)][_0x590c08(0xad)](async _0x597169=>{const _0xb9f885=_0x590c08;await this[_0xb9f885(0xd2)][_0xb9f885(0xec)][_0xb9f885(0xc0)]({..._0x311f5a,'abortSignal':_0x597169,'renderingStrategy':_0x348b97}),_0x311f5a[_0xb9f885(0xc4)]&&this[_0xb9f885(0xab)](_0x311f5a['id']);});}[_0x295d3a(0x106)](_0x4252d4){const _0xc27500=_0x295d3a;this[_0xc27500(0xd2)][_0xc27500(0xec)][_0xc27500(0x121)](_0x4252d4);}[_0x295d3a(0xab)](_0x4207ad){const _0x317fc2=_0x295d3a;this[_0x317fc2(0xd2)][_0x317fc2(0xec)][_0x317fc2(0x10a)](_0x4207ad);}[_0x295d3a(0x11c)](_0x13577a){const _0x3478c3=_0x295d3a;this[_0x3478c3(0xd2)][_0x3478c3(0xec)][_0x3478c3(0xb9)]()[_0x3478c3(0xb3)](_0x2d9057=>_0x2d9057[_0x3478c3(0x11f)](_0x13577a))[_0x3478c3(0xdf)](_0x135d9f=>this[_0x3478c3(0xd2)][_0x3478c3(0xec)][_0x3478c3(0xf1)](_0x135d9f));}[_0x295d3a(0xd5)](){const _0xe7210a=_0x295d3a;this[_0xe7210a(0xae)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0xe7210a(0xd2)][_0xe7210a(0x102)][_0xe7210a(0xdb)](!this[_0xe7210a(0xd9)][_0xe7210a(0xa3)][_0xe7210a(0x128)](_0xe7210a(0x103))),this[_0xe7210a(0x93)]=!0x0,this[_0xe7210a(0xd2)][_0xe7210a(0xec)][_0xe7210a(0xa7)]();}[_0x295d3a(0x110)](_0x25df84){const _0x9ed677=_0x295d3a;this[_0x9ed677(0xdc)][_0x9ed677(0xcf)](),this[_0x9ed677(0xd2)][_0x9ed677(0xec)][_0x9ed677(0xb9)]()[_0x9ed677(0xb3)](_0x34b821=>_0x34b821[_0x9ed677(0x11f)](_0x25df84['id']))[_0x9ed677(0xdf)](_0x338179=>this[_0x9ed677(0xab)](_0x338179)),this[_0x9ed677(0x93)]=!0x1,this[_0x9ed677(0xd2)][_0x9ed677(0xec)][_0x9ed677(0x10d)]();}async[_0x295d3a(0xbc)](){const _0x9fa005=_0x295d3a;return this[_0x9fa005(0xdc)][_0x9fa005(0x92)][_0x9fa005(0x116)](()=>{const _0x906d8a=_0x9fa005;this[_0x906d8a(0x93)]=!0x1,this[_0x906d8a(0xd2)][_0x906d8a(0xec)][_0x906d8a(0x10d)]();});}[_0x295d3a(0x125)](_0x46a191,_0x32a3a0){const _0x136bb6=_0x295d3a;this[_0x136bb6(0xd2)][_0x136bb6(0x102)][_0x136bb6(0x125)](_0x46a191,_0x32a3a0);}[_0x295d3a(0x90)](_0x2fc510){const _0x435fca=_0x295d3a;this[_0x435fca(0xd2)][_0x435fca(0x102)][_0x435fca(0x90)](_0x2fc510);}[_0x295d3a(0x9a)](_0x11f113,_0x384bda){const _0x32cd90=_0x295d3a;this[_0x32cd90(0xd2)][_0x32cd90(0x102)][_0x32cd90(0x9a)](_0x11f113,_0x384bda);}[_0x295d3a(0x126)](_0x3a7a6f){const _0x49c2d2=_0x295d3a;this[_0x49c2d2(0xd2)][_0x49c2d2(0x102)][_0x49c2d2(0x126)](_0x3a7a6f);}[_0x295d3a(0x12a)](_0x222f4b){const _0x205511=_0x295d3a;this[_0x205511(0xd2)][_0x205511(0x102)][_0x205511(0x12a)](_0x222f4b);}[_0x295d3a(0xe7)](){const _0x1ec26c=_0x295d3a;this[_0x1ec26c(0xd2)][_0x1ec26c(0x102)][_0x1ec26c(0xe7)]();}[_0x295d3a(0xa6)](){const _0x5db488=_0x295d3a;this[_0x5db488(0xd2)][_0x5db488(0x102)][_0x5db488(0xa6)]();}[_0x295d3a(0xe8)](_0x47e8a1,_0x11c18d,_0x4b391e){const _0x3227ab=_0x295d3a;this[_0x3227ab(0xd2)][_0x3227ab(0x102)][_0x3227ab(0xe8)](_0x47e8a1,_0x11c18d,_0x4b391e);}[_0x295d3a(0xfb)](){const _0x3fc77b=_0x295d3a;this[_0x3fc77b(0xd2)][_0x3fc77b(0x102)][_0x3fc77b(0xfb)](),this[_0x3fc77b(0xd2)][_0x3fc77b(0x102)][_0x3fc77b(0x108)](this[_0x3fc77b(0xc1)]());}[_0x295d3a(0xf7)](_0x462cab){const _0x5800c=_0x295d3a;this[_0x5800c(0xd2)][_0x5800c(0x102)][_0x5800c(0xf7)](_0x462cab);}[_0x295d3a(0x105)](_0x2c1c93){const _0x153df4=_0x295d3a;this[_0x153df4(0xd2)][_0x153df4(0x102)][_0x153df4(0xbd)](_0x2c1c93[_0x153df4(0xf2)]),this[_0x153df4(0xd2)][_0x153df4(0x102)][_0x153df4(0x8d)](_0x2c1c93[_0x153df4(0xe3)]),this[_0x153df4(0xd2)][_0x153df4(0x102)][_0x153df4(0x108)](this[_0x153df4(0xc1)](_0x2c1c93));}[_0x295d3a(0xe4)](_0x3d26ec,_0x3b0de6){const _0x1fadba=_0x295d3a;this[_0x1fadba(0xd2)][_0x1fadba(0x102)][_0x1fadba(0xfc)](_0x3d26ec),_0x3b0de6&&this[_0x1fadba(0xd2)][_0x1fadba(0x102)][_0x1fadba(0xdb)](!0x1);}[_0x295d3a(0x120)](_0x47420b){const _0x545b98=_0x295d3a;this[_0x545b98(0x8b)]=_0x47420b;}[_0x295d3a(0x123)](_0x2079aa){const _0x57b28b=_0x295d3a;this[_0x57b28b(0xd2)][_0x57b28b(0xec)][_0x57b28b(0x123)](_0x2079aa);}[_0x295d3a(0x84)](){const _0x2caec9=_0x295d3a;this[_0x2caec9(0xaa)](_0x147f16(this[_0x2caec9(0xd9)][_0x2caec9(0x101)],_0x2caec9(0xc7)));}[_0x295d3a(0xaa)](_0x753384,_0x1e57eb=!0x1){const _0x2ccdbc=_0x295d3a;if(_0x1e57eb&&!_0x3167ca()&&_0x753384[_0x2ccdbc(0xeb)])return this[_0x2ccdbc(0xd2)][_0x2ccdbc(0xd7)][_0x2ccdbc(0xb7)]='',void this[_0x2ccdbc(0xdd)](_0x753384);this[_0x2ccdbc(0xd2)][_0x2ccdbc(0xd7)][_0x2ccdbc(0xb7)]=_0x753384;}[_0x295d3a(0xae)](_0x28adc9){const _0x5216c9=_0x295d3a,_0x3a8c70=this[_0x5216c9(0xca)](_0x28adc9);this[_0x5216c9(0xd2)][_0x5216c9(0xec)][_0x5216c9(0xae)](_0x3a8c70);}[_0x295d3a(0xdd)](_0x2b1c27){const _0x1b3d99=_0x295d3a;let _0x50c5be=0x0;clearInterval(this[_0x1b3d99(0xe0)]),this[_0x1b3d99(0xe0)]=setInterval(()=>{const _0x1d48c3=_0x1b3d99;this[_0x1d48c3(0xd2)][_0x1d48c3(0xd7)][_0x1d48c3(0xb7)]=this[_0x1d48c3(0xd2)][_0x1d48c3(0xd7)][_0x1d48c3(0xb7)]+_0x2b1c27[_0x50c5be],_0x50c5be++,_0x50c5be===_0x2b1c27[_0x1d48c3(0xeb)]&&clearInterval(this[_0x1d48c3(0xe0)]);},0x1e);}[_0x295d3a(0xf6)](_0x1834bb){const _0x54a4b9=_0x295d3a;this[_0x54a4b9(0xd2)][_0x54a4b9(0xd7)][_0x54a4b9(0xe6)]=_0x1834bb;}[_0x295d3a(0xca)](_0x45c7c1){const _0x437707=_0x295d3a;return _0x45c7c1?_0x45c7c1[_0x437707(0xf2)]&&_0x45c7c1[_0x437707(0xe3)]?_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0xbf)):_0x45c7c1[_0x437707(0xf2)]?_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0xd0)):_0x45c7c1[_0x437707(0xe3)]?_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0x86)):_0x147f16(this[_0x437707(0xd9)][_0x437707(0x101)],_0x437707(0x88)):'';}[_0x295d3a(0xc1)](_0x1bc809){const _0x2651a7=_0x295d3a;return _0x1bc809?_0x1bc809[_0x2651a7(0xf2)]&&_0x1bc809[_0x2651a7(0xe3)]?_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0xfd)):_0x1bc809[_0x2651a7(0xf2)]?_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0xed)):_0x1bc809[_0x2651a7(0xe3)]?_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0x95)):_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0x119)):_0x147f16(this[_0x2651a7(0xd9)][_0x2651a7(0x101)],_0x2651a7(0x119));}[_0x295d3a(0xd4)](_0x588757,_0x5b2bd2,_0x5f02da,_0x19fb05){const _0x809bb7=_0x295d3a;this[_0x809bb7(0xd2)][_0x809bb7(0xd4)](_0x588757,_0x5b2bd2,_0x5f02da,_0x19fb05);}[_0x295d3a(0xe9)](_0x23eb6c){const _0x12b6dd=_0x295d3a;this[_0x12b6dd(0xd2)][_0x12b6dd(0xe9)](_0x23eb6c);}[_0x295d3a(0x115)](){const _0x321c2e=_0x295d3a;this[_0x321c2e(0xd2)][_0x321c2e(0x102)][_0x321c2e(0x115)]();}[_0x295d3a(0xde)](_0x4f0624,_0x152e1c){const _0x238306=_0x295d3a;this[_0x238306(0xd2)][_0x238306(0xec)][_0x238306(0xac)](_0x4f0624,_0x152e1c);}[_0x295d3a(0xa7)](){const _0xb3dc12=_0x295d3a;this[_0xb3dc12(0xd2)][_0xb3dc12(0xec)][_0xb3dc12(0xa7)]();}[_0x295d3a(0xb2)](){const _0x47c67e=_0x295d3a;this[_0x47c67e(0xd2)][_0x47c67e(0x102)][_0x47c67e(0x127)]=!0x0;}[_0x295d3a(0xfa)](){const _0x19f4ba=_0x295d3a;this[_0x19f4ba(0xd2)][_0x19f4ba(0x102)][_0x19f4ba(0x127)]=!0x1;}}
|
|
23
|
+
const _0x16874d=_0x7ba9;(function(_0x5b3a85,_0x358f3d){const _0x34ca06=_0x7ba9,_0x127a77=_0x5b3a85();while(!![]){try{const _0x123781=parseInt(_0x34ca06(0x1f0))/0x1*(parseInt(_0x34ca06(0x24b))/0x2)+-parseInt(_0x34ca06(0x1ed))/0x3+-parseInt(_0x34ca06(0x258))/0x4+-parseInt(_0x34ca06(0x202))/0x5*(parseInt(_0x34ca06(0x200))/0x6)+-parseInt(_0x34ca06(0x22f))/0x7*(-parseInt(_0x34ca06(0x26b))/0x8)+parseInt(_0x34ca06(0x1dc))/0x9*(parseInt(_0x34ca06(0x24e))/0xa)+-parseInt(_0x34ca06(0x1e2))/0xb*(-parseInt(_0x34ca06(0x1f8))/0xc);if(_0x123781===_0x358f3d)break;else _0x127a77['push'](_0x127a77['shift']());}catch(_0x44ee26){_0x127a77['push'](_0x127a77['shift']());}}}(_0x4a65,0x8d8b4));function _0x7ba9(_0x53c6e2,_0x1a5998){const _0x4a6539=_0x4a65();return _0x7ba9=function(_0x7ba91a,_0x551572){_0x7ba91a=_0x7ba91a-0x1cb;let _0x7ef5e7=_0x4a6539[_0x7ba91a];return _0x7ef5e7;},_0x7ba9(_0x53c6e2,_0x1a5998);}import{ContextPlugin as _0x5660e1}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x235c00}from'ckeditor5/src/utils.js';import{AIChatView as _0x5049d0}from'./ui/aichatview.js';import{AITabs as _0x175cbf}from'../aitabs/aitabs.js';import{getTranslation as _0x1d7aed}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x409e49}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x5875ea}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0xd2def3}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xa96303}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x130c64}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x111072}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x5660e1{static get[_0x16874d(0x1f3)](){return[_0x175cbf];}[_0x16874d(0x242)];static get[_0x16874d(0x20b)](){const _0xdd4ae4=_0x16874d;return _0xdd4ae4(0x26e);}static get[_0x16874d(0x209)](){return!0x0;}static get[_0x16874d(0x245)](){return!0x0;}[_0x16874d(0x1cb)]=_0x16874d(0x1ea);[_0x16874d(0x24f)]=!0x0;[_0x16874d(0x266)];[_0x16874d(0x22c)];[_0x16874d(0x207)]=void 0x0;[_0x16874d(0x217)]=!0x1;constructor(_0x5ed250){const _0x5c8b74=_0x16874d;super(_0x5ed250);const _0x24467a=this[_0x5c8b74(0x25a)][_0x5c8b74(0x271)][_0x5c8b74(0x203)](_0x5c8b74(0x243));this[_0x5c8b74(0x1f2)](_0x5c8b74(0x26d),!0x1),this[_0x5c8b74(0x266)]=new _0xd2def3(),this[_0x5c8b74(0x242)]=new _0x5049d0(this[_0x5c8b74(0x25a)][_0x5c8b74(0x222)],{'showResizeButton':_0x24467a[_0x5c8b74(0x20d)],'contextResourcesSearchInputVisibleFrom':this[_0x5c8b74(0x25a)][_0x5c8b74(0x221)][_0x5c8b74(0x203)](_0x5c8b74(0x238))}),this[_0x5c8b74(0x242)][_0x5c8b74(0x219)](..._0xa96303)['to'](this),this[_0x5c8b74(0x242)]['on'](_0x5c8b74(0x1f6),(_0x38fd1f,{showDiff:_0x536bcf})=>{const _0x359cb4=_0x5c8b74;this[_0x359cb4(0x24f)]=_0x536bcf;}),_0x24467a[_0x5c8b74(0x227)][_0x5c8b74(0x257)]({'id':_0x5c8b74(0x22e),'buttonLabel':_0x1d7aed(this[_0x5c8b74(0x25a)][_0x5c8b74(0x222)],_0x5c8b74(0x255)),'buttonIcon':_0x409e49,'order':0x0,'content':this[_0x5c8b74(0x242)]}),this[_0x5c8b74(0x242)][_0x5c8b74(0x263)][_0x5c8b74(0x1fa)](_0x5c8b74(0x23f))['to'](this,_0x5c8b74(0x26d),_0x2bd7bb=>_0x2bd7bb),this[_0x5c8b74(0x242)][_0x5c8b74(0x220)][_0x5c8b74(0x1fa)](_0x5c8b74(0x25b))['to'](this,_0x5c8b74(0x26d),_0x4eb5ec=>_0x4eb5ec),this[_0x5c8b74(0x242)][_0x5c8b74(0x263)][_0x5c8b74(0x1da)](this[_0x5c8b74(0x1f4)]()),this[_0x5c8b74(0x1fa)](_0x5c8b74(0x251))['to'](this[_0x5c8b74(0x242)][_0x5c8b74(0x263)],_0x5c8b74(0x251));}[_0x16874d(0x223)](){const _0x186b7d=_0x16874d;super[_0x186b7d(0x223)](),this[_0x186b7d(0x207)]&&clearInterval(this[_0x186b7d(0x207)]);}[_0x16874d(0x230)](_0x387664){const _0x248cdb=_0x16874d;this[_0x248cdb(0x242)][_0x248cdb(0x220)][_0x248cdb(0x1e6)](),this[_0x248cdb(0x242)][_0x248cdb(0x263)][_0x248cdb(0x225)](),this[_0x248cdb(0x242)][_0x248cdb(0x263)][_0x248cdb(0x1d3)](_0x387664[_0x248cdb(0x1e7)],!this[_0x248cdb(0x25a)][_0x248cdb(0x221)][_0x248cdb(0x203)](_0x248cdb(0x24d))),this[_0x248cdb(0x272)]({'id':_0x248cdb(0x21e),'staticMessage':_0x1d7aed(this[_0x248cdb(0x25a)][_0x248cdb(0x222)],_0x248cdb(0x235))});}[_0x16874d(0x272)]({id:_0x292170,staticMessage:_0x4af071}){const _0x1aab1d=_0x16874d;this[_0x1aab1d(0x242)][_0x1aab1d(0x220)][_0x1aab1d(0x1ce)](_0x1aab1d(0x25d),{'id':_0x292170,'initialContent':_0x1aab1d(0x1d0)+_0x4af071+_0x1aab1d(0x267)});}[_0x16874d(0x21f)](_0x1d0698){const _0xeab08e=_0x16874d,_0x1d3521=_0x1d0698[_0xeab08e(0x273)]?.[_0xeab08e(0x1e5)]||_0x1d0698[_0xeab08e(0x241)];this[_0xeab08e(0x242)][_0xeab08e(0x220)][_0xeab08e(0x1ce)](_0xeab08e(0x1ee),{'contextItems':Array[_0xeab08e(0x24c)](_0x1d0698[_0xeab08e(0x1cc)][_0xeab08e(0x204)]()),'initialContent':_0xeab08e(0x1d0)+_0x1d3521+_0xeab08e(0x267),'id':_0x1d0698['id']});}[_0x16874d(0x201)]({errorMessage:_0xc19911,id:_0x1ee1e9}){const _0x44f848=_0x16874d;this[_0x44f848(0x242)][_0x44f848(0x220)][_0x44f848(0x1ce)](_0x44f848(0x21b),{'initialContent':_0x44f848(0x1d0)+_0xc19911+_0x44f848(0x267),'id':_0x1ee1e9});}[_0x16874d(0x208)](_0x45de60){const _0x5f9491=_0x16874d;return this[_0x5f9491(0x266)][_0x5f9491(0x21a)](async()=>{const _0x3ba356=_0x5f9491;this[_0x3ba356(0x242)][_0x3ba356(0x220)][_0x3ba356(0x1ce)](_0x3ba356(0x25d),{'id':_0x45de60[_0x3ba356(0x1e1)]+':'+_0x45de60['id']}),this[_0x3ba356(0x20c)](null);});}async[_0x16874d(0x1d9)](_0x395489){const _0x473cca=_0x16874d,_0x40ff16=_0x130c64(this[_0x473cca(0x25a)]);let _0x5630ea=_0x40ff16[_0x473cca(0x221)][_0x473cca(0x203)](_0x473cca(0x25e))||[..._0x111072];if(_0x40ff16[_0x473cca(0x271)][_0x473cca(0x237)](_0x473cca(0x23e))){if(!this[_0x473cca(0x217)]){this[_0x473cca(0x217)]=!0x0;const _0x3e21d9=_0x40ff16[_0x473cca(0x22a)][_0x473cca(0x203)](_0x473cca(0x211));this[_0x473cca(0x242)][_0x473cca(0x220)][_0x473cca(0x1fa)](_0x473cca(0x212))['to'](_0x3e21d9,_0x473cca(0x218));}}else _0x5630ea=_0x5630ea[_0x473cca(0x1f9)](_0x29a294=>_0x473cca(0x261)!=_0x29a294);return this[_0x473cca(0x266)][_0x473cca(0x21a)](async()=>{const _0x57001d=_0x473cca;this[_0x57001d(0x242)][_0x57001d(0x220)][_0x57001d(0x1ce)](_0x57001d(0x269),{'id':_0x395489[_0x57001d(0x1e1)]+':'+_0x395489['id'],'areActionsDisabled':_0x395489[_0x57001d(0x259)],'showDiff':this[_0x57001d(0x24f)],'availableActions':_0x5630ea}),this[_0x57001d(0x20c)](null);});}[_0x16874d(0x1e8)](_0x57b1f1,_0x57dea0){const _0x2c08d0=_0x16874d,_0x164c3f=this[_0x2c08d0(0x242)][_0x2c08d0(0x220)][_0x2c08d0(0x22d)][_0x2c08d0(0x21c)];if(_0x164c3f instanceof _0x5875ea)return this[_0x2c08d0(0x242)][_0x2c08d0(0x220)][_0x2c08d0(0x22d)][_0x2c08d0(0x25c)](_0x164c3f),void this[_0x2c08d0(0x242)][_0x2c08d0(0x220)][_0x2c08d0(0x1ce)](_0x2c08d0(0x213),{'id':_0x57b1f1['id'],'capabilities':{'isWebSearchEnabled':_0x164c3f[_0x2c08d0(0x214)][_0x2c08d0(0x23b)]||_0x57dea0[_0x2c08d0(0x23b)],'isReasoningEnabled':_0x164c3f[_0x2c08d0(0x214)][_0x2c08d0(0x1d5)]||_0x57dea0[_0x2c08d0(0x1d5)]}});this[_0x2c08d0(0x242)][_0x2c08d0(0x220)][_0x2c08d0(0x1ce)](_0x2c08d0(0x213),{'id':_0x57b1f1['id'],'capabilities':_0x57dea0});}[_0x16874d(0x26f)](_0x25e8c2){const _0x3f37d3=_0x16874d,_0x36365e=this[_0x3f37d3(0x242)][_0x3f37d3(0x220)][_0x3f37d3(0x22d)][_0x3f37d3(0x210)](_0x21a62e=>_0x21a62e[_0x3f37d3(0x25f)]['id']==_0x25e8c2['id']&&_0x21a62e instanceof _0x5875ea);_0x36365e&&_0x36365e[_0x3f37d3(0x1f2)](_0x3f37d3(0x1eb),_0x25e8c2[_0x3f37d3(0x1eb)]);}async[_0x16874d(0x1f7)](_0xf18282){const _0x25d95f=_0x16874d,_0x186250=_0xf18282[_0x25d95f(0x1d4)]||this[_0x25d95f(0x1cb)];return this[_0x25d95f(0x266)][_0x25d95f(0x21a)](async _0x3296c0=>{const _0x4a261b=_0x25d95f;await this[_0x4a261b(0x242)][_0x4a261b(0x220)][_0x4a261b(0x234)]({..._0xf18282,'abortSignal':_0x3296c0,'renderingStrategy':_0x186250}),_0xf18282[_0x4a261b(0x1e3)]&&this[_0x4a261b(0x26c)](_0xf18282['id']);});}[_0x16874d(0x1f1)](_0x57f399,_0x132488){const _0x399309=_0x16874d;this[_0x399309(0x242)][_0x399309(0x220)][_0x399309(0x1d2)](_0x57f399,_0x132488);}async[_0x16874d(0x1d8)](_0x4d9904){const _0x42ea9c=_0x16874d,_0x59d54a=_0x4d9904[_0x42ea9c(0x1d4)]||this[_0x42ea9c(0x1cb)];return this[_0x42ea9c(0x266)][_0x42ea9c(0x21a)](async _0x2fae03=>{const _0x5341ac=_0x42ea9c;await this[_0x5341ac(0x242)][_0x5341ac(0x220)][_0x5341ac(0x254)]({..._0x4d9904,'abortSignal':_0x2fae03,'renderingStrategy':_0x59d54a}),_0x4d9904[_0x5341ac(0x1e3)]&&this[_0x5341ac(0x26c)](_0x4d9904['id']);});}[_0x16874d(0x224)](_0x166726){const _0x4271ef=_0x16874d;this[_0x4271ef(0x242)][_0x4271ef(0x220)][_0x4271ef(0x24a)](_0x166726);}[_0x16874d(0x26c)](_0x479d83){const _0x52d562=_0x16874d;this[_0x52d562(0x242)][_0x52d562(0x220)][_0x52d562(0x239)](_0x479d83);}[_0x16874d(0x253)](_0x547b73){const _0x48727b=_0x16874d;this[_0x48727b(0x242)][_0x48727b(0x220)][_0x48727b(0x233)]()[_0x48727b(0x1f9)](_0x2d3d23=>_0x2d3d23[_0x48727b(0x268)](_0x547b73))[_0x48727b(0x265)](_0xf3c739=>this[_0x48727b(0x242)][_0x48727b(0x220)][_0x48727b(0x26a)](_0xf3c739));}[_0x16874d(0x236)](){const _0x10753a=_0x16874d;this[_0x10753a(0x20c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x10753a(0x242)][_0x10753a(0x263)][_0x10753a(0x1df)](!this[_0x10753a(0x25a)][_0x10753a(0x221)][_0x10753a(0x203)](_0x10753a(0x24d))),this[_0x10753a(0x26d)]=!0x0,this[_0x10753a(0x242)][_0x10753a(0x220)][_0x10753a(0x226)]();}[_0x16874d(0x229)](_0x399fe6){const _0x1b361a=_0x16874d;this[_0x1b361a(0x266)][_0x1b361a(0x20f)](),this[_0x1b361a(0x242)][_0x1b361a(0x220)][_0x1b361a(0x233)]()[_0x1b361a(0x1f9)](_0x103c8e=>_0x103c8e[_0x1b361a(0x268)](_0x399fe6['id']))[_0x1b361a(0x265)](_0xc90d24=>this[_0x1b361a(0x26c)](_0xc90d24)),this[_0x1b361a(0x26d)]=!0x1,this[_0x1b361a(0x242)][_0x1b361a(0x220)][_0x1b361a(0x252)]();}async[_0x16874d(0x1fb)](){const _0x48defc=_0x16874d;return this[_0x48defc(0x266)][_0x48defc(0x246)][_0x48defc(0x247)](()=>{const _0x387daa=_0x48defc;this[_0x387daa(0x26d)]=!0x1,this[_0x387daa(0x242)][_0x387daa(0x220)][_0x387daa(0x252)]();});}[_0x16874d(0x216)](_0x3b20c4,_0x404179){const _0x1d6ae2=_0x16874d;this[_0x1d6ae2(0x242)][_0x1d6ae2(0x263)][_0x1d6ae2(0x216)](_0x3b20c4,_0x404179);}[_0x16874d(0x1de)](_0x146eb3){const _0x3a4b92=_0x16874d;this[_0x3a4b92(0x242)][_0x3a4b92(0x263)][_0x3a4b92(0x1de)](_0x146eb3);}[_0x16874d(0x1e4)](_0x2fa1d6,_0x3cfd82){const _0x49aae3=_0x16874d;this[_0x49aae3(0x242)][_0x49aae3(0x263)][_0x49aae3(0x1e4)](_0x2fa1d6,_0x3cfd82);}[_0x16874d(0x1ff)](_0x40c7b7){const _0x49e8e1=_0x16874d;this[_0x49e8e1(0x242)][_0x49e8e1(0x263)][_0x49e8e1(0x1ff)](_0x40c7b7);}[_0x16874d(0x1db)](_0x7bac38){const _0x187bf0=_0x16874d;this[_0x187bf0(0x242)][_0x187bf0(0x263)][_0x187bf0(0x1db)](_0x7bac38);}[_0x16874d(0x249)](){const _0x229c4e=_0x16874d;this[_0x229c4e(0x242)][_0x229c4e(0x263)][_0x229c4e(0x249)]();}[_0x16874d(0x21d)](){const _0x374b44=_0x16874d;this[_0x374b44(0x242)][_0x374b44(0x263)][_0x374b44(0x21d)]();}[_0x16874d(0x248)](_0x5d0105,_0x16940f,_0x2e36e4){const _0x9472fc=_0x16874d;this[_0x9472fc(0x242)][_0x9472fc(0x263)][_0x9472fc(0x248)](_0x5d0105,_0x16940f,_0x2e36e4);}[_0x16874d(0x1fc)](){const _0x14d6ef=_0x16874d;this[_0x14d6ef(0x242)][_0x14d6ef(0x263)][_0x14d6ef(0x1fc)](),this[_0x14d6ef(0x242)][_0x14d6ef(0x263)][_0x14d6ef(0x1da)](this[_0x14d6ef(0x1f4)]());}[_0x16874d(0x1d6)](_0x1ba8f3){const _0x1cdb55=_0x16874d;this[_0x1cdb55(0x242)][_0x1cdb55(0x263)][_0x1cdb55(0x1d6)](_0x1ba8f3);}[_0x16874d(0x1fe)](_0x37f512){const _0xe542c0=_0x16874d;this[_0xe542c0(0x242)][_0xe542c0(0x263)][_0xe542c0(0x1e9)](_0x37f512[_0xe542c0(0x23b)]),this[_0xe542c0(0x242)][_0xe542c0(0x263)][_0xe542c0(0x250)](_0x37f512[_0xe542c0(0x1d5)]),this[_0xe542c0(0x242)][_0xe542c0(0x263)][_0xe542c0(0x1da)](this[_0xe542c0(0x1f4)](_0x37f512));}[_0x16874d(0x260)](_0x1baf1e,_0x37007a){const _0x5dc50f=_0x16874d;this[_0x5dc50f(0x242)][_0x5dc50f(0x263)][_0x5dc50f(0x262)](_0x1baf1e),_0x37007a&&this[_0x5dc50f(0x242)][_0x5dc50f(0x263)][_0x5dc50f(0x1df)](!0x1);}[_0x16874d(0x22b)](_0x3b33f0){const _0x15dcf7=_0x16874d;this[_0x15dcf7(0x1cb)]=_0x3b33f0;}[_0x16874d(0x215)](_0x297f86){const _0x538c35=_0x16874d;this[_0x538c35(0x242)][_0x538c35(0x220)][_0x538c35(0x215)](_0x297f86);}[_0x16874d(0x1dd)](){const _0x4b16e7=_0x16874d;this[_0x4b16e7(0x240)](_0x1d7aed(this[_0x4b16e7(0x25a)][_0x4b16e7(0x222)],_0x4b16e7(0x255)));}[_0x16874d(0x240)](_0x18c675,_0x1fb5b3=!0x1){const _0x29dfb7=_0x16874d;if(_0x1fb5b3&&!_0x235c00()&&_0x18c675[_0x29dfb7(0x1f5)])return this[_0x29dfb7(0x242)][_0x29dfb7(0x1d7)][_0x29dfb7(0x20a)]='',void this[_0x29dfb7(0x1e0)](_0x18c675);this[_0x29dfb7(0x242)][_0x29dfb7(0x1d7)][_0x29dfb7(0x20a)]=_0x18c675;}[_0x16874d(0x20c)](_0x5c53ba){const _0x2c7b53=_0x16874d,_0x451ee7=this[_0x2c7b53(0x1d1)](_0x5c53ba);this[_0x2c7b53(0x242)][_0x2c7b53(0x220)][_0x2c7b53(0x20c)](_0x451ee7);}[_0x16874d(0x1e0)](_0x55a9c9){const _0xff5cf6=_0x16874d;let _0x534a99=0x0;clearInterval(this[_0xff5cf6(0x207)]),this[_0xff5cf6(0x207)]=setInterval(()=>{const _0x3d743b=_0xff5cf6;this[_0x3d743b(0x242)][_0x3d743b(0x1d7)][_0x3d743b(0x20a)]=this[_0x3d743b(0x242)][_0x3d743b(0x1d7)][_0x3d743b(0x20a)]+_0x55a9c9[_0x534a99],_0x534a99++,_0x534a99===_0x55a9c9[_0x3d743b(0x1f5)]&&clearInterval(this[_0x3d743b(0x207)]);},0x1e);}[_0x16874d(0x232)](_0x17b212){const _0xecd03d=_0x16874d;this[_0xecd03d(0x242)][_0xecd03d(0x1d7)][_0xecd03d(0x1fd)]=_0x17b212;}[_0x16874d(0x1d1)](_0x5a003d){const _0x1a4753=_0x16874d;return _0x5a003d?_0x5a003d[_0x1a4753(0x23b)]&&_0x5a003d[_0x1a4753(0x1d5)]?_0x1d7aed(this[_0x1a4753(0x25a)][_0x1a4753(0x222)],_0x1a4753(0x23d)):_0x5a003d[_0x1a4753(0x23b)]?_0x1d7aed(this[_0x1a4753(0x25a)][_0x1a4753(0x222)],_0x1a4753(0x244)):_0x5a003d[_0x1a4753(0x1d5)]?_0x1d7aed(this[_0x1a4753(0x25a)][_0x1a4753(0x222)],_0x1a4753(0x270)):_0x1d7aed(this[_0x1a4753(0x25a)][_0x1a4753(0x222)],_0x1a4753(0x23c)):'';}[_0x16874d(0x1f4)](_0x230280){const _0x5e7d17=_0x16874d;return _0x230280?_0x230280[_0x5e7d17(0x23b)]&&_0x230280[_0x5e7d17(0x1d5)]?_0x1d7aed(this[_0x5e7d17(0x25a)][_0x5e7d17(0x222)],_0x5e7d17(0x231)):_0x230280[_0x5e7d17(0x23b)]?_0x1d7aed(this[_0x5e7d17(0x25a)][_0x5e7d17(0x222)],_0x5e7d17(0x1cd)):_0x230280[_0x5e7d17(0x1d5)]?_0x1d7aed(this[_0x5e7d17(0x25a)][_0x5e7d17(0x222)],_0x5e7d17(0x1ef)):_0x1d7aed(this[_0x5e7d17(0x25a)][_0x5e7d17(0x222)],_0x5e7d17(0x205)):_0x1d7aed(this[_0x5e7d17(0x25a)][_0x5e7d17(0x222)],_0x5e7d17(0x205));}[_0x16874d(0x1ec)](_0x186b2f,_0xe73f21,_0x451419,_0x3f1f29){const _0x19e450=_0x16874d;this[_0x19e450(0x242)][_0x19e450(0x1ec)](_0x186b2f,_0xe73f21,_0x451419,_0x3f1f29);}[_0x16874d(0x206)](_0x1558d2){const _0x9546ae=_0x16874d;this[_0x9546ae(0x242)][_0x9546ae(0x206)](_0x1558d2);}[_0x16874d(0x228)](){const _0x5c1f43=_0x16874d;this[_0x5c1f43(0x242)][_0x5c1f43(0x263)][_0x5c1f43(0x228)]();}[_0x16874d(0x256)](_0x8a940c,_0x1ce572){const _0x6e5af4=_0x16874d;this[_0x6e5af4(0x242)][_0x6e5af4(0x220)][_0x6e5af4(0x264)](_0x8a940c,_0x1ce572);}[_0x16874d(0x226)](){const _0x5220df=_0x16874d;this[_0x5220df(0x242)][_0x5220df(0x220)][_0x5220df(0x226)]();}[_0x16874d(0x23a)](){const _0x427091=_0x16874d;this[_0x427091(0x242)][_0x427091(0x263)][_0x427091(0x1cf)]=!0x0;}[_0x16874d(0x20e)](){const _0x20e308=_0x16874d;this[_0x20e308(0x242)][_0x20e308(0x263)][_0x20e308(0x1cf)]=!0x1;}}function _0x4a65(){const _0xd532fa=['value','delegate','enqueue','error-message','last','clearConversationContextUI','conversation-start','addFeedItemUserMessage','chatFeed','config','locale','destroy','updateFeedItemAIReplySuggestionPartState','enableModelSelector','startAutoScroll','view','focusPromptInput','stopInteraction','commands','setFeedItemRenderingStrategy','_interactionPromiseResolver','children','chat','95494gpaqFz','createConversation','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','setIsMaximized','getItemIds','updateReplyItem','AI_CHAT_WELCOME_MESSAGE','startInteraction','has','ai.chat.context.searchInputVisibleFrom','markItemAsDone','disableControls','isWebSearchEnabled','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','TrackChanges','isLoading','setConversationTitle','userMessage','_view','AITabs','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','isPremiumPlugin','queueEmptyPromise','then','updateResourceState','clearPendingContextUI','updateSuggestionPartState','10ckxoub','from','ai.chat.models.modelSelectorAlwaysVisible','10HCopNn','showDiff','setReasoning','isModelAvailable','stopAutoScroll','removeFeedInteraction','updateSuggestionItem','AI_CHAT_HEADING','scrollFeedToSuggestion','addTab','3217840VDMIul','areActionsDisabled','context','isPending','remove','ai-reply','ai.availableReplyActions','options','setSelectedModel','insertSuggestion','setModel','chatControls','scrollToSuggestion','forEach','_promiseQueue','</p>','startsWith','ai-suggestion-reply','removeItem','88tfKBCc','markFeedItemAsDone','isBusy','AIChatUI','updateFeedInteractionHeader','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','plugins','addFeedItemStaticMessage','quickActionData','feedItemRenderingStrategy','contextItems','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addItem','isDisabled','<p>','_getLoadingMessage','updateWebSources','setModelList','renderingStrategy','isReasoningEnabled','setAddContextOptions','chatHeader','updateFeedItemAIReplySuggestionContent','addFeedItemAISuggestion','setInputPlaceholder','setConversationContext','2542941TudlfL','resetConversationTitle','removeContextItem','disableModelSelector','_animateConversationTitle','interactionId','135179QJvRTK','isDone','setContextItemLoading','displayedPrompt','clear','availableModels','addFeedInteractionHeader','setWebSearch','streaming','isVisible','populateSourceResourceBalloon','3106488LYVlUI','user-message','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','138615OhVKrz','updateFeedItemAIReplySources','set','requires','_getInputPlaceholder','length','toggleSuggestionDisplayMode','updateFeedItemAIReplyContent','1728ZHoQAV','filter','bind','finishInteraction','resetMessageInput','isMaximized','updateCapabilities','setIsUploadInProgress','12sVjSTJ','addFeedItemError','1188955QDAzyv','get','values','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','closeSourceResourceBalloon','_titleAnimationInterval','addFeedItemAIReply','isOfficialPlugin','label','pluginName','setLoadingMessage','showResizeButton','enableControls','abort','find','trackChanges','isTrackChangesOn','interaction-header','capabilities','toggleLoadingSkeleton','addContextItem','_isTrackChangesCommandValueBound'];_0x4a65=function(){return _0xd532fa;};return _0x4a65();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x436f(_0x5d07a4,_0x542101){const _0x23d916=_0x23d9();return _0x436f=function(_0x436fce,_0xd903e0){_0x436fce=_0x436fce-0x192;let _0x3ffbf0=_0x23d916[_0x436fce];return _0x3ffbf0;},_0x436f(_0x5d07a4,_0x542101);}const _0x46c5be=_0x436f;(function(_0x276114,_0x117861){const _0x59522a=_0x436f,_0x42ddb7=_0x276114();while(!![]){try{const _0x1a24a3=parseInt(_0x59522a(0x19a))/0x1*(-parseInt(_0x59522a(0x193))/0x2)+-parseInt(_0x59522a(0x1b3))/0x3+-parseInt(_0x59522a(0x1b7))/0x4*(parseInt(_0x59522a(0x1da))/0x5)+-parseInt(_0x59522a(0x1f7))/0x6*(-parseInt(_0x59522a(0x1e6))/0x7)+parseInt(_0x59522a(0x1f3))/0x8+parseInt(_0x59522a(0x1b6))/0x9+-parseInt(_0x59522a(0x1fd))/0xa*(parseInt(_0x59522a(0x1b0))/0xb);if(_0x1a24a3===_0x117861)break;else _0x42ddb7['push'](_0x42ddb7['shift']());}catch(_0x2d5d1e){_0x42ddb7['push'](_0x42ddb7['shift']());}}}(_0x23d9,0xb0e7d));function _0x23d9(){const _0x456d7d=['url-','ai-chat-resource-load-failed','fetchDocument','_isResourceInContext','addUrlToContext','isCurrentDocumentInContext','_addContextItem','end','_toggleAddCurrentDocumentOptionVisibility','_conversationContextItems','URL','4265oBSvZF','_updateResourceInContextState','isInContext','updateCurrentDocument','version','ai-chat-url-upload-failed','uploadUrl','getSentContextItems','map','filter','label','_getCustomSourcesInitialState','35pCOiVr','code','resourceId','addCurrentDocumentToContext','start','length','size','_connector','sessionId','removeFromContext','text/markdown','contextItemRemoved','startsWith','127544RnyPDx','find','type','current-document','1105854tsyKqJ','_findSourceIdsByResourceId','isReadOnly','error','_mapContextItemToRequestData','TEXT','10vlYuCv','object\x20with\x20content\x20and\x20type\x20properties','content','attributes','MARKDOWN','abortController','text/html','string','files','_convertTextResourceToFile','HTML','files-','data','contextItemAdded','_ongoingUploads','hidden','uploadProgressChanged','FILE','urls','removeSelectionFromContext','getDocument','contextItemLoadingEnded','addSelectionToContext','contextSent','all','isCurrentDocumentInConversation','uploadDocument','stack','document','_startUploadOperation','ai-chat-resource-no-data','ai-chat-context-unsupported-type','file-','loadSourceResources','abort','ai-chat-context-invalid-data','_finishContextItemLoading','populateFromMessage','2DsZtXp','get','init','sourceResourcesLoaded','_pendingContextItems','DOCUMENT','_ongoingUploadOperations','1087226tDyVPS','message','values','getData','ai-chat-document-upload-failed','clearPendingContextItems','delete','text/plain','forEach','sources','ai-chat-source-not-found','enabled','_ownerId','getId','uiId','_addToConversationContextItem','addContextOptionsChanged','name','SELECTION','_config','isHidden','resources','1404469BdUQed','uploadFile','Current\x20document','163143OAUYyB','isSelectionInContext','ai-request-aborted','10052694qoRqyG','284KMdHDG','getResources','push','object','mapContextItemsToRequestData','File','fire','getPendingContextItems','_createContextItemFromContent','set','_addContextOptionsState','from','ai-chat-source-resources-load-failed','selection','resourceStateChanged','_removeContextItem','_setAddContextOptionsDefaultState','addResourceToContext','_finishUploadOperation','addFilesToContext','url','has','addToConversationContext','ai-chat-file-upload-failed'];_0x23d9=function(){return _0x456d7d;};return _0x23d9();}import{CKEditorError as _0xc9a178,ObservableMixin as _0x393ed7,uid as _0x4465ce}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x1a5e1a,AIContextTextResourceType as _0x1fe1d7}from'../../aicore/model/aicontext.js';import{escape as _0x15a7bf}from'es-toolkit/compat';import{errorsMap as _0xa71d7e}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x46c5be(0x20a),_0x46c5be(0x1f1),_0x46c5be(0x212),_0x46c5be(0x214),_0x46c5be(0x1fa),_0x46c5be(0x1aa),_0x46c5be(0x196),_0x46c5be(0x1c5),_0x46c5be(0x20d)];export class AIChatContext extends _0x393ed7(){[_0x46c5be(0x1ed)];[_0x46c5be(0x1ad)];[_0x46c5be(0x1a6)];constructor({connector:_0x179590,config:_0x369fd5,ownerId:_0xcbbe1a}){const _0x19be45=_0x46c5be;super(),this[_0x19be45(0x1ed)]=_0x179590,this[_0x19be45(0x1ad)]=_0x369fd5,this[_0x19be45(0x1a6)]=_0xcbbe1a;}[_0x46c5be(0x195)](){const _0x2dd0ab=_0x46c5be;this[_0x2dd0ab(0x197)]=new Map(),this[_0x2dd0ab(0x1d8)]=new Map(),this[_0x2dd0ab(0x20b)]=new Map(),this[_0x2dd0ab(0x199)]=new Map(),this[_0x2dd0ab(0x1c7)]();}[_0x46c5be(0x1be)](){const _0x4aa94a=_0x46c5be;return this[_0x4aa94a(0x197)];}async[_0x46c5be(0x192)](_0x4c5811){const _0x37f998=_0x46c5be,_0x54009a=await this[_0x37f998(0x1bf)](_0x4c5811);return this[_0x37f998(0x1a9)](_0x54009a),_0x37f998(0x1f6)===_0x54009a[_0x37f998(0x1a8)]&&this[_0x37f998(0x1d7)](),_0x54009a;}async[_0x46c5be(0x1bf)](_0x433ebe){const _0x4e22c3=_0x46c5be;if(_0x433ebe[_0x4e22c3(0x1f5)]===_0x1a5e1a[_0x4e22c3(0x198)]){const _0x552a7a=await this[_0x4e22c3(0x1ed)][_0x4e22c3(0x1d1)](this[_0x4e22c3(0x1a6)],_0x433ebe['id'])[_0x4e22c3(0x211)]();return{'id':_0x4e22c3(0x1f6),'uiId':_0x4e22c3(0x1f6),'label':_0x4e22c3(0x1b2),'type':_0x433ebe[_0x4e22c3(0x1f5)],'content':_0x552a7a[_0x4e22c3(0x1ff)],'hidden':this[_0x4e22c3(0x1d8)][_0x4e22c3(0x1cc)](_0x4e22c3(0x1f6)),'version':_0x552a7a[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1de)],'sessionId':_0x552a7a[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1ee)]};}return{'id':_0x433ebe['id'],'uiId':_0x433ebe['id'],'label':_0x433ebe[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1e4)]||_0x433ebe[_0x4e22c3(0x1ab)]||_0x433ebe[_0x4e22c3(0x1cb)]||_0x433ebe['id'],'type':_0x433ebe[_0x4e22c3(0x1f5)],..._0x433ebe?.[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1e8)]?{'resourceId':_0x433ebe[_0x4e22c3(0x200)]?.[_0x4e22c3(0x1e8)]}:{}};}[_0x46c5be(0x1e1)](){const _0x1203a2=_0x46c5be;return new Map(this[_0x1203a2(0x1d8)]);}[_0x46c5be(0x1ef)](_0x502314){const _0x2d3499=_0x46c5be,_0x557594=this[_0x2d3499(0x197)][_0x2d3499(0x194)](_0x502314);_0x557594?.[_0x2d3499(0x1f9)]||this[_0x2d3499(0x1c6)](_0x502314);}[_0x46c5be(0x19f)](){const _0x506843=_0x46c5be;if(0x0===this[_0x506843(0x197)][_0x506843(0x1ec)])return;for(const _0x416307 of this[_0x506843(0x197)][_0x506843(0x19c)]())this[_0x506843(0x1c6)](_0x416307[_0x506843(0x1a8)]);const _0x4e6fb9=this[_0x506843(0x1d8)][_0x506843(0x194)](_0x506843(0x1f6))||this[_0x506843(0x197)][_0x506843(0x194)](_0x506843(0x1f6));_0x4e6fb9&&this[_0x506843(0x1d5)]({..._0x4e6fb9,'isReadOnly':!0x0,'hidden':!0x0});}[_0x46c5be(0x1cd)](_0x381f9b){const _0x400ca3=_0x46c5be;for(const _0x33337d of _0x381f9b[_0x400ca3(0x19c)]())this[_0x400ca3(0x1a9)](_0x33337d);this[_0x400ca3(0x19f)](),this[_0x400ca3(0x1bd)](_0x400ca3(0x214),{'contextItems':Array[_0x400ca3(0x1c2)](this[_0x400ca3(0x1e1)]()[_0x400ca3(0x19c)]())});}[_0x46c5be(0x1d4)](){const _0x2b070d=_0x46c5be;return this[_0x2b070d(0x197)][_0x2b070d(0x1cc)](_0x2b070d(0x1f6));}[_0x46c5be(0x1b4)](){const _0x551ec3=_0x46c5be;return this[_0x551ec3(0x197)][_0x551ec3(0x1cc)](_0x551ec3(0x1c4));}[_0x46c5be(0x216)](){const _0x257fdd=_0x46c5be;return this[_0x257fdd(0x1d8)][_0x257fdd(0x1cc)](_0x257fdd(0x1f6));}static[_0x46c5be(0x1bb)](_0x14a0b2){const _0x2cc0db=_0x46c5be;return Array[_0x2cc0db(0x1c2)](_0x14a0b2[_0x2cc0db(0x19c)]())[_0x2cc0db(0x1e2)](_0x108719=>this[_0x2cc0db(0x1fb)](_0x108719))[_0x2cc0db(0x1e3)](_0x439f26=>null!==_0x439f26);}async[_0x46c5be(0x1ca)](_0x158d4e,_0x2f6fbb,_0x45e3ff=_0x1a5e1a[_0x46c5be(0x20e)]){const _0x476074=_0x46c5be,_0x56070f=_0x476074(0x208)+_0x4465ce();this[_0x476074(0x21a)](_0x56070f);try{await Promise[_0x476074(0x215)](_0x158d4e[_0x476074(0x1e2)](async _0x48ac89=>{const _0x5358d7=_0x476074,_0x48632a=_0x5358d7(0x21d)+_0x4465ce(),_0x50df47=_0x15a7bf(_0x48ac89[_0x5358d7(0x1ab)]);try{this[_0x5358d7(0x1d5)]({'type':_0x45e3ff,'label':_0x2f6fbb?.[_0x5358d7(0x1e4)]||_0x50df47,'uiId':_0x48632a,'resourceId':_0x2f6fbb?.[_0x5358d7(0x1e8)]},!0x0);const _0x30733b=this[_0x5358d7(0x1ed)][_0x5358d7(0x1b1)](this[_0x5358d7(0x1a6)],_0x48ac89,_0x2f6fbb);this[_0x5358d7(0x20b)][_0x5358d7(0x1c0)](_0x48632a,_0x30733b[_0x5358d7(0x202)]);const {id:_0x20abcc}=await _0x30733b[_0x5358d7(0x1a7)]();this[_0x5358d7(0x20b)][_0x5358d7(0x1a0)](_0x48632a),this[_0x5358d7(0x221)]({'type':_0x45e3ff,'id':_0x20abcc,'label':_0x2f6fbb?.[_0x5358d7(0x1e4)]||_0x50df47,'uiId':_0x48632a,'resourceId':_0x2f6fbb?.[_0x5358d7(0x1e8)]},!0x1);}catch(_0x4cab0f){this[_0x5358d7(0x20b)][_0x5358d7(0x1a0)](_0x48632a);if(!(_0x4cab0f instanceof _0xc9a178&&_0x4cab0f[_0x5358d7(0x19b)][_0x5358d7(0x1f2)](_0x5358d7(0x1b5)))){const _0x5a6ded=_0xa71d7e[_0x5358d7(0x194)](_0x4cab0f[_0x5358d7(0x1e7)])||_0x5358d7(0x1ce),_0x4c44af=new _0xc9a178(_0x5a6ded,null,{'fileName':_0x50df47,..._0x4cab0f});_0x4c44af[_0x5358d7(0x218)]=_0x4cab0f[_0x5358d7(0x218)],this[_0x5358d7(0x1bd)](_0x5358d7(0x1fa),{'error':_0x4c44af});}this[_0x5358d7(0x1c6)](_0x48632a);}}));}finally{this[_0x476074(0x1c9)](_0x56070f);}}[_0x46c5be(0x1e9)](_0xc6066c){const _0x3972b7=_0x46c5be;if(this[_0x3972b7(0x1d4)]())return;const _0x8847c9={'type':_0x1a5e1a[_0x3972b7(0x198)],'uiId':_0x3972b7(0x1f6),'label':_0xc6066c,'isReadOnly':this[_0x3972b7(0x1d8)][_0x3972b7(0x1cc)](_0x3972b7(0x1f6)),'hidden':this[_0x3972b7(0x1d8)][_0x3972b7(0x1cc)](_0x3972b7(0x1f6))};this[_0x3972b7(0x1d5)](_0x8847c9);}async[_0x46c5be(0x1dd)](_0x1beaea,_0xddd492,_0x5a139a,_0x381e96){const _0x5a9f8a=_0x46c5be,_0x573595=this[_0x5a9f8a(0x197)][_0x5a9f8a(0x194)](_0x5a9f8a(0x1f6));if(_0x573595&&_0x1beaea){_0x573595[_0x5a9f8a(0x1c4)]=_0x381e96?_0x381e96[_0x5a9f8a(0x1e2)](_0x530879=>({'start':_0x530879[_0x5a9f8a(0x1ea)],'end':_0x530879[_0x5a9f8a(0x1d6)]})):[];try{if(_0x573595[_0x5a9f8a(0x1de)]===_0xddd492)return;const {id:_0x3ceda6}=await this[_0x5a9f8a(0x1ed)][_0x5a9f8a(0x217)](this[_0x5a9f8a(0x1a6)],_0x1beaea,{'version':_0xddd492,'sessionId':_0x5a139a})[_0x5a9f8a(0x1a7)]();_0x573595['id']=_0x3ceda6,_0x573595[_0x5a9f8a(0x1ff)]=_0x1beaea,_0x573595[_0x5a9f8a(0x1de)]=_0xddd492,_0x573595[_0x5a9f8a(0x1ee)]=_0x5a139a;}catch(_0x4798d6){const _0x2781c8=new _0xc9a178(_0x5a9f8a(0x19e),null);_0x2781c8[_0x5a9f8a(0x218)]=_0x4798d6[_0x5a9f8a(0x218)],this[_0x5a9f8a(0x1bd)](_0x5a9f8a(0x1fa),{'error':_0x2781c8});}}}[_0x46c5be(0x213)](_0x4b6c70){const _0x4da661=_0x46c5be;this[_0x4da661(0x1d5)]({'type':_0x1a5e1a[_0x4da661(0x1ac)],'label':_0x4b6c70,'uiId':_0x4da661(0x1c4),'content':_0x4b6c70});}[_0x46c5be(0x210)](){const _0x242c97=_0x46c5be;this[_0x242c97(0x1c6)](_0x242c97(0x1c4));}async[_0x46c5be(0x1d3)](_0x11d018,_0x3247c9){const _0x39d633=_0x46c5be,_0x516897=_0x39d633(0x1cf)+_0x4465ce();this[_0x39d633(0x21a)](_0x516897);const _0x46518d=_0x39d633(0x1cf)+_0x4465ce();try{this[_0x39d633(0x1d5)]({'type':_0x1a5e1a[_0x39d633(0x1d9)],'label':_0x3247c9?.[_0x39d633(0x1e4)]||_0x11d018,'uiId':_0x46518d,'resourceId':_0x3247c9?.[_0x39d633(0x1e8)]},!0x0);const _0x333630=this[_0x39d633(0x1ed)][_0x39d633(0x1e0)](this[_0x39d633(0x1a6)],_0x11d018,_0x3247c9);this[_0x39d633(0x20b)][_0x39d633(0x1c0)](_0x46518d,_0x333630[_0x39d633(0x202)]);const {id:_0x2eaf85}=await _0x333630[_0x39d633(0x1a7)]();this[_0x39d633(0x20b)][_0x39d633(0x1a0)](_0x46518d),this[_0x39d633(0x221)]({'type':_0x1a5e1a[_0x39d633(0x1d9)],'id':_0x2eaf85,'label':_0x3247c9?.[_0x39d633(0x1e4)]||_0x11d018,'uiId':_0x46518d,'resourceId':_0x3247c9?.[_0x39d633(0x1e8)]},!0x1);}catch(_0x472751){this[_0x39d633(0x20b)][_0x39d633(0x1a0)](_0x46518d),(_0x472751[_0x39d633(0x19b)][_0x39d633(0x1f2)](_0x39d633(0x1b5))||this[_0x39d633(0x1bd)](_0x39d633(0x1fa),{'error':new _0xc9a178(_0x39d633(0x1df),this,{'url':_0x11d018,'originalError':_0x472751}),'url':_0x11d018}),this[_0x39d633(0x1c6)](_0x46518d));}finally{this[_0x39d633(0x1c9)](_0x516897);}}async[_0x46c5be(0x21e)](_0x5200be,_0xb2daf9,_0x2aed29){const _0x1399a6=_0x46c5be,_0x44756d=this[_0x1399a6(0x1c1)][_0x1399a6(0x1a3)][_0x1399a6(0x1f4)](_0x17eb79=>_0x17eb79['id']===_0x5200be);if(!_0x44756d)return this[_0x1399a6(0x1bd)](_0x1399a6(0x1fa),{'error':new _0xc9a178(_0x1399a6(0x1a4),this,{'sourceId':_0x5200be}),'sourceId':_0x5200be}),[];try{const _0x1d38e4=(await _0x44756d[_0x1399a6(0x1b8)](_0xb2daf9))[_0x1399a6(0x1e2)](_0x310097=>{const _0x42e87e=_0x1399a6,_0x199fc9=this[_0x42e87e(0x1d2)](_0x310097['id']);return{..._0x310097,'isInContext':_0x199fc9};});return _0x44756d[_0x1399a6(0x1af)]=_0x1d38e4,this[_0x1399a6(0x1bd)](_0x1399a6(0x196),{'sourceId':_0x5200be,'source':_0x44756d,'resources':_0x1d38e4,'uid':_0x2aed29}),_0x1d38e4;}catch(_0x231aa2){return this[_0x1399a6(0x1bd)](_0x1399a6(0x1fa),{'error':new _0xc9a178(_0x1399a6(0x1c3),this,{'sourceId':_0x5200be,'originalError':_0x231aa2}),'sourceId':_0x5200be,'sourceLabel':_0x44756d[_0x1399a6(0x1e4)]}),[];}}async[_0x46c5be(0x1c8)](_0x19cb3b,_0x53a761){const _0x3e5ec8=_0x46c5be;if(this[_0x3e5ec8(0x1d2)](_0x53a761['id']))return;let _0x16c172=_0x53a761[_0x3e5ec8(0x209)];if(!_0x16c172&&_0x19cb3b[_0x3e5ec8(0x19d)])try{_0x16c172=await _0x19cb3b[_0x3e5ec8(0x19d)](_0x53a761['id']);}catch(_0x5c882a){return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x1d0),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'originalError':_0x5c882a}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});}if(_0x16c172)switch(_0x53a761[_0x3e5ec8(0x1f5)]){case _0x1a5e1a[_0x3e5ec8(0x1d9)]:if(_0x3e5ec8(0x204)!=typeof _0x16c172)return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x220),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'expectedType':_0x3e5ec8(0x204),'actualType':typeof _0x16c172}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});await this[_0x3e5ec8(0x1d3)](_0x16c172,{'label':_0x53a761[_0x3e5ec8(0x1e4)],'resourceId':_0x53a761['id']});break;case _0x1a5e1a[_0x3e5ec8(0x20e)]:if(!(_0x16c172 instanceof File))return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x220),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'expectedType':_0x3e5ec8(0x1bc),'actualType':typeof _0x16c172}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});await this[_0x3e5ec8(0x1ca)]([_0x16c172],{'label':_0x53a761[_0x3e5ec8(0x1e4)],'resourceId':_0x53a761['id']});break;case _0x1a5e1a[_0x3e5ec8(0x1fc)]:if(_0x3e5ec8(0x1ba)!=typeof _0x16c172||!(_0x3e5ec8(0x1ff)in _0x16c172)||!(_0x3e5ec8(0x1f5)in _0x16c172))return void this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x220),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'expectedType':_0x3e5ec8(0x1fe),'actualType':typeof _0x16c172}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});_0x16c172=AIChatContext[_0x3e5ec8(0x206)](_0x16c172,_0x53a761[_0x3e5ec8(0x1e4)]),await this[_0x3e5ec8(0x1ca)]([_0x16c172],{'label':_0x53a761[_0x3e5ec8(0x1e4)],'resourceId':_0x53a761['id']},_0x1a5e1a[_0x3e5ec8(0x1fc)]);break;default:this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x21c),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id'],'resourceType':_0x53a761[_0x3e5ec8(0x1f5)]}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});}else this[_0x3e5ec8(0x1bd)](_0x3e5ec8(0x1fa),{'error':new _0xc9a178(_0x3e5ec8(0x21b),this,{'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']}),'resourceId':_0x53a761['id'],'sourceId':_0x19cb3b['id']});}static[_0x46c5be(0x206)](_0x336ad9,_0x3afad1){const _0x1fc829=_0x46c5be;switch(_0x336ad9[_0x1fc829(0x1f5)]){case _0x1fe1d7[_0x1fc829(0x201)]:return new File([_0x336ad9[_0x1fc829(0x1ff)]],_0x3afad1,{'type':_0x1fc829(0x1f0)});case _0x1fe1d7[_0x1fc829(0x207)]:return new File([_0x336ad9[_0x1fc829(0x1ff)]],_0x3afad1,{'type':_0x1fc829(0x203)});default:return new File([_0x336ad9[_0x1fc829(0x1ff)]],_0x3afad1,{'type':_0x1fc829(0x1a1)});}}static[_0x46c5be(0x1fb)](_0x2b6043){const _0x4ccc99=_0x46c5be;switch(_0x2b6043[_0x4ccc99(0x1f5)]){case _0x1a5e1a[_0x4ccc99(0x20e)]:return{'type':_0x1a5e1a[_0x4ccc99(0x20e)],'id':_0x2b6043['id']};case _0x1a5e1a[_0x4ccc99(0x1d9)]:return{'type':_0x1a5e1a[_0x4ccc99(0x1d9)],'id':_0x2b6043['id']};case _0x1a5e1a[_0x4ccc99(0x198)]:return{'type':_0x1a5e1a[_0x4ccc99(0x198)],'id':_0x2b6043['id'],..._0x2b6043[_0x4ccc99(0x1c4)]?.[_0x4ccc99(0x1eb)]&&{'selection':_0x2b6043[_0x4ccc99(0x1c4)]}};case _0x1a5e1a[_0x4ccc99(0x1fc)]:return{'type':_0x1a5e1a[_0x4ccc99(0x20e)],'id':_0x2b6043['id']};default:return null;}}[_0x46c5be(0x1d5)](_0x2d576a,_0x1d9366=!0x1){const _0x350bbe=_0x46c5be;if(this[_0x350bbe(0x197)][_0x350bbe(0x1c0)](_0x2d576a[_0x350bbe(0x1a8)],_0x2d576a),_0x2d576a[_0x350bbe(0x20c)]||this[_0x350bbe(0x1bd)](_0x350bbe(0x20a),{'contextItem':_0x2d576a,'isLoading':_0x1d9366}),_0x350bbe(0x1f6)===_0x2d576a[_0x350bbe(0x1a8)]&&this[_0x350bbe(0x1d7)](),_0x2d576a[_0x350bbe(0x1e8)]){const _0x28b803=this[_0x350bbe(0x1f8)](_0x2d576a[_0x350bbe(0x1e8)]);_0x28b803&&_0x28b803[_0x350bbe(0x1a2)](_0x5ce92b=>{const _0x3b4211=_0x350bbe;this[_0x3b4211(0x1db)](_0x5ce92b,_0x2d576a[_0x3b4211(0x1e8)],!0x0);});}}[_0x46c5be(0x1c6)](_0x22277f){const _0x357696=_0x46c5be,_0x506794=this[_0x357696(0x197)][_0x357696(0x194)](_0x22277f),_0x2740a4=this[_0x357696(0x20b)][_0x357696(0x194)](_0x22277f);if(_0x2740a4&&(_0x2740a4[_0x357696(0x21f)](),this[_0x357696(0x20b)][_0x357696(0x1a0)](_0x22277f)),_0x506794?.[_0x357696(0x1e8)]){const _0x2d7b47=this[_0x357696(0x1f8)](_0x506794[_0x357696(0x1e8)]);_0x2d7b47&&_0x2d7b47[_0x357696(0x1a2)](_0xd7ec2e=>{const _0x1a76e3=_0x357696;this[_0x1a76e3(0x1db)](_0xd7ec2e,_0x506794[_0x1a76e3(0x1e8)],!0x1);});}this[_0x357696(0x197)][_0x357696(0x1a0)](_0x22277f),this[_0x357696(0x1bd)](_0x357696(0x1f1),{'uiId':_0x22277f,'type':_0x506794?.[_0x357696(0x1f5)]}),_0x357696(0x1f6)===_0x22277f&&this[_0x357696(0x1d7)]();}[_0x46c5be(0x221)](_0xc30b83,_0x326e4a){const _0x20ea2c=_0x46c5be;if(this[_0x20ea2c(0x197)][_0x20ea2c(0x1cc)](_0xc30b83[_0x20ea2c(0x1a8)])&&(this[_0x20ea2c(0x197)][_0x20ea2c(0x1c0)](_0xc30b83[_0x20ea2c(0x1a8)],_0xc30b83),this[_0x20ea2c(0x1bd)](_0x20ea2c(0x212),{'contextItem':_0xc30b83,'isLoading':_0x326e4a}),_0xc30b83[_0x20ea2c(0x1e8)])){const _0x10fa5f=this[_0x20ea2c(0x1f8)](_0xc30b83[_0x20ea2c(0x1e8)]);_0x10fa5f&&_0x10fa5f[_0x20ea2c(0x1a2)](_0x30aaae=>{const _0x4043d6=_0x20ea2c;this[_0x4043d6(0x1db)](_0x30aaae,_0xc30b83[_0x4043d6(0x1e8)],!0x0);});}}[_0x46c5be(0x1a9)](_0x3615cd){const _0x528363=_0x46c5be;this[_0x528363(0x1d8)][_0x528363(0x1c0)](_0x3615cd[_0x528363(0x1a8)],_0x3615cd);}[_0x46c5be(0x1c7)](){const _0x450093=_0x46c5be;this[_0x450093(0x1c1)]={'document':{'enabled':!0x1!==this[_0x450093(0x1ad)]?.[_0x450093(0x219)]?.[_0x450093(0x1a5)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x450093(0x1ad)]?.[_0x450093(0x20f)]?.[_0x450093(0x1a5)]},'files':{'enabled':!0x1!==this[_0x450093(0x1ad)]?.[_0x450093(0x205)]?.[_0x450093(0x1a5)]},'sources':this[_0x450093(0x1e5)]()},this[_0x450093(0x1bd)](_0x450093(0x1aa),{'options':this[_0x450093(0x1c1)]});}[_0x46c5be(0x1e5)](){const _0x47c0e8=_0x46c5be;return this[_0x47c0e8(0x1ad)]?.[_0x47c0e8(0x1a3)]?.[_0x47c0e8(0x1e2)](_0x641a6c=>({..._0x641a6c,'resources':[]}))??[];}[_0x46c5be(0x1d7)](){const _0x2e073e=_0x46c5be,_0x32447f=this[_0x2e073e(0x1d4)]()||this[_0x2e073e(0x216)]();this[_0x2e073e(0x1c1)][_0x2e073e(0x219)][_0x2e073e(0x1ae)]=_0x32447f,this[_0x2e073e(0x1bd)](_0x2e073e(0x1aa),{'options':this[_0x2e073e(0x1c1)]});}[_0x46c5be(0x1d2)](_0x1e0236){const _0x10f7fc=_0x46c5be;for(const _0x4acb0f of this[_0x10f7fc(0x197)][_0x10f7fc(0x19c)]())if(_0x4acb0f[_0x10f7fc(0x1e8)]===_0x1e0236)return!0x0;for(const _0x39b80b of this[_0x10f7fc(0x1d8)][_0x10f7fc(0x19c)]())if(_0x39b80b[_0x10f7fc(0x1e8)]===_0x1e0236)return!0x0;return!0x1;}[_0x46c5be(0x1f8)](_0x4bf2e4){const _0x553e79=_0x46c5be,_0x559f13=[];for(const _0x2d7518 of this[_0x553e79(0x1c1)][_0x553e79(0x1a3)]){_0x2d7518[_0x553e79(0x1af)][_0x553e79(0x1f4)](_0x2ee3f9=>_0x2ee3f9['id']===_0x4bf2e4)&&_0x559f13[_0x553e79(0x1b9)](_0x2d7518['id']);}return 0x0===_0x559f13[_0x553e79(0x1eb)]?null:_0x559f13;}[_0x46c5be(0x1db)](_0x5ae3e1,_0x2373d7,_0x245c56){const _0x4ec466=_0x46c5be,_0x10bff3=this[_0x4ec466(0x1c1)][_0x4ec466(0x1a3)][_0x4ec466(0x1f4)](_0x499d0e=>_0x499d0e['id']===_0x5ae3e1);if(!_0x10bff3)return;const _0x3b26cb=_0x10bff3[_0x4ec466(0x1af)][_0x4ec466(0x1f4)](_0x3067cb=>_0x3067cb['id']===_0x2373d7);_0x3b26cb&&(_0x3b26cb[_0x4ec466(0x1dc)]=_0x245c56,this[_0x4ec466(0x1bd)](_0x4ec466(0x1c5),{'sourceId':_0x5ae3e1,'resourceId':_0x2373d7,'isInContext':_0x245c56}));}[_0x46c5be(0x21a)](_0x1da675){const _0x2363d8=_0x46c5be;this[_0x2363d8(0x199)][_0x2363d8(0x1c0)](_0x1da675,!0x0),this[_0x2363d8(0x199)][_0x2363d8(0x1ec)]&&this[_0x2363d8(0x1bd)](_0x2363d8(0x20d),{'isUploadInProgress':!0x0});}[_0x46c5be(0x1c9)](_0x948abc){const _0xfe4a78=_0x46c5be;this[_0xfe4a78(0x199)][_0xfe4a78(0x1a0)](_0x948abc),0x0===this[_0xfe4a78(0x199)][_0xfe4a78(0x1ec)]&&this[_0xfe4a78(0x1bd)](_0xfe4a78(0x20d),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x52d18f=_0x3f67;(function(_0x5b0ce9,_0x1c8ab1){const _0x89daf8=_0x3f67,_0x1b01c9=_0x5b0ce9();while(!![]){try{const _0x238e9d=-parseInt(_0x89daf8(0x21a))/0x1+-parseInt(_0x89daf8(0x22b))/0x2*(parseInt(_0x89daf8(0x1f2))/0x3)+-parseInt(_0x89daf8(0x242))/0x4*(-parseInt(_0x89daf8(0x1f7))/0x5)+parseInt(_0x89daf8(0x1fb))/0x6+-parseInt(_0x89daf8(0x24c))/0x7+parseInt(_0x89daf8(0x265))/0x8+parseInt(_0x89daf8(0x23e))/0x9;if(_0x238e9d===_0x1c8ab1)break;else _0x1b01c9['push'](_0x1b01c9['shift']());}catch(_0x2b100d){_0x1b01c9['push'](_0x1b01c9['shift']());}}}(_0x565e,0x7bcf8));import{CKEditorError as _0x3dbe0e,ObservableMixin as _0x991414,uid as _0x29edad}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x24af84,AIContextTextResourceType as _0x470c61}from'../../aicore/model/aicontext.js';import{escape as _0x51f37a}from'es-toolkit/compat';import{errorsMap as _0x4a8de0}from'../../errorsmap.js';function _0x3f67(_0x53e296,_0x235847){const _0x565e76=_0x565e();return _0x3f67=function(_0x3f67bd,_0x416d80){_0x3f67bd=_0x3f67bd-0x1db;let _0x884b3d=_0x565e76[_0x3f67bd];return _0x884b3d;},_0x3f67(_0x53e296,_0x235847);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x52d18f(0x1e5),_0x52d18f(0x1f0),_0x52d18f(0x213),_0x52d18f(0x1fe),_0x52d18f(0x20d),_0x52d18f(0x1ee),_0x52d18f(0x24d),_0x52d18f(0x259),_0x52d18f(0x1e1)];function _0x565e(){const _0x29b085=['isHidden','abort','startsWith','_getCustomSourcesInitialState','5497030GAcBKw','sourceResourcesLoaded','getSentContextItems','getId','MARKDOWN','attributes','removeFromContext','Current\x20document','populateFromMessage','getData','object\x20with\x20content\x20and\x20type\x20properties','_startUploadOperation','getDocument','resourceStateChanged','filter','all','has','map','addResourceToContext','addCurrentDocumentToContext','_pendingContextItems','uploadDocument','_mapContextItemToRequestData','version','sources','3973912hKlJDr','start','_finishContextItemLoading','HTML','name','ai-chat-document-upload-failed','urls','uiId','_ownerId','text/html','uploadProgressChanged','push','addFilesToContext','ai-chat-context-invalid-data','contextItemAdded','_addContextOptionsState','FILE','ai-chat-context-unsupported-type','from','code','_removeContextItem','find','mapContextItemsToRequestData','addContextOptionsChanged','selection','contextItemRemoved','clearPendingContextItems','7626UdlXUH','init','url','TEXT','addToConversationContext','1316835EdTuQF','addSelectionToContext','file-','files','1532712KzENIt','end','_toggleAddCurrentDocumentOptionVisibility','contextSent','enabled','forEach','_addToConversationContextItem','ai-chat-source-not-found','_connector','_addContextItem','uploadUrl','uploadFile','abortController','_convertTextResourceToFile','resources','content','length','ai-chat-url-upload-failed','error','resourceId','removeSelectionFromContext','set','isSelectionInContext','values','contextItemLoadingEnded','ai-chat-resource-no-data','message','hidden','size','document','object','275597zHhHYe','isCurrentDocumentInContext','text/markdown','_ongoingUploads','File','_isResourceInContext','ai-chat-file-upload-failed','isReadOnly','fetchDocument','sessionId','files-','label','ai-request-aborted','_ongoingUploadOperations','_config','type','text/plain','530CysiPn','url-','_findSourceIdsByResourceId','_setAddContextOptionsDefaultState','get','_updateResourceInContextState','DOCUMENT','isCurrentDocumentInConversation','fire','current-document','string','_createContextItemFromContent','updateCurrentDocument','_finishUploadOperation','addUrlToContext','delete','getPendingContextItems','ai-chat-source-resources-load-failed','URL','8664480pucSON','data','stack','isInContext','8ELuWmX','SELECTION','loadSourceResources','_conversationContextItems','ai-chat-resource-load-failed','getResources'];_0x565e=function(){return _0x29b085;};return _0x565e();}export class AIChatContext extends _0x991414(){[_0x52d18f(0x203)];[_0x52d18f(0x228)];[_0x52d18f(0x1df)];constructor({connector:_0x3a7f42,config:_0x2d2a37,ownerId:_0xfa571a}){const _0x2b0796=_0x52d18f;super(),this[_0x2b0796(0x203)]=_0x3a7f42,this[_0x2b0796(0x228)]=_0x2d2a37,this[_0x2b0796(0x1df)]=_0xfa571a;}[_0x52d18f(0x1f3)](){const _0x52e019=_0x52d18f;this[_0x52e019(0x260)]=new Map(),this[_0x52e019(0x245)]=new Map(),this[_0x52e019(0x21d)]=new Map(),this[_0x52e019(0x227)]=new Map(),this[_0x52e019(0x22e)]();}[_0x52d18f(0x23b)](){const _0x6f3671=_0x52d18f;return this[_0x6f3671(0x260)];}async[_0x52d18f(0x254)](_0x394817){const _0x13aad7=_0x52d18f,_0x2f4148=await this[_0x13aad7(0x236)](_0x394817);return this[_0x13aad7(0x201)](_0x2f4148),_0x13aad7(0x234)===_0x2f4148[_0x13aad7(0x1de)]&&this[_0x13aad7(0x1fd)](),_0x2f4148;}async[_0x52d18f(0x236)](_0x8ef278){const _0xddd98d=_0x52d18f;if(_0x8ef278[_0xddd98d(0x229)]===_0x24af84[_0xddd98d(0x231)]){const _0x47a949=await this[_0xddd98d(0x203)][_0xddd98d(0x222)](this[_0xddd98d(0x1df)],_0x8ef278['id'])[_0xddd98d(0x258)]();return{'id':_0xddd98d(0x234),'uiId':_0xddd98d(0x234),'label':_0xddd98d(0x253),'type':_0x8ef278[_0xddd98d(0x229)],'content':_0x47a949[_0xddd98d(0x20a)],'hidden':this[_0xddd98d(0x245)][_0xddd98d(0x25c)](_0xddd98d(0x234)),'version':_0x47a949[_0xddd98d(0x251)]?.[_0xddd98d(0x263)],'sessionId':_0x47a949[_0xddd98d(0x251)]?.[_0xddd98d(0x223)]};}return{'id':_0x8ef278['id'],'uiId':_0x8ef278['id'],'label':_0x8ef278[_0xddd98d(0x251)]?.[_0xddd98d(0x225)]||_0x8ef278[_0xddd98d(0x1db)]||_0x8ef278[_0xddd98d(0x1f4)]||_0x8ef278['id'],'type':_0x8ef278[_0xddd98d(0x229)],..._0x8ef278?.[_0xddd98d(0x251)]?.[_0xddd98d(0x20e)]?{'resourceId':_0x8ef278[_0xddd98d(0x251)]?.[_0xddd98d(0x20e)]}:{}};}[_0x52d18f(0x24e)](){const _0x3e8ba3=_0x52d18f;return new Map(this[_0x3e8ba3(0x245)]);}[_0x52d18f(0x252)](_0x7dd20a){const _0xfff085=_0x52d18f,_0x3641fc=this[_0xfff085(0x260)][_0xfff085(0x22f)](_0x7dd20a);_0x3641fc?.[_0xfff085(0x221)]||this[_0xfff085(0x1eb)](_0x7dd20a);}[_0x52d18f(0x1f1)](){const _0x55b2c4=_0x52d18f;if(0x0===this[_0x55b2c4(0x260)][_0x55b2c4(0x217)])return;for(const _0x12b789 of this[_0x55b2c4(0x260)][_0x55b2c4(0x212)]())this[_0x55b2c4(0x1eb)](_0x12b789[_0x55b2c4(0x1de)]);const _0x1f572e=this[_0x55b2c4(0x245)][_0x55b2c4(0x22f)](_0x55b2c4(0x234))||this[_0x55b2c4(0x260)][_0x55b2c4(0x22f)](_0x55b2c4(0x234));_0x1f572e&&this[_0x55b2c4(0x204)]({..._0x1f572e,'isReadOnly':!0x0,'hidden':!0x0});}[_0x52d18f(0x1f6)](_0x53133b){const _0x458135=_0x52d18f;for(const _0x34667f of _0x53133b[_0x458135(0x212)]())this[_0x458135(0x201)](_0x34667f);this[_0x458135(0x1f1)](),this[_0x458135(0x233)](_0x458135(0x1fe),{'contextItems':Array[_0x458135(0x1e9)](this[_0x458135(0x24e)]()[_0x458135(0x212)]())});}[_0x52d18f(0x21b)](){const _0x1c6bf9=_0x52d18f;return this[_0x1c6bf9(0x260)][_0x1c6bf9(0x25c)](_0x1c6bf9(0x234));}[_0x52d18f(0x211)](){const _0x538715=_0x52d18f;return this[_0x538715(0x260)][_0x538715(0x25c)](_0x538715(0x1ef));}[_0x52d18f(0x232)](){const _0x264bb9=_0x52d18f;return this[_0x264bb9(0x245)][_0x264bb9(0x25c)](_0x264bb9(0x234));}static[_0x52d18f(0x1ed)](_0x3cdb5e){const _0x209c05=_0x52d18f;return Array[_0x209c05(0x1e9)](_0x3cdb5e[_0x209c05(0x212)]())[_0x209c05(0x25d)](_0x406658=>this[_0x209c05(0x262)](_0x406658))[_0x209c05(0x25a)](_0x3eb2b1=>null!==_0x3eb2b1);}async[_0x52d18f(0x1e3)](_0x119234,_0x28fef5,_0x3a785e=_0x24af84[_0x52d18f(0x1e7)]){const _0x44e356=_0x52d18f,_0xb6ebad=_0x44e356(0x224)+_0x29edad();this[_0x44e356(0x257)](_0xb6ebad);try{await Promise[_0x44e356(0x25b)](_0x119234[_0x44e356(0x25d)](async _0x30a02a=>{const _0x35f772=_0x44e356,_0x2176ed=_0x35f772(0x1f9)+_0x29edad(),_0x2f9b63=_0x51f37a(_0x30a02a[_0x35f772(0x1db)]);try{this[_0x35f772(0x204)]({'type':_0x3a785e,'label':_0x28fef5?.[_0x35f772(0x225)]||_0x2f9b63,'uiId':_0x2176ed,'resourceId':_0x28fef5?.[_0x35f772(0x20e)]},!0x0);const _0x124d42=this[_0x35f772(0x203)][_0x35f772(0x206)](this[_0x35f772(0x1df)],_0x30a02a,_0x28fef5);this[_0x35f772(0x21d)][_0x35f772(0x210)](_0x2176ed,_0x124d42[_0x35f772(0x207)]);const {id:_0xe18858}=await _0x124d42[_0x35f772(0x24f)]();this[_0x35f772(0x21d)][_0x35f772(0x23a)](_0x2176ed),this[_0x35f772(0x267)]({'type':_0x3a785e,'id':_0xe18858,'label':_0x28fef5?.[_0x35f772(0x225)]||_0x2f9b63,'uiId':_0x2176ed,'resourceId':_0x28fef5?.[_0x35f772(0x20e)]},!0x1);}catch(_0x352373){this[_0x35f772(0x21d)][_0x35f772(0x23a)](_0x2176ed);if(!(_0x352373 instanceof _0x3dbe0e&&_0x352373[_0x35f772(0x215)][_0x35f772(0x24a)](_0x35f772(0x226)))){const _0x5f489d=_0x4a8de0[_0x35f772(0x22f)](_0x352373[_0x35f772(0x1ea)])||_0x35f772(0x220),_0x58d453=new _0x3dbe0e(_0x5f489d,null,{'fileName':_0x2f9b63,..._0x352373});_0x58d453[_0x35f772(0x240)]=_0x352373[_0x35f772(0x240)],this[_0x35f772(0x233)](_0x35f772(0x20d),{'error':_0x58d453});}this[_0x35f772(0x1eb)](_0x2176ed);}}));}finally{this[_0x44e356(0x238)](_0xb6ebad);}}[_0x52d18f(0x25f)](_0x5563f8){const _0x55c168=_0x52d18f;if(this[_0x55c168(0x21b)]())return;const _0x15016c={'type':_0x24af84[_0x55c168(0x231)],'uiId':_0x55c168(0x234),'label':_0x5563f8,'isReadOnly':this[_0x55c168(0x245)][_0x55c168(0x25c)](_0x55c168(0x234)),'hidden':this[_0x55c168(0x245)][_0x55c168(0x25c)](_0x55c168(0x234))};this[_0x55c168(0x204)](_0x15016c);}async[_0x52d18f(0x237)](_0x2240eb,_0x2460f0,_0x39d8e1,_0x254997){const _0x4e3796=_0x52d18f,_0x547e85=this[_0x4e3796(0x260)][_0x4e3796(0x22f)](_0x4e3796(0x234));if(_0x547e85&&_0x2240eb){_0x547e85[_0x4e3796(0x1ef)]=_0x254997?_0x254997[_0x4e3796(0x25d)](_0x556a24=>({'start':_0x556a24[_0x4e3796(0x266)],'end':_0x556a24[_0x4e3796(0x1fc)]})):[];try{if(_0x547e85[_0x4e3796(0x263)]===_0x2460f0)return;const {id:_0xd4ef93}=await this[_0x4e3796(0x203)][_0x4e3796(0x261)](this[_0x4e3796(0x1df)],_0x2240eb,{'version':_0x2460f0,'sessionId':_0x39d8e1})[_0x4e3796(0x24f)]();_0x547e85['id']=_0xd4ef93,_0x547e85[_0x4e3796(0x20a)]=_0x2240eb,_0x547e85[_0x4e3796(0x263)]=_0x2460f0,_0x547e85[_0x4e3796(0x223)]=_0x39d8e1;}catch(_0x1a2a6f){const _0x103e86=new _0x3dbe0e(_0x4e3796(0x1dc),null);_0x103e86[_0x4e3796(0x240)]=_0x1a2a6f[_0x4e3796(0x240)],this[_0x4e3796(0x233)](_0x4e3796(0x20d),{'error':_0x103e86});}}}[_0x52d18f(0x1f8)](_0x3eb614){const _0xd520a1=_0x52d18f;this[_0xd520a1(0x204)]({'type':_0x24af84[_0xd520a1(0x243)],'label':_0x3eb614,'uiId':_0xd520a1(0x1ef),'content':_0x3eb614});}[_0x52d18f(0x20f)](){const _0x545cd3=_0x52d18f;this[_0x545cd3(0x1eb)](_0x545cd3(0x1ef));}async[_0x52d18f(0x239)](_0x1e549f,_0x51b452){const _0x5bb1ba=_0x52d18f,_0x5bceef=_0x5bb1ba(0x22c)+_0x29edad();this[_0x5bb1ba(0x257)](_0x5bceef);const _0x58ce9a=_0x5bb1ba(0x22c)+_0x29edad();try{this[_0x5bb1ba(0x204)]({'type':_0x24af84[_0x5bb1ba(0x23d)],'label':_0x51b452?.[_0x5bb1ba(0x225)]||_0x1e549f,'uiId':_0x58ce9a,'resourceId':_0x51b452?.[_0x5bb1ba(0x20e)]},!0x0);const _0x560504=this[_0x5bb1ba(0x203)][_0x5bb1ba(0x205)](this[_0x5bb1ba(0x1df)],_0x1e549f,_0x51b452);this[_0x5bb1ba(0x21d)][_0x5bb1ba(0x210)](_0x58ce9a,_0x560504[_0x5bb1ba(0x207)]);const {id:_0x246249}=await _0x560504[_0x5bb1ba(0x24f)]();this[_0x5bb1ba(0x21d)][_0x5bb1ba(0x23a)](_0x58ce9a),this[_0x5bb1ba(0x267)]({'type':_0x24af84[_0x5bb1ba(0x23d)],'id':_0x246249,'label':_0x51b452?.[_0x5bb1ba(0x225)]||_0x1e549f,'uiId':_0x58ce9a,'resourceId':_0x51b452?.[_0x5bb1ba(0x20e)]},!0x1);}catch(_0x5c24c3){this[_0x5bb1ba(0x21d)][_0x5bb1ba(0x23a)](_0x58ce9a),(_0x5c24c3[_0x5bb1ba(0x215)][_0x5bb1ba(0x24a)](_0x5bb1ba(0x226))||this[_0x5bb1ba(0x233)](_0x5bb1ba(0x20d),{'error':new _0x3dbe0e(_0x5bb1ba(0x20c),this,{'url':_0x1e549f,'originalError':_0x5c24c3}),'url':_0x1e549f}),this[_0x5bb1ba(0x1eb)](_0x58ce9a));}finally{this[_0x5bb1ba(0x238)](_0x5bceef);}}async[_0x52d18f(0x244)](_0x4ac5cb,_0x149813,_0x3358a4){const _0x71a3d9=_0x52d18f,_0x233168=this[_0x71a3d9(0x1e6)][_0x71a3d9(0x264)][_0x71a3d9(0x1ec)](_0x476f6d=>_0x476f6d['id']===_0x4ac5cb);if(!_0x233168)return this[_0x71a3d9(0x233)](_0x71a3d9(0x20d),{'error':new _0x3dbe0e(_0x71a3d9(0x202),this,{'sourceId':_0x4ac5cb}),'sourceId':_0x4ac5cb}),[];try{const _0x34bedb=(await _0x233168[_0x71a3d9(0x247)](_0x149813))[_0x71a3d9(0x25d)](_0x300453=>{const _0x1a5f0b=_0x71a3d9,_0x407103=this[_0x1a5f0b(0x21f)](_0x300453['id']);return{..._0x300453,'isInContext':_0x407103};});return _0x233168[_0x71a3d9(0x209)]=_0x34bedb,this[_0x71a3d9(0x233)](_0x71a3d9(0x24d),{'sourceId':_0x4ac5cb,'source':_0x233168,'resources':_0x34bedb,'uid':_0x3358a4}),_0x34bedb;}catch(_0x7eabe5){return this[_0x71a3d9(0x233)](_0x71a3d9(0x20d),{'error':new _0x3dbe0e(_0x71a3d9(0x23c),this,{'sourceId':_0x4ac5cb,'originalError':_0x7eabe5}),'sourceId':_0x4ac5cb,'sourceLabel':_0x233168[_0x71a3d9(0x225)]}),[];}}async[_0x52d18f(0x25e)](_0x5a3c54,_0x11d782){const _0x2cf41c=_0x52d18f;if(this[_0x2cf41c(0x21f)](_0x11d782['id']))return;let _0x659bd=_0x11d782[_0x2cf41c(0x23f)];if(!_0x659bd&&_0x5a3c54[_0x2cf41c(0x255)])try{_0x659bd=await _0x5a3c54[_0x2cf41c(0x255)](_0x11d782['id']);}catch(_0x4a0138){return void this[_0x2cf41c(0x233)](_0x2cf41c(0x20d),{'error':new _0x3dbe0e(_0x2cf41c(0x246),this,{'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id'],'originalError':_0x4a0138}),'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id']});}if(_0x659bd)switch(_0x11d782[_0x2cf41c(0x229)]){case _0x24af84[_0x2cf41c(0x23d)]:if(_0x2cf41c(0x235)!=typeof _0x659bd)return void this[_0x2cf41c(0x233)](_0x2cf41c(0x20d),{'error':new _0x3dbe0e(_0x2cf41c(0x1e4),this,{'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id'],'expectedType':_0x2cf41c(0x235),'actualType':typeof _0x659bd}),'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id']});await this[_0x2cf41c(0x239)](_0x659bd,{'label':_0x11d782[_0x2cf41c(0x225)],'resourceId':_0x11d782['id']});break;case _0x24af84[_0x2cf41c(0x1e7)]:if(!(_0x659bd instanceof File))return void this[_0x2cf41c(0x233)](_0x2cf41c(0x20d),{'error':new _0x3dbe0e(_0x2cf41c(0x1e4),this,{'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id'],'expectedType':_0x2cf41c(0x21e),'actualType':typeof _0x659bd}),'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id']});await this[_0x2cf41c(0x1e3)]([_0x659bd],{'label':_0x11d782[_0x2cf41c(0x225)],'resourceId':_0x11d782['id']});break;case _0x24af84[_0x2cf41c(0x1f5)]:if(_0x2cf41c(0x219)!=typeof _0x659bd||!(_0x2cf41c(0x20a)in _0x659bd)||!(_0x2cf41c(0x229)in _0x659bd))return void this[_0x2cf41c(0x233)](_0x2cf41c(0x20d),{'error':new _0x3dbe0e(_0x2cf41c(0x1e4),this,{'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id'],'expectedType':_0x2cf41c(0x256),'actualType':typeof _0x659bd}),'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id']});_0x659bd=AIChatContext[_0x2cf41c(0x208)](_0x659bd,_0x11d782[_0x2cf41c(0x225)]),await this[_0x2cf41c(0x1e3)]([_0x659bd],{'label':_0x11d782[_0x2cf41c(0x225)],'resourceId':_0x11d782['id']},_0x24af84[_0x2cf41c(0x1f5)]);break;default:this[_0x2cf41c(0x233)](_0x2cf41c(0x20d),{'error':new _0x3dbe0e(_0x2cf41c(0x1e8),this,{'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id'],'resourceType':_0x11d782[_0x2cf41c(0x229)]}),'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id']});}else this[_0x2cf41c(0x233)](_0x2cf41c(0x20d),{'error':new _0x3dbe0e(_0x2cf41c(0x214),this,{'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id']}),'resourceId':_0x11d782['id'],'sourceId':_0x5a3c54['id']});}static[_0x52d18f(0x208)](_0x4c383c,_0x5833ac){const _0x3aba1f=_0x52d18f;switch(_0x4c383c[_0x3aba1f(0x229)]){case _0x470c61[_0x3aba1f(0x250)]:return new File([_0x4c383c[_0x3aba1f(0x20a)]],_0x5833ac,{'type':_0x3aba1f(0x21c)});case _0x470c61[_0x3aba1f(0x268)]:return new File([_0x4c383c[_0x3aba1f(0x20a)]],_0x5833ac,{'type':_0x3aba1f(0x1e0)});default:return new File([_0x4c383c[_0x3aba1f(0x20a)]],_0x5833ac,{'type':_0x3aba1f(0x22a)});}}static[_0x52d18f(0x262)](_0x208708){const _0x1923d6=_0x52d18f;switch(_0x208708[_0x1923d6(0x229)]){case _0x24af84[_0x1923d6(0x1e7)]:return{'type':_0x24af84[_0x1923d6(0x1e7)],'id':_0x208708['id']};case _0x24af84[_0x1923d6(0x23d)]:return{'type':_0x24af84[_0x1923d6(0x23d)],'id':_0x208708['id']};case _0x24af84[_0x1923d6(0x231)]:return{'type':_0x24af84[_0x1923d6(0x231)],'id':_0x208708['id'],..._0x208708[_0x1923d6(0x1ef)]?.[_0x1923d6(0x20b)]&&{'selection':_0x208708[_0x1923d6(0x1ef)]}};case _0x24af84[_0x1923d6(0x1f5)]:return{'type':_0x24af84[_0x1923d6(0x1e7)],'id':_0x208708['id']};default:return null;}}[_0x52d18f(0x204)](_0xbd68aa,_0x2d0bfc=!0x1){const _0x268685=_0x52d18f;if(this[_0x268685(0x260)][_0x268685(0x210)](_0xbd68aa[_0x268685(0x1de)],_0xbd68aa),_0xbd68aa[_0x268685(0x216)]||this[_0x268685(0x233)](_0x268685(0x1e5),{'contextItem':_0xbd68aa,'isLoading':_0x2d0bfc}),_0x268685(0x234)===_0xbd68aa[_0x268685(0x1de)]&&this[_0x268685(0x1fd)](),_0xbd68aa[_0x268685(0x20e)]){const _0xd8e32d=this[_0x268685(0x22d)](_0xbd68aa[_0x268685(0x20e)]);_0xd8e32d&&_0xd8e32d[_0x268685(0x200)](_0xd6850=>{const _0x480cc6=_0x268685;this[_0x480cc6(0x230)](_0xd6850,_0xbd68aa[_0x480cc6(0x20e)],!0x0);});}}[_0x52d18f(0x1eb)](_0x5877c0){const _0x34f397=_0x52d18f,_0x1db11b=this[_0x34f397(0x260)][_0x34f397(0x22f)](_0x5877c0),_0x3b8430=this[_0x34f397(0x21d)][_0x34f397(0x22f)](_0x5877c0);if(_0x3b8430&&(_0x3b8430[_0x34f397(0x249)](),this[_0x34f397(0x21d)][_0x34f397(0x23a)](_0x5877c0)),_0x1db11b?.[_0x34f397(0x20e)]){const _0x168608=this[_0x34f397(0x22d)](_0x1db11b[_0x34f397(0x20e)]);_0x168608&&_0x168608[_0x34f397(0x200)](_0x4e8b6b=>{const _0x365771=_0x34f397;this[_0x365771(0x230)](_0x4e8b6b,_0x1db11b[_0x365771(0x20e)],!0x1);});}this[_0x34f397(0x260)][_0x34f397(0x23a)](_0x5877c0),this[_0x34f397(0x233)](_0x34f397(0x1f0),{'uiId':_0x5877c0,'type':_0x1db11b?.[_0x34f397(0x229)]}),_0x34f397(0x234)===_0x5877c0&&this[_0x34f397(0x1fd)]();}[_0x52d18f(0x267)](_0x4931e6,_0x19309d){const _0x37e78b=_0x52d18f;if(this[_0x37e78b(0x260)][_0x37e78b(0x25c)](_0x4931e6[_0x37e78b(0x1de)])&&(this[_0x37e78b(0x260)][_0x37e78b(0x210)](_0x4931e6[_0x37e78b(0x1de)],_0x4931e6),this[_0x37e78b(0x233)](_0x37e78b(0x213),{'contextItem':_0x4931e6,'isLoading':_0x19309d}),_0x4931e6[_0x37e78b(0x20e)])){const _0x4f6be5=this[_0x37e78b(0x22d)](_0x4931e6[_0x37e78b(0x20e)]);_0x4f6be5&&_0x4f6be5[_0x37e78b(0x200)](_0x529105=>{const _0x3c6c28=_0x37e78b;this[_0x3c6c28(0x230)](_0x529105,_0x4931e6[_0x3c6c28(0x20e)],!0x0);});}}[_0x52d18f(0x201)](_0x447224){const _0x22847a=_0x52d18f;this[_0x22847a(0x245)][_0x22847a(0x210)](_0x447224[_0x22847a(0x1de)],_0x447224);}[_0x52d18f(0x22e)](){const _0x492959=_0x52d18f;this[_0x492959(0x1e6)]={'document':{'enabled':!0x1!==this[_0x492959(0x228)]?.[_0x492959(0x218)]?.[_0x492959(0x1ff)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x492959(0x228)]?.[_0x492959(0x1dd)]?.[_0x492959(0x1ff)]},'files':{'enabled':!0x1!==this[_0x492959(0x228)]?.[_0x492959(0x1fa)]?.[_0x492959(0x1ff)]},'sources':this[_0x492959(0x24b)]()},this[_0x492959(0x233)](_0x492959(0x1ee),{'options':this[_0x492959(0x1e6)]});}[_0x52d18f(0x24b)](){const _0x4fbf5a=_0x52d18f;return this[_0x4fbf5a(0x228)]?.[_0x4fbf5a(0x264)]?.[_0x4fbf5a(0x25d)](_0x409d03=>({..._0x409d03,'resources':[]}))??[];}[_0x52d18f(0x1fd)](){const _0x130fb9=_0x52d18f,_0xe2456d=this[_0x130fb9(0x21b)]()||this[_0x130fb9(0x232)]();this[_0x130fb9(0x1e6)][_0x130fb9(0x218)][_0x130fb9(0x248)]=_0xe2456d,this[_0x130fb9(0x233)](_0x130fb9(0x1ee),{'options':this[_0x130fb9(0x1e6)]});}[_0x52d18f(0x21f)](_0x4b338c){const _0x3f256b=_0x52d18f;for(const _0x3cbc8b of this[_0x3f256b(0x260)][_0x3f256b(0x212)]())if(_0x3cbc8b[_0x3f256b(0x20e)]===_0x4b338c)return!0x0;for(const _0x211597 of this[_0x3f256b(0x245)][_0x3f256b(0x212)]())if(_0x211597[_0x3f256b(0x20e)]===_0x4b338c)return!0x0;return!0x1;}[_0x52d18f(0x22d)](_0x13684c){const _0xd6dd76=_0x52d18f,_0x2f48d9=[];for(const _0x25f421 of this[_0xd6dd76(0x1e6)][_0xd6dd76(0x264)]){_0x25f421[_0xd6dd76(0x209)][_0xd6dd76(0x1ec)](_0x3db8bf=>_0x3db8bf['id']===_0x13684c)&&_0x2f48d9[_0xd6dd76(0x1e2)](_0x25f421['id']);}return 0x0===_0x2f48d9[_0xd6dd76(0x20b)]?null:_0x2f48d9;}[_0x52d18f(0x230)](_0x4c1679,_0x4e2a0a,_0x3d2bc9){const _0x2f6a3f=_0x52d18f,_0x1533a4=this[_0x2f6a3f(0x1e6)][_0x2f6a3f(0x264)][_0x2f6a3f(0x1ec)](_0x147ed3=>_0x147ed3['id']===_0x4c1679);if(!_0x1533a4)return;const _0x944b59=_0x1533a4[_0x2f6a3f(0x209)][_0x2f6a3f(0x1ec)](_0x2dabc2=>_0x2dabc2['id']===_0x4e2a0a);_0x944b59&&(_0x944b59[_0x2f6a3f(0x241)]=_0x3d2bc9,this[_0x2f6a3f(0x233)](_0x2f6a3f(0x259),{'sourceId':_0x4c1679,'resourceId':_0x4e2a0a,'isInContext':_0x3d2bc9}));}[_0x52d18f(0x257)](_0x57da27){const _0x27ae57=_0x52d18f;this[_0x27ae57(0x227)][_0x27ae57(0x210)](_0x57da27,!0x0),this[_0x27ae57(0x227)][_0x27ae57(0x217)]&&this[_0x27ae57(0x233)](_0x27ae57(0x1e1),{'isUploadInProgress':!0x0});}[_0x52d18f(0x238)](_0x22c95a){const _0x5554a6=_0x52d18f;this[_0x5554a6(0x227)][_0x5554a6(0x23a)](_0x22c95a),0x0===this[_0x5554a6(0x227)][_0x5554a6(0x217)]&&this[_0x5554a6(0x233)](_0x5554a6(0x1e1),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x10e842=_0x2a5f;function _0x2a5f(_0x31616f,_0x2c2a18){const _0x21b0c6=_0x21b0();return _0x2a5f=function(_0x2a5f60,_0x25aad9){_0x2a5f60=_0x2a5f60-0x12c;let _0xb8c45d=_0x21b0c6[_0x2a5f60];return _0xb8c45d;},_0x2a5f(_0x31616f,_0x2c2a18);}(function(_0x24695f,_0x1303dc){const _0x53c1c0=_0x2a5f,_0x14099b=_0x24695f();while(!![]){try{const _0x17c595=-parseInt(_0x53c1c0(0x139))/0x1+parseInt(_0x53c1c0(0x145))/0x2+parseInt(_0x53c1c0(0x18d))/0x3*(-parseInt(_0x53c1c0(0x187))/0x4)+parseInt(_0x53c1c0(0x173))/0x5+-parseInt(_0x53c1c0(0x14b))/0x6*(parseInt(_0x53c1c0(0x160))/0x7)+-parseInt(_0x53c1c0(0x158))/0x8*(parseInt(_0x53c1c0(0x16d))/0x9)+parseInt(_0x53c1c0(0x157))/0xa;if(_0x17c595===_0x1303dc)break;else _0x14099b['push'](_0x14099b['shift']());}catch(_0x546dfc){_0x14099b['push'](_0x14099b['shift']());}}}(_0x21b0,0x2ad0c));import{CKEditorError as _0x356f02,EmitterMixin as _0x4b0db7,logWarning as _0x1cc3f5}from'ckeditor5/src/utils.js';function _0x21b0(){const _0x430e62=['chatCapabilities','model','length','setModel','1540NJLTml','addCurrentDocumentToContext','role','getMessages','updateCurrentDocumentInContext','selectedModel','ai-chat-conversation-start-no-model-selected','modification-delta','removeFromContext','stack','interactionCreated','lastInteraction','isCurrentDocumentInConversation','10107Nutpuw','user','find','getInteraction','setConversationTitle','webSearch','259520RguIKj','chatModels','isAvailable','ai-chat-handle-user-interaction-start-failed','_processMessagesToInteractions','modelSelected','assistant','chatContext','handleUserInteraction','set','conversationStarted','getAll','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-already-started','hasOwn','ai-chat-conversation-init-from-id-failed','group','removeInteraction','populateFromMessage','conversationId','476CPJRfh','isSelectionInContext','getDocumentContext','getCurrentDocumentContext','text','addFilesToContext','8841MWCdqi','ai-chat-conversation-set-model-not-available','loadSourceResources','sessionId','getConversation','getPendingContextItems','code','fetchConversationMessages','load','message','selectedModelId','ai-chat-conversation-set-model-null','text-delta','getEditor','getCapabilitiesConfig','title','stop','delegate','ai-chat-conversation-start-failed','isCurrentDocumentInContext','fetchConversation','removeSelectionFromContext','push','fire','createInteraction','getAvailableModels','destroy','createReply','connector','appendContent','addResourceToContext','indexOf','ai-chat-conversation-init-failed','conversationInitialized','348466VZfpzY','ai-chat-handle-user-interaction-already-in-progress','splice','prompt','reset','error','isStarted','interactions','currentInteraction','addToConversationContext','currentReply','toggleWebSearch','651242kJGOPT','_extractContextItems','capabilities','addSelectionToContext','init','toggleReasoning','2508bKnRGK','reasoning','addUrlToContext','contextItems','start','startConversation','updateCurrentDocument','quickActionData','toLowerCase','type','get','getModel','8674700BCdJzU','1984gawCSJ','attributes','options','content'];_0x21b0=function(){return _0x430e62;};return _0x21b0();}import{AI_MODEL_EVENT_NAMES as _0x5f499c}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x51dfb8,AI_CONTEXT_MODEL_EVENT_NAMES as _0xfcec51}from'./aichatcontext.js';import{AICapabilities as _0x36aa67,CAPABILITIES_MODEL_EVENT_NAMES as _0x10ce85}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x49ef6f}from'./aichatinteraction.js';import{errorsMap as _0x396af4}from'../../errorsmap.js';export class AIChatConversation extends _0x4b0db7(){['id'];[_0x10e842(0x13f)]=!0x1;[_0x10e842(0x140)]=[];[_0x10e842(0x141)];[_0x10e842(0x165)];[_0x10e842(0x133)];[_0x10e842(0x15a)];constructor(_0x43c6cf){const _0xfd0f40=_0x10e842;super(),this[_0xfd0f40(0x15a)]=_0x43c6cf,this[_0xfd0f40(0x133)]=_0x43c6cf[_0xfd0f40(0x133)],this[_0xfd0f40(0x174)]=_0x43c6cf[_0xfd0f40(0x174)],this['id']=_0x43c6cf[_0xfd0f40(0x186)];}async[_0x10e842(0x149)](_0x37a893){const _0xde780f=_0x10e842;try{this[_0xde780f(0x17a)]=new _0x51dfb8({'connector':this[_0xde780f(0x133)],'config':_0x37a893,'ownerId':this['id']}),this[_0xde780f(0x17a)][_0xde780f(0x19e)](..._0xfcec51)['to'](this),this[_0xde780f(0x17a)][_0xde780f(0x149)](),this[_0xde780f(0x15c)]=new _0x36aa67(),this[_0xde780f(0x15c)][_0xde780f(0x19e)](..._0x10ce85)['to'](this),this[_0xde780f(0x15c)][_0xde780f(0x149)]();const _0x3a23ff=await this[_0xde780f(0x174)][_0xde780f(0x130)]();this[_0xde780f(0x12e)](_0xde780f(0x138),{'availableModels':_0x3a23ff});const _0x894af0=await this[_0xde780f(0x174)][_0xde780f(0x156)](this[_0xde780f(0x15a)][_0xde780f(0x197)]);_0x894af0&&await this[_0xde780f(0x15f)](_0x894af0);}catch(_0x193645){const _0xa5d6c3=new _0x356f02(_0xde780f(0x137),null,{'message':_0x193645[_0xde780f(0x196)]||_0x193645});_0xa5d6c3[_0xde780f(0x169)]=_0x193645[_0xde780f(0x169)],this[_0xde780f(0x12e)](_0xde780f(0x13e),{'error':_0xa5d6c3});}}async[_0x10e842(0x14f)](){const _0x2f80e3=_0x10e842;if(this[_0x2f80e3(0x13f)])throw new _0x356f02(_0x2f80e3(0x180),null,{'conversation':this});if(!this[_0x2f80e3(0x165)])throw new _0x356f02(_0x2f80e3(0x166),null,{'conversation':this});try{const {id:_0x121ed5}=await this[_0x2f80e3(0x133)][_0x2f80e3(0x150)](this['id'],this[_0x2f80e3(0x15a)][_0x2f80e3(0x183)])[_0x2f80e3(0x191)]();this['id']=_0x121ed5,this[_0x2f80e3(0x13f)]=!0x0,this[_0x2f80e3(0x12e)](_0x2f80e3(0x17d),{'conversationId':this['id'],'selectedModel':this[_0x2f80e3(0x165)]});}catch(_0x23a1c0){const _0x3a0cd4=new _0x356f02(_0x2f80e3(0x19f),null,{'message':_0x23a1c0[_0x2f80e3(0x196)],'conversationId':this['id']});throw _0x3a0cd4[_0x2f80e3(0x169)]=_0x23a1c0[_0x2f80e3(0x169)],this[_0x2f80e3(0x12e)](_0x2f80e3(0x13e),{'error':_0x3a0cd4}),_0x3a0cd4;}}async[_0x10e842(0x195)](_0x51cbbd,_0x2d18b7){const _0x365697=_0x10e842;try{const _0x21ff53=await this[_0x365697(0x133)][_0x365697(0x1a1)](_0x51cbbd)[_0x365697(0x191)](),_0x1cc0b0=await this[_0x365697(0x133)][_0x365697(0x194)](_0x51cbbd)[_0x365697(0x163)](),_0x1dcb83=_0x1cc0b0[0x0][_0x365697(0x15d)];this[_0x365697(0x13f)]=!0x0,this['id']=_0x21ff53['id'],_0x365697(0x19c)in _0x21ff53?this[_0x365697(0x12e)](_0x365697(0x171),_0x21ff53[_0x365697(0x19c)],!0x0):this[_0x365697(0x12e)](_0x365697(0x171),'',!0x0);const _0x23ec31=(await this[_0x365697(0x174)][_0x365697(0x17e)]())[_0x365697(0x16f)](_0x34337b=>_0x34337b['id'][_0x365697(0x153)]()===_0x1dcb83[_0x365697(0x153)]());return this[_0x365697(0x165)]=_0x23ec31,this[_0x365697(0x12e)](_0x365697(0x178),{'selectedModel':_0x23ec31,'isDisabled':!0x0}),await this[_0x365697(0x177)](_0x1cc0b0,_0x2d18b7,_0x1dcb83),this[_0x365697(0x141)]=void 0x0,this;}catch(_0x577d5b){const _0x54745f=new _0x356f02(_0x365697(0x182),null,{'message':_0x577d5b[_0x365697(0x196)],'conversationId':_0x51cbbd});throw _0x54745f[_0x365697(0x169)]=_0x577d5b[_0x365697(0x169)],this[_0x365697(0x12e)](_0x365697(0x13e),{'error':_0x54745f}),_0x54745f;}}async[_0x10e842(0x177)](_0x1c19e6,_0x2e6c82,_0x3a1b51){const _0x184c08=_0x10e842;let _0x16551d;for(const _0x265b28 of _0x1c19e6)if(_0x184c08(0x16e)===_0x265b28[_0x184c08(0x162)]){const _0x2b6593=await this[_0x184c08(0x146)](_0x265b28),_0x2547ad={'isReasoningEnabled':Object[_0x184c08(0x181)](_0x265b28[_0x184c08(0x147)],_0x184c08(0x14c)),'isWebSearchEnabled':Object[_0x184c08(0x181)](_0x265b28[_0x184c08(0x147)],_0x184c08(0x172))};_0x16551d=this[_0x184c08(0x12f)]({'userMessage':_0x265b28[_0x184c08(0x13c)],'contextItems':_0x2b6593,'capabilities':_0x2547ad,'modelId':_0x3a1b51,'quickActionData':_0x265b28[_0x184c08(0x159)]?.[_0x184c08(0x152)]}),this[_0x184c08(0x141)]=_0x16551d,this[_0x184c08(0x17a)][_0x184c08(0x142)](this[_0x184c08(0x141)][_0x184c08(0x14e)]);}else{if(_0x184c08(0x179)===_0x265b28[_0x184c08(0x162)]&&_0x16551d)for(const _0x30e49e of _0x265b28[_0x184c08(0x15b)]){const _0x5cab75=_0x184c08(0x18b)===_0x30e49e[_0x184c08(0x154)]?_0x184c08(0x199):_0x184c08(0x167),_0x22a960=_0x16551d[_0x184c08(0x189)]()?.[_0x184c08(0x190)]!==_0x2e6c82;_0x16551d[_0x184c08(0x143)]=_0x16551d[_0x184c08(0x132)]({'type':_0x5cab75,'isDone':!0x0,'interactionId':_0x16551d['id'],'areActionsDisabled':_0x22a960}),_0x16551d[_0x184c08(0x143)][_0x184c08(0x134)](_0x30e49e[_0x184c08(0x15b)]);}}}async[_0x10e842(0x146)](_0x1c16e1){const _0x358c61=_0x10e842,_0x266837=new Map();if(!_0x1c16e1[_0x358c61(0x15b)])return _0x266837;for(const _0x338f98 of _0x1c16e1[_0x358c61(0x15b)]){const _0x4ae2ee=await this[_0x358c61(0x17a)][_0x358c61(0x185)](_0x338f98);_0x4ae2ee&&_0x266837[_0x358c61(0x17c)](_0x4ae2ee['id'],_0x4ae2ee);}return _0x266837;}async[_0x10e842(0x17b)]({userMessage:_0xcc55de,quickActionData:_0x34dd2a}){const _0x4b97d8=_0x10e842;if(!this[_0x4b97d8(0x13f)])throw new _0x356f02(_0x4b97d8(0x17f),null,{'conversation':this});if(this[_0x4b97d8(0x141)])throw new _0x356f02(_0x4b97d8(0x13a),null,{'conversation':this});try{const _0x43ac10=this[_0x4b97d8(0x17a)][_0x4b97d8(0x192)](),_0x4bb426=this[_0x4b97d8(0x15c)][_0x4b97d8(0x19b)](),_0x4ef9ce=this[_0x4b97d8(0x165)]['id'];this[_0x4b97d8(0x141)]=this[_0x4b97d8(0x12f)]({'userMessage':_0xcc55de,'contextItems':_0x43ac10,'capabilities':_0x4bb426,'modelId':_0x4ef9ce,'quickActionData':_0x34dd2a}),await this[_0x4b97d8(0x141)][_0x4b97d8(0x14f)](),this[_0x4b97d8(0x17a)][_0x4b97d8(0x142)](this[_0x4b97d8(0x141)][_0x4b97d8(0x14e)]);}catch(_0x44d13c){if(_0x44d13c instanceof _0x356f02)this[_0x4b97d8(0x12e)](_0x4b97d8(0x13e),{'interactionId':this[_0x4b97d8(0x141)]?this[_0x4b97d8(0x141)]['id']:void 0x0,'error':_0x44d13c});else{const _0x41b52f=_0x396af4[_0x4b97d8(0x155)](_0x44d13c[_0x4b97d8(0x193)])||_0x4b97d8(0x176);this[_0x4b97d8(0x12e)](_0x4b97d8(0x13e),{'interactionId':this[_0x4b97d8(0x141)]?this[_0x4b97d8(0x141)]['id']:void 0x0,'error':new _0x356f02(_0x41b52f,null,{'error':_0x44d13c})});}}finally{this[_0x4b97d8(0x141)]?.[_0x4b97d8(0x19d)](),this[_0x4b97d8(0x141)]=void 0x0;}}[_0x10e842(0x12f)]({userMessage:_0x345785,contextItems:_0x4292ed,capabilities:_0x593fba,modelId:_0x4d41a4,quickActionData:_0x1a58b8}){const _0x457f1e=_0x10e842,_0x23f49f=new _0x49ef6f({'userMessage':_0x345785,'contextItems':_0x4292ed,'capabilities':_0x593fba,'conversationId':this['id'],'connector':this[_0x457f1e(0x133)],'editor':this[_0x457f1e(0x15a)][_0x457f1e(0x19a)]&&this[_0x457f1e(0x15a)][_0x457f1e(0x19a)](),'model':_0x4d41a4,'quickActionData':_0x1a58b8});return _0x23f49f[_0x457f1e(0x19e)](..._0x5f499c)['to'](this),this[_0x457f1e(0x140)][_0x457f1e(0x12d)](_0x23f49f),this[_0x457f1e(0x12e)](_0x457f1e(0x16a),_0x23f49f),_0x23f49f;}[_0x10e842(0x170)](_0x30e62c){const _0x3c2c55=_0x10e842;return this[_0x3c2c55(0x140)][_0x3c2c55(0x16f)](_0x27825d=>_0x27825d['id']===_0x30e62c);}[_0x10e842(0x184)](_0xe5baa9){const _0x452589=_0x10e842,_0x1eaaea=this[_0x452589(0x170)](_0xe5baa9);_0x1eaaea&&(_0x1eaaea[_0x452589(0x131)](),this[_0x452589(0x140)][_0x452589(0x13b)](this[_0x452589(0x140)][_0x452589(0x136)](_0x1eaaea),0x1));}get[_0x10e842(0x16b)](){const _0x3969da=_0x10e842;return this[_0x3969da(0x140)][this[_0x3969da(0x140)][_0x3969da(0x15e)]-0x1];}[_0x10e842(0x161)](_0x53803f){const _0x34f0b1=_0x10e842;this[_0x34f0b1(0x17a)][_0x34f0b1(0x161)](_0x53803f);}async[_0x10e842(0x164)]({content:_0x49bb28,version:_0x40e8a9,sessionId:_0x51e642,selections:_0xdcecf4}){const _0x5bcc3f=_0x10e842;await this[_0x5bcc3f(0x17a)][_0x5bcc3f(0x151)](_0x49bb28,_0x40e8a9,_0x51e642,_0xdcecf4);}[_0x10e842(0x18a)](){const _0x358a24=_0x10e842;return this[_0x358a24(0x141)]?.[_0x358a24(0x189)]()?.[_0x358a24(0x15b)]||'';}[_0x10e842(0x148)](_0x180631){const _0x3e174f=_0x10e842;this[_0x3e174f(0x17a)][_0x3e174f(0x148)](_0x180631);}[_0x10e842(0x12c)](){const _0x469a13=_0x10e842;this[_0x469a13(0x17a)][_0x469a13(0x12c)]();}[_0x10e842(0x18c)](_0x3decb0){const _0x114634=_0x10e842;this[_0x114634(0x17a)][_0x114634(0x18c)](_0x3decb0);}[_0x10e842(0x14d)](_0x46cce6){const _0x254b22=_0x10e842;this[_0x254b22(0x17a)][_0x254b22(0x14d)](_0x46cce6);}[_0x10e842(0x135)](_0x1e8cb0,_0x6f7ce0){const _0x1e906b=_0x10e842;this[_0x1e906b(0x17a)][_0x1e906b(0x135)](_0x1e8cb0,_0x6f7ce0);}[_0x10e842(0x18f)](_0x5d8953,_0x52bf07,_0x28c3e4){const _0x3bc3ba=_0x10e842;return this[_0x3bc3ba(0x17a)][_0x3bc3ba(0x18f)](_0x5d8953,_0x52bf07,_0x28c3e4);}[_0x10e842(0x168)](_0x4c1c5d){const _0x2d188f=_0x10e842;this[_0x2d188f(0x17a)][_0x2d188f(0x168)](_0x4c1c5d);}[_0x10e842(0x144)](){const _0x21c35d=_0x10e842;this[_0x21c35d(0x15c)][_0x21c35d(0x144)]();}[_0x10e842(0x14a)](){const _0x4727ba=_0x10e842;this[_0x4727ba(0x15c)][_0x4727ba(0x14a)]();}[_0x10e842(0x1a0)](){const _0x553dc4=_0x10e842;return this[_0x553dc4(0x17a)][_0x553dc4(0x1a0)]();}[_0x10e842(0x16c)](){const _0x4cf916=_0x10e842;return this[_0x4cf916(0x17a)][_0x4cf916(0x16c)]();}[_0x10e842(0x188)](){const _0x5aee26=_0x10e842;return this[_0x5aee26(0x17a)][_0x5aee26(0x188)]();}async[_0x10e842(0x15f)](_0x2da8f5){const _0x136550=_0x10e842;_0x2da8f5?!0x1===await this[_0x136550(0x174)][_0x136550(0x175)](_0x2da8f5)&&(_0x1cc3f5(_0x136550(0x18e),{'conversation':this,'model':_0x2da8f5}),_0x2da8f5=(await this[_0x136550(0x174)][_0x136550(0x130)]())[0x0]):(_0x1cc3f5(_0x136550(0x198),{'conversation':this}),_0x2da8f5=(await this[_0x136550(0x174)][_0x136550(0x130)]())[0x0]),_0x2da8f5['id']!==this[_0x136550(0x165)]?.['id']&&(this[_0x136550(0x165)]=_0x2da8f5,this[_0x136550(0x15c)][_0x136550(0x13d)](),this[_0x136550(0x12e)](_0x136550(0x178),{'selectedModel':_0x2da8f5}));}}
|
|
23
|
+
function _0x56de(_0x2107dc,_0x17c60c){const _0x2466a5=_0x2466();return _0x56de=function(_0x56de19,_0x3602f7){_0x56de19=_0x56de19-0x105;let _0x458a72=_0x2466a5[_0x56de19];return _0x458a72;},_0x56de(_0x2107dc,_0x17c60c);}const _0x467859=_0x56de;(function(_0x2850bb,_0x51e222){const _0x333fdf=_0x56de,_0x39dc75=_0x2850bb();while(!![]){try{const _0x53bd07=parseInt(_0x333fdf(0x167))/0x1+-parseInt(_0x333fdf(0x153))/0x2*(parseInt(_0x333fdf(0x136))/0x3)+-parseInt(_0x333fdf(0x112))/0x4+parseInt(_0x333fdf(0x14b))/0x5+-parseInt(_0x333fdf(0x10f))/0x6*(-parseInt(_0x333fdf(0x135))/0x7)+-parseInt(_0x333fdf(0x10c))/0x8*(-parseInt(_0x333fdf(0x169))/0x9)+-parseInt(_0x333fdf(0x149))/0xa*(parseInt(_0x333fdf(0x12c))/0xb);if(_0x53bd07===_0x51e222)break;else _0x39dc75['push'](_0x39dc75['shift']());}catch(_0x2b9c09){_0x39dc75['push'](_0x39dc75['shift']());}}}(_0x2466,0x2f672));import{CKEditorError as _0x4e667b,EmitterMixin as _0x3f49b0,logWarning as _0x5d9628}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x369196}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5a39c3,AI_CONTEXT_MODEL_EVENT_NAMES as _0x3cc6a0}from'./aichatcontext.js';import{AICapabilities as _0x4859c4,CAPABILITIES_MODEL_EVENT_NAMES as _0x47bf47}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5e6e38}from'./aichatinteraction.js';import{errorsMap as _0x551e46}from'../../errorsmap.js';function _0x2466(){const _0x38bcaf=['selectedModel','fire','attributes','appendContent','getModel','setConversationTitle','getDocumentContext','addResourceToContext','isSelectionInContext','role','indexOf','6782350MsiKqA','populateFromMessage','652720eFdPHs','createInteraction','start','isStarted','isCurrentDocumentInConversation','conversationInitialized','length','webSearch','112054FWecwW','lastInteraction','removeInteraction','isCurrentDocumentInContext','set','find','chatCapabilities','assistant','prompt','getConversation','code','hasOwn','ai-chat-conversation-set-model-null','quickActionData','chatContext','error','setModel','conversationId','ai-chat-conversation-already-started','ai-chat-conversation-set-model-not-available','340664XxBThA','message','9dyCkyk','interactions','text','modelSelected','options','_extractContextItems','fetchConversation','sessionId','push','modification-delta','createReply','reasoning','chatModels','stop','contextItems','fetchConversationMessages','init','delegate','_processMessagesToInteractions','getCapabilitiesConfig','conversationStarted','loadSourceResources','updateCurrentDocument','interactionCreated','ai-chat-handle-user-conversation-not-initialized','getAvailableModels','2389880kwFPRr','ai-chat-conversation-start-no-model-selected','getPendingContextItems','1670802enruOg','getAll','getCurrentDocumentContext','31728NqaNAm','removeSelectionFromContext','isAvailable','title','getMessages','handleUserInteraction','stack','model','addSelectionToContext','capabilities','addFilesToContext','toggleReasoning','currentReply','removeFromContext','text-delta','updateCurrentDocumentInContext','currentInteraction','ai-chat-conversation-init-failed','getInteraction','ai-chat-conversation-init-from-id-failed','type','toLowerCase','content','user','splice','ai-chat-conversation-start-failed','11riuyho','selectedModelId','ai-chat-handle-user-interaction-already-in-progress','ai-chat-handle-user-interaction-start-failed','load','addUrlToContext','reset','get','group','7prZhAk','9JkNGCR','connector','addCurrentDocumentToContext','addToConversationContext','startConversation','getEditor','destroy','toggleWebSearch'];_0x2466=function(){return _0x38bcaf;};return _0x2466();}export class AIChatConversation extends _0x3f49b0(){['id'];[_0x467859(0x14e)]=!0x1;[_0x467859(0x16a)]=[];[_0x467859(0x122)];[_0x467859(0x13e)];[_0x467859(0x137)];[_0x467859(0x16d)];constructor(_0x540919){const _0x1bb0ed=_0x467859;super(),this[_0x1bb0ed(0x16d)]=_0x540919,this[_0x1bb0ed(0x137)]=_0x540919[_0x1bb0ed(0x137)],this[_0x1bb0ed(0x175)]=_0x540919[_0x1bb0ed(0x175)],this['id']=_0x540919[_0x1bb0ed(0x164)];}async[_0x467859(0x179)](_0x4d5e74){const _0x12c87f=_0x467859;try{this[_0x12c87f(0x161)]=new _0x5a39c3({'connector':this[_0x12c87f(0x137)],'config':_0x4d5e74,'ownerId':this['id']}),this[_0x12c87f(0x161)][_0x12c87f(0x17a)](..._0x3cc6a0)['to'](this),this[_0x12c87f(0x161)][_0x12c87f(0x179)](),this[_0x12c87f(0x159)]=new _0x4859c4(),this[_0x12c87f(0x159)][_0x12c87f(0x17a)](..._0x47bf47)['to'](this),this[_0x12c87f(0x159)][_0x12c87f(0x179)]();const _0x1ecf7a=await this[_0x12c87f(0x175)][_0x12c87f(0x10b)]();this[_0x12c87f(0x13f)](_0x12c87f(0x150),{'availableModels':_0x1ecf7a});const _0x5dbef0=await this[_0x12c87f(0x175)][_0x12c87f(0x142)](this[_0x12c87f(0x16d)][_0x12c87f(0x12d)]);_0x5dbef0&&await this[_0x12c87f(0x163)](_0x5dbef0);}catch(_0x18e09e){const _0x2f4930=new _0x4e667b(_0x12c87f(0x123),null,{'message':_0x18e09e[_0x12c87f(0x168)]||_0x18e09e});_0x2f4930[_0x12c87f(0x118)]=_0x18e09e[_0x12c87f(0x118)],this[_0x12c87f(0x13f)](_0x12c87f(0x162),{'error':_0x2f4930});}}async[_0x467859(0x14d)](){const _0xaf75f5=_0x467859;if(this[_0xaf75f5(0x14e)])throw new _0x4e667b(_0xaf75f5(0x165),null,{'conversation':this});if(!this[_0xaf75f5(0x13e)])throw new _0x4e667b(_0xaf75f5(0x10d),null,{'conversation':this});try{const {id:_0x49e1d9}=await this[_0xaf75f5(0x137)][_0xaf75f5(0x13a)](this['id'],this[_0xaf75f5(0x16d)][_0xaf75f5(0x134)])[_0xaf75f5(0x15c)]();this['id']=_0x49e1d9,this[_0xaf75f5(0x14e)]=!0x0,this[_0xaf75f5(0x13f)](_0xaf75f5(0x106),{'conversationId':this['id'],'selectedModel':this[_0xaf75f5(0x13e)]});}catch(_0x1413bb){const _0x196327=new _0x4e667b(_0xaf75f5(0x12b),null,{'message':_0x1413bb[_0xaf75f5(0x168)],'conversationId':this['id']});throw _0x196327[_0xaf75f5(0x118)]=_0x1413bb[_0xaf75f5(0x118)],this[_0xaf75f5(0x13f)](_0xaf75f5(0x162),{'error':_0x196327}),_0x196327;}}async[_0x467859(0x130)](_0x2bb8a7,_0x3eefd0){const _0x8e6328=_0x467859;try{const _0x21886e=await this[_0x8e6328(0x137)][_0x8e6328(0x16f)](_0x2bb8a7)[_0x8e6328(0x15c)](),_0x3db912=await this[_0x8e6328(0x137)][_0x8e6328(0x178)](_0x2bb8a7)[_0x8e6328(0x116)](),_0x4b44d3=_0x3db912[0x0][_0x8e6328(0x119)];this[_0x8e6328(0x14e)]=!0x0,this['id']=_0x21886e['id'],_0x8e6328(0x115)in _0x21886e?this[_0x8e6328(0x13f)](_0x8e6328(0x143),_0x21886e[_0x8e6328(0x115)],!0x0):this[_0x8e6328(0x13f)](_0x8e6328(0x143),'',!0x0);const _0xb7eb37=(await this[_0x8e6328(0x175)][_0x8e6328(0x110)]())[_0x8e6328(0x158)](_0x4c3743=>_0x4c3743['id'][_0x8e6328(0x127)]()===_0x4b44d3[_0x8e6328(0x127)]());return this[_0x8e6328(0x13e)]=_0xb7eb37,this[_0x8e6328(0x13f)](_0x8e6328(0x16c),{'selectedModel':_0xb7eb37,'isDisabled':!0x0}),await this[_0x8e6328(0x17b)](_0x3db912,_0x3eefd0,_0x4b44d3),this[_0x8e6328(0x122)]=void 0x0,this;}catch(_0x26b750){const _0x101e66=new _0x4e667b(_0x8e6328(0x125),null,{'message':_0x26b750[_0x8e6328(0x168)],'conversationId':_0x2bb8a7});throw _0x101e66[_0x8e6328(0x118)]=_0x26b750[_0x8e6328(0x118)],this[_0x8e6328(0x13f)](_0x8e6328(0x162),{'error':_0x101e66}),_0x101e66;}}async[_0x467859(0x17b)](_0x45c301,_0x3cc7d0,_0x1e5392){const _0x1068f4=_0x467859;let _0x213a8f;for(const _0x1e1628 of _0x45c301)if(_0x1068f4(0x129)===_0x1e1628[_0x1068f4(0x147)]){const _0x22fdc4=await this[_0x1068f4(0x16e)](_0x1e1628),_0x56f4c6={'isReasoningEnabled':Object[_0x1068f4(0x15e)](_0x1e1628[_0x1068f4(0x11b)],_0x1068f4(0x174)),'isWebSearchEnabled':Object[_0x1068f4(0x15e)](_0x1e1628[_0x1068f4(0x11b)],_0x1068f4(0x152))};_0x213a8f=this[_0x1068f4(0x14c)]({'userMessage':_0x1e1628[_0x1068f4(0x15b)],'contextItems':_0x22fdc4,'capabilities':_0x56f4c6,'modelId':_0x1e5392,'quickActionData':_0x1e1628[_0x1068f4(0x140)]?.[_0x1068f4(0x160)]}),this[_0x1068f4(0x122)]=_0x213a8f,this[_0x1068f4(0x161)][_0x1068f4(0x139)](this[_0x1068f4(0x122)][_0x1068f4(0x177)]);}else{if(_0x1068f4(0x15a)===_0x1e1628[_0x1068f4(0x147)]&&_0x213a8f)for(const _0x25c69c of _0x1e1628[_0x1068f4(0x128)]){const _0x477908=_0x1068f4(0x16b)===_0x25c69c[_0x1068f4(0x126)]?_0x1068f4(0x120):_0x1068f4(0x172),_0x2dd1da=_0x213a8f[_0x1068f4(0x144)]()?.[_0x1068f4(0x170)]!==_0x3cc7d0;_0x213a8f[_0x1068f4(0x11e)]=_0x213a8f[_0x1068f4(0x173)]({'type':_0x477908,'isDone':!0x0,'interactionId':_0x213a8f['id'],'areActionsDisabled':_0x2dd1da}),_0x213a8f[_0x1068f4(0x11e)][_0x1068f4(0x141)](_0x25c69c[_0x1068f4(0x128)]);}}}async[_0x467859(0x16e)](_0x30b2ff){const _0x4ce6a1=_0x467859,_0x5ab797=new Map();if(!_0x30b2ff[_0x4ce6a1(0x128)])return _0x5ab797;for(const _0x412391 of _0x30b2ff[_0x4ce6a1(0x128)]){const _0x8bb4ef=await this[_0x4ce6a1(0x161)][_0x4ce6a1(0x14a)](_0x412391);_0x8bb4ef&&_0x5ab797[_0x4ce6a1(0x157)](_0x8bb4ef['id'],_0x8bb4ef);}return _0x5ab797;}async[_0x467859(0x117)]({userMessage:_0x3c0465,quickActionData:_0x53e04c}){const _0x296ed4=_0x467859;if(!this[_0x296ed4(0x14e)])throw new _0x4e667b(_0x296ed4(0x10a),null,{'conversation':this});if(this[_0x296ed4(0x122)])throw new _0x4e667b(_0x296ed4(0x12e),null,{'conversation':this});try{const _0x5cc714=this[_0x296ed4(0x161)][_0x296ed4(0x10e)](),_0x262d1c=this[_0x296ed4(0x159)][_0x296ed4(0x105)](),_0x2ba825=this[_0x296ed4(0x13e)]['id'];this[_0x296ed4(0x122)]=this[_0x296ed4(0x14c)]({'userMessage':_0x3c0465,'contextItems':_0x5cc714,'capabilities':_0x262d1c,'modelId':_0x2ba825,'quickActionData':_0x53e04c}),await this[_0x296ed4(0x122)][_0x296ed4(0x14d)](),this[_0x296ed4(0x161)][_0x296ed4(0x139)](this[_0x296ed4(0x122)][_0x296ed4(0x177)]);}catch(_0x26aa84){if(_0x26aa84 instanceof _0x4e667b)this[_0x296ed4(0x13f)](_0x296ed4(0x162),{'interactionId':this[_0x296ed4(0x122)]?this[_0x296ed4(0x122)]['id']:void 0x0,'error':_0x26aa84});else{const _0x480061=_0x551e46[_0x296ed4(0x133)](_0x26aa84[_0x296ed4(0x15d)])||_0x296ed4(0x12f);this[_0x296ed4(0x13f)](_0x296ed4(0x162),{'interactionId':this[_0x296ed4(0x122)]?this[_0x296ed4(0x122)]['id']:void 0x0,'error':new _0x4e667b(_0x480061,null,{'error':_0x26aa84})});}}finally{this[_0x296ed4(0x122)]?.[_0x296ed4(0x176)](),this[_0x296ed4(0x122)]=void 0x0;}}[_0x467859(0x14c)]({userMessage:_0x344cf5,contextItems:_0x100704,capabilities:_0x66308,modelId:_0x52f354,quickActionData:_0x46249b}){const _0x29fe20=_0x467859,_0x41410c=new _0x5e6e38({'userMessage':_0x344cf5,'contextItems':_0x100704,'capabilities':_0x66308,'conversationId':this['id'],'connector':this[_0x29fe20(0x137)],'editor':this[_0x29fe20(0x16d)][_0x29fe20(0x13b)]&&this[_0x29fe20(0x16d)][_0x29fe20(0x13b)](),'model':_0x52f354,'quickActionData':_0x46249b});return _0x41410c[_0x29fe20(0x17a)](..._0x369196)['to'](this),this[_0x29fe20(0x16a)][_0x29fe20(0x171)](_0x41410c),this[_0x29fe20(0x13f)](_0x29fe20(0x109),_0x41410c),_0x41410c;}[_0x467859(0x124)](_0x6ea84d){const _0x338fa9=_0x467859;return this[_0x338fa9(0x16a)][_0x338fa9(0x158)](_0x3e5749=>_0x3e5749['id']===_0x6ea84d);}[_0x467859(0x155)](_0x3b950d){const _0x39eac1=_0x467859,_0x501191=this[_0x39eac1(0x124)](_0x3b950d);_0x501191&&(_0x501191[_0x39eac1(0x13c)](),this[_0x39eac1(0x16a)][_0x39eac1(0x12a)](this[_0x39eac1(0x16a)][_0x39eac1(0x148)](_0x501191),0x1));}get[_0x467859(0x154)](){const _0x435bd2=_0x467859;return this[_0x435bd2(0x16a)][this[_0x435bd2(0x16a)][_0x435bd2(0x151)]-0x1];}[_0x467859(0x138)](_0x4ccb5b){const _0xf0dee4=_0x467859;this[_0xf0dee4(0x161)][_0xf0dee4(0x138)](_0x4ccb5b);}async[_0x467859(0x121)]({content:_0x15f54c,version:_0x1451ef,sessionId:_0x1a34b0,selections:_0x18c03b}){const _0x4d1921=_0x467859;await this[_0x4d1921(0x161)][_0x4d1921(0x108)](_0x15f54c,_0x1451ef,_0x1a34b0,_0x18c03b);}[_0x467859(0x111)](){const _0x4bbb5c=_0x467859;return this[_0x4bbb5c(0x122)]?.[_0x4bbb5c(0x144)]()?.[_0x4bbb5c(0x128)]||'';}[_0x467859(0x11a)](_0x5b6a98){const _0x5bd313=_0x467859;this[_0x5bd313(0x161)][_0x5bd313(0x11a)](_0x5b6a98);}[_0x467859(0x113)](){const _0x4f01bd=_0x467859;this[_0x4f01bd(0x161)][_0x4f01bd(0x113)]();}[_0x467859(0x11c)](_0x49a893){const _0x51e26e=_0x467859;this[_0x51e26e(0x161)][_0x51e26e(0x11c)](_0x49a893);}[_0x467859(0x131)](_0x596cb5){const _0x404e69=_0x467859;this[_0x404e69(0x161)][_0x404e69(0x131)](_0x596cb5);}[_0x467859(0x145)](_0x1c2487,_0x12d142){const _0x5aee59=_0x467859;this[_0x5aee59(0x161)][_0x5aee59(0x145)](_0x1c2487,_0x12d142);}[_0x467859(0x107)](_0x3781d1,_0x4cc084,_0x587fab){const _0x4301e9=_0x467859;return this[_0x4301e9(0x161)][_0x4301e9(0x107)](_0x3781d1,_0x4cc084,_0x587fab);}[_0x467859(0x11f)](_0x61d1cb){const _0x1a3af4=_0x467859;this[_0x1a3af4(0x161)][_0x1a3af4(0x11f)](_0x61d1cb);}[_0x467859(0x13d)](){const _0x4110d6=_0x467859;this[_0x4110d6(0x159)][_0x4110d6(0x13d)]();}[_0x467859(0x11d)](){const _0x57f30e=_0x467859;this[_0x57f30e(0x159)][_0x57f30e(0x11d)]();}[_0x467859(0x156)](){const _0xeb05ae=_0x467859;return this[_0xeb05ae(0x161)][_0xeb05ae(0x156)]();}[_0x467859(0x14f)](){const _0x56ad98=_0x467859;return this[_0x56ad98(0x161)][_0x56ad98(0x14f)]();}[_0x467859(0x146)](){const _0x625329=_0x467859;return this[_0x625329(0x161)][_0x625329(0x146)]();}async[_0x467859(0x163)](_0x3e24d1){const _0x1df9ad=_0x467859;_0x3e24d1?!0x1===await this[_0x1df9ad(0x175)][_0x1df9ad(0x114)](_0x3e24d1)&&(_0x5d9628(_0x1df9ad(0x166),{'conversation':this,'model':_0x3e24d1}),_0x3e24d1=(await this[_0x1df9ad(0x175)][_0x1df9ad(0x10b)]())[0x0]):(_0x5d9628(_0x1df9ad(0x15f),{'conversation':this}),_0x3e24d1=(await this[_0x1df9ad(0x175)][_0x1df9ad(0x10b)]())[0x0]),_0x3e24d1['id']!==this[_0x1df9ad(0x13e)]?.['id']&&(this[_0x1df9ad(0x13e)]=_0x3e24d1,this[_0x1df9ad(0x159)][_0x1df9ad(0x132)](),this[_0x1df9ad(0x13f)](_0x1df9ad(0x16c),{'selectedModel':_0x3e24d1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x57e58d=_0x49a5;(function(_0x20803c,_0x1ebac6){var _0xbe10ca=_0x49a5,_0x2a72be=_0x20803c();while(!![]){try{var _0x3544b0=parseInt(_0xbe10ca(0x86))/0x1+-parseInt(_0xbe10ca(0x90))/0x2+-parseInt(_0xbe10ca(0x8b))/0x3+-parseInt(_0xbe10ca(0x8f))/0x4+-parseInt(_0xbe10ca(0x95))/0x5+-parseInt(_0xbe10ca(0x99))/0x6*(-parseInt(_0xbe10ca(0x9a))/0x7)+parseInt(_0xbe10ca(0x9b))/0x8;if(_0x3544b0===_0x1ebac6)break;else _0x2a72be['push'](_0x2a72be['shift']());}catch(_0x3cc8ec){_0x2a72be['push'](_0x2a72be['shift']());}}}(_0x6fc9,0x9c2f2));import{AICapabilities as _0x2b5bf9}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xf34ee1}from'../../aicore/model/aiinteraction.js';function _0x6fc9(){var _0x37222d=['1884qulMCQ','15064BOHMMp','17802904MhUfJv','451370quJGte','quickActionData','model','sendRequest','contextItems','3833907SbhXuV','userMessage','current-document','get','627092MHtRmz','1120832hKuxEj','connector','conversationId','mapContextItemsToRequestData','capabilities','3587865IEzpXN','getDocumentContext','getCapabilitiesRequestData','queryAssistant'];_0x6fc9=function(){return _0x37222d;};return _0x6fc9();}import{AIChatContext as _0x3964a2}from'./aichatcontext.js';function _0x49a5(_0x46957a,_0x18e619){var _0x6fc9ee=_0x6fc9();return _0x49a5=function(_0x49a5cd,_0x49278b){_0x49a5cd=_0x49a5cd-0x86;var _0x106d1=_0x6fc9ee[_0x49a5cd];return _0x106d1;},_0x49a5(_0x46957a,_0x18e619);}export class AIChatInteraction extends _0xf34ee1{[_0x57e58d(0x8c)];[_0x57e58d(0x92)];[_0x57e58d(0x8a)]=new Map();[_0x57e58d(0x88)];[_0x57e58d(0x87)];constructor(_0x466ead){var _0xe5b515=_0x57e58d;super(_0x466ead),this[_0xe5b515(0x92)]=_0x466ead[_0xe5b515(0x92)],this[_0xe5b515(0x8a)]=_0x466ead[_0xe5b515(0x8a)],this[_0xe5b515(0x94)]=_0x466ead[_0xe5b515(0x94)],this[_0xe5b515(0x8c)]=_0x466ead[_0xe5b515(0x8c)],this[_0xe5b515(0x88)]=_0x466ead[_0xe5b515(0x88)],this[_0xe5b515(0x87)]=_0x466ead[_0xe5b515(0x87)];}async[_0x57e58d(0x89)](){var _0x3c61ee=_0x57e58d;return this[_0x3c61ee(0x91)][_0x3c61ee(0x98)]({'message':this[_0x3c61ee(0x8c)],'conversationId':this[_0x3c61ee(0x92)],'parts':_0x3964a2[_0x3c61ee(0x93)](this[_0x3c61ee(0x8a)]),'capabilities':_0x2b5bf9[_0x3c61ee(0x97)](this[_0x3c61ee(0x94)]),'model':this[_0x3c61ee(0x88)],'quickActionData':this[_0x3c61ee(0x87)]});}[_0x57e58d(0x96)](){var _0x1a32cc=_0x57e58d;return this[_0x1a32cc(0x8a)][_0x1a32cc(0x8e)](_0x1a32cc(0x8d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5d7554=_0x3d8e;(function(_0x266d11,_0x3b412b){const _0x222890=_0x3d8e,_0x1ee7c0=_0x266d11();while(!![]){try{const _0x3b19eb=-parseInt(_0x222890(0x13d))/0x1*(parseInt(_0x222890(0x14a))/0x2)+parseInt(_0x222890(0x14d))/0x3*(-parseInt(_0x222890(0x145))/0x4)+-parseInt(_0x222890(0x14c))/0x5*(-parseInt(_0x222890(0x146))/0x6)+-parseInt(_0x222890(0x144))/0x7*(parseInt(_0x222890(0x141))/0x8)+-parseInt(_0x222890(0x149))/0x9+parseInt(_0x222890(0x13e))/0xa+-parseInt(_0x222890(0x142))/0xb*(-parseInt(_0x222890(0x147))/0xc);if(_0x3b19eb===_0x3b412b)break;else _0x1ee7c0['push'](_0x1ee7c0['shift']());}catch(_0x2639ab){_0x1ee7c0['push'](_0x1ee7c0['shift']());}}}(_0x2ed9,0x59d97));import{AIModels as _0x466e23}from'../../aicore/model/aimodels.js';function _0x3d8e(_0x5c0220,_0x489bcc){const _0x2ed979=_0x2ed9();return _0x3d8e=function(_0x3d8e4f,_0xab6ba2){_0x3d8e4f=_0x3d8e4f-0x13b;let _0x1b3770=_0x2ed979[_0x3d8e4f];return _0x1b3770;},_0x3d8e(_0x5c0220,_0x489bcc);}function _0x2ed9(){const _0x43bb5d=['16MFhByU','sort','15FLWQmZ','139155SPEGMC','length','enabled','86206ODirwR','4917240MXtTtW','filter','getAll','2600344uTYluk','33fzdAIf','values','7CvHVKq','4JdWPMP','978018Mnvkqy','1818876PvrkGB','capabilities','57177vhkGPR'];_0x2ed9=function(){return _0x43bb5d;};return _0x2ed9();}export class AIChatModels extends _0x466e23{async[_0x5d7554(0x140)](){const _0x18ba45=_0x5d7554;return(await super[_0x18ba45(0x140)]())[_0x18ba45(0x14b)]((_0x525fee,_0x3e23c4)=>{const _0x525429=_0x18ba45,_0x3cdca6=Object[_0x525429(0x143)](_0x525fee[_0x525429(0x148)])[_0x525429(0x13f)](_0x1b989c=>_0x1b989c[_0x525429(0x13c)])[_0x525429(0x13b)];return Object[_0x525429(0x143)](_0x3e23c4[_0x525429(0x148)])[_0x525429(0x13f)](_0x1f14a8=>_0x1f14a8[_0x525429(0x13c)])[_0x525429(0x13b)]-_0x3cdca6;});}}
|