@ckeditor/ckeditor5-ai 47.2.0-alpha.6 → 47.2.0-alpha.7
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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +10 -2
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5617(_0x25c10b,_0x282e03){const _0x120442=_0x1204();return _0x5617=function(_0x5617b6,_0x550a98){_0x5617b6=_0x5617b6-0x100;let _0x3f05f1=_0x120442[_0x5617b6];return _0x3f05f1;},_0x5617(_0x25c10b,_0x282e03);}const _0x14556d=_0x5617;(function(_0x329b85,_0x12a668){const _0x41743e=_0x5617,_0x57a127=_0x329b85();while(!![]){try{const _0x1d8949=parseInt(_0x41743e(0x10a))/0x1*(parseInt(_0x41743e(0x113))/0x2)+-parseInt(_0x41743e(0x105))/0x3*(-parseInt(_0x41743e(0x117))/0x4)+parseInt(_0x41743e(0x10f))/0x5+-parseInt(_0x41743e(0x11b))/0x6*(-parseInt(_0x41743e(0x115))/0x7)+parseInt(_0x41743e(0x110))/0x8*(parseInt(_0x41743e(0x108))/0x9)+parseInt(_0x41743e(0x101))/0xa*(-parseInt(_0x41743e(0x10c))/0xb)+-parseInt(_0x41743e(0x119))/0xc;if(_0x1d8949===_0x12a668)break;else _0x57a127['push'](_0x57a127['shift']());}catch(_0x4365da){_0x57a127['push'](_0x57a127['shift']());}}}(_0x1204,0x52343));import{ToolbarView as _0x25bbbc,ButtonView as _0x68de08}from'ckeditor5/src/ui.js';function _0x1204(){const _0xbb62ed=['21PJWdwP','_createButton','AI_BALLOON_APPLY_BUTTON','4329WeWYPY','suggestButton','7oUvsdg','locale','1050071ImOqrD','ck-ai-balloon__toolbar','ck-ai-button-secondary','3303165KumtYV','7824UHPwrL','ck-ai-button-primary','applyButton','134138xblsUk','add','7357hVplBb','items','199604MJrXRS','isEnabled','24621132uJCflm','bind','3594hZChPz','AI_BALLOON_SUGGEST_BUTTON','20aBjDOM','extendTemplate','set','isLoading'];_0x1204=function(){return _0xbb62ed;};return _0x1204();}import{getTranslation as _0x43cb9e}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x25bbbc{constructor(_0x56a445,_0x4ad16d=!0x0,_0x211691=!0x0){const _0x44b7ad=_0x5617;super(_0x56a445),this[_0x44b7ad(0x103)](_0x44b7ad(0x104),!0x1),_0x4ad16d&&(this[_0x44b7ad(0x112)]=this[_0x44b7ad(0x106)](_0x43cb9e(_0x56a445,_0x44b7ad(0x107)),_0x44b7ad(0x111)),this[_0x44b7ad(0x112)][_0x44b7ad(0x11a)](_0x44b7ad(0x118))['to'](this,_0x44b7ad(0x104),_0x478d2e=>!_0x478d2e),this[_0x44b7ad(0x116)][_0x44b7ad(0x114)](this[_0x44b7ad(0x112)])),_0x211691&&(this[_0x44b7ad(0x109)]=this[_0x44b7ad(0x106)](_0x43cb9e(_0x56a445,_0x44b7ad(0x100)),_0x4ad16d?_0x44b7ad(0x10e):_0x44b7ad(0x111)),this[_0x44b7ad(0x109)][_0x44b7ad(0x11a)](_0x44b7ad(0x118))['to'](this,_0x44b7ad(0x104),_0x552a4a=>!_0x552a4a),this[_0x44b7ad(0x116)][_0x44b7ad(0x114)](this[_0x44b7ad(0x109)])),this[_0x44b7ad(0x102)]({'attributes':{'class':[_0x44b7ad(0x10d)]}});}[_0x14556d(0x106)](_0x9e2d44,_0x1ba763){const _0x2775fc=_0x14556d,_0x3788bd=new _0x68de08(this[_0x2775fc(0x10b)]);return _0x3788bd[_0x2775fc(0x103)]({'label':_0x9e2d44,'class':_0x1ba763||'','isVisible':!0x0,'withText':!0x0}),_0x3788bd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xda34a=_0x252f;(function(_0x48b5ec,_0x5d41f7){const _0x124b81=_0x252f,_0x37c8b6=_0x48b5ec();while(!![]){try{const _0x51e0ce=parseInt(_0x124b81(0x134))/0x1+parseInt(_0x124b81(0x11c))/0x2+parseInt(_0x124b81(0x11b))/0x3*(parseInt(_0x124b81(0x10d))/0x4)+parseInt(_0x124b81(0x139))/0x5*(parseInt(_0x124b81(0x142))/0x6)+-parseInt(_0x124b81(0x156))/0x7*(parseInt(_0x124b81(0x146))/0x8)+-parseInt(_0x124b81(0x113))/0x9+parseInt(_0x124b81(0x125))/0xa*(-parseInt(_0x124b81(0x110))/0xb);if(_0x51e0ce===_0x5d41f7)break;else _0x37c8b6['push'](_0x37c8b6['shift']());}catch(_0x1dfb56){_0x37c8b6['push'](_0x37c8b6['shift']());}}}(_0x4710,0x61b81));import{ButtonView as _0xb4239f,View as _0x1613d0,ViewCollection as _0xca9f44,FocusCycler as _0x2a0ab7}from'ckeditor5/src/ui.js';import{FocusTracker as _0x518e5e,KeystrokeHandler as _0x3aeda3}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x196967,IconPreviousArrow as _0x2c047a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x5d4dfb}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x42bd24}from'./aiballoondisclaimerview.js';import{getTranslation as _0x2fd04d}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0xda34a(0x116),_0xda34a(0x132),_0xda34a(0x117),_0xda34a(0x152)];export class AIBalloonView extends _0x1613d0{[_0xda34a(0x143)];[_0xda34a(0x13d)];[_0xda34a(0x150)];[_0xda34a(0x140)];[_0xda34a(0x13f)];[_0xda34a(0x115)];constructor(_0x425b9a,_0x5e9d4f,_0x53c1ae,_0x17da5a){const _0x5dca4c=_0xda34a;super(_0x425b9a),this[_0x5dca4c(0x140)]=_0x53c1ae,this[_0x5dca4c(0x155)](_0x5dca4c(0x13e),!0x1),this[_0x5dca4c(0x155)](_0x5dca4c(0x147),_0x17da5a),this[_0x5dca4c(0x155)](_0x5dca4c(0x12a),!0x1),this[_0x5dca4c(0x155)](_0x5dca4c(0x12e),''),this[_0x5dca4c(0x143)]=new _0x518e5e(),this[_0x5dca4c(0x13d)]=new _0x3aeda3(),this[_0x5dca4c(0x13f)]=this[_0x5dca4c(0x15d)](),this[_0x5dca4c(0x150)]=new _0x2a0ab7({'focusables':this[_0x5dca4c(0x13f)],'focusTracker':this[_0x5dca4c(0x143)],'keystrokeHandler':this[_0x5dca4c(0x13d)],'actions':{'focusPrevious':_0x5dca4c(0x159),'focusNext':_0x5dca4c(0x11a)}}),this[_0x5dca4c(0x157)]=new _0xca9f44(),this[_0x5dca4c(0x13a)](_0x5e9d4f[_0x5dca4c(0x124)]),this[_0x5dca4c(0x13c)](),this[_0x5dca4c(0x138)](_0x5e9d4f[_0x5dca4c(0x128)],_0x5e9d4f[_0x5dca4c(0x14a)]),this[_0x5dca4c(0x122)][_0x5dca4c(0x135)](_0x5dca4c(0x13e))['to'](this),this[_0x5dca4c(0x13f)][_0x5dca4c(0x15e)](),this[_0x5dca4c(0x13f)][_0x5dca4c(0x15b)]([this[_0x5dca4c(0x122)]]),this[_0x5dca4c(0x123)]({'tag':_0x5dca4c(0x120),'attributes':{'class':_0x5dca4c(0x136)},'children':this[_0x5dca4c(0x157)]}),this['on'](_0x5dca4c(0x12f),()=>{const _0x33f90a=_0x5dca4c;this[_0x33f90a(0x157)][_0x33f90a(0x11f)](this[_0x33f90a(0x122)]),this[_0x33f90a(0x138)](_0x5e9d4f[_0x33f90a(0x128)],_0x5e9d4f[_0x33f90a(0x14a)]);});}[_0xda34a(0x133)](){const _0x587384=_0xda34a;super[_0x587384(0x133)]();for(const _0x269ec2 of this[_0x587384(0x13f)])this[_0x587384(0x143)][_0x587384(0x114)](_0x269ec2[_0x587384(0x12d)]);this[_0x587384(0x13d)][_0x587384(0x10e)](this[_0x587384(0x12d)]);}[_0xda34a(0x144)](_0x52774c){const _0x2b8022=_0xda34a;-0x1===_0x52774c?this[_0x2b8022(0x150)][_0x2b8022(0x14f)]():this[_0x2b8022(0x150)][_0x2b8022(0x158)]();}[_0xda34a(0x14c)](){const _0x5e8bbb=_0xda34a;this[_0x5e8bbb(0x13e)]=!0x0;}[_0xda34a(0x121)](){const _0x493f03=_0xda34a;this[_0x493f03(0x13e)]=!0x1;}[_0xda34a(0x14d)](_0x1c33ef){const _0x240154=_0xda34a;this[_0x240154(0x115)]||(this[_0x240154(0x115)]=this[_0x240154(0x14e)](),this[_0x240154(0x157)][_0x240154(0x15b)]([this[_0x240154(0x115)]],0x0)),this[_0x240154(0x12e)]=_0x1c33ef,this[_0x240154(0x12a)]=!0x0;}[_0xda34a(0x126)](){const _0x1df201=_0xda34a;this[_0x1df201(0x12a)]=!0x1;}[_0xda34a(0x154)](_0x3e8713){const _0x3626fe=_0xda34a;this[_0x3626fe(0x14d)](_0x3e8713);}[_0xda34a(0x151)](_0x2cd18a){const _0x3dcc3a=_0xda34a;this[_0x3dcc3a(0x14d)](_0x2cd18a),this[_0x3dcc3a(0x122)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x12b)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x12b)][_0x3dcc3a(0x11e)]=!0x1),this[_0x3dcc3a(0x122)][_0x3dcc3a(0x13b)]&&(this[_0x3dcc3a(0x122)][_0x3dcc3a(0x13b)][_0x3dcc3a(0x11e)]=!0x1));}[_0xda34a(0x149)](_0xc31700){const _0x5f0760=_0xda34a,_0x17d20a=this[_0x5f0760(0x15a)](),_0xa7d7e0=this[_0x5f0760(0x129)]();_0xc31700[_0x5f0760(0x12c)][_0x5f0760(0x111)][_0x5f0760(0x112)][_0x5f0760(0x114)](_0x17d20a,0x2),_0xc31700[_0x5f0760(0x12c)][_0x5f0760(0x111)][_0x5f0760(0x112)][_0x5f0760(0x114)](_0xa7d7e0,0x0),this[_0x5f0760(0x13f)][_0x5f0760(0x15b)]([_0x17d20a,_0xa7d7e0]),this[_0x5f0760(0x143)][_0x5f0760(0x114)](_0x17d20a[_0x5f0760(0x12d)]),this[_0x5f0760(0x143)][_0x5f0760(0x114)](_0xa7d7e0[_0x5f0760(0x12d)]);}[_0xda34a(0x13a)](_0xf64f95){const _0x208d7e=_0xda34a;this[_0x208d7e(0x10c)]=_0xf64f95,this[_0x208d7e(0x157)][_0x208d7e(0x114)](this[_0x208d7e(0x10c)]);}[_0xda34a(0x11d)](_0xfcf00e){const _0xa1ade7=_0xda34a,_0x4916b6=this[_0xa1ade7(0x157)][_0xa1ade7(0x118)](this[_0xa1ade7(0x10c)]);this[_0xa1ade7(0x157)][_0xa1ade7(0x11f)](this[_0xa1ade7(0x10c)]),this[_0xa1ade7(0x10c)]=_0xfcf00e,this[_0xa1ade7(0x157)][_0xa1ade7(0x114)](this[_0xa1ade7(0x10c)],_0x4916b6),this[_0xa1ade7(0x126)]();}[_0xda34a(0x13c)](){const _0x2378b4=_0xda34a;this[_0x2378b4(0x153)]=new _0x42bd24(this[_0x2378b4(0x119)]),this[_0x2378b4(0x157)][_0x2378b4(0x114)](this[_0x2378b4(0x153)]);}[_0xda34a(0x138)](_0x1f1618=!0x0,_0x5ce054=!0x0){const _0x1ede41=_0xda34a;_0x1f1618=_0x1f1618&&!this[_0x1ede41(0x147)]&&this[_0x1ede41(0x140)][_0x1ede41(0x130)](_0x1ede41(0x116)),_0x5ce054=_0x5ce054&&this[_0x1ede41(0x140)][_0x1ede41(0x130)](_0x1ede41(0x132)),this[_0x1ede41(0x122)]=new _0x5d4dfb(this[_0x1ede41(0x119)],_0x1f1618,_0x5ce054),this[_0x1ede41(0x122)][_0x1ede41(0x12b)]?.['on'](_0x1ede41(0x14b),()=>{const _0x55b3cd=_0x1ede41;this[_0x55b3cd(0x10b)](_0x55b3cd(0x116));}),this[_0x1ede41(0x122)][_0x1ede41(0x13b)]?.['on'](_0x1ede41(0x14b),()=>{const _0x2b94b0=_0x1ede41;this[_0x2b94b0(0x10b)](_0x2b94b0(0x132));}),this[_0x1ede41(0x157)][_0x1ede41(0x114)](this[_0x1ede41(0x122)]);}[_0xda34a(0x15a)](){const _0xfa0c8f=_0xda34a,_0xed99b0=new _0xb4239f(this[_0xfa0c8f(0x119)]);return _0xed99b0[_0xfa0c8f(0x155)]({'icon':_0x196967,'tooltip':_0x2fd04d(this[_0xfa0c8f(0x119)],_0xfa0c8f(0x131))}),_0xed99b0['on'](_0xfa0c8f(0x14b),()=>{const _0x3d26c5=_0xfa0c8f;this[_0x3d26c5(0x10b)](_0x3d26c5(0x117));}),_0xed99b0;}[_0xda34a(0x129)](){const _0x91e5f7=_0xda34a,_0x5f3c7e=new _0xb4239f(this[_0x91e5f7(0x119)]);return _0x5f3c7e[_0x91e5f7(0x155)]({'icon':_0x2c047a,'tooltip':_0x2fd04d(this[_0x91e5f7(0x119)],_0x91e5f7(0x148))}),_0x5f3c7e['on'](_0x91e5f7(0x14b),()=>{const _0x3a8e7d=_0x91e5f7;this[_0x3a8e7d(0x10b)](_0x3a8e7d(0x152));}),_0x5f3c7e;}[_0xda34a(0x14e)](){const _0x2fc9e4=_0xda34a,_0x19f593=new _0x1613d0(this[_0x2fc9e4(0x119)]),_0x2870cd=new _0x1613d0(this[_0x2fc9e4(0x119)]);return _0x2870cd[_0x2fc9e4(0x123)]({'tag':_0x2fc9e4(0x137),'attributes':{'class':['ck',_0x2fc9e4(0x10f)]},'children':[{'text':this[_0x2fc9e4(0x145)]['to'](_0x2fc9e4(0x12e))}]}),_0x19f593[_0x2fc9e4(0x123)]({'tag':_0x2fc9e4(0x120),'attributes':{'class':['ck',_0x2fc9e4(0x127),_0x2fc9e4(0x15c),this[_0x2fc9e4(0x145)]['if'](_0x2fc9e4(0x12a),_0x2fc9e4(0x141),_0x19d310=>!_0x19d310)]},'children':[_0x2870cd]}),_0x19f593;}}function _0x252f(_0x428b1e,_0x4dfc47){const _0x471040=_0x4710();return _0x252f=function(_0x252fb2,_0xfcbedf){_0x252fb2=_0x252fb2-0x10b;let _0x277daf=_0x471040[_0x252fb2];return _0x277daf;},_0x252f(_0x428b1e,_0x4dfc47);}function _0x4710(){const _0x541e4b=['_availableActions','ck-hidden','13296RorRHv','focusTracker','focus','bindTemplate','182696BLuiEk','isTrackChangesOn','AI_BALLOON_PREVIOUS_TOOLTIP','setupRotator','showSuggestButton','execute','setLoading','showError','_createErrorView','focusLast','focusCycler','showBlockingError','showPrevious','disclaimerView','showRecoverableError','set','7cPoIPT','_dialogContent','focusFirst','shift\x20+\x20tab','_createNextButtonView','addMany','ai-balloon-error','createCollection','clear','fire','_mainView','168464nNVXzX','listenTo','ck-ai-suggestion__error-text','1187153wGaGVK','headerView','children','2208924RVArCD','add','_errorView','applySuggestion','showNext','getIndex','locale','tab','3GXoCKR','1377646YlAQVb','updateContent','isEnabled','remove','div','clearLoading','toolbar','setTemplate','mainView','110HSBbDd','hideError','ck-ai-suggestion__error','showApplyButton','_createPreviousButtonView','isErrorVisible','applyButton','view','element','errorMessage','change:isTrackChangesOn','includes','AI_BALLOON_NEXT_TOOLTIP','insertSuggestion','render','493184dxZqme','bind','ai-balloon-content','span','_addToolbar','1425TEAQZh','_addContentView','suggestButton','_addDisclaimerView','keystrokes','isLoading','_focusables'];_0x4710=function(){return _0x541e4b;};return _0x4710();}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x9bfad5=_0x59f3;(function(_0x35bae7,_0x121b13){var _0x196e29=_0x59f3,_0x58ae3d=_0x35bae7();while(!![]){try{var _0x460344=-parseInt(_0x196e29(0x7a))/0x1+parseInt(_0x196e29(0x79))/0x2*(-parseInt(_0x196e29(0x71))/0x3)+parseInt(_0x196e29(0x76))/0x4*(-parseInt(_0x196e29(0x73))/0x5)+parseInt(_0x196e29(0x8a))/0x6+-parseInt(_0x196e29(0x83))/0x7*(parseInt(_0x196e29(0x86))/0x8)+parseInt(_0x196e29(0x87))/0x9+parseInt(_0x196e29(0x74))/0xa*(parseInt(_0x196e29(0x78))/0xb);if(_0x460344===_0x121b13)break;else _0x58ae3d['push'](_0x58ae3d['shift']());}catch(_0x5212da){_0x58ae3d['push'](_0x58ae3d['shift']());}}}(_0x562d,0xd5bb5));import{ContextPlugin as _0x24b07d}from'ckeditor5/src/core.js';import{AIChatController as _0x2d93c9}from'./aichatcontroller.js';import{AIEditing as _0x4b832e}from'../aicore/aiediting.js';function _0x562d(){var _0x3f8e5f=['addSelectionToChatContext','7RwzDjt','pluginName','ai.chat.context','212368ropSxw','12315051iwWRGA','isPremiumPlugin','requires','7145940UfFYpM','ai.chat.models','context','13557Zqlagt','sendMessage','2034915XDeMdd','10OekWAy','define','12dCtKTC','AIChat','7572213paoIOB','224Eglryz','618644eyJfTZ','startConversation','isOfficialPlugin','removeSelectionFromChatContext','plugins','config','get','focusPromptInput'];_0x562d=function(){return _0x3f8e5f;};return _0x562d();}import{AIChatUI as _0x2b5dfd}from'./aichatui.js';function _0x59f3(_0xeb7adf,_0x43f427){var _0x562d9d=_0x562d();return _0x59f3=function(_0x59f32a,_0x4340ee){_0x59f32a=_0x59f32a-0x6f;var _0x2cb827=_0x562d9d[_0x59f32a];return _0x2cb827;},_0x59f3(_0xeb7adf,_0x43f427);}import{AIChatHistory as _0xe053f9}from'../aichathistory/aichathistory.js';export class AIChat extends _0x24b07d{static get[_0x9bfad5(0x89)](){return[_0x2d93c9,_0x4b832e,_0x2b5dfd,_0xe053f9];}static get[_0x9bfad5(0x84)](){var _0x48487b=_0x9bfad5;return _0x48487b(0x77);}static get[_0x9bfad5(0x7c)](){return!0x0;}static get[_0x9bfad5(0x88)](){return!0x0;}constructor(_0x564305){var _0x51d70c=_0x9bfad5;super(_0x564305),this[_0x51d70c(0x70)][_0x51d70c(0x7f)][_0x51d70c(0x75)](_0x51d70c(0x85),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x51d70c(0x70)][_0x51d70c(0x7f)][_0x51d70c(0x75)](_0x51d70c(0x6f),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x9bfad5(0x82)](){var _0x427b0c=_0x9bfad5;await this[_0x427b0c(0x70)][_0x427b0c(0x7e)][_0x427b0c(0x80)](_0x2d93c9)[_0x427b0c(0x82)]();}async[_0x9bfad5(0x7b)](){var _0x2d9f08=_0x9bfad5;await this[_0x2d9f08(0x70)][_0x2d9f08(0x7e)][_0x2d9f08(0x80)](_0x2d93c9)[_0x2d9f08(0x7b)]();}async[_0x9bfad5(0x72)]({message:_0x222050,quickActionData:_0x71b045}){var _0x14e109=_0x9bfad5;await this[_0x14e109(0x70)][_0x14e109(0x7e)][_0x14e109(0x80)](_0x2d93c9)[_0x14e109(0x72)]({'message':_0x222050,'quickActionData':_0x71b045});}[_0x9bfad5(0x7d)](){var _0x1a1645=_0x9bfad5;this[_0x1a1645(0x70)][_0x1a1645(0x7e)][_0x1a1645(0x80)](_0x2d93c9)[_0x1a1645(0x7d)]();}[_0x9bfad5(0x81)](){var _0x23e718=_0x9bfad5;this[_0x23e718(0x70)][_0x23e718(0x7e)][_0x23e718(0x80)](_0x2d93c9)[_0x23e718(0x81)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x25a398=_0x1bdc;(function(_0x50b5b9,_0x2b04f2){const _0x2e4b43=_0x1bdc,_0x3cb071=_0x50b5b9();while(!![]){try{const _0x50a723=-parseInt(_0x2e4b43(0xb2))/0x1+-parseInt(_0x2e4b43(0xf6))/0x2+parseInt(_0x2e4b43(0x190))/0x3*(-parseInt(_0x2e4b43(0x18d))/0x4)+-parseInt(_0x2e4b43(0x1a2))/0x5+-parseInt(_0x2e4b43(0x1a0))/0x6*(parseInt(_0x2e4b43(0xd4))/0x7)+parseInt(_0x2e4b43(0x198))/0x8+parseInt(_0x2e4b43(0xfa))/0x9*(parseInt(_0x2e4b43(0x12a))/0xa);if(_0x50a723===_0x2b04f2)break;else _0x3cb071['push'](_0x3cb071['shift']());}catch(_0x564cb8){_0x3cb071['push'](_0x3cb071['shift']());}}}(_0xb78f,0x22549));function _0x1bdc(_0x765218,_0x311ec6){const _0xb78f4c=_0xb78f();return _0x1bdc=function(_0x1bdc8c,_0x4b3e59){_0x1bdc8c=_0x1bdc8c-0x8b;let _0x58712e=_0xb78f4c[_0x1bdc8c];return _0x58712e;},_0x1bdc(_0x765218,_0x311ec6);}import{ContextPlugin as _0x2a1ed4,Editor as _0x134520}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f76cf,logError as _0x3137f4,scrollViewportToShowTarget as _0x5617d7,uid as _0x595c6f}from'ckeditor5/src/utils.js';import{AIConnector as _0x3e5c48}from'../aicore/aiconnector.js';import{AITabs as _0x524faf}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3179cb}from'./model/aichatconversation.js';import{getTranslation as _0x173f0d}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x37f8dc}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x355632}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x4aff6e}from'./model/aichatmodels.js';import{getEditorFromContext as _0x393c5e}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x371863,DATA_ID_MODEL_ATTRIBUTE as _0x3917ae}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xcf2aa6,getOperationsFromReply as _0x18b0ad}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x290fe1,getMinimalSelection as _0xe3e823}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2ee8c7,_DetachOperation as _0x36cdc0}from'ckeditor5/src/engine.js';import{findOne as _0x3da40a,getAttribute as _0x3347f9,serialize as _0x2ee9ca,Document as _0x5a4c80,findByAttribute as _0x2d6a67}from'../aicore/utils/htmlparser.js';function _0xb78f(){const _0x2e7ff1=['_aiEditing','clearPendingContextUI','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','map','ai-chat-conversation-init-failed','nextSibling','indexes','forEach','editors','current-document','mouseOverSuggestion','addContextItem','resizedTabs','state','getDiff','interactionDestroyed','addCurrentDocumentToContext','getChild','open','chat','_flushLastInteractionUI','resetConversationTitle','isDisabled','resourceId','AIChatController','AI_CHAT_RESOURCE_LOAD_FAILED','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','updateCapabilities','sourceResourcesLoaded','revert','228PTKiPQ','getDocumentContext','_balloonShowDiff','11925wHdyCM','streaming','AIEditing','listenTo','resource','sources','addFeedItemAISuggestion','Showing\x20conversation\x20history...','299208EptCoX','updateContent','ai-chat-url-upload-failed','documentContextContent','startConversation','isUploadInProgress','showPrevious','showFakeVisualSelection','6tDlHlf','_updateRatings','1079345uoxomh','insertSuggestion','AIConnector','dialogClosed','scrollFeedToSuggestion','Failed\x20to\x20load\x20conversation','interactionStarted','delete','addOperation','_aiConnector','view','set','indexOf','ai-chat-controller-mouse-over','conversationInitialized','toString','addSelectionToContext','model','like','interactionId','config','messageId','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','uiId','isLoading','main','setSelectedModel','toViewRange','resize','_handleUIUserMessage','lastInteraction','data','ai.chat.models.displayedModels','createPositionFromPath','history','abortPromptStream','mapper','getGroupId','addFeedItemStaticMessage','ai-conversation-','_integrateEditor','_toggleWebSearch','AI_CHAT_CONTEXT_INVALID_DATA','resetMessageInput','stopListening','reasoningFinished','_applySuggestion','baseVersion','range','unshift','path','getRanges','content','domConverter','removeSelectionFromChatContext','AI_CHAT_GENERIC_ERROR','_batchToChanges','selection','getMarkersGroup','AITabs','ai-chat-conversation-start-failed','updateFeedItemAIReplyContent','dislike','addFeedItemUserMessage','AI_BALLOON_HEADER_TITLE','_applyOperationsAsSuggestions','_scrollToSuggestionRange','capabilitiesUpdated','$graveyard','removeFromContext','ai-chat-context-unsupported-type','log','filter','toggleSuggestionDisplayMode','ai-chat-controller-no-active-conversation','_insertSuggestion','uploadProgressChanged','pluginName','contextItemRemoved','addResourceToContext','getFirstRange','replyCreated','ai-chat-resource-load-failed','handleUserInteraction','createRange','split','setIsMaximized','modification-delta','handleRemovedConversation','anchorId','replyId','upsertAIChatRating','selectModel','TrackChanges','new','applySuggestion','DocumentCompare','message','addUrlToContext','sendMessage','modelSelected','query','AI_CHAT_ABORTED_MESSAGE','setLoadingMessage','text-delta','loadSourceResources','from','removeContextItem','maxOffset','isPremiumPlugin','find','239185lUHvAf','AI_CHAT_UNABLE_TO_START_CONVERSATION','static','toggleReasoning','accepted','getChildAtOffset','requires','setConversationTitle','setChangeGroupState','updateFeedItemAIReplySources','_aiChatUi','Undo','getTransformedByOperation','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','version','slice','addFeedItemAIReply','_aiChatModels','replies','resizeTabs','children','_logError','pending','hasChanges','_setIsMaximized','ai.chat.context','addFeedInteractionHeader','undo','interactionFinished','_createFromRanges','rejectSuggestion','findIndex','getOperations','viewRangeToDom','1910167odQYzI','activateTab','rejected','removeMarker','activeConversation','replyChangeGroupStateUpdated','disableControls','ai.chat.models.defaultModelId','document','batch','Liked\x20response','AI_CHAT_UNTITLED_CONVERSATION','isOpen','alignToTop','isCurrentDocumentInContext','close','ai-chat-context-invalid-data','sourcePosition','toggleWebSearch','getPath','marker','options','stopInteraction','getRoot','updateFeedItemAIReplySuggestionPartState','ready','outdated','TrackChangesEditing','collaboration.channelId','mouseLeaveSuggestion','root','addFilesToContext','setModel','ai-no-track-changes','1086IqNHSw','populateSourceResourceBalloon','_removeFromContext','applyOperation','7389bUvhgs','clearConversationContextUI','createPositionAt','interactionCreated','change','locale','showNext','startInteraction','isCurrentDocumentInConversation','showChangeInText','setConversationContext','_showConversationHistory','toggleLoadingSkeleton','addFileToContext','context','_toggleReasoning','setIsUploadInProgress','ai-chat-missing-channel-id','startsWith','ai-chat-source-resources-load-failed','isInContext','end','removeFeedInteraction','editing','has','updateConversationTitle','changes','getInteractionAndReplyById','closeSourceResourceBalloon','replyContentUpdated','addFeedItemError','commands','add','_handleStartConversation','ai-chat-file-upload-failed','data-id','plugins','addDocumentToContext','changeGroups','remove','setContextItemLoading','addSelectionToChatContext','updateFeedItemAIReplySuggestionContent','get','type','markers','_openBalloonFor','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','12890oEXlrM','contextItem','contextItems','getContentParts','ai-request-aborted','isStarted','contextItemAdded','loadConversation','AIChatUI','Disliked\x20response','full','push','hideFakeVisualSelection','finishInteraction','webSearchFinished','isDocumentOperation','sourceId','webSearchStarted','_previewedChangeGroup','parse','_getDocumentRangeForReplyChanges','_removeAISelectionMarkers','showDiff','afterInit','setFeedItemRenderingStrategy','length','contextSent','addContextOptionsChanged','index','getChildren','getInteraction','partIndex','_stopLastInteraction','reasoningStarted','updateResourceState','cloneNode','error','_startConversationSafely','selectedModel','start','getSelectionText','stop','node','startAutoScroll','isOfficialPlugin','uid','isModelAvailable','enableControls','removeSelectionFromContext','focusPromptInput','resourceStateChanged','createConversation','redo','rootName','ai.availableReplyActions','setAddContextOptions','source','_updateReplyContent','getAttribute','getDocumentData','init','sendUserMessage','getReply','removed','resources','contextItemLoadingEnded','load','howMany','updateCurrentDocumentInContext'];_0xb78f=function(){return _0x2e7ff1;};return _0xb78f();}import{IconAI as _0x273c5b}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x2f31e4}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4b4bd2}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x2a1ed4{[_0x25a398(0x16f)];[_0x25a398(0x1ab)];[_0x25a398(0xbc)];[_0x25a398(0xc3)];[_0x25a398(0x1da)]=new Map();[_0x25a398(0x13c)]=null;[_0x25a398(0x18f)]=!0x1;static get[_0x25a398(0xb8)](){return[_0x3e5c48,_0x4b4bd2,_0x371863];}static get[_0x25a398(0x90)](){const _0x37616e=_0x25a398;return _0x37616e(0x187);}static get[_0x25a398(0x156)](){return!0x0;}static get[_0x25a398(0xb0)](){return!0x0;}[_0x25a398(0x166)](){const _0x4775dd=_0x25a398;this[_0x4775dd(0x1ab)]=this[_0x4775dd(0x108)][_0x4775dd(0x11e)][_0x4775dd(0x125)](_0x4775dd(0x1a4)),this[_0x4775dd(0xbc)]=this[_0x4775dd(0x108)][_0x4775dd(0x11e)][_0x4775dd(0x125)](_0x4775dd(0x132)),this[_0x4775dd(0x16f)]=this[_0x4775dd(0x108)][_0x4775dd(0x11e)][_0x4775dd(0x125)](_0x4775dd(0x192)),this[_0x4775dd(0xc3)]=new _0x4aff6e({'connector':this[_0x4775dd(0x1ab)],'availableModels':this[_0x4775dd(0x108)][_0x4775dd(0x1b6)][_0x4775dd(0x125)](_0x4775dd(0x1c2)),'defaultModelId':this[_0x4775dd(0x108)][_0x4775dd(0x1b6)][_0x4775dd(0x125)](_0x4775dd(0xdb))});const _0x192971=this[_0x4775dd(0x108)][_0x4775dd(0x11e)][_0x4775dd(0x125)](_0x4775dd(0x1dd));this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x19c),()=>{const _0x27c61c=_0x4775dd;this[_0x27c61c(0x14f)]();}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x167),(_0x193544,_0x536fe0)=>{const _0x4752d1=_0x4775dd;this[_0x4752d1(0x1bf)]({'userMessage':_0x536fe0});}),this[_0x4775dd(0x193)](_0x192971,_0x4775dd(0x17b),(_0x57108a,_0x7bd600)=>{const _0x1ab89b=_0x4775dd;this[_0x1ab89b(0xca)](_0x7bd600);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xc5),()=>{const _0x1c1946=_0x4775dd;_0x192971[_0x1c1946(0x1be)]();}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x1c5),async()=>{const _0x5eb86b=_0x4775dd;await this[_0x5eb86b(0x14a)](),await this[_0x5eb86b(0x183)]();}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x11f),()=>{const _0x126d6c=_0x4775dd;this[_0x126d6c(0xd8)]?.[_0x126d6c(0x17f)](_0x173f0d(this[_0x126d6c(0x108)][_0x126d6c(0xff)],_0x126d6c(0x189)));}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x107),(_0x517f95,_0x5ce1f8)=>{const _0x542101=_0x4775dd;this[_0x542101(0xd8)]?.[_0x542101(0xf3)](Array[_0x542101(0xad)](_0x5ce1f8));}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xa5),(_0x541edf,_0x5a72bf)=>{const _0x1ae5a5=_0x4775dd;this[_0x1ae5a5(0xd8)]?.[_0x1ae5a5(0xa5)](_0x5a72bf);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x92),(_0x1dfd92,_0x1c42fd)=>{const _0x10c1a9=_0x4775dd;this[_0x10c1a9(0xd8)]?.[_0x10c1a9(0x92)](_0x1c42fd[_0x10c1a9(0x162)],_0x1c42fd[_0x10c1a9(0x194)]);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xae),(_0x25e630,_0x27b2fe)=>{const _0x32aa66=_0x4775dd;this[_0x32aa66(0xf8)](_0x27b2fe);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xac),(_0x4ebf47,_0x3d33e8)=>{const _0x30c4f2=_0x4775dd;this[_0x30c4f2(0xd8)]?.[_0x30c4f2(0xac)](_0x3d33e8[_0x30c4f2(0x13a)],_0x3d33e8[_0x30c4f2(0xa8)],_0x3d33e8[_0x30c4f2(0x157)]);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xe6),()=>{const _0x532911=_0x4775dd;this[_0x532911(0x1cb)]();}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xb5),()=>{const _0x12a0ab=_0x4775dd;this[_0x12a0ab(0x109)]();}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x9f),(_0x2c3c95,_0x3c0988)=>{const _0x25ba59=_0x4775dd;this[_0x25ba59(0xd8)]?.[_0x25ba59(0xf4)](_0x3c0988);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x1b4),(_0x9a3979,{replyId:_0x52c9a7})=>{const _0x585201=_0x4775dd;console[_0x585201(0x1e9)](_0x585201(0xde),_0x52c9a7);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x1e0),(_0x202c70,{replyId:_0x2d64a6})=>{const _0x316bf3=_0x4775dd;console[_0x316bf3(0x1e9)](_0x316bf3(0x133),_0x2d64a6);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x1a3),(_0xb94450,_0x318498)=>{const _0x4eaa45=_0x4775dd;this[_0x4eaa45(0x108)][_0x4eaa45(0x11e)][_0x4eaa45(0x125)](_0x4b4bd2)[_0x4eaa45(0xe3)](),this[_0x4eaa45(0x8e)](_0x318498);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x103),(_0x40a5c6,{replyId:_0x489b20,partIndex:_0x30ed33})=>{const _0x318e8b=_0x4775dd;this[_0x318e8b(0x18f)]=this[_0x318e8b(0xbc)][_0x318e8b(0x140)],this[_0x318e8b(0x128)](_0x489b20,_0x30ed33);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x179),(_0x410e9a,{replyId:_0x2b136b,partIndex:_0x149f71})=>{const _0x4e5d28=_0x4775dd,_0x2e5822=this[_0x4e5d28(0x13e)](_0x2b136b,_0x149f71);_0x2e5822&&_0x4e5d28(0x1e6)!=_0x2e5822[_0x4e5d28(0x1d2)][_0x4e5d28(0xf2)][_0x4e5d28(0x15f)]&&this[_0x4e5d28(0x16f)][_0x4e5d28(0x19f)]([_0x2e5822[_0x4e5d28(0x1d2)]],_0x4e5d28(0x1af));}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xf1),()=>{const _0x37d2f4=_0x4775dd;this[_0x37d2f4(0x16f)][_0x37d2f4(0x136)](_0x37d2f4(0x1af));}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xa2),(_0x417d54,_0x11ca8e)=>{const _0x3a0bed=_0x4775dd;this[_0x3a0bed(0x108)][_0x3a0bed(0x11e)][_0x3a0bed(0x125)](_0x4b4bd2)[_0x3a0bed(0xe3)](),this[_0x3a0bed(0x1d0)](_0x11ca8e);}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0x8c),async(_0xa43f3e,{replyId:_0x35ccd6,showDiff:_0x39aed3})=>{const _0x52c6a0=_0x4775dd,{reply:_0x50b860}=this[_0x52c6a0(0x115)](_0x35ccd6),_0x2ba9a1=_0x50b860[_0x52c6a0(0x12d)]({'showDiff':_0x39aed3});await this[_0x52c6a0(0xbc)][_0x52c6a0(0x124)]({'id':_0x50b860['id'],'parts':_0x2ba9a1,'renderingStrategy':_0x52c6a0(0xb4)});}),this[_0x4775dd(0x193)](this[_0x4775dd(0xbc)],_0x4775dd(0xd0),(_0x90da9d,{replyId:_0x558308,partIndex:_0x4e03c2})=>{const _0x57366c=_0x4775dd;this[_0x57366c(0x13c)]?.[_0x57366c(0x9d)]==_0x558308&&this[_0x57366c(0x13c)]?.[_0x57366c(0x149)]==_0x4e03c2&&this[_0x57366c(0x108)][_0x57366c(0x11e)][_0x57366c(0x125)](_0x4b4bd2)[_0x57366c(0xe3)]();const {reply:_0x3cdb23}=this[_0x57366c(0x115)](_0x558308);_0x3cdb23[_0x57366c(0xba)](_0x4e03c2,_0x57366c(0xd6)),this[_0x57366c(0x16f)][_0x57366c(0x136)](_0x57366c(0x1af));});}async[_0x25a398(0x141)](){const _0x422b4b=_0x25a398;this[_0x422b4b(0x108)]instanceof _0x134520?this[_0x422b4b(0x1ca)](this[_0x422b4b(0x108)]):this[_0x422b4b(0x193)](this[_0x422b4b(0x108)][_0x422b4b(0x177)],_0x422b4b(0x11a),(_0x5a023a,_0x4c2093)=>{const _0x230299=_0x422b4b;_0x4c2093['on'](_0x230299(0xed),()=>{const _0x36522b=_0x230299;this[_0x36522b(0x1ca)](_0x4c2093);});}),await this[_0x422b4b(0x14f)]();}[_0x25a398(0x8e)](_0x61963e){const _0x236ed4=_0x25a398,_0x401818=_0x393c5e(this[_0x236ed4(0x108)]);if(!_0x401818[_0x236ed4(0x11e)][_0x236ed4(0x112)](_0x236ed4(0xa0)))throw new _0x3f76cf(_0x236ed4(0xf5),null);const _0x261991=this[_0x236ed4(0x108)][_0x236ed4(0x11e)][_0x236ed4(0x125)](_0x236ed4(0xa3)),{reply:_0x10df7a,interaction:_0x251d2e}=this[_0x236ed4(0x115)](_0x61963e[_0x236ed4(0x9d)]),_0x4f67ed=this[_0x236ed4(0x13e)](_0x61963e[_0x236ed4(0x9d)],_0x61963e[_0x236ed4(0x149)]),_0x587141=void 0x0!==_0x61963e[_0x236ed4(0x149)]?[_0x10df7a[_0x236ed4(0x120)][_0x61963e[_0x236ed4(0x149)]]]:_0x10df7a[_0x236ed4(0x120)][_0x236ed4(0x8b)](_0x2c7520=>_0x236ed4(0xc8)==_0x2c7520[_0x236ed4(0x17c)]),_0x19b067=_0x587141[_0x236ed4(0x172)](_0x378615=>_0x10df7a[_0x236ed4(0x120)][_0x236ed4(0x1ae)](_0x378615));if(!_0x4f67ed||_0x236ed4(0x1e6)==_0x4f67ed[_0x236ed4(0x1d2)][_0x236ed4(0xf2)][_0x236ed4(0x15f)])return void _0x19b067[_0x236ed4(0x176)](_0x2c7414=>_0x10df7a[_0x236ed4(0xba)](_0x2c7414,_0x236ed4(0xee)));_0x19b067[_0x236ed4(0x176)](_0x426578=>_0x10df7a[_0x236ed4(0xba)](_0x426578,_0x236ed4(0xb6)));const _0x5f525b=_0x18b0ad({'editor':_0x401818,'reply':_0x10df7a,'interaction':_0x251d2e,'groups':_0x587141,'transform':!0x0,'documentCompare':_0x261991,'documentCompareOptions':{'anchor':_0x236ed4(0x1bb),'markDeletions':!0x0}});let _0x57fba8;_0x4f67ed&&this[_0x236ed4(0x1e4)](_0x4f67ed[_0x236ed4(0x1d2)]),_0x401818[_0x236ed4(0x1b3)][_0x236ed4(0xfe)](_0x36ceb9=>{const _0x436e9c=_0x236ed4;_0x57fba8=_0x36ceb9[_0x436e9c(0xdd)],_0x401818[_0x436e9c(0x11e)][_0x436e9c(0x125)](_0x436e9c(0xef))[_0x436e9c(0x1e3)](_0x5f525b),this[_0x436e9c(0x16f)][_0x436e9c(0x136)](_0x436e9c(0x1af));}),this[_0x236ed4(0x1da)][_0x236ed4(0x1ad)](_0x57fba8,{'interactionId':_0x251d2e['id'],'replyId':_0x10df7a['id'],'indexes':_0x19b067[_0x236ed4(0xc1)]()}),this[_0x236ed4(0x1a1)](_0x10df7a);}[_0x25a398(0x1d0)](_0x350786){const _0x3cffb5=_0x25a398,_0x3c7438=_0x393c5e(this[_0x3cffb5(0x108)]),_0x41c704=this[_0x3cffb5(0x108)][_0x3cffb5(0x11e)][_0x3cffb5(0x125)](_0x371863),{reply:_0x3e5f17,interaction:_0x35ce7a}=this[_0x3cffb5(0x115)](_0x350786[_0x3cffb5(0x9d)]),_0x2caf51=this[_0x3cffb5(0x13e)](_0x350786[_0x3cffb5(0x9d)],_0x350786[_0x3cffb5(0x149)]),_0x5df793=void 0x0!==_0x350786[_0x3cffb5(0x149)]?[_0x3e5f17[_0x3cffb5(0x120)][_0x350786[_0x3cffb5(0x149)]]]:_0x3e5f17[_0x3cffb5(0x120)][_0x3cffb5(0x8b)](_0x2660d8=>_0x3cffb5(0xc8)==_0x2660d8[_0x3cffb5(0x17c)]),_0x5edd82=_0x5df793[_0x3cffb5(0x172)](_0x209394=>_0x3e5f17[_0x3cffb5(0x120)][_0x3cffb5(0x1ae)](_0x209394));if(!_0x2caf51||_0x3cffb5(0x1e6)==_0x2caf51[_0x3cffb5(0x1d2)][_0x3cffb5(0xf2)][_0x3cffb5(0x15f)])return void _0x5edd82[_0x3cffb5(0x176)](_0x1b794b=>_0x3e5f17[_0x3cffb5(0xba)](_0x1b794b,_0x3cffb5(0xee)));_0x5edd82[_0x3cffb5(0x176)](_0x50d078=>_0x3e5f17[_0x3cffb5(0xba)](_0x50d078,_0x3cffb5(0xb6)));const _0x19d1d4=_0x18b0ad({'editor':_0x3c7438,'reply':_0x3e5f17,'interaction':_0x35ce7a,'groups':_0x5df793,'transform':!0x0,'documentCompare':_0x41c704,'documentCompareOptions':{'anchor':_0x3cffb5(0x1bb),'markDeletions':!0x1}});let _0x312c3f;_0x2caf51&&this[_0x3cffb5(0x1e4)](_0x2caf51[_0x3cffb5(0x1d2)]),_0x3c7438[_0x3cffb5(0x1b3)][_0x3cffb5(0xfe)](_0x4c4c9a=>{const _0xb5dbcb=_0x3cffb5;_0x312c3f=_0x4c4c9a[_0xb5dbcb(0xdd)];for(const _0x411a9b of _0x19d1d4)_0x411a9b[_0xb5dbcb(0x1d1)]=_0x3c7438[_0xb5dbcb(0x1b3)][_0xb5dbcb(0xdc)][_0xb5dbcb(0xc0)],_0xcf2aa6(_0x3c7438,_0x411a9b),_0x4c4c9a[_0xb5dbcb(0xdd)][_0xb5dbcb(0x1aa)](_0x411a9b),_0x3c7438[_0xb5dbcb(0x1b3)][_0xb5dbcb(0xf9)](_0x411a9b);}),this[_0x3cffb5(0x1da)][_0x3cffb5(0x1ad)](_0x312c3f,{'interactionId':_0x35ce7a['id'],'replyId':_0x3e5f17['id'],'indexes':_0x5edd82[_0x3cffb5(0xc1)]()}),this[_0x3cffb5(0x1a1)](_0x3e5f17);}[_0x25a398(0x128)](_0x2f39e4,_0x765523){const _0x36ad6b=_0x25a398,_0x1cf5ab=_0x393c5e(this[_0x36ad6b(0x108)]),_0x4d3531=this[_0x36ad6b(0x13e)](_0x2f39e4,_0x765523),_0x549c3c=this[_0x36ad6b(0x108)][_0x36ad6b(0x11e)][_0x36ad6b(0x125)](_0x4b4bd2);if(!_0x4d3531)return void _0x549c3c[_0x36ad6b(0xe3)]();const {range:_0x2d3829,currentIndex:_0x5b22db}=_0x4d3531;if(_0x36ad6b(0x1e6)==_0x2d3829[_0x36ad6b(0xf2)][_0x36ad6b(0x15f)]){const {reply:_0x1ffb85}=this[_0x36ad6b(0x115)](_0x2f39e4);return _0x1ffb85[_0x36ad6b(0xba)](_0x5b22db,_0x36ad6b(0xee)),void _0x549c3c[_0x36ad6b(0xe3)]();}if(this[_0x36ad6b(0x13c)]?.[_0x36ad6b(0x9d)]==_0x2f39e4&&this[_0x36ad6b(0x13c)]?.[_0x36ad6b(0x149)]==_0x5b22db)return;this[_0x36ad6b(0x1ce)](_0x549c3c),this[_0x36ad6b(0x13c)]={'replyId':_0x2f39e4,'partIndex':_0x5b22db};let _0x18491e=_0x1cf5ab[_0x36ad6b(0x1b6)][_0x36ad6b(0x125)](_0x36ad6b(0x160))||[..._0x355632];_0x1cf5ab[_0x36ad6b(0x11e)][_0x36ad6b(0x112)](_0x36ad6b(0xa0))||(_0x18491e=_0x18491e[_0x36ad6b(0x8b)](_0x1105d4=>_0x36ad6b(0x1a3)!=_0x1105d4));const _0x45d657=new _0x2f31e4(_0x1cf5ab[_0x36ad6b(0xff)],{'showDiff':this[_0x36ad6b(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x36ad6b(0x134)},'hideHeader':!0x0,'availableActions':_0x18491e});this[_0x36ad6b(0x1ce)](_0x45d657);const {reply:_0x36232e}=this[_0x36ad6b(0x115)](_0x2f39e4),_0x4dea89=_0x36232e[_0x36ad6b(0x12d)]({'showDiff':this[_0x36ad6b(0x18f)]})[_0x36ad6b(0x8b)](_0x22071a=>_0x22071a[_0x36ad6b(0xc9)]),_0x5caf8a=_0x4dea89[_0x36ad6b(0xd1)](_0x572322=>_0x572322[_0x36ad6b(0x146)]==_0x5b22db);if(-0x1==_0x5caf8a)return;const _0x5f20b8=_0x4dea89[_0x5caf8a],_0x21ea9d=_0x4dea89['at']((_0x5caf8a-0x1)%_0x4dea89[_0x36ad6b(0x143)])?.[_0x36ad6b(0x146)],_0x7544d0=_0x4dea89['at']((_0x5caf8a+0x1)%_0x4dea89[_0x36ad6b(0x143)])?.[_0x36ad6b(0x146)];_0x45d657[_0x36ad6b(0x199)]({'parts':[_0x5f20b8],'renderingStrategy':_0x36ad6b(0xb4)});const _0x548e1d=_0x5b22db!==_0x21ea9d;this[_0x36ad6b(0x1e4)](_0x2d3829,!0x0),_0x549c3c[_0x36ad6b(0x181)]({'index':_0x5b22db,'title':_0x173f0d(this[_0x36ad6b(0x108)][_0x36ad6b(0xff)],_0x36ad6b(0x1e2),(_0x5caf8a+0x1)[_0x36ad6b(0x1b1)]()),'icon':_0x273c5b,'mainView':_0x45d657,'showRotator':_0x548e1d,'showApplyButton':!0x0,'showSuggestButton':_0x1cf5ab[_0x36ad6b(0x11e)][_0x36ad6b(0x112)](_0x36ad6b(0xa0)),'ranges':[_0x2d3829]}),this[_0x36ad6b(0xbc)][_0x36ad6b(0x1a6)](_0x2f39e4,_0x5b22db),this[_0x36ad6b(0x193)](_0x45d657,_0x36ad6b(0x8c),(_0x3a235e,{showDiff:_0x1e85ab})=>{const _0xa709fd=_0x36ad6b;this[_0xa709fd(0x18f)]=_0x1e85ab;const {reply:_0x22bea9}=this[_0xa709fd(0x115)](_0x2f39e4),_0x15acbe=_0x22bea9[_0xa709fd(0x12d)]({'showDiff':_0x1e85ab,'groupIndex':_0x5b22db});_0x45d657[_0xa709fd(0x199)]({'parts':_0x15acbe,'renderingStrategy':_0xa709fd(0xb4)});}),this[_0x36ad6b(0x193)](_0x549c3c,_0x36ad6b(0xa2),()=>{const _0x45b56b=_0x36ad6b;this[_0x45b56b(0x1d0)]({'replyId':_0x2f39e4,'partIndex':_0x5b22db}),_0x548e1d?this[_0x45b56b(0x128)](_0x2f39e4,_0x7544d0):_0x549c3c[_0x45b56b(0xe3)]();}),this[_0x36ad6b(0x193)](_0x549c3c,_0x36ad6b(0x1a3),()=>{const _0x47842f=_0x36ad6b;this[_0x47842f(0x8e)]({'replyId':_0x2f39e4,'partIndex':_0x5b22db}),_0x548e1d?this[_0x47842f(0x128)](_0x2f39e4,_0x7544d0):_0x549c3c[_0x47842f(0xe3)]();}),_0x548e1d&&(this[_0x36ad6b(0x193)](_0x549c3c,_0x36ad6b(0x100),()=>{const _0x2b4228=_0x36ad6b;this[_0x2b4228(0x128)](_0x2f39e4,_0x7544d0);}),this[_0x36ad6b(0x193)](_0x549c3c,_0x36ad6b(0x19e),()=>{const _0x16b3d3=_0x36ad6b;this[_0x16b3d3(0x128)](_0x2f39e4,_0x21ea9d);})),this[_0x36ad6b(0x193)](_0x549c3c,_0x36ad6b(0x1a5),()=>{const _0x11d9a7=_0x36ad6b;this[_0x11d9a7(0x1ce)](_0x549c3c),this[_0x11d9a7(0x1ce)](_0x45d657),this[_0x11d9a7(0x13c)]=null;});}[_0x25a398(0x13e)](_0x2ca310,_0x38088d){const _0x5373fa=_0x25a398,_0x246f22=_0x393c5e(this[_0x5373fa(0x108)]),{reply:_0x41be43,interaction:_0x52c85b}=this[_0x5373fa(0x115)](_0x2ca310),_0x482b65=_0x41be43[_0x5373fa(0x120)][_0x5373fa(0x8b)](_0x29f058=>_0x5373fa(0xc8)==_0x29f058[_0x5373fa(0x17c)]),_0x4502bc=_0x482b65[_0x5373fa(0x172)](_0x135101=>_0x41be43[_0x5373fa(0x120)][_0x5373fa(0x1ae)](_0x135101));void 0x0===_0x38088d&&(_0x38088d=_0x4502bc[0x0]);const _0x25eeee=_0x4502bc[_0x5373fa(0x1ae)](_0x38088d);if(-0x1==_0x25eeee)return null;const _0x40ee24=_0x482b65[_0x25eeee],_0x4d6685=new _0x5a4c80([]),_0x19dd53=new _0x5a4c80([]);for(const _0x53d7f0 of _0x40ee24[_0x5373fa(0x114)])if(_0x5373fa(0x169)!=_0x53d7f0[_0x5373fa(0x126)]&&_0x19dd53[_0x5373fa(0xc6)][_0x5373fa(0x135)](_0x53d7f0[_0x5373fa(0x154)][_0x5373fa(0x14d)](!0x0)),_0x5373fa(0xa1)!=_0x53d7f0[_0x5373fa(0x126)]){const _0x4dbd44=_0x3da40a(_0x48cd5e=>_0x3347f9(_0x48cd5e,_0x5373fa(0x11d))==_0x53d7f0['id'],_0x41be43[_0x5373fa(0x19b)],!0x0);_0x4d6685[_0x5373fa(0xc6)][_0x5373fa(0x135)](_0x4dbd44[_0x5373fa(0x14d)](!0x0));}if(0x0==_0x4d6685[_0x5373fa(0xc6)][_0x5373fa(0x143)]){if(_0x40ee24[_0x5373fa(0x114)][0x0][_0x5373fa(0x9c)]){const _0x56f6ca=_0x2d6a67(_0x5373fa(0x11d),_0x40ee24[_0x5373fa(0x114)][0x0][_0x5373fa(0x9c)],_0x41be43[_0x5373fa(0x19b)]);_0x4d6685[_0x5373fa(0xc6)][_0x5373fa(0x1d3)](_0x56f6ca[_0x5373fa(0x14d)](!0x0)),_0x19dd53[_0x5373fa(0xc6)][_0x5373fa(0x1d3)](_0x56f6ca[_0x5373fa(0x14d)](!0x0)),_0x56f6ca[_0x5373fa(0x174)]&&(_0x4d6685[_0x5373fa(0xc6)][_0x5373fa(0x135)](_0x56f6ca[_0x5373fa(0x174)][_0x5373fa(0x14d)](!0x0)),_0x19dd53[_0x5373fa(0xc6)][_0x5373fa(0x135)](_0x56f6ca[_0x5373fa(0x174)][_0x5373fa(0x14d)](!0x0)));}else{const _0x32814e=_0x41be43[_0x5373fa(0x19b)][_0x5373fa(0xc6)][0x0];if(!_0x32814e)return null;_0x4d6685[_0x5373fa(0xc6)][_0x5373fa(0x135)](_0x32814e[_0x5373fa(0x14d)](!0x0)),_0x19dd53[_0x5373fa(0xc6)][_0x5373fa(0x135)](_0x32814e[_0x5373fa(0x14d)](!0x0));}}const _0x1d86e2=_0x52c85b[_0x5373fa(0x18e)](),_0xb00bfa=_0x246f22[_0x5373fa(0x1c1)][_0x5373fa(0x13d)](_0x1d86e2[_0x5373fa(0x1d6)]),_0x58d444=_0x2ee9ca(_0x4d6685),_0x4a6bd8=_0x246f22[_0x5373fa(0x1c1)][_0x5373fa(0x13d)](_0x58d444),_0x539776=_0x246f22[_0x5373fa(0x1c1)][_0x5373fa(0x13d)](_0x58d444),_0x38d3b7=_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0xfc)](_0x4a6bd8,0x0),_0x189c4f=_0x2ee9ca(_0x19dd53),_0x49ff0b={'anchor':_0x38d3b7,'markDeletions':!0x1},_0x29d56a=_0x246f22[_0x5373fa(0x11e)][_0x5373fa(0x125)](_0x371863)[_0x5373fa(0x17d)](_0x58d444,_0x189c4f,_0x49ff0b)[_0x5373fa(0xd2)]();if(!_0x29d56a[_0x5373fa(0x143)])return null;_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0xfe)](_0x28191a=>{const _0x3532b4=_0x5373fa;for(const _0x27c647 of _0x29d56a)if(_0x3532b4(0x121)==_0x27c647[_0x3532b4(0x126)]){const _0x2e6966=_0x27c647[_0x3532b4(0xe5)],_0xded917=_0x27c647[_0x3532b4(0x16d)],_0x117f55=new _0x36cdc0(_0x2e6966,_0xded917);_0x28191a[_0x3532b4(0xdd)][_0x3532b4(0x1aa)](_0x117f55),_0x246f22[_0x3532b4(0x1b3)][_0x3532b4(0xf9)](_0x117f55);}else _0x3532b4(0xe8)!==_0x27c647[_0x3532b4(0x126)]&&(_0x27c647[_0x3532b4(0x1d1)]=null,_0x27c647[_0x3532b4(0x139)]=!0x1,_0x28191a[_0x3532b4(0xdd)][_0x3532b4(0x1aa)](_0x27c647),_0x246f22[_0x3532b4(0x1b3)][_0x3532b4(0xf9)](_0x27c647));});const _0x335db7=_0xe3e823(_0x246f22,_0x29d56a,_0x4a6bd8);_0x290fe1(_0x246f22[_0x5373fa(0x1b3)],_0x335db7);const _0x232b0a=_0x335db7[_0x5373fa(0x93)]()[_0x5373fa(0x151)][_0x5373fa(0x1d4)][_0x5373fa(0xc1)](),_0x482654=_0x335db7[_0x5373fa(0x93)]()[_0x5373fa(0x10f)][_0x5373fa(0x1d4)][_0x5373fa(0xc1)](),_0x3b5217=[];let _0x5578d8=_0x4a6bd8,_0xc22412=_0x539776;for(let _0x2e2c90=0x0;_0x2e2c90<_0x482654[_0x5373fa(0x143)];_0x2e2c90++){const _0x5d34a6=_0x5578d8[_0x5373fa(0xaf)]-_0x482654[_0x2e2c90];_0x3b5217[_0x2e2c90]=_0xc22412[_0x5373fa(0xaf)]-_0x5d34a6,_0x5578d8=_0x5578d8[_0x5373fa(0xb7)](_0x482654[_0x2e2c90]),_0xc22412=_0xc22412[_0x5373fa(0xb7)](_0x3b5217[_0x2e2c90]);}const _0x22e64c=_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0x97)](_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0x1c3)](_0x539776,_0x232b0a),_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0x1c3)](_0x539776,_0x3b5217)),_0x5b67be=_0x539776[_0x5373fa(0x180)](0x0)[_0x5373fa(0x164)](_0x3917ae),_0x501d85=Array[_0x5373fa(0xad)](_0xb00bfa[_0x5373fa(0x147)]())[_0x5373fa(0xb1)](_0x2eca4f=>_0x2eca4f[_0x5373fa(0x164)](_0x3917ae)==_0x5b67be)[_0x5373fa(0xe7)](),_0x43e700=_0x22e64c[_0x5373fa(0x151)][_0x5373fa(0x1d4)][_0x5373fa(0xc1)](),_0x59d5aa=_0x22e64c[_0x5373fa(0x10f)][_0x5373fa(0x1d4)][_0x5373fa(0xc1)]();_0x43e700[0x0]=_0x501d85[0x0]+_0x43e700[0x0],_0x59d5aa[0x0]=_0x501d85[0x0]+_0x59d5aa[0x0];let _0xf5e22=_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0x97)](_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0x1c3)](_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0xdc)][_0x5373fa(0xeb)](),_0x43e700),_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0x1c3)](_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0xdc)][_0x5373fa(0xeb)](),_0x59d5aa));const _0x4d7eeb=_0x246f22[_0x5373fa(0x1b3)][_0x5373fa(0xdc)][_0x5373fa(0x1c4)][_0x5373fa(0xd2)](_0x1d86e2[_0x5373fa(0xc0)]);for(const _0x4f2e23 of _0x4d7eeb)_0xf5e22=_0x2ee8c7[_0x5373fa(0xcf)](_0xf5e22[_0x5373fa(0xbe)](_0x4f2e23));return{'range':_0xf5e22,'currentIndex':_0x38088d};}[_0x25a398(0x1ca)](_0x162b1d){const _0xa20636=_0x25a398;if(!_0x162b1d[_0xa20636(0x11e)][_0xa20636(0x112)](_0xa20636(0xbd)))return;const _0x4dbb2b=_0x162b1d[_0xa20636(0x119)][_0xa20636(0x125)](_0xa20636(0xcd)),_0x2369a5=_0x162b1d[_0xa20636(0x119)][_0xa20636(0x125)](_0xa20636(0x15e));this[_0xa20636(0x193)](_0x4dbb2b,_0xa20636(0x18c),(_0x4a5e83,_0x24c8ad,_0x498e58)=>{const _0x4c90df=_0xa20636,_0x249a94=this[_0x4c90df(0x1da)][_0x4c90df(0x125)](_0x24c8ad);if(!_0x249a94)return;const _0x3fe46c=this[_0x4c90df(0xd8)][_0x4c90df(0x148)](_0x249a94[_0x4c90df(0x1b5)])[_0x4c90df(0x168)](_0x249a94[_0x4c90df(0x9d)]);_0x249a94[_0x4c90df(0x175)][_0x4c90df(0x176)](_0xa3ae36=>_0x3fe46c[_0x4c90df(0xba)](_0xa3ae36,_0x4c90df(0xc8))),this[_0x4c90df(0x1da)][_0x4c90df(0x1a9)](_0x24c8ad),this[_0x4c90df(0x1da)][_0x4c90df(0x1ad)](_0x498e58,_0x249a94);}),this[_0xa20636(0x193)](_0x2369a5,_0xa20636(0x18c),(_0x38b596,_0x5ebf10,_0x3d9a87)=>{const _0x13a76f=_0xa20636,_0x28a4bf=this[_0x13a76f(0x1da)][_0x13a76f(0x125)](_0x5ebf10);if(!_0x28a4bf)return;const _0x244776=this[_0x13a76f(0xd8)][_0x13a76f(0x148)](_0x28a4bf[_0x13a76f(0x1b5)])[_0x13a76f(0x168)](_0x28a4bf[_0x13a76f(0x9d)]);_0x28a4bf[_0x13a76f(0x175)][_0x13a76f(0x176)](_0x2d2e6a=>_0x244776[_0x13a76f(0xba)](_0x2d2e6a,_0x13a76f(0xb6))),this[_0x13a76f(0x1da)][_0x13a76f(0x1a9)](_0x5ebf10),this[_0x13a76f(0x1da)][_0x13a76f(0x1ad)](_0x3d9a87,_0x28a4bf);});}async[_0x25a398(0x131)](_0x579f6c){const _0x44a7c6=_0x25a398;this[_0x44a7c6(0x108)][_0x44a7c6(0x11e)][_0x44a7c6(0x125)](_0x4b4bd2)[_0x44a7c6(0xe3)](),this[_0x44a7c6(0xbc)][_0x44a7c6(0x142)](_0x44a7c6(0xb4)),this[_0x44a7c6(0xbc)][_0x44a7c6(0x106)](!0x0),await this[_0x44a7c6(0x14a)]();try{const _0x34783b=this[_0x44a7c6(0x108)][_0x44a7c6(0x11e)][_0x44a7c6(0x125)](_0x524faf);this[_0x44a7c6(0x113)]('\x20'),_0x34783b[_0x44a7c6(0x1ac)][_0x44a7c6(0xd5)](_0x44a7c6(0x182)),await this[_0x44a7c6(0x14f)](_0x579f6c);const {sessionId:_0x57b91a}=this[_0x44a7c6(0x16f)][_0x44a7c6(0x165)]();await this[_0x44a7c6(0xd8)][_0x44a7c6(0x16c)](_0x579f6c,_0x57b91a),this[_0x44a7c6(0xd8)][_0x44a7c6(0x102)]()&&this[_0x44a7c6(0xd8)][_0x44a7c6(0x17f)](_0x173f0d(this[_0x44a7c6(0x108)][_0x44a7c6(0xff)],_0x44a7c6(0x189)));}catch(_0x1c2ddb){console[_0x44a7c6(0x14e)](_0x44a7c6(0x1a7),_0x1c2ddb);}finally{this[_0x44a7c6(0xbc)][_0x44a7c6(0x155)](),this[_0x44a7c6(0xbc)][_0x44a7c6(0x142)](_0x44a7c6(0x191)),this[_0x44a7c6(0xbc)][_0x44a7c6(0x106)](!0x1);}}[_0x25a398(0x9b)](_0x3ddf14){const _0x223d0e=_0x25a398;this[_0x223d0e(0xd8)]['id']===_0x3ddf14&&this[_0x223d0e(0x14f)]();}async[_0x25a398(0x123)](){const _0x34afef=_0x25a398,_0x2133b0=this[_0x34afef(0x16f)][_0x34afef(0x152)]();this[_0x34afef(0xd8)]?.[_0x34afef(0x1b2)](_0x2133b0),this[_0x34afef(0xd8)]?.[_0x34afef(0x17f)](_0x173f0d(this[_0x34afef(0x108)][_0x34afef(0xff)],_0x34afef(0x189)));}[_0x25a398(0x1d8)](){const _0x87c815=_0x25a398;this[_0x87c815(0xd8)]?.[_0x87c815(0x15a)]();}[_0x25a398(0x15b)](){const _0x2bccf6=_0x25a398;this[_0x2bccf6(0xbc)][_0x2bccf6(0x15b)]();}async[_0x25a398(0x19c)](){const _0x4b49b7=_0x25a398;await this[_0x4b49b7(0x14f)]();}async[_0x25a398(0xa6)]({message:_0x1bcc8c,quickActionData:_0x5f3d96}){const _0x443103=_0x25a398;await this[_0x443103(0x1bf)]({'userMessage':_0x1bcc8c,'quickActionData':_0x5f3d96});}[_0x25a398(0x1c7)](){const _0x468fd7=_0x25a398,_0x22ff51=this[_0x468fd7(0x108)][_0x468fd7(0x1b6)][_0x468fd7(0x125)](_0x468fd7(0xf0));if(!_0x22ff51)throw new _0x3f76cf(_0x468fd7(0x10b),this);return _0x22ff51;}async[_0x25a398(0x14f)](_0x2c99eb){const _0x2ed7f7=_0x25a398;try{this[_0x2ed7f7(0xbc)][_0x2ed7f7(0x159)](),await this[_0x2ed7f7(0x11b)](_0x2c99eb);}catch(_0x49af85){_0x3137f4(_0x2ed7f7(0x1de),_0x49af85),this[_0x2ed7f7(0xd8)]=void 0x0,this[_0x2ed7f7(0xbc)][_0x2ed7f7(0xda)]();}}async[_0x25a398(0x11b)](_0x14be2a){const _0x465af3=_0x25a398,_0x59fdfc=this[_0x465af3(0x108)][_0x465af3(0x11e)][_0x465af3(0x125)](_0x4b4bd2);let _0xb8d3ec;_0x59fdfc[_0x465af3(0xe0)]&&_0x59fdfc[_0x465af3(0xe3)](),_0x14be2a||!this[_0x465af3(0xd8)]?_0xb8d3ec=this[_0x465af3(0x108)][_0x465af3(0x1b6)][_0x465af3(0x125)](_0x465af3(0xdb)):this[_0x465af3(0xbc)][_0x465af3(0x158)]&&(_0xb8d3ec=this[_0x465af3(0xd8)][_0x465af3(0x150)]['id']),await this[_0x465af3(0x14a)]();const _0x5b90bd=this[_0x465af3(0x1c7)](),_0x353199=_0x14be2a||_0x595c6f();this[_0x465af3(0xd8)]=new _0x3179cb({'connector':this[_0x465af3(0x1ab)],'chatModels':this[_0x465af3(0xc3)],'selectedModelId':_0xb8d3ec,'conversationId':_0x353199,'group':_0x5b90bd,'getEditor':()=>_0x393c5e(this[_0x465af3(0x108)])}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x1b0),(_0x83c51c,_0x4d32cb)=>{const _0x17183c=_0x465af3;this[_0x17183c(0xbc)][_0x17183c(0x15d)](_0x4d32cb),this[_0x17183c(0xbc)][_0x17183c(0x1cd)](),this[_0x17183c(0xbc)][_0x17183c(0x170)](),this[_0x17183c(0xbc)][_0x17183c(0xfb)](),_0x14be2a||(this[_0x17183c(0xbc)][_0x17183c(0x184)](),this[_0x17183c(0xd8)]?.[_0x17183c(0x17f)](_0x173f0d(this[_0x17183c(0x108)][_0x17183c(0xff)],_0x17183c(0x189))));}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x8f),(_0xd4dbaf,_0x46d8d8)=>{const _0x52cef6=_0x465af3;this[_0x52cef6(0xbc)][_0x52cef6(0x10a)](_0x46d8d8[_0x52cef6(0x19d)]);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0xfd),(_0x5e9f00,_0x481eef)=>{const _0x2d218a=_0x465af3;this[_0x2d218a(0xbc)][_0x2d218a(0x1e1)](_0x481eef);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x13b),()=>{const _0x426887=_0x465af3;this[_0x426887(0xbc)][_0x426887(0xaa)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x14b),()=>{const _0x3fb559=_0x465af3;this[_0x3fb559(0xbc)][_0x3fb559(0xaa)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x138),(_0x2e120d,_0x3b33cb)=>{const _0x1faf1c=_0x465af3;this[_0x1faf1c(0xbc)][_0x1faf1c(0xcc)](_0x3b33cb,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x1cf),(_0x1f7692,_0x4cda2b)=>{const _0x5627b3=_0x465af3;this[_0x5627b3(0xbc)][_0x5627b3(0xcc)](_0x4cda2b,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x1a8),()=>{const _0x42f90a=_0x465af3;this[_0x42f90a(0xbc)][_0x42f90a(0x101)]();}),this[_0x465af3(0xd8)]['on'](_0x465af3(0xce),async()=>{const _0x50baf0=_0x465af3;await this[_0x50baf0(0xbc)][_0x50baf0(0x137)]();}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x17e),(_0x1fc6c8,_0x2f6256)=>{const _0xa3bac4=_0x465af3;this[_0xa3bac4(0xbc)][_0xa3bac4(0x110)](_0x2f6256['id']);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0xb9),(_0x30b901,_0x1562b2,_0x130a62)=>{const _0x249566=_0x465af3;this[_0x249566(0x113)](_0x1562b2,_0x130a62);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x94),(_0xe012f3,_0x1d4e6e)=>{const _0x462b79=_0x465af3;_0x462b79(0xab)===_0x1d4e6e[_0x462b79(0x126)]?this[_0x462b79(0xbc)][_0x462b79(0xc2)](_0x1d4e6e):this[_0x462b79(0xbc)][_0x462b79(0x196)](_0x1d4e6e);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x117),async(_0x510b51,_0xa16ee1)=>{const _0x495265=_0x465af3;await this[_0x495265(0x163)]({'reply':_0xa16ee1});}),this[_0x465af3(0xd8)]['on'](_0x465af3(0xd9),(_0x1e6776,{reply:_0x1bae39,index:_0x57d22b,state:_0x121e89})=>{const _0x3d3687=_0x465af3;this[_0x3d3687(0xbc)][_0x3d3687(0xec)]({'id':_0x1bae39['id'],'index':_0x57d22b,'state':_0x121e89});}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x130),(_0xa16ce4,_0x329b4c)=>{const _0x2403c5=_0x465af3;if(this[_0x2403c5(0xbc)][_0x2403c5(0x17a)](_0x329b4c[_0x2403c5(0x12b)],_0x329b4c[_0x2403c5(0x1ba)]),_0x2403c5(0x1db)===_0x329b4c[_0x2403c5(0x12b)][_0x2403c5(0x126)]){const _0x44236f=[..._0x393c5e(this[_0x2403c5(0x108)])[_0x2403c5(0x1b3)][_0x2403c5(0xdc)][_0x2403c5(0x1db)][_0x2403c5(0x1d5)]()];this[_0x2403c5(0x16f)][_0x2403c5(0x19f)](_0x44236f,_0x2403c5(0x1c9)+this[_0x2403c5(0xd8)]?.['id']);}}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x91),(_0x2ec880,_0x2ec7fb)=>{const _0x212f14=_0x465af3;this[_0x212f14(0xbc)][_0x212f14(0xae)](_0x2ec7fb[_0x212f14(0x1b9)]),_0x212f14(0x178)==_0x2ec7fb[_0x212f14(0x1b9)]&&this[_0x212f14(0x1d8)](),_0x212f14(0x1db)===_0x2ec7fb[_0x212f14(0x126)]&&this[_0x212f14(0x16f)][_0x212f14(0x136)](_0x212f14(0x1c9)+this[_0x212f14(0xd8)]?.['id']);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x16b),(_0x36e6fc,_0x24104d)=>{const _0x5ab119=_0x465af3;this[_0x5ab119(0xbc)][_0x5ab119(0x122)](_0x24104d[_0x5ab119(0x12b)][_0x5ab119(0x1b9)],_0x24104d[_0x5ab119(0x1ba)]);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x144),(_0x5add67,_0x34db38)=>{const _0x306678=_0x465af3;this[_0x306678(0xbc)][_0x306678(0x104)](_0x34db38[_0x306678(0x12c)]);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x145),(_0x4720b2,_0x4b88a6)=>{const _0x58f028=_0x465af3;this[_0x58f028(0xbc)][_0x58f028(0x161)](_0x4b88a6[_0x58f028(0xe9)]);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x18b),(_0x494e33,_0x2aaf40)=>{const _0x141c3a=_0x465af3;this[_0x141c3a(0xbc)][_0x141c3a(0xf7)](_0x2aaf40[_0x141c3a(0x13a)],_0x2aaf40[_0x141c3a(0x162)],_0x2aaf40[_0x141c3a(0x16a)],_0x2aaf40[_0x141c3a(0x157)]);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x15c),(_0x32d828,_0x268761)=>{const _0x4f6851=_0x465af3;this[_0x4f6851(0xbc)][_0x4f6851(0x14c)](_0x268761[_0x4f6851(0x13a)],_0x268761[_0x4f6851(0x186)],_0x268761[_0x4f6851(0x10e)]);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x1e5),(_0x21c97b,_0x315dd5)=>{const _0x17bbd0=_0x465af3;this[_0x17bbd0(0xbc)][_0x17bbd0(0x18a)](_0x315dd5);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0xa7),(_0x115200,_0x556179)=>{const _0x376e23=_0x465af3;this[_0x376e23(0xbc)][_0x376e23(0x1bc)](_0x556179[_0x376e23(0x150)],_0x556179[_0x376e23(0x185)]);}),this[_0x465af3(0xd8)]['on'](_0x465af3(0x14e),(_0xe5810e,{error:_0x94f1cb,interactionId:_0x48bc37,fileName:_0x2af554,url:_0x1d4de3,sourceId:_0x48a1cf,sourceLabel:_0x4e788d})=>{const _0x2effe5=_0x465af3,_0xaa4507=_0x48bc37?_0x48bc37+':'+_0x595c6f():_0x595c6f();_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x12e))?this[_0x2effe5(0xbc)][_0x2effe5(0x1c8)]({'staticMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0xa9)),'id':_0xaa4507}):_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x173))||_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x1de))?(this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0xb3)),'id':_0xaa4507}),this[_0x2effe5(0xc7)](_0x94f1cb)):_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x11c))?this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0xbf),_0x2af554),'id':_0xaa4507}):_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x19a))?this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0x1b8),_0x1d4de3),'id':_0xaa4507}):_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0xe4))?this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0x1cc)),'id':_0xaa4507}):_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x1e8))?this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0x129)),'id':_0xaa4507}):_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x10d))?(_0x48a1cf&&this[_0x2effe5(0xbc)][_0x2effe5(0x116)](_0x48a1cf),this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0x171),_0x4e788d||_0x2effe5(0x162)),'id':_0xaa4507}),this[_0x2effe5(0xc7)](_0x94f1cb)):_0x94f1cb[_0x2effe5(0xa4)][_0x2effe5(0x10c)](_0x2effe5(0x95))?(this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0x188)),'id':_0xaa4507}),this[_0x2effe5(0xc7)](_0x94f1cb)):(this[_0x2effe5(0xbc)][_0x2effe5(0x118)]({'errorMessage':_0x173f0d(this[_0x2effe5(0x108)][_0x2effe5(0xff)],_0x2effe5(0x1d9)),'id':_0xaa4507}),this[_0x2effe5(0xc7)](_0x94f1cb));}),await this[_0x465af3(0xd8)][_0x465af3(0x166)](this[_0x465af3(0x108)][_0x465af3(0x1b6)][_0x465af3(0x125)](_0x465af3(0xcb))),_0x14be2a||await this[_0x465af3(0xd8)][_0x465af3(0x151)]();}async[_0x25a398(0x1bf)]({userMessage:_0x52727a,quickActionData:_0x4555e0}){const _0xcced7e=_0x25a398;if(!this[_0xcced7e(0xd8)])throw new _0x3f76cf(_0xcced7e(0x8d));this[_0xcced7e(0xd8)][_0xcced7e(0xe2)]()&&await this[_0xcced7e(0xd8)][_0xcced7e(0x16e)](this[_0xcced7e(0x16f)][_0xcced7e(0x165)]()),this[_0xcced7e(0xd8)]['id']&&this[_0xcced7e(0xd8)][_0xcced7e(0x12f)]&&await this[_0xcced7e(0xd8)][_0xcced7e(0x96)]({'userMessage':_0x52727a,'quickActionData':_0x4555e0}),this[_0xcced7e(0x13f)]();}[_0x25a398(0x13f)](){const _0x3e16e9=_0x25a398,_0x455940=_0x393c5e(this[_0x3e16e9(0x108)])[_0x3e16e9(0x1b3)],_0x56e470=Array[_0x3e16e9(0xad)](_0x455940[_0x3e16e9(0x127)][_0x3e16e9(0x1dc)](_0x37f8dc));_0x455940[_0x3e16e9(0xfe)](_0x24f758=>{const _0x8b5aae=_0x3e16e9;_0x56e470[_0x8b5aae(0x176)](_0x529e22=>_0x24f758[_0x8b5aae(0xd7)](_0x529e22));});}[_0x25a398(0x105)](){const _0xe59c56=_0x25a398;console[_0xe59c56(0x1e9)](_0xe59c56(0x197));}[_0x25a398(0xca)](_0x4736df){const _0x377849=_0x25a398;this[_0x377849(0xbc)][_0x377849(0x99)](_0x4736df);}[_0x25a398(0xc7)](_0x2c2e72){const _0xac1cb2=_0x25a398;_0x3137f4(_0x2c2e72[_0xac1cb2(0xa4)]);}[_0x25a398(0xf8)](_0x2381fd){const _0x3120f9=_0x25a398;this[_0x3120f9(0xd8)]?.[_0x3120f9(0x1e7)](_0x2381fd);}[_0x25a398(0x1cb)](){const _0x782596=_0x25a398;this[_0x782596(0xd8)]?.[_0x782596(0xe6)]();}[_0x25a398(0x109)](){const _0x106f10=_0x25a398;this[_0x106f10(0xd8)]?.[_0x106f10(0xb5)]();}[_0x25a398(0x115)](_0x10a9c5){const _0x355af0=_0x25a398,[_0x4988eb,_0x4ef456]=_0x10a9c5[_0x355af0(0x98)](':'),_0x336dca=this[_0x355af0(0xd8)][_0x355af0(0x148)](_0x4988eb),_0x3b2fb9=_0x336dca[_0x355af0(0x168)](_0x4ef456);return{'interaction':_0x336dca,'reply':_0x3b2fb9};}[_0x25a398(0x1e4)](_0x311f1a,_0x21c33b=!0x1){const _0xfdfbcd=_0x25a398,_0x559edc=_0x393c5e(this[_0xfdfbcd(0x108)]),_0x225972={'target':_0x559edc[_0xfdfbcd(0x111)][_0xfdfbcd(0x1ac)][_0xfdfbcd(0x1d7)][_0xfdfbcd(0xd3)](_0x559edc[_0xfdfbcd(0x111)][_0xfdfbcd(0x1c6)][_0xfdfbcd(0x1bd)](_0x311f1a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x21c33b};_0x21c33b&&(_0x225972[_0xfdfbcd(0xe1)]=!0x0),_0x5617d7(_0x225972);}[_0x25a398(0x113)](_0x2b6d8c,_0x2bcef8=!0x1){const _0x4a7ef6=_0x25a398;this[_0x4a7ef6(0xbc)][_0x4a7ef6(0xb9)](_0x2b6d8c||_0x173f0d(this[_0x4a7ef6(0x108)][_0x4a7ef6(0xff)],_0x4a7ef6(0xdf)),_0x2bcef8);}async[_0x25a398(0x163)]({reply:_0x1158a1,renderingStrategy:_0x575c1f}){const _0x2cd720=_0x25a398,{id:_0x1fb505,isDone:_0x4d7dc2,type:_0x26b893,parsedContent:_0x24461f}=_0x1158a1;if(_0x2cd720(0x9a)===_0x26b893){const _0x3c7639=_0x1158a1[_0x2cd720(0x12d)]({'showDiff':this[_0x2cd720(0xbc)][_0x2cd720(0x140)]});await this[_0x2cd720(0xbc)][_0x2cd720(0x124)]({'id':_0x1fb505,'parts':_0x3c7639,'renderingStrategy':_0x575c1f,'isDone':_0x4d7dc2});}else _0x2cd720(0xab)===_0x26b893&&await this[_0x2cd720(0xbc)][_0x2cd720(0x1df)]({'id':_0x1fb505,'parsedContent':_0x24461f,'renderingStrategy':_0x575c1f,'isDone':_0x4d7dc2});_0x4d7dc2&&_0x1158a1[_0x2cd720(0x195)][_0x2cd720(0x143)]>0x0&&this[_0x2cd720(0xbc)][_0x2cd720(0xbb)](_0x1fb505,_0x1158a1[_0x2cd720(0x195)]);}async[_0x25a398(0x14a)](){const _0x1af753=_0x25a398,_0xdfc807=this[_0x1af753(0xd8)]?.[_0x1af753(0x1c0)];_0xdfc807&&(_0xdfc807[_0x1af753(0x153)](),this[_0x1af753(0xbc)][_0x1af753(0xea)](_0xdfc807));}async[_0x25a398(0x183)](){const _0x423f7b=_0x25a398,_0x52a3f9=this[_0x423f7b(0xd8)]?.[_0x423f7b(0x1c0)];if(_0x52a3f9){for await(const _0x52124b of _0x52a3f9[_0x423f7b(0xc4)])await this[_0x423f7b(0x163)]({'reply':_0x52124b,'renderingStrategy':_0x423f7b(0xb4)});}}[_0x25a398(0x1a1)](_0x3e9ff6){const _0x4a7cf8=_0x25a398,_0x43b1ee={'positiveCount':_0x3e9ff6[_0x4a7cf8(0x120)][_0x4a7cf8(0x8b)](_0x2dffc8=>_0x4a7cf8(0xb6)===_0x2dffc8[_0x4a7cf8(0x17c)])[_0x4a7cf8(0x143)],'totalCount':_0x3e9ff6[_0x4a7cf8(0x120)][_0x4a7cf8(0x143)],'modificationId':_0x3e9ff6['id']},_0x48064a=this[_0x4a7cf8(0xd8)][_0x4a7cf8(0x148)](_0x3e9ff6[_0x4a7cf8(0x1b5)])[_0x4a7cf8(0x1b7)];this[_0x4a7cf8(0x1ab)][_0x4a7cf8(0x9e)](this[_0x4a7cf8(0xd8)]['id'],_0x48064a,_0x43b1ee);}}
|
|
23
|
+
const _0x3eff34=_0x5b39;(function(_0x536b25,_0x40f198){const _0x266aae=_0x5b39,_0xe27935=_0x536b25();while(!![]){try{const _0x243bc6=parseInt(_0x266aae(0xad))/0x1+-parseInt(_0x266aae(0x1e8))/0x2*(parseInt(_0x266aae(0x176))/0x3)+-parseInt(_0x266aae(0x108))/0x4*(-parseInt(_0x266aae(0x151))/0x5)+parseInt(_0x266aae(0x157))/0x6*(-parseInt(_0x266aae(0x1b4))/0x7)+-parseInt(_0x266aae(0x9d))/0x8*(parseInt(_0x266aae(0x1d0))/0x9)+-parseInt(_0x266aae(0x19b))/0xa+parseInt(_0x266aae(0xf6))/0xb*(parseInt(_0x266aae(0xed))/0xc);if(_0x243bc6===_0x40f198)break;else _0xe27935['push'](_0xe27935['shift']());}catch(_0x3303cf){_0xe27935['push'](_0xe27935['shift']());}}}(_0x17db,0x845c1));import{ContextPlugin as _0x2db343,Editor as _0x598e4f}from'ckeditor5/src/core.js';import{CKEditorError as _0x28a58b,logError as _0x283934,scrollViewportToShowTarget as _0x2ddcb3,uid as _0x3728dc}from'ckeditor5/src/utils.js';import{AIConnector as _0x1885fc}from'../aicore/aiconnector.js';import{AITabs as _0x9c5646}from'../aitabs/aitabs.js';import{AIChatConversation as _0x33dcbb}from'./model/aichatconversation.js';import{getTranslation as _0xf28a5b}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x447b84}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x57839b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x5478c2}from'./model/aichatmodels.js';import{getEditorFromContext as _0x5226e4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x25a5f9,DATA_ID_MODEL_ATTRIBUTE as _0x336395}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x32446d,getOperationsFromReply as _0x396b8d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51024a,getMinimalSelection as _0x4307ed}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x17db(){const _0x4c99e7=['createConversation','loadSourceResources','removeContextItem','data-id','AI_CHAT_GENERIC_ERROR','_aiChatModels','replyCreated','context','version','_updateRatings','message','anchorId','chat','text-delta','map','contextItemAdded','dislike','uploadProgressChanged','like','toViewRange','partIndex','upsertAIChatRating','applyOperation','resetMessageInput','load','isPremiumPlugin','sources','type','getRoot','addResourceToContext','full','ai-chat-conversation-start-failed','selectedModel','indexes','getOperations','alignToTop','init','ai-chat-file-upload-failed','showDiff','mapper','505ChZNjn','AI_CHAT_UNABLE_TO_START_CONVERSATION','_showConversationHistory','add','lastInteraction','setIsUploadInProgress','198996cSLVmg','getFirstRange','updateCapabilities','setConversationTitle','_balloonShowDiff','_removeFromContext','addSelectionToChatContext','_aiEditing','remove','locale','replyId','applySuggestion','replyContentUpdated','addFeedItemAIReply','conversationInitialized','undo','updateFeedItemAIReplySources','_setIsMaximized','updateCurrentDocumentInContext','config','createPositionAt','open','_aiConnector','handleRemovedConversation','stopInteraction','outdated','ai-chat-resource-load-failed','ai-chat-context-unsupported-type','children','sourceResourcesLoaded','isLoading','36390wNIASC','Showing\x20conversation\x20history...','setConversationContext','model','$graveyard','sourcePosition','path','getContentParts','interactionDestroyed','isOfficialPlugin','unshift','createPositionFromPath','requires','resize','_insertSuggestion','createRange','editors','getChild','cloneNode','addContextOptionsChanged','current-document','interactionFinished','showPrevious','abortPromptStream','addFeedItemUserMessage','setModel','getChildren','_openBalloonFor','populateSourceResourceBalloon','ai-conversation-','getPath','removed','filter','listenTo','resizeTabs','push','setContextItemLoading','2770320ejjeFB','isDocumentOperation','AIChatUI','changes','changeGroups','startConversation','has','messageId','revert','updateConversationTitle','error','finishInteraction','ai-chat-controller-no-active-conversation','close','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','forEach','start','getMarkersGroup','activeConversation','DocumentCompare','findIndex','capabilitiesUpdated','updateFeedItemAIReplySuggestionContent','ai-no-track-changes','_previewedChangeGroup','14iOzLgW','find','_aiChatUi','_applySuggestion','AI_CHAT_RESOURCE_LOAD_FAILED','getDocumentContext','options','scrollFeedToSuggestion','nextSibling','hasChanges','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNTITLED_CONVERSATION','plugins','_flushLastInteractionUI','ai-chat-context-invalid-data','setFeedItemRenderingStrategy','isOpen','sourceId','Disliked\x20response','addFeedItemError','getInteraction','isCurrentDocumentInConversation','streaming','delete','query','isUploadInProgress','_toggleReasoning','toggleWebSearch','18KsgweY','contextSent','Failed\x20to\x20load\x20conversation','node','AIEditing','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','closeSourceResourceBalloon','indexOf','getReply','addUrlToContext','removeSelectionFromChatContext','index','addFeedItemAISuggestion','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','activateTab','mouseLeaveSuggestion','AIConnector','addFeedItemStaticMessage','AITabs','data','TrackChanges','sendMessage','addFilesToContext','selectModel','24CfzBFC','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-source-resources-load-failed','focusPromptInput','getTransformedByOperation','history','setSelectedModel','webSearchFinished','selection','_batchToChanges','startsWith','_applyOperationsAsSuggestions','replyChangeGroupStateUpdated','resourceStateChanged','getGroupId','collaboration.channelId','_startConversationSafely','interactionCreated','range','rootName','_handleUIUserMessage','updateFeedItemAIReplyContent','4196840pJNFiw','showChangeInText','from','enableControls','_getDocumentRangeForReplyChanges','mouseOverSuggestion','addCurrentDocumentToContext','replies','resourceId','ai.chat.models.displayedModels','ready','view','removeSelectionFromContext','disableControls','batch','state','710302KzSLed','ai-request-aborted','_removeAISelectionMarkers','editing','howMany','loadConversation','pluginName','rejected','isStarted','toString','root','getSelectionText','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','insertSuggestion','getChildAtOffset','redo','documentContextContent','stop','ai-chat-controller-mouse-over','updateContent','pending','isCurrentDocumentInContext','updateFeedItemAIReplySuggestionPartState','resources','ai.chat.context','_logError','uiId','TrackChangesEditing','viewRangeToDom','removeFromContext','clearPendingContextUI','handleUserInteraction','showNext','markers','addFileToContext','toggleSuggestionDisplayMode','contextItems','ai.availableReplyActions','resetConversationTitle','afterInit','webSearchStarted','main','toggleReasoning','isDisabled','getDocumentData','setIsMaximized','dialogClosed','addOperation','domConverter','getDiff','reasoningFinished','_scrollToSuggestionRange','hideFakeVisualSelection','resizedTabs','isInContext','uid','showFakeVisualSelection','_toggleWebSearch','Undo','sendUserMessage','addFeedInteractionHeader','reasoningStarted','ai-chat-url-upload-failed','interactionId','1764408ZyIggs','source','rejectSuggestion','ai-chat-conversation-init-failed','log','setChangeGroupState','modelSelected','addContextItem','getAttribute','44puFTxG','split','new','_integrateEditor','contextItem','AIChatController','_updateReplyContent','AI_BALLOON_HEADER_TITLE','getInteractionAndReplyById','resource','modification-delta','ai-chat-missing-channel-id','addDocumentToContext','slice','toggleLoadingSkeleton','removeMarker','_handleStartConversation','clearConversationContextUI','30964OonTaX','end','length','_stopLastInteraction','contextItemRemoved','accepted','Liked\x20response','get','change','contextItemLoadingEnded','setLoadingMessage','baseVersion','getRanges','content','startAutoScroll','ai.chat.models.defaultModelId','parse','static','removeFeedInteraction','stopListening','updateResourceState','maxOffset','_createFromRanges','addSelectionToContext','setAddContextOptions','document','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','marker','isModelAvailable','interactionStarted','commands','startInteraction','set'];_0x17db=function(){return _0x4c99e7;};return _0x17db();}import{ModelRange as _0x5aebe5,_DetachOperation as _0x4ebe0e}from'ckeditor5/src/engine.js';import{findOne as _0xe31386,getAttribute as _0x4ed15a,serialize as _0x394252,Document as _0xc54126,findByAttribute as _0x2102a5}from'../aicore/utils/htmlparser.js';import{IconAI as _0x57825b}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x1ee013}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x15895c}from'../aiballoon/aiballoon.js';function _0x5b39(_0x1d7405,_0x370131){const _0x17db48=_0x17db();return _0x5b39=function(_0x5b398d,_0x547d49){_0x5b398d=_0x5b398d-0x8c;let _0x2ccb98=_0x17db48[_0x5b398d];return _0x2ccb98;},_0x5b39(_0x1d7405,_0x370131);}export class AIChatController extends _0x2db343{[_0x3eff34(0x15e)];[_0x3eff34(0x16d)];[_0x3eff34(0x1b6)];[_0x3eff34(0x12e)];[_0x3eff34(0x90)]=new Map();[_0x3eff34(0x1b3)]=null;[_0x3eff34(0x15b)]=!0x1;static get[_0x3eff34(0x182)](){return[_0x1885fc,_0x15895c,_0x25a5f9];}static get[_0x3eff34(0xb3)](){const _0x3f50bf=_0x3eff34;return _0x3f50bf(0xfb);}static get[_0x3eff34(0x17f)](){return!0x0;}static get[_0x3eff34(0x142)](){return!0x0;}[_0x3eff34(0x14d)](){const _0xe50db7=_0x3eff34;this[_0xe50db7(0x16d)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e0)),this[_0xe50db7(0x1b6)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x19d)),this[_0xe50db7(0x15e)]=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1d4)),this[_0xe50db7(0x12e)]=new _0x5478c2({'connector':this[_0xe50db7(0x16d)],'availableModels':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0xa6)),'defaultModelId':this[_0xe50db7(0x130)][_0xe50db7(0x16a)][_0xe50db7(0x10f)](_0xe50db7(0x117))});const _0x7c87c8=this[_0xe50db7(0x130)][_0xe50db7(0x1c0)][_0xe50db7(0x10f)](_0xe50db7(0x1e2));this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1a0),()=>{const _0x6e06f1=_0xe50db7;this[_0x6e06f1(0x97)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xe8),(_0x395bf2,_0x329df1)=>{const _0x11a9fb=_0xe50db7;this[_0x11a9fb(0x9b)]({'userMessage':_0x329df1});}),this[_0xe50db7(0x197)](_0x7c87c8,_0xe50db7(0xe2),(_0x1984d4,_0x1d34e7)=>{const _0x499b5b=_0xe50db7;this[_0x499b5b(0x168)](_0x1d34e7);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x198),()=>{const _0x2e773f=_0xe50db7;_0x7c87c8[_0x2e773f(0x183)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x18d),async()=>{const _0x1b67b6=_0xe50db7;await this[_0x1b67b6(0x10b)](),await this[_0x1b67b6(0x1c1)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x102),()=>{const _0x416e3b=_0xe50db7;this[_0x416e3b(0x1ad)]?.[_0x416e3b(0xa3)](_0xf28a5b(this[_0x416e3b(0x130)][_0x416e3b(0x160)],_0x416e3b(0x1a9)));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xcf),(_0x22e9c9,_0x55c81a)=>{const _0x3246e7=_0xe50db7;this[_0x3246e7(0x1ad)]?.[_0x3246e7(0x1e6)](Array[_0x3246e7(0x9f)](_0x55c81a));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1d9),(_0x4a3db4,_0x160553)=>{const _0xc528a4=_0xe50db7;this[_0xc528a4(0x1ad)]?.[_0xc528a4(0x1d9)](_0x160553);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x146),(_0x3d0a31,_0x1a53e7)=>{const _0x266de3=_0xe50db7;this[_0x266de3(0x1ad)]?.[_0x266de3(0x146)](_0x1a53e7[_0x266de3(0xee)],_0x1a53e7[_0x266de3(0xff)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12b),(_0x414c83,_0x1a734b)=>{const _0x4537ef=_0xe50db7;this[_0x4537ef(0x15c)](_0x1a734b);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x12a),(_0x13c4d9,_0x598729)=>{const _0x47f3f6=_0xe50db7;this[_0x47f3f6(0x1ad)]?.[_0x47f3f6(0x12a)](_0x598729[_0x47f3f6(0x1c5)],_0x598729[_0x47f3f6(0x1cc)],_0x598729[_0x47f3f6(0xe4)]);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1cf),()=>{const _0x2963bf=_0xe50db7;this[_0x2963bf(0xe6)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd7),()=>{const _0x4962d8=_0xe50db7;this[_0x4962d8(0x1ce)]();}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1e7),(_0x2f5454,_0x826e4e)=>{const _0x55f4c2=_0xe50db7;this[_0x55f4c2(0x1ad)]?.[_0x55f4c2(0x18f)](_0x826e4e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x13b),(_0x777d64,{replyId:_0x4b5b0e})=>{const _0x5f3ca9=_0xe50db7;console[_0x5f3ca9(0xf1)](_0x5f3ca9(0x10e),_0x4b5b0e);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x139),(_0x1eab10,{replyId:_0x1e4fc5})=>{const _0x132dad=_0xe50db7;console[_0x132dad(0xf1)](_0x132dad(0x1c6),_0x1e4fc5);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xba),(_0x25eca3,_0x1c6078)=>{const _0x1f3199=_0xe50db7;this[_0x1f3199(0x130)][_0x1f3199(0x1c0)][_0x1f3199(0x10f)](_0x15895c)[_0x1f3199(0x1a8)](),this[_0x1f3199(0x184)](_0x1c6078);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x9e),(_0x2ebb82,{replyId:_0x22fe1b,partIndex:_0x2666d9})=>{const _0x40b149=_0xe50db7;this[_0x40b149(0x15b)]=this[_0x40b149(0x1b6)][_0x40b149(0x14f)],this[_0x40b149(0x191)](_0x22fe1b,_0x2666d9);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xa2),(_0x12735c,{replyId:_0x30be5e,partIndex:_0x698001})=>{const _0x350b5a=_0xe50db7,_0x273a85=this[_0x350b5a(0xa1)](_0x30be5e,_0x698001);_0x273a85&&_0x350b5a(0x17a)!=_0x273a85[_0x350b5a(0x99)][_0x350b5a(0xb7)][_0x350b5a(0x9a)]&&this[_0x350b5a(0x15e)][_0x350b5a(0xe5)]([_0x273a85[_0x350b5a(0x99)]],_0x350b5a(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x1df),()=>{const _0x28883b=_0xe50db7;this[_0x28883b(0x15e)][_0x28883b(0xe1)](_0x28883b(0xbf));}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0x162),(_0x1c1420,_0x536037)=>{const _0x522c6d=_0xe50db7;this[_0x522c6d(0x130)][_0x522c6d(0x1c0)][_0x522c6d(0x10f)](_0x15895c)[_0x522c6d(0x1a8)](),this[_0x522c6d(0x1b7)](_0x536037);}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xd0),async(_0x4bd625,{replyId:_0x280a16,showDiff:_0x235f38})=>{const _0x3fa501=_0xe50db7,{reply:_0x41aac4}=this[_0x3fa501(0xfe)](_0x280a16),_0x1fa0d3=_0x41aac4[_0x3fa501(0x17d)]({'showDiff':_0x235f38});await this[_0x3fa501(0x1b6)][_0x3fa501(0x1b1)]({'id':_0x41aac4['id'],'parts':_0x1fa0d3,'renderingStrategy':_0x3fa501(0x119)});}),this[_0xe50db7(0x197)](this[_0xe50db7(0x1b6)],_0xe50db7(0xef),(_0x20914e,{replyId:_0x2f1d91,partIndex:_0x4b334b})=>{const _0x43d8d2=_0xe50db7;this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x161)]==_0x2f1d91&&this[_0x43d8d2(0x1b3)]?.[_0x43d8d2(0x13d)]==_0x4b334b&&this[_0x43d8d2(0x130)][_0x43d8d2(0x1c0)][_0x43d8d2(0x10f)](_0x15895c)[_0x43d8d2(0x1a8)]();const {reply:_0x5a6085}=this[_0x43d8d2(0xfe)](_0x2f1d91);_0x5a6085[_0x43d8d2(0xf2)](_0x4b334b,_0x43d8d2(0xb4)),this[_0x43d8d2(0x15e)][_0x43d8d2(0xe1)](_0x43d8d2(0xbf));});}async[_0x3eff34(0xd4)](){const _0x40c715=_0x3eff34;this[_0x40c715(0x130)]instanceof _0x598e4f?this[_0x40c715(0xf9)](this[_0x40c715(0x130)]):this[_0x40c715(0x197)](this[_0x40c715(0x130)][_0x40c715(0x186)],_0x40c715(0x154),(_0x54c836,_0x5e0426)=>{const _0x112d2b=_0x40c715;_0x5e0426['on'](_0x112d2b(0xa7),()=>{const _0x1b86dd=_0x112d2b;this[_0x1b86dd(0xf9)](_0x5e0426);});}),await this[_0x40c715(0x97)]();}[_0x3eff34(0x184)](_0x2662cd){const _0x407fab=_0x3eff34,_0x8ddf77=_0x5226e4(this[_0x407fab(0x130)]);if(!_0x8ddf77[_0x407fab(0x1c0)][_0x407fab(0x1a1)](_0x407fab(0x1e4)))throw new _0x28a58b(_0x407fab(0x1b2),null);const _0x23b812=this[_0x407fab(0x130)][_0x407fab(0x1c0)][_0x407fab(0x10f)](_0x407fab(0x1ae)),{reply:_0xee138f,interaction:_0xb3c894}=this[_0x407fab(0xfe)](_0x2662cd[_0x407fab(0x161)]),_0x27a8e=this[_0x407fab(0xa1)](_0x2662cd[_0x407fab(0x161)],_0x2662cd[_0x407fab(0x13d)]),_0x519fe9=void 0x0!==_0x2662cd[_0x407fab(0x13d)]?[_0xee138f[_0x407fab(0x19f)][_0x2662cd[_0x407fab(0x13d)]]]:_0xee138f[_0x407fab(0x19f)][_0x407fab(0x196)](_0x33eb8c=>_0x407fab(0xc1)==_0x33eb8c[_0x407fab(0xac)]),_0x54a94a=_0x519fe9[_0x407fab(0x137)](_0x3d736d=>_0xee138f[_0x407fab(0x19f)][_0x407fab(0x1d7)](_0x3d736d));if(!_0x27a8e||_0x407fab(0x17a)==_0x27a8e[_0x407fab(0x99)][_0x407fab(0xb7)][_0x407fab(0x9a)])return void _0x54a94a[_0x407fab(0x1aa)](_0xf90db6=>_0xee138f[_0x407fab(0xf2)](_0xf90db6,_0x407fab(0x170)));_0x54a94a[_0x407fab(0x1aa)](_0x3c7059=>_0xee138f[_0x407fab(0xf2)](_0x3c7059,_0x407fab(0x10d)));const _0x3543b4=_0x396b8d({'editor':_0x8ddf77,'reply':_0xee138f,'interaction':_0xb3c894,'groups':_0x519fe9,'transform':!0x0,'documentCompare':_0x23b812,'documentCompareOptions':{'anchor':_0x407fab(0xd6),'markDeletions':!0x0}});let _0x3f5601;_0x27a8e&&this[_0x407fab(0xe0)](_0x27a8e[_0x407fab(0x99)]),_0x8ddf77[_0x407fab(0x179)][_0x407fab(0x110)](_0x55b92b=>{const _0x3577eb=_0x407fab;_0x3f5601=_0x55b92b[_0x3577eb(0xab)],_0x8ddf77[_0x3577eb(0x1c0)][_0x3577eb(0x10f)](_0x3577eb(0xc8))[_0x3577eb(0x92)](_0x3543b4),this[_0x3577eb(0x15e)][_0x3577eb(0xe1)](_0x3577eb(0xbf));}),this[_0x407fab(0x90)][_0x407fab(0x128)](_0x3f5601,{'interactionId':_0xb3c894['id'],'replyId':_0xee138f['id'],'indexes':_0x54a94a[_0x407fab(0x103)]()}),this[_0x407fab(0x132)](_0xee138f);}[_0x3eff34(0x1b7)](_0x31861e){const _0x17e854=_0x3eff34,_0x665495=_0x5226e4(this[_0x17e854(0x130)]),_0x4b7815=this[_0x17e854(0x130)][_0x17e854(0x1c0)][_0x17e854(0x10f)](_0x25a5f9),{reply:_0x4192eb,interaction:_0x4ac77f}=this[_0x17e854(0xfe)](_0x31861e[_0x17e854(0x161)]),_0x2caed0=this[_0x17e854(0xa1)](_0x31861e[_0x17e854(0x161)],_0x31861e[_0x17e854(0x13d)]),_0x1eeb1e=void 0x0!==_0x31861e[_0x17e854(0x13d)]?[_0x4192eb[_0x17e854(0x19f)][_0x31861e[_0x17e854(0x13d)]]]:_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x196)](_0x4d8a84=>_0x17e854(0xc1)==_0x4d8a84[_0x17e854(0xac)]),_0x17d54b=_0x1eeb1e[_0x17e854(0x137)](_0x238feb=>_0x4192eb[_0x17e854(0x19f)][_0x17e854(0x1d7)](_0x238feb));if(!_0x2caed0||_0x17e854(0x17a)==_0x2caed0[_0x17e854(0x99)][_0x17e854(0xb7)][_0x17e854(0x9a)])return void _0x17d54b[_0x17e854(0x1aa)](_0x6f2296=>_0x4192eb[_0x17e854(0xf2)](_0x6f2296,_0x17e854(0x170)));_0x17d54b[_0x17e854(0x1aa)](_0x3f51b3=>_0x4192eb[_0x17e854(0xf2)](_0x3f51b3,_0x17e854(0x10d)));const _0x3b123e=_0x396b8d({'editor':_0x665495,'reply':_0x4192eb,'interaction':_0x4ac77f,'groups':_0x1eeb1e,'transform':!0x0,'documentCompare':_0x4b7815,'documentCompareOptions':{'anchor':_0x17e854(0xd6),'markDeletions':!0x1}});let _0x4ea5cf;_0x2caed0&&this[_0x17e854(0xe0)](_0x2caed0[_0x17e854(0x99)]),_0x665495[_0x17e854(0x179)][_0x17e854(0x110)](_0x3595c0=>{const _0x121218=_0x17e854;_0x4ea5cf=_0x3595c0[_0x121218(0xab)];for(const _0x275fb2 of _0x3b123e)_0x275fb2[_0x121218(0x113)]=_0x665495[_0x121218(0x179)][_0x121218(0x121)][_0x121218(0x131)],_0x32446d(_0x665495,_0x275fb2),_0x3595c0[_0x121218(0xab)][_0x121218(0xdc)](_0x275fb2),_0x665495[_0x121218(0x179)][_0x121218(0x13f)](_0x275fb2);}),this[_0x17e854(0x90)][_0x17e854(0x128)](_0x4ea5cf,{'interactionId':_0x4ac77f['id'],'replyId':_0x4192eb['id'],'indexes':_0x17d54b[_0x17e854(0x103)]()}),this[_0x17e854(0x132)](_0x4192eb);}[_0x3eff34(0x191)](_0x247e7c,_0x15952e){const _0x33d9af=_0x3eff34,_0x58d38d=_0x5226e4(this[_0x33d9af(0x130)]),_0x24e94f=this[_0x33d9af(0xa1)](_0x247e7c,_0x15952e),_0x5b4fdd=this[_0x33d9af(0x130)][_0x33d9af(0x1c0)][_0x33d9af(0x10f)](_0x15895c);if(!_0x24e94f)return void _0x5b4fdd[_0x33d9af(0x1a8)]();const {range:_0x197429,currentIndex:_0x467123}=_0x24e94f;if(_0x33d9af(0x17a)==_0x197429[_0x33d9af(0xb7)][_0x33d9af(0x9a)]){const {reply:_0x497ff2}=this[_0x33d9af(0xfe)](_0x247e7c);return _0x497ff2[_0x33d9af(0xf2)](_0x467123,_0x33d9af(0x170)),void _0x5b4fdd[_0x33d9af(0x1a8)]();}if(this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x161)]==_0x247e7c&&this[_0x33d9af(0x1b3)]?.[_0x33d9af(0x13d)]==_0x467123)return;this[_0x33d9af(0x11b)](_0x5b4fdd),this[_0x33d9af(0x1b3)]={'replyId':_0x247e7c,'partIndex':_0x467123};let _0x4ff260=_0x58d38d[_0x33d9af(0x16a)][_0x33d9af(0x10f)](_0x33d9af(0xd2))||[..._0x57839b];_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4))||(_0x4ff260=_0x4ff260[_0x33d9af(0x196)](_0x116175=>_0x33d9af(0xba)!=_0x116175));const _0x301838=new _0x1ee013(_0x58d38d[_0x33d9af(0x160)],{'showDiff':this[_0x33d9af(0x15b)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x33d9af(0x147)},'hideHeader':!0x0,'availableActions':_0x4ff260});this[_0x33d9af(0x11b)](_0x301838);const {reply:_0x197a7b}=this[_0x33d9af(0xfe)](_0x247e7c),_0x1fd030=_0x197a7b[_0x33d9af(0x17d)]({'showDiff':this[_0x33d9af(0x15b)]})[_0x33d9af(0x196)](_0x477f47=>_0x477f47[_0x33d9af(0x1bd)]),_0x48bc1b=_0x1fd030[_0x33d9af(0x1af)](_0x330099=>_0x330099[_0x33d9af(0x1db)]==_0x467123);if(-0x1==_0x48bc1b)return;const _0x22c373=_0x1fd030[_0x48bc1b],_0x4dc57e=_0x1fd030['at']((_0x48bc1b-0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)],_0x32b6da=_0x1fd030['at']((_0x48bc1b+0x1)%_0x1fd030[_0x33d9af(0x10a)])?.[_0x33d9af(0x1db)];_0x301838[_0x33d9af(0xc0)]({'parts':[_0x22c373],'renderingStrategy':_0x33d9af(0x119)});const _0x48c63c=_0x467123!==_0x4dc57e;this[_0x33d9af(0xe0)](_0x197429,!0x0),_0x5b4fdd[_0x33d9af(0x16c)]({'index':_0x467123,'title':_0xf28a5b(this[_0x33d9af(0x130)][_0x33d9af(0x160)],_0x33d9af(0xfd),(_0x48bc1b+0x1)[_0x33d9af(0xb6)]()),'icon':_0x57825b,'mainView':_0x301838,'showRotator':_0x48c63c,'showApplyButton':!0x0,'showSuggestButton':_0x58d38d[_0x33d9af(0x1c0)][_0x33d9af(0x1a1)](_0x33d9af(0x1e4)),'ranges':[_0x197429]}),this[_0x33d9af(0x1b6)][_0x33d9af(0x1bb)](_0x247e7c,_0x467123),this[_0x33d9af(0x197)](_0x301838,_0x33d9af(0xd0),(_0x3772e7,{showDiff:_0x399c4e})=>{const _0x44b66e=_0x33d9af;this[_0x44b66e(0x15b)]=_0x399c4e;const {reply:_0x13b7ca}=this[_0x44b66e(0xfe)](_0x247e7c),_0x5f31cc=_0x13b7ca[_0x44b66e(0x17d)]({'showDiff':_0x399c4e,'groupIndex':_0x467123});_0x301838[_0x44b66e(0xc0)]({'parts':_0x5f31cc,'renderingStrategy':_0x44b66e(0x119)});}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x162),()=>{const _0x2fbf00=_0x33d9af;this[_0x2fbf00(0x1b7)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x2fbf00(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x2fbf00(0x1a8)]();}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xba),()=>{const _0x44b970=_0x33d9af;this[_0x44b970(0x184)]({'replyId':_0x247e7c,'partIndex':_0x467123}),_0x48c63c?this[_0x44b970(0x191)](_0x247e7c,_0x32b6da):_0x5b4fdd[_0x44b970(0x1a8)]();}),_0x48c63c&&(this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xcd),()=>{const _0x41d416=_0x33d9af;this[_0x41d416(0x191)](_0x247e7c,_0x32b6da);}),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0x18c),()=>{const _0x19e045=_0x33d9af;this[_0x19e045(0x191)](_0x247e7c,_0x4dc57e);})),this[_0x33d9af(0x197)](_0x5b4fdd,_0x33d9af(0xdb),()=>{const _0x12b166=_0x33d9af;this[_0x12b166(0x11b)](_0x5b4fdd),this[_0x12b166(0x11b)](_0x301838),this[_0x12b166(0x1b3)]=null;});}[_0x3eff34(0xa1)](_0x51a1b4,_0x464bab){const _0x3befd8=_0x3eff34,_0x2a01c5=_0x5226e4(this[_0x3befd8(0x130)]),{reply:_0x57a614,interaction:_0x4da4c7}=this[_0x3befd8(0xfe)](_0x51a1b4),_0x400097=_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x196)](_0x47cd9f=>_0x3befd8(0xc1)==_0x47cd9f[_0x3befd8(0xac)]),_0x5d2629=_0x400097[_0x3befd8(0x137)](_0x22ff03=>_0x57a614[_0x3befd8(0x19f)][_0x3befd8(0x1d7)](_0x22ff03));void 0x0===_0x464bab&&(_0x464bab=_0x5d2629[0x0]);const _0x57784e=_0x5d2629[_0x3befd8(0x1d7)](_0x464bab);if(-0x1==_0x57784e)return null;const _0x549c8a=_0x400097[_0x57784e],_0x47f2c4=new _0xc54126([]),_0x1b95fc=new _0xc54126([]);for(const _0x2a7b2e of _0x549c8a[_0x3befd8(0x19e)])if(_0x3befd8(0x195)!=_0x2a7b2e[_0x3befd8(0x144)]&&_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x2a7b2e[_0x3befd8(0x1d3)][_0x3befd8(0x188)](!0x0)),_0x3befd8(0xf8)!=_0x2a7b2e[_0x3befd8(0x144)]){const _0x1b9dea=_0xe31386(_0x5f04e6=>_0x4ed15a(_0x5f04e6,_0x3befd8(0x12c))==_0x2a7b2e['id'],_0x57a614[_0x3befd8(0xbd)],!0x0);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x1b9dea[_0x3befd8(0x188)](!0x0));}if(0x0==_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x10a)]){if(_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)]){const _0x57a03e=_0x2102a5(_0x3befd8(0x12c),_0x549c8a[_0x3befd8(0x19e)][0x0][_0x3befd8(0x134)],_0x57a614[_0x3befd8(0xbd)]);_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x180)](_0x57a03e[_0x3befd8(0x188)](!0x0)),_0x57a03e[_0x3befd8(0x1bc)]&&(_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x57a03e[_0x3befd8(0x1bc)][_0x3befd8(0x188)](!0x0)));}else{const _0x4e3783=_0x57a614[_0x3befd8(0xbd)][_0x3befd8(0x173)][0x0];if(!_0x4e3783)return null;_0x47f2c4[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0)),_0x1b95fc[_0x3befd8(0x173)][_0x3befd8(0x199)](_0x4e3783[_0x3befd8(0x188)](!0x0));}}const _0x1fc74e=_0x4da4c7[_0x3befd8(0x1b9)](),_0x3268cf=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x1fc74e[_0x3befd8(0x115)]),_0x4735e9=_0x394252(_0x47f2c4),_0x545825=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x1e05b8=_0x2a01c5[_0x3befd8(0x1e3)][_0x3befd8(0x118)](_0x4735e9),_0x6f8584=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x16b)](_0x545825,0x0),_0x2333e8=_0x394252(_0x1b95fc),_0x4af19b={'anchor':_0x6f8584,'markDeletions':!0x1},_0x308eeb=_0x2a01c5[_0x3befd8(0x1c0)][_0x3befd8(0x10f)](_0x25a5f9)[_0x3befd8(0xde)](_0x4735e9,_0x2333e8,_0x4af19b)[_0x3befd8(0x14b)]();if(!_0x308eeb[_0x3befd8(0x10a)])return null;_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x110)](_0x5099d6=>{const _0x1eb2e4=_0x3befd8;for(const _0x3b5f49 of _0x308eeb)if(_0x1eb2e4(0x15f)==_0x3b5f49[_0x1eb2e4(0x144)]){const _0x4d9b95=_0x3b5f49[_0x1eb2e4(0x17b)],_0x24b1e2=_0x3b5f49[_0x1eb2e4(0xb1)],_0x3f0689=new _0x4ebe0e(_0x4d9b95,_0x24b1e2);_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3f0689),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3f0689);}else _0x1eb2e4(0x123)!==_0x3b5f49[_0x1eb2e4(0x144)]&&(_0x3b5f49[_0x1eb2e4(0x113)]=null,_0x3b5f49[_0x1eb2e4(0x19c)]=!0x1,_0x5099d6[_0x1eb2e4(0xab)][_0x1eb2e4(0xdc)](_0x3b5f49),_0x2a01c5[_0x1eb2e4(0x179)][_0x1eb2e4(0x13f)](_0x3b5f49));});const _0x26aec8=_0x4307ed(_0x2a01c5,_0x308eeb,_0x545825);_0x51024a(_0x2a01c5[_0x3befd8(0x179)],_0x26aec8);const _0x201e69=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x2670ee=_0x26aec8[_0x3befd8(0x158)]()[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x5ccbfe=[];let _0x4037c1=_0x545825,_0x36bf85=_0x1e05b8;for(let _0x19a143=0x0;_0x19a143<_0x2670ee[_0x3befd8(0x10a)];_0x19a143++){const _0x46470a=_0x4037c1[_0x3befd8(0x11d)]-_0x2670ee[_0x19a143];_0x5ccbfe[_0x19a143]=_0x36bf85[_0x3befd8(0x11d)]-_0x46470a,_0x4037c1=_0x4037c1[_0x3befd8(0xbb)](_0x2670ee[_0x19a143]),_0x36bf85=_0x36bf85[_0x3befd8(0xbb)](_0x5ccbfe[_0x19a143]);}const _0xaa03d6=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x201e69),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x1e05b8,_0x5ccbfe)),_0x4a7be8=_0x1e05b8[_0x3befd8(0x187)](0x0)[_0x3befd8(0xf5)](_0x336395),_0x4882cd=Array[_0x3befd8(0x9f)](_0x3268cf[_0x3befd8(0x190)]())[_0x3befd8(0x1b5)](_0x3c3a28=>_0x3c3a28[_0x3befd8(0xf5)](_0x336395)==_0x4a7be8)[_0x3befd8(0x194)](),_0x4aebe4=_0xaa03d6[_0x3befd8(0x1ab)][_0x3befd8(0x17c)][_0x3befd8(0x103)](),_0x23df3a=_0xaa03d6[_0x3befd8(0x109)][_0x3befd8(0x17c)][_0x3befd8(0x103)]();_0x4aebe4[0x0]=_0x4882cd[0x0]+_0x4aebe4[0x0],_0x23df3a[0x0]=_0x4882cd[0x0]+_0x23df3a[0x0];let _0x441c2d=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x185)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x4aebe4),_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x181)](_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x145)](),_0x23df3a));const _0x1f9e58=_0x2a01c5[_0x3befd8(0x179)][_0x3befd8(0x121)][_0x3befd8(0x8c)][_0x3befd8(0x14b)](_0x1fc74e[_0x3befd8(0x131)]);for(const _0x436778 of _0x1f9e58)_0x441c2d=_0x5aebe5[_0x3befd8(0x11e)](_0x441c2d[_0x3befd8(0x1ec)](_0x436778));return{'range':_0x441c2d,'currentIndex':_0x464bab};}[_0x3eff34(0xf9)](_0x12453c){const _0x84acd6=_0x3eff34;if(!_0x12453c[_0x84acd6(0x1c0)][_0x84acd6(0x1a1)](_0x84acd6(0xe7)))return;const _0x34c53a=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0x166)),_0x2d9f30=_0x12453c[_0x84acd6(0x126)][_0x84acd6(0x10f)](_0x84acd6(0xbc));this[_0x84acd6(0x197)](_0x34c53a,_0x84acd6(0x1a3),(_0xb84d5d,_0x1be876,_0x175c6d)=>{const _0x3d1a27=_0x84acd6,_0x3bfe8a=this[_0x3d1a27(0x90)][_0x3d1a27(0x10f)](_0x1be876);if(!_0x3bfe8a)return;const _0x38e967=this[_0x3d1a27(0x1ad)][_0x3d1a27(0x1c8)](_0x3bfe8a[_0x3d1a27(0xec)])[_0x3d1a27(0x1d8)](_0x3bfe8a[_0x3d1a27(0x161)]);_0x3bfe8a[_0x3d1a27(0x14a)][_0x3d1a27(0x1aa)](_0x283372=>_0x38e967[_0x3d1a27(0xf2)](_0x283372,_0x3d1a27(0xc1))),this[_0x3d1a27(0x90)][_0x3d1a27(0x1cb)](_0x1be876),this[_0x3d1a27(0x90)][_0x3d1a27(0x128)](_0x175c6d,_0x3bfe8a);}),this[_0x84acd6(0x197)](_0x2d9f30,_0x84acd6(0x1a3),(_0x526c09,_0x225b94,_0x23d72b)=>{const _0x126d77=_0x84acd6,_0xa65c2e=this[_0x126d77(0x90)][_0x126d77(0x10f)](_0x225b94);if(!_0xa65c2e)return;const _0x289af2=this[_0x126d77(0x1ad)][_0x126d77(0x1c8)](_0xa65c2e[_0x126d77(0xec)])[_0x126d77(0x1d8)](_0xa65c2e[_0x126d77(0x161)]);_0xa65c2e[_0x126d77(0x14a)][_0x126d77(0x1aa)](_0x5a9845=>_0x289af2[_0x126d77(0xf2)](_0x5a9845,_0x126d77(0x10d))),this[_0x126d77(0x90)][_0x126d77(0x1cb)](_0x225b94),this[_0x126d77(0x90)][_0x126d77(0x128)](_0x23d72b,_0xa65c2e);});}async[_0x3eff34(0xb2)](_0x902aca){const _0x5c0837=_0x3eff34;this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x15895c)[_0x5c0837(0x1a8)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x119)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x0),await this[_0x5c0837(0x10b)]();try{const _0x2c48b6=this[_0x5c0837(0x130)][_0x5c0837(0x1c0)][_0x5c0837(0x10f)](_0x9c5646);this[_0x5c0837(0x1a4)]('\x20'),_0x2c48b6[_0x5c0837(0xa8)][_0x5c0837(0x1de)](_0x5c0837(0x135)),await this[_0x5c0837(0x97)](_0x902aca);const {sessionId:_0x2879e5}=this[_0x5c0837(0x15e)][_0x5c0837(0xd9)]();await this[_0x5c0837(0x1ad)][_0x5c0837(0x141)](_0x902aca,_0x2879e5),this[_0x5c0837(0x1ad)][_0x5c0837(0x1c9)]()&&this[_0x5c0837(0x1ad)][_0x5c0837(0xa3)](_0xf28a5b(this[_0x5c0837(0x130)][_0x5c0837(0x160)],_0x5c0837(0x1a9)));}catch(_0x1509e9){console[_0x5c0837(0x1a5)](_0x5c0837(0x1d2),_0x1509e9);}finally{this[_0x5c0837(0x1b6)][_0x5c0837(0x116)](),this[_0x5c0837(0x1b6)][_0x5c0837(0x1c3)](_0x5c0837(0x1ca)),this[_0x5c0837(0x1b6)][_0x5c0837(0x104)](!0x1);}}[_0x3eff34(0x16e)](_0x5cff5c){const _0x5f178e=_0x3eff34;this[_0x5f178e(0x1ad)]['id']===_0x5cff5c&&this[_0x5f178e(0x97)]();}async[_0x3eff34(0x15d)](){const _0x206a44=_0x3eff34,_0x57db0c=this[_0x206a44(0x15e)][_0x206a44(0xb8)]();this[_0x206a44(0x1ad)]?.[_0x206a44(0x11f)](_0x57db0c),this[_0x206a44(0x1ad)]?.[_0x206a44(0xa3)](_0xf28a5b(this[_0x206a44(0x130)][_0x206a44(0x160)],_0x206a44(0x1a9)));}[_0x3eff34(0x1da)](){const _0x17e056=_0x3eff34;this[_0x17e056(0x1ad)]?.[_0x17e056(0xa9)]();}[_0x3eff34(0x1eb)](){const _0x253d66=_0x3eff34;this[_0x253d66(0x1b6)][_0x253d66(0x1eb)]();}async[_0x3eff34(0x1a0)](){const _0xdd06bb=_0x3eff34;await this[_0xdd06bb(0x97)]();}async[_0x3eff34(0x1e5)]({message:_0x200c9a,quickActionData:_0x444a3d}){const _0x50886d=_0x3eff34;await this[_0x50886d(0x9b)]({'userMessage':_0x200c9a,'quickActionData':_0x444a3d});}[_0x3eff34(0x95)](){const _0x55c164=_0x3eff34,_0x3b8582=this[_0x55c164(0x130)][_0x55c164(0x16a)][_0x55c164(0x10f)](_0x55c164(0x96));if(!_0x3b8582)throw new _0x28a58b(_0x55c164(0x101),this);return _0x3b8582;}async[_0x3eff34(0x97)](_0x191313){const _0x53b68e=_0x3eff34;try{this[_0x53b68e(0x1b6)][_0x53b68e(0xa0)](),await this[_0x53b68e(0x106)](_0x191313);}catch(_0x567a0c){_0x283934(_0x53b68e(0x148),_0x567a0c),this[_0x53b68e(0x1ad)]=void 0x0,this[_0x53b68e(0x1b6)][_0x53b68e(0xaa)]();}}async[_0x3eff34(0x106)](_0x3e2797){const _0x346f06=_0x3eff34,_0x5bc748=this[_0x346f06(0x130)][_0x346f06(0x1c0)][_0x346f06(0x10f)](_0x15895c);let _0x24e562;_0x5bc748[_0x346f06(0x1c4)]&&_0x5bc748[_0x346f06(0x1a8)](),_0x3e2797||!this[_0x346f06(0x1ad)]?_0x24e562=this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0x117)):this[_0x346f06(0x1b6)][_0x346f06(0x124)]&&(_0x24e562=this[_0x346f06(0x1ad)][_0x346f06(0x149)]['id']),await this[_0x346f06(0x10b)]();const _0x36c6fb=this[_0x346f06(0x95)](),_0x5a3e85=_0x3e2797||_0x3728dc();this[_0x346f06(0x1ad)]=new _0x33dcbb({'connector':this[_0x346f06(0x16d)],'chatModels':this[_0x346f06(0x12e)],'selectedModelId':_0x24e562,'conversationId':_0x5a3e85,'group':_0x36c6fb,'getEditor':()=>_0x5226e4(this[_0x346f06(0x130)])}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x165),(_0x5973bd,_0x1cf62a)=>{const _0x17212a=_0x346f06;this[_0x17212a(0x1b6)][_0x17212a(0x129)](_0x1cf62a),this[_0x17212a(0x1b6)][_0x17212a(0x140)](),this[_0x17212a(0x1b6)][_0x17212a(0xcb)](),this[_0x17212a(0x1b6)][_0x17212a(0x107)](),_0x3e2797||(this[_0x17212a(0x1b6)][_0x17212a(0xd3)](),this[_0x17212a(0x1ad)]?.[_0x17212a(0xa3)](_0xf28a5b(this[_0x17212a(0x130)][_0x17212a(0x160)],_0x17212a(0x1a9))));}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x13a),(_0x1bc27f,_0x1f87b7)=>{const _0x4d006f=_0x346f06;this[_0x4d006f(0x1b6)][_0x4d006f(0x156)](_0x1f87b7[_0x4d006f(0x1cd)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x98),(_0x758de8,_0x14a597)=>{const _0x33b896=_0x346f06;this[_0x33b896(0x1b6)][_0x33b896(0x18e)](_0x14a597);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xd5),()=>{const _0x557d36=_0x346f06;this[_0x557d36(0x1b6)][_0x557d36(0x112)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xea),()=>{const _0x146282=_0x346f06;this[_0x146282(0x1b6)][_0x146282(0x112)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x8e),(_0x4ce616,_0x5b256c)=>{const _0x4c5c27=_0x346f06;this[_0x4c5c27(0x1b6)][_0x4c5c27(0xe9)](_0x5b256c,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xdf),(_0x212adf,_0x1c2ff1)=>{const _0x5c78b4=_0x346f06;this[_0x5c78b4(0x1b6)][_0x5c78b4(0xe9)](_0x1c2ff1,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x125),()=>{const _0xbc6a84=_0x346f06;this[_0xbc6a84(0x1b6)][_0xbc6a84(0x127)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x18b),async()=>{const _0x444925=_0x346f06;await this[_0x444925(0x1b6)][_0x444925(0x1a6)]();}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x17e),(_0x25c9f4,_0x5e5e33)=>{const _0x5c401c=_0x346f06;this[_0x5c401c(0x1b6)][_0x5c401c(0x11a)](_0x5e5e33['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x15a),(_0x2b6945,_0x497ec8,_0x1bde43)=>{const _0x4d1d7a=_0x346f06;this[_0x4d1d7a(0x1a4)](_0x497ec8,_0x1bde43);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x12f),(_0x382d1d,_0x381f46)=>{const _0x2d17c2=_0x346f06;_0x2d17c2(0x136)===_0x381f46[_0x2d17c2(0x144)]?this[_0x2d17c2(0x1b6)][_0x2d17c2(0x164)](_0x381f46):this[_0x2d17c2(0x1b6)][_0x2d17c2(0x1dc)](_0x381f46);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x163),async(_0x53985e,_0x2bebc1)=>{const _0x3fd448=_0x346f06;await this[_0x3fd448(0xfc)]({'reply':_0x2bebc1});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x93),(_0x71e78c,{reply:_0x3561d1,index:_0x4ab065,state:_0x4399d2})=>{const _0x12a16c=_0x346f06;this[_0x12a16c(0x1b6)][_0x12a16c(0xc3)]({'id':_0x3561d1['id'],'index':_0x4ab065,'state':_0x4399d2});}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x138),(_0x11b7c8,_0x4b3d9b)=>{const _0x14e77c=_0x346f06;if(this[_0x14e77c(0x1b6)][_0x14e77c(0xf4)](_0x4b3d9b[_0x14e77c(0xfa)],_0x4b3d9b[_0x14e77c(0x175)]),_0x14e77c(0x8f)===_0x4b3d9b[_0x14e77c(0xfa)][_0x14e77c(0x144)]){const _0x509f04=[..._0x5226e4(this[_0x14e77c(0x130)])[_0x14e77c(0x179)][_0x14e77c(0x121)][_0x14e77c(0x8f)][_0x14e77c(0x114)]()];this[_0x14e77c(0x15e)][_0x14e77c(0xe5)](_0x509f04,_0x14e77c(0x193)+this[_0x14e77c(0x1ad)]?.['id']);}}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x10c),(_0x41aedd,_0xd321cb)=>{const _0x2f5df2=_0x346f06;this[_0x2f5df2(0x1b6)][_0x2f5df2(0x12b)](_0xd321cb[_0x2f5df2(0xc7)]),_0x2f5df2(0x18a)==_0xd321cb[_0x2f5df2(0xc7)]&&this[_0x2f5df2(0x1da)](),_0x2f5df2(0x8f)===_0xd321cb[_0x2f5df2(0x144)]&&this[_0x2f5df2(0x15e)][_0x2f5df2(0xe1)](_0x2f5df2(0x193)+this[_0x2f5df2(0x1ad)]?.['id']);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x111),(_0x184661,_0x28572a)=>{const _0x4f49d4=_0x346f06;this[_0x4f49d4(0x1b6)][_0x4f49d4(0x19a)](_0x28572a[_0x4f49d4(0xfa)][_0x4f49d4(0xc7)],_0x28572a[_0x4f49d4(0x175)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1d1),(_0x399076,_0x95e53b)=>{const _0x524bca=_0x346f06;this[_0x524bca(0x1b6)][_0x524bca(0x178)](_0x95e53b[_0x524bca(0xd1)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x189),(_0xf9bc68,_0x4b738f)=>{const _0x23371a=_0x346f06;this[_0x23371a(0x1b6)][_0x23371a(0x120)](_0x4b738f[_0x23371a(0x1ba)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x174),(_0x44d8fc,_0x1b9664)=>{const _0x26f571=_0x346f06;this[_0x26f571(0x1b6)][_0x26f571(0x192)](_0x1b9664[_0x26f571(0x1c5)],_0x1b9664[_0x26f571(0xee)],_0x1b9664[_0x26f571(0xc4)],_0x1b9664[_0x26f571(0xe4)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x94),(_0x5d4143,_0x12a67a)=>{const _0x477064=_0x346f06;this[_0x477064(0x1b6)][_0x477064(0x11c)](_0x12a67a[_0x477064(0x1c5)],_0x12a67a[_0x477064(0xa5)],_0x12a67a[_0x477064(0xe3)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1b0),(_0x339d32,_0x419a40)=>{const _0x816425=_0x346f06;this[_0x816425(0x1b6)][_0x816425(0x159)](_0x419a40);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0xf3),(_0x308fc5,_0x3f89f2)=>{const _0x4a03ed=_0x346f06;this[_0x4a03ed(0x1b6)][_0x4a03ed(0x8d)](_0x3f89f2[_0x4a03ed(0x149)],_0x3f89f2[_0x4a03ed(0xd8)]);}),this[_0x346f06(0x1ad)]['on'](_0x346f06(0x1a5),(_0x552122,{error:_0xdf2453,interactionId:_0x2ce81e,fileName:_0x58eaaf,url:_0x71f46e,sourceId:_0x9a9fe9,sourceLabel:_0x1490cc})=>{const _0x2930dd=_0x346f06,_0x1a18fe=_0x2ce81e?_0x2ce81e+':'+_0x3728dc():_0x3728dc();_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xae))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1e1)]({'staticMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1be)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xf0))||_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x148))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x152)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x14e))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0xb9),_0x58eaaf),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0xeb))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1dd),_0x71f46e),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1c2))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1e9)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x172))?this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1d5)),'id':_0x1a18fe}):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x1ea))?(_0x9a9fe9&&this[_0x2930dd(0x1b6)][_0x2930dd(0x1d6)](_0x9a9fe9),this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x122),_0x1490cc||_0x2930dd(0xee)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):_0xdf2453[_0x2930dd(0x133)][_0x2930dd(0x91)](_0x2930dd(0x171))?(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x1b8)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453)):(this[_0x2930dd(0x1b6)][_0x2930dd(0x1c7)]({'errorMessage':_0xf28a5b(this[_0x2930dd(0x130)][_0x2930dd(0x160)],_0x2930dd(0x12d)),'id':_0x1a18fe}),this[_0x2930dd(0xc6)](_0xdf2453));}),await this[_0x346f06(0x1ad)][_0x346f06(0x14d)](this[_0x346f06(0x130)][_0x346f06(0x16a)][_0x346f06(0x10f)](_0x346f06(0xc5))),_0x3e2797||await this[_0x346f06(0x1ad)][_0x346f06(0x1ab)]();}async[_0x3eff34(0x9b)]({userMessage:_0x2478c0,quickActionData:_0x21eaca}){const _0x429099=_0x3eff34;if(!this[_0x429099(0x1ad)])throw new _0x28a58b(_0x429099(0x1a7));this[_0x429099(0x1ad)][_0x429099(0xc2)]()&&await this[_0x429099(0x1ad)][_0x429099(0x169)](this[_0x429099(0x15e)][_0x429099(0xd9)]()),this[_0x429099(0x1ad)]['id']&&this[_0x429099(0x1ad)][_0x429099(0xb5)]&&await this[_0x429099(0x1ad)][_0x429099(0xcc)]({'userMessage':_0x2478c0,'quickActionData':_0x21eaca}),this[_0x429099(0xaf)]();}[_0x3eff34(0xaf)](){const _0x5849e6=_0x3eff34,_0x9b69c4=_0x5226e4(this[_0x5849e6(0x130)])[_0x5849e6(0x179)],_0x50537a=Array[_0x5849e6(0x9f)](_0x9b69c4[_0x5849e6(0xce)][_0x5849e6(0x1ac)](_0x447b84));_0x9b69c4[_0x5849e6(0x110)](_0x59d6e1=>{const _0x26b653=_0x5849e6;_0x50537a[_0x26b653(0x1aa)](_0xdabd40=>_0x59d6e1[_0x26b653(0x105)](_0xdabd40));});}[_0x3eff34(0x153)](){const _0x21464c=_0x3eff34;console[_0x21464c(0xf1)](_0x21464c(0x177));}[_0x3eff34(0x168)](_0x5bb26b){const _0x9c4167=_0x3eff34;this[_0x9c4167(0x1b6)][_0x9c4167(0xda)](_0x5bb26b);}[_0x3eff34(0xc6)](_0x2afc5b){const _0x297c1b=_0x3eff34;_0x283934(_0x2afc5b[_0x297c1b(0x133)]);}[_0x3eff34(0x15c)](_0x35bca7){const _0x341e3f=_0x3eff34;this[_0x341e3f(0x1ad)]?.[_0x341e3f(0xca)](_0x35bca7);}[_0x3eff34(0xe6)](){const _0x2b1914=_0x3eff34;this[_0x2b1914(0x1ad)]?.[_0x2b1914(0x1cf)]();}[_0x3eff34(0x1ce)](){const _0x4b1f9e=_0x3eff34;this[_0x4b1f9e(0x1ad)]?.[_0x4b1f9e(0xd7)]();}[_0x3eff34(0xfe)](_0x479e46){const _0x4a3025=_0x3eff34,[_0x4af365,_0x27194e]=_0x479e46[_0x4a3025(0xf7)](':'),_0xa26729=this[_0x4a3025(0x1ad)][_0x4a3025(0x1c8)](_0x4af365),_0x47ea81=_0xa26729[_0x4a3025(0x1d8)](_0x27194e);return{'interaction':_0xa26729,'reply':_0x47ea81};}[_0x3eff34(0xe0)](_0x34ec4c,_0x2061fb=!0x1){const _0x3d2de1=_0x3eff34,_0x5cdc89=_0x5226e4(this[_0x3d2de1(0x130)]),_0x5d1023={'target':_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0xa8)][_0x3d2de1(0xdd)][_0x3d2de1(0xc9)](_0x5cdc89[_0x3d2de1(0xb0)][_0x3d2de1(0x150)][_0x3d2de1(0x13c)](_0x34ec4c)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2061fb};_0x2061fb&&(_0x5d1023[_0x3d2de1(0x14c)]=!0x0),_0x2ddcb3(_0x5d1023);}[_0x3eff34(0x1a4)](_0x14077e,_0x450389=!0x1){const _0x31da76=_0x3eff34;this[_0x31da76(0x1b6)][_0x31da76(0x15a)](_0x14077e||_0xf28a5b(this[_0x31da76(0x130)][_0x31da76(0x160)],_0x31da76(0x1bf)),_0x450389);}async[_0x3eff34(0xfc)]({reply:_0x2f26a1,renderingStrategy:_0x53d1b1}){const _0x249989=_0x3eff34,{id:_0x4f8355,isDone:_0x4c8731,type:_0x5f23cb,parsedContent:_0xc0481}=_0x2f26a1;if(_0x249989(0x100)===_0x5f23cb){const _0x2b0a92=_0x2f26a1[_0x249989(0x17d)]({'showDiff':this[_0x249989(0x1b6)][_0x249989(0x14f)]});await this[_0x249989(0x1b6)][_0x249989(0x1b1)]({'id':_0x4f8355,'parts':_0x2b0a92,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});}else _0x249989(0x136)===_0x5f23cb&&await this[_0x249989(0x1b6)][_0x249989(0x9c)]({'id':_0x4f8355,'parsedContent':_0xc0481,'renderingStrategy':_0x53d1b1,'isDone':_0x4c8731});_0x4c8731&&_0x2f26a1[_0x249989(0x143)][_0x249989(0x10a)]>0x0&&this[_0x249989(0x1b6)][_0x249989(0x167)](_0x4f8355,_0x2f26a1[_0x249989(0x143)]);}async[_0x3eff34(0x10b)](){const _0x5a0448=_0x3eff34,_0x38caf6=this[_0x5a0448(0x1ad)]?.[_0x5a0448(0x155)];_0x38caf6&&(_0x38caf6[_0x5a0448(0xbe)](),this[_0x5a0448(0x1b6)][_0x5a0448(0x16f)](_0x38caf6));}async[_0x3eff34(0x1c1)](){const _0xfbce0c=_0x3eff34,_0x5f8fb8=this[_0xfbce0c(0x1ad)]?.[_0xfbce0c(0x155)];if(_0x5f8fb8){for await(const _0x1de35c of _0x5f8fb8[_0xfbce0c(0xa4)])await this[_0xfbce0c(0xfc)]({'reply':_0x1de35c,'renderingStrategy':_0xfbce0c(0x119)});}}[_0x3eff34(0x132)](_0x45a2be){const _0x4896d7=_0x3eff34,_0x5e73ce={'positiveCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x196)](_0x28caa3=>_0x4896d7(0x10d)===_0x28caa3[_0x4896d7(0xac)])[_0x4896d7(0x10a)],'totalCount':_0x45a2be[_0x4896d7(0x19f)][_0x4896d7(0x10a)],'modificationId':_0x45a2be['id']},_0x350c8a=this[_0x4896d7(0x1ad)][_0x4896d7(0x1c8)](_0x45a2be[_0x4896d7(0xec)])[_0x4896d7(0x1a2)];this[_0x4896d7(0x16d)][_0x4896d7(0x13e)](this[_0x4896d7(0x1ad)]['id'],_0x350c8a,_0x5e73ce);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x27e8e4=_0x2548;(function(_0x32dac0,_0x4b9385){const _0x49252a=_0x2548,_0x24c903=_0x32dac0();while(!![]){try{const _0x120c7d=-parseInt(_0x49252a(0x190))/0x1*(parseInt(_0x49252a(0x12d))/0x2)+parseInt(_0x49252a(0x14d))/0x3+parseInt(_0x49252a(0x14c))/0x4*(parseInt(_0x49252a(0x10c))/0x5)+-parseInt(_0x49252a(0x151))/0x6+parseInt(_0x49252a(0x13d))/0x7+-parseInt(_0x49252a(0x183))/0x8*(parseInt(_0x49252a(0x13c))/0x9)+-parseInt(_0x49252a(0x104))/0xa*(-parseInt(_0x49252a(0x165))/0xb);if(_0x120c7d===_0x4b9385)break;else _0x24c903['push'](_0x24c903['shift']());}catch(_0x270fc9){_0x24c903['push'](_0x24c903['shift']());}}}(_0x2e18,0xe6a5a));import{ContextPlugin as _0x5478e9}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x310803}from'ckeditor5/src/utils.js';import{AIChatView as _0x224a6d}from'./ui/aichatview.js';import{AITabs as _0x556019}from'../aitabs/aitabs.js';import{getTranslation as _0x26f3ef}from'../aicore/utils/common-translations.js';function _0x2548(_0x1ef406,_0x213bc1){const _0x2e1893=_0x2e18();return _0x2548=function(_0x2548c7,_0x333a2f){_0x2548c7=_0x2548c7-0xec;let _0x428daa=_0x2e1893[_0x2548c7];return _0x428daa;},_0x2548(_0x1ef406,_0x213bc1);}import{IconAIChat as _0x122f1d}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0xcafdb8}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x4c6e92}from'./utils/promisequeue.js';function _0x2e18(){const _0x25ced6=['enableControls','583Ajpgnz','contextItems','chatHeader','setContextItemLoading','isPremiumPlugin','interaction-header','renderingStrategy','markFeedItemAsDone','addContextItem','AITabs','isReasoningEnabled','ai-reply','updateSuggestionItem','disableControls','addFeedItemError','showDiff','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','updateFeedItemAIReplySources','setIsMaximized','_interactionPromiseResolver','trackChanges','isTrackChangesOn','TrackChanges','setSelectedModel','capabilities','ai-suggestion-reply','isOfficialPlugin','startsWith','updateResourceState','1854856JwKJau','isWebSearchEnabled','isDone','resetMessageInput','<p>','addFeedItemStaticMessage','updateReplyItem','streaming','from','commands','find','isDisabled','scrollToSuggestion','441333tcZVOD','updateFeedItemAIReplyContent','ai.availableReplyActions','_promiseQueue','children','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','focusPromptInput','isMaximized','AI_CHAT_HEADING','toggleSuggestionDisplayMode','populateSourceResourceBalloon','isLoading','setInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','interactionId','has','toggleLoadingSkeleton','getItemIds','setIsUploadInProgress','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySuggestionContent','feedItemRenderingStrategy','addFeedItemAISuggestion','chat','clearConversationContextUI','value','delegate','39870JAughe','AI_CHAT_WELCOME_MESSAGE','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','then','scrollFeedToSuggestion','areActionsDisabled','quickActionData','</p>','1400HNiYTo','_isTrackChangesCommandValueBound','_view','user-message','finishInteraction','setFeedItemRenderingStrategy','disableModelSelector','chatFeed','length','createConversation','remove','error-message','set','plugins','startInteraction','enableModelSelector','stopInteraction','closeSourceResourceBalloon','setConversationContext','abort','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setWebSearch','queueEmptyPromise','_getLoadingMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','ai.chat.context.searchInputVisibleFrom','updateFeedInteractionHeader','values','showResizeButton','pluginName','resetConversationTitle','options','config','2BGPsAq','forEach','clearPendingContextUI','removeItem','clear','removeContextItem','addItem','stopAutoScroll','enqueue','_titleAnimationInterval','isVisible','filter','view','startAutoScroll','isPending','36wxLDFY','11608058sfTrZX','addFeedItemUserMessage','setModel','last','isBusy','updateWebSources','setReasoning','label','requires','displayedPrompt','addTab','updateCapabilities','addFeedInteractionHeader','conversation-start','_getInputPlaceholder','1528BCVyHC','4554102PTsrXb','updateFeedItemAIReplySuggestionPartState','userMessage','AIChatUI','7086648McLAyS','context','locale','get','availableModels','updateSuggestionPartState','chatControls','_animateConversationTitle','addFeedItemAIReply','setConversationTitle','setModelList','isModelAvailable','setAddContextOptions','markItemAsDone','bind','removeFeedInteraction','destroy','insertSuggestion','setLoadingMessage'];_0x2e18=function(){return _0x25ced6;};return _0x2e18();}import{AI_CHAT_UI_EVENT_NAMES as _0x1b94ce}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x156048}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x546bc7}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x5478e9{static get[_0x27e8e4(0x145)](){return[_0x556019];}[_0x27e8e4(0x10e)];static get[_0x27e8e4(0x129)](){const _0x55133a=_0x27e8e4;return _0x55133a(0x150);}static get[_0x27e8e4(0x180)](){return!0x0;}static get[_0x27e8e4(0x169)](){return!0x0;}[_0x27e8e4(0xfe)]=_0x27e8e4(0x18a);[_0x27e8e4(0x174)]=!0x0;[_0x27e8e4(0x193)];[_0x27e8e4(0x179)];[_0x27e8e4(0x136)]=void 0x0;[_0x27e8e4(0x10d)]=!0x1;constructor(_0x59e2a0){const _0x11a27e=_0x27e8e4;super(_0x59e2a0);const _0xadfd42=this[_0x11a27e(0x152)][_0x11a27e(0x119)][_0x11a27e(0x154)](_0x11a27e(0x16e));this[_0x11a27e(0x118)](_0x11a27e(0x141),!0x1),this[_0x11a27e(0x193)]=new _0x4c6e92(),this[_0x11a27e(0x10e)]=new _0x224a6d(this[_0x11a27e(0x152)][_0x11a27e(0x153)],{'showResizeButton':_0xadfd42[_0x11a27e(0x128)],'contextResourcesSearchInputVisibleFrom':this[_0x11a27e(0x152)][_0x11a27e(0x12c)][_0x11a27e(0x154)](_0x11a27e(0x125))}),this[_0x11a27e(0x10e)][_0x11a27e(0x103)](..._0x1b94ce)['to'](this),this[_0x11a27e(0x10e)]['on'](_0x11a27e(0xf1),(_0x4e8913,{showDiff:_0x416b1f})=>{const _0x4f4c85=_0x11a27e;this[_0x4f4c85(0x174)]=_0x416b1f;}),_0xadfd42[_0x11a27e(0x139)][_0x11a27e(0x147)]({'id':_0x11a27e(0x100),'buttonLabel':_0x26f3ef(this[_0x11a27e(0x152)][_0x11a27e(0x153)],_0x11a27e(0xf0)),'buttonIcon':_0x122f1d,'order':0x0,'content':this[_0x11a27e(0x10e)]}),this[_0x11a27e(0x10e)][_0x11a27e(0x157)][_0x11a27e(0x15f)](_0x11a27e(0xf3))['to'](this,_0x11a27e(0x141),_0x2d7a32=>_0x2d7a32),this[_0x11a27e(0x10e)][_0x11a27e(0x113)][_0x11a27e(0x15f)](_0x11a27e(0x13b))['to'](this,_0x11a27e(0x141),_0x4e34f2=>_0x4e34f2),this[_0x11a27e(0x10e)][_0x11a27e(0x157)][_0x11a27e(0xf4)](this[_0x11a27e(0x14b)]()),this[_0x11a27e(0x15f)](_0x11a27e(0x15c))['to'](this[_0x11a27e(0x10e)][_0x11a27e(0x157)],_0x11a27e(0x15c));}[_0x27e8e4(0x161)](){const _0x1f16f1=_0x27e8e4;super[_0x1f16f1(0x161)](),this[_0x1f16f1(0x136)]&&clearInterval(this[_0x1f16f1(0x136)]);}[_0x27e8e4(0x115)](_0x441fd5){const _0x5e621d=_0x27e8e4;this[_0x5e621d(0x10e)][_0x5e621d(0x113)][_0x5e621d(0x131)](),this[_0x5e621d(0x10e)][_0x5e621d(0x157)][_0x5e621d(0x11b)](),this[_0x5e621d(0x10e)][_0x5e621d(0x157)][_0x5e621d(0x15b)](_0x441fd5[_0x5e621d(0x155)],!this[_0x5e621d(0x152)][_0x5e621d(0x12c)][_0x5e621d(0x154)](_0x5e621d(0xfb))),this[_0x5e621d(0x188)]({'id':_0x5e621d(0x14a),'staticMessage':_0x26f3ef(this[_0x5e621d(0x152)][_0x5e621d(0x153)],_0x5e621d(0x105))});}[_0x27e8e4(0x188)]({id:_0x462abd,staticMessage:_0x53957e}){const _0x15ebec=_0x27e8e4;this[_0x15ebec(0x10e)][_0x15ebec(0x113)][_0x15ebec(0x133)](_0x15ebec(0x170),{'id':_0x462abd,'initialContent':_0x15ebec(0x187)+_0x53957e+_0x15ebec(0x10b)});}[_0x27e8e4(0x13e)](_0x4c752a){const _0x2e63a0=_0x27e8e4,_0x109388=_0x4c752a[_0x2e63a0(0x10a)]?.[_0x2e63a0(0x146)]||_0x4c752a[_0x2e63a0(0x14f)];this[_0x2e63a0(0x10e)][_0x2e63a0(0x113)][_0x2e63a0(0x133)](_0x2e63a0(0x10f),{'contextItems':Array[_0x2e63a0(0x18b)](_0x4c752a[_0x2e63a0(0x166)][_0x2e63a0(0x127)]()),'initialContent':_0x2e63a0(0x187)+_0x109388+_0x2e63a0(0x10b),'id':_0x4c752a['id']});}[_0x27e8e4(0x173)]({errorMessage:_0x161480,id:_0x2dc158}){const _0x88aa96=_0x27e8e4;this[_0x88aa96(0x10e)][_0x88aa96(0x113)][_0x88aa96(0x133)](_0x88aa96(0x117),{'initialContent':_0x88aa96(0x187)+_0x161480+_0x88aa96(0x10b),'id':_0x2dc158});}[_0x27e8e4(0x159)](_0x367fb0){const _0x1bbf67=_0x27e8e4;return this[_0x1bbf67(0x193)][_0x1bbf67(0x135)](async()=>{const _0x9bbb86=_0x1bbf67;this[_0x9bbb86(0x10e)][_0x9bbb86(0x113)][_0x9bbb86(0x133)](_0x9bbb86(0x170),{'id':_0x367fb0[_0x9bbb86(0xf6)]+':'+_0x367fb0['id']}),this[_0x9bbb86(0x163)](null);});}async[_0x27e8e4(0xff)](_0x2d1097){const _0x9796e8=_0x27e8e4,_0x2b3b31=_0x156048(this[_0x9796e8(0x152)]);let _0x6988b5=_0x2b3b31[_0x9796e8(0x12c)][_0x9796e8(0x154)](_0x9796e8(0x192))||[..._0x546bc7];if(_0x2b3b31[_0x9796e8(0x119)][_0x9796e8(0xf7)](_0x9796e8(0x17c))){if(!this[_0x9796e8(0x10d)]){this[_0x9796e8(0x10d)]=!0x0;const _0x1c08ea=_0x2b3b31[_0x9796e8(0x18c)][_0x9796e8(0x154)](_0x9796e8(0x17a));this[_0x9796e8(0x10e)][_0x9796e8(0x113)][_0x9796e8(0x15f)](_0x9796e8(0x17b))['to'](_0x1c08ea,_0x9796e8(0x102));}}else _0x6988b5=_0x6988b5[_0x9796e8(0x138)](_0xfa6b1f=>_0x9796e8(0x162)!=_0xfa6b1f);return this[_0x9796e8(0x193)][_0x9796e8(0x135)](async()=>{const _0x302648=_0x9796e8;this[_0x302648(0x10e)][_0x302648(0x113)][_0x302648(0x133)](_0x302648(0x17f),{'id':_0x2d1097[_0x302648(0xf6)]+':'+_0x2d1097['id'],'areActionsDisabled':_0x2d1097[_0x302648(0x109)],'showDiff':this[_0x302648(0x174)],'availableActions':_0x6988b5}),this[_0x302648(0x163)](null);});}[_0x27e8e4(0x149)](_0x541bcf,_0x39e48c){const _0x4924d9=_0x27e8e4,_0x20cd1e=this[_0x4924d9(0x10e)][_0x4924d9(0x113)][_0x4924d9(0xec)][_0x4924d9(0x140)];if(_0x20cd1e instanceof _0xcafdb8)return this[_0x4924d9(0x10e)][_0x4924d9(0x113)][_0x4924d9(0xec)][_0x4924d9(0x116)](_0x20cd1e),void this[_0x4924d9(0x10e)][_0x4924d9(0x113)][_0x4924d9(0x133)](_0x4924d9(0x16a),{'id':_0x541bcf['id'],'capabilities':{'isWebSearchEnabled':_0x20cd1e[_0x4924d9(0x17e)][_0x4924d9(0x184)]||_0x39e48c[_0x4924d9(0x184)],'isReasoningEnabled':_0x20cd1e[_0x4924d9(0x17e)][_0x4924d9(0x16f)]||_0x39e48c[_0x4924d9(0x16f)]}});this[_0x4924d9(0x10e)][_0x4924d9(0x113)][_0x4924d9(0x133)](_0x4924d9(0x16a),{'id':_0x541bcf['id'],'capabilities':_0x39e48c});}[_0x27e8e4(0x126)](_0x4a65c5){const _0x3614aa=_0x27e8e4,_0x58469b=this[_0x3614aa(0x10e)][_0x3614aa(0x113)][_0x3614aa(0xec)][_0x3614aa(0x18d)](_0x2fcaf5=>_0x2fcaf5[_0x3614aa(0x12b)]['id']==_0x4a65c5['id']&&_0x2fcaf5 instanceof _0xcafdb8);_0x58469b&&_0x58469b[_0x3614aa(0x118)](_0x3614aa(0x137),_0x4a65c5[_0x3614aa(0x137)]);}async[_0x27e8e4(0x191)](_0x305d67){const _0x300ea8=_0x27e8e4,_0x576314=_0x305d67[_0x300ea8(0x16b)]||this[_0x300ea8(0xfe)];return this[_0x300ea8(0x193)][_0x300ea8(0x135)](async _0x4d56b7=>{const _0x1870df=_0x300ea8;await this[_0x1870df(0x10e)][_0x1870df(0x113)][_0x1870df(0x189)]({..._0x305d67,'abortSignal':_0x4d56b7,'renderingStrategy':_0x576314}),_0x305d67[_0x1870df(0x185)]&&this[_0x1870df(0x16c)](_0x305d67['id']);});}[_0x27e8e4(0x177)](_0x2798e7,_0x2df385){const _0x5cfee2=_0x27e8e4;this[_0x5cfee2(0x10e)][_0x5cfee2(0x113)][_0x5cfee2(0x142)](_0x2798e7,_0x2df385);}async[_0x27e8e4(0xfd)](_0x5de553){const _0x59d38f=_0x27e8e4,_0x2c3b13=_0x5de553[_0x59d38f(0x16b)]||this[_0x59d38f(0xfe)];return this[_0x59d38f(0x193)][_0x59d38f(0x135)](async _0xc9ac41=>{const _0x518199=_0x59d38f;await this[_0x518199(0x10e)][_0x518199(0x113)][_0x518199(0x171)]({..._0x5de553,'abortSignal':_0xc9ac41,'renderingStrategy':_0x2c3b13}),_0x5de553[_0x518199(0x185)]&&this[_0x518199(0x16c)](_0x5de553['id']);});}[_0x27e8e4(0x14e)](_0x192aff){const _0x1effde=_0x27e8e4;this[_0x1effde(0x10e)][_0x1effde(0x113)][_0x1effde(0x156)](_0x192aff);}[_0x27e8e4(0x16c)](_0x5564b3){const _0x5e047b=_0x27e8e4;this[_0x5e047b(0x10e)][_0x5e047b(0x113)][_0x5e047b(0x15e)](_0x5564b3);}[_0x27e8e4(0x160)](_0x558e63){const _0x3addaa=_0x27e8e4;this[_0x3addaa(0x10e)][_0x3addaa(0x113)][_0x3addaa(0xf9)]()[_0x3addaa(0x138)](_0x48ea89=>_0x48ea89[_0x3addaa(0x181)](_0x558e63))[_0x3addaa(0x12e)](_0x291a26=>this[_0x3addaa(0x10e)][_0x3addaa(0x113)][_0x3addaa(0x130)](_0x291a26));}[_0x27e8e4(0x11a)](){const _0x25c7bc=_0x27e8e4;this[_0x25c7bc(0x163)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x25c7bc(0x10e)][_0x25c7bc(0x157)][_0x25c7bc(0x112)](!this[_0x25c7bc(0x152)][_0x25c7bc(0x12c)][_0x25c7bc(0x154)](_0x25c7bc(0xfb))),this[_0x25c7bc(0x141)]=!0x0,this[_0x25c7bc(0x10e)][_0x25c7bc(0x113)][_0x25c7bc(0x13a)]();}[_0x27e8e4(0x11c)](_0x326add){const _0x5a3254=_0x27e8e4;this[_0x5a3254(0x193)][_0x5a3254(0x11f)](),this[_0x5a3254(0x10e)][_0x5a3254(0x113)][_0x5a3254(0xf9)]()[_0x5a3254(0x138)](_0x1ef182=>_0x1ef182[_0x5a3254(0x181)](_0x326add['id']))[_0x5a3254(0x12e)](_0x355f28=>this[_0x5a3254(0x16c)](_0x355f28)),this[_0x5a3254(0x141)]=!0x1,this[_0x5a3254(0x10e)][_0x5a3254(0x113)][_0x5a3254(0x134)]();}async[_0x27e8e4(0x110)](){const _0x3e4731=_0x27e8e4;return this[_0x3e4731(0x193)][_0x3e4731(0x122)][_0x3e4731(0x107)](()=>{const _0x393333=_0x3e4731;this[_0x393333(0x141)]=!0x1,this[_0x393333(0x10e)][_0x393333(0x113)][_0x393333(0x134)]();});}[_0x27e8e4(0x16d)](_0x50b6e3,_0x39c4f7){const _0x1b1130=_0x27e8e4;this[_0x1b1130(0x10e)][_0x1b1130(0x157)][_0x1b1130(0x16d)](_0x50b6e3,_0x39c4f7);}[_0x27e8e4(0x132)](_0x392c98){const _0x4d0d03=_0x27e8e4;this[_0x4d0d03(0x10e)][_0x4d0d03(0x157)][_0x4d0d03(0x132)](_0x392c98);}[_0x27e8e4(0x168)](_0x41c0c6,_0x332b19){const _0x4eec1b=_0x27e8e4;this[_0x4eec1b(0x10e)][_0x4eec1b(0x157)][_0x4eec1b(0x168)](_0x41c0c6,_0x332b19);}[_0x27e8e4(0xfa)](_0x42271a){const _0x3c3e2a=_0x27e8e4;this[_0x3c3e2a(0x10e)][_0x3c3e2a(0x157)][_0x3c3e2a(0xfa)](_0x42271a);}[_0x27e8e4(0x11e)](_0x264fc2){const _0x4e162f=_0x27e8e4;this[_0x4e162f(0x10e)][_0x4e162f(0x157)][_0x4e162f(0x11e)](_0x264fc2);}[_0x27e8e4(0x12f)](){const _0x528614=_0x27e8e4;this[_0x528614(0x10e)][_0x528614(0x157)][_0x528614(0x12f)]();}[_0x27e8e4(0x101)](){const _0x2bbc58=_0x27e8e4;this[_0x2bbc58(0x10e)][_0x2bbc58(0x157)][_0x2bbc58(0x101)]();}[_0x27e8e4(0x182)](_0x341a0a,_0x3f31d2,_0x4bc2cb){const _0x47b09a=_0x27e8e4;this[_0x47b09a(0x10e)][_0x47b09a(0x157)][_0x47b09a(0x182)](_0x341a0a,_0x3f31d2,_0x4bc2cb);}[_0x27e8e4(0x186)](){const _0x55dfe1=_0x27e8e4;this[_0x55dfe1(0x10e)][_0x55dfe1(0x157)][_0x55dfe1(0x186)](),this[_0x55dfe1(0x10e)][_0x55dfe1(0x157)][_0x55dfe1(0xf4)](this[_0x55dfe1(0x14b)]());}[_0x27e8e4(0x15d)](_0x2f9c9b){const _0x1e4f89=_0x27e8e4;this[_0x1e4f89(0x10e)][_0x1e4f89(0x157)][_0x1e4f89(0x15d)](_0x2f9c9b);}[_0x27e8e4(0x148)](_0x45a449){const _0x3530ea=_0x27e8e4;this[_0x3530ea(0x10e)][_0x3530ea(0x157)][_0x3530ea(0x121)](_0x45a449[_0x3530ea(0x184)]),this[_0x3530ea(0x10e)][_0x3530ea(0x157)][_0x3530ea(0x143)](_0x45a449[_0x3530ea(0x16f)]),this[_0x3530ea(0x10e)][_0x3530ea(0x157)][_0x3530ea(0xf4)](this[_0x3530ea(0x14b)](_0x45a449));}[_0x27e8e4(0x17d)](_0x28d1b3,_0x45d753){const _0x97950a=_0x27e8e4;this[_0x97950a(0x10e)][_0x97950a(0x157)][_0x97950a(0x13f)](_0x28d1b3),_0x45d753&&this[_0x97950a(0x10e)][_0x97950a(0x157)][_0x97950a(0x112)](!0x1);}[_0x27e8e4(0x111)](_0x3d8e1a){const _0x518ae4=_0x27e8e4;this[_0x518ae4(0xfe)]=_0x3d8e1a;}[_0x27e8e4(0xf8)](_0x2da0ff){const _0x146df=_0x27e8e4;this[_0x146df(0x10e)][_0x146df(0x113)][_0x146df(0xf8)](_0x2da0ff);}[_0x27e8e4(0x12a)](){const _0x16bf80=_0x27e8e4;this[_0x16bf80(0x15a)](_0x26f3ef(this[_0x16bf80(0x152)][_0x16bf80(0x153)],_0x16bf80(0xf0)));}[_0x27e8e4(0x15a)](_0x9c752c,_0x1d3262=!0x1){const _0x5c8825=_0x27e8e4;if(_0x1d3262&&!_0x310803()&&_0x9c752c[_0x5c8825(0x114)])return this[_0x5c8825(0x10e)][_0x5c8825(0x167)][_0x5c8825(0x144)]='',void this[_0x5c8825(0x158)](_0x9c752c);this[_0x5c8825(0x10e)][_0x5c8825(0x167)][_0x5c8825(0x144)]=_0x9c752c;}[_0x27e8e4(0x163)](_0x236c19){const _0x517f59=_0x27e8e4,_0x526fed=this[_0x517f59(0x123)](_0x236c19);this[_0x517f59(0x10e)][_0x517f59(0x113)][_0x517f59(0x163)](_0x526fed);}[_0x27e8e4(0x158)](_0x3ead84){const _0x52d384=_0x27e8e4;let _0x21a5f3=0x0;clearInterval(this[_0x52d384(0x136)]),this[_0x52d384(0x136)]=setInterval(()=>{const _0x44cd70=_0x52d384;this[_0x44cd70(0x10e)][_0x44cd70(0x167)][_0x44cd70(0x144)]=this[_0x44cd70(0x10e)][_0x44cd70(0x167)][_0x44cd70(0x144)]+_0x3ead84[_0x21a5f3],_0x21a5f3++,_0x21a5f3===_0x3ead84[_0x44cd70(0x114)]&&clearInterval(this[_0x44cd70(0x136)]);},0x1e);}[_0x27e8e4(0x178)](_0x15a04e){const _0x241026=_0x27e8e4;this[_0x241026(0x10e)][_0x241026(0x167)][_0x241026(0xef)]=_0x15a04e;}[_0x27e8e4(0x123)](_0x578d4d){const _0x3f08a0=_0x27e8e4;return _0x578d4d?_0x578d4d[_0x3f08a0(0x184)]&&_0x578d4d[_0x3f08a0(0x16f)]?_0x26f3ef(this[_0x3f08a0(0x152)][_0x3f08a0(0x153)],_0x3f08a0(0x176)):_0x578d4d[_0x3f08a0(0x184)]?_0x26f3ef(this[_0x3f08a0(0x152)][_0x3f08a0(0x153)],_0x3f08a0(0x120)):_0x578d4d[_0x3f08a0(0x16f)]?_0x26f3ef(this[_0x3f08a0(0x152)][_0x3f08a0(0x153)],_0x3f08a0(0x175)):_0x26f3ef(this[_0x3f08a0(0x152)][_0x3f08a0(0x153)],_0x3f08a0(0xf5)):'';}[_0x27e8e4(0x14b)](_0x32cc8e){const _0x465ee2=_0x27e8e4;return _0x32cc8e?_0x32cc8e[_0x465ee2(0x184)]&&_0x32cc8e[_0x465ee2(0x16f)]?_0x26f3ef(this[_0x465ee2(0x152)][_0x465ee2(0x153)],_0x465ee2(0xfc)):_0x32cc8e[_0x465ee2(0x184)]?_0x26f3ef(this[_0x465ee2(0x152)][_0x465ee2(0x153)],_0x465ee2(0xed)):_0x32cc8e[_0x465ee2(0x16f)]?_0x26f3ef(this[_0x465ee2(0x152)][_0x465ee2(0x153)],_0x465ee2(0x106)):_0x26f3ef(this[_0x465ee2(0x152)][_0x465ee2(0x153)],_0x465ee2(0x124)):_0x26f3ef(this[_0x465ee2(0x152)][_0x465ee2(0x153)],_0x465ee2(0x124));}[_0x27e8e4(0xf2)](_0xde3d4c,_0x53c05e,_0x18693c,_0x25dc62){const _0x236c74=_0x27e8e4;this[_0x236c74(0x10e)][_0x236c74(0xf2)](_0xde3d4c,_0x53c05e,_0x18693c,_0x25dc62);}[_0x27e8e4(0x11d)](_0x421d66){const _0x47f660=_0x27e8e4;this[_0x47f660(0x10e)][_0x47f660(0x11d)](_0x421d66);}[_0x27e8e4(0xee)](){const _0x42ea29=_0x27e8e4;this[_0x42ea29(0x10e)][_0x42ea29(0x157)][_0x42ea29(0xee)]();}[_0x27e8e4(0x108)](_0x59d807,_0x499574){const _0x598473=_0x27e8e4;this[_0x598473(0x10e)][_0x598473(0x113)][_0x598473(0x18f)](_0x59d807,_0x499574);}[_0x27e8e4(0x13a)](){const _0x5d34c7=_0x27e8e4;this[_0x5d34c7(0x10e)][_0x5d34c7(0x113)][_0x5d34c7(0x13a)]();}[_0x27e8e4(0x172)](){const _0x2aa6fe=_0x27e8e4;this[_0x2aa6fe(0x10e)][_0x2aa6fe(0x157)][_0x2aa6fe(0x18e)]=!0x0;}[_0x27e8e4(0x164)](){const _0x4837d2=_0x27e8e4;this[_0x4837d2(0x10e)][_0x4837d2(0x157)][_0x4837d2(0x18e)]=!0x1;}}
|
|
23
|
+
const _0x57d517=_0x5858;(function(_0x4dc0d8,_0x55df08){const _0x4195d1=_0x5858,_0x1e1fb6=_0x4dc0d8();while(!![]){try{const _0x2ee3e9=parseInt(_0x4195d1(0xf2))/0x1+-parseInt(_0x4195d1(0x11e))/0x2*(parseInt(_0x4195d1(0xb5))/0x3)+parseInt(_0x4195d1(0xa9))/0x4+parseInt(_0x4195d1(0x96))/0x5*(parseInt(_0x4195d1(0x91))/0x6)+-parseInt(_0x4195d1(0xb4))/0x7*(-parseInt(_0x4195d1(0xf8))/0x8)+parseInt(_0x4195d1(0xef))/0x9*(-parseInt(_0x4195d1(0xd5))/0xa)+-parseInt(_0x4195d1(0x107))/0xb*(parseInt(_0x4195d1(0xf7))/0xc);if(_0x2ee3e9===_0x55df08)break;else _0x1e1fb6['push'](_0x1e1fb6['shift']());}catch(_0x240fac){_0x1e1fb6['push'](_0x1e1fb6['shift']());}}}(_0x32c7,0xb4f6b));import{ContextPlugin as _0x2537a1}from'ckeditor5/src/core.js';function _0x32c7(){const _0x2e0164=['812210bSQNjW','showResizeButton','bind','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setContextItemLoading','addFeedInteractionHeader','then','toggleSuggestionDisplayMode','removeContextItem','enableModelSelector','stopInteraction','removeFeedInteraction','addContextItem','stopAutoScroll','isReasoningEnabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','has','setSelectedModel','4680452QfwlnI','userMessage','feedItemRenderingStrategy','availableModels','addTab','clearConversationContextUI','_view','interaction-header','queueEmptyPromise','isTrackChangesOn','delegate','7QFdgPz','3MbYVPH','ai-reply','markItemAsDone','quickActionData','disableControls','error-message','filter','children','updateFeedItemAIReplyContent','context','scrollFeedToSuggestion','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','focusPromptInput','closeSourceResourceBalloon','chatControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','scrollToSuggestion','_promiseQueue','isDisabled','values','TrackChanges','_animateConversationTitle','length','chatFeed','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','_isTrackChangesCommandValueBound','</p>','startsWith','isDone','addItem','finishInteraction','10myLqfr','streaming','addFeedItemAIReply','view','chat','isPending','updateFeedItemAIReplySources','_getLoadingMessage','addFeedItemError','setInputPlaceholder','<p>','ai.chat.context.searchInputVisibleFrom','clearPendingContextUI','label','isOfficialPlugin','AI_CHAT_HEADING','updateWebSources','set','last','find','commands','setFeedItemRenderingStrategy','ai.availableReplyActions','addFeedItemUserMessage','conversation-start','_interactionPromiseResolver','6817707UstWbt','displayedPrompt','insertSuggestion','351219udJWtq','enableControls','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','addFeedItemAISuggestion','1644PZDZHU','3740048rKeLzX','resetConversationTitle','isModelAvailable','setLoadingMessage','showDiff','abort','isMaximized','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','forEach','_getInputPlaceholder','AI_CHAT_WELCOME_MESSAGE','updateSuggestionPartState','isVisible','119097VRWpir','requires','setReasoning','setModelList','markFeedItemAsDone','updateResourceState','pluginName','interactionId','setConversationTitle','startAutoScroll','addFeedItemStaticMessage','from','enqueue','isPremiumPlugin','populateSourceResourceBalloon','removeItem','startInteraction','value','plugins','ai-suggestion-reply','updateFeedItemAIReplySuggestionContent','updateReplyItem','setConversationContext','612650IDziYM','options','setIsMaximized','_titleAnimationInterval','get','areActionsDisabled','isBusy','clear','createConversation','setIsUploadInProgress','updateFeedInteractionHeader','setModel','AITabs','AIChatUI','chatHeader','locale','updateFeedItemAIReplySuggestionPartState','ai.chat.models.modelSelectorAlwaysVisible','isWebSearchEnabled','setAddContextOptions','updateCapabilities','config','user-message','toggleLoadingSkeleton','destroy','trackChanges','isLoading','disableModelSelector','48FMvEJm','resetMessageInput','remove','contextItems','setWebSearch'];_0x32c7=function(){return _0x2e0164;};return _0x32c7();}import{_isMotionReduced as _0x273781}from'ckeditor5/src/utils.js';import{AIChatView as _0x60ff05}from'./ui/aichatview.js';import{AITabs as _0x2959ad}from'../aitabs/aitabs.js';function _0x5858(_0x80ccc4,_0x4f085c){const _0x32c7db=_0x32c7();return _0x5858=function(_0x585891,_0x3a7cb3){_0x585891=_0x585891-0x7c;let _0x5f1819=_0x32c7db[_0x585891];return _0x5f1819;},_0x5858(_0x80ccc4,_0x4f085c);}import{getTranslation as _0x2f2911}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x158aee}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x35ba7a}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x48b59a}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x43a607}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x149006}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x416fd8}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x2537a1{static get[_0x57d517(0x108)](){return[_0x2959ad];}[_0x57d517(0xaf)];static get[_0x57d517(0x10d)](){const _0x174277=_0x57d517;return _0x174277(0x82);}static get[_0x57d517(0xe3)](){return!0x0;}static get[_0x57d517(0x114)](){return!0x0;}[_0x57d517(0xab)]=_0x57d517(0xd6);[_0x57d517(0xfc)]=!0x0;[_0x57d517(0xc7)];[_0x57d517(0xee)];[_0x57d517(0x121)]=void 0x0;[_0x57d517(0xcf)]=!0x1;constructor(_0x3e5f72){const _0xf73cd5=_0x57d517;super(_0x3e5f72);const _0x4f98aa=this[_0xf73cd5(0xbe)][_0xf73cd5(0x119)][_0xf73cd5(0x122)](_0xf73cd5(0x81));this[_0xf73cd5(0xe6)](_0xf73cd5(0x124),!0x1),this[_0xf73cd5(0xc7)]=new _0x48b59a(),this[_0xf73cd5(0xaf)]=new _0x60ff05(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],{'showResizeButton':_0x4f98aa[_0xf73cd5(0x97)],'contextResourcesSearchInputVisibleFrom':this[_0xf73cd5(0xbe)][_0xf73cd5(0x8a)][_0xf73cd5(0x122)](_0xf73cd5(0xe0))}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xb3)](..._0x43a607)['to'](this),this[_0xf73cd5(0xaf)]['on'](_0xf73cd5(0x9e),(_0x5d500d,{showDiff:_0xec250})=>{const _0x3248ea=_0xf73cd5;this[_0x3248ea(0xfc)]=_0xec250;}),_0x4f98aa[_0xf73cd5(0xd8)][_0xf73cd5(0xad)]({'id':_0xf73cd5(0xd9),'buttonLabel':_0x2f2911(this[_0xf73cd5(0xbe)][_0xf73cd5(0x84)],_0xf73cd5(0xe4)),'buttonIcon':_0x158aee,'order':0x0,'content':this[_0xf73cd5(0xaf)]}),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0x98)](_0xf73cd5(0x8f))['to'](this,_0xf73cd5(0x124),_0x551d81=>_0x551d81),this[_0xf73cd5(0xaf)][_0xf73cd5(0xcd)][_0xf73cd5(0x98)](_0xf73cd5(0xda))['to'](this,_0xf73cd5(0x124),_0x4261ab=>_0x4261ab),this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)][_0xf73cd5(0xde)](this[_0xf73cd5(0x103)]()),this[_0xf73cd5(0x98)](_0xf73cd5(0xfa))['to'](this[_0xf73cd5(0xaf)][_0xf73cd5(0xc4)],_0xf73cd5(0xfa));}[_0x57d517(0x8d)](){const _0xcb3b03=_0x57d517;super[_0xcb3b03(0x8d)](),this[_0xcb3b03(0x121)]&&clearInterval(this[_0xcb3b03(0x121)]);}[_0x57d517(0x7d)](_0x3ebe54){const _0x28806e=_0x57d517;this[_0x28806e(0xaf)][_0x28806e(0xcd)][_0x28806e(0x7c)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0xa0)](),this[_0x28806e(0xaf)][_0x28806e(0xc4)][_0x28806e(0x10a)](_0x3ebe54[_0x28806e(0xac)],!this[_0x28806e(0xbe)][_0x28806e(0x8a)][_0x28806e(0x122)](_0x28806e(0x86))),this[_0x28806e(0x111)]({'id':_0x28806e(0xed),'staticMessage':_0x2f2911(this[_0x28806e(0xbe)][_0x28806e(0x84)],_0x28806e(0x104))});}[_0x57d517(0x111)]({id:_0x43bb10,staticMessage:_0x2228e4}){const _0x7c5e06=_0x57d517;this[_0x7c5e06(0xaf)][_0x7c5e06(0xcd)][_0x7c5e06(0xd3)](_0x7c5e06(0xb6),{'id':_0x43bb10,'initialContent':_0x7c5e06(0xdf)+_0x2228e4+_0x7c5e06(0xd0)});}[_0x57d517(0xec)](_0x554242){const _0x1769a9=_0x57d517,_0x5c5979=_0x554242[_0x1769a9(0xb8)]?.[_0x1769a9(0xf0)]||_0x554242[_0x1769a9(0xaa)];this[_0x1769a9(0xaf)][_0x1769a9(0xcd)][_0x1769a9(0xd3)](_0x1769a9(0x8b),{'contextItems':Array[_0x1769a9(0x112)](_0x554242[_0x1769a9(0x94)][_0x1769a9(0xc9)]()),'initialContent':_0x1769a9(0xdf)+_0x5c5979+_0x1769a9(0xd0),'id':_0x554242['id']});}[_0x57d517(0xdd)]({errorMessage:_0x172ee1,id:_0x34f6}){const _0x5160b9=_0x57d517;this[_0x5160b9(0xaf)][_0x5160b9(0xcd)][_0x5160b9(0xd3)](_0x5160b9(0xba),{'initialContent':_0x5160b9(0xdf)+_0x172ee1+_0x5160b9(0xd0),'id':_0x34f6});}[_0x57d517(0xd7)](_0x24d12c){const _0x1238f6=_0x57d517;return this[_0x1238f6(0xc7)][_0x1238f6(0x113)](async()=>{const _0x10eaa4=_0x1238f6;this[_0x10eaa4(0xaf)][_0x10eaa4(0xcd)][_0x10eaa4(0xd3)](_0x10eaa4(0xb6),{'id':_0x24d12c[_0x10eaa4(0x10e)]+':'+_0x24d12c['id']}),this[_0x10eaa4(0xfb)](null);});}async[_0x57d517(0xf6)](_0xdf766b){const _0x560d22=_0x57d517,_0xc405b7=_0x149006(this[_0x560d22(0xbe)]);let _0x72c0ac=_0xc405b7[_0x560d22(0x8a)][_0x560d22(0x122)](_0x560d22(0xeb))||[..._0x416fd8];if(_0xc405b7[_0x560d22(0x119)][_0x560d22(0xa7)](_0x560d22(0xca))){if(!this[_0x560d22(0xcf)]){this[_0x560d22(0xcf)]=!0x0;const _0x187708=_0xc405b7[_0x560d22(0xe9)][_0x560d22(0x122)](_0x560d22(0x8e));this[_0x560d22(0xaf)][_0x560d22(0xcd)][_0x560d22(0x98)](_0x560d22(0xb2))['to'](_0x187708,_0x560d22(0x118));}}else _0x72c0ac=_0x72c0ac[_0x560d22(0xbb)](_0x48196c=>_0x560d22(0xf1)!=_0x48196c);return this[_0x560d22(0xc7)][_0x560d22(0x113)](async()=>{const _0x3e808a=_0x560d22;this[_0x3e808a(0xaf)][_0x3e808a(0xcd)][_0x3e808a(0xd3)](_0x3e808a(0x11a),{'id':_0xdf766b[_0x3e808a(0x10e)]+':'+_0xdf766b['id'],'areActionsDisabled':_0xdf766b[_0x3e808a(0x123)],'showDiff':this[_0x3e808a(0xfc)],'availableActions':_0x72c0ac}),this[_0x3e808a(0xfb)](null);});}[_0x57d517(0x9c)](_0x14bb26,_0x3bd6f5){const _0x57677f=_0x57d517,_0x19d6a0=this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0xe7)];if(_0x19d6a0 instanceof _0x35ba7a)return this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xbc)][_0x57677f(0x93)](_0x19d6a0),void this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':{'isWebSearchEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0x87)]||_0x3bd6f5[_0x57677f(0x87)],'isReasoningEnabled':_0x19d6a0[_0x57677f(0xc0)][_0x57677f(0xa5)]||_0x3bd6f5[_0x57677f(0xa5)]}});this[_0x57677f(0xaf)][_0x57677f(0xcd)][_0x57677f(0xd3)](_0x57677f(0xb0),{'id':_0x14bb26['id'],'capabilities':_0x3bd6f5});}[_0x57d517(0x7f)](_0x4cee3d){const _0x2c3325=_0x57d517,_0x49b66d=this[_0x2c3325(0xaf)][_0x2c3325(0xcd)][_0x2c3325(0xbc)][_0x2c3325(0xe8)](_0x482de4=>_0x482de4[_0x2c3325(0x11f)]['id']==_0x4cee3d['id']&&_0x482de4 instanceof _0x35ba7a);_0x49b66d&&_0x49b66d[_0x2c3325(0xe6)](_0x2c3325(0x106),_0x4cee3d[_0x2c3325(0x106)]);}async[_0x57d517(0xbd)](_0x3af041){const _0x52f593=_0x57d517,_0x221982=_0x3af041[_0x52f593(0xff)]||this[_0x52f593(0xab)];return this[_0x52f593(0xc7)][_0x52f593(0x113)](async _0x2fc90a=>{const _0x1b11f7=_0x52f593;await this[_0x1b11f7(0xaf)][_0x1b11f7(0xcd)][_0x1b11f7(0x11c)]({..._0x3af041,'abortSignal':_0x2fc90a,'renderingStrategy':_0x221982}),_0x3af041[_0x1b11f7(0xd2)]&&this[_0x1b11f7(0x10b)](_0x3af041['id']);});}[_0x57d517(0xdb)](_0x12788d,_0x179105){const _0x115b95=_0x57d517;this[_0x115b95(0xaf)][_0x115b95(0xcd)][_0x115b95(0xe5)](_0x12788d,_0x179105);}async[_0x57d517(0x11b)](_0x4fff99){const _0x3da720=_0x57d517,_0x89d411=_0x4fff99[_0x3da720(0xff)]||this[_0x3da720(0xab)];return this[_0x3da720(0xc7)][_0x3da720(0x113)](async _0x58c20d=>{const _0x424041=_0x3da720;await this[_0x424041(0xaf)][_0x424041(0xcd)][_0x424041(0x99)]({..._0x4fff99,'abortSignal':_0x58c20d,'renderingStrategy':_0x89d411}),_0x4fff99[_0x424041(0xd2)]&&this[_0x424041(0x10b)](_0x4fff99['id']);});}[_0x57d517(0x85)](_0x399c98){const _0x2c0f7a=_0x57d517;this[_0x2c0f7a(0xaf)][_0x2c0f7a(0xcd)][_0x2c0f7a(0x105)](_0x399c98);}[_0x57d517(0x10b)](_0x555e86){const _0x17053e=_0x57d517;this[_0x17053e(0xaf)][_0x17053e(0xcd)][_0x17053e(0xb7)](_0x555e86);}[_0x57d517(0xa2)](_0x25bf84){const _0x14e527=_0x57d517;this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0xf4)]()[_0x14e527(0xbb)](_0xa64901=>_0xa64901[_0x14e527(0xd1)](_0x25bf84))[_0x14e527(0x102)](_0x72f709=>this[_0x14e527(0xaf)][_0x14e527(0xcd)][_0x14e527(0x116)](_0x72f709));}[_0x57d517(0x117)](){const _0x4bc009=_0x57d517;this[_0x4bc009(0xfb)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x4bc009(0xaf)][_0x4bc009(0xc4)][_0x4bc009(0x90)](!this[_0x4bc009(0xbe)][_0x4bc009(0x8a)][_0x4bc009(0x122)](_0x4bc009(0x86))),this[_0x4bc009(0x124)]=!0x0,this[_0x4bc009(0xaf)][_0x4bc009(0xcd)][_0x4bc009(0x110)]();}[_0x57d517(0xa1)](_0xf16f2c){const _0x84f258=_0x57d517;this[_0x84f258(0xc7)][_0x84f258(0xfd)](),this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xf4)]()[_0x84f258(0xbb)](_0x1c9e71=>_0x1c9e71[_0x84f258(0xd1)](_0xf16f2c['id']))[_0x84f258(0x102)](_0x297c42=>this[_0x84f258(0x10b)](_0x297c42)),this[_0x84f258(0x124)]=!0x1,this[_0x84f258(0xaf)][_0x84f258(0xcd)][_0x84f258(0xa4)]();}async[_0x57d517(0xd4)](){const _0x56fb7c=_0x57d517;return this[_0x56fb7c(0xc7)][_0x56fb7c(0xb1)][_0x56fb7c(0x9d)](()=>{const _0x7f1e0c=_0x56fb7c;this[_0x7f1e0c(0x124)]=!0x1,this[_0x7f1e0c(0xaf)][_0x7f1e0c(0xcd)][_0x7f1e0c(0xa4)]();});}[_0x57d517(0xa3)](_0x3cabaf,_0x5a184f){const _0x44b38a=_0x57d517;this[_0x44b38a(0xaf)][_0x44b38a(0xc4)][_0x44b38a(0xa3)](_0x3cabaf,_0x5a184f);}[_0x57d517(0x9f)](_0x21ff59){const _0x5c47a9=_0x57d517;this[_0x5c47a9(0xaf)][_0x5c47a9(0xc4)][_0x5c47a9(0x9f)](_0x21ff59);}[_0x57d517(0x9b)](_0x4791f8,_0x5b0544){const _0x2d8174=_0x57d517;this[_0x2d8174(0xaf)][_0x2d8174(0xc4)][_0x2d8174(0x9b)](_0x4791f8,_0x5b0544);}[_0x57d517(0x7e)](_0x2cc9fe){const _0x225c86=_0x57d517;this[_0x225c86(0xaf)][_0x225c86(0xc4)][_0x225c86(0x7e)](_0x2cc9fe);}[_0x57d517(0x11d)](_0x4f8891){const _0x5629dd=_0x57d517;this[_0x5629dd(0xaf)][_0x5629dd(0xc4)][_0x5629dd(0x11d)](_0x4f8891);}[_0x57d517(0xe1)](){const _0x474528=_0x57d517;this[_0x474528(0xaf)][_0x474528(0xc4)][_0x474528(0xe1)]();}[_0x57d517(0xae)](){const _0x86edbe=_0x57d517;this[_0x86edbe(0xaf)][_0x86edbe(0xc4)][_0x86edbe(0xae)]();}[_0x57d517(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9){const _0x118aa8=_0x57d517;this[_0x118aa8(0xaf)][_0x118aa8(0xc4)][_0x118aa8(0x10c)](_0x47bf45,_0x471dae,_0x3c2ff9);}[_0x57d517(0x92)](){const _0x2bfe2f=_0x57d517;this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0x92)](),this[_0x2bfe2f(0xaf)][_0x2bfe2f(0xc4)][_0x2bfe2f(0xde)](this[_0x2bfe2f(0x103)]());}[_0x57d517(0x88)](_0x940a16){const _0x369a60=_0x57d517;this[_0x369a60(0xaf)][_0x369a60(0xc4)][_0x369a60(0x88)](_0x940a16);}[_0x57d517(0x89)](_0x30b03b){const _0x157270=_0x57d517;this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x95)](_0x30b03b[_0x157270(0x87)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0x109)](_0x30b03b[_0x157270(0xa5)]),this[_0x157270(0xaf)][_0x157270(0xc4)][_0x157270(0xde)](this[_0x157270(0x103)](_0x30b03b));}[_0x57d517(0xa8)](_0x32c596,_0x34a7de){const _0x5a0307=_0x57d517;this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x80)](_0x32c596),_0x34a7de&&this[_0x5a0307(0xaf)][_0x5a0307(0xc4)][_0x5a0307(0x90)](!0x1);}[_0x57d517(0xea)](_0x4bdafc){const _0x878fb2=_0x57d517;this[_0x878fb2(0xab)]=_0x4bdafc;}[_0x57d517(0x8c)](_0x8d9e1f){const _0x3c2d54=_0x57d517;this[_0x3c2d54(0xaf)][_0x3c2d54(0xcd)][_0x3c2d54(0x8c)](_0x8d9e1f);}[_0x57d517(0xf9)](){const _0x269998=_0x57d517;this[_0x269998(0x10f)](_0x2f2911(this[_0x269998(0xbe)][_0x269998(0x84)],_0x269998(0xe4)));}[_0x57d517(0x10f)](_0x5c5797,_0x5f1893=!0x1){const _0x437349=_0x57d517;if(_0x5f1893&&!_0x273781()&&_0x5c5797[_0x437349(0xcc)])return this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]='',void this[_0x437349(0xcb)](_0x5c5797);this[_0x437349(0xaf)][_0x437349(0x83)][_0x437349(0xe2)]=_0x5c5797;}[_0x57d517(0xfb)](_0x267e41){const _0x4b2e60=_0x57d517,_0x21842d=this[_0x4b2e60(0xdc)](_0x267e41);this[_0x4b2e60(0xaf)][_0x4b2e60(0xcd)][_0x4b2e60(0xfb)](_0x21842d);}[_0x57d517(0xcb)](_0x500aaa){const _0x417251=_0x57d517;let _0x5951cd=0x0;clearInterval(this[_0x417251(0x121)]),this[_0x417251(0x121)]=setInterval(()=>{const _0x27c1da=_0x417251;this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]=this[_0x27c1da(0xaf)][_0x27c1da(0x83)][_0x27c1da(0xe2)]+_0x500aaa[_0x5951cd],_0x5951cd++,_0x5951cd===_0x500aaa[_0x27c1da(0xcc)]&&clearInterval(this[_0x27c1da(0x121)]);},0x1e);}[_0x57d517(0x120)](_0x4379d7){const _0x3e9b65=_0x57d517;this[_0x3e9b65(0xaf)][_0x3e9b65(0x83)][_0x3e9b65(0xfe)]=_0x4379d7;}[_0x57d517(0xdc)](_0x1dc7fd){const _0x29083e=_0x57d517;return _0x1dc7fd?_0x1dc7fd[_0x29083e(0x87)]&&_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xc1)):_0x1dc7fd[_0x29083e(0x87)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0x101)):_0x1dc7fd[_0x29083e(0xa5)]?_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xce)):_0x2f2911(this[_0x29083e(0xbe)][_0x29083e(0x84)],_0x29083e(0xf5)):'';}[_0x57d517(0x103)](_0xf30f55){const _0x2780ae=_0x57d517;return _0xf30f55?_0xf30f55[_0x2780ae(0x87)]&&_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xa6)):_0xf30f55[_0x2780ae(0x87)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x9a)):_0xf30f55[_0x2780ae(0xa5)]?_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0x100)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5)):_0x2f2911(this[_0x2780ae(0xbe)][_0x2780ae(0x84)],_0x2780ae(0xc5));}[_0x57d517(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660){const _0xaa097b=_0x57d517;this[_0xaa097b(0xaf)][_0xaa097b(0x115)](_0x5e66bc,_0xe2c26c,_0x4d1a6d,_0x165660);}[_0x57d517(0xc3)](_0x1c6432){const _0x404a00=_0x57d517;this[_0x404a00(0xaf)][_0x404a00(0xc3)](_0x1c6432);}[_0x57d517(0xc2)](){const _0x1c3abb=_0x57d517;this[_0x1c3abb(0xaf)][_0x1c3abb(0xc4)][_0x1c3abb(0xc2)]();}[_0x57d517(0xbf)](_0x30a14e,_0x29f8cd){const _0x45a0c8=_0x57d517;this[_0x45a0c8(0xaf)][_0x45a0c8(0xcd)][_0x45a0c8(0xc6)](_0x30a14e,_0x29f8cd);}[_0x57d517(0x110)](){const _0x1a68cf=_0x57d517;this[_0x1a68cf(0xaf)][_0x1a68cf(0xcd)][_0x1a68cf(0x110)]();}[_0x57d517(0xb9)](){const _0x119c59=_0x57d517;this[_0x119c59(0xaf)][_0x119c59(0xc4)][_0x119c59(0xc8)]=!0x0;}[_0x57d517(0xf3)](){const _0x236302=_0x57d517;this[_0x236302(0xaf)][_0x236302(0xc4)][_0x236302(0xc8)]=!0x1;}}
|
|
@@ -206,6 +206,9 @@ export type AIContextResourceState = AIContextResource & {
|
|
|
206
206
|
* providing the AI with more context for generating responses. The properties defined in this config are set
|
|
207
207
|
* in the `config.ai.chat.context` namespace.
|
|
208
208
|
*
|
|
209
|
+
* It also allows to change the minimal number of items in the context adding menu required to show the search input
|
|
210
|
+
* using `searchInputVisibleFrom` option.
|
|
211
|
+
*
|
|
209
212
|
* ```ts
|
|
210
213
|
* ClassicEditor
|
|
211
214
|
* .create( editorElement, {
|
|
@@ -222,7 +225,8 @@ export type AIContextResourceState = AIContextResource & {
|
|
|
222
225
|
* getResources: ( query?: string ) => fetchMyDocuments( query ),
|
|
223
226
|
* getData: ( id ) => fetchDocumentContent( id )
|
|
224
227
|
* }
|
|
225
|
-
* ]
|
|
228
|
+
* ],
|
|
229
|
+
* searchInputVisibleFrom: 5
|
|
226
230
|
* }
|
|
227
231
|
* }
|
|
228
232
|
* }
|
|
@@ -237,7 +241,9 @@ export type AIContextResourceState = AIContextResource & {
|
|
|
237
241
|
* The `sources` property is an array where each element represents a custom option in the context menu.
|
|
238
242
|
* When a user clicks on a custom source option, it will display a list of available resources returned by the
|
|
239
243
|
* `getResources` callback. If a resource doesn't have content provided in the `getResources` response, the content
|
|
240
|
-
* will be retrieved using the `getData` callback when the resource is selected.
|
|
244
|
+
* will be retrieved using the `getData` callback when the resource is selected. If the list of resources is long enough,
|
|
245
|
+
* the search input will be shown to filter the resources. The minimal number of resources required to show the search input
|
|
246
|
+
* can be configured using `searchInputVisibleFrom` option.
|
|
241
247
|
*
|
|
242
248
|
* See {@link module:ai/aichat/model/aichatcontext~AIContextProvider} and
|
|
243
249
|
* {@link module:ai/aichat/model/aichatcontext~AIContextResource}.
|
|
@@ -255,6 +261,8 @@ export type AIChatContextConfig = {
|
|
|
255
261
|
sources?: Array<AIContextProvider>;
|
|
256
262
|
/**
|
|
257
263
|
* The minimum number of resources to show the search input.
|
|
264
|
+
*
|
|
265
|
+
* @default 7
|
|
258
266
|
*/
|
|
259
267
|
searchInputVisibleFrom?: number;
|
|
260
268
|
};
|