@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.4
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 +16 -16
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +21 -14
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf13e99=_0x2eff;(function(_0x3e8a4c,_0x5a086d){const _0x192164=_0x2eff,_0x1d2def=_0x3e8a4c();while(!![]){try{const _0x4aa57f=-parseInt(_0x192164(0x168))/0x1+parseInt(_0x192164(0x157))/0x2*(-parseInt(_0x192164(0x156))/0x3)+-parseInt(_0x192164(0x161))/0x4+parseInt(_0x192164(0x169))/0x5*(parseInt(_0x192164(0x137))/0x6)+parseInt(_0x192164(0x141))/0x7+parseInt(_0x192164(0x143))/0x8*(parseInt(_0x192164(0x16d))/0x9)+parseInt(_0x192164(0x145))/0xa;if(_0x4aa57f===_0x5a086d)break;else _0x1d2def['push'](_0x1d2def['shift']());}catch(_0x36a340){_0x1d2def['push'](_0x1d2def['shift']());}}}(_0x40d7,0x5cb2b));import{Plugin as _0x54033c}from'ckeditor5/src/core.js';import{AIBalloon as _0xf2a1a4}from'../aiballoon/aiballoon.js';function _0x2eff(_0x3dcdc0,_0x2e7e90){const _0x40d712=_0x40d7();return _0x2eff=function(_0x2efffe,_0x5ab091){_0x2efffe=_0x2efffe-0x137;let _0x4bf782=_0x40d712[_0x2efffe];return _0x4bf782;},_0x2eff(_0x3dcdc0,_0x2e7e90);}import{AI_REPLY_ACTIONS as _0x3684bb}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0xbc3a99}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x155428}from'../aicore/utils/eventnames.js';import{Dialog as _0x427ba7}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x54033c{static get[_0xf13e99(0x13e)](){return[_0x427ba7,_0xf2a1a4];}static get[_0xf13e99(0x144)](){const _0x255c70=_0xf13e99;return _0x255c70(0x138);}static get[_0xf13e99(0x154)](){return!0x0;}static get[_0xf13e99(0x15e)](){return!0x0;}[_0xf13e99(0x13c)];constructor(_0x2017fb){const _0xce6212=_0xf13e99;super(_0x2017fb),this[_0xce6212(0x166)](_0xce6212(0x162),!0x1);}[_0xf13e99(0x150)](_0x66ed67){const _0x404e9d=_0xf13e99,_0x5763b9=this[_0x404e9d(0x13b)];this[_0x404e9d(0x13c)]||(this[_0x404e9d(0x13c)]=this[_0x404e9d(0x167)]()),_0x5763b9[_0x404e9d(0x158)][_0x404e9d(0x15f)](_0x404e9d(0x16f))[_0x404e9d(0x150)]({..._0x66ed67,'id':_0x404e9d(0x170),'class':_0x404e9d(0x16b),'mainView':this[_0x404e9d(0x13c)]}),this[_0x404e9d(0x175)](_0x66ed67[_0x404e9d(0x140)]),this[_0x404e9d(0x13c)][_0x404e9d(0x13d)](!_0x66ed67[_0x404e9d(0x152)]),this[_0x404e9d(0x15c)]();}[_0xf13e99(0x142)](){const _0x5aa27e=_0xf13e99;this[_0x5aa27e(0x13b)][_0x5aa27e(0x158)][_0x5aa27e(0x15f)](_0x5aa27e(0x16f))[_0x5aa27e(0x142)]();}[_0xf13e99(0x164)](_0x3e8bc7){const _0x523cbd=_0xf13e99;return this[_0x523cbd(0x13c)]||(this[_0x523cbd(0x13c)]=this[_0x523cbd(0x167)]()),this[_0x523cbd(0x13c)][_0x523cbd(0x164)](_0x3e8bc7);}[_0xf13e99(0x16a)](_0x4fd797){const _0x42c978=_0xf13e99;this[_0x42c978(0x13c)]&&this[_0x42c978(0x13c)][_0x42c978(0x16a)](_0x4fd797);}[_0xf13e99(0x167)](){const _0x3d6745=_0xf13e99,_0x178736=this[_0x3d6745(0x13b)],_0xd5afe8=_0x178736[_0x3d6745(0x158)][_0x3d6745(0x15f)](_0x3d6745(0x16f)),_0x57b3b0=_0x178736[_0x3d6745(0x14d)][_0x3d6745(0x15f)](_0x3d6745(0x14a));let _0x7d8593=_0x178736[_0x3d6745(0x15b)][_0x3d6745(0x15f)](_0x3d6745(0x159))||[..._0x3684bb];_0x178736[_0x3d6745(0x158)][_0x3d6745(0x171)](_0x3d6745(0x177))||(_0x7d8593=_0x7d8593[_0x3d6745(0x163)](_0xc0e88e=>_0x3d6745(0x146)!=_0xc0e88e));const _0x1eff90=new _0xbc3a99(_0x178736[_0x3d6745(0x14c)],{'availableActions':_0x7d8593,'showApplyButton':!0x0,'showSuggestButton':!!_0x57b3b0});return _0x1eff90[_0x3d6745(0x172)](_0x3d6745(0x162))['to'](this),_0x1eff90[_0x3d6745(0x139)](..._0x155428)['to'](this),_0x1eff90[_0x3d6745(0x139)](_0x3d6745(0x165),_0x3d6745(0x151))['to'](this),_0xd5afe8[_0x3d6745(0x139)](_0x3d6745(0x14b))['to'](this),_0x1eff90['on'](_0x3d6745(0x16c),this[_0x3d6745(0x15c)][_0x3d6745(0x172)](this)),_0x1eff90['on'](_0x3d6745(0x146),this[_0x3d6745(0x15c)][_0x3d6745(0x172)](this)),_0x1eff90['on'](_0x3d6745(0x174),this[_0x3d6745(0x15c)][_0x3d6745(0x172)](this)),_0x57b3b0&&_0x1eff90[_0x3d6745(0x172)](_0x3d6745(0x147))['to'](_0x57b3b0,_0x3d6745(0x15d)),_0x1eff90[_0x3d6745(0x16e)](),_0x1eff90;}[_0xf13e99(0x175)](_0x1eeb49){const _0x57b14f=_0xf13e99,_0x320985=this[_0x57b14f(0x13b)],_0x27fd4d=_0x320985[_0x57b14f(0x158)][_0x57b14f(0x15f)](_0x57b14f(0x160))[_0x57b14f(0x149)][_0x57b14f(0x155)][_0x57b14f(0x173)];this[_0x57b14f(0x13c)][_0x57b14f(0x13f)](_0x1eeb49),_0x27fd4d[_0x57b14f(0x171)](this[_0x57b14f(0x13c)][_0x57b14f(0x153)])||(_0x27fd4d[_0x57b14f(0x14f)]([this[_0x57b14f(0x13c)][_0x57b14f(0x153)],this[_0x57b14f(0x13c)][_0x57b14f(0x15a)]],0x0),_0x320985[_0x57b14f(0x158)][_0x57b14f(0x15f)](_0x57b14f(0x16f))[_0x57b14f(0x148)](_0x57b14f(0x176),()=>{const _0x27e216=_0x57b14f;_0x27fd4d[_0x27e216(0x14e)](this[_0x27e216(0x13c)][_0x27e216(0x153)]),_0x27fd4d[_0x27e216(0x14e)](this[_0x27e216(0x13c)][_0x27e216(0x15a)]);}));}[_0xf13e99(0x15c)](){const _0xa12cc=_0xf13e99;this[_0xa12cc(0x13c)][_0xa12cc(0x13a)]();}}function _0x40d7(){const _0x1fb455=['locale','commands','remove','addMany','open','showNext','areActionsDisabled','previousButtonView','isOfficialPlugin','headerView','19038DSWeiF','16rTLvkg','plugins','ai.availableReplyActions','nextButtonView','config','_restoreDefaultViewFocus','value','isPremiumPlugin','get','Dialog','2039340IxlFuH','showDiff','filter','updateContent','showPrevious','set','_createChatBalloonView','556813bVvXpt','10HEmSKV','setState','ck-ai-chat-balloon','applySuggestion','234hDwiiY','render','AIBalloon','aiChatBalloon','has','bind','children','rejectSuggestion','_toggleRotatorButtonsInDialogHeader','beforeDialogClosed','TrackChanges','1574904Gfgkfv','AIChatBalloon','delegate','focus','editor','_chatBalloonView','togglePartToolbarEnabled','requires','toggleRotatorButtonsVisibility','showRotator','2113937HHNhbC','close','72224bfllFR','pluginName','4354200PFvyTL','insertSuggestion','isTrackChangesOn','once','view','trackChanges','dialogClosed'];_0x40d7=function(){return _0x1fb455;};return _0x40d7();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x549e58=_0x2831;(function(_0x1b3890,_0x384e77){const _0x14e4d6=_0x2831,_0x5b9f03=_0x1b3890();while(!![]){try{const _0x118a91=parseInt(_0x14e4d6(0x248))/0x1*(parseInt(_0x14e4d6(0x23e))/0x2)+-parseInt(_0x14e4d6(0x2dc))/0x3+parseInt(_0x14e4d6(0x19e))/0x4+-parseInt(_0x14e4d6(0x2a4))/0x5*(parseInt(_0x14e4d6(0x1de))/0x6)+parseInt(_0x14e4d6(0x1ca))/0x7*(-parseInt(_0x14e4d6(0x1ec))/0x8)+-parseInt(_0x14e4d6(0x1fc))/0x9+parseInt(_0x14e4d6(0x2c5))/0xa;if(_0x118a91===_0x384e77)break;else _0x5b9f03['push'](_0x5b9f03['shift']());}catch(_0x4977dd){_0x5b9f03['push'](_0x5b9f03['shift']());}}}(_0x34e4,0x4eb0b));import{ContextPlugin as _0x532a15,Editor as _0x49cd1c}from'ckeditor5/src/core.js';import{BodyCollection as _0x304253}from'ckeditor5/src/ui.js';import{CKEditorError as _0x4463ae,logError as _0x5d0d75,scrollViewportToShowTarget as _0x2f1661,uid as _0x327016}from'ckeditor5/src/utils.js';import{AIConnector as _0x5d5837}from'../aicore/aiconnector.js';import{AITabs as _0xf3132e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3c92d0}from'./model/aichatconversation.js';import{getTranslation as _0x4b3662}from'../aicore/utils/common-translations.js';function _0x34e4(){const _0x31f4e9=['_getUserPresentableContentPartDocumentRange','isInContext','chat','root','_bodyCollection','resource','editors','addFileToContext','ai-conversation-','clearConversationContextUI','getDocumentContext','updateFeedItemAIReplySuggestionContent','listenTo','ai-no-track-changes','interactionFinished','change','3551580DkXvxd','baseVersion','delegate','accepted','contextItemRemoved','getChild','replyCreated','cloneNode','resources','ai-chat-url-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','updateConversationTitle','removeFeedInteraction','source','dialogClosed','streaming','selectModel','partIndex','state','new','mouseOverSuggestion','revert','_scrollToSuggestionRange','30210WByBPk','setModel','AITabs','AIConnector','getSelectionText','detachFromDom','createRange','isUploadInProgress','ai-chat-conversation-start-failed','contextItems','updateCapabilities','updateFeedItemAIReplySources','ai-chat-controller-mouse-over','getChildren','_setIsMaximized','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','config','stop','domConverter','updateFeedItemAIReplySuggestionPartState','push','addFilesToContext','handleUserInteraction','selection','ai-chat-controller-no-active-conversation','getOperations','ai-chat-context-invalid-data','_applySuggestion','nextSibling','removeSelectionFromChatContext','setAddContextOptions','ai.models','getConversation','alignToTop','static','history','activateTab','_stopLastInteraction','content','addFeedItemError','getRoot','removed','getContentParts','AI_CHAT_GENERIC_ERROR','abortPromptStream','updateResourceState','interactionId','find','createPositionAt','setIsUploadInProgress','messageId','clearLoadingMessage','ai-chat-context-unsupported-type','scrollFeedToSuggestion','replies','isDocumentOperation','ai-chat-context-form-data-size-limits-exceeded','resourceStateChanged','context','populateSourceResourceBalloon','setFeedItemAIReplySuggestionPartActive','focusPromptInput','_aiChatBalloonShowDiff','fetchConversations','callback','batch','getAttribute','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','insertSuggestion','type','changes','locale','current-document','ai.models.defaultModelId','_createFromRanges','ai-chat-source-resources-load-failed','findIndex','addSelectionToChatContext','1818696YJyYks','split','unshift','mapper','version','activeConversation','isPremiumPlugin','getRanges','done','sourceResourcesLoaded','getDiff','$graveyard','Undo','ai-chat-conversation-init-failed','applyOperation','aiChatBalloon','ai-chat-context-unsupported-file-type','setContextItemLoading','open','addContextOptionsChanged','fetchConversation','interactionStarted','addSelectionToContext','toString','closeSourceResourceBalloon','selectedModel','AIChatController','startInteraction','getAll','addFeedItemAIReply','updateContent','message','Disliked\x20response','reasoningStarted','_toggleReasoning','_getLastCreatedConversationId','contextItemLoadingEnded','maxOffset','_openBalloonFor','AI_CHAT_ABORTED_MESSAGE','replyId','getChildAtOffset','addFeedItemCustomElement','resetMessageInput','171794CDhmrF','DocumentCompare','_integrateEditor','setLoadingMessage','addFeedItemAISuggestion','showFakeVisualSelection','addResourceToContext','redo','sendMessage','interactionCreated','addContextItem','disableControls','resize','undo','previous','AI_CHAT_INVALID_REQUEST','updateCurrentDocumentInContext','ai-request-aborted','showDiff','loadSourceResources','6mzIaqQ','uiId','resetConversationTitle','startsWith','set','Liked\x20response','ai.chat.initialConversation','addCurrentDocumentToChatContext','_showConversationHistory','applySuggestion','interactionDestroyed','isStarted','contextItem','options','112PScoTW','_registerToolDataCallback','_updateReplyContent','modification','getInteraction','sourceId','stopInteraction','editing','showNext','plugins','pending','_currentPreviewedChangeGroup','changeGroups','toViewRange','setIsMaximized','ai-chat-file-upload-failed','4395627bCtABF','getConversations','uploadProgressChanged','from','toolDataReceived','load','anchorId','start','range','_aiEditing','clearPendingContextUI','_applyOperationsAsSuggestions','createPositionFromPath','webSearchStarted','contextItemAdded','ai-chat-resource-load-failed','addCurrentDocumentToContext','resizedTabs','resizeTabs','ai-chat-conversation-not-found','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','startAutoScroll','TrackChangesEditing','ai-chat-invalid-request','has','isModelAvailable','main','rejectSuggestion','data-id','document','handleRemovedConversation','delete','children','ai.chat.context','addFeedItemStaticMessage','mouseLeaveSuggestion','resetReasoningState','lastCreated','map','sourcePosition','createReply','finishInteraction','parse','_toggleWebSearch','_flushLastInteractionUI','toggleWebSearch','AI_CHAT_RESOURCE_LOAD_FAILED','addFeedInteractionHeader','capabilitiesUpdated','ai-chat-context-file-too-many-pages','_getDocumentRangeForReplyChanges','init','dislike','getDocumentData','bind','enableControls','AIEditing','removeSelectionFromContext','_getPresentableSiblingContentPartIndex','replyContentUpdated','close','_insertSuggestion','viewRangeToDom','setFeedItemRenderingStrategy','model','getTransformedByOperation','1204342QVhlTF','isDisabled','toggleLoadingSkeleton','_handleStartConversation','modelSelected','currentReply','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','howMany','loadConversation','1gaOofr','_startConversationSafely','getFirstRange','startConversation','addOperation','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getPath','_removeFromContext','_getAIChatInteractionAPI','length','_handleUIUserMessage','resourceId','replyChangeGroupStateUpdated','like','_aiChatUi','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','executeCustomItemCallback','commands','conversationInitialized','setState','resetWebSearchState','showPrevious','getReply','attachToDom','collaboration.channelId','requires','isCurrentDocumentInContext','webSearchFinished','Showing\x20conversation\x20history...','hideFakeVisualSelection','marker','sendUserMessage','log','hasChanges','_batchToChanges','createConversation','setConversationTitle','ready','getGroupId','isCurrentDocumentInConversation','showChangeInText','slice','ai-chat-missing-channel-id','data','rootName','filter','outdated','addFeedItemUserMessage','sessionId','sources','query','end','remove','AI_CHAT_CONTEXT_INVALID_DATA','areActionsDisabled','view','AIChatUI','TrackChanges','getInteractionAndReplyById','_aiConnector','lastInteraction','isLoading','createdAt','upsertAIChatRating','error','uid','node','rejected','prepareLoadingMessage','toggleReasoning','add','setChangeGroupState','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','forEach','afterInit','path','AI_CHAT_UNABLE_TO_START_CONVERSATION','_rejectSuggestion','addUrlToContext','index','removeContextItem','includes','_updateRatings','AI_CHAT_CONTEXT_FILE_TOO_LARGE','text','get','AI_BALLOON_HEADER_TITLE','contextSent','AIChatBalloon','destroy','addDocumentToContext','_logError','1238135oXhaeg','indexes','reasoningFinished','indexOf','removeFromContext','updateFeedItemAIReplyContent','setSelectedModel','setConversationContext','documentContextContent','isOfficialPlugin','_aiChatModels','next','toggleSuggestionDisplayMode','pluginName','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_aiChatBalloon','ai-chat-context-file-too-large'];_0x34e4=function(){return _0x31f4e9;};return _0x34e4();}import{AIModels as _0x1574f3}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x4ee1ac}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x181444,DATA_ID_MODEL_ATTRIBUTE as _0x5a92da}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x595e85,getOperationsFromReply as _0x1f974c}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3cc810,getMinimalSelection as _0x515b44}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4a1aab,_DetachOperation as _0x467c1c}from'ckeditor5/src/engine.js';function _0x2831(_0x403949,_0x57b4ca){const _0x34e4a8=_0x34e4();return _0x2831=function(_0x283108,_0x2d5fd0){_0x283108=_0x283108-0x190;let _0x12bbee=_0x34e4a8[_0x283108];return _0x12bbee;},_0x2831(_0x403949,_0x57b4ca);}import{findOne as _0x2a7a53,getAttribute as _0x51229b,serialize as _0x45c6b5,Document as _0x5b8bb4,findByAttribute as _0x1d2477}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x532a15{[_0x549e58(0x205)];[_0x549e58(0x283)];[_0x549e58(0x256)];[_0x549e58(0x2ae)];[_0x549e58(0x2b3)];[_0x549e58(0x26a)]=new Map();[_0x549e58(0x1f7)]=null;[_0x549e58(0x2b9)];static get[_0x549e58(0x261)](){return[_0x5d5837,_0x181444];}static get[_0x549e58(0x2b1)](){const _0x2721f7=_0x549e58;return _0x2721f7(0x1b8);}static get[_0x549e58(0x2ad)](){return!0x0;}static get[_0x549e58(0x1a4)](){return!0x0;}[_0x549e58(0x22f)](){const _0x5134f8=_0x549e58;this[_0x5134f8(0x2b9)]=new _0x304253(this[_0x5134f8(0x316)][_0x5134f8(0x197)]),this[_0x5134f8(0x2b9)][_0x5134f8(0x25f)](),this[_0x5134f8(0x283)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x2df)),this[_0x5134f8(0x256)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x280)),this[_0x5134f8(0x205)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x234)),this[_0x5134f8(0x2ae)]=new _0x1574f3({'connector':this[_0x5134f8(0x283)],'config':this[_0x5134f8(0x316)][_0x5134f8(0x2ec)][_0x5134f8(0x29d)](_0x5134f8(0x2fb)),'locale':this[_0x5134f8(0x316)][_0x5134f8(0x197)]});const _0x9c68be=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x2de));this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x24b),()=>{const _0x13da72=_0x5134f8;this[_0x13da72(0x249)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x267),(_0x1fbf28,_0x1ec1e7)=>{const _0x38d695=_0x5134f8;this[_0x38d695(0x252)]({'userMessage':_0x1ec1e7});}),this[_0x5134f8(0x2c1)](_0x9c68be,_0x5134f8(0x20d),(_0x45fa38,_0x129fde)=>{const _0x153927=_0x5134f8;this[_0x153927(0x2ea)](_0x129fde);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x20e),()=>{const _0x4675f2=_0x5134f8;_0x9c68be[_0x4675f2(0x1d6)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x308),async()=>{const _0x502f42=_0x5134f8;await this[_0x502f42(0x301)](),await this[_0x502f42(0x228)](),this[_0x502f42(0x2f9)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2a2),()=>{const _0x19929d=_0x5134f8;this[_0x19929d(0x1e5)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2bc),(_0x2b97da,_0x2ee259)=>{const _0x55dc9e=_0x5134f8;this[_0x55dc9e(0x1a3)]?.[_0x55dc9e(0x2f1)](Array[_0x55dc9e(0x1ff)](_0x2ee259));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x296),(_0x410f06,_0x246e62)=>{const _0x208f74=_0x5134f8;this[_0x208f74(0x1a3)]?.[_0x208f74(0x296)](_0x246e62);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x258),(_0x221b26,_0x810224)=>{const _0x5c0de7=_0x5134f8;_0x810224[_0x5c0de7(0x190)](this[_0x5c0de7(0x316)]);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x1d0),(_0x4a6d0e,_0x572a46)=>{const _0x56ab12=_0x5134f8;this[_0x56ab12(0x1a3)]?.[_0x56ab12(0x1d0)](_0x572a46[_0x56ab12(0x2d2)],_0x572a46[_0x56ab12(0x2ba)]);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x298),(_0xb7b871,_0x53cb4b)=>{const _0x1a47bc=_0x5134f8;this[_0x1a47bc(0x24f)](_0x53cb4b);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x1dd),(_0x5b01ce,_0x2662a1)=>{const _0x598a36=_0x5134f8;this[_0x598a36(0x1a3)]?.[_0x598a36(0x1dd)](_0x2662a1[_0x598a36(0x1f1)],_0x2662a1[_0x598a36(0x27a)],_0x2662a1[_0x598a36(0x289)]);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x229),()=>{const _0x54f136=_0x5134f8;this[_0x54f136(0x227)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x28d),()=>{const _0x5ceb3e=_0x5134f8;this[_0x5ceb3e(0x1c0)]();}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2d5),(_0x448e75,_0x38c366)=>{const _0x30c59b=_0x5134f8;this[_0x30c59b(0x1a3)]?.[_0x30c59b(0x2dd)](_0x38c366);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x255),(_0x3c6551,{replyId:_0x2aa711})=>{const _0x4cbd04=_0x5134f8;console[_0x4cbd04(0x268)](_0x4cbd04(0x1e3),_0x2aa711);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x230),(_0x4d4ee0,{replyId:_0x46f7a3})=>{const _0x265caf=_0x5134f8;console[_0x265caf(0x268)](_0x265caf(0x1be),_0x46f7a3);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x194),(_0x46da20,_0x4c9e4f)=>{const _0x44bb03=_0x5134f8;this[_0x44bb03(0x239)](_0x4c9e4f);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x270),(_0x2b1e1e,{replyId:_0x16654c,partIndex:_0x2780f8})=>{const _0x59e50f=_0x5134f8;this[_0x59e50f(0x31a)]=this[_0x59e50f(0x256)][_0x59e50f(0x1dc)],this[_0x59e50f(0x1c4)](_0x16654c,_0x2780f8);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2d9),(_0x3b5b00,{replyId:_0x4da5b4,partIndex:_0x421490})=>{const _0x42b29a=_0x5134f8,_0x3f572e=this[_0x42b29a(0x22e)](_0x4da5b4,_0x421490);_0x3f572e&&_0x42b29a(0x1a9)!=_0x3f572e[_0x42b29a(0x204)][_0x42b29a(0x2b8)][_0x42b29a(0x274)]&&this[_0x42b29a(0x205)][_0x42b29a(0x1cf)]([_0x3f572e[_0x42b29a(0x204)]],_0x42b29a(0x2e8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x21f),()=>{const _0xaee70f=_0x5134f8;this[_0xaee70f(0x205)][_0xaee70f(0x265)](_0xaee70f(0x2e8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x1e7),(_0x3a7e2c,_0x2e113f)=>{const _0x2e6cb5=_0x5134f8;this[_0x2e6cb5(0x205)][_0x2e6cb5(0x265)](_0x2e6cb5(0x2e8)),this[_0x2e6cb5(0x2f7)](_0x2e113f);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x2b0),async(_0xce90f6,{replyId:_0x30c15b,showDiff:_0x4a81c9})=>{const _0x5e2ad0=_0x5134f8,{reply:_0x50ceb4}=this[_0x5e2ad0(0x282)](_0x30c15b),_0x219d10=_0x50ceb4[_0x5e2ad0(0x306)]({'showDiff':_0x4a81c9});await this[_0x5e2ad0(0x256)][_0x5e2ad0(0x2c0)]({'id':_0x50ceb4['id'],'parts':_0x219d10,'renderingStrategy':_0x5e2ad0(0x2fe)});}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x256)],_0x5134f8(0x217),(_0x2e7c33,{replyId:_0x3f8b77,partIndex:_0x228ad4})=>{const _0x4037a4=_0x5134f8;this[_0x4037a4(0x295)]({'replyId':_0x3f8b77,'partIndex':_0x228ad4}),this[_0x4037a4(0x205)][_0x4037a4(0x265)](_0x4037a4(0x2e8));}),this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x214)](_0x5134f8(0x2a0))&&(this[_0x5134f8(0x2b3)]=this[_0x5134f8(0x316)][_0x5134f8(0x1f5)][_0x5134f8(0x29d)](_0x5134f8(0x2a0)),this[_0x5134f8(0x1e2)](_0x5134f8(0x31a),!0x1),this[_0x5134f8(0x2b3)][_0x5134f8(0x232)](_0x5134f8(0x1dc))['to'](this,_0x5134f8(0x31a)),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x2b0),()=>{const _0x11d0a7=_0x5134f8,{replyId:_0x205007,partIndex:_0x154c70}=this[_0x11d0a7(0x1f7)];this[_0x11d0a7(0x31a)]=!this[_0x11d0a7(0x31a)];const {reply:_0x3c362d}=this[_0x11d0a7(0x282)](_0x205007),_0x122c6d=_0x3c362d[_0x11d0a7(0x306)]({'showDiff':this[_0x11d0a7(0x31a)],'groupIndex':_0x154c70});this[_0x11d0a7(0x2b3)][_0x11d0a7(0x1bc)]({'part':_0x122c6d[0x0],'renderingStrategy':_0x11d0a7(0x2fe),'keepErrors':!0x0});}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x1e7),()=>{const _0x562a68=_0x5134f8,{replyId:_0x3d72e6,partIndex:_0x33eb9e}=this[_0x562a68(0x1f7)];this[_0x562a68(0x2f7)]({'replyId':_0x3d72e6,'partIndex':_0x33eb9e}),this[_0x562a68(0x2b3)][_0x562a68(0x25b)](_0x562a68(0x2c8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x194),()=>{const _0x2c9b9c=_0x5134f8,{replyId:_0x5a0299,partIndex:_0x1104eb}=this[_0x2c9b9c(0x1f7)];this[_0x2c9b9c(0x239)]({'replyId':_0x5a0299,'partIndex':_0x1104eb}),this[_0x2c9b9c(0x2b3)][_0x2c9b9c(0x25b)](_0x2c9b9c(0x2c8));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x217),()=>{const _0x3d7c54=_0x5134f8,{replyId:_0x4c80ad,partIndex:_0x3f2de8}=this[_0x3d7c54(0x1f7)];this[_0x3d7c54(0x295)]({'replyId':_0x4c80ad,'partIndex':_0x3f2de8}),this[_0x3d7c54(0x2b3)][_0x3d7c54(0x25b)](_0x3d7c54(0x28b));}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x1f4),()=>{const _0x17bd62=_0x5134f8,{replyId:_0x3c044b,partIndex:_0x59970b}=this[_0x17bd62(0x1f7)],_0x5275f0=this[_0x17bd62(0x236)](_0x3c044b,_0x59970b,_0x17bd62(0x2af));null!==_0x5275f0&&this[_0x17bd62(0x1c4)](_0x3c044b,_0x5275f0);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x25d),()=>{const _0x7ba9f=_0x5134f8,{replyId:_0x34dfae,partIndex:_0x342356}=this[_0x7ba9f(0x1f7)],_0x635678=this[_0x7ba9f(0x236)](_0x34dfae,_0x342356,_0x7ba9f(0x1d8));null!==_0x635678&&this[_0x7ba9f(0x1c4)](_0x34dfae,_0x635678);}),this[_0x5134f8(0x2c1)](this[_0x5134f8(0x2b3)],_0x5134f8(0x2d3),(_0x1a8370,{id:_0x5bae2a})=>{const _0x533204=_0x5134f8;if(_0x533204(0x1ad)!==_0x5bae2a)return;const {replyId:_0x99be5b,partIndex:_0x2e5aef}=this[_0x533204(0x1f7)];this[_0x533204(0x1f7)]=null,this[_0x533204(0x256)][_0x533204(0x318)]({'id':_0x99be5b,'index':_0x2e5aef,'isActive':!0x1});}));}async[_0x549e58(0x292)](){const _0x263c23=_0x549e58;this[_0x263c23(0x316)]instanceof _0x49cd1c?this[_0x263c23(0x1cc)](this[_0x263c23(0x316)]):this[_0x263c23(0x2c1)](this[_0x263c23(0x316)][_0x263c23(0x2bb)],_0x263c23(0x28e),(_0x4ff037,_0x3b9ba4)=>{const _0x1a5651=_0x263c23;_0x3b9ba4['on'](_0x1a5651(0x26d),()=>{const _0x4e3fa9=_0x1a5651;this[_0x4e3fa9(0x1cc)](_0x3b9ba4);});});const _0x21c16c=this[_0x263c23(0x316)][_0x263c23(0x2ec)][_0x263c23(0x29d)](_0x263c23(0x1e4));let _0x36216d=_0x21c16c;if(_0x263c23(0x221)!=_0x21c16c||(_0x36216d=await this[_0x263c23(0x1c1)](),_0x36216d))return _0x263c23(0x2d8)==_0x36216d?this[_0x263c23(0x249)]():this[_0x263c23(0x247)](_0x36216d);}async[_0x549e58(0x2a1)](){const _0x218160=_0x549e58;return await this[_0x218160(0x301)](),this[_0x218160(0x2b9)][_0x218160(0x2e1)](),super[_0x218160(0x2a1)]();}[_0x549e58(0x239)](_0x2b8829){const _0x590b58=_0x549e58,_0x482193=_0x4ee1ac(this[_0x590b58(0x316)]);if(!_0x482193[_0x590b58(0x1f5)][_0x590b58(0x214)](_0x590b58(0x281)))throw new _0x4463ae(_0x590b58(0x2c2),null);const _0x4c8d19=this[_0x590b58(0x316)][_0x590b58(0x1f5)][_0x590b58(0x29d)](_0x590b58(0x1cb)),{reply:_0x1b0e67,interaction:_0x41f93e}=this[_0x590b58(0x282)](_0x2b8829[_0x590b58(0x1c6)]),_0x3143c5=this[_0x590b58(0x22e)](_0x2b8829[_0x590b58(0x1c6)],_0x2b8829[_0x590b58(0x2d6)]),_0xe42fbf=void 0x0!==_0x2b8829[_0x590b58(0x2d6)]?[_0x1b0e67[_0x590b58(0x1f8)][_0x2b8829[_0x590b58(0x2d6)]]]:_0x1b0e67[_0x590b58(0x1f8)][_0x590b58(0x275)](_0x5dce58=>_0x590b58(0x1f6)==_0x5dce58[_0x590b58(0x2d7)]),_0x58a113=_0xe42fbf[_0x590b58(0x222)](_0x1042f6=>_0x1b0e67[_0x590b58(0x1f8)][_0x590b58(0x2a7)](_0x1042f6));if(!_0x3143c5||_0x590b58(0x1a9)==_0x3143c5[_0x590b58(0x204)][_0x590b58(0x2b8)][_0x590b58(0x274)])return void _0x58a113[_0x590b58(0x291)](_0x3b9891=>_0x1b0e67[_0x590b58(0x28f)](_0x3b9891,_0x590b58(0x276)));_0x58a113[_0x590b58(0x291)](_0x34872c=>_0x1b0e67[_0x590b58(0x28f)](_0x34872c,_0x590b58(0x2c8)));const _0x1f6b0a=_0x1f974c({'editor':_0x482193,'reply':_0x1b0e67,'interaction':_0x41f93e,'groups':_0xe42fbf,'transform':!0x0,'documentCompare':_0x4c8d19,'documentCompareOptions':{'anchor':_0x590b58(0x216),'markDeletions':!0x0}});let _0x55b8bd;_0x3143c5&&this[_0x590b58(0x2db)](_0x3143c5[_0x590b58(0x204)]),_0x482193[_0x590b58(0x23c)][_0x590b58(0x2c4)](_0x30fcfd=>{const _0xd96f31=_0x590b58;_0x55b8bd=_0x30fcfd[_0xd96f31(0x191)],_0x482193[_0xd96f31(0x1f5)][_0xd96f31(0x29d)](_0xd96f31(0x212))[_0xd96f31(0x207)](_0x1f6b0a),this[_0xd96f31(0x205)][_0xd96f31(0x265)](_0xd96f31(0x2e8));}),this[_0x590b58(0x26a)][_0x590b58(0x1e2)](_0x55b8bd,{'interactionId':_0x41f93e['id'],'replyId':_0x1b0e67['id'],'indexes':_0x58a113[_0x590b58(0x271)]()}),this[_0x590b58(0x29a)](_0x1b0e67);}[_0x549e58(0x2f7)](_0x8d5d4b){const _0x12acd8=_0x549e58,_0x503fcc=_0x4ee1ac(this[_0x12acd8(0x316)]),_0x2e4365=this[_0x12acd8(0x316)][_0x12acd8(0x1f5)][_0x12acd8(0x29d)](_0x181444),{reply:_0x5d16cd,interaction:_0x362640}=this[_0x12acd8(0x282)](_0x8d5d4b[_0x12acd8(0x1c6)]),_0x5ade61=this[_0x12acd8(0x22e)](_0x8d5d4b[_0x12acd8(0x1c6)],_0x8d5d4b[_0x12acd8(0x2d6)]),_0x2500d2=void 0x0!==_0x8d5d4b[_0x12acd8(0x2d6)]?[_0x5d16cd[_0x12acd8(0x1f8)][_0x8d5d4b[_0x12acd8(0x2d6)]]]:_0x5d16cd[_0x12acd8(0x1f8)][_0x12acd8(0x275)](_0x53ca91=>_0x12acd8(0x1f6)==_0x53ca91[_0x12acd8(0x2d7)]),_0x3e416d=_0x2500d2[_0x12acd8(0x222)](_0x523923=>_0x5d16cd[_0x12acd8(0x1f8)][_0x12acd8(0x2a7)](_0x523923));if(!_0x5ade61||_0x12acd8(0x1a9)==_0x5ade61[_0x12acd8(0x204)][_0x12acd8(0x2b8)][_0x12acd8(0x274)])return void _0x3e416d[_0x12acd8(0x291)](_0x356011=>_0x5d16cd[_0x12acd8(0x28f)](_0x356011,_0x12acd8(0x276)));_0x3e416d[_0x12acd8(0x291)](_0x3d7eb5=>_0x5d16cd[_0x12acd8(0x28f)](_0x3d7eb5,_0x12acd8(0x2c8)));const _0x22f46c=_0x1f974c({'editor':_0x503fcc,'reply':_0x5d16cd,'interaction':_0x362640,'groups':_0x2500d2,'transform':!0x0,'documentCompare':_0x2e4365,'documentCompareOptions':{'anchor':_0x12acd8(0x216),'markDeletions':!0x1}});let _0x51028c;_0x5ade61&&this[_0x12acd8(0x2db)](_0x5ade61[_0x12acd8(0x204)]),_0x503fcc[_0x12acd8(0x23c)][_0x12acd8(0x2c4)](_0x2d395f=>{const _0x40810e=_0x12acd8;_0x51028c=_0x2d395f[_0x40810e(0x191)];for(const _0x3d095f of _0x22f46c)_0x3d095f[_0x40810e(0x2c6)]=_0x503fcc[_0x40810e(0x23c)][_0x40810e(0x219)][_0x40810e(0x1a2)],_0x595e85(_0x503fcc,_0x3d095f),_0x2d395f[_0x40810e(0x191)][_0x40810e(0x24c)](_0x3d095f),_0x503fcc[_0x40810e(0x23c)][_0x40810e(0x1ac)](_0x3d095f);}),this[_0x12acd8(0x26a)][_0x12acd8(0x1e2)](_0x51028c,{'interactionId':_0x362640['id'],'replyId':_0x5d16cd['id'],'indexes':_0x3e416d[_0x12acd8(0x271)]()}),this[_0x12acd8(0x29a)](_0x5d16cd);}[_0x549e58(0x295)](_0x3111cf){const _0x310318=_0x549e58,{reply:_0x4bc04e}=this[_0x310318(0x282)](_0x3111cf[_0x310318(0x1c6)]);_0x4bc04e[_0x310318(0x28f)](_0x3111cf[_0x310318(0x2d6)],_0x310318(0x28b));}[_0x549e58(0x1c4)](_0x195cb9,_0x1bf2cc){const _0x567e19=_0x549e58;if(!this[_0x567e19(0x2b3)])return;const {reply:_0x549369}=this[_0x567e19(0x282)](_0x195cb9),_0x31f506=_0x549369[_0x567e19(0x306)]({'showDiff':this[_0x567e19(0x31a)]});let _0x23f16,_0x399427;if(void 0x0!==_0x1bf2cc?(_0x399427=_0x31f506[_0x567e19(0x30b)](_0x171965=>_0x171965[_0x567e19(0x297)]==_0x1bf2cc),_0x23f16=_0x399427?.[_0x567e19(0x297)]):(_0x399427=_0x31f506[0x0],_0x23f16=_0x399427[_0x567e19(0x297)]),this[_0x567e19(0x1f7)]?.[_0x567e19(0x1c6)]==_0x195cb9&&this[_0x567e19(0x1f7)]?.[_0x567e19(0x2d6)]==_0x23f16)return;const _0x27df77=this[_0x567e19(0x2b5)](_0x195cb9,_0x549369,_0x399427);if(!_0x27df77)return void this[_0x567e19(0x2b3)][_0x567e19(0x238)]();this[_0x567e19(0x1f7)]={'replyId':_0x195cb9,'partIndex':_0x23f16},this[_0x567e19(0x2db)](_0x27df77,!0x0);const _0x36e4e5=this[_0x567e19(0x236)](_0x195cb9,_0x23f16,_0x567e19(0x2af));this[_0x567e19(0x2b3)][_0x567e19(0x1bc)]({'part':_0x399427,'renderingStrategy':_0x567e19(0x2fe)}),this[_0x567e19(0x2b3)][_0x567e19(0x1b0)]({'index':_0x23f16,'title':_0x4b3662(this[_0x567e19(0x316)][_0x567e19(0x197)],_0x567e19(0x29e),(_0x23f16+0x1)[_0x567e19(0x1b5)]()),'showRotator':null!==_0x36e4e5,'ranges':[_0x27df77],'areActionsDisabled':_0x549369[_0x567e19(0x27e)]}),this[_0x567e19(0x2b3)][_0x567e19(0x25b)](_0x567e19(0x1f6)),this[_0x567e19(0x256)][_0x567e19(0x311)](_0x195cb9,_0x23f16),this[_0x567e19(0x256)][_0x567e19(0x318)]({'id':_0x195cb9,'index':_0x23f16,'isActive':!0x0});}[_0x549e58(0x236)](_0x5a7af1,_0x9b722b,_0x43b5e1){const _0x32f5db=_0x549e58,{reply:_0x1c906f}=this[_0x32f5db(0x282)](_0x5a7af1),_0x55baa4=_0x1c906f[_0x32f5db(0x306)]({'showDiff':this[_0x32f5db(0x31a)]});if(0x1==_0x55baa4[_0x32f5db(0x251)])return null;const _0x11c0fb=_0x55baa4[_0x32f5db(0x19c)](_0x4790a9=>_0x4790a9[_0x32f5db(0x297)]==_0x9b722b),_0x44b1e0=_0x32f5db(0x2af)==_0x43b5e1?0x1:-0x1;let _0x522e08=_0x55baa4['at']((_0x11c0fb+_0x44b1e0)%_0x55baa4[_0x32f5db(0x251)])[_0x32f5db(0x297)],_0x5b60a3=_0x55baa4[_0x522e08];for(;!this[_0x32f5db(0x2b5)](_0x5a7af1,_0x1c906f,_0x5b60a3);){if(_0x522e08=_0x55baa4['at']((_0x522e08+_0x44b1e0)%_0x55baa4[_0x32f5db(0x251)])[_0x32f5db(0x297)],_0x522e08===_0x11c0fb)return null;_0x5b60a3=_0x55baa4[_0x522e08];}return _0x522e08;}[_0x549e58(0x2b5)](_0x37a016,_0x792f23,_0xd6a4a0){const _0x29a2e6=_0x549e58,_0x294d3b=_0x792f23[_0x29a2e6(0x1f8)];if(!_0xd6a4a0[_0x29a2e6(0x269)])return null;const _0x5aec53=_0x294d3b[_0x29a2e6(0x30b)](_0x564782=>_0x564782[_0x29a2e6(0x297)]==_0xd6a4a0[_0x29a2e6(0x297)]);if(_0x29a2e6(0x1f6)!==_0x5aec53?.[_0x29a2e6(0x2d7)])return null;const _0x151c82=this[_0x29a2e6(0x22e)](_0x37a016,_0xd6a4a0[_0x29a2e6(0x297)]);if(!_0x151c82)return null;const {range:_0x4b3ebe,currentIndex:_0x387838}=_0x151c82;return _0x29a2e6(0x1a9)==_0x4b3ebe[_0x29a2e6(0x2b8)][_0x29a2e6(0x274)]?(_0x792f23[_0x29a2e6(0x28f)](_0x387838,_0x29a2e6(0x276)),null):_0x151c82[_0x29a2e6(0x204)];}[_0x549e58(0x22e)](_0x5a65b8,_0x59c8d7){const _0x3efdaf=_0x549e58,_0x28531e=_0x4ee1ac(this[_0x3efdaf(0x316)]),{reply:_0x323c7e,interaction:_0x3788cb}=this[_0x3efdaf(0x282)](_0x5a65b8),_0x4106bb=_0x323c7e[_0x3efdaf(0x1f8)][_0x3efdaf(0x275)](_0x5ece1a=>_0x3efdaf(0x1f6)==_0x5ece1a[_0x3efdaf(0x2d7)]),_0x572d9=_0x4106bb[_0x3efdaf(0x222)](_0x4908f6=>_0x323c7e[_0x3efdaf(0x1f8)][_0x3efdaf(0x2a7)](_0x4908f6));void 0x0===_0x59c8d7&&(_0x59c8d7=_0x572d9[0x0]);const _0x11cf25=_0x572d9[_0x3efdaf(0x2a7)](_0x59c8d7);if(-0x1==_0x11cf25)return null;const _0x3bb4d2=_0x4106bb[_0x11cf25],_0x49701e=new _0x5b8bb4([]),_0x4f3731=new _0x5b8bb4([]);for(const _0x2ca06f of _0x3bb4d2[_0x3efdaf(0x196)])if(_0x3efdaf(0x305)!=_0x2ca06f[_0x3efdaf(0x195)]&&_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x2ca06f[_0x3efdaf(0x28a)][_0x3efdaf(0x2cc)](!0x0)),_0x3efdaf(0x2d8)!=_0x2ca06f[_0x3efdaf(0x195)]){const _0x3cf0bc=_0x2a7a53(_0x5cc7fe=>_0x51229b(_0x5cc7fe,_0x3efdaf(0x218))==_0x2ca06f['id'],_0x323c7e[_0x3efdaf(0x2ac)],!0x0);_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x3cf0bc[_0x3efdaf(0x2cc)](!0x0));}if(0x0==_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x251)]){if(_0x3bb4d2[_0x3efdaf(0x196)][0x0][_0x3efdaf(0x202)]){const _0x29c15a=_0x1d2477(_0x3efdaf(0x218),_0x3bb4d2[_0x3efdaf(0x196)][0x0][_0x3efdaf(0x202)],_0x323c7e[_0x3efdaf(0x2ac)]);_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x1a0)](_0x29c15a[_0x3efdaf(0x2cc)](!0x0)),_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x1a0)](_0x29c15a[_0x3efdaf(0x2cc)](!0x0)),_0x29c15a[_0x3efdaf(0x2f8)]&&(_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x29c15a[_0x3efdaf(0x2f8)][_0x3efdaf(0x2cc)](!0x0)),_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x29c15a[_0x3efdaf(0x2f8)][_0x3efdaf(0x2cc)](!0x0)));}else{const _0x2513e2=_0x323c7e[_0x3efdaf(0x2ac)][_0x3efdaf(0x21c)][0x0];if(!_0x2513e2)return null;_0x49701e[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x2513e2[_0x3efdaf(0x2cc)](!0x0)),_0x4f3731[_0x3efdaf(0x21c)][_0x3efdaf(0x2f0)](_0x2513e2[_0x3efdaf(0x2cc)](!0x0));}}const _0x30d4e5=_0x3788cb[_0x3efdaf(0x2bf)](),_0x537a7e=_0x28531e[_0x3efdaf(0x273)][_0x3efdaf(0x226)](_0x30d4e5[_0x3efdaf(0x302)]),_0x1295fa=_0x45c6b5(_0x49701e),_0x5e2312=_0x28531e[_0x3efdaf(0x273)][_0x3efdaf(0x226)](_0x1295fa),_0x21b297=_0x28531e[_0x3efdaf(0x273)][_0x3efdaf(0x226)](_0x1295fa),_0x33a1e6=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x30c)](_0x5e2312,0x0),_0x49285c=_0x45c6b5(_0x4f3731),_0x228b8b={'anchor':_0x33a1e6,'markDeletions':!0x1},_0x5de7f6=_0x28531e[_0x3efdaf(0x1f5)][_0x3efdaf(0x29d)](_0x181444)[_0x3efdaf(0x1a8)](_0x1295fa,_0x49285c,_0x228b8b)[_0x3efdaf(0x2f5)]();if(!_0x5de7f6[_0x3efdaf(0x251)])return null;_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x2c4)](_0xf4c8c6=>{const _0x17f887=_0x3efdaf;for(const _0xb99f8a of _0x5de7f6)if(_0x17f887(0x27c)==_0xb99f8a[_0x17f887(0x195)]){const _0x2ca690=_0xb99f8a[_0x17f887(0x223)],_0x462ca6=_0xb99f8a[_0x17f887(0x246)],_0x2dc69d=new _0x467c1c(_0x2ca690,_0x462ca6);_0xf4c8c6[_0x17f887(0x191)][_0x17f887(0x24c)](_0x2dc69d),_0x28531e[_0x17f887(0x23c)][_0x17f887(0x1ac)](_0x2dc69d);}else _0x17f887(0x266)!==_0xb99f8a[_0x17f887(0x195)]&&(_0xb99f8a[_0x17f887(0x2c6)]=null,_0xb99f8a[_0x17f887(0x313)]=!0x1,_0xf4c8c6[_0x17f887(0x191)][_0x17f887(0x24c)](_0xb99f8a),_0x28531e[_0x17f887(0x23c)][_0x17f887(0x1ac)](_0xb99f8a));});const _0x4a2b63=_0x515b44(_0x28531e,_0x5de7f6,_0x5e2312);_0x3cc810(_0x28531e[_0x3efdaf(0x23c)],_0x4a2b63);const _0x3b55ef=_0x4a2b63[_0x3efdaf(0x24a)]()[_0x3efdaf(0x203)][_0x3efdaf(0x293)][_0x3efdaf(0x271)](),_0x5d6150=_0x4a2b63[_0x3efdaf(0x24a)]()[_0x3efdaf(0x27b)][_0x3efdaf(0x293)][_0x3efdaf(0x271)](),_0x3306c4=[];let _0x8e6236=_0x5e2312,_0xb05d9a=_0x21b297;for(let _0x298933=0x0;_0x298933<_0x5d6150[_0x3efdaf(0x251)];_0x298933++){const _0x3f68f1=_0x8e6236[_0x3efdaf(0x1c3)]-_0x5d6150[_0x298933];_0x3306c4[_0x298933]=_0xb05d9a[_0x3efdaf(0x1c3)]-_0x3f68f1,_0x8e6236=_0x8e6236[_0x3efdaf(0x1c7)](_0x5d6150[_0x298933]),_0xb05d9a=_0xb05d9a[_0x3efdaf(0x1c7)](_0x3306c4[_0x298933]);}const _0x5d3a53=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x2e2)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x21b297,_0x3b55ef),_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x21b297,_0x3306c4)),_0x434555=_0x21b297[_0x3efdaf(0x2ca)](0x0)[_0x3efdaf(0x192)](_0x5a92da),_0x952069=Array[_0x3efdaf(0x1ff)](_0x537a7e[_0x3efdaf(0x2e9)]())[_0x3efdaf(0x30b)](_0x1f9dca=>_0x1f9dca[_0x3efdaf(0x192)](_0x5a92da)==_0x434555)[_0x3efdaf(0x24e)](),_0x25d3a1=_0x5d3a53[_0x3efdaf(0x203)][_0x3efdaf(0x293)][_0x3efdaf(0x271)](),_0x7b6fe0=_0x5d3a53[_0x3efdaf(0x27b)][_0x3efdaf(0x293)][_0x3efdaf(0x271)]();_0x25d3a1[0x0]=_0x952069[0x0]+_0x25d3a1[0x0],_0x7b6fe0[0x0]=_0x952069[0x0]+_0x7b6fe0[0x0];let _0x32182d=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x2e2)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x219)][_0x3efdaf(0x304)](),_0x25d3a1),_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x208)](_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x219)][_0x3efdaf(0x304)](),_0x7b6fe0));const _0xcf1977=_0x28531e[_0x3efdaf(0x23c)][_0x3efdaf(0x219)][_0x3efdaf(0x2ff)][_0x3efdaf(0x2f5)](_0x30d4e5[_0x3efdaf(0x1a2)]);for(const _0x219e67 of _0xcf1977)_0x32182d=_0x4a1aab[_0x3efdaf(0x19a)](_0x32182d[_0x3efdaf(0x23d)](_0x219e67));return{'range':_0x32182d,'currentIndex':_0x59c8d7};}[_0x549e58(0x1cc)](_0x5f23f1){const _0x2b90cf=_0x549e58;if(!_0x5f23f1[_0x2b90cf(0x1f5)][_0x2b90cf(0x214)](_0x2b90cf(0x1aa)))return;const _0x44ed83=_0x5f23f1[_0x2b90cf(0x259)][_0x2b90cf(0x29d)](_0x2b90cf(0x1d7)),_0x597e8a=_0x5f23f1[_0x2b90cf(0x259)][_0x2b90cf(0x29d)](_0x2b90cf(0x1d1));this[_0x2b90cf(0x2c1)](_0x44ed83,_0x2b90cf(0x2da),(_0x2df795,_0x17614b,_0x7954d3)=>{const _0x4e19a2=_0x2b90cf,_0x47141c=this[_0x4e19a2(0x26a)][_0x4e19a2(0x29d)](_0x17614b);if(!_0x47141c)return;const _0x5a3c88=this[_0x4e19a2(0x1a3)][_0x4e19a2(0x1f0)](_0x47141c[_0x4e19a2(0x30a)])[_0x4e19a2(0x25e)](_0x47141c[_0x4e19a2(0x1c6)]);_0x47141c[_0x4e19a2(0x2a5)][_0x4e19a2(0x291)](_0x374649=>_0x5a3c88[_0x4e19a2(0x28f)](_0x374649,_0x4e19a2(0x1f6))),this[_0x4e19a2(0x26a)][_0x4e19a2(0x21b)](_0x17614b),this[_0x4e19a2(0x26a)][_0x4e19a2(0x1e2)](_0x7954d3,_0x47141c);}),this[_0x2b90cf(0x2c1)](_0x597e8a,_0x2b90cf(0x2da),(_0x11b710,_0x45971b,_0x2f652f)=>{const _0x1664b1=_0x2b90cf,_0x2b17f8=this[_0x1664b1(0x26a)][_0x1664b1(0x29d)](_0x45971b);if(!_0x2b17f8)return;const _0x55ef1d=this[_0x1664b1(0x1a3)][_0x1664b1(0x1f0)](_0x2b17f8[_0x1664b1(0x30a)])[_0x1664b1(0x25e)](_0x2b17f8[_0x1664b1(0x1c6)]);_0x2b17f8[_0x1664b1(0x2a5)][_0x1664b1(0x291)](_0x41c697=>_0x55ef1d[_0x1664b1(0x28f)](_0x41c697,_0x1664b1(0x2c8))),this[_0x1664b1(0x26a)][_0x1664b1(0x21b)](_0x45971b),this[_0x1664b1(0x26a)][_0x1664b1(0x1e2)](_0x2f652f,_0x2b17f8);});}async[_0x549e58(0x247)](_0xba540b){const _0x39f4da=_0x549e58;this[_0x39f4da(0x316)][_0x39f4da(0x1f5)][_0x39f4da(0x214)](_0x39f4da(0x2a0))&&this[_0x39f4da(0x316)][_0x39f4da(0x1f5)][_0x39f4da(0x29d)](_0x39f4da(0x2a0))[_0x39f4da(0x238)](),(this[_0x39f4da(0x316)][_0x39f4da(0x1f5)][_0x39f4da(0x29d)](_0xf3132e)[_0x39f4da(0x27f)][_0x39f4da(0x300)](_0x39f4da(0x2b7)),this[_0x39f4da(0x256)][_0x39f4da(0x23b)](_0x39f4da(0x2fe)),this[_0x39f4da(0x256)][_0x39f4da(0x240)](!0x0),await this[_0x39f4da(0x301)]());try{await this[_0x39f4da(0x283)][_0x39f4da(0x1b2)](_0xba540b)[_0x39f4da(0x2fc)](),await this[_0x39f4da(0x249)](_0xba540b),this[_0x39f4da(0x2d0)]('\x20'),await this[_0x39f4da(0x1a3)][_0x39f4da(0x201)](_0xba540b,this[_0x39f4da(0x205)][_0x39f4da(0x278)]),this[_0x39f4da(0x1a3)][_0x39f4da(0x26f)]()&&this[_0x39f4da(0x1e5)]();}catch(_0x1edf7f){this[_0x39f4da(0x256)][_0x39f4da(0x303)]({'errorMessage':_0x4b3662(this[_0x39f4da(0x316)][_0x39f4da(0x197)],_0x39f4da(0x210)),'id':_0xba540b}),this[_0x39f4da(0x2a3)](new _0x4463ae(_0x39f4da(0x20f),this,{'error':_0x1edf7f}));}finally{this[_0x39f4da(0x256)][_0x39f4da(0x211)](),this[_0x39f4da(0x256)][_0x39f4da(0x23b)](_0x39f4da(0x2d4)),this[_0x39f4da(0x256)][_0x39f4da(0x240)](!0x1);}}async[_0x549e58(0x1c1)](){const _0x1def88=_0x549e58,_0x29fdb9=this[_0x1def88(0x283)][_0x1def88(0x31b)](this[_0x1def88(0x26e)](),{'limit':0x1,'sortBy':_0x1def88(0x286)});try{const _0x819eda=await _0x29fdb9[_0x1def88(0x1fd)]();return _0x819eda[_0x1def88(0x251)]?_0x819eda[0x0]['id']:_0x1def88(0x2d8);}catch(_0x547bdb){return this[_0x1def88(0x256)][_0x1def88(0x303)]({'errorMessage':_0x4b3662(this[_0x1def88(0x316)][_0x1def88(0x197)],_0x1def88(0x210)),'id':_0x327016()}),this[_0x1def88(0x2a3)](new _0x4463ae(_0x1def88(0x1ab),this,{'error':_0x547bdb})),this[_0x1def88(0x256)][_0x1def88(0x240)](!0x1),this[_0x1def88(0x256)][_0x1def88(0x1d5)](),null;}}[_0x549e58(0x21a)](_0x171605){const _0x5468f2=_0x549e58;this[_0x5468f2(0x1a3)]['id']===_0x171605&&this[_0x5468f2(0x249)]();}[_0x549e58(0x1e5)](){const _0x4dec69=_0x549e58;this[_0x4dec69(0x1a3)]?.[_0x4dec69(0x20c)](_0x4b3662(this[_0x4dec69(0x316)][_0x4dec69(0x197)],_0x4dec69(0x245)));}async[_0x549e58(0x19d)](){const _0x1b6b38=_0x549e58,_0x52a9eb=this[_0x1b6b38(0x205)][_0x1b6b38(0x2e0)]();this[_0x1b6b38(0x1a3)]?.[_0x1b6b38(0x1b4)](_0x52a9eb),this[_0x1b6b38(0x1e5)]();}[_0x549e58(0x2f9)](){const _0x24e882=_0x549e58;this[_0x24e882(0x1a3)]?.[_0x24e882(0x235)]();}[_0x549e58(0x319)](){const _0x1dc4d9=_0x549e58;this[_0x1dc4d9(0x256)][_0x1dc4d9(0x319)]();}async[_0x549e58(0x24b)](){const _0x271550=_0x549e58;await this[_0x271550(0x249)]();}async[_0x549e58(0x1d2)]({message:_0x2f5c85,attributes:_0x2efcc1}){const _0x2c9b9a=_0x549e58;await this[_0x2c9b9a(0x252)]({'userMessage':_0x2f5c85,'attributes':_0x2efcc1});}[_0x549e58(0x26e)](){const _0x1f8742=_0x549e58,_0x2a0c82=this[_0x1f8742(0x316)][_0x1f8742(0x2ec)][_0x1f8742(0x29d)](_0x1f8742(0x260));if(!_0x2a0c82)throw new _0x4463ae(_0x1f8742(0x272),this);return _0x2a0c82;}async[_0x549e58(0x249)](_0x11751e){const _0x3f293e=_0x549e58;try{this[_0x3f293e(0x256)][_0x3f293e(0x233)](),await this[_0x3f293e(0x241)](_0x11751e);}catch(_0x12213c){this[_0x3f293e(0x256)][_0x3f293e(0x303)]({'errorMessage':_0x4b3662(this[_0x3f293e(0x316)][_0x3f293e(0x197)],_0x3f293e(0x294)),'id':_0x11751e||_0x327016()}),console[_0x3f293e(0x288)](_0x12213c),this[_0x3f293e(0x1a3)]=void 0x0,this[_0x3f293e(0x256)][_0x3f293e(0x1d5)]();}}async[_0x549e58(0x241)](_0x2e21e8){const _0x23468e=_0x549e58;let _0x53e4cc;this[_0x23468e(0x316)][_0x23468e(0x1f5)][_0x23468e(0x214)](_0x23468e(0x2a0))&&this[_0x23468e(0x316)][_0x23468e(0x1f5)][_0x23468e(0x29d)](_0x23468e(0x2a0))[_0x23468e(0x238)](),_0x2e21e8||!this[_0x23468e(0x1a3)]?_0x53e4cc=this[_0x23468e(0x316)][_0x23468e(0x2ec)][_0x23468e(0x29d)](_0x23468e(0x199)):this[_0x23468e(0x256)][_0x23468e(0x215)]&&(_0x53e4cc=this[_0x23468e(0x1a3)][_0x23468e(0x1b7)]['id']),await this[_0x23468e(0x301)]();const _0x1cdb76=this[_0x23468e(0x26e)](),_0x1bf4be=_0x2e21e8||_0x327016();this[_0x23468e(0x1a3)]=new _0x3c92d0({'connector':this[_0x23468e(0x283)],'chatModels':this[_0x23468e(0x2ae)],'selectedModelId':_0x53e4cc,'conversationId':_0x1bf4be,'group':_0x1cdb76,'getEditor':()=>_0x4ee1ac(this[_0x23468e(0x316)]),'isFromHistory':!!_0x2e21e8}),this[_0x23468e(0x1a3)][_0x23468e(0x2c7)](_0x23468e(0x200),_0x23468e(0x1b3))['to'](this),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x25a),(_0x37a61c,_0x37e815)=>{const _0x2001ff=_0x23468e;this[_0x2001ff(0x256)][_0x2001ff(0x26b)](_0x37e815),this[_0x2001ff(0x256)][_0x2001ff(0x1c9)](),this[_0x2001ff(0x256)][_0x2001ff(0x206)](),this[_0x2001ff(0x256)][_0x2001ff(0x2be)](),_0x2e21e8||(this[_0x2001ff(0x256)][_0x2001ff(0x1e0)](),this[_0x2001ff(0x1e5)]());}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1fe),(_0x4d0709,_0x161ee7)=>{const _0x582e4d=_0x23468e;this[_0x582e4d(0x256)][_0x582e4d(0x30d)](_0x161ee7[_0x582e4d(0x2e3)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1d3),(_0x4419b2,_0x12fc01)=>{const _0xa3d7e0=_0x23468e;this[_0xa3d7e0(0x256)][_0xa3d7e0(0x277)](_0x12fc01);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x209),()=>{const _0xc57575=_0x23468e,_0x54ed27=this[_0xc57575(0x256)][_0xc57575(0x28c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0xc57575(0x256)][_0xc57575(0x1cd)](_0x54ed27);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1bf),()=>{const _0x23e538=_0x23468e,_0x2f1c09=this[_0x23e538(0x256)][_0x23e538(0x28c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x23e538(0x256)][_0x23e538(0x1cd)](_0x2f1c09);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x263),(_0x38cdc0,_0x5d646d)=>{const _0x409644=_0x23468e;this[_0x409644(0x256)][_0x409644(0x22b)](_0x5d646d,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2a6),(_0x17d5a5,_0x5c694b)=>{const _0x58aef4=_0x23468e;this[_0x58aef4(0x256)][_0x58aef4(0x22b)](_0x5c694b,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1b3),()=>{const _0x4f0867=_0x23468e;this[_0x4f0867(0x256)][_0x4f0867(0x1b9)]();}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2c3),async()=>{const _0x3c3d16=_0x23468e;await this[_0x3c3d16(0x256)][_0x3c3d16(0x225)]();}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1e8),(_0x2d24e7,_0xaa2970)=>{const _0x9dcbd5=_0x23468e;this[_0x9dcbd5(0x256)][_0x9dcbd5(0x2d1)](_0xaa2970['id']);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x26c),(_0x3da819,_0x39770d,_0xa3b591)=>{const _0x5e6cde=_0x23468e;this[_0x5e6cde(0x2d0)](_0x39770d,_0xa3b591);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2cb),(_0xe751d,_0xdf0653)=>{const _0x34aff6=_0x23468e;_0x34aff6(0x29c)===_0xdf0653[_0x34aff6(0x195)]?this[_0x34aff6(0x256)][_0x34aff6(0x1bb)](_0xdf0653):this[_0x34aff6(0x256)][_0x34aff6(0x1ce)](_0xdf0653);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x237),async(_0x122261,_0x162478)=>{const _0x87b7e7=_0x23468e;await this[_0x87b7e7(0x1ee)]({'reply':_0x162478});}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x254),(_0x1f20e0,{reply:_0x154d3e,index:_0x28ab83,state:_0x4d35c5})=>{const _0x24cde8=_0x23468e;this[_0x24cde8(0x256)][_0x24cde8(0x2ef)]({'id':_0x154d3e['id'],'index':_0x28ab83,'state':_0x4d35c5}),this[_0x24cde8(0x1f7)]?.[_0x24cde8(0x1c6)][_0x24cde8(0x299)](_0x154d3e['id'])&&this[_0x24cde8(0x1f7)]?.[_0x24cde8(0x2d6)]==_0x28ab83&&this[_0x24cde8(0x2b3)]?.[_0x24cde8(0x25b)](_0x4d35c5);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x20a),(_0x265087,_0x5cb021)=>{const _0x35c2a9=_0x23468e;if(this[_0x35c2a9(0x256)][_0x35c2a9(0x1d4)](_0x5cb021[_0x35c2a9(0x1ea)],_0x5cb021[_0x35c2a9(0x285)]),_0x35c2a9(0x2f3)===_0x5cb021[_0x35c2a9(0x1ea)][_0x35c2a9(0x195)]){const _0x12d95f=[..._0x4ee1ac(this[_0x35c2a9(0x316)])[_0x35c2a9(0x23c)][_0x35c2a9(0x219)][_0x35c2a9(0x2f3)][_0x35c2a9(0x1a5)]()];this[_0x35c2a9(0x205)][_0x35c2a9(0x1cf)](_0x12d95f,_0x35c2a9(0x2bd)+this[_0x35c2a9(0x1a3)]?.['id']);}}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x2c9),(_0x3ba5f8,_0x3da658)=>{const _0x284e4e=_0x23468e;this[_0x284e4e(0x256)][_0x284e4e(0x298)](_0x3da658[_0x284e4e(0x1df)]),_0x284e4e(0x198)==_0x3da658[_0x284e4e(0x1df)]&&this[_0x284e4e(0x2f9)](),_0x284e4e(0x2f3)===_0x3da658[_0x284e4e(0x195)]&&this[_0x284e4e(0x205)][_0x284e4e(0x265)](_0x284e4e(0x2bd)+this[_0x284e4e(0x1a3)]?.['id']);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1c2),(_0x17c800,_0x54af4f)=>{const _0x58f94e=_0x23468e;this[_0x58f94e(0x256)][_0x58f94e(0x1af)](_0x54af4f[_0x58f94e(0x1ea)][_0x58f94e(0x1df)],_0x54af4f[_0x58f94e(0x285)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x29f),(_0x4d42c9,_0x10b24b)=>{const _0x76caa2=_0x23468e;this[_0x76caa2(0x256)][_0x76caa2(0x2ab)](_0x10b24b[_0x76caa2(0x2e5)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1b1),(_0x175ba0,_0x2779fb)=>{const _0x4ff4f6=_0x23468e;this[_0x4ff4f6(0x256)][_0x4ff4f6(0x2fa)](_0x2779fb[_0x4ff4f6(0x1eb)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x1a7),(_0x544fcb,_0x58e969)=>{const _0x2d25f7=_0x23468e;this[_0x2d25f7(0x256)][_0x2d25f7(0x317)](_0x58e969[_0x2d25f7(0x1f1)],_0x58e969[_0x2d25f7(0x2d2)],_0x58e969[_0x2d25f7(0x2cd)],_0x58e969[_0x2d25f7(0x289)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x315),(_0x10bce1,_0x2e36cb)=>{const _0x3f1dcb=_0x23468e;this[_0x3f1dcb(0x256)][_0x3f1dcb(0x309)](_0x2e36cb[_0x3f1dcb(0x1f1)],_0x2e36cb[_0x3f1dcb(0x253)],_0x2e36cb[_0x3f1dcb(0x2b6)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x22c),(_0x182543,_0x1ced36)=>{const _0x19438f=_0x23468e;this[_0x19438f(0x256)][_0x19438f(0x2e6)](_0x1ced36);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x242),async(_0x5c28a9,_0x2c567e)=>{const _0x5a8bd6=_0x23468e,_0x4e8f28=(await this[_0x5a8bd6(0x2ae)][_0x5a8bd6(0x1ba)]())[_0x5a8bd6(0x30b)](_0x2fc143=>_0x2fc143['id']===_0x2c567e[_0x5a8bd6(0x1b7)]?.['id'])||null;this[_0x5a8bd6(0x256)][_0x5a8bd6(0x2aa)](_0x4e8f28,_0x2c567e[_0x5a8bd6(0x23f)]);}),this[_0x23468e(0x1a3)]['on'](_0x23468e(0x288),(_0x528136,{error:_0x3350dc,interactionId:_0x5af8d9,fileName:_0x21e311,url:_0x3e6167,sourceId:_0x206f11,sourceLabel:_0x414121})=>{const _0x5b103e=_0x23468e,_0x3042da=_0x5af8d9?_0x5af8d9+':'+_0x327016():_0x327016();_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1db))?this[_0x5b103e(0x256)][_0x5b103e(0x21e)]({'staticMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x1c5)),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1ab))||_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2e4))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x294)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1fb))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x24d),_0x21e311),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2ce))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x2eb),_0x3e6167),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2f6))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x27d)),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x310))?this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x244)),'id':_0x3042da}):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x19b))?(_0x206f11&&this[_0x5b103e(0x256)][_0x5b103e(0x1b6)](_0x206f11),this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x2b2),_0x414121||_0x5b103e(0x2d2)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x20b))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x22a)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x213))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x1d9)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x1ae))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x193)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x2b4))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x29b)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x22d))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x257)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):_0x3350dc[_0x5b103e(0x1bd)][_0x5b103e(0x1e1)](_0x5b103e(0x314))?(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x290)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc)):(this[_0x5b103e(0x256)][_0x5b103e(0x303)]({'errorMessage':_0x4b3662(this[_0x5b103e(0x316)][_0x5b103e(0x197)],_0x5b103e(0x307)),'id':_0x3042da}),this[_0x5b103e(0x2a3)](_0x3350dc));}),await this[_0x23468e(0x1a3)][_0x23468e(0x22f)](this[_0x23468e(0x316)][_0x23468e(0x2ec)][_0x23468e(0x29d)](_0x23468e(0x21d))),_0x2e21e8||await this[_0x23468e(0x1a3)][_0x23468e(0x203)]();}async[_0x549e58(0x252)]({userMessage:_0x466e6f,attributes:_0x21b2c2}){const _0x186a92=_0x549e58;if(!this[_0x186a92(0x1a3)])throw new _0x4463ae(_0x186a92(0x2f4));if(this[_0x186a92(0x1a3)][_0x186a92(0x262)]()){const _0x4b322e=await this[_0x186a92(0x205)][_0x186a92(0x231)]();await this[_0x186a92(0x1a3)][_0x186a92(0x1da)](_0x4b322e);}this[_0x186a92(0x1a3)]['id']&&this[_0x186a92(0x1a3)][_0x186a92(0x1e9)]&&await this[_0x186a92(0x1a3)][_0x186a92(0x2f2)]({'userMessage':_0x466e6f,'attributes':_0x21b2c2});}[_0x549e58(0x1e6)](){const _0x52b855=_0x549e58;console[_0x52b855(0x268)](_0x52b855(0x264));}[_0x549e58(0x2ea)](_0x46814e){const _0xc652c=_0x549e58;this[_0xc652c(0x256)][_0xc652c(0x1fa)](_0x46814e);}[_0x549e58(0x2a3)](_0x199568){const _0x5b80b9=_0x549e58;_0x5d0d75(_0x199568[_0x5b80b9(0x1bd)]);}[_0x549e58(0x24f)](_0x182cd4){const _0x2d4f67=_0x549e58;this[_0x2d4f67(0x1a3)]?.[_0x2d4f67(0x2a8)](_0x182cd4);}[_0x549e58(0x227)](){const _0x29c436=_0x549e58;this[_0x29c436(0x1a3)]?.[_0x29c436(0x229)]();}[_0x549e58(0x1c0)](){const _0x6cfd80=_0x549e58;this[_0x6cfd80(0x1a3)]?.[_0x6cfd80(0x28d)]();}[_0x549e58(0x282)](_0x4055e1){const _0x210623=_0x549e58,[_0x37c9e0,_0x5729bc]=_0x4055e1[_0x210623(0x19f)](':'),_0x14c550=this[_0x210623(0x1a3)][_0x210623(0x1f0)](_0x37c9e0),_0x4b5f51=_0x14c550[_0x210623(0x25e)](_0x5729bc);return{'interaction':_0x14c550,'reply':_0x4b5f51};}[_0x549e58(0x2db)](_0x4918b7,_0x281cfa=!0x1){const _0x557bb8=_0x549e58,_0x3c7b74=_0x4ee1ac(this[_0x557bb8(0x316)]),_0x44ff6c={'target':_0x3c7b74[_0x557bb8(0x1f3)][_0x557bb8(0x27f)][_0x557bb8(0x2ee)][_0x557bb8(0x23a)](_0x3c7b74[_0x557bb8(0x1f3)][_0x557bb8(0x1a1)][_0x557bb8(0x1f9)](_0x4918b7)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x281cfa};_0x281cfa&&(_0x44ff6c[_0x557bb8(0x2fd)]=!0x0),_0x2f1661(_0x44ff6c);}[_0x549e58(0x2d0)](_0x45d587,_0x3dee12=!0x1){const _0x40562b=_0x549e58;this[_0x40562b(0x256)][_0x40562b(0x26c)](_0x45d587||_0x4b3662(this[_0x40562b(0x316)][_0x40562b(0x197)],_0x40562b(0x2cf)),_0x3dee12);}async[_0x549e58(0x1ee)]({reply:_0x2a476a,renderingStrategy:_0x48f4bd}){const _0x9bd327=_0x549e58,{id:_0x120f15,interactionId:_0x4ba276,isDone:_0x32c155,type:_0x5629bb,parsedContent:_0x153661}=_0x2a476a,_0x488fb0=_0x4ba276+':'+_0x120f15;if(_0x9bd327(0x1ef)===_0x5629bb){const _0xc5012f=_0x2a476a[_0x9bd327(0x306)]({'showDiff':this[_0x9bd327(0x256)][_0x9bd327(0x1dc)]});await this[_0x9bd327(0x256)][_0x9bd327(0x2c0)]({'id':_0x488fb0,'parts':_0xc5012f,'renderingStrategy':_0x48f4bd,'isDone':_0x32c155});}else _0x9bd327(0x29c)===_0x5629bb&&await this[_0x9bd327(0x256)][_0x9bd327(0x2a9)]({'id':_0x488fb0,'parsedContent':_0x153661,'renderingStrategy':_0x48f4bd,'isDone':_0x32c155});_0x32c155&&_0x2a476a[_0x9bd327(0x279)][_0x9bd327(0x251)]>0x0&&this[_0x9bd327(0x256)][_0x9bd327(0x2e7)](_0x488fb0,_0x2a476a[_0x9bd327(0x279)]);}async[_0x549e58(0x301)](){const _0x55b142=_0x549e58,_0x2b02a0=this[_0x55b142(0x1a3)]?.[_0x55b142(0x284)];_0x2b02a0&&(_0x2b02a0[_0x55b142(0x2ed)](),this[_0x55b142(0x256)][_0x55b142(0x1f2)](_0x2b02a0));}async[_0x549e58(0x228)](){const _0x333cf2=_0x549e58,_0x15e8b5=this[_0x333cf2(0x1a3)]?.[_0x333cf2(0x284)];if(_0x15e8b5){for await(const _0x2722ec of _0x15e8b5[_0x333cf2(0x312)])await this[_0x333cf2(0x1ee)]({'reply':_0x2722ec,'renderingStrategy':_0x333cf2(0x2fe)});}}[_0x549e58(0x29a)](_0x1d2f58){const _0x52bda4=_0x549e58,_0x267ea1={'positiveCount':_0x1d2f58[_0x52bda4(0x1f8)][_0x52bda4(0x275)](_0x5709c7=>_0x52bda4(0x2c8)===_0x5709c7[_0x52bda4(0x2d7)])[_0x52bda4(0x251)],'totalCount':_0x1d2f58[_0x52bda4(0x1f8)][_0x52bda4(0x251)],'modificationId':_0x1d2f58['id']},_0x3198d5=this[_0x52bda4(0x1a3)][_0x52bda4(0x1f0)](_0x1d2f58[_0x52bda4(0x30a)])[_0x52bda4(0x30e)];_0x3198d5&&this[_0x52bda4(0x283)][_0x52bda4(0x287)](this[_0x52bda4(0x1a3)]['id'],_0x3198d5,_0x267ea1);}[_0x549e58(0x1ed)](_0x397437){const _0x1bef6f=_0x549e58;let _0x5a30ee=null,_0x1caacd=null;this['on'](_0x1bef6f(0x200),(_0x358507,_0x511a8f,_0x2081b8)=>{const _0x17ca84=_0x1bef6f;_0x2081b8['id']!==_0x5a30ee&&(_0x5a30ee=_0x2081b8['id'],_0x1caacd=this[_0x17ca84(0x250)](_0x2081b8)),_0x397437(_0x511a8f,_0x1caacd);});}[_0x549e58(0x250)](_0x2324f6){const _0x3cc9f6=_0x549e58,_0x24573f=this[_0x3cc9f6(0x256)],_0xf1c82d=()=>{const _0x49ca50=_0x3cc9f6;_0x2324f6[_0x49ca50(0x25c)](),_0x2324f6[_0x49ca50(0x220)](),_0x24573f[_0x49ca50(0x30f)]();},_0x3ffeaa=()=>{const _0xcd9475=_0x3cc9f6;_0x2324f6[_0xcd9475(0x243)]&&(_0x2324f6[_0xcd9475(0x243)][_0xcd9475(0x1a6)](),_0x2324f6[_0xcd9475(0x243)]=void 0x0);};return{'insertTextReply':(_0x17d826,_0x234a4d)=>{const _0x57c9a5=_0x3cc9f6;_0x3ffeaa(),_0xf1c82d();const _0x316734=_0x2324f6[_0x57c9a5(0x243)]=_0x2324f6[_0x57c9a5(0x224)]({'type':_0x57c9a5(0x29c),'interactionId':_0x2324f6['id'],'content':_0x17d826,'id':_0x234a4d||_0x327016()});return _0x3ffeaa(),_0x316734;},'insertCustomElement':async(_0x5e1ae6,_0x40e29b)=>(_0x3ffeaa(),_0xf1c82d(),_0x24573f[_0x3cc9f6(0x1c8)](_0x5e1ae6,_0x40e29b||_0x327016())),'setLoadingMessage':_0x2bd119=>{const _0x2a2e48=_0x3cc9f6;_0x24573f[_0x2a2e48(0x1cd)](_0x2bd119);},'clearLoadingMessage':()=>{const _0x1f891c=_0x3cc9f6;_0x24573f[_0x1f891c(0x30f)]();}};}}
|
|
23
|
+
const _0x2707df=_0x2f2c;(function(_0x13eceb,_0x6db669){const _0x52cc8e=_0x2f2c,_0xbd357c=_0x13eceb();while(!![]){try{const _0x415bdd=parseInt(_0x52cc8e(0x2a8))/0x1*(parseInt(_0x52cc8e(0x147))/0x2)+-parseInt(_0x52cc8e(0x211))/0x3*(-parseInt(_0x52cc8e(0x16d))/0x4)+-parseInt(_0x52cc8e(0x179))/0x5+-parseInt(_0x52cc8e(0x1fe))/0x6*(parseInt(_0x52cc8e(0x1ee))/0x7)+-parseInt(_0x52cc8e(0x1f7))/0x8*(parseInt(_0x52cc8e(0x22a))/0x9)+parseInt(_0x52cc8e(0x24f))/0xa*(-parseInt(_0x52cc8e(0x168))/0xb)+parseInt(_0x52cc8e(0x2aa))/0xc;if(_0x415bdd===_0x6db669)break;else _0xbd357c['push'](_0xbd357c['shift']());}catch(_0x3a3fd9){_0xbd357c['push'](_0xbd357c['shift']());}}}(_0x5978,0x286db));import{ContextPlugin as _0x59bea8,Editor as _0x1c4391}from'ckeditor5/src/core.js';import{BodyCollection as _0xdec14e}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3e6794,logError as _0x456f50,scrollViewportToShowTarget as _0x3c3e16,uid as _0x316623}from'ckeditor5/src/utils.js';import{AIConnector as _0xab48b}from'../aicore/aiconnector.js';import{AITabs as _0x497072}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2941e1}from'./model/aichatconversation.js';import{getTranslation as _0x5dc244}from'../aicore/utils/common-translations.js';import{AIModels as _0x45383a}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x1707b4}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x17b851,DATA_ID_MODEL_ATTRIBUTE as _0xf47352}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5978(){const _0x187ab2=['toggleReasoning','closeSourceResourceBalloon','forEach','close','removeSelectionFromChatContext','addCurrentDocumentToChatContext','view','version','$graveyard','revert','resetConversationTitle','getInteraction','findIndex','ai-chat-missing-channel-id','editing','addFeedItemAISuggestion','sources','createReply','updateContent','createRange','isDisabled','_aiChatBalloonShowDiff','like','chat','change','_createFromRanges','_removeFromContext','sourcePosition','ai-chat-url-upload-failed','ai-chat-conversation-start-failed','_batchToChanges','maxOffset','clearConversationContextUI','startsWith','_toggleReasoning','Liked\x20response','reasoningFinished','AI_CHAT_UNABLE_TO_START_CONVERSATION','updateFeedItemAIReplyContent','type','add','bind','detachFromDom','get','addResourceToContext','static','_updateReplyContent','updateResourceState','addContextOptionsChanged','_toggleWebSearch','_stopLastInteraction','removed','_updateRatings','showDiff','config','getChild','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','indexes','scrollFeedToSuggestion','getInteractionAndReplyById','getAll','handleUserInteraction','ai-chat-source-resources-load-failed','path','updateCapabilities','source','ai-chat-resource-load-failed','ai-chat-invalid-request','applyOperation','AI_CHAT_GENERIC_ERROR','_getDocumentRangeForReplyChanges','modelSelected','marker','current-document','interactionDestroyed','_insertSuggestion','documentContextContent','delete','ai-chat-context-unsupported-type','AI_CHAT_RESOURCE_LOAD_FAILED','contextSent','error','set','AIChatUI','contextItems','finishInteraction','toolDataReceived','getChildAtOffset','AIConnector','history','requires','getFirstRange','showFakeVisualSelection','setLoadingMessage','indexOf','_getAIChatInteractionAPI','parse','areActionsDisabled','setIsMaximized','query','filter','987zENFjH','_scrollToSuggestionRange','resourceId','AI_CHAT_UNTITLED_CONVERSATION','uiId','main','howMany','document','_bodyCollection','103272Cckrbl','abortPromptStream','ai.models','getOperations','createConversation','selectModel','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','10242nbvLab','isModelAvailable','replyCreated','addCurrentDocumentToContext','context','modification','_rejectSuggestion','showNext','_getLastCreatedConversationId','removeSelectionFromContext','changes','mouseOverSuggestion','clearPendingContextUI','_integrateEditor','changeGroups','_aiConnector','addFeedItemError','activateTab','getSelectionText','3ZzenAw','isOfficialPlugin','getContentParts','showChangeInText','resetMessageInput','loadConversation','Disliked\x20response','loadSourceResources','ai-chat-conversation-not-found','updateFeedItemAIReplySuggestionPartState','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','isLoading','selection','load','AI_CHAT_CONTEXT_INVALID_DATA','lastCreated','sourceId','sourceResourcesLoaded','batch','resource','data','message','toString','_applyOperationsAsSuggestions','capabilitiesUpdated','81BVfivu','ai-chat-context-file-too-large','toggleLoadingSkeleton','getDocumentContext','TrackChangesEditing','text','callback','index','toViewRange','resetWebSearchState','_showConversationHistory','_currentPreviewedChangeGroup','resetReasoningState','setFeedItemAIReplySuggestionPartActive','length','updateConversationTitle','previous','startAutoScroll','removeFeedInteraction','listenTo','setConversationContext','anchorId','setContextItemLoading','outdated','ai-chat-context-unsupported-file-type','_aiChatModels','addFeedItemStaticMessage','focusPromptInput','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','uid','isUploadInProgress','disableControls','updateFeedItemAIReplySources','getRanges','resize','addUrlToContext','insertSuggestion','490gjRiLm','hideFakeVisualSelection','getTransformedByOperation','executeCustomItemCallback','hasChanges','contextItem','attachToDom','stop','sendUserMessage','next','isDocumentOperation','getReply','addContextItem','includes','rejectSuggestion','updateCurrentDocumentInContext','isInContext','replyId','collaboration.channelId','isPremiumPlugin','push','from','addSelectionToContext','setConversationTitle','range','messageId','mapper','ai-chat-conversation-init-failed','DocumentCompare','ai-conversation-','addDocumentToContext','pending','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','accepted','setChangeGroupState','clearLoadingMessage','node','getAttribute','createPositionAt','setAddContextOptions','removeFromContext','log','interactionId','end','upsertAIChatRating','model','uploadProgressChanged','isCurrentDocumentInConversation','setState','addFeedItemAIReply','isCurrentDocumentInContext','_startConversationSafely','_handleUIUserMessage','activeConversation','TrackChanges','setModel','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','AI_CHAT_ABORTED_MESSAGE','AIChatController','addFileToContext','ai-no-track-changes','ai.chat.initialConversation','state','AIChatBalloon','delegate','contextItemAdded','handleRemovedConversation','getPath','resizeTabs','partIndex','Undo','fetchConversation','afterInit','replies','unshift','startInteraction','_aiChatBalloon','start','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemRemoved','fetchConversations','_handleStartConversation','viewRangeToDom','rejected','new','resourceStateChanged','conversationInitialized','setIsUploadInProgress','lastInteraction','279893TxuvEE','toggleWebSearch','5862996JsZepf','getDiff','replyContentUpdated','content','startConversation','baseVersion','currentReply','setFeedItemRenderingStrategy','alignToTop','ai-chat-file-upload-failed','addFeedItemCustomElement','_logError','editors','resources','applySuggestion','addSelectionToChatContext','options','ai.chat.context','aiChatBalloon','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','ai-chat-context-file-too-many-pages','mouseLeaveSuggestion','webSearchStarted','AI_CHAT_CONTEXT_FILE_TOO_LARGE','AI_BALLOON_HEADER_TITLE','plugins','ai-chat-controller-no-active-conversation','destroy','interactionStarted','createPositionFromPath','root','ai-chat-context-form-data-size-limits-exceeded','ai-chat-controller-mouse-over','undo','createdAt','Showing\x20conversation\x20history...','updateFeedItemAIReplySuggestionContent','nextSibling','showPrevious','reasoningStarted','split','data-id','AIEditing','2ogmaRj','sessionId','getGroupId','_openBalloonFor','addOperation','streaming','locale','has','_applySuggestion','addFilesToContext','getRoot','selectedModel','interactionCreated','addFeedItemUserMessage','getChildren','_aiEditing','isStarted','sendMessage','AI_CHAT_INVALID_REQUEST','enableControls','ready','getDocumentData','getConversation','children','_getPresentableSiblingContentPartIndex','domConverter','map','done','open','contextItemLoadingEnded','redo','ai.models.defaultModelId','setSelectedModel','43241WPJVZf','commands','removeContextItem','dislike','_registerToolDataCallback','147792LhlNCT','stopInteraction','AITabs','find','pluginName','resizedTabs','slice','populateSourceResourceBalloon','_flushLastInteractionUI','ai-request-aborted','prepareLoadingMessage','_getUserPresentableContentPartDocumentRange','451710NZQkhF','replyChangeGroupStateUpdated','cloneNode','dialogClosed','_setIsMaximized','rootName','init','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_aiChatUi','remove','ai-chat-context-invalid-data','toggleSuggestionDisplayMode','addFeedInteractionHeader','webSearchFinished','getConversations','interactionFinished'];_0x5978=function(){return _0x187ab2;};return _0x5978();}import{fixMarkerOperationOldRange as _0x36aead,getOperationsFromReply as _0x4999d2}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x2ef85e,getMinimalSelection as _0x3bd3fe}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x2f2c(_0x4bcb44,_0xbefaa3){const _0x597803=_0x5978();return _0x2f2c=function(_0x2f2c65,_0x1ab100){_0x2f2c65=_0x2f2c65-0x132;let _0x3e07f2=_0x597803[_0x2f2c65];return _0x3e07f2;},_0x2f2c(_0x4bcb44,_0xbefaa3);}import{ModelRange as _0x5eca56,_DetachOperation as _0x127f9a}from'ckeditor5/src/engine.js';import{findOne as _0x9e0d6a,getAttribute as _0x8217c7,serialize as _0x1bc086,Document as _0x5edf30,findByAttribute as _0x5933e4}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x59bea8{[_0x2707df(0x156)];[_0x2707df(0x20d)];[_0x2707df(0x181)];[_0x2707df(0x243)];[_0x2707df(0x29b)];[_0x2707df(0x1a7)]=new Map();[_0x2707df(0x235)]=null;[_0x2707df(0x1f6)];static get[_0x2707df(0x1e3)](){return[_0xab48b,_0x17b851];}static get[_0x2707df(0x171)](){const _0xbf1950=_0x2707df;return _0xbf1950(0x289);}static get[_0x2707df(0x212)](){return!0x0;}static get[_0x2707df(0x262)](){return!0x0;}[_0x2707df(0x17f)](){const _0x3aa101=_0x2707df;this[_0x3aa101(0x1f6)]=new _0xdec14e(this[_0x3aa101(0x202)][_0x3aa101(0x14d)]),this[_0x3aa101(0x1f6)][_0x3aa101(0x255)](),this[_0x3aa101(0x20d)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x1e1)),this[_0x3aa101(0x181)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x1dc)),this[_0x3aa101(0x156)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x146)),this[_0x3aa101(0x243)]=new _0x45383a({'connector':this[_0x3aa101(0x20d)],'config':this[_0x3aa101(0x202)][_0x3aa101(0x1bf)][_0x3aa101(0x1b4)](_0x3aa101(0x1f9)),'locale':this[_0x3aa101(0x202)][_0x3aa101(0x14d)]});const _0x223571=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x16f));this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2ae),()=>{const _0x4ff2a9=_0x3aa101;this[_0x4ff2a9(0x282)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x257),(_0x26825a,_0x148198)=>{const _0x53f381=_0x3aa101;this[_0x53f381(0x283)]({'userMessage':_0x148198});}),this[_0x3aa101(0x23d)](_0x223571,_0x3aa101(0x172),(_0x24efbe,_0x1e920c)=>{const _0x378ceb=_0x3aa101;this[_0x378ceb(0x17d)](_0x1e920c);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x293),()=>{const _0x469bb9=_0x3aa101;_0x223571[_0x469bb9(0x24c)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x1f8),async()=>{const _0x32cb10=_0x3aa101;await this[_0x32cb10(0x1bb)](),await this[_0x32cb10(0x175)](),this[_0x32cb10(0x18d)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x26d),()=>{const _0xf62292=_0x3aa101;this[_0xf62292(0x18e)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x28a),(_0x1c291d,_0x2e6ef5)=>{const _0x29edaf=_0x3aa101;this[_0x29edaf(0x284)]?.[_0x29edaf(0x150)](Array[_0x29edaf(0x264)](_0x2e6ef5));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x24d),(_0x4b2d96,_0x47fb6e)=>{const _0x4d1549=_0x3aa101;this[_0x4d1549(0x284)]?.[_0x4d1549(0x24d)](_0x47fb6e);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x252),(_0x13be0a,_0x33a8f3)=>{const _0x4684e5=_0x3aa101;_0x33a8f3[_0x4684e5(0x230)](this[_0x4684e5(0x202)]);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x1b5),(_0x55f82a,_0x5afd90)=>{const _0x3e5ee9=_0x3aa101;this[_0x3e5ee9(0x284)]?.[_0x3e5ee9(0x1b5)](_0x5afd90[_0x3e5ee9(0x1ca)],_0x5afd90[_0x3e5ee9(0x224)]);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x16a),(_0xfb409f,_0x1a729a)=>{const _0x4a1dc9=_0x3aa101;this[_0x4a1dc9(0x1a3)](_0x1a729a);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x218),(_0x117f0a,_0x3e9ed7)=>{const _0x29e1c3=_0x3aa101;this[_0x29e1c3(0x284)]?.[_0x29e1c3(0x218)](_0x3e9ed7[_0x29e1c3(0x221)],_0x3e9ed7[_0x29e1c3(0x1ec)],_0x3e9ed7[_0x29e1c3(0x247)]);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2a9),()=>{const _0xc6640a=_0x3aa101;this[_0xc6640a(0x1ba)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x189),()=>{const _0x2ee5e8=_0x3aa101;this[_0x2ee5e8(0x1ab)]();}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x1fc),(_0xa8fee3,_0x4a0bed)=>{const _0x35d4c9=_0x3aa101;this[_0x35d4c9(0x284)]?.[_0x35d4c9(0x286)](_0x4a0bed);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x19f),(_0x40fe2c,{replyId:_0x4ebb2e})=>{const _0x46cdb5=_0x3aa101;console[_0x46cdb5(0x278)](_0x46cdb5(0x1ac),_0x4ebb2e);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x16b),(_0x48c3a0,{replyId:_0x55d44d})=>{const _0x1b50f5=_0x3aa101;console[_0x1b50f5(0x278)](_0x1b50f5(0x217),_0x55d44d);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x24e),(_0x410e75,_0x127640)=>{const _0x357b63=_0x3aa101;this[_0x357b63(0x1d4)](_0x127640);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x214),(_0x476911,{replyId:_0x7825b4,partIndex:_0x186eee})=>{const _0x3e06cf=_0x3aa101;this[_0x3e06cf(0x19e)]=this[_0x3e06cf(0x181)][_0x3e06cf(0x1be)],this[_0x3e06cf(0x14a)](_0x7825b4,_0x186eee);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x209),(_0x40fe0c,{replyId:_0x49c6ae,partIndex:_0x14bea1})=>{const _0x3d346e=_0x3aa101,_0x5ee70d=this[_0x3d346e(0x1cf)](_0x49c6ae,_0x14bea1);_0x5ee70d&&_0x3d346e(0x191)!=_0x5ee70d[_0x3d346e(0x267)][_0x3d346e(0x13a)][_0x3d346e(0x17e)]&&this[_0x3d346e(0x156)][_0x3d346e(0x1e5)]([_0x5ee70d[_0x3d346e(0x267)]],_0x3d346e(0x13c));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2bf),()=>{const _0x382520=_0x3aa101;this[_0x382520(0x156)][_0x382520(0x250)](_0x382520(0x13c));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x2b8),(_0x5da025,_0x25d0cc)=>{const _0x1b15c8=_0x3aa101;this[_0x1b15c8(0x156)][_0x1b15c8(0x250)](_0x1b15c8(0x13c)),this[_0x1b15c8(0x14f)](_0x25d0cc);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x184),async(_0x44263a,{replyId:_0xa7471,showDiff:_0xb99e13})=>{const _0x38f7c2=_0x3aa101,{reply:_0x43213b}=this[_0x38f7c2(0x1c4)](_0xa7471),_0xb6e691=_0x43213b[_0x38f7c2(0x213)]({'showDiff':_0xb99e13});await this[_0x38f7c2(0x181)][_0x38f7c2(0x140)]({'id':_0x43213b['id'],'parts':_0xb6e691,'renderingStrategy':_0x38f7c2(0x1b6)});}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x181)],_0x3aa101(0x25d),(_0x4f102d,{replyId:_0x534166,partIndex:_0x1f83f3})=>{const _0x35b6eb=_0x3aa101;this[_0x35b6eb(0x204)]({'replyId':_0x534166,'partIndex':_0x1f83f3}),this[_0x35b6eb(0x156)][_0x35b6eb(0x250)](_0x35b6eb(0x13c));}),this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x14e)](_0x3aa101(0x28e))&&(this[_0x3aa101(0x29b)]=this[_0x3aa101(0x202)][_0x3aa101(0x135)][_0x3aa101(0x1b4)](_0x3aa101(0x28e)),this[_0x3aa101(0x1db)](_0x3aa101(0x19e),!0x1),this[_0x3aa101(0x29b)][_0x3aa101(0x1b2)](_0x3aa101(0x1be))['to'](this,_0x3aa101(0x19e)),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x184),()=>{const _0x4a727a=_0x3aa101,{replyId:_0x28f39f,partIndex:_0x37408e}=this[_0x4a727a(0x235)];this[_0x4a727a(0x19e)]=!this[_0x4a727a(0x19e)];const {reply:_0x2afb86}=this[_0x4a727a(0x1c4)](_0x28f39f),_0x26306a=_0x2afb86[_0x4a727a(0x213)]({'showDiff':this[_0x4a727a(0x19e)],'groupIndex':_0x37408e});this[_0x4a727a(0x29b)][_0x4a727a(0x19b)]({'part':_0x26306a[0x0],'renderingStrategy':_0x4a727a(0x1b6),'keepErrors':!0x0});}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x2b8),()=>{const _0x3b52ee=_0x3aa101,{replyId:_0x7572a2,partIndex:_0x4b721a}=this[_0x3b52ee(0x235)];this[_0x3b52ee(0x14f)]({'replyId':_0x7572a2,'partIndex':_0x4b721a}),this[_0x3b52ee(0x29b)][_0x3b52ee(0x27f)](_0x3b52ee(0x270));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x24e),()=>{const _0x5a8717=_0x3aa101,{replyId:_0x198a84,partIndex:_0x222e0a}=this[_0x5a8717(0x235)];this[_0x5a8717(0x1d4)]({'replyId':_0x198a84,'partIndex':_0x222e0a}),this[_0x5a8717(0x29b)][_0x5a8717(0x27f)](_0x5a8717(0x270));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x25d),()=>{const _0x5708fe=_0x3aa101,{replyId:_0x2bc3ba,partIndex:_0x4d5e27}=this[_0x5708fe(0x235)];this[_0x5708fe(0x204)]({'replyId':_0x2bc3ba,'partIndex':_0x4d5e27}),this[_0x5708fe(0x29b)][_0x5708fe(0x27f)](_0x5708fe(0x2a2));}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x205),()=>{const _0x22da3f=_0x3aa101,{replyId:_0x512ef8,partIndex:_0x4034c5}=this[_0x22da3f(0x235)],_0x39dce1=this[_0x22da3f(0x15f)](_0x512ef8,_0x4034c5,_0x22da3f(0x258));null!==_0x39dce1&&this[_0x22da3f(0x14a)](_0x512ef8,_0x39dce1);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x142),()=>{const _0x10381e=_0x3aa101,{replyId:_0x4fd081,partIndex:_0x438c69}=this[_0x10381e(0x235)],_0x4bc257=this[_0x10381e(0x15f)](_0x4fd081,_0x438c69,_0x10381e(0x23a));null!==_0x4bc257&&this[_0x10381e(0x14a)](_0x4fd081,_0x4bc257);}),this[_0x3aa101(0x23d)](this[_0x3aa101(0x29b)],_0x3aa101(0x17c),(_0x398930,{id:_0x2592d8})=>{const _0x7c3d3=_0x3aa101;if(_0x7c3d3(0x2bc)!==_0x2592d8)return;const {replyId:_0x44a88a,partIndex:_0x5730c1}=this[_0x7c3d3(0x235)];this[_0x7c3d3(0x235)]=null,this[_0x7c3d3(0x181)][_0x7c3d3(0x237)]({'id':_0x44a88a,'index':_0x5730c1,'isActive':!0x1});}));}async[_0x2707df(0x297)](){const _0x4f9ca2=_0x2707df;this[_0x4f9ca2(0x202)]instanceof _0x1c4391?this[_0x4f9ca2(0x20b)](this[_0x4f9ca2(0x202)]):this[_0x4f9ca2(0x23d)](this[_0x4f9ca2(0x202)][_0x4f9ca2(0x2b6)],_0x4f9ca2(0x1b1),(_0x5e7391,_0x2705d8)=>{const _0x537282=_0x4f9ca2;_0x2705d8['on'](_0x537282(0x15b),()=>{const _0x53d227=_0x537282;this[_0x53d227(0x20b)](_0x2705d8);});});const _0x1f6e16=this[_0x4f9ca2(0x202)][_0x4f9ca2(0x1bf)][_0x4f9ca2(0x1b4)](_0x4f9ca2(0x28c));let _0x478ab3=_0x1f6e16;if(_0x4f9ca2(0x220)!=_0x1f6e16||(_0x478ab3=await this[_0x4f9ca2(0x206)](),_0x478ab3))return _0x4f9ca2(0x2a3)==_0x478ab3?this[_0x4f9ca2(0x282)]():this[_0x4f9ca2(0x216)](_0x478ab3);}async[_0x2707df(0x137)](){const _0x3889f6=_0x2707df;return await this[_0x3889f6(0x1bb)](),this[_0x3889f6(0x1f6)][_0x3889f6(0x1b3)](),super[_0x3889f6(0x137)]();}[_0x2707df(0x1d4)](_0x56ea51){const _0x273466=_0x2707df,_0x3c5179=_0x1707b4(this[_0x273466(0x202)]);if(!_0x3c5179[_0x273466(0x135)][_0x273466(0x14e)](_0x273466(0x285)))throw new _0x3e6794(_0x273466(0x28b),null);const _0x27e1c8=this[_0x273466(0x202)][_0x273466(0x135)][_0x273466(0x1b4)](_0x273466(0x26b)),{reply:_0x4c473f,interaction:_0x5e9678}=this[_0x273466(0x1c4)](_0x56ea51[_0x273466(0x260)]),_0xb88da4=this[_0x273466(0x1cf)](_0x56ea51[_0x273466(0x260)],_0x56ea51[_0x273466(0x294)]),_0xfe27fd=void 0x0!==_0x56ea51[_0x273466(0x294)]?[_0x4c473f[_0x273466(0x20c)][_0x56ea51[_0x273466(0x294)]]]:_0x4c473f[_0x273466(0x20c)][_0x273466(0x1ed)](_0x37e41e=>_0x273466(0x26e)==_0x37e41e[_0x273466(0x28d)]),_0x504b43=_0xfe27fd[_0x273466(0x161)](_0x4eae87=>_0x4c473f[_0x273466(0x20c)][_0x273466(0x1e7)](_0x4eae87));if(!_0xb88da4||_0x273466(0x191)==_0xb88da4[_0x273466(0x267)][_0x273466(0x13a)][_0x273466(0x17e)])return void _0x504b43[_0x273466(0x18b)](_0x108e32=>_0x4c473f[_0x273466(0x271)](_0x108e32,_0x273466(0x241)));_0x504b43[_0x273466(0x18b)](_0x347dfe=>_0x4c473f[_0x273466(0x271)](_0x347dfe,_0x273466(0x270)));const _0x312087=_0x4999d2({'editor':_0x3c5179,'reply':_0x4c473f,'interaction':_0x5e9678,'groups':_0xfe27fd,'transform':!0x0,'documentCompare':_0x27e1c8,'documentCompareOptions':{'anchor':_0x273466(0x1f3),'markDeletions':!0x0}});let _0xb3920f;_0xb88da4&&this[_0x273466(0x1ef)](_0xb88da4[_0x273466(0x267)]),_0x3c5179[_0x273466(0x27c)][_0x273466(0x1a1)](_0x3f6eeb=>{const _0x3fa26f=_0x273466;_0xb3920f=_0x3f6eeb[_0x3fa26f(0x223)],_0x3c5179[_0x3fa26f(0x135)][_0x3fa26f(0x1b4)](_0x3fa26f(0x22e))[_0x3fa26f(0x228)](_0x312087),this[_0x3fa26f(0x156)][_0x3fa26f(0x250)](_0x3fa26f(0x13c));}),this[_0x273466(0x1a7)][_0x273466(0x1db)](_0xb3920f,{'interactionId':_0x5e9678['id'],'replyId':_0x4c473f['id'],'indexes':_0x504b43[_0x273466(0x173)]()}),this[_0x273466(0x1bd)](_0x4c473f);}[_0x2707df(0x14f)](_0x298eb1){const _0xa95106=_0x2707df,_0x2b791e=_0x1707b4(this[_0xa95106(0x202)]),_0x65839b=this[_0xa95106(0x202)][_0xa95106(0x135)][_0xa95106(0x1b4)](_0x17b851),{reply:_0x58ec9c,interaction:_0x16b619}=this[_0xa95106(0x1c4)](_0x298eb1[_0xa95106(0x260)]),_0x24b7f5=this[_0xa95106(0x1cf)](_0x298eb1[_0xa95106(0x260)],_0x298eb1[_0xa95106(0x294)]),_0x401a75=void 0x0!==_0x298eb1[_0xa95106(0x294)]?[_0x58ec9c[_0xa95106(0x20c)][_0x298eb1[_0xa95106(0x294)]]]:_0x58ec9c[_0xa95106(0x20c)][_0xa95106(0x1ed)](_0x440a9c=>_0xa95106(0x26e)==_0x440a9c[_0xa95106(0x28d)]),_0x24c439=_0x401a75[_0xa95106(0x161)](_0x4c39b4=>_0x58ec9c[_0xa95106(0x20c)][_0xa95106(0x1e7)](_0x4c39b4));if(!_0x24b7f5||_0xa95106(0x191)==_0x24b7f5[_0xa95106(0x267)][_0xa95106(0x13a)][_0xa95106(0x17e)])return void _0x24c439[_0xa95106(0x18b)](_0x15a244=>_0x58ec9c[_0xa95106(0x271)](_0x15a244,_0xa95106(0x241)));_0x24c439[_0xa95106(0x18b)](_0x1b7545=>_0x58ec9c[_0xa95106(0x271)](_0x1b7545,_0xa95106(0x270)));const _0x295943=_0x4999d2({'editor':_0x2b791e,'reply':_0x58ec9c,'interaction':_0x16b619,'groups':_0x401a75,'transform':!0x0,'documentCompare':_0x65839b,'documentCompareOptions':{'anchor':_0xa95106(0x1f3),'markDeletions':!0x1}});let _0xe8c6c3;_0x24b7f5&&this[_0xa95106(0x1ef)](_0x24b7f5[_0xa95106(0x267)]),_0x2b791e[_0xa95106(0x27c)][_0xa95106(0x1a1)](_0xab1101=>{const _0x5352e8=_0xa95106;_0xe8c6c3=_0xab1101[_0x5352e8(0x223)];for(const _0x592f45 of _0x295943)_0x592f45[_0x5352e8(0x2af)]=_0x2b791e[_0x5352e8(0x27c)][_0x5352e8(0x1f5)][_0x5352e8(0x190)],_0x36aead(_0x2b791e,_0x592f45),_0xab1101[_0x5352e8(0x223)][_0x5352e8(0x14b)](_0x592f45),_0x2b791e[_0x5352e8(0x27c)][_0x5352e8(0x1cd)](_0x592f45);}),this[_0xa95106(0x1a7)][_0xa95106(0x1db)](_0xe8c6c3,{'interactionId':_0x16b619['id'],'replyId':_0x58ec9c['id'],'indexes':_0x24c439[_0xa95106(0x173)]()}),this[_0xa95106(0x1bd)](_0x58ec9c);}[_0x2707df(0x204)](_0x4cbd4d){const _0x11f4d1=_0x2707df,{reply:_0x199823}=this[_0x11f4d1(0x1c4)](_0x4cbd4d[_0x11f4d1(0x260)]);_0x199823[_0x11f4d1(0x271)](_0x4cbd4d[_0x11f4d1(0x294)],_0x11f4d1(0x2a2));}[_0x2707df(0x14a)](_0x5dc387,_0x408a1d){const _0x583ff8=_0x2707df;if(!this[_0x583ff8(0x29b)])return;const {reply:_0x221213}=this[_0x583ff8(0x1c4)](_0x5dc387),_0xf314c1=_0x221213[_0x583ff8(0x213)]({'showDiff':this[_0x583ff8(0x19e)]});let _0x3a5c0c,_0x587bb6;if(void 0x0!==_0x408a1d?(_0x587bb6=_0xf314c1[_0x583ff8(0x170)](_0x3e56ee=>_0x3e56ee[_0x583ff8(0x231)]==_0x408a1d),_0x3a5c0c=_0x587bb6?.[_0x583ff8(0x231)]):(_0x587bb6=_0xf314c1[0x0],_0x3a5c0c=_0x587bb6[_0x583ff8(0x231)]),this[_0x583ff8(0x235)]?.[_0x583ff8(0x260)]==_0x5dc387&&this[_0x583ff8(0x235)]?.[_0x583ff8(0x294)]==_0x3a5c0c)return;const _0x32ce73=this[_0x583ff8(0x178)](_0x5dc387,_0x221213,_0x587bb6);if(!_0x32ce73)return void this[_0x583ff8(0x29b)][_0x583ff8(0x18c)]();this[_0x583ff8(0x235)]={'replyId':_0x5dc387,'partIndex':_0x3a5c0c},this[_0x583ff8(0x1ef)](_0x32ce73,!0x0);const _0x4ce7b0=this[_0x583ff8(0x15f)](_0x5dc387,_0x3a5c0c,_0x583ff8(0x258));this[_0x583ff8(0x29b)][_0x583ff8(0x19b)]({'part':_0x587bb6,'renderingStrategy':_0x583ff8(0x1b6)}),this[_0x583ff8(0x29b)][_0x583ff8(0x163)]({'index':_0x3a5c0c,'title':_0x5dc244(this[_0x583ff8(0x202)][_0x583ff8(0x14d)],_0x583ff8(0x134),(_0x3a5c0c+0x1)[_0x583ff8(0x227)]()),'showRotator':null!==_0x4ce7b0,'ranges':[_0x32ce73],'areActionsDisabled':_0x221213[_0x583ff8(0x1ea)]}),this[_0x583ff8(0x29b)][_0x583ff8(0x27f)](_0x583ff8(0x26e)),this[_0x583ff8(0x181)][_0x583ff8(0x1c3)](_0x5dc387,_0x3a5c0c),this[_0x583ff8(0x181)][_0x583ff8(0x237)]({'id':_0x5dc387,'index':_0x3a5c0c,'isActive':!0x0});}[_0x2707df(0x15f)](_0x56f8f9,_0x5b2caa,_0x4db44d){const _0x290969=_0x2707df,{reply:_0x50df19}=this[_0x290969(0x1c4)](_0x56f8f9),_0x5edd8b=_0x50df19[_0x290969(0x213)]({'showDiff':this[_0x290969(0x19e)]});if(0x1==_0x5edd8b[_0x290969(0x238)])return null;const _0x2c4cd4=_0x5edd8b[_0x290969(0x195)](_0x392137=>_0x392137[_0x290969(0x231)]==_0x5b2caa),_0x58530a=_0x290969(0x258)==_0x4db44d?0x1:-0x1;let _0x87e9e=_0x5edd8b['at']((_0x2c4cd4+_0x58530a)%_0x5edd8b[_0x290969(0x238)])[_0x290969(0x231)],_0x2e2f8d=_0x5edd8b[_0x87e9e];for(;!this[_0x290969(0x178)](_0x56f8f9,_0x50df19,_0x2e2f8d);){if(_0x87e9e=_0x5edd8b['at']((_0x87e9e+_0x58530a)%_0x5edd8b[_0x290969(0x238)])[_0x290969(0x231)],_0x87e9e===_0x2c4cd4)return null;_0x2e2f8d=_0x5edd8b[_0x87e9e];}return _0x87e9e;}[_0x2707df(0x178)](_0x5b4eb6,_0xc41321,_0xb3533){const _0x36cf21=_0x2707df,_0x5de8ab=_0xc41321[_0x36cf21(0x20c)];if(!_0xb3533[_0x36cf21(0x253)])return null;const _0x3cfe53=_0x5de8ab[_0x36cf21(0x170)](_0x24541e=>_0x24541e[_0x36cf21(0x231)]==_0xb3533[_0x36cf21(0x231)]);if(_0x36cf21(0x26e)!==_0x3cfe53?.[_0x36cf21(0x28d)])return null;const _0x3b891a=this[_0x36cf21(0x1cf)](_0x5b4eb6,_0xb3533[_0x36cf21(0x231)]);if(!_0x3b891a)return null;const {range:_0x3e760b,currentIndex:_0x2e0776}=_0x3b891a;return _0x36cf21(0x191)==_0x3e760b[_0x36cf21(0x13a)][_0x36cf21(0x17e)]?(_0xc41321[_0x36cf21(0x271)](_0x2e0776,_0x36cf21(0x241)),null):_0x3b891a[_0x36cf21(0x267)];}[_0x2707df(0x1cf)](_0x46378a,_0xf4483e){const _0x4bc2d3=_0x2707df,_0x48d7cb=_0x1707b4(this[_0x4bc2d3(0x202)]),{reply:_0x497936,interaction:_0x1541d8}=this[_0x4bc2d3(0x1c4)](_0x46378a),_0x2f7e35=_0x497936[_0x4bc2d3(0x20c)][_0x4bc2d3(0x1ed)](_0x304c3b=>_0x4bc2d3(0x26e)==_0x304c3b[_0x4bc2d3(0x28d)]),_0x3dae71=_0x2f7e35[_0x4bc2d3(0x161)](_0x33eded=>_0x497936[_0x4bc2d3(0x20c)][_0x4bc2d3(0x1e7)](_0x33eded));void 0x0===_0xf4483e&&(_0xf4483e=_0x3dae71[0x0]);const _0x401ea4=_0x3dae71[_0x4bc2d3(0x1e7)](_0xf4483e);if(-0x1==_0x401ea4)return null;const _0x95e3e=_0x2f7e35[_0x401ea4],_0x4b7c1f=new _0x5edf30([]),_0x2f1295=new _0x5edf30([]);for(const _0x502941 of _0x95e3e[_0x4bc2d3(0x208)])if(_0x4bc2d3(0x1bc)!=_0x502941[_0x4bc2d3(0x1b0)]&&_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x502941[_0x4bc2d3(0x273)][_0x4bc2d3(0x17b)](!0x0)),_0x4bc2d3(0x2a3)!=_0x502941[_0x4bc2d3(0x1b0)]){const _0x19e40e=_0x9e0d6a(_0x641a81=>_0x8217c7(_0x641a81,_0x4bc2d3(0x145))==_0x502941['id'],_0x497936[_0x4bc2d3(0x1d5)],!0x0);_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x19e40e[_0x4bc2d3(0x17b)](!0x0));}if(0x0==_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x238)]){if(_0x95e3e[_0x4bc2d3(0x208)][0x0][_0x4bc2d3(0x23f)]){const _0x583a7f=_0x5933e4(_0x4bc2d3(0x145),_0x95e3e[_0x4bc2d3(0x208)][0x0][_0x4bc2d3(0x23f)],_0x497936[_0x4bc2d3(0x1d5)]);_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x299)](_0x583a7f[_0x4bc2d3(0x17b)](!0x0)),_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x299)](_0x583a7f[_0x4bc2d3(0x17b)](!0x0)),_0x583a7f[_0x4bc2d3(0x141)]&&(_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x583a7f[_0x4bc2d3(0x141)][_0x4bc2d3(0x17b)](!0x0)),_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x583a7f[_0x4bc2d3(0x141)][_0x4bc2d3(0x17b)](!0x0)));}else{const _0x41fa3d=_0x497936[_0x4bc2d3(0x1d5)][_0x4bc2d3(0x15e)][0x0];if(!_0x41fa3d)return null;_0x4b7c1f[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x41fa3d[_0x4bc2d3(0x17b)](!0x0)),_0x2f1295[_0x4bc2d3(0x15e)][_0x4bc2d3(0x263)](_0x41fa3d[_0x4bc2d3(0x17b)](!0x0));}}const _0x222880=_0x1541d8[_0x4bc2d3(0x22d)](),_0x5b796e=_0x48d7cb[_0x4bc2d3(0x225)][_0x4bc2d3(0x1e9)](_0x222880[_0x4bc2d3(0x2ad)]),_0x1ab0c8=_0x1bc086(_0x4b7c1f),_0x483cd5=_0x48d7cb[_0x4bc2d3(0x225)][_0x4bc2d3(0x1e9)](_0x1ab0c8),_0x395af0=_0x48d7cb[_0x4bc2d3(0x225)][_0x4bc2d3(0x1e9)](_0x1ab0c8),_0x258ba2=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x275)](_0x483cd5,0x0),_0x5f4d17=_0x1bc086(_0x2f1295),_0x588885={'anchor':_0x258ba2,'markDeletions':!0x1},_0x44d439=_0x48d7cb[_0x4bc2d3(0x135)][_0x4bc2d3(0x1b4)](_0x17b851)[_0x4bc2d3(0x2ab)](_0x1ab0c8,_0x5f4d17,_0x588885)[_0x4bc2d3(0x1fa)]();if(!_0x44d439[_0x4bc2d3(0x238)])return null;_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1a1)](_0x422c38=>{const _0x991cbc=_0x4bc2d3;for(const _0x9c2c7a of _0x44d439)if(_0x991cbc(0x182)==_0x9c2c7a[_0x991cbc(0x1b0)]){const _0x1dd99a=_0x9c2c7a[_0x991cbc(0x1a4)],_0x23d1f4=_0x9c2c7a[_0x991cbc(0x1f4)],_0x411bbf=new _0x127f9a(_0x1dd99a,_0x23d1f4);_0x422c38[_0x991cbc(0x223)][_0x991cbc(0x14b)](_0x411bbf),_0x48d7cb[_0x991cbc(0x27c)][_0x991cbc(0x1cd)](_0x411bbf);}else _0x991cbc(0x1d1)!==_0x9c2c7a[_0x991cbc(0x1b0)]&&(_0x9c2c7a[_0x991cbc(0x2af)]=null,_0x9c2c7a[_0x991cbc(0x259)]=!0x1,_0x422c38[_0x991cbc(0x223)][_0x991cbc(0x14b)](_0x9c2c7a),_0x48d7cb[_0x991cbc(0x27c)][_0x991cbc(0x1cd)](_0x9c2c7a));});const _0x3c6dda=_0x3bd3fe(_0x48d7cb,_0x44d439,_0x483cd5);_0x2ef85e(_0x48d7cb[_0x4bc2d3(0x27c)],_0x3c6dda);const _0xff4dc4=_0x3c6dda[_0x4bc2d3(0x1e4)]()[_0x4bc2d3(0x29c)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)](),_0xcd5d85=_0x3c6dda[_0x4bc2d3(0x1e4)]()[_0x4bc2d3(0x27a)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)](),_0x39d009=[];let _0x3b80b4=_0x483cd5,_0x390d0d=_0x395af0;for(let _0x321b83=0x0;_0x321b83<_0xcd5d85[_0x4bc2d3(0x238)];_0x321b83++){const _0x445a7e=_0x3b80b4[_0x4bc2d3(0x1a8)]-_0xcd5d85[_0x321b83];_0x39d009[_0x321b83]=_0x390d0d[_0x4bc2d3(0x1a8)]-_0x445a7e,_0x3b80b4=_0x3b80b4[_0x4bc2d3(0x1e0)](_0xcd5d85[_0x321b83]),_0x390d0d=_0x390d0d[_0x4bc2d3(0x1e0)](_0x39d009[_0x321b83]);}const _0x33ce5c=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x19c)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x395af0,_0xff4dc4),_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x395af0,_0x39d009)),_0x405df9=_0x395af0[_0x4bc2d3(0x1c0)](0x0)[_0x4bc2d3(0x274)](_0xf47352),_0x5db95e=Array[_0x4bc2d3(0x264)](_0x5b796e[_0x4bc2d3(0x155)]())[_0x4bc2d3(0x170)](_0x4ff3c8=>_0x4ff3c8[_0x4bc2d3(0x274)](_0xf47352)==_0x405df9)[_0x4bc2d3(0x292)](),_0x593bc6=_0x33ce5c[_0x4bc2d3(0x29c)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)](),_0x472280=_0x33ce5c[_0x4bc2d3(0x27a)][_0x4bc2d3(0x1c8)][_0x4bc2d3(0x173)]();_0x593bc6[0x0]=_0x5db95e[0x0]+_0x593bc6[0x0],_0x472280[0x0]=_0x5db95e[0x0]+_0x472280[0x0];let _0x53e125=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x19c)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1f5)][_0x4bc2d3(0x151)](),_0x593bc6),_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x139)](_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1f5)][_0x4bc2d3(0x151)](),_0x472280));const _0xb11e3b=_0x48d7cb[_0x4bc2d3(0x27c)][_0x4bc2d3(0x1f5)][_0x4bc2d3(0x1e2)][_0x4bc2d3(0x1fa)](_0x222880[_0x4bc2d3(0x190)]);for(const _0x4f93be of _0xb11e3b)_0x53e125=_0x5eca56[_0x4bc2d3(0x1a2)](_0x53e125[_0x4bc2d3(0x251)](_0x4f93be));return{'range':_0x53e125,'currentIndex':_0xf4483e};}[_0x2707df(0x20b)](_0x50b06f){const _0x332cc9=_0x2707df;if(!_0x50b06f[_0x332cc9(0x135)][_0x332cc9(0x14e)](_0x332cc9(0x295)))return;const _0x1f3b70=_0x50b06f[_0x332cc9(0x169)][_0x332cc9(0x1b4)](_0x332cc9(0x13d)),_0x2e52ac=_0x50b06f[_0x332cc9(0x169)][_0x332cc9(0x1b4)](_0x332cc9(0x165));this[_0x332cc9(0x23d)](_0x1f3b70,_0x332cc9(0x192),(_0x1a3c41,_0x370f8d,_0x6269c6)=>{const _0x2fd86e=_0x332cc9,_0x58dd2f=this[_0x2fd86e(0x1a7)][_0x2fd86e(0x1b4)](_0x370f8d);if(!_0x58dd2f)return;const _0x24c354=this[_0x2fd86e(0x284)][_0x2fd86e(0x194)](_0x58dd2f[_0x2fd86e(0x279)])[_0x2fd86e(0x25a)](_0x58dd2f[_0x2fd86e(0x260)]);_0x58dd2f[_0x2fd86e(0x1c2)][_0x2fd86e(0x18b)](_0x1178a8=>_0x24c354[_0x2fd86e(0x271)](_0x1178a8,_0x2fd86e(0x26e))),this[_0x2fd86e(0x1a7)][_0x2fd86e(0x1d6)](_0x370f8d),this[_0x2fd86e(0x1a7)][_0x2fd86e(0x1db)](_0x6269c6,_0x58dd2f);}),this[_0x332cc9(0x23d)](_0x2e52ac,_0x332cc9(0x192),(_0xaf20b,_0x4e13b5,_0x1d70fd)=>{const _0x40c7a7=_0x332cc9,_0x2969f1=this[_0x40c7a7(0x1a7)][_0x40c7a7(0x1b4)](_0x4e13b5);if(!_0x2969f1)return;const _0xe61e11=this[_0x40c7a7(0x284)][_0x40c7a7(0x194)](_0x2969f1[_0x40c7a7(0x279)])[_0x40c7a7(0x25a)](_0x2969f1[_0x40c7a7(0x260)]);_0x2969f1[_0x40c7a7(0x1c2)][_0x40c7a7(0x18b)](_0x2b0756=>_0xe61e11[_0x40c7a7(0x271)](_0x2b0756,_0x40c7a7(0x270))),this[_0x40c7a7(0x1a7)][_0x40c7a7(0x1d6)](_0x4e13b5),this[_0x40c7a7(0x1a7)][_0x40c7a7(0x1db)](_0x1d70fd,_0x2969f1);});}async[_0x2707df(0x216)](_0x4c455c){const _0x3c6c44=_0x2707df;this[_0x3c6c44(0x202)][_0x3c6c44(0x135)][_0x3c6c44(0x14e)](_0x3c6c44(0x28e))&&this[_0x3c6c44(0x202)][_0x3c6c44(0x135)][_0x3c6c44(0x1b4)](_0x3c6c44(0x28e))[_0x3c6c44(0x18c)](),(this[_0x3c6c44(0x202)][_0x3c6c44(0x135)][_0x3c6c44(0x1b4)](_0x497072)[_0x3c6c44(0x18f)][_0x3c6c44(0x20f)](_0x3c6c44(0x1a0)),this[_0x3c6c44(0x181)][_0x3c6c44(0x2b1)](_0x3c6c44(0x1b6)),this[_0x3c6c44(0x181)][_0x3c6c44(0x22c)](!0x0),await this[_0x3c6c44(0x1bb)]());try{await this[_0x3c6c44(0x20d)][_0x3c6c44(0x296)](_0x4c455c)[_0x3c6c44(0x15d)](),await this[_0x3c6c44(0x282)](_0x4c455c),this[_0x3c6c44(0x239)]('\x20'),await this[_0x3c6c44(0x284)][_0x3c6c44(0x21e)](_0x4c455c,this[_0x3c6c44(0x156)][_0x3c6c44(0x148)]),this[_0x3c6c44(0x284)][_0x3c6c44(0x27e)]()&&this[_0x3c6c44(0x18e)]();}catch(_0xc502cc){this[_0x3c6c44(0x181)][_0x3c6c44(0x20e)]({'errorMessage':_0x5dc244(this[_0x3c6c44(0x202)][_0x3c6c44(0x14d)],_0x3c6c44(0x246)),'id':_0x4c455c}),this[_0x3c6c44(0x2b5)](new _0x3e6794(_0x3c6c44(0x219),this,{'error':_0xc502cc}));}finally{this[_0x3c6c44(0x181)][_0x3c6c44(0x23b)](),this[_0x3c6c44(0x181)][_0x3c6c44(0x2b1)](_0x3c6c44(0x14c)),this[_0x3c6c44(0x181)][_0x3c6c44(0x22c)](!0x1);}}async[_0x2707df(0x206)](){const _0x23fc79=_0x2707df,_0x590d7e=this[_0x23fc79(0x20d)][_0x23fc79(0x29f)](this[_0x23fc79(0x149)](),{'limit':0x1,'sortBy':_0x23fc79(0x13e)});try{const _0x3ca350=await _0x590d7e[_0x23fc79(0x187)]();return _0x3ca350[_0x23fc79(0x238)]?_0x3ca350[0x0]['id']:_0x23fc79(0x2a3);}catch(_0x4d0908){return this[_0x23fc79(0x181)][_0x23fc79(0x20e)]({'errorMessage':_0x5dc244(this[_0x23fc79(0x202)][_0x23fc79(0x14d)],_0x23fc79(0x246)),'id':_0x316623()}),this[_0x23fc79(0x2b5)](new _0x3e6794(_0x23fc79(0x26a),this,{'error':_0x4d0908})),this[_0x23fc79(0x181)][_0x23fc79(0x22c)](!0x1),this[_0x23fc79(0x181)][_0x23fc79(0x249)](),null;}}[_0x2707df(0x291)](_0x3e114a){const _0x40abf5=_0x2707df;this[_0x40abf5(0x284)]['id']===_0x3e114a&&this[_0x40abf5(0x282)]();}[_0x2707df(0x18e)](){const _0x43d78e=_0x2707df;this[_0x43d78e(0x284)]?.[_0x43d78e(0x201)](_0x5dc244(this[_0x43d78e(0x202)][_0x43d78e(0x14d)],_0x43d78e(0x29d)));}async[_0x2707df(0x2b9)](){const _0xf3f76e=_0x2707df,_0x338c6b=this[_0xf3f76e(0x156)][_0xf3f76e(0x210)]();this[_0xf3f76e(0x284)]?.[_0xf3f76e(0x265)](_0x338c6b),this[_0xf3f76e(0x18e)]();}[_0x2707df(0x18d)](){const _0x5a183c=_0x2707df;this[_0x5a183c(0x284)]?.[_0x5a183c(0x207)]();}[_0x2707df(0x245)](){const _0x48a9eb=_0x2707df;this[_0x48a9eb(0x181)][_0x48a9eb(0x245)]();}async[_0x2707df(0x2ae)](){const _0x33426f=_0x2707df;await this[_0x33426f(0x282)]();}async[_0x2707df(0x158)]({message:_0x458801,attributes:_0x2e438e}){const _0x42a12a=_0x2707df;await this[_0x42a12a(0x283)]({'userMessage':_0x458801,'attributes':_0x2e438e});}[_0x2707df(0x149)](){const _0xf8e042=_0x2707df,_0x34a645=this[_0xf8e042(0x202)][_0xf8e042(0x1bf)][_0xf8e042(0x1b4)](_0xf8e042(0x261));if(!_0x34a645)throw new _0x3e6794(_0xf8e042(0x196),this);return _0x34a645;}async[_0x2707df(0x282)](_0x33988f){const _0x374f93=_0x2707df;try{this[_0x374f93(0x181)][_0x374f93(0x15a)](),await this[_0x374f93(0x2a0)](_0x33988f);}catch(_0x40e3cd){this[_0x374f93(0x181)][_0x374f93(0x20e)]({'errorMessage':_0x5dc244(this[_0x374f93(0x202)][_0x374f93(0x14d)],_0x374f93(0x1ae)),'id':_0x33988f||_0x316623()}),console[_0x374f93(0x1da)](_0x40e3cd),this[_0x374f93(0x284)]=void 0x0,this[_0x374f93(0x181)][_0x374f93(0x249)]();}}async[_0x2707df(0x2a0)](_0x12deba){const _0x58a67d=_0x2707df;let _0x45fdcc;this[_0x58a67d(0x202)][_0x58a67d(0x135)][_0x58a67d(0x14e)](_0x58a67d(0x28e))&&this[_0x58a67d(0x202)][_0x58a67d(0x135)][_0x58a67d(0x1b4)](_0x58a67d(0x28e))[_0x58a67d(0x18c)](),_0x12deba||!this[_0x58a67d(0x284)]?_0x45fdcc=this[_0x58a67d(0x202)][_0x58a67d(0x1bf)][_0x58a67d(0x1b4)](_0x58a67d(0x166)):this[_0x58a67d(0x181)][_0x58a67d(0x1ff)]&&(_0x45fdcc=this[_0x58a67d(0x284)][_0x58a67d(0x152)]['id']),await this[_0x58a67d(0x1bb)]();const _0x10c766=this[_0x58a67d(0x149)](),_0x1cf38a=_0x12deba||_0x316623();this[_0x58a67d(0x284)]=new _0x2941e1({'connector':this[_0x58a67d(0x20d)],'chatModels':this[_0x58a67d(0x243)],'selectedModelId':_0x45fdcc,'conversationId':_0x1cf38a,'group':_0x10c766,'getEditor':()=>_0x1707b4(this[_0x58a67d(0x202)]),'isFromHistory':!!_0x12deba}),this[_0x58a67d(0x284)][_0x58a67d(0x28f)](_0x58a67d(0x1df),_0x58a67d(0x138))['to'](this),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x2a5),(_0x2b6dee,_0x5e7b28)=>{const _0x3ecd34=_0x58a67d;this[_0x3ecd34(0x181)][_0x3ecd34(0x1fb)](_0x5e7b28),this[_0x3ecd34(0x181)][_0x3ecd34(0x215)](),this[_0x3ecd34(0x181)][_0x3ecd34(0x20a)](),this[_0x3ecd34(0x181)][_0x3ecd34(0x1a9)](),_0x12deba||(this[_0x3ecd34(0x181)][_0x3ecd34(0x193)](),this[_0x3ecd34(0x18e)]());}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x27d),(_0x3f10e5,_0x281560)=>{const _0x51b7df=_0x58a67d;this[_0x51b7df(0x181)][_0x51b7df(0x2a6)](_0x281560[_0x51b7df(0x248)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x153),(_0x23c7ab,_0xddbff6)=>{const _0x3cb527=_0x58a67d;this[_0x3cb527(0x181)][_0x3cb527(0x154)](_0xddbff6);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x132),()=>{const _0x25eb74=_0x58a67d,_0x3cb164=this[_0x25eb74(0x181)][_0x25eb74(0x177)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x25eb74(0x181)][_0x25eb74(0x1e6)](_0x3cb164);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x143),()=>{const _0x52a5b3=_0x58a67d,_0x34f4f3=this[_0x52a5b3(0x181)][_0x52a5b3(0x177)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x52a5b3(0x181)][_0x52a5b3(0x1e6)](_0x34f4f3);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x186),(_0x456a78,_0x1456cd)=>{const _0x7a142=_0x58a67d;this[_0x7a142(0x181)][_0x7a142(0x185)](_0x1456cd,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1ad),(_0x3dc9fb,_0x1fdea3)=>{const _0x1cfedf=_0x58a67d;this[_0x1cfedf(0x181)][_0x1cfedf(0x185)](_0x1fdea3,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x138),()=>{const _0x74f0fd=_0x58a67d;this[_0x74f0fd(0x181)][_0x74f0fd(0x29a)]();}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x188),async()=>{const _0x1480f0=_0x58a67d;await this[_0x1480f0(0x181)][_0x1480f0(0x1de)]();}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1d3),(_0x4c19ba,_0x2b9967)=>{const _0x650862=_0x58a67d;this[_0x650862(0x181)][_0x650862(0x23c)](_0x2b9967['id']);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x266),(_0x5b5c5a,_0x1b64d1,_0x3e419d)=>{const _0x390a99=_0x58a67d;this[_0x390a99(0x239)](_0x1b64d1,_0x3e419d);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x200),(_0x163da6,_0xbb9f98)=>{const _0x456484=_0x58a67d;_0x456484(0x22f)===_0xbb9f98[_0x456484(0x1b0)]?this[_0x456484(0x181)][_0x456484(0x280)](_0xbb9f98):this[_0x456484(0x181)][_0x456484(0x198)](_0xbb9f98);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x2ac),async(_0x52c626,_0x15fe92)=>{const _0x4b658b=_0x58a67d;await this[_0x4b658b(0x1b7)]({'reply':_0x15fe92});}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x17a),(_0x4ab0e4,{reply:_0x3af2aa,index:_0x48243e,state:_0x880de7})=>{const _0x3a808c=_0x58a67d;this[_0x3a808c(0x181)][_0x3a808c(0x21a)]({'id':_0x3af2aa['id'],'index':_0x48243e,'state':_0x880de7}),this[_0x3a808c(0x235)]?.[_0x3a808c(0x260)][_0x3a808c(0x25c)](_0x3af2aa['id'])&&this[_0x3a808c(0x235)]?.[_0x3a808c(0x294)]==_0x48243e&&this[_0x3a808c(0x29b)]?.[_0x3a808c(0x27f)](_0x880de7);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x290),(_0x4ebe9a,_0x56cde1)=>{const _0x16e8d7=_0x58a67d;if(this[_0x16e8d7(0x181)][_0x16e8d7(0x25b)](_0x56cde1[_0x16e8d7(0x254)],_0x56cde1[_0x16e8d7(0x21c)]),_0x16e8d7(0x21d)===_0x56cde1[_0x16e8d7(0x254)][_0x16e8d7(0x1b0)]){const _0x2dc0aa=[..._0x1707b4(this[_0x16e8d7(0x202)])[_0x16e8d7(0x27c)][_0x16e8d7(0x1f5)][_0x16e8d7(0x21d)][_0x16e8d7(0x24b)]()];this[_0x16e8d7(0x156)][_0x16e8d7(0x1e5)](_0x2dc0aa,_0x16e8d7(0x26c)+this[_0x16e8d7(0x284)]?.['id']);}}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x29e),(_0x502b86,_0x2f3932)=>{const _0x1e4b0e=_0x58a67d;this[_0x1e4b0e(0x181)][_0x1e4b0e(0x16a)](_0x2f3932[_0x1e4b0e(0x1f2)]),_0x1e4b0e(0x1d2)==_0x2f3932[_0x1e4b0e(0x1f2)]&&this[_0x1e4b0e(0x18d)](),_0x1e4b0e(0x21d)===_0x2f3932[_0x1e4b0e(0x1b0)]&&this[_0x1e4b0e(0x156)][_0x1e4b0e(0x250)](_0x1e4b0e(0x26c)+this[_0x1e4b0e(0x284)]?.['id']);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x164),(_0x25fa29,_0x21633a)=>{const _0x5d9cc5=_0x58a67d;this[_0x5d9cc5(0x181)][_0x5d9cc5(0x240)](_0x21633a[_0x5d9cc5(0x254)][_0x5d9cc5(0x1f2)],_0x21633a[_0x5d9cc5(0x21c)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1d9),(_0x21ad97,_0x5643ca)=>{const _0x55d23f=_0x58a67d;this[_0x55d23f(0x181)][_0x55d23f(0x23e)](_0x5643ca[_0x55d23f(0x1dd)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1b9),(_0x2fc5bc,_0x1e72f1)=>{const _0x3d2591=_0x58a67d;this[_0x3d2591(0x181)][_0x3d2591(0x276)](_0x1e72f1[_0x3d2591(0x2ba)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x222),(_0x7054b3,_0x4d9132)=>{const _0x580f48=_0x58a67d;this[_0x580f48(0x181)][_0x580f48(0x174)](_0x4d9132[_0x580f48(0x221)],_0x4d9132[_0x580f48(0x1ca)],_0x4d9132[_0x580f48(0x2b7)],_0x4d9132[_0x580f48(0x247)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x2a4),(_0x19b5a4,_0x129e17)=>{const _0x516bc1=_0x58a67d;this[_0x516bc1(0x181)][_0x516bc1(0x1b8)](_0x129e17[_0x516bc1(0x221)],_0x129e17[_0x516bc1(0x1f0)],_0x129e17[_0x516bc1(0x25f)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x229),(_0x1be99e,_0x20155a)=>{const _0x53e32d=_0x58a67d;this[_0x53e32d(0x181)][_0x53e32d(0x1c9)](_0x20155a);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1d0),async(_0x595e8e,_0x15e73c)=>{const _0x38dea1=_0x58a67d,_0x31f453=(await this[_0x38dea1(0x243)][_0x38dea1(0x1c5)]())[_0x38dea1(0x170)](_0x2e9558=>_0x2e9558['id']===_0x15e73c[_0x38dea1(0x152)]?.['id'])||null;this[_0x38dea1(0x181)][_0x38dea1(0x167)](_0x31f453,_0x15e73c[_0x38dea1(0x19d)]);}),this[_0x58a67d(0x284)]['on'](_0x58a67d(0x1da),(_0x4e2c1a,{error:_0x120ddf,interactionId:_0x50d528,fileName:_0x29ac5d,url:_0x2d74d6,sourceId:_0x156f4f,sourceLabel:_0x5788f4})=>{const _0x3426fb=_0x58a67d,_0x5dc0f6=_0x50d528?_0x50d528+':'+_0x316623():_0x316623();_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x176))?this[_0x3426fb(0x181)][_0x3426fb(0x244)]({'staticMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x288)),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x26a))||_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1a6))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1ae)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x2b3))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1c1),_0x29ac5d),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1a5))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x26f),_0x2d74d6),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x183))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x21f)),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1d7))?this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1fd)),'id':_0x5dc0f6}):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1c7))?(_0x156f4f&&this[_0x3426fb(0x181)][_0x3426fb(0x18a)](_0x156f4f),this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x287),_0x5788f4||_0x3426fb(0x1ca)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1cb))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1d8)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x1cc))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x159)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x242))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x180)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x22b))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x133)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x2be))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x21b)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):_0x120ddf[_0x3426fb(0x226)][_0x3426fb(0x1aa)](_0x3426fb(0x13b))?(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x2bd)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf)):(this[_0x3426fb(0x181)][_0x3426fb(0x20e)]({'errorMessage':_0x5dc244(this[_0x3426fb(0x202)][_0x3426fb(0x14d)],_0x3426fb(0x1ce)),'id':_0x5dc0f6}),this[_0x3426fb(0x2b5)](_0x120ddf));}),await this[_0x58a67d(0x284)][_0x58a67d(0x17f)](this[_0x58a67d(0x202)][_0x58a67d(0x1bf)][_0x58a67d(0x1b4)](_0x58a67d(0x2bb))),_0x12deba||await this[_0x58a67d(0x284)][_0x58a67d(0x29c)]();}async[_0x2707df(0x283)]({userMessage:_0x503883,attributes:_0x4e3bcd}){const _0x3907d0=_0x2707df;if(!this[_0x3907d0(0x284)])throw new _0x3e6794(_0x3907d0(0x136));if(this[_0x3907d0(0x284)][_0x3907d0(0x281)]()){const _0x533a98=await this[_0x3907d0(0x156)][_0x3907d0(0x15c)]();await this[_0x3907d0(0x284)][_0x3907d0(0x25e)](_0x533a98);}this[_0x3907d0(0x284)]['id']&&this[_0x3907d0(0x284)][_0x3907d0(0x157)]&&await this[_0x3907d0(0x284)][_0x3907d0(0x1c6)]({'userMessage':_0x503883,'attributes':_0x4e3bcd});}[_0x2707df(0x234)](){const _0x579ab2=_0x2707df;console[_0x579ab2(0x278)](_0x579ab2(0x13f));}[_0x2707df(0x17d)](_0x584524){const _0x74ab10=_0x2707df;this[_0x74ab10(0x181)][_0x74ab10(0x1eb)](_0x584524);}[_0x2707df(0x2b5)](_0x195e43){const _0x57c4d5=_0x2707df;_0x456f50(_0x195e43[_0x57c4d5(0x226)]);}[_0x2707df(0x1a3)](_0x129416){const _0x7094d8=_0x2707df;this[_0x7094d8(0x284)]?.[_0x7094d8(0x277)](_0x129416);}[_0x2707df(0x1ba)](){const _0x118551=_0x2707df;this[_0x118551(0x284)]?.[_0x118551(0x2a9)]();}[_0x2707df(0x1ab)](){const _0x1e26ad=_0x2707df;this[_0x1e26ad(0x284)]?.[_0x1e26ad(0x189)]();}[_0x2707df(0x1c4)](_0x39c992){const _0x48acb3=_0x2707df,[_0x362c18,_0x4ca53a]=_0x39c992[_0x48acb3(0x144)](':'),_0x3e8d81=this[_0x48acb3(0x284)][_0x48acb3(0x194)](_0x362c18),_0xa6e767=_0x3e8d81[_0x48acb3(0x25a)](_0x4ca53a);return{'interaction':_0x3e8d81,'reply':_0xa6e767};}[_0x2707df(0x1ef)](_0x59f299,_0x2fc468=!0x1){const _0xed5cf=_0x2707df,_0x505a84=_0x1707b4(this[_0xed5cf(0x202)]),_0x190c72={'target':_0x505a84[_0xed5cf(0x197)][_0xed5cf(0x18f)][_0xed5cf(0x160)][_0xed5cf(0x2a1)](_0x505a84[_0xed5cf(0x197)][_0xed5cf(0x269)][_0xed5cf(0x232)](_0x59f299)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2fc468};_0x2fc468&&(_0x190c72[_0xed5cf(0x2b2)]=!0x0),_0x3c3e16(_0x190c72);}[_0x2707df(0x239)](_0x3fd4b1,_0x24fc48=!0x1){const _0x5b3592=_0x2707df;this[_0x5b3592(0x181)][_0x5b3592(0x266)](_0x3fd4b1||_0x5dc244(this[_0x5b3592(0x202)][_0x5b3592(0x14d)],_0x5b3592(0x1f1)),_0x24fc48);}async[_0x2707df(0x1b7)]({reply:_0x2f2d0c,renderingStrategy:_0x5b2092}){const _0x398140=_0x2707df,{id:_0x4badd5,interactionId:_0x14bada,isDone:_0xa66114,type:_0x42e155,parsedContent:_0x1e32be}=_0x2f2d0c,_0x417d2b=_0x14bada+':'+_0x4badd5;if(_0x398140(0x203)===_0x42e155){const _0x500dcc=_0x2f2d0c[_0x398140(0x213)]({'showDiff':this[_0x398140(0x181)][_0x398140(0x1be)]});await this[_0x398140(0x181)][_0x398140(0x140)]({'id':_0x417d2b,'parts':_0x500dcc,'renderingStrategy':_0x5b2092,'isDone':_0xa66114});}else _0x398140(0x22f)===_0x42e155&&await this[_0x398140(0x181)][_0x398140(0x1af)]({'id':_0x417d2b,'parsedContent':_0x1e32be,'renderingStrategy':_0x5b2092,'isDone':_0xa66114});_0xa66114&&_0x2f2d0c[_0x398140(0x199)][_0x398140(0x238)]>0x0&&this[_0x398140(0x181)][_0x398140(0x24a)](_0x417d2b,_0x2f2d0c[_0x398140(0x199)]);}async[_0x2707df(0x1bb)](){const _0x48dabe=_0x2707df,_0x101298=this[_0x48dabe(0x284)]?.[_0x48dabe(0x2a7)];_0x101298&&(_0x101298[_0x48dabe(0x256)](),this[_0x48dabe(0x181)][_0x48dabe(0x16e)](_0x101298));}async[_0x2707df(0x175)](){const _0x20be8d=_0x2707df,_0x987e2a=this[_0x20be8d(0x284)]?.[_0x20be8d(0x2a7)];if(_0x987e2a){for await(const _0x909c1a of _0x987e2a[_0x20be8d(0x298)])await this[_0x20be8d(0x1b7)]({'reply':_0x909c1a,'renderingStrategy':_0x20be8d(0x1b6)});}}[_0x2707df(0x1bd)](_0x46535f){const _0x26ab95=_0x2707df,_0x2ce336={'positiveCount':_0x46535f[_0x26ab95(0x20c)][_0x26ab95(0x1ed)](_0x449f06=>_0x26ab95(0x270)===_0x449f06[_0x26ab95(0x28d)])[_0x26ab95(0x238)],'totalCount':_0x46535f[_0x26ab95(0x20c)][_0x26ab95(0x238)],'modificationId':_0x46535f['id']},_0x1232b9=this[_0x26ab95(0x284)][_0x26ab95(0x194)](_0x46535f[_0x26ab95(0x279)])[_0x26ab95(0x268)];_0x1232b9&&this[_0x26ab95(0x20d)][_0x26ab95(0x27b)](this[_0x26ab95(0x284)]['id'],_0x1232b9,_0x2ce336);}[_0x2707df(0x16c)](_0x16b535){const _0x4235e2=_0x2707df;let _0x11cadc=null,_0x2a71fe=null;this['on'](_0x4235e2(0x1df),(_0x34b942,_0x3d8a3d,_0x4cad1b)=>{const _0x216c45=_0x4235e2;_0x4cad1b['id']!==_0x11cadc&&(_0x11cadc=_0x4cad1b['id'],_0x2a71fe=this[_0x216c45(0x1e8)](_0x4cad1b)),_0x16b535(_0x3d8a3d,_0x2a71fe);});}[_0x2707df(0x1e8)](_0xb9ad5){const _0x324467=_0x2707df,_0x2dd5c6=this[_0x324467(0x181)],_0x44265a=()=>{const _0x3b0ab4=_0x324467;_0xb9ad5[_0x3b0ab4(0x233)](),_0xb9ad5[_0x3b0ab4(0x236)](),_0x2dd5c6[_0x3b0ab4(0x272)]();},_0x18fd05=()=>{const _0x3ed546=_0x324467;_0xb9ad5[_0x3ed546(0x2b0)]&&(_0xb9ad5[_0x3ed546(0x2b0)][_0x3ed546(0x162)](),_0xb9ad5[_0x3ed546(0x2b0)]=void 0x0);};return{'insertTextReply':(_0x3abf8e,_0x479a02)=>{const _0x3d3982=_0x324467;_0x18fd05(),_0x44265a();const _0x5b2586=_0xb9ad5[_0x3d3982(0x2b0)]=_0xb9ad5[_0x3d3982(0x19a)]({'type':_0x3d3982(0x22f),'interactionId':_0xb9ad5['id'],'content':_0x3abf8e,'id':_0x479a02||_0x316623()});return _0x18fd05(),_0x5b2586;},'insertCustomElement':async(_0x3308ad,_0x1f1be3)=>(_0x18fd05(),_0x44265a(),_0x2dd5c6[_0x324467(0x2b4)](_0x3308ad,_0x1f1be3||_0x316623())),'setLoadingMessage':_0x2b665c=>{const _0xba4631=_0x324467;_0x2dd5c6[_0xba4631(0x1e6)](_0x2b665c);},'clearLoadingMessage':()=>{const _0x3e9b83=_0x324467;_0x2dd5c6[_0x3e9b83(0x272)]();}};}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2a0ffa=_0x28db;(function(_0x128897,_0x6af7d8){const _0x2caa68=_0x28db,_0x151681=_0x128897();while(!![]){try{const _0x2620b7=parseInt(_0x2caa68(0x24a))/0x1+parseInt(_0x2caa68(0x1fd))/0x2*(-parseInt(_0x2caa68(0x24c))/0x3)+-parseInt(_0x2caa68(0x278))/0x4*(parseInt(_0x2caa68(0x1e4))/0x5)+-parseInt(_0x2caa68(0x1e3))/0x6*(-parseInt(_0x2caa68(0x231))/0x7)+-parseInt(_0x2caa68(0x1da))/0x8+-parseInt(_0x2caa68(0x20b))/0x9*(parseInt(_0x2caa68(0x25f))/0xa)+parseInt(_0x2caa68(0x269))/0xb;if(_0x2620b7===_0x6af7d8)break;else _0x151681['push'](_0x151681['shift']());}catch(_0xba2268){_0x151681['push'](_0x151681['shift']());}}}(_0xe7ea,0x1c2c2));import{ContextPlugin as _0x4f2910}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x36b33c}from'ckeditor5/src/utils.js';import{AIChatView as _0x5a7760}from'./ui/aichatview.js';import{AITabs as _0x2c7996}from'../aitabs/aitabs.js';import{getTranslation as _0x5ea92d}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3a8131}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x2a3413}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x3c63f6}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x59a95e}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';function _0x28db(_0x4d5f3c,_0x18bbfc){const _0xe7eada=_0xe7ea();return _0x28db=function(_0x28db79,_0x206209){_0x28db79=_0x28db79-0x1ca;let _0x21f91d=_0xe7eada[_0x28db79];return _0x21f91d;},_0x28db(_0x4d5f3c,_0x18bbfc);}import{getEditorFromContext as _0x7083ab}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x505374}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4f2910{static get[_0x2a0ffa(0x1d7)](){return[_0x2c7996];}[_0x2a0ffa(0x26e)];static get[_0x2a0ffa(0x23e)](){const _0x6d6165=_0x2a0ffa;return _0x6d6165(0x279);}static get[_0x2a0ffa(0x24d)](){return!0x0;}static get[_0x2a0ffa(0x218)](){return!0x0;}[_0x2a0ffa(0x1df)]=_0x2a0ffa(0x271);[_0x2a0ffa(0x242)]=!0x0;[_0x2a0ffa(0x275)];[_0x2a0ffa(0x214)];[_0x2a0ffa(0x211)]=void 0x0;[_0x2a0ffa(0x230)]=!0x1;constructor(_0x356d7e){const _0x4e593f=_0x2a0ffa;super(_0x356d7e);const _0x1d917a=this[_0x4e593f(0x1f9)][_0x4e593f(0x216)][_0x4e593f(0x1dc)](_0x4e593f(0x1e7));this[_0x4e593f(0x222)](_0x4e593f(0x1fc),!0x1),this[_0x4e593f(0x275)]=new _0x3c63f6(),this[_0x4e593f(0x26e)]=new _0x5a7760(this[_0x4e593f(0x1f9)][_0x4e593f(0x1dd)],{'showResizeButton':_0x1d917a[_0x4e593f(0x20e)],'contextResourcesSearchInputVisibleFrom':this[_0x4e593f(0x1f9)][_0x4e593f(0x207)][_0x4e593f(0x1dc)](_0x4e593f(0x266))}),this[_0x4e593f(0x26e)][_0x4e593f(0x27d)](..._0x59a95e)['to'](this),this[_0x4e593f(0x26e)]['on'](_0x4e593f(0x272),(_0x546b50,{showDiff:_0x263085})=>{const _0x276789=_0x4e593f;this[_0x276789(0x242)]=_0x263085;}),_0x1d917a[_0x4e593f(0x25e)][_0x4e593f(0x22f)]({'id':_0x4e593f(0x243),'buttonLabel':_0x5ea92d(this[_0x4e593f(0x1f9)][_0x4e593f(0x1dd)],_0x4e593f(0x1d5)),'buttonIcon':_0x3a8131,'order':0x0,'content':this[_0x4e593f(0x26e)]}),this[_0x4e593f(0x26e)][_0x4e593f(0x209)][_0x4e593f(0x25a)](_0x4e593f(0x22a))['to'](this,_0x4e593f(0x1fc),_0x4e19a9=>_0x4e19a9),this[_0x4e593f(0x26e)][_0x4e593f(0x265)][_0x4e593f(0x25a)](_0x4e593f(0x1e9))['to'](this,_0x4e593f(0x1fc),_0xa2c83b=>_0xa2c83b),this[_0x4e593f(0x26e)][_0x4e593f(0x209)][_0x4e593f(0x26a)](this[_0x4e593f(0x233)]()),this[_0x4e593f(0x25a)](_0x4e593f(0x1cd))['to'](this[_0x4e593f(0x26e)][_0x4e593f(0x209)],_0x4e593f(0x1cd));}[_0x2a0ffa(0x25d)](){const _0x30f88d=_0x2a0ffa;super[_0x30f88d(0x25d)](),this[_0x30f88d(0x211)]&&clearInterval(this[_0x30f88d(0x211)]);}[_0x2a0ffa(0x1f0)](_0x14bb64){const _0x21b3a6=_0x2a0ffa,_0x30e35e=this[_0x21b3a6(0x1f9)][_0x21b3a6(0x207)][_0x21b3a6(0x1dc)](_0x21b3a6(0x1e5))??_0x5ea92d(this[_0x21b3a6(0x1f9)][_0x21b3a6(0x1dd)],_0x21b3a6(0x229));this[_0x21b3a6(0x26e)][_0x21b3a6(0x265)][_0x21b3a6(0x256)](),this[_0x21b3a6(0x26e)][_0x21b3a6(0x209)][_0x21b3a6(0x27a)](),this[_0x21b3a6(0x26e)][_0x21b3a6(0x209)][_0x21b3a6(0x1de)](_0x14bb64[_0x21b3a6(0x217)],!this[_0x21b3a6(0x1f9)][_0x21b3a6(0x207)][_0x21b3a6(0x1dc)](_0x21b3a6(0x1d4))),this[_0x21b3a6(0x234)]({'id':_0x21b3a6(0x22c),'staticMessage':_0x30e35e}),this[_0x21b3a6(0x220)](_0x21b3a6(0x1ea));}[_0x2a0ffa(0x234)]({id:_0x42e96d,staticMessage:_0x2b83e4}){const _0x24cab0=_0x2a0ffa;this[_0x24cab0(0x26e)][_0x24cab0(0x265)][_0x24cab0(0x276)](_0x24cab0(0x215),{'id':_0x42e96d,'initialContent':_0x24cab0(0x232)+_0x2b83e4+_0x24cab0(0x260)});}[_0x2a0ffa(0x1fe)](_0xefb567){const _0x2184c4=_0x2a0ffa,_0x203ba4=_0xefb567[_0x2184c4(0x20f)]?.[_0x2184c4(0x1f1)]||_0xefb567[_0x2184c4(0x21c)];this[_0x2184c4(0x26e)][_0x2184c4(0x265)][_0x2184c4(0x276)](_0x2184c4(0x1f4),{'contextItems':Array[_0x2184c4(0x258)](_0xefb567[_0x2184c4(0x25c)][_0x2184c4(0x246)]()),'initialContent':_0x2184c4(0x232)+_0x203ba4+_0x2184c4(0x260),'id':_0xefb567['id']});}[_0x2a0ffa(0x206)]({errorMessage:_0x4da9c5,id:_0x1a878b}){const _0xeca186=_0x2a0ffa;this[_0xeca186(0x26e)][_0xeca186(0x265)][_0xeca186(0x276)](_0xeca186(0x235),{'initialContent':_0xeca186(0x232)+_0x4da9c5+_0xeca186(0x260),'id':_0x1a878b});}[_0x2a0ffa(0x21b)](_0x2767e5){const _0x44817f=_0x2a0ffa;return this[_0x44817f(0x275)][_0x44817f(0x237)](async()=>{const _0xe2eb75=_0x44817f;this[_0xe2eb75(0x26e)][_0xe2eb75(0x265)][_0xe2eb75(0x276)](_0xe2eb75(0x215),{'id':_0x2767e5[_0xe2eb75(0x1fb)]+':'+_0x2767e5['id']}),this[_0xe2eb75(0x245)]();});}async[_0x2a0ffa(0x1d8)](_0x5d9bc0){const _0x959fdd=_0x2a0ffa,_0x3fea96=_0x7083ab(this[_0x959fdd(0x1f9)]);let _0x41d0b4=_0x3fea96[_0x959fdd(0x207)][_0x959fdd(0x1dc)](_0x959fdd(0x262))||[..._0x505374];if(_0x3fea96[_0x959fdd(0x216)][_0x959fdd(0x203)](_0x959fdd(0x22d))){if(!this[_0x959fdd(0x230)]){this[_0x959fdd(0x230)]=!0x0;const _0x376458=_0x3fea96[_0x959fdd(0x255)][_0x959fdd(0x1dc)](_0x959fdd(0x1cf));this[_0x959fdd(0x26e)][_0x959fdd(0x265)][_0x959fdd(0x25a)](_0x959fdd(0x267))['to'](_0x376458,_0x959fdd(0x1f8));}}else _0x41d0b4=_0x41d0b4[_0x959fdd(0x273)](_0x29aa6a=>_0x959fdd(0x24f)!=_0x29aa6a);return this[_0x959fdd(0x275)][_0x959fdd(0x237)](async()=>{const _0x4f4e41=_0x959fdd;this[_0x4f4e41(0x26e)][_0x4f4e41(0x265)][_0x4f4e41(0x276)](_0x4f4e41(0x23c),{'id':_0x5d9bc0[_0x4f4e41(0x1fb)]+':'+_0x5d9bc0['id'],'areActionsDisabled':_0x5d9bc0[_0x4f4e41(0x213)],'showDiff':this[_0x4f4e41(0x242)],'availableActions':_0x41d0b4}),this[_0x4f4e41(0x245)]();});}[_0x2a0ffa(0x210)](_0x3b2961,_0x5057e6){const _0xe34e71=_0x2a0ffa,_0x7cb3fd=this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x1f2)][_0xe34e71(0x21f)];if(_0x7cb3fd instanceof _0x2a3413)return this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x1f2)][_0xe34e71(0x1d9)](_0x7cb3fd),void this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x276)](_0xe34e71(0x240),{'id':_0x3b2961['id'],'capabilities':{'isWebSearchEnabled':_0x7cb3fd[_0xe34e71(0x239)][_0xe34e71(0x1ce)]||_0x5057e6[_0xe34e71(0x1ce)],'isReasoningEnabled':_0x7cb3fd[_0xe34e71(0x239)][_0xe34e71(0x223)]||_0x5057e6[_0xe34e71(0x223)]}});this[_0xe34e71(0x26e)][_0xe34e71(0x265)][_0xe34e71(0x276)](_0xe34e71(0x240),{'id':_0x3b2961['id'],'capabilities':_0x5057e6});}async[_0x2a0ffa(0x23b)](_0x41bea7,_0xdf571d){const _0x10baba=_0x2a0ffa;let _0x32ed62;return await this[_0x10baba(0x275)][_0x10baba(0x237)](async()=>{const _0x370822=_0x10baba;_0x32ed62=this[_0x370822(0x26e)][_0x370822(0x265)][_0x370822(0x276)](_0x370822(0x221),{'content':_0x41bea7,'id':_0xdf571d});}),_0x32ed62;}[_0x2a0ffa(0x224)](_0x43325e){const _0xa74f16=_0x2a0ffa;this[_0xa74f16(0x26e)][_0xa74f16(0x265)][_0xa74f16(0x263)](_0x43325e);}[_0x2a0ffa(0x21e)](_0x3c9dce){const _0x22e561=_0x2a0ffa;return this[_0x22e561(0x26e)][_0x22e561(0x265)][_0x22e561(0x1fa)](_0x3c9dce);}[_0x2a0ffa(0x1f5)](_0x3eaf41){const _0x53b9ec=_0x2a0ffa,_0x1b48f2=this[_0x53b9ec(0x26e)][_0x53b9ec(0x265)][_0x53b9ec(0x1f2)][_0x53b9ec(0x1e0)](_0x4ec0ae=>_0x4ec0ae[_0x53b9ec(0x219)]['id']==_0x3eaf41['id']&&_0x4ec0ae instanceof _0x2a3413);_0x1b48f2&&_0x1b48f2[_0x53b9ec(0x222)](_0x53b9ec(0x241),_0x3eaf41[_0x53b9ec(0x241)]);}async[_0x2a0ffa(0x264)](_0x5f4c60){const _0x53cc6e=_0x2a0ffa,_0x3559e2=_0x5f4c60[_0x53cc6e(0x1ec)]||this[_0x53cc6e(0x1df)];return this[_0x53cc6e(0x275)][_0x53cc6e(0x237)](async _0x39b7db=>{const _0x288fdb=_0x53cc6e;await this[_0x288fdb(0x26e)][_0x288fdb(0x265)][_0x288fdb(0x227)]({..._0x5f4c60,'abortSignal':_0x39b7db,'renderingStrategy':_0x3559e2}),_0x5f4c60[_0x288fdb(0x201)]&&this[_0x288fdb(0x22e)](_0x5f4c60['id']);});}[_0x2a0ffa(0x208)](_0x361abe,_0x1902b7){const _0x427518=_0x2a0ffa;this[_0x427518(0x26e)][_0x427518(0x265)][_0x427518(0x257)](_0x361abe,_0x1902b7);}async[_0x2a0ffa(0x1d0)](_0x1e285c){const _0x5b7970=_0x2a0ffa,_0xd91e5e=_0x1e285c[_0x5b7970(0x1ec)]||this[_0x5b7970(0x1df)];return this[_0x5b7970(0x275)][_0x5b7970(0x237)](async _0x308528=>{const _0x1567ec=_0x5b7970;await this[_0x1567ec(0x26e)][_0x1567ec(0x265)][_0x1567ec(0x21d)]({..._0x1e285c,'abortSignal':_0x308528,'renderingStrategy':_0xd91e5e}),_0x1e285c[_0x1567ec(0x201)]&&this[_0x1567ec(0x22e)](_0x1e285c['id']);});}[_0x2a0ffa(0x1d1)](_0x3ea17b){const _0x544720=_0x2a0ffa;this[_0x544720(0x26e)][_0x544720(0x265)][_0x544720(0x27c)](_0x3ea17b);}[_0x2a0ffa(0x226)](_0xefa298){const _0x118067=_0x2a0ffa;this[_0x118067(0x26e)][_0x118067(0x265)][_0x118067(0x1d6)](_0xefa298);}[_0x2a0ffa(0x22e)](_0x475a48){const _0x206b52=_0x2a0ffa;this[_0x206b52(0x26e)][_0x206b52(0x265)][_0x206b52(0x24b)](_0x475a48);}[_0x2a0ffa(0x238)](_0x2bfa87){const _0x5e7ff2=_0x2a0ffa;this[_0x5e7ff2(0x26e)][_0x5e7ff2(0x265)][_0x5e7ff2(0x277)]()[_0x5e7ff2(0x273)](_0x53c054=>_0x53c054[_0x5e7ff2(0x23f)](_0x2bfa87))[_0x5e7ff2(0x248)](_0x3a4cf7=>this[_0x5e7ff2(0x26e)][_0x5e7ff2(0x265)][_0x5e7ff2(0x263)](_0x3a4cf7));}[_0x2a0ffa(0x270)](){const _0x315778=_0x2a0ffa,_0x3dfe7a=this[_0x315778(0x1e2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x315778(0x1cc)](_0x3dfe7a),this[_0x315778(0x26e)][_0x315778(0x209)][_0x315778(0x202)](!this[_0x315778(0x1f9)][_0x315778(0x207)][_0x315778(0x1dc)](_0x315778(0x1d4))),this[_0x315778(0x1fc)]=!0x0,this[_0x315778(0x26e)][_0x315778(0x265)][_0x315778(0x200)]();}[_0x2a0ffa(0x228)](_0x1331aa){const _0x3c1b0b=_0x2a0ffa;this[_0x3c1b0b(0x275)][_0x3c1b0b(0x254)](),this[_0x3c1b0b(0x26e)][_0x3c1b0b(0x265)][_0x3c1b0b(0x277)]()[_0x3c1b0b(0x273)](_0x1c05bd=>_0x1c05bd[_0x3c1b0b(0x23f)](_0x1331aa['id']))[_0x3c1b0b(0x248)](_0x3e56d9=>this[_0x3c1b0b(0x22e)](_0x3e56d9)),this[_0x3c1b0b(0x1fc)]=!0x1,this[_0x3c1b0b(0x26e)][_0x3c1b0b(0x265)][_0x3c1b0b(0x20a)]();}async[_0x2a0ffa(0x253)](){const _0x555ba6=_0x2a0ffa;return this[_0x555ba6(0x275)][_0x555ba6(0x1e8)][_0x555ba6(0x1f7)](()=>{const _0x5a1218=_0x555ba6;this[_0x5a1218(0x1fc)]=!0x1,this[_0x5a1218(0x26e)][_0x5a1218(0x265)][_0x5a1218(0x20a)]();});}[_0x2a0ffa(0x1ee)](_0xcb5ee1,_0x4dd5f6){const _0x1937b7=_0x2a0ffa;this[_0x1937b7(0x26e)][_0x1937b7(0x209)][_0x1937b7(0x1ee)](_0xcb5ee1,_0x4dd5f6);}[_0x2a0ffa(0x212)](_0x124caf){const _0x4f372f=_0x2a0ffa;this[_0x4f372f(0x26e)][_0x4f372f(0x209)][_0x4f372f(0x212)](_0x124caf);}[_0x2a0ffa(0x1ed)](_0x148b5f,_0xc70085){const _0x5d3819=_0x2a0ffa;this[_0x5d3819(0x26e)][_0x5d3819(0x209)][_0x5d3819(0x1ed)](_0x148b5f,_0xc70085);}[_0x2a0ffa(0x22b)](_0x430b45){const _0x1d8954=_0x2a0ffa;this[_0x1d8954(0x26e)][_0x1d8954(0x209)][_0x1d8954(0x22b)](_0x430b45);}[_0x2a0ffa(0x20d)](_0x33121c){const _0x3d3f4d=_0x2a0ffa;this[_0x3d3f4d(0x26e)][_0x3d3f4d(0x209)][_0x3d3f4d(0x20d)](_0x33121c);}[_0x2a0ffa(0x251)](){const _0x55ae5d=_0x2a0ffa;this[_0x55ae5d(0x26e)][_0x55ae5d(0x209)][_0x55ae5d(0x251)]();}[_0x2a0ffa(0x26f)](){const _0x840909=_0x2a0ffa;this[_0x840909(0x26e)][_0x840909(0x209)][_0x840909(0x26f)]();}[_0x2a0ffa(0x1db)](_0x466de2,_0x5a33cb,_0x3ec379){const _0x310f9b=_0x2a0ffa;this[_0x310f9b(0x26e)][_0x310f9b(0x209)][_0x310f9b(0x1db)](_0x466de2,_0x5a33cb,_0x3ec379);}[_0x2a0ffa(0x1ff)](){const _0x481de3=_0x2a0ffa;this[_0x481de3(0x26e)][_0x481de3(0x209)][_0x481de3(0x1ff)](),this[_0x481de3(0x26e)][_0x481de3(0x209)][_0x481de3(0x26a)](this[_0x481de3(0x233)]());}[_0x2a0ffa(0x261)](_0x114e29){const _0x5afda9=_0x2a0ffa;this[_0x5afda9(0x26e)][_0x5afda9(0x209)][_0x5afda9(0x261)](_0x114e29);}[_0x2a0ffa(0x26b)](_0x2e5144){const _0x485de=_0x2a0ffa;this[_0x485de(0x26e)][_0x485de(0x209)][_0x485de(0x21a)](_0x2e5144[_0x485de(0x1ce)]),this[_0x485de(0x26e)][_0x485de(0x209)][_0x485de(0x252)](_0x2e5144[_0x485de(0x223)]),this[_0x485de(0x26e)][_0x485de(0x209)][_0x485de(0x26a)](this[_0x485de(0x233)](_0x2e5144));}[_0x2a0ffa(0x23d)](_0xb46e2f,_0x60e86e){const _0x843d44=_0x2a0ffa;this[_0x843d44(0x26e)][_0x843d44(0x209)][_0x843d44(0x20c)](_0xb46e2f),_0x60e86e&&this[_0x843d44(0x26e)][_0x843d44(0x209)][_0x843d44(0x202)](!0x1);}[_0x2a0ffa(0x1e1)](_0x396cd0){const _0x3d1229=_0x2a0ffa;this[_0x3d1229(0x1df)]=_0x396cd0;}[_0x2a0ffa(0x259)](_0x3fb747){const _0x4297f2=_0x2a0ffa;this[_0x4297f2(0x26e)][_0x4297f2(0x265)][_0x4297f2(0x259)](_0x3fb747);}[_0x2a0ffa(0x1d2)](){const _0x43960b=_0x2a0ffa;this[_0x43960b(0x205)](_0x5ea92d(this[_0x43960b(0x1f9)][_0x43960b(0x1dd)],_0x43960b(0x1d5)));}[_0x2a0ffa(0x205)](_0x1c5cc9,_0x17bd89=!0x1){const _0x493d0f=_0x2a0ffa;if(_0x17bd89&&!_0x36b33c()&&_0x1c5cc9[_0x493d0f(0x225)])return this[_0x493d0f(0x26e)][_0x493d0f(0x25b)][_0x493d0f(0x236)]='',void this[_0x493d0f(0x1eb)](_0x1c5cc9);this[_0x493d0f(0x26e)][_0x493d0f(0x25b)][_0x493d0f(0x236)]=_0x1c5cc9;}[_0x2a0ffa(0x1cc)](_0x6ee84b){const _0x451f79=_0x2a0ffa;this[_0x451f79(0x26e)][_0x451f79(0x265)][_0x451f79(0x1cc)](_0x6ee84b);}[_0x2a0ffa(0x245)](){const _0x3ae2e4=_0x2a0ffa;this[_0x3ae2e4(0x26e)][_0x3ae2e4(0x265)][_0x3ae2e4(0x1cc)]('');}[_0x2a0ffa(0x1eb)](_0x550218){const _0x3fa02b=_0x2a0ffa;let _0x325dba=0x0;clearInterval(this[_0x3fa02b(0x211)]),this[_0x3fa02b(0x211)]=setInterval(()=>{const _0xcd1501=_0x3fa02b;this[_0xcd1501(0x26e)][_0xcd1501(0x25b)][_0xcd1501(0x236)]=this[_0xcd1501(0x26e)][_0xcd1501(0x25b)][_0xcd1501(0x236)]+_0x550218[_0x325dba],_0x325dba++,_0x325dba===_0x550218[_0xcd1501(0x225)]&&clearInterval(this[_0xcd1501(0x211)]);},0x1e);}[_0x2a0ffa(0x1f3)](_0x9923f6){const _0x2ae4bd=_0x2a0ffa;this[_0x2ae4bd(0x26e)][_0x2ae4bd(0x25b)][_0x2ae4bd(0x1cb)]=_0x9923f6;}[_0x2a0ffa(0x1e2)](_0x32e1c9){const _0x31d36d=_0x2a0ffa;return _0x32e1c9[_0x31d36d(0x1ce)]&&_0x32e1c9[_0x31d36d(0x223)]?_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x26c)):_0x32e1c9[_0x31d36d(0x1ce)]?_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x268)):_0x32e1c9[_0x31d36d(0x223)]?_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x1e6)):_0x5ea92d(this[_0x31d36d(0x1f9)][_0x31d36d(0x1dd)],_0x31d36d(0x1f6));}[_0x2a0ffa(0x233)](_0x3ec333){const _0x44e892=_0x2a0ffa;return _0x3ec333?_0x3ec333[_0x44e892(0x1ce)]&&_0x3ec333[_0x44e892(0x223)]?_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x249)):_0x3ec333[_0x44e892(0x1ce)]?_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x27b)):_0x3ec333[_0x44e892(0x223)]?_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x204)):_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x1ca)):_0x5ea92d(this[_0x44e892(0x1f9)][_0x44e892(0x1dd)],_0x44e892(0x1ca));}[_0x2a0ffa(0x26d)](_0x253c6b,_0x2dd29c,_0x356b30,_0x1b32ca){const _0x300b67=_0x2a0ffa;this[_0x300b67(0x26e)][_0x300b67(0x26d)](_0x253c6b,_0x2dd29c,_0x356b30,_0x1b32ca);}[_0x2a0ffa(0x23a)](_0x24db8b){const _0x4f85ec=_0x2a0ffa;this[_0x4f85ec(0x26e)][_0x4f85ec(0x23a)](_0x24db8b);}[_0x2a0ffa(0x247)](_0x5a0d99){const _0xa732=_0x2a0ffa;this[_0xa732(0x26e)][_0xa732(0x209)][_0xa732(0x247)](_0x5a0d99);}[_0x2a0ffa(0x274)](_0xdb3dae=!0x1){const _0x33f8d3=_0x2a0ffa;this[_0x33f8d3(0x26e)][_0x33f8d3(0x209)][_0x33f8d3(0x274)](_0xdb3dae);}[_0x2a0ffa(0x1ef)](_0x1606c9,_0x178f9a){const _0x446afc=_0x2a0ffa;this[_0x446afc(0x26e)][_0x446afc(0x265)][_0x446afc(0x250)](_0x1606c9,_0x178f9a);}[_0x2a0ffa(0x200)](){const _0x21964e=_0x2a0ffa;this[_0x21964e(0x26e)][_0x21964e(0x265)][_0x21964e(0x200)]();}[_0x2a0ffa(0x244)](){const _0x1eff6e=_0x2a0ffa;this[_0x1eff6e(0x26e)][_0x1eff6e(0x209)][_0x1eff6e(0x24e)]=!0x0;}[_0x2a0ffa(0x1d3)](){const _0x30aa4f=_0x2a0ffa;this[_0x30aa4f(0x26e)][_0x30aa4f(0x209)][_0x30aa4f(0x24e)]=!0x1;}}function _0xe7ea(){const _0x5e707f=['children','setIsMaximized','user-message','updateFeedInteractionHeader','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','then','value','context','hasItem','interactionId','isBusy','22alnarw','addFeedItemUserMessage','resetMessageInput','startAutoScroll','isDone','disableModelSelector','has','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setConversationTitle','addFeedItemError','config','updateFeedItemAIReplySources','chatControls','stopAutoScroll','667593zrFnbB','setModel','setConversationContext','showResizeButton','attributes','addFeedInteractionHeader','_titleAnimationInterval','removeContextItem','areActionsDisabled','_interactionPromiseResolver','ai-reply','plugins','availableModels','isPremiumPlugin','options','setWebSearch','addFeedItemAIReply','userMessage','updateSuggestionItem','hasFeedItem','last','fire','custom-element','set','isReasoningEnabled','removeFeedItem','length','setFeedItemAIReplySuggestionPartActive','updateReplyItem','stopInteraction','AI_CHAT_WELCOME_MESSAGE','isLoading','setIsUploadInProgress','conversation-start','TrackChanges','markFeedItemAsDone','addTab','_isTrackChangesCommandValueBound','7AzFOdl','<p>','_getInputPlaceholder','addFeedItemStaticMessage','error-message','label','enqueue','removeFeedInteraction','capabilities','closeSourceResourceBalloon','addFeedItemCustomElement','ai-suggestion-reply','setSelectedModel','pluginName','startsWith','interaction-header','isVisible','showDiff','chat','disableControls','clearLoadingMessage','values','setPromptInputValue','forEach','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','178389QLgDTX','markItemAsDone','42243Dceujd','isOfficialPlugin','isDisabled','insertSuggestion','scrollToSuggestion','clearPendingContextUI','setReasoning','finishInteraction','abort','commands','clear','updateWebSources','from','toggleLoadingSkeleton','bind','chatHeader','contextItems','destroy','view','30EpReBe','</p>','setAddContextOptions','ai.availableReplyActions','removeItem','updateFeedItemAIReplyContent','chatFeed','ai.chat.context.searchInputVisibleFrom','isTrackChangesOn','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','6349486wmAPDO','setInputPlaceholder','updateCapabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','populateSourceResourceBalloon','_view','clearConversationContextUI','startInteraction','streaming','toggleSuggestionDisplayMode','filter','focusPromptInput','_promiseQueue','addItem','getItemIds','4cZUZbn','AIChatUI','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateSuggestionPartState','delegate','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isMaximized','setLoadingMessage','isModelAvailable','isWebSearchEnabled','trackChanges','updateFeedItemAIReplySuggestionContent','updateFeedItemAIReplySuggestionPartState','resetConversationTitle','enableControls','ai.models.showModelSelector','AI_CHAT_HEADING','setSuggestionPartActive','requires','addFeedItemAISuggestion','remove','1305376EcTOeN','updateResourceState','get','locale','setModelList','feedItemRenderingStrategy','find','setFeedItemRenderingStrategy','prepareLoadingMessage','704502ivfAkL','1085220NDAqRY','ai.chat.welcomeMessage','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AITabs','queueEmptyPromise','isPending','conversationCreated','_animateConversationTitle','renderingStrategy','setContextItemLoading','addContextItem','scrollFeedToSuggestion','createConversation','displayedPrompt'];_0xe7ea=function(){return _0x5e707f;};return _0xe7ea();}
|
|
23
|
+
function _0x1e8f(_0x5100e2,_0x275d27){const _0x478154=_0x4781();return _0x1e8f=function(_0x1e8f6e,_0x37077c){_0x1e8f6e=_0x1e8f6e-0x1c8;let _0x491481=_0x478154[_0x1e8f6e];return _0x491481;},_0x1e8f(_0x5100e2,_0x275d27);}const _0x53483a=_0x1e8f;(function(_0x1725c0,_0x198912){const _0x2e8e4b=_0x1e8f,_0x2a8a31=_0x1725c0();while(!![]){try{const _0x40d470=parseInt(_0x2e8e4b(0x1da))/0x1+-parseInt(_0x2e8e4b(0x239))/0x2*(-parseInt(_0x2e8e4b(0x1ee))/0x3)+parseInt(_0x2e8e4b(0x224))/0x4+parseInt(_0x2e8e4b(0x271))/0x5+parseInt(_0x2e8e4b(0x255))/0x6+parseInt(_0x2e8e4b(0x248))/0x7+-parseInt(_0x2e8e4b(0x1ca))/0x8;if(_0x40d470===_0x198912)break;else _0x2a8a31['push'](_0x2a8a31['shift']());}catch(_0x4a0c20){_0x2a8a31['push'](_0x2a8a31['shift']());}}}(_0x4781,0x714d5));function _0x4781(){const _0x5b0065=['setFeedItemAIReplySuggestionPartActive','enqueue','addFeedItemError','renderingStrategy','3183060ckEexw','isBusy','_animateConversationTitle','markItemAsDone','chat','areActionsDisabled','userMessage','bind','streaming','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','23335176BGEBJk','forEach','setModel','isVisible','updateCapabilities','_titleAnimationInterval','last','clear','chatControls','ai-suggestion-reply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','enableModelSelector','closeSourceResourceBalloon','conversationCreated','hasItem','<p>','872361pTVdNA','setInputPlaceholder','removeFeedItem','scrollToSuggestion','addFeedItemAIReply','ai.chat.welcomeMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','isModelAvailable','interaction-header','updateFeedItemAIReplySuggestionContent','ai.models.showModelSelector','_isTrackChangesCommandValueBound','toggleSuggestionDisplayMode','updateReplyItem','toggleLoadingSkeleton','AI_CHAT_WELCOME_MESSAGE','clearLoadingMessage','find','setAddContextOptions','updateSuggestionPartState','201jSgieK','startInteraction','enableControls','insertSuggestion','setSuggestionPartActive','isOfficialPlugin','isTrackChangesOn','disableModelSelector','capabilities','updateResourceState','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','updateFeedItemAIReplyContent','setConversationContext','trackChanges','resetMessageInput','isWebSearchEnabled','setWebSearch','setLoadingMessage','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','commands','stopInteraction','</p>','removeFeedInteraction','setConversationTitle','options','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','clearConversationContextUI','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','config','focusPromptInput','set','setContextItemLoading','destroy','context','AITabs','showResizeButton','availableModels','view','updateFeedItemAIReplySuggestionPartState','ai.availableReplyActions','isReasoningEnabled','addFeedInteractionHeader','has','prepareLoadingMessage','startAutoScroll','startsWith','setSelectedModel','isMaximized','AI_CHAT_HEADING','isPending','createConversation','interactionId','updateFeedItemAIReplySources','removeItem','3482064irfjsH','error-message','isDisabled','requires','contextItems','addFeedItemStaticMessage','addFeedItemAISuggestion','values','_interactionPromiseResolver','queueEmptyPromise','populateSourceResourceBalloon','isDone','delegate','conversation-start','value','remove','hasFeedItem','from','setIsUploadInProgress','ai-reply','chatHeader','8546mPmOVl','displayedPrompt','setIsMaximized','label','_view','stopAutoScroll','finishInteraction','_promiseQueue','chatFeed','markFeedItemAsDone','clearPendingContextUI','length','updateSuggestionItem','updateFeedInteractionHeader','removeContextItem','1039633AGXbsZ','showDiff','children','addFeedItemUserMessage','getItemIds','updateWebSources','filter','ai.chat.context.searchInputVisibleFrom','TrackChanges','AIChatUI','fire','plugins','resetConversationTitle','3400098Hcczqc','addContextItem','setModelList','setPromptInputValue','isPremiumPlugin','locale','attributes','disableControls','get','pluginName','abort','isLoading','then','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','feedItemRenderingStrategy','user-message','custom-element','addItem','scrollFeedToSuggestion','setReasoning','addTab','_getInputPlaceholder','addFeedItemCustomElement','setFeedItemRenderingStrategy'];_0x4781=function(){return _0x5b0065;};return _0x4781();}import{ContextPlugin as _0x369e29}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4ecb05}from'ckeditor5/src/utils.js';import{AIChatView as _0x3fcbe1}from'./ui/aichatview.js';import{AITabs as _0x59fef4}from'../aitabs/aitabs.js';import{getTranslation as _0x1d47b3}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x5dfe42}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x7f8010}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x5dbfb8}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4187e8}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x1eb783}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x562810}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x369e29{static get[_0x53483a(0x227)](){return[_0x59fef4];}[_0x53483a(0x23d)];static get[_0x53483a(0x25e)](){const _0x1b56c1=_0x53483a;return _0x1b56c1(0x251);}static get[_0x53483a(0x1f3)](){return!0x0;}static get[_0x53483a(0x259)](){return!0x0;}[_0x53483a(0x263)]=_0x53483a(0x1c8);[_0x53483a(0x249)]=!0x0;[_0x53483a(0x240)];[_0x53483a(0x22c)];[_0x53483a(0x1cf)]=void 0x0;[_0x53483a(0x1e5)]=!0x1;constructor(_0xce31bf){const _0x5d27a7=_0x53483a;super(_0xce31bf);const _0x4920ef=this[_0x5d27a7(0x20f)][_0x5d27a7(0x253)][_0x5d27a7(0x25d)](_0x5d27a7(0x210));this[_0x5d27a7(0x20c)](_0x5d27a7(0x272),!0x1),this[_0x5d27a7(0x240)]=new _0x5dbfb8(),this[_0x5d27a7(0x23d)]=new _0x3fcbe1(this[_0x5d27a7(0x20f)][_0x5d27a7(0x25a)],{'showResizeButton':_0x4920ef[_0x5d27a7(0x211)],'contextResourcesSearchInputVisibleFrom':this[_0x5d27a7(0x20f)][_0x5d27a7(0x20a)][_0x5d27a7(0x25d)](_0x5d27a7(0x24f))}),this[_0x5d27a7(0x23d)][_0x5d27a7(0x230)](..._0x4187e8)['to'](this),this[_0x5d27a7(0x23d)]['on'](_0x5d27a7(0x1e6),(_0x52d90b,{showDiff:_0x581470})=>{const _0x66457a=_0x5d27a7;this[_0x66457a(0x249)]=_0x581470;}),_0x4920ef[_0x5d27a7(0x213)][_0x5d27a7(0x269)]({'id':_0x5d27a7(0x275),'buttonLabel':_0x1d47b3(this[_0x5d27a7(0x20f)][_0x5d27a7(0x25a)],_0x5d27a7(0x21e)),'buttonIcon':_0x5dfe42,'order':0x0,'content':this[_0x5d27a7(0x23d)]}),this[_0x5d27a7(0x23d)][_0x5d27a7(0x1d2)][_0x5d27a7(0x278)](_0x5d27a7(0x260))['to'](this,_0x5d27a7(0x272),_0x53979e=>_0x53979e),this[_0x5d27a7(0x23d)][_0x5d27a7(0x241)][_0x5d27a7(0x278)](_0x5d27a7(0x21f))['to'](this,_0x5d27a7(0x272),_0x36f48c=>_0x36f48c),this[_0x5d27a7(0x23d)][_0x5d27a7(0x1d2)][_0x5d27a7(0x1db)](this[_0x5d27a7(0x26a)]()),this[_0x5d27a7(0x278)](_0x5d27a7(0x1e1))['to'](this[_0x5d27a7(0x23d)][_0x5d27a7(0x1d2)],_0x5d27a7(0x1e1));}[_0x53483a(0x20e)](){const _0x24754b=_0x53483a;super[_0x24754b(0x20e)](),this[_0x24754b(0x1cf)]&&clearInterval(this[_0x24754b(0x1cf)]);}[_0x53483a(0x220)](_0x1b6571){const _0x3203d8=_0x53483a,_0x34d063=this[_0x3203d8(0x20f)][_0x3203d8(0x20a)][_0x3203d8(0x25d)](_0x3203d8(0x1df))??_0x1d47b3(this[_0x3203d8(0x20f)][_0x3203d8(0x25a)],_0x3203d8(0x1e9));this[_0x3203d8(0x23d)][_0x3203d8(0x241)][_0x3203d8(0x1d1)](),this[_0x3203d8(0x23d)][_0x3203d8(0x1d2)][_0x3203d8(0x1d5)](),this[_0x3203d8(0x23d)][_0x3203d8(0x1d2)][_0x3203d8(0x257)](_0x1b6571[_0x3203d8(0x212)],!this[_0x3203d8(0x20f)][_0x3203d8(0x20a)][_0x3203d8(0x25d)](_0x3203d8(0x1e4))),this[_0x3203d8(0x229)]({'id':_0x3203d8(0x231),'staticMessage':_0x34d063}),this[_0x3203d8(0x252)](_0x3203d8(0x1d7));}[_0x53483a(0x229)]({id:_0x383690,staticMessage:_0x3fc359}){const _0x50d77f=_0x53483a;this[_0x50d77f(0x23d)][_0x50d77f(0x241)][_0x50d77f(0x266)](_0x50d77f(0x237),{'id':_0x383690,'initialContent':_0x50d77f(0x1d9)+_0x3fc359+_0x50d77f(0x203)});}[_0x53483a(0x24b)](_0x2462b8){const _0x4bcae5=_0x53483a,_0x2866c2=_0x2462b8[_0x4bcae5(0x25b)]?.[_0x4bcae5(0x23a)]||_0x2462b8[_0x4bcae5(0x277)];this[_0x4bcae5(0x23d)][_0x4bcae5(0x241)][_0x4bcae5(0x266)](_0x4bcae5(0x264),{'contextItems':Array[_0x4bcae5(0x235)](_0x2462b8[_0x4bcae5(0x228)][_0x4bcae5(0x22b)]()),'initialContent':_0x4bcae5(0x1d9)+_0x2866c2+_0x4bcae5(0x203),'id':_0x2462b8['id']});}[_0x53483a(0x26f)]({errorMessage:_0x3abbc1,id:_0x5127bc}){const _0x3d4558=_0x53483a;this[_0x3d4558(0x23d)][_0x3d4558(0x241)][_0x3d4558(0x266)](_0x3d4558(0x225),{'initialContent':_0x3d4558(0x1d9)+_0x3abbc1+_0x3d4558(0x203),'id':_0x5127bc});}[_0x53483a(0x1de)](_0x10cefa){const _0x258064=_0x53483a;return this[_0x258064(0x240)][_0x258064(0x26e)](async()=>{const _0x4dc32b=_0x258064;this[_0x4dc32b(0x23d)][_0x4dc32b(0x241)][_0x4dc32b(0x266)](_0x4dc32b(0x237),{'id':_0x10cefa[_0x4dc32b(0x221)]+':'+_0x10cefa['id']}),this[_0x4dc32b(0x1ea)]();});}async[_0x53483a(0x22a)](_0x4c629a){const _0xacb358=_0x53483a,_0x4750a8=_0x1eb783(this[_0xacb358(0x20f)]);let _0x14fca5=_0x4750a8[_0xacb358(0x20a)][_0xacb358(0x25d)](_0xacb358(0x215))||[..._0x562810];if(_0x4750a8[_0xacb358(0x253)][_0xacb358(0x218)](_0xacb358(0x250))){if(!this[_0xacb358(0x1e5)]){this[_0xacb358(0x1e5)]=!0x0;const _0x5af330=_0x4750a8[_0xacb358(0x201)][_0xacb358(0x25d)](_0xacb358(0x1fb));this[_0xacb358(0x23d)][_0xacb358(0x241)][_0xacb358(0x278)](_0xacb358(0x1f4))['to'](_0x5af330,_0xacb358(0x232));}}else _0x14fca5=_0x14fca5[_0xacb358(0x24e)](_0x267a14=>_0xacb358(0x1f1)!=_0x267a14);return this[_0xacb358(0x240)][_0xacb358(0x26e)](async()=>{const _0x3a310d=_0xacb358;this[_0x3a310d(0x23d)][_0x3a310d(0x241)][_0x3a310d(0x266)](_0x3a310d(0x1d3),{'id':_0x4c629a[_0x3a310d(0x221)]+':'+_0x4c629a['id'],'areActionsDisabled':_0x4c629a[_0x3a310d(0x276)],'showDiff':this[_0x3a310d(0x249)],'availableActions':_0x14fca5}),this[_0x3a310d(0x1ea)]();});}[_0x53483a(0x217)](_0x41af8c,_0x16e3e4){const _0x395de0=_0x53483a,_0x591d01=this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x24a)][_0x395de0(0x1d0)];if(_0x591d01 instanceof _0x7f8010)return this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x24a)][_0x395de0(0x233)](_0x591d01),void this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x266)](_0x395de0(0x1e2),{'id':_0x41af8c['id'],'capabilities':{'isWebSearchEnabled':_0x591d01[_0x395de0(0x1f6)][_0x395de0(0x1fd)]||_0x16e3e4[_0x395de0(0x1fd)],'isReasoningEnabled':_0x591d01[_0x395de0(0x1f6)][_0x395de0(0x216)]||_0x16e3e4[_0x395de0(0x216)]}});this[_0x395de0(0x23d)][_0x395de0(0x241)][_0x395de0(0x266)](_0x395de0(0x1e2),{'id':_0x41af8c['id'],'capabilities':_0x16e3e4});}async[_0x53483a(0x26b)](_0x289260,_0x1b4b49){const _0x5971a1=_0x53483a;let _0x27b280;return await this[_0x5971a1(0x240)][_0x5971a1(0x26e)](async()=>{const _0x4974f1=_0x5971a1;_0x27b280=this[_0x4974f1(0x23d)][_0x4974f1(0x241)][_0x4974f1(0x266)](_0x4974f1(0x265),{'content':_0x289260,'id':_0x1b4b49});}),_0x27b280;}[_0x53483a(0x1dc)](_0xfed8b8){const _0x410af2=_0x53483a;this[_0x410af2(0x23d)][_0x410af2(0x241)][_0x410af2(0x223)](_0xfed8b8);}[_0x53483a(0x234)](_0x27ae71){const _0x465491=_0x53483a;return this[_0x465491(0x23d)][_0x465491(0x241)][_0x465491(0x1d8)](_0x27ae71);}[_0x53483a(0x246)](_0x1d7425){const _0x2661a1=_0x53483a,_0x34c51c=this[_0x2661a1(0x23d)][_0x2661a1(0x241)][_0x2661a1(0x24a)][_0x2661a1(0x1eb)](_0x2ed832=>_0x2ed832[_0x2661a1(0x206)]['id']==_0x1d7425['id']&&_0x2ed832 instanceof _0x7f8010);_0x34c51c&&_0x34c51c[_0x2661a1(0x20c)](_0x2661a1(0x1cd),_0x1d7425[_0x2661a1(0x1cd)]);}async[_0x53483a(0x1f9)](_0x505d08){const _0x33ebe9=_0x53483a,_0x1378bc=_0x505d08[_0x33ebe9(0x270)]||this[_0x33ebe9(0x263)];return this[_0x33ebe9(0x240)][_0x33ebe9(0x26e)](async _0x54ccc9=>{const _0x5b5d51=_0x33ebe9;await this[_0x5b5d51(0x23d)][_0x5b5d51(0x241)][_0x5b5d51(0x1e7)]({..._0x505d08,'abortSignal':_0x54ccc9,'renderingStrategy':_0x1378bc}),_0x505d08[_0x5b5d51(0x22f)]&&this[_0x5b5d51(0x242)](_0x505d08['id']);});}[_0x53483a(0x222)](_0x2d6db1,_0x3c7e79){const _0x4c6e84=_0x53483a;this[_0x4c6e84(0x23d)][_0x4c6e84(0x241)][_0x4c6e84(0x24d)](_0x2d6db1,_0x3c7e79);}async[_0x53483a(0x1e3)](_0xc80648){const _0x338157=_0x53483a,_0x569b54=_0xc80648[_0x338157(0x270)]||this[_0x338157(0x263)];return this[_0x338157(0x240)][_0x338157(0x26e)](async _0x36386d=>{const _0x2c81f9=_0x338157;await this[_0x2c81f9(0x23d)][_0x2c81f9(0x241)][_0x2c81f9(0x245)]({..._0xc80648,'abortSignal':_0x36386d,'renderingStrategy':_0x569b54}),_0xc80648[_0x2c81f9(0x22f)]&&this[_0x2c81f9(0x242)](_0xc80648['id']);});}[_0x53483a(0x214)](_0x2844e5){const _0x3997aa=_0x53483a;this[_0x3997aa(0x23d)][_0x3997aa(0x241)][_0x3997aa(0x1ed)](_0x2844e5);}[_0x53483a(0x26d)](_0xd51bab){const _0xf949d5=_0x53483a;this[_0xf949d5(0x23d)][_0xf949d5(0x241)][_0xf949d5(0x1f2)](_0xd51bab);}[_0x53483a(0x242)](_0x456c5e){const _0x13e51b=_0x53483a;this[_0x13e51b(0x23d)][_0x13e51b(0x241)][_0x13e51b(0x274)](_0x456c5e);}[_0x53483a(0x204)](_0x1469c2){const _0x1a15a7=_0x53483a;this[_0x1a15a7(0x23d)][_0x1a15a7(0x241)][_0x1a15a7(0x24c)]()[_0x1a15a7(0x24e)](_0xaab21b=>_0xaab21b[_0x1a15a7(0x21b)](_0x1469c2))[_0x1a15a7(0x1cb)](_0x317b6d=>this[_0x1a15a7(0x23d)][_0x1a15a7(0x241)][_0x1a15a7(0x223)](_0x317b6d));}[_0x53483a(0x1ef)](){const _0x3c47c8=_0x53483a,_0x339d74=this[_0x3c47c8(0x219)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x3c47c8(0x1ff)](_0x339d74),this[_0x3c47c8(0x23d)][_0x3c47c8(0x1d2)][_0x3c47c8(0x1f5)](!this[_0x3c47c8(0x20f)][_0x3c47c8(0x20a)][_0x3c47c8(0x25d)](_0x3c47c8(0x1e4))),this[_0x3c47c8(0x272)]=!0x0,this[_0x3c47c8(0x23d)][_0x3c47c8(0x241)][_0x3c47c8(0x21a)]();}[_0x53483a(0x202)](_0x3f76ff){const _0x3fcc67=_0x53483a;this[_0x3fcc67(0x240)][_0x3fcc67(0x25f)](),this[_0x3fcc67(0x23d)][_0x3fcc67(0x241)][_0x3fcc67(0x24c)]()[_0x3fcc67(0x24e)](_0x1224f6=>_0x1224f6[_0x3fcc67(0x21b)](_0x3f76ff['id']))[_0x3fcc67(0x1cb)](_0x1e8c99=>this[_0x3fcc67(0x242)](_0x1e8c99)),this[_0x3fcc67(0x272)]=!0x1,this[_0x3fcc67(0x23d)][_0x3fcc67(0x241)][_0x3fcc67(0x23e)]();}async[_0x53483a(0x23f)](){const _0x2f528c=_0x53483a;return this[_0x2f528c(0x240)][_0x2f528c(0x22d)][_0x2f528c(0x261)](()=>{const _0x1a73a7=_0x2f528c;this[_0x1a73a7(0x272)]=!0x1,this[_0x1a73a7(0x23d)][_0x1a73a7(0x241)][_0x1a73a7(0x23e)]();});}[_0x53483a(0x256)](_0x3fccf2,_0x9036){const _0x183fac=_0x53483a;this[_0x183fac(0x23d)][_0x183fac(0x1d2)][_0x183fac(0x256)](_0x3fccf2,_0x9036);}[_0x53483a(0x247)](_0x321ff2){const _0x4366be=_0x53483a;this[_0x4366be(0x23d)][_0x4366be(0x1d2)][_0x4366be(0x247)](_0x321ff2);}[_0x53483a(0x20d)](_0x41c760,_0x2172ff){const _0x4d3014=_0x53483a;this[_0x4d3014(0x23d)][_0x4d3014(0x1d2)][_0x4d3014(0x20d)](_0x41c760,_0x2172ff);}[_0x53483a(0x236)](_0x2b630d){const _0x156197=_0x53483a;this[_0x156197(0x23d)][_0x156197(0x1d2)][_0x156197(0x236)](_0x2b630d);}[_0x53483a(0x1fa)](_0x13c5f2){const _0x49a783=_0x53483a;this[_0x49a783(0x23d)][_0x49a783(0x1d2)][_0x49a783(0x1fa)](_0x13c5f2);}[_0x53483a(0x243)](){const _0x1984d2=_0x53483a;this[_0x1984d2(0x23d)][_0x1984d2(0x1d2)][_0x1984d2(0x243)]();}[_0x53483a(0x208)](){const _0x482d12=_0x53483a;this[_0x482d12(0x23d)][_0x482d12(0x1d2)][_0x482d12(0x208)]();}[_0x53483a(0x1f7)](_0x3e9c9d,_0x5399df,_0x165fec){const _0x2172a8=_0x53483a;this[_0x2172a8(0x23d)][_0x2172a8(0x1d2)][_0x2172a8(0x1f7)](_0x3e9c9d,_0x5399df,_0x165fec);}[_0x53483a(0x1fc)](){const _0x87b7b4=_0x53483a;this[_0x87b7b4(0x23d)][_0x87b7b4(0x1d2)][_0x87b7b4(0x1fc)](),this[_0x87b7b4(0x23d)][_0x87b7b4(0x1d2)][_0x87b7b4(0x1db)](this[_0x87b7b4(0x26a)]());}[_0x53483a(0x1ec)](_0x10216d){const _0x1d9fcf=_0x53483a;this[_0x1d9fcf(0x23d)][_0x1d9fcf(0x1d2)][_0x1d9fcf(0x1ec)](_0x10216d);}[_0x53483a(0x1ce)](_0x302cbb){const _0x251eb9=_0x53483a;this[_0x251eb9(0x23d)][_0x251eb9(0x1d2)][_0x251eb9(0x1fe)](_0x302cbb[_0x251eb9(0x1fd)]),this[_0x251eb9(0x23d)][_0x251eb9(0x1d2)][_0x251eb9(0x268)](_0x302cbb[_0x251eb9(0x216)]),this[_0x251eb9(0x23d)][_0x251eb9(0x1d2)][_0x251eb9(0x1db)](this[_0x251eb9(0x26a)](_0x302cbb));}[_0x53483a(0x21c)](_0x2f42bc,_0x14a542){const _0x1c1876=_0x53483a;this[_0x1c1876(0x23d)][_0x1c1876(0x1d2)][_0x1c1876(0x1cc)](_0x2f42bc),_0x14a542&&this[_0x1c1876(0x23d)][_0x1c1876(0x1d2)][_0x1c1876(0x1f5)](!0x1);}[_0x53483a(0x26c)](_0x116bdc){const _0x13d930=_0x53483a;this[_0x13d930(0x263)]=_0x116bdc;}[_0x53483a(0x1e8)](_0x80e957){const _0x1c794a=_0x53483a;this[_0x1c794a(0x23d)][_0x1c794a(0x241)][_0x1c794a(0x1e8)](_0x80e957);}[_0x53483a(0x254)](){const _0x4acb03=_0x53483a;this[_0x4acb03(0x205)](_0x1d47b3(this[_0x4acb03(0x20f)][_0x4acb03(0x25a)],_0x4acb03(0x21e)));}[_0x53483a(0x205)](_0x3416c1,_0x52eb6b=!0x1){const _0x415682=_0x53483a;if(_0x52eb6b&&!_0x4ecb05()&&_0x3416c1[_0x415682(0x244)])return this[_0x415682(0x23d)][_0x415682(0x238)][_0x415682(0x23c)]='',void this[_0x415682(0x273)](_0x3416c1);this[_0x415682(0x23d)][_0x415682(0x238)][_0x415682(0x23c)]=_0x3416c1;}[_0x53483a(0x1ff)](_0x44e648){const _0x2bfd45=_0x53483a;this[_0x2bfd45(0x23d)][_0x2bfd45(0x241)][_0x2bfd45(0x1ff)](_0x44e648);}[_0x53483a(0x1ea)](){const _0x1cfcf1=_0x53483a;this[_0x1cfcf1(0x23d)][_0x1cfcf1(0x241)][_0x1cfcf1(0x1ff)]('');}[_0x53483a(0x273)](_0x488281){const _0x592229=_0x53483a;let _0x2bb4ec=0x0;clearInterval(this[_0x592229(0x1cf)]),this[_0x592229(0x1cf)]=setInterval(()=>{const _0x2ce3bb=_0x592229;this[_0x2ce3bb(0x23d)][_0x2ce3bb(0x238)][_0x2ce3bb(0x23c)]=this[_0x2ce3bb(0x23d)][_0x2ce3bb(0x238)][_0x2ce3bb(0x23c)]+_0x488281[_0x2bb4ec],_0x2bb4ec++,_0x2bb4ec===_0x488281[_0x2ce3bb(0x244)]&&clearInterval(this[_0x2ce3bb(0x1cf)]);},0x1e);}[_0x53483a(0x23b)](_0xcd5b7){const _0xeadda9=_0x53483a;this[_0xeadda9(0x23d)][_0xeadda9(0x238)][_0xeadda9(0x21d)]=_0xcd5b7;}[_0x53483a(0x219)](_0x5918e0){const _0x39f127=_0x53483a;return _0x5918e0[_0x39f127(0x1fd)]&&_0x5918e0[_0x39f127(0x216)]?_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x209)):_0x5918e0[_0x39f127(0x1fd)]?_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x207)):_0x5918e0[_0x39f127(0x216)]?_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x200)):_0x1d47b3(this[_0x39f127(0x20f)][_0x39f127(0x25a)],_0x39f127(0x262));}[_0x53483a(0x26a)](_0x15f73b){const _0x186ae6=_0x53483a;return _0x15f73b?_0x15f73b[_0x186ae6(0x1fd)]&&_0x15f73b[_0x186ae6(0x216)]?_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1d4)):_0x15f73b[_0x186ae6(0x1fd)]?_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1e0)):_0x15f73b[_0x186ae6(0x216)]?_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1c9)):_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1f8)):_0x1d47b3(this[_0x186ae6(0x20f)][_0x186ae6(0x25a)],_0x186ae6(0x1f8));}[_0x53483a(0x22e)](_0x1ed86b,_0x53bb22,_0x494f6a,_0x1c08ef){const _0x20c4be=_0x53483a;this[_0x20c4be(0x23d)][_0x20c4be(0x22e)](_0x1ed86b,_0x53bb22,_0x494f6a,_0x1c08ef);}[_0x53483a(0x1d6)](_0x56bcb6){const _0x250caa=_0x53483a;this[_0x250caa(0x23d)][_0x250caa(0x1d6)](_0x56bcb6);}[_0x53483a(0x258)](_0x28f980){const _0x2845df=_0x53483a;this[_0x2845df(0x23d)][_0x2845df(0x1d2)][_0x2845df(0x258)](_0x28f980);}[_0x53483a(0x20b)](_0x155591=!0x1){const _0x5910f6=_0x53483a;this[_0x5910f6(0x23d)][_0x5910f6(0x1d2)][_0x5910f6(0x20b)](_0x155591);}[_0x53483a(0x267)](_0x234cff,_0x2aa01f){const _0x27a845=_0x53483a;this[_0x27a845(0x23d)][_0x27a845(0x241)][_0x27a845(0x1dd)](_0x234cff,_0x2aa01f);}[_0x53483a(0x21a)](){const _0x34c0b0=_0x53483a;this[_0x34c0b0(0x23d)][_0x34c0b0(0x241)][_0x34c0b0(0x21a)]();}[_0x53483a(0x25c)](){const _0x2d5b79=_0x53483a;this[_0x2d5b79(0x23d)][_0x2d5b79(0x1d2)][_0x2d5b79(0x226)]=!0x0;}[_0x53483a(0x1f0)](){const _0x39fdd3=_0x53483a;this[_0x39fdd3(0x23d)][_0x39fdd3(0x1d2)][_0x39fdd3(0x226)]=!0x1;}}
|
|
@@ -132,20 +132,27 @@ export declare class AIChatContext extends /* #__PURE__ */ AIChatContext_base {
|
|
|
132
132
|
* Note, that these context items are ignored by the CKEditor AI agent and should be handled by your backend AI tool.
|
|
133
133
|
*
|
|
134
134
|
* The object which is passed as a parameter can contain the following properties:
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
135
|
+
* ```ts
|
|
136
|
+
* {
|
|
137
|
+
* // Must be set to `AIContextItemType.TOOL`.
|
|
138
|
+
* type: AIContextItemType.TOOL,
|
|
139
|
+
*
|
|
140
|
+
* // The name of the MCP server.
|
|
141
|
+
* mcpServerName: string;
|
|
142
|
+
*
|
|
143
|
+
* // The data for the tool. Can be anything.
|
|
144
|
+
* data: Record<string, any>;
|
|
145
|
+
*
|
|
146
|
+
* // The label of the item used to display it in the chat UI.
|
|
147
|
+
* label: string;
|
|
148
|
+
*
|
|
149
|
+
* // Optional, 1-21 characters. Auto-generated if omitted.
|
|
150
|
+
* id?: string;
|
|
151
|
+
*
|
|
152
|
+
* // The name of the tool. Omit to send context to all tools on the server.
|
|
153
|
+
* toolName?: string;
|
|
154
|
+
* }
|
|
155
|
+
* ```
|
|
149
156
|
*/
|
|
150
157
|
addToolItemToContext(contextItem: AIToolContextItem): void;
|
|
151
158
|
/**
|