@ckeditor/ckeditor5-ai 47.7.2 → 47.7.3
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
|
-
const
|
|
23
|
+
const _0x56d8a8=_0x3944;(function(_0x2dd065,_0x3d283c){const _0x3eb7e0=_0x3944,_0x503427=_0x2dd065();while(!![]){try{const _0xf2d368=-parseInt(_0x3eb7e0(0x6a))/0x1+-parseInt(_0x3eb7e0(0x9e))/0x2*(parseInt(_0x3eb7e0(0x99))/0x3)+-parseInt(_0x3eb7e0(0x70))/0x4*(parseInt(_0x3eb7e0(0x87))/0x5)+-parseInt(_0x3eb7e0(0x9f))/0x6*(parseInt(_0x3eb7e0(0x8d))/0x7)+-parseInt(_0x3eb7e0(0x82))/0x8*(-parseInt(_0x3eb7e0(0x92))/0x9)+-parseInt(_0x3eb7e0(0x8c))/0xa*(-parseInt(_0x3eb7e0(0x98))/0xb)+parseInt(_0x3eb7e0(0x6c))/0xc;if(_0xf2d368===_0x3d283c)break;else _0x503427['push'](_0x503427['shift']());}catch(_0x29ba8b){_0x503427['push'](_0x503427['shift']());}}}(_0x1f7c,0xca459));import{Plugin as _0x2014f5}from'ckeditor5/src/core.js';function _0x1f7c(){const _0x216334=['requires','insertSuggestion','view','AIChatBalloon','rejectSuggestion','setState','commands','render','remove','isOfficialPlugin','areActionsDisabled','aiChatBalloon','155225efGjZq','showRotator','6465000OgavkS','plugins','toggleRotatorButtonsVisibility','value','329668PbcDaX','togglePartToolbarEnabled','close','showPrevious','TrackChanges','ck-ai-chat-balloon','addMany','_restoreDefaultViewFocus','Dialog','has','delegate','nextButtonView','applySuggestion','isPremiumPlugin','previousButtonView','editor','beforeDialogClosed','_createChatBalloonView','12215072RMrJzh','AIBalloon','focus','once','_chatBalloonView','95pmSeLz','_toggleRotatorButtonsInDialogHeader','headerView','updateContent','locale','155790aleLOC','10129jctdhU','showDiff','showNext','trackChanges','children','9fMgrho','config','open','isTrackChangesOn','get','filter','1089yREfgK','3aGIjOb','dialogClosed','pluginName','ai.availableReplyActions','set','2067406BNtujy','102IpfzFw','bind'];_0x1f7c=function(){return _0x216334;};return _0x1f7c();}import{AIBalloon as _0x16050a}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x479cd3}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x1c173c}from'./ui/aichatballoonview.js';function _0x3944(_0x1b1fa3,_0x2d0ac3){const _0x1f7c52=_0x1f7c();return _0x3944=function(_0x394466,_0x260ef4){_0x394466=_0x394466-0x64;let _0x2e2d19=_0x1f7c52[_0x394466];return _0x2e2d19;},_0x3944(_0x1b1fa3,_0x2d0ac3);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4d7995}from'../aicore/utils/eventnames.js';import{Dialog as _0xf2aefc}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x2014f5{static get[_0x56d8a8(0xa1)](){return[_0xf2aefc,_0x16050a];}static get[_0x56d8a8(0x9b)](){const _0x373848=_0x56d8a8;return _0x373848(0xa4);}static get[_0x56d8a8(0x67)](){return!0x0;}static get[_0x56d8a8(0x7d)](){return!0x0;}[_0x56d8a8(0x86)];constructor(_0x2be77d){const _0x3b8e61=_0x56d8a8;super(_0x2be77d),this[_0x3b8e61(0x9d)](_0x3b8e61(0x8e),!0x1);}[_0x56d8a8(0x94)](_0x3027ed){const _0x1b916c=_0x56d8a8,_0x3eda4e=this[_0x1b916c(0x7f)];this[_0x1b916c(0x86)]||(this[_0x1b916c(0x86)]=this[_0x1b916c(0x81)]()),_0x3eda4e[_0x1b916c(0x6d)][_0x1b916c(0x96)](_0x1b916c(0x83))[_0x1b916c(0x94)]({..._0x3027ed,'id':_0x1b916c(0x69),'class':_0x1b916c(0x75),'mainView':this[_0x1b916c(0x86)]}),this[_0x1b916c(0x88)](_0x3027ed[_0x1b916c(0x6b)]),this[_0x1b916c(0x86)][_0x1b916c(0x71)](!_0x3027ed[_0x1b916c(0x68)]),this[_0x1b916c(0x77)]();}[_0x56d8a8(0x72)](){const _0x10ee9b=_0x56d8a8;this[_0x10ee9b(0x7f)][_0x10ee9b(0x6d)][_0x10ee9b(0x96)](_0x10ee9b(0x83))[_0x10ee9b(0x72)]();}[_0x56d8a8(0x8a)](_0x4f1198){const _0xd2cd9b=_0x56d8a8;return this[_0xd2cd9b(0x86)]||(this[_0xd2cd9b(0x86)]=this[_0xd2cd9b(0x81)]()),this[_0xd2cd9b(0x86)][_0xd2cd9b(0x8a)](_0x4f1198);}[_0x56d8a8(0xa6)](_0x421d43){const _0x2b6207=_0x56d8a8;this[_0x2b6207(0x86)]&&this[_0x2b6207(0x86)][_0x2b6207(0xa6)](_0x421d43);}[_0x56d8a8(0x81)](){const _0x591a0d=_0x56d8a8,_0x7591e6=this[_0x591a0d(0x7f)],_0x126856=_0x7591e6[_0x591a0d(0x6d)][_0x591a0d(0x96)](_0x591a0d(0x83)),_0x56c313=_0x7591e6[_0x591a0d(0x64)][_0x591a0d(0x96)](_0x591a0d(0x90));let _0xacf402=_0x7591e6[_0x591a0d(0x93)][_0x591a0d(0x96)](_0x591a0d(0x9c))||[..._0x479cd3];_0x7591e6[_0x591a0d(0x6d)][_0x591a0d(0x79)](_0x591a0d(0x74))||(_0xacf402=_0xacf402[_0x591a0d(0x97)](_0xbfa3b9=>_0x591a0d(0xa2)!=_0xbfa3b9));const _0x551db9=new _0x1c173c(_0x7591e6[_0x591a0d(0x8b)],{'availableActions':_0xacf402,'showApplyButton':!0x0,'showSuggestButton':!!_0x56c313});return _0x551db9[_0x591a0d(0xa0)](_0x591a0d(0x8e))['to'](this),_0x551db9[_0x591a0d(0x7a)](..._0x4d7995)['to'](this),_0x551db9[_0x591a0d(0x7a)](_0x591a0d(0x73),_0x591a0d(0x8f))['to'](this),_0x126856[_0x591a0d(0x7a)](_0x591a0d(0x9a))['to'](this),_0x551db9['on'](_0x591a0d(0x7c),this[_0x591a0d(0x77)][_0x591a0d(0xa0)](this)),_0x551db9['on'](_0x591a0d(0xa2),this[_0x591a0d(0x77)][_0x591a0d(0xa0)](this)),_0x551db9['on'](_0x591a0d(0xa5),this[_0x591a0d(0x77)][_0x591a0d(0xa0)](this)),_0x56c313&&_0x551db9[_0x591a0d(0xa0)](_0x591a0d(0x95))['to'](_0x56c313,_0x591a0d(0x6f)),_0x551db9[_0x591a0d(0x65)](),_0x551db9;}[_0x56d8a8(0x88)](_0x511035){const _0x36cd7d=_0x56d8a8,_0x16a671=this[_0x36cd7d(0x7f)],_0x3dcfe0=_0x16a671[_0x36cd7d(0x6d)][_0x36cd7d(0x96)](_0x36cd7d(0x78))[_0x36cd7d(0xa3)][_0x36cd7d(0x89)][_0x36cd7d(0x91)];this[_0x36cd7d(0x86)][_0x36cd7d(0x6e)](_0x511035),_0x3dcfe0[_0x36cd7d(0x79)](this[_0x36cd7d(0x86)][_0x36cd7d(0x7e)])||(_0x3dcfe0[_0x36cd7d(0x76)]([this[_0x36cd7d(0x86)][_0x36cd7d(0x7e)],this[_0x36cd7d(0x86)][_0x36cd7d(0x7b)]],0x0),_0x16a671[_0x36cd7d(0x6d)][_0x36cd7d(0x96)](_0x36cd7d(0x83))[_0x36cd7d(0x85)](_0x36cd7d(0x80),()=>{const _0x571998=_0x36cd7d;_0x3dcfe0[_0x571998(0x66)](this[_0x571998(0x86)][_0x571998(0x7e)]),_0x3dcfe0[_0x571998(0x66)](this[_0x571998(0x86)][_0x571998(0x7b)]);}));}[_0x56d8a8(0x77)](){const _0x4bc36f=_0x56d8a8;this[_0x4bc36f(0x86)][_0x4bc36f(0x84)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x28cf(_0x5d4009,_0x58c9bf){const _0x40ede9=_0x40ed();return _0x28cf=function(_0x28cf41,_0x43f1f5){_0x28cf41=_0x28cf41-0x10c;let _0x43078e=_0x40ede9[_0x28cf41];return _0x43078e;},_0x28cf(_0x5d4009,_0x58c9bf);}const _0x4aec30=_0x28cf;(function(_0x31c2b0,_0x51d30a){const _0x468a18=_0x28cf,_0x5335b8=_0x31c2b0();while(!![]){try{const _0x3d7f2d=parseInt(_0x468a18(0x121))/0x1+-parseInt(_0x468a18(0x1b9))/0x2*(parseInt(_0x468a18(0x250))/0x3)+-parseInt(_0x468a18(0x19d))/0x4*(-parseInt(_0x468a18(0x26e))/0x5)+-parseInt(_0x468a18(0x253))/0x6+parseInt(_0x468a18(0x11a))/0x7+parseInt(_0x468a18(0x1b2))/0x8*(-parseInt(_0x468a18(0x18d))/0x9)+parseInt(_0x468a18(0x20c))/0xa*(parseInt(_0x468a18(0x293))/0xb);if(_0x3d7f2d===_0x51d30a)break;else _0x5335b8['push'](_0x5335b8['shift']());}catch(_0x222c40){_0x5335b8['push'](_0x5335b8['shift']());}}}(_0x40ed,0xedba5));import{ContextPlugin as _0x5ebc1f,Editor as _0x18c442}from'ckeditor5/src/core.js';import{BodyCollection as _0x4f508d}from'ckeditor5/src/ui.js';import{CKEditorError as _0x3f52cf,logError as _0x306496,scrollViewportToShowTarget as _0x59f77d,uid as _0x4720f6}from'ckeditor5/src/utils.js';import{AIConnector as _0x266934}from'../aicore/aiconnector.js';import{AITabs as _0x330bc8}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5a7bde}from'./model/aichatconversation.js';import{getTranslation as _0x21db9d}from'../aicore/utils/common-translations.js';import{AIModels as _0x479555}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x290b8e}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x344554,DATA_ID_MODEL_ATTRIBUTE as _0x2f75ed}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x41ef8f,getOperationsFromReply as _0xead07c}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x1ec15d,getMinimalSelection as _0x4101dd}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x561fcf,_DetachOperation as _0x45cacf}from'ckeditor5/src/engine.js';function _0x40ed(){const _0x5f5bf9=['AIEditing','Showing\x20conversation\x20history...','getInteraction','resize','_registerToolDataCallback','contextItemRemoved','addDocumentToContext','ai-chat-url-upload-failed','plugins','from','addFileToContext','AI_CHAT_INVALID_REQUEST','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','interactionFinished','createPositionAt','loadSourceResources','resourceId','ai.chat.context','populateSourceResourceBalloon','toViewRange','indexes','revert','_batchToChanges','baseVersion','setAddContextOptions','hasChanges','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','source','next','AI_CHAT_UNTITLED_CONVERSATION','insertSuggestion','_applyOperationsAsSuggestions','378909MIkMxl','ai-chat-controller-mouse-over','interactionDestroyed','abortPromptStream','init','setLoadingMessage','model','setFeedItemRenderingStrategy','clearLoadingMessage','sources','replyChangeGroupStateUpdated','context','isDocumentOperation','version','resource','isModelAvailable','96888ZNScur','updateCapabilities','contextSent','AI_CHAT_GENERIC_ERROR','_getAIChatInteractionAPI','rootName','ai-chat-invalid-request','_toggleReasoning','changeGroups','resetMessageInput','resizedTabs','ai-chat-missing-channel-id','contextItemAdded','_aiChatUi','ai.chat.initialConversation','DocumentCompare','_applySuggestion','ai-chat-conversation-not-found','activeConversation','addOperation','applyOperation','80hYhlVW','isCurrentDocumentInContext','root','ai-chat-conversation-start-failed','addCurrentDocumentToChatContext','updateContent','slice','328742xeBTjc','contextItem','mouseOverSuggestion','loadConversation','setChangeGroupState','dislike','_handleStartConversation','done','setConversationContext','currentReply','range','selectedModel','updateCurrentDocumentInContext','howMany','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','createdAt','_scrollToSuggestionRange','alignToTop','ai-chat-context-form-data-size-limits-exceeded','ai-request-aborted','clearPendingContextUI','type','previous','children','resizeTabs','isInContext','ai-chat-file-upload-failed','createRange','dialogClosed','addFilesToContext','getInteractionAndReplyById','addUrlToContext','_removeFromContext','log','updateConversationTitle','addResourceToContext','getChildren','areActionsDisabled','resourceStateChanged','options','fetchConversations','cloneNode','ai.models','pending','getChildAtOffset','ai-chat-controller-no-active-conversation','createPositionFromPath','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','upsertAIChatRating','contextItemLoadingEnded','showDiff','get','updateFeedItemAIReplySources','findIndex','AI_CHAT_ABORTED_MESSAGE','setConversationTitle','getChild','interactionId','sessionId','maxOffset','_createFromRanges','content','_getLastCreatedConversationId','interactionStarted','getTransformedByOperation','getRanges','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','map','setState','updateFeedItemAIReplyContent','unshift','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','_stopLastInteraction','document','_integrateEditor','removeContextItem','_aiEditing','lastCreated','split','indexOf','_logError','getSelectionText','focusPromptInput','9630oMGxZk','getConversation','state','removeSelectionFromContext','isOfficialPlugin','documentContextContent','mouseLeaveSuggestion','replyId','fetchConversation','_flushLastInteractionUI','includes','streaming','_aiChatBalloonShowDiff','ai.models.defaultModelId','AI_CHAT_UNABLE_TO_START_CONVERSATION','parse','addSelectionToChatContext','showNext','addFeedItemCustomElement','_handleUIUserMessage','webSearchFinished','ai-chat-resource-load-failed','resources','lastInteraction','outdated','_rejectSuggestion','messageId','toggleWebSearch','Liked\x20response','_getPresentableSiblingContentPartIndex','push','ai-no-track-changes','_updateRatings','isUploadInProgress','_currentPreviewedChangeGroup','delegate','sendUserMessage','addFeedItemStaticMessage','add','setSelectedModel','ai-chat-context-file-too-large','_setIsMaximized','open','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','length','AIConnector','editing','resetReasoningState','listenTo','AI_CHAT_CONTEXT_INVALID_DATA','Disliked\x20response','addFeedItemAIReply','webSearchStarted','static','editors','addSelectionToContext','getOperations','commands','getGroupId','conversationInitialized','interactionCreated','ai-chat-context-invalid-data','getDiff','undo','_bodyCollection','handleRemovedConversation','attachToDom','set','6ryLaDj','callback','afterInit','221598dFoieE','ready','addFeedInteractionHeader','_insertSuggestion','resetConversationTitle','ai-chat-context-file-too-many-pages','ai-chat-context-unsupported-type','isLoading','modification','addCurrentDocumentToContext','history','getDocumentContext','pluginName','selectModel','data-id','partIndex','addFeedItemUserMessage','_aiChatModels','start','collaboration.channelId','data','replies','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','sendMessage','uploadProgressChanged','getConversations','setModel','10KghLaf','modelSelected','_showConversationHistory','clearConversationContextUI','setFeedItemAIReplySuggestionPartActive','replyCreated','scrollFeedToSuggestion','error','node','domConverter','mapper','capabilitiesUpdated','createConversation','startAutoScroll','selection','stopInteraction','_openBalloonFor','removeFromContext','changes','showPrevious','toggleLoadingSkeleton','createReply','end','removed','isDisabled','updateResourceState','like','finishInteraction','getRoot','getContentParts','accepted','sourcePosition','destroy','config','_getDocumentRangeForReplyChanges','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','AI_CHAT_RESOURCE_LOAD_FAILED','902GzbYte','filter','text','toString','index','reasoningStarted','AI_BALLOON_HEADER_TITLE','executeCustomItemCallback','setIsMaximized','_updateReplyContent','TrackChanges','close','_aiChatBalloon','$graveyard','updateFeedItemAIReplySuggestionPartState','getAll','startsWith','getFirstRange','forEach','hideFakeVisualSelection','6165698fLrhIk','query','rejectSuggestion','has','startConversation','reasoningFinished','toggleSuggestionDisplayMode','752194TzBLvA','isPremiumPlugin','addContextItem','ai-chat-conversation-init-failed','aiChatBalloon','getReply','ai-chat-context-unsupported-file-type','nextSibling','addFeedItemError','sourceId','removeSelectionFromChatContext','batch','delete','removeFeedInteraction','change','setContextItemLoading','stop','anchorId','rejected','requires','uiId','toggleReasoning','disableControls','AI_CHAT_CONTEXT_FILE_TOO_LARGE','ai-conversation-','_getUserPresentableContentPartDocumentRange','detachFromDom','redo','isCurrentDocumentInConversation','isStarted','AIChatController','setIsUploadInProgress','new','toolDataReceived','view','enableControls','current-document','_toggleWebSearch','ai-chat-source-resources-load-failed','remove','message','getPath','closeSourceResourceBalloon','replyContentUpdated','locale','Undo','AIChatBalloon','activateTab','addContextOptionsChanged','AITabs','AIChatUI','showFakeVisualSelection','_startConversationSafely','showChangeInText','contextItems','_aiConnector','find','main','load','uid','getDocumentData','addFeedItemAISuggestion','updateFeedItemAIReplySuggestionContent','chat','TrackChangesEditing','applySuggestion','startInteraction','path','marker','viewRangeToDom','prepareLoadingMessage','sourceResourcesLoaded','bind','handleUserInteraction','getAttribute','resetWebSearchState'];_0x40ed=function(){return _0x5f5bf9;};return _0x40ed();}import{findOne as _0x484cdd,getAttribute as _0x4b6112,serialize as _0x33812c,Document as _0x54b8e7,findByAttribute as _0x5e9a27}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x5ebc1f{[_0x4aec30(0x205)];[_0x4aec30(0x158)];[_0x4aec30(0x1aa)];[_0x4aec30(0x264)];[_0x4aec30(0x112)];[_0x4aec30(0x183)]=new Map();[_0x4aec30(0x22e)]=null;[_0x4aec30(0x24c)];static get[_0x4aec30(0x134)](){return[_0x266934,_0x344554];}static get[_0x4aec30(0x25f)](){const _0x33d5e4=_0x4aec30;return _0x33d5e4(0x13f);}static get[_0x4aec30(0x210)](){return!0x0;}static get[_0x4aec30(0x122)](){return!0x0;}[_0x4aec30(0x191)](){const _0x505845=_0x4aec30;this[_0x505845(0x24c)]=new _0x4f508d(this[_0x505845(0x198)][_0x505845(0x14d)]),this[_0x505845(0x24c)][_0x505845(0x24e)](),this[_0x505845(0x158)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x239)),this[_0x505845(0x1aa)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x153)),this[_0x505845(0x205)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x16d)),this[_0x505845(0x264)]=new _0x479555({'connector':this[_0x505845(0x158)],'config':this[_0x505845(0x198)][_0x505845(0x28f)][_0x505845(0x1ec)](_0x505845(0x1e3)),'locale':this[_0x505845(0x198)][_0x505845(0x14d)]});const _0x528971=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x152));this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x11e),()=>{const _0xb0ad61=_0x505845;this[_0xb0ad61(0x155)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x230),(_0x42d155,_0x12e44e)=>{const _0x2f00bf=_0x505845;this[_0x2f00bf(0x21f)]({'userMessage':_0x12e44e});}),this[_0x505845(0x23c)](_0x528971,_0x505845(0x1a7),(_0x397958,_0x19e97e)=>{const _0x1924cd=_0x505845;this[_0x1924cd(0x235)](_0x19e97e);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1d1),()=>{const _0x517078=_0x505845;_0x528971[_0x517078(0x170)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x190),async()=>{const _0x26887f=_0x505845;await this[_0x26887f(0x201)](),await this[_0x26887f(0x215)](),this[_0x26887f(0x12b)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x173),()=>{const _0xd2495=_0x505845;this[_0xd2495(0x1b6)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x177),(_0x1ef4ca,_0x48731c)=>{const _0x1dda12=_0x505845;this[_0x1dda12(0x1af)]?.[_0x1dda12(0x1d6)](Array[_0x1dda12(0x176)](_0x48731c));}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1d8),(_0x2be030,_0xb23b9c)=>{const _0x42fab3=_0x505845;this[_0x42fab3(0x1af)]?.[_0x42fab3(0x1d8)](_0xb23b9c);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x10d),(_0x1bd8df,_0x3c4ece)=>{const _0x798827=_0x505845;_0x3c4ece[_0x798827(0x251)](this[_0x798827(0x198)]);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1dc),(_0x59eef6,_0x26706b)=>{const _0x240690=_0x505845;this[_0x240690(0x1af)]?.[_0x240690(0x1dc)](_0x26706b[_0x240690(0x188)],_0x26706b[_0x240690(0x19b)]);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x204),(_0x1d1490,_0x533b03)=>{const _0x47b253=_0x505845;this[_0x47b253(0x1d9)](_0x533b03);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x17c),(_0x482263,_0x55093a)=>{const _0x163ad6=_0x505845;this[_0x163ad6(0x1af)]?.[_0x163ad6(0x17c)](_0x55093a[_0x163ad6(0x12a)],_0x55093a[_0x163ad6(0x11b)],_0x55093a[_0x163ad6(0x15c)]);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x227),()=>{const _0x3abc00=_0x505845;this[_0x3abc00(0x146)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x136),()=>{const _0x2ca06b=_0x505845;this[_0x2ca06b(0x1a4)]();}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x260),(_0x351d11,_0xfdfc7c)=>{const _0x2446d5=_0x505845;this[_0x2446d5(0x1af)]?.[_0x2446d5(0x26d)](_0xfdfc7c);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x288),(_0x16d432,{replyId:_0x179575})=>{const _0x98befa=_0x505845;console[_0x98befa(0x1da)](_0x98befa(0x228),_0x179575);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1be),(_0x3fbea7,{replyId:_0x4214c8})=>{const _0x410d89=_0x505845;console[_0x410d89(0x1da)](_0x410d89(0x23e),_0x4214c8);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x18b),(_0x5e0655,_0x2c56b3)=>{const _0xea5e68=_0x505845;this[_0xea5e68(0x256)](_0x2c56b3);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x156),(_0x5ef1ef,{replyId:_0x322909,partIndex:_0x18eb4c})=>{const _0x2d6cb1=_0x505845;this[_0x2d6cb1(0x218)]=this[_0x2d6cb1(0x1aa)][_0x2d6cb1(0x1eb)],this[_0x2d6cb1(0x27e)](_0x322909,_0x18eb4c);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x1bb),(_0x329e6e,{replyId:_0x3383aa,partIndex:_0x3886ad})=>{const _0x4cb39a=_0x505845,_0xb532d=this[_0x4cb39a(0x290)](_0x3383aa,_0x3886ad);_0xb532d&&_0x4cb39a(0x113)!=_0xb532d[_0x4cb39a(0x1c3)][_0x4cb39a(0x1b4)][_0x4cb39a(0x1a2)]&&this[_0x4cb39a(0x205)][_0x4cb39a(0x154)]([_0xb532d[_0x4cb39a(0x1c3)]],_0x4cb39a(0x18e));}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x212),()=>{const _0x44d5dc=_0x505845;this[_0x44d5dc(0x205)][_0x44d5dc(0x119)](_0x44d5dc(0x18e));}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x162),(_0x461a5a,_0xfcf258)=>{const _0x1b03f5=_0x505845;this[_0x1b03f5(0x205)][_0x1b03f5(0x119)](_0x1b03f5(0x18e)),this[_0x1b03f5(0x1ad)](_0xfcf258);}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x120),async(_0x33c973,{replyId:_0x41a4cb,showDiff:_0x398405})=>{const _0x5d5aa7=_0x505845,{reply:_0x35ead9}=this[_0x5d5aa7(0x1d7)](_0x41a4cb),_0x3b2e9a=_0x35ead9[_0x5d5aa7(0x28b)]({'showDiff':_0x398405});await this[_0x5d5aa7(0x1aa)][_0x5d5aa7(0x15f)]({'id':_0x35ead9['id'],'parts':_0x3b2e9a,'renderingStrategy':_0x5d5aa7(0x241)});}),this[_0x505845(0x23c)](this[_0x505845(0x1aa)],_0x505845(0x11c),(_0xd2b27a,{replyId:_0x172a6d,partIndex:_0xefdea9})=>{const _0x32daa7=_0x505845;this[_0x32daa7(0x225)]({'replyId':_0x172a6d,'partIndex':_0xefdea9}),this[_0x32daa7(0x205)][_0x32daa7(0x119)](_0x32daa7(0x18e));}),this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x11d)](_0x505845(0x14f))&&(this[_0x505845(0x112)]=this[_0x505845(0x198)][_0x505845(0x175)][_0x505845(0x1ec)](_0x505845(0x14f)),this[_0x505845(0x24f)](_0x505845(0x218),!0x1),this[_0x505845(0x112)][_0x505845(0x169)](_0x505845(0x1eb))['to'](this,_0x505845(0x218)),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x120),()=>{const _0x496d60=_0x505845,{replyId:_0x4a1a2f,partIndex:_0x1b77ef}=this[_0x496d60(0x22e)];this[_0x496d60(0x218)]=!this[_0x496d60(0x218)];const {reply:_0x36d7df}=this[_0x496d60(0x1d7)](_0x4a1a2f),_0x508b1b=_0x36d7df[_0x496d60(0x28b)]({'showDiff':this[_0x496d60(0x218)],'groupIndex':_0x1b77ef});this[_0x496d60(0x112)][_0x496d60(0x1b7)]({'part':_0x508b1b[0x0],'renderingStrategy':_0x496d60(0x241),'keepErrors':!0x0});}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x162),()=>{const _0x33b31b=_0x505845,{replyId:_0x34f72d,partIndex:_0x50d780}=this[_0x33b31b(0x22e)];this[_0x33b31b(0x1ad)]({'replyId':_0x34f72d,'partIndex':_0x50d780}),this[_0x33b31b(0x112)][_0x33b31b(0x1fd)](_0x33b31b(0x28c));}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x18b),()=>{const _0x7920f3=_0x505845,{replyId:_0x215e98,partIndex:_0x373ded}=this[_0x7920f3(0x22e)];this[_0x7920f3(0x256)]({'replyId':_0x215e98,'partIndex':_0x373ded}),this[_0x7920f3(0x112)][_0x7920f3(0x1fd)](_0x7920f3(0x28c));}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x11c),()=>{const _0x47f7ca=_0x505845,{replyId:_0x2bd3b6,partIndex:_0x101972}=this[_0x47f7ca(0x22e)];this[_0x47f7ca(0x225)]({'replyId':_0x2bd3b6,'partIndex':_0x101972}),this[_0x47f7ca(0x112)][_0x47f7ca(0x1fd)](_0x47f7ca(0x133));}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x21d),()=>{const _0x12b63a=_0x505845,{replyId:_0x57572e,partIndex:_0x5f2ba0}=this[_0x12b63a(0x22e)],_0xa062fa=this[_0x12b63a(0x229)](_0x57572e,_0x5f2ba0,_0x12b63a(0x189));null!==_0xa062fa&&this[_0x12b63a(0x27e)](_0x57572e,_0xa062fa);}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x281),()=>{const _0x370941=_0x505845,{replyId:_0x73ea2d,partIndex:_0x1d1aaa}=this[_0x370941(0x22e)],_0x48a787=this[_0x370941(0x229)](_0x73ea2d,_0x1d1aaa,_0x370941(0x1cf));null!==_0x48a787&&this[_0x370941(0x27e)](_0x73ea2d,_0x48a787);}),this[_0x505845(0x23c)](this[_0x505845(0x112)],_0x505845(0x1d5),(_0x560187,{id:_0x164286})=>{const _0x5d2341=_0x505845;if(_0x5d2341(0x125)!==_0x164286)return;const {replyId:_0xde2d5c,partIndex:_0x21b21e}=this[_0x5d2341(0x22e)];this[_0x5d2341(0x22e)]=null,this[_0x5d2341(0x1aa)][_0x5d2341(0x272)]({'id':_0xde2d5c,'index':_0x21b21e,'isActive':!0x1});}));}async[_0x4aec30(0x252)](){const _0xe018e5=_0x4aec30;this[_0xe018e5(0x198)]instanceof _0x18c442?this[_0xe018e5(0x203)](this[_0xe018e5(0x198)]):this[_0xe018e5(0x23c)](this[_0xe018e5(0x198)][_0xe018e5(0x242)],_0xe018e5(0x232),(_0x27ee83,_0x348939)=>{const _0x59eccc=_0xe018e5;_0x348939['on'](_0x59eccc(0x254),()=>{const _0x4941ac=_0x59eccc;this[_0x4941ac(0x203)](_0x348939);});});const _0xf55a4c=this[_0xe018e5(0x198)][_0xe018e5(0x28f)][_0xe018e5(0x1ec)](_0xe018e5(0x1ab));let _0x547026=_0xf55a4c;if(_0xe018e5(0x206)!=_0xf55a4c||(_0x547026=await this[_0xe018e5(0x1f7)](),_0x547026))return _0xe018e5(0x141)==_0x547026?this[_0xe018e5(0x155)]():this[_0xe018e5(0x1bc)](_0x547026);}async[_0x4aec30(0x28e)](){const _0x412752=_0x4aec30;return await this[_0x412752(0x201)](),this[_0x412752(0x24c)][_0x412752(0x13b)](),super[_0x412752(0x28e)]();}[_0x4aec30(0x256)](_0x347bf6){const _0x50f406=_0x4aec30,_0x36efde=_0x290b8e(this[_0x50f406(0x198)]);if(!_0x36efde[_0x50f406(0x175)][_0x50f406(0x11d)](_0x50f406(0x110)))throw new _0x3f52cf(_0x50f406(0x22b),null);const _0x42839d=this[_0x50f406(0x198)][_0x50f406(0x175)][_0x50f406(0x1ec)](_0x50f406(0x1ac)),{reply:_0x13d39e,interaction:_0x2710f4}=this[_0x50f406(0x1d7)](_0x347bf6[_0x50f406(0x213)]),_0x4c6c3c=this[_0x50f406(0x290)](_0x347bf6[_0x50f406(0x213)],_0x347bf6[_0x50f406(0x262)]),_0x8d97a3=void 0x0!==_0x347bf6[_0x50f406(0x262)]?[_0x13d39e[_0x50f406(0x1a5)][_0x347bf6[_0x50f406(0x262)]]]:_0x13d39e[_0x50f406(0x1a5)][_0x50f406(0x294)](_0x1a3435=>_0x50f406(0x1e4)==_0x1a3435[_0x50f406(0x20e)]),_0x4b43be=_0x8d97a3[_0x50f406(0x1fc)](_0x4ba633=>_0x13d39e[_0x50f406(0x1a5)][_0x50f406(0x208)](_0x4ba633));if(!_0x4c6c3c||_0x50f406(0x113)==_0x4c6c3c[_0x50f406(0x1c3)][_0x50f406(0x1b4)][_0x50f406(0x1a2)])return void _0x4b43be[_0x50f406(0x118)](_0x473c1b=>_0x13d39e[_0x50f406(0x1bd)](_0x473c1b,_0x50f406(0x224)));_0x4b43be[_0x50f406(0x118)](_0x34e7c9=>_0x13d39e[_0x50f406(0x1bd)](_0x34e7c9,_0x50f406(0x28c)));const _0x4f7c71=_0xead07c({'editor':_0x36efde,'reply':_0x13d39e,'interaction':_0x2710f4,'groups':_0x8d97a3,'transform':!0x0,'documentCompare':_0x42839d,'documentCompareOptions':{'anchor':_0x50f406(0x15a),'markDeletions':!0x0}});let _0x2119b3;_0x4c6c3c&&this[_0x50f406(0x1c9)](_0x4c6c3c[_0x50f406(0x1c3)]),_0x36efde[_0x50f406(0x193)][_0x50f406(0x12f)](_0x1c1266=>{const _0x119544=_0x50f406;_0x2119b3=_0x1c1266[_0x119544(0x12c)],_0x36efde[_0x119544(0x175)][_0x119544(0x1ec)](_0x119544(0x161))[_0x119544(0x18c)](_0x4f7c71),this[_0x119544(0x205)][_0x119544(0x119)](_0x119544(0x18e));}),this[_0x50f406(0x183)][_0x50f406(0x24f)](_0x2119b3,{'interactionId':_0x2710f4['id'],'replyId':_0x13d39e['id'],'indexes':_0x4b43be[_0x50f406(0x1b8)]()}),this[_0x50f406(0x22c)](_0x13d39e);}[_0x4aec30(0x1ad)](_0x236201){const _0x10dbc6=_0x4aec30,_0x26284c=_0x290b8e(this[_0x10dbc6(0x198)]),_0x4d0b55=this[_0x10dbc6(0x198)][_0x10dbc6(0x175)][_0x10dbc6(0x1ec)](_0x344554),{reply:_0x2ed069,interaction:_0x1213a5}=this[_0x10dbc6(0x1d7)](_0x236201[_0x10dbc6(0x213)]),_0x5a7cb1=this[_0x10dbc6(0x290)](_0x236201[_0x10dbc6(0x213)],_0x236201[_0x10dbc6(0x262)]),_0x5ed088=void 0x0!==_0x236201[_0x10dbc6(0x262)]?[_0x2ed069[_0x10dbc6(0x1a5)][_0x236201[_0x10dbc6(0x262)]]]:_0x2ed069[_0x10dbc6(0x1a5)][_0x10dbc6(0x294)](_0x5c943f=>_0x10dbc6(0x1e4)==_0x5c943f[_0x10dbc6(0x20e)]),_0x3b76d7=_0x5ed088[_0x10dbc6(0x1fc)](_0x67aba2=>_0x2ed069[_0x10dbc6(0x1a5)][_0x10dbc6(0x208)](_0x67aba2));if(!_0x5a7cb1||_0x10dbc6(0x113)==_0x5a7cb1[_0x10dbc6(0x1c3)][_0x10dbc6(0x1b4)][_0x10dbc6(0x1a2)])return void _0x3b76d7[_0x10dbc6(0x118)](_0x598469=>_0x2ed069[_0x10dbc6(0x1bd)](_0x598469,_0x10dbc6(0x224)));_0x3b76d7[_0x10dbc6(0x118)](_0x1311cb=>_0x2ed069[_0x10dbc6(0x1bd)](_0x1311cb,_0x10dbc6(0x28c)));const _0x42afa8=_0xead07c({'editor':_0x26284c,'reply':_0x2ed069,'interaction':_0x1213a5,'groups':_0x5ed088,'transform':!0x0,'documentCompare':_0x4d0b55,'documentCompareOptions':{'anchor':_0x10dbc6(0x15a),'markDeletions':!0x1}});let _0x14b374;_0x5a7cb1&&this[_0x10dbc6(0x1c9)](_0x5a7cb1[_0x10dbc6(0x1c3)]),_0x26284c[_0x10dbc6(0x193)][_0x10dbc6(0x12f)](_0x54073b=>{const _0x20291c=_0x10dbc6;_0x14b374=_0x54073b[_0x20291c(0x12c)];for(const _0x1d35fa of _0x42afa8)_0x1d35fa[_0x20291c(0x184)]=_0x26284c[_0x20291c(0x193)][_0x20291c(0x202)][_0x20291c(0x19a)],_0x41ef8f(_0x26284c,_0x1d35fa),_0x54073b[_0x20291c(0x12c)][_0x20291c(0x1b0)](_0x1d35fa),_0x26284c[_0x20291c(0x193)][_0x20291c(0x1b1)](_0x1d35fa);}),this[_0x10dbc6(0x183)][_0x10dbc6(0x24f)](_0x14b374,{'interactionId':_0x1213a5['id'],'replyId':_0x2ed069['id'],'indexes':_0x3b76d7[_0x10dbc6(0x1b8)]()}),this[_0x10dbc6(0x22c)](_0x2ed069);}[_0x4aec30(0x225)](_0x5dad3b){const _0x2f393a=_0x4aec30,{reply:_0x4f3bc4}=this[_0x2f393a(0x1d7)](_0x5dad3b[_0x2f393a(0x213)]);_0x4f3bc4[_0x2f393a(0x1bd)](_0x5dad3b[_0x2f393a(0x262)],_0x2f393a(0x133));}[_0x4aec30(0x27e)](_0x522719,_0x5f3f29){const _0x31c128=_0x4aec30;if(!this[_0x31c128(0x112)])return;const {reply:_0x366fd9}=this[_0x31c128(0x1d7)](_0x522719),_0x5482fa=_0x366fd9[_0x31c128(0x28b)]({'showDiff':this[_0x31c128(0x218)]});let _0x45263e,_0x13cef4;if(void 0x0!==_0x5f3f29?(_0x13cef4=_0x5482fa[_0x31c128(0x159)](_0x215322=>_0x215322[_0x31c128(0x297)]==_0x5f3f29),_0x45263e=_0x13cef4?.[_0x31c128(0x297)]):(_0x13cef4=_0x5482fa[0x0],_0x45263e=_0x13cef4[_0x31c128(0x297)]),this[_0x31c128(0x22e)]?.[_0x31c128(0x213)]==_0x522719&&this[_0x31c128(0x22e)]?.[_0x31c128(0x262)]==_0x45263e)return;const _0x5c835a=this[_0x31c128(0x13a)](_0x522719,_0x366fd9,_0x13cef4);if(!_0x5c835a)return void this[_0x31c128(0x112)][_0x31c128(0x111)]();this[_0x31c128(0x22e)]={'replyId':_0x522719,'partIndex':_0x45263e},this[_0x31c128(0x1c9)](_0x5c835a,!0x0);const _0x18a9d0=this[_0x31c128(0x229)](_0x522719,_0x45263e,_0x31c128(0x189));this[_0x31c128(0x112)][_0x31c128(0x1b7)]({'part':_0x13cef4,'renderingStrategy':_0x31c128(0x241)}),this[_0x31c128(0x112)][_0x31c128(0x236)]({'index':_0x45263e,'title':_0x21db9d(this[_0x31c128(0x198)][_0x31c128(0x14d)],_0x31c128(0x10c),(_0x45263e+0x1)[_0x31c128(0x296)]()),'showRotator':null!==_0x18a9d0,'ranges':[_0x5c835a],'areActionsDisabled':_0x366fd9[_0x31c128(0x1de)]}),this[_0x31c128(0x112)][_0x31c128(0x1fd)](_0x31c128(0x1e4)),this[_0x31c128(0x1aa)][_0x31c128(0x274)](_0x522719,_0x45263e),this[_0x31c128(0x1aa)][_0x31c128(0x272)]({'id':_0x522719,'index':_0x45263e,'isActive':!0x0});}[_0x4aec30(0x229)](_0x5abd00,_0x3181ee,_0x288883){const _0x361b09=_0x4aec30,{reply:_0x18fbff}=this[_0x361b09(0x1d7)](_0x5abd00),_0x1c6160=_0x18fbff[_0x361b09(0x28b)]({'showDiff':this[_0x361b09(0x218)]});if(0x1==_0x1c6160[_0x361b09(0x238)])return null;const _0x2b5bb8=_0x1c6160[_0x361b09(0x1ee)](_0x5acae0=>_0x5acae0[_0x361b09(0x297)]==_0x3181ee),_0x30e979=_0x361b09(0x189)==_0x288883?0x1:-0x1;let _0x534958=_0x1c6160['at']((_0x2b5bb8+_0x30e979)%_0x1c6160[_0x361b09(0x238)])[_0x361b09(0x297)],_0xa44b4e=_0x1c6160[_0x534958];for(;!this[_0x361b09(0x13a)](_0x5abd00,_0x18fbff,_0xa44b4e);){if(_0x534958=_0x1c6160['at']((_0x534958+_0x30e979)%_0x1c6160[_0x361b09(0x238)])[_0x361b09(0x297)],_0x534958===_0x2b5bb8)return null;_0xa44b4e=_0x1c6160[_0x534958];}return _0x534958;}[_0x4aec30(0x13a)](_0x534aa2,_0x14e6f4,_0x5551ed){const _0x5df857=_0x4aec30,_0x36dc3c=_0x14e6f4[_0x5df857(0x1a5)];if(!_0x5551ed[_0x5df857(0x186)])return null;const _0x1539fc=_0x36dc3c[_0x5df857(0x159)](_0x5588b6=>_0x5588b6[_0x5df857(0x297)]==_0x5551ed[_0x5df857(0x297)]);if(_0x5df857(0x1e4)!==_0x1539fc?.[_0x5df857(0x20e)])return null;const _0x5c979e=this[_0x5df857(0x290)](_0x534aa2,_0x5551ed[_0x5df857(0x297)]);if(!_0x5c979e)return null;const {range:_0x162336,currentIndex:_0x56d0af}=_0x5c979e;return _0x5df857(0x113)==_0x162336[_0x5df857(0x1b4)][_0x5df857(0x1a2)]?(_0x14e6f4[_0x5df857(0x1bd)](_0x56d0af,_0x5df857(0x224)),null):_0x5c979e[_0x5df857(0x1c3)];}[_0x4aec30(0x290)](_0xde782d,_0x776a94){const _0x23a962=_0x4aec30,_0x960e8f=_0x290b8e(this[_0x23a962(0x198)]),{reply:_0x53ad5e,interaction:_0x22c955}=this[_0x23a962(0x1d7)](_0xde782d),_0x4eff3a=_0x53ad5e[_0x23a962(0x1a5)][_0x23a962(0x294)](_0x3fa992=>_0x23a962(0x1e4)==_0x3fa992[_0x23a962(0x20e)]),_0x569e12=_0x4eff3a[_0x23a962(0x1fc)](_0x1a115e=>_0x53ad5e[_0x23a962(0x1a5)][_0x23a962(0x208)](_0x1a115e));void 0x0===_0x776a94&&(_0x776a94=_0x569e12[0x0]);const _0x3e1185=_0x569e12[_0x23a962(0x208)](_0x776a94);if(-0x1==_0x3e1185)return null;const _0x3325e3=_0x4eff3a[_0x3e1185],_0x27bb3d=new _0x54b8e7([]),_0x35496c=new _0x54b8e7([]);for(const _0x27d5e8 of _0x3325e3[_0x23a962(0x280)])if(_0x23a962(0x285)!=_0x27d5e8[_0x23a962(0x1ce)]&&_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x27d5e8[_0x23a962(0x276)][_0x23a962(0x1e2)](!0x0)),_0x23a962(0x141)!=_0x27d5e8[_0x23a962(0x1ce)]){const _0x24a2ad=_0x484cdd(_0x254657=>_0x4b6112(_0x254657,_0x23a962(0x261))==_0x27d5e8['id'],_0x53ad5e[_0x23a962(0x211)],!0x0);_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x24a2ad[_0x23a962(0x1e2)](!0x0));}if(0x0==_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x238)]){if(_0x3325e3[_0x23a962(0x280)][0x0][_0x23a962(0x132)]){const _0x2652d7=_0x5e9a27(_0x23a962(0x261),_0x3325e3[_0x23a962(0x280)][0x0][_0x23a962(0x132)],_0x53ad5e[_0x23a962(0x211)]);_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x1ff)](_0x2652d7[_0x23a962(0x1e2)](!0x0)),_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x1ff)](_0x2652d7[_0x23a962(0x1e2)](!0x0)),_0x2652d7[_0x23a962(0x128)]&&(_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x2652d7[_0x23a962(0x128)][_0x23a962(0x1e2)](!0x0)),_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x2652d7[_0x23a962(0x128)][_0x23a962(0x1e2)](!0x0)));}else{const _0x44041e=_0x53ad5e[_0x23a962(0x211)][_0x23a962(0x1d0)][0x0];if(!_0x44041e)return null;_0x27bb3d[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x44041e[_0x23a962(0x1e2)](!0x0)),_0x35496c[_0x23a962(0x1d0)][_0x23a962(0x22a)](_0x44041e[_0x23a962(0x1e2)](!0x0));}}const _0x3b9fe1=_0x22c955[_0x23a962(0x25e)](),_0x2082ef=_0x960e8f[_0x23a962(0x267)][_0x23a962(0x21b)](_0x3b9fe1[_0x23a962(0x1f6)]),_0x23b673=_0x33812c(_0x27bb3d),_0x1d0c5f=_0x960e8f[_0x23a962(0x267)][_0x23a962(0x21b)](_0x23b673),_0x29c3e3=_0x960e8f[_0x23a962(0x267)][_0x23a962(0x21b)](_0x23b673),_0x58cfb0=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x17b)](_0x1d0c5f,0x0),_0x39e0cc=_0x33812c(_0x35496c),_0x2a2d1a={'anchor':_0x58cfb0,'markDeletions':!0x1},_0x12b090=_0x960e8f[_0x23a962(0x175)][_0x23a962(0x1ec)](_0x344554)[_0x23a962(0x24a)](_0x23b673,_0x39e0cc,_0x2a2d1a)[_0x23a962(0x244)]();if(!_0x12b090[_0x23a962(0x238)])return null;_0x960e8f[_0x23a962(0x193)][_0x23a962(0x12f)](_0x3db23d=>{const _0x2b1add=_0x23a962;for(const _0x23ac29 of _0x12b090)if(_0x2b1add(0x148)==_0x23ac29[_0x2b1add(0x1ce)]){const _0x38f4d7=_0x23ac29[_0x2b1add(0x28d)],_0x3b8711=_0x23ac29[_0x2b1add(0x1c6)],_0x552ad5=new _0x45cacf(_0x38f4d7,_0x3b8711);_0x3db23d[_0x2b1add(0x12c)][_0x2b1add(0x1b0)](_0x552ad5),_0x960e8f[_0x2b1add(0x193)][_0x2b1add(0x1b1)](_0x552ad5);}else _0x2b1add(0x165)!==_0x23ac29[_0x2b1add(0x1ce)]&&(_0x23ac29[_0x2b1add(0x184)]=null,_0x23ac29[_0x2b1add(0x199)]=!0x1,_0x3db23d[_0x2b1add(0x12c)][_0x2b1add(0x1b0)](_0x23ac29),_0x960e8f[_0x2b1add(0x193)][_0x2b1add(0x1b1)](_0x23ac29));});const _0x42b7b5=_0x4101dd(_0x960e8f,_0x12b090,_0x1d0c5f);_0x1ec15d(_0x960e8f[_0x23a962(0x193)],_0x42b7b5);const _0x3a9742=_0x42b7b5[_0x23a962(0x117)]()[_0x23a962(0x265)][_0x23a962(0x164)][_0x23a962(0x1b8)](),_0x90fbf0=_0x42b7b5[_0x23a962(0x117)]()[_0x23a962(0x284)][_0x23a962(0x164)][_0x23a962(0x1b8)](),_0x2fbc77=[];let _0x4c70da=_0x1d0c5f,_0x1d45da=_0x29c3e3;for(let _0x3b6761=0x0;_0x3b6761<_0x90fbf0[_0x23a962(0x238)];_0x3b6761++){const _0x186acb=_0x4c70da[_0x23a962(0x1f4)]-_0x90fbf0[_0x3b6761];_0x2fbc77[_0x3b6761]=_0x1d45da[_0x23a962(0x1f4)]-_0x186acb,_0x4c70da=_0x4c70da[_0x23a962(0x1e5)](_0x90fbf0[_0x3b6761]),_0x1d45da=_0x1d45da[_0x23a962(0x1e5)](_0x2fbc77[_0x3b6761]);}const _0x110a43=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1d4)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x29c3e3,_0x3a9742),_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x29c3e3,_0x2fbc77)),_0x4b3a7e=_0x29c3e3[_0x23a962(0x1f1)](0x0)[_0x23a962(0x16b)](_0x2f75ed),_0x1b5296=Array[_0x23a962(0x176)](_0x2082ef[_0x23a962(0x1dd)]())[_0x23a962(0x159)](_0x8d4cdd=>_0x8d4cdd[_0x23a962(0x16b)](_0x2f75ed)==_0x4b3a7e)[_0x23a962(0x14a)](),_0x1f3ccf=_0x110a43[_0x23a962(0x265)][_0x23a962(0x164)][_0x23a962(0x1b8)](),_0x329ce7=_0x110a43[_0x23a962(0x284)][_0x23a962(0x164)][_0x23a962(0x1b8)]();_0x1f3ccf[0x0]=_0x1b5296[0x0]+_0x1f3ccf[0x0],_0x329ce7[0x0]=_0x1b5296[0x0]+_0x329ce7[0x0];let _0x57a0d2=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1d4)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x202)][_0x23a962(0x28a)](),_0x1f3ccf),_0x960e8f[_0x23a962(0x193)][_0x23a962(0x1e7)](_0x960e8f[_0x23a962(0x193)][_0x23a962(0x202)][_0x23a962(0x28a)](),_0x329ce7));const _0x52ceef=_0x960e8f[_0x23a962(0x193)][_0x23a962(0x202)][_0x23a962(0x25d)][_0x23a962(0x244)](_0x3b9fe1[_0x23a962(0x19a)]);for(const _0xb7f6e0 of _0x52ceef)_0x57a0d2=_0x561fcf[_0x23a962(0x1f5)](_0x57a0d2[_0x23a962(0x1f9)](_0xb7f6e0));return{'range':_0x57a0d2,'currentIndex':_0x776a94};}[_0x4aec30(0x203)](_0x16df4e){const _0x340dfe=_0x4aec30;if(!_0x16df4e[_0x340dfe(0x175)][_0x340dfe(0x11d)](_0x340dfe(0x14e)))return;const _0x56b299=_0x16df4e[_0x340dfe(0x245)][_0x340dfe(0x1ec)](_0x340dfe(0x24b)),_0x1c6563=_0x16df4e[_0x340dfe(0x245)][_0x340dfe(0x1ec)](_0x340dfe(0x13c));this[_0x340dfe(0x23c)](_0x56b299,_0x340dfe(0x182),(_0x5a5381,_0x5e137c,_0x50a974)=>{const _0x13e6c5=_0x340dfe,_0xdcb7df=this[_0x13e6c5(0x183)][_0x13e6c5(0x1ec)](_0x5e137c);if(!_0xdcb7df)return;const _0x21910b=this[_0x13e6c5(0x1af)][_0x13e6c5(0x16f)](_0xdcb7df[_0x13e6c5(0x1f2)])[_0x13e6c5(0x126)](_0xdcb7df[_0x13e6c5(0x213)]);_0xdcb7df[_0x13e6c5(0x181)][_0x13e6c5(0x118)](_0x1607a6=>_0x21910b[_0x13e6c5(0x1bd)](_0x1607a6,_0x13e6c5(0x1e4))),this[_0x13e6c5(0x183)][_0x13e6c5(0x12d)](_0x5e137c),this[_0x13e6c5(0x183)][_0x13e6c5(0x24f)](_0x50a974,_0xdcb7df);}),this[_0x340dfe(0x23c)](_0x1c6563,_0x340dfe(0x182),(_0xb0e19c,_0x59fd0c,_0x3f9f8d)=>{const _0x26cdd2=_0x340dfe,_0x10dfea=this[_0x26cdd2(0x183)][_0x26cdd2(0x1ec)](_0x59fd0c);if(!_0x10dfea)return;const _0x3ba4e7=this[_0x26cdd2(0x1af)][_0x26cdd2(0x16f)](_0x10dfea[_0x26cdd2(0x1f2)])[_0x26cdd2(0x126)](_0x10dfea[_0x26cdd2(0x213)]);_0x10dfea[_0x26cdd2(0x181)][_0x26cdd2(0x118)](_0x1b2efa=>_0x3ba4e7[_0x26cdd2(0x1bd)](_0x1b2efa,_0x26cdd2(0x28c))),this[_0x26cdd2(0x183)][_0x26cdd2(0x12d)](_0x59fd0c),this[_0x26cdd2(0x183)][_0x26cdd2(0x24f)](_0x3f9f8d,_0x10dfea);});}async[_0x4aec30(0x1bc)](_0x509809){const _0x46d259=_0x4aec30;this[_0x46d259(0x198)][_0x46d259(0x175)][_0x46d259(0x11d)](_0x46d259(0x14f))&&this[_0x46d259(0x198)][_0x46d259(0x175)][_0x46d259(0x1ec)](_0x46d259(0x14f))[_0x46d259(0x111)](),(this[_0x46d259(0x198)][_0x46d259(0x175)][_0x46d259(0x1ec)](_0x330bc8)[_0x46d259(0x143)][_0x46d259(0x150)](_0x46d259(0x160)),this[_0x46d259(0x1aa)][_0x46d259(0x194)](_0x46d259(0x241)),this[_0x46d259(0x1aa)][_0x46d259(0x282)](!0x0),await this[_0x46d259(0x201)]());try{await this[_0x46d259(0x158)][_0x46d259(0x214)](_0x509809)[_0x46d259(0x20d)](),await this[_0x46d259(0x155)](_0x509809),this[_0x46d259(0x1db)]('\x20'),await this[_0x46d259(0x1af)][_0x46d259(0x15b)](_0x509809,this[_0x46d259(0x205)][_0x46d259(0x1f3)]),this[_0x46d259(0x1af)][_0x46d259(0x13d)]()&&this[_0x46d259(0x1b6)]();}catch(_0x33b1f4){this[_0x46d259(0x1aa)][_0x46d259(0x129)]({'errorMessage':_0x21db9d(this[_0x46d259(0x198)][_0x46d259(0x14d)],_0x46d259(0x200)),'id':_0x509809}),this[_0x46d259(0x209)](new _0x3f52cf(_0x46d259(0x1ae),this,{'error':_0x33b1f4}));}finally{this[_0x46d259(0x1aa)][_0x46d259(0x27b)](),this[_0x46d259(0x1aa)][_0x46d259(0x194)](_0x46d259(0x217)),this[_0x46d259(0x1aa)][_0x46d259(0x282)](!0x1);}}async[_0x4aec30(0x1f7)](){const _0x35cdf0=_0x4aec30,_0x523eab=this[_0x35cdf0(0x158)][_0x35cdf0(0x1e1)](this[_0x35cdf0(0x246)](),{'limit':0x1,'sortBy':_0x35cdf0(0x1c8)});try{const _0x87a577=await _0x523eab[_0x35cdf0(0x26c)]();return _0x87a577[_0x35cdf0(0x238)]?_0x87a577[0x0]['id']:_0x35cdf0(0x141);}catch(_0x5a31ed){return this[_0x35cdf0(0x1aa)][_0x35cdf0(0x129)]({'errorMessage':_0x21db9d(this[_0x35cdf0(0x198)][_0x35cdf0(0x14d)],_0x35cdf0(0x200)),'id':_0x4720f6()}),this[_0x35cdf0(0x209)](new _0x3f52cf(_0x35cdf0(0x124),this,{'error':_0x5a31ed})),this[_0x35cdf0(0x1aa)][_0x35cdf0(0x282)](!0x1),this[_0x35cdf0(0x1aa)][_0x35cdf0(0x137)](),null;}}[_0x4aec30(0x24d)](_0x115608){const _0x1c142b=_0x4aec30;this[_0x1c142b(0x1af)]['id']===_0x115608&&this[_0x1c142b(0x155)]();}[_0x4aec30(0x1b6)](){const _0x541927=_0x4aec30;this[_0x541927(0x1af)]?.[_0x541927(0x25c)](_0x21db9d(this[_0x541927(0x198)][_0x541927(0x14d)],_0x541927(0x1c7)));}async[_0x4aec30(0x21c)](){const _0x6a5a53=_0x4aec30,_0x243208=this[_0x6a5a53(0x205)][_0x6a5a53(0x20a)]();this[_0x6a5a53(0x1af)]?.[_0x6a5a53(0x243)](_0x243208),this[_0x6a5a53(0x1b6)]();}[_0x4aec30(0x12b)](){const _0x269901=_0x4aec30;this[_0x269901(0x1af)]?.[_0x269901(0x20f)]();}[_0x4aec30(0x20b)](){const _0x3ea81e=_0x4aec30;this[_0x3ea81e(0x1aa)][_0x3ea81e(0x20b)]();}async[_0x4aec30(0x11e)](){const _0x5ec010=_0x4aec30;await this[_0x5ec010(0x155)]();}async[_0x4aec30(0x26a)]({message:_0x3b0807,attributes:_0xdc0d36}){const _0x1bf6cf=_0x4aec30;await this[_0x1bf6cf(0x21f)]({'userMessage':_0x3b0807,'attributes':_0xdc0d36});}[_0x4aec30(0x246)](){const _0x1aa12e=_0x4aec30,_0x353081=this[_0x1aa12e(0x198)][_0x1aa12e(0x28f)][_0x1aa12e(0x1ec)](_0x1aa12e(0x266));if(!_0x353081)throw new _0x3f52cf(_0x1aa12e(0x1a8),this);return _0x353081;}async[_0x4aec30(0x155)](_0x457de0){const _0x5ce60c=_0x4aec30;try{this[_0x5ce60c(0x1aa)][_0x5ce60c(0x144)](),await this[_0x5ce60c(0x1bf)](_0x457de0);}catch(_0x593672){this[_0x5ce60c(0x1aa)][_0x5ce60c(0x129)]({'errorMessage':_0x21db9d(this[_0x5ce60c(0x198)][_0x5ce60c(0x14d)],_0x5ce60c(0x21a)),'id':_0x457de0||_0x4720f6()}),console[_0x5ce60c(0x275)](_0x593672),this[_0x5ce60c(0x1af)]=void 0x0,this[_0x5ce60c(0x1aa)][_0x5ce60c(0x137)]();}}async[_0x4aec30(0x1bf)](_0x4c6e15){const _0x1f4248=_0x4aec30;let _0x52e5bf;this[_0x1f4248(0x198)][_0x1f4248(0x175)][_0x1f4248(0x11d)](_0x1f4248(0x14f))&&this[_0x1f4248(0x198)][_0x1f4248(0x175)][_0x1f4248(0x1ec)](_0x1f4248(0x14f))[_0x1f4248(0x111)](),_0x4c6e15||!this[_0x1f4248(0x1af)]?_0x52e5bf=this[_0x1f4248(0x198)][_0x1f4248(0x28f)][_0x1f4248(0x1ec)](_0x1f4248(0x219)):this[_0x1f4248(0x1aa)][_0x1f4248(0x19c)]&&(_0x52e5bf=this[_0x1f4248(0x1af)][_0x1f4248(0x1c4)]['id']),await this[_0x1f4248(0x201)]();const _0x3c9c20=this[_0x1f4248(0x246)](),_0x6b6ff0=_0x4c6e15||_0x4720f6();this[_0x1f4248(0x1af)]=new _0x5a7bde({'connector':this[_0x1f4248(0x158)],'chatModels':this[_0x1f4248(0x264)],'selectedModelId':_0x52e5bf,'conversationId':_0x6b6ff0,'group':_0x3c9c20,'getEditor':()=>_0x290b8e(this[_0x1f4248(0x198)]),'isFromHistory':!!_0x4c6e15}),this[_0x1f4248(0x1af)][_0x1f4248(0x22f)](_0x1f4248(0x142),_0x1f4248(0x1f8))['to'](this),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x247),(_0x2cfc23,_0x561c47)=>{const _0x3cbdd3=_0x1f4248;this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x27a)](_0x561c47),this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x1a6)](),this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x1cd)](),this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x271)](),_0x4c6e15||(this[_0x3cbdd3(0x1aa)][_0x3cbdd3(0x257)](),this[_0x3cbdd3(0x1b6)]());}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x26b),(_0x3a47c6,_0x314f2b)=>{const _0x122d8c=_0x1f4248;this[_0x122d8c(0x1aa)][_0x122d8c(0x140)](_0x314f2b[_0x122d8c(0x22d)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x248),(_0x56808a,_0x1e766c)=>{const _0x2866d8=_0x1f4248;this[_0x2866d8(0x1aa)][_0x2866d8(0x263)](_0x1e766c);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x240),()=>{const _0x563e54=_0x1f4248,_0x2110e2=this[_0x563e54(0x1aa)][_0x563e54(0x167)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x563e54(0x1aa)][_0x563e54(0x192)](_0x2110e2);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x298),()=>{const _0x3a9532=_0x1f4248,_0x43e54d=this[_0x3a9532(0x1aa)][_0x3a9532(0x167)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x3a9532(0x1aa)][_0x3a9532(0x192)](_0x43e54d);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x220),(_0x1a6a36,_0x2c5c6d)=>{const _0x2743fc=_0x1f4248;this[_0x2743fc(0x1aa)][_0x2743fc(0x255)](_0x2c5c6d,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x11f),(_0xfc56d7,_0x3f6e74)=>{const _0x2e88ac=_0x1f4248;this[_0x2e88ac(0x1aa)][_0x2e88ac(0x255)](_0x3f6e74,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1f8),()=>{const _0x2e0b94=_0x1f4248;this[_0x2e0b94(0x1aa)][_0x2e0b94(0x163)]();}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x17a),async()=>{const _0x1ba3c7=_0x1f4248;await this[_0x1ba3c7(0x1aa)][_0x1ba3c7(0x289)]();}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x18f),(_0x485ed7,_0x124fa4)=>{const _0x474ad2=_0x1f4248;this[_0x474ad2(0x1aa)][_0x474ad2(0x12e)](_0x124fa4['id']);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1f0),(_0x61c809,_0x363156,_0x4b7896)=>{const _0x12094d=_0x1f4248;this[_0x12094d(0x1db)](_0x363156,_0x4b7896);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x273),(_0x50e823,_0x28a5cc)=>{const _0x2b557b=_0x1f4248;_0x2b557b(0x295)===_0x28a5cc[_0x2b557b(0x1ce)]?this[_0x2b557b(0x1aa)][_0x2b557b(0x23f)](_0x28a5cc):this[_0x2b557b(0x1aa)][_0x2b557b(0x15e)](_0x28a5cc);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x14c),async(_0x2348be,_0x8ad69e)=>{const _0x14d7f3=_0x1f4248;await this[_0x14d7f3(0x10f)]({'reply':_0x8ad69e});}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x197),(_0x5dc1fa,{reply:_0x2fdb42,index:_0x1e54a5,state:_0x3450d3})=>{const _0x31da4c=_0x1f4248;this[_0x31da4c(0x1aa)][_0x31da4c(0x114)]({'id':_0x2fdb42['id'],'index':_0x1e54a5,'state':_0x3450d3}),this[_0x31da4c(0x22e)]?.[_0x31da4c(0x213)][_0x31da4c(0x216)](_0x2fdb42['id'])&&this[_0x31da4c(0x22e)]?.[_0x31da4c(0x262)]==_0x1e54a5&&this[_0x31da4c(0x112)]?.[_0x31da4c(0x1fd)](_0x3450d3);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1a9),(_0x5ccd5f,_0x5a13b2)=>{const _0xd4575b=_0x1f4248;if(this[_0xd4575b(0x1aa)][_0xd4575b(0x123)](_0x5a13b2[_0xd4575b(0x1ba)],_0x5a13b2[_0xd4575b(0x25a)]),_0xd4575b(0x27c)===_0x5a13b2[_0xd4575b(0x1ba)][_0xd4575b(0x1ce)]){const _0x2d13b5=[..._0x290b8e(this[_0xd4575b(0x198)])[_0xd4575b(0x193)][_0xd4575b(0x202)][_0xd4575b(0x27c)][_0xd4575b(0x1fa)]()];this[_0xd4575b(0x205)][_0xd4575b(0x154)](_0x2d13b5,_0xd4575b(0x139)+this[_0xd4575b(0x1af)]?.['id']);}}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x172),(_0x26cd34,_0x2f2d34)=>{const _0x1c3a02=_0x1f4248;this[_0x1c3a02(0x1aa)][_0x1c3a02(0x204)](_0x2f2d34[_0x1c3a02(0x135)]),_0x1c3a02(0x145)==_0x2f2d34[_0x1c3a02(0x135)]&&this[_0x1c3a02(0x12b)](),_0x1c3a02(0x27c)===_0x2f2d34[_0x1c3a02(0x1ce)]&&this[_0x1c3a02(0x205)][_0x1c3a02(0x119)](_0x1c3a02(0x139)+this[_0x1c3a02(0x1af)]?.['id']);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1ea),(_0x2b3336,_0x12920b)=>{const _0x2c32ad=_0x1f4248;this[_0x2c32ad(0x1aa)][_0x2c32ad(0x130)](_0x12920b[_0x2c32ad(0x1ba)][_0x2c32ad(0x135)],_0x12920b[_0x2c32ad(0x25a)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x19f),(_0x14fb63,_0x45036f)=>{const _0x3d406c=_0x1f4248;this[_0x3d406c(0x1aa)][_0x3d406c(0x1c1)](_0x45036f[_0x3d406c(0x157)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x151),(_0x4be9af,_0x48b993)=>{const _0x3bde14=_0x1f4248;this[_0x3bde14(0x1aa)][_0x3bde14(0x185)](_0x48b993[_0x3bde14(0x1e0)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x168),(_0x2a1bbb,_0x3cc889)=>{const _0x1647e9=_0x1f4248;this[_0x1647e9(0x1aa)][_0x1647e9(0x17f)](_0x3cc889[_0x1647e9(0x12a)],_0x3cc889[_0x1647e9(0x188)],_0x3cc889[_0x1647e9(0x222)],_0x3cc889[_0x1647e9(0x15c)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x1df),(_0x3889e4,_0x456332)=>{const _0x272923=_0x1f4248;this[_0x272923(0x1aa)][_0x272923(0x287)](_0x456332[_0x272923(0x12a)],_0x456332[_0x272923(0x17d)],_0x456332[_0x272923(0x1d2)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x279),(_0x2ef689,_0x4146a6)=>{const _0x589c7f=_0x1f4248;this[_0x589c7f(0x1aa)][_0x589c7f(0x19e)](_0x4146a6);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x26f),async(_0x481473,_0x50b8a2)=>{const _0x1987a3=_0x1f4248,_0x225848=(await this[_0x1987a3(0x264)][_0x1987a3(0x115)]())[_0x1987a3(0x159)](_0x1948f6=>_0x1948f6['id']===_0x50b8a2[_0x1987a3(0x1c4)]?.['id'])||null;this[_0x1987a3(0x1aa)][_0x1987a3(0x233)](_0x225848,_0x50b8a2[_0x1987a3(0x286)]);}),this[_0x1f4248(0x1af)]['on'](_0x1f4248(0x275),(_0x909f22,{error:_0x3c4060,interactionId:_0x1dfb8c,fileName:_0x42247a,url:_0x2d541f,sourceId:_0x1427ba,sourceLabel:_0x2ab8b5})=>{const _0xb14ba9=_0x1f4248,_0x129db2=_0x1dfb8c?_0x1dfb8c+':'+_0x4720f6():_0x4720f6();_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1cc))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x231)]({'staticMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1ef)),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x124))||_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1b5))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x21a)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1d3))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x179),_0x42247a),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x174))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1fb),_0x2d541f),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x249))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x23d)),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x259))?this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1e8)),'id':_0x129db2}):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x147))?(_0x1427ba&&this[_0xb14ba9(0x1aa)][_0xb14ba9(0x14b)](_0x1427ba),this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x291),_0x2ab8b5||_0xb14ba9(0x188)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x221))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x292)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1a3))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x178)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x127))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x269)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x234))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x138)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x258))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x187)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):_0x3c4060[_0xb14ba9(0x149)][_0xb14ba9(0x116)](_0xb14ba9(0x1cb))?(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x237)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060)):(this[_0xb14ba9(0x1aa)][_0xb14ba9(0x129)]({'errorMessage':_0x21db9d(this[_0xb14ba9(0x198)][_0xb14ba9(0x14d)],_0xb14ba9(0x1a0)),'id':_0x129db2}),this[_0xb14ba9(0x209)](_0x3c4060));}),await this[_0x1f4248(0x1af)][_0x1f4248(0x191)](this[_0x1f4248(0x198)][_0x1f4248(0x28f)][_0x1f4248(0x1ec)](_0x1f4248(0x17e))),_0x4c6e15||await this[_0x1f4248(0x1af)][_0x1f4248(0x265)]();}async[_0x4aec30(0x21f)]({userMessage:_0x796e6e,attributes:_0x5b4976}){const _0x5641ad=_0x4aec30;if(!this[_0x5641ad(0x1af)])throw new _0x3f52cf(_0x5641ad(0x1e6));if(this[_0x5641ad(0x1af)][_0x5641ad(0x1b3)]()){const _0x17a232=await this[_0x5641ad(0x205)][_0x5641ad(0x15d)]();await this[_0x5641ad(0x1af)][_0x5641ad(0x1c5)](_0x17a232);}this[_0x5641ad(0x1af)]['id']&&this[_0x5641ad(0x1af)][_0x5641ad(0x13e)]&&await this[_0x5641ad(0x1af)][_0x5641ad(0x16a)]({'userMessage':_0x796e6e,'attributes':_0x5b4976});}[_0x4aec30(0x270)](){const _0x310d29=_0x4aec30;console[_0x310d29(0x1da)](_0x310d29(0x16e));}[_0x4aec30(0x235)](_0x2e6270){const _0x21fd25=_0x4aec30;this[_0x21fd25(0x1aa)][_0x21fd25(0x10e)](_0x2e6270);}[_0x4aec30(0x209)](_0x52bd02){const _0x10aabe=_0x4aec30;_0x306496(_0x52bd02[_0x10aabe(0x149)]);}[_0x4aec30(0x1d9)](_0x44133c){const _0x5de069=_0x4aec30;this[_0x5de069(0x1af)]?.[_0x5de069(0x27f)](_0x44133c);}[_0x4aec30(0x146)](){const _0x79d522=_0x4aec30;this[_0x79d522(0x1af)]?.[_0x79d522(0x227)]();}[_0x4aec30(0x1a4)](){const _0x54a72c=_0x4aec30;this[_0x54a72c(0x1af)]?.[_0x54a72c(0x136)]();}[_0x4aec30(0x1d7)](_0xb8aaa4){const _0x3e82ce=_0x4aec30,[_0x120933,_0x42afe1]=_0xb8aaa4[_0x3e82ce(0x207)](':'),_0x72261e=this[_0x3e82ce(0x1af)][_0x3e82ce(0x16f)](_0x120933),_0x1b3a40=_0x72261e[_0x3e82ce(0x126)](_0x42afe1);return{'interaction':_0x72261e,'reply':_0x1b3a40};}[_0x4aec30(0x1c9)](_0x316152,_0x32ce86=!0x1){const _0x3236f9=_0x4aec30,_0x3b4e35=_0x290b8e(this[_0x3236f9(0x198)]),_0x3ff9ed={'target':_0x3b4e35[_0x3236f9(0x23a)][_0x3236f9(0x143)][_0x3236f9(0x277)][_0x3236f9(0x166)](_0x3b4e35[_0x3236f9(0x23a)][_0x3236f9(0x278)][_0x3236f9(0x180)](_0x316152)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x32ce86};_0x32ce86&&(_0x3ff9ed[_0x3236f9(0x1ca)]=!0x0),_0x59f77d(_0x3ff9ed);}[_0x4aec30(0x1db)](_0x8cb4cb,_0x5547da=!0x1){const _0x42fbdc=_0x4aec30;this[_0x42fbdc(0x1aa)][_0x42fbdc(0x1f0)](_0x8cb4cb||_0x21db9d(this[_0x42fbdc(0x198)][_0x42fbdc(0x14d)],_0x42fbdc(0x18a)),_0x5547da);}async[_0x4aec30(0x10f)]({reply:_0x381995,renderingStrategy:_0xff338d}){const _0x1f8631=_0x4aec30,{id:_0x375bd5,interactionId:_0x4ce8e7,isDone:_0x5a71ca,type:_0x479293,parsedContent:_0x5e98c7}=_0x381995,_0x5c5eef=_0x4ce8e7+':'+_0x375bd5;if(_0x1f8631(0x25b)===_0x479293){const _0x37f1f8=_0x381995[_0x1f8631(0x28b)]({'showDiff':this[_0x1f8631(0x1aa)][_0x1f8631(0x1eb)]});await this[_0x1f8631(0x1aa)][_0x1f8631(0x15f)]({'id':_0x5c5eef,'parts':_0x37f1f8,'renderingStrategy':_0xff338d,'isDone':_0x5a71ca});}else _0x1f8631(0x295)===_0x479293&&await this[_0x1f8631(0x1aa)][_0x1f8631(0x1fe)]({'id':_0x5c5eef,'parsedContent':_0x5e98c7,'renderingStrategy':_0xff338d,'isDone':_0x5a71ca});_0x5a71ca&&_0x381995[_0x1f8631(0x196)][_0x1f8631(0x238)]>0x0&&this[_0x1f8631(0x1aa)][_0x1f8631(0x1ed)](_0x5c5eef,_0x381995[_0x1f8631(0x196)]);}async[_0x4aec30(0x201)](){const _0x57eef4=_0x4aec30,_0x3e5909=this[_0x57eef4(0x1af)]?.[_0x57eef4(0x223)];_0x3e5909&&(_0x3e5909[_0x57eef4(0x131)](),this[_0x57eef4(0x1aa)][_0x57eef4(0x27d)](_0x3e5909));}async[_0x4aec30(0x215)](){const _0x3cb086=_0x4aec30,_0x1d14f2=this[_0x3cb086(0x1af)]?.[_0x3cb086(0x223)];if(_0x1d14f2){for await(const _0x4f6e96 of _0x1d14f2[_0x3cb086(0x268)])await this[_0x3cb086(0x10f)]({'reply':_0x4f6e96,'renderingStrategy':_0x3cb086(0x241)});}}[_0x4aec30(0x22c)](_0x2a388f){const _0x2600b7=_0x4aec30,_0x32e0b7={'positiveCount':_0x2a388f[_0x2600b7(0x1a5)][_0x2600b7(0x294)](_0x3d2bed=>_0x2600b7(0x28c)===_0x3d2bed[_0x2600b7(0x20e)])[_0x2600b7(0x238)],'totalCount':_0x2a388f[_0x2600b7(0x1a5)][_0x2600b7(0x238)],'modificationId':_0x2a388f['id']},_0x572098=this[_0x2600b7(0x1af)][_0x2600b7(0x16f)](_0x2a388f[_0x2600b7(0x1f2)])[_0x2600b7(0x226)];_0x572098&&this[_0x2600b7(0x158)][_0x2600b7(0x1e9)](this[_0x2600b7(0x1af)]['id'],_0x572098,_0x32e0b7);}[_0x4aec30(0x171)](_0x5e6343){const _0x58bf86=_0x4aec30;let _0x5e461=null,_0x47f95a=null;this['on'](_0x58bf86(0x142),(_0x56ac52,_0x57fb8d,_0x3fb62c)=>{const _0x7ab809=_0x58bf86;_0x3fb62c['id']!==_0x5e461&&(_0x5e461=_0x3fb62c['id'],_0x47f95a=this[_0x7ab809(0x1a1)](_0x3fb62c)),_0x5e6343(_0x57fb8d,_0x47f95a);});}[_0x4aec30(0x1a1)](_0x5caafa){const _0x322e10=_0x4aec30,_0x49b20e=this[_0x322e10(0x1aa)],_0x2fdce6=()=>{const _0x17e981=_0x322e10;_0x5caafa[_0x17e981(0x16c)](),_0x5caafa[_0x17e981(0x23b)](),_0x49b20e[_0x17e981(0x195)]();},_0x16bcc0=()=>{const _0x57f55f=_0x322e10;_0x5caafa[_0x57f55f(0x1c2)]&&(_0x5caafa[_0x57f55f(0x1c2)][_0x57f55f(0x1c0)](),_0x5caafa[_0x57f55f(0x1c2)]=void 0x0);};return{'insertTextReply':(_0x55cd49,_0x153529)=>{const _0x6ed317=_0x322e10;_0x16bcc0(),_0x2fdce6();const _0x5e703e=_0x5caafa[_0x6ed317(0x1c2)]=_0x5caafa[_0x6ed317(0x283)]({'type':_0x6ed317(0x295),'interactionId':_0x5caafa['id'],'content':_0x55cd49,'id':_0x153529||_0x4720f6()});return _0x16bcc0(),_0x5e703e;},'insertCustomElement':async(_0x46ebab,_0x3a138d)=>(_0x16bcc0(),_0x2fdce6(),_0x49b20e[_0x322e10(0x21e)](_0x46ebab,_0x3a138d||_0x4720f6())),'setLoadingMessage':_0x4f5a73=>{const _0x3148cd=_0x322e10;_0x49b20e[_0x3148cd(0x192)](_0x4f5a73);},'clearLoadingMessage':()=>{const _0x927592=_0x322e10;_0x49b20e[_0x927592(0x195)]();}};}}
|
|
23
|
+
const _0xd55167=_0x130b;(function(_0x544136,_0x16e562){const _0x61a648=_0x130b,_0x4cc10=_0x544136();while(!![]){try{const _0x5bd4ff=parseInt(_0x61a648(0x27a))/0x1+parseInt(_0x61a648(0x128))/0x2*(parseInt(_0x61a648(0x1a7))/0x3)+-parseInt(_0x61a648(0x130))/0x4*(-parseInt(_0x61a648(0x257))/0x5)+parseInt(_0x61a648(0x23e))/0x6+-parseInt(_0x61a648(0x123))/0x7+-parseInt(_0x61a648(0x1a8))/0x8*(parseInt(_0x61a648(0x13d))/0x9)+parseInt(_0x61a648(0x194))/0xa*(-parseInt(_0x61a648(0x207))/0xb);if(_0x5bd4ff===_0x16e562)break;else _0x4cc10['push'](_0x4cc10['shift']());}catch(_0x7e4c6b){_0x4cc10['push'](_0x4cc10['shift']());}}}(_0x6326,0x5a791));import{ContextPlugin as _0x2a6f07,Editor as _0x25028b}from'ckeditor5/src/core.js';function _0x130b(_0x16db60,_0x4e0e9e){const _0x632600=_0x6326();return _0x130b=function(_0x130b09,_0x3224a2){_0x130b09=_0x130b09-0xee;let _0x216d8d=_0x632600[_0x130b09];return _0x216d8d;},_0x130b(_0x16db60,_0x4e0e9e);}import{BodyCollection as _0x652687}from'ckeditor5/src/ui.js';import{CKEditorError as _0x530add,logError as _0x59170a,scrollViewportToShowTarget as _0x535cd8,uid as _0x14288b}from'ckeditor5/src/utils.js';import{AIConnector as _0x3a059d}from'../aicore/aiconnector.js';import{AITabs as _0x216e50}from'../aitabs/aitabs.js';import{AIChatConversation as _0x5e8d16}from'./model/aichatconversation.js';import{getTranslation as _0x2a2ee7}from'../aicore/utils/common-translations.js';import{AIModels as _0x487057}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x431b31}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x19b14b,DATA_ID_MODEL_ATTRIBUTE as _0x35bef5}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2f1bdf,getOperationsFromReply as _0x1deed5}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xa6396a,getMinimalSelection as _0x2aa2f8}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x53e345,_DetachOperation as _0x393399}from'ckeditor5/src/engine.js';import{findOne as _0x5955b6,getAttribute as _0xfcd8bd,serialize as _0x5921ad,Document as _0x10dcfc,findByAttribute as _0x40dbf0}from'../aicore/utils/htmlparser.js';export class AIChatController extends _0x2a6f07{[_0xd55167(0x140)];[_0xd55167(0x26a)];[_0xd55167(0x1b2)];[_0xd55167(0x276)];[_0xd55167(0x1df)];[_0xd55167(0x163)]=new Map();[_0xd55167(0x24a)]=null;[_0xd55167(0x101)];static get[_0xd55167(0x186)](){return[_0x3a059d,_0x19b14b];}static get[_0xd55167(0x14d)](){const _0x1e970a=_0xd55167;return _0x1e970a(0x24d);}static get[_0xd55167(0x210)](){return!0x0;}static get[_0xd55167(0x109)](){return!0x0;}[_0xd55167(0x23f)](){const _0x103c9a=_0xd55167;this[_0x103c9a(0x101)]=new _0x652687(this[_0x103c9a(0x16b)][_0x103c9a(0x1cc)]),this[_0x103c9a(0x101)][_0x103c9a(0x12e)](),this[_0x103c9a(0x26a)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x240)),this[_0x103c9a(0x1b2)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x173)),this[_0x103c9a(0x140)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x148)),this[_0x103c9a(0x276)]=new _0x487057({'connector':this[_0x103c9a(0x26a)],'config':this[_0x103c9a(0x16b)][_0x103c9a(0x13c)][_0x103c9a(0x1fc)](_0x103c9a(0x127)),'locale':this[_0x103c9a(0x16b)][_0x103c9a(0x1cc)]});const _0x5f59b9=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x219));this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x21c),()=>{const _0x9fa2d0=_0x103c9a;this[_0x9fa2d0(0x20c)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1ea),(_0x30202d,_0x162a1b)=>{const _0x1ad690=_0x103c9a;this[_0x1ad690(0x11b)]({'userMessage':_0x162a1b});}),this[_0x103c9a(0x218)](_0x5f59b9,_0x103c9a(0x232),(_0x314263,_0x5cd489)=>{const _0x2997cb=_0x103c9a;this[_0x2997cb(0x25a)](_0x5cd489);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1fb),()=>{const _0x39b49=_0x103c9a;_0x5f59b9[_0x39b49(0x278)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x139),async()=>{const _0x808e46=_0x103c9a;await this[_0x808e46(0x106)](),await this[_0x808e46(0x1ba)](),this[_0x808e46(0x201)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x15d),()=>{const _0x2f2d5a=_0x103c9a;this[_0x2f2d5a(0x100)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x161),(_0x38f5f6,_0xc364e5)=>{const _0x4f92b2=_0x103c9a;this[_0x4f92b2(0x122)]?.[_0x4f92b2(0x22a)](Array[_0x4f92b2(0x126)](_0xc364e5));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x174),(_0x24db01,_0x19d2f2)=>{const _0x4633b1=_0x103c9a;this[_0x4633b1(0x122)]?.[_0x4633b1(0x174)](_0x19d2f2);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x11d),(_0x348215,_0x5444d2)=>{const _0x2abbde=_0x103c9a;_0x5444d2[_0x2abbde(0x204)](this[_0x2abbde(0x16b)]);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x274),(_0x284aba,_0x256caf)=>{const _0x4b9eb4=_0x103c9a;this[_0x4b9eb4(0x122)]?.[_0x4b9eb4(0x274)](_0x256caf[_0x4b9eb4(0x19e)],_0x256caf[_0x4b9eb4(0x258)]);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x154),(_0x28225f,_0x1104f9)=>{const _0x533de1=_0x103c9a;this[_0x533de1(0x1b1)](_0x1104f9);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x18c),(_0x539c27,_0x1152d7)=>{const _0x309921=_0x103c9a;this[_0x309921(0x122)]?.[_0x309921(0x18c)](_0x1152d7[_0x309921(0x137)],_0x1152d7[_0x309921(0x1ec)],_0x1152d7[_0x309921(0x14c)]);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1b9),()=>{const _0xf9c305=_0x103c9a;this[_0xf9c305(0x1aa)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x12a),()=>{const _0x7d6a45=_0x103c9a;this[_0x7d6a45(0x22b)]();}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x102),(_0x4b4112,_0xf35d06)=>{const _0x1bfc87=_0x103c9a;this[_0x1bfc87(0x122)]?.[_0x1bfc87(0x1a5)](_0xf35d06);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0xf8),(_0x1bd8a,{replyId:_0x8b86dd})=>{const _0x2b44ca=_0x103c9a;console[_0x2b44ca(0x220)](_0x2b44ca(0x1a6),_0x8b86dd);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x143),(_0x3d5bcd,{replyId:_0x111f5c})=>{const _0xa39884=_0x103c9a;console[_0xa39884(0x220)](_0xa39884(0x12f),_0x111f5c);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x244),(_0x4b66a6,_0x5da662)=>{const _0x252a57=_0x103c9a;this[_0x252a57(0x152)](_0x5da662);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1bd),(_0x536606,{replyId:_0xb6ca02,partIndex:_0x2f2719})=>{const _0x1837c9=_0x103c9a;this[_0x1837c9(0x1bf)]=this[_0x1837c9(0x1b2)][_0x1837c9(0x1d2)],this[_0x1837c9(0x224)](_0xb6ca02,_0x2f2719);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x21f),(_0x202fd6,{replyId:_0x4c4a44,partIndex:_0x446ee6})=>{const _0x81458c=_0x103c9a,_0x246534=this[_0x81458c(0x119)](_0x4c4a44,_0x446ee6);_0x246534&&_0x81458c(0x18a)!=_0x246534[_0x81458c(0x253)][_0x81458c(0x110)][_0x81458c(0x132)]&&this[_0x81458c(0x140)][_0x81458c(0x21a)]([_0x246534[_0x81458c(0x253)]],_0x81458c(0xf0));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x183),()=>{const _0x57cff4=_0x103c9a;this[_0x57cff4(0x140)][_0x57cff4(0x21d)](_0x57cff4(0xf0));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x1f5),(_0x1b79cf,_0x1443a9)=>{const _0x19aed4=_0x103c9a;this[_0x19aed4(0x140)][_0x19aed4(0x21d)](_0x19aed4(0xf0)),this[_0x19aed4(0x144)](_0x1443a9);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x275),async(_0x3e3be9,{replyId:_0x32341e,showDiff:_0x543eca})=>{const _0x326c03=_0x103c9a,{reply:_0x240111}=this[_0x326c03(0x1fe)](_0x32341e),_0x21687b=_0x240111[_0x326c03(0x1a4)]({'showDiff':_0x543eca});await this[_0x326c03(0x1b2)][_0x326c03(0x214)]({'id':_0x240111['id'],'parts':_0x21687b,'renderingStrategy':_0x326c03(0xef)});}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1b2)],_0x103c9a(0x12d),(_0x51d1dd,{replyId:_0x19d589,partIndex:_0xe72c29})=>{const _0x5e5a08=_0x103c9a;this[_0x5e5a08(0xf7)]({'replyId':_0x19d589,'partIndex':_0xe72c29}),this[_0x5e5a08(0x140)][_0x5e5a08(0x21d)](_0x5e5a08(0xf0));}),this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x168)](_0x103c9a(0x26c))&&(this[_0x103c9a(0x1df)]=this[_0x103c9a(0x16b)][_0x103c9a(0x164)][_0x103c9a(0x1fc)](_0x103c9a(0x26c)),this[_0x103c9a(0x157)](_0x103c9a(0x1bf),!0x1),this[_0x103c9a(0x1df)][_0x103c9a(0x19f)](_0x103c9a(0x1d2))['to'](this,_0x103c9a(0x1bf)),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x275),()=>{const _0x59a539=_0x103c9a,{replyId:_0x17485d,partIndex:_0x3c4585}=this[_0x59a539(0x24a)];this[_0x59a539(0x1bf)]=!this[_0x59a539(0x1bf)];const {reply:_0x1f1385}=this[_0x59a539(0x1fe)](_0x17485d),_0x1db44c=_0x1f1385[_0x59a539(0x1a4)]({'showDiff':this[_0x59a539(0x1bf)],'groupIndex':_0x3c4585});this[_0x59a539(0x1df)][_0x59a539(0xfe)]({'part':_0x1db44c[0x0],'renderingStrategy':_0x59a539(0xef),'keepErrors':!0x0});}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x1f5),()=>{const _0x320ca5=_0x103c9a,{replyId:_0x275655,partIndex:_0x3f3c7e}=this[_0x320ca5(0x24a)];this[_0x320ca5(0x144)]({'replyId':_0x275655,'partIndex':_0x3f3c7e}),this[_0x320ca5(0x1df)][_0x320ca5(0x1c2)](_0x320ca5(0x238));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x244),()=>{const _0x4b8f0f=_0x103c9a,{replyId:_0x3010fc,partIndex:_0xe7f693}=this[_0x4b8f0f(0x24a)];this[_0x4b8f0f(0x152)]({'replyId':_0x3010fc,'partIndex':_0xe7f693}),this[_0x4b8f0f(0x1df)][_0x4b8f0f(0x1c2)](_0x4b8f0f(0x238));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x12d),()=>{const _0x21c601=_0x103c9a,{replyId:_0x57547f,partIndex:_0x3a6683}=this[_0x21c601(0x24a)];this[_0x21c601(0xf7)]({'replyId':_0x57547f,'partIndex':_0x3a6683}),this[_0x21c601(0x1df)][_0x21c601(0x1c2)](_0x21c601(0x266));}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x216),()=>{const _0x40812d=_0x103c9a,{replyId:_0x43e0a7,partIndex:_0x26a3d1}=this[_0x40812d(0x24a)],_0x1788d5=this[_0x40812d(0x175)](_0x43e0a7,_0x26a3d1,_0x40812d(0x182));null!==_0x1788d5&&this[_0x40812d(0x224)](_0x43e0a7,_0x1788d5);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0xf5),()=>{const _0x500692=_0x103c9a,{replyId:_0x50cb35,partIndex:_0x291de8}=this[_0x500692(0x24a)],_0x400efa=this[_0x500692(0x175)](_0x50cb35,_0x291de8,_0x500692(0x1f9));null!==_0x400efa&&this[_0x500692(0x224)](_0x50cb35,_0x400efa);}),this[_0x103c9a(0x218)](this[_0x103c9a(0x1df)],_0x103c9a(0x176),(_0x2f604d,{id:_0x97a777})=>{const _0x58e909=_0x103c9a;if(_0x58e909(0x112)!==_0x97a777)return;const {replyId:_0x326781,partIndex:_0x42440c}=this[_0x58e909(0x24a)];this[_0x58e909(0x24a)]=null,this[_0x58e909(0x1b2)][_0x58e909(0x212)]({'id':_0x326781,'index':_0x42440c,'isActive':!0x1});}));}async[_0xd55167(0x142)](){const _0x4a065b=_0xd55167;this[_0x4a065b(0x16b)]instanceof _0x25028b?this[_0x4a065b(0x19c)](this[_0x4a065b(0x16b)]):this[_0x4a065b(0x218)](this[_0x4a065b(0x16b)][_0x4a065b(0xfc)],_0x4a065b(0x10c),(_0x3736fb,_0x431045)=>{const _0x408798=_0x4a065b;_0x431045['on'](_0x408798(0x116),()=>{const _0x3765c8=_0x408798;this[_0x3765c8(0x19c)](_0x431045);});});const _0x4fcbc8=this[_0x4a065b(0x16b)][_0x4a065b(0x13c)][_0x4a065b(0x1fc)](_0x4a065b(0x221));let _0x576a17=_0x4fcbc8;if(_0x4a065b(0x150)!=_0x4fcbc8||(_0x576a17=await this[_0x4a065b(0x20f)](),_0x576a17))return _0x4a065b(0x145)==_0x576a17?this[_0x4a065b(0x20c)]():this[_0x4a065b(0x1b3)](_0x576a17);}async[_0xd55167(0xf1)](){const _0x4f5064=_0xd55167;return await this[_0x4f5064(0x106)](),this[_0x4f5064(0x101)][_0x4f5064(0x230)](),super[_0x4f5064(0xf1)]();}[_0xd55167(0x152)](_0x3f3918){const _0x5309d0=_0xd55167,_0x542515=_0x431b31(this[_0x5309d0(0x16b)]);if(!_0x542515[_0x5309d0(0x164)][_0x5309d0(0x168)](_0x5309d0(0x1cf)))throw new _0x530add(_0x5309d0(0x23d),null);const _0x4980c5=this[_0x5309d0(0x16b)][_0x5309d0(0x164)][_0x5309d0(0x1fc)](_0x5309d0(0x1f7)),{reply:_0x27bc87,interaction:_0x451488}=this[_0x5309d0(0x1fe)](_0x3f3918[_0x5309d0(0x10f)]),_0x4f5bf=this[_0x5309d0(0x119)](_0x3f3918[_0x5309d0(0x10f)],_0x3f3918[_0x5309d0(0x120)]),_0x3ed143=void 0x0!==_0x3f3918[_0x5309d0(0x120)]?[_0x27bc87[_0x5309d0(0x21b)][_0x3f3918[_0x5309d0(0x120)]]]:_0x27bc87[_0x5309d0(0x21b)][_0x5309d0(0x153)](_0x566b8c=>_0x5309d0(0x227)==_0x566b8c[_0x5309d0(0x267)]),_0x339639=_0x3ed143[_0x5309d0(0x160)](_0x2f436b=>_0x27bc87[_0x5309d0(0x21b)][_0x5309d0(0x1ae)](_0x2f436b));if(!_0x4f5bf||_0x5309d0(0x18a)==_0x4f5bf[_0x5309d0(0x253)][_0x5309d0(0x110)][_0x5309d0(0x132)])return void _0x339639[_0x5309d0(0x22c)](_0x526558=>_0x27bc87[_0x5309d0(0x26f)](_0x526558,_0x5309d0(0x252)));_0x339639[_0x5309d0(0x22c)](_0x109d85=>_0x27bc87[_0x5309d0(0x26f)](_0x109d85,_0x5309d0(0x238)));const _0x4766e0=_0x1deed5({'editor':_0x542515,'reply':_0x27bc87,'interaction':_0x451488,'groups':_0x3ed143,'transform':!0x0,'documentCompare':_0x4980c5,'documentCompareOptions':{'anchor':_0x5309d0(0x131),'markDeletions':!0x0}});let _0x113282;_0x4f5bf&&this[_0x5309d0(0x1a3)](_0x4f5bf[_0x5309d0(0x253)]),_0x542515[_0x5309d0(0x113)][_0x5309d0(0x1d1)](_0x332a23=>{const _0x214aa8=_0x5309d0;_0x113282=_0x332a23[_0x214aa8(0x279)],_0x542515[_0x214aa8(0x164)][_0x214aa8(0x1fc)](_0x214aa8(0x104))[_0x214aa8(0x115)](_0x4766e0),this[_0x214aa8(0x140)][_0x214aa8(0x21d)](_0x214aa8(0xf0));}),this[_0x5309d0(0x163)][_0x5309d0(0x157)](_0x113282,{'interactionId':_0x451488['id'],'replyId':_0x27bc87['id'],'indexes':_0x339639[_0x5309d0(0x165)]()}),this[_0x5309d0(0x22d)](_0x27bc87);}[_0xd55167(0x144)](_0x3e2f8f){const _0x4acb7c=_0xd55167,_0x2ec4c0=_0x431b31(this[_0x4acb7c(0x16b)]),_0x1d450b=this[_0x4acb7c(0x16b)][_0x4acb7c(0x164)][_0x4acb7c(0x1fc)](_0x19b14b),{reply:_0x4de9f2,interaction:_0x369ca1}=this[_0x4acb7c(0x1fe)](_0x3e2f8f[_0x4acb7c(0x10f)]),_0x1aa3c1=this[_0x4acb7c(0x119)](_0x3e2f8f[_0x4acb7c(0x10f)],_0x3e2f8f[_0x4acb7c(0x120)]),_0x59039e=void 0x0!==_0x3e2f8f[_0x4acb7c(0x120)]?[_0x4de9f2[_0x4acb7c(0x21b)][_0x3e2f8f[_0x4acb7c(0x120)]]]:_0x4de9f2[_0x4acb7c(0x21b)][_0x4acb7c(0x153)](_0x251b6a=>_0x4acb7c(0x227)==_0x251b6a[_0x4acb7c(0x267)]),_0x5cb058=_0x59039e[_0x4acb7c(0x160)](_0x33719e=>_0x4de9f2[_0x4acb7c(0x21b)][_0x4acb7c(0x1ae)](_0x33719e));if(!_0x1aa3c1||_0x4acb7c(0x18a)==_0x1aa3c1[_0x4acb7c(0x253)][_0x4acb7c(0x110)][_0x4acb7c(0x132)])return void _0x5cb058[_0x4acb7c(0x22c)](_0x549f8b=>_0x4de9f2[_0x4acb7c(0x26f)](_0x549f8b,_0x4acb7c(0x252)));_0x5cb058[_0x4acb7c(0x22c)](_0x3ae4c5=>_0x4de9f2[_0x4acb7c(0x26f)](_0x3ae4c5,_0x4acb7c(0x238)));const _0x421d73=_0x1deed5({'editor':_0x2ec4c0,'reply':_0x4de9f2,'interaction':_0x369ca1,'groups':_0x59039e,'transform':!0x0,'documentCompare':_0x1d450b,'documentCompareOptions':{'anchor':_0x4acb7c(0x131),'markDeletions':!0x1}});let _0x552050;_0x1aa3c1&&this[_0x4acb7c(0x1a3)](_0x1aa3c1[_0x4acb7c(0x253)]),_0x2ec4c0[_0x4acb7c(0x113)][_0x4acb7c(0x1d1)](_0x5e0086=>{const _0x2f6174=_0x4acb7c;_0x552050=_0x5e0086[_0x2f6174(0x279)];for(const _0x571b06 of _0x421d73)_0x571b06[_0x2f6174(0x24f)]=_0x2ec4c0[_0x2f6174(0x113)][_0x2f6174(0x14b)][_0x2f6174(0x193)],_0x2f1bdf(_0x2ec4c0,_0x571b06),_0x5e0086[_0x2f6174(0x279)][_0x2f6174(0x105)](_0x571b06),_0x2ec4c0[_0x2f6174(0x113)][_0x2f6174(0x268)](_0x571b06);}),this[_0x4acb7c(0x163)][_0x4acb7c(0x157)](_0x552050,{'interactionId':_0x369ca1['id'],'replyId':_0x4de9f2['id'],'indexes':_0x5cb058[_0x4acb7c(0x165)]()}),this[_0x4acb7c(0x22d)](_0x4de9f2);}[_0xd55167(0xf7)](_0xa7f46){const _0x598f10=_0xd55167,{reply:_0x142262}=this[_0x598f10(0x1fe)](_0xa7f46[_0x598f10(0x10f)]);_0x142262[_0x598f10(0x26f)](_0xa7f46[_0x598f10(0x120)],_0x598f10(0x266));}[_0xd55167(0x224)](_0x3e5373,_0x54128d){const _0x26b496=_0xd55167;if(!this[_0x26b496(0x1df)])return;const {reply:_0x59786e}=this[_0x26b496(0x1fe)](_0x3e5373),_0x775186=_0x59786e[_0x26b496(0x1a4)]({'showDiff':this[_0x26b496(0x1bf)]});let _0x153f51,_0x2eb6ad;if(void 0x0!==_0x54128d?(_0x2eb6ad=_0x775186[_0x26b496(0x133)](_0x38d2a7=>_0x38d2a7[_0x26b496(0x1ed)]==_0x54128d),_0x153f51=_0x2eb6ad?.[_0x26b496(0x1ed)]):(_0x2eb6ad=_0x775186[0x0],_0x153f51=_0x2eb6ad[_0x26b496(0x1ed)]),this[_0x26b496(0x24a)]?.[_0x26b496(0x10f)]==_0x3e5373&&this[_0x26b496(0x24a)]?.[_0x26b496(0x120)]==_0x153f51)return;const _0x4185a4=this[_0x26b496(0x141)](_0x3e5373,_0x59786e,_0x2eb6ad);if(!_0x4185a4)return void this[_0x26b496(0x1df)][_0x26b496(0x1dd)]();this[_0x26b496(0x24a)]={'replyId':_0x3e5373,'partIndex':_0x153f51},this[_0x26b496(0x1a3)](_0x4185a4,!0x0);const _0x2b001c=this[_0x26b496(0x175)](_0x3e5373,_0x153f51,_0x26b496(0x182));this[_0x26b496(0x1df)][_0x26b496(0xfe)]({'part':_0x2eb6ad,'renderingStrategy':_0x26b496(0xef)}),this[_0x26b496(0x1df)][_0x26b496(0x1c9)]({'index':_0x153f51,'title':_0x2a2ee7(this[_0x26b496(0x16b)][_0x26b496(0x1cc)],_0x26b496(0x17f),(_0x153f51+0x1)[_0x26b496(0x178)]()),'showRotator':null!==_0x2b001c,'ranges':[_0x4185a4],'areActionsDisabled':_0x59786e[_0x26b496(0x117)]}),this[_0x26b496(0x1df)][_0x26b496(0x1c2)](_0x26b496(0x227)),this[_0x26b496(0x1b2)][_0x26b496(0xee)](_0x3e5373,_0x153f51),this[_0x26b496(0x1b2)][_0x26b496(0x212)]({'id':_0x3e5373,'index':_0x153f51,'isActive':!0x0});}[_0xd55167(0x175)](_0x43cff0,_0x70b0c6,_0x387dad){const _0x439d2f=_0xd55167,{reply:_0x11b28e}=this[_0x439d2f(0x1fe)](_0x43cff0),_0x9dad19=_0x11b28e[_0x439d2f(0x1a4)]({'showDiff':this[_0x439d2f(0x1bf)]});if(0x1==_0x9dad19[_0x439d2f(0x1bc)])return null;const _0x3e1258=_0x9dad19[_0x439d2f(0x1ef)](_0x225885=>_0x225885[_0x439d2f(0x1ed)]==_0x70b0c6),_0x5bf4a7=_0x439d2f(0x182)==_0x387dad?0x1:-0x1;let _0x59517a=_0x9dad19['at']((_0x3e1258+_0x5bf4a7)%_0x9dad19[_0x439d2f(0x1bc)])[_0x439d2f(0x1ed)],_0x5160a6=_0x9dad19[_0x59517a];for(;!this[_0x439d2f(0x141)](_0x43cff0,_0x11b28e,_0x5160a6);){if(_0x59517a=_0x9dad19['at']((_0x59517a+_0x5bf4a7)%_0x9dad19[_0x439d2f(0x1bc)])[_0x439d2f(0x1ed)],_0x59517a===_0x3e1258)return null;_0x5160a6=_0x9dad19[_0x59517a];}return _0x59517a;}[_0xd55167(0x141)](_0x6668de,_0x3524ad,_0xbe8444){const _0xc7f8f3=_0xd55167,_0x172959=_0x3524ad[_0xc7f8f3(0x21b)];if(!_0xbe8444[_0xc7f8f3(0x1da)])return null;const _0x2605b1=_0x172959[_0xc7f8f3(0x133)](_0x2e7e4f=>_0x2e7e4f[_0xc7f8f3(0x1ed)]==_0xbe8444[_0xc7f8f3(0x1ed)]);if(_0xc7f8f3(0x227)!==_0x2605b1?.[_0xc7f8f3(0x267)])return null;const _0x1f8f78=this[_0xc7f8f3(0x119)](_0x6668de,_0xbe8444[_0xc7f8f3(0x1ed)]);if(!_0x1f8f78)return null;const {range:_0x1b6184,currentIndex:_0x2649cd}=_0x1f8f78;return _0xc7f8f3(0x18a)==_0x1b6184[_0xc7f8f3(0x110)][_0xc7f8f3(0x132)]?(_0x3524ad[_0xc7f8f3(0x26f)](_0x2649cd,_0xc7f8f3(0x252)),null):_0x1f8f78[_0xc7f8f3(0x253)];}[_0xd55167(0x119)](_0x1528e8,_0x5b7de0){const _0x228a1e=_0xd55167,_0x3636f0=_0x431b31(this[_0x228a1e(0x16b)]),{reply:_0x30a393,interaction:_0x1af8a6}=this[_0x228a1e(0x1fe)](_0x1528e8),_0x5cc6e1=_0x30a393[_0x228a1e(0x21b)][_0x228a1e(0x153)](_0x1da0e1=>_0x228a1e(0x227)==_0x1da0e1[_0x228a1e(0x267)]),_0x5ae1c5=_0x5cc6e1[_0x228a1e(0x160)](_0x3369f6=>_0x30a393[_0x228a1e(0x21b)][_0x228a1e(0x1ae)](_0x3369f6));void 0x0===_0x5b7de0&&(_0x5b7de0=_0x5ae1c5[0x0]);const _0x406edf=_0x5ae1c5[_0x228a1e(0x1ae)](_0x5b7de0);if(-0x1==_0x406edf)return null;const _0x3b8cdf=_0x5cc6e1[_0x406edf],_0x243f52=new _0x10dcfc([]),_0x203cec=new _0x10dcfc([]);for(const _0x9245be of _0x3b8cdf[_0x228a1e(0x261)])if(_0x228a1e(0x1af)!=_0x9245be[_0x228a1e(0x1f0)]&&_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x9245be[_0x228a1e(0x254)][_0x228a1e(0x264)](!0x0)),_0x228a1e(0x145)!=_0x9245be[_0x228a1e(0x1f0)]){const _0x82e402=_0x5955b6(_0x2a37d4=>_0xfcd8bd(_0x2a37d4,_0x228a1e(0x24e))==_0x9245be['id'],_0x30a393[_0x228a1e(0x1a9)],!0x0);_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x82e402[_0x228a1e(0x264)](!0x0));}if(0x0==_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1bc)]){if(_0x3b8cdf[_0x228a1e(0x261)][0x0][_0x228a1e(0x170)]){const _0x2d8c8d=_0x40dbf0(_0x228a1e(0x24e),_0x3b8cdf[_0x228a1e(0x261)][0x0][_0x228a1e(0x170)],_0x30a393[_0x228a1e(0x1a9)]);_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x269)](_0x2d8c8d[_0x228a1e(0x264)](!0x0)),_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x269)](_0x2d8c8d[_0x228a1e(0x264)](!0x0)),_0x2d8c8d[_0x228a1e(0x273)]&&(_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x2d8c8d[_0x228a1e(0x273)][_0x228a1e(0x264)](!0x0)),_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x2d8c8d[_0x228a1e(0x273)][_0x228a1e(0x264)](!0x0)));}else{const _0x1d5e5b=_0x30a393[_0x228a1e(0x1a9)][_0x228a1e(0x1e3)][0x0];if(!_0x1d5e5b)return null;_0x243f52[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x1d5e5b[_0x228a1e(0x264)](!0x0)),_0x203cec[_0x228a1e(0x1e3)][_0x228a1e(0x1c4)](_0x1d5e5b[_0x228a1e(0x264)](!0x0));}}const _0xfb25bf=_0x1af8a6[_0x228a1e(0x271)](),_0xb4a284=_0x3636f0[_0x228a1e(0x1b8)][_0x228a1e(0x1a0)](_0xfb25bf[_0x228a1e(0x23c)]),_0x3a2ca7=_0x5921ad(_0x243f52),_0xaaa7c0=_0x3636f0[_0x228a1e(0x1b8)][_0x228a1e(0x1a0)](_0x3a2ca7),_0x4a0b90=_0x3636f0[_0x228a1e(0x1b8)][_0x228a1e(0x1a0)](_0x3a2ca7),_0x2fb66f=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1a2)](_0xaaa7c0,0x0),_0x4eadaf=_0x5921ad(_0x203cec),_0x1af562={'anchor':_0x2fb66f,'markDeletions':!0x1},_0x1480dd=_0x3636f0[_0x228a1e(0x164)][_0x228a1e(0x1fc)](_0x19b14b)[_0x228a1e(0x225)](_0x3a2ca7,_0x4eadaf,_0x1af562)[_0x228a1e(0x235)]();if(!_0x1480dd[_0x228a1e(0x1bc)])return null;_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1d1)](_0x588469=>{const _0x27eb59=_0x228a1e;for(const _0x4ed3df of _0x1480dd)if(_0x27eb59(0x1de)==_0x4ed3df[_0x27eb59(0x1f0)]){const _0xb54c89=_0x4ed3df[_0x27eb59(0x15f)],_0x56d473=_0x4ed3df[_0x27eb59(0x237)],_0x346f11=new _0x393399(_0xb54c89,_0x56d473);_0x588469[_0x27eb59(0x279)][_0x27eb59(0x105)](_0x346f11),_0x3636f0[_0x27eb59(0x113)][_0x27eb59(0x268)](_0x346f11);}else _0x27eb59(0x15e)!==_0x4ed3df[_0x27eb59(0x1f0)]&&(_0x4ed3df[_0x27eb59(0x24f)]=null,_0x4ed3df[_0x27eb59(0x18d)]=!0x1,_0x588469[_0x27eb59(0x279)][_0x27eb59(0x105)](_0x4ed3df),_0x3636f0[_0x27eb59(0x113)][_0x27eb59(0x268)](_0x4ed3df));});const _0xff8919=_0x2aa2f8(_0x3636f0,_0x1480dd,_0xaaa7c0);_0xa6396a(_0x3636f0[_0x228a1e(0x113)],_0xff8919);const _0x5f37fe=_0xff8919[_0x228a1e(0x215)]()[_0x228a1e(0x236)][_0x228a1e(0x211)][_0x228a1e(0x165)](),_0x3fe96d=_0xff8919[_0x228a1e(0x215)]()[_0x228a1e(0x247)][_0x228a1e(0x211)][_0x228a1e(0x165)](),_0x4935c5=[];let _0x2941b1=_0xaaa7c0,_0x24b7ef=_0x4a0b90;for(let _0x34ca86=0x0;_0x34ca86<_0x3fe96d[_0x228a1e(0x1bc)];_0x34ca86++){const _0x6c697f=_0x2941b1[_0x228a1e(0x1fd)]-_0x3fe96d[_0x34ca86];_0x4935c5[_0x34ca86]=_0x24b7ef[_0x228a1e(0x1fd)]-_0x6c697f,_0x2941b1=_0x2941b1[_0x228a1e(0x21e)](_0x3fe96d[_0x34ca86]),_0x24b7ef=_0x24b7ef[_0x228a1e(0x21e)](_0x4935c5[_0x34ca86]);}const _0x41cd9c=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1b7)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x4a0b90,_0x5f37fe),_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x4a0b90,_0x4935c5)),_0x4c142e=_0x4a0b90[_0x228a1e(0x146)](0x0)[_0x228a1e(0x14a)](_0x35bef5),_0x53e7a5=Array[_0x228a1e(0x126)](_0xb4a284[_0x228a1e(0x192)]())[_0x228a1e(0x133)](_0x47b500=>_0x47b500[_0x228a1e(0x14a)](_0x35bef5)==_0x4c142e)[_0x228a1e(0x14e)](),_0x3e5642=_0x41cd9c[_0x228a1e(0x236)][_0x228a1e(0x211)][_0x228a1e(0x165)](),_0x46d925=_0x41cd9c[_0x228a1e(0x247)][_0x228a1e(0x211)][_0x228a1e(0x165)]();_0x3e5642[0x0]=_0x53e7a5[0x0]+_0x3e5642[0x0],_0x46d925[0x0]=_0x53e7a5[0x0]+_0x46d925[0x0];let _0x232ac5=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x1b7)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x14b)][_0x228a1e(0x1a1)](),_0x3e5642),_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x15a)](_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x14b)][_0x228a1e(0x1a1)](),_0x46d925));const _0x4f7d68=_0x3636f0[_0x228a1e(0x113)][_0x228a1e(0x14b)][_0x228a1e(0x16f)][_0x228a1e(0x235)](_0xfb25bf[_0x228a1e(0x193)]);for(const _0x3c9817 of _0x4f7d68)_0x232ac5=_0x53e345[_0x228a1e(0x190)](_0x232ac5[_0x228a1e(0x147)](_0x3c9817));return{'range':_0x232ac5,'currentIndex':_0x5b7de0};}[_0xd55167(0x19c)](_0xb6f161){const _0x44ea5a=_0xd55167;if(!_0xb6f161[_0x44ea5a(0x164)][_0x44ea5a(0x168)](_0x44ea5a(0x17c)))return;const _0x26adb5=_0xb6f161[_0x44ea5a(0x1b5)][_0x44ea5a(0x1fc)](_0x44ea5a(0x20b)),_0x231840=_0xb6f161[_0x44ea5a(0x1b5)][_0x44ea5a(0x1fc)](_0x44ea5a(0x1d9));this[_0x44ea5a(0x218)](_0x26adb5,_0x44ea5a(0x1c3),(_0x8f1682,_0x3df38c,_0x316bd3)=>{const _0x5aa5b3=_0x44ea5a,_0x144364=this[_0x5aa5b3(0x163)][_0x5aa5b3(0x1fc)](_0x3df38c);if(!_0x144364)return;const _0x38e1ed=this[_0x5aa5b3(0x122)][_0x5aa5b3(0x111)](_0x144364[_0x5aa5b3(0x11c)])[_0x5aa5b3(0x184)](_0x144364[_0x5aa5b3(0x10f)]);_0x144364[_0x5aa5b3(0x13f)][_0x5aa5b3(0x22c)](_0x127b0c=>_0x38e1ed[_0x5aa5b3(0x26f)](_0x127b0c,_0x5aa5b3(0x227))),this[_0x5aa5b3(0x163)][_0x5aa5b3(0x13e)](_0x3df38c),this[_0x5aa5b3(0x163)][_0x5aa5b3(0x157)](_0x316bd3,_0x144364);}),this[_0x44ea5a(0x218)](_0x231840,_0x44ea5a(0x1c3),(_0xb16a3f,_0x8074ae,_0x38bb9c)=>{const _0x157c26=_0x44ea5a,_0x5467f7=this[_0x157c26(0x163)][_0x157c26(0x1fc)](_0x8074ae);if(!_0x5467f7)return;const _0x58d67e=this[_0x157c26(0x122)][_0x157c26(0x111)](_0x5467f7[_0x157c26(0x11c)])[_0x157c26(0x184)](_0x5467f7[_0x157c26(0x10f)]);_0x5467f7[_0x157c26(0x13f)][_0x157c26(0x22c)](_0x834037=>_0x58d67e[_0x157c26(0x26f)](_0x834037,_0x157c26(0x238))),this[_0x157c26(0x163)][_0x157c26(0x13e)](_0x8074ae),this[_0x157c26(0x163)][_0x157c26(0x157)](_0x38bb9c,_0x5467f7);});}async[_0xd55167(0x1b3)](_0x1249f9){const _0x180028=_0xd55167;this[_0x180028(0x16b)][_0x180028(0x164)][_0x180028(0x168)](_0x180028(0x26c))&&this[_0x180028(0x16b)][_0x180028(0x164)][_0x180028(0x1fc)](_0x180028(0x26c))[_0x180028(0x1dd)](),(this[_0x180028(0x16b)][_0x180028(0x164)][_0x180028(0x1fc)](_0x216e50)[_0x180028(0x16d)][_0x180028(0x169)](_0x180028(0x242)),this[_0x180028(0x1b2)][_0x180028(0x12c)](_0x180028(0xef)),this[_0x180028(0x1b2)][_0x180028(0x1d7)](!0x0),await this[_0x180028(0x106)]());try{await this[_0x180028(0x26a)][_0x180028(0x13a)](_0x1249f9)[_0x180028(0x1d0)](),await this[_0x180028(0x20c)](_0x1249f9),this[_0x180028(0x25d)]('\x20'),await this[_0x180028(0x122)][_0x180028(0x198)](_0x1249f9,this[_0x180028(0x140)][_0x180028(0x25f)]),this[_0x180028(0x122)][_0x180028(0x1ff)]()&&this[_0x180028(0x100)]();}catch(_0xde2286){this[_0x180028(0x1b2)][_0x180028(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x180028(0x16b)][_0x180028(0x1cc)],_0x180028(0x249)),'id':_0x1249f9}),this[_0x180028(0x200)](new _0x530add(_0x180028(0x10a),this,{'error':_0xde2286}));}finally{this[_0x180028(0x1b2)][_0x180028(0x10d)](),this[_0x180028(0x1b2)][_0x180028(0x12c)](_0x180028(0x1d3)),this[_0x180028(0x1b2)][_0x180028(0x1d7)](!0x1);}}async[_0xd55167(0x20f)](){const _0x36c068=_0xd55167,_0x28cba1=this[_0x36c068(0x26a)][_0x36c068(0xf9)](this[_0x36c068(0x179)](),{'limit':0x1,'sortBy':_0x36c068(0x24b)});try{const _0x11af48=await _0x28cba1[_0x36c068(0x251)]();return _0x11af48[_0x36c068(0x1bc)]?_0x11af48[0x0]['id']:_0x36c068(0x145);}catch(_0x581d0c){return this[_0x36c068(0x1b2)][_0x36c068(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x36c068(0x16b)][_0x36c068(0x1cc)],_0x36c068(0x249)),'id':_0x14288b()}),this[_0x36c068(0x200)](new _0x530add(_0x36c068(0x1bb),this,{'error':_0x581d0c})),this[_0x36c068(0x1b2)][_0x36c068(0x1d7)](!0x1),this[_0x36c068(0x1b2)][_0x36c068(0xfd)](),null;}}[_0xd55167(0x10e)](_0xc17a0){const _0x28d10b=_0xd55167;this[_0x28d10b(0x122)]['id']===_0xc17a0&&this[_0x28d10b(0x20c)]();}[_0xd55167(0x100)](){const _0x2e95dd=_0xd55167;this[_0x2e95dd(0x122)]?.[_0x2e95dd(0x114)](_0x2a2ee7(this[_0x2e95dd(0x16b)][_0x2e95dd(0x1cc)],_0x2e95dd(0x1e5)));}async[_0xd55167(0x196)](){const _0x3c734c=_0xd55167,_0x4c5af5=this[_0x3c734c(0x140)][_0x3c734c(0x20d)]();this[_0x3c734c(0x122)]?.[_0x3c734c(0x1e6)](_0x4c5af5),this[_0x3c734c(0x100)]();}[_0xd55167(0x201)](){const _0x5c3061=_0xd55167;this[_0x5c3061(0x122)]?.[_0x5c3061(0x1dc)]();}[_0xd55167(0x213)](){const _0x1a08d4=_0xd55167;this[_0x1a08d4(0x1b2)][_0x1a08d4(0x213)]();}async[_0xd55167(0x21c)](){const _0x743631=_0xd55167;await this[_0x743631(0x20c)]();}async[_0xd55167(0x1c5)]({message:_0x331303,attributes:_0x55f0d0}){const _0x5427fc=_0xd55167;await this[_0x5427fc(0x11b)]({'userMessage':_0x331303,'attributes':_0x55f0d0});}[_0xd55167(0x179)](){const _0xc6c6c0=_0xd55167,_0x12c9c9=this[_0xc6c6c0(0x16b)][_0xc6c6c0(0x13c)][_0xc6c6c0(0x1fc)](_0xc6c6c0(0x243));if(!_0x12c9c9)throw new _0x530add(_0xc6c6c0(0x18e),this);return _0x12c9c9;}async[_0xd55167(0x20c)](_0x1e9151){const _0x2df07e=_0xd55167;try{this[_0x2df07e(0x1b2)][_0x2df07e(0x25b)](),await this[_0x2df07e(0x125)](_0x1e9151);}catch(_0x54b829){this[_0x2df07e(0x1b2)][_0x2df07e(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x2df07e(0x16b)][_0x2df07e(0x1cc)],_0x2df07e(0x277)),'id':_0x1e9151||_0x14288b()}),console[_0x2df07e(0x239)](_0x54b829),this[_0x2df07e(0x122)]=void 0x0,this[_0x2df07e(0x1b2)][_0x2df07e(0xfd)]();}}async[_0xd55167(0x125)](_0x59289e){const _0x3b4d11=_0xd55167;let _0x3f4e04;this[_0x3b4d11(0x16b)][_0x3b4d11(0x164)][_0x3b4d11(0x168)](_0x3b4d11(0x26c))&&this[_0x3b4d11(0x16b)][_0x3b4d11(0x164)][_0x3b4d11(0x1fc)](_0x3b4d11(0x26c))[_0x3b4d11(0x1dd)](),_0x59289e||!this[_0x3b4d11(0x122)]?_0x3f4e04=this[_0x3b4d11(0x16b)][_0x3b4d11(0x13c)][_0x3b4d11(0x1fc)](_0x3b4d11(0x1e4)):this[_0x3b4d11(0x1b2)][_0x3b4d11(0x11a)]&&(_0x3f4e04=this[_0x3b4d11(0x122)][_0x3b4d11(0x171)]['id']),await this[_0x3b4d11(0x106)]();const _0x9a863=this[_0x3b4d11(0x179)](),_0x541b94=_0x59289e||_0x14288b();this[_0x3b4d11(0x122)]=new _0x5e8d16({'connector':this[_0x3b4d11(0x26a)],'chatModels':this[_0x3b4d11(0x276)],'selectedModelId':_0x3f4e04,'conversationId':_0x541b94,'group':_0x9a863,'getEditor':()=>_0x431b31(this[_0x3b4d11(0x16b)]),'isFromHistory':!!_0x59289e}),this[_0x3b4d11(0x122)][_0x3b4d11(0x16a)](_0x3b4d11(0x167),_0x3b4d11(0x11f))['to'](this),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1e1),(_0x59a1ab,_0x1d2df8)=>{const _0x3417b7=_0x3b4d11;this[_0x3417b7(0x1b2)][_0x3417b7(0x1b4)](_0x1d2df8),this[_0x3417b7(0x1b2)][_0x3417b7(0x246)](),this[_0x3417b7(0x1b2)][_0x3417b7(0x231)](),this[_0x3417b7(0x1b2)][_0x3417b7(0x185)](),_0x59289e||(this[_0x3417b7(0x1b2)][_0x3417b7(0x25e)](),this[_0x3417b7(0x100)]());}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x172),(_0x272e57,_0x5d1358)=>{const _0x8a1705=_0x3b4d11;this[_0x8a1705(0x1b2)][_0x8a1705(0x13b)](_0x5d1358[_0x8a1705(0x259)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x265),(_0x217304,_0x4ccf78)=>{const _0x484d32=_0x3b4d11;this[_0x484d32(0x1b2)][_0x484d32(0x10b)](_0x4ccf78);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x270),()=>{const _0x107b1c=_0x3b4d11,_0x46e81a=this[_0x107b1c(0x1b2)][_0x107b1c(0x1f4)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x107b1c(0x1b2)][_0x107b1c(0x263)](_0x46e81a);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1c1),()=>{const _0x14dabf=_0x3b4d11,_0x4dffdb=this[_0x14dabf(0x1b2)][_0x14dabf(0x1f4)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x14dabf(0x1b2)][_0x14dabf(0x263)](_0x4dffdb);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x103),(_0x3ebefe,_0x1a5d24)=>{const _0x355196=_0x3b4d11;this[_0x355196(0x1b2)][_0x355196(0x19a)](_0x1a5d24,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x20e),(_0x44fc0b,_0x2e236f)=>{const _0x50ff09=_0x3b4d11;this[_0x50ff09(0x1b2)][_0x50ff09(0x19a)](_0x2e236f,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x11f),()=>{const _0x591ba6=_0x3b4d11;this[_0x591ba6(0x1b2)][_0x591ba6(0x1cb)]();}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x206),async()=>{const _0x1b0799=_0x3b4d11;await this[_0x1b0799(0x1b2)][_0x1b0799(0x17e)]();}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x255),(_0x3fb316,_0x59d12c)=>{const _0x80e196=_0x3b4d11;this[_0x80e196(0x1b2)][_0x80e196(0x17d)](_0x59d12c['id']);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1eb),(_0x1d4276,_0x31c1ac,_0x404a59)=>{const _0x4638c7=_0x3b4d11;this[_0x4638c7(0x25d)](_0x31c1ac,_0x404a59);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0xf3),(_0x1f8859,_0x543fac)=>{const _0x24d377=_0x3b4d11;_0x24d377(0x19d)===_0x543fac[_0x24d377(0x1f0)]?this[_0x24d377(0x1b2)][_0x24d377(0x188)](_0x543fac):this[_0x24d377(0x1b2)][_0x24d377(0x1ca)](_0x543fac);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x156),async(_0x219ceb,_0x18c9f3)=>{const _0x471ea0=_0x3b4d11;await this[_0x471ea0(0x177)]({'reply':_0x18c9f3});}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1b6),(_0x2465a4,{reply:_0x207fcc,index:_0x3f2fc6,state:_0x4a9d35})=>{const _0x545c4f=_0x3b4d11;this[_0x545c4f(0x1b2)][_0x545c4f(0x12b)]({'id':_0x207fcc['id'],'index':_0x3f2fc6,'state':_0x4a9d35}),this[_0x545c4f(0x24a)]?.[_0x545c4f(0x10f)][_0x545c4f(0x16e)](_0x207fcc['id'])&&this[_0x545c4f(0x24a)]?.[_0x545c4f(0x120)]==_0x3f2fc6&&this[_0x545c4f(0x1df)]?.[_0x545c4f(0x1c2)](_0x4a9d35);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x217),(_0x1f02ea,_0x46bb5c)=>{const _0x4e6789=_0x3b4d11;if(this[_0x4e6789(0x1b2)][_0x4e6789(0x234)](_0x46bb5c[_0x4e6789(0x233)],_0x46bb5c[_0x4e6789(0x1ee)]),_0x4e6789(0x180)===_0x46bb5c[_0x4e6789(0x233)][_0x4e6789(0x1f0)]){const _0x3d173f=[..._0x431b31(this[_0x4e6789(0x16b)])[_0x4e6789(0x113)][_0x4e6789(0x14b)][_0x4e6789(0x180)][_0x4e6789(0x22e)]()];this[_0x4e6789(0x140)][_0x4e6789(0x21a)](_0x3d173f,_0x4e6789(0x1f3)+this[_0x4e6789(0x122)]?.['id']);}}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1f6),(_0x30435a,_0x40ad70)=>{const _0x38c49c=_0x3b4d11;this[_0x38c49c(0x1b2)][_0x38c49c(0x154)](_0x40ad70[_0x38c49c(0xfa)]),_0x38c49c(0x181)==_0x40ad70[_0x38c49c(0xfa)]&&this[_0x38c49c(0x201)](),_0x38c49c(0x180)===_0x40ad70[_0x38c49c(0x1f0)]&&this[_0x38c49c(0x140)][_0x38c49c(0x21d)](_0x38c49c(0x1f3)+this[_0x38c49c(0x122)]?.['id']);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1fa),(_0xcf51d5,_0x3f2fb4)=>{const _0x51f301=_0x3b4d11;this[_0x51f301(0x1b2)][_0x51f301(0x1e2)](_0x3f2fb4[_0x51f301(0x233)][_0x51f301(0xfa)],_0x3f2fb4[_0x51f301(0x1ee)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x19b),(_0x469b46,_0x513a7c)=>{const _0x3b05e6=_0x3b4d11;this[_0x3b05e6(0x1b2)][_0x3b05e6(0x197)](_0x513a7c[_0x3b05e6(0x1d4)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x162),(_0x59206f,_0x39aac5)=>{const _0x135553=_0x3b4d11;this[_0x135553(0x1b2)][_0x135553(0x23b)](_0x39aac5[_0x135553(0x1c8)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1b0),(_0x13c939,_0x12ec2b)=>{const _0x3c95cc=_0x3b4d11;this[_0x3c95cc(0x1b2)][_0x3c95cc(0xff)](_0x12ec2b[_0x3c95cc(0x137)],_0x12ec2b[_0x3c95cc(0x19e)],_0x12ec2b[_0x3c95cc(0x159)],_0x12ec2b[_0x3c95cc(0x14c)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x107),(_0x21eb67,_0x4052da)=>{const _0x560277=_0x3b4d11;this[_0x560277(0x1b2)][_0x560277(0x136)](_0x4052da[_0x560277(0x137)],_0x4052da[_0x560277(0x1e7)],_0x4052da[_0x560277(0x1ac)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x1be),(_0x531bd3,_0x4f48b0)=>{const _0x30d445=_0x3b4d11;this[_0x30d445(0x1b2)][_0x30d445(0x1c7)](_0x4f48b0);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x17b),async(_0x597628,_0x5233de)=>{const _0xc2186=_0x3b4d11,_0x158063=(await this[_0xc2186(0x276)][_0xc2186(0xf2)]())[_0xc2186(0x133)](_0x5aa6bf=>_0x5aa6bf['id']===_0x5233de[_0xc2186(0x171)]?.['id'])||null;this[_0xc2186(0x1b2)][_0xc2186(0x1db)](_0x158063,_0x5233de[_0xc2186(0xfb)]);}),this[_0x3b4d11(0x122)]['on'](_0x3b4d11(0x239),(_0x345ecc,{error:_0x2a28b2,interactionId:_0x331aec,fileName:_0x2b5f12,url:_0x31f509,sourceId:_0x3e2efd,sourceLabel:_0x5b02f2})=>{const _0x41f3a2=_0x3b4d11,_0x2b4426=_0x331aec?_0x331aec+':'+_0x14288b():_0x14288b();_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x229))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1c0)]({'staticMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0xf6)),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x1bb))||_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x189))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x277)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x26d))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x155),_0x2b5f12),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x158))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x199),_0x31f509),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x135))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x209)),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x166))?this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x248)),'id':_0x2b4426}):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x1ad))?(_0x3e2efd&&this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1e0)](_0x3e2efd),this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x195),_0x5b02f2||_0x41f3a2(0x19e)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x17a))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x11e)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x226))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x1f1)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x245))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x223)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x118))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x241)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x22f))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x23a)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):_0x2a28b2[_0x41f3a2(0x1ab)][_0x41f3a2(0x121)](_0x41f3a2(0x205))?(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x222)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2)):(this[_0x41f3a2(0x1b2)][_0x41f3a2(0x1d8)]({'errorMessage':_0x2a2ee7(this[_0x41f3a2(0x16b)][_0x41f3a2(0x1cc)],_0x41f3a2(0x1f2)),'id':_0x2b4426}),this[_0x41f3a2(0x200)](_0x2a28b2));}),await this[_0x3b4d11(0x122)][_0x3b4d11(0x23f)](this[_0x3b4d11(0x16b)][_0x3b4d11(0x13c)][_0x3b4d11(0x1fc)](_0x3b4d11(0x16c))),_0x59289e||await this[_0x3b4d11(0x122)][_0x3b4d11(0x236)]();}async[_0xd55167(0x11b)]({userMessage:_0x1629c8,attributes:_0x4878fd}){const _0x33a6d5=_0xd55167;if(!this[_0x33a6d5(0x122)])throw new _0x530add(_0x33a6d5(0x138));if(this[_0x33a6d5(0x122)][_0x33a6d5(0x1d5)]()){const _0x2e81c2=await this[_0x33a6d5(0x140)][_0x33a6d5(0x20a)]();await this[_0x33a6d5(0x122)][_0x33a6d5(0x18b)](_0x2e81c2);}this[_0x33a6d5(0x122)]['id']&&this[_0x33a6d5(0x122)][_0x33a6d5(0x191)]&&await this[_0x33a6d5(0x122)][_0x33a6d5(0x272)]({'userMessage':_0x1629c8,'attributes':_0x4878fd});}[_0xd55167(0x202)](){const _0x206c84=_0xd55167;console[_0x206c84(0x220)](_0x206c84(0x260));}[_0xd55167(0x25a)](_0xbd81f5){const _0x5eec9e=_0xd55167;this[_0x5eec9e(0x1b2)][_0x5eec9e(0x208)](_0xbd81f5);}[_0xd55167(0x200)](_0x98be6a){const _0x37d6d9=_0xd55167;_0x59170a(_0x98be6a[_0x37d6d9(0x1ab)]);}[_0xd55167(0x1b1)](_0x1bfe25){const _0x30884d=_0xd55167;this[_0x30884d(0x122)]?.[_0x30884d(0x15c)](_0x1bfe25);}[_0xd55167(0x1aa)](){const _0x3050e4=_0xd55167;this[_0x3050e4(0x122)]?.[_0x3050e4(0x1b9)]();}[_0xd55167(0x22b)](){const _0x4c24a2=_0xd55167;this[_0x4c24a2(0x122)]?.[_0x4c24a2(0x12a)]();}[_0xd55167(0x1fe)](_0x5dd4bc){const _0x129125=_0xd55167,[_0x75faf5,_0xa72479]=_0x5dd4bc[_0x129125(0x18f)](':'),_0x3b68c3=this[_0x129125(0x122)][_0x129125(0x111)](_0x75faf5),_0xc1c43a=_0x3b68c3[_0x129125(0x184)](_0xa72479);return{'interaction':_0x3b68c3,'reply':_0xc1c43a};}[_0xd55167(0x1a3)](_0x411f61,_0x1cb924=!0x1){const _0x494d46=_0xd55167,_0x160e09=_0x431b31(this[_0x494d46(0x16b)]),_0x541696={'target':_0x160e09[_0x494d46(0x262)][_0x494d46(0x16d)][_0x494d46(0x1f8)][_0x494d46(0x203)](_0x160e09[_0x494d46(0x262)][_0x494d46(0x228)][_0x494d46(0x250)](_0x411f61)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1cb924};_0x1cb924&&(_0x541696[_0x494d46(0x1cd)]=!0x0),_0x535cd8(_0x541696);}[_0xd55167(0x25d)](_0x2a737f,_0x319dd0=!0x1){const _0x3f9c37=_0xd55167;this[_0x3f9c37(0x1b2)][_0x3f9c37(0x1eb)](_0x2a737f||_0x2a2ee7(this[_0x3f9c37(0x16b)][_0x3f9c37(0x1cc)],_0x3f9c37(0x1e8)),_0x319dd0);}async[_0xd55167(0x177)]({reply:_0xa97466,renderingStrategy:_0x53a2dd}){const _0x275fb8=_0xd55167,{id:_0x4fef18,interactionId:_0x49f9ae,isDone:_0x5c56a5,type:_0x5078bf,parsedContent:_0x366cea}=_0xa97466,_0x5db498=_0x49f9ae+':'+_0x4fef18;if(_0x275fb8(0x26b)===_0x5078bf){const _0x51a9cb=_0xa97466[_0x275fb8(0x1a4)]({'showDiff':this[_0x275fb8(0x1b2)][_0x275fb8(0x1d2)]});await this[_0x275fb8(0x1b2)][_0x275fb8(0x214)]({'id':_0x5db498,'parts':_0x51a9cb,'renderingStrategy':_0x53a2dd,'isDone':_0x5c56a5});}else _0x275fb8(0x19d)===_0x5078bf&&await this[_0x275fb8(0x1b2)][_0x275fb8(0x25c)]({'id':_0x5db498,'parsedContent':_0x366cea,'renderingStrategy':_0x53a2dd,'isDone':_0x5c56a5});_0x5c56a5&&_0xa97466[_0x275fb8(0x149)][_0x275fb8(0x1bc)]>0x0&&this[_0x275fb8(0x1b2)][_0x275fb8(0x15b)](_0x5db498,_0xa97466[_0x275fb8(0x149)]);}async[_0xd55167(0x106)](){const _0x114df8=_0xd55167,_0x5ec1c7=this[_0x114df8(0x122)]?.[_0x114df8(0x108)];_0x5ec1c7&&(_0x5ec1c7[_0x114df8(0x1d6)](),this[_0x114df8(0x1b2)][_0x114df8(0x24c)](_0x5ec1c7));}async[_0xd55167(0x1ba)](){const _0x586dc7=_0xd55167,_0x3e2631=this[_0x586dc7(0x122)]?.[_0x586dc7(0x108)];if(_0x3e2631){for await(const _0x158121 of _0x3e2631[_0x586dc7(0x124)])await this[_0x586dc7(0x177)]({'reply':_0x158121,'renderingStrategy':_0x586dc7(0xef)});}}[_0xd55167(0x22d)](_0x5a486a){const _0x3dd3ae=_0xd55167,_0x815e4b={'positiveCount':_0x5a486a[_0x3dd3ae(0x21b)][_0x3dd3ae(0x153)](_0x2c20af=>_0x3dd3ae(0x238)===_0x2c20af[_0x3dd3ae(0x267)])[_0x3dd3ae(0x1bc)],'totalCount':_0x5a486a[_0x3dd3ae(0x21b)][_0x3dd3ae(0x1bc)],'modificationId':_0x5a486a['id']},_0x4cf14f=this[_0x3dd3ae(0x122)][_0x3dd3ae(0x111)](_0x5a486a[_0x3dd3ae(0x11c)])[_0x3dd3ae(0xf4)];_0x4cf14f&&this[_0x3dd3ae(0x26a)][_0x3dd3ae(0x26e)](this[_0x3dd3ae(0x122)]['id'],_0x4cf14f,_0x815e4b);}[_0xd55167(0x187)](_0x1632cf){const _0x3a2c29=_0xd55167;let _0x50e0f9=null,_0x4f402e=null;this['on'](_0x3a2c29(0x167),(_0x23fddd,_0x37ac77,_0x445044)=>{const _0x4241b2=_0x3a2c29;_0x445044['id']!==_0x50e0f9&&(_0x50e0f9=_0x445044['id'],_0x4f402e=this[_0x4241b2(0x1e9)](_0x445044)),_0x1632cf(_0x37ac77,_0x4f402e);});}[_0xd55167(0x1e9)](_0x5117a0){const _0x248d7e=_0xd55167,_0x582ac0=this[_0x248d7e(0x1b2)],_0x1bff2f=()=>{const _0x134606=_0x248d7e;_0x5117a0[_0x134606(0x129)](),_0x5117a0[_0x134606(0x134)](),_0x582ac0[_0x134606(0x256)]();},_0xe9770=()=>{const _0x1d6e2e=_0x248d7e;_0x5117a0[_0x1d6e2e(0x1c6)]&&(_0x5117a0[_0x1d6e2e(0x1c6)][_0x1d6e2e(0x14f)](),_0x5117a0[_0x1d6e2e(0x1c6)]=void 0x0);};return{'insertTextReply':(_0x3b81d0,_0x20cd40)=>{const _0x53bfb3=_0x248d7e;_0xe9770(),_0x1bff2f();const _0x9648e1=_0x5117a0[_0x53bfb3(0x1c6)]=_0x5117a0[_0x53bfb3(0x1ce)]({'type':_0x53bfb3(0x19d),'interactionId':_0x5117a0['id'],'content':_0x3b81d0,'id':_0x20cd40||_0x14288b()});return _0xe9770(),_0x9648e1;},'insertCustomElement':async(_0x5f1710,_0x500583)=>(_0xe9770(),_0x1bff2f(),_0x582ac0[_0x248d7e(0x151)](_0x5f1710,_0x500583||_0x14288b())),'setLoadingMessage':_0x576770=>{const _0x4b8ca=_0x248d7e;_0x582ac0[_0x4b8ca(0x263)](_0x576770);},'clearLoadingMessage':()=>{const _0x1e88a8=_0x248d7e;_0x582ac0[_0x1e88a8(0x256)]();}};}}function _0x6326(){const _0x531a30=['createConversation','commands','replyChangeGroupStateUpdated','createRange','data','toggleWebSearch','_flushLastInteractionUI','ai-chat-conversation-init-failed','length','showChangeInText','capabilitiesUpdated','_aiChatBalloonShowDiff','addFeedItemStaticMessage','reasoningStarted','setState','revert','push','sendMessage','currentReply','updateCapabilities','options','open','addFeedItemAISuggestion','startInteraction','locale','alignToTop','createReply','TrackChanges','getConversation','change','showDiff','streaming','contextItems','isCurrentDocumentInContext','stop','toggleLoadingSkeleton','addFeedItemError','redo','hasChanges','setSelectedModel','removeSelectionFromContext','close','remove','_aiChatBalloon','closeSourceResourceBalloon','conversationInitialized','setContextItemLoading','children','ai.models.defaultModelId','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addSelectionToContext','resourceId','AI_CHAT_UNTITLED_CONVERSATION','_getAIChatInteractionAPI','sendUserMessage','setConversationTitle','query','index','isLoading','findIndex','type','AI_CHAT_INVALID_REQUEST','AI_CHAT_GENERIC_ERROR','ai-conversation-','prepareLoadingMessage','applySuggestion','contextItemRemoved','DocumentCompare','domConverter','previous','contextItemLoadingEnded','resizeTabs','get','maxOffset','getInteractionAndReplyById','isCurrentDocumentInConversation','_logError','removeSelectionFromChatContext','_showConversationHistory','viewRangeToDom','callback','ai-chat-context-form-data-size-limits-exceeded','interactionFinished','1633808UpLpVQ','setIsMaximized','AI_CHAT_CONTEXT_INVALID_DATA','getDocumentData','undo','_startConversationSafely','getSelectionText','reasoningFinished','_getLastCreatedConversationId','isOfficialPlugin','path','setFeedItemAIReplySuggestionPartActive','focusPromptInput','updateFeedItemAIReplySuggestionContent','getFirstRange','showNext','contextItemAdded','listenTo','AITabs','showFakeVisualSelection','changeGroups','startConversation','hideFakeVisualSelection','getChildAtOffset','mouseOverSuggestion','log','ai.chat.initialConversation','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','_openBalloonFor','getDiff','ai-chat-invalid-request','pending','mapper','ai-request-aborted','addFilesToContext','_toggleReasoning','forEach','_updateRatings','getRanges','ai-chat-context-file-too-many-pages','detachFromDom','clearPendingContextUI','resizedTabs','contextItem','addContextItem','getOperations','start','howMany','accepted','error','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','setAddContextOptions','content','ai-no-track-changes','1419354JzBkiw','init','AIConnector','AI_CHAT_CONTEXT_FILE_TOO_LARGE','chat','collaboration.channelId','insertSuggestion','ai-chat-context-unsupported-file-type','resetMessageInput','end','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','_currentPreviewedChangeGroup','createdAt','stopInteraction','AIChatController','data-id','baseVersion','toViewRange','getConversations','outdated','range','node','interactionDestroyed','clearLoadingMessage','3053665QDaLAC','resource','isUploadInProgress','_setIsMaximized','enableControls','updateFeedItemAIReplyContent','updateConversationTitle','resetConversationTitle','sessionId','Showing\x20conversation\x20history...','changes','editing','setLoadingMessage','cloneNode','interactionCreated','rejected','state','applyOperation','unshift','_aiConnector','modification','AIChatBalloon','ai-chat-file-upload-failed','upsertAIChatRating','setChangeGroupState','webSearchStarted','getDocumentContext','handleUserInteraction','nextSibling','addResourceToContext','toggleSuggestionDisplayMode','_aiChatModels','AI_CHAT_UNABLE_TO_START_CONVERSATION','resize','batch','240836uZqIvN','scrollFeedToSuggestion','static','ai-chat-controller-mouse-over','destroy','getAll','replyCreated','messageId','showPrevious','AI_CHAT_ABORTED_MESSAGE','_rejectSuggestion','like','fetchConversations','uiId','isDisabled','editors','disableControls','updateContent','populateSourceResourceBalloon','addCurrentDocumentToChatContext','_bodyCollection','selectModel','webSearchFinished','TrackChangesEditing','addOperation','_stopLastInteraction','resourceStateChanged','lastInteraction','isPremiumPlugin','ai-chat-conversation-not-found','addFeedItemUserMessage','add','startAutoScroll','handleRemovedConversation','replyId','root','getInteraction','aiChatBalloon','model','addCurrentDocumentToContext','_applyOperationsAsSuggestions','ready','areActionsDisabled','ai-chat-context-file-too-large','_getDocumentRangeForReplyChanges','isModelAvailable','_handleUIUserMessage','interactionId','executeCustomItemCallback','AI_CHAT_RESOURCE_LOAD_FAILED','interactionStarted','partIndex','startsWith','activeConversation','1086771azdvaf','replies','_handleStartConversation','from','ai.models','185390ulywsd','resetWebSearchState','toggleReasoning','updateFeedItemAIReplySuggestionPartState','setFeedItemRenderingStrategy','rejectSuggestion','attachToDom','Disliked\x20response','4dciGhb','main','rootName','find','resetReasoningState','ai-chat-context-invalid-data','updateResourceState','sourceId','ai-chat-controller-no-active-conversation','abortPromptStream','fetchConversation','setIsUploadInProgress','config','1629981PwRGoi','delete','indexes','_aiEditing','_getUserPresentableContentPartDocumentRange','afterInit','dislike','_applySuggestion','new','getChild','getTransformedByOperation','AIEditing','sources','getAttribute','document','uid','pluginName','getPath','done','lastCreated','addFeedItemCustomElement','_insertSuggestion','filter','removeContextItem','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyContentUpdated','set','ai-chat-url-upload-failed','resources','createPositionFromPath','updateFeedItemAIReplySources','removeFromContext','addDocumentToContext','marker','sourcePosition','map','addFileToContext','addContextOptionsChanged','_batchToChanges','plugins','slice','ai-chat-context-unsupported-type','toolDataReceived','has','activateTab','delegate','context','ai.chat.context','view','includes','history','anchorId','selectedModel','uploadProgressChanged','AIChatUI','addUrlToContext','_getPresentableSiblingContentPartIndex','dialogClosed','_updateReplyContent','toString','getGroupId','ai-chat-resource-load-failed','modelSelected','Undo','removeFeedInteraction','finishInteraction','AI_BALLOON_HEADER_TITLE','selection','current-document','next','mouseLeaveSuggestion','getReply','clearConversationContextUI','requires','_registerToolDataCallback','addFeedItemAIReply','ai-chat-conversation-start-failed','$graveyard','updateCurrentDocumentInContext','loadSourceResources','isDocumentOperation','ai-chat-missing-channel-id','split','_createFromRanges','isStarted','getChildren','version','20nCqnpS','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','addSelectionToChatContext','setConversationContext','load','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','addFeedInteractionHeader','contextSent','_integrateEditor','text','source','bind','parse','getRoot','createPositionAt','_scrollToSuggestionRange','getContentParts','setModel','Liked\x20response','9RfjcgV','24ctdzlA','documentContextContent','_toggleWebSearch','message','isInContext','ai-chat-source-resources-load-failed','indexOf','removed','sourceResourcesLoaded','_removeFromContext','_aiChatUi','loadConversation'];_0x6326=function(){return _0x531a30;};return _0x6326();}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x49b6(){const _0x2e7011=['custom-element','addFeedItemAISuggestion','updateFeedItemAIReplySuggestionPartState','commands','view','queueEmptyPromise','_titleAnimationInterval','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','error-message','interactionId','clearPendingContextUI','setWebSearch','_isTrackChangesCommandValueBound','updateFeedInteractionHeader','scrollFeedToSuggestion','updateSuggestionItem','setModelList','config','get','chatControls','removeFeedItem','hasItem','streaming','setSuggestionPartActive','pluginName','_interactionPromiseResolver','feedItemRenderingStrategy','setLoadingMessage','ai.models.showModelSelector','enqueue','30854730iVsNav','784780SnZkHB','toggleSuggestionDisplayMode','2835548FJgxSm','conversation-start','addItem','find','isOfficialPlugin','AI_CHAT_HEADING','addFeedItemStaticMessage','isPending','_view','AI_CHAT_WELCOME_MESSAGE','_getInputPlaceholder','startsWith','updateWebSources','updateFeedItemAIReplySources','ai.availableReplyActions','addFeedItemAIReply','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateReplyItem','value','userMessage','bind','addFeedInteractionHeader','areActionsDisabled','AITabs','addContextItem','setAddContextOptions','last','isBusy','renderingStrategy','removeContextItem','ai.chat.welcomeMessage','has','ai-reply','scrollToSuggestion','children','updateFeedItemAIReplySuggestionContent','isLoading','showDiff','isPremiumPlugin','toggleLoadingSkeleton','abort','_promiseQueue','setConversationContext','TrackChanges','chat','remove','insertSuggestion','setConversationTitle','trackChanges','17122ajRvRw','updateResourceState','plugins','prepareLoadingMessage','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','disableControls','isDisabled','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','removeFeedInteraction','markFeedItemAsDone','resetConversationTitle','options','updateFeedItemAIReplyContent','finishInteraction','delegate','interaction-header','user-message','attributes','stopInteraction','ai.chat.context.searchInputVisibleFrom','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','startInteraction','forEach','createConversation','ai-suggestion-reply','clearConversationContextUI','resetMessageInput','conversationCreated','then','label','startAutoScroll','updateCapabilities','clearLoadingMessage','319404NHpEub','isWebSearchEnabled','isDone','setIsMaximized','enableControls','showResizeButton','updateSuggestionPartState','fire','addFeedItemUserMessage','AIChatUI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','chatFeed','closeSourceResourceBalloon','isVisible','displayedPrompt','setIsUploadInProgress','setReasoning','isReasoningEnabled','217rhSeQM','enableModelSelector','chatHeader','setSelectedModel','_animateConversationTitle','capabilities','</p>','setContextItemLoading','context','filter','availableModels','addFeedItemError','removeItem','getItemIds','populateSourceResourceBalloon','addTab','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','2028090hfrksF','isMaximized','setModel','381FXlvmf','destroy','markItemAsDone','isModelAvailable','128pdiyMk','clear','setFeedItemAIReplySuggestionPartActive','focusPromptInput','length','contextItems','requires','<p>','addFeedItemCustomElement','277317lEMyfA','set','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isTrackChangesOn','values','setFeedItemRenderingStrategy','disableModelSelector','setPromptInputValue','setInputPlaceholder','stopAutoScroll','hasFeedItem'];_0x49b6=function(){return _0x2e7011;};return _0x49b6();}const _0x225ccf=_0x43ba;(function(_0x5328f2,_0x492856){const _0x195ed6=_0x43ba,_0x15fe2d=_0x5328f2();while(!![]){try{const _0x28d991=-parseInt(_0x195ed6(0x1d6))/0x1+-parseInt(_0x195ed6(0x209))/0x2*(-parseInt(_0x195ed6(0x19f))/0x3)+-parseInt(_0x195ed6(0x1d8))/0x4+parseInt(_0x195ed6(0x19c))/0x5+-parseInt(_0x195ed6(0x22b))/0x6*(parseInt(_0x195ed6(0x18a))/0x7)+parseInt(_0x195ed6(0x1a3))/0x8*(-parseInt(_0x195ed6(0x1ac))/0x9)+parseInt(_0x195ed6(0x1d5))/0xa;if(_0x28d991===_0x492856)break;else _0x15fe2d['push'](_0x15fe2d['shift']());}catch(_0x162702){_0x15fe2d['push'](_0x15fe2d['shift']());}}}(_0x49b6,0xe5d61));import{ContextPlugin as _0x400b68}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xa6660b}from'ckeditor5/src/utils.js';import{AIChatView as _0x571ea7}from'./ui/aichatview.js';import{AITabs as _0x41ca55}from'../aitabs/aitabs.js';function _0x43ba(_0x212258,_0x35e4a7){const _0x49b6bb=_0x49b6();return _0x43ba=function(_0x43ba98,_0x1c86b7){_0x43ba98=_0x43ba98-0x186;let _0x44d2c9=_0x49b6bb[_0x43ba98];return _0x44d2c9;},_0x43ba(_0x212258,_0x35e4a7);}import{getTranslation as _0xc9fde0}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x4fb30a}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x12bdfc}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x3b0821}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x13db97}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x4f536b}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5d97f4}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x400b68{static get[_0x225ccf(0x1a9)](){return[_0x41ca55];}[_0x225ccf(0x1e0)];static get[_0x225ccf(0x1cf)](){const _0x1d1731=_0x225ccf;return _0x1d1731(0x234);}static get[_0x225ccf(0x1dc)](){return!0x0;}static get[_0x225ccf(0x1fe)](){return!0x0;}[_0x225ccf(0x1d1)]=_0x225ccf(0x1cd);[_0x225ccf(0x1fd)]=!0x0;[_0x225ccf(0x201)];[_0x225ccf(0x1d0)];[_0x225ccf(0x1bd)]=void 0x0;[_0x225ccf(0x1c3)]=!0x1;constructor(_0x3eabe9){const _0x589eac=_0x225ccf;super(_0x3eabe9);const _0x3ed6c1=this[_0x589eac(0x192)][_0x589eac(0x20b)][_0x589eac(0x1c9)](_0x589eac(0x1ef));this[_0x589eac(0x1ad)](_0x589eac(0x1f3),!0x1),this[_0x589eac(0x201)]=new _0x3b0821(),this[_0x589eac(0x1e0)]=new _0x571ea7(this[_0x589eac(0x192)][_0x589eac(0x20d)],{'showResizeButton':_0x3ed6c1[_0x589eac(0x230)],'contextResourcesSearchInputVisibleFrom':this[_0x589eac(0x192)][_0x589eac(0x1c8)][_0x589eac(0x1c9)](_0x589eac(0x21d))}),this[_0x589eac(0x1e0)][_0x589eac(0x218)](..._0x13db97)['to'](this),this[_0x589eac(0x1e0)]['on'](_0x589eac(0x1d7),(_0x3e994f,{showDiff:_0xa6ee5b})=>{const _0x405a47=_0x589eac;this[_0x405a47(0x1fd)]=_0xa6ee5b;}),_0x3ed6c1[_0x589eac(0x1bb)][_0x589eac(0x199)]({'id':_0x589eac(0x204),'buttonLabel':_0xc9fde0(this[_0x589eac(0x192)][_0x589eac(0x20d)],_0x589eac(0x1dd)),'buttonIcon':_0x4fb30a,'order':0x0,'content':this[_0x589eac(0x1e0)]}),this[_0x589eac(0x1e0)][_0x589eac(0x1ca)][_0x589eac(0x1ec)](_0x589eac(0x1fc))['to'](this,_0x589eac(0x1f3),_0x5dc1ef=>_0x5dc1ef),this[_0x589eac(0x1e0)][_0x589eac(0x236)][_0x589eac(0x1ec)](_0x589eac(0x1df))['to'](this,_0x589eac(0x1f3),_0x13da81=>_0x13da81),this[_0x589eac(0x1e0)][_0x589eac(0x1ca)][_0x589eac(0x1b4)](this[_0x589eac(0x1e2)]()),this[_0x589eac(0x1ec)](_0x589eac(0x1a2))['to'](this[_0x589eac(0x1e0)][_0x589eac(0x1ca)],_0x589eac(0x1a2));}[_0x225ccf(0x1a0)](){const _0xf6ac1e=_0x225ccf;super[_0xf6ac1e(0x1a0)](),this[_0xf6ac1e(0x1bd)]&&clearInterval(this[_0xf6ac1e(0x1bd)]);}[_0x225ccf(0x221)](_0x4baf1f){const _0x59416e=_0x225ccf,_0xd6cf6b=this[_0x59416e(0x192)][_0x59416e(0x1c8)][_0x59416e(0x1c9)](_0x59416e(0x1f6))??_0xc9fde0(this[_0x59416e(0x192)][_0x59416e(0x20d)],_0x59416e(0x1e1));this[_0x59416e(0x1e0)][_0x59416e(0x236)][_0x59416e(0x1a4)](),this[_0x59416e(0x1e0)][_0x59416e(0x1ca)][_0x59416e(0x18b)](),this[_0x59416e(0x1e0)][_0x59416e(0x1ca)][_0x59416e(0x1c7)](_0x4baf1f[_0x59416e(0x194)],!this[_0x59416e(0x192)][_0x59416e(0x1c8)][_0x59416e(0x1c9)](_0x59416e(0x1d3))),this[_0x59416e(0x1de)]({'id':_0x59416e(0x1d9),'staticMessage':_0xd6cf6b}),this[_0x59416e(0x232)](_0x59416e(0x225));}[_0x225ccf(0x1de)]({id:_0xed680e,staticMessage:_0x32d413}){const _0x17f51f=_0x225ccf;this[_0x17f51f(0x1e0)][_0x17f51f(0x236)][_0x17f51f(0x1da)](_0x17f51f(0x1f8),{'id':_0xed680e,'initialContent':_0x17f51f(0x1aa)+_0x32d413+_0x17f51f(0x190)});}[_0x225ccf(0x233)](_0x317153){const _0x3011aa=_0x225ccf,_0x3b6eb4=_0x317153[_0x3011aa(0x21b)]?.[_0x3011aa(0x186)]||_0x317153[_0x3011aa(0x1eb)];this[_0x3011aa(0x1e0)][_0x3011aa(0x236)][_0x3011aa(0x1da)](_0x3011aa(0x21a),{'contextItems':Array[_0x3011aa(0x19a)](_0x317153[_0x3011aa(0x1a8)][_0x3011aa(0x1b0)]()),'initialContent':_0x3011aa(0x1aa)+_0x3b6eb4+_0x3011aa(0x190),'id':_0x317153['id']});}[_0x225ccf(0x195)]({errorMessage:_0x49c9a6,id:_0x40023e}){const _0x468e26=_0x225ccf;this[_0x468e26(0x1e0)][_0x468e26(0x236)][_0x468e26(0x1da)](_0x468e26(0x1bf),{'initialContent':_0x468e26(0x1aa)+_0x49c9a6+_0x468e26(0x190),'id':_0x40023e});}[_0x225ccf(0x1e7)](_0x555b21){const _0x21d2e9=_0x225ccf;return this[_0x21d2e9(0x201)][_0x21d2e9(0x1d4)](async()=>{const _0x2a98cf=_0x21d2e9;this[_0x2a98cf(0x1e0)][_0x2a98cf(0x236)][_0x2a98cf(0x1da)](_0x2a98cf(0x1f8),{'id':_0x555b21[_0x2a98cf(0x1c0)]+':'+_0x555b21['id']}),this[_0x2a98cf(0x22a)]();});}async[_0x225ccf(0x1b8)](_0x559878){const _0x408365=_0x225ccf,_0x532a04=_0x4f536b(this[_0x408365(0x192)]);let _0x3b9777=_0x532a04[_0x408365(0x1c8)][_0x408365(0x1c9)](_0x408365(0x1e6))||[..._0x5d97f4];if(_0x532a04[_0x408365(0x20b)][_0x408365(0x1f7)](_0x408365(0x203))){if(!this[_0x408365(0x1c3)]){this[_0x408365(0x1c3)]=!0x0;const _0x25fb7d=_0x532a04[_0x408365(0x1ba)][_0x408365(0x1c9)](_0x408365(0x208));this[_0x408365(0x1e0)][_0x408365(0x236)][_0x408365(0x1ec)](_0x408365(0x1af))['to'](_0x25fb7d,_0x408365(0x1ea));}}else _0x3b9777=_0x3b9777[_0x408365(0x193)](_0x2bc4e4=>_0x408365(0x206)!=_0x2bc4e4);return this[_0x408365(0x201)][_0x408365(0x1d4)](async()=>{const _0x203718=_0x408365;this[_0x203718(0x1e0)][_0x203718(0x236)][_0x203718(0x1da)](_0x203718(0x222),{'id':_0x559878[_0x203718(0x1c0)]+':'+_0x559878['id'],'areActionsDisabled':_0x559878[_0x203718(0x1ee)],'showDiff':this[_0x203718(0x1fd)],'availableActions':_0x3b9777}),this[_0x203718(0x22a)]();});}[_0x225ccf(0x1ed)](_0x2e0d1d,_0x4ac061){const _0x5b19bb=_0x225ccf,_0x5e7070=this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1fa)][_0x5b19bb(0x1f2)];if(_0x5e7070 instanceof _0x12bdfc)return this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1fa)][_0x5b19bb(0x205)](_0x5e7070),void this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1da)](_0x5b19bb(0x219),{'id':_0x2e0d1d['id'],'capabilities':{'isWebSearchEnabled':_0x5e7070[_0x5b19bb(0x18f)][_0x5b19bb(0x22c)]||_0x4ac061[_0x5b19bb(0x22c)],'isReasoningEnabled':_0x5e7070[_0x5b19bb(0x18f)][_0x5b19bb(0x189)]||_0x4ac061[_0x5b19bb(0x189)]}});this[_0x5b19bb(0x1e0)][_0x5b19bb(0x236)][_0x5b19bb(0x1da)](_0x5b19bb(0x219),{'id':_0x2e0d1d['id'],'capabilities':_0x4ac061});}async[_0x225ccf(0x1ab)](_0x26d719,_0x12ea44){const _0x393a91=_0x225ccf;let _0x2acec0;return await this[_0x393a91(0x201)][_0x393a91(0x1d4)](async()=>{const _0x3e4dac=_0x393a91;_0x2acec0=this[_0x3e4dac(0x1e0)][_0x3e4dac(0x236)][_0x3e4dac(0x1da)](_0x3e4dac(0x1b7),{'content':_0x26d719,'id':_0x12ea44});}),_0x2acec0;}[_0x225ccf(0x1cb)](_0x39c890){const _0x4128b5=_0x225ccf;this[_0x4128b5(0x1e0)][_0x4128b5(0x236)][_0x4128b5(0x196)](_0x39c890);}[_0x225ccf(0x1b6)](_0x151b03){const _0x5f4b59=_0x225ccf;return this[_0x5f4b59(0x1e0)][_0x5f4b59(0x236)][_0x5f4b59(0x1cc)](_0x151b03);}[_0x225ccf(0x1c4)](_0x48f0f1){const _0x61e29e=_0x225ccf,_0x303536=this[_0x61e29e(0x1e0)][_0x61e29e(0x236)][_0x61e29e(0x1fa)][_0x61e29e(0x1db)](_0x32d4ea=>_0x32d4ea[_0x61e29e(0x215)]['id']==_0x48f0f1['id']&&_0x32d4ea instanceof _0x12bdfc);_0x303536&&_0x303536[_0x61e29e(0x1ad)](_0x61e29e(0x238),_0x48f0f1[_0x61e29e(0x238)]);}async[_0x225ccf(0x216)](_0x57e927){const _0x3eb301=_0x225ccf,_0x1d9dea=_0x57e927[_0x3eb301(0x1f4)]||this[_0x3eb301(0x1d1)];return this[_0x3eb301(0x201)][_0x3eb301(0x1d4)](async _0x4fe9d4=>{const _0x519243=_0x3eb301;await this[_0x519243(0x1e0)][_0x519243(0x236)][_0x519243(0x1e9)]({..._0x57e927,'abortSignal':_0x4fe9d4,'renderingStrategy':_0x1d9dea}),_0x57e927[_0x519243(0x22d)]&&this[_0x519243(0x213)](_0x57e927['id']);});}[_0x225ccf(0x1e5)](_0x4bb13f,_0x1bed50){const _0x487af1=_0x225ccf;this[_0x487af1(0x1e0)][_0x487af1(0x236)][_0x487af1(0x1e4)](_0x4bb13f,_0x1bed50);}async[_0x225ccf(0x1fb)](_0x8522e3){const _0x369404=_0x225ccf,_0x433b62=_0x8522e3[_0x369404(0x1f4)]||this[_0x369404(0x1d1)];return this[_0x369404(0x201)][_0x369404(0x1d4)](async _0x5f3dc7=>{const _0x1f25e6=_0x369404;await this[_0x1f25e6(0x1e0)][_0x1f25e6(0x236)][_0x1f25e6(0x1c6)]({..._0x8522e3,'abortSignal':_0x5f3dc7,'renderingStrategy':_0x433b62}),_0x8522e3[_0x1f25e6(0x22d)]&&this[_0x1f25e6(0x213)](_0x8522e3['id']);});}[_0x225ccf(0x1b9)](_0x5efc09){const _0x58c043=_0x225ccf;this[_0x58c043(0x1e0)][_0x58c043(0x236)][_0x58c043(0x231)](_0x5efc09);}[_0x225ccf(0x1a5)](_0x567f22){const _0x107a9a=_0x225ccf;this[_0x107a9a(0x1e0)][_0x107a9a(0x236)][_0x107a9a(0x1ce)](_0x567f22);}[_0x225ccf(0x213)](_0x365f2e){const _0x464000=_0x225ccf;this[_0x464000(0x1e0)][_0x464000(0x236)][_0x464000(0x1a1)](_0x365f2e);}[_0x225ccf(0x212)](_0x35582f){const _0x4785ad=_0x225ccf;this[_0x4785ad(0x1e0)][_0x4785ad(0x236)][_0x4785ad(0x197)]()[_0x4785ad(0x193)](_0x5dd3de=>_0x5dd3de[_0x4785ad(0x1e3)](_0x35582f))[_0x4785ad(0x220)](_0x564bd8=>this[_0x4785ad(0x1e0)][_0x4785ad(0x236)][_0x4785ad(0x196)](_0x564bd8));}[_0x225ccf(0x21f)](){const _0x455743=_0x225ccf,_0x207f04=this[_0x455743(0x20c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x455743(0x1d2)](_0x207f04),this[_0x455743(0x1e0)][_0x455743(0x1ca)][_0x455743(0x1b2)](!this[_0x455743(0x192)][_0x455743(0x1c8)][_0x455743(0x1c9)](_0x455743(0x1d3))),this[_0x455743(0x1f3)]=!0x0,this[_0x455743(0x1e0)][_0x455743(0x236)][_0x455743(0x228)]();}[_0x225ccf(0x21c)](_0x26b4c9){const _0x302251=_0x225ccf;this[_0x302251(0x201)][_0x302251(0x200)](),this[_0x302251(0x1e0)][_0x302251(0x236)][_0x302251(0x197)]()[_0x302251(0x193)](_0x5e884b=>_0x5e884b[_0x302251(0x1e3)](_0x26b4c9['id']))[_0x302251(0x220)](_0x344cb1=>this[_0x302251(0x213)](_0x344cb1)),this[_0x302251(0x1f3)]=!0x1,this[_0x302251(0x1e0)][_0x302251(0x236)][_0x302251(0x1b5)]();}async[_0x225ccf(0x217)](){const _0x4e7e4b=_0x225ccf;return this[_0x4e7e4b(0x201)][_0x4e7e4b(0x1bc)][_0x4e7e4b(0x226)](()=>{const _0x1b8085=_0x4e7e4b;this[_0x1b8085(0x1f3)]=!0x1,this[_0x1b8085(0x1e0)][_0x1b8085(0x236)][_0x1b8085(0x1b5)]();});}[_0x225ccf(0x1f0)](_0x407d1a,_0x517902){const _0x16c91d=_0x225ccf;this[_0x16c91d(0x1e0)][_0x16c91d(0x1ca)][_0x16c91d(0x1f0)](_0x407d1a,_0x517902);}[_0x225ccf(0x1f5)](_0x171c79){const _0xc56ba=_0x225ccf;this[_0xc56ba(0x1e0)][_0xc56ba(0x1ca)][_0xc56ba(0x1f5)](_0x171c79);}[_0x225ccf(0x191)](_0x53f495,_0x410451){const _0x27f0f5=_0x225ccf;this[_0x27f0f5(0x1e0)][_0x27f0f5(0x1ca)][_0x27f0f5(0x191)](_0x53f495,_0x410451);}[_0x225ccf(0x187)](_0x257539){const _0x2531e7=_0x225ccf;this[_0x2531e7(0x1e0)][_0x2531e7(0x1ca)][_0x2531e7(0x187)](_0x257539);}[_0x225ccf(0x202)](_0x21b7b9){const _0x343366=_0x225ccf;this[_0x343366(0x1e0)][_0x343366(0x1ca)][_0x343366(0x202)](_0x21b7b9);}[_0x225ccf(0x1c1)](){const _0xb639b=_0x225ccf;this[_0xb639b(0x1e0)][_0xb639b(0x1ca)][_0xb639b(0x1c1)]();}[_0x225ccf(0x223)](){const _0x29e3d4=_0x225ccf;this[_0x29e3d4(0x1e0)][_0x29e3d4(0x1ca)][_0x29e3d4(0x223)]();}[_0x225ccf(0x20a)](_0x36c3db,_0x3a09d1,_0x44bfb7){const _0x4fb713=_0x225ccf;this[_0x4fb713(0x1e0)][_0x4fb713(0x1ca)][_0x4fb713(0x20a)](_0x36c3db,_0x3a09d1,_0x44bfb7);}[_0x225ccf(0x224)](){const _0x3a120a=_0x225ccf;this[_0x3a120a(0x1e0)][_0x3a120a(0x1ca)][_0x3a120a(0x224)](),this[_0x3a120a(0x1e0)][_0x3a120a(0x1ca)][_0x3a120a(0x1b4)](this[_0x3a120a(0x1e2)]());}[_0x225ccf(0x1f1)](_0x1973b4){const _0x2d0579=_0x225ccf;this[_0x2d0579(0x1e0)][_0x2d0579(0x1ca)][_0x2d0579(0x1f1)](_0x1973b4);}[_0x225ccf(0x229)](_0x76b99e){const _0x20dcd5=_0x225ccf;this[_0x20dcd5(0x1e0)][_0x20dcd5(0x1ca)][_0x20dcd5(0x1c2)](_0x76b99e[_0x20dcd5(0x22c)]),this[_0x20dcd5(0x1e0)][_0x20dcd5(0x1ca)][_0x20dcd5(0x188)](_0x76b99e[_0x20dcd5(0x189)]),this[_0x20dcd5(0x1e0)][_0x20dcd5(0x1ca)][_0x20dcd5(0x1b4)](this[_0x20dcd5(0x1e2)](_0x76b99e));}[_0x225ccf(0x18d)](_0x38479a,_0x59d42e){const _0x30d690=_0x225ccf;this[_0x30d690(0x1e0)][_0x30d690(0x1ca)][_0x30d690(0x19e)](_0x38479a),_0x59d42e&&this[_0x30d690(0x1e0)][_0x30d690(0x1ca)][_0x30d690(0x1b2)](!0x1);}[_0x225ccf(0x1b1)](_0x1def26){const _0x4331b2=_0x225ccf;this[_0x4331b2(0x1d1)]=_0x1def26;}[_0x225ccf(0x1ff)](_0x478d8b){const _0x5dbf47=_0x225ccf;this[_0x5dbf47(0x1e0)][_0x5dbf47(0x236)][_0x5dbf47(0x1ff)](_0x478d8b);}[_0x225ccf(0x214)](){const _0x549e4c=_0x225ccf;this[_0x549e4c(0x207)](_0xc9fde0(this[_0x549e4c(0x192)][_0x549e4c(0x20d)],_0x549e4c(0x1dd)));}[_0x225ccf(0x207)](_0x11abd9,_0x7ed4a3=!0x1){const _0x2f0d8e=_0x225ccf;if(_0x7ed4a3&&!_0xa6660b()&&_0x11abd9[_0x2f0d8e(0x1a7)])return this[_0x2f0d8e(0x1e0)][_0x2f0d8e(0x18c)][_0x2f0d8e(0x227)]='',void this[_0x2f0d8e(0x18e)](_0x11abd9);this[_0x2f0d8e(0x1e0)][_0x2f0d8e(0x18c)][_0x2f0d8e(0x227)]=_0x11abd9;}[_0x225ccf(0x1d2)](_0x356ee3){const _0x3b61a6=_0x225ccf;this[_0x3b61a6(0x1e0)][_0x3b61a6(0x236)][_0x3b61a6(0x1d2)](_0x356ee3);}[_0x225ccf(0x22a)](){const _0x47b46c=_0x225ccf;this[_0x47b46c(0x1e0)][_0x47b46c(0x236)][_0x47b46c(0x1d2)]('');}[_0x225ccf(0x18e)](_0x48c602){const _0x50f3f1=_0x225ccf;let _0x551dc8=0x0;clearInterval(this[_0x50f3f1(0x1bd)]),this[_0x50f3f1(0x1bd)]=setInterval(()=>{const _0x43137d=_0x50f3f1;this[_0x43137d(0x1e0)][_0x43137d(0x18c)][_0x43137d(0x227)]=this[_0x43137d(0x1e0)][_0x43137d(0x18c)][_0x43137d(0x227)]+_0x48c602[_0x551dc8],_0x551dc8++,_0x551dc8===_0x48c602[_0x43137d(0x1a7)]&&clearInterval(this[_0x43137d(0x1bd)]);},0x1e);}[_0x225ccf(0x22e)](_0x2b6aa1){const _0x3a805b=_0x225ccf;this[_0x3a805b(0x1e0)][_0x3a805b(0x18c)][_0x3a805b(0x19d)]=_0x2b6aa1;}[_0x225ccf(0x20c)](_0x1a602c){const _0x30311b=_0x225ccf;return _0x1a602c[_0x30311b(0x22c)]&&_0x1a602c[_0x30311b(0x189)]?_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x21e)):_0x1a602c[_0x30311b(0x22c)]?_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x211)):_0x1a602c[_0x30311b(0x189)]?_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x1e8)):_0xc9fde0(this[_0x30311b(0x192)][_0x30311b(0x20d)],_0x30311b(0x1ae));}[_0x225ccf(0x1e2)](_0x88c338){const _0x9dff82=_0x225ccf;return _0x88c338?_0x88c338[_0x9dff82(0x22c)]&&_0x88c338[_0x9dff82(0x189)]?_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x235)):_0x88c338[_0x9dff82(0x22c)]?_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x20e)):_0x88c338[_0x9dff82(0x189)]?_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x1be)):_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x19b)):_0xc9fde0(this[_0x9dff82(0x192)][_0x9dff82(0x20d)],_0x9dff82(0x19b));}[_0x225ccf(0x198)](_0x52eb0d,_0x3929c6,_0x35b025,_0x11131f){const _0x512312=_0x225ccf;this[_0x512312(0x1e0)][_0x512312(0x198)](_0x52eb0d,_0x3929c6,_0x35b025,_0x11131f);}[_0x225ccf(0x237)](_0x7b4d0b){const _0xb735c6=_0x225ccf;this[_0xb735c6(0x1e0)][_0xb735c6(0x237)](_0x7b4d0b);}[_0x225ccf(0x1b3)](_0x2105d0){const _0x24378e=_0x225ccf;this[_0x24378e(0x1e0)][_0x24378e(0x1ca)][_0x24378e(0x1b3)](_0x2105d0);}[_0x225ccf(0x1a6)](_0x39b48e=!0x1){const _0x1e9762=_0x225ccf;this[_0x1e9762(0x1e0)][_0x1e9762(0x1ca)][_0x1e9762(0x1a6)](_0x39b48e);}[_0x225ccf(0x1c5)](_0x1268c3,_0x1b5478){const _0xcd5b17=_0x225ccf;this[_0xcd5b17(0x1e0)][_0xcd5b17(0x236)][_0xcd5b17(0x1f9)](_0x1268c3,_0x1b5478);}[_0x225ccf(0x228)](){const _0x560244=_0x225ccf;this[_0x560244(0x1e0)][_0x560244(0x236)][_0x560244(0x228)]();}[_0x225ccf(0x20f)](){const _0x35daeb=_0x225ccf;this[_0x35daeb(0x1e0)][_0x35daeb(0x1ca)][_0x35daeb(0x210)]=!0x0;}[_0x225ccf(0x22f)](){const _0x1aef81=_0x225ccf;this[_0x1aef81(0x1e0)][_0x1aef81(0x1ca)][_0x1aef81(0x210)]=!0x1;}}
|
|
23
|
+
const _0x529712=_0x4dcc;(function(_0xc6dc0b,_0x25133){const _0x4631e5=_0x4dcc,_0x4ec864=_0xc6dc0b();while(!![]){try{const _0x1cb6f3=parseInt(_0x4631e5(0x1e6))/0x1+parseInt(_0x4631e5(0x1d0))/0x2*(parseInt(_0x4631e5(0x18c))/0x3)+-parseInt(_0x4631e5(0x1be))/0x4*(parseInt(_0x4631e5(0x1cc))/0x5)+parseInt(_0x4631e5(0x1e7))/0x6*(parseInt(_0x4631e5(0x17b))/0x7)+-parseInt(_0x4631e5(0x1aa))/0x8+parseInt(_0x4631e5(0x181))/0x9+-parseInt(_0x4631e5(0x17f))/0xa;if(_0x1cb6f3===_0x25133)break;else _0x4ec864['push'](_0x4ec864['shift']());}catch(_0x2acdfc){_0x4ec864['push'](_0x4ec864['shift']());}}}(_0x3098,0x21771));import{ContextPlugin as _0x2c780f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4e9925}from'ckeditor5/src/utils.js';import{AIChatView as _0x566c5b}from'./ui/aichatview.js';import{AITabs as _0x4d0825}from'../aitabs/aitabs.js';import{getTranslation as _0x4d6b1f}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x37d766}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4484ad}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x36b1c2}from'./utils/promisequeue.js';function _0x4dcc(_0x2b45bb,_0x236efe){const _0x309810=_0x3098();return _0x4dcc=function(_0x4dcccd,_0x14a26a){_0x4dcccd=_0x4dcccd-0x16b;let _0x3d4c63=_0x309810[_0x4dcccd];return _0x3d4c63;},_0x4dcc(_0x2b45bb,_0x236efe);}import{AI_CHAT_UI_EVENT_NAMES as _0x3acec6}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x178c24}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x5cfec2}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x3098(){const _0x454687=['resetMessageInput','clearPendingContextUI','finishInteraction','chatFeed','setContextItemLoading','addFeedItemError','setModel','setConversationContext','removeItem','addFeedItemStaticMessage','label','_titleAnimationInterval','resetConversationTitle','children','last','</p>','333704lXuDpT','addContextItem','setSuggestionPartActive','addFeedItemCustomElement','enableControls','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateFeedItemAIReplyContent','addFeedItemAISuggestion','disableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setFeedItemAIReplySuggestionPartActive','addFeedItemUserMessage','AIChatUI','scrollFeedToSuggestion','10obpbYU','clear','stopAutoScroll','_animateConversationTitle','2knurjy','chatControls','context','startAutoScroll','scrollToSuggestion','conversation-start','createConversation','enableModelSelector','filter','_promiseQueue','queueEmptyPromise','value','_getInputPlaceholder','renderingStrategy','setIsUploadInProgress','ai-reply','markItemAsDone','trackChanges','fire','updateFeedInteractionHeader','setSelectedModel','ai-suggestion-reply','191139oYRIsA','1464984NkcYYV','getItemIds','addFeedInteractionHeader','populateSourceResourceBalloon','remove','isVisible','interaction-header','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','removeFeedInteraction','markFeedItemAsDone','bind','interactionId','ai.models.showModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateFeedItemAIReplySuggestionPartState','isReasoningEnabled','attributes','updateCapabilities','ai.chat.welcomeMessage','forEach','displayedPrompt','capabilities','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','isLoading','requires','has','availableModels','feedItemRenderingStrategy','chat','find','startsWith','updateSuggestionItem','isPremiumPlugin','isPending','abort','clearConversationContextUI','set','enqueue','chatHeader','updateFeedItemAIReplySources','delegate','isDone','_interactionPromiseResolver','view','error-message','toggleLoadingSkeleton','addItem','locale','get','config','clearLoadingMessage','isWebSearchEnabled','isModelAvailable','setIsMaximized','setLoadingMessage','addFeedItemAIReply','isOfficialPlugin','AITabs','showResizeButton','setConversationTitle','isMaximized','destroy','length','isBusy','setModelList','updateSuggestionPartState','showDiff','updateReplyItem','AI_CHAT_WELCOME_MESSAGE','addTab','7MShHWw','custom-element','closeSourceResourceBalloon','userMessage','836760TWSkdC','_isTrackChangesCommandValueBound','539244ZusLgX','user-message','updateWebSources','stopInteraction','TrackChanges','setFeedItemRenderingStrategy','updateFeedItemAIReplySuggestionContent','values','removeFeedItem','hasItem','prepareLoadingMessage','229545eUSFcz','conversationCreated','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','disableControls','startInteraction','AI_CHAT_HEADING','then','<p>','toggleSuggestionDisplayMode','insertSuggestion','setReasoning','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','ai.availableReplyActions','isDisabled','streaming','setWebSearch','from','commands','hasFeedItem','plugins','isTrackChangesOn','contextItems','areActionsDisabled','options','setPromptInputValue','setAddContextOptions','pluginName','setInputPlaceholder','removeContextItem','ai.chat.context.searchInputVisibleFrom','1473064uIXAXj','_view','updateResourceState','focusPromptInput'];_0x3098=function(){return _0x454687;};return _0x3098();}export class AIChatUI extends _0x2c780f{static get[_0x529712(0x200)](){return[_0x4d0825];}[_0x529712(0x1ab)];static get[_0x529712(0x1a6)](){const _0x5c711d=_0x529712;return _0x5c711d(0x1ca);}static get[_0x529712(0x16d)](){return!0x0;}static get[_0x529712(0x208)](){return!0x0;}[_0x529712(0x203)]=_0x529712(0x19a);[_0x529712(0x177)]=!0x0;[_0x529712(0x1d9)];[_0x529712(0x212)];[_0x529712(0x1b9)]=void 0x0;[_0x529712(0x180)]=!0x1;constructor(_0x48b05e){const _0x558954=_0x529712;super(_0x48b05e);const _0x281a0d=this[_0x558954(0x1d2)][_0x558954(0x19f)][_0x558954(0x218)](_0x558954(0x16e));this[_0x558954(0x20c)](_0x558954(0x174),!0x1),this[_0x558954(0x1d9)]=new _0x36b1c2(),this[_0x558954(0x1ab)]=new _0x566c5b(this[_0x558954(0x1d2)][_0x558954(0x217)],{'showResizeButton':_0x281a0d[_0x558954(0x16f)],'contextResourcesSearchInputVisibleFrom':this[_0x558954(0x1d2)][_0x558954(0x219)][_0x558954(0x218)](_0x558954(0x1a9))}),this[_0x558954(0x1ab)][_0x558954(0x210)](..._0x3acec6)['to'](this),this[_0x558954(0x1ab)]['on'](_0x558954(0x194),(_0x26a039,{showDiff:_0x496439})=>{const _0x3d4421=_0x558954;this[_0x3d4421(0x177)]=_0x496439;}),_0x281a0d[_0x558954(0x213)][_0x558954(0x17a)]({'id':_0x558954(0x204),'buttonLabel':_0x4d6b1f(this[_0x558954(0x1d2)][_0x558954(0x217)],_0x558954(0x191)),'buttonIcon':_0x37d766,'order':0x0,'content':this[_0x558954(0x1ab)]}),this[_0x558954(0x1ab)][_0x558954(0x1d1)][_0x558954(0x1f1)](_0x558954(0x1ff))['to'](this,_0x558954(0x174),_0xe230c2=>_0xe230c2),this[_0x558954(0x1ab)][_0x558954(0x1b1)][_0x558954(0x1f1)](_0x558954(0x209))['to'](this,_0x558954(0x174),_0x545a88=>_0x545a88),this[_0x558954(0x1ab)][_0x558954(0x1d1)][_0x558954(0x1a7)](this[_0x558954(0x1dc)]()),this[_0x558954(0x1f1)](_0x558954(0x21c))['to'](this[_0x558954(0x1ab)][_0x558954(0x1d1)],_0x558954(0x21c));}[_0x529712(0x172)](){const _0x15eb3c=_0x529712;super[_0x15eb3c(0x172)](),this[_0x15eb3c(0x1b9)]&&clearInterval(this[_0x15eb3c(0x1b9)]);}[_0x529712(0x1d6)](_0x22db02){const _0xd273e2=_0x529712,_0x51ccf0=this[_0xd273e2(0x1d2)][_0xd273e2(0x219)][_0xd273e2(0x218)](_0xd273e2(0x1fa))??_0x4d6b1f(this[_0xd273e2(0x1d2)][_0xd273e2(0x217)],_0xd273e2(0x179));this[_0xd273e2(0x1ab)][_0xd273e2(0x1b1)][_0xd273e2(0x1cd)](),this[_0xd273e2(0x1ab)][_0xd273e2(0x1d1)][_0xd273e2(0x1d7)](),this[_0xd273e2(0x1ab)][_0xd273e2(0x1d1)][_0xd273e2(0x175)](_0x22db02[_0xd273e2(0x202)],!this[_0xd273e2(0x1d2)][_0xd273e2(0x219)][_0xd273e2(0x218)](_0xd273e2(0x1f3))),this[_0xd273e2(0x1b7)]({'id':_0xd273e2(0x1d5),'staticMessage':_0x51ccf0}),this[_0xd273e2(0x1e2)](_0xd273e2(0x18d));}[_0x529712(0x1b7)]({id:_0xec523f,staticMessage:_0x115cc4}){const _0x1acf5a=_0x529712;this[_0x1acf5a(0x1ab)][_0x1acf5a(0x1b1)][_0x1acf5a(0x216)](_0x1acf5a(0x1df),{'id':_0xec523f,'initialContent':_0x1acf5a(0x193)+_0x115cc4+_0x1acf5a(0x1bd)});}[_0x529712(0x1c9)](_0x38d208){const _0xbbb121=_0x529712,_0x23a7ef=_0x38d208[_0xbbb121(0x1f8)]?.[_0xbbb121(0x1fc)]||_0x38d208[_0xbbb121(0x17e)];this[_0xbbb121(0x1ab)][_0xbbb121(0x1b1)][_0xbbb121(0x216)](_0xbbb121(0x182),{'contextItems':Array[_0xbbb121(0x19c)](_0x38d208[_0xbbb121(0x1a1)][_0xbbb121(0x188)]()),'initialContent':_0xbbb121(0x193)+_0x23a7ef+_0xbbb121(0x1bd),'id':_0x38d208['id']});}[_0x529712(0x1b3)]({errorMessage:_0x5044d9,id:_0x5320bc}){const _0x3f9d77=_0x529712;this[_0x3f9d77(0x1ab)][_0x3f9d77(0x1b1)][_0x3f9d77(0x216)](_0x3f9d77(0x214),{'initialContent':_0x3f9d77(0x193)+_0x5044d9+_0x3f9d77(0x1bd),'id':_0x5320bc});}[_0x529712(0x16c)](_0x3e8057){const _0x255197=_0x529712;return this[_0x255197(0x1d9)][_0x255197(0x20d)](async()=>{const _0x2db58a=_0x255197;this[_0x2db58a(0x1ab)][_0x2db58a(0x1b1)][_0x2db58a(0x216)](_0x2db58a(0x1df),{'id':_0x3e8057[_0x2db58a(0x1f2)]+':'+_0x3e8057['id']}),this[_0x2db58a(0x21a)]();});}async[_0x529712(0x1c5)](_0x1b5e3d){const _0x27cec5=_0x529712,_0x4cd7c9=_0x178c24(this[_0x27cec5(0x1d2)]);let _0xb8c206=_0x4cd7c9[_0x27cec5(0x219)][_0x27cec5(0x218)](_0x27cec5(0x198))||[..._0x5cfec2];if(_0x4cd7c9[_0x27cec5(0x19f)][_0x27cec5(0x201)](_0x27cec5(0x185))){if(!this[_0x27cec5(0x180)]){this[_0x27cec5(0x180)]=!0x0;const _0x21d168=_0x4cd7c9[_0x27cec5(0x19d)][_0x27cec5(0x218)](_0x27cec5(0x1e1));this[_0x27cec5(0x1ab)][_0x27cec5(0x1b1)][_0x27cec5(0x1f1)](_0x27cec5(0x1a0))['to'](_0x21d168,_0x27cec5(0x1db));}}else _0xb8c206=_0xb8c206[_0x27cec5(0x1d8)](_0xc8cc6=>_0x27cec5(0x195)!=_0xc8cc6);return this[_0x27cec5(0x1d9)][_0x27cec5(0x20d)](async()=>{const _0x154437=_0x27cec5;this[_0x154437(0x1ab)][_0x154437(0x1b1)][_0x154437(0x216)](_0x154437(0x1e5),{'id':_0x1b5e3d[_0x154437(0x1f2)]+':'+_0x1b5e3d['id'],'areActionsDisabled':_0x1b5e3d[_0x154437(0x1a2)],'showDiff':this[_0x154437(0x177)],'availableActions':_0xb8c206}),this[_0x154437(0x21a)]();});}[_0x529712(0x1e9)](_0x4ae250,_0x8fef15){const _0x294592=_0x529712,_0x3fc228=this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x1bb)][_0x294592(0x1bc)];if(_0x3fc228 instanceof _0x4484ad)return this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x1bb)][_0x294592(0x1eb)](_0x3fc228),void this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x216)](_0x294592(0x1ed),{'id':_0x4ae250['id'],'capabilities':{'isWebSearchEnabled':_0x3fc228[_0x294592(0x1fd)][_0x294592(0x21b)]||_0x8fef15[_0x294592(0x21b)],'isReasoningEnabled':_0x3fc228[_0x294592(0x1fd)][_0x294592(0x1f7)]||_0x8fef15[_0x294592(0x1f7)]}});this[_0x294592(0x1ab)][_0x294592(0x1b1)][_0x294592(0x216)](_0x294592(0x1ed),{'id':_0x4ae250['id'],'capabilities':_0x8fef15});}async[_0x529712(0x1c1)](_0x2496e6,_0x401107){const _0x9cf743=_0x529712;let _0x33f75a;return await this[_0x9cf743(0x1d9)][_0x9cf743(0x20d)](async()=>{const _0x477456=_0x9cf743;_0x33f75a=this[_0x477456(0x1ab)][_0x477456(0x1b1)][_0x477456(0x216)](_0x477456(0x17c),{'content':_0x2496e6,'id':_0x401107});}),_0x33f75a;}[_0x529712(0x189)](_0x4e5f01){const _0x10b701=_0x529712;this[_0x10b701(0x1ab)][_0x10b701(0x1b1)][_0x10b701(0x1b6)](_0x4e5f01);}[_0x529712(0x19e)](_0x3c3664){const _0x1a2e16=_0x529712;return this[_0x1a2e16(0x1ab)][_0x1a2e16(0x1b1)][_0x1a2e16(0x18a)](_0x3c3664);}[_0x529712(0x1e3)](_0x2c9543){const _0x5c712a=_0x529712,_0x332ca7=this[_0x5c712a(0x1ab)][_0x5c712a(0x1b1)][_0x5c712a(0x1bb)][_0x5c712a(0x205)](_0x53e860=>_0x53e860[_0x5c712a(0x1a3)]['id']==_0x2c9543['id']&&_0x53e860 instanceof _0x4484ad);_0x332ca7&&_0x332ca7[_0x5c712a(0x20c)](_0x5c712a(0x1ec),_0x2c9543[_0x5c712a(0x1ec)]);}async[_0x529712(0x1c4)](_0x2739da){const _0x43c352=_0x529712,_0x19783c=_0x2739da[_0x43c352(0x1dd)]||this[_0x43c352(0x203)];return this[_0x43c352(0x1d9)][_0x43c352(0x20d)](async _0x5cc250=>{const _0x3f53a5=_0x43c352;await this[_0x3f53a5(0x1ab)][_0x3f53a5(0x1b1)][_0x3f53a5(0x178)]({..._0x2739da,'abortSignal':_0x5cc250,'renderingStrategy':_0x19783c}),_0x2739da[_0x3f53a5(0x211)]&&this[_0x3f53a5(0x1f0)](_0x2739da['id']);});}[_0x529712(0x20f)](_0x44301d,_0x362361){const _0x529bdf=_0x529712;this[_0x529bdf(0x1ab)][_0x529bdf(0x1b1)][_0x529bdf(0x183)](_0x44301d,_0x362361);}async[_0x529712(0x187)](_0x5b00ca){const _0xe4a890=_0x529712,_0x536d4a=_0x5b00ca[_0xe4a890(0x1dd)]||this[_0xe4a890(0x203)];return this[_0xe4a890(0x1d9)][_0xe4a890(0x20d)](async _0xb713e1=>{const _0x2e5336=_0xe4a890;await this[_0x2e5336(0x1ab)][_0x2e5336(0x1b1)][_0x2e5336(0x207)]({..._0x5b00ca,'abortSignal':_0xb713e1,'renderingStrategy':_0x536d4a}),_0x5b00ca[_0x2e5336(0x211)]&&this[_0x2e5336(0x1f0)](_0x5b00ca['id']);});}[_0x529712(0x1f6)](_0x449dcb){const _0x50c641=_0x529712;this[_0x50c641(0x1ab)][_0x50c641(0x1b1)][_0x50c641(0x176)](_0x449dcb);}[_0x529712(0x1c8)](_0x1c54c0){const _0x5b81cd=_0x529712;this[_0x5b81cd(0x1ab)][_0x5b81cd(0x1b1)][_0x5b81cd(0x1c0)](_0x1c54c0);}[_0x529712(0x1f0)](_0x31dfa9){const _0x420cd4=_0x529712;this[_0x420cd4(0x1ab)][_0x420cd4(0x1b1)][_0x420cd4(0x1e0)](_0x31dfa9);}[_0x529712(0x1ef)](_0x516291){const _0x4d9eea=_0x529712;this[_0x4d9eea(0x1ab)][_0x4d9eea(0x1b1)][_0x4d9eea(0x1e8)]()[_0x4d9eea(0x1d8)](_0x421233=>_0x421233[_0x4d9eea(0x206)](_0x516291))[_0x4d9eea(0x1fb)](_0xcc2a9=>this[_0x4d9eea(0x1ab)][_0x4d9eea(0x1b1)][_0x4d9eea(0x1b6)](_0xcc2a9));}[_0x529712(0x190)](){const _0x520e64=_0x529712,_0x4627bb=this[_0x520e64(0x18b)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1});this[_0x520e64(0x16b)](_0x4627bb),this[_0x520e64(0x1ab)][_0x520e64(0x1d1)][_0x520e64(0x1c6)](!this[_0x520e64(0x1d2)][_0x520e64(0x219)][_0x520e64(0x218)](_0x520e64(0x1f3))),this[_0x520e64(0x174)]=!0x0,this[_0x520e64(0x1ab)][_0x520e64(0x1b1)][_0x520e64(0x1d3)]();}[_0x529712(0x184)](_0x25d3ee){const _0x59465d=_0x529712;this[_0x59465d(0x1d9)][_0x59465d(0x20a)](),this[_0x59465d(0x1ab)][_0x59465d(0x1b1)][_0x59465d(0x1e8)]()[_0x59465d(0x1d8)](_0x4925c9=>_0x4925c9[_0x59465d(0x206)](_0x25d3ee['id']))[_0x59465d(0x1fb)](_0x29a157=>this[_0x59465d(0x1f0)](_0x29a157)),this[_0x59465d(0x174)]=!0x1,this[_0x59465d(0x1ab)][_0x59465d(0x1b1)][_0x59465d(0x1ce)]();}async[_0x529712(0x1b0)](){const _0x44deb2=_0x529712;return this[_0x44deb2(0x1d9)][_0x44deb2(0x1da)][_0x44deb2(0x192)](()=>{const _0x221fe5=_0x44deb2;this[_0x221fe5(0x174)]=!0x1,this[_0x221fe5(0x1ab)][_0x221fe5(0x1b1)][_0x221fe5(0x1ce)]();});}[_0x529712(0x1bf)](_0x3e4f3c,_0x56ae3d){const _0x3e212f=_0x529712;this[_0x3e212f(0x1ab)][_0x3e212f(0x1d1)][_0x3e212f(0x1bf)](_0x3e4f3c,_0x56ae3d);}[_0x529712(0x1a8)](_0x4fa1a5){const _0x30afad=_0x529712;this[_0x30afad(0x1ab)][_0x30afad(0x1d1)][_0x30afad(0x1a8)](_0x4fa1a5);}[_0x529712(0x1b2)](_0x5c2df2,_0x389996){const _0x590333=_0x529712;this[_0x590333(0x1ab)][_0x590333(0x1d1)][_0x590333(0x1b2)](_0x5c2df2,_0x389996);}[_0x529712(0x1de)](_0x5cdf3e){const _0x594df0=_0x529712;this[_0x594df0(0x1ab)][_0x594df0(0x1d1)][_0x594df0(0x1de)](_0x5cdf3e);}[_0x529712(0x1b5)](_0x2af990){const _0x2dd0a9=_0x529712;this[_0x2dd0a9(0x1ab)][_0x2dd0a9(0x1d1)][_0x2dd0a9(0x1b5)](_0x2af990);}[_0x529712(0x1af)](){const _0x53d398=_0x529712;this[_0x53d398(0x1ab)][_0x53d398(0x1d1)][_0x53d398(0x1af)]();}[_0x529712(0x20b)](){const _0x230e73=_0x529712;this[_0x230e73(0x1ab)][_0x230e73(0x1d1)][_0x230e73(0x20b)]();}[_0x529712(0x1ac)](_0x50d434,_0x5a57a6,_0x580552){const _0x269914=_0x529712;this[_0x269914(0x1ab)][_0x269914(0x1d1)][_0x269914(0x1ac)](_0x50d434,_0x5a57a6,_0x580552);}[_0x529712(0x1ae)](){const _0xe77b8c=_0x529712;this[_0xe77b8c(0x1ab)][_0xe77b8c(0x1d1)][_0xe77b8c(0x1ae)](),this[_0xe77b8c(0x1ab)][_0xe77b8c(0x1d1)][_0xe77b8c(0x1a7)](this[_0xe77b8c(0x1dc)]());}[_0x529712(0x1a5)](_0x3fc531){const _0x2b5e39=_0x529712;this[_0x2b5e39(0x1ab)][_0x2b5e39(0x1d1)][_0x2b5e39(0x1a5)](_0x3fc531);}[_0x529712(0x1f9)](_0x881803){const _0x59d715=_0x529712;this[_0x59d715(0x1ab)][_0x59d715(0x1d1)][_0x59d715(0x19b)](_0x881803[_0x59d715(0x21b)]),this[_0x59d715(0x1ab)][_0x59d715(0x1d1)][_0x59d715(0x196)](_0x881803[_0x59d715(0x1f7)]),this[_0x59d715(0x1ab)][_0x59d715(0x1d1)][_0x59d715(0x1a7)](this[_0x59d715(0x1dc)](_0x881803));}[_0x529712(0x1e4)](_0x4e7167,_0x568af5){const _0x34f97d=_0x529712;this[_0x34f97d(0x1ab)][_0x34f97d(0x1d1)][_0x34f97d(0x1b4)](_0x4e7167),_0x568af5&&this[_0x34f97d(0x1ab)][_0x34f97d(0x1d1)][_0x34f97d(0x1c6)](!0x1);}[_0x529712(0x186)](_0x42de5b){const _0x263094=_0x529712;this[_0x263094(0x203)]=_0x42de5b;}[_0x529712(0x215)](_0x48d54c){const _0x127076=_0x529712;this[_0x127076(0x1ab)][_0x127076(0x1b1)][_0x127076(0x215)](_0x48d54c);}[_0x529712(0x1ba)](){const _0x4620fe=_0x529712;this[_0x4620fe(0x170)](_0x4d6b1f(this[_0x4620fe(0x1d2)][_0x4620fe(0x217)],_0x4620fe(0x191)));}[_0x529712(0x170)](_0x414b24,_0x6892f4=!0x1){const _0xe8cbba=_0x529712;if(_0x6892f4&&!_0x4e9925()&&_0x414b24[_0xe8cbba(0x173)])return this[_0xe8cbba(0x1ab)][_0xe8cbba(0x20e)][_0xe8cbba(0x1b8)]='',void this[_0xe8cbba(0x1cf)](_0x414b24);this[_0xe8cbba(0x1ab)][_0xe8cbba(0x20e)][_0xe8cbba(0x1b8)]=_0x414b24;}[_0x529712(0x16b)](_0x58093f){const _0x1e8c74=_0x529712;this[_0x1e8c74(0x1ab)][_0x1e8c74(0x1b1)][_0x1e8c74(0x16b)](_0x58093f);}[_0x529712(0x21a)](){const _0x34ab39=_0x529712;this[_0x34ab39(0x1ab)][_0x34ab39(0x1b1)][_0x34ab39(0x16b)]('');}[_0x529712(0x1cf)](_0x15a084){const _0x27befe=_0x529712;let _0x23794e=0x0;clearInterval(this[_0x27befe(0x1b9)]),this[_0x27befe(0x1b9)]=setInterval(()=>{const _0x25d62b=_0x27befe;this[_0x25d62b(0x1ab)][_0x25d62b(0x20e)][_0x25d62b(0x1b8)]=this[_0x25d62b(0x1ab)][_0x25d62b(0x20e)][_0x25d62b(0x1b8)]+_0x15a084[_0x23794e],_0x23794e++,_0x23794e===_0x15a084[_0x25d62b(0x173)]&&clearInterval(this[_0x25d62b(0x1b9)]);},0x1e);}[_0x529712(0x21d)](_0x1b2d32){const _0xabf0=_0x529712;this[_0xabf0(0x1ab)][_0xabf0(0x20e)][_0xabf0(0x171)]=_0x1b2d32;}[_0x529712(0x18b)](_0x32c34d){const _0x22253e=_0x529712;return _0x32c34d[_0x22253e(0x21b)]&&_0x32c34d[_0x22253e(0x1f7)]?_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x1fe)):_0x32c34d[_0x22253e(0x21b)]?_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x18e)):_0x32c34d[_0x22253e(0x1f7)]?_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x1f5)):_0x4d6b1f(this[_0x22253e(0x1d2)][_0x22253e(0x217)],_0x22253e(0x1ee));}[_0x529712(0x1dc)](_0x202b19){const _0x2290e6=_0x529712;return _0x202b19?_0x202b19[_0x2290e6(0x21b)]&&_0x202b19[_0x2290e6(0x1f7)]?_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x1f4)):_0x202b19[_0x2290e6(0x21b)]?_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x1c3)):_0x202b19[_0x2290e6(0x1f7)]?_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x1c7)):_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x197)):_0x4d6b1f(this[_0x2290e6(0x1d2)][_0x2290e6(0x217)],_0x2290e6(0x197));}[_0x529712(0x1ea)](_0x4e43d9,_0xd1ca24,_0x547427,_0x15b451){const _0x50226c=_0x529712;this[_0x50226c(0x1ab)][_0x50226c(0x1ea)](_0x4e43d9,_0xd1ca24,_0x547427,_0x15b451);}[_0x529712(0x17d)](_0x5ba8fd){const _0x2c9e34=_0x529712;this[_0x2c9e34(0x1ab)][_0x2c9e34(0x17d)](_0x5ba8fd);}[_0x529712(0x1a4)](_0x357148){const _0x250d12=_0x529712;this[_0x250d12(0x1ab)][_0x250d12(0x1d1)][_0x250d12(0x1a4)](_0x357148);}[_0x529712(0x1ad)](_0x5a23f3=!0x1){const _0x4c0560=_0x529712;this[_0x4c0560(0x1ab)][_0x4c0560(0x1d1)][_0x4c0560(0x1ad)](_0x5a23f3);}[_0x529712(0x1cb)](_0xc8d3d6,_0x30fec3){const _0xab5697=_0x529712;this[_0xab5697(0x1ab)][_0xab5697(0x1b1)][_0xab5697(0x1d4)](_0xc8d3d6,_0x30fec3);}[_0x529712(0x1d3)](){const _0x10070d=_0x529712;this[_0x10070d(0x1ab)][_0x10070d(0x1b1)][_0x10070d(0x1d3)]();}[_0x529712(0x18f)](){const _0x5f94e8=_0x529712;this[_0x5f94e8(0x1ab)][_0x5f94e8(0x1d1)][_0x5f94e8(0x199)]=!0x0;}[_0x529712(0x1c2)](){const _0x24a006=_0x529712;this[_0x24a006(0x1ab)][_0x24a006(0x1d1)][_0x24a006(0x199)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1b34(_0x4cf6f2,_0x1b735d){const _0x18337a=_0x1833();return _0x1b34=function(_0x1b348d,_0x2556a8){_0x1b348d=_0x1b348d-0xe3;let _0x314fa7=_0x18337a[_0x1b348d];return _0x314fa7;},_0x1b34(_0x4cf6f2,_0x1b735d);}const _0x255bd5=_0x1b34;(function(_0x2b7558,_0x219c7e){const _0x4c7633=_0x1b34,_0x902864=_0x2b7558();while(!![]){try{const _0x387e87=-parseInt(_0x4c7633(0x153))/0x1*(parseInt(_0x4c7633(0x102))/0x2)+-parseInt(_0x4c7633(0x12b))/0x3*(-parseInt(_0x4c7633(0x106))/0x4)+parseInt(_0x4c7633(0x101))/0x5*(parseInt(_0x4c7633(0x16f))/0x6)+parseInt(_0x4c7633(0x114))/0x7*(parseInt(_0x4c7633(0x10b))/0x8)+parseInt(_0x4c7633(0xe8))/0x9+-parseInt(_0x4c7633(0x10a))/0xa*(parseInt(_0x4c7633(0x120))/0xb)+parseInt(_0x4c7633(0x10e))/0xc*(parseInt(_0x4c7633(0x135))/0xd);if(_0x387e87===_0x219c7e)break;else _0x902864['push'](_0x902864['shift']());}catch(_0x1cb89c){_0x902864['push'](_0x902864['shift']());}}}(_0x1833,0xcd78e));import{CKEditorError as _0x345b32,ObservableMixin as _0x169320,uid as _0x1f2165}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3894c2,AIContextTextResourceType as _0x462fc1}from'../../aicore/model/aicontext.js';import{escape as _0x489c5}from'es-toolkit/compat';function _0x1833(){const _0x44eae6=['name','hidden','ai-chat-url-upload-failed','files-','abortController','object','uploadFile','document','getData','_finishContextItemLoading','ai-request-aborted','contextItemAdded','MARKDOWN','615585ZKGoAX','5752fxyMPz','attributes','ai-chat-resource-load-failed','DOCUMENT','4mqGzNL','ai-chat-document-upload-failed','fetchDocument','loadSourceResources','12568370xKVYKJ','212888KpkPfe','contextItemRemoved','size','4260Lwukgg','isCurrentDocumentInContext','HTML','mcpServerName','error','_addContextOptionsState','49EhyXVB','delete','values','_toggleAddCurrentDocumentOptionVisibility','getDocument','url-','SELECTION','ai-chat-file-upload-failed','_finishUploadOperation','customItems','content','removeSelectionFromContext','11lKcAfJ','_getCustomSourcesInitialState','_convertTextResourceToFile','abort','_isResourceInContext','enabled','_ongoingUploadOperations','_removeContextItem','toolName','selection','filter','3063270MFWXOE','ai-chat-context-invalid-data','substring','_startUploadOperation','uiId','url','map','URL','_ownerId','addContextOptionsChanged','364okWaMa','_updateResourceInContextState','File','_findSourceIdsByResourceId','FILE','set','getSentContextItems','ai-chat-context-unsupported-type','getResources','sessionId','from','message','type','start','isHidden','resourceStateChanged','code','getPendingContextItems','addUrlToContext','_connector','uploadDocument','clearPendingContextItems','addCurrentDocumentToContext','TEXT','addFilesToContext','version','ai-chat-source-resources-load-failed','contextSent','resources','populateFromMessage','446pQlLCO','getId','contextItemLoadingEnded','files','text/plain','current-document','forEach','_addContextItem','uploadUrl','_pendingContextItems','_mapContextItemToRequestData','isSelectionInContext','ai-chat-resource-no-data','uploadProgressChanged','sourceResourcesLoaded','length','object\x20with\x20content\x20and\x20type\x20properties','sources','_config','TOOL','stack','find','data','text/markdown','push','string','_conversationContextItems','isInContext','66DOaVvN','resourceId','get','ai-chat-source-not-found','_createContextItemFromContent','mapContextItemsToRequestData','_addToConversationContextItem','urls','Current\x20document','removeFromContext','end','_ongoingUploads','addToConversationContext','isCurrentDocumentInConversation','startsWith','fire','addSelectionToContext','7285977sxBwnY','file-','isReadOnly','has','all','updateCurrentDocument','label','text/html','_setAddContextOptionsDefaultState','addToolItemToContext','init','addResourceToContext'];_0x1833=function(){return _0x44eae6;};return _0x1833();}import{errorsMap as _0x1d81cc}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x255bd5(0xff),_0x255bd5(0x10c),_0x255bd5(0x155),_0x255bd5(0x150),_0x255bd5(0x112),_0x255bd5(0x134),_0x255bd5(0x161),_0x255bd5(0x144),_0x255bd5(0x160)];export class AIChatContext extends _0x169320(){[_0x255bd5(0x148)];[_0x255bd5(0x165)];[_0x255bd5(0x133)];constructor({connector:_0x2b136a,config:_0x40d777,ownerId:_0x40079e}){const _0x379eca=_0x255bd5;super(),this[_0x379eca(0x148)]=_0x2b136a,this[_0x379eca(0x165)]=_0x40d777,this[_0x379eca(0x133)]=_0x40079e;}[_0x255bd5(0xf2)](){const _0x275dd5=_0x255bd5;this[_0x275dd5(0x15c)]=new Map(),this[_0x275dd5(0x16d)]=new Map(),this[_0x275dd5(0x17a)]=new Map(),this[_0x275dd5(0x126)]=new Map(),this[_0x275dd5(0xf0)]();}[_0x255bd5(0x146)](){const _0x1cb9d1=_0x255bd5;return this[_0x1cb9d1(0x15c)];}async[_0x255bd5(0x152)](_0x1b1d1b){const _0x4bce18=_0x255bd5,_0x569568=await this[_0x4bce18(0x173)](_0x1b1d1b);return this[_0x4bce18(0x175)](_0x569568),_0x4bce18(0x158)===_0x569568[_0x4bce18(0x12f)]&&this[_0x4bce18(0x117)](),_0x569568;}async[_0x255bd5(0x173)](_0x4776a4){const _0x2fcc04=_0x255bd5;if(_0x4776a4[_0x2fcc04(0x141)]===_0x3894c2[_0x2fcc04(0x105)]){const _0x34ac83=await this[_0x2fcc04(0x148)][_0x2fcc04(0x108)](this[_0x2fcc04(0x133)],_0x4776a4['id'])[_0x2fcc04(0x118)]();return{'id':_0x2fcc04(0x158),'uiId':_0x2fcc04(0x158),'label':_0x2fcc04(0x177),'type':_0x4776a4[_0x2fcc04(0x141)],'content':_0x34ac83[_0x2fcc04(0x11e)],'hidden':this[_0x2fcc04(0x16d)][_0x2fcc04(0xeb)](_0x2fcc04(0x158)),'version':_0x34ac83[_0x2fcc04(0x103)]?.[_0x2fcc04(0x14e)],'sessionId':_0x34ac83[_0x2fcc04(0x103)]?.[_0x2fcc04(0x13e)]};}if(_0x4776a4[_0x2fcc04(0x141)]===_0x3894c2[_0x2fcc04(0x166)])return{'id':_0x4776a4['id'],'uiId':_0x4776a4['id'],'label':_0x4776a4[_0x2fcc04(0x169)]?.[_0x2fcc04(0xee)]||_0x4776a4['id'],'type':_0x3894c2[_0x2fcc04(0x166)],'mcpServerName':_0x4776a4[_0x2fcc04(0x111)],'toolName':_0x4776a4[_0x2fcc04(0x128)],'data':_0x4776a4[_0x2fcc04(0x169)]||{}};return{'id':_0x4776a4['id'],'uiId':_0x4776a4['id'],'label':_0x4776a4[_0x2fcc04(0x103)]?.[_0x2fcc04(0xee)]||_0x4776a4[_0x2fcc04(0xf4)]||_0x4776a4[_0x2fcc04(0x130)]||_0x4776a4['id'],'type':_0x4776a4[_0x2fcc04(0x141)],..._0x4776a4?.[_0x2fcc04(0x103)]?.[_0x2fcc04(0x170)]?{'resourceId':_0x4776a4[_0x2fcc04(0x103)]?.[_0x2fcc04(0x170)]}:{}};}[_0x255bd5(0x13b)](){const _0x447385=_0x255bd5;return new Map(this[_0x447385(0x16d)]);}[_0x255bd5(0x178)](_0x4ddb70){const _0x875614=_0x255bd5,_0x4c231b=this[_0x875614(0x15c)][_0x875614(0x171)](_0x4ddb70);_0x4c231b?.[_0x875614(0xea)]||this[_0x875614(0x127)](_0x4ddb70);}[_0x255bd5(0x14a)](){const _0x315eaa=_0x255bd5;if(0x0===this[_0x315eaa(0x15c)][_0x315eaa(0x10d)])return;for(const _0x42516c of this[_0x315eaa(0x15c)][_0x315eaa(0x116)]())this[_0x315eaa(0x127)](_0x42516c[_0x315eaa(0x12f)]);const _0x2cafa9=this[_0x315eaa(0x16d)][_0x315eaa(0x171)](_0x315eaa(0x158))||this[_0x315eaa(0x15c)][_0x315eaa(0x171)](_0x315eaa(0x158));_0x2cafa9&&this[_0x315eaa(0x15a)]({..._0x2cafa9,'isReadOnly':!0x0,'hidden':!0x0});}[_0x255bd5(0xe3)](_0x180621){const _0x1d79b2=_0x255bd5;for(const _0x2530da of _0x180621[_0x1d79b2(0x116)]())this[_0x1d79b2(0x175)](_0x2530da);this[_0x1d79b2(0x14a)](),this[_0x1d79b2(0xe6)](_0x1d79b2(0x150),{'contextItems':Array[_0x1d79b2(0x13f)](this[_0x1d79b2(0x13b)]()[_0x1d79b2(0x116)]())});}[_0x255bd5(0x10f)](){const _0x267e43=_0x255bd5;return this[_0x267e43(0x15c)][_0x267e43(0xeb)](_0x267e43(0x158));}[_0x255bd5(0x15e)](){const _0x28fd1d=_0x255bd5;return this[_0x28fd1d(0x15c)][_0x28fd1d(0xeb)](_0x28fd1d(0x129));}[_0x255bd5(0xe4)](){const _0x75dba8=_0x255bd5;return this[_0x75dba8(0x16d)][_0x75dba8(0xeb)](_0x75dba8(0x158));}static[_0x255bd5(0x174)](_0xa8e816){const _0xccc783=_0x255bd5;return Array[_0xccc783(0x13f)](_0xa8e816[_0xccc783(0x116)]())[_0xccc783(0x131)](_0x1872f1=>this[_0xccc783(0x15d)](_0x1872f1))[_0xccc783(0x12a)](_0xcf4eac=>null!==_0xcf4eac);}async[_0x255bd5(0x14d)](_0x34828c,_0x53addc,_0x372804=_0x3894c2[_0x255bd5(0x139)]){const _0x52d13c=_0x255bd5,_0x261f73=_0x52d13c(0xf7)+_0x1f2165();this[_0x52d13c(0x12e)](_0x261f73);try{await Promise[_0x52d13c(0xec)](_0x34828c[_0x52d13c(0x131)](async _0x5b1d79=>{const _0x39dfab=_0x52d13c,_0x58ba9b=_0x39dfab(0xe9)+_0x1f2165(),_0xf074f5=_0x489c5(_0x5b1d79[_0x39dfab(0xf4)]);try{this[_0x39dfab(0x15a)]({'type':_0x372804,'label':_0x53addc?.[_0x39dfab(0xee)]||_0xf074f5,'uiId':_0x58ba9b,'resourceId':_0x53addc?.[_0x39dfab(0x170)]},!0x0);const _0x50dc75=this[_0x39dfab(0x148)][_0x39dfab(0xfa)](this[_0x39dfab(0x133)],_0x5b1d79,_0x53addc);this[_0x39dfab(0x17a)][_0x39dfab(0x13a)](_0x58ba9b,_0x50dc75[_0x39dfab(0xf8)]);const {id:_0xd0e62a}=await _0x50dc75[_0x39dfab(0x154)]();this[_0x39dfab(0x17a)][_0x39dfab(0x115)](_0x58ba9b),this[_0x39dfab(0xfd)]({'type':_0x372804,'id':_0xd0e62a,'label':_0x53addc?.[_0x39dfab(0xee)]||_0xf074f5,'uiId':_0x58ba9b,'resourceId':_0x53addc?.[_0x39dfab(0x170)]},!0x1);}catch(_0x1961fe){this[_0x39dfab(0x17a)][_0x39dfab(0x115)](_0x58ba9b);if(!(_0x1961fe instanceof _0x345b32&&_0x1961fe[_0x39dfab(0x140)][_0x39dfab(0xe5)](_0x39dfab(0xfe)))){const _0x46df66=_0x1d81cc[_0x39dfab(0x171)](_0x1961fe[_0x39dfab(0x145)])||_0x39dfab(0x11b),_0x201498=new _0x345b32(_0x46df66,null,{'fileName':_0xf074f5,..._0x1961fe});_0x201498[_0x39dfab(0x167)]=_0x1961fe[_0x39dfab(0x167)],this[_0x39dfab(0xe6)](_0x39dfab(0x112),{'error':_0x201498});}this[_0x39dfab(0x127)](_0x58ba9b);}}));}finally{this[_0x52d13c(0x11c)](_0x261f73);}}[_0x255bd5(0x14b)](_0x557b87){const _0x484096=_0x255bd5;if(this[_0x484096(0x10f)]()||!this[_0x484096(0x113)][_0x484096(0xfb)][_0x484096(0x125)])return;const _0x21af0d={'type':_0x3894c2[_0x484096(0x105)],'uiId':_0x484096(0x158),'label':_0x557b87,'isReadOnly':this[_0x484096(0x16d)][_0x484096(0xeb)](_0x484096(0x158)),'hidden':this[_0x484096(0x16d)][_0x484096(0xeb)](_0x484096(0x158))};this[_0x484096(0x15a)](_0x21af0d);}async[_0x255bd5(0xed)](_0x335a64,_0x30eeff,_0x4a6804,_0x3c2d1e){const _0x3ff69d=_0x255bd5,_0x66bfa6=this[_0x3ff69d(0x15c)][_0x3ff69d(0x171)](_0x3ff69d(0x158));if(_0x66bfa6&&_0x335a64){_0x66bfa6[_0x3ff69d(0x129)]=_0x3c2d1e?_0x3c2d1e[_0x3ff69d(0x131)](_0x2762f9=>({'start':_0x2762f9[_0x3ff69d(0x142)],'end':_0x2762f9[_0x3ff69d(0x179)]})):[];try{if(_0x66bfa6[_0x3ff69d(0x14e)]===_0x30eeff)return;const {id:_0x12c8f8}=await this[_0x3ff69d(0x148)][_0x3ff69d(0x149)](this[_0x3ff69d(0x133)],_0x335a64,{'version':_0x30eeff,'sessionId':_0x4a6804})[_0x3ff69d(0x154)]();_0x66bfa6['id']=_0x12c8f8,_0x66bfa6[_0x3ff69d(0x11e)]=_0x335a64,_0x66bfa6[_0x3ff69d(0x14e)]=_0x30eeff,_0x66bfa6[_0x3ff69d(0x13e)]=_0x4a6804;}catch(_0x3ef979){const _0x3f6815=new _0x345b32(_0x3ff69d(0x107),null);_0x3f6815[_0x3ff69d(0x167)]=_0x3ef979[_0x3ff69d(0x167)],this[_0x3ff69d(0xe6)](_0x3ff69d(0x112),{'error':_0x3f6815});}}}[_0x255bd5(0xe7)](_0x1426ad){const _0x560764=_0x255bd5;this[_0x560764(0x15a)]({'type':_0x3894c2[_0x560764(0x11a)],'label':_0x1426ad,'uiId':_0x560764(0x129),'content':_0x1426ad});}[_0x255bd5(0x11f)](){const _0x8856d1=_0x255bd5;this[_0x8856d1(0x127)](_0x8856d1(0x129));}async[_0x255bd5(0x147)](_0x29d31c,_0x4b25fd){const _0x3433bf=_0x255bd5,_0x430903=_0x3433bf(0x119)+_0x1f2165();this[_0x3433bf(0x12e)](_0x430903);const _0x4be228=_0x3433bf(0x119)+_0x1f2165();try{this[_0x3433bf(0x15a)]({'type':_0x3894c2[_0x3433bf(0x132)],'label':_0x4b25fd?.[_0x3433bf(0xee)]||_0x29d31c,'uiId':_0x4be228,'resourceId':_0x4b25fd?.[_0x3433bf(0x170)]},!0x0);const _0x43d972=this[_0x3433bf(0x148)][_0x3433bf(0x15b)](this[_0x3433bf(0x133)],_0x29d31c,_0x4b25fd);this[_0x3433bf(0x17a)][_0x3433bf(0x13a)](_0x4be228,_0x43d972[_0x3433bf(0xf8)]);const {id:_0x1f5287}=await _0x43d972[_0x3433bf(0x154)]();this[_0x3433bf(0x17a)][_0x3433bf(0x115)](_0x4be228),this[_0x3433bf(0xfd)]({'type':_0x3894c2[_0x3433bf(0x132)],'id':_0x1f5287,'label':_0x4b25fd?.[_0x3433bf(0xee)]||_0x29d31c,'uiId':_0x4be228,'resourceId':_0x4b25fd?.[_0x3433bf(0x170)]},!0x1);}catch(_0x5db3db){this[_0x3433bf(0x17a)][_0x3433bf(0x115)](_0x4be228),(_0x5db3db[_0x3433bf(0x140)][_0x3433bf(0xe5)](_0x3433bf(0xfe))||this[_0x3433bf(0xe6)](_0x3433bf(0x112),{'error':new _0x345b32(_0x3433bf(0xf6),this,{'url':_0x29d31c,'originalError':_0x5db3db}),'url':_0x29d31c}),this[_0x3433bf(0x127)](_0x4be228));}finally{this[_0x3433bf(0x11c)](_0x430903);}}[_0x255bd5(0xf1)](_0x479309){const _0x4d80eb=_0x255bd5;_0x479309['id']=_0x479309['id']??_0x1f2165()[_0x4d80eb(0x12d)](0x0,0x15),this[_0x4d80eb(0x15c)][_0x4d80eb(0x13a)](_0x479309[_0x4d80eb(0x12f)],_0x479309),this[_0x4d80eb(0xe6)](_0x4d80eb(0xff),{'contextItem':_0x479309,'isLoading':!0x1});}async[_0x255bd5(0x109)](_0x277a71,_0x238f88,_0x5eba66){const _0x367e6=_0x255bd5,_0x41bb6e=this[_0x367e6(0x113)][_0x367e6(0x164)][_0x367e6(0x168)](_0x19f1eb=>_0x19f1eb['id']===_0x277a71);if(!_0x41bb6e)return this[_0x367e6(0xe6)](_0x367e6(0x112),{'error':new _0x345b32(_0x367e6(0x172),this,{'sourceId':_0x277a71}),'sourceId':_0x277a71}),[];try{const _0x7ff8ba=(await _0x41bb6e[_0x367e6(0x13d)](_0x238f88))[_0x367e6(0x131)](_0x516375=>{const _0xada895=_0x367e6,_0x29559c=this[_0xada895(0x124)](_0x516375['id']);return{..._0x516375,'isInContext':_0x29559c};});return _0x41bb6e[_0x367e6(0x151)]=_0x7ff8ba,this[_0x367e6(0xe6)](_0x367e6(0x161),{'sourceId':_0x277a71,'source':_0x41bb6e,'resources':_0x7ff8ba,'uid':_0x5eba66}),_0x7ff8ba;}catch(_0x4474ad){return this[_0x367e6(0xe6)](_0x367e6(0x112),{'error':new _0x345b32(_0x367e6(0x14f),this,{'sourceId':_0x277a71,'originalError':_0x4474ad}),'sourceId':_0x277a71,'sourceLabel':_0x41bb6e[_0x367e6(0xee)]}),[];}}async[_0x255bd5(0xf3)](_0x571283,_0x4bd6b3){const _0x3609c0=_0x255bd5;if(this[_0x3609c0(0x124)](_0x4bd6b3['id']))return;let _0x423847=_0x4bd6b3[_0x3609c0(0x169)];if(!_0x423847&&_0x571283[_0x3609c0(0xfc)])try{_0x423847=await _0x571283[_0x3609c0(0xfc)](_0x4bd6b3['id']);}catch(_0x55525f){return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x104),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'originalError':_0x55525f}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});}if(_0x423847)switch(_0x4bd6b3[_0x3609c0(0x141)]){case _0x3894c2[_0x3609c0(0x132)]:if(_0x3609c0(0x16c)!=typeof _0x423847)return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x12c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'expectedType':_0x3609c0(0x16c),'actualType':typeof _0x423847}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});await this[_0x3609c0(0x147)](_0x423847,{'label':_0x4bd6b3[_0x3609c0(0xee)],'resourceId':_0x4bd6b3['id']});break;case _0x3894c2[_0x3609c0(0x139)]:if(!(_0x423847 instanceof File))return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x12c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'expectedType':_0x3609c0(0x137),'actualType':typeof _0x423847}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});await this[_0x3609c0(0x14d)]([_0x423847],{'label':_0x4bd6b3[_0x3609c0(0xee)],'resourceId':_0x4bd6b3['id']});break;case _0x3894c2[_0x3609c0(0x14c)]:if(_0x3609c0(0xf9)!=typeof _0x423847||!(_0x3609c0(0x11e)in _0x423847)||!(_0x3609c0(0x141)in _0x423847))return void this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x12c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'expectedType':_0x3609c0(0x163),'actualType':typeof _0x423847}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});_0x423847=AIChatContext[_0x3609c0(0x122)](_0x423847,_0x4bd6b3[_0x3609c0(0xee)]),await this[_0x3609c0(0x14d)]([_0x423847],{'label':_0x4bd6b3[_0x3609c0(0xee)],'resourceId':_0x4bd6b3['id']},_0x3894c2[_0x3609c0(0x14c)]);break;case _0x3894c2[_0x3609c0(0x166)]:break;default:this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x13c),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id'],'resourceType':_0x4bd6b3[_0x3609c0(0x141)]}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});}else this[_0x3609c0(0xe6)](_0x3609c0(0x112),{'error':new _0x345b32(_0x3609c0(0x15f),this,{'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']}),'resourceId':_0x4bd6b3['id'],'sourceId':_0x571283['id']});}static[_0x255bd5(0x122)](_0x5a105e,_0x4069d2){const _0x21eba4=_0x255bd5;switch(_0x5a105e[_0x21eba4(0x141)]){case _0x462fc1[_0x21eba4(0x100)]:return new File([_0x5a105e[_0x21eba4(0x11e)]],_0x4069d2,{'type':_0x21eba4(0x16a)});case _0x462fc1[_0x21eba4(0x110)]:return new File([_0x5a105e[_0x21eba4(0x11e)]],_0x4069d2,{'type':_0x21eba4(0xef)});default:return new File([_0x5a105e[_0x21eba4(0x11e)]],_0x4069d2,{'type':_0x21eba4(0x157)});}}static[_0x255bd5(0x15d)](_0x38c003){const _0x1a959c=_0x255bd5;switch(_0x38c003[_0x1a959c(0x141)]){case _0x3894c2[_0x1a959c(0x139)]:return{'type':_0x3894c2[_0x1a959c(0x139)],'id':_0x38c003['id']};case _0x3894c2[_0x1a959c(0x132)]:return{'type':_0x3894c2[_0x1a959c(0x132)],'id':_0x38c003['id']};case _0x3894c2[_0x1a959c(0x105)]:return{'type':_0x3894c2[_0x1a959c(0x105)],'id':_0x38c003['id'],..._0x38c003[_0x1a959c(0x129)]?.[_0x1a959c(0x162)]&&{'selection':_0x38c003[_0x1a959c(0x129)]}};case _0x3894c2[_0x1a959c(0x14c)]:return{'type':_0x3894c2[_0x1a959c(0x139)],'id':_0x38c003['id']};case _0x3894c2[_0x1a959c(0x166)]:{const _0x97d9ff=_0x38c003;return{'type':_0x3894c2[_0x1a959c(0x166)],'mcpServerName':_0x97d9ff[_0x1a959c(0x111)],'toolName':_0x97d9ff[_0x1a959c(0x128)],'data':_0x97d9ff[_0x1a959c(0x169)],'id':_0x97d9ff['id']};}default:return null;}}[_0x255bd5(0x15a)](_0xfd786f,_0x3723fb=!0x1){const _0x55e0a1=_0x255bd5;if(this[_0x55e0a1(0x15c)][_0x55e0a1(0x13a)](_0xfd786f[_0x55e0a1(0x12f)],_0xfd786f),_0xfd786f[_0x55e0a1(0xf5)]||this[_0x55e0a1(0xe6)](_0x55e0a1(0xff),{'contextItem':_0xfd786f,'isLoading':_0x3723fb}),_0x55e0a1(0x158)===_0xfd786f[_0x55e0a1(0x12f)]&&this[_0x55e0a1(0x117)](),_0xfd786f[_0x55e0a1(0x170)]){const _0x384916=this[_0x55e0a1(0x138)](_0xfd786f[_0x55e0a1(0x170)]);_0x384916&&_0x384916[_0x55e0a1(0x159)](_0x9d72fe=>{const _0x560ed7=_0x55e0a1;this[_0x560ed7(0x136)](_0x9d72fe,_0xfd786f[_0x560ed7(0x170)],!0x0);});}}[_0x255bd5(0x127)](_0xbfa8ec){const _0xf2d0f=_0x255bd5,_0x4509da=this[_0xf2d0f(0x15c)][_0xf2d0f(0x171)](_0xbfa8ec),_0x3226f6=this[_0xf2d0f(0x17a)][_0xf2d0f(0x171)](_0xbfa8ec);if(_0x3226f6&&(_0x3226f6[_0xf2d0f(0x123)](),this[_0xf2d0f(0x17a)][_0xf2d0f(0x115)](_0xbfa8ec)),_0x4509da?.[_0xf2d0f(0x170)]){const _0x3fc0e7=this[_0xf2d0f(0x138)](_0x4509da[_0xf2d0f(0x170)]);_0x3fc0e7&&_0x3fc0e7[_0xf2d0f(0x159)](_0x411baf=>{const _0x1fe5be=_0xf2d0f;this[_0x1fe5be(0x136)](_0x411baf,_0x4509da[_0x1fe5be(0x170)],!0x1);});}this[_0xf2d0f(0x15c)][_0xf2d0f(0x115)](_0xbfa8ec),this[_0xf2d0f(0xe6)](_0xf2d0f(0x10c),{'uiId':_0xbfa8ec,'type':_0x4509da?.[_0xf2d0f(0x141)]}),_0xf2d0f(0x158)===_0xbfa8ec&&this[_0xf2d0f(0x117)]();}[_0x255bd5(0xfd)](_0x3f4bf2,_0x4dbb28){const _0x272810=_0x255bd5;if(this[_0x272810(0x15c)][_0x272810(0xeb)](_0x3f4bf2[_0x272810(0x12f)])&&(this[_0x272810(0x15c)][_0x272810(0x13a)](_0x3f4bf2[_0x272810(0x12f)],_0x3f4bf2),this[_0x272810(0xe6)](_0x272810(0x155),{'contextItem':_0x3f4bf2,'isLoading':_0x4dbb28}),_0x3f4bf2[_0x272810(0x170)])){const _0x3f112a=this[_0x272810(0x138)](_0x3f4bf2[_0x272810(0x170)]);_0x3f112a&&_0x3f112a[_0x272810(0x159)](_0x260d2a=>{const _0x59b541=_0x272810;this[_0x59b541(0x136)](_0x260d2a,_0x3f4bf2[_0x59b541(0x170)],!0x0);});}}[_0x255bd5(0x175)](_0x5d1162){const _0x2f89ed=_0x255bd5;this[_0x2f89ed(0x16d)][_0x2f89ed(0x13a)](_0x5d1162[_0x2f89ed(0x12f)],_0x5d1162);}[_0x255bd5(0xf0)](){const _0x1a32d0=_0x255bd5;this[_0x1a32d0(0x113)]={'document':{'enabled':!0x1!==this[_0x1a32d0(0x165)]?.[_0x1a32d0(0xfb)]?.[_0x1a32d0(0x125)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1a32d0(0x165)]?.[_0x1a32d0(0x176)]?.[_0x1a32d0(0x125)]},'files':{'enabled':!0x1!==this[_0x1a32d0(0x165)]?.[_0x1a32d0(0x156)]?.[_0x1a32d0(0x125)]},'sources':this[_0x1a32d0(0x121)](),'customItems':this[_0x1a32d0(0x165)]?.[_0x1a32d0(0x11d)]?.[_0x1a32d0(0x131)](_0x41b9cf=>({..._0x41b9cf,'enabled':!0x0}))??[]},this[_0x1a32d0(0xe6)](_0x1a32d0(0x134),{'options':this[_0x1a32d0(0x113)]});}[_0x255bd5(0x121)](){const _0x387868=_0x255bd5;return this[_0x387868(0x165)]?.[_0x387868(0x164)]?.[_0x387868(0x131)](_0x5e64c9=>({..._0x5e64c9,'resources':[]}))??[];}[_0x255bd5(0x117)](){const _0x4dc5c3=_0x255bd5,_0x3c589d=this[_0x4dc5c3(0x10f)]()||this[_0x4dc5c3(0xe4)]();this[_0x4dc5c3(0x113)][_0x4dc5c3(0xfb)][_0x4dc5c3(0x143)]=_0x3c589d,this[_0x4dc5c3(0xe6)](_0x4dc5c3(0x134),{'options':this[_0x4dc5c3(0x113)]});}[_0x255bd5(0x124)](_0x27fee1){const _0x23b2df=_0x255bd5;for(const _0x3e2d0d of this[_0x23b2df(0x15c)][_0x23b2df(0x116)]())if(_0x3e2d0d[_0x23b2df(0x170)]===_0x27fee1)return!0x0;for(const _0x584a0d of this[_0x23b2df(0x16d)][_0x23b2df(0x116)]())if(_0x584a0d[_0x23b2df(0x170)]===_0x27fee1)return!0x0;return!0x1;}[_0x255bd5(0x138)](_0x3110c9){const _0xa83afd=_0x255bd5,_0x3bba6b=[];for(const _0x19a33e of this[_0xa83afd(0x113)][_0xa83afd(0x164)]){_0x19a33e[_0xa83afd(0x151)][_0xa83afd(0x168)](_0x1e2b92=>_0x1e2b92['id']===_0x3110c9)&&_0x3bba6b[_0xa83afd(0x16b)](_0x19a33e['id']);}return 0x0===_0x3bba6b[_0xa83afd(0x162)]?null:_0x3bba6b;}[_0x255bd5(0x136)](_0x5cedd3,_0x45ff2e,_0x3a0f11){const _0x40596f=_0x255bd5,_0x4548cc=this[_0x40596f(0x113)][_0x40596f(0x164)][_0x40596f(0x168)](_0x43ac54=>_0x43ac54['id']===_0x5cedd3);if(!_0x4548cc)return;const _0x5ca669=_0x4548cc[_0x40596f(0x151)][_0x40596f(0x168)](_0x206dd4=>_0x206dd4['id']===_0x45ff2e);_0x5ca669&&(_0x5ca669[_0x40596f(0x16e)]=_0x3a0f11,this[_0x40596f(0xe6)](_0x40596f(0x144),{'sourceId':_0x5cedd3,'resourceId':_0x45ff2e,'isInContext':_0x3a0f11}));}[_0x255bd5(0x12e)](_0x489829){const _0x375cc7=_0x255bd5;this[_0x375cc7(0x126)][_0x375cc7(0x13a)](_0x489829,!0x0),this[_0x375cc7(0x126)][_0x375cc7(0x10d)]&&this[_0x375cc7(0xe6)](_0x375cc7(0x160),{'isUploadInProgress':!0x0});}[_0x255bd5(0x11c)](_0x1e6f60){const _0x2dcc53=_0x255bd5;this[_0x2dcc53(0x126)][_0x2dcc53(0x115)](_0x1e6f60),0x0===this[_0x2dcc53(0x126)][_0x2dcc53(0x10d)]&&this[_0x2dcc53(0xe6)](_0x2dcc53(0x160),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x1dade9=_0x3b26;function _0x3b26(_0x2bd113,_0x4d8d09){const _0x28a4f6=_0x28a4();return _0x3b26=function(_0x3b267b,_0x2a1c04){_0x3b267b=_0x3b267b-0x145;let _0x30abba=_0x28a4f6[_0x3b267b];return _0x30abba;},_0x3b26(_0x2bd113,_0x4d8d09);}(function(_0x6142fd,_0x478c5a){const _0x2d36d1=_0x3b26,_0x118c7c=_0x6142fd();while(!![]){try{const _0x6262d7=-parseInt(_0x2d36d1(0x1cf))/0x1*(parseInt(_0x2d36d1(0x154))/0x2)+parseInt(_0x2d36d1(0x1af))/0x3+parseInt(_0x2d36d1(0x165))/0x4+parseInt(_0x2d36d1(0x182))/0x5+-parseInt(_0x2d36d1(0x189))/0x6*(parseInt(_0x2d36d1(0x19d))/0x7)+-parseInt(_0x2d36d1(0x19a))/0x8*(-parseInt(_0x2d36d1(0x188))/0x9)+-parseInt(_0x2d36d1(0x1cd))/0xa;if(_0x6262d7===_0x478c5a)break;else _0x118c7c['push'](_0x118c7c['shift']());}catch(_0x4fbad8){_0x118c7c['push'](_0x118c7c['shift']());}}}(_0x28a4,0xdb807));import{CKEditorError as _0x5921d4,ObservableMixin as _0x3b4078,uid as _0x28e5ce}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x5b8b01,AIContextTextResourceType as _0x507e3f}from'../../aicore/model/aicontext.js';import{escape as _0x5b0833}from'es-toolkit/compat';function _0x28a4(){const _0x1f61ac=['_getCustomSourcesInitialState','ai-chat-resource-no-data','MARKDOWN','addFilesToContext','loadSourceResources','isCurrentDocumentInContext','3352728mOLgDX','error','_setAddContextOptionsDefaultState','startsWith','ai-chat-document-upload-failed','isHidden','_ownerId','url','label','map','ai-chat-context-unsupported-type','mapContextItemsToRequestData','ai-chat-source-resources-load-failed','substring','_createContextItemFromContent','text/plain','end','sourceResourcesLoaded','getData','resourceId','getDocument','length','updateCurrentDocument','contextSent','text/markdown','_pendingContextItems','files','_convertTextResourceToFile','object','contextItemLoadingEnded','10194670OXrszD','ai-chat-url-upload-failed','830cwJtRx','name','_ongoingUploads','contextItemAdded','_startUploadOperation','current-document','uiId','fire','addResourceToContext','data','content','TOOL','document','urls','_addContextOptionsState','abortController','_conversationContextItems','removeFromContext','isInContext','removeSelectionFromContext','getSentContextItems','customItems','all','DOCUMENT','addContextOptionsChanged','hidden','1816SXEYcn','ai-chat-source-not-found','_addContextItem','isSelectionInContext','version','toolName','message','_toggleAddCurrentDocumentOptionVisibility','_ongoingUploadOperations','getPendingContextItems','TEXT','resourceStateChanged','HTML','delete','SELECTION','get','uploadUrl','6331888bpwaSd','fetchDocument','_connector','File','contextItemRemoved','_finishContextItemLoading','push','abort','ai-chat-resource-load-failed','init','addUrlToContext','values','attributes','addCurrentDocumentToContext','addToConversationContext','code','selection','stack','ai-request-aborted','sessionId','files-','size','sources','URL','_isResourceInContext','_mapContextItemToRequestData','getResources','url-','_updateResourceInContextState','559125FDXaJb','_addToConversationContextItem','ai-chat-context-invalid-data','string','set','uploadDocument','3599991WkEIYr','18ZZYsrg','Current\x20document','type','enabled','FILE','_removeContextItem','isCurrentDocumentInConversation','file-','_findSourceIdsByResourceId','mcpServerName','populateFromMessage','find','text/html','ai-chat-file-upload-failed','from','forEach','addSelectionToContext','8OZOvsT','addToolItemToContext','has','1260434nnhgmp','resources','_finishUploadOperation','filter','getId','uploadFile','_config','object\x20with\x20content\x20and\x20type\x20properties','clearPendingContextItems','uploadProgressChanged','start','isReadOnly'];_0x28a4=function(){return _0x1f61ac;};return _0x28a4();}import{errorsMap as _0x4b39b1}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1dade9(0x1d2),_0x1dade9(0x169),_0x1dade9(0x1cc),_0x1dade9(0x1c6),_0x1dade9(0x1b0),_0x1dade9(0x152),_0x1dade9(0x1c0),_0x1dade9(0x15f),_0x1dade9(0x1a6)];export class AIChatContext extends _0x3b4078(){[_0x1dade9(0x167)];[_0x1dade9(0x1a3)];[_0x1dade9(0x1b5)];constructor({connector:_0x317f5b,config:_0x460efd,ownerId:_0x4c7ac7}){const _0x3f8cf5=_0x1dade9;super(),this[_0x3f8cf5(0x167)]=_0x317f5b,this[_0x3f8cf5(0x1a3)]=_0x460efd,this[_0x3f8cf5(0x1b5)]=_0x4c7ac7;}[_0x1dade9(0x16e)](){const _0x3a4d84=_0x1dade9;this[_0x3a4d84(0x1c8)]=new Map(),this[_0x3a4d84(0x14a)]=new Map(),this[_0x3a4d84(0x1d1)]=new Map(),this[_0x3a4d84(0x15c)]=new Map(),this[_0x3a4d84(0x1b1)]();}[_0x1dade9(0x15d)](){const _0x12259d=_0x1dade9;return this[_0x12259d(0x1c8)];}async[_0x1dade9(0x193)](_0x130005){const _0xf8f307=_0x1dade9,_0x450992=await this[_0xf8f307(0x1bd)](_0x130005);return this[_0xf8f307(0x183)](_0x450992),_0xf8f307(0x1d4)===_0x450992[_0xf8f307(0x1d5)]&&this[_0xf8f307(0x15b)](),_0x450992;}async[_0x1dade9(0x1bd)](_0x507481){const _0xca3939=_0x1dade9;if(_0x507481[_0xca3939(0x18b)]===_0x5b8b01[_0xca3939(0x151)]){const _0x2a07f8=await this[_0xca3939(0x167)][_0xca3939(0x166)](this[_0xca3939(0x1b5)],_0x507481['id'])[_0xca3939(0x1c3)]();return{'id':_0xca3939(0x1d4),'uiId':_0xca3939(0x1d4),'label':_0xca3939(0x18a),'type':_0x507481[_0xca3939(0x18b)],'content':_0x2a07f8[_0xca3939(0x1d9)],'hidden':this[_0xca3939(0x14a)][_0xca3939(0x19c)](_0xca3939(0x1d4)),'version':_0x2a07f8[_0xca3939(0x171)]?.[_0xca3939(0x158)],'sessionId':_0x2a07f8[_0xca3939(0x171)]?.[_0xca3939(0x178)]};}if(_0x507481[_0xca3939(0x18b)]===_0x5b8b01[_0xca3939(0x145)])return{'id':_0x507481['id'],'uiId':_0x507481['id'],'label':_0x507481[_0xca3939(0x1d8)]?.[_0xca3939(0x1b7)]||_0x507481['id'],'type':_0x5b8b01[_0xca3939(0x145)],'mcpServerName':_0x507481[_0xca3939(0x192)],'toolName':_0x507481[_0xca3939(0x159)],'data':_0x507481[_0xca3939(0x1d8)]||{}};return{'id':_0x507481['id'],'uiId':_0x507481['id'],'label':_0x507481[_0xca3939(0x171)]?.[_0xca3939(0x1b7)]||_0x507481[_0xca3939(0x1d0)]||_0x507481[_0xca3939(0x1b6)]||_0x507481['id'],'type':_0x507481[_0xca3939(0x18b)],..._0x507481?.[_0xca3939(0x171)]?.[_0xca3939(0x1c2)]?{'resourceId':_0x507481[_0xca3939(0x171)]?.[_0xca3939(0x1c2)]}:{}};}[_0x1dade9(0x14e)](){const _0x14e60c=_0x1dade9;return new Map(this[_0x14e60c(0x14a)]);}[_0x1dade9(0x14b)](_0x1ea40c){const _0x5e7688=_0x1dade9,_0x26a2fc=this[_0x5e7688(0x1c8)][_0x5e7688(0x163)](_0x1ea40c);_0x26a2fc?.[_0x5e7688(0x1a8)]||this[_0x5e7688(0x18e)](_0x1ea40c);}[_0x1dade9(0x1a5)](){const _0x32ecf1=_0x1dade9;if(0x0===this[_0x32ecf1(0x1c8)][_0x32ecf1(0x17a)])return;for(const _0x20b441 of this[_0x32ecf1(0x1c8)][_0x32ecf1(0x170)]())this[_0x32ecf1(0x18e)](_0x20b441[_0x32ecf1(0x1d5)]);const _0xccec41=this[_0x32ecf1(0x14a)][_0x32ecf1(0x163)](_0x32ecf1(0x1d4))||this[_0x32ecf1(0x1c8)][_0x32ecf1(0x163)](_0x32ecf1(0x1d4));_0xccec41&&this[_0x32ecf1(0x156)]({..._0xccec41,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1dade9(0x173)](_0x1c0881){const _0x329b84=_0x1dade9;for(const _0x1816a7 of _0x1c0881[_0x329b84(0x170)]())this[_0x329b84(0x183)](_0x1816a7);this[_0x329b84(0x1a5)](),this[_0x329b84(0x1d6)](_0x329b84(0x1c6),{'contextItems':Array[_0x329b84(0x197)](this[_0x329b84(0x14e)]()[_0x329b84(0x170)]())});}[_0x1dade9(0x1ae)](){const _0x3764ea=_0x1dade9;return this[_0x3764ea(0x1c8)][_0x3764ea(0x19c)](_0x3764ea(0x1d4));}[_0x1dade9(0x157)](){const _0x21508e=_0x1dade9;return this[_0x21508e(0x1c8)][_0x21508e(0x19c)](_0x21508e(0x175));}[_0x1dade9(0x18f)](){const _0x56b83b=_0x1dade9;return this[_0x56b83b(0x14a)][_0x56b83b(0x19c)](_0x56b83b(0x1d4));}static[_0x1dade9(0x1ba)](_0x4e6d52){const _0x5e5ae8=_0x1dade9;return Array[_0x5e5ae8(0x197)](_0x4e6d52[_0x5e5ae8(0x170)]())[_0x5e5ae8(0x1b8)](_0x5bcf46=>this[_0x5e5ae8(0x17e)](_0x5bcf46))[_0x5e5ae8(0x1a0)](_0x25332b=>null!==_0x25332b);}async[_0x1dade9(0x1ac)](_0x1406d9,_0x43d401,_0x314205=_0x5b8b01[_0x1dade9(0x18d)]){const _0x570fe7=_0x1dade9,_0x25f9df=_0x570fe7(0x179)+_0x28e5ce();this[_0x570fe7(0x1d3)](_0x25f9df);try{await Promise[_0x570fe7(0x150)](_0x1406d9[_0x570fe7(0x1b8)](async _0x4cd1f2=>{const _0x15a740=_0x570fe7,_0xb9e179=_0x15a740(0x190)+_0x28e5ce(),_0x1e9532=_0x5b0833(_0x4cd1f2[_0x15a740(0x1d0)]);try{this[_0x15a740(0x156)]({'type':_0x314205,'label':_0x43d401?.[_0x15a740(0x1b7)]||_0x1e9532,'uiId':_0xb9e179,'resourceId':_0x43d401?.[_0x15a740(0x1c2)]},!0x0);const _0x2c96f5=this[_0x15a740(0x167)][_0x15a740(0x1a2)](this[_0x15a740(0x1b5)],_0x4cd1f2,_0x43d401);this[_0x15a740(0x1d1)][_0x15a740(0x186)](_0xb9e179,_0x2c96f5[_0x15a740(0x149)]);const {id:_0x176fb5}=await _0x2c96f5[_0x15a740(0x1a1)]();this[_0x15a740(0x1d1)][_0x15a740(0x161)](_0xb9e179),this[_0x15a740(0x16a)]({'type':_0x314205,'id':_0x176fb5,'label':_0x43d401?.[_0x15a740(0x1b7)]||_0x1e9532,'uiId':_0xb9e179,'resourceId':_0x43d401?.[_0x15a740(0x1c2)]},!0x1);}catch(_0x2e5b7b){this[_0x15a740(0x1d1)][_0x15a740(0x161)](_0xb9e179);if(!(_0x2e5b7b instanceof _0x5921d4&&_0x2e5b7b[_0x15a740(0x15a)][_0x15a740(0x1b2)](_0x15a740(0x177)))){const _0x318f15=_0x4b39b1[_0x15a740(0x163)](_0x2e5b7b[_0x15a740(0x174)])||_0x15a740(0x196),_0x59cf73=new _0x5921d4(_0x318f15,null,{'fileName':_0x1e9532,..._0x2e5b7b});_0x59cf73[_0x15a740(0x176)]=_0x2e5b7b[_0x15a740(0x176)],this[_0x15a740(0x1d6)](_0x15a740(0x1b0),{'error':_0x59cf73});}this[_0x15a740(0x18e)](_0xb9e179);}}));}finally{this[_0x570fe7(0x19f)](_0x25f9df);}}[_0x1dade9(0x172)](_0x5e4782){const _0x3ff49a=_0x1dade9;if(this[_0x3ff49a(0x1ae)]()||!this[_0x3ff49a(0x148)][_0x3ff49a(0x146)][_0x3ff49a(0x18c)])return;const _0x72f500={'type':_0x5b8b01[_0x3ff49a(0x151)],'uiId':_0x3ff49a(0x1d4),'label':_0x5e4782,'isReadOnly':this[_0x3ff49a(0x14a)][_0x3ff49a(0x19c)](_0x3ff49a(0x1d4)),'hidden':this[_0x3ff49a(0x14a)][_0x3ff49a(0x19c)](_0x3ff49a(0x1d4))};this[_0x3ff49a(0x156)](_0x72f500);}async[_0x1dade9(0x1c5)](_0x5b7e87,_0x4c4a8b,_0x4ebb86,_0x342713){const _0x4a8ab0=_0x1dade9,_0x37f005=this[_0x4a8ab0(0x1c8)][_0x4a8ab0(0x163)](_0x4a8ab0(0x1d4));if(_0x37f005&&_0x5b7e87){_0x37f005[_0x4a8ab0(0x175)]=_0x342713?_0x342713[_0x4a8ab0(0x1b8)](_0x55fab3=>({'start':_0x55fab3[_0x4a8ab0(0x1a7)],'end':_0x55fab3[_0x4a8ab0(0x1bf)]})):[];try{if(_0x37f005[_0x4a8ab0(0x158)]===_0x4c4a8b)return;const {id:_0x3b6920}=await this[_0x4a8ab0(0x167)][_0x4a8ab0(0x187)](this[_0x4a8ab0(0x1b5)],_0x5b7e87,{'version':_0x4c4a8b,'sessionId':_0x4ebb86})[_0x4a8ab0(0x1a1)]();_0x37f005['id']=_0x3b6920,_0x37f005[_0x4a8ab0(0x1d9)]=_0x5b7e87,_0x37f005[_0x4a8ab0(0x158)]=_0x4c4a8b,_0x37f005[_0x4a8ab0(0x178)]=_0x4ebb86;}catch(_0x3a90dd){const _0x14d594=new _0x5921d4(_0x4a8ab0(0x1b3),null);_0x14d594[_0x4a8ab0(0x176)]=_0x3a90dd[_0x4a8ab0(0x176)],this[_0x4a8ab0(0x1d6)](_0x4a8ab0(0x1b0),{'error':_0x14d594});}}}[_0x1dade9(0x199)](_0x1f85ac){const _0x5aea1c=_0x1dade9;this[_0x5aea1c(0x156)]({'type':_0x5b8b01[_0x5aea1c(0x162)],'label':_0x1f85ac,'uiId':_0x5aea1c(0x175),'content':_0x1f85ac});}[_0x1dade9(0x14d)](){const _0x49bf44=_0x1dade9;this[_0x49bf44(0x18e)](_0x49bf44(0x175));}async[_0x1dade9(0x16f)](_0x450f63,_0x3e4783){const _0x363e1b=_0x1dade9,_0x461f1b=_0x363e1b(0x180)+_0x28e5ce();this[_0x363e1b(0x1d3)](_0x461f1b);const _0x3d285a=_0x363e1b(0x180)+_0x28e5ce();try{this[_0x363e1b(0x156)]({'type':_0x5b8b01[_0x363e1b(0x17c)],'label':_0x3e4783?.[_0x363e1b(0x1b7)]||_0x450f63,'uiId':_0x3d285a,'resourceId':_0x3e4783?.[_0x363e1b(0x1c2)]},!0x0);const _0x3307a5=this[_0x363e1b(0x167)][_0x363e1b(0x164)](this[_0x363e1b(0x1b5)],_0x450f63,_0x3e4783);this[_0x363e1b(0x1d1)][_0x363e1b(0x186)](_0x3d285a,_0x3307a5[_0x363e1b(0x149)]);const {id:_0x501fa5}=await _0x3307a5[_0x363e1b(0x1a1)]();this[_0x363e1b(0x1d1)][_0x363e1b(0x161)](_0x3d285a),this[_0x363e1b(0x16a)]({'type':_0x5b8b01[_0x363e1b(0x17c)],'id':_0x501fa5,'label':_0x3e4783?.[_0x363e1b(0x1b7)]||_0x450f63,'uiId':_0x3d285a,'resourceId':_0x3e4783?.[_0x363e1b(0x1c2)]},!0x1);}catch(_0x363ce5){this[_0x363e1b(0x1d1)][_0x363e1b(0x161)](_0x3d285a),(_0x363ce5[_0x363e1b(0x15a)][_0x363e1b(0x1b2)](_0x363e1b(0x177))||this[_0x363e1b(0x1d6)](_0x363e1b(0x1b0),{'error':new _0x5921d4(_0x363e1b(0x1ce),this,{'url':_0x450f63,'originalError':_0x363ce5}),'url':_0x450f63}),this[_0x363e1b(0x18e)](_0x3d285a));}finally{this[_0x363e1b(0x19f)](_0x461f1b);}}[_0x1dade9(0x19b)](_0x50bb48){const _0x1410d5=_0x1dade9;_0x50bb48['id']=_0x50bb48['id']??_0x28e5ce()[_0x1410d5(0x1bc)](0x0,0x15),this[_0x1410d5(0x1c8)][_0x1410d5(0x186)](_0x50bb48[_0x1410d5(0x1d5)],_0x50bb48),this[_0x1410d5(0x1d6)](_0x1410d5(0x1d2),{'contextItem':_0x50bb48,'isLoading':!0x1});}async[_0x1dade9(0x1ad)](_0x22e0b8,_0x3dec2a,_0x4615a4){const _0x2c56c0=_0x1dade9,_0xa926e4=this[_0x2c56c0(0x148)][_0x2c56c0(0x17b)][_0x2c56c0(0x194)](_0xa713c9=>_0xa713c9['id']===_0x22e0b8);if(!_0xa926e4)return this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1b0),{'error':new _0x5921d4(_0x2c56c0(0x155),this,{'sourceId':_0x22e0b8}),'sourceId':_0x22e0b8}),[];try{const _0x45f2f1=(await _0xa926e4[_0x2c56c0(0x17f)](_0x3dec2a))[_0x2c56c0(0x1b8)](_0x44a19b=>{const _0x2114e3=_0x2c56c0,_0x440d35=this[_0x2114e3(0x17d)](_0x44a19b['id']);return{..._0x44a19b,'isInContext':_0x440d35};});return _0xa926e4[_0x2c56c0(0x19e)]=_0x45f2f1,this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1c0),{'sourceId':_0x22e0b8,'source':_0xa926e4,'resources':_0x45f2f1,'uid':_0x4615a4}),_0x45f2f1;}catch(_0x47e478){return this[_0x2c56c0(0x1d6)](_0x2c56c0(0x1b0),{'error':new _0x5921d4(_0x2c56c0(0x1bb),this,{'sourceId':_0x22e0b8,'originalError':_0x47e478}),'sourceId':_0x22e0b8,'sourceLabel':_0xa926e4[_0x2c56c0(0x1b7)]}),[];}}async[_0x1dade9(0x1d7)](_0x2abefe,_0x118656){const _0x2f2dd2=_0x1dade9;if(this[_0x2f2dd2(0x17d)](_0x118656['id']))return;let _0x3329c3=_0x118656[_0x2f2dd2(0x1d8)];if(!_0x3329c3&&_0x2abefe[_0x2f2dd2(0x1c1)])try{_0x3329c3=await _0x2abefe[_0x2f2dd2(0x1c1)](_0x118656['id']);}catch(_0x3b9027){return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x16d),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'originalError':_0x3b9027}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}if(_0x3329c3)switch(_0x118656[_0x2f2dd2(0x18b)]){case _0x5b8b01[_0x2f2dd2(0x17c)]:if(_0x2f2dd2(0x185)!=typeof _0x3329c3)return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x185),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});await this[_0x2f2dd2(0x16f)](_0x3329c3,{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']});break;case _0x5b8b01[_0x2f2dd2(0x18d)]:if(!(_0x3329c3 instanceof File))return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x168),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});await this[_0x2f2dd2(0x1ac)]([_0x3329c3],{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']});break;case _0x5b8b01[_0x2f2dd2(0x15e)]:if(_0x2f2dd2(0x1cb)!=typeof _0x3329c3||!(_0x2f2dd2(0x1d9)in _0x3329c3)||!(_0x2f2dd2(0x18b)in _0x3329c3))return void this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x184),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'expectedType':_0x2f2dd2(0x1a4),'actualType':typeof _0x3329c3}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});_0x3329c3=AIChatContext[_0x2f2dd2(0x1ca)](_0x3329c3,_0x118656[_0x2f2dd2(0x1b7)]),await this[_0x2f2dd2(0x1ac)]([_0x3329c3],{'label':_0x118656[_0x2f2dd2(0x1b7)],'resourceId':_0x118656['id']},_0x5b8b01[_0x2f2dd2(0x15e)]);break;case _0x5b8b01[_0x2f2dd2(0x145)]:break;default:this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x1b9),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id'],'resourceType':_0x118656[_0x2f2dd2(0x18b)]}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}else this[_0x2f2dd2(0x1d6)](_0x2f2dd2(0x1b0),{'error':new _0x5921d4(_0x2f2dd2(0x1aa),this,{'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']}),'resourceId':_0x118656['id'],'sourceId':_0x2abefe['id']});}static[_0x1dade9(0x1ca)](_0x14a238,_0x3166d5){const _0x51511c=_0x1dade9;switch(_0x14a238[_0x51511c(0x18b)]){case _0x507e3f[_0x51511c(0x1ab)]:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x1c7)});case _0x507e3f[_0x51511c(0x160)]:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x195)});default:return new File([_0x14a238[_0x51511c(0x1d9)]],_0x3166d5,{'type':_0x51511c(0x1be)});}}static[_0x1dade9(0x17e)](_0x51169d){const _0x497f68=_0x1dade9;switch(_0x51169d[_0x497f68(0x18b)]){case _0x5b8b01[_0x497f68(0x18d)]:return{'type':_0x5b8b01[_0x497f68(0x18d)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x17c)]:return{'type':_0x5b8b01[_0x497f68(0x17c)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x151)]:return{'type':_0x5b8b01[_0x497f68(0x151)],'id':_0x51169d['id'],..._0x51169d[_0x497f68(0x175)]?.[_0x497f68(0x1c4)]&&{'selection':_0x51169d[_0x497f68(0x175)]}};case _0x5b8b01[_0x497f68(0x15e)]:return{'type':_0x5b8b01[_0x497f68(0x18d)],'id':_0x51169d['id']};case _0x5b8b01[_0x497f68(0x145)]:{const _0x2f8214=_0x51169d;return{'type':_0x5b8b01[_0x497f68(0x145)],'mcpServerName':_0x2f8214[_0x497f68(0x192)],'toolName':_0x2f8214[_0x497f68(0x159)],'data':_0x2f8214[_0x497f68(0x1d8)],'id':_0x2f8214['id']};}default:return null;}}[_0x1dade9(0x156)](_0x4efbf8,_0x5d4af6=!0x1){const _0x3ddf7b=_0x1dade9;if(this[_0x3ddf7b(0x1c8)][_0x3ddf7b(0x186)](_0x4efbf8[_0x3ddf7b(0x1d5)],_0x4efbf8),_0x4efbf8[_0x3ddf7b(0x153)]||this[_0x3ddf7b(0x1d6)](_0x3ddf7b(0x1d2),{'contextItem':_0x4efbf8,'isLoading':_0x5d4af6}),_0x3ddf7b(0x1d4)===_0x4efbf8[_0x3ddf7b(0x1d5)]&&this[_0x3ddf7b(0x15b)](),_0x4efbf8[_0x3ddf7b(0x1c2)]){const _0x358a54=this[_0x3ddf7b(0x191)](_0x4efbf8[_0x3ddf7b(0x1c2)]);_0x358a54&&_0x358a54[_0x3ddf7b(0x198)](_0x32144d=>{const _0x3c2ada=_0x3ddf7b;this[_0x3c2ada(0x181)](_0x32144d,_0x4efbf8[_0x3c2ada(0x1c2)],!0x0);});}}[_0x1dade9(0x18e)](_0x25e359){const _0x5efbb6=_0x1dade9,_0x55845f=this[_0x5efbb6(0x1c8)][_0x5efbb6(0x163)](_0x25e359),_0x386c8f=this[_0x5efbb6(0x1d1)][_0x5efbb6(0x163)](_0x25e359);if(_0x386c8f&&(_0x386c8f[_0x5efbb6(0x16c)](),this[_0x5efbb6(0x1d1)][_0x5efbb6(0x161)](_0x25e359)),_0x55845f?.[_0x5efbb6(0x1c2)]){const _0x1e6e52=this[_0x5efbb6(0x191)](_0x55845f[_0x5efbb6(0x1c2)]);_0x1e6e52&&_0x1e6e52[_0x5efbb6(0x198)](_0x5fb372=>{const _0x465ac0=_0x5efbb6;this[_0x465ac0(0x181)](_0x5fb372,_0x55845f[_0x465ac0(0x1c2)],!0x1);});}this[_0x5efbb6(0x1c8)][_0x5efbb6(0x161)](_0x25e359),this[_0x5efbb6(0x1d6)](_0x5efbb6(0x169),{'uiId':_0x25e359,'type':_0x55845f?.[_0x5efbb6(0x18b)]}),_0x5efbb6(0x1d4)===_0x25e359&&this[_0x5efbb6(0x15b)]();}[_0x1dade9(0x16a)](_0x5bfea1,_0x263b75){const _0x4d0c6c=_0x1dade9;if(this[_0x4d0c6c(0x1c8)][_0x4d0c6c(0x19c)](_0x5bfea1[_0x4d0c6c(0x1d5)])&&(this[_0x4d0c6c(0x1c8)][_0x4d0c6c(0x186)](_0x5bfea1[_0x4d0c6c(0x1d5)],_0x5bfea1),this[_0x4d0c6c(0x1d6)](_0x4d0c6c(0x1cc),{'contextItem':_0x5bfea1,'isLoading':_0x263b75}),_0x5bfea1[_0x4d0c6c(0x1c2)])){const _0xfe384=this[_0x4d0c6c(0x191)](_0x5bfea1[_0x4d0c6c(0x1c2)]);_0xfe384&&_0xfe384[_0x4d0c6c(0x198)](_0x18ee32=>{const _0x6140b6=_0x4d0c6c;this[_0x6140b6(0x181)](_0x18ee32,_0x5bfea1[_0x6140b6(0x1c2)],!0x0);});}}[_0x1dade9(0x183)](_0xe6ca00){const _0xfd2dd3=_0x1dade9;this[_0xfd2dd3(0x14a)][_0xfd2dd3(0x186)](_0xe6ca00[_0xfd2dd3(0x1d5)],_0xe6ca00);}[_0x1dade9(0x1b1)](){const _0x38e44c=_0x1dade9;this[_0x38e44c(0x148)]={'document':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x146)]?.[_0x38e44c(0x18c)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x147)]?.[_0x38e44c(0x18c)]},'files':{'enabled':!0x1!==this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x1c9)]?.[_0x38e44c(0x18c)]},'sources':this[_0x38e44c(0x1a9)](),'customItems':this[_0x38e44c(0x1a3)]?.[_0x38e44c(0x14f)]?.[_0x38e44c(0x1b8)](_0x9cd7db=>({..._0x9cd7db,'enabled':!0x0}))??[]},this[_0x38e44c(0x1d6)](_0x38e44c(0x152),{'options':this[_0x38e44c(0x148)]});}[_0x1dade9(0x1a9)](){const _0x10eda6=_0x1dade9;return this[_0x10eda6(0x1a3)]?.[_0x10eda6(0x17b)]?.[_0x10eda6(0x1b8)](_0x7dd0e8=>({..._0x7dd0e8,'resources':[]}))??[];}[_0x1dade9(0x15b)](){const _0x2e2aa2=_0x1dade9,_0x1aeabc=this[_0x2e2aa2(0x1ae)]()||this[_0x2e2aa2(0x18f)]();this[_0x2e2aa2(0x148)][_0x2e2aa2(0x146)][_0x2e2aa2(0x1b4)]=_0x1aeabc,this[_0x2e2aa2(0x1d6)](_0x2e2aa2(0x152),{'options':this[_0x2e2aa2(0x148)]});}[_0x1dade9(0x17d)](_0x39b330){const _0x49205e=_0x1dade9;for(const _0x9f61f0 of this[_0x49205e(0x1c8)][_0x49205e(0x170)]())if(_0x9f61f0[_0x49205e(0x1c2)]===_0x39b330)return!0x0;for(const _0x406e55 of this[_0x49205e(0x14a)][_0x49205e(0x170)]())if(_0x406e55[_0x49205e(0x1c2)]===_0x39b330)return!0x0;return!0x1;}[_0x1dade9(0x191)](_0x515b95){const _0x5cf821=_0x1dade9,_0x215f3e=[];for(const _0x47c991 of this[_0x5cf821(0x148)][_0x5cf821(0x17b)]){_0x47c991[_0x5cf821(0x19e)][_0x5cf821(0x194)](_0x2b3773=>_0x2b3773['id']===_0x515b95)&&_0x215f3e[_0x5cf821(0x16b)](_0x47c991['id']);}return 0x0===_0x215f3e[_0x5cf821(0x1c4)]?null:_0x215f3e;}[_0x1dade9(0x181)](_0x5aa0e5,_0x9c620a,_0x33d433){const _0x50d579=_0x1dade9,_0x18c63b=this[_0x50d579(0x148)][_0x50d579(0x17b)][_0x50d579(0x194)](_0x5add5e=>_0x5add5e['id']===_0x5aa0e5);if(!_0x18c63b)return;const _0x33bc4d=_0x18c63b[_0x50d579(0x19e)][_0x50d579(0x194)](_0x3e4114=>_0x3e4114['id']===_0x9c620a);_0x33bc4d&&(_0x33bc4d[_0x50d579(0x14c)]=_0x33d433,this[_0x50d579(0x1d6)](_0x50d579(0x15f),{'sourceId':_0x5aa0e5,'resourceId':_0x9c620a,'isInContext':_0x33d433}));}[_0x1dade9(0x1d3)](_0x498268){const _0x40d469=_0x1dade9;this[_0x40d469(0x15c)][_0x40d469(0x186)](_0x498268,!0x0),this[_0x40d469(0x15c)][_0x40d469(0x17a)]&&this[_0x40d469(0x1d6)](_0x40d469(0x1a6),{'isUploadInProgress':!0x0});}[_0x1dade9(0x19f)](_0x4bfdc8){const _0x4edb46=_0x1dade9;this[_0x4edb46(0x15c)][_0x4edb46(0x161)](_0x4bfdc8),0x0===this[_0x4edb46(0x15c)][_0x4edb46(0x17a)]&&this[_0x4edb46(0x1d6)](_0x4edb46(0x1a6),{'isUploadInProgress':!0x1});}}
|