@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.8
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/LICENSE.md +4 -0
- 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 +147 -23
- package/dist/index.css +182 -24
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/lang/translations/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.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- 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.d.ts +3 -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 +7 -3
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -227
- 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.d.ts +0 -30
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- 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.d.ts +1 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- 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 +64 -9
- package/src/aicore/aiconnector.d.ts +13 -1
- 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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- 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.d.ts +16 -0
- 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 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +0 -49
- 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.d.ts +4 -0
- 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 -16
- 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.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +1 -5
- package/theme/common/aiheader.css +1 -0
- package/theme/common/aitrackchanges.css +13 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x15b81f,_0xab5da0,_0x9a6d91){const t=_0x15b81f['t'];switch(_0xab5da0){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x9a6d91);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x9a6d91);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x9a6d91);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0xab5da0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(
|
|
23
|
+
export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x324c2e,_0x1a5171){const _0x31100a=(0x0,_0x1a5171['t'])('Other');return _0x324c2e['length']?'groupId'in _0x324c2e[0x0]?_0x324c2e:[{'groupId':'_ungrouppedCommands','groupLabel':_0x31100a,'order':0x1/0x0,'commands':_0x324c2e}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x31100a,'order':0x1/0x0,'commands':[]}];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3be36c=_0x2630;(function(_0x4f42be,_0x1b5805){const _0x1659b4=_0x2630,_0x36af8d=_0x4f42be();while(!![]){try{const _0x2359c5=parseInt(_0x1659b4(0x157))/0x1*(-parseInt(_0x1659b4(0x171))/0x2)+parseInt(_0x1659b4(0x168))/0x3+-parseInt(_0x1659b4(0x140))/0x4*(-parseInt(_0x1659b4(0x13a))/0x5)+-parseInt(_0x1659b4(0x147))/0x6*(parseInt(_0x1659b4(0x153))/0x7)+-parseInt(_0x1659b4(0x136))/0x8+parseInt(_0x1659b4(0x16e))/0x9+-parseInt(_0x1659b4(0x14e))/0xa;if(_0x2359c5===_0x1b5805)break;else _0x36af8d['push'](_0x36af8d['shift']());}catch(_0x211fe3){_0x36af8d['push'](_0x36af8d['shift']());}}}(_0x115b,0xe5f5e));import{ContextPlugin as _0x3774fd}from'ckeditor5/src/core.js';function _0x115b(){const _0x170c2a=['3792240NyyEMI','top','hide','_calculateDialogPosition','1027045PeKlMV','trackChanges','ai.availableReplyActions','hideFakeVisualSelection','markers','aiBalloon','36WCMaoT','title','showRotator','pluginName','width','_config','isOfficialPlugin','6rgLRIg','left','fire','\x20ai-balloon-rotator','icon','plugins','ai-balloon','6150170pAiMzR','context','innerHeight','_showDialog','ai-balloon-selection','11696993flBIWu','commands','value','getBoundingClientRect','292PnYNEp','get','show','requires','open','balloonView','ranges','AIBalloon','index','length','round','setupRotator','close','getMarkersGroup','height','isTrackChangesOn','dialogClosed','3886506iceJeN','editing','showFakeVisualSelection','locale','Dialog','isPremiumPlugin','15568821qMSBgi','isOpen','config','8028jiMhPc','AIEditing','ai-selection','delegate','_setupVisualSelection','ai-balloon-','bind','_calculateOptimalTopPosition','model'];_0x115b=function(){return _0x170c2a;};return _0x115b();}import{AIConnector as _0x19ddce}from'../aicore/aiconnector.js';import{AIEditing as _0xf344b3}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x364301,AIBalloonView as _0x41582e}from'./ui/aiballoonview.js';function _0x2630(_0x3c5d03,_0x2d0b7a){const _0x115b78=_0x115b();return _0x2630=function(_0x2630c5,_0x1c2934){_0x2630c5=_0x2630c5-0x132;let _0x1f0794=_0x115b78[_0x2630c5];return _0x1f0794;},_0x2630(_0x3c5d03,_0x2d0b7a);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x271ede}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x534b27}from'../aicore/utils/geteditorfromcontext.js';import{ACTIONS as _0x3f575c}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x364301,_0x3be36c(0x167)];export class AIBalloon extends _0x3774fd{static get[_0x3be36c(0x15a)](){return[_0x19ddce,_0xf344b3];}static get[_0x3be36c(0x143)](){const _0x451c26=_0x3be36c;return _0x451c26(0x15e);}static get[_0x3be36c(0x146)](){return!0x0;}static get[_0x3be36c(0x16d)](){return!0x0;}[_0x3be36c(0x16f)]=!0x1;[_0x3be36c(0x145)];[_0x3be36c(0x15b)](_0x2b6bc0){const _0x4f9d6a=_0x3be36c,_0x43bd52=_0x534b27(this[_0x4f9d6a(0x14f)]);this[_0x4f9d6a(0x145)]=_0x2b6bc0;const _0x574f66=this[_0x4f9d6a(0x14f)][_0x4f9d6a(0x170)][_0x4f9d6a(0x158)](_0x4f9d6a(0x13c))||[..._0x3f575c],_0x1f20d0=_0x43bd52?.[_0x4f9d6a(0x154)][_0x4f9d6a(0x158)](_0x4f9d6a(0x13b)),_0x57893a=_0x1f20d0?.[_0x4f9d6a(0x155)];this[_0x4f9d6a(0x15c)]=new _0x41582e(_0x43bd52[_0x4f9d6a(0x16b)],_0x2b6bc0,_0x574f66,!!_0x57893a),this[_0x4f9d6a(0x15c)][_0x4f9d6a(0x174)](..._0x364301)['to'](this),_0x1f20d0&&this[_0x4f9d6a(0x15c)][_0x4f9d6a(0x133)](_0x4f9d6a(0x166))['to'](_0x1f20d0,_0x4f9d6a(0x155)),this[_0x4f9d6a(0x151)](_0x2b6bc0);}[_0x3be36c(0x163)](){const _0x154cf5=_0x3be36c;_0x534b27(this[_0x154cf5(0x14f)])[_0x154cf5(0x14c)][_0x154cf5(0x158)](_0x154cf5(0x16c))[_0x154cf5(0x138)]();}[_0x3be36c(0x175)](_0x41e05d,_0x3cea59){const _0x26de0c=_0x3be36c;this[_0x26de0c(0x14f)][_0x26de0c(0x14c)][_0x26de0c(0x158)](_0xf344b3)[_0x26de0c(0x16a)](_0x41e05d,_0x26de0c(0x132)+_0x3cea59,!0x0,!0x0);}[_0x3be36c(0x151)](_0x1c8767){const _0xa33a51=_0x3be36c,_0x503546=_0x534b27(this[_0xa33a51(0x14f)]);this[_0xa33a51(0x175)](_0x1c8767[_0xa33a51(0x15d)],_0x1c8767[_0xa33a51(0x15f)]),_0x503546[_0xa33a51(0x14c)][_0xa33a51(0x158)](_0xa33a51(0x16c))[_0xa33a51(0x159)]({'title':_0x1c8767[_0xa33a51(0x141)],'icon':_0x1c8767[_0xa33a51(0x14b)],'hasCloseButton':!0x0,'id':_0xa33a51(0x13f),'position':this[_0xa33a51(0x139)][_0xa33a51(0x133)](this),'className':_0xa33a51(0x14d)+(_0x1c8767[_0xa33a51(0x142)]?_0xa33a51(0x14a):''),'content':this[_0xa33a51(0x15c)],'onShow':_0x2dae7f=>{const _0x58cafd=_0xa33a51;_0x1c8767[_0x58cafd(0x142)]&&this[_0x58cafd(0x15c)][_0x58cafd(0x162)](_0x2dae7f),this[_0x58cafd(0x16f)]=!0x0;},'onHide':()=>{const _0x319a56=_0xa33a51;this[_0x319a56(0x14f)][_0x319a56(0x14c)][_0x319a56(0x158)](_0x319a56(0x172))[_0x319a56(0x13d)](_0x319a56(0x132)+_0x1c8767[_0x319a56(0x15f)]),this[_0x319a56(0x149)](_0x319a56(0x167)),this[_0x319a56(0x16f)]=!0x1;}});}[_0x3be36c(0x139)](_0x5ce989,_0x4b6b9a){const _0x528c6b=_0x3be36c,_0x1b8cfc=_0x534b27(this[_0x528c6b(0x14f)]);if(!_0x4b6b9a)return null;const _0x18da7d=_0x271ede(_0x1b8cfc[_0x528c6b(0x169)],[..._0x1b8cfc[_0x528c6b(0x135)][_0x528c6b(0x13e)][_0x528c6b(0x164)](_0x528c6b(0x173)),..._0x1b8cfc[_0x528c6b(0x135)][_0x528c6b(0x13e)][_0x528c6b(0x164)](_0x528c6b(0x152))]);if(!_0x18da7d||0x0===_0x18da7d[_0x528c6b(0x160)])return{'left':Math[_0x528c6b(0x161)](_0x4b6b9a[_0x528c6b(0x148)]+_0x4b6b9a[_0x528c6b(0x144)]/0x2-_0x5ce989[_0x528c6b(0x144)]/0x2),'top':Math[_0x528c6b(0x161)](_0x4b6b9a[_0x528c6b(0x137)]+_0x4b6b9a[_0x528c6b(0x165)]/0x2-_0x5ce989[_0x528c6b(0x165)]/0x2)};const _0x1f815e=Math[_0x528c6b(0x161)](_0x4b6b9a[_0x528c6b(0x148)]+_0x4b6b9a[_0x528c6b(0x144)]/0x2-_0x5ce989[_0x528c6b(0x144)]/0x2),_0xf6f136=_0x18da7d[0x0][_0x528c6b(0x156)](),_0x25d0c1=_0x18da7d[_0x18da7d[_0x528c6b(0x160)]-0x1][_0x528c6b(0x156)](),_0x26aa32=_0x5ce989[_0x528c6b(0x165)],_0xe63a52=this[_0x528c6b(0x145)][_0x528c6b(0x142)]?0x8:0x0;return{'left':_0x1f815e,'top':this[_0x528c6b(0x134)](_0xf6f136,_0x25d0c1,_0x26aa32,_0xe63a52)};}[_0x3be36c(0x134)](_0x3bdc23,_0x30c1f1,_0x1e6a8d,_0x8c3d8a=0x0){const _0x795e53=_0x3be36c,_0x26c9f2=_0x30c1f1[_0x795e53(0x137)]+_0x30c1f1[_0x795e53(0x165)],_0xe0355d=_0x3bdc23[_0x795e53(0x137)]-_0x1e6a8d-_0x8c3d8a,_0x175861=window[_0x795e53(0x150)]-_0x26c9f2-0xa,_0x2e597d=_0x3bdc23[_0x795e53(0x137)]-_0x8c3d8a-0xa;let _0x311de6;if(_0x175861>=_0x1e6a8d)_0x311de6=_0x26c9f2+0xa;else{if(_0x2e597d>=_0x1e6a8d)_0x311de6=_0xe0355d-0xa;else _0x311de6=_0x3bdc23[_0x795e53(0x137)]+(_0x30c1f1[_0x795e53(0x137)]+_0x30c1f1[_0x795e53(0x165)])/0x2-(_0x1e6a8d+_0x8c3d8a)/0x2;}return _0x311de6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x31e5ed,_0x5dda9a){var _0x42f17f=_0x28ac,_0x1bdf79=_0x31e5ed();while(!![]){try{var _0x5ed5bc=-parseInt(_0x42f17f(0xd4))/0x1+-parseInt(_0x42f17f(0xd5))/0x2*(-parseInt(_0x42f17f(0xd8))/0x3)+parseInt(_0x42f17f(0xd0))/0x4*(parseInt(_0x42f17f(0xe0))/0x5)+parseInt(_0x42f17f(0xdc))/0x6*(parseInt(_0x42f17f(0xd7))/0x7)+parseInt(_0x42f17f(0xde))/0x8*(parseInt(_0x42f17f(0xdf))/0x9)+parseInt(_0x42f17f(0xd3))/0xa*(-parseInt(_0x42f17f(0xdd))/0xb)+-parseInt(_0x42f17f(0xdb))/0xc;if(_0x5ed5bc===_0x5dda9a)break;else _0x1bdf79['push'](_0x1bdf79['shift']());}catch(_0x7ff2e9){_0x1bdf79['push'](_0x1bdf79['shift']());}}}(_0xa638,0xac534));function _0x28ac(_0x4c5fb8,_0x37ab6e){var _0xa638fa=_0xa638();return _0x28ac=function(_0x28ac1f,_0x16addc){_0x28ac1f=_0x28ac1f-0xd0;var _0x12775c=_0xa638fa[_0x28ac1f];return _0x12775c;},_0x28ac(_0x4c5fb8,_0x37ab6e);}function _0xa638(){var _0x2d8c95=['setTemplate','ck-ai-balloon__disclaimer-content','14080548QrHtMi','1050678mjyjnP','11GuzaBS','8OcBpQg','552321etJjvi','125kSpfyC','223048joXyhw','AI_DISCLAIMER_TEXT','ck-ai-balloon__disclaimer','2713490UdjLGz','1207070cRwgNf','2403542wlsTBS','div','28znFvCG','3wWenZJ'];_0xa638=function(){return _0x2d8c95;};return _0xa638();}import{View as _0x3a62cc}from'ckeditor5/src/ui.js';import{getTranslation as _0x5c0ace}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x3a62cc{constructor(_0x528241){var _0x2f8abd=_0x28ac;super(_0x528241),this[_0x2f8abd(0xd9)]({'tag':_0x2f8abd(0xd6),'attributes':{'class':['ck',_0x2f8abd(0xd2)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x2f8abd(0xda)]},'children':[{'text':_0x5c0ace(_0x528241,_0x2f8abd(0xd1))}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfd35b7=_0x480e;(function(_0x4fe856,_0x5d369b){const _0x4a0f63=_0x480e,_0x367a28=_0x4fe856();while(!![]){try{const _0x252197=-parseInt(_0x4a0f63(0x189))/0x1*(-parseInt(_0x4a0f63(0x18b))/0x2)+parseInt(_0x4a0f63(0x176))/0x3+parseInt(_0x4a0f63(0x186))/0x4+-parseInt(_0x4a0f63(0x183))/0x5*(-parseInt(_0x4a0f63(0x179))/0x6)+-parseInt(_0x4a0f63(0x17e))/0x7+-parseInt(_0x4a0f63(0x180))/0x8+parseInt(_0x4a0f63(0x185))/0x9;if(_0x252197===_0x5d369b)break;else _0x367a28['push'](_0x367a28['shift']());}catch(_0x145afc){_0x367a28['push'](_0x367a28['shift']());}}}(_0x4e74,0x949f3));function _0x480e(_0x27afc1,_0x2e54a3){const _0x4e7430=_0x4e74();return _0x480e=function(_0x480e5e,_0x553d7b){_0x480e5e=_0x480e5e-0x173;let _0x2a77cc=_0x4e7430[_0x480e5e];return _0x2a77cc;},_0x480e(_0x27afc1,_0x2e54a3);}import{ToolbarView as _0x3c29d1,ButtonView as _0x170c43}from'ckeditor5/src/ui.js';import{getTranslation as _0x1164d7}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x3c29d1{constructor(_0x351971,_0x385d82=!0x0,_0x299bda=!0x0){const _0x3cbfb5=_0x480e;super(_0x351971),this[_0x3cbfb5(0x174)](_0x3cbfb5(0x17c),!0x1),_0x385d82&&(this[_0x3cbfb5(0x181)]=this[_0x3cbfb5(0x18a)](_0x1164d7(_0x351971,_0x3cbfb5(0x182)),_0x3cbfb5(0x177)),this[_0x3cbfb5(0x181)][_0x3cbfb5(0x184)](_0x3cbfb5(0x175))['to'](this,_0x3cbfb5(0x17c),_0xcaf553=>!_0xcaf553),this[_0x3cbfb5(0x173)][_0x3cbfb5(0x17b)](this[_0x3cbfb5(0x181)])),_0x299bda&&(this[_0x3cbfb5(0x17d)]=this[_0x3cbfb5(0x18a)](_0x1164d7(_0x351971,_0x3cbfb5(0x187)),_0x385d82?_0x3cbfb5(0x17a):_0x3cbfb5(0x177)),this[_0x3cbfb5(0x17d)][_0x3cbfb5(0x184)](_0x3cbfb5(0x175))['to'](this,_0x3cbfb5(0x17c),_0x238219=>!_0x238219),this[_0x3cbfb5(0x173)][_0x3cbfb5(0x17b)](this[_0x3cbfb5(0x17d)])),this[_0x3cbfb5(0x17f)]({'attributes':{'class':[_0x3cbfb5(0x188)]}});}[_0xfd35b7(0x18a)](_0x2fdb29,_0x52221d){const _0x3e74d0=_0xfd35b7,_0xe55bf6=new _0x170c43(this[_0x3e74d0(0x178)]);return _0xe55bf6[_0x3e74d0(0x174)]({'label':_0x2fdb29,'class':_0x52221d||'','isVisible':!0x0,'withText':!0x0}),_0xe55bf6;}}function _0x4e74(){const _0x2e2524=['8909536SubQJL','applyButton','AI_BALLOON_APPLY_BUTTON','138110uqhVqi','bind','1870380bIulOj','3814076JAwgJX','AI_BALLOON_SUGGEST_BUTTON','ck-ai-balloon__toolbar','43ngYgwq','_createButton','42722wQQSRw','items','set','isEnabled','667683PkLffz','ck-ai-button-primary','locale','102DncHwE','ck-ai-button-secondary','add','isLoading','suggestButton','7346850BBiGEn','extendTemplate'];_0x4e74=function(){return _0x2e2524;};return _0x4e74();}
|
|
@@ -6,6 +6,7 @@ import { type Dialog, View, FocusCycler, type ViewWithFocusCycler } from 'ckedit
|
|
|
6
6
|
import { FocusTracker, KeystrokeHandler, type Locale } from 'ckeditor5/src/utils.js';
|
|
7
7
|
import { AIBalloonToolbarView } from './aiballoontoolbarview.js';
|
|
8
8
|
import { AIBalloonDisclaimerView } from './aiballoondisclaimerview.js';
|
|
9
|
+
import { type AISuggestionActionName } from '../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
9
10
|
/**
|
|
10
11
|
* Event names that can be fired by the AI Balloon view.
|
|
11
12
|
*/
|
|
@@ -54,7 +55,8 @@ export declare class AIBalloonView extends View implements ViewWithFocusCycler {
|
|
|
54
55
|
* When true, all interactive elements should be disabled.
|
|
55
56
|
*/
|
|
56
57
|
isLoading: boolean;
|
|
57
|
-
|
|
58
|
+
isTrackChangesOn: boolean;
|
|
59
|
+
constructor(locale: Locale, config: AIBalloonContentConfig, dropdownConfig: Array<AISuggestionActionName>, isTrackChangesOn: boolean);
|
|
58
60
|
/**
|
|
59
61
|
* @inheritDoc
|
|
60
62
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x484d(_0x41a481,_0x15da80){const _0x20202a=_0x2020();return _0x484d=function(_0x484dbc,_0x14490d){_0x484dbc=_0x484dbc-0x13a;let _0x5be408=_0x20202a[_0x484dbc];return _0x5be408;},_0x484d(_0x41a481,_0x15da80);}const _0x4b1d03=_0x484d;(function(_0x2b80c5,_0x1c87ae){const _0xe54048=_0x484d,_0x127b66=_0x2b80c5();while(!![]){try{const _0x2b36fa=parseInt(_0xe54048(0x16c))/0x1+-parseInt(_0xe54048(0x153))/0x2+-parseInt(_0xe54048(0x157))/0x3+parseInt(_0xe54048(0x13e))/0x4*(-parseInt(_0xe54048(0x14f))/0x5)+parseInt(_0xe54048(0x13a))/0x6+parseInt(_0xe54048(0x162))/0x7+parseInt(_0xe54048(0x145))/0x8;if(_0x2b36fa===_0x1c87ae)break;else _0x127b66['push'](_0x127b66['shift']());}catch(_0x4b0cef){_0x127b66['push'](_0x127b66['shift']());}}}(_0x2020,0xb3386));import{ButtonView as _0x5d5106,View as _0x3acca8,ViewCollection as _0x4091e8,FocusCycler as _0x210a40}from'ckeditor5/src/ui.js';import{FocusTracker as _0x56b37b,KeystrokeHandler as _0x59b0f0}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x50657b,IconPreviousArrow as _0xd1942a}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x4ff619}from'./aiballoontoolbarview.js';function _0x2020(){const _0x5372fb=['addMany','element','focusLast','_createNextButtonView','focus','AI_BALLOON_NEXT_TOOLTIP','change:isTrackChangesOn','_focusables','855539pMKZmz','suggestButton','_mainView','execute','bind','_dropdownConfig','_dialogContent','isTrackChangesOn','view','shift\x20+\x20tab','keystrokes','showNext','_createPreviousButtonView','disclaimerView','3274806rybuRt','setupRotator','div','clear','19792lTFFYx','add','toolbar','showSuggestButton','applySuggestion','set','includes','12187424BbKOoP','focusCycler','AI_BALLOON_PREVIOUS_TOOLTIP','setTemplate','isLoading','focusTracker','headerView','applyButton','fire','locale','1345TInVrB','_addDisclaimerView','showApplyButton','remove','317688hsTeGM','clearLoading','focusFirst','createCollection','2811534CEgxCK','_addContentView','setLoading','showPrevious','tab','_addToolbar','listenTo','mainView','insertSuggestion','ai-balloon-content','children','1654464JDHpeo','render'];_0x2020=function(){return _0x5372fb;};return _0x2020();}import{AIBalloonDisclaimerView as _0x45cd9e}from'./aiballoondisclaimerview.js';import{getTranslation as _0x5c718e}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4b1d03(0x142),_0x4b1d03(0x15f),_0x4b1d03(0x177),_0x4b1d03(0x15a)];export class AIBalloonView extends _0x3acca8{[_0x4b1d03(0x14a)];[_0x4b1d03(0x176)];[_0x4b1d03(0x146)];[_0x4b1d03(0x171)];[_0x4b1d03(0x16b)];constructor(_0xbf003e,_0x1076a6,_0x2d759e,_0x2ea891){const _0xd007d7=_0x4b1d03;super(_0xbf003e),this[_0xd007d7(0x171)]=_0x2d759e,this[_0xd007d7(0x143)](_0xd007d7(0x149),!0x1),this[_0xd007d7(0x143)](_0xd007d7(0x173),_0x2ea891),this[_0xd007d7(0x14a)]=new _0x56b37b(),this[_0xd007d7(0x176)]=new _0x59b0f0(),this[_0xd007d7(0x16b)]=this[_0xd007d7(0x156)](),this[_0xd007d7(0x146)]=new _0x210a40({'focusables':this[_0xd007d7(0x16b)],'focusTracker':this[_0xd007d7(0x14a)],'keystrokeHandler':this[_0xd007d7(0x176)],'actions':{'focusPrevious':_0xd007d7(0x175),'focusNext':_0xd007d7(0x15b)}}),this[_0xd007d7(0x172)]=new _0x4091e8(),this[_0xd007d7(0x158)](_0x1076a6[_0xd007d7(0x15e)]),this[_0xd007d7(0x150)](),this[_0xd007d7(0x15c)](_0x1076a6[_0xd007d7(0x151)],_0x1076a6[_0xd007d7(0x141)]),this[_0xd007d7(0x140)][_0xd007d7(0x170)](_0xd007d7(0x149))['to'](this),this[_0xd007d7(0x16b)][_0xd007d7(0x13d)](),this[_0xd007d7(0x16b)][_0xd007d7(0x164)]([this[_0xd007d7(0x140)]]),this[_0xd007d7(0x148)]({'tag':_0xd007d7(0x13c),'attributes':{'class':_0xd007d7(0x160)},'children':this[_0xd007d7(0x172)]}),this[_0xd007d7(0x15d)](this,_0xd007d7(0x16a),()=>{const _0x3fa6f0=_0xd007d7;this[_0x3fa6f0(0x172)][_0x3fa6f0(0x152)](this[_0x3fa6f0(0x140)]),this[_0x3fa6f0(0x15c)](_0x1076a6[_0x3fa6f0(0x151)],_0x1076a6[_0x3fa6f0(0x141)]);});}[_0x4b1d03(0x163)](){const _0x5e0dbf=_0x4b1d03;super[_0x5e0dbf(0x163)]();for(const _0x3eee47 of this[_0x5e0dbf(0x16b)])this[_0x5e0dbf(0x14a)][_0x5e0dbf(0x13f)](_0x3eee47[_0x5e0dbf(0x165)]);this[_0x5e0dbf(0x176)][_0x5e0dbf(0x15d)](this[_0x5e0dbf(0x165)]);}[_0x4b1d03(0x168)](_0x4f0702){const _0x130ec6=_0x4b1d03;-0x1===_0x4f0702?this[_0x130ec6(0x146)][_0x130ec6(0x166)]():this[_0x130ec6(0x146)][_0x130ec6(0x155)]();}[_0x4b1d03(0x159)](){const _0x312383=_0x4b1d03;this[_0x312383(0x149)]=!0x0;}[_0x4b1d03(0x154)](){const _0x260004=_0x4b1d03;this[_0x260004(0x149)]=!0x1;}[_0x4b1d03(0x13b)](_0x1aa8e1){const _0x2f0df4=_0x4b1d03,_0x1cc786=this[_0x2f0df4(0x167)](),_0x462174=this[_0x2f0df4(0x178)]();_0x1aa8e1[_0x2f0df4(0x174)][_0x2f0df4(0x14b)][_0x2f0df4(0x161)][_0x2f0df4(0x13f)](_0x1cc786,0x2),_0x1aa8e1[_0x2f0df4(0x174)][_0x2f0df4(0x14b)][_0x2f0df4(0x161)][_0x2f0df4(0x13f)](_0x462174,0x0),this[_0x2f0df4(0x16b)][_0x2f0df4(0x164)]([_0x1cc786,_0x462174]),this[_0x2f0df4(0x14a)][_0x2f0df4(0x13f)](_0x1cc786[_0x2f0df4(0x165)]),this[_0x2f0df4(0x14a)][_0x2f0df4(0x13f)](_0x462174[_0x2f0df4(0x165)]);}[_0x4b1d03(0x158)](_0x324a60){const _0x4330be=_0x4b1d03;this[_0x4330be(0x16e)]=_0x324a60,this[_0x4330be(0x172)][_0x4330be(0x13f)](this[_0x4330be(0x16e)]);}[_0x4b1d03(0x150)](){const _0x56da17=_0x4b1d03;this[_0x56da17(0x179)]=new _0x45cd9e(this[_0x56da17(0x14e)]),this[_0x56da17(0x172)][_0x56da17(0x13f)](this[_0x56da17(0x179)]);}[_0x4b1d03(0x15c)](_0xb1e2a1=!0x0,_0x5348c5=!0x0){const _0x19eda5=_0x4b1d03;_0xb1e2a1=_0xb1e2a1&&!this[_0x19eda5(0x173)]&&this[_0x19eda5(0x171)][_0x19eda5(0x144)](_0x19eda5(0x142)),_0x5348c5=_0x5348c5&&this[_0x19eda5(0x171)][_0x19eda5(0x144)](_0x19eda5(0x15f)),this[_0x19eda5(0x140)]=new _0x4ff619(this[_0x19eda5(0x14e)],_0xb1e2a1,_0x5348c5),this[_0x19eda5(0x140)][_0x19eda5(0x14c)]?.['on'](_0x19eda5(0x16f),()=>{const _0x41b903=_0x19eda5;this[_0x41b903(0x14d)](_0x41b903(0x142));}),this[_0x19eda5(0x140)][_0x19eda5(0x16d)]?.['on'](_0x19eda5(0x16f),()=>{const _0x41202b=_0x19eda5;this[_0x41202b(0x14d)](_0x41202b(0x15f));}),this[_0x19eda5(0x172)][_0x19eda5(0x13f)](this[_0x19eda5(0x140)]);}[_0x4b1d03(0x167)](){const _0x53f2e0=_0x4b1d03,_0xf5994b=new _0x5d5106(this[_0x53f2e0(0x14e)]);return _0xf5994b[_0x53f2e0(0x143)]({'icon':_0x50657b,'tooltip':_0x5c718e(this[_0x53f2e0(0x14e)],_0x53f2e0(0x169))}),_0xf5994b['on'](_0x53f2e0(0x16f),()=>{const _0x105427=_0x53f2e0;this[_0x105427(0x14d)](_0x105427(0x177));}),_0xf5994b;}[_0x4b1d03(0x178)](){const _0x350a02=_0x4b1d03,_0x4160ea=new _0x5d5106(this[_0x350a02(0x14e)]);return _0x4160ea[_0x350a02(0x143)]({'icon':_0xd1942a,'tooltip':_0x5c718e(this[_0x350a02(0x14e)],_0x350a02(0x147))}),_0x4160ea['on'](_0x350a02(0x16f),()=>{const _0x55c532=_0x350a02;this[_0x55c532(0x14d)](_0x55c532(0x15a));}),_0x4160ea;}}
|
package/src/aichat/aichat.d.ts
CHANGED
|
@@ -14,6 +14,14 @@ import { type AIChatContextConfig } from './model/aichatcontext.js';
|
|
|
14
14
|
import { type AIChatModelsConfig } from './model/aichatmodels.js';
|
|
15
15
|
import { AIChatHistory } from '../aichathistory/aichathistory.js';
|
|
16
16
|
import { type AIQuickActionRequestData } from '../aiquickactions/aiquickactions.js';
|
|
17
|
+
/**
|
|
18
|
+
* The AI Chat feature. It brings a conversational AI that can be used to aid content creation and editing. It introduces a dynamic chat
|
|
19
|
+
* interface designed to facilitate rich, multi-turn interactions between users and an AI Assistant.
|
|
20
|
+
*
|
|
21
|
+
* You can configure the feature by setting the {@link module:ai/aichat/aichat~AIChatConfig} property.
|
|
22
|
+
*
|
|
23
|
+
* Learn more about AI features in CKEditor in the {@glink features/ai/ckeditor-ai-overview AI Overview} documentation.
|
|
24
|
+
*/
|
|
17
25
|
export declare class AIChat extends ContextPlugin {
|
|
18
26
|
/**
|
|
19
27
|
* @inheritDoc
|
|
@@ -42,7 +50,7 @@ export declare class AIChat extends ContextPlugin {
|
|
|
42
50
|
focusPromptInput(): void;
|
|
43
51
|
}
|
|
44
52
|
/**
|
|
45
|
-
* The configuration of the AI Chat feature.
|
|
53
|
+
* The configuration of the {@link module:ai/aichat/aichat~AIChat AI Chat feature}.
|
|
46
54
|
*
|
|
47
55
|
* The properties defined in this config are set in the `config.ai.chat` namespace.
|
|
48
56
|
*
|
|
@@ -50,9 +58,9 @@ export declare class AIChat extends ContextPlugin {
|
|
|
50
58
|
* ClassicEditor
|
|
51
59
|
* .create( editorElement, {
|
|
52
60
|
* ai: {
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
61
|
+
* chat: {
|
|
62
|
+
* // AI Chat configuration.
|
|
63
|
+
* }
|
|
56
64
|
* }
|
|
57
65
|
* } )
|
|
58
66
|
* .then( ... )
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2fb5(_0x359784,_0x4e1b3c){const _0x58588b=_0x5858();return _0x2fb5=function(_0x2fb59c,_0x5730d7){_0x2fb59c=_0x2fb59c-0x170;let _0x23344b=_0x58588b[_0x2fb59c];return _0x23344b;},_0x2fb5(_0x359784,_0x4e1b3c);}function _0x5858(){const _0x586161=['AIChat','10054RlTbwb','requires','9628ysPeuc','ai.chat.models','removeSelectionFromChatContext','670664pmRHJE','3992SDmtMQ','get','28UdlfVj','isPremiumPlugin','config','sendMessage','startConversation','plugins','548107THoBbY','focusPromptInput','247275yxAwcm','isOfficialPlugin','213QsJGnw','define','1815138NsWBWQ','addSelectionToChatContext','pluginName','context','2115PHbhew','ai.chat.context','730YNtRAs'];_0x5858=function(){return _0x586161;};return _0x5858();}const _0x1c2a2d=_0x2fb5;(function(_0x30dfe0,_0x1a3bd4){const _0xf7c03=_0x2fb5,_0x331a60=_0x30dfe0();while(!![]){try{const _0x28d0a5=-parseInt(_0xf7c03(0x184))/0x1+parseInt(_0xf7c03(0x178))/0x2*(parseInt(_0xf7c03(0x188))/0x3)+-parseInt(_0xf7c03(0x17c))/0x4*(-parseInt(_0xf7c03(0x172))/0x5)+-parseInt(_0xf7c03(0x18a))/0x6+parseInt(_0xf7c03(0x17e))/0x7*(parseInt(_0xf7c03(0x17b))/0x8)+-parseInt(_0xf7c03(0x186))/0x9+-parseInt(_0xf7c03(0x174))/0xa*(-parseInt(_0xf7c03(0x176))/0xb);if(_0x28d0a5===_0x1a3bd4)break;else _0x331a60['push'](_0x331a60['shift']());}catch(_0x5a2fb0){_0x331a60['push'](_0x331a60['shift']());}}}(_0x5858,0x46499));import{ContextPlugin as _0x117353}from'ckeditor5/src/core.js';import{AIChatController as _0x33f7e7}from'./aichatcontroller.js';import{AIEditing as _0x4f4e89}from'../aicore/aiediting.js';import{AIChatUI as _0x20e266}from'./aichatui.js';import{AIChatHistory as _0x5ae2d5}from'../aichathistory/aichathistory.js';export class AIChat extends _0x117353{static get[_0x1c2a2d(0x177)](){return[_0x33f7e7,_0x4f4e89,_0x20e266,_0x5ae2d5];}static get[_0x1c2a2d(0x170)](){const _0x15b8d5=_0x1c2a2d;return _0x15b8d5(0x175);}static get[_0x1c2a2d(0x187)](){return!0x0;}static get[_0x1c2a2d(0x17f)](){return!0x0;}constructor(_0x19d531){const _0x16d1a6=_0x1c2a2d;super(_0x19d531);const _0xfd1792=_0x19d531[_0x16d1a6(0x180)];_0xfd1792[_0x16d1a6(0x189)](_0x16d1a6(0x173),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0xfd1792[_0x16d1a6(0x189)](_0x16d1a6(0x179),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x1c2a2d(0x18b)](){const _0x5ca299=_0x1c2a2d;await this[_0x5ca299(0x171)][_0x5ca299(0x183)][_0x5ca299(0x17d)](_0x33f7e7)[_0x5ca299(0x18b)]();}async[_0x1c2a2d(0x182)](){const _0x412467=_0x1c2a2d;await this[_0x412467(0x171)][_0x412467(0x183)][_0x412467(0x17d)](_0x33f7e7)[_0x412467(0x182)]();}async[_0x1c2a2d(0x181)]({message:_0xc58ffe,quickActionData:_0x2236c4}){const _0x3b2ca1=_0x1c2a2d;await this[_0x3b2ca1(0x171)][_0x3b2ca1(0x183)][_0x3b2ca1(0x17d)](_0x33f7e7)[_0x3b2ca1(0x181)]({'message':_0xc58ffe,'quickActionData':_0x2236c4});}[_0x1c2a2d(0x17a)](){const _0x81eb07=_0x1c2a2d;this[_0x81eb07(0x171)][_0x81eb07(0x183)][_0x81eb07(0x17d)](_0x33f7e7)[_0x81eb07(0x17a)]();}[_0x1c2a2d(0x185)](){const _0x5aedfd=_0x1c2a2d;this[_0x5aedfd(0x171)][_0x5aedfd(0x183)][_0x5aedfd(0x17d)](_0x33f7e7)[_0x5aedfd(0x185)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x273c8e=_0x2912;(function(_0x4cf5ef,_0x2d8ebb){const _0x364ebf=_0x2912,_0x4bde67=_0x4cf5ef();while(!![]){try{const _0x2eb667=parseInt(_0x364ebf(0xf9))/0x1+parseInt(_0x364ebf(0x194))/0x2+-parseInt(_0x364ebf(0x216))/0x3+parseInt(_0x364ebf(0x1eb))/0x4*(parseInt(_0x364ebf(0x219))/0x5)+parseInt(_0x364ebf(0x18c))/0x6*(-parseInt(_0x364ebf(0x185))/0x7)+parseInt(_0x364ebf(0x160))/0x8+parseInt(_0x364ebf(0x20f))/0x9*(-parseInt(_0x364ebf(0x1b3))/0xa);if(_0x2eb667===_0x2d8ebb)break;else _0x4bde67['push'](_0x4bde67['shift']());}catch(_0x25f2ad){_0x4bde67['push'](_0x4bde67['shift']());}}}(_0x5ee2,0x567eb));import{ContextPlugin as _0x28d851,Editor as _0x1a849b}from'ckeditor5/src/core.js';import{CKEditorError as _0x327deb,logError as _0x155630,scrollViewportToShowTarget as _0x2ac7e7,uid as _0x4d67a7}from'ckeditor5/src/utils.js';import{AIConnector as _0x4052a5}from'../aicore/aiconnector.js';import{AITabs as _0x3be4cf}from'../aitabs/aitabs.js';import{AIChatConversation as _0x4dd354}from'./model/aichatconversation.js';import{getTranslation as _0x491991}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x28ce8a}from'../aicore/aiediting.js';import{AIChatModels as _0x1d306d}from'./model/aichatmodels.js';function _0x5ee2(){const _0x241673=['_removeFromContext','Failed\x20to\x20load\x20conversation','history','unshift','addDocumentToContext','map','end','indexes','revert','type','470cyAceY','resizeTabs','content','_insertSuggestion','remove','focusPromptInput','provider','contextItemAdded','addFeedItemStaticMessage','abortPromptStream','insertSuggestion','main','collaboration.channelId','find','removeSelectionFromContext','documentContextContent','config','AIChatUI','data','ai-chat-conversation-init-failed','error','plugins','uid','updateContent','getOperations','resourceStateChanged','selectedModel','ai-chat-conversation-start-failed','_handleUIUserMessage','load','setIsUploadInProgress','mouseOverSuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','toggleReasoning','modification-delta','_stopLastInteraction','interactionFinished','AI_CHAT_UNTITLED_CONVERSATION','_filterModels','locale','requires','getChildAtOffset','query','sourceResourcesLoaded','pluginName','addFeedItemAIReply','startsWith','createPositionAt','log','updateFeedItemAIReplySuggestionContent','replyChangeGroupStateUpdated','setFeedItemRenderingStrategy','isStarted','toggleWebSearch','contextItemLoadingEnded','get','96VulzeA','delete','getFirstRange','open','_integrateEditor','_scrollToSuggestionRange','getMarkersGroup','_aiEditing','filter','_logError','selection','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','state','updateCapabilities','addFeedItemUserMessage','static','setContextItemLoading','resources','AIConnector','ai-chat-missing-channel-id','_removeAISelectionMarkers','_balloonShowDiff','getInteractionAndReplyById','stop','sourceId','context','setIsMaximized','_previewedChangeGroup','contextItem','getAttribute','startInteraction','ai-conversation-','selectModel','getRoot','rootName','44883vBlYdP','dialogClosed','updateCurrentDocumentInContext','afterInit','contextSent','start','getDiff','1219617FzUvuZ','toggleLoadingSkeleton','resource','95860SURODz','replyCreated','pending','editors','applyOperation','source','updateFeedInteractionHeader','scrollFeedToSuggestion','options','getSelectionText','resetConversationTitle','handleRemovedConversation','close','setConversationContext','string','Disliked\x20response','AI_CHAT_CONTEXT_INVALID_DATA','Showing\x20conversation\x20history...','_updateReplyContent','_openBalloonFor','addResourceToContext','isInContext','_handleStartConversation','ai-chat-url-upload-failed','contextItems','push','stopListening','_aiChatUi','isOpen','markers','isDocumentOperation','interactionCreated','_aiConnector','has','ai-chat-controller-no-active-conversation','setSelectedModel','like','AIEditing','view','streaming','getDocumentData','loadConversation','uiId','sourcePosition','uploadProgressChanged','isOfficialPlugin','resize','activateTab','createPositionFromPath','stopInteraction','$graveyard','176067XWsEoM','toggleSuggestionDisplayMode','root','ai.chat.models.defaultModelId','getRanges','viewRangeToDom','toViewRange','toLocaleLowerCase','howMany','setConversationTitle','mapper','change','isCurrentDocumentInContext','setAddContextOptions','_showConversationHistory','isCurrentDocumentInConversation','getChild','slice','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','accepted','handleUserInteraction','init','getChildren','set','indexOf','domConverter','closeSourceResourceBalloon','toString','addFileToContext','addSelectionToChatContext','changes','_applyOperationsAsSuggestions','createConversation','_startConversationSafely','model','rejected','_toggleReasoning','parse','addContextOptionsChanged','node','interactionDestroyed','activeConversation','_flushLastInteractionUI','AI_CHAT_RESOURCE_LOAD_FAILED','forEach','addFeedItemAISuggestion','cloneNode','addSelectionToContext','getTransformedByOperation','maxOffset','addFeedInteractionHeader','resourceId','isLoading','removeFromContext','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-request-aborted','sources','applySuggestion','changeGroups','partIndex','_batchToChanges','split','replies','resetMessageInput','addUrlToContext','dislike','modelSelected','populateSourceResourceBalloon','addCurrentDocumentToContext','ai.chat.models.displayedModels','isPremiumPlugin','listenTo','addOperation','AI_BALLOON_HEADER_TITLE','removeMarker','message','updateFeedItemAIReplyContent','getPath','AIChatController','updateConversationTitle','data-id','full','editing','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_GENERIC_ERROR','ai-chat-source-resources-load-failed','availableModels','replyContentUpdated','current-document','_getDocumentRangeForReplyChanges','showDiff','ai-chat-context-invalid-data','document','TrackChangesEditing','new','showFakeVisualSelection','disableControls','showChangeInText','baseVersion','_setIsMaximized','loadSourceResources','ai-chat-controller-mouse-over','ai-chat-file-upload-failed','833360zELMRa','ai.chat.context','sendUserMessage','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','Liked\x20response','_toggleWebSearch','enableControls','startConversation','batch','replyId','commands','resizedTabs','chat','interactionId','AITabs','children','getGroupId','Undo','capabilitiesUpdated','setChangeGroupState','removeSelectionFromChatContext','version','createRange','setModel','showNext','addContextItem','clearPendingContextUI','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplySuggestionPartState','getDocumentContext','name','finishInteraction','updateResourceState','length','removeContextItem','from','sendMessage','2513xZfxkT','addFeedItemError','showPrevious','ai-chat-resource-load-failed','conversationInitialized','_createFromRanges','addFilesToContext','894LxqHQu','isUploadInProgress','interactionStarted','nextSibling','redo','ready','clearConversationContextUI','path','616674BVoyAF','_applySuggestion','ai-chat-context-unsupported-type','anchorId','lastInteraction','text-delta','mouseLeaveSuggestion','range','undo','rejectSuggestion','removed','contextItemRemoved','DocumentCompare','isDisabled','updateFeedItemAIReplySources','removeFeedInteraction','getReply','add','_aiChatModels','alignToTop','hideFakeVisualSelection'];_0x5ee2=function(){return _0x241673;};return _0x5ee2();}import{getEditorFromContext as _0x31f76c}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x2dba5c,DATA_ID_MODEL_ATTRIBUTE as _0x3e883f}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x3ec244}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4f05cf,getMinimalSelection as _0x2beaca,getSuggestionPartsFromReply as _0x336ebe}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x339598,_DetachOperation as _0x1126f9}from'ckeditor5/src/engine.js';import{findOne as _0x1e4bbc,getAttribute as _0x55f24f,serialize as _0x270bc0,Document as _0x577017,findByAttribute as _0x6d3a9c}from'../aicore/utils/htmlparser.js';function _0x2912(_0x384a10,_0x5634f9){const _0x5ee29b=_0x5ee2();return _0x2912=function(_0x291204,_0x4493db){_0x291204=_0x291204-0xd8;let _0x4ff3d4=_0x5ee29b[_0x291204];return _0x4ff3d4;},_0x2912(_0x384a10,_0x5634f9);}import{IconAI as _0x2a9bc6}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3aa59e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x2da00a}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x28d851{[_0x273c8e(0x1f2)];[_0x273c8e(0xe6)];[_0x273c8e(0xe1)];[_0x273c8e(0x1a6)];[_0x273c8e(0x135)]=new Map();[_0x273c8e(0x207)]=null;[_0x273c8e(0x201)]=!0x1;static get[_0x273c8e(0x1db)](){return[_0x4052a5,_0x2da00a,_0x2dba5c];}static get[_0x273c8e(0x1df)](){const _0x4220bf=_0x273c8e;return _0x4220bf(0x147);}static get[_0x273c8e(0xf3)](){return!0x0;}static get[_0x273c8e(0x13f)](){return!0x0;}[_0x273c8e(0x10e)](){const _0x2a55bb=_0x273c8e;this[_0x2a55bb(0xe6)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x1fe)),this[_0x2a55bb(0xe1)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x1c4)),this[_0x2a55bb(0x1f2)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0xeb)),this[_0x2a55bb(0x1a6)]=new _0x1d306d({'connector':this[_0x2a55bb(0xe6)]});const _0xed5ed2=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x16e));this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x167),()=>{const _0x506ac0=_0x2a55bb;this[_0x506ac0(0x11a)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x162),(_0x11f215,_0x3bad6f)=>{const _0x51938c=_0x2a55bb;this[_0x51938c(0x1cf)]({'userMessage':_0x3bad6f});}),this[_0x2a55bb(0x140)](_0xed5ed2,_0x2a55bb(0x16b),(_0x47a9c9,_0x8dba0b)=>{const _0x350c62=_0x2a55bb;this[_0x350c62(0x15c)](_0x8dba0b);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1b4),()=>{const _0x511439=_0x2a55bb;_0xed5ed2[_0x511439(0xf4)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1bc),async()=>{const _0x2ea798=_0x2a55bb;await this[_0x2ea798(0x1d6)](),await this[_0x2ea798(0x123)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1ad),()=>{const _0x4d6504=_0x2a55bb;this[_0x4d6504(0x122)]?.[_0x4d6504(0x13d)](_0x491991(this[_0x4d6504(0x205)][_0x4d6504(0x1da)],_0x4d6504(0x163)));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x115),(_0x3961fc,_0x187b59)=>{const _0x2552e6=_0x2a55bb;this[_0x2552e6(0x122)]?.[_0x2552e6(0x18b)](Array[_0x2552e6(0x183)](_0x187b59));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x139),(_0x2902ad,_0x45a5f9)=>{const _0x36a83f=_0x2a55bb;this[_0x36a83f(0x122)]?.[_0x36a83f(0x139)](_0x45a5f9);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xda),(_0x2dfb6e,_0x4c6033)=>{const _0x232118=_0x2a55bb;this[_0x232118(0x122)]?.[_0x232118(0xda)](_0x4c6033[_0x232118(0x21e)],_0x4c6033[_0x232118(0x218)]);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x182),(_0x113000,_0x3129d8)=>{const _0xc5bfd5=_0x2a55bb;this[_0xc5bfd5(0x1a9)](_0x3129d8);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x15d),(_0x29e338,_0x24d788)=>{const _0x26eecc=_0x2a55bb;this[_0x26eecc(0x122)]?.[_0x26eecc(0x15d)](_0x24d788[_0x26eecc(0x204)],_0x24d788[_0x26eecc(0x1dd)],_0x24d788[_0x26eecc(0x1c9)]);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1e8),()=>{const _0x516415=_0x2a55bb;this[_0x516415(0x165)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1d4),()=>{const _0x2bf808=_0x2a55bb;this[_0x2bf808(0x11d)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x20c),(_0x58d76b,_0x32a577)=>{const _0x3d58c9=_0x2a55bb;this[_0x3d58c9(0x122)]?.[_0x3d58c9(0x177)](_0x32a577);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xea),(_0x14694a,{replyId:_0x493f0b})=>{const _0x1b3d32=_0x2a55bb;console[_0x1b3d32(0x1e3)](_0x1b3d32(0x164),_0x493f0b);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x13a),(_0x2072ea,{replyId:_0x38f140})=>{const _0x4ac1af=_0x2a55bb;console[_0x4ac1af(0x1e3)](_0x4ac1af(0x228),_0x38f140);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1bd),(_0x5b7016,_0x216a22)=>{const _0x2d89e4=_0x2a55bb;this[_0x2d89e4(0x205)][_0x2d89e4(0x1c8)][_0x2d89e4(0x1ea)](_0x2da00a)[_0x2d89e4(0x225)](),this[_0x2d89e4(0x1b6)](_0x216a22);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x15a),(_0x47765e,{replyId:_0x5da275,partIndex:_0xbff341})=>{const _0x553768=_0x2a55bb;this[_0x553768(0x201)]=this[_0x553768(0xe1)][_0x553768(0x153)],this[_0x553768(0xd9)](_0x5da275,_0xbff341);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1d2),(_0x4636ad,{replyId:_0x10f8b0,partIndex:_0x3c35b1})=>{const _0x528d0f=_0x2a55bb,_0x3e1948=this[_0x528d0f(0x152)](_0x10f8b0,_0x3c35b1);_0x3e1948&&_0x528d0f(0xf8)!=_0x3e1948[_0x528d0f(0x19b)][_0x528d0f(0xfb)][_0x528d0f(0x20e)]&&this[_0x528d0f(0x1f2)][_0x528d0f(0x158)]([_0x3e1948[_0x528d0f(0x19b)]],_0x528d0f(0x15e));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x19a),()=>{const _0x39a975=_0x2a55bb;this[_0x39a975(0x1f2)][_0x39a975(0x1a8)](_0x39a975(0x15e));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x132),(_0x56a246,_0x3777ab)=>{const _0x535c25=_0x2a55bb;this[_0x535c25(0x205)][_0x535c25(0x1c8)][_0x535c25(0x1ea)](_0x2da00a)[_0x535c25(0x225)](),this[_0x535c25(0x195)](_0x3777ab);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xfa),async(_0x150b25,_0x43904f)=>{const _0x387c5b=_0x2a55bb,{reply:_0x20dff8}=this[_0x387c5b(0x202)](_0x43904f[_0x387c5b(0x169)]),_0x3eeb5d=_0x31f76c(this[_0x387c5b(0x205)]),_0x21222b=_0x336ebe({'editor':_0x3eeb5d,'changeGroups':_0x20dff8[_0x387c5b(0x133)],'documentContextContent':_0x20dff8[_0x387c5b(0x1c2)],'showDiff':_0x43904f[_0x387c5b(0x153)]});await this[_0x387c5b(0xe1)][_0x387c5b(0x1e4)]({'id':_0x20dff8['id'],'parts':_0x21222b,'renderingStrategy':_0x387c5b(0x1fb)});}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x19d),(_0x5d453b,{replyId:_0xc532da,partIndex:_0x39eafe})=>{const _0x138c0e=_0x2a55bb;this[_0x138c0e(0x207)]?.[_0x138c0e(0x169)]==_0xc532da&&this[_0x138c0e(0x207)]?.[_0x138c0e(0x134)]==_0x39eafe&&this[_0x138c0e(0x205)][_0x138c0e(0x1c8)][_0x138c0e(0x1ea)](_0x2da00a)[_0x138c0e(0x225)]();const {reply:_0x5a67c7}=this[_0x138c0e(0x202)](_0xc532da);_0x5a67c7[_0x138c0e(0x173)](_0x39eafe,_0x138c0e(0x11c)),this[_0x138c0e(0x1f2)][_0x138c0e(0x1a8)](_0x138c0e(0x15e));});}async[_0x273c8e(0x212)](){const _0x4e5403=_0x273c8e;this[_0x4e5403(0x205)]instanceof _0x1a849b?this[_0x4e5403(0x1ef)](this[_0x4e5403(0x205)]):this[_0x4e5403(0x140)](this[_0x4e5403(0x205)][_0x4e5403(0x21c)],_0x4e5403(0x1a5),(_0x3e3fb6,_0x4daf4b)=>{const _0x31ba3b=_0x4e5403;_0x4daf4b['on'](_0x31ba3b(0x191),()=>{const _0x3b6edc=_0x31ba3b;this[_0x3b6edc(0x1ef)](_0x4daf4b);});}),await this[_0x4e5403(0x11a)]();}[_0x273c8e(0x1b6)](_0x18e903){const _0x2ab21c=_0x273c8e,_0x3e9024=_0x31f76c(this[_0x2ab21c(0x205)]);if(!_0x3e9024[_0x2ab21c(0x1c8)][_0x2ab21c(0xe7)](_0x2ab21c(0x156)))return;const _0x860b8a=this[_0x2ab21c(0x205)][_0x2ab21c(0x1c8)][_0x2ab21c(0x1ea)](_0x2ab21c(0x1a0)),{reply:_0x54047e,interaction:_0x216817}=this[_0x2ab21c(0x202)](_0x18e903[_0x2ab21c(0x169)]),_0x2dfa3e=this[_0x2ab21c(0x152)](_0x18e903[_0x2ab21c(0x169)],_0x18e903[_0x2ab21c(0x134)]),_0x43cc50=void 0x0!==_0x18e903[_0x2ab21c(0x134)]?[_0x54047e[_0x2ab21c(0x133)][_0x18e903[_0x2ab21c(0x134)]]]:_0x54047e[_0x2ab21c(0x133)][_0x2ab21c(0x1f3)](_0x17292d=>_0x2ab21c(0x21b)==_0x17292d[_0x2ab21c(0x1f8)]),_0x26dc61=_0x43cc50[_0x2ab21c(0x1ae)](_0x5f1da3=>_0x54047e[_0x2ab21c(0x133)][_0x2ab21c(0x111)](_0x5f1da3));_0x26dc61[_0x2ab21c(0x125)](_0x4927e8=>_0x54047e[_0x2ab21c(0x173)](_0x4927e8,_0x2ab21c(0x10c)));const _0x15751e=_0x3ec244({'editor':_0x3e9024,'reply':_0x54047e,'interaction':_0x216817,'groups':_0x43cc50,'transform':!0x0,'documentCompare':_0x860b8a,'documentCompareOptions':{'anchor':_0x2ab21c(0x1be),'markDeletions':!0x0}});let _0x411eb1;_0x2dfa3e&&this[_0x2ab21c(0x1f0)](_0x2dfa3e[_0x2ab21c(0x19b)]),_0x3e9024[_0x2ab21c(0x11b)][_0x2ab21c(0x104)](_0x3bc528=>{const _0x4d803e=_0x2ab21c;_0x411eb1=_0x3bc528[_0x4d803e(0x168)],_0x3e9024[_0x4d803e(0x1c8)][_0x4d803e(0x1ea)](_0x4d803e(0x156))[_0x4d803e(0x118)](_0x15751e),this[_0x4d803e(0x1f2)][_0x4d803e(0x1a8)](_0x4d803e(0x15e));}),this[_0x2ab21c(0x135)][_0x2ab21c(0x110)](_0x411eb1,{'interactionId':_0x216817['id'],'replyId':_0x54047e['id'],'indexes':_0x26dc61[_0x2ab21c(0x10a)]()});}[_0x273c8e(0x195)](_0x1c35fb){const _0x1b11e7=_0x273c8e,_0x2a4b4e=_0x31f76c(this[_0x1b11e7(0x205)]),_0xa2dc40=this[_0x1b11e7(0x205)][_0x1b11e7(0x1c8)][_0x1b11e7(0x1ea)](_0x2dba5c),{reply:_0x5ca3cb,interaction:_0x3a0176}=this[_0x1b11e7(0x202)](_0x1c35fb[_0x1b11e7(0x169)]),_0x43ae21=this[_0x1b11e7(0x152)](_0x1c35fb[_0x1b11e7(0x169)],_0x1c35fb[_0x1b11e7(0x134)]),_0x2194ec=void 0x0!==_0x1c35fb[_0x1b11e7(0x134)]?[_0x5ca3cb[_0x1b11e7(0x133)][_0x1c35fb[_0x1b11e7(0x134)]]]:_0x5ca3cb[_0x1b11e7(0x133)][_0x1b11e7(0x1f3)](_0x32375d=>_0x1b11e7(0x21b)==_0x32375d[_0x1b11e7(0x1f8)]),_0x40e59e=_0x2194ec[_0x1b11e7(0x1ae)](_0x1e540d=>_0x5ca3cb[_0x1b11e7(0x133)][_0x1b11e7(0x111)](_0x1e540d));_0x40e59e[_0x1b11e7(0x125)](_0x9a4a6e=>_0x5ca3cb[_0x1b11e7(0x173)](_0x9a4a6e,_0x1b11e7(0x10c)));const _0x3a7e58=_0x3ec244({'editor':_0x2a4b4e,'reply':_0x5ca3cb,'interaction':_0x3a0176,'groups':_0x2194ec,'transform':!0x0,'documentCompare':_0xa2dc40,'documentCompareOptions':{'anchor':_0x1b11e7(0x1be),'markDeletions':!0x1}});let _0x46818d;_0x43ae21&&this[_0x1b11e7(0x1f0)](_0x43ae21[_0x1b11e7(0x19b)]),_0x2a4b4e[_0x1b11e7(0x11b)][_0x1b11e7(0x104)](_0x2534a4=>{const _0x2a0f80=_0x1b11e7;_0x46818d=_0x2534a4[_0x2a0f80(0x168)];for(const _0x352bd9 of _0x3a7e58)_0x352bd9[_0x2a0f80(0x15b)]=_0x2a4b4e[_0x2a0f80(0x11b)][_0x2a0f80(0x155)][_0x2a0f80(0x175)],_0x2534a4[_0x2a0f80(0x168)][_0x2a0f80(0x141)](_0x352bd9),_0x2a4b4e[_0x2a0f80(0x11b)][_0x2a0f80(0x21d)](_0x352bd9);}),this[_0x1b11e7(0x135)][_0x1b11e7(0x110)](_0x46818d,{'interactionId':_0x3a0176['id'],'replyId':_0x5ca3cb['id'],'indexes':_0x40e59e[_0x1b11e7(0x10a)]()});}[_0x273c8e(0xd9)](_0x2616c4,_0x4b8c92){const _0x254181=_0x273c8e,_0x6114aa=_0x31f76c(this[_0x254181(0x205)]),_0x336ede=this[_0x254181(0x152)](_0x2616c4,_0x4b8c92),_0xaa6740=this[_0x254181(0x205)][_0x254181(0x1c8)][_0x254181(0x1ea)](_0x2da00a);if(!_0x336ede)return void _0xaa6740[_0x254181(0x225)]();const {range:_0x4c713a,currentIndex:_0x2ed491,previousIndex:_0x54e42c,nextIndex:_0x363179}=_0x336ede;if(this[_0x254181(0x207)]?.[_0x254181(0x169)]==_0x2616c4&&this[_0x254181(0x207)]?.[_0x254181(0x134)]==_0x2ed491)return;this[_0x254181(0x207)]={'replyId':_0x2616c4,'partIndex':_0x2ed491};const _0x124381=new _0x3aa59e(_0x6114aa[_0x254181(0x1da)],{'showDiff':this[_0x254181(0x201)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x254181(0x14a)},'hideHeader':!0x0}),{reply:_0x2a580a}=this[_0x254181(0x202)](_0x2616c4),_0x51dbef=_0x336ebe({'editor':_0x6114aa,'changeGroups':[_0x2a580a[_0x254181(0x133)][_0x2ed491]],'documentContextContent':_0x2a580a[_0x254181(0x1c2)],'showDiff':this[_0x254181(0x201)]});_0x124381[_0x254181(0x1ca)]({'parts':_0x51dbef,'renderingStrategy':_0x254181(0x1fb)});const _0x1d6b3b=_0x2ed491!==_0x54e42c;this[_0x254181(0x1f0)](_0x4c713a,!0x0),_0xaa6740[_0x254181(0x1ee)]({'index':_0x2ed491,'title':_0x491991(this[_0x254181(0x205)][_0x254181(0x1da)],_0x254181(0x142),(_0x2ed491+0x1)[_0x254181(0x114)]()),'icon':_0x2a9bc6,'mainView':_0x124381,'showRotator':_0x1d6b3b,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4c713a]}),this[_0x254181(0xe1)][_0x254181(0x220)](_0x2616c4,_0x2ed491),this[_0x254181(0x140)](_0x124381,_0x254181(0xfa),(_0x5d0c93,{showDiff:_0x1c168b})=>{const _0x42d14c=_0x254181;this[_0x42d14c(0x201)]=_0x1c168b;const {reply:_0xb18125}=this[_0x42d14c(0x202)](_0x2616c4),_0xb6af3b=_0x336ebe({'editor':_0x6114aa,'changeGroups':[_0xb18125[_0x42d14c(0x133)][_0x2ed491]],'documentContextContent':_0xb18125[_0x42d14c(0x1c2)],'showDiff':_0x1c168b});_0x124381[_0x42d14c(0x1ca)]({'parts':_0xb6af3b,'renderingStrategy':_0x42d14c(0x1fb)});}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x132),()=>{const _0x1aa108=_0x254181;this[_0x1aa108(0x195)]({'replyId':_0x2616c4,'partIndex':_0x2ed491}),_0x1d6b3b?this[_0x1aa108(0xd9)](_0x2616c4,_0x363179):_0xaa6740[_0x1aa108(0x225)]();}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x1bd),()=>{const _0x3522fd=_0x254181;this[_0x3522fd(0x1b6)]({'replyId':_0x2616c4,'partIndex':_0x2ed491}),_0x1d6b3b?this[_0x3522fd(0xd9)](_0x2616c4,_0x363179):_0xaa6740[_0x3522fd(0x225)]();}),_0x1d6b3b&&(this[_0x254181(0x140)](_0xaa6740,_0x254181(0x178),()=>{const _0x2c0c84=_0x254181;this[_0x2c0c84(0xd9)](_0x2616c4,_0x363179);}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x187),()=>{const _0x460da4=_0x254181;this[_0x460da4(0xd9)](_0x2616c4,_0x54e42c);})),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x210),()=>{const _0x221a81=_0x254181;this[_0x221a81(0xe0)](_0xaa6740),this[_0x221a81(0xe0)](_0x124381),this[_0x221a81(0x207)]=null;});}[_0x273c8e(0x152)](_0x2b8be0,_0x5eeb03){const _0x373a1b=_0x273c8e,_0x333b5b=_0x31f76c(this[_0x373a1b(0x205)]),{reply:_0x4a3587,interaction:_0x32c0a4}=this[_0x373a1b(0x202)](_0x2b8be0),_0x5e97a6=_0x4a3587[_0x373a1b(0x133)][_0x373a1b(0x1f3)](_0x216753=>_0x373a1b(0x21b)==_0x216753[_0x373a1b(0x1f8)]),_0x3bca4e=_0x5e97a6[_0x373a1b(0x1ae)](_0x15721b=>_0x4a3587[_0x373a1b(0x133)][_0x373a1b(0x111)](_0x15721b));void 0x0===_0x5eeb03&&(_0x5eeb03=_0x3bca4e[0x0]);const _0x10d853=_0x3bca4e[_0x373a1b(0x111)](_0x5eeb03);if(-0x1==_0x10d853)return null;const _0x238c42=0x0==_0x10d853?_0x3bca4e[_0x3bca4e[_0x373a1b(0x181)]-0x1]:_0x3bca4e[_0x10d853-0x1],_0x31189c=_0x10d853==_0x3bca4e[_0x373a1b(0x181)]-0x1?_0x3bca4e[0x0]:_0x3bca4e[_0x10d853+0x1],_0x356468=_0x5e97a6[_0x10d853],_0x1e7f33=new _0x577017([]),_0x4aeff3=new _0x577017([]);for(const _0x2ecab0 of _0x356468[_0x373a1b(0x117)])if(_0x373a1b(0x19e)!=_0x2ecab0[_0x373a1b(0x1b2)]&&_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x2ecab0[_0x373a1b(0x120)][_0x373a1b(0x127)](!0x0)),_0x373a1b(0x157)!=_0x2ecab0[_0x373a1b(0x1b2)]){const _0x493535=_0x1e4bbc(_0x4eb73a=>_0x55f24f(_0x4eb73a,_0x373a1b(0x149))==_0x2ecab0['id'],_0x4a3587[_0x373a1b(0x1c2)],!0x0);_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x493535[_0x373a1b(0x127)](!0x0));}if(0x0==_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0x181)]){if(_0x356468[_0x373a1b(0x117)][0x0][_0x373a1b(0x197)]){const _0x15c23c=_0x6d3a9c(_0x373a1b(0x149),_0x356468[_0x373a1b(0x117)][0x0][_0x373a1b(0x197)],_0x4a3587[_0x373a1b(0x1c2)]);_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0x1ac)](_0x15c23c[_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0x1ac)](_0x15c23c[_0x373a1b(0x127)](!0x0)),_0x15c23c[_0x373a1b(0x18f)]&&(_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x15c23c[_0x373a1b(0x18f)][_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x15c23c[_0x373a1b(0x18f)][_0x373a1b(0x127)](!0x0)));}else{const _0x41778c=_0x4a3587[_0x373a1b(0x1c2)][_0x373a1b(0x16f)][0x0];if(!_0x41778c)return null;_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x41778c[_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x41778c[_0x373a1b(0x127)](!0x0));}}const _0x2d324a=_0x32c0a4[_0x373a1b(0x17d)](),_0x55789a=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x2d324a[_0x373a1b(0x1b5)]),_0x158b2f=_0x270bc0(_0x1e7f33),_0x29bbd5=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x158b2f),_0x249935=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x158b2f),_0x4b6516=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x1e2)](_0x29bbd5,0x0),_0x408b8a=_0x270bc0(_0x4aeff3),_0x1a9c6d={'anchor':_0x4b6516,'markDeletions':!0x1},_0x597f4d=_0x333b5b[_0x373a1b(0x1c8)][_0x373a1b(0x1ea)](_0x2dba5c)[_0x373a1b(0x215)](_0x158b2f,_0x408b8a,_0x1a9c6d)[_0x373a1b(0x1cb)]();if(!_0x597f4d[_0x373a1b(0x181)])return null;_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x104)](_0x35ff6d=>{const _0x1383d9=_0x373a1b;for(const _0x4de4a7 of _0x597f4d)if(_0x1383d9(0x1b7)==_0x4de4a7[_0x1383d9(0x1b2)]){const _0x7dd134=_0x4de4a7[_0x1383d9(0xf1)],_0x3f088b=_0x4de4a7[_0x1383d9(0x101)],_0x55c717=new _0x1126f9(_0x7dd134,_0x3f088b);_0x35ff6d[_0x1383d9(0x168)][_0x1383d9(0x141)](_0x55c717),_0x333b5b[_0x1383d9(0x11b)][_0x1383d9(0x21d)](_0x55c717);}else _0x4de4a7[_0x1383d9(0x15b)]=null,_0x4de4a7[_0x1383d9(0xe4)]=!0x1,_0x35ff6d[_0x1383d9(0x168)][_0x1383d9(0x141)](_0x4de4a7),_0x333b5b[_0x1383d9(0x11b)][_0x1383d9(0x21d)](_0x4de4a7);});const _0x5e14f0=_0x2beaca(_0x333b5b,_0x597f4d,_0x29bbd5);_0x4f05cf(_0x333b5b[_0x373a1b(0x11b)],_0x5e14f0);const _0x5a2af8=_0x5e14f0[_0x373a1b(0x1ed)]()[_0x373a1b(0x214)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x3dfb0d=_0x5e14f0[_0x373a1b(0x1ed)]()[_0x373a1b(0x1af)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x5363fc=[];let _0x5aef92=_0x29bbd5,_0x33a333=_0x249935;for(let _0x232f72=0x0;_0x232f72<_0x3dfb0d[_0x373a1b(0x181)];_0x232f72++){const _0x43c019=_0x5aef92[_0x373a1b(0x12a)]-_0x3dfb0d[_0x232f72];_0x5363fc[_0x232f72]=_0x33a333[_0x373a1b(0x12a)]-_0x43c019,_0x5aef92=_0x5aef92[_0x373a1b(0x1dc)](_0x3dfb0d[_0x232f72]),_0x33a333=_0x33a333[_0x373a1b(0x1dc)](_0x5363fc[_0x232f72]);}const _0x1be9ba=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x176)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x249935,_0x5a2af8),_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x249935,_0x5363fc)),_0x48b042=_0x249935[_0x373a1b(0x109)](0x0)[_0x373a1b(0x209)](_0x3e883f),_0x22bd76=Array[_0x373a1b(0x183)](_0x55789a[_0x373a1b(0x10f)]())[_0x373a1b(0x1c0)](_0x2c38c7=>_0x2c38c7[_0x373a1b(0x209)](_0x3e883f)==_0x48b042)[_0x373a1b(0x146)](),_0x4b1593=_0x1be9ba[_0x373a1b(0x214)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x4bc961=_0x1be9ba[_0x373a1b(0x1af)][_0x373a1b(0x193)][_0x373a1b(0x10a)]();_0x4b1593[0x0]=_0x22bd76[0x0]+_0x4b1593[0x0],_0x4bc961[0x0]=_0x22bd76[0x0]+_0x4bc961[0x0];let _0x4f8483=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x176)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x20d)](),_0x4b1593),_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x20d)](),_0x4bc961));const _0x56aeaa=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x1ab)][_0x373a1b(0x1cb)](_0x2d324a[_0x373a1b(0x175)]);for(const _0x33bc97 of _0x56aeaa)_0x4f8483=_0x339598[_0x373a1b(0x18a)](_0x4f8483[_0x373a1b(0x129)](_0x33bc97));return{'range':_0x4f8483,'previousIndex':_0x238c42,'nextIndex':_0x31189c,'currentIndex':_0x5eeb03};}[_0x273c8e(0x1ef)](_0x41569b){const _0x446fe3=_0x273c8e;if(!_0x41569b[_0x446fe3(0x1c8)][_0x446fe3(0xe7)](_0x446fe3(0x171)))return;const _0x3fbf3e=_0x41569b[_0x446fe3(0x16a)][_0x446fe3(0x1ea)](_0x446fe3(0x19c)),_0x3648e6=_0x41569b[_0x446fe3(0x16a)][_0x446fe3(0x1ea)](_0x446fe3(0x190));this[_0x446fe3(0x140)](_0x3fbf3e,_0x446fe3(0x1b1),(_0x581b8d,_0x48a6fb,_0x456b3e)=>{const _0x9fa3a5=_0x446fe3,_0x31b27d=this[_0x9fa3a5(0x135)][_0x9fa3a5(0x1ea)](_0x48a6fb);if(!_0x31b27d)return;const _0xd174f0=this[_0x9fa3a5(0x122)][_0x9fa3a5(0x1f6)](_0x31b27d[_0x9fa3a5(0x16d)])[_0x9fa3a5(0x1a4)](_0x31b27d[_0x9fa3a5(0x169)]);_0x31b27d[_0x9fa3a5(0x1b0)][_0x9fa3a5(0x125)](_0x22607e=>_0xd174f0[_0x9fa3a5(0x173)](_0x22607e,_0x9fa3a5(0x21b))),this[_0x9fa3a5(0x135)][_0x9fa3a5(0x1ec)](_0x48a6fb),this[_0x9fa3a5(0x135)][_0x9fa3a5(0x110)](_0x456b3e,_0x31b27d);}),this[_0x446fe3(0x140)](_0x3648e6,_0x446fe3(0x1b1),(_0x22fa09,_0x16ca92,_0x207f2f)=>{const _0x2bb2bd=_0x446fe3,_0x594f3b=this[_0x2bb2bd(0x135)][_0x2bb2bd(0x1ea)](_0x16ca92);if(!_0x594f3b)return;const _0x20352e=this[_0x2bb2bd(0x122)][_0x2bb2bd(0x1f6)](_0x594f3b[_0x2bb2bd(0x16d)])[_0x2bb2bd(0x1a4)](_0x594f3b[_0x2bb2bd(0x169)]);_0x594f3b[_0x2bb2bd(0x1b0)][_0x2bb2bd(0x125)](_0x151493=>_0x20352e[_0x2bb2bd(0x173)](_0x151493,_0x2bb2bd(0x10c))),this[_0x2bb2bd(0x135)][_0x2bb2bd(0x1ec)](_0x16ca92),this[_0x2bb2bd(0x135)][_0x2bb2bd(0x110)](_0x207f2f,_0x594f3b);});}async[_0x273c8e(0xef)](_0x35bd76){const _0x38479e=_0x273c8e;this[_0x38479e(0x205)][_0x38479e(0x1c8)][_0x38479e(0x1ea)](_0x2da00a)[_0x38479e(0x225)](),this[_0x38479e(0xe1)][_0x38479e(0x1e6)](_0x38479e(0x1fb)),this[_0x38479e(0xe1)][_0x38479e(0x217)](!0x0),await this[_0x38479e(0x1d6)]();try{const _0x2f15d1=this[_0x38479e(0x205)][_0x38479e(0x1c8)][_0x38479e(0x1ea)](_0x3be4cf);this[_0x38479e(0x148)]('\x20'),_0x2f15d1[_0x38479e(0xec)][_0x38479e(0xf5)](_0x38479e(0x16c)),await this[_0x38479e(0x11a)](_0x35bd76);const {sessionId:_0x4b0116}=this[_0x38479e(0x1f2)][_0x38479e(0xee)]();await this[_0x38479e(0x122)][_0x38479e(0x1d0)](_0x35bd76,_0x4b0116),this[_0x38479e(0x122)][_0x38479e(0x108)]()&&this[_0x38479e(0x122)][_0x38479e(0x13d)](_0x491991(this[_0x38479e(0x205)][_0x38479e(0x1da)],_0x38479e(0x163)));}catch(_0x40eb33){console[_0x38479e(0x1c7)](_0x38479e(0x1aa),_0x40eb33);}finally{this[_0x38479e(0xe1)][_0x38479e(0x1e6)](_0x38479e(0xed)),this[_0x38479e(0xe1)][_0x38479e(0x217)](!0x1);}}[_0x273c8e(0x224)](_0x10ed0c){const _0xba3a93=_0x273c8e;this[_0xba3a93(0x122)]['id']===_0x10ed0c&&this[_0xba3a93(0x11a)]();}async[_0x273c8e(0x116)](){const _0x7a646=_0x273c8e,_0x3ce82d=this[_0x7a646(0x1f2)][_0x7a646(0x222)]();this[_0x7a646(0x122)]?.[_0x7a646(0x128)](_0x3ce82d),this[_0x7a646(0x122)]?.[_0x7a646(0x13d)](_0x491991(this[_0x7a646(0x205)][_0x7a646(0x1da)],_0x7a646(0x163)));}[_0x273c8e(0x174)](){const _0x35281e=_0x273c8e;this[_0x35281e(0x122)]?.[_0x35281e(0x1c1)]();}[_0x273c8e(0x1b8)](){const _0x521198=_0x273c8e;this[_0x521198(0xe1)][_0x521198(0x1b8)]();}async[_0x273c8e(0x167)](){const _0x2e9154=_0x273c8e;await this[_0x2e9154(0x11a)]();}async[_0x273c8e(0x184)]({message:_0x10d297,quickActionData:_0x450245}){const _0x1d2a07=_0x273c8e;await this[_0x1d2a07(0x1cf)]({'userMessage':_0x10d297,'quickActionData':_0x450245});}[_0x273c8e(0x170)](){const _0x25de17=_0x273c8e,_0x208850=this[_0x25de17(0x205)][_0x25de17(0x1c3)][_0x25de17(0x1ea)](_0x25de17(0x1bf));if(!_0x208850)throw new _0x327deb(_0x25de17(0x1ff),this);return _0x208850;}async[_0x273c8e(0x11a)](_0x29be41){const _0xc964fa=_0x273c8e;try{this[_0xc964fa(0xe1)][_0xc964fa(0x166)](),await this[_0xc964fa(0xdc)](_0x29be41);}catch(_0x163796){_0x155630(_0xc964fa(0x1ce),_0x163796),this[_0xc964fa(0x122)]=void 0x0,this[_0xc964fa(0xe1)][_0xc964fa(0x159)]();}}async[_0x273c8e(0xdc)](_0x23a54f){const _0x31fb88=_0x273c8e,_0x227529=this[_0x31fb88(0x205)][_0x31fb88(0x1c8)][_0x31fb88(0x1ea)](_0x2da00a);let _0x3cf8ed;_0x227529[_0x31fb88(0xe2)]&&_0x227529[_0x31fb88(0x225)](),_0x3cf8ed=_0x23a54f||!this[_0x31fb88(0x122)]?this[_0x31fb88(0x205)][_0x31fb88(0x1c3)][_0x31fb88(0x1ea)](_0x31fb88(0xfc)):this[_0x31fb88(0x122)][_0x31fb88(0x1cd)]['id'],await this[_0x31fb88(0x1d6)]();const _0x37488a=this[_0x31fb88(0x170)](),_0x743a20=_0x23a54f||_0x4d67a7();this[_0x31fb88(0x122)]=new _0x4dd354({'connector':this[_0x31fb88(0xe6)],'chatModels':this[_0x31fb88(0x1a6)],'defaultModelId':_0x3cf8ed,'conversationId':_0x743a20,'group':_0x37488a,'getEditor':()=>_0x31f76c(this[_0x31fb88(0x205)])}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x189),(_0x15456e,_0x39dbfd)=>{const _0x5cfd2a=_0x31fb88;_0x39dbfd[_0x5cfd2a(0x14f)]=this[_0x5cfd2a(0x1d9)](_0x39dbfd[_0x5cfd2a(0x14f)],this[_0x5cfd2a(0x205)][_0x5cfd2a(0x1c3)][_0x5cfd2a(0x1ea)](_0x5cfd2a(0x13e))),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x119)](_0x39dbfd),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x138)](),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x17a)](),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x192)](),_0x23a54f||(this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x223)](),this[_0x5cfd2a(0x122)]?.[_0x5cfd2a(0x13d)](_0x491991(this[_0x5cfd2a(0x205)][_0x5cfd2a(0x1da)],_0x5cfd2a(0x163))));}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0xf2),(_0x3009fb,_0x331545)=>{const _0x2e0d76=_0x31fb88;this[_0x2e0d76(0xe1)][_0x2e0d76(0x1d1)](_0x331545[_0x2e0d76(0x18d)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0xe5),(_0x5bac39,_0x243116)=>{const _0x36235b=_0x31fb88;this[_0x36235b(0xe1)][_0x36235b(0x1fa)](_0x243116),this[_0x36235b(0xe1)][_0x36235b(0x12b)](_0x243116);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x18e),(_0x188c49,_0x1d3471)=>{const _0x11741d=_0x31fb88;this[_0x11741d(0xe1)][_0x11741d(0x20a)](_0x1d3471);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1d7),async()=>{const _0x2bf9a2=_0x31fb88;await this[_0x2bf9a2(0xe1)][_0x2bf9a2(0x17f)]();}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x121),(_0x599d45,_0x38c8f0)=>{const _0x27c90d=_0x31fb88;this[_0x27c90d(0xe1)][_0x27c90d(0x1a3)](_0x38c8f0['id']);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x102),(_0x2a6800,_0x3fbcfb,_0x28f82c)=>{const _0x5a6f5c=_0x31fb88;this[_0x5a6f5c(0x148)](_0x3fbcfb,_0x28f82c);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x21a),(_0x5de25d,_0x493e60)=>{const _0x5ecd50=_0x31fb88;this[_0x5ecd50(0xe1)][_0x5ecd50(0x21f)]({'isVisible':!0x0,'id':_0x493e60[_0x5ecd50(0x16d)]}),_0x5ecd50(0x199)===_0x493e60[_0x5ecd50(0x1b2)]?this[_0x5ecd50(0xe1)][_0x5ecd50(0x1e0)](_0x493e60):this[_0x5ecd50(0xe1)][_0x5ecd50(0x126)](_0x493e60);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x150),async(_0x54d824,_0x35ccd7,_0x4ef157)=>{const _0x403c88=_0x31fb88;await this[_0x403c88(0xd8)]({'reply':_0x35ccd7,'changeGroups':_0x4ef157});}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1e5),(_0x4676df,{reply:_0xcf8d8c,index:_0x4b0d71,state:_0x49249b})=>{const _0x5a0f38=_0x31fb88;this[_0x5a0f38(0xe1)][_0x5a0f38(0x17c)]({'id':_0xcf8d8c['id'],'index':_0x4b0d71,'state':_0x49249b});}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1ba),(_0x16369e,_0x1ffe37)=>{const _0x10196a=_0x31fb88;if(this[_0x10196a(0xe1)][_0x10196a(0x179)](_0x1ffe37[_0x10196a(0x208)],_0x1ffe37[_0x10196a(0x12d)]),_0x10196a(0x1f5)===_0x1ffe37[_0x10196a(0x208)][_0x10196a(0x1b2)]){const _0x2485b4=[..._0x31f76c(this[_0x10196a(0x205)])[_0x10196a(0x11b)][_0x10196a(0x155)][_0x10196a(0x1f5)][_0x10196a(0xfd)]()];this[_0x10196a(0x1f2)][_0x10196a(0x158)](_0x2485b4,_0x10196a(0x20b)+this[_0x10196a(0x122)]?.['id']);}}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x19f),(_0x3c596a,_0x314afb)=>{const _0x50e4b0=_0x31fb88;this[_0x50e4b0(0xe1)][_0x50e4b0(0x182)](_0x314afb[_0x50e4b0(0xf0)]),_0x50e4b0(0x151)==_0x314afb[_0x50e4b0(0xf0)]&&this[_0x50e4b0(0x174)](),_0x50e4b0(0x1f5)===_0x314afb[_0x50e4b0(0x1b2)]&&this[_0x50e4b0(0x1f2)][_0x50e4b0(0x1a8)](_0x50e4b0(0x20b)+this[_0x50e4b0(0x122)]?.['id']);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1e9),(_0x5c625c,_0x456d7e)=>{const _0x5733b1=_0x31fb88;this[_0x5733b1(0xe1)][_0x5733b1(0x1fc)](_0x456d7e[_0x5733b1(0x208)][_0x5733b1(0xf0)],_0x456d7e[_0x5733b1(0x12d)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x213),(_0x57925b,_0x154da5)=>{const _0xbac571=_0x31fb88;this[_0xbac571(0xe1)][_0xbac571(0x226)](_0x154da5[_0xbac571(0xde)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x11f),(_0xb81696,_0x116239)=>{const _0x53b4bc=_0x31fb88;this[_0x53b4bc(0xe1)][_0x53b4bc(0x106)](_0x116239[_0x53b4bc(0x221)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1de),(_0x15a3f9,_0x2a10b4)=>{const _0x4dd68d=_0x31fb88;this[_0x4dd68d(0xe1)][_0x4dd68d(0x13c)](_0x2a10b4[_0x4dd68d(0x204)],_0x2a10b4[_0x4dd68d(0x21e)],_0x2a10b4[_0x4dd68d(0x1fd)],_0x2a10b4[_0x4dd68d(0x1c9)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1cc),(_0x52eda6,_0x432837)=>{const _0x22cad3=_0x31fb88;this[_0x22cad3(0xe1)][_0x22cad3(0x180)](_0x432837[_0x22cad3(0x204)],_0x432837[_0x22cad3(0x12c)],_0x432837[_0x22cad3(0xdb)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x172),(_0x3e1c53,_0x2212d9)=>{const _0x4dcd32=_0x31fb88;this[_0x4dcd32(0xe1)][_0x4dcd32(0x1f9)](_0x2212d9);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x13b),(_0x45e665,_0x5263b4)=>{const _0x2ae979=_0x31fb88;this[_0x2ae979(0xe1)][_0x2ae979(0xe9)](_0x5263b4[_0x2ae979(0x1cd)],_0x5263b4[_0x2ae979(0x1a1)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1c7),(_0xb8dfed,{error:_0x17225b,interactionId:_0x35112e,fileName:_0x4cbd82,url:_0x51a0d3,sourceId:_0x1ce1dc,sourceLabel:_0xdf792})=>{const _0x12169e=_0x31fb88,_0x5f33d8=_0x35112e?_0x35112e+':'+_0x4d67a7():_0x4d67a7();_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x130))?this[_0x12169e(0xe1)][_0x12169e(0x1bb)]({'staticMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x14c)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x1c6))||_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x1ce))?(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x1d3)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x15f))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x17b),_0x4cbd82),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0xdd))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x1f7),_0x51a0d3),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x154))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x229)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x196))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x12f)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x14e))?(_0x1ce1dc&&this[_0x12169e(0xe1)][_0x12169e(0x113)](_0x1ce1dc),this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x10b),_0xdf792||_0x12169e(0x21e)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x188))?(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x124)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x14d)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b));}),await this[_0x31fb88(0x122)][_0x31fb88(0x10e)](this[_0x31fb88(0x205)][_0x31fb88(0x1c3)][_0x31fb88(0x1ea)](_0x31fb88(0x161))),_0x23a54f||await this[_0x31fb88(0x122)][_0x31fb88(0x214)]();}async[_0x273c8e(0x1cf)]({userMessage:_0x547bb6,quickActionData:_0x575edf}){const _0x551d63=_0x273c8e;if(!this[_0x551d63(0x122)])throw new _0x327deb(_0x551d63(0xe8));this[_0x551d63(0x122)][_0x551d63(0x105)]()&&await this[_0x551d63(0x122)][_0x551d63(0x211)](this[_0x551d63(0x1f2)][_0x551d63(0xee)]()),this[_0x551d63(0x122)]['id']&&this[_0x551d63(0x122)][_0x551d63(0x1e7)]&&await this[_0x551d63(0x122)][_0x551d63(0x10d)]({'userMessage':_0x547bb6,'quickActionData':_0x575edf}),this[_0x551d63(0x200)]();}[_0x273c8e(0x200)](){const _0xf70fc7=_0x273c8e,_0x19c997=_0x31f76c(this[_0xf70fc7(0x205)])[_0xf70fc7(0x11b)],_0x2ed042=Array[_0xf70fc7(0x183)](_0x19c997[_0xf70fc7(0xe3)][_0xf70fc7(0x1f1)](_0x28ce8a));_0x19c997[_0xf70fc7(0x104)](_0x1bc9aa=>{const _0x5e69c4=_0xf70fc7;_0x2ed042[_0x5e69c4(0x125)](_0x4322c5=>_0x1bc9aa[_0x5e69c4(0x143)](_0x4322c5));});}[_0x273c8e(0x107)](){const _0x1f1718=_0x273c8e;console[_0x1f1718(0x1e3)](_0x1f1718(0x22a));}[_0x273c8e(0x15c)](_0x2bad3c){const _0x5d2007=_0x273c8e;this[_0x5d2007(0xe1)][_0x5d2007(0x206)](_0x2bad3c);}[_0x273c8e(0x1f4)](_0x325dfb){const _0x21e194=_0x273c8e;_0x155630(_0x325dfb[_0x21e194(0x144)]);}[_0x273c8e(0x1a9)](_0x458b7a){const _0x2db30f=_0x273c8e;this[_0x2db30f(0x122)]?.[_0x2db30f(0x12e)](_0x458b7a);}[_0x273c8e(0x165)](){const _0x255c88=_0x273c8e;this[_0x255c88(0x122)]?.[_0x255c88(0x1e8)]();}[_0x273c8e(0x11d)](){const _0x3e495d=_0x273c8e;this[_0x3e495d(0x122)]?.[_0x3e495d(0x1d4)]();}[_0x273c8e(0x202)](_0xc9dcb6){const _0x3293c4=_0x273c8e,[_0x2087f9,_0x106ca7]=_0xc9dcb6[_0x3293c4(0x136)](':'),_0x27b0fc=this[_0x3293c4(0x122)][_0x3293c4(0x1f6)](_0x2087f9),_0x1ca0b9=_0x27b0fc[_0x3293c4(0x1a4)](_0x106ca7);return{'interaction':_0x27b0fc,'reply':_0x1ca0b9};}[_0x273c8e(0x1f0)](_0x44034d,_0x3e775d=!0x1){const _0x2270e0=_0x273c8e,_0x3ed4db=_0x31f76c(this[_0x2270e0(0x205)]),_0x530e48={'target':_0x3ed4db[_0x2270e0(0x14b)][_0x2270e0(0xec)][_0x2270e0(0x112)][_0x2270e0(0xfe)](_0x3ed4db[_0x2270e0(0x14b)][_0x2270e0(0x103)][_0x2270e0(0xff)](_0x44034d)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3e775d};_0x3e775d&&(_0x530e48[_0x2270e0(0x1a7)]=!0x0),_0x2ac7e7(_0x530e48);}[_0x273c8e(0x148)](_0x50025e,_0x1cb87e=!0x1){const _0x235e03=_0x273c8e;this[_0x235e03(0xe1)][_0x235e03(0x102)](_0x50025e||_0x491991(this[_0x235e03(0x205)][_0x235e03(0x1da)],_0x235e03(0x1d8)),_0x1cb87e);}[_0x273c8e(0x1d9)](_0x3a337b,_0x1a70a2){const _0x23bd7b=_0x273c8e;let _0x5ba0a8;if(_0x1a70a2){_0x5ba0a8=[];const _0x59c9b4=_0x23bd7b(0x227)==typeof _0x1a70a2?[_0x1a70a2[_0x23bd7b(0x100)]()]:_0x1a70a2[_0x23bd7b(0x1ae)](_0x32dcfe=>_0x32dcfe[_0x23bd7b(0x100)]());for(const _0x2fc94a of _0x59c9b4)for(const _0x2d99b0 of _0x3a337b)(_0x2d99b0['id'][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0[_0x23bd7b(0x17e)][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0[_0x23bd7b(0x1b9)][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0['id'][_0x23bd7b(0x100)]()[_0x23bd7b(0x1e1)](_0x2fc94a))&&_0x5ba0a8[_0x23bd7b(0xdf)](_0x2d99b0);}else _0x5ba0a8=_0x3a337b;return _0x5ba0a8;}async[_0x273c8e(0xd8)]({reply:_0x3322e7,changeGroups:_0x5a956d,renderingStrategy:_0x20d5c8}){const _0x124b1f=_0x273c8e,{id:_0x594fc2,isDone:_0x5ea712,type:_0x4ec032,parsedContent:_0x35449e}=_0x3322e7;if(_0x124b1f(0x1d5)===_0x4ec032){const _0x2a9818=_0x31f76c(this[_0x124b1f(0x205)]),_0x5c4602=_0x336ebe({'editor':_0x2a9818,'showDiff':this[_0x124b1f(0xe1)][_0x124b1f(0x153)],'changeGroups':_0x5a956d,'documentContextContent':_0x3322e7[_0x124b1f(0x1c2)]});await this[_0x124b1f(0xe1)][_0x124b1f(0x1e4)]({'id':_0x594fc2,'parts':_0x5c4602,'renderingStrategy':_0x20d5c8,'isDone':_0x5ea712});}else _0x124b1f(0x199)===_0x4ec032&&await this[_0x124b1f(0xe1)][_0x124b1f(0x145)]({'id':_0x594fc2,'parsedContent':_0x35449e,'renderingStrategy':_0x20d5c8,'isDone':_0x5ea712});_0x5ea712&&_0x3322e7[_0x124b1f(0x131)][_0x124b1f(0x181)]>0x0&&this[_0x124b1f(0xe1)][_0x124b1f(0x1a2)](_0x594fc2,_0x3322e7[_0x124b1f(0x131)]);}async[_0x273c8e(0x1d6)](){const _0x2e96fc=_0x273c8e,_0x6422ab=this[_0x2e96fc(0x122)]?.[_0x2e96fc(0x198)];_0x6422ab&&(_0x6422ab[_0x2e96fc(0x203)](),this[_0x2e96fc(0xe1)][_0x2e96fc(0xf7)](_0x6422ab));}async[_0x273c8e(0x123)](){const _0x371213=_0x273c8e,_0x4ff03a=this[_0x371213(0x122)]?.[_0x371213(0x198)];if(_0x4ff03a){for await(const _0x4b373c of _0x4ff03a[_0x371213(0x137)])await this[_0x371213(0xd8)]({'reply':_0x4b373c,'changeGroups':_0x4b373c[_0x371213(0x133)],'renderingStrategy':_0x371213(0x1fb)});}}}
|
|
23
|
+
const _0x45e5cc=_0x2cf0;(function(_0x29a380,_0x4cd4b2){const _0x4e1b81=_0x2cf0,_0x3bdccf=_0x29a380();while(!![]){try{const _0x20a984=parseInt(_0x4e1b81(0x1bf))/0x1+-parseInt(_0x4e1b81(0x220))/0x2*(-parseInt(_0x4e1b81(0x17e))/0x3)+-parseInt(_0x4e1b81(0x254))/0x4+-parseInt(_0x4e1b81(0x1c5))/0x5+parseInt(_0x4e1b81(0x19f))/0x6*(parseInt(_0x4e1b81(0x1d1))/0x7)+parseInt(_0x4e1b81(0x1dc))/0x8+parseInt(_0x4e1b81(0x216))/0x9;if(_0x20a984===_0x4cd4b2)break;else _0x3bdccf['push'](_0x3bdccf['shift']());}catch(_0x3fc9f6){_0x3bdccf['push'](_0x3bdccf['shift']());}}}(_0x344d,0xac185));import{ContextPlugin as _0x3158cb,Editor as _0x3918b3}from'ckeditor5/src/core.js';import{CKEditorError as _0x16faf9,logError as _0x50a61f,scrollViewportToShowTarget as _0x2339dd,uid as _0x2d2414}from'ckeditor5/src/utils.js';import{AIConnector as _0x234755}from'../aicore/aiconnector.js';import{AITabs as _0x2cb794}from'../aitabs/aitabs.js';import{AIChatConversation as _0x28056c}from'./model/aichatconversation.js';import{getTranslation as _0x3dfaa9}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x38ead6}from'../aicore/aiediting.js';import{AIChatModels as _0x47dfa3}from'./model/aichatmodels.js';function _0x2cf0(_0x37b36a,_0x4ac155){const _0x344d49=_0x344d();return _0x2cf0=function(_0x2cf0ab,_0x17a7ec){_0x2cf0ab=_0x2cf0ab-0x177;let _0xb26161=_0x344d49[_0x2cf0ab];return _0xb26161;},_0x2cf0(_0x37b36a,_0x4ac155);}import{getEditorFromContext as _0x3cc6c6}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x151f22,DATA_ID_MODEL_ATTRIBUTE as _0x39eb9b}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x27c536}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x16a2b5,getMinimalSelection as _0x1d20c2,getSuggestionPartsFromReply as _0x1a511c}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x503dc3,_DetachOperation as _0x10e379}from'ckeditor5/src/engine.js';import{findOne as _0x2327f3,getAttribute as _0x2777d2,serialize as _0x30a863,Document as _0x284939,findByAttribute as _0x5885d0}from'../aicore/utils/htmlparser.js';import{IconAI as _0xf4914d}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x2c138a}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x385be5}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x3158cb{[_0x45e5cc(0x204)];[_0x45e5cc(0x2b3)];[_0x45e5cc(0x24f)];[_0x45e5cc(0x1ef)];[_0x45e5cc(0x235)]=new Map();[_0x45e5cc(0x27c)]=null;[_0x45e5cc(0x2ab)]=!0x1;static get[_0x45e5cc(0x1a3)](){return[_0x234755,_0x385be5,_0x151f22];}static get[_0x45e5cc(0x269)](){const _0x4e3a0c=_0x45e5cc;return _0x4e3a0c(0x237);}static get[_0x45e5cc(0x28c)](){return!0x0;}static get[_0x45e5cc(0x1a8)](){return!0x0;}[_0x45e5cc(0x282)](){const _0x153806=_0x45e5cc;this[_0x153806(0x2b3)]=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x2ca)),this[_0x153806(0x24f)]=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x2c9)),this[_0x153806(0x204)]=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x206)),this[_0x153806(0x1ef)]=new _0x47dfa3({'connector':this[_0x153806(0x2b3)]});const _0x23e263=this[_0x153806(0x251)][_0x153806(0x26b)][_0x153806(0x191)](_0x153806(0x1b9));this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x24e),()=>{const _0xe988ec=_0x153806;this[_0xe988ec(0x272)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x22d),(_0x577c6f,_0x200b39)=>{const _0x2eace0=_0x153806;this[_0x2eace0(0x279)]({'userMessage':_0x200b39});}),this[_0x153806(0x262)](_0x23e263,_0x153806(0x2ad),(_0x328681,_0x570167)=>{const _0x50c604=_0x153806;this[_0x50c604(0x209)](_0x570167);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1da),()=>{const _0x3aecd8=_0x153806;_0x23e263[_0x3aecd8(0x222)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1f6),async()=>{const _0x4fc2e0=_0x153806;await this[_0x4fc2e0(0x218)](),await this[_0x4fc2e0(0x21f)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2bc),()=>{const _0x5aabf5=_0x153806;this[_0x5aabf5(0x1fe)]?.[_0x5aabf5(0x2a5)](_0x3dfaa9(this[_0x5aabf5(0x251)][_0x5aabf5(0x23c)],_0x5aabf5(0x29f)));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x23e),(_0xd9d066,_0x48c912)=>{const _0x149efa=_0x153806;this[_0x149efa(0x1fe)]?.[_0x149efa(0x1f5)](Array[_0x149efa(0x1e3)](_0x48c912));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2a8),(_0x5174d5,_0xc8913)=>{const _0x4d2bc2=_0x153806;this[_0x4d2bc2(0x1fe)]?.[_0x4d2bc2(0x2a8)](_0xc8913);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1df),(_0x332678,_0x129e2d)=>{const _0x355777=_0x153806;this[_0x355777(0x1fe)]?.[_0x355777(0x1df)](_0x129e2d[_0x355777(0x184)],_0x129e2d[_0x355777(0x2c7)]);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1a7),(_0x1a1301,_0x5503ee)=>{const _0x39ba09=_0x153806;this[_0x39ba09(0x1d9)](_0x5503ee);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2be),(_0x247303,_0x772b06)=>{const _0x219a18=_0x153806;this[_0x219a18(0x1fe)]?.[_0x219a18(0x2be)](_0x772b06[_0x219a18(0x2a1)],_0x772b06[_0x219a18(0x270)],_0x772b06[_0x219a18(0x19e)]);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x247),()=>{const _0x54a8ab=_0x153806;this[_0x54a8ab(0x1ac)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x295),()=>{const _0x29eca4=_0x153806;this[_0x29eca4(0x1e7)]();}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x248),(_0x866eeb,_0x4b448f)=>{const _0x263ddb=_0x153806;this[_0x263ddb(0x1fe)]?.[_0x263ddb(0x2cc)](_0x4b448f);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x18e),(_0x4a176a,{replyId:_0x5ed2fc})=>{const _0x479f94=_0x153806;console[_0x479f94(0x2b6)](_0x479f94(0x255),_0x5ed2fc);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1a6),(_0x1aa0e7,{replyId:_0x226a29})=>{const _0x29905a=_0x153806;console[_0x29905a(0x2b6)](_0x29905a(0x27b),_0x226a29);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x2a2),(_0x1838a8,_0x398c21)=>{const _0x52b085=_0x153806;this[_0x52b085(0x251)][_0x52b085(0x26b)][_0x52b085(0x191)](_0x385be5)[_0x52b085(0x2b5)](),this[_0x52b085(0x21c)](_0x398c21);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x224),(_0x3b5f46,{replyId:_0x83ac5b,partIndex:_0x5daf05})=>{const _0x255fa8=_0x153806;this[_0x255fa8(0x2ab)]=this[_0x255fa8(0x24f)][_0x255fa8(0x1b1)],this[_0x255fa8(0x17b)](_0x83ac5b,_0x5daf05);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x186),(_0x380b7a,{replyId:_0x2df470,partIndex:_0x3f2c0a})=>{const _0x58cd64=_0x153806,_0x4835d9=this[_0x58cd64(0x1cf)](_0x2df470,_0x3f2c0a);_0x4835d9&&_0x58cd64(0x298)!=_0x4835d9[_0x58cd64(0x2b4)][_0x58cd64(0x2b9)][_0x58cd64(0x2ba)]&&this[_0x58cd64(0x204)][_0x58cd64(0x26e)]([_0x4835d9[_0x58cd64(0x2b4)]],_0x58cd64(0x213));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x252),()=>{const _0x53c388=_0x153806;this[_0x53c388(0x204)][_0x53c388(0x260)](_0x53c388(0x213));}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x27d),(_0x4a4c3c,_0x3b2bdd)=>{const _0x5b0687=_0x153806;this[_0x5b0687(0x251)][_0x5b0687(0x26b)][_0x5b0687(0x191)](_0x385be5)[_0x5b0687(0x2b5)](),this[_0x5b0687(0x296)](_0x3b2bdd);}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x1b7),async(_0x27b229,_0x248dcd)=>{const _0x13f71a=_0x153806,{reply:_0x5366e9}=this[_0x13f71a(0x229)](_0x248dcd[_0x13f71a(0x1ee)]),_0x2f2d3b=_0x3cc6c6(this[_0x13f71a(0x251)]),_0x3b575e=_0x1a511c({'editor':_0x2f2d3b,'changeGroups':_0x5366e9[_0x13f71a(0x1f0)],'documentContextContent':_0x5366e9[_0x13f71a(0x18a)],'showDiff':_0x248dcd[_0x13f71a(0x1b1)]});await this[_0x13f71a(0x24f)][_0x13f71a(0x1b0)]({'id':_0x5366e9['id'],'parts':_0x3b575e,'renderingStrategy':_0x13f71a(0x20f)});}),this[_0x153806(0x262)](this[_0x153806(0x24f)],_0x153806(0x245),(_0x5d7bec,{replyId:_0x2c8095,partIndex:_0x14b468})=>{const _0x55bebd=_0x153806;this[_0x55bebd(0x27c)]?.[_0x55bebd(0x1ee)]==_0x2c8095&&this[_0x55bebd(0x27c)]?.[_0x55bebd(0x2bd)]==_0x14b468&&this[_0x55bebd(0x251)][_0x55bebd(0x26b)][_0x55bebd(0x191)](_0x385be5)[_0x55bebd(0x2b5)]();const {reply:_0x3c2009}=this[_0x55bebd(0x229)](_0x2c8095);_0x3c2009[_0x55bebd(0x1d2)](_0x14b468,_0x55bebd(0x1ae)),this[_0x55bebd(0x204)][_0x55bebd(0x260)](_0x55bebd(0x213));});}async[_0x45e5cc(0x1ab)](){const _0x3b2a44=_0x45e5cc;this[_0x3b2a44(0x251)]instanceof _0x3918b3?this[_0x3b2a44(0x29b)](this[_0x3b2a44(0x251)]):this[_0x3b2a44(0x262)](this[_0x3b2a44(0x251)][_0x3b2a44(0x280)],_0x3b2a44(0x240),(_0x285955,_0x3daca7)=>{const _0x15307f=_0x3b2a44;_0x3daca7['on'](_0x15307f(0x265),()=>{const _0x260eda=_0x15307f;this[_0x260eda(0x29b)](_0x3daca7);});}),await this[_0x3b2a44(0x272)]();}[_0x45e5cc(0x21c)](_0x2aba21){const _0x36cae8=_0x45e5cc,_0x357c6e=_0x3cc6c6(this[_0x36cae8(0x251)]);if(!_0x357c6e[_0x36cae8(0x26b)][_0x36cae8(0x1e0)](_0x36cae8(0x1ba)))return;const _0x5eb2ae=this[_0x36cae8(0x251)][_0x36cae8(0x26b)][_0x36cae8(0x191)](_0x36cae8(0x2b1)),{reply:_0x1fbd23,interaction:_0x2718c}=this[_0x36cae8(0x229)](_0x2aba21[_0x36cae8(0x1ee)]),_0x3a4b4b=this[_0x36cae8(0x1cf)](_0x2aba21[_0x36cae8(0x1ee)],_0x2aba21[_0x36cae8(0x2bd)]),_0x3d4a2f=void 0x0!==_0x2aba21[_0x36cae8(0x2bd)]?[_0x1fbd23[_0x36cae8(0x1f0)][_0x2aba21[_0x36cae8(0x2bd)]]]:_0x1fbd23[_0x36cae8(0x1f0)][_0x36cae8(0x180)](_0x24f729=>_0x36cae8(0x22e)==_0x24f729[_0x36cae8(0x21d)]),_0x6a360f=_0x3d4a2f[_0x36cae8(0x1cc)](_0x26e58c=>_0x1fbd23[_0x36cae8(0x1f0)][_0x36cae8(0x266)](_0x26e58c));_0x6a360f[_0x36cae8(0x211)](_0x45cfad=>_0x1fbd23[_0x36cae8(0x1d2)](_0x45cfad,_0x36cae8(0x1cd)));const _0x10396b=_0x27c536({'editor':_0x357c6e,'reply':_0x1fbd23,'interaction':_0x2718c,'groups':_0x3d4a2f,'transform':!0x0,'documentCompare':_0x5eb2ae,'documentCompareOptions':{'anchor':_0x36cae8(0x196),'markDeletions':!0x0}});let _0x3b2c6b;_0x3a4b4b&&this[_0x36cae8(0x29c)](_0x3a4b4b[_0x36cae8(0x2b4)]),_0x357c6e[_0x36cae8(0x24b)][_0x36cae8(0x287)](_0x33f133=>{const _0x1eca77=_0x36cae8;_0x3b2c6b=_0x33f133[_0x1eca77(0x28f)],_0x357c6e[_0x1eca77(0x26b)][_0x1eca77(0x191)](_0x1eca77(0x1ba))[_0x1eca77(0x217)](_0x10396b),this[_0x1eca77(0x204)][_0x1eca77(0x260)](_0x1eca77(0x213));}),this[_0x36cae8(0x235)][_0x36cae8(0x242)](_0x3b2c6b,{'interactionId':_0x2718c['id'],'replyId':_0x1fbd23['id'],'indexes':_0x6a360f[_0x36cae8(0x257)]()}),this[_0x36cae8(0x2a0)](_0x1fbd23);}[_0x45e5cc(0x296)](_0x404728){const _0x269166=_0x45e5cc,_0x16d349=_0x3cc6c6(this[_0x269166(0x251)]),_0x2019cd=this[_0x269166(0x251)][_0x269166(0x26b)][_0x269166(0x191)](_0x151f22),{reply:_0x4b4c69,interaction:_0x406bf8}=this[_0x269166(0x229)](_0x404728[_0x269166(0x1ee)]),_0x279062=this[_0x269166(0x1cf)](_0x404728[_0x269166(0x1ee)],_0x404728[_0x269166(0x2bd)]),_0x431470=void 0x0!==_0x404728[_0x269166(0x2bd)]?[_0x4b4c69[_0x269166(0x1f0)][_0x404728[_0x269166(0x2bd)]]]:_0x4b4c69[_0x269166(0x1f0)][_0x269166(0x180)](_0x66654e=>_0x269166(0x22e)==_0x66654e[_0x269166(0x21d)]),_0x4abca1=_0x431470[_0x269166(0x1cc)](_0x2a4cf2=>_0x4b4c69[_0x269166(0x1f0)][_0x269166(0x266)](_0x2a4cf2));_0x4abca1[_0x269166(0x211)](_0x3cf057=>_0x4b4c69[_0x269166(0x1d2)](_0x3cf057,_0x269166(0x1cd)));const _0x2e05cd=_0x27c536({'editor':_0x16d349,'reply':_0x4b4c69,'interaction':_0x406bf8,'groups':_0x431470,'transform':!0x0,'documentCompare':_0x2019cd,'documentCompareOptions':{'anchor':_0x269166(0x196),'markDeletions':!0x1}});let _0x589abf;_0x279062&&this[_0x269166(0x29c)](_0x279062[_0x269166(0x2b4)]),_0x16d349[_0x269166(0x24b)][_0x269166(0x287)](_0x4f5118=>{const _0x119970=_0x269166;_0x589abf=_0x4f5118[_0x119970(0x28f)];for(const _0x52fb93 of _0x2e05cd)_0x52fb93[_0x119970(0x2ce)]=_0x16d349[_0x119970(0x24b)][_0x119970(0x29d)][_0x119970(0x24c)],_0x4f5118[_0x119970(0x28f)][_0x119970(0x1ea)](_0x52fb93),_0x16d349[_0x119970(0x24b)][_0x119970(0x1d3)](_0x52fb93);}),this[_0x269166(0x235)][_0x269166(0x242)](_0x589abf,{'interactionId':_0x406bf8['id'],'replyId':_0x4b4c69['id'],'indexes':_0x4abca1[_0x269166(0x257)]()}),this[_0x269166(0x2a0)](_0x4b4c69);}[_0x45e5cc(0x17b)](_0x4b02a2,_0x3437b3){const _0x11ca39=_0x45e5cc,_0x13dc98=_0x3cc6c6(this[_0x11ca39(0x251)]),_0x4eba88=this[_0x11ca39(0x1cf)](_0x4b02a2,_0x3437b3),_0x107b1b=this[_0x11ca39(0x251)][_0x11ca39(0x26b)][_0x11ca39(0x191)](_0x385be5);if(!_0x4eba88)return void _0x107b1b[_0x11ca39(0x2b5)]();const {range:_0x25ba22,currentIndex:_0x48b61a,previousIndex:_0x4fcbc2,nextIndex:_0x110cda}=_0x4eba88;if(this[_0x11ca39(0x27c)]?.[_0x11ca39(0x1ee)]==_0x4b02a2&&this[_0x11ca39(0x27c)]?.[_0x11ca39(0x2bd)]==_0x48b61a)return;this[_0x11ca39(0x27c)]={'replyId':_0x4b02a2,'partIndex':_0x48b61a};const _0x3d72b2=new _0x2c138a(_0x13dc98[_0x11ca39(0x23c)],{'showDiff':this[_0x11ca39(0x2ab)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x11ca39(0x17d)},'hideHeader':!0x0}),{reply:_0x4a793c}=this[_0x11ca39(0x229)](_0x4b02a2),_0xedc03=_0x1a511c({'editor':_0x13dc98,'changeGroups':[_0x4a793c[_0x11ca39(0x1f0)][_0x48b61a]],'documentContextContent':_0x4a793c[_0x11ca39(0x18a)],'showDiff':this[_0x11ca39(0x2ab)]});_0x3d72b2[_0x11ca39(0x183)]({'parts':_0xedc03,'renderingStrategy':_0x11ca39(0x20f)});const _0x3c2a0e=_0x48b61a!==_0x4fcbc2;this[_0x11ca39(0x29c)](_0x25ba22,!0x0),_0x107b1b[_0x11ca39(0x2c2)]({'index':_0x48b61a,'title':_0x3dfaa9(this[_0x11ca39(0x251)][_0x11ca39(0x23c)],_0x11ca39(0x1aa),(_0x48b61a+0x1)[_0x11ca39(0x1d4)]()),'icon':_0xf4914d,'mainView':_0x3d72b2,'showRotator':_0x3c2a0e,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x25ba22]}),this[_0x11ca39(0x24f)][_0x11ca39(0x250)](_0x4b02a2,_0x48b61a),this[_0x11ca39(0x262)](_0x3d72b2,_0x11ca39(0x1b7),(_0x1c038e,{showDiff:_0x473d83})=>{const _0x27110c=_0x11ca39;this[_0x27110c(0x2ab)]=_0x473d83;const {reply:_0x511e4a}=this[_0x27110c(0x229)](_0x4b02a2),_0x20a3e6=_0x1a511c({'editor':_0x13dc98,'changeGroups':[_0x511e4a[_0x27110c(0x1f0)][_0x48b61a]],'documentContextContent':_0x511e4a[_0x27110c(0x18a)],'showDiff':_0x473d83});_0x3d72b2[_0x27110c(0x183)]({'parts':_0x20a3e6,'renderingStrategy':_0x27110c(0x20f)});}),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x27d),()=>{const _0x57e3ba=_0x11ca39;this[_0x57e3ba(0x296)]({'replyId':_0x4b02a2,'partIndex':_0x48b61a}),_0x3c2a0e?this[_0x57e3ba(0x17b)](_0x4b02a2,_0x110cda):_0x107b1b[_0x57e3ba(0x2b5)]();}),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x2a2),()=>{const _0x146db3=_0x11ca39;this[_0x146db3(0x21c)]({'replyId':_0x4b02a2,'partIndex':_0x48b61a}),_0x3c2a0e?this[_0x146db3(0x17b)](_0x4b02a2,_0x110cda):_0x107b1b[_0x146db3(0x2b5)]();}),_0x3c2a0e&&(this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x1bd),()=>{const _0x231b9e=_0x11ca39;this[_0x231b9e(0x17b)](_0x4b02a2,_0x110cda);}),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x239),()=>{const _0x19fe2c=_0x11ca39;this[_0x19fe2c(0x17b)](_0x4b02a2,_0x4fcbc2);})),this[_0x11ca39(0x262)](_0x107b1b,_0x11ca39(0x231),()=>{const _0x4d785e=_0x11ca39;this[_0x4d785e(0x25a)](_0x107b1b),this[_0x4d785e(0x25a)](_0x3d72b2),this[_0x4d785e(0x27c)]=null;});}[_0x45e5cc(0x1cf)](_0x484b98,_0x4e5228){const _0x5f49ab=_0x45e5cc,_0x1cab8e=_0x3cc6c6(this[_0x5f49ab(0x251)]),{reply:_0x5dd20b,interaction:_0x475959}=this[_0x5f49ab(0x229)](_0x484b98),_0x25bb0e=_0x5dd20b[_0x5f49ab(0x1f0)][_0x5f49ab(0x180)](_0x142cad=>_0x5f49ab(0x22e)==_0x142cad[_0x5f49ab(0x21d)]),_0x14389b=_0x25bb0e[_0x5f49ab(0x1cc)](_0x5c1fe8=>_0x5dd20b[_0x5f49ab(0x1f0)][_0x5f49ab(0x266)](_0x5c1fe8));void 0x0===_0x4e5228&&(_0x4e5228=_0x14389b[0x0]);const _0x1e63ac=_0x14389b[_0x5f49ab(0x266)](_0x4e5228);if(-0x1==_0x1e63ac)return null;const _0x3a83c8=0x0==_0x1e63ac?_0x14389b[_0x14389b[_0x5f49ab(0x190)]-0x1]:_0x14389b[_0x1e63ac-0x1],_0x562b87=_0x1e63ac==_0x14389b[_0x5f49ab(0x190)]-0x1?_0x14389b[0x0]:_0x14389b[_0x1e63ac+0x1],_0x3ec794=_0x25bb0e[_0x1e63ac],_0x311da8=new _0x284939([]),_0x478a9d=new _0x284939([]);for(const _0x2b0826 of _0x3ec794[_0x5f49ab(0x26a)])if(_0x5f49ab(0x297)!=_0x2b0826[_0x5f49ab(0x1c9)]&&_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x2b0826[_0x5f49ab(0x18c)][_0x5f49ab(0x17c)](!0x0)),_0x5f49ab(0x286)!=_0x2b0826[_0x5f49ab(0x1c9)]){const _0xccb8fb=_0x2327f3(_0x392936=>_0x2777d2(_0x392936,_0x5f49ab(0x2bb))==_0x2b0826['id'],_0x5dd20b[_0x5f49ab(0x18a)],!0x0);_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0xccb8fb[_0x5f49ab(0x17c)](!0x0));}if(0x0==_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x190)]){if(_0x3ec794[_0x5f49ab(0x26a)][0x0][_0x5f49ab(0x1b4)]){const _0x3e3650=_0x5885d0(_0x5f49ab(0x2bb),_0x3ec794[_0x5f49ab(0x26a)][0x0][_0x5f49ab(0x1b4)],_0x5dd20b[_0x5f49ab(0x18a)]);_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x1af)](_0x3e3650[_0x5f49ab(0x17c)](!0x0)),_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x1af)](_0x3e3650[_0x5f49ab(0x17c)](!0x0)),_0x3e3650[_0x5f49ab(0x228)]&&(_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x3e3650[_0x5f49ab(0x228)][_0x5f49ab(0x17c)](!0x0)),_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x3e3650[_0x5f49ab(0x228)][_0x5f49ab(0x17c)](!0x0)));}else{const _0x4742d1=_0x5dd20b[_0x5f49ab(0x18a)][_0x5f49ab(0x26d)][0x0];if(!_0x4742d1)return null;_0x311da8[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x4742d1[_0x5f49ab(0x17c)](!0x0)),_0x478a9d[_0x5f49ab(0x26d)][_0x5f49ab(0x21a)](_0x4742d1[_0x5f49ab(0x17c)](!0x0));}}const _0x132388=_0x475959[_0x5f49ab(0x1f9)](),_0x26cca2=_0x1cab8e[_0x5f49ab(0x1f2)][_0x5f49ab(0x1f3)](_0x132388[_0x5f49ab(0x28a)]),_0x1d188c=_0x30a863(_0x311da8),_0x402783=_0x1cab8e[_0x5f49ab(0x1f2)][_0x5f49ab(0x1f3)](_0x1d188c),_0x10c314=_0x1cab8e[_0x5f49ab(0x1f2)][_0x5f49ab(0x1f3)](_0x1d188c),_0x20863a=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x2af)](_0x402783,0x0),_0x12b5ce=_0x30a863(_0x478a9d),_0x4da7b4={'anchor':_0x20863a,'markDeletions':!0x1},_0x35f590=_0x1cab8e[_0x5f49ab(0x26b)][_0x5f49ab(0x191)](_0x151f22)[_0x5f49ab(0x193)](_0x1d188c,_0x12b5ce,_0x4da7b4)[_0x5f49ab(0x22f)]();if(!_0x35f590[_0x5f49ab(0x190)])return null;_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x287)](_0x42ff38=>{const _0x454de4=_0x5f49ab;for(const _0x393465 of _0x35f590)if(_0x454de4(0x194)==_0x393465[_0x454de4(0x1c9)]){const _0x2e2f54=_0x393465[_0x454de4(0x25b)],_0x4ab9a6=_0x393465[_0x454de4(0x1d0)],_0x2bb8d6=new _0x10e379(_0x2e2f54,_0x4ab9a6);_0x42ff38[_0x454de4(0x28f)][_0x454de4(0x1ea)](_0x2bb8d6),_0x1cab8e[_0x454de4(0x24b)][_0x454de4(0x1d3)](_0x2bb8d6);}else _0x454de4(0x284)!==_0x393465[_0x454de4(0x1c9)]&&(_0x393465[_0x454de4(0x2ce)]=null,_0x393465[_0x454de4(0x215)]=!0x1,_0x42ff38[_0x454de4(0x28f)][_0x454de4(0x1ea)](_0x393465),_0x1cab8e[_0x454de4(0x24b)][_0x454de4(0x1d3)](_0x393465));});const _0x2ace6e=_0x1d20c2(_0x1cab8e,_0x35f590,_0x402783);_0x16a2b5(_0x1cab8e[_0x5f49ab(0x24b)],_0x2ace6e);const _0x2cdd73=_0x2ace6e[_0x5f49ab(0x273)]()[_0x5f49ab(0x275)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)](),_0x44c0ab=_0x2ace6e[_0x5f49ab(0x273)]()[_0x5f49ab(0x263)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)](),_0x3147e9=[];let _0x135aa8=_0x402783,_0x223870=_0x10c314;for(let _0x586169=0x0;_0x586169<_0x44c0ab[_0x5f49ab(0x190)];_0x586169++){const _0x279d86=_0x135aa8[_0x5f49ab(0x1fa)]-_0x44c0ab[_0x586169];_0x3147e9[_0x586169]=_0x223870[_0x5f49ab(0x1fa)]-_0x279d86,_0x135aa8=_0x135aa8[_0x5f49ab(0x26f)](_0x44c0ab[_0x586169]),_0x223870=_0x223870[_0x5f49ab(0x26f)](_0x3147e9[_0x586169]);}const _0x293432=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x24a)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x10c314,_0x2cdd73),_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x10c314,_0x3147e9)),_0x1cca13=_0x10c314[_0x5f49ab(0x1c0)](0x0)[_0x5f49ab(0x20c)](_0x39eb9b),_0x1d7c76=Array[_0x5f49ab(0x1e3)](_0x26cca2[_0x5f49ab(0x227)]())[_0x5f49ab(0x21e)](_0x158f1a=>_0x158f1a[_0x5f49ab(0x20c)](_0x39eb9b)==_0x1cca13)[_0x5f49ab(0x179)](),_0x3582cd=_0x293432[_0x5f49ab(0x275)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)](),_0x4ef354=_0x293432[_0x5f49ab(0x263)][_0x5f49ab(0x20a)][_0x5f49ab(0x257)]();_0x3582cd[0x0]=_0x1d7c76[0x0]+_0x3582cd[0x0],_0x4ef354[0x0]=_0x1d7c76[0x0]+_0x4ef354[0x0];let _0x1aff40=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x24a)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x29d)][_0x5f49ab(0x285)](),_0x3582cd),_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x28b)](_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x29d)][_0x5f49ab(0x285)](),_0x4ef354));const _0xd4a72f=_0x1cab8e[_0x5f49ab(0x24b)][_0x5f49ab(0x29d)][_0x5f49ab(0x271)][_0x5f49ab(0x22f)](_0x132388[_0x5f49ab(0x24c)]);for(const _0x1c325c of _0xd4a72f)_0x1aff40=_0x503dc3[_0x5f49ab(0x19d)](_0x1aff40[_0x5f49ab(0x19b)](_0x1c325c));return{'range':_0x1aff40,'previousIndex':_0x3a83c8,'nextIndex':_0x562b87,'currentIndex':_0x4e5228};}[_0x45e5cc(0x29b)](_0x27b487){const _0xee507b=_0x45e5cc;if(!_0x27b487[_0xee507b(0x26b)][_0xee507b(0x1e0)](_0xee507b(0x29e)))return;const _0x2645a2=_0x27b487[_0xee507b(0x2ac)][_0xee507b(0x191)](_0xee507b(0x22b)),_0x5ad454=_0x27b487[_0xee507b(0x2ac)][_0xee507b(0x191)](_0xee507b(0x283));this[_0xee507b(0x262)](_0x2645a2,_0xee507b(0x1ad),(_0x536b78,_0x3eadbe,_0x1fb493)=>{const _0x35049b=_0xee507b,_0x3c3867=this[_0x35049b(0x235)][_0x35049b(0x191)](_0x3eadbe);if(!_0x3c3867)return;const _0x42505f=this[_0x35049b(0x1fe)][_0x35049b(0x1e2)](_0x3c3867[_0x35049b(0x2a3)])[_0x35049b(0x18d)](_0x3c3867[_0x35049b(0x1ee)]);_0x3c3867[_0x35049b(0x299)][_0x35049b(0x211)](_0xb7422a=>_0x42505f[_0x35049b(0x1d2)](_0xb7422a,_0x35049b(0x22e))),this[_0x35049b(0x235)][_0x35049b(0x181)](_0x3eadbe),this[_0x35049b(0x235)][_0x35049b(0x242)](_0x1fb493,_0x3c3867);}),this[_0xee507b(0x262)](_0x5ad454,_0xee507b(0x1ad),(_0x4662fc,_0x3d56c3,_0x2595f2)=>{const _0x3f6c1f=_0xee507b,_0x48abdf=this[_0x3f6c1f(0x235)][_0x3f6c1f(0x191)](_0x3d56c3);if(!_0x48abdf)return;const _0x755339=this[_0x3f6c1f(0x1fe)][_0x3f6c1f(0x1e2)](_0x48abdf[_0x3f6c1f(0x2a3)])[_0x3f6c1f(0x18d)](_0x48abdf[_0x3f6c1f(0x1ee)]);_0x48abdf[_0x3f6c1f(0x299)][_0x3f6c1f(0x211)](_0x710b59=>_0x755339[_0x3f6c1f(0x1d2)](_0x710b59,_0x3f6c1f(0x1cd))),this[_0x3f6c1f(0x235)][_0x3f6c1f(0x181)](_0x3d56c3),this[_0x3f6c1f(0x235)][_0x3f6c1f(0x242)](_0x2595f2,_0x48abdf);});}async[_0x45e5cc(0x1ed)](_0x477c2e){const _0x429978=_0x45e5cc;this[_0x429978(0x251)][_0x429978(0x26b)][_0x429978(0x191)](_0x385be5)[_0x429978(0x2b5)](),this[_0x429978(0x24f)][_0x429978(0x187)](_0x429978(0x20f)),this[_0x429978(0x24f)][_0x429978(0x2b7)](!0x0),await this[_0x429978(0x218)]();try{const _0x2ea007=this[_0x429978(0x251)][_0x429978(0x26b)][_0x429978(0x191)](_0x2cb794);this[_0x429978(0x25f)]('\x20'),_0x2ea007[_0x429978(0x2b8)][_0x429978(0x195)](_0x429978(0x2cd)),await this[_0x429978(0x272)](_0x477c2e);const {sessionId:_0x442979}=this[_0x429978(0x204)][_0x429978(0x277)]();await this[_0x429978(0x1fe)][_0x429978(0x1c2)](_0x477c2e,_0x442979),this[_0x429978(0x1fe)][_0x429978(0x2a7)]()&&this[_0x429978(0x1fe)][_0x429978(0x2a5)](_0x3dfaa9(this[_0x429978(0x251)][_0x429978(0x23c)],_0x429978(0x29f)));}catch(_0xd1e228){console[_0x429978(0x1ce)](_0x429978(0x29a),_0xd1e228);}finally{this[_0x429978(0x24f)][_0x429978(0x187)](_0x429978(0x192)),this[_0x429978(0x24f)][_0x429978(0x2b7)](!0x1);}}[_0x45e5cc(0x28e)](_0x3624d0){const _0x3c50b1=_0x45e5cc;this[_0x3c50b1(0x1fe)]['id']===_0x3624d0&&this[_0x3c50b1(0x272)]();}async[_0x45e5cc(0x1b2)](){const _0x2ee722=_0x45e5cc,_0x1fa18b=this[_0x2ee722(0x204)][_0x2ee722(0x268)]();this[_0x2ee722(0x1fe)]?.[_0x2ee722(0x1f1)](_0x1fa18b),this[_0x2ee722(0x1fe)]?.[_0x2ee722(0x2a5)](_0x3dfaa9(this[_0x2ee722(0x251)][_0x2ee722(0x23c)],_0x2ee722(0x29f)));}[_0x45e5cc(0x208)](){const _0x1fb5f2=_0x45e5cc;this[_0x1fb5f2(0x1fe)]?.[_0x1fb5f2(0x2ae)]();}[_0x45e5cc(0x261)](){const _0x1c0438=_0x45e5cc;this[_0x1c0438(0x24f)][_0x1c0438(0x261)]();}async[_0x45e5cc(0x24e)](){const _0x5b8c6d=_0x45e5cc;await this[_0x5b8c6d(0x272)]();}async[_0x45e5cc(0x20b)]({message:_0x43ec18,quickActionData:_0x180f86}){const _0x4dbd48=_0x45e5cc;await this[_0x4dbd48(0x279)]({'userMessage':_0x43ec18,'quickActionData':_0x180f86});}[_0x45e5cc(0x214)](){const _0x53254b=_0x45e5cc,_0x5acb75=this[_0x53254b(0x251)][_0x53254b(0x293)][_0x53254b(0x191)](_0x53254b(0x198));if(!_0x5acb75)throw new _0x16faf9(_0x53254b(0x17a),this);return _0x5acb75;}async[_0x45e5cc(0x272)](_0x928679){const _0x58a981=_0x45e5cc;try{this[_0x58a981(0x24f)][_0x58a981(0x2a9)](),await this[_0x58a981(0x1dd)](_0x928679);}catch(_0x20a9c0){_0x50a61f(_0x58a981(0x1a5),_0x20a9c0),this[_0x58a981(0x1fe)]=void 0x0,this[_0x58a981(0x24f)][_0x58a981(0x1e1)]();}}async[_0x45e5cc(0x1dd)](_0x1d9c04){const _0x139c2a=_0x45e5cc,_0x2ad8bd=this[_0x139c2a(0x251)][_0x139c2a(0x26b)][_0x139c2a(0x191)](_0x385be5);let _0x5c75b4;_0x2ad8bd[_0x139c2a(0x292)]&&_0x2ad8bd[_0x139c2a(0x2b5)](),_0x5c75b4=_0x1d9c04||!this[_0x139c2a(0x1fe)]?this[_0x139c2a(0x251)][_0x139c2a(0x293)][_0x139c2a(0x191)](_0x139c2a(0x2a6)):this[_0x139c2a(0x1fe)][_0x139c2a(0x207)]['id'],await this[_0x139c2a(0x218)]();const _0x31c609=this[_0x139c2a(0x214)](),_0x271752=_0x1d9c04||_0x2d2414();this[_0x139c2a(0x1fe)]=new _0x28056c({'connector':this[_0x139c2a(0x2b3)],'chatModels':this[_0x139c2a(0x1ef)],'defaultModelId':_0x5c75b4,'conversationId':_0x271752,'group':_0x31c609,'getEditor':()=>_0x3cc6c6(this[_0x139c2a(0x251)])}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x210),(_0x495a9e,_0x3eb520)=>{const _0x1fad67=_0x139c2a;_0x3eb520[_0x1fad67(0x1a2)]=this[_0x1fad67(0x234)](_0x3eb520[_0x1fad67(0x1a2)],this[_0x1fad67(0x251)][_0x1fad67(0x293)][_0x1fad67(0x191)](_0x1fad67(0x1cb))),this[_0x1fad67(0x24f)][_0x1fad67(0x21b)](_0x3eb520),this[_0x1fad67(0x24f)][_0x1fad67(0x1a4)](),this[_0x1fad67(0x24f)][_0x1fad67(0x219)](),this[_0x1fad67(0x24f)][_0x1fad67(0x22c)](),_0x1d9c04||(this[_0x1fad67(0x24f)][_0x1fad67(0x256)](),this[_0x1fad67(0x1fe)]?.[_0x1fad67(0x2a5)](_0x3dfaa9(this[_0x1fad67(0x251)][_0x1fad67(0x23c)],_0x1fad67(0x29f))));}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x205),(_0x14514f,_0x2ac49e)=>{const _0x144b06=_0x139c2a;this[_0x144b06(0x24f)][_0x144b06(0x1f4)](_0x2ac49e[_0x144b06(0x289)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2cb),(_0x231c50,_0x16eb05)=>{const _0x2b68a4=_0x139c2a;this[_0x2b68a4(0x24f)][_0x2b68a4(0x202)](_0x16eb05);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x28d),()=>{const _0x2842b1=_0x139c2a;this[_0x2842b1(0x24f)][_0x2842b1(0x1b3)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2c0),()=>{const _0xa89a6b=_0x139c2a;this[_0xa89a6b(0x24f)][_0xa89a6b(0x1b3)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x25c),(_0x5af0cd,_0x43bc3f)=>{const _0x2c8321=_0x139c2a;this[_0x2c8321(0x24f)][_0x2c8321(0x1d6)](_0x43bc3f,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x291),(_0xee4183,_0x402002)=>{const _0x5d4419=_0x139c2a;this[_0x5d4419(0x24f)][_0x5d4419(0x1d6)](_0x402002,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2cf),()=>{const _0x46e120=_0x139c2a;this[_0x46e120(0x24f)][_0x46e120(0x27e)]();}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1a0),async()=>{const _0x4cd462=_0x139c2a;await this[_0x4cd462(0x24f)][_0x4cd462(0x221)]();}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x225),(_0x2c0657,_0x2a1a52)=>{const _0x5b727c=_0x139c2a;this[_0x5b727c(0x24f)][_0x5b727c(0x243)](_0x2a1a52['id']);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1bc),(_0x4ed305,_0x25d785,_0x27fa35)=>{const _0x33b0da=_0x139c2a;this[_0x33b0da(0x25f)](_0x25d785,_0x27fa35);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x223),(_0x27e5fd,_0xb298ed)=>{const _0x5aa101=_0x139c2a;_0x5aa101(0x259)===_0xb298ed[_0x5aa101(0x1c9)]?this[_0x5aa101(0x24f)][_0x5aa101(0x23a)](_0xb298ed):this[_0x5aa101(0x24f)][_0x5aa101(0x200)](_0xb298ed);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x182),async(_0x2aea7d,_0x3f6a41,_0x351cbd)=>{const _0x32c6ac=_0x139c2a;await this[_0x32c6ac(0x1e8)]({'reply':_0x3f6a41,'changeGroups':_0x351cbd});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2b2),(_0x4424fb,{reply:_0x5efe25,index:_0x176c32,state:_0x2c767c})=>{const _0x5d92a1=_0x139c2a;this[_0x5d92a1(0x24f)][_0x5d92a1(0x294)]({'id':_0x5efe25['id'],'index':_0x176c32,'state':_0x2c767c});}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x2c5),(_0x52d171,_0x4a9368)=>{const _0x56c1fd=_0x139c2a;if(this[_0x56c1fd(0x24f)][_0x56c1fd(0x1ff)](_0x4a9368[_0x56c1fd(0x203)],_0x4a9368[_0x56c1fd(0x23f)]),_0x56c1fd(0x1b5)===_0x4a9368[_0x56c1fd(0x203)][_0x56c1fd(0x1c9)]){const _0xa6185c=[..._0x3cc6c6(this[_0x56c1fd(0x251)])[_0x56c1fd(0x24b)][_0x56c1fd(0x29d)][_0x56c1fd(0x1b5)][_0x56c1fd(0x27f)]()];this[_0x56c1fd(0x204)][_0x56c1fd(0x26e)](_0xa6185c,_0x56c1fd(0x233)+this[_0x56c1fd(0x1fe)]?.['id']);}}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x177),(_0x31acd7,_0x2e3152)=>{const _0x3fefa0=_0x139c2a;this[_0x3fefa0(0x24f)][_0x3fefa0(0x1a7)](_0x2e3152[_0x3fefa0(0x1fc)]),_0x3fefa0(0x1e4)==_0x2e3152[_0x3fefa0(0x1fc)]&&this[_0x3fefa0(0x208)](),_0x3fefa0(0x1b5)===_0x2e3152[_0x3fefa0(0x1c9)]&&this[_0x3fefa0(0x204)][_0x3fefa0(0x260)](_0x3fefa0(0x233)+this[_0x3fefa0(0x1fe)]?.['id']);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x17f),(_0x66f75a,_0x30621c)=>{const _0xbcce4=_0x139c2a;this[_0xbcce4(0x24f)][_0xbcce4(0x264)](_0x30621c[_0xbcce4(0x203)][_0xbcce4(0x1fc)],_0x30621c[_0xbcce4(0x23f)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1b6),(_0x31b958,_0x7ddbab)=>{const _0x40f854=_0x139c2a;this[_0x40f854(0x24f)][_0x40f854(0x2c6)](_0x7ddbab[_0x40f854(0x249)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x20e),(_0xc85c7,_0xe573c9)=>{const _0x4ee86c=_0x139c2a;this[_0x4ee86c(0x24f)][_0x4ee86c(0x1b8)](_0xe573c9[_0x4ee86c(0x267)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x230),(_0x5824d3,_0x3abcb0)=>{const _0x5b015a=_0x139c2a;this[_0x5b015a(0x24f)][_0x5b015a(0x1fb)](_0x3abcb0[_0x5b015a(0x2a1)],_0x3abcb0[_0x5b015a(0x184)],_0x3abcb0[_0x5b015a(0x1c1)],_0x3abcb0[_0x5b015a(0x19e)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x274),(_0x34e8b0,_0x5af76b)=>{const _0xc15e45=_0x139c2a;this[_0xc15e45(0x24f)][_0xc15e45(0x1eb)](_0x5af76b[_0xc15e45(0x2a1)],_0x5af76b[_0xc15e45(0x253)],_0x5af76b[_0xc15e45(0x290)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1d8),(_0x33d22f,_0x5f4847)=>{const _0x3fa006=_0x139c2a;this[_0x3fa006(0x24f)][_0x3fa006(0x288)](_0x5f4847);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1bb),(_0x46f589,_0x635b3b)=>{const _0x1d4921=_0x139c2a;this[_0x1d4921(0x24f)][_0x1d4921(0x281)](_0x635b3b[_0x1d4921(0x207)],_0x635b3b[_0x1d4921(0x27a)]);}),this[_0x139c2a(0x1fe)]['on'](_0x139c2a(0x1ce),(_0x302208,{error:_0x58fd8d,interactionId:_0x588da6,fileName:_0x2715fa,url:_0x139a24,sourceId:_0x8254b8,sourceLabel:_0xdfc5ca})=>{const _0x111b0a=_0x139c2a,_0x56a629=_0x588da6?_0x588da6+':'+_0x2d2414():_0x2d2414();_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x25e))?this[_0x111b0a(0x24f)][_0x111b0a(0x26c)]({'staticMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x236)),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1ec))||_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1a5))?(this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x178)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d)):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1f7))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x2b0),_0x2715fa),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x1d7))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x19c),_0x139a24),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x2c8))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x1fd)),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x20d))?this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x1c3)),'id':_0x56a629}):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x23d))?(_0x8254b8&&this[_0x111b0a(0x24f)][_0x111b0a(0x1c8)](_0x8254b8),this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x188),_0xdfc5ca||_0x111b0a(0x184)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d)):_0x58fd8d[_0x111b0a(0x189)][_0x111b0a(0x2bf)](_0x111b0a(0x232))?(this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x2c1)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d)):(this[_0x111b0a(0x24f)][_0x111b0a(0x25d)]({'errorMessage':_0x3dfaa9(this[_0x111b0a(0x251)][_0x111b0a(0x23c)],_0x111b0a(0x201)),'id':_0x56a629}),this[_0x111b0a(0x1d5)](_0x58fd8d));}),await this[_0x139c2a(0x1fe)][_0x139c2a(0x282)](this[_0x139c2a(0x251)][_0x139c2a(0x293)][_0x139c2a(0x191)](_0x139c2a(0x1be))),_0x1d9c04||await this[_0x139c2a(0x1fe)][_0x139c2a(0x275)]();}async[_0x45e5cc(0x279)]({userMessage:_0x4dd081,quickActionData:_0x3d425d}){const _0x493238=_0x45e5cc;if(!this[_0x493238(0x1fe)])throw new _0x16faf9(_0x493238(0x238));this[_0x493238(0x1fe)][_0x493238(0x185)]()&&await this[_0x493238(0x1fe)][_0x493238(0x1c4)](this[_0x493238(0x204)][_0x493238(0x277)]()),this[_0x493238(0x1fe)]['id']&&this[_0x493238(0x1fe)][_0x493238(0x197)]&&await this[_0x493238(0x1fe)][_0x493238(0x2d0)]({'userMessage':_0x4dd081,'quickActionData':_0x3d425d}),this[_0x493238(0x1e5)]();}[_0x45e5cc(0x1e5)](){const _0x385360=_0x45e5cc,_0x24d1ca=_0x3cc6c6(this[_0x385360(0x251)])[_0x385360(0x24b)],_0x831f7e=Array[_0x385360(0x1e3)](_0x24d1ca[_0x385360(0x1a1)][_0x385360(0x1ca)](_0x38ead6));_0x24d1ca[_0x385360(0x287)](_0x5de4a6=>{const _0x2a1899=_0x385360;_0x831f7e[_0x2a1899(0x211)](_0x154c81=>_0x5de4a6[_0x2a1899(0x24d)](_0x154c81));});}[_0x45e5cc(0x18b)](){const _0x28942e=_0x45e5cc;console[_0x28942e(0x2b6)](_0x28942e(0x18f));}[_0x45e5cc(0x209)](_0x5e9321){const _0x16d385=_0x45e5cc;this[_0x16d385(0x24f)][_0x16d385(0x1e9)](_0x5e9321);}[_0x45e5cc(0x1d5)](_0x109714){const _0x3444c9=_0x45e5cc;_0x50a61f(_0x109714[_0x3444c9(0x189)]);}[_0x45e5cc(0x1d9)](_0x30c5d8){const _0x270c0b=_0x45e5cc;this[_0x270c0b(0x1fe)]?.[_0x270c0b(0x2c4)](_0x30c5d8);}[_0x45e5cc(0x1ac)](){const _0x33ab6f=_0x45e5cc;this[_0x33ab6f(0x1fe)]?.[_0x33ab6f(0x247)]();}[_0x45e5cc(0x1e7)](){const _0xd4d44f=_0x45e5cc;this[_0xd4d44f(0x1fe)]?.[_0xd4d44f(0x295)]();}[_0x45e5cc(0x229)](_0x47023e){const _0x451e4c=_0x45e5cc,[_0x392c7a,_0x486bfd]=_0x47023e[_0x451e4c(0x1f8)](':'),_0x38cb6a=this[_0x451e4c(0x1fe)][_0x451e4c(0x1e2)](_0x392c7a),_0x30d756=_0x38cb6a[_0x451e4c(0x18d)](_0x486bfd);return{'interaction':_0x38cb6a,'reply':_0x30d756};}[_0x45e5cc(0x29c)](_0x26b2e1,_0x1bc453=!0x1){const _0x31a0b6=_0x45e5cc,_0x31fa02=_0x3cc6c6(this[_0x31a0b6(0x251)]),_0x357f44={'target':_0x31fa02[_0x31a0b6(0x258)][_0x31a0b6(0x2b8)][_0x31a0b6(0x2aa)][_0x31a0b6(0x1c6)](_0x31fa02[_0x31a0b6(0x258)][_0x31a0b6(0x246)][_0x31a0b6(0x1c7)](_0x26b2e1)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x1bc453};_0x1bc453&&(_0x357f44[_0x31a0b6(0x226)]=!0x0),_0x2339dd(_0x357f44);}[_0x45e5cc(0x25f)](_0x789f93,_0x3696b8=!0x1){const _0x28816e=_0x45e5cc;this[_0x28816e(0x24f)][_0x28816e(0x1bc)](_0x789f93||_0x3dfaa9(this[_0x28816e(0x251)][_0x28816e(0x23c)],_0x28816e(0x23b)),_0x3696b8);}[_0x45e5cc(0x234)](_0x46ea30,_0x81f92f){const _0x210630=_0x45e5cc;let _0xd9ab61;if(_0x81f92f){_0xd9ab61=[];const _0x3456b0=_0x210630(0x199)==typeof _0x81f92f?[_0x81f92f[_0x210630(0x1de)]()]:_0x81f92f[_0x210630(0x1cc)](_0x1002ad=>_0x1002ad[_0x210630(0x1de)]());for(const _0x18fa78 of _0x3456b0)for(const _0x49cc4b of _0x46ea30)(_0x49cc4b['id'][_0x210630(0x1de)]()===_0x18fa78||_0x49cc4b[_0x210630(0x1db)][_0x210630(0x1de)]()===_0x18fa78||_0x49cc4b[_0x210630(0x1e6)][_0x210630(0x1de)]()===_0x18fa78||_0x49cc4b['id'][_0x210630(0x1de)]()[_0x210630(0x2bf)](_0x18fa78))&&_0xd9ab61[_0x210630(0x21a)](_0x49cc4b);}else _0xd9ab61=_0x46ea30;return _0xd9ab61;}async[_0x45e5cc(0x1e8)]({reply:_0x5601ef,changeGroups:_0x570ec4,renderingStrategy:_0x311f77}){const _0x27d549=_0x45e5cc,{id:_0x43b641,isDone:_0x4d67d6,type:_0x1662ad,parsedContent:_0x5cca3b}=_0x5601ef;if(_0x27d549(0x278)===_0x1662ad){const _0x4329db=_0x3cc6c6(this[_0x27d549(0x251)]),_0x51229a=_0x1a511c({'editor':_0x4329db,'showDiff':this[_0x27d549(0x24f)][_0x27d549(0x1b1)],'changeGroups':_0x570ec4,'documentContextContent':_0x5601ef[_0x27d549(0x18a)]});await this[_0x27d549(0x24f)][_0x27d549(0x1b0)]({'id':_0x43b641,'parts':_0x51229a,'renderingStrategy':_0x311f77,'isDone':_0x4d67d6});}else _0x27d549(0x259)===_0x1662ad&&await this[_0x27d549(0x24f)][_0x27d549(0x276)]({'id':_0x43b641,'parsedContent':_0x5cca3b,'renderingStrategy':_0x311f77,'isDone':_0x4d67d6});_0x4d67d6&&_0x5601ef[_0x27d549(0x1a9)][_0x27d549(0x190)]>0x0&&this[_0x27d549(0x24f)][_0x27d549(0x244)](_0x43b641,_0x5601ef[_0x27d549(0x1a9)]);}async[_0x45e5cc(0x218)](){const _0x4a14fd=_0x45e5cc,_0x15ff42=this[_0x4a14fd(0x1fe)]?.[_0x4a14fd(0x241)];_0x15ff42&&(_0x15ff42[_0x4a14fd(0x2a4)](),this[_0x4a14fd(0x24f)][_0x4a14fd(0x212)](_0x15ff42));}async[_0x45e5cc(0x21f)](){const _0x49967d=_0x45e5cc,_0x425ad8=this[_0x49967d(0x1fe)]?.[_0x49967d(0x241)];if(_0x425ad8){for await(const _0x1162ac of _0x425ad8[_0x49967d(0x22a)])await this[_0x49967d(0x1e8)]({'reply':_0x1162ac,'changeGroups':_0x1162ac[_0x49967d(0x1f0)],'renderingStrategy':_0x49967d(0x20f)});}}[_0x45e5cc(0x2a0)](_0x3702f3){const _0x284f5b=_0x45e5cc,_0x15acd9={'positiveCount':_0x3702f3[_0x284f5b(0x1f0)][_0x284f5b(0x180)](_0x265013=>_0x284f5b(0x1cd)===_0x265013[_0x284f5b(0x21d)])[_0x284f5b(0x190)],'totalCount':_0x3702f3[_0x284f5b(0x1f0)][_0x284f5b(0x190)]},_0x3e8cf5=this[_0x284f5b(0x1fe)][_0x284f5b(0x1e2)](_0x3702f3[_0x284f5b(0x2a3)])[_0x284f5b(0x19a)];this[_0x284f5b(0x2b3)][_0x284f5b(0x2c3)](this[_0x284f5b(0x1fe)]['id'],_0x3e8cf5,_0x15acd9);}}function _0x344d(){const _0x56b3d7=['revert','rejected','unshift','updateFeedItemAIReplySuggestionContent','showDiff','addSelectionToChatContext','setLoadingMessage','anchorId','selection','contextSent','toggleSuggestionDisplayMode','setAddContextOptions','AITabs','TrackChangesEditing','modelSelected','setConversationTitle','showNext','ai.chat.context','705185qINtpG','getChild','resources','load','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','updateCurrentDocumentInContext','6086830ScpyLU','viewRangeToDom','toViewRange','closeSourceResourceBalloon','type','getMarkersGroup','ai.chat.models.displayedModels','map','accepted','error','_getDocumentRangeForReplyChanges','howMany','14zfkUrr','setChangeGroupState','applyOperation','toString','_logError','addFeedInteractionHeader','ai-chat-url-upload-failed','capabilitiesUpdated','_removeFromContext','resizeTabs','name','4515080cMYofq','_handleStartConversation','toLocaleLowerCase','addResourceToContext','has','disableControls','getInteraction','from','current-document','_removeAISelectionMarkers','provider','_toggleReasoning','_updateReplyContent','setIsMaximized','addOperation','updateResourceState','ai-chat-conversation-init-failed','loadConversation','replyId','_aiChatModels','changeGroups','addSelectionToContext','data','parse','setIsUploadInProgress','addFilesToContext','abortPromptStream','ai-chat-file-upload-failed','split','getDocumentContext','maxOffset','populateSourceResourceBalloon','uiId','AI_CHAT_CONTEXT_INVALID_DATA','activeConversation','addContextItem','addFeedItemAISuggestion','AI_CHAT_GENERIC_ERROR','addFeedItemUserMessage','contextItem','_aiEditing','uploadProgressChanged','AIEditing','selectedModel','removeSelectionFromChatContext','_setIsMaximized','path','sendMessage','getAttribute','ai-chat-context-unsupported-type','addContextOptionsChanged','static','conversationInitialized','forEach','stopInteraction','ai-chat-controller-mouse-over','getGroupId','isDocumentOperation','7268319SwPxBW','_applyOperationsAsSuggestions','_stopLastInteraction','clearPendingContextUI','push','createConversation','_insertSuggestion','state','find','_flushLastInteractionUI','2GTMDLg','finishInteraction','resize','replyCreated','showChangeInText','interactionDestroyed','alignToTop','getChildren','nextSibling','getInteractionAndReplyById','replies','undo','clearConversationContextUI','sendUserMessage','pending','getOperations','sourceResourcesLoaded','dialogClosed','ai-chat-resource-load-failed','ai-conversation-','_filterModels','_batchToChanges','AI_CHAT_ABORTED_MESSAGE','AIChatController','ai-chat-controller-no-active-conversation','showPrevious','addFeedItemAIReply','AI_CHAT_UNTITLED_CONVERSATION','locale','ai-chat-source-resources-load-failed','addFileToContext','isLoading','add','lastInteraction','set','removeFeedInteraction','updateFeedItemAIReplySources','rejectSuggestion','mapper','toggleWebSearch','selectModel','contextItems','createRange','model','version','removeMarker','startConversation','_aiChatUi','scrollFeedToSuggestion','context','mouseLeaveSuggestion','resourceId','4922260tfQjNR','Liked\x20response','resetConversationTitle','slice','editing','text-delta','stopListening','sourcePosition','webSearchFinished','addFeedItemError','ai-request-aborted','updateConversationTitle','hideFakeVisualSelection','focusPromptInput','listenTo','end','setContextItemLoading','ready','indexOf','options','getSelectionText','pluginName','changes','plugins','addFeedItemStaticMessage','children','showFakeVisualSelection','getChildAtOffset','query','history','_startConversationSafely','getFirstRange','resourceStateChanged','start','updateFeedItemAIReplyContent','getDocumentData','modification-delta','_handleUIUserMessage','isDisabled','Disliked\x20response','_previewedChangeGroup','applySuggestion','startInteraction','getRanges','editors','setSelectedModel','init','redo','marker','getRoot','new','change','updateCapabilities','isUploadInProgress','content','createPositionFromPath','isOfficialPlugin','webSearchStarted','handleRemovedConversation','batch','isInContext','reasoningFinished','isOpen','config','updateFeedItemAIReplySuggestionPartState','toggleReasoning','_applySuggestion','removed','$graveyard','indexes','Failed\x20to\x20load\x20conversation','_integrateEditor','_scrollToSuggestionRange','document','Undo','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_updateRatings','sourceId','insertSuggestion','interactionId','stop','addCurrentDocumentToContext','ai.chat.models.defaultModelId','isCurrentDocumentInConversation','addUrlToContext','enableControls','domConverter','_balloonShowDiff','commands','resizedTabs','removeSelectionFromContext','createPositionAt','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','DocumentCompare','replyChangeGroupStateUpdated','_aiConnector','range','close','log','toggleLoadingSkeleton','view','root','rootName','data-id','addDocumentToContext','partIndex','loadSourceResources','startsWith','reasoningStarted','AI_CHAT_RESOURCE_LOAD_FAILED','open','upsertAIChatRating','removeFromContext','contextItemAdded','setConversationContext','resource','ai-chat-context-invalid-data','AIChatUI','AIConnector','interactionCreated','setModel','chat','baseVersion','interactionStarted','handleUserInteraction','contextItemRemoved','AI_CHAT_UNABLE_TO_START_CONVERSATION','getPath','ai-chat-missing-channel-id','_openBalloonFor','cloneNode','full','2264523XUAYDv','contextItemLoadingEnded','filter','delete','replyContentUpdated','updateContent','source','isCurrentDocumentInContext','mouseOverSuggestion','setFeedItemRenderingStrategy','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','message','documentContextContent','_showConversationHistory','node','getReply','like','Showing\x20conversation\x20history...','length','get','streaming','getDiff','remove','activateTab','main','isStarted','collaboration.channelId','string','messageId','getTransformedByOperation','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_createFromRanges','uid','962490eJMCgU','interactionFinished','markers','availableModels','requires','resetMessageInput','ai-chat-conversation-start-failed','dislike','removeContextItem','isPremiumPlugin','sources','AI_BALLOON_HEADER_TITLE','afterInit','_toggleWebSearch'];_0x344d=function(){return _0x56b3d7;};return _0x344d();}
|
package/src/aichat/aichatui.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module ai/aichat/aichatui
|
|
7
|
-
* @publicApi
|
|
8
7
|
*/
|
|
9
8
|
import { type Context, type Editor, ContextPlugin } from 'ckeditor5/src/core.js';
|
|
10
9
|
import { AITabs } from '../aitabs/aitabs.js';
|
|
@@ -82,7 +81,7 @@ export declare class AIChatUI extends ContextPlugin {
|
|
|
82
81
|
/**
|
|
83
82
|
* Adds an interaction header to the chat feed.
|
|
84
83
|
*/
|
|
85
|
-
addFeedInteractionHeader(interaction: AIChatInteraction): void;
|
|
84
|
+
addFeedInteractionHeader(interaction: AIChatInteraction, capabilities: AICapabilitiesConfig): void;
|
|
86
85
|
/**
|
|
87
86
|
* Updates the visibility of the interaction header in the chat feed.
|
|
88
87
|
*/
|
|
@@ -121,7 +120,7 @@ export declare class AIChatUI extends ContextPlugin {
|
|
|
121
120
|
/**
|
|
122
121
|
* Starts a new interaction processing in the UI and marks the UI as busy.
|
|
123
122
|
*/
|
|
124
|
-
startInteraction(
|
|
123
|
+
startInteraction(): void;
|
|
125
124
|
/**
|
|
126
125
|
* Handles the user stopping the interaction. It terminates all scheduled UI update promises and unlocks the UI
|
|
127
126
|
* immediately.
|
|
@@ -201,6 +200,11 @@ export declare class AIChatUI extends ContextPlugin {
|
|
|
201
200
|
* @param shouldAnimate Whether the title change should be animated. Defaults to `false`.
|
|
202
201
|
*/
|
|
203
202
|
setConversationTitle(title: string, shouldAnimate?: boolean): void;
|
|
203
|
+
/**
|
|
204
|
+
* Sets the loading message of the chat feed based on the passed model capabilities. If `null` is passed,
|
|
205
|
+
* the loading message is cleared.
|
|
206
|
+
*/
|
|
207
|
+
setLoadingMessage(capabilities: AICapabilitiesConfig | null): void;
|
|
204
208
|
setIsMaximized(isMaximized: boolean): void;
|
|
205
209
|
/**
|
|
206
210
|
* Populates a source resource balloon with loaded resources.
|