@ckeditor/ckeditor5-ai 47.0.0-alpha.7 → 47.0.0-alpha.9
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 +93 -5
- package/dist/index.css +118 -5
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +0 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +0 -30
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +47 -9
- package/src/aicore/aiconnector.d.ts +2 -3
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -0
- 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.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -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.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -2
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aitrackchanges.css +13 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x465c9f=_0x1403;(function(_0x5365bc,_0x3dc8d2){const _0xb8fc2c=_0x1403,_0x2ef639=_0x5365bc();while(!![]){try{const _0x510358=-parseInt(_0xb8fc2c(0x1a5))/0x1*(parseInt(_0xb8fc2c(0x148))/0x2)+parseInt(_0xb8fc2c(0x239))/0x3+-parseInt(_0xb8fc2c(0x21c))/0x4*(parseInt(_0xb8fc2c(0x15f))/0x5)+-parseInt(_0xb8fc2c(0x103))/0x6*(parseInt(_0xb8fc2c(0x23c))/0x7)+parseInt(_0xb8fc2c(0x167))/0x8*(parseInt(_0xb8fc2c(0xf6))/0x9)+parseInt(_0xb8fc2c(0x210))/0xa*(parseInt(_0xb8fc2c(0x165))/0xb)+parseInt(_0xb8fc2c(0x192))/0xc;if(_0x510358===_0x3dc8d2)break;else _0x2ef639['push'](_0x2ef639['shift']());}catch(_0x38732a){_0x2ef639['push'](_0x2ef639['shift']());}}}(_0x5dd1,0xc1ecd));import{ContextPlugin as _0x431eb1,Editor as _0x413ee5}from'ckeditor5/src/core.js';import{CKEditorError as _0x4f8449,logError as _0x5e1962,scrollViewportToShowTarget as _0x425377,uid as _0x18f48e}from'ckeditor5/src/utils.js';import{AIConnector as _0x3835d3}from'../aicore/aiconnector.js';import{AITabs as _0x351d7e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x3dbaf9}from'./model/aichatconversation.js';import{getTranslation as _0x206cf5}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3d0f78}from'../aicore/aiediting.js';import{AIChatModels as _0x265514}from'./model/aichatmodels.js';import{getEditorFromContext as _0xcf3e41}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x2e3a0e,DATA_ID_MODEL_ATTRIBUTE as _0x37efa2}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x576c10}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4b847d,getMinimalSelection as _0x32f874,getSuggestionPartsFromReply as _0x3f67f2}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x1403(_0x6585cb,_0xd6d152){const _0x5dd1bc=_0x5dd1();return _0x1403=function(_0x14038e,_0x3af8db){_0x14038e=_0x14038e-0xe9;let _0x509db1=_0x5dd1bc[_0x14038e];return _0x509db1;},_0x1403(_0x6585cb,_0xd6d152);}import{ModelRange as _0x5d6e1f,_DetachOperation as _0x3fb93a}from'ckeditor5/src/engine.js';import{findOne as _0x50919c,getAttribute as _0xba5a54,serialize as _0x272331,Document as _0x310a2a,findByAttribute as _0x4920f8}from'../aicore/utils/htmlparser.js';import{IconAI as _0x2c9745}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x2aa5ee}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x575363}from'../aiballoon/aiballoon.js';function _0x5dd1(){const _0x5d461b=['setLoadingMessage','_batchToChanges','getRoot','split','modification-delta','source','change','abortPromptStream','toViewRange','addDocumentToContext','dislike','_toggleWebSearch','673002JANsEz','version','commands','4543GzZXGc','applySuggestion','nextSibling','resources','contextItems','rejectSuggestion','_removeAISelectionMarkers','changes','mouseLeaveSuggestion','init','main','resize','isOpen','interactionFinished','ai-conversation-','stop','current-document','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','markers','replies','getPath','rejected','6034536lTMMwq','pending','addFilesToContext','Failed\x20to\x20load\x20conversation','addSelectionToChatContext','_updateRatings','full','open','view','mapper','_applySuggestion','TrackChangesEditing','config','13866boxGFT','ai-request-aborted','stopListening','removeFromContext','_previewedChangeGroup','AI_CHAT_UNTITLED_CONVERSATION','ai-chat-source-resources-load-failed','_integrateEditor','addFeedItemError','_handleStartConversation','resizeTabs','toLocaleLowerCase','redo','set','setSelectedModel','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','getGroupId','startInteraction','collaboration.channelId','provider','setContextItemLoading','indexes','addContextOptionsChanged','viewRangeToDom','children','isInContext','ai-chat-resource-load-failed','getDiff','from','availableModels','uid','_scrollToSuggestionRange','remove','end','history','_startConversationSafely','_aiConnector','length','new','getRanges','removed','sourcePosition','removeFeedInteraction','setIsMaximized','showFakeVisualSelection','contextItemRemoved','message','ai-chat-context-invalid-data','disableControls','data-id','showNext','interactionCreated','_aiChatModels','removeMarker','resetConversationTitle','AI_CHAT_GENERIC_ERROR','sourceId','get','clearPendingContextUI','updateResourceState','createPositionFromPath','AITabs','type','isLoading','toggleLoadingSkeleton','_aiEditing','_getDocumentRangeForReplyChanges','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','setChangeGroupState','482SUERqJ','load','ai-chat-conversation-init-failed','context','uploadProgressChanged','ai-chat-url-upload-failed','forEach','partIndex','messageId','parse','upsertAIChatRating','populateSourceResourceBalloon','log','sourceResourcesLoaded','isCurrentDocumentInConversation','error','isDocumentOperation','_insertSuggestion','ai-chat-controller-no-active-conversation','ready','updateFeedItemAIReplySuggestionContent','capabilitiesUpdated','resourceId','4928835wBOose','showDiff','ai.chat.context','selection','getAttribute','Undo','341ZrMxkD','baseVersion','16HagWjg','loadConversation','getTransformedByOperation','lastInteraction','data','setConversationTitle','AI_CHAT_RESOURCE_LOAD_FAILED','getSelectionText','getMarkersGroup','activateTab','cloneNode','dialogClosed','sendUserMessage','getReply','addResourceToContext','editing','closeSourceResourceBalloon','sendMessage','streaming','like','AI_CHAT_UNABLE_TO_START_CONVERSATION','AIEditing','indexOf','addContextItem','pluginName','toggleWebSearch','contextItem','name','Liked\x20response','find','AIChatController','isDisabled','isCurrentDocumentInContext','contextItemAdded','accepted','addFileToContext','map','addFeedInteractionHeader','contextItemLoadingEnded','rootName','addOperation','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','addFeedItemAIReply','28262100apzXcM','startConversation','scrollFeedToSuggestion','filter','text-delta','Disliked\x20response','removeContextItem','setModel','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','replyId','clearConversationContextUI','updateContent','getFirstRange','sources','documentContextContent','ai.chat.models.displayedModels','createConversation','_showConversationHistory','createPositionAt','5273uzFnKF','root','toggleSuggestionDisplayMode','isOfficialPlugin','_flushLastInteractionUI','locale','handleUserInteraction','conversationInitialized','_balloonShowDiff','insertSuggestion','getChildAtOffset','chat','isUploadInProgress','updateCurrentDocumentInContext','static','ai-chat-conversation-start-failed','has','add','setConversationContext','model','alignToTop','Showing\x20conversation\x20history...','resourceStateChanged','push','getOperations','resetMessageInput','addFeedItemStaticMessage','listenTo','replyCreated','stopInteraction','replyChangeGroupStateUpdated','query','state','range','string','addCurrentDocumentToContext','webSearchFinished','webSearchStarted','replyContentUpdated','options','_setIsMaximized','howMany','editors','addFeedItemAISuggestion','updateCapabilities','loadSourceResources','showChangeInText','showPrevious','_handleUIUserMessage','DocumentCompare','AIChatUI','reasoningFinished','_removeFromContext','resource','toString','interactionDestroyed','toggleReasoning','getChildren','updateConversationTitle','addUrlToContext','updateFeedItemAIReplyContent','uiId','reasoningStarted','applyOperation','removeSelectionFromContext','_updateReplyContent','_stopLastInteraction','maxOffset','focusPromptInput','addFeedItemUserMessage','plugins','handleRemovedConversation','document','createRange','mouseOverSuggestion','_createFromRanges','AI_BALLOON_HEADER_TITLE','updateFeedItemAIReplySources','selectModel','interactionStarted','_filterModels','ai-chat-file-upload-failed','requires','AI_CHAT_CONTEXT_INVALID_DATA','getInteractionAndReplyById','setIsUploadInProgress','AI_CHAT_ABORTED_MESSAGE','updateFeedItemAIReplySuggestionPartState','setFeedItemRenderingStrategy','unshift','ai-chat-missing-channel-id','getDocumentData','setAddContextOptions','domConverter','removeSelectionFromChatContext','activeConversation','path','interactionId','_aiChatUi','_toggleReasoning','ai-chat-controller-mouse-over','getInteraction','_logError','enableControls','hideFakeVisualSelection','_applyOperationsAsSuggestions','revert','203290yUmNYl','modelSelected','getChild','content','undo','isStarted','isPremiumPlugin','_openBalloonFor','$graveyard','afterInit','start','selectedModel','4aywoLf','contextSent','ai-chat-context-unsupported-type','finishInteraction','anchorId','slice','addSelectionToContext','resizedTabs','AIConnector','node','batch','getDocumentContext','ai.chat.models.defaultModelId','changeGroups','delete','startsWith','close'];_0x5dd1=function(){return _0x5d461b;};return _0x5dd1();}export class AIChatController extends _0x431eb1{[_0x465c9f(0x144)];[_0x465c9f(0x127)];[_0x465c9f(0x207)];[_0x465c9f(0x137)];[_0x465c9f(0x22e)]=new Map();[_0x465c9f(0x107)]=null;[_0x465c9f(0x1ad)]=!0x1;static get[_0x465c9f(0x1f7)](){return[_0x3835d3,_0x575363,_0x2e3a0e];}static get[_0x465c9f(0x17f)](){const _0x295c74=_0x465c9f;return _0x295c74(0x185);}static get[_0x465c9f(0x1a8)](){return!0x0;}static get[_0x465c9f(0x216)](){return!0x0;}[_0x465c9f(0xe9)](){const _0x27a1a5=_0x465c9f;this[_0x27a1a5(0x127)]=this[_0x27a1a5(0x14b)][_0x27a1a5(0x1eb)][_0x27a1a5(0x13c)](_0x27a1a5(0x224)),this[_0x27a1a5(0x207)]=this[_0x27a1a5(0x14b)][_0x27a1a5(0x1eb)][_0x27a1a5(0x13c)](_0x27a1a5(0x1d7)),this[_0x27a1a5(0x144)]=this[_0x27a1a5(0x14b)][_0x27a1a5(0x1eb)][_0x27a1a5(0x13c)](_0x27a1a5(0x17c)),this[_0x27a1a5(0x137)]=new _0x265514({'connector':this[_0x27a1a5(0x127)]});const _0x5e4fba=this[_0x27a1a5(0x14b)][_0x27a1a5(0x1eb)][_0x27a1a5(0x13c)](_0x27a1a5(0x140));this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x193),()=>{const _0x3d9d1d=_0x27a1a5;this[_0x3d9d1d(0x126)]();}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x173),(_0x47c3fc,_0x55992c)=>{const _0x3fe1ab=_0x27a1a5;this[_0x3fe1ab(0x1d5)]({'userMessage':_0x55992c});}),this[_0x27a1a5(0x1c0)](_0x5e4fba,_0x27a1a5(0x223),(_0x35fe82,_0x474085)=>{const _0x4d21a2=_0x27a1a5;this[_0x4d21a2(0x1cd)](_0x474085);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x10d),()=>{const _0x2894a1=_0x27a1a5;_0x5e4fba[_0x2894a1(0xeb)]();}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x234),async()=>{const _0x39faf0=_0x27a1a5;await this[_0x39faf0(0x1e7)](),await this[_0x39faf0(0x1a9)]();}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x236),()=>{const _0x39e128=_0x27a1a5;this[_0x39e128(0x204)]?.[_0x39e128(0x1c8)](_0x206cf5(this[_0x39e128(0x14b)][_0x39e128(0x1aa)],_0x39e128(0xf1)));}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x18a),(_0x2ea068,_0x494596)=>{const _0x3814f4=_0x27a1a5;this[_0x3814f4(0x204)]?.[_0x3814f4(0xf8)](Array[_0x3814f4(0x11f)](_0x494596));}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1e0),(_0x314d0a,_0x158d24)=>{const _0x151f3b=_0x27a1a5;this[_0x151f3b(0x204)]?.[_0x151f3b(0x1e0)](_0x158d24);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x175),(_0x5ed8f6,_0x4cbfa0)=>{const _0xd753cc=_0x27a1a5;this[_0xd753cc(0x204)]?.[_0xd753cc(0x175)](_0x4cbfa0[_0xd753cc(0x232)],_0x4cbfa0[_0xd753cc(0x1da)]);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x198),(_0x4612d9,_0x387923)=>{const _0x19bb86=_0x27a1a5;this[_0x19bb86(0x1d9)](_0x387923);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1d2),(_0x36c478,_0x2bafe2)=>{const _0x58e514=_0x27a1a5;this[_0x58e514(0x204)]?.[_0x58e514(0x1d2)](_0x2bafe2[_0x58e514(0x13b)],_0x2bafe2[_0x58e514(0x1c4)],_0x2bafe2[_0x58e514(0x121)]);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x180),()=>{const _0x5dbc49=_0x27a1a5;this[_0x5dbc49(0x238)]();}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1dd),()=>{const _0x475ab8=_0x27a1a5;this[_0x475ab8(0x208)]();}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1f3),(_0x47e5c8,_0x537e06)=>{const _0x52212d=_0x27a1a5;this[_0x52212d(0x204)]?.[_0x52212d(0x199)](_0x537e06);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x17a),(_0x4f73f1,{replyId:_0x2d6a36})=>{const _0x2f5ac6=_0x27a1a5;console[_0x2f5ac6(0x154)](_0x2f5ac6(0x183),_0x2d6a36);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x237),(_0x56dc44,{replyId:_0x59cd87})=>{const _0x1035cc=_0x27a1a5;console[_0x1035cc(0x154)](_0x1035cc(0x197),_0x59cd87);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1ae),(_0x498075,_0x2a172a)=>{const _0x3eb5e8=_0x27a1a5;this[_0x3eb5e8(0x14b)][_0x3eb5e8(0x1eb)][_0x3eb5e8(0x13c)](_0x575363)[_0x3eb5e8(0x22c)](),this[_0x3eb5e8(0x159)](_0x2a172a);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1d3),(_0x30e816,{replyId:_0x4a4b16,partIndex:_0x4f2d5d})=>{const _0x29f5a4=_0x27a1a5;this[_0x29f5a4(0x1ad)]=this[_0x29f5a4(0x207)][_0x29f5a4(0x160)],this[_0x29f5a4(0x217)](_0x4a4b16,_0x4f2d5d);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1ef),(_0x531fde,{replyId:_0x360897,partIndex:_0x305303})=>{const _0x37e22c=_0x27a1a5,_0x2ee159=this[_0x37e22c(0x145)](_0x360897,_0x305303);_0x2ee159&&_0x37e22c(0x218)!=_0x2ee159[_0x37e22c(0x1c6)][_0x37e22c(0x1a6)][_0x37e22c(0x18e)]&&this[_0x37e22c(0x144)][_0x37e22c(0x12f)]([_0x2ee159[_0x37e22c(0x1c6)]],_0x37e22c(0x209));}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x244),()=>{const _0x340796=_0x27a1a5;this[_0x340796(0x144)][_0x340796(0x20d)](_0x340796(0x209));}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x23d),(_0xfb8144,_0x23bb6a)=>{const _0x12e4ba=_0x27a1a5;this[_0x12e4ba(0x14b)][_0x12e4ba(0x1eb)][_0x12e4ba(0x13c)](_0x575363)[_0x12e4ba(0x22c)](),this[_0x12e4ba(0x100)](_0x23bb6a);}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x1a7),async(_0x5c6841,_0x1633c7)=>{const _0x15a9a6=_0x27a1a5,{reply:_0x33353a}=this[_0x15a9a6(0x1f9)](_0x1633c7[_0x15a9a6(0x19b)]),_0x6fcde1=_0xcf3e41(this[_0x15a9a6(0x14b)]),_0x2d5cae=_0x3f67f2({'editor':_0x6fcde1,'changeGroups':_0x33353a[_0x15a9a6(0x229)],'documentContextContent':_0x33353a[_0x15a9a6(0x1a0)],'showDiff':_0x1633c7[_0x15a9a6(0x160)]});await this[_0x15a9a6(0x207)][_0x15a9a6(0x15c)]({'id':_0x33353a['id'],'parts':_0x2d5cae,'renderingStrategy':_0x15a9a6(0x1b3)});}),this[_0x27a1a5(0x1c0)](this[_0x27a1a5(0x207)],_0x27a1a5(0x241),(_0x23d083,{replyId:_0x1d04a5,partIndex:_0x392fc8})=>{const _0x34e6f3=_0x27a1a5;this[_0x34e6f3(0x107)]?.[_0x34e6f3(0x19b)]==_0x1d04a5&&this[_0x34e6f3(0x107)]?.[_0x34e6f3(0x14f)]==_0x392fc8&&this[_0x34e6f3(0x14b)][_0x34e6f3(0x1eb)][_0x34e6f3(0x13c)](_0x575363)[_0x34e6f3(0x22c)]();const {reply:_0xac16fa}=this[_0x34e6f3(0x1f9)](_0x1d04a5);_0xac16fa[_0x34e6f3(0x147)](_0x392fc8,_0x34e6f3(0xf5)),this[_0x34e6f3(0x144)][_0x34e6f3(0x20d)](_0x34e6f3(0x209));});}async[_0x465c9f(0x219)](){const _0xfa084e=_0x465c9f;this[_0xfa084e(0x14b)]instanceof _0x413ee5?this[_0xfa084e(0x10a)](this[_0xfa084e(0x14b)]):this[_0xfa084e(0x1c0)](this[_0xfa084e(0x14b)][_0xfa084e(0x1cf)],_0xfa084e(0x1b6),(_0x510a92,_0x203970)=>{const _0x3c0b56=_0xfa084e;_0x203970['on'](_0x3c0b56(0x15b),()=>{const _0x533c8c=_0x3c0b56;this[_0x533c8c(0x10a)](_0x203970);});}),await this[_0xfa084e(0x126)]();}[_0x465c9f(0x159)](_0x560a27){const _0x4195f9=_0x465c9f,_0x11d4e2=_0xcf3e41(this[_0x4195f9(0x14b)]);if(!_0x11d4e2[_0x4195f9(0x1eb)][_0x4195f9(0x1b5)](_0x4195f9(0x101)))return;const _0x20ff5f=this[_0x4195f9(0x14b)][_0x4195f9(0x1eb)][_0x4195f9(0x13c)](_0x4195f9(0x1d6)),{reply:_0x28c107,interaction:_0x456836}=this[_0x4195f9(0x1f9)](_0x560a27[_0x4195f9(0x19b)]),_0xf2b3d5=this[_0x4195f9(0x145)](_0x560a27[_0x4195f9(0x19b)],_0x560a27[_0x4195f9(0x14f)]),_0x579b6c=void 0x0!==_0x560a27[_0x4195f9(0x14f)]?[_0x28c107[_0x4195f9(0x229)][_0x560a27[_0x4195f9(0x14f)]]]:_0x28c107[_0x4195f9(0x229)][_0x4195f9(0x195)](_0x2850f7=>_0x4195f9(0xf7)==_0x2850f7[_0x4195f9(0x1c5)]),_0x34dbd1=_0x579b6c[_0x4195f9(0x18b)](_0xc8390f=>_0x28c107[_0x4195f9(0x229)][_0x4195f9(0x17d)](_0xc8390f));_0x34dbd1[_0x4195f9(0x14e)](_0x283315=>_0x28c107[_0x4195f9(0x147)](_0x283315,_0x4195f9(0x189)));const _0x3e7780=_0x576c10({'editor':_0x11d4e2,'reply':_0x28c107,'interaction':_0x456836,'groups':_0x579b6c,'transform':!0x0,'documentCompare':_0x20ff5f,'documentCompareOptions':{'anchor':_0x4195f9(0xea),'markDeletions':!0x0}});let _0x3e73fe;_0xf2b3d5&&this[_0x4195f9(0x122)](_0xf2b3d5[_0x4195f9(0x1c6)]),_0x11d4e2[_0x4195f9(0x1b8)][_0x4195f9(0x233)](_0x3f06b2=>{const _0x3e18c7=_0x4195f9;_0x3e73fe=_0x3f06b2[_0x3e18c7(0x226)],_0x11d4e2[_0x3e18c7(0x1eb)][_0x3e18c7(0x13c)](_0x3e18c7(0x101))[_0x3e18c7(0x20e)](_0x3e7780),this[_0x3e18c7(0x144)][_0x3e18c7(0x20d)](_0x3e18c7(0x209));}),this[_0x4195f9(0x22e)][_0x4195f9(0x110)](_0x3e73fe,{'interactionId':_0x456836['id'],'replyId':_0x28c107['id'],'indexes':_0x34dbd1[_0x4195f9(0x221)]()}),this[_0x4195f9(0xfb)](_0x28c107);}[_0x465c9f(0x100)](_0x128797){const _0x227c27=_0x465c9f,_0x337e9e=_0xcf3e41(this[_0x227c27(0x14b)]),_0x45d07a=this[_0x227c27(0x14b)][_0x227c27(0x1eb)][_0x227c27(0x13c)](_0x2e3a0e),{reply:_0x1dadfb,interaction:_0x56b385}=this[_0x227c27(0x1f9)](_0x128797[_0x227c27(0x19b)]),_0x5172a7=this[_0x227c27(0x145)](_0x128797[_0x227c27(0x19b)],_0x128797[_0x227c27(0x14f)]),_0x1f636f=void 0x0!==_0x128797[_0x227c27(0x14f)]?[_0x1dadfb[_0x227c27(0x229)][_0x128797[_0x227c27(0x14f)]]]:_0x1dadfb[_0x227c27(0x229)][_0x227c27(0x195)](_0x5cbfc7=>_0x227c27(0xf7)==_0x5cbfc7[_0x227c27(0x1c5)]),_0x55abc9=_0x1f636f[_0x227c27(0x18b)](_0x1dc135=>_0x1dadfb[_0x227c27(0x229)][_0x227c27(0x17d)](_0x1dc135));_0x55abc9[_0x227c27(0x14e)](_0xe3bd86=>_0x1dadfb[_0x227c27(0x147)](_0xe3bd86,_0x227c27(0x189)));const _0xa7a57f=_0x576c10({'editor':_0x337e9e,'reply':_0x1dadfb,'interaction':_0x56b385,'groups':_0x1f636f,'transform':!0x0,'documentCompare':_0x45d07a,'documentCompareOptions':{'anchor':_0x227c27(0xea),'markDeletions':!0x1}});let _0x21bb04;_0x5172a7&&this[_0x227c27(0x122)](_0x5172a7[_0x227c27(0x1c6)]),_0x337e9e[_0x227c27(0x1b8)][_0x227c27(0x233)](_0xe4a82b=>{const _0x3a7340=_0x227c27;_0x21bb04=_0xe4a82b[_0x3a7340(0x226)];for(const _0x1ed0e6 of _0xa7a57f)_0x1ed0e6[_0x3a7340(0x166)]=_0x337e9e[_0x3a7340(0x1b8)][_0x3a7340(0x1ed)][_0x3a7340(0x23a)],_0xe4a82b[_0x3a7340(0x226)][_0x3a7340(0x18f)](_0x1ed0e6),_0x337e9e[_0x3a7340(0x1b8)][_0x3a7340(0x1e4)](_0x1ed0e6);}),this[_0x227c27(0x22e)][_0x227c27(0x110)](_0x21bb04,{'interactionId':_0x56b385['id'],'replyId':_0x1dadfb['id'],'indexes':_0x55abc9[_0x227c27(0x221)]()}),this[_0x227c27(0xfb)](_0x1dadfb);}[_0x465c9f(0x217)](_0x1917c9,_0xdc8bbc){const _0x15714=_0x465c9f,_0x3435f9=_0xcf3e41(this[_0x15714(0x14b)]),_0x4f949b=this[_0x15714(0x145)](_0x1917c9,_0xdc8bbc),_0x2fc1aa=this[_0x15714(0x14b)][_0x15714(0x1eb)][_0x15714(0x13c)](_0x575363);if(!_0x4f949b)return void _0x2fc1aa[_0x15714(0x22c)]();const {range:_0x13407b,currentIndex:_0x3adf60,previousIndex:_0x9a958c,nextIndex:_0x1c2f32}=_0x4f949b;if(this[_0x15714(0x107)]?.[_0x15714(0x19b)]==_0x1917c9&&this[_0x15714(0x107)]?.[_0x15714(0x14f)]==_0x3adf60)return;this[_0x15714(0x107)]={'replyId':_0x1917c9,'partIndex':_0x3adf60};const _0x3e7b98=new _0x2aa5ee(_0x3435f9[_0x15714(0x1aa)],{'showDiff':this[_0x15714(0x1ad)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x15714(0xfc)},'hideHeader':!0x0}),{reply:_0x4858ed}=this[_0x15714(0x1f9)](_0x1917c9),_0x1af057=_0x3f67f2({'editor':_0x3435f9,'changeGroups':[_0x4858ed[_0x15714(0x229)][_0x3adf60]],'documentContextContent':_0x4858ed[_0x15714(0x1a0)],'showDiff':this[_0x15714(0x1ad)]});_0x3e7b98[_0x15714(0x19d)]({'parts':_0x1af057,'renderingStrategy':_0x15714(0x1b3)});const _0x2b258e=_0x3adf60!==_0x9a958c;this[_0x15714(0x122)](_0x13407b,!0x0),_0x2fc1aa[_0x15714(0xfd)]({'index':_0x3adf60,'title':_0x206cf5(this[_0x15714(0x14b)][_0x15714(0x1aa)],_0x15714(0x1f1),(_0x3adf60+0x1)[_0x15714(0x1db)]()),'icon':_0x2c9745,'mainView':_0x3e7b98,'showRotator':_0x2b258e,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x13407b]}),this[_0x15714(0x207)][_0x15714(0x194)](_0x1917c9,_0x3adf60),this[_0x15714(0x1c0)](_0x3e7b98,_0x15714(0x1a7),(_0x3abf56,{showDiff:_0x37f26e})=>{const _0x369176=_0x15714;this[_0x369176(0x1ad)]=_0x37f26e;const {reply:_0x3ae806}=this[_0x369176(0x1f9)](_0x1917c9),_0x52a48c=_0x3f67f2({'editor':_0x3435f9,'changeGroups':[_0x3ae806[_0x369176(0x229)][_0x3adf60]],'documentContextContent':_0x3ae806[_0x369176(0x1a0)],'showDiff':_0x37f26e});_0x3e7b98[_0x369176(0x19d)]({'parts':_0x52a48c,'renderingStrategy':_0x369176(0x1b3)});}),this[_0x15714(0x1c0)](_0x2fc1aa,_0x15714(0x23d),()=>{const _0x359b26=_0x15714;this[_0x359b26(0x100)]({'replyId':_0x1917c9,'partIndex':_0x3adf60}),_0x2b258e?this[_0x359b26(0x217)](_0x1917c9,_0x1c2f32):_0x2fc1aa[_0x359b26(0x22c)]();}),this[_0x15714(0x1c0)](_0x2fc1aa,_0x15714(0x1ae),()=>{const _0x5b1c8c=_0x15714;this[_0x5b1c8c(0x159)]({'replyId':_0x1917c9,'partIndex':_0x3adf60}),_0x2b258e?this[_0x5b1c8c(0x217)](_0x1917c9,_0x1c2f32):_0x2fc1aa[_0x5b1c8c(0x22c)]();}),_0x2b258e&&(this[_0x15714(0x1c0)](_0x2fc1aa,_0x15714(0x135),()=>{const _0x3dd5e1=_0x15714;this[_0x3dd5e1(0x217)](_0x1917c9,_0x1c2f32);}),this[_0x15714(0x1c0)](_0x2fc1aa,_0x15714(0x1d4),()=>{const _0xea853b=_0x15714;this[_0xea853b(0x217)](_0x1917c9,_0x9a958c);})),this[_0x15714(0x1c0)](_0x2fc1aa,_0x15714(0x172),()=>{const _0x3915e4=_0x15714;this[_0x3915e4(0x105)](_0x2fc1aa),this[_0x3915e4(0x105)](_0x3e7b98),this[_0x3915e4(0x107)]=null;});}[_0x465c9f(0x145)](_0x323968,_0x748c52){const _0xa6ae4=_0x465c9f,_0x567af1=_0xcf3e41(this[_0xa6ae4(0x14b)]),{reply:_0xbf929e,interaction:_0x3e0458}=this[_0xa6ae4(0x1f9)](_0x323968),_0x503984=_0xbf929e[_0xa6ae4(0x229)][_0xa6ae4(0x195)](_0x470f13=>_0xa6ae4(0xf7)==_0x470f13[_0xa6ae4(0x1c5)]),_0x336c44=_0x503984[_0xa6ae4(0x18b)](_0x2fda44=>_0xbf929e[_0xa6ae4(0x229)][_0xa6ae4(0x17d)](_0x2fda44));void 0x0===_0x748c52&&(_0x748c52=_0x336c44[0x0]);const _0x3d890e=_0x336c44[_0xa6ae4(0x17d)](_0x748c52);if(-0x1==_0x3d890e)return null;const _0x3b051d=0x0==_0x3d890e?_0x336c44[_0x336c44[_0xa6ae4(0x128)]-0x1]:_0x336c44[_0x3d890e-0x1],_0x48614f=_0x3d890e==_0x336c44[_0xa6ae4(0x128)]-0x1?_0x336c44[0x0]:_0x336c44[_0x3d890e+0x1],_0x2ccfe4=_0x503984[_0x3d890e],_0xb0bb56=new _0x310a2a([]),_0x2e3999=new _0x310a2a([]);for(const _0x466283 of _0x2ccfe4[_0xa6ae4(0x243)])if(_0xa6ae4(0x12b)!=_0x466283[_0xa6ae4(0x141)]&&_0x2e3999[_0xa6ae4(0x11b)][_0xa6ae4(0x1bc)](_0x466283[_0xa6ae4(0x225)][_0xa6ae4(0x171)](!0x0)),_0xa6ae4(0x129)!=_0x466283[_0xa6ae4(0x141)]){const _0x3a1186=_0x50919c(_0x573db5=>_0xba5a54(_0x573db5,_0xa6ae4(0x134))==_0x466283['id'],_0xbf929e[_0xa6ae4(0x1a0)],!0x0);_0xb0bb56[_0xa6ae4(0x11b)][_0xa6ae4(0x1bc)](_0x3a1186[_0xa6ae4(0x171)](!0x0));}if(0x0==_0xb0bb56[_0xa6ae4(0x11b)][_0xa6ae4(0x128)]){if(_0x2ccfe4[_0xa6ae4(0x243)][0x0][_0xa6ae4(0x220)]){const _0x4e6242=_0x4920f8(_0xa6ae4(0x134),_0x2ccfe4[_0xa6ae4(0x243)][0x0][_0xa6ae4(0x220)],_0xbf929e[_0xa6ae4(0x1a0)]);_0xb0bb56[_0xa6ae4(0x11b)][_0xa6ae4(0x1fe)](_0x4e6242[_0xa6ae4(0x171)](!0x0)),_0x2e3999[_0xa6ae4(0x11b)][_0xa6ae4(0x1fe)](_0x4e6242[_0xa6ae4(0x171)](!0x0)),_0x4e6242[_0xa6ae4(0x23e)]&&(_0xb0bb56[_0xa6ae4(0x11b)][_0xa6ae4(0x1bc)](_0x4e6242[_0xa6ae4(0x23e)][_0xa6ae4(0x171)](!0x0)),_0x2e3999[_0xa6ae4(0x11b)][_0xa6ae4(0x1bc)](_0x4e6242[_0xa6ae4(0x23e)][_0xa6ae4(0x171)](!0x0)));}else{const _0x38e8f1=_0xbf929e[_0xa6ae4(0x1a0)][_0xa6ae4(0x11b)][0x0];if(!_0x38e8f1)return null;_0xb0bb56[_0xa6ae4(0x11b)][_0xa6ae4(0x1bc)](_0x38e8f1[_0xa6ae4(0x171)](!0x0)),_0x2e3999[_0xa6ae4(0x11b)][_0xa6ae4(0x1bc)](_0x38e8f1[_0xa6ae4(0x171)](!0x0));}}const _0x239c9d=_0x3e0458[_0xa6ae4(0x227)](),_0x55346d=_0x567af1[_0xa6ae4(0x16b)][_0xa6ae4(0x151)](_0x239c9d[_0xa6ae4(0x213)]),_0xe3a51c=_0x272331(_0xb0bb56),_0x13e8a8=_0x567af1[_0xa6ae4(0x16b)][_0xa6ae4(0x151)](_0xe3a51c),_0x4acd12=_0x567af1[_0xa6ae4(0x16b)][_0xa6ae4(0x151)](_0xe3a51c),_0x167a03=_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x1a4)](_0x13e8a8,0x0),_0x22f8df=_0x272331(_0x2e3999),_0x4e0700={'anchor':_0x167a03,'markDeletions':!0x1},_0x435115=_0x567af1[_0xa6ae4(0x1eb)][_0xa6ae4(0x13c)](_0x2e3a0e)[_0xa6ae4(0x11e)](_0xe3a51c,_0x22f8df,_0x4e0700)[_0xa6ae4(0x1bd)]();if(!_0x435115[_0xa6ae4(0x128)])return null;_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x233)](_0x337b93=>{const _0x1f92f6=_0xa6ae4;for(const _0x1a1e5b of _0x435115)if(_0x1f92f6(0x123)==_0x1a1e5b[_0x1f92f6(0x141)]){const _0x3f087a=_0x1a1e5b[_0x1f92f6(0x12c)],_0x387181=_0x1a1e5b[_0x1f92f6(0x1ce)],_0xc1cde9=new _0x3fb93a(_0x3f087a,_0x387181);_0x337b93[_0x1f92f6(0x226)][_0x1f92f6(0x18f)](_0xc1cde9),_0x567af1[_0x1f92f6(0x1b8)][_0x1f92f6(0x1e4)](_0xc1cde9);}else _0x1a1e5b[_0x1f92f6(0x166)]=null,_0x1a1e5b[_0x1f92f6(0x158)]=!0x1,_0x337b93[_0x1f92f6(0x226)][_0x1f92f6(0x18f)](_0x1a1e5b),_0x567af1[_0x1f92f6(0x1b8)][_0x1f92f6(0x1e4)](_0x1a1e5b);});const _0x3bd796=_0x32f874(_0x567af1,_0x435115,_0x13e8a8);_0x4b847d(_0x567af1[_0xa6ae4(0x1b8)],_0x3bd796);const _0x5544f9=_0x3bd796[_0xa6ae4(0x19e)]()[_0xa6ae4(0x21a)][_0xa6ae4(0x205)][_0xa6ae4(0x221)](),_0x3ff280=_0x3bd796[_0xa6ae4(0x19e)]()[_0xa6ae4(0x124)][_0xa6ae4(0x205)][_0xa6ae4(0x221)](),_0x38af7f=[];let _0xf33bd5=_0x13e8a8,_0x412f6e=_0x4acd12;for(let _0xdeed85=0x0;_0xdeed85<_0x3ff280[_0xa6ae4(0x128)];_0xdeed85++){const _0x59b11b=_0xf33bd5[_0xa6ae4(0x1e8)]-_0x3ff280[_0xdeed85];_0x38af7f[_0xdeed85]=_0x412f6e[_0xa6ae4(0x1e8)]-_0x59b11b,_0xf33bd5=_0xf33bd5[_0xa6ae4(0x1af)](_0x3ff280[_0xdeed85]),_0x412f6e=_0x412f6e[_0xa6ae4(0x1af)](_0x38af7f[_0xdeed85]);}const _0x105a99=_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x1ee)](_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x13f)](_0x4acd12,_0x5544f9),_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x13f)](_0x4acd12,_0x38af7f)),_0x1e145d=_0x4acd12[_0xa6ae4(0x212)](0x0)[_0xa6ae4(0x163)](_0x37efa2),_0x144228=Array[_0xa6ae4(0x11f)](_0x55346d[_0xa6ae4(0x1de)]())[_0xa6ae4(0x184)](_0x4497bb=>_0x4497bb[_0xa6ae4(0x163)](_0x37efa2)==_0x1e145d)[_0xa6ae4(0xf4)](),_0x23e9f4=_0x105a99[_0xa6ae4(0x21a)][_0xa6ae4(0x205)][_0xa6ae4(0x221)](),_0x3048e0=_0x105a99[_0xa6ae4(0x124)][_0xa6ae4(0x205)][_0xa6ae4(0x221)]();_0x23e9f4[0x0]=_0x144228[0x0]+_0x23e9f4[0x0],_0x3048e0[0x0]=_0x144228[0x0]+_0x3048e0[0x0];let _0x53ef60=_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x1ee)](_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x13f)](_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x1ed)][_0xa6ae4(0x22f)](),_0x23e9f4),_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x13f)](_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x1ed)][_0xa6ae4(0x22f)](),_0x3048e0));const _0x8f9b27=_0x567af1[_0xa6ae4(0x1b8)][_0xa6ae4(0x1ed)][_0xa6ae4(0x125)][_0xa6ae4(0x1bd)](_0x239c9d[_0xa6ae4(0x23a)]);for(const _0xc9ffff of _0x8f9b27)_0x53ef60=_0x5d6e1f[_0xa6ae4(0x1f0)](_0x53ef60[_0xa6ae4(0x169)](_0xc9ffff));return{'range':_0x53ef60,'previousIndex':_0x3b051d,'nextIndex':_0x48614f,'currentIndex':_0x748c52};}[_0x465c9f(0x10a)](_0x456599){const _0x10f7d7=_0x465c9f;if(!_0x456599[_0x10f7d7(0x1eb)][_0x10f7d7(0x1b5)](_0x10f7d7(0x164)))return;const _0x33f3bf=_0x456599[_0x10f7d7(0x23b)][_0x10f7d7(0x13c)](_0x10f7d7(0x214)),_0x239ff4=_0x456599[_0x10f7d7(0x23b)][_0x10f7d7(0x13c)](_0x10f7d7(0x10f));this[_0x10f7d7(0x1c0)](_0x33f3bf,_0x10f7d7(0x20f),(_0x5899c3,_0x46f187,_0x6c3524)=>{const _0x43db52=_0x10f7d7,_0x232a9e=this[_0x43db52(0x22e)][_0x43db52(0x13c)](_0x46f187);if(!_0x232a9e)return;const _0x4eb5fe=this[_0x43db52(0x204)][_0x43db52(0x20a)](_0x232a9e[_0x43db52(0x206)])[_0x43db52(0x174)](_0x232a9e[_0x43db52(0x19b)]);_0x232a9e[_0x43db52(0x118)][_0x43db52(0x14e)](_0x494175=>_0x4eb5fe[_0x43db52(0x147)](_0x494175,_0x43db52(0xf7))),this[_0x43db52(0x22e)][_0x43db52(0x22a)](_0x46f187),this[_0x43db52(0x22e)][_0x43db52(0x110)](_0x6c3524,_0x232a9e);}),this[_0x10f7d7(0x1c0)](_0x239ff4,_0x10f7d7(0x20f),(_0x224e8a,_0x8e457e,_0x1a8816)=>{const _0x4b4e07=_0x10f7d7,_0x113c7d=this[_0x4b4e07(0x22e)][_0x4b4e07(0x13c)](_0x8e457e);if(!_0x113c7d)return;const _0x35dea5=this[_0x4b4e07(0x204)][_0x4b4e07(0x20a)](_0x113c7d[_0x4b4e07(0x206)])[_0x4b4e07(0x174)](_0x113c7d[_0x4b4e07(0x19b)]);_0x113c7d[_0x4b4e07(0x118)][_0x4b4e07(0x14e)](_0x4fbe28=>_0x35dea5[_0x4b4e07(0x147)](_0x4fbe28,_0x4b4e07(0x189))),this[_0x4b4e07(0x22e)][_0x4b4e07(0x22a)](_0x8e457e),this[_0x4b4e07(0x22e)][_0x4b4e07(0x110)](_0x1a8816,_0x113c7d);});}async[_0x465c9f(0x168)](_0x55123c){const _0x46f7e5=_0x465c9f;this[_0x46f7e5(0x14b)][_0x46f7e5(0x1eb)][_0x46f7e5(0x13c)](_0x575363)[_0x46f7e5(0x22c)](),this[_0x46f7e5(0x207)][_0x46f7e5(0x1fd)](_0x46f7e5(0x1b3)),this[_0x46f7e5(0x207)][_0x46f7e5(0x143)](!0x0),await this[_0x46f7e5(0x1e7)]();try{const _0x17f0a4=this[_0x46f7e5(0x14b)][_0x46f7e5(0x1eb)][_0x46f7e5(0x13c)](_0x351d7e);this[_0x46f7e5(0x1df)]('\x20'),_0x17f0a4[_0x46f7e5(0xfe)][_0x46f7e5(0x170)](_0x46f7e5(0x1b0)),await this[_0x46f7e5(0x126)](_0x55123c);const {sessionId:_0x57eb57}=this[_0x46f7e5(0x144)][_0x46f7e5(0x200)]();await this[_0x46f7e5(0x204)][_0x46f7e5(0x149)](_0x55123c,_0x57eb57),this[_0x46f7e5(0x204)][_0x46f7e5(0x156)]()&&this[_0x46f7e5(0x204)][_0x46f7e5(0x1c8)](_0x206cf5(this[_0x46f7e5(0x14b)][_0x46f7e5(0x1aa)],_0x46f7e5(0xf1)));}catch(_0x39601e){console[_0x46f7e5(0x157)](_0x46f7e5(0xf9),_0x39601e);}finally{this[_0x46f7e5(0x207)][_0x46f7e5(0x1fd)](_0x46f7e5(0x179)),this[_0x46f7e5(0x207)][_0x46f7e5(0x143)](!0x1);}}[_0x465c9f(0x1ec)](_0x23cb22){const _0x221447=_0x465c9f;this[_0x221447(0x204)]['id']===_0x23cb22&&this[_0x221447(0x126)]();}async[_0x465c9f(0xfa)](){const _0x1dd0a3=_0x465c9f,_0x1c312f=this[_0x1dd0a3(0x144)][_0x1dd0a3(0x16e)]();this[_0x1dd0a3(0x204)]?.[_0x1dd0a3(0x222)](_0x1c312f),this[_0x1dd0a3(0x204)]?.[_0x1dd0a3(0x1c8)](_0x206cf5(this[_0x1dd0a3(0x14b)][_0x1dd0a3(0x1aa)],_0x1dd0a3(0xf1)));}[_0x465c9f(0x203)](){const _0x4dbaae=_0x465c9f;this[_0x4dbaae(0x204)]?.[_0x4dbaae(0x1e5)]();}[_0x465c9f(0x1e9)](){const _0x46ac30=_0x465c9f;this[_0x46ac30(0x207)][_0x46ac30(0x1e9)]();}async[_0x465c9f(0x193)](){const _0x271b77=_0x465c9f;await this[_0x271b77(0x126)]();}async[_0x465c9f(0x178)]({message:_0x15ef31,quickActionData:_0x105892}){const _0x5a8f99=_0x465c9f;await this[_0x5a8f99(0x1d5)]({'userMessage':_0x15ef31,'quickActionData':_0x105892});}[_0x465c9f(0x113)](){const _0x2cdca5=_0x465c9f,_0x2d4f60=this[_0x2cdca5(0x14b)][_0x2cdca5(0x102)][_0x2cdca5(0x13c)](_0x2cdca5(0x115));if(!_0x2d4f60)throw new _0x4f8449(_0x2cdca5(0x1ff),this);return _0x2d4f60;}async[_0x465c9f(0x126)](_0x23314b){const _0xc662fc=_0x465c9f;try{this[_0xc662fc(0x207)][_0xc662fc(0x20c)](),await this[_0xc662fc(0x10c)](_0x23314b);}catch(_0x3b19f3){_0x5e1962(_0xc662fc(0x1b4),_0x3b19f3),this[_0xc662fc(0x204)]=void 0x0,this[_0xc662fc(0x207)][_0xc662fc(0x133)]();}}async[_0x465c9f(0x10c)](_0x438a19){const _0x3fbc43=_0x465c9f,_0x2949d=this[_0x3fbc43(0x14b)][_0x3fbc43(0x1eb)][_0x3fbc43(0x13c)](_0x575363);let _0x51c015;_0x2949d[_0x3fbc43(0xec)]&&_0x2949d[_0x3fbc43(0x22c)](),_0x51c015=_0x438a19||!this[_0x3fbc43(0x204)]?this[_0x3fbc43(0x14b)][_0x3fbc43(0x102)][_0x3fbc43(0x13c)](_0x3fbc43(0x228)):this[_0x3fbc43(0x204)][_0x3fbc43(0x21b)]['id'],await this[_0x3fbc43(0x1e7)]();const _0x5d3e57=this[_0x3fbc43(0x113)](),_0x7c15f6=_0x438a19||_0x18f48e();this[_0x3fbc43(0x204)]=new _0x3dbaf9({'connector':this[_0x3fbc43(0x127)],'chatModels':this[_0x3fbc43(0x137)],'defaultModelId':_0x51c015,'conversationId':_0x7c15f6,'group':_0x5d3e57,'getEditor':()=>_0xcf3e41(this[_0x3fbc43(0x14b)])}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1ac),(_0x16a1cb,_0x20c33b)=>{const _0x1c6c4c=_0x3fbc43;_0x20c33b[_0x1c6c4c(0x120)]=this[_0x1c6c4c(0x1f5)](_0x20c33b[_0x1c6c4c(0x120)],this[_0x1c6c4c(0x14b)][_0x1c6c4c(0x102)][_0x1c6c4c(0x13c)](_0x1c6c4c(0x1a1))),this[_0x1c6c4c(0x207)][_0x1c6c4c(0x1a2)](_0x20c33b),this[_0x1c6c4c(0x207)][_0x1c6c4c(0x1be)](),this[_0x1c6c4c(0x207)][_0x1c6c4c(0x13d)](),this[_0x1c6c4c(0x207)][_0x1c6c4c(0x19c)](),_0x438a19||(this[_0x1c6c4c(0x207)][_0x1c6c4c(0x139)](),this[_0x1c6c4c(0x204)]?.[_0x1c6c4c(0x1c8)](_0x206cf5(this[_0x1c6c4c(0x14b)][_0x1c6c4c(0x1aa)],_0x1c6c4c(0xf1))));}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x14c),(_0x43d571,_0x389adc)=>{const _0x36ab86=_0x3fbc43;this[_0x36ab86(0x207)][_0x36ab86(0x1fa)](_0x389adc[_0x36ab86(0x1b1)]);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x136),(_0x27a026,_0x19e4f9)=>{const _0x31c6f1=_0x3fbc43;this[_0x31c6f1(0x207)][_0x31c6f1(0x1ea)](_0x19e4f9);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1ca),()=>{const _0xe790cb=_0x3fbc43;this[_0xe790cb(0x207)][_0xe790cb(0x22d)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1e3),()=>{const _0x387301=_0x3fbc43;this[_0x387301(0x207)][_0x387301(0x22d)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1c9),(_0x2f52a2,_0x2dbdee)=>{const _0x3daaba=_0x3fbc43;this[_0x3daaba(0x207)][_0x3daaba(0x18c)](_0x2dbdee,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1d8),(_0x58cb9d,_0x88326f)=>{const _0x4dbe5a=_0x3fbc43;this[_0x4dbe5a(0x207)][_0x4dbe5a(0x18c)](_0x88326f,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1f4),()=>{const _0x2bd026=_0x3fbc43;this[_0x2bd026(0x207)][_0x2bd026(0x114)]();}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0xed),async()=>{const _0x497d0e=_0x3fbc43;await this[_0x497d0e(0x207)][_0x497d0e(0x21f)]();}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1dc),(_0x405e74,_0x30964b)=>{const _0x19b9f5=_0x3fbc43;this[_0x19b9f5(0x207)][_0x19b9f5(0x12d)](_0x30964b['id']);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x16c),(_0x3d1dd0,_0xce712f,_0x237a59)=>{const _0x6b89c=_0x3fbc43;this[_0x6b89c(0x1df)](_0xce712f,_0x237a59);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1c1),(_0x3037ef,_0x42684a)=>{const _0x5ba034=_0x3fbc43;_0x5ba034(0x196)===_0x42684a[_0x5ba034(0x141)]?this[_0x5ba034(0x207)][_0x5ba034(0x191)](_0x42684a):this[_0x5ba034(0x207)][_0x5ba034(0x1d0)](_0x42684a);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1cb),async(_0x49638d,_0xb8caa5,_0x482eda)=>{const _0x5c9b4d=_0x3fbc43;await this[_0x5c9b4d(0x1e6)]({'reply':_0xb8caa5,'changeGroups':_0x482eda});}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1c3),(_0xead35d,{reply:_0x225575,index:_0xd59e17,state:_0x5adb20})=>{const _0x26f458=_0x3fbc43;this[_0x26f458(0x207)][_0x26f458(0x1fc)]({'id':_0x225575['id'],'index':_0xd59e17,'state':_0x5adb20});}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x188),(_0x457366,_0x25b214)=>{const _0x4b27c1=_0x3fbc43;if(this[_0x4b27c1(0x207)][_0x4b27c1(0x17e)](_0x25b214[_0x4b27c1(0x181)],_0x25b214[_0x4b27c1(0x142)]),_0x4b27c1(0x162)===_0x25b214[_0x4b27c1(0x181)][_0x4b27c1(0x141)]){const _0xf9ca73=[..._0xcf3e41(this[_0x4b27c1(0x14b)])[_0x4b27c1(0x1b8)][_0x4b27c1(0x1ed)][_0x4b27c1(0x162)][_0x4b27c1(0x12a)]()];this[_0x4b27c1(0x144)][_0x4b27c1(0x12f)](_0xf9ca73,_0x4b27c1(0xee)+this[_0x4b27c1(0x204)]?.['id']);}}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x130),(_0x32ccb5,_0x51b538)=>{const _0x591013=_0x3fbc43;this[_0x591013(0x207)][_0x591013(0x198)](_0x51b538[_0x591013(0x1e2)]),_0x591013(0xf0)==_0x51b538[_0x591013(0x1e2)]&&this[_0x591013(0x203)](),_0x591013(0x162)===_0x51b538[_0x591013(0x141)]&&this[_0x591013(0x144)][_0x591013(0x20d)](_0x591013(0xee)+this[_0x591013(0x204)]?.['id']);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x18d),(_0x1cddac,_0x4dbd4d)=>{const _0x326317=_0x3fbc43;this[_0x326317(0x207)][_0x326317(0x117)](_0x4dbd4d[_0x326317(0x181)][_0x326317(0x1e2)],_0x4dbd4d[_0x326317(0x142)]);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x21d),(_0x5ffd4d,_0x46ef19)=>{const _0x4bf04c=_0x3fbc43;this[_0x4bf04c(0x207)][_0x4bf04c(0x1b7)](_0x46ef19[_0x4bf04c(0x240)]);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x119),(_0x145ef1,_0xa58808)=>{const _0x44c42=_0x3fbc43;this[_0x44c42(0x207)][_0x44c42(0x201)](_0xa58808[_0x44c42(0x1cc)]);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x155),(_0x35c1b5,_0xef0cc6)=>{const _0x51484c=_0x3fbc43;this[_0x51484c(0x207)][_0x51484c(0x153)](_0xef0cc6[_0x51484c(0x13b)],_0xef0cc6[_0x51484c(0x232)],_0xef0cc6[_0x51484c(0x23f)],_0xef0cc6[_0x51484c(0x121)]);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x1bb),(_0x2c6358,_0x6ebd69)=>{const _0x14279e=_0x3fbc43;this[_0x14279e(0x207)][_0x14279e(0x13e)](_0x6ebd69[_0x14279e(0x13b)],_0x6ebd69[_0x14279e(0x15e)],_0x6ebd69[_0x14279e(0x11c)]);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x15d),(_0x1314c8,_0x502ed4)=>{const _0x53bd4f=_0x3fbc43;this[_0x53bd4f(0x207)][_0x53bd4f(0x1d1)](_0x502ed4);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x211),(_0x2a6699,_0x3950a4)=>{const _0x1c04f4=_0x3fbc43;this[_0x1c04f4(0x207)][_0x1c04f4(0x111)](_0x3950a4[_0x1c04f4(0x21b)],_0x3950a4[_0x1c04f4(0x186)]);}),this[_0x3fbc43(0x204)]['on'](_0x3fbc43(0x157),(_0x4d3057,{error:_0x29e43c,interactionId:_0x387bd8,fileName:_0x4bfd05,url:_0x3caec7,sourceId:_0x694a94,sourceLabel:_0x4e4c29})=>{const _0x5995e5=_0x3fbc43,_0x32750b=_0x387bd8?_0x387bd8+':'+_0x18f48e():_0x18f48e();_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x104))?this[_0x5995e5(0x207)][_0x5995e5(0x1bf)]({'staticMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x1fb)),'id':_0x32750b}):_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x14a))||_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x1b4))?(this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x17b)),'id':_0x32750b}),this[_0x5995e5(0x20b)](_0x29e43c)):_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x1f6))?this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x19a),_0x4bfd05),'id':_0x32750b}):_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x14d))?this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x112),_0x3caec7),'id':_0x32750b}):_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x132))?this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x1f8)),'id':_0x32750b}):_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x21e))?this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x146)),'id':_0x32750b}):_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x109))?(_0x694a94&&this[_0x5995e5(0x207)][_0x5995e5(0x177)](_0x694a94),this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x190),_0x4e4c29||_0x5995e5(0x232)),'id':_0x32750b}),this[_0x5995e5(0x20b)](_0x29e43c)):_0x29e43c[_0x5995e5(0x131)][_0x5995e5(0x22b)](_0x5995e5(0x11d))?(this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x16d)),'id':_0x32750b}),this[_0x5995e5(0x20b)](_0x29e43c)):(this[_0x5995e5(0x207)][_0x5995e5(0x10b)]({'errorMessage':_0x206cf5(this[_0x5995e5(0x14b)][_0x5995e5(0x1aa)],_0x5995e5(0x13a)),'id':_0x32750b}),this[_0x5995e5(0x20b)](_0x29e43c));}),await this[_0x3fbc43(0x204)][_0x3fbc43(0xe9)](this[_0x3fbc43(0x14b)][_0x3fbc43(0x102)][_0x3fbc43(0x13c)](_0x3fbc43(0x161))),_0x438a19||await this[_0x3fbc43(0x204)][_0x3fbc43(0x21a)]();}async[_0x465c9f(0x1d5)]({userMessage:_0x2415df,quickActionData:_0x6ce839}){const _0x324f8d=_0x465c9f;if(!this[_0x324f8d(0x204)])throw new _0x4f8449(_0x324f8d(0x15a));this[_0x324f8d(0x204)][_0x324f8d(0x187)]()&&await this[_0x324f8d(0x204)][_0x324f8d(0x1b2)](this[_0x324f8d(0x144)][_0x324f8d(0x200)]()),this[_0x324f8d(0x204)]['id']&&this[_0x324f8d(0x204)][_0x324f8d(0x215)]&&await this[_0x324f8d(0x204)][_0x324f8d(0x1ab)]({'userMessage':_0x2415df,'quickActionData':_0x6ce839}),this[_0x324f8d(0x242)]();}[_0x465c9f(0x242)](){const _0x22cc4c=_0x465c9f,_0x65a5aa=_0xcf3e41(this[_0x22cc4c(0x14b)])[_0x22cc4c(0x1b8)],_0x5d47e6=Array[_0x22cc4c(0x11f)](_0x65a5aa[_0x22cc4c(0xf2)][_0x22cc4c(0x16f)](_0x3d0f78));_0x65a5aa[_0x22cc4c(0x233)](_0x43c517=>{const _0x25794e=_0x22cc4c;_0x5d47e6[_0x25794e(0x14e)](_0x184d0a=>_0x43c517[_0x25794e(0x138)](_0x184d0a));});}[_0x465c9f(0x1a3)](){const _0x23daa4=_0x465c9f;console[_0x23daa4(0x154)](_0x23daa4(0x1ba));}[_0x465c9f(0x1cd)](_0x5ceef4){const _0xdbebf2=_0x465c9f;this[_0xdbebf2(0x207)][_0xdbebf2(0x12e)](_0x5ceef4);}[_0x465c9f(0x20b)](_0x470ba4){const _0x55618a=_0x465c9f;_0x5e1962(_0x470ba4[_0x55618a(0x131)]);}[_0x465c9f(0x1d9)](_0x50b9d6){const _0x3e91c3=_0x465c9f;this[_0x3e91c3(0x204)]?.[_0x3e91c3(0x106)](_0x50b9d6);}[_0x465c9f(0x238)](){const _0x8e01e3=_0x465c9f;this[_0x8e01e3(0x204)]?.[_0x8e01e3(0x180)]();}[_0x465c9f(0x208)](){const _0xffd255=_0x465c9f;this[_0xffd255(0x204)]?.[_0xffd255(0x1dd)]();}[_0x465c9f(0x1f9)](_0x4d63d9){const _0x4cd5aa=_0x465c9f,[_0x52b991,_0x11bb31]=_0x4d63d9[_0x4cd5aa(0x230)](':'),_0x55740c=this[_0x4cd5aa(0x204)][_0x4cd5aa(0x20a)](_0x52b991),_0x556979=_0x55740c[_0x4cd5aa(0x174)](_0x11bb31);return{'interaction':_0x55740c,'reply':_0x556979};}[_0x465c9f(0x122)](_0x5166c1,_0x1601a5=!0x1){const _0x21fc39=_0x465c9f,_0x8676e7=_0xcf3e41(this[_0x21fc39(0x14b)]),_0x33861d={'target':_0x8676e7[_0x21fc39(0x176)][_0x21fc39(0xfe)][_0x21fc39(0x202)][_0x21fc39(0x11a)](_0x8676e7[_0x21fc39(0x176)][_0x21fc39(0xff)][_0x21fc39(0x235)](_0x5166c1)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1601a5};_0x1601a5&&(_0x33861d[_0x21fc39(0x1b9)]=!0x0),_0x425377(_0x33861d);}[_0x465c9f(0x1df)](_0x29c80a,_0x30b570=!0x1){const _0x419a14=_0x465c9f;this[_0x419a14(0x207)][_0x419a14(0x16c)](_0x29c80a||_0x206cf5(this[_0x419a14(0x14b)][_0x419a14(0x1aa)],_0x419a14(0x108)),_0x30b570);}[_0x465c9f(0x1f5)](_0x33ceee,_0xd47d88){const _0x5d1b79=_0x465c9f;let _0x16a701;if(_0xd47d88){_0x16a701=[];const _0x3503a7=_0x5d1b79(0x1c7)==typeof _0xd47d88?[_0xd47d88[_0x5d1b79(0x10e)]()]:_0xd47d88[_0x5d1b79(0x18b)](_0x38c6cb=>_0x38c6cb[_0x5d1b79(0x10e)]());for(const _0x37ffd7 of _0x3503a7)for(const _0x2c9acb of _0x33ceee)(_0x2c9acb['id'][_0x5d1b79(0x10e)]()===_0x37ffd7||_0x2c9acb[_0x5d1b79(0x182)][_0x5d1b79(0x10e)]()===_0x37ffd7||_0x2c9acb[_0x5d1b79(0x116)][_0x5d1b79(0x10e)]()===_0x37ffd7||_0x2c9acb['id'][_0x5d1b79(0x10e)]()[_0x5d1b79(0x22b)](_0x37ffd7))&&_0x16a701[_0x5d1b79(0x1bc)](_0x2c9acb);}else _0x16a701=_0x33ceee;return _0x16a701;}async[_0x465c9f(0x1e6)]({reply:_0xb1bf7d,changeGroups:_0xe04f01,renderingStrategy:_0x4babc6}){const _0xcc359c=_0x465c9f,{id:_0x31b969,isDone:_0x19f713,type:_0x51ebce,parsedContent:_0x141547}=_0xb1bf7d;if(_0xcc359c(0x231)===_0x51ebce){const _0x54f48a=_0xcf3e41(this[_0xcc359c(0x14b)]),_0x10669a=_0x3f67f2({'editor':_0x54f48a,'showDiff':this[_0xcc359c(0x207)][_0xcc359c(0x160)],'changeGroups':_0xe04f01,'documentContextContent':_0xb1bf7d[_0xcc359c(0x1a0)]});await this[_0xcc359c(0x207)][_0xcc359c(0x15c)]({'id':_0x31b969,'parts':_0x10669a,'renderingStrategy':_0x4babc6,'isDone':_0x19f713});}else _0xcc359c(0x196)===_0x51ebce&&await this[_0xcc359c(0x207)][_0xcc359c(0x1e1)]({'id':_0x31b969,'parsedContent':_0x141547,'renderingStrategy':_0x4babc6,'isDone':_0x19f713});_0x19f713&&_0xb1bf7d[_0xcc359c(0x19f)][_0xcc359c(0x128)]>0x0&&this[_0xcc359c(0x207)][_0xcc359c(0x1f2)](_0x31b969,_0xb1bf7d[_0xcc359c(0x19f)]);}async[_0x465c9f(0x1e7)](){const _0x5a8671=_0x465c9f,_0x1ba344=this[_0x5a8671(0x204)]?.[_0x5a8671(0x16a)];_0x1ba344&&(_0x1ba344[_0x5a8671(0xef)](),this[_0x5a8671(0x207)][_0x5a8671(0x1c2)](_0x1ba344));}async[_0x465c9f(0x1a9)](){const _0x1dae48=_0x465c9f,_0x38822b=this[_0x1dae48(0x204)]?.[_0x1dae48(0x16a)];if(_0x38822b){for await(const _0x3f678a of _0x38822b[_0x1dae48(0xf3)])await this[_0x1dae48(0x1e6)]({'reply':_0x3f678a,'changeGroups':_0x3f678a[_0x1dae48(0x229)],'renderingStrategy':_0x1dae48(0x1b3)});}}[_0x465c9f(0xfb)](_0x3ba572){const _0x3130b1=_0x465c9f,_0x20c2fc={'positiveCount':_0x3ba572[_0x3130b1(0x229)][_0x3130b1(0x195)](_0x212cb7=>_0x3130b1(0x189)===_0x212cb7[_0x3130b1(0x1c5)])[_0x3130b1(0x128)],'totalCount':_0x3ba572[_0x3130b1(0x229)][_0x3130b1(0x128)]},_0x494cde=this[_0x3130b1(0x204)][_0x3130b1(0x20a)](_0x3ba572[_0x3130b1(0x206)])[_0x3130b1(0x150)];this[_0x3130b1(0x127)][_0x3130b1(0x152)](this[_0x3130b1(0x204)]['id'],_0x494cde,_0x20c2fc);}}
|
|
23
|
+
const _0x4f553e=_0x25e6;(function(_0x124070,_0x1c866b){const _0x277b1d=_0x25e6,_0x460264=_0x124070();while(!![]){try{const _0x3c48c5=parseInt(_0x277b1d(0xd6))/0x1*(parseInt(_0x277b1d(0x99))/0x2)+-parseInt(_0x277b1d(0x139))/0x3+parseInt(_0x277b1d(0x196))/0x4*(parseInt(_0x277b1d(0xe1))/0x5)+parseInt(_0x277b1d(0x1c0))/0x6*(-parseInt(_0x277b1d(0x162))/0x7)+parseInt(_0x277b1d(0x1b9))/0x8*(parseInt(_0x277b1d(0x93))/0x9)+parseInt(_0x277b1d(0x16c))/0xa*(-parseInt(_0x277b1d(0xa9))/0xb)+parseInt(_0x277b1d(0x1aa))/0xc;if(_0x3c48c5===_0x1c866b)break;else _0x460264['push'](_0x460264['shift']());}catch(_0x4efcd4){_0x460264['push'](_0x460264['shift']());}}}(_0x4333,0x8a24a));import{ContextPlugin as _0x3418f4,Editor as _0x277810}from'ckeditor5/src/core.js';import{CKEditorError as _0x26389e,logError as _0x24ffd0,scrollViewportToShowTarget as _0xa319c1,uid as _0x2cbd4a}from'ckeditor5/src/utils.js';function _0x4333(){const _0x2662fc=['setSelectedModel','messageId','ai.chat.models.displayedModels','51205UmQRRE','getRoot','addResourceToContext','static','ai-chat-url-upload-failed','remove','_applySuggestion','sendMessage','_handleStartConversation','_openBalloonFor','afterInit','removeMarker','getInteractionAndReplyById','updateCapabilities','chat','_scrollToSuggestionRange','AI_CHAT_UNABLE_TO_START_CONVERSATION','split','ai-chat-controller-mouse-over','addFeedItemStaticMessage','Liked\x20response','from','updateResourceState','addContextOptionsChanged','applyOperation','replies','webSearchStarted','init','documentContextContent','toggleWebSearch','indexes','applySuggestion','ai-chat-controller-no-active-conversation','contextItemLoadingEnded','listenTo','AITabs','uiId','clearPendingContextUI','reasoningFinished','ai-chat-conversation-start-failed','addSelectionToContext','accepted','toViewRange','focusPromptInput','selectedModel','37491pCTDyo','setContextItemLoading','_batchToChanges','setAddContextOptions','map','replyChangeGroupStateUpdated','modelSelected','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','toggleSuggestionDisplayMode','change','availableModels','422500fGAimN','data','resize','updateCurrentDocumentInContext','interactionDestroyed','activateTab','toString','_removeAISelectionMarkers','baseVersion','contextItems','alignToTop','_logError','createRange','resources','AI_CHAT_ABORTED_MESSAGE','like','getMarkersGroup','revert','current-document','resizeTabs','addSelectionToChatContext','getChild','Disliked\x20response','sourceId','handleUserInteraction','isUploadInProgress','addContextItem','anchorId','find','model','getFirstRange','showChangeInText','addFeedItemAISuggestion','enableControls','isOpen','has','ai-chat-context-unsupported-type','_startConversationSafely','upsertAIChatRating','_handleUIUserMessage','_aiChatModels','setFeedItemRenderingStrategy','partIndex','contextItemAdded','AI_CHAT_RESOURCE_LOAD_FAILED','createPositionAt','_updateRatings','activeConversation','parse','slice','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemRemoved','editors','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','uploadProgressChanged','viewRangeToDom','isOfficialPlugin','setIsUploadInProgress','rejectSuggestion','finishInteraction','Undo','stopInteraction','lastInteraction','interactionId','stop','AI_BALLOON_HEADER_TITLE','resetMessageInput','howMany','removed','delete','updateFeedItemAIReplySources','updateContent','mapper','rootName','createPositionFromPath','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','maxOffset','isInContext','scrollFeedToSuggestion','provider','getDocumentData','removeSelectionFromChatContext','toggleReasoning','sourcePosition','_aiChatUi','_showConversationHistory','log','_insertSuggestion','2213364dxhDmd','_toggleWebSearch','isStarted','Showing\x20conversation\x20history...','updateFeedItemAIReplySuggestionContent','ai-chat-context-invalid-data','mouseOverSuggestion','length','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-chat-missing-channel-id','toggleLoadingSkeleton','showPrevious','AIChatController','dislike','replyContentUpdated','addFileToContext','resizedTabs','main','getAttribute','getReply','filter','resourceId','addFilesToContext','TrackChangesEditing','get','reasoningStarted','forEach','AI_CHAT_UNTITLED_CONVERSATION','contextSent','children','changeGroups','start','conversationInitialized','undo','text-delta','resource','nextSibling','query','selectModel','DocumentCompare','showDiff','7aPwzpD','_getDocumentRangeForReplyChanges','insertSuggestion','disableControls','sourceResourcesLoaded','ai.chat.context','_updateReplyContent','plugins','_aiEditing','abortPromptStream','1990uJHfbS','ai.chat.models.defaultModelId','loadConversation','message','addFeedInteractionHeader','push','getInteraction','AIChatUI','_integrateEditor','name','removeContextItem','ai-chat-file-upload-failed','handleRemovedConversation','version','$graveyard','domConverter','getDocumentContext','_applyOperationsAsSuggestions','requires','closeSourceResourceBalloon','add','uid','path','updateConversationTitle','addUrlToContext','Failed\x20to\x20load\x20conversation','interactionFinished','set','range','populateSourceResourceBalloon','type','getRanges','_filterModels','getOperations','startConversation','_balloonShowDiff','setConversationTitle','setIsMaximized','context','addFeedItemUserMessage','addFeedItemError','sendUserMessage','20BwwCMm','getGroupId','modification-delta','isPremiumPlugin','isCurrentDocumentInContext','addDocumentToContext','getChildren','pluginName','view','AI_CHAT_CONTEXT_INVALID_DATA','interactionCreated','editing','resetConversationTitle','options','root','_previewedChangeGroup','_flushLastInteractionUI','marker','new','cloneNode','27385476rykvKY','indexOf','removeSelectionFromContext','toLocaleLowerCase','loadSourceResources','capabilitiesUpdated','setLoadingMessage','AIConnector','error','_createFromRanges','createConversation','_toggleReasoning','locale','ai-conversation-','isCurrentDocumentInConversation','2504ppxiaY','showFakeVisualSelection','getChildAtOffset','_removeFromContext','unshift','interactionStarted','resourceStateChanged','5608818SyUUQs','load','AI_CHAT_GENERIC_ERROR','setModel','getTransformedByOperation','end','state','pending','setConversationContext','contextItem','isLoading','webSearchFinished','config','addFeedItemAIReply','node','getDiff','data-id','updateFeedItemAIReplySuggestionPartState','addOperation','AIEditing','redo','isDisabled','document','sources','source','rejected','getPath','collaboration.channelId','addCurrentDocumentToContext','dialogClosed','full','markers','startsWith','_stopLastInteraction','showNext','setChangeGroupState','selection','stopListening','streaming','updateFeedItemAIReplyContent','getSelectionText','batch','hideFakeVisualSelection','mouseLeaveSuggestion','_setIsMaximized','content','startInteraction','ai-chat-resource-load-failed','8919AqlPCN','history','ai-request-aborted','close','ready','commands','8UBHhUv','ai-chat-conversation-init-failed','removeFeedInteraction','removeFromContext','ai-chat-source-resources-load-failed','replyId','_aiConnector','changes','clearConversationContextUI','replyCreated','open','isDocumentOperation','string'];_0x4333=function(){return _0x2662fc;};return _0x4333();}import{AIConnector as _0x47b9e8}from'../aicore/aiconnector.js';import{AITabs as _0x74747e}from'../aitabs/aitabs.js';import{AIChatConversation as _0x1ed617}from'./model/aichatconversation.js';import{getTranslation as _0x5269c3}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x58a634}from'../aicore/aiediting.js';import{AIChatModels as _0x56d036}from'./model/aichatmodels.js';import{getEditorFromContext as _0x10405a}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x5d9df3,DATA_ID_MODEL_ATTRIBUTE as _0x53944a}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1ad353}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x5248cd,getMinimalSelection as _0x2fe0c8,getSuggestionPartsFromReply as _0x3580fd}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x584fd6,_DetachOperation as _0x321ea8}from'ckeditor5/src/engine.js';import{findOne as _0x1956c3,getAttribute as _0x1f6704,serialize as _0x1996f6,Document as _0x5b6d5a,findByAttribute as _0x219e9c}from'../aicore/utils/htmlparser.js';function _0x25e6(_0x2ae543,_0x3eb6cb){const _0x43335f=_0x4333();return _0x25e6=function(_0x25e6df,_0x15afed){_0x25e6df=_0x25e6df-0x88;let _0x477b58=_0x43335f[_0x25e6df];return _0x477b58;},_0x25e6(_0x2ae543,_0x3eb6cb);}import{IconAI as _0x3ad88e}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3e84cd}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x16a9ea}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3418f4{[_0x4f553e(0x16a)];[_0x4f553e(0x9f)];[_0x4f553e(0x135)];[_0x4f553e(0x109)];[_0x4f553e(0xd8)]=new Map();[_0x4f553e(0x1a5)]=null;[_0x4f553e(0x18f)]=!0x1;static get[_0x4f553e(0x17e)](){return[_0x47b9e8,_0x16a9ea,_0x5d9df3];}static get[_0x4f553e(0x19d)](){const _0xeaa5bf=_0x4f553e;return _0xeaa5bf(0x145);}static get[_0x4f553e(0x119)](){return!0x0;}static get[_0x4f553e(0x199)](){return!0x0;}[_0x4f553e(0xc4)](){const _0x2ca398=_0x4f553e;this[_0x2ca398(0x9f)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x1b1)),this[_0x2ca398(0x135)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x173)),this[_0x2ca398(0x16a)]=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0x1d3)),this[_0x2ca398(0x109)]=new _0x56d036({'connector':this[_0x2ca398(0x9f)]});const _0x120948=this[_0x2ca398(0x192)][_0x2ca398(0x169)][_0x2ca398(0x151)](_0x2ca398(0xcc));this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x18e),()=>{const _0x369ba1=_0x2ca398;this[_0x369ba1(0x106)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x195),(_0x533c8c,_0x31dfad)=>{const _0x180ae9=_0x2ca398;this[_0x180ae9(0x108)]({'userMessage':_0x31dfad});}),this[_0x2ca398(0xcb)](_0x120948,_0x2ca398(0x149),(_0x56b057,_0x140940)=>{const _0x245a26=_0x2ca398;this[_0x245a26(0x8f)](_0x140940);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xf4),()=>{const _0x3889dc=_0x2ca398;_0x120948[_0x3889dc(0xe3)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x16b),async()=>{const _0x37aab0=_0x2ca398;await this[_0x37aab0(0x1e1)](),await this[_0x37aab0(0x1a6)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x19b),()=>{const _0x65e268=_0x2ca398;this[_0x65e268(0x110)]?.[_0x65e268(0x1dc)](_0x5269c3(this[_0x65e268(0x192)][_0x65e268(0x1b6)],_0x65e268(0x113)));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x148),(_0x1d14b5,_0x10ac3c)=>{const _0x5563f5=_0x2ca398;this[_0x5563f5(0x110)]?.[_0x5563f5(0x14f)](Array[_0x5563f5(0xbe)](_0x10ac3c));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x184),(_0x413fd6,_0x3caf88)=>{const _0x2a4acb=_0x2ca398;this[_0x2a4acb(0x110)]?.[_0x2a4acb(0x184)](_0x3caf88);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xab),(_0xb53588,_0x1bf97d)=>{const _0x521e23=_0x2ca398;this[_0x521e23(0x110)]?.[_0x521e23(0xab)](_0x1bf97d[_0x521e23(0x1d8)],_0x1bf97d[_0x521e23(0x15c)]);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x176),(_0x589f31,_0x521b90)=>{const _0x18ee29=_0x2ca398;this[_0x18ee29(0x1bc)](_0x521b90);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x1ae),(_0x1d0e9f,_0x14e0ed)=>{const _0x3b6ff2=_0x2ca398;this[_0x3b6ff2(0x110)]?.[_0x3b6ff2(0x1ae)](_0x14e0ed[_0x3b6ff2(0xf8)],_0x14e0ed[_0x3b6ff2(0x15e)],_0x14e0ed[_0x3b6ff2(0x181)]);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xc6),()=>{const _0xdc7e12=_0x2ca398;this[_0xdc7e12(0x13a)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x133),()=>{const _0x451dd6=_0x2ca398;this[_0x451dd6(0x1b5)]();}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x15f),(_0x4b3a4d,_0x28db44)=>{const _0x1c9139=_0x2ca398;this[_0x1c9139(0x110)]?.[_0x1c9139(0x1c3)](_0x28db44);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xf0),(_0x3f7395,{replyId:_0x392b3b})=>{const _0x99a17e=_0x2ca398;console[_0x99a17e(0x137)](_0x99a17e(0xbd),_0x392b3b);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x146),(_0x29d9db,{replyId:_0x17776c})=>{const _0x215e04=_0x2ca398;console[_0x215e04(0x137)](_0x215e04(0xf7),_0x17776c);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x164),(_0x274205,_0x428b05)=>{const _0x322858=_0x2ca398;this[_0x322858(0x192)][_0x322858(0x169)][_0x322858(0x151)](_0x16a9ea)[_0x322858(0x96)](),this[_0x322858(0x138)](_0x428b05);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x100),(_0x2607df,{replyId:_0x3ea529,partIndex:_0x2d90a4})=>{const _0x41b9da=_0x2ca398;this[_0x41b9da(0x18f)]=this[_0x41b9da(0x135)][_0x41b9da(0x161)],this[_0x41b9da(0xb2)](_0x3ea529,_0x2d90a4);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x13f),(_0x1650da,{replyId:_0x20e702,partIndex:_0x4b873e})=>{const _0x3589a1=_0x2ca398,_0x503135=this[_0x3589a1(0x163)](_0x20e702,_0x4b873e);_0x503135&&_0x3589a1(0x17a)!=_0x503135[_0x3589a1(0x188)][_0x3589a1(0x1a4)][_0x3589a1(0x12a)]&&this[_0x3589a1(0x16a)][_0x3589a1(0x1ba)]([_0x503135[_0x3589a1(0x188)]],_0x3589a1(0xbb));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x8e),()=>{const _0x4a76ee=_0x2ca398;this[_0x4a76ee(0x16a)][_0x4a76ee(0x8d)](_0x4a76ee(0xbb));}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xc8),(_0x2d004f,_0x68a48c)=>{const _0x4cc344=_0x2ca398;this[_0x4cc344(0x192)][_0x4cc344(0x169)][_0x4cc344(0x151)](_0x16a9ea)[_0x4cc344(0x96)](),this[_0x4cc344(0xaf)](_0x68a48c);}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0xde),async(_0x1f5b85,_0x2a9f39)=>{const _0x22be74=_0x2ca398,{reply:_0x17a61f}=this[_0x22be74(0xb5)](_0x2a9f39[_0x22be74(0x9e)]),_0x1c624e=_0x10405a(this[_0x22be74(0x192)]),_0x29a132=_0x3580fd({'editor':_0x1c624e,'changeGroups':_0x17a61f[_0x22be74(0x157)],'documentContextContent':_0x17a61f[_0x22be74(0xc5)],'showDiff':_0x2a9f39[_0x22be74(0x161)]});await this[_0x22be74(0x135)][_0x22be74(0x13d)]({'id':_0x17a61f['id'],'parts':_0x29a132,'renderingStrategy':_0x22be74(0xac)});}),this[_0x2ca398(0xcb)](this[_0x2ca398(0x135)],_0x2ca398(0x11b),(_0x8646f2,{replyId:_0x503c98,partIndex:_0x907407})=>{const _0x19b6e8=_0x2ca398;this[_0x19b6e8(0x1a5)]?.[_0x19b6e8(0x9e)]==_0x503c98&&this[_0x19b6e8(0x1a5)]?.[_0x19b6e8(0x10b)]==_0x907407&&this[_0x19b6e8(0x192)][_0x19b6e8(0x169)][_0x19b6e8(0x151)](_0x16a9ea)[_0x19b6e8(0x96)]();const {reply:_0x8ded17}=this[_0x19b6e8(0xb5)](_0x503c98);_0x8ded17[_0x19b6e8(0x1e3)](_0x907407,_0x19b6e8(0x1d9)),this[_0x19b6e8(0x16a)][_0x19b6e8(0x8d)](_0x19b6e8(0xbb));});}async[_0x4f553e(0xb3)](){const _0x1d3d01=_0x4f553e;this[_0x1d3d01(0x192)]instanceof _0x277810?this[_0x1d3d01(0x174)](this[_0x1d3d01(0x192)]):this[_0x1d3d01(0xcb)](this[_0x1d3d01(0x192)][_0x1d3d01(0x115)],_0x1d3d01(0x180),(_0x27d9d0,_0x4b8854)=>{const _0x2a224f=_0x1d3d01;_0x4b8854['on'](_0x2a224f(0x97),()=>{const _0x39b196=_0x2a224f;this[_0x39b196(0x174)](_0x4b8854);});}),await this[_0x1d3d01(0x106)]();}[_0x4f553e(0x138)](_0x1c5ac2){const _0x593662=_0x4f553e,_0x1943a6=_0x10405a(this[_0x593662(0x192)]);if(!_0x1943a6[_0x593662(0x169)][_0x593662(0x104)](_0x593662(0x150)))return;const _0x207c00=this[_0x593662(0x192)][_0x593662(0x169)][_0x593662(0x151)](_0x593662(0x160)),{reply:_0x534f35,interaction:_0x539ff0}=this[_0x593662(0xb5)](_0x1c5ac2[_0x593662(0x9e)]),_0x2a30aa=this[_0x593662(0x163)](_0x1c5ac2[_0x593662(0x9e)],_0x1c5ac2[_0x593662(0x10b)]),_0x574e6a=void 0x0!==_0x1c5ac2[_0x593662(0x10b)]?[_0x534f35[_0x593662(0x157)][_0x1c5ac2[_0x593662(0x10b)]]]:_0x534f35[_0x593662(0x157)][_0x593662(0x14d)](_0x1851f8=>_0x593662(0x1c7)==_0x1851f8[_0x593662(0x1c6)]),_0x5944d4=_0x574e6a[_0x593662(0xda)](_0x2cd8a7=>_0x534f35[_0x593662(0x157)][_0x593662(0x1ab)](_0x2cd8a7));_0x5944d4[_0x593662(0x153)](_0xf85b33=>_0x534f35[_0x593662(0x1e3)](_0xf85b33,_0x593662(0xd2)));const _0x16193c=_0x1ad353({'editor':_0x1943a6,'reply':_0x534f35,'interaction':_0x539ff0,'groups':_0x574e6a,'transform':!0x0,'documentCompare':_0x207c00,'documentCompareOptions':{'anchor':_0x593662(0x14a),'markDeletions':!0x0}});let _0x5f53b8;_0x2a30aa&&this[_0x593662(0xb8)](_0x2a30aa[_0x593662(0x188)]),_0x1943a6[_0x593662(0xfe)][_0x593662(0xdf)](_0x5dee0e=>{const _0x207a99=_0x593662;_0x5f53b8=_0x5dee0e[_0x207a99(0x8c)],_0x1943a6[_0x207a99(0x169)][_0x207a99(0x151)](_0x207a99(0x150))[_0x207a99(0x17d)](_0x16193c),this[_0x207a99(0x16a)][_0x207a99(0x8d)](_0x207a99(0xbb));}),this[_0x593662(0xd8)][_0x593662(0x187)](_0x5f53b8,{'interactionId':_0x539ff0['id'],'replyId':_0x534f35['id'],'indexes':_0x5944d4[_0x593662(0x112)]()}),this[_0x593662(0x10f)](_0x534f35);}[_0x4f553e(0xaf)](_0x5457cc){const _0x11784d=_0x4f553e,_0x3b626f=_0x10405a(this[_0x11784d(0x192)]),_0x45c5d2=this[_0x11784d(0x192)][_0x11784d(0x169)][_0x11784d(0x151)](_0x5d9df3),{reply:_0x5d9701,interaction:_0x597515}=this[_0x11784d(0xb5)](_0x5457cc[_0x11784d(0x9e)]),_0x1c2cd2=this[_0x11784d(0x163)](_0x5457cc[_0x11784d(0x9e)],_0x5457cc[_0x11784d(0x10b)]),_0x3c613c=void 0x0!==_0x5457cc[_0x11784d(0x10b)]?[_0x5d9701[_0x11784d(0x157)][_0x5457cc[_0x11784d(0x10b)]]]:_0x5d9701[_0x11784d(0x157)][_0x11784d(0x14d)](_0x20c99a=>_0x11784d(0x1c7)==_0x20c99a[_0x11784d(0x1c6)]),_0x56135e=_0x3c613c[_0x11784d(0xda)](_0x512bc0=>_0x5d9701[_0x11784d(0x157)][_0x11784d(0x1ab)](_0x512bc0));_0x56135e[_0x11784d(0x153)](_0x35f6c8=>_0x5d9701[_0x11784d(0x1e3)](_0x35f6c8,_0x11784d(0xd2)));const _0x58fcda=_0x1ad353({'editor':_0x3b626f,'reply':_0x5d9701,'interaction':_0x597515,'groups':_0x3c613c,'transform':!0x0,'documentCompare':_0x45c5d2,'documentCompareOptions':{'anchor':_0x11784d(0x14a),'markDeletions':!0x1}});let _0x8a9897;_0x1c2cd2&&this[_0x11784d(0xb8)](_0x1c2cd2[_0x11784d(0x188)]),_0x3b626f[_0x11784d(0xfe)][_0x11784d(0xdf)](_0x3d5bcc=>{const _0x8483e1=_0x11784d;_0x8a9897=_0x3d5bcc[_0x8483e1(0x8c)];for(const _0x3e089f of _0x58fcda)_0x3e089f[_0x8483e1(0xe9)]=_0x3b626f[_0x8483e1(0xfe)][_0x8483e1(0x1d6)][_0x8483e1(0x179)],_0x3d5bcc[_0x8483e1(0x8c)][_0x8483e1(0x1d2)](_0x3e089f),_0x3b626f[_0x8483e1(0xfe)][_0x8483e1(0xc1)](_0x3e089f);}),this[_0x11784d(0xd8)][_0x11784d(0x187)](_0x8a9897,{'interactionId':_0x597515['id'],'replyId':_0x5d9701['id'],'indexes':_0x56135e[_0x11784d(0x112)]()}),this[_0x11784d(0x10f)](_0x5d9701);}[_0x4f553e(0xb2)](_0x6ef504,_0x3e5ff8){const _0x4a9773=_0x4f553e,_0x29e8a9=_0x10405a(this[_0x4a9773(0x192)]),_0x28d6a5=this[_0x4a9773(0x163)](_0x6ef504,_0x3e5ff8),_0x1fe9b5=this[_0x4a9773(0x192)][_0x4a9773(0x169)][_0x4a9773(0x151)](_0x16a9ea);if(!_0x28d6a5)return void _0x1fe9b5[_0x4a9773(0x96)]();const {range:_0x3611e3,currentIndex:_0x1609fc,previousIndex:_0x1d5959,nextIndex:_0x34d193}=_0x28d6a5;if(this[_0x4a9773(0x1a5)]?.[_0x4a9773(0x9e)]==_0x6ef504&&this[_0x4a9773(0x1a5)]?.[_0x4a9773(0x10b)]==_0x1609fc)return;this[_0x4a9773(0x1a5)]={'replyId':_0x6ef504,'partIndex':_0x1609fc};const _0x412b12=new _0x3e84cd(_0x29e8a9[_0x4a9773(0x1b6)],{'showDiff':this[_0x4a9773(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x4a9773(0x1de)},'hideHeader':!0x0}),{reply:_0x198ee0}=this[_0x4a9773(0xb5)](_0x6ef504),_0x1f5c70=_0x3580fd({'editor':_0x29e8a9,'changeGroups':[_0x198ee0[_0x4a9773(0x157)][_0x1609fc]],'documentContextContent':_0x198ee0[_0x4a9773(0xc5)],'showDiff':this[_0x4a9773(0x18f)]});_0x412b12[_0x4a9773(0x128)]({'parts':_0x1f5c70,'renderingStrategy':_0x4a9773(0xac)});const _0x7b31fb=_0x1609fc!==_0x1d5959;this[_0x4a9773(0xb8)](_0x3611e3,!0x0),_0x1fe9b5[_0x4a9773(0xa3)]({'index':_0x1609fc,'title':_0x5269c3(this[_0x4a9773(0x192)][_0x4a9773(0x1b6)],_0x4a9773(0x122),(_0x1609fc+0x1)[_0x4a9773(0xe7)]()),'icon':_0x3ad88e,'mainView':_0x412b12,'showRotator':_0x7b31fb,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x3611e3]}),this[_0x4a9773(0x135)][_0x4a9773(0x12f)](_0x6ef504,_0x1609fc),this[_0x4a9773(0xcb)](_0x412b12,_0x4a9773(0xde),(_0x57e2bb,{showDiff:_0x3c3367})=>{const _0x418936=_0x4a9773;this[_0x418936(0x18f)]=_0x3c3367;const {reply:_0x317b66}=this[_0x418936(0xb5)](_0x6ef504),_0x5aab50=_0x3580fd({'editor':_0x29e8a9,'changeGroups':[_0x317b66[_0x418936(0x157)][_0x1609fc]],'documentContextContent':_0x317b66[_0x418936(0xc5)],'showDiff':_0x3c3367});_0x412b12[_0x418936(0x128)]({'parts':_0x5aab50,'renderingStrategy':_0x418936(0xac)});}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0xc8),()=>{const _0x342fcb=_0x4a9773;this[_0x342fcb(0xaf)]({'replyId':_0x6ef504,'partIndex':_0x1609fc}),_0x7b31fb?this[_0x342fcb(0xb2)](_0x6ef504,_0x34d193):_0x1fe9b5[_0x342fcb(0x96)]();}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x164),()=>{const _0x54c8d3=_0x4a9773;this[_0x54c8d3(0x138)]({'replyId':_0x6ef504,'partIndex':_0x1609fc}),_0x7b31fb?this[_0x54c8d3(0xb2)](_0x6ef504,_0x34d193):_0x1fe9b5[_0x54c8d3(0x96)]();}),_0x7b31fb&&(this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x1e2),()=>{const _0x253caa=_0x4a9773;this[_0x253caa(0xb2)](_0x6ef504,_0x34d193);}),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x144),()=>{const _0xe87984=_0x4a9773;this[_0xe87984(0xb2)](_0x6ef504,_0x1d5959);})),this[_0x4a9773(0xcb)](_0x1fe9b5,_0x4a9773(0x1dd),()=>{const _0x490ae0=_0x4a9773;this[_0x490ae0(0x88)](_0x1fe9b5),this[_0x490ae0(0x88)](_0x412b12),this[_0x490ae0(0x1a5)]=null;});}[_0x4f553e(0x163)](_0x41ce24,_0x1af229){const _0x1ac652=_0x4f553e,_0x51dba1=_0x10405a(this[_0x1ac652(0x192)]),{reply:_0x21f6aa,interaction:_0x559c5e}=this[_0x1ac652(0xb5)](_0x41ce24),_0x54c711=_0x21f6aa[_0x1ac652(0x157)][_0x1ac652(0x14d)](_0x319a08=>_0x1ac652(0x1c7)==_0x319a08[_0x1ac652(0x1c6)]),_0x4775e8=_0x54c711[_0x1ac652(0xda)](_0xcfcbc5=>_0x21f6aa[_0x1ac652(0x157)][_0x1ac652(0x1ab)](_0xcfcbc5));void 0x0===_0x1af229&&(_0x1af229=_0x4775e8[0x0]);const _0x5b2624=_0x4775e8[_0x1ac652(0x1ab)](_0x1af229);if(-0x1==_0x5b2624)return null;const _0x190727=0x0==_0x5b2624?_0x4775e8[_0x4775e8[_0x1ac652(0x140)]-0x1]:_0x4775e8[_0x5b2624-0x1],_0x581c07=_0x5b2624==_0x4775e8[_0x1ac652(0x140)]-0x1?_0x4775e8[0x0]:_0x4775e8[_0x5b2624+0x1],_0x1b2ed0=_0x54c711[_0x5b2624],_0x347f45=new _0x5b6d5a([]),_0x12ec76=new _0x5b6d5a([]);for(const _0x29c6ab of _0x1b2ed0[_0x1ac652(0xa0)])if(_0x1ac652(0x125)!=_0x29c6ab[_0x1ac652(0x18a)]&&_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x29c6ab[_0x1ac652(0x1ce)][_0x1ac652(0x1a9)](!0x0)),_0x1ac652(0x1a8)!=_0x29c6ab[_0x1ac652(0x18a)]){const _0x36022a=_0x1956c3(_0x158588=>_0x1f6704(_0x158588,_0x1ac652(0x1d0))==_0x29c6ab['id'],_0x21f6aa[_0x1ac652(0xc5)],!0x0);_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x36022a[_0x1ac652(0x1a9)](!0x0));}if(0x0==_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x140)]){if(_0x1b2ed0[_0x1ac652(0xa0)][0x0][_0x1ac652(0xfc)]){const _0x5dd79e=_0x219e9c(_0x1ac652(0x1d0),_0x1b2ed0[_0x1ac652(0xa0)][0x0][_0x1ac652(0xfc)],_0x21f6aa[_0x1ac652(0xc5)]);_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x1bd)](_0x5dd79e[_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x1bd)](_0x5dd79e[_0x1ac652(0x1a9)](!0x0)),_0x5dd79e[_0x1ac652(0x15d)]&&(_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x5dd79e[_0x1ac652(0x15d)][_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x5dd79e[_0x1ac652(0x15d)][_0x1ac652(0x1a9)](!0x0)));}else{const _0x14c0ff=_0x21f6aa[_0x1ac652(0xc5)][_0x1ac652(0x156)][0x0];if(!_0x14c0ff)return null;_0x347f45[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x14c0ff[_0x1ac652(0x1a9)](!0x0)),_0x12ec76[_0x1ac652(0x156)][_0x1ac652(0x171)](_0x14c0ff[_0x1ac652(0x1a9)](!0x0));}}const _0x2abcc8=_0x559c5e[_0x1ac652(0x17c)](),_0x59341a=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x2abcc8[_0x1ac652(0x90)]),_0x44ad82=_0x1996f6(_0x347f45),_0x467894=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x44ad82),_0x2a3f38=_0x51dba1[_0x1ac652(0xe2)][_0x1ac652(0x111)](_0x44ad82),_0x584daa=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x10e)](_0x467894,0x0),_0x1b4f6a=_0x1996f6(_0x12ec76),_0x2a79df={'anchor':_0x584daa,'markDeletions':!0x1},_0x2f27bb=_0x51dba1[_0x1ac652(0x169)][_0x1ac652(0x151)](_0x5d9df3)[_0x1ac652(0x1cf)](_0x44ad82,_0x1b4f6a,_0x2a79df)[_0x1ac652(0x18d)]();if(!_0x2f27bb[_0x1ac652(0x140)])return null;_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xdf)](_0xa45762=>{const _0x280b47=_0x1ac652;for(const _0xadb425 of _0x2f27bb)if(_0x280b47(0xae)==_0xadb425[_0x280b47(0x18a)]){const _0x1e4422=_0xadb425[_0x280b47(0x134)],_0x3f496d=_0xadb425[_0x280b47(0x124)],_0x1a87ce=new _0x321ea8(_0x1e4422,_0x3f496d);_0xa45762[_0x280b47(0x8c)][_0x280b47(0x1d2)](_0x1a87ce),_0x51dba1[_0x280b47(0xfe)][_0x280b47(0xc1)](_0x1a87ce);}else _0x280b47(0x1a7)!==_0xadb425[_0x280b47(0x18a)]&&(_0xadb425[_0x280b47(0xe9)]=null,_0xadb425[_0x280b47(0xa4)]=!0x1,_0xa45762[_0x280b47(0x8c)][_0x280b47(0x1d2)](_0xadb425),_0x51dba1[_0x280b47(0xfe)][_0x280b47(0xc1)](_0xadb425));});const _0x2aceee=_0x2fe0c8(_0x51dba1,_0x2f27bb,_0x467894);_0x5248cd(_0x51dba1[_0x1ac652(0xfe)],_0x2aceee);const _0x37744f=_0x2aceee[_0x1ac652(0xff)]()[_0x1ac652(0x158)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x43a5d4=_0x2aceee[_0x1ac652(0xff)]()[_0x1ac652(0x1c5)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x101fb1=[];let _0x19b512=_0x467894,_0x52556b=_0x2a3f38;for(let _0x2afc11=0x0;_0x2afc11<_0x43a5d4[_0x1ac652(0x140)];_0x2afc11++){const _0x463fb4=_0x19b512[_0x1ac652(0x12d)]-_0x43a5d4[_0x2afc11];_0x101fb1[_0x2afc11]=_0x52556b[_0x1ac652(0x12d)]-_0x463fb4,_0x19b512=_0x19b512[_0x1ac652(0x1bb)](_0x43a5d4[_0x2afc11]),_0x52556b=_0x52556b[_0x1ac652(0x1bb)](_0x101fb1[_0x2afc11]);}const _0x3d8e67=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xed)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x2a3f38,_0x37744f),_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x2a3f38,_0x101fb1)),_0x2c8cca=_0x2a3f38[_0x1ac652(0xf6)](0x0)[_0x1ac652(0x14b)](_0x53944a),_0x239e73=Array[_0x1ac652(0xbe)](_0x59341a[_0x1ac652(0x19c)]())[_0x1ac652(0xfd)](_0x25d524=>_0x25d524[_0x1ac652(0x14b)](_0x53944a)==_0x2c8cca)[_0x1ac652(0x1da)](),_0x43b6cc=_0x3d8e67[_0x1ac652(0x158)][_0x1ac652(0x182)][_0x1ac652(0x112)](),_0x47e122=_0x3d8e67[_0x1ac652(0x1c5)][_0x1ac652(0x182)][_0x1ac652(0x112)]();_0x43b6cc[0x0]=_0x239e73[0x0]+_0x43b6cc[0x0],_0x47e122[0x0]=_0x239e73[0x0]+_0x47e122[0x0];let _0x48da7d=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0xed)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0xaa)](),_0x43b6cc),_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x12b)](_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0xaa)](),_0x47e122));const _0x5dddb9=_0x51dba1[_0x1ac652(0xfe)][_0x1ac652(0x1d6)][_0x1ac652(0x94)][_0x1ac652(0x18d)](_0x2abcc8[_0x1ac652(0x179)]);for(const _0x286404 of _0x5dddb9)_0x48da7d=_0x584fd6[_0x1ac652(0x1b3)](_0x48da7d[_0x1ac652(0x1c4)](_0x286404));return{'range':_0x48da7d,'previousIndex':_0x190727,'nextIndex':_0x581c07,'currentIndex':_0x1af229};}[_0x4f553e(0x174)](_0x540066){const _0xf1ca70=_0x4f553e;if(!_0x540066[_0xf1ca70(0x169)][_0xf1ca70(0x104)](_0xf1ca70(0x11d)))return;const _0x43cf8a=_0x540066[_0xf1ca70(0x98)][_0xf1ca70(0x151)](_0xf1ca70(0x15a)),_0x527d46=_0x540066[_0xf1ca70(0x98)][_0xf1ca70(0x151)](_0xf1ca70(0x1d4));this[_0xf1ca70(0xcb)](_0x43cf8a,_0xf1ca70(0xf2),(_0x2907fd,_0x260892,_0x1045a6)=>{const _0x18904d=_0xf1ca70,_0xf4f676=this[_0x18904d(0xd8)][_0x18904d(0x151)](_0x260892);if(!_0xf4f676)return;const _0xcc68c4=this[_0x18904d(0x110)][_0x18904d(0x172)](_0xf4f676[_0x18904d(0x120)])[_0x18904d(0x14c)](_0xf4f676[_0x18904d(0x9e)]);_0xf4f676[_0x18904d(0xc7)][_0x18904d(0x153)](_0x3ecbf4=>_0xcc68c4[_0x18904d(0x1e3)](_0x3ecbf4,_0x18904d(0x1c7))),this[_0x18904d(0xd8)][_0x18904d(0x126)](_0x260892),this[_0x18904d(0xd8)][_0x18904d(0x187)](_0x1045a6,_0xf4f676);}),this[_0xf1ca70(0xcb)](_0x527d46,_0xf1ca70(0xf2),(_0x5700fb,_0x4ce3ca,_0x20aa08)=>{const _0x1dc504=_0xf1ca70,_0x186515=this[_0x1dc504(0xd8)][_0x1dc504(0x151)](_0x4ce3ca);if(!_0x186515)return;const _0xa3c636=this[_0x1dc504(0x110)][_0x1dc504(0x172)](_0x186515[_0x1dc504(0x120)])[_0x1dc504(0x14c)](_0x186515[_0x1dc504(0x9e)]);_0x186515[_0x1dc504(0xc7)][_0x1dc504(0x153)](_0x122f53=>_0xa3c636[_0x1dc504(0x1e3)](_0x122f53,_0x1dc504(0xd2))),this[_0x1dc504(0xd8)][_0x1dc504(0x126)](_0x4ce3ca),this[_0x1dc504(0xd8)][_0x1dc504(0x187)](_0x20aa08,_0x186515);});}async[_0x4f553e(0x16e)](_0x4ebb45){const _0x3b89cf=_0x4f553e;this[_0x3b89cf(0x192)][_0x3b89cf(0x169)][_0x3b89cf(0x151)](_0x16a9ea)[_0x3b89cf(0x96)](),this[_0x3b89cf(0x135)][_0x3b89cf(0x10a)](_0x3b89cf(0xac)),this[_0x3b89cf(0x135)][_0x3b89cf(0x143)](!0x0),await this[_0x3b89cf(0x1e1)]();try{const _0x4618cb=this[_0x3b89cf(0x192)][_0x3b89cf(0x169)][_0x3b89cf(0x151)](_0x74747e);this[_0x3b89cf(0x183)]('\x20'),_0x4618cb[_0x3b89cf(0x19e)][_0x3b89cf(0xe6)](_0x3b89cf(0xb7)),await this[_0x3b89cf(0x106)](_0x4ebb45);const {sessionId:_0x5c3a39}=this[_0x3b89cf(0x16a)][_0x3b89cf(0x131)]();await this[_0x3b89cf(0x110)][_0x3b89cf(0x1c1)](_0x4ebb45,_0x5c3a39),this[_0x3b89cf(0x110)][_0x3b89cf(0x1b8)]()&&this[_0x3b89cf(0x110)][_0x3b89cf(0x1dc)](_0x5269c3(this[_0x3b89cf(0x192)][_0x3b89cf(0x1b6)],_0x3b89cf(0x113)));}catch(_0x4b5c28){console[_0x3b89cf(0x1b2)](_0x3b89cf(0x185),_0x4b5c28);}finally{this[_0x3b89cf(0x135)][_0x3b89cf(0x10a)](_0x3b89cf(0x89)),this[_0x3b89cf(0x135)][_0x3b89cf(0x143)](!0x1);}}[_0x4f553e(0x178)](_0x9c19b3){const _0x1b2b7d=_0x4f553e;this[_0x1b2b7d(0x110)]['id']===_0x9c19b3&&this[_0x1b2b7d(0x106)]();}async[_0x4f553e(0xf5)](){const _0x418b25=_0x4f553e,_0xe28f88=this[_0x418b25(0x16a)][_0x418b25(0x8b)]();this[_0x418b25(0x110)]?.[_0x418b25(0xd1)](_0xe28f88),this[_0x418b25(0x110)]?.[_0x418b25(0x1dc)](_0x5269c3(this[_0x418b25(0x192)][_0x418b25(0x1b6)],_0x418b25(0x113)));}[_0x4f553e(0x132)](){const _0x51520b=_0x4f553e;this[_0x51520b(0x110)]?.[_0x51520b(0x1ac)]();}[_0x4f553e(0xd4)](){const _0x1029b0=_0x4f553e;this[_0x1029b0(0x135)][_0x1029b0(0xd4)]();}async[_0x4f553e(0x18e)](){const _0x16df22=_0x4f553e;await this[_0x16df22(0x106)]();}async[_0x4f553e(0xb0)]({message:_0x566059,quickActionData:_0xafa489}){const _0x7f2215=_0x4f553e;await this[_0x7f2215(0x108)]({'userMessage':_0x566059,'quickActionData':_0xafa489});}[_0x4f553e(0x197)](){const _0x12befc=_0x4f553e,_0x225f5e=this[_0x12befc(0x192)][_0x12befc(0x1cc)][_0x12befc(0x151)](_0x12befc(0x1db));if(!_0x225f5e)throw new _0x26389e(_0x12befc(0x142),this);return _0x225f5e;}async[_0x4f553e(0x106)](_0x359fa2){const _0x3dd563=_0x4f553e;try{this[_0x3dd563(0x135)][_0x3dd563(0x102)](),await this[_0x3dd563(0xb1)](_0x359fa2);}catch(_0x37a29a){_0x24ffd0(_0x3dd563(0xd0),_0x37a29a),this[_0x3dd563(0x110)]=void 0x0,this[_0x3dd563(0x135)][_0x3dd563(0x165)]();}}async[_0x4f553e(0xb1)](_0x3a2a71){const _0x44eebd=_0x4f553e,_0x27e636=this[_0x44eebd(0x192)][_0x44eebd(0x169)][_0x44eebd(0x151)](_0x16a9ea);let _0xefb62b;_0x27e636[_0x44eebd(0x103)]&&_0x27e636[_0x44eebd(0x96)](),_0xefb62b=_0x3a2a71||!this[_0x44eebd(0x110)]?this[_0x44eebd(0x192)][_0x44eebd(0x1cc)][_0x44eebd(0x151)](_0x44eebd(0x16d)):this[_0x44eebd(0x110)][_0x44eebd(0xd5)]['id'],await this[_0x44eebd(0x1e1)]();const _0x692d1b=this[_0x44eebd(0x197)](),_0x4a2b3b=_0x3a2a71||_0x2cbd4a();this[_0x44eebd(0x110)]=new _0x1ed617({'connector':this[_0x44eebd(0x9f)],'chatModels':this[_0x44eebd(0x109)],'defaultModelId':_0xefb62b,'conversationId':_0x4a2b3b,'group':_0x692d1b,'getEditor':()=>_0x10405a(this[_0x44eebd(0x192)])}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x159),(_0x57d5cf,_0x30ed54)=>{const _0x53513d=_0x44eebd;_0x30ed54[_0x53513d(0xe0)]=this[_0x53513d(0x18c)](_0x30ed54[_0x53513d(0xe0)],this[_0x53513d(0x192)][_0x53513d(0x1cc)][_0x53513d(0x151)](_0x53513d(0xa8))),this[_0x53513d(0x135)][_0x53513d(0x1b4)](_0x30ed54),this[_0x53513d(0x135)][_0x53513d(0x123)](),this[_0x53513d(0x135)][_0x53513d(0xce)](),this[_0x53513d(0x135)][_0x53513d(0xa1)](),_0x3a2a71||(this[_0x53513d(0x135)][_0x53513d(0x1a2)](),this[_0x53513d(0x110)]?.[_0x53513d(0x1dc)](_0x5269c3(this[_0x53513d(0x192)][_0x53513d(0x1b6)],_0x53513d(0x113))));}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x117),(_0x121ab0,_0xac1d25)=>{const _0x22b62d=_0x44eebd;this[_0x22b62d(0x135)][_0x22b62d(0x11a)](_0xac1d25[_0x22b62d(0xfa)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1a0),(_0x2c18e5,_0x1ab8c2)=>{const _0x26f9d4=_0x44eebd;this[_0x26f9d4(0x135)][_0x26f9d4(0x193)](_0x1ab8c2);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xc3),()=>{const _0x3a2307=_0x44eebd;this[_0x3a2307(0x135)][_0x3a2307(0x1b0)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x152),()=>{const _0x521a3c=_0x44eebd;this[_0x521a3c(0x135)][_0x521a3c(0x1b0)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1cb),(_0x1734d5,_0x4c1f85)=>{const _0x46887a=_0x44eebd;this[_0x46887a(0x135)][_0x46887a(0x170)](_0x4c1f85,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xcf),(_0x2e8a05,_0x3e47e8)=>{const _0x4c22ea=_0x44eebd;this[_0x4c22ea(0x135)][_0x4c22ea(0x170)](_0x3e47e8,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1be),()=>{const _0x40740d=_0x44eebd;this[_0x40740d(0x135)][_0x40740d(0x91)]();}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x186),async()=>{const _0x420082=_0x44eebd;await this[_0x420082(0x135)][_0x420082(0x11c)]();}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xe5),(_0x3ad70e,_0x1c53f5)=>{const _0x1d3e62=_0x44eebd;this[_0x1d3e62(0x135)][_0x1d3e62(0x9b)](_0x1c53f5['id']);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x190),(_0x4ed543,_0x3d4b51,_0x4e27e0)=>{const _0x56c0b4=_0x44eebd;this[_0x56c0b4(0x183)](_0x3d4b51,_0x4e27e0);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xa2),(_0x738782,_0x28c64b)=>{const _0x3c93a6=_0x44eebd;_0x3c93a6(0x15b)===_0x28c64b[_0x3c93a6(0x18a)]?this[_0x3c93a6(0x135)][_0x3c93a6(0x1cd)](_0x28c64b):this[_0x3c93a6(0x135)][_0x3c93a6(0x101)](_0x28c64b);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x147),async(_0x430394,_0x5b52af,_0x287394)=>{const _0x2615e0=_0x44eebd;await this[_0x2615e0(0x168)]({'reply':_0x5b52af,'changeGroups':_0x287394});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xdb),(_0x314aa9,{reply:_0x19919a,index:_0x317f22,state:_0x483236})=>{const _0x5ae96c=_0x44eebd;this[_0x5ae96c(0x135)][_0x5ae96c(0x1d1)]({'id':_0x19919a['id'],'index':_0x317f22,'state':_0x483236});}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x10c),(_0x222be,_0x1eeea0)=>{const _0x4aec95=_0x44eebd;if(this[_0x4aec95(0x135)][_0x4aec95(0xfb)](_0x1eeea0[_0x4aec95(0x1c9)],_0x1eeea0[_0x4aec95(0x1ca)]),_0x4aec95(0x1e4)===_0x1eeea0[_0x4aec95(0x1c9)][_0x4aec95(0x18a)]){const _0x281a5f=[..._0x10405a(this[_0x4aec95(0x192)])[_0x4aec95(0xfe)][_0x4aec95(0x1d6)][_0x4aec95(0x1e4)][_0x4aec95(0x18b)]()];this[_0x4aec95(0x16a)][_0x4aec95(0x1ba)](_0x281a5f,_0x4aec95(0x1b7)+this[_0x4aec95(0x110)]?.['id']);}}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x114),(_0x5345c6,_0x4d8bde)=>{const _0x26fc6d=_0x44eebd;this[_0x26fc6d(0x135)][_0x26fc6d(0x176)](_0x4d8bde[_0x26fc6d(0xcd)]),_0x26fc6d(0xf3)==_0x4d8bde[_0x26fc6d(0xcd)]&&this[_0x26fc6d(0x132)](),_0x26fc6d(0x1e4)===_0x4d8bde[_0x26fc6d(0x18a)]&&this[_0x26fc6d(0x16a)][_0x26fc6d(0x8d)](_0x26fc6d(0x1b7)+this[_0x26fc6d(0x110)]?.['id']);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xca),(_0x46ee93,_0x238097)=>{const _0x506664=_0x44eebd;this[_0x506664(0x135)][_0x506664(0xd7)](_0x238097[_0x506664(0x1c9)][_0x506664(0xcd)],_0x238097[_0x506664(0x1ca)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x155),(_0x767c64,_0x2fb937)=>{const _0x15e486=_0x44eebd;this[_0x15e486(0x135)][_0x15e486(0x1c8)](_0x2fb937[_0x15e486(0xea)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xc0),(_0x7c1a9d,_0x56f302)=>{const _0x38da7d=_0x44eebd;this[_0x38da7d(0x135)][_0x38da7d(0xd9)](_0x56f302[_0x38da7d(0x1a3)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x166),(_0x498028,_0x323e16)=>{const _0x52783c=_0x44eebd;this[_0x52783c(0x135)][_0x52783c(0x189)](_0x323e16[_0x52783c(0xf8)],_0x323e16[_0x52783c(0x1d8)],_0x323e16[_0x52783c(0xee)],_0x323e16[_0x52783c(0x181)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1bf),(_0x19815d,_0x1a5899)=>{const _0x45a33d=_0x44eebd;this[_0x45a33d(0x135)][_0x45a33d(0xbf)](_0x1a5899[_0x45a33d(0xf8)],_0x1a5899[_0x45a33d(0x14e)],_0x1a5899[_0x45a33d(0x12e)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1af),(_0x5cf358,_0x82857a)=>{const _0x20b11d=_0x44eebd;this[_0x20b11d(0x135)][_0x20b11d(0xb6)](_0x82857a);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0xdc),(_0x3c235b,_0x5f117e)=>{const _0x56131d=_0x44eebd;this[_0x56131d(0x135)][_0x56131d(0xa6)](_0x5f117e[_0x56131d(0xd5)],_0x5f117e[_0x56131d(0x1d5)]);}),this[_0x44eebd(0x110)]['on'](_0x44eebd(0x1b2),(_0x159ec2,{error:_0x3f1e61,interactionId:_0x4a29b1,fileName:_0x345d3e,url:_0x27ace4,sourceId:_0x23c928,sourceLabel:_0x12c164})=>{const _0x3f5dfd=_0x44eebd,_0xc95019=_0x4a29b1?_0x4a29b1+':'+_0x2cbd4a():_0x2cbd4a();_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x95))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0xbc)]({'staticMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xef)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x9a))||_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0xd0))?(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xb9)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x177))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x12c),_0x345d3e),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0xad))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0xdd),_0x27ace4),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x13e))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x19f)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x105))?this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x141)),'id':_0xc95019}):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x9d))?(_0x23c928&&this[_0x3f5dfd(0x135)][_0x3f5dfd(0x17f)](_0x23c928),this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x116),_0x12c164||_0x3f5dfd(0x1d8)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):_0x3f1e61[_0x3f5dfd(0x16f)][_0x3f5dfd(0x1e0)](_0x3f5dfd(0x92))?(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x10d)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61)):(this[_0x3f5dfd(0x135)][_0x3f5dfd(0x194)]({'errorMessage':_0x5269c3(this[_0x3f5dfd(0x192)][_0x3f5dfd(0x1b6)],_0x3f5dfd(0x1c2)),'id':_0xc95019}),this[_0x3f5dfd(0xec)](_0x3f1e61));}),await this[_0x44eebd(0x110)][_0x44eebd(0xc4)](this[_0x44eebd(0x192)][_0x44eebd(0x1cc)][_0x44eebd(0x151)](_0x44eebd(0x167))),_0x3a2a71||await this[_0x44eebd(0x110)][_0x44eebd(0x158)]();}async[_0x4f553e(0x108)]({userMessage:_0x25f0c8,quickActionData:_0x2c615f}){const _0x1f7baa=_0x4f553e;if(!this[_0x1f7baa(0x110)])throw new _0x26389e(_0x1f7baa(0xc9));this[_0x1f7baa(0x110)][_0x1f7baa(0x19a)]()&&await this[_0x1f7baa(0x110)][_0x1f7baa(0xe4)](this[_0x1f7baa(0x16a)][_0x1f7baa(0x131)]()),this[_0x1f7baa(0x110)]['id']&&this[_0x1f7baa(0x110)][_0x1f7baa(0x13b)]&&await this[_0x1f7baa(0x110)][_0x1f7baa(0xf9)]({'userMessage':_0x25f0c8,'quickActionData':_0x2c615f}),this[_0x1f7baa(0xe8)]();}[_0x4f553e(0xe8)](){const _0x2cdf7f=_0x4f553e,_0x1b0037=_0x10405a(this[_0x2cdf7f(0x192)])[_0x2cdf7f(0xfe)],_0x306cf6=Array[_0x2cdf7f(0xbe)](_0x1b0037[_0x2cdf7f(0x1df)][_0x2cdf7f(0xf1)](_0x58a634));_0x1b0037[_0x2cdf7f(0xdf)](_0xf61587=>{const _0x36594a=_0x2cdf7f;_0x306cf6[_0x36594a(0x153)](_0x3c94b9=>_0xf61587[_0x36594a(0xb4)](_0x3c94b9));});}[_0x4f553e(0x136)](){const _0x3a338e=_0x4f553e;console[_0x3a338e(0x137)](_0x3a338e(0x13c));}[_0x4f553e(0x8f)](_0x4b7668){const _0x4275a5=_0x4f553e;this[_0x4275a5(0x135)][_0x4275a5(0x191)](_0x4b7668);}[_0x4f553e(0xec)](_0xed2dd8){const _0x5c560e=_0x4f553e;_0x24ffd0(_0xed2dd8[_0x5c560e(0x16f)]);}[_0x4f553e(0x1bc)](_0x4b4af1){const _0x462388=_0x4f553e;this[_0x462388(0x110)]?.[_0x462388(0x9c)](_0x4b4af1);}[_0x4f553e(0x13a)](){const _0x1c6995=_0x4f553e;this[_0x1c6995(0x110)]?.[_0x1c6995(0xc6)]();}[_0x4f553e(0x1b5)](){const _0x321cfb=_0x4f553e;this[_0x321cfb(0x110)]?.[_0x321cfb(0x133)]();}[_0x4f553e(0xb5)](_0x536bf0){const _0x512348=_0x4f553e,[_0x7bcf5d,_0xcb595d]=_0x536bf0[_0x512348(0xba)](':'),_0x4c61f1=this[_0x512348(0x110)][_0x512348(0x172)](_0x7bcf5d),_0x3e8e5d=_0x4c61f1[_0x512348(0x14c)](_0xcb595d);return{'interaction':_0x4c61f1,'reply':_0x3e8e5d};}[_0x4f553e(0xb8)](_0x4c14bf,_0x65ef0b=!0x1){const _0x2b6868=_0x4f553e,_0xb8e583=_0x10405a(this[_0x2b6868(0x192)]),_0x22055b={'target':_0xb8e583[_0x2b6868(0x1a1)][_0x2b6868(0x19e)][_0x2b6868(0x17b)][_0x2b6868(0x118)](_0xb8e583[_0x2b6868(0x1a1)][_0x2b6868(0x129)][_0x2b6868(0xd3)](_0x4c14bf)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x65ef0b};_0x65ef0b&&(_0x22055b[_0x2b6868(0xeb)]=!0x0),_0xa319c1(_0x22055b);}[_0x4f553e(0x183)](_0x515041,_0x5fbf12=!0x1){const _0x27eeba=_0x4f553e;this[_0x27eeba(0x135)][_0x27eeba(0x190)](_0x515041||_0x5269c3(this[_0x27eeba(0x192)][_0x27eeba(0x1b6)],_0x27eeba(0x154)),_0x5fbf12);}[_0x4f553e(0x18c)](_0x113154,_0x1f8642){const _0x49d68b=_0x4f553e;let _0x4b3e5d;if(_0x1f8642){_0x4b3e5d=[];const _0x23043e=_0x49d68b(0xa5)==typeof _0x1f8642?[_0x1f8642[_0x49d68b(0x1ad)]()]:_0x1f8642[_0x49d68b(0xda)](_0x5269ee=>_0x5269ee[_0x49d68b(0x1ad)]());for(const _0x21da10 of _0x23043e)for(const _0x1daa88 of _0x113154)(_0x1daa88['id'][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88[_0x49d68b(0x175)][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88[_0x49d68b(0x130)][_0x49d68b(0x1ad)]()===_0x21da10||_0x1daa88['id'][_0x49d68b(0x1ad)]()[_0x49d68b(0x1e0)](_0x21da10))&&_0x4b3e5d[_0x49d68b(0x171)](_0x1daa88);}else _0x4b3e5d=_0x113154;return _0x4b3e5d;}async[_0x4f553e(0x168)]({reply:_0xfa7caa,changeGroups:_0x4ee84f,renderingStrategy:_0x5b0c4e}){const _0x567291=_0x4f553e,{id:_0xe0f876,isDone:_0x1688d6,type:_0x55ca8f,parsedContent:_0x48fc1b}=_0xfa7caa;if(_0x567291(0x198)===_0x55ca8f){const _0x15f3b4=_0x10405a(this[_0x567291(0x192)]),_0x7db71b=_0x3580fd({'editor':_0x15f3b4,'showDiff':this[_0x567291(0x135)][_0x567291(0x161)],'changeGroups':_0x4ee84f,'documentContextContent':_0xfa7caa[_0x567291(0xc5)]});await this[_0x567291(0x135)][_0x567291(0x13d)]({'id':_0xe0f876,'parts':_0x7db71b,'renderingStrategy':_0x5b0c4e,'isDone':_0x1688d6});}else _0x567291(0x15b)===_0x55ca8f&&await this[_0x567291(0x135)][_0x567291(0x8a)]({'id':_0xe0f876,'parsedContent':_0x48fc1b,'renderingStrategy':_0x5b0c4e,'isDone':_0x1688d6});_0x1688d6&&_0xfa7caa[_0x567291(0x1d7)][_0x567291(0x140)]>0x0&&this[_0x567291(0x135)][_0x567291(0x127)](_0xe0f876,_0xfa7caa[_0x567291(0x1d7)]);}async[_0x4f553e(0x1e1)](){const _0xe8a9a7=_0x4f553e,_0x77a6e5=this[_0xe8a9a7(0x110)]?.[_0xe8a9a7(0x11f)];_0x77a6e5&&(_0x77a6e5[_0xe8a9a7(0x121)](),this[_0xe8a9a7(0x135)][_0xe8a9a7(0x11e)](_0x77a6e5));}async[_0x4f553e(0x1a6)](){const _0x3563d8=_0x4f553e,_0x432aba=this[_0x3563d8(0x110)]?.[_0x3563d8(0x11f)];if(_0x432aba){for await(const _0x7e1900 of _0x432aba[_0x3563d8(0xc2)])await this[_0x3563d8(0x168)]({'reply':_0x7e1900,'changeGroups':_0x7e1900[_0x3563d8(0x157)],'renderingStrategy':_0x3563d8(0xac)});}}[_0x4f553e(0x10f)](_0x4b816e){const _0xad828a=_0x4f553e,_0x4f30b0={'positiveCount':_0x4b816e[_0xad828a(0x157)][_0xad828a(0x14d)](_0x21d484=>_0xad828a(0xd2)===_0x21d484[_0xad828a(0x1c6)])[_0xad828a(0x140)],'totalCount':_0x4b816e[_0xad828a(0x157)][_0xad828a(0x140)]},_0x543e69=this[_0xad828a(0x110)][_0xad828a(0x172)](_0x4b816e[_0xad828a(0x120)])[_0xad828a(0xa7)];this[_0xad828a(0x9f)][_0xad828a(0x107)](this[_0xad828a(0x110)]['id'],_0x543e69,_0x4f30b0);}}
|
package/src/aichat/aichatui.d.ts
CHANGED
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x44fd07=_0x163a;(function(_0x4afb0e,_0x875e72){const _0x161b8d=_0x163a,_0x369bcf=_0x4afb0e();while(!![]){try{const _0x437686=-parseInt(_0x161b8d(0x243))/0x1*(parseInt(_0x161b8d(0x223))/0x2)+parseInt(_0x161b8d(0x1ed))/0x3*(parseInt(_0x161b8d(0x225))/0x4)+parseInt(_0x161b8d(0x1ee))/0x5*(-parseInt(_0x161b8d(0x1ff))/0x6)+parseInt(_0x161b8d(0x1e7))/0x7+parseInt(_0x161b8d(0x24b))/0x8+parseInt(_0x161b8d(0x1de))/0x9*(parseInt(_0x161b8d(0x202))/0xa)+-parseInt(_0x161b8d(0x1e4))/0xb;if(_0x437686===_0x875e72)break;else _0x369bcf['push'](_0x369bcf['shift']());}catch(_0x3787de){_0x369bcf['push'](_0x369bcf['shift']());}}}(_0x4362,0x96035));import{ContextPlugin as _0x25645c}from'ckeditor5/src/core.js';function _0x163a(_0x483e16,_0x44e509){const _0x4362df=_0x4362();return _0x163a=function(_0x163abb,_0x4d1ddd){_0x163abb=_0x163abb-0x1dc;let _0x1d28f0=_0x4362df[_0x163abb];return _0x1d28f0;},_0x163a(_0x483e16,_0x44e509);}import{_isMotionReduced as _0xd67efe}from'ckeditor5/src/utils.js';import{AIChatView as _0x1b73db}from'./ui/aichatview.js';function _0x4362(){const _0x3098b0=['streaming','interactionId','_isTrackChangesCommandValueBound','stopInteraction','12EGDmHr','conversation-start','last','12128560uuXlLF','setAddContextOptions','getItemIds','startAutoScroll','stopAutoScroll','ai-suggestion-reply','filter','isDisabled','resetConversationTitle','setWebSearch','isTrackChangesOn','isVisible','children','availableModels','markFeedItemAsDone','chatControls','capabilities','AI_CHAT_HEADING','remove','scrollToSuggestion','isReasoningEnabled','_promiseQueue','isPending','startsWith','queueEmptyPromise','addFeedItemUserMessage','removeContextItem','setConversationContext','setIsUploadInProgress','ai.availableReplyActions','updateReplyItem','updateSuggestionItem','resetMessageInput','17222PofNpt','isLoading','1187512myOQml','isPremiumPlugin','updateResourceState','removeFeedInteraction','forEach','bind','clearConversationContextUI','isOfficialPlugin','addContextItem','trackChanges','closeSourceResourceBalloon','setSelectedModel','disableModelSelector','value','_titleAnimationInterval','interaction-header','showResizeButton','setModelList','AITabs','areActionsDisabled','get','</p>','isBusy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','label','_animateConversationTitle','user-message','contextItems','AIChatUI','commands','33knvtrM','updateFeedItemAIReplySuggestionContent','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','feedItemRenderingStrategy','enableControls','AI_CHAT_WELCOME_MESSAGE','updateFeedItemAIReplyContent','3599640udpcpN','config','_getInputPlaceholder','displayedPrompt','find','updateFeedInteractionHeader','finishInteraction','enableModelSelector','updateCapabilities','setReasoning','addFeedItemError','requires','locale','from','_view','isDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','markItemAsDone','then','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','removeItem','context','updateFeedItemAIReplySources','renderingStrategy','_interactionPromiseResolver','quickActionData','setInputPlaceholder','options','showDiff','chat','isMaximized','scrollFeedToSuggestion','addFeedItemAISuggestion','updateFeedItemAIReplySuggestionPartState','<p>','view','addFeedItemStaticMessage','clearPendingContextUI','populateSourceResourceBalloon','length','error-message','values','chatFeed','setLoadingMessage','enqueue','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','setFeedItemRenderingStrategy','addItem','delegate','focusPromptInput','isWebSearchEnabled','setModel','9RoCvFz','setContextItemLoading','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addTab','addFeedItemAIReply','8172802RoEBwW','toggleSuggestionDisplayMode','addFeedInteractionHeader','4157993OMDJJx','plugins','destroy','_getLoadingMessage','updateWebSources','setIsMaximized','3wDMBfu','2280225XZTYIY','pluginName','createConversation','chatHeader','setConversationTitle','set','clear','ai-reply','updateSuggestionPartState','userMessage','startInteraction','toggleLoadingSkeleton','abort'];_0x4362=function(){return _0x3098b0;};return _0x4362();}import{AITabs as _0x47faf9}from'../aitabs/aitabs.js';import{getTranslation as _0x310bd9}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x56a914}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x5c5fde}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0xd7296c}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x38881c}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x391d2e}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x25645c{static get[_0x44fd07(0x256)](){return[_0x47faf9];}[_0x44fd07(0x259)];static get[_0x44fd07(0x1ef)](){const _0x1d9411=_0x44fd07;return _0x1d9411(0x241);}static get[_0x44fd07(0x22c)](){return!0x0;}static get[_0x44fd07(0x226)](){return!0x0;}[_0x44fd07(0x247)]=_0x44fd07(0x1fb);[_0x44fd07(0x267)]=!0x0;[_0x44fd07(0x217)];[_0x44fd07(0x263)];[_0x44fd07(0x233)]=void 0x0;[_0x44fd07(0x1fd)]=!0x1;constructor(_0x510d1f){const _0x163bc3=_0x44fd07;super(_0x510d1f);const _0x3ea34d=this[_0x163bc3(0x260)][_0x163bc3(0x1e8)][_0x163bc3(0x239)](_0x163bc3(0x237));this[_0x163bc3(0x1f3)](_0x163bc3(0x23b),!0x1),this[_0x163bc3(0x217)]=new _0xd7296c(),this[_0x163bc3(0x259)]=new _0x1b73db(this[_0x163bc3(0x260)][_0x163bc3(0x257)],_0x3ea34d[_0x163bc3(0x235)]),this[_0x163bc3(0x259)][_0x163bc3(0x27d)](..._0x38881c)['to'](this),this[_0x163bc3(0x259)]['on'](_0x163bc3(0x1e5),(_0x4bcd2f,{showDiff:_0x3f189a})=>{const _0x4d1c70=_0x163bc3;this[_0x4d1c70(0x267)]=_0x3f189a;}),_0x3ea34d[_0x163bc3(0x26e)][_0x163bc3(0x1e2)]({'id':_0x163bc3(0x268),'buttonLabel':_0x310bd9(this[_0x163bc3(0x260)][_0x163bc3(0x257)],_0x163bc3(0x213)),'buttonIcon':_0x56a914,'order':0x0,'content':this[_0x163bc3(0x259)]}),this[_0x163bc3(0x259)][_0x163bc3(0x211)][_0x163bc3(0x22a)](_0x163bc3(0x224))['to'](this,_0x163bc3(0x23b),_0x471b26=>_0x471b26),this[_0x163bc3(0x259)][_0x163bc3(0x275)][_0x163bc3(0x22a)](_0x163bc3(0x218))['to'](this,_0x163bc3(0x23b),_0x10db2f=>_0x10db2f),this[_0x163bc3(0x259)][_0x163bc3(0x211)][_0x163bc3(0x265)](this[_0x163bc3(0x24d)]());}[_0x44fd07(0x1e9)](){const _0x48f628=_0x44fd07;super[_0x48f628(0x1e9)](),this[_0x48f628(0x233)]&&clearInterval(this[_0x48f628(0x233)]);}[_0x44fd07(0x1f0)](_0x1d2895){const _0x3572be=_0x44fd07;this[_0x3572be(0x259)][_0x3572be(0x275)][_0x3572be(0x1f4)](),this[_0x3572be(0x259)][_0x3572be(0x211)][_0x3572be(0x252)](),this[_0x3572be(0x259)][_0x3572be(0x211)][_0x3572be(0x236)](_0x1d2895[_0x3572be(0x20f)],!this[_0x3572be(0x260)][_0x3572be(0x24c)][_0x3572be(0x239)](_0x3572be(0x279))),this[_0x3572be(0x26f)]({'id':_0x3572be(0x200),'staticMessage':_0x310bd9(this[_0x3572be(0x260)][_0x3572be(0x257)],_0x3572be(0x249))});}[_0x44fd07(0x26f)]({id:_0x1e781f,staticMessage:_0x4e4599}){const _0x1011cb=_0x44fd07;this[_0x1011cb(0x259)][_0x1011cb(0x275)][_0x1011cb(0x27c)](_0x1011cb(0x1f5),{'id':_0x1e781f,'initialContent':_0x1011cb(0x26d)+_0x4e4599+_0x1011cb(0x23a)});}[_0x44fd07(0x21b)](_0x252bb2){const _0x5bb212=_0x44fd07,_0x302eb5=_0x252bb2[_0x5bb212(0x264)]?.[_0x5bb212(0x24e)]||_0x252bb2[_0x5bb212(0x1f7)];this[_0x5bb212(0x259)][_0x5bb212(0x275)][_0x5bb212(0x27c)](_0x5bb212(0x23f),{'contextItems':Array[_0x5bb212(0x258)](_0x252bb2[_0x5bb212(0x240)][_0x5bb212(0x274)]()),'initialContent':_0x5bb212(0x26d)+_0x302eb5+_0x5bb212(0x23a),'id':_0x252bb2['id']});}[_0x44fd07(0x255)]({errorMessage:_0x572661,id:_0x615fed}){const _0x13b200=_0x44fd07;this[_0x13b200(0x259)][_0x13b200(0x275)][_0x13b200(0x27c)](_0x13b200(0x273),{'initialContent':_0x13b200(0x26d)+_0x572661+_0x13b200(0x23a),'id':_0x615fed});}[_0x44fd07(0x1e3)](_0x36b3b1){const _0xd0e8a0=_0x44fd07;return this[_0xd0e8a0(0x217)][_0xd0e8a0(0x277)](async()=>{const _0x14705a=_0xd0e8a0;this[_0x14705a(0x259)][_0x14705a(0x275)][_0x14705a(0x27c)](_0x14705a(0x1f5),{'id':_0x36b3b1[_0x14705a(0x1fc)]+':'+_0x36b3b1['id']}),this[_0x14705a(0x276)](null);});}async[_0x44fd07(0x26b)](_0x25a34d){const _0x250913=_0x44fd07,_0x3c2f38=_0x391d2e(this[_0x250913(0x260)]);if(_0x3c2f38){const _0x28bcbf=_0x3c2f38[_0x250913(0x242)][_0x250913(0x239)](_0x250913(0x22e));_0x28bcbf&&!this[_0x250913(0x1fd)]&&(this[_0x250913(0x1fd)]=!0x0,this[_0x250913(0x259)][_0x250913(0x275)][_0x250913(0x22a)](_0x250913(0x20c))['to'](_0x28bcbf,_0x250913(0x232)));}return this[_0x250913(0x217)][_0x250913(0x277)](async()=>{const _0x406a93=_0x250913;this[_0x406a93(0x259)][_0x406a93(0x275)][_0x406a93(0x27c)](_0x406a93(0x207),{'id':_0x25a34d[_0x406a93(0x1fc)]+':'+_0x25a34d['id'],'areActionsDisabled':_0x25a34d[_0x406a93(0x238)],'showDiff':this[_0x406a93(0x267)],'dropdownConfig':this[_0x406a93(0x260)][_0x406a93(0x24c)][_0x406a93(0x239)](_0x406a93(0x21f))}),this[_0x406a93(0x276)](null);});}[_0x44fd07(0x1e6)](_0x3c51e8,_0x4e5ce7){const _0x5e3df4=_0x44fd07,_0x3035e9=this[_0x5e3df4(0x259)][_0x5e3df4(0x275)][_0x5e3df4(0x20e)][_0x5e3df4(0x201)];if(_0x3035e9 instanceof _0x5c5fde)return this[_0x5e3df4(0x259)][_0x5e3df4(0x275)][_0x5e3df4(0x20e)][_0x5e3df4(0x214)](_0x3035e9),void this[_0x5e3df4(0x259)][_0x5e3df4(0x275)][_0x5e3df4(0x27c)](_0x5e3df4(0x234),{'id':_0x3c51e8['id'],'capabilities':{'isWebSearchEnabled':_0x3035e9[_0x5e3df4(0x212)][_0x5e3df4(0x1dc)]||_0x4e5ce7[_0x5e3df4(0x1dc)],'isReasoningEnabled':_0x3035e9[_0x5e3df4(0x212)][_0x5e3df4(0x216)]||_0x4e5ce7[_0x5e3df4(0x216)]}});this[_0x5e3df4(0x259)][_0x5e3df4(0x275)][_0x5e3df4(0x27c)](_0x5e3df4(0x234),{'id':_0x3c51e8['id'],'capabilities':_0x4e5ce7});}[_0x44fd07(0x250)](_0x382888){const _0x44e910=_0x44fd07,_0x3c5b8a=this[_0x44e910(0x259)][_0x44e910(0x275)][_0x44e910(0x20e)][_0x44e910(0x24f)](_0x4ea96d=>_0x4ea96d[_0x44e910(0x266)]['id']==_0x382888['id']&&_0x4ea96d instanceof _0x5c5fde);_0x3c5b8a&&_0x3c5b8a[_0x44e910(0x1f3)](_0x44e910(0x20d),_0x382888[_0x44e910(0x20d)]);}async[_0x44fd07(0x24a)](_0x1e5feb){const _0x36123c=_0x44fd07,_0x970804=_0x1e5feb[_0x36123c(0x262)]||this[_0x36123c(0x247)];return this[_0x36123c(0x217)][_0x36123c(0x277)](async _0x25523a=>{const _0x17ce3a=_0x36123c;await this[_0x17ce3a(0x259)][_0x17ce3a(0x275)][_0x17ce3a(0x220)]({..._0x1e5feb,'abortSignal':_0x25523a,'renderingStrategy':_0x970804}),_0x1e5feb[_0x17ce3a(0x25a)]&&this[_0x17ce3a(0x210)](_0x1e5feb['id']);});}[_0x44fd07(0x261)](_0x15218d,_0x473d61){const _0x3bfce0=_0x44fd07;this[_0x3bfce0(0x259)][_0x3bfce0(0x275)][_0x3bfce0(0x1eb)](_0x15218d,_0x473d61);}async[_0x44fd07(0x244)](_0x309b56){const _0xce6c39=_0x44fd07,_0x3e0248=_0x309b56[_0xce6c39(0x262)]||this[_0xce6c39(0x247)];return this[_0xce6c39(0x217)][_0xce6c39(0x277)](async _0x4bf473=>{const _0x289140=_0xce6c39;await this[_0x289140(0x259)][_0x289140(0x275)][_0x289140(0x221)]({..._0x309b56,'abortSignal':_0x4bf473,'renderingStrategy':_0x3e0248}),_0x309b56[_0x289140(0x25a)]&&this[_0x289140(0x210)](_0x309b56['id']);});}[_0x44fd07(0x26c)](_0x50743f){const _0x9ee75d=_0x44fd07;this[_0x9ee75d(0x259)][_0x9ee75d(0x275)][_0x9ee75d(0x1f6)](_0x50743f);}[_0x44fd07(0x210)](_0x4550cd){const _0x301e70=_0x44fd07;this[_0x301e70(0x259)][_0x301e70(0x275)][_0x301e70(0x25c)](_0x4550cd);}[_0x44fd07(0x228)](_0x59a575){const _0x4f34c=_0x44fd07;this[_0x4f34c(0x259)][_0x4f34c(0x275)][_0x4f34c(0x204)]()[_0x4f34c(0x208)](_0x47a244=>_0x47a244[_0x4f34c(0x219)](_0x59a575))[_0x4f34c(0x229)](_0x5c28b8=>this[_0x4f34c(0x259)][_0x4f34c(0x275)][_0x4f34c(0x25f)](_0x5c28b8));}[_0x44fd07(0x1f8)](){const _0x182f85=_0x44fd07;this[_0x182f85(0x276)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x182f85(0x259)][_0x182f85(0x211)][_0x182f85(0x231)](!this[_0x182f85(0x260)][_0x182f85(0x24c)][_0x182f85(0x239)](_0x182f85(0x279))),this[_0x182f85(0x23b)]=!0x0,this[_0x182f85(0x259)][_0x182f85(0x275)][_0x182f85(0x205)]();}[_0x44fd07(0x1fe)](_0x596d56){const _0x135e6d=_0x44fd07;this[_0x135e6d(0x217)][_0x135e6d(0x1fa)](),this[_0x135e6d(0x259)][_0x135e6d(0x275)][_0x135e6d(0x204)]()[_0x135e6d(0x208)](_0x8721d3=>_0x8721d3[_0x135e6d(0x219)](_0x596d56['id']))[_0x135e6d(0x229)](_0x5f42e7=>this[_0x135e6d(0x210)](_0x5f42e7)),this[_0x135e6d(0x23b)]=!0x1,this[_0x135e6d(0x259)][_0x135e6d(0x275)][_0x135e6d(0x206)]();}async[_0x44fd07(0x251)](){const _0x5aa25c=_0x44fd07;return this[_0x5aa25c(0x217)][_0x5aa25c(0x21a)][_0x5aa25c(0x25d)](()=>{const _0x11e025=_0x5aa25c;this[_0x11e025(0x23b)]=!0x1,this[_0x11e025(0x259)][_0x11e025(0x275)][_0x11e025(0x206)]();});}[_0x44fd07(0x22d)](_0x3edd69,_0x2e0857){const _0x4a907a=_0x44fd07;this[_0x4a907a(0x259)][_0x4a907a(0x211)][_0x4a907a(0x22d)](_0x3edd69,_0x2e0857);}[_0x44fd07(0x21c)](_0x2495f9){const _0x5f055c=_0x44fd07;this[_0x5f055c(0x259)][_0x5f055c(0x211)][_0x5f055c(0x21c)](_0x2495f9);}[_0x44fd07(0x1df)](_0x17cf0a,_0x2ccd85){const _0x23da61=_0x44fd07;this[_0x23da61(0x259)][_0x23da61(0x211)][_0x23da61(0x1df)](_0x17cf0a,_0x2ccd85);}[_0x44fd07(0x21e)](_0x5071ea){const _0x44bdf6=_0x44fd07;this[_0x44bdf6(0x259)][_0x44bdf6(0x211)][_0x44bdf6(0x21e)](_0x5071ea);}[_0x44fd07(0x21d)](_0x5211cd){const _0x57152d=_0x44fd07;this[_0x57152d(0x259)][_0x57152d(0x211)][_0x57152d(0x21d)](_0x5211cd);}[_0x44fd07(0x270)](){const _0x5ad496=_0x44fd07;this[_0x5ad496(0x259)][_0x5ad496(0x211)][_0x5ad496(0x270)]();}[_0x44fd07(0x22b)](){const _0x4c208e=_0x44fd07;this[_0x4c208e(0x259)][_0x4c208e(0x211)][_0x4c208e(0x22b)]();}[_0x44fd07(0x227)](_0x528801,_0xfc6211,_0x514397){const _0x41a052=_0x44fd07;this[_0x41a052(0x259)][_0x41a052(0x211)][_0x41a052(0x227)](_0x528801,_0xfc6211,_0x514397);}[_0x44fd07(0x222)](){const _0x2f8b14=_0x44fd07;this[_0x2f8b14(0x259)][_0x2f8b14(0x211)][_0x2f8b14(0x222)](),this[_0x2f8b14(0x259)][_0x2f8b14(0x211)][_0x2f8b14(0x265)](this[_0x2f8b14(0x24d)]());}[_0x44fd07(0x203)](_0x534561){const _0x59e2f2=_0x44fd07;this[_0x59e2f2(0x259)][_0x59e2f2(0x211)][_0x59e2f2(0x203)](_0x534561);}[_0x44fd07(0x253)](_0xd67eee){const _0x30569e=_0x44fd07;this[_0x30569e(0x259)][_0x30569e(0x211)][_0x30569e(0x20b)](_0xd67eee[_0x30569e(0x1dc)]),this[_0x30569e(0x259)][_0x30569e(0x211)][_0x30569e(0x254)](_0xd67eee[_0x30569e(0x216)]),this[_0x30569e(0x259)][_0x30569e(0x211)][_0x30569e(0x265)](this[_0x30569e(0x24d)](_0xd67eee));}[_0x44fd07(0x230)](_0x478614,_0x1381eb){const _0x50ebac=_0x44fd07;this[_0x50ebac(0x259)][_0x50ebac(0x211)][_0x50ebac(0x1dd)](_0x478614),_0x1381eb&&this[_0x50ebac(0x259)][_0x50ebac(0x211)][_0x50ebac(0x231)](!0x1);}[_0x44fd07(0x27b)](_0x153f1e){const _0x514f7b=_0x44fd07;this[_0x514f7b(0x247)]=_0x153f1e;}[_0x44fd07(0x1f9)](_0x3cb66d){const _0x244b5f=_0x44fd07;this[_0x244b5f(0x259)][_0x244b5f(0x275)][_0x244b5f(0x1f9)](_0x3cb66d);}[_0x44fd07(0x20a)](){const _0x505992=_0x44fd07;this[_0x505992(0x1f2)](_0x310bd9(this[_0x505992(0x260)][_0x505992(0x257)],_0x505992(0x213)));}[_0x44fd07(0x1f2)](_0x29683f,_0x4f56a4=!0x1){const _0x3ec5e0=_0x44fd07;if(_0x4f56a4&&!_0xd67efe()&&_0x29683f[_0x3ec5e0(0x272)])return this[_0x3ec5e0(0x259)][_0x3ec5e0(0x1f1)][_0x3ec5e0(0x23d)]='',void this[_0x3ec5e0(0x23e)](_0x29683f);this[_0x3ec5e0(0x259)][_0x3ec5e0(0x1f1)][_0x3ec5e0(0x23d)]=_0x29683f;}[_0x44fd07(0x276)](_0xb1e6e8){const _0x2d94cb=_0x44fd07,_0x25cbe0=this[_0x2d94cb(0x1ea)](_0xb1e6e8);this[_0x2d94cb(0x259)][_0x2d94cb(0x275)][_0x2d94cb(0x276)](_0x25cbe0);}[_0x44fd07(0x23e)](_0x4e39ff){const _0x2ba216=_0x44fd07;let _0x9da128=0x0;clearInterval(this[_0x2ba216(0x233)]),this[_0x2ba216(0x233)]=setInterval(()=>{const _0xfcefef=_0x2ba216;this[_0xfcefef(0x259)][_0xfcefef(0x1f1)][_0xfcefef(0x23d)]=this[_0xfcefef(0x259)][_0xfcefef(0x1f1)][_0xfcefef(0x23d)]+_0x4e39ff[_0x9da128],_0x9da128++,_0x9da128===_0x4e39ff[_0xfcefef(0x272)]&&clearInterval(this[_0xfcefef(0x233)]);},0x1e);}[_0x44fd07(0x1ec)](_0x490797){const _0x492486=_0x44fd07;this[_0x492486(0x259)][_0x492486(0x1f1)][_0x492486(0x269)]=_0x490797;}[_0x44fd07(0x1ea)](_0x49d78e){const _0x1aebee=_0x44fd07;return _0x49d78e?_0x49d78e[_0x1aebee(0x1dc)]&&_0x49d78e[_0x1aebee(0x216)]?_0x310bd9(this[_0x1aebee(0x260)][_0x1aebee(0x257)],_0x1aebee(0x1e1)):_0x49d78e[_0x1aebee(0x1dc)]?_0x310bd9(this[_0x1aebee(0x260)][_0x1aebee(0x257)],_0x1aebee(0x278)):_0x49d78e[_0x1aebee(0x216)]?_0x310bd9(this[_0x1aebee(0x260)][_0x1aebee(0x257)],_0x1aebee(0x246)):_0x310bd9(this[_0x1aebee(0x260)][_0x1aebee(0x257)],_0x1aebee(0x1e0)):'';}[_0x44fd07(0x24d)](_0x45bb29){const _0x1d9206=_0x44fd07;return _0x45bb29?_0x45bb29[_0x1d9206(0x1dc)]&&_0x45bb29[_0x1d9206(0x216)]?_0x310bd9(this[_0x1d9206(0x260)][_0x1d9206(0x257)],_0x1d9206(0x27a)):_0x45bb29[_0x1d9206(0x1dc)]?_0x310bd9(this[_0x1d9206(0x260)][_0x1d9206(0x257)],_0x1d9206(0x25b)):_0x45bb29[_0x1d9206(0x216)]?_0x310bd9(this[_0x1d9206(0x260)][_0x1d9206(0x257)],_0x1d9206(0x25e)):_0x310bd9(this[_0x1d9206(0x260)][_0x1d9206(0x257)],_0x1d9206(0x23c)):_0x310bd9(this[_0x1d9206(0x260)][_0x1d9206(0x257)],_0x1d9206(0x23c));}[_0x44fd07(0x271)](_0x46f0b2,_0x259d69,_0x128a87,_0x52aa33){const _0x1c6579=_0x44fd07;this[_0x1c6579(0x259)][_0x1c6579(0x271)](_0x46f0b2,_0x259d69,_0x128a87,_0x52aa33);}[_0x44fd07(0x22f)](_0x36b00b){const _0x36989d=_0x44fd07;this[_0x36989d(0x259)][_0x36989d(0x22f)](_0x36b00b);}[_0x44fd07(0x27e)](){const _0x424835=_0x44fd07;this[_0x424835(0x259)][_0x424835(0x211)][_0x424835(0x27e)]();}[_0x44fd07(0x26a)](_0x53efc0,_0x4c1623){const _0x2049a4=_0x44fd07;this[_0x2049a4(0x259)][_0x2049a4(0x275)][_0x2049a4(0x215)](_0x53efc0,_0x4c1623);}[_0x44fd07(0x245)](){const _0x33d11b=_0x44fd07;this[_0x33d11b(0x259)][_0x33d11b(0x211)][_0x33d11b(0x209)]=!0x0;}[_0x44fd07(0x248)](){const _0x3f3dfe=_0x44fd07;this[_0x3f3dfe(0x259)][_0x3f3dfe(0x211)][_0x3f3dfe(0x209)]=!0x1;}}
|
|
23
|
+
const _0x43518f=_0x3f9a;(function(_0x414a5e,_0x5c7628){const _0x3c5dfc=_0x3f9a,_0xc0543f=_0x414a5e();while(!![]){try{const _0x4c69fe=parseInt(_0x3c5dfc(0x109))/0x1+-parseInt(_0x3c5dfc(0x15f))/0x2+parseInt(_0x3c5dfc(0x10b))/0x3*(parseInt(_0x3c5dfc(0x11d))/0x4)+-parseInt(_0x3c5dfc(0xe9))/0x5+parseInt(_0x3c5dfc(0xc2))/0x6*(parseInt(_0x3c5dfc(0x125))/0x7)+-parseInt(_0x3c5dfc(0x12c))/0x8+parseInt(_0x3c5dfc(0x134))/0x9;if(_0x4c69fe===_0x5c7628)break;else _0xc0543f['push'](_0xc0543f['shift']());}catch(_0x4ec699){_0xc0543f['push'](_0xc0543f['shift']());}}}(_0x58f9,0xceb08));import{ContextPlugin as _0x20c261}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4eee28}from'ckeditor5/src/utils.js';import{AIChatView as _0x458fb9}from'./ui/aichatview.js';function _0x58f9(){const _0xb8fdd1=['chat','_view','interactionId','clear','resetMessageInput','quickActionData','addFeedItemError','isVisible','addTab','startInteraction','_isTrackChangesCommandValueBound','isReasoningEnabled','updateFeedItemAIReplyContent','remove','ai-reply','scrollFeedToSuggestion','updateResourceState','4550290LdmXfo','capabilities','clearPendingContextUI','showResizeButton','updateFeedItemAIReplySources','setLoadingMessage','addFeedItemAIReply','updateFeedInteractionHeader','find','_interactionPromiseResolver','_animateConversationTitle','ai.availableReplyActions','markFeedItemAsDone','delegate','chatFeed','isDone','isTrackChangesOn','addFeedItemUserMessage','markItemAsDone','interaction-header','createConversation','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','updateCapabilities','AI_CHAT_WELCOME_MESSAGE','_getLoadingMessage','userMessage','addFeedItemAISuggestion','abort','stopAutoScroll','finishInteraction','902296fuMqCb','availableModels','3bhtrla','contextItems','queueEmptyPromise','context','setSelectedModel','forEach','value','from','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','filter','destroy','view','setIsUploadInProgress','addFeedInteractionHeader','AIChatUI','removeItem','closeSourceResourceBalloon','isLoading','3795692dSwhMS','setFeedItemRenderingStrategy','setInputPlaceholder','populateSourceResourceBalloon','isBusy','locale','commands','children','4741891UruzLC','updateWebSources','chatControls','</p>','removeContextItem','focusPromptInput','set','2776480eSEMWu','setModelList','addItem','options','user-message','setContextItemLoading','setConversationTitle','disableControls','2130012pSpIxV','get','updateFeedItemAIReplySuggestionPartState','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','enableControls','bind','updateFeedItemAIReplySuggestionContent','addFeedItemStaticMessage','trackChanges','last','feedItemRenderingStrategy','ai-suggestion-reply','label','stopInteraction','length','enqueue','resetConversationTitle','toggleLoadingSkeleton','then','areActionsDisabled','clearConversationContextUI','setConversationContext','error-message','AITabs','streaming','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isPending','setIsMaximized','<p>','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','enableModelSelector','addContextItem','getItemIds','scrollToSuggestion','setAddContextOptions','chatHeader','plugins','pluginName','_titleAnimationInterval','setWebSearch','removeFeedInteraction','isDisabled','startsWith','2677990iziOSM','updateSuggestionItem','_promiseQueue','AI_CHAT_HEADING','12WSRenM','showDiff','renderingStrategy','isPremiumPlugin','disableModelSelector','updateReplyItem','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','config','isMaximized','setModel','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','requires','displayedPrompt','conversation-start','isOfficialPlugin','_getInputPlaceholder','values','setReasoning','toggleSuggestionDisplayMode','updateSuggestionPartState','startAutoScroll','isWebSearchEnabled'];_0x58f9=function(){return _0xb8fdd1;};return _0x58f9();}function _0x3f9a(_0x32ec66,_0x4204b7){const _0x58f974=_0x58f9();return _0x3f9a=function(_0x3f9a1e,_0x3eae83){_0x3f9a1e=_0x3f9a1e-0xbf;let _0x1e766c=_0x58f974[_0x3f9a1e];return _0x1e766c;},_0x3f9a(_0x32ec66,_0x4204b7);}import{AITabs as _0x256107}from'../aitabs/aitabs.js';import{getTranslation as _0x1fde07}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1279db}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x778ee3}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x2e7ab1}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x47ab33}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x234fc3}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x20c261{static get[_0x43518f(0xcd)](){return[_0x256107];}[_0x43518f(0xd9)];static get[_0x43518f(0x159)](){const _0x4f434f=_0x43518f;return _0x4f434f(0x119);}static get[_0x43518f(0xd0)](){return!0x0;}static get[_0x43518f(0xc5)](){return!0x0;}[_0x43518f(0x13e)]=_0x43518f(0x14c);[_0x43518f(0xc3)]=!0x0;[_0x43518f(0xc0)];[_0x43518f(0xf2)];[_0x43518f(0x15a)]=void 0x0;[_0x43518f(0xe2)]=!0x1;constructor(_0x4fb1e8){const _0x33ef31=_0x43518f;super(_0x4fb1e8);const _0x217514=this[_0x33ef31(0x10e)][_0x33ef31(0x158)][_0x33ef31(0x135)](_0x33ef31(0x14b));this[_0x33ef31(0x12b)](_0x33ef31(0x121),!0x1),this[_0x33ef31(0xc0)]=new _0x2e7ab1(),this[_0x33ef31(0xd9)]=new _0x458fb9(this[_0x33ef31(0x10e)][_0x33ef31(0x122)],_0x217514[_0x33ef31(0xec)]),this[_0x33ef31(0xd9)][_0x33ef31(0xf6)](..._0x47ab33)['to'](this),this[_0x33ef31(0xd9)]['on'](_0x33ef31(0xd4),(_0x477e80,{showDiff:_0x5cd8ce})=>{const _0x2a9ee0=_0x33ef31;this[_0x2a9ee0(0xc3)]=_0x5cd8ce;}),_0x217514[_0x33ef31(0x116)][_0x33ef31(0xe0)]({'id':_0x33ef31(0xd8),'buttonLabel':_0x1fde07(this[_0x33ef31(0x10e)][_0x33ef31(0x122)],_0x33ef31(0xc1)),'buttonIcon':_0x1279db,'order':0x0,'content':this[_0x33ef31(0xd9)]}),this[_0x33ef31(0xd9)][_0x33ef31(0x127)][_0x33ef31(0x139)](_0x33ef31(0x11c))['to'](this,_0x33ef31(0x121),_0x4078e6=>_0x4078e6),this[_0x33ef31(0xd9)][_0x33ef31(0xf7)][_0x33ef31(0x139)](_0x33ef31(0x14e))['to'](this,_0x33ef31(0x121),_0x4f0e99=>_0x4f0e99),this[_0x33ef31(0xd9)][_0x33ef31(0x127)][_0x33ef31(0x11f)](this[_0x33ef31(0xd1)]());}[_0x43518f(0x115)](){const _0x20f9d8=_0x43518f;super[_0x20f9d8(0x115)](),this[_0x20f9d8(0x15a)]&&clearInterval(this[_0x20f9d8(0x15a)]);}[_0x43518f(0xfd)](_0x23d5a0){const _0x5d8e10=_0x43518f;this[_0x5d8e10(0xd9)][_0x5d8e10(0xf7)][_0x5d8e10(0xdb)](),this[_0x5d8e10(0xd9)][_0x5d8e10(0x127)][_0x5d8e10(0x152)](),this[_0x5d8e10(0xd9)][_0x5d8e10(0x127)][_0x5d8e10(0x12d)](_0x23d5a0[_0x5d8e10(0x10a)],!this[_0x5d8e10(0x10e)][_0x5d8e10(0xc9)][_0x5d8e10(0x135)](_0x5d8e10(0xfe))),this[_0x5d8e10(0x13b)]({'id':_0x5d8e10(0xcf),'staticMessage':_0x1fde07(this[_0x5d8e10(0x10e)][_0x5d8e10(0x122)],_0x5d8e10(0x102))});}[_0x43518f(0x13b)]({id:_0x217ad8,staticMessage:_0x429c52}){const _0x3d8182=_0x43518f;this[_0x3d8182(0xd9)][_0x3d8182(0xf7)][_0x3d8182(0x12e)](_0x3d8182(0xe6),{'id':_0x217ad8,'initialContent':_0x3d8182(0x150)+_0x429c52+_0x3d8182(0x128)});}[_0x43518f(0xfa)](_0x181bcc){const _0x29c7de=_0x43518f,_0x13dc9b=_0x181bcc[_0x29c7de(0xdd)]?.[_0x29c7de(0xce)]||_0x181bcc[_0x29c7de(0x104)];this[_0x29c7de(0xd9)][_0x29c7de(0xf7)][_0x29c7de(0x12e)](_0x29c7de(0x130),{'contextItems':Array[_0x29c7de(0x112)](_0x181bcc[_0x29c7de(0x10c)][_0x29c7de(0xd2)]()),'initialContent':_0x29c7de(0x150)+_0x13dc9b+_0x29c7de(0x128),'id':_0x181bcc['id']});}[_0x43518f(0xde)]({errorMessage:_0xb3943c,id:_0xa0040}){const _0x2ef125=_0x43518f;this[_0x2ef125(0xd9)][_0x2ef125(0xf7)][_0x2ef125(0x12e)](_0x2ef125(0x14a),{'initialContent':_0x2ef125(0x150)+_0xb3943c+_0x2ef125(0x128),'id':_0xa0040});}[_0x43518f(0xef)](_0x307021){const _0x4c3466=_0x43518f;return this[_0x4c3466(0xc0)][_0x4c3466(0x143)](async()=>{const _0x557ec3=_0x4c3466;this[_0x557ec3(0xd9)][_0x557ec3(0xf7)][_0x557ec3(0x12e)](_0x557ec3(0xe6),{'id':_0x307021[_0x557ec3(0xda)]+':'+_0x307021['id']}),this[_0x557ec3(0xee)](null);});}async[_0x43518f(0x105)](_0x24e886){const _0x37030f=_0x43518f,_0xbf82c7=_0x234fc3(this[_0x37030f(0x10e)]);if(_0xbf82c7){const _0x2b71fc=_0xbf82c7[_0x37030f(0x123)][_0x37030f(0x135)](_0x37030f(0x13c));_0x2b71fc&&!this[_0x37030f(0xe2)]&&(this[_0x37030f(0xe2)]=!0x0,this[_0x37030f(0xd9)][_0x37030f(0xf7)][_0x37030f(0x139)](_0x37030f(0xf9))['to'](_0x2b71fc,_0x37030f(0x111)));}return this[_0x37030f(0xc0)][_0x37030f(0x143)](async()=>{const _0xb43651=_0x37030f;this[_0xb43651(0xd9)][_0xb43651(0xf7)][_0xb43651(0x12e)](_0xb43651(0x13f),{'id':_0x24e886[_0xb43651(0xda)]+':'+_0x24e886['id'],'areActionsDisabled':_0x24e886[_0xb43651(0x147)],'showDiff':this[_0xb43651(0xc3)],'dropdownConfig':this[_0xb43651(0x10e)][_0xb43651(0xc9)][_0xb43651(0x135)](_0xb43651(0xf4))}),this[_0xb43651(0xee)](null);});}[_0x43518f(0x118)](_0x1df034,_0x57df93){const _0x189a0c=_0x43518f,_0x3c8609=this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x124)][_0x189a0c(0x13d)];if(_0x3c8609 instanceof _0x778ee3)return this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x124)][_0x189a0c(0xe5)](_0x3c8609),void this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x12e)](_0x189a0c(0xfc),{'id':_0x1df034['id'],'capabilities':{'isWebSearchEnabled':_0x3c8609[_0x189a0c(0xea)][_0x189a0c(0xd7)]||_0x57df93[_0x189a0c(0xd7)],'isReasoningEnabled':_0x3c8609[_0x189a0c(0xea)][_0x189a0c(0xe3)]||_0x57df93[_0x189a0c(0xe3)]}});this[_0x189a0c(0xd9)][_0x189a0c(0xf7)][_0x189a0c(0x12e)](_0x189a0c(0xfc),{'id':_0x1df034['id'],'capabilities':_0x57df93});}[_0x43518f(0xf0)](_0x141498){const _0x5b584a=_0x43518f,_0x21e778=this[_0x5b584a(0xd9)][_0x5b584a(0xf7)][_0x5b584a(0x124)][_0x5b584a(0xf1)](_0x25b197=>_0x25b197[_0x5b584a(0x12f)]['id']==_0x141498['id']&&_0x25b197 instanceof _0x778ee3);_0x21e778&&_0x21e778[_0x5b584a(0x12b)](_0x5b584a(0xdf),_0x141498[_0x5b584a(0xdf)]);}async[_0x43518f(0xe4)](_0x5c66c9){const _0x1ce865=_0x43518f,_0x2537e6=_0x5c66c9[_0x1ce865(0xc4)]||this[_0x1ce865(0x13e)];return this[_0x1ce865(0xc0)][_0x1ce865(0x143)](async _0x578c79=>{const _0x435dbf=_0x1ce865;await this[_0x435dbf(0xd9)][_0x435dbf(0xf7)][_0x435dbf(0xc7)]({..._0x5c66c9,'abortSignal':_0x578c79,'renderingStrategy':_0x2537e6}),_0x5c66c9[_0x435dbf(0xf8)]&&this[_0x435dbf(0xf5)](_0x5c66c9['id']);});}[_0x43518f(0xed)](_0x594292,_0x1c0b0c){const _0x5bbc4e=_0x43518f;this[_0x5bbc4e(0xd9)][_0x5bbc4e(0xf7)][_0x5bbc4e(0x126)](_0x594292,_0x1c0b0c);}async[_0x43518f(0x13a)](_0x58d02d){const _0x51ed0f=_0x43518f,_0x725b98=_0x58d02d[_0x51ed0f(0xc4)]||this[_0x51ed0f(0x13e)];return this[_0x51ed0f(0xc0)][_0x51ed0f(0x143)](async _0x4fbb69=>{const _0x8312ab=_0x51ed0f;await this[_0x8312ab(0xd9)][_0x8312ab(0xf7)][_0x8312ab(0xbf)]({..._0x58d02d,'abortSignal':_0x4fbb69,'renderingStrategy':_0x725b98}),_0x58d02d[_0x8312ab(0xf8)]&&this[_0x8312ab(0xf5)](_0x58d02d['id']);});}[_0x43518f(0x136)](_0x378a74){const _0x24627c=_0x43518f;this[_0x24627c(0xd9)][_0x24627c(0xf7)][_0x24627c(0xd5)](_0x378a74);}[_0x43518f(0xf5)](_0x26ac30){const _0x4a8240=_0x43518f;this[_0x4a8240(0xd9)][_0x4a8240(0xf7)][_0x4a8240(0xfb)](_0x26ac30);}[_0x43518f(0x15c)](_0x586703){const _0x15a5c3=_0x43518f;this[_0x15a5c3(0xd9)][_0x15a5c3(0xf7)][_0x15a5c3(0x154)]()[_0x15a5c3(0x114)](_0x29c991=>_0x29c991[_0x15a5c3(0x15e)](_0x586703))[_0x15a5c3(0x110)](_0x2c645c=>this[_0x15a5c3(0xd9)][_0x15a5c3(0xf7)][_0x15a5c3(0x11a)](_0x2c645c));}[_0x43518f(0xe1)](){const _0x1186dd=_0x43518f;this[_0x1186dd(0xee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1186dd(0xd9)][_0x1186dd(0x127)][_0x1186dd(0xc6)](!this[_0x1186dd(0x10e)][_0x1186dd(0xc9)][_0x1186dd(0x135)](_0x1186dd(0xfe))),this[_0x1186dd(0x121)]=!0x0,this[_0x1186dd(0xd9)][_0x1186dd(0xf7)][_0x1186dd(0xd6)]();}[_0x43518f(0x141)](_0x41f63c){const _0x53e2be=_0x43518f;this[_0x53e2be(0xc0)][_0x53e2be(0x106)](),this[_0x53e2be(0xd9)][_0x53e2be(0xf7)][_0x53e2be(0x154)]()[_0x53e2be(0x114)](_0x1b098c=>_0x1b098c[_0x53e2be(0x15e)](_0x41f63c['id']))[_0x53e2be(0x110)](_0x59280e=>this[_0x53e2be(0xf5)](_0x59280e)),this[_0x53e2be(0x121)]=!0x1,this[_0x53e2be(0xd9)][_0x53e2be(0xf7)][_0x53e2be(0x107)]();}async[_0x43518f(0x108)](){const _0x416c0e=_0x43518f;return this[_0x416c0e(0xc0)][_0x416c0e(0x10d)][_0x416c0e(0x146)](()=>{const _0x26e0ff=_0x416c0e;this[_0x26e0ff(0x121)]=!0x1,this[_0x26e0ff(0xd9)][_0x26e0ff(0xf7)][_0x26e0ff(0x107)]();});}[_0x43518f(0x153)](_0xe9f34b,_0x5e4ff8){const _0x3bc350=_0x43518f;this[_0x3bc350(0xd9)][_0x3bc350(0x127)][_0x3bc350(0x153)](_0xe9f34b,_0x5e4ff8);}[_0x43518f(0x129)](_0x2c4fa3){const _0x30c662=_0x43518f;this[_0x30c662(0xd9)][_0x30c662(0x127)][_0x30c662(0x129)](_0x2c4fa3);}[_0x43518f(0x131)](_0x124f60,_0x1f9798){const _0x30e63d=_0x43518f;this[_0x30e63d(0xd9)][_0x30e63d(0x127)][_0x30e63d(0x131)](_0x124f60,_0x1f9798);}[_0x43518f(0x117)](_0x24886d){const _0x5a1389=_0x43518f;this[_0x5a1389(0xd9)][_0x5a1389(0x127)][_0x5a1389(0x117)](_0x24886d);}[_0x43518f(0x149)](_0x1e6533){const _0x42473e=_0x43518f;this[_0x42473e(0xd9)][_0x42473e(0x127)][_0x42473e(0x149)](_0x1e6533);}[_0x43518f(0xeb)](){const _0x1143ed=_0x43518f;this[_0x1143ed(0xd9)][_0x1143ed(0x127)][_0x1143ed(0xeb)]();}[_0x43518f(0x148)](){const _0x2a30ee=_0x43518f;this[_0x2a30ee(0xd9)][_0x2a30ee(0x127)][_0x2a30ee(0x148)]();}[_0x43518f(0xe8)](_0x373e49,_0x289e26,_0x4876d0){const _0x1ae03c=_0x43518f;this[_0x1ae03c(0xd9)][_0x1ae03c(0x127)][_0x1ae03c(0xe8)](_0x373e49,_0x289e26,_0x4876d0);}[_0x43518f(0xdc)](){const _0x47e65e=_0x43518f;this[_0x47e65e(0xd9)][_0x47e65e(0x127)][_0x47e65e(0xdc)](),this[_0x47e65e(0xd9)][_0x47e65e(0x127)][_0x47e65e(0x11f)](this[_0x47e65e(0xd1)]());}[_0x43518f(0x156)](_0x1819ed){const _0xe66236=_0x43518f;this[_0xe66236(0xd9)][_0xe66236(0x127)][_0xe66236(0x156)](_0x1819ed);}[_0x43518f(0x101)](_0xc22a36){const _0x236b61=_0x43518f;this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0x15b)](_0xc22a36[_0x236b61(0xd7)]),this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0xd3)](_0xc22a36[_0x236b61(0xe3)]),this[_0x236b61(0xd9)][_0x236b61(0x127)][_0x236b61(0x11f)](this[_0x236b61(0xd1)](_0xc22a36));}[_0x43518f(0x10f)](_0x292d74,_0x40fa11){const _0x540caf=_0x43518f;this[_0x540caf(0xd9)][_0x540caf(0x127)][_0x540caf(0xcb)](_0x292d74),_0x40fa11&&this[_0x540caf(0xd9)][_0x540caf(0x127)][_0x540caf(0xc6)](!0x1);}[_0x43518f(0x11e)](_0x1672e3){const _0x237da6=_0x43518f;this[_0x237da6(0x13e)]=_0x1672e3;}[_0x43518f(0x145)](_0x5c6a65){const _0x1ae629=_0x43518f;this[_0x1ae629(0xd9)][_0x1ae629(0xf7)][_0x1ae629(0x145)](_0x5c6a65);}[_0x43518f(0x144)](){const _0xb19a81=_0x43518f;this[_0xb19a81(0x132)](_0x1fde07(this[_0xb19a81(0x10e)][_0xb19a81(0x122)],_0xb19a81(0xc1)));}[_0x43518f(0x132)](_0x300014,_0x33915d=!0x1){const _0x19d7bc=_0x43518f;if(_0x33915d&&!_0x4eee28()&&_0x300014[_0x19d7bc(0x142)])return this[_0x19d7bc(0xd9)][_0x19d7bc(0x157)][_0x19d7bc(0x140)]='',void this[_0x19d7bc(0xf3)](_0x300014);this[_0x19d7bc(0xd9)][_0x19d7bc(0x157)][_0x19d7bc(0x140)]=_0x300014;}[_0x43518f(0xee)](_0x5993fe){const _0xe9bf55=_0x43518f,_0x4d7b9d=this[_0xe9bf55(0x103)](_0x5993fe);this[_0xe9bf55(0xd9)][_0xe9bf55(0xf7)][_0xe9bf55(0xee)](_0x4d7b9d);}[_0x43518f(0xf3)](_0x2c15c9){const _0x524ac5=_0x43518f;let _0x4ed6dd=0x0;clearInterval(this[_0x524ac5(0x15a)]),this[_0x524ac5(0x15a)]=setInterval(()=>{const _0x312c6d=_0x524ac5;this[_0x312c6d(0xd9)][_0x312c6d(0x157)][_0x312c6d(0x140)]=this[_0x312c6d(0xd9)][_0x312c6d(0x157)][_0x312c6d(0x140)]+_0x2c15c9[_0x4ed6dd],_0x4ed6dd++,_0x4ed6dd===_0x2c15c9[_0x312c6d(0x142)]&&clearInterval(this[_0x312c6d(0x15a)]);},0x1e);}[_0x43518f(0x14f)](_0x831354){const _0x4bde34=_0x43518f;this[_0x4bde34(0xd9)][_0x4bde34(0x157)][_0x4bde34(0xca)]=_0x831354;}[_0x43518f(0x103)](_0x4f6f26){const _0x39f9f1=_0x43518f;return _0x4f6f26?_0x4f6f26[_0x39f9f1(0xd7)]&&_0x4f6f26[_0x39f9f1(0xe3)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x137)):_0x4f6f26[_0x39f9f1(0xd7)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0xff)):_0x4f6f26[_0x39f9f1(0xe3)]?_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x14d)):_0x1fde07(this[_0x39f9f1(0x10e)][_0x39f9f1(0x122)],_0x39f9f1(0x100)):'';}[_0x43518f(0xd1)](_0x5bab33){const _0x4ce5c2=_0x43518f;return _0x5bab33?_0x5bab33[_0x4ce5c2(0xd7)]&&_0x5bab33[_0x4ce5c2(0xe3)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0x151)):_0x5bab33[_0x4ce5c2(0xd7)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xcc)):_0x5bab33[_0x4ce5c2(0xe3)]?_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0x113)):_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xc8)):_0x1fde07(this[_0x4ce5c2(0x10e)][_0x4ce5c2(0x122)],_0x4ce5c2(0xc8));}[_0x43518f(0x120)](_0x5e9a87,_0x208e69,_0x140c7a,_0x20c4a8){const _0x56d03f=_0x43518f;this[_0x56d03f(0xd9)][_0x56d03f(0x120)](_0x5e9a87,_0x208e69,_0x140c7a,_0x20c4a8);}[_0x43518f(0x11b)](_0x11c636){const _0x481265=_0x43518f;this[_0x481265(0xd9)][_0x481265(0x11b)](_0x11c636);}[_0x43518f(0x12a)](){const _0x5e0217=_0x43518f;this[_0x5e0217(0xd9)][_0x5e0217(0x127)][_0x5e0217(0x12a)]();}[_0x43518f(0xe7)](_0xcf3514,_0x539a93){const _0x1fcb0b=_0x43518f;this[_0x1fcb0b(0xd9)][_0x1fcb0b(0xf7)][_0x1fcb0b(0x155)](_0xcf3514,_0x539a93);}[_0x43518f(0x133)](){const _0x5996f1=_0x43518f;this[_0x5996f1(0xd9)][_0x5996f1(0x127)][_0x5996f1(0x15d)]=!0x0;}[_0x43518f(0x138)](){const _0x3febf9=_0x43518f;this[_0x3febf9(0xd9)][_0x3febf9(0x127)][_0x3febf9(0x15d)]=!0x1;}}
|
|
@@ -156,15 +156,6 @@ export type AIChatContextItemRemovedEvent = {
|
|
|
156
156
|
}
|
|
157
157
|
];
|
|
158
158
|
};
|
|
159
|
-
export type AIChatContextItemLoadingEndedEvent = {
|
|
160
|
-
name: 'contextItemLoadingEnded';
|
|
161
|
-
args: [
|
|
162
|
-
{
|
|
163
|
-
contextItem: AIContextItem;
|
|
164
|
-
isLoading: boolean;
|
|
165
|
-
}
|
|
166
|
-
];
|
|
167
|
-
};
|
|
168
159
|
export type AIChatContextSentEvent = {
|
|
169
160
|
name: 'contextSent';
|
|
170
161
|
args: [
|
|
@@ -181,27 +172,6 @@ export type AIChatContextAddContextOptionsChangedEvent = {
|
|
|
181
172
|
}
|
|
182
173
|
];
|
|
183
174
|
};
|
|
184
|
-
export type AIChatContextSourceResourcesLoadedEvent = {
|
|
185
|
-
name: 'sourceResourcesLoaded';
|
|
186
|
-
args: [
|
|
187
|
-
{
|
|
188
|
-
sourceId: string;
|
|
189
|
-
source: AIContextProvider;
|
|
190
|
-
resources: Array<AIContextResourceState>;
|
|
191
|
-
uid: string;
|
|
192
|
-
}
|
|
193
|
-
];
|
|
194
|
-
};
|
|
195
|
-
export type AIChatContextResourceStateChangedEvent = {
|
|
196
|
-
name: 'resourceStateChanged';
|
|
197
|
-
args: [
|
|
198
|
-
{
|
|
199
|
-
sourceId: string;
|
|
200
|
-
resourceId: string;
|
|
201
|
-
isInContext: boolean;
|
|
202
|
-
}
|
|
203
|
-
];
|
|
204
|
-
};
|
|
205
175
|
export type AIChatContextUploadProgressChangedEvent = {
|
|
206
176
|
name: 'uploadProgressChanged';
|
|
207
177
|
args: [
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x44c243=_0x32f8;function _0x4c7f(){const _0xf4c3ca=['File','_getCustomSourcesInitialState','SELECTION','sessionId','text/markdown','isSelectionInContext','populateFromMessage','start','map','411097IOkCUy','getDocument','ai-chat-source-not-found','_finishUploadOperation','addResourceToContext','clearPendingContextItems','4315232HhSwiv','20234808IagSYs','ai-chat-context-unsupported-type','Current\x20document','addSelectionToContext','string','size','48BDrxrD','removeSelectionFromContext','files','get','_toggleAddCurrentDocumentOptionVisibility','HTML','mapContextItemsToRequestData','addUrlToContext','1022810NjhIYd','removeFromContext','selection','label','_addToConversationContextItem','forEach','getResources','length','859341AjlMwx','_ownerId','contextSent','file-','object','addCurrentDocumentToContext','_updateResourceInContextState','contextItemLoadingEnded','addFilesToContext','_connector','3228068utAOfI','_isResourceInContext','addContextOptionsChanged','resources','isInContext','find','fetchDocument','_ongoingUploadOperations','has','loadSourceResources','resourceId','_conversationContextItems','ai-chat-resource-load-failed','abort','files-','URL','text/html','stack','ai-chat-context-invalid-data','data','enabled','_createContextItemFromContent','_setAddContextOptionsDefaultState','getPendingContextItems','fire','type','uploadUrl','content','FILE','_addContextItem','url','_addContextOptionsState','_startUploadOperation','object\x20with\x20content\x20and\x20type\x20properties','isCurrentDocumentInContext','values','from','name','init','delete','_config','version','getSentContextItems','_finishContextItemLoading','_ongoingUploads','attributes','ai-chat-document-upload-failed','ai-chat-resource-no-data','uploadDocument','_pendingContextItems','DOCUMENT','urls','_findSourceIdsByResourceId','uploadProgressChanged','hidden','updateCurrentDocument','isReadOnly','set','_mapContextItemToRequestData','MARKDOWN','message','contextItemRemoved','isCurrentDocumentInConversation','ai-chat-url-upload-failed','abortController','TEXT','sources','ai-chat-source-resources-load-failed','addToConversationContext','end','_convertTextResourceToFile','uploadFile','document','all','getId','sourceResourcesLoaded','error','_removeContextItem','ai-chat-file-upload-failed','6OKWBxT','startsWith','uiId','text/plain','isHidden','resourceStateChanged','filter','getData','131006DBQQSO','ai-request-aborted','push','contextItemAdded','url-','current-document'];_0x4c7f=function(){return _0xf4c3ca;};return _0x4c7f();}function _0x32f8(_0x4f5917,_0x5e81f1){const _0x4c7f63=_0x4c7f();return _0x32f8=function(_0x32f833,_0x4f4521){_0x32f833=_0x32f833-0x14b;let _0x57907a=_0x4c7f63[_0x32f833];return _0x57907a;},_0x32f8(_0x4f5917,_0x5e81f1);}(function(_0x4153e7,_0x411eaa){const _0x104900=_0x32f8,_0x52c866=_0x4153e7();while(!![]){try{const _0x58ad5e=parseInt(_0x104900(0x18e))/0x1+-parseInt(_0x104900(0x17f))/0x2*(parseInt(_0x104900(0x19b))/0x3)+-parseInt(_0x104900(0x1b5))/0x4+parseInt(_0x104900(0x1a3))/0x5+parseInt(_0x104900(0x177))/0x6*(parseInt(_0x104900(0x1ab))/0x7)+-parseInt(_0x104900(0x194))/0x8+parseInt(_0x104900(0x195))/0x9;if(_0x58ad5e===_0x411eaa)break;else _0x52c866['push'](_0x52c866['shift']());}catch(_0x29df53){_0x52c866['push'](_0x52c866['shift']());}}}(_0x4c7f,0x90989));import{CKEditorError as _0x4ae8b7,ObservableMixin as _0x9bbd05,uid as _0x39f98e}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x14f8c6,AIContextTextResourceType as _0x56aa68}from'../../aicore/model/aicontext.js';import{escape as _0x4b36ac}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x44c243(0x182),_0x44c243(0x165),_0x44c243(0x1b2),_0x44c243(0x1ad),_0x44c243(0x174),_0x44c243(0x1b7),_0x44c243(0x173),_0x44c243(0x17c),_0x44c243(0x15d)];export class AIChatContext extends _0x9bbd05(){[_0x44c243(0x1b4)];[_0x44c243(0x150)];[_0x44c243(0x1ac)];constructor({connector:_0x32b25d,config:_0x1ff7ca,ownerId:_0xdfb298}){const _0x2292fd=_0x44c243;super(),this[_0x2292fd(0x1b4)]=_0x32b25d,this[_0x2292fd(0x150)]=_0x1ff7ca,this[_0x2292fd(0x1ac)]=_0xdfb298;}[_0x44c243(0x14e)](){const _0x5ee843=_0x44c243;this[_0x5ee843(0x159)]=new Map(),this[_0x5ee843(0x1c0)]=new Map(),this[_0x5ee843(0x154)]=new Map(),this[_0x5ee843(0x1bc)]=new Map(),this[_0x5ee843(0x1cb)]();}[_0x44c243(0x1cc)](){const _0x310e21=_0x44c243;return this[_0x310e21(0x159)];}async[_0x44c243(0x18b)](_0x3ec256){const _0x41c81d=_0x44c243,_0x315e00=await this[_0x41c81d(0x1ca)](_0x3ec256);return this[_0x41c81d(0x1a7)](_0x315e00),_0x41c81d(0x184)===_0x315e00[_0x41c81d(0x179)]&&this[_0x41c81d(0x19f)](),_0x315e00;}async[_0x44c243(0x1ca)](_0x1dd602){const _0x5d4d2b=_0x44c243;if(_0x1dd602[_0x5d4d2b(0x1ce)]===_0x14f8c6[_0x5d4d2b(0x15a)]){const _0x44dc8d=await this[_0x5d4d2b(0x1b4)][_0x5d4d2b(0x1bb)](this[_0x5d4d2b(0x1ac)],_0x1dd602['id'])[_0x5d4d2b(0x18f)]();return{'id':_0x5d4d2b(0x184),'uiId':_0x5d4d2b(0x184),'label':_0x5d4d2b(0x197),'type':_0x1dd602[_0x5d4d2b(0x1ce)],'content':_0x44dc8d[_0x5d4d2b(0x1d0)],'hidden':this[_0x5d4d2b(0x1c0)][_0x5d4d2b(0x1bd)](_0x5d4d2b(0x184)),'version':_0x44dc8d[_0x5d4d2b(0x155)]?.[_0x5d4d2b(0x151)],'sessionId':_0x44dc8d[_0x5d4d2b(0x155)]?.[_0x5d4d2b(0x188)]};}return{'id':_0x1dd602['id'],'uiId':_0x1dd602['id'],'label':_0x1dd602[_0x5d4d2b(0x155)]?.[_0x5d4d2b(0x1a6)]||_0x1dd602[_0x5d4d2b(0x14d)]||_0x1dd602[_0x5d4d2b(0x1d3)]||_0x1dd602['id'],'type':_0x1dd602[_0x5d4d2b(0x1ce)],..._0x1dd602?.[_0x5d4d2b(0x155)]?.[_0x5d4d2b(0x1bf)]?{'resourceId':_0x1dd602[_0x5d4d2b(0x155)]?.[_0x5d4d2b(0x1bf)]}:{}};}[_0x44c243(0x152)](){const _0x2e22c0=_0x44c243;return new Map(this[_0x2e22c0(0x1c0)]);}[_0x44c243(0x1a4)](_0x1053f0){const _0x395a05=_0x44c243,_0x428ecb=this[_0x395a05(0x159)][_0x395a05(0x19e)](_0x1053f0);_0x428ecb?.[_0x395a05(0x160)]||this[_0x395a05(0x175)](_0x1053f0);}[_0x44c243(0x193)](){const _0x2695cd=_0x44c243;if(0x0===this[_0x2695cd(0x159)][_0x2695cd(0x19a)])return;for(const _0x39003f of this[_0x2695cd(0x159)][_0x2695cd(0x14b)]())this[_0x2695cd(0x175)](_0x39003f[_0x2695cd(0x179)]);const _0x3a35d7=this[_0x2695cd(0x1c0)][_0x2695cd(0x19e)](_0x2695cd(0x184))||this[_0x2695cd(0x159)][_0x2695cd(0x19e)](_0x2695cd(0x184));_0x3a35d7&&this[_0x2695cd(0x1d2)]({..._0x3a35d7,'isReadOnly':!0x0,'hidden':!0x0});}[_0x44c243(0x16c)](_0x8f6aeb){const _0x507f16=_0x44c243;for(const _0x1bdfc8 of _0x8f6aeb[_0x507f16(0x14b)]())this[_0x507f16(0x1a7)](_0x1bdfc8);this[_0x507f16(0x193)](),this[_0x507f16(0x1cd)](_0x507f16(0x1ad),{'contextItems':Array[_0x507f16(0x14c)](this[_0x507f16(0x152)]()[_0x507f16(0x14b)]())});}[_0x44c243(0x1d7)](){const _0x362552=_0x44c243;return this[_0x362552(0x159)][_0x362552(0x1bd)](_0x362552(0x184));}[_0x44c243(0x18a)](){const _0x17e7ce=_0x44c243;return this[_0x17e7ce(0x159)][_0x17e7ce(0x1bd)](_0x17e7ce(0x1a5));}[_0x44c243(0x166)](){const _0x5340d1=_0x44c243;return this[_0x5340d1(0x1c0)][_0x5340d1(0x1bd)](_0x5340d1(0x184));}static[_0x44c243(0x1a1)](_0x4c4a02){const _0x2c73aa=_0x44c243;return Array[_0x2c73aa(0x14c)](_0x4c4a02[_0x2c73aa(0x14b)]())[_0x2c73aa(0x18d)](_0x104bac=>this[_0x2c73aa(0x162)](_0x104bac))[_0x2c73aa(0x17d)](_0x100efc=>null!==_0x100efc);}async[_0x44c243(0x1b3)](_0x2073a9,_0x4f16ad,_0x5d82de=_0x14f8c6[_0x44c243(0x1d1)]){const _0x1d643e=_0x44c243,_0x3aa820=_0x1d643e(0x1c3)+_0x39f98e();this[_0x1d643e(0x1d5)](_0x3aa820);try{await Promise[_0x1d643e(0x171)](_0x2073a9[_0x1d643e(0x18d)](async _0x539b23=>{const _0x1bcbda=_0x1d643e,_0xb467e=_0x1bcbda(0x1ae)+_0x39f98e(),_0x2d121f=_0x4b36ac(_0x539b23[_0x1bcbda(0x14d)]);try{this[_0x1bcbda(0x1d2)]({'type':_0x5d82de,'label':_0x4f16ad?.[_0x1bcbda(0x1a6)]||_0x2d121f,'uiId':_0xb467e,'resourceId':_0x4f16ad?.[_0x1bcbda(0x1bf)]},!0x0);const _0x5312b7=this[_0x1bcbda(0x1b4)][_0x1bcbda(0x16f)](this[_0x1bcbda(0x1ac)],_0x539b23,_0x4f16ad);this[_0x1bcbda(0x154)][_0x1bcbda(0x161)](_0xb467e,_0x5312b7[_0x1bcbda(0x168)]);const {id:_0x2c1e2d}=await _0x5312b7[_0x1bcbda(0x172)]();this[_0x1bcbda(0x154)][_0x1bcbda(0x14f)](_0xb467e),this[_0x1bcbda(0x153)]({'type':_0x5d82de,'id':_0x2c1e2d,'label':_0x4f16ad?.[_0x1bcbda(0x1a6)]||_0x2d121f,'uiId':_0xb467e,'resourceId':_0x4f16ad?.[_0x1bcbda(0x1bf)]},!0x1);}catch(_0x3599f6){this[_0x1bcbda(0x154)][_0x1bcbda(0x14f)](_0xb467e);if(!_0x3599f6[_0x1bcbda(0x164)][_0x1bcbda(0x178)](_0x1bcbda(0x180))){const _0x8771f5=new _0x4ae8b7(_0x1bcbda(0x176),null,{'fileName':_0x2d121f});_0x8771f5[_0x1bcbda(0x1c6)]=_0x3599f6[_0x1bcbda(0x1c6)],this[_0x1bcbda(0x1cd)](_0x1bcbda(0x174),{'error':_0x8771f5,'fileName':_0x2d121f});}this[_0x1bcbda(0x175)](_0xb467e);}}));}finally{this[_0x1d643e(0x191)](_0x3aa820);}}[_0x44c243(0x1b0)](_0x51fb9b){const _0x441bac=_0x44c243;if(this[_0x441bac(0x1d7)]())return;const _0x2f968d={'type':_0x14f8c6[_0x441bac(0x15a)],'uiId':_0x441bac(0x184),'label':_0x51fb9b,'isReadOnly':this[_0x441bac(0x1c0)][_0x441bac(0x1bd)](_0x441bac(0x184)),'hidden':this[_0x441bac(0x1c0)][_0x441bac(0x1bd)](_0x441bac(0x184))};this[_0x441bac(0x1d2)](_0x2f968d);}async[_0x44c243(0x15f)](_0x45196c,_0x491808,_0x38efb7,_0x2ec17b){const _0x25f0e6=_0x44c243,_0xea85f2=this[_0x25f0e6(0x159)][_0x25f0e6(0x19e)](_0x25f0e6(0x184));if(_0xea85f2&&_0x45196c){_0xea85f2[_0x25f0e6(0x1a5)]=_0x2ec17b?_0x2ec17b[_0x25f0e6(0x18d)](_0x5cc6cf=>({'start':_0x5cc6cf[_0x25f0e6(0x18c)],'end':_0x5cc6cf[_0x25f0e6(0x16d)]})):[];try{if(_0xea85f2[_0x25f0e6(0x151)]===_0x491808)return;const {id:_0x38e4a6}=await this[_0x25f0e6(0x1b4)][_0x25f0e6(0x158)](this[_0x25f0e6(0x1ac)],_0x45196c,{'version':_0x491808,'sessionId':_0x38efb7})[_0x25f0e6(0x172)]();_0xea85f2['id']=_0x38e4a6,_0xea85f2[_0x25f0e6(0x1d0)]=_0x45196c,_0xea85f2[_0x25f0e6(0x151)]=_0x491808,_0xea85f2[_0x25f0e6(0x188)]=_0x38efb7;}catch(_0x2efc25){const _0x5f4b31=new _0x4ae8b7(_0x25f0e6(0x156),null);_0x5f4b31[_0x25f0e6(0x1c6)]=_0x2efc25[_0x25f0e6(0x1c6)],this[_0x25f0e6(0x1cd)](_0x25f0e6(0x174),{'error':_0x5f4b31});}}}[_0x44c243(0x198)](_0x49e7dc){const _0x133d72=_0x44c243;this[_0x133d72(0x1d2)]({'type':_0x14f8c6[_0x133d72(0x187)],'label':_0x49e7dc,'uiId':_0x133d72(0x1a5),'content':_0x49e7dc});}[_0x44c243(0x19c)](){const _0x1c310f=_0x44c243;this[_0x1c310f(0x175)](_0x1c310f(0x1a5));}async[_0x44c243(0x1a2)](_0xcd53ed,_0x395bc1){const _0x2d15db=_0x44c243,_0x57a1c6=_0x2d15db(0x183)+_0x39f98e();this[_0x2d15db(0x1d5)](_0x57a1c6);const _0x2ffc74=_0x2d15db(0x183)+_0x39f98e();try{this[_0x2d15db(0x1d2)]({'type':_0x14f8c6[_0x2d15db(0x1c4)],'label':_0x395bc1?.[_0x2d15db(0x1a6)]||_0xcd53ed,'uiId':_0x2ffc74,'resourceId':_0x395bc1?.[_0x2d15db(0x1bf)]},!0x0);const _0x243dba=this[_0x2d15db(0x1b4)][_0x2d15db(0x1cf)](this[_0x2d15db(0x1ac)],_0xcd53ed,_0x395bc1);this[_0x2d15db(0x154)][_0x2d15db(0x161)](_0x2ffc74,_0x243dba[_0x2d15db(0x168)]);const {id:_0x32e36b}=await _0x243dba[_0x2d15db(0x172)]();this[_0x2d15db(0x154)][_0x2d15db(0x14f)](_0x2ffc74),this[_0x2d15db(0x153)]({'type':_0x14f8c6[_0x2d15db(0x1c4)],'id':_0x32e36b,'label':_0x395bc1?.[_0x2d15db(0x1a6)]||_0xcd53ed,'uiId':_0x2ffc74,'resourceId':_0x395bc1?.[_0x2d15db(0x1bf)]},!0x1);}catch(_0x9f024){this[_0x2d15db(0x154)][_0x2d15db(0x14f)](_0x2ffc74),(_0x9f024[_0x2d15db(0x164)][_0x2d15db(0x178)](_0x2d15db(0x180))||this[_0x2d15db(0x1cd)](_0x2d15db(0x174),{'error':new _0x4ae8b7(_0x2d15db(0x167),this,{'url':_0xcd53ed,'originalError':_0x9f024}),'url':_0xcd53ed}),this[_0x2d15db(0x175)](_0x2ffc74));}finally{this[_0x2d15db(0x191)](_0x57a1c6);}}async[_0x44c243(0x1be)](_0x116cda,_0xc204b,_0x50aab0){const _0x2d500f=_0x44c243,_0x34c0ad=this[_0x2d500f(0x1d4)][_0x2d500f(0x16a)][_0x2d500f(0x1ba)](_0x20ba12=>_0x20ba12['id']===_0x116cda);if(!_0x34c0ad)return this[_0x2d500f(0x1cd)](_0x2d500f(0x174),{'error':new _0x4ae8b7(_0x2d500f(0x190),this,{'sourceId':_0x116cda}),'sourceId':_0x116cda}),[];try{const _0x54f02d=(await _0x34c0ad[_0x2d500f(0x1a9)](_0xc204b))[_0x2d500f(0x18d)](_0x4892ec=>{const _0x1b9f4a=_0x2d500f,_0x467f82=this[_0x1b9f4a(0x1b6)](_0x4892ec['id']);return{..._0x4892ec,'isInContext':_0x467f82};});return _0x34c0ad[_0x2d500f(0x1b8)]=_0x54f02d,this[_0x2d500f(0x1cd)](_0x2d500f(0x173),{'sourceId':_0x116cda,'source':_0x34c0ad,'resources':_0x54f02d,'uid':_0x50aab0}),_0x54f02d;}catch(_0x3ec0ea){return this[_0x2d500f(0x1cd)](_0x2d500f(0x174),{'error':new _0x4ae8b7(_0x2d500f(0x16b),this,{'sourceId':_0x116cda,'originalError':_0x3ec0ea}),'sourceId':_0x116cda,'sourceLabel':_0x34c0ad[_0x2d500f(0x1a6)]}),[];}}async[_0x44c243(0x192)](_0x289191,_0x30b2ef){const _0x489e89=_0x44c243;if(this[_0x489e89(0x1b6)](_0x30b2ef['id']))return;let _0x48f2e7=_0x30b2ef[_0x489e89(0x1c8)];if(!_0x48f2e7&&_0x289191[_0x489e89(0x17e)])try{_0x48f2e7=await _0x289191[_0x489e89(0x17e)](_0x30b2ef['id']);}catch(_0xbac688){return void this[_0x489e89(0x1cd)](_0x489e89(0x174),{'error':new _0x4ae8b7(_0x489e89(0x1c1),this,{'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id'],'originalError':_0xbac688}),'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id']});}if(_0x48f2e7)switch(_0x30b2ef[_0x489e89(0x1ce)]){case _0x14f8c6[_0x489e89(0x1c4)]:if(_0x489e89(0x199)!=typeof _0x48f2e7)return void this[_0x489e89(0x1cd)](_0x489e89(0x174),{'error':new _0x4ae8b7(_0x489e89(0x1c7),this,{'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id'],'expectedType':_0x489e89(0x199),'actualType':typeof _0x48f2e7}),'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id']});await this[_0x489e89(0x1a2)](_0x48f2e7,{'label':_0x30b2ef[_0x489e89(0x1a6)],'resourceId':_0x30b2ef['id']});break;case _0x14f8c6[_0x489e89(0x1d1)]:if(!(_0x48f2e7 instanceof File))return void this[_0x489e89(0x1cd)](_0x489e89(0x174),{'error':new _0x4ae8b7(_0x489e89(0x1c7),this,{'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id'],'expectedType':_0x489e89(0x185),'actualType':typeof _0x48f2e7}),'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id']});await this[_0x489e89(0x1b3)]([_0x48f2e7],{'label':_0x30b2ef[_0x489e89(0x1a6)],'resourceId':_0x30b2ef['id']});break;case _0x14f8c6[_0x489e89(0x169)]:if(_0x489e89(0x1af)!=typeof _0x48f2e7||!(_0x489e89(0x1d0)in _0x48f2e7)||!(_0x489e89(0x1ce)in _0x48f2e7))return void this[_0x489e89(0x1cd)](_0x489e89(0x174),{'error':new _0x4ae8b7(_0x489e89(0x1c7),this,{'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id'],'expectedType':_0x489e89(0x1d6),'actualType':typeof _0x48f2e7}),'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id']});_0x48f2e7=AIChatContext[_0x489e89(0x16e)](_0x48f2e7,_0x30b2ef[_0x489e89(0x1a6)]),await this[_0x489e89(0x1b3)]([_0x48f2e7],{'label':_0x30b2ef[_0x489e89(0x1a6)],'resourceId':_0x30b2ef['id']},_0x14f8c6[_0x489e89(0x169)]);break;default:this[_0x489e89(0x1cd)](_0x489e89(0x174),{'error':new _0x4ae8b7(_0x489e89(0x196),this,{'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id'],'resourceType':_0x30b2ef[_0x489e89(0x1ce)]}),'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id']});}else this[_0x489e89(0x1cd)](_0x489e89(0x174),{'error':new _0x4ae8b7(_0x489e89(0x157),this,{'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id']}),'resourceId':_0x30b2ef['id'],'sourceId':_0x289191['id']});}static[_0x44c243(0x16e)](_0x288a4b,_0x58f030){const _0x5823cf=_0x44c243;switch(_0x288a4b[_0x5823cf(0x1ce)]){case _0x56aa68[_0x5823cf(0x163)]:return new File([_0x288a4b[_0x5823cf(0x1d0)]],_0x58f030,{'type':_0x5823cf(0x189)});case _0x56aa68[_0x5823cf(0x1a0)]:return new File([_0x288a4b[_0x5823cf(0x1d0)]],_0x58f030,{'type':_0x5823cf(0x1c5)});default:return new File([_0x288a4b[_0x5823cf(0x1d0)]],_0x58f030,{'type':_0x5823cf(0x17a)});}}static[_0x44c243(0x162)](_0x2cd361){const _0x3728df=_0x44c243;switch(_0x2cd361[_0x3728df(0x1ce)]){case _0x14f8c6[_0x3728df(0x1d1)]:return{'type':_0x14f8c6[_0x3728df(0x1d1)],'id':_0x2cd361['id']};case _0x14f8c6[_0x3728df(0x1c4)]:return{'type':_0x14f8c6[_0x3728df(0x1c4)],'id':_0x2cd361['id']};case _0x14f8c6[_0x3728df(0x15a)]:return{'type':_0x14f8c6[_0x3728df(0x15a)],'id':_0x2cd361['id'],..._0x2cd361[_0x3728df(0x1a5)]?.[_0x3728df(0x1aa)]&&{'selection':_0x2cd361[_0x3728df(0x1a5)]}};case _0x14f8c6[_0x3728df(0x169)]:return{'type':_0x14f8c6[_0x3728df(0x1d1)],'id':_0x2cd361['id']};default:return null;}}[_0x44c243(0x1d2)](_0x10264b,_0xbe839c=!0x1){const _0x5db07b=_0x44c243;if(this[_0x5db07b(0x159)][_0x5db07b(0x161)](_0x10264b[_0x5db07b(0x179)],_0x10264b),_0x10264b[_0x5db07b(0x15e)]||this[_0x5db07b(0x1cd)](_0x5db07b(0x182),{'contextItem':_0x10264b,'isLoading':_0xbe839c}),_0x5db07b(0x184)===_0x10264b[_0x5db07b(0x179)]&&this[_0x5db07b(0x19f)](),_0x10264b[_0x5db07b(0x1bf)]){const _0x28ff01=this[_0x5db07b(0x15c)](_0x10264b[_0x5db07b(0x1bf)]);_0x28ff01&&_0x28ff01[_0x5db07b(0x1a8)](_0x149c8a=>{const _0x4b9a73=_0x5db07b;this[_0x4b9a73(0x1b1)](_0x149c8a,_0x10264b[_0x4b9a73(0x1bf)],!0x0);});}}[_0x44c243(0x175)](_0x208d9c){const _0x49409b=_0x44c243,_0x144e93=this[_0x49409b(0x159)][_0x49409b(0x19e)](_0x208d9c),_0x577272=this[_0x49409b(0x154)][_0x49409b(0x19e)](_0x208d9c);if(_0x577272&&(_0x577272[_0x49409b(0x1c2)](),this[_0x49409b(0x154)][_0x49409b(0x14f)](_0x208d9c)),_0x144e93?.[_0x49409b(0x1bf)]){const _0x12e262=this[_0x49409b(0x15c)](_0x144e93[_0x49409b(0x1bf)]);_0x12e262&&_0x12e262[_0x49409b(0x1a8)](_0x31a29a=>{const _0x5d1c5d=_0x49409b;this[_0x5d1c5d(0x1b1)](_0x31a29a,_0x144e93[_0x5d1c5d(0x1bf)],!0x1);});}this[_0x49409b(0x159)][_0x49409b(0x14f)](_0x208d9c),this[_0x49409b(0x1cd)](_0x49409b(0x165),{'uiId':_0x208d9c,'type':_0x144e93?.[_0x49409b(0x1ce)]}),_0x49409b(0x184)===_0x208d9c&&this[_0x49409b(0x19f)]();}[_0x44c243(0x153)](_0x376c75,_0x4b023d){const _0xfd9ae2=_0x44c243;if(this[_0xfd9ae2(0x159)][_0xfd9ae2(0x1bd)](_0x376c75[_0xfd9ae2(0x179)])&&(this[_0xfd9ae2(0x159)][_0xfd9ae2(0x161)](_0x376c75[_0xfd9ae2(0x179)],_0x376c75),this[_0xfd9ae2(0x1cd)](_0xfd9ae2(0x1b2),{'contextItem':_0x376c75,'isLoading':_0x4b023d}),_0x376c75[_0xfd9ae2(0x1bf)])){const _0x520ad4=this[_0xfd9ae2(0x15c)](_0x376c75[_0xfd9ae2(0x1bf)]);_0x520ad4&&_0x520ad4[_0xfd9ae2(0x1a8)](_0x1d94f0=>{const _0x13d9a8=_0xfd9ae2;this[_0x13d9a8(0x1b1)](_0x1d94f0,_0x376c75[_0x13d9a8(0x1bf)],!0x0);});}}[_0x44c243(0x1a7)](_0x4d9091){const _0xed6384=_0x44c243;this[_0xed6384(0x1c0)][_0xed6384(0x161)](_0x4d9091[_0xed6384(0x179)],_0x4d9091);}[_0x44c243(0x1cb)](){const _0x28d40e=_0x44c243;this[_0x28d40e(0x1d4)]={'document':{'enabled':!0x1!==this[_0x28d40e(0x150)]?.[_0x28d40e(0x170)]?.[_0x28d40e(0x1c9)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x28d40e(0x150)]?.[_0x28d40e(0x15b)]?.[_0x28d40e(0x1c9)]},'files':{'enabled':!0x1!==this[_0x28d40e(0x150)]?.[_0x28d40e(0x19d)]?.[_0x28d40e(0x1c9)]},'sources':this[_0x28d40e(0x186)]()},this[_0x28d40e(0x1cd)](_0x28d40e(0x1b7),{'options':this[_0x28d40e(0x1d4)]});}[_0x44c243(0x186)](){const _0x16d3c4=_0x44c243;return this[_0x16d3c4(0x150)]?.[_0x16d3c4(0x16a)]?.[_0x16d3c4(0x18d)](_0x462e9b=>({..._0x462e9b,'resources':[]}))??[];}[_0x44c243(0x19f)](){const _0x130d34=_0x44c243,_0x3ca1c2=this[_0x130d34(0x1d7)]()||this[_0x130d34(0x166)]();this[_0x130d34(0x1d4)][_0x130d34(0x170)][_0x130d34(0x17b)]=_0x3ca1c2,this[_0x130d34(0x1cd)](_0x130d34(0x1b7),{'options':this[_0x130d34(0x1d4)]});}[_0x44c243(0x1b6)](_0x397f1d){const _0x51c867=_0x44c243;for(const _0xb22b1c of this[_0x51c867(0x159)][_0x51c867(0x14b)]())if(_0xb22b1c[_0x51c867(0x1bf)]===_0x397f1d)return!0x0;for(const _0x5d8efc of this[_0x51c867(0x1c0)][_0x51c867(0x14b)]())if(_0x5d8efc[_0x51c867(0x1bf)]===_0x397f1d)return!0x0;return!0x1;}[_0x44c243(0x15c)](_0x3cee23){const _0x1cfe05=_0x44c243,_0x4010db=[];for(const _0xbbe5a9 of this[_0x1cfe05(0x1d4)][_0x1cfe05(0x16a)]){_0xbbe5a9[_0x1cfe05(0x1b8)][_0x1cfe05(0x1ba)](_0x30ea93=>_0x30ea93['id']===_0x3cee23)&&_0x4010db[_0x1cfe05(0x181)](_0xbbe5a9['id']);}return 0x0===_0x4010db[_0x1cfe05(0x1aa)]?null:_0x4010db;}[_0x44c243(0x1b1)](_0x1a2f0a,_0x1ca2f7,_0x592a83){const _0x2e0653=_0x44c243,_0x2f82d6=this[_0x2e0653(0x1d4)][_0x2e0653(0x16a)][_0x2e0653(0x1ba)](_0x53fe5f=>_0x53fe5f['id']===_0x1a2f0a);if(!_0x2f82d6)return;const _0x83ea6d=_0x2f82d6[_0x2e0653(0x1b8)][_0x2e0653(0x1ba)](_0xdb904e=>_0xdb904e['id']===_0x1ca2f7);_0x83ea6d&&(_0x83ea6d[_0x2e0653(0x1b9)]=_0x592a83,this[_0x2e0653(0x1cd)](_0x2e0653(0x17c),{'sourceId':_0x1a2f0a,'resourceId':_0x1ca2f7,'isInContext':_0x592a83}));}[_0x44c243(0x1d5)](_0x2230cb){const _0x5ceebf=_0x44c243;this[_0x5ceebf(0x1bc)][_0x5ceebf(0x161)](_0x2230cb,!0x0),this[_0x5ceebf(0x1bc)][_0x5ceebf(0x19a)]&&this[_0x5ceebf(0x1cd)](_0x5ceebf(0x15d),{'isUploadInProgress':!0x0});}[_0x44c243(0x191)](_0x552cb2){const _0xb51a6a=_0x44c243;this[_0xb51a6a(0x1bc)][_0xb51a6a(0x14f)](_0x552cb2),0x0===this[_0xb51a6a(0x1bc)][_0xb51a6a(0x19a)]&&this[_0xb51a6a(0x1cd)](_0xb51a6a(0x15d),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x43fc4a=_0x1303;(function(_0xb56a1c,_0x40ea3c){const _0x4a68d9=_0x1303,_0x34442f=_0xb56a1c();while(!![]){try{const _0xed1120=parseInt(_0x4a68d9(0xf6))/0x1+-parseInt(_0x4a68d9(0x12d))/0x2*(-parseInt(_0x4a68d9(0x15f))/0x3)+-parseInt(_0x4a68d9(0x144))/0x4+-parseInt(_0x4a68d9(0x110))/0x5*(-parseInt(_0x4a68d9(0xf0))/0x6)+-parseInt(_0x4a68d9(0x163))/0x7+parseInt(_0x4a68d9(0x13e))/0x8*(-parseInt(_0x4a68d9(0xfc))/0x9)+parseInt(_0x4a68d9(0x142))/0xa*(parseInt(_0x4a68d9(0x13c))/0xb);if(_0xed1120===_0x40ea3c)break;else _0x34442f['push'](_0x34442f['shift']());}catch(_0x4b7e19){_0x34442f['push'](_0x34442f['shift']());}}}(_0x2b98,0xaaa1f));function _0x1303(_0x915703,_0xa7d37b){const _0x2b9803=_0x2b98();return _0x1303=function(_0x13035b,_0x41e59b){_0x13035b=_0x13035b-0xe3;let _0x1cc391=_0x2b9803[_0x13035b];return _0x1cc391;},_0x1303(_0x915703,_0xa7d37b);}import{CKEditorError as _0x553e7c,ObservableMixin as _0x143f28,uid as _0xa74476}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x3502d2,AIContextTextResourceType as _0x4d97ac}from'../../aicore/model/aicontext.js';import{escape as _0x2063b3}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x43fc4a(0x155),_0x43fc4a(0x12f),_0x43fc4a(0x130),_0x43fc4a(0x15b),_0x43fc4a(0x118),_0x43fc4a(0x14c),_0x43fc4a(0x10b),_0x43fc4a(0x170),_0x43fc4a(0x12e)];export class AIChatContext extends _0x143f28(){[_0x43fc4a(0x11f)];[_0x43fc4a(0xff)];[_0x43fc4a(0x157)];constructor({connector:_0x2084b5,config:_0x429748,ownerId:_0x1741ee}){const _0x2061f2=_0x43fc4a;super(),this[_0x2061f2(0x11f)]=_0x2084b5,this[_0x2061f2(0xff)]=_0x429748,this[_0x2061f2(0x157)]=_0x1741ee;}[_0x43fc4a(0x150)](){const _0x133af=_0x43fc4a;this[_0x133af(0x125)]=new Map(),this[_0x133af(0x11e)]=new Map(),this[_0x133af(0x11c)]=new Map(),this[_0x133af(0x14b)]=new Map(),this[_0x133af(0x126)]();}[_0x43fc4a(0x106)](){const _0x8e5b67=_0x43fc4a;return this[_0x8e5b67(0x125)];}async[_0x43fc4a(0x122)](_0x3cfdfe){const _0x4c3d48=_0x43fc4a,_0x5d13e3=await this[_0x4c3d48(0x10a)](_0x3cfdfe);return this[_0x4c3d48(0x156)](_0x5d13e3),_0x4c3d48(0x166)===_0x5d13e3[_0x4c3d48(0x100)]&&this[_0x4c3d48(0x119)](),_0x5d13e3;}async[_0x43fc4a(0x10a)](_0x346b85){const _0x56f8f5=_0x43fc4a;if(_0x346b85[_0x56f8f5(0x111)]===_0x3502d2[_0x56f8f5(0x158)]){const _0x36b947=await this[_0x56f8f5(0x11f)][_0x56f8f5(0xe5)](this[_0x56f8f5(0x157)],_0x346b85['id'])[_0x56f8f5(0x131)]();return{'id':_0x56f8f5(0x166),'uiId':_0x56f8f5(0x166),'label':_0x56f8f5(0x168),'type':_0x346b85[_0x56f8f5(0x111)],'content':_0x36b947[_0x56f8f5(0x16f)],'hidden':this[_0x56f8f5(0x11e)][_0x56f8f5(0xfa)](_0x56f8f5(0x166)),'version':_0x36b947[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x147)],'sessionId':_0x36b947[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x137)]};}return{'id':_0x346b85['id'],'uiId':_0x346b85['id'],'label':_0x346b85[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x128)]||_0x346b85[_0x56f8f5(0xe8)]||_0x346b85[_0x56f8f5(0x149)]||_0x346b85['id'],'type':_0x346b85[_0x56f8f5(0x111)],..._0x346b85?.[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x113)]?{'resourceId':_0x346b85[_0x56f8f5(0x15c)]?.[_0x56f8f5(0x113)]}:{}};}[_0x43fc4a(0xe4)](){const _0x3066aa=_0x43fc4a;return new Map(this[_0x3066aa(0x11e)]);}[_0x43fc4a(0x14f)](_0x37a28e){const _0x346270=_0x43fc4a,_0x5a3a4d=this[_0x346270(0x125)][_0x346270(0x171)](_0x37a28e);_0x5a3a4d?.[_0x346270(0xfb)]||this[_0x346270(0x127)](_0x37a28e);}[_0x43fc4a(0xec)](){const _0xdfb021=_0x43fc4a;if(0x0===this[_0xdfb021(0x125)][_0xdfb021(0x164)])return;for(const _0xf54aad of this[_0xdfb021(0x125)][_0xdfb021(0x12a)]())this[_0xdfb021(0x127)](_0xf54aad[_0xdfb021(0x100)]);const _0x4893b3=this[_0xdfb021(0x11e)][_0xdfb021(0x171)](_0xdfb021(0x166))||this[_0xdfb021(0x125)][_0xdfb021(0x171)](_0xdfb021(0x166));_0x4893b3&&this[_0xdfb021(0x162)]({..._0x4893b3,'isReadOnly':!0x0,'hidden':!0x0});}[_0x43fc4a(0x108)](_0x1fb9a3){const _0x54971c=_0x43fc4a;for(const _0x5f263c of _0x1fb9a3[_0x54971c(0x12a)]())this[_0x54971c(0x156)](_0x5f263c);this[_0x54971c(0xec)](),this[_0x54971c(0x148)](_0x54971c(0x15b),{'contextItems':Array[_0x54971c(0x101)](this[_0x54971c(0xe4)]()[_0x54971c(0x12a)]())});}[_0x43fc4a(0x141)](){const _0x4034ef=_0x43fc4a;return this[_0x4034ef(0x125)][_0x4034ef(0xfa)](_0x4034ef(0x166));}[_0x43fc4a(0x121)](){const _0x5d814c=_0x43fc4a;return this[_0x5d814c(0x125)][_0x5d814c(0xfa)](_0x5d814c(0xeb));}[_0x43fc4a(0x16a)](){const _0x32e94e=_0x43fc4a;return this[_0x32e94e(0x11e)][_0x32e94e(0xfa)](_0x32e94e(0x166));}static[_0x43fc4a(0x11a)](_0xabf59b){const _0x42ca94=_0x43fc4a;return Array[_0x42ca94(0x101)](_0xabf59b[_0x42ca94(0x12a)]())[_0x42ca94(0xf1)](_0x277f1e=>this[_0x42ca94(0x145)](_0x277f1e))[_0x42ca94(0x139)](_0x4e8353=>null!==_0x4e8353);}async[_0x43fc4a(0xe7)](_0x219457,_0x15a09a,_0x56bdea=_0x3502d2[_0x43fc4a(0x136)]){const _0x5e0577=_0x43fc4a,_0x1cfc93=_0x5e0577(0x102)+_0xa74476();this[_0x5e0577(0x16d)](_0x1cfc93);try{await Promise[_0x5e0577(0xf9)](_0x219457[_0x5e0577(0xf1)](async _0x14783e=>{const _0x34fbcb=_0x5e0577,_0xacf5a6=_0x34fbcb(0xef)+_0xa74476(),_0x1e4cb4=_0x2063b3(_0x14783e[_0x34fbcb(0xe8)]);try{this[_0x34fbcb(0x162)]({'type':_0x56bdea,'label':_0x15a09a?.[_0x34fbcb(0x128)]||_0x1e4cb4,'uiId':_0xacf5a6,'resourceId':_0x15a09a?.[_0x34fbcb(0x113)]},!0x0);const _0x49104f=this[_0x34fbcb(0x11f)][_0x34fbcb(0x112)](this[_0x34fbcb(0x157)],_0x14783e,_0x15a09a);this[_0x34fbcb(0x11c)][_0x34fbcb(0x14d)](_0xacf5a6,_0x49104f[_0x34fbcb(0xf8)]);const {id:_0x116338}=await _0x49104f[_0x34fbcb(0x13d)]();this[_0x34fbcb(0x11c)][_0x34fbcb(0xf3)](_0xacf5a6),this[_0x34fbcb(0xea)]({'type':_0x56bdea,'id':_0x116338,'label':_0x15a09a?.[_0x34fbcb(0x128)]||_0x1e4cb4,'uiId':_0xacf5a6,'resourceId':_0x15a09a?.[_0x34fbcb(0x113)]},!0x1);}catch(_0x4c7b7b){this[_0x34fbcb(0x11c)][_0x34fbcb(0xf3)](_0xacf5a6);if(!_0x4c7b7b[_0x34fbcb(0x16c)][_0x34fbcb(0x123)](_0x34fbcb(0x14a))){const _0x488d92=new _0x553e7c(_0x34fbcb(0x14e),null,{'fileName':_0x1e4cb4});_0x488d92[_0x34fbcb(0xfe)]=_0x4c7b7b[_0x34fbcb(0xfe)],this[_0x34fbcb(0x148)](_0x34fbcb(0x118),{'error':_0x488d92,'fileName':_0x1e4cb4});}this[_0x34fbcb(0x127)](_0xacf5a6);}}));}finally{this[_0x5e0577(0x152)](_0x1cfc93);}}[_0x43fc4a(0xed)](_0x2c7c54){const _0x399050=_0x43fc4a;if(this[_0x399050(0x141)]())return;const _0x4322d1={'type':_0x3502d2[_0x399050(0x158)],'uiId':_0x399050(0x166),'label':_0x2c7c54,'isReadOnly':this[_0x399050(0x11e)][_0x399050(0xfa)](_0x399050(0x166)),'hidden':this[_0x399050(0x11e)][_0x399050(0xfa)](_0x399050(0x166))};this[_0x399050(0x162)](_0x4322d1);}async[_0x43fc4a(0x120)](_0x111614,_0x441bcb,_0x3d9181,_0x501e65){const _0x5d9107=_0x43fc4a,_0x19157d=this[_0x5d9107(0x125)][_0x5d9107(0x171)](_0x5d9107(0x166));if(_0x19157d&&_0x111614){_0x19157d[_0x5d9107(0xeb)]=_0x501e65?_0x501e65[_0x5d9107(0xf1)](_0x5ed746=>({'start':_0x5ed746[_0x5d9107(0x105)],'end':_0x5ed746[_0x5d9107(0xfd)]})):[];try{if(_0x19157d[_0x5d9107(0x147)]===_0x441bcb)return;const {id:_0x156fa}=await this[_0x5d9107(0x11f)][_0x5d9107(0x117)](this[_0x5d9107(0x157)],_0x111614,{'version':_0x441bcb,'sessionId':_0x3d9181})[_0x5d9107(0x13d)]();_0x19157d['id']=_0x156fa,_0x19157d[_0x5d9107(0x16f)]=_0x111614,_0x19157d[_0x5d9107(0x147)]=_0x441bcb,_0x19157d[_0x5d9107(0x137)]=_0x3d9181;}catch(_0x29cb64){const _0x31fe28=new _0x553e7c(_0x5d9107(0xf2),null);_0x31fe28[_0x5d9107(0xfe)]=_0x29cb64[_0x5d9107(0xfe)],this[_0x5d9107(0x148)](_0x5d9107(0x118),{'error':_0x31fe28});}}}[_0x43fc4a(0x134)](_0x1fb6e0){const _0x5b549a=_0x43fc4a;this[_0x5b549a(0x162)]({'type':_0x3502d2[_0x5b549a(0xe6)],'label':_0x1fb6e0,'uiId':_0x5b549a(0xeb),'content':_0x1fb6e0});}[_0x43fc4a(0x138)](){const _0x2474c2=_0x43fc4a;this[_0x2474c2(0x127)](_0x2474c2(0xeb));}async[_0x43fc4a(0xf7)](_0x1eb2b4,_0x2bbabb){const _0x4bb49d=_0x43fc4a,_0x4700c7=_0x4bb49d(0x16e)+_0xa74476();this[_0x4bb49d(0x16d)](_0x4700c7);const _0x5f6bab=_0x4bb49d(0x16e)+_0xa74476();try{this[_0x4bb49d(0x162)]({'type':_0x3502d2[_0x4bb49d(0x115)],'label':_0x2bbabb?.[_0x4bb49d(0x128)]||_0x1eb2b4,'uiId':_0x5f6bab,'resourceId':_0x2bbabb?.[_0x4bb49d(0x113)]},!0x0);const _0x427cc9=this[_0x4bb49d(0x11f)][_0x4bb49d(0x124)](this[_0x4bb49d(0x157)],_0x1eb2b4,_0x2bbabb);this[_0x4bb49d(0x11c)][_0x4bb49d(0x14d)](_0x5f6bab,_0x427cc9[_0x4bb49d(0xf8)]);const {id:_0x451301}=await _0x427cc9[_0x4bb49d(0x13d)]();this[_0x4bb49d(0x11c)][_0x4bb49d(0xf3)](_0x5f6bab),this[_0x4bb49d(0xea)]({'type':_0x3502d2[_0x4bb49d(0x115)],'id':_0x451301,'label':_0x2bbabb?.[_0x4bb49d(0x128)]||_0x1eb2b4,'uiId':_0x5f6bab,'resourceId':_0x2bbabb?.[_0x4bb49d(0x113)]},!0x1);}catch(_0x5d0f1b){this[_0x4bb49d(0x11c)][_0x4bb49d(0xf3)](_0x5f6bab),(_0x5d0f1b[_0x4bb49d(0x16c)][_0x4bb49d(0x123)](_0x4bb49d(0x14a))||this[_0x4bb49d(0x148)](_0x4bb49d(0x118),{'error':new _0x553e7c(_0x4bb49d(0xee),this,{'url':_0x1eb2b4,'originalError':_0x5d0f1b}),'url':_0x1eb2b4}),this[_0x4bb49d(0x127)](_0x5f6bab));}finally{this[_0x4bb49d(0x152)](_0x4700c7);}}async[_0x43fc4a(0x10d)](_0x13e3cf,_0x15f5b4,_0x375921){const _0x4da3a2=_0x43fc4a,_0x3c0905=this[_0x4da3a2(0x12c)][_0x4da3a2(0x151)][_0x4da3a2(0x104)](_0x5ec04a=>_0x5ec04a['id']===_0x13e3cf);if(!_0x3c0905)return this[_0x4da3a2(0x148)](_0x4da3a2(0x118),{'error':new _0x553e7c(_0x4da3a2(0x13a),this,{'sourceId':_0x13e3cf}),'sourceId':_0x13e3cf}),[];try{const _0x40d404=(await _0x3c0905[_0x4da3a2(0x161)](_0x15f5b4))[_0x4da3a2(0xf1)](_0x5d81c6=>{const _0x56a62c=_0x4da3a2,_0x2008b2=this[_0x56a62c(0x15d)](_0x5d81c6['id']);return{..._0x5d81c6,'isInContext':_0x2008b2};});return _0x3c0905[_0x4da3a2(0x133)]=_0x40d404,this[_0x4da3a2(0x148)](_0x4da3a2(0x10b),{'sourceId':_0x13e3cf,'source':_0x3c0905,'resources':_0x40d404,'uid':_0x375921}),_0x40d404;}catch(_0x30ac88){return this[_0x4da3a2(0x148)](_0x4da3a2(0x118),{'error':new _0x553e7c(_0x4da3a2(0x12b),this,{'sourceId':_0x13e3cf,'originalError':_0x30ac88}),'sourceId':_0x13e3cf,'sourceLabel':_0x3c0905[_0x4da3a2(0x128)]}),[];}}async[_0x43fc4a(0x109)](_0x22f3eb,_0x289fec){const _0x5523ae=_0x43fc4a;if(this[_0x5523ae(0x15d)](_0x289fec['id']))return;let _0x41e6b7=_0x289fec[_0x5523ae(0x116)];if(!_0x41e6b7&&_0x22f3eb[_0x5523ae(0x146)])try{_0x41e6b7=await _0x22f3eb[_0x5523ae(0x146)](_0x289fec['id']);}catch(_0x133dcb){return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x159),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'originalError':_0x133dcb}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});}if(_0x41e6b7)switch(_0x289fec[_0x5523ae(0x111)]){case _0x3502d2[_0x5523ae(0x115)]:if(_0x5523ae(0x169)!=typeof _0x41e6b7)return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x140),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'expectedType':_0x5523ae(0x169),'actualType':typeof _0x41e6b7}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});await this[_0x5523ae(0xf7)](_0x41e6b7,{'label':_0x289fec[_0x5523ae(0x128)],'resourceId':_0x289fec['id']});break;case _0x3502d2[_0x5523ae(0x136)]:if(!(_0x41e6b7 instanceof File))return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x140),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'expectedType':_0x5523ae(0x103),'actualType':typeof _0x41e6b7}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});await this[_0x5523ae(0xe7)]([_0x41e6b7],{'label':_0x289fec[_0x5523ae(0x128)],'resourceId':_0x289fec['id']});break;case _0x3502d2[_0x5523ae(0x165)]:if(_0x5523ae(0x129)!=typeof _0x41e6b7||!(_0x5523ae(0x16f)in _0x41e6b7)||!(_0x5523ae(0x111)in _0x41e6b7))return void this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x140),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'expectedType':_0x5523ae(0x11d),'actualType':typeof _0x41e6b7}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});_0x41e6b7=AIChatContext[_0x5523ae(0x13b)](_0x41e6b7,_0x289fec[_0x5523ae(0x128)]),await this[_0x5523ae(0xe7)]([_0x41e6b7],{'label':_0x289fec[_0x5523ae(0x128)],'resourceId':_0x289fec['id']},_0x3502d2[_0x5523ae(0x165)]);break;default:this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0xe9),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id'],'resourceType':_0x289fec[_0x5523ae(0x111)]}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});}else this[_0x5523ae(0x148)](_0x5523ae(0x118),{'error':new _0x553e7c(_0x5523ae(0x132),this,{'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']}),'resourceId':_0x289fec['id'],'sourceId':_0x22f3eb['id']});}static[_0x43fc4a(0x13b)](_0x501d18,_0x1e4cb1){const _0x43ab17=_0x43fc4a;switch(_0x501d18[_0x43ab17(0x111)]){case _0x4d97ac[_0x43ab17(0xe3)]:return new File([_0x501d18[_0x43ab17(0x16f)]],_0x1e4cb1,{'type':_0x43ab17(0x10c)});case _0x4d97ac[_0x43ab17(0x167)]:return new File([_0x501d18[_0x43ab17(0x16f)]],_0x1e4cb1,{'type':_0x43ab17(0x154)});default:return new File([_0x501d18[_0x43ab17(0x16f)]],_0x1e4cb1,{'type':_0x43ab17(0x143)});}}static[_0x43fc4a(0x145)](_0xb4289a){const _0x3d8d05=_0x43fc4a;switch(_0xb4289a[_0x3d8d05(0x111)]){case _0x3502d2[_0x3d8d05(0x136)]:return{'type':_0x3502d2[_0x3d8d05(0x136)],'id':_0xb4289a['id']};case _0x3502d2[_0x3d8d05(0x115)]:return{'type':_0x3502d2[_0x3d8d05(0x115)],'id':_0xb4289a['id']};case _0x3502d2[_0x3d8d05(0x158)]:return{'type':_0x3502d2[_0x3d8d05(0x158)],'id':_0xb4289a['id'],..._0xb4289a[_0x3d8d05(0xeb)]?.[_0x3d8d05(0x11b)]&&{'selection':_0xb4289a[_0x3d8d05(0xeb)]}};case _0x3502d2[_0x3d8d05(0x165)]:return{'type':_0x3502d2[_0x3d8d05(0x136)],'id':_0xb4289a['id']};default:return null;}}[_0x43fc4a(0x162)](_0x3efb0e,_0x257958=!0x1){const _0x3f95b7=_0x43fc4a;if(this[_0x3f95b7(0x125)][_0x3f95b7(0x14d)](_0x3efb0e[_0x3f95b7(0x100)],_0x3efb0e),_0x3efb0e[_0x3f95b7(0xf4)]||this[_0x3f95b7(0x148)](_0x3f95b7(0x155),{'contextItem':_0x3efb0e,'isLoading':_0x257958}),_0x3f95b7(0x166)===_0x3efb0e[_0x3f95b7(0x100)]&&this[_0x3f95b7(0x119)](),_0x3efb0e[_0x3f95b7(0x113)]){const _0x5ef2fd=this[_0x3f95b7(0x15e)](_0x3efb0e[_0x3f95b7(0x113)]);_0x5ef2fd&&_0x5ef2fd[_0x3f95b7(0x15a)](_0x4db90c=>{const _0xeef920=_0x3f95b7;this[_0xeef920(0x114)](_0x4db90c,_0x3efb0e[_0xeef920(0x113)],!0x0);});}}[_0x43fc4a(0x127)](_0x55802e){const _0x9c616d=_0x43fc4a,_0x7e6990=this[_0x9c616d(0x125)][_0x9c616d(0x171)](_0x55802e),_0x18cd9d=this[_0x9c616d(0x11c)][_0x9c616d(0x171)](_0x55802e);if(_0x18cd9d&&(_0x18cd9d[_0x9c616d(0x135)](),this[_0x9c616d(0x11c)][_0x9c616d(0xf3)](_0x55802e)),_0x7e6990?.[_0x9c616d(0x113)]){const _0x213537=this[_0x9c616d(0x15e)](_0x7e6990[_0x9c616d(0x113)]);_0x213537&&_0x213537[_0x9c616d(0x15a)](_0x5b4953=>{const _0x6b0723=_0x9c616d;this[_0x6b0723(0x114)](_0x5b4953,_0x7e6990[_0x6b0723(0x113)],!0x1);});}this[_0x9c616d(0x125)][_0x9c616d(0xf3)](_0x55802e),this[_0x9c616d(0x148)](_0x9c616d(0x12f),{'uiId':_0x55802e,'type':_0x7e6990?.[_0x9c616d(0x111)]}),_0x9c616d(0x166)===_0x55802e&&this[_0x9c616d(0x119)]();}[_0x43fc4a(0xea)](_0x19eb3c,_0x495bf2){const _0x710853=_0x43fc4a;if(this[_0x710853(0x125)][_0x710853(0xfa)](_0x19eb3c[_0x710853(0x100)])&&(this[_0x710853(0x125)][_0x710853(0x14d)](_0x19eb3c[_0x710853(0x100)],_0x19eb3c),this[_0x710853(0x148)](_0x710853(0x130),{'contextItem':_0x19eb3c,'isLoading':_0x495bf2}),_0x19eb3c[_0x710853(0x113)])){const _0x3aca21=this[_0x710853(0x15e)](_0x19eb3c[_0x710853(0x113)]);_0x3aca21&&_0x3aca21[_0x710853(0x15a)](_0x1d907d=>{const _0xeeeefc=_0x710853;this[_0xeeeefc(0x114)](_0x1d907d,_0x19eb3c[_0xeeeefc(0x113)],!0x0);});}}[_0x43fc4a(0x156)](_0x1ec092){const _0x27eb8d=_0x43fc4a;this[_0x27eb8d(0x11e)][_0x27eb8d(0x14d)](_0x1ec092[_0x27eb8d(0x100)],_0x1ec092);}[_0x43fc4a(0x126)](){const _0x4d609f=_0x43fc4a;this[_0x4d609f(0x12c)]={'document':{'enabled':!0x1!==this[_0x4d609f(0xff)]?.[_0x4d609f(0x10f)]?.[_0x4d609f(0x153)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x4d609f(0xff)]?.[_0x4d609f(0x160)]?.[_0x4d609f(0x153)]},'files':{'enabled':!0x1!==this[_0x4d609f(0xff)]?.[_0x4d609f(0x13f)]?.[_0x4d609f(0x153)]},'sources':this[_0x4d609f(0x10e)]()},this[_0x4d609f(0x148)](_0x4d609f(0x14c),{'options':this[_0x4d609f(0x12c)]});}[_0x43fc4a(0x10e)](){const _0x128a47=_0x43fc4a;return this[_0x128a47(0xff)]?.[_0x128a47(0x151)]?.[_0x128a47(0xf1)](_0x22ab7b=>({..._0x22ab7b,'resources':[]}))??[];}[_0x43fc4a(0x119)](){const _0x1d73bb=_0x43fc4a,_0xe18147=this[_0x1d73bb(0x141)]()||this[_0x1d73bb(0x16a)]();this[_0x1d73bb(0x12c)][_0x1d73bb(0x10f)][_0x1d73bb(0x16b)]=_0xe18147,this[_0x1d73bb(0x148)](_0x1d73bb(0x14c),{'options':this[_0x1d73bb(0x12c)]});}[_0x43fc4a(0x15d)](_0x3c0b30){const _0x51fe5f=_0x43fc4a;for(const _0x269ecb of this[_0x51fe5f(0x125)][_0x51fe5f(0x12a)]())if(_0x269ecb[_0x51fe5f(0x113)]===_0x3c0b30)return!0x0;for(const _0x78b237 of this[_0x51fe5f(0x11e)][_0x51fe5f(0x12a)]())if(_0x78b237[_0x51fe5f(0x113)]===_0x3c0b30)return!0x0;return!0x1;}[_0x43fc4a(0x15e)](_0x1c0f1c){const _0x5c7b77=_0x43fc4a,_0x26f5ca=[];for(const _0x2e29ad of this[_0x5c7b77(0x12c)][_0x5c7b77(0x151)]){_0x2e29ad[_0x5c7b77(0x133)][_0x5c7b77(0x104)](_0x3d2a86=>_0x3d2a86['id']===_0x1c0f1c)&&_0x26f5ca[_0x5c7b77(0xf5)](_0x2e29ad['id']);}return 0x0===_0x26f5ca[_0x5c7b77(0x11b)]?null:_0x26f5ca;}[_0x43fc4a(0x114)](_0x310099,_0x341211,_0x1b6f52){const _0x2d173b=_0x43fc4a,_0x3225ea=this[_0x2d173b(0x12c)][_0x2d173b(0x151)][_0x2d173b(0x104)](_0x28e85d=>_0x28e85d['id']===_0x310099);if(!_0x3225ea)return;const _0x5db802=_0x3225ea[_0x2d173b(0x133)][_0x2d173b(0x104)](_0x440f90=>_0x440f90['id']===_0x341211);_0x5db802&&(_0x5db802[_0x2d173b(0x107)]=_0x1b6f52,this[_0x2d173b(0x148)](_0x2d173b(0x170),{'sourceId':_0x310099,'resourceId':_0x341211,'isInContext':_0x1b6f52}));}[_0x43fc4a(0x16d)](_0x172225){const _0x1485d9=_0x43fc4a;this[_0x1485d9(0x14b)][_0x1485d9(0x14d)](_0x172225,!0x0),this[_0x1485d9(0x14b)][_0x1485d9(0x164)]&&this[_0x1485d9(0x148)](_0x1485d9(0x12e),{'isUploadInProgress':!0x0});}[_0x43fc4a(0x152)](_0x21a600){const _0x53a1d9=_0x43fc4a;this[_0x53a1d9(0x14b)][_0x53a1d9(0xf3)](_0x21a600),0x0===this[_0x53a1d9(0x14b)][_0x53a1d9(0x164)]&&this[_0x53a1d9(0x148)](_0x53a1d9(0x12e),{'isUploadInProgress':!0x1});}}function _0x2b98(){const _0x4af71b=['2489523HChJHe','urls','getResources','_addContextItem','2568636wtmwqV','size','TEXT','current-document','HTML','Current\x20document','string','isCurrentDocumentInConversation','isHidden','message','_startUploadOperation','url-','content','resourceStateChanged','get','MARKDOWN','getSentContextItems','fetchDocument','SELECTION','addFilesToContext','name','ai-chat-context-unsupported-type','_finishContextItemLoading','selection','clearPendingContextItems','addCurrentDocumentToContext','ai-chat-url-upload-failed','file-','6VnVqVn','map','ai-chat-document-upload-failed','delete','hidden','push','10131AzQkML','addUrlToContext','abortController','all','has','isReadOnly','2781JwKXnp','end','stack','_config','uiId','from','files-','File','find','start','getPendingContextItems','isInContext','addToConversationContext','addResourceToContext','_createContextItemFromContent','sourceResourcesLoaded','text/markdown','loadSourceResources','_getCustomSourcesInitialState','document','1469385HAWRoa','type','uploadFile','resourceId','_updateResourceInContextState','URL','data','uploadDocument','error','_toggleAddCurrentDocumentOptionVisibility','mapContextItemsToRequestData','length','_ongoingUploads','object\x20with\x20content\x20and\x20type\x20properties','_conversationContextItems','_connector','updateCurrentDocument','isSelectionInContext','populateFromMessage','startsWith','uploadUrl','_pendingContextItems','_setAddContextOptionsDefaultState','_removeContextItem','label','object','values','ai-chat-source-resources-load-failed','_addContextOptionsState','2iZUtMh','uploadProgressChanged','contextItemRemoved','contextItemLoadingEnded','getDocument','ai-chat-resource-no-data','resources','addSelectionToContext','abort','FILE','sessionId','removeSelectionFromContext','filter','ai-chat-source-not-found','_convertTextResourceToFile','20190643XRqLzS','getId','16008pPqNpW','files','ai-chat-context-invalid-data','isCurrentDocumentInContext','10JZpuQQ','text/plain','5140776vzjaBk','_mapContextItemToRequestData','getData','version','fire','url','ai-request-aborted','_ongoingUploadOperations','addContextOptionsChanged','set','ai-chat-file-upload-failed','removeFromContext','init','sources','_finishUploadOperation','enabled','text/html','contextItemAdded','_addToConversationContextItem','_ownerId','DOCUMENT','ai-chat-resource-load-failed','forEach','contextSent','attributes','_isResourceInContext','_findSourceIdsByResourceId'];_0x2b98=function(){return _0x4af71b;};return _0x2b98();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xedcdd9=_0x2f30;(function(_0x35d998,_0x4bd3e9){const _0x204f3f=_0x2f30,_0x266f7a=_0x35d998();while(!![]){try{const _0x23911d=-parseInt(_0x204f3f(0x24e))/0x1+parseInt(_0x204f3f(0x215))/0x2+parseInt(_0x204f3f(0x21d))/0x3*(parseInt(_0x204f3f(0x210))/0x4)+-parseInt(_0x204f3f(0x22b))/0x5*(parseInt(_0x204f3f(0x223))/0x6)+parseInt(_0x204f3f(0x220))/0x7*(-parseInt(_0x204f3f(0x202))/0x8)+parseInt(_0x204f3f(0x236))/0x9*(parseInt(_0x204f3f(0x231))/0xa)+-parseInt(_0x204f3f(0x22d))/0xb;if(_0x23911d===_0x4bd3e9)break;else _0x266f7a['push'](_0x266f7a['shift']());}catch(_0x3e70bd){_0x266f7a['push'](_0x266f7a['shift']());}}}(_0xd220,0xc025f));import{CKEditorError as _0x544313,EmitterMixin as _0x3529a7}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0xe80368}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x322f6f,AI_CONTEXT_MODEL_EVENT_NAMES as _0x301dd7}from'./aichatcontext.js';import{AICapabilities as _0x191051,CAPABILITIES_MODEL_EVENT_NAMES as _0x47d5b7}from'../../aicore/model/aicapabilities.js';function _0xd220(){const _0x40d12d=['createReply','stop','reasoning','reset','model','isSelectionInContext','webSearch','appendContent','length','addToConversationContext','sessionId','assistant','hasOwn','type','createInteraction','setConversationTitle','getDocumentContext','lastInteraction','chatContext','ai-chat-conversation-already-started','getMessages','updateCurrentDocument','1832OHaCNa','delegate','stack','chatCapabilities','ai-chat-conversation-start-failed','error','startConversation','addCurrentDocumentToContext','fire','_extractContextItems','updateCurrentDocumentInContext','loadSourceResources','removeInteraction','populateFromMessage','1996PMrECW','text','destroy','addUrlToContext','interactionCreated','2383112aPhMYa','setModel','role','find','ai-chat-conversation-set-model-not-available','modelSelected','getEditor','title','8967AsuAhP','interactions','text-delta','14602rHdgtW','start','fetchConversation','1218gXeCQs','push','addSelectionToContext','getAll','load','addResourceToContext','handleUserInteraction','currentInteraction','13190WLSgye','options','11466829XkQtYQ','getPendingContextItems','getCurrentDocumentContext','currentReply','12340whShYH','ai-chat-conversation-set-model-null','toggleWebSearch','contextItems','defaultModelId','4644HhWIBw','group','connector','message','toLowerCase','toggleReasoning','indexOf','isStarted','fetchConversationMessages','quickActionData','conversationId','getConversation','_processMessagesToInteractions','ai-chat-handle-user-conversation-not-initialized','ai-chat-conversation-init-failed','chatModels','conversationStarted','attributes','addFilesToContext','user','removeFromContext','conversationInitialized','set','removeSelectionFromContext','477125bgCFXt','prompt','init','isCurrentDocumentInContext','splice','content','getInteraction','ai-chat-conversation-init-from-id-failed','ai-chat-conversation-start-no-model-selected','getCapabilitiesConfig','ai-chat-handle-user-interaction-already-in-progress','selectedModel','capabilities','isAvailable','getDefault','isCurrentDocumentInConversation','modification-delta'];_0xd220=function(){return _0x40d12d;};return _0xd220();}function _0x2f30(_0x4c9bdf,_0x242041){const _0xd2207c=_0xd220();return _0x2f30=function(_0x2f30d4,_0x1c3c64){_0x2f30d4=_0x2f30d4-0x1dd;let _0x1b9971=_0xd2207c[_0x2f30d4];return _0x1b9971;},_0x2f30(_0x4c9bdf,_0x242041);}import{AIChatInteraction as _0x167245}from'./aichatinteraction.js';export class AIChatConversation extends _0x3529a7(){['id'];[_0xedcdd9(0x23d)]=!0x1;[_0xedcdd9(0x21e)]=[];[_0xedcdd9(0x22a)];[_0xedcdd9(0x1e6)];[_0xedcdd9(0x238)];[_0xedcdd9(0x22c)];constructor(_0x5bb9ba){const _0x267f12=_0xedcdd9;super(),this[_0x267f12(0x22c)]=_0x5bb9ba,this[_0x267f12(0x238)]=_0x5bb9ba[_0x267f12(0x238)],this[_0x267f12(0x245)]=_0x5bb9ba[_0x267f12(0x245)],this['id']=_0x5bb9ba[_0x267f12(0x240)];}async[_0xedcdd9(0x1dd)](_0x4036cf){const _0x2221de=_0xedcdd9;try{this[_0x2221de(0x1fe)]=new _0x322f6f({'connector':this[_0x2221de(0x238)],'config':_0x4036cf,'ownerId':this['id']}),this[_0x2221de(0x1fe)][_0x2221de(0x203)](..._0x301dd7)['to'](this),this[_0x2221de(0x1fe)][_0x2221de(0x1dd)](),this[_0x2221de(0x205)]=new _0x191051(),this[_0x2221de(0x205)][_0x2221de(0x203)](..._0x47d5b7)['to'](this),this[_0x2221de(0x205)][_0x2221de(0x1dd)]();const _0x55184f=await this[_0x2221de(0x245)][_0x2221de(0x226)]();this[_0x2221de(0x20a)](_0x2221de(0x24b),{'availableModels':_0x55184f});const _0x3b9591=await this[_0x2221de(0x245)][_0x2221de(0x1e9)](this[_0x2221de(0x22c)][_0x2221de(0x235)]);_0x3b9591&&await this[_0x2221de(0x216)](_0x3b9591);}catch(_0x178adc){const _0x49e503=new _0x544313(_0x2221de(0x244),null,{'message':_0x178adc[_0x2221de(0x239)]});_0x49e503[_0x2221de(0x204)]=_0x178adc[_0x2221de(0x204)],this[_0x2221de(0x20a)](_0x2221de(0x207),{'error':_0x49e503});}}async[_0xedcdd9(0x221)](){const _0xf4cafc=_0xedcdd9;if(this[_0xf4cafc(0x23d)])throw new _0x544313(_0xf4cafc(0x1ff),null,{'conversation':this});if(!this[_0xf4cafc(0x1e6)])throw new _0x544313(_0xf4cafc(0x1e3),null,{'conversation':this});try{const {id:_0x4814c7}=await this[_0xf4cafc(0x238)][_0xf4cafc(0x208)](this['id'],this[_0xf4cafc(0x22c)][_0xf4cafc(0x237)])[_0xf4cafc(0x241)]();this['id']=_0x4814c7,this[_0xf4cafc(0x23d)]=!0x0,this[_0xf4cafc(0x20a)](_0xf4cafc(0x246),{'conversationId':this['id'],'selectedModel':this[_0xf4cafc(0x1e6)]});}catch(_0x2a4990){const _0xf81b2d=new _0x544313(_0xf4cafc(0x206),null,{'message':_0x2a4990[_0xf4cafc(0x239)]});_0xf81b2d[_0xf4cafc(0x204)]=_0x2a4990[_0xf4cafc(0x204)],this[_0xf4cafc(0x20a)](_0xf4cafc(0x207),{'error':_0xf81b2d});}}async[_0xedcdd9(0x227)](_0x317987,_0x2c7f15){const _0xbd5bb2=_0xedcdd9;try{const _0x5650bb=await this[_0xbd5bb2(0x238)][_0xbd5bb2(0x222)](_0x317987)[_0xbd5bb2(0x241)](),_0x20cf8f=await this[_0xbd5bb2(0x238)][_0xbd5bb2(0x23e)](_0x317987)[_0xbd5bb2(0x200)](),_0x52cb7d=_0x20cf8f[0x0][_0xbd5bb2(0x1f0)];this[_0xbd5bb2(0x23d)]=!0x0,this['id']=_0x5650bb['id'],_0xbd5bb2(0x21c)in _0x5650bb?this[_0xbd5bb2(0x20a)](_0xbd5bb2(0x1fb),_0x5650bb[_0xbd5bb2(0x21c)],!0x0):this[_0xbd5bb2(0x20a)](_0xbd5bb2(0x1fb),'',!0x0);const _0x266591=(await this[_0xbd5bb2(0x245)][_0xbd5bb2(0x226)]())[_0xbd5bb2(0x218)](_0x33ab89=>_0x33ab89['id'][_0xbd5bb2(0x23a)]()===_0x52cb7d[_0xbd5bb2(0x23a)]());return this[_0xbd5bb2(0x1e6)]=_0x266591,this[_0xbd5bb2(0x20a)](_0xbd5bb2(0x21a),{'selectedModel':_0x266591,'isDisabled':!0x0}),await this[_0xbd5bb2(0x242)](_0x20cf8f,_0x2c7f15,_0x52cb7d),this[_0xbd5bb2(0x22a)]=void 0x0,this;}catch(_0x42b6e5){const _0x28f9d7=new _0x544313(_0xbd5bb2(0x1e2),null,{'message':_0x42b6e5[_0xbd5bb2(0x239)],'conversationId':_0x317987});throw _0x28f9d7[_0xbd5bb2(0x204)]=_0x42b6e5[_0xbd5bb2(0x204)],this[_0xbd5bb2(0x20a)](_0xbd5bb2(0x207),{'error':_0x28f9d7}),_0x28f9d7;}}async[_0xedcdd9(0x242)](_0x3841b4,_0x356545,_0x222dcb){const _0x152084=_0xedcdd9;let _0x212717;for(const _0x4ab9fc of _0x3841b4)if(_0x152084(0x249)===_0x4ab9fc[_0x152084(0x217)]){const _0x315c91=await this[_0x152084(0x20b)](_0x4ab9fc),_0x467e7b={'isReasoningEnabled':Object[_0x152084(0x1f8)](_0x4ab9fc[_0x152084(0x1e7)],_0x152084(0x1ee)),'isWebSearchEnabled':Object[_0x152084(0x1f8)](_0x4ab9fc[_0x152084(0x1e7)],_0x152084(0x1f2))};_0x212717=this[_0x152084(0x1fa)]({'userMessage':_0x4ab9fc[_0x152084(0x24f)],'contextItems':_0x315c91,'capabilities':_0x467e7b,'modelId':_0x222dcb,'quickActionData':_0x4ab9fc[_0x152084(0x247)]?.[_0x152084(0x23f)]}),this[_0x152084(0x22a)]=_0x212717,this[_0x152084(0x1fe)][_0x152084(0x1f5)](this[_0x152084(0x22a)][_0x152084(0x234)]);}else{if(_0x152084(0x1f7)===_0x4ab9fc[_0x152084(0x217)]&&_0x212717)for(const _0x41a27c of _0x4ab9fc[_0x152084(0x1e0)]){const _0x21b3b6=_0x152084(0x211)===_0x41a27c[_0x152084(0x1f9)]?_0x152084(0x21f):_0x152084(0x1eb),_0xd46608=_0x212717[_0x152084(0x1fc)]()?.[_0x152084(0x1f6)]!==_0x356545;_0x212717[_0x152084(0x230)]=_0x212717[_0x152084(0x1ec)]({'type':_0x21b3b6,'isDone':!0x0,'interactionId':_0x212717['id'],'areActionsDisabled':_0xd46608}),_0x212717[_0x152084(0x230)][_0x152084(0x1f3)](_0x41a27c[_0x152084(0x1e0)]);}}}async[_0xedcdd9(0x20b)](_0x35ab3c){const _0x38803d=_0xedcdd9,_0x3adf6d=new Map();if(!_0x35ab3c[_0x38803d(0x1e0)])return _0x3adf6d;for(const _0x3bb44d of _0x35ab3c[_0x38803d(0x1e0)]){const _0x42b841=await this[_0x38803d(0x1fe)][_0x38803d(0x20f)](_0x3bb44d);_0x42b841&&_0x3adf6d[_0x38803d(0x24c)](_0x42b841['id'],_0x42b841);}return _0x3adf6d;}async[_0xedcdd9(0x229)]({userMessage:_0x21c180,quickActionData:_0x53cb5b}){const _0xcc183=_0xedcdd9;if(!this[_0xcc183(0x23d)])throw new _0x544313(_0xcc183(0x243),null,{'conversation':this});if(this[_0xcc183(0x22a)])throw new _0x544313(_0xcc183(0x1e5),null,{'conversation':this});try{const _0x3ac040=this[_0xcc183(0x1fe)][_0xcc183(0x22e)](),_0x57dd1d=this[_0xcc183(0x205)][_0xcc183(0x1e4)](),_0x59c87a=this[_0xcc183(0x1e6)]['id'];this[_0xcc183(0x22a)]=this[_0xcc183(0x1fa)]({'userMessage':_0x21c180,'contextItems':_0x3ac040,'capabilities':_0x57dd1d,'modelId':_0x59c87a,'quickActionData':_0x53cb5b}),await this[_0xcc183(0x22a)][_0xcc183(0x221)](),this[_0xcc183(0x1fe)][_0xcc183(0x1f5)](this[_0xcc183(0x22a)][_0xcc183(0x234)]);}catch(_0x16c375){this[_0xcc183(0x20a)](_0xcc183(0x207),{'interactionId':this[_0xcc183(0x22a)]?this[_0xcc183(0x22a)]['id']:void 0x0,'error':_0x16c375});}finally{this[_0xcc183(0x22a)]?.[_0xcc183(0x1ed)](),this[_0xcc183(0x22a)]=void 0x0;}}[_0xedcdd9(0x1fa)]({userMessage:_0x1c9f2a,contextItems:_0x32dfcd,capabilities:_0x20030d,modelId:_0x225757,quickActionData:_0xc5d4c5}){const _0x16ed16=_0xedcdd9,_0x3612b1=new _0x167245({'userMessage':_0x1c9f2a,'contextItems':_0x32dfcd,'capabilities':_0x20030d,'conversationId':this['id'],'connector':this[_0x16ed16(0x238)],'editor':this[_0x16ed16(0x22c)][_0x16ed16(0x21b)]&&this[_0x16ed16(0x22c)][_0x16ed16(0x21b)](),'model':_0x225757,'quickActionData':_0xc5d4c5});return _0x3612b1[_0x16ed16(0x203)](..._0xe80368)['to'](this),this[_0x16ed16(0x21e)][_0x16ed16(0x224)](_0x3612b1),this[_0x16ed16(0x20a)](_0x16ed16(0x214),_0x3612b1),_0x3612b1;}[_0xedcdd9(0x1e1)](_0x54dd2a){const _0x53954e=_0xedcdd9;return this[_0x53954e(0x21e)][_0x53954e(0x218)](_0x532869=>_0x532869['id']===_0x54dd2a);}[_0xedcdd9(0x20e)](_0x4ce8db){const _0x4736eb=_0xedcdd9,_0x3f3b6d=this[_0x4736eb(0x1e1)](_0x4ce8db);_0x3f3b6d&&(_0x3f3b6d[_0x4736eb(0x212)](),this[_0x4736eb(0x21e)][_0x4736eb(0x1df)](this[_0x4736eb(0x21e)][_0x4736eb(0x23c)](_0x3f3b6d),0x1));}get[_0xedcdd9(0x1fd)](){const _0x5585c8=_0xedcdd9;return this[_0x5585c8(0x21e)][this[_0x5585c8(0x21e)][_0x5585c8(0x1f4)]-0x1];}[_0xedcdd9(0x209)](_0x4a3de0){const _0x3ddbfe=_0xedcdd9;this[_0x3ddbfe(0x1fe)][_0x3ddbfe(0x209)](_0x4a3de0);}async[_0xedcdd9(0x20c)]({content:_0x394a40,version:_0x1537bc,sessionId:_0x17be2f,selections:_0x143492}){const _0xf6a041=_0xedcdd9;await this[_0xf6a041(0x1fe)][_0xf6a041(0x201)](_0x394a40,_0x1537bc,_0x17be2f,_0x143492);}[_0xedcdd9(0x22f)](){const _0x2d6d70=_0xedcdd9;return this[_0x2d6d70(0x22a)]?.[_0x2d6d70(0x1fc)]()?.[_0x2d6d70(0x1e0)]||'';}[_0xedcdd9(0x225)](_0x57ffef){const _0x3b0ef8=_0xedcdd9;this[_0x3b0ef8(0x1fe)][_0x3b0ef8(0x225)](_0x57ffef);}[_0xedcdd9(0x24d)](){const _0x34f210=_0xedcdd9;this[_0x34f210(0x1fe)][_0x34f210(0x24d)]();}[_0xedcdd9(0x248)](_0x1398e1){const _0x59234b=_0xedcdd9;this[_0x59234b(0x1fe)][_0x59234b(0x248)](_0x1398e1);}[_0xedcdd9(0x213)](_0x1a722f){const _0x2fe85f=_0xedcdd9;this[_0x2fe85f(0x1fe)][_0x2fe85f(0x213)](_0x1a722f);}[_0xedcdd9(0x228)](_0x3cf241,_0x53c079){const _0x728f8f=_0xedcdd9;this[_0x728f8f(0x1fe)][_0x728f8f(0x228)](_0x3cf241,_0x53c079);}[_0xedcdd9(0x20d)](_0x5c1d02,_0x1c5593,_0x29a7ab){const _0x35258f=_0xedcdd9;return this[_0x35258f(0x1fe)][_0x35258f(0x20d)](_0x5c1d02,_0x1c5593,_0x29a7ab);}[_0xedcdd9(0x24a)](_0x35aea5){const _0x5f1055=_0xedcdd9;this[_0x5f1055(0x1fe)][_0x5f1055(0x24a)](_0x35aea5);}[_0xedcdd9(0x233)](){const _0x5b0dd7=_0xedcdd9;this[_0x5b0dd7(0x205)][_0x5b0dd7(0x233)]();}[_0xedcdd9(0x23b)](){const _0x56e128=_0xedcdd9;this[_0x56e128(0x205)][_0x56e128(0x23b)]();}[_0xedcdd9(0x1de)](){const _0x314fa0=_0xedcdd9;return this[_0x314fa0(0x1fe)][_0x314fa0(0x1de)]();}[_0xedcdd9(0x1ea)](){const _0x42d237=_0xedcdd9;return this[_0x42d237(0x1fe)][_0x42d237(0x1ea)]();}[_0xedcdd9(0x1f1)](){const _0x1fdd3e=_0xedcdd9;return this[_0x1fdd3e(0x1fe)][_0x1fdd3e(0x1f1)]();}async[_0xedcdd9(0x216)](_0x4adb2a){const _0x3dde32=_0xedcdd9;if(!_0x4adb2a)throw new _0x544313(_0x3dde32(0x232),null,{'conversation':this});if(!0x1===await this[_0x3dde32(0x245)][_0x3dde32(0x1e8)](_0x4adb2a))throw new _0x544313(_0x3dde32(0x219),null,{'conversation':this,'model':_0x4adb2a});_0x4adb2a['id']!==this[_0x3dde32(0x1e6)]?.['id']&&(this[_0x3dde32(0x1e6)]=_0x4adb2a,this[_0x3dde32(0x205)][_0x3dde32(0x1ef)](),this[_0x3dde32(0x20a)](_0x3dde32(0x21a),{'selectedModel':_0x4adb2a}));}}
|
|
23
|
+
const _0x39b5ca=_0x8388;(function(_0x4e977c,_0x7bb925){const _0x1ab6b8=_0x8388,_0x5094f1=_0x4e977c();while(!![]){try{const _0x48aab1=parseInt(_0x1ab6b8(0xe6))/0x1*(-parseInt(_0x1ab6b8(0x11a))/0x2)+parseInt(_0x1ab6b8(0xd6))/0x3*(-parseInt(_0x1ab6b8(0x10d))/0x4)+parseInt(_0x1ab6b8(0x117))/0x5*(parseInt(_0x1ab6b8(0xf1))/0x6)+parseInt(_0x1ab6b8(0xf2))/0x7*(-parseInt(_0x1ab6b8(0x135))/0x8)+parseInt(_0x1ab6b8(0x104))/0x9+parseInt(_0x1ab6b8(0x13d))/0xa*(-parseInt(_0x1ab6b8(0xd3))/0xb)+-parseInt(_0x1ab6b8(0xef))/0xc*(-parseInt(_0x1ab6b8(0xd5))/0xd);if(_0x48aab1===_0x7bb925)break;else _0x5094f1['push'](_0x5094f1['shift']());}catch(_0x5a71d4){_0x5094f1['push'](_0x5094f1['shift']());}}}(_0x5b24,0x9b201));import{CKEditorError as _0x5401a0,EmitterMixin as _0x220c60}from'ckeditor5/src/utils.js';function _0x8388(_0x14a619,_0x5b7df5){const _0x5b24a3=_0x5b24();return _0x8388=function(_0x83886,_0x4de0ac){_0x83886=_0x83886-0xd0;let _0x3704a3=_0x5b24a3[_0x83886];return _0x3704a3;},_0x8388(_0x14a619,_0x5b7df5);}import{AI_MODEL_EVENT_NAMES as _0x3d0b90}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xe15266,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1fc24e}from'./aichatcontext.js';import{AICapabilities as _0x448a05,CAPABILITIES_MODEL_EVENT_NAMES as _0x142aef}from'../../aicore/model/aicapabilities.js';function _0x5b24(){const _0x59f603=['lastInteraction','_extractContextItems','getDocumentContext','isSelectionInContext','splice','conversationInitialized','push','removeSelectionFromContext','interactionCreated','populateFromMessage','7NuCiKc','removeFromContext','attributes','hasOwn','user','_processMessagesToInteractions','ai-chat-conversation-set-model-not-available','modelSelected','capabilities','12GzSTVz','getEditor','144LaIjWs','7KSzGLy','isStarted','ai-chat-handle-user-interaction-already-in-progress','updateCurrentDocumentInContext','ai-chat-conversation-init-from-id-failed','selectedModel','find','getPendingContextItems','ai-chat-conversation-start-failed','group','ai-chat-conversation-already-started','content','assistant','addToConversationContext','isAvailable','getDefault','contextItems','getMessages','10970937AtSzOF','conversationId','fetchConversationMessages','currentReply','addResourceToContext','conversationStarted','sessionId','getAll','loadSourceResources','80308YboiAY','getCurrentDocumentContext','createInteraction','reset','setModel','error','handleUserInteraction','toLowerCase','appendContent','ai-chat-conversation-set-model-null','255815yZFtMb','destroy','ai-chat-handle-user-conversation-not-initialized','239866KneKLj','quickActionData','toggleWebSearch','connector','modification-delta','title','startConversation','role','fetchConversation','addUrlToContext','ai-chat-conversation-start-no-model-selected','updateCurrentDocument','addSelectionToContext','webSearch','getConversation','prompt','getCapabilitiesConfig','createReply','stop','text-delta','interactions','start','set','init','addCurrentDocumentToContext','removeInteraction','isCurrentDocumentInConversation','2269840orVrLh','reasoning','indexOf','message','load','model','stack','chatModels','7480BQVEBU','text','setConversationTitle','delegate','ai-chat-conversation-init-failed','fire','chatCapabilities','defaultModelId','getInteraction','chatContext','currentInteraction','2651zsDiWX','isCurrentDocumentInContext','5141266csECvD','135BEzCDU','options','addFilesToContext','length','toggleReasoning','type'];_0x5b24=function(){return _0x59f603;};return _0x5b24();}import{AIChatInteraction as _0x33831d}from'./aichatinteraction.js';export class AIChatConversation extends _0x220c60(){['id'];[_0x39b5ca(0xf3)]=!0x1;[_0x39b5ca(0x12e)]=[];[_0x39b5ca(0xd2)];[_0x39b5ca(0xf7)];[_0x39b5ca(0x11d)];[_0x39b5ca(0xd7)];constructor(_0x5a5663){const _0x58956a=_0x39b5ca;super(),this[_0x58956a(0xd7)]=_0x5a5663,this[_0x58956a(0x11d)]=_0x5a5663[_0x58956a(0x11d)],this[_0x58956a(0x13c)]=_0x5a5663[_0x58956a(0x13c)],this['id']=_0x5a5663[_0x58956a(0x105)];}async[_0x39b5ca(0x131)](_0x180ad3){const _0x554a48=_0x39b5ca;try{this[_0x554a48(0xd1)]=new _0xe15266({'connector':this[_0x554a48(0x11d)],'config':_0x180ad3,'ownerId':this['id']}),this[_0x554a48(0xd1)][_0x554a48(0x140)](..._0x1fc24e)['to'](this),this[_0x554a48(0xd1)][_0x554a48(0x131)](),this[_0x554a48(0x143)]=new _0x448a05(),this[_0x554a48(0x143)][_0x554a48(0x140)](..._0x142aef)['to'](this),this[_0x554a48(0x143)][_0x554a48(0x131)]();const _0x40ddae=await this[_0x554a48(0x13c)][_0x554a48(0x10b)]();this[_0x554a48(0x142)](_0x554a48(0xe1),{'availableModels':_0x40ddae});const _0x1089af=await this[_0x554a48(0x13c)][_0x554a48(0x101)](this[_0x554a48(0xd7)][_0x554a48(0x144)]);_0x1089af&&await this[_0x554a48(0x111)](_0x1089af);}catch(_0x68a7ea){const _0x14a430=new _0x5401a0(_0x554a48(0x141),null,{'message':_0x68a7ea[_0x554a48(0x138)]});_0x14a430[_0x554a48(0x13b)]=_0x68a7ea[_0x554a48(0x13b)],this[_0x554a48(0x142)](_0x554a48(0x112),{'error':_0x14a430});}}async[_0x39b5ca(0x12f)](){const _0x54d2bd=_0x39b5ca;if(this[_0x54d2bd(0xf3)])throw new _0x5401a0(_0x54d2bd(0xfc),null,{'conversation':this});if(!this[_0x54d2bd(0xf7)])throw new _0x5401a0(_0x54d2bd(0x124),null,{'conversation':this});try{const {id:_0x57ede8}=await this[_0x54d2bd(0x11d)][_0x54d2bd(0x120)](this['id'],this[_0x54d2bd(0xd7)][_0x54d2bd(0xfb)])[_0x54d2bd(0x128)]();this['id']=_0x57ede8,this[_0x54d2bd(0xf3)]=!0x0,this[_0x54d2bd(0x142)](_0x54d2bd(0x109),{'conversationId':this['id'],'selectedModel':this[_0x54d2bd(0xf7)]});}catch(_0x1ecf29){const _0x23115e=new _0x5401a0(_0x54d2bd(0xfa),null,{'message':_0x1ecf29[_0x54d2bd(0x138)]});_0x23115e[_0x54d2bd(0x13b)]=_0x1ecf29[_0x54d2bd(0x13b)],this[_0x54d2bd(0x142)](_0x54d2bd(0x112),{'error':_0x23115e});}}async[_0x39b5ca(0x139)](_0x4cdc29,_0x44981d){const _0x32674b=_0x39b5ca;try{const _0x557b45=await this[_0x32674b(0x11d)][_0x32674b(0x122)](_0x4cdc29)[_0x32674b(0x128)](),_0x8b6183=await this[_0x32674b(0x11d)][_0x32674b(0x106)](_0x4cdc29)[_0x32674b(0x103)](),_0x8f3e9b=_0x8b6183[0x0][_0x32674b(0x13a)];this[_0x32674b(0xf3)]=!0x0,this['id']=_0x557b45['id'],_0x32674b(0x11f)in _0x557b45?this[_0x32674b(0x142)](_0x32674b(0x13f),_0x557b45[_0x32674b(0x11f)],!0x0):this[_0x32674b(0x142)](_0x32674b(0x13f),'',!0x0);const _0x1d413c=(await this[_0x32674b(0x13c)][_0x32674b(0x10b)]())[_0x32674b(0xf8)](_0xd7580=>_0xd7580['id'][_0x32674b(0x114)]()===_0x8f3e9b[_0x32674b(0x114)]());return this[_0x32674b(0xf7)]=_0x1d413c,this[_0x32674b(0x142)](_0x32674b(0xed),{'selectedModel':_0x1d413c,'isDisabled':!0x0}),await this[_0x32674b(0xeb)](_0x8b6183,_0x44981d,_0x8f3e9b),this[_0x32674b(0xd2)]=void 0x0,this;}catch(_0x23a605){const _0x5d9bbb=new _0x5401a0(_0x32674b(0xf6),null,{'message':_0x23a605[_0x32674b(0x138)],'conversationId':_0x4cdc29});throw _0x5d9bbb[_0x32674b(0x13b)]=_0x23a605[_0x32674b(0x13b)],this[_0x32674b(0x142)](_0x32674b(0x112),{'error':_0x5d9bbb}),_0x5d9bbb;}}async[_0x39b5ca(0xeb)](_0x576b5d,_0x202d40,_0x7df05a){const _0x393379=_0x39b5ca;let _0xd4525;for(const _0x1124ab of _0x576b5d)if(_0x393379(0xea)===_0x1124ab[_0x393379(0x121)]){const _0x37ab3f=await this[_0x393379(0xdd)](_0x1124ab),_0x2ae7ae={'isReasoningEnabled':Object[_0x393379(0xe9)](_0x1124ab[_0x393379(0xee)],_0x393379(0x136)),'isWebSearchEnabled':Object[_0x393379(0xe9)](_0x1124ab[_0x393379(0xee)],_0x393379(0x127))};_0xd4525=this[_0x393379(0x10f)]({'userMessage':_0x1124ab[_0x393379(0x129)],'contextItems':_0x37ab3f,'capabilities':_0x2ae7ae,'modelId':_0x7df05a,'quickActionData':_0x1124ab[_0x393379(0xe8)]?.[_0x393379(0x11b)]}),this[_0x393379(0xd2)]=_0xd4525,this[_0x393379(0xd1)][_0x393379(0xff)](this[_0x393379(0xd2)][_0x393379(0x102)]);}else{if(_0x393379(0xfe)===_0x1124ab[_0x393379(0x121)]&&_0xd4525)for(const _0x4734ac of _0x1124ab[_0x393379(0xfd)]){const _0x5bb0cf=_0x393379(0x13e)===_0x4734ac[_0x393379(0xdb)]?_0x393379(0x12d):_0x393379(0x11e),_0x5e9093=_0xd4525[_0x393379(0xde)]()?.[_0x393379(0x10a)]!==_0x202d40;_0xd4525[_0x393379(0x107)]=_0xd4525[_0x393379(0x12b)]({'type':_0x5bb0cf,'isDone':!0x0,'interactionId':_0xd4525['id'],'areActionsDisabled':_0x5e9093}),_0xd4525[_0x393379(0x107)][_0x393379(0x115)](_0x4734ac[_0x393379(0xfd)]);}}}async[_0x39b5ca(0xdd)](_0x47b406){const _0x34566b=_0x39b5ca,_0x5ee30e=new Map();if(!_0x47b406[_0x34566b(0xfd)])return _0x5ee30e;for(const _0x4342ca of _0x47b406[_0x34566b(0xfd)]){const _0x4821c2=await this[_0x34566b(0xd1)][_0x34566b(0xe5)](_0x4342ca);_0x4821c2&&_0x5ee30e[_0x34566b(0x130)](_0x4821c2['id'],_0x4821c2);}return _0x5ee30e;}async[_0x39b5ca(0x113)]({userMessage:_0xf7e286,quickActionData:_0x44109f}){const _0x31dd45=_0x39b5ca;if(!this[_0x31dd45(0xf3)])throw new _0x5401a0(_0x31dd45(0x119),null,{'conversation':this});if(this[_0x31dd45(0xd2)])throw new _0x5401a0(_0x31dd45(0xf4),null,{'conversation':this});try{const _0x1e2b4c=this[_0x31dd45(0xd1)][_0x31dd45(0xf9)](),_0x4b8e5c=this[_0x31dd45(0x143)][_0x31dd45(0x12a)](),_0x4c4ed8=this[_0x31dd45(0xf7)]['id'];this[_0x31dd45(0xd2)]=this[_0x31dd45(0x10f)]({'userMessage':_0xf7e286,'contextItems':_0x1e2b4c,'capabilities':_0x4b8e5c,'modelId':_0x4c4ed8,'quickActionData':_0x44109f}),await this[_0x31dd45(0xd2)][_0x31dd45(0x12f)](),this[_0x31dd45(0xd1)][_0x31dd45(0xff)](this[_0x31dd45(0xd2)][_0x31dd45(0x102)]);}catch(_0x48d751){this[_0x31dd45(0x142)](_0x31dd45(0x112),{'interactionId':this[_0x31dd45(0xd2)]?this[_0x31dd45(0xd2)]['id']:void 0x0,'error':_0x48d751});}finally{this[_0x31dd45(0xd2)]?.[_0x31dd45(0x12c)](),this[_0x31dd45(0xd2)]=void 0x0;}}[_0x39b5ca(0x10f)]({userMessage:_0x2d9466,contextItems:_0x4a6bbc,capabilities:_0x164d55,modelId:_0x417eb2,quickActionData:_0x34a6f6}){const _0x8988fc=_0x39b5ca,_0x2ab5d1=new _0x33831d({'userMessage':_0x2d9466,'contextItems':_0x4a6bbc,'capabilities':_0x164d55,'conversationId':this['id'],'connector':this[_0x8988fc(0x11d)],'editor':this[_0x8988fc(0xd7)][_0x8988fc(0xf0)]&&this[_0x8988fc(0xd7)][_0x8988fc(0xf0)](),'model':_0x417eb2,'quickActionData':_0x34a6f6});return _0x2ab5d1[_0x8988fc(0x140)](..._0x3d0b90)['to'](this),this[_0x8988fc(0x12e)][_0x8988fc(0xe2)](_0x2ab5d1),this[_0x8988fc(0x142)](_0x8988fc(0xe4),_0x2ab5d1),_0x2ab5d1;}[_0x39b5ca(0xd0)](_0x4af06f){const _0x36cc09=_0x39b5ca;return this[_0x36cc09(0x12e)][_0x36cc09(0xf8)](_0x205da5=>_0x205da5['id']===_0x4af06f);}[_0x39b5ca(0x133)](_0x5eb414){const _0x146f84=_0x39b5ca,_0x494a50=this[_0x146f84(0xd0)](_0x5eb414);_0x494a50&&(_0x494a50[_0x146f84(0x118)](),this[_0x146f84(0x12e)][_0x146f84(0xe0)](this[_0x146f84(0x12e)][_0x146f84(0x137)](_0x494a50),0x1));}get[_0x39b5ca(0xdc)](){const _0x260a55=_0x39b5ca;return this[_0x260a55(0x12e)][this[_0x260a55(0x12e)][_0x260a55(0xd9)]-0x1];}[_0x39b5ca(0x132)](_0x44082d){const _0x9af401=_0x39b5ca;this[_0x9af401(0xd1)][_0x9af401(0x132)](_0x44082d);}async[_0x39b5ca(0xf5)]({content:_0x5c228e,version:_0x3ea346,sessionId:_0xbf66a0,selections:_0x159994}){const _0xb15f25=_0x39b5ca;await this[_0xb15f25(0xd1)][_0xb15f25(0x125)](_0x5c228e,_0x3ea346,_0xbf66a0,_0x159994);}[_0x39b5ca(0x10e)](){const _0xeb2817=_0x39b5ca;return this[_0xeb2817(0xd2)]?.[_0xeb2817(0xde)]()?.[_0xeb2817(0xfd)]||'';}[_0x39b5ca(0x126)](_0x49ddb2){const _0x1707f2=_0x39b5ca;this[_0x1707f2(0xd1)][_0x1707f2(0x126)](_0x49ddb2);}[_0x39b5ca(0xe3)](){const _0x4f674c=_0x39b5ca;this[_0x4f674c(0xd1)][_0x4f674c(0xe3)]();}[_0x39b5ca(0xd8)](_0x280ba6){const _0x10123f=_0x39b5ca;this[_0x10123f(0xd1)][_0x10123f(0xd8)](_0x280ba6);}[_0x39b5ca(0x123)](_0xa44c81){const _0x3bb3ef=_0x39b5ca;this[_0x3bb3ef(0xd1)][_0x3bb3ef(0x123)](_0xa44c81);}[_0x39b5ca(0x108)](_0x4c30c2,_0x16fae6){const _0xc0af1a=_0x39b5ca;this[_0xc0af1a(0xd1)][_0xc0af1a(0x108)](_0x4c30c2,_0x16fae6);}[_0x39b5ca(0x10c)](_0x317b67,_0x31f60d,_0x431ca1){const _0x1311f5=_0x39b5ca;return this[_0x1311f5(0xd1)][_0x1311f5(0x10c)](_0x317b67,_0x31f60d,_0x431ca1);}[_0x39b5ca(0xe7)](_0x59a61a){const _0x1ee727=_0x39b5ca;this[_0x1ee727(0xd1)][_0x1ee727(0xe7)](_0x59a61a);}[_0x39b5ca(0x11c)](){const _0x392002=_0x39b5ca;this[_0x392002(0x143)][_0x392002(0x11c)]();}[_0x39b5ca(0xda)](){const _0x282b11=_0x39b5ca;this[_0x282b11(0x143)][_0x282b11(0xda)]();}[_0x39b5ca(0xd4)](){const _0xf21feb=_0x39b5ca;return this[_0xf21feb(0xd1)][_0xf21feb(0xd4)]();}[_0x39b5ca(0x134)](){const _0x19bdb2=_0x39b5ca;return this[_0x19bdb2(0xd1)][_0x19bdb2(0x134)]();}[_0x39b5ca(0xdf)](){const _0x2e9be8=_0x39b5ca;return this[_0x2e9be8(0xd1)][_0x2e9be8(0xdf)]();}async[_0x39b5ca(0x111)](_0x2957d7){const _0x4acece=_0x39b5ca;if(!_0x2957d7)throw new _0x5401a0(_0x4acece(0x116),null,{'conversation':this});if(!0x1===await this[_0x4acece(0x13c)][_0x4acece(0x100)](_0x2957d7))throw new _0x5401a0(_0x4acece(0xec),null,{'conversation':this,'model':_0x2957d7});_0x2957d7['id']!==this[_0x4acece(0xf7)]?.['id']&&(this[_0x4acece(0xf7)]=_0x2957d7,this[_0x4acece(0x143)][_0x4acece(0x110)](),this[_0x4acece(0x142)](_0x4acece(0xed),{'selectedModel':_0x2957d7}));}}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module ai/aichat/model/aichatinteraction
|
|
7
|
+
*/
|
|
5
8
|
import { type AICapabilitiesConfig } from '../../aicore/model/aicapabilities.js';
|
|
6
9
|
import { AIInteraction, type AIInteractionOptions } from '../../aicore/model/aiinteraction.js';
|
|
7
10
|
import { type AIConnectorRequest } from '../../aicore/aiconnector.js';
|