@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.2.0-alpha.0
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 +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.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-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.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/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.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/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.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/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.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/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.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 +573 -203
- package/dist/index.css +627 -204
- package/dist/index.js +5 -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 +8 -1
- package/lang/translations/af.po +52 -4
- package/lang/translations/ar.po +52 -4
- package/lang/translations/ast.po +52 -4
- package/lang/translations/az.po +52 -4
- package/lang/translations/be.po +52 -4
- package/lang/translations/bg.po +52 -4
- package/lang/translations/bn.po +52 -4
- package/lang/translations/bs.po +52 -4
- package/lang/translations/ca.po +52 -4
- package/lang/translations/cs.po +52 -4
- package/lang/translations/da.po +52 -4
- package/lang/translations/de-ch.po +52 -4
- package/lang/translations/de.po +52 -4
- package/lang/translations/el.po +52 -4
- package/lang/translations/en-au.po +52 -4
- package/lang/translations/en-gb.po +52 -4
- package/lang/translations/en.po +52 -4
- package/lang/translations/eo.po +52 -4
- package/lang/translations/es-co.po +52 -4
- package/lang/translations/es.po +52 -4
- package/lang/translations/et.po +52 -4
- package/lang/translations/eu.po +52 -4
- package/lang/translations/fa.po +52 -4
- package/lang/translations/fi.po +52 -4
- package/lang/translations/fr.po +52 -4
- package/lang/translations/gl.po +52 -4
- package/lang/translations/gu.po +52 -4
- package/lang/translations/he.po +52 -4
- package/lang/translations/hi.po +52 -4
- package/lang/translations/hr.po +52 -4
- package/lang/translations/hu.po +52 -4
- package/lang/translations/hy.po +52 -4
- package/lang/translations/id.po +52 -4
- package/lang/translations/it.po +52 -4
- package/lang/translations/ja.po +52 -4
- package/lang/translations/jv.po +52 -4
- package/lang/translations/kk.po +52 -4
- package/lang/translations/km.po +52 -4
- package/lang/translations/kn.po +52 -4
- package/lang/translations/ko.po +52 -4
- package/lang/translations/ku.po +52 -4
- package/lang/translations/lt.po +52 -4
- package/lang/translations/lv.po +52 -4
- package/lang/translations/ms.po +52 -4
- package/lang/translations/nb.po +52 -4
- package/lang/translations/ne.po +52 -4
- package/lang/translations/nl.po +52 -4
- package/lang/translations/no.po +52 -4
- package/lang/translations/oc.po +52 -4
- package/lang/translations/pl.po +52 -4
- package/lang/translations/pt-br.po +52 -4
- package/lang/translations/pt.po +52 -4
- package/lang/translations/ro.po +52 -4
- package/lang/translations/ru.po +52 -4
- package/lang/translations/si.po +52 -4
- package/lang/translations/sk.po +52 -4
- package/lang/translations/sl.po +52 -4
- package/lang/translations/sq.po +52 -4
- package/lang/translations/sr-latn.po +52 -4
- package/lang/translations/sr.po +52 -4
- package/lang/translations/sv.po +52 -4
- package/lang/translations/th.po +52 -4
- package/lang/translations/ti.po +52 -4
- package/lang/translations/tk.po +52 -4
- package/lang/translations/tr.po +52 -4
- package/lang/translations/tt.po +52 -4
- package/lang/translations/ug.po +52 -4
- package/lang/translations/uk.po +52 -4
- package/lang/translations/ur.po +52 -4
- package/lang/translations/uz.po +52 -4
- package/lang/translations/vi.po +52 -4
- package/lang/translations/zh-cn.po +52 -4
- package/lang/translations/zh.po +52 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +1 -1
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +5 -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.d.ts +40 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +1 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +4 -0
- 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.d.ts +8 -29
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +2 -2
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.d.ts +4 -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.d.ts +4 -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/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
- 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.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -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/aiconfig.d.ts +28 -7
- package/src/aicore/aiconnector.d.ts +1 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.d.ts +66 -0
- package/src/aicore/model/aimodels.js +23 -0
- package/src/aicore/model/aireply.d.ts +9 -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 +5 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
- 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.d.ts +2 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
- 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 +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +12 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
- package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
- package/theme/aichat/aichat-controls.css +11 -27
- package/theme/aichat/aichat.css +2 -3
- package/theme/aichat/aichatfeed.css +1 -27
- package/theme/aichat/aichathistory.css +12 -0
- package/theme/aichat/aisuggestioncontainer.css +5 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
- package/theme/aireviewmode/aireviewmode.css +17 -7
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/theme/aitabs/tabs/tabsview.css +1 -0
- package/theme/common/aibutton.css +27 -0
- package/theme/common/aiheader.css +14 -4
- package/theme/common/aitrackchanges.css +8 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
- package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
- package/src/aireviewmode/model/aireviewmodels.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2959fe=_0x3cb2;(function(_0x90bfeb,_0x36bf0e){const _0x22d784=_0x3cb2,_0x2cc018=_0x90bfeb();while(!![]){try{const _0x5bd652=-parseInt(_0x22d784(0xc4))/0x1+parseInt(_0x22d784(0x1ba))/0x2+-parseInt(_0x22d784(0xb9))/0x3*(-parseInt(_0x22d784(0x108))/0x4)+-parseInt(_0x22d784(0x1e4))/0x5*(parseInt(_0x22d784(0x13e))/0x6)+parseInt(_0x22d784(0x10e))/0x7*(-parseInt(_0x22d784(0x13d))/0x8)+parseInt(_0x22d784(0x1a0))/0x9+parseInt(_0x22d784(0x1e3))/0xa;if(_0x5bd652===_0x36bf0e)break;else _0x2cc018['push'](_0x2cc018['shift']());}catch(_0x38b62e){_0x2cc018['push'](_0x2cc018['shift']());}}}(_0x3ec8,0xa315e));import{ContextPlugin as _0x3bc28d,Editor as _0x154d8f}from'ckeditor5/src/core.js';import{CKEditorError as _0x5f5d65,logError as _0x11d9f0,scrollViewportToShowTarget as _0x51d042,uid as _0x206d05}from'ckeditor5/src/utils.js';function _0x3ec8(){const _0x9883eb=['node','addFeedItemAIReply','requires','maxOffset','map','resetMessageInput','contextItems','toggleSuggestionDisplayMode','sources','showDiff','path','ai-chat-controller-no-active-conversation','getInteraction','listenTo','ai-chat-resource-load-failed','_removeAISelectionMarkers','has','Disliked\x20response','sourceResourcesLoaded','config','isCurrentDocumentInContext','collaboration.channelId','DocumentCompare','AI_CHAT_ABORTED_MESSAGE','query','range','addSelectionToContext','children','ai-request-aborted','isPremiumPlugin','domConverter','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','1787104MIQUkY','217734gBjPHa','forEach','updateCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','AI_CHAT_UNTITLED_CONVERSATION','baseVersion','ai-conversation-','AIEditing','ai-chat-context-unsupported-type','sourcePosition','isModelAvailable','getRanges','updateFeedItemAIReplySuggestionPartState','plugins','get','showChangeInText','editors','locale','_handleStartConversation','model','getRoot','loadConversation','changeGroups','getReply','selectModel','_scrollToSuggestionRange','filter','ai-chat-source-resources-load-failed','webSearchStarted','removeFromContext','resource','contextSent','like','_stopLastInteraction','undo','startsWith','_aiChatModels','AIChatController','rootName','content','load','_handleUIUserMessage','getAttribute','getChildren','find','contextItemAdded','addResourceToContext','end','clearConversationContextUI','disableControls','setChangeGroupState','uid','setLoadingMessage','documentContextContent','reasoningStarted','startInteraction','_createFromRanges','updateCapabilities','getPath','sendUserMessage','finishInteraction','history','hideFakeVisualSelection','insertSuggestion','updateFeedItemAIReplyContent','replyContentUpdated','isDocumentOperation','start','addDocumentToContext','toggleWebSearch','uploadProgressChanged','delete','setSelectedModel','dialogClosed','streaming','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','updateContent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','interactionStarted','_applyOperationsAsSuggestions','replyCreated','replies','howMany','isLoading','add','addFileToContext','dislike','full','setModel','setConversationTitle','AITabs','_aiChatUi','populateSourceResourceBalloon','close','applySuggestion','createPositionFromPath','ai-chat-controller-mouse-over','version','1888092GNnahj','mouseOverSuggestion','addFeedItemUserMessage','data','isOfficialPlugin','getTransformedByOperation','closeSourceResourceBalloon','ai-chat-file-upload-failed','partIndex','setContextItemLoading','rejectSuggestion','nextSibling','_insertSuggestion','cloneNode','getMarkersGroup','removeFeedInteraction','Undo','createConversation','stopListening','toggleReasoning','clearPendingContextUI','unshift','rejected','context','log','push','958602WPdWYQ','getDocumentContext','addFilesToContext','AIConnector','activeConversation','contextItem','setIsMaximized','error','addContextOptionsChanged','current-document','toViewRange','mouseLeaveSuggestion','ai-chat-missing-channel-id','AI_CHAT_GENERIC_ERROR','showNext','changes','upsertAIChatRating','ai.chat.models.displayedModels','_updateReplyContent','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','change','isOpen','_openBalloonFor','alignToTop','isDisabled','ready','isUploadInProgress','removeSelectionFromChatContext','isInContext','anchorId','resetConversationTitle','new','interactionDestroyed','parse','addCurrentDocumentToContext','handleRemovedConversation','text-delta','markers','modelSelected','addUrlToContext','showPrevious','13429600fKVfhn','170qKveVc','setFeedItemRenderingStrategy','data-id','revert','resourceId','resizeTabs','startConversation','indexOf','addOperation','mapper','interactionId','updateResourceState','accepted','_applySuggestion','updateFeedItemAIReplySuggestionContent','updateConversationTitle','AIChatUI','root','ai-chat-context-invalid-data','getOperations','createPositionAt','applyOperation','updateFeedItemAIReplySources','addFeedItemAISuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','_getDocumentRangeForReplyChanges','_logError','addFeedInteractionHeader','removeMarker','stop','pending','focusPromptInput','toggleLoadingSkeleton','handleUserInteraction','set','remove','reasoningFinished','_aiEditing','setAddContextOptions','afterInit','viewRangeToDom','createRange','toString','replyId','436470dWbZNe','contextItemLoadingEnded','_batchToChanges','static','batch','ai.chat.context','ai-chat-url-upload-failed','activateTab','getDocumentData','length','showFakeVisualSelection','410899YWFAOy','abortPromptStream','slice','replyChangeGroupStateUpdated','removeSelectionFromContext','ai-chat-conversation-start-failed','type','interactionFinished','resources','resize','capabilitiesUpdated','message','main','_flushLastInteractionUI','isCurrentDocumentInConversation','getFirstRange','Showing\x20conversation\x20history...','sourceId','resourceStateChanged','split','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','getInteractionAndReplyById','getSelectionText','Failed\x20to\x20load\x20conversation','removeContextItem','_integrateEditor','lastInteraction','marker','options','_previewedChangeGroup','$graveyard','_aiConnector','isStarted','addSelectionToChatContext','getChildAtOffset','contextItemRemoved','document','conversationInitialized','_toggleReasoning','sendMessage','source','_balloonShowDiff','pluginName','stopInteraction','ai-chat-conversation-init-failed','scrollFeedToSuggestion','getGroupId','modification-delta','getChild','view','addFeedItemError','addContextItem','outdated','redo','setConversationContext','addFeedItemStaticMessage','open','from','getDiff','messageId','editing','state','_toggleWebSearch','enableControls','resizedTabs','loadSourceResources','Liked\x20response','AI_BALLOON_HEADER_TITLE','20qONmYQ','_removeFromContext','chat','setIsUploadInProgress','ai.chat.models.defaultModelId','removed','14SfnhfM','commands','_startConversationSafely','_showConversationHistory','_setIsMaximized','AI_CHAT_RESOURCE_LOAD_FAILED','selectedModel','selection','indexes','TrackChangesEditing','init','_updateRatings','webSearchFinished','uiId','interactionCreated'];_0x3ec8=function(){return _0x9883eb;};return _0x3ec8();}import{AIConnector as _0x3490d3}from'../aicore/aiconnector.js';import{AITabs as _0x26399c}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2606c7}from'./model/aichatconversation.js';function _0x3cb2(_0x50f553,_0x9d9da){const _0x3ec81b=_0x3ec8();return _0x3cb2=function(_0x3cb2de,_0x14665a){_0x3cb2de=_0x3cb2de-0xb3;let _0x167c44=_0x3ec81b[_0x3cb2de];return _0x167c44;},_0x3cb2(_0x50f553,_0x9d9da);}import{getTranslation as _0x551fe0}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x1acfd1}from'../aicore/aiediting.js';import{AIChatModels as _0x5bc5e8}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2ef871}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x59eb4a,DATA_ID_MODEL_ATTRIBUTE as _0x597eef}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x489a7d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x40c1c7,getMinimalSelection as _0x57681d,getSuggestionPartsFromReply as _0x53055b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x257a5e,_DetachOperation as _0x4fc256}from'ckeditor5/src/engine.js';import{findOne as _0x30d9ab,getAttribute as _0xf55265,serialize as _0x19df6a,Document as _0x3f36a5,findByAttribute as _0x29445a}from'../aicore/utils/htmlparser.js';import{IconAI as _0x223375}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0xeb076d}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x456468}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3bc28d{[_0x2959fe(0x209)];[_0x2959fe(0xe3)];[_0x2959fe(0x199)];[_0x2959fe(0x162)];[_0x2959fe(0xbb)]=new Map();[_0x2959fe(0xe1)]=null;[_0x2959fe(0xed)]=!0x1;static get[_0x2959fe(0x11f)](){return[_0x3490d3,_0x456468,_0x59eb4a];}static get[_0x2959fe(0xee)](){const _0xc96560=_0x2959fe;return _0xc96560(0x163);}static get[_0x2959fe(0x1a4)](){return!0x0;}static get[_0x2959fe(0x13a)](){return!0x0;}[_0x2959fe(0x118)](){const _0x105620=_0x2959fe;this[_0x105620(0xe3)]=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x1bd)),this[_0x105620(0x199)]=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x1f4)),this[_0x105620(0x209)]=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x145)),this[_0x105620(0x162)]=new _0x5bc5e8({'connector':this[_0x105620(0xe3)],'displayedModels':this[_0x105620(0x1b7)][_0x105620(0x130)][_0x105620(0x14c)](_0x105620(0x1cb)),'defaultModelId':this[_0x105620(0x1b7)][_0x105620(0x130)][_0x105620(0x14c)](_0x105620(0x10c))});const _0x2c6c1b=this[_0x105620(0x1b7)][_0x105620(0x14b)][_0x105620(0x14c)](_0x105620(0x198));this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1ea),()=>{const _0x4a11c2=_0x105620;this[_0x4a11c2(0x110)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x179),(_0x469283,_0x1a29cf)=>{const _0x5aec23=_0x105620;this[_0x5aec23(0x167)]({'userMessage':_0x1a29cf});}),this[_0x105620(0x12a)](_0x2c6c1b,_0x105620(0x104),(_0x7344f5,_0x544892)=>{const _0x896a9d=_0x105620;this[_0x896a9d(0x112)](_0x544892);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1e9),()=>{const _0x4000db=_0x105620;_0x2c6c1b[_0x4000db(0xcd)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0xc5),async()=>{const _0x3d15f4=_0x105620;await this[_0x3d15f4(0x15f)](),await this[_0x3d15f4(0xd1)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x182),()=>{const _0xb4d286=_0x105620;this[_0xb4d286(0x1be)]?.[_0xb4d286(0x1dc)](_0x551fe0(this[_0xb4d286(0x1b7)][_0xb4d286(0x14f)],_0xb4d286(0x1cd)));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x193),(_0x37c942,_0x49645d)=>{const _0x505165=_0x105620;this[_0x505165(0x1be)]?.[_0x505165(0x1bc)](Array[_0x505165(0xfd)](_0x49645d));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1e1),(_0x1c8363,_0x530f80)=>{const _0x35e56b=_0x105620;this[_0x35e56b(0x1be)]?.[_0x35e56b(0x1e1)](_0x530f80);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x16c),(_0x5f29b9,_0x1cc5a3)=>{const _0xaf2ddb=_0x105620;this[_0xaf2ddb(0x1be)]?.[_0xaf2ddb(0x16c)](_0x1cc5a3[_0xaf2ddb(0xec)],_0x1cc5a3[_0xaf2ddb(0x15c)]);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0xdc),(_0x20d6a8,_0x5c2845)=>{const _0xe7fbf2=_0x105620;this[_0xe7fbf2(0x109)](_0x5c2845);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x105),(_0x8c85ac,_0x3c7170)=>{const _0x8e63e1=_0x105620;this[_0x8e63e1(0x1be)]?.[_0x8e63e1(0x105)](_0x3c7170[_0x8e63e1(0xd5)],_0x3c7170[_0x8e63e1(0x135)],_0x3c7170[_0x8e63e1(0x171)]);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x183),()=>{const _0x1be702=_0x105620;this[_0x1be702(0x102)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1b3),()=>{const _0x351ceb=_0x105620;this[_0x351ceb(0xea)]();}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x156),(_0x50408a,_0x541300)=>{const _0x52d8f3=_0x105620;this[_0x52d8f3(0x1be)]?.[_0x52d8f3(0x196)](_0x541300);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x15e),(_0x5021e8,{replyId:_0x3a2079})=>{const _0x1aac86=_0x105620;console[_0x1aac86(0x1b8)](_0x1aac86(0x106),_0x3a2079);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x194),(_0x1029bc,{replyId:_0x1e2d58})=>{const _0xc4718a=_0x105620;console[_0xc4718a(0x1b8)](_0xc4718a(0x12e),_0x1e2d58);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x17d),(_0x91b1b3,_0x3fa172)=>{const _0x57a966=_0x105620;this[_0x57a966(0x1b7)][_0x57a966(0x14b)][_0x57a966(0x14c)](_0x456468)[_0x57a966(0x19b)](),this[_0x57a966(0x1ac)](_0x3fa172);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x14d),(_0x13191f,{replyId:_0xc30147,partIndex:_0x185218})=>{const _0x248e41=_0x105620;this[_0x248e41(0xed)]=this[_0x248e41(0x199)][_0x248e41(0x126)],this[_0x248e41(0x1d0)](_0xc30147,_0x185218);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1a1),(_0x51da18,{replyId:_0x564c79,partIndex:_0x5c96b5})=>{const _0x46b0cf=_0x105620,_0x47e158=this[_0x46b0cf(0x1fd)](_0x564c79,_0x5c96b5);_0x47e158&&_0x46b0cf(0xe2)!=_0x47e158[_0x46b0cf(0x136)][_0x46b0cf(0x1f5)][_0x46b0cf(0x164)]&&this[_0x46b0cf(0x209)][_0x46b0cf(0xc3)]([_0x47e158[_0x46b0cf(0x136)]],_0x46b0cf(0x19e));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1c5),()=>{const _0x4aff55=_0x105620;this[_0x4aff55(0x209)][_0x4aff55(0x17c)](_0x4aff55(0x19e));}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x19c),(_0xe47c2c,_0x3705c1)=>{const _0x1b32cc=_0x105620;this[_0x1b32cc(0x1b7)][_0x1b32cc(0x14b)][_0x1b32cc(0x14c)](_0x456468)[_0x1b32cc(0x19b)](),this[_0x1b32cc(0x1f1)](_0x3705c1);}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x124),async(_0x18bdad,_0x30d51a)=>{const _0x3034ee=_0x105620,{reply:_0x5d1c92}=this[_0x3034ee(0xd9)](_0x30d51a[_0x3034ee(0xb8)]),_0x5bdf2a=_0x2ef871(this[_0x3034ee(0x1b7)]),_0x52db42=_0x53055b({'editor':_0x5bdf2a,'changeGroups':_0x5d1c92[_0x3034ee(0x154)],'documentContextContent':_0x5d1c92[_0x3034ee(0x173)],'showDiff':_0x30d51a[_0x3034ee(0x126)]});await this[_0x3034ee(0x199)][_0x3034ee(0x1f2)]({'id':_0x5d1c92['id'],'parts':_0x52db42,'renderingStrategy':_0x3034ee(0xbc)});}),this[_0x105620(0x12a)](this[_0x105620(0x199)],_0x105620(0x1aa),(_0x363f35,{replyId:_0x57a26f,partIndex:_0x20050a})=>{const _0x3977cd=_0x105620;this[_0x3977cd(0xe1)]?.[_0x3977cd(0xb8)]==_0x57a26f&&this[_0x3977cd(0xe1)]?.[_0x3977cd(0x1a8)]==_0x20050a&&this[_0x3977cd(0x1b7)][_0x3977cd(0x14b)][_0x3977cd(0x14c)](_0x456468)[_0x3977cd(0x19b)]();const {reply:_0x573a62}=this[_0x3977cd(0xd9)](_0x57a26f);_0x573a62[_0x3977cd(0x170)](_0x20050a,_0x3977cd(0x1b6)),this[_0x3977cd(0x209)][_0x3977cd(0x17c)](_0x3977cd(0x19e));});}async[_0x2959fe(0xb4)](){const _0x48e406=_0x2959fe;this[_0x48e406(0x1b7)]instanceof _0x154d8f?this[_0x48e406(0xdd)](this[_0x48e406(0x1b7)]):this[_0x48e406(0x12a)](this[_0x48e406(0x1b7)][_0x48e406(0x14e)],_0x48e406(0x192),(_0x2ca8e1,_0x3f57ec)=>{const _0x55f13b=_0x48e406;_0x3f57ec['on'](_0x55f13b(0x1d3),()=>{const _0x302d7b=_0x55f13b;this[_0x302d7b(0xdd)](_0x3f57ec);});}),await this[_0x48e406(0x110)]();}[_0x2959fe(0x1ac)](_0x3edadc){const _0x34a34b=_0x2959fe,_0x7275b4=_0x2ef871(this[_0x34a34b(0x1b7)]);if(!_0x7275b4[_0x34a34b(0x14b)][_0x34a34b(0x12d)](_0x34a34b(0x117)))return;const _0x26d785=this[_0x34a34b(0x1b7)][_0x34a34b(0x14b)][_0x34a34b(0x14c)](_0x34a34b(0x133)),{reply:_0x126a8f,interaction:_0x37fdf4}=this[_0x34a34b(0xd9)](_0x3edadc[_0x34a34b(0xb8)]),_0x23ae24=this[_0x34a34b(0x1fd)](_0x3edadc[_0x34a34b(0xb8)],_0x3edadc[_0x34a34b(0x1a8)]),_0x347dbf=void 0x0!==_0x3edadc[_0x34a34b(0x1a8)]?[_0x126a8f[_0x34a34b(0x154)][_0x3edadc[_0x34a34b(0x1a8)]]]:_0x126a8f[_0x34a34b(0x154)][_0x34a34b(0x158)](_0x2fa1aa=>_0x34a34b(0x202)==_0x2fa1aa[_0x34a34b(0x101)]),_0x948a97=_0x347dbf[_0x34a34b(0x121)](_0x208c66=>_0x126a8f[_0x34a34b(0x154)][_0x34a34b(0x1eb)](_0x208c66));if(!_0x23ae24||_0x34a34b(0xe2)==_0x23ae24[_0x34a34b(0x136)][_0x34a34b(0x1f5)][_0x34a34b(0x164)])return void _0x948a97[_0x34a34b(0x13f)](_0x45e5be=>_0x126a8f[_0x34a34b(0x170)](_0x45e5be,_0x34a34b(0xf8)));_0x948a97[_0x34a34b(0x13f)](_0x15ff3c=>_0x126a8f[_0x34a34b(0x170)](_0x15ff3c,_0x34a34b(0x1f0)));const _0x352a31=_0x489a7d({'editor':_0x7275b4,'reply':_0x126a8f,'interaction':_0x37fdf4,'groups':_0x347dbf,'transform':!0x0,'documentCompare':_0x26d785,'documentCompareOptions':{'anchor':_0x34a34b(0xd0),'markDeletions':!0x0}});let _0x4899f0;_0x23ae24&&this[_0x34a34b(0x157)](_0x23ae24[_0x34a34b(0x136)]),_0x7275b4[_0x34a34b(0x151)][_0x34a34b(0x1ce)](_0x225011=>{const _0x2f0c5c=_0x34a34b;_0x4899f0=_0x225011[_0x2f0c5c(0xbd)],_0x7275b4[_0x2f0c5c(0x14b)][_0x2f0c5c(0x14c)](_0x2f0c5c(0x117))[_0x2f0c5c(0x18d)](_0x352a31),this[_0x2f0c5c(0x209)][_0x2f0c5c(0x17c)](_0x2f0c5c(0x19e));}),this[_0x34a34b(0xbb)][_0x34a34b(0x206)](_0x4899f0,{'interactionId':_0x37fdf4['id'],'replyId':_0x126a8f['id'],'indexes':_0x948a97[_0x34a34b(0xc6)]()}),this[_0x34a34b(0x119)](_0x126a8f);}[_0x2959fe(0x1f1)](_0xde7f4c){const _0x83be3c=_0x2959fe,_0x98870c=_0x2ef871(this[_0x83be3c(0x1b7)]),_0x34c75d=this[_0x83be3c(0x1b7)][_0x83be3c(0x14b)][_0x83be3c(0x14c)](_0x59eb4a),{reply:_0x363750,interaction:_0x4cfdf8}=this[_0x83be3c(0xd9)](_0xde7f4c[_0x83be3c(0xb8)]),_0x42f965=this[_0x83be3c(0x1fd)](_0xde7f4c[_0x83be3c(0xb8)],_0xde7f4c[_0x83be3c(0x1a8)]),_0x3d7d9b=void 0x0!==_0xde7f4c[_0x83be3c(0x1a8)]?[_0x363750[_0x83be3c(0x154)][_0xde7f4c[_0x83be3c(0x1a8)]]]:_0x363750[_0x83be3c(0x154)][_0x83be3c(0x158)](_0x21c9f8=>_0x83be3c(0x202)==_0x21c9f8[_0x83be3c(0x101)]),_0x5ada43=_0x3d7d9b[_0x83be3c(0x121)](_0x518859=>_0x363750[_0x83be3c(0x154)][_0x83be3c(0x1eb)](_0x518859));if(!_0x42f965||_0x83be3c(0xe2)==_0x42f965[_0x83be3c(0x136)][_0x83be3c(0x1f5)][_0x83be3c(0x164)])return void _0x5ada43[_0x83be3c(0x13f)](_0x23a099=>_0x363750[_0x83be3c(0x170)](_0x23a099,_0x83be3c(0xf8)));_0x5ada43[_0x83be3c(0x13f)](_0x397cd1=>_0x363750[_0x83be3c(0x170)](_0x397cd1,_0x83be3c(0x1f0)));const _0x3ffde5=_0x489a7d({'editor':_0x98870c,'reply':_0x363750,'interaction':_0x4cfdf8,'groups':_0x3d7d9b,'transform':!0x0,'documentCompare':_0x34c75d,'documentCompareOptions':{'anchor':_0x83be3c(0xd0),'markDeletions':!0x1}});let _0x39f395;_0x42f965&&this[_0x83be3c(0x157)](_0x42f965[_0x83be3c(0x136)]),_0x98870c[_0x83be3c(0x151)][_0x83be3c(0x1ce)](_0x2cb564=>{const _0x1e2b66=_0x83be3c;_0x39f395=_0x2cb564[_0x1e2b66(0xbd)];for(const _0x2da4ad of _0x3ffde5)_0x2da4ad[_0x1e2b66(0x143)]=_0x98870c[_0x1e2b66(0x151)][_0x1e2b66(0xe8)][_0x1e2b66(0x19f)],_0x2cb564[_0x1e2b66(0xbd)][_0x1e2b66(0x1ec)](_0x2da4ad),_0x98870c[_0x1e2b66(0x151)][_0x1e2b66(0x1f9)](_0x2da4ad);}),this[_0x83be3c(0xbb)][_0x83be3c(0x206)](_0x39f395,{'interactionId':_0x4cfdf8['id'],'replyId':_0x363750['id'],'indexes':_0x5ada43[_0x83be3c(0xc6)]()}),this[_0x83be3c(0x119)](_0x363750);}[_0x2959fe(0x1d0)](_0x9c9c6f,_0x5e7c04){const _0x2259f1=_0x2959fe,_0x6158e9=_0x2ef871(this[_0x2259f1(0x1b7)]),_0x3135b1=this[_0x2259f1(0x1fd)](_0x9c9c6f,_0x5e7c04),_0x385cdb=this[_0x2259f1(0x1b7)][_0x2259f1(0x14b)][_0x2259f1(0x14c)](_0x456468);if(!_0x3135b1)return void _0x385cdb[_0x2259f1(0x19b)]();const {range:_0x31ec89,currentIndex:_0x378253,previousIndex:_0x2dbb93,nextIndex:_0x2ccbb3}=_0x3135b1;if(_0x2259f1(0xe2)==_0x31ec89[_0x2259f1(0x1f5)][_0x2259f1(0x164)]){const {reply:_0x481668}=this[_0x2259f1(0xd9)](_0x9c9c6f);return _0x481668[_0x2259f1(0x170)](_0x378253,_0x2259f1(0xf8)),void _0x385cdb[_0x2259f1(0x19b)]();}if(this[_0x2259f1(0xe1)]?.[_0x2259f1(0xb8)]==_0x9c9c6f&&this[_0x2259f1(0xe1)]?.[_0x2259f1(0x1a8)]==_0x378253)return;this[_0x2259f1(0xe1)]={'replyId':_0x9c9c6f,'partIndex':_0x378253};const _0xf00882=new _0xeb076d(_0x6158e9[_0x2259f1(0x14f)],{'showDiff':this[_0x2259f1(0xed)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2259f1(0x195)},'hideHeader':!0x0}),{reply:_0xf1b705}=this[_0x2259f1(0xd9)](_0x9c9c6f),_0x3a9f19=_0x53055b({'editor':_0x6158e9,'changeGroups':[_0xf1b705[_0x2259f1(0x154)][_0x378253]],'documentContextContent':_0xf1b705[_0x2259f1(0x173)],'showDiff':this[_0x2259f1(0xed)]});_0xf00882[_0x2259f1(0x18a)]({'parts':_0x3a9f19,'renderingStrategy':_0x2259f1(0xbc)});const _0x1976cf=_0x378253!==_0x2dbb93;this[_0x2259f1(0x157)](_0x31ec89,!0x0),_0x385cdb[_0x2259f1(0xfc)]({'index':_0x378253,'title':_0x551fe0(this[_0x2259f1(0x1b7)][_0x2259f1(0x14f)],_0x2259f1(0x107),(_0x378253+0x1)[_0x2259f1(0xb7)]()),'icon':_0x223375,'mainView':_0xf00882,'showRotator':_0x1976cf,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x31ec89]}),this[_0x2259f1(0x199)][_0x2259f1(0xf1)](_0x9c9c6f,_0x378253),this[_0x2259f1(0x12a)](_0xf00882,_0x2259f1(0x124),(_0x14500f,{showDiff:_0x2ddb09})=>{const _0x566c18=_0x2259f1;this[_0x566c18(0xed)]=_0x2ddb09;const {reply:_0x271569}=this[_0x566c18(0xd9)](_0x9c9c6f),_0x3ae910=_0x53055b({'editor':_0x6158e9,'changeGroups':[_0x271569[_0x566c18(0x154)][_0x378253]],'documentContextContent':_0x271569[_0x566c18(0x173)],'showDiff':_0x2ddb09});_0xf00882[_0x566c18(0x18a)]({'parts':_0x3ae910,'renderingStrategy':_0x566c18(0xbc)});}),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x19c),()=>{const _0x5213ee=_0x2259f1;this[_0x5213ee(0x1f1)]({'replyId':_0x9c9c6f,'partIndex':_0x378253}),_0x1976cf?this[_0x5213ee(0x1d0)](_0x9c9c6f,_0x2ccbb3):_0x385cdb[_0x5213ee(0x19b)]();}),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x17d),()=>{const _0x5b4b1c=_0x2259f1;this[_0x5b4b1c(0x1ac)]({'replyId':_0x9c9c6f,'partIndex':_0x378253}),_0x1976cf?this[_0x5b4b1c(0x1d0)](_0x9c9c6f,_0x2ccbb3):_0x385cdb[_0x5b4b1c(0x19b)]();}),_0x1976cf&&(this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x1c8),()=>{const _0xb0dc68=_0x2259f1;this[_0xb0dc68(0x1d0)](_0x9c9c6f,_0x2ccbb3);}),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x1e2),()=>{const _0x519b18=_0x2259f1;this[_0x519b18(0x1d0)](_0x9c9c6f,_0x2dbb93);})),this[_0x2259f1(0x12a)](_0x385cdb,_0x2259f1(0x187),()=>{const _0x419c4d=_0x2259f1;this[_0x419c4d(0x1b2)](_0x385cdb),this[_0x419c4d(0x1b2)](_0xf00882),this[_0x419c4d(0xe1)]=null;});}[_0x2959fe(0x1fd)](_0x10b174,_0x52dda6){const _0x2578fd=_0x2959fe,_0x3fc402=_0x2ef871(this[_0x2578fd(0x1b7)]),{reply:_0x147812,interaction:_0x53b788}=this[_0x2578fd(0xd9)](_0x10b174),_0x294c86=_0x147812[_0x2578fd(0x154)][_0x2578fd(0x158)](_0x3a7bac=>_0x2578fd(0x202)==_0x3a7bac[_0x2578fd(0x101)]),_0x57e48f=_0x294c86[_0x2578fd(0x121)](_0x101b2c=>_0x147812[_0x2578fd(0x154)][_0x2578fd(0x1eb)](_0x101b2c));void 0x0===_0x52dda6&&(_0x52dda6=_0x57e48f[0x0]);const _0x44519c=_0x57e48f[_0x2578fd(0x1eb)](_0x52dda6);if(-0x1==_0x44519c)return null;const _0x6149ca=0x0==_0x44519c?_0x57e48f[_0x57e48f[_0x2578fd(0xc2)]-0x1]:_0x57e48f[_0x44519c-0x1],_0x16e04f=_0x44519c==_0x57e48f[_0x2578fd(0xc2)]-0x1?_0x57e48f[0x0]:_0x57e48f[_0x44519c+0x1],_0x30e6ec=_0x294c86[_0x44519c],_0x4222e8=new _0x3f36a5([]),_0x4ccfa8=new _0x3f36a5([]);for(const _0x4c581c of _0x30e6ec[_0x2578fd(0x1c9)])if(_0x2578fd(0x10d)!=_0x4c581c[_0x2578fd(0xca)]&&_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x4c581c[_0x2578fd(0x11d)][_0x2578fd(0x1ad)](!0x0)),_0x2578fd(0x1d9)!=_0x4c581c[_0x2578fd(0xca)]){const _0x4a65c5=_0x30d9ab(_0x2893ad=>_0xf55265(_0x2893ad,_0x2578fd(0x1e6))==_0x4c581c['id'],_0x147812[_0x2578fd(0x173)],!0x0);_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x4a65c5[_0x2578fd(0x1ad)](!0x0));}if(0x0==_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0xc2)]){if(_0x30e6ec[_0x2578fd(0x1c9)][0x0][_0x2578fd(0x1d7)]){const _0x155faa=_0x29445a(_0x2578fd(0x1e6),_0x30e6ec[_0x2578fd(0x1c9)][0x0][_0x2578fd(0x1d7)],_0x147812[_0x2578fd(0x173)]);_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b5)](_0x155faa[_0x2578fd(0x1ad)](!0x0)),_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b5)](_0x155faa[_0x2578fd(0x1ad)](!0x0)),_0x155faa[_0x2578fd(0x1ab)]&&(_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x155faa[_0x2578fd(0x1ab)][_0x2578fd(0x1ad)](!0x0)),_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x155faa[_0x2578fd(0x1ab)][_0x2578fd(0x1ad)](!0x0)));}else{const _0x414e2e=_0x147812[_0x2578fd(0x173)][_0x2578fd(0x138)][0x0];if(!_0x414e2e)return null;_0x4222e8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x414e2e[_0x2578fd(0x1ad)](!0x0)),_0x4ccfa8[_0x2578fd(0x138)][_0x2578fd(0x1b9)](_0x414e2e[_0x2578fd(0x1ad)](!0x0));}}const _0x12e6ce=_0x53b788[_0x2578fd(0x1bb)](),_0x33bda0=_0x3fc402[_0x2578fd(0x1a3)][_0x2578fd(0x1db)](_0x12e6ce[_0x2578fd(0x165)]),_0x34958b=_0x19df6a(_0x4222e8),_0x253ee0=_0x3fc402[_0x2578fd(0x1a3)][_0x2578fd(0x1db)](_0x34958b),_0x1ee05b=_0x3fc402[_0x2578fd(0x1a3)][_0x2578fd(0x1db)](_0x34958b),_0x10df93=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x1f8)](_0x253ee0,0x0),_0x3672ed=_0x19df6a(_0x4ccfa8),_0x551bfa={'anchor':_0x10df93,'markDeletions':!0x1},_0x35b880=_0x3fc402[_0x2578fd(0x14b)][_0x2578fd(0x14c)](_0x59eb4a)[_0x2578fd(0xfe)](_0x34958b,_0x3672ed,_0x551bfa)[_0x2578fd(0x1f7)]();if(!_0x35b880[_0x2578fd(0xc2)])return null;_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x1ce)](_0x2ff83e=>{const _0x4c7827=_0x2578fd;for(const _0x5a63b3 of _0x35b880)if(_0x4c7827(0x207)==_0x5a63b3[_0x4c7827(0xca)]){const _0x558739=_0x5a63b3[_0x4c7827(0x147)],_0x4473bb=_0x5a63b3[_0x4c7827(0x190)],_0x34dc51=new _0x4fc256(_0x558739,_0x4473bb);_0x2ff83e[_0x4c7827(0xbd)][_0x4c7827(0x1ec)](_0x34dc51),_0x3fc402[_0x4c7827(0x151)][_0x4c7827(0x1f9)](_0x34dc51);}else _0x4c7827(0xdf)!==_0x5a63b3[_0x4c7827(0xca)]&&(_0x5a63b3[_0x4c7827(0x143)]=null,_0x5a63b3[_0x4c7827(0x180)]=!0x1,_0x2ff83e[_0x4c7827(0xbd)][_0x4c7827(0x1ec)](_0x5a63b3),_0x3fc402[_0x4c7827(0x151)][_0x4c7827(0x1f9)](_0x5a63b3));});const _0x17a831=_0x57681d(_0x3fc402,_0x35b880,_0x253ee0);_0x40c1c7(_0x3fc402[_0x2578fd(0x151)],_0x17a831);const _0x59d54c=_0x17a831[_0x2578fd(0xd3)]()[_0x2578fd(0x181)][_0x2578fd(0x127)][_0x2578fd(0xc6)](),_0x581bef=_0x17a831[_0x2578fd(0xd3)]()[_0x2578fd(0x16d)][_0x2578fd(0x127)][_0x2578fd(0xc6)](),_0x468779=[];let _0xfc83e8=_0x253ee0,_0x5121e5=_0x1ee05b;for(let _0x45072c=0x0;_0x45072c<_0x581bef[_0x2578fd(0xc2)];_0x45072c++){const _0x128b95=_0xfc83e8[_0x2578fd(0x120)]-_0x581bef[_0x45072c];_0x468779[_0x45072c]=_0x5121e5[_0x2578fd(0x120)]-_0x128b95,_0xfc83e8=_0xfc83e8[_0x2578fd(0xe6)](_0x581bef[_0x45072c]),_0x5121e5=_0x5121e5[_0x2578fd(0xe6)](_0x468779[_0x45072c]);}const _0x31c6f5=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xb6)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x1ee05b,_0x59d54c),_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x1ee05b,_0x468779)),_0x3c623e=_0x1ee05b[_0x2578fd(0xf4)](0x0)[_0x2578fd(0x168)](_0x597eef),_0x342031=Array[_0x2578fd(0xfd)](_0x33bda0[_0x2578fd(0x169)]())[_0x2578fd(0x16a)](_0x66345e=>_0x66345e[_0x2578fd(0x168)](_0x597eef)==_0x3c623e)[_0x2578fd(0x178)](),_0x5882d9=_0x31c6f5[_0x2578fd(0x181)][_0x2578fd(0x127)][_0x2578fd(0xc6)](),_0x1a52e6=_0x31c6f5[_0x2578fd(0x16d)][_0x2578fd(0x127)][_0x2578fd(0xc6)]();_0x5882d9[0x0]=_0x342031[0x0]+_0x5882d9[0x0],_0x1a52e6[0x0]=_0x342031[0x0]+_0x1a52e6[0x0];let _0x2aa0ac=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xb6)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xe8)][_0x2578fd(0x152)](),_0x5882d9),_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0x19d)](_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xe8)][_0x2578fd(0x152)](),_0x1a52e6));const _0x4f8deb=_0x3fc402[_0x2578fd(0x151)][_0x2578fd(0xe8)][_0x2578fd(0x17b)][_0x2578fd(0x1f7)](_0x12e6ce[_0x2578fd(0x19f)]);for(const _0x21d9d6 of _0x4f8deb)_0x2aa0ac=_0x257a5e[_0x2578fd(0x176)](_0x2aa0ac[_0x2578fd(0x1a5)](_0x21d9d6));return{'range':_0x2aa0ac,'previousIndex':_0x6149ca,'nextIndex':_0x16e04f,'currentIndex':_0x52dda6};}[_0x2959fe(0xdd)](_0x464f91){const _0x15f72b=_0x2959fe;if(!_0x464f91[_0x15f72b(0x14b)][_0x15f72b(0x12d)](_0x15f72b(0x1b0)))return;const _0x1bd31e=_0x464f91[_0x15f72b(0x10f)][_0x15f72b(0x14c)](_0x15f72b(0x160)),_0x233c1c=_0x464f91[_0x15f72b(0x10f)][_0x15f72b(0x14c)](_0x15f72b(0xf9));this[_0x15f72b(0x12a)](_0x1bd31e,_0x15f72b(0x1e7),(_0x1f91c2,_0x4b29c8,_0x5cfcb8)=>{const _0x4e1883=_0x15f72b,_0x556ea6=this[_0x4e1883(0xbb)][_0x4e1883(0x14c)](_0x4b29c8);if(!_0x556ea6)return;const _0x91d6ee=this[_0x4e1883(0x1be)][_0x4e1883(0x129)](_0x556ea6[_0x4e1883(0x1ee)])[_0x4e1883(0x155)](_0x556ea6[_0x4e1883(0xb8)]);_0x556ea6[_0x4e1883(0x116)][_0x4e1883(0x13f)](_0x797ad6=>_0x91d6ee[_0x4e1883(0x170)](_0x797ad6,_0x4e1883(0x202))),this[_0x4e1883(0xbb)][_0x4e1883(0x185)](_0x4b29c8),this[_0x4e1883(0xbb)][_0x4e1883(0x206)](_0x5cfcb8,_0x556ea6);}),this[_0x15f72b(0x12a)](_0x233c1c,_0x15f72b(0x1e7),(_0x2b74b5,_0x497a3d,_0x53e8d1)=>{const _0x5a609a=_0x15f72b,_0x2fd06a=this[_0x5a609a(0xbb)][_0x5a609a(0x14c)](_0x497a3d);if(!_0x2fd06a)return;const _0x3a3aa2=this[_0x5a609a(0x1be)][_0x5a609a(0x129)](_0x2fd06a[_0x5a609a(0x1ee)])[_0x5a609a(0x155)](_0x2fd06a[_0x5a609a(0xb8)]);_0x2fd06a[_0x5a609a(0x116)][_0x5a609a(0x13f)](_0x16e53c=>_0x3a3aa2[_0x5a609a(0x170)](_0x16e53c,_0x5a609a(0x1f0))),this[_0x5a609a(0xbb)][_0x5a609a(0x185)](_0x497a3d),this[_0x5a609a(0xbb)][_0x5a609a(0x206)](_0x53e8d1,_0x2fd06a);});}async[_0x2959fe(0x153)](_0x4c5fa8){const _0x136a8f=_0x2959fe;this[_0x136a8f(0x1b7)][_0x136a8f(0x14b)][_0x136a8f(0x14c)](_0x456468)[_0x136a8f(0x19b)](),this[_0x136a8f(0x199)][_0x136a8f(0x1e5)](_0x136a8f(0xbc)),this[_0x136a8f(0x199)][_0x136a8f(0x204)](!0x0),await this[_0x136a8f(0x15f)]();try{const _0x29b463=this[_0x136a8f(0x1b7)][_0x136a8f(0x14b)][_0x136a8f(0x14c)](_0x26399c);this[_0x136a8f(0x1f3)]('\x20'),_0x29b463[_0x136a8f(0xf5)][_0x136a8f(0xc0)](_0x136a8f(0x10a)),await this[_0x136a8f(0x110)](_0x4c5fa8);const {sessionId:_0x523df7}=this[_0x136a8f(0x209)][_0x136a8f(0xc1)]();await this[_0x136a8f(0x1be)][_0x136a8f(0x166)](_0x4c5fa8,_0x523df7),this[_0x136a8f(0x1be)][_0x136a8f(0xd2)]()&&this[_0x136a8f(0x1be)][_0x136a8f(0x1dc)](_0x551fe0(this[_0x136a8f(0x1b7)][_0x136a8f(0x14f)],_0x136a8f(0x1cd)));}catch(_0x3e1af2){console[_0x136a8f(0x1c1)](_0x136a8f(0xdb),_0x3e1af2);}finally{this[_0x136a8f(0x199)][_0x136a8f(0x1e5)](_0x136a8f(0x188)),this[_0x136a8f(0x199)][_0x136a8f(0x204)](!0x1);}}[_0x2959fe(0x1dd)](_0x535f1b){const _0x5244bb=_0x2959fe;this[_0x5244bb(0x1be)]['id']===_0x535f1b&&this[_0x5244bb(0x110)]();}async[_0x2959fe(0xe5)](){const _0x1cf702=_0x2959fe,_0x57c1c0=this[_0x1cf702(0x209)][_0x1cf702(0xda)]();this[_0x1cf702(0x1be)]?.[_0x1cf702(0x137)](_0x57c1c0),this[_0x1cf702(0x1be)]?.[_0x1cf702(0x1dc)](_0x551fe0(this[_0x1cf702(0x1b7)][_0x1cf702(0x14f)],_0x1cf702(0x1cd)));}[_0x2959fe(0x1d5)](){const _0x173fa6=_0x2959fe;this[_0x173fa6(0x1be)]?.[_0x173fa6(0xc8)]();}[_0x2959fe(0x203)](){const _0x529d9a=_0x2959fe;this[_0x529d9a(0x199)][_0x529d9a(0x203)]();}async[_0x2959fe(0x1ea)](){const _0x2883f2=_0x2959fe;await this[_0x2883f2(0x110)]();}async[_0x2959fe(0xeb)]({message:_0x182555,quickActionData:_0x345e91}){const _0x41b6ee=_0x2959fe;await this[_0x41b6ee(0x167)]({'userMessage':_0x182555,'quickActionData':_0x345e91});}[_0x2959fe(0xf2)](){const _0x539475=_0x2959fe,_0x58e1d1=this[_0x539475(0x1b7)][_0x539475(0x130)][_0x539475(0x14c)](_0x539475(0x132));if(!_0x58e1d1)throw new _0x5f5d65(_0x539475(0x1c6),this);return _0x58e1d1;}async[_0x2959fe(0x110)](_0x21cca9){const _0x4f6b5b=_0x2959fe;try{this[_0x4f6b5b(0x199)][_0x4f6b5b(0x103)](),await this[_0x4f6b5b(0x150)](_0x21cca9);}catch(_0x329135){_0x11d9f0(_0x4f6b5b(0xc9),_0x329135),this[_0x4f6b5b(0x1be)]=void 0x0,this[_0x4f6b5b(0x199)][_0x4f6b5b(0x16f)]();}}async[_0x2959fe(0x150)](_0x1f2fb7){const _0x399e85=_0x2959fe,_0x390e4f=this[_0x399e85(0x1b7)][_0x399e85(0x14b)][_0x399e85(0x14c)](_0x456468);let _0x47aedb;_0x390e4f[_0x399e85(0x1cf)]&&_0x390e4f[_0x399e85(0x19b)](),_0x1f2fb7||!this[_0x399e85(0x1be)]?_0x47aedb=this[_0x399e85(0x1b7)][_0x399e85(0x130)][_0x399e85(0x14c)](_0x399e85(0x10c)):this[_0x399e85(0x199)][_0x399e85(0x148)]&&(_0x47aedb=this[_0x399e85(0x1be)][_0x399e85(0x114)]['id']),await this[_0x399e85(0x15f)]();const _0x2fd02c=this[_0x399e85(0xf2)](),_0x51717e=_0x1f2fb7||_0x206d05();this[_0x399e85(0x1be)]=new _0x2606c7({'connector':this[_0x399e85(0xe3)],'chatModels':this[_0x399e85(0x162)],'selectedModelId':_0x47aedb,'conversationId':_0x51717e,'group':_0x2fd02c,'getEditor':()=>_0x2ef871(this[_0x399e85(0x1b7)])}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xe9),(_0x684c80,_0x14eb71)=>{const _0x4f0ec8=_0x399e85;this[_0x4f0ec8(0x199)][_0x4f0ec8(0x1b1)](_0x14eb71),this[_0x4f0ec8(0x199)][_0x4f0ec8(0x122)](),this[_0x4f0ec8(0x199)][_0x4f0ec8(0x1b4)](),this[_0x4f0ec8(0x199)][_0x4f0ec8(0x16e)](),_0x1f2fb7||(this[_0x4f0ec8(0x199)][_0x4f0ec8(0x1d8)](),this[_0x4f0ec8(0x1be)]?.[_0x4f0ec8(0x1dc)](_0x551fe0(this[_0x4f0ec8(0x1b7)][_0x4f0ec8(0x14f)],_0x4f0ec8(0x1cd))));}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x184),(_0x565a43,_0x15a34a)=>{const _0x27f95d=_0x399e85;this[_0x27f95d(0x199)][_0x27f95d(0x10b)](_0x15a34a[_0x27f95d(0x1d4)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x11c),(_0x21da89,_0x1a3fee)=>{const _0x371f6c=_0x399e85;this[_0x371f6c(0x199)][_0x371f6c(0x1a2)](_0x1a3fee);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x15a),()=>{const _0x3b52c6=_0x399e85;this[_0x3b52c6(0x199)][_0x3b52c6(0x172)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x174),()=>{const _0x54f7de=_0x399e85;this[_0x54f7de(0x199)][_0x54f7de(0x172)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x11a),(_0x316786,_0x5ce372)=>{const _0x3fec5f=_0x399e85;this[_0x3fec5f(0x199)][_0x3fec5f(0x1ff)](_0x5ce372,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x208),(_0x4372fe,_0x240a3b)=>{const _0x483d74=_0x399e85;this[_0x483d74(0x199)][_0x483d74(0x1ff)](_0x240a3b,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x18c),()=>{const _0x3200e7=_0x399e85;this[_0x3200e7(0x199)][_0x3200e7(0x175)]();}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xcb),async()=>{const _0x1951b2=_0x399e85;await this[_0x1951b2(0x199)][_0x1951b2(0x17a)]();}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1da),(_0x57b515,_0x23fc46)=>{const _0xd03d32=_0x399e85;this[_0xd03d32(0x199)][_0xd03d32(0x1af)](_0x23fc46['id']);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x197),(_0x2a18c1,_0x55b0ca,_0x26a327)=>{const _0x276a9d=_0x399e85;this[_0x276a9d(0x1f3)](_0x55b0ca,_0x26a327);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x18e),(_0x221f83,_0x3cc18b)=>{const _0x57e7b1=_0x399e85;_0x57e7b1(0x1de)===_0x3cc18b[_0x57e7b1(0xca)]?this[_0x57e7b1(0x199)][_0x57e7b1(0x11e)](_0x3cc18b):this[_0x57e7b1(0x199)][_0x57e7b1(0x1fb)](_0x3cc18b);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x17f),async(_0x2ea904,_0x4b3165,_0x1dfd99)=>{const _0x556233=_0x399e85;await this[_0x556233(0x1cc)]({'reply':_0x4b3165,'changeGroups':_0x1dfd99});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xc7),(_0x378d00,{reply:_0x1262ef,index:_0x54e6e5,state:_0x22e682})=>{const _0xc22da0=_0x399e85;this[_0xc22da0(0x199)][_0xc22da0(0x14a)]({'id':_0x1262ef['id'],'index':_0x54e6e5,'state':_0x22e682});}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x16b),(_0xb031d4,_0x22d1b1)=>{const _0x4eb02d=_0x399e85;if(this[_0x4eb02d(0x199)][_0x4eb02d(0xf7)](_0x22d1b1[_0x4eb02d(0x1bf)],_0x22d1b1[_0x4eb02d(0x191)]),_0x4eb02d(0x115)===_0x22d1b1[_0x4eb02d(0x1bf)][_0x4eb02d(0xca)]){const _0x579688=[..._0x2ef871(this[_0x4eb02d(0x1b7)])[_0x4eb02d(0x151)][_0x4eb02d(0xe8)][_0x4eb02d(0x115)][_0x4eb02d(0x149)]()];this[_0x4eb02d(0x209)][_0x4eb02d(0xc3)](_0x579688,_0x4eb02d(0x144)+this[_0x4eb02d(0x1be)]?.['id']);}}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xe7),(_0x2e5716,_0x250ec4)=>{const _0x2d1433=_0x399e85;this[_0x2d1433(0x199)][_0x2d1433(0xdc)](_0x250ec4[_0x2d1433(0x11b)]),_0x2d1433(0x1c3)==_0x250ec4[_0x2d1433(0x11b)]&&this[_0x2d1433(0x1d5)](),_0x2d1433(0x115)===_0x250ec4[_0x2d1433(0xca)]&&this[_0x2d1433(0x209)][_0x2d1433(0x17c)](_0x2d1433(0x144)+this[_0x2d1433(0x1be)]?.['id']);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xba),(_0x5379cd,_0x53c6aa)=>{const _0x3c03db=_0x399e85;this[_0x3c03db(0x199)][_0x3c03db(0x1a9)](_0x53c6aa[_0x3c03db(0x1bf)][_0x3c03db(0x11b)],_0x53c6aa[_0x3c03db(0x191)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x15d),(_0x3620f8,_0x53c372)=>{const _0x3b7e03=_0x399e85;this[_0x3b7e03(0x199)][_0x3b7e03(0xfa)](_0x53c372[_0x3b7e03(0x123)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1c2),(_0xc8ebdb,_0x351ea7)=>{const _0x4de075=_0x399e85;this[_0x4de075(0x199)][_0x4de075(0xb3)](_0x351ea7[_0x4de075(0xe0)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x12f),(_0x118190,_0x1d1f16)=>{const _0x168959=_0x399e85;this[_0x168959(0x199)][_0x168959(0x19a)](_0x1d1f16[_0x168959(0xd5)],_0x1d1f16[_0x168959(0xec)],_0x1d1f16[_0x168959(0xcc)],_0x1d1f16[_0x168959(0x171)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xd6),(_0x3f7b15,_0x20f6a0)=>{const _0x1e2d56=_0x399e85;this[_0x1e2d56(0x199)][_0x1e2d56(0x1ef)](_0x20f6a0[_0x1e2d56(0xd5)],_0x20f6a0[_0x1e2d56(0x1e8)],_0x20f6a0[_0x1e2d56(0x1d6)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0xce),(_0x5bbc8c,_0x552ea1)=>{const _0x109698=_0x399e85;this[_0x109698(0x199)][_0x109698(0x177)](_0x552ea1);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1e0),(_0x3d05ac,_0x11ba49)=>{const _0x1c64f5=_0x399e85;this[_0x1c64f5(0x199)][_0x1c64f5(0x186)](_0x11ba49[_0x1c64f5(0x114)],_0x11ba49[_0x1c64f5(0x1d2)]);}),this[_0x399e85(0x1be)]['on'](_0x399e85(0x1c1),(_0x452b7a,{error:_0xbb1dfe,interactionId:_0x22c592,fileName:_0x264491,url:_0x1dc0ef,sourceId:_0x169691,sourceLabel:_0x1cb240})=>{const _0x4fc2d2=_0x399e85,_0x1b6494=_0x22c592?_0x22c592+':'+_0x206d05():_0x206d05();_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x139))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xfb)]({'staticMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x134)),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0xf0))||_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0xc9))?(this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x1fc)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe)):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x1a7))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x18b),_0x264491),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0xbf))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x13c),_0x1dc0ef),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x1f6))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x141)),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x146))?this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0xd8)),'id':_0x1b6494}):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x159))?(_0x169691&&this[_0x4fc2d2(0x199)][_0x4fc2d2(0x1a6)](_0x169691),this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x189),_0x1cb240||_0x4fc2d2(0xec)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe)):_0xbb1dfe[_0x4fc2d2(0xcf)][_0x4fc2d2(0x161)](_0x4fc2d2(0x12b))?(this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x113)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe)):(this[_0x4fc2d2(0x199)][_0x4fc2d2(0xf6)]({'errorMessage':_0x551fe0(this[_0x4fc2d2(0x1b7)][_0x4fc2d2(0x14f)],_0x4fc2d2(0x1c7)),'id':_0x1b6494}),this[_0x4fc2d2(0x1fe)](_0xbb1dfe));}),await this[_0x399e85(0x1be)][_0x399e85(0x118)](this[_0x399e85(0x1b7)][_0x399e85(0x130)][_0x399e85(0x14c)](_0x399e85(0xbe))),_0x1f2fb7||await this[_0x399e85(0x1be)][_0x399e85(0x181)]();}async[_0x2959fe(0x167)]({userMessage:_0x2a63ca,quickActionData:_0x47f5cc}){const _0x545caf=_0x2959fe;if(!this[_0x545caf(0x1be)])throw new _0x5f5d65(_0x545caf(0x128));this[_0x545caf(0x1be)][_0x545caf(0x131)]()&&await this[_0x545caf(0x1be)][_0x545caf(0x140)](this[_0x545caf(0x209)][_0x545caf(0xc1)]()),this[_0x545caf(0x1be)]['id']&&this[_0x545caf(0x1be)][_0x545caf(0xe4)]&&await this[_0x545caf(0x1be)][_0x545caf(0x205)]({'userMessage':_0x2a63ca,'quickActionData':_0x47f5cc}),this[_0x545caf(0x12c)]();}[_0x2959fe(0x12c)](){const _0x32f0ff=_0x2959fe,_0x4de66c=_0x2ef871(this[_0x32f0ff(0x1b7)])[_0x32f0ff(0x151)],_0x2dea04=Array[_0x32f0ff(0xfd)](_0x4de66c[_0x32f0ff(0x1df)][_0x32f0ff(0x1ae)](_0x1acfd1));_0x4de66c[_0x32f0ff(0x1ce)](_0x450964=>{const _0x561117=_0x32f0ff;_0x2dea04[_0x561117(0x13f)](_0x4590b2=>_0x450964[_0x561117(0x200)](_0x4590b2));});}[_0x2959fe(0x111)](){const _0x4ad8e1=_0x2959fe;console[_0x4ad8e1(0x1b8)](_0x4ad8e1(0xd4));}[_0x2959fe(0x112)](_0x1b72a0){const _0x5cfc02=_0x2959fe;this[_0x5cfc02(0x199)][_0x5cfc02(0x1c0)](_0x1b72a0);}[_0x2959fe(0x1fe)](_0x24265d){const _0x5d5f2a=_0x2959fe;_0x11d9f0(_0x24265d[_0x5d5f2a(0xcf)]);}[_0x2959fe(0x109)](_0x29f259){const _0x43b0a0=_0x2959fe;this[_0x43b0a0(0x1be)]?.[_0x43b0a0(0x15b)](_0x29f259);}[_0x2959fe(0x102)](){const _0x1b2b60=_0x2959fe;this[_0x1b2b60(0x1be)]?.[_0x1b2b60(0x183)]();}[_0x2959fe(0xea)](){const _0x4bdcb1=_0x2959fe;this[_0x4bdcb1(0x1be)]?.[_0x4bdcb1(0x1b3)]();}[_0x2959fe(0xd9)](_0x537b8c){const _0x3ac332=_0x2959fe,[_0x2fb562,_0xd7340b]=_0x537b8c[_0x3ac332(0xd7)](':'),_0x2ef1d4=this[_0x3ac332(0x1be)][_0x3ac332(0x129)](_0x2fb562),_0x3afd2f=_0x2ef1d4[_0x3ac332(0x155)](_0xd7340b);return{'interaction':_0x2ef1d4,'reply':_0x3afd2f};}[_0x2959fe(0x157)](_0x277e59,_0x182071=!0x1){const _0x3970be=_0x2959fe,_0xcf2b65=_0x2ef871(this[_0x3970be(0x1b7)]),_0x1c907c={'target':_0xcf2b65[_0x3970be(0x100)][_0x3970be(0xf5)][_0x3970be(0x13b)][_0x3970be(0xb5)](_0xcf2b65[_0x3970be(0x100)][_0x3970be(0x1ed)][_0x3970be(0x1c4)](_0x277e59)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x182071};_0x182071&&(_0x1c907c[_0x3970be(0x1d1)]=!0x0),_0x51d042(_0x1c907c);}[_0x2959fe(0x1f3)](_0x46b95b,_0xe58bc1=!0x1){const _0x3ee7ad=_0x2959fe;this[_0x3ee7ad(0x199)][_0x3ee7ad(0x197)](_0x46b95b||_0x551fe0(this[_0x3ee7ad(0x1b7)][_0x3ee7ad(0x14f)],_0x3ee7ad(0x142)),_0xe58bc1);}async[_0x2959fe(0x1cc)]({reply:_0x2bfc08,changeGroups:_0x49ed29,renderingStrategy:_0x39a377}){const _0x48c06e=_0x2959fe,{id:_0x4200bf,isDone:_0x2c856e,type:_0x146ac3,parsedContent:_0x1e0421}=_0x2bfc08;if(_0x48c06e(0xf3)===_0x146ac3){const _0x57e9e7=_0x2ef871(this[_0x48c06e(0x1b7)]),_0x2e98bb=_0x53055b({'editor':_0x57e9e7,'showDiff':this[_0x48c06e(0x199)][_0x48c06e(0x126)],'changeGroups':_0x49ed29,'documentContextContent':_0x2bfc08[_0x48c06e(0x173)]});await this[_0x48c06e(0x199)][_0x48c06e(0x1f2)]({'id':_0x4200bf,'parts':_0x2e98bb,'renderingStrategy':_0x39a377,'isDone':_0x2c856e});}else _0x48c06e(0x1de)===_0x146ac3&&await this[_0x48c06e(0x199)][_0x48c06e(0x17e)]({'id':_0x4200bf,'parsedContent':_0x1e0421,'renderingStrategy':_0x39a377,'isDone':_0x2c856e});_0x2c856e&&_0x2bfc08[_0x48c06e(0x125)][_0x48c06e(0xc2)]>0x0&&this[_0x48c06e(0x199)][_0x48c06e(0x1fa)](_0x4200bf,_0x2bfc08[_0x48c06e(0x125)]);}async[_0x2959fe(0x15f)](){const _0x27ad48=_0x2959fe,_0x1b30b2=this[_0x27ad48(0x1be)]?.[_0x27ad48(0xde)];_0x1b30b2&&(_0x1b30b2[_0x27ad48(0x201)](),this[_0x27ad48(0x199)][_0x27ad48(0xef)](_0x1b30b2));}async[_0x2959fe(0xd1)](){const _0x3ee2c6=_0x2959fe,_0x585579=this[_0x3ee2c6(0x1be)]?.[_0x3ee2c6(0xde)];if(_0x585579){for await(const _0x86a8bb of _0x585579[_0x3ee2c6(0x18f)])await this[_0x3ee2c6(0x1cc)]({'reply':_0x86a8bb,'changeGroups':_0x86a8bb[_0x3ee2c6(0x154)],'renderingStrategy':_0x3ee2c6(0xbc)});}}[_0x2959fe(0x119)](_0x2817d0){const _0x1816f1=_0x2959fe,_0x4e5335={'positiveCount':_0x2817d0[_0x1816f1(0x154)][_0x1816f1(0x158)](_0x5f44de=>_0x1816f1(0x1f0)===_0x5f44de[_0x1816f1(0x101)])[_0x1816f1(0xc2)],'totalCount':_0x2817d0[_0x1816f1(0x154)][_0x1816f1(0xc2)]},_0x52f1d7=this[_0x1816f1(0x1be)][_0x1816f1(0x129)](_0x2817d0[_0x1816f1(0x1ee)])[_0x1816f1(0xff)];this[_0x1816f1(0xe3)][_0x1816f1(0x1ca)](this[_0x1816f1(0x1be)]['id'],_0x52f1d7,_0x4e5335);}}
|
|
23
|
+
const _0x5268ff=_0x5392;(function(_0x2ee89a,_0x5a7b9f){const _0xd9d18d=_0x5392,_0xe48e22=_0x2ee89a();while(!![]){try{const _0x27316d=-parseInt(_0xd9d18d(0x112))/0x1*(-parseInt(_0xd9d18d(0x1dd))/0x2)+parseInt(_0xd9d18d(0x176))/0x3*(-parseInt(_0xd9d18d(0x12d))/0x4)+-parseInt(_0xd9d18d(0x147))/0x5+parseInt(_0xd9d18d(0xa1))/0x6+parseInt(_0xd9d18d(0x153))/0x7+parseInt(_0xd9d18d(0xf6))/0x8*(parseInt(_0xd9d18d(0x1c4))/0x9)+-parseInt(_0xd9d18d(0x90))/0xa;if(_0x27316d===_0x5a7b9f)break;else _0xe48e22['push'](_0xe48e22['shift']());}catch(_0x47b7f2){_0xe48e22['push'](_0xe48e22['shift']());}}}(_0x4770,0xa5e3b));import{ContextPlugin as _0x951add,Editor as _0x1d1f9d}from'ckeditor5/src/core.js';import{CKEditorError as _0x352eb3,logError as _0x1248f1,scrollViewportToShowTarget as _0x573709,uid as _0x484ae2}from'ckeditor5/src/utils.js';import{AIConnector as _0x5a4463}from'../aicore/aiconnector.js';import{AITabs as _0x37b057}from'../aitabs/aitabs.js';import{AIChatConversation as _0x48b666}from'./model/aichatconversation.js';import{getTranslation as _0x1fc3d6}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x93ab06}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x430d06}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x344805}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2304ad}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1a689a,DATA_ID_MODEL_ATTRIBUTE as _0xffd2fd}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2b369a,getOperationsFromReply as _0x26c983}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x23c17b,getMinimalSelection as _0x46ecee}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4a4527,_DetachOperation as _0x5702af}from'ckeditor5/src/engine.js';import{findOne as _0x5c75b6,getAttribute as _0x1765a4,serialize as _0x55a5db,Document as _0x27f42b,findByAttribute as _0x58ca42}from'../aicore/utils/htmlparser.js';import{IconAI as _0xb39332}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x37cf6b}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x11ade2}from'../aiballoon/aiballoon.js';function _0x4770(){const _0x4bd6a9=['startConversation','isCurrentDocumentInContext','updateCapabilities','_batchToChanges','addFeedItemError','rootName','config','viewRangeToDom','_handleUIUserMessage','removeContextItem','updateResourceState','AIEditing','enableControls','unshift','isStarted','1HPckTr','Failed\x20to\x20load\x20conversation','createPositionAt','replies','addDocumentToContext','handleUserInteraction','getRoot','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-context-invalid-data','filter','remove','error','ready','_toggleReasoning','document','length','toggleLoadingSkeleton','replyId','AIChatUI','$graveyard','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','modelSelected','getDocumentData','has','AI_CHAT_ABORTED_MESSAGE','requires','indexes','651148UCzoHm','accepted','_toggleWebSearch','alignToTop','replyCreated','addFeedItemStaticMessage','_updateRatings','changes','isModelAvailable','getChild','from','split','anchorId','rejectSuggestion','resetConversationTitle','lastInteraction','resourceStateChanged','query','_createFromRanges','startsWith','open','replyContentUpdated','updateFeedItemAIReplySources','resize','updateFeedItemAIReplySuggestionContent','isDocumentOperation','6409360VbyXKB','markers','map','addFeedItemAISuggestion','replyChangeGroupStateUpdated','init','setChangeGroupState','listenTo','change','options','setAddContextOptions','index','2592751MgTmwX','toggleSuggestionDisplayMode','outdated','_aiChatModels','ai-chat-controller-no-active-conversation','version','resourceId','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','root','sourceId','children','get','isInContext','upsertAIChatRating','addFeedItemUserMessage','afterInit','_applySuggestion','updateConversationTitle','applySuggestion','dialogClosed','mouseLeaveSuggestion','commands','_getDocumentRangeForReplyChanges','resizeTabs','sendUserMessage','insertSuggestion','removeFeedInteraction','ai-chat-context-unsupported-type','_aiChatUi','updateCurrentDocumentInContext','updateContent','removeSelectionFromChatContext','chat','batch','abortPromptStream','3uugoLV','getDiff','reasoningFinished','Undo','webSearchFinished','ai-chat-conversation-start-failed','setFeedItemRenderingStrategy','getDocumentContext','createPositionFromPath','range','toString','setLoadingMessage','parse','view','selection','removeSelectionFromContext','Liked\x20response','disableControls','context','contextItemRemoved','rejected','uiId','TrackChanges','_showConversationHistory','full','interactionDestroyed','AI_CHAT_GENERIC_ERROR','selectModel','uid','forEach','sources','addFeedInteractionHeader','AIChatController','AI_CHAT_RESOURCE_LOAD_FAILED','getOperations','getReply','new','state','getPath','indexOf','getChildren','streaming','_aiEditing','ai.chat.context','hasChanges','editors','reasoningStarted','AI_BALLOON_HEADER_TITLE','showDiff','mouseOverSuggestion','start','Showing\x20conversation\x20history...','contextItemLoadingEnded','addFileToContext','messageId','revert','_scrollToSuggestionRange','getChildAtOffset','_setIsMaximized','loadSourceResources','interactionFinished','selectedModel','showPrevious','ai-chat-conversation-init-failed','handleRemovedConversation','_stopLastInteraction','toggleReasoning','getGroupId','_balloonShowDiff','push','populateSourceResourceBalloon','pending','setSelectedModel','showChangeInText','createRange','toViewRange','isLoading','getMarkersGroup','6255Amxdfl','maxOffset','_startConversationSafely','scrollFeedToSuggestion','clearPendingContextUI','isOpen','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai.availableReplyActions','ai-chat-controller-mouse-over','toggleWebSearch','_removeFromContext','undo','redo','createConversation','showNext','setContextItemLoading','isPremiumPlugin','ai-no-track-changes','delete','getFirstRange','addFilesToContext','history','contextSent','getTransformedByOperation','getSelectionText','842722cBaCUb','text-delta','path','ai-chat-resource-load-failed','documentContextContent','ai-chat-file-upload-failed','_openBalloonFor','end','ai-chat-url-upload-failed','removeMarker','findIndex','isUploadInProgress','TrackChangesEditing','webSearchStarted','setIsMaximized','updateFeedItemAIReplySuggestionPartState','startInteraction','stop','4102980eldViJ','activeConversation','AITabs','data-id','addCurrentDocumentToContext','close','sendMessage','ai.chat.models.defaultModelId','resource','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','resizedTabs','message','isCurrentDocumentInConversation','nextSibling','contextItems','finishInteraction','add','4593096OezWGI','domConverter','collaboration.channelId','mapper','addUrlToContext','AIConnector','slice','focusPromptInput','static','cloneNode','interactionId','resetMessageInput','startAutoScroll','showFakeVisualSelection','closeSourceResourceBalloon','AI_CHAT_CONTEXT_INVALID_DATA','_flushLastInteractionUI','addContextItem','getRanges','_removeAISelectionMarkers','updateFeedItemAIReplyContent','type','getAttribute','_integrateEditor','getInteractionAndReplyById','setConversationContext','resources','sourceResourcesLoaded','contextItemAdded','capabilitiesUpdated','plugins','set','pluginName','stopInteraction','current-document','Disliked\x20response','content','addResourceToContext','setIsUploadInProgress','load','log','isOfficialPlugin','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_previewedChangeGroup','find','getContentParts','partIndex','contextItem','DocumentCompare','like','sourcePosition','isDisabled','applyOperation','editing','howMany','addFeedItemAIReply','loadConversation','addOperation','ai-conversation-','marker','modification-delta','_updateReplyContent','hideFakeVisualSelection','ai-request-aborted','node','addSelectionToChatContext','setConversationTitle','locale','interactionStarted','changeGroups','_handleStartConversation','uploadProgressChanged','clearConversationContextUI','removeFromContext','ai.chat.models.displayedModels','main','_aiConnector','removed','AI_CHAT_UNTITLED_CONVERSATION','_insertSuggestion','setModel','activateTab','source','baseVersion','dislike','11248BHkUOd','getInteraction','model','interactionCreated','addContextOptionsChanged','stopListening','conversationInitialized','ai-chat-source-resources-load-failed','addSelectionToContext','data','ai-chat-missing-channel-id','_logError','_applyOperationsAsSuggestions'];_0x4770=function(){return _0x4bd6a9;};return _0x4770();}function _0x5392(_0x1dd79b,_0xdc694c){const _0x477067=_0x4770();return _0x5392=function(_0x53924d,_0xcd8b9){_0x53924d=_0x53924d-0x81;let _0x42ab73=_0x477067[_0x53924d];return _0x42ab73;},_0x5392(_0x1dd79b,_0xdc694c);}export class AIChatController extends _0x951add{[_0x5268ff(0x1a0)];[_0x5268ff(0xed)];[_0x5268ff(0x16f)];[_0x5268ff(0x156)];[_0x5268ff(0x106)]=new Map();[_0x5268ff(0xcc)]=null;[_0x5268ff(0x1ba)]=!0x1;static get[_0x5268ff(0x12b)](){return[_0x5a4463,_0x11ade2,_0x1a689a];}static get[_0x5268ff(0xc1)](){const _0xde6c8f=_0x5268ff;return _0xde6c8f(0x196);}static get[_0x5268ff(0xca)](){return!0x0;}static get[_0x5268ff(0x1d4)](){return!0x0;}[_0x5268ff(0x14c)](){const _0x38a56c=_0x5268ff;this[_0x38a56c(0xed)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0xa6)),this[_0x38a56c(0x16f)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x124)),this[_0x38a56c(0x1a0)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x10e)),this[_0x38a56c(0x156)]=new _0x344805({'connector':this[_0x38a56c(0xed)],'availableModels':this[_0x38a56c(0x188)][_0x38a56c(0x109)][_0x38a56c(0x15e)](_0x38a56c(0xeb)),'defaultModelId':this[_0x38a56c(0x188)][_0x38a56c(0x109)][_0x38a56c(0x15e)](_0x38a56c(0x97))});const _0x39f55b=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x92));this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x103),()=>{const _0x2ff2d1=_0x38a56c;this[_0x2ff2d1(0x1c6)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16b),(_0x1ec001,_0x201fac)=>{const _0x5831a7=_0x38a56c;this[_0x5831a7(0x10b)]({'userMessage':_0x201fac});}),this[_0x38a56c(0x14e)](_0x39f55b,_0x38a56c(0x9a),(_0x3361e7,_0x5c49b8)=>{const _0x533b33=_0x38a56c;this[_0x533b33(0x1b0)](_0x5c49b8);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16a),()=>{const _0x7e6d0f=_0x38a56c;_0x39f55b[_0x7e6d0f(0x144)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x175),async()=>{const _0x208a0c=_0x38a56c;await this[_0x208a0c(0x1b7)](),await this[_0x208a0c(0xb1)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x116),()=>{const _0x19f41b=_0x38a56c;this[_0x19f41b(0x91)]?.[_0x19f41b(0x94)](_0x1fc3d6(this[_0x19f41b(0x188)][_0x19f41b(0xe4)],_0x19f41b(0x15a)));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1ab),(_0x3af043,_0x6560cf)=>{const _0x44ffa1=_0x38a56c;this[_0x44ffa1(0x91)]?.[_0x44ffa1(0x1d8)](Array[_0x44ffa1(0x137)](_0x6560cf));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xa5),(_0x1db88a,_0x37a5df)=>{const _0x2bba75=_0x38a56c;this[_0x2bba75(0x91)]?.[_0x2bba75(0xa5)](_0x37a5df);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xc6),(_0xb9be28,_0x3ece0a)=>{const _0x4f1eb2=_0x38a56c;this[_0x4f1eb2(0x91)]?.[_0x4f1eb2(0xc6)](_0x3ece0a[_0x4f1eb2(0xf3)],_0x3ece0a[_0x4f1eb2(0x98)]);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x10c),(_0x42dcaf,_0x53b137)=>{const _0x5154c8=_0x38a56c;this[_0x5154c8(0x1ce)](_0x53b137);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1b1),(_0x570a76,_0x458e9d)=>{const _0x3654fc=_0x38a56c;this[_0x3654fc(0x91)]?.[_0x3654fc(0x1b1)](_0x458e9d[_0x3654fc(0x15c)],_0x458e9d[_0x3654fc(0x13e)],_0x458e9d[_0x3654fc(0x192)]);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1cd),()=>{const _0x5cdd2b=_0x38a56c;this[_0x5cdd2b(0x12f)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1b8),()=>{const _0x10e10b=_0x38a56c;this[_0x10e10b(0x11f)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x191),(_0x4dffdf,_0x2f8d59)=>{const _0x38b6a3=_0x38a56c;this[_0x38b6a3(0x91)]?.[_0x38b6a3(0xf1)](_0x2f8d59);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xd2),(_0x14bede,{replyId:_0x17a2ea})=>{const _0x4985dc=_0x38a56c;console[_0x4985dc(0xc9)](_0x4985dc(0x186),_0x17a2ea);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xf5),(_0x2aea1a,{replyId:_0x480fad})=>{const _0x2a0594=_0x38a56c;console[_0x2a0594(0xc9)](_0x2a0594(0xc4),_0x480fad);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16c),(_0x5ef541,_0x1c22a7)=>{const _0x436fe9=_0x38a56c;this[_0x436fe9(0x188)][_0x436fe9(0xbf)][_0x436fe9(0x15e)](_0x11ade2)[_0x436fe9(0x95)](),this[_0x436fe9(0xf0)](_0x1c22a7);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1bf),(_0x4e94b3,{replyId:_0x483360,partIndex:_0x21052a})=>{const _0x305d17=_0x38a56c;this[_0x305d17(0x1ba)]=this[_0x305d17(0x16f)][_0x305d17(0x1a6)],this[_0x305d17(0x84)](_0x483360,_0x21052a);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1a7),(_0x168896,{replyId:_0x20ce58,partIndex:_0x1523d0})=>{const _0x493656=_0x38a56c,_0x229a37=this[_0x493656(0x169)](_0x20ce58,_0x1523d0);_0x229a37&&_0x493656(0x125)!=_0x229a37[_0x493656(0x17f)][_0x493656(0x15b)][_0x493656(0x108)]&&this[_0x493656(0x1a0)][_0x493656(0xae)]([_0x229a37[_0x493656(0x17f)]],_0x493656(0x1cc));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x167),()=>{const _0x19c9e9=_0x38a56c;this[_0x19c9e9(0x1a0)][_0x19c9e9(0xdf)](_0x19c9e9(0x1cc));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x165),(_0x585f34,_0x117276)=>{const _0x2bab5d=_0x38a56c;this[_0x2bab5d(0x188)][_0x2bab5d(0xbf)][_0x2bab5d(0x15e)](_0x11ade2)[_0x2bab5d(0x95)](),this[_0x2bab5d(0x163)](_0x117276);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x154),async(_0x2d9fcd,{replyId:_0x483b5d,showDiff:_0x1f19f0})=>{const _0x42b2a2=_0x38a56c,{reply:_0x5ceeb2}=this[_0x42b2a2(0xb9)](_0x483b5d),_0x11abec=_0x5ceeb2[_0x42b2a2(0xce)]({'showDiff':_0x1f19f0});await this[_0x42b2a2(0x16f)][_0x42b2a2(0x145)]({'id':_0x5ceeb2['id'],'parts':_0x11abec,'renderingStrategy':_0x42b2a2(0xa9)});}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x13a),(_0x1a1d6e,{replyId:_0x27408b,partIndex:_0x16a6b4})=>{const _0x6cb382=_0x38a56c;this[_0x6cb382(0xcc)]?.[_0x6cb382(0x123)]==_0x27408b&&this[_0x6cb382(0xcc)]?.[_0x6cb382(0xcf)]==_0x16a6b4&&this[_0x6cb382(0x188)][_0x6cb382(0xbf)][_0x6cb382(0x15e)](_0x11ade2)[_0x6cb382(0x95)]();const {reply:_0x35259d}=this[_0x6cb382(0xb9)](_0x27408b);_0x35259d[_0x6cb382(0x14d)](_0x16a6b4,_0x6cb382(0x18a)),this[_0x6cb382(0x1a0)][_0x6cb382(0xdf)](_0x6cb382(0x1cc));});}async[_0x5268ff(0x162)](){const _0x35de9e=_0x5268ff;this[_0x35de9e(0x188)]instanceof _0x1d1f9d?this[_0x35de9e(0xb8)](this[_0x35de9e(0x188)]):this[_0x35de9e(0x14e)](this[_0x35de9e(0x188)][_0x35de9e(0x1a3)],_0x35de9e(0xa0),(_0x4a2aab,_0xdcc8a7)=>{const _0xcf020f=_0x35de9e;_0xdcc8a7['on'](_0xcf020f(0x11e),()=>{const _0x2dd7be=_0xcf020f;this[_0x2dd7be(0xb8)](_0xdcc8a7);});}),await this[_0x35de9e(0x1c6)]();}[_0x5268ff(0xf0)](_0x1ae42d){const _0x372f96=_0x5268ff,_0x59c8c0=_0x2304ad(this[_0x372f96(0x188)]);if(!_0x59c8c0[_0x372f96(0xbf)][_0x372f96(0x129)](_0x372f96(0x18c)))throw new _0x352eb3(_0x372f96(0x1d5),null);const _0x1296cb=this[_0x372f96(0x188)][_0x372f96(0xbf)][_0x372f96(0x15e)](_0x372f96(0xd1)),{reply:_0x23cd84,interaction:_0x52a4e4}=this[_0x372f96(0xb9)](_0x1ae42d[_0x372f96(0x123)]),_0x3aa72f=this[_0x372f96(0x169)](_0x1ae42d[_0x372f96(0x123)],_0x1ae42d[_0x372f96(0xcf)]),_0x54c222=void 0x0!==_0x1ae42d[_0x372f96(0xcf)]?[_0x23cd84[_0x372f96(0xe6)][_0x1ae42d[_0x372f96(0xcf)]]]:_0x23cd84[_0x372f96(0xe6)][_0x372f96(0x11b)](_0xa62f4f=>_0x372f96(0x1bd)==_0xa62f4f[_0x372f96(0x19b)]),_0x5dd3e3=_0x54c222[_0x372f96(0x149)](_0x174706=>_0x23cd84[_0x372f96(0xe6)][_0x372f96(0x19d)](_0x174706));if(!_0x3aa72f||_0x372f96(0x125)==_0x3aa72f[_0x372f96(0x17f)][_0x372f96(0x15b)][_0x372f96(0x108)])return void _0x5dd3e3[_0x372f96(0x193)](_0x5f04ca=>_0x23cd84[_0x372f96(0x14d)](_0x5f04ca,_0x372f96(0x155)));_0x5dd3e3[_0x372f96(0x193)](_0x2fd4f6=>_0x23cd84[_0x372f96(0x14d)](_0x2fd4f6,_0x372f96(0x12e)));const _0x5604ba=_0x26c983({'editor':_0x59c8c0,'reply':_0x23cd84,'interaction':_0x52a4e4,'groups':_0x54c222,'transform':!0x0,'documentCompare':_0x1296cb,'documentCompareOptions':{'anchor':_0x372f96(0xec),'markDeletions':!0x0}});let _0x5eb853;_0x3aa72f&&this[_0x372f96(0x1ae)](_0x3aa72f[_0x372f96(0x17f)]),_0x59c8c0[_0x372f96(0xf8)][_0x372f96(0x14f)](_0x54aa9f=>{const _0x16ace1=_0x372f96;_0x5eb853=_0x54aa9f[_0x16ace1(0x174)],_0x59c8c0[_0x16ace1(0xbf)][_0x16ace1(0x15e)](_0x16ace1(0x8a))[_0x16ace1(0x102)](_0x5604ba),this[_0x16ace1(0x1a0)][_0x16ace1(0xdf)](_0x16ace1(0x1cc));}),this[_0x372f96(0x106)][_0x372f96(0xc0)](_0x5eb853,{'interactionId':_0x52a4e4['id'],'replyId':_0x23cd84['id'],'indexes':_0x5dd3e3[_0x372f96(0xa7)]()}),this[_0x372f96(0x133)](_0x23cd84);}[_0x5268ff(0x163)](_0x40c824){const _0x5a1867=_0x5268ff,_0x479865=_0x2304ad(this[_0x5a1867(0x188)]),_0x3f362e=this[_0x5a1867(0x188)][_0x5a1867(0xbf)][_0x5a1867(0x15e)](_0x1a689a),{reply:_0x1a723e,interaction:_0x3bc42e}=this[_0x5a1867(0xb9)](_0x40c824[_0x5a1867(0x123)]),_0x41d94c=this[_0x5a1867(0x169)](_0x40c824[_0x5a1867(0x123)],_0x40c824[_0x5a1867(0xcf)]),_0x3fdabe=void 0x0!==_0x40c824[_0x5a1867(0xcf)]?[_0x1a723e[_0x5a1867(0xe6)][_0x40c824[_0x5a1867(0xcf)]]]:_0x1a723e[_0x5a1867(0xe6)][_0x5a1867(0x11b)](_0x36df1e=>_0x5a1867(0x1bd)==_0x36df1e[_0x5a1867(0x19b)]),_0x3a6aa5=_0x3fdabe[_0x5a1867(0x149)](_0x29dea8=>_0x1a723e[_0x5a1867(0xe6)][_0x5a1867(0x19d)](_0x29dea8));if(!_0x41d94c||_0x5a1867(0x125)==_0x41d94c[_0x5a1867(0x17f)][_0x5a1867(0x15b)][_0x5a1867(0x108)])return void _0x3a6aa5[_0x5a1867(0x193)](_0x587dbb=>_0x1a723e[_0x5a1867(0x14d)](_0x587dbb,_0x5a1867(0x155)));_0x3a6aa5[_0x5a1867(0x193)](_0x23c9b7=>_0x1a723e[_0x5a1867(0x14d)](_0x23c9b7,_0x5a1867(0x12e)));const _0x3bcc79=_0x26c983({'editor':_0x479865,'reply':_0x1a723e,'interaction':_0x3bc42e,'groups':_0x3fdabe,'transform':!0x0,'documentCompare':_0x3f362e,'documentCompareOptions':{'anchor':_0x5a1867(0xec),'markDeletions':!0x1}});let _0x1a26b4;_0x41d94c&&this[_0x5a1867(0x1ae)](_0x41d94c[_0x5a1867(0x17f)]),_0x479865[_0x5a1867(0xf8)][_0x5a1867(0x14f)](_0x3863d9=>{const _0x3c872b=_0x5a1867;_0x1a26b4=_0x3863d9[_0x3c872b(0x174)];for(const _0x36a1ee of _0x3bcc79)_0x36a1ee[_0x3c872b(0xf4)]=_0x479865[_0x3c872b(0xf8)][_0x3c872b(0x120)][_0x3c872b(0x158)],_0x2b369a(_0x479865,_0x36a1ee),_0x3863d9[_0x3c872b(0x174)][_0x3c872b(0xda)](_0x36a1ee),_0x479865[_0x3c872b(0xf8)][_0x3c872b(0xd5)](_0x36a1ee);}),this[_0x5a1867(0x106)][_0x5a1867(0xc0)](_0x1a26b4,{'interactionId':_0x3bc42e['id'],'replyId':_0x1a723e['id'],'indexes':_0x3a6aa5[_0x5a1867(0xa7)]()}),this[_0x5a1867(0x133)](_0x1a723e);}[_0x5268ff(0x84)](_0x325a68,_0x26a645){const _0x376e63=_0x5268ff,_0x242ee5=_0x2304ad(this[_0x376e63(0x188)]),_0x1db2f4=this[_0x376e63(0x169)](_0x325a68,_0x26a645),_0x34a0d4=this[_0x376e63(0x188)][_0x376e63(0xbf)][_0x376e63(0x15e)](_0x11ade2);if(!_0x1db2f4)return void _0x34a0d4[_0x376e63(0x95)]();const {range:_0x2511e5,currentIndex:_0x2b08c8}=_0x1db2f4;if(_0x376e63(0x125)==_0x2511e5[_0x376e63(0x15b)][_0x376e63(0x108)]){const {reply:_0x5da1ad}=this[_0x376e63(0xb9)](_0x325a68);return _0x5da1ad[_0x376e63(0x14d)](_0x2b08c8,_0x376e63(0x155)),void _0x34a0d4[_0x376e63(0x95)]();}if(this[_0x376e63(0xcc)]?.[_0x376e63(0x123)]==_0x325a68&&this[_0x376e63(0xcc)]?.[_0x376e63(0xcf)]==_0x2b08c8)return;this[_0x376e63(0xfb)](_0x34a0d4),this[_0x376e63(0xcc)]={'replyId':_0x325a68,'partIndex':_0x2b08c8};let _0x29ad7f=_0x242ee5[_0x376e63(0x109)][_0x376e63(0x15e)](_0x376e63(0x1cb))||[..._0x430d06];_0x242ee5[_0x376e63(0xbf)][_0x376e63(0x129)](_0x376e63(0x18c))||(_0x29ad7f=_0x29ad7f[_0x376e63(0x11b)](_0x3e8a8c=>_0x376e63(0x16c)!=_0x3e8a8c));const _0x178ef9=new _0x37cf6b(_0x242ee5[_0x376e63(0xe4)],{'showDiff':this[_0x376e63(0x1ba)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x376e63(0x18e)},'hideHeader':!0x0,'availableActions':_0x29ad7f});this[_0x376e63(0xfb)](_0x178ef9);const {reply:_0x45a3e5}=this[_0x376e63(0xb9)](_0x325a68),_0x2bcd42=_0x45a3e5[_0x376e63(0xce)]({'showDiff':this[_0x376e63(0x1ba)]})[_0x376e63(0x11b)](_0x9a9981=>_0x9a9981[_0x376e63(0x1a2)]),_0x3ec300=_0x2bcd42[_0x376e63(0x88)](_0x21e7fb=>_0x21e7fb[_0x376e63(0x152)]==_0x2b08c8);if(-0x1==_0x3ec300)return;const _0x414715=_0x2bcd42[_0x3ec300],_0x20f7ef=_0x2bcd42['at']((_0x3ec300-0x1)%_0x2bcd42[_0x376e63(0x121)])?.[_0x376e63(0x152)],_0x4909d6=_0x2bcd42['at']((_0x3ec300+0x1)%_0x2bcd42[_0x376e63(0x121)])?.[_0x376e63(0x152)];_0x178ef9[_0x376e63(0x171)]({'parts':[_0x414715],'renderingStrategy':_0x376e63(0xa9)});const _0x323c66=_0x2b08c8!==_0x20f7ef;this[_0x376e63(0x1ae)](_0x2511e5,!0x0),_0x34a0d4[_0x376e63(0x141)]({'index':_0x2b08c8,'title':_0x1fc3d6(this[_0x376e63(0x188)][_0x376e63(0xe4)],_0x376e63(0x1a5),(_0x3ec300+0x1)[_0x376e63(0x180)]()),'icon':_0xb39332,'mainView':_0x178ef9,'showRotator':_0x323c66,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x2511e5]}),this[_0x376e63(0x16f)][_0x376e63(0x1c7)](_0x325a68,_0x2b08c8),this[_0x376e63(0x14e)](_0x178ef9,_0x376e63(0x154),(_0xc7b6f6,{showDiff:_0x20cb2c})=>{const _0x37984d=_0x376e63;this[_0x37984d(0x1ba)]=_0x20cb2c;const {reply:_0x564f8f}=this[_0x37984d(0xb9)](_0x325a68),_0x2bc142=_0x564f8f[_0x37984d(0xce)]({'showDiff':_0x20cb2c,'groupIndex':_0x2b08c8});_0x178ef9[_0x37984d(0x171)]({'parts':_0x2bc142,'renderingStrategy':_0x37984d(0xa9)});}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x165),()=>{const _0x1d5abc=_0x376e63;this[_0x1d5abc(0x163)]({'replyId':_0x325a68,'partIndex':_0x2b08c8}),_0x323c66?this[_0x1d5abc(0x84)](_0x325a68,_0x4909d6):_0x34a0d4[_0x1d5abc(0x95)]();}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x16c),()=>{const _0x4f5901=_0x376e63;this[_0x4f5901(0xf0)]({'replyId':_0x325a68,'partIndex':_0x2b08c8}),_0x323c66?this[_0x4f5901(0x84)](_0x325a68,_0x4909d6):_0x34a0d4[_0x4f5901(0x95)]();}),_0x323c66&&(this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x1d2),()=>{const _0x1f94cd=_0x376e63;this[_0x1f94cd(0x84)](_0x325a68,_0x4909d6);}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x1b4),()=>{const _0x240ddf=_0x376e63;this[_0x240ddf(0x84)](_0x325a68,_0x20f7ef);})),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x166),()=>{const _0x404751=_0x376e63;this[_0x404751(0xfb)](_0x34a0d4),this[_0x404751(0xfb)](_0x178ef9),this[_0x404751(0xcc)]=null;});}[_0x5268ff(0x169)](_0x353045,_0x2268b4){const _0x420c5a=_0x5268ff,_0x5d6f61=_0x2304ad(this[_0x420c5a(0x188)]),{reply:_0x1728f0,interaction:_0x45ea90}=this[_0x420c5a(0xb9)](_0x353045),_0x1f8bc4=_0x1728f0[_0x420c5a(0xe6)][_0x420c5a(0x11b)](_0x3e0d42=>_0x420c5a(0x1bd)==_0x3e0d42[_0x420c5a(0x19b)]),_0x6a55f6=_0x1f8bc4[_0x420c5a(0x149)](_0x820f42=>_0x1728f0[_0x420c5a(0xe6)][_0x420c5a(0x19d)](_0x820f42));void 0x0===_0x2268b4&&(_0x2268b4=_0x6a55f6[0x0]);const _0x2381c8=_0x6a55f6[_0x420c5a(0x19d)](_0x2268b4);if(-0x1==_0x2381c8)return null;const _0x4c04d7=_0x1f8bc4[_0x2381c8],_0x43c6a3=new _0x27f42b([]),_0x170422=new _0x27f42b([]);for(const _0x3d221d of _0x4c04d7[_0x420c5a(0x134)])if(_0x420c5a(0xee)!=_0x3d221d[_0x420c5a(0xb6)]&&_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3d221d[_0x420c5a(0xe1)][_0x420c5a(0xaa)](!0x0)),_0x420c5a(0x19a)!=_0x3d221d[_0x420c5a(0xb6)]){const _0x182edc=_0x5c75b6(_0x2cac6f=>_0x1765a4(_0x2cac6f,_0x420c5a(0x93))==_0x3d221d['id'],_0x1728f0[_0x420c5a(0x82)],!0x0);_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x182edc[_0x420c5a(0xaa)](!0x0));}if(0x0==_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x121)]){if(_0x4c04d7[_0x420c5a(0x134)][0x0][_0x420c5a(0x139)]){const _0x555315=_0x58ca42(_0x420c5a(0x93),_0x4c04d7[_0x420c5a(0x134)][0x0][_0x420c5a(0x139)],_0x1728f0[_0x420c5a(0x82)]);_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x110)](_0x555315[_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x110)](_0x555315[_0x420c5a(0xaa)](!0x0)),_0x555315[_0x420c5a(0x9d)]&&(_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x555315[_0x420c5a(0x9d)][_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x555315[_0x420c5a(0x9d)][_0x420c5a(0xaa)](!0x0)));}else{const _0x3cca22=_0x1728f0[_0x420c5a(0x82)][_0x420c5a(0x15d)][0x0];if(!_0x3cca22)return null;_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3cca22[_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3cca22[_0x420c5a(0xaa)](!0x0));}}const _0x93e94f=_0x45ea90[_0x420c5a(0x17d)](),_0x41d15e=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x93e94f[_0x420c5a(0xc5)]),_0x4fa614=_0x55a5db(_0x43c6a3),_0x33ccfd=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x4fa614),_0xb3dc14=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x4fa614),_0x21873b=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x114)](_0x33ccfd,0x0),_0x440ec0=_0x55a5db(_0x170422),_0x1d5f6b={'anchor':_0x21873b,'markDeletions':!0x1},_0x5fe0f9=_0x5d6f61[_0x420c5a(0xbf)][_0x420c5a(0x15e)](_0x1a689a)[_0x420c5a(0x177)](_0x4fa614,_0x440ec0,_0x1d5f6b)[_0x420c5a(0x198)]();if(!_0x5fe0f9[_0x420c5a(0x121)])return null;_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x14f)](_0x1e4b99=>{const _0x39db98=_0x420c5a;for(const _0x5ae85a of _0x5fe0f9)if(_0x39db98(0x11c)==_0x5ae85a[_0x39db98(0xb6)]){const _0x1dd257=_0x5ae85a[_0x39db98(0xd3)],_0x27d4dd=_0x5ae85a[_0x39db98(0xd7)],_0x344fa6=new _0x5702af(_0x1dd257,_0x27d4dd);_0x1e4b99[_0x39db98(0x174)][_0x39db98(0xda)](_0x344fa6),_0x5d6f61[_0x39db98(0xf8)][_0x39db98(0xd5)](_0x344fa6);}else _0x39db98(0xdc)!==_0x5ae85a[_0x39db98(0xb6)]&&(_0x5ae85a[_0x39db98(0xf4)]=null,_0x5ae85a[_0x39db98(0x146)]=!0x1,_0x1e4b99[_0x39db98(0x174)][_0x39db98(0xda)](_0x5ae85a),_0x5d6f61[_0x39db98(0xf8)][_0x39db98(0xd5)](_0x5ae85a));});const _0x205835=_0x46ecee(_0x5d6f61,_0x5fe0f9,_0x33ccfd);_0x23c17b(_0x5d6f61[_0x420c5a(0xf8)],_0x205835);const _0x4e1015=_0x205835[_0x420c5a(0x1d7)]()[_0x420c5a(0x1a8)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x3cbebe=_0x205835[_0x420c5a(0x1d7)]()[_0x420c5a(0x85)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x3a6922=[];let _0x303f52=_0x33ccfd,_0x383762=_0xb3dc14;for(let _0x7dc414=0x0;_0x7dc414<_0x3cbebe[_0x420c5a(0x121)];_0x7dc414++){const _0x1be2a5=_0x303f52[_0x420c5a(0x1c5)]-_0x3cbebe[_0x7dc414];_0x3a6922[_0x7dc414]=_0x383762[_0x420c5a(0x1c5)]-_0x1be2a5,_0x303f52=_0x303f52[_0x420c5a(0x1af)](_0x3cbebe[_0x7dc414]),_0x383762=_0x383762[_0x420c5a(0x1af)](_0x3a6922[_0x7dc414]);}const _0x29a880=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x1c0)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0xb3dc14,_0x4e1015),_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0xb3dc14,_0x3a6922)),_0x36db63=_0xb3dc14[_0x420c5a(0x136)](0x0)[_0x420c5a(0xb7)](_0xffd2fd),_0x437c07=Array[_0x420c5a(0x137)](_0x41d15e[_0x420c5a(0x19e)]())[_0x420c5a(0xcd)](_0x240613=>_0x240613[_0x420c5a(0xb7)](_0xffd2fd)==_0x36db63)[_0x420c5a(0x19c)](),_0x22cb78=_0x29a880[_0x420c5a(0x1a8)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x5ddf20=_0x29a880[_0x420c5a(0x85)][_0x420c5a(0x1df)][_0x420c5a(0xa7)]();_0x22cb78[0x0]=_0x437c07[0x0]+_0x22cb78[0x0],_0x5ddf20[0x0]=_0x437c07[0x0]+_0x5ddf20[0x0];let _0x14873e=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x1c0)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x118)](),_0x22cb78),_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x118)](),_0x5ddf20));const _0x6f3cf6=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x1d9)][_0x420c5a(0x198)](_0x93e94f[_0x420c5a(0x158)]);for(const _0x5c9d7f of _0x6f3cf6)_0x14873e=_0x4a4527[_0x420c5a(0x13f)](_0x14873e[_0x420c5a(0x1db)](_0x5c9d7f));return{'range':_0x14873e,'currentIndex':_0x2268b4};}[_0x5268ff(0xb8)](_0x29bcb8){const _0x3de60b=_0x5268ff;if(!_0x29bcb8[_0x3de60b(0xbf)][_0x3de60b(0x129)](_0x3de60b(0x179)))return;const _0x3fd385=_0x29bcb8[_0x3de60b(0x168)][_0x3de60b(0x15e)](_0x3de60b(0x1cf)),_0x6fc0ac=_0x29bcb8[_0x3de60b(0x168)][_0x3de60b(0x15e)](_0x3de60b(0x1d0));this[_0x3de60b(0x14e)](_0x3fd385,_0x3de60b(0x1ad),(_0x2b7771,_0x5736f5,_0x3af7f4)=>{const _0xf170c9=_0x3de60b,_0x285d1d=this[_0xf170c9(0x106)][_0xf170c9(0x15e)](_0x5736f5);if(!_0x285d1d)return;const _0x58b4d0=this[_0xf170c9(0x91)][_0xf170c9(0xf7)](_0x285d1d[_0xf170c9(0xab)])[_0xf170c9(0x199)](_0x285d1d[_0xf170c9(0x123)]);_0x285d1d[_0xf170c9(0x12c)][_0xf170c9(0x193)](_0x28033e=>_0x58b4d0[_0xf170c9(0x14d)](_0x28033e,_0xf170c9(0x1bd))),this[_0xf170c9(0x106)][_0xf170c9(0x1d6)](_0x5736f5),this[_0xf170c9(0x106)][_0xf170c9(0xc0)](_0x3af7f4,_0x285d1d);}),this[_0x3de60b(0x14e)](_0x6fc0ac,_0x3de60b(0x1ad),(_0x198a0f,_0x2df507,_0x418eeb)=>{const _0x2e1159=_0x3de60b,_0x3d5ce1=this[_0x2e1159(0x106)][_0x2e1159(0x15e)](_0x2df507);if(!_0x3d5ce1)return;const _0x4c7d00=this[_0x2e1159(0x91)][_0x2e1159(0xf7)](_0x3d5ce1[_0x2e1159(0xab)])[_0x2e1159(0x199)](_0x3d5ce1[_0x2e1159(0x123)]);_0x3d5ce1[_0x2e1159(0x12c)][_0x2e1159(0x193)](_0x304ab2=>_0x4c7d00[_0x2e1159(0x14d)](_0x304ab2,_0x2e1159(0x12e))),this[_0x2e1159(0x106)][_0x2e1159(0x1d6)](_0x2df507),this[_0x2e1159(0x106)][_0x2e1159(0xc0)](_0x418eeb,_0x3d5ce1);});}async[_0x5268ff(0xd9)](_0x23332b){const _0x4bb019=_0x5268ff;this[_0x4bb019(0x188)][_0x4bb019(0xbf)][_0x4bb019(0x15e)](_0x11ade2)[_0x4bb019(0x95)](),this[_0x4bb019(0x16f)][_0x4bb019(0x17c)](_0x4bb019(0xa9)),this[_0x4bb019(0x16f)][_0x4bb019(0x122)](!0x0),await this[_0x4bb019(0x1b7)]();try{const _0x37a7f2=this[_0x4bb019(0x188)][_0x4bb019(0xbf)][_0x4bb019(0x15e)](_0x37b057);this[_0x4bb019(0x164)]('\x20'),_0x37a7f2[_0x4bb019(0x183)][_0x4bb019(0xf2)](_0x4bb019(0x173)),await this[_0x4bb019(0x1c6)](_0x23332b);const {sessionId:_0x1ce257}=this[_0x4bb019(0x1a0)][_0x4bb019(0x128)]();await this[_0x4bb019(0x91)][_0x4bb019(0xc8)](_0x23332b,_0x1ce257),this[_0x4bb019(0x91)][_0x4bb019(0x9c)]()&&this[_0x4bb019(0x91)][_0x4bb019(0x94)](_0x1fc3d6(this[_0x4bb019(0x188)][_0x4bb019(0xe4)],_0x4bb019(0x15a)));}catch(_0xae9039){console[_0x4bb019(0x11d)](_0x4bb019(0x113),_0xae9039);}finally{this[_0x4bb019(0x16f)][_0x4bb019(0xad)](),this[_0x4bb019(0x16f)][_0x4bb019(0x17c)](_0x4bb019(0x19f)),this[_0x4bb019(0x16f)][_0x4bb019(0x122)](!0x1);}}[_0x5268ff(0x1b6)](_0x30b23d){const _0x534f2e=_0x5268ff;this[_0x534f2e(0x91)]['id']===_0x30b23d&&this[_0x534f2e(0x1c6)]();}async[_0x5268ff(0xe2)](){const _0x217e79=_0x5268ff,_0x4849e5=this[_0x217e79(0x1a0)][_0x217e79(0x1dc)]();this[_0x217e79(0x91)]?.[_0x217e79(0xfe)](_0x4849e5),this[_0x217e79(0x91)]?.[_0x217e79(0x94)](_0x1fc3d6(this[_0x217e79(0x188)][_0x217e79(0xe4)],_0x217e79(0x15a)));}[_0x5268ff(0x172)](){const _0x19f998=_0x5268ff;this[_0x19f998(0x91)]?.[_0x19f998(0x185)]();}[_0x5268ff(0xa8)](){const _0x3b6ca0=_0x5268ff;this[_0x3b6ca0(0x16f)][_0x3b6ca0(0xa8)]();}async[_0x5268ff(0x103)](){const _0x4f162a=_0x5268ff;await this[_0x4f162a(0x1c6)]();}async[_0x5268ff(0x96)]({message:_0x49dc7e,quickActionData:_0x2982e2}){const _0x2753b7=_0x5268ff;await this[_0x2753b7(0x10b)]({'userMessage':_0x49dc7e,'quickActionData':_0x2982e2});}[_0x5268ff(0x1b9)](){const _0xa442cb=_0x5268ff,_0x1163e9=this[_0xa442cb(0x188)][_0xa442cb(0x109)][_0xa442cb(0x15e)](_0xa442cb(0xa3));if(!_0x1163e9)throw new _0x352eb3(_0xa442cb(0x100),this);return _0x1163e9;}async[_0x5268ff(0x1c6)](_0x4d8b38){const _0x5df65e=_0x5268ff;try{this[_0x5df65e(0x16f)][_0x5df65e(0x10f)](),await this[_0x5df65e(0xe7)](_0x4d8b38);}catch(_0x1cea3c){_0x1248f1(_0x5df65e(0x17b),_0x1cea3c),this[_0x5df65e(0x91)]=void 0x0,this[_0x5df65e(0x16f)][_0x5df65e(0x187)]();}}async[_0x5268ff(0xe7)](_0x167664){const _0x1f2985=_0x5268ff,_0x548003=this[_0x1f2985(0x188)][_0x1f2985(0xbf)][_0x1f2985(0x15e)](_0x11ade2);let _0x110313;_0x548003[_0x1f2985(0x1c9)]&&_0x548003[_0x1f2985(0x95)](),_0x167664||!this[_0x1f2985(0x91)]?_0x110313=this[_0x1f2985(0x188)][_0x1f2985(0x109)][_0x1f2985(0x15e)](_0x1f2985(0x97)):this[_0x1f2985(0x16f)][_0x1f2985(0x135)]&&(_0x110313=this[_0x1f2985(0x91)][_0x1f2985(0x1b3)]['id']),await this[_0x1f2985(0x1b7)]();const _0x45697a=this[_0x1f2985(0x1b9)](),_0x1e89a6=_0x167664||_0x484ae2();this[_0x1f2985(0x91)]=new _0x48b666({'connector':this[_0x1f2985(0xed)],'chatModels':this[_0x1f2985(0x156)],'selectedModelId':_0x110313,'conversationId':_0x1e89a6,'group':_0x45697a,'getEditor':()=>_0x2304ad(this[_0x1f2985(0x188)])}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xfc),(_0x37a7d7,_0x5d7c7a)=>{const _0x51f5a=_0x1f2985;this[_0x51f5a(0x16f)][_0x51f5a(0x1d1)](_0x5d7c7a),this[_0x51f5a(0x16f)][_0x51f5a(0xac)](),this[_0x51f5a(0x16f)][_0x51f5a(0x1c8)](),this[_0x51f5a(0x16f)][_0x51f5a(0xe9)](),_0x167664||(this[_0x51f5a(0x16f)][_0x51f5a(0x13b)](),this[_0x51f5a(0x91)]?.[_0x51f5a(0x94)](_0x1fc3d6(this[_0x51f5a(0x188)][_0x51f5a(0xe4)],_0x51f5a(0x15a))));}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe8),(_0x50b92b,_0x56a60e)=>{const _0x235038=_0x1f2985;this[_0x235038(0x16f)][_0x235038(0xc7)](_0x56a60e[_0x235038(0x89)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xf9),(_0x2fc233,_0x3b4e96)=>{const _0x4206ba=_0x1f2985;this[_0x4206ba(0x16f)][_0x4206ba(0x161)](_0x3b4e96);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x8b),()=>{const _0x2d95d8=_0x1f2985;this[_0x2d95d8(0x16f)][_0x2d95d8(0x181)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1a4),()=>{const _0x223455=_0x1f2985;this[_0x223455(0x16f)][_0x223455(0x181)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x17a),(_0x42af8a,_0x2d33f3)=>{const _0xb3089e=_0x1f2985;this[_0xb3089e(0x16f)][_0xb3089e(0x195)](_0x2d33f3,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x178),(_0x2e9e47,_0x1f761f)=>{const _0x59982b=_0x1f2985;this[_0x59982b(0x16f)][_0x59982b(0x195)](_0x1f761f,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe5),()=>{const _0x43ef85=_0x1f2985;this[_0x43ef85(0x16f)][_0x43ef85(0x8e)]();}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1b2),async()=>{const _0x21126e=_0x1f2985;await this[_0x21126e(0x16f)][_0x21126e(0x9f)]();}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x18f),(_0x25d488,_0x47807e)=>{const _0x398377=_0x1f2985;this[_0x398377(0x16f)][_0x398377(0x16d)](_0x47807e['id']);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe3),(_0x4bf963,_0x18720b,_0x5c13ab)=>{const _0xc436cf=_0x1f2985;this[_0xc436cf(0x164)](_0x18720b,_0x5c13ab);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x131),(_0x56e917,_0x5c5779)=>{const _0x5f44fc=_0x1f2985;_0x5f44fc(0x1de)===_0x5c5779[_0x5f44fc(0xb6)]?this[_0x5f44fc(0x16f)][_0x5f44fc(0xd8)](_0x5c5779):this[_0x5f44fc(0x16f)][_0x5f44fc(0x14a)](_0x5c5779);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x142),async(_0x7bc1f5,_0x44bdcf)=>{const _0x348a5d=_0x1f2985;await this[_0x348a5d(0xde)]({'reply':_0x44bdcf});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x14b),(_0x27cf76,{reply:_0x1b32d8,index:_0x334cf3,state:_0xb46b0c})=>{const _0x124399=_0x1f2985;this[_0x124399(0x16f)][_0x124399(0x8d)]({'id':_0x1b32d8['id'],'index':_0x334cf3,'state':_0xb46b0c});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbd),(_0x37062f,_0x19327b)=>{const _0x3a3dd4=_0x1f2985;if(this[_0x3a3dd4(0x16f)][_0x3a3dd4(0xb2)](_0x19327b[_0x3a3dd4(0xd0)],_0x19327b[_0x3a3dd4(0x1c2)]),_0x3a3dd4(0x184)===_0x19327b[_0x3a3dd4(0xd0)][_0x3a3dd4(0xb6)]){const _0x163e1b=[..._0x2304ad(this[_0x3a3dd4(0x188)])[_0x3a3dd4(0xf8)][_0x3a3dd4(0x120)][_0x3a3dd4(0x184)][_0x3a3dd4(0xb3)]()];this[_0x3a3dd4(0x1a0)][_0x3a3dd4(0xae)](_0x163e1b,_0x3a3dd4(0xdb)+this[_0x3a3dd4(0x91)]?.['id']);}}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x189),(_0x2a8d22,_0x1f3276)=>{const _0x534cfe=_0x1f2985;this[_0x534cfe(0x16f)][_0x534cfe(0x10c)](_0x1f3276[_0x534cfe(0x18b)]),_0x534cfe(0xc3)==_0x1f3276[_0x534cfe(0x18b)]&&this[_0x534cfe(0x172)](),_0x534cfe(0x184)===_0x1f3276[_0x534cfe(0xb6)]&&this[_0x534cfe(0x1a0)][_0x534cfe(0xdf)](_0x534cfe(0xdb)+this[_0x534cfe(0x91)]?.['id']);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1aa),(_0x53e8c7,_0x5b0bb6)=>{const _0x192e54=_0x1f2985;this[_0x192e54(0x16f)][_0x192e54(0x1d3)](_0x5b0bb6[_0x192e54(0xd0)][_0x192e54(0x18b)],_0x5b0bb6[_0x192e54(0x1c2)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1da),(_0x547bc6,_0x5e9e0a)=>{const _0x10ebe6=_0x1f2985;this[_0x10ebe6(0x16f)][_0x10ebe6(0xba)](_0x5e9e0a[_0x10ebe6(0x9e)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xfa),(_0x228e98,_0x29796f)=>{const _0x22b15f=_0x1f2985;this[_0x22b15f(0x16f)][_0x22b15f(0x151)](_0x29796f[_0x22b15f(0x150)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbc),(_0x298886,_0x37f33b)=>{const _0x371a2c=_0x1f2985;this[_0x371a2c(0x16f)][_0x371a2c(0x1bc)](_0x37f33b[_0x371a2c(0x15c)],_0x37f33b[_0x371a2c(0xf3)],_0x37f33b[_0x371a2c(0xbb)],_0x37f33b[_0x371a2c(0x192)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x13d),(_0x21c229,_0x4c2d5f)=>{const _0x64db67=_0x1f2985;this[_0x64db67(0x16f)][_0x64db67(0x10d)](_0x4c2d5f[_0x64db67(0x15c)],_0x4c2d5f[_0x64db67(0x159)],_0x4c2d5f[_0x64db67(0x15f)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbe),(_0x277cf3,_0x59f177)=>{const _0x292f08=_0x1f2985;this[_0x292f08(0x16f)][_0x292f08(0x105)](_0x59f177);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x127),(_0x5a1777,_0x36d633)=>{const _0x5a5fa8=_0x1f2985;this[_0x5a5fa8(0x16f)][_0x5a5fa8(0x1be)](_0x36d633[_0x5a5fa8(0x1b3)],_0x36d633[_0x5a5fa8(0xd4)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x11d),(_0x1c6ccb,{error:_0x2205b1,interactionId:_0x10f929,fileName:_0x4509aa,url:_0x19a380,sourceId:_0x45cb4a,sourceLabel:_0x339c6b})=>{const _0x558e65=_0x1f2985,_0x5c4a83=_0x10f929?_0x10f929+':'+_0x484ae2():_0x484ae2();_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0xe0))?this[_0x558e65(0x16f)][_0x558e65(0x132)]({'staticMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x12a)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x1b5))||_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x17b))?(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x119)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x83))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x99),_0x4509aa),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x86))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0xcb),_0x19a380),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x11a))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0xb0)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x16e))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x126)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0xfd))?(_0x45cb4a&&this[_0x558e65(0x16f)][_0x558e65(0xaf)](_0x45cb4a),this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x1ca),_0x339c6b||_0x558e65(0xf3)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x81))?(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x197)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x190)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1));}),await this[_0x1f2985(0x91)][_0x1f2985(0x14c)](this[_0x1f2985(0x188)][_0x1f2985(0x109)][_0x1f2985(0x15e)](_0x1f2985(0x1a1))),_0x167664||await this[_0x1f2985(0x91)][_0x1f2985(0x1a8)]();}async[_0x5268ff(0x10b)]({userMessage:_0x1e068f,quickActionData:_0x4a7efe}){const _0x4e7121=_0x5268ff;if(!this[_0x4e7121(0x91)])throw new _0x352eb3(_0x4e7121(0x157));this[_0x4e7121(0x91)][_0x4e7121(0x104)]()&&await this[_0x4e7121(0x91)][_0x4e7121(0x170)](this[_0x4e7121(0x1a0)][_0x4e7121(0x128)]()),this[_0x4e7121(0x91)]['id']&&this[_0x4e7121(0x91)][_0x4e7121(0x111)]&&await this[_0x4e7121(0x91)][_0x4e7121(0x117)]({'userMessage':_0x1e068f,'quickActionData':_0x4a7efe}),this[_0x4e7121(0xb4)]();}[_0x5268ff(0xb4)](){const _0x2120ff=_0x5268ff,_0x42a731=_0x2304ad(this[_0x2120ff(0x188)])[_0x2120ff(0xf8)],_0x54d1a2=Array[_0x2120ff(0x137)](_0x42a731[_0x2120ff(0x148)][_0x2120ff(0x1c3)](_0x93ab06));_0x42a731[_0x2120ff(0x14f)](_0x47cf71=>{const _0x50c4f3=_0x2120ff;_0x54d1a2[_0x50c4f3(0x193)](_0x521029=>_0x47cf71[_0x50c4f3(0x87)](_0x521029));});}[_0x5268ff(0x18d)](){const _0x23f283=_0x5268ff;console[_0x23f283(0xc9)](_0x23f283(0x1a9));}[_0x5268ff(0x1b0)](_0x10d514){const _0x127438=_0x5268ff;this[_0x127438(0x16f)][_0x127438(0x8c)](_0x10d514);}[_0x5268ff(0x101)](_0x545cd0){const _0x2972f9=_0x5268ff;_0x1248f1(_0x545cd0[_0x2972f9(0x9b)]);}[_0x5268ff(0x1ce)](_0x37ccd7){const _0x4e88f6=_0x5268ff;this[_0x4e88f6(0x91)]?.[_0x4e88f6(0xea)](_0x37ccd7);}[_0x5268ff(0x12f)](){const _0x984d85=_0x5268ff;this[_0x984d85(0x91)]?.[_0x984d85(0x1cd)]();}[_0x5268ff(0x11f)](){const _0x270468=_0x5268ff;this[_0x270468(0x91)]?.[_0x270468(0x1b8)]();}[_0x5268ff(0xb9)](_0x3cf053){const _0x33fe6e=_0x5268ff,[_0xa0648f,_0x318ae3]=_0x3cf053[_0x33fe6e(0x138)](':'),_0x443cd7=this[_0x33fe6e(0x91)][_0x33fe6e(0xf7)](_0xa0648f),_0x103ab5=_0x443cd7[_0x33fe6e(0x199)](_0x318ae3);return{'interaction':_0x443cd7,'reply':_0x103ab5};}[_0x5268ff(0x1ae)](_0x1b0805,_0x42c1a2=!0x1){const _0x2312ed=_0x5268ff,_0xffa94b=_0x2304ad(this[_0x2312ed(0x188)]),_0x597a2e={'target':_0xffa94b[_0x2312ed(0xd6)][_0x2312ed(0x183)][_0x2312ed(0xa2)][_0x2312ed(0x10a)](_0xffa94b[_0x2312ed(0xd6)][_0x2312ed(0xa4)][_0x2312ed(0x1c1)](_0x1b0805)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x42c1a2};_0x42c1a2&&(_0x597a2e[_0x2312ed(0x130)]=!0x0),_0x573709(_0x597a2e);}[_0x5268ff(0x164)](_0x193704,_0x35cd9b=!0x1){const _0x360bfd=_0x5268ff;this[_0x360bfd(0x16f)][_0x360bfd(0xe3)](_0x193704||_0x1fc3d6(this[_0x360bfd(0x188)][_0x360bfd(0xe4)],_0x360bfd(0xef)),_0x35cd9b);}async[_0x5268ff(0xde)]({reply:_0x2b261c,renderingStrategy:_0x10466e}){const _0x2cefab=_0x5268ff,{id:_0x505d53,isDone:_0x5d1cea,type:_0x710c7e,parsedContent:_0x44861d}=_0x2b261c;if(_0x2cefab(0xdd)===_0x710c7e){const _0x2a807e=_0x2b261c[_0x2cefab(0xce)]({'showDiff':this[_0x2cefab(0x16f)][_0x2cefab(0x1a6)]});await this[_0x2cefab(0x16f)][_0x2cefab(0x145)]({'id':_0x505d53,'parts':_0x2a807e,'renderingStrategy':_0x10466e,'isDone':_0x5d1cea});}else _0x2cefab(0x1de)===_0x710c7e&&await this[_0x2cefab(0x16f)][_0x2cefab(0xb5)]({'id':_0x505d53,'parsedContent':_0x44861d,'renderingStrategy':_0x10466e,'isDone':_0x5d1cea});_0x5d1cea&&_0x2b261c[_0x2cefab(0x194)][_0x2cefab(0x121)]>0x0&&this[_0x2cefab(0x16f)][_0x2cefab(0x143)](_0x505d53,_0x2b261c[_0x2cefab(0x194)]);}async[_0x5268ff(0x1b7)](){const _0x19063d=_0x5268ff,_0x20d074=this[_0x19063d(0x91)]?.[_0x19063d(0x13c)];_0x20d074&&(_0x20d074[_0x19063d(0x8f)](),this[_0x19063d(0x16f)][_0x19063d(0xc2)](_0x20d074));}async[_0x5268ff(0xb1)](){const _0x4d0d3d=_0x5268ff,_0x3fa07f=this[_0x4d0d3d(0x91)]?.[_0x4d0d3d(0x13c)];if(_0x3fa07f){for await(const _0x282470 of _0x3fa07f[_0x4d0d3d(0x115)])await this[_0x4d0d3d(0xde)]({'reply':_0x282470,'renderingStrategy':_0x4d0d3d(0xa9)});}}[_0x5268ff(0x133)](_0x263386){const _0x40b23e=_0x5268ff,_0x4e00eb={'positiveCount':_0x263386[_0x40b23e(0xe6)][_0x40b23e(0x11b)](_0x4f47b2=>_0x40b23e(0x12e)===_0x4f47b2[_0x40b23e(0x19b)])[_0x40b23e(0x121)],'totalCount':_0x263386[_0x40b23e(0xe6)][_0x40b23e(0x121)],'modificationId':_0x263386['id']},_0x3044f2=this[_0x40b23e(0x91)][_0x40b23e(0xf7)](_0x263386[_0x40b23e(0xab)])[_0x40b23e(0x1ac)];this[_0x40b23e(0xed)][_0x40b23e(0x160)](this[_0x40b23e(0x91)]['id'],_0x3044f2,_0x4e00eb);}}
|
package/src/aichat/aichatui.d.ts
CHANGED
|
@@ -222,6 +222,7 @@ export declare class AIChatUI extends ContextPlugin {
|
|
|
222
222
|
closeSourceResourceBalloon(sourceId: string): void;
|
|
223
223
|
focusPromptInput(): void;
|
|
224
224
|
scrollFeedToSuggestion(replyId: string, partIndex: number): void;
|
|
225
|
+
startAutoScroll(): void;
|
|
225
226
|
disableControls(): void;
|
|
226
227
|
enableControls(): void;
|
|
227
228
|
}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x317f(_0xef0f69,_0x583454){const _0x5db964=_0x5db9();return _0x317f=function(_0x317fc5,_0x2b8f47){_0x317fc5=_0x317fc5-0x116;let _0x5537ce=_0x5db964[_0x317fc5];return _0x5537ce;},_0x317f(_0xef0f69,_0x583454);}const _0x15cfda=_0x317f;function _0x5db9(){const _0x111cca=['AITabs','removeContextItem','updateFeedItemAIReplySuggestionPartState','10uWkdBp','setSelectedModel','updateFeedInteractionHeader','scrollFeedToSuggestion','isTrackChangesOn','isVisible','2713945nILeYS','setModelList','bind','markFeedItemAsDone','destroy','139686cLzPnr','updateSuggestionItem','queueEmptyPromise','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','stopAutoScroll','enqueue','startAutoScroll','_view','populateSourceResourceBalloon','isReasoningEnabled','conversation-start','ai.availableReplyActions','_interactionPromiseResolver','isDone','<p>','addFeedItemAIReply','locale','closeSourceResourceBalloon','updateFeedItemAIReplySources','updateCapabilities','filter','updateFeedItemAIReplyContent','_titleAnimationInterval','requires','value','setFeedItemRenderingStrategy','interaction-header','AIChatUI','capabilities','isBusy','plugins','pluginName','view','removeFeedInteraction','showDiff','isWebSearchEnabled','setModel','clearConversationContextUI','clearPendingContextUI','chatFeed','stopInteraction','setIsUploadInProgress','values','isLoading','displayedPrompt','setReasoning','_promiseQueue','finishInteraction','resetMessageInput','toggleSuggestionDisplayMode','children','setAddContextOptions','5141277FiIwhV','addFeedInteractionHeader','addFeedItemUserMessage','updateWebSources','_animateConversationTitle','isMaximized','isOfficialPlugin','contextItems','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','delegate','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','availableModels','322EXUyeM','ai-suggestion-reply','userMessage','chat','areActionsDisabled','61044wpLdtj','updateSuggestionPartState','quickActionData','startInteraction','setWebSearch','AI_CHAT_WELCOME_MESSAGE','label','addItem','chatControls','isPremiumPlugin','updateReplyItem','setConversationTitle','getItemIds','enableModelSelector','resetConversationTitle','6471960aViJsk','ai.chat.models.modelSelectorAlwaysVisible','addFeedItemAISuggestion','trackChanges','setInputPlaceholder','isPending','streaming','ai-reply','options','interactionId','config','feedItemRenderingStrategy','_getLoadingMessage','disableModelSelector','addContextItem','setConversationContext','createConversation','error-message','user-message','find','284790tPcakh','setIsMaximized','startsWith','set','_getInputPlaceholder','setContextItemLoading','updateFeedItemAIReplySuggestionContent','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addTab','32GZoUVJ','context','get','1006118YGSnig','commands','showResizeButton','renderingStrategy','scrollToSuggestion','abort','</p>','removeItem','toggleLoadingSkeleton','addFeedItemStaticMessage','markItemAsDone','from','enableControls','isModelAvailable','forEach','setLoadingMessage','then','updateResourceState','length','clear','addFeedItemError','AI_CHAT_HEADING','_isTrackChangesCommandValueBound','chatHeader','focusPromptInput','remove','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','last','isDisabled'];_0x5db9=function(){return _0x111cca;};return _0x5db9();}(function(_0x28727a,_0xa60b2b){const _0x57eab4=_0x317f,_0x5c47eb=_0x28727a();while(!![]){try{const _0x4b6bed=parseInt(_0x57eab4(0x1a6))/0x1+parseInt(_0x57eab4(0x1b2))/0x2+-parseInt(_0x57eab4(0x13a))/0x3*(parseInt(_0x57eab4(0x1af))/0x4)+-parseInt(_0x57eab4(0x135))/0x5+-parseInt(_0x57eab4(0x183))/0x6*(-parseInt(_0x57eab4(0x17e))/0x7)+parseInt(_0x57eab4(0x192))/0x8+-parseInt(_0x57eab4(0x16e))/0x9*(parseInt(_0x57eab4(0x12f))/0xa);if(_0x4b6bed===_0xa60b2b)break;else _0x5c47eb['push'](_0x5c47eb['shift']());}catch(_0x56e4be){_0x5c47eb['push'](_0x5c47eb['shift']());}}}(_0x5db9,0x8d306));import{ContextPlugin as _0x11c542}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xa24e23}from'ckeditor5/src/utils.js';import{AIChatView as _0x22f521}from'./ui/aichatview.js';import{AITabs as _0x450a79}from'../aitabs/aitabs.js';import{getTranslation as _0x32fc48}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x113774}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x195c52}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x3946a5}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x24869b}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x2c484e}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x11c542{static get[_0x15cfda(0x151)](){return[_0x450a79];}[_0x15cfda(0x141)];static get[_0x15cfda(0x159)](){const _0xb031cf=_0x15cfda;return _0xb031cf(0x155);}static get[_0x15cfda(0x174)](){return!0x0;}static get[_0x15cfda(0x18c)](){return!0x0;}[_0x15cfda(0x19d)]=_0x15cfda(0x198);[_0x15cfda(0x15c)]=!0x0;[_0x15cfda(0x168)];[_0x15cfda(0x146)];[_0x15cfda(0x150)]=void 0x0;[_0x15cfda(0x125)]=!0x1;constructor(_0x246291){const _0x49aebd=_0x15cfda;super(_0x246291);const _0x10d043=this[_0x49aebd(0x1b0)][_0x49aebd(0x158)][_0x49aebd(0x1b1)](_0x49aebd(0x12c));this[_0x49aebd(0x1a9)](_0x49aebd(0x157),!0x1),this[_0x49aebd(0x168)]=new _0x3946a5(),this[_0x49aebd(0x141)]=new _0x22f521(this[_0x49aebd(0x1b0)][_0x49aebd(0x14a)],_0x10d043[_0x49aebd(0x1b4)]),this[_0x49aebd(0x141)][_0x49aebd(0x179)](..._0x24869b)['to'](this),this[_0x49aebd(0x141)]['on'](_0x49aebd(0x16b),(_0x4d5374,{showDiff:_0x6602f0})=>{const _0x4d34cf=_0x49aebd;this[_0x4d34cf(0x15c)]=_0x6602f0;}),_0x10d043[_0x49aebd(0x15a)][_0x49aebd(0x1ae)]({'id':_0x49aebd(0x181),'buttonLabel':_0x32fc48(this[_0x49aebd(0x1b0)][_0x49aebd(0x14a)],_0x49aebd(0x124)),'buttonIcon':_0x113774,'order':0x0,'content':this[_0x49aebd(0x141)]}),this[_0x49aebd(0x141)][_0x49aebd(0x18b)][_0x49aebd(0x137)](_0x49aebd(0x165))['to'](this,_0x49aebd(0x157),_0x2be6d8=>_0x2be6d8),this[_0x49aebd(0x141)][_0x49aebd(0x161)][_0x49aebd(0x137)](_0x49aebd(0x197))['to'](this,_0x49aebd(0x157),_0x20335e=>_0x20335e),this[_0x49aebd(0x141)][_0x49aebd(0x18b)][_0x49aebd(0x196)](this[_0x49aebd(0x1aa)]()),this[_0x49aebd(0x137)](_0x49aebd(0x11c))['to'](this[_0x49aebd(0x141)][_0x49aebd(0x18b)],_0x49aebd(0x11c));}[_0x15cfda(0x139)](){const _0x1588da=_0x15cfda;super[_0x1588da(0x139)](),this[_0x1588da(0x150)]&&clearInterval(this[_0x1588da(0x150)]);}[_0x15cfda(0x1a2)](_0xfbda63){const _0x41eab4=_0x15cfda;this[_0x41eab4(0x141)][_0x41eab4(0x161)][_0x41eab4(0x122)](),this[_0x41eab4(0x141)][_0x41eab4(0x18b)][_0x41eab4(0x190)](),this[_0x41eab4(0x141)][_0x41eab4(0x18b)][_0x41eab4(0x136)](_0xfbda63[_0x41eab4(0x17d)],!this[_0x41eab4(0x1b0)][_0x41eab4(0x19c)][_0x41eab4(0x1b1)](_0x41eab4(0x193))),this[_0x41eab4(0x118)]({'id':_0x41eab4(0x144),'staticMessage':_0x32fc48(this[_0x41eab4(0x1b0)][_0x41eab4(0x14a)],_0x41eab4(0x188))});}[_0x15cfda(0x118)]({id:_0x175d82,staticMessage:_0x21ad55}){const _0x272f75=_0x15cfda;this[_0x272f75(0x141)][_0x272f75(0x161)][_0x272f75(0x18a)](_0x272f75(0x199),{'id':_0x175d82,'initialContent':_0x272f75(0x148)+_0x21ad55+_0x272f75(0x1b8)});}[_0x15cfda(0x170)](_0x3893c8){const _0x9b0441=_0x15cfda,_0x2a5a27=_0x3893c8[_0x9b0441(0x185)]?.[_0x9b0441(0x166)]||_0x3893c8[_0x9b0441(0x180)];this[_0x9b0441(0x141)][_0x9b0441(0x161)][_0x9b0441(0x18a)](_0x9b0441(0x1a4),{'contextItems':Array[_0x9b0441(0x11a)](_0x3893c8[_0x9b0441(0x175)][_0x9b0441(0x164)]()),'initialContent':_0x9b0441(0x148)+_0x2a5a27+_0x9b0441(0x1b8),'id':_0x3893c8['id']});}[_0x15cfda(0x123)]({errorMessage:_0x5d80fe,id:_0x1c9591}){const _0x171ee5=_0x15cfda;this[_0x171ee5(0x141)][_0x171ee5(0x161)][_0x171ee5(0x18a)](_0x171ee5(0x1a3),{'initialContent':_0x171ee5(0x148)+_0x5d80fe+_0x171ee5(0x1b8),'id':_0x1c9591});}[_0x15cfda(0x149)](_0x4ca9d3){const _0x131732=_0x15cfda;return this[_0x131732(0x168)][_0x131732(0x13f)](async()=>{const _0x4cf073=_0x131732;this[_0x4cf073(0x141)][_0x4cf073(0x161)][_0x4cf073(0x18a)](_0x4cf073(0x199),{'id':_0x4ca9d3[_0x4cf073(0x19b)]+':'+_0x4ca9d3['id']}),this[_0x4cf073(0x11e)](null);});}async[_0x15cfda(0x194)](_0x8c28b3){const _0x1aa316=_0x15cfda,_0x4d599e=_0x2c484e(this[_0x1aa316(0x1b0)]);if(_0x4d599e){const _0x1b560c=_0x4d599e[_0x1aa316(0x1b3)][_0x1aa316(0x1b1)](_0x1aa316(0x195));_0x1b560c&&!this[_0x1aa316(0x125)]&&(this[_0x1aa316(0x125)]=!0x0,this[_0x1aa316(0x141)][_0x1aa316(0x161)][_0x1aa316(0x137)](_0x1aa316(0x133))['to'](_0x1b560c,_0x1aa316(0x152)));}return this[_0x1aa316(0x168)][_0x1aa316(0x13f)](async()=>{const _0x565e35=_0x1aa316;this[_0x565e35(0x141)][_0x565e35(0x161)][_0x565e35(0x18a)](_0x565e35(0x17f),{'id':_0x8c28b3[_0x565e35(0x19b)]+':'+_0x8c28b3['id'],'areActionsDisabled':_0x8c28b3[_0x565e35(0x182)],'showDiff':this[_0x565e35(0x15c)],'dropdownConfig':this[_0x565e35(0x1b0)][_0x565e35(0x19c)][_0x565e35(0x1b1)](_0x565e35(0x145))}),this[_0x565e35(0x11e)](null);});}[_0x15cfda(0x16f)](_0x4d3e17,_0x3537f6){const _0x14f7e4=_0x15cfda,_0xf8242d=this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x16c)][_0x14f7e4(0x12a)];if(_0xf8242d instanceof _0x195c52)return this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x16c)][_0x14f7e4(0x128)](_0xf8242d),void this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x18a)](_0x14f7e4(0x154),{'id':_0x4d3e17['id'],'capabilities':{'isWebSearchEnabled':_0xf8242d[_0x14f7e4(0x156)][_0x14f7e4(0x15d)]||_0x3537f6[_0x14f7e4(0x15d)],'isReasoningEnabled':_0xf8242d[_0x14f7e4(0x156)][_0x14f7e4(0x143)]||_0x3537f6[_0x14f7e4(0x143)]}});this[_0x14f7e4(0x141)][_0x14f7e4(0x161)][_0x14f7e4(0x18a)](_0x14f7e4(0x154),{'id':_0x4d3e17['id'],'capabilities':_0x3537f6});}[_0x15cfda(0x131)](_0x4a5f3c){const _0x5eb3b2=_0x15cfda,_0x2b861f=this[_0x5eb3b2(0x141)][_0x5eb3b2(0x161)][_0x5eb3b2(0x16c)][_0x5eb3b2(0x1a5)](_0x89edab=>_0x89edab[_0x5eb3b2(0x19a)]['id']==_0x4a5f3c['id']&&_0x89edab instanceof _0x195c52);_0x2b861f&&_0x2b861f[_0x5eb3b2(0x1a9)](_0x5eb3b2(0x134),_0x4a5f3c[_0x5eb3b2(0x134)]);}async[_0x15cfda(0x14f)](_0x3f821e){const _0x261e52=_0x15cfda,_0x3c56de=_0x3f821e[_0x261e52(0x1b5)]||this[_0x261e52(0x19d)];return this[_0x261e52(0x168)][_0x261e52(0x13f)](async _0x8b5679=>{const _0x20af09=_0x261e52;await this[_0x20af09(0x141)][_0x20af09(0x161)][_0x20af09(0x18d)]({..._0x3f821e,'abortSignal':_0x8b5679,'renderingStrategy':_0x3c56de}),_0x3f821e[_0x20af09(0x147)]&&this[_0x20af09(0x138)](_0x3f821e['id']);});}[_0x15cfda(0x14c)](_0x4d3e49,_0x39dbbf){const _0x4c4d40=_0x15cfda;this[_0x4c4d40(0x141)][_0x4c4d40(0x161)][_0x4c4d40(0x171)](_0x4d3e49,_0x39dbbf);}async[_0x15cfda(0x1ac)](_0xc0d0c2){const _0x105058=_0x15cfda,_0x53f90c=_0xc0d0c2[_0x105058(0x1b5)]||this[_0x105058(0x19d)];return this[_0x105058(0x168)][_0x105058(0x13f)](async _0x555da3=>{const _0x3d88e1=_0x105058;await this[_0x3d88e1(0x141)][_0x3d88e1(0x161)][_0x3d88e1(0x13b)]({..._0xc0d0c2,'abortSignal':_0x555da3,'renderingStrategy':_0x53f90c}),_0xc0d0c2[_0x3d88e1(0x147)]&&this[_0x3d88e1(0x138)](_0xc0d0c2['id']);});}[_0x15cfda(0x12e)](_0x51bc06){const _0x1103ea=_0x15cfda;this[_0x1103ea(0x141)][_0x1103ea(0x161)][_0x1103ea(0x184)](_0x51bc06);}[_0x15cfda(0x138)](_0x5dcd41){const _0xd148a9=_0x15cfda;this[_0xd148a9(0x141)][_0xd148a9(0x161)][_0xd148a9(0x119)](_0x5dcd41);}[_0x15cfda(0x15b)](_0x11867f){const _0x180523=_0x15cfda;this[_0x180523(0x141)][_0x180523(0x161)][_0x180523(0x18f)]()[_0x180523(0x14e)](_0x2839ee=>_0x2839ee[_0x180523(0x1a8)](_0x11867f))[_0x180523(0x11d)](_0x21a0d7=>this[_0x180523(0x141)][_0x180523(0x161)][_0x180523(0x116)](_0x21a0d7));}[_0x15cfda(0x186)](){const _0x2b247b=_0x15cfda;this[_0x2b247b(0x11e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2b247b(0x141)][_0x2b247b(0x18b)][_0x2b247b(0x19f)](!this[_0x2b247b(0x1b0)][_0x2b247b(0x19c)][_0x2b247b(0x1b1)](_0x2b247b(0x193))),this[_0x2b247b(0x157)]=!0x0,this[_0x2b247b(0x141)][_0x2b247b(0x161)][_0x2b247b(0x140)]();}[_0x15cfda(0x162)](_0x44925f){const _0x3041c6=_0x15cfda;this[_0x3041c6(0x168)][_0x3041c6(0x1b7)](),this[_0x3041c6(0x141)][_0x3041c6(0x161)][_0x3041c6(0x18f)]()[_0x3041c6(0x14e)](_0x48c56b=>_0x48c56b[_0x3041c6(0x1a8)](_0x44925f['id']))[_0x3041c6(0x11d)](_0x26f09d=>this[_0x3041c6(0x138)](_0x26f09d)),this[_0x3041c6(0x157)]=!0x1,this[_0x3041c6(0x141)][_0x3041c6(0x161)][_0x3041c6(0x13e)]();}async[_0x15cfda(0x169)](){const _0x41aa6e=_0x15cfda;return this[_0x41aa6e(0x168)][_0x41aa6e(0x13c)][_0x41aa6e(0x11f)](()=>{const _0x18c69e=_0x41aa6e;this[_0x18c69e(0x157)]=!0x1,this[_0x18c69e(0x141)][_0x18c69e(0x161)][_0x18c69e(0x13e)]();});}[_0x15cfda(0x1a0)](_0x2a84a7,_0x3ae6f8){const _0x34cfb6=_0x15cfda;this[_0x34cfb6(0x141)][_0x34cfb6(0x18b)][_0x34cfb6(0x1a0)](_0x2a84a7,_0x3ae6f8);}[_0x15cfda(0x12d)](_0xa521df){const _0x10d557=_0x15cfda;this[_0x10d557(0x141)][_0x10d557(0x18b)][_0x10d557(0x12d)](_0xa521df);}[_0x15cfda(0x1ab)](_0x207ee2,_0xf3d987){const _0x4ed670=_0x15cfda;this[_0x4ed670(0x141)][_0x4ed670(0x18b)][_0x4ed670(0x1ab)](_0x207ee2,_0xf3d987);}[_0x15cfda(0x163)](_0x4e738c){const _0x43b2c0=_0x15cfda;this[_0x43b2c0(0x141)][_0x43b2c0(0x18b)][_0x43b2c0(0x163)](_0x4e738c);}[_0x15cfda(0x1a1)](_0x3f23d4){const _0x58624d=_0x15cfda;this[_0x58624d(0x141)][_0x58624d(0x18b)][_0x58624d(0x1a1)](_0x3f23d4);}[_0x15cfda(0x160)](){const _0x44d10a=_0x15cfda;this[_0x44d10a(0x141)][_0x44d10a(0x18b)][_0x44d10a(0x160)]();}[_0x15cfda(0x15f)](){const _0x52db84=_0x15cfda;this[_0x52db84(0x141)][_0x52db84(0x18b)][_0x52db84(0x15f)]();}[_0x15cfda(0x120)](_0x4615ad,_0x402c6e,_0x43812b){const _0x42ba52=_0x15cfda;this[_0x42ba52(0x141)][_0x42ba52(0x18b)][_0x42ba52(0x120)](_0x4615ad,_0x402c6e,_0x43812b);}[_0x15cfda(0x16a)](){const _0x1729ae=_0x15cfda;this[_0x1729ae(0x141)][_0x1729ae(0x18b)][_0x1729ae(0x16a)](),this[_0x1729ae(0x141)][_0x1729ae(0x18b)][_0x1729ae(0x196)](this[_0x1729ae(0x1aa)]());}[_0x15cfda(0x16d)](_0x276ea0){const _0x341b26=_0x15cfda;this[_0x341b26(0x141)][_0x341b26(0x18b)][_0x341b26(0x16d)](_0x276ea0);}[_0x15cfda(0x14d)](_0x36397c){const _0x2fde9a=_0x15cfda;this[_0x2fde9a(0x141)][_0x2fde9a(0x18b)][_0x2fde9a(0x187)](_0x36397c[_0x2fde9a(0x15d)]),this[_0x2fde9a(0x141)][_0x2fde9a(0x18b)][_0x2fde9a(0x167)](_0x36397c[_0x2fde9a(0x143)]),this[_0x2fde9a(0x141)][_0x2fde9a(0x18b)][_0x2fde9a(0x196)](this[_0x2fde9a(0x1aa)](_0x36397c));}[_0x15cfda(0x130)](_0x2ab94f,_0x235410){const _0x2b791e=_0x15cfda;this[_0x2b791e(0x141)][_0x2b791e(0x18b)][_0x2b791e(0x15e)](_0x2ab94f),_0x235410&&this[_0x2b791e(0x141)][_0x2b791e(0x18b)][_0x2b791e(0x19f)](!0x1);}[_0x15cfda(0x153)](_0x31405e){const _0x436529=_0x15cfda;this[_0x436529(0x19d)]=_0x31405e;}[_0x15cfda(0x117)](_0x127464){const _0x48e618=_0x15cfda;this[_0x48e618(0x141)][_0x48e618(0x161)][_0x48e618(0x117)](_0x127464);}[_0x15cfda(0x191)](){const _0x5a7709=_0x15cfda;this[_0x5a7709(0x18e)](_0x32fc48(this[_0x5a7709(0x1b0)][_0x5a7709(0x14a)],_0x5a7709(0x124)));}[_0x15cfda(0x18e)](_0x68fcc2,_0x14f8ba=!0x1){const _0x347d61=_0x15cfda;if(_0x14f8ba&&!_0xa24e23()&&_0x68fcc2[_0x347d61(0x121)])return this[_0x347d61(0x141)][_0x347d61(0x126)][_0x347d61(0x189)]='',void this[_0x347d61(0x172)](_0x68fcc2);this[_0x347d61(0x141)][_0x347d61(0x126)][_0x347d61(0x189)]=_0x68fcc2;}[_0x15cfda(0x11e)](_0x1d44fb){const _0x306b32=_0x15cfda,_0x19bd25=this[_0x306b32(0x19e)](_0x1d44fb);this[_0x306b32(0x141)][_0x306b32(0x161)][_0x306b32(0x11e)](_0x19bd25);}[_0x15cfda(0x172)](_0x4ce9ff){const _0x1e90ac=_0x15cfda;let _0x247126=0x0;clearInterval(this[_0x1e90ac(0x150)]),this[_0x1e90ac(0x150)]=setInterval(()=>{const _0x4e4e11=_0x1e90ac;this[_0x4e4e11(0x141)][_0x4e4e11(0x126)][_0x4e4e11(0x189)]=this[_0x4e4e11(0x141)][_0x4e4e11(0x126)][_0x4e4e11(0x189)]+_0x4ce9ff[_0x247126],_0x247126++,_0x247126===_0x4ce9ff[_0x4e4e11(0x121)]&&clearInterval(this[_0x4e4e11(0x150)]);},0x1e);}[_0x15cfda(0x1a7)](_0x53f318){const _0x1d73b7=_0x15cfda;this[_0x1d73b7(0x141)][_0x1d73b7(0x126)][_0x1d73b7(0x173)]=_0x53f318;}[_0x15cfda(0x19e)](_0x585702){const _0x1b292a=_0x15cfda;return _0x585702?_0x585702[_0x1b292a(0x15d)]&&_0x585702[_0x1b292a(0x143)]?_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x1ad)):_0x585702[_0x1b292a(0x15d)]?_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x129)):_0x585702[_0x1b292a(0x143)]?_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x17b)):_0x32fc48(this[_0x1b292a(0x1b0)][_0x1b292a(0x14a)],_0x1b292a(0x178)):'';}[_0x15cfda(0x1aa)](_0x3eba0f){const _0x2cb4e1=_0x15cfda;return _0x3eba0f?_0x3eba0f[_0x2cb4e1(0x15d)]&&_0x3eba0f[_0x2cb4e1(0x143)]?_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x17c)):_0x3eba0f[_0x2cb4e1(0x15d)]?_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x177)):_0x3eba0f[_0x2cb4e1(0x143)]?_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x13d)):_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x176)):_0x32fc48(this[_0x2cb4e1(0x1b0)][_0x2cb4e1(0x14a)],_0x2cb4e1(0x176));}[_0x15cfda(0x142)](_0x4c7ebe,_0x50b580,_0x21f494,_0x5e7102){const _0x2c6fc7=_0x15cfda;this[_0x2c6fc7(0x141)][_0x2c6fc7(0x142)](_0x4c7ebe,_0x50b580,_0x21f494,_0x5e7102);}[_0x15cfda(0x14b)](_0x5cef41){const _0x2a2f10=_0x15cfda;this[_0x2a2f10(0x141)][_0x2a2f10(0x14b)](_0x5cef41);}[_0x15cfda(0x127)](){const _0x28380e=_0x15cfda;this[_0x28380e(0x141)][_0x28380e(0x18b)][_0x28380e(0x127)]();}[_0x15cfda(0x132)](_0x4474b5,_0x4400d1){const _0x2e0175=_0x15cfda;this[_0x2e0175(0x141)][_0x2e0175(0x161)][_0x2e0175(0x1b6)](_0x4474b5,_0x4400d1);}[_0x15cfda(0x17a)](){const _0x1c47c2=_0x15cfda;this[_0x1c47c2(0x141)][_0x1c47c2(0x18b)][_0x1c47c2(0x12b)]=!0x0;}[_0x15cfda(0x11b)](){const _0x361703=_0x15cfda;this[_0x361703(0x141)][_0x361703(0x18b)][_0x361703(0x12b)]=!0x1;}}
|
|
23
|
+
const _0x536f91=_0x3cc7;(function(_0x33a29e,_0xd3e30b){const _0x18a443=_0x3cc7,_0x4f7db=_0x33a29e();while(!![]){try{const _0x35d9ee=parseInt(_0x18a443(0x116))/0x1+-parseInt(_0x18a443(0x168))/0x2*(parseInt(_0x18a443(0x166))/0x3)+-parseInt(_0x18a443(0x118))/0x4*(parseInt(_0x18a443(0x121))/0x5)+parseInt(_0x18a443(0x10c))/0x6*(-parseInt(_0x18a443(0x12e))/0x7)+-parseInt(_0x18a443(0x130))/0x8*(-parseInt(_0x18a443(0x196))/0x9)+parseInt(_0x18a443(0x193))/0xa+parseInt(_0x18a443(0x16c))/0xb*(-parseInt(_0x18a443(0x1aa))/0xc);if(_0x35d9ee===_0xd3e30b)break;else _0x4f7db['push'](_0x4f7db['shift']());}catch(_0x1a19ca){_0x4f7db['push'](_0x4f7db['shift']());}}}(_0x50b4,0xcda39));import{ContextPlugin as _0x2ff81f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3f462a}from'ckeditor5/src/utils.js';function _0x50b4(){const _0x4c79bd=['startsWith','447986ZkfwHp','_interactionPromiseResolver','AI_CHAT_HEADING','queueEmptyPromise','stopInteraction','ai-suggestion-reply','updateSuggestionItem','value','forEach','userMessage','isDone','removeFeedInteraction','ai.availableReplyActions','isPending','disableControls','abort','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setIsUploadInProgress','populateSourceResourceBalloon','toggleSuggestionDisplayMode','resetMessageInput','options','createConversation','destroy','areActionsDisabled','isTrackChangesOn','displayedPrompt','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','chatControls','updateReplyItem','isModelAvailable','setReasoning','addFeedItemUserMessage','addContextItem','updateResourceState','config','setConversationTitle','addFeedItemStaticMessage','8220240cJFJiz','setAddContextOptions','setModel','2845449GuHWnM','interaction-header','updateFeedItemAIReplySuggestionContent','renderingStrategy','updateFeedItemAIReplySuggestionPartState','children','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isReasoningEnabled','get','commands','getItemIds','interactionId','chat','view','removeItem','ai.chat.models.modelSelectorAlwaysVisible','scrollFeedToSuggestion','setSelectedModel','closeSourceResourceBalloon','toggleLoadingSkeleton','24qnVeJC','updateCapabilities','capabilities','has','stopAutoScroll','enqueue','trackChanges','plugins','</p>','focusPromptInput','showResizeButton','534xITgEc','disableModelSelector','resetConversationTitle','set','AI_CHAT_WELCOME_MESSAGE','isDisabled','setConversationContext','setInputPlaceholder','remove','chatHeader','624269ihsKEs','removeContextItem','243908OeyOJL','isBusy','updateFeedItemAIReplyContent','markItemAsDone','updateFeedInteractionHeader','requires','_animateConversationTitle','from','pluginName','55wIPHUP','updateFeedItemAIReplySources','label','setIsMaximized','AIChatUI','isVisible','contextItems','updateWebSources','quickActionData','last','setModelList','ai.chat.context.searchInputVisibleFrom','then','2751tCmpha','addFeedItemAIReply','16GHQEUW','clear','AITabs','_getLoadingMessage','filter','_view','<p>','user-message','enableModelSelector','setFeedItemRenderingStrategy','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','isMaximized','addTab','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','insertSuggestion','startAutoScroll','isLoading','scrollToSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','feedItemRenderingStrategy','startInteraction','showDiff','addItem','_promiseQueue','ai-reply','clearConversationContextUI','bind','conversation-start','delegate','chatFeed','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','find','addFeedInteractionHeader','_titleAnimationInterval','finishInteraction','length','updateSuggestionPartState','enableControls','error-message','_isTrackChangesCommandValueBound','context','isOfficialPlugin','TrackChanges','setLoadingMessage','addFeedItemError','clearPendingContextUI','setContextItemLoading','setWebSearch','isPremiumPlugin','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','streaming','9zzMAaE','isWebSearchEnabled','299428XhOQdK','values','_getInputPlaceholder'];_0x50b4=function(){return _0x4c79bd;};return _0x50b4();}import{AIChatView as _0x225679}from'./ui/aichatview.js';import{AITabs as _0x4712fd}from'../aitabs/aitabs.js';import{getTranslation as _0x860f42}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2f7fa8}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f34ab}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x3cc7(_0x10ff95,_0x15a596){const _0x50b420=_0x50b4();return _0x3cc7=function(_0x3cc7cc,_0x263356){_0x3cc7cc=_0x3cc7cc-0x10b;let _0x3fc93c=_0x50b420[_0x3cc7cc];return _0x3fc93c;},_0x3cc7(_0x10ff95,_0x15a596);}import{PromiseQueue as _0x1664ed}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x23f9c8}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3abcde}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4fd586}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x2ff81f{static get[_0x536f91(0x11d)](){return[_0x4712fd];}[_0x536f91(0x135)];static get[_0x536f91(0x120)](){const _0x155f3d=_0x536f91;return _0x155f3d(0x125);}static get[_0x536f91(0x15c)](){return!0x0;}static get[_0x536f91(0x163)](){return!0x0;}[_0x536f91(0x145)]=_0x536f91(0x165);[_0x536f91(0x147)]=!0x0;[_0x536f91(0x149)];[_0x536f91(0x16d)];[_0x536f91(0x154)]=void 0x0;[_0x536f91(0x15a)]=!0x1;constructor(_0x236f8f){const _0x3dd936=_0x536f91;super(_0x236f8f);const _0x4cc972=this[_0x3dd936(0x15b)][_0x3dd936(0x1b1)][_0x3dd936(0x19e)](_0x3dd936(0x132));this[_0x3dd936(0x10f)](_0x3dd936(0x119),!0x1),this[_0x3dd936(0x149)]=new _0x1664ed(),this[_0x3dd936(0x135)]=new _0x225679(this[_0x3dd936(0x15b)][_0x3dd936(0x187)],{'showResizeButton':_0x4cc972[_0x3dd936(0x10b)],'contextResourcesSearchInputVisibleFrom':this[_0x3dd936(0x15b)][_0x3dd936(0x190)][_0x3dd936(0x19e)](_0x3dd936(0x12c))}),this[_0x3dd936(0x135)][_0x3dd936(0x14e)](..._0x23f9c8)['to'](this),this[_0x3dd936(0x135)]['on'](_0x3dd936(0x17f),(_0x12b25d,{showDiff:_0x33ac39})=>{const _0x46eab2=_0x3dd936;this[_0x46eab2(0x147)]=_0x33ac39;}),_0x4cc972[_0x3dd936(0x1a3)][_0x3dd936(0x13d)]({'id':_0x3dd936(0x1a2),'buttonLabel':_0x860f42(this[_0x3dd936(0x15b)][_0x3dd936(0x187)],_0x3dd936(0x16e)),'buttonIcon':_0x2f7fa8,'order':0x0,'content':this[_0x3dd936(0x135)]}),this[_0x3dd936(0x135)][_0x3dd936(0x189)][_0x3dd936(0x14c)](_0x3dd936(0x142))['to'](this,_0x3dd936(0x119),_0x3d64f8=>_0x3d64f8),this[_0x3dd936(0x135)][_0x3dd936(0x14f)][_0x3dd936(0x14c)](_0x3dd936(0x179))['to'](this,_0x3dd936(0x119),_0x48fbb0=>_0x48fbb0),this[_0x3dd936(0x135)][_0x3dd936(0x189)][_0x3dd936(0x113)](this[_0x3dd936(0x16a)]()),this[_0x3dd936(0x14c)](_0x3dd936(0x18b))['to'](this[_0x3dd936(0x135)][_0x3dd936(0x189)],_0x3dd936(0x18b));}[_0x536f91(0x183)](){const _0xa9f9bd=_0x536f91;super[_0xa9f9bd(0x183)](),this[_0xa9f9bd(0x154)]&&clearInterval(this[_0xa9f9bd(0x154)]);}[_0x536f91(0x182)](_0x23f698){const _0x4086e2=_0x536f91;this[_0x4086e2(0x135)][_0x4086e2(0x14f)][_0x4086e2(0x131)](),this[_0x4086e2(0x135)][_0x4086e2(0x189)][_0x4086e2(0x138)](),this[_0x4086e2(0x135)][_0x4086e2(0x189)][_0x4086e2(0x12b)](_0x23f698[_0x4086e2(0x13a)],!this[_0x4086e2(0x15b)][_0x4086e2(0x190)][_0x4086e2(0x19e)](_0x4086e2(0x1a5))),this[_0x4086e2(0x192)]({'id':_0x4086e2(0x14d),'staticMessage':_0x860f42(this[_0x4086e2(0x15b)][_0x4086e2(0x187)],_0x4086e2(0x110))});}[_0x536f91(0x192)]({id:_0x3ea930,staticMessage:_0x45e5a2}){const _0x249bc2=_0x536f91;this[_0x249bc2(0x135)][_0x249bc2(0x14f)][_0x249bc2(0x148)](_0x249bc2(0x14a),{'id':_0x3ea930,'initialContent':_0x249bc2(0x136)+_0x45e5a2+_0x249bc2(0x1b2)});}[_0x536f91(0x18d)](_0x49d292){const _0x4f44ba=_0x536f91,_0x453fd5=_0x49d292[_0x4f44ba(0x129)]?.[_0x4f44ba(0x186)]||_0x49d292[_0x4f44ba(0x175)];this[_0x4f44ba(0x135)][_0x4f44ba(0x14f)][_0x4f44ba(0x148)](_0x4f44ba(0x137),{'contextItems':Array[_0x4f44ba(0x11f)](_0x49d292[_0x4f44ba(0x127)][_0x4f44ba(0x169)]()),'initialContent':_0x4f44ba(0x136)+_0x453fd5+_0x4f44ba(0x1b2),'id':_0x49d292['id']});}[_0x536f91(0x15f)]({errorMessage:_0x481764,id:_0x54599e}){const _0x10722f=_0x536f91;this[_0x10722f(0x135)][_0x10722f(0x14f)][_0x10722f(0x148)](_0x10722f(0x159),{'initialContent':_0x10722f(0x136)+_0x481764+_0x10722f(0x1b2),'id':_0x54599e});}[_0x536f91(0x12f)](_0x558922){const _0x2b7f7e=_0x536f91;return this[_0x2b7f7e(0x149)][_0x2b7f7e(0x1af)](async()=>{const _0xe17172=_0x2b7f7e;this[_0xe17172(0x135)][_0xe17172(0x14f)][_0xe17172(0x148)](_0xe17172(0x14a),{'id':_0x558922[_0xe17172(0x1a1)]+':'+_0x558922['id']}),this[_0xe17172(0x15e)](null);});}async[_0x536f91(0x150)](_0x5832ca){const _0x31d777=_0x536f91,_0x4a9da0=_0x3abcde(this[_0x31d777(0x15b)]);let _0xf47c94=_0x4a9da0[_0x31d777(0x190)][_0x31d777(0x19e)](_0x31d777(0x178))||[..._0x4fd586];if(_0x4a9da0[_0x31d777(0x1b1)][_0x31d777(0x1ad)](_0x31d777(0x15d))){if(!this[_0x31d777(0x15a)]){this[_0x31d777(0x15a)]=!0x0;const _0x2b9ce5=_0x4a9da0[_0x31d777(0x19f)][_0x31d777(0x19e)](_0x31d777(0x1b0));this[_0x31d777(0x135)][_0x31d777(0x14f)][_0x31d777(0x14c)](_0x31d777(0x185))['to'](_0x2b9ce5,_0x31d777(0x173));}}else _0xf47c94=_0xf47c94[_0x31d777(0x134)](_0x1f9a00=>_0x31d777(0x140)!=_0x1f9a00);return this[_0x31d777(0x149)][_0x31d777(0x1af)](async()=>{const _0x1562ab=_0x31d777;this[_0x1562ab(0x135)][_0x1562ab(0x14f)][_0x1562ab(0x148)](_0x1562ab(0x171),{'id':_0x5832ca[_0x1562ab(0x1a1)]+':'+_0x5832ca['id'],'areActionsDisabled':_0x5832ca[_0x1562ab(0x184)],'showDiff':this[_0x1562ab(0x147)],'availableActions':_0xf47c94}),this[_0x1562ab(0x15e)](null);});}[_0x536f91(0x153)](_0x247d18,_0x393e07){const _0x28162d=_0x536f91,_0x275a14=this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x19b)][_0x28162d(0x12a)];if(_0x275a14 instanceof _0x4f34ab)return this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x19b)][_0x28162d(0x114)](_0x275a14),void this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x148)](_0x28162d(0x197),{'id':_0x247d18['id'],'capabilities':{'isWebSearchEnabled':_0x275a14[_0x28162d(0x1ac)][_0x28162d(0x167)]||_0x393e07[_0x28162d(0x167)],'isReasoningEnabled':_0x275a14[_0x28162d(0x1ac)][_0x28162d(0x19d)]||_0x393e07[_0x28162d(0x19d)]}});this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x148)](_0x28162d(0x197),{'id':_0x247d18['id'],'capabilities':_0x393e07});}[_0x536f91(0x11c)](_0x18a3f5){const _0x5a9535=_0x536f91,_0x1cb064=this[_0x5a9535(0x135)][_0x5a9535(0x14f)][_0x5a9535(0x19b)][_0x5a9535(0x152)](_0x3d3dca=>_0x3d3dca[_0x5a9535(0x181)]['id']==_0x18a3f5['id']&&_0x3d3dca instanceof _0x4f34ab);_0x1cb064&&_0x1cb064[_0x5a9535(0x10f)](_0x5a9535(0x126),_0x18a3f5[_0x5a9535(0x126)]);}async[_0x536f91(0x11a)](_0x346136){const _0x190f67=_0x536f91,_0x459acd=_0x346136[_0x190f67(0x199)]||this[_0x190f67(0x145)];return this[_0x190f67(0x149)][_0x190f67(0x1af)](async _0x48647d=>{const _0x469104=_0x190f67;await this[_0x469104(0x135)][_0x469104(0x14f)][_0x469104(0x18a)]({..._0x346136,'abortSignal':_0x48647d,'renderingStrategy':_0x459acd}),_0x346136[_0x469104(0x176)]&&this[_0x469104(0x13e)](_0x346136['id']);});}[_0x536f91(0x122)](_0xa6c1c7,_0x14f77d){const _0x35d3ef=_0x536f91;this[_0x35d3ef(0x135)][_0x35d3ef(0x14f)][_0x35d3ef(0x128)](_0xa6c1c7,_0x14f77d);}async[_0x536f91(0x198)](_0x3260d7){const _0x298713=_0x536f91,_0x4b480c=_0x3260d7[_0x298713(0x199)]||this[_0x298713(0x145)];return this[_0x298713(0x149)][_0x298713(0x1af)](async _0x229cf8=>{const _0x3ef5db=_0x298713;await this[_0x3ef5db(0x135)][_0x3ef5db(0x14f)][_0x3ef5db(0x172)]({..._0x3260d7,'abortSignal':_0x229cf8,'renderingStrategy':_0x4b480c}),_0x3260d7[_0x3ef5db(0x176)]&&this[_0x3ef5db(0x13e)](_0x3260d7['id']);});}[_0x536f91(0x19a)](_0x5b244b){const _0x467500=_0x536f91;this[_0x467500(0x135)][_0x467500(0x14f)][_0x467500(0x157)](_0x5b244b);}[_0x536f91(0x13e)](_0x2a2f58){const _0x8290da=_0x536f91;this[_0x8290da(0x135)][_0x8290da(0x14f)][_0x8290da(0x11b)](_0x2a2f58);}[_0x536f91(0x177)](_0x3d01d0){const _0x5ad52a=_0x536f91;this[_0x5ad52a(0x135)][_0x5ad52a(0x14f)][_0x5ad52a(0x1a0)]()[_0x5ad52a(0x134)](_0x410960=>_0x410960[_0x5ad52a(0x16b)](_0x3d01d0))[_0x5ad52a(0x174)](_0x5bae7d=>this[_0x5ad52a(0x135)][_0x5ad52a(0x14f)][_0x5ad52a(0x1a4)](_0x5bae7d));}[_0x536f91(0x146)](){const _0x1e2888=_0x536f91;this[_0x1e2888(0x15e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1e2888(0x135)][_0x1e2888(0x189)][_0x1e2888(0x10d)](!this[_0x1e2888(0x15b)][_0x1e2888(0x190)][_0x1e2888(0x19e)](_0x1e2888(0x1a5))),this[_0x1e2888(0x119)]=!0x0,this[_0x1e2888(0x135)][_0x1e2888(0x14f)][_0x1e2888(0x141)]();}[_0x536f91(0x170)](_0xab07d4){const _0x1879ce=_0x536f91;this[_0x1879ce(0x149)][_0x1879ce(0x17b)](),this[_0x1879ce(0x135)][_0x1879ce(0x14f)][_0x1879ce(0x1a0)]()[_0x1879ce(0x134)](_0x1f79b2=>_0x1f79b2[_0x1879ce(0x16b)](_0xab07d4['id']))[_0x1879ce(0x174)](_0x537119=>this[_0x1879ce(0x13e)](_0x537119)),this[_0x1879ce(0x119)]=!0x1,this[_0x1879ce(0x135)][_0x1879ce(0x14f)][_0x1879ce(0x1ae)]();}async[_0x536f91(0x155)](){const _0x3eb5bd=_0x536f91;return this[_0x3eb5bd(0x149)][_0x3eb5bd(0x16f)][_0x3eb5bd(0x12d)](()=>{const _0x52d08b=_0x3eb5bd;this[_0x52d08b(0x119)]=!0x1,this[_0x52d08b(0x135)][_0x52d08b(0x14f)][_0x52d08b(0x1ae)]();});}[_0x536f91(0x18e)](_0x4c3386,_0x1dd34f){const _0x5cc3b9=_0x536f91;this[_0x5cc3b9(0x135)][_0x5cc3b9(0x189)][_0x5cc3b9(0x18e)](_0x4c3386,_0x1dd34f);}[_0x536f91(0x117)](_0x2dcc58){const _0x490c92=_0x536f91;this[_0x490c92(0x135)][_0x490c92(0x189)][_0x490c92(0x117)](_0x2dcc58);}[_0x536f91(0x161)](_0x47fdfa,_0x190eba){const _0x2f11cd=_0x536f91;this[_0x2f11cd(0x135)][_0x2f11cd(0x189)][_0x2f11cd(0x161)](_0x47fdfa,_0x190eba);}[_0x536f91(0x17d)](_0x5eb20e){const _0x3cdf53=_0x536f91;this[_0x3cdf53(0x135)][_0x3cdf53(0x189)][_0x3cdf53(0x17d)](_0x5eb20e);}[_0x536f91(0x112)](_0x3e9aa2){const _0x46d497=_0x536f91;this[_0x46d497(0x135)][_0x46d497(0x189)][_0x46d497(0x112)](_0x3e9aa2);}[_0x536f91(0x160)](){const _0x24a6b5=_0x536f91;this[_0x24a6b5(0x135)][_0x24a6b5(0x189)][_0x24a6b5(0x160)]();}[_0x536f91(0x14b)](){const _0x309eb9=_0x536f91;this[_0x309eb9(0x135)][_0x309eb9(0x189)][_0x309eb9(0x14b)]();}[_0x536f91(0x18f)](_0x7a374d,_0x53113b,_0x12088b){const _0x9292bd=_0x536f91;this[_0x9292bd(0x135)][_0x9292bd(0x189)][_0x9292bd(0x18f)](_0x7a374d,_0x53113b,_0x12088b);}[_0x536f91(0x180)](){const _0x5d5555=_0x536f91;this[_0x5d5555(0x135)][_0x5d5555(0x189)][_0x5d5555(0x180)](),this[_0x5d5555(0x135)][_0x5d5555(0x189)][_0x5d5555(0x113)](this[_0x5d5555(0x16a)]());}[_0x536f91(0x194)](_0x2ffca8){const _0x43cf29=_0x536f91;this[_0x43cf29(0x135)][_0x43cf29(0x189)][_0x43cf29(0x194)](_0x2ffca8);}[_0x536f91(0x1ab)](_0x2c1df3){const _0x58af12=_0x536f91;this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x162)](_0x2c1df3[_0x58af12(0x167)]),this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x18c)](_0x2c1df3[_0x58af12(0x19d)]),this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x113)](this[_0x58af12(0x16a)](_0x2c1df3));}[_0x536f91(0x1a7)](_0x35390c,_0x21b723){const _0x14e125=_0x536f91;this[_0x14e125(0x135)][_0x14e125(0x189)][_0x14e125(0x195)](_0x35390c),_0x21b723&&this[_0x14e125(0x135)][_0x14e125(0x189)][_0x14e125(0x10d)](!0x1);}[_0x536f91(0x139)](_0xed0449){const _0x2d77d0=_0x536f91;this[_0x2d77d0(0x145)]=_0xed0449;}[_0x536f91(0x1a9)](_0xc1875e){const _0x51740f=_0x536f91;this[_0x51740f(0x135)][_0x51740f(0x14f)][_0x51740f(0x1a9)](_0xc1875e);}[_0x536f91(0x10e)](){const _0x3a6270=_0x536f91;this[_0x3a6270(0x191)](_0x860f42(this[_0x3a6270(0x15b)][_0x3a6270(0x187)],_0x3a6270(0x16e)));}[_0x536f91(0x191)](_0xec943d,_0x89d75=!0x1){const _0x372642=_0x536f91;if(_0x89d75&&!_0x3f462a()&&_0xec943d[_0x372642(0x156)])return this[_0x372642(0x135)][_0x372642(0x115)][_0x372642(0x123)]='',void this[_0x372642(0x11e)](_0xec943d);this[_0x372642(0x135)][_0x372642(0x115)][_0x372642(0x123)]=_0xec943d;}[_0x536f91(0x15e)](_0x4a3a53){const _0x3f8d69=_0x536f91,_0x20992f=this[_0x3f8d69(0x133)](_0x4a3a53);this[_0x3f8d69(0x135)][_0x3f8d69(0x14f)][_0x3f8d69(0x15e)](_0x20992f);}[_0x536f91(0x11e)](_0x13e126){const _0x5a1582=_0x536f91;let _0x1da8e6=0x0;clearInterval(this[_0x5a1582(0x154)]),this[_0x5a1582(0x154)]=setInterval(()=>{const _0x47022a=_0x5a1582;this[_0x47022a(0x135)][_0x47022a(0x115)][_0x47022a(0x123)]=this[_0x47022a(0x135)][_0x47022a(0x115)][_0x47022a(0x123)]+_0x13e126[_0x1da8e6],_0x1da8e6++,_0x1da8e6===_0x13e126[_0x47022a(0x156)]&&clearInterval(this[_0x47022a(0x154)]);},0x1e);}[_0x536f91(0x124)](_0x3b7110){const _0x3a780f=_0x536f91;this[_0x3a780f(0x135)][_0x3a780f(0x115)][_0x3a780f(0x13c)]=_0x3b7110;}[_0x536f91(0x133)](_0xdcebfd){const _0x35371=_0x536f91;return _0xdcebfd?_0xdcebfd[_0x35371(0x167)]&&_0xdcebfd[_0x35371(0x19d)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x151)):_0xdcebfd[_0x35371(0x167)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x144)):_0xdcebfd[_0x35371(0x19d)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x164)):_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x19c)):'';}[_0x536f91(0x16a)](_0x44f248){const _0x3cab44=_0x536f91;return _0x44f248?_0x44f248[_0x3cab44(0x167)]&&_0x44f248[_0x3cab44(0x19d)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x188)):_0x44f248[_0x3cab44(0x167)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13b)):_0x44f248[_0x3cab44(0x19d)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x17c)):_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13f)):_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13f));}[_0x536f91(0x17e)](_0x316783,_0x388f2f,_0x1da3a0,_0x37b0f9){const _0x31b7e7=_0x536f91;this[_0x31b7e7(0x135)][_0x31b7e7(0x17e)](_0x316783,_0x388f2f,_0x1da3a0,_0x37b0f9);}[_0x536f91(0x1a8)](_0x29701d){const _0x1f391e=_0x536f91;this[_0x1f391e(0x135)][_0x1f391e(0x1a8)](_0x29701d);}[_0x536f91(0x1b3)](){const _0x297307=_0x536f91;this[_0x297307(0x135)][_0x297307(0x189)][_0x297307(0x1b3)]();}[_0x536f91(0x1a6)](_0xdb133f,_0x5aedc1){const _0x43f0bf=_0x536f91;this[_0x43f0bf(0x135)][_0x43f0bf(0x14f)][_0x43f0bf(0x143)](_0xdb133f,_0x5aedc1);}[_0x536f91(0x141)](){const _0x45593c=_0x536f91;this[_0x45593c(0x135)][_0x45593c(0x14f)][_0x45593c(0x141)]();}[_0x536f91(0x17a)](){const _0x1ec884=_0x536f91;this[_0x1ec884(0x135)][_0x1ec884(0x189)][_0x1ec884(0x111)]=!0x0;}[_0x536f91(0x158)](){const _0x28216b=_0x536f91;this[_0x28216b(0x135)][_0x28216b(0x189)][_0x28216b(0x111)]=!0x1;}}
|
|
@@ -253,6 +253,10 @@ export type AIChatContextConfig = {
|
|
|
253
253
|
enabled: boolean;
|
|
254
254
|
};
|
|
255
255
|
sources?: Array<AIContextProvider>;
|
|
256
|
+
/**
|
|
257
|
+
* The minimum number of resources to show the search input.
|
|
258
|
+
*/
|
|
259
|
+
searchInputVisibleFrom?: number;
|
|
256
260
|
};
|
|
257
261
|
/**
|
|
258
262
|
* The configuration of a custom option in the AI Chat menu for adding resources to the prompt context.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1b8728=_0x4c05;(function(_0x1520cc,_0x1634df){const _0x3229c2=_0x4c05,_0x461b20=_0x1520cc();while(!![]){try{const _0x495839=-parseInt(_0x3229c2(0x17a))/0x1*(-parseInt(_0x3229c2(0x16f))/0x2)+-parseInt(_0x3229c2(0x171))/0x3*(-parseInt(_0x3229c2(0x125))/0x4)+parseInt(_0x3229c2(0x12c))/0x5+parseInt(_0x3229c2(0x15f))/0x6*(parseInt(_0x3229c2(0x139))/0x7)+parseInt(_0x3229c2(0x147))/0x8+parseInt(_0x3229c2(0x1a4))/0x9*(parseInt(_0x3229c2(0x178))/0xa)+-parseInt(_0x3229c2(0x143))/0xb*(parseInt(_0x3229c2(0x154))/0xc);if(_0x495839===_0x1634df)break;else _0x461b20['push'](_0x461b20['shift']());}catch(_0xaf8eff){_0x461b20['push'](_0x461b20['shift']());}}}(_0x20bc,0xad9a7));import{CKEditorError as _0xbb59fd,ObservableMixin as _0x22106e,uid as _0x4791d7}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x39495c,AIContextTextResourceType as _0x2ec68a}from'../../aicore/model/aicontext.js';function _0x4c05(_0x5b26f2,_0x33b652){const _0x20bc90=_0x20bc();return _0x4c05=function(_0x4c0586,_0x12de5f){_0x4c0586=_0x4c0586-0x11c;let _0x2b0d82=_0x20bc90[_0x4c0586];return _0x2b0d82;},_0x4c05(_0x5b26f2,_0x33b652);}import{escape as _0x4554ef}from'es-toolkit/compat';function _0x20bc(){const _0x15fc53=['_toggleAddCurrentDocumentOptionVisibility','_ownerId','SELECTION','4776324ZBSACa','data','isInContext','values','abort','TEXT','stack','resourceStateChanged','mapContextItemsToRequestData','sources','1499003mPmccu','find','from','_createContextItemFromContent','11095024VHhmch','set','init','getId','uploadProgressChanged','addResourceToContext','enabled','_startUploadOperation','size','_finishUploadOperation','_convertTextResourceToFile','sessionId','label','444GYfmdP','attributes','_addContextOptionsState','getDocument','ai-chat-resource-no-data','_addContextItem','isCurrentDocumentInContext','push','message','text/html','_addToConversationContextItem','6zMevxS','FILE','isHidden','all','current-document','_updateResourceInContextState','object\x20with\x20content\x20and\x20type\x20properties','ai-request-aborted','abortController','text/plain','selection','error','addContextOptionsChanged','url-','forEach','uploadUrl','26PCskyy','uploadFile','4809iktGwX','URL','name','_isResourceInContext','files','urls','contextItemRemoved','10nqzRGy','contextSent','52471JDdJrg','_findSourceIdsByResourceId','contextItemAdded','_config','MARKDOWN','_removeContextItem','removeFromContext','object','resources','File','isReadOnly','ai-chat-resource-load-failed','url','uploadDocument','sourceResourcesLoaded','length','isCurrentDocumentInConversation','ai-chat-file-upload-failed','uiId','get','loadSourceResources','has','removeSelectionFromContext','_conversationContextItems','getSentContextItems','filter','_pendingContextItems','_setAddContextOptionsDefaultState','addFilesToContext','ai-chat-source-resources-load-failed','contextItemLoadingEnded','Current\x20document','files-','_connector','version','getResources','resourceId','ai-chat-url-upload-failed','getData','clearPendingContextItems','DOCUMENT','document','5496669JFoBgh','fetchDocument','_ongoingUploads','file-','ai-chat-source-not-found','isSelectionInContext','delete','_finishContextItemLoading','_getCustomSourcesInitialState','addSelectionToContext','addCurrentDocumentToContext','hidden','ai-chat-context-invalid-data','string','_ongoingUploadOperations','populateFromMessage','end','2644EebzFe','addToConversationContext','getPendingContextItems','updateCurrentDocument','map','startsWith','type','6657615YhdJPI','content','addUrlToContext','ai-chat-context-unsupported-type','ai-chat-document-upload-failed','fire','_mapContextItemToRequestData','text/markdown','HTML','start'];_0x20bc=function(){return _0x15fc53;};return _0x20bc();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1b8728(0x17c),_0x1b8728(0x177),_0x1b8728(0x198),_0x1b8728(0x179),_0x1b8728(0x16a),_0x1b8728(0x16b),_0x1b8728(0x188),_0x1b8728(0x140),_0x1b8728(0x14b)];export class AIChatContext extends _0x22106e(){[_0x1b8728(0x19b)];[_0x1b8728(0x17d)];[_0x1b8728(0x137)];constructor({connector:_0x21ac7e,config:_0x65a409,ownerId:_0x363ac6}){const _0x20b2b2=_0x1b8728;super(),this[_0x20b2b2(0x19b)]=_0x21ac7e,this[_0x20b2b2(0x17d)]=_0x65a409,this[_0x20b2b2(0x137)]=_0x363ac6;}[_0x1b8728(0x149)](){const _0x27149e=_0x1b8728;this[_0x27149e(0x194)]=new Map(),this[_0x27149e(0x191)]=new Map(),this[_0x27149e(0x1a6)]=new Map(),this[_0x27149e(0x122)]=new Map(),this[_0x27149e(0x195)]();}[_0x1b8728(0x127)](){const _0x372e11=_0x1b8728;return this[_0x372e11(0x194)];}async[_0x1b8728(0x123)](_0x5b01ff){const _0x452922=_0x1b8728,_0xcfe53d=await this[_0x452922(0x146)](_0x5b01ff);return this[_0x452922(0x15e)](_0xcfe53d),_0x452922(0x163)===_0xcfe53d[_0x452922(0x18c)]&&this[_0x452922(0x136)](),_0xcfe53d;}async[_0x1b8728(0x146)](_0x497c9f){const _0x52b6d6=_0x1b8728;if(_0x497c9f[_0x52b6d6(0x12b)]===_0x39495c[_0x52b6d6(0x1a2)]){const _0x59c0db=await this[_0x52b6d6(0x19b)][_0x52b6d6(0x1a5)](this[_0x52b6d6(0x137)],_0x497c9f['id'])[_0x52b6d6(0x157)]();return{'id':_0x52b6d6(0x163),'uiId':_0x52b6d6(0x163),'label':_0x52b6d6(0x199),'type':_0x497c9f[_0x52b6d6(0x12b)],'content':_0x59c0db[_0x52b6d6(0x12d)],'hidden':this[_0x52b6d6(0x191)][_0x52b6d6(0x18f)](_0x52b6d6(0x163)),'version':_0x59c0db[_0x52b6d6(0x155)]?.[_0x52b6d6(0x19c)],'sessionId':_0x59c0db[_0x52b6d6(0x155)]?.[_0x52b6d6(0x152)]};}return{'id':_0x497c9f['id'],'uiId':_0x497c9f['id'],'label':_0x497c9f[_0x52b6d6(0x155)]?.[_0x52b6d6(0x153)]||_0x497c9f[_0x52b6d6(0x173)]||_0x497c9f[_0x52b6d6(0x186)]||_0x497c9f['id'],'type':_0x497c9f[_0x52b6d6(0x12b)],..._0x497c9f?.[_0x52b6d6(0x155)]?.[_0x52b6d6(0x19e)]?{'resourceId':_0x497c9f[_0x52b6d6(0x155)]?.[_0x52b6d6(0x19e)]}:{}};}[_0x1b8728(0x192)](){const _0x38af96=_0x1b8728;return new Map(this[_0x38af96(0x191)]);}[_0x1b8728(0x180)](_0x4444e0){const _0x1c7b50=_0x1b8728,_0x147dc1=this[_0x1c7b50(0x194)][_0x1c7b50(0x18d)](_0x4444e0);_0x147dc1?.[_0x1c7b50(0x184)]||this[_0x1c7b50(0x17f)](_0x4444e0);}[_0x1b8728(0x1a1)](){const _0x22a40e=_0x1b8728;if(0x0===this[_0x22a40e(0x194)][_0x22a40e(0x14f)])return;for(const _0x37347a of this[_0x22a40e(0x194)][_0x22a40e(0x13c)]())this[_0x22a40e(0x17f)](_0x37347a[_0x22a40e(0x18c)]);const _0xf090d0=this[_0x22a40e(0x191)][_0x22a40e(0x18d)](_0x22a40e(0x163))||this[_0x22a40e(0x194)][_0x22a40e(0x18d)](_0x22a40e(0x163));_0xf090d0&&this[_0x22a40e(0x159)]({..._0xf090d0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1b8728(0x126)](_0xada9b5){const _0x391174=_0x1b8728;for(const _0x1ed949 of _0xada9b5[_0x391174(0x13c)]())this[_0x391174(0x15e)](_0x1ed949);this[_0x391174(0x1a1)](),this[_0x391174(0x131)](_0x391174(0x179),{'contextItems':Array[_0x391174(0x145)](this[_0x391174(0x192)]()[_0x391174(0x13c)]())});}[_0x1b8728(0x15a)](){const _0x13ebab=_0x1b8728;return this[_0x13ebab(0x194)][_0x13ebab(0x18f)](_0x13ebab(0x163));}[_0x1b8728(0x1a9)](){const _0x3bd714=_0x1b8728;return this[_0x3bd714(0x194)][_0x3bd714(0x18f)](_0x3bd714(0x169));}[_0x1b8728(0x18a)](){const _0x42cb64=_0x1b8728;return this[_0x42cb64(0x191)][_0x42cb64(0x18f)](_0x42cb64(0x163));}static[_0x1b8728(0x141)](_0x2f7f97){const _0x3a56d7=_0x1b8728;return Array[_0x3a56d7(0x145)](_0x2f7f97[_0x3a56d7(0x13c)]())[_0x3a56d7(0x129)](_0x17c79e=>this[_0x3a56d7(0x132)](_0x17c79e))[_0x3a56d7(0x193)](_0xf3b229=>null!==_0xf3b229);}async[_0x1b8728(0x196)](_0x1ca516,_0x37bae9,_0x3866e4=_0x39495c[_0x1b8728(0x160)]){const _0x45ee5c=_0x1b8728,_0x484ec4=_0x45ee5c(0x19a)+_0x4791d7();this[_0x45ee5c(0x14e)](_0x484ec4);try{await Promise[_0x45ee5c(0x162)](_0x1ca516[_0x45ee5c(0x129)](async _0x215d90=>{const _0x5c77b4=_0x45ee5c,_0x5e97e6=_0x5c77b4(0x1a7)+_0x4791d7(),_0x2a0e11=_0x4554ef(_0x215d90[_0x5c77b4(0x173)]);try{this[_0x5c77b4(0x159)]({'type':_0x3866e4,'label':_0x37bae9?.[_0x5c77b4(0x153)]||_0x2a0e11,'uiId':_0x5e97e6,'resourceId':_0x37bae9?.[_0x5c77b4(0x19e)]},!0x0);const _0x3d2cf8=this[_0x5c77b4(0x19b)][_0x5c77b4(0x170)](this[_0x5c77b4(0x137)],_0x215d90,_0x37bae9);this[_0x5c77b4(0x1a6)][_0x5c77b4(0x148)](_0x5e97e6,_0x3d2cf8[_0x5c77b4(0x167)]);const {id:_0x2020b7}=await _0x3d2cf8[_0x5c77b4(0x14a)]();this[_0x5c77b4(0x1a6)][_0x5c77b4(0x1aa)](_0x5e97e6),this[_0x5c77b4(0x1ab)]({'type':_0x3866e4,'id':_0x2020b7,'label':_0x37bae9?.[_0x5c77b4(0x153)]||_0x2a0e11,'uiId':_0x5e97e6,'resourceId':_0x37bae9?.[_0x5c77b4(0x19e)]},!0x1);}catch(_0x5b86f8){this[_0x5c77b4(0x1a6)][_0x5c77b4(0x1aa)](_0x5e97e6);if(!_0x5b86f8[_0x5c77b4(0x15c)][_0x5c77b4(0x12a)](_0x5c77b4(0x166))){const _0x52874a=new _0xbb59fd(_0x5c77b4(0x18b),null,{'fileName':_0x2a0e11});_0x52874a[_0x5c77b4(0x13f)]=_0x5b86f8[_0x5c77b4(0x13f)],this[_0x5c77b4(0x131)](_0x5c77b4(0x16a),{'error':_0x52874a,'fileName':_0x2a0e11});}this[_0x5c77b4(0x17f)](_0x5e97e6);}}));}finally{this[_0x45ee5c(0x150)](_0x484ec4);}}[_0x1b8728(0x11e)](_0x14121b){const _0x380d8e=_0x1b8728;if(this[_0x380d8e(0x15a)]())return;const _0xcc512f={'type':_0x39495c[_0x380d8e(0x1a2)],'uiId':_0x380d8e(0x163),'label':_0x14121b,'isReadOnly':this[_0x380d8e(0x191)][_0x380d8e(0x18f)](_0x380d8e(0x163)),'hidden':this[_0x380d8e(0x191)][_0x380d8e(0x18f)](_0x380d8e(0x163))};this[_0x380d8e(0x159)](_0xcc512f);}async[_0x1b8728(0x128)](_0x441cb9,_0x52b9ed,_0x12dedc,_0x5d4bca){const _0x4471a1=_0x1b8728,_0x1733ae=this[_0x4471a1(0x194)][_0x4471a1(0x18d)](_0x4471a1(0x163));if(_0x1733ae&&_0x441cb9){_0x1733ae[_0x4471a1(0x169)]=_0x5d4bca?_0x5d4bca[_0x4471a1(0x129)](_0xa2634b=>({'start':_0xa2634b[_0x4471a1(0x135)],'end':_0xa2634b[_0x4471a1(0x124)]})):[];try{if(_0x1733ae[_0x4471a1(0x19c)]===_0x52b9ed)return;const {id:_0x52e179}=await this[_0x4471a1(0x19b)][_0x4471a1(0x187)](this[_0x4471a1(0x137)],_0x441cb9,{'version':_0x52b9ed,'sessionId':_0x12dedc})[_0x4471a1(0x14a)]();_0x1733ae['id']=_0x52e179,_0x1733ae[_0x4471a1(0x12d)]=_0x441cb9,_0x1733ae[_0x4471a1(0x19c)]=_0x52b9ed,_0x1733ae[_0x4471a1(0x152)]=_0x12dedc;}catch(_0x3436c1){const _0x7f29ee=new _0xbb59fd(_0x4471a1(0x130),null);_0x7f29ee[_0x4471a1(0x13f)]=_0x3436c1[_0x4471a1(0x13f)],this[_0x4471a1(0x131)](_0x4471a1(0x16a),{'error':_0x7f29ee});}}}[_0x1b8728(0x11d)](_0x1bb30f){const _0x189976=_0x1b8728;this[_0x189976(0x159)]({'type':_0x39495c[_0x189976(0x138)],'label':_0x1bb30f,'uiId':_0x189976(0x169),'content':_0x1bb30f});}[_0x1b8728(0x190)](){const _0xc63a50=_0x1b8728;this[_0xc63a50(0x17f)](_0xc63a50(0x169));}async[_0x1b8728(0x12e)](_0x3ea734,_0x1b9bd5){const _0x277b63=_0x1b8728,_0xd43644=_0x277b63(0x16c)+_0x4791d7();this[_0x277b63(0x14e)](_0xd43644);const _0x1e7155=_0x277b63(0x16c)+_0x4791d7();try{this[_0x277b63(0x159)]({'type':_0x39495c[_0x277b63(0x172)],'label':_0x1b9bd5?.[_0x277b63(0x153)]||_0x3ea734,'uiId':_0x1e7155,'resourceId':_0x1b9bd5?.[_0x277b63(0x19e)]},!0x0);const _0x37191d=this[_0x277b63(0x19b)][_0x277b63(0x16e)](this[_0x277b63(0x137)],_0x3ea734,_0x1b9bd5);this[_0x277b63(0x1a6)][_0x277b63(0x148)](_0x1e7155,_0x37191d[_0x277b63(0x167)]);const {id:_0x50b68c}=await _0x37191d[_0x277b63(0x14a)]();this[_0x277b63(0x1a6)][_0x277b63(0x1aa)](_0x1e7155),this[_0x277b63(0x1ab)]({'type':_0x39495c[_0x277b63(0x172)],'id':_0x50b68c,'label':_0x1b9bd5?.[_0x277b63(0x153)]||_0x3ea734,'uiId':_0x1e7155,'resourceId':_0x1b9bd5?.[_0x277b63(0x19e)]},!0x1);}catch(_0x560f37){this[_0x277b63(0x1a6)][_0x277b63(0x1aa)](_0x1e7155),(_0x560f37[_0x277b63(0x15c)][_0x277b63(0x12a)](_0x277b63(0x166))||this[_0x277b63(0x131)](_0x277b63(0x16a),{'error':new _0xbb59fd(_0x277b63(0x19f),this,{'url':_0x3ea734,'originalError':_0x560f37}),'url':_0x3ea734}),this[_0x277b63(0x17f)](_0x1e7155));}finally{this[_0x277b63(0x150)](_0xd43644);}}async[_0x1b8728(0x18e)](_0x3ebc54,_0x434d57,_0x32331e){const _0x1841e5=_0x1b8728,_0x248a17=this[_0x1841e5(0x156)][_0x1841e5(0x142)][_0x1841e5(0x144)](_0x47d092=>_0x47d092['id']===_0x3ebc54);if(!_0x248a17)return this[_0x1841e5(0x131)](_0x1841e5(0x16a),{'error':new _0xbb59fd(_0x1841e5(0x1a8),this,{'sourceId':_0x3ebc54}),'sourceId':_0x3ebc54}),[];try{const _0x5be2a8=(await _0x248a17[_0x1841e5(0x19d)](_0x434d57))[_0x1841e5(0x129)](_0x5958a6=>{const _0x53823f=_0x1841e5,_0x5e5780=this[_0x53823f(0x174)](_0x5958a6['id']);return{..._0x5958a6,'isInContext':_0x5e5780};});return _0x248a17[_0x1841e5(0x182)]=_0x5be2a8,this[_0x1841e5(0x131)](_0x1841e5(0x188),{'sourceId':_0x3ebc54,'source':_0x248a17,'resources':_0x5be2a8,'uid':_0x32331e}),_0x5be2a8;}catch(_0x1cb50c){return this[_0x1841e5(0x131)](_0x1841e5(0x16a),{'error':new _0xbb59fd(_0x1841e5(0x197),this,{'sourceId':_0x3ebc54,'originalError':_0x1cb50c}),'sourceId':_0x3ebc54,'sourceLabel':_0x248a17[_0x1841e5(0x153)]}),[];}}async[_0x1b8728(0x14c)](_0x536a48,_0x18abf0){const _0x39182d=_0x1b8728;if(this[_0x39182d(0x174)](_0x18abf0['id']))return;let _0x4ab72b=_0x18abf0[_0x39182d(0x13a)];if(!_0x4ab72b&&_0x536a48[_0x39182d(0x1a0)])try{_0x4ab72b=await _0x536a48[_0x39182d(0x1a0)](_0x18abf0['id']);}catch(_0x25a480){return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x185),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'originalError':_0x25a480}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});}if(_0x4ab72b)switch(_0x18abf0[_0x39182d(0x12b)]){case _0x39495c[_0x39182d(0x172)]:if(_0x39182d(0x121)!=typeof _0x4ab72b)return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x120),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'expectedType':_0x39182d(0x121),'actualType':typeof _0x4ab72b}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});await this[_0x39182d(0x12e)](_0x4ab72b,{'label':_0x18abf0[_0x39182d(0x153)],'resourceId':_0x18abf0['id']});break;case _0x39495c[_0x39182d(0x160)]:if(!(_0x4ab72b instanceof File))return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x120),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'expectedType':_0x39182d(0x183),'actualType':typeof _0x4ab72b}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});await this[_0x39182d(0x196)]([_0x4ab72b],{'label':_0x18abf0[_0x39182d(0x153)],'resourceId':_0x18abf0['id']});break;case _0x39495c[_0x39182d(0x13e)]:if(_0x39182d(0x181)!=typeof _0x4ab72b||!(_0x39182d(0x12d)in _0x4ab72b)||!(_0x39182d(0x12b)in _0x4ab72b))return void this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x120),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'expectedType':_0x39182d(0x165),'actualType':typeof _0x4ab72b}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});_0x4ab72b=AIChatContext[_0x39182d(0x151)](_0x4ab72b,_0x18abf0[_0x39182d(0x153)]),await this[_0x39182d(0x196)]([_0x4ab72b],{'label':_0x18abf0[_0x39182d(0x153)],'resourceId':_0x18abf0['id']},_0x39495c[_0x39182d(0x13e)]);break;default:this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x12f),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id'],'resourceType':_0x18abf0[_0x39182d(0x12b)]}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});}else this[_0x39182d(0x131)](_0x39182d(0x16a),{'error':new _0xbb59fd(_0x39182d(0x158),this,{'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']}),'resourceId':_0x18abf0['id'],'sourceId':_0x536a48['id']});}static[_0x1b8728(0x151)](_0xe24c99,_0x41f63d){const _0xe3a6=_0x1b8728;switch(_0xe24c99[_0xe3a6(0x12b)]){case _0x2ec68a[_0xe3a6(0x17e)]:return new File([_0xe24c99[_0xe3a6(0x12d)]],_0x41f63d,{'type':_0xe3a6(0x133)});case _0x2ec68a[_0xe3a6(0x134)]:return new File([_0xe24c99[_0xe3a6(0x12d)]],_0x41f63d,{'type':_0xe3a6(0x15d)});default:return new File([_0xe24c99[_0xe3a6(0x12d)]],_0x41f63d,{'type':_0xe3a6(0x168)});}}static[_0x1b8728(0x132)](_0x5043f4){const _0x3bc9eb=_0x1b8728;switch(_0x5043f4[_0x3bc9eb(0x12b)]){case _0x39495c[_0x3bc9eb(0x160)]:return{'type':_0x39495c[_0x3bc9eb(0x160)],'id':_0x5043f4['id']};case _0x39495c[_0x3bc9eb(0x172)]:return{'type':_0x39495c[_0x3bc9eb(0x172)],'id':_0x5043f4['id']};case _0x39495c[_0x3bc9eb(0x1a2)]:return{'type':_0x39495c[_0x3bc9eb(0x1a2)],'id':_0x5043f4['id'],..._0x5043f4[_0x3bc9eb(0x169)]?.[_0x3bc9eb(0x189)]&&{'selection':_0x5043f4[_0x3bc9eb(0x169)]}};case _0x39495c[_0x3bc9eb(0x13e)]:return{'type':_0x39495c[_0x3bc9eb(0x160)],'id':_0x5043f4['id']};default:return null;}}[_0x1b8728(0x159)](_0x556725,_0x14ff3b=!0x1){const _0x33da4a=_0x1b8728;if(this[_0x33da4a(0x194)][_0x33da4a(0x148)](_0x556725[_0x33da4a(0x18c)],_0x556725),_0x556725[_0x33da4a(0x11f)]||this[_0x33da4a(0x131)](_0x33da4a(0x17c),{'contextItem':_0x556725,'isLoading':_0x14ff3b}),_0x33da4a(0x163)===_0x556725[_0x33da4a(0x18c)]&&this[_0x33da4a(0x136)](),_0x556725[_0x33da4a(0x19e)]){const _0x28c7ad=this[_0x33da4a(0x17b)](_0x556725[_0x33da4a(0x19e)]);_0x28c7ad&&_0x28c7ad[_0x33da4a(0x16d)](_0x9a2bdd=>{const _0x39fadf=_0x33da4a;this[_0x39fadf(0x164)](_0x9a2bdd,_0x556725[_0x39fadf(0x19e)],!0x0);});}}[_0x1b8728(0x17f)](_0x21484d){const _0x237e5d=_0x1b8728,_0x10431f=this[_0x237e5d(0x194)][_0x237e5d(0x18d)](_0x21484d),_0x59ae77=this[_0x237e5d(0x1a6)][_0x237e5d(0x18d)](_0x21484d);if(_0x59ae77&&(_0x59ae77[_0x237e5d(0x13d)](),this[_0x237e5d(0x1a6)][_0x237e5d(0x1aa)](_0x21484d)),_0x10431f?.[_0x237e5d(0x19e)]){const _0xb66b41=this[_0x237e5d(0x17b)](_0x10431f[_0x237e5d(0x19e)]);_0xb66b41&&_0xb66b41[_0x237e5d(0x16d)](_0x162973=>{const _0x3e4121=_0x237e5d;this[_0x3e4121(0x164)](_0x162973,_0x10431f[_0x3e4121(0x19e)],!0x1);});}this[_0x237e5d(0x194)][_0x237e5d(0x1aa)](_0x21484d),this[_0x237e5d(0x131)](_0x237e5d(0x177),{'uiId':_0x21484d,'type':_0x10431f?.[_0x237e5d(0x12b)]}),_0x237e5d(0x163)===_0x21484d&&this[_0x237e5d(0x136)]();}[_0x1b8728(0x1ab)](_0x530bc9,_0x267c7d){const _0x19e667=_0x1b8728;if(this[_0x19e667(0x194)][_0x19e667(0x18f)](_0x530bc9[_0x19e667(0x18c)])&&(this[_0x19e667(0x194)][_0x19e667(0x148)](_0x530bc9[_0x19e667(0x18c)],_0x530bc9),this[_0x19e667(0x131)](_0x19e667(0x198),{'contextItem':_0x530bc9,'isLoading':_0x267c7d}),_0x530bc9[_0x19e667(0x19e)])){const _0x3a6319=this[_0x19e667(0x17b)](_0x530bc9[_0x19e667(0x19e)]);_0x3a6319&&_0x3a6319[_0x19e667(0x16d)](_0x20493e=>{const _0x199f21=_0x19e667;this[_0x199f21(0x164)](_0x20493e,_0x530bc9[_0x199f21(0x19e)],!0x0);});}}[_0x1b8728(0x15e)](_0x1a1f73){const _0x215884=_0x1b8728;this[_0x215884(0x191)][_0x215884(0x148)](_0x1a1f73[_0x215884(0x18c)],_0x1a1f73);}[_0x1b8728(0x195)](){const _0x5a288e=_0x1b8728;this[_0x5a288e(0x156)]={'document':{'enabled':!0x1!==this[_0x5a288e(0x17d)]?.[_0x5a288e(0x1a3)]?.[_0x5a288e(0x14d)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5a288e(0x17d)]?.[_0x5a288e(0x176)]?.[_0x5a288e(0x14d)]},'files':{'enabled':!0x1!==this[_0x5a288e(0x17d)]?.[_0x5a288e(0x175)]?.[_0x5a288e(0x14d)]},'sources':this[_0x5a288e(0x11c)]()},this[_0x5a288e(0x131)](_0x5a288e(0x16b),{'options':this[_0x5a288e(0x156)]});}[_0x1b8728(0x11c)](){const _0x408c3b=_0x1b8728;return this[_0x408c3b(0x17d)]?.[_0x408c3b(0x142)]?.[_0x408c3b(0x129)](_0x5b10f8=>({..._0x5b10f8,'resources':[]}))??[];}[_0x1b8728(0x136)](){const _0x5ec798=_0x1b8728,_0x3b8926=this[_0x5ec798(0x15a)]()||this[_0x5ec798(0x18a)]();this[_0x5ec798(0x156)][_0x5ec798(0x1a3)][_0x5ec798(0x161)]=_0x3b8926,this[_0x5ec798(0x131)](_0x5ec798(0x16b),{'options':this[_0x5ec798(0x156)]});}[_0x1b8728(0x174)](_0x22bb76){const _0x3cfde7=_0x1b8728;for(const _0x5294a9 of this[_0x3cfde7(0x194)][_0x3cfde7(0x13c)]())if(_0x5294a9[_0x3cfde7(0x19e)]===_0x22bb76)return!0x0;for(const _0x1ffbc7 of this[_0x3cfde7(0x191)][_0x3cfde7(0x13c)]())if(_0x1ffbc7[_0x3cfde7(0x19e)]===_0x22bb76)return!0x0;return!0x1;}[_0x1b8728(0x17b)](_0x35b891){const _0x5460ef=_0x1b8728,_0x48bf57=[];for(const _0x42ab08 of this[_0x5460ef(0x156)][_0x5460ef(0x142)]){_0x42ab08[_0x5460ef(0x182)][_0x5460ef(0x144)](_0x3876e0=>_0x3876e0['id']===_0x35b891)&&_0x48bf57[_0x5460ef(0x15b)](_0x42ab08['id']);}return 0x0===_0x48bf57[_0x5460ef(0x189)]?null:_0x48bf57;}[_0x1b8728(0x164)](_0x1e18c2,_0x18a8ca,_0x20a599){const _0x5e321b=_0x1b8728,_0x3f8f07=this[_0x5e321b(0x156)][_0x5e321b(0x142)][_0x5e321b(0x144)](_0x4f3661=>_0x4f3661['id']===_0x1e18c2);if(!_0x3f8f07)return;const _0x3878ed=_0x3f8f07[_0x5e321b(0x182)][_0x5e321b(0x144)](_0xfee1ee=>_0xfee1ee['id']===_0x18a8ca);_0x3878ed&&(_0x3878ed[_0x5e321b(0x13b)]=_0x20a599,this[_0x5e321b(0x131)](_0x5e321b(0x140),{'sourceId':_0x1e18c2,'resourceId':_0x18a8ca,'isInContext':_0x20a599}));}[_0x1b8728(0x14e)](_0x1d6b82){const _0x12a507=_0x1b8728;this[_0x12a507(0x122)][_0x12a507(0x148)](_0x1d6b82,!0x0),this[_0x12a507(0x122)][_0x12a507(0x14f)]&&this[_0x12a507(0x131)](_0x12a507(0x14b),{'isUploadInProgress':!0x0});}[_0x1b8728(0x150)](_0x19f12d){const _0x477efe=_0x1b8728;this[_0x477efe(0x122)][_0x477efe(0x1aa)](_0x19f12d),0x0===this[_0x477efe(0x122)][_0x477efe(0x14f)]&&this[_0x477efe(0x131)](_0x477efe(0x14b),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
function _0x556b(_0x398772,_0xd712da){const _0x18b506=_0x18b5();return _0x556b=function(_0x556b5f,_0x244a29){_0x556b5f=_0x556b5f-0x19c;let _0xa3373f=_0x18b506[_0x556b5f];return _0xa3373f;},_0x556b(_0x398772,_0xd712da);}const _0x5a8d72=_0x556b;(function(_0x126612,_0xc0b3a7){const _0x533fd0=_0x556b,_0x3f8a5a=_0x126612();while(!![]){try{const _0x5c811a=-parseInt(_0x533fd0(0x1eb))/0x1+parseInt(_0x533fd0(0x1d9))/0x2+-parseInt(_0x533fd0(0x1d3))/0x3*(-parseInt(_0x533fd0(0x1a7))/0x4)+parseInt(_0x533fd0(0x1f7))/0x5+parseInt(_0x533fd0(0x1ee))/0x6*(parseInt(_0x533fd0(0x1c6))/0x7)+parseInt(_0x533fd0(0x1c3))/0x8+-parseInt(_0x533fd0(0x1d6))/0x9*(parseInt(_0x533fd0(0x1d5))/0xa);if(_0x5c811a===_0xc0b3a7)break;else _0x3f8a5a['push'](_0x3f8a5a['shift']());}catch(_0x420e09){_0x3f8a5a['push'](_0x3f8a5a['shift']());}}}(_0x18b5,0x48fb5));function _0x18b5(){const _0x4fc078=['335976PVBAle','url-','_finishContextItemLoading','isSelectionInContext','ai-chat-document-upload-failed','abortController','object','resourceStateChanged','ai-chat-source-not-found','FILE','contextItemAdded','_createContextItemFromContent','addToConversationContext','sourceResourcesLoaded','_setAddContextOptionsDefaultState','_conversationContextItems','sessionId','version','addResourceToContext','file-','fire','getData','Current\x20document','ai-chat-file-upload-failed','startsWith','isReadOnly','_convertTextResourceToFile','content','3343416hQBgHU','_mapContextItemToRequestData','label','28833KnipvR','document','init','contextItemLoadingEnded','addContextOptionsChanged','size','filter','current-document','addUrlToContext','populateFromMessage','forEach','has','MARKDOWN','9frhjJR','map','1236310hFuzme','72jPKwyh','error','text/html','1100206BUdKEr','getId','TEXT','resources','_updateResourceInContextState','_toggleAddCurrentDocumentOptionVisibility','enabled','removeFromContext','files-','fetchDocument','SELECTION','uploadFile','getSentContextItems','length','uploadUrl','attributes','ai-chat-context-unsupported-type','addFilesToContext','144863JCYnDc','text/plain','loadSourceResources','240EzFvcR','ai-chat-url-upload-failed','isCurrentDocumentInContext','url','push','_config','set','isCurrentDocumentInConversation','string','240360iyMQaX','files','find','ai-request-aborted','_ownerId','uploadProgressChanged','updateCurrentDocument','end','_isResourceInContext','stack','_startUploadOperation','values','abort','_finishUploadOperation','ai-chat-resource-load-failed','sources','hidden','isHidden','isInContext','ai-chat-resource-no-data','_addContextItem','from','_addContextOptionsState','URL','addSelectionToContext','get','_pendingContextItems','HTML','data','DOCUMENT','resourceId','ai-chat-source-resources-load-failed','_ongoingUploads','start','message','clearPendingContextItems','contextItemRemoved','getPendingContextItems','object\x20with\x20content\x20and\x20type\x20properties','_addToConversationContextItem','type','selection','name','getDocument','_getCustomSourcesInitialState','addCurrentDocumentToContext','File','_connector','mapContextItemsToRequestData','removeSelectionFromContext','getResources','urls','_findSourceIdsByResourceId','delete','text/markdown','contextSent','all','uiId','ai-chat-context-invalid-data','_ongoingUploadOperations','uploadDocument','_removeContextItem'];_0x18b5=function(){return _0x4fc078;};return _0x18b5();}import{CKEditorError as _0x14541f,ObservableMixin as _0x327bf4,uid as _0x578ffc}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a326c,AIContextTextResourceType as _0x319533}from'../../aicore/model/aicontext.js';import{escape as _0x31bb39}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5a8d72(0x1b1),_0x5a8d72(0x21b),_0x5a8d72(0x1c9),_0x5a8d72(0x1a0),_0x5a8d72(0x1d7),_0x5a8d72(0x1ca),_0x5a8d72(0x1b4),_0x5a8d72(0x1ae),_0x5a8d72(0x1fc)];export class AIChatContext extends _0x327bf4(){[_0x5a8d72(0x226)];[_0x5a8d72(0x1f3)];[_0x5a8d72(0x1fb)];constructor({connector:_0x3f7e6e,config:_0x3b6def,ownerId:_0x3882ac}){const _0x2a29d4=_0x5a8d72;super(),this[_0x2a29d4(0x226)]=_0x3f7e6e,this[_0x2a29d4(0x1f3)]=_0x3b6def,this[_0x2a29d4(0x1fb)]=_0x3882ac;}[_0x5a8d72(0x1c8)](){const _0x4dc3b4=_0x5a8d72;this[_0x4dc3b4(0x211)]=new Map(),this[_0x4dc3b4(0x1b6)]=new Map(),this[_0x4dc3b4(0x217)]=new Map(),this[_0x4dc3b4(0x1a4)]=new Map(),this[_0x4dc3b4(0x1b5)]();}[_0x5a8d72(0x21c)](){const _0x39ab0f=_0x5a8d72;return this[_0x39ab0f(0x211)];}async[_0x5a8d72(0x1cf)](_0x829928){const _0x1c9ee3=_0x5a8d72,_0x55fa6d=await this[_0x1c9ee3(0x1b2)](_0x829928);return this[_0x1c9ee3(0x21e)](_0x55fa6d),_0x1c9ee3(0x1cd)===_0x55fa6d[_0x1c9ee3(0x1a2)]&&this[_0x1c9ee3(0x1de)](),_0x55fa6d;}async[_0x5a8d72(0x1b2)](_0x558406){const _0x3bd7f9=_0x5a8d72;if(_0x558406[_0x3bd7f9(0x21f)]===_0x4a326c[_0x3bd7f9(0x214)]){const _0x1ba252=await this[_0x3bd7f9(0x226)][_0x3bd7f9(0x1e2)](this[_0x3bd7f9(0x1fb)],_0x558406['id'])[_0x3bd7f9(0x222)]();return{'id':_0x3bd7f9(0x1cd),'uiId':_0x3bd7f9(0x1cd),'label':_0x3bd7f9(0x1bd),'type':_0x558406[_0x3bd7f9(0x21f)],'content':_0x1ba252[_0x3bd7f9(0x1c2)],'hidden':this[_0x3bd7f9(0x1b6)][_0x3bd7f9(0x1d1)](_0x3bd7f9(0x1cd)),'version':_0x1ba252[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1b8)],'sessionId':_0x1ba252[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1b7)]};}return{'id':_0x558406['id'],'uiId':_0x558406['id'],'label':_0x558406[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1c5)]||_0x558406[_0x3bd7f9(0x221)]||_0x558406[_0x3bd7f9(0x1f1)]||_0x558406['id'],'type':_0x558406[_0x3bd7f9(0x21f)],..._0x558406?.[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x215)]?{'resourceId':_0x558406[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x215)]}:{}};}[_0x5a8d72(0x1e5)](){const _0x31d5e1=_0x5a8d72;return new Map(this[_0x31d5e1(0x1b6)]);}[_0x5a8d72(0x1e0)](_0x4d657c){const _0x3d4250=_0x5a8d72,_0x16aede=this[_0x3d4250(0x211)][_0x3d4250(0x210)](_0x4d657c);_0x16aede?.[_0x3d4250(0x1c0)]||this[_0x3d4250(0x1a6)](_0x4d657c);}[_0x5a8d72(0x21a)](){const _0x208986=_0x5a8d72;if(0x0===this[_0x208986(0x211)][_0x208986(0x1cb)])return;for(const _0x454982 of this[_0x208986(0x211)][_0x208986(0x202)]())this[_0x208986(0x1a6)](_0x454982[_0x208986(0x1a2)]);const _0x2a6ca8=this[_0x208986(0x1b6)][_0x208986(0x210)](_0x208986(0x1cd))||this[_0x208986(0x211)][_0x208986(0x210)](_0x208986(0x1cd));_0x2a6ca8&&this[_0x208986(0x20b)]({..._0x2a6ca8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5a8d72(0x1b3)](_0x254c91){const _0x2016e4=_0x5a8d72;for(const _0x2d2ccf of _0x254c91[_0x2016e4(0x202)]())this[_0x2016e4(0x21e)](_0x2d2ccf);this[_0x2016e4(0x21a)](),this[_0x2016e4(0x1bb)](_0x2016e4(0x1a0),{'contextItems':Array[_0x2016e4(0x20c)](this[_0x2016e4(0x1e5)]()[_0x2016e4(0x202)]())});}[_0x5a8d72(0x1f0)](){const _0x51b6b4=_0x5a8d72;return this[_0x51b6b4(0x211)][_0x51b6b4(0x1d1)](_0x51b6b4(0x1cd));}[_0x5a8d72(0x1aa)](){const _0x24aac8=_0x5a8d72;return this[_0x24aac8(0x211)][_0x24aac8(0x1d1)](_0x24aac8(0x220));}[_0x5a8d72(0x1f5)](){const _0x4e5dff=_0x5a8d72;return this[_0x4e5dff(0x1b6)][_0x4e5dff(0x1d1)](_0x4e5dff(0x1cd));}static[_0x5a8d72(0x227)](_0x249793){const _0x549043=_0x5a8d72;return Array[_0x549043(0x20c)](_0x249793[_0x549043(0x202)]())[_0x549043(0x1d4)](_0x50c8ec=>this[_0x549043(0x1c4)](_0x50c8ec))[_0x549043(0x1cc)](_0x159701=>null!==_0x159701);}async[_0x5a8d72(0x1ea)](_0x32593b,_0x14a242,_0xd0845c=_0x4a326c[_0x5a8d72(0x1b0)]){const _0x57d460=_0x5a8d72,_0x3bd3e6=_0x57d460(0x1e1)+_0x578ffc();this[_0x57d460(0x201)](_0x3bd3e6);try{await Promise[_0x57d460(0x1a1)](_0x32593b[_0x57d460(0x1d4)](async _0x48667d=>{const _0x37220f=_0x57d460,_0x1f7afc=_0x37220f(0x1ba)+_0x578ffc(),_0x5325aa=_0x31bb39(_0x48667d[_0x37220f(0x221)]);try{this[_0x37220f(0x20b)]({'type':_0xd0845c,'label':_0x14a242?.[_0x37220f(0x1c5)]||_0x5325aa,'uiId':_0x1f7afc,'resourceId':_0x14a242?.[_0x37220f(0x215)]},!0x0);const _0xb35efc=this[_0x37220f(0x226)][_0x37220f(0x1e4)](this[_0x37220f(0x1fb)],_0x48667d,_0x14a242);this[_0x37220f(0x217)][_0x37220f(0x1f4)](_0x1f7afc,_0xb35efc[_0x37220f(0x1ac)]);const {id:_0x31382e}=await _0xb35efc[_0x37220f(0x1da)]();this[_0x37220f(0x217)][_0x37220f(0x19e)](_0x1f7afc),this[_0x37220f(0x1a9)]({'type':_0xd0845c,'id':_0x31382e,'label':_0x14a242?.[_0x37220f(0x1c5)]||_0x5325aa,'uiId':_0x1f7afc,'resourceId':_0x14a242?.[_0x37220f(0x215)]},!0x1);}catch(_0xd3fdac){this[_0x37220f(0x217)][_0x37220f(0x19e)](_0x1f7afc);if(!_0xd3fdac[_0x37220f(0x219)][_0x37220f(0x1bf)](_0x37220f(0x1fa))){const _0x3d6577=new _0x14541f(_0x37220f(0x1be),null,{'fileName':_0x5325aa});_0x3d6577[_0x37220f(0x200)]=_0xd3fdac[_0x37220f(0x200)],this[_0x37220f(0x1bb)](_0x37220f(0x1d7),{'error':_0x3d6577,'fileName':_0x5325aa});}this[_0x37220f(0x1a6)](_0x1f7afc);}}));}finally{this[_0x57d460(0x204)](_0x3bd3e6);}}[_0x5a8d72(0x224)](_0x264325){const _0x1d9e57=_0x5a8d72;if(this[_0x1d9e57(0x1f0)]())return;const _0x25dc82={'type':_0x4a326c[_0x1d9e57(0x214)],'uiId':_0x1d9e57(0x1cd),'label':_0x264325,'isReadOnly':this[_0x1d9e57(0x1b6)][_0x1d9e57(0x1d1)](_0x1d9e57(0x1cd)),'hidden':this[_0x1d9e57(0x1b6)][_0x1d9e57(0x1d1)](_0x1d9e57(0x1cd))};this[_0x1d9e57(0x20b)](_0x25dc82);}async[_0x5a8d72(0x1fd)](_0x3267a4,_0x109aaf,_0x38d841,_0x588e13){const _0x3bcf2e=_0x5a8d72,_0x1cab8b=this[_0x3bcf2e(0x211)][_0x3bcf2e(0x210)](_0x3bcf2e(0x1cd));if(_0x1cab8b&&_0x3267a4){_0x1cab8b[_0x3bcf2e(0x220)]=_0x588e13?_0x588e13[_0x3bcf2e(0x1d4)](_0x58c8f5=>({'start':_0x58c8f5[_0x3bcf2e(0x218)],'end':_0x58c8f5[_0x3bcf2e(0x1fe)]})):[];try{if(_0x1cab8b[_0x3bcf2e(0x1b8)]===_0x109aaf)return;const {id:_0x41da69}=await this[_0x3bcf2e(0x226)][_0x3bcf2e(0x1a5)](this[_0x3bcf2e(0x1fb)],_0x3267a4,{'version':_0x109aaf,'sessionId':_0x38d841})[_0x3bcf2e(0x1da)]();_0x1cab8b['id']=_0x41da69,_0x1cab8b[_0x3bcf2e(0x1c2)]=_0x3267a4,_0x1cab8b[_0x3bcf2e(0x1b8)]=_0x109aaf,_0x1cab8b[_0x3bcf2e(0x1b7)]=_0x38d841;}catch(_0x513652){const _0x2055aa=new _0x14541f(_0x3bcf2e(0x1ab),null);_0x2055aa[_0x3bcf2e(0x200)]=_0x513652[_0x3bcf2e(0x200)],this[_0x3bcf2e(0x1bb)](_0x3bcf2e(0x1d7),{'error':_0x2055aa});}}}[_0x5a8d72(0x20f)](_0x227fbf){const _0x184570=_0x5a8d72;this[_0x184570(0x20b)]({'type':_0x4a326c[_0x184570(0x1e3)],'label':_0x227fbf,'uiId':_0x184570(0x220),'content':_0x227fbf});}[_0x5a8d72(0x228)](){const _0x5656da=_0x5a8d72;this[_0x5656da(0x1a6)](_0x5656da(0x220));}async[_0x5a8d72(0x1ce)](_0x3730ac,_0x2b98ab){const _0x538bef=_0x5a8d72,_0xf5131f=_0x538bef(0x1a8)+_0x578ffc();this[_0x538bef(0x201)](_0xf5131f);const _0x2edb92=_0x538bef(0x1a8)+_0x578ffc();try{this[_0x538bef(0x20b)]({'type':_0x4a326c[_0x538bef(0x20e)],'label':_0x2b98ab?.[_0x538bef(0x1c5)]||_0x3730ac,'uiId':_0x2edb92,'resourceId':_0x2b98ab?.[_0x538bef(0x215)]},!0x0);const _0x74f744=this[_0x538bef(0x226)][_0x538bef(0x1e7)](this[_0x538bef(0x1fb)],_0x3730ac,_0x2b98ab);this[_0x538bef(0x217)][_0x538bef(0x1f4)](_0x2edb92,_0x74f744[_0x538bef(0x1ac)]);const {id:_0x53aef9}=await _0x74f744[_0x538bef(0x1da)]();this[_0x538bef(0x217)][_0x538bef(0x19e)](_0x2edb92),this[_0x538bef(0x1a9)]({'type':_0x4a326c[_0x538bef(0x20e)],'id':_0x53aef9,'label':_0x2b98ab?.[_0x538bef(0x1c5)]||_0x3730ac,'uiId':_0x2edb92,'resourceId':_0x2b98ab?.[_0x538bef(0x215)]},!0x1);}catch(_0x119ace){this[_0x538bef(0x217)][_0x538bef(0x19e)](_0x2edb92),(_0x119ace[_0x538bef(0x219)][_0x538bef(0x1bf)](_0x538bef(0x1fa))||this[_0x538bef(0x1bb)](_0x538bef(0x1d7),{'error':new _0x14541f(_0x538bef(0x1ef),this,{'url':_0x3730ac,'originalError':_0x119ace}),'url':_0x3730ac}),this[_0x538bef(0x1a6)](_0x2edb92));}finally{this[_0x538bef(0x204)](_0xf5131f);}}async[_0x5a8d72(0x1ed)](_0x5f024c,_0x140d9a,_0x5e8031){const _0x5494b1=_0x5a8d72,_0x55377c=this[_0x5494b1(0x20d)][_0x5494b1(0x206)][_0x5494b1(0x1f9)](_0x50863e=>_0x50863e['id']===_0x5f024c);if(!_0x55377c)return this[_0x5494b1(0x1bb)](_0x5494b1(0x1d7),{'error':new _0x14541f(_0x5494b1(0x1af),this,{'sourceId':_0x5f024c}),'sourceId':_0x5f024c}),[];try{const _0x2d5a88=(await _0x55377c[_0x5494b1(0x229)](_0x140d9a))[_0x5494b1(0x1d4)](_0x4d03c4=>{const _0x97a8bd=_0x5494b1,_0xabfbc5=this[_0x97a8bd(0x1ff)](_0x4d03c4['id']);return{..._0x4d03c4,'isInContext':_0xabfbc5};});return _0x55377c[_0x5494b1(0x1dc)]=_0x2d5a88,this[_0x5494b1(0x1bb)](_0x5494b1(0x1b4),{'sourceId':_0x5f024c,'source':_0x55377c,'resources':_0x2d5a88,'uid':_0x5e8031}),_0x2d5a88;}catch(_0x35275e){return this[_0x5494b1(0x1bb)](_0x5494b1(0x1d7),{'error':new _0x14541f(_0x5494b1(0x216),this,{'sourceId':_0x5f024c,'originalError':_0x35275e}),'sourceId':_0x5f024c,'sourceLabel':_0x55377c[_0x5494b1(0x1c5)]}),[];}}async[_0x5a8d72(0x1b9)](_0x27d750,_0x57528a){const _0x29738c=_0x5a8d72;if(this[_0x29738c(0x1ff)](_0x57528a['id']))return;let _0x15a408=_0x57528a[_0x29738c(0x213)];if(!_0x15a408&&_0x27d750[_0x29738c(0x1bc)])try{_0x15a408=await _0x27d750[_0x29738c(0x1bc)](_0x57528a['id']);}catch(_0x397ab8){return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x205),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'originalError':_0x397ab8}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}if(_0x15a408)switch(_0x57528a[_0x29738c(0x21f)]){case _0x4a326c[_0x29738c(0x20e)]:if(_0x29738c(0x1f6)!=typeof _0x15a408)return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x1f6),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});await this[_0x29738c(0x1ce)](_0x15a408,{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']});break;case _0x4a326c[_0x29738c(0x1b0)]:if(!(_0x15a408 instanceof File))return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x225),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});await this[_0x29738c(0x1ea)]([_0x15a408],{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']});break;case _0x4a326c[_0x29738c(0x1db)]:if(_0x29738c(0x1ad)!=typeof _0x15a408||!(_0x29738c(0x1c2)in _0x15a408)||!(_0x29738c(0x21f)in _0x15a408))return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x21d),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});_0x15a408=AIChatContext[_0x29738c(0x1c1)](_0x15a408,_0x57528a[_0x29738c(0x1c5)]),await this[_0x29738c(0x1ea)]([_0x15a408],{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']},_0x4a326c[_0x29738c(0x1db)]);break;default:this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1e9),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'resourceType':_0x57528a[_0x29738c(0x21f)]}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}else this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x20a),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}static[_0x5a8d72(0x1c1)](_0x43537f,_0x49171f){const _0x544d98=_0x5a8d72;switch(_0x43537f[_0x544d98(0x21f)]){case _0x319533[_0x544d98(0x1d2)]:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x19f)});case _0x319533[_0x544d98(0x212)]:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x1d8)});default:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x1ec)});}}static[_0x5a8d72(0x1c4)](_0x230d89){const _0x323f03=_0x5a8d72;switch(_0x230d89[_0x323f03(0x21f)]){case _0x4a326c[_0x323f03(0x1b0)]:return{'type':_0x4a326c[_0x323f03(0x1b0)],'id':_0x230d89['id']};case _0x4a326c[_0x323f03(0x20e)]:return{'type':_0x4a326c[_0x323f03(0x20e)],'id':_0x230d89['id']};case _0x4a326c[_0x323f03(0x214)]:return{'type':_0x4a326c[_0x323f03(0x214)],'id':_0x230d89['id'],..._0x230d89[_0x323f03(0x220)]?.[_0x323f03(0x1e6)]&&{'selection':_0x230d89[_0x323f03(0x220)]}};case _0x4a326c[_0x323f03(0x1db)]:return{'type':_0x4a326c[_0x323f03(0x1b0)],'id':_0x230d89['id']};default:return null;}}[_0x5a8d72(0x20b)](_0x575a57,_0x1fd021=!0x1){const _0x5652f6=_0x5a8d72;if(this[_0x5652f6(0x211)][_0x5652f6(0x1f4)](_0x575a57[_0x5652f6(0x1a2)],_0x575a57),_0x575a57[_0x5652f6(0x207)]||this[_0x5652f6(0x1bb)](_0x5652f6(0x1b1),{'contextItem':_0x575a57,'isLoading':_0x1fd021}),_0x5652f6(0x1cd)===_0x575a57[_0x5652f6(0x1a2)]&&this[_0x5652f6(0x1de)](),_0x575a57[_0x5652f6(0x215)]){const _0x3cfb6d=this[_0x5652f6(0x19d)](_0x575a57[_0x5652f6(0x215)]);_0x3cfb6d&&_0x3cfb6d[_0x5652f6(0x1d0)](_0x316990=>{const _0x4eca5f=_0x5652f6;this[_0x4eca5f(0x1dd)](_0x316990,_0x575a57[_0x4eca5f(0x215)],!0x0);});}}[_0x5a8d72(0x1a6)](_0x4dfcf8){const _0x3800da=_0x5a8d72,_0x9b7d37=this[_0x3800da(0x211)][_0x3800da(0x210)](_0x4dfcf8),_0x4a3211=this[_0x3800da(0x217)][_0x3800da(0x210)](_0x4dfcf8);if(_0x4a3211&&(_0x4a3211[_0x3800da(0x203)](),this[_0x3800da(0x217)][_0x3800da(0x19e)](_0x4dfcf8)),_0x9b7d37?.[_0x3800da(0x215)]){const _0x14affb=this[_0x3800da(0x19d)](_0x9b7d37[_0x3800da(0x215)]);_0x14affb&&_0x14affb[_0x3800da(0x1d0)](_0x29fa7a=>{const _0x29f924=_0x3800da;this[_0x29f924(0x1dd)](_0x29fa7a,_0x9b7d37[_0x29f924(0x215)],!0x1);});}this[_0x3800da(0x211)][_0x3800da(0x19e)](_0x4dfcf8),this[_0x3800da(0x1bb)](_0x3800da(0x21b),{'uiId':_0x4dfcf8,'type':_0x9b7d37?.[_0x3800da(0x21f)]}),_0x3800da(0x1cd)===_0x4dfcf8&&this[_0x3800da(0x1de)]();}[_0x5a8d72(0x1a9)](_0x2f4679,_0x5808d3){const _0x4f459c=_0x5a8d72;if(this[_0x4f459c(0x211)][_0x4f459c(0x1d1)](_0x2f4679[_0x4f459c(0x1a2)])&&(this[_0x4f459c(0x211)][_0x4f459c(0x1f4)](_0x2f4679[_0x4f459c(0x1a2)],_0x2f4679),this[_0x4f459c(0x1bb)](_0x4f459c(0x1c9),{'contextItem':_0x2f4679,'isLoading':_0x5808d3}),_0x2f4679[_0x4f459c(0x215)])){const _0x5a3ded=this[_0x4f459c(0x19d)](_0x2f4679[_0x4f459c(0x215)]);_0x5a3ded&&_0x5a3ded[_0x4f459c(0x1d0)](_0x140ed0=>{const _0xa3de19=_0x4f459c;this[_0xa3de19(0x1dd)](_0x140ed0,_0x2f4679[_0xa3de19(0x215)],!0x0);});}}[_0x5a8d72(0x21e)](_0x176b78){const _0x31429f=_0x5a8d72;this[_0x31429f(0x1b6)][_0x31429f(0x1f4)](_0x176b78[_0x31429f(0x1a2)],_0x176b78);}[_0x5a8d72(0x1b5)](){const _0x3f8174=_0x5a8d72;this[_0x3f8174(0x20d)]={'document':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x1c7)]?.[_0x3f8174(0x1df)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x19c)]?.[_0x3f8174(0x1df)]},'files':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x1f8)]?.[_0x3f8174(0x1df)]},'sources':this[_0x3f8174(0x223)]()},this[_0x3f8174(0x1bb)](_0x3f8174(0x1ca),{'options':this[_0x3f8174(0x20d)]});}[_0x5a8d72(0x223)](){const _0x4278f9=_0x5a8d72;return this[_0x4278f9(0x1f3)]?.[_0x4278f9(0x206)]?.[_0x4278f9(0x1d4)](_0x16a543=>({..._0x16a543,'resources':[]}))??[];}[_0x5a8d72(0x1de)](){const _0x55e094=_0x5a8d72,_0x3e05d8=this[_0x55e094(0x1f0)]()||this[_0x55e094(0x1f5)]();this[_0x55e094(0x20d)][_0x55e094(0x1c7)][_0x55e094(0x208)]=_0x3e05d8,this[_0x55e094(0x1bb)](_0x55e094(0x1ca),{'options':this[_0x55e094(0x20d)]});}[_0x5a8d72(0x1ff)](_0x52fb2b){const _0x4b9c02=_0x5a8d72;for(const _0x3dc8e3 of this[_0x4b9c02(0x211)][_0x4b9c02(0x202)]())if(_0x3dc8e3[_0x4b9c02(0x215)]===_0x52fb2b)return!0x0;for(const _0x6765d3 of this[_0x4b9c02(0x1b6)][_0x4b9c02(0x202)]())if(_0x6765d3[_0x4b9c02(0x215)]===_0x52fb2b)return!0x0;return!0x1;}[_0x5a8d72(0x19d)](_0x46d1c1){const _0x105879=_0x5a8d72,_0x529af5=[];for(const _0x1d7af2 of this[_0x105879(0x20d)][_0x105879(0x206)]){_0x1d7af2[_0x105879(0x1dc)][_0x105879(0x1f9)](_0x5eb36c=>_0x5eb36c['id']===_0x46d1c1)&&_0x529af5[_0x105879(0x1f2)](_0x1d7af2['id']);}return 0x0===_0x529af5[_0x105879(0x1e6)]?null:_0x529af5;}[_0x5a8d72(0x1dd)](_0x5d886d,_0x3a5652,_0x24bdc1){const _0x3f2e9d=_0x5a8d72,_0x16005d=this[_0x3f2e9d(0x20d)][_0x3f2e9d(0x206)][_0x3f2e9d(0x1f9)](_0x3a71af=>_0x3a71af['id']===_0x5d886d);if(!_0x16005d)return;const _0x545161=_0x16005d[_0x3f2e9d(0x1dc)][_0x3f2e9d(0x1f9)](_0x1d7456=>_0x1d7456['id']===_0x3a5652);_0x545161&&(_0x545161[_0x3f2e9d(0x209)]=_0x24bdc1,this[_0x3f2e9d(0x1bb)](_0x3f2e9d(0x1ae),{'sourceId':_0x5d886d,'resourceId':_0x3a5652,'isInContext':_0x24bdc1}));}[_0x5a8d72(0x201)](_0xb6783f){const _0x1fbe11=_0x5a8d72;this[_0x1fbe11(0x1a4)][_0x1fbe11(0x1f4)](_0xb6783f,!0x0),this[_0x1fbe11(0x1a4)][_0x1fbe11(0x1cb)]&&this[_0x1fbe11(0x1bb)](_0x1fbe11(0x1fc),{'isUploadInProgress':!0x0});}[_0x5a8d72(0x204)](_0x107010){const _0x1c5ec6=_0x5a8d72;this[_0x1c5ec6(0x1a4)][_0x1c5ec6(0x19e)](_0x107010),0x0===this[_0x1c5ec6(0x1a4)][_0x1c5ec6(0x1cb)]&&this[_0x1c5ec6(0x1bb)](_0x1c5ec6(0x1fc),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5d35bb=_0x4108;(function(_0x30aff0,_0x346f96){const _0x5059b2=_0x4108,_0x446833=_0x30aff0();while(!![]){try{const _0x518f28=-parseInt(_0x5059b2(0x22a))/0x1*(-parseInt(_0x5059b2(0x216))/0x2)+-parseInt(_0x5059b2(0x1ff))/0x3+parseInt(_0x5059b2(0x1f1))/0x4*(parseInt(_0x5059b2(0x242))/0x5)+parseInt(_0x5059b2(0x23e))/0x6+parseInt(_0x5059b2(0x227))/0x7+parseInt(_0x5059b2(0x213))/0x8+-parseInt(_0x5059b2(0x215))/0x9*(parseInt(_0x5059b2(0x22b))/0xa);if(_0x518f28===_0x346f96)break;else _0x446833['push'](_0x446833['shift']());}catch(_0xfa7766){_0x446833['push'](_0x446833['shift']());}}}(_0x36d4,0x5d069));import{CKEditorError as _0x3300af,EmitterMixin as _0x552bcd,logWarning as _0x4e7658}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3b86b1}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x48455b,AI_CONTEXT_MODEL_EVENT_NAMES as _0xf5b5ec}from'./aichatcontext.js';import{AICapabilities as _0x323252,CAPABILITIES_MODEL_EVENT_NAMES as _0x4a513c}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x25023b}from'./aichatinteraction.js';function _0x4108(_0x27cb61,_0x470305){const _0x36d475=_0x36d4();return _0x4108=function(_0x4108bb,_0x4fcaa0){_0x4108bb=_0x4108bb-0x1d5;let _0x264f16=_0x36d475[_0x4108bb];return _0x264f16;},_0x4108(_0x27cb61,_0x470305);}function _0x36d4(){const _0x360f28=['user','addResourceToContext','destroy','assistant','toggleReasoning','chatModels','_extractContextItems','modelSelected','attributes','splice','updateCurrentDocumentInContext','toggleWebSearch','contextItems','appendContent','push','toLowerCase','title','ai-chat-conversation-init-from-id-failed','quickActionData','webSearch','prompt','fetchConversation','selectedModelId','interactions','getModel','ai-chat-handle-user-interaction-already-in-progress','length','conversationInitialized','fire','removeSelectionFromContext','type','isSelectionInContext','4FvsLUz','load','getInteraction','getPendingContextItems','conversationId','text','getCurrentDocumentContext','addSelectionToContext','ai-chat-conversation-already-started','model','capabilities','startConversation','updateCurrentDocument','getAll','1318431orBYgT','createReply','sessionId','getMessages','removeFromContext','getConversation','stack','role','getEditor','handleUserInteraction','ai-chat-conversation-set-model-null','hasOwn','message','delegate','stop','lastInteraction','content','loadSourceResources','isCurrentDocumentInConversation','getCapabilitiesConfig','3530352ltwsVb','addToConversationContext','9963621dksvjR','12hGxEev','createInteraction','selectedModel','addUrlToContext','ai-chat-conversation-init-failed','reasoning','group','populateFromMessage','ai-chat-conversation-start-failed','find','setConversationTitle','setModel','ai-chat-conversation-start-no-model-selected','currentReply','getDocumentContext','addCurrentDocumentToContext','indexOf','2989812KTmbYy','isAvailable','_processMessagesToInteractions','13277kQLDum','10hzbqjT','start','isStarted','error','connector','text-delta','addFilesToContext','currentInteraction','getAvailableModels','options','interactionCreated','conversationStarted','modification-delta','chatCapabilities','set','reset','removeInteraction','ai-chat-conversation-set-model-not-available','init','1314504zdGqtU','isCurrentDocumentInContext','fetchConversationMessages','chatContext','3802115kIPJqF','ai-chat-handle-user-conversation-not-initialized'];_0x36d4=function(){return _0x360f28;};return _0x36d4();}export class AIChatConversation extends _0x552bcd(){['id'];[_0x5d35bb(0x22d)]=!0x1;[_0x5d35bb(0x1e8)]=[];[_0x5d35bb(0x232)];[_0x5d35bb(0x218)];[_0x5d35bb(0x22f)];[_0x5d35bb(0x234)];constructor(_0x18f98d){const _0x22b091=_0x5d35bb;super(),this[_0x22b091(0x234)]=_0x18f98d,this[_0x22b091(0x22f)]=_0x18f98d[_0x22b091(0x22f)],this[_0x22b091(0x1d6)]=_0x18f98d[_0x22b091(0x1d6)],this['id']=_0x18f98d[_0x22b091(0x1f5)];}async[_0x5d35bb(0x23d)](_0x414b11){const _0x15db03=_0x5d35bb;try{this[_0x15db03(0x241)]=new _0x48455b({'connector':this[_0x15db03(0x22f)],'config':_0x414b11,'ownerId':this['id']}),this[_0x15db03(0x241)][_0x15db03(0x20c)](..._0xf5b5ec)['to'](this),this[_0x15db03(0x241)][_0x15db03(0x23d)](),this[_0x15db03(0x238)]=new _0x323252(),this[_0x15db03(0x238)][_0x15db03(0x20c)](..._0x4a513c)['to'](this),this[_0x15db03(0x238)][_0x15db03(0x23d)]();const _0x5f2c67=await this[_0x15db03(0x1d6)][_0x15db03(0x233)]();this[_0x15db03(0x1ed)](_0x15db03(0x1ec),{'availableModels':_0x5f2c67});const _0x41c2e1=await this[_0x15db03(0x1d6)][_0x15db03(0x1e9)](this[_0x15db03(0x234)][_0x15db03(0x1e7)]);_0x41c2e1&&await this[_0x15db03(0x221)](_0x41c2e1);}catch(_0x4e0c35){const _0x211198=new _0x3300af(_0x15db03(0x21a),null,{'message':_0x4e0c35[_0x15db03(0x20b)]});_0x211198[_0x15db03(0x205)]=_0x4e0c35[_0x15db03(0x205)],this[_0x15db03(0x1ed)](_0x15db03(0x22e),{'error':_0x211198});}}async[_0x5d35bb(0x22c)](){const _0x3ab90a=_0x5d35bb;if(this[_0x3ab90a(0x22d)])throw new _0x3300af(_0x3ab90a(0x1f9),null,{'conversation':this});if(!this[_0x3ab90a(0x218)])throw new _0x3300af(_0x3ab90a(0x222),null,{'conversation':this});try{const {id:_0x33810a}=await this[_0x3ab90a(0x22f)][_0x3ab90a(0x1fc)](this['id'],this[_0x3ab90a(0x234)][_0x3ab90a(0x21c)])[_0x3ab90a(0x204)]();this['id']=_0x33810a,this[_0x3ab90a(0x22d)]=!0x0,this[_0x3ab90a(0x1ed)](_0x3ab90a(0x236),{'conversationId':this['id'],'selectedModel':this[_0x3ab90a(0x218)]});}catch(_0x4c94ff){const _0x3e59de=new _0x3300af(_0x3ab90a(0x21e),null,{'message':_0x4c94ff[_0x3ab90a(0x20b)]});_0x3e59de[_0x3ab90a(0x205)]=_0x4c94ff[_0x3ab90a(0x205)],this[_0x3ab90a(0x1ed)](_0x3ab90a(0x22e),{'error':_0x3e59de});}}async[_0x5d35bb(0x1f2)](_0x36c71c,_0x47b183){const _0x26e0e1=_0x5d35bb;try{const _0x45487c=await this[_0x26e0e1(0x22f)][_0x26e0e1(0x1e6)](_0x36c71c)[_0x26e0e1(0x204)](),_0x341506=await this[_0x26e0e1(0x22f)][_0x26e0e1(0x240)](_0x36c71c)[_0x26e0e1(0x202)](),_0x33ba6c=_0x341506[0x0][_0x26e0e1(0x1fa)];this[_0x26e0e1(0x22d)]=!0x0,this['id']=_0x45487c['id'],_0x26e0e1(0x1e1)in _0x45487c?this[_0x26e0e1(0x1ed)](_0x26e0e1(0x220),_0x45487c[_0x26e0e1(0x1e1)],!0x0):this[_0x26e0e1(0x1ed)](_0x26e0e1(0x220),'',!0x0);const _0x48e1a1=(await this[_0x26e0e1(0x1d6)][_0x26e0e1(0x1fe)]())[_0x26e0e1(0x21f)](_0x372d91=>_0x372d91['id'][_0x26e0e1(0x1e0)]()===_0x33ba6c[_0x26e0e1(0x1e0)]());return this[_0x26e0e1(0x218)]=_0x48e1a1,this[_0x26e0e1(0x1ed)](_0x26e0e1(0x1d8),{'selectedModel':_0x48e1a1,'isDisabled':!0x0}),await this[_0x26e0e1(0x229)](_0x341506,_0x47b183,_0x33ba6c),this[_0x26e0e1(0x232)]=void 0x0,this;}catch(_0x560ced){const _0x444f2e=new _0x3300af(_0x26e0e1(0x1e2),null,{'message':_0x560ced[_0x26e0e1(0x20b)],'conversationId':_0x36c71c});throw _0x444f2e[_0x26e0e1(0x205)]=_0x560ced[_0x26e0e1(0x205)],this[_0x26e0e1(0x1ed)](_0x26e0e1(0x22e),{'error':_0x444f2e}),_0x444f2e;}}async[_0x5d35bb(0x229)](_0x4a495f,_0x53e0b9,_0x30714e){const _0x36f756=_0x5d35bb;let _0xe2ec0a;for(const _0x5df7b4 of _0x4a495f)if(_0x36f756(0x244)===_0x5df7b4[_0x36f756(0x206)]){const _0x178eac=await this[_0x36f756(0x1d7)](_0x5df7b4),_0x54a69c={'isReasoningEnabled':Object[_0x36f756(0x20a)](_0x5df7b4[_0x36f756(0x1fb)],_0x36f756(0x21b)),'isWebSearchEnabled':Object[_0x36f756(0x20a)](_0x5df7b4[_0x36f756(0x1fb)],_0x36f756(0x1e4))};_0xe2ec0a=this[_0x36f756(0x217)]({'userMessage':_0x5df7b4[_0x36f756(0x1e5)],'contextItems':_0x178eac,'capabilities':_0x54a69c,'modelId':_0x30714e,'quickActionData':_0x5df7b4[_0x36f756(0x1d9)]?.[_0x36f756(0x1e3)]}),this[_0x36f756(0x232)]=_0xe2ec0a,this[_0x36f756(0x241)][_0x36f756(0x214)](this[_0x36f756(0x232)][_0x36f756(0x1dd)]);}else{if(_0x36f756(0x247)===_0x5df7b4[_0x36f756(0x206)]&&_0xe2ec0a)for(const _0x32daea of _0x5df7b4[_0x36f756(0x20f)]){const _0x26bf36=_0x36f756(0x1f6)===_0x32daea[_0x36f756(0x1ef)]?_0x36f756(0x230):_0x36f756(0x237),_0x3296cd=_0xe2ec0a[_0x36f756(0x224)]()?.[_0x36f756(0x201)]!==_0x53e0b9;_0xe2ec0a[_0x36f756(0x223)]=_0xe2ec0a[_0x36f756(0x200)]({'type':_0x26bf36,'isDone':!0x0,'interactionId':_0xe2ec0a['id'],'areActionsDisabled':_0x3296cd}),_0xe2ec0a[_0x36f756(0x223)][_0x36f756(0x1de)](_0x32daea[_0x36f756(0x20f)]);}}}async[_0x5d35bb(0x1d7)](_0x55963b){const _0x1aa94b=_0x5d35bb,_0x12e3d4=new Map();if(!_0x55963b[_0x1aa94b(0x20f)])return _0x12e3d4;for(const _0x578431 of _0x55963b[_0x1aa94b(0x20f)]){const _0x47df96=await this[_0x1aa94b(0x241)][_0x1aa94b(0x21d)](_0x578431);_0x47df96&&_0x12e3d4[_0x1aa94b(0x239)](_0x47df96['id'],_0x47df96);}return _0x12e3d4;}async[_0x5d35bb(0x208)]({userMessage:_0x10a9e1,quickActionData:_0x2b73fc}){const _0x4e1ca0=_0x5d35bb;if(!this[_0x4e1ca0(0x22d)])throw new _0x3300af(_0x4e1ca0(0x243),null,{'conversation':this});if(this[_0x4e1ca0(0x232)])throw new _0x3300af(_0x4e1ca0(0x1ea),null,{'conversation':this});try{const _0x49cdc6=this[_0x4e1ca0(0x241)][_0x4e1ca0(0x1f4)](),_0x2c8a44=this[_0x4e1ca0(0x238)][_0x4e1ca0(0x212)](),_0xe84670=this[_0x4e1ca0(0x218)]['id'];this[_0x4e1ca0(0x232)]=this[_0x4e1ca0(0x217)]({'userMessage':_0x10a9e1,'contextItems':_0x49cdc6,'capabilities':_0x2c8a44,'modelId':_0xe84670,'quickActionData':_0x2b73fc}),await this[_0x4e1ca0(0x232)][_0x4e1ca0(0x22c)](),this[_0x4e1ca0(0x241)][_0x4e1ca0(0x214)](this[_0x4e1ca0(0x232)][_0x4e1ca0(0x1dd)]);}catch(_0x41ee3a){this[_0x4e1ca0(0x1ed)](_0x4e1ca0(0x22e),{'interactionId':this[_0x4e1ca0(0x232)]?this[_0x4e1ca0(0x232)]['id']:void 0x0,'error':_0x41ee3a});}finally{this[_0x4e1ca0(0x232)]?.[_0x4e1ca0(0x20d)](),this[_0x4e1ca0(0x232)]=void 0x0;}}[_0x5d35bb(0x217)]({userMessage:_0x200ffc,contextItems:_0x325e04,capabilities:_0x112657,modelId:_0x50cfc5,quickActionData:_0xacbfd2}){const _0x4ba607=_0x5d35bb,_0x185a70=new _0x25023b({'userMessage':_0x200ffc,'contextItems':_0x325e04,'capabilities':_0x112657,'conversationId':this['id'],'connector':this[_0x4ba607(0x22f)],'editor':this[_0x4ba607(0x234)][_0x4ba607(0x207)]&&this[_0x4ba607(0x234)][_0x4ba607(0x207)](),'model':_0x50cfc5,'quickActionData':_0xacbfd2});return _0x185a70[_0x4ba607(0x20c)](..._0x3b86b1)['to'](this),this[_0x4ba607(0x1e8)][_0x4ba607(0x1df)](_0x185a70),this[_0x4ba607(0x1ed)](_0x4ba607(0x235),_0x185a70),_0x185a70;}[_0x5d35bb(0x1f3)](_0xdd2eae){const _0x5a0073=_0x5d35bb;return this[_0x5a0073(0x1e8)][_0x5a0073(0x21f)](_0x202802=>_0x202802['id']===_0xdd2eae);}[_0x5d35bb(0x23b)](_0x33d6c9){const _0x454a9b=_0x5d35bb,_0x2237e1=this[_0x454a9b(0x1f3)](_0x33d6c9);_0x2237e1&&(_0x2237e1[_0x454a9b(0x246)](),this[_0x454a9b(0x1e8)][_0x454a9b(0x1da)](this[_0x454a9b(0x1e8)][_0x454a9b(0x226)](_0x2237e1),0x1));}get[_0x5d35bb(0x20e)](){const _0x47d521=_0x5d35bb;return this[_0x47d521(0x1e8)][this[_0x47d521(0x1e8)][_0x47d521(0x1eb)]-0x1];}[_0x5d35bb(0x225)](_0x9d1b9){const _0x4dfdcc=_0x5d35bb;this[_0x4dfdcc(0x241)][_0x4dfdcc(0x225)](_0x9d1b9);}async[_0x5d35bb(0x1db)]({content:_0x526df1,version:_0x56b86a,sessionId:_0x376167,selections:_0x17a598}){const _0x3e8fb7=_0x5d35bb;await this[_0x3e8fb7(0x241)][_0x3e8fb7(0x1fd)](_0x526df1,_0x56b86a,_0x376167,_0x17a598);}[_0x5d35bb(0x1f7)](){const _0x3b1e58=_0x5d35bb;return this[_0x3b1e58(0x232)]?.[_0x3b1e58(0x224)]()?.[_0x3b1e58(0x20f)]||'';}[_0x5d35bb(0x1f8)](_0x387763){const _0x3e24cd=_0x5d35bb;this[_0x3e24cd(0x241)][_0x3e24cd(0x1f8)](_0x387763);}[_0x5d35bb(0x1ee)](){const _0x40f1f5=_0x5d35bb;this[_0x40f1f5(0x241)][_0x40f1f5(0x1ee)]();}[_0x5d35bb(0x231)](_0x170bc4){const _0x51e298=_0x5d35bb;this[_0x51e298(0x241)][_0x51e298(0x231)](_0x170bc4);}[_0x5d35bb(0x219)](_0x44f123){const _0x27f3ba=_0x5d35bb;this[_0x27f3ba(0x241)][_0x27f3ba(0x219)](_0x44f123);}[_0x5d35bb(0x245)](_0x559d7c,_0x14c6da){const _0x182730=_0x5d35bb;this[_0x182730(0x241)][_0x182730(0x245)](_0x559d7c,_0x14c6da);}[_0x5d35bb(0x210)](_0x4bfd2e,_0x348931,_0x5b2caf){const _0x5a9940=_0x5d35bb;return this[_0x5a9940(0x241)][_0x5a9940(0x210)](_0x4bfd2e,_0x348931,_0x5b2caf);}[_0x5d35bb(0x203)](_0x3c14c9){const _0xd1e15=_0x5d35bb;this[_0xd1e15(0x241)][_0xd1e15(0x203)](_0x3c14c9);}[_0x5d35bb(0x1dc)](){const _0x311bc7=_0x5d35bb;this[_0x311bc7(0x238)][_0x311bc7(0x1dc)]();}[_0x5d35bb(0x1d5)](){const _0xbf79d9=_0x5d35bb;this[_0xbf79d9(0x238)][_0xbf79d9(0x1d5)]();}[_0x5d35bb(0x23f)](){const _0x57007c=_0x5d35bb;return this[_0x57007c(0x241)][_0x57007c(0x23f)]();}[_0x5d35bb(0x211)](){const _0x41ad9a=_0x5d35bb;return this[_0x41ad9a(0x241)][_0x41ad9a(0x211)]();}[_0x5d35bb(0x1f0)](){const _0x564b50=_0x5d35bb;return this[_0x564b50(0x241)][_0x564b50(0x1f0)]();}async[_0x5d35bb(0x221)](_0x4e7125){const _0x391683=_0x5d35bb;_0x4e7125?!0x1===await this[_0x391683(0x1d6)][_0x391683(0x228)](_0x4e7125)&&(_0x4e7658(_0x391683(0x23c),{'conversation':this,'model':_0x4e7125}),_0x4e7125=(await this[_0x391683(0x1d6)][_0x391683(0x233)]())[0x0]):(_0x4e7658(_0x391683(0x209),{'conversation':this}),_0x4e7125=(await this[_0x391683(0x1d6)][_0x391683(0x233)]())[0x0]),_0x4e7125['id']!==this[_0x391683(0x218)]?.['id']&&(this[_0x391683(0x218)]=_0x4e7125,this[_0x391683(0x238)][_0x391683(0x23a)](),this[_0x391683(0x1ed)](_0x391683(0x1d8),{'selectedModel':_0x4e7125}));}}
|
|
23
|
+
const _0xf61193=_0x3497;(function(_0x44eea2,_0xab784f){const _0x273089=_0x3497,_0x2b7738=_0x44eea2();while(!![]){try{const _0x52d6cb=parseInt(_0x273089(0x11c))/0x1*(-parseInt(_0x273089(0xe0))/0x2)+parseInt(_0x273089(0x11b))/0x3*(-parseInt(_0x273089(0x12c))/0x4)+parseInt(_0x273089(0x106))/0x5+-parseInt(_0x273089(0xcb))/0x6+-parseInt(_0x273089(0x10b))/0x7+parseInt(_0x273089(0xfe))/0x8+parseInt(_0x273089(0xed))/0x9*(parseInt(_0x273089(0x102))/0xa);if(_0x52d6cb===_0xab784f)break;else _0x2b7738['push'](_0x2b7738['shift']());}catch(_0x5554cd){_0x2b7738['push'](_0x2b7738['shift']());}}}(_0x26a7,0x3e873));import{CKEditorError as _0x3453c9,EmitterMixin as _0xdde8a,logWarning as _0x42a3fd}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3e2df2}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x214691,AI_CONTEXT_MODEL_EVENT_NAMES as _0x3c8072}from'./aichatcontext.js';import{AICapabilities as _0x5350e3,CAPABILITIES_MODEL_EVENT_NAMES as _0x28227e}from'../../aicore/model/aicapabilities.js';function _0x26a7(){const _0x28a241=['interactionCreated','isStarted','ai-chat-conversation-start-failed','init','removeFromContext','isAvailable','54otNFDc','117357ZMjYaJ','type','isCurrentDocumentInContext','set','destroy','ai-chat-handle-user-interaction-already-in-progress','attributes','group','appendContent','indexOf','setModel','getConversation','delegate','start','contextItems','addFilesToContext','20576DaUYez','model','setConversationTitle','error','push','getModel','ai-chat-conversation-init-failed','ai-chat-conversation-already-started','conversationInitialized','prompt','startConversation','_processMessagesToInteractions','isSelectionInContext','sessionId','ai-chat-conversation-init-from-id-failed','createReply','selectedModel','webSearch','2759010KttpWF','removeSelectionFromContext','reset','getCapabilitiesConfig','getAvailableModels','text','content','fire','addSelectionToContext','reasoning','addResourceToContext','lastInteraction','populateFromMessage','getCurrentDocumentContext','currentInteraction','updateCurrentDocument','interactions','ai-chat-conversation-set-model-not-available','splice','removeInteraction','connector','2IPGObA','chatModels','getPendingContextItems','getAll','options','isCurrentDocumentInConversation','addCurrentDocumentToContext','getEditor','modelSelected','quickActionData','getInteraction','chatCapabilities','ai-chat-conversation-set-model-null','36byUocw','ai-chat-handle-user-conversation-not-initialized','fetchConversationMessages','length','conversationId','_extractContextItems','toggleWebSearch','capabilities','fetchConversation','addUrlToContext','selectedModelId','role','assistant','load','toLowerCase','modification-delta','hasOwn','2938992JwvTem','getDocumentContext','currentReply','find','1861490SFOzEw','loadSourceResources','text-delta','addToConversationContext','839860zfoLAB','ai-chat-conversation-start-no-model-selected','message','createInteraction','updateCurrentDocumentInContext','2478301QLbwQy','stack','chatContext','conversationStarted','handleUserInteraction','stop','toggleReasoning','title','getMessages','user'];_0x26a7=function(){return _0x28a241;};return _0x26a7();}function _0x3497(_0x5ca5d3,_0xe8209f){const _0x26a7e6=_0x26a7();return _0x3497=function(_0x349710,_0x3a6e9d){_0x349710=_0x349710-0xc3;let _0x21255c=_0x26a7e6[_0x349710];return _0x21255c;},_0x3497(_0x5ca5d3,_0xe8209f);}import{AIChatInteraction as _0x41d256}from'./aichatinteraction.js';export class AIChatConversation extends _0xdde8a(){['id'];[_0xf61193(0x116)]=!0x1;[_0xf61193(0xdb)]=[];[_0xf61193(0xd9)];[_0xf61193(0xc9)];[_0xf61193(0xdf)];[_0xf61193(0xe4)];constructor(_0x1590c3){const _0x274d57=_0xf61193;super(),this[_0x274d57(0xe4)]=_0x1590c3,this[_0x274d57(0xdf)]=_0x1590c3[_0x274d57(0xdf)],this[_0x274d57(0xe1)]=_0x1590c3[_0x274d57(0xe1)],this['id']=_0x1590c3[_0x274d57(0xf1)];}async[_0xf61193(0x118)](_0x29c73e){const _0x9c9ecd=_0xf61193;try{this[_0x9c9ecd(0x10d)]=new _0x214691({'connector':this[_0x9c9ecd(0xdf)],'config':_0x29c73e,'ownerId':this['id']}),this[_0x9c9ecd(0x10d)][_0x9c9ecd(0x128)](..._0x3c8072)['to'](this),this[_0x9c9ecd(0x10d)][_0x9c9ecd(0x118)](),this[_0x9c9ecd(0xeb)]=new _0x5350e3(),this[_0x9c9ecd(0xeb)][_0x9c9ecd(0x128)](..._0x28227e)['to'](this),this[_0x9c9ecd(0xeb)][_0x9c9ecd(0x118)]();const _0x2944b8=await this[_0x9c9ecd(0xe1)][_0x9c9ecd(0xcf)]();this[_0x9c9ecd(0xd2)](_0x9c9ecd(0x134),{'availableModels':_0x2944b8});const _0x4cbeed=await this[_0x9c9ecd(0xe1)][_0x9c9ecd(0x131)](this[_0x9c9ecd(0xe4)][_0x9c9ecd(0xf7)]);_0x4cbeed&&await this[_0x9c9ecd(0x126)](_0x4cbeed);}catch(_0x159b9d){const _0x47d2e2=new _0x3453c9(_0x9c9ecd(0x132),null,{'message':_0x159b9d[_0x9c9ecd(0x108)]});_0x47d2e2[_0x9c9ecd(0x10c)]=_0x159b9d[_0x9c9ecd(0x10c)],this[_0x9c9ecd(0xd2)](_0x9c9ecd(0x12f),{'error':_0x47d2e2});}}async[_0xf61193(0x129)](){const _0x73e7c7=_0xf61193;if(this[_0x73e7c7(0x116)])throw new _0x3453c9(_0x73e7c7(0x133),null,{'conversation':this});if(!this[_0x73e7c7(0xc9)])throw new _0x3453c9(_0x73e7c7(0x107),null,{'conversation':this});try{const {id:_0x534c10}=await this[_0x73e7c7(0xdf)][_0x73e7c7(0xc3)](this['id'],this[_0x73e7c7(0xe4)][_0x73e7c7(0x123)])[_0x73e7c7(0x127)]();this['id']=_0x534c10,this[_0x73e7c7(0x116)]=!0x0,this[_0x73e7c7(0xd2)](_0x73e7c7(0x10e),{'conversationId':this['id'],'selectedModel':this[_0x73e7c7(0xc9)]});}catch(_0x5e451d){const _0x5bb3e9=new _0x3453c9(_0x73e7c7(0x117),null,{'message':_0x5e451d[_0x73e7c7(0x108)]});_0x5bb3e9[_0x73e7c7(0x10c)]=_0x5e451d[_0x73e7c7(0x10c)],this[_0x73e7c7(0xd2)](_0x73e7c7(0x12f),{'error':_0x5bb3e9});}}async[_0xf61193(0xfa)](_0x35a156,_0x1abfe0){const _0x771a2=_0xf61193;try{const _0x15f70c=await this[_0x771a2(0xdf)][_0x771a2(0xf5)](_0x35a156)[_0x771a2(0x127)](),_0x3368a1=await this[_0x771a2(0xdf)][_0x771a2(0xef)](_0x35a156)[_0x771a2(0x113)](),_0x21a20d=_0x3368a1[0x0][_0x771a2(0x12d)];this[_0x771a2(0x116)]=!0x0,this['id']=_0x15f70c['id'],_0x771a2(0x112)in _0x15f70c?this[_0x771a2(0xd2)](_0x771a2(0x12e),_0x15f70c[_0x771a2(0x112)],!0x0):this[_0x771a2(0xd2)](_0x771a2(0x12e),'',!0x0);const _0x387bee=(await this[_0x771a2(0xe1)][_0x771a2(0xe3)]())[_0x771a2(0x101)](_0x706b8e=>_0x706b8e['id'][_0x771a2(0xfb)]()===_0x21a20d[_0x771a2(0xfb)]());return this[_0x771a2(0xc9)]=_0x387bee,this[_0x771a2(0xd2)](_0x771a2(0xe8),{'selectedModel':_0x387bee,'isDisabled':!0x0}),await this[_0x771a2(0xc4)](_0x3368a1,_0x1abfe0,_0x21a20d),this[_0x771a2(0xd9)]=void 0x0,this;}catch(_0x5f5516){const _0x4edf72=new _0x3453c9(_0x771a2(0xc7),null,{'message':_0x5f5516[_0x771a2(0x108)],'conversationId':_0x35a156});throw _0x4edf72[_0x771a2(0x10c)]=_0x5f5516[_0x771a2(0x10c)],this[_0x771a2(0xd2)](_0x771a2(0x12f),{'error':_0x4edf72}),_0x4edf72;}}async[_0xf61193(0xc4)](_0x2b822f,_0x140352,_0x39c0bc){const _0x3dcc7a=_0xf61193;let _0x4f999c;for(const _0x44a53b of _0x2b822f)if(_0x3dcc7a(0x114)===_0x44a53b[_0x3dcc7a(0xf8)]){const _0x96ba52=await this[_0x3dcc7a(0xf2)](_0x44a53b),_0x1d273a={'isReasoningEnabled':Object[_0x3dcc7a(0xfd)](_0x44a53b[_0x3dcc7a(0xf4)],_0x3dcc7a(0xd4)),'isWebSearchEnabled':Object[_0x3dcc7a(0xfd)](_0x44a53b[_0x3dcc7a(0xf4)],_0x3dcc7a(0xca))};_0x4f999c=this[_0x3dcc7a(0x109)]({'userMessage':_0x44a53b[_0x3dcc7a(0x135)],'contextItems':_0x96ba52,'capabilities':_0x1d273a,'modelId':_0x39c0bc,'quickActionData':_0x44a53b[_0x3dcc7a(0x122)]?.[_0x3dcc7a(0xe9)]}),this[_0x3dcc7a(0xd9)]=_0x4f999c,this[_0x3dcc7a(0x10d)][_0x3dcc7a(0x105)](this[_0x3dcc7a(0xd9)][_0x3dcc7a(0x12a)]);}else{if(_0x3dcc7a(0xf9)===_0x44a53b[_0x3dcc7a(0xf8)]&&_0x4f999c)for(const _0x10c397 of _0x44a53b[_0x3dcc7a(0xd1)]){const _0x5acd03=_0x3dcc7a(0xd0)===_0x10c397[_0x3dcc7a(0x11d)]?_0x3dcc7a(0x104):_0x3dcc7a(0xfc),_0x32103e=_0x4f999c[_0x3dcc7a(0xff)]()?.[_0x3dcc7a(0xc6)]!==_0x140352;_0x4f999c[_0x3dcc7a(0x100)]=_0x4f999c[_0x3dcc7a(0xc8)]({'type':_0x5acd03,'isDone':!0x0,'interactionId':_0x4f999c['id'],'areActionsDisabled':_0x32103e}),_0x4f999c[_0x3dcc7a(0x100)][_0x3dcc7a(0x124)](_0x10c397[_0x3dcc7a(0xd1)]);}}}async[_0xf61193(0xf2)](_0x1dde87){const _0x41a543=_0xf61193,_0x1a6bad=new Map();if(!_0x1dde87[_0x41a543(0xd1)])return _0x1a6bad;for(const _0x100660 of _0x1dde87[_0x41a543(0xd1)]){const _0x36c86b=await this[_0x41a543(0x10d)][_0x41a543(0xd7)](_0x100660);_0x36c86b&&_0x1a6bad[_0x41a543(0x11f)](_0x36c86b['id'],_0x36c86b);}return _0x1a6bad;}async[_0xf61193(0x10f)]({userMessage:_0x555a53,quickActionData:_0x3b2ea9}){const _0x34cbe9=_0xf61193;if(!this[_0x34cbe9(0x116)])throw new _0x3453c9(_0x34cbe9(0xee),null,{'conversation':this});if(this[_0x34cbe9(0xd9)])throw new _0x3453c9(_0x34cbe9(0x121),null,{'conversation':this});try{const _0x5702af=this[_0x34cbe9(0x10d)][_0x34cbe9(0xe2)](),_0x222535=this[_0x34cbe9(0xeb)][_0x34cbe9(0xce)](),_0x4afdcc=this[_0x34cbe9(0xc9)]['id'];this[_0x34cbe9(0xd9)]=this[_0x34cbe9(0x109)]({'userMessage':_0x555a53,'contextItems':_0x5702af,'capabilities':_0x222535,'modelId':_0x4afdcc,'quickActionData':_0x3b2ea9}),await this[_0x34cbe9(0xd9)][_0x34cbe9(0x129)](),this[_0x34cbe9(0x10d)][_0x34cbe9(0x105)](this[_0x34cbe9(0xd9)][_0x34cbe9(0x12a)]);}catch(_0x459b1a){this[_0x34cbe9(0xd2)](_0x34cbe9(0x12f),{'interactionId':this[_0x34cbe9(0xd9)]?this[_0x34cbe9(0xd9)]['id']:void 0x0,'error':_0x459b1a});}finally{this[_0x34cbe9(0xd9)]?.[_0x34cbe9(0x110)](),this[_0x34cbe9(0xd9)]=void 0x0;}}[_0xf61193(0x109)]({userMessage:_0x30f8f0,contextItems:_0x20c982,capabilities:_0xa8147b,modelId:_0x34dccc,quickActionData:_0x28735d}){const _0x132ad1=_0xf61193,_0x1b6cb2=new _0x41d256({'userMessage':_0x30f8f0,'contextItems':_0x20c982,'capabilities':_0xa8147b,'conversationId':this['id'],'connector':this[_0x132ad1(0xdf)],'editor':this[_0x132ad1(0xe4)][_0x132ad1(0xe7)]&&this[_0x132ad1(0xe4)][_0x132ad1(0xe7)](),'model':_0x34dccc,'quickActionData':_0x28735d});return _0x1b6cb2[_0x132ad1(0x128)](..._0x3e2df2)['to'](this),this[_0x132ad1(0xdb)][_0x132ad1(0x130)](_0x1b6cb2),this[_0x132ad1(0xd2)](_0x132ad1(0x115),_0x1b6cb2),_0x1b6cb2;}[_0xf61193(0xea)](_0x424a09){const _0x5a0902=_0xf61193;return this[_0x5a0902(0xdb)][_0x5a0902(0x101)](_0x4ded91=>_0x4ded91['id']===_0x424a09);}[_0xf61193(0xde)](_0x39df23){const _0x517705=_0xf61193,_0x24c2b8=this[_0x517705(0xea)](_0x39df23);_0x24c2b8&&(_0x24c2b8[_0x517705(0x120)](),this[_0x517705(0xdb)][_0x517705(0xdd)](this[_0x517705(0xdb)][_0x517705(0x125)](_0x24c2b8),0x1));}get[_0xf61193(0xd6)](){const _0x5a8ac1=_0xf61193;return this[_0x5a8ac1(0xdb)][this[_0x5a8ac1(0xdb)][_0x5a8ac1(0xf0)]-0x1];}[_0xf61193(0xe6)](_0x4e9039){const _0x3744fd=_0xf61193;this[_0x3744fd(0x10d)][_0x3744fd(0xe6)](_0x4e9039);}async[_0xf61193(0x10a)]({content:_0x4c2fff,version:_0x471df9,sessionId:_0xfce82d,selections:_0x2db3c0}){const _0x25d257=_0xf61193;await this[_0x25d257(0x10d)][_0x25d257(0xda)](_0x4c2fff,_0x471df9,_0xfce82d,_0x2db3c0);}[_0xf61193(0xd8)](){const _0x295029=_0xf61193;return this[_0x295029(0xd9)]?.[_0x295029(0xff)]()?.[_0x295029(0xd1)]||'';}[_0xf61193(0xd3)](_0x2013c4){const _0x68cb99=_0xf61193;this[_0x68cb99(0x10d)][_0x68cb99(0xd3)](_0x2013c4);}[_0xf61193(0xcc)](){const _0x23fc38=_0xf61193;this[_0x23fc38(0x10d)][_0x23fc38(0xcc)]();}[_0xf61193(0x12b)](_0x416fdd){const _0x13e7d7=_0xf61193;this[_0x13e7d7(0x10d)][_0x13e7d7(0x12b)](_0x416fdd);}[_0xf61193(0xf6)](_0x1022dd){const _0x2fe86a=_0xf61193;this[_0x2fe86a(0x10d)][_0x2fe86a(0xf6)](_0x1022dd);}[_0xf61193(0xd5)](_0x7ed598,_0x4a43bd){const _0x281d80=_0xf61193;this[_0x281d80(0x10d)][_0x281d80(0xd5)](_0x7ed598,_0x4a43bd);}[_0xf61193(0x103)](_0x35fc15,_0x3f1209,_0x9f1684){const _0xaeff41=_0xf61193;return this[_0xaeff41(0x10d)][_0xaeff41(0x103)](_0x35fc15,_0x3f1209,_0x9f1684);}[_0xf61193(0x119)](_0x3303e2){const _0x42b5b9=_0xf61193;this[_0x42b5b9(0x10d)][_0x42b5b9(0x119)](_0x3303e2);}[_0xf61193(0xf3)](){const _0x5dd75a=_0xf61193;this[_0x5dd75a(0xeb)][_0x5dd75a(0xf3)]();}[_0xf61193(0x111)](){const _0x3d5971=_0xf61193;this[_0x3d5971(0xeb)][_0x3d5971(0x111)]();}[_0xf61193(0x11e)](){const _0x4bc41b=_0xf61193;return this[_0x4bc41b(0x10d)][_0x4bc41b(0x11e)]();}[_0xf61193(0xe5)](){const _0x596896=_0xf61193;return this[_0x596896(0x10d)][_0x596896(0xe5)]();}[_0xf61193(0xc5)](){const _0x63ffbc=_0xf61193;return this[_0x63ffbc(0x10d)][_0x63ffbc(0xc5)]();}async[_0xf61193(0x126)](_0x24e5a7){const _0x5c8b1=_0xf61193;_0x24e5a7?!0x1===await this[_0x5c8b1(0xe1)][_0x5c8b1(0x11a)](_0x24e5a7)&&(_0x42a3fd(_0x5c8b1(0xdc),{'conversation':this,'model':_0x24e5a7}),_0x24e5a7=(await this[_0x5c8b1(0xe1)][_0x5c8b1(0xcf)]())[0x0]):(_0x42a3fd(_0x5c8b1(0xec),{'conversation':this}),_0x24e5a7=(await this[_0x5c8b1(0xe1)][_0x5c8b1(0xcf)]())[0x0]),_0x24e5a7['id']!==this[_0x5c8b1(0xc9)]?.['id']&&(this[_0x5c8b1(0xc9)]=_0x24e5a7,this[_0x5c8b1(0xeb)][_0x5c8b1(0xcd)](),this[_0x5c8b1(0xd2)](_0x5c8b1(0xe8),{'selectedModel':_0x24e5a7}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2f71(_0x3e7852,_0x39198c){var _0x4df20d=_0x4df2();return _0x2f71=function(_0x2f716c,_0x2a4ad7){_0x2f716c=_0x2f716c-0x1db;var _0x5e3279=_0x4df20d[_0x2f716c];return _0x5e3279;},_0x2f71(_0x3e7852,_0x39198c);}function _0x4df2(){var _0x1d659c=['6ndSoUH','contextItems','capabilities','1976592TEqFKN','10480MPkwde','mapContextItemsToRequestData','625696fgKhVL','userMessage','8722240VgRKNs','queryAssistant','get','25415357OoFecE','conversationId','getDocumentContext','12WCASMb','sendRequest','441428iQgACW','current-document','1243932zzxxMJ','5NgpTJF','2871wUwtrQ','connector','quickActionData','model','14bROujp','getCapabilitiesRequestData'];_0x4df2=function(){return _0x1d659c;};return _0x4df2();}var _0x3f2250=_0x2f71;(function(_0x4f8bdb,_0x770bef){var _0x253d97=_0x2f71,_0x2a2d44=_0x4f8bdb();while(!![]){try{var _0x353991=parseInt(_0x253d97(0x1e2))/0x1+parseInt(_0x253d97(0x1ec))/0x2*(parseInt(_0x253d97(0x1e4))/0x3)+parseInt(_0x253d97(0x1f2))/0x4*(-parseInt(_0x253d97(0x1e5))/0x5)+-parseInt(_0x253d97(0x1ef))/0x6*(-parseInt(_0x253d97(0x1ea))/0x7)+parseInt(_0x253d97(0x1f4))/0x8+parseInt(_0x253d97(0x1e6))/0x9*(-parseInt(_0x253d97(0x1f0))/0xa)+parseInt(_0x253d97(0x1dd))/0xb*(-parseInt(_0x253d97(0x1e0))/0xc);if(_0x353991===_0x770bef)break;else _0x2a2d44['push'](_0x2a2d44['shift']());}catch(_0x363d22){_0x2a2d44['push'](_0x2a2d44['shift']());}}}(_0x4df2,0x9a9c1));import{AICapabilities as _0x262fae}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x34dcac}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4d8b77}from'./aichatcontext.js';export class AIChatInteraction extends _0x34dcac{[_0x3f2250(0x1f3)];[_0x3f2250(0x1de)];[_0x3f2250(0x1ed)]=new Map();[_0x3f2250(0x1e9)];[_0x3f2250(0x1e8)];constructor(_0x314197){var _0x35ae52=_0x3f2250;super(_0x314197),this[_0x35ae52(0x1de)]=_0x314197[_0x35ae52(0x1de)],this[_0x35ae52(0x1ed)]=_0x314197[_0x35ae52(0x1ed)],this[_0x35ae52(0x1ee)]=_0x314197[_0x35ae52(0x1ee)],this[_0x35ae52(0x1f3)]=_0x314197[_0x35ae52(0x1f3)],this[_0x35ae52(0x1e9)]=_0x314197[_0x35ae52(0x1e9)],this[_0x35ae52(0x1e8)]=_0x314197[_0x35ae52(0x1e8)];}async[_0x3f2250(0x1e1)](){var _0x195602=_0x3f2250;return this[_0x195602(0x1e7)][_0x195602(0x1db)]({'message':this[_0x195602(0x1f3)],'conversationId':this[_0x195602(0x1de)],'parts':_0x4d8b77[_0x195602(0x1f1)](this[_0x195602(0x1ed)]),'capabilities':_0x262fae[_0x195602(0x1eb)](this[_0x195602(0x1ee)]),'model':this[_0x195602(0x1e9)],'quickActionData':this[_0x195602(0x1e8)]});}[_0x3f2250(0x1df)](){var _0x5568dd=_0x3f2250;return this[_0x5568dd(0x1ed)][_0x5568dd(0x1dc)](_0x5568dd(0x1e3));}}
|