@ckeditor/ckeditor5-ai 47.0.0-alpha.2 → 47.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +50 -37
- package/dist/index.css +68 -38
- package/dist/index.js +4 -4
- 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/lang/contexts.json +5 -0
- package/lang/translations/ar.po +171 -171
- package/lang/translations/bg.po +155 -155
- package/lang/translations/bn.po +155 -155
- package/lang/translations/ca.po +155 -155
- package/lang/translations/cs.po +159 -159
- package/lang/translations/da.po +155 -155
- package/lang/translations/de.po +155 -155
- package/lang/translations/el.po +155 -155
- package/lang/translations/es.po +155 -155
- package/lang/translations/et.po +155 -155
- package/lang/translations/fi.po +155 -155
- package/lang/translations/fr.po +155 -155
- package/lang/translations/he.po +155 -155
- package/lang/translations/hi.po +155 -155
- package/lang/translations/hu.po +155 -155
- package/lang/translations/id.po +151 -151
- package/lang/translations/it.po +155 -155
- package/lang/translations/ja.po +151 -151
- package/lang/translations/ko.po +151 -151
- package/lang/translations/lt.po +159 -159
- package/lang/translations/lv.po +159 -159
- package/lang/translations/ms.po +151 -151
- package/lang/translations/nl.po +155 -155
- package/lang/translations/no.po +155 -155
- package/lang/translations/pl.po +159 -159
- package/lang/translations/pt-br.po +155 -155
- package/lang/translations/pt.po +155 -155
- package/lang/translations/ro.po +159 -159
- package/lang/translations/ru.po +159 -159
- package/lang/translations/sk.po +159 -159
- package/lang/translations/sr.po +159 -159
- package/lang/translations/sv.po +155 -155
- package/lang/translations/th.po +151 -151
- package/lang/translations/tr.po +155 -155
- package/lang/translations/uk.po +159 -159
- package/lang/translations/vi.po +151 -151
- package/lang/translations/zh-cn.po +151 -151
- package/lang/translations/zh.po +151 -151
- package/package.json +16 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.d.ts +2 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +2 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/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.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +2 -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/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/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +19 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +30 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichatfeed.css +6 -2
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x49c5b2=_0x2a37;(function(_0x119de6,_0x58e26d){const _0x33406d=_0x2a37,_0x3b8048=_0x119de6();while(!![]){try{const _0x99ac6e=-parseInt(_0x33406d(0x2ed))/0x1+-parseInt(_0x33406d(0x294))/0x2+parseInt(_0x33406d(0x1f2))/0x3+-parseInt(_0x33406d(0x2b5))/0x4*(parseInt(_0x33406d(0x25c))/0x5)+parseInt(_0x33406d(0x1e2))/0x6+-parseInt(_0x33406d(0x25f))/0x7*(-parseInt(_0x33406d(0x24a))/0x8)+-parseInt(_0x33406d(0x303))/0x9;if(_0x99ac6e===_0x58e26d)break;else _0x3b8048['push'](_0x3b8048['shift']());}catch(_0x19f7a9){_0x3b8048['push'](_0x3b8048['shift']());}}}(_0x584d,0x3da39));import{ContextPlugin as _0x56e77b,Editor as _0x345593}from'ckeditor5/src/core.js';import{CKEditorError as _0x586d94,logError as _0xdb113b,scrollViewportToShowTarget as _0xde20d2,uid as _0x1d0026}from'ckeditor5/src/utils.js';import{AIConnector as _0x4d226c}from'../aicore/aiconnector.js';import{AITabs as _0x4952f1}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3e2f1d}from'./model/aichatconversation.js';import{getTranslation as _0xd7d1f7}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x2c9782}from'../aicore/aiediting.js';import{AIChatModels as _0x268608}from'./model/aichatmodels.js';import{getEditorFromContext as _0x1e1f26}from'../aicore/utils/geteditorfromcontext.js';function _0x2a37(_0x589bf3,_0x581617){const _0x584de9=_0x584d();return _0x2a37=function(_0x2a37ee,_0x2aa6e4){_0x2a37ee=_0x2a37ee-0x1c5;let _0x28096f=_0x584de9[_0x2a37ee];return _0x28096f;},_0x2a37(_0x589bf3,_0x581617);}import{DocumentCompare as _0x283dfd,DATA_ID_MODEL_ATTRIBUTE as _0x1c5ada}from'@ckeditor/ckeditor5-collaboration-core';function _0x584d(){const _0x13d3fe=['activateTab','start','isOfficialPlugin','sourceId','_setIsMaximized','open','updateFeedItemAIReplyContent','undo','AITabs','range','createPositionAt','ai-chat-resource-load-failed','setChangeGroupState','forEach','load','_insertSuggestion','type','resetMessageInput','slice','isDocumentOperation','stop','AIChatUI','rootName','isDisabled','4WbBiQu','indexes','updateFeedInteractionHeader','addFeedItemStaticMessage','addOperation','contextItems','capabilitiesUpdated','setConversationContext','getChildren','addFeedItemError','ai-chat-controller-mouse-over','editors','addContextOptionsChanged','activeConversation','listenTo','howMany','removeSelectionFromContext','resourceStateChanged','config','updateConversationTitle','change','toViewRange','data-id','contextItemRemoved','dislike','_handleUIUserMessage','provider','new','sourcePosition','AI_CHAT_UNABLE_TO_START_CONVERSATION','model','getDiff','addSelectionToContext','conversationInitialized','unshift','_stopLastInteraction','AIChatController','string','version','pluginName','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','toggleWebSearch','rejected','setIsUploadInProgress','AI_CHAT_RESOURCE_LOAD_FAILED','updateContent','updateCurrentDocumentInContext','isUploadInProgress','removeMarker','root','clearPendingContextUI','stopInteraction','toggleSuggestionDisplayMode','addFilesToContext','resource','context','137842enaNKV','contextItem','populateSourceResourceBalloon','startsWith','clearConversationContextUI','push','_logError','lastInteraction','set','modification-delta','main','state','AIEditing','current-document','mouseLeaveSuggestion','ai-chat-context-invalid-data','get','addFeedItemAIReply','removed','showFakeVisualSelection','maxOffset','updateFeedItemAIReplySources','2300625TWckNI','sourceResourcesLoaded','find','updateFeedItemAIReplySuggestionPartState','end','uid','_showConversationHistory','showNext','getRanges','isOpen','handleUserInteraction','data','like','handleRemovedConversation','getChildAtOffset','getDocumentData','getInteraction','addFeedItemAISuggestion','options','isPremiumPlugin','removeFromContext','ai-chat-conversation-init-failed','delete','_removeFromContext','AIConnector','locale','loadConversation','getDocumentContext','sendMessage','setModel','mapper','AI_CHAT_ABORTED_MESSAGE','_getDocumentRangeForReplyChanges','split','contextItemLoadingEnded','sendUserMessage','selection','getInteractionAndReplyById','anchorId','ai.chat.models.defaultModelId','setSelectedModel','interactionId','getSelectionText','_previewedChangeGroup','getMarkersGroup','2944362ScKclv','_aiChatUi','Undo','isCurrentDocumentInContext','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateCapabilities','revert','getOperations','full','isCurrentDocumentInConversation','log','partIndex','_applySuggestion','history','commands','_aiChatModels','1101972ZkylLm','alignToTop','_openBalloonFor','ai-chat-url-upload-failed','_integrateEditor','Liked\x20response','path','removeSelectionFromChatContext','getRoot','addFeedInteractionHeader','_handleStartConversation','Showing\x20conversation\x20history...','addCurrentDocumentToContext','updateFeedItemAIReplySuggestionContent','toLocaleLowerCase','ai-chat-source-resources-load-failed','showChangeInText','indexOf','createConversation','getAttribute','_toggleWebSearch','error','contextItemAdded','collaboration.channelId','interactionFinished','children','addFeedItemUserMessage','documentContextContent','setIsMaximized','_removeAISelectionMarkers','markers','_batchToChanges','pending','resizedTabs','replyChangeGroupStateUpdated','modelSelected','_aiEditing','addResourceToContext','view','getChild','_filterModels','document','setFeedItemRenderingStrategy','contextSent','parse','has','ready','replies','length','resizeTabs','sources','rejectSuggestion','setConversationTitle','map','updateResourceState','interactionDestroyed','replyId','source','createPositionFromPath','AI_CHAT_UNTITLED_CONVERSATION','viewRangeToDom','createRange','getTransformedByOperation','toggleReasoning','ai-chat-missing-channel-id','init','baseVersion','domConverter','abortPromptStream','chat','DocumentCompare','removeContextItem','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','showPrevious','changes','toggleLoadingSkeleton','addDocumentToContext','cloneNode','_applyOperationsAsSuggestions','hideFakeVisualSelection','Disliked\x20response','content','ai.chat.context','query','text-delta','add','availableModels','streaming','4009064JHYCMt','addContextItem','accepted','_balloonShowDiff','TrackChangesEditing','filter','replyCreated','closeSourceResourceBalloon','mouseOverSuggestion','requires','node','changeGroups','interactionCreated','_flushLastInteractionUI','addUrlToContext','static','ai-chat-context-unsupported-type','removeFeedInteraction','2181205pRVsgW','getPath','close','7nBbjwY','selectedModel','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','isLoading','_createFromRanges','_scrollToSuggestionRange','replyContentUpdated','isInContext','uploadProgressChanged','ai-chat-conversation-start-failed','nextSibling','Failed\x20to\x20load\x20conversation','addSelectionToChatContext','Suggestion\x20','afterInit','AI_CHAT_CONTEXT_INVALID_DATA','getGroupId','redo','resources','showDiff','isStarted','selectModel','batch','setAddContextOptions','dialogClosed','remove','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','plugins','from','message','ai.chat.models.displayedModels','ai-chat-controller-no-active-conversation','_updateReplyContent','ai-chat-file-upload-failed','editing','finishInteraction','focusPromptInput','insertSuggestion','$graveyard','startConversation','interactionStarted','resetConversationTitle','uiId','setContextItemLoading','resourceId','getFirstRange','name','applyOperation','startInteraction','AI_CHAT_GENERIC_ERROR','stopListening','ai-request-aborted','scrollFeedToSuggestion','554006jyfTwi','ai-conversation-','applySuggestion','_aiConnector','addFileToContext','_toggleReasoning','getReply','loadSourceResources','resize'];_0x584d=function(){return _0x13d3fe;};return _0x584d();}import{getOperationsFromReply as _0x42d838}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4af0eb,getMinimalSelection as _0x3d4c72,getSuggestionPartsFromReply as _0x68d6dc}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x241e0d,_DetachOperation as _0x201cc2}from'ckeditor5/src/engine.js';import{findOne as _0x2666cf,getAttribute as _0x52ba63,serialize as _0x31bd3e,Document as _0x2d75b3,findByAttribute as _0x4385af}from'../aicore/utils/htmlparser.js';import{IconAI as _0x380504}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4d4776}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x555cbc}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x56e77b{[_0x49c5b2(0x216)];[_0x49c5b2(0x297)];[_0x49c5b2(0x1e3)];[_0x49c5b2(0x1f1)];[_0x49c5b2(0x211)]=new Map();[_0x49c5b2(0x1e0)]=null;[_0x49c5b2(0x24d)]=!0x1;static get[_0x49c5b2(0x253)](){return[_0x4d226c,_0x555cbc,_0x283dfd];}static get[_0x49c5b2(0x2dc)](){const _0x18747b=_0x49c5b2;return _0x18747b(0x2d9);}static get[_0x49c5b2(0x29f)](){return!0x0;}static get[_0x49c5b2(0x1c8)](){return!0x0;}[_0x49c5b2(0x233)](){const _0x4a4692=_0x49c5b2;this[_0x4a4692(0x297)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x1cd)),this[_0x4a4692(0x1e3)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2b2)),this[_0x4a4692(0x216)]=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2f9)),this[_0x4a4692(0x1f1)]=new _0x268608({'connector':this[_0x4a4692(0x297)]});const _0x5453fb=this[_0x4a4692(0x2ec)][_0x4a4692(0x27a)][_0x4a4692(0x2fd)](_0x4a4692(0x2a5));this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x286),()=>{const _0x48ac22=_0x4a4692;this[_0x48ac22(0x1fc)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x1d8),(_0x233d24,_0x560c32)=>{const _0xe68a39=_0x4a4692;this[_0xe68a39(0x2ce)]({'userMessage':_0x560c32});}),this[_0x4a4692(0x2c3)](_0x5453fb,_0x4a4692(0x213),(_0x3a0486,_0xec54e2)=>{const _0x2cb92f=_0x4a4692;this[_0x2cb92f(0x2a1)](_0xec54e2);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x223),()=>{const _0x27cd8f=_0x4a4692;_0x5453fb[_0x27cd8f(0x29c)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x236),async()=>{const _0x6f86bd=_0x4a4692;await this[_0x6f86bd(0x2d8)](),await this[_0x6f86bd(0x257)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x23e),()=>{const _0x2167e1=_0x4a4692;this[_0x2167e1(0x2c2)]?.[_0x2167e1(0x1fe)](_0xd7d1f7(this[_0x2167e1(0x2ec)][_0x2167e1(0x1ce)],_0x2167e1(0x23a)));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x298),(_0x56bf9b,_0x34959e)=>{const _0x5eb1d6=_0x4a4692;this[_0x5eb1d6(0x2c2)]?.[_0x5eb1d6(0x2ea)](Array[_0x5eb1d6(0x27b)](_0x34959e));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x258),(_0x388ac5,_0x181a9b)=>{const _0x202120=_0x4a4692;this[_0x202120(0x2c2)]?.[_0x202120(0x258)](_0x181a9b);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x217),(_0x79b10f,_0x563414)=>{const _0x9ab1f9=_0x4a4692;this[_0x9ab1f9(0x2c2)]?.[_0x9ab1f9(0x217)](_0x563414[_0x9ab1f9(0x22b)],_0x563414[_0x9ab1f9(0x2eb)]);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x239),(_0x3ecc71,_0x329c2e)=>{const _0x803c21=_0x4a4692;this[_0x803c21(0x1cc)](_0x329c2e);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x29b),(_0x307e7f,_0x597469)=>{const _0x5a75cc=_0x4a4692;this[_0x5a75cc(0x2c2)]?.[_0x5a75cc(0x29b)](_0x597469[_0x5a75cc(0x2a0)],_0x597469[_0x5a75cc(0x245)],_0x597469[_0x5a75cc(0x308)]);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2de),()=>{const _0x31e850=_0x4a4692;this[_0x31e850(0x206)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x231),()=>{const _0x1a9009=_0x4a4692;this[_0x1a9009(0x299)]();}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x274),(_0x165e57,_0x57c3b7)=>{const _0x2f648d=_0x4a4692;this[_0x2f648d(0x2c2)]?.[_0x2f648d(0x1d2)](_0x57c3b7);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x30f),(_0x4b7fba,{replyId:_0x35a938})=>{const _0x4ec32d=_0x4a4692;console[_0x4ec32d(0x1ec)](_0x4ec32d(0x1f7),_0x35a938);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2cd),(_0x2f6de3,{replyId:_0x35b8f5})=>{const _0xe48894=_0x4a4692;console[_0xe48894(0x1ec)](_0xe48894(0x242),_0x35b8f5);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x284),(_0x393f63,_0x4e38db)=>{const _0xb3282f=_0x4a4692;this[_0xb3282f(0x2ec)][_0xb3282f(0x27a)][_0xb3282f(0x2fd)](_0x555cbc)[_0xb3282f(0x25e)](),this[_0xb3282f(0x2ac)](_0x4e38db);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x202),(_0x5a3d7b,{replyId:_0x1b9fa4,partIndex:_0x3ba0ce})=>{const _0x141af7=_0x4a4692;this[_0x141af7(0x24d)]=this[_0x141af7(0x1e3)][_0x141af7(0x272)],this[_0x141af7(0x1f4)](_0x1b9fa4,_0x3ba0ce);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x252),(_0x58c06e,{replyId:_0x570e81,partIndex:_0x43f4a1})=>{const _0x45dd69=_0x4a4692,_0x68ff4a=this[_0x45dd69(0x1d5)](_0x570e81,_0x43f4a1);_0x68ff4a&&_0x45dd69(0x285)!=_0x68ff4a[_0x45dd69(0x2a6)][_0x45dd69(0x2e6)][_0x45dd69(0x2b3)]&&this[_0x45dd69(0x216)][_0x45dd69(0x300)]([_0x68ff4a[_0x45dd69(0x2a6)]],_0x45dd69(0x2bf));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2fb),()=>{const _0x3e0f93=_0x4a4692;this[_0x3e0f93(0x216)][_0x3e0f93(0x241)](_0x3e0f93(0x2bf));}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x296),(_0x4da38e,_0x4e64f9)=>{const _0x2c2d1e=_0x4a4692;this[_0x2c2d1e(0x2ec)][_0x2c2d1e(0x27a)][_0x2c2d1e(0x2fd)](_0x555cbc)[_0x2c2d1e(0x25e)](),this[_0x2c2d1e(0x1ee)](_0x4e64f9);}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x2e9),async(_0x5eef76,_0x2e5a38)=>{const _0x42f0b3=_0x4a4692,{reply:_0x457bef}=this[_0x42f0b3(0x1da)](_0x2e5a38[_0x42f0b3(0x22a)]),_0x416856=_0x1e1f26(this[_0x42f0b3(0x2ec)]),_0x206630=_0x68d6dc({'editor':_0x416856,'changeGroups':_0x457bef[_0x42f0b3(0x255)],'documentContextContent':_0x457bef[_0x42f0b3(0x20d)],'showDiff':_0x2e5a38[_0x42f0b3(0x272)]});await this[_0x42f0b3(0x1e3)][_0x42f0b3(0x1ff)]({'id':_0x457bef['id'],'parts':_0x206630,'renderingStrategy':_0x42f0b3(0x259)});}),this[_0x4a4692(0x2c3)](this[_0x4a4692(0x1e3)],_0x4a4692(0x225),(_0x35b38a,{replyId:_0x137972,partIndex:_0x5ba19e})=>{const _0x53accc=_0x4a4692;this[_0x53accc(0x1e0)]?.[_0x53accc(0x22a)]==_0x137972&&this[_0x53accc(0x1e0)]?.[_0x53accc(0x1ed)]==_0x5ba19e&&this[_0x53accc(0x2ec)][_0x53accc(0x27a)][_0x53accc(0x2fd)](_0x555cbc)[_0x53accc(0x25e)]();const {reply:_0x235fb2}=this[_0x53accc(0x1da)](_0x137972);_0x235fb2[_0x53accc(0x2a9)](_0x5ba19e,_0x53accc(0x2df)),this[_0x53accc(0x216)][_0x53accc(0x241)](_0x53accc(0x2bf));});}async[_0x49c5b2(0x26d)](){const _0x2e5d2c=_0x49c5b2;this[_0x2e5d2c(0x2ec)]instanceof _0x345593?this[_0x2e5d2c(0x1f6)](this[_0x2e5d2c(0x2ec)]):this[_0x2e5d2c(0x2c3)](this[_0x2e5d2c(0x2ec)][_0x2e5d2c(0x2c0)],_0x2e5d2c(0x247),(_0x4bedd1,_0x3831d4)=>{const _0x13e301=_0x2e5d2c;_0x3831d4['on'](_0x13e301(0x220),()=>{const _0x4d4902=_0x13e301;this[_0x4d4902(0x1f6)](_0x3831d4);});}),await this[_0x2e5d2c(0x1fc)]();}[_0x49c5b2(0x2ac)](_0x928e4f){const _0x465ebd=_0x49c5b2,_0x5d07e4=_0x1e1f26(this[_0x465ebd(0x2ec)]);if(!_0x5d07e4[_0x465ebd(0x27a)][_0x465ebd(0x21f)](_0x465ebd(0x24e)))return;const _0x593afe=this[_0x465ebd(0x2ec)][_0x465ebd(0x27a)][_0x465ebd(0x2fd)](_0x465ebd(0x238)),{reply:_0x2b7848,interaction:_0x1c44ce}=this[_0x465ebd(0x1da)](_0x928e4f[_0x465ebd(0x22a)]),_0x559928=this[_0x465ebd(0x1d5)](_0x928e4f[_0x465ebd(0x22a)],_0x928e4f[_0x465ebd(0x1ed)]),_0x19d53d=void 0x0!==_0x928e4f[_0x465ebd(0x1ed)]?[_0x2b7848[_0x465ebd(0x255)][_0x928e4f[_0x465ebd(0x1ed)]]]:_0x2b7848[_0x465ebd(0x255)][_0x465ebd(0x24f)](_0x56c5f2=>_0x465ebd(0x212)==_0x56c5f2[_0x465ebd(0x2f8)]),_0x39b3a2=_0x19d53d[_0x465ebd(0x227)](_0x4f99f5=>_0x2b7848[_0x465ebd(0x255)][_0x465ebd(0x203)](_0x4f99f5));_0x39b3a2[_0x465ebd(0x2aa)](_0x276288=>_0x2b7848[_0x465ebd(0x2a9)](_0x276288,_0x465ebd(0x24c)));const _0x23cba7=_0x42d838({'editor':_0x5d07e4,'reply':_0x2b7848,'interaction':_0x1c44ce,'groups':_0x19d53d,'transform':!0x0,'documentCompare':_0x593afe,'documentCompareOptions':{'anchor':_0x465ebd(0x2f7),'markDeletions':!0x0}});let _0xe7710a;_0x559928&&this[_0x465ebd(0x264)](_0x559928[_0x465ebd(0x2a6)]),_0x5d07e4[_0x465ebd(0x2d3)][_0x465ebd(0x2c9)](_0x47324c=>{const _0x16a68e=_0x465ebd;_0xe7710a=_0x47324c[_0x16a68e(0x275)],_0x5d07e4[_0x16a68e(0x27a)][_0x16a68e(0x2fd)](_0x16a68e(0x24e))[_0x16a68e(0x240)](_0x23cba7),this[_0x16a68e(0x216)][_0x16a68e(0x241)](_0x16a68e(0x2bf));}),this[_0x465ebd(0x211)][_0x465ebd(0x2f5)](_0xe7710a,{'interactionId':_0x1c44ce['id'],'replyId':_0x2b7848['id'],'indexes':_0x39b3a2[_0x465ebd(0x2af)]()});}[_0x49c5b2(0x1ee)](_0x529dfc){const _0x249f52=_0x49c5b2,_0x529bac=_0x1e1f26(this[_0x249f52(0x2ec)]),_0x4f1f68=this[_0x249f52(0x2ec)][_0x249f52(0x27a)][_0x249f52(0x2fd)](_0x283dfd),{reply:_0x3133c7,interaction:_0x1bbfd5}=this[_0x249f52(0x1da)](_0x529dfc[_0x249f52(0x22a)]),_0x3ac89d=this[_0x249f52(0x1d5)](_0x529dfc[_0x249f52(0x22a)],_0x529dfc[_0x249f52(0x1ed)]),_0x5896e5=void 0x0!==_0x529dfc[_0x249f52(0x1ed)]?[_0x3133c7[_0x249f52(0x255)][_0x529dfc[_0x249f52(0x1ed)]]]:_0x3133c7[_0x249f52(0x255)][_0x249f52(0x24f)](_0x5d00c5=>_0x249f52(0x212)==_0x5d00c5[_0x249f52(0x2f8)]),_0x484e5a=_0x5896e5[_0x249f52(0x227)](_0x511005=>_0x3133c7[_0x249f52(0x255)][_0x249f52(0x203)](_0x511005));_0x484e5a[_0x249f52(0x2aa)](_0x26a6cf=>_0x3133c7[_0x249f52(0x2a9)](_0x26a6cf,_0x249f52(0x24c)));const _0x39acdc=_0x42d838({'editor':_0x529bac,'reply':_0x3133c7,'interaction':_0x1bbfd5,'groups':_0x5896e5,'transform':!0x0,'documentCompare':_0x4f1f68,'documentCompareOptions':{'anchor':_0x249f52(0x2f7),'markDeletions':!0x1}});let _0xa4e8f0;_0x3ac89d&&this[_0x249f52(0x264)](_0x3ac89d[_0x249f52(0x2a6)]),_0x529bac[_0x249f52(0x2d3)][_0x249f52(0x2c9)](_0x4f3c5f=>{const _0x3ed0a0=_0x249f52;_0xa4e8f0=_0x4f3c5f[_0x3ed0a0(0x275)];for(const _0x290355 of _0x39acdc)_0x290355[_0x3ed0a0(0x234)]=_0x529bac[_0x3ed0a0(0x2d3)][_0x3ed0a0(0x21b)][_0x3ed0a0(0x2db)],_0x4f3c5f[_0x3ed0a0(0x275)][_0x3ed0a0(0x2b9)](_0x290355),_0x529bac[_0x3ed0a0(0x2d3)][_0x3ed0a0(0x28e)](_0x290355);}),this[_0x249f52(0x211)][_0x249f52(0x2f5)](_0xa4e8f0,{'interactionId':_0x1bbfd5['id'],'replyId':_0x3133c7['id'],'indexes':_0x484e5a[_0x249f52(0x2af)]()});}[_0x49c5b2(0x1f4)](_0x259277,_0x240b31){const _0x4a0400=_0x49c5b2,_0x3a164f=_0x1e1f26(this[_0x4a0400(0x2ec)]),_0x1a75c4=this[_0x4a0400(0x1d5)](_0x259277,_0x240b31),_0xf902a7=this[_0x4a0400(0x2ec)][_0x4a0400(0x27a)][_0x4a0400(0x2fd)](_0x555cbc);if(!_0x1a75c4)return void _0xf902a7[_0x4a0400(0x25e)]();const {range:_0x22aab4,currentIndex:_0x122426,previousIndex:_0x460a5b,nextIndex:_0x417081}=_0x1a75c4;if(this[_0x4a0400(0x1e0)]?.[_0x4a0400(0x22a)]==_0x259277&&this[_0x4a0400(0x1e0)]?.[_0x4a0400(0x1ed)]==_0x122426)return;this[_0x4a0400(0x1e0)]={'replyId':_0x259277,'partIndex':_0x122426};const _0x3a3700=new _0x4d4776(_0x3a164f[_0x4a0400(0x1ce)],{'showDiff':this[_0x4a0400(0x24d)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x4a0400(0x1ea)},'hideHeader':!0x0}),{reply:_0x30a0c1}=this[_0x4a0400(0x1da)](_0x259277),_0x5ebc0b=_0x68d6dc({'editor':_0x3a164f,'changeGroups':[_0x30a0c1[_0x4a0400(0x255)][_0x122426]],'documentContextContent':_0x30a0c1[_0x4a0400(0x20d)],'showDiff':this[_0x4a0400(0x24d)]});_0x3a3700[_0x4a0400(0x2e2)]({'parts':_0x5ebc0b,'renderingStrategy':_0x4a0400(0x259)});const _0x5ea3fb=_0x122426!==_0x460a5b;this[_0x4a0400(0x264)](_0x22aab4,!0x0),_0xf902a7[_0x4a0400(0x2a2)]({'index':_0x122426,'title':_0x4a0400(0x26c)+(_0x122426+0x1),'icon':_0x380504,'mainView':_0x3a3700,'showRotator':_0x5ea3fb,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x22aab4]}),this[_0x4a0400(0x1e3)][_0x4a0400(0x293)](_0x259277,_0x122426),this[_0x4a0400(0x2c3)](_0x3a3700,_0x4a0400(0x2e9),(_0x25a49b,{showDiff:_0x3cb36f})=>{const _0x23980f=_0x4a0400;this[_0x23980f(0x24d)]=_0x3cb36f;const {reply:_0x336d9f}=this[_0x23980f(0x1da)](_0x259277),_0x367fa6=_0x68d6dc({'editor':_0x3a164f,'changeGroups':[_0x336d9f[_0x23980f(0x255)][_0x122426]],'documentContextContent':_0x336d9f[_0x23980f(0x20d)],'showDiff':_0x3cb36f});_0x3a3700[_0x23980f(0x2e2)]({'parts':_0x367fa6,'renderingStrategy':_0x23980f(0x259)});}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x296),()=>{const _0x1af526=_0x4a0400;this[_0x1af526(0x1ee)]({'replyId':_0x259277,'partIndex':_0x122426}),_0x5ea3fb?this[_0x1af526(0x1f4)](_0x259277,_0x417081):_0xf902a7[_0x1af526(0x25e)]();}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x284),()=>{const _0x3495d1=_0x4a0400;this[_0x3495d1(0x2ac)]({'replyId':_0x259277,'partIndex':_0x122426}),_0x5ea3fb?this[_0x3495d1(0x1f4)](_0x259277,_0x417081):_0xf902a7[_0x3495d1(0x25e)]();}),_0x5ea3fb&&(this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x30a),()=>{const _0x3bd9de=_0x4a0400;this[_0x3bd9de(0x1f4)](_0x259277,_0x417081);}),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x23b),()=>{const _0x237b9e=_0x4a0400;this[_0x237b9e(0x1f4)](_0x259277,_0x460a5b);})),this[_0x4a0400(0x2c3)](_0xf902a7,_0x4a0400(0x277),()=>{const _0x5c95a8=_0x4a0400;this[_0x5c95a8(0x291)](_0xf902a7),this[_0x5c95a8(0x291)](_0x3a3700),this[_0x5c95a8(0x1e0)]=null;});}[_0x49c5b2(0x1d5)](_0x2a0345,_0x1806ad){const _0x476f31=_0x49c5b2,_0x3177df=_0x1e1f26(this[_0x476f31(0x2ec)]),{reply:_0x185cdd,interaction:_0x1cb361}=this[_0x476f31(0x1da)](_0x2a0345),_0x1064d0=_0x185cdd[_0x476f31(0x255)][_0x476f31(0x24f)](_0x4bc6b7=>_0x476f31(0x212)==_0x4bc6b7[_0x476f31(0x2f8)]),_0x450f96=_0x1064d0[_0x476f31(0x227)](_0x3a5e39=>_0x185cdd[_0x476f31(0x255)][_0x476f31(0x203)](_0x3a5e39));void 0x0===_0x1806ad&&(_0x1806ad=_0x450f96[0x0]);const _0x4cb156=_0x450f96[_0x476f31(0x203)](_0x1806ad);if(-0x1==_0x4cb156)return null;const _0x2b7f56=0x0==_0x4cb156?_0x450f96[_0x450f96[_0x476f31(0x222)]-0x1]:_0x450f96[_0x4cb156-0x1],_0x426470=_0x4cb156==_0x450f96[_0x476f31(0x222)]-0x1?_0x450f96[0x0]:_0x450f96[_0x4cb156+0x1],_0x40c7e0=_0x1064d0[_0x4cb156],_0xf21cd8=new _0x2d75b3([]),_0x3feefd=new _0x2d75b3([]);for(const _0x244c1b of _0x40c7e0[_0x476f31(0x23c)])if(_0x476f31(0x2ff)!=_0x244c1b[_0x476f31(0x2ad)]&&_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x244c1b[_0x476f31(0x254)][_0x476f31(0x23f)](!0x0)),_0x476f31(0x2d0)!=_0x244c1b[_0x476f31(0x2ad)]){const _0x6dc3e9=_0x2666cf(_0x19ed1c=>_0x52ba63(_0x19ed1c,_0x476f31(0x2cb))==_0x244c1b['id'],_0x185cdd[_0x476f31(0x20d)],!0x0);_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x6dc3e9[_0x476f31(0x23f)](!0x0));}if(0x0==_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x222)]){if(_0x40c7e0[_0x476f31(0x23c)][0x0][_0x476f31(0x1db)]){const _0x7a36c5=_0x4385af(_0x476f31(0x2cb),_0x40c7e0[_0x476f31(0x23c)][0x0][_0x476f31(0x1db)],_0x185cdd[_0x476f31(0x20d)]);_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2d7)](_0x7a36c5[_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2d7)](_0x7a36c5[_0x476f31(0x23f)](!0x0)),_0x7a36c5[_0x476f31(0x269)]&&(_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x7a36c5[_0x476f31(0x269)][_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x7a36c5[_0x476f31(0x269)][_0x476f31(0x23f)](!0x0)));}else{const _0x33bd4b=_0x185cdd[_0x476f31(0x20d)][_0x476f31(0x20b)][0x0];if(!_0x33bd4b)return null;_0xf21cd8[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x33bd4b[_0x476f31(0x23f)](!0x0)),_0x3feefd[_0x476f31(0x20b)][_0x476f31(0x2f2)](_0x33bd4b[_0x476f31(0x23f)](!0x0));}}const _0x2e01aa=_0x1cb361[_0x476f31(0x1d0)](),_0x455fe8=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x2e01aa[_0x476f31(0x243)]),_0x31728b=_0x31bd3e(_0xf21cd8),_0x482ce1=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x31728b),_0x23d28d=_0x3177df[_0x476f31(0x30e)][_0x476f31(0x21e)](_0x31728b),_0x369414=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x2a7)](_0x482ce1,0x0),_0x1ae19a=_0x31bd3e(_0x3feefd),_0x2682f0={'anchor':_0x369414,'markDeletions':!0x1},_0x452fab=_0x3177df[_0x476f31(0x27a)][_0x476f31(0x2fd)](_0x283dfd)[_0x476f31(0x2d4)](_0x31728b,_0x1ae19a,_0x2682f0)[_0x476f31(0x1e9)]();if(!_0x452fab[_0x476f31(0x222)])return null;_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x2c9)](_0x15fa09=>{const _0x192f39=_0x476f31;for(const _0x5281bb of _0x452fab)if(_0x192f39(0x278)==_0x5281bb[_0x192f39(0x2ad)]){const _0x268945=_0x5281bb[_0x192f39(0x2d1)],_0x5a8f4b=_0x5281bb[_0x192f39(0x2c4)],_0x1aea05=new _0x201cc2(_0x268945,_0x5a8f4b);_0x15fa09[_0x192f39(0x275)][_0x192f39(0x2b9)](_0x1aea05),_0x3177df[_0x192f39(0x2d3)][_0x192f39(0x28e)](_0x1aea05);}else _0x5281bb[_0x192f39(0x234)]=null,_0x5281bb[_0x192f39(0x2b0)]=!0x1,_0x15fa09[_0x192f39(0x275)][_0x192f39(0x2b9)](_0x5281bb),_0x3177df[_0x192f39(0x2d3)][_0x192f39(0x28e)](_0x5281bb);});const _0x30f351=_0x3d4c72(_0x3177df,_0x452fab,_0x482ce1);_0x4af0eb(_0x3177df[_0x476f31(0x2d3)],_0x30f351);const _0x550d1c=_0x30f351[_0x476f31(0x28c)]()[_0x476f31(0x29e)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x41c423=_0x30f351[_0x476f31(0x28c)]()[_0x476f31(0x307)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x4cbdcb=[];let _0x2b6cf5=_0x482ce1,_0x3eac81=_0x23d28d;for(let _0x567337=0x0;_0x567337<_0x41c423[_0x476f31(0x222)];_0x567337++){const _0x5679b9=_0x2b6cf5[_0x476f31(0x301)]-_0x41c423[_0x567337];_0x4cbdcb[_0x567337]=_0x3eac81[_0x476f31(0x301)]-_0x5679b9,_0x2b6cf5=_0x2b6cf5[_0x476f31(0x311)](_0x41c423[_0x567337]),_0x3eac81=_0x3eac81[_0x476f31(0x311)](_0x4cbdcb[_0x567337]);}const _0x5ea190=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22f)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x23d28d,_0x550d1c),_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x23d28d,_0x4cbdcb)),_0x1d6cc2=_0x23d28d[_0x476f31(0x219)](0x0)[_0x476f31(0x205)](_0x1c5ada),_0x20f3e5=Array[_0x476f31(0x27b)](_0x455fe8[_0x476f31(0x2bd)]())[_0x476f31(0x305)](_0x7535a1=>_0x7535a1[_0x476f31(0x205)](_0x1c5ada)==_0x1d6cc2)[_0x476f31(0x25d)](),_0x412086=_0x5ea190[_0x476f31(0x29e)][_0x476f31(0x1f8)][_0x476f31(0x2af)](),_0x17b365=_0x5ea190[_0x476f31(0x307)][_0x476f31(0x1f8)][_0x476f31(0x2af)]();_0x412086[0x0]=_0x20f3e5[0x0]+_0x412086[0x0],_0x17b365[0x0]=_0x20f3e5[0x0]+_0x17b365[0x0];let _0x84e0a0=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22f)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1fa)](),_0x412086),_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x22c)](_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1fa)](),_0x17b365));const _0x2cbc30=_0x3177df[_0x476f31(0x2d3)][_0x476f31(0x21b)][_0x476f31(0x1ef)][_0x476f31(0x1e9)](_0x2e01aa[_0x476f31(0x2db)]);for(const _0x1080e4 of _0x2cbc30)_0x84e0a0=_0x241e0d[_0x476f31(0x263)](_0x84e0a0[_0x476f31(0x230)](_0x1080e4));return{'range':_0x84e0a0,'previousIndex':_0x2b7f56,'nextIndex':_0x426470,'currentIndex':_0x1806ad};}[_0x49c5b2(0x1f6)](_0x1e2db0){const _0x51b07d=_0x49c5b2;if(!_0x1e2db0[_0x51b07d(0x27a)][_0x51b07d(0x21f)](_0x51b07d(0x1e4)))return;const _0x3404a0=_0x1e2db0[_0x51b07d(0x1f0)][_0x51b07d(0x2fd)](_0x51b07d(0x2a4)),_0x5419da=_0x1e2db0[_0x51b07d(0x1f0)][_0x51b07d(0x2fd)](_0x51b07d(0x270));this[_0x51b07d(0x2c3)](_0x3404a0,_0x51b07d(0x1e8),(_0x567aee,_0x519dbe,_0x17bae1)=>{const _0x345194=_0x51b07d,_0x44a887=this[_0x345194(0x211)][_0x345194(0x2fd)](_0x519dbe);if(!_0x44a887)return;const _0x1ba3a3=this[_0x345194(0x2c2)][_0x345194(0x1c5)](_0x44a887[_0x345194(0x1de)])[_0x345194(0x29a)](_0x44a887[_0x345194(0x22a)]);_0x44a887[_0x345194(0x2b6)][_0x345194(0x2aa)](_0xc0032e=>_0x1ba3a3[_0x345194(0x2a9)](_0xc0032e,_0x345194(0x212))),this[_0x345194(0x211)][_0x345194(0x1cb)](_0x519dbe),this[_0x345194(0x211)][_0x345194(0x2f5)](_0x17bae1,_0x44a887);}),this[_0x51b07d(0x2c3)](_0x5419da,_0x51b07d(0x1e8),(_0x5b6e9a,_0x2ce53c,_0x56f336)=>{const _0x274cbf=_0x51b07d,_0x26f72e=this[_0x274cbf(0x211)][_0x274cbf(0x2fd)](_0x2ce53c);if(!_0x26f72e)return;const _0x3ac80d=this[_0x274cbf(0x2c2)][_0x274cbf(0x1c5)](_0x26f72e[_0x274cbf(0x1de)])[_0x274cbf(0x29a)](_0x26f72e[_0x274cbf(0x22a)]);_0x26f72e[_0x274cbf(0x2b6)][_0x274cbf(0x2aa)](_0x1d8c5b=>_0x3ac80d[_0x274cbf(0x2a9)](_0x1d8c5b,_0x274cbf(0x24c))),this[_0x274cbf(0x211)][_0x274cbf(0x1cb)](_0x2ce53c),this[_0x274cbf(0x211)][_0x274cbf(0x2f5)](_0x56f336,_0x26f72e);});}async[_0x49c5b2(0x1cf)](_0x5a08a5){const _0x4c92ae=_0x49c5b2;this[_0x4c92ae(0x2ec)][_0x4c92ae(0x27a)][_0x4c92ae(0x2fd)](_0x555cbc)[_0x4c92ae(0x25e)](),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x21c)](_0x4c92ae(0x259)),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x23d)](!0x0),await this[_0x4c92ae(0x2d8)]();try{const _0x3371fe=this[_0x4c92ae(0x2ec)][_0x4c92ae(0x27a)][_0x4c92ae(0x2fd)](_0x4952f1);this[_0x4c92ae(0x2c8)]('\x20'),_0x3371fe[_0x4c92ae(0x218)][_0x4c92ae(0x29d)](_0x4c92ae(0x237)),await this[_0x4c92ae(0x1fc)](_0x5a08a5);const {sessionId:_0xf4a7c1}=this[_0x4c92ae(0x216)][_0x4c92ae(0x312)]();await this[_0x4c92ae(0x2c2)][_0x4c92ae(0x2ab)](_0x5a08a5,_0xf4a7c1),this[_0x4c92ae(0x2c2)][_0x4c92ae(0x1eb)]()&&this[_0x4c92ae(0x2c2)][_0x4c92ae(0x1fe)](_0xd7d1f7(this[_0x4c92ae(0x2ec)][_0x4c92ae(0x1ce)],_0x4c92ae(0x23a)));}catch(_0x3e582a){console[_0x4c92ae(0x207)](_0x4c92ae(0x26a),_0x3e582a);}finally{this[_0x4c92ae(0x1e3)][_0x4c92ae(0x21c)](_0x4c92ae(0x249)),this[_0x4c92ae(0x1e3)][_0x4c92ae(0x23d)](!0x1);}}[_0x49c5b2(0x310)](_0x520027){const _0x59b9dc=_0x49c5b2;this[_0x59b9dc(0x2c2)]['id']===_0x520027&&this[_0x59b9dc(0x1fc)]();}async[_0x49c5b2(0x26b)](){const _0x21d1ee=_0x49c5b2,_0x9a1a61=this[_0x21d1ee(0x216)][_0x21d1ee(0x1df)]();this[_0x21d1ee(0x2c2)]?.[_0x21d1ee(0x2d5)](_0x9a1a61),this[_0x21d1ee(0x2c2)]?.[_0x21d1ee(0x1fe)](_0xd7d1f7(this[_0x21d1ee(0x2ec)][_0x21d1ee(0x1ce)],_0x21d1ee(0x23a)));}[_0x49c5b2(0x1f9)](){const _0x598c2d=_0x49c5b2;this[_0x598c2d(0x2c2)]?.[_0x598c2d(0x2c5)]();}[_0x49c5b2(0x283)](){const _0x5bf878=_0x49c5b2;this[_0x5bf878(0x1e3)][_0x5bf878(0x283)]();}async[_0x49c5b2(0x286)](){const _0x5c76a3=_0x49c5b2;await this[_0x5c76a3(0x1fc)]();}async[_0x49c5b2(0x1d1)]({message:_0x501a02,quickActionData:_0x1652bc}){const _0x408b57=_0x49c5b2;await this[_0x408b57(0x2ce)]({'userMessage':_0x501a02,'quickActionData':_0x1652bc});}[_0x49c5b2(0x26f)](){const _0x973db5=_0x49c5b2,_0x188c73=this[_0x973db5(0x2ec)][_0x973db5(0x2c7)][_0x973db5(0x2fd)](_0x973db5(0x209));if(!_0x188c73)throw new _0x586d94(_0x973db5(0x232),this);return _0x188c73;}async[_0x49c5b2(0x1fc)](_0x4c1839){const _0xdddbda=_0x49c5b2,_0x158d30=this[_0xdddbda(0x2ec)][_0xdddbda(0x27a)][_0xdddbda(0x2fd)](_0x555cbc);let _0x374f37;_0x158d30[_0xdddbda(0x30c)]&&_0x158d30[_0xdddbda(0x25e)](),_0x374f37=_0x4c1839||!this[_0xdddbda(0x2c2)]?this[_0xdddbda(0x2ec)][_0xdddbda(0x2c7)][_0xdddbda(0x2fd)](_0xdddbda(0x1dc)):this[_0xdddbda(0x2c2)][_0xdddbda(0x260)]['id'],await this[_0xdddbda(0x2d8)]();const _0x5efc99=this[_0xdddbda(0x26f)](),_0x1e92ce=_0x4c1839||_0x1d0026();this[_0xdddbda(0x2c2)]=new _0x3e2f1d({'connector':this[_0xdddbda(0x297)],'chatModels':this[_0xdddbda(0x1f1)],'defaultModelId':_0x374f37,'conversationId':_0x1e92ce,'group':_0x5efc99,'getEditor':()=>_0x1e1f26(this[_0xdddbda(0x2ec)])}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2d6),(_0x18b3e2,_0x16b700)=>{const _0xedba9b=_0xdddbda;_0x16b700[_0xedba9b(0x248)]=this[_0xedba9b(0x21a)](_0x16b700[_0xedba9b(0x248)],this[_0xedba9b(0x2ec)][_0xedba9b(0x2c7)][_0xedba9b(0x2fd)](_0xedba9b(0x27d))),this[_0xedba9b(0x1e3)][_0xedba9b(0x204)](_0x16b700),this[_0xedba9b(0x1e3)][_0xedba9b(0x2ae)](),this[_0xedba9b(0x1e3)][_0xedba9b(0x2e7)](),this[_0xedba9b(0x1e3)][_0xedba9b(0x2f1)](),_0x4c1839||(this[_0xedba9b(0x1e3)][_0xedba9b(0x288)](),this[_0xedba9b(0x2c2)]?.[_0xedba9b(0x1fe)](_0xd7d1f7(this[_0xedba9b(0x2ec)][_0xedba9b(0x1ce)],_0xedba9b(0x23a))));}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x267),(_0x42a25c,_0x20b2be)=>{const _0x32d28a=_0xdddbda;this[_0x32d28a(0x1e3)][_0x32d28a(0x2e0)](_0x20b2be[_0x32d28a(0x2e4)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x256),(_0x11f4dd,_0x2a6787)=>{const _0x1d526c=_0xdddbda;this[_0x1d526c(0x1e3)][_0x1d526c(0x20c)](_0x2a6787),this[_0x1d526c(0x1e3)][_0x1d526c(0x1fb)](_0x2a6787);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x287),(_0x2e1377,_0x3757f4)=>{const _0x48ed6a=_0xdddbda;this[_0x48ed6a(0x1e3)][_0x48ed6a(0x28f)](_0x3757f4);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x20a),async()=>{const _0x25abc4=_0xdddbda;await this[_0x25abc4(0x1e3)][_0x25abc4(0x282)]();}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x229),(_0x2088cb,_0x432b3b)=>{const _0x5cc844=_0xdddbda;this[_0x5cc844(0x1e3)][_0x5cc844(0x25b)](_0x432b3b['id']);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x226),(_0xa66cb1,_0x2da37a,_0x48e010)=>{const _0x17f8d1=_0xdddbda;this[_0x17f8d1(0x2c8)](_0x2da37a,_0x48e010);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x250),(_0x4dd6d5,_0x82dfdd)=>{const _0x585e5d=_0xdddbda;this[_0x585e5d(0x1e3)][_0x585e5d(0x2b7)]({'isVisible':!0x0,'id':_0x82dfdd[_0x585e5d(0x1de)]}),_0x585e5d(0x246)===_0x82dfdd[_0x585e5d(0x2ad)]?this[_0x585e5d(0x1e3)][_0x585e5d(0x2fe)](_0x82dfdd):this[_0x585e5d(0x1e3)][_0x585e5d(0x1c6)](_0x82dfdd);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x265),async(_0x2af633,_0x457ae7,_0x47261a)=>{const _0x183548=_0xdddbda;await this[_0x183548(0x27f)]({'reply':_0x457ae7,'changeGroups':_0x47261a});}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x214),(_0x4788d0,{reply:_0x520a31,index:_0x17a7c3,state:_0x294631})=>{const _0x3341ea=_0xdddbda;this[_0x3341ea(0x1e3)][_0x3341ea(0x306)]({'id':_0x520a31['id'],'index':_0x17a7c3,'state':_0x294631});}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x208),(_0x1e1f65,_0x5b292a)=>{const _0x6f4626=_0xdddbda;if(this[_0x6f4626(0x1e3)][_0x6f4626(0x24b)](_0x5b292a[_0x6f4626(0x2ee)],_0x5b292a[_0x6f4626(0x262)]),_0x6f4626(0x1d9)===_0x5b292a[_0x6f4626(0x2ee)][_0x6f4626(0x2ad)]){const _0x4362c0=[..._0x1e1f26(this[_0x6f4626(0x2ec)])[_0x6f4626(0x2d3)][_0x6f4626(0x21b)][_0x6f4626(0x1d9)][_0x6f4626(0x30b)]()];this[_0x6f4626(0x216)][_0x6f4626(0x300)](_0x4362c0,_0x6f4626(0x295)+this[_0x6f4626(0x2c2)]?.['id']);}}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2cc),(_0xa50789,_0x31a106)=>{const _0x36afd6=_0xdddbda;this[_0x36afd6(0x1e3)][_0x36afd6(0x239)](_0x31a106[_0x36afd6(0x289)]),_0x36afd6(0x2fa)==_0x31a106[_0x36afd6(0x289)]&&this[_0x36afd6(0x1f9)](),_0x36afd6(0x1d9)===_0x31a106[_0x36afd6(0x2ad)]&&this[_0x36afd6(0x216)][_0x36afd6(0x241)](_0x36afd6(0x295)+this[_0x36afd6(0x2c2)]?.['id']);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x1d7),(_0x46be19,_0x3a2326)=>{const _0x15e92c=_0xdddbda;this[_0x15e92c(0x1e3)][_0x15e92c(0x28a)](_0x3a2326[_0x15e92c(0x2ee)][_0x15e92c(0x289)],_0x3a2326[_0x15e92c(0x262)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x21d),(_0x39e9d4,_0x540dbc)=>{const _0x2f15bb=_0xdddbda;this[_0x2f15bb(0x1e3)][_0x2f15bb(0x2bc)](_0x540dbc[_0x2f15bb(0x2ba)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2c1),(_0x40033a,_0x402996)=>{const _0x460aca=_0xdddbda;this[_0x460aca(0x1e3)][_0x460aca(0x276)](_0x402996[_0x460aca(0x1c7)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x304),(_0x64b492,_0x456f9b)=>{const _0x32713c=_0xdddbda;this[_0x32713c(0x1e3)][_0x32713c(0x2ef)](_0x456f9b[_0x32713c(0x2a0)],_0x456f9b[_0x32713c(0x22b)],_0x456f9b[_0x32713c(0x271)],_0x456f9b[_0x32713c(0x308)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2c6),(_0x49d117,_0x10be09)=>{const _0x2bf48f=_0xdddbda;this[_0x2bf48f(0x1e3)][_0x2bf48f(0x228)](_0x10be09[_0x2bf48f(0x2a0)],_0x10be09[_0x2bf48f(0x28b)],_0x10be09[_0x2bf48f(0x266)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x2bb),(_0x2b6295,_0x7c865c)=>{const _0x34895c=_0xdddbda;this[_0x34895c(0x1e3)][_0x34895c(0x1e7)](_0x7c865c);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x215),(_0x573378,_0x5185cb)=>{const _0x42aa4e=_0xdddbda;this[_0x42aa4e(0x1e3)][_0x42aa4e(0x1dd)](_0x5185cb[_0x42aa4e(0x260)],_0x5185cb[_0x42aa4e(0x2b4)]);}),this[_0xdddbda(0x2c2)]['on'](_0xdddbda(0x207),(_0x1a3016,{error:_0x249fd6,interactionId:_0x1a610b,fileName:_0x12081f,url:_0x1b8215,sourceId:_0x20376c,sourceLabel:_0x3a63bd})=>{const _0x425dc1=_0xdddbda,_0x403298=_0x1a610b?_0x1a610b+':'+_0x1d0026():_0x1d0026();_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x292))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2b8)]({'staticMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x1d4)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x1ca))||_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x268))?(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2d2)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x280))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x279),_0x12081f),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x1f5))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x261),_0x1b8215),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x2fc))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x26e)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x25a))?this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2dd)),'id':_0x403298}):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x201))?(_0x20376c&&this[_0x425dc1(0x1e3)][_0x425dc1(0x251)](_0x20376c),this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x1e6),_0x3a63bd||_0x425dc1(0x22b)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):_0x249fd6[_0x425dc1(0x27c)][_0x425dc1(0x2f0)](_0x425dc1(0x2a8))?(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x2e1)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6)):(this[_0x425dc1(0x1e3)][_0x425dc1(0x2be)]({'errorMessage':_0xd7d1f7(this[_0x425dc1(0x2ec)][_0x425dc1(0x1ce)],_0x425dc1(0x290)),'id':_0x403298}),this[_0x425dc1(0x2f3)](_0x249fd6));}),await this[_0xdddbda(0x2c2)][_0xdddbda(0x233)](this[_0xdddbda(0x2ec)][_0xdddbda(0x2c7)][_0xdddbda(0x2fd)](_0xdddbda(0x244))),_0x4c1839||await this[_0xdddbda(0x2c2)][_0xdddbda(0x29e)]();}async[_0x49c5b2(0x2ce)]({userMessage:_0x12ef97,quickActionData:_0x445ad8}){const _0x54a78d=_0x49c5b2;if(!this[_0x54a78d(0x2c2)])throw new _0x586d94(_0x54a78d(0x27e));this[_0x54a78d(0x2c2)][_0x54a78d(0x1e5)]()&&await this[_0x54a78d(0x2c2)][_0x54a78d(0x2e3)](this[_0x54a78d(0x216)][_0x54a78d(0x312)]()),this[_0x54a78d(0x2c2)]['id']&&this[_0x54a78d(0x2c2)][_0x54a78d(0x273)]&&await this[_0x54a78d(0x2c2)][_0x54a78d(0x30d)]({'userMessage':_0x12ef97,'quickActionData':_0x445ad8}),this[_0x54a78d(0x20f)]();}[_0x49c5b2(0x20f)](){const _0x1e4bac=_0x49c5b2,_0x1e9e36=_0x1e1f26(this[_0x1e4bac(0x2ec)])[_0x1e4bac(0x2d3)],_0xd9739a=Array[_0x1e4bac(0x27b)](_0x1e9e36[_0x1e4bac(0x210)][_0x1e4bac(0x1e1)](_0x2c9782));_0x1e9e36[_0x1e4bac(0x2c9)](_0x56685e=>{const _0x47beed=_0x1e4bac;_0xd9739a[_0x47beed(0x2aa)](_0x4e65af=>_0x56685e[_0x47beed(0x2e5)](_0x4e65af));});}[_0x49c5b2(0x309)](){const _0x5412f1=_0x49c5b2;console[_0x5412f1(0x1ec)](_0x5412f1(0x1fd));}[_0x49c5b2(0x2a1)](_0x407fcc){const _0x1686d2=_0x49c5b2;this[_0x1686d2(0x1e3)][_0x1686d2(0x20e)](_0x407fcc);}[_0x49c5b2(0x2f3)](_0x498e6a){const _0x55a7c8=_0x49c5b2;_0xdb113b(_0x498e6a[_0x55a7c8(0x27c)]);}[_0x49c5b2(0x1cc)](_0x53ac81){const _0x4fd772=_0x49c5b2;this[_0x4fd772(0x2c2)]?.[_0x4fd772(0x1c9)](_0x53ac81);}[_0x49c5b2(0x206)](){const _0x4d9b2f=_0x49c5b2;this[_0x4d9b2f(0x2c2)]?.[_0x4d9b2f(0x2de)]();}[_0x49c5b2(0x299)](){const _0x1f2eff=_0x49c5b2;this[_0x1f2eff(0x2c2)]?.[_0x1f2eff(0x231)]();}[_0x49c5b2(0x1da)](_0x59824e){const _0xd957a3=_0x49c5b2,[_0x179fe6,_0x15eadf]=_0x59824e[_0xd957a3(0x1d6)](':'),_0x30663b=this[_0xd957a3(0x2c2)][_0xd957a3(0x1c5)](_0x179fe6),_0x2bc6c3=_0x30663b[_0xd957a3(0x29a)](_0x15eadf);return{'interaction':_0x30663b,'reply':_0x2bc6c3};}[_0x49c5b2(0x264)](_0x257a8a,_0x368638=!0x1){const _0x25e647=_0x49c5b2,_0x508bf0=_0x1e1f26(this[_0x25e647(0x2ec)]),_0xfbb6f4={'target':_0x508bf0[_0x25e647(0x281)][_0x25e647(0x218)][_0x25e647(0x235)][_0x25e647(0x22e)](_0x508bf0[_0x25e647(0x281)][_0x25e647(0x1d3)][_0x25e647(0x2ca)](_0x257a8a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x368638};_0x368638&&(_0xfbb6f4[_0x25e647(0x1f3)]=!0x0),_0xde20d2(_0xfbb6f4);}[_0x49c5b2(0x2c8)](_0x234b2b,_0xaba79a=!0x1){const _0x2a970d=_0x49c5b2;this[_0x2a970d(0x1e3)][_0x2a970d(0x226)](_0x234b2b||_0xd7d1f7(this[_0x2a970d(0x2ec)][_0x2a970d(0x1ce)],_0x2a970d(0x22d)),_0xaba79a);}[_0x49c5b2(0x21a)](_0x14cda8,_0xc7693e){const _0x20e2b8=_0x49c5b2;let _0x362f97;if(_0xc7693e){_0x362f97=[];const _0x41e920=_0x20e2b8(0x2da)==typeof _0xc7693e?[_0xc7693e[_0x20e2b8(0x200)]()]:_0xc7693e[_0x20e2b8(0x227)](_0x55d3e3=>_0x55d3e3[_0x20e2b8(0x200)]());for(const _0x5787a1 of _0x41e920)for(const _0x19c935 of _0x14cda8)(_0x19c935['id'][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935[_0x20e2b8(0x28d)][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935[_0x20e2b8(0x2cf)][_0x20e2b8(0x200)]()===_0x5787a1||_0x19c935['id'][_0x20e2b8(0x200)]()[_0x20e2b8(0x2f0)](_0x5787a1))&&_0x362f97[_0x20e2b8(0x2f2)](_0x19c935);}else _0x362f97=_0x14cda8;return _0x362f97;}async[_0x49c5b2(0x27f)]({reply:_0x15ddf9,changeGroups:_0x25e719,renderingStrategy:_0xc4cb7b}){const _0x3db227=_0x49c5b2,{id:_0x254778,isDone:_0x50a28b,type:_0x58cfea,parsedContent:_0xdaf718}=_0x15ddf9;if(_0x3db227(0x2f6)===_0x58cfea){const _0x382be3=_0x1e1f26(this[_0x3db227(0x2ec)]),_0x253627=_0x68d6dc({'editor':_0x382be3,'showDiff':this[_0x3db227(0x1e3)][_0x3db227(0x272)],'changeGroups':_0x25e719,'documentContextContent':_0x15ddf9[_0x3db227(0x20d)]});await this[_0x3db227(0x1e3)][_0x3db227(0x1ff)]({'id':_0x254778,'parts':_0x253627,'renderingStrategy':_0xc4cb7b,'isDone':_0x50a28b});}else _0x3db227(0x246)===_0x58cfea&&await this[_0x3db227(0x1e3)][_0x3db227(0x2a3)]({'id':_0x254778,'parsedContent':_0xdaf718,'renderingStrategy':_0xc4cb7b,'isDone':_0x50a28b});_0x50a28b&&_0x15ddf9[_0x3db227(0x224)][_0x3db227(0x222)]>0x0&&this[_0x3db227(0x1e3)][_0x3db227(0x302)](_0x254778,_0x15ddf9[_0x3db227(0x224)]);}async[_0x49c5b2(0x2d8)](){const _0xda8c02=_0x49c5b2,_0x370ce4=this[_0xda8c02(0x2c2)]?.[_0xda8c02(0x2f4)];_0x370ce4&&(_0x370ce4[_0xda8c02(0x2b1)](),this[_0xda8c02(0x1e3)][_0xda8c02(0x2e8)](_0x370ce4));}async[_0x49c5b2(0x257)](){const _0x947e6e=_0x49c5b2,_0x55b6e0=this[_0x947e6e(0x2c2)]?.[_0x947e6e(0x2f4)];if(_0x55b6e0){for await(const _0x23c07c of _0x55b6e0[_0x947e6e(0x221)])await this[_0x947e6e(0x27f)]({'reply':_0x23c07c,'changeGroups':_0x23c07c[_0x947e6e(0x255)],'renderingStrategy':_0x947e6e(0x259)});}}}
|
|
23
|
+
const _0xd34f13=_0x3dfb;(function(_0x300620,_0x1d575c){const _0x19bd51=_0x3dfb,_0x4b16d2=_0x300620();while(!![]){try{const _0x593a17=-parseInt(_0x19bd51(0x265))/0x1+-parseInt(_0x19bd51(0x231))/0x2+parseInt(_0x19bd51(0x165))/0x3+-parseInt(_0x19bd51(0x19a))/0x4+parseInt(_0x19bd51(0x201))/0x5*(-parseInt(_0x19bd51(0x267))/0x6)+parseInt(_0x19bd51(0x25d))/0x7+parseInt(_0x19bd51(0x23c))/0x8*(parseInt(_0x19bd51(0x1f2))/0x9);if(_0x593a17===_0x1d575c)break;else _0x4b16d2['push'](_0x4b16d2['shift']());}catch(_0x547a0d){_0x4b16d2['push'](_0x4b16d2['shift']());}}}(_0x23c1,0xb4d38));import{ContextPlugin as _0x1a2899,Editor as _0x3ebc31}from'ckeditor5/src/core.js';import{CKEditorError as _0x4b6396,logError as _0x422bdc,scrollViewportToShowTarget as _0x4020b8,uid as _0x23ccda}from'ckeditor5/src/utils.js';import{AIConnector as _0x38fbe1}from'../aicore/aiconnector.js';import{AITabs as _0x5cd7d6}from'../aitabs/aitabs.js';import{AIChatConversation as _0x35b316}from'./model/aichatconversation.js';import{getTranslation as _0x3c888f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5d9f5d}from'../aicore/aiediting.js';import{AIChatModels as _0x4284e4}from'./model/aichatmodels.js';import{getEditorFromContext as _0x24a6e8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x15f896,DATA_ID_MODEL_ATTRIBUTE as _0x14590e}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x48833e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3fda17,getMinimalSelection as _0x5bddc0,getSuggestionPartsFromReply as _0x2aabc7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x34695c,_DetachOperation as _0x252c87}from'ckeditor5/src/engine.js';import{findOne as _0x3eee92,getAttribute as _0x3ef17b,serialize as _0x4adf71,Document as _0x3c4540,findByAttribute as _0x232a5d}from'../aicore/utils/htmlparser.js';function _0x3dfb(_0x158538,_0x5e2520){const _0x23c170=_0x23c1();return _0x3dfb=function(_0x3dfb92,_0x42363d){_0x3dfb92=_0x3dfb92-0x14e;let _0xc891cc=_0x23c170[_0x3dfb92];return _0xc891cc;},_0x3dfb(_0x158538,_0x5e2520);}import{IconAI as _0x1cab71}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4bf453}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4c5548}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1a2899{[_0xd34f13(0x15b)];[_0xd34f13(0x223)];[_0xd34f13(0x1df)];[_0xd34f13(0x19f)];[_0xd34f13(0x252)]=new Map();[_0xd34f13(0x1bc)]=null;[_0xd34f13(0x246)]=!0x1;static get[_0xd34f13(0x178)](){return[_0x38fbe1,_0x4c5548,_0x15f896];}static get[_0xd34f13(0x273)](){const _0x43b0a6=_0xd34f13;return _0x43b0a6(0x154);}static get[_0xd34f13(0x1bf)](){return!0x0;}static get[_0xd34f13(0x18f)](){return!0x0;}[_0xd34f13(0x204)](){const _0x4e3e67=_0xd34f13;this[_0x4e3e67(0x223)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x19e)),this[_0x4e3e67(0x1df)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1c4)),this[_0x4e3e67(0x15b)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1a7)),this[_0x4e3e67(0x19f)]=new _0x4284e4({'connector':this[_0x4e3e67(0x223)]});const _0x3e58dd=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x156));this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x297),()=>{const _0x5f195b=_0x4e3e67;this[_0x5f195b(0x172)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x264),(_0x402d69,_0x45f035)=>{const _0x456742=_0x4e3e67;this[_0x456742(0x24d)]({'userMessage':_0x45f035});}),this[_0x4e3e67(0x1a5)](_0x3e58dd,_0x4e3e67(0x1e2),(_0x36d481,_0x94fe99)=>{const _0xce1a8d=_0x4e3e67;this[_0xce1a8d(0x1f4)](_0x94fe99);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17b),()=>{const _0x2ab330=_0x4e3e67;_0x3e58dd[_0x2ab330(0x1e5)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x174),async()=>{const _0x4bc830=_0x4e3e67;await this[_0x4bc830(0x1cd)](),await this[_0x4bc830(0x21f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1ab),()=>{const _0x326338=_0x4e3e67;this[_0x326338(0x26c)]?.[_0x326338(0x245)](_0x3c888f(this[_0x326338(0x216)][_0x326338(0x18a)],_0x326338(0x263)));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x25e),(_0x196ea6,_0x5e44ce)=>{const _0x131113=_0x4e3e67;this[_0x131113(0x26c)]?.[_0x131113(0x286)](Array[_0x131113(0x1f5)](_0x5e44ce));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1c5),(_0x1ccaf1,_0x401afb)=>{const _0x47823f=_0x4e3e67;this[_0x47823f(0x26c)]?.[_0x47823f(0x1c5)](_0x401afb);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x194),(_0x4d88f7,_0x387b1f)=>{const _0x35bc3c=_0x4e3e67;this[_0x35bc3c(0x26c)]?.[_0x35bc3c(0x194)](_0x387b1f[_0x35bc3c(0x1bb)],_0x387b1f[_0x35bc3c(0x1bd)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x27a),(_0x5773da,_0x50e1e9)=>{const _0x342f52=_0x4e3e67;this[_0x342f52(0x1d9)](_0x50e1e9);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1a6),(_0x1f9c1c,_0x42a859)=>{const _0x1e5338=_0x4e3e67;this[_0x1e5338(0x26c)]?.[_0x1e5338(0x1a6)](_0x42a859[_0x1e5338(0x1dd)],_0x42a859[_0x1e5338(0x272)],_0x42a859[_0x1e5338(0x211)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x181),()=>{const _0x271083=_0x4e3e67;this[_0x271083(0x17a)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x279),()=>{const _0xdbf6fe=_0x4e3e67;this[_0xdbf6fe(0x14f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x177),(_0x1ddbea,_0x541def)=>{const _0x44dbbd=_0x4e3e67;this[_0x44dbbd(0x26c)]?.[_0x44dbbd(0x1e1)](_0x541def);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d5),(_0x2c0f21,{replyId:_0x34be19})=>{const _0xd2f05d=_0x4e3e67;console[_0xd2f05d(0x21e)](_0xd2f05d(0x212),_0x34be19);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d7),(_0x3ee1e0,{replyId:_0xec8580})=>{const _0x184593=_0x4e3e67;console[_0x184593(0x21e)](_0x184593(0x22d),_0xec8580);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17e),(_0x1e3766,_0x1f9dc2)=>{const _0x4bbdee=_0x4e3e67;this[_0x4bbdee(0x216)][_0x4bbdee(0x243)][_0x4bbdee(0x176)](_0x4c5548)[_0x4bbdee(0x18d)](),this[_0x4bbdee(0x28d)](_0x1f9dc2);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x269),(_0x515e4b,{replyId:_0x439ddf,partIndex:_0x927c60})=>{const _0x2717c8=_0x4e3e67;this[_0x2717c8(0x246)]=this[_0x2717c8(0x1df)][_0x2717c8(0x221)],this[_0x2717c8(0x1c9)](_0x439ddf,_0x927c60);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1be),(_0x31814f,{replyId:_0x5db523,partIndex:_0x31f896})=>{const _0x1973ac=_0x4e3e67,_0x1ded32=this[_0x1973ac(0x184)](_0x5db523,_0x31f896);_0x1ded32&&_0x1973ac(0x240)!=_0x1ded32[_0x1973ac(0x160)][_0x1973ac(0x293)][_0x1973ac(0x23d)]&&this[_0x1973ac(0x15b)][_0x1973ac(0x1da)]([_0x1ded32[_0x1973ac(0x160)]],_0x1973ac(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x26b),()=>{const _0x47a65d=_0x4e3e67;this[_0x47a65d(0x15b)][_0x47a65d(0x1c0)](_0x47a65d(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20c),(_0xcbb27d,_0x280fb8)=>{const _0x1d7bdb=_0x4e3e67;this[_0x1d7bdb(0x216)][_0x1d7bdb(0x243)][_0x1d7bdb(0x176)](_0x4c5548)[_0x1d7bdb(0x18d)](),this[_0x1d7bdb(0x189)](_0x280fb8);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20d),async(_0x29b5ce,_0xf75ac7)=>{const _0x5beb5d=_0x4e3e67,{reply:_0x1a5f69}=this[_0x5beb5d(0x22c)](_0xf75ac7[_0x5beb5d(0x1ef)]),_0x3f385f=_0x24a6e8(this[_0x5beb5d(0x216)]),_0x3fe10b=_0x2aabc7({'editor':_0x3f385f,'changeGroups':_0x1a5f69[_0x5beb5d(0x23b)],'documentContextContent':_0x1a5f69[_0x5beb5d(0x22f)],'showDiff':_0xf75ac7[_0x5beb5d(0x221)]});await this[_0x5beb5d(0x1df)][_0x5beb5d(0x294)]({'id':_0x1a5f69['id'],'parts':_0x3fe10b,'renderingStrategy':_0x5beb5d(0x28e)});}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x287),(_0x4924d5,{replyId:_0x213f44,partIndex:_0x191858})=>{const _0x5f003f=_0x4e3e67;this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x1ef)]==_0x213f44&&this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x29c)]==_0x191858&&this[_0x5f003f(0x216)][_0x5f003f(0x243)][_0x5f003f(0x176)](_0x4c5548)[_0x5f003f(0x18d)]();const {reply:_0x30a3c3}=this[_0x5f003f(0x22c)](_0x213f44);_0x30a3c3[_0x5f003f(0x1b4)](_0x191858,_0x5f003f(0x1d6)),this[_0x5f003f(0x15b)][_0x5f003f(0x1c0)](_0x5f003f(0x23e));});}async[_0xd34f13(0x15d)](){const _0x339c68=_0xd34f13;this[_0x339c68(0x216)]instanceof _0x3ebc31?this[_0x339c68(0x224)](this[_0x339c68(0x216)]):this[_0x339c68(0x1a5)](this[_0x339c68(0x216)][_0x339c68(0x152)],_0x339c68(0x1c2),(_0x13e658,_0x43d53f)=>{const _0x44ada3=_0x339c68;_0x43d53f['on'](_0x44ada3(0x28b),()=>{const _0x3854af=_0x44ada3;this[_0x3854af(0x224)](_0x43d53f);});}),await this[_0x339c68(0x172)]();}[_0xd34f13(0x28d)](_0x236b55){const _0x2fa06a=_0xd34f13,_0x320650=_0x24a6e8(this[_0x2fa06a(0x216)]);if(!_0x320650[_0x2fa06a(0x243)][_0x2fa06a(0x151)](_0x2fa06a(0x209)))return;const _0x17b3a5=this[_0x2fa06a(0x216)][_0x2fa06a(0x243)][_0x2fa06a(0x176)](_0x2fa06a(0x282)),{reply:_0x488b71,interaction:_0x5893b4}=this[_0x2fa06a(0x22c)](_0x236b55[_0x2fa06a(0x1ef)]),_0x26522e=this[_0x2fa06a(0x184)](_0x236b55[_0x2fa06a(0x1ef)],_0x236b55[_0x2fa06a(0x29c)]),_0x2883cf=void 0x0!==_0x236b55[_0x2fa06a(0x29c)]?[_0x488b71[_0x2fa06a(0x23b)][_0x236b55[_0x2fa06a(0x29c)]]]:_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x163)](_0x9dacd9=>_0x2fa06a(0x203)==_0x9dacd9[_0x2fa06a(0x1b7)]),_0x120de1=_0x2883cf[_0x2fa06a(0x1b5)](_0x28c405=>_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x253)](_0x28c405));_0x120de1[_0x2fa06a(0x1aa)](_0x7610b4=>_0x488b71[_0x2fa06a(0x1b4)](_0x7610b4,_0x2fa06a(0x262)));const _0x343c97=_0x48833e({'editor':_0x320650,'reply':_0x488b71,'interaction':_0x5893b4,'groups':_0x2883cf,'transform':!0x0,'documentCompare':_0x17b3a5,'documentCompareOptions':{'anchor':_0x2fa06a(0x1a1),'markDeletions':!0x0}});let _0x150465;_0x26522e&&this[_0x2fa06a(0x1d2)](_0x26522e[_0x2fa06a(0x160)]),_0x320650[_0x2fa06a(0x1a3)][_0x2fa06a(0x1fb)](_0x8259b4=>{const _0x4bb6ab=_0x2fa06a;_0x150465=_0x8259b4[_0x4bb6ab(0x257)],_0x320650[_0x4bb6ab(0x243)][_0x4bb6ab(0x176)](_0x4bb6ab(0x209))[_0x4bb6ab(0x1ac)](_0x343c97),this[_0x4bb6ab(0x15b)][_0x4bb6ab(0x1c0)](_0x4bb6ab(0x23e));}),this[_0x2fa06a(0x252)][_0x2fa06a(0x16f)](_0x150465,{'interactionId':_0x5893b4['id'],'replyId':_0x488b71['id'],'indexes':_0x120de1[_0x2fa06a(0x236)]()});}[_0xd34f13(0x189)](_0x146db5){const _0x2cc18c=_0xd34f13,_0x3bc242=_0x24a6e8(this[_0x2cc18c(0x216)]),_0x21b8f0=this[_0x2cc18c(0x216)][_0x2cc18c(0x243)][_0x2cc18c(0x176)](_0x15f896),{reply:_0x6bb69b,interaction:_0x41122b}=this[_0x2cc18c(0x22c)](_0x146db5[_0x2cc18c(0x1ef)]),_0xe1997f=this[_0x2cc18c(0x184)](_0x146db5[_0x2cc18c(0x1ef)],_0x146db5[_0x2cc18c(0x29c)]),_0x2d5f96=void 0x0!==_0x146db5[_0x2cc18c(0x29c)]?[_0x6bb69b[_0x2cc18c(0x23b)][_0x146db5[_0x2cc18c(0x29c)]]]:_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x163)](_0xb0b1fa=>_0x2cc18c(0x203)==_0xb0b1fa[_0x2cc18c(0x1b7)]),_0x550d4c=_0x2d5f96[_0x2cc18c(0x1b5)](_0x2a8f31=>_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x253)](_0x2a8f31));_0x550d4c[_0x2cc18c(0x1aa)](_0x3d6bae=>_0x6bb69b[_0x2cc18c(0x1b4)](_0x3d6bae,_0x2cc18c(0x262)));const _0x2f0da9=_0x48833e({'editor':_0x3bc242,'reply':_0x6bb69b,'interaction':_0x41122b,'groups':_0x2d5f96,'transform':!0x0,'documentCompare':_0x21b8f0,'documentCompareOptions':{'anchor':_0x2cc18c(0x1a1),'markDeletions':!0x1}});let _0x474b94;_0xe1997f&&this[_0x2cc18c(0x1d2)](_0xe1997f[_0x2cc18c(0x160)]),_0x3bc242[_0x2cc18c(0x1a3)][_0x2cc18c(0x1fb)](_0x508023=>{const _0x515b22=_0x2cc18c;_0x474b94=_0x508023[_0x515b22(0x257)];for(const _0x30488c of _0x2f0da9)_0x30488c[_0x515b22(0x23f)]=_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x29a)][_0x515b22(0x166)],_0x508023[_0x515b22(0x257)][_0x515b22(0x171)](_0x30488c),_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x1cf)](_0x30488c);}),this[_0x2cc18c(0x252)][_0x2cc18c(0x16f)](_0x474b94,{'interactionId':_0x41122b['id'],'replyId':_0x6bb69b['id'],'indexes':_0x550d4c[_0x2cc18c(0x236)]()});}[_0xd34f13(0x1c9)](_0x53128a,_0x10796d){const _0x2f67f2=_0xd34f13,_0x40c0a0=_0x24a6e8(this[_0x2f67f2(0x216)]),_0x16f7d8=this[_0x2f67f2(0x184)](_0x53128a,_0x10796d),_0x57c6f2=this[_0x2f67f2(0x216)][_0x2f67f2(0x243)][_0x2f67f2(0x176)](_0x4c5548);if(!_0x16f7d8)return void _0x57c6f2[_0x2f67f2(0x18d)]();const {range:_0x415a46,currentIndex:_0x1ae69a,previousIndex:_0x5e4fff,nextIndex:_0x2c6467}=_0x16f7d8;if(this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x1ef)]==_0x53128a&&this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x29c)]==_0x1ae69a)return;this[_0x2f67f2(0x1bc)]={'replyId':_0x53128a,'partIndex':_0x1ae69a};const _0x499ae2=new _0x4bf453(_0x40c0a0[_0x2f67f2(0x18a)],{'showDiff':this[_0x2f67f2(0x246)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2f67f2(0x16b)},'hideHeader':!0x0}),{reply:_0x1d1bbb}=this[_0x2f67f2(0x22c)](_0x53128a),_0x4487ab=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x1d1bbb[_0x2f67f2(0x23b)][_0x1ae69a]],'documentContextContent':_0x1d1bbb[_0x2f67f2(0x22f)],'showDiff':this[_0x2f67f2(0x246)]});_0x499ae2[_0x2f67f2(0x270)]({'parts':_0x4487ab,'renderingStrategy':_0x2f67f2(0x28e)});const _0x212116=_0x1ae69a!==_0x5e4fff;this[_0x2f67f2(0x1d2)](_0x415a46,!0x0),_0x57c6f2[_0x2f67f2(0x1ff)]({'index':_0x1ae69a,'title':_0x3c888f(this[_0x2f67f2(0x216)][_0x2f67f2(0x18a)],_0x2f67f2(0x254),(_0x1ae69a+0x1)[_0x2f67f2(0x23a)]()),'icon':_0x1cab71,'mainView':_0x499ae2,'showRotator':_0x212116,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x415a46]}),this[_0x2f67f2(0x1df)][_0x2f67f2(0x155)](_0x53128a,_0x1ae69a),this[_0x2f67f2(0x1a5)](_0x499ae2,_0x2f67f2(0x20d),(_0xddb5aa,{showDiff:_0x217741})=>{const _0xdf34c3=_0x2f67f2;this[_0xdf34c3(0x246)]=_0x217741;const {reply:_0x5ed6bc}=this[_0xdf34c3(0x22c)](_0x53128a),_0x3d1f80=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x5ed6bc[_0xdf34c3(0x23b)][_0x1ae69a]],'documentContextContent':_0x5ed6bc[_0xdf34c3(0x22f)],'showDiff':_0x217741});_0x499ae2[_0xdf34c3(0x270)]({'parts':_0x3d1f80,'renderingStrategy':_0xdf34c3(0x28e)});}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20c),()=>{const _0x277e2b=_0x2f67f2;this[_0x277e2b(0x189)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x277e2b(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x277e2b(0x18d)]();}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x17e),()=>{const _0x4856e8=_0x2f67f2;this[_0x4856e8(0x28d)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x4856e8(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x4856e8(0x18d)]();}),_0x212116&&(this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x196),()=>{const _0x417c69=_0x2f67f2;this[_0x417c69(0x1c9)](_0x53128a,_0x2c6467);}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20f),()=>{const _0x2dba83=_0x2f67f2;this[_0x2dba83(0x1c9)](_0x53128a,_0x5e4fff);})),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x1f3),()=>{const _0x341767=_0x2f67f2;this[_0x341767(0x299)](_0x57c6f2),this[_0x341767(0x299)](_0x499ae2),this[_0x341767(0x1bc)]=null;});}[_0xd34f13(0x184)](_0x1cf80c,_0x2e157e){const _0x513f42=_0xd34f13,_0x54f093=_0x24a6e8(this[_0x513f42(0x216)]),{reply:_0x329e55,interaction:_0xace11c}=this[_0x513f42(0x22c)](_0x1cf80c),_0x114482=_0x329e55[_0x513f42(0x23b)][_0x513f42(0x163)](_0x22cbc2=>_0x513f42(0x203)==_0x22cbc2[_0x513f42(0x1b7)]),_0x141d0f=_0x114482[_0x513f42(0x1b5)](_0x99d181=>_0x329e55[_0x513f42(0x23b)][_0x513f42(0x253)](_0x99d181));void 0x0===_0x2e157e&&(_0x2e157e=_0x141d0f[0x0]);const _0x3bc4b4=_0x141d0f[_0x513f42(0x253)](_0x2e157e);if(-0x1==_0x3bc4b4)return null;const _0x250b4d=0x0==_0x3bc4b4?_0x141d0f[_0x141d0f[_0x513f42(0x26e)]-0x1]:_0x141d0f[_0x3bc4b4-0x1],_0x249539=_0x3bc4b4==_0x141d0f[_0x513f42(0x26e)]-0x1?_0x141d0f[0x0]:_0x141d0f[_0x3bc4b4+0x1],_0x38b0f8=_0x114482[_0x3bc4b4],_0x1857cd=new _0x3c4540([]),_0x19ae2e=new _0x3c4540([]);for(const _0xb59073 of _0x38b0f8[_0x513f42(0x234)])if(_0x513f42(0x1b0)!=_0xb59073[_0x513f42(0x1e4)]&&_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0xb59073[_0x513f42(0x281)][_0x513f42(0x280)](!0x0)),_0x513f42(0x19c)!=_0xb59073[_0x513f42(0x1e4)]){const _0x46c797=_0x3eee92(_0x34ebd4=>_0x3ef17b(_0x34ebd4,_0x513f42(0x271))==_0xb59073['id'],_0x329e55[_0x513f42(0x22f)],!0x0);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x46c797[_0x513f42(0x280)](!0x0));}if(0x0==_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x26e)]){if(_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)]){const _0x9e1811=_0x232a5d(_0x513f42(0x271),_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)],_0x329e55[_0x513f42(0x22f)]);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x9e1811[_0x513f42(0x230)]&&(_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)));}else{const _0x44ce04=_0x329e55[_0x513f42(0x22f)][_0x513f42(0x1f1)][0x0];if(!_0x44ce04)return null;_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0));}}const _0x3e369c=_0xace11c[_0x513f42(0x220)](),_0x5d108e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0x3e369c[_0x513f42(0x247)]),_0xbbc8ee=_0x4adf71(_0x1857cd),_0x55e367=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x57608e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x5274b3=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x188)](_0x55e367,0x0),_0xf01e18=_0x4adf71(_0x19ae2e),_0x1139dc={'anchor':_0x5274b3,'markDeletions':!0x1},_0x1edb67=_0x54f093[_0x513f42(0x243)][_0x513f42(0x176)](_0x15f896)[_0x513f42(0x20a)](_0xbbc8ee,_0xf01e18,_0x1139dc)[_0x513f42(0x16e)]();if(!_0x1edb67[_0x513f42(0x26e)])return null;_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1fb)](_0x55b363=>{const _0x13e203=_0x513f42;for(const _0xa3ffdb of _0x1edb67)if(_0x13e203(0x1b3)==_0xa3ffdb[_0x13e203(0x1e4)]){const _0x6ace33=_0xa3ffdb[_0x13e203(0x1ed)],_0xbec179=_0xa3ffdb[_0x13e203(0x1ce)],_0x2182ec=new _0x252c87(_0x6ace33,_0xbec179);_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0x2182ec),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0x2182ec);}else _0xa3ffdb[_0x13e203(0x23f)]=null,_0xa3ffdb[_0x13e203(0x191)]=!0x1,_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0xa3ffdb),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0xa3ffdb);});const _0x4c4ff9=_0x5bddc0(_0x54f093,_0x1edb67,_0x55e367);_0x3fda17(_0x54f093[_0x513f42(0x1a3)],_0x4c4ff9);const _0x100f89=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x33dff5=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x264965=[];let _0x13ec2c=_0x55e367,_0x170af9=_0x57608e;for(let _0x26ee82=0x0;_0x26ee82<_0x33dff5[_0x513f42(0x26e)];_0x26ee82++){const _0xe83cf7=_0x13ec2c[_0x513f42(0x162)]-_0x33dff5[_0x26ee82];_0x264965[_0x26ee82]=_0x170af9[_0x513f42(0x162)]-_0xe83cf7,_0x13ec2c=_0x13ec2c[_0x513f42(0x175)](_0x33dff5[_0x26ee82]),_0x170af9=_0x170af9[_0x513f42(0x175)](_0x264965[_0x26ee82]);}const _0x17f6e6=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x100f89),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x264965)),_0x54f3a0=_0x57608e[_0x513f42(0x159)](0x0)[_0x513f42(0x24e)](_0x14590e),_0x5a1eb7=Array[_0x513f42(0x1f5)](_0x5d108e[_0x513f42(0x278)]())[_0x513f42(0x27c)](_0x5c8d25=>_0x5c8d25[_0x513f42(0x24e)](_0x14590e)==_0x54f3a0)[_0x513f42(0x222)](),_0x44e259=_0x17f6e6[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x13487b=_0x17f6e6[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)]();_0x44e259[0x0]=_0x5a1eb7[0x0]+_0x44e259[0x0],_0x13487b[0x0]=_0x5a1eb7[0x0]+_0x13487b[0x0];let _0x486d47=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x44e259),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x13487b));const _0x186913=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x237)][_0x513f42(0x16e)](_0x3e369c[_0x513f42(0x166)]);for(const _0x3f1fe9 of _0x186913)_0x486d47=_0x34695c[_0x513f42(0x238)](_0x486d47[_0x513f42(0x1b8)](_0x3f1fe9));return{'range':_0x486d47,'previousIndex':_0x250b4d,'nextIndex':_0x249539,'currentIndex':_0x2e157e};}[_0xd34f13(0x224)](_0x1f540a){const _0x171f26=_0xd34f13;if(!_0x1f540a[_0x171f26(0x243)][_0x171f26(0x151)](_0x171f26(0x249)))return;const _0x8560d5=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x227)),_0x30abee=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x1e6));this[_0x171f26(0x1a5)](_0x8560d5,_0x171f26(0x1dc),(_0x5298b3,_0x1ef2d9,_0x57fce8)=>{const _0x33a029=_0x171f26,_0x43f48e=this[_0x33a029(0x252)][_0x33a029(0x176)](_0x1ef2d9);if(!_0x43f48e)return;const _0x157217=this[_0x33a029(0x26c)][_0x33a029(0x28a)](_0x43f48e[_0x33a029(0x16d)])[_0x33a029(0x164)](_0x43f48e[_0x33a029(0x1ef)]);_0x43f48e[_0x33a029(0x1e7)][_0x33a029(0x1aa)](_0x63d3b8=>_0x157217[_0x33a029(0x1b4)](_0x63d3b8,_0x33a029(0x203))),this[_0x33a029(0x252)][_0x33a029(0x1db)](_0x1ef2d9),this[_0x33a029(0x252)][_0x33a029(0x16f)](_0x57fce8,_0x43f48e);}),this[_0x171f26(0x1a5)](_0x30abee,_0x171f26(0x1dc),(_0x1b8737,_0x421358,_0x1b5ae8)=>{const _0x2cd166=_0x171f26,_0x265784=this[_0x2cd166(0x252)][_0x2cd166(0x176)](_0x421358);if(!_0x265784)return;const _0x9bee13=this[_0x2cd166(0x26c)][_0x2cd166(0x28a)](_0x265784[_0x2cd166(0x16d)])[_0x2cd166(0x164)](_0x265784[_0x2cd166(0x1ef)]);_0x265784[_0x2cd166(0x1e7)][_0x2cd166(0x1aa)](_0x63e3ee=>_0x9bee13[_0x2cd166(0x1b4)](_0x63e3ee,_0x2cd166(0x262))),this[_0x2cd166(0x252)][_0x2cd166(0x1db)](_0x421358),this[_0x2cd166(0x252)][_0x2cd166(0x16f)](_0x1b5ae8,_0x265784);});}async[_0xd34f13(0x1cc)](_0xe4a1e3){const _0x3315d7=_0xd34f13;this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x4c5548)[_0x3315d7(0x18d)](),this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x28e)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x0),await this[_0x3315d7(0x1cd)]();try{const _0xc2c900=this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x5cd7d6);this[_0x3315d7(0x1f7)]('\x20'),_0xc2c900[_0x3315d7(0x1e3)][_0x3315d7(0x15c)](_0x3315d7(0x22e)),await this[_0x3315d7(0x172)](_0xe4a1e3);const {sessionId:_0x2d687b}=this[_0x3315d7(0x15b)][_0x3315d7(0x1c1)]();await this[_0x3315d7(0x26c)][_0x3315d7(0x1c3)](_0xe4a1e3,_0x2d687b),this[_0x3315d7(0x26c)][_0x3315d7(0x199)]()&&this[_0x3315d7(0x26c)][_0x3315d7(0x245)](_0x3c888f(this[_0x3315d7(0x216)][_0x3315d7(0x18a)],_0x3315d7(0x263)));}catch(_0x46a103){console[_0x3315d7(0x275)](_0x3315d7(0x283),_0x46a103);}finally{this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x215)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x1);}}[_0xd34f13(0x20e)](_0x539663){const _0x2ab315=_0xd34f13;this[_0x2ab315(0x26c)]['id']===_0x539663&&this[_0x2ab315(0x172)]();}async[_0xd34f13(0x1eb)](){const _0x49e8cd=_0xd34f13,_0x5925c5=this[_0x49e8cd(0x15b)][_0x49e8cd(0x29b)]();this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x1c7)](_0x5925c5),this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x245)](_0x3c888f(this[_0x49e8cd(0x216)][_0x49e8cd(0x18a)],_0x49e8cd(0x263)));}[_0xd34f13(0x15e)](){const _0x51f54a=_0xd34f13;this[_0x51f54a(0x26c)]?.[_0x51f54a(0x1f6)]();}[_0xd34f13(0x153)](){const _0x3a9400=_0xd34f13;this[_0x3a9400(0x1df)][_0x3a9400(0x153)]();}async[_0xd34f13(0x297)](){const _0x299885=_0xd34f13;await this[_0x299885(0x172)]();}async[_0xd34f13(0x261)]({message:_0x43889e,quickActionData:_0x3b73db}){const _0x220c27=_0xd34f13;await this[_0x220c27(0x24d)]({'userMessage':_0x43889e,'quickActionData':_0x3b73db});}[_0xd34f13(0x26f)](){const _0x4e648b=_0xd34f13,_0xf3a7d8=this[_0x4e648b(0x216)][_0x4e648b(0x168)][_0x4e648b(0x176)](_0x4e648b(0x226));if(!_0xf3a7d8)throw new _0x4b6396(_0x4e648b(0x205),this);return _0xf3a7d8;}async[_0xd34f13(0x172)](_0x55e4be){const _0x415683=_0xd34f13,_0x3f53f7=this[_0x415683(0x216)][_0x415683(0x243)][_0x415683(0x176)](_0x4c5548);let _0x307d64;_0x3f53f7[_0x415683(0x25c)]&&_0x3f53f7[_0x415683(0x18d)](),_0x307d64=_0x55e4be||!this[_0x415683(0x26c)]?this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x25b)):this[_0x415683(0x26c)][_0x415683(0x18e)]['id'],await this[_0x415683(0x1cd)]();const _0x2e056b=this[_0x415683(0x26f)](),_0x19dc73=_0x55e4be||_0x23ccda();this[_0x415683(0x26c)]=new _0x35b316({'connector':this[_0x415683(0x223)],'chatModels':this[_0x415683(0x19f)],'defaultModelId':_0x307d64,'conversationId':_0x19dc73,'group':_0x2e056b,'getEditor':()=>_0x24a6e8(this[_0x415683(0x216)])}),this[_0x415683(0x26c)]['on'](_0x415683(0x251),(_0x59ef55,_0x49ea94)=>{const _0x3326d0=_0x415683;_0x49ea94[_0x3326d0(0x210)]=this[_0x3326d0(0x228)](_0x49ea94[_0x3326d0(0x210)],this[_0x3326d0(0x216)][_0x3326d0(0x168)][_0x3326d0(0x176)](_0x3326d0(0x170))),this[_0x3326d0(0x1df)][_0x3326d0(0x1ae)](_0x49ea94),this[_0x3326d0(0x1df)][_0x3326d0(0x289)](),this[_0x3326d0(0x1df)][_0x3326d0(0x17c)](),this[_0x3326d0(0x1df)][_0x3326d0(0x1ca)](),_0x55e4be||(this[_0x3326d0(0x1df)][_0x3326d0(0x288)](),this[_0x3326d0(0x26c)]?.[_0x3326d0(0x245)](_0x3c888f(this[_0x3326d0(0x216)][_0x3326d0(0x18a)],_0x3326d0(0x263))));}),this[_0x415683(0x26c)]['on'](_0x415683(0x21c),(_0x526168,_0x14c111)=>{const _0x34da3e=_0x415683;this[_0x34da3e(0x1df)][_0x34da3e(0x218)](_0x14c111[_0x34da3e(0x1c6)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x298),(_0x27a954,_0x52544d)=>{const _0x2ac664=_0x415683;this[_0x2ac664(0x1df)][_0x2ac664(0x1f8)](_0x52544d),this[_0x2ac664(0x1df)][_0x2ac664(0x21a)](_0x52544d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x250),(_0x147ef6,_0x2c4fe4)=>{const _0x4b5199=_0x415683;this[_0x4b5199(0x1df)][_0x4b5199(0x24f)](_0x2c4fe4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x256),async()=>{const _0x3afee0=_0x415683;await this[_0x3afee0(0x1df)][_0x3afee0(0x19d)]();}),this[_0x415683(0x26c)]['on'](_0x415683(0x1ee),(_0xd0e201,_0x496e28)=>{const _0x1ea0b5=_0x415683;this[_0x1ea0b5(0x1df)][_0x1ea0b5(0x235)](_0x496e28['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x290),(_0x402224,_0x3fd0f2,_0x5052f4)=>{const _0x529457=_0x415683;this[_0x529457(0x1f7)](_0x3fd0f2,_0x5052f4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1e8),(_0x1c24ea,_0x2663c9)=>{const _0x2f1069=_0x415683;this[_0x2f1069(0x1df)][_0x2f1069(0x1a8)]({'isVisible':!0x0,'id':_0x2663c9[_0x2f1069(0x16d)]}),_0x2f1069(0x1fa)===_0x2663c9[_0x2f1069(0x1e4)]?this[_0x2f1069(0x1df)][_0x2f1069(0x28c)](_0x2663c9):this[_0x2f1069(0x1df)][_0x2f1069(0x1a2)](_0x2663c9);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1f9),async(_0x5f4203,_0x1774ce,_0x2a9393)=>{const _0x16ad78=_0x415683;await this[_0x16ad78(0x197)]({'reply':_0x1774ce,'changeGroups':_0x2a9393});}),this[_0x415683(0x26c)]['on'](_0x415683(0x195),(_0x100a63,{reply:_0x2a7e27,index:_0x420534,state:_0x366b14})=>{const _0xbc4a5a=_0x415683;this[_0xbc4a5a(0x1df)][_0xbc4a5a(0x268)]({'id':_0x2a7e27['id'],'index':_0x420534,'state':_0x366b14});}),this[_0x415683(0x26c)]['on'](_0x415683(0x25a),(_0x26057a,_0x3ee83c)=>{const _0x23b90b=_0x415683;if(this[_0x23b90b(0x1df)][_0x23b90b(0x27f)](_0x3ee83c[_0x23b90b(0x255)],_0x3ee83c[_0x23b90b(0x1d3)]),_0x23b90b(0x1f0)===_0x3ee83c[_0x23b90b(0x255)][_0x23b90b(0x1e4)]){const _0x35ed85=[..._0x24a6e8(this[_0x23b90b(0x216)])[_0x23b90b(0x1a3)][_0x23b90b(0x29a)][_0x23b90b(0x1f0)][_0x23b90b(0x161)]()];this[_0x23b90b(0x15b)][_0x23b90b(0x1da)](_0x35ed85,_0x23b90b(0x24c)+this[_0x23b90b(0x26c)]?.['id']);}}),this[_0x415683(0x26c)]['on'](_0x415683(0x22a),(_0x305110,_0x558f49)=>{const _0x2f8379=_0x415683;this[_0x2f8379(0x1df)][_0x2f8379(0x27a)](_0x558f49[_0x2f8379(0x157)]),_0x2f8379(0x14e)==_0x558f49[_0x2f8379(0x157)]&&this[_0x2f8379(0x15e)](),_0x2f8379(0x1f0)===_0x558f49[_0x2f8379(0x1e4)]&&this[_0x2f8379(0x15b)][_0x2f8379(0x1c0)](_0x2f8379(0x24c)+this[_0x2f8379(0x26c)]?.['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x217),(_0x1d6774,_0x247bce)=>{const _0x4a6700=_0x415683;this[_0x4a6700(0x1df)][_0x4a6700(0x169)](_0x247bce[_0x4a6700(0x255)][_0x4a6700(0x157)],_0x247bce[_0x4a6700(0x1d3)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x182),(_0x323929,_0xff41d5)=>{const _0x1835b8=_0x415683;this[_0x1835b8(0x1df)][_0x1835b8(0x16c)](_0xff41d5[_0x1835b8(0x206)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x259),(_0x2bfb97,_0x2e28f1)=>{const _0x5cec19=_0x415683;this[_0x5cec19(0x1df)][_0x5cec19(0x158)](_0x2e28f1[_0x5cec19(0x22b)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1a9),(_0x3addbf,_0x567020)=>{const _0x58a5c2=_0x415683;this[_0x58a5c2(0x1df)][_0x58a5c2(0x242)](_0x567020[_0x58a5c2(0x1dd)],_0x567020[_0x58a5c2(0x1bb)],_0x567020[_0x58a5c2(0x214)],_0x567020[_0x58a5c2(0x211)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x26a),(_0x54e7ec,_0x16d9c0)=>{const _0x2aed54=_0x415683;this[_0x2aed54(0x1df)][_0x2aed54(0x187)](_0x16d9c0[_0x2aed54(0x1dd)],_0x16d9c0[_0x2aed54(0x24b)],_0x16d9c0[_0x2aed54(0x173)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x208),(_0x5eccdc,_0x9a0a8d)=>{const _0x3b49ca=_0x415683;this[_0x3b49ca(0x1df)][_0x3b49ca(0x27d)](_0x9a0a8d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1fe),(_0x58e67c,_0x2e54bb)=>{const _0x36471e=_0x415683;this[_0x36471e(0x1df)][_0x36471e(0x1ea)](_0x2e54bb[_0x36471e(0x18e)],_0x2e54bb[_0x36471e(0x28f)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x275),(_0x56c56a,{error:_0x1fe2d0,interactionId:_0x3616b2,fileName:_0x440901,url:_0x836ce1,sourceId:_0x386de2,sourceLabel:_0x5de0f5})=>{const _0xc7d8ad=_0x415683,_0x37ed6a=_0x3616b2?_0x3616b2+':'+_0x23ccda():_0x23ccda();_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x276))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x1fd)]({'staticMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1ba)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d0))||_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x296))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x291)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1b1))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x25f),_0x440901),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x186))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x183),_0x836ce1),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x180))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1de)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d4))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x190)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1c8))?(_0x386de2&&this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x17f)](_0x386de2),this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1fc),_0x5de0f5||_0xc7d8ad(0x1bb)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x21b))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x233)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x27b)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0));}),await this[_0x415683(0x26c)][_0x415683(0x204)](this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x292))),_0x55e4be||await this[_0x415683(0x26c)][_0x415683(0x167)]();}async[_0xd34f13(0x24d)]({userMessage:_0x65fa0a,quickActionData:_0x5f2d35}){const _0x39e787=_0xd34f13;if(!this[_0x39e787(0x26c)])throw new _0x4b6396(_0x39e787(0x1a4));this[_0x39e787(0x26c)][_0x39e787(0x15f)]()&&await this[_0x39e787(0x26c)][_0x39e787(0x225)](this[_0x39e787(0x15b)][_0x39e787(0x1c1)]()),this[_0x39e787(0x26c)]['id']&&this[_0x39e787(0x26c)][_0x39e787(0x179)]&&await this[_0x39e787(0x26c)][_0x39e787(0x185)]({'userMessage':_0x65fa0a,'quickActionData':_0x5f2d35}),this[_0x39e787(0x200)]();}[_0xd34f13(0x200)](){const _0x18b7fa=_0xd34f13,_0x1ee965=_0x24a6e8(this[_0x18b7fa(0x216)])[_0x18b7fa(0x1a3)],_0x336988=Array[_0x18b7fa(0x1f5)](_0x1ee965[_0x18b7fa(0x213)][_0x18b7fa(0x295)](_0x5d9f5d));_0x1ee965[_0x18b7fa(0x1fb)](_0x155b17=>{const _0x146396=_0x18b7fa;_0x336988[_0x146396(0x1aa)](_0x1300a0=>_0x155b17[_0x146396(0x207)](_0x1300a0));});}[_0xd34f13(0x1e9)](){const _0x19685f=_0xd34f13;console[_0x19685f(0x21e)](_0x19685f(0x21d));}[_0xd34f13(0x1f4)](_0x4d3cf2){const _0x1942fb=_0xd34f13;this[_0x1942fb(0x1df)][_0x1942fb(0x1e0)](_0x4d3cf2);}[_0xd34f13(0x15a)](_0xd501db){const _0x45e2d3=_0xd34f13;_0x422bdc(_0xd501db[_0x45e2d3(0x1d1)]);}[_0xd34f13(0x1d9)](_0x3d84e4){const _0x54d581=_0xd34f13;this[_0x54d581(0x26c)]?.[_0x54d581(0x1d8)](_0x3d84e4);}[_0xd34f13(0x17a)](){const _0xcbc03c=_0xd34f13;this[_0xcbc03c(0x26c)]?.[_0xcbc03c(0x181)]();}[_0xd34f13(0x14f)](){const _0x243dff=_0xd34f13;this[_0x243dff(0x26c)]?.[_0x243dff(0x279)]();}[_0xd34f13(0x22c)](_0x1af385){const _0x581dd8=_0xd34f13,[_0x5a6ea3,_0x1a6a76]=_0x1af385[_0x581dd8(0x19b)](':'),_0x5accbc=this[_0x581dd8(0x26c)][_0x581dd8(0x28a)](_0x5a6ea3),_0x5645cf=_0x5accbc[_0x581dd8(0x164)](_0x1a6a76);return{'interaction':_0x5accbc,'reply':_0x5645cf};}[_0xd34f13(0x1d2)](_0x59e820,_0x29069a=!0x1){const _0x2b9ce5=_0xd34f13,_0x495d43=_0x24a6e8(this[_0x2b9ce5(0x216)]),_0xdb92ff={'target':_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x1e3)][_0x2b9ce5(0x284)][_0x2b9ce5(0x248)](_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x16a)][_0x2b9ce5(0x27e)](_0x59e820)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x29069a};_0x29069a&&(_0xdb92ff[_0x2b9ce5(0x258)]=!0x0),_0x4020b8(_0xdb92ff);}[_0xd34f13(0x1f7)](_0x472a22,_0x51b1a6=!0x1){const _0x84a89f=_0xd34f13;this[_0x84a89f(0x1df)][_0x84a89f(0x290)](_0x472a22||_0x3c888f(this[_0x84a89f(0x216)][_0x84a89f(0x18a)],_0x84a89f(0x1b2)),_0x51b1a6);}[_0xd34f13(0x228)](_0x522695,_0x177df4){const _0x464830=_0xd34f13;let _0x131549;if(_0x177df4){_0x131549=[];const _0x128f66=_0x464830(0x24a)==typeof _0x177df4?[_0x177df4[_0x464830(0x150)]()]:_0x177df4[_0x464830(0x1b5)](_0x61091c=>_0x61091c[_0x464830(0x150)]());for(const _0x37345c of _0x128f66)for(const _0xaa82e0 of _0x522695)(_0xaa82e0['id'][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x26d)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x1ec)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0['id'][_0x464830(0x150)]()[_0x464830(0x1af)](_0x37345c))&&_0x131549[_0x464830(0x18c)](_0xaa82e0);}else _0x131549=_0x522695;return _0x131549;}async[_0xd34f13(0x197)]({reply:_0x5dc988,changeGroups:_0x34dcbd,renderingStrategy:_0x6b45fa}){const _0x1b7092=_0xd34f13,{id:_0x23d541,isDone:_0xfd66c9,type:_0x26b20d,parsedContent:_0x337eda}=_0x5dc988;if(_0x1b7092(0x266)===_0x26b20d){const _0x3e9592=_0x24a6e8(this[_0x1b7092(0x216)]),_0x56d142=_0x2aabc7({'editor':_0x3e9592,'showDiff':this[_0x1b7092(0x1df)][_0x1b7092(0x221)],'changeGroups':_0x34dcbd,'documentContextContent':_0x5dc988[_0x1b7092(0x22f)]});await this[_0x1b7092(0x1df)][_0x1b7092(0x294)]({'id':_0x23d541,'parts':_0x56d142,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});}else _0x1b7092(0x1fa)===_0x26b20d&&await this[_0x1b7092(0x1df)][_0x1b7092(0x260)]({'id':_0x23d541,'parsedContent':_0x337eda,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});_0xfd66c9&&_0x5dc988[_0x1b7092(0x241)][_0x1b7092(0x26e)]>0x0&&this[_0x1b7092(0x1df)][_0x1b7092(0x202)](_0x23d541,_0x5dc988[_0x1b7092(0x241)]);}async[_0xd34f13(0x1cd)](){const _0xe190de=_0xd34f13,_0x4e04a0=this[_0xe190de(0x26c)]?.[_0xe190de(0x239)];_0x4e04a0&&(_0x4e04a0[_0xe190de(0x192)](),this[_0xe190de(0x1df)][_0xe190de(0x232)](_0x4e04a0));}async[_0xd34f13(0x21f)](){const _0x59691c=_0xd34f13,_0x5115c6=this[_0x59691c(0x26c)]?.[_0x59691c(0x239)];if(_0x5115c6){for await(const _0x553add of _0x5115c6[_0x59691c(0x20b)])await this[_0x59691c(0x197)]({'reply':_0x553add,'changeGroups':_0x553add[_0x59691c(0x23b)],'renderingStrategy':_0x59691c(0x28e)});}}}function _0x23c1(){const _0x3c7068=['ai.chat.context','root','updateFeedItemAIReplySuggestionContent','getMarkersGroup','ai-chat-conversation-start-failed','startConversation','interactionCreated','stopListening','document','getSelectionText','partIndex','current-document','_toggleReasoning','toLocaleLowerCase','has','editors','focusPromptInput','AIChatController','scrollFeedToSuggestion','AITabs','uiId','setAddContextOptions','getChild','_logError','_aiEditing','activateTab','afterInit','removeSelectionFromChatContext','isCurrentDocumentInContext','range','getRanges','maxOffset','filter','getReply','3519132rVSLrP','version','start','config','setContextItemLoading','mapper','full','setConversationContext','interactionId','getOperations','set','ai.chat.models.displayedModels','addOperation','_handleStartConversation','isInContext','abortPromptStream','getChildAtOffset','get','selectModel','requires','isStarted','_toggleWebSearch','resizeTabs','clearPendingContextUI','end','insertSuggestion','closeSourceResourceBalloon','ai-chat-context-invalid-data','toggleWebSearch','contextSent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_getDocumentRangeForReplyChanges','handleUserInteraction','ai-chat-url-upload-failed','updateResourceState','createPositionAt','_applySuggestion','locale','toggleLoadingSkeleton','push','close','selectedModel','isPremiumPlugin','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','isDocumentOperation','stop','parse','addResourceToContext','replyChangeGroupStateUpdated','showNext','_updateReplyContent','commands','isCurrentDocumentInConversation','2023232yZFCIY','split','new','finishInteraction','AIConnector','_aiChatModels','anchorId','main','addFeedItemAISuggestion','model','ai-chat-controller-no-active-conversation','listenTo','loadSourceResources','AIEditing','updateFeedInteractionHeader','sourceResourcesLoaded','forEach','addDocumentToContext','_applyOperationsAsSuggestions','createRange','createConversation','startsWith','removed','ai-chat-file-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','remove','setChangeGroupState','map','getRoot','state','getTransformedByOperation','editing','AI_CHAT_ABORTED_MESSAGE','source','_previewedChangeGroup','resource','mouseOverSuggestion','isOfficialPlugin','hideFakeVisualSelection','getDocumentData','add','load','AIChatUI','addUrlToContext','isUploadInProgress','addSelectionToContext','ai-chat-source-resources-load-failed','_openBalloonFor','clearConversationContextUI','createPositionFromPath','loadConversation','_stopLastInteraction','howMany','applyOperation','ai-chat-conversation-init-failed','message','_scrollToSuggestionRange','isLoading','ai-chat-context-unsupported-type','like','rejected','dislike','removeFromContext','_removeFromContext','showFakeVisualSelection','delete','revert','sourceId','AI_CHAT_CONTEXT_INVALID_DATA','_aiChatUi','setIsMaximized','setModel','resizedTabs','view','type','resize','redo','indexes','replyCreated','_showConversationHistory','setSelectedModel','addSelectionToChatContext','provider','sourcePosition','interactionDestroyed','replyId','selection','children','1143CeTujN','dialogClosed','_setIsMaximized','from','removeSelectionFromContext','updateConversationTitle','addFeedItemUserMessage','replyContentUpdated','text-delta','change','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','addFeedItemStaticMessage','modelSelected','open','_removeAISelectionMarkers','4805jaSQcZ','updateFeedItemAIReplySources','pending','init','ai-chat-missing-channel-id','contextItems','removeMarker','capabilitiesUpdated','TrackChangesEditing','getDiff','replies','applySuggestion','toggleSuggestionDisplayMode','handleRemovedConversation','showPrevious','availableModels','uid','Liked\x20response','markers','resources','streaming','context','contextItemLoadingEnded','setIsUploadInProgress','setFeedItemRenderingStrategy','addFeedInteractionHeader','ai-chat-resource-load-failed','uploadProgressChanged','Showing\x20conversation\x20history...','log','_flushLastInteractionUI','getDocumentContext','showDiff','getPath','_aiConnector','_integrateEditor','updateCurrentDocumentInContext','collaboration.channelId','undo','_filterModels','addFeedItemError','contextItemRemoved','options','getInteractionAndReplyById','Disliked\x20response','chat','documentContextContent','nextSibling','34756BWFeec','stopInteraction','AI_CHAT_RESOURCE_LOAD_FAILED','changes','removeFeedInteraction','slice','history','_createFromRanges','lastInteraction','toString','changeGroups','28984gifaJB','rootName','ai-chat-controller-mouse-over','baseVersion','$graveyard','sources','populateSourceResourceBalloon','plugins','unshift','addCurrentDocumentToContext','_balloonShowDiff','content','viewRangeToDom','Undo','string','resourceId','ai-conversation-','_handleUIUserMessage','getAttribute','startInteraction','interactionStarted','conversationInitialized','_batchToChanges','indexOf','AI_BALLOON_HEADER_TITLE','contextItem','interactionFinished','batch','alignToTop','addContextOptionsChanged','contextItemAdded','ai.chat.models.defaultModelId','isOpen','5843201sBxMWt','addFileToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplyContent','sendMessage','accepted','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','sendUserMessage','599589KezsJV','modification-delta','3774nrNArb','updateFeedItemAIReplySuggestionPartState','showChangeInText','resourceStateChanged','mouseLeaveSuggestion','activeConversation','name','length','getGroupId','updateContent','data-id','query','pluginName','data','error','ai-request-aborted','getFirstRange','getChildren','toggleReasoning','removeContextItem','AI_CHAT_GENERIC_ERROR','find','updateCapabilities','toViewRange','addContextItem','cloneNode','node','DocumentCompare','Failed\x20to\x20load\x20conversation','domConverter','path','addFilesToContext','rejectSuggestion','resetConversationTitle','resetMessageInput','getInteraction','ready','addFeedItemAIReply','_insertSuggestion','static','isDisabled','setConversationTitle','AI_CHAT_UNABLE_TO_START_CONVERSATION'];_0x23c1=function(){return _0x3c7068;};return _0x23c1();}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x354f3d=_0x4483;(function(_0x25caec,_0xa55528){const _0x2e4a94=_0x4483,_0x539953=_0x25caec();while(!![]){try{const _0x3ce390=parseInt(_0x2e4a94(0x26b))/0x1*(parseInt(_0x2e4a94(0x204))/0x2)+parseInt(_0x2e4a94(0x273))/0x3+-parseInt(_0x2e4a94(0x239))/0x4+-parseInt(_0x2e4a94(0x24f))/0x5*(parseInt(_0x2e4a94(0x22e))/0x6)+-parseInt(_0x2e4a94(0x20e))/0x7*(parseInt(_0x2e4a94(0x1e9))/0x8)+-parseInt(_0x2e4a94(0x247))/0x9*(-parseInt(_0x2e4a94(0x245))/0xa)+parseInt(_0x2e4a94(0x215))/0xb*(parseInt(_0x2e4a94(0x1f3))/0xc);if(_0x3ce390===_0xa55528)break;else _0x539953['push'](_0x539953['shift']());}catch(_0x568b5e){_0x539953['push'](_0x539953['shift']());}}}(_0x5247,0x29c91));import{ContextPlugin as _0x498048}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x11dfcf}from'ckeditor5/src/utils.js';import{AIChatView as _0x1be429}from'./ui/aichatview.js';import{AITabs as _0x199c2b}from'../aitabs/aitabs.js';import{getTranslation as _0x4925cf}from'../aicore/utils/common-translations.js';function _0x5247(){const _0x224b67=['isMaximized','renderingStrategy','config','isVisible','finishInteraction','streaming','label','chatControls','closeSourceResourceBalloon','removeFeedInteraction','options','user-message','addFeedItemError','createConversation','feedItemRenderingStrategy','resetMessageInput','setWebSearch','stopAutoScroll','ai-suggestion-reply','addItem','interaction-header','startAutoScroll','isPremiumPlugin','requires','isReasoningEnabled','1xDbdTA','addFeedItemAIReply','disableModelSelector','setIsUploadInProgress','toggleSuggestionDisplayMode','length','context','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','559479VgYyqC','startInteraction','userMessage','setLoadingMessage','conversation-start','setConversationTitle','filter','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addTab','_getInputPlaceholder','stopInteraction','enableModelSelector','from','isBusy','scrollFeedToSuggestion','8LhlcLl','ai-reply','populateSourceResourceBalloon','chatFeed','<p>','isLoading','quickActionData','chat','pluginName','capabilities','2152824tiDdoi','_animateConversationTitle','queueEmptyPromise','addContextItem','updateCapabilities','toggleLoadingSkeleton','</p>','view','setConversationContext','_getLoadingMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','AIChatUI','removeContextItem','setIsMaximized','setModelList','plugins','destroy','85998SQKTtK','addFeedItemUserMessage','updateFeedItemAIReplySources','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','ai.chat.models.modelSelectorAlwaysVisible','setModel','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','updateFeedItemAIReplySuggestionContent','983206bBtOfk','then','isOfficialPlugin','setContextItemLoading','addFeedItemAISuggestion','bind','isDone','22bGdDkx','_promiseQueue','setInputPlaceholder','setReasoning','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','get','abort','values','setSelectedModel','children','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','error-message','updateFeedItemAIReplyContent','updateResourceState','find','focusPromptInput','addFeedInteractionHeader','displayedPrompt','interactionId','areActionsDisabled','forEach','updateSuggestionPartState','AI_CHAT_HEADING','availableModels','locale','9474KcLVRZ','clearPendingContextUI','markItemAsDone','startsWith','chatHeader','set','addFeedItemStaticMessage','_titleAnimationInterval','AI_CHAT_WELCOME_MESSAGE','_view','resetConversationTitle','1201064olKXfJ','isWebSearchEnabled','removeItem','contextItems','clearConversationContextUI','scrollToSuggestion','showDiff','updateFeedInteractionHeader','delegate','setAddContextOptions','showResizeButton','AITabs','694240SobxMZ','updateWebSources','18haTpDA','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isPending','enqueue','markFeedItemAsDone','updateSuggestionItem','_interactionPromiseResolver','365LFrrQu','updateReplyItem','clear'];_0x5247=function(){return _0x224b67;};return _0x5247();}function _0x4483(_0x57081e,_0x56f531){const _0x524700=_0x5247();return _0x4483=function(_0x44839d,_0x18ac51){_0x44839d=_0x44839d-0x1de;let _0xa3a38c=_0x524700[_0x44839d];return _0xa3a38c;},_0x4483(_0x57081e,_0x56f531);}import{IconAIChat as _0x1c298f}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x20a86c}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x56052f}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x45c9e4}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x498048{static get[_0x354f3d(0x269)](){return[_0x199c2b];}[_0x354f3d(0x237)];static get[_0x354f3d(0x1f1)](){const _0x44dffb=_0x354f3d;return _0x44dffb(0x1fe);}static get[_0x354f3d(0x210)](){return!0x0;}static get[_0x354f3d(0x268)](){return!0x0;}[_0x354f3d(0x260)]=_0x354f3d(0x257);[_0x354f3d(0x23f)]=!0x0;[_0x354f3d(0x216)];[_0x354f3d(0x24e)];[_0x354f3d(0x235)]=void 0x0;constructor(_0x1c2508){const _0x210de3=_0x354f3d;super(_0x1c2508);const _0x97cf1f=this[_0x210de3(0x271)][_0x210de3(0x202)][_0x210de3(0x21a)](_0x210de3(0x244));this[_0x210de3(0x233)](_0x210de3(0x1e7),!0x1),this[_0x210de3(0x216)]=new _0x56052f(),this[_0x210de3(0x237)]=new _0x1be429(this[_0x210de3(0x271)][_0x210de3(0x22d)],_0x97cf1f[_0x210de3(0x243)]),this[_0x210de3(0x237)][_0x210de3(0x241)](..._0x45c9e4)['to'](this),this[_0x210de3(0x237)]['on'](_0x210de3(0x26f),(_0x1798da,{showDiff:_0x3e4cf4})=>{const _0x549806=_0x210de3;this[_0x549806(0x23f)]=_0x3e4cf4;}),_0x97cf1f[_0x210de3(0x1fa)][_0x210de3(0x1e2)]({'id':_0x210de3(0x1f0),'buttonLabel':_0x4925cf(this[_0x210de3(0x271)][_0x210de3(0x22d)],_0x210de3(0x22b)),'buttonIcon':_0x1c298f,'order':0x0,'content':this[_0x210de3(0x237)]}),this[_0x210de3(0x237)][_0x210de3(0x259)][_0x210de3(0x213)](_0x210de3(0x1ee))['to'](this,_0x210de3(0x1e7),_0x293ab5=>_0x293ab5),this[_0x210de3(0x237)][_0x210de3(0x1ec)][_0x210de3(0x213)](_0x210de3(0x24a))['to'](this,_0x210de3(0x1e7),_0x2dc8c4=>_0x2dc8c4),this[_0x210de3(0x237)][_0x210de3(0x259)][_0x210de3(0x217)](this[_0x210de3(0x1e3)]());}[_0x354f3d(0x203)](){const _0x80a5e8=_0x354f3d;super[_0x80a5e8(0x203)](),this[_0x80a5e8(0x235)]&&clearInterval(this[_0x80a5e8(0x235)]);}[_0x354f3d(0x25f)](_0x508a3d){const _0x149da1=_0x354f3d;this[_0x149da1(0x237)][_0x149da1(0x1ec)][_0x149da1(0x251)](),this[_0x149da1(0x237)][_0x149da1(0x259)][_0x149da1(0x1e5)](),this[_0x149da1(0x237)][_0x149da1(0x259)][_0x149da1(0x201)](_0x508a3d[_0x149da1(0x22c)],!this[_0x149da1(0x271)][_0x149da1(0x254)][_0x149da1(0x21a)](_0x149da1(0x209))),this[_0x149da1(0x234)]({'id':_0x149da1(0x1de),'staticMessage':_0x4925cf(this[_0x149da1(0x271)][_0x149da1(0x22d)],_0x149da1(0x236))});}[_0x354f3d(0x234)]({id:_0x5c1604,staticMessage:_0x58bd27}){const _0x5cfea7=_0x354f3d;this[_0x5cfea7(0x237)][_0x5cfea7(0x1ec)][_0x5cfea7(0x265)](_0x5cfea7(0x1ea),{'id':_0x5c1604,'initialContent':_0x5cfea7(0x1ed)+_0x58bd27+_0x5cfea7(0x1f9)});}[_0x354f3d(0x205)](_0x300a8a){const _0x4da638=_0x354f3d,_0xeae27b=_0x300a8a[_0x4da638(0x1ef)]?.[_0x4da638(0x226)]||_0x300a8a[_0x4da638(0x275)];this[_0x4da638(0x237)][_0x4da638(0x1ec)][_0x4da638(0x265)](_0x4da638(0x25d),{'contextItems':Array[_0x4da638(0x1e6)](_0x300a8a[_0x4da638(0x23c)][_0x4da638(0x21c)]()),'initialContent':_0x4da638(0x1ed)+_0xeae27b+_0x4da638(0x1f9),'id':_0x300a8a['id']});}[_0x354f3d(0x25e)]({errorMessage:_0x5e90a3,id:_0x18ad70}){const _0x248067=_0x354f3d;this[_0x248067(0x237)][_0x248067(0x1ec)][_0x248067(0x265)](_0x248067(0x220),{'initialContent':_0x248067(0x1ed)+_0x5e90a3+_0x248067(0x1f9),'id':_0x18ad70});}[_0x354f3d(0x26c)](_0x2e7ecb){const _0x29a094=_0x354f3d;return this[_0x29a094(0x216)][_0x29a094(0x24b)](async()=>{const _0x5d141e=_0x29a094;this[_0x5d141e(0x237)][_0x5d141e(0x1ec)][_0x5d141e(0x265)](_0x5d141e(0x1ea),{'id':_0x2e7ecb[_0x5d141e(0x227)]+':'+_0x2e7ecb['id']}),this[_0x5d141e(0x237)][_0x5d141e(0x1ec)][_0x5d141e(0x276)]('');});}async[_0x354f3d(0x212)](_0xe25f5b){const _0x5f00a4=_0x354f3d;return this[_0x5f00a4(0x216)][_0x5f00a4(0x24b)](async()=>{const _0x22d30e=_0x5f00a4;this[_0x22d30e(0x237)][_0x22d30e(0x1ec)][_0x22d30e(0x265)](_0x22d30e(0x264),{'id':_0xe25f5b[_0x22d30e(0x227)]+':'+_0xe25f5b['id'],'areActionsDisabled':_0xe25f5b[_0x22d30e(0x228)],'showDiff':this[_0x22d30e(0x23f)]}),this[_0x22d30e(0x237)][_0x22d30e(0x1ec)][_0x22d30e(0x276)]('');});}[_0x354f3d(0x225)](_0x4f66a5){const _0x492f07=_0x354f3d;this[_0x492f07(0x237)][_0x492f07(0x1ec)][_0x492f07(0x265)](_0x492f07(0x266),{'id':_0x4f66a5['id'],'capabilities':_0x4f66a5[_0x492f07(0x1f2)]});}[_0x354f3d(0x240)](_0x23b430){const _0x49f31c=_0x354f3d,_0x2e3734=this[_0x49f31c(0x237)][_0x49f31c(0x1ec)][_0x49f31c(0x21e)][_0x49f31c(0x223)](_0x2f6f92=>_0x2f6f92[_0x49f31c(0x25c)]['id']==_0x23b430['id']&&_0x2f6f92 instanceof _0x20a86c);_0x2e3734&&_0x2e3734[_0x49f31c(0x233)](_0x49f31c(0x255),_0x23b430[_0x49f31c(0x255)]);}async[_0x354f3d(0x221)](_0x118d22){const _0x372f90=_0x354f3d,_0x5840b1=_0x118d22[_0x372f90(0x253)]||this[_0x372f90(0x260)];return this[_0x372f90(0x216)][_0x372f90(0x24b)](async _0x38f9e8=>{const _0x203dd3=_0x372f90;await this[_0x203dd3(0x237)][_0x203dd3(0x1ec)][_0x203dd3(0x250)]({..._0x118d22,'abortSignal':_0x38f9e8,'renderingStrategy':_0x5840b1}),_0x118d22[_0x203dd3(0x214)]&&this[_0x203dd3(0x24c)](_0x118d22['id']);});}[_0x354f3d(0x206)](_0x5323f3,_0x3ddf53){const _0x2e6035=_0x354f3d;this[_0x2e6035(0x237)][_0x2e6035(0x1ec)][_0x2e6035(0x246)](_0x5323f3,_0x3ddf53);}async[_0x354f3d(0x20d)](_0x1ac652){const _0x2bfac0=_0x354f3d,_0x11f126=_0x1ac652[_0x2bfac0(0x253)]||this[_0x2bfac0(0x260)];return this[_0x2bfac0(0x216)][_0x2bfac0(0x24b)](async _0x5f1664=>{const _0x5195be=_0x2bfac0;await this[_0x5195be(0x237)][_0x5195be(0x1ec)][_0x5195be(0x24d)]({..._0x1ac652,'abortSignal':_0x5f1664,'renderingStrategy':_0x11f126}),_0x1ac652[_0x5195be(0x214)]&&this[_0x5195be(0x24c)](_0x1ac652['id']);});}[_0x354f3d(0x20b)](_0x3712cf){const _0x1dca52=_0x354f3d;this[_0x1dca52(0x237)][_0x1dca52(0x1ec)][_0x1dca52(0x22a)](_0x3712cf);}[_0x354f3d(0x24c)](_0x454d92){const _0x55abff=_0x354f3d;this[_0x55abff(0x237)][_0x55abff(0x1ec)][_0x55abff(0x230)](_0x454d92);}[_0x354f3d(0x25b)](_0x750a37){const _0xb630d9=_0x354f3d;this[_0xb630d9(0x237)][_0xb630d9(0x1ec)][_0xb630d9(0x207)]()[_0xb630d9(0x1e0)](_0x3f9d8d=>_0x3f9d8d[_0xb630d9(0x231)](_0x750a37))[_0xb630d9(0x229)](_0xdeeb71=>this[_0xb630d9(0x237)][_0xb630d9(0x1ec)][_0xb630d9(0x23b)](_0xdeeb71));}[_0x354f3d(0x274)](_0x3a3c5e){const _0x5ecdd5=_0x354f3d;this[_0x5ecdd5(0x237)][_0x5ecdd5(0x1ec)][_0x5ecdd5(0x276)](this[_0x5ecdd5(0x1fc)](_0x3a3c5e)),this[_0x5ecdd5(0x237)][_0x5ecdd5(0x259)][_0x5ecdd5(0x26d)](!this[_0x5ecdd5(0x271)][_0x5ecdd5(0x254)][_0x5ecdd5(0x21a)](_0x5ecdd5(0x209))),this[_0x5ecdd5(0x1e7)]=!0x0,this[_0x5ecdd5(0x237)][_0x5ecdd5(0x1ec)][_0x5ecdd5(0x267)]();}[_0x354f3d(0x1e4)](_0x506bf7){const _0x2d232a=_0x354f3d;this[_0x2d232a(0x216)][_0x2d232a(0x21b)](),this[_0x2d232a(0x237)][_0x2d232a(0x1ec)][_0x2d232a(0x207)]()[_0x2d232a(0x1e0)](_0x1e7ac5=>_0x1e7ac5[_0x2d232a(0x231)](_0x506bf7['id']))[_0x2d232a(0x229)](_0x4ca413=>this[_0x2d232a(0x24c)](_0x4ca413)),this[_0x2d232a(0x1e7)]=!0x1,this[_0x2d232a(0x237)][_0x2d232a(0x1ec)][_0x2d232a(0x263)]();}async[_0x354f3d(0x256)](){const _0x3b99f5=_0x354f3d;return this[_0x3b99f5(0x216)][_0x3b99f5(0x1f5)][_0x3b99f5(0x20f)](()=>{const _0xe4f30e=_0x3b99f5;this[_0xe4f30e(0x1e7)]=!0x1,this[_0xe4f30e(0x237)][_0xe4f30e(0x1ec)][_0xe4f30e(0x263)]();});}[_0x354f3d(0x1f6)](_0x4bc433,_0x368154){const _0x5ab768=_0x354f3d;this[_0x5ab768(0x237)][_0x5ab768(0x259)][_0x5ab768(0x1f6)](_0x4bc433,_0x368154);}[_0x354f3d(0x1ff)](_0x15f668){const _0x23b4ae=_0x354f3d;this[_0x23b4ae(0x237)][_0x23b4ae(0x259)][_0x23b4ae(0x1ff)](_0x15f668);}[_0x354f3d(0x211)](_0x3bad63,_0x20c648){const _0x29e2b7=_0x354f3d;this[_0x29e2b7(0x237)][_0x29e2b7(0x259)][_0x29e2b7(0x211)](_0x3bad63,_0x20c648);}[_0x354f3d(0x26e)](_0x47e42a){const _0x3389a2=_0x354f3d;this[_0x3389a2(0x237)][_0x3389a2(0x259)][_0x3389a2(0x26e)](_0x47e42a);}[_0x354f3d(0x1fb)](_0x59cd22){const _0x573bfd=_0x354f3d;this[_0x573bfd(0x237)][_0x573bfd(0x259)][_0x573bfd(0x1fb)](_0x59cd22);}[_0x354f3d(0x22f)](){const _0x5eb9c9=_0x354f3d;this[_0x5eb9c9(0x237)][_0x5eb9c9(0x259)][_0x5eb9c9(0x22f)]();}[_0x354f3d(0x23d)](){const _0x1d0845=_0x354f3d;this[_0x1d0845(0x237)][_0x1d0845(0x259)][_0x1d0845(0x23d)]();}[_0x354f3d(0x222)](_0x118453,_0x5c73cc,_0x5ee7a2){const _0x559249=_0x354f3d;this[_0x559249(0x237)][_0x559249(0x259)][_0x559249(0x222)](_0x118453,_0x5c73cc,_0x5ee7a2);}[_0x354f3d(0x261)](){const _0xd2e4b3=_0x354f3d;this[_0xd2e4b3(0x237)][_0xd2e4b3(0x259)][_0xd2e4b3(0x261)](),this[_0xd2e4b3(0x237)][_0xd2e4b3(0x259)][_0xd2e4b3(0x217)](this[_0xd2e4b3(0x1e3)]());}[_0x354f3d(0x242)](_0x4a6cab){const _0x2d0d52=_0x354f3d;this[_0x2d0d52(0x237)][_0x2d0d52(0x259)][_0x2d0d52(0x242)](_0x4a6cab);}[_0x354f3d(0x1f7)](_0x48c538){const _0x3f66d8=_0x354f3d;this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x262)](_0x48c538[_0x3f66d8(0x23a)]),this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x218)](_0x48c538[_0x3f66d8(0x26a)]),this[_0x3f66d8(0x237)][_0x3f66d8(0x259)][_0x3f66d8(0x217)](this[_0x3f66d8(0x1e3)](_0x48c538));}[_0x354f3d(0x21d)](_0x3e3bd6,_0x3ed7c6){const _0x270a85=_0x354f3d;this[_0x270a85(0x237)][_0x270a85(0x259)][_0x270a85(0x20a)](_0x3e3bd6),_0x3ed7c6&&this[_0x270a85(0x237)][_0x270a85(0x259)][_0x270a85(0x26d)](!0x1);}[_0x354f3d(0x248)](_0x32e1ad){const _0x33af2c=_0x354f3d;this[_0x33af2c(0x260)]=_0x32e1ad;}[_0x354f3d(0x1f8)](_0x312a0a){const _0x4fa186=_0x354f3d;this[_0x4fa186(0x237)][_0x4fa186(0x1ec)][_0x4fa186(0x1f8)](_0x312a0a);}[_0x354f3d(0x238)](){const _0x1af8fb=_0x354f3d;this[_0x1af8fb(0x1df)](_0x4925cf(this[_0x1af8fb(0x271)][_0x1af8fb(0x22d)],_0x1af8fb(0x22b)));}[_0x354f3d(0x1df)](_0x4bd44a,_0x2f6caa=!0x1){const _0x7108f=_0x354f3d;if(_0x2f6caa&&!_0x11dfcf()&&_0x4bd44a[_0x7108f(0x270)])return this[_0x7108f(0x237)][_0x7108f(0x232)][_0x7108f(0x258)]='',void this[_0x7108f(0x1f4)](_0x4bd44a);this[_0x7108f(0x237)][_0x7108f(0x232)][_0x7108f(0x258)]=_0x4bd44a;}[_0x354f3d(0x1f4)](_0xc5df92){const _0x4331a1=_0x354f3d;let _0x33c7f3=0x0;clearInterval(this[_0x4331a1(0x235)]),this[_0x4331a1(0x235)]=setInterval(()=>{const _0x1fc572=_0x4331a1;this[_0x1fc572(0x237)][_0x1fc572(0x232)][_0x1fc572(0x258)]=this[_0x1fc572(0x237)][_0x1fc572(0x232)][_0x1fc572(0x258)]+_0xc5df92[_0x33c7f3],_0x33c7f3++,_0x33c7f3===_0xc5df92[_0x1fc572(0x270)]&&clearInterval(this[_0x1fc572(0x235)]);},0x1e);}[_0x354f3d(0x200)](_0x15d3ba){const _0x55c522=_0x354f3d;this[_0x55c522(0x237)][_0x55c522(0x232)][_0x55c522(0x252)]=_0x15d3ba;}[_0x354f3d(0x1fc)](_0x40f79f){const _0x1866cf=_0x354f3d,_0x4e602a=_0x40f79f[_0x1866cf(0x1f2)];return _0x4e602a[_0x1866cf(0x23a)]&&_0x4e602a[_0x1866cf(0x26a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x21f)):_0x4e602a[_0x1866cf(0x23a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x208)):_0x4e602a[_0x1866cf(0x26a)]?_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x20c)):_0x4925cf(this[_0x1866cf(0x271)][_0x1866cf(0x22d)],_0x1866cf(0x272));}[_0x354f3d(0x1e3)](_0x55f853){const _0xb5729e=_0x354f3d;return _0x55f853?_0x55f853[_0xb5729e(0x23a)]&&_0x55f853[_0xb5729e(0x26a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x1fd)):_0x55f853[_0xb5729e(0x23a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x1e1)):_0x55f853[_0xb5729e(0x26a)]?_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x249)):_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x219)):_0x4925cf(this[_0xb5729e(0x271)][_0xb5729e(0x22d)],_0xb5729e(0x219));}[_0x354f3d(0x1eb)](_0x501348,_0x2ca806,_0x4cd584,_0x2cd805){const _0x22eb70=_0x354f3d;this[_0x22eb70(0x237)][_0x22eb70(0x1eb)](_0x501348,_0x2ca806,_0x4cd584,_0x2cd805);}[_0x354f3d(0x25a)](_0xb0cc13){const _0x4e356a=_0x354f3d;this[_0x4e356a(0x237)][_0x4e356a(0x25a)](_0xb0cc13);}[_0x354f3d(0x224)](){const _0x56468b=_0x354f3d;this[_0x56468b(0x237)][_0x56468b(0x259)][_0x56468b(0x224)]();}[_0x354f3d(0x1e8)](_0xa8967d,_0x4b5ccf){const _0x370f14=_0x354f3d;this[_0x370f14(0x237)][_0x370f14(0x1ec)][_0x370f14(0x23e)](_0xa8967d,_0x4b5ccf);}}
|
|
23
|
+
const _0x3b5382=_0x59d2;(function(_0x57c006,_0xfd9ce6){const _0x559a90=_0x59d2,_0x49006e=_0x57c006();while(!![]){try{const _0x429795=parseInt(_0x559a90(0x173))/0x1*(-parseInt(_0x559a90(0x101))/0x2)+parseInt(_0x559a90(0x10a))/0x3+parseInt(_0x559a90(0xe6))/0x4*(-parseInt(_0x559a90(0x121))/0x5)+parseInt(_0x559a90(0xde))/0x6*(parseInt(_0x559a90(0xea))/0x7)+-parseInt(_0x559a90(0x14b))/0x8*(parseInt(_0x559a90(0x138))/0x9)+parseInt(_0x559a90(0x159))/0xa*(-parseInt(_0x559a90(0x13b))/0xb)+parseInt(_0x559a90(0xe8))/0xc;if(_0x429795===_0xfd9ce6)break;else _0x49006e['push'](_0x49006e['shift']());}catch(_0x126a59){_0x49006e['push'](_0x49006e['shift']());}}}(_0x5b22,0x54330));import{ContextPlugin as _0x4ec831}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2b4318}from'ckeditor5/src/utils.js';import{AIChatView as _0x5a28c8}from'./ui/aichatview.js';import{AITabs as _0x262287}from'../aitabs/aitabs.js';import{getTranslation as _0x4404f3}from'../aicore/utils/common-translations.js';function _0x5b22(){const _0x4632e9=['addItem','addContextItem','markFeedItemAsDone','options','removeContextItem','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','queueEmptyPromise','clearConversationContextUI','_titleAnimationInterval','capabilities','bind','plugins','finishInteraction','contextItems','resetConversationTitle','startsWith','interactionId','setIsUploadInProgress','setReasoning','</p>','toggleLoadingSkeleton','focusPromptInput','pluginName','145957Qmxwco','updateFeedItemAIReplySuggestionContent','_promiseQueue','displayedPrompt','82122DYiuax','interaction-header','updateSuggestionPartState','updateFeedItemAIReplyContent','addFeedInteractionHeader','startInteraction','resetMessageInput','isPremiumPlugin','652rwPVKi','then','11852856iNJLWI','scrollFeedToSuggestion','91BXcWpy','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','delegate','AIChatUI','isBusy','setInputPlaceholder','setContextItemLoading','user-message','enqueue','feedItemRenderingStrategy','context','ai.chat.models.modelSelectorAlwaysVisible','abort','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isVisible','view','_getInputPlaceholder','updateWebSources','forEach','availableModels','addFeedItemAIReply','_animateConversationTitle','2aHvDmG','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addTab','AITabs','_getLoadingMessage','conversation-start','updateSuggestionItem','find','stopInteraction','464736qkVbAc','_view','removeItem','disableModelSelector','getItemIds','isPending','closeSourceResourceBalloon','AI_CHAT_HEADING','clear','ai-reply','stopAutoScroll','chat','from','isLoading','areActionsDisabled','updateFeedItemAIReplySuggestionPartState','updateFeedItemAIReplySources','chatControls','isWebSearchEnabled','streaming','filter','values','createConversation','9845qToDxS','populateSourceResourceBalloon','label','setConversationTitle','clearPendingContextUI','chatHeader','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setAddContextOptions','get','chatFeed','addFeedItemError','setModel','toggleSuggestionDisplayMode','isOfficialPlugin','_interactionPromiseResolver','quickActionData','setModelList','destroy','requires','updateCapabilities','addFeedItemAISuggestion','setWebSearch','showResizeButton','471177bRvHvt','config','setSelectedModel','644853bHIZfu','startAutoScroll','setLoadingMessage','addFeedItemStaticMessage','updateFeedInteractionHeader','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','userMessage','isDone','set','setIsMaximized','length','setConversationContext','locale','updateResourceState','showDiff','AI_CHAT_WELCOME_MESSAGE','24pSLUfk','scrollToSuggestion','error-message','renderingStrategy','ai-suggestion-reply','children','enableModelSelector','removeFeedInteraction','isReasoningEnabled','addFeedItemUserMessage','<p>','isMaximized','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markItemAsDone','60pzLrZQ','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'];_0x5b22=function(){return _0x4632e9;};return _0x5b22();}function _0x59d2(_0x4ba91d,_0x3e6679){const _0x5b227a=_0x5b22();return _0x59d2=function(_0x59d20c,_0x6ec585){_0x59d20c=_0x59d20c-0xdb;let _0x1ce62=_0x5b227a[_0x59d20c];return _0x1ce62;},_0x59d2(_0x4ba91d,_0x3e6679);}import{IconAIChat as _0x4e1a1e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x10621f}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1d6154}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16ae80}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x4ec831{static get[_0x3b5382(0x133)](){return[_0x262287];}[_0x3b5382(0x10b)];static get[_0x3b5382(0x172)](){const _0x34ae2d=_0x3b5382;return _0x34ae2d(0xee);}static get[_0x3b5382(0x12e)](){return!0x0;}static get[_0x3b5382(0xe5)](){return!0x0;}[_0x3b5382(0xf4)]=_0x3b5382(0x11d);[_0x3b5382(0x149)]=!0x0;[_0x3b5382(0xdc)];[_0x3b5382(0x12f)];[_0x3b5382(0x164)]=void 0x0;constructor(_0x581d38){const _0x1d760e=_0x3b5382;super(_0x581d38);const _0x3b9f15=this[_0x1d760e(0xf5)][_0x1d760e(0x167)][_0x1d760e(0x129)](_0x1d760e(0x104));this[_0x1d760e(0x143)](_0x1d760e(0xef),!0x1),this[_0x1d760e(0xdc)]=new _0x1d6154(),this[_0x1d760e(0x10b)]=new _0x5a28c8(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x3b9f15[_0x1d760e(0x137)]),this[_0x1d760e(0x10b)][_0x1d760e(0xed)](..._0x16ae80)['to'](this),this[_0x1d760e(0x10b)]['on'](_0x1d760e(0x12d),(_0x55f128,{showDiff:_0x5d55c2})=>{const _0x18145e=_0x1d760e;this[_0x18145e(0x149)]=_0x5d55c2;}),_0x3b9f15[_0x1d760e(0xfa)][_0x1d760e(0x103)]({'id':_0x1d760e(0x115),'buttonLabel':_0x4404f3(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x1d760e(0x111)),'buttonIcon':_0x4e1a1e,'order':0x0,'content':this[_0x1d760e(0x10b)]}),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0x166)](_0x1d760e(0x117))['to'](this,_0x1d760e(0xef),_0x2f171e=>_0x2f171e),this[_0x1d760e(0x10b)][_0x1d760e(0x12a)][_0x1d760e(0x166)](_0x1d760e(0x10f))['to'](this,_0x1d760e(0xef),_0x4994c8=>_0x4994c8),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0xf0)](this[_0x1d760e(0xfb)]());}[_0x3b5382(0x132)](){const _0x8b2c9a=_0x3b5382;super[_0x8b2c9a(0x132)](),this[_0x8b2c9a(0x164)]&&clearInterval(this[_0x8b2c9a(0x164)]);}[_0x3b5382(0x120)](_0x4052d0){const _0x30880a=_0x3b5382;this[_0x30880a(0x10b)][_0x30880a(0x12a)][_0x30880a(0x112)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x151)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x131)](_0x4052d0[_0x30880a(0xfe)],!this[_0x30880a(0xf5)][_0x30880a(0x139)][_0x30880a(0x129)](_0x30880a(0xf6))),this[_0x30880a(0x13e)]({'id':_0x30880a(0x106),'staticMessage':_0x4404f3(this[_0x30880a(0xf5)][_0x30880a(0x147)],_0x30880a(0x14a))});}[_0x3b5382(0x13e)]({id:_0x101e58,staticMessage:_0x354e31}){const _0x5aafa8=_0x3b5382;this[_0x5aafa8(0x10b)][_0x5aafa8(0x12a)][_0x5aafa8(0x15b)](_0x5aafa8(0x113),{'id':_0x101e58,'initialContent':_0x5aafa8(0x155)+_0x354e31+_0x5aafa8(0x16f)});}[_0x3b5382(0x154)](_0x2eb3b2){const _0x330a6e=_0x3b5382,_0x24d0d4=_0x2eb3b2[_0x330a6e(0x130)]?.[_0x330a6e(0xdd)]||_0x2eb3b2[_0x330a6e(0x141)];this[_0x330a6e(0x10b)][_0x330a6e(0x12a)][_0x330a6e(0x15b)](_0x330a6e(0xf2),{'contextItems':Array[_0x330a6e(0x116)](_0x2eb3b2[_0x330a6e(0x169)][_0x330a6e(0x11f)]()),'initialContent':_0x330a6e(0x155)+_0x24d0d4+_0x330a6e(0x16f),'id':_0x2eb3b2['id']});}[_0x3b5382(0x12b)]({errorMessage:_0x5e5cc4,id:_0x1c06b0}){const _0x5ea6dd=_0x3b5382;this[_0x5ea6dd(0x10b)][_0x5ea6dd(0x12a)][_0x5ea6dd(0x15b)](_0x5ea6dd(0x14d),{'initialContent':_0x5ea6dd(0x155)+_0x5e5cc4+_0x5ea6dd(0x16f),'id':_0x1c06b0});}[_0x3b5382(0xff)](_0x27ab8d){const _0x1b65c1=_0x3b5382;return this[_0x1b65c1(0xdc)][_0x1b65c1(0xf3)](async()=>{const _0x4ac41b=_0x1b65c1;this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x15b)](_0x4ac41b(0x113),{'id':_0x27ab8d[_0x4ac41b(0x16c)]+':'+_0x27ab8d['id']}),this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x13d)]('');});}async[_0x3b5382(0x135)](_0x391317){const _0x45a149=_0x3b5382;return this[_0x45a149(0xdc)][_0x45a149(0xf3)](async()=>{const _0x4885f4=_0x45a149;this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x15b)](_0x4885f4(0x14f),{'id':_0x391317[_0x4885f4(0x16c)]+':'+_0x391317['id'],'areActionsDisabled':_0x391317[_0x4885f4(0x118)],'showDiff':this[_0x4885f4(0x149)]}),this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x13d)]('');});}[_0x3b5382(0xe2)](_0x12b354){const _0x4c0a16=_0x3b5382;this[_0x4c0a16(0x10b)][_0x4c0a16(0x12a)][_0x4c0a16(0x15b)](_0x4c0a16(0xdf),{'id':_0x12b354['id'],'capabilities':_0x12b354[_0x4c0a16(0x165)]});}[_0x3b5382(0x13f)](_0x30af60){const _0x119b52=_0x3b5382,_0x395800=this[_0x119b52(0x10b)][_0x119b52(0x12a)][_0x119b52(0x150)][_0x119b52(0x108)](_0x5ab651=>_0x5ab651[_0x119b52(0x15e)]['id']==_0x30af60['id']&&_0x5ab651 instanceof _0x10621f);_0x395800&&_0x395800[_0x119b52(0x143)](_0x119b52(0xf9),_0x30af60[_0x119b52(0xf9)]);}async[_0x3b5382(0xe1)](_0x1e6859){const _0x5097ca=_0x3b5382,_0x2ab723=_0x1e6859[_0x5097ca(0x14e)]||this[_0x5097ca(0xf4)];return this[_0x5097ca(0xdc)][_0x5097ca(0xf3)](async _0x5de92a=>{const _0x55ba11=_0x5097ca;await this[_0x55ba11(0x10b)][_0x55ba11(0x12a)][_0x55ba11(0xeb)]({..._0x1e6859,'abortSignal':_0x5de92a,'renderingStrategy':_0x2ab723}),_0x1e6859[_0x55ba11(0x142)]&&this[_0x55ba11(0x15d)](_0x1e6859['id']);});}[_0x3b5382(0x11a)](_0x3f466e,_0x229146){const _0x538dcd=_0x3b5382;this[_0x538dcd(0x10b)][_0x538dcd(0x12a)][_0x538dcd(0xfc)](_0x3f466e,_0x229146);}async[_0x3b5382(0xdb)](_0x477eaf){const _0x86d443=_0x3b5382,_0x32e4aa=_0x477eaf[_0x86d443(0x14e)]||this[_0x86d443(0xf4)];return this[_0x86d443(0xdc)][_0x86d443(0xf3)](async _0x140e8c=>{const _0x4bb422=_0x86d443;await this[_0x4bb422(0x10b)][_0x4bb422(0x12a)][_0x4bb422(0x107)]({..._0x477eaf,'abortSignal':_0x140e8c,'renderingStrategy':_0x32e4aa}),_0x477eaf[_0x4bb422(0x142)]&&this[_0x4bb422(0x15d)](_0x477eaf['id']);});}[_0x3b5382(0x119)](_0x38315d){const _0x3091cd=_0x3b5382;this[_0x3091cd(0x10b)][_0x3091cd(0x12a)][_0x3091cd(0xe0)](_0x38315d);}[_0x3b5382(0x15d)](_0x2ceae0){const _0x314fb5=_0x3b5382;this[_0x314fb5(0x10b)][_0x314fb5(0x12a)][_0x314fb5(0x158)](_0x2ceae0);}[_0x3b5382(0x152)](_0x4b038b){const _0x2c4adb=_0x3b5382;this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10e)]()[_0x2c4adb(0x11e)](_0x2d92cb=>_0x2d92cb[_0x2c4adb(0x16b)](_0x4b038b))[_0x2c4adb(0xfd)](_0x5e8a2a=>this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10c)](_0x5e8a2a));}[_0x3b5382(0xe3)](_0x589456){const _0x3bce0b=_0x3b5382;this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13d)](this[_0x3bce0b(0x105)](_0x589456)),this[_0x3bce0b(0x10b)][_0x3bce0b(0x11b)][_0x3bce0b(0x10d)](!this[_0x3bce0b(0xf5)][_0x3bce0b(0x139)][_0x3bce0b(0x129)](_0x3bce0b(0xf6))),this[_0x3bce0b(0xef)]=!0x0,this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13c)]();}[_0x3b5382(0x109)](_0x1d89b7){const _0x36353a=_0x3b5382;this[_0x36353a(0xdc)][_0x36353a(0xf7)](),this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x10e)]()[_0x36353a(0x11e)](_0x442875=>_0x442875[_0x36353a(0x16b)](_0x1d89b7['id']))[_0x36353a(0xfd)](_0x2f49cc=>this[_0x36353a(0x15d)](_0x2f49cc)),this[_0x36353a(0xef)]=!0x1,this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x114)]();}async[_0x3b5382(0x168)](){const _0x45c004=_0x3b5382;return this[_0x45c004(0xdc)][_0x45c004(0x162)][_0x45c004(0xe7)](()=>{const _0xc04d83=_0x45c004;this[_0xc04d83(0xef)]=!0x1,this[_0xc04d83(0x10b)][_0xc04d83(0x12a)][_0xc04d83(0x114)]();});}[_0x3b5382(0x15c)](_0x1433e6,_0x4cd0f9){const _0x47c644=_0x3b5382;this[_0x47c644(0x10b)][_0x47c644(0x11b)][_0x47c644(0x15c)](_0x1433e6,_0x4cd0f9);}[_0x3b5382(0x15f)](_0x457d12){const _0x2e576e=_0x3b5382;this[_0x2e576e(0x10b)][_0x2e576e(0x11b)][_0x2e576e(0x15f)](_0x457d12);}[_0x3b5382(0xf1)](_0xd52dda,_0x4074ad){const _0x5219c6=_0x3b5382;this[_0x5219c6(0x10b)][_0x5219c6(0x11b)][_0x5219c6(0xf1)](_0xd52dda,_0x4074ad);}[_0x3b5382(0x16d)](_0x3f7baa){const _0x5effcf=_0x3b5382;this[_0x5effcf(0x10b)][_0x5effcf(0x11b)][_0x5effcf(0x16d)](_0x3f7baa);}[_0x3b5382(0x146)](_0x889a84){const _0x5ea714=_0x3b5382;this[_0x5ea714(0x10b)][_0x5ea714(0x11b)][_0x5ea714(0x146)](_0x889a84);}[_0x3b5382(0x125)](){const _0x1facfb=_0x3b5382;this[_0x1facfb(0x10b)][_0x1facfb(0x11b)][_0x1facfb(0x125)]();}[_0x3b5382(0x163)](){const _0x4f290d=_0x3b5382;this[_0x4f290d(0x10b)][_0x4f290d(0x11b)][_0x4f290d(0x163)]();}[_0x3b5382(0x148)](_0x3e3847,_0x24123c,_0x1754e5){const _0x8936bb=_0x3b5382;this[_0x8936bb(0x10b)][_0x8936bb(0x11b)][_0x8936bb(0x148)](_0x3e3847,_0x24123c,_0x1754e5);}[_0x3b5382(0xe4)](){const _0x36b2d6=_0x3b5382;this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xe4)](),this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xf0)](this[_0x36b2d6(0xfb)]());}[_0x3b5382(0x128)](_0x35e638){const _0x5226d1=_0x3b5382;this[_0x5226d1(0x10b)][_0x5226d1(0x11b)][_0x5226d1(0x128)](_0x35e638);}[_0x3b5382(0x134)](_0x1ac2d4){const _0xcdd29a=_0x3b5382;this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x136)](_0x1ac2d4[_0xcdd29a(0x11c)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x16e)](_0x1ac2d4[_0xcdd29a(0x153)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0xf0)](this[_0xcdd29a(0xfb)](_0x1ac2d4));}[_0x3b5382(0x13a)](_0xb593dc,_0x2fb432){const _0x3f60b3=_0x3b5382;this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x12c)](_0xb593dc),_0x2fb432&&this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x10d)](!0x1);}[_0x3b5382(0x160)](_0x4aeb7d){const _0x48c5ff=_0x3b5382;this[_0x48c5ff(0xf4)]=_0x4aeb7d;}[_0x3b5382(0x170)](_0x288bd1){const _0x3c4088=_0x3b5382;this[_0x3c4088(0x10b)][_0x3c4088(0x12a)][_0x3c4088(0x170)](_0x288bd1);}[_0x3b5382(0x16a)](){const _0x547fd2=_0x3b5382;this[_0x547fd2(0x124)](_0x4404f3(this[_0x547fd2(0xf5)][_0x547fd2(0x147)],_0x547fd2(0x111)));}[_0x3b5382(0x124)](_0x50d136,_0x144cda=!0x1){const _0x1dc9df=_0x3b5382;if(_0x144cda&&!_0x2b4318()&&_0x50d136[_0x1dc9df(0x145)])return this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]='',void this[_0x1dc9df(0x100)](_0x50d136);this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]=_0x50d136;}[_0x3b5382(0x100)](_0x3bf405){const _0x282d82=_0x3b5382;let _0x349209=0x0;clearInterval(this[_0x282d82(0x164)]),this[_0x282d82(0x164)]=setInterval(()=>{const _0xea4b07=_0x282d82;this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]=this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]+_0x3bf405[_0x349209],_0x349209++,_0x349209===_0x3bf405[_0xea4b07(0x145)]&&clearInterval(this[_0xea4b07(0x164)]);},0x1e);}[_0x3b5382(0x144)](_0x4ccd5b){const _0x313810=_0x3b5382;this[_0x313810(0x10b)][_0x313810(0x126)][_0x313810(0x156)]=_0x4ccd5b;}[_0x3b5382(0x105)](_0x5ead87){const _0x2ad62d=_0x3b5382,_0x3d9c87=_0x5ead87[_0x2ad62d(0x165)];return _0x3d9c87[_0x2ad62d(0x11c)]&&_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x127)):_0x3d9c87[_0x2ad62d(0x11c)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x157)):_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xf8)):_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xec));}[_0x3b5382(0xfb)](_0x1faf4f){const _0x1b3fe9=_0x3b5382;return _0x1faf4f?_0x1faf4f[_0x1b3fe9(0x11c)]&&_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x15a)):_0x1faf4f[_0x1b3fe9(0x11c)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x102)):_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x140)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161));}[_0x3b5382(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36){const _0x1af17c=_0x3b5382;this[_0x1af17c(0x10b)][_0x1af17c(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36);}[_0x3b5382(0x110)](_0x2a4afa){const _0x4daa04=_0x3b5382;this[_0x4daa04(0x10b)][_0x4daa04(0x110)](_0x2a4afa);}[_0x3b5382(0x171)](){const _0x5db3bf=_0x3b5382;this[_0x5db3bf(0x10b)][_0x5db3bf(0x11b)][_0x5db3bf(0x171)]();}[_0x3b5382(0xe9)](_0x5915db,_0x348490){const _0x4c3653=_0x3b5382;this[_0x4c3653(0x10b)][_0x4c3653(0x12a)][_0x4c3653(0x14c)](_0x5915db,_0x348490);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x469023=_0x34f5;(function(_0x571a8e,_0x2ee9e0){const _0x1b0b8c=_0x34f5,_0x2073fd=_0x571a8e();while(!![]){try{const _0x356368=parseInt(_0x1b0b8c(0x1ec))/0x1*(parseInt(_0x1b0b8c(0x19e))/0x2)+-parseInt(_0x1b0b8c(0x1b8))/0x3*(-parseInt(_0x1b0b8c(0x1d5))/0x4)+-parseInt(_0x1b0b8c(0x1ce))/0x5*(parseInt(_0x1b0b8c(0x1fc))/0x6)+parseInt(_0x1b0b8c(0x19f))/0x7*(parseInt(_0x1b0b8c(0x1c2))/0x8)+parseInt(_0x1b0b8c(0x1f6))/0x9*(-parseInt(_0x1b0b8c(0x1e6))/0xa)+parseInt(_0x1b0b8c(0x1e3))/0xb+parseInt(_0x1b0b8c(0x1e9))/0xc*(-parseInt(_0x1b0b8c(0x20d))/0xd);if(_0x356368===_0x2ee9e0)break;else _0x2073fd['push'](_0x2073fd['shift']());}catch(_0x1a644c){_0x2073fd['push'](_0x2073fd['shift']());}}}(_0x35a2,0xdea2c));function _0x34f5(_0x326e31,_0x5c0917){const _0x35a2ff=_0x35a2();return _0x34f5=function(_0x34f514,_0x5cc85c){_0x34f514=_0x34f514-0x19a;let _0xabf530=_0x35a2ff[_0x34f514];return _0xabf530;},_0x34f5(_0x326e31,_0x5c0917);}import{CKEditorError as _0x1e076f,ObservableMixin as _0x56cc9e,uid as _0xb1581}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x32514e,AIContextTextResourceType as _0x43f84c}from'../../aicore/model/aicontext.js';import{escape as _0x55ceb8}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x469023(0x1b5),_0x469023(0x1c0),_0x469023(0x228),_0x469023(0x200),_0x469023(0x1cf),_0x469023(0x1a4),_0x469023(0x1af),_0x469023(0x1f7),_0x469023(0x1d7)];function _0x35a2(){const _0x463c29=['startsWith','abort','_toggleAddCurrentDocumentOptionVisibility','delete','removeSelectionFromContext','_ownerId','document','text/markdown','18BNzWZQ','resourceStateChanged','uploadFile','isSelectionInContext','_ongoingUploads','resourceId','2036130pvPKyC','SELECTION','MARKDOWN','isCurrentDocumentInContext','contextSent','ai-request-aborted','type','ai-chat-source-not-found','ai-chat-context-unsupported-type','isHidden','_isResourceInContext','uploadUrl','files-','removeFromContext','isInContext','_connector','files','234LzLraz','fetchDocument','length','push','ai-chat-source-resources-load-failed','end','uploadDocument','_finishUploadOperation','selection','size','_config','name','getSentContextItems','ai-chat-resource-no-data','getResources','object\x20with\x20content\x20and\x20type\x20properties','_setAddContextOptionsDefaultState','getDocument','string','urls','ai-chat-document-upload-failed','values','map','enabled','set','_mapContextItemToRequestData','ai-chat-resource-load-failed','contextItemLoadingEnded','ai-chat-context-invalid-data','has','content','data','object','file-','2116VQNqwy','9552949lGbVVE','init','hidden','_addToConversationContextItem','_getCustomSourcesInitialState','addContextOptionsChanged','resources','abortController','from','getData','updateCurrentDocument','message','_pendingContextItems','ai-chat-file-upload-failed','FILE','Current\x20document','sourceResourcesLoaded','isCurrentDocumentInConversation','_finishContextItemLoading','stack','uiId','fire','contextItemAdded','HTML','url-','9JNToxg','URL','getId','attributes','_updateResourceInContextState','getPendingContextItems','get','DOCUMENT','contextItemRemoved','current-document','8GdxdmE','_startUploadOperation','addToConversationContext','addResourceToContext','filter','_convertTextResourceToFile','forEach','version','ai-chat-url-upload-failed','addCurrentDocumentToContext','mapContextItemsToRequestData','clearPendingContextItems','15AtGKJA','error','sources','_addContextItem','_createContextItemFromContent','start','all','1924564vzeisq','addFilesToContext','uploadProgressChanged','populateFromMessage','File','isReadOnly','text/html','loadSourceResources','find','_conversationContextItems','addSelectionToContext','TEXT','text/plain','label','17819857vgViRt','_removeContextItem','url','4225990wDYYyD','_addContextOptionsState','sessionId','1796712yRanCI','_ongoingUploadOperations','_findSourceIdsByResourceId','985oteovF','addUrlToContext'];_0x35a2=function(){return _0x463c29;};return _0x35a2();}export class AIChatContext extends _0x56cc9e(){[_0x469023(0x20b)];[_0x469023(0x217)];[_0x469023(0x1f3)];constructor({connector:_0x5c360b,config:_0x3f0755,ownerId:_0x3a82be}){const _0x5d3755=_0x469023;super(),this[_0x5d3755(0x20b)]=_0x5c360b,this[_0x5d3755(0x217)]=_0x3f0755,this[_0x5d3755(0x1f3)]=_0x3a82be;}[_0x469023(0x1a0)](){const _0xc60bc1=_0x469023;this[_0xc60bc1(0x1ab)]=new Map(),this[_0xc60bc1(0x1de)]=new Map(),this[_0xc60bc1(0x1fa)]=new Map(),this[_0xc60bc1(0x1ea)]=new Map(),this[_0xc60bc1(0x21d)]();}[_0x469023(0x1bd)](){const _0x114f8b=_0x469023;return this[_0x114f8b(0x1ab)];}async[_0x469023(0x1d8)](_0x2dd9a9){const _0x229fca=_0x469023,_0x28ed28=await this[_0x229fca(0x1d2)](_0x2dd9a9);return this[_0x229fca(0x1a2)](_0x28ed28),_0x229fca(0x1c1)===_0x28ed28[_0x229fca(0x1b3)]&&this[_0x229fca(0x1f0)](),_0x28ed28;}async[_0x469023(0x1d2)](_0x2e6c42){const _0x3b8a1b=_0x469023;if(_0x2e6c42[_0x3b8a1b(0x202)]===_0x32514e[_0x3b8a1b(0x1bf)]){const _0xdabb69=await this[_0x3b8a1b(0x20b)][_0x3b8a1b(0x20e)](this[_0x3b8a1b(0x1f3)],_0x2e6c42['id'])[_0x3b8a1b(0x21e)]();return{'id':_0x3b8a1b(0x1c1),'uiId':_0x3b8a1b(0x1c1),'label':_0x3b8a1b(0x1ae),'type':_0x2e6c42[_0x3b8a1b(0x202)],'content':_0xdabb69[_0x3b8a1b(0x19a)],'hidden':this[_0x3b8a1b(0x1de)][_0x3b8a1b(0x22a)](_0x3b8a1b(0x1c1)),'version':_0xdabb69[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1c9)],'sessionId':_0xdabb69[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1e8)]};}return{'id':_0x2e6c42['id'],'uiId':_0x2e6c42['id'],'label':_0x2e6c42[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1e2)]||_0x2e6c42[_0x3b8a1b(0x218)]||_0x2e6c42[_0x3b8a1b(0x1e5)]||_0x2e6c42['id'],'type':_0x2e6c42[_0x3b8a1b(0x202)],..._0x2e6c42?.[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1fb)]?{'resourceId':_0x2e6c42[_0x3b8a1b(0x1bb)]?.[_0x3b8a1b(0x1fb)]}:{}};}[_0x469023(0x219)](){const _0x45376e=_0x469023;return new Map(this[_0x45376e(0x1de)]);}[_0x469023(0x209)](_0x1720fb){const _0x238a4b=_0x469023,_0x4410eb=this[_0x238a4b(0x1ab)][_0x238a4b(0x1be)](_0x1720fb);_0x4410eb?.[_0x238a4b(0x1da)]||this[_0x238a4b(0x1e4)](_0x1720fb);}[_0x469023(0x1cd)](){const _0x54d30c=_0x469023;if(0x0===this[_0x54d30c(0x1ab)][_0x54d30c(0x216)])return;for(const _0x2f2168 of this[_0x54d30c(0x1ab)][_0x54d30c(0x222)]())this[_0x54d30c(0x1e4)](_0x2f2168[_0x54d30c(0x1b3)]);const _0xf1ddf3=this[_0x54d30c(0x1de)][_0x54d30c(0x1be)](_0x54d30c(0x1c1))||this[_0x54d30c(0x1ab)][_0x54d30c(0x1be)](_0x54d30c(0x1c1));_0xf1ddf3&&this[_0x54d30c(0x1d1)]({..._0xf1ddf3,'isReadOnly':!0x0,'hidden':!0x0});}[_0x469023(0x1c4)](_0x51d825){const _0x5c1bd5=_0x469023;for(const _0x197692 of _0x51d825[_0x5c1bd5(0x222)]())this[_0x5c1bd5(0x1a2)](_0x197692);this[_0x5c1bd5(0x1cd)](),this[_0x5c1bd5(0x1b4)](_0x5c1bd5(0x200),{'contextItems':Array[_0x5c1bd5(0x1a7)](this[_0x5c1bd5(0x219)]()[_0x5c1bd5(0x222)]())});}[_0x469023(0x1ff)](){const _0x1c5077=_0x469023;return this[_0x1c5077(0x1ab)][_0x1c5077(0x22a)](_0x1c5077(0x1c1));}[_0x469023(0x1f9)](){const _0x2ae04d=_0x469023;return this[_0x2ae04d(0x1ab)][_0x2ae04d(0x22a)](_0x2ae04d(0x215));}[_0x469023(0x1b0)](){const _0x4461c5=_0x469023;return this[_0x4461c5(0x1de)][_0x4461c5(0x22a)](_0x4461c5(0x1c1));}static[_0x469023(0x1cc)](_0x41da61){const _0x118c77=_0x469023;return Array[_0x118c77(0x1a7)](_0x41da61[_0x118c77(0x222)]())[_0x118c77(0x223)](_0x3250dd=>this[_0x118c77(0x226)](_0x3250dd))[_0x118c77(0x1c6)](_0x17cce1=>null!==_0x17cce1);}async[_0x469023(0x1d6)](_0x31fed7,_0x334652,_0x3c2998=_0x32514e[_0x469023(0x1ad)]){const _0x555c3c=_0x469023,_0x543bfb=_0x555c3c(0x208)+_0xb1581();this[_0x555c3c(0x1c3)](_0x543bfb);try{await Promise[_0x555c3c(0x1d4)](_0x31fed7[_0x555c3c(0x223)](async _0x3c54f0=>{const _0x1f2bc0=_0x555c3c,_0x1b9d93=_0x1f2bc0(0x19d)+_0xb1581(),_0x472b51=_0x55ceb8(_0x3c54f0[_0x1f2bc0(0x218)]);try{this[_0x1f2bc0(0x1d1)]({'type':_0x3c2998,'label':_0x334652?.[_0x1f2bc0(0x1e2)]||_0x472b51,'uiId':_0x1b9d93,'resourceId':_0x334652?.[_0x1f2bc0(0x1fb)]},!0x0);const _0x25b6e9=this[_0x1f2bc0(0x20b)][_0x1f2bc0(0x1f8)](this[_0x1f2bc0(0x1f3)],_0x3c54f0,_0x334652);this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x225)](_0x1b9d93,_0x25b6e9[_0x1f2bc0(0x1a6)]);const {id:_0xc14edf}=await _0x25b6e9[_0x1f2bc0(0x1ba)]();this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x1f1)](_0x1b9d93),this[_0x1f2bc0(0x1b1)]({'type':_0x3c2998,'id':_0xc14edf,'label':_0x334652?.[_0x1f2bc0(0x1e2)]||_0x472b51,'uiId':_0x1b9d93,'resourceId':_0x334652?.[_0x1f2bc0(0x1fb)]},!0x1);}catch(_0x47f891){this[_0x1f2bc0(0x1fa)][_0x1f2bc0(0x1f1)](_0x1b9d93);if(!_0x47f891[_0x1f2bc0(0x1aa)][_0x1f2bc0(0x1ee)](_0x1f2bc0(0x201))){const _0x453e00=new _0x1e076f(_0x1f2bc0(0x1ac),null,{'fileName':_0x472b51});_0x453e00[_0x1f2bc0(0x1b2)]=_0x47f891[_0x1f2bc0(0x1b2)],this[_0x1f2bc0(0x1b4)](_0x1f2bc0(0x1cf),{'error':_0x453e00,'fileName':_0x472b51});}this[_0x1f2bc0(0x1e4)](_0x1b9d93);}}));}finally{this[_0x555c3c(0x214)](_0x543bfb);}}[_0x469023(0x1cb)](_0x25da59){const _0x5b49e2=_0x469023;if(this[_0x5b49e2(0x1ff)]())return;const _0x5c29cd={'type':_0x32514e[_0x5b49e2(0x1bf)],'uiId':_0x5b49e2(0x1c1),'label':_0x25da59,'isReadOnly':this[_0x5b49e2(0x1de)][_0x5b49e2(0x22a)](_0x5b49e2(0x1c1)),'hidden':this[_0x5b49e2(0x1de)][_0x5b49e2(0x22a)](_0x5b49e2(0x1c1))};this[_0x5b49e2(0x1d1)](_0x5c29cd);}async[_0x469023(0x1a9)](_0x5bff4e,_0xe26cf6,_0x36ca97,_0x5d2d35){const _0x527ea7=_0x469023,_0x141c0a=this[_0x527ea7(0x1ab)][_0x527ea7(0x1be)](_0x527ea7(0x1c1));if(_0x141c0a&&_0x5bff4e){_0x141c0a[_0x527ea7(0x215)]=_0x5d2d35?_0x5d2d35[_0x527ea7(0x223)](_0x4287fd=>({'start':_0x4287fd[_0x527ea7(0x1d3)],'end':_0x4287fd[_0x527ea7(0x212)]})):[];try{if(_0x141c0a[_0x527ea7(0x1c9)]===_0xe26cf6)return;const {id:_0x20171e}=await this[_0x527ea7(0x20b)][_0x527ea7(0x213)](this[_0x527ea7(0x1f3)],_0x5bff4e,{'version':_0xe26cf6,'sessionId':_0x36ca97})[_0x527ea7(0x1ba)]();_0x141c0a['id']=_0x20171e,_0x141c0a[_0x527ea7(0x19a)]=_0x5bff4e,_0x141c0a[_0x527ea7(0x1c9)]=_0xe26cf6,_0x141c0a[_0x527ea7(0x1e8)]=_0x36ca97;}catch(_0x284212){const _0x552c1f=new _0x1e076f(_0x527ea7(0x221),null);_0x552c1f[_0x527ea7(0x1b2)]=_0x284212[_0x527ea7(0x1b2)],this[_0x527ea7(0x1b4)](_0x527ea7(0x1cf),{'error':_0x552c1f});}}}[_0x469023(0x1df)](_0x373ed7){const _0x2eb679=_0x469023;this[_0x2eb679(0x1d1)]({'type':_0x32514e[_0x2eb679(0x1fd)],'label':_0x373ed7,'uiId':_0x2eb679(0x215),'content':_0x373ed7});}[_0x469023(0x1f2)](){const _0x991a5e=_0x469023;this[_0x991a5e(0x1e4)](_0x991a5e(0x215));}async[_0x469023(0x1ed)](_0x18256f,_0x3f4342){const _0xfdc97c=_0x469023,_0x15e6d1=_0xfdc97c(0x1b7)+_0xb1581();this[_0xfdc97c(0x1c3)](_0x15e6d1);const _0x525219=_0xfdc97c(0x1b7)+_0xb1581();try{this[_0xfdc97c(0x1d1)]({'type':_0x32514e[_0xfdc97c(0x1b9)],'label':_0x3f4342?.[_0xfdc97c(0x1e2)]||_0x18256f,'uiId':_0x525219,'resourceId':_0x3f4342?.[_0xfdc97c(0x1fb)]},!0x0);const _0x58fb9b=this[_0xfdc97c(0x20b)][_0xfdc97c(0x207)](this[_0xfdc97c(0x1f3)],_0x18256f,_0x3f4342);this[_0xfdc97c(0x1fa)][_0xfdc97c(0x225)](_0x525219,_0x58fb9b[_0xfdc97c(0x1a6)]);const {id:_0x36d1ce}=await _0x58fb9b[_0xfdc97c(0x1ba)]();this[_0xfdc97c(0x1fa)][_0xfdc97c(0x1f1)](_0x525219),this[_0xfdc97c(0x1b1)]({'type':_0x32514e[_0xfdc97c(0x1b9)],'id':_0x36d1ce,'label':_0x3f4342?.[_0xfdc97c(0x1e2)]||_0x18256f,'uiId':_0x525219,'resourceId':_0x3f4342?.[_0xfdc97c(0x1fb)]},!0x1);}catch(_0x47ebd8){this[_0xfdc97c(0x1fa)][_0xfdc97c(0x1f1)](_0x525219),(_0x47ebd8[_0xfdc97c(0x1aa)][_0xfdc97c(0x1ee)](_0xfdc97c(0x201))||this[_0xfdc97c(0x1b4)](_0xfdc97c(0x1cf),{'error':new _0x1e076f(_0xfdc97c(0x1ca),this,{'url':_0x18256f,'originalError':_0x47ebd8}),'url':_0x18256f}),this[_0xfdc97c(0x1e4)](_0x525219));}finally{this[_0xfdc97c(0x214)](_0x15e6d1);}}async[_0x469023(0x1dc)](_0x36b020,_0x95802f,_0x4e33aa){const _0x59f9d3=_0x469023,_0x64dd85=this[_0x59f9d3(0x1e7)][_0x59f9d3(0x1d0)][_0x59f9d3(0x1dd)](_0x4c9d13=>_0x4c9d13['id']===_0x36b020);if(!_0x64dd85)return this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1cf),{'error':new _0x1e076f(_0x59f9d3(0x203),this,{'sourceId':_0x36b020}),'sourceId':_0x36b020}),[];try{const _0x3b0008=(await _0x64dd85[_0x59f9d3(0x21b)](_0x95802f))[_0x59f9d3(0x223)](_0x895d10=>{const _0x24355d=_0x59f9d3,_0x417020=this[_0x24355d(0x206)](_0x895d10['id']);return{..._0x895d10,'isInContext':_0x417020};});return _0x64dd85[_0x59f9d3(0x1a5)]=_0x3b0008,this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1af),{'sourceId':_0x36b020,'source':_0x64dd85,'resources':_0x3b0008,'uid':_0x4e33aa}),_0x3b0008;}catch(_0x4b22f0){return this[_0x59f9d3(0x1b4)](_0x59f9d3(0x1cf),{'error':new _0x1e076f(_0x59f9d3(0x211),this,{'sourceId':_0x36b020,'originalError':_0x4b22f0}),'sourceId':_0x36b020,'sourceLabel':_0x64dd85[_0x59f9d3(0x1e2)]}),[];}}async[_0x469023(0x1c5)](_0x1cd041,_0xa4fd92){const _0x535983=_0x469023;if(this[_0x535983(0x206)](_0xa4fd92['id']))return;let _0x422634=_0xa4fd92[_0x535983(0x19b)];if(!_0x422634&&_0x1cd041[_0x535983(0x1a8)])try{_0x422634=await _0x1cd041[_0x535983(0x1a8)](_0xa4fd92['id']);}catch(_0x37de28){return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x227),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'originalError':_0x37de28}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}if(_0x422634)switch(_0xa4fd92[_0x535983(0x202)]){case _0x32514e[_0x535983(0x1b9)]:if(_0x535983(0x21f)!=typeof _0x422634)return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x21f),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});await this[_0x535983(0x1ed)](_0x422634,{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']});break;case _0x32514e[_0x535983(0x1ad)]:if(!(_0x422634 instanceof File))return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x1d9),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});await this[_0x535983(0x1d6)]([_0x422634],{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']});break;case _0x32514e[_0x535983(0x1e0)]:if(_0x535983(0x19c)!=typeof _0x422634||!(_0x535983(0x19a)in _0x422634)||!(_0x535983(0x202)in _0x422634))return void this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x229),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'expectedType':_0x535983(0x21c),'actualType':typeof _0x422634}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});_0x422634=AIChatContext[_0x535983(0x1c7)](_0x422634,_0xa4fd92[_0x535983(0x1e2)]),await this[_0x535983(0x1d6)]([_0x422634],{'label':_0xa4fd92[_0x535983(0x1e2)],'resourceId':_0xa4fd92['id']},_0x32514e[_0x535983(0x1e0)]);break;default:this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x204),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id'],'resourceType':_0xa4fd92[_0x535983(0x202)]}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}else this[_0x535983(0x1b4)](_0x535983(0x1cf),{'error':new _0x1e076f(_0x535983(0x21a),this,{'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']}),'resourceId':_0xa4fd92['id'],'sourceId':_0x1cd041['id']});}static[_0x469023(0x1c7)](_0x37facd,_0x3fe7bc){const _0x5c86ca=_0x469023;switch(_0x37facd[_0x5c86ca(0x202)]){case _0x43f84c[_0x5c86ca(0x1fe)]:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1f5)});case _0x43f84c[_0x5c86ca(0x1b6)]:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1db)});default:return new File([_0x37facd[_0x5c86ca(0x19a)]],_0x3fe7bc,{'type':_0x5c86ca(0x1e1)});}}static[_0x469023(0x226)](_0x3ef6ae){const _0x3d0987=_0x469023;switch(_0x3ef6ae[_0x3d0987(0x202)]){case _0x32514e[_0x3d0987(0x1ad)]:return{'type':_0x32514e[_0x3d0987(0x1ad)],'id':_0x3ef6ae['id']};case _0x32514e[_0x3d0987(0x1b9)]:return{'type':_0x32514e[_0x3d0987(0x1b9)],'id':_0x3ef6ae['id']};case _0x32514e[_0x3d0987(0x1bf)]:return{'type':_0x32514e[_0x3d0987(0x1bf)],'id':_0x3ef6ae['id'],..._0x3ef6ae[_0x3d0987(0x215)]?.[_0x3d0987(0x20f)]&&{'selection':_0x3ef6ae[_0x3d0987(0x215)]}};case _0x32514e[_0x3d0987(0x1e0)]:return{'type':_0x32514e[_0x3d0987(0x1ad)],'id':_0x3ef6ae['id']};default:return null;}}[_0x469023(0x1d1)](_0x78844d,_0xb70329=!0x1){const _0x2df2c8=_0x469023;if(this[_0x2df2c8(0x1ab)][_0x2df2c8(0x225)](_0x78844d[_0x2df2c8(0x1b3)],_0x78844d),_0x78844d[_0x2df2c8(0x1a1)]||this[_0x2df2c8(0x1b4)](_0x2df2c8(0x1b5),{'contextItem':_0x78844d,'isLoading':_0xb70329}),_0x2df2c8(0x1c1)===_0x78844d[_0x2df2c8(0x1b3)]&&this[_0x2df2c8(0x1f0)](),_0x78844d[_0x2df2c8(0x1fb)]){const _0x2dd9c4=this[_0x2df2c8(0x1eb)](_0x78844d[_0x2df2c8(0x1fb)]);_0x2dd9c4&&_0x2dd9c4[_0x2df2c8(0x1c8)](_0x2f70c4=>{const _0x19abfd=_0x2df2c8;this[_0x19abfd(0x1bc)](_0x2f70c4,_0x78844d[_0x19abfd(0x1fb)],!0x0);});}}[_0x469023(0x1e4)](_0x20ab23){const _0x57f6f7=_0x469023,_0x59925f=this[_0x57f6f7(0x1ab)][_0x57f6f7(0x1be)](_0x20ab23),_0x2ae497=this[_0x57f6f7(0x1fa)][_0x57f6f7(0x1be)](_0x20ab23);if(_0x2ae497&&(_0x2ae497[_0x57f6f7(0x1ef)](),this[_0x57f6f7(0x1fa)][_0x57f6f7(0x1f1)](_0x20ab23)),_0x59925f?.[_0x57f6f7(0x1fb)]){const _0x787461=this[_0x57f6f7(0x1eb)](_0x59925f[_0x57f6f7(0x1fb)]);_0x787461&&_0x787461[_0x57f6f7(0x1c8)](_0x406244=>{const _0x37cfa6=_0x57f6f7;this[_0x37cfa6(0x1bc)](_0x406244,_0x59925f[_0x37cfa6(0x1fb)],!0x1);});}this[_0x57f6f7(0x1ab)][_0x57f6f7(0x1f1)](_0x20ab23),this[_0x57f6f7(0x1b4)](_0x57f6f7(0x1c0),{'uiId':_0x20ab23,'type':_0x59925f?.[_0x57f6f7(0x202)]}),_0x57f6f7(0x1c1)===_0x20ab23&&this[_0x57f6f7(0x1f0)]();}[_0x469023(0x1b1)](_0x9af7e2,_0x350e69){const _0x1f6b4c=_0x469023;if(this[_0x1f6b4c(0x1ab)][_0x1f6b4c(0x22a)](_0x9af7e2[_0x1f6b4c(0x1b3)])&&(this[_0x1f6b4c(0x1ab)][_0x1f6b4c(0x225)](_0x9af7e2[_0x1f6b4c(0x1b3)],_0x9af7e2),this[_0x1f6b4c(0x1b4)](_0x1f6b4c(0x228),{'contextItem':_0x9af7e2,'isLoading':_0x350e69}),_0x9af7e2[_0x1f6b4c(0x1fb)])){const _0x3625b3=this[_0x1f6b4c(0x1eb)](_0x9af7e2[_0x1f6b4c(0x1fb)]);_0x3625b3&&_0x3625b3[_0x1f6b4c(0x1c8)](_0x177c66=>{const _0x4d2dfa=_0x1f6b4c;this[_0x4d2dfa(0x1bc)](_0x177c66,_0x9af7e2[_0x4d2dfa(0x1fb)],!0x0);});}}[_0x469023(0x1a2)](_0x17b338){const _0x583a18=_0x469023;this[_0x583a18(0x1de)][_0x583a18(0x225)](_0x17b338[_0x583a18(0x1b3)],_0x17b338);}[_0x469023(0x21d)](){const _0x1edcfb=_0x469023;this[_0x1edcfb(0x1e7)]={'document':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x1f4)]?.[_0x1edcfb(0x224)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x220)]?.[_0x1edcfb(0x224)]},'files':{'enabled':!0x1!==this[_0x1edcfb(0x217)]?.[_0x1edcfb(0x20c)]?.[_0x1edcfb(0x224)]},'sources':this[_0x1edcfb(0x1a3)]()},this[_0x1edcfb(0x1b4)](_0x1edcfb(0x1a4),{'options':this[_0x1edcfb(0x1e7)]});}[_0x469023(0x1a3)](){const _0x1b5af6=_0x469023;return this[_0x1b5af6(0x217)]?.[_0x1b5af6(0x1d0)]?.[_0x1b5af6(0x223)](_0x33ecf2=>({..._0x33ecf2,'resources':[]}))??[];}[_0x469023(0x1f0)](){const _0x34914c=_0x469023,_0x555b4d=this[_0x34914c(0x1ff)]()||this[_0x34914c(0x1b0)]();this[_0x34914c(0x1e7)][_0x34914c(0x1f4)][_0x34914c(0x205)]=_0x555b4d,this[_0x34914c(0x1b4)](_0x34914c(0x1a4),{'options':this[_0x34914c(0x1e7)]});}[_0x469023(0x206)](_0x312afb){const _0xbb079e=_0x469023;for(const _0x429411 of this[_0xbb079e(0x1ab)][_0xbb079e(0x222)]())if(_0x429411[_0xbb079e(0x1fb)]===_0x312afb)return!0x0;for(const _0x2fbec0 of this[_0xbb079e(0x1de)][_0xbb079e(0x222)]())if(_0x2fbec0[_0xbb079e(0x1fb)]===_0x312afb)return!0x0;return!0x1;}[_0x469023(0x1eb)](_0x6d3b9){const _0x477dc6=_0x469023,_0x19b255=[];for(const _0x5842bd of this[_0x477dc6(0x1e7)][_0x477dc6(0x1d0)]){_0x5842bd[_0x477dc6(0x1a5)][_0x477dc6(0x1dd)](_0x14b457=>_0x14b457['id']===_0x6d3b9)&&_0x19b255[_0x477dc6(0x210)](_0x5842bd['id']);}return 0x0===_0x19b255[_0x477dc6(0x20f)]?null:_0x19b255;}[_0x469023(0x1bc)](_0x70abd0,_0x411088,_0xe1631c){const _0x505d07=_0x469023,_0x1795d5=this[_0x505d07(0x1e7)][_0x505d07(0x1d0)][_0x505d07(0x1dd)](_0xe7b6ec=>_0xe7b6ec['id']===_0x70abd0);if(!_0x1795d5)return;const _0x3cb068=_0x1795d5[_0x505d07(0x1a5)][_0x505d07(0x1dd)](_0xa08e1=>_0xa08e1['id']===_0x411088);_0x3cb068&&(_0x3cb068[_0x505d07(0x20a)]=_0xe1631c,this[_0x505d07(0x1b4)](_0x505d07(0x1f7),{'sourceId':_0x70abd0,'resourceId':_0x411088,'isInContext':_0xe1631c}));}[_0x469023(0x1c3)](_0x3f065a){const _0x350f94=_0x469023;this[_0x350f94(0x1ea)][_0x350f94(0x225)](_0x3f065a,!0x0),this[_0x350f94(0x1ea)][_0x350f94(0x216)]&&this[_0x350f94(0x1b4)](_0x350f94(0x1d7),{'isUploadInProgress':!0x0});}[_0x469023(0x214)](_0x5383d2){const _0x443625=_0x469023;this[_0x443625(0x1ea)][_0x443625(0x1f1)](_0x5383d2),0x0===this[_0x443625(0x1ea)][_0x443625(0x216)]&&this[_0x443625(0x1b4)](_0x443625(0x1d7),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x194de3=_0x2311;function _0x458c(){const _0x2d9a17=['ai-chat-source-resources-load-failed','urls','addUrlToContext','addSelectionToContext','filter','_removeContextItem','Current\x20document','addFilesToContext','addResourceToContext','map','delete','name','_config','current-document','start','contextItemAdded','mapContextItemsToRequestData','hidden','HTML','isReadOnly','contextItemRemoved','_connector','length','ai-request-aborted','removeFromContext','addToConversationContext','uploadUrl','set','_ownerId','text/markdown','values','_isResourceInContext','ai-chat-context-invalid-data','ai-chat-file-upload-failed','sourceResourcesLoaded','data','message','ai-chat-document-upload-failed','text/plain','uiId','loadSourceResources','uploadProgressChanged','resourceStateChanged','isCurrentDocumentInConversation','label','_pendingContextItems','_findSourceIdsByResourceId','2085612AsZYvh','ai-chat-resource-no-data','ai-chat-url-upload-failed','content','ai-chat-resource-load-failed','getDocument','clearPendingContextItems','contextSent','resources','SELECTION','object','_startUploadOperation','url','document','URL','size','selection','_getCustomSourcesInitialState','_finishUploadOperation','populateFromMessage','1xPrLCF','getResources','find','file-','ai-chat-source-not-found','sources','getSentContextItems','all','push','isCurrentDocumentInContext','addCurrentDocumentToContext','_convertTextResourceToFile','_addToConversationContextItem','files','File','end','_updateResourceInContextState','DOCUMENT','7017976sHvjpV','6749616sqzBca','_mapContextItemToRequestData','enabled','getData','_addContextOptionsState','error','attributes','object\x20with\x20content\x20and\x20type\x20properties','FILE','from','isHidden','_ongoingUploads','text/html','contextItemLoadingEnded','_conversationContextItems','version','fetchDocument','_ongoingUploadOperations','string','fire','type','getId','removeSelectionFromContext','forEach','ai-chat-context-unsupported-type','_setAddContextOptionsDefaultState','stack','_createContextItemFromContent','init','_finishContextItemLoading','51763768AJxwJm','uploadDocument','url-','isSelectionInContext','has','2639362QKgycu','_addContextItem','resourceId','sessionId','addContextOptionsChanged','abortController','isInContext','abort','files-','getPendingContextItems','get','9056175pbvycd','updateCurrentDocument','5108865MzKCeK','startsWith','uploadFile','MARKDOWN','_toggleAddCurrentDocumentOptionVisibility','TEXT'];_0x458c=function(){return _0x2d9a17;};return _0x458c();}(function(_0x434c15,_0x350514){const _0x1a195c=_0x2311,_0x3a0112=_0x434c15();while(!![]){try{const _0x341566=parseInt(_0x1a195c(0xb3))/0x1*(-parseInt(_0x1a195c(0xe9))/0x2)+-parseInt(_0x1a195c(0xf6))/0x3+-parseInt(_0x1a195c(0x9f))/0x4+-parseInt(_0x1a195c(0xf4))/0x5+-parseInt(_0x1a195c(0xc6))/0x6+parseInt(_0x1a195c(0xc5))/0x7+parseInt(_0x1a195c(0xe4))/0x8;if(_0x341566===_0x350514)break;else _0x3a0112['push'](_0x3a0112['shift']());}catch(_0x3133b1){_0x3a0112['push'](_0x3a0112['shift']());}}}(_0x458c,0xf263d));import{CKEditorError as _0x74f2b5,ObservableMixin as _0x377a6e,uid as _0x4d7999}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x285026,AIContextTextResourceType as _0x3b0f38}from'../../aicore/model/aicontext.js';import{escape as _0x59e1df}from'es-toolkit/compat';function _0x2311(_0x5748ed,_0x586d72){const _0x458cd0=_0x458c();return _0x2311=function(_0x23116f,_0x578653){_0x23116f=_0x23116f-0x9f;let _0x3ea888=_0x458cd0[_0x23116f];return _0x3ea888;},_0x2311(_0x5748ed,_0x586d72);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x194de3(0x10b),_0x194de3(0x110),_0x194de3(0xd3),_0x194de3(0xa6),_0x194de3(0xcb),_0x194de3(0xed),_0x194de3(0x11e),_0x194de3(0x126),_0x194de3(0x125)];export class AIChatContext extends _0x377a6e(){[_0x194de3(0x111)];[_0x194de3(0x108)];[_0x194de3(0x118)];constructor({connector:_0xa8a3df,config:_0x4fc587,ownerId:_0x31c41e}){const _0x174f44=_0x194de3;super(),this[_0x174f44(0x111)]=_0xa8a3df,this[_0x174f44(0x108)]=_0x4fc587,this[_0x174f44(0x118)]=_0x31c41e;}[_0x194de3(0xe2)](){const _0x46c816=_0x194de3;this[_0x46c816(0x129)]=new Map(),this[_0x46c816(0xd4)]=new Map(),this[_0x46c816(0xd1)]=new Map(),this[_0x46c816(0xd7)]=new Map(),this[_0x46c816(0xdf)]();}[_0x194de3(0xf2)](){const _0x2c5d8c=_0x194de3;return this[_0x2c5d8c(0x129)];}async[_0x194de3(0xb2)](_0x18e48f){const _0x152e51=_0x194de3,_0x568aec=await this[_0x152e51(0xe1)](_0x18e48f);return this[_0x152e51(0xbf)](_0x568aec),_0x152e51(0x109)===_0x568aec[_0x152e51(0x123)]&&this[_0x152e51(0xfa)](),_0x568aec;}async[_0x194de3(0xe1)](_0x51d8e5){const _0x4fe3c8=_0x194de3;if(_0x51d8e5[_0x4fe3c8(0xda)]===_0x285026[_0x4fe3c8(0xc4)]){const _0x270482=await this[_0x4fe3c8(0x111)][_0x4fe3c8(0xd6)](this[_0x4fe3c8(0x118)],_0x51d8e5['id'])[_0x4fe3c8(0xa4)]();return{'id':_0x4fe3c8(0x109),'uiId':_0x4fe3c8(0x109),'label':_0x4fe3c8(0x102),'type':_0x51d8e5[_0x4fe3c8(0xda)],'content':_0x270482[_0x4fe3c8(0xa2)],'hidden':this[_0x4fe3c8(0xd4)][_0x4fe3c8(0xe8)](_0x4fe3c8(0x109)),'version':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xd5)],'sessionId':_0x270482[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xec)]};}return{'id':_0x51d8e5['id'],'uiId':_0x51d8e5['id'],'label':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0x128)]||_0x51d8e5[_0x4fe3c8(0x107)]||_0x51d8e5[_0x4fe3c8(0xab)]||_0x51d8e5['id'],'type':_0x51d8e5[_0x4fe3c8(0xda)],..._0x51d8e5?.[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]?{'resourceId':_0x51d8e5[_0x4fe3c8(0xcc)]?.[_0x4fe3c8(0xeb)]}:{}};}[_0x194de3(0xb9)](){const _0x3e78db=_0x194de3;return new Map(this[_0x3e78db(0xd4)]);}[_0x194de3(0x114)](_0x25035b){const _0x1f5b31=_0x194de3,_0x3a8cec=this[_0x1f5b31(0x129)][_0x1f5b31(0xf3)](_0x25035b);_0x3a8cec?.[_0x1f5b31(0x10f)]||this[_0x1f5b31(0x101)](_0x25035b);}[_0x194de3(0xa5)](){const _0x3e3776=_0x194de3;if(0x0===this[_0x3e3776(0x129)][_0x3e3776(0xae)])return;for(const _0x5ac66a of this[_0x3e3776(0x129)][_0x3e3776(0x11a)]())this[_0x3e3776(0x101)](_0x5ac66a[_0x3e3776(0x123)]);const _0x5a1d39=this[_0x3e3776(0xd4)][_0x3e3776(0xf3)](_0x3e3776(0x109))||this[_0x3e3776(0x129)][_0x3e3776(0xf3)](_0x3e3776(0x109));_0x5a1d39&&this[_0x3e3776(0xea)]({..._0x5a1d39,'isReadOnly':!0x0,'hidden':!0x0});}[_0x194de3(0x115)](_0x4c646d){const _0x4621d7=_0x194de3;for(const _0x270765 of _0x4c646d[_0x4621d7(0x11a)]())this[_0x4621d7(0xbf)](_0x270765);this[_0x4621d7(0xa5)](),this[_0x4621d7(0xd9)](_0x4621d7(0xa6),{'contextItems':Array[_0x4621d7(0xcf)](this[_0x4621d7(0xb9)]()[_0x4621d7(0x11a)]())});}[_0x194de3(0xbc)](){const _0x4f8baf=_0x194de3;return this[_0x4f8baf(0x129)][_0x4f8baf(0xe8)](_0x4f8baf(0x109));}[_0x194de3(0xe7)](){const _0x381234=_0x194de3;return this[_0x381234(0x129)][_0x381234(0xe8)](_0x381234(0xaf));}[_0x194de3(0x127)](){const _0x24d397=_0x194de3;return this[_0x24d397(0xd4)][_0x24d397(0xe8)](_0x24d397(0x109));}static[_0x194de3(0x10c)](_0x400d87){const _0x5de0b0=_0x194de3;return Array[_0x5de0b0(0xcf)](_0x400d87[_0x5de0b0(0x11a)]())[_0x5de0b0(0x105)](_0x3c4568=>this[_0x5de0b0(0xc7)](_0x3c4568))[_0x5de0b0(0x100)](_0x491aaf=>null!==_0x491aaf);}async[_0x194de3(0x103)](_0x2c5a82,_0x3d0ef0,_0x48ff9d=_0x285026[_0x194de3(0xce)]){const _0x328819=_0x194de3,_0x200b1a=_0x328819(0xf1)+_0x4d7999();this[_0x328819(0xaa)](_0x200b1a);try{await Promise[_0x328819(0xba)](_0x2c5a82[_0x328819(0x105)](async _0x4d3891=>{const _0x2734bf=_0x328819,_0x4c8e56=_0x2734bf(0xb6)+_0x4d7999(),_0x54b542=_0x59e1df(_0x4d3891[_0x2734bf(0x107)]);try{this[_0x2734bf(0xea)]({'type':_0x48ff9d,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x0);const _0x60ccf4=this[_0x2734bf(0x111)][_0x2734bf(0xf8)](this[_0x2734bf(0x118)],_0x4d3891,_0x3d0ef0);this[_0x2734bf(0xd1)][_0x2734bf(0x117)](_0x4c8e56,_0x60ccf4[_0x2734bf(0xee)]);const {id:_0x4fa755}=await _0x60ccf4[_0x2734bf(0xdb)]();this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56),this[_0x2734bf(0xe3)]({'type':_0x48ff9d,'id':_0x4fa755,'label':_0x3d0ef0?.[_0x2734bf(0x128)]||_0x54b542,'uiId':_0x4c8e56,'resourceId':_0x3d0ef0?.[_0x2734bf(0xeb)]},!0x1);}catch(_0x13818c){this[_0x2734bf(0xd1)][_0x2734bf(0x106)](_0x4c8e56);if(!_0x13818c[_0x2734bf(0x120)][_0x2734bf(0xf7)](_0x2734bf(0x113))){const _0x1f0b14=new _0x74f2b5(_0x2734bf(0x11d),null,{'fileName':_0x54b542});_0x1f0b14[_0x2734bf(0xe0)]=_0x13818c[_0x2734bf(0xe0)],this[_0x2734bf(0xd9)](_0x2734bf(0xcb),{'error':_0x1f0b14,'fileName':_0x54b542});}this[_0x2734bf(0x101)](_0x4c8e56);}}));}finally{this[_0x328819(0xb1)](_0x200b1a);}}[_0x194de3(0xbd)](_0x3bad72){const _0x57731a=_0x194de3;if(this[_0x57731a(0xbc)]())return;const _0x28d22e={'type':_0x285026[_0x57731a(0xc4)],'uiId':_0x57731a(0x109),'label':_0x3bad72,'isReadOnly':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109)),'hidden':this[_0x57731a(0xd4)][_0x57731a(0xe8)](_0x57731a(0x109))};this[_0x57731a(0xea)](_0x28d22e);}async[_0x194de3(0xf5)](_0x1c551f,_0x5e03bd,_0x485170,_0x15efb4){const _0x1d6164=_0x194de3,_0x1c3d2f=this[_0x1d6164(0x129)][_0x1d6164(0xf3)](_0x1d6164(0x109));if(_0x1c3d2f&&_0x1c551f){_0x1c3d2f[_0x1d6164(0xaf)]=_0x15efb4?_0x15efb4[_0x1d6164(0x105)](_0x2129c9=>({'start':_0x2129c9[_0x1d6164(0x10a)],'end':_0x2129c9[_0x1d6164(0xc2)]})):[];try{if(_0x1c3d2f[_0x1d6164(0xd5)]===_0x5e03bd)return;const {id:_0x436173}=await this[_0x1d6164(0x111)][_0x1d6164(0xe5)](this[_0x1d6164(0x118)],_0x1c551f,{'version':_0x5e03bd,'sessionId':_0x485170})[_0x1d6164(0xdb)]();_0x1c3d2f['id']=_0x436173,_0x1c3d2f[_0x1d6164(0xa2)]=_0x1c551f,_0x1c3d2f[_0x1d6164(0xd5)]=_0x5e03bd,_0x1c3d2f[_0x1d6164(0xec)]=_0x485170;}catch(_0xc06538){const _0x162433=new _0x74f2b5(_0x1d6164(0x121),null);_0x162433[_0x1d6164(0xe0)]=_0xc06538[_0x1d6164(0xe0)],this[_0x1d6164(0xd9)](_0x1d6164(0xcb),{'error':_0x162433});}}}[_0x194de3(0xff)](_0x421f5f){const _0x421f85=_0x194de3;this[_0x421f85(0xea)]({'type':_0x285026[_0x421f85(0xa8)],'label':_0x421f5f,'uiId':_0x421f85(0xaf),'content':_0x421f5f});}[_0x194de3(0xdc)](){const _0x49a4ea=_0x194de3;this[_0x49a4ea(0x101)](_0x49a4ea(0xaf));}async[_0x194de3(0xfe)](_0x1da7df,_0x3c5c2a){const _0x155d23=_0x194de3,_0x16bacd=_0x155d23(0xe6)+_0x4d7999();this[_0x155d23(0xaa)](_0x16bacd);const _0xcb5d24=_0x155d23(0xe6)+_0x4d7999();try{this[_0x155d23(0xea)]({'type':_0x285026[_0x155d23(0xad)],'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x0);const _0x113dee=this[_0x155d23(0x111)][_0x155d23(0x116)](this[_0x155d23(0x118)],_0x1da7df,_0x3c5c2a);this[_0x155d23(0xd1)][_0x155d23(0x117)](_0xcb5d24,_0x113dee[_0x155d23(0xee)]);const {id:_0x506de8}=await _0x113dee[_0x155d23(0xdb)]();this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),this[_0x155d23(0xe3)]({'type':_0x285026[_0x155d23(0xad)],'id':_0x506de8,'label':_0x3c5c2a?.[_0x155d23(0x128)]||_0x1da7df,'uiId':_0xcb5d24,'resourceId':_0x3c5c2a?.[_0x155d23(0xeb)]},!0x1);}catch(_0x25b661){this[_0x155d23(0xd1)][_0x155d23(0x106)](_0xcb5d24),(_0x25b661[_0x155d23(0x120)][_0x155d23(0xf7)](_0x155d23(0x113))||this[_0x155d23(0xd9)](_0x155d23(0xcb),{'error':new _0x74f2b5(_0x155d23(0xa1),this,{'url':_0x1da7df,'originalError':_0x25b661}),'url':_0x1da7df}),this[_0x155d23(0x101)](_0xcb5d24));}finally{this[_0x155d23(0xb1)](_0x16bacd);}}async[_0x194de3(0x124)](_0x43a6d0,_0x5a6e03,_0x1dc80a){const _0x2ff54a=_0x194de3,_0x265cda=this[_0x2ff54a(0xca)][_0x2ff54a(0xb8)][_0x2ff54a(0xb5)](_0x1056c4=>_0x1056c4['id']===_0x43a6d0);if(!_0x265cda)return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xb7),this,{'sourceId':_0x43a6d0}),'sourceId':_0x43a6d0}),[];try{const _0xca362e=(await _0x265cda[_0x2ff54a(0xb4)](_0x5a6e03))[_0x2ff54a(0x105)](_0x10593e=>{const _0xa5821b=_0x2ff54a,_0x169061=this[_0xa5821b(0x11b)](_0x10593e['id']);return{..._0x10593e,'isInContext':_0x169061};});return _0x265cda[_0x2ff54a(0xa7)]=_0xca362e,this[_0x2ff54a(0xd9)](_0x2ff54a(0x11e),{'sourceId':_0x43a6d0,'source':_0x265cda,'resources':_0xca362e,'uid':_0x1dc80a}),_0xca362e;}catch(_0x361727){return this[_0x2ff54a(0xd9)](_0x2ff54a(0xcb),{'error':new _0x74f2b5(_0x2ff54a(0xfc),this,{'sourceId':_0x43a6d0,'originalError':_0x361727}),'sourceId':_0x43a6d0,'sourceLabel':_0x265cda[_0x2ff54a(0x128)]}),[];}}async[_0x194de3(0x104)](_0x2fa0ac,_0x23ed66){const _0x540213=_0x194de3;if(this[_0x540213(0x11b)](_0x23ed66['id']))return;let _0x1967a7=_0x23ed66[_0x540213(0x11f)];if(!_0x1967a7&&_0x2fa0ac[_0x540213(0xc9)])try{_0x1967a7=await _0x2fa0ac[_0x540213(0xc9)](_0x23ed66['id']);}catch(_0x5208ec){return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa3),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'originalError':_0x5208ec}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}if(_0x1967a7)switch(_0x23ed66[_0x540213(0xda)]){case _0x285026[_0x540213(0xad)]:if(_0x540213(0xd8)!=typeof _0x1967a7)return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xd8),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0xfe)](_0x1967a7,{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xce)]:if(!(_0x1967a7 instanceof File))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xc1),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']});break;case _0x285026[_0x540213(0xfb)]:if(_0x540213(0xa9)!=typeof _0x1967a7||!(_0x540213(0xa2)in _0x1967a7)||!(_0x540213(0xda)in _0x1967a7))return void this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0x11c),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'expectedType':_0x540213(0xcd),'actualType':typeof _0x1967a7}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});_0x1967a7=AIChatContext[_0x540213(0xbe)](_0x1967a7,_0x23ed66[_0x540213(0x128)]),await this[_0x540213(0x103)]([_0x1967a7],{'label':_0x23ed66[_0x540213(0x128)],'resourceId':_0x23ed66['id']},_0x285026[_0x540213(0xfb)]);break;default:this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xde),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id'],'resourceType':_0x23ed66[_0x540213(0xda)]}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}else this[_0x540213(0xd9)](_0x540213(0xcb),{'error':new _0x74f2b5(_0x540213(0xa0),this,{'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']}),'resourceId':_0x23ed66['id'],'sourceId':_0x2fa0ac['id']});}static[_0x194de3(0xbe)](_0x512a33,_0x294f74){const _0xcbc37d=_0x194de3;switch(_0x512a33[_0xcbc37d(0xda)]){case _0x3b0f38[_0xcbc37d(0xf9)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x119)});case _0x3b0f38[_0xcbc37d(0x10e)]:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0xd2)});default:return new File([_0x512a33[_0xcbc37d(0xa2)]],_0x294f74,{'type':_0xcbc37d(0x122)});}}static[_0x194de3(0xc7)](_0x33a5a7){const _0x466733=_0x194de3;switch(_0x33a5a7[_0x466733(0xda)]){case _0x285026[_0x466733(0xce)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xad)]:return{'type':_0x285026[_0x466733(0xad)],'id':_0x33a5a7['id']};case _0x285026[_0x466733(0xc4)]:return{'type':_0x285026[_0x466733(0xc4)],'id':_0x33a5a7['id'],..._0x33a5a7[_0x466733(0xaf)]?.[_0x466733(0x112)]&&{'selection':_0x33a5a7[_0x466733(0xaf)]}};case _0x285026[_0x466733(0xfb)]:return{'type':_0x285026[_0x466733(0xce)],'id':_0x33a5a7['id']};default:return null;}}[_0x194de3(0xea)](_0x11f6d0,_0x28b321=!0x1){const _0x47a875=_0x194de3;if(this[_0x47a875(0x129)][_0x47a875(0x117)](_0x11f6d0[_0x47a875(0x123)],_0x11f6d0),_0x11f6d0[_0x47a875(0x10d)]||this[_0x47a875(0xd9)](_0x47a875(0x10b),{'contextItem':_0x11f6d0,'isLoading':_0x28b321}),_0x47a875(0x109)===_0x11f6d0[_0x47a875(0x123)]&&this[_0x47a875(0xfa)](),_0x11f6d0[_0x47a875(0xeb)]){const _0x1da753=this[_0x47a875(0x12a)](_0x11f6d0[_0x47a875(0xeb)]);_0x1da753&&_0x1da753[_0x47a875(0xdd)](_0x1515c5=>{const _0x2c7c45=_0x47a875;this[_0x2c7c45(0xc3)](_0x1515c5,_0x11f6d0[_0x2c7c45(0xeb)],!0x0);});}}[_0x194de3(0x101)](_0x40dd87){const _0xb51e80=_0x194de3,_0x35afca=this[_0xb51e80(0x129)][_0xb51e80(0xf3)](_0x40dd87),_0x167a1a=this[_0xb51e80(0xd1)][_0xb51e80(0xf3)](_0x40dd87);if(_0x167a1a&&(_0x167a1a[_0xb51e80(0xf0)](),this[_0xb51e80(0xd1)][_0xb51e80(0x106)](_0x40dd87)),_0x35afca?.[_0xb51e80(0xeb)]){const _0x36dbd2=this[_0xb51e80(0x12a)](_0x35afca[_0xb51e80(0xeb)]);_0x36dbd2&&_0x36dbd2[_0xb51e80(0xdd)](_0x36462e=>{const _0x370561=_0xb51e80;this[_0x370561(0xc3)](_0x36462e,_0x35afca[_0x370561(0xeb)],!0x1);});}this[_0xb51e80(0x129)][_0xb51e80(0x106)](_0x40dd87),this[_0xb51e80(0xd9)](_0xb51e80(0x110),{'uiId':_0x40dd87,'type':_0x35afca?.[_0xb51e80(0xda)]}),_0xb51e80(0x109)===_0x40dd87&&this[_0xb51e80(0xfa)]();}[_0x194de3(0xe3)](_0x11d467,_0x1cb936){const _0xc71f74=_0x194de3;if(this[_0xc71f74(0x129)][_0xc71f74(0xe8)](_0x11d467[_0xc71f74(0x123)])&&(this[_0xc71f74(0x129)][_0xc71f74(0x117)](_0x11d467[_0xc71f74(0x123)],_0x11d467),this[_0xc71f74(0xd9)](_0xc71f74(0xd3),{'contextItem':_0x11d467,'isLoading':_0x1cb936}),_0x11d467[_0xc71f74(0xeb)])){const _0x3ebe19=this[_0xc71f74(0x12a)](_0x11d467[_0xc71f74(0xeb)]);_0x3ebe19&&_0x3ebe19[_0xc71f74(0xdd)](_0xbb4e5=>{const _0x28f3c5=_0xc71f74;this[_0x28f3c5(0xc3)](_0xbb4e5,_0x11d467[_0x28f3c5(0xeb)],!0x0);});}}[_0x194de3(0xbf)](_0x263783){const _0x8934e4=_0x194de3;this[_0x8934e4(0xd4)][_0x8934e4(0x117)](_0x263783[_0x8934e4(0x123)],_0x263783);}[_0x194de3(0xdf)](){const _0x13353c=_0x194de3;this[_0x13353c(0xca)]={'document':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xac)]?.[_0x13353c(0xc8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xfd)]?.[_0x13353c(0xc8)]},'files':{'enabled':!0x1!==this[_0x13353c(0x108)]?.[_0x13353c(0xc0)]?.[_0x13353c(0xc8)]},'sources':this[_0x13353c(0xb0)]()},this[_0x13353c(0xd9)](_0x13353c(0xed),{'options':this[_0x13353c(0xca)]});}[_0x194de3(0xb0)](){const _0x23acb5=_0x194de3;return this[_0x23acb5(0x108)]?.[_0x23acb5(0xb8)]?.[_0x23acb5(0x105)](_0x586f09=>({..._0x586f09,'resources':[]}))??[];}[_0x194de3(0xfa)](){const _0x41bc4d=_0x194de3,_0x1cf8c1=this[_0x41bc4d(0xbc)]()||this[_0x41bc4d(0x127)]();this[_0x41bc4d(0xca)][_0x41bc4d(0xac)][_0x41bc4d(0xd0)]=_0x1cf8c1,this[_0x41bc4d(0xd9)](_0x41bc4d(0xed),{'options':this[_0x41bc4d(0xca)]});}[_0x194de3(0x11b)](_0x3d597a){const _0x49b646=_0x194de3;for(const _0x4f29b7 of this[_0x49b646(0x129)][_0x49b646(0x11a)]())if(_0x4f29b7[_0x49b646(0xeb)]===_0x3d597a)return!0x0;for(const _0x15174b of this[_0x49b646(0xd4)][_0x49b646(0x11a)]())if(_0x15174b[_0x49b646(0xeb)]===_0x3d597a)return!0x0;return!0x1;}[_0x194de3(0x12a)](_0x85f959){const _0x3a3b9c=_0x194de3,_0x54d145=[];for(const _0x47a41c of this[_0x3a3b9c(0xca)][_0x3a3b9c(0xb8)]){_0x47a41c[_0x3a3b9c(0xa7)][_0x3a3b9c(0xb5)](_0x3a7288=>_0x3a7288['id']===_0x85f959)&&_0x54d145[_0x3a3b9c(0xbb)](_0x47a41c['id']);}return 0x0===_0x54d145[_0x3a3b9c(0x112)]?null:_0x54d145;}[_0x194de3(0xc3)](_0x5a7a56,_0x173dbd,_0x77f170){const _0x590174=_0x194de3,_0x175b88=this[_0x590174(0xca)][_0x590174(0xb8)][_0x590174(0xb5)](_0x387878=>_0x387878['id']===_0x5a7a56);if(!_0x175b88)return;const _0x467227=_0x175b88[_0x590174(0xa7)][_0x590174(0xb5)](_0x8685e5=>_0x8685e5['id']===_0x173dbd);_0x467227&&(_0x467227[_0x590174(0xef)]=_0x77f170,this[_0x590174(0xd9)](_0x590174(0x126),{'sourceId':_0x5a7a56,'resourceId':_0x173dbd,'isInContext':_0x77f170}));}[_0x194de3(0xaa)](_0x50c9bc){const _0x35a6ed=_0x194de3;this[_0x35a6ed(0xd7)][_0x35a6ed(0x117)](_0x50c9bc,!0x0),this[_0x35a6ed(0xd7)][_0x35a6ed(0xae)]&&this[_0x35a6ed(0xd9)](_0x35a6ed(0x125),{'isUploadInProgress':!0x0});}[_0x194de3(0xb1)](_0x4a0cc7){const _0x145929=_0x194de3;this[_0x145929(0xd7)][_0x145929(0x106)](_0x4a0cc7),0x0===this[_0x145929(0xd7)][_0x145929(0xae)]&&this[_0x145929(0xd9)](_0x145929(0x125),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x9f39f=_0x19b2;(function(_0x34cd5b,_0x5c46af){const _0x54e859=_0x19b2,_0x21fb04=_0x34cd5b();while(!![]){try{const _0x200fbb=-parseInt(_0x54e859(0x13a))/0x1+parseInt(_0x54e859(0x15b))/0x2+parseInt(_0x54e859(0x15d))/0x3*(parseInt(_0x54e859(0x16f))/0x4)+parseInt(_0x54e859(0x174))/0x5*(parseInt(_0x54e859(0x15a))/0x6)+-parseInt(_0x54e859(0x187))/0x7*(parseInt(_0x54e859(0x148))/0x8)+-parseInt(_0x54e859(0x13b))/0x9*(parseInt(_0x54e859(0x186))/0xa)+parseInt(_0x54e859(0x155))/0xb;if(_0x200fbb===_0x5c46af)break;else _0x21fb04['push'](_0x21fb04['shift']());}catch(_0x483d24){_0x21fb04['push'](_0x21fb04['shift']());}}}(_0x5d49,0xdf7c8));import{CKEditorError as _0x3be0fa,EmitterMixin as _0x12a613}from'ckeditor5/src/utils.js';function _0x19b2(_0x158196,_0x586416){const _0x5d4977=_0x5d49();return _0x19b2=function(_0x19b234,_0x32b7ff){_0x19b234=_0x19b234-0x11b;let _0x34c5f5=_0x5d4977[_0x19b234];return _0x34c5f5;},_0x19b2(_0x158196,_0x586416);}import{AI_MODEL_EVENT_NAMES as _0x460168}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x15747d,AI_CONTEXT_MODEL_EVENT_NAMES as _0x17a746}from'./aichatcontext.js';import{AICapabilities as _0x4ed5ce,CAPABILITIES_MODEL_EVENT_NAMES as _0x23938b}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x1c96f0}from'./aichatinteraction.js';export class AIChatConversation extends _0x12a613(){['id'];[_0x9f39f(0x169)]=!0x1;[_0x9f39f(0x177)]=[];[_0x9f39f(0x136)];[_0x9f39f(0x12c)];[_0x9f39f(0x161)];[_0x9f39f(0x16b)];constructor(_0x598a1a){const _0x1fb39b=_0x9f39f;super(),this[_0x1fb39b(0x16b)]=_0x598a1a,this[_0x1fb39b(0x161)]=_0x598a1a[_0x1fb39b(0x161)],this[_0x1fb39b(0x143)]=_0x598a1a[_0x1fb39b(0x143)],this['id']=_0x598a1a[_0x1fb39b(0x157)];}async[_0x9f39f(0x160)](_0x3aaac2){const _0x2a23b9=_0x9f39f;try{this[_0x2a23b9(0x171)]=new _0x15747d({'connector':this[_0x2a23b9(0x161)],'config':_0x3aaac2,'ownerId':this['id']}),this[_0x2a23b9(0x171)][_0x2a23b9(0x13e)](..._0x17a746)['to'](this),this[_0x2a23b9(0x171)][_0x2a23b9(0x160)](),this[_0x2a23b9(0x12e)]=new _0x4ed5ce(),this[_0x2a23b9(0x12e)][_0x2a23b9(0x13e)](..._0x23938b)['to'](this),this[_0x2a23b9(0x12e)][_0x2a23b9(0x160)]();const _0x5ba243=await this[_0x2a23b9(0x143)][_0x2a23b9(0x140)]();this[_0x2a23b9(0x184)](_0x2a23b9(0x139),{'availableModels':_0x5ba243});const _0x10a0c0=await this[_0x2a23b9(0x143)][_0x2a23b9(0x13f)](this[_0x2a23b9(0x16b)][_0x2a23b9(0x167)]);_0x10a0c0&&await this[_0x2a23b9(0x128)](_0x10a0c0);}catch(_0x1a018e){const _0x4144d1=new _0x3be0fa(_0x2a23b9(0x127),null,{'message':_0x1a018e[_0x2a23b9(0x151)]});_0x4144d1[_0x2a23b9(0x12a)]=_0x1a018e[_0x2a23b9(0x12a)],this[_0x2a23b9(0x184)](_0x2a23b9(0x164),{'error':_0x4144d1});}}async[_0x9f39f(0x14b)](){const _0x45ef14=_0x9f39f;if(this[_0x45ef14(0x169)])throw new _0x3be0fa(_0x45ef14(0x176),null,{'conversation':this});if(!this[_0x45ef14(0x12c)])throw new _0x3be0fa(_0x45ef14(0x11c),null,{'conversation':this});try{const {id:_0x39a408}=await this[_0x45ef14(0x161)][_0x45ef14(0x182)](this['id'],this[_0x45ef14(0x16b)][_0x45ef14(0x11e)])[_0x45ef14(0x125)]();this['id']=_0x39a408,this[_0x45ef14(0x169)]=!0x0,this[_0x45ef14(0x184)](_0x45ef14(0x17f),{'conversationId':this['id'],'selectedModel':this[_0x45ef14(0x12c)]});}catch(_0x5622a3){const _0x18e30d=new _0x3be0fa(_0x45ef14(0x121),null,{'message':_0x5622a3[_0x45ef14(0x151)]});_0x18e30d[_0x45ef14(0x12a)]=_0x5622a3[_0x45ef14(0x12a)],this[_0x45ef14(0x184)](_0x45ef14(0x164),{'error':_0x18e30d});}}async[_0x9f39f(0x170)](_0x392d5e,_0x1b0dca){const _0x5887a7=_0x9f39f;try{const _0x2b4562=await this[_0x5887a7(0x161)][_0x5887a7(0x181)](_0x392d5e)[_0x5887a7(0x125)](),_0x3841a7=await this[_0x5887a7(0x161)][_0x5887a7(0x146)](_0x392d5e)[_0x5887a7(0x14f)](),_0x3ae62e=_0x3841a7[0x0][_0x5887a7(0x18d)];this[_0x5887a7(0x169)]=!0x0,this['id']=_0x2b4562['id'],_0x5887a7(0x189)in _0x2b4562?this[_0x5887a7(0x184)](_0x5887a7(0x154),_0x2b4562[_0x5887a7(0x189)],!0x0):this[_0x5887a7(0x184)](_0x5887a7(0x154),'',!0x0);const _0x2bfedb=(await this[_0x5887a7(0x143)][_0x5887a7(0x140)]())[_0x5887a7(0x132)](_0x2db444=>_0x2db444['id'][_0x5887a7(0x158)]()===_0x3ae62e[_0x5887a7(0x158)]());return this[_0x5887a7(0x12c)]=_0x2bfedb,this[_0x5887a7(0x184)](_0x5887a7(0x168),{'selectedModel':_0x2bfedb,'isDisabled':!0x0}),await this[_0x5887a7(0x14a)](_0x3841a7,_0x1b0dca,_0x3ae62e),this[_0x5887a7(0x136)]=void 0x0,this;}catch(_0x13a3b1){const _0x4226bf=new _0x3be0fa(_0x5887a7(0x129),null,{'message':_0x13a3b1[_0x5887a7(0x151)],'conversationId':_0x392d5e});throw _0x4226bf[_0x5887a7(0x12a)]=_0x13a3b1[_0x5887a7(0x12a)],this[_0x5887a7(0x184)](_0x5887a7(0x164),{'error':_0x4226bf}),_0x4226bf;}}async[_0x9f39f(0x14a)](_0x9a4c04,_0x57c455,_0x3efa5c){const _0x58b68b=_0x9f39f;let _0x26993c;for(const _0x48bd52 of _0x9a4c04)if(_0x58b68b(0x131)===_0x48bd52[_0x58b68b(0x18b)]){const _0x2a6c9e=await this[_0x58b68b(0x152)](_0x48bd52),_0x2b75f0={'isReasoningEnabled':Object[_0x58b68b(0x16a)](_0x48bd52[_0x58b68b(0x178)],_0x58b68b(0x11b)),'isWebSearchEnabled':Object[_0x58b68b(0x16a)](_0x48bd52[_0x58b68b(0x178)],_0x58b68b(0x15e))};_0x26993c=this[_0x58b68b(0x179)]({'userMessage':_0x48bd52[_0x58b68b(0x149)],'contextItems':_0x2a6c9e,'capabilities':_0x2b75f0,'modelId':_0x3efa5c,'quickActionData':_0x48bd52[_0x58b68b(0x180)]?.[_0x58b68b(0x17c)]}),this[_0x58b68b(0x136)]=_0x26993c,this[_0x58b68b(0x171)][_0x58b68b(0x150)](this[_0x58b68b(0x136)][_0x58b68b(0x183)]);}else{if(_0x58b68b(0x18a)===_0x48bd52[_0x58b68b(0x18b)]&&_0x26993c)for(const _0x243588 of _0x48bd52[_0x58b68b(0x17d)]){const _0x533c19=_0x58b68b(0x16e)===_0x243588[_0x58b68b(0x16c)]?_0x58b68b(0x166):_0x58b68b(0x15f),_0x1eff5a=_0x26993c[_0x58b68b(0x18c)]()?.[_0x58b68b(0x188)]!==_0x57c455;_0x26993c[_0x58b68b(0x122)]=_0x26993c[_0x58b68b(0x163)]({'type':_0x533c19,'isDone':!0x0,'interactionId':_0x26993c['id'],'areActionsDisabled':_0x1eff5a}),_0x26993c[_0x58b68b(0x122)][_0x58b68b(0x147)](_0x243588[_0x58b68b(0x17d)]);}}}async[_0x9f39f(0x152)](_0x3cd4b4){const _0x1ac7a6=_0x9f39f,_0x1052a4=new Map();if(!_0x3cd4b4[_0x1ac7a6(0x17d)])return _0x1052a4;for(const _0x7f5ce8 of _0x3cd4b4[_0x1ac7a6(0x17d)]){const _0x522517=await this[_0x1ac7a6(0x171)][_0x1ac7a6(0x130)](_0x7f5ce8);_0x522517&&_0x1052a4[_0x1ac7a6(0x14e)](_0x522517['id'],_0x522517);}return _0x1052a4;}async[_0x9f39f(0x15c)]({userMessage:_0x37d91c,quickActionData:_0x26630d}){const _0x33819e=_0x9f39f;if(!this[_0x33819e(0x169)])throw new _0x3be0fa(_0x33819e(0x14d),null,{'conversation':this});if(this[_0x33819e(0x136)])throw new _0x3be0fa(_0x33819e(0x153),null,{'conversation':this});try{const _0x590c29=this[_0x33819e(0x171)][_0x33819e(0x133)](),_0x5304d4=this[_0x33819e(0x12e)][_0x33819e(0x141)](),_0x5e90b7=this[_0x33819e(0x12c)]['id'];this[_0x33819e(0x136)]=this[_0x33819e(0x179)]({'userMessage':_0x37d91c,'contextItems':_0x590c29,'capabilities':_0x5304d4,'modelId':_0x5e90b7,'quickActionData':_0x26630d}),await this[_0x33819e(0x136)][_0x33819e(0x14b)](),this[_0x33819e(0x171)][_0x33819e(0x150)](this[_0x33819e(0x136)][_0x33819e(0x183)]);}catch(_0x402d26){this[_0x33819e(0x184)](_0x33819e(0x164),{'interactionId':this[_0x33819e(0x136)]?this[_0x33819e(0x136)]['id']:void 0x0,'error':_0x402d26});}finally{this[_0x33819e(0x136)]?.[_0x33819e(0x137)](),this[_0x33819e(0x136)]=void 0x0;}}[_0x9f39f(0x179)]({userMessage:_0x48ffd1,contextItems:_0x533d14,capabilities:_0x45a3df,modelId:_0x44d770,quickActionData:_0x2a44d3}){const _0x56205e=_0x9f39f,_0x4187b9=new _0x1c96f0({'userMessage':_0x48ffd1,'contextItems':_0x533d14,'capabilities':_0x45a3df,'conversationId':this['id'],'connector':this[_0x56205e(0x161)],'editor':this[_0x56205e(0x16b)][_0x56205e(0x124)]&&this[_0x56205e(0x16b)][_0x56205e(0x124)](),'model':_0x44d770,'quickActionData':_0x2a44d3});return _0x4187b9[_0x56205e(0x13e)](..._0x460168)['to'](this),this[_0x56205e(0x177)][_0x56205e(0x17e)](_0x4187b9),this[_0x56205e(0x184)](_0x56205e(0x11d),_0x4187b9),_0x4187b9;}[_0x9f39f(0x175)](_0x11ffd7){const _0x5354ef=_0x9f39f;return this[_0x5354ef(0x177)][_0x5354ef(0x132)](_0x32180c=>_0x32180c['id']===_0x11ffd7);}[_0x9f39f(0x16d)](_0x4ba4b1){const _0x45d7e4=_0x9f39f,_0x3b0926=this[_0x45d7e4(0x175)](_0x4ba4b1);_0x3b0926&&(_0x3b0926[_0x45d7e4(0x142)](),this[_0x45d7e4(0x177)][_0x45d7e4(0x17b)](this[_0x45d7e4(0x177)][_0x45d7e4(0x12f)](_0x3b0926),0x1));}get[_0x9f39f(0x173)](){const _0x38a1f3=_0x9f39f;return this[_0x38a1f3(0x177)][this[_0x38a1f3(0x177)][_0x38a1f3(0x12b)]-0x1];}[_0x9f39f(0x123)](_0x44b468){const _0x5188aa=_0x9f39f;this[_0x5188aa(0x171)][_0x5188aa(0x123)](_0x44b468);}async[_0x9f39f(0x185)]({content:_0xe2ef1e,version:_0x7bc4b8,sessionId:_0x47d1fe,selections:_0xd146a2}){const _0xd60aa0=_0x9f39f;await this[_0xd60aa0(0x171)][_0xd60aa0(0x134)](_0xe2ef1e,_0x7bc4b8,_0x47d1fe,_0xd146a2);}[_0x9f39f(0x162)](){const _0x5b9151=_0x9f39f;return this[_0x5b9151(0x136)]?.[_0x5b9151(0x18c)]()?.[_0x5b9151(0x17d)]||'';}[_0x9f39f(0x159)](_0x4ce562){const _0x4814d5=_0x9f39f;this[_0x4814d5(0x171)][_0x4814d5(0x159)](_0x4ce562);}[_0x9f39f(0x135)](){const _0x6b8780=_0x9f39f;this[_0x6b8780(0x171)][_0x6b8780(0x135)]();}[_0x9f39f(0x126)](_0x456e3f){const _0x4253a5=_0x9f39f;this[_0x4253a5(0x171)][_0x4253a5(0x126)](_0x456e3f);}[_0x9f39f(0x11f)](_0x5d54ea){const _0x42afd8=_0x9f39f;this[_0x42afd8(0x171)][_0x42afd8(0x11f)](_0x5d54ea);}[_0x9f39f(0x145)](_0x472100,_0x4541db){const _0x203b80=_0x9f39f;this[_0x203b80(0x171)][_0x203b80(0x145)](_0x472100,_0x4541db);}[_0x9f39f(0x13d)](_0x2a63a6,_0x2a542a,_0x89e4fd){const _0x55bbc0=_0x9f39f;return this[_0x55bbc0(0x171)][_0x55bbc0(0x13d)](_0x2a63a6,_0x2a542a,_0x89e4fd);}[_0x9f39f(0x120)](_0x330f9a){const _0x2b0aa6=_0x9f39f;this[_0x2b0aa6(0x171)][_0x2b0aa6(0x120)](_0x330f9a);}[_0x9f39f(0x144)](){const _0x3e5286=_0x9f39f;this[_0x3e5286(0x12e)][_0x3e5286(0x144)]();}[_0x9f39f(0x13c)](){const _0x1aa8aa=_0x9f39f;this[_0x1aa8aa(0x12e)][_0x1aa8aa(0x13c)]();}[_0x9f39f(0x172)](){const _0xed8830=_0x9f39f;return this[_0xed8830(0x171)][_0xed8830(0x172)]();}[_0x9f39f(0x156)](){const _0x2591de=_0x9f39f;return this[_0x2591de(0x171)][_0x2591de(0x156)]();}[_0x9f39f(0x17a)](){const _0x510ebe=_0x9f39f;return this[_0x510ebe(0x171)][_0x510ebe(0x17a)]();}async[_0x9f39f(0x128)](_0x5742e3){const _0x40248f=_0x9f39f;if(!_0x5742e3)throw new _0x3be0fa(_0x40248f(0x14c),null,{'conversation':this});if(!0x1===await this[_0x40248f(0x143)][_0x40248f(0x12d)](_0x5742e3))throw new _0x3be0fa(_0x40248f(0x138),null,{'conversation':this,'model':_0x5742e3});_0x5742e3['id']!==this[_0x40248f(0x12c)]?.['id']&&(this[_0x40248f(0x12c)]=_0x5742e3,this[_0x40248f(0x12e)][_0x40248f(0x165)](),this[_0x40248f(0x184)](_0x40248f(0x168),{'selectedModel':_0x5742e3}));}}function _0x5d49(){const _0x276063=['24MCgMyW','prompt','_processMessagesToInteractions','start','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','set','getMessages','addToConversationContext','message','_extractContextItems','ai-chat-handle-user-interaction-already-in-progress','setConversationTitle','4233878tHibOS','isCurrentDocumentInConversation','conversationId','toLowerCase','addSelectionToContext','30054ffpXFp','3535158UlQXmd','handleUserInteraction','687WiNGlo','webSearch','modification-delta','init','connector','getCurrentDocumentContext','createReply','error','reset','text-delta','defaultModelId','modelSelected','isStarted','hasOwn','options','type','removeInteraction','text','3076sIZFYs','load','chatContext','isCurrentDocumentInContext','lastInteraction','1785NtrDQB','getInteraction','ai-chat-conversation-already-started','interactions','capabilities','createInteraction','isSelectionInContext','splice','quickActionData','content','push','conversationStarted','attributes','fetchConversation','startConversation','contextItems','fire','updateCurrentDocumentInContext','65270LdTaOj','2462369sBCJtY','sessionId','title','assistant','role','getDocumentContext','model','reasoning','ai-chat-conversation-start-no-model-selected','interactionCreated','group','addUrlToContext','removeFromContext','ai-chat-conversation-start-failed','currentReply','addCurrentDocumentToContext','getEditor','getConversation','addFilesToContext','ai-chat-conversation-init-failed','setModel','ai-chat-conversation-init-from-id-failed','stack','length','selectedModel','isAvailable','chatCapabilities','indexOf','populateFromMessage','user','find','getPendingContextItems','updateCurrentDocument','removeSelectionFromContext','currentInteraction','stop','ai-chat-conversation-set-model-not-available','conversationInitialized','533921wxyZzK','2223EobZqI','toggleReasoning','loadSourceResources','delegate','getDefault','getAll','getCapabilitiesConfig','destroy','chatModels','toggleWebSearch','addResourceToContext','fetchConversationMessages','appendContent'];_0x5d49=function(){return _0x276063;};return _0x5d49();}
|
|
23
|
+
function _0x29dd(){const _0x35d9e5=['delegate','lastInteraction','getDefault','contextItems','setModel','handleUserInteraction','1032VybGyV','getInteraction','isCurrentDocumentInContext','reset','find','382417Emkyzs','36uXFcnt','ai-chat-conversation-already-started','isCurrentDocumentInConversation','getAll','153515uOUbZZ','assistant','ai-chat-conversation-init-from-id-failed','11wqVTdX','createInteraction','483VVZUnx','updateCurrentDocument','destroy','chatContext','321016Iqgswo','splice','length','getDocumentContext','group','conversationStarted','_extractContextItems','getPendingContextItems','prompt','241805mBpxKk','conversationInitialized','startConversation','message','content','addUrlToContext','currentInteraction','addResourceToContext','isStarted','ai-chat-conversation-set-model-null','fire','quickActionData','attributes','role','defaultModelId','sessionId','addToConversationContext','loadSourceResources','ai-chat-conversation-set-model-not-available','isSelectionInContext','getConversation','capabilities','isAvailable','getCapabilitiesConfig','init','interactions','removeFromContext','type','5971810DwHOpe','conversationId','text','stack','2148zMcbeE','populateFromMessage','load','indexOf','ai-chat-conversation-init-failed','title','chatCapabilities','updateCurrentDocumentInContext','start','reasoning','ai-chat-conversation-start-failed','user','setConversationTitle','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','addSelectionToContext','_processMessagesToInteractions','error','5031xPmSFF','toLowerCase','text-delta','connector','modification-delta','toggleReasoning','model','toggleWebSearch','options','currentReply','modelSelected','appendContent','webSearch','interactionCreated','hasOwn','push','set','addFilesToContext','ai-chat-handle-user-interaction-already-in-progress','removeSelectionFromContext','stop','selectedModel','removeInteraction','createReply','chatModels','fetchConversationMessages','getMessages','getCurrentDocumentContext','getEditor','fetchConversation','ai-chat-conversation-start-no-model-selected'];_0x29dd=function(){return _0x35d9e5;};return _0x29dd();}const _0x553bfe=_0x48e1;(function(_0x4019be,_0x55a62f){const _0x554c95=_0x48e1,_0x561b73=_0x4019be();while(!![]){try{const _0x1525d5=parseInt(_0x554c95(0x1fd))/0x1+parseInt(_0x554c95(0x1f4))/0x2+parseInt(_0x554c95(0x1f0))/0x3*(parseInt(_0x554c95(0x21d))/0x4)+parseInt(_0x554c95(0x1eb))/0x5*(parseInt(_0x554c95(0x1e7))/0x6)+parseInt(_0x554c95(0x1e6))/0x7+parseInt(_0x554c95(0x1e1))/0x8*(parseInt(_0x554c95(0x22f))/0x9)+-parseInt(_0x554c95(0x219))/0xa*(parseInt(_0x554c95(0x1ee))/0xb);if(_0x1525d5===_0x55a62f)break;else _0x561b73['push'](_0x561b73['shift']());}catch(_0x57418f){_0x561b73['push'](_0x561b73['shift']());}}}(_0x29dd,0x31735));function _0x48e1(_0x415212,_0xb361cb){const _0x29dde4=_0x29dd();return _0x48e1=function(_0x48e12c,_0x3263c7){_0x48e12c=_0x48e12c-0x1bd;let _0x33a984=_0x29dde4[_0x48e12c];return _0x33a984;},_0x48e1(_0x415212,_0xb361cb);}import{CKEditorError as _0x53d72b,EmitterMixin as _0x22ffd0}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b1e7b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3f2ae3,AI_CONTEXT_MODEL_EVENT_NAMES as _0x21d635}from'./aichatcontext.js';import{AICapabilities as _0x4e9e24,CAPABILITIES_MODEL_EVENT_NAMES as _0x399fac}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x467d53}from'./aichatinteraction.js';export class AIChatConversation extends _0x22ffd0(){['id'];[_0x553bfe(0x205)]=!0x1;[_0x553bfe(0x216)]=[];[_0x553bfe(0x203)];[_0x553bfe(0x1d1)];[_0x553bfe(0x1bf)];[_0x553bfe(0x1c4)];constructor(_0x4ef96c){const _0x4ebabd=_0x553bfe;super(),this[_0x4ebabd(0x1c4)]=_0x4ef96c,this[_0x4ebabd(0x1bf)]=_0x4ef96c[_0x4ebabd(0x1bf)],this[_0x4ebabd(0x1d4)]=_0x4ef96c[_0x4ebabd(0x1d4)],this['id']=_0x4ef96c[_0x4ebabd(0x21a)];}async[_0x553bfe(0x215)](_0x152a66){const _0x2d477b=_0x553bfe;try{this[_0x2d477b(0x1f3)]=new _0x3f2ae3({'connector':this[_0x2d477b(0x1bf)],'config':_0x152a66,'ownerId':this['id']}),this[_0x2d477b(0x1f3)][_0x2d477b(0x1db)](..._0x21d635)['to'](this),this[_0x2d477b(0x1f3)][_0x2d477b(0x215)](),this[_0x2d477b(0x223)]=new _0x4e9e24(),this[_0x2d477b(0x223)][_0x2d477b(0x1db)](..._0x399fac)['to'](this),this[_0x2d477b(0x223)][_0x2d477b(0x215)]();const _0x44e06b=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1ea)]();this[_0x2d477b(0x207)](_0x2d477b(0x1fe),{'availableModels':_0x44e06b});const _0x2dc3f8=await this[_0x2d477b(0x1d4)][_0x2d477b(0x1dd)](this[_0x2d477b(0x1c4)][_0x2d477b(0x20b)]);_0x2dc3f8&&await this[_0x2d477b(0x1df)](_0x2dc3f8);}catch(_0x17d203){const _0x59417d=new _0x53d72b(_0x2d477b(0x221),null,{'message':_0x17d203[_0x2d477b(0x200)]});_0x59417d[_0x2d477b(0x21c)]=_0x17d203[_0x2d477b(0x21c)],this[_0x2d477b(0x207)](_0x2d477b(0x22e),{'error':_0x59417d});}}async[_0x553bfe(0x225)](){const _0x569b50=_0x553bfe;if(this[_0x569b50(0x205)])throw new _0x53d72b(_0x569b50(0x1e8),null,{'conversation':this});if(!this[_0x569b50(0x1d1)])throw new _0x53d72b(_0x569b50(0x1da),null,{'conversation':this});try{const {id:_0x6b8c07}=await this[_0x569b50(0x1bf)][_0x569b50(0x1ff)](this['id'],this[_0x569b50(0x1c4)][_0x569b50(0x1f8)])[_0x569b50(0x211)]();this['id']=_0x6b8c07,this[_0x569b50(0x205)]=!0x0,this[_0x569b50(0x207)](_0x569b50(0x1f9),{'conversationId':this['id'],'selectedModel':this[_0x569b50(0x1d1)]});}catch(_0x1561ea){const _0x5f51ef=new _0x53d72b(_0x569b50(0x227),null,{'message':_0x1561ea[_0x569b50(0x200)]});_0x5f51ef[_0x569b50(0x21c)]=_0x1561ea[_0x569b50(0x21c)],this[_0x569b50(0x207)](_0x569b50(0x22e),{'error':_0x5f51ef});}}async[_0x553bfe(0x21f)](_0x279b98,_0x1a88d4){const _0x2fd802=_0x553bfe;try{const _0xeac405=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d9)](_0x279b98)[_0x2fd802(0x211)](),_0x4ce7c8=await this[_0x2fd802(0x1bf)][_0x2fd802(0x1d5)](_0x279b98)[_0x2fd802(0x1d6)](),_0x521661=_0x4ce7c8[0x0][_0x2fd802(0x1c2)];this[_0x2fd802(0x205)]=!0x0,this['id']=_0xeac405['id'],_0x2fd802(0x222)in _0xeac405?this[_0x2fd802(0x207)](_0x2fd802(0x229),_0xeac405[_0x2fd802(0x222)],!0x0):this[_0x2fd802(0x207)](_0x2fd802(0x229),'',!0x0);const _0x5a820d=(await this[_0x2fd802(0x1d4)][_0x2fd802(0x1ea)]())[_0x2fd802(0x1e5)](_0x407914=>_0x407914['id'][_0x2fd802(0x1bd)]()===_0x521661[_0x2fd802(0x1bd)]());return this[_0x2fd802(0x1d1)]=_0x5a820d,this[_0x2fd802(0x207)](_0x2fd802(0x1c6),{'selectedModel':_0x5a820d,'isDisabled':!0x0}),await this[_0x2fd802(0x22d)](_0x4ce7c8,_0x1a88d4,_0x521661),this[_0x2fd802(0x203)]=void 0x0,this;}catch(_0x193f56){const _0x4cc45d=new _0x53d72b(_0x2fd802(0x1ed),null,{'message':_0x193f56[_0x2fd802(0x200)],'conversationId':_0x279b98});throw _0x4cc45d[_0x2fd802(0x21c)]=_0x193f56[_0x2fd802(0x21c)],this[_0x2fd802(0x207)](_0x2fd802(0x22e),{'error':_0x4cc45d}),_0x4cc45d;}}async[_0x553bfe(0x22d)](_0x4d94df,_0x22b8b2,_0xc53e71){const _0x45923f=_0x553bfe;let _0x5dda47;for(const _0x175709 of _0x4d94df)if(_0x45923f(0x228)===_0x175709[_0x45923f(0x20a)]){const _0x597c05=await this[_0x45923f(0x1fa)](_0x175709),_0x1b6cf8={'isReasoningEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x226)),'isWebSearchEnabled':Object[_0x45923f(0x1ca)](_0x175709[_0x45923f(0x212)],_0x45923f(0x1c8))};_0x5dda47=this[_0x45923f(0x1ef)]({'userMessage':_0x175709[_0x45923f(0x1fc)],'contextItems':_0x597c05,'capabilities':_0x1b6cf8,'modelId':_0xc53e71,'quickActionData':_0x175709[_0x45923f(0x209)]?.[_0x45923f(0x208)]}),this[_0x45923f(0x203)]=_0x5dda47,this[_0x45923f(0x1f3)][_0x45923f(0x20d)](this[_0x45923f(0x203)][_0x45923f(0x1de)]);}else{if(_0x45923f(0x1ec)===_0x175709[_0x45923f(0x20a)]&&_0x5dda47)for(const _0x1c48cf of _0x175709[_0x45923f(0x201)]){const _0x5c5703=_0x45923f(0x21b)===_0x1c48cf[_0x45923f(0x218)]?_0x45923f(0x1be):_0x45923f(0x1c0),_0x19ffda=_0x5dda47[_0x45923f(0x1f7)]()?.[_0x45923f(0x20c)]!==_0x22b8b2;_0x5dda47[_0x45923f(0x1c5)]=_0x5dda47[_0x45923f(0x1d3)]({'type':_0x5c5703,'isDone':!0x0,'interactionId':_0x5dda47['id'],'areActionsDisabled':_0x19ffda}),_0x5dda47[_0x45923f(0x1c5)][_0x45923f(0x1c7)](_0x1c48cf[_0x45923f(0x201)]);}}}async[_0x553bfe(0x1fa)](_0x5535f0){const _0x52a106=_0x553bfe,_0x41ce97=new Map();if(!_0x5535f0[_0x52a106(0x201)])return _0x41ce97;for(const _0x3b7d6c of _0x5535f0[_0x52a106(0x201)]){const _0x1e7564=await this[_0x52a106(0x1f3)][_0x52a106(0x21e)](_0x3b7d6c);_0x1e7564&&_0x41ce97[_0x52a106(0x1cc)](_0x1e7564['id'],_0x1e7564);}return _0x41ce97;}async[_0x553bfe(0x1e0)]({userMessage:_0x10e13d,quickActionData:_0x30d98e}){const _0x1ffd60=_0x553bfe;if(!this[_0x1ffd60(0x205)])throw new _0x53d72b(_0x1ffd60(0x22b),null,{'conversation':this});if(this[_0x1ffd60(0x203)])throw new _0x53d72b(_0x1ffd60(0x1ce),null,{'conversation':this});try{const _0x318e60=this[_0x1ffd60(0x1f3)][_0x1ffd60(0x1fb)](),_0x491294=this[_0x1ffd60(0x223)][_0x1ffd60(0x214)](),_0x31efeb=this[_0x1ffd60(0x1d1)]['id'];this[_0x1ffd60(0x203)]=this[_0x1ffd60(0x1ef)]({'userMessage':_0x10e13d,'contextItems':_0x318e60,'capabilities':_0x491294,'modelId':_0x31efeb,'quickActionData':_0x30d98e}),await this[_0x1ffd60(0x203)][_0x1ffd60(0x225)](),this[_0x1ffd60(0x1f3)][_0x1ffd60(0x20d)](this[_0x1ffd60(0x203)][_0x1ffd60(0x1de)]);}catch(_0x21ac2e){this[_0x1ffd60(0x207)](_0x1ffd60(0x22e),{'interactionId':this[_0x1ffd60(0x203)]?this[_0x1ffd60(0x203)]['id']:void 0x0,'error':_0x21ac2e});}finally{this[_0x1ffd60(0x203)]?.[_0x1ffd60(0x1d0)](),this[_0x1ffd60(0x203)]=void 0x0;}}[_0x553bfe(0x1ef)]({userMessage:_0xd172d3,contextItems:_0x2df870,capabilities:_0x1ab136,modelId:_0x3701bc,quickActionData:_0x18f926}){const _0x5cf724=_0x553bfe,_0x45b5b7=new _0x467d53({'userMessage':_0xd172d3,'contextItems':_0x2df870,'capabilities':_0x1ab136,'conversationId':this['id'],'connector':this[_0x5cf724(0x1bf)],'editor':this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)]&&this[_0x5cf724(0x1c4)][_0x5cf724(0x1d8)](),'model':_0x3701bc,'quickActionData':_0x18f926});return _0x45b5b7[_0x5cf724(0x1db)](..._0x4b1e7b)['to'](this),this[_0x5cf724(0x216)][_0x5cf724(0x1cb)](_0x45b5b7),this[_0x5cf724(0x207)](_0x5cf724(0x1c9),_0x45b5b7),_0x45b5b7;}[_0x553bfe(0x1e2)](_0x523a57){const _0x272802=_0x553bfe;return this[_0x272802(0x216)][_0x272802(0x1e5)](_0x3e2ae8=>_0x3e2ae8['id']===_0x523a57);}[_0x553bfe(0x1d2)](_0xcfdfda){const _0x54f81b=_0x553bfe,_0x3e50cf=this[_0x54f81b(0x1e2)](_0xcfdfda);_0x3e50cf&&(_0x3e50cf[_0x54f81b(0x1f2)](),this[_0x54f81b(0x216)][_0x54f81b(0x1f5)](this[_0x54f81b(0x216)][_0x54f81b(0x220)](_0x3e50cf),0x1));}get[_0x553bfe(0x1dc)](){const _0x18542=_0x553bfe;return this[_0x18542(0x216)][this[_0x18542(0x216)][_0x18542(0x1f6)]-0x1];}[_0x553bfe(0x22a)](_0x4ed1fb){const _0x4283a1=_0x553bfe;this[_0x4283a1(0x1f3)][_0x4283a1(0x22a)](_0x4ed1fb);}async[_0x553bfe(0x224)]({content:_0x25801a,version:_0xa812b3,sessionId:_0x4c7ed6,selections:_0x1c2217}){const _0x48fe52=_0x553bfe;await this[_0x48fe52(0x1f3)][_0x48fe52(0x1f1)](_0x25801a,_0xa812b3,_0x4c7ed6,_0x1c2217);}[_0x553bfe(0x1d7)](){const _0x4c202b=_0x553bfe;return this[_0x4c202b(0x203)]?.[_0x4c202b(0x1f7)]()?.[_0x4c202b(0x201)]||'';}[_0x553bfe(0x22c)](_0x24df40){const _0x4c0734=_0x553bfe;this[_0x4c0734(0x1f3)][_0x4c0734(0x22c)](_0x24df40);}[_0x553bfe(0x1cf)](){const _0xdd65a2=_0x553bfe;this[_0xdd65a2(0x1f3)][_0xdd65a2(0x1cf)]();}[_0x553bfe(0x1cd)](_0x520a57){const _0xf57391=_0x553bfe;this[_0xf57391(0x1f3)][_0xf57391(0x1cd)](_0x520a57);}[_0x553bfe(0x202)](_0x592bb5){const _0x1282c6=_0x553bfe;this[_0x1282c6(0x1f3)][_0x1282c6(0x202)](_0x592bb5);}[_0x553bfe(0x204)](_0x42cf91,_0x5b35db){const _0x317d12=_0x553bfe;this[_0x317d12(0x1f3)][_0x317d12(0x204)](_0x42cf91,_0x5b35db);}[_0x553bfe(0x20e)](_0x2c1709,_0x285988,_0x5e4870){const _0x1dd1c0=_0x553bfe;return this[_0x1dd1c0(0x1f3)][_0x1dd1c0(0x20e)](_0x2c1709,_0x285988,_0x5e4870);}[_0x553bfe(0x217)](_0x2cea2d){const _0x43281e=_0x553bfe;this[_0x43281e(0x1f3)][_0x43281e(0x217)](_0x2cea2d);}[_0x553bfe(0x1c3)](){const _0x47b5ef=_0x553bfe;this[_0x47b5ef(0x223)][_0x47b5ef(0x1c3)]();}[_0x553bfe(0x1c1)](){const _0x2d44c2=_0x553bfe;this[_0x2d44c2(0x223)][_0x2d44c2(0x1c1)]();}[_0x553bfe(0x1e3)](){const _0x46534d=_0x553bfe;return this[_0x46534d(0x1f3)][_0x46534d(0x1e3)]();}[_0x553bfe(0x1e9)](){const _0x5077d9=_0x553bfe;return this[_0x5077d9(0x1f3)][_0x5077d9(0x1e9)]();}[_0x553bfe(0x210)](){const _0x49c764=_0x553bfe;return this[_0x49c764(0x1f3)][_0x49c764(0x210)]();}async[_0x553bfe(0x1df)](_0x2cea70){const _0x1c46f7=_0x553bfe;if(!_0x2cea70)throw new _0x53d72b(_0x1c46f7(0x206),null,{'conversation':this});if(!0x1===await this[_0x1c46f7(0x1d4)][_0x1c46f7(0x213)](_0x2cea70))throw new _0x53d72b(_0x1c46f7(0x20f),null,{'conversation':this,'model':_0x2cea70});_0x2cea70['id']!==this[_0x1c46f7(0x1d1)]?.['id']&&(this[_0x1c46f7(0x1d1)]=_0x2cea70,this[_0x1c46f7(0x223)][_0x1c46f7(0x1e4)](),this[_0x1c46f7(0x207)](_0x1c46f7(0x1c6),{'selectedModel':_0x2cea70}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x47c918=_0x2498;(function(_0x2abc44,_0x289d6a){var _0x1499e3=_0x2498,_0x521989=_0x2abc44();while(!![]){try{var _0x3b1237=-parseInt(_0x1499e3(0x10b))/0x1*(-parseInt(_0x1499e3(0x109))/0x2)+-parseInt(_0x1499e3(0x104))/0x3*(parseInt(_0x1499e3(0x11b))/0x4)+parseInt(_0x1499e3(0x10f))/0x5*(parseInt(_0x1499e3(0x117))/0x6)+parseInt(_0x1499e3(0x108))/0x7+parseInt(_0x1499e3(0x113))/0x8+-parseInt(_0x1499e3(0x10a))/0x9*(-parseInt(_0x1499e3(0x107))/0xa)+parseInt(_0x1499e3(0x105))/0xb*(-parseInt(_0x1499e3(0x106))/0xc);if(_0x3b1237===_0x289d6a)break;else _0x521989['push'](_0x521989['shift']());}catch(_0x49a6df){_0x521989['push'](_0x521989['shift']());}}}(_0x55d6,0xbdecc));function _0x55d6(){var _0x1cefa6=['connector','mapContextItemsToRequestData','conversationId','2972nYFwHA','get','userMessage','129FQkIFt','1837KgqDgt','146088sVvyUQ','12790kpriTR','3687320muLnGt','5306crvVjf','7713pyWBGW','182lAPWms','contextItems','queryAssistant','sendRequest','225oDesRs','capabilities','model','current-document','839480UGgaer','quickActionData','getDocumentContext','getCapabilitiesRequestData','84306cjuXfR'];_0x55d6=function(){return _0x1cefa6;};return _0x55d6();}import{AICapabilities as _0x3b3290}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x3b05df}from'../../aicore/model/aiinteraction.js';function _0x2498(_0xa84bc,_0x13a32f){var _0x55d667=_0x55d6();return _0x2498=function(_0x249808,_0x5cd4c5){_0x249808=_0x249808-0x103;var _0xb09426=_0x55d667[_0x249808];return _0xb09426;},_0x2498(_0xa84bc,_0x13a32f);}import{AIChatContext as _0x196754}from'./aichatcontext.js';export class AIChatInteraction extends _0x3b05df{[_0x47c918(0x103)];[_0x47c918(0x11a)];[_0x47c918(0x10c)]=new Map();[_0x47c918(0x111)];[_0x47c918(0x114)];constructor(_0x17696a){var _0x152a99=_0x47c918;super(_0x17696a),this[_0x152a99(0x11a)]=_0x17696a[_0x152a99(0x11a)],this[_0x152a99(0x10c)]=_0x17696a[_0x152a99(0x10c)],this[_0x152a99(0x110)]=_0x17696a[_0x152a99(0x110)],this[_0x152a99(0x103)]=_0x17696a[_0x152a99(0x103)],this[_0x152a99(0x111)]=_0x17696a[_0x152a99(0x111)],this[_0x152a99(0x114)]=_0x17696a[_0x152a99(0x114)];}async[_0x47c918(0x10e)](){var _0x3063b3=_0x47c918;return this[_0x3063b3(0x118)][_0x3063b3(0x10d)]({'message':this[_0x3063b3(0x103)],'conversationId':this[_0x3063b3(0x11a)],'parts':_0x196754[_0x3063b3(0x119)](this[_0x3063b3(0x10c)]),'capabilities':_0x3b3290[_0x3063b3(0x116)](this[_0x3063b3(0x110)]),'model':this[_0x3063b3(0x111)],'quickActionData':this[_0x3063b3(0x114)]});}[_0x47c918(0x115)](){var _0x15b5f1=_0x47c918;return this[_0x15b5f1(0x10c)][_0x15b5f1(0x11c)](_0x15b5f1(0x112));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40a7b2=_0x188a;(function(_0x542f93,_0x309a4a){const _0x37d1d8=_0x188a,_0x286000=_0x542f93();while(!![]){try{const _0x490f63=-parseInt(_0x37d1d8(0x1c4))/0x1+-parseInt(_0x37d1d8(0x1b8))/0x2*(parseInt(_0x37d1d8(0x1c2))/0x3)+parseInt(_0x37d1d8(0x1bd))/0x4*(-parseInt(_0x37d1d8(0x1c5))/0x5)+-parseInt(_0x37d1d8(0x1b4))/0x6*(-parseInt(_0x37d1d8(0x1c6))/0x7)+-parseInt(_0x37d1d8(0x1b0))/0x8*(-parseInt(_0x37d1d8(0x1c7))/0x9)+-parseInt(_0x37d1d8(0x1af))/0xa+parseInt(_0x37d1d8(0x1b3))/0xb;if(_0x490f63===_0x309a4a)break;else _0x286000['push'](_0x286000['shift']());}catch(_0x1d81a5){_0x286000['push'](_0x286000['shift']());}}}(_0x2b79,0xd2f75));import{EmitterMixin as _0xd1f1f,logWarning as _0x209018}from'ckeditor5/src/utils.js';function _0x188a(_0x12467c,_0x505eac){const _0x2b7936=_0x2b79();return _0x188a=function(_0x188a00,_0x59a5f7){_0x188a00=_0x188a00-0x1ae;let _0x3244cb=_0x2b7936[_0x188a00];return _0x3244cb;},_0x188a(_0x12467c,_0x505eac);}export class AIChatModels extends _0xd1f1f(){[_0x40a7b2(0x1bc)]=[];[_0x40a7b2(0x1bf)];constructor({connector:_0x334f69}){const _0x2e6139=_0x40a7b2;super(),this[_0x2e6139(0x1bf)]=_0x334f69;}async[_0x40a7b2(0x1b6)](){const _0x74bc02=_0x40a7b2;if(!this[_0x74bc02(0x1bc)][_0x74bc02(0x1ba)]){const _0x44a14e=this[_0x74bc02(0x1bf)][_0x74bc02(0x1c3)](),_0x29689c=(await _0x44a14e[_0x74bc02(0x1b9)]())[_0x74bc02(0x1ca)][_0x74bc02(0x1b1)]((_0x1ab3fc,_0x624dc2)=>{const _0x32783f=_0x74bc02,_0x1e5016=Object[_0x32783f(0x1bb)](_0x1ab3fc[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x212570=>_0x212570[_0x32783f(0x1b2)])[_0x32783f(0x1ba)];return Object[_0x32783f(0x1bb)](_0x624dc2[_0x32783f(0x1cb)])[_0x32783f(0x1be)](_0x274def=>_0x274def[_0x32783f(0x1b2)])[_0x32783f(0x1ba)]-_0x1e5016;});this[_0x74bc02(0x1bc)]=_0x29689c;}return this[_0x74bc02(0x1bc)];}async[_0x40a7b2(0x1b7)](_0xc69262){const _0x234541=_0x40a7b2,_0x4c063=await this[_0x234541(0x1b6)]();if(!_0x4c063[_0x234541(0x1ba)])return null;if(_0xc69262){const _0x41f7b7=_0x4c063[_0x234541(0x1b5)](_0x1ff698=>_0x1ff698['id']===_0xc69262);if(_0x41f7b7)return _0x41f7b7;_0x209018(_0x234541(0x1c1),{'defaultModelId':_0xc69262,'fallBackModelId':_0x4c063[0x0]['id']});}return _0x4c063[0x0];}async[_0x40a7b2(0x1c0)](_0x434c2f){const _0x288403=_0x40a7b2;return(await this[_0x288403(0x1b6)]())[_0x288403(0x1c8)](_0xca4c05=>_0xca4c05[_0x288403(0x1ae)]===_0x434c2f[_0x288403(0x1ae)]&&_0xca4c05[_0x288403(0x1c9)]===_0x434c2f[_0x288403(0x1c9)]);}}function _0x2b79(){const _0x1efbde=['provider','items','capabilities','name','16105600oRREph','8dbINnB','sort','enabled','16632957cOodvd','366SIEQhe','find','getAll','getDefault','8zyeQIU','list','length','values','_modelList','112WifOnf','filter','_connector','isAvailable','ai-chat-default-model-id-unrecognized','272796IbuZtA','getModels','408038JYCTJJ','70130DoczQc','95333zmlOim','11666925caVWJb','some'];_0x2b79=function(){return _0x1efbde;};return _0x2b79();}
|