@ckeditor/ckeditor5-ai 47.6.2-alpha.1 → 47.7.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.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/aichatfeedcustomelementview.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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x52b282=_0x1cfd;(function(_0x26c59c,_0x2b56ad){const _0x2cd00f=_0x1cfd,_0x3e70af=_0x26c59c();while(!![]){try{const _0x14baa8=-parseInt(_0x2cd00f(0xf0))/0x1*(-parseInt(_0x2cd00f(0xfc))/0x2)+parseInt(_0x2cd00f(0xe5))/0x3*(parseInt(_0x2cd00f(0xd7))/0x4)+-parseInt(_0x2cd00f(0xf5))/0x5+parseInt(_0x2cd00f(0xec))/0x6*(-parseInt(_0x2cd00f(0x10b))/0x7)+parseInt(_0x2cd00f(0xd8))/0x8+-parseInt(_0x2cd00f(0xd9))/0x9+-parseInt(_0x2cd00f(0xdb))/0xa*(-parseInt(_0x2cd00f(0x104))/0xb);if(_0x14baa8===_0x2b56ad)break;else _0x3e70af['push'](_0x3e70af['shift']());}catch(_0x4a7026){_0x3e70af['push'](_0x3e70af['shift']());}}}(_0x27f6,0xcca5c));import{Plugin as _0x58fe0d}from'ckeditor5/src/core.js';import{AIBalloon as _0x287dae}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x19f564}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x1cfd(_0x3b691f,_0x2b0eb7){const _0x27f613=_0x27f6();return _0x1cfd=function(_0x1cfdd3,_0xa550dd){_0x1cfdd3=_0x1cfdd3-0xd0;let _0x4013b=_0x27f613[_0x1cfdd3];return _0x4013b;},_0x1cfd(_0x3b691f,_0x2b0eb7);}import{AIChatBalloonView as _0x2ff865}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4d23e3}from'../aicore/utils/eventnames.js';function _0x27f6(){const _0x55244e=['has','TrackChanges','config','showPrevious','focus','updateContent','get','_toggleRotatorButtonsInDialogHeader','headerView','3MBMjmq','_createChatBalloonView','isOfficialPlugin','commands','bind','ck-ai-chat-balloon','rejectSuggestion','378aRunwd','close','togglePartToolbarEnabled','showNext','37127mGdMaz','pluginName','open','areActionsDisabled','previousButtonView','1651810oJDHCO','remove','applySuggestion','AIBalloon','set','insertSuggestion','setState','20JdNZAl','value','render','beforeDialogClosed','plugins','view','editor','delegate','7148449NemxVP','requires','showRotator','toggleRotatorButtonsVisibility','AIChatBalloon','ai.availableReplyActions','dialogClosed','164563kbimhq','aiChatBalloon','showDiff','nextButtonView','once','locale','Dialog','isPremiumPlugin','trackChanges','children','addMany','_restoreDefaultViewFocus','isTrackChangesOn','filter','5649544MLipir','7576056mTXCSm','6577713wLYrkk','_chatBalloonView','10CgmaNu'];_0x27f6=function(){return _0x55244e;};return _0x27f6();}import{Dialog as _0x30b2dd}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x58fe0d{static get[_0x52b282(0x105)](){return[_0x30b2dd,_0x287dae];}static get[_0x52b282(0xf1)](){const _0x4bcdf2=_0x52b282;return _0x4bcdf2(0x108);}static get[_0x52b282(0xe7)](){return!0x0;}static get[_0x52b282(0xd0)](){return!0x0;}[_0x52b282(0xda)];constructor(_0x2e638c){const _0x512a51=_0x52b282;super(_0x2e638c),this[_0x512a51(0xf9)](_0x512a51(0x10d),!0x1);}[_0x52b282(0xf2)](_0x472db0){const _0x3b8fbd=_0x52b282,_0x5a999b=this[_0x3b8fbd(0x102)];this[_0x3b8fbd(0xda)]||(this[_0x3b8fbd(0xda)]=this[_0x3b8fbd(0xe6)]()),_0x5a999b[_0x3b8fbd(0x100)][_0x3b8fbd(0xe2)](_0x3b8fbd(0xf8))[_0x3b8fbd(0xf2)]({..._0x472db0,'id':_0x3b8fbd(0x10c),'class':_0x3b8fbd(0xea),'mainView':this[_0x3b8fbd(0xda)]}),this[_0x3b8fbd(0xe3)](_0x472db0[_0x3b8fbd(0x106)]),this[_0x3b8fbd(0xda)][_0x3b8fbd(0xee)](!_0x472db0[_0x3b8fbd(0xf3)]),this[_0x3b8fbd(0xd4)]();}[_0x52b282(0xed)](){const _0x14b70d=_0x52b282;this[_0x14b70d(0x102)][_0x14b70d(0x100)][_0x14b70d(0xe2)](_0x14b70d(0xf8))[_0x14b70d(0xed)]();}[_0x52b282(0xe1)](_0x1cce8f){const _0x41700d=_0x52b282;return this[_0x41700d(0xda)]||(this[_0x41700d(0xda)]=this[_0x41700d(0xe6)]()),this[_0x41700d(0xda)][_0x41700d(0xe1)](_0x1cce8f);}[_0x52b282(0xfb)](_0x24aef0){const _0x30aeb1=_0x52b282;this[_0x30aeb1(0xda)]&&this[_0x30aeb1(0xda)][_0x30aeb1(0xfb)](_0x24aef0);}[_0x52b282(0xe6)](){const _0x3fc59b=_0x52b282,_0x21ebd6=this[_0x3fc59b(0x102)],_0x4f2e75=_0x21ebd6[_0x3fc59b(0x100)][_0x3fc59b(0xe2)](_0x3fc59b(0xf8)),_0x3f6617=_0x21ebd6[_0x3fc59b(0xe8)][_0x3fc59b(0xe2)](_0x3fc59b(0xd1));let _0x77e5d5=_0x21ebd6[_0x3fc59b(0xde)][_0x3fc59b(0xe2)](_0x3fc59b(0x109))||[..._0x19f564];_0x21ebd6[_0x3fc59b(0x100)][_0x3fc59b(0xdc)](_0x3fc59b(0xdd))||(_0x77e5d5=_0x77e5d5[_0x3fc59b(0xd6)](_0x1569f3=>_0x3fc59b(0xfa)!=_0x1569f3));const _0x3b2957=new _0x2ff865(_0x21ebd6[_0x3fc59b(0x110)],{'availableActions':_0x77e5d5,'showApplyButton':!0x0,'showSuggestButton':!!_0x3f6617});return _0x3b2957[_0x3fc59b(0xe9)](_0x3fc59b(0x10d))['to'](this),_0x3b2957[_0x3fc59b(0x103)](..._0x4d23e3)['to'](this),_0x3b2957[_0x3fc59b(0x103)](_0x3fc59b(0xdf),_0x3fc59b(0xef))['to'](this),_0x4f2e75[_0x3fc59b(0x103)](_0x3fc59b(0x10a))['to'](this),_0x3b2957['on'](_0x3fc59b(0xf7),this[_0x3fc59b(0xd4)][_0x3fc59b(0xe9)](this)),_0x3b2957['on'](_0x3fc59b(0xfa),this[_0x3fc59b(0xd4)][_0x3fc59b(0xe9)](this)),_0x3b2957['on'](_0x3fc59b(0xeb),this[_0x3fc59b(0xd4)][_0x3fc59b(0xe9)](this)),_0x3f6617&&_0x3b2957[_0x3fc59b(0xe9)](_0x3fc59b(0xd5))['to'](_0x3f6617,_0x3fc59b(0xfd)),_0x3b2957[_0x3fc59b(0xfe)](),_0x3b2957;}[_0x52b282(0xe3)](_0x2e69ce){const _0x546d29=_0x52b282,_0xefee5f=this[_0x546d29(0x102)],_0x21209f=_0xefee5f[_0x546d29(0x100)][_0x546d29(0xe2)](_0x546d29(0x111))[_0x546d29(0x101)][_0x546d29(0xe4)][_0x546d29(0xd2)];this[_0x546d29(0xda)][_0x546d29(0x107)](_0x2e69ce),_0x21209f[_0x546d29(0xdc)](this[_0x546d29(0xda)][_0x546d29(0xf4)])||(_0x21209f[_0x546d29(0xd3)]([this[_0x546d29(0xda)][_0x546d29(0xf4)],this[_0x546d29(0xda)][_0x546d29(0x10e)]],0x0),_0xefee5f[_0x546d29(0x100)][_0x546d29(0xe2)](_0x546d29(0xf8))[_0x546d29(0x10f)](_0x546d29(0xff),()=>{const _0x3cf24b=_0x546d29;_0x21209f[_0x3cf24b(0xf6)](this[_0x3cf24b(0xda)][_0x3cf24b(0xf4)]),_0x21209f[_0x3cf24b(0xf6)](this[_0x3cf24b(0xda)][_0x3cf24b(0x10e)]);}));}[_0x52b282(0xd4)](){const _0x32b9f6=_0x52b282;this[_0x32b9f6(0xda)][_0x32b9f6(0xe0)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2fb3da=_0xa9dc;(function(_0x3e5948,_0x141114){const _0x15ffd0=_0xa9dc,_0x10212e=_0x3e5948();while(!![]){try{const _0x17b889=-parseInt(_0x15ffd0(0x247))/0x1+parseInt(_0x15ffd0(0x22c))/0x2+-parseInt(_0x15ffd0(0x265))/0x3+parseInt(_0x15ffd0(0x1bf))/0x4+parseInt(_0x15ffd0(0x239))/0x5+-parseInt(_0x15ffd0(0x23f))/0x6+parseInt(_0x15ffd0(0x149))/0x7;if(_0x17b889===_0x141114)break;else _0x10212e['push'](_0x10212e['shift']());}catch(_0x387f1f){_0x10212e['push'](_0x10212e['shift']());}}}(_0x3dfc,0xd7680));import{ContextPlugin as _0x6a6b8c,Editor as _0x29a2c2}from'ckeditor5/src/core.js';import{BodyCollection as _0x406d49}from'ckeditor5/src/ui.js';import{CKEditorError as _0x431979,logError as _0x309d8c,scrollViewportToShowTarget as _0x2af423,uid as _0xc63f40}from'ckeditor5/src/utils.js';import{AIConnector as _0x2934f0}from'../aicore/aiconnector.js';import{AITabs as _0x33ee2c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3b9d4b}from'./model/aichatconversation.js';function _0xa9dc(_0x1cd39b,_0xd59896){const _0x3dfc9f=_0x3dfc();return _0xa9dc=function(_0xa9dc48,_0x52e63d){_0xa9dc48=_0xa9dc48-0x102;let _0x6d365d=_0x3dfc9f[_0xa9dc48];return _0x6d365d;},_0xa9dc(_0x1cd39b,_0xd59896);}function _0x3dfc(){const _0x59e0c8=['collaboration.channelId','addFeedItemUserMessage','startAutoScroll','sourcePosition','from','clearLoadingMessage','removeContextItem','removeFromContext','getDiff','interactionDestroyed','changes','baseVersion','webSearchStarted','config','forEach','clearConversationContextUI','uiId','version','getConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','getAll','AI_CHAT_CONTEXT_INVALID_DATA','getFirstRange','toolDataReceived','getPath','ai.chat.initialConversation','AI_CHAT_ABORTED_MESSAGE','getAttribute','_handleStartConversation','path','selection','change','hideFakeVisualSelection','showPrevious','getChild','set','hasChanges','plugins','open','closeSourceResourceBalloon','redo','Showing\x20conversation\x20history...','contextSent','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','interactionCreated','streaming','addOperation','sendUserMessage','_applySuggestion','document','_aiConnector','focusPromptInput','resetWebSearchState','ai-chat-context-invalid-data','sourceId','getTransformedByOperation','showDiff','updateConversationTitle','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','contextItems','outdated','query','done','replyId','resource','scrollFeedToSuggestion','isDocumentOperation','AIChatBalloon','AIChatController','prepareLoadingMessage','start','TrackChangesEditing','locale','ai-chat-context-file-too-many-pages','AI_CHAT_CONTEXT_FILE_TOO_LARGE','activateTab','_createFromRanges','isOfficialPlugin','domConverter','_openBalloonFor','createConversation','indexes','stop','addResourceToContext','addContextItem','remove','createPositionAt','_logError','createReply','alignToTop','setAddContextOptions','abortPromptStream','getOperations','next','ai-chat-resource-load-failed','_getPresentableSiblingContentPartIndex','isUploadInProgress','addCurrentDocumentToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','finishInteraction','startConversation','activeConversation','createdAt','partIndex','1352988kdHZcI','editing','contextItemLoadingEnded','revert','setModel','handleUserInteraction','map','handleRemovedConversation','setFeedItemRenderingStrategy','setConversationTitle','unshift','sourceResourcesLoaded','dialogClosed','_toggleWebSearch','toggleReasoning','_rejectSuggestion','setConversationContext','addCurrentDocumentToChatContext','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','interactionStarted','_setIsMaximized','getSelectionText','addDocumentToContext','_getAIChatInteractionAPI','removed','root','resizedTabs','toggleWebSearch','has','type','ai.models','aiChatBalloon','destroy','updateContent','new','updateCurrentDocumentInContext','loadSourceResources','batch','startsWith','history','ai.chat.context','sources','executeCustomItemCallback','ai-chat-url-upload-failed','mouseLeaveSuggestion','updateFeedItemAIReplySources','_aiChatModels','conversationInitialized','replyChangeGroupStateUpdated','isDisabled','selectModel','_currentPreviewedChangeGroup','sendMessage','uid','modification','length','upsertAIChatRating','getChildren','index','addContextOptionsChanged','Disliked\x20response','setSelectedModel','replyCreated','reasoningFinished','currentReply','$graveyard','range','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','mouseOverSuggestion','removeFeedInteraction','disableControls','indexOf','fetchConversations','ai-conversation-','commands','showFakeVisualSelection','AIEditing','delegate','updateFeedItemAIReplyContent','_removeFromContext','AIChatUI','addSelectionToContext','uploadProgressChanged','ai-chat-conversation-start-failed','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','addFileToContext','includes','resizeTabs','slice','resize','previous','addFeedItemError','like','detachFromDom','setContextItemLoading','listenTo','areActionsDisabled','ai-request-aborted','_batchToChanges','_getUserPresentableContentPartDocumentRange','AI_CHAT_UNTITLED_CONVERSATION','_registerToolDataCallback','resetConversationTitle','toggleLoadingSkeleton','push','pending','fetchConversation','TrackChanges','_updateRatings','1876938TiqjnK','ai.models.defaultModelId','updateFeedItemAIReplySuggestionContent','anchorId','lastInteraction','removeSelectionFromContext','_startConversationSafely','resetReasoningState','_showConversationHistory','contextItemAdded','interactionId','maxOffset','stopInteraction','6683865DtnKzO','bind','changeGroups','isCurrentDocumentInContext','addSelectionToChatContext','getContentParts','9765042llGlzN','get','setState','_applyOperationsAsSuggestions','ready','startInteraction','addFeedItemStaticMessage','_getLastCreatedConversationId','626799MPJENS','load','_aiChatUi','showNext','ai-chat-context-unsupported-type','setLoadingMessage','log','editors','addFeedInteractionHeader','AI_CHAT_INVALID_REQUEST','isStarted','rejected','applySuggestion','view','end','interactionFinished','data','ai-chat-controller-no-active-conversation','getRanges','Undo','context','isInContext','isCurrentDocumentInConversation','split','find','addFilesToContext','DocumentCompare','resourceStateChanged','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','options','786321jFoATk','addUrlToContext','AI_CHAT_GENERIC_ERROR','children','attachToDom','cloneNode','createRange','_aiChatBalloon','_integrateEditor','message','source','marker','main','selectedModel','close','current-document','undo','nextSibling','dislike','resources','requires','ai-chat-controller-mouse-over','getInteraction','reasoningStarted','AI_CHAT_RESOURCE_LOAD_FAILED','updateCapabilities','ai-chat-context-unsupported-file-type','resourceId','_flushLastInteractionUI','isLoading','static','accepted','rejectSuggestion','isModelAvailable','pluginName','_handleUIUserMessage','_bodyCollection','createPositionFromPath','getConversations','ai-chat-conversation-not-found','enableControls','_scrollToSuggestionRange','afterInit','sessionId','modelSelected','getChildAtOffset','node','_getDocumentRangeForReplyChanges','updateFeedItemAIReplySuggestionPartState','loadConversation','getGroupId','getDocumentData','replyContentUpdated','chat','howMany','AI_CHAT_UNABLE_TO_START_CONVERSATION','_aiChatBalloonShowDiff','lastCreated','_toggleReasoning','Liked\x20response','ai-chat-context-file-too-large','addFeedItemAISuggestion','text','setIsMaximized','ai-chat-context-form-data-size-limits-exceeded','rootName','mapper','messageId','init','populateSourceResourceBalloon','setChangeGroupState','ai-no-track-changes','getDocumentContext','_insertSuggestion','contextItemRemoved','findIndex','showChangeInText','data-id','resetMessageInput','capabilitiesUpdated','updateResourceState','callback','AITabs','ai-chat-conversation-init-failed','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','viewRangeToDom','webSearchFinished','ai-chat-missing-channel-id','clearPendingContextUI','error','add','ai-chat-invalid-request','ai-chat-file-upload-failed','isPremiumPlugin','getReply','setFeedItemAIReplySuggestionPartActive','getInteractionAndReplyById','state','model','parse','toString','AI_BALLOON_HEADER_TITLE','_aiEditing','contextItem','AIConnector','removeSelectionFromChatContext','setIsUploadInProgress','delete','addFeedItemCustomElement','5496596Wmbzac','toViewRange','_updateReplyContent','replies','getRoot','documentContextContent','content','addFeedItemAIReply','toggleSuggestionDisplayMode','applyOperation','ai-chat-source-resources-load-failed','_stopLastInteraction','insertSuggestion','filter'];_0x3dfc=function(){return _0x59e0c8;};return _0x3dfc();}import{getTranslation as _0x61ecef}from'../aicore/utils/common-translations.js';import{AIModels as _0xaadfb5}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x274ef8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x9abce7,DATA_ID_MODEL_ATTRIBUTE as _0x3ab391}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3a0939,getOperationsFromReply as _0x2ca132}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x329751,getMinimalSelection as _0x44f01f}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x5cbaa6,_DetachOperation as _0x51eae6}from'ckeditor5/src/engine.js';import{findOne as _0x3b9499,getAttribute as _0x439b9c,serialize as _0x433789,Document as _0x1d6823,findByAttribute as _0x13c50d}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x6a6b8c{[_0x2fb3da(0x142)];[_0x2fb3da(0x189)];[_0x2fb3da(0x249)];[_0x2fb3da(0x1ed)];[_0x2fb3da(0x26c)];[_0x2fb3da(0x221)]=new Map();[_0x2fb3da(0x1f2)]=null;[_0x2fb3da(0x289)];static get[_0x2fb3da(0x279)](){return[_0x2934f0,_0x9abce7];}static get[_0x2fb3da(0x287)](){const _0x32b5f7=_0x2fb3da;return _0x32b5f7(0x19b);}static get[_0x2fb3da(0x1a4)](){return!0x0;}static get[_0x2fb3da(0x139)](){return!0x0;}[_0x2fb3da(0x120)](){const _0x47f0e0=_0x2fb3da;this[_0x47f0e0(0x289)]=new _0x406d49(this[_0x47f0e0(0x25b)][_0x47f0e0(0x19f)]),this[_0x47f0e0(0x289)][_0x47f0e0(0x269)](),this[_0x47f0e0(0x189)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x144)),this[_0x47f0e0(0x249)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x20f)),this[_0x47f0e0(0x142)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x20b)),this[_0x47f0e0(0x1ed)]=new _0xaadfb5({'connector':this[_0x47f0e0(0x189)],'config':this[_0x47f0e0(0x25b)][_0x47f0e0(0x164)][_0x47f0e0(0x240)](_0x47f0e0(0x1dd)),'locale':this[_0x47f0e0(0x25b)][_0x47f0e0(0x19f)]});const _0x540b88=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x12e));this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1bb),()=>{const _0x364b86=_0x47f0e0;this[_0x364b86(0x232)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x186),(_0xfbd031,_0x7bbee2)=>{const _0x65c06c=_0x47f0e0;this[_0x65c06c(0x288)]({'userMessage':_0x7bbee2});}),this[_0x47f0e0(0x21e)](_0x540b88,_0x47f0e0(0x1d9),(_0x4c918a,_0x474748)=>{const _0x4799df=_0x47f0e0;this[_0x4799df(0x1d3)](_0x474748);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x216),()=>{const _0xf034a4=_0x47f0e0;_0x540b88[_0xf034a4(0x218)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1b2),async()=>{const _0xc3c5cf=_0x47f0e0;await this[_0xc3c5cf(0x154)](),await this[_0xc3c5cf(0x281)](),this[_0xc3c5cf(0x145)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1d5),()=>{const _0x58c610=_0x47f0e0;this[_0x58c610(0x1d0)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x214),(_0xf6f508,_0x5c1959)=>{const _0xa61c58=_0x47f0e0;this[_0xa61c58(0x1bc)]?.[_0xa61c58(0x260)](Array[_0xa61c58(0x15b)](_0x5c1959));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x266),(_0x5553bc,_0x1be8a3)=>{const _0x355681=_0x47f0e0;this[_0x355681(0x1bc)]?.[_0x355681(0x266)](_0x1be8a3);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1e9),(_0x5d7c07,_0x3070b4)=>{const _0x637da2=_0x47f0e0;_0x3070b4[_0x637da2(0x12d)](this[_0x637da2(0x25b)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1aa),(_0x50cec3,_0x1c53c5)=>{const _0x2b505c=_0x47f0e0;this[_0x2b505c(0x1bc)]?.[_0x2b505c(0x1aa)](_0x1c53c5[_0x2b505c(0x26f)],_0x1c53c5[_0x2b505c(0x197)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x15d),(_0x42b937,_0x19d82f)=>{const _0x5630ff=_0x47f0e0;this[_0x5630ff(0x20e)](_0x19d82f);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1e3),(_0x5babe4,_0x1251f1)=>{const _0x600c25=_0x47f0e0;this[_0x600c25(0x1bc)]?.[_0x600c25(0x1e3)](_0x1251f1[_0x600c25(0x18d)],_0x1251f1[_0x600c25(0x194)],_0x1251f1[_0x600c25(0x1f4)]);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1da),()=>{const _0x14b238=_0x47f0e0;this[_0x14b238(0x1cc)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1cd),()=>{const _0xd2ec9a=_0x47f0e0;this[_0xd2ec9a(0x116)]();}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1f1),(_0x39831a,_0x268867)=>{const _0x35a0af=_0x47f0e0;this[_0x35a0af(0x1bc)]?.[_0x35a0af(0x1c3)](_0x268867);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x21b),(_0xc444ed,{replyId:_0x1f09f0})=>{const _0x11267e=_0x47f0e0;console[_0x11267e(0x24d)](_0x11267e(0x117),_0x1f09f0);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x277),(_0x3276d9,{replyId:_0x23cf28})=>{const _0x48ef06=_0x47f0e0;console[_0x48ef06(0x24d)](_0x48ef06(0x1fb),_0x23cf28);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x155),(_0x38a47d,_0x570a6c)=>{const _0x4eefc8=_0x47f0e0;this[_0x4eefc8(0x125)](_0x570a6c);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x128),(_0x170d63,{replyId:_0x599d60,partIndex:_0x2bc48c})=>{const _0x16f2fb=_0x47f0e0;this[_0x16f2fb(0x114)]=this[_0x16f2fb(0x249)][_0x16f2fb(0x18f)],this[_0x16f2fb(0x1a6)](_0x599d60,_0x2bc48c);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x203),(_0x23226a,{replyId:_0x4e55f5,partIndex:_0x155b77})=>{const _0x6c18a=_0x47f0e0,_0x29ec25=this[_0x6c18a(0x10b)](_0x4e55f5,_0x155b77);_0x29ec25&&_0x6c18a(0x200)!=_0x29ec25[_0x6c18a(0x201)][_0x6c18a(0x1d8)][_0x6c18a(0x11d)]&&this[_0x6c18a(0x142)][_0x6c18a(0x20a)]([_0x29ec25[_0x6c18a(0x201)]],_0x6c18a(0x27a));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x1eb),()=>{const _0x1cf817=_0x47f0e0;this[_0x1cf817(0x142)][_0x1cf817(0x177)](_0x1cf817(0x27a));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x253),(_0x3bea81,_0x40d329)=>{const _0x4a341a=_0x47f0e0;this[_0x4a341a(0x142)][_0x4a341a(0x177)](_0x4a341a(0x27a)),this[_0x4a341a(0x187)](_0x40d329);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x151),async(_0x461266,{replyId:_0x2b4892,showDiff:_0x983c32})=>{const _0x173134=_0x47f0e0,{reply:_0x423a6e}=this[_0x173134(0x13c)](_0x2b4892),_0x34f296=_0x423a6e[_0x173134(0x23e)]({'showDiff':_0x983c32});await this[_0x173134(0x249)][_0x173134(0x22e)]({'id':_0x423a6e['id'],'parts':_0x34f296,'renderingStrategy':_0x173134(0x283)});}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x249)],_0x47f0e0(0x285),(_0x3ebd8c,{replyId:_0x2b8f28,partIndex:_0x2bac80})=>{const _0x5e5256=_0x47f0e0;this[_0x5e5256(0x1ce)]({'replyId':_0x2b8f28,'partIndex':_0x2bac80}),this[_0x5e5256(0x142)][_0x5e5256(0x177)](_0x5e5256(0x27a));}),this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x1db)](_0x47f0e0(0x19a))&&(this[_0x47f0e0(0x26c)]=this[_0x47f0e0(0x25b)][_0x47f0e0(0x17c)][_0x47f0e0(0x240)](_0x47f0e0(0x19a)),this[_0x47f0e0(0x17a)](_0x47f0e0(0x114),!0x1),this[_0x47f0e0(0x26c)][_0x47f0e0(0x23a)](_0x47f0e0(0x18f))['to'](this,_0x47f0e0(0x114)),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x151),()=>{const _0xb836c1=_0x47f0e0,{replyId:_0x431948,partIndex:_0x799d4a}=this[_0xb836c1(0x1f2)];this[_0xb836c1(0x114)]=!this[_0xb836c1(0x114)];const {reply:_0x3ed1c1}=this[_0xb836c1(0x13c)](_0x431948),_0xd0f76c=_0x3ed1c1[_0xb836c1(0x23e)]({'showDiff':this[_0xb836c1(0x114)],'groupIndex':_0x799d4a});this[_0xb836c1(0x26c)][_0xb836c1(0x1e0)]({'part':_0xd0f76c[0x0],'renderingStrategy':_0xb836c1(0x283),'keepErrors':!0x0});}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x253),()=>{const _0xe41b93=_0x47f0e0,{replyId:_0x13e82f,partIndex:_0x678650}=this[_0xe41b93(0x1f2)];this[_0xe41b93(0x187)]({'replyId':_0x13e82f,'partIndex':_0x678650}),this[_0xe41b93(0x26c)][_0xe41b93(0x241)](_0xe41b93(0x284));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x155),()=>{const _0x9b5475=_0x47f0e0,{replyId:_0x23b579,partIndex:_0x1850f4}=this[_0x9b5475(0x1f2)];this[_0x9b5475(0x125)]({'replyId':_0x23b579,'partIndex':_0x1850f4}),this[_0x9b5475(0x26c)][_0x9b5475(0x241)](_0x9b5475(0x284));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x285),()=>{const _0x565b7c=_0x47f0e0,{replyId:_0x1311c1,partIndex:_0xb8695d}=this[_0x565b7c(0x1f2)];this[_0x565b7c(0x1ce)]({'replyId':_0x1311c1,'partIndex':_0xb8695d}),this[_0x565b7c(0x26c)][_0x565b7c(0x241)](_0x565b7c(0x252));}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x24a),()=>{const _0x4cf70d=_0x47f0e0,{replyId:_0x565830,partIndex:_0x37e0b3}=this[_0x4cf70d(0x1f2)],_0x3387eb=this[_0x4cf70d(0x1b6)](_0x565830,_0x37e0b3,_0x4cf70d(0x1b4));null!==_0x3387eb&&this[_0x4cf70d(0x1a6)](_0x565830,_0x3387eb);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x178),()=>{const _0x3987df=_0x47f0e0,{replyId:_0x3349a7,partIndex:_0x3b332b}=this[_0x3987df(0x1f2)],_0x2d931b=this[_0x3987df(0x1b6)](_0x3349a7,_0x3b332b,_0x3987df(0x219));null!==_0x2d931b&&this[_0x3987df(0x1a6)](_0x3349a7,_0x2d931b);}),this[_0x47f0e0(0x21e)](this[_0x47f0e0(0x26c)],_0x47f0e0(0x1cb),(_0x525c5f,{id:_0x4202f6})=>{const _0x5a9bf9=_0x47f0e0;if(_0x5a9bf9(0x1de)!==_0x4202f6)return;const {replyId:_0x1dd2ad,partIndex:_0x411b4e}=this[_0x5a9bf9(0x1f2)];this[_0x5a9bf9(0x1f2)]=null,this[_0x5a9bf9(0x249)][_0x5a9bf9(0x13b)]({'id':_0x1dd2ad,'index':_0x411b4e,'isActive':!0x1});}));}async[_0x2fb3da(0x106)](){const _0x5889a8=_0x2fb3da;this[_0x5889a8(0x25b)]instanceof _0x29a2c2?this[_0x5889a8(0x26d)](this[_0x5889a8(0x25b)]):this[_0x5889a8(0x21e)](this[_0x5889a8(0x25b)][_0x5889a8(0x24e)],_0x5889a8(0x136),(_0x49996f,_0xea7ec6)=>{const _0x4f4440=_0x5889a8;_0xea7ec6['on'](_0x4f4440(0x243),()=>{const _0x65fd78=_0x4f4440;this[_0x65fd78(0x26d)](_0xea7ec6);});});const _0xce8ccf=this[_0x5889a8(0x25b)][_0x5889a8(0x164)][_0x5889a8(0x240)](_0x5889a8(0x170));let _0x2b6b11=_0xce8ccf;if(_0x5889a8(0x115)!=_0xce8ccf||(_0x2b6b11=await this[_0x5889a8(0x246)](),_0x2b6b11))return _0x5889a8(0x1e1)==_0x2b6b11?this[_0x5889a8(0x232)]():this[_0x5889a8(0x10d)](_0x2b6b11);}async[_0x2fb3da(0x1df)](){const _0x10175e=_0x2fb3da;return await this[_0x10175e(0x154)](),this[_0x10175e(0x289)][_0x10175e(0x21c)](),super[_0x10175e(0x1df)]();}[_0x2fb3da(0x125)](_0x127c3e){const _0x259f67=_0x2fb3da,_0x4041f8=_0x274ef8(this[_0x259f67(0x25b)]);if(!_0x4041f8[_0x259f67(0x17c)][_0x259f67(0x1db)](_0x259f67(0x22a)))throw new _0x431979(_0x259f67(0x123),null);const _0x4eedf8=this[_0x259f67(0x25b)][_0x259f67(0x17c)][_0x259f67(0x240)](_0x259f67(0x261)),{reply:_0x1f3a32,interaction:_0x505b35}=this[_0x259f67(0x13c)](_0x127c3e[_0x259f67(0x196)]),_0x4008bd=this[_0x259f67(0x10b)](_0x127c3e[_0x259f67(0x196)],_0x127c3e[_0x259f67(0x1be)]),_0x52c95c=void 0x0!==_0x127c3e[_0x259f67(0x1be)]?[_0x1f3a32[_0x259f67(0x23b)][_0x127c3e[_0x259f67(0x1be)]]]:_0x1f3a32[_0x259f67(0x23b)][_0x259f67(0x156)](_0x487815=>_0x259f67(0x228)==_0x487815[_0x259f67(0x13d)]),_0x5e36ef=_0x52c95c[_0x259f67(0x1c5)](_0x1818bb=>_0x1f3a32[_0x259f67(0x23b)][_0x259f67(0x206)](_0x1818bb));if(!_0x4008bd||_0x259f67(0x200)==_0x4008bd[_0x259f67(0x201)][_0x259f67(0x1d8)][_0x259f67(0x11d)])return void _0x5e36ef[_0x259f67(0x165)](_0x5d3f95=>_0x1f3a32[_0x259f67(0x122)](_0x5d3f95,_0x259f67(0x193)));_0x5e36ef[_0x259f67(0x165)](_0x596c45=>_0x1f3a32[_0x259f67(0x122)](_0x596c45,_0x259f67(0x284)));const _0x501d1c=_0x2ca132({'editor':_0x4041f8,'reply':_0x1f3a32,'interaction':_0x505b35,'groups':_0x52c95c,'transform':!0x0,'documentCompare':_0x4eedf8,'documentCompareOptions':{'anchor':_0x259f67(0x271),'markDeletions':!0x0}});let _0x4bebbb;_0x4008bd&&this[_0x259f67(0x105)](_0x4008bd[_0x259f67(0x201)]),_0x4041f8[_0x259f67(0x13e)][_0x259f67(0x176)](_0x5c467d=>{const _0x280b9e=_0x259f67;_0x4bebbb=_0x5c467d[_0x280b9e(0x1e4)],_0x4041f8[_0x280b9e(0x17c)][_0x280b9e(0x240)](_0x280b9e(0x19e))[_0x280b9e(0x242)](_0x501d1c),this[_0x280b9e(0x142)][_0x280b9e(0x177)](_0x280b9e(0x27a));}),this[_0x259f67(0x221)][_0x259f67(0x17a)](_0x4bebbb,{'interactionId':_0x505b35['id'],'replyId':_0x1f3a32['id'],'indexes':_0x5e36ef[_0x259f67(0x217)]()}),this[_0x259f67(0x22b)](_0x1f3a32);}[_0x2fb3da(0x187)](_0xe7984){const _0x4a40e0=_0x2fb3da,_0x1c9942=_0x274ef8(this[_0x4a40e0(0x25b)]),_0x33c0b0=this[_0x4a40e0(0x25b)][_0x4a40e0(0x17c)][_0x4a40e0(0x240)](_0x9abce7),{reply:_0x30a5d6,interaction:_0x3d1249}=this[_0x4a40e0(0x13c)](_0xe7984[_0x4a40e0(0x196)]),_0x2c4250=this[_0x4a40e0(0x10b)](_0xe7984[_0x4a40e0(0x196)],_0xe7984[_0x4a40e0(0x1be)]),_0x5c507c=void 0x0!==_0xe7984[_0x4a40e0(0x1be)]?[_0x30a5d6[_0x4a40e0(0x23b)][_0xe7984[_0x4a40e0(0x1be)]]]:_0x30a5d6[_0x4a40e0(0x23b)][_0x4a40e0(0x156)](_0x4ebdc0=>_0x4a40e0(0x228)==_0x4ebdc0[_0x4a40e0(0x13d)]),_0x2c74c5=_0x5c507c[_0x4a40e0(0x1c5)](_0x28729b=>_0x30a5d6[_0x4a40e0(0x23b)][_0x4a40e0(0x206)](_0x28729b));if(!_0x2c4250||_0x4a40e0(0x200)==_0x2c4250[_0x4a40e0(0x201)][_0x4a40e0(0x1d8)][_0x4a40e0(0x11d)])return void _0x2c74c5[_0x4a40e0(0x165)](_0x4af5a=>_0x30a5d6[_0x4a40e0(0x122)](_0x4af5a,_0x4a40e0(0x193)));_0x2c74c5[_0x4a40e0(0x165)](_0x1e4605=>_0x30a5d6[_0x4a40e0(0x122)](_0x1e4605,_0x4a40e0(0x284)));const _0x9048de=_0x2ca132({'editor':_0x1c9942,'reply':_0x30a5d6,'interaction':_0x3d1249,'groups':_0x5c507c,'transform':!0x0,'documentCompare':_0x33c0b0,'documentCompareOptions':{'anchor':_0x4a40e0(0x271),'markDeletions':!0x1}});let _0x57b027;_0x2c4250&&this[_0x4a40e0(0x105)](_0x2c4250[_0x4a40e0(0x201)]),_0x1c9942[_0x4a40e0(0x13e)][_0x4a40e0(0x176)](_0x32f0d6=>{const _0x2f2a24=_0x4a40e0;_0x57b027=_0x32f0d6[_0x2f2a24(0x1e4)];for(const _0x14257e of _0x9048de)_0x14257e[_0x2f2a24(0x162)]=_0x1c9942[_0x2f2a24(0x13e)][_0x2f2a24(0x188)][_0x2f2a24(0x168)],_0x3a0939(_0x1c9942,_0x14257e),_0x32f0d6[_0x2f2a24(0x1e4)][_0x2f2a24(0x185)](_0x14257e),_0x1c9942[_0x2f2a24(0x13e)][_0x2f2a24(0x152)](_0x14257e);}),this[_0x4a40e0(0x221)][_0x4a40e0(0x17a)](_0x57b027,{'interactionId':_0x3d1249['id'],'replyId':_0x30a5d6['id'],'indexes':_0x2c74c5[_0x4a40e0(0x217)]()}),this[_0x4a40e0(0x22b)](_0x30a5d6);}[_0x2fb3da(0x1ce)](_0x57577d){const _0x2c3fce=_0x2fb3da,{reply:_0x43934f}=this[_0x2c3fce(0x13c)](_0x57577d[_0x2c3fce(0x196)]);_0x43934f[_0x2c3fce(0x122)](_0x57577d[_0x2c3fce(0x1be)],_0x2c3fce(0x252));}[_0x2fb3da(0x1a6)](_0x12b0a8,_0x323d60){const _0x4fd45e=_0x2fb3da;if(!this[_0x4fd45e(0x26c)])return;const {reply:_0x12ad66}=this[_0x4fd45e(0x13c)](_0x12b0a8),_0x249fc9=_0x12ad66[_0x4fd45e(0x23e)]({'showDiff':this[_0x4fd45e(0x114)]});let _0x23939e,_0x18c17b;if(void 0x0!==_0x323d60?(_0x18c17b=_0x249fc9[_0x4fd45e(0x25f)](_0x44c1f6=>_0x44c1f6[_0x4fd45e(0x1f9)]==_0x323d60),_0x23939e=_0x18c17b?.[_0x4fd45e(0x1f9)]):(_0x18c17b=_0x249fc9[0x0],_0x23939e=_0x18c17b[_0x4fd45e(0x1f9)]),this[_0x4fd45e(0x1f2)]?.[_0x4fd45e(0x196)]==_0x12b0a8&&this[_0x4fd45e(0x1f2)]?.[_0x4fd45e(0x1be)]==_0x23939e)return;const _0x45ecb9=this[_0x4fd45e(0x222)](_0x12b0a8,_0x12ad66,_0x18c17b);if(!_0x45ecb9)return void this[_0x4fd45e(0x26c)][_0x4fd45e(0x273)]();this[_0x4fd45e(0x1f2)]={'replyId':_0x12b0a8,'partIndex':_0x23939e},this[_0x4fd45e(0x105)](_0x45ecb9,!0x0);const _0x4502c7=this[_0x4fd45e(0x1b6)](_0x12b0a8,_0x23939e,_0x4fd45e(0x1b4));this[_0x4fd45e(0x26c)][_0x4fd45e(0x1e0)]({'part':_0x18c17b,'renderingStrategy':_0x4fd45e(0x283)}),this[_0x4fd45e(0x26c)][_0x4fd45e(0x17d)]({'index':_0x23939e,'title':_0x61ecef(this[_0x4fd45e(0x25b)][_0x4fd45e(0x19f)],_0x4fd45e(0x141),(_0x23939e+0x1)[_0x4fd45e(0x140)]()),'showRotator':null!==_0x4502c7,'ranges':[_0x45ecb9],'areActionsDisabled':_0x12ad66[_0x4fd45e(0x21f)]}),this[_0x4fd45e(0x26c)][_0x4fd45e(0x241)](_0x4fd45e(0x228)),this[_0x4fd45e(0x249)][_0x4fd45e(0x198)](_0x12b0a8,_0x23939e),this[_0x4fd45e(0x249)][_0x4fd45e(0x13b)]({'id':_0x12b0a8,'index':_0x23939e,'isActive':!0x0});}[_0x2fb3da(0x1b6)](_0x25ae00,_0x11cb3b,_0x34ee86){const _0xc34ff1=_0x2fb3da,{reply:_0x4a795a}=this[_0xc34ff1(0x13c)](_0x25ae00),_0x4cfd3b=_0x4a795a[_0xc34ff1(0x23e)]({'showDiff':this[_0xc34ff1(0x114)]});if(0x1==_0x4cfd3b[_0xc34ff1(0x1f6)])return null;const _0xda1a6a=_0x4cfd3b[_0xc34ff1(0x127)](_0x2bd5ab=>_0x2bd5ab[_0xc34ff1(0x1f9)]==_0x11cb3b),_0x5268ab=_0xc34ff1(0x1b4)==_0x34ee86?0x1:-0x1;let _0x31ac33=_0x4cfd3b['at']((_0xda1a6a+_0x5268ab)%_0x4cfd3b[_0xc34ff1(0x1f6)])[_0xc34ff1(0x1f9)],_0x4a43a7=_0x4cfd3b[_0x31ac33];for(;!this[_0xc34ff1(0x222)](_0x25ae00,_0x4a795a,_0x4a43a7);){if(_0x31ac33=_0x4cfd3b['at']((_0x31ac33+_0x5268ab)%_0x4cfd3b[_0xc34ff1(0x1f6)])[_0xc34ff1(0x1f9)],_0x31ac33===_0xda1a6a)return null;_0x4a43a7=_0x4cfd3b[_0x31ac33];}return _0x31ac33;}[_0x2fb3da(0x222)](_0x2a65ff,_0x3dab9f,_0x17ff97){const _0x4bc83b=_0x2fb3da,_0x132848=_0x3dab9f[_0x4bc83b(0x23b)];if(!_0x17ff97[_0x4bc83b(0x17b)])return null;const _0xe129d9=_0x132848[_0x4bc83b(0x25f)](_0x228151=>_0x228151[_0x4bc83b(0x1f9)]==_0x17ff97[_0x4bc83b(0x1f9)]);if(_0x4bc83b(0x228)!==_0xe129d9?.[_0x4bc83b(0x13d)])return null;const _0x5f025b=this[_0x4bc83b(0x10b)](_0x2a65ff,_0x17ff97[_0x4bc83b(0x1f9)]);if(!_0x5f025b)return null;const {range:_0x2dd1f5,currentIndex:_0xe663f5}=_0x5f025b;return _0x4bc83b(0x200)==_0x2dd1f5[_0x4bc83b(0x1d8)][_0x4bc83b(0x11d)]?(_0x3dab9f[_0x4bc83b(0x122)](_0xe663f5,_0x4bc83b(0x193)),null):_0x5f025b[_0x4bc83b(0x201)];}[_0x2fb3da(0x10b)](_0x21cf0d,_0x2353b9){const _0x2bed18=_0x2fb3da,_0x197a4b=_0x274ef8(this[_0x2bed18(0x25b)]),{reply:_0x2d659f,interaction:_0x251d62}=this[_0x2bed18(0x13c)](_0x21cf0d),_0x1415f1=_0x2d659f[_0x2bed18(0x23b)][_0x2bed18(0x156)](_0x364491=>_0x2bed18(0x228)==_0x364491[_0x2bed18(0x13d)]),_0xad411b=_0x1415f1[_0x2bed18(0x1c5)](_0x15721d=>_0x2d659f[_0x2bed18(0x23b)][_0x2bed18(0x206)](_0x15721d));void 0x0===_0x2353b9&&(_0x2353b9=_0xad411b[0x0]);const _0x739b83=_0xad411b[_0x2bed18(0x206)](_0x2353b9);if(-0x1==_0x739b83)return null;const _0x3019d5=_0x1415f1[_0x739b83],_0x53d8fc=new _0x1d6823([]),_0x361018=new _0x1d6823([]);for(const _0x32570f of _0x3019d5[_0x2bed18(0x161)])if(_0x2bed18(0x1d7)!=_0x32570f[_0x2bed18(0x1dc)]&&_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x32570f[_0x2bed18(0x10a)][_0x2bed18(0x26a)](!0x0)),_0x2bed18(0x1e1)!=_0x32570f[_0x2bed18(0x1dc)]){const _0x267c3d=_0x3b9499(_0x19fb70=>_0x439b9c(_0x19fb70,_0x2bed18(0x129))==_0x32570f['id'],_0x2d659f[_0x2bed18(0x14e)],!0x0);_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x267c3d[_0x2bed18(0x26a)](!0x0));}if(0x0==_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x1f6)]){if(_0x3019d5[_0x2bed18(0x161)][0x0][_0x2bed18(0x22f)]){const _0x22e970=_0x13c50d(_0x2bed18(0x129),_0x3019d5[_0x2bed18(0x161)][0x0][_0x2bed18(0x22f)],_0x2d659f[_0x2bed18(0x14e)]);_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x1c9)](_0x22e970[_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x1c9)](_0x22e970[_0x2bed18(0x26a)](!0x0)),_0x22e970[_0x2bed18(0x276)]&&(_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x22e970[_0x2bed18(0x276)][_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x22e970[_0x2bed18(0x276)][_0x2bed18(0x26a)](!0x0)));}else{const _0x299414=_0x2d659f[_0x2bed18(0x14e)][_0x2bed18(0x268)][0x0];if(!_0x299414)return null;_0x53d8fc[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x299414[_0x2bed18(0x26a)](!0x0)),_0x361018[_0x2bed18(0x268)][_0x2bed18(0x227)](_0x299414[_0x2bed18(0x26a)](!0x0));}}const _0x226df4=_0x251d62[_0x2bed18(0x124)](),_0x19e770=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x226df4[_0x2bed18(0x14f)]),_0x3483c2=_0x433789(_0x53d8fc),_0x4848eb=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x3483c2),_0x352161=_0x197a4b[_0x2bed18(0x257)][_0x2bed18(0x13f)](_0x3483c2),_0x435e0f=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x1ad)](_0x4848eb,0x0),_0x4aac15=_0x433789(_0x361018),_0x1dbc3d={'anchor':_0x435e0f,'markDeletions':!0x1},_0x2a095c=_0x197a4b[_0x2bed18(0x17c)][_0x2bed18(0x240)](_0x9abce7)[_0x2bed18(0x15f)](_0x3483c2,_0x4aac15,_0x1dbc3d)[_0x2bed18(0x1b3)]();if(!_0x2a095c[_0x2bed18(0x1f6)])return null;_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x176)](_0x243b18=>{const _0x33d52b=_0x2bed18;for(const _0x159735 of _0x2a095c)if(_0x33d52b(0x1ac)==_0x159735[_0x33d52b(0x1dc)]){const _0x368c71=_0x159735[_0x33d52b(0x15a)],_0x8b04ac=_0x159735[_0x33d52b(0x112)],_0x1d2746=new _0x51eae6(_0x368c71,_0x8b04ac);_0x243b18[_0x33d52b(0x1e4)][_0x33d52b(0x185)](_0x1d2746),_0x197a4b[_0x33d52b(0x13e)][_0x33d52b(0x152)](_0x1d2746);}else _0x33d52b(0x270)!==_0x159735[_0x33d52b(0x1dc)]&&(_0x159735[_0x33d52b(0x162)]=null,_0x159735[_0x33d52b(0x199)]=!0x1,_0x243b18[_0x33d52b(0x1e4)][_0x33d52b(0x185)](_0x159735),_0x197a4b[_0x33d52b(0x13e)][_0x33d52b(0x152)](_0x159735));});const _0xbd7800=_0x44f01f(_0x197a4b,_0x2a095c,_0x4848eb);_0x329751(_0x197a4b[_0x2bed18(0x13e)],_0xbd7800);const _0x214057=_0xbd7800[_0x2bed18(0x16d)]()[_0x2bed18(0x19d)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x526660=_0xbd7800[_0x2bed18(0x16d)]()[_0x2bed18(0x255)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x269dd9=[];let _0x28a4de=_0x4848eb,_0x40d9fa=_0x352161;for(let _0x2df247=0x0;_0x2df247<_0x526660[_0x2bed18(0x1f6)];_0x2df247++){const _0x973f65=_0x28a4de[_0x2bed18(0x237)]-_0x526660[_0x2df247];_0x269dd9[_0x2df247]=_0x40d9fa[_0x2bed18(0x237)]-_0x973f65,_0x28a4de=_0x28a4de[_0x2bed18(0x109)](_0x526660[_0x2df247]),_0x40d9fa=_0x40d9fa[_0x2bed18(0x109)](_0x269dd9[_0x2df247]);}const _0x360d58=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x26b)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x352161,_0x214057),_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x352161,_0x269dd9)),_0x769eae=_0x352161[_0x2bed18(0x179)](0x0)[_0x2bed18(0x172)](_0x3ab391),_0x432195=Array[_0x2bed18(0x15b)](_0x19e770[_0x2bed18(0x1f8)]())[_0x2bed18(0x25f)](_0x4d9736=>_0x4d9736[_0x2bed18(0x172)](_0x3ab391)==_0x769eae)[_0x2bed18(0x16f)](),_0x314b1d=_0x360d58[_0x2bed18(0x19d)][_0x2bed18(0x174)][_0x2bed18(0x217)](),_0x4fef7d=_0x360d58[_0x2bed18(0x255)][_0x2bed18(0x174)][_0x2bed18(0x217)]();_0x314b1d[0x0]=_0x432195[0x0]+_0x314b1d[0x0],_0x4fef7d[0x0]=_0x432195[0x0]+_0x4fef7d[0x0];let _0x52895b=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x26b)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x14d)](),_0x314b1d),_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x28a)](_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x14d)](),_0x4fef7d));const _0x332f8b=_0x197a4b[_0x2bed18(0x13e)][_0x2bed18(0x188)][_0x2bed18(0x1e6)][_0x2bed18(0x1b3)](_0x226df4[_0x2bed18(0x168)]);for(const _0x44254a of _0x332f8b)_0x52895b=_0x5cbaa6[_0x2bed18(0x1a3)](_0x52895b[_0x2bed18(0x18e)](_0x44254a));return{'range':_0x52895b,'currentIndex':_0x2353b9};}[_0x2fb3da(0x26d)](_0x273523){const _0x1a13ae=_0x2fb3da;if(!_0x273523[_0x1a13ae(0x17c)][_0x1a13ae(0x1db)](_0x1a13ae(0x25a)))return;const _0x510e07=_0x273523[_0x1a13ae(0x209)][_0x1a13ae(0x240)](_0x1a13ae(0x275)),_0x1650bb=_0x273523[_0x1a13ae(0x209)][_0x1a13ae(0x240)](_0x1a13ae(0x17f));this[_0x1a13ae(0x21e)](_0x510e07,_0x1a13ae(0x1c2),(_0x4e5b24,_0x32507d,_0xf30a34)=>{const _0x226ee2=_0x1a13ae,_0x5ecce9=this[_0x226ee2(0x221)][_0x226ee2(0x240)](_0x32507d);if(!_0x5ecce9)return;const _0x42b96d=this[_0x226ee2(0x1bc)][_0x226ee2(0x27b)](_0x5ecce9[_0x226ee2(0x236)])[_0x226ee2(0x13a)](_0x5ecce9[_0x226ee2(0x196)]);_0x5ecce9[_0x226ee2(0x1a8)][_0x226ee2(0x165)](_0x479b41=>_0x42b96d[_0x226ee2(0x122)](_0x479b41,_0x226ee2(0x228))),this[_0x226ee2(0x221)][_0x226ee2(0x147)](_0x32507d),this[_0x226ee2(0x221)][_0x226ee2(0x17a)](_0xf30a34,_0x5ecce9);}),this[_0x1a13ae(0x21e)](_0x1650bb,_0x1a13ae(0x1c2),(_0x4c1449,_0x2bb79e,_0x13a497)=>{const _0x4cd539=_0x1a13ae,_0x47b31c=this[_0x4cd539(0x221)][_0x4cd539(0x240)](_0x2bb79e);if(!_0x47b31c)return;const _0x18024c=this[_0x4cd539(0x1bc)][_0x4cd539(0x27b)](_0x47b31c[_0x4cd539(0x236)])[_0x4cd539(0x13a)](_0x47b31c[_0x4cd539(0x196)]);_0x47b31c[_0x4cd539(0x1a8)][_0x4cd539(0x165)](_0x1e280c=>_0x18024c[_0x4cd539(0x122)](_0x1e280c,_0x4cd539(0x284))),this[_0x4cd539(0x221)][_0x4cd539(0x147)](_0x2bb79e),this[_0x4cd539(0x221)][_0x4cd539(0x17a)](_0x13a497,_0x47b31c);});}async[_0x2fb3da(0x10d)](_0x33ea00){const _0x3204c2=_0x2fb3da;this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x1db)](_0x3204c2(0x19a))&&this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x240)](_0x3204c2(0x19a))[_0x3204c2(0x273)](),(this[_0x3204c2(0x25b)][_0x3204c2(0x17c)][_0x3204c2(0x240)](_0x33ee2c)[_0x3204c2(0x254)][_0x3204c2(0x1a2)](_0x3204c2(0x111)),this[_0x3204c2(0x249)][_0x3204c2(0x1c7)](_0x3204c2(0x283)),this[_0x3204c2(0x249)][_0x3204c2(0x226)](!0x0),await this[_0x3204c2(0x154)]());try{await this[_0x3204c2(0x189)][_0x3204c2(0x229)](_0x33ea00)[_0x3204c2(0x169)](),await this[_0x3204c2(0x232)](_0x33ea00),this[_0x3204c2(0x190)]('\x20'),await this[_0x3204c2(0x1bc)][_0x3204c2(0x248)](_0x33ea00,this[_0x3204c2(0x142)][_0x3204c2(0x107)]),this[_0x3204c2(0x1bc)][_0x3204c2(0x25d)]()&&this[_0x3204c2(0x1d0)]();}catch(_0x4f7c8e){this[_0x3204c2(0x249)][_0x3204c2(0x21a)]({'errorMessage':_0x61ecef(this[_0x3204c2(0x25b)][_0x3204c2(0x19f)],_0x3204c2(0x1d1)),'id':_0x33ea00}),this[_0x3204c2(0x1ae)](new _0x431979(_0x3204c2(0x103),this,{'error':_0x4f7c8e}));}finally{this[_0x3204c2(0x249)][_0x3204c2(0x159)](),this[_0x3204c2(0x249)][_0x3204c2(0x1c7)](_0x3204c2(0x184)),this[_0x3204c2(0x249)][_0x3204c2(0x226)](!0x1);}}async[_0x2fb3da(0x246)](){const _0x598b0c=_0x2fb3da,_0x3ae728=this[_0x598b0c(0x189)][_0x598b0c(0x207)](this[_0x598b0c(0x10e)](),{'limit':0x1,'sortBy':_0x598b0c(0x1bd)});try{const _0x57b4d7=await _0x3ae728[_0x598b0c(0x102)]();return _0x57b4d7[_0x598b0c(0x1f6)]?_0x57b4d7[0x0]['id']:_0x598b0c(0x1e1);}catch(_0x4cccdf){return this[_0x598b0c(0x249)][_0x598b0c(0x21a)]({'errorMessage':_0x61ecef(this[_0x598b0c(0x25b)][_0x598b0c(0x19f)],_0x598b0c(0x1d1)),'id':_0xc63f40()}),this[_0x598b0c(0x1ae)](new _0x431979(_0x598b0c(0x12f),this,{'error':_0x4cccdf})),this[_0x598b0c(0x249)][_0x598b0c(0x226)](!0x1),this[_0x598b0c(0x249)][_0x598b0c(0x205)](),null;}}[_0x2fb3da(0x1c6)](_0x4ac5fa){const _0x4964d8=_0x2fb3da;this[_0x4964d8(0x1bc)]['id']===_0x4ac5fa&&this[_0x4964d8(0x232)]();}[_0x2fb3da(0x1d0)](){const _0x431a20=_0x2fb3da;this[_0x431a20(0x1bc)]?.[_0x431a20(0x1b8)](_0x61ecef(this[_0x431a20(0x25b)][_0x431a20(0x19f)],_0x431a20(0x1b9)));}async[_0x2fb3da(0x23d)](){const _0x124f4d=_0x2fb3da,_0x490b4d=this[_0x124f4d(0x142)][_0x124f4d(0x1d4)]();this[_0x124f4d(0x1bc)]?.[_0x124f4d(0x210)](_0x490b4d),this[_0x124f4d(0x1d0)]();}[_0x2fb3da(0x145)](){const _0x595cb4=_0x2fb3da;this[_0x595cb4(0x1bc)]?.[_0x595cb4(0x231)]();}[_0x2fb3da(0x18a)](){const _0x2cf3a7=_0x2fb3da;this[_0x2cf3a7(0x249)][_0x2cf3a7(0x18a)]();}async[_0x2fb3da(0x1bb)](){const _0x517d0a=_0x2fb3da;await this[_0x517d0a(0x232)]();}async[_0x2fb3da(0x1f3)]({message:_0x2b607f,attributes:_0x8bb9e6}){const _0x5946dd=_0x2fb3da;await this[_0x5946dd(0x288)]({'userMessage':_0x2b607f,'attributes':_0x8bb9e6});}[_0x2fb3da(0x10e)](){const _0x57455f=_0x2fb3da,_0x4f1985=this[_0x57455f(0x25b)][_0x57455f(0x164)][_0x57455f(0x240)](_0x57455f(0x157));if(!_0x4f1985)throw new _0x431979(_0x57455f(0x133),this);return _0x4f1985;}async[_0x2fb3da(0x232)](_0x3f0b6d){const _0x10d5a8=_0x2fb3da;try{this[_0x10d5a8(0x249)][_0x10d5a8(0x104)](),await this[_0x10d5a8(0x173)](_0x3f0b6d);}catch(_0x141f42){this[_0x10d5a8(0x249)][_0x10d5a8(0x21a)]({'errorMessage':_0x61ecef(this[_0x10d5a8(0x25b)][_0x10d5a8(0x19f)],_0x10d5a8(0x113)),'id':_0x3f0b6d||_0xc63f40()}),console[_0x10d5a8(0x135)](_0x141f42),this[_0x10d5a8(0x1bc)]=void 0x0,this[_0x10d5a8(0x249)][_0x10d5a8(0x205)]();}}async[_0x2fb3da(0x173)](_0xc56d1){const _0x5295e6=_0x2fb3da;let _0xbf2970;this[_0x5295e6(0x25b)][_0x5295e6(0x17c)][_0x5295e6(0x1db)](_0x5295e6(0x19a))&&this[_0x5295e6(0x25b)][_0x5295e6(0x17c)][_0x5295e6(0x240)](_0x5295e6(0x19a))[_0x5295e6(0x273)](),_0xc56d1||!this[_0x5295e6(0x1bc)]?_0xbf2970=this[_0x5295e6(0x25b)][_0x5295e6(0x164)][_0x5295e6(0x240)](_0x5295e6(0x22d)):this[_0x5295e6(0x249)][_0x5295e6(0x286)]&&(_0xbf2970=this[_0x5295e6(0x1bc)][_0x5295e6(0x272)]['id']),await this[_0x5295e6(0x154)]();const _0x27d3e8=this[_0x5295e6(0x10e)](),_0x4a7b20=_0xc56d1||_0xc63f40();this[_0x5295e6(0x1bc)]=new _0x3b9d4b({'connector':this[_0x5295e6(0x189)],'chatModels':this[_0x5295e6(0x1ed)],'selectedModelId':_0xbf2970,'conversationId':_0x4a7b20,'group':_0x27d3e8,'getEditor':()=>_0x274ef8(this[_0x5295e6(0x25b)]),'isFromHistory':!!_0xc56d1}),this[_0x5295e6(0x1bc)][_0x5295e6(0x20c)](_0x5295e6(0x16e),_0x5295e6(0x1d2))['to'](this),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ee),(_0x4a0b3f,_0x50da35)=>{const _0x3757f2=_0x5295e6;this[_0x3757f2(0x249)][_0x3757f2(0x1a7)](_0x50da35),this[_0x3757f2(0x249)][_0x3757f2(0x12a)](),this[_0x3757f2(0x249)][_0x3757f2(0x134)](),this[_0x3757f2(0x249)][_0x3757f2(0x166)](),_0xc56d1||(this[_0x3757f2(0x249)][_0x3757f2(0x225)](),this[_0x3757f2(0x1d0)]());}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x211),(_0x52f6c9,_0x524882)=>{const _0x346364=_0x5295e6;this[_0x346364(0x249)][_0x346364(0x146)](_0x524882[_0x346364(0x1b7)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x183),(_0x460a4f,_0x555dce)=>{const _0x24f23b=_0x5295e6;this[_0x24f23b(0x249)][_0x24f23b(0x158)](_0x555dce);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x163),()=>{const _0x37bf62=_0x5295e6,_0x278e9b=this[_0x37bf62(0x249)][_0x37bf62(0x19c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x37bf62(0x249)][_0x37bf62(0x24c)](_0x278e9b);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x27c),()=>{const _0x3e6b2f=_0x5295e6,_0x3ffa21=this[_0x3e6b2f(0x249)][_0x3e6b2f(0x19c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x3e6b2f(0x249)][_0x3e6b2f(0x24c)](_0x3ffa21);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x132),(_0x44eb49,_0x56ab56)=>{const _0x2198da=_0x5295e6;this[_0x2198da(0x249)][_0x2198da(0x24f)](_0x56ab56,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fe),(_0x1508d4,_0x1d7440)=>{const _0x208238=_0x5295e6;this[_0x208238(0x249)][_0x208238(0x24f)](_0x1d7440,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1d2),()=>{const _0x8081f0=_0x5295e6;this[_0x8081f0(0x249)][_0x8081f0(0x244)]();}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x256),async()=>{const _0x5d476c=_0x5295e6;await this[_0x5d476c(0x249)][_0x5d476c(0x1ba)]();}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x160),(_0x32023a,_0x31bfbc)=>{const _0x55d25e=_0x5295e6;this[_0x55d25e(0x249)][_0x55d25e(0x204)](_0x31bfbc['id']);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1c8),(_0x41c7be,_0x4f1524,_0x130298)=>{const _0x14dbf8=_0x5295e6;this[_0x14dbf8(0x190)](_0x4f1524,_0x130298);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fd),(_0x5ef7c6,_0x13900d)=>{const _0x4362d5=_0x5295e6;_0x4362d5(0x11a)===_0x13900d[_0x4362d5(0x1dc)]?this[_0x4362d5(0x249)][_0x4362d5(0x150)](_0x13900d):this[_0x4362d5(0x249)][_0x4362d5(0x119)](_0x13900d);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x110),async(_0x58fdcb,_0x4acb57)=>{const _0x1fadc2=_0x5295e6;await this[_0x1fadc2(0x14b)]({'reply':_0x4acb57});}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ef),(_0x14a3cf,{reply:_0x3ade7d,index:_0x3d8f9e,state:_0x16dd32})=>{const _0x2d3ece=_0x5295e6;this[_0x2d3ece(0x249)][_0x2d3ece(0x10c)]({'id':_0x3ade7d['id'],'index':_0x3d8f9e,'state':_0x16dd32}),this[_0x2d3ece(0x1f2)]?.[_0x2d3ece(0x196)][_0x2d3ece(0x215)](_0x3ade7d['id'])&&this[_0x2d3ece(0x1f2)]?.[_0x2d3ece(0x1be)]==_0x3d8f9e&&this[_0x2d3ece(0x26c)]?.[_0x2d3ece(0x241)](_0x16dd32);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x235),(_0x5bdcc9,_0x14f224)=>{const _0x1c8367=_0x5295e6;if(this[_0x1c8367(0x249)][_0x1c8367(0x1ab)](_0x14f224[_0x1c8367(0x143)],_0x14f224[_0x1c8367(0x282)]),_0x1c8367(0x175)===_0x14f224[_0x1c8367(0x143)][_0x1c8367(0x1dc)]){const _0x1ea5f1=[..._0x274ef8(this[_0x1c8367(0x25b)])[_0x1c8367(0x13e)][_0x1c8367(0x188)][_0x1c8367(0x175)][_0x1c8367(0x259)]()];this[_0x1c8367(0x142)][_0x1c8367(0x20a)](_0x1ea5f1,_0x1c8367(0x208)+this[_0x1c8367(0x1bc)]?.['id']);}}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x126),(_0x4e7222,_0x25a9db)=>{const _0x1b1229=_0x5295e6;this[_0x1b1229(0x249)][_0x1b1229(0x15d)](_0x25a9db[_0x1b1229(0x167)]),_0x1b1229(0x274)==_0x25a9db[_0x1b1229(0x167)]&&this[_0x1b1229(0x145)](),_0x1b1229(0x175)===_0x25a9db[_0x1b1229(0x1dc)]&&this[_0x1b1229(0x142)][_0x1b1229(0x177)](_0x1b1229(0x208)+this[_0x1b1229(0x1bc)]?.['id']);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1c1),(_0x15f9de,_0x1ff3a5)=>{const _0x4c0570=_0x5295e6;this[_0x4c0570(0x249)][_0x4c0570(0x21d)](_0x1ff3a5[_0x4c0570(0x143)][_0x4c0570(0x167)],_0x1ff3a5[_0x4c0570(0x282)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x181),(_0x3d763a,_0x4c9176)=>{const _0x1a4f6b=_0x5295e6;this[_0x1a4f6b(0x249)][_0x1a4f6b(0x1cf)](_0x4c9176[_0x1a4f6b(0x192)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1fa),(_0x2ecfe2,_0x34b93a)=>{const _0x1bdecc=_0x5295e6;this[_0x1bdecc(0x249)][_0x1bdecc(0x1b1)](_0x34b93a[_0x1bdecc(0x264)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x1ca),(_0x35db9b,_0x6ef706)=>{const _0x43a797=_0x5295e6;this[_0x43a797(0x249)][_0x43a797(0x121)](_0x6ef706[_0x43a797(0x18d)],_0x6ef706[_0x43a797(0x26f)],_0x6ef706[_0x43a797(0x278)],_0x6ef706[_0x43a797(0x1f4)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x262),(_0x40c953,_0x19730b)=>{const _0x5537bd=_0x5295e6;this[_0x5537bd(0x249)][_0x5537bd(0x12c)](_0x19730b[_0x5537bd(0x18d)],_0x19730b[_0x5537bd(0x280)],_0x19730b[_0x5537bd(0x25c)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x12b),(_0x3632c4,_0x193b55)=>{const _0x449ffc=_0x5295e6;this[_0x449ffc(0x249)][_0x449ffc(0x27e)](_0x193b55);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x108),async(_0x56f03b,_0x578fcb)=>{const _0x450b2f=_0x5295e6,_0x2ea521=(await this[_0x450b2f(0x1ed)][_0x450b2f(0x16b)]())[_0x450b2f(0x25f)](_0x536c9b=>_0x536c9b['id']===_0x578fcb[_0x450b2f(0x272)]?.['id'])||null;this[_0x450b2f(0x249)][_0x450b2f(0x1fc)](_0x2ea521,_0x578fcb[_0x450b2f(0x1f0)]);}),this[_0x5295e6(0x1bc)]['on'](_0x5295e6(0x135),(_0x2052db,{error:_0x3d6271,interactionId:_0xe85d20,fileName:_0x16c540,url:_0x353280,sourceId:_0x5368a4,sourceLabel:_0x430e2f})=>{const _0x2e5f54=_0x5295e6,_0xf37ed0=_0xe85d20?_0xe85d20+':'+_0xc63f40():_0xc63f40();_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x220))?this[_0x2e5f54(0x249)][_0x2e5f54(0x245)]({'staticMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x171)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x12f))||_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x212))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x113)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x138))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x130),_0x16c540),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1ea))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x263),_0x353280),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x18c))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x16c)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x24b))?this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x202)),'id':_0xf37ed0}):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x153))?(_0x5368a4&&this[_0x2e5f54(0x249)][_0x2e5f54(0x17e)](_0x5368a4),this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x191),_0x430e2f||_0x2e5f54(0x26f)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1b5))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x27d)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x137))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x250)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x27f))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x182)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x118))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x1a1)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x1a0))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x213)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):_0x3d6271[_0x2e5f54(0x26e)][_0x2e5f54(0x1e5)](_0x2e5f54(0x11c))?(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x16a)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271)):(this[_0x2e5f54(0x249)][_0x2e5f54(0x21a)]({'errorMessage':_0x61ecef(this[_0x2e5f54(0x25b)][_0x2e5f54(0x19f)],_0x2e5f54(0x267)),'id':_0xf37ed0}),this[_0x2e5f54(0x1ae)](_0x3d6271));}),await this[_0x5295e6(0x1bc)][_0x5295e6(0x120)](this[_0x5295e6(0x25b)][_0x5295e6(0x164)][_0x5295e6(0x240)](_0x5295e6(0x1e7))),_0xc56d1||await this[_0x5295e6(0x1bc)][_0x5295e6(0x19d)]();}async[_0x2fb3da(0x288)]({userMessage:_0x5afbb0,attributes:_0x517dde}){const _0x2e1073=_0x2fb3da;if(!this[_0x2e1073(0x1bc)])throw new _0x431979(_0x2e1073(0x258));if(this[_0x2e1073(0x1bc)][_0x2e1073(0x23c)]()){const _0x4a50ee=await this[_0x2e1073(0x142)][_0x2e1073(0x10f)]();await this[_0x2e1073(0x1bc)][_0x2e1073(0x1e2)](_0x4a50ee);}this[_0x2e1073(0x1bc)]['id']&&this[_0x2e1073(0x1bc)][_0x2e1073(0x251)]&&await this[_0x2e1073(0x1bc)][_0x2e1073(0x1c4)]({'userMessage':_0x5afbb0,'attributes':_0x517dde});}[_0x2fb3da(0x234)](){const _0x343878=_0x2fb3da;console[_0x343878(0x24d)](_0x343878(0x180));}[_0x2fb3da(0x1d3)](_0x397ef6){const _0x30ff62=_0x2fb3da;this[_0x30ff62(0x249)][_0x30ff62(0x11b)](_0x397ef6);}[_0x2fb3da(0x1ae)](_0x2adc12){const _0x122532=_0x2fb3da;_0x309d8c(_0x2adc12[_0x122532(0x26e)]);}[_0x2fb3da(0x20e)](_0x11e015){const _0x2ecf8d=_0x2fb3da;this[_0x2ecf8d(0x1bc)]?.[_0x2ecf8d(0x15e)](_0x11e015);}[_0x2fb3da(0x1cc)](){const _0x1c849a=_0x2fb3da;this[_0x1c849a(0x1bc)]?.[_0x1c849a(0x1da)]();}[_0x2fb3da(0x116)](){const _0x433f90=_0x2fb3da;this[_0x433f90(0x1bc)]?.[_0x433f90(0x1cd)]();}[_0x2fb3da(0x13c)](_0x49603c){const _0x1a8fa3=_0x2fb3da,[_0x5513c8,_0x1c22b7]=_0x49603c[_0x1a8fa3(0x25e)](':'),_0x52e54e=this[_0x1a8fa3(0x1bc)][_0x1a8fa3(0x27b)](_0x5513c8),_0x1d0a70=_0x52e54e[_0x1a8fa3(0x13a)](_0x1c22b7);return{'interaction':_0x52e54e,'reply':_0x1d0a70};}[_0x2fb3da(0x105)](_0x17cbab,_0x575b17=!0x1){const _0x5b95b8=_0x2fb3da,_0x16d98e=_0x274ef8(this[_0x5b95b8(0x25b)]),_0xc890be={'target':_0x16d98e[_0x5b95b8(0x1c0)][_0x5b95b8(0x254)][_0x5b95b8(0x1a5)][_0x5b95b8(0x131)](_0x16d98e[_0x5b95b8(0x1c0)][_0x5b95b8(0x11e)][_0x5b95b8(0x14a)](_0x17cbab)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x575b17};_0x575b17&&(_0xc890be[_0x5b95b8(0x1b0)]=!0x0),_0x2af423(_0xc890be);}[_0x2fb3da(0x190)](_0x2edbb8,_0x343a49=!0x1){const _0xb26d7a=_0x2fb3da;this[_0xb26d7a(0x249)][_0xb26d7a(0x1c8)](_0x2edbb8||_0x61ecef(this[_0xb26d7a(0x25b)][_0xb26d7a(0x19f)],_0xb26d7a(0x223)),_0x343a49);}async[_0x2fb3da(0x14b)]({reply:_0x5e447e,renderingStrategy:_0xb8c9d3}){const _0x5f1b77=_0x2fb3da,{id:_0x3f0787,interactionId:_0x3ca9ec,isDone:_0x2fb07b,type:_0xe151c2,parsedContent:_0x530c7c}=_0x5e447e,_0x502b7d=_0x3ca9ec+':'+_0x3f0787;if(_0x5f1b77(0x1f5)===_0xe151c2){const _0x1d55e7=_0x5e447e[_0x5f1b77(0x23e)]({'showDiff':this[_0x5f1b77(0x249)][_0x5f1b77(0x18f)]});await this[_0x5f1b77(0x249)][_0x5f1b77(0x22e)]({'id':_0x502b7d,'parts':_0x1d55e7,'renderingStrategy':_0xb8c9d3,'isDone':_0x2fb07b});}else _0x5f1b77(0x11a)===_0xe151c2&&await this[_0x5f1b77(0x249)][_0x5f1b77(0x20d)]({'id':_0x502b7d,'parsedContent':_0x530c7c,'renderingStrategy':_0xb8c9d3,'isDone':_0x2fb07b});_0x2fb07b&&_0x5e447e[_0x5f1b77(0x1e8)][_0x5f1b77(0x1f6)]>0x0&&this[_0x5f1b77(0x249)][_0x5f1b77(0x1ec)](_0x502b7d,_0x5e447e[_0x5f1b77(0x1e8)]);}async[_0x2fb3da(0x154)](){const _0x2ca1bb=_0x2fb3da,_0x503f57=this[_0x2ca1bb(0x1bc)]?.[_0x2ca1bb(0x230)];_0x503f57&&(_0x503f57[_0x2ca1bb(0x1a9)](),this[_0x2ca1bb(0x249)][_0x2ca1bb(0x238)](_0x503f57));}async[_0x2fb3da(0x281)](){const _0x195e23=_0x2fb3da,_0x153961=this[_0x195e23(0x1bc)]?.[_0x195e23(0x230)];if(_0x153961){for await(const _0x2cbc76 of _0x153961[_0x195e23(0x14c)])await this[_0x195e23(0x14b)]({'reply':_0x2cbc76,'renderingStrategy':_0x195e23(0x283)});}}[_0x2fb3da(0x22b)](_0x7e355e){const _0x4fcfa7=_0x2fb3da,_0x20bf8c={'positiveCount':_0x7e355e[_0x4fcfa7(0x23b)][_0x4fcfa7(0x156)](_0x3a352d=>_0x4fcfa7(0x284)===_0x3a352d[_0x4fcfa7(0x13d)])[_0x4fcfa7(0x1f6)],'totalCount':_0x7e355e[_0x4fcfa7(0x23b)][_0x4fcfa7(0x1f6)],'modificationId':_0x7e355e['id']},_0x46e26a=this[_0x4fcfa7(0x1bc)][_0x4fcfa7(0x27b)](_0x7e355e[_0x4fcfa7(0x236)])[_0x4fcfa7(0x11f)];_0x46e26a&&this[_0x4fcfa7(0x189)][_0x4fcfa7(0x1f7)](this[_0x4fcfa7(0x1bc)]['id'],_0x46e26a,_0x20bf8c);}[_0x2fb3da(0x224)](_0x4bbefb){const _0x4926e4=_0x2fb3da;let _0x50da2c=null,_0x1e6cad=null;this['on'](_0x4926e4(0x16e),(_0x4d3a7d,_0x5b269f,_0x56ebbf)=>{const _0x35cc38=_0x4926e4;_0x56ebbf['id']!==_0x50da2c&&(_0x50da2c=_0x56ebbf['id'],_0x1e6cad=this[_0x35cc38(0x1d6)](_0x56ebbf)),_0x4bbefb(_0x5b269f,_0x1e6cad);});}[_0x2fb3da(0x1d6)](_0xf4e1a7){const _0x25ff8e=_0x2fb3da,_0x54e2b8=this[_0x25ff8e(0x249)],_0x4e75c7=()=>{const _0x1c11f4=_0x25ff8e;_0xf4e1a7[_0x1c11f4(0x18b)](),_0xf4e1a7[_0x1c11f4(0x233)](),_0x54e2b8[_0x1c11f4(0x15c)]();},_0x37c360=()=>{const _0x8d33d4=_0x25ff8e;_0xf4e1a7[_0x8d33d4(0x1ff)]&&(_0xf4e1a7[_0x8d33d4(0x1ff)][_0x8d33d4(0x195)](),_0xf4e1a7[_0x8d33d4(0x1ff)]=void 0x0);};return{'insertTextReply':(_0x1b99d4,_0x22e9ab)=>{const _0x41ed32=_0x25ff8e;_0x37c360(),_0x4e75c7();const _0x26415f=_0xf4e1a7[_0x41ed32(0x1ff)]=_0xf4e1a7[_0x41ed32(0x1af)]({'type':_0x41ed32(0x11a),'interactionId':_0xf4e1a7['id'],'content':_0x1b99d4,'id':_0x22e9ab||_0xc63f40()});return _0x37c360(),_0x26415f;},'insertCustomElement':async(_0x51d689,_0x37e832)=>(_0x37c360(),_0x4e75c7(),_0x54e2b8[_0x25ff8e(0x148)](_0x51d689,_0x37e832||_0xc63f40())),'setLoadingMessage':_0x8ed57=>{const _0x3c9c92=_0x25ff8e;_0x54e2b8[_0x3c9c92(0x24c)](_0x8ed57);},'clearLoadingMessage':()=>{const _0x164f18=_0x25ff8e;_0x54e2b8[_0x164f18(0x15c)]();}};}}
|
|
23
|
+
const _0x18ef55=_0x14d5;function _0x2879(){const _0x2dc7c8=['_getPresentableSiblingContentPartIndex','viewRangeToDom','scrollFeedToSuggestion','ai-chat-context-invalid-data','getContentParts','AI_CHAT_UNABLE_TO_START_CONVERSATION','_integrateEditor','79044cqgNbM','_getUserPresentableContentPartDocumentRange','isDisabled','addSelectionToChatContext','pending','toViewRange','baseVersion','setModel','focusPromptInput','find','uploadProgressChanged','executeCustomItemCallback','interactionFinished','interactionId','toggleLoadingSkeleton','getTransformedByOperation','path','done','toString','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','getChild','attachToDom','_getDocumentRangeForReplyChanges','setAddContextOptions','addFilesToContext','isOfficialPlugin','accepted','end','sendMessage','ai-chat-context-form-data-size-limits-exceeded','addCurrentDocumentToContext','uiId','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','toolDataReceived','lastCreated','set','parse','clearPendingContextUI','getAll','_handleUIUserMessage','fetchConversations','toggleWebSearch','ai.models.defaultModelId','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-conversation-not-found','updateFeedItemAIReplySuggestionPartState','toggleReasoning','resources','setContextItemLoading','context','AITabs','redo','documentContextContent','init','data-id','startsWith','editors','push','getRoot','aiChatBalloon','detachFromDom','state','_updateRatings','isCurrentDocumentInContext','_aiChatBalloonShowDiff','_toggleReasoning','prepareLoadingMessage','ai-chat-missing-channel-id','getFirstRange','loadSourceResources','AI_BALLOON_HEADER_TITLE','handleRemovedConversation','abortPromptStream','has','add','ai-chat-context-file-too-many-pages','_batchToChanges','setState','options','length','addContextOptionsChanged','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','2737902sVTaGK','dislike','root','TrackChangesEditing','_aiConnector','ai-chat-url-upload-failed','replyCreated','getDocumentContext','new','ai-chat-controller-mouse-over','_aiChatBalloon','hasChanges','ai.chat.initialConversation','plugins','enableControls','getAttribute','upsertAIChatRating','Liked\x20response','mouseOverSuggestion','batch','clearLoadingMessage','resetWebSearchState','listenTo','getRanges','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','sourceId','content','changeGroups','startAutoScroll','undo','mapper','populateSourceResourceBalloon','AI_CHAT_RESOURCE_LOAD_FAILED','ai-chat-conversation-init-failed','callback','createRange','AIConnector','load','resizeTabs','activateTab','2744052FyIBuj','get','resetReasoningState','selectedModel','applyOperation','interactionCreated','close','indexOf','startConversation','setConversationContext','static','setChangeGroupState','history','delegate','contextItemRemoved','main','AI_CHAT_INVALID_REQUEST','Disliked\x20response','capabilitiesUpdated','interactionDestroyed','ai-chat-invalid-request','_startConversationSafely','messageId','replyId','isPremiumPlugin','streaming','getOperations','setFeedItemRenderingStrategy','TrackChanges','AI_CHAT_ABORTED_MESSAGE','_aiChatModels','replyChangeGroupStateUpdated','updateFeedItemAIReplySuggestionContent','isCurrentDocumentInConversation','modelSelected','addSelectionToContext','lastInteraction','findIndex','closeSourceResourceBalloon','Showing\x20conversation\x20history...','updateConversationTitle','alignToTop','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','cloneNode','next','collaboration.channelId','handleUserInteraction','addFeedItemCustomElement','addFileToContext','removeContextItem','bind','ai-chat-file-upload-failed','config','resourceStateChanged','isStarted','ai-request-aborted','sendUserMessage','showDiff','_scrollToSuggestionRange','insertSuggestion','_bodyCollection','updateContent','error','showFakeVisualSelection','selection','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','AI_CHAT_CONTEXT_FILE_TOO_LARGE','requires','commands','updateFeedItemAIReplySources','_handleStartConversation','rejectSuggestion','slice','contextItemLoadingEnded','rootName','reasoningStarted','conversationInitialized','updateCapabilities','_getLastCreatedConversationId','isLoading','resetMessageInput','loadConversation','contextSent','text','ai-chat-context-unsupported-file-type','Undo','like','startInteraction','getInteractionAndReplyById','stop','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','split','setConversationTitle','_insertSuggestion','type','_showConversationHistory','current-document','includes','addFeedInteractionHeader','799582fndbYN','from','afterInit','marker','_flushLastInteractionUI','map','addFeedItemUserMessage','fetchConversation','createdAt','activeConversation','AI_CHAT_UNTITLED_CONVERSATION','removeSelectionFromContext','domConverter','sources','createPositionFromPath','getInteraction','sourceResourcesLoaded','resizedTabs','_aiChatUi','createConversation','_logError','index','partIndex','removeFromContext','getChildren','addFeedItemAIReply','addOperation','contextItemAdded','getPath','resize','isModelAvailable','_setIsMaximized','ai-chat-context-unsupported-type','updateCurrentDocumentInContext','contextItem','remove','replyContentUpdated','forEach','rejected','reasoningFinished','isDocumentOperation','node','pluginName','_removeFromContext','webSearchFinished','unshift','_updateReplyContent','change','removeSelectionFromChatContext','isInContext','getGroupId','modification','addFeedItemError','showChangeInText','indexes','view','areActionsDisabled','setSelectedModel','dialogClosed','sourcePosition','delete','outdated','webSearchStarted','ai.chat.context','addDocumentToContext','chat','hideFakeVisualSelection','$graveyard','_applyOperationsAsSuggestions','_getAIChatInteractionAPI','ready','setIsMaximized','message','contextItems','_toggleWebSearch','AIChatUI','howMany','addFeedItemAISuggestion','4033824vqxLez','AIEditing','resetConversationTitle','_rejectSuggestion','editing','finishInteraction','ai.models','updateResourceState','clearConversationContextUI','_stopLastInteraction','toggleSuggestionDisplayMode','log','95590PuveiA','isUploadInProgress','applySuggestion','getConversation','addResourceToContext','maxOffset','version','addCurrentDocumentToChatContext','ai-chat-conversation-start-failed','1226440ldkAvy','_currentPreviewedChangeGroup','disableControls','ai-chat-resource-load-failed','range','showNext','getSelectionText','anchorId','model','_applySuggestion','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','open','mouseLeaveSuggestion','data','ai-chat-context-file-too-large','getReply','_aiEditing','ai-no-track-changes','ai-conversation-','updateFeedItemAIReplyContent','addFeedItemStaticMessage','AIChatController','replies','ai-chat-controller-no-active-conversation','start','resourceId','ai-chat-source-resources-load-failed','locale','nextSibling','setLoadingMessage','removeFeedInteraction','createPositionAt','currentReply','children','getChildAtOffset','_openBalloonFor','filter','setIsUploadInProgress','query','addUrlToContext','AIChatBalloon','DocumentCompare','sessionId','changes','resource','selectModel','source','getDiff','previous','revert','document','createReply','70jaQMdF','AI_CHAT_GENERIC_ERROR','removed','stopInteraction','getDocumentData','_createFromRanges','_registerToolDataCallback','destroy','getConversations','addContextItem','setFeedItemAIReplySuggestionPartActive','interactionStarted','uid'];_0x2879=function(){return _0x2dc7c8;};return _0x2879();}(function(_0x1f8fca,_0x389662){const _0x2602c7=_0x14d5,_0xed13d=_0x1f8fca();while(!![]){try{const _0xbcd9d8=parseInt(_0x2602c7(0x1e5))/0x1+parseInt(_0x2602c7(0x2c2))/0x2+-parseInt(_0x2602c7(0x25f))/0x3+-parseInt(_0x2602c7(0x310))/0x4+-parseInt(_0x2602c7(0x31c))/0x5+parseInt(_0x2602c7(0x237))/0x6+-parseInt(_0x2602c7(0x1d1))/0x7*(-parseInt(_0x2602c7(0x19b))/0x8);if(_0xbcd9d8===_0x389662)break;else _0xed13d['push'](_0xed13d['shift']());}catch(_0x28779b){_0xed13d['push'](_0xed13d['shift']());}}}(_0x2879,0x80678));function _0x14d5(_0x571aa9,_0x2d03db){const _0x2879bc=_0x2879();return _0x14d5=function(_0x14d5b1,_0x1c00d4){_0x14d5b1=_0x14d5b1-0x194;let _0x18fca9=_0x2879bc[_0x14d5b1];return _0x18fca9;},_0x14d5(_0x571aa9,_0x2d03db);}import{ContextPlugin as _0x256a68,Editor as _0x2d24c9}from'ckeditor5/src/core.js';import{BodyCollection as _0x348e94}from'ckeditor5/src/ui.js';import{CKEditorError as _0x28fffa,logError as _0x2a7396,scrollViewportToShowTarget as _0xd00776,uid as _0x1c2e87}from'ckeditor5/src/utils.js';import{AIConnector as _0x2c1613}from'../aicore/aiconnector.js';import{AITabs as _0x48cd0d}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2a92ed}from'./model/aichatconversation.js';import{getTranslation as _0x38b507}from'../aicore/utils/common-translations.js';import{AIModels as _0x1e0f8b}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x408387}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x411323,DATA_ID_MODEL_ATTRIBUTE as _0x2cd343}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1e59cd,getOperationsFromReply as _0x5acd3e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x589116,getMinimalSelection as _0x2058a7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x76749,_DetachOperation as _0x42eab9}from'ckeditor5/src/engine.js';import{findOne as _0x4fa18a,getAttribute as _0x54996d,serialize as _0x4cddf6,Document as _0x539ee1,findByAttribute as _0x1bbf33}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x256a68{[_0x18ef55(0x1ad)];[_0x18ef55(0x23b)];[_0x18ef55(0x2d4)];[_0x18ef55(0x27d)];[_0x18ef55(0x241)];[_0x18ef55(0x231)]=new Map();[_0x18ef55(0x19c)]=null;[_0x18ef55(0x29b)];static get[_0x18ef55(0x2a2)](){return[_0x2c1613,_0x411323];}static get[_0x18ef55(0x2ec)](){const _0x4f9723=_0x18ef55;return _0x4f9723(0x1b2);}static get[_0x18ef55(0x1fe)](){return!0x0;}static get[_0x18ef55(0x277)](){return!0x0;}[_0x18ef55(0x21a)](){const _0x2ac36c=_0x18ef55;this[_0x2ac36c(0x29b)]=new _0x348e94(this[_0x2ac36c(0x216)][_0x2ac36c(0x1b8)]),this[_0x2ac36c(0x29b)][_0x2ac36c(0x1fa)](),this[_0x2ac36c(0x23b)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x25b)),this[_0x2ac36c(0x2d4)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x30d)),this[_0x2ac36c(0x1ad)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x311)),this[_0x2ac36c(0x27d)]=new _0x1e0f8b({'connector':this[_0x2ac36c(0x23b)],'config':this[_0x2ac36c(0x216)][_0x2ac36c(0x293)][_0x2ac36c(0x260)](_0x2ac36c(0x316)),'locale':this[_0x2ac36c(0x216)][_0x2ac36c(0x1b8)]});const _0x2e1f4a=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x217));this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x267),()=>{const _0x12c600=_0x2ac36c;this[_0x12c600(0x274)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x297),(_0x20c85b,_0x53d6c3)=>{const _0x5d3986=_0x2ac36c;this[_0x5d3986(0x20c)]({'userMessage':_0x53d6c3});}),this[_0x2ac36c(0x24d)](_0x2e1f4a,_0x2ac36c(0x2d3),(_0x269d71,_0xc41da1)=>{const _0x13b36b=_0x2ac36c;this[_0x13b36b(0x2e1)](_0xc41da1);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x25d),()=>{const _0x1fde59=_0x2ac36c;_0x2e1f4a[_0x1fde59(0x2df)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x22d),async()=>{const _0x2e7e74=_0x2ac36c;await this[_0x2e7e74(0x319)](),await this[_0x2e7e74(0x2c6)](),this[_0x2e7e74(0x2f2)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x302),()=>{const _0x4e8cc8=_0x2ac36c;this[_0x4e8cc8(0x199)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x28f),(_0x151ca7,_0x1f0499)=>{const _0x3ce319=_0x2ac36c;this[_0x3ce319(0x2cb)]?.[_0x3ce319(0x1fd)](Array[_0x3ce319(0x2c3)](_0x1f0499));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1c4),(_0x5553dd,_0x4b0a5c)=>{const _0x40a26d=_0x2ac36c;this[_0x40a26d(0x2cb)]?.[_0x40a26d(0x1c4)](_0x4b0a5c);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1f0),(_0x1bf19c,_0xa9d1c1)=>{const _0x2fad0b=_0x2ac36c;_0xa9d1c1[_0x2fad0b(0x259)](this[_0x2fad0b(0x216)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x196),(_0x3fe7c5,_0x7bf12a)=>{const _0x1e9064=_0x2ac36c;this[_0x1e9064(0x2cb)]?.[_0x1e9064(0x196)](_0x7bf12a[_0x1e9064(0x1cb)],_0x7bf12a[_0x1e9064(0x1c9)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x290),(_0x1987d3,_0x31d388)=>{const _0x2da628=_0x2ac36c;this[_0x2da628(0x2ed)](_0x31d388);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x22a),(_0x224d0c,_0xfda8fd)=>{const _0x3c5fbe=_0x2ac36c;this[_0x3c5fbe(0x2cb)]?.[_0x3c5fbe(0x22a)](_0xfda8fd[_0x3c5fbe(0x250)],_0xfda8fd[_0x3c5fbe(0x1c3)],_0xfda8fd[_0x3c5fbe(0x1dd)]);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x20e),()=>{const _0x11f0f1=_0x2ac36c;this[_0x11f0f1(0x30c)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x213),()=>{const _0x5e7344=_0x2ac36c;this[_0x5e7344(0x226)]();}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1ca),(_0x209034,_0x50c6dc)=>{const _0x18444d=_0x2ac36c;this[_0x18444d(0x2cb)]?.[_0x18444d(0x1ec)](_0x50c6dc);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2b5),(_0x51a2e9,{replyId:_0x54ada0})=>{const _0x5cbd5c=_0x2ac36c;console[_0x5cbd5c(0x31b)](_0x5cbd5c(0x248),_0x54ada0);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x238),(_0xbf44a0,{replyId:_0x3f4c6b})=>{const _0x548297=_0x2ac36c;console[_0x548297(0x31b)](_0x548297(0x270),_0x3f4c6b);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x29a),(_0x59596d,_0x3db8a1)=>{const _0x22ae2b=_0x2ac36c;this[_0x22ae2b(0x2bc)](_0x3db8a1);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2f7),(_0x11ef6d,{replyId:_0x1ad650,partIndex:_0x35f6c8})=>{const _0x3eeb1e=_0x2ac36c;this[_0x3eeb1e(0x225)]=this[_0x3eeb1e(0x2d4)][_0x3eeb1e(0x298)],this[_0x3eeb1e(0x1c0)](_0x1ad650,_0x35f6c8);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x249),(_0x6efafb,{replyId:_0x28b625,partIndex:_0x124d49})=>{const _0x2a26d0=_0x2ac36c,_0x1cd0f4=this[_0x2a26d0(0x1fb)](_0x28b625,_0x124d49);_0x1cd0f4&&_0x2a26d0(0x305)!=_0x1cd0f4[_0x2a26d0(0x19f)][_0x2a26d0(0x239)][_0x2a26d0(0x2a9)]&&this[_0x2a26d0(0x1ad)][_0x2a26d0(0x29e)]([_0x1cd0f4[_0x2a26d0(0x19f)]],_0x2a26d0(0x240));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x1a9),()=>{const _0x3e190a=_0x2ac36c;this[_0x3e190a(0x1ad)][_0x3e190a(0x304)](_0x3e190a(0x240));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x194),(_0x4f9819,_0x1e0016)=>{const _0x25bf2f=_0x2ac36c;this[_0x25bf2f(0x1ad)][_0x25bf2f(0x304)](_0x25bf2f(0x240)),this[_0x25bf2f(0x1a4)](_0x1e0016);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x31a),async(_0x16296b,{replyId:_0x2a4cc3,showDiff:_0x28a6db})=>{const _0x2f6336=_0x2ac36c,{reply:_0x380ff4}=this[_0x2f6336(0x2b7)](_0x2a4cc3),_0xde7c67=_0x380ff4[_0x2f6336(0x1e2)]({'showDiff':_0x28a6db});await this[_0x2f6336(0x2d4)][_0x2f6336(0x27f)]({'id':_0x380ff4['id'],'parts':_0xde7c67,'renderingStrategy':_0x2f6336(0x269)});}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x2d4)],_0x2ac36c(0x2a6),(_0x59b72a,{replyId:_0x2c072b,partIndex:_0x4b6731})=>{const _0x58f983=_0x2ac36c;this[_0x58f983(0x313)]({'replyId':_0x2c072b,'partIndex':_0x4b6731}),this[_0x58f983(0x1ad)][_0x58f983(0x304)](_0x58f983(0x240));}),this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x22e)](_0x2ac36c(0x1c5))&&(this[_0x2ac36c(0x241)]=this[_0x2ac36c(0x216)][_0x2ac36c(0x244)][_0x2ac36c(0x260)](_0x2ac36c(0x1c5)),this[_0x2ac36c(0x208)](_0x2ac36c(0x225),!0x1),this[_0x2ac36c(0x241)][_0x2ac36c(0x291)](_0x2ac36c(0x298))['to'](this,_0x2ac36c(0x225)),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x31a),()=>{const _0x8378fc=_0x2ac36c,{replyId:_0x2c62db,partIndex:_0xb63fa7}=this[_0x8378fc(0x19c)];this[_0x8378fc(0x225)]=!this[_0x8378fc(0x225)];const {reply:_0xb16380}=this[_0x8378fc(0x2b7)](_0x2c62db),_0x1f22d2=_0xb16380[_0x8378fc(0x1e2)]({'showDiff':this[_0x8378fc(0x225)],'groupIndex':_0xb63fa7});this[_0x8378fc(0x241)][_0x8378fc(0x29c)]({'part':_0x1f22d2[0x0],'renderingStrategy':_0x8378fc(0x269),'keepErrors':!0x0});}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x194),()=>{const _0x5cc11b=_0x2ac36c,{replyId:_0x2e8f85,partIndex:_0x247dfb}=this[_0x5cc11b(0x19c)];this[_0x5cc11b(0x1a4)]({'replyId':_0x2e8f85,'partIndex':_0x247dfb}),this[_0x5cc11b(0x241)][_0x5cc11b(0x232)](_0x5cc11b(0x1ff));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x29a),()=>{const _0x5452a4=_0x2ac36c,{replyId:_0x57a1ef,partIndex:_0x3282ea}=this[_0x5452a4(0x19c)];this[_0x5452a4(0x2bc)]({'replyId':_0x57a1ef,'partIndex':_0x3282ea}),this[_0x5452a4(0x241)][_0x5452a4(0x232)](_0x5452a4(0x1ff));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x2a6),()=>{const _0x28d6ef=_0x2ac36c,{replyId:_0xf9b62f,partIndex:_0x5d1226}=this[_0x28d6ef(0x19c)];this[_0x28d6ef(0x313)]({'replyId':_0xf9b62f,'partIndex':_0x5d1226}),this[_0x28d6ef(0x241)][_0x28d6ef(0x232)](_0x28d6ef(0x2e8));}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x1a0),()=>{const _0x260b85=_0x2ac36c,{replyId:_0x32d919,partIndex:_0x1919ee}=this[_0x260b85(0x19c)],_0x45ece5=this[_0x260b85(0x1de)](_0x32d919,_0x1919ee,_0x260b85(0x28b));null!==_0x45ece5&&this[_0x260b85(0x1c0)](_0x32d919,_0x45ece5);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x1a7),()=>{const _0x3807d8=_0x2ac36c,{replyId:_0x1135dc,partIndex:_0x5afae3}=this[_0x3807d8(0x19c)],_0x484f71=this[_0x3807d8(0x1de)](_0x1135dc,_0x5afae3,_0x3807d8(0x1cd));null!==_0x484f71&&this[_0x3807d8(0x1c0)](_0x1135dc,_0x484f71);}),this[_0x2ac36c(0x24d)](this[_0x2ac36c(0x241)],_0x2ac36c(0x2fc),(_0x172360,{id:_0xd582ac})=>{const _0x3ed964=_0x2ac36c;if(_0x3ed964(0x220)!==_0xd582ac)return;const {replyId:_0x184707,partIndex:_0x119c59}=this[_0x3ed964(0x19c)];this[_0x3ed964(0x19c)]=null,this[_0x3ed964(0x2d4)][_0x3ed964(0x1db)]({'id':_0x184707,'index':_0x119c59,'isActive':!0x1});}));}async[_0x18ef55(0x2c4)](){const _0x3ea5b7=_0x18ef55;this[_0x3ea5b7(0x216)]instanceof _0x2d24c9?this[_0x3ea5b7(0x1e4)](this[_0x3ea5b7(0x216)]):this[_0x3ea5b7(0x24d)](this[_0x3ea5b7(0x216)][_0x3ea5b7(0x21d)],_0x3ea5b7(0x22f),(_0x3c81ec,_0x14a999)=>{const _0x275293=_0x3ea5b7;_0x14a999['on'](_0x275293(0x308),()=>{const _0x5a16ad=_0x275293;this[_0x5a16ad(0x1e4)](_0x14a999);});});const _0x4e1c78=this[_0x3ea5b7(0x216)][_0x3ea5b7(0x293)][_0x3ea5b7(0x260)](_0x3ea5b7(0x243));let _0x54193e=_0x4e1c78;if(_0x3ea5b7(0x207)!=_0x4e1c78||(_0x54193e=await this[_0x3ea5b7(0x2ad)](),_0x54193e))return _0x3ea5b7(0x23f)==_0x54193e?this[_0x3ea5b7(0x274)]():this[_0x3ea5b7(0x2b0)](_0x54193e);}async[_0x18ef55(0x1d8)](){const _0x3cf827=_0x18ef55;return await this[_0x3cf827(0x319)](),this[_0x3cf827(0x29b)][_0x3cf827(0x221)](),super[_0x3cf827(0x1d8)]();}[_0x18ef55(0x2bc)](_0x571a83){const _0x414007=_0x18ef55,_0x451e29=_0x408387(this[_0x414007(0x216)]);if(!_0x451e29[_0x414007(0x244)][_0x414007(0x22e)](_0x414007(0x27b)))throw new _0x28fffa(_0x414007(0x1ae),null);const _0x26e3e2=this[_0x414007(0x216)][_0x414007(0x244)][_0x414007(0x260)](_0x414007(0x1c6)),{reply:_0x57bfd8,interaction:_0x17901a}=this[_0x414007(0x2b7)](_0x571a83[_0x414007(0x276)]),_0x1ac8cc=this[_0x414007(0x1fb)](_0x571a83[_0x414007(0x276)],_0x571a83[_0x414007(0x2d8)]),_0x2c438f=void 0x0!==_0x571a83[_0x414007(0x2d8)]?[_0x57bfd8[_0x414007(0x252)][_0x571a83[_0x414007(0x2d8)]]]:_0x57bfd8[_0x414007(0x252)][_0x414007(0x1c1)](_0x5c05a0=>_0x414007(0x1e9)==_0x5c05a0[_0x414007(0x222)]),_0x5b4e7b=_0x2c438f[_0x414007(0x2c7)](_0x47bc53=>_0x57bfd8[_0x414007(0x252)][_0x414007(0x266)](_0x47bc53));if(!_0x1ac8cc||_0x414007(0x305)==_0x1ac8cc[_0x414007(0x19f)][_0x414007(0x239)][_0x414007(0x2a9)])return void _0x5b4e7b[_0x414007(0x2e7)](_0x3c8c15=>_0x57bfd8[_0x414007(0x26a)](_0x3c8c15,_0x414007(0x2ff)));_0x5b4e7b[_0x414007(0x2e7)](_0x593f33=>_0x57bfd8[_0x414007(0x26a)](_0x593f33,_0x414007(0x1ff)));const _0x2c19dc=_0x5acd3e({'editor':_0x451e29,'reply':_0x57bfd8,'interaction':_0x17901a,'groups':_0x2c438f,'transform':!0x0,'documentCompare':_0x26e3e2,'documentCompareOptions':{'anchor':_0x414007(0x26e),'markDeletions':!0x0}});let _0x11b91c;_0x1ac8cc&&this[_0x414007(0x299)](_0x1ac8cc[_0x414007(0x19f)]),_0x451e29[_0x414007(0x1a3)][_0x414007(0x2f1)](_0x1be441=>{const _0x165614=_0x414007;_0x11b91c=_0x1be441[_0x165614(0x24a)],_0x451e29[_0x165614(0x244)][_0x165614(0x260)](_0x165614(0x23a))[_0x165614(0x306)](_0x2c19dc),this[_0x165614(0x1ad)][_0x165614(0x304)](_0x165614(0x240));}),this[_0x414007(0x231)][_0x414007(0x208)](_0x11b91c,{'interactionId':_0x17901a['id'],'replyId':_0x57bfd8['id'],'indexes':_0x5b4e7b[_0x414007(0x2a7)]()}),this[_0x414007(0x223)](_0x57bfd8);}[_0x18ef55(0x1a4)](_0x15f928){const _0x44918e=_0x18ef55,_0x827d40=_0x408387(this[_0x44918e(0x216)]),_0x895692=this[_0x44918e(0x216)][_0x44918e(0x244)][_0x44918e(0x260)](_0x411323),{reply:_0x24f2b1,interaction:_0x46ecc2}=this[_0x44918e(0x2b7)](_0x15f928[_0x44918e(0x276)]),_0x560fcf=this[_0x44918e(0x1fb)](_0x15f928[_0x44918e(0x276)],_0x15f928[_0x44918e(0x2d8)]),_0x23da6f=void 0x0!==_0x15f928[_0x44918e(0x2d8)]?[_0x24f2b1[_0x44918e(0x252)][_0x15f928[_0x44918e(0x2d8)]]]:_0x24f2b1[_0x44918e(0x252)][_0x44918e(0x1c1)](_0x5ae47c=>_0x44918e(0x1e9)==_0x5ae47c[_0x44918e(0x222)]),_0x5a4868=_0x23da6f[_0x44918e(0x2c7)](_0x2d897d=>_0x24f2b1[_0x44918e(0x252)][_0x44918e(0x266)](_0x2d897d));if(!_0x560fcf||_0x44918e(0x305)==_0x560fcf[_0x44918e(0x19f)][_0x44918e(0x239)][_0x44918e(0x2a9)])return void _0x5a4868[_0x44918e(0x2e7)](_0x44b13a=>_0x24f2b1[_0x44918e(0x26a)](_0x44b13a,_0x44918e(0x2ff)));_0x5a4868[_0x44918e(0x2e7)](_0x3386f4=>_0x24f2b1[_0x44918e(0x26a)](_0x3386f4,_0x44918e(0x1ff)));const _0x4ff22d=_0x5acd3e({'editor':_0x827d40,'reply':_0x24f2b1,'interaction':_0x46ecc2,'groups':_0x23da6f,'transform':!0x0,'documentCompare':_0x895692,'documentCompareOptions':{'anchor':_0x44918e(0x26e),'markDeletions':!0x1}});let _0x51baa2;_0x560fcf&&this[_0x44918e(0x299)](_0x560fcf[_0x44918e(0x19f)]),_0x827d40[_0x44918e(0x1a3)][_0x44918e(0x2f1)](_0xfdb1ee=>{const _0x26f228=_0x44918e;_0x51baa2=_0xfdb1ee[_0x26f228(0x24a)];for(const _0x28c5cf of _0x4ff22d)_0x28c5cf[_0x26f228(0x1eb)]=_0x827d40[_0x26f228(0x1a3)][_0x26f228(0x1cf)][_0x26f228(0x198)],_0x1e59cd(_0x827d40,_0x28c5cf),_0xfdb1ee[_0x26f228(0x24a)][_0x26f228(0x2dc)](_0x28c5cf),_0x827d40[_0x26f228(0x1a3)][_0x26f228(0x263)](_0x28c5cf);}),this[_0x44918e(0x231)][_0x44918e(0x208)](_0x51baa2,{'interactionId':_0x46ecc2['id'],'replyId':_0x24f2b1['id'],'indexes':_0x5a4868[_0x44918e(0x2a7)]()}),this[_0x44918e(0x223)](_0x24f2b1);}[_0x18ef55(0x313)](_0x42b72e){const _0x417182=_0x18ef55,{reply:_0x23a142}=this[_0x417182(0x2b7)](_0x42b72e[_0x417182(0x276)]);_0x23a142[_0x417182(0x26a)](_0x42b72e[_0x417182(0x2d8)],_0x417182(0x2e8));}[_0x18ef55(0x1c0)](_0x70d1eb,_0xd63097){const _0x20962e=_0x18ef55;if(!this[_0x20962e(0x241)])return;const {reply:_0x543377}=this[_0x20962e(0x2b7)](_0x70d1eb),_0x3ec21d=_0x543377[_0x20962e(0x1e2)]({'showDiff':this[_0x20962e(0x225)]});let _0x203b02,_0x19a601;if(void 0x0!==_0xd63097?(_0x19a601=_0x3ec21d[_0x20962e(0x1ee)](_0x5ad099=>_0x5ad099[_0x20962e(0x2d7)]==_0xd63097),_0x203b02=_0x19a601?.[_0x20962e(0x2d7)]):(_0x19a601=_0x3ec21d[0x0],_0x203b02=_0x19a601[_0x20962e(0x2d7)]),this[_0x20962e(0x19c)]?.[_0x20962e(0x276)]==_0x70d1eb&&this[_0x20962e(0x19c)]?.[_0x20962e(0x2d8)]==_0x203b02)return;const _0x2bbf61=this[_0x20962e(0x1e6)](_0x70d1eb,_0x543377,_0x19a601);if(!_0x2bbf61)return void this[_0x20962e(0x241)][_0x20962e(0x265)]();this[_0x20962e(0x19c)]={'replyId':_0x70d1eb,'partIndex':_0x203b02},this[_0x20962e(0x299)](_0x2bbf61,!0x0);const _0x5dccad=this[_0x20962e(0x1de)](_0x70d1eb,_0x203b02,_0x20962e(0x28b));this[_0x20962e(0x241)][_0x20962e(0x29c)]({'part':_0x19a601,'renderingStrategy':_0x20962e(0x269)}),this[_0x20962e(0x241)][_0x20962e(0x1a8)]({'index':_0x203b02,'title':_0x38b507(this[_0x20962e(0x216)][_0x20962e(0x1b8)],_0x20962e(0x22b),(_0x203b02+0x1)[_0x20962e(0x1f7)]()),'showRotator':null!==_0x5dccad,'ranges':[_0x2bbf61],'areActionsDisabled':_0x543377[_0x20962e(0x2fa)]}),this[_0x20962e(0x241)][_0x20962e(0x232)](_0x20962e(0x1e9)),this[_0x20962e(0x2d4)][_0x20962e(0x1e0)](_0x70d1eb,_0x203b02),this[_0x20962e(0x2d4)][_0x20962e(0x1db)]({'id':_0x70d1eb,'index':_0x203b02,'isActive':!0x0});}[_0x18ef55(0x1de)](_0x2d1fd5,_0x116eec,_0x15c2bf){const _0x5f4196=_0x18ef55,{reply:_0x23e2fb}=this[_0x5f4196(0x2b7)](_0x2d1fd5),_0x58cdb2=_0x23e2fb[_0x5f4196(0x1e2)]({'showDiff':this[_0x5f4196(0x225)]});if(0x1==_0x58cdb2[_0x5f4196(0x234)])return null;const _0x5ddb81=_0x58cdb2[_0x5f4196(0x284)](_0x3206e0=>_0x3206e0[_0x5f4196(0x2d7)]==_0x116eec),_0x1ca8f5=_0x5f4196(0x28b)==_0x15c2bf?0x1:-0x1;let _0x2d7eee=_0x58cdb2['at']((_0x5ddb81+_0x1ca8f5)%_0x58cdb2[_0x5f4196(0x234)])[_0x5f4196(0x2d7)],_0x2ee1b6=_0x58cdb2[_0x2d7eee];for(;!this[_0x5f4196(0x1e6)](_0x2d1fd5,_0x23e2fb,_0x2ee1b6);){if(_0x2d7eee=_0x58cdb2['at']((_0x2d7eee+_0x1ca8f5)%_0x58cdb2[_0x5f4196(0x234)])[_0x5f4196(0x2d7)],_0x2d7eee===_0x5ddb81)return null;_0x2ee1b6=_0x58cdb2[_0x2d7eee];}return _0x2d7eee;}[_0x18ef55(0x1e6)](_0xcb5ef0,_0x56ebd8,_0x171103){const _0x1506ac=_0x18ef55,_0x4c90e0=_0x56ebd8[_0x1506ac(0x252)];if(!_0x171103[_0x1506ac(0x242)])return null;const _0x585ed2=_0x4c90e0[_0x1506ac(0x1ee)](_0x48d54e=>_0x48d54e[_0x1506ac(0x2d7)]==_0x171103[_0x1506ac(0x2d7)]);if(_0x1506ac(0x1e9)!==_0x585ed2?.[_0x1506ac(0x222)])return null;const _0x4b64d9=this[_0x1506ac(0x1fb)](_0xcb5ef0,_0x171103[_0x1506ac(0x2d7)]);if(!_0x4b64d9)return null;const {range:_0x2db0c6,currentIndex:_0x2b3caa}=_0x4b64d9;return _0x1506ac(0x305)==_0x2db0c6[_0x1506ac(0x239)][_0x1506ac(0x2a9)]?(_0x56ebd8[_0x1506ac(0x26a)](_0x2b3caa,_0x1506ac(0x2ff)),null):_0x4b64d9[_0x1506ac(0x19f)];}[_0x18ef55(0x1fb)](_0x3f035f,_0x193292){const _0x50586c=_0x18ef55,_0x427c83=_0x408387(this[_0x50586c(0x216)]),{reply:_0x1be22d,interaction:_0x19babd}=this[_0x50586c(0x2b7)](_0x3f035f),_0x427d38=_0x1be22d[_0x50586c(0x252)][_0x50586c(0x1c1)](_0xf33cb3=>_0x50586c(0x1e9)==_0xf33cb3[_0x50586c(0x222)]),_0x190436=_0x427d38[_0x50586c(0x2c7)](_0xb69754=>_0x1be22d[_0x50586c(0x252)][_0x50586c(0x266)](_0xb69754));void 0x0===_0x193292&&(_0x193292=_0x190436[0x0]);const _0x407fae=_0x190436[_0x50586c(0x266)](_0x193292);if(-0x1==_0x407fae)return null;const _0x408ca3=_0x427d38[_0x407fae],_0x563b25=new _0x539ee1([]),_0x40a677=new _0x539ee1([]);for(const _0x378925 of _0x408ca3[_0x50586c(0x1c8)])if(_0x50586c(0x1d3)!=_0x378925[_0x50586c(0x2bd)]&&_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x378925[_0x50586c(0x2eb)][_0x50586c(0x28a)](!0x0)),_0x50586c(0x23f)!=_0x378925[_0x50586c(0x2bd)]){const _0x52f504=_0x4fa18a(_0x2d76eb=>_0x54996d(_0x2d76eb,_0x50586c(0x21b))==_0x378925['id'],_0x1be22d[_0x50586c(0x219)],!0x0);_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x52f504[_0x50586c(0x28a)](!0x0));}if(0x0==_0x563b25[_0x50586c(0x1be)][_0x50586c(0x234)]){if(_0x408ca3[_0x50586c(0x1c8)][0x0][_0x50586c(0x1a2)]){const _0x25908c=_0x1bbf33(_0x50586c(0x21b),_0x408ca3[_0x50586c(0x1c8)][0x0][_0x50586c(0x1a2)],_0x1be22d[_0x50586c(0x219)]);_0x563b25[_0x50586c(0x1be)][_0x50586c(0x2ef)](_0x25908c[_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x2ef)](_0x25908c[_0x50586c(0x28a)](!0x0)),_0x25908c[_0x50586c(0x1b9)]&&(_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x25908c[_0x50586c(0x1b9)][_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x25908c[_0x50586c(0x1b9)][_0x50586c(0x28a)](!0x0)));}else{const _0x2a37d4=_0x1be22d[_0x50586c(0x219)][_0x50586c(0x1be)][0x0];if(!_0x2a37d4)return null;_0x563b25[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x2a37d4[_0x50586c(0x28a)](!0x0)),_0x40a677[_0x50586c(0x1be)][_0x50586c(0x21e)](_0x2a37d4[_0x50586c(0x28a)](!0x0));}}const _0x2baa93=_0x19babd[_0x50586c(0x23e)](),_0x493610=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x2baa93[_0x50586c(0x251)]),_0x4f5b41=_0x4cddf6(_0x563b25),_0x5af1f0=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x4f5b41),_0x599ae2=_0x427c83[_0x50586c(0x1aa)][_0x50586c(0x209)](_0x4f5b41),_0x4d1d02=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1bc)](_0x5af1f0,0x0),_0x3ac7b5=_0x4cddf6(_0x40a677),_0x3fcd1e={'anchor':_0x4d1d02,'markDeletions':!0x1},_0x52396d=_0x427c83[_0x50586c(0x244)][_0x50586c(0x260)](_0x411323)[_0x50586c(0x1cc)](_0x4f5b41,_0x3ac7b5,_0x3fcd1e)[_0x50586c(0x279)]();if(!_0x52396d[_0x50586c(0x234)])return null;_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2f1)](_0x26cd94=>{const _0x41f768=_0x50586c;for(const _0x5e5a8e of _0x52396d)if(_0x41f768(0x2e5)==_0x5e5a8e[_0x41f768(0x2bd)]){const _0xf0a3cc=_0x5e5a8e[_0x41f768(0x2fd)],_0x419f1f=_0x5e5a8e[_0x41f768(0x30e)],_0x489fe4=new _0x42eab9(_0xf0a3cc,_0x419f1f);_0x26cd94[_0x41f768(0x24a)][_0x41f768(0x2dc)](_0x489fe4),_0x427c83[_0x41f768(0x1a3)][_0x41f768(0x263)](_0x489fe4);}else _0x41f768(0x2c5)!==_0x5e5a8e[_0x41f768(0x2bd)]&&(_0x5e5a8e[_0x41f768(0x1eb)]=null,_0x5e5a8e[_0x41f768(0x2ea)]=!0x1,_0x26cd94[_0x41f768(0x24a)][_0x41f768(0x2dc)](_0x5e5a8e),_0x427c83[_0x41f768(0x1a3)][_0x41f768(0x263)](_0x5e5a8e));});const _0x35a3ce=_0x2058a7(_0x427c83,_0x52396d,_0x5af1f0);_0x589116(_0x427c83[_0x50586c(0x1a3)],_0x35a3ce);const _0x9023ca=_0x35a3ce[_0x50586c(0x229)]()[_0x50586c(0x1b5)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x362941=_0x35a3ce[_0x50586c(0x229)]()[_0x50586c(0x200)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x27ad07=[];let _0x15bcdf=_0x5af1f0,_0x1a1eaa=_0x599ae2;for(let _0x40f9b8=0x0;_0x40f9b8<_0x362941[_0x50586c(0x234)];_0x40f9b8++){const _0x109ed2=_0x15bcdf[_0x50586c(0x197)]-_0x362941[_0x40f9b8];_0x27ad07[_0x40f9b8]=_0x1a1eaa[_0x50586c(0x197)]-_0x109ed2,_0x15bcdf=_0x15bcdf[_0x50586c(0x1bf)](_0x362941[_0x40f9b8]),_0x1a1eaa=_0x1a1eaa[_0x50586c(0x1bf)](_0x27ad07[_0x40f9b8]);}const _0x27072d=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x25a)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x599ae2,_0x9023ca),_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x599ae2,_0x27ad07)),_0xd05134=_0x599ae2[_0x50586c(0x1f9)](0x0)[_0x50586c(0x246)](_0x2cd343),_0x212709=Array[_0x50586c(0x2c3)](_0x493610[_0x50586c(0x2da)]())[_0x50586c(0x1ee)](_0x7617de=>_0x7617de[_0x50586c(0x246)](_0x2cd343)==_0xd05134)[_0x50586c(0x2de)](),_0x5791e3=_0x27072d[_0x50586c(0x1b5)][_0x50586c(0x1f5)][_0x50586c(0x2a7)](),_0x5000e7=_0x27072d[_0x50586c(0x200)][_0x50586c(0x1f5)][_0x50586c(0x2a7)]();_0x5791e3[0x0]=_0x212709[0x0]+_0x5791e3[0x0],_0x5000e7[0x0]=_0x212709[0x0]+_0x5000e7[0x0];let _0x224dfc=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x25a)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x21f)](),_0x5791e3),_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x2d0)](_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x21f)](),_0x5000e7));const _0xe34253=_0x427c83[_0x50586c(0x1a3)][_0x50586c(0x1cf)][_0x50586c(0x26b)][_0x50586c(0x279)](_0x2baa93[_0x50586c(0x198)]);for(const _0x401758 of _0xe34253)_0x224dfc=_0x76749[_0x50586c(0x1d6)](_0x224dfc[_0x50586c(0x1f4)](_0x401758));return{'range':_0x224dfc,'currentIndex':_0x193292};}[_0x18ef55(0x1e4)](_0x3a2db9){const _0x1f585=_0x18ef55;if(!_0x3a2db9[_0x1f585(0x244)][_0x1f585(0x22e)](_0x1f585(0x2b4)))return;const _0x3458e7=_0x3a2db9[_0x1f585(0x2a3)][_0x1f585(0x260)](_0x1f585(0x254)),_0x59222a=_0x3a2db9[_0x1f585(0x2a3)][_0x1f585(0x260)](_0x1f585(0x218));this[_0x1f585(0x24d)](_0x3458e7,_0x1f585(0x1ce),(_0x2c18b3,_0x28e29b,_0x16fb2a)=>{const _0x14f564=_0x1f585,_0x50a92a=this[_0x14f564(0x231)][_0x14f564(0x260)](_0x28e29b);if(!_0x50a92a)return;const _0x3ed7f7=this[_0x14f564(0x2cb)][_0x14f564(0x2d1)](_0x50a92a[_0x14f564(0x1f2)])[_0x14f564(0x1ac)](_0x50a92a[_0x14f564(0x276)]);_0x50a92a[_0x14f564(0x2f8)][_0x14f564(0x2e7)](_0x2d4724=>_0x3ed7f7[_0x14f564(0x26a)](_0x2d4724,_0x14f564(0x1e9))),this[_0x14f564(0x231)][_0x14f564(0x2fe)](_0x28e29b),this[_0x14f564(0x231)][_0x14f564(0x208)](_0x16fb2a,_0x50a92a);}),this[_0x1f585(0x24d)](_0x59222a,_0x1f585(0x1ce),(_0x264502,_0x4579a7,_0x401e21)=>{const _0x3150f7=_0x1f585,_0x557118=this[_0x3150f7(0x231)][_0x3150f7(0x260)](_0x4579a7);if(!_0x557118)return;const _0x42d412=this[_0x3150f7(0x2cb)][_0x3150f7(0x2d1)](_0x557118[_0x3150f7(0x1f2)])[_0x3150f7(0x1ac)](_0x557118[_0x3150f7(0x276)]);_0x557118[_0x3150f7(0x2f8)][_0x3150f7(0x2e7)](_0x565b17=>_0x42d412[_0x3150f7(0x26a)](_0x565b17,_0x3150f7(0x1ff))),this[_0x3150f7(0x231)][_0x3150f7(0x2fe)](_0x4579a7),this[_0x3150f7(0x231)][_0x3150f7(0x208)](_0x401e21,_0x557118);});}async[_0x18ef55(0x2b0)](_0x491482){const _0x2c95b2=_0x18ef55;this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x22e)](_0x2c95b2(0x1c5))&&this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x260)](_0x2c95b2(0x1c5))[_0x2c95b2(0x265)](),(this[_0x2c95b2(0x216)][_0x2c95b2(0x244)][_0x2c95b2(0x260)](_0x48cd0d)[_0x2c95b2(0x2f9)][_0x2c95b2(0x25e)](_0x2c95b2(0x303)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x27a)](_0x2c95b2(0x269)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x1f3)](!0x0),await this[_0x2c95b2(0x319)]());try{await this[_0x2c95b2(0x23b)][_0x2c95b2(0x2c9)](_0x491482)[_0x2c95b2(0x195)](),await this[_0x2c95b2(0x274)](_0x491482),this[_0x2c95b2(0x287)]('\x20'),await this[_0x2c95b2(0x2cb)][_0x2c95b2(0x25c)](_0x491482,this[_0x2c95b2(0x1ad)][_0x2c95b2(0x1c7)]),this[_0x2c95b2(0x2cb)][_0x2c95b2(0x280)]()&&this[_0x2c95b2(0x199)]();}catch(_0x185e0f){this[_0x2c95b2(0x2d4)][_0x2c95b2(0x2f6)]({'errorMessage':_0x38b507(this[_0x2c95b2(0x216)][_0x2c95b2(0x1b8)],_0x2c95b2(0x236)),'id':_0x491482}),this[_0x2c95b2(0x2d6)](new _0x28fffa(_0x2c95b2(0x211),this,{'error':_0x185e0f}));}finally{this[_0x2c95b2(0x2d4)][_0x2c95b2(0x253)](),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x27a)](_0x2c95b2(0x278)),this[_0x2c95b2(0x2d4)][_0x2c95b2(0x1f3)](!0x1);}}async[_0x18ef55(0x2ad)](){const _0xb78562=_0x18ef55,_0x1e1d84=this[_0xb78562(0x23b)][_0xb78562(0x20d)](this[_0xb78562(0x2f4)](),{'limit':0x1,'sortBy':_0xb78562(0x2ca)});try{const _0x1f5250=await _0x1e1d84[_0xb78562(0x1d9)]();return _0x1f5250[_0xb78562(0x234)]?_0x1f5250[0x0]['id']:_0xb78562(0x23f);}catch(_0x5622ac){return this[_0xb78562(0x2d4)][_0xb78562(0x2f6)]({'errorMessage':_0x38b507(this[_0xb78562(0x216)][_0xb78562(0x1b8)],_0xb78562(0x236)),'id':_0x1c2e87()}),this[_0xb78562(0x2d6)](new _0x28fffa(_0xb78562(0x258),this,{'error':_0x5622ac})),this[_0xb78562(0x2d4)][_0xb78562(0x1f3)](!0x1),this[_0xb78562(0x2d4)][_0xb78562(0x19d)](),null;}}[_0x18ef55(0x22c)](_0x5768c2){const _0x2c3ae5=_0x18ef55;this[_0x2c3ae5(0x2cb)]['id']===_0x5768c2&&this[_0x2c3ae5(0x274)]();}[_0x18ef55(0x199)](){const _0x496e08=_0x18ef55;this[_0x496e08(0x2cb)]?.[_0x496e08(0x203)](_0x38b507(this[_0x496e08(0x216)][_0x496e08(0x1b8)],_0x496e08(0x1a6)));}async[_0x18ef55(0x1e8)](){const _0x55fee1=_0x18ef55,_0x421aab=this[_0x55fee1(0x1ad)][_0x55fee1(0x1a1)]();this[_0x55fee1(0x2cb)]?.[_0x55fee1(0x282)](_0x421aab),this[_0x55fee1(0x199)]();}[_0x18ef55(0x2f2)](){const _0x53ff6f=_0x18ef55;this[_0x53ff6f(0x2cb)]?.[_0x53ff6f(0x2cd)]();}[_0x18ef55(0x1ed)](){const _0x4d45c9=_0x18ef55;this[_0x4d45c9(0x2d4)][_0x4d45c9(0x1ed)]();}async[_0x18ef55(0x267)](){const _0x3161ba=_0x18ef55;await this[_0x3161ba(0x274)]();}async[_0x18ef55(0x201)]({message:_0x2e291a,attributes:_0x26d75d}){const _0x5d20f5=_0x18ef55;await this[_0x5d20f5(0x20c)]({'userMessage':_0x2e291a,'attributes':_0x26d75d});}[_0x18ef55(0x2f4)](){const _0xaf28=_0x18ef55,_0x4d5f6a=this[_0xaf28(0x216)][_0xaf28(0x293)][_0xaf28(0x260)](_0xaf28(0x28c));if(!_0x4d5f6a)throw new _0x28fffa(_0xaf28(0x228),this);return _0x4d5f6a;}async[_0x18ef55(0x274)](_0x1af12e){const _0x4e167d=_0x18ef55;try{this[_0x4e167d(0x2d4)][_0x4e167d(0x245)](),await this[_0x4e167d(0x2a5)](_0x1af12e);}catch(_0xaac7e0){this[_0x4e167d(0x2d4)][_0x4e167d(0x2f6)]({'errorMessage':_0x38b507(this[_0x4e167d(0x216)][_0x4e167d(0x1b8)],_0x4e167d(0x1e3)),'id':_0x1af12e||_0x1c2e87()}),console[_0x4e167d(0x29d)](_0xaac7e0),this[_0x4e167d(0x2cb)]=void 0x0,this[_0x4e167d(0x2d4)][_0x4e167d(0x19d)]();}}async[_0x18ef55(0x2a5)](_0x56f534){const _0x1f1183=_0x18ef55;let _0x1e47c7;this[_0x1f1183(0x216)][_0x1f1183(0x244)][_0x1f1183(0x22e)](_0x1f1183(0x1c5))&&this[_0x1f1183(0x216)][_0x1f1183(0x244)][_0x1f1183(0x260)](_0x1f1183(0x1c5))[_0x1f1183(0x265)](),_0x56f534||!this[_0x1f1183(0x2cb)]?_0x1e47c7=this[_0x1f1183(0x216)][_0x1f1183(0x293)][_0x1f1183(0x260)](_0x1f1183(0x20f)):this[_0x1f1183(0x2d4)][_0x1f1183(0x2e0)]&&(_0x1e47c7=this[_0x1f1183(0x2cb)][_0x1f1183(0x262)]['id']),await this[_0x1f1183(0x319)]();const _0xe9cb4b=this[_0x1f1183(0x2f4)](),_0x657b4f=_0x56f534||_0x1c2e87();this[_0x1f1183(0x2cb)]=new _0x2a92ed({'connector':this[_0x1f1183(0x23b)],'chatModels':this[_0x1f1183(0x27d)],'selectedModelId':_0x1e47c7,'conversationId':_0x657b4f,'group':_0xe9cb4b,'getEditor':()=>_0x408387(this[_0x1f1183(0x216)]),'isFromHistory':!!_0x56f534}),this[_0x1f1183(0x2cb)][_0x1f1183(0x26c)](_0x1f1183(0x206),_0x1f1183(0x1dc))['to'](this),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2ab),(_0x460dc3,_0x4958f4)=>{const _0x2198c9=_0x1f1183;this[_0x2198c9(0x2d4)][_0x2198c9(0x2d5)](_0x4958f4),this[_0x2198c9(0x2d4)][_0x2198c9(0x2af)](),this[_0x2198c9(0x2d4)][_0x2198c9(0x20a)](),this[_0x2198c9(0x2d4)][_0x2198c9(0x318)](),_0x56f534||(this[_0x2198c9(0x2d4)][_0x2198c9(0x312)](),this[_0x2198c9(0x199)]());}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1ef),(_0xfb3e2,_0x33aea8)=>{const _0x3458e5=_0x1f1183;this[_0x3458e5(0x2d4)][_0x3458e5(0x1c2)](_0x33aea8[_0x3458e5(0x31d)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x264),(_0x4e2a55,_0x19e1d7)=>{const _0x5b898e=_0x1f1183;this[_0x5b898e(0x2d4)][_0x5b898e(0x2c8)](_0x19e1d7);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x300),()=>{const _0x478db4=_0x1f1183,_0x4989dd=this[_0x478db4(0x2d4)][_0x478db4(0x227)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x478db4(0x2d4)][_0x478db4(0x1ba)](_0x4989dd);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2aa),()=>{const _0x10ee66=_0x1f1183,_0x31098b=this[_0x10ee66(0x2d4)][_0x10ee66(0x227)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x10ee66(0x2d4)][_0x10ee66(0x1ba)](_0x31098b);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2ee),(_0x4b8fbd,_0x4af394)=>{const _0x13a551=_0x1f1183;this[_0x13a551(0x2d4)][_0x13a551(0x2c1)](_0x4af394,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2e9),(_0x560369,_0x48e5ee)=>{const _0x3331c2=_0x1f1183;this[_0x3331c2(0x2d4)][_0x3331c2(0x2c1)](_0x48e5ee,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1dc),()=>{const _0xf7fadc=_0x1f1183;this[_0xf7fadc(0x2d4)][_0xf7fadc(0x2b6)]();}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x1f1),async()=>{const _0xe839c4=_0x1f1183;await this[_0xe839c4(0x2d4)][_0xe839c4(0x315)]();}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x272),(_0x2a7b10,_0x4a37fa)=>{const _0x4c3670=_0x1f1183;this[_0x4c3670(0x2d4)][_0x4c3670(0x1bb)](_0x4a37fa['id']);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2bb),(_0x3cc603,_0x2a02f1,_0x2330db)=>{const _0x5b03c1=_0x1f1183;this[_0x5b03c1(0x287)](_0x2a02f1,_0x2330db);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x23d),(_0x49c25b,_0x28c783)=>{const _0x24cc09=_0x1f1183;_0x24cc09(0x2b2)===_0x28c783[_0x24cc09(0x2bd)]?this[_0x24cc09(0x2d4)][_0x24cc09(0x2db)](_0x28c783):this[_0x24cc09(0x2d4)][_0x24cc09(0x30f)](_0x28c783);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2e6),async(_0x12b46a,_0x678492)=>{const _0x1650de=_0x1f1183;await this[_0x1650de(0x2f0)]({'reply':_0x678492});}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x27e),(_0x41af17,{reply:_0x513126,index:_0xde19c4,state:_0x3287e6})=>{const _0x11a555=_0x1f1183;this[_0x11a555(0x2d4)][_0x11a555(0x212)]({'id':_0x513126['id'],'index':_0xde19c4,'state':_0x3287e6}),this[_0x11a555(0x19c)]?.[_0x11a555(0x276)][_0x11a555(0x2c0)](_0x513126['id'])&&this[_0x11a555(0x19c)]?.[_0x11a555(0x2d8)]==_0xde19c4&&this[_0x11a555(0x241)]?.[_0x11a555(0x232)](_0x3287e6);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2dd),(_0x1830a4,_0x44e213)=>{const _0x4d4e44=_0x1f1183;if(this[_0x4d4e44(0x2d4)][_0x4d4e44(0x1da)](_0x44e213[_0x4d4e44(0x2e4)],_0x44e213[_0x4d4e44(0x2ae)]),_0x4d4e44(0x29f)===_0x44e213[_0x4d4e44(0x2e4)][_0x4d4e44(0x2bd)]){const _0x2f0ce=[..._0x408387(this[_0x4d4e44(0x216)])[_0x4d4e44(0x1a3)][_0x4d4e44(0x1cf)][_0x4d4e44(0x29f)][_0x4d4e44(0x24e)]()];this[_0x4d4e44(0x1ad)][_0x4d4e44(0x29e)](_0x2f0ce,_0x4d4e44(0x1af)+this[_0x4d4e44(0x2cb)]?.['id']);}}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x26d),(_0x5e71a8,_0x1191f4)=>{const _0x54b4c4=_0x1f1183;this[_0x54b4c4(0x2d4)][_0x54b4c4(0x290)](_0x1191f4[_0x54b4c4(0x204)]),_0x54b4c4(0x2bf)==_0x1191f4[_0x54b4c4(0x204)]&&this[_0x54b4c4(0x2f2)](),_0x54b4c4(0x29f)===_0x1191f4[_0x54b4c4(0x2bd)]&&this[_0x54b4c4(0x1ad)][_0x54b4c4(0x304)](_0x54b4c4(0x1af)+this[_0x54b4c4(0x2cb)]?.['id']);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2a8),(_0x5c7b64,_0x19c989)=>{const _0x12b4c5=_0x1f1183;this[_0x12b4c5(0x2d4)][_0x12b4c5(0x215)](_0x19c989[_0x12b4c5(0x2e4)][_0x12b4c5(0x204)],_0x19c989[_0x12b4c5(0x2ae)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2b1),(_0x231dc5,_0xf6a6c8)=>{const _0x56660d=_0x1f1183;this[_0x56660d(0x2d4)][_0x56660d(0x268)](_0xf6a6c8[_0x56660d(0x30b)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x235),(_0x1641d4,_0x26717b)=>{const _0x956f8a=_0x1f1183;this[_0x956f8a(0x2d4)][_0x956f8a(0x1fc)](_0x26717b[_0x956f8a(0x233)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x2d2),(_0x3cc2f5,_0x44b9d4)=>{const _0x4c2f5f=_0x1f1183;this[_0x4c2f5f(0x2d4)][_0x4c2f5f(0x256)](_0x44b9d4[_0x4c2f5f(0x250)],_0x44b9d4[_0x4c2f5f(0x1cb)],_0x44b9d4[_0x4c2f5f(0x214)],_0x44b9d4[_0x4c2f5f(0x1dd)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x294),(_0x15f8fb,_0x20e5c7)=>{const _0x82ee86=_0x1f1183;this[_0x82ee86(0x2d4)][_0x82ee86(0x317)](_0x20e5c7[_0x82ee86(0x250)],_0x20e5c7[_0x82ee86(0x1b6)],_0x20e5c7[_0x82ee86(0x2f3)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x271),(_0x59a1b6,_0x44373c)=>{const _0x1fd87f=_0x1f1183;this[_0x1fd87f(0x2d4)][_0x1fd87f(0x2ac)](_0x44373c);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x281),async(_0x56b681,_0x45c871)=>{const _0x29c6aa=_0x1f1183,_0x4c9dbd=(await this[_0x29c6aa(0x27d)][_0x29c6aa(0x20b)]())[_0x29c6aa(0x1ee)](_0x916e52=>_0x916e52['id']===_0x45c871[_0x29c6aa(0x262)]?.['id'])||null;this[_0x29c6aa(0x2d4)][_0x29c6aa(0x2fb)](_0x4c9dbd,_0x45c871[_0x29c6aa(0x1e7)]);}),this[_0x1f1183(0x2cb)]['on'](_0x1f1183(0x29d),(_0x939e4,{error:_0x23aa73,interactionId:_0x3fd0d1,fileName:_0xc06372,url:_0x58f27b,sourceId:_0x1f9610,sourceLabel:_0x421ee2})=>{const _0x285a36=_0x1f1183,_0x3ac77c=_0x3fd0d1?_0x3fd0d1+':'+_0x1c2e87():_0x1c2e87();_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x296))?this[_0x285a36(0x2d4)][_0x285a36(0x1b1)]({'staticMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x27c)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x258))||_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x19a))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1e3)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x292))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x205),_0xc06372),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x23c))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2a0),_0x58f27b),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1e1))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x210)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x2e2))?this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1a5)),'id':_0x3ac77c}):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1b7))?(_0x1f9610&&this[_0x285a36(0x2d4)][_0x285a36(0x285)](_0x1f9610),this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x24f),_0x421ee2||_0x285a36(0x1cb)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x19e))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x257)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x273))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x26f)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x2b3))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1f8)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x1ab))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2a1)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x230))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x289)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):_0x23aa73[_0x285a36(0x30a)][_0x285a36(0x21c)](_0x285a36(0x202))?(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x2b9)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73)):(this[_0x285a36(0x2d4)][_0x285a36(0x2f6)]({'errorMessage':_0x38b507(this[_0x285a36(0x216)][_0x285a36(0x1b8)],_0x285a36(0x1d2)),'id':_0x3ac77c}),this[_0x285a36(0x2d6)](_0x23aa73));}),await this[_0x1f1183(0x2cb)][_0x1f1183(0x21a)](this[_0x1f1183(0x216)][_0x1f1183(0x293)][_0x1f1183(0x260)](_0x1f1183(0x301))),_0x56f534||await this[_0x1f1183(0x2cb)][_0x1f1183(0x1b5)]();}async[_0x18ef55(0x20c)]({userMessage:_0x1e0e84,attributes:_0x1fcc15}){const _0x1e8148=_0x18ef55;if(!this[_0x1e8148(0x2cb)])throw new _0x28fffa(_0x1e8148(0x1b4));if(this[_0x1e8148(0x2cb)][_0x1e8148(0x224)]()){const _0x3becd7=await this[_0x1e8148(0x1ad)][_0x1e8148(0x1d5)]();await this[_0x1e8148(0x2cb)][_0x1e8148(0x2e3)](_0x3becd7);}this[_0x1e8148(0x2cb)]['id']&&this[_0x1e8148(0x2cb)][_0x1e8148(0x295)]&&await this[_0x1e8148(0x2cb)][_0x1e8148(0x28d)]({'userMessage':_0x1e0e84,'attributes':_0x1fcc15});}[_0x18ef55(0x2be)](){const _0x2b167c=_0x18ef55;console[_0x2b167c(0x31b)](_0x2b167c(0x286));}[_0x18ef55(0x2e1)](_0x30f677){const _0x359eae=_0x18ef55;this[_0x359eae(0x2d4)][_0x359eae(0x309)](_0x30f677);}[_0x18ef55(0x2d6)](_0x17507e){const _0xa8797c=_0x18ef55;_0x2a7396(_0x17507e[_0xa8797c(0x30a)]);}[_0x18ef55(0x2ed)](_0x106108){const _0x3c5c15=_0x18ef55;this[_0x3c5c15(0x2cb)]?.[_0x3c5c15(0x2d9)](_0x106108);}[_0x18ef55(0x30c)](){const _0x5608b1=_0x18ef55;this[_0x5608b1(0x2cb)]?.[_0x5608b1(0x20e)]();}[_0x18ef55(0x226)](){const _0x1474ac=_0x18ef55;this[_0x1474ac(0x2cb)]?.[_0x1474ac(0x213)]();}[_0x18ef55(0x2b7)](_0x23c83d){const _0xd8fcfb=_0x18ef55,[_0x233493,_0x5bc5c1]=_0x23c83d[_0xd8fcfb(0x2ba)](':'),_0x2243c4=this[_0xd8fcfb(0x2cb)][_0xd8fcfb(0x2d1)](_0x233493),_0x51a447=_0x2243c4[_0xd8fcfb(0x1ac)](_0x5bc5c1);return{'interaction':_0x2243c4,'reply':_0x51a447};}[_0x18ef55(0x299)](_0x4f3fce,_0x547178=!0x1){const _0x1efedf=_0x18ef55,_0xd26eee=_0x408387(this[_0x1efedf(0x216)]),_0x5d8343={'target':_0xd26eee[_0x1efedf(0x314)][_0x1efedf(0x2f9)][_0x1efedf(0x2ce)][_0x1efedf(0x1df)](_0xd26eee[_0x1efedf(0x314)][_0x1efedf(0x255)][_0x1efedf(0x1ea)](_0x4f3fce)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x547178};_0x547178&&(_0x5d8343[_0x1efedf(0x288)]=!0x0),_0xd00776(_0x5d8343);}[_0x18ef55(0x287)](_0x13eef5,_0x1d2a75=!0x1){const _0x3e6564=_0x18ef55;this[_0x3e6564(0x2d4)][_0x3e6564(0x2bb)](_0x13eef5||_0x38b507(this[_0x3e6564(0x216)][_0x3e6564(0x1b8)],_0x3e6564(0x2cc)),_0x1d2a75);}async[_0x18ef55(0x2f0)]({reply:_0x56402d,renderingStrategy:_0xaf429a}){const _0xa02281=_0x18ef55,{id:_0x45c395,interactionId:_0xa66cff,isDone:_0x42a874,type:_0x5046aa,parsedContent:_0x1ae65f}=_0x56402d,_0x423453=_0xa66cff+':'+_0x45c395;if(_0xa02281(0x2f5)===_0x5046aa){const _0x203bed=_0x56402d[_0xa02281(0x1e2)]({'showDiff':this[_0xa02281(0x2d4)][_0xa02281(0x298)]});await this[_0xa02281(0x2d4)][_0xa02281(0x27f)]({'id':_0x423453,'parts':_0x203bed,'renderingStrategy':_0xaf429a,'isDone':_0x42a874});}else _0xa02281(0x2b2)===_0x5046aa&&await this[_0xa02281(0x2d4)][_0xa02281(0x1b0)]({'id':_0x423453,'parsedContent':_0x1ae65f,'renderingStrategy':_0xaf429a,'isDone':_0x42a874});_0x42a874&&_0x56402d[_0xa02281(0x2cf)][_0xa02281(0x234)]>0x0&&this[_0xa02281(0x2d4)][_0xa02281(0x2a4)](_0x423453,_0x56402d[_0xa02281(0x2cf)]);}async[_0x18ef55(0x319)](){const _0x5f2eb4=_0x18ef55,_0x434b9b=this[_0x5f2eb4(0x2cb)]?.[_0x5f2eb4(0x283)];_0x434b9b&&(_0x434b9b[_0x5f2eb4(0x2b8)](),this[_0x5f2eb4(0x2d4)][_0x5f2eb4(0x1d4)](_0x434b9b));}async[_0x18ef55(0x2c6)](){const _0x2625ae=_0x18ef55,_0x37183b=this[_0x2625ae(0x2cb)]?.[_0x2625ae(0x283)];if(_0x37183b){for await(const _0x575077 of _0x37183b[_0x2625ae(0x1b3)])await this[_0x2625ae(0x2f0)]({'reply':_0x575077,'renderingStrategy':_0x2625ae(0x269)});}}[_0x18ef55(0x223)](_0x38517c){const _0x499323=_0x18ef55,_0x168979={'positiveCount':_0x38517c[_0x499323(0x252)][_0x499323(0x1c1)](_0x8ed7ef=>_0x499323(0x1ff)===_0x8ed7ef[_0x499323(0x222)])[_0x499323(0x234)],'totalCount':_0x38517c[_0x499323(0x252)][_0x499323(0x234)],'modificationId':_0x38517c['id']},_0x53ec9a=this[_0x499323(0x2cb)][_0x499323(0x2d1)](_0x38517c[_0x499323(0x1f2)])[_0x499323(0x275)];_0x53ec9a&&this[_0x499323(0x23b)][_0x499323(0x247)](this[_0x499323(0x2cb)]['id'],_0x53ec9a,_0x168979);}[_0x18ef55(0x1d7)](_0x4302a3){const _0x476d82=_0x18ef55;let _0x5af208=null,_0x25bb3e=null;this['on'](_0x476d82(0x206),(_0x3ef48e,_0x286fe8,_0x37b8b6)=>{const _0xe8996b=_0x476d82;_0x37b8b6['id']!==_0x5af208&&(_0x5af208=_0x37b8b6['id'],_0x25bb3e=this[_0xe8996b(0x307)](_0x37b8b6)),_0x4302a3(_0x286fe8,_0x25bb3e);});}[_0x18ef55(0x307)](_0x4a82e7){const _0x4bfdf6=_0x18ef55,_0x5a324e=this[_0x4bfdf6(0x2d4)],_0x37be67=()=>{const _0x1def6e=_0x4bfdf6;_0x4a82e7[_0x1def6e(0x24c)](),_0x4a82e7[_0x1def6e(0x261)](),_0x5a324e[_0x1def6e(0x24b)]();},_0x3c681a=()=>{const _0x3b7f02=_0x4bfdf6;_0x4a82e7[_0x3b7f02(0x1bd)]&&(_0x4a82e7[_0x3b7f02(0x1bd)][_0x3b7f02(0x1f6)](),_0x4a82e7[_0x3b7f02(0x1bd)]=void 0x0);};return{'insertTextReply':(_0x55c3fa,_0x7639c1)=>{const _0x50bb40=_0x4bfdf6;_0x3c681a(),_0x37be67();const _0x382594=_0x4a82e7[_0x50bb40(0x1bd)]=_0x4a82e7[_0x50bb40(0x1d0)]({'type':_0x50bb40(0x2b2),'interactionId':_0x4a82e7['id'],'content':_0x55c3fa,'id':_0x7639c1||_0x1c2e87()});return _0x3c681a(),_0x382594;},'insertCustomElement':async(_0x57b721,_0x5014e3)=>(_0x3c681a(),_0x37be67(),_0x5a324e[_0x4bfdf6(0x28e)](_0x57b721,_0x5014e3||_0x1c2e87())),'setLoadingMessage':_0x56d417=>{const _0x3ea59b=_0x4bfdf6;_0x5a324e[_0x3ea59b(0x1ba)](_0x56d417);},'clearLoadingMessage':()=>{const _0x142515=_0x4bfdf6;_0x5a324e[_0x142515(0x24b)]();}};}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5ae9(_0x482c12,_0x3dc0af){const _0x1d7c4d=_0x1d7c();return _0x5ae9=function(_0x5ae9be,_0x3c007b){_0x5ae9be=_0x5ae9be-0x138;let _0x314a2a=_0x1d7c4d[_0x5ae9be];return _0x314a2a;},_0x5ae9(_0x482c12,_0x3dc0af);}const _0x388858=_0x5ae9;(function(_0x19ee11,_0x3784cc){const _0x584f50=_0x5ae9,_0x155062=_0x19ee11();while(!![]){try{const _0x25dc2b=-parseInt(_0x584f50(0x178))/0x1*(-parseInt(_0x584f50(0x19b))/0x2)+parseInt(_0x584f50(0x1cf))/0x3*(parseInt(_0x584f50(0x18f))/0x4)+-parseInt(_0x584f50(0x1b3))/0x5+-parseInt(_0x584f50(0x1aa))/0x6*(parseInt(_0x584f50(0x1a9))/0x7)+-parseInt(_0x584f50(0x152))/0x8+parseInt(_0x584f50(0x174))/0x9*(parseInt(_0x584f50(0x148))/0xa)+-parseInt(_0x584f50(0x161))/0xb;if(_0x25dc2b===_0x3784cc)break;else _0x155062['push'](_0x155062['shift']());}catch(_0x21a101){_0x155062['push'](_0x155062['shift']());}}}(_0x1d7c,0x51aaa));import{ContextPlugin as _0xca1bfd}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x9a3834}from'ckeditor5/src/utils.js';import{AIChatView as _0x23bb55}from'./ui/aichatview.js';import{AITabs as _0x17ab13}from'../aitabs/aitabs.js';import{getTranslation as _0xec21f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0xaeb661}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x5caea6}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2fd187}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x589fdb}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3e26c0}from'../aicore/utils/geteditorfromcontext.js';function _0x1d7c(){const _0x3057b0=['isDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','commands','removeFeedItem','feedItemRenderingStrategy','getItemIds','populateSourceResourceBalloon','updateFeedItemAIReplySources','set','toggleSuggestionDisplayMode','markItemAsDone','displayedPrompt','bind','ai.availableReplyActions','closeSourceResourceBalloon','isOfficialPlugin','isVisible','resetMessageInput','isTrackChangesOn','1721133IxKUxg','setModel','abort','updateCapabilities','trackChanges','AITabs','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setIsUploadInProgress','setModelList','enableModelSelector','last','setConversationTitle','plugins','ai.chat.welcomeMessage','setReasoning','stopInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_getInputPlaceholder','availableModels','_isTrackChangesCommandValueBound','filter','ai.chat.context.searchInputVisibleFrom','setInputPlaceholder','attributes','enqueue','fire','has','showResizeButton','interaction-header','updateSuggestionPartState','queueEmptyPromise','chatHeader','chatFeed','clearPendingContextUI','prepareLoadingMessage','setLoadingMessage','clearLoadingMessage','values','focusPromptInput','_titleAnimationInterval','AI_CHAT_WELCOME_MESSAGE','length','error-message','contextItems','startInteraction','1754860welaGl','chat','isLoading','isPending','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','</p>','_promiseQueue','context','removeItem','find','639400xHRVlQ','updateResourceState','<p>','removeFeedInteraction','ai-reply','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addFeedItemUserMessage','children','locale','stopAutoScroll','isPremiumPlugin','addFeedInteractionHeader','delegate','value','1096700aPQWcj','get','conversation-start','options','ai-suggestion-reply','setContextItemLoading','setSuggestionPartActive','setFeedItemRenderingStrategy','hasFeedItem','ai.models.showModelSelector','clearConversationContextUI','capabilities','remove','requires','isBusy','createConversation','custom-element','destroy','updateReplyItem','9HHIqHy','setSelectedModel','updateFeedItemAIReplySuggestionPartState','_interactionPromiseResolver','77903fTxeTo','setAddContextOptions','updateFeedInteractionHeader','disableControls','showDiff','addContextItem','isReasoningEnabled','disableModelSelector','setConversationContext','interactionId','updateFeedItemAIReplyContent','addFeedItemAISuggestion','isMaximized','clear','scrollToSuggestion','addFeedItemCustomElement','isWebSearchEnabled','setPromptInputValue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateWebSources','label','addFeedItemStaticMessage','scrollFeedToSuggestion','4pWkCEv','AIChatUI','startAutoScroll','addItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','streaming','userMessage','TrackChanges','enableControls','updateSuggestionItem','removeContextItem','finishInteraction','2kZgruz','resetConversationTitle','AI_CHAT_HEADING','setFeedItemAIReplySuggestionPartActive','setWebSearch','addFeedItemAIReply','addFeedItemError','insertSuggestion','user-message','chatControls','from','pluginName','renderingStrategy','markFeedItemAsDone','7hftLcy','1566438RNrIWW','toggleLoadingSkeleton','isModelAvailable','conversationCreated','forEach','setIsMaximized','areActionsDisabled','_view','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','259480HzwjFF','updateFeedItemAIReplySuggestionContent','isDisabled','addTab','then','hasItem','_animateConversationTitle','config','view'];_0x1d7c=function(){return _0x3057b0;};return _0x1d7c();}import{AI_REPLY_ACTIONS as _0x2e1133}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0xca1bfd{static get[_0x388858(0x16e)](){return[_0x17ab13];}[_0x388858(0x1b1)];static get[_0x388858(0x1a6)](){const _0x3d5444=_0x388858;return _0x3d5444(0x190);}static get[_0x388858(0x1cb)](){return!0x0;}static get[_0x388858(0x15d)](){return!0x0;}[_0x388858(0x1c0)]=_0x388858(0x194);[_0x388858(0x17c)]=!0x0;[_0x388858(0x14e)];[_0x388858(0x177)];[_0x388858(0x142)]=void 0x0;[_0x388858(0x1e2)]=!0x1;constructor(_0x36d8ca){const _0x2bd3ab=_0x388858;super(_0x36d8ca);const _0x239e3e=this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x1db)][_0x2bd3ab(0x162)](_0x2bd3ab(0x1d4));this[_0x2bd3ab(0x1c4)](_0x2bd3ab(0x16f),!0x1),this[_0x2bd3ab(0x14e)]=new _0x2fd187(),this[_0x2bd3ab(0x1b1)]=new _0x23bb55(this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x15b)],{'showResizeButton':_0x239e3e[_0x2bd3ab(0x1ea)],'contextResourcesSearchInputVisibleFrom':this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x1ba)][_0x2bd3ab(0x162)](_0x2bd3ab(0x1e4))}),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x15f)](..._0x589fdb)['to'](this),this[_0x2bd3ab(0x1b1)]['on'](_0x2bd3ab(0x1c5),(_0x2693e1,{showDiff:_0x100fe9})=>{const _0x4f6491=_0x2bd3ab;this[_0x4f6491(0x17c)]=_0x100fe9;}),_0x239e3e[_0x2bd3ab(0x1bb)][_0x2bd3ab(0x1b6)]({'id':_0x2bd3ab(0x149),'buttonLabel':_0xec21f(this[_0x2bd3ab(0x14f)][_0x2bd3ab(0x15b)],_0x2bd3ab(0x19d)),'buttonIcon':_0xaeb661,'order':0x0,'content':this[_0x2bd3ab(0x1b1)]}),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x1a4)][_0x2bd3ab(0x1c8)](_0x2bd3ab(0x14a))['to'](this,_0x2bd3ab(0x16f),_0x1fb269=>_0x1fb269),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x13b)][_0x2bd3ab(0x1c8)](_0x2bd3ab(0x14b))['to'](this,_0x2bd3ab(0x16f),_0x31fc0c=>_0x31fc0c),this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x1a4)][_0x2bd3ab(0x1e5)](this[_0x2bd3ab(0x1e0)]()),this[_0x2bd3ab(0x1c8)](_0x2bd3ab(0x1ac))['to'](this[_0x2bd3ab(0x1b1)][_0x2bd3ab(0x1a4)],_0x2bd3ab(0x1ac));}[_0x388858(0x172)](){const _0x7e2870=_0x388858;super[_0x7e2870(0x172)](),this[_0x7e2870(0x142)]&&clearInterval(this[_0x7e2870(0x142)]);}[_0x388858(0x170)](_0x2aa0fb){const _0x5c045f=_0x388858,_0x5516ad=this[_0x5c045f(0x14f)][_0x5c045f(0x1ba)][_0x5c045f(0x162)](_0x5c045f(0x1dc))??_0xec21f(this[_0x5c045f(0x14f)][_0x5c045f(0x15b)],_0x5c045f(0x143));this[_0x5c045f(0x1b1)][_0x5c045f(0x13b)][_0x5c045f(0x185)](),this[_0x5c045f(0x1b1)][_0x5c045f(0x1a4)][_0x5c045f(0x1d8)](),this[_0x5c045f(0x1b1)][_0x5c045f(0x1a4)][_0x5c045f(0x1d7)](_0x2aa0fb[_0x5c045f(0x1e1)],!this[_0x5c045f(0x14f)][_0x5c045f(0x1ba)][_0x5c045f(0x162)](_0x5c045f(0x16a))),this[_0x5c045f(0x18d)]({'id':_0x5c045f(0x163),'staticMessage':_0x5516ad}),this[_0x5c045f(0x1e8)](_0x5c045f(0x1ad));}[_0x388858(0x18d)]({id:_0x3e6c50,staticMessage:_0x2e640b}){const _0x157eb6=_0x388858;this[_0x157eb6(0x1b1)][_0x157eb6(0x13b)][_0x157eb6(0x192)](_0x157eb6(0x156),{'id':_0x3e6c50,'initialContent':_0x157eb6(0x154)+_0x2e640b+_0x157eb6(0x14d)});}[_0x388858(0x159)](_0x94e47d){const _0x31075a=_0x388858,_0x37d1a5=_0x94e47d[_0x31075a(0x1e6)]?.[_0x31075a(0x1c7)]||_0x94e47d[_0x31075a(0x195)];this[_0x31075a(0x1b1)][_0x31075a(0x13b)][_0x31075a(0x192)](_0x31075a(0x1a3),{'contextItems':Array[_0x31075a(0x1a5)](_0x94e47d[_0x31075a(0x146)][_0x31075a(0x140)]()),'initialContent':_0x31075a(0x154)+_0x37d1a5+_0x31075a(0x14d),'id':_0x94e47d['id']});}[_0x388858(0x1a1)]({errorMessage:_0x4fc995,id:_0x4fa47a}){const _0x547947=_0x388858;this[_0x547947(0x1b1)][_0x547947(0x13b)][_0x547947(0x192)](_0x547947(0x145),{'initialContent':_0x547947(0x154)+_0x4fc995+_0x547947(0x14d),'id':_0x4fa47a});}[_0x388858(0x1a0)](_0x287a77){const _0x3472e2=_0x388858;return this[_0x3472e2(0x14e)][_0x3472e2(0x1e7)](async()=>{const _0x3a9102=_0x3472e2;this[_0x3a9102(0x1b1)][_0x3a9102(0x13b)][_0x3a9102(0x192)](_0x3a9102(0x156),{'id':_0x287a77[_0x3a9102(0x181)]+':'+_0x287a77['id']}),this[_0x3a9102(0x13f)]();});}async[_0x388858(0x183)](_0x48ab6c){const _0x3565e1=_0x388858,_0x24a422=_0x3e26c0(this[_0x3565e1(0x14f)]);let _0x3136bb=_0x24a422[_0x3565e1(0x1ba)][_0x3565e1(0x162)](_0x3565e1(0x1c9))||[..._0x2e1133];if(_0x24a422[_0x3565e1(0x1db)][_0x3565e1(0x1e9)](_0x3565e1(0x196))){if(!this[_0x3565e1(0x1e2)]){this[_0x3565e1(0x1e2)]=!0x0;const _0x521ee4=_0x24a422[_0x3565e1(0x1be)][_0x3565e1(0x162)](_0x3565e1(0x1d3));this[_0x3565e1(0x1b1)][_0x3565e1(0x13b)][_0x3565e1(0x1c8)](_0x3565e1(0x1ce))['to'](_0x521ee4,_0x3565e1(0x160));}}else _0x3136bb=_0x3136bb[_0x3565e1(0x1e3)](_0x212ca7=>_0x3565e1(0x1a2)!=_0x212ca7);return this[_0x3565e1(0x14e)][_0x3565e1(0x1e7)](async()=>{const _0x1ad82d=_0x3565e1;this[_0x1ad82d(0x1b1)][_0x1ad82d(0x13b)][_0x1ad82d(0x192)](_0x1ad82d(0x165),{'id':_0x48ab6c[_0x1ad82d(0x181)]+':'+_0x48ab6c['id'],'areActionsDisabled':_0x48ab6c[_0x1ad82d(0x1b0)],'showDiff':this[_0x1ad82d(0x17c)],'availableActions':_0x3136bb}),this[_0x1ad82d(0x13f)]();});}[_0x388858(0x15e)](_0x3c9b1a,_0x24208f){const _0x137c0e=_0x388858,_0x54b3e1=this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x15a)][_0x137c0e(0x1d9)];if(_0x54b3e1 instanceof _0x5caea6)return this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x15a)][_0x137c0e(0x16d)](_0x54b3e1),void this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x192)](_0x137c0e(0x1eb),{'id':_0x3c9b1a['id'],'capabilities':{'isWebSearchEnabled':_0x54b3e1[_0x137c0e(0x16c)][_0x137c0e(0x188)]||_0x24208f[_0x137c0e(0x188)],'isReasoningEnabled':_0x54b3e1[_0x137c0e(0x16c)][_0x137c0e(0x17e)]||_0x24208f[_0x137c0e(0x17e)]}});this[_0x137c0e(0x1b1)][_0x137c0e(0x13b)][_0x137c0e(0x192)](_0x137c0e(0x1eb),{'id':_0x3c9b1a['id'],'capabilities':_0x24208f});}async[_0x388858(0x187)](_0x93ed6e,_0x492268){const _0x5ca6bf=_0x388858;let _0x11cebe;return await this[_0x5ca6bf(0x14e)][_0x5ca6bf(0x1e7)](async()=>{const _0xc90f0f=_0x5ca6bf;_0x11cebe=this[_0xc90f0f(0x1b1)][_0xc90f0f(0x13b)][_0xc90f0f(0x192)](_0xc90f0f(0x171),{'content':_0x93ed6e,'id':_0x492268});}),_0x11cebe;}[_0x388858(0x1bf)](_0x8360ef){const _0x131f8e=_0x388858;this[_0x131f8e(0x1b1)][_0x131f8e(0x13b)][_0x131f8e(0x150)](_0x8360ef);}[_0x388858(0x169)](_0x5b1689){const _0x20b72d=_0x388858;return this[_0x20b72d(0x1b1)][_0x20b72d(0x13b)][_0x20b72d(0x1b8)](_0x5b1689);}[_0x388858(0x17a)](_0x1f8682){const _0x85d518=_0x388858,_0x20f99c=this[_0x85d518(0x1b1)][_0x85d518(0x13b)][_0x85d518(0x15a)][_0x85d518(0x151)](_0x949c68=>_0x949c68[_0x85d518(0x164)]['id']==_0x1f8682['id']&&_0x949c68 instanceof _0x5caea6);_0x20f99c&&_0x20f99c[_0x85d518(0x1c4)](_0x85d518(0x1cc),_0x1f8682[_0x85d518(0x1cc)]);}async[_0x388858(0x182)](_0x37f81c){const _0x13b2c2=_0x388858,_0x121838=_0x37f81c[_0x13b2c2(0x1a7)]||this[_0x13b2c2(0x1c0)];return this[_0x13b2c2(0x14e)][_0x13b2c2(0x1e7)](async _0x31823a=>{const _0x4a93a5=_0x13b2c2;await this[_0x4a93a5(0x1b1)][_0x4a93a5(0x13b)][_0x4a93a5(0x173)]({..._0x37f81c,'abortSignal':_0x31823a,'renderingStrategy':_0x121838}),_0x37f81c[_0x4a93a5(0x1bc)]&&this[_0x4a93a5(0x1a8)](_0x37f81c['id']);});}[_0x388858(0x1c3)](_0x53bf72,_0x447de3){const _0x111c1b=_0x388858;this[_0x111c1b(0x1b1)][_0x111c1b(0x13b)][_0x111c1b(0x18b)](_0x53bf72,_0x447de3);}async[_0x388858(0x1b4)](_0x185be4){const _0x2a25e6=_0x388858,_0x26ce67=_0x185be4[_0x2a25e6(0x1a7)]||this[_0x2a25e6(0x1c0)];return this[_0x2a25e6(0x14e)][_0x2a25e6(0x1e7)](async _0x7522ba=>{const _0x5c4b22=_0x2a25e6;await this[_0x5c4b22(0x1b1)][_0x5c4b22(0x13b)][_0x5c4b22(0x198)]({..._0x185be4,'abortSignal':_0x7522ba,'renderingStrategy':_0x26ce67}),_0x185be4[_0x5c4b22(0x1bc)]&&this[_0x5c4b22(0x1a8)](_0x185be4['id']);});}[_0x388858(0x176)](_0x2fc971){const _0x3c80e8=_0x388858;this[_0x3c80e8(0x1b1)][_0x3c80e8(0x13b)][_0x3c80e8(0x138)](_0x2fc971);}[_0x388858(0x19e)](_0x588208){const _0x4ad2c1=_0x388858;this[_0x4ad2c1(0x1b1)][_0x4ad2c1(0x13b)][_0x4ad2c1(0x167)](_0x588208);}[_0x388858(0x1a8)](_0x13728f){const _0x15110d=_0x388858;this[_0x15110d(0x1b1)][_0x15110d(0x13b)][_0x15110d(0x1c6)](_0x13728f);}[_0x388858(0x155)](_0x489e8c){const _0x83ce01=_0x388858;this[_0x83ce01(0x1b1)][_0x83ce01(0x13b)][_0x83ce01(0x1c1)]()[_0x83ce01(0x1e3)](_0x4127c4=>_0x4127c4[_0x83ce01(0x157)](_0x489e8c))[_0x83ce01(0x1ae)](_0xdf2829=>this[_0x83ce01(0x1b1)][_0x83ce01(0x13b)][_0x83ce01(0x150)](_0xdf2829));}[_0x388858(0x147)](){const _0x176f7c=_0x388858,_0x409c41=this[_0x176f7c(0x13d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x176f7c(0x13e)](_0x409c41),this[_0x176f7c(0x1b1)][_0x176f7c(0x1a4)][_0x176f7c(0x17f)](!this[_0x176f7c(0x14f)][_0x176f7c(0x1ba)][_0x176f7c(0x162)](_0x176f7c(0x16a))),this[_0x176f7c(0x16f)]=!0x0,this[_0x176f7c(0x1b1)][_0x176f7c(0x13b)][_0x176f7c(0x191)]();}[_0x388858(0x1de)](_0x1f766d){const _0x42f688=_0x388858;this[_0x42f688(0x14e)][_0x42f688(0x1d1)](),this[_0x42f688(0x1b1)][_0x42f688(0x13b)][_0x42f688(0x1c1)]()[_0x42f688(0x1e3)](_0x35c9e1=>_0x35c9e1[_0x42f688(0x157)](_0x1f766d['id']))[_0x42f688(0x1ae)](_0x6fa94f=>this[_0x42f688(0x1a8)](_0x6fa94f)),this[_0x42f688(0x16f)]=!0x1,this[_0x42f688(0x1b1)][_0x42f688(0x13b)][_0x42f688(0x15c)]();}async[_0x388858(0x19a)](){const _0x2af2e8=_0x388858;return this[_0x2af2e8(0x14e)][_0x2af2e8(0x139)][_0x2af2e8(0x1b7)](()=>{const _0x2beb14=_0x2af2e8;this[_0x2beb14(0x16f)]=!0x1,this[_0x2beb14(0x1b1)][_0x2beb14(0x13b)][_0x2beb14(0x15c)]();});}[_0x388858(0x17d)](_0x14e1c0,_0x1c99e0){const _0x23e146=_0x388858;this[_0x23e146(0x1b1)][_0x23e146(0x1a4)][_0x23e146(0x17d)](_0x14e1c0,_0x1c99e0);}[_0x388858(0x199)](_0x1ddfd1){const _0x4e4e76=_0x388858;this[_0x4e4e76(0x1b1)][_0x4e4e76(0x1a4)][_0x4e4e76(0x199)](_0x1ddfd1);}[_0x388858(0x166)](_0x4e6647,_0x4afb17){const _0x1f287f=_0x388858;this[_0x1f287f(0x1b1)][_0x1f287f(0x1a4)][_0x1f287f(0x166)](_0x4e6647,_0x4afb17);}[_0x388858(0x1d6)](_0xe3a981){const _0x2ed8a2=_0x388858;this[_0x2ed8a2(0x1b1)][_0x2ed8a2(0x1a4)][_0x2ed8a2(0x1d6)](_0xe3a981);}[_0x388858(0x180)](_0xd2bd5c){const _0x1590c2=_0x388858;this[_0x1590c2(0x1b1)][_0x1590c2(0x1a4)][_0x1590c2(0x180)](_0xd2bd5c);}[_0x388858(0x13c)](){const _0x182ac8=_0x388858;this[_0x182ac8(0x1b1)][_0x182ac8(0x1a4)][_0x182ac8(0x13c)]();}[_0x388858(0x16b)](){const _0x1d78e9=_0x388858;this[_0x1d78e9(0x1b1)][_0x1d78e9(0x1a4)][_0x1d78e9(0x16b)]();}[_0x388858(0x153)](_0x20e023,_0x4adb9c,_0x3405da){const _0x42e4e5=_0x388858;this[_0x42e4e5(0x1b1)][_0x42e4e5(0x1a4)][_0x42e4e5(0x153)](_0x20e023,_0x4adb9c,_0x3405da);}[_0x388858(0x1cd)](){const _0x1a9443=_0x388858;this[_0x1a9443(0x1b1)][_0x1a9443(0x1a4)][_0x1a9443(0x1cd)](),this[_0x1a9443(0x1b1)][_0x1a9443(0x1a4)][_0x1a9443(0x1e5)](this[_0x1a9443(0x1e0)]());}[_0x388858(0x179)](_0x5e93b7){const _0x94f86b=_0x388858;this[_0x94f86b(0x1b1)][_0x94f86b(0x1a4)][_0x94f86b(0x179)](_0x5e93b7);}[_0x388858(0x1d2)](_0x15949b){const _0x1db879=_0x388858;this[_0x1db879(0x1b1)][_0x1db879(0x1a4)][_0x1db879(0x19f)](_0x15949b[_0x1db879(0x188)]),this[_0x1db879(0x1b1)][_0x1db879(0x1a4)][_0x1db879(0x1dd)](_0x15949b[_0x1db879(0x17e)]),this[_0x1db879(0x1b1)][_0x1db879(0x1a4)][_0x1db879(0x1e5)](this[_0x1db879(0x1e0)](_0x15949b));}[_0x388858(0x175)](_0x2c72e5,_0x2bd34b){const _0x411aca=_0x388858;this[_0x411aca(0x1b1)][_0x411aca(0x1a4)][_0x411aca(0x1d0)](_0x2c72e5),_0x2bd34b&&this[_0x411aca(0x1b1)][_0x411aca(0x1a4)][_0x411aca(0x17f)](!0x1);}[_0x388858(0x168)](_0x26aad1){const _0x291ff7=_0x388858;this[_0x291ff7(0x1c0)]=_0x26aad1;}[_0x388858(0x1ab)](_0x1206ff){const _0x444d73=_0x388858;this[_0x444d73(0x1b1)][_0x444d73(0x13b)][_0x444d73(0x1ab)](_0x1206ff);}[_0x388858(0x19c)](){const _0x1895c4=_0x388858;this[_0x1895c4(0x1da)](_0xec21f(this[_0x1895c4(0x14f)][_0x1895c4(0x15b)],_0x1895c4(0x19d)));}[_0x388858(0x1da)](_0x6527a4,_0x686c5f=!0x1){const _0x25ce71=_0x388858;if(_0x686c5f&&!_0x9a3834()&&_0x6527a4[_0x25ce71(0x144)])return this[_0x25ce71(0x1b1)][_0x25ce71(0x13a)][_0x25ce71(0x18c)]='',void this[_0x25ce71(0x1b9)](_0x6527a4);this[_0x25ce71(0x1b1)][_0x25ce71(0x13a)][_0x25ce71(0x18c)]=_0x6527a4;}[_0x388858(0x13e)](_0x2ed891){const _0x5ef8b5=_0x388858;this[_0x5ef8b5(0x1b1)][_0x5ef8b5(0x13b)][_0x5ef8b5(0x13e)](_0x2ed891);}[_0x388858(0x13f)](){const _0x27d80c=_0x388858;this[_0x27d80c(0x1b1)][_0x27d80c(0x13b)][_0x27d80c(0x13e)]('');}[_0x388858(0x1b9)](_0x1b5771){const _0x284cc9=_0x388858;let _0x13ac7c=0x0;clearInterval(this[_0x284cc9(0x142)]),this[_0x284cc9(0x142)]=setInterval(()=>{const _0x27b327=_0x284cc9;this[_0x27b327(0x1b1)][_0x27b327(0x13a)][_0x27b327(0x18c)]=this[_0x27b327(0x1b1)][_0x27b327(0x13a)][_0x27b327(0x18c)]+_0x1b5771[_0x13ac7c],_0x13ac7c++,_0x13ac7c===_0x1b5771[_0x27b327(0x144)]&&clearInterval(this[_0x27b327(0x142)]);},0x1e);}[_0x388858(0x1af)](_0x5a7c23){const _0x396808=_0x388858;this[_0x396808(0x1b1)][_0x396808(0x13a)][_0x396808(0x184)]=_0x5a7c23;}[_0x388858(0x13d)](_0x57b856){const _0x2559c1=_0x388858;return _0x57b856[_0x2559c1(0x188)]&&_0x57b856[_0x2559c1(0x17e)]?_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x158)):_0x57b856[_0x2559c1(0x188)]?_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x1b2)):_0x57b856[_0x2559c1(0x17e)]?_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x1df)):_0xec21f(this[_0x2559c1(0x14f)][_0x2559c1(0x15b)],_0x2559c1(0x14c));}[_0x388858(0x1e0)](_0x4a5eea){const _0x16e6de=_0x388858;return _0x4a5eea?_0x4a5eea[_0x16e6de(0x188)]&&_0x4a5eea[_0x16e6de(0x17e)]?_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x18a)):_0x4a5eea[_0x16e6de(0x188)]?_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x193)):_0x4a5eea[_0x16e6de(0x17e)]?_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x1bd)):_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x1d5)):_0xec21f(this[_0x16e6de(0x14f)][_0x16e6de(0x15b)],_0x16e6de(0x1d5));}[_0x388858(0x1c2)](_0x31f975,_0x5d5022,_0x14080b,_0x967570){const _0x313fc0=_0x388858;this[_0x313fc0(0x1b1)][_0x313fc0(0x1c2)](_0x31f975,_0x5d5022,_0x14080b,_0x967570);}[_0x388858(0x1ca)](_0x1fc225){const _0xa06ced=_0x388858;this[_0xa06ced(0x1b1)][_0xa06ced(0x1ca)](_0x1fc225);}[_0x388858(0x189)](_0x5042f9){const _0x3eb109=_0x388858;this[_0x3eb109(0x1b1)][_0x3eb109(0x1a4)][_0x3eb109(0x189)](_0x5042f9);}[_0x388858(0x141)](_0x494e72=!0x1){const _0x4617c3=_0x388858;this[_0x4617c3(0x1b1)][_0x4617c3(0x1a4)][_0x4617c3(0x141)](_0x494e72);}[_0x388858(0x18e)](_0x5d4848,_0x44f563){const _0x371926=_0x388858;this[_0x371926(0x1b1)][_0x371926(0x13b)][_0x371926(0x186)](_0x5d4848,_0x44f563);}[_0x388858(0x191)](){const _0x308a9a=_0x388858;this[_0x308a9a(0x1b1)][_0x308a9a(0x13b)][_0x308a9a(0x191)]();}[_0x388858(0x17b)](){const _0x3f2b01=_0x388858;this[_0x3f2b01(0x1b1)][_0x3f2b01(0x1a4)][_0x3f2b01(0x1b5)]=!0x0;}[_0x388858(0x197)](){const _0x3196f4=_0x388858;this[_0x3196f4(0x1b1)][_0x3196f4(0x1a4)][_0x3196f4(0x1b5)]=!0x1;}}
|
|
23
|
+
const _0x371550=_0x2cfd;(function(_0x2f0c50,_0x3bc0ff){const _0x5cdb94=_0x2cfd,_0x403c23=_0x2f0c50();while(!![]){try{const _0x49784f=parseInt(_0x5cdb94(0x281))/0x1*(-parseInt(_0x5cdb94(0x1fe))/0x2)+parseInt(_0x5cdb94(0x1e3))/0x3*(-parseInt(_0x5cdb94(0x206))/0x4)+-parseInt(_0x5cdb94(0x257))/0x5*(parseInt(_0x5cdb94(0x1fa))/0x6)+-parseInt(_0x5cdb94(0x21d))/0x7*(parseInt(_0x5cdb94(0x1f1))/0x8)+parseInt(_0x5cdb94(0x21f))/0x9+-parseInt(_0x5cdb94(0x23f))/0xa+parseInt(_0x5cdb94(0x20c))/0xb;if(_0x49784f===_0x3bc0ff)break;else _0x403c23['push'](_0x403c23['shift']());}catch(_0x3dfe9c){_0x403c23['push'](_0x403c23['shift']());}}}(_0x6dc5,0x5987a));import{ContextPlugin as _0x1d0f1f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x5d2f19}from'ckeditor5/src/utils.js';import{AIChatView as _0x3a4af7}from'./ui/aichatview.js';import{AITabs as _0xac0f71}from'../aitabs/aitabs.js';function _0x6dc5(){const _0x298d5a=['AI_CHAT_FEED_LOADING_MESSAGE_REASONING','custom-element','closeSourceResourceBalloon','clear','AI_CHAT_WELCOME_MESSAGE','isReasoningEnabled','clearPendingContextUI','enableControls','_interactionPromiseResolver','stopInteraction','chatControls','_titleAnimationInterval','63400jwgwBc','disableControls','isOfficialPlugin','addFeedItemUserMessage','setConversationTitle','find','_promiseQueue','isVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','_animateConversationTitle','interaction-header','updateSuggestionPartState','scrollToSuggestion','isBusy','updateFeedItemAIReplySources','updateFeedItemAIReplySuggestionContent','isDisabled','fire','isTrackChangesOn','chatHeader','isModelAvailable','isPremiumPlugin','setReasoning','addItem','124720UInRwL','isPending','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','displayedPrompt','ai.chat.welcomeMessage','get','from','removeFeedItem','updateFeedItemAIReplySuggestionPartState','prepareLoadingMessage','updateReplyItem','addFeedItemAISuggestion','context','setWebSearch','setContextItemLoading','delegate','contextItems','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','capabilities','ai.chat.context.searchInputVisibleFrom','addFeedInteractionHeader','config','removeItem','showDiff','addTab','setModelList','addFeedItemError','AI_CHAT_HEADING','chat','resetMessageInput','startInteraction','filter','abort','toggleLoadingSkeleton','attributes','updateCapabilities','AIChatUI','children','setFeedItemAIReplySuggestionPartActive','hasItem','remove','markFeedItemAsDone','7624XvdaBD','setConversationContext','forEach','updateWebSources','ai.models.showModelSelector','trackChanges','bind','addContextItem','populateSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','<p>','isWebSearchEnabled','interactionId','options','toggleSuggestionDisplayMode','createConversation','finishInteraction','values','areActionsDisabled','hasFeedItem','clearLoadingMessage','</p>','2658wEGjlr','setSelectedModel','last','addFeedItemAIReply','queueEmptyPromise','showResizeButton','view','setModel','plugins','isMaximized','ai.availableReplyActions','setPromptInputValue','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','insertSuggestion','3518072SDSHhu','_view','error-message','resetConversationTitle','ai-suggestion-reply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','stopAutoScroll','commands','ai-reply','24ZWNeOe','destroy','addFeedItemCustomElement','setSuggestionPartActive','78vWwQHU','TrackChanges','markItemAsDone','has','userMessage','requires','isLoading','streaming','128UWfLZs','label','_getInputPlaceholder','value','updateSuggestionItem','startsWith','11516725jOvhfJ','conversation-start','length','_isTrackChangesCommandValueBound','clearConversationContextUI','setLoadingMessage','updateResourceState','setAddContextOptions','feedItemRenderingStrategy','conversationCreated','renderingStrategy','removeContextItem','chatFeed','availableModels','startAutoScroll','setInputPlaceholder','addFeedItemStaticMessage','7iAwUas','pluginName','1721718pMnbGq','isDone','scrollFeedToSuggestion','set','enqueue','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplyContent','removeFeedInteraction','setIsMaximized','setFeedItemRenderingStrategy','focusPromptInput','updateFeedInteractionHeader','disableModelSelector','getItemIds','locale','setIsUploadInProgress','then','AITabs','user-message'];_0x6dc5=function(){return _0x298d5a;};return _0x6dc5();}import{getTranslation as _0x1aecdb}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3c43f7}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x19b61b}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2cfd(_0x358a1a,_0x38994f){const _0x6dc5e9=_0x6dc5();return _0x2cfd=function(_0x2cfd0c,_0xdb29cb){_0x2cfd0c=_0x2cfd0c-0x1e1;let _0x4db65e=_0x6dc5e9[_0x2cfd0c];return _0x4db65e;},_0x2cfd(_0x358a1a,_0x38994f);}import{PromiseQueue as _0xce8bbf}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x52cbbc}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0xd538e}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5970c4}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1d0f1f{static get[_0x371550(0x203)](){return[_0xac0f71];}[_0x371550(0x1f2)];static get[_0x371550(0x21e)](){const _0x56ab75=_0x371550;return _0x56ab75(0x27b);}static get[_0x371550(0x241)](){return!0x0;}static get[_0x371550(0x254)](){return!0x0;}[_0x371550(0x214)]=_0x371550(0x205);[_0x371550(0x26e)]=!0x0;[_0x371550(0x245)];[_0x371550(0x23b)];[_0x371550(0x23e)]=void 0x0;[_0x371550(0x20f)]=!0x1;constructor(_0xf4c829){const _0xea671=_0x371550;super(_0xf4c829);const _0x1ff5b1=this[_0xea671(0x263)][_0xea671(0x1eb)][_0xea671(0x25c)](_0xea671(0x231));this[_0xea671(0x222)](_0xea671(0x24c),!0x1),this[_0xea671(0x245)]=new _0xce8bbf(),this[_0xea671(0x1f2)]=new _0x3a4af7(this[_0xea671(0x263)][_0xea671(0x22e)],{'showResizeButton':_0x1ff5b1[_0xea671(0x1e8)],'contextResourcesSearchInputVisibleFrom':this[_0xea671(0x263)][_0xea671(0x26c)][_0xea671(0x25c)](_0xea671(0x26a))}),this[_0xea671(0x1f2)][_0xea671(0x266)](..._0x52cbbc)['to'](this),this[_0xea671(0x1f2)]['on'](_0xea671(0x28f),(_0x3df196,{showDiff:_0x5a1b55})=>{const _0x5aa1b6=_0xea671;this[_0x5aa1b6(0x26e)]=_0x5a1b55;}),_0x1ff5b1[_0xea671(0x1e9)][_0xea671(0x26f)]({'id':_0xea671(0x273),'buttonLabel':_0x1aecdb(this[_0xea671(0x263)][_0xea671(0x22e)],_0xea671(0x272)),'buttonIcon':_0x3c43f7,'order':0x0,'content':this[_0xea671(0x1f2)]}),this[_0xea671(0x1f2)][_0xea671(0x23d)][_0xea671(0x287)](_0xea671(0x204))['to'](this,_0xea671(0x24c),_0x2cde52=>_0x2cde52),this[_0xea671(0x1f2)][_0xea671(0x218)][_0xea671(0x287)](_0xea671(0x258))['to'](this,_0xea671(0x24c),_0x2322a0=>_0x2322a0),this[_0xea671(0x1f2)][_0xea671(0x23d)][_0xea671(0x21b)](this[_0xea671(0x208)]()),this[_0xea671(0x287)](_0xea671(0x253))['to'](this[_0xea671(0x1f2)][_0xea671(0x23d)],_0xea671(0x253));}[_0x371550(0x1fb)](){const _0x4f6187=_0x371550;super[_0x4f6187(0x1fb)](),this[_0x4f6187(0x23e)]&&clearInterval(this[_0x4f6187(0x23e)]);}[_0x371550(0x290)](_0x2fa347){const _0x237938=_0x371550,_0x3b6f58=this[_0x237938(0x263)][_0x237938(0x26c)][_0x237938(0x25c)](_0x237938(0x25b))??_0x1aecdb(this[_0x237938(0x263)][_0x237938(0x22e)],_0x237938(0x237));this[_0x237938(0x1f2)][_0x237938(0x218)][_0x237938(0x236)](),this[_0x237938(0x1f2)][_0x237938(0x23d)][_0x237938(0x224)](),this[_0x237938(0x1f2)][_0x237938(0x23d)][_0x237938(0x270)](_0x2fa347[_0x237938(0x219)],!this[_0x237938(0x263)][_0x237938(0x26c)][_0x237938(0x25c)](_0x237938(0x285))),this[_0x237938(0x21c)]({'id':_0x237938(0x20d),'staticMessage':_0x3b6f58}),this[_0x237938(0x250)](_0x237938(0x215));}[_0x371550(0x21c)]({id:_0x533aa4,staticMessage:_0x1fa86b}){const _0x6e5670=_0x371550;this[_0x6e5670(0x1f2)][_0x6e5670(0x218)][_0x6e5670(0x256)](_0x6e5670(0x1f9),{'id':_0x533aa4,'initialContent':_0x6e5670(0x28b)+_0x1fa86b+_0x6e5670(0x1e2)});}[_0x371550(0x242)](_0x31f19f){const _0x2091c3=_0x371550,_0x456845=_0x31f19f[_0x2091c3(0x279)]?.[_0x2091c3(0x25a)]||_0x31f19f[_0x2091c3(0x202)];this[_0x2091c3(0x1f2)][_0x2091c3(0x218)][_0x2091c3(0x256)](_0x2091c3(0x232),{'contextItems':Array[_0x2091c3(0x25d)](_0x31f19f[_0x2091c3(0x267)][_0x2091c3(0x292)]()),'initialContent':_0x2091c3(0x28b)+_0x456845+_0x2091c3(0x1e2),'id':_0x31f19f['id']});}[_0x371550(0x271)]({errorMessage:_0x3297a4,id:_0xea70a0}){const _0x502749=_0x371550;this[_0x502749(0x1f2)][_0x502749(0x218)][_0x502749(0x256)](_0x502749(0x1f3),{'initialContent':_0x502749(0x28b)+_0x3297a4+_0x502749(0x1e2),'id':_0xea70a0});}[_0x371550(0x1e6)](_0x53ca86){const _0x138e30=_0x371550;return this[_0x138e30(0x245)][_0x138e30(0x223)](async()=>{const _0x5be332=_0x138e30;this[_0x5be332(0x1f2)][_0x5be332(0x218)][_0x5be332(0x256)](_0x5be332(0x1f9),{'id':_0x53ca86[_0x5be332(0x28d)]+':'+_0x53ca86['id']}),this[_0x5be332(0x1e1)]();});}async[_0x371550(0x262)](_0x5393ef){const _0x2af656=_0x371550,_0x522fd9=_0xd538e(this[_0x2af656(0x263)]);let _0x1a813c=_0x522fd9[_0x2af656(0x26c)][_0x2af656(0x25c)](_0x2af656(0x1ed))||[..._0x5970c4];if(_0x522fd9[_0x2af656(0x1eb)][_0x2af656(0x201)](_0x2af656(0x1ff))){if(!this[_0x2af656(0x20f)]){this[_0x2af656(0x20f)]=!0x0;const _0x11b452=_0x522fd9[_0x2af656(0x1f8)][_0x2af656(0x25c)](_0x2af656(0x286));this[_0x2af656(0x1f2)][_0x2af656(0x218)][_0x2af656(0x287)](_0x2af656(0x251))['to'](_0x11b452,_0x2af656(0x209));}}else _0x1a813c=_0x1a813c[_0x2af656(0x276)](_0xa7ee81=>_0x2af656(0x1f0)!=_0xa7ee81);return this[_0x2af656(0x245)][_0x2af656(0x223)](async()=>{const _0x4c80aa=_0x2af656;this[_0x4c80aa(0x1f2)][_0x4c80aa(0x218)][_0x4c80aa(0x256)](_0x4c80aa(0x1f5),{'id':_0x5393ef[_0x4c80aa(0x28d)]+':'+_0x5393ef['id'],'areActionsDisabled':_0x5393ef[_0x4c80aa(0x293)],'showDiff':this[_0x4c80aa(0x26e)],'availableActions':_0x1a813c}),this[_0x4c80aa(0x1e1)]();});}[_0x371550(0x26b)](_0xdc8df3,_0x3c5664){const _0x2bd4b0=_0x371550,_0x30329d=this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x27c)][_0x2bd4b0(0x1e5)];if(_0x30329d instanceof _0x19b61b)return this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x27c)][_0x2bd4b0(0x27f)](_0x30329d),void this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x256)](_0x2bd4b0(0x249),{'id':_0xdc8df3['id'],'capabilities':{'isWebSearchEnabled':_0x30329d[_0x2bd4b0(0x269)][_0x2bd4b0(0x28c)]||_0x3c5664[_0x2bd4b0(0x28c)],'isReasoningEnabled':_0x30329d[_0x2bd4b0(0x269)][_0x2bd4b0(0x238)]||_0x3c5664[_0x2bd4b0(0x238)]}});this[_0x2bd4b0(0x1f2)][_0x2bd4b0(0x218)][_0x2bd4b0(0x256)](_0x2bd4b0(0x249),{'id':_0xdc8df3['id'],'capabilities':_0x3c5664});}async[_0x371550(0x1fc)](_0x15637e,_0x4e268f){const _0x49795f=_0x371550;let _0x20d5a9;return await this[_0x49795f(0x245)][_0x49795f(0x223)](async()=>{const _0x18f6ab=_0x49795f;_0x20d5a9=this[_0x18f6ab(0x1f2)][_0x18f6ab(0x218)][_0x18f6ab(0x256)](_0x18f6ab(0x234),{'content':_0x15637e,'id':_0x4e268f});}),_0x20d5a9;}[_0x371550(0x25e)](_0x58bd3e){const _0x218e91=_0x371550;this[_0x218e91(0x1f2)][_0x218e91(0x218)][_0x218e91(0x26d)](_0x58bd3e);}[_0x371550(0x294)](_0x585937){const _0x389a2b=_0x371550;return this[_0x389a2b(0x1f2)][_0x389a2b(0x218)][_0x389a2b(0x27e)](_0x585937);}[_0x371550(0x22b)](_0x1608da){const _0x5ebcc5=_0x371550,_0x254200=this[_0x5ebcc5(0x1f2)][_0x5ebcc5(0x218)][_0x5ebcc5(0x27c)][_0x5ebcc5(0x244)](_0x1d6a5c=>_0x1d6a5c[_0x5ebcc5(0x28e)]['id']==_0x1608da['id']&&_0x1d6a5c instanceof _0x19b61b);_0x254200&&_0x254200[_0x5ebcc5(0x222)](_0x5ebcc5(0x246),_0x1608da[_0x5ebcc5(0x246)]);}async[_0x371550(0x226)](_0x543292){const _0x521aaa=_0x371550,_0x42f198=_0x543292[_0x521aaa(0x216)]||this[_0x521aaa(0x214)];return this[_0x521aaa(0x245)][_0x521aaa(0x223)](async _0x26ab6e=>{const _0x398737=_0x521aaa;await this[_0x398737(0x1f2)][_0x398737(0x218)][_0x398737(0x261)]({..._0x543292,'abortSignal':_0x26ab6e,'renderingStrategy':_0x42f198}),_0x543292[_0x398737(0x220)]&&this[_0x398737(0x280)](_0x543292['id']);});}[_0x371550(0x24d)](_0x58b401,_0x1bf69c){const _0x2d66b0=_0x371550;this[_0x2d66b0(0x1f2)][_0x2d66b0(0x218)][_0x2d66b0(0x284)](_0x58b401,_0x1bf69c);}async[_0x371550(0x24e)](_0x274bd4){const _0x4a12ac=_0x371550,_0x210f99=_0x274bd4[_0x4a12ac(0x216)]||this[_0x4a12ac(0x214)];return this[_0x4a12ac(0x245)][_0x4a12ac(0x223)](async _0x408d55=>{const _0x350481=_0x4a12ac;await this[_0x350481(0x1f2)][_0x350481(0x218)][_0x350481(0x20a)]({..._0x274bd4,'abortSignal':_0x408d55,'renderingStrategy':_0x210f99}),_0x274bd4[_0x350481(0x220)]&&this[_0x350481(0x280)](_0x274bd4['id']);});}[_0x371550(0x25f)](_0xf64b5){const _0x5cc946=_0x371550;this[_0x5cc946(0x1f2)][_0x5cc946(0x218)][_0x5cc946(0x24a)](_0xf64b5);}[_0x371550(0x27d)](_0x5f0019){const _0x21d89b=_0x371550;this[_0x21d89b(0x1f2)][_0x21d89b(0x218)][_0x21d89b(0x1fd)](_0x5f0019);}[_0x371550(0x280)](_0x3ea85c){const _0x4d4189=_0x371550;this[_0x4d4189(0x1f2)][_0x4d4189(0x218)][_0x4d4189(0x200)](_0x3ea85c);}[_0x371550(0x227)](_0x4bf460){const _0x402899=_0x371550;this[_0x402899(0x1f2)][_0x402899(0x218)][_0x402899(0x22d)]()[_0x402899(0x276)](_0x1c8554=>_0x1c8554[_0x402899(0x20b)](_0x4bf460))[_0x402899(0x283)](_0x42c989=>this[_0x402899(0x1f2)][_0x402899(0x218)][_0x402899(0x26d)](_0x42c989));}[_0x371550(0x275)](){const _0x1e4851=_0x371550,_0x10cbe8=this[_0x1e4851(0x260)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x1e4851(0x211)](_0x10cbe8),this[_0x1e4851(0x1f2)][_0x1e4851(0x23d)][_0x1e4851(0x22c)](!this[_0x1e4851(0x263)][_0x1e4851(0x26c)][_0x1e4851(0x25c)](_0x1e4851(0x285))),this[_0x1e4851(0x24c)]=!0x0,this[_0x1e4851(0x1f2)][_0x1e4851(0x218)][_0x1e4851(0x21a)]();}[_0x371550(0x23c)](_0x322e76){const _0x303809=_0x371550;this[_0x303809(0x245)][_0x303809(0x277)](),this[_0x303809(0x1f2)][_0x303809(0x218)][_0x303809(0x22d)]()[_0x303809(0x276)](_0x5e53f2=>_0x5e53f2[_0x303809(0x20b)](_0x322e76['id']))[_0x303809(0x283)](_0x5c7660=>this[_0x303809(0x280)](_0x5c7660)),this[_0x303809(0x24c)]=!0x1,this[_0x303809(0x1f2)][_0x303809(0x218)][_0x303809(0x1f7)]();}async[_0x371550(0x291)](){const _0x4125df=_0x371550;return this[_0x4125df(0x245)][_0x4125df(0x1e7)][_0x4125df(0x230)](()=>{const _0xbb12dc=_0x4125df;this[_0xbb12dc(0x24c)]=!0x1,this[_0xbb12dc(0x1f2)][_0xbb12dc(0x218)][_0xbb12dc(0x1f7)]();});}[_0x371550(0x288)](_0x170a19,_0x1dda81){const _0x4871d2=_0x371550;this[_0x4871d2(0x1f2)][_0x4871d2(0x23d)][_0x4871d2(0x288)](_0x170a19,_0x1dda81);}[_0x371550(0x217)](_0x4bf696){const _0x22192f=_0x371550;this[_0x22192f(0x1f2)][_0x22192f(0x23d)][_0x22192f(0x217)](_0x4bf696);}[_0x371550(0x265)](_0x5a46cd,_0x154628){const _0xe7cbf7=_0x371550;this[_0xe7cbf7(0x1f2)][_0xe7cbf7(0x23d)][_0xe7cbf7(0x265)](_0x5a46cd,_0x154628);}[_0x371550(0x22f)](_0x17b056){const _0x8f1828=_0x371550;this[_0x8f1828(0x1f2)][_0x8f1828(0x23d)][_0x8f1828(0x22f)](_0x17b056);}[_0x371550(0x282)](_0x9f3262){const _0x38deac=_0x371550;this[_0x38deac(0x1f2)][_0x38deac(0x23d)][_0x38deac(0x282)](_0x9f3262);}[_0x371550(0x239)](){const _0x3f131f=_0x371550;this[_0x3f131f(0x1f2)][_0x3f131f(0x23d)][_0x3f131f(0x239)]();}[_0x371550(0x210)](){const _0x5b2b7a=_0x371550;this[_0x5b2b7a(0x1f2)][_0x5b2b7a(0x23d)][_0x5b2b7a(0x210)]();}[_0x371550(0x212)](_0x5304b8,_0x200473,_0x53f803){const _0x36b809=_0x371550;this[_0x36b809(0x1f2)][_0x36b809(0x23d)][_0x36b809(0x212)](_0x5304b8,_0x200473,_0x53f803);}[_0x371550(0x274)](){const _0x2aacd8=_0x371550;this[_0x2aacd8(0x1f2)][_0x2aacd8(0x23d)][_0x2aacd8(0x274)](),this[_0x2aacd8(0x1f2)][_0x2aacd8(0x23d)][_0x2aacd8(0x21b)](this[_0x2aacd8(0x208)]());}[_0x371550(0x213)](_0x325298){const _0x84c6b0=_0x371550;this[_0x84c6b0(0x1f2)][_0x84c6b0(0x23d)][_0x84c6b0(0x213)](_0x325298);}[_0x371550(0x27a)](_0x53af0e){const _0x4d1f00=_0x371550;this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x264)](_0x53af0e[_0x4d1f00(0x28c)]),this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x255)](_0x53af0e[_0x4d1f00(0x238)]),this[_0x4d1f00(0x1f2)][_0x4d1f00(0x23d)][_0x4d1f00(0x21b)](this[_0x4d1f00(0x208)](_0x53af0e));}[_0x371550(0x1e4)](_0x170978,_0x545ccd){const _0x5b3226=_0x371550;this[_0x5b3226(0x1f2)][_0x5b3226(0x23d)][_0x5b3226(0x1ea)](_0x170978),_0x545ccd&&this[_0x5b3226(0x1f2)][_0x5b3226(0x23d)][_0x5b3226(0x22c)](!0x1);}[_0x371550(0x229)](_0x2cb039){const _0xdd5130=_0x371550;this[_0xdd5130(0x214)]=_0x2cb039;}[_0x371550(0x278)](_0x173914){const _0x5278da=_0x371550;this[_0x5278da(0x1f2)][_0x5278da(0x218)][_0x5278da(0x278)](_0x173914);}[_0x371550(0x1f4)](){const _0x2d3378=_0x371550;this[_0x2d3378(0x243)](_0x1aecdb(this[_0x2d3378(0x263)][_0x2d3378(0x22e)],_0x2d3378(0x272)));}[_0x371550(0x243)](_0x5bdbc5,_0x249258=!0x1){const _0x306e73=_0x371550;if(_0x249258&&!_0x5d2f19()&&_0x5bdbc5[_0x306e73(0x20e)])return this[_0x306e73(0x1f2)][_0x306e73(0x252)][_0x306e73(0x207)]='',void this[_0x306e73(0x248)](_0x5bdbc5);this[_0x306e73(0x1f2)][_0x306e73(0x252)][_0x306e73(0x207)]=_0x5bdbc5;}[_0x371550(0x211)](_0x240a0b){const _0x33c4ff=_0x371550;this[_0x33c4ff(0x1f2)][_0x33c4ff(0x218)][_0x33c4ff(0x211)](_0x240a0b);}[_0x371550(0x1e1)](){const _0x47164b=_0x371550;this[_0x47164b(0x1f2)][_0x47164b(0x218)][_0x47164b(0x211)]('');}[_0x371550(0x248)](_0x127bbb){const _0x506b26=_0x371550;let _0x23e78a=0x0;clearInterval(this[_0x506b26(0x23e)]),this[_0x506b26(0x23e)]=setInterval(()=>{const _0x1175ff=_0x506b26;this[_0x1175ff(0x1f2)][_0x1175ff(0x252)][_0x1175ff(0x207)]=this[_0x1175ff(0x1f2)][_0x1175ff(0x252)][_0x1175ff(0x207)]+_0x127bbb[_0x23e78a],_0x23e78a++,_0x23e78a===_0x127bbb[_0x1175ff(0x20e)]&&clearInterval(this[_0x1175ff(0x23e)]);},0x1e);}[_0x371550(0x228)](_0x2277d2){const _0x3bd073=_0x371550;this[_0x3bd073(0x1f2)][_0x3bd073(0x252)][_0x3bd073(0x1ec)]=_0x2277d2;}[_0x371550(0x260)](_0x5982c6){const _0x2ac5a4=_0x371550;return _0x5982c6[_0x2ac5a4(0x28c)]&&_0x5982c6[_0x2ac5a4(0x238)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x247)):_0x5982c6[_0x2ac5a4(0x28c)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x268)):_0x5982c6[_0x2ac5a4(0x238)]?_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x233)):_0x1aecdb(this[_0x2ac5a4(0x263)][_0x2ac5a4(0x22e)],_0x2ac5a4(0x28a));}[_0x371550(0x208)](_0x163c33){const _0x596096=_0x371550;return _0x163c33?_0x163c33[_0x596096(0x28c)]&&_0x163c33[_0x596096(0x238)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x225)):_0x163c33[_0x596096(0x28c)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x1f6)):_0x163c33[_0x596096(0x238)]?_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x1ef)):_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x259)):_0x1aecdb(this[_0x596096(0x263)][_0x596096(0x22e)],_0x596096(0x259));}[_0x371550(0x289)](_0x3052bd,_0x29f880,_0xfc6fae,_0x5c1148){const _0x3b6278=_0x371550;this[_0x3b6278(0x1f2)][_0x3b6278(0x289)](_0x3052bd,_0x29f880,_0xfc6fae,_0x5c1148);}[_0x371550(0x235)](_0x4b8282){const _0x40ee7b=_0x371550;this[_0x40ee7b(0x1f2)][_0x40ee7b(0x235)](_0x4b8282);}[_0x371550(0x1ee)](_0x4a8f77){const _0x5ad791=_0x371550;this[_0x5ad791(0x1f2)][_0x5ad791(0x23d)][_0x5ad791(0x1ee)](_0x4a8f77);}[_0x371550(0x22a)](_0x502b90=!0x1){const _0xef5f74=_0x371550;this[_0xef5f74(0x1f2)][_0xef5f74(0x23d)][_0xef5f74(0x22a)](_0x502b90);}[_0x371550(0x221)](_0x4dfd92,_0x12b1b4){const _0x57af7f=_0x371550;this[_0x57af7f(0x1f2)][_0x57af7f(0x218)][_0x57af7f(0x24b)](_0x4dfd92,_0x12b1b4);}[_0x371550(0x21a)](){const _0x5b6586=_0x371550;this[_0x5b6586(0x1f2)][_0x5b6586(0x218)][_0x5b6586(0x21a)]();}[_0x371550(0x240)](){const _0x401297=_0x371550;this[_0x401297(0x1f2)][_0x401297(0x23d)][_0x401297(0x24f)]=!0x0;}[_0x371550(0x23a)](){const _0x4a1265=_0x371550;this[_0x4a1265(0x1f2)][_0x4a1265(0x23d)][_0x4a1265(0x24f)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1848(){const _0xb22fd4=['60yyuTAh','URL','type','filter','text/html','_ownerId','files-','_mapContextItemToRequestData','isHidden','delete','getResources','_getCustomSourcesInitialState','attributes','get','code','Current\x20document','url-','_createContextItemFromContent','_addToConversationContextItem','mapContextItemsToRequestData','_ongoingUploadOperations','text/markdown','addCurrentDocumentToContext','sources','ai-chat-resource-load-failed','uploadDocument','_config','removeSelectionFromContext','fire','TOOL','8AJBQCx','ai-chat-context-invalid-data','substring','mcpServerName','HTML','object','addUrlToContext','clearPendingContextItems','abortController','contextSent','isCurrentDocumentInConversation','2347383MRzYAt','26630tnVTuU','document','ai-chat-url-upload-failed','1433061WAdiqP','end','name','4628796JJdYtD','_findSourceIdsByResourceId','push','file-','_finishUploadOperation','updateCurrentDocument','selection','current-document','urls','set','_ongoingUploads','MARKDOWN','url','_setAddContextOptionsDefaultState','find','data','from','addFilesToContext','ai-request-aborted','resources','resourceStateChanged','contextItemRemoved','_pendingContextItems','has','sessionId','files','uploadProgressChanged','resourceId','removeFromContext','length','SELECTION','ai-chat-resource-no-data','toolName','populateFromMessage','_addContextItem','FILE','addSelectionToContext','enabled','addToConversationContext','start','_finishContextItemLoading','_connector','addContextOptionsChanged','customItems','getSentContextItems','_startUploadOperation','values','isReadOnly','message','694296sjvLyq','13722720rUUSrA','forEach','isSelectionInContext','getDocument','_addContextOptionsState','sourceResourcesLoaded','TEXT','File','_conversationContextItems','uploadUrl','string','ai-chat-document-upload-failed','DOCUMENT','getId','_convertTextResourceToFile','addToolItemToContext','_updateResourceInContextState','uiId','1521mcgSQi','ai-chat-file-upload-failed','contextItemAdded','all','isCurrentDocumentInContext','loadSourceResources','version','_toggleAddCurrentDocumentOptionVisibility','contextItemLoadingEnded','hidden','size','startsWith','map','_isResourceInContext','getData','addResourceToContext','content','_removeContextItem','object\x20with\x20content\x20and\x20type\x20properties','abort','isInContext','getPendingContextItems','ai-chat-context-unsupported-type','ai-chat-source-not-found','init','uploadFile','ai-chat-source-resources-load-failed','4HSLdFf','text/plain','stack','fetchDocument','5409019edBdUu','label','error'];_0x1848=function(){return _0xb22fd4;};return _0x1848();}const _0x515cfc=_0x30da;(function(_0x20adcc,_0x2d4254){const _0x5adbce=_0x30da,_0x48c127=_0x20adcc();while(!![]){try{const _0x1178dd=parseInt(_0x5adbce(0x1d4))/0x1+-parseInt(_0x5adbce(0x236))/0x2*(parseInt(_0x5adbce(0x1d0))/0x3)+parseInt(_0x5adbce(0x1d7))/0x4+-parseInt(_0x5adbce(0x23d))/0x5*(-parseInt(_0x5adbce(0x208))/0x6)+-parseInt(_0x5adbce(0x23a))/0x7*(parseInt(_0x5adbce(0x25b))/0x8)+parseInt(_0x5adbce(0x21b))/0x9*(parseInt(_0x5adbce(0x1d1))/0xa)+-parseInt(_0x5adbce(0x209))/0xb;if(_0x1178dd===_0x2d4254)break;else _0x48c127['push'](_0x48c127['shift']());}catch(_0x4d0c8e){_0x48c127['push'](_0x48c127['shift']());}}}(_0x1848,0xcdfdc));import{CKEditorError as _0x2bede4,ObservableMixin as _0x5775fb,uid as _0x12b84c}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x25f048,AIContextTextResourceType as _0x56f282}from'../../aicore/model/aicontext.js';import{escape as _0x3f20d6}from'es-toolkit/compat';function _0x30da(_0x1b15ae,_0x59e35b){const _0x1848f4=_0x1848();return _0x30da=function(_0x30daaf,_0x46de11){_0x30daaf=_0x30daaf-0x1c6;let _0x23cde6=_0x1848f4[_0x30daaf];return _0x23cde6;},_0x30da(_0x1b15ae,_0x59e35b);}import{errorsMap as _0x40ff63}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x515cfc(0x21d),_0x515cfc(0x1ec),_0x515cfc(0x223),_0x515cfc(0x1ce),_0x515cfc(0x23c),_0x515cfc(0x201),_0x515cfc(0x20e),_0x515cfc(0x1eb),_0x515cfc(0x1f1)];export class AIChatContext extends _0x5775fb(){[_0x515cfc(0x200)];[_0x515cfc(0x257)];[_0x515cfc(0x242)];constructor({connector:_0x1f3030,config:_0x35b4c8,ownerId:_0x20a00d}){const _0x550dbf=_0x515cfc;super(),this[_0x550dbf(0x200)]=_0x1f3030,this[_0x550dbf(0x257)]=_0x35b4c8,this[_0x550dbf(0x242)]=_0x20a00d;}[_0x515cfc(0x233)](){const _0x41bf08=_0x515cfc;this[_0x41bf08(0x1ed)]=new Map(),this[_0x41bf08(0x211)]=new Map(),this[_0x41bf08(0x1e1)]=new Map(),this[_0x41bf08(0x251)]=new Map(),this[_0x41bf08(0x1e4)]();}[_0x515cfc(0x230)](){const _0x5c0317=_0x515cfc;return this[_0x5c0317(0x1ed)];}async[_0x515cfc(0x1f8)](_0x2a8031){const _0x598a95=_0x515cfc,_0x24cb63=await this[_0x598a95(0x24e)](_0x2a8031);return this[_0x598a95(0x24f)](_0x24cb63),_0x598a95(0x1de)===_0x24cb63[_0x598a95(0x21a)]&&this[_0x598a95(0x222)](),_0x24cb63;}async[_0x515cfc(0x24e)](_0xd3223d){const _0x4678e6=_0x515cfc;if(_0xd3223d[_0x4678e6(0x23f)]===_0x25f048[_0x4678e6(0x215)]){const _0x52ae49=await this[_0x4678e6(0x200)][_0x4678e6(0x239)](this[_0x4678e6(0x242)],_0xd3223d['id'])[_0x4678e6(0x20c)]();return{'id':_0x4678e6(0x1de),'uiId':_0x4678e6(0x1de),'label':_0x4678e6(0x24c),'type':_0xd3223d[_0x4678e6(0x23f)],'content':_0x52ae49[_0x4678e6(0x22b)],'hidden':this[_0x4678e6(0x211)][_0x4678e6(0x1ee)](_0x4678e6(0x1de)),'version':_0x52ae49[_0x4678e6(0x249)]?.[_0x4678e6(0x221)],'sessionId':_0x52ae49[_0x4678e6(0x249)]?.[_0x4678e6(0x1ef)]};}if(_0xd3223d[_0x4678e6(0x23f)]===_0x25f048[_0x4678e6(0x25a)])return{'id':_0xd3223d['id'],'uiId':_0xd3223d['id'],'label':_0xd3223d[_0x4678e6(0x1e6)]?.[_0x4678e6(0x23b)]||_0xd3223d['id'],'type':_0x25f048[_0x4678e6(0x25a)],'mcpServerName':_0xd3223d[_0x4678e6(0x1c8)],'toolName':_0xd3223d[_0x4678e6(0x1f7)],'data':_0xd3223d[_0x4678e6(0x1e6)]||{}};return{'id':_0xd3223d['id'],'uiId':_0xd3223d['id'],'label':_0xd3223d[_0x4678e6(0x249)]?.[_0x4678e6(0x23b)]||_0xd3223d[_0x4678e6(0x1d6)]||_0xd3223d[_0x4678e6(0x1e3)]||_0xd3223d['id'],'type':_0xd3223d[_0x4678e6(0x23f)],..._0xd3223d?.[_0x4678e6(0x249)]?.[_0x4678e6(0x1f2)]?{'resourceId':_0xd3223d[_0x4678e6(0x249)]?.[_0x4678e6(0x1f2)]}:{}};}[_0x515cfc(0x203)](){const _0x8f8279=_0x515cfc;return new Map(this[_0x8f8279(0x211)]);}[_0x515cfc(0x1f3)](_0x367e6b){const _0x136e3f=_0x515cfc,_0x2cf9f6=this[_0x136e3f(0x1ed)][_0x136e3f(0x24a)](_0x367e6b);_0x2cf9f6?.[_0x136e3f(0x206)]||this[_0x136e3f(0x22c)](_0x367e6b);}[_0x515cfc(0x1cc)](){const _0x33c9bc=_0x515cfc;if(0x0===this[_0x33c9bc(0x1ed)][_0x33c9bc(0x225)])return;for(const _0x23a8af of this[_0x33c9bc(0x1ed)][_0x33c9bc(0x205)]())this[_0x33c9bc(0x22c)](_0x23a8af[_0x33c9bc(0x21a)]);const _0x8a83d0=this[_0x33c9bc(0x211)][_0x33c9bc(0x24a)](_0x33c9bc(0x1de))||this[_0x33c9bc(0x1ed)][_0x33c9bc(0x24a)](_0x33c9bc(0x1de));_0x8a83d0&&this[_0x33c9bc(0x1f9)]({..._0x8a83d0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x515cfc(0x1fd)](_0x4cd5e1){const _0xc9ef1c=_0x515cfc;for(const _0x27ccd9 of _0x4cd5e1[_0xc9ef1c(0x205)]())this[_0xc9ef1c(0x24f)](_0x27ccd9);this[_0xc9ef1c(0x1cc)](),this[_0xc9ef1c(0x259)](_0xc9ef1c(0x1ce),{'contextItems':Array[_0xc9ef1c(0x1e7)](this[_0xc9ef1c(0x203)]()[_0xc9ef1c(0x205)]())});}[_0x515cfc(0x21f)](){const _0xcc3388=_0x515cfc;return this[_0xcc3388(0x1ed)][_0xcc3388(0x1ee)](_0xcc3388(0x1de));}[_0x515cfc(0x20b)](){const _0x47677b=_0x515cfc;return this[_0x47677b(0x1ed)][_0x47677b(0x1ee)](_0x47677b(0x1dd));}[_0x515cfc(0x1cf)](){const _0x55506a=_0x515cfc;return this[_0x55506a(0x211)][_0x55506a(0x1ee)](_0x55506a(0x1de));}static[_0x515cfc(0x250)](_0x5adccc){const _0x2d627d=_0x515cfc;return Array[_0x2d627d(0x1e7)](_0x5adccc[_0x2d627d(0x205)]())[_0x2d627d(0x227)](_0x2ede17=>this[_0x2d627d(0x244)](_0x2ede17))[_0x2d627d(0x240)](_0x2b4a32=>null!==_0x2b4a32);}async[_0x515cfc(0x1e8)](_0x4bd081,_0x561036,_0xe5f7cf=_0x25f048[_0x515cfc(0x1fa)]){const _0x1cacae=_0x515cfc,_0x38c27c=_0x1cacae(0x243)+_0x12b84c();this[_0x1cacae(0x204)](_0x38c27c);try{await Promise[_0x1cacae(0x21e)](_0x4bd081[_0x1cacae(0x227)](async _0x2c3c61=>{const _0x2eaec4=_0x1cacae,_0xe0a02a=_0x2eaec4(0x1da)+_0x12b84c(),_0x479421=_0x3f20d6(_0x2c3c61[_0x2eaec4(0x1d6)]);try{this[_0x2eaec4(0x1f9)]({'type':_0xe5f7cf,'label':_0x561036?.[_0x2eaec4(0x23b)]||_0x479421,'uiId':_0xe0a02a,'resourceId':_0x561036?.[_0x2eaec4(0x1f2)]},!0x0);const _0x5054bf=this[_0x2eaec4(0x200)][_0x2eaec4(0x234)](this[_0x2eaec4(0x242)],_0x2c3c61,_0x561036);this[_0x2eaec4(0x1e1)][_0x2eaec4(0x1e0)](_0xe0a02a,_0x5054bf[_0x2eaec4(0x1cd)]);const {id:_0x2b2481}=await _0x5054bf[_0x2eaec4(0x216)]();this[_0x2eaec4(0x1e1)][_0x2eaec4(0x246)](_0xe0a02a),this[_0x2eaec4(0x1ff)]({'type':_0xe5f7cf,'id':_0x2b2481,'label':_0x561036?.[_0x2eaec4(0x23b)]||_0x479421,'uiId':_0xe0a02a,'resourceId':_0x561036?.[_0x2eaec4(0x1f2)]},!0x1);}catch(_0x1ea610){this[_0x2eaec4(0x1e1)][_0x2eaec4(0x246)](_0xe0a02a);if(!(_0x1ea610 instanceof _0x2bede4&&_0x1ea610[_0x2eaec4(0x207)][_0x2eaec4(0x226)](_0x2eaec4(0x1e9)))){const _0x3b8978=_0x40ff63[_0x2eaec4(0x24a)](_0x1ea610[_0x2eaec4(0x24b)])||_0x2eaec4(0x21c),_0x1acc1a=new _0x2bede4(_0x3b8978,null,{'fileName':_0x479421,..._0x1ea610});_0x1acc1a[_0x2eaec4(0x238)]=_0x1ea610[_0x2eaec4(0x238)],this[_0x2eaec4(0x259)](_0x2eaec4(0x23c),{'error':_0x1acc1a});}this[_0x2eaec4(0x22c)](_0xe0a02a);}}));}finally{this[_0x1cacae(0x1db)](_0x38c27c);}}[_0x515cfc(0x253)](_0x34330b){const _0x2d0653=_0x515cfc;if(this[_0x2d0653(0x21f)]()||!this[_0x2d0653(0x20d)][_0x2d0653(0x1d2)][_0x2d0653(0x1fc)])return;const _0x47ebe5={'type':_0x25f048[_0x2d0653(0x215)],'uiId':_0x2d0653(0x1de),'label':_0x34330b,'isReadOnly':this[_0x2d0653(0x211)][_0x2d0653(0x1ee)](_0x2d0653(0x1de)),'hidden':this[_0x2d0653(0x211)][_0x2d0653(0x1ee)](_0x2d0653(0x1de))};this[_0x2d0653(0x1f9)](_0x47ebe5);}async[_0x515cfc(0x1dc)](_0x397a65,_0x4f64b8,_0x1cc29e,_0x5b135b){const _0x14dbb6=_0x515cfc,_0x2aa5d5=this[_0x14dbb6(0x1ed)][_0x14dbb6(0x24a)](_0x14dbb6(0x1de));if(_0x2aa5d5&&_0x397a65){_0x2aa5d5[_0x14dbb6(0x1dd)]=_0x5b135b?_0x5b135b[_0x14dbb6(0x227)](_0x5f2f04=>({'start':_0x5f2f04[_0x14dbb6(0x1fe)],'end':_0x5f2f04[_0x14dbb6(0x1d5)]})):[];try{if(_0x2aa5d5[_0x14dbb6(0x221)]===_0x4f64b8)return;const {id:_0x32adca}=await this[_0x14dbb6(0x200)][_0x14dbb6(0x256)](this[_0x14dbb6(0x242)],_0x397a65,{'version':_0x4f64b8,'sessionId':_0x1cc29e})[_0x14dbb6(0x216)]();_0x2aa5d5['id']=_0x32adca,_0x2aa5d5[_0x14dbb6(0x22b)]=_0x397a65,_0x2aa5d5[_0x14dbb6(0x221)]=_0x4f64b8,_0x2aa5d5[_0x14dbb6(0x1ef)]=_0x1cc29e;}catch(_0x49a3e2){const _0x375d01=new _0x2bede4(_0x14dbb6(0x214),null);_0x375d01[_0x14dbb6(0x238)]=_0x49a3e2[_0x14dbb6(0x238)],this[_0x14dbb6(0x259)](_0x14dbb6(0x23c),{'error':_0x375d01});}}}[_0x515cfc(0x1fb)](_0x29837e){const _0x17c841=_0x515cfc;this[_0x17c841(0x1f9)]({'type':_0x25f048[_0x17c841(0x1f5)],'label':_0x29837e,'uiId':_0x17c841(0x1dd),'content':_0x29837e});}[_0x515cfc(0x258)](){const _0x32fded=_0x515cfc;this[_0x32fded(0x22c)](_0x32fded(0x1dd));}async[_0x515cfc(0x1cb)](_0x45eafd,_0x5acf40){const _0xfdab0b=_0x515cfc,_0x274b54=_0xfdab0b(0x24d)+_0x12b84c();this[_0xfdab0b(0x204)](_0x274b54);const _0x3416a5=_0xfdab0b(0x24d)+_0x12b84c();try{this[_0xfdab0b(0x1f9)]({'type':_0x25f048[_0xfdab0b(0x23e)],'label':_0x5acf40?.[_0xfdab0b(0x23b)]||_0x45eafd,'uiId':_0x3416a5,'resourceId':_0x5acf40?.[_0xfdab0b(0x1f2)]},!0x0);const _0x313a4a=this[_0xfdab0b(0x200)][_0xfdab0b(0x212)](this[_0xfdab0b(0x242)],_0x45eafd,_0x5acf40);this[_0xfdab0b(0x1e1)][_0xfdab0b(0x1e0)](_0x3416a5,_0x313a4a[_0xfdab0b(0x1cd)]);const {id:_0x36bf31}=await _0x313a4a[_0xfdab0b(0x216)]();this[_0xfdab0b(0x1e1)][_0xfdab0b(0x246)](_0x3416a5),this[_0xfdab0b(0x1ff)]({'type':_0x25f048[_0xfdab0b(0x23e)],'id':_0x36bf31,'label':_0x5acf40?.[_0xfdab0b(0x23b)]||_0x45eafd,'uiId':_0x3416a5,'resourceId':_0x5acf40?.[_0xfdab0b(0x1f2)]},!0x1);}catch(_0x1dfdbc){this[_0xfdab0b(0x1e1)][_0xfdab0b(0x246)](_0x3416a5),(_0x1dfdbc[_0xfdab0b(0x207)][_0xfdab0b(0x226)](_0xfdab0b(0x1e9))||this[_0xfdab0b(0x259)](_0xfdab0b(0x23c),{'error':new _0x2bede4(_0xfdab0b(0x1d3),this,{'url':_0x45eafd,'originalError':_0x1dfdbc}),'url':_0x45eafd}),this[_0xfdab0b(0x22c)](_0x3416a5));}finally{this[_0xfdab0b(0x1db)](_0x274b54);}}[_0x515cfc(0x218)](_0x570115){const _0x5a9a00=_0x515cfc;_0x570115['id']=_0x570115['id']??_0x12b84c()[_0x5a9a00(0x1c7)](0x0,0x15),this[_0x5a9a00(0x1ed)][_0x5a9a00(0x1e0)](_0x570115[_0x5a9a00(0x21a)],_0x570115),this[_0x5a9a00(0x259)](_0x5a9a00(0x21d),{'contextItem':_0x570115,'isLoading':!0x1});}async[_0x515cfc(0x220)](_0x10e160,_0x109daa,_0x27373c){const _0x2d79a7=_0x515cfc,_0x331615=this[_0x2d79a7(0x20d)][_0x2d79a7(0x254)][_0x2d79a7(0x1e5)](_0x178f03=>_0x178f03['id']===_0x10e160);if(!_0x331615)return this[_0x2d79a7(0x259)](_0x2d79a7(0x23c),{'error':new _0x2bede4(_0x2d79a7(0x232),this,{'sourceId':_0x10e160}),'sourceId':_0x10e160}),[];try{const _0x2bb7ef=(await _0x331615[_0x2d79a7(0x247)](_0x109daa))[_0x2d79a7(0x227)](_0xd52f8c=>{const _0x268609=_0x2d79a7,_0x48e7e7=this[_0x268609(0x228)](_0xd52f8c['id']);return{..._0xd52f8c,'isInContext':_0x48e7e7};});return _0x331615[_0x2d79a7(0x1ea)]=_0x2bb7ef,this[_0x2d79a7(0x259)](_0x2d79a7(0x20e),{'sourceId':_0x10e160,'source':_0x331615,'resources':_0x2bb7ef,'uid':_0x27373c}),_0x2bb7ef;}catch(_0x2746ec){return this[_0x2d79a7(0x259)](_0x2d79a7(0x23c),{'error':new _0x2bede4(_0x2d79a7(0x235),this,{'sourceId':_0x10e160,'originalError':_0x2746ec}),'sourceId':_0x10e160,'sourceLabel':_0x331615[_0x2d79a7(0x23b)]}),[];}}async[_0x515cfc(0x22a)](_0x2349a3,_0x496e1e){const _0x545f63=_0x515cfc;if(this[_0x545f63(0x228)](_0x496e1e['id']))return;let _0x3899e6=_0x496e1e[_0x545f63(0x1e6)];if(!_0x3899e6&&_0x2349a3[_0x545f63(0x229)])try{_0x3899e6=await _0x2349a3[_0x545f63(0x229)](_0x496e1e['id']);}catch(_0x4f2abe){return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x255),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'originalError':_0x4f2abe}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});}if(_0x3899e6)switch(_0x496e1e[_0x545f63(0x23f)]){case _0x25f048[_0x545f63(0x23e)]:if(_0x545f63(0x213)!=typeof _0x3899e6)return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1c6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'expectedType':_0x545f63(0x213),'actualType':typeof _0x3899e6}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});await this[_0x545f63(0x1cb)](_0x3899e6,{'label':_0x496e1e[_0x545f63(0x23b)],'resourceId':_0x496e1e['id']});break;case _0x25f048[_0x545f63(0x1fa)]:if(!(_0x3899e6 instanceof File))return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1c6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'expectedType':_0x545f63(0x210),'actualType':typeof _0x3899e6}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});await this[_0x545f63(0x1e8)]([_0x3899e6],{'label':_0x496e1e[_0x545f63(0x23b)],'resourceId':_0x496e1e['id']});break;case _0x25f048[_0x545f63(0x20f)]:if(_0x545f63(0x1ca)!=typeof _0x3899e6||!(_0x545f63(0x22b)in _0x3899e6)||!(_0x545f63(0x23f)in _0x3899e6))return void this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1c6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'expectedType':_0x545f63(0x22d),'actualType':typeof _0x3899e6}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});_0x3899e6=AIChatContext[_0x545f63(0x217)](_0x3899e6,_0x496e1e[_0x545f63(0x23b)]),await this[_0x545f63(0x1e8)]([_0x3899e6],{'label':_0x496e1e[_0x545f63(0x23b)],'resourceId':_0x496e1e['id']},_0x25f048[_0x545f63(0x20f)]);break;case _0x25f048[_0x545f63(0x25a)]:break;default:this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x231),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id'],'resourceType':_0x496e1e[_0x545f63(0x23f)]}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});}else this[_0x545f63(0x259)](_0x545f63(0x23c),{'error':new _0x2bede4(_0x545f63(0x1f6),this,{'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']}),'resourceId':_0x496e1e['id'],'sourceId':_0x2349a3['id']});}static[_0x515cfc(0x217)](_0x50b440,_0xe61f61){const _0x453b2c=_0x515cfc;switch(_0x50b440[_0x453b2c(0x23f)]){case _0x56f282[_0x453b2c(0x1e2)]:return new File([_0x50b440[_0x453b2c(0x22b)]],_0xe61f61,{'type':_0x453b2c(0x252)});case _0x56f282[_0x453b2c(0x1c9)]:return new File([_0x50b440[_0x453b2c(0x22b)]],_0xe61f61,{'type':_0x453b2c(0x241)});default:return new File([_0x50b440[_0x453b2c(0x22b)]],_0xe61f61,{'type':_0x453b2c(0x237)});}}static[_0x515cfc(0x244)](_0x110c67){const _0x3ea454=_0x515cfc;switch(_0x110c67[_0x3ea454(0x23f)]){case _0x25f048[_0x3ea454(0x1fa)]:return{'type':_0x25f048[_0x3ea454(0x1fa)],'id':_0x110c67['id']};case _0x25f048[_0x3ea454(0x23e)]:return{'type':_0x25f048[_0x3ea454(0x23e)],'id':_0x110c67['id']};case _0x25f048[_0x3ea454(0x215)]:return{'type':_0x25f048[_0x3ea454(0x215)],'id':_0x110c67['id'],..._0x110c67[_0x3ea454(0x1dd)]?.[_0x3ea454(0x1f4)]&&{'selection':_0x110c67[_0x3ea454(0x1dd)]}};case _0x25f048[_0x3ea454(0x20f)]:return{'type':_0x25f048[_0x3ea454(0x1fa)],'id':_0x110c67['id']};case _0x25f048[_0x3ea454(0x25a)]:{const _0x1de2f8=_0x110c67;return{'type':_0x25f048[_0x3ea454(0x25a)],'mcpServerName':_0x1de2f8[_0x3ea454(0x1c8)],'toolName':_0x1de2f8[_0x3ea454(0x1f7)],'data':_0x1de2f8[_0x3ea454(0x1e6)],'id':_0x1de2f8['id']};}default:return null;}}[_0x515cfc(0x1f9)](_0x26e45a,_0x3e4f3d=!0x1){const _0x565d48=_0x515cfc;if(this[_0x565d48(0x1ed)][_0x565d48(0x1e0)](_0x26e45a[_0x565d48(0x21a)],_0x26e45a),_0x26e45a[_0x565d48(0x224)]||this[_0x565d48(0x259)](_0x565d48(0x21d),{'contextItem':_0x26e45a,'isLoading':_0x3e4f3d}),_0x565d48(0x1de)===_0x26e45a[_0x565d48(0x21a)]&&this[_0x565d48(0x222)](),_0x26e45a[_0x565d48(0x1f2)]){const _0x4d9480=this[_0x565d48(0x1d8)](_0x26e45a[_0x565d48(0x1f2)]);_0x4d9480&&_0x4d9480[_0x565d48(0x20a)](_0x3acf85=>{const _0x291049=_0x565d48;this[_0x291049(0x219)](_0x3acf85,_0x26e45a[_0x291049(0x1f2)],!0x0);});}}[_0x515cfc(0x22c)](_0x19155d){const _0x5b6488=_0x515cfc,_0x4deb3b=this[_0x5b6488(0x1ed)][_0x5b6488(0x24a)](_0x19155d),_0x6b7d14=this[_0x5b6488(0x1e1)][_0x5b6488(0x24a)](_0x19155d);if(_0x6b7d14&&(_0x6b7d14[_0x5b6488(0x22e)](),this[_0x5b6488(0x1e1)][_0x5b6488(0x246)](_0x19155d)),_0x4deb3b?.[_0x5b6488(0x1f2)]){const _0x1bd2e2=this[_0x5b6488(0x1d8)](_0x4deb3b[_0x5b6488(0x1f2)]);_0x1bd2e2&&_0x1bd2e2[_0x5b6488(0x20a)](_0x5711e0=>{const _0xa1b06f=_0x5b6488;this[_0xa1b06f(0x219)](_0x5711e0,_0x4deb3b[_0xa1b06f(0x1f2)],!0x1);});}this[_0x5b6488(0x1ed)][_0x5b6488(0x246)](_0x19155d),this[_0x5b6488(0x259)](_0x5b6488(0x1ec),{'uiId':_0x19155d,'type':_0x4deb3b?.[_0x5b6488(0x23f)]}),_0x5b6488(0x1de)===_0x19155d&&this[_0x5b6488(0x222)]();}[_0x515cfc(0x1ff)](_0x17af8c,_0x2a058c){const _0x347984=_0x515cfc;if(this[_0x347984(0x1ed)][_0x347984(0x1ee)](_0x17af8c[_0x347984(0x21a)])&&(this[_0x347984(0x1ed)][_0x347984(0x1e0)](_0x17af8c[_0x347984(0x21a)],_0x17af8c),this[_0x347984(0x259)](_0x347984(0x223),{'contextItem':_0x17af8c,'isLoading':_0x2a058c}),_0x17af8c[_0x347984(0x1f2)])){const _0x4d8864=this[_0x347984(0x1d8)](_0x17af8c[_0x347984(0x1f2)]);_0x4d8864&&_0x4d8864[_0x347984(0x20a)](_0x27644f=>{const _0x463332=_0x347984;this[_0x463332(0x219)](_0x27644f,_0x17af8c[_0x463332(0x1f2)],!0x0);});}}[_0x515cfc(0x24f)](_0x2a2363){const _0x370768=_0x515cfc;this[_0x370768(0x211)][_0x370768(0x1e0)](_0x2a2363[_0x370768(0x21a)],_0x2a2363);}[_0x515cfc(0x1e4)](){const _0x370c48=_0x515cfc;this[_0x370c48(0x20d)]={'document':{'enabled':!0x1!==this[_0x370c48(0x257)]?.[_0x370c48(0x1d2)]?.[_0x370c48(0x1fc)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x370c48(0x257)]?.[_0x370c48(0x1df)]?.[_0x370c48(0x1fc)]},'files':{'enabled':!0x1!==this[_0x370c48(0x257)]?.[_0x370c48(0x1f0)]?.[_0x370c48(0x1fc)]},'sources':this[_0x370c48(0x248)](),'customItems':this[_0x370c48(0x257)]?.[_0x370c48(0x202)]?.[_0x370c48(0x227)](_0x25865e=>({..._0x25865e,'enabled':!0x0}))??[]},this[_0x370c48(0x259)](_0x370c48(0x201),{'options':this[_0x370c48(0x20d)]});}[_0x515cfc(0x248)](){const _0x5dafef=_0x515cfc;return this[_0x5dafef(0x257)]?.[_0x5dafef(0x254)]?.[_0x5dafef(0x227)](_0x24a1ef=>({..._0x24a1ef,'resources':[]}))??[];}[_0x515cfc(0x222)](){const _0x59fa2f=_0x515cfc,_0x3f91c7=this[_0x59fa2f(0x21f)]()||this[_0x59fa2f(0x1cf)]();this[_0x59fa2f(0x20d)][_0x59fa2f(0x1d2)][_0x59fa2f(0x245)]=_0x3f91c7,this[_0x59fa2f(0x259)](_0x59fa2f(0x201),{'options':this[_0x59fa2f(0x20d)]});}[_0x515cfc(0x228)](_0x533967){const _0x349bde=_0x515cfc;for(const _0x163102 of this[_0x349bde(0x1ed)][_0x349bde(0x205)]())if(_0x163102[_0x349bde(0x1f2)]===_0x533967)return!0x0;for(const _0x464a11 of this[_0x349bde(0x211)][_0x349bde(0x205)]())if(_0x464a11[_0x349bde(0x1f2)]===_0x533967)return!0x0;return!0x1;}[_0x515cfc(0x1d8)](_0x11c14e){const _0x360743=_0x515cfc,_0x505a05=[];for(const _0x186494 of this[_0x360743(0x20d)][_0x360743(0x254)]){_0x186494[_0x360743(0x1ea)][_0x360743(0x1e5)](_0x49d7e5=>_0x49d7e5['id']===_0x11c14e)&&_0x505a05[_0x360743(0x1d9)](_0x186494['id']);}return 0x0===_0x505a05[_0x360743(0x1f4)]?null:_0x505a05;}[_0x515cfc(0x219)](_0x1ae4b8,_0x1582fe,_0x3e6f10){const _0x4b3f52=_0x515cfc,_0x2c8e98=this[_0x4b3f52(0x20d)][_0x4b3f52(0x254)][_0x4b3f52(0x1e5)](_0x47f4bb=>_0x47f4bb['id']===_0x1ae4b8);if(!_0x2c8e98)return;const _0x42f1cc=_0x2c8e98[_0x4b3f52(0x1ea)][_0x4b3f52(0x1e5)](_0x276737=>_0x276737['id']===_0x1582fe);_0x42f1cc&&(_0x42f1cc[_0x4b3f52(0x22f)]=_0x3e6f10,this[_0x4b3f52(0x259)](_0x4b3f52(0x1eb),{'sourceId':_0x1ae4b8,'resourceId':_0x1582fe,'isInContext':_0x3e6f10}));}[_0x515cfc(0x204)](_0x29fa82){const _0x317c8d=_0x515cfc;this[_0x317c8d(0x251)][_0x317c8d(0x1e0)](_0x29fa82,!0x0),this[_0x317c8d(0x251)][_0x317c8d(0x225)]&&this[_0x317c8d(0x259)](_0x317c8d(0x1f1),{'isUploadInProgress':!0x0});}[_0x515cfc(0x1db)](_0x491f8c){const _0x65f299=_0x515cfc;this[_0x65f299(0x251)][_0x65f299(0x246)](_0x491f8c),0x0===this[_0x65f299(0x251)][_0x65f299(0x225)]&&this[_0x65f299(0x259)](_0x65f299(0x1f1),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0xad7835=_0x3028;(function(_0x1e7c14,_0x110294){const _0x5e8ab4=_0x3028,_0x71f4cc=_0x1e7c14();while(!![]){try{const _0x1a9011=-parseInt(_0x5e8ab4(0x1f2))/0x1*(parseInt(_0x5e8ab4(0x21f))/0x2)+parseInt(_0x5e8ab4(0x1b9))/0x3+-parseInt(_0x5e8ab4(0x23a))/0x4+parseInt(_0x5e8ab4(0x20f))/0x5+parseInt(_0x5e8ab4(0x1bc))/0x6+-parseInt(_0x5e8ab4(0x20d))/0x7*(-parseInt(_0x5e8ab4(0x1b8))/0x8)+-parseInt(_0x5e8ab4(0x1af))/0x9*(parseInt(_0x5e8ab4(0x200))/0xa);if(_0x1a9011===_0x110294)break;else _0x71f4cc['push'](_0x71f4cc['shift']());}catch(_0x18aa94){_0x71f4cc['push'](_0x71f4cc['shift']());}}}(_0x4f03,0x49697));function _0x3028(_0x24349b,_0x3e89e2){const _0x4f033a=_0x4f03();return _0x3028=function(_0x3028a8,_0x26c02b){_0x3028a8=_0x3028a8-0x1a8;let _0x74b2be=_0x4f033a[_0x3028a8];return _0x74b2be;},_0x3028(_0x24349b,_0x3e89e2);}import{CKEditorError as _0x3c6ee9,ObservableMixin as _0x1a3f49,uid as _0x486623}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x531066,AIContextTextResourceType as _0xae2625}from'../../aicore/model/aicontext.js';import{escape as _0x2c07c6}from'es-toolkit/compat';function _0x4f03(){const _0xf80330=['_conversationContextItems','242936SdVihV','resourceStateChanged','customItems','isReadOnly','isCurrentDocumentInContext','filter','map','find','updateCurrentDocument','name','131913GxGhmR','delete','attributes','toolName','hidden','_finishContextItemLoading','addFilesToContext','contextItemLoadingEnded','_isResourceInContext','8jGECdz','744060AGJoEz','push','SELECTION','567570BIKuMs','sourceResourcesLoaded','addToolItemToContext','loadSourceResources','ai-chat-source-resources-load-failed','end','clearPendingContextItems','contextSent','_pendingContextItems','url','forEach','start','files','uploadFile','_finishUploadOperation','uploadProgressChanged','ai-chat-file-upload-failed','addToConversationContext','URL','_updateResourceInContextState','object','uploadDocument','_ongoingUploadOperations','urls','values','sources','addContextOptionsChanged','text/markdown','code','version','MARKDOWN','resourceId','current-document','addSelectionToContext','files-','getData','ai-request-aborted','contextItemAdded','_createContextItemFromContent','document','contextItemRemoved','addCurrentDocumentToContext','mapContextItemsToRequestData','_convertTextResourceToFile','_addContextOptionsState','uiId','file-','abortController','isHidden','FILE','data','isSelectionInContext','_connector','_toggleAddCurrentDocumentOptionVisibility','18vKRLwb','ai-chat-context-unsupported-type','message','_addContextItem','getPendingContextItems','string','set','mcpServerName','isInContext','ai-chat-source-not-found','_mapContextItemToRequestData','content','enabled','fire','340ltktvJ','_findSourceIdsByResourceId','error','stack','resources','from','getSentContextItems','ai-chat-resource-no-data','isCurrentDocumentInConversation','startsWith','Current\x20document','addUrlToContext','getDocument','3687719YBbMqi','init','2092685lktrPv','ai-chat-resource-load-failed','TOOL','_setAddContextOptionsDefaultState','_addToConversationContextItem','abort','selection','DOCUMENT','get','_getCustomSourcesInitialState','uploadUrl','_ongoingUploads','label','populateFromMessage','ai-chat-context-invalid-data','text/plain','47578BAhfet','HTML','ai-chat-document-upload-failed','getResources','fetchDocument','_ownerId','_startUploadOperation','ai-chat-url-upload-failed','TEXT','removeFromContext','url-','substring','has','getId','_removeContextItem','type','text/html','length','removeSelectionFromContext','_config','sessionId','File','object\x20with\x20content\x20and\x20type\x20properties','addResourceToContext','size','all'];_0x4f03=function(){return _0xf80330;};return _0x4f03();}import{errorsMap as _0x535922}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xad7835(0x1e1),_0xad7835(0x1e4),_0xad7835(0x1b6),_0xad7835(0x1c3),_0xad7835(0x202),_0xad7835(0x1d6),_0xad7835(0x1bd),_0xad7835(0x23b),_0xad7835(0x1cb)];export class AIChatContext extends _0x1a3f49(){[_0xad7835(0x1f0)];[_0xad7835(0x232)];[_0xad7835(0x224)];constructor({connector:_0x328865,config:_0x23c34b,ownerId:_0x2d2434}){const _0x3de386=_0xad7835;super(),this[_0x3de386(0x1f0)]=_0x328865,this[_0x3de386(0x232)]=_0x23c34b,this[_0x3de386(0x224)]=_0x2d2434;}[_0xad7835(0x20e)](){const _0x5c9f77=_0xad7835;this[_0x5c9f77(0x1c4)]=new Map(),this[_0x5c9f77(0x239)]=new Map(),this[_0x5c9f77(0x21a)]=new Map(),this[_0x5c9f77(0x1d2)]=new Map(),this[_0x5c9f77(0x212)]();}[_0xad7835(0x1f6)](){const _0x278da0=_0xad7835;return this[_0x278da0(0x1c4)];}async[_0xad7835(0x21c)](_0x4b3a2b){const _0x1e4e84=_0xad7835,_0x4c05d8=await this[_0x1e4e84(0x1e2)](_0x4b3a2b);return this[_0x1e4e84(0x213)](_0x4c05d8),_0x1e4e84(0x1dc)===_0x4c05d8[_0x1e4e84(0x1e9)]&&this[_0x1e4e84(0x1f1)](),_0x4c05d8;}async[_0xad7835(0x1e2)](_0x5c9067){const _0x27dc65=_0xad7835;if(_0x5c9067[_0x27dc65(0x22e)]===_0x531066[_0x27dc65(0x216)]){const _0x5afb40=await this[_0x27dc65(0x1f0)][_0x27dc65(0x223)](this[_0x27dc65(0x224)],_0x5c9067['id'])[_0x27dc65(0x20c)]();return{'id':_0x27dc65(0x1dc),'uiId':_0x27dc65(0x1dc),'label':_0x27dc65(0x20a),'type':_0x5c9067[_0x27dc65(0x22e)],'content':_0x5afb40[_0x27dc65(0x1fd)],'hidden':this[_0x27dc65(0x239)][_0x27dc65(0x22b)](_0x27dc65(0x1dc)),'version':_0x5afb40[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1d9)],'sessionId':_0x5afb40[_0x27dc65(0x1b1)]?.[_0x27dc65(0x233)]};}if(_0x5c9067[_0x27dc65(0x22e)]===_0x531066[_0x27dc65(0x211)])return{'id':_0x5c9067['id'],'uiId':_0x5c9067['id'],'label':_0x5c9067[_0x27dc65(0x1ee)]?.[_0x27dc65(0x21b)]||_0x5c9067['id'],'type':_0x531066[_0x27dc65(0x211)],'mcpServerName':_0x5c9067[_0x27dc65(0x1f9)],'toolName':_0x5c9067[_0x27dc65(0x1b2)],'data':_0x5c9067[_0x27dc65(0x1ee)]||{}};return{'id':_0x5c9067['id'],'uiId':_0x5c9067['id'],'label':_0x5c9067[_0x27dc65(0x1b1)]?.[_0x27dc65(0x21b)]||_0x5c9067[_0x27dc65(0x1ae)]||_0x5c9067[_0x27dc65(0x1c5)]||_0x5c9067['id'],'type':_0x5c9067[_0x27dc65(0x22e)],..._0x5c9067?.[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1db)]?{'resourceId':_0x5c9067[_0x27dc65(0x1b1)]?.[_0x27dc65(0x1db)]}:{}};}[_0xad7835(0x206)](){const _0x3da9f7=_0xad7835;return new Map(this[_0x3da9f7(0x239)]);}[_0xad7835(0x228)](_0x1035c5){const _0x2ac05c=_0xad7835,_0x59cf30=this[_0x2ac05c(0x1c4)][_0x2ac05c(0x217)](_0x1035c5);_0x59cf30?.[_0x2ac05c(0x1a8)]||this[_0x2ac05c(0x22d)](_0x1035c5);}[_0xad7835(0x1c2)](){const _0x3e0975=_0xad7835;if(0x0===this[_0x3e0975(0x1c4)][_0x3e0975(0x237)])return;for(const _0x35e724 of this[_0x3e0975(0x1c4)][_0x3e0975(0x1d4)]())this[_0x3e0975(0x22d)](_0x35e724[_0x3e0975(0x1e9)]);const _0xcc7635=this[_0x3e0975(0x239)][_0x3e0975(0x217)](_0x3e0975(0x1dc))||this[_0x3e0975(0x1c4)][_0x3e0975(0x217)](_0x3e0975(0x1dc));_0xcc7635&&this[_0x3e0975(0x1f5)]({..._0xcc7635,'isReadOnly':!0x0,'hidden':!0x0});}[_0xad7835(0x1cd)](_0x155de0){const _0x3beaf9=_0xad7835;for(const _0x16d9e0 of _0x155de0[_0x3beaf9(0x1d4)]())this[_0x3beaf9(0x213)](_0x16d9e0);this[_0x3beaf9(0x1c2)](),this[_0x3beaf9(0x1ff)](_0x3beaf9(0x1c3),{'contextItems':Array[_0x3beaf9(0x205)](this[_0x3beaf9(0x206)]()[_0x3beaf9(0x1d4)]())});}[_0xad7835(0x1a9)](){const _0x4015af=_0xad7835;return this[_0x4015af(0x1c4)][_0x4015af(0x22b)](_0x4015af(0x1dc));}[_0xad7835(0x1ef)](){const _0x3d0269=_0xad7835;return this[_0x3d0269(0x1c4)][_0x3d0269(0x22b)](_0x3d0269(0x215));}[_0xad7835(0x208)](){const _0x3bf7d3=_0xad7835;return this[_0x3bf7d3(0x239)][_0x3bf7d3(0x22b)](_0x3bf7d3(0x1dc));}static[_0xad7835(0x1e6)](_0x3721c5){const _0x26b8c9=_0xad7835;return Array[_0x26b8c9(0x205)](_0x3721c5[_0x26b8c9(0x1d4)]())[_0x26b8c9(0x1ab)](_0x40e0a7=>this[_0x26b8c9(0x1fc)](_0x40e0a7))[_0x26b8c9(0x1aa)](_0x7b9845=>null!==_0x7b9845);}async[_0xad7835(0x1b5)](_0x3a3aac,_0x5cfb85,_0x3e6d69=_0x531066[_0xad7835(0x1ed)]){const _0x57f9f0=_0xad7835,_0x247597=_0x57f9f0(0x1de)+_0x486623();this[_0x57f9f0(0x225)](_0x247597);try{await Promise[_0x57f9f0(0x238)](_0x3a3aac[_0x57f9f0(0x1ab)](async _0x4cfd09=>{const _0x3204d3=_0x57f9f0,_0x523dc2=_0x3204d3(0x1ea)+_0x486623(),_0x493794=_0x2c07c6(_0x4cfd09[_0x3204d3(0x1ae)]);try{this[_0x3204d3(0x1f5)]({'type':_0x3e6d69,'label':_0x5cfb85?.[_0x3204d3(0x21b)]||_0x493794,'uiId':_0x523dc2,'resourceId':_0x5cfb85?.[_0x3204d3(0x1db)]},!0x0);const _0x2bc812=this[_0x3204d3(0x1f0)][_0x3204d3(0x1c9)](this[_0x3204d3(0x224)],_0x4cfd09,_0x5cfb85);this[_0x3204d3(0x21a)][_0x3204d3(0x1f8)](_0x523dc2,_0x2bc812[_0x3204d3(0x1eb)]);const {id:_0x10bd95}=await _0x2bc812[_0x3204d3(0x22c)]();this[_0x3204d3(0x21a)][_0x3204d3(0x1b0)](_0x523dc2),this[_0x3204d3(0x1b4)]({'type':_0x3e6d69,'id':_0x10bd95,'label':_0x5cfb85?.[_0x3204d3(0x21b)]||_0x493794,'uiId':_0x523dc2,'resourceId':_0x5cfb85?.[_0x3204d3(0x1db)]},!0x1);}catch(_0x420599){this[_0x3204d3(0x21a)][_0x3204d3(0x1b0)](_0x523dc2);if(!(_0x420599 instanceof _0x3c6ee9&&_0x420599[_0x3204d3(0x1f4)][_0x3204d3(0x209)](_0x3204d3(0x1e0)))){const _0x11f894=_0x535922[_0x3204d3(0x217)](_0x420599[_0x3204d3(0x1d8)])||_0x3204d3(0x1cc),_0x583b7e=new _0x3c6ee9(_0x11f894,null,{'fileName':_0x493794,..._0x420599});_0x583b7e[_0x3204d3(0x203)]=_0x420599[_0x3204d3(0x203)],this[_0x3204d3(0x1ff)](_0x3204d3(0x202),{'error':_0x583b7e});}this[_0x3204d3(0x22d)](_0x523dc2);}}));}finally{this[_0x57f9f0(0x1ca)](_0x247597);}}[_0xad7835(0x1e5)](_0x42cfd4){const _0x5dbd30=_0xad7835;if(this[_0x5dbd30(0x1a9)]()||!this[_0x5dbd30(0x1e8)][_0x5dbd30(0x1e3)][_0x5dbd30(0x1fe)])return;const _0x5cb7dc={'type':_0x531066[_0x5dbd30(0x216)],'uiId':_0x5dbd30(0x1dc),'label':_0x42cfd4,'isReadOnly':this[_0x5dbd30(0x239)][_0x5dbd30(0x22b)](_0x5dbd30(0x1dc)),'hidden':this[_0x5dbd30(0x239)][_0x5dbd30(0x22b)](_0x5dbd30(0x1dc))};this[_0x5dbd30(0x1f5)](_0x5cb7dc);}async[_0xad7835(0x1ad)](_0x1aba94,_0x3d9c3f,_0x7e42bc,_0x158257){const _0x750c80=_0xad7835,_0x1f878f=this[_0x750c80(0x1c4)][_0x750c80(0x217)](_0x750c80(0x1dc));if(_0x1f878f&&_0x1aba94){_0x1f878f[_0x750c80(0x215)]=_0x158257?_0x158257[_0x750c80(0x1ab)](_0x22bb43=>({'start':_0x22bb43[_0x750c80(0x1c7)],'end':_0x22bb43[_0x750c80(0x1c1)]})):[];try{if(_0x1f878f[_0x750c80(0x1d9)]===_0x3d9c3f)return;const {id:_0x3a8cd5}=await this[_0x750c80(0x1f0)][_0x750c80(0x1d1)](this[_0x750c80(0x224)],_0x1aba94,{'version':_0x3d9c3f,'sessionId':_0x7e42bc})[_0x750c80(0x22c)]();_0x1f878f['id']=_0x3a8cd5,_0x1f878f[_0x750c80(0x1fd)]=_0x1aba94,_0x1f878f[_0x750c80(0x1d9)]=_0x3d9c3f,_0x1f878f[_0x750c80(0x233)]=_0x7e42bc;}catch(_0x42c652){const _0x337e11=new _0x3c6ee9(_0x750c80(0x221),null);_0x337e11[_0x750c80(0x203)]=_0x42c652[_0x750c80(0x203)],this[_0x750c80(0x1ff)](_0x750c80(0x202),{'error':_0x337e11});}}}[_0xad7835(0x1dd)](_0x2e8a14){const _0x40bdea=_0xad7835;this[_0x40bdea(0x1f5)]({'type':_0x531066[_0x40bdea(0x1bb)],'label':_0x2e8a14,'uiId':_0x40bdea(0x215),'content':_0x2e8a14});}[_0xad7835(0x231)](){const _0x4c9dbf=_0xad7835;this[_0x4c9dbf(0x22d)](_0x4c9dbf(0x215));}async[_0xad7835(0x20b)](_0x10a4fa,_0x1e65c4){const _0x53bc5d=_0xad7835,_0x35096b=_0x53bc5d(0x229)+_0x486623();this[_0x53bc5d(0x225)](_0x35096b);const _0x335489=_0x53bc5d(0x229)+_0x486623();try{this[_0x53bc5d(0x1f5)]({'type':_0x531066[_0x53bc5d(0x1ce)],'label':_0x1e65c4?.[_0x53bc5d(0x21b)]||_0x10a4fa,'uiId':_0x335489,'resourceId':_0x1e65c4?.[_0x53bc5d(0x1db)]},!0x0);const _0x1df5cb=this[_0x53bc5d(0x1f0)][_0x53bc5d(0x219)](this[_0x53bc5d(0x224)],_0x10a4fa,_0x1e65c4);this[_0x53bc5d(0x21a)][_0x53bc5d(0x1f8)](_0x335489,_0x1df5cb[_0x53bc5d(0x1eb)]);const {id:_0x3520f5}=await _0x1df5cb[_0x53bc5d(0x22c)]();this[_0x53bc5d(0x21a)][_0x53bc5d(0x1b0)](_0x335489),this[_0x53bc5d(0x1b4)]({'type':_0x531066[_0x53bc5d(0x1ce)],'id':_0x3520f5,'label':_0x1e65c4?.[_0x53bc5d(0x21b)]||_0x10a4fa,'uiId':_0x335489,'resourceId':_0x1e65c4?.[_0x53bc5d(0x1db)]},!0x1);}catch(_0x1899b0){this[_0x53bc5d(0x21a)][_0x53bc5d(0x1b0)](_0x335489),(_0x1899b0[_0x53bc5d(0x1f4)][_0x53bc5d(0x209)](_0x53bc5d(0x1e0))||this[_0x53bc5d(0x1ff)](_0x53bc5d(0x202),{'error':new _0x3c6ee9(_0x53bc5d(0x226),this,{'url':_0x10a4fa,'originalError':_0x1899b0}),'url':_0x10a4fa}),this[_0x53bc5d(0x22d)](_0x335489));}finally{this[_0x53bc5d(0x1ca)](_0x35096b);}}[_0xad7835(0x1be)](_0x3f46f6){const _0xf38df0=_0xad7835;_0x3f46f6['id']=_0x3f46f6['id']??_0x486623()[_0xf38df0(0x22a)](0x0,0x15),this[_0xf38df0(0x1c4)][_0xf38df0(0x1f8)](_0x3f46f6[_0xf38df0(0x1e9)],_0x3f46f6),this[_0xf38df0(0x1ff)](_0xf38df0(0x1e1),{'contextItem':_0x3f46f6,'isLoading':!0x1});}async[_0xad7835(0x1bf)](_0x426b84,_0x1194c3,_0x3cf45b){const _0x13c5dc=_0xad7835,_0x3a52ed=this[_0x13c5dc(0x1e8)][_0x13c5dc(0x1d5)][_0x13c5dc(0x1ac)](_0x26ed8b=>_0x26ed8b['id']===_0x426b84);if(!_0x3a52ed)return this[_0x13c5dc(0x1ff)](_0x13c5dc(0x202),{'error':new _0x3c6ee9(_0x13c5dc(0x1fb),this,{'sourceId':_0x426b84}),'sourceId':_0x426b84}),[];try{const _0x10513f=(await _0x3a52ed[_0x13c5dc(0x222)](_0x1194c3))[_0x13c5dc(0x1ab)](_0x4f4223=>{const _0x3b504e=_0x13c5dc,_0x59ea0a=this[_0x3b504e(0x1b7)](_0x4f4223['id']);return{..._0x4f4223,'isInContext':_0x59ea0a};});return _0x3a52ed[_0x13c5dc(0x204)]=_0x10513f,this[_0x13c5dc(0x1ff)](_0x13c5dc(0x1bd),{'sourceId':_0x426b84,'source':_0x3a52ed,'resources':_0x10513f,'uid':_0x3cf45b}),_0x10513f;}catch(_0x25b502){return this[_0x13c5dc(0x1ff)](_0x13c5dc(0x202),{'error':new _0x3c6ee9(_0x13c5dc(0x1c0),this,{'sourceId':_0x426b84,'originalError':_0x25b502}),'sourceId':_0x426b84,'sourceLabel':_0x3a52ed[_0x13c5dc(0x21b)]}),[];}}async[_0xad7835(0x236)](_0x287de2,_0x10a5e9){const _0x44a61e=_0xad7835;if(this[_0x44a61e(0x1b7)](_0x10a5e9['id']))return;let _0x2d1820=_0x10a5e9[_0x44a61e(0x1ee)];if(!_0x2d1820&&_0x287de2[_0x44a61e(0x1df)])try{_0x2d1820=await _0x287de2[_0x44a61e(0x1df)](_0x10a5e9['id']);}catch(_0x3058c6){return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x210),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'originalError':_0x3058c6}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}if(_0x2d1820)switch(_0x10a5e9[_0x44a61e(0x22e)]){case _0x531066[_0x44a61e(0x1ce)]:if(_0x44a61e(0x1f7)!=typeof _0x2d1820)return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x1f7),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});await this[_0x44a61e(0x20b)](_0x2d1820,{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']});break;case _0x531066[_0x44a61e(0x1ed)]:if(!(_0x2d1820 instanceof File))return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x234),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});await this[_0x44a61e(0x1b5)]([_0x2d1820],{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']});break;case _0x531066[_0x44a61e(0x227)]:if(_0x44a61e(0x1d0)!=typeof _0x2d1820||!(_0x44a61e(0x1fd)in _0x2d1820)||!(_0x44a61e(0x22e)in _0x2d1820))return void this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x21d),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'expectedType':_0x44a61e(0x235),'actualType':typeof _0x2d1820}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});_0x2d1820=AIChatContext[_0x44a61e(0x1e7)](_0x2d1820,_0x10a5e9[_0x44a61e(0x21b)]),await this[_0x44a61e(0x1b5)]([_0x2d1820],{'label':_0x10a5e9[_0x44a61e(0x21b)],'resourceId':_0x10a5e9['id']},_0x531066[_0x44a61e(0x227)]);break;case _0x531066[_0x44a61e(0x211)]:break;default:this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x1f3),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id'],'resourceType':_0x10a5e9[_0x44a61e(0x22e)]}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}else this[_0x44a61e(0x1ff)](_0x44a61e(0x202),{'error':new _0x3c6ee9(_0x44a61e(0x207),this,{'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']}),'resourceId':_0x10a5e9['id'],'sourceId':_0x287de2['id']});}static[_0xad7835(0x1e7)](_0x1e2bf8,_0x31efa0){const _0x461b29=_0xad7835;switch(_0x1e2bf8[_0x461b29(0x22e)]){case _0xae2625[_0x461b29(0x1da)]:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x1d7)});case _0xae2625[_0x461b29(0x220)]:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x22f)});default:return new File([_0x1e2bf8[_0x461b29(0x1fd)]],_0x31efa0,{'type':_0x461b29(0x21e)});}}static[_0xad7835(0x1fc)](_0xe58be1){const _0x14999f=_0xad7835;switch(_0xe58be1[_0x14999f(0x22e)]){case _0x531066[_0x14999f(0x1ed)]:return{'type':_0x531066[_0x14999f(0x1ed)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x1ce)]:return{'type':_0x531066[_0x14999f(0x1ce)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x216)]:return{'type':_0x531066[_0x14999f(0x216)],'id':_0xe58be1['id'],..._0xe58be1[_0x14999f(0x215)]?.[_0x14999f(0x230)]&&{'selection':_0xe58be1[_0x14999f(0x215)]}};case _0x531066[_0x14999f(0x227)]:return{'type':_0x531066[_0x14999f(0x1ed)],'id':_0xe58be1['id']};case _0x531066[_0x14999f(0x211)]:{const _0x3e45eb=_0xe58be1;return{'type':_0x531066[_0x14999f(0x211)],'mcpServerName':_0x3e45eb[_0x14999f(0x1f9)],'toolName':_0x3e45eb[_0x14999f(0x1b2)],'data':_0x3e45eb[_0x14999f(0x1ee)],'id':_0x3e45eb['id']};}default:return null;}}[_0xad7835(0x1f5)](_0x44fcf4,_0x36639b=!0x1){const _0x1ff2f8=_0xad7835;if(this[_0x1ff2f8(0x1c4)][_0x1ff2f8(0x1f8)](_0x44fcf4[_0x1ff2f8(0x1e9)],_0x44fcf4),_0x44fcf4[_0x1ff2f8(0x1b3)]||this[_0x1ff2f8(0x1ff)](_0x1ff2f8(0x1e1),{'contextItem':_0x44fcf4,'isLoading':_0x36639b}),_0x1ff2f8(0x1dc)===_0x44fcf4[_0x1ff2f8(0x1e9)]&&this[_0x1ff2f8(0x1f1)](),_0x44fcf4[_0x1ff2f8(0x1db)]){const _0x40ded6=this[_0x1ff2f8(0x201)](_0x44fcf4[_0x1ff2f8(0x1db)]);_0x40ded6&&_0x40ded6[_0x1ff2f8(0x1c6)](_0x387c3a=>{const _0x3047cb=_0x1ff2f8;this[_0x3047cb(0x1cf)](_0x387c3a,_0x44fcf4[_0x3047cb(0x1db)],!0x0);});}}[_0xad7835(0x22d)](_0x3ddd17){const _0x30eb6c=_0xad7835,_0x39c0b0=this[_0x30eb6c(0x1c4)][_0x30eb6c(0x217)](_0x3ddd17),_0xa8ddd0=this[_0x30eb6c(0x21a)][_0x30eb6c(0x217)](_0x3ddd17);if(_0xa8ddd0&&(_0xa8ddd0[_0x30eb6c(0x214)](),this[_0x30eb6c(0x21a)][_0x30eb6c(0x1b0)](_0x3ddd17)),_0x39c0b0?.[_0x30eb6c(0x1db)]){const _0x3b3040=this[_0x30eb6c(0x201)](_0x39c0b0[_0x30eb6c(0x1db)]);_0x3b3040&&_0x3b3040[_0x30eb6c(0x1c6)](_0xd39190=>{const _0x1cc479=_0x30eb6c;this[_0x1cc479(0x1cf)](_0xd39190,_0x39c0b0[_0x1cc479(0x1db)],!0x1);});}this[_0x30eb6c(0x1c4)][_0x30eb6c(0x1b0)](_0x3ddd17),this[_0x30eb6c(0x1ff)](_0x30eb6c(0x1e4),{'uiId':_0x3ddd17,'type':_0x39c0b0?.[_0x30eb6c(0x22e)]}),_0x30eb6c(0x1dc)===_0x3ddd17&&this[_0x30eb6c(0x1f1)]();}[_0xad7835(0x1b4)](_0xa5f0b8,_0x28b121){const _0x248f54=_0xad7835;if(this[_0x248f54(0x1c4)][_0x248f54(0x22b)](_0xa5f0b8[_0x248f54(0x1e9)])&&(this[_0x248f54(0x1c4)][_0x248f54(0x1f8)](_0xa5f0b8[_0x248f54(0x1e9)],_0xa5f0b8),this[_0x248f54(0x1ff)](_0x248f54(0x1b6),{'contextItem':_0xa5f0b8,'isLoading':_0x28b121}),_0xa5f0b8[_0x248f54(0x1db)])){const _0x33393d=this[_0x248f54(0x201)](_0xa5f0b8[_0x248f54(0x1db)]);_0x33393d&&_0x33393d[_0x248f54(0x1c6)](_0x4a5704=>{const _0x5d5290=_0x248f54;this[_0x5d5290(0x1cf)](_0x4a5704,_0xa5f0b8[_0x5d5290(0x1db)],!0x0);});}}[_0xad7835(0x213)](_0x169ac7){const _0x42cfa2=_0xad7835;this[_0x42cfa2(0x239)][_0x42cfa2(0x1f8)](_0x169ac7[_0x42cfa2(0x1e9)],_0x169ac7);}[_0xad7835(0x212)](){const _0xc239a4=_0xad7835;this[_0xc239a4(0x1e8)]={'document':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1e3)]?.[_0xc239a4(0x1fe)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1d3)]?.[_0xc239a4(0x1fe)]},'files':{'enabled':!0x1!==this[_0xc239a4(0x232)]?.[_0xc239a4(0x1c8)]?.[_0xc239a4(0x1fe)]},'sources':this[_0xc239a4(0x218)](),'customItems':this[_0xc239a4(0x232)]?.[_0xc239a4(0x23c)]?.[_0xc239a4(0x1ab)](_0x3b9a09=>({..._0x3b9a09,'enabled':!0x0}))??[]},this[_0xc239a4(0x1ff)](_0xc239a4(0x1d6),{'options':this[_0xc239a4(0x1e8)]});}[_0xad7835(0x218)](){const _0x3309e9=_0xad7835;return this[_0x3309e9(0x232)]?.[_0x3309e9(0x1d5)]?.[_0x3309e9(0x1ab)](_0x570644=>({..._0x570644,'resources':[]}))??[];}[_0xad7835(0x1f1)](){const _0x1d756c=_0xad7835,_0x1fe72d=this[_0x1d756c(0x1a9)]()||this[_0x1d756c(0x208)]();this[_0x1d756c(0x1e8)][_0x1d756c(0x1e3)][_0x1d756c(0x1ec)]=_0x1fe72d,this[_0x1d756c(0x1ff)](_0x1d756c(0x1d6),{'options':this[_0x1d756c(0x1e8)]});}[_0xad7835(0x1b7)](_0x291a72){const _0x2e69b3=_0xad7835;for(const _0x4230e5 of this[_0x2e69b3(0x1c4)][_0x2e69b3(0x1d4)]())if(_0x4230e5[_0x2e69b3(0x1db)]===_0x291a72)return!0x0;for(const _0x1fdcf1 of this[_0x2e69b3(0x239)][_0x2e69b3(0x1d4)]())if(_0x1fdcf1[_0x2e69b3(0x1db)]===_0x291a72)return!0x0;return!0x1;}[_0xad7835(0x201)](_0xefcd45){const _0x4c0f85=_0xad7835,_0x1c8886=[];for(const _0x19f442 of this[_0x4c0f85(0x1e8)][_0x4c0f85(0x1d5)]){_0x19f442[_0x4c0f85(0x204)][_0x4c0f85(0x1ac)](_0x213f1c=>_0x213f1c['id']===_0xefcd45)&&_0x1c8886[_0x4c0f85(0x1ba)](_0x19f442['id']);}return 0x0===_0x1c8886[_0x4c0f85(0x230)]?null:_0x1c8886;}[_0xad7835(0x1cf)](_0x99d9b2,_0x56c4d2,_0x5ddae1){const _0x4c091e=_0xad7835,_0x477381=this[_0x4c091e(0x1e8)][_0x4c091e(0x1d5)][_0x4c091e(0x1ac)](_0x5a2d5b=>_0x5a2d5b['id']===_0x99d9b2);if(!_0x477381)return;const _0x57d71e=_0x477381[_0x4c091e(0x204)][_0x4c091e(0x1ac)](_0xd82c17=>_0xd82c17['id']===_0x56c4d2);_0x57d71e&&(_0x57d71e[_0x4c091e(0x1fa)]=_0x5ddae1,this[_0x4c091e(0x1ff)](_0x4c091e(0x23b),{'sourceId':_0x99d9b2,'resourceId':_0x56c4d2,'isInContext':_0x5ddae1}));}[_0xad7835(0x225)](_0x59fb52){const _0x55c99a=_0xad7835;this[_0x55c99a(0x1d2)][_0x55c99a(0x1f8)](_0x59fb52,!0x0),this[_0x55c99a(0x1d2)][_0x55c99a(0x237)]&&this[_0x55c99a(0x1ff)](_0x55c99a(0x1cb),{'isUploadInProgress':!0x0});}[_0xad7835(0x1ca)](_0x2b04b9){const _0x50bbcc=_0xad7835;this[_0x50bbcc(0x1d2)][_0x50bbcc(0x1b0)](_0x2b04b9),0x0===this[_0x50bbcc(0x1d2)][_0x50bbcc(0x237)]&&this[_0x50bbcc(0x1ff)](_0x50bbcc(0x1cb),{'isUploadInProgress':!0x1});}}
|