@ckeditor/ckeditor5-ai 47.7.0-alpha.3 → 47.7.0-alpha.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 +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5ca91c=_0x250c;(function(_0x1b39aa,_0x411ff7){const _0xe6601b=_0x250c,_0x567c09=_0x1b39aa();while(!![]){try{const _0x45ce6e=-parseInt(_0xe6601b(0x143))/0x1+parseInt(_0xe6601b(0x149))/0x2+-parseInt(_0xe6601b(0x11a))/0x3*(-parseInt(_0xe6601b(0x13c))/0x4)+parseInt(_0xe6601b(0x156))/0x5+-parseInt(_0xe6601b(0x14c))/0x6*(parseInt(_0xe6601b(0x138))/0x7)+parseInt(_0xe6601b(0x129))/0x8+parseInt(_0xe6601b(0x144))/0x9*(-parseInt(_0xe6601b(0x153))/0xa);if(_0x45ce6e===_0x411ff7)break;else _0x567c09['push'](_0x567c09['shift']());}catch(_0x12a1ad){_0x567c09['push'](_0x567c09['shift']());}}}(_0x195a,0xbf8ec));import{Plugin as _0x45f608}from'ckeditor5/src/core.js';import{AIBalloon as _0x8241d5}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x47c19d}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x250c(_0x4262a9,_0xa75b8a){const _0x195afe=_0x195a();return _0x250c=function(_0x250c7c,_0x2b93c0){_0x250c7c=_0x250c7c-0x119;let _0x86f48b=_0x195afe[_0x250c7c];return _0x86f48b;},_0x250c(_0x4262a9,_0xa75b8a);}import{AIChatBalloonView as _0x1bcb68}from'./ui/aichatballoonview.js';function _0x195a(){const _0x3f05ca=['654655DvvYMn','updateContent','render','showNext','close','156gZfhAU','nextButtonView','ai.availableReplyActions','areActionsDisabled','isPremiumPlugin','aiChatBalloon','AIBalloon','AIChatBalloon','pluginName','bind','_toggleRotatorButtonsInDialogHeader','set','dialogClosed','editor','setState','3718696gUTCwB','Dialog','open','_createChatBalloonView','filter','applySuggestion','isTrackChangesOn','TrackChanges','headerView','focus','togglePartToolbarEnabled','showRotator','config','remove','beforeDialogClosed','274589bYEABt','toggleRotatorButtonsVisibility','trackChanges','_restoreDefaultViewFocus','87208PeeGBw','isOfficialPlugin','addMany','locale','children','delegate','_chatBalloonView','94957NhQDoU','7983KIaAHS','requires','ck-ai-chat-balloon','commands','previousButtonView','1479866cWNGfg','get','showPrevious','90OqWWkH','value','insertSuggestion','showDiff','has','rejectSuggestion','plugins','11290DxBsTl','view','once'];_0x195a=function(){return _0x3f05ca;};return _0x195a();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x359b59}from'../aicore/utils/eventnames.js';import{Dialog as _0x10f15a}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x45f608{static get[_0x5ca91c(0x145)](){return[_0x10f15a,_0x8241d5];}static get[_0x5ca91c(0x122)](){const _0x35e0c3=_0x5ca91c;return _0x35e0c3(0x121);}static get[_0x5ca91c(0x13d)](){return!0x0;}static get[_0x5ca91c(0x11e)](){return!0x0;}[_0x5ca91c(0x142)];constructor(_0x34dd4f){const _0x3cea17=_0x5ca91c;super(_0x34dd4f),this[_0x3cea17(0x125)](_0x3cea17(0x14f),!0x1);}[_0x5ca91c(0x12b)](_0x240934){const _0x5bdd49=_0x5ca91c,_0x56f143=this[_0x5bdd49(0x127)];this[_0x5bdd49(0x142)]||(this[_0x5bdd49(0x142)]=this[_0x5bdd49(0x12c)]()),_0x56f143[_0x5bdd49(0x152)][_0x5bdd49(0x14a)](_0x5bdd49(0x120))[_0x5bdd49(0x12b)]({..._0x240934,'id':_0x5bdd49(0x11f),'class':_0x5bdd49(0x146),'mainView':this[_0x5bdd49(0x142)]}),this[_0x5bdd49(0x124)](_0x240934[_0x5bdd49(0x134)]),this[_0x5bdd49(0x142)][_0x5bdd49(0x133)](!_0x240934[_0x5bdd49(0x11d)]),this[_0x5bdd49(0x13b)]();}[_0x5ca91c(0x119)](){const _0x4ebd75=_0x5ca91c;this[_0x4ebd75(0x127)][_0x4ebd75(0x152)][_0x4ebd75(0x14a)](_0x4ebd75(0x120))[_0x4ebd75(0x119)]();}[_0x5ca91c(0x157)](_0x44be5a){const _0x1ca107=_0x5ca91c;return this[_0x1ca107(0x142)]||(this[_0x1ca107(0x142)]=this[_0x1ca107(0x12c)]()),this[_0x1ca107(0x142)][_0x1ca107(0x157)](_0x44be5a);}[_0x5ca91c(0x128)](_0x510983){const _0x190d09=_0x5ca91c;this[_0x190d09(0x142)]&&this[_0x190d09(0x142)][_0x190d09(0x128)](_0x510983);}[_0x5ca91c(0x12c)](){const _0x19f632=_0x5ca91c,_0x49b209=this[_0x19f632(0x127)],_0x3cd883=_0x49b209[_0x19f632(0x152)][_0x19f632(0x14a)](_0x19f632(0x120)),_0x50b919=_0x49b209[_0x19f632(0x147)][_0x19f632(0x14a)](_0x19f632(0x13a));let _0x5791d7=_0x49b209[_0x19f632(0x135)][_0x19f632(0x14a)](_0x19f632(0x11c))||[..._0x47c19d];_0x49b209[_0x19f632(0x152)][_0x19f632(0x150)](_0x19f632(0x130))||(_0x5791d7=_0x5791d7[_0x19f632(0x12d)](_0x1b8719=>_0x19f632(0x14e)!=_0x1b8719));const _0x23f77d=new _0x1bcb68(_0x49b209[_0x19f632(0x13f)],{'availableActions':_0x5791d7,'showApplyButton':!0x0,'showSuggestButton':!!_0x50b919});return _0x23f77d[_0x19f632(0x123)](_0x19f632(0x14f))['to'](this),_0x23f77d[_0x19f632(0x141)](..._0x359b59)['to'](this),_0x23f77d[_0x19f632(0x141)](_0x19f632(0x14b),_0x19f632(0x159))['to'](this),_0x3cd883[_0x19f632(0x141)](_0x19f632(0x126))['to'](this),_0x23f77d['on'](_0x19f632(0x12e),this[_0x19f632(0x13b)][_0x19f632(0x123)](this)),_0x23f77d['on'](_0x19f632(0x14e),this[_0x19f632(0x13b)][_0x19f632(0x123)](this)),_0x23f77d['on'](_0x19f632(0x151),this[_0x19f632(0x13b)][_0x19f632(0x123)](this)),_0x50b919&&_0x23f77d[_0x19f632(0x123)](_0x19f632(0x12f))['to'](_0x50b919,_0x19f632(0x14d)),_0x23f77d[_0x19f632(0x158)](),_0x23f77d;}[_0x5ca91c(0x124)](_0x2a816f){const _0x54d0bf=_0x5ca91c,_0x4caaa5=this[_0x54d0bf(0x127)],_0x51d517=_0x4caaa5[_0x54d0bf(0x152)][_0x54d0bf(0x14a)](_0x54d0bf(0x12a))[_0x54d0bf(0x154)][_0x54d0bf(0x131)][_0x54d0bf(0x140)];this[_0x54d0bf(0x142)][_0x54d0bf(0x139)](_0x2a816f),_0x51d517[_0x54d0bf(0x150)](this[_0x54d0bf(0x142)][_0x54d0bf(0x148)])||(_0x51d517[_0x54d0bf(0x13e)]([this[_0x54d0bf(0x142)][_0x54d0bf(0x148)],this[_0x54d0bf(0x142)][_0x54d0bf(0x11b)]],0x0),_0x4caaa5[_0x54d0bf(0x152)][_0x54d0bf(0x14a)](_0x54d0bf(0x120))[_0x54d0bf(0x155)](_0x54d0bf(0x137),()=>{const _0x5b7259=_0x54d0bf;_0x51d517[_0x5b7259(0x136)](this[_0x5b7259(0x142)][_0x5b7259(0x148)]),_0x51d517[_0x5b7259(0x136)](this[_0x5b7259(0x142)][_0x5b7259(0x11b)]);}));}[_0x5ca91c(0x13b)](){const _0x3f3e71=_0x5ca91c;this[_0x3f3e71(0x142)][_0x3f3e71(0x132)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2747dd=_0x34fc;(function(_0x235cef,_0x1ff040){const _0x44197f=_0x34fc,_0x1fb211=_0x235cef();while(!![]){try{const _0x2c35cd=parseInt(_0x44197f(0x2cb))/0x1+-parseInt(_0x44197f(0x293))/0x2+parseInt(_0x44197f(0x35e))/0x3*(-parseInt(_0x44197f(0x2a0))/0x4)+parseInt(_0x44197f(0x1fe))/0x5*(-parseInt(_0x44197f(0x33e))/0x6)+parseInt(_0x44197f(0x23c))/0x7*(-parseInt(_0x44197f(0x368))/0x8)+parseInt(_0x44197f(0x2bd))/0x9+parseInt(_0x44197f(0x214))/0xa;if(_0x2c35cd===_0x1ff040)break;else _0x1fb211['push'](_0x1fb211['shift']());}catch(_0x518e9a){_0x1fb211['push'](_0x1fb211['shift']());}}}(_0x3048,0xabf23));import{ContextPlugin as _0x2d315c,Editor as _0x2e07c5}from'ckeditor5/src/core.js';function _0x34fc(_0x2976cd,_0xfcc963){const _0x30482b=_0x3048();return _0x34fc=function(_0x34fced,_0x3ad431){_0x34fced=_0x34fced-0x1e4;let _0x69b37c=_0x30482b[_0x34fced];return _0x69b37c;},_0x34fc(_0x2976cd,_0xfcc963);}import{BodyCollection as _0x11d605}from'ckeditor5/src/ui.js';import{CKEditorError as _0x2f9ac0,logError as _0x4adf39,scrollViewportToShowTarget as _0x26977c,uid as _0x441c86}from'ckeditor5/src/utils.js';import{AIConnector as _0x4fc309}from'../aicore/aiconnector.js';import{AITabs as _0x2e48c5}from'../aitabs/aitabs.js';import{AIChatConversation as _0x13f3a3}from'./model/aichatconversation.js';import{getTranslation as _0x3bbccd}from'../aicore/utils/common-translations.js';import{AIModels as _0x2b8021}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x1edd1c}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x159832,DATA_ID_MODEL_ATTRIBUTE as _0x192377}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x424953,getOperationsFromReply as _0x357892}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x25c4d2,getMinimalSelection as _0x41899c}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x3048(){const _0x2ebb8e=['ai-chat-context-invalid-data','_removeFromContext','addFileToContext','removeFeedInteraction','message','toggleWebSearch','AI_CHAT_ABORTED_MESSAGE','_aiEditing','ready','_setIsMaximized','filter','uid','domConverter','_openBalloonFor','setAddContextOptions','getDocumentContext','interactionStarted','loadConversation','updateResourceState','clearConversationContextUI','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','resizeTabs','bind','AIEditing','addSelectionToChatContext','_toggleReasoning','sourceId','addCurrentDocumentToChatContext','webSearchFinished','_showConversationHistory','locale','attachToDom','getChild','contextItems','toggleLoadingSkeleton','ai-no-track-changes','toString','updateConversationTitle','reasoningStarted','range','_handleUIUserMessage','addFeedItemStaticMessage','slice','modelSelected','Liked\x20response','_updateRatings','_rejectSuggestion','activeConversation','has','findIndex','commands','getOperations','type','data-id','open','end','documentContextContent','selection','closeSourceResourceBalloon','children','2486164PQZOkq','addCurrentDocumentToContext','conversationInitialized','interactionId','fetchConversations','_scrollToSuggestionRange','content','ai-chat-invalid-request','ai-chat-context-unsupported-type','_insertSuggestion','load','showFakeVisualSelection','batch','2468rVrDCT','indexes','map','interactionFinished','getTransformedByOperation','accepted','hideFakeVisualSelection','executeCustomItemCallback','maxOffset','clearLoadingMessage','updateCurrentDocumentInContext','setFeedItemAIReplySuggestionPartActive','removeSelectionFromContext','showNext','start','Disliked\x20response','text','sendUserMessage','_aiChatModels','messageId','isCurrentDocumentInContext','addDocumentToContext','state','contextItemAdded','startConversation','delegate','capabilitiesUpdated','isModelAvailable','getConversations','12293523NNXSWF','get','resource','uploadProgressChanged','add','scrollFeedToSuggestion','stopInteraction','focusPromptInput','rejectSuggestion','ai-chat-conversation-init-failed','_applyOperationsAsSuggestions','dialogClosed','removed','reasoningFinished','1214407yblTKg','static','addFeedInteractionHeader','resourceId','replyContentUpdated','mapper','alignToTop','abortPromptStream','ai-conversation-','revert','getConversation','ai-chat-controller-no-active-conversation','AI_CHAT_RESOURCE_LOAD_FAILED','contextItemLoadingEnded','setChangeGroupState','editors','populateSourceResourceBalloon','addFeedItemUserMessage','getGroupId','AIChatBalloon','showPrevious','TrackChangesEditing','getPath','plugins','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyId','_batchToChanges','replyChangeGroupStateUpdated','listenTo','sourcePosition','ai-chat-resource-load-failed','view','ai.chat.context','previous','AI_CHAT_UNTITLED_CONVERSATION','addContextItem','getDocumentData','_currentPreviewedChangeGroup','clearPendingContextUI','AI_CHAT_CONTEXT_FILE_TOO_LARGE','_registerToolDataCallback','hasChanges','showDiff','isLoading','resourceStateChanged','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','getDiff','ai-chat-context-unsupported-file-type','applyOperation','fetchConversation','context','changeGroups','resizedTabs','$graveyard','toggleSuggestionDisplayMode','lastInteraction','close','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','TrackChanges','setIsUploadInProgress','_getPresentableSiblingContentPartIndex','webSearchStarted','from','contextItem','ai-chat-controller-mouse-over','ai-chat-conversation-start-failed','ai-chat-context-form-data-size-limits-exceeded','addFeedItemError','source','_aiChatUi','handleUserInteraction','addFeedItemAISuggestion','finishInteraction','toolDataReceived','_getDocumentRangeForReplyChanges','ai.models.defaultModelId','resize','resources','getInteractionAndReplyById','resetWebSearchState','root','createReply','enableControls','getAttribute','toggleReasoning','removeFromContext','_createFromRanges','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','rejected','marker','removeSelectionFromChatContext','AI_BALLOON_HEADER_TITLE','remove','rootName','addFilesToContext','_getLastCreatedConversationId','indexOf','replies','streaming','sources','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','config','resetReasoningState','options','aiChatBalloon','detachFromDom','change','_startConversationSafely','getReply','createPositionAt','addResourceToContext','mouseLeaveSuggestion','data','getChildren','_bodyCollection','14286kteqQl','setContextItemLoading','_getAIChatInteractionAPI','AITabs','ai-chat-source-resources-load-failed','setState','insertSuggestion','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','activateTab','isDocumentOperation','done','_updateReplyContent','includes','replyCreated','baseVersion','collaboration.channelId','ai-request-aborted','updateCapabilities','like','version','editing','createRange','ai.models','getRanges','ai-chat-context-file-too-large','_logError','stop','setModel','AI_CHAT_GENERIC_ERROR','_flushLastInteractionUI','isInContext','history','4359nRZFqC','uiId','model','interactionDestroyed','handleRemovedConversation','addFeedItemCustomElement','_aiChatBalloonShowDiff','removeContextItem','AIConnector','forEach','8tjrifW','isOfficialPlugin','destroy','chat','find','sendMessage','dislike','log','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-missing-channel-id','partIndex','length','error','isCurrentDocumentInConversation','contextItemRemoved','DocumentCompare','viewRangeToDom','_integrateEditor','startAutoScroll','createConversation','unshift','showChangeInText','startsWith','getRoot','getSelectionText','modification','afterInit','pluginName','pending','anchorId','ai-chat-context-file-too-many-pages','createPositionFromPath','_stopLastInteraction','2060bkZZcL','getInteraction','Undo','resetConversationTitle','getChildAtOffset','getContentParts','isDisabled','addContextOptionsChanged','_toggleWebSearch','addUrlToContext','push','howMany','AIChatController','sourceResourcesLoaded','AI_CHAT_INVALID_REQUEST','init','query','lastCreated','undo','setSelectedModel','addOperation','node','20723020DNDqML','updateFeedItemAIReplyContent','disableControls','resetMessageInput','setLoadingMessage','document','ai-chat-conversation-not-found','ai.chat.initialConversation','getFirstRange','updateFeedItemAIReplySources','isPremiumPlugin','nextSibling','setIsMaximized','areActionsDisabled','loadSourceResources','updateContent','index','applySuggestion','redo','split','toViewRange','next','cloneNode','addFeedItemAIReply','setConversationTitle','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_handleStartConversation','delete','updateFeedItemAIReplySuggestionContent','interactionCreated','Showing\x20conversation\x20history...','main','set','_aiChatBalloon','requires','ai-chat-file-upload-failed','new','_applySuggestion','updateFeedItemAIReplySuggestionPartState','getAll','5794670VJlMlc','outdated','callback','path','upsertAIChatRating','_aiConnector','createdAt','selectedModel','addSelectionToContext','parse','ai-chat-url-upload-failed','mouseOverSuggestion','current-document','contextSent','changes','isUploadInProgress','currentReply','prepareLoadingMessage','startInteraction','sessionId','selectModel','setConversationContext','_getUserPresentableContentPartDocumentRange','isStarted','AIChatUI','setFeedItemRenderingStrategy','AI_CHAT_CONTEXT_INVALID_DATA'];_0x3048=function(){return _0x2ebb8e;};return _0x3048();}import{ModelRange as _0x4e6981,_DetachOperation as _0x577bc1}from'ckeditor5/src/engine.js';import{findOne as _0x598a20,getAttribute as _0xc47dbe,serialize as _0x37aaa3,Document as _0x16ddd7,findByAttribute as _0x55da11}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x2d315c{[_0x2747dd(0x25e)];[_0x2747dd(0x241)];[_0x2747dd(0x310)];[_0x2747dd(0x2b2)];[_0x2747dd(0x235)];[_0x2747dd(0x2e5)]=new Map();[_0x2747dd(0x2f0)]=null;[_0x2747dd(0x33d)];static get[_0x2747dd(0x236)](){return[_0x4fc309,_0x159832];}static get[_0x2747dd(0x1f8)](){const _0xbc9cfc=_0x2747dd;return _0xbc9cfc(0x20a);}static get[_0x2747dd(0x369)](){return!0x0;}static get[_0x2747dd(0x21e)](){return!0x0;}[_0x2747dd(0x20d)](){const _0x448b52=_0x2747dd;this[_0x448b52(0x33d)]=new _0x11d605(this[_0x448b52(0x2fd)][_0x448b52(0x275)]),this[_0x448b52(0x33d)][_0x448b52(0x276)](),this[_0x448b52(0x241)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x366)),this[_0x448b52(0x310)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x254)),this[_0x448b52(0x25e)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x26e)),this[_0x448b52(0x2b2)]=new _0x2b8021({'connector':this[_0x448b52(0x241)],'config':this[_0x448b52(0x2fd)][_0x448b52(0x330)][_0x448b52(0x2be)](_0x448b52(0x354)),'locale':this[_0x448b52(0x2fd)][_0x448b52(0x275)]});const _0x2e9490=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x341));this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2b8),()=>{const _0x2fd856=_0x448b52;this[_0x2fd856(0x336)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2b1),(_0x170991,_0x5e0174)=>{const _0xa0a49e=_0x448b52;this[_0xa0a49e(0x27f)]({'userMessage':_0x5e0174});}),this[_0x448b52(0x2e7)](_0x2e9490,_0x448b52(0x2ff),(_0x3c7cf0,_0x345325)=>{const _0x4b6a58=_0x448b52;this[_0x4b6a58(0x260)](_0x345325);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x26c),()=>{const _0x2b3370=_0x448b52;_0x2e9490[_0x2b3370(0x317)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2d2),async()=>{const _0x2e1057=_0x448b52;await this[_0x2e1057(0x1fd)](),await this[_0x2e1057(0x35b)](),this[_0x2e1057(0x325)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2b5),()=>{const _0x4dc1ac=_0x448b52;this[_0x4dc1ac(0x272)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x259),(_0x310bfd,_0x43ca36)=>{const _0x38e912=_0x448b52;this[_0x38e912(0x286)]?.[_0x38e912(0x329)](Array[_0x38e912(0x309)](_0x43ca36));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x207),(_0x21a7be,_0x3dc9d4)=>{const _0xea74ac=_0x448b52;this[_0xea74ac(0x286)]?.[_0xea74ac(0x207)](_0x3dc9d4);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2a7),(_0x5919f8,_0x477922)=>{const _0x30ce77=_0x448b52;_0x477922[_0x30ce77(0x23e)](this[_0x30ce77(0x2fd)]);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x339),(_0x11efcc,_0x672eb6)=>{const _0x3ed8a5=_0x448b52;this[_0x3ed8a5(0x286)]?.[_0x3ed8a5(0x339)](_0x672eb6[_0x3ed8a5(0x30f)],_0x672eb6[_0x3ed8a5(0x2bf)]);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x365),(_0x40dfd6,_0x33aabd)=>{const _0x532816=_0x448b52;this[_0x532816(0x258)](_0x33aabd);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x222),(_0x5c8595,_0x4f931a)=>{const _0x29d367=_0x448b52;this[_0x29d367(0x286)]?.[_0x29d367(0x222)](_0x4f931a[_0x29d367(0x271)],_0x4f931a[_0x29d367(0x20e)],_0x4f931a[_0x29d367(0x262)]);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x25c),()=>{const _0xaae761=_0x448b52;this[_0xaae761(0x206)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x31f),()=>{const _0x4a9b43=_0x448b52;this[_0x4a9b43(0x270)]();}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x250),(_0x521684,_0x496525)=>{const _0x588c4d=_0x448b52;this[_0x588c4d(0x286)]?.[_0x588c4d(0x359)](_0x496525);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x350),(_0xbb1218,{replyId:_0x5dd1de})=>{const _0x1a25d8=_0x448b52;console[_0x1a25d8(0x36f)](_0x1a25d8(0x283),_0x5dd1de);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x36e),(_0x11bf57,{replyId:_0x360312})=>{const _0x49ab26=_0x448b52;console[_0x49ab26(0x36f)](_0x49ab26(0x2af),_0x360312);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x344),(_0x4e431c,_0x2f8659)=>{const _0x31cfcd=_0x448b52;this[_0x31cfcd(0x29c)](_0x2f8659);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x1f2),(_0x35b1b4,{replyId:_0x20a20b,partIndex:_0x4c67e6})=>{const _0x41009a=_0x448b52;this[_0x41009a(0x364)]=this[_0x41009a(0x310)][_0x41009a(0x2f5)],this[_0x41009a(0x264)](_0x20a20b,_0x4c67e6);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x247),(_0x51c732,{replyId:_0xa7a010,partIndex:_0x44d1e1})=>{const _0x3b23a6=_0x448b52,_0x29b8ba=this[_0x3b23a6(0x315)](_0xa7a010,_0x44d1e1);_0x29b8ba&&_0x3b23a6(0x300)!=_0x29b8ba[_0x3b23a6(0x27e)][_0x3b23a6(0x31b)][_0x3b23a6(0x328)]&&this[_0x3b23a6(0x25e)][_0x3b23a6(0x29e)]([_0x29b8ba[_0x3b23a6(0x27e)]],_0x3b23a6(0x30b));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x33a),()=>{const _0x43dcd6=_0x448b52;this[_0x43dcd6(0x25e)][_0x43dcd6(0x2a6)](_0x43dcd6(0x30b));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x225),(_0x2a98a7,_0x1b4436)=>{const _0x1aff2c=_0x448b52;this[_0x1aff2c(0x25e)][_0x1aff2c(0x2a6)](_0x1aff2c(0x30b)),this[_0x1aff2c(0x239)](_0x1b4436);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x301),async(_0x38c532,{replyId:_0x150bb9,showDiff:_0xddce25})=>{const _0x22f826=_0x448b52,{reply:_0x56fec4}=this[_0x22f826(0x319)](_0x150bb9),_0x23972e=_0x56fec4[_0x22f826(0x203)]({'showDiff':_0xddce25});await this[_0x22f826(0x310)][_0x22f826(0x230)]({'id':_0x56fec4['id'],'parts':_0x23972e,'renderingStrategy':_0x22f826(0x2cc)});}),this[_0x448b52(0x2e7)](this[_0x448b52(0x310)],_0x448b52(0x2c5),(_0x3e29d4,{replyId:_0x97c0d,partIndex:_0x2e26f6})=>{const _0xb75fa2=_0x448b52;this[_0xb75fa2(0x285)]({'replyId':_0x97c0d,'partIndex':_0x2e26f6}),this[_0xb75fa2(0x25e)][_0xb75fa2(0x2a6)](_0xb75fa2(0x30b));}),this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x287)](_0x448b52(0x2de))&&(this[_0x448b52(0x235)]=this[_0x448b52(0x2fd)][_0x448b52(0x2e2)][_0x448b52(0x2be)](_0x448b52(0x2de)),this[_0x448b52(0x234)](_0x448b52(0x364),!0x1),this[_0x448b52(0x235)][_0x448b52(0x26d)](_0x448b52(0x2f5))['to'](this,_0x448b52(0x364)),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x301),()=>{const _0x581f87=_0x448b52,{replyId:_0x34b7a6,partIndex:_0x4c08b8}=this[_0x581f87(0x2f0)];this[_0x581f87(0x364)]=!this[_0x581f87(0x364)];const {reply:_0x31098d}=this[_0x581f87(0x319)](_0x34b7a6),_0x34f953=_0x31098d[_0x581f87(0x203)]({'showDiff':this[_0x581f87(0x364)],'groupIndex':_0x4c08b8});this[_0x581f87(0x235)][_0x581f87(0x223)]({'part':_0x34f953[0x0],'renderingStrategy':_0x581f87(0x2cc),'keepErrors':!0x0});}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x225),()=>{const _0x21243=_0x448b52,{replyId:_0x2f54fe,partIndex:_0x2e30d1}=this[_0x21243(0x2f0)];this[_0x21243(0x239)]({'replyId':_0x2f54fe,'partIndex':_0x2e30d1}),this[_0x21243(0x235)][_0x21243(0x343)](_0x21243(0x2a5));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x344),()=>{const _0x43c7cd=_0x448b52,{replyId:_0x49ebb6,partIndex:_0x4128ac}=this[_0x43c7cd(0x2f0)];this[_0x43c7cd(0x29c)]({'replyId':_0x49ebb6,'partIndex':_0x4128ac}),this[_0x43c7cd(0x235)][_0x43c7cd(0x343)](_0x43c7cd(0x2a5));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2c5),()=>{const _0x19fe49=_0x448b52,{replyId:_0x26cd04,partIndex:_0x56b6d2}=this[_0x19fe49(0x2f0)];this[_0x19fe49(0x285)]({'replyId':_0x26cd04,'partIndex':_0x56b6d2}),this[_0x19fe49(0x235)][_0x19fe49(0x343)](_0x19fe49(0x323));}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2ad),()=>{const _0x10a422=_0x448b52,{replyId:_0x113490,partIndex:_0x72daeb}=this[_0x10a422(0x2f0)],_0x5d67ba=this[_0x10a422(0x307)](_0x113490,_0x72daeb,_0x10a422(0x229));null!==_0x5d67ba&&this[_0x10a422(0x264)](_0x113490,_0x5d67ba);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2df),()=>{const _0x101680=_0x448b52,{replyId:_0x5e569f,partIndex:_0x22152d}=this[_0x101680(0x2f0)],_0xf74d85=this[_0x101680(0x307)](_0x5e569f,_0x22152d,_0x101680(0x2ec));null!==_0xf74d85&&this[_0x101680(0x264)](_0x5e569f,_0xf74d85);}),this[_0x448b52(0x2e7)](this[_0x448b52(0x235)],_0x448b52(0x2c8),(_0x4c4748,{id:_0x2f5437})=>{const _0x4450a2=_0x448b52;if(_0x4450a2(0x333)!==_0x2f5437)return;const {replyId:_0x4798ff,partIndex:_0x3d43c5}=this[_0x4450a2(0x2f0)];this[_0x4450a2(0x2f0)]=null,this[_0x4450a2(0x310)][_0x4450a2(0x2ab)]({'id':_0x4798ff,'index':_0x3d43c5,'isActive':!0x1});}));}async[_0x2747dd(0x1f7)](){const _0x3a1bb6=_0x2747dd;this[_0x3a1bb6(0x2fd)]instanceof _0x2e07c5?this[_0x3a1bb6(0x1ee)](this[_0x3a1bb6(0x2fd)]):this[_0x3a1bb6(0x2e7)](this[_0x3a1bb6(0x2fd)][_0x3a1bb6(0x2da)],_0x3a1bb6(0x2c1),(_0x572fa2,_0x4a73a6)=>{const _0x17fd9a=_0x3a1bb6;_0x4a73a6['on'](_0x17fd9a(0x25f),()=>{const _0x51aa23=_0x17fd9a;this[_0x51aa23(0x1ee)](_0x4a73a6);});});const _0x21f259=this[_0x3a1bb6(0x2fd)][_0x3a1bb6(0x330)][_0x3a1bb6(0x2be)](_0x3a1bb6(0x21b));let _0x1b6fa6=_0x21f259;if(_0x3a1bb6(0x20f)!=_0x21f259||(_0x1b6fa6=await this[_0x3a1bb6(0x32a)](),_0x1b6fa6))return _0x3a1bb6(0x238)==_0x1b6fa6?this[_0x3a1bb6(0x336)]():this[_0x3a1bb6(0x268)](_0x1b6fa6);}async[_0x2747dd(0x36a)](){const _0x11e11b=_0x2747dd;return await this[_0x11e11b(0x1fd)](),this[_0x11e11b(0x33d)][_0x11e11b(0x334)](),super[_0x11e11b(0x36a)]();}[_0x2747dd(0x29c)](_0x4827ab){const _0x3783d3=_0x2747dd,_0x4e3305=_0x1edd1c(this[_0x3783d3(0x2fd)]);if(!_0x4e3305[_0x3783d3(0x2e2)][_0x3783d3(0x287)](_0x3783d3(0x305)))throw new _0x2f9ac0(_0x3783d3(0x27a),null);const _0x10562a=this[_0x3783d3(0x2fd)][_0x3783d3(0x2e2)][_0x3783d3(0x2be)](_0x3783d3(0x1ec)),{reply:_0x4ce2dc,interaction:_0x334803}=this[_0x3783d3(0x319)](_0x4827ab[_0x3783d3(0x2e4)]),_0x232e1c=this[_0x3783d3(0x315)](_0x4827ab[_0x3783d3(0x2e4)],_0x4827ab[_0x3783d3(0x1e7)]),_0x598eb8=void 0x0!==_0x4827ab[_0x3783d3(0x1e7)]?[_0x4ce2dc[_0x3783d3(0x2fe)][_0x4827ab[_0x3783d3(0x1e7)]]]:_0x4ce2dc[_0x3783d3(0x2fe)][_0x3783d3(0x261)](_0x16add2=>_0x3783d3(0x1f9)==_0x16add2[_0x3783d3(0x2b6)]),_0x34fe3c=_0x598eb8[_0x3783d3(0x2a2)](_0x1fe36e=>_0x4ce2dc[_0x3783d3(0x2fe)][_0x3783d3(0x32b)](_0x1fe36e));if(!_0x232e1c||_0x3783d3(0x300)==_0x232e1c[_0x3783d3(0x27e)][_0x3783d3(0x31b)][_0x3783d3(0x328)])return void _0x34fe3c[_0x3783d3(0x367)](_0x5a7866=>_0x4ce2dc[_0x3783d3(0x2d9)](_0x5a7866,_0x3783d3(0x23d)));_0x34fe3c[_0x3783d3(0x367)](_0x1f6c57=>_0x4ce2dc[_0x3783d3(0x2d9)](_0x1f6c57,_0x3783d3(0x2a5)));const _0x3dffd5=_0x357892({'editor':_0x4e3305,'reply':_0x4ce2dc,'interaction':_0x334803,'groups':_0x598eb8,'transform':!0x0,'documentCompare':_0x10562a,'documentCompareOptions':{'anchor':_0x3783d3(0x233),'markDeletions':!0x0}});let _0x3c132b;_0x232e1c&&this[_0x3783d3(0x298)](_0x232e1c[_0x3783d3(0x27e)]),_0x4e3305[_0x3783d3(0x360)][_0x3783d3(0x335)](_0x4c970c=>{const _0x43db88=_0x3783d3;_0x3c132b=_0x4c970c[_0x43db88(0x29f)],_0x4e3305[_0x43db88(0x2e2)][_0x43db88(0x2be)](_0x43db88(0x2e0))[_0x43db88(0x2c7)](_0x3dffd5),this[_0x43db88(0x25e)][_0x43db88(0x2a6)](_0x43db88(0x30b));}),this[_0x3783d3(0x2e5)][_0x3783d3(0x234)](_0x3c132b,{'interactionId':_0x334803['id'],'replyId':_0x4ce2dc['id'],'indexes':_0x34fe3c[_0x3783d3(0x281)]()}),this[_0x3783d3(0x284)](_0x4ce2dc);}[_0x2747dd(0x239)](_0x2d84ae){const _0x5d0cb5=_0x2747dd,_0x158730=_0x1edd1c(this[_0x5d0cb5(0x2fd)]),_0x291ce1=this[_0x5d0cb5(0x2fd)][_0x5d0cb5(0x2e2)][_0x5d0cb5(0x2be)](_0x159832),{reply:_0x504571,interaction:_0x3e3dd8}=this[_0x5d0cb5(0x319)](_0x2d84ae[_0x5d0cb5(0x2e4)]),_0x8cce37=this[_0x5d0cb5(0x315)](_0x2d84ae[_0x5d0cb5(0x2e4)],_0x2d84ae[_0x5d0cb5(0x1e7)]),_0x3cf27e=void 0x0!==_0x2d84ae[_0x5d0cb5(0x1e7)]?[_0x504571[_0x5d0cb5(0x2fe)][_0x2d84ae[_0x5d0cb5(0x1e7)]]]:_0x504571[_0x5d0cb5(0x2fe)][_0x5d0cb5(0x261)](_0x17e38a=>_0x5d0cb5(0x1f9)==_0x17e38a[_0x5d0cb5(0x2b6)]),_0x84f373=_0x3cf27e[_0x5d0cb5(0x2a2)](_0x43c47d=>_0x504571[_0x5d0cb5(0x2fe)][_0x5d0cb5(0x32b)](_0x43c47d));if(!_0x8cce37||_0x5d0cb5(0x300)==_0x8cce37[_0x5d0cb5(0x27e)][_0x5d0cb5(0x31b)][_0x5d0cb5(0x328)])return void _0x84f373[_0x5d0cb5(0x367)](_0x329f9e=>_0x504571[_0x5d0cb5(0x2d9)](_0x329f9e,_0x5d0cb5(0x23d)));_0x84f373[_0x5d0cb5(0x367)](_0x3cde84=>_0x504571[_0x5d0cb5(0x2d9)](_0x3cde84,_0x5d0cb5(0x2a5)));const _0x30f8c0=_0x357892({'editor':_0x158730,'reply':_0x504571,'interaction':_0x3e3dd8,'groups':_0x3cf27e,'transform':!0x0,'documentCompare':_0x291ce1,'documentCompareOptions':{'anchor':_0x5d0cb5(0x233),'markDeletions':!0x1}});let _0x124a24;_0x8cce37&&this[_0x5d0cb5(0x298)](_0x8cce37[_0x5d0cb5(0x27e)]),_0x158730[_0x5d0cb5(0x360)][_0x5d0cb5(0x335)](_0x55ca25=>{const _0x4d9610=_0x5d0cb5;_0x124a24=_0x55ca25[_0x4d9610(0x29f)];for(const _0x48de86 of _0x30f8c0)_0x48de86[_0x4d9610(0x34c)]=_0x158730[_0x4d9610(0x360)][_0x4d9610(0x219)][_0x4d9610(0x351)],_0x424953(_0x158730,_0x48de86),_0x55ca25[_0x4d9610(0x29f)][_0x4d9610(0x212)](_0x48de86),_0x158730[_0x4d9610(0x360)][_0x4d9610(0x2fb)](_0x48de86);}),this[_0x5d0cb5(0x2e5)][_0x5d0cb5(0x234)](_0x124a24,{'interactionId':_0x3e3dd8['id'],'replyId':_0x504571['id'],'indexes':_0x84f373[_0x5d0cb5(0x281)]()}),this[_0x5d0cb5(0x284)](_0x504571);}[_0x2747dd(0x285)](_0xc69623){const _0x1e6294=_0x2747dd,{reply:_0x1b8a71}=this[_0x1e6294(0x319)](_0xc69623[_0x1e6294(0x2e4)]);_0x1b8a71[_0x1e6294(0x2d9)](_0xc69623[_0x1e6294(0x1e7)],_0x1e6294(0x323));}[_0x2747dd(0x264)](_0x2a9d1f,_0x20ca88){const _0x59ee8f=_0x2747dd;if(!this[_0x59ee8f(0x235)])return;const {reply:_0x208adf}=this[_0x59ee8f(0x319)](_0x2a9d1f),_0x11d56a=_0x208adf[_0x59ee8f(0x203)]({'showDiff':this[_0x59ee8f(0x364)]});let _0x3127ed,_0x374e8b;if(void 0x0!==_0x20ca88?(_0x374e8b=_0x11d56a[_0x59ee8f(0x36c)](_0x1128b3=>_0x1128b3[_0x59ee8f(0x224)]==_0x20ca88),_0x3127ed=_0x374e8b?.[_0x59ee8f(0x224)]):(_0x374e8b=_0x11d56a[0x0],_0x3127ed=_0x374e8b[_0x59ee8f(0x224)]),this[_0x59ee8f(0x2f0)]?.[_0x59ee8f(0x2e4)]==_0x2a9d1f&&this[_0x59ee8f(0x2f0)]?.[_0x59ee8f(0x1e7)]==_0x3127ed)return;const _0x2ad523=this[_0x59ee8f(0x252)](_0x2a9d1f,_0x208adf,_0x374e8b);if(!_0x2ad523)return void this[_0x59ee8f(0x235)][_0x59ee8f(0x303)]();this[_0x59ee8f(0x2f0)]={'replyId':_0x2a9d1f,'partIndex':_0x3127ed},this[_0x59ee8f(0x298)](_0x2ad523,!0x0);const _0x1c6a6e=this[_0x59ee8f(0x307)](_0x2a9d1f,_0x3127ed,_0x59ee8f(0x229));this[_0x59ee8f(0x235)][_0x59ee8f(0x223)]({'part':_0x374e8b,'renderingStrategy':_0x59ee8f(0x2cc)}),this[_0x59ee8f(0x235)][_0x59ee8f(0x28d)]({'index':_0x3127ed,'title':_0x3bbccd(this[_0x59ee8f(0x2fd)][_0x59ee8f(0x275)],_0x59ee8f(0x326),(_0x3127ed+0x1)[_0x59ee8f(0x27b)]()),'showRotator':null!==_0x1c6a6e,'ranges':[_0x2ad523],'areActionsDisabled':_0x208adf[_0x59ee8f(0x221)]}),this[_0x59ee8f(0x235)][_0x59ee8f(0x343)](_0x59ee8f(0x1f9)),this[_0x59ee8f(0x310)][_0x59ee8f(0x2c2)](_0x2a9d1f,_0x3127ed),this[_0x59ee8f(0x310)][_0x59ee8f(0x2ab)]({'id':_0x2a9d1f,'index':_0x3127ed,'isActive':!0x0});}[_0x2747dd(0x307)](_0x470425,_0x208b1c,_0x203113){const _0x32029c=_0x2747dd,{reply:_0x2e0206}=this[_0x32029c(0x319)](_0x470425),_0x29c586=_0x2e0206[_0x32029c(0x203)]({'showDiff':this[_0x32029c(0x364)]});if(0x1==_0x29c586[_0x32029c(0x1e8)])return null;const _0x25d8d0=_0x29c586[_0x32029c(0x288)](_0x42090f=>_0x42090f[_0x32029c(0x224)]==_0x208b1c),_0x4ede93=_0x32029c(0x229)==_0x203113?0x1:-0x1;let _0x318d13=_0x29c586['at']((_0x25d8d0+_0x4ede93)%_0x29c586[_0x32029c(0x1e8)])[_0x32029c(0x224)],_0x378bad=_0x29c586[_0x318d13];for(;!this[_0x32029c(0x252)](_0x470425,_0x2e0206,_0x378bad);){if(_0x318d13=_0x29c586['at']((_0x318d13+_0x4ede93)%_0x29c586[_0x32029c(0x1e8)])[_0x32029c(0x224)],_0x318d13===_0x25d8d0)return null;_0x378bad=_0x29c586[_0x318d13];}return _0x318d13;}[_0x2747dd(0x252)](_0x34b65e,_0x2d92b6,_0x82c0ed){const _0x5aea6c=_0x2747dd,_0x18270f=_0x2d92b6[_0x5aea6c(0x2fe)];if(!_0x82c0ed[_0x5aea6c(0x2f4)])return null;const _0x3a791a=_0x18270f[_0x5aea6c(0x36c)](_0x508d9a=>_0x508d9a[_0x5aea6c(0x224)]==_0x82c0ed[_0x5aea6c(0x224)]);if(_0x5aea6c(0x1f9)!==_0x3a791a?.[_0x5aea6c(0x2b6)])return null;const _0x2e90c5=this[_0x5aea6c(0x315)](_0x34b65e,_0x82c0ed[_0x5aea6c(0x224)]);if(!_0x2e90c5)return null;const {range:_0x17497a,currentIndex:_0x1e7324}=_0x2e90c5;return _0x5aea6c(0x300)==_0x17497a[_0x5aea6c(0x31b)][_0x5aea6c(0x328)]?(_0x2d92b6[_0x5aea6c(0x2d9)](_0x1e7324,_0x5aea6c(0x23d)),null):_0x2e90c5[_0x5aea6c(0x27e)];}[_0x2747dd(0x315)](_0x364e9f,_0x531c54){const _0xde3e2b=_0x2747dd,_0x35cd4a=_0x1edd1c(this[_0xde3e2b(0x2fd)]),{reply:_0x1cdf07,interaction:_0x92c078}=this[_0xde3e2b(0x319)](_0x364e9f),_0x2ba0ac=_0x1cdf07[_0xde3e2b(0x2fe)][_0xde3e2b(0x261)](_0x5cc6ed=>_0xde3e2b(0x1f9)==_0x5cc6ed[_0xde3e2b(0x2b6)]),_0x4f44a2=_0x2ba0ac[_0xde3e2b(0x2a2)](_0x74941d=>_0x1cdf07[_0xde3e2b(0x2fe)][_0xde3e2b(0x32b)](_0x74941d));void 0x0===_0x531c54&&(_0x531c54=_0x4f44a2[0x0]);const _0xa234f3=_0x4f44a2[_0xde3e2b(0x32b)](_0x531c54);if(-0x1==_0xa234f3)return null;const _0x5c3104=_0x2ba0ac[_0xa234f3],_0x32fd5c=new _0x16ddd7([]),_0x24576d=new _0x16ddd7([]);for(const _0x4685e1 of _0x5c3104[_0xde3e2b(0x24a)])if(_0xde3e2b(0x2c9)!=_0x4685e1[_0xde3e2b(0x28b)]&&_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x4685e1[_0xde3e2b(0x213)][_0xde3e2b(0x22a)](!0x0)),_0xde3e2b(0x238)!=_0x4685e1[_0xde3e2b(0x28b)]){const _0x1448ee=_0x598a20(_0x4c36fd=>_0xc47dbe(_0x4c36fd,_0xde3e2b(0x28c))==_0x4685e1['id'],_0x1cdf07[_0xde3e2b(0x28f)],!0x0);_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x1448ee[_0xde3e2b(0x22a)](!0x0));}if(0x0==_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x1e8)]){if(_0x5c3104[_0xde3e2b(0x24a)][0x0][_0xde3e2b(0x1fa)]){const _0x13f031=_0x55da11(_0xde3e2b(0x28c),_0x5c3104[_0xde3e2b(0x24a)][0x0][_0xde3e2b(0x1fa)],_0x1cdf07[_0xde3e2b(0x28f)]);_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x1f1)](_0x13f031[_0xde3e2b(0x22a)](!0x0)),_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x1f1)](_0x13f031[_0xde3e2b(0x22a)](!0x0)),_0x13f031[_0xde3e2b(0x21f)]&&(_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x13f031[_0xde3e2b(0x21f)][_0xde3e2b(0x22a)](!0x0)),_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x13f031[_0xde3e2b(0x21f)][_0xde3e2b(0x22a)](!0x0)));}else{const _0x2a9f00=_0x1cdf07[_0xde3e2b(0x28f)][_0xde3e2b(0x292)][0x0];if(!_0x2a9f00)return null;_0x32fd5c[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x2a9f00[_0xde3e2b(0x22a)](!0x0)),_0x24576d[_0xde3e2b(0x292)][_0xde3e2b(0x208)](_0x2a9f00[_0xde3e2b(0x22a)](!0x0));}}const _0x311d0c=_0x92c078[_0xde3e2b(0x266)](),_0x484838=_0x35cd4a[_0xde3e2b(0x33b)][_0xde3e2b(0x245)](_0x311d0c[_0xde3e2b(0x299)]),_0x29f9ed=_0x37aaa3(_0x32fd5c),_0x14cf04=_0x35cd4a[_0xde3e2b(0x33b)][_0xde3e2b(0x245)](_0x29f9ed),_0x155a6e=_0x35cd4a[_0xde3e2b(0x33b)][_0xde3e2b(0x245)](_0x29f9ed),_0x302a3=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x338)](_0x14cf04,0x0),_0xa90a88=_0x37aaa3(_0x24576d),_0x35cced={'anchor':_0x302a3,'markDeletions':!0x1},_0x2b65eb=_0x35cd4a[_0xde3e2b(0x2e2)][_0xde3e2b(0x2be)](_0x159832)[_0xde3e2b(0x2f9)](_0x29f9ed,_0xa90a88,_0x35cced)[_0xde3e2b(0x28a)]();if(!_0x2b65eb[_0xde3e2b(0x1e8)])return null;_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x335)](_0x54a3d7=>{const _0x416688=_0xde3e2b;for(const _0x26656c of _0x2b65eb)if(_0x416688(0x327)==_0x26656c[_0x416688(0x28b)]){const _0x4a4e19=_0x26656c[_0x416688(0x2e8)],_0x58684a=_0x26656c[_0x416688(0x209)],_0xfe6e0d=new _0x577bc1(_0x4a4e19,_0x58684a);_0x54a3d7[_0x416688(0x29f)][_0x416688(0x212)](_0xfe6e0d),_0x35cd4a[_0x416688(0x360)][_0x416688(0x2fb)](_0xfe6e0d);}else _0x416688(0x324)!==_0x26656c[_0x416688(0x28b)]&&(_0x26656c[_0x416688(0x34c)]=null,_0x26656c[_0x416688(0x347)]=!0x1,_0x54a3d7[_0x416688(0x29f)][_0x416688(0x212)](_0x26656c),_0x35cd4a[_0x416688(0x360)][_0x416688(0x2fb)](_0x26656c));});const _0x2db9da=_0x41899c(_0x35cd4a,_0x2b65eb,_0x14cf04);_0x25c4d2(_0x35cd4a[_0xde3e2b(0x360)],_0x2db9da);const _0x1e208d=_0x2db9da[_0xde3e2b(0x21c)]()[_0xde3e2b(0x2ae)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)](),_0x59e730=_0x2db9da[_0xde3e2b(0x21c)]()[_0xde3e2b(0x28e)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)](),_0x221638=[];let _0x3c3b3f=_0x14cf04,_0x28c699=_0x155a6e;for(let _0x589d41=0x0;_0x589d41<_0x59e730[_0xde3e2b(0x1e8)];_0x589d41++){const _0x347812=_0x3c3b3f[_0xde3e2b(0x2a8)]-_0x59e730[_0x589d41];_0x221638[_0x589d41]=_0x28c699[_0xde3e2b(0x2a8)]-_0x347812,_0x3c3b3f=_0x3c3b3f[_0xde3e2b(0x202)](_0x59e730[_0x589d41]),_0x28c699=_0x28c699[_0xde3e2b(0x202)](_0x221638[_0x589d41]);}const _0x3bc5f3=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x353)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x155a6e,_0x1e208d),_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x155a6e,_0x221638)),_0xd9d99e=_0x155a6e[_0xde3e2b(0x277)](0x0)[_0xde3e2b(0x31e)](_0x192377),_0x446010=Array[_0xde3e2b(0x309)](_0x484838[_0xde3e2b(0x33c)]())[_0xde3e2b(0x36c)](_0x44d33e=>_0x44d33e[_0xde3e2b(0x31e)](_0x192377)==_0xd9d99e)[_0xde3e2b(0x2e1)](),_0x33a86e=_0x3bc5f3[_0xde3e2b(0x2ae)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)](),_0x59e9ed=_0x3bc5f3[_0xde3e2b(0x28e)][_0xde3e2b(0x23f)][_0xde3e2b(0x281)]();_0x33a86e[0x0]=_0x446010[0x0]+_0x33a86e[0x0],_0x59e9ed[0x0]=_0x446010[0x0]+_0x59e9ed[0x0];let _0x3b9f57=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x353)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x219)][_0xde3e2b(0x1f4)](),_0x33a86e),_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x1fc)](_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x219)][_0xde3e2b(0x1f4)](),_0x59e9ed));const _0x216bed=_0x35cd4a[_0xde3e2b(0x360)][_0xde3e2b(0x219)][_0xde3e2b(0x35d)][_0xde3e2b(0x28a)](_0x311d0c[_0xde3e2b(0x351)]);for(const _0x4af460 of _0x216bed)_0x3b9f57=_0x4e6981[_0xde3e2b(0x321)](_0x3b9f57[_0xde3e2b(0x2a4)](_0x4af460));return{'range':_0x3b9f57,'currentIndex':_0x531c54};}[_0x2747dd(0x1ee)](_0x4370e1){const _0x29f134=_0x2747dd;if(!_0x4370e1[_0x29f134(0x2e2)][_0x29f134(0x287)](_0x29f134(0x200)))return;const _0x4bd8ec=_0x4370e1[_0x29f134(0x289)][_0x29f134(0x2be)](_0x29f134(0x210)),_0x261273=_0x4370e1[_0x29f134(0x289)][_0x29f134(0x2be)](_0x29f134(0x226));this[_0x29f134(0x2e7)](_0x4bd8ec,_0x29f134(0x2d4),(_0x41af21,_0x58a66e,_0x59a148)=>{const _0x2f31c9=_0x29f134,_0x28f69d=this[_0x2f31c9(0x2e5)][_0x2f31c9(0x2be)](_0x58a66e);if(!_0x28f69d)return;const _0x1feb4c=this[_0x2f31c9(0x286)][_0x2f31c9(0x1ff)](_0x28f69d[_0x2f31c9(0x296)])[_0x2f31c9(0x337)](_0x28f69d[_0x2f31c9(0x2e4)]);_0x28f69d[_0x2f31c9(0x2a1)][_0x2f31c9(0x367)](_0x491f22=>_0x1feb4c[_0x2f31c9(0x2d9)](_0x491f22,_0x2f31c9(0x1f9))),this[_0x2f31c9(0x2e5)][_0x2f31c9(0x22f)](_0x58a66e),this[_0x2f31c9(0x2e5)][_0x2f31c9(0x234)](_0x59a148,_0x28f69d);}),this[_0x29f134(0x2e7)](_0x261273,_0x29f134(0x2d4),(_0x1b80ea,_0x292d4b,_0x26a048)=>{const _0x26210b=_0x29f134,_0x22ab53=this[_0x26210b(0x2e5)][_0x26210b(0x2be)](_0x292d4b);if(!_0x22ab53)return;const _0xe1c766=this[_0x26210b(0x286)][_0x26210b(0x1ff)](_0x22ab53[_0x26210b(0x296)])[_0x26210b(0x337)](_0x22ab53[_0x26210b(0x2e4)]);_0x22ab53[_0x26210b(0x2a1)][_0x26210b(0x367)](_0x402ae1=>_0xe1c766[_0x26210b(0x2d9)](_0x402ae1,_0x26210b(0x2a5))),this[_0x26210b(0x2e5)][_0x26210b(0x22f)](_0x292d4b),this[_0x26210b(0x2e5)][_0x26210b(0x234)](_0x26a048,_0x22ab53);});}async[_0x2747dd(0x268)](_0xf22291){const _0x48748c=_0x2747dd;this[_0x48748c(0x2fd)][_0x48748c(0x2e2)][_0x48748c(0x287)](_0x48748c(0x2de))&&this[_0x48748c(0x2fd)][_0x48748c(0x2e2)][_0x48748c(0x2be)](_0x48748c(0x2de))[_0x48748c(0x303)](),(this[_0x48748c(0x2fd)][_0x48748c(0x2e2)][_0x48748c(0x2be)](_0x2e48c5)[_0x48748c(0x2ea)][_0x48748c(0x346)](_0x48748c(0x36b)),this[_0x48748c(0x310)][_0x48748c(0x255)](_0x48748c(0x2cc)),this[_0x48748c(0x310)][_0x48748c(0x279)](!0x0),await this[_0x48748c(0x1fd)]());try{await this[_0x48748c(0x241)][_0x48748c(0x2fc)](_0xf22291)[_0x48748c(0x2d5)](),await this[_0x48748c(0x336)](_0xf22291),this[_0x48748c(0x27c)]('\x20'),await this[_0x48748c(0x286)][_0x48748c(0x29d)](_0xf22291,this[_0x48748c(0x25e)][_0x48748c(0x24f)]),this[_0x48748c(0x286)][_0x48748c(0x1ea)]()&&this[_0x48748c(0x272)]();}catch(_0x3d59e0){this[_0x48748c(0x310)][_0x48748c(0x30e)]({'errorMessage':_0x3bbccd(this[_0x48748c(0x2fd)][_0x48748c(0x275)],_0x48748c(0x1e4)),'id':_0xf22291}),this[_0x48748c(0x357)](new _0x2f9ac0(_0x48748c(0x21a),this,{'error':_0x3d59e0}));}finally{this[_0x48748c(0x310)][_0x48748c(0x1ef)](),this[_0x48748c(0x310)][_0x48748c(0x255)](_0x48748c(0x32d)),this[_0x48748c(0x310)][_0x48748c(0x279)](!0x1);}}async[_0x2747dd(0x32a)](){const _0x2ca8b1=_0x2747dd,_0x4b28f8=this[_0x2ca8b1(0x241)][_0x2ca8b1(0x297)](this[_0x2ca8b1(0x2dd)](),{'limit':0x1,'sortBy':_0x2ca8b1(0x242)});try{const _0x5ce96c=await _0x4b28f8[_0x2ca8b1(0x2bc)]();return _0x5ce96c[_0x2ca8b1(0x1e8)]?_0x5ce96c[0x0]['id']:_0x2ca8b1(0x238);}catch(_0x966bce){return this[_0x2ca8b1(0x310)][_0x2ca8b1(0x30e)]({'errorMessage':_0x3bbccd(this[_0x2ca8b1(0x2fd)][_0x2ca8b1(0x275)],_0x2ca8b1(0x1e4)),'id':_0x441c86()}),this[_0x2ca8b1(0x357)](new _0x2f9ac0(_0x2ca8b1(0x2c6),this,{'error':_0x966bce})),this[_0x2ca8b1(0x310)][_0x2ca8b1(0x279)](!0x1),this[_0x2ca8b1(0x310)][_0x2ca8b1(0x216)](),null;}}[_0x2747dd(0x362)](_0x4be48b){const _0x1ba129=_0x2747dd;this[_0x1ba129(0x286)]['id']===_0x4be48b&&this[_0x1ba129(0x336)]();}[_0x2747dd(0x272)](){const _0x56bfe7=_0x2747dd;this[_0x56bfe7(0x286)]?.[_0x56bfe7(0x294)](_0x3bbccd(this[_0x56bfe7(0x2fd)][_0x56bfe7(0x275)],_0x56bfe7(0x2f8)));}async[_0x2747dd(0x26f)](){const _0x559ecc=_0x2747dd,_0x1b4841=this[_0x559ecc(0x25e)][_0x559ecc(0x1f5)]();this[_0x559ecc(0x286)]?.[_0x559ecc(0x244)](_0x1b4841),this[_0x559ecc(0x272)]();}[_0x2747dd(0x325)](){const _0x2a6cae=_0x2747dd;this[_0x2a6cae(0x286)]?.[_0x2a6cae(0x2ac)]();}[_0x2747dd(0x2c4)](){const _0x28bd9f=_0x2747dd;this[_0x28bd9f(0x310)][_0x28bd9f(0x2c4)]();}async[_0x2747dd(0x2b8)](){const _0x134892=_0x2747dd;await this[_0x134892(0x336)]();}async[_0x2747dd(0x36d)]({message:_0x55f310,attributes:_0x31f248}){const _0xe6b8ec=_0x2747dd;await this[_0xe6b8ec(0x27f)]({'userMessage':_0x55f310,'attributes':_0x31f248});}[_0x2747dd(0x2dd)](){const _0x2b2854=_0x2747dd,_0x381388=this[_0x2b2854(0x2fd)][_0x2b2854(0x330)][_0x2b2854(0x2be)](_0x2b2854(0x34d));if(!_0x381388)throw new _0x2f9ac0(_0x2b2854(0x1e6),this);return _0x381388;}async[_0x2747dd(0x336)](_0xd25225){const _0x3c90b9=_0x2747dd;try{this[_0x3c90b9(0x310)][_0x3c90b9(0x31d)](),await this[_0x3c90b9(0x22e)](_0xd25225);}catch(_0xa8bc9f){this[_0x3c90b9(0x310)][_0x3c90b9(0x30e)]({'errorMessage':_0x3bbccd(this[_0x3c90b9(0x2fd)][_0x3c90b9(0x275)],_0x3c90b9(0x1e5)),'id':_0xd25225||_0x441c86()}),console[_0x3c90b9(0x1e9)](_0xa8bc9f),this[_0x3c90b9(0x286)]=void 0x0,this[_0x3c90b9(0x310)][_0x3c90b9(0x216)]();}}async[_0x2747dd(0x22e)](_0x51d76d){const _0x14054f=_0x2747dd;let _0x298bc0;this[_0x14054f(0x2fd)][_0x14054f(0x2e2)][_0x14054f(0x287)](_0x14054f(0x2de))&&this[_0x14054f(0x2fd)][_0x14054f(0x2e2)][_0x14054f(0x2be)](_0x14054f(0x2de))[_0x14054f(0x303)](),_0x51d76d||!this[_0x14054f(0x286)]?_0x298bc0=this[_0x14054f(0x2fd)][_0x14054f(0x330)][_0x14054f(0x2be)](_0x14054f(0x316)):this[_0x14054f(0x310)][_0x14054f(0x2bb)]&&(_0x298bc0=this[_0x14054f(0x286)][_0x14054f(0x243)]['id']),await this[_0x14054f(0x1fd)]();const _0x3dbb86=this[_0x14054f(0x2dd)](),_0x37ec35=_0x51d76d||_0x441c86();this[_0x14054f(0x286)]=new _0x13f3a3({'connector':this[_0x14054f(0x241)],'chatModels':this[_0x14054f(0x2b2)],'selectedModelId':_0x298bc0,'conversationId':_0x37ec35,'group':_0x3dbb86,'getEditor':()=>_0x1edd1c(this[_0x14054f(0x2fd)]),'isFromHistory':!!_0x51d76d}),this[_0x14054f(0x286)][_0x14054f(0x2b9)](_0x14054f(0x314),_0x14054f(0x267))['to'](this),this[_0x14054f(0x286)]['on'](_0x14054f(0x295),(_0x4666f8,_0x1b7f58)=>{const _0x534093=_0x14054f;this[_0x534093(0x310)][_0x534093(0x1f0)](_0x1b7f58),this[_0x534093(0x310)][_0x534093(0x217)](),this[_0x534093(0x310)][_0x534093(0x2f1)](),this[_0x534093(0x310)][_0x534093(0x26a)](),_0x51d76d||(this[_0x534093(0x310)][_0x534093(0x201)](),this[_0x534093(0x272)]());}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2c0),(_0x5ae2be,_0x5a0b49)=>{const _0x271ccb=_0x14054f;this[_0x271ccb(0x310)][_0x271ccb(0x306)](_0x5a0b49[_0x271ccb(0x24b)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x231),(_0x74c564,_0x387826)=>{const _0x18fb8b=_0x14054f;this[_0x18fb8b(0x310)][_0x18fb8b(0x2dc)](_0x387826);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x308),()=>{const _0x308562=_0x14054f,_0x2d46ba=this[_0x308562(0x310)][_0x308562(0x24d)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x308562(0x310)][_0x308562(0x218)](_0x2d46ba);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x27d),()=>{const _0x531e55=_0x14054f,_0x22ba2e=this[_0x531e55(0x310)][_0x531e55(0x24d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x531e55(0x310)][_0x531e55(0x218)](_0x22ba2e);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x273),(_0x36d802,_0x45f917)=>{const _0x48214f=_0x14054f;this[_0x48214f(0x310)][_0x48214f(0x2cd)](_0x45f917,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2ca),(_0x37b5d7,_0x38c3d6)=>{const _0x17807e=_0x14054f;this[_0x17807e(0x310)][_0x17807e(0x2cd)](_0x38c3d6,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x14054f(0x286)]['on'](_0x14054f(0x267),()=>{const _0x2a3633=_0x14054f;this[_0x2a3633(0x310)][_0x2a3633(0x24e)]();}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2a3),async()=>{const _0x3a1264=_0x14054f;await this[_0x3a1264(0x310)][_0x3a1264(0x313)]();}),this[_0x14054f(0x286)]['on'](_0x14054f(0x361),(_0x5a3fc2,_0x9e5520)=>{const _0x431469=_0x14054f;this[_0x431469(0x310)][_0x431469(0x25a)](_0x9e5520['id']);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x22c),(_0x2544ce,_0x3dda49,_0x344113)=>{const _0x4d4e15=_0x14054f;this[_0x4d4e15(0x27c)](_0x3dda49,_0x344113);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x34b),(_0x33db73,_0x4051a8)=>{const _0x3e0237=_0x14054f;_0x3e0237(0x2b0)===_0x4051a8[_0x3e0237(0x28b)]?this[_0x3e0237(0x310)][_0x3e0237(0x22b)](_0x4051a8):this[_0x3e0237(0x310)][_0x3e0237(0x312)](_0x4051a8);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2cf),async(_0x46d308,_0x57729e)=>{const _0x32e6bb=_0x14054f;await this[_0x32e6bb(0x349)]({'reply':_0x57729e});}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2e6),(_0x2def7b,{reply:_0x1c657f,index:_0xb14275,state:_0x26ff40})=>{const _0x2df477=_0x14054f;this[_0x2df477(0x310)][_0x2df477(0x23a)]({'id':_0x1c657f['id'],'index':_0xb14275,'state':_0x26ff40}),this[_0x2df477(0x2f0)]?.[_0x2df477(0x2e4)][_0x2df477(0x34a)](_0x1c657f['id'])&&this[_0x2df477(0x2f0)]?.[_0x2df477(0x1e7)]==_0xb14275&&this[_0x2df477(0x235)]?.[_0x2df477(0x343)](_0x26ff40);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2b7),(_0x55e935,_0x6bde9)=>{const _0x475051=_0x14054f;if(this[_0x475051(0x310)][_0x475051(0x2ee)](_0x6bde9[_0x475051(0x30a)],_0x6bde9[_0x475051(0x2f6)]),_0x475051(0x290)===_0x6bde9[_0x475051(0x30a)][_0x475051(0x28b)]){const _0x46d164=[..._0x1edd1c(this[_0x475051(0x2fd)])[_0x475051(0x360)][_0x475051(0x219)][_0x475051(0x290)][_0x475051(0x355)]()];this[_0x475051(0x25e)][_0x475051(0x29e)](_0x46d164,_0x475051(0x2d3)+this[_0x475051(0x286)]?.['id']);}}),this[_0x14054f(0x286)]['on'](_0x14054f(0x1eb),(_0x31e7cb,_0x52a9eb)=>{const _0x11c01=_0x14054f;this[_0x11c01(0x310)][_0x11c01(0x365)](_0x52a9eb[_0x11c01(0x35f)]),_0x11c01(0x248)==_0x52a9eb[_0x11c01(0x35f)]&&this[_0x11c01(0x325)](),_0x11c01(0x290)===_0x52a9eb[_0x11c01(0x28b)]&&this[_0x11c01(0x25e)][_0x11c01(0x2a6)](_0x11c01(0x2d3)+this[_0x11c01(0x286)]?.['id']);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2d8),(_0x516da2,_0x27ca92)=>{const _0x67da16=_0x14054f;this[_0x67da16(0x310)][_0x67da16(0x33f)](_0x27ca92[_0x67da16(0x30a)][_0x67da16(0x35f)],_0x27ca92[_0x67da16(0x2f6)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x249),(_0x3dacd9,_0x2dea76)=>{const _0xb7b43d=_0x14054f;this[_0xb7b43d(0x310)][_0xb7b43d(0x251)](_0x2dea76[_0xb7b43d(0x278)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x205),(_0x2091de,_0x410a23)=>{const _0x4d59a9=_0x14054f;this[_0x4d59a9(0x310)][_0x4d59a9(0x265)](_0x410a23[_0x4d59a9(0x332)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x20b),(_0x46e6d0,_0x369660)=>{const _0x5cced1=_0x14054f;this[_0x5cced1(0x310)][_0x5cced1(0x2db)](_0x369660[_0x5cced1(0x271)],_0x369660[_0x5cced1(0x30f)],_0x369660[_0x5cced1(0x318)],_0x369660[_0x5cced1(0x262)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2f7),(_0x3574fa,_0x235415)=>{const _0x2b343f=_0x14054f;this[_0x2b343f(0x310)][_0x2b343f(0x269)](_0x235415[_0x2b343f(0x271)],_0x235415[_0x2b343f(0x2ce)],_0x235415[_0x2b343f(0x35c)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x2ba),(_0x500d72,_0x5bd06d)=>{const _0x4d39e9=_0x14054f;this[_0x4d39e9(0x310)][_0x4d39e9(0x34f)](_0x5bd06d);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x282),async(_0xa07b7c,_0x122137)=>{const _0xe53a56=_0x14054f,_0x36d362=(await this[_0xe53a56(0x2b2)][_0xe53a56(0x23b)]())[_0xe53a56(0x36c)](_0x1c554e=>_0x1c554e['id']===_0x122137[_0xe53a56(0x243)]?.['id'])||null;this[_0xe53a56(0x310)][_0xe53a56(0x211)](_0x36d362,_0x122137[_0xe53a56(0x204)]);}),this[_0x14054f(0x286)]['on'](_0x14054f(0x1e9),(_0x2085bd,{error:_0x36b43b,interactionId:_0x54bc4e,fileName:_0x4a332b,url:_0xc1a559,sourceId:_0x408979,sourceLabel:_0x33497e})=>{const _0x290d68=_0x14054f,_0x265e00=_0x54bc4e?_0x54bc4e+':'+_0x441c86():_0x441c86();_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x34e))?this[_0x290d68(0x310)][_0x290d68(0x280)]({'staticMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x25d)),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x2c6))||_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x30c))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x1e5)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x237))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x2e3),_0x4a332b),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x246))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x322),_0xc1a559),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x257))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x256)),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x29b))?this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x32f)),'id':_0x265e00}):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x342))?(_0x408979&&this[_0x290d68(0x310)][_0x290d68(0x291)](_0x408979),this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x304),_0x33497e||_0x290d68(0x30f)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x2e9))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x2d7)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x29a))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x20c)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x2fa))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x22d)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x356))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x2f2)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x1fb))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x26b)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):_0x36b43b[_0x290d68(0x25b)][_0x290d68(0x1f3)](_0x290d68(0x30d))?(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x345)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b)):(this[_0x290d68(0x310)][_0x290d68(0x30e)]({'errorMessage':_0x3bbccd(this[_0x290d68(0x2fd)][_0x290d68(0x275)],_0x290d68(0x35a)),'id':_0x265e00}),this[_0x290d68(0x357)](_0x36b43b));}),await this[_0x14054f(0x286)][_0x14054f(0x20d)](this[_0x14054f(0x2fd)][_0x14054f(0x330)][_0x14054f(0x2be)](_0x14054f(0x2eb))),_0x51d76d||await this[_0x14054f(0x286)][_0x14054f(0x2ae)]();}async[_0x2747dd(0x27f)]({userMessage:_0x4d09ee,attributes:_0x1053ac}){const _0x47d9dc=_0x2747dd;if(!this[_0x47d9dc(0x286)])throw new _0x2f9ac0(_0x47d9dc(0x2d6));if(this[_0x47d9dc(0x286)][_0x47d9dc(0x2b4)]()){const _0x1b4187=await this[_0x47d9dc(0x25e)][_0x47d9dc(0x2ef)]();await this[_0x47d9dc(0x286)][_0x47d9dc(0x2aa)](_0x1b4187);}this[_0x47d9dc(0x286)]['id']&&this[_0x47d9dc(0x286)][_0x47d9dc(0x253)]&&await this[_0x47d9dc(0x286)][_0x47d9dc(0x311)]({'userMessage':_0x4d09ee,'attributes':_0x1053ac});}[_0x2747dd(0x274)](){const _0x1e1e1e=_0x2747dd;console[_0x1e1e1e(0x36f)](_0x1e1e1e(0x232));}[_0x2747dd(0x260)](_0x51b3b2){const _0x309683=_0x2747dd;this[_0x309683(0x310)][_0x309683(0x220)](_0x51b3b2);}[_0x2747dd(0x357)](_0x34103c){const _0x84fe6=_0x2747dd;_0x4adf39(_0x34103c[_0x84fe6(0x25b)]);}[_0x2747dd(0x258)](_0x5e873e){const _0x1554d9=_0x2747dd;this[_0x1554d9(0x286)]?.[_0x1554d9(0x320)](_0x5e873e);}[_0x2747dd(0x206)](){const _0x4f4be5=_0x2747dd;this[_0x4f4be5(0x286)]?.[_0x4f4be5(0x25c)]();}[_0x2747dd(0x270)](){const _0x57c279=_0x2747dd;this[_0x57c279(0x286)]?.[_0x57c279(0x31f)]();}[_0x2747dd(0x319)](_0x5958a3){const _0x1ded7c=_0x2747dd,[_0xc7962e,_0x4c3a56]=_0x5958a3[_0x1ded7c(0x227)](':'),_0x1f4149=this[_0x1ded7c(0x286)][_0x1ded7c(0x1ff)](_0xc7962e),_0x5541e5=_0x1f4149[_0x1ded7c(0x337)](_0x4c3a56);return{'interaction':_0x1f4149,'reply':_0x5541e5};}[_0x2747dd(0x298)](_0x54161d,_0xc94e9=!0x1){const _0x314ff5=_0x2747dd,_0x3c2473=_0x1edd1c(this[_0x314ff5(0x2fd)]),_0x458d6e={'target':_0x3c2473[_0x314ff5(0x352)][_0x314ff5(0x2ea)][_0x314ff5(0x263)][_0x314ff5(0x1ed)](_0x3c2473[_0x314ff5(0x352)][_0x314ff5(0x2d0)][_0x314ff5(0x228)](_0x54161d)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xc94e9};_0xc94e9&&(_0x458d6e[_0x314ff5(0x2d1)]=!0x0),_0x26977c(_0x458d6e);}[_0x2747dd(0x27c)](_0x55eac9,_0x56baec=!0x1){const _0x15be4c=_0x2747dd;this[_0x15be4c(0x310)][_0x15be4c(0x22c)](_0x55eac9||_0x3bbccd(this[_0x15be4c(0x2fd)][_0x15be4c(0x275)],_0x15be4c(0x2ed)),_0x56baec);}async[_0x2747dd(0x349)]({reply:_0x4bc9cb,renderingStrategy:_0x247da1}){const _0x25b4e7=_0x2747dd,{id:_0x5a476d,interactionId:_0x5b4ed5,isDone:_0x45ed13,type:_0x231797,parsedContent:_0x1e1d93}=_0x4bc9cb,_0x5333c2=_0x5b4ed5+':'+_0x5a476d;if(_0x25b4e7(0x1f6)===_0x231797){const _0x4b2816=_0x4bc9cb[_0x25b4e7(0x203)]({'showDiff':this[_0x25b4e7(0x310)][_0x25b4e7(0x2f5)]});await this[_0x25b4e7(0x310)][_0x25b4e7(0x230)]({'id':_0x5333c2,'parts':_0x4b2816,'renderingStrategy':_0x247da1,'isDone':_0x45ed13});}else _0x25b4e7(0x2b0)===_0x231797&&await this[_0x25b4e7(0x310)][_0x25b4e7(0x215)]({'id':_0x5333c2,'parsedContent':_0x1e1d93,'renderingStrategy':_0x247da1,'isDone':_0x45ed13});_0x45ed13&&_0x4bc9cb[_0x25b4e7(0x32e)][_0x25b4e7(0x1e8)]>0x0&&this[_0x25b4e7(0x310)][_0x25b4e7(0x21d)](_0x5333c2,_0x4bc9cb[_0x25b4e7(0x32e)]);}async[_0x2747dd(0x1fd)](){const _0x32c10f=_0x2747dd,_0xcbc6a9=this[_0x32c10f(0x286)]?.[_0x32c10f(0x302)];_0xcbc6a9&&(_0xcbc6a9[_0x32c10f(0x358)](),this[_0x32c10f(0x310)][_0x32c10f(0x2c3)](_0xcbc6a9));}async[_0x2747dd(0x35b)](){const _0x4d6957=_0x2747dd,_0x4594bf=this[_0x4d6957(0x286)]?.[_0x4d6957(0x302)];if(_0x4594bf){for await(const _0x5c47d7 of _0x4594bf[_0x4d6957(0x32c)])await this[_0x4d6957(0x349)]({'reply':_0x5c47d7,'renderingStrategy':_0x4d6957(0x2cc)});}}[_0x2747dd(0x284)](_0x180eeb){const _0x514440=_0x2747dd,_0x50d871={'positiveCount':_0x180eeb[_0x514440(0x2fe)][_0x514440(0x261)](_0x2b3424=>_0x514440(0x2a5)===_0x2b3424[_0x514440(0x2b6)])[_0x514440(0x1e8)],'totalCount':_0x180eeb[_0x514440(0x2fe)][_0x514440(0x1e8)],'modificationId':_0x180eeb['id']},_0x2b47d1=this[_0x514440(0x286)][_0x514440(0x1ff)](_0x180eeb[_0x514440(0x296)])[_0x514440(0x2b3)];_0x2b47d1&&this[_0x514440(0x241)][_0x514440(0x240)](this[_0x514440(0x286)]['id'],_0x2b47d1,_0x50d871);}[_0x2747dd(0x2f3)](_0x501474){const _0x4ae38b=_0x2747dd;let _0x15b4d1=null,_0x5ce051=null;this['on'](_0x4ae38b(0x314),(_0x31cd8b,_0x2dbb4b,_0x5d99df)=>{const _0x24095a=_0x4ae38b;_0x5d99df['id']!==_0x15b4d1&&(_0x15b4d1=_0x5d99df['id'],_0x5ce051=this[_0x24095a(0x340)](_0x5d99df)),_0x501474(_0x2dbb4b,_0x5ce051);});}[_0x2747dd(0x340)](_0x3ea4a5){const _0x59ff9f=_0x2747dd,_0x47c7ac=this[_0x59ff9f(0x310)],_0x1964b7=()=>{const _0x439da6=_0x59ff9f;_0x3ea4a5[_0x439da6(0x31a)](),_0x3ea4a5[_0x439da6(0x331)](),_0x47c7ac[_0x439da6(0x2a9)]();},_0x423d63=()=>{const _0x42b49c=_0x59ff9f;_0x3ea4a5[_0x42b49c(0x24c)]&&(_0x3ea4a5[_0x42b49c(0x24c)][_0x42b49c(0x348)](),_0x3ea4a5[_0x42b49c(0x24c)]=void 0x0);};return{'insertTextReply':(_0x501c28,_0x4ff7e8)=>{const _0x23d18d=_0x59ff9f;_0x423d63(),_0x1964b7();const _0x20e463=_0x3ea4a5[_0x23d18d(0x24c)]=_0x3ea4a5[_0x23d18d(0x31c)]({'type':_0x23d18d(0x2b0),'interactionId':_0x3ea4a5['id'],'content':_0x501c28,'id':_0x4ff7e8||_0x441c86()});return _0x423d63(),_0x20e463;},'insertCustomElement':async(_0xf1815f,_0x343ffd)=>(_0x423d63(),_0x1964b7(),_0x47c7ac[_0x59ff9f(0x363)](_0xf1815f,_0x343ffd||_0x441c86())),'setLoadingMessage':_0x54786e=>{const _0xf10a36=_0x59ff9f;_0x47c7ac[_0xf10a36(0x218)](_0x54786e);},'clearLoadingMessage':()=>{const _0x44d873=_0x59ff9f;_0x47c7ac[_0x44d873(0x2a9)]();}};}}
|
|
23
|
+
const _0x58d811=_0x229b;(function(_0x18fe88,_0x1189f0){const _0xd5451e=_0x229b,_0x34b318=_0x18fe88();while(!![]){try{const _0x37dff3=-parseInt(_0xd5451e(0x1fb))/0x1*(parseInt(_0xd5451e(0x279))/0x2)+parseInt(_0xd5451e(0x20f))/0x3*(-parseInt(_0xd5451e(0x166))/0x4)+-parseInt(_0xd5451e(0x27b))/0x5*(parseInt(_0xd5451e(0x109))/0x6)+-parseInt(_0xd5451e(0x27e))/0x7+parseInt(_0xd5451e(0x264))/0x8*(parseInt(_0xd5451e(0x176))/0x9)+parseInt(_0xd5451e(0x10f))/0xa+-parseInt(_0xd5451e(0x1ea))/0xb*(-parseInt(_0xd5451e(0x25c))/0xc);if(_0x37dff3===_0x1189f0)break;else _0x34b318['push'](_0x34b318['shift']());}catch(_0x228b57){_0x34b318['push'](_0x34b318['shift']());}}}(_0x3140,0x5e33b));function _0x229b(_0x309750,_0x3eca7a){const _0x31405b=_0x3140();return _0x229b=function(_0x229b7c,_0x1af33c){_0x229b7c=_0x229b7c-0xfe;let _0x28329b=_0x31405b[_0x229b7c];return _0x28329b;},_0x229b(_0x309750,_0x3eca7a);}import{ContextPlugin as _0x31d53c,Editor as _0x23a8c8}from'ckeditor5/src/core.js';function _0x3140(){const _0x3f90ea=['ai-chat-context-file-too-large','contextItem','data-id','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','selection','activeConversation','2YSxNHd','handleUserInteraction','35hoiKxw','_applySuggestion','_createFromRanges','4403651yBfusv','_getPresentableSiblingContentPartIndex','ai-chat-context-unsupported-file-type','toString','populateSourceResourceBalloon','static','ai.models.defaultModelId','startsWith','sourcePosition','removed','contextItems','enableControls','Disliked\x20response','_bodyCollection','editors','applySuggestion','selectModel','messageId','bind','getChildren','interactionId','ai.models','findIndex','_getAIChatInteractionAPI','find','645486BvgUBX','updateResourceState','open','toggleSuggestionDisplayMode','disableControls','partIndex','6662820POeras','type','pending','toolDataReceived','ai-chat-controller-mouse-over','isUploadInProgress','dislike','index','AI_CHAT_CONTEXT_FILE_TOO_LARGE','setFeedItemAIReplySuggestionPartActive','setAddContextOptions','addFeedItemStaticMessage','changes','replyId','Undo','addFeedInteractionHeader','_showConversationHistory','_rejectSuggestion','_toggleWebSearch','_setIsMaximized','view','rejected','ai-chat-invalid-request','split','addFileToContext','addFeedItemError','isOfficialPlugin','updateFeedItemAIReplyContent','executeCustomItemCallback','getTransformedByOperation','scrollFeedToSuggestion','_updateRatings','toggleLoadingSkeleton','updateConversationTitle','TrackChangesEditing','ai.chat.context','setConversationTitle','webSearchFinished','ai-chat-context-unsupported-type','dialogClosed','config','isCurrentDocumentInContext','data','root','main','addSelectionToChatContext','AI_CHAT_GENERIC_ERROR','_toggleReasoning','uiId','getConversations','addContextOptionsChanged','getAll','toggleWebSearch','activateTab','includes','remove','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','createRange','destroy','fetchConversations','ai-chat-context-invalid-data','contextItemRemoved','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNTITLED_CONVERSATION','ai-chat-source-resources-load-failed','AIEditing','ai-chat-conversation-not-found','startAutoScroll','AI_CHAT_CONTEXT_INVALID_DATA','slice','addOperation','_applyOperationsAsSuggestions','_aiChatBalloon','showPrevious','sessionId','unshift','interactionCreated','requires','modification','addFeedItemAIReply','addResourceToContext','text','context','outdated','_aiConnector','setIsUploadInProgress','showChangeInText','8600KsltnH','ai-chat-file-upload-failed','alignToTop','interactionDestroyed','closeSourceResourceBalloon','chat','addFeedItemAISuggestion','uploadProgressChanged','baseVersion','AIChatUI','updateContent','showFakeVisualSelection','ai-chat-missing-channel-id','_getUserPresentableContentPartDocumentRange','add','insertSuggestion','1348632LFjbNW','setConversationContext','sources','_getLastCreatedConversationId','ai-chat-controller-no-active-conversation','filter','next','lastCreated','howMany','addFilesToContext','redo','_handleUIUserMessage','_aiEditing','domConverter','getRanges','upsertAIChatRating','addFeedItemUserMessage','anchorId','isStarted','current-document','close','resources','reasoningStarted','_stopLastInteraction','updateCurrentDocumentInContext','replyContentUpdated','undo','createReply','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','documentContextContent','indexOf','from','query','showDiff','AIChatBalloon','setContextItemLoading','prepareLoadingMessage','stop','rootName','ai-chat-url-upload-failed','updateFeedItemAIReplySuggestionPartState','marker','done','isDisabled','setModel','updateCapabilities','clearConversationContextUI','AIChatController','removeSelectionFromChatContext','content','getInteraction','rejectSuggestion','getSelectionText','Liked\x20response','isPremiumPlugin','AIConnector','ai-chat-context-file-too-many-pages','updateFeedItemAIReplySuggestionContent','editing','loadConversation','hasChanges','contextItemLoadingEnded','startConversation','plugins','lastInteraction','ai.chat.initialConversation','pluginName','changeGroups','range','handleRemovedConversation','message','_startConversationSafely','ai-no-track-changes','previous','addUrlToContext','resizedTabs','isCurrentDocumentInConversation','ready','_insertSuggestion','_batchToChanges','conversationInitialized','setState','set','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','callback','contextItemAdded','setFeedItemRenderingStrategy','createConversation','getDocumentContext','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','addFeedItemCustomElement','loadSourceResources','TrackChanges','resetMessageInput','load','version','sourceId','contextSent','resizeTabs','getChildAtOffset','getFirstRange','getPath','getGroupId','viewRangeToDom','accepted','source','isModelAvailable','hideFakeVisualSelection','getReply','listenTo','sourceResourcesLoaded','ai-conversation-','resetReasoningState','_aiChatModels','_registerToolDataCallback','_logError','77OSdzKy','_updateReplyContent','resetWebSearchState','sendUserMessage','createPositionAt','collaboration.channelId','AITabs','setChangeGroupState','getDocumentData','commands','isDocumentOperation','clearPendingContextUI','getOperations','createPositionFromPath','path','_handleStartConversation','selectedModel','513082UZbmsJ','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai-chat-resource-load-failed','isInContext','_currentPreviewedChangeGroup','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','Showing\x20conversation\x20history...','options','ai-chat-conversation-start-failed','revert','removeFeedInteraction','interactionStarted','removeFromContext','DocumentCompare','history','replyCreated','mapper','detachFromDom','ai-chat-context-form-data-size-limits-exceeded','locale','642cAdRNo','resource','applyOperation','parse','addSelectionToContext','map','interactionFinished','clearLoadingMessage','resize','document','children','addDocumentToContext','addCurrentDocumentToChatContext','like','capabilitiesUpdated','setSelectedModel','replyChangeGroupStateUpdated','nextSibling','state','_aiChatUi','ai-request-aborted','updateFeedItemAIReplySources','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','_getDocumentRangeForReplyChanges','model','ai-chat-conversation-init-failed','AI_CHAT_INVALID_REQUEST','log','toggleReasoning','sendMessage','streaming','attachToDom','_openBalloonFor','startInteraction','_aiChatBalloonShowDiff','createdAt','resourceId','push','fetchConversation','new','reasoningFinished','removeContextItem','getConversation','get','setIsMaximized','replies','showNext','addContextItem','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','getChild','forEach','getContentParts','delete','change','uid','modelSelected','AI_BALLOON_HEADER_TITLE','resourceStateChanged','getInteractionAndReplyById','toViewRange','_scrollToSuggestionRange','_removeFromContext','focusPromptInput','mouseOverSuggestion','_flushLastInteractionUI','webSearchStarted','maxOffset','stopInteraction','getDiff','setLoadingMessage','aiChatBalloon','batch','afterInit','node','removeSelectionFromContext','indexes','length','3300108zsFPEX','addCurrentDocumentToContext','abortPromptStream','init','getAttribute','isLoading','currentReply','$graveyard','8PimBhC','cloneNode','has','getRoot','finishInteraction','AI_CHAT_UNABLE_TO_START_CONVERSATION','_integrateEditor','delegate','AI_CHAT_RESOURCE_LOAD_FAILED','mouseLeaveSuggestion','error','end','resetConversationTitle','start','areActionsDisabled'];_0x3140=function(){return _0x3f90ea;};return _0x3140();}import{BodyCollection as _0x2a59a3}from'ckeditor5/src/ui.js';import{CKEditorError as _0x20e93a,logError as _0x1307b1,scrollViewportToShowTarget as _0x340917,uid as _0x2bfaa9}from'ckeditor5/src/utils.js';import{AIConnector as _0x471a92}from'../aicore/aiconnector.js';import{AITabs as _0x58715c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x343295}from'./model/aichatconversation.js';import{getTranslation as _0x91ff1d}from'../aicore/utils/common-translations.js';import{AIModels as _0x3e26cb}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x262618}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x5ed437,DATA_ID_MODEL_ATTRIBUTE as _0x325025}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x931cd4,getOperationsFromReply as _0x104b60}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x268d40,getMinimalSelection as _0x4385c6}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x44a256,_DetachOperation as _0x205585}from'ckeditor5/src/engine.js';import{findOne as _0x43b466,getAttribute as _0x3ac1be,serialize as _0x2ac2e9,Document as _0x5c850d,findByAttribute as _0x286672}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x31d53c{[_0x58d811(0x182)];[_0x58d811(0x163)];[_0x58d811(0x222)];[_0x58d811(0x1e7)];[_0x58d811(0x157)];[_0x58d811(0x1c5)]=new Map();[_0x58d811(0x1ff)]=null;[_0x58d811(0x28b)];static get[_0x58d811(0x15c)](){return[_0x471a92,_0x5ed437];}static get[_0x58d811(0x1b8)](){const _0xc292cf=_0x58d811;return _0xc292cf(0x1a5);}static get[_0x58d811(0x129)](){return!0x0;}static get[_0x58d811(0x1ac)](){return!0x0;}[_0x58d811(0x25f)](){const _0x3cfe7c=_0x58d811;this[_0x3cfe7c(0x28b)]=new _0x2a59a3(this[_0x3cfe7c(0x161)][_0x3cfe7c(0x20e)]),this[_0x3cfe7c(0x28b)][_0x3cfe7c(0x22e)](),this[_0x3cfe7c(0x163)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x1ad)),this[_0x3cfe7c(0x222)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x16f)),this[_0x3cfe7c(0x182)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x150)),this[_0x3cfe7c(0x1e7)]=new _0x3e26cb({'connector':this[_0x3cfe7c(0x163)],'config':this[_0x3cfe7c(0x161)][_0x3cfe7c(0x137)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x105)),'locale':this[_0x3cfe7c(0x161)][_0x3cfe7c(0x20e)]});const _0x5a44e1=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x1f0));this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1b4),()=>{const _0x42da29=_0x3cfe7c;this[_0x42da29(0x1bd)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1ed),(_0x1753d5,_0x36772b)=>{const _0x4047b4=_0x3cfe7c;this[_0x4047b4(0x181)]({'userMessage':_0x36772b});}),this[_0x3cfe7c(0x1e3)](_0x5a44e1,_0x3cfe7c(0x1c1),(_0xa1dcb2,_0xd5df42)=>{const _0x4a532b=_0x3cfe7c;this[_0x4a532b(0x122)](_0xd5df42);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1d8),()=>{const _0x4fe99a=_0x3cfe7c;_0x5a44e1[_0x4fe99a(0x217)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x25e),async()=>{const _0x54b7cb=_0x3cfe7c;await this[_0x54b7cb(0x18d)](),await this[_0x54b7cb(0x24f)](),this[_0x54b7cb(0x1a6)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x21a),()=>{const _0x570481=_0x3cfe7c;this[_0x570481(0x21b)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x127),(_0x58aa1a,_0x129d9e)=>{const _0x4dcaed=_0x3cfe7c;this[_0x4dcaed(0x278)]?.[_0x4dcaed(0x17f)](Array[_0x4dcaed(0x195)](_0x129d9e));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1c0),(_0x1b3bcc,_0x261f16)=>{const _0x48d6a4=_0x3cfe7c;this[_0x48d6a4(0x278)]?.[_0x48d6a4(0x1c0)](_0x261f16);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x12b),(_0x29578c,_0x348e34)=>{const _0x292b69=_0x3cfe7c;_0x348e34[_0x292b69(0x1ca)](this[_0x292b69(0x161)]);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x15f),(_0x2ce1ce,_0x35a6c8)=>{const _0x258ba9=_0x3cfe7c;this[_0x258ba9(0x278)]?.[_0x258ba9(0x15f)](_0x35a6c8[_0x258ba9(0x1df)],_0x35a6c8[_0x258ba9(0x210)]);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x238),(_0x4f948e,_0x36fc66)=>{const _0xd8940d=_0x3cfe7c;this[_0xd8940d(0x24c)](_0x36fc66);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1d1),(_0x23817d,_0x360b76)=>{const _0x55be09=_0x3cfe7c;this[_0x55be09(0x278)]?.[_0x55be09(0x1d1)](_0x360b76[_0x55be09(0x1d6)],_0x360b76[_0x55be09(0x196)],_0x360b76[_0x55be09(0x245)]);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x143),()=>{const _0x11fb0a=_0x3cfe7c;this[_0x11fb0a(0x121)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x22b),()=>{const _0x55c9a1=_0x3cfe7c;this[_0x55c9a1(0x13e)]();}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x100),(_0x1af615,_0x5caa88)=>{const _0x2fd252=_0x3cfe7c;this[_0x2fd252(0x278)]?.[_0x2fd252(0x1a2)](_0x5caa88);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x21c),(_0x5a4190,{replyId:_0x1f66f3})=>{const _0x5af751=_0x3cfe7c;console[_0x5af751(0x22a)](_0x5af751(0x1ab),_0x1f66f3);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x115),(_0x2293a2,{replyId:_0x345a37})=>{const _0x4ceaad=_0x3cfe7c;console[_0x4ceaad(0x22a)](_0x4ceaad(0x28a),_0x345a37);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x175),(_0x5e4680,_0x1b1ae9)=>{const _0x4ff2ea=_0x3cfe7c;this[_0x4ff2ea(0x1c4)](_0x1b1ae9);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x165),(_0x2e866e,{replyId:_0x3ea02e,partIndex:_0x36af57})=>{const _0x60cd32=_0x3cfe7c;this[_0x60cd32(0x231)]=this[_0x60cd32(0x222)][_0x60cd32(0x197)],this[_0x60cd32(0x22f)](_0x3ea02e,_0x36af57);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x24e),(_0x42c881,{replyId:_0x20d3b4,partIndex:_0x1cac2c})=>{const _0x2c87ab=_0x3cfe7c,_0x5d5715=this[_0x2c87ab(0x226)](_0x20d3b4,_0x1cac2c);_0x5d5715&&_0x2c87ab(0x263)!=_0x5d5715[_0x2c87ab(0x1ba)][_0x2c87ab(0x13a)][_0x2c87ab(0x19c)]&&this[_0x2c87ab(0x182)][_0x2c87ab(0x171)]([_0x5d5715[_0x2c87ab(0x1ba)]],_0x2c87ab(0x113));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x26d),()=>{const _0x57538b=_0x3cfe7c;this[_0x57538b(0x182)][_0x57538b(0x1e1)](_0x57538b(0x113));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0xff),(_0x2dcf7c,_0x3a60a1)=>{const _0x424374=_0x3cfe7c;this[_0x424374(0x182)][_0x424374(0x1e1)](_0x424374(0x113)),this[_0x424374(0x27c)](_0x3a60a1);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x10c),async(_0x4b845c,{replyId:_0x3210cf,showDiff:_0x23d90c})=>{const _0x5ed751=_0x3cfe7c,{reply:_0x11c73e}=this[_0x5ed751(0x249)](_0x3210cf),_0x5948ee=_0x11c73e[_0x5ed751(0x242)]({'showDiff':_0x23d90c});await this[_0x5ed751(0x222)][_0x5ed751(0x1af)]({'id':_0x11c73e['id'],'parts':_0x5948ee,'renderingStrategy':_0x5ed751(0x283)});}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x222)],_0x3cfe7c(0x1a9),(_0xff0010,{replyId:_0x326912,partIndex:_0x2e6106})=>{const _0x48d948=_0x3cfe7c;this[_0x48d948(0x120)]({'replyId':_0x326912,'partIndex':_0x2e6106}),this[_0x48d948(0x182)][_0x48d948(0x1e1)](_0x48d948(0x113));}),this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x266)](_0x3cfe7c(0x198))&&(this[_0x3cfe7c(0x157)]=this[_0x3cfe7c(0x161)][_0x3cfe7c(0x1b5)][_0x3cfe7c(0x23a)](_0x3cfe7c(0x198)),this[_0x3cfe7c(0x1c8)](_0x3cfe7c(0x231),!0x1),this[_0x3cfe7c(0x157)][_0x3cfe7c(0x102)](_0x3cfe7c(0x197))['to'](this,_0x3cfe7c(0x231)),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x10c),()=>{const _0x1a36a6=_0x3cfe7c,{replyId:_0x3b4f2a,partIndex:_0x1ff2db}=this[_0x1a36a6(0x1ff)];this[_0x1a36a6(0x231)]=!this[_0x1a36a6(0x231)];const {reply:_0x4c29bc}=this[_0x1a36a6(0x249)](_0x3b4f2a),_0x5a8b28=_0x4c29bc[_0x1a36a6(0x242)]({'showDiff':this[_0x1a36a6(0x231)],'groupIndex':_0x1ff2db});this[_0x1a36a6(0x157)][_0x1a36a6(0x170)]({'part':_0x5a8b28[0x0],'renderingStrategy':_0x1a36a6(0x283),'keepErrors':!0x0});}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0xff),()=>{const _0x200462=_0x3cfe7c,{replyId:_0x2890f7,partIndex:_0x342a8e}=this[_0x200462(0x1ff)];this[_0x200462(0x27c)]({'replyId':_0x2890f7,'partIndex':_0x342a8e}),this[_0x200462(0x157)][_0x200462(0x1c7)](_0x200462(0x1de));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x175),()=>{const _0x5527ab=_0x3cfe7c,{replyId:_0x1c719b,partIndex:_0x4c4ebd}=this[_0x5527ab(0x1ff)];this[_0x5527ab(0x1c4)]({'replyId':_0x1c719b,'partIndex':_0x4c4ebd}),this[_0x5527ab(0x157)][_0x5527ab(0x1c7)](_0x5527ab(0x1de));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x1a9),()=>{const _0x1258f1=_0x3cfe7c,{replyId:_0xade7a2,partIndex:_0xf39bb0}=this[_0x1258f1(0x1ff)];this[_0x1258f1(0x120)]({'replyId':_0xade7a2,'partIndex':_0xf39bb0}),this[_0x1258f1(0x157)][_0x1258f1(0x1c7)](_0x1258f1(0x124));}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x23d),()=>{const _0x562a93=_0x3cfe7c,{replyId:_0x1ed71e,partIndex:_0x10fdd6}=this[_0x562a93(0x1ff)],_0x49322d=this[_0x562a93(0x27f)](_0x1ed71e,_0x10fdd6,_0x562a93(0x17c));null!==_0x49322d&&this[_0x562a93(0x22f)](_0x1ed71e,_0x49322d);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x158),()=>{const _0x5254bd=_0x3cfe7c,{replyId:_0x11008c,partIndex:_0x3268dc}=this[_0x5254bd(0x1ff)],_0x2ad233=this[_0x5254bd(0x27f)](_0x11008c,_0x3268dc,_0x5254bd(0x1bf));null!==_0x2ad233&&this[_0x5254bd(0x22f)](_0x11008c,_0x2ad233);}),this[_0x3cfe7c(0x1e3)](this[_0x3cfe7c(0x157)],_0x3cfe7c(0x136),(_0x504bf5,{id:_0x1f7034})=>{const _0x31e5c6=_0x3cfe7c;if(_0x31e5c6(0x255)!==_0x1f7034)return;const {replyId:_0x55774f,partIndex:_0x521664}=this[_0x31e5c6(0x1ff)];this[_0x31e5c6(0x1ff)]=null,this[_0x31e5c6(0x222)][_0x31e5c6(0x118)]({'id':_0x55774f,'index':_0x521664,'isActive':!0x1});}));}async[_0x58d811(0x257)](){const _0x137191=_0x58d811;this[_0x137191(0x161)]instanceof _0x23a8c8?this[_0x137191(0x26a)](this[_0x137191(0x161)]):this[_0x137191(0x1e3)](this[_0x137191(0x161)][_0x137191(0xfe)],_0x137191(0x174),(_0x5c7453,_0x1e84d6)=>{const _0x365230=_0x137191;_0x1e84d6['on'](_0x365230(0x1c3),()=>{const _0x14ec36=_0x365230;this[_0x14ec36(0x26a)](_0x1e84d6);});});const _0x1dd84a=this[_0x137191(0x161)][_0x137191(0x137)][_0x137191(0x23a)](_0x137191(0x1b7));let _0x21ed02=_0x1dd84a;if(_0x137191(0x17d)!=_0x1dd84a||(_0x21ed02=await this[_0x137191(0x179)](),_0x21ed02))return _0x137191(0x236)==_0x21ed02?this[_0x137191(0x1bd)]():this[_0x137191(0x1b1)](_0x21ed02);}async[_0x58d811(0x149)](){const _0x2e3377=_0x58d811;return await this[_0x2e3377(0x18d)](),this[_0x2e3377(0x28b)][_0x2e3377(0x20c)](),super[_0x2e3377(0x149)]();}[_0x58d811(0x1c4)](_0x539674){const _0x3d9b48=_0x58d811,_0x1f9b64=_0x262618(this[_0x3d9b48(0x161)]);if(!_0x1f9b64[_0x3d9b48(0x1b5)][_0x3d9b48(0x266)](_0x3d9b48(0x1d2)))throw new _0x20e93a(_0x3d9b48(0x1be),null);const _0x2dab3f=this[_0x3d9b48(0x161)][_0x3d9b48(0x1b5)][_0x3d9b48(0x23a)](_0x3d9b48(0x208)),{reply:_0x1ae636,interaction:_0x154f8c}=this[_0x3d9b48(0x249)](_0x539674[_0x3d9b48(0x11c)]),_0x2a075c=this[_0x3d9b48(0x226)](_0x539674[_0x3d9b48(0x11c)],_0x539674[_0x3d9b48(0x10e)]),_0x10b16a=void 0x0!==_0x539674[_0x3d9b48(0x10e)]?[_0x1ae636[_0x3d9b48(0x1b9)][_0x539674[_0x3d9b48(0x10e)]]]:_0x1ae636[_0x3d9b48(0x1b9)][_0x3d9b48(0x17b)](_0x30bd10=>_0x3d9b48(0x111)==_0x30bd10[_0x3d9b48(0x221)]),_0x1e2d29=_0x10b16a[_0x3d9b48(0x214)](_0x472124=>_0x1ae636[_0x3d9b48(0x1b9)][_0x3d9b48(0x194)](_0x472124));if(!_0x2a075c||_0x3d9b48(0x263)==_0x2a075c[_0x3d9b48(0x1ba)][_0x3d9b48(0x13a)][_0x3d9b48(0x19c)])return void _0x1e2d29[_0x3d9b48(0x241)](_0x3ef825=>_0x1ae636[_0x3d9b48(0x1f1)](_0x3ef825,_0x3d9b48(0x162)));_0x1e2d29[_0x3d9b48(0x241)](_0x529bd8=>_0x1ae636[_0x3d9b48(0x1f1)](_0x529bd8,_0x3d9b48(0x1de)));const _0x41b16a=_0x104b60({'editor':_0x1f9b64,'reply':_0x1ae636,'interaction':_0x154f8c,'groups':_0x10b16a,'transform':!0x0,'documentCompare':_0x2dab3f,'documentCompareOptions':{'anchor':_0x3d9b48(0x13b),'markDeletions':!0x0}});let _0x2b2b59;_0x2a075c&&this[_0x3d9b48(0x24b)](_0x2a075c[_0x3d9b48(0x1ba)]),_0x1f9b64[_0x3d9b48(0x227)][_0x3d9b48(0x244)](_0x37bc2e=>{const _0x3bf2b=_0x3d9b48;_0x2b2b59=_0x37bc2e[_0x3bf2b(0x256)],_0x1f9b64[_0x3bf2b(0x1b5)][_0x3bf2b(0x23a)](_0x3bf2b(0x131))[_0x3bf2b(0x156)](_0x41b16a),this[_0x3bf2b(0x182)][_0x3bf2b(0x1e1)](_0x3bf2b(0x113));}),this[_0x3d9b48(0x1c5)][_0x3d9b48(0x1c8)](_0x2b2b59,{'interactionId':_0x154f8c['id'],'replyId':_0x1ae636['id'],'indexes':_0x1e2d29[_0x3d9b48(0x154)]()}),this[_0x3d9b48(0x12e)](_0x1ae636);}[_0x58d811(0x27c)](_0x1de96a){const _0x207702=_0x58d811,_0x299bd9=_0x262618(this[_0x207702(0x161)]),_0x44f86e=this[_0x207702(0x161)][_0x207702(0x1b5)][_0x207702(0x23a)](_0x5ed437),{reply:_0x5f0417,interaction:_0x22c649}=this[_0x207702(0x249)](_0x1de96a[_0x207702(0x11c)]),_0x187697=this[_0x207702(0x226)](_0x1de96a[_0x207702(0x11c)],_0x1de96a[_0x207702(0x10e)]),_0x105cc0=void 0x0!==_0x1de96a[_0x207702(0x10e)]?[_0x5f0417[_0x207702(0x1b9)][_0x1de96a[_0x207702(0x10e)]]]:_0x5f0417[_0x207702(0x1b9)][_0x207702(0x17b)](_0x5a1b68=>_0x207702(0x111)==_0x5a1b68[_0x207702(0x221)]),_0x1b4d3f=_0x105cc0[_0x207702(0x214)](_0x543e16=>_0x5f0417[_0x207702(0x1b9)][_0x207702(0x194)](_0x543e16));if(!_0x187697||_0x207702(0x263)==_0x187697[_0x207702(0x1ba)][_0x207702(0x13a)][_0x207702(0x19c)])return void _0x1b4d3f[_0x207702(0x241)](_0x319538=>_0x5f0417[_0x207702(0x1f1)](_0x319538,_0x207702(0x162)));_0x1b4d3f[_0x207702(0x241)](_0x184d67=>_0x5f0417[_0x207702(0x1f1)](_0x184d67,_0x207702(0x1de)));const _0x29f2c5=_0x104b60({'editor':_0x299bd9,'reply':_0x5f0417,'interaction':_0x22c649,'groups':_0x105cc0,'transform':!0x0,'documentCompare':_0x44f86e,'documentCompareOptions':{'anchor':_0x207702(0x13b),'markDeletions':!0x1}});let _0x4b1e30;_0x187697&&this[_0x207702(0x24b)](_0x187697[_0x207702(0x1ba)]),_0x299bd9[_0x207702(0x227)][_0x207702(0x244)](_0x33c262=>{const _0x4dac81=_0x207702;_0x4b1e30=_0x33c262[_0x4dac81(0x256)];for(const _0x3b226a of _0x29f2c5)_0x3b226a[_0x4dac81(0x16e)]=_0x299bd9[_0x4dac81(0x227)][_0x4dac81(0x218)][_0x4dac81(0x1d5)],_0x931cd4(_0x299bd9,_0x3b226a),_0x33c262[_0x4dac81(0x256)][_0x4dac81(0x155)](_0x3b226a),_0x299bd9[_0x4dac81(0x227)][_0x4dac81(0x211)](_0x3b226a);}),this[_0x207702(0x1c5)][_0x207702(0x1c8)](_0x4b1e30,{'interactionId':_0x22c649['id'],'replyId':_0x5f0417['id'],'indexes':_0x1b4d3f[_0x207702(0x154)]()}),this[_0x207702(0x12e)](_0x5f0417);}[_0x58d811(0x120)](_0x2c39c5){const _0x241a52=_0x58d811,{reply:_0x1ad137}=this[_0x241a52(0x249)](_0x2c39c5[_0x241a52(0x11c)]);_0x1ad137[_0x241a52(0x1f1)](_0x2c39c5[_0x241a52(0x10e)],_0x241a52(0x124));}[_0x58d811(0x22f)](_0x5566d8,_0x63fb98){const _0x569489=_0x58d811;if(!this[_0x569489(0x157)])return;const {reply:_0x560a49}=this[_0x569489(0x249)](_0x5566d8),_0x290353=_0x560a49[_0x569489(0x242)]({'showDiff':this[_0x569489(0x231)]});let _0x4f8211,_0x13c060;if(void 0x0!==_0x63fb98?(_0x13c060=_0x290353[_0x569489(0x108)](_0x6e1c00=>_0x6e1c00[_0x569489(0x116)]==_0x63fb98),_0x4f8211=_0x13c060?.[_0x569489(0x116)]):(_0x13c060=_0x290353[0x0],_0x4f8211=_0x13c060[_0x569489(0x116)]),this[_0x569489(0x1ff)]?.[_0x569489(0x11c)]==_0x5566d8&&this[_0x569489(0x1ff)]?.[_0x569489(0x10e)]==_0x4f8211)return;const _0x210355=this[_0x569489(0x173)](_0x5566d8,_0x560a49,_0x13c060);if(!_0x210355)return void this[_0x569489(0x157)][_0x569489(0x18a)]();this[_0x569489(0x1ff)]={'replyId':_0x5566d8,'partIndex':_0x4f8211},this[_0x569489(0x24b)](_0x210355,!0x0);const _0x3c4131=this[_0x569489(0x27f)](_0x5566d8,_0x4f8211,_0x569489(0x17c));this[_0x569489(0x157)][_0x569489(0x170)]({'part':_0x13c060,'renderingStrategy':_0x569489(0x283)}),this[_0x569489(0x157)][_0x569489(0x10b)]({'index':_0x4f8211,'title':_0x91ff1d(this[_0x569489(0x161)][_0x569489(0x20e)],_0x569489(0x247),(_0x4f8211+0x1)[_0x569489(0x281)]()),'showRotator':null!==_0x3c4131,'ranges':[_0x210355],'areActionsDisabled':_0x560a49[_0x569489(0x272)]}),this[_0x569489(0x157)][_0x569489(0x1c7)](_0x569489(0x111)),this[_0x569489(0x222)][_0x569489(0x12d)](_0x5566d8,_0x4f8211),this[_0x569489(0x222)][_0x569489(0x118)]({'id':_0x5566d8,'index':_0x4f8211,'isActive':!0x0});}[_0x58d811(0x27f)](_0x2fa71f,_0x4889a0,_0x8b6795){const _0x599288=_0x58d811,{reply:_0x120e07}=this[_0x599288(0x249)](_0x2fa71f),_0x179818=_0x120e07[_0x599288(0x242)]({'showDiff':this[_0x599288(0x231)]});if(0x1==_0x179818[_0x599288(0x25b)])return null;const _0x3de5db=_0x179818[_0x599288(0x106)](_0x1fdba7=>_0x1fdba7[_0x599288(0x116)]==_0x4889a0),_0x3f63b3=_0x599288(0x17c)==_0x8b6795?0x1:-0x1;let _0x4e4b6e=_0x179818['at']((_0x3de5db+_0x3f63b3)%_0x179818[_0x599288(0x25b)])[_0x599288(0x116)],_0x23bff1=_0x179818[_0x4e4b6e];for(;!this[_0x599288(0x173)](_0x2fa71f,_0x120e07,_0x23bff1);){if(_0x4e4b6e=_0x179818['at']((_0x4e4b6e+_0x3f63b3)%_0x179818[_0x599288(0x25b)])[_0x599288(0x116)],_0x4e4b6e===_0x3de5db)return null;_0x23bff1=_0x179818[_0x4e4b6e];}return _0x4e4b6e;}[_0x58d811(0x173)](_0x5d142d,_0x2f22d6,_0x5c8b11){const _0x434d44=_0x58d811,_0xeccffa=_0x2f22d6[_0x434d44(0x1b9)];if(!_0x5c8b11[_0x434d44(0x1b2)])return null;const _0x29bbfb=_0xeccffa[_0x434d44(0x108)](_0xe8fe67=>_0xe8fe67[_0x434d44(0x116)]==_0x5c8b11[_0x434d44(0x116)]);if(_0x434d44(0x111)!==_0x29bbfb?.[_0x434d44(0x221)])return null;const _0x1f31df=this[_0x434d44(0x226)](_0x5d142d,_0x5c8b11[_0x434d44(0x116)]);if(!_0x1f31df)return null;const {range:_0x5e87ee,currentIndex:_0x282c38}=_0x1f31df;return _0x434d44(0x263)==_0x5e87ee[_0x434d44(0x13a)][_0x434d44(0x19c)]?(_0x2f22d6[_0x434d44(0x1f1)](_0x282c38,_0x434d44(0x162)),null):_0x1f31df[_0x434d44(0x1ba)];}[_0x58d811(0x226)](_0x23739f,_0x5e3673){const _0x2566a2=_0x58d811,_0x94f8d4=_0x262618(this[_0x2566a2(0x161)]),{reply:_0x13dbaf,interaction:_0x3adb84}=this[_0x2566a2(0x249)](_0x23739f),_0x4993b8=_0x13dbaf[_0x2566a2(0x1b9)][_0x2566a2(0x17b)](_0x557b4b=>_0x2566a2(0x111)==_0x557b4b[_0x2566a2(0x221)]),_0x231916=_0x4993b8[_0x2566a2(0x214)](_0x3d0317=>_0x13dbaf[_0x2566a2(0x1b9)][_0x2566a2(0x194)](_0x3d0317));void 0x0===_0x5e3673&&(_0x5e3673=_0x231916[0x0]);const _0x5e1930=_0x231916[_0x2566a2(0x194)](_0x5e3673);if(-0x1==_0x5e1930)return null;const _0x366844=_0x4993b8[_0x5e1930],_0x14b7dd=new _0x5c850d([]),_0x280d26=new _0x5c850d([]);for(const _0x50421d of _0x366844[_0x2566a2(0x11b)])if(_0x2566a2(0x287)!=_0x50421d[_0x2566a2(0x110)]&&_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x50421d[_0x2566a2(0x258)][_0x2566a2(0x265)](!0x0)),_0x2566a2(0x236)!=_0x50421d[_0x2566a2(0x110)]){const _0x95e5=_0x43b466(_0x2cb4c8=>_0x3ac1be(_0x2cb4c8,_0x2566a2(0x275))==_0x50421d['id'],_0x13dbaf[_0x2566a2(0x193)],!0x0);_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x95e5[_0x2566a2(0x265)](!0x0));}if(0x0==_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x25b)]){if(_0x366844[_0x2566a2(0x11b)][0x0][_0x2566a2(0x187)]){const _0x5b98ae=_0x286672(_0x2566a2(0x275),_0x366844[_0x2566a2(0x11b)][0x0][_0x2566a2(0x187)],_0x13dbaf[_0x2566a2(0x193)]);_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x15a)](_0x5b98ae[_0x2566a2(0x265)](!0x0)),_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x15a)](_0x5b98ae[_0x2566a2(0x265)](!0x0)),_0x5b98ae[_0x2566a2(0x220)]&&(_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x5b98ae[_0x2566a2(0x220)][_0x2566a2(0x265)](!0x0)),_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x5b98ae[_0x2566a2(0x220)][_0x2566a2(0x265)](!0x0)));}else{const _0x563cf0=_0x13dbaf[_0x2566a2(0x193)][_0x2566a2(0x219)][0x0];if(!_0x563cf0)return null;_0x14b7dd[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x563cf0[_0x2566a2(0x265)](!0x0)),_0x280d26[_0x2566a2(0x219)][_0x2566a2(0x234)](_0x563cf0[_0x2566a2(0x265)](!0x0));}}const _0x9006f0=_0x3adb84[_0x2566a2(0x1ce)](),_0x3372b7=_0x94f8d4[_0x2566a2(0x139)][_0x2566a2(0x212)](_0x9006f0[_0x2566a2(0x1a7)]),_0x3207b5=_0x2ac2e9(_0x14b7dd),_0x3c1266=_0x94f8d4[_0x2566a2(0x139)][_0x2566a2(0x212)](_0x3207b5),_0x1e3f94=_0x94f8d4[_0x2566a2(0x139)][_0x2566a2(0x212)](_0x3207b5),_0x4306a4=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1ee)](_0x3c1266,0x0),_0x570ae9=_0x2ac2e9(_0x280d26),_0x12f9cf={'anchor':_0x4306a4,'markDeletions':!0x1},_0x584b0e=_0x94f8d4[_0x2566a2(0x1b5)][_0x2566a2(0x23a)](_0x5ed437)[_0x2566a2(0x253)](_0x3207b5,_0x570ae9,_0x12f9cf)[_0x2566a2(0x1f6)]();if(!_0x584b0e[_0x2566a2(0x25b)])return null;_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x244)](_0x40492a=>{const _0x2c7fa0=_0x2566a2;for(const _0x42738b of _0x584b0e)if(_0x2c7fa0(0x146)==_0x42738b[_0x2c7fa0(0x110)]){const _0x16d928=_0x42738b[_0x2c7fa0(0x286)],_0x38702c=_0x42738b[_0x2c7fa0(0x17e)],_0x45057f=new _0x205585(_0x16d928,_0x38702c);_0x40492a[_0x2c7fa0(0x256)][_0x2c7fa0(0x155)](_0x45057f),_0x94f8d4[_0x2c7fa0(0x227)][_0x2c7fa0(0x211)](_0x45057f);}else _0x2c7fa0(0x19f)!==_0x42738b[_0x2c7fa0(0x110)]&&(_0x42738b[_0x2c7fa0(0x16e)]=null,_0x42738b[_0x2c7fa0(0x1f4)]=!0x1,_0x40492a[_0x2c7fa0(0x256)][_0x2c7fa0(0x155)](_0x42738b),_0x94f8d4[_0x2c7fa0(0x227)][_0x2c7fa0(0x211)](_0x42738b));});const _0x1ace12=_0x4385c6(_0x94f8d4,_0x584b0e,_0x3c1266);_0x268d40(_0x94f8d4[_0x2566a2(0x227)],_0x1ace12);const _0x4d8db5=_0x1ace12[_0x2566a2(0x1da)]()[_0x2566a2(0x271)][_0x2566a2(0x1f8)][_0x2566a2(0x154)](),_0x59c151=_0x1ace12[_0x2566a2(0x1da)]()[_0x2566a2(0x26f)][_0x2566a2(0x1f8)][_0x2566a2(0x154)](),_0x5c1479=[];let _0x82dba4=_0x3c1266,_0x2016d4=_0x1e3f94;for(let _0x4ebf0f=0x0;_0x4ebf0f<_0x59c151[_0x2566a2(0x25b)];_0x4ebf0f++){const _0x44ef69=_0x82dba4[_0x2566a2(0x251)]-_0x59c151[_0x4ebf0f];_0x5c1479[_0x4ebf0f]=_0x2016d4[_0x2566a2(0x251)]-_0x44ef69,_0x82dba4=_0x82dba4[_0x2566a2(0x1d9)](_0x59c151[_0x4ebf0f]),_0x2016d4=_0x2016d4[_0x2566a2(0x1d9)](_0x5c1479[_0x4ebf0f]);}const _0x1037c8=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x148)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x1e3f94,_0x4d8db5),_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x1e3f94,_0x5c1479)),_0x200576=_0x1e3f94[_0x2566a2(0x240)](0x0)[_0x2566a2(0x260)](_0x325025),_0x34140e=Array[_0x2566a2(0x195)](_0x3372b7[_0x2566a2(0x103)]())[_0x2566a2(0x108)](_0x4fca8b=>_0x4fca8b[_0x2566a2(0x260)](_0x325025)==_0x200576)[_0x2566a2(0x1db)](),_0x55e120=_0x1037c8[_0x2566a2(0x271)][_0x2566a2(0x1f8)][_0x2566a2(0x154)](),_0x55be5d=_0x1037c8[_0x2566a2(0x26f)][_0x2566a2(0x1f8)][_0x2566a2(0x154)]();_0x55e120[0x0]=_0x34140e[0x0]+_0x55e120[0x0],_0x55be5d[0x0]=_0x34140e[0x0]+_0x55be5d[0x0];let _0x1bde1a=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x148)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x218)][_0x2566a2(0x267)](),_0x55e120),_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x1f7)](_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x218)][_0x2566a2(0x267)](),_0x55be5d));const _0x874031=_0x94f8d4[_0x2566a2(0x227)][_0x2566a2(0x218)][_0x2566a2(0x209)][_0x2566a2(0x1f6)](_0x9006f0[_0x2566a2(0x1d5)]);for(const _0x2e9ad2 of _0x874031)_0x1bde1a=_0x44a256[_0x2566a2(0x27d)](_0x1bde1a[_0x2566a2(0x12c)](_0x2e9ad2));return{'range':_0x1bde1a,'currentIndex':_0x5e3673};}[_0x58d811(0x26a)](_0x51e0ed){const _0xf09629=_0x58d811;if(!_0x51e0ed[_0xf09629(0x1b5)][_0xf09629(0x266)](_0xf09629(0x11d)))return;const _0x5004d9=_0x51e0ed[_0xf09629(0x1f3)][_0xf09629(0x23a)](_0xf09629(0x190)),_0x530069=_0x51e0ed[_0xf09629(0x1f3)][_0xf09629(0x23a)](_0xf09629(0x180));this[_0xf09629(0x1e3)](_0x5004d9,_0xf09629(0x204),(_0xeb3ae2,_0x2c2393,_0x134f16)=>{const _0x18e498=_0xf09629,_0x1fbfc5=this[_0x18e498(0x1c5)][_0x18e498(0x23a)](_0x2c2393);if(!_0x1fbfc5)return;const _0x5d62dc=this[_0x18e498(0x278)][_0x18e498(0x1a8)](_0x1fbfc5[_0x18e498(0x104)])[_0x18e498(0x1e2)](_0x1fbfc5[_0x18e498(0x11c)]);_0x1fbfc5[_0x18e498(0x25a)][_0x18e498(0x241)](_0x50bdbc=>_0x5d62dc[_0x18e498(0x1f1)](_0x50bdbc,_0x18e498(0x111))),this[_0x18e498(0x1c5)][_0x18e498(0x243)](_0x2c2393),this[_0x18e498(0x1c5)][_0x18e498(0x1c8)](_0x134f16,_0x1fbfc5);}),this[_0xf09629(0x1e3)](_0x530069,_0xf09629(0x204),(_0x38ded4,_0x5eec87,_0x55e360)=>{const _0x55df48=_0xf09629,_0x4a2153=this[_0x55df48(0x1c5)][_0x55df48(0x23a)](_0x5eec87);if(!_0x4a2153)return;const _0x1d7f8e=this[_0x55df48(0x278)][_0x55df48(0x1a8)](_0x4a2153[_0x55df48(0x104)])[_0x55df48(0x1e2)](_0x4a2153[_0x55df48(0x11c)]);_0x4a2153[_0x55df48(0x25a)][_0x55df48(0x241)](_0x46fd33=>_0x1d7f8e[_0x55df48(0x1f1)](_0x46fd33,_0x55df48(0x1de))),this[_0x55df48(0x1c5)][_0x55df48(0x243)](_0x5eec87),this[_0x55df48(0x1c5)][_0x55df48(0x1c8)](_0x55e360,_0x4a2153);});}async[_0x58d811(0x1b1)](_0x2d9818){const _0x11d74f=_0x58d811;this[_0x11d74f(0x161)][_0x11d74f(0x1b5)][_0x11d74f(0x266)](_0x11d74f(0x198))&&this[_0x11d74f(0x161)][_0x11d74f(0x1b5)][_0x11d74f(0x23a)](_0x11d74f(0x198))[_0x11d74f(0x18a)](),(this[_0x11d74f(0x161)][_0x11d74f(0x1b5)][_0x11d74f(0x23a)](_0x58715c)[_0x11d74f(0x123)][_0x11d74f(0x144)](_0x11d74f(0x16b)),this[_0x11d74f(0x222)][_0x11d74f(0x1cc)](_0x11d74f(0x283)),this[_0x11d74f(0x222)][_0x11d74f(0x12f)](!0x0),await this[_0x11d74f(0x18d)]());try{await this[_0x11d74f(0x163)][_0x11d74f(0x235)](_0x2d9818)[_0x11d74f(0x239)](),await this[_0x11d74f(0x1bd)](_0x2d9818),this[_0x11d74f(0x130)]('\x20'),await this[_0x11d74f(0x278)][_0x11d74f(0x1d4)](_0x2d9818,this[_0x11d74f(0x182)][_0x11d74f(0x159)]),this[_0x11d74f(0x278)][_0x11d74f(0x1c2)]()&&this[_0x11d74f(0x21b)]();}catch(_0x45a63a){this[_0x11d74f(0x222)][_0x11d74f(0x128)]({'errorMessage':_0x91ff1d(this[_0x11d74f(0x161)][_0x11d74f(0x20e)],_0x11d74f(0x23f)),'id':_0x2d9818}),this[_0x11d74f(0x1e9)](new _0x20e93a(_0x11d74f(0x151),this,{'error':_0x45a63a}));}finally{this[_0x11d74f(0x222)][_0x11d74f(0x152)](),this[_0x11d74f(0x222)][_0x11d74f(0x1cc)](_0x11d74f(0x22d)),this[_0x11d74f(0x222)][_0x11d74f(0x12f)](!0x1);}}async[_0x58d811(0x179)](){const _0x55fcab=_0x58d811,_0x306517=this[_0x55fcab(0x163)][_0x55fcab(0x14a)](this[_0x55fcab(0x1dc)](),{'limit':0x1,'sortBy':_0x55fcab(0x232)});try{const _0x2d6d73=await _0x306517[_0x55fcab(0x140)]();return _0x2d6d73[_0x55fcab(0x25b)]?_0x2d6d73[0x0]['id']:_0x55fcab(0x236);}catch(_0x19905f){return this[_0x55fcab(0x222)][_0x55fcab(0x128)]({'errorMessage':_0x91ff1d(this[_0x55fcab(0x161)][_0x55fcab(0x20e)],_0x55fcab(0x23f)),'id':_0x2bfaa9()}),this[_0x55fcab(0x1e9)](new _0x20e93a(_0x55fcab(0x228),this,{'error':_0x19905f})),this[_0x55fcab(0x222)][_0x55fcab(0x12f)](!0x1),this[_0x55fcab(0x222)][_0x55fcab(0x10d)](),null;}}[_0x58d811(0x1bb)](_0x22fa75){const _0x122e0b=_0x58d811;this[_0x122e0b(0x278)]['id']===_0x22fa75&&this[_0x122e0b(0x1bd)]();}[_0x58d811(0x21b)](){const _0xc57306=_0x58d811;this[_0xc57306(0x278)]?.[_0xc57306(0x25d)](_0x91ff1d(this[_0xc57306(0x161)][_0xc57306(0x20e)],_0xc57306(0x1c9)));}async[_0x58d811(0x13c)](){const _0xf76abe=_0x58d811,_0x56a410=this[_0xf76abe(0x182)][_0xf76abe(0x1aa)]();this[_0xf76abe(0x278)]?.[_0xf76abe(0x213)](_0x56a410),this[_0xf76abe(0x21b)]();}[_0x58d811(0x1a6)](){const _0x3bc56e=_0x58d811;this[_0x3bc56e(0x278)]?.[_0x3bc56e(0x259)]();}[_0x58d811(0x24d)](){const _0x5af828=_0x58d811;this[_0x5af828(0x222)][_0x5af828(0x24d)]();}async[_0x58d811(0x1b4)](){const _0x1e7881=_0x58d811;await this[_0x1e7881(0x1bd)]();}async[_0x58d811(0x22c)]({message:_0x419ef6,attributes:_0x901512}){const _0x6e80ca=_0x58d811;await this[_0x6e80ca(0x181)]({'userMessage':_0x419ef6,'attributes':_0x901512});}[_0x58d811(0x1dc)](){const _0x2dfd50=_0x58d811,_0x17978a=this[_0x2dfd50(0x161)][_0x2dfd50(0x137)][_0x2dfd50(0x23a)](_0x2dfd50(0x1ef));if(!_0x17978a)throw new _0x20e93a(_0x2dfd50(0x172),this);return _0x17978a;}async[_0x58d811(0x1bd)](_0x383adf){const _0x228b2d=_0x58d811;try{this[_0x228b2d(0x222)][_0x228b2d(0x289)](),await this[_0x228b2d(0x1f9)](_0x383adf);}catch(_0x5ccb33){this[_0x228b2d(0x222)][_0x228b2d(0x128)]({'errorMessage':_0x91ff1d(this[_0x228b2d(0x161)][_0x228b2d(0x20e)],_0x228b2d(0x269)),'id':_0x383adf||_0x2bfaa9()}),console[_0x228b2d(0x26e)](_0x5ccb33),this[_0x228b2d(0x278)]=void 0x0,this[_0x228b2d(0x222)][_0x228b2d(0x10d)]();}}async[_0x58d811(0x1f9)](_0x2cb9e4){const _0x334ac2=_0x58d811;let _0x416ed8;this[_0x334ac2(0x161)][_0x334ac2(0x1b5)][_0x334ac2(0x266)](_0x334ac2(0x198))&&this[_0x334ac2(0x161)][_0x334ac2(0x1b5)][_0x334ac2(0x23a)](_0x334ac2(0x198))[_0x334ac2(0x18a)](),_0x2cb9e4||!this[_0x334ac2(0x278)]?_0x416ed8=this[_0x334ac2(0x161)][_0x334ac2(0x137)][_0x334ac2(0x23a)](_0x334ac2(0x284)):this[_0x334ac2(0x222)][_0x334ac2(0x1e0)]&&(_0x416ed8=this[_0x334ac2(0x278)][_0x334ac2(0x1fa)]['id']),await this[_0x334ac2(0x18d)]();const _0x250a2f=this[_0x334ac2(0x1dc)](),_0x33a4cb=_0x2cb9e4||_0x2bfaa9();this[_0x334ac2(0x278)]=new _0x343295({'connector':this[_0x334ac2(0x163)],'chatModels':this[_0x334ac2(0x1e7)],'selectedModelId':_0x416ed8,'conversationId':_0x33a4cb,'group':_0x250a2f,'getEditor':()=>_0x262618(this[_0x334ac2(0x161)]),'isFromHistory':!!_0x2cb9e4}),this[_0x334ac2(0x278)][_0x334ac2(0x26b)](_0x334ac2(0x112),_0x334ac2(0x206))['to'](this),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1c6),(_0x54f5b2,_0x5c7f8b)=>{const _0xc489a7=_0x334ac2;this[_0xc489a7(0x222)][_0xc489a7(0x1cd)](_0x5c7f8b),this[_0xc489a7(0x222)][_0xc489a7(0x1d3)](),this[_0xc489a7(0x222)][_0xc489a7(0x1f5)](),this[_0xc489a7(0x222)][_0xc489a7(0x1a4)](),_0x2cb9e4||(this[_0xc489a7(0x222)][_0xc489a7(0x270)](),this[_0xc489a7(0x21b)]());}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x16d),(_0x2275c5,_0x17edac)=>{const _0x2b7ca3=_0x334ac2;this[_0x2b7ca3(0x222)][_0x2b7ca3(0x164)](_0x17edac[_0x2b7ca3(0x114)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x15b),(_0x50d674,_0x9b7bf0)=>{const _0x23a751=_0x334ac2;this[_0x23a751(0x222)][_0x23a751(0x186)](_0x9b7bf0);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x250),()=>{const _0x571422=_0x334ac2,_0x546580=this[_0x571422(0x222)][_0x571422(0x19a)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x571422(0x222)][_0x571422(0x254)](_0x546580);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x18c),()=>{const _0x248101=_0x334ac2,_0x20790b=this[_0x248101(0x222)][_0x248101(0x19a)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x248101(0x222)][_0x248101(0x254)](_0x20790b);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x134),(_0x171c72,_0x48679d)=>{const _0x311e6a=_0x334ac2;this[_0x311e6a(0x222)][_0x311e6a(0x11e)](_0x48679d,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x237),(_0xaaf958,_0x4aa838)=>{const _0x395fe7=_0x334ac2;this[_0x395fe7(0x222)][_0x395fe7(0x11e)](_0x4aa838,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x206),()=>{const _0x584ef5=_0x334ac2;this[_0x584ef5(0x222)][_0x584ef5(0x230)]();}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x215),async()=>{const _0x425859=_0x334ac2;await this[_0x425859(0x222)][_0x425859(0x268)]();}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x169),(_0x544115,_0x516027)=>{const _0x13efb8=_0x334ac2;this[_0x13efb8(0x222)][_0x13efb8(0x205)](_0x516027['id']);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x133),(_0x1f9f48,_0x5a8c5b,_0x32608d)=>{const _0x203944=_0x334ac2;this[_0x203944(0x130)](_0x5a8c5b,_0x32608d);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x20a),(_0x360dc1,_0x4d9281)=>{const _0x422b1e=_0x334ac2;_0x422b1e(0x160)===_0x4d9281[_0x422b1e(0x110)]?this[_0x422b1e(0x222)][_0x422b1e(0x15e)](_0x4d9281):this[_0x422b1e(0x222)][_0x422b1e(0x16c)](_0x4d9281);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x18f),async(_0x1c14cb,_0x3ec062)=>{const _0x52a4bf=_0x334ac2;await this[_0x52a4bf(0x1eb)]({'reply':_0x3ec062});}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x21f),(_0x53348d,{reply:_0x198a47,index:_0x56542e,state:_0x5f352f})=>{const _0x1af441=_0x334ac2;this[_0x1af441(0x222)][_0x1af441(0x19e)]({'id':_0x198a47['id'],'index':_0x56542e,'state':_0x5f352f}),this[_0x1af441(0x1ff)]?.[_0x1af441(0x11c)][_0x1af441(0x145)](_0x198a47['id'])&&this[_0x1af441(0x1ff)]?.[_0x1af441(0x10e)]==_0x56542e&&this[_0x1af441(0x157)]?.[_0x1af441(0x1c7)](_0x5f352f);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1cb),(_0x5eedc7,_0x523a59)=>{const _0x630d8d=_0x334ac2;if(this[_0x630d8d(0x222)][_0x630d8d(0x23e)](_0x523a59[_0x630d8d(0x274)],_0x523a59[_0x630d8d(0x261)]),_0x630d8d(0x277)===_0x523a59[_0x630d8d(0x274)][_0x630d8d(0x110)]){const _0x8b1e6a=[..._0x262618(this[_0x630d8d(0x161)])[_0x630d8d(0x227)][_0x630d8d(0x218)][_0x630d8d(0x277)][_0x630d8d(0x184)]()];this[_0x630d8d(0x182)][_0x630d8d(0x171)](_0x8b1e6a,_0x630d8d(0x1e5)+this[_0x630d8d(0x278)]?.['id']);}}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x14c),(_0x3c6107,_0x20e8dc)=>{const _0x1b6087=_0x334ac2;this[_0x1b6087(0x222)][_0x1b6087(0x238)](_0x20e8dc[_0x1b6087(0x13f)]),_0x1b6087(0x189)==_0x20e8dc[_0x1b6087(0x13f)]&&this[_0x1b6087(0x1a6)](),_0x1b6087(0x277)===_0x20e8dc[_0x1b6087(0x110)]&&this[_0x1b6087(0x182)][_0x1b6087(0x1e1)](_0x1b6087(0x1e5)+this[_0x1b6087(0x278)]?.['id']);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1b3),(_0x5602ac,_0x50c3a1)=>{const _0x1fb502=_0x334ac2;this[_0x1fb502(0x222)][_0x1fb502(0x199)](_0x50c3a1[_0x1fb502(0x274)][_0x1fb502(0x13f)],_0x50c3a1[_0x1fb502(0x261)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1d7),(_0x459be9,_0x3c8ca7)=>{const _0x2c5a1d=_0x334ac2;this[_0x2c5a1d(0x222)][_0x2c5a1d(0x177)](_0x3c8ca7[_0x2c5a1d(0x288)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x141),(_0x46c98f,_0x109ba5)=>{const _0x54a783=_0x334ac2;this[_0x54a783(0x222)][_0x54a783(0x119)](_0x109ba5[_0x54a783(0x202)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x1e4),(_0x2e51f2,_0x1627ab)=>{const _0x2df647=_0x334ac2;this[_0x2df647(0x222)][_0x2df647(0x282)](_0x1627ab[_0x2df647(0x1d6)],_0x1627ab[_0x2df647(0x1df)],_0x1627ab[_0x2df647(0x18b)],_0x1627ab[_0x2df647(0x245)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x248),(_0x4230b4,_0x7f9182)=>{const _0x2ee7dc=_0x334ac2;this[_0x2ee7dc(0x222)][_0x2ee7dc(0x10a)](_0x7f9182[_0x2ee7dc(0x1d6)],_0x7f9182[_0x2ee7dc(0x233)],_0x7f9182[_0x2ee7dc(0x1fe)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x21d),(_0x3b0b17,_0x2e7735)=>{const _0x1ce3e1=_0x334ac2;this[_0x1ce3e1(0x222)][_0x1ce3e1(0x1a3)](_0x2e7735);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x246),async(_0x538763,_0x3eda57)=>{const _0x54dd6=_0x334ac2,_0x12c55b=(await this[_0x54dd6(0x1e7)][_0x54dd6(0x142)]())[_0x54dd6(0x108)](_0x2bfa94=>_0x2bfa94['id']===_0x3eda57[_0x54dd6(0x1fa)]?.['id'])||null;this[_0x54dd6(0x222)][_0x54dd6(0x21e)](_0x12c55b,_0x3eda57[_0x54dd6(0x1a1)]);}),this[_0x334ac2(0x278)]['on'](_0x334ac2(0x26e),(_0x2ad7a8,{error:_0x5b001d,interactionId:_0x243049,fileName:_0x2d407c,url:_0x37d97a,sourceId:_0x46a1f2,sourceLabel:_0x506f29})=>{const _0x40a54b=_0x334ac2,_0x3c94d9=_0x243049?_0x243049+':'+_0x2bfaa9():_0x2bfaa9();_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x223))?this[_0x40a54b(0x222)][_0x40a54b(0x11a)]({'staticMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x14d)),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x228))||_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x203))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x269)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x167))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x200),_0x2d407c),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x19d))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x147),_0x37d97a),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x14b))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x153)),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x135))?this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x276)),'id':_0x3c94d9}):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x14f))?(_0x46a1f2&&this[_0x40a54b(0x222)][_0x40a54b(0x16a)](_0x46a1f2),this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x1fc),_0x506f29||_0x40a54b(0x1df)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x1fd))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x26c)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x125))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x229)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x280))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x1cf)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x273))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x117)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x1ae))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x192)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):_0x5b001d[_0x40a54b(0x1bc)][_0x40a54b(0x285)](_0x40a54b(0x20d))?(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x225)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d)):(this[_0x40a54b(0x222)][_0x40a54b(0x128)]({'errorMessage':_0x91ff1d(this[_0x40a54b(0x161)][_0x40a54b(0x20e)],_0x40a54b(0x13d)),'id':_0x3c94d9}),this[_0x40a54b(0x1e9)](_0x5b001d));}),await this[_0x334ac2(0x278)][_0x334ac2(0x25f)](this[_0x334ac2(0x161)][_0x334ac2(0x137)][_0x334ac2(0x23a)](_0x334ac2(0x132))),_0x2cb9e4||await this[_0x334ac2(0x278)][_0x334ac2(0x271)]();}async[_0x58d811(0x181)]({userMessage:_0x5dc221,attributes:_0x4a6d5d}){const _0x5f0a07=_0x58d811;if(!this[_0x5f0a07(0x278)])throw new _0x20e93a(_0x5f0a07(0x17a));if(this[_0x5f0a07(0x278)][_0x5f0a07(0x138)]()){const _0x3e844f=await this[_0x5f0a07(0x182)][_0x5f0a07(0x1f2)]();await this[_0x5f0a07(0x278)][_0x5f0a07(0x18e)](_0x3e844f);}this[_0x5f0a07(0x278)]['id']&&this[_0x5f0a07(0x278)][_0x5f0a07(0x188)]&&await this[_0x5f0a07(0x278)][_0x5f0a07(0x27a)]({'userMessage':_0x5dc221,'attributes':_0x4a6d5d});}[_0x58d811(0x11f)](){const _0x275234=_0x58d811;console[_0x275234(0x22a)](_0x275234(0x201));}[_0x58d811(0x122)](_0xea5a2b){const _0x3dd235=_0x58d811;this[_0x3dd235(0x222)][_0x3dd235(0x23b)](_0xea5a2b);}[_0x58d811(0x1e9)](_0x4ea652){const _0x5ebb5b=_0x58d811;_0x1307b1(_0x4ea652[_0x5ebb5b(0x1bc)]);}[_0x58d811(0x24c)](_0x4a545d){const _0x332fcb=_0x58d811;this[_0x332fcb(0x278)]?.[_0x332fcb(0x207)](_0x4a545d);}[_0x58d811(0x121)](){const _0xe9467=_0x58d811;this[_0xe9467(0x278)]?.[_0xe9467(0x143)]();}[_0x58d811(0x13e)](){const _0xf46eae=_0x58d811;this[_0xf46eae(0x278)]?.[_0xf46eae(0x22b)]();}[_0x58d811(0x249)](_0x42a03e){const _0x27afb3=_0x58d811,[_0x1940ed,_0x4e8e37]=_0x42a03e[_0x27afb3(0x126)](':'),_0x2a9c93=this[_0x27afb3(0x278)][_0x27afb3(0x1a8)](_0x1940ed),_0x56665=_0x2a9c93[_0x27afb3(0x1e2)](_0x4e8e37);return{'interaction':_0x2a9c93,'reply':_0x56665};}[_0x58d811(0x24b)](_0x3a502f,_0x4ad5f4=!0x1){const _0x48367d=_0x58d811,_0x24207b=_0x262618(this[_0x48367d(0x161)]),_0x6681cc={'target':_0x24207b[_0x48367d(0x1b0)][_0x48367d(0x123)][_0x48367d(0x183)][_0x48367d(0x1dd)](_0x24207b[_0x48367d(0x1b0)][_0x48367d(0x20b)][_0x48367d(0x24a)](_0x3a502f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4ad5f4};_0x4ad5f4&&(_0x6681cc[_0x48367d(0x168)]=!0x0),_0x340917(_0x6681cc);}[_0x58d811(0x130)](_0x380fbd,_0x5d7ac4=!0x1){const _0xaf35eb=_0x58d811;this[_0xaf35eb(0x222)][_0xaf35eb(0x133)](_0x380fbd||_0x91ff1d(this[_0xaf35eb(0x161)][_0xaf35eb(0x20e)],_0xaf35eb(0x14e)),_0x5d7ac4);}async[_0x58d811(0x1eb)]({reply:_0x5b7f04,renderingStrategy:_0x3b279c}){const _0x5c0f2b=_0x58d811,{id:_0x27b999,interactionId:_0x48f2e5,isDone:_0x358dd0,type:_0x47e3ee,parsedContent:_0x17a7c5}=_0x5b7f04,_0x4ff29f=_0x48f2e5+':'+_0x27b999;if(_0x5c0f2b(0x15d)===_0x47e3ee){const _0x2216ef=_0x5b7f04[_0x5c0f2b(0x242)]({'showDiff':this[_0x5c0f2b(0x222)][_0x5c0f2b(0x197)]});await this[_0x5c0f2b(0x222)][_0x5c0f2b(0x1af)]({'id':_0x4ff29f,'parts':_0x2216ef,'renderingStrategy':_0x3b279c,'isDone':_0x358dd0});}else _0x5c0f2b(0x160)===_0x47e3ee&&await this[_0x5c0f2b(0x222)][_0x5c0f2b(0x12a)]({'id':_0x4ff29f,'parsedContent':_0x17a7c5,'renderingStrategy':_0x3b279c,'isDone':_0x358dd0});_0x358dd0&&_0x5b7f04[_0x5c0f2b(0x178)][_0x5c0f2b(0x25b)]>0x0&&this[_0x5c0f2b(0x222)][_0x5c0f2b(0x224)](_0x4ff29f,_0x5b7f04[_0x5c0f2b(0x178)]);}async[_0x58d811(0x18d)](){const _0x2c4a51=_0x58d811,_0x4e1dc6=this[_0x2c4a51(0x278)]?.[_0x2c4a51(0x1b6)];_0x4e1dc6&&(_0x4e1dc6[_0x2c4a51(0x19b)](),this[_0x2c4a51(0x222)][_0x2c4a51(0x252)](_0x4e1dc6));}async[_0x58d811(0x24f)](){const _0x13620b=_0x58d811,_0x4cf07d=this[_0x13620b(0x278)]?.[_0x13620b(0x1b6)];if(_0x4cf07d){for await(const _0x48d449 of _0x4cf07d[_0x13620b(0x23c)])await this[_0x13620b(0x1eb)]({'reply':_0x48d449,'renderingStrategy':_0x13620b(0x283)});}}[_0x58d811(0x12e)](_0x4f63b7){const _0xf76cda=_0x58d811,_0x25037a={'positiveCount':_0x4f63b7[_0xf76cda(0x1b9)][_0xf76cda(0x17b)](_0x511cc7=>_0xf76cda(0x1de)===_0x511cc7[_0xf76cda(0x221)])[_0xf76cda(0x25b)],'totalCount':_0x4f63b7[_0xf76cda(0x1b9)][_0xf76cda(0x25b)],'modificationId':_0x4f63b7['id']},_0x5d4147=this[_0xf76cda(0x278)][_0xf76cda(0x1a8)](_0x4f63b7[_0xf76cda(0x104)])[_0xf76cda(0x101)];_0x5d4147&&this[_0xf76cda(0x163)][_0xf76cda(0x185)](this[_0xf76cda(0x278)]['id'],_0x5d4147,_0x25037a);}[_0x58d811(0x1e8)](_0x5a2dcf){const _0x579b2a=_0x58d811;let _0x21c949=null,_0x4a498b=null;this['on'](_0x579b2a(0x112),(_0x2f05b8,_0x261347,_0x595c8f)=>{const _0x421201=_0x579b2a;_0x595c8f['id']!==_0x21c949&&(_0x21c949=_0x595c8f['id'],_0x4a498b=this[_0x421201(0x107)](_0x595c8f)),_0x5a2dcf(_0x261347,_0x4a498b);});}[_0x58d811(0x107)](_0x39260c){const _0x4915d1=_0x58d811,_0x566f55=this[_0x4915d1(0x222)],_0x8a3134=()=>{const _0x119994=_0x4915d1;_0x39260c[_0x119994(0x1ec)](),_0x39260c[_0x119994(0x1e6)](),_0x566f55[_0x119994(0x216)]();},_0x5dfe35=()=>{const _0x360bf6=_0x4915d1;_0x39260c[_0x360bf6(0x262)]&&(_0x39260c[_0x360bf6(0x262)][_0x360bf6(0x1a0)](),_0x39260c[_0x360bf6(0x262)]=void 0x0);};return{'insertTextReply':(_0x426bdb,_0x11e32f)=>{const _0x4c285c=_0x4915d1;_0x5dfe35(),_0x8a3134();const _0x575934=_0x39260c[_0x4c285c(0x262)]=_0x39260c[_0x4c285c(0x191)]({'type':_0x4c285c(0x160),'interactionId':_0x39260c['id'],'content':_0x426bdb,'id':_0x11e32f||_0x2bfaa9()});return _0x5dfe35(),_0x575934;},'insertCustomElement':async(_0x4ce13b,_0x2d3ab3)=>(_0x5dfe35(),_0x8a3134(),_0x566f55[_0x4915d1(0x1d0)](_0x4ce13b,_0x2d3ab3||_0x2bfaa9())),'setLoadingMessage':_0x35ab2e=>{const _0x353450=_0x4915d1;_0x566f55[_0x353450(0x254)](_0x35ab2e);},'clearLoadingMessage':()=>{const _0x48209f=_0x4915d1;_0x566f55[_0x48209f(0x216)]();}};}}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3317c0=_0x5f43;(function(_0xc46bad,_0x4999c2){const _0x424329=_0x5f43,_0x4b7692=_0xc46bad();while(!![]){try{const _0xe5c372=-parseInt(_0x424329(0xeb))/0x1+-parseInt(_0x424329(0xfe))/0x2*(parseInt(_0x424329(0xc5))/0x3)+parseInt(_0x424329(0x94))/0x4+-parseInt(_0x424329(0xc2))/0x5+-parseInt(_0x424329(0x92))/0x6*(parseInt(_0x424329(0x7b))/0x7)+parseInt(_0x424329(0xa1))/0x8*(-parseInt(_0x424329(0x10c))/0x9)+-parseInt(_0x424329(0x108))/0xa*(-parseInt(_0x424329(0x78))/0xb);if(_0xe5c372===_0x4999c2)break;else _0x4b7692['push'](_0x4b7692['shift']());}catch(_0x1f1d32){_0x4b7692['push'](_0x4b7692['shift']());}}}(_0x1c90,0xadd31));function _0x5f43(_0x3d1c2c,_0x3a36c7){const _0x1c905b=_0x1c90();return _0x5f43=function(_0x5f4318,_0x5636a5){_0x5f4318=_0x5f4318-0x6d;let _0x3ee36e=_0x1c905b[_0x5f4318];return _0x3ee36e;},_0x5f43(_0x3d1c2c,_0x3a36c7);}import{ContextPlugin as _0x56cc2b}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x1dabd6}from'ckeditor5/src/utils.js';import{AIChatView as _0x18a52c}from'./ui/aichatview.js';import{AITabs as _0x201db7}from'../aitabs/aitabs.js';import{getTranslation as _0x53b576}from'../aicore/utils/common-translations.js';function _0x1c90(){const _0x55391c=['chatControls','clear','updateSuggestionItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','hasFeedItem','removeFeedInteraction','<p>','hasItem','addFeedItemAISuggestion','resetConversationTitle','conversationCreated','scrollToSuggestion','requires','plugins','ai-suggestion-reply','toggleSuggestionDisplayMode','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','contextItems','setFeedItemRenderingStrategy','updateFeedItemAIReplySuggestionPartState','setSelectedModel','enableControls','1014938TtBxBi','markItemAsDone','ai.chat.context.searchInputVisibleFrom','enableModelSelector','last','ai.models.showModelSelector','user-message','showDiff','getItemIds','trackChanges','addFeedItemCustomElement','updateCapabilities','config','isModelAvailable','toggleLoadingSkeleton','startInteraction','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_WELCOME_MESSAGE','addContextItem','2Jwxblt','set','_titleAnimationInterval','label','showResizeButton','isPremiumPlugin','context','setReasoning','options','areActionsDisabled','41906810JXgvwk','startsWith','view','isWebSearchEnabled','11943NJrnii','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','setContextItemLoading','AIChatUI','resetMessageInput','setIsUploadInProgress','capabilities','updateFeedItemAIReplyContent','fire','clearPendingContextUI','attributes','updateSuggestionPartState','filter','updateFeedItemAIReplySources','updateFeedInteractionHeader','setConversationTitle','ai-reply','destroy','isTrackChangesOn','feedItemRenderingStrategy','userMessage','remove','setFeedItemAIReplySuggestionPartActive','updateReplyItem','_isTrackChangesCommandValueBound','chat','custom-element','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','values','isMaximized','clearConversationContextUI','get','11hlqtmG','addFeedItemUserMessage','children','7AKLyVL','stopInteraction','populateSourceResourceBalloon','updateResourceState','_getInputPlaceholder','addFeedInteractionHeader','isDone','setModel','locale','availableModels','setPromptInputValue','isDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','interactionId','addFeedItemError','stopAutoScroll','from','has','updateWebSources','AITabs','</p>','_animateConversationTitle','error-message','1366782WVAZRv','updateFeedItemAIReplySuggestionContent','1564836ZRluWE','renderingStrategy','ai.availableReplyActions','isBusy','TrackChanges','removeFeedItem','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','queueEmptyPromise','conversation-start','ai.chat.welcomeMessage','isLoading','length','2936iRQGkY','isPending','interaction-header','isVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setSuggestionPartActive','bind','addFeedItemAIReply','addTab','setInputPlaceholder','createConversation','chatFeed','pluginName','setModelList','chatHeader','value','clearLoadingMessage','startAutoScroll','AI_CHAT_HEADING','setConversationContext','scrollFeedToSuggestion','insertSuggestion','setLoadingMessage','forEach','displayedPrompt','_view','commands','_promiseQueue','finishInteraction','focusPromptInput','setIsMaximized','closeSourceResourceBalloon','disableControls','6792120JRcRHQ','isOfficialPlugin','disableModelSelector','2345211fyntWB','delegate','prepareLoadingMessage','then','_interactionPromiseResolver','streaming','setAddContextOptions','addFeedItemStaticMessage','removeContextItem','setWebSearch','enqueue','addItem','abort','removeItem','find','isReasoningEnabled'];_0x1c90=function(){return _0x55391c;};return _0x1c90();}import{IconAIChat as _0x4d2411}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x17f7be}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x32bbeb}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1e2ced}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x225a88}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x538a24}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x56cc2b{static get[_0x3317c0(0xe1)](){return[_0x201db7];}[_0x3317c0(0xba)];static get[_0x3317c0(0xad)](){const _0x1c2544=_0x3317c0;return _0x1c2544(0x10f);}static get[_0x3317c0(0xc3)](){return!0x0;}static get[_0x3317c0(0x103)](){return!0x0;}[_0x3317c0(0x11f)]=_0x3317c0(0xca);[_0x3317c0(0xf2)]=!0x0;[_0x3317c0(0xbc)];[_0x3317c0(0xc9)];[_0x3317c0(0x100)]=void 0x0;[_0x3317c0(0x70)]=!0x1;constructor(_0x4d2df){const _0x5f0350=_0x3317c0;super(_0x4d2df);const _0x1576ba=this[_0x5f0350(0x104)][_0x5f0350(0xe2)][_0x5f0350(0x77)](_0x5f0350(0x8e));this[_0x5f0350(0xff)](_0x5f0350(0x97),!0x1),this[_0x5f0350(0xbc)]=new _0x32bbeb(),this[_0x5f0350(0xba)]=new _0x18a52c(this[_0x5f0350(0x104)][_0x5f0350(0x83)],{'showResizeButton':_0x1576ba[_0x5f0350(0x102)],'contextResourcesSearchInputVisibleFrom':this[_0x5f0350(0x104)][_0x5f0350(0xf7)][_0x5f0350(0x77)](_0x5f0350(0xed))}),this[_0x5f0350(0xba)][_0x5f0350(0xc6)](..._0x1e2ced)['to'](this),this[_0x5f0350(0xba)]['on'](_0x5f0350(0xe4),(_0x2559bb,{showDiff:_0x269d67})=>{const _0x7e97d3=_0x5f0350;this[_0x7e97d3(0xf2)]=_0x269d67;}),_0x1576ba[_0x5f0350(0x10a)][_0x5f0350(0xa9)]({'id':_0x5f0350(0x71),'buttonLabel':_0x53b576(this[_0x5f0350(0x104)][_0x5f0350(0x83)],_0x5f0350(0xb3)),'buttonIcon':_0x4d2411,'order':0x0,'content':this[_0x5f0350(0xba)]}),this[_0x5f0350(0xba)][_0x5f0350(0xd5)][_0x5f0350(0xa7)](_0x5f0350(0x9f))['to'](this,_0x5f0350(0x97),_0x3971f8=>_0x3971f8),this[_0x5f0350(0xba)][_0x5f0350(0xac)][_0x5f0350(0xa7)](_0x5f0350(0xa2))['to'](this,_0x5f0350(0x97),_0x5721e8=>_0x5721e8),this[_0x5f0350(0xba)][_0x5f0350(0xd5)][_0x5f0350(0xaa)](this[_0x5f0350(0x7f)]()),this[_0x5f0350(0xa7)](_0x5f0350(0xf8))['to'](this[_0x5f0350(0xba)][_0x5f0350(0xd5)],_0x5f0350(0xf8));}[_0x3317c0(0x11d)](){const _0x375abf=_0x3317c0;super[_0x375abf(0x11d)](),this[_0x375abf(0x100)]&&clearInterval(this[_0x375abf(0x100)]);}[_0x3317c0(0xab)](_0x538d6e){const _0x159d00=_0x3317c0,_0x516e9f=this[_0x159d00(0x104)][_0x159d00(0xf7)][_0x159d00(0x77)](_0x159d00(0x9e))??_0x53b576(this[_0x159d00(0x104)][_0x159d00(0x83)],_0x159d00(0xfc));this[_0x159d00(0xba)][_0x159d00(0xac)][_0x159d00(0xd6)](),this[_0x159d00(0xba)][_0x159d00(0xd5)][_0x159d00(0xee)](),this[_0x159d00(0xba)][_0x159d00(0xd5)][_0x159d00(0xae)](_0x538d6e[_0x159d00(0x84)],!this[_0x159d00(0x104)][_0x159d00(0xf7)][_0x159d00(0x77)](_0x159d00(0xf0))),this[_0x159d00(0xcc)]({'id':_0x159d00(0x9d),'staticMessage':_0x516e9f}),this[_0x159d00(0x114)](_0x159d00(0xdf));}[_0x3317c0(0xcc)]({id:_0x36395d,staticMessage:_0x4e3b49}){const _0x1801b9=_0x3317c0;this[_0x1801b9(0xba)][_0x1801b9(0xac)][_0x1801b9(0xd0)](_0x1801b9(0x11c),{'id':_0x36395d,'initialContent':_0x1801b9(0xdb)+_0x4e3b49+_0x1801b9(0x8f)});}[_0x3317c0(0x79)](_0x51ae5e){const _0x350135=_0x3317c0,_0x30dbc5=_0x51ae5e[_0x350135(0x116)]?.[_0x350135(0xb9)]||_0x51ae5e[_0x350135(0x120)];this[_0x350135(0xba)][_0x350135(0xac)][_0x350135(0xd0)](_0x350135(0xf1),{'contextItems':Array[_0x350135(0x8b)](_0x51ae5e[_0x350135(0xe6)][_0x350135(0x74)]()),'initialContent':_0x350135(0xdb)+_0x30dbc5+_0x350135(0x8f),'id':_0x51ae5e['id']});}[_0x3317c0(0x89)]({errorMessage:_0x12af9c,id:_0x1d5993}){const _0x53bfd8=_0x3317c0;this[_0x53bfd8(0xba)][_0x53bfd8(0xac)][_0x53bfd8(0xd0)](_0x53bfd8(0x91),{'initialContent':_0x53bfd8(0xdb)+_0x12af9c+_0x53bfd8(0x8f),'id':_0x1d5993});}[_0x3317c0(0xa8)](_0x3416a4){const _0x1adeff=_0x3317c0;return this[_0x1adeff(0xbc)][_0x1adeff(0xcf)](async()=>{const _0x5f216b=_0x1adeff;this[_0x5f216b(0xba)][_0x5f216b(0xac)][_0x5f216b(0xd0)](_0x5f216b(0x11c),{'id':_0x3416a4[_0x5f216b(0x88)]+':'+_0x3416a4['id']}),this[_0x5f216b(0xb1)]();});}async[_0x3317c0(0xdd)](_0x3d292e){const _0x4603ba=_0x3317c0,_0xc5a3b7=_0x225a88(this[_0x4603ba(0x104)]);let _0x97f162=_0xc5a3b7[_0x4603ba(0xf7)][_0x4603ba(0x77)](_0x4603ba(0x96))||[..._0x538a24];if(_0xc5a3b7[_0x4603ba(0xe2)][_0x4603ba(0x8c)](_0x4603ba(0x98))){if(!this[_0x4603ba(0x70)]){this[_0x4603ba(0x70)]=!0x0;const _0x139d92=_0xc5a3b7[_0x4603ba(0xbb)][_0x4603ba(0x77)](_0x4603ba(0xf4));this[_0x4603ba(0xba)][_0x4603ba(0xac)][_0x4603ba(0xa7)](_0x4603ba(0x11e))['to'](_0x139d92,_0x4603ba(0xb0));}}else _0x97f162=_0x97f162[_0x4603ba(0x118)](_0x20ea26=>_0x4603ba(0xb6)!=_0x20ea26);return this[_0x4603ba(0xbc)][_0x4603ba(0xcf)](async()=>{const _0x463253=_0x4603ba;this[_0x463253(0xba)][_0x463253(0xac)][_0x463253(0xd0)](_0x463253(0xe3),{'id':_0x3d292e[_0x463253(0x88)]+':'+_0x3d292e['id'],'areActionsDisabled':_0x3d292e[_0x463253(0x107)],'showDiff':this[_0x463253(0xf2)],'availableActions':_0x97f162}),this[_0x463253(0xb1)]();});}[_0x3317c0(0x80)](_0x56a7cb,_0x12f4dd){const _0x5cc841=_0x3317c0,_0x48b952=this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0x7a)][_0x5cc841(0xef)];if(_0x48b952 instanceof _0x17f7be)return this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0x7a)][_0x5cc841(0x6d)](_0x48b952),void this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0xd0)](_0x5cc841(0xa3),{'id':_0x56a7cb['id'],'capabilities':{'isWebSearchEnabled':_0x48b952[_0x5cc841(0x112)][_0x5cc841(0x10b)]||_0x12f4dd[_0x5cc841(0x10b)],'isReasoningEnabled':_0x48b952[_0x5cc841(0x112)][_0x5cc841(0xd4)]||_0x12f4dd[_0x5cc841(0xd4)]}});this[_0x5cc841(0xba)][_0x5cc841(0xac)][_0x5cc841(0xd0)](_0x5cc841(0xa3),{'id':_0x56a7cb['id'],'capabilities':_0x12f4dd});}async[_0x3317c0(0xf5)](_0x31ef5c,_0x4a5504){const _0x403989=_0x3317c0;let _0x2b0919;return await this[_0x403989(0xbc)][_0x403989(0xcf)](async()=>{const _0x102207=_0x403989;_0x2b0919=this[_0x102207(0xba)][_0x102207(0xac)][_0x102207(0xd0)](_0x102207(0x72),{'content':_0x31ef5c,'id':_0x4a5504});}),_0x2b0919;}[_0x3317c0(0x99)](_0x4f780a){const _0x541c0c=_0x3317c0;this[_0x541c0c(0xba)][_0x541c0c(0xac)][_0x541c0c(0xd2)](_0x4f780a);}[_0x3317c0(0xd9)](_0x2a1eca){const _0x585196=_0x3317c0;return this[_0x585196(0xba)][_0x585196(0xac)][_0x585196(0xdc)](_0x2a1eca);}[_0x3317c0(0x11a)](_0x5e7604){const _0x284240=_0x3317c0,_0x20c26e=this[_0x284240(0xba)][_0x284240(0xac)][_0x284240(0x7a)][_0x284240(0xd3)](_0x41dbb4=>_0x41dbb4[_0x284240(0x106)]['id']==_0x5e7604['id']&&_0x41dbb4 instanceof _0x17f7be);_0x20c26e&&_0x20c26e[_0x284240(0xff)](_0x284240(0xa4),_0x5e7604[_0x284240(0xa4)]);}async[_0x3317c0(0x113)](_0x13c9ee){const _0x41265f=_0x3317c0,_0x49e657=_0x13c9ee[_0x41265f(0x95)]||this[_0x41265f(0x11f)];return this[_0x41265f(0xbc)][_0x41265f(0xcf)](async _0x447bd7=>{const _0x111927=_0x41265f;await this[_0x111927(0xba)][_0x111927(0xac)][_0x111927(0x6f)]({..._0x13c9ee,'abortSignal':_0x447bd7,'renderingStrategy':_0x49e657}),_0x13c9ee[_0x111927(0x81)]&&this[_0x111927(0x9a)](_0x13c9ee['id']);});}[_0x3317c0(0x119)](_0x4c596b,_0x4ef59b){const _0x194468=_0x3317c0;this[_0x194468(0xba)][_0x194468(0xac)][_0x194468(0x8d)](_0x4c596b,_0x4ef59b);}async[_0x3317c0(0x93)](_0x407dbf){const _0x4b738c=_0x3317c0,_0x22aeb1=_0x407dbf[_0x4b738c(0x95)]||this[_0x4b738c(0x11f)];return this[_0x4b738c(0xbc)][_0x4b738c(0xcf)](async _0x25960c=>{const _0x1875b2=_0x4b738c;await this[_0x1875b2(0xba)][_0x1875b2(0xac)][_0x1875b2(0xd7)]({..._0x407dbf,'abortSignal':_0x25960c,'renderingStrategy':_0x22aeb1}),_0x407dbf[_0x1875b2(0x81)]&&this[_0x1875b2(0x9a)](_0x407dbf['id']);});}[_0x3317c0(0xe8)](_0x459685){const _0x47c591=_0x3317c0;this[_0x47c591(0xba)][_0x47c591(0xac)][_0x47c591(0x117)](_0x459685);}[_0x3317c0(0x6e)](_0x20ebeb){const _0x2fdd81=_0x3317c0;this[_0x2fdd81(0xba)][_0x2fdd81(0xac)][_0x2fdd81(0xa6)](_0x20ebeb);}[_0x3317c0(0x9a)](_0x50e396){const _0x459f3d=_0x3317c0;this[_0x459f3d(0xba)][_0x459f3d(0xac)][_0x459f3d(0xec)](_0x50e396);}[_0x3317c0(0xda)](_0x5a5cb9){const _0xda74e=_0x3317c0;this[_0xda74e(0xba)][_0xda74e(0xac)][_0xda74e(0xf3)]()[_0xda74e(0x118)](_0x98270b=>_0x98270b[_0xda74e(0x109)](_0x5a5cb9))[_0xda74e(0xb8)](_0x21b78c=>this[_0xda74e(0xba)][_0xda74e(0xac)][_0xda74e(0xd2)](_0x21b78c));}[_0x3317c0(0xfa)](){const _0x101369=_0x3317c0,_0x3118c8=this[_0x101369(0xc7)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x101369(0xb7)](_0x3118c8),this[_0x101369(0xba)][_0x101369(0xd5)][_0x101369(0xc4)](!this[_0x101369(0x104)][_0x101369(0xf7)][_0x101369(0x77)](_0x101369(0xf0))),this[_0x101369(0x97)]=!0x0,this[_0x101369(0xba)][_0x101369(0xac)][_0x101369(0xb2)]();}[_0x3317c0(0x7c)](_0x4904b){const _0x3fdd6d=_0x3317c0;this[_0x3fdd6d(0xbc)][_0x3fdd6d(0xd1)](),this[_0x3fdd6d(0xba)][_0x3fdd6d(0xac)][_0x3fdd6d(0xf3)]()[_0x3fdd6d(0x118)](_0xd27939=>_0xd27939[_0x3fdd6d(0x109)](_0x4904b['id']))[_0x3fdd6d(0xb8)](_0x3b54ac=>this[_0x3fdd6d(0x9a)](_0x3b54ac)),this[_0x3fdd6d(0x97)]=!0x1,this[_0x3fdd6d(0xba)][_0x3fdd6d(0xac)][_0x3fdd6d(0x8a)]();}async[_0x3317c0(0xbd)](){const _0x6bddeb=_0x3317c0;return this[_0x6bddeb(0xbc)][_0x6bddeb(0x9c)][_0x6bddeb(0xc8)](()=>{const _0x339ef4=_0x6bddeb;this[_0x339ef4(0x97)]=!0x1,this[_0x339ef4(0xba)][_0x339ef4(0xac)][_0x339ef4(0x8a)]();});}[_0x3317c0(0xfd)](_0x3f9c38,_0x1f6611){const _0x4f0630=_0x3317c0;this[_0x4f0630(0xba)][_0x4f0630(0xd5)][_0x4f0630(0xfd)](_0x3f9c38,_0x1f6611);}[_0x3317c0(0xcd)](_0x3fed8f){const _0x2858b2=_0x3317c0;this[_0x2858b2(0xba)][_0x2858b2(0xd5)][_0x2858b2(0xcd)](_0x3fed8f);}[_0x3317c0(0x10e)](_0x5eed51,_0x14e6d9){const _0x575ce9=_0x3317c0;this[_0x575ce9(0xba)][_0x575ce9(0xd5)][_0x575ce9(0x10e)](_0x5eed51,_0x14e6d9);}[_0x3317c0(0x111)](_0x14b98e){const _0x10f5df=_0x3317c0;this[_0x10f5df(0xba)][_0x10f5df(0xd5)][_0x10f5df(0x111)](_0x14b98e);}[_0x3317c0(0xb4)](_0x51f8e1){const _0x10d45a=_0x3317c0;this[_0x10d45a(0xba)][_0x10d45a(0xd5)][_0x10d45a(0xb4)](_0x51f8e1);}[_0x3317c0(0x115)](){const _0x9c6df3=_0x3317c0;this[_0x9c6df3(0xba)][_0x9c6df3(0xd5)][_0x9c6df3(0x115)]();}[_0x3317c0(0x76)](){const _0x4724ea=_0x3317c0;this[_0x4724ea(0xba)][_0x4724ea(0xd5)][_0x4724ea(0x76)]();}[_0x3317c0(0x7e)](_0x5c5b54,_0xe596be,_0x4f3b27){const _0x262ccd=_0x3317c0;this[_0x262ccd(0xba)][_0x262ccd(0xd5)][_0x262ccd(0x7e)](_0x5c5b54,_0xe596be,_0x4f3b27);}[_0x3317c0(0x110)](){const _0x1b2ba2=_0x3317c0;this[_0x1b2ba2(0xba)][_0x1b2ba2(0xd5)][_0x1b2ba2(0x110)](),this[_0x1b2ba2(0xba)][_0x1b2ba2(0xd5)][_0x1b2ba2(0xaa)](this[_0x1b2ba2(0x7f)]());}[_0x3317c0(0xcb)](_0x42fffe){const _0x172e9e=_0x3317c0;this[_0x172e9e(0xba)][_0x172e9e(0xd5)][_0x172e9e(0xcb)](_0x42fffe);}[_0x3317c0(0xf6)](_0x385342){const _0x5323d3=_0x3317c0;this[_0x5323d3(0xba)][_0x5323d3(0xd5)][_0x5323d3(0xce)](_0x385342[_0x5323d3(0x10b)]),this[_0x5323d3(0xba)][_0x5323d3(0xd5)][_0x5323d3(0x105)](_0x385342[_0x5323d3(0xd4)]),this[_0x5323d3(0xba)][_0x5323d3(0xd5)][_0x5323d3(0xaa)](this[_0x5323d3(0x7f)](_0x385342));}[_0x3317c0(0xe9)](_0x7e602e,_0x23d4a6){const _0x3218c5=_0x3317c0;this[_0x3218c5(0xba)][_0x3218c5(0xd5)][_0x3218c5(0x82)](_0x7e602e),_0x23d4a6&&this[_0x3218c5(0xba)][_0x3218c5(0xd5)][_0x3218c5(0xc4)](!0x1);}[_0x3317c0(0xe7)](_0xe7c3d2){const _0xb22aca=_0x3317c0;this[_0xb22aca(0x11f)]=_0xe7c3d2;}[_0x3317c0(0xf9)](_0x6d0fff){const _0x5cd278=_0x3317c0;this[_0x5cd278(0xba)][_0x5cd278(0xac)][_0x5cd278(0xf9)](_0x6d0fff);}[_0x3317c0(0xde)](){const _0xc93e25=_0x3317c0;this[_0xc93e25(0x11b)](_0x53b576(this[_0xc93e25(0x104)][_0xc93e25(0x83)],_0xc93e25(0xb3)));}[_0x3317c0(0x11b)](_0x2c4752,_0x5b8c85=!0x1){const _0x2d8e93=_0x3317c0;if(_0x5b8c85&&!_0x1dabd6()&&_0x2c4752[_0x2d8e93(0xa0)])return this[_0x2d8e93(0xba)][_0x2d8e93(0xaf)][_0x2d8e93(0x101)]='',void this[_0x2d8e93(0x90)](_0x2c4752);this[_0x2d8e93(0xba)][_0x2d8e93(0xaf)][_0x2d8e93(0x101)]=_0x2c4752;}[_0x3317c0(0xb7)](_0x3398c7){const _0x3d1f8b=_0x3317c0;this[_0x3d1f8b(0xba)][_0x3d1f8b(0xac)][_0x3d1f8b(0xb7)](_0x3398c7);}[_0x3317c0(0xb1)](){const _0xcf31d1=_0x3317c0;this[_0xcf31d1(0xba)][_0xcf31d1(0xac)][_0xcf31d1(0xb7)]('');}[_0x3317c0(0x90)](_0x1f316e){const _0x154b40=_0x3317c0;let _0x2e3cce=0x0;clearInterval(this[_0x154b40(0x100)]),this[_0x154b40(0x100)]=setInterval(()=>{const _0x1ab49e=_0x154b40;this[_0x1ab49e(0xba)][_0x1ab49e(0xaf)][_0x1ab49e(0x101)]=this[_0x1ab49e(0xba)][_0x1ab49e(0xaf)][_0x1ab49e(0x101)]+_0x1f316e[_0x2e3cce],_0x2e3cce++,_0x2e3cce===_0x1f316e[_0x1ab49e(0xa0)]&&clearInterval(this[_0x1ab49e(0x100)]);},0x1e);}[_0x3317c0(0xbf)](_0x1a83ef){const _0x537668=_0x3317c0;this[_0x537668(0xba)][_0x537668(0xaf)][_0x537668(0x75)]=_0x1a83ef;}[_0x3317c0(0xc7)](_0x1429e3){const _0x15e5ff=_0x3317c0;return _0x1429e3[_0x15e5ff(0x10b)]&&_0x1429e3[_0x15e5ff(0xd4)]?_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0xe5)):_0x1429e3[_0x15e5ff(0x10b)]?_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0xa5)):_0x1429e3[_0x15e5ff(0xd4)]?_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0x73)):_0x53b576(this[_0x15e5ff(0x104)][_0x15e5ff(0x83)],_0x15e5ff(0xfb));}[_0x3317c0(0x7f)](_0x22baaa){const _0x53e6c5=_0x3317c0;return _0x22baaa?_0x22baaa[_0x53e6c5(0x10b)]&&_0x22baaa[_0x53e6c5(0xd4)]?_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0x87)):_0x22baaa[_0x53e6c5(0x10b)]?_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0x10d)):_0x22baaa[_0x53e6c5(0xd4)]?_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0x9b)):_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0xd8)):_0x53b576(this[_0x53e6c5(0x104)][_0x53e6c5(0x83)],_0x53e6c5(0xd8));}[_0x3317c0(0x7d)](_0x46400e,_0x6be1c7,_0x381534,_0xe0a0b3){const _0x2102c9=_0x3317c0;this[_0x2102c9(0xba)][_0x2102c9(0x7d)](_0x46400e,_0x6be1c7,_0x381534,_0xe0a0b3);}[_0x3317c0(0xc0)](_0x59874c){const _0x9fe1f5=_0x3317c0;this[_0x9fe1f5(0xba)][_0x9fe1f5(0xc0)](_0x59874c);}[_0x3317c0(0x85)](_0x303fb8){const _0x67be69=_0x3317c0;this[_0x67be69(0xba)][_0x67be69(0xd5)][_0x67be69(0x85)](_0x303fb8);}[_0x3317c0(0xbe)](_0x26df61=!0x1){const _0x29803f=_0x3317c0;this[_0x29803f(0xba)][_0x29803f(0xd5)][_0x29803f(0xbe)](_0x26df61);}[_0x3317c0(0xb5)](_0x3ef895,_0x5bfd11){const _0x2fe75c=_0x3317c0;this[_0x2fe75c(0xba)][_0x2fe75c(0xac)][_0x2fe75c(0xe0)](_0x3ef895,_0x5bfd11);}[_0x3317c0(0xb2)](){const _0x1467c2=_0x3317c0;this[_0x1467c2(0xba)][_0x1467c2(0xac)][_0x1467c2(0xb2)]();}[_0x3317c0(0xc1)](){const _0xdc82b1=_0x3317c0;this[_0xdc82b1(0xba)][_0xdc82b1(0xd5)][_0xdc82b1(0x86)]=!0x0;}[_0x3317c0(0xea)](){const _0x46d858=_0x3317c0;this[_0x46d858(0xba)][_0x46d858(0xd5)][_0x46d858(0x86)]=!0x1;}}
|
|
23
|
+
const _0x502628=_0x45a8;(function(_0x5b9afc,_0x23077f){const _0x7fceac=_0x45a8,_0x472322=_0x5b9afc();while(!![]){try{const _0x15bd99=-parseInt(_0x7fceac(0xde))/0x1*(-parseInt(_0x7fceac(0x17d))/0x2)+parseInt(_0x7fceac(0xef))/0x3+parseInt(_0x7fceac(0x167))/0x4*(-parseInt(_0x7fceac(0x16b))/0x5)+-parseInt(_0x7fceac(0x17c))/0x6+-parseInt(_0x7fceac(0x104))/0x7+parseInt(_0x7fceac(0x138))/0x8+parseInt(_0x7fceac(0xe8))/0x9;if(_0x15bd99===_0x23077f)break;else _0x472322['push'](_0x472322['shift']());}catch(_0x4fadf9){_0x472322['push'](_0x472322['shift']());}}}(_0x3d78,0xabf58));import{ContextPlugin as _0x1adefb}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4f158c}from'ckeditor5/src/utils.js';import{AIChatView as _0x1192af}from'./ui/aichatview.js';import{AITabs as _0x58542b}from'../aitabs/aitabs.js';import{getTranslation as _0x1f569d}from'../aicore/utils/common-translations.js';import{IconAIChat as _0xa9f42e}from'ckeditor5/src/icons.js';function _0x3d78(){const _0x2d5c8d=['ai-suggestion-reply','hasFeedItem','delegate','setFeedItemRenderingStrategy','has','chatHeader','enableModelSelector','updateFeedItemAIReplySources','setIsUploadInProgress','remove','removeItem','chatFeed','7935440lXDISA','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','bind','toggleLoadingSkeleton','TrackChanges','removeFeedItem','addItem','view','last','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','finishInteraction','then','values','addFeedItemError','updateFeedItemAIReplySuggestionPartState','ai.chat.welcomeMessage','insertSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setReasoning','chat','setSelectedModel','addFeedItemAIReply','error-message','scrollToSuggestion','markItemAsDone','_promiseQueue','isDisabled','setPromptInputValue','find','setWebSearch','chatControls','_interactionPromiseResolver','isWebSearchEnabled','isVisible','ai.models.showModelSelector','renderingStrategy','updateFeedInteractionHeader','filter','isDone','getItemIds','custom-element','isBusy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','isPremiumPlugin','ai-reply','destroy','enableControls','1410812mSvuRy','setModel','addFeedInteractionHeader','removeFeedInteraction','10LifGez','addFeedItemStaticMessage','options','queueEmptyPromise','availableModels','interaction-header','forEach','updateReplyItem','conversation-start','children','stopInteraction','_animateConversationTitle','AI_CHAT_WELCOME_MESSAGE','closeSourceResourceBalloon','markFeedItemAsDone','showResizeButton','updateFeedItemAIReplySuggestionContent','6440784ABwFDC','254wgkLem','setInputPlaceholder','userMessage','updateFeedItemAIReplyContent','AI_CHAT_HEADING','_getInputPlaceholder','prepareLoadingMessage','locale','focusPromptInput','isOfficialPlugin','enqueue','fire','populateSourceResourceBalloon','updateCapabilities','context','from','abort','AIChatUI','clearConversationContextUI','5342OJakYU','setFeedItemAIReplySuggestionPartActive','updateWebSources','length','pluginName','trackChanges','addFeedItemUserMessage','addContextItem','setAddContextOptions','</p>','14309028STTkWI','setIsMaximized','disableControls','hasItem','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','set','1157547UoXDUJ','updateSuggestionItem','_titleAnimationInterval','isTrackChangesOn','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','setConversationContext','commands','attributes','updateResourceState','feedItemRenderingStrategy','addFeedItemAISuggestion','_isTrackChangesCommandValueBound','isReasoningEnabled','config','isPending','clear','updateSuggestionPartState','areActionsDisabled','setLoadingMessage','showDiff','clearPendingContextUI','8140237etCDzn','addTab','<p>','stopAutoScroll','resetMessageInput','isLoading','conversationCreated','setModelList','AITabs','ai.chat.context.searchInputVisibleFrom','plugins','displayedPrompt','setConversationTitle','startInteraction','addFeedItemCustomElement','startAutoScroll','label','interactionId','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','streaming','value','ai.availableReplyActions','setSuggestionPartActive','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','requires','resetConversationTitle','isMaximized','scrollFeedToSuggestion','setContextItemLoading','user-message','get','disableModelSelector','isModelAvailable','startsWith','toggleSuggestionDisplayMode','createConversation','_view','removeContextItem','contextItems','clearLoadingMessage'];_0x3d78=function(){return _0x2d5c8d;};return _0x3d78();}import{AIChatFeedInteractionHeaderView as _0x3b37e6}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0xd8c21f}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x32f853}from'./utils/eventnames.js';function _0x45a8(_0x21eef0,_0xf385f2){const _0x3d7893=_0x3d78();return _0x45a8=function(_0x45a805,_0x4d4260){_0x45a805=_0x45a805-0xdc;let _0x237eab=_0x3d7893[_0x45a805];return _0x237eab;},_0x45a8(_0x21eef0,_0xf385f2);}import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x596ad1}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x286aad}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x1adefb{static get[_0x502628(0x11c)](){return[_0x58542b];}[_0x502628(0x128)];static get[_0x502628(0xe2)](){const _0x15c659=_0x502628;return _0x15c659(0xdc);}static get[_0x502628(0x186)](){return!0x0;}static get[_0x502628(0x163)](){return!0x0;}[_0x502628(0xf8)]=_0x502628(0x117);[_0x502628(0x102)]=!0x0;[_0x502628(0x151)];[_0x502628(0x157)];[_0x502628(0xf1)]=void 0x0;[_0x502628(0xfa)]=!0x1;constructor(_0x48eb76){const _0x34ffa9=_0x502628;super(_0x48eb76);const _0x4a5c10=this[_0x34ffa9(0x18b)][_0x34ffa9(0x10e)][_0x34ffa9(0x122)](_0x34ffa9(0x10c));this[_0x34ffa9(0xee)](_0x34ffa9(0x161),!0x1),this[_0x34ffa9(0x151)]=new _0xd8c21f(),this[_0x34ffa9(0x128)]=new _0x1192af(this[_0x34ffa9(0x18b)][_0x34ffa9(0x184)],{'showResizeButton':_0x4a5c10[_0x34ffa9(0x17a)],'contextResourcesSearchInputVisibleFrom':this[_0x34ffa9(0x18b)][_0x34ffa9(0xfc)][_0x34ffa9(0x122)](_0x34ffa9(0x10d))}),this[_0x34ffa9(0x128)][_0x34ffa9(0x12e)](..._0x32f853)['to'](this),this[_0x34ffa9(0x128)]['on'](_0x34ffa9(0x126),(_0x2bea37,{showDiff:_0x2baa8f})=>{const _0x10fcdd=_0x34ffa9;this[_0x10fcdd(0x102)]=_0x2baa8f;}),_0x4a5c10[_0x34ffa9(0x13f)][_0x34ffa9(0x105)]({'id':_0x34ffa9(0x14b),'buttonLabel':_0x1f569d(this[_0x34ffa9(0x18b)][_0x34ffa9(0x184)],_0x34ffa9(0x181)),'buttonIcon':_0xa9f42e,'order':0x0,'content':this[_0x34ffa9(0x128)]}),this[_0x34ffa9(0x128)][_0x34ffa9(0x156)][_0x34ffa9(0x13a)](_0x34ffa9(0x109))['to'](this,_0x34ffa9(0x161),_0x2262fd=>_0x2262fd),this[_0x34ffa9(0x128)][_0x34ffa9(0x137)][_0x34ffa9(0x13a)](_0x34ffa9(0xfd))['to'](this,_0x34ffa9(0x161),_0x46e8b9=>_0x46e8b9),this[_0x34ffa9(0x128)][_0x34ffa9(0x156)][_0x34ffa9(0x17e)](this[_0x34ffa9(0x182)]()),this[_0x34ffa9(0x13a)](_0x34ffa9(0x124))['to'](this[_0x34ffa9(0x128)][_0x34ffa9(0x156)],_0x34ffa9(0x124));}[_0x502628(0x165)](){const _0x41bfbf=_0x502628;super[_0x41bfbf(0x165)](),this[_0x41bfbf(0xf1)]&&clearInterval(this[_0x41bfbf(0xf1)]);}[_0x502628(0x127)](_0x3f987b){const _0x25663e=_0x502628,_0x4e5a7e=this[_0x25663e(0x18b)][_0x25663e(0xfc)][_0x25663e(0x122)](_0x25663e(0x147))??_0x1f569d(this[_0x25663e(0x18b)][_0x25663e(0x184)],_0x25663e(0x177));this[_0x25663e(0x128)][_0x25663e(0x137)][_0x25663e(0xfe)](),this[_0x25663e(0x128)][_0x25663e(0x156)][_0x25663e(0x132)](),this[_0x25663e(0x128)][_0x25663e(0x156)][_0x25663e(0x10b)](_0x3f987b[_0x25663e(0x16f)],!this[_0x25663e(0x18b)][_0x25663e(0xfc)][_0x25663e(0x122)](_0x25663e(0x15a))),this[_0x25663e(0x16c)]({'id':_0x25663e(0x173),'staticMessage':_0x4e5a7e}),this[_0x25663e(0x188)](_0x25663e(0x10a));}[_0x502628(0x16c)]({id:_0x45b196,staticMessage:_0x34863b}){const _0x2df6ca=_0x502628;this[_0x2df6ca(0x128)][_0x2df6ca(0x137)][_0x2df6ca(0x13e)](_0x2df6ca(0x164),{'id':_0x45b196,'initialContent':_0x2df6ca(0x106)+_0x34863b+_0x2df6ca(0xe7)});}[_0x502628(0xe4)](_0x19c8a7){const _0x1362c1=_0x502628,_0x822eb0=_0x19c8a7[_0x1362c1(0xf6)]?.[_0x1362c1(0x10f)]||_0x19c8a7[_0x1362c1(0x17f)];this[_0x1362c1(0x128)][_0x1362c1(0x137)][_0x1362c1(0x13e)](_0x1362c1(0x121),{'contextItems':Array[_0x1362c1(0x18c)](_0x19c8a7[_0x1362c1(0x12a)][_0x1362c1(0x144)]()),'initialContent':_0x1362c1(0x106)+_0x822eb0+_0x1362c1(0xe7),'id':_0x19c8a7['id']});}[_0x502628(0x145)]({errorMessage:_0x42e88c,id:_0x38aa40}){const _0x538fb5=_0x502628;this[_0x538fb5(0x128)][_0x538fb5(0x137)][_0x538fb5(0x13e)](_0x538fb5(0x14e),{'initialContent':_0x538fb5(0x106)+_0x42e88c+_0x538fb5(0xe7),'id':_0x38aa40});}[_0x502628(0x14d)](_0x2afde0){const _0x46cb41=_0x502628;return this[_0x46cb41(0x151)][_0x46cb41(0x187)](async()=>{const _0x1ad670=_0x46cb41;this[_0x1ad670(0x128)][_0x1ad670(0x137)][_0x1ad670(0x13e)](_0x1ad670(0x164),{'id':_0x2afde0[_0x1ad670(0x115)]+':'+_0x2afde0['id']}),this[_0x1ad670(0x12b)]();});}async[_0x502628(0xf9)](_0x16067a){const _0x4e3f2c=_0x502628,_0x14705e=_0x596ad1(this[_0x4e3f2c(0x18b)]);let _0x46e189=_0x14705e[_0x4e3f2c(0xfc)][_0x4e3f2c(0x122)](_0x4e3f2c(0x119))||[..._0x286aad];if(_0x14705e[_0x4e3f2c(0x10e)][_0x4e3f2c(0x130)](_0x4e3f2c(0x13c))){if(!this[_0x4e3f2c(0xfa)]){this[_0x4e3f2c(0xfa)]=!0x0;const _0x35eb32=_0x14705e[_0x4e3f2c(0xf5)][_0x4e3f2c(0x122)](_0x4e3f2c(0xe3));this[_0x4e3f2c(0x128)][_0x4e3f2c(0x137)][_0x4e3f2c(0x13a)](_0x4e3f2c(0xf2))['to'](_0x35eb32,_0x4e3f2c(0x118));}}else _0x46e189=_0x46e189[_0x4e3f2c(0x15d)](_0x4c7d67=>_0x4e3f2c(0x148)!=_0x4c7d67);return this[_0x4e3f2c(0x151)][_0x4e3f2c(0x187)](async()=>{const _0x521888=_0x4e3f2c;this[_0x521888(0x128)][_0x521888(0x137)][_0x521888(0x13e)](_0x521888(0x12c),{'id':_0x16067a[_0x521888(0x115)]+':'+_0x16067a['id'],'areActionsDisabled':_0x16067a[_0x521888(0x100)],'showDiff':this[_0x521888(0x102)],'availableActions':_0x46e189}),this[_0x521888(0x12b)]();});}[_0x502628(0x169)](_0x17bfa7,_0x20b8d3){const _0x17529d=_0x502628,_0x58910b=this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x174)][_0x17529d(0x140)];if(_0x58910b instanceof _0x3b37e6)return this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x174)][_0x17529d(0x135)](_0x58910b),void this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x13e)](_0x17529d(0x170),{'id':_0x17bfa7['id'],'capabilities':{'isWebSearchEnabled':_0x58910b[_0x17529d(0xec)][_0x17529d(0x158)]||_0x20b8d3[_0x17529d(0x158)],'isReasoningEnabled':_0x58910b[_0x17529d(0xec)][_0x17529d(0xfb)]||_0x20b8d3[_0x17529d(0xfb)]}});this[_0x17529d(0x128)][_0x17529d(0x137)][_0x17529d(0x13e)](_0x17529d(0x170),{'id':_0x17bfa7['id'],'capabilities':_0x20b8d3});}async[_0x502628(0x112)](_0x285e21,_0x249956){const _0x244b8f=_0x502628;let _0x86b3f3;return await this[_0x244b8f(0x151)][_0x244b8f(0x187)](async()=>{const _0x12a9d3=_0x244b8f;_0x86b3f3=this[_0x12a9d3(0x128)][_0x12a9d3(0x137)][_0x12a9d3(0x13e)](_0x12a9d3(0x160),{'content':_0x285e21,'id':_0x249956});}),_0x86b3f3;}[_0x502628(0x13d)](_0x37dbc5){const _0x2f1008=_0x502628;this[_0x2f1008(0x128)][_0x2f1008(0x137)][_0x2f1008(0x136)](_0x37dbc5);}[_0x502628(0x12d)](_0x2cce23){const _0xb88580=_0x502628;return this[_0xb88580(0x128)][_0xb88580(0x137)][_0xb88580(0xeb)](_0x2cce23);}[_0x502628(0x15c)](_0x178fcd){const _0x46e91c=_0x502628,_0x284ed1=this[_0x46e91c(0x128)][_0x46e91c(0x137)][_0x46e91c(0x174)][_0x46e91c(0x154)](_0x2b9cb8=>_0x2b9cb8[_0x46e91c(0x16d)]['id']==_0x178fcd['id']&&_0x2b9cb8 instanceof _0x3b37e6);_0x284ed1&&_0x284ed1[_0x46e91c(0xee)](_0x46e91c(0x159),_0x178fcd[_0x46e91c(0x159)]);}async[_0x502628(0x180)](_0x2e48dc){const _0x5f2cbf=_0x502628,_0x222aa0=_0x2e48dc[_0x5f2cbf(0x15b)]||this[_0x5f2cbf(0xf8)];return this[_0x5f2cbf(0x151)][_0x5f2cbf(0x187)](async _0x36c6d8=>{const _0x534624=_0x5f2cbf;await this[_0x534624(0x128)][_0x534624(0x137)][_0x534624(0x172)]({..._0x2e48dc,'abortSignal':_0x36c6d8,'renderingStrategy':_0x222aa0}),_0x2e48dc[_0x534624(0x15e)]&&this[_0x534624(0x179)](_0x2e48dc['id']);});}[_0x502628(0x133)](_0x41f54c,_0x1c5e51){const _0x1a4664=_0x502628;this[_0x1a4664(0x128)][_0x1a4664(0x137)][_0x1a4664(0xe0)](_0x41f54c,_0x1c5e51);}async[_0x502628(0x17b)](_0x2dc870){const _0x4ad2c1=_0x502628,_0x1d0916=_0x2dc870[_0x4ad2c1(0x15b)]||this[_0x4ad2c1(0xf8)];return this[_0x4ad2c1(0x151)][_0x4ad2c1(0x187)](async _0x4d39c6=>{const _0x3f8dd4=_0x4ad2c1;await this[_0x3f8dd4(0x128)][_0x3f8dd4(0x137)][_0x3f8dd4(0xf0)]({..._0x2dc870,'abortSignal':_0x4d39c6,'renderingStrategy':_0x1d0916}),_0x2dc870[_0x3f8dd4(0x15e)]&&this[_0x3f8dd4(0x179)](_0x2dc870['id']);});}[_0x502628(0x146)](_0x3163f7){const _0xf5cdf2=_0x502628;this[_0xf5cdf2(0x128)][_0xf5cdf2(0x137)][_0xf5cdf2(0xff)](_0x3163f7);}[_0x502628(0xdf)](_0x4e1a6d){const _0x20359b=_0x502628;this[_0x20359b(0x128)][_0x20359b(0x137)][_0x20359b(0x11a)](_0x4e1a6d);}[_0x502628(0x179)](_0x55436b){const _0x1a875e=_0x502628;this[_0x1a875e(0x128)][_0x1a875e(0x137)][_0x1a875e(0x150)](_0x55436b);}[_0x502628(0x16a)](_0x5a0096){const _0x48ca38=_0x502628;this[_0x48ca38(0x128)][_0x48ca38(0x137)][_0x48ca38(0x15f)]()[_0x48ca38(0x15d)](_0x3c39dc=>_0x3c39dc[_0x48ca38(0x125)](_0x5a0096))[_0x48ca38(0x171)](_0x42def3=>this[_0x48ca38(0x128)][_0x48ca38(0x137)][_0x48ca38(0x136)](_0x42def3));}[_0x502628(0x111)](){const _0x1e9855=_0x502628,_0x2a72d8=this[_0x1e9855(0x183)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x1e9855(0x101)](_0x2a72d8),this[_0x1e9855(0x128)][_0x1e9855(0x156)][_0x1e9855(0x123)](!this[_0x1e9855(0x18b)][_0x1e9855(0xfc)][_0x1e9855(0x122)](_0x1e9855(0x15a))),this[_0x1e9855(0x161)]=!0x0,this[_0x1e9855(0x128)][_0x1e9855(0x137)][_0x1e9855(0x113)]();}[_0x502628(0x175)](_0x5d650a){const _0x541d81=_0x502628;this[_0x541d81(0x151)][_0x541d81(0x18d)](),this[_0x541d81(0x128)][_0x541d81(0x137)][_0x541d81(0x15f)]()[_0x541d81(0x15d)](_0xe4522b=>_0xe4522b[_0x541d81(0x125)](_0x5d650a['id']))[_0x541d81(0x171)](_0xc74e02=>this[_0x541d81(0x179)](_0xc74e02)),this[_0x541d81(0x161)]=!0x1,this[_0x541d81(0x128)][_0x541d81(0x137)][_0x541d81(0x107)]();}async[_0x502628(0x142)](){const _0x5eef26=_0x502628;return this[_0x5eef26(0x151)][_0x5eef26(0x16e)][_0x5eef26(0x143)](()=>{const _0x41bcf0=_0x5eef26;this[_0x41bcf0(0x161)]=!0x1,this[_0x41bcf0(0x128)][_0x41bcf0(0x137)][_0x41bcf0(0x107)]();});}[_0x502628(0xe5)](_0x356e62,_0x442da7){const _0x190d2c=_0x502628;this[_0x190d2c(0x128)][_0x190d2c(0x156)][_0x190d2c(0xe5)](_0x356e62,_0x442da7);}[_0x502628(0x129)](_0x40c386){const _0x168415=_0x502628;this[_0x168415(0x128)][_0x168415(0x156)][_0x168415(0x129)](_0x40c386);}[_0x502628(0x120)](_0xed865c,_0x128b48){const _0x19df8a=_0x502628;this[_0x19df8a(0x128)][_0x19df8a(0x156)][_0x19df8a(0x120)](_0xed865c,_0x128b48);}[_0x502628(0x134)](_0x37c831){const _0x3ad7c8=_0x502628;this[_0x3ad7c8(0x128)][_0x3ad7c8(0x156)][_0x3ad7c8(0x134)](_0x37c831);}[_0x502628(0xf4)](_0x3a3f10){const _0x10cf9b=_0x502628;this[_0x10cf9b(0x128)][_0x10cf9b(0x156)][_0x10cf9b(0xf4)](_0x3a3f10);}[_0x502628(0x103)](){const _0x527271=_0x502628;this[_0x527271(0x128)][_0x527271(0x156)][_0x527271(0x103)]();}[_0x502628(0xdd)](){const _0x285e66=_0x502628;this[_0x285e66(0x128)][_0x285e66(0x156)][_0x285e66(0xdd)]();}[_0x502628(0xf7)](_0x5602f6,_0x3fb280,_0x734736){const _0x44c02e=_0x502628;this[_0x44c02e(0x128)][_0x44c02e(0x156)][_0x44c02e(0xf7)](_0x5602f6,_0x3fb280,_0x734736);}[_0x502628(0x108)](){const _0x79e0b3=_0x502628;this[_0x79e0b3(0x128)][_0x79e0b3(0x156)][_0x79e0b3(0x108)](),this[_0x79e0b3(0x128)][_0x79e0b3(0x156)][_0x79e0b3(0x17e)](this[_0x79e0b3(0x182)]());}[_0x502628(0xe6)](_0x315838){const _0x10371e=_0x502628;this[_0x10371e(0x128)][_0x10371e(0x156)][_0x10371e(0xe6)](_0x315838);}[_0x502628(0x18a)](_0x5a52c4){const _0x3afbbb=_0x502628;this[_0x3afbbb(0x128)][_0x3afbbb(0x156)][_0x3afbbb(0x155)](_0x5a52c4[_0x3afbbb(0x158)]),this[_0x3afbbb(0x128)][_0x3afbbb(0x156)][_0x3afbbb(0x14a)](_0x5a52c4[_0x3afbbb(0xfb)]),this[_0x3afbbb(0x128)][_0x3afbbb(0x156)][_0x3afbbb(0x17e)](this[_0x3afbbb(0x182)](_0x5a52c4));}[_0x502628(0x14c)](_0x2beda6,_0x4cad01){const _0x18ba33=_0x502628;this[_0x18ba33(0x128)][_0x18ba33(0x156)][_0x18ba33(0x168)](_0x2beda6),_0x4cad01&&this[_0x18ba33(0x128)][_0x18ba33(0x156)][_0x18ba33(0x123)](!0x1);}[_0x502628(0x12f)](_0x2d1e25){const _0x356564=_0x502628;this[_0x356564(0xf8)]=_0x2d1e25;}[_0x502628(0x13b)](_0x12936b){const _0x4546f0=_0x502628;this[_0x4546f0(0x128)][_0x4546f0(0x137)][_0x4546f0(0x13b)](_0x12936b);}[_0x502628(0x11d)](){const _0x395b99=_0x502628;this[_0x395b99(0x110)](_0x1f569d(this[_0x395b99(0x18b)][_0x395b99(0x184)],_0x395b99(0x181)));}[_0x502628(0x110)](_0x3a7767,_0x2f8c71=!0x1){const _0x5134b5=_0x502628;if(_0x2f8c71&&!_0x4f158c()&&_0x3a7767[_0x5134b5(0xe1)])return this[_0x5134b5(0x128)][_0x5134b5(0x131)][_0x5134b5(0x114)]='',void this[_0x5134b5(0x176)](_0x3a7767);this[_0x5134b5(0x128)][_0x5134b5(0x131)][_0x5134b5(0x114)]=_0x3a7767;}[_0x502628(0x101)](_0x2cbc37){const _0xce0dc7=_0x502628;this[_0xce0dc7(0x128)][_0xce0dc7(0x137)][_0xce0dc7(0x101)](_0x2cbc37);}[_0x502628(0x12b)](){const _0x530bc6=_0x502628;this[_0x530bc6(0x128)][_0x530bc6(0x137)][_0x530bc6(0x101)]('');}[_0x502628(0x176)](_0x1df911){const _0x2ada7f=_0x502628;let _0x289674=0x0;clearInterval(this[_0x2ada7f(0xf1)]),this[_0x2ada7f(0xf1)]=setInterval(()=>{const _0xc74cc9=_0x2ada7f;this[_0xc74cc9(0x128)][_0xc74cc9(0x131)][_0xc74cc9(0x114)]=this[_0xc74cc9(0x128)][_0xc74cc9(0x131)][_0xc74cc9(0x114)]+_0x1df911[_0x289674],_0x289674++,_0x289674===_0x1df911[_0xc74cc9(0xe1)]&&clearInterval(this[_0xc74cc9(0xf1)]);},0x1e);}[_0x502628(0xe9)](_0xbe0a12){const _0x5bce17=_0x502628;this[_0x5bce17(0x128)][_0x5bce17(0x131)][_0x5bce17(0x11e)]=_0xbe0a12;}[_0x502628(0x183)](_0xb4f170){const _0xdd7e0b=_0x502628;return _0xb4f170[_0xdd7e0b(0x158)]&&_0xb4f170[_0xdd7e0b(0xfb)]?_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0x116)):_0xb4f170[_0xdd7e0b(0x158)]?_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0x149)):_0xb4f170[_0xdd7e0b(0xfb)]?_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0xf3)):_0x1f569d(this[_0xdd7e0b(0x18b)][_0xdd7e0b(0x184)],_0xdd7e0b(0xed));}[_0x502628(0x182)](_0x145bc5){const _0x18898d=_0x502628;return _0x145bc5?_0x145bc5[_0x18898d(0x158)]&&_0x145bc5[_0x18898d(0xfb)]?_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x162)):_0x145bc5[_0x18898d(0x158)]?_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x139)):_0x145bc5[_0x18898d(0xfb)]?_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x141)):_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x11b)):_0x1f569d(this[_0x18898d(0x18b)][_0x18898d(0x184)],_0x18898d(0x11b));}[_0x502628(0x189)](_0x5561aa,_0x4c7ce7,_0x5aeaf7,_0x52e2f9){const _0x2facd8=_0x502628;this[_0x2facd8(0x128)][_0x2facd8(0x189)](_0x5561aa,_0x4c7ce7,_0x5aeaf7,_0x52e2f9);}[_0x502628(0x178)](_0x2a4c95){const _0x35ad8c=_0x502628;this[_0x35ad8c(0x128)][_0x35ad8c(0x178)](_0x2a4c95);}[_0x502628(0x153)](_0x4c59cc){const _0x4a01e0=_0x502628;this[_0x4a01e0(0x128)][_0x4a01e0(0x156)][_0x4a01e0(0x153)](_0x4c59cc);}[_0x502628(0x185)](_0x1a8404=!0x1){const _0x49e555=_0x502628;this[_0x49e555(0x128)][_0x49e555(0x156)][_0x49e555(0x185)](_0x1a8404);}[_0x502628(0x11f)](_0x3eaaf6,_0x15d3f2){const _0x12e7e0=_0x502628;this[_0x12e7e0(0x128)][_0x12e7e0(0x137)][_0x12e7e0(0x14f)](_0x3eaaf6,_0x15d3f2);}[_0x502628(0x113)](){const _0x3db9cc=_0x502628;this[_0x3db9cc(0x128)][_0x3db9cc(0x137)][_0x3db9cc(0x113)]();}[_0x502628(0xea)](){const _0x2c1853=_0x502628;this[_0x2c1853(0x128)][_0x2c1853(0x156)][_0x2c1853(0x152)]=!0x0;}[_0x502628(0x166)](){const _0x5d6615=_0x502628;this[_0x5d6615(0x128)][_0x5d6615(0x156)][_0x5d6615(0x152)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x548e69=_0x456c;(function(_0x574534,_0x9a8fed){const _0x4de43b=_0x456c,_0x50d322=_0x574534();while(!![]){try{const _0x209cf4=parseInt(_0x4de43b(0x11d))/0x1*(parseInt(_0x4de43b(0xe0))/0x2)+parseInt(_0x4de43b(0x129))/0x3*(-parseInt(_0x4de43b(0xf2))/0x4)+parseInt(_0x4de43b(0x105))/0x5*(-parseInt(_0x4de43b(0x132))/0x6)+parseInt(_0x4de43b(0x149))/0x7+parseInt(_0x4de43b(0x135))/0x8+parseInt(_0x4de43b(0x14c))/0x9+parseInt(_0x4de43b(0x150))/0xa*(-parseInt(_0x4de43b(0xfa))/0xb);if(_0x209cf4===_0x9a8fed)break;else _0x50d322['push'](_0x50d322['shift']());}catch(_0x5e408a){_0x50d322['push'](_0x50d322['shift']());}}}(_0x5e6a,0x36127));function _0x5e6a(){const _0x8232c7=['_removeContextItem','FILE','resources','filter','getResources','end','set','44qSWLeW','delete','_isResourceInContext','uploadUrl','contextItemRemoved','isSelectionInContext','code','ai-chat-file-upload-failed','URL','contextItemLoadingEnded','addFilesToContext','45JGtvcv','map','object\x20with\x20content\x20and\x20type\x20properties','object','hidden','_findSourceIdsByResourceId','ai-chat-source-not-found','error','start','clearPendingContextItems','mcpServerName','addContextOptionsChanged','isCurrentDocumentInConversation','mapContextItemsToRequestData','_pendingContextItems','addCurrentDocumentToContext','_ongoingUploadOperations','urls','removeSelectionFromContext','ai-request-aborted','fire','contextSent','uploadDocument','ai-chat-url-upload-failed','2QJrbdF','getData','removeFromContext','addToConversationContext','addToolItemToContext','isInContext','from','files','data','resourceId','_config','addSelectionToContext','3cvtnMm','_toggleAddCurrentDocumentOptionVisibility','_addContextOptionsState','uiId','_connector','getDocument','push','has','toolName','65886woGbJp','_getCustomSourcesInitialState','TOOL','3470152Zrgxlm','size','find','isReadOnly','url-','_updateResourceInContextState','updateCurrentDocument','abort','string','document','TEXT','_convertTextResourceToFile','ai-chat-resource-load-failed','Current\x20document','length','loadSourceResources','resourceStateChanged','selection','ai-chat-resource-no-data','type','68432UwyeSj','stack','MARKDOWN','1519740tAvwou','label','name','sourceResourcesLoaded','1471630CUJGwu','url','ai-chat-document-upload-failed','_mapContextItemToRequestData','text/markdown','_setAddContextOptionsDefaultState','_startUploadOperation','values','_addContextItem','isHidden','substring','content','_ownerId','uploadProgressChanged','enabled','addUrlToContext','_finishUploadOperation','forEach','text/plain','attributes','version','fetchDocument','_finishContextItemLoading','HTML','_ongoingUploads','_addToConversationContextItem','isCurrentDocumentInContext','ai-chat-source-resources-load-failed','uploadFile','File','populateFromMessage','sessionId','init','getPendingContextItems','addResourceToContext','SELECTION','ai-chat-context-unsupported-type','DOCUMENT','425202IeSXGO','message','text/html','getId','abortController','customItems','getSentContextItems','startsWith','_createContextItemFromContent','ai-chat-context-invalid-data','all','_conversationContextItems','contextItemAdded','file-','get','files-','sources','current-document','514588ZchCVD'];_0x5e6a=function(){return _0x8232c7;};return _0x5e6a();}import{CKEditorError as _0xfc3ea9,ObservableMixin as _0x2a0d4f,uid as _0x31d1d9}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x59cd01,AIContextTextResourceType as _0x26f8d7}from'../../aicore/model/aicontext.js';function _0x456c(_0x407709,_0x59912f){const _0x5e6af2=_0x5e6a();return _0x456c=function(_0x456ce7,_0x377cf5){_0x456ce7=_0x456ce7-0xd8;let _0x6d376e=_0x5e6af2[_0x456ce7];return _0x6d376e;},_0x456c(_0x407709,_0x59912f);}import{escape as _0xb6ef75}from'es-toolkit/compat';import{errorsMap as _0x249939}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x548e69(0xec),_0x548e69(0xfe),_0x548e69(0x103),_0x548e69(0x11a),_0x548e69(0x10c),_0x548e69(0x110),_0x548e69(0x14f),_0x548e69(0x145),_0x548e69(0x15d)];export class AIChatContext extends _0x2a0d4f(){[_0x548e69(0x12d)];[_0x548e69(0x127)];[_0x548e69(0x15c)];constructor({connector:_0x357a6b,config:_0x5ae51b,ownerId:_0x533615}){const _0xf4a87d=_0x548e69;super(),this[_0xf4a87d(0x12d)]=_0x357a6b,this[_0xf4a87d(0x127)]=_0x5ae51b,this[_0xf4a87d(0x15c)]=_0x533615;}[_0x548e69(0xda)](){const _0x4efb05=_0x548e69;this[_0x4efb05(0x113)]=new Map(),this[_0x4efb05(0xeb)]=new Map(),this[_0x4efb05(0x168)]=new Map(),this[_0x4efb05(0x115)]=new Map(),this[_0x4efb05(0x155)]();}[_0x548e69(0xdb)](){const _0x2e982a=_0x548e69;return this[_0x2e982a(0x113)];}async[_0x548e69(0xd8)](_0x3c3b4a){const _0x52f0b7=_0x548e69,_0x5c6491=await this[_0x52f0b7(0xe8)](_0x3c3b4a);return this[_0x52f0b7(0x169)](_0x5c6491),_0x52f0b7(0xf1)===_0x5c6491[_0x52f0b7(0x12c)]&&this[_0x52f0b7(0x12a)](),_0x5c6491;}async[_0x548e69(0xe8)](_0x55d98a){const _0x3a16ba=_0x548e69;if(_0x55d98a[_0x3a16ba(0x148)]===_0x59cd01[_0x3a16ba(0xdf)]){const _0x161e26=await this[_0x3a16ba(0x12d)][_0x3a16ba(0x165)](this[_0x3a16ba(0x15c)],_0x55d98a['id'])[_0x3a16ba(0x12e)]();return{'id':_0x3a16ba(0xf1),'uiId':_0x3a16ba(0xf1),'label':_0x3a16ba(0x142),'type':_0x55d98a[_0x3a16ba(0x148)],'content':_0x161e26[_0x3a16ba(0x15b)],'hidden':this[_0x3a16ba(0xeb)][_0x3a16ba(0x130)](_0x3a16ba(0xf1)),'version':_0x161e26[_0x3a16ba(0x163)]?.[_0x3a16ba(0x164)],'sessionId':_0x161e26[_0x3a16ba(0x163)]?.[_0x3a16ba(0xd9)]};}if(_0x55d98a[_0x3a16ba(0x148)]===_0x59cd01[_0x3a16ba(0x134)])return{'id':_0x55d98a['id'],'uiId':_0x55d98a['id'],'label':_0x55d98a[_0x3a16ba(0x125)]?.[_0x3a16ba(0x14d)]||_0x55d98a['id'],'type':_0x59cd01[_0x3a16ba(0x134)],'mcpServerName':_0x55d98a[_0x3a16ba(0x10f)],'toolName':_0x55d98a[_0x3a16ba(0x131)],'data':_0x55d98a[_0x3a16ba(0x125)]||{}};return{'id':_0x55d98a['id'],'uiId':_0x55d98a['id'],'label':_0x55d98a[_0x3a16ba(0x163)]?.[_0x3a16ba(0x14d)]||_0x55d98a[_0x3a16ba(0x14e)]||_0x55d98a[_0x3a16ba(0x151)]||_0x55d98a['id'],'type':_0x55d98a[_0x3a16ba(0x148)],..._0x55d98a?.[_0x3a16ba(0x163)]?.[_0x3a16ba(0x126)]?{'resourceId':_0x55d98a[_0x3a16ba(0x163)]?.[_0x3a16ba(0x126)]}:{}};}[_0x548e69(0xe6)](){const _0xcadaaa=_0x548e69;return new Map(this[_0xcadaaa(0xeb)]);}[_0x548e69(0x11f)](_0x53a371){const _0xf47865=_0x548e69,_0x24bea8=this[_0xf47865(0x113)][_0xf47865(0xee)](_0x53a371);_0x24bea8?.[_0xf47865(0x138)]||this[_0xf47865(0xf3)](_0x53a371);}[_0x548e69(0x10e)](){const _0x59780c=_0x548e69;if(0x0===this[_0x59780c(0x113)][_0x59780c(0x136)])return;for(const _0x1337e1 of this[_0x59780c(0x113)][_0x59780c(0x157)]())this[_0x59780c(0xf3)](_0x1337e1[_0x59780c(0x12c)]);const _0x191019=this[_0x59780c(0xeb)][_0x59780c(0xee)](_0x59780c(0xf1))||this[_0x59780c(0x113)][_0x59780c(0xee)](_0x59780c(0xf1));_0x191019&&this[_0x59780c(0x158)]({..._0x191019,'isReadOnly':!0x0,'hidden':!0x0});}[_0x548e69(0x120)](_0x3429bd){const _0x1cf2b8=_0x548e69;for(const _0x4b87e4 of _0x3429bd[_0x1cf2b8(0x157)]())this[_0x1cf2b8(0x169)](_0x4b87e4);this[_0x1cf2b8(0x10e)](),this[_0x1cf2b8(0x119)](_0x1cf2b8(0x11a),{'contextItems':Array[_0x1cf2b8(0x123)](this[_0x1cf2b8(0xe6)]()[_0x1cf2b8(0x157)]())});}[_0x548e69(0x16a)](){const _0x189f33=_0x548e69;return this[_0x189f33(0x113)][_0x189f33(0x130)](_0x189f33(0xf1));}[_0x548e69(0xff)](){const _0xea5d13=_0x548e69;return this[_0xea5d13(0x113)][_0xea5d13(0x130)](_0xea5d13(0x146));}[_0x548e69(0x111)](){const _0x28be05=_0x548e69;return this[_0x28be05(0xeb)][_0x28be05(0x130)](_0x28be05(0xf1));}static[_0x548e69(0x112)](_0x8e2f19){const _0x224340=_0x548e69;return Array[_0x224340(0x123)](_0x8e2f19[_0x224340(0x157)]())[_0x224340(0x106)](_0x765ef1=>this[_0x224340(0x153)](_0x765ef1))[_0x224340(0xf6)](_0x159a7d=>null!==_0x159a7d);}async[_0x548e69(0x104)](_0x2b1a13,_0xfcbf8a,_0x5e6d00=_0x59cd01[_0x548e69(0xf4)]){const _0x363caa=_0x548e69,_0x2fbe51=_0x363caa(0xef)+_0x31d1d9();this[_0x363caa(0x156)](_0x2fbe51);try{await Promise[_0x363caa(0xea)](_0x2b1a13[_0x363caa(0x106)](async _0x526f0c=>{const _0x3ddb46=_0x363caa,_0x13c63d=_0x3ddb46(0xed)+_0x31d1d9(),_0x12602e=_0xb6ef75(_0x526f0c[_0x3ddb46(0x14e)]);try{this[_0x3ddb46(0x158)]({'type':_0x5e6d00,'label':_0xfcbf8a?.[_0x3ddb46(0x14d)]||_0x12602e,'uiId':_0x13c63d,'resourceId':_0xfcbf8a?.[_0x3ddb46(0x126)]},!0x0);const _0xf9c5e7=this[_0x3ddb46(0x12d)][_0x3ddb46(0x16c)](this[_0x3ddb46(0x15c)],_0x526f0c,_0xfcbf8a);this[_0x3ddb46(0x168)][_0x3ddb46(0xf9)](_0x13c63d,_0xf9c5e7[_0x3ddb46(0xe4)]);const {id:_0x10e103}=await _0xf9c5e7[_0x3ddb46(0xe3)]();this[_0x3ddb46(0x168)][_0x3ddb46(0xfb)](_0x13c63d),this[_0x3ddb46(0x166)]({'type':_0x5e6d00,'id':_0x10e103,'label':_0xfcbf8a?.[_0x3ddb46(0x14d)]||_0x12602e,'uiId':_0x13c63d,'resourceId':_0xfcbf8a?.[_0x3ddb46(0x126)]},!0x1);}catch(_0xdd805c){this[_0x3ddb46(0x168)][_0x3ddb46(0xfb)](_0x13c63d);if(!(_0xdd805c instanceof _0xfc3ea9&&_0xdd805c[_0x3ddb46(0xe1)][_0x3ddb46(0xe7)](_0x3ddb46(0x118)))){const _0x2daace=_0x249939[_0x3ddb46(0xee)](_0xdd805c[_0x3ddb46(0x100)])||_0x3ddb46(0x101),_0x38fdab=new _0xfc3ea9(_0x2daace,null,{'fileName':_0x12602e,..._0xdd805c});_0x38fdab[_0x3ddb46(0x14a)]=_0xdd805c[_0x3ddb46(0x14a)],this[_0x3ddb46(0x119)](_0x3ddb46(0x10c),{'error':_0x38fdab});}this[_0x3ddb46(0xf3)](_0x13c63d);}}));}finally{this[_0x363caa(0x160)](_0x2fbe51);}}[_0x548e69(0x114)](_0x5ee54d){const _0x2fcc70=_0x548e69;if(this[_0x2fcc70(0x16a)]()||!this[_0x2fcc70(0x12b)][_0x2fcc70(0x13e)][_0x2fcc70(0x15e)])return;const _0x3db494={'type':_0x59cd01[_0x2fcc70(0xdf)],'uiId':_0x2fcc70(0xf1),'label':_0x5ee54d,'isReadOnly':this[_0x2fcc70(0xeb)][_0x2fcc70(0x130)](_0x2fcc70(0xf1)),'hidden':this[_0x2fcc70(0xeb)][_0x2fcc70(0x130)](_0x2fcc70(0xf1))};this[_0x2fcc70(0x158)](_0x3db494);}async[_0x548e69(0x13b)](_0x36e592,_0x38f680,_0x3d1881,_0xd3ea5c){const _0x30db3d=_0x548e69,_0x24ee13=this[_0x30db3d(0x113)][_0x30db3d(0xee)](_0x30db3d(0xf1));if(_0x24ee13&&_0x36e592){_0x24ee13[_0x30db3d(0x146)]=_0xd3ea5c?_0xd3ea5c[_0x30db3d(0x106)](_0x19823c=>({'start':_0x19823c[_0x30db3d(0x10d)],'end':_0x19823c[_0x30db3d(0xf8)]})):[];try{if(_0x24ee13[_0x30db3d(0x164)]===_0x38f680)return;const {id:_0xfffe32}=await this[_0x30db3d(0x12d)][_0x30db3d(0x11b)](this[_0x30db3d(0x15c)],_0x36e592,{'version':_0x38f680,'sessionId':_0x3d1881})[_0x30db3d(0xe3)]();_0x24ee13['id']=_0xfffe32,_0x24ee13[_0x30db3d(0x15b)]=_0x36e592,_0x24ee13[_0x30db3d(0x164)]=_0x38f680,_0x24ee13[_0x30db3d(0xd9)]=_0x3d1881;}catch(_0x3611e8){const _0x50f6a7=new _0xfc3ea9(_0x30db3d(0x152),null);_0x50f6a7[_0x30db3d(0x14a)]=_0x3611e8[_0x30db3d(0x14a)],this[_0x30db3d(0x119)](_0x30db3d(0x10c),{'error':_0x50f6a7});}}}[_0x548e69(0x128)](_0x10ed0b){const _0x51487c=_0x548e69;this[_0x51487c(0x158)]({'type':_0x59cd01[_0x51487c(0xdd)],'label':_0x10ed0b,'uiId':_0x51487c(0x146),'content':_0x10ed0b});}[_0x548e69(0x117)](){const _0x1ad9e8=_0x548e69;this[_0x1ad9e8(0xf3)](_0x1ad9e8(0x146));}async[_0x548e69(0x15f)](_0x278e3d,_0x427513){const _0x3ac466=_0x548e69,_0x206a93=_0x3ac466(0x139)+_0x31d1d9();this[_0x3ac466(0x156)](_0x206a93);const _0x5e687b=_0x3ac466(0x139)+_0x31d1d9();try{this[_0x3ac466(0x158)]({'type':_0x59cd01[_0x3ac466(0x102)],'label':_0x427513?.[_0x3ac466(0x14d)]||_0x278e3d,'uiId':_0x5e687b,'resourceId':_0x427513?.[_0x3ac466(0x126)]},!0x0);const _0x3be5d6=this[_0x3ac466(0x12d)][_0x3ac466(0xfd)](this[_0x3ac466(0x15c)],_0x278e3d,_0x427513);this[_0x3ac466(0x168)][_0x3ac466(0xf9)](_0x5e687b,_0x3be5d6[_0x3ac466(0xe4)]);const {id:_0x3636fa}=await _0x3be5d6[_0x3ac466(0xe3)]();this[_0x3ac466(0x168)][_0x3ac466(0xfb)](_0x5e687b),this[_0x3ac466(0x166)]({'type':_0x59cd01[_0x3ac466(0x102)],'id':_0x3636fa,'label':_0x427513?.[_0x3ac466(0x14d)]||_0x278e3d,'uiId':_0x5e687b,'resourceId':_0x427513?.[_0x3ac466(0x126)]},!0x1);}catch(_0x4ebfe){this[_0x3ac466(0x168)][_0x3ac466(0xfb)](_0x5e687b),(_0x4ebfe[_0x3ac466(0xe1)][_0x3ac466(0xe7)](_0x3ac466(0x118))||this[_0x3ac466(0x119)](_0x3ac466(0x10c),{'error':new _0xfc3ea9(_0x3ac466(0x11c),this,{'url':_0x278e3d,'originalError':_0x4ebfe}),'url':_0x278e3d}),this[_0x3ac466(0xf3)](_0x5e687b));}finally{this[_0x3ac466(0x160)](_0x206a93);}}[_0x548e69(0x121)](_0x2de14d){const _0x167ded=_0x548e69;_0x2de14d['id']=_0x2de14d['id']??_0x31d1d9()[_0x167ded(0x15a)](0x0,0x15),this[_0x167ded(0x113)][_0x167ded(0xf9)](_0x2de14d[_0x167ded(0x12c)],_0x2de14d),this[_0x167ded(0x119)](_0x167ded(0xec),{'contextItem':_0x2de14d,'isLoading':!0x1});}async[_0x548e69(0x144)](_0x5b14ac,_0x14c1a7,_0x34dda9){const _0x4909e6=_0x548e69,_0x1ab1ba=this[_0x4909e6(0x12b)][_0x4909e6(0xf0)][_0x4909e6(0x137)](_0x22b2a4=>_0x22b2a4['id']===_0x5b14ac);if(!_0x1ab1ba)return this[_0x4909e6(0x119)](_0x4909e6(0x10c),{'error':new _0xfc3ea9(_0x4909e6(0x10b),this,{'sourceId':_0x5b14ac}),'sourceId':_0x5b14ac}),[];try{const _0x4b08ab=(await _0x1ab1ba[_0x4909e6(0xf7)](_0x14c1a7))[_0x4909e6(0x106)](_0x4c008=>{const _0x4199ca=_0x4909e6,_0x342021=this[_0x4199ca(0xfc)](_0x4c008['id']);return{..._0x4c008,'isInContext':_0x342021};});return _0x1ab1ba[_0x4909e6(0xf5)]=_0x4b08ab,this[_0x4909e6(0x119)](_0x4909e6(0x14f),{'sourceId':_0x5b14ac,'source':_0x1ab1ba,'resources':_0x4b08ab,'uid':_0x34dda9}),_0x4b08ab;}catch(_0x45c2e9){return this[_0x4909e6(0x119)](_0x4909e6(0x10c),{'error':new _0xfc3ea9(_0x4909e6(0x16b),this,{'sourceId':_0x5b14ac,'originalError':_0x45c2e9}),'sourceId':_0x5b14ac,'sourceLabel':_0x1ab1ba[_0x4909e6(0x14d)]}),[];}}async[_0x548e69(0xdc)](_0x451f57,_0x476efe){const _0x1df5db=_0x548e69;if(this[_0x1df5db(0xfc)](_0x476efe['id']))return;let _0x40448f=_0x476efe[_0x1df5db(0x125)];if(!_0x40448f&&_0x451f57[_0x1df5db(0x11e)])try{_0x40448f=await _0x451f57[_0x1df5db(0x11e)](_0x476efe['id']);}catch(_0x1c258e){return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0x141),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'originalError':_0x1c258e}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});}if(_0x40448f)switch(_0x476efe[_0x1df5db(0x148)]){case _0x59cd01[_0x1df5db(0x102)]:if(_0x1df5db(0x13d)!=typeof _0x40448f)return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xe9),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'expectedType':_0x1df5db(0x13d),'actualType':typeof _0x40448f}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});await this[_0x1df5db(0x15f)](_0x40448f,{'label':_0x476efe[_0x1df5db(0x14d)],'resourceId':_0x476efe['id']});break;case _0x59cd01[_0x1df5db(0xf4)]:if(!(_0x40448f instanceof File))return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xe9),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'expectedType':_0x1df5db(0x16d),'actualType':typeof _0x40448f}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});await this[_0x1df5db(0x104)]([_0x40448f],{'label':_0x476efe[_0x1df5db(0x14d)],'resourceId':_0x476efe['id']});break;case _0x59cd01[_0x1df5db(0x13f)]:if(_0x1df5db(0x108)!=typeof _0x40448f||!(_0x1df5db(0x15b)in _0x40448f)||!(_0x1df5db(0x148)in _0x40448f))return void this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xe9),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'expectedType':_0x1df5db(0x107),'actualType':typeof _0x40448f}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});_0x40448f=AIChatContext[_0x1df5db(0x140)](_0x40448f,_0x476efe[_0x1df5db(0x14d)]),await this[_0x1df5db(0x104)]([_0x40448f],{'label':_0x476efe[_0x1df5db(0x14d)],'resourceId':_0x476efe['id']},_0x59cd01[_0x1df5db(0x13f)]);break;case _0x59cd01[_0x1df5db(0x134)]:break;default:this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0xde),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id'],'resourceType':_0x476efe[_0x1df5db(0x148)]}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});}else this[_0x1df5db(0x119)](_0x1df5db(0x10c),{'error':new _0xfc3ea9(_0x1df5db(0x147),this,{'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']}),'resourceId':_0x476efe['id'],'sourceId':_0x451f57['id']});}static[_0x548e69(0x140)](_0x2c2dba,_0x53bd75){const _0x445834=_0x548e69;switch(_0x2c2dba[_0x445834(0x148)]){case _0x26f8d7[_0x445834(0x14b)]:return new File([_0x2c2dba[_0x445834(0x15b)]],_0x53bd75,{'type':_0x445834(0x154)});case _0x26f8d7[_0x445834(0x167)]:return new File([_0x2c2dba[_0x445834(0x15b)]],_0x53bd75,{'type':_0x445834(0xe2)});default:return new File([_0x2c2dba[_0x445834(0x15b)]],_0x53bd75,{'type':_0x445834(0x162)});}}static[_0x548e69(0x153)](_0x23e5c2){const _0x334c32=_0x548e69;switch(_0x23e5c2[_0x334c32(0x148)]){case _0x59cd01[_0x334c32(0xf4)]:return{'type':_0x59cd01[_0x334c32(0xf4)],'id':_0x23e5c2['id']};case _0x59cd01[_0x334c32(0x102)]:return{'type':_0x59cd01[_0x334c32(0x102)],'id':_0x23e5c2['id']};case _0x59cd01[_0x334c32(0xdf)]:return{'type':_0x59cd01[_0x334c32(0xdf)],'id':_0x23e5c2['id'],..._0x23e5c2[_0x334c32(0x146)]?.[_0x334c32(0x143)]&&{'selection':_0x23e5c2[_0x334c32(0x146)]}};case _0x59cd01[_0x334c32(0x13f)]:return{'type':_0x59cd01[_0x334c32(0xf4)],'id':_0x23e5c2['id']};case _0x59cd01[_0x334c32(0x134)]:{const _0x1a856c=_0x23e5c2;return{'type':_0x59cd01[_0x334c32(0x134)],'mcpServerName':_0x1a856c[_0x334c32(0x10f)],'toolName':_0x1a856c[_0x334c32(0x131)],'data':_0x1a856c[_0x334c32(0x125)],'id':_0x1a856c['id']};}default:return null;}}[_0x548e69(0x158)](_0xd6c476,_0x275467=!0x1){const _0x2ae040=_0x548e69;if(this[_0x2ae040(0x113)][_0x2ae040(0xf9)](_0xd6c476[_0x2ae040(0x12c)],_0xd6c476),_0xd6c476[_0x2ae040(0x109)]||this[_0x2ae040(0x119)](_0x2ae040(0xec),{'contextItem':_0xd6c476,'isLoading':_0x275467}),_0x2ae040(0xf1)===_0xd6c476[_0x2ae040(0x12c)]&&this[_0x2ae040(0x12a)](),_0xd6c476[_0x2ae040(0x126)]){const _0x537aeb=this[_0x2ae040(0x10a)](_0xd6c476[_0x2ae040(0x126)]);_0x537aeb&&_0x537aeb[_0x2ae040(0x161)](_0x3b5dfd=>{const _0x4ee846=_0x2ae040;this[_0x4ee846(0x13a)](_0x3b5dfd,_0xd6c476[_0x4ee846(0x126)],!0x0);});}}[_0x548e69(0xf3)](_0x40d3de){const _0xfdab40=_0x548e69,_0x5721c3=this[_0xfdab40(0x113)][_0xfdab40(0xee)](_0x40d3de),_0x59e2b6=this[_0xfdab40(0x168)][_0xfdab40(0xee)](_0x40d3de);if(_0x59e2b6&&(_0x59e2b6[_0xfdab40(0x13c)](),this[_0xfdab40(0x168)][_0xfdab40(0xfb)](_0x40d3de)),_0x5721c3?.[_0xfdab40(0x126)]){const _0x56c75d=this[_0xfdab40(0x10a)](_0x5721c3[_0xfdab40(0x126)]);_0x56c75d&&_0x56c75d[_0xfdab40(0x161)](_0x19a4a6=>{const _0x3f1133=_0xfdab40;this[_0x3f1133(0x13a)](_0x19a4a6,_0x5721c3[_0x3f1133(0x126)],!0x1);});}this[_0xfdab40(0x113)][_0xfdab40(0xfb)](_0x40d3de),this[_0xfdab40(0x119)](_0xfdab40(0xfe),{'uiId':_0x40d3de,'type':_0x5721c3?.[_0xfdab40(0x148)]}),_0xfdab40(0xf1)===_0x40d3de&&this[_0xfdab40(0x12a)]();}[_0x548e69(0x166)](_0x392082,_0x4461f7){const _0x7d2a55=_0x548e69;if(this[_0x7d2a55(0x113)][_0x7d2a55(0x130)](_0x392082[_0x7d2a55(0x12c)])&&(this[_0x7d2a55(0x113)][_0x7d2a55(0xf9)](_0x392082[_0x7d2a55(0x12c)],_0x392082),this[_0x7d2a55(0x119)](_0x7d2a55(0x103),{'contextItem':_0x392082,'isLoading':_0x4461f7}),_0x392082[_0x7d2a55(0x126)])){const _0x1f7406=this[_0x7d2a55(0x10a)](_0x392082[_0x7d2a55(0x126)]);_0x1f7406&&_0x1f7406[_0x7d2a55(0x161)](_0x15151a=>{const _0x1dbe8a=_0x7d2a55;this[_0x1dbe8a(0x13a)](_0x15151a,_0x392082[_0x1dbe8a(0x126)],!0x0);});}}[_0x548e69(0x169)](_0x158528){const _0x51c6b1=_0x548e69;this[_0x51c6b1(0xeb)][_0x51c6b1(0xf9)](_0x158528[_0x51c6b1(0x12c)],_0x158528);}[_0x548e69(0x155)](){const _0xf47c06=_0x548e69;this[_0xf47c06(0x12b)]={'document':{'enabled':!0x1!==this[_0xf47c06(0x127)]?.[_0xf47c06(0x13e)]?.[_0xf47c06(0x15e)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xf47c06(0x127)]?.[_0xf47c06(0x116)]?.[_0xf47c06(0x15e)]},'files':{'enabled':!0x1!==this[_0xf47c06(0x127)]?.[_0xf47c06(0x124)]?.[_0xf47c06(0x15e)]},'sources':this[_0xf47c06(0x133)](),'customItems':this[_0xf47c06(0x127)]?.[_0xf47c06(0xe5)]?.[_0xf47c06(0x106)](_0x59fc00=>({..._0x59fc00,'enabled':!0x0}))??[]},this[_0xf47c06(0x119)](_0xf47c06(0x110),{'options':this[_0xf47c06(0x12b)]});}[_0x548e69(0x133)](){const _0x25f565=_0x548e69;return this[_0x25f565(0x127)]?.[_0x25f565(0xf0)]?.[_0x25f565(0x106)](_0x208836=>({..._0x208836,'resources':[]}))??[];}[_0x548e69(0x12a)](){const _0x24eb7f=_0x548e69,_0x5d6844=this[_0x24eb7f(0x16a)]()||this[_0x24eb7f(0x111)]();this[_0x24eb7f(0x12b)][_0x24eb7f(0x13e)][_0x24eb7f(0x159)]=_0x5d6844,this[_0x24eb7f(0x119)](_0x24eb7f(0x110),{'options':this[_0x24eb7f(0x12b)]});}[_0x548e69(0xfc)](_0x394606){const _0x5009e7=_0x548e69;for(const _0x17a2a7 of this[_0x5009e7(0x113)][_0x5009e7(0x157)]())if(_0x17a2a7[_0x5009e7(0x126)]===_0x394606)return!0x0;for(const _0x463a93 of this[_0x5009e7(0xeb)][_0x5009e7(0x157)]())if(_0x463a93[_0x5009e7(0x126)]===_0x394606)return!0x0;return!0x1;}[_0x548e69(0x10a)](_0x5da460){const _0x56e114=_0x548e69,_0x1d247d=[];for(const _0x4f83df of this[_0x56e114(0x12b)][_0x56e114(0xf0)]){_0x4f83df[_0x56e114(0xf5)][_0x56e114(0x137)](_0x4143c8=>_0x4143c8['id']===_0x5da460)&&_0x1d247d[_0x56e114(0x12f)](_0x4f83df['id']);}return 0x0===_0x1d247d[_0x56e114(0x143)]?null:_0x1d247d;}[_0x548e69(0x13a)](_0xe57caa,_0x1db2bf,_0xa41eca){const _0x521f6d=_0x548e69,_0x1be385=this[_0x521f6d(0x12b)][_0x521f6d(0xf0)][_0x521f6d(0x137)](_0x282ed5=>_0x282ed5['id']===_0xe57caa);if(!_0x1be385)return;const _0xc3aa46=_0x1be385[_0x521f6d(0xf5)][_0x521f6d(0x137)](_0x3b2a60=>_0x3b2a60['id']===_0x1db2bf);_0xc3aa46&&(_0xc3aa46[_0x521f6d(0x122)]=_0xa41eca,this[_0x521f6d(0x119)](_0x521f6d(0x145),{'sourceId':_0xe57caa,'resourceId':_0x1db2bf,'isInContext':_0xa41eca}));}[_0x548e69(0x156)](_0x4d7dd7){const _0x4a5505=_0x548e69;this[_0x4a5505(0x115)][_0x4a5505(0xf9)](_0x4d7dd7,!0x0),this[_0x4a5505(0x115)][_0x4a5505(0x136)]&&this[_0x4a5505(0x119)](_0x4a5505(0x15d),{'isUploadInProgress':!0x0});}[_0x548e69(0x160)](_0x5af813){const _0x41f139=_0x548e69;this[_0x41f139(0x115)][_0x41f139(0xfb)](_0x5af813),0x0===this[_0x41f139(0x115)][_0x41f139(0x136)]&&this[_0x41f139(0x119)](_0x41f139(0x15d),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x40aec8=_0x11b0;(function(_0xa85e89,_0x5690e4){const _0x48602d=_0x11b0,_0x44f09d=_0xa85e89();while(!![]){try{const _0x33fb12=-parseInt(_0x48602d(0x178))/0x1*(parseInt(_0x48602d(0x1e5))/0x2)+-parseInt(_0x48602d(0x1ae))/0x3*(parseInt(_0x48602d(0x1a5))/0x4)+parseInt(_0x48602d(0x160))/0x5*(parseInt(_0x48602d(0x1c8))/0x6)+-parseInt(_0x48602d(0x15d))/0x7+parseInt(_0x48602d(0x183))/0x8*(-parseInt(_0x48602d(0x194))/0x9)+parseInt(_0x48602d(0x187))/0xa+parseInt(_0x48602d(0x1ac))/0xb;if(_0x33fb12===_0x5690e4)break;else _0x44f09d['push'](_0x44f09d['shift']());}catch(_0x36c923){_0x44f09d['push'](_0x44f09d['shift']());}}}(_0x1229,0x31a48));import{CKEditorError as _0x10849a,ObservableMixin as _0x1e0c70,uid as _0x5587aa}from'ckeditor5/src/utils.js';function _0x1229(){const _0x182f86=['data','addToolItemToContext','ai-request-aborted','find','41266QCYEzH','_connector','text/html','code','uploadProgressChanged','addUrlToContext','ai-chat-url-upload-failed','files','isInContext','_getCustomSourcesInitialState','urls','push','_mapContextItemToRequestData','sourceResourcesLoaded','2301320lXIzFL','ai-chat-resource-no-data','_addToConversationContextItem','25545riTBbu','loadSourceResources','mapContextItemsToRequestData','getResources','ai-chat-document-upload-failed','length','label','filter','current-document','contextItemAdded','ai-chat-resource-load-failed','customItems','mcpServerName','ai-chat-source-not-found','substring','string','updateCurrentDocument','FILE','sources','enabled','Current\x20document','abortController','file-','files-','19fxFmDz','_setAddContextOptionsDefaultState','contextItemRemoved','forEach','isCurrentDocumentInConversation','ai-chat-context-invalid-data','SELECTION','hidden','delete','getDocument','isCurrentDocumentInContext','8cPfsxm','url','MARKDOWN','stack','756840SNDrEu','message','isHidden','type','object\x20with\x20content\x20and\x20type\x20properties','_finishUploadOperation','addSelectionToContext','attributes','from','URL','resourceStateChanged','getId','addCurrentDocumentToContext','1176183mScUcK','removeSelectionFromContext','url-','_updateResourceInContextState','abort','contextSent','_isResourceInContext','text/markdown','addResourceToContext','object','_findSourceIdsByResourceId','TOOL','getData','_conversationContextItems','fetchDocument','init','set','29152SVGmsx','_addContextOptionsState','_removeContextItem','_pendingContextItems','populateFromMessage','_createContextItemFromContent','get','7725751FZZYCw','map','48ntYxBe','_finishContextItemLoading','document','toolName','_ongoingUploads','ai-chat-source-resources-load-failed','_config','isSelectionInContext','File','TEXT','DOCUMENT','all','addToConversationContext','has','_ownerId','start','removeFromContext','size','addFilesToContext','uiId','resourceId','resources','contextItemLoadingEnded','_toggleAddCurrentDocumentOptionVisibility','_ongoingUploadOperations','content','462uqGuat','addContextOptionsChanged','name','ai-chat-context-unsupported-type','end','_startUploadOperation','startsWith','uploadDocument','ai-chat-file-upload-failed','_convertTextResourceToFile','fire','error','version','text/plain','HTML','getPendingContextItems','isReadOnly','sessionId','uploadFile','_addContextItem','selection','getSentContextItems','uploadUrl','values','clearPendingContextItems'];_0x1229=function(){return _0x182f86;};return _0x1229();}import{AIContextItemType as _0x224537,AIContextTextResourceType as _0x463453}from'../../aicore/model/aicontext.js';import{escape as _0x59d4bc}from'es-toolkit/compat';import{errorsMap as _0x9d15e}from'../../errorsmap.js';function _0x11b0(_0x1b65f8,_0x4d0704){const _0x1229fe=_0x1229();return _0x11b0=function(_0x11b09e,_0x2dc57d){_0x11b09e=_0x11b09e-0x156;let _0x22ae80=_0x1229fe[_0x11b09e];return _0x22ae80;},_0x11b0(_0x1b65f8,_0x4d0704);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x40aec8(0x169),_0x40aec8(0x17a),_0x40aec8(0x1c4),_0x40aec8(0x199),_0x40aec8(0x1d3),_0x40aec8(0x1c9),_0x40aec8(0x15c),_0x40aec8(0x191),_0x40aec8(0x1e9)];export class AIChatContext extends _0x1e0c70(){[_0x40aec8(0x1e6)];[_0x40aec8(0x1b4)];[_0x40aec8(0x1bc)];constructor({connector:_0x43cdef,config:_0xfb479a,ownerId:_0x30205c}){const _0xda2303=_0x40aec8;super(),this[_0xda2303(0x1e6)]=_0x43cdef,this[_0xda2303(0x1b4)]=_0xfb479a,this[_0xda2303(0x1bc)]=_0x30205c;}[_0x40aec8(0x1a3)](){const _0xf73e35=_0x40aec8;this[_0xf73e35(0x1a8)]=new Map(),this[_0xf73e35(0x1a1)]=new Map(),this[_0xf73e35(0x1b2)]=new Map(),this[_0xf73e35(0x1c6)]=new Map(),this[_0xf73e35(0x179)]();}[_0x40aec8(0x1d7)](){const _0x2c9f88=_0x40aec8;return this[_0x2c9f88(0x1a8)];}async[_0x40aec8(0x1a9)](_0x587a38){const _0xf96e54=_0x40aec8,_0xbd71f9=await this[_0xf96e54(0x1aa)](_0x587a38);return this[_0xf96e54(0x15f)](_0xbd71f9),_0xf96e54(0x168)===_0xbd71f9[_0xf96e54(0x1c1)]&&this[_0xf96e54(0x1c5)](),_0xbd71f9;}async[_0x40aec8(0x1aa)](_0x4ac3e7){const _0xd26843=_0x40aec8;if(_0x4ac3e7[_0xd26843(0x18a)]===_0x224537[_0xd26843(0x1b8)]){const _0x45f433=await this[_0xd26843(0x1e6)][_0xd26843(0x1a2)](this[_0xd26843(0x1bc)],_0x4ac3e7['id'])[_0xd26843(0x181)]();return{'id':_0xd26843(0x168),'uiId':_0xd26843(0x168),'label':_0xd26843(0x174),'type':_0x4ac3e7[_0xd26843(0x18a)],'content':_0x45f433[_0xd26843(0x1c7)],'hidden':this[_0xd26843(0x1a1)][_0xd26843(0x1bb)](_0xd26843(0x168)),'version':_0x45f433[_0xd26843(0x18e)]?.[_0xd26843(0x1d4)],'sessionId':_0x45f433[_0xd26843(0x18e)]?.[_0xd26843(0x1d9)]};}if(_0x4ac3e7[_0xd26843(0x18a)]===_0x224537[_0xd26843(0x19f)])return{'id':_0x4ac3e7['id'],'uiId':_0x4ac3e7['id'],'label':_0x4ac3e7[_0xd26843(0x1e1)]?.[_0xd26843(0x166)]||_0x4ac3e7['id'],'type':_0x224537[_0xd26843(0x19f)],'mcpServerName':_0x4ac3e7[_0xd26843(0x16c)],'toolName':_0x4ac3e7[_0xd26843(0x1b1)],'data':_0x4ac3e7[_0xd26843(0x1e1)]||{}};return{'id':_0x4ac3e7['id'],'uiId':_0x4ac3e7['id'],'label':_0x4ac3e7[_0xd26843(0x18e)]?.[_0xd26843(0x166)]||_0x4ac3e7[_0xd26843(0x1ca)]||_0x4ac3e7[_0xd26843(0x184)]||_0x4ac3e7['id'],'type':_0x4ac3e7[_0xd26843(0x18a)],..._0x4ac3e7?.[_0xd26843(0x18e)]?.[_0xd26843(0x1c2)]?{'resourceId':_0x4ac3e7[_0xd26843(0x18e)]?.[_0xd26843(0x1c2)]}:{}};}[_0x40aec8(0x1dd)](){const _0x2f6e04=_0x40aec8;return new Map(this[_0x2f6e04(0x1a1)]);}[_0x40aec8(0x1be)](_0x2e7e9e){const _0x49ffbc=_0x40aec8,_0x1a4fbf=this[_0x49ffbc(0x1a8)][_0x49ffbc(0x1ab)](_0x2e7e9e);_0x1a4fbf?.[_0x49ffbc(0x1d8)]||this[_0x49ffbc(0x1a7)](_0x2e7e9e);}[_0x40aec8(0x1e0)](){const _0x5d701d=_0x40aec8;if(0x0===this[_0x5d701d(0x1a8)][_0x5d701d(0x1bf)])return;for(const _0x21f1c3 of this[_0x5d701d(0x1a8)][_0x5d701d(0x1df)]())this[_0x5d701d(0x1a7)](_0x21f1c3[_0x5d701d(0x1c1)]);const _0x1015d0=this[_0x5d701d(0x1a1)][_0x5d701d(0x1ab)](_0x5d701d(0x168))||this[_0x5d701d(0x1a8)][_0x5d701d(0x1ab)](_0x5d701d(0x168));_0x1015d0&&this[_0x5d701d(0x1db)]({..._0x1015d0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x40aec8(0x1ba)](_0x34e582){const _0x4e681e=_0x40aec8;for(const _0x5a78c8 of _0x34e582[_0x4e681e(0x1df)]())this[_0x4e681e(0x15f)](_0x5a78c8);this[_0x4e681e(0x1e0)](),this[_0x4e681e(0x1d2)](_0x4e681e(0x199),{'contextItems':Array[_0x4e681e(0x18f)](this[_0x4e681e(0x1dd)]()[_0x4e681e(0x1df)]())});}[_0x40aec8(0x182)](){const _0x27cd77=_0x40aec8;return this[_0x27cd77(0x1a8)][_0x27cd77(0x1bb)](_0x27cd77(0x168));}[_0x40aec8(0x1b5)](){const _0x2bdadc=_0x40aec8;return this[_0x2bdadc(0x1a8)][_0x2bdadc(0x1bb)](_0x2bdadc(0x1dc));}[_0x40aec8(0x17c)](){const _0x5362d5=_0x40aec8;return this[_0x5362d5(0x1a1)][_0x5362d5(0x1bb)](_0x5362d5(0x168));}static[_0x40aec8(0x162)](_0x5db8e3){const _0x4b3135=_0x40aec8;return Array[_0x4b3135(0x18f)](_0x5db8e3[_0x4b3135(0x1df)]())[_0x4b3135(0x1ad)](_0xbf2d3e=>this[_0x4b3135(0x15b)](_0xbf2d3e))[_0x4b3135(0x167)](_0x3d7129=>null!==_0x3d7129);}async[_0x40aec8(0x1c0)](_0x2553b1,_0x299e4b,_0x2905ce=_0x224537[_0x40aec8(0x171)]){const _0xb92b89=_0x40aec8,_0x347493=_0xb92b89(0x177)+_0x5587aa();this[_0xb92b89(0x1cd)](_0x347493);try{await Promise[_0xb92b89(0x1b9)](_0x2553b1[_0xb92b89(0x1ad)](async _0x54fada=>{const _0x58bbfb=_0xb92b89,_0x55c5b4=_0x58bbfb(0x176)+_0x5587aa(),_0x2531d8=_0x59d4bc(_0x54fada[_0x58bbfb(0x1ca)]);try{this[_0x58bbfb(0x1db)]({'type':_0x2905ce,'label':_0x299e4b?.[_0x58bbfb(0x166)]||_0x2531d8,'uiId':_0x55c5b4,'resourceId':_0x299e4b?.[_0x58bbfb(0x1c2)]},!0x0);const _0x2303ad=this[_0x58bbfb(0x1e6)][_0x58bbfb(0x1da)](this[_0x58bbfb(0x1bc)],_0x54fada,_0x299e4b);this[_0x58bbfb(0x1b2)][_0x58bbfb(0x1a4)](_0x55c5b4,_0x2303ad[_0x58bbfb(0x175)]);const {id:_0x5937c5}=await _0x2303ad[_0x58bbfb(0x192)]();this[_0x58bbfb(0x1b2)][_0x58bbfb(0x180)](_0x55c5b4),this[_0x58bbfb(0x1af)]({'type':_0x2905ce,'id':_0x5937c5,'label':_0x299e4b?.[_0x58bbfb(0x166)]||_0x2531d8,'uiId':_0x55c5b4,'resourceId':_0x299e4b?.[_0x58bbfb(0x1c2)]},!0x1);}catch(_0x5e5f34){this[_0x58bbfb(0x1b2)][_0x58bbfb(0x180)](_0x55c5b4);if(!(_0x5e5f34 instanceof _0x10849a&&_0x5e5f34[_0x58bbfb(0x188)][_0x58bbfb(0x1ce)](_0x58bbfb(0x1e3)))){const _0x5d070a=_0x9d15e[_0x58bbfb(0x1ab)](_0x5e5f34[_0x58bbfb(0x1e8)])||_0x58bbfb(0x1d0),_0x2b6612=new _0x10849a(_0x5d070a,null,{'fileName':_0x2531d8,..._0x5e5f34});_0x2b6612[_0x58bbfb(0x186)]=_0x5e5f34[_0x58bbfb(0x186)],this[_0x58bbfb(0x1d2)](_0x58bbfb(0x1d3),{'error':_0x2b6612});}this[_0x58bbfb(0x1a7)](_0x55c5b4);}}));}finally{this[_0xb92b89(0x18c)](_0x347493);}}[_0x40aec8(0x193)](_0x5d5811){const _0x124cb6=_0x40aec8;if(this[_0x124cb6(0x182)]()||!this[_0x124cb6(0x1a6)][_0x124cb6(0x1b0)][_0x124cb6(0x173)])return;const _0x4c60bb={'type':_0x224537[_0x124cb6(0x1b8)],'uiId':_0x124cb6(0x168),'label':_0x5d5811,'isReadOnly':this[_0x124cb6(0x1a1)][_0x124cb6(0x1bb)](_0x124cb6(0x168)),'hidden':this[_0x124cb6(0x1a1)][_0x124cb6(0x1bb)](_0x124cb6(0x168))};this[_0x124cb6(0x1db)](_0x4c60bb);}async[_0x40aec8(0x170)](_0x561230,_0x2fc8bb,_0x4049d1,_0xe75f78){const _0x11463e=_0x40aec8,_0x309ac6=this[_0x11463e(0x1a8)][_0x11463e(0x1ab)](_0x11463e(0x168));if(_0x309ac6&&_0x561230){_0x309ac6[_0x11463e(0x1dc)]=_0xe75f78?_0xe75f78[_0x11463e(0x1ad)](_0x27eb0=>({'start':_0x27eb0[_0x11463e(0x1bd)],'end':_0x27eb0[_0x11463e(0x1cc)]})):[];try{if(_0x309ac6[_0x11463e(0x1d4)]===_0x2fc8bb)return;const {id:_0x5e3f26}=await this[_0x11463e(0x1e6)][_0x11463e(0x1cf)](this[_0x11463e(0x1bc)],_0x561230,{'version':_0x2fc8bb,'sessionId':_0x4049d1})[_0x11463e(0x192)]();_0x309ac6['id']=_0x5e3f26,_0x309ac6[_0x11463e(0x1c7)]=_0x561230,_0x309ac6[_0x11463e(0x1d4)]=_0x2fc8bb,_0x309ac6[_0x11463e(0x1d9)]=_0x4049d1;}catch(_0x166e5d){const _0x13b2ed=new _0x10849a(_0x11463e(0x164),null);_0x13b2ed[_0x11463e(0x186)]=_0x166e5d[_0x11463e(0x186)],this[_0x11463e(0x1d2)](_0x11463e(0x1d3),{'error':_0x13b2ed});}}}[_0x40aec8(0x18d)](_0x4571ed){const _0x23880e=_0x40aec8;this[_0x23880e(0x1db)]({'type':_0x224537[_0x23880e(0x17e)],'label':_0x4571ed,'uiId':_0x23880e(0x1dc),'content':_0x4571ed});}[_0x40aec8(0x195)](){const _0x2d0283=_0x40aec8;this[_0x2d0283(0x1a7)](_0x2d0283(0x1dc));}async[_0x40aec8(0x1ea)](_0x45aac1,_0x1b41cb){const _0x5362ee=_0x40aec8,_0x10ac90=_0x5362ee(0x196)+_0x5587aa();this[_0x5362ee(0x1cd)](_0x10ac90);const _0x36caf8=_0x5362ee(0x196)+_0x5587aa();try{this[_0x5362ee(0x1db)]({'type':_0x224537[_0x5362ee(0x190)],'label':_0x1b41cb?.[_0x5362ee(0x166)]||_0x45aac1,'uiId':_0x36caf8,'resourceId':_0x1b41cb?.[_0x5362ee(0x1c2)]},!0x0);const _0xcadb48=this[_0x5362ee(0x1e6)][_0x5362ee(0x1de)](this[_0x5362ee(0x1bc)],_0x45aac1,_0x1b41cb);this[_0x5362ee(0x1b2)][_0x5362ee(0x1a4)](_0x36caf8,_0xcadb48[_0x5362ee(0x175)]);const {id:_0x1a3fc6}=await _0xcadb48[_0x5362ee(0x192)]();this[_0x5362ee(0x1b2)][_0x5362ee(0x180)](_0x36caf8),this[_0x5362ee(0x1af)]({'type':_0x224537[_0x5362ee(0x190)],'id':_0x1a3fc6,'label':_0x1b41cb?.[_0x5362ee(0x166)]||_0x45aac1,'uiId':_0x36caf8,'resourceId':_0x1b41cb?.[_0x5362ee(0x1c2)]},!0x1);}catch(_0x1d8c63){this[_0x5362ee(0x1b2)][_0x5362ee(0x180)](_0x36caf8),(_0x1d8c63[_0x5362ee(0x188)][_0x5362ee(0x1ce)](_0x5362ee(0x1e3))||this[_0x5362ee(0x1d2)](_0x5362ee(0x1d3),{'error':new _0x10849a(_0x5362ee(0x1eb),this,{'url':_0x45aac1,'originalError':_0x1d8c63}),'url':_0x45aac1}),this[_0x5362ee(0x1a7)](_0x36caf8));}finally{this[_0x5362ee(0x18c)](_0x10ac90);}}[_0x40aec8(0x1e2)](_0x46eeb4){const _0x375e08=_0x40aec8;_0x46eeb4['id']=_0x46eeb4['id']??_0x5587aa()[_0x375e08(0x16e)](0x0,0x15),this[_0x375e08(0x1a8)][_0x375e08(0x1a4)](_0x46eeb4[_0x375e08(0x1c1)],_0x46eeb4),this[_0x375e08(0x1d2)](_0x375e08(0x169),{'contextItem':_0x46eeb4,'isLoading':!0x1});}async[_0x40aec8(0x161)](_0x177a7b,_0x3f801d,_0x1aacf9){const _0x214b00=_0x40aec8,_0x167868=this[_0x214b00(0x1a6)][_0x214b00(0x172)][_0x214b00(0x1e4)](_0x3c1895=>_0x3c1895['id']===_0x177a7b);if(!_0x167868)return this[_0x214b00(0x1d2)](_0x214b00(0x1d3),{'error':new _0x10849a(_0x214b00(0x16d),this,{'sourceId':_0x177a7b}),'sourceId':_0x177a7b}),[];try{const _0x369874=(await _0x167868[_0x214b00(0x163)](_0x3f801d))[_0x214b00(0x1ad)](_0x450ce0=>{const _0x4fbb5f=_0x214b00,_0x39ec8a=this[_0x4fbb5f(0x19a)](_0x450ce0['id']);return{..._0x450ce0,'isInContext':_0x39ec8a};});return _0x167868[_0x214b00(0x1c3)]=_0x369874,this[_0x214b00(0x1d2)](_0x214b00(0x15c),{'sourceId':_0x177a7b,'source':_0x167868,'resources':_0x369874,'uid':_0x1aacf9}),_0x369874;}catch(_0x2651cb){return this[_0x214b00(0x1d2)](_0x214b00(0x1d3),{'error':new _0x10849a(_0x214b00(0x1b3),this,{'sourceId':_0x177a7b,'originalError':_0x2651cb}),'sourceId':_0x177a7b,'sourceLabel':_0x167868[_0x214b00(0x166)]}),[];}}async[_0x40aec8(0x19c)](_0x3b9a8f,_0x184091){const _0x275a78=_0x40aec8;if(this[_0x275a78(0x19a)](_0x184091['id']))return;let _0x3a5e45=_0x184091[_0x275a78(0x1e1)];if(!_0x3a5e45&&_0x3b9a8f[_0x275a78(0x1a0)])try{_0x3a5e45=await _0x3b9a8f[_0x275a78(0x1a0)](_0x184091['id']);}catch(_0x360dab){return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x16a),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'originalError':_0x360dab}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});}if(_0x3a5e45)switch(_0x184091[_0x275a78(0x18a)]){case _0x224537[_0x275a78(0x190)]:if(_0x275a78(0x16f)!=typeof _0x3a5e45)return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x17d),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'expectedType':_0x275a78(0x16f),'actualType':typeof _0x3a5e45}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});await this[_0x275a78(0x1ea)](_0x3a5e45,{'label':_0x184091[_0x275a78(0x166)],'resourceId':_0x184091['id']});break;case _0x224537[_0x275a78(0x171)]:if(!(_0x3a5e45 instanceof File))return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x17d),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'expectedType':_0x275a78(0x1b6),'actualType':typeof _0x3a5e45}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});await this[_0x275a78(0x1c0)]([_0x3a5e45],{'label':_0x184091[_0x275a78(0x166)],'resourceId':_0x184091['id']});break;case _0x224537[_0x275a78(0x1b7)]:if(_0x275a78(0x19d)!=typeof _0x3a5e45||!(_0x275a78(0x1c7)in _0x3a5e45)||!(_0x275a78(0x18a)in _0x3a5e45))return void this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x17d),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'expectedType':_0x275a78(0x18b),'actualType':typeof _0x3a5e45}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});_0x3a5e45=AIChatContext[_0x275a78(0x1d1)](_0x3a5e45,_0x184091[_0x275a78(0x166)]),await this[_0x275a78(0x1c0)]([_0x3a5e45],{'label':_0x184091[_0x275a78(0x166)],'resourceId':_0x184091['id']},_0x224537[_0x275a78(0x1b7)]);break;case _0x224537[_0x275a78(0x19f)]:break;default:this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x1cb),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id'],'resourceType':_0x184091[_0x275a78(0x18a)]}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});}else this[_0x275a78(0x1d2)](_0x275a78(0x1d3),{'error':new _0x10849a(_0x275a78(0x15e),this,{'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']}),'resourceId':_0x184091['id'],'sourceId':_0x3b9a8f['id']});}static[_0x40aec8(0x1d1)](_0x20042f,_0x58295b){const _0x594ce2=_0x40aec8;switch(_0x20042f[_0x594ce2(0x18a)]){case _0x463453[_0x594ce2(0x185)]:return new File([_0x20042f[_0x594ce2(0x1c7)]],_0x58295b,{'type':_0x594ce2(0x19b)});case _0x463453[_0x594ce2(0x1d6)]:return new File([_0x20042f[_0x594ce2(0x1c7)]],_0x58295b,{'type':_0x594ce2(0x1e7)});default:return new File([_0x20042f[_0x594ce2(0x1c7)]],_0x58295b,{'type':_0x594ce2(0x1d5)});}}static[_0x40aec8(0x15b)](_0x407f6f){const _0x244a50=_0x40aec8;switch(_0x407f6f[_0x244a50(0x18a)]){case _0x224537[_0x244a50(0x171)]:return{'type':_0x224537[_0x244a50(0x171)],'id':_0x407f6f['id']};case _0x224537[_0x244a50(0x190)]:return{'type':_0x224537[_0x244a50(0x190)],'id':_0x407f6f['id']};case _0x224537[_0x244a50(0x1b8)]:return{'type':_0x224537[_0x244a50(0x1b8)],'id':_0x407f6f['id'],..._0x407f6f[_0x244a50(0x1dc)]?.[_0x244a50(0x165)]&&{'selection':_0x407f6f[_0x244a50(0x1dc)]}};case _0x224537[_0x244a50(0x1b7)]:return{'type':_0x224537[_0x244a50(0x171)],'id':_0x407f6f['id']};case _0x224537[_0x244a50(0x19f)]:{const _0x14a579=_0x407f6f;return{'type':_0x224537[_0x244a50(0x19f)],'mcpServerName':_0x14a579[_0x244a50(0x16c)],'toolName':_0x14a579[_0x244a50(0x1b1)],'data':_0x14a579[_0x244a50(0x1e1)],'id':_0x14a579['id']};}default:return null;}}[_0x40aec8(0x1db)](_0x85b675,_0x30de17=!0x1){const _0x4c44c6=_0x40aec8;if(this[_0x4c44c6(0x1a8)][_0x4c44c6(0x1a4)](_0x85b675[_0x4c44c6(0x1c1)],_0x85b675),_0x85b675[_0x4c44c6(0x17f)]||this[_0x4c44c6(0x1d2)](_0x4c44c6(0x169),{'contextItem':_0x85b675,'isLoading':_0x30de17}),_0x4c44c6(0x168)===_0x85b675[_0x4c44c6(0x1c1)]&&this[_0x4c44c6(0x1c5)](),_0x85b675[_0x4c44c6(0x1c2)]){const _0x465a20=this[_0x4c44c6(0x19e)](_0x85b675[_0x4c44c6(0x1c2)]);_0x465a20&&_0x465a20[_0x4c44c6(0x17b)](_0x294825=>{const _0x5d8a96=_0x4c44c6;this[_0x5d8a96(0x197)](_0x294825,_0x85b675[_0x5d8a96(0x1c2)],!0x0);});}}[_0x40aec8(0x1a7)](_0x20e734){const _0xd59b7d=_0x40aec8,_0x275b92=this[_0xd59b7d(0x1a8)][_0xd59b7d(0x1ab)](_0x20e734),_0x33b175=this[_0xd59b7d(0x1b2)][_0xd59b7d(0x1ab)](_0x20e734);if(_0x33b175&&(_0x33b175[_0xd59b7d(0x198)](),this[_0xd59b7d(0x1b2)][_0xd59b7d(0x180)](_0x20e734)),_0x275b92?.[_0xd59b7d(0x1c2)]){const _0xfc71e5=this[_0xd59b7d(0x19e)](_0x275b92[_0xd59b7d(0x1c2)]);_0xfc71e5&&_0xfc71e5[_0xd59b7d(0x17b)](_0x29aa58=>{const _0x46b5c3=_0xd59b7d;this[_0x46b5c3(0x197)](_0x29aa58,_0x275b92[_0x46b5c3(0x1c2)],!0x1);});}this[_0xd59b7d(0x1a8)][_0xd59b7d(0x180)](_0x20e734),this[_0xd59b7d(0x1d2)](_0xd59b7d(0x17a),{'uiId':_0x20e734,'type':_0x275b92?.[_0xd59b7d(0x18a)]}),_0xd59b7d(0x168)===_0x20e734&&this[_0xd59b7d(0x1c5)]();}[_0x40aec8(0x1af)](_0x51bbb2,_0x44ccda){const _0x372397=_0x40aec8;if(this[_0x372397(0x1a8)][_0x372397(0x1bb)](_0x51bbb2[_0x372397(0x1c1)])&&(this[_0x372397(0x1a8)][_0x372397(0x1a4)](_0x51bbb2[_0x372397(0x1c1)],_0x51bbb2),this[_0x372397(0x1d2)](_0x372397(0x1c4),{'contextItem':_0x51bbb2,'isLoading':_0x44ccda}),_0x51bbb2[_0x372397(0x1c2)])){const _0xf0e911=this[_0x372397(0x19e)](_0x51bbb2[_0x372397(0x1c2)]);_0xf0e911&&_0xf0e911[_0x372397(0x17b)](_0x2cf6ee=>{const _0x123790=_0x372397;this[_0x123790(0x197)](_0x2cf6ee,_0x51bbb2[_0x123790(0x1c2)],!0x0);});}}[_0x40aec8(0x15f)](_0x1ae5a0){const _0x2f3cb0=_0x40aec8;this[_0x2f3cb0(0x1a1)][_0x2f3cb0(0x1a4)](_0x1ae5a0[_0x2f3cb0(0x1c1)],_0x1ae5a0);}[_0x40aec8(0x179)](){const _0x161c7c=_0x40aec8;this[_0x161c7c(0x1a6)]={'document':{'enabled':!0x1!==this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x1b0)]?.[_0x161c7c(0x173)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x159)]?.[_0x161c7c(0x173)]},'files':{'enabled':!0x1!==this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x156)]?.[_0x161c7c(0x173)]},'sources':this[_0x161c7c(0x158)](),'customItems':this[_0x161c7c(0x1b4)]?.[_0x161c7c(0x16b)]?.[_0x161c7c(0x1ad)](_0x3833f5=>({..._0x3833f5,'enabled':!0x0}))??[]},this[_0x161c7c(0x1d2)](_0x161c7c(0x1c9),{'options':this[_0x161c7c(0x1a6)]});}[_0x40aec8(0x158)](){const _0x2ce3ae=_0x40aec8;return this[_0x2ce3ae(0x1b4)]?.[_0x2ce3ae(0x172)]?.[_0x2ce3ae(0x1ad)](_0xa95440=>({..._0xa95440,'resources':[]}))??[];}[_0x40aec8(0x1c5)](){const _0x10b27b=_0x40aec8,_0x383895=this[_0x10b27b(0x182)]()||this[_0x10b27b(0x17c)]();this[_0x10b27b(0x1a6)][_0x10b27b(0x1b0)][_0x10b27b(0x189)]=_0x383895,this[_0x10b27b(0x1d2)](_0x10b27b(0x1c9),{'options':this[_0x10b27b(0x1a6)]});}[_0x40aec8(0x19a)](_0x343e50){const _0x21aa04=_0x40aec8;for(const _0x2eb98e of this[_0x21aa04(0x1a8)][_0x21aa04(0x1df)]())if(_0x2eb98e[_0x21aa04(0x1c2)]===_0x343e50)return!0x0;for(const _0x32b62d of this[_0x21aa04(0x1a1)][_0x21aa04(0x1df)]())if(_0x32b62d[_0x21aa04(0x1c2)]===_0x343e50)return!0x0;return!0x1;}[_0x40aec8(0x19e)](_0x57b931){const _0x8e8a77=_0x40aec8,_0x383439=[];for(const _0x52d27b of this[_0x8e8a77(0x1a6)][_0x8e8a77(0x172)]){_0x52d27b[_0x8e8a77(0x1c3)][_0x8e8a77(0x1e4)](_0x544971=>_0x544971['id']===_0x57b931)&&_0x383439[_0x8e8a77(0x15a)](_0x52d27b['id']);}return 0x0===_0x383439[_0x8e8a77(0x165)]?null:_0x383439;}[_0x40aec8(0x197)](_0xcdd705,_0x2c77f4,_0x375b7b){const _0x1c6d02=_0x40aec8,_0x159ea8=this[_0x1c6d02(0x1a6)][_0x1c6d02(0x172)][_0x1c6d02(0x1e4)](_0x30e283=>_0x30e283['id']===_0xcdd705);if(!_0x159ea8)return;const _0x830f10=_0x159ea8[_0x1c6d02(0x1c3)][_0x1c6d02(0x1e4)](_0x396410=>_0x396410['id']===_0x2c77f4);_0x830f10&&(_0x830f10[_0x1c6d02(0x157)]=_0x375b7b,this[_0x1c6d02(0x1d2)](_0x1c6d02(0x191),{'sourceId':_0xcdd705,'resourceId':_0x2c77f4,'isInContext':_0x375b7b}));}[_0x40aec8(0x1cd)](_0x598da2){const _0x2c0163=_0x40aec8;this[_0x2c0163(0x1c6)][_0x2c0163(0x1a4)](_0x598da2,!0x0),this[_0x2c0163(0x1c6)][_0x2c0163(0x1bf)]&&this[_0x2c0163(0x1d2)](_0x2c0163(0x1e9),{'isUploadInProgress':!0x0});}[_0x40aec8(0x18c)](_0x2208af){const _0x2deaa2=_0x40aec8;this[_0x2deaa2(0x1c6)][_0x2deaa2(0x180)](_0x2208af),0x0===this[_0x2deaa2(0x1c6)][_0x2deaa2(0x1bf)]&&this[_0x2deaa2(0x1d2)](_0x2deaa2(0x1e9),{'isUploadInProgress':!0x1});}}
|