@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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.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
|
-
|
|
23
|
+
(function(_0x330f48,_0x5cbd0c){var _0x169a18=_0x128e,_0x1f1eef=_0x330f48();while(!![]){try{var _0x41e45d=-parseInt(_0x169a18(0xb5))/0x1*(-parseInt(_0x169a18(0xb6))/0x2)+-parseInt(_0x169a18(0xba))/0x3*(-parseInt(_0x169a18(0xb1))/0x4)+parseInt(_0x169a18(0xab))/0x5*(-parseInt(_0x169a18(0xaf))/0x6)+parseInt(_0x169a18(0xae))/0x7+parseInt(_0x169a18(0xb8))/0x8*(-parseInt(_0x169a18(0xaa))/0x9)+parseInt(_0x169a18(0xb2))/0xa+-parseInt(_0x169a18(0xb4))/0xb*(parseInt(_0x169a18(0xad))/0xc);if(_0x41e45d===_0x5cbd0c)break;else _0x1f1eef['push'](_0x1f1eef['shift']());}catch(_0x1dd93c){_0x1f1eef['push'](_0x1f1eef['shift']());}}}(_0x48d7,0xea07e));function _0x48d7(){var _0x38291d=['1341435bcspVn','setTemplate','48TWQXMF','4238192osmSeZ','18RYngSr','ck-ai-balloon__disclaimer-content','24ACvvhd','15509550PIvMVB','ck-ai-balloon__disclaimer','425062YFaLYQ','527851yoniXJ','2QSfTJc','AI_DISCLAIMER_TEXT','8KaGXGW','div','352194KbmEQd','13235679zVhjex'];_0x48d7=function(){return _0x38291d;};return _0x48d7();}import{View as _0x3319d1}from'ckeditor5/src/ui.js';function _0x128e(_0x2b7754,_0x4551da){var _0x48d71c=_0x48d7();return _0x128e=function(_0x128ee0,_0x1a7084){_0x128ee0=_0x128ee0-0xaa;var _0x1a9e91=_0x48d71c[_0x128ee0];return _0x1a9e91;},_0x128e(_0x2b7754,_0x4551da);}import{getTranslation as _0x4c5499}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x3319d1{constructor(_0x61528f){var _0x200b4e=_0x128e;super(_0x61528f),this[_0x200b4e(0xac)]({'tag':_0x200b4e(0xb9),'attributes':{'class':['ck',_0x200b4e(0xb3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x200b4e(0xb0)]},'children':[{'text':_0x4c5499(_0x61528f,_0x200b4e(0xb7))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2308(){const _0x12b0a9=['AI_BALLOON_SUGGEST_BUTTON','563551FYOmVD','set','191106dcMVpY','5379OqQpBu','AI_BALLOON_APPLY_BUTTON','applyButton','699419BUMKzH','63YYTntp','isLoading','suggestButton','2wRUtVr','locale','extendTemplate','ck-ai-button-secondary','add','45FvAKzk','_createButton','ck-ai-button-primary','4682776gUWhhO','items','isEnabled','768WcgEPz','bind','405930JBzGoQ','14841211yVGRBw','ck-ai-balloon__toolbar'];_0x2308=function(){return _0x12b0a9;};return _0x2308();}const _0x3fae00=_0x3958;(function(_0x462b15,_0x3fd74a){const _0x1da69d=_0x3958,_0x302972=_0x462b15();while(!![]){try{const _0x5ace64=-parseInt(_0x1da69d(0xc3))/0x1*(parseInt(_0x1da69d(0xcd))/0x2)+parseInt(_0x1da69d(0xc6))/0x3*(-parseInt(_0x1da69d(0xbd))/0x4)+parseInt(_0x1da69d(0xb7))/0x5*(-parseInt(_0x1da69d(0xc5))/0x6)+-parseInt(_0x1da69d(0xc9))/0x7+parseInt(_0x1da69d(0xba))/0x8+parseInt(_0x1da69d(0xca))/0x9*(-parseInt(_0x1da69d(0xbf))/0xa)+parseInt(_0x1da69d(0xc0))/0xb;if(_0x5ace64===_0x3fd74a)break;else _0x302972['push'](_0x302972['shift']());}catch(_0x742e1c){_0x302972['push'](_0x302972['shift']());}}}(_0x2308,0x56eae));import{ToolbarView as _0x58fc54,ButtonView as _0x25a557}from'ckeditor5/src/ui.js';import{getTranslation as _0x4205f9}from'../../aicore/utils/common-translations.js';function _0x3958(_0x4806b1,_0x29c40a){const _0x2308dd=_0x2308();return _0x3958=function(_0x39581f,_0x2a26ab){_0x39581f=_0x39581f-0xb4;let _0x169804=_0x2308dd[_0x39581f];return _0x169804;},_0x3958(_0x4806b1,_0x29c40a);}export class AIBalloonToolbarView extends _0x58fc54{constructor(_0x59ffa5,_0x58f682=!0x0,_0x1a23ca=!0x0){const _0x226cf3=_0x3958;super(_0x59ffa5),this[_0x226cf3(0xc4)](_0x226cf3(0xcb),!0x1),_0x58f682&&(this[_0x226cf3(0xc8)]=this[_0x226cf3(0xb8)](_0x4205f9(_0x59ffa5,_0x226cf3(0xc7)),_0x226cf3(0xb9)),this[_0x226cf3(0xc8)][_0x226cf3(0xbe)](_0x226cf3(0xbc))['to'](this,_0x226cf3(0xcb),_0x2e39e4=>!_0x2e39e4),this[_0x226cf3(0xbb)][_0x226cf3(0xb6)](this[_0x226cf3(0xc8)])),_0x1a23ca&&(this[_0x226cf3(0xcc)]=this[_0x226cf3(0xb8)](_0x4205f9(_0x59ffa5,_0x226cf3(0xc2)),_0x58f682?_0x226cf3(0xb5):_0x226cf3(0xb9)),this[_0x226cf3(0xcc)][_0x226cf3(0xbe)](_0x226cf3(0xbc))['to'](this,_0x226cf3(0xcb),_0x3d075f=>!_0x3d075f),this[_0x226cf3(0xbb)][_0x226cf3(0xb6)](this[_0x226cf3(0xcc)])),this[_0x226cf3(0xb4)]({'attributes':{'class':[_0x226cf3(0xc1)]}});}[_0x3fae00(0xb8)](_0x3388c1,_0x207c23){const _0x4786a1=_0x3fae00,_0x28bcd7=new _0x25a557(this[_0x4786a1(0xce)]);return _0x28bcd7[_0x4786a1(0xc4)]({'label':_0x3388c1,'class':_0x207c23||'','isVisible':!0x0,'withText':!0x0}),_0x28bcd7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5d936d=_0x34ac;(function(_0x4d558b,_0x1309c1){const _0x1b8979=_0x34ac,_0x376952=_0x4d558b();while(!![]){try{const _0x342ff0=-parseInt(_0x1b8979(0x19d))/0x1*(-parseInt(_0x1b8979(0x16d))/0x2)+parseInt(_0x1b8979(0x17c))/0x3*(parseInt(_0x1b8979(0x16e))/0x4)+-parseInt(_0x1b8979(0x1b1))/0x5+-parseInt(_0x1b8979(0x1a8))/0x6+-parseInt(_0x1b8979(0x194))/0x7+-parseInt(_0x1b8979(0x199))/0x8+parseInt(_0x1b8979(0x1a0))/0x9;if(_0x342ff0===_0x1309c1)break;else _0x376952['push'](_0x376952['shift']());}catch(_0x518748){_0x376952['push'](_0x376952['shift']());}}}(_0x4e56,0x6e813));import{ButtonView as _0x45a525,View as _0x1374cc,ViewCollection as _0x58573b,FocusCycler as _0x473402}from'ckeditor5/src/ui.js';import{FocusTracker as _0x57003a,KeystrokeHandler as _0x26d9b2}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x15819f,IconPreviousArrow as _0x17da93}from'@ckeditor/ckeditor5-icons';function _0x34ac(_0x208add,_0x2e59d4){const _0x4e5620=_0x4e56();return _0x34ac=function(_0x34ac94,_0x43667e){_0x34ac94=_0x34ac94-0x169;let _0x5d7874=_0x4e5620[_0x34ac94];return _0x5d7874;},_0x34ac(_0x208add,_0x2e59d4);}import{AIBalloonToolbarView as _0xdc472b}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x2b80b9}from'./aiballoondisclaimerview.js';import{getTranslation as _0x4b3723}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x5d936d(0x1ba),_0x5d936d(0x1a5),_0x5d936d(0x19c),_0x5d936d(0x16a)];export class AIBalloonView extends _0x1374cc{[_0x5d936d(0x192)];[_0x5d936d(0x1a2)];[_0x5d936d(0x186)];[_0x5d936d(0x198)];[_0x5d936d(0x1af)];[_0x5d936d(0x19f)];constructor(_0x47a2c4,_0x214c10,_0x401ac1,_0x5efbe7){const _0x77dd30=_0x5d936d;super(_0x47a2c4),this[_0x77dd30(0x198)]=_0x401ac1,this[_0x77dd30(0x1ae)](_0x77dd30(0x18d),!0x1),this[_0x77dd30(0x1ae)](_0x77dd30(0x16f),_0x5efbe7),this[_0x77dd30(0x1ae)](_0x77dd30(0x1b2),!0x1),this[_0x77dd30(0x1ae)](_0x77dd30(0x181),''),this[_0x77dd30(0x192)]=new _0x57003a(),this[_0x77dd30(0x1a2)]=new _0x26d9b2(),this[_0x77dd30(0x1af)]=this[_0x77dd30(0x1b4)](),this[_0x77dd30(0x186)]=new _0x473402({'focusables':this[_0x77dd30(0x1af)],'focusTracker':this[_0x77dd30(0x192)],'keystrokeHandler':this[_0x77dd30(0x1a2)],'actions':{'focusPrevious':_0x77dd30(0x177),'focusNext':_0x77dd30(0x1a7)}}),this[_0x77dd30(0x191)]=new _0x58573b(),this[_0x77dd30(0x17b)](_0x214c10[_0x77dd30(0x171)]),this[_0x77dd30(0x16b)](),this[_0x77dd30(0x176)](_0x214c10[_0x77dd30(0x190)],_0x214c10[_0x77dd30(0x188)]),this[_0x77dd30(0x183)][_0x77dd30(0x1b8)](_0x77dd30(0x18d))['to'](this),this[_0x77dd30(0x1af)][_0x77dd30(0x1a3)](),this[_0x77dd30(0x1af)][_0x77dd30(0x16c)]([this[_0x77dd30(0x183)]]),this[_0x77dd30(0x1ad)]({'tag':_0x77dd30(0x170),'attributes':{'class':_0x77dd30(0x184)},'children':this[_0x77dd30(0x191)]}),this['on'](_0x77dd30(0x1b6),()=>{const _0x355940=_0x77dd30;this[_0x355940(0x191)][_0x355940(0x17a)](this[_0x355940(0x183)]),this[_0x355940(0x176)](_0x214c10[_0x355940(0x190)],_0x214c10[_0x355940(0x188)]);});}[_0x5d936d(0x1aa)](){const _0x421ac9=_0x5d936d;super[_0x421ac9(0x1aa)]();for(const _0x36b851 of this[_0x421ac9(0x1af)])this[_0x421ac9(0x192)][_0x421ac9(0x18c)](_0x36b851[_0x421ac9(0x1b5)]);this[_0x421ac9(0x1a2)][_0x421ac9(0x19a)](this[_0x421ac9(0x1b5)]);}[_0x5d936d(0x173)](_0xcc88cc){const _0x4262eb=_0x5d936d;-0x1===_0xcc88cc?this[_0x4262eb(0x186)][_0x4262eb(0x1a1)]():this[_0x4262eb(0x186)][_0x4262eb(0x172)]();}[_0x5d936d(0x18b)](){const _0xd5dcc9=_0x5d936d;this[_0xd5dcc9(0x18d)]=!0x0;}[_0x5d936d(0x197)](){const _0x4f0182=_0x5d936d;this[_0x4f0182(0x18d)]=!0x1;}[_0x5d936d(0x1b3)](_0x398caa){const _0x1d28bc=_0x5d936d;this[_0x1d28bc(0x19f)]||(this[_0x1d28bc(0x19f)]=this[_0x1d28bc(0x1a4)](),this[_0x1d28bc(0x191)][_0x1d28bc(0x16c)]([this[_0x1d28bc(0x19f)]],0x0)),this[_0x1d28bc(0x181)]=_0x398caa,this[_0x1d28bc(0x1b2)]=!0x0;}[_0x5d936d(0x180)](){const _0x2eb8a0=_0x5d936d;this[_0x2eb8a0(0x1b2)]=!0x1;}[_0x5d936d(0x185)](_0x24c32c){const _0x54b082=_0x5d936d;this[_0x54b082(0x1b3)](_0x24c32c);}[_0x5d936d(0x196)](_0x2c21c4){const _0x43d802=_0x5d936d;this[_0x43d802(0x1b3)](_0x2c21c4),this[_0x43d802(0x183)]&&(this[_0x43d802(0x183)][_0x43d802(0x1b9)]&&(this[_0x43d802(0x183)][_0x43d802(0x1b9)][_0x43d802(0x18a)]=!0x1),this[_0x43d802(0x183)][_0x43d802(0x189)]&&(this[_0x43d802(0x183)][_0x43d802(0x189)][_0x43d802(0x18a)]=!0x1));}[_0x5d936d(0x193)](_0x598c11){const _0x24331d=_0x5d936d,_0x392c12=this[_0x24331d(0x1ab)](),_0x152e35=this[_0x24331d(0x187)]();_0x598c11[_0x24331d(0x175)][_0x24331d(0x19b)][_0x24331d(0x174)][_0x24331d(0x18c)](_0x392c12,0x2),_0x598c11[_0x24331d(0x175)][_0x24331d(0x19b)][_0x24331d(0x174)][_0x24331d(0x18c)](_0x152e35,0x0),this[_0x24331d(0x1af)][_0x24331d(0x16c)]([_0x392c12,_0x152e35]),this[_0x24331d(0x192)][_0x24331d(0x18c)](_0x392c12[_0x24331d(0x1b5)]),this[_0x24331d(0x192)][_0x24331d(0x18c)](_0x152e35[_0x24331d(0x1b5)]);}[_0x5d936d(0x17b)](_0x5b417e){const _0x15ed2e=_0x5d936d;this[_0x15ed2e(0x1ac)]=_0x5b417e,this[_0x15ed2e(0x191)][_0x15ed2e(0x18c)](this[_0x15ed2e(0x1ac)]);}[_0x5d936d(0x179)](_0x3cde43){const _0x10e459=_0x5d936d,_0x2219e7=this[_0x10e459(0x191)][_0x10e459(0x17d)](this[_0x10e459(0x1ac)]);this[_0x10e459(0x191)][_0x10e459(0x17a)](this[_0x10e459(0x1ac)]),this[_0x10e459(0x1ac)]=_0x3cde43,this[_0x10e459(0x191)][_0x10e459(0x18c)](this[_0x10e459(0x1ac)],_0x2219e7),this[_0x10e459(0x180)]();}[_0x5d936d(0x16b)](){const _0x4a6a46=_0x5d936d;this[_0x4a6a46(0x18e)]=new _0x2b80b9(this[_0x4a6a46(0x17f)]),this[_0x4a6a46(0x191)][_0x4a6a46(0x18c)](this[_0x4a6a46(0x18e)]);}[_0x5d936d(0x176)](_0x5eb3ae=!0x0,_0x334591=!0x0){const _0x186216=_0x5d936d;_0x5eb3ae=_0x5eb3ae&&!this[_0x186216(0x16f)]&&this[_0x186216(0x198)][_0x186216(0x178)](_0x186216(0x1ba)),_0x334591=_0x334591&&this[_0x186216(0x198)][_0x186216(0x178)](_0x186216(0x1a5)),this[_0x186216(0x183)]=new _0xdc472b(this[_0x186216(0x17f)],_0x5eb3ae,_0x334591),this[_0x186216(0x183)][_0x186216(0x1b9)]?.['on'](_0x186216(0x1b7),()=>{const _0x174e77=_0x186216;this[_0x174e77(0x19e)](_0x174e77(0x1ba));}),this[_0x186216(0x183)][_0x186216(0x189)]?.['on'](_0x186216(0x1b7),()=>{const _0x20cc45=_0x186216;this[_0x20cc45(0x19e)](_0x20cc45(0x1a5));}),this[_0x186216(0x191)][_0x186216(0x18c)](this[_0x186216(0x183)]);}[_0x5d936d(0x1ab)](){const _0x3cff1e=_0x5d936d,_0x27a830=new _0x45a525(this[_0x3cff1e(0x17f)]);return _0x27a830[_0x3cff1e(0x1ae)]({'icon':_0x15819f,'tooltip':_0x4b3723(this[_0x3cff1e(0x17f)],_0x3cff1e(0x18f))}),_0x27a830['on'](_0x3cff1e(0x1b7),()=>{const _0x391f41=_0x3cff1e;this[_0x391f41(0x19e)](_0x391f41(0x19c));}),_0x27a830;}[_0x5d936d(0x187)](){const _0x503b90=_0x5d936d,_0x1463d8=new _0x45a525(this[_0x503b90(0x17f)]);return _0x1463d8[_0x503b90(0x1ae)]({'icon':_0x17da93,'tooltip':_0x4b3723(this[_0x503b90(0x17f)],_0x503b90(0x1a9))}),_0x1463d8['on'](_0x503b90(0x1b7),()=>{const _0xe54b4e=_0x503b90;this[_0xe54b4e(0x19e)](_0xe54b4e(0x16a));}),_0x1463d8;}[_0x5d936d(0x1a4)](){const _0x49b91c=_0x5d936d,_0x171dd4=new _0x1374cc(this[_0x49b91c(0x17f)]),_0xb915ad=new _0x1374cc(this[_0x49b91c(0x17f)]);return _0xb915ad[_0x49b91c(0x1ad)]({'tag':_0x49b91c(0x17e),'attributes':{'class':['ck',_0x49b91c(0x182)]},'children':[{'text':this[_0x49b91c(0x1b0)]['to'](_0x49b91c(0x181))}]}),_0x171dd4[_0x49b91c(0x1ad)]({'tag':_0x49b91c(0x170),'attributes':{'class':['ck',_0x49b91c(0x1a6),_0x49b91c(0x169),this[_0x49b91c(0x1b0)]['if'](_0x49b91c(0x1b2),_0x49b91c(0x195),_0x25a953=>!_0x25a953)]},'children':[_0xb915ad]}),_0x171dd4;}}function _0x4e56(){const _0xc54a68=['clear','_createErrorView','insertSuggestion','ck-ai-suggestion__error','tab','2595756MrgeEd','AI_BALLOON_PREVIOUS_TOOLTIP','render','_createNextButtonView','_mainView','setTemplate','set','_focusables','bindTemplate','3732050fzqcuu','isErrorVisible','showError','createCollection','element','change:isTrackChangesOn','execute','bind','applyButton','applySuggestion','ai-balloon-error','showPrevious','_addDisclaimerView','addMany','10LhfpDb','48084ndgxUE','isTrackChangesOn','div','mainView','focusFirst','focus','children','view','_addToolbar','shift\x20+\x20tab','includes','updateContent','remove','_addContentView','174HqIxan','getIndex','span','locale','hideError','errorMessage','ck-ai-suggestion__error-text','toolbar','ai-balloon-content','showRecoverableError','focusCycler','_createPreviousButtonView','showSuggestButton','suggestButton','isEnabled','setLoading','add','isLoading','disclaimerView','AI_BALLOON_NEXT_TOOLTIP','showApplyButton','_dialogContent','focusTracker','setupRotator','1810410WTRcmF','ck-hidden','showBlockingError','clearLoading','_availableActions','6504576fKXTxE','listenTo','headerView','showNext','102563IrKAAi','fire','_errorView','13439988WzRlAg','focusLast','keystrokes'];_0x4e56=function(){return _0xc54a68;};return _0x4e56();}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3ad3(){var _0xdaafab=['isPremiumPlugin','removeSelectionFromChatContext','AIChat','focusPromptInput','requires','startConversation','addSelectionToChatContext','pluginName','plugins','2380iXYmOz','1917170hyIsYA','sendMessage','6DVRcui','11rdWDHC','get','define','12759umodhY','6737436imllcg','context','ai.chat.models','414654WHmxVn','2023670opdKwe','config','611NMVfQk','ai.chat.context','6488iQiGVH','376SWcSGE','3TaYEMb','111684lzdEfl','isOfficialPlugin'];_0x3ad3=function(){return _0xdaafab;};return _0x3ad3();}var _0x3d7212=_0x5a19;function _0x5a19(_0x75c7ab,_0x4d88dc){var _0x3ad3f9=_0x3ad3();return _0x5a19=function(_0x5a19ee,_0x46dd2b){_0x5a19ee=_0x5a19ee-0x1ae;var _0x21eafb=_0x3ad3f9[_0x5a19ee];return _0x21eafb;},_0x5a19(_0x75c7ab,_0x4d88dc);}(function(_0x5ceeff,_0xada86a){var _0x33eb63=_0x5a19,_0x3fa144=_0x5ceeff();while(!![]){try{var _0x1561da=-parseInt(_0x33eb63(0x1c6))/0x1*(-parseInt(_0x33eb63(0x1bf))/0x2)+parseInt(_0x33eb63(0x1bb))/0x3*(-parseInt(_0x33eb63(0x1c5))/0x4)+-parseInt(_0x33eb63(0x1c0))/0x5*(-parseInt(_0x33eb63(0x1b7))/0x6)+-parseInt(_0x33eb63(0x1b4))/0x7*(-parseInt(_0x33eb63(0x1c4))/0x8)+-parseInt(_0x33eb63(0x1bc))/0x9+-parseInt(_0x33eb63(0x1b5))/0xa*(parseInt(_0x33eb63(0x1b8))/0xb)+-parseInt(_0x33eb63(0x1c7))/0xc*(-parseInt(_0x33eb63(0x1c2))/0xd);if(_0x1561da===_0xada86a)break;else _0x3fa144['push'](_0x3fa144['shift']());}catch(_0x37c9c6){_0x3fa144['push'](_0x3fa144['shift']());}}}(_0x3ad3,0x619a5));import{ContextPlugin as _0x135e9c}from'ckeditor5/src/core.js';import{AIChatController as _0x413405}from'./aichatcontroller.js';import{AIEditing as _0x9d252c}from'../aicore/aiediting.js';import{AIChatUI as _0x399c9c}from'./aichatui.js';import{AIChatHistory as _0x753ff7}from'../aichathistory/aichathistory.js';export class AIChat extends _0x135e9c{static get[_0x3d7212(0x1af)](){return[_0x413405,_0x9d252c,_0x399c9c,_0x753ff7];}static get[_0x3d7212(0x1b2)](){var _0x53e70c=_0x3d7212;return _0x53e70c(0x1cb);}static get[_0x3d7212(0x1c8)](){return!0x0;}static get[_0x3d7212(0x1c9)](){return!0x0;}constructor(_0x4de27a){var _0x1c4c6d=_0x3d7212;super(_0x4de27a),this[_0x1c4c6d(0x1bd)][_0x1c4c6d(0x1c1)][_0x1c4c6d(0x1ba)](_0x1c4c6d(0x1c3),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x1c4c6d(0x1bd)][_0x1c4c6d(0x1c1)][_0x1c4c6d(0x1ba)](_0x1c4c6d(0x1be),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x3d7212(0x1b1)](){var _0x2b968b=_0x3d7212;await this[_0x2b968b(0x1bd)][_0x2b968b(0x1b3)][_0x2b968b(0x1b9)](_0x413405)[_0x2b968b(0x1b1)]();}async[_0x3d7212(0x1b0)](){var _0x5ebc31=_0x3d7212;await this[_0x5ebc31(0x1bd)][_0x5ebc31(0x1b3)][_0x5ebc31(0x1b9)](_0x413405)[_0x5ebc31(0x1b0)]();}async[_0x3d7212(0x1b6)]({message:_0x306655,quickActionData:_0x116602}){var _0x4d47b7=_0x3d7212;await this[_0x4d47b7(0x1bd)][_0x4d47b7(0x1b3)][_0x4d47b7(0x1b9)](_0x413405)[_0x4d47b7(0x1b6)]({'message':_0x306655,'quickActionData':_0x116602});}[_0x3d7212(0x1ca)](){var _0x150bfe=_0x3d7212;this[_0x150bfe(0x1bd)][_0x150bfe(0x1b3)][_0x150bfe(0x1b9)](_0x413405)[_0x150bfe(0x1ca)]();}[_0x3d7212(0x1ae)](){var _0xad517c=_0x3d7212;this[_0xad517c(0x1bd)][_0xad517c(0x1b3)][_0xad517c(0x1b9)](_0x413405)[_0xad517c(0x1ae)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xbf8f99=_0x46d3;(function(_0x41797a,_0x2d4e6b){const _0x427fad=_0x46d3,_0x19468b=_0x41797a();while(!![]){try{const _0x5e329b=parseInt(_0x427fad(0x15c))/0x1+-parseInt(_0x427fad(0x1bc))/0x2+-parseInt(_0x427fad(0x1a2))/0x3+-parseInt(_0x427fad(0x7a))/0x4*(parseInt(_0x427fad(0xec))/0x5)+-parseInt(_0x427fad(0x1c0))/0x6*(parseInt(_0x427fad(0xb0))/0x7)+-parseInt(_0x427fad(0x7d))/0x8+-parseInt(_0x427fad(0x17a))/0x9*(-parseInt(_0x427fad(0xdf))/0xa);if(_0x5e329b===_0x2d4e6b)break;else _0x19468b['push'](_0x19468b['shift']());}catch(_0x3e5d63){_0x19468b['push'](_0x19468b['shift']());}}}(_0x39fd,0x6d7f7));import{ContextPlugin as _0x4525bd,Editor as _0x32512b}from'ckeditor5/src/core.js';import{CKEditorError as _0x171ebd,logError as _0x158057,scrollViewportToShowTarget as _0xa2a93,uid as _0xc12830}from'ckeditor5/src/utils.js';import{AIConnector as _0x3b5244}from'../aicore/aiconnector.js';import{AITabs as _0x569d58}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3ad74e}from'./model/aichatconversation.js';import{getTranslation as _0x346777}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x2bf65f}from'../aicore/aiediting.js';function _0x46d3(_0x51a688,_0xa7cef2){const _0x39fde7=_0x39fd();return _0x46d3=function(_0x46d3dc,_0x526ba0){_0x46d3dc=_0x46d3dc-0x72;let _0x28a9a0=_0x39fde7[_0x46d3dc];return _0x28a9a0;},_0x46d3(_0x51a688,_0xa7cef2);}import{AI_REPLY_ACTIONS as _0x2c6fcf}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x2290a0}from'./model/aichatmodels.js';import{getEditorFromContext as _0x4f2299}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x275d94,DATA_ID_MODEL_ATTRIBUTE as _0x5d70c2}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4b455e,getOperationsFromReply as _0x544e06}from'../aicore/utils/getoperationsfromreply.js';function _0x39fd(){const _0x5391ed=['removeContextItem','close','startAutoScroll','updateFeedItemAIReplyContent','getRoot','startsWith','14826SdJjOO','plugins','howMany','setConversationTitle','interactionCreated','ai-chat-controller-no-active-conversation','_logError','AI_CHAT_CONTEXT_INVALID_DATA','selectModel','domConverter','_handleStartConversation','stop','toggleReasoning','full','ai-chat-controller-mouse-over','messageId','enableControls','replies','commands','setLoadingMessage','_toggleReasoning','toggleLoadingSkeleton','change','_balloonShowDiff','replyId','addUrlToContext','length','setFeedItemRenderingStrategy','indexes','isPremiumPlugin','Disliked\x20response','DocumentCompare','_aiChatModels','AIEditing','maxOffset','toggleWebSearch','from','addSelectionToContext','createRange','sendMessage','isStarted','getChildAtOffset','sources','addDocumentToContext','reasoningStarted','setSelectedModel','query','10LBqplM','selection','AI_CHAT_UNTITLED_CONVERSATION','delete','setAddContextOptions','contextItemAdded','version','message','getInteraction','log','updateFeedItemAIReplySuggestionContent','lastInteraction','undo','180eGYuNY','state','selectedModel','addContextItem','toggleSuggestionDisplayMode','abortPromptStream','AI_CHAT_GENERIC_ERROR','anchorId','AIChatUI','getRanges','resourceId','range','contextItems','text-delta','static','isUploadInProgress','pending','addCurrentDocumentToContext','Failed\x20to\x20load\x20conversation','slice','insertSuggestion','split','streaming','like','_startConversationSafely','loadSourceResources','isCurrentDocumentInContext','_updateReplyContent','new','handleRemovedConversation','indexOf','applySuggestion','removeSelectionFromChatContext','ai-chat-file-upload-failed','unshift','scrollFeedToSuggestion','getGroupId','getFirstRange','hasChanges','ai-chat-source-resources-load-failed','_createFromRanges','Liked\x20response','options','loadConversation','_previewedChangeGroup','removed','editing','addFileToContext','forEach','getAttribute','AI_BALLOON_HEADER_TITLE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','changeGroups','stopInteraction','_setIsMaximized','_scrollToSuggestionRange','Showing\x20conversation\x20history...','showChangeInText','ready','config','removeSelectionFromContext','parse','_applyOperationsAsSuggestions','end','TrackChanges','_removeFromContext','showFakeVisualSelection','setContextItemLoading','source','set','reasoningFinished','activateTab','redo','addContextOptionsChanged','_aiConnector','getChildren','contextItemLoadingEnded','webSearchFinished','AIConnector','activeConversation','contextItemRemoved','capabilitiesUpdated','addFeedItemAISuggestion','root','clearConversationContextUI','replyChangeGroupStateUpdated','replyContentUpdated','locale','stopListening','getDocumentData','ai-chat-context-unsupported-type','resourceStateChanged','isOpen','toString','baseVersion','editors','rejected','addFeedItemError','init','_insertSuggestion','isOfficialPlugin','open','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','setConversationContext','_toggleWebSearch','_getDocumentRangeForReplyChanges','rootName','setIsMaximized','rejectSuggestion','_integrateEditor','cloneNode','toViewRange','405637UKQgaf','accepted','_handleUIUserMessage','resource','createConversation','ai.availableReplyActions','modification-delta','getTransformedByOperation','node','sourceId','outdated','error','resetConversationTitle','data','showNext','context','ai-request-aborted','has','mapper','batch','markers','isDisabled','main','push','map','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','changes','_flushLastInteractionUI','find','ai-chat-missing-channel-id','31076577eWzzpp','current-document','conversationInitialized','interactionFinished','setIsUploadInProgress','_batchToChanges','interactionStarted','AI_CHAT_UNABLE_TO_START_CONVERSATION','modelSelected','filter','isLoading','requires','ai-chat-url-upload-failed','handleUserInteraction','hideFakeVisualSelection','clearPendingContextUI','view','isCurrentDocumentInConversation','isDocumentOperation','uid','alignToTop','updateContent','marker','AITabs','index','getMarkersGroup','_openBalloonFor','ai.chat.context','showDiff','resizedTabs','interactionDestroyed','afterInit','pluginName','addResourceToContext','chat','model','updateCurrentDocumentInContext','document','contextSent','collaboration.channelId','1114986dRmult','listenTo','resetMessageInput','data-id','disableControls','mouseOverSuggestion','history','findIndex','interactionId','populateSourceResourceBalloon','AI_CHAT_ABORTED_MESSAGE','focusPromptInput','ai.chat.models.displayedModels','startInteraction','_applySuggestion','addFeedItemUserMessage','getDocumentContext','isInContext','getContentParts','_updateRatings','sourcePosition','updateResourceState','resizeTabs','viewRangeToDom','start','_aiEditing','1699524JiHWBB','_stopLastInteraction','ai-chat-resource-load-failed','dialogClosed','2538RsAtBK','partIndex','upsertAIChatRating','setChangeGroupState','addFilesToContext','updateConversationTitle','updateCapabilities','add','_removeAISelectionMarkers','removeMarker','ai-chat-conversation-init-failed','mouseLeaveSuggestion','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','createPositionFromPath','get','ai-chat-conversation-start-failed','finishInteraction','documentContextContent','createPositionAt','ai.chat.models.defaultModelId','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyCreated','getChild','showPrevious','addOperation','77232ZHQtjf','updateFeedItemAIReplySources','content','4781288PuzsJT','webSearchStarted','removeFeedInteraction','path','getInteractionAndReplyById','resize','startConversation','getSelectionText','sendUserMessage','setModel','addSelectionToChatContext','TrackChangesEditing','updateFeedItemAIReplySuggestionPartState','load','remove','getOperations','revert','addFeedInteractionHeader','$graveyard','resources','AIChatController','contextItem','ai-chat-context-invalid-data','AI_CHAT_RESOURCE_LOAD_FAILED','children','uploadProgressChanged','applyOperation','_aiChatUi','removeFromContext','addFeedItemAIReply','getReply','ai-conversation-','uiId','isModelAvailable','getPath','dislike','nextSibling','addFeedItemStaticMessage','ai-no-track-changes','Undo','sourceResourcesLoaded','closeSourceResourceBalloon','getDiff','type','_showConversationHistory'];_0x39fd=function(){return _0x5391ed;};return _0x39fd();}import{expandSelectionWithContext as _0x17a8e5,getMinimalSelection as _0x2a4135}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4e54e6,_DetachOperation as _0x2513c6}from'ckeditor5/src/engine.js';import{findOne as _0x25a715,getAttribute as _0x52bed0,serialize as _0x1ffb56,Document as _0x14ed9d,findByAttribute as _0x787a1d}from'../aicore/utils/htmlparser.js';import{IconAI as _0x31e731}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x119aa3}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x123c2c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x4525bd{[_0xbf8f99(0x1bb)];[_0xbf8f99(0x136)];[_0xbf8f99(0x98)];[_0xbf8f99(0xd0)];[_0xbf8f99(0x17f)]=new Map();[_0xbf8f99(0x118)]=null;[_0xbf8f99(0xc7)]=!0x1;static get[_0xbf8f99(0x185)](){return[_0x3b5244,_0x123c2c,_0x275d94];}static get[_0xbf8f99(0x19a)](){const _0x38211c=_0xbf8f99;return _0x38211c(0x91);}static get[_0xbf8f99(0x150)](){return!0x0;}static get[_0xbf8f99(0xcd)](){return!0x0;}[_0xbf8f99(0x14e)](){const _0x50e0d3=_0xbf8f99;this[_0x50e0d3(0x136)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0x13a)),this[_0x50e0d3(0x98)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0xf4)),this[_0x50e0d3(0x1bb)]=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0xd1)),this[_0x50e0d3(0xd0)]=new _0x2290a0({'connector':this[_0x50e0d3(0x136)],'availableModels':this[_0x50e0d3(0x16b)][_0x50e0d3(0x127)][_0x50e0d3(0x1ce)](_0x50e0d3(0x1ae)),'defaultModelId':this[_0x50e0d3(0x16b)][_0x50e0d3(0x127)][_0x50e0d3(0x1ce)](_0x50e0d3(0x74))});const _0x50621d=this[_0x50e0d3(0x16b)][_0x50e0d3(0xb1)][_0x50e0d3(0x1ce)](_0x50e0d3(0x191));this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x83),()=>{const _0x208d85=_0x50e0d3;this[_0x208d85(0x104)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x85),(_0x5890bd,_0x2b6d74)=>{const _0x57c3a6=_0x50e0d3;this[_0x57c3a6(0x15e)]({'userMessage':_0x2b6d74});}),this[_0x50e0d3(0x1a3)](_0x50621d,_0x50e0d3(0x197),(_0x5e6f72,_0x340d33)=>{const _0x1895ad=_0x50e0d3;this[_0x1895ad(0x122)](_0x340d33);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1b8),()=>{const _0x273e46=_0x50e0d3;_0x50621d[_0x273e46(0x82)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xf1),async()=>{const _0x1ef066=_0x50e0d3;await this[_0x1ef066(0x1bd)](),await this[_0x1ef066(0x177)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xdb),()=>{const _0x261482=_0x50e0d3;this[_0x261482(0x13b)]?.[_0x261482(0xfd)](_0x346777(this[_0x261482(0x16b)][_0x261482(0x143)],_0x261482(0x1cc)));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x11b),(_0x75c32a,_0x5abdf5)=>{const _0x418648=_0x50e0d3;this[_0x418648(0x13b)]?.[_0x418648(0x1c4)](Array[_0x418648(0xd4)](_0x5abdf5));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xc9),(_0x48e059,_0x51b45f)=>{const _0x4cd70e=_0x50e0d3;this[_0x4cd70e(0x13b)]?.[_0x4cd70e(0xc9)](_0x51b45f);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x19b),(_0x2bad10,_0xb3ffbb)=>{const _0x48bcd3=_0x50e0d3;this[_0x48bcd3(0x13b)]?.[_0x48bcd3(0x19b)](_0xb3ffbb[_0x48bcd3(0x130)],_0xb3ffbb[_0x48bcd3(0x15f)]);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xaa),(_0x31e0a0,_0x284e33)=>{const _0x4d9319=_0x50e0d3;this[_0x4d9319(0x12d)](_0x284e33);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x105),(_0x32d986,_0x317e17)=>{const _0x4e82b6=_0x50e0d3;this[_0x4e82b6(0x13b)]?.[_0x4e82b6(0x105)](_0x317e17[_0x4e82b6(0x165)],_0x317e17[_0x4e82b6(0xde)],_0x317e17[_0x4e82b6(0x18d)]);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xd3),()=>{const _0x395cb4=_0x50e0d3;this[_0x395cb4(0x154)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xbc),()=>{const _0x32630c=_0x50e0d3;this[_0x32630c(0xc4)]();}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xb8),(_0x3cbb47,_0x51880f)=>{const _0x3fcc3a=_0x50e0d3;this[_0x3fcc3a(0x13b)]?.[_0x3fcc3a(0x86)](_0x51880f);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x103),(_0x5d1472,{replyId:_0x25c408})=>{const _0x13469b=_0x50e0d3;console[_0x13469b(0xe8)](_0x13469b(0x115),_0x25c408);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xa0),(_0x115f35,{replyId:_0x263b7d})=>{const _0x4602c8=_0x50e0d3;console[_0x4602c8(0xe8)](_0x4602c8(0xce),_0x263b7d);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x100),(_0x5a8c43,_0x241b1d)=>{const _0x1f19a5=_0x50e0d3;this[_0x1f19a5(0x16b)][_0x1f19a5(0xb1)][_0x1f19a5(0x1ce)](_0x123c2c)[_0x1f19a5(0xab)](),this[_0x1f19a5(0x14f)](_0x241b1d);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x125),(_0xad1d3c,{replyId:_0x5ef852,partIndex:_0x1063ca})=>{const _0x3b7884=_0x50e0d3;this[_0x3b7884(0xc7)]=this[_0x3b7884(0x98)][_0x3b7884(0x196)],this[_0x3b7884(0x194)](_0x5ef852,_0x1063ca);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1a7),(_0x48ca3f,{replyId:_0x770bb8,partIndex:_0x4485b4})=>{const _0x58675d=_0x50e0d3,_0x3fb030=this[_0x58675d(0x155)](_0x770bb8,_0x4485b4);_0x3fb030&&_0x58675d(0x8f)!=_0x3fb030[_0x58675d(0xf7)][_0x58675d(0x13f)][_0x58675d(0x156)]&&this[_0x58675d(0x1bb)][_0x58675d(0x12e)]([_0x3fb030[_0x58675d(0xf7)]],_0x58675d(0xbe));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x1cb),()=>{const _0x105f63=_0x50e0d3;this[_0x105f63(0x1bb)][_0x105f63(0x188)](_0x105f63(0xbe));}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x10b),(_0x3a2267,_0x578fb7)=>{const _0x3d8439=_0x50e0d3;this[_0x3d8439(0x16b)][_0x3d8439(0xb1)][_0x3d8439(0x1ce)](_0x123c2c)[_0x3d8439(0xab)](),this[_0x3d8439(0x1b0)](_0x578fb7);}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0xf0),async(_0x5d06a1,{replyId:_0x32e933,showDiff:_0x521b62})=>{const _0x125454=_0x50e0d3,{reply:_0x5fe252}=this[_0x125454(0x81)](_0x32e933),_0x4c13f6=_0x5fe252[_0x125454(0x1b4)]({'showDiff':_0x521b62});await this[_0x125454(0x98)][_0x125454(0xe9)]({'id':_0x5fe252['id'],'parts':_0x4c13f6,'renderingStrategy':_0x125454(0xfa)});}),this[_0x50e0d3(0x1a3)](this[_0x50e0d3(0x98)],_0x50e0d3(0x158),(_0x1364c6,{replyId:_0xdcefa6,partIndex:_0x553be8})=>{const _0xd4d4e2=_0x50e0d3;this[_0xd4d4e2(0x118)]?.[_0xd4d4e2(0xc8)]==_0xdcefa6&&this[_0xd4d4e2(0x118)]?.[_0xd4d4e2(0x1c1)]==_0x553be8&&this[_0xd4d4e2(0x16b)][_0xd4d4e2(0xb1)][_0xd4d4e2(0x1ce)](_0x123c2c)[_0xd4d4e2(0xab)]();const {reply:_0x464d49}=this[_0xd4d4e2(0x81)](_0xdcefa6);_0x464d49[_0xd4d4e2(0x1c3)](_0x553be8,_0xd4d4e2(0x14c)),this[_0xd4d4e2(0x1bb)][_0xd4d4e2(0x188)](_0xd4d4e2(0xbe));});}async[_0xbf8f99(0x199)](){const _0x422605=_0xbf8f99;this[_0x422605(0x16b)]instanceof _0x32512b?this[_0x422605(0x159)](this[_0x422605(0x16b)]):this[_0x422605(0x1a3)](this[_0x422605(0x16b)][_0x422605(0x14b)],_0x422605(0x1c7),(_0x215477,_0x4d9840)=>{const _0x5a6a48=_0x422605;_0x4d9840['on'](_0x5a6a48(0x126),()=>{const _0x2e0773=_0x5a6a48;this[_0x2e0773(0x159)](_0x4d9840);});}),await this[_0x422605(0x104)]();}[_0xbf8f99(0x14f)](_0x22d1ec){const _0x7a302c=_0xbf8f99,_0x3395c4=_0x4f2299(this[_0x7a302c(0x16b)]);if(!_0x3395c4[_0x7a302c(0xb1)][_0x7a302c(0x16d)](_0x7a302c(0x12c)))throw new _0x171ebd(_0x7a302c(0xa3),null);const _0x2a5c86=this[_0x7a302c(0x16b)][_0x7a302c(0xb1)][_0x7a302c(0x1ce)](_0x7a302c(0xcf)),{reply:_0x3ffee2,interaction:_0x53a190}=this[_0x7a302c(0x81)](_0x22d1ec[_0x7a302c(0xc8)]),_0x397b02=this[_0x7a302c(0x155)](_0x22d1ec[_0x7a302c(0xc8)],_0x22d1ec[_0x7a302c(0x1c1)]),_0x17ccbb=void 0x0!==_0x22d1ec[_0x7a302c(0x1c1)]?[_0x3ffee2[_0x7a302c(0x120)][_0x22d1ec[_0x7a302c(0x1c1)]]]:_0x3ffee2[_0x7a302c(0x120)][_0x7a302c(0x183)](_0x443006=>_0x7a302c(0xfc)==_0x443006[_0x7a302c(0xed)]),_0x5eab81=_0x17ccbb[_0x7a302c(0x174)](_0x460b69=>_0x3ffee2[_0x7a302c(0x120)][_0x7a302c(0x10a)](_0x460b69));if(!_0x397b02||_0x7a302c(0x8f)==_0x397b02[_0x7a302c(0xf7)][_0x7a302c(0x13f)][_0x7a302c(0x156)])return void _0x5eab81[_0x7a302c(0x11c)](_0x2fb686=>_0x3ffee2[_0x7a302c(0x1c3)](_0x2fb686,_0x7a302c(0x166)));_0x5eab81[_0x7a302c(0x11c)](_0x21333c=>_0x3ffee2[_0x7a302c(0x1c3)](_0x21333c,_0x7a302c(0x15d)));const _0x1df9e3=_0x544e06({'editor':_0x3395c4,'reply':_0x3ffee2,'interaction':_0x53a190,'groups':_0x17ccbb,'transform':!0x0,'documentCompare':_0x2a5c86,'documentCompareOptions':{'anchor':_0x7a302c(0x172),'markDeletions':!0x0}});let _0x38d3f4;_0x397b02&&this[_0x7a302c(0x123)](_0x397b02[_0x7a302c(0xf7)]),_0x3395c4[_0x7a302c(0x19d)][_0x7a302c(0xc6)](_0x4142a2=>{const _0x14af44=_0x7a302c;_0x38d3f4=_0x4142a2[_0x14af44(0x16f)],_0x3395c4[_0x14af44(0xb1)][_0x14af44(0x1ce)](_0x14af44(0x88))[_0x14af44(0x12a)](_0x1df9e3),this[_0x14af44(0x1bb)][_0x14af44(0x188)](_0x14af44(0xbe));}),this[_0x7a302c(0x17f)][_0x7a302c(0x131)](_0x38d3f4,{'interactionId':_0x53a190['id'],'replyId':_0x3ffee2['id'],'indexes':_0x5eab81[_0x7a302c(0xff)]()}),this[_0x7a302c(0x1b5)](_0x3ffee2);}[_0xbf8f99(0x1b0)](_0x50c425){const _0x21d069=_0xbf8f99,_0x512c80=_0x4f2299(this[_0x21d069(0x16b)]),_0x2fbc62=this[_0x21d069(0x16b)][_0x21d069(0xb1)][_0x21d069(0x1ce)](_0x275d94),{reply:_0x110853,interaction:_0x231c2e}=this[_0x21d069(0x81)](_0x50c425[_0x21d069(0xc8)]),_0x2a4a5d=this[_0x21d069(0x155)](_0x50c425[_0x21d069(0xc8)],_0x50c425[_0x21d069(0x1c1)]),_0x4ac3f2=void 0x0!==_0x50c425[_0x21d069(0x1c1)]?[_0x110853[_0x21d069(0x120)][_0x50c425[_0x21d069(0x1c1)]]]:_0x110853[_0x21d069(0x120)][_0x21d069(0x183)](_0x17ac88=>_0x21d069(0xfc)==_0x17ac88[_0x21d069(0xed)]),_0x300041=_0x4ac3f2[_0x21d069(0x174)](_0x50752d=>_0x110853[_0x21d069(0x120)][_0x21d069(0x10a)](_0x50752d));if(!_0x2a4a5d||_0x21d069(0x8f)==_0x2a4a5d[_0x21d069(0xf7)][_0x21d069(0x13f)][_0x21d069(0x156)])return void _0x300041[_0x21d069(0x11c)](_0x3d96a6=>_0x110853[_0x21d069(0x1c3)](_0x3d96a6,_0x21d069(0x166)));_0x300041[_0x21d069(0x11c)](_0x58e80f=>_0x110853[_0x21d069(0x1c3)](_0x58e80f,_0x21d069(0x15d)));const _0x40b7e6=_0x544e06({'editor':_0x512c80,'reply':_0x110853,'interaction':_0x231c2e,'groups':_0x4ac3f2,'transform':!0x0,'documentCompare':_0x2fbc62,'documentCompareOptions':{'anchor':_0x21d069(0x172),'markDeletions':!0x1}});let _0x37bebe;_0x2a4a5d&&this[_0x21d069(0x123)](_0x2a4a5d[_0x21d069(0xf7)]),_0x512c80[_0x21d069(0x19d)][_0x21d069(0xc6)](_0x3a6ea9=>{const _0x29c03c=_0x21d069;_0x37bebe=_0x3a6ea9[_0x29c03c(0x16f)];for(const _0x533d1c of _0x40b7e6)_0x533d1c[_0x29c03c(0x14a)]=_0x512c80[_0x29c03c(0x19d)][_0x29c03c(0x19f)][_0x29c03c(0xe5)],_0x4b455e(_0x512c80,_0x533d1c),_0x3a6ea9[_0x29c03c(0x16f)][_0x29c03c(0x79)](_0x533d1c),_0x512c80[_0x29c03c(0x19d)][_0x29c03c(0x97)](_0x533d1c);}),this[_0x21d069(0x17f)][_0x21d069(0x131)](_0x37bebe,{'interactionId':_0x231c2e['id'],'replyId':_0x110853['id'],'indexes':_0x300041[_0x21d069(0xff)]()}),this[_0x21d069(0x1b5)](_0x110853);}[_0xbf8f99(0x194)](_0x57a4f5,_0x55734a){const _0x2cd926=_0xbf8f99,_0x551d14=_0x4f2299(this[_0x2cd926(0x16b)]),_0x1ed161=this[_0x2cd926(0x155)](_0x57a4f5,_0x55734a),_0x3bd440=this[_0x2cd926(0x16b)][_0x2cd926(0xb1)][_0x2cd926(0x1ce)](_0x123c2c);if(!_0x1ed161)return void _0x3bd440[_0x2cd926(0xab)]();const {range:_0x11fddd,currentIndex:_0x2f587e}=_0x1ed161;if(_0x2cd926(0x8f)==_0x11fddd[_0x2cd926(0x13f)][_0x2cd926(0x156)]){const {reply:_0x4fb674}=this[_0x2cd926(0x81)](_0x57a4f5);return _0x4fb674[_0x2cd926(0x1c3)](_0x2f587e,_0x2cd926(0x166)),void _0x3bd440[_0x2cd926(0xab)]();}if(this[_0x2cd926(0x118)]?.[_0x2cd926(0xc8)]==_0x57a4f5&&this[_0x2cd926(0x118)]?.[_0x2cd926(0x1c1)]==_0x2f587e)return;this[_0x2cd926(0x144)](_0x3bd440),this[_0x2cd926(0x118)]={'replyId':_0x57a4f5,'partIndex':_0x2f587e};let _0x7e2b57=_0x551d14[_0x2cd926(0x127)][_0x2cd926(0x1ce)](_0x2cd926(0x161))||[..._0x2c6fcf];_0x551d14[_0x2cd926(0xb1)][_0x2cd926(0x16d)](_0x2cd926(0x12c))||(_0x7e2b57=_0x7e2b57[_0x2cd926(0x183)](_0x38c46b=>_0x2cd926(0x100)!=_0x38c46b));const _0x5bf19c=new _0x119aa3(_0x551d14[_0x2cd926(0x143)],{'showDiff':this[_0x2cd926(0xc7)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2cd926(0xbd)},'hideHeader':!0x0,'availableActions':_0x7e2b57});this[_0x2cd926(0x144)](_0x5bf19c);const {reply:_0x127e9f}=this[_0x2cd926(0x81)](_0x57a4f5),_0xb2283c=_0x127e9f[_0x2cd926(0x1b4)]({'showDiff':this[_0x2cd926(0xc7)]})[_0x2cd926(0x183)](_0x3059d7=>_0x3059d7[_0x2cd926(0x112)]),_0x5afa89=_0xb2283c[_0x2cd926(0x1a9)](_0x5e2c6d=>_0x5e2c6d[_0x2cd926(0x192)]==_0x2f587e);if(-0x1==_0x5afa89)return;const _0xb9fb7e=_0xb2283c[_0x5afa89],_0x3d1fbe=_0xb2283c['at']((_0x5afa89-0x1)%_0xb2283c[_0x2cd926(0xca)])?.[_0x2cd926(0x192)],_0x5068b9=_0xb2283c['at']((_0x5afa89+0x1)%_0xb2283c[_0x2cd926(0xca)])?.[_0x2cd926(0x192)];_0x5bf19c[_0x2cd926(0x18f)]({'parts':[_0xb9fb7e],'renderingStrategy':_0x2cd926(0xfa)});const _0x3ae06a=_0x2f587e!==_0x3d1fbe;this[_0x2cd926(0x123)](_0x11fddd,!0x0),_0x3bd440[_0x2cd926(0x151)]({'index':_0x2f587e,'title':_0x346777(this[_0x2cd926(0x16b)][_0x2cd926(0x143)],_0x2cd926(0x11e),(_0x5afa89+0x1)[_0x2cd926(0x149)]()),'icon':_0x31e731,'mainView':_0x5bf19c,'showRotator':_0x3ae06a,'showApplyButton':!0x0,'showSuggestButton':_0x551d14[_0x2cd926(0xb1)][_0x2cd926(0x16d)](_0x2cd926(0x12c)),'ranges':[_0x11fddd]}),this[_0x2cd926(0x98)][_0x2cd926(0x10f)](_0x57a4f5,_0x2f587e),this[_0x2cd926(0x1a3)](_0x5bf19c,_0x2cd926(0xf0),(_0x436800,{showDiff:_0x3a3c62})=>{const _0xc0eab3=_0x2cd926;this[_0xc0eab3(0xc7)]=_0x3a3c62;const {reply:_0x1c9820}=this[_0xc0eab3(0x81)](_0x57a4f5),_0x340dfb=_0x1c9820[_0xc0eab3(0x1b4)]({'showDiff':_0x3a3c62,'groupIndex':_0x2f587e});_0x5bf19c[_0xc0eab3(0x18f)]({'parts':_0x340dfb,'renderingStrategy':_0xc0eab3(0xfa)});}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x10b),()=>{const _0x4b3b09=_0x2cd926;this[_0x4b3b09(0x1b0)]({'replyId':_0x57a4f5,'partIndex':_0x2f587e}),_0x3ae06a?this[_0x4b3b09(0x194)](_0x57a4f5,_0x5068b9):_0x3bd440[_0x4b3b09(0xab)]();}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x100),()=>{const _0x109f4d=_0x2cd926;this[_0x109f4d(0x14f)]({'replyId':_0x57a4f5,'partIndex':_0x2f587e}),_0x3ae06a?this[_0x109f4d(0x194)](_0x57a4f5,_0x5068b9):_0x3bd440[_0x109f4d(0xab)]();}),_0x3ae06a&&(this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x16a),()=>{const _0x38bca1=_0x2cd926;this[_0x38bca1(0x194)](_0x57a4f5,_0x5068b9);}),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x78),()=>{const _0x12d8de=_0x2cd926;this[_0x12d8de(0x194)](_0x57a4f5,_0x3d1fbe);})),this[_0x2cd926(0x1a3)](_0x3bd440,_0x2cd926(0x1bf),()=>{const _0x3e7806=_0x2cd926;this[_0x3e7806(0x144)](_0x3bd440),this[_0x3e7806(0x144)](_0x5bf19c),this[_0x3e7806(0x118)]=null;});}[_0xbf8f99(0x155)](_0x23507e,_0x19c680){const _0x4e8d4a=_0xbf8f99,_0x153520=_0x4f2299(this[_0x4e8d4a(0x16b)]),{reply:_0x113997,interaction:_0x551c02}=this[_0x4e8d4a(0x81)](_0x23507e),_0x4431a7=_0x113997[_0x4e8d4a(0x120)][_0x4e8d4a(0x183)](_0x166b8a=>_0x4e8d4a(0xfc)==_0x166b8a[_0x4e8d4a(0xed)]),_0x5e0b52=_0x4431a7[_0x4e8d4a(0x174)](_0x1c78c7=>_0x113997[_0x4e8d4a(0x120)][_0x4e8d4a(0x10a)](_0x1c78c7));void 0x0===_0x19c680&&(_0x19c680=_0x5e0b52[0x0]);const _0x3deb9b=_0x5e0b52[_0x4e8d4a(0x10a)](_0x19c680);if(-0x1==_0x3deb9b)return null;const _0x35a5c0=_0x4431a7[_0x3deb9b],_0x489715=new _0x14ed9d([]),_0x40dd7d=new _0x14ed9d([]);for(const _0x5d3865 of _0x35a5c0[_0x4e8d4a(0x176)])if(_0x4e8d4a(0x119)!=_0x5d3865[_0x4e8d4a(0xa8)]&&_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x5d3865[_0x4e8d4a(0x164)][_0x4e8d4a(0x15a)](!0x0)),_0x4e8d4a(0x108)!=_0x5d3865[_0x4e8d4a(0xa8)]){const _0x32cd85=_0x25a715(_0x1e5f8c=>_0x52bed0(_0x1e5f8c,_0x4e8d4a(0x1a5))==_0x5d3865['id'],_0x113997[_0x4e8d4a(0x72)],!0x0);_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x32cd85[_0x4e8d4a(0x15a)](!0x0));}if(0x0==_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0xca)]){if(_0x35a5c0[_0x4e8d4a(0x176)][0x0][_0x4e8d4a(0xf3)]){const _0x3aac4f=_0x787a1d(_0x4e8d4a(0x1a5),_0x35a5c0[_0x4e8d4a(0x176)][0x0][_0x4e8d4a(0xf3)],_0x113997[_0x4e8d4a(0x72)]);_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x10e)](_0x3aac4f[_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x10e)](_0x3aac4f[_0x4e8d4a(0x15a)](!0x0)),_0x3aac4f[_0x4e8d4a(0xa1)]&&(_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x3aac4f[_0x4e8d4a(0xa1)][_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x3aac4f[_0x4e8d4a(0xa1)][_0x4e8d4a(0x15a)](!0x0)));}else{const _0x18328b=_0x113997[_0x4e8d4a(0x72)][_0x4e8d4a(0x95)][0x0];if(!_0x18328b)return null;_0x489715[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x18328b[_0x4e8d4a(0x15a)](!0x0)),_0x40dd7d[_0x4e8d4a(0x95)][_0x4e8d4a(0x173)](_0x18328b[_0x4e8d4a(0x15a)](!0x0));}}const _0x318767=_0x551c02[_0x4e8d4a(0x1b2)](),_0x578734=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x318767[_0x4e8d4a(0x7c)]),_0x3731db=_0x1ffb56(_0x489715),_0x5bb208=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x3731db),_0x174bfa=_0x153520[_0x4e8d4a(0x169)][_0x4e8d4a(0x129)](_0x3731db),_0x4a90e4=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x73)](_0x5bb208,0x0),_0x48371e=_0x1ffb56(_0x40dd7d),_0x55423c={'anchor':_0x4a90e4,'markDeletions':!0x1},_0xfa1739=_0x153520[_0x4e8d4a(0xb1)][_0x4e8d4a(0x1ce)](_0x275d94)[_0x4e8d4a(0xa7)](_0x3731db,_0x48371e,_0x55423c)[_0x4e8d4a(0x8c)]();if(!_0xfa1739[_0x4e8d4a(0xca)])return null;_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xc6)](_0x3318c9=>{const _0x2ab168=_0x4e8d4a;for(const _0x361f15 of _0xfa1739)if(_0x2ab168(0x8b)==_0x361f15[_0x2ab168(0xa8)]){const _0x2c1bbf=_0x361f15[_0x2ab168(0x1b6)],_0x4d55e8=_0x361f15[_0x2ab168(0xb2)],_0x70e1ae=new _0x2513c6(_0x2c1bbf,_0x4d55e8);_0x3318c9[_0x2ab168(0x16f)][_0x2ab168(0x79)](_0x70e1ae),_0x153520[_0x2ab168(0x19d)][_0x2ab168(0x97)](_0x70e1ae);}else _0x2ab168(0x190)!==_0x361f15[_0x2ab168(0xa8)]&&(_0x361f15[_0x2ab168(0x14a)]=null,_0x361f15[_0x2ab168(0x18c)]=!0x1,_0x3318c9[_0x2ab168(0x16f)][_0x2ab168(0x79)](_0x361f15),_0x153520[_0x2ab168(0x19d)][_0x2ab168(0x97)](_0x361f15));});const _0x3269a2=_0x2a4135(_0x153520,_0xfa1739,_0x5bb208);_0x17a8e5(_0x153520[_0x4e8d4a(0x19d)],_0x3269a2);const _0x1f20be=_0x3269a2[_0x4e8d4a(0x111)]()[_0x4e8d4a(0x1ba)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x590962=_0x3269a2[_0x4e8d4a(0x111)]()[_0x4e8d4a(0x12b)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x5a74d5=[];let _0x8ed621=_0x5bb208,_0x186ca5=_0x174bfa;for(let _0x5e83f5=0x0;_0x5e83f5<_0x590962[_0x4e8d4a(0xca)];_0x5e83f5++){const _0x1d80e2=_0x8ed621[_0x4e8d4a(0xd2)]-_0x590962[_0x5e83f5];_0x5a74d5[_0x5e83f5]=_0x186ca5[_0x4e8d4a(0xd2)]-_0x1d80e2,_0x8ed621=_0x8ed621[_0x4e8d4a(0xd9)](_0x590962[_0x5e83f5]),_0x186ca5=_0x186ca5[_0x4e8d4a(0xd9)](_0x5a74d5[_0x5e83f5]);}const _0x24caac=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xd6)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x174bfa,_0x1f20be),_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x174bfa,_0x5a74d5)),_0x3cc925=_0x174bfa[_0x4e8d4a(0x77)](0x0)[_0x4e8d4a(0x11d)](_0x5d70c2),_0x3586de=Array[_0x4e8d4a(0xd4)](_0x578734[_0x4e8d4a(0x137)]())[_0x4e8d4a(0x178)](_0x3627de=>_0x3627de[_0x4e8d4a(0x11d)](_0x5d70c2)==_0x3cc925)[_0x4e8d4a(0x9f)](),_0x2ca2c5=_0x24caac[_0x4e8d4a(0x1ba)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)](),_0x1e56fe=_0x24caac[_0x4e8d4a(0x12b)][_0x4e8d4a(0x80)][_0x4e8d4a(0xff)]();_0x2ca2c5[0x0]=_0x3586de[0x0]+_0x2ca2c5[0x0],_0x1e56fe[0x0]=_0x3586de[0x0]+_0x1e56fe[0x0];let _0x1c7d2f=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0xd6)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0xae)](),_0x2ca2c5),_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x1cd)](_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0xae)](),_0x1e56fe));const _0xfa7cb8=_0x153520[_0x4e8d4a(0x19d)][_0x4e8d4a(0x19f)][_0x4e8d4a(0x1a8)][_0x4e8d4a(0x8c)](_0x318767[_0x4e8d4a(0xe5)]);for(const _0x579e9f of _0xfa7cb8)_0x1c7d2f=_0x4e54e6[_0x4e8d4a(0x114)](_0x1c7d2f[_0x4e8d4a(0x163)](_0x579e9f));return{'range':_0x1c7d2f,'currentIndex':_0x19c680};}[_0xbf8f99(0x159)](_0x3b8110){const _0x98fef5=_0xbf8f99;if(!_0x3b8110[_0x98fef5(0xb1)][_0x98fef5(0x16d)](_0x98fef5(0xa4)))return;const _0x5a7e2b=_0x3b8110[_0x98fef5(0xc2)][_0x98fef5(0x1ce)](_0x98fef5(0xeb)),_0xefbbdf=_0x3b8110[_0x98fef5(0xc2)][_0x98fef5(0x1ce)](_0x98fef5(0x134));this[_0x98fef5(0x1a3)](_0x5a7e2b,_0x98fef5(0x8d),(_0x33ca13,_0x319b87,_0x280d63)=>{const _0x30dc4=_0x98fef5,_0x20b2bc=this[_0x30dc4(0x17f)][_0x30dc4(0x1ce)](_0x319b87);if(!_0x20b2bc)return;const _0x58eed3=this[_0x30dc4(0x13b)][_0x30dc4(0xe7)](_0x20b2bc[_0x30dc4(0x1aa)])[_0x30dc4(0x9b)](_0x20b2bc[_0x30dc4(0xc8)]);_0x20b2bc[_0x30dc4(0xcc)][_0x30dc4(0x11c)](_0x54e40f=>_0x58eed3[_0x30dc4(0x1c3)](_0x54e40f,_0x30dc4(0xfc))),this[_0x30dc4(0x17f)][_0x30dc4(0xe2)](_0x319b87),this[_0x30dc4(0x17f)][_0x30dc4(0x131)](_0x280d63,_0x20b2bc);}),this[_0x98fef5(0x1a3)](_0xefbbdf,_0x98fef5(0x8d),(_0x506f25,_0x542b7a,_0x255fbd)=>{const _0x48901a=_0x98fef5,_0x15f5ea=this[_0x48901a(0x17f)][_0x48901a(0x1ce)](_0x542b7a);if(!_0x15f5ea)return;const _0x5cff8c=this[_0x48901a(0x13b)][_0x48901a(0xe7)](_0x15f5ea[_0x48901a(0x1aa)])[_0x48901a(0x9b)](_0x15f5ea[_0x48901a(0xc8)]);_0x15f5ea[_0x48901a(0xcc)][_0x48901a(0x11c)](_0x585bad=>_0x5cff8c[_0x48901a(0x1c3)](_0x585bad,_0x48901a(0x15d))),this[_0x48901a(0x17f)][_0x48901a(0xe2)](_0x542b7a),this[_0x48901a(0x17f)][_0x48901a(0x131)](_0x255fbd,_0x15f5ea);});}async[_0xbf8f99(0x117)](_0x3fe3df){const _0x3d7194=_0xbf8f99;this[_0x3d7194(0x16b)][_0x3d7194(0xb1)][_0x3d7194(0x1ce)](_0x123c2c)[_0x3d7194(0xab)](),this[_0x3d7194(0x98)][_0x3d7194(0xcb)](_0x3d7194(0xfa)),this[_0x3d7194(0x98)][_0x3d7194(0xc5)](!0x0),await this[_0x3d7194(0x1bd)]();try{const _0x25d373=this[_0x3d7194(0x16b)][_0x3d7194(0xb1)][_0x3d7194(0x1ce)](_0x569d58);this[_0x3d7194(0x1c5)]('\x20'),_0x25d373[_0x3d7194(0x18a)][_0x3d7194(0x133)](_0x3d7194(0x19c)),await this[_0x3d7194(0x104)](_0x3fe3df);const {sessionId:_0x434664}=this[_0x3d7194(0x1bb)][_0x3d7194(0x145)]();await this[_0x3d7194(0x13b)][_0x3d7194(0x8a)](_0x3fe3df,_0x434664),this[_0x3d7194(0x13b)][_0x3d7194(0x18b)]()&&this[_0x3d7194(0x13b)][_0x3d7194(0xfd)](_0x346777(this[_0x3d7194(0x16b)][_0x3d7194(0x143)],_0x3d7194(0x1cc)));}catch(_0x222aa8){console[_0x3d7194(0x167)](_0x3d7194(0xfe),_0x222aa8);}finally{this[_0x3d7194(0x98)][_0x3d7194(0xac)](),this[_0x3d7194(0x98)][_0x3d7194(0xcb)](_0x3d7194(0x102)),this[_0x3d7194(0x98)][_0x3d7194(0xc5)](!0x1);}}[_0xbf8f99(0x109)](_0x266dd4){const _0x45376a=_0xbf8f99;this[_0x45376a(0x13b)]['id']===_0x266dd4&&this[_0x45376a(0x104)]();}async[_0xbf8f99(0x87)](){const _0x31d2c6=_0xbf8f99,_0x25da04=this[_0x31d2c6(0x1bb)][_0x31d2c6(0x84)]();this[_0x31d2c6(0x13b)]?.[_0x31d2c6(0xd5)](_0x25da04),this[_0x31d2c6(0x13b)]?.[_0x31d2c6(0xfd)](_0x346777(this[_0x31d2c6(0x16b)][_0x31d2c6(0x143)],_0x31d2c6(0x1cc)));}[_0xbf8f99(0x10c)](){const _0x3f2015=_0xbf8f99;this[_0x3f2015(0x13b)]?.[_0x3f2015(0x128)]();}[_0xbf8f99(0x1ad)](){const _0x2a9971=_0xbf8f99;this[_0x2a9971(0x98)][_0x2a9971(0x1ad)]();}async[_0xbf8f99(0x83)](){const _0x3e600b=_0xbf8f99;await this[_0x3e600b(0x104)]();}async[_0xbf8f99(0xd7)]({message:_0x2b5eba,quickActionData:_0x450ee6}){const _0x4af750=_0xbf8f99;await this[_0x4af750(0x15e)]({'userMessage':_0x2b5eba,'quickActionData':_0x450ee6});}[_0xbf8f99(0x110)](){const _0x30a7db=_0xbf8f99,_0x526bc8=this[_0x30a7db(0x16b)][_0x30a7db(0x127)][_0x30a7db(0x1ce)](_0x30a7db(0x1a1));if(!_0x526bc8)throw new _0x171ebd(_0x30a7db(0x179),this);return _0x526bc8;}async[_0xbf8f99(0x104)](_0x2df5c1){const _0x4aa70c=_0xbf8f99;try{this[_0x4aa70c(0x98)][_0x4aa70c(0xc0)](),await this[_0x4aa70c(0xba)](_0x2df5c1);}catch(_0xb08861){_0x158057(_0x4aa70c(0x1cf),_0xb08861),this[_0x4aa70c(0x13b)]=void 0x0,this[_0x4aa70c(0x98)][_0x4aa70c(0x1a6)]();}}async[_0xbf8f99(0xba)](_0x4fbb4f){const _0x2641ca=_0xbf8f99,_0x30ee5c=this[_0x2641ca(0x16b)][_0x2641ca(0xb1)][_0x2641ca(0x1ce)](_0x123c2c);let _0x230439;_0x30ee5c[_0x2641ca(0x148)]&&_0x30ee5c[_0x2641ca(0xab)](),_0x4fbb4f||!this[_0x2641ca(0x13b)]?_0x230439=this[_0x2641ca(0x16b)][_0x2641ca(0x127)][_0x2641ca(0x1ce)](_0x2641ca(0x74)):this[_0x2641ca(0x98)][_0x2641ca(0x9e)]&&(_0x230439=this[_0x2641ca(0x13b)][_0x2641ca(0xee)]['id']),await this[_0x2641ca(0x1bd)]();const _0x585b07=this[_0x2641ca(0x110)](),_0x5b4143=_0x4fbb4f||_0xc12830();this[_0x2641ca(0x13b)]=new _0x3ad74e({'connector':this[_0x2641ca(0x136)],'chatModels':this[_0x2641ca(0xd0)],'selectedModelId':_0x230439,'conversationId':_0x5b4143,'group':_0x585b07,'getEditor':()=>_0x4f2299(this[_0x2641ca(0x16b)])}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x17c),(_0x2c7a19,_0x149f3b)=>{const _0x38576d=_0x2641ca;this[_0x38576d(0x98)][_0x38576d(0x160)](_0x149f3b),this[_0x38576d(0x98)][_0x38576d(0x1a4)](),this[_0x38576d(0x98)][_0x38576d(0x189)](),this[_0x38576d(0x98)][_0x38576d(0x140)](),_0x4fbb4f||(this[_0x38576d(0x98)][_0x38576d(0x168)](),this[_0x38576d(0x13b)]?.[_0x38576d(0xfd)](_0x346777(this[_0x38576d(0x16b)][_0x38576d(0x143)],_0x38576d(0x1cc))));}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x96),(_0x2bf282,_0x480cfc)=>{const _0x139213=_0x2641ca;this[_0x139213(0x98)][_0x139213(0x17e)](_0x480cfc[_0x139213(0xfb)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xb4),(_0x354975,_0x1e0e4b)=>{const _0x332575=_0x2641ca;this[_0x332575(0x98)][_0x332575(0x1b1)](_0x1e0e4b);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x7e),()=>{const _0x140694=_0x2641ca;this[_0x140694(0x98)][_0x140694(0xc3)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xdc),()=>{const _0x543012=_0x2641ca;this[_0x543012(0x98)][_0x543012(0xc3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x139),(_0x4b5b8f,_0x902d6f)=>{const _0x1c69e4=_0x2641ca;this[_0x1c69e4(0x98)][_0x1c69e4(0x8e)](_0x902d6f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x132),(_0x39c07a,_0x586732)=>{const _0x23d977=_0x2641ca;this[_0x23d977(0x98)][_0x23d977(0x8e)](_0x586732,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x180),()=>{const _0x3a6c97=_0x2641ca;this[_0x3a6c97(0x98)][_0x3a6c97(0x1af)]();}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x17d),async()=>{const _0x580f39=_0x2641ca;await this[_0x580f39(0x98)][_0x580f39(0x1d0)]();}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x198),(_0x1bd5d1,_0x143498)=>{const _0x268f5e=_0x2641ca;this[_0x268f5e(0x98)][_0x268f5e(0x7f)](_0x143498['id']);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xb3),(_0x2717e2,_0x10deec,_0x1c5b0a)=>{const _0x2eb23c=_0x2641ca;this[_0x2eb23c(0x1c5)](_0x10deec,_0x1c5b0a);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x76),(_0x2c4cb2,_0x85e1bb)=>{const _0x8630e8=_0x2641ca;_0x8630e8(0xf9)===_0x85e1bb[_0x8630e8(0xa8)]?this[_0x8630e8(0x98)][_0x8630e8(0x9a)](_0x85e1bb):this[_0x8630e8(0x98)][_0x8630e8(0x13e)](_0x85e1bb);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x142),async(_0x5332c1,_0x5a4e07)=>{const _0x4c335a=_0x2641ca;await this[_0x4c335a(0x107)]({'reply':_0x5a4e07});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x141),(_0xcba882,{reply:_0x577065,index:_0x3d88c3,state:_0x5aca1c})=>{const _0x2c2de5=_0x2641ca;this[_0x2c2de5(0x98)][_0x2c2de5(0x89)]({'id':_0x577065['id'],'index':_0x3d88c3,'state':_0x5aca1c});}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xe4),(_0x28d54c,_0x55c5be)=>{const _0x5d04dc=_0x2641ca;if(this[_0x5d04dc(0x98)][_0x5d04dc(0xef)](_0x55c5be[_0x5d04dc(0x92)],_0x55c5be[_0x5d04dc(0x184)]),_0x5d04dc(0xe0)===_0x55c5be[_0x5d04dc(0x92)][_0x5d04dc(0xa8)]){const _0x51863b=[..._0x4f2299(this[_0x5d04dc(0x16b)])[_0x5d04dc(0x19d)][_0x5d04dc(0x19f)][_0x5d04dc(0xe0)][_0x5d04dc(0xf5)]()];this[_0x5d04dc(0x1bb)][_0x5d04dc(0x12e)](_0x51863b,_0x5d04dc(0x9c)+this[_0x5d04dc(0x13b)]?.['id']);}}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x13c),(_0x5dc347,_0x403e5c)=>{const _0x4677a9=_0x2641ca;this[_0x4677a9(0x98)][_0x4677a9(0xaa)](_0x403e5c[_0x4677a9(0x9d)]),_0x4677a9(0x17b)==_0x403e5c[_0x4677a9(0x9d)]&&this[_0x4677a9(0x10c)](),_0x4677a9(0xe0)===_0x403e5c[_0x4677a9(0xa8)]&&this[_0x4677a9(0x1bb)][_0x4677a9(0x188)](_0x4677a9(0x9c)+this[_0x4677a9(0x13b)]?.['id']);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x138),(_0x4c4e12,_0x36b7f0)=>{const _0x47bae6=_0x2641ca;this[_0x47bae6(0x98)][_0x47bae6(0x12f)](_0x36b7f0[_0x47bae6(0x92)][_0x47bae6(0x9d)],_0x36b7f0[_0x47bae6(0x184)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x1a0),(_0x26deba,_0x29d7b8)=>{const _0x4eeabc=_0x2641ca;this[_0x4eeabc(0x98)][_0x4eeabc(0x153)](_0x29d7b8[_0x4eeabc(0xf8)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x135),(_0x59de76,_0x2e0fe1)=>{const _0x34fdfb=_0x2641ca;this[_0x34fdfb(0x98)][_0x34fdfb(0xe3)](_0x2e0fe1[_0x34fdfb(0x116)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0xa5),(_0x432050,_0x30fd10)=>{const _0xf9c4be=_0x2641ca;this[_0xf9c4be(0x98)][_0xf9c4be(0x1ab)](_0x30fd10[_0xf9c4be(0x165)],_0x30fd10[_0xf9c4be(0x130)],_0x30fd10[_0xf9c4be(0x90)],_0x30fd10[_0xf9c4be(0x18d)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x147),(_0x741e0,_0x1f90d8)=>{const _0x3e6287=_0x2641ca;this[_0x3e6287(0x98)][_0x3e6287(0x1b7)](_0x1f90d8[_0x3e6287(0x165)],_0x1f90d8[_0x3e6287(0xf6)],_0x1f90d8[_0x3e6287(0x1b3)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x13d),(_0xdbbb1e,_0x2201d4)=>{const _0x5f5797=_0x2641ca;this[_0x5f5797(0x98)][_0x5f5797(0x1c6)](_0x2201d4);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x182),(_0x1607c7,_0x289f7c)=>{const _0x537151=_0x2641ca;this[_0x537151(0x98)][_0x537151(0xdd)](_0x289f7c[_0x537151(0xee)],_0x289f7c[_0x537151(0x171)]);}),this[_0x2641ca(0x13b)]['on'](_0x2641ca(0x167),(_0x18850e,{error:_0x570120,interactionId:_0x29488c,fileName:_0x17df22,url:_0x258698,sourceId:_0x58dd3d,sourceLabel:_0x1f511b})=>{const _0x29d14e=_0x2641ca,_0x4c6a44=_0x29488c?_0x29488c+':'+_0xc12830():_0xc12830();_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x16c))?this[_0x29d14e(0x98)][_0x29d14e(0xa2)]({'staticMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x1ac)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1ca))||_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1cf))?(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x181)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x10d))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x75),_0x17df22),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x186))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x11f),_0x258698),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x93))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0xb7)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x146))?this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x175)),'id':_0x4c6a44}):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x113))?(_0x58dd3d&&this[_0x29d14e(0x98)][_0x29d14e(0xa6)](_0x58dd3d),this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x152),_0x1f511b||_0x29d14e(0x130)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):_0x570120[_0x29d14e(0xe6)][_0x29d14e(0xaf)](_0x29d14e(0x1be))?(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0x94)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120)):(this[_0x29d14e(0x98)][_0x29d14e(0x14d)]({'errorMessage':_0x346777(this[_0x29d14e(0x16b)][_0x29d14e(0x143)],_0x29d14e(0xf2)),'id':_0x4c6a44}),this[_0x29d14e(0xb6)](_0x570120));}),await this[_0x2641ca(0x13b)][_0x2641ca(0x14e)](this[_0x2641ca(0x16b)][_0x2641ca(0x127)][_0x2641ca(0x1ce)](_0x2641ca(0x195))),_0x4fbb4f||await this[_0x2641ca(0x13b)][_0x2641ca(0x1ba)]();}async[_0xbf8f99(0x15e)]({userMessage:_0x3d2e51,quickActionData:_0x3ecb21}){const _0x3d1eed=_0xbf8f99;if(!this[_0x3d1eed(0x13b)])throw new _0x171ebd(_0x3d1eed(0xb5));this[_0x3d1eed(0x13b)][_0x3d1eed(0x106)]()&&await this[_0x3d1eed(0x13b)][_0x3d1eed(0x19e)](this[_0x3d1eed(0x1bb)][_0x3d1eed(0x145)]()),this[_0x3d1eed(0x13b)]['id']&&this[_0x3d1eed(0x13b)][_0x3d1eed(0xd8)]&&await this[_0x3d1eed(0x13b)][_0x3d1eed(0x187)]({'userMessage':_0x3d2e51,'quickActionData':_0x3ecb21}),this[_0x3d1eed(0x1c8)]();}[_0xbf8f99(0x1c8)](){const _0x2a58bc=_0xbf8f99,_0x43dc95=_0x4f2299(this[_0x2a58bc(0x16b)])[_0x2a58bc(0x19d)],_0x3886ea=Array[_0x2a58bc(0xd4)](_0x43dc95[_0x2a58bc(0x170)][_0x2a58bc(0x193)](_0x2bf65f));_0x43dc95[_0x2a58bc(0xc6)](_0x55a2fa=>{const _0x1e707d=_0x2a58bc;_0x3886ea[_0x1e707d(0x11c)](_0x5edac7=>_0x55a2fa[_0x1e707d(0x1c9)](_0x5edac7));});}[_0xbf8f99(0xa9)](){const _0x1586a3=_0xbf8f99;console[_0x1586a3(0xe8)](_0x1586a3(0x124));}[_0xbf8f99(0x122)](_0x49ea86){const _0x1e85f4=_0xbf8f99;this[_0x1e85f4(0x98)][_0x1e85f4(0x157)](_0x49ea86);}[_0xbf8f99(0xb6)](_0x49fc68){const _0x1eab4b=_0xbf8f99;_0x158057(_0x49fc68[_0x1eab4b(0xe6)]);}[_0xbf8f99(0x12d)](_0x87c3d1){const _0x3893eb=_0xbf8f99;this[_0x3893eb(0x13b)]?.[_0x3893eb(0x99)](_0x87c3d1);}[_0xbf8f99(0x154)](){const _0x200bf4=_0xbf8f99;this[_0x200bf4(0x13b)]?.[_0x200bf4(0xd3)]();}[_0xbf8f99(0xc4)](){const _0x3c8c87=_0xbf8f99;this[_0x3c8c87(0x13b)]?.[_0x3c8c87(0xbc)]();}[_0xbf8f99(0x81)](_0x31ec65){const _0x277abe=_0xbf8f99,[_0x1998ce,_0x5bfc84]=_0x31ec65[_0x277abe(0x101)](':'),_0xfaa857=this[_0x277abe(0x13b)][_0x277abe(0xe7)](_0x1998ce),_0x2c7638=_0xfaa857[_0x277abe(0x9b)](_0x5bfc84);return{'interaction':_0xfaa857,'reply':_0x2c7638};}[_0xbf8f99(0x123)](_0x469d6a,_0x3f45cd=!0x1){const _0x771d7b=_0xbf8f99,_0x4137ed=_0x4f2299(this[_0x771d7b(0x16b)]),_0x1bee3f={'target':_0x4137ed[_0x771d7b(0x11a)][_0x771d7b(0x18a)][_0x771d7b(0xb9)][_0x771d7b(0x1b9)](_0x4137ed[_0x771d7b(0x11a)][_0x771d7b(0x16e)][_0x771d7b(0x15b)](_0x469d6a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3f45cd};_0x3f45cd&&(_0x1bee3f[_0x771d7b(0x18e)]=!0x0),_0xa2a93(_0x1bee3f);}[_0xbf8f99(0x1c5)](_0x587587,_0x4c7ce6=!0x1){const _0x2265cb=_0xbf8f99;this[_0x2265cb(0x98)][_0x2265cb(0xb3)](_0x587587||_0x346777(this[_0x2265cb(0x16b)][_0x2265cb(0x143)],_0x2265cb(0xe1)),_0x4c7ce6);}async[_0xbf8f99(0x107)]({reply:_0x5c40f1,renderingStrategy:_0x428bfa}){const _0x3c4bc5=_0xbf8f99,{id:_0x1d2862,isDone:_0x469906,type:_0x43d139,parsedContent:_0x11c2f0}=_0x5c40f1;if(_0x3c4bc5(0x162)===_0x43d139){const _0x54fb2b=_0x5c40f1[_0x3c4bc5(0x1b4)]({'showDiff':this[_0x3c4bc5(0x98)][_0x3c4bc5(0x196)]});await this[_0x3c4bc5(0x98)][_0x3c4bc5(0xe9)]({'id':_0x1d2862,'parts':_0x54fb2b,'renderingStrategy':_0x428bfa,'isDone':_0x469906});}else _0x3c4bc5(0xf9)===_0x43d139&&await this[_0x3c4bc5(0x98)][_0x3c4bc5(0xad)]({'id':_0x1d2862,'parsedContent':_0x11c2f0,'renderingStrategy':_0x428bfa,'isDone':_0x469906});_0x469906&&_0x5c40f1[_0x3c4bc5(0xda)][_0x3c4bc5(0xca)]>0x0&&this[_0x3c4bc5(0x98)][_0x3c4bc5(0x7b)](_0x1d2862,_0x5c40f1[_0x3c4bc5(0xda)]);}async[_0xbf8f99(0x1bd)](){const _0x458252=_0xbf8f99,_0x1598e7=this[_0x458252(0x13b)]?.[_0x458252(0xea)];_0x1598e7&&(_0x1598e7[_0x458252(0xbb)](),this[_0x458252(0x98)][_0x458252(0x121)](_0x1598e7));}async[_0xbf8f99(0x177)](){const _0x42b966=_0xbf8f99,_0x4aff5e=this[_0x42b966(0x13b)]?.[_0x42b966(0xea)];if(_0x4aff5e){for await(const _0x423062 of _0x4aff5e[_0x42b966(0xc1)])await this[_0x42b966(0x107)]({'reply':_0x423062,'renderingStrategy':_0x42b966(0xfa)});}}[_0xbf8f99(0x1b5)](_0x29ad71){const _0x49b40e=_0xbf8f99,_0xb22ab0={'positiveCount':_0x29ad71[_0x49b40e(0x120)][_0x49b40e(0x183)](_0x5ca97a=>_0x49b40e(0x15d)===_0x5ca97a[_0x49b40e(0xed)])[_0x49b40e(0xca)],'totalCount':_0x29ad71[_0x49b40e(0x120)][_0x49b40e(0xca)],'modificationId':_0x29ad71['id']},_0x14cb89=this[_0x49b40e(0x13b)][_0x49b40e(0xe7)](_0x29ad71[_0x49b40e(0x1aa)])[_0x49b40e(0xbf)];this[_0x49b40e(0x136)][_0x49b40e(0x1c2)](this[_0x49b40e(0x13b)]['id'],_0x14cb89,_0xb22ab0);}}
|
|
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);}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xf9347=_0x2ab3;function _0x2ab3(_0x4cb7f6,_0x44c075){const _0x5cca04=_0x5cca();return _0x2ab3=function(_0x2ab32d,_0x39b265){_0x2ab32d=_0x2ab32d-0x76;let _0x5d0c3b=_0x5cca04[_0x2ab32d];return _0x5d0c3b;},_0x2ab3(_0x4cb7f6,_0x44c075);}function _0x5cca(){const _0x31afdd=['get','setContextItemLoading','forEach','conversation-start','options','AI_CHAT_WELCOME_MESSAGE','isModelAvailable','capabilities','scrollFeedToSuggestion','setLoadingMessage','interaction-header','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','removeItem','set','1GclAvV','markFeedItemAsDone','updateSuggestionPartState','isDisabled','from','displayedPrompt','chatFeed','commands','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','config','updateCapabilities','children','removeContextItem','setInputPlaceholder','chat','AITabs','addContextItem','updateFeedItemAIReplySuggestionContent','last','ai-suggestion-reply','setConversationContext','find','label','setIsMaximized','interactionId','updateReplyItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','addFeedItemAIReply','focusPromptInput','toggleLoadingSkeleton','markItemAsDone','isWebSearchEnabled','_titleAnimationInterval','userMessage','pluginName','setIsUploadInProgress','addFeedInteractionHeader','AI_CHAT_HEADING','resetConversationTitle','createConversation','clear','getItemIds','_promiseQueue','enableModelSelector','isBusy','availableModels','feedItemRenderingStrategy','startInteraction','finishInteraction','isPending','resetMessageInput','error-message','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','remove','ai.chat.context.searchInputVisibleFrom','startAutoScroll','then','70960trCbhU','showDiff','addFeedItemUserMessage','user-message','setSelectedModel','addFeedItemAISuggestion','trackChanges','length','_getLoadingMessage','<p>','values','isReasoningEnabled','isVisible','updateFeedItemAIReplyContent','264645ibVHfK','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','57xiHCBp','40zRkMdj','1647564BXeJUS','_animateConversationTitle','setWebSearch','view','isPremiumPlugin','populateSourceResourceBalloon','disableModelSelector','streaming','setModel','_view','setModelList','isMaximized','51716zkSjsP','_getInputPlaceholder','contextItems','insertSuggestion','destroy','value','has','AIChatUI','areActionsDisabled','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','4823767Hdlcux','_interactionPromiseResolver','showResizeButton','790678OLjPxp','</p>','delegate','TrackChanges','queueEmptyPromise','_isTrackChangesCommandValueBound','context','addFeedItemError','abort','closeSourceResourceBalloon','133GVeNhd','ai-reply','isLoading','addItem','startsWith','isTrackChangesOn','updateFeedItemAIReplySuggestionPartState','updateFeedInteractionHeader','clearPendingContextUI','chatHeader','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','ai.availableReplyActions','quickActionData','setConversationTitle','isDone','requires','locale','stopInteraction','12zwDSkb','isOfficialPlugin','stopAutoScroll','addFeedItemStaticMessage','filter','1028753jpprWi','updateFeedItemAIReplySources','plugins','scrollToSuggestion','setFeedItemRenderingStrategy','toggleSuggestionDisplayMode','enableControls','chatControls','updateResourceState','updateWebSources','5tcjKmb','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','addTab','bind','setAddContextOptions','ai.chat.models.modelSelectorAlwaysVisible','enqueue','setReasoning','removeFeedInteraction','clearConversationContextUI'];_0x5cca=function(){return _0x31afdd;};return _0x5cca();}(function(_0x3a6977,_0x2d3008){const _0x3021dc=_0x2ab3,_0x14e660=_0x3a6977();while(!![]){try{const _0x236711=-parseInt(_0x3021dc(0xb9))/0x1*(-parseInt(_0x3021dc(0x11e))/0x2)+-parseInt(_0x3021dc(0x103))/0x3*(parseInt(_0x3021dc(0x111))/0x4)+parseInt(_0x3021dc(0xa0))/0x5*(parseInt(_0x3021dc(0x105))/0x6)+parseInt(_0x3021dc(0x7e))/0x7*(parseInt(_0x3021dc(0xf3))/0x8)+parseInt(_0x3021dc(0x101))/0x9*(parseInt(_0x3021dc(0x104))/0xa)+parseInt(_0x3021dc(0x96))/0xb*(-parseInt(_0x3021dc(0x91))/0xc)+-parseInt(_0x3021dc(0x11b))/0xd;if(_0x236711===_0x2d3008)break;else _0x14e660['push'](_0x14e660['shift']());}catch(_0x43f86a){_0x14e660['push'](_0x14e660['shift']());}}}(_0x5cca,0x3c05a));import{ContextPlugin as _0x568026}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2e8485}from'ckeditor5/src/utils.js';import{AIChatView as _0x2759c1}from'./ui/aichatview.js';import{AITabs as _0x44d1fa}from'../aitabs/aitabs.js';import{getTranslation as _0x3c3c88}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x35182f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x316173}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x4a5093}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0xb0a303}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x345e50}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x1654c6}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x568026{static get[_0xf9347(0x8e)](){return[_0x44d1fa];}[_0xf9347(0x10e)];static get[_0xf9347(0xdb)](){const _0x1ce4f3=_0xf9347;return _0x1ce4f3(0x118);}static get[_0xf9347(0x92)](){return!0x0;}static get[_0xf9347(0x109)](){return!0x0;}[_0xf9347(0xe7)]=_0xf9347(0x10c);[_0xf9347(0xf4)]=!0x0;[_0xf9347(0xe3)];[_0xf9347(0x11c)];[_0xf9347(0xd9)]=void 0x0;[_0xf9347(0x79)]=!0x1;constructor(_0x287833){const _0x4ae24c=_0xf9347;super(_0x287833);const _0x4058a0=this[_0x4ae24c(0x7a)][_0x4ae24c(0x98)][_0x4ae24c(0xaa)](_0x4ae24c(0xc8));this[_0x4ae24c(0xb8)](_0x4ae24c(0xe5),!0x1),this[_0x4ae24c(0xe3)]=new _0x4a5093(),this[_0x4ae24c(0x10e)]=new _0x2759c1(this[_0x4ae24c(0x7a)][_0x4ae24c(0x8f)],{'showResizeButton':_0x4058a0[_0x4ae24c(0x11d)],'contextResourcesSearchInputVisibleFrom':this[_0x4ae24c(0x7a)][_0x4ae24c(0xc2)][_0x4ae24c(0xaa)](_0x4ae24c(0xf0))}),this[_0x4ae24c(0x10e)][_0x4ae24c(0x76)](..._0xb0a303)['to'](this),this[_0x4ae24c(0x10e)]['on'](_0x4ae24c(0x9b),(_0x56927e,{showDiff:_0x28ac5d})=>{const _0x3c628a=_0x4ae24c;this[_0x3c628a(0xf4)]=_0x28ac5d;}),_0x4058a0[_0x4ae24c(0x108)][_0x4ae24c(0xa2)]({'id':_0x4ae24c(0xc7),'buttonLabel':_0x3c3c88(this[_0x4ae24c(0x7a)][_0x4ae24c(0x8f)],_0x4ae24c(0xde)),'buttonIcon':_0x35182f,'order':0x0,'content':this[_0x4ae24c(0x10e)]}),this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)][_0x4ae24c(0xa3)](_0x4ae24c(0x80))['to'](this,_0x4ae24c(0xe5),_0x2c8796=>_0x2c8796),this[_0x4ae24c(0x10e)][_0x4ae24c(0xbf)][_0x4ae24c(0xa3)](_0x4ae24c(0xea))['to'](this,_0x4ae24c(0xe5),_0x1b627d=>_0x1b627d),this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)][_0x4ae24c(0xc6)](this[_0x4ae24c(0x112)]()),this[_0x4ae24c(0xa3)](_0x4ae24c(0xb0))['to'](this[_0x4ae24c(0x10e)][_0x4ae24c(0x9d)],_0x4ae24c(0xb0));}[_0xf9347(0x115)](){const _0x3b033c=_0xf9347;super[_0x3b033c(0x115)](),this[_0x3b033c(0xd9)]&&clearInterval(this[_0x3b033c(0xd9)]);}[_0xf9347(0xe0)](_0x34907f){const _0x51b84a=_0xf9347;this[_0x51b84a(0x10e)][_0x51b84a(0xbf)][_0x51b84a(0xe1)](),this[_0x51b84a(0x10e)][_0x51b84a(0x9d)][_0x51b84a(0xe4)](),this[_0x51b84a(0x10e)][_0x51b84a(0x9d)][_0x51b84a(0x10f)](_0x34907f[_0x51b84a(0xe6)],!this[_0x51b84a(0x7a)][_0x51b84a(0xc2)][_0x51b84a(0xaa)](_0x51b84a(0xa5))),this[_0x51b84a(0x94)]({'id':_0x51b84a(0xad),'staticMessage':_0x3c3c88(this[_0x51b84a(0x7a)][_0x51b84a(0x8f)],_0x51b84a(0xaf))});}[_0xf9347(0x94)]({id:_0x1b5720,staticMessage:_0x51c8f6}){const _0x535da0=_0xf9347;this[_0x535da0(0x10e)][_0x535da0(0xbf)][_0x535da0(0x81)](_0x535da0(0x7f),{'id':_0x1b5720,'initialContent':_0x535da0(0xfc)+_0x51c8f6+_0x535da0(0x11f)});}[_0xf9347(0xf5)](_0x1ef993){const _0x17f278=_0xf9347,_0x179d34=_0x1ef993[_0x17f278(0x8b)]?.[_0x17f278(0xbe)]||_0x1ef993[_0x17f278(0xda)];this[_0x17f278(0x10e)][_0x17f278(0xbf)][_0x17f278(0x81)](_0x17f278(0xf6),{'contextItems':Array[_0x17f278(0xbd)](_0x1ef993[_0x17f278(0x113)][_0x17f278(0xfd)]()),'initialContent':_0x17f278(0xfc)+_0x179d34+_0x17f278(0x11f),'id':_0x1ef993['id']});}[_0xf9347(0x7b)]({errorMessage:_0x9390e2,id:_0x1bcc52}){const _0x45ae25=_0xf9347;this[_0x45ae25(0x10e)][_0x45ae25(0xbf)][_0x45ae25(0x81)](_0x45ae25(0xec),{'initialContent':_0x45ae25(0xfc)+_0x9390e2+_0x45ae25(0x11f),'id':_0x1bcc52});}[_0xf9347(0xd4)](_0x25478a){const _0x4ead2e=_0xf9347;return this[_0x4ead2e(0xe3)][_0x4ead2e(0xa6)](async()=>{const _0xc34e4=_0x4ead2e;this[_0xc34e4(0x10e)][_0xc34e4(0xbf)][_0xc34e4(0x81)](_0xc34e4(0x7f),{'id':_0x25478a[_0xc34e4(0xd1)]+':'+_0x25478a['id']}),this[_0xc34e4(0xb3)](null);});}async[_0xf9347(0xf8)](_0x977b08){const _0x5dfc3d=_0xf9347,_0x55f1f4=_0x345e50(this[_0x5dfc3d(0x7a)]);let _0x26d264=_0x55f1f4[_0x5dfc3d(0xc2)][_0x5dfc3d(0xaa)](_0x5dfc3d(0x8a))||[..._0x1654c6];if(_0x55f1f4[_0x5dfc3d(0x98)][_0x5dfc3d(0x117)](_0x5dfc3d(0x77))){if(!this[_0x5dfc3d(0x79)]){this[_0x5dfc3d(0x79)]=!0x0;const _0x5d0227=_0x55f1f4[_0x5dfc3d(0xc0)][_0x5dfc3d(0xaa)](_0x5dfc3d(0xf9));this[_0x5dfc3d(0x10e)][_0x5dfc3d(0xbf)][_0x5dfc3d(0xa3)](_0x5dfc3d(0x83))['to'](_0x5d0227,_0x5dfc3d(0x116));}}else _0x26d264=_0x26d264[_0x5dfc3d(0x95)](_0x3055a9=>_0x5dfc3d(0x114)!=_0x3055a9);return this[_0x5dfc3d(0xe3)][_0x5dfc3d(0xa6)](async()=>{const _0x425c77=_0x5dfc3d;this[_0x425c77(0x10e)][_0x425c77(0xbf)][_0x425c77(0x81)](_0x425c77(0xcc),{'id':_0x977b08[_0x425c77(0xd1)]+':'+_0x977b08['id'],'areActionsDisabled':_0x977b08[_0x425c77(0x119)],'showDiff':this[_0x425c77(0xf4)],'availableActions':_0x26d264}),this[_0x425c77(0xb3)](null);});}[_0xf9347(0xdd)](_0x1d3a3f,_0x121fff){const _0x9dc131=_0xf9347,_0x5df4d9=this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0xc4)][_0x9dc131(0xcb)];if(_0x5df4d9 instanceof _0x316173)return this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0xc4)][_0x9dc131(0xef)](_0x5df4d9),void this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0x81)](_0x9dc131(0xb4),{'id':_0x1d3a3f['id'],'capabilities':{'isWebSearchEnabled':_0x5df4d9[_0x9dc131(0xb1)][_0x9dc131(0xd8)]||_0x121fff[_0x9dc131(0xd8)],'isReasoningEnabled':_0x5df4d9[_0x9dc131(0xb1)][_0x9dc131(0xfe)]||_0x121fff[_0x9dc131(0xfe)]}});this[_0x9dc131(0x10e)][_0x9dc131(0xbf)][_0x9dc131(0x81)](_0x9dc131(0xb4),{'id':_0x1d3a3f['id'],'capabilities':_0x121fff});}[_0xf9347(0x85)](_0x583078){const _0x4465c7=_0xf9347,_0x23e2c8=this[_0x4465c7(0x10e)][_0x4465c7(0xbf)][_0x4465c7(0xc4)][_0x4465c7(0xce)](_0x124461=>_0x124461[_0x4465c7(0xae)]['id']==_0x583078['id']&&_0x124461 instanceof _0x316173);_0x23e2c8&&_0x23e2c8[_0x4465c7(0xb8)](_0x4465c7(0xff),_0x583078[_0x4465c7(0xff)]);}async[_0xf9347(0x100)](_0x326961){const _0x484e96=_0xf9347,_0x54826f=_0x326961[_0x484e96(0xb5)]||this[_0x484e96(0xe7)];return this[_0x484e96(0xe3)][_0x484e96(0xa6)](async _0x4a08e4=>{const _0x225e11=_0x484e96;await this[_0x225e11(0x10e)][_0x225e11(0xbf)][_0x225e11(0xd2)]({..._0x326961,'abortSignal':_0x4a08e4,'renderingStrategy':_0x54826f}),_0x326961[_0x225e11(0x8d)]&&this[_0x225e11(0xba)](_0x326961['id']);});}[_0xf9347(0x97)](_0x1061e4,_0xb99189){const _0x2888d2=_0xf9347;this[_0x2888d2(0x10e)][_0x2888d2(0xbf)][_0x2888d2(0x9f)](_0x1061e4,_0xb99189);}async[_0xf9347(0xca)](_0x4eaf3f){const _0x15cf01=_0xf9347,_0x462285=_0x4eaf3f[_0x15cf01(0xb5)]||this[_0x15cf01(0xe7)];return this[_0x15cf01(0xe3)][_0x15cf01(0xa6)](async _0x2c999c=>{const _0x220fc7=_0x15cf01;await this[_0x220fc7(0x10e)][_0x220fc7(0xbf)][_0x220fc7(0x88)]({..._0x4eaf3f,'abortSignal':_0x2c999c,'renderingStrategy':_0x462285}),_0x4eaf3f[_0x220fc7(0x8d)]&&this[_0x220fc7(0xba)](_0x4eaf3f['id']);});}[_0xf9347(0x84)](_0x32d625){const _0x17990c=_0xf9347;this[_0x17990c(0x10e)][_0x17990c(0xbf)][_0x17990c(0xbb)](_0x32d625);}[_0xf9347(0xba)](_0x1cd491){const _0xfac0b4=_0xf9347;this[_0xfac0b4(0x10e)][_0xfac0b4(0xbf)][_0xfac0b4(0xd7)](_0x1cd491);}[_0xf9347(0xa8)](_0x274842){const _0x23c8d6=_0xf9347;this[_0x23c8d6(0x10e)][_0x23c8d6(0xbf)][_0x23c8d6(0xe2)]()[_0x23c8d6(0x95)](_0x3c16ac=>_0x3c16ac[_0x23c8d6(0x82)](_0x274842))[_0x23c8d6(0xac)](_0x1d27c1=>this[_0x23c8d6(0x10e)][_0x23c8d6(0xbf)][_0x23c8d6(0xb7)](_0x1d27c1));}[_0xf9347(0xe8)](){const _0x1e9502=_0xf9347;this[_0x1e9502(0xb3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1e9502(0x10e)][_0x1e9502(0x9d)][_0x1e9502(0x10b)](!this[_0x1e9502(0x7a)][_0x1e9502(0xc2)][_0x1e9502(0xaa)](_0x1e9502(0xa5))),this[_0x1e9502(0xe5)]=!0x0,this[_0x1e9502(0x10e)][_0x1e9502(0xbf)][_0x1e9502(0xf1)]();}[_0xf9347(0x90)](_0x29e2f9){const _0x47985f=_0xf9347;this[_0x47985f(0xe3)][_0x47985f(0x7c)](),this[_0x47985f(0x10e)][_0x47985f(0xbf)][_0x47985f(0xe2)]()[_0x47985f(0x95)](_0x99910d=>_0x99910d[_0x47985f(0x82)](_0x29e2f9['id']))[_0x47985f(0xac)](_0x3fa925=>this[_0x47985f(0xba)](_0x3fa925)),this[_0x47985f(0xe5)]=!0x1,this[_0x47985f(0x10e)][_0x47985f(0xbf)][_0x47985f(0x93)]();}async[_0xf9347(0xe9)](){const _0x1fa928=_0xf9347;return this[_0x1fa928(0xe3)][_0x1fa928(0x78)][_0x1fa928(0xf2)](()=>{const _0x48ea4a=_0x1fa928;this[_0x48ea4a(0xe5)]=!0x1,this[_0x48ea4a(0x10e)][_0x48ea4a(0xbf)][_0x48ea4a(0x93)]();});}[_0xf9347(0xc9)](_0x3ed892,_0x3f0c73){const _0x349100=_0xf9347;this[_0x349100(0x10e)][_0x349100(0x9d)][_0x349100(0xc9)](_0x3ed892,_0x3f0c73);}[_0xf9347(0xc5)](_0x473ef2){const _0x2a6a8f=_0xf9347;this[_0x2a6a8f(0x10e)][_0x2a6a8f(0x9d)][_0x2a6a8f(0xc5)](_0x473ef2);}[_0xf9347(0xab)](_0x1dc0d7,_0x593f51){const _0x117530=_0xf9347;this[_0x117530(0x10e)][_0x117530(0x9d)][_0x117530(0xab)](_0x1dc0d7,_0x593f51);}[_0xf9347(0xdc)](_0x18f419){const _0x598cc9=_0xf9347;this[_0x598cc9(0x10e)][_0x598cc9(0x9d)][_0x598cc9(0xdc)](_0x18f419);}[_0xf9347(0xcd)](_0x28c33){const _0x3f3924=_0xf9347;this[_0x3f3924(0x10e)][_0x3f3924(0x9d)][_0x3f3924(0xcd)](_0x28c33);}[_0xf9347(0x86)](){const _0x20758f=_0xf9347;this[_0x20758f(0x10e)][_0x20758f(0x9d)][_0x20758f(0x86)]();}[_0xf9347(0xa9)](){const _0xe79641=_0xf9347;this[_0xe79641(0x10e)][_0xe79641(0x9d)][_0xe79641(0xa9)]();}[_0xf9347(0x9e)](_0x4d8747,_0xf3bb39,_0x28abd7){const _0x3c92eb=_0xf9347;this[_0x3c92eb(0x10e)][_0x3c92eb(0x9d)][_0x3c92eb(0x9e)](_0x4d8747,_0xf3bb39,_0x28abd7);}[_0xf9347(0xeb)](){const _0x596ca1=_0xf9347;this[_0x596ca1(0x10e)][_0x596ca1(0x9d)][_0x596ca1(0xeb)](),this[_0x596ca1(0x10e)][_0x596ca1(0x9d)][_0x596ca1(0xc6)](this[_0x596ca1(0x112)]());}[_0xf9347(0xa4)](_0x3839db){const _0x4831a2=_0xf9347;this[_0x4831a2(0x10e)][_0x4831a2(0x9d)][_0x4831a2(0xa4)](_0x3839db);}[_0xf9347(0xc3)](_0x1947cc){const _0x48cd3a=_0xf9347;this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0x107)](_0x1947cc[_0x48cd3a(0xd8)]),this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0xa7)](_0x1947cc[_0x48cd3a(0xfe)]),this[_0x48cd3a(0x10e)][_0x48cd3a(0x9d)][_0x48cd3a(0xc6)](this[_0x48cd3a(0x112)](_0x1947cc));}[_0xf9347(0xf7)](_0x253892,_0x208fa0){const _0x4b9c39=_0xf9347;this[_0x4b9c39(0x10e)][_0x4b9c39(0x9d)][_0x4b9c39(0x10d)](_0x253892),_0x208fa0&&this[_0x4b9c39(0x10e)][_0x4b9c39(0x9d)][_0x4b9c39(0x10b)](!0x1);}[_0xf9347(0x9a)](_0x5ef5d8){const _0x5056b0=_0xf9347;this[_0x5056b0(0xe7)]=_0x5ef5d8;}[_0xf9347(0xd6)](_0x5bcaa9){const _0x294d1c=_0xf9347;this[_0x294d1c(0x10e)][_0x294d1c(0xbf)][_0x294d1c(0xd6)](_0x5bcaa9);}[_0xf9347(0xdf)](){const _0x458be8=_0xf9347;this[_0x458be8(0x8c)](_0x3c3c88(this[_0x458be8(0x7a)][_0x458be8(0x8f)],_0x458be8(0xde)));}[_0xf9347(0x8c)](_0x121881,_0x342bdb=!0x1){const _0x2c5789=_0xf9347;if(_0x342bdb&&!_0x2e8485()&&_0x121881[_0x2c5789(0xfa)])return this[_0x2c5789(0x10e)][_0x2c5789(0x87)][_0x2c5789(0xcf)]='',void this[_0x2c5789(0x106)](_0x121881);this[_0x2c5789(0x10e)][_0x2c5789(0x87)][_0x2c5789(0xcf)]=_0x121881;}[_0xf9347(0xb3)](_0x5bd635){const _0x21bdce=_0xf9347,_0x3b0da5=this[_0x21bdce(0xfb)](_0x5bd635);this[_0x21bdce(0x10e)][_0x21bdce(0xbf)][_0x21bdce(0xb3)](_0x3b0da5);}[_0xf9347(0x106)](_0x50dfa3){const _0x3453fe=_0xf9347;let _0x38b3d6=0x0;clearInterval(this[_0x3453fe(0xd9)]),this[_0x3453fe(0xd9)]=setInterval(()=>{const _0x3842d6=_0x3453fe;this[_0x3842d6(0x10e)][_0x3842d6(0x87)][_0x3842d6(0xcf)]=this[_0x3842d6(0x10e)][_0x3842d6(0x87)][_0x3842d6(0xcf)]+_0x50dfa3[_0x38b3d6],_0x38b3d6++,_0x38b3d6===_0x50dfa3[_0x3842d6(0xfa)]&&clearInterval(this[_0x3842d6(0xd9)]);},0x1e);}[_0xf9347(0xd0)](_0x5ef7c7){const _0x435944=_0xf9347;this[_0x435944(0x10e)][_0x435944(0x87)][_0x435944(0x110)]=_0x5ef7c7;}[_0xf9347(0xfb)](_0x23cce5){const _0x259d32=_0xf9347;return _0x23cce5?_0x23cce5[_0x259d32(0xd8)]&&_0x23cce5[_0x259d32(0xfe)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0x102)):_0x23cce5[_0x259d32(0xd8)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0xa1)):_0x23cce5[_0x259d32(0xfe)]?_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0x11a)):_0x3c3c88(this[_0x259d32(0x7a)][_0x259d32(0x8f)],_0x259d32(0xee)):'';}[_0xf9347(0x112)](_0x3e9723){const _0x58554c=_0xf9347;return _0x3e9723?_0x3e9723[_0x58554c(0xd8)]&&_0x3e9723[_0x58554c(0xfe)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xd3)):_0x3e9723[_0x58554c(0xd8)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0x89)):_0x3e9723[_0x58554c(0xfe)]?_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xb6)):_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xc1)):_0x3c3c88(this[_0x58554c(0x7a)][_0x58554c(0x8f)],_0x58554c(0xc1));}[_0xf9347(0x10a)](_0x474f44,_0x216c09,_0x403aff,_0x29e08e){const _0x2da7d4=_0xf9347;this[_0x2da7d4(0x10e)][_0x2da7d4(0x10a)](_0x474f44,_0x216c09,_0x403aff,_0x29e08e);}[_0xf9347(0x7d)](_0x583fcd){const _0x3c5d53=_0xf9347;this[_0x3c5d53(0x10e)][_0x3c5d53(0x7d)](_0x583fcd);}[_0xf9347(0xd5)](){const _0x24370f=_0xf9347;this[_0x24370f(0x10e)][_0x24370f(0x9d)][_0x24370f(0xd5)]();}[_0xf9347(0xb2)](_0x1d36a2,_0x226d52){const _0x30c17e=_0xf9347;this[_0x30c17e(0x10e)][_0x30c17e(0xbf)][_0x30c17e(0x99)](_0x1d36a2,_0x226d52);}[_0xf9347(0xf1)](){const _0x1fd116=_0xf9347;this[_0x1fd116(0x10e)][_0x1fd116(0xbf)][_0x1fd116(0xf1)]();}[_0xf9347(0xed)](){const _0x5105d8=_0xf9347;this[_0x5105d8(0x10e)][_0x5105d8(0x9d)][_0x5105d8(0xbc)]=!0x0;}[_0xf9347(0x9c)](){const _0x4a70fb=_0xf9347;this[_0x4a70fb(0x10e)][_0x4a70fb(0x9d)][_0x4a70fb(0xbc)]=!0x1;}}
|
|
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;}}
|