@ckeditor/ckeditor5-ai 47.0.0-alpha.7 → 47.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +93 -5
- package/dist/index.css +118 -5
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +0 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +0 -30
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +47 -9
- package/src/aicore/aiconnector.d.ts +2 -3
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -0
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -2
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aitrackchanges.css +13 -0
package/lang/translations/zh.po
CHANGED
|
@@ -834,3 +834,225 @@ msgstr "抱歉,無法正確產生完整的校閱內容。請稍後再試一次
|
|
|
834
834
|
msgctxt "The message displayed when an error occurs while processing a chunk of content in the AI review mode."
|
|
835
835
|
msgid "AI_REVIEW_MODE_CHUNK_ERROR_MESSAGE"
|
|
836
836
|
msgstr "並非所有內容均已處理完畢,已完成的項目如下所列。"
|
|
837
|
+
|
|
838
|
+
msgctxt "The title of the AI review mode functionality."
|
|
839
|
+
msgid "AI_REVIEW_MODE"
|
|
840
|
+
msgstr "校閱模式"
|
|
841
|
+
|
|
842
|
+
msgctxt "The description of the AGENT-1 model."
|
|
843
|
+
msgid "AI_MODEL_DESCRIPTION_AGENT-1"
|
|
844
|
+
msgstr "自動選取兼顧速度、品質及成本效益的最佳模型"
|
|
845
|
+
|
|
846
|
+
msgctxt "The description of the GPT-5 model."
|
|
847
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-5"
|
|
848
|
+
msgstr "OpenAI 的旗艦模型,適用於進階推理、創意發想及複雜任務"
|
|
849
|
+
|
|
850
|
+
msgctxt "The description of the GPT-5-Mini model."
|
|
851
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-5-MINI"
|
|
852
|
+
msgstr "GPT-5 的輕量版,可提供更快速且更具成本效益的回應"
|
|
853
|
+
|
|
854
|
+
msgctxt "The description of the GPT-4.1 model."
|
|
855
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-4.1"
|
|
856
|
+
msgstr "OpenAI 的模型,具備可靠推理、速度及多樣用途"
|
|
857
|
+
|
|
858
|
+
msgctxt "The description of the GPT-4.1-Mini model."
|
|
859
|
+
msgid "AI_MODEL_DESCRIPTION_GPT-4.1-MINI"
|
|
860
|
+
msgstr "GPT-4.1 的輕量版,可同時維持牢靠的準確度並兼顧速度與成本"
|
|
861
|
+
|
|
862
|
+
msgctxt "The description of the Claude-3-5-Haiku model."
|
|
863
|
+
msgid "AI_MODEL_DESCRIPTION_CLAUDE-3-5-HAIKU"
|
|
864
|
+
msgstr "Anthropic 快速且具成本效益的模型,適用於較簡單的任務"
|
|
865
|
+
|
|
866
|
+
msgctxt "The description of the Claude-4-Sonnet model."
|
|
867
|
+
msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-SONNET"
|
|
868
|
+
msgstr "具備強大推理能力與可靠度的進階模型,適用於複雜任務"
|
|
869
|
+
|
|
870
|
+
msgctxt "The description of the Gemini-2-5-Pro model."
|
|
871
|
+
msgid "AI_MODEL_DESCRIPTION_GEMINI-2-5-PRO"
|
|
872
|
+
msgstr "Google 的進階模型,能靈活解決問題並執行研究"
|
|
873
|
+
|
|
874
|
+
msgctxt "The description of the Gemini-2-5-Flash model."
|
|
875
|
+
msgid "AI_MODEL_DESCRIPTION_GEMINI-2-5-FLASH"
|
|
876
|
+
msgstr "輕量版 Gemini 模型,可提供快速且具成本效益的互動體驗"
|
|
877
|
+
|
|
878
|
+
msgctxt "The title for a custom AI review check."
|
|
879
|
+
msgid "AI_REVIEW_CHECK_CUSTOM_TITLE"
|
|
880
|
+
msgstr "自訂命令"
|
|
881
|
+
|
|
882
|
+
msgctxt "The description of what a custom AI review check does."
|
|
883
|
+
msgid "AI_REVIEW_CHECK_CUSTOM_DESCRIPTION"
|
|
884
|
+
msgstr "輸入自訂命令,確切依照您的需求校閱內容。"
|
|
885
|
+
|
|
886
|
+
msgctxt "The title for the correctness AI review check."
|
|
887
|
+
msgid "AI_REVIEW_CHECK_CORRECTNESS_TITLE"
|
|
888
|
+
msgstr "正確度"
|
|
889
|
+
|
|
890
|
+
msgctxt "The description of what the correctness AI review check does."
|
|
891
|
+
msgid "AI_REVIEW_CHECK_CORRECTNESS_DESCRIPTION"
|
|
892
|
+
msgstr "確保文字內容屬實且沒有錯誤。"
|
|
893
|
+
|
|
894
|
+
msgctxt "The title for the clarity AI review check."
|
|
895
|
+
msgid "AI_REVIEW_CHECK_CLARITY_TITLE"
|
|
896
|
+
msgstr "清晰度"
|
|
897
|
+
|
|
898
|
+
msgctxt "The description of what the clarity AI review check does."
|
|
899
|
+
msgid "AI_REVIEW_CHECK_CLARITY_DESCRIPTION"
|
|
900
|
+
msgstr "提高文字內容的清晰度與可讀性。"
|
|
901
|
+
|
|
902
|
+
msgctxt "The title for the readability AI review check."
|
|
903
|
+
msgid "AI_REVIEW_CHECK_READABILITY_TITLE"
|
|
904
|
+
msgstr "可讀性"
|
|
905
|
+
|
|
906
|
+
msgctxt "The description of what the readability AI review check does."
|
|
907
|
+
msgid "AI_REVIEW_CHECK_READABILITY_DESCRIPTION"
|
|
908
|
+
msgstr "增進文字內容的整體可讀性。"
|
|
909
|
+
|
|
910
|
+
msgctxt "The title for the make length adjustment AI review check."
|
|
911
|
+
msgid "AI_REVIEW_CHECK_MAKE_TITLE"
|
|
912
|
+
msgstr "調整長度"
|
|
913
|
+
|
|
914
|
+
msgctxt "The description of what the make length adjustment AI review check does."
|
|
915
|
+
msgid "AI_REVIEW_CHECK_MAKE_DESCRIPTION"
|
|
916
|
+
msgstr "將文字長度調整成符合需求的篇幅。"
|
|
917
|
+
|
|
918
|
+
msgctxt "The label for the make length adjustment options dropdown button."
|
|
919
|
+
msgid "AI_REVIEW_CHECK_MAKE_OPTIONS_LABEL"
|
|
920
|
+
msgstr "調整長度"
|
|
921
|
+
|
|
922
|
+
msgctxt "The label for the make length adjustment option to make the content longer."
|
|
923
|
+
msgid "AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_LONGER"
|
|
924
|
+
msgstr "長一些"
|
|
925
|
+
|
|
926
|
+
msgctxt "The label for the make length adjustment option to make the content shorter."
|
|
927
|
+
msgid "AI_REVIEW_CHECK_MAKE_OPTIONS_DATA_SHORTER"
|
|
928
|
+
msgstr "短一些"
|
|
929
|
+
|
|
930
|
+
msgctxt "The title for the make tone adjustment AI review check."
|
|
931
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_TITLE"
|
|
932
|
+
msgstr "調整語氣與風格"
|
|
933
|
+
|
|
934
|
+
msgctxt "The description of what the make tone adjustment AI review check does."
|
|
935
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_DESCRIPTION"
|
|
936
|
+
msgstr "依需求選擇語氣與風格來改寫內容。"
|
|
937
|
+
|
|
938
|
+
msgctxt "The label for the make tone adjustment options dropdown button."
|
|
939
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_LABEL"
|
|
940
|
+
msgstr "調整語氣與風格"
|
|
941
|
+
|
|
942
|
+
msgctxt "The label for the make tone adjustment option to make the content more casual."
|
|
943
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CASUAL"
|
|
944
|
+
msgstr "非正式"
|
|
945
|
+
|
|
946
|
+
msgctxt "The label for the make tone adjustment option to make the content more direct."
|
|
947
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_DIRECT"
|
|
948
|
+
msgstr "直接"
|
|
949
|
+
|
|
950
|
+
msgctxt "The label for the make tone adjustment option to make the content more friendly."
|
|
951
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_FRIENDLY"
|
|
952
|
+
msgstr "友善"
|
|
953
|
+
|
|
954
|
+
msgctxt "The label for the make tone adjustment option to make the content more confident."
|
|
955
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_CONFIDENT"
|
|
956
|
+
msgstr "自信"
|
|
957
|
+
|
|
958
|
+
msgctxt "The label for the make tone adjustment option to make the content more professional."
|
|
959
|
+
msgid "AI_REVIEW_CHECK_MAKE_TONE_OPTIONS_DATA_PROFESSIONAL"
|
|
960
|
+
msgstr "專業"
|
|
961
|
+
|
|
962
|
+
msgctxt "The title for the translate AI review check."
|
|
963
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_TITLE"
|
|
964
|
+
msgstr "翻譯"
|
|
965
|
+
|
|
966
|
+
msgctxt "The description of what the translate AI review check does."
|
|
967
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_DESCRIPTION"
|
|
968
|
+
msgstr "將文字翻譯為其他語言。"
|
|
969
|
+
|
|
970
|
+
msgctxt "The label for the translate options dropdown button."
|
|
971
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_LABEL"
|
|
972
|
+
msgstr "選取語言"
|
|
973
|
+
|
|
974
|
+
msgctxt "The label for the translate option to English."
|
|
975
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ENGLISH"
|
|
976
|
+
msgstr "英文"
|
|
977
|
+
|
|
978
|
+
msgctxt "The label for the translate option to Spanish."
|
|
979
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_SPANISH"
|
|
980
|
+
msgstr "西班牙文"
|
|
981
|
+
|
|
982
|
+
msgctxt "The label for the translate option to French."
|
|
983
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_FRENCH"
|
|
984
|
+
msgstr "法文"
|
|
985
|
+
|
|
986
|
+
msgctxt "The label for the translate option to German."
|
|
987
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_GERMAN"
|
|
988
|
+
msgstr "德文"
|
|
989
|
+
|
|
990
|
+
msgctxt "The label for the translate option to Chinese."
|
|
991
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_CHINESE"
|
|
992
|
+
msgstr "中文(簡體)"
|
|
993
|
+
|
|
994
|
+
msgctxt "The label for the translate option to Japanese."
|
|
995
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_JAPANESE"
|
|
996
|
+
msgstr "日文"
|
|
997
|
+
|
|
998
|
+
msgctxt "The label for the translate option to Russian."
|
|
999
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_RUSSIAN"
|
|
1000
|
+
msgstr "俄文"
|
|
1001
|
+
|
|
1002
|
+
msgctxt "The label for the translate option to Portuguese."
|
|
1003
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_PORTUGUESE"
|
|
1004
|
+
msgstr "葡萄牙文"
|
|
1005
|
+
|
|
1006
|
+
msgctxt "The label for the translate option to Korean."
|
|
1007
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_KOREAN"
|
|
1008
|
+
msgstr "韓文"
|
|
1009
|
+
|
|
1010
|
+
msgctxt "The label for the translate option to Italian."
|
|
1011
|
+
msgid "AI_REVIEW_CHECK_TRANSLATE_OPTIONS_DATA_ITALIAN"
|
|
1012
|
+
msgstr "義大利文"
|
|
1013
|
+
|
|
1014
|
+
msgctxt "Tooltip of the button that shows the changes in the suggestion in the AI chat feed."
|
|
1015
|
+
msgid "AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP"
|
|
1016
|
+
msgid_plural "Show changes in the document"
|
|
1017
|
+
msgstr[0] ""
|
|
1018
|
+
|
|
1019
|
+
msgctxt "Tooltip of the button that inserts the suggestions in the AI chat feed."
|
|
1020
|
+
msgid "AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP"
|
|
1021
|
+
msgid_plural "Insert changes as suggestions"
|
|
1022
|
+
msgstr[0] ""
|
|
1023
|
+
|
|
1024
|
+
msgctxt "The label of the header displayed in the AI chat sources panel."
|
|
1025
|
+
msgid "AI_CHAT_SOURCES_HEADER"
|
|
1026
|
+
msgstr ""
|
|
1027
|
+
|
|
1028
|
+
msgctxt "The label of the toolbar button that toggles the AI chat panel."
|
|
1029
|
+
msgid "AI_TOGGLE_BUTTON_LABEL"
|
|
1030
|
+
msgstr ""
|
|
1031
|
+
|
|
1032
|
+
msgctxt "Label for the AI quick action to translate content to Spanish."
|
|
1033
|
+
msgid "AI_QUICK_ACTIONS_TRANSLATE_SPANISH"
|
|
1034
|
+
msgstr ""
|
|
1035
|
+
|
|
1036
|
+
msgctxt "Label for the AI quick action to translate content to German."
|
|
1037
|
+
msgid "AI_QUICK_ACTIONS_TRANSLATE_GERMAN"
|
|
1038
|
+
msgstr ""
|
|
1039
|
+
|
|
1040
|
+
msgctxt "The message displayed when the AI actions encounters a generic error."
|
|
1041
|
+
msgid "AI_ACTIONS_GENERIC_ERROR"
|
|
1042
|
+
msgstr ""
|
|
1043
|
+
|
|
1044
|
+
msgctxt "The title of the header displayed in the AI balloon."
|
|
1045
|
+
msgid "AI_BALLOON_HEADER_TITLE"
|
|
1046
|
+
msgstr ""
|
|
1047
|
+
|
|
1048
|
+
msgctxt "The tooltip for the button that navigates to the previous AI interaction in the AI actions balloon."
|
|
1049
|
+
msgid "AI_ACTIONS_PREVIOUS_INTERACTION"
|
|
1050
|
+
msgstr ""
|
|
1051
|
+
|
|
1052
|
+
msgctxt "The tooltip for the button that navigates to the next AI interaction in the AI actions balloon."
|
|
1053
|
+
msgid "AI_ACTIONS_NEXT_INTERACTION"
|
|
1054
|
+
msgstr ""
|
|
1055
|
+
|
|
1056
|
+
msgctxt "Text displayed when there were no changes suggested at all to review in the AI review mode."
|
|
1057
|
+
msgid "AI_REVIEW_MODE_EMPTY_RESULTS_TEXT"
|
|
1058
|
+
msgstr ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.0.0-alpha.
|
|
3
|
+
"version": "47.0.0-alpha.9",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-bedrock-runtime": "3.823.0",
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "47.0.0-alpha.
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.0.0-alpha.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.0.0-alpha.
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.0.0-alpha.
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.0.0-alpha.
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.0.0-alpha.
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.0.0-alpha.
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.
|
|
44
|
-
"ckeditor5": "47.0.0-alpha.
|
|
45
|
-
"ckeditor5-collaboration": "47.0.0-alpha.
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.0.0-alpha.9",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.0.0-alpha.9",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.0.0-alpha.9",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.0.0-alpha.9",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.0.0-alpha.9",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.0.0-alpha.9",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.0.0-alpha.9",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.0.0-alpha.9",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.0.0-alpha.9",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.0.0-alpha.9",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.0.0-alpha.9",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.0.0-alpha.9",
|
|
44
|
+
"ckeditor5": "47.0.0-alpha.9",
|
|
45
|
+
"ckeditor5-collaboration": "47.0.0-alpha.9",
|
|
46
46
|
"es-toolkit": "1.39.5",
|
|
47
47
|
"eventsource-parser": "3.0.2",
|
|
48
48
|
"htmlparser2": "10.0.0",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1af132=_0x4f02;(function(_0x348ca6,_0x240794){const _0x1f9d8d=_0x4f02,_0x2015b5=_0x348ca6();while(!![]){try{const _0x3085ed=parseInt(_0x1f9d8d(0x20d))/0x1+parseInt(_0x1f9d8d(0x216))/0x2*(parseInt(_0x1f9d8d(0x1f6))/0x3)+-parseInt(_0x1f9d8d(0x1ff))/0x4+parseInt(_0x1f9d8d(0x1dc))/0x5+-parseInt(_0x1f9d8d(0x1e7))/0x6*(-parseInt(_0x1f9d8d(0x20c))/0x7)+-parseInt(_0x1f9d8d(0x1c4))/0x8+-parseInt(_0x1f9d8d(0x298))/0x9*(-parseInt(_0x1f9d8d(0x29a))/0xa);if(_0x3085ed===_0x240794)break;else _0x2015b5['push'](_0x2015b5['shift']());}catch(_0x177989){_0x2015b5['push'](_0x2015b5['shift']());}}}(_0x3aa1,0x1e86a));import{Plugin as _0x5cc163}from'ckeditor5/src/core.js';import{AIConnector as _0x4aae16}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x287f92}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5267bb,ButtonView as _0x5662e1,ViewCollection as _0x374145,View as _0x3bc492}from'ckeditor5/src/ui.js';import{AIEditing as _0x568e5e}from'../aicore/aiediting.js';function _0x4f02(_0x2fea8c,_0x56c3f0){const _0x3aa14a=_0x3aa1();return _0x4f02=function(_0x4f02b5,_0x25313f){_0x4f02b5=_0x4f02b5-0x1c4;let _0x4515d6=_0x3aa14a[_0x4f02b5];return _0x4515d6;},_0x4f02(_0x2fea8c,_0x56c3f0);}import{AIActionsInteraction as _0x9a9da9}from'./model/aiactionsinteraction.js';import{first as _0x190261}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3e88a1,IconRefresh as _0x53a4ee,IconNextArrow as _0x4e495d,IconPreviousArrow as _0x206cb7,IconShowChangesOff as _0x773fc8}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x38f40a}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x278283}from'../aichat/utils/promisequeue.js';function _0x3aa1(){const _0x2678ca=['setChangeGroupState','_isNavigationPreviousButtonInView','_setErrorState','message','signal','replyContentUpdated','start','getAncestors','add','_interactionParams','createPositionAfter','63920rLaJUh','isBusy','locale','changeGroups','upsertAIActionRating','push','root','rootName','_wrapWithCommonAncestors','enqueue','replies','43470vgDpoD','bind','requires','applyOperation','hideError','getChildAtOffset','_setLoadingState','AIActions','replyChangeGroupStateUpdated','getSelectedTableCells','ck-ai-custom-action-button','textContent','stopListening','_currentInteractionIndex','split','120639LxviXg','operationsA','history','_navigationPreviousButton','_isNavigationNextButtonInView','plugins','areChangesVisible','state','element','990952tFqqmR','version','AI_ACTIONS_GENERIC_ERROR','createPositionBefore','_interaction','getOperations','_clearLoadingState','indexOf','_customViews','ck-ai-navigation-button\x20ck-ai-next-button','rejected','_getExecuteDataInTable','_aiConnector','28zvsmki','181840TjZqyl','modelToViewWithIds','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','catch','_displayInteractionAtIndex','_appendChild','isOfficialPlugin','aiBalloon','replyCreated','4PobKXn','TrackChangesEditing','Error\x20updating\x20content\x20in\x20replyContentUpdated:','baseVersion','filter','_stopInteraction','ai-request-aborted','_balloonShowDiff','_refreshInteraction','mainView','hideLoader','executeAction','removeNavigationItem','TableSelection','documentContextContent','insert','addNavigationItem','getRoot','setTemplate','listenTo','toData','document','_clearInteractionHistory','hasPendingParts','getDocumentContext','stickiness','showError','1/1','_navigateToNext','ck-ai-interaction-counter','type','end','showLoader','includes','bodyView','isPremiumPlugin','_clone','getSelectedContent','_navigationNextButton','first','_applyOperationsAsSuggestions','createPositionAt','$graveyard','AI_ACTIONS_TRY_AGAIN','data','createRange','static','schema','_navigationCounter','queueEmptyPromise','ck-ai-navigation-button\x20ck-ai-previous-button','dialogClosed','span','interactionFinished','path','nextSibling','random','startsWith','abort','documentFragment','_createInteraction','clearErrorState','stopInteraction','_updateNavigationUI','getSelectedBlocks','model','getLimitElement','change','howMany','execute','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','has','toggleSuggestionDisplayMode','balloonView','editor','_isNavigationCounterInView','streaming','rename','_anchorOperation','merge','position','addOperation','focus','AIConnector','getSelectionAsFragment','get','setErrorState','processor','_isAbortError','_execute','actionCallId','_executeAction','error','isEnabled','length','_clearErrorState','accepted','isCollapsed','_children','upsertCustomAIActionRating','_applyChanges','_filterOperationsOutsideRange','icon','move','selection','toolbar','getFirstRange','_setupCustomViews','Error\x20refreshing\x20interaction:','actionName','isLoading','hasError','pending','AI_ACTIONS_NEXT_INTERACTION','showChangesButton','_interactions','open','slice','stop','range','AI_ACTIONS_PREVIOUS_INTERACTION','parent','setSelection','updateContent','close','_clearSuggestionContent','map','clone','_getExecuteDataRegular','setLoading','45yykZFP','_navigateToPrevious','569030HskWPR','isDocumentOperation','applySuggestion','pluginName','nodeAfter','set','AIBalloon','miniToolbarView','Error\x20updating\x20content\x20in\x20replyCreated:','1726184iqUtUh','getChild','Error\x20updating\x20content\x20during\x20navigation:','clearLoading','_promiseQueue','getRanges','reinsert','insertSuggestion','remove','sourcePosition','Attribute','getCommonAncestor','batch'];_0x3aa1=function(){return _0x2678ca;};return _0x3aa1();}import{getTranslation as _0xf1606d}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x147bf7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x28fcc4}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2ab13d}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1ba277,ModelRange as _0x2a52d5,ModelPosition as _0x2037d6,_DetachOperation as _0x3b804e,transformOperationSets as _0x1fc536}from'ckeditor5/src/engine.js';export class AIActions extends _0x5cc163{static get[_0x1af132(0x1e9)](){return[_0x4aae16,_0x5267bb,_0x568e5e,_0x38f40a,_0x28fcc4];}static get[_0x1af132(0x29d)](){const _0x4df7ed=_0x1af132;return _0x4df7ed(0x1ee);}static get[_0x1af132(0x213)](){return!0x0;}static get[_0x1af132(0x239)](){return!0x0;}[_0x1af132(0x20b)];[_0x1af132(0x289)]=[];[_0x1af132(0x1f4)]=0x0;[_0x1af132(0x1da)];[_0x1af132(0x21d)]=!0x1;[_0x1af132(0x207)]=new _0x374145();[_0x1af132(0x1f9)];[_0x1af132(0x246)];[_0x1af132(0x261)]=!0x1;[_0x1af132(0x23c)];[_0x1af132(0x1d2)]=!0x1;[_0x1af132(0x1fa)]=!0x1;[_0x1af132(0x1c8)];get[_0x1af132(0x203)](){const _0x90baf8=_0x1af132;return this[_0x90baf8(0x289)][this[_0x90baf8(0x289)][_0x90baf8(0x274)]-0x1];}constructor(_0x2052db){const _0x931280=_0x1af132;super(_0x2052db),this[_0x931280(0x20b)]=this[_0x931280(0x260)][_0x931280(0x1fb)][_0x931280(0x26b)](_0x931280(0x269)),this[_0x931280(0x29f)](_0x931280(0x1dd),!0x1),this[_0x931280(0x1c8)]=new _0x278283(),this[_0x931280(0x281)]();}[_0x1af132(0x254)](){const _0x407e07=_0x1af132;this[_0x407e07(0x21b)]();}async[_0x1af132(0x221)](_0x1c44f0,_0x1e1d78,_0x3f0301){const _0x1a3b83=_0x1af132;if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x25d)](_0x1a3b83(0x223))){if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x26b)](_0x1a3b83(0x223))[_0x1a3b83(0x1f0)]()){const {modelFragment:_0x4df8dc,anchorData:_0x5802fb}=this[_0x1a3b83(0x20a)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x4df8dc,_0x5802fb,_0x1e1d78,_0x3f0301);}}const {modelFragment:_0x36cd37,anchorData:_0x1e2340}=this[_0x1a3b83(0x296)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x36cd37,_0x1e2340,_0x1e1d78,_0x3f0301);}[_0x1af132(0x296)](){const _0xc50550=_0x1af132,_0x3e6298=this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x22b)][_0xc50550(0x27e)];if(_0x3e6298[_0xc50550(0x277)]){const _0x15e473=_0x190261(_0x3e6298[_0xc50550(0x256)]())||this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x245)][_0xc50550(0x258)](_0x3e6298);this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x259)](_0xa986f3=>{const _0x36b703=_0xc50550;_0xa986f3[_0x36b703(0x290)](_0x15e473,'in');});}const _0x436096=_0x3e6298[_0xc50550(0x280)](),_0x4d76d6=this[_0xc50550(0x1e4)](this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x23b)](_0x3e6298),_0x436096[_0xc50550(0x1d7)],_0x436096[_0xc50550(0x235)]),_0x11d0c7=_0x3e6298[_0xc50550(0x280)]()[_0xc50550(0x1d7)],_0x32685c=new Map();let _0x493e11=_0x4d76d6;for(let _0x1247c0=0x0;_0x1247c0<_0x11d0c7[_0xc50550(0x24c)][_0xc50550(0x274)];_0x1247c0++)_0x32685c[_0xc50550(0x29f)](_0x493e11,_0x11d0c7[_0xc50550(0x24c)][_0x1247c0]),_0x493e11=_0x493e11[_0xc50550(0x1c5)](0x0);return{'modelFragment':_0x4d76d6,'anchorData':_0x32685c};}[_0x1af132(0x20a)](){const _0x138de7=_0x1af132,_0x1f2f8d=this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x22b)][_0x138de7(0x27e)],_0x2b3aaa=this[_0x138de7(0x260)][_0x138de7(0x1fb)][_0x138de7(0x26b)](_0x138de7(0x223))[_0x138de7(0x26a)](),_0x11e223=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)][_0x138de7(0x28f)][_0x138de7(0x28f)],_0x355dff=this[_0x138de7(0x1e4)](_0x2b3aaa,this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x202)](_0x11e223),this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x1db)](_0x11e223)),_0x3a82e4=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)],_0x306236=new Map();let _0x4a93f1=_0x355dff;for(let _0x55ef62=0x0;_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)];_0x55ef62++)if(_0x306236[_0x138de7(0x29f)](_0x4a93f1,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)]-0x1)_0x4a93f1=_0x4a93f1[_0x138de7(0x1c5)](0x0);else{let _0x235888=_0x4a93f1[_0x138de7(0x24d)];for(;_0x235888;)_0x306236[_0x138de7(0x29f)](_0x235888,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x235888=_0x235888[_0x138de7(0x24d)];}return{'modelFragment':_0x355dff,'anchorData':_0x306236};}[_0x1af132(0x271)](_0x44196a,_0x3c7345,_0x4d99c5,_0x2e9684,_0x5725e6){const _0x4e0b25=_0x1af132,_0x3494e8=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x568e5e),_0x294f6d=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x38f40a),_0x4b9ccb=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x27e)],_0x566d03=_0x3494e8[_0x4e0b25(0x20e)](_0x3c7345),_0x235e56=this[_0x4e0b25(0x260)][_0x4e0b25(0x242)][_0x4e0b25(0x26d)][_0x4e0b25(0x22a)](_0x566d03),_0x13a0d1=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x200)],_0x5a99ee=[..._0x4b9ccb[_0x4e0b25(0x1c9)]()],_0x39bbfb=new _0x287f92(this[_0x4e0b25(0x260)][_0x4e0b25(0x1de)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4e0b25(0x27c),'customView':this[_0x4e0b25(0x207)]},'showUnchangedParts':!0x0});return _0x294f6d[_0x4e0b25(0x28a)]({'index':0x3e8*Math[_0x4e0b25(0x24e)]()%0x3e8,'title':_0x2e9684,'icon':_0x5725e6||_0x3e88a1,'mainView':_0x39bbfb,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x5a99ee}),this[_0x4e0b25(0x1ed)](_0x39bbfb,_0x294f6d),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x29c),()=>{const _0x3ee564=_0x4e0b25;this[_0x3ee564(0x27a)](_0x3c7345,_0x4d99c5,!0x1);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x1cb),()=>{const _0xb0e58f=_0x4e0b25;this[_0xb0e58f(0x27a)](_0x3c7345,_0x4d99c5,!0x0);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x249),()=>{const _0x2a7622=_0x4e0b25;if(this[_0x2a7622(0x203)]&&this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]>0x0){const _0x768791=this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]-0x1],_0x1d04b5=_0x768791[_0x2a7622(0x1df)][0x0];_0x1d04b5&&_0x2a7622(0x286)===_0x1d04b5[_0x2a7622(0x1fd)]&&_0x768791[_0x2a7622(0x1d1)](0x0,_0x2a7622(0x209));}this[_0x2a7622(0x21b)](),this[_0x2a7622(0x22c)](),this[_0x2a7622(0x1f3)](_0x294f6d);}),this[_0x4e0b25(0x252)](_0x235e56,_0x13a0d1,_0x39bbfb,_0x294f6d,_0x44196a);}[_0x1af132(0x1e4)](_0x3c8d02,_0x5d487a,_0x2d01b4){const _0x112912=_0x1af132,_0x395dd4=this[_0x112912(0x260)][_0x112912(0x257)][_0x112912(0x243)](_0x5d487a,_0x2d01b4)[_0x112912(0x1cf)](),_0x2b86f7=_0x395dd4['is'](_0x112912(0x251))?[]:_0x395dd4[_0x112912(0x1d8)]({'includeSelf':!0x0})[_0x112912(0x28b)](0x1);if(_0x2b86f7[_0x112912(0x274)]){const _0x3497ed=_0x2b86f7[_0x112912(0x294)](_0x55bff1=>_0x55bff1[_0x112912(0x23a)](!0x1));for(let _0x89e550=0x1;_0x89e550<_0x3497ed[_0x112912(0x274)];_0x89e550++)_0x3497ed[_0x89e550-0x1][_0x112912(0x212)](_0x3497ed[_0x89e550]);return _0x3497ed[_0x3497ed[_0x112912(0x274)]-0x1][_0x112912(0x212)](_0x3c8d02),new _0x1ba277(_0x3497ed[0x0]);}return _0x3c8d02;}async[_0x1af132(0x252)](_0x27caa5,_0x1c8a66,_0x37de99,_0x409931,_0x3cfdb7){const _0x4ffa70=_0x1af132,_0x39543b=this[_0x4ffa70(0x260)];this[_0x4ffa70(0x1da)]={'action':_0x3cfdb7,'content':_0x27caa5,'version':_0x1c8a66,'mainView':_0x37de99,'aiBalloon':_0x409931};const _0xd84d2e=new _0x9a9da9({'connector':this[_0x4ffa70(0x20b)],'editor':_0x39543b,'content':_0x27caa5,'version':_0x1c8a66,..._0x3cfdb7});this[_0x4ffa70(0x289)][_0x4ffa70(0x1e1)](_0xd84d2e),_0x37de99[_0x4ffa70(0x1eb)]();const _0x14896a=(_0x4e5be3,_0x1fa288,_0x2b5fdf=!0x1,_0x521fbf=_0x4ffa70(0x262))=>this[_0x4ffa70(0x1c8)][_0x4ffa70(0x1e5)](async _0x55d2ba=>{const _0x1537a9=_0x4ffa70;try{const _0xaeb580=_0x147bf7({'editor':_0x39543b,'changeGroups':_0x4e5be3[_0x1537a9(0x1df)],'documentContextContent':_0x4e5be3[_0x1537a9(0x224)],'showDiff':_0x2b5fdf,'trimUnchanged':!0x1});await _0x1fa288[_0x1537a9(0x291)]({'parts':_0xaeb580,'renderingStrategy':_0x521fbf,'abortSignal':_0x55d2ba});}catch(_0x57e583){if(this[_0x1537a9(0x26e)](_0x57e583))return;throw _0x57e583;}});this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x215),(_0x2b74bd,_0x2aa712)=>{const _0x47ed64=_0x4ffa70;_0x37de99[_0x47ed64(0x220)](),_0x14896a(_0x2aa712,_0x37de99)[_0x47ed64(0x210)](_0x4bf7c0=>{const _0x19efa5=_0x47ed64;this[_0x19efa5(0x26e)](_0x4bf7c0)||(console[_0x19efa5(0x272)](_0x19efa5(0x2a2),_0x4bf7c0),this[_0x19efa5(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1d6),(_0x1287b3,_0x216e56)=>{const _0x1ad1f8=_0x4ffa70;_0x14896a(_0x216e56,_0x37de99)[_0x1ad1f8(0x210)](_0xe6770e=>{const _0xcacaff=_0x1ad1f8;this[_0xcacaff(0x26e)](_0xe6770e)||(console[_0xcacaff(0x272)](_0xcacaff(0x218),_0xe6770e),this[_0xcacaff(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x24b),async()=>{const _0x258235=_0x4ffa70;try{await this[_0x258235(0x205)](_0x37de99,_0x409931),this[_0x258235(0x255)]();}catch(_0x2c5ac3){this[_0x258235(0x26e)](_0x2c5ac3)||(console[_0x258235(0x272)](_0x258235(0x20f),_0x2c5ac3),this[_0x258235(0x1d3)](_0xd84d2e,_0x37de99));}}),this[_0x4ffa70(0x229)](_0x37de99,_0x4ffa70(0x25e),(_0x20e69f,{showDiff:_0xfa4a18})=>{const _0xb692b1=_0x4ffa70;this[_0xb692b1(0x21d)]=_0xfa4a18;const _0x1b7e50=this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][_0xb692b1(0x274)]-0x1];_0x1b7e50&&_0x14896a(_0x1b7e50,_0x37de99,_0xfa4a18,_0xb692b1(0x244))[_0xb692b1(0x210)](_0x844768=>{const _0x20afce=_0xb692b1;this[_0x20afce(0x26e)](_0x844768)||(console[_0x20afce(0x272)](_0x20afce(0x25c),_0x844768),this[_0x20afce(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1ef),(_0x517a43,{reply:_0x3463c4})=>{const _0x877976=_0x4ffa70,_0x2f21f3={'positiveCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x21a)](_0x5b028d=>_0x877976(0x276)===_0x5b028d[_0x877976(0x1fd)])[_0x877976(0x274)],'totalCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x274)]},_0x5a824a=this[_0x877976(0x203)][_0x877976(0x270)],_0x113576=this[_0x877976(0x203)][_0x877976(0x283)];_0x113576?this[_0x877976(0x20b)][_0x877976(0x1e0)](_0x113576,_0x5a824a,_0x2f21f3):this[_0x877976(0x20b)][_0x877976(0x279)](_0x5a824a,_0x2f21f3);}),this[_0x4ffa70(0x1ed)](_0x37de99,_0x409931);try{const _0x5cc343=await this[_0x4ffa70(0x203)][_0x4ffa70(0x1d7)]();return this[_0x4ffa70(0x255)](),_0x5cc343;}catch(_0x522591){if(this[_0x4ffa70(0x26e)](_0x522591))return;_0x37de99[_0x4ffa70(0x220)](),this[_0x4ffa70(0x1d3)](_0xd84d2e,_0x37de99);}}[_0x1af132(0x27a)](_0x29f91c,_0x1f6857,_0x514823){const _0x30e46b=_0x1af132,_0x2ce11a=this[_0x30e46b(0x260)],_0x4ff95e=this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x28fcc4),_0x14e3b9=this[_0x30e46b(0x203)],_0x205cc4=this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][_0x30e46b(0x274)]-0x1],_0x273aef=_0x205cc4[_0x30e46b(0x1df)];_0x205cc4[_0x30e46b(0x1d1)](0x0,_0x30e46b(0x276));let _0x1dcefc=_0x2ab13d({'editor':_0x2ce11a,'reply':_0x205cc4,'interaction':_0x14e3b9,'groups':_0x273aef,'transform':!0x1,'documentCompare':_0x4ff95e,'documentCompareOptions':{'anchor':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x23f)](_0x29f91c,0x0),'markDeletions':_0x514823}});_0x1dcefc=this[_0x30e46b(0x27b)](_0x1dcefc,_0x1f6857);for(const _0x45c661 of _0x1dcefc)this[_0x30e46b(0x264)](_0x1f6857,_0x45c661,_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x227)]());const _0x38e8d1=_0x14e3b9[_0x30e46b(0x22e)]()[_0x30e46b(0x200)],_0x377e2b=_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x1f8)][_0x30e46b(0x204)](_0x38e8d1),_0x5340b5={'document':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4b5352=_0x1fc536(_0x1dcefc,_0x377e2b,_0x5340b5)[_0x30e46b(0x1f7)];_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x259)](_0x289262=>{const _0x318bef=_0x30e46b;if(_0x289262[_0x318bef(0x290)](_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x27e)][_0x318bef(0x268)]),_0x514823)_0x2ce11a[_0x318bef(0x1fb)][_0x318bef(0x26b)](_0x318bef(0x217))[_0x318bef(0x23e)](_0x4b5352);else{for(const _0x19332f of _0x4b5352)_0x19332f[_0x318bef(0x219)]=_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x200)],_0x289262[_0x318bef(0x1d0)][_0x318bef(0x267)](_0x19332f),_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x1ea)](_0x19332f);}}),this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x30e46b(0x2a0))[_0x30e46b(0x292)]();}[_0x1af132(0x27b)](_0x41b543,_0xa9f5ac){const _0xc7e59c=_0x1af132;return _0x41b543[_0xc7e59c(0x21a)](_0x1e52e9=>{const _0x1e8111=_0xc7e59c;if(_0x1e8111(0x263)==_0x1e52e9[_0x1e8111(0x234)]){const _0x32ba4d=_0x1e52e9[_0x1e8111(0x266)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x32ba4d);}if(_0x1e52e9[_0x1e8111(0x234)][_0x1e8111(0x206)](_0x1e8111(0x1ce))>-0x1){const _0x46f844=_0x1e52e9[_0x1e8111(0x28d)][_0x1e8111(0x1d7)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x46f844);}return!0x0;});}[_0x1af132(0x264)](_0x352526,_0x882274,_0x3ca555){const _0x2e55dc=_0x1af132,_0x420e22=_0x882274[_0x2e55dc(0x295)]();for(const _0x2e5f78 in _0x882274){const _0x1907e7=_0x882274[_0x2e5f78];_0x1907e7 instanceof _0x2a52d5?_0x882274[_0x2e5f78]=new _0x2a52d5(_0x38fe16(_0x1907e7[_0x2e55dc(0x1d7)]),_0x38fe16(_0x1907e7[_0x2e55dc(0x235)])):_0x1907e7 instanceof _0x2037d6&&(_0x882274[_0x2e5f78]=_0x38fe16(_0x1907e7));}if([_0x2e55dc(0x225),_0x2e55dc(0x27d),_0x2e55dc(0x1cc),_0x2e55dc(0x1ca),_0x2e55dc(0x1f5),_0x2e55dc(0x265)][_0x2e55dc(0x237)](_0x420e22[_0x2e55dc(0x234)])){if(_0x420e22[_0x2e55dc(0x29b)]=!0x1,_0x420e22[_0x2e55dc(0x219)]=null,_0x2e55dc(0x1cc)==_0x420e22[_0x2e55dc(0x234)]){const _0x45a6b0=_0x420e22[_0x2e55dc(0x1cd)],_0x2b3529=_0x420e22[_0x2e55dc(0x25a)];new _0x3b804e(_0x45a6b0,_0x2b3529)[_0x2e55dc(0x26f)]();}else _0x420e22[_0x2e55dc(0x26f)]();}function _0x38fe16(_0x1af884){const _0x100062=_0x2e55dc;if(_0x100062(0x240)==_0x1af884[_0x100062(0x1e2)][_0x100062(0x1e3)])return _0x1af884;const _0x553d96=[];let _0x433d92=_0x1af884[_0x100062(0x1e2)];for(let _0x34638a=0x0;_0x34638a<_0x1af884[_0x100062(0x24c)][_0x100062(0x274)];_0x34638a++){const _0x17cc49=_0x352526[_0x100062(0x26b)](_0x433d92)||0x0;_0x553d96[_0x34638a]=_0x1af884[_0x100062(0x24c)][_0x34638a]+_0x17cc49,_0x433d92=_0x433d92[_0x100062(0x1ec)](_0x1af884[_0x100062(0x24c)][_0x34638a]);}return new _0x2037d6(_0x3ca555,_0x553d96,_0x1af884[_0x100062(0x22f)]);}}[_0x1af132(0x21e)](){const _0x341d84=_0x1af132;if(!this[_0x341d84(0x1da)])return;this[_0x341d84(0x289)][_0x341d84(0x274)]>0x0&&this[_0x341d84(0x21b)](),this[_0x341d84(0x1f4)]=0x0,this[_0x341d84(0x21d)]=!0x1;const {action:_0x2b7b61,content:_0x2e1953,version:_0x312922,mainView:_0x2f76eb,aiBalloon:_0x12b547}=this[_0x341d84(0x1da)];_0x2f76eb[_0x341d84(0x1fc)]=!0x1,_0x2f76eb[_0x341d84(0x1eb)](),this[_0x341d84(0x275)](_0x2f76eb,_0x12b547);const _0x5c4cbe=_0x2f76eb;_0x5c4cbe[_0x341d84(0x2a1)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)][_0x341d84(0x29f)]({'isOn':!0x1,'icon':_0x773fc8}),this[_0x341d84(0x293)](_0x2f76eb),_0x2f76eb[_0x341d84(0x236)](),this[_0x341d84(0x255)](),this[_0x341d84(0x252)](_0x2e1953,_0x312922,_0x2f76eb,_0x12b547,_0x2b7b61)[_0x341d84(0x210)](_0x5796a7=>{const _0x4ca928=_0x341d84;this[_0x4ca928(0x26e)](_0x5796a7)||console[_0x4ca928(0x272)](_0x4ca928(0x282),_0x5796a7);});}[_0x1af132(0x293)](_0x13342b){const _0x15b6bf=_0x1af132,_0x12f1b3=_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x278)];for(;_0x12f1b3[_0x15b6bf(0x274)]>0x0;)_0x12f1b3[_0x15b6bf(0x1cc)](_0x12f1b3[_0x15b6bf(0x23d)]);_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x22d)]=!0x1;}[_0x1af132(0x26e)](_0x1960be){const _0x480b5a=_0x1af132;return!!_0x1960be[_0x480b5a(0x1d4)]&&_0x1960be[_0x480b5a(0x1d4)][_0x480b5a(0x24f)](_0x480b5a(0x21c));}[_0x1af132(0x22c)](){const _0x50ace2=_0x1af132;this[_0x50ace2(0x289)]=[],this[_0x50ace2(0x1da)]=void 0x0,this[_0x50ace2(0x1f4)]=0x0,this[_0x50ace2(0x255)]();}[_0x1af132(0x21b)](){const _0x278963=_0x1af132;this[_0x278963(0x203)]&&this[_0x278963(0x203)][_0x278963(0x28c)](),this[_0x278963(0x1c8)][_0x278963(0x250)](),this[_0x278963(0x1dd)]=!0x1;}[_0x1af132(0x281)](){const _0x45a790=_0x1af132,_0x40505d=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x48335f=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x4d72d6=new _0x3bc492(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x18ca0b=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]);_0x40505d[_0x45a790(0x29f)]({'icon':_0x53a4ee,'label':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x241)),'tooltip':!0x0,'class':_0x45a790(0x1f1)}),_0x48335f[_0x45a790(0x29f)]({'icon':_0x206cb7,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x28e)),'class':_0x45a790(0x248)}),_0x4d72d6[_0x45a790(0x228)]({'tag':_0x45a790(0x24a),'attributes':{'class':[_0x45a790(0x233)]},'children':[_0x45a790(0x231)]}),_0x18ca0b[_0x45a790(0x29f)]({'icon':_0x4e495d,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x287)),'class':_0x45a790(0x208)}),_0x40505d[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x460d4b=>!_0x460d4b),_0x40505d['on'](_0x45a790(0x25b),()=>{const _0x3818f3=_0x45a790;this[_0x3818f3(0x21e)]();}),_0x48335f[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x4187b8=>!_0x4187b8),_0x48335f['on'](_0x45a790(0x25b),()=>{const _0xda1ba1=_0x45a790;this[_0xda1ba1(0x299)]();}),_0x18ca0b[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x27ea6c=>!_0x27ea6c),_0x18ca0b['on'](_0x45a790(0x25b),()=>{const _0x473de7=_0x45a790;this[_0x473de7(0x232)]();}),this[_0x45a790(0x1f9)]=_0x48335f,this[_0x45a790(0x246)]=_0x4d72d6,this[_0x45a790(0x23c)]=_0x18ca0b,this[_0x45a790(0x207)][_0x45a790(0x1d9)](_0x40505d);}[_0x1af132(0x299)](){const _0x49576b=_0x1af132,_0x500bf0=this[_0x49576b(0x289)][_0x49576b(0x274)];this[_0x49576b(0x1f4)]<_0x500bf0-0x1&&this[_0x49576b(0x211)](this[_0x49576b(0x1f4)]+0x1);}[_0x1af132(0x232)](){const _0x3d9520=_0x1af132;this[_0x3d9520(0x1f4)]>0x0&&this[_0x3d9520(0x211)](this[_0x3d9520(0x1f4)]-0x1);}async[_0x1af132(0x211)](_0x227d75){const _0x3c1705=_0x1af132;if(!this[_0x3c1705(0x1da)])return;this[_0x3c1705(0x1f4)]=_0x227d75;const {mainView:_0xdc020d}=this[_0x3c1705(0x1da)],_0x57dc2c=this[_0x3c1705(0x289)][this[_0x3c1705(0x289)][_0x3c1705(0x274)]-0x1-this[_0x3c1705(0x1f4)]];if(!_0x57dc2c)return;if(_0x57dc2c[_0x3c1705(0x285)])return this[_0x3c1705(0x1d3)](_0x57dc2c,_0xdc020d),void this[_0x3c1705(0x255)]();if(!_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)])return;_0xdc020d[_0x3c1705(0x1eb)](),this[_0x3c1705(0x1da)]&&this[_0x3c1705(0x275)](_0xdc020d,this[_0x3c1705(0x1da)][_0x3c1705(0x214)]);const _0x32c5bc=_0x57dc2c[_0x3c1705(0x1e6)][_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)]-0x1];if(_0x32c5bc){const _0x1ab2ca=this[_0x3c1705(0x260)];this[_0x3c1705(0x293)](_0xdc020d);try{const _0x64d872=_0x147bf7({'editor':_0x1ab2ca,'changeGroups':_0x32c5bc[_0x3c1705(0x1df)],'documentContextContent':_0x32c5bc[_0x3c1705(0x224)],'showDiff':this[_0x3c1705(0x21d)],'trimUnchanged':!0x1});this[_0x3c1705(0x293)](_0xdc020d),await new Promise(_0x519668=>setTimeout(_0x519668,0x32)),await _0xdc020d[_0x3c1705(0x291)]({'parts':_0x64d872,'renderingStrategy':_0x3c1705(0x244),'abortSignal':new AbortController()[_0x3c1705(0x1d5)]});}catch(_0x5b3e95){this[_0x3c1705(0x26e)](_0x5b3e95)||console[_0x3c1705(0x272)](_0x3c1705(0x1c6),_0x5b3e95);}}this[_0x3c1705(0x255)]();}[_0x1af132(0x255)](){const _0x47cd8b=_0x1af132;if(!this[_0x47cd8b(0x1f9)]||!this[_0x47cd8b(0x246)]||!this[_0x47cd8b(0x23c)])return;const _0x4f87c7=this[_0x47cd8b(0x289)][_0x47cd8b(0x274)],_0x20e3b2=_0x4f87c7>0x1,_0x4b5674=this[_0x47cd8b(0x1da)]?.[_0x47cd8b(0x21f)];if(_0x20e3b2){this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)]||(this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x0);const _0xea3e7c=_0x4f87c7-this[_0x47cd8b(0x1f4)];this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)]&&(this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)][_0x47cd8b(0x1f2)]=_0xea3e7c+'/'+_0x4f87c7),this[_0x47cd8b(0x1f9)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]<_0x4f87c7-0x1,this[_0x47cd8b(0x23c)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]>0x0;}else(this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)])&&(this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x1);}[_0x1af132(0x1ed)](_0x4bd7e6,_0x4a401b){const _0x41d059=_0x1af132;_0x4bd7e6[_0x41d059(0x297)](),_0x4a401b[_0x41d059(0x25f)][_0x41d059(0x297)](),this[_0x41d059(0x1dd)]=!0x0;}async[_0x1af132(0x1d3)](_0x2908dc,_0x38560c){const _0x501628=_0x1af132,_0x1d9a7f=_0xf1606d(this[_0x501628(0x260)][_0x501628(0x1de)],_0x501628(0x201));_0x38560c[_0x501628(0x230)](_0x1d9a7f),_0x2908dc[_0x501628(0x285)]=!0x0,await this[_0x501628(0x1c8)][_0x501628(0x247)],_0x38560c[_0x501628(0x26c)](),this[_0x501628(0x1da)]?.[_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)]&&(this[_0x501628(0x1da)][_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)][_0x501628(0x284)]=!0x0);}[_0x1af132(0x275)](_0x2c7eb2,_0x993063){const _0x2fc467=_0x1af132;_0x2c7eb2[_0x2fc467(0x253)](),_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)]&&(_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)][_0x2fc467(0x284)]=!0x1);}async[_0x1af132(0x205)](_0x274325,_0x4d08a7){const _0x3d85d2=_0x1af132;await this[_0x3d85d2(0x1c8)][_0x3d85d2(0x247)],this[_0x3d85d2(0x1dd)]=!0x1,_0x274325[_0x3d85d2(0x1c7)](),_0x4d08a7[_0x3d85d2(0x25f)][_0x3d85d2(0x1c7)]();}}
|
|
23
|
+
const _0x102540=_0x1e45;(function(_0x48da52,_0x389610){const _0x58f3c8=_0x1e45,_0xae079e=_0x48da52();while(!![]){try{const _0x572747=parseInt(_0x58f3c8(0x244))/0x1*(parseInt(_0x58f3c8(0x1d0))/0x2)+parseInt(_0x58f3c8(0x1d3))/0x3*(-parseInt(_0x58f3c8(0x1d5))/0x4)+parseInt(_0x58f3c8(0x237))/0x5*(-parseInt(_0x58f3c8(0x16f))/0x6)+parseInt(_0x58f3c8(0x181))/0x7*(parseInt(_0x58f3c8(0x22c))/0x8)+parseInt(_0x58f3c8(0x1b8))/0x9*(-parseInt(_0x58f3c8(0x1ba))/0xa)+parseInt(_0x58f3c8(0x1b9))/0xb*(parseInt(_0x58f3c8(0x238))/0xc)+parseInt(_0x58f3c8(0x204))/0xd;if(_0x572747===_0x389610)break;else _0xae079e['push'](_0xae079e['shift']());}catch(_0x1cf65c){_0xae079e['push'](_0xae079e['shift']());}}}(_0xca26,0x74ae6));import{Plugin as _0x43f553}from'ckeditor5/src/core.js';import{AIConnector as _0x2c8f7e}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x182173}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3559db,ButtonView as _0x2cd6fc,ViewCollection as _0x5b7a70,View as _0x103a54}from'ckeditor5/src/ui.js';import{AIEditing as _0x3f7f4b}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x2b852c}from'./model/aiactionsinteraction.js';function _0xca26(){const _0x407634=['static','nodeAfter','pending','_navigationCounter','documentContextContent','_balloonShowDiff','selection','start','_interaction','1/1','setErrorState','hasError','ck-ai-interaction-counter','catch','8pxanxy','rename','history','AI_ACTIONS_GENERIC_ERROR','_isNavigationPreviousButtonInView','applyOperation','schema','modelToViewWithIds','aiBalloon','_getExecuteDataInTable','_promiseQueue','3663655rSvQvx','12SnOgho','parent','_applyOperationsAsSuggestions','balloonView','$graveyard','_navigationNextButton','push','error','getSelectedTableCells','setChangeGroupState','root','_children','4331meOSqP','_isAbortError','position','_executeAction','Error\x20refreshing\x20interaction:','getFirstRange','isPremiumPlugin','_clone','operationsA','queueEmptyPromise','close','rootName','split','6kZDfes','AIBalloon','AI_ACTIONS_PREVIOUS_INTERACTION','getAncestors','showLoader','Attribute','createPositionAt','getSelectedBlocks','actionName','_navigationPreviousButton','TrackChangesEditing','ai-request-aborted','Error\x20updating\x20content\x20during\x20navigation:','end','set','_clearLoadingState','version','add','340046UEDkqR','streaming','textContent','requires','_clearInteractionHistory','interactionFinished','_applyChanges','icon','addOperation','stopInteraction','slice','insert','showChangesButton','open','_filterOperationsOutsideRange','howMany','startsWith','_navigateToPrevious','getRoot','type','toData','isEnabled','getLimitElement','setTemplate','sourcePosition','changeGroups','createPositionBefore','getSelectionAsFragment','getChild','signal','getChildAtOffset','remove','has','setLoading','_isNavigationNextButtonInView','replies','_setupCustomViews','abort','createRange','showError','_aiConnector','TableSelection','getRanges','_interactionParams','dialogClosed','_getExecuteDataRegular','move','_displayInteractionAtIndex','focus','document','bodyView','hasPendingParts','clearErrorState','getDocumentContext','isCollapsed','441NXRkib','8507906zPdzYM','123900slBkZn','_updateNavigationUI','nextSibling','_interactions','random','areChangesVisible','_navigateToNext','get','path','state','toggleSuggestionDisplayMode','upsertCustomAIActionRating','replyCreated','isDocumentOperation','accepted','plugins','execute','span','AIConnector','ck-ai-navigation-button\x20ck-ai-next-button','getOperations','includes','2UpjroF','length','_setErrorState','88167gfQepr','getSelectedContent','84NdYKdN','isBusy','change','filter','AI_ACTIONS_NEXT_INTERACTION','Error\x20updating\x20content\x20in\x20replyCreated:','bind','map','_currentInteractionIndex','_isNavigationCounterInView','stickiness','_clearErrorState','removeNavigationItem','_setLoadingState','insertSuggestion','merge','stopListening','_appendChild','_execute','hideLoader','batch','replyContentUpdated','_stopInteraction','range','executeAction','editor','replyChangeGroupStateUpdated','baseVersion','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_anchorOperation','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getCommonAncestor','_customViews','miniToolbarView','documentFragment','createPositionAfter','first','_clearSuggestionContent','model','actionCallId','updateContent','clone','hideError','Error\x20updating\x20content\x20in\x20replyContentUpdated:','data','AIActions','rejected','20911553hKeTrn','reinsert','ck-ai-custom-action-button','clearLoading','indexOf','setSelection','message','mainView','stop','element','addNavigationItem','upsertAIActionRating','pluginName','AI_ACTIONS_TRY_AGAIN','_createInteraction','_wrapWithCommonAncestors','applySuggestion','processor','enqueue','toolbar','listenTo','_refreshInteraction','isLoading','locale','isOfficialPlugin','ck-ai-navigation-button\x20ck-ai-previous-button'];_0xca26=function(){return _0x407634;};return _0xca26();}import{first as _0xbd42a0}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x6e6e76,IconRefresh as _0x316282,IconNextArrow as _0x46c6e0,IconPreviousArrow as _0x5589f7,IconShowChangesOff as _0x5c70f4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x944c9a}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x1cbf3b}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4d55e4}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x27e4d8}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x44ebe0}from'@ckeditor/ckeditor5-collaboration-core';function _0x1e45(_0x24131c,_0x18171e){const _0xca264e=_0xca26();return _0x1e45=function(_0x1e4511,_0xf73214){_0x1e4511=_0x1e4511-0x16a;let _0x2c4957=_0xca264e[_0x1e4511];return _0x2c4957;},_0x1e45(_0x24131c,_0x18171e);}import{getOperationsFromReply as _0x230838}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x57dcb9,ModelRange as _0x23bb69,ModelPosition as _0x23e3b4,_DetachOperation as _0x5b6b11,transformOperationSets as _0x5232d3}from'ckeditor5/src/engine.js';export class AIActions extends _0x43f553{static get[_0x102540(0x184)](){return[_0x2c8f7e,_0x3559db,_0x3f7f4b,_0x944c9a,_0x44ebe0];}static get[_0x102540(0x210)](){const _0x430463=_0x102540;return _0x430463(0x202);}static get[_0x102540(0x21c)](){return!0x0;}static get[_0x102540(0x24a)](){return!0x0;}[_0x102540(0x1a9)];[_0x102540(0x1bd)]=[];[_0x102540(0x1dd)]=0x0;[_0x102540(0x1ac)];[_0x102540(0x223)]=!0x1;[_0x102540(0x1f5)]=new _0x5b7a70();[_0x102540(0x178)];[_0x102540(0x221)];[_0x102540(0x1de)]=!0x1;[_0x102540(0x23d)];[_0x102540(0x230)]=!0x1;[_0x102540(0x1a3)]=!0x1;[_0x102540(0x236)];get[_0x102540(0x226)](){const _0x92e2b4=_0x102540;return this[_0x92e2b4(0x1bd)][this[_0x92e2b4(0x1bd)][_0x92e2b4(0x1d1)]-0x1];}constructor(_0x28484e){const _0x5c3466=_0x102540;super(_0x28484e),this[_0x5c3466(0x1a9)]=this[_0x5c3466(0x1ee)][_0x5c3466(0x1c9)][_0x5c3466(0x1c1)](_0x5c3466(0x1cc)),this[_0x5c3466(0x17d)](_0x5c3466(0x1d6),!0x1),this[_0x5c3466(0x236)]=new _0x1cbf3b(),this[_0x5c3466(0x1a5)]();}[_0x102540(0x18a)](){const _0x5167bb=_0x102540;this[_0x5167bb(0x1eb)]();}async[_0x102540(0x1ed)](_0x44b10f,_0xf3cf83,_0x317de0){const _0x597aa3=_0x102540;if(this[_0x597aa3(0x1ee)][_0x597aa3(0x1c9)][_0x597aa3(0x1a1)](_0x597aa3(0x1aa))){if(this[_0x597aa3(0x1ee)][_0x597aa3(0x1c9)][_0x597aa3(0x1c1)](_0x597aa3(0x1aa))[_0x597aa3(0x240)]()){const {modelFragment:_0x246393,anchorData:_0x9be4ab}=this[_0x597aa3(0x235)]();return this[_0x597aa3(0x247)](_0x44b10f,_0x246393,_0x9be4ab,_0xf3cf83,_0x317de0);}}const {modelFragment:_0x5bc7dd,anchorData:_0x10b834}=this[_0x597aa3(0x1ae)]();return this[_0x597aa3(0x247)](_0x44b10f,_0x5bc7dd,_0x10b834,_0xf3cf83,_0x317de0);}[_0x102540(0x1ae)](){const _0x159da1=_0x102540,_0x4d34d0=this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x1b2)][_0x159da1(0x224)];if(_0x4d34d0[_0x159da1(0x1b7)]){const _0x178333=_0xbd42a0(_0x4d34d0[_0x159da1(0x176)]())||this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x232)][_0x159da1(0x197)](_0x4d34d0);this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x1d7)](_0x5c3a94=>{const _0x400f20=_0x159da1;_0x5c3a94[_0x400f20(0x209)](_0x178333,'in');});}const _0x20a19d=_0x4d34d0[_0x159da1(0x249)](),_0x184d51=this[_0x159da1(0x213)](this[_0x159da1(0x1ee)][_0x159da1(0x1fb)][_0x159da1(0x1d4)](_0x4d34d0),_0x20a19d[_0x159da1(0x225)],_0x20a19d[_0x159da1(0x17c)]),_0x31531c=_0x4d34d0[_0x159da1(0x249)]()[_0x159da1(0x225)],_0x3b6a9e=new Map();let _0x38ae33=_0x184d51;for(let _0x25efd8=0x0;_0x25efd8<_0x31531c[_0x159da1(0x1c2)][_0x159da1(0x1d1)];_0x25efd8++)_0x3b6a9e[_0x159da1(0x17d)](_0x38ae33,_0x31531c[_0x159da1(0x1c2)][_0x25efd8]),_0x38ae33=_0x38ae33[_0x159da1(0x19d)](0x0);return{'modelFragment':_0x184d51,'anchorData':_0x3b6a9e};}[_0x102540(0x235)](){const _0x173e1c=_0x102540,_0x2edd14=this[_0x173e1c(0x1ee)][_0x173e1c(0x1fb)][_0x173e1c(0x1b2)][_0x173e1c(0x224)],_0x2e089a=this[_0x173e1c(0x1ee)][_0x173e1c(0x1c9)][_0x173e1c(0x1c1)](_0x173e1c(0x1aa))[_0x173e1c(0x19c)](),_0x2f9487=_0x2edd14[_0x173e1c(0x249)]()[_0x173e1c(0x225)][_0x173e1c(0x239)][_0x173e1c(0x239)],_0x257180=this[_0x173e1c(0x213)](_0x2e089a,this[_0x173e1c(0x1ee)][_0x173e1c(0x1fb)][_0x173e1c(0x19b)](_0x2f9487),this[_0x173e1c(0x1ee)][_0x173e1c(0x1fb)][_0x173e1c(0x1f8)](_0x2f9487)),_0x247c2a=_0x2edd14[_0x173e1c(0x249)]()[_0x173e1c(0x225)],_0x2d5c7c=new Map();let _0x123667=_0x257180;for(let _0x161d36=0x0;_0x161d36<_0x247c2a[_0x173e1c(0x1c2)][_0x173e1c(0x1d1)];_0x161d36++)if(_0x2d5c7c[_0x173e1c(0x17d)](_0x123667,_0x247c2a[_0x173e1c(0x1c2)][_0x161d36]),_0x161d36<_0x247c2a[_0x173e1c(0x1c2)][_0x173e1c(0x1d1)]-0x1)_0x123667=_0x123667[_0x173e1c(0x19d)](0x0);else{let _0x35534d=_0x123667[_0x173e1c(0x1bc)];for(;_0x35534d;)_0x2d5c7c[_0x173e1c(0x17d)](_0x35534d,_0x247c2a[_0x173e1c(0x1c2)][_0x161d36]),_0x35534d=_0x35534d[_0x173e1c(0x1bc)];}return{'modelFragment':_0x257180,'anchorData':_0x2d5c7c};}[_0x102540(0x247)](_0x480d77,_0xb9b5d3,_0x31e85c,_0x43d5bc,_0x2409f){const _0x593955=_0x102540,_0x2cf5c3=this[_0x593955(0x1ee)][_0x593955(0x1c9)][_0x593955(0x1c1)](_0x3f7f4b),_0x1d3008=this[_0x593955(0x1ee)][_0x593955(0x1c9)][_0x593955(0x1c1)](_0x944c9a),_0x9b46bf=this[_0x593955(0x1ee)][_0x593955(0x1fb)][_0x593955(0x1b2)][_0x593955(0x224)],_0x4ffe27=_0x2cf5c3[_0x593955(0x233)](_0xb9b5d3),_0x530281=this[_0x593955(0x1ee)][_0x593955(0x201)][_0x593955(0x215)][_0x593955(0x195)](_0x4ffe27),_0x5c2fb8=this[_0x593955(0x1ee)][_0x593955(0x1fb)][_0x593955(0x1b2)][_0x593955(0x17f)],_0x40dca2=[..._0x9b46bf[_0x593955(0x1ab)]()],_0x473cd=new _0x182173(this[_0x593955(0x1ee)][_0x593955(0x21b)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x593955(0x188),'customView':this[_0x593955(0x1f5)]},'showUnchangedParts':!0x0});return _0x1d3008[_0x593955(0x18e)]({'index':0x3e8*Math[_0x593955(0x1be)]()%0x3e8,'title':_0x43d5bc,'icon':_0x2409f||_0x6e6e76,'mainView':_0x473cd,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x40dca2}),this[_0x593955(0x1e2)](_0x473cd,_0x1d3008),this[_0x593955(0x218)](_0x1d3008,_0x593955(0x214),()=>{const _0x1739f7=_0x593955;this[_0x1739f7(0x187)](_0xb9b5d3,_0x31e85c,!0x1);}),this[_0x593955(0x218)](_0x1d3008,_0x593955(0x1e3),()=>{const _0x216c88=_0x593955;this[_0x216c88(0x187)](_0xb9b5d3,_0x31e85c,!0x0);}),this[_0x593955(0x218)](_0x1d3008,_0x593955(0x1ad),()=>{const _0x2c5f5c=_0x593955;if(this[_0x2c5f5c(0x226)]&&this[_0x2c5f5c(0x226)][_0x2c5f5c(0x1a4)][_0x2c5f5c(0x1d1)]>0x0){const _0x3d1752=this[_0x2c5f5c(0x226)][_0x2c5f5c(0x1a4)][this[_0x2c5f5c(0x226)][_0x2c5f5c(0x1a4)][_0x2c5f5c(0x1d1)]-0x1],_0xf3b5df=_0x3d1752[_0x2c5f5c(0x19a)][0x0];_0xf3b5df&&_0x2c5f5c(0x220)===_0xf3b5df[_0x2c5f5c(0x1c3)]&&_0x3d1752[_0x2c5f5c(0x241)](0x0,_0x2c5f5c(0x203));}this[_0x2c5f5c(0x1eb)](),this[_0x2c5f5c(0x185)](),this[_0x2c5f5c(0x1e5)](_0x1d3008);}),this[_0x593955(0x212)](_0x530281,_0x5c2fb8,_0x473cd,_0x1d3008,_0x480d77);}[_0x102540(0x213)](_0x232d5a,_0x52d5df,_0x55c117){const _0x126819=_0x102540,_0x16ad7a=this[_0x126819(0x1ee)][_0x126819(0x1fb)][_0x126819(0x1a7)](_0x52d5df,_0x55c117)[_0x126819(0x1f4)](),_0x13462a=_0x16ad7a['is'](_0x126819(0x1f7))?[]:_0x16ad7a[_0x126819(0x172)]({'includeSelf':!0x0})[_0x126819(0x18b)](0x1);if(_0x13462a[_0x126819(0x1d1)]){const _0x4bfc18=_0x13462a[_0x126819(0x1dc)](_0x22b0b7=>_0x22b0b7[_0x126819(0x24b)](!0x1));for(let _0x2170a8=0x1;_0x2170a8<_0x4bfc18[_0x126819(0x1d1)];_0x2170a8++)_0x4bfc18[_0x2170a8-0x1][_0x126819(0x1e6)](_0x4bfc18[_0x2170a8]);return _0x4bfc18[_0x4bfc18[_0x126819(0x1d1)]-0x1][_0x126819(0x1e6)](_0x232d5a),new _0x57dcb9(_0x4bfc18[0x0]);}return _0x232d5a;}async[_0x102540(0x212)](_0x2b77f9,_0x55645b,_0x50a1dc,_0x185897,_0x29c971){const _0x4ba7bf=_0x102540,_0xc54963=this[_0x4ba7bf(0x1ee)];this[_0x4ba7bf(0x1ac)]={'action':_0x29c971,'content':_0x2b77f9,'version':_0x55645b,'mainView':_0x50a1dc,'aiBalloon':_0x185897};const _0x2756b5=new _0x2b852c({'connector':this[_0x4ba7bf(0x1a9)],'editor':_0xc54963,'content':_0x2b77f9,'version':_0x55645b,..._0x29c971});this[_0x4ba7bf(0x1bd)][_0x4ba7bf(0x23e)](_0x2756b5),_0x50a1dc[_0x4ba7bf(0x1ff)]();const _0x3b3c9e=(_0x2208f4,_0xfaaaf8,_0x55caeb=!0x1,_0x5ddbeb=_0x4ba7bf(0x182))=>this[_0x4ba7bf(0x236)][_0x4ba7bf(0x216)](async _0x3421bd=>{const _0x1176b4=_0x4ba7bf;try{const _0x2ff04f=_0x27e4d8({'editor':_0xc54963,'changeGroups':_0x2208f4[_0x1176b4(0x19a)],'documentContextContent':_0x2208f4[_0x1176b4(0x222)],'showDiff':_0x55caeb,'trimUnchanged':!0x1});await _0xfaaaf8[_0x1176b4(0x1fd)]({'parts':_0x2ff04f,'renderingStrategy':_0x5ddbeb,'abortSignal':_0x3421bd});}catch(_0x326d2e){if(this[_0x1176b4(0x245)](_0x326d2e))return;throw _0x326d2e;}});this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x1c6),(_0x4d5772,_0x2a8899)=>{const _0x21e5eb=_0x4ba7bf;_0x50a1dc[_0x21e5eb(0x1e8)](),_0x3b3c9e(_0x2a8899,_0x50a1dc)[_0x21e5eb(0x22b)](_0x3734a6=>{const _0x459406=_0x21e5eb;this[_0x459406(0x245)](_0x3734a6)||(console[_0x459406(0x23f)](_0x459406(0x1da),_0x3734a6),this[_0x459406(0x1d2)](_0x2756b5,_0x50a1dc));});}),this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x1ea),(_0x398aa9,_0x24e494)=>{const _0x4d8dd4=_0x4ba7bf;_0x3b3c9e(_0x24e494,_0x50a1dc)[_0x4d8dd4(0x22b)](_0x42462b=>{const _0x3c3a72=_0x4d8dd4;this[_0x3c3a72(0x245)](_0x42462b)||(console[_0x3c3a72(0x23f)](_0x3c3a72(0x200),_0x42462b),this[_0x3c3a72(0x1d2)](_0x2756b5,_0x50a1dc));});}),this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x186),async()=>{const _0x2c4f6e=_0x4ba7bf;try{await this[_0x2c4f6e(0x17e)](_0x50a1dc,_0x185897),this[_0x2c4f6e(0x1bb)]();}catch(_0x128c5d){this[_0x2c4f6e(0x245)](_0x128c5d)||(console[_0x2c4f6e(0x23f)](_0x2c4f6e(0x1f3),_0x128c5d),this[_0x2c4f6e(0x1d2)](_0x2756b5,_0x50a1dc));}}),this[_0x4ba7bf(0x218)](_0x50a1dc,_0x4ba7bf(0x1c4),(_0x4c49a0,{showDiff:_0x2a2af1})=>{const _0x128c3d=_0x4ba7bf;this[_0x128c3d(0x223)]=_0x2a2af1;const _0x55247b=this[_0x128c3d(0x226)][_0x128c3d(0x1a4)][this[_0x128c3d(0x226)][_0x128c3d(0x1a4)][_0x128c3d(0x1d1)]-0x1];_0x55247b&&_0x3b3c9e(_0x55247b,_0x50a1dc,_0x2a2af1,_0x128c3d(0x21e))[_0x128c3d(0x22b)](_0x4fe5c4=>{const _0x1b75a7=_0x128c3d;this[_0x1b75a7(0x245)](_0x4fe5c4)||(console[_0x1b75a7(0x23f)](_0x1b75a7(0x1f1),_0x4fe5c4),this[_0x1b75a7(0x1d2)](_0x2756b5,_0x50a1dc));});}),this[_0x4ba7bf(0x226)]['on'](_0x4ba7bf(0x1ef),(_0xc14199,{reply:_0x1c1f01})=>{const _0x96ea26=_0x4ba7bf,_0x5473e6={'positiveCount':_0x1c1f01[_0x96ea26(0x19a)][_0x96ea26(0x1d8)](_0x178c97=>_0x96ea26(0x1c8)===_0x178c97[_0x96ea26(0x1c3)])[_0x96ea26(0x1d1)],'totalCount':_0x1c1f01[_0x96ea26(0x19a)][_0x96ea26(0x1d1)]},_0x30571c=this[_0x96ea26(0x226)][_0x96ea26(0x1fc)],_0x1fb196=this[_0x96ea26(0x226)][_0x96ea26(0x177)];_0x1fb196?this[_0x96ea26(0x1a9)][_0x96ea26(0x20f)](_0x1fb196,_0x30571c,_0x5473e6):this[_0x96ea26(0x1a9)][_0x96ea26(0x1c5)](_0x30571c,_0x5473e6);}),this[_0x4ba7bf(0x1e2)](_0x50a1dc,_0x185897);try{const _0x4100dc=await this[_0x4ba7bf(0x226)][_0x4ba7bf(0x225)]();return this[_0x4ba7bf(0x1bb)](),_0x4100dc;}catch(_0xc8fd12){if(this[_0x4ba7bf(0x245)](_0xc8fd12))return;_0x50a1dc[_0x4ba7bf(0x1e8)](),this[_0x4ba7bf(0x1d2)](_0x2756b5,_0x50a1dc);}}[_0x102540(0x187)](_0x14d6a1,_0x1ac00f,_0x591f5c){const _0x1e1501=_0x102540,_0x5c22c7=this[_0x1e1501(0x1ee)],_0x550cc7=this[_0x1e1501(0x1ee)][_0x1e1501(0x1c9)][_0x1e1501(0x1c1)](_0x44ebe0),_0x1acf54=this[_0x1e1501(0x226)],_0xd327f5=this[_0x1e1501(0x226)][_0x1e1501(0x1a4)][this[_0x1e1501(0x226)][_0x1e1501(0x1a4)][_0x1e1501(0x1d1)]-0x1],_0x195b1e=_0xd327f5[_0x1e1501(0x19a)];_0xd327f5[_0x1e1501(0x241)](0x0,_0x1e1501(0x1c8));let _0x3271be=_0x230838({'editor':_0x5c22c7,'reply':_0xd327f5,'interaction':_0x1acf54,'groups':_0x195b1e,'transform':!0x1,'documentCompare':_0x550cc7,'documentCompareOptions':{'anchor':_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x175)](_0x14d6a1,0x0),'markDeletions':_0x591f5c}});_0x3271be=this[_0x1e1501(0x18f)](_0x3271be,_0x1ac00f);for(const _0x8d223f of _0x3271be)this[_0x1e1501(0x1f2)](_0x1ac00f,_0x8d223f,_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1b2)][_0x1e1501(0x193)]());const _0x13eb14=_0x1acf54[_0x1e1501(0x1b6)]()[_0x1e1501(0x17f)],_0x381601=_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1b2)][_0x1e1501(0x22e)][_0x1e1501(0x1ce)](_0x13eb14),_0x2d2dd9={'document':_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1b2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4b1558=_0x5232d3(_0x3271be,_0x381601,_0x2d2dd9)[_0x1e1501(0x16a)];_0x5c22c7[_0x1e1501(0x1fb)][_0x1e1501(0x1d7)](_0x290580=>{const _0x1edbd3=_0x1e1501;if(_0x290580[_0x1edbd3(0x209)](_0x5c22c7[_0x1edbd3(0x1fb)][_0x1edbd3(0x1b2)][_0x1edbd3(0x224)][_0x1edbd3(0x1b1)]),_0x591f5c)_0x5c22c7[_0x1edbd3(0x1c9)][_0x1edbd3(0x1c1)](_0x1edbd3(0x179))[_0x1edbd3(0x23a)](_0x4b1558);else{for(const _0x392539 of _0x4b1558)_0x392539[_0x1edbd3(0x1f0)]=_0x5c22c7[_0x1edbd3(0x1fb)][_0x1edbd3(0x1b2)][_0x1edbd3(0x17f)],_0x290580[_0x1edbd3(0x1e9)][_0x1edbd3(0x189)](_0x392539),_0x5c22c7[_0x1edbd3(0x1fb)][_0x1edbd3(0x231)](_0x392539);}}),this[_0x1e1501(0x1ee)][_0x1e1501(0x1c9)][_0x1e1501(0x1c1)](_0x1e1501(0x170))[_0x1e1501(0x16c)]();}[_0x102540(0x18f)](_0x3fefdf,_0x16d83b){const _0x377970=_0x102540;return _0x3fefdf[_0x377970(0x1d8)](_0x2d2a21=>{const _0x184bb6=_0x377970;if(_0x184bb6(0x22d)==_0x2d2a21[_0x184bb6(0x194)]){const _0x5987ce=_0x2d2a21[_0x184bb6(0x246)][_0x184bb6(0x21f)];return!_0x16d83b[_0x184bb6(0x1a1)](_0x5987ce);}if(_0x2d2a21[_0x184bb6(0x194)][_0x184bb6(0x208)](_0x184bb6(0x174))>-0x1){const _0x47f495=_0x2d2a21[_0x184bb6(0x1ec)][_0x184bb6(0x225)][_0x184bb6(0x21f)];return!_0x16d83b[_0x184bb6(0x1a1)](_0x47f495);}return!0x0;});}[_0x102540(0x1f2)](_0x34fb55,_0x11a260,_0x9202a0){const _0x242178=_0x102540,_0x2880a6=_0x11a260[_0x242178(0x1fe)]();for(const _0x3391b1 in _0x11a260){const _0x485b2d=_0x11a260[_0x3391b1];_0x485b2d instanceof _0x23bb69?_0x11a260[_0x3391b1]=new _0x23bb69(_0x405b9b(_0x485b2d[_0x242178(0x225)]),_0x405b9b(_0x485b2d[_0x242178(0x17c)])):_0x485b2d instanceof _0x23e3b4&&(_0x11a260[_0x3391b1]=_0x405b9b(_0x485b2d));}if([_0x242178(0x18c),_0x242178(0x1af),_0x242178(0x1a0),_0x242178(0x205),_0x242178(0x16e),_0x242178(0x1e4)][_0x242178(0x1cf)](_0x2880a6[_0x242178(0x194)])){if(_0x2880a6[_0x242178(0x1c7)]=!0x1,_0x2880a6[_0x242178(0x1f0)]=null,_0x242178(0x1a0)==_0x2880a6[_0x242178(0x194)]){const _0xde9298=_0x2880a6[_0x242178(0x199)],_0x361011=_0x2880a6[_0x242178(0x190)];new _0x5b6b11(_0xde9298,_0x361011)[_0x242178(0x1e7)]();}else _0x2880a6[_0x242178(0x1e7)]();}function _0x405b9b(_0x1bbeab){const _0xeaa350=_0x242178;if(_0xeaa350(0x23c)==_0x1bbeab[_0xeaa350(0x242)][_0xeaa350(0x16d)])return _0x1bbeab;const _0x2c2f05=[];let _0x5391ec=_0x1bbeab[_0xeaa350(0x242)];for(let _0x3f11e3=0x0;_0x3f11e3<_0x1bbeab[_0xeaa350(0x1c2)][_0xeaa350(0x1d1)];_0x3f11e3++){const _0x43f82f=_0x34fb55[_0xeaa350(0x1c1)](_0x5391ec)||0x0;_0x2c2f05[_0x3f11e3]=_0x1bbeab[_0xeaa350(0x1c2)][_0x3f11e3]+_0x43f82f,_0x5391ec=_0x5391ec[_0xeaa350(0x19f)](_0x1bbeab[_0xeaa350(0x1c2)][_0x3f11e3]);}return new _0x23e3b4(_0x9202a0,_0x2c2f05,_0x1bbeab[_0xeaa350(0x1df)]);}}[_0x102540(0x219)](){const _0x339952=_0x102540;if(!this[_0x339952(0x1ac)])return;this[_0x339952(0x1bd)][_0x339952(0x1d1)]>0x0&&this[_0x339952(0x1eb)](),this[_0x339952(0x1dd)]=0x0,this[_0x339952(0x223)]=!0x1;const {action:_0x20051c,content:_0x5f0aaa,version:_0x379def,mainView:_0x316740,aiBalloon:_0x103ec6}=this[_0x339952(0x1ac)];_0x316740[_0x339952(0x1bf)]=!0x1,_0x316740[_0x339952(0x1ff)](),this[_0x339952(0x1e0)](_0x316740,_0x103ec6);const _0x30a0b5=_0x316740;_0x30a0b5[_0x339952(0x1f6)]&&_0x30a0b5[_0x339952(0x1f6)][_0x339952(0x18d)]&&_0x30a0b5[_0x339952(0x1f6)][_0x339952(0x18d)][_0x339952(0x17d)]({'isOn':!0x1,'icon':_0x5c70f4}),this[_0x339952(0x1fa)](_0x316740),_0x316740[_0x339952(0x173)](),this[_0x339952(0x1bb)](),this[_0x339952(0x212)](_0x5f0aaa,_0x379def,_0x316740,_0x103ec6,_0x20051c)[_0x339952(0x22b)](_0x435873=>{const _0x19f6f8=_0x339952;this[_0x19f6f8(0x245)](_0x435873)||console[_0x19f6f8(0x23f)](_0x19f6f8(0x248),_0x435873);});}[_0x102540(0x1fa)](_0x537065){const _0x352641=_0x102540,_0xe0777d=_0x537065[_0x352641(0x1b3)][_0x352641(0x243)];for(;_0xe0777d[_0x352641(0x1d1)]>0x0;)_0xe0777d[_0x352641(0x1a0)](_0xe0777d[_0x352641(0x1f9)]);_0x537065[_0x352641(0x1b3)][_0x352641(0x1b4)]=!0x1;}[_0x102540(0x245)](_0x531fe1){const _0x12ad19=_0x102540;return!!_0x531fe1[_0x12ad19(0x20a)]&&_0x531fe1[_0x12ad19(0x20a)][_0x12ad19(0x191)](_0x12ad19(0x17a));}[_0x102540(0x185)](){const _0x552e31=_0x102540;this[_0x552e31(0x1bd)]=[],this[_0x552e31(0x1ac)]=void 0x0,this[_0x552e31(0x1dd)]=0x0,this[_0x552e31(0x1bb)]();}[_0x102540(0x1eb)](){const _0x57b8fc=_0x102540;this[_0x57b8fc(0x226)]&&this[_0x57b8fc(0x226)][_0x57b8fc(0x20c)](),this[_0x57b8fc(0x236)][_0x57b8fc(0x1a6)](),this[_0x57b8fc(0x1d6)]=!0x1;}[_0x102540(0x1a5)](){const _0x500677=_0x102540,_0x4ba95c=new _0x2cd6fc(this[_0x500677(0x1ee)][_0x500677(0x21b)]),_0x2c0462=new _0x2cd6fc(this[_0x500677(0x1ee)][_0x500677(0x21b)]),_0x2db0c7=new _0x103a54(this[_0x500677(0x1ee)][_0x500677(0x21b)]),_0xc50e09=new _0x2cd6fc(this[_0x500677(0x1ee)][_0x500677(0x21b)]);_0x4ba95c[_0x500677(0x17d)]({'icon':_0x316282,'label':_0x4d55e4(this[_0x500677(0x1ee)][_0x500677(0x21b)],_0x500677(0x211)),'tooltip':!0x0,'class':_0x500677(0x206)}),_0x2c0462[_0x500677(0x17d)]({'icon':_0x5589f7,'tooltip':_0x4d55e4(this[_0x500677(0x1ee)][_0x500677(0x21b)],_0x500677(0x171)),'class':_0x500677(0x21d)}),_0x2db0c7[_0x500677(0x198)]({'tag':_0x500677(0x1cb),'attributes':{'class':[_0x500677(0x22a)]},'children':[_0x500677(0x227)]}),_0xc50e09[_0x500677(0x17d)]({'icon':_0x46c6e0,'tooltip':_0x4d55e4(this[_0x500677(0x1ee)][_0x500677(0x21b)],_0x500677(0x1d9)),'class':_0x500677(0x1cd)}),_0x4ba95c[_0x500677(0x1db)](_0x500677(0x196))['to'](this,_0x500677(0x1d6),_0x222d98=>!_0x222d98),_0x4ba95c['on'](_0x500677(0x1ca),()=>{const _0x2fe088=_0x500677;this[_0x2fe088(0x219)]();}),_0x2c0462[_0x500677(0x1db)](_0x500677(0x196))['to'](this,_0x500677(0x1d6),_0x272432=>!_0x272432),_0x2c0462['on'](_0x500677(0x1ca),()=>{const _0x2900b7=_0x500677;this[_0x2900b7(0x192)]();}),_0xc50e09[_0x500677(0x1db)](_0x500677(0x196))['to'](this,_0x500677(0x1d6),_0x336dcd=>!_0x336dcd),_0xc50e09['on'](_0x500677(0x1ca),()=>{const _0x13843b=_0x500677;this[_0x13843b(0x1c0)]();}),this[_0x500677(0x178)]=_0x2c0462,this[_0x500677(0x221)]=_0x2db0c7,this[_0x500677(0x23d)]=_0xc50e09,this[_0x500677(0x1f5)][_0x500677(0x180)](_0x4ba95c);}[_0x102540(0x192)](){const _0xd5c0d0=_0x102540,_0x992810=this[_0xd5c0d0(0x1bd)][_0xd5c0d0(0x1d1)];this[_0xd5c0d0(0x1dd)]<_0x992810-0x1&&this[_0xd5c0d0(0x1b0)](this[_0xd5c0d0(0x1dd)]+0x1);}[_0x102540(0x1c0)](){const _0x4112ed=_0x102540;this[_0x4112ed(0x1dd)]>0x0&&this[_0x4112ed(0x1b0)](this[_0x4112ed(0x1dd)]-0x1);}async[_0x102540(0x1b0)](_0x4acc1f){const _0x46b0fd=_0x102540;if(!this[_0x46b0fd(0x1ac)])return;this[_0x46b0fd(0x1dd)]=_0x4acc1f;const {mainView:_0x44c2e4}=this[_0x46b0fd(0x1ac)],_0x1da6d5=this[_0x46b0fd(0x1bd)][this[_0x46b0fd(0x1bd)][_0x46b0fd(0x1d1)]-0x1-this[_0x46b0fd(0x1dd)]];if(!_0x1da6d5)return;if(_0x1da6d5[_0x46b0fd(0x229)])return this[_0x46b0fd(0x1d2)](_0x1da6d5,_0x44c2e4),void this[_0x46b0fd(0x1bb)]();if(!_0x1da6d5[_0x46b0fd(0x1a4)][_0x46b0fd(0x1d1)])return;_0x44c2e4[_0x46b0fd(0x1ff)](),this[_0x46b0fd(0x1ac)]&&this[_0x46b0fd(0x1e0)](_0x44c2e4,this[_0x46b0fd(0x1ac)][_0x46b0fd(0x234)]);const _0x3fc08f=_0x1da6d5[_0x46b0fd(0x1a4)][_0x1da6d5[_0x46b0fd(0x1a4)][_0x46b0fd(0x1d1)]-0x1];if(_0x3fc08f){const _0x1dafde=this[_0x46b0fd(0x1ee)];this[_0x46b0fd(0x1fa)](_0x44c2e4);try{const _0x123529=_0x27e4d8({'editor':_0x1dafde,'changeGroups':_0x3fc08f[_0x46b0fd(0x19a)],'documentContextContent':_0x3fc08f[_0x46b0fd(0x222)],'showDiff':this[_0x46b0fd(0x223)],'trimUnchanged':!0x1});this[_0x46b0fd(0x1fa)](_0x44c2e4),await new Promise(_0x50713a=>setTimeout(_0x50713a,0x32)),await _0x44c2e4[_0x46b0fd(0x1fd)]({'parts':_0x123529,'renderingStrategy':_0x46b0fd(0x21e),'abortSignal':new AbortController()[_0x46b0fd(0x19e)]});}catch(_0x4e1b5a){this[_0x46b0fd(0x245)](_0x4e1b5a)||console[_0x46b0fd(0x23f)](_0x46b0fd(0x17b),_0x4e1b5a);}}this[_0x46b0fd(0x1bb)]();}[_0x102540(0x1bb)](){const _0x4cf9a0=_0x102540;if(!this[_0x4cf9a0(0x178)]||!this[_0x4cf9a0(0x221)]||!this[_0x4cf9a0(0x23d)])return;const _0x1b447d=this[_0x4cf9a0(0x1bd)][_0x4cf9a0(0x1d1)],_0x3580cf=_0x1b447d>0x1,_0x3a1cf8=this[_0x4cf9a0(0x1ac)]?.[_0x4cf9a0(0x20b)];if(_0x3580cf){this[_0x4cf9a0(0x230)]||this[_0x4cf9a0(0x1de)]||this[_0x4cf9a0(0x1a3)]||(this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x180)](this[_0x4cf9a0(0x178)]),_0x3a1cf8?.[_0x4cf9a0(0x20e)](this[_0x4cf9a0(0x178)]),this[_0x4cf9a0(0x230)]=!0x0,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x180)](this[_0x4cf9a0(0x221)]),_0x3a1cf8?.[_0x4cf9a0(0x20e)](this[_0x4cf9a0(0x221)]),this[_0x4cf9a0(0x1de)]=!0x0,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x180)](this[_0x4cf9a0(0x23d)]),_0x3a1cf8?.[_0x4cf9a0(0x20e)](this[_0x4cf9a0(0x23d)]),this[_0x4cf9a0(0x1a3)]=!0x0);const _0x273f83=_0x1b447d-this[_0x4cf9a0(0x1dd)];this[_0x4cf9a0(0x221)][_0x4cf9a0(0x20d)]&&(this[_0x4cf9a0(0x221)][_0x4cf9a0(0x20d)][_0x4cf9a0(0x183)]=_0x273f83+'/'+_0x1b447d),this[_0x4cf9a0(0x178)][_0x4cf9a0(0x196)]=this[_0x4cf9a0(0x1dd)]<_0x1b447d-0x1,this[_0x4cf9a0(0x23d)][_0x4cf9a0(0x196)]=this[_0x4cf9a0(0x1dd)]>0x0;}else(this[_0x4cf9a0(0x230)]||this[_0x4cf9a0(0x1de)]||this[_0x4cf9a0(0x1a3)])&&(this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x1a0)](this[_0x4cf9a0(0x178)]),_0x3a1cf8?.[_0x4cf9a0(0x1e1)](this[_0x4cf9a0(0x178)]),this[_0x4cf9a0(0x230)]=!0x1,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x1a0)](this[_0x4cf9a0(0x221)]),_0x3a1cf8?.[_0x4cf9a0(0x1e1)](this[_0x4cf9a0(0x221)]),this[_0x4cf9a0(0x1de)]=!0x1,this[_0x4cf9a0(0x1f5)][_0x4cf9a0(0x1a0)](this[_0x4cf9a0(0x23d)]),_0x3a1cf8?.[_0x4cf9a0(0x1e1)](this[_0x4cf9a0(0x23d)]),this[_0x4cf9a0(0x1a3)]=!0x1);}[_0x102540(0x1e2)](_0xe8bb34,_0x94163c){const _0x153392=_0x102540;_0xe8bb34[_0x153392(0x1a2)](),_0x94163c[_0x153392(0x23b)][_0x153392(0x1a2)](),this[_0x153392(0x1d6)]=!0x0;}async[_0x102540(0x1d2)](_0x3ffead,_0x359d10){const _0x406413=_0x102540,_0x2c51fb=_0x4d55e4(this[_0x406413(0x1ee)][_0x406413(0x21b)],_0x406413(0x22f));_0x359d10[_0x406413(0x1a8)](_0x2c51fb),_0x3ffead[_0x406413(0x229)]=!0x0,await this[_0x406413(0x236)][_0x406413(0x16b)],_0x359d10[_0x406413(0x228)](),this[_0x406413(0x1ac)]?.[_0x406413(0x234)][_0x406413(0x23b)][_0x406413(0x217)]&&(this[_0x406413(0x1ac)][_0x406413(0x234)][_0x406413(0x23b)][_0x406413(0x217)][_0x406413(0x21a)]=!0x0);}[_0x102540(0x1e0)](_0x208c5d,_0xe3a638){const _0x511110=_0x102540;_0x208c5d[_0x511110(0x1b5)](),_0xe3a638[_0x511110(0x23b)][_0x511110(0x217)]&&(_0xe3a638[_0x511110(0x23b)][_0x511110(0x217)][_0x511110(0x21a)]=!0x1);}async[_0x102540(0x17e)](_0x29bdf3,_0x112b77){const _0x42ddca=_0x102540;await this[_0x42ddca(0x236)][_0x42ddca(0x16b)],this[_0x42ddca(0x1d6)]=!0x1,_0x29bdf3[_0x42ddca(0x207)](),_0x112b77[_0x42ddca(0x23b)][_0x42ddca(0x207)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x754c03=_0x5c24;(function(_0x2e0088,_0x5a5e31){const _0x49b5ba=_0x5c24,_0x114f3e=_0x2e0088();while(!![]){try{const _0x2ca34a=-parseInt(_0x49b5ba(0x1c7))/0x1+parseInt(_0x49b5ba(0x1d1))/0x2*(parseInt(_0x49b5ba(0x1ce))/0x3)+-parseInt(_0x49b5ba(0x1d8))/0x4*(parseInt(_0x49b5ba(0x1dc))/0x5)+parseInt(_0x49b5ba(0x1c9))/0x6+parseInt(_0x49b5ba(0x1d2))/0x7*(parseInt(_0x49b5ba(0x1dd))/0x8)+parseInt(_0x49b5ba(0x1e1))/0x9+-parseInt(_0x49b5ba(0x1e8))/0xa*(parseInt(_0x49b5ba(0x1cf))/0xb);if(_0x2ca34a===_0x5a5e31)break;else _0x114f3e['push'](_0x114f3e['shift']());}catch(_0x115a96){_0x114f3e['push'](_0x114f3e['shift']());}}}(_0x41f4,0x4913a));function _0x5c24(_0x2193b4,_0x4c9de2){const _0x41f408=_0x41f4();return _0x5c24=function(_0x5c2494,_0x5be29b){_0x5c2494=_0x5c2494-0x1c7;let _0x30d911=_0x41f408[_0x5c2494];return _0x30d911;},_0x5c24(_0x2193b4,_0x4c9de2);}function _0x41f4(){const _0x3e2493=['html','userMessage','5ChAjIZ','371808TYOeqo','editor','executeCustomAction','hasError','3734829iZUILt','model','replies','getDocumentContext','TEXT','sendRequest','current-document','10344770kMNQVq','317nxGaSR','fire','1958124hJrJvC','push','content','connector','delegate','42771gJtTpO','11asCWzj','Current\x20document','48PKtVDC','63VnoexI','replyCreated','actionName','args','executeAction','version','670684dKBFfL','createReply'];_0x41f4=function(){return _0x3e2493;};return _0x41f4();}import{AIInteraction as _0x324a2f,AI_MODEL_EVENT_NAMES as _0x77d49e}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x564342}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x360978}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x324a2f{[_0x754c03(0x1cb)];[_0x754c03(0x1d7)];[_0x754c03(0x1d4)];[_0x754c03(0x1d5)];[_0x754c03(0x1db)];[_0x754c03(0x1e2)];[_0x754c03(0x1e0)]=!0x1;constructor(_0xf98e2b){const _0x4573df=_0x754c03;super(_0xf98e2b),this[_0x4573df(0x1cb)]=_0xf98e2b[_0x4573df(0x1cb)],this[_0x4573df(0x1d7)]=_0xf98e2b[_0x4573df(0x1d7)],this[_0x4573df(0x1d4)]=_0xf98e2b[_0x4573df(0x1d4)],this[_0x4573df(0x1d5)]=_0xf98e2b[_0x4573df(0x1d5)],this[_0x4573df(0x1db)]=_0xf98e2b[_0x4573df(0x1db)],this[_0x4573df(0x1e2)]=_0xf98e2b[_0x4573df(0x1e2)];}async[_0x754c03(0x1e6)](){const _0x447332=_0x754c03;return this[_0x447332(0x1d4)]?this[_0x447332(0x1cc)][_0x447332(0x1d6)]({'content':this[_0x447332(0x1cb)],'actionName':this[_0x447332(0x1d4)],'args':this[_0x447332(0x1d5)]}):this[_0x447332(0x1cc)][_0x447332(0x1df)]({'content':this[_0x447332(0x1cb)],'message':this[_0x447332(0x1db)],'model':this[_0x447332(0x1e2)],'outputFormat':_0x447332(0x1da)});}[_0x754c03(0x1e4)](){const _0x338bc8=_0x754c03;return{'type':_0x564342[_0x338bc8(0x1e5)],'content':this[_0x338bc8(0x1cb)],'version':this[_0x338bc8(0x1d7)],'label':_0x338bc8(0x1d0),'uiId':_0x338bc8(0x1e7)};}[_0x754c03(0x1d9)](_0x2b1f0f){const _0x271fd3=_0x754c03,_0x24822c=new _0x360978({'editor':this[_0x271fd3(0x1de)],'documentContextContent':this[_0x271fd3(0x1cb)],..._0x2b1f0f});return this[_0x271fd3(0x1e3)][_0x271fd3(0x1ca)](_0x24822c),_0x24822c[_0x271fd3(0x1cd)](..._0x77d49e)['to'](this),this[_0x271fd3(0x1c8)](_0x271fd3(0x1d3),_0x24822c),_0x24822c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10307b=_0xf604;(function(_0x3bc661,_0x2fe060){const _0x2eefe5=_0xf604,_0x5e3b7f=_0x3bc661();while(!![]){try{const _0x34af50=-parseInt(_0x2eefe5(0x8e))/0x1*(parseInt(_0x2eefe5(0x87))/0x2)+-parseInt(_0x2eefe5(0x9e))/0x3+parseInt(_0x2eefe5(0x91))/0x4*(parseInt(_0x2eefe5(0x8b))/0x5)+parseInt(_0x2eefe5(0x9a))/0x6+-parseInt(_0x2eefe5(0x89))/0x7+parseInt(_0x2eefe5(0x8a))/0x8+-parseInt(_0x2eefe5(0x92))/0x9;if(_0x34af50===_0x2fe060)break;else _0x5e3b7f['push'](_0x5e3b7f['shift']());}catch(_0x3c5125){_0x5e3b7f['push'](_0x5e3b7f['shift']());}}}(_0x6383,0x300ff));import{AIReply as _0x311a4a}from'../../aicore/model/aireply.js';import{getAttribute as _0x1bbcaf}from'../../aicore/utils/htmlparser.js';import{uid as _0x1e3931}from'ckeditor5/src/utils.js';import{diffArrays as _0x3a1ee2}from'diff';export class AIActionsReply extends _0x311a4a{[_0x10307b(0x99)](){const _0x5a5032=_0x10307b;if(this[_0x5a5032(0x8c)]=this[_0x5a5032(0x86)][_0x5a5032(0x98)](!0x0),0x0==this[_0x5a5032(0x8c)][_0x5a5032(0x9f)][_0x5a5032(0x90)])return void(this[_0x5a5032(0x85)]=[]);const _0x2c4a6c=this[_0x5a5032(0x8d)][_0x5a5032(0x88)][_0x5a5032(0x8f)](_0x3fe84a=>({'node':_0x3fe84a,'id':_0x1bbcaf(_0x3fe84a,_0x5a5032(0x93))})),_0x67825=this[_0x5a5032(0x8c)][_0x5a5032(0x88)][_0x5a5032(0x8f)](_0x32fb4a=>({'node':_0x32fb4a,'id':_0x1bbcaf(_0x32fb4a,_0x5a5032(0x93))||_0x1e3931()})),_0x31dc80=_0x3a1ee2(_0x2c4a6c,_0x67825,{'comparator':(_0x367baa,_0x79893d)=>_0x367baa['id']==_0x79893d['id'],'oneChangePerToken':!0x0});if(!this[_0x5a5032(0x9b)]){for(;_0x31dc80[_0x5a5032(0x90)]&&_0x31dc80[_0x31dc80[_0x5a5032(0x90)]-0x1][_0x5a5032(0x83)];)_0x31dc80[_0x5a5032(0x94)]();}const _0x3b631f=_0x31dc80[_0x5a5032(0x8f)](_0x30f488=>{const _0x4d6e7f=_0x5a5032,_0x540ea9=_0x30f488[_0x4d6e7f(0x9c)]?_0x4d6e7f(0x96):_0x30f488[_0x4d6e7f(0x83)]?_0x4d6e7f(0x83):_0x4d6e7f(0x97);return{'node':_0x30f488[_0x4d6e7f(0x95)][0x0][_0x4d6e7f(0x84)],'type':_0x540ea9,'id':_0x30f488[_0x4d6e7f(0x95)][0x0]['id']};});this[_0x5a5032(0x85)]=[{'changes':_0x3b631f,'state':_0x5a5032(0x9d),'index':0x0}];}[_0x10307b(0x82)](_0x15cf75,_0x1155c5){return _0x1155c5;}}function _0xf604(_0x3c116d,_0x416c48){const _0x63836c=_0x6383();return _0xf604=function(_0xf6048,_0x8148ae){_0xf6048=_0xf6048-0x82;let _0x3b1ee0=_0x63836c[_0xf6048];return _0x3b1ee0;},_0xf604(_0x3c116d,_0x416c48);}function _0x6383(){const _0x40aacd=['modified','cloneNode','updateChangeGroups','400176kZcSsg','isDone','added','pending','1153656PSlwcd','childNodes','_getDifferentChangeGroups','removed','node','changeGroups','parsedContent','71542UPmapq','children','263018MvqknZ','2947272IVebQY','1834285UQwbmm','parsedMergedContent','documentContextContent','3DDmzhr','map','length','4SSPGGX','680940SRLQKJ','data-id','pop','value','new'];_0x6383=function(){return _0x40aacd;};return _0x6383();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x60af(_0x127a60,_0x17ff7e){var _0x5b7448=_0x5b74();return _0x60af=function(_0x60af4a,_0x407d15){_0x60af4a=_0x60af4a-0x156;var _0x5ae951=_0x5b7448[_0x60af4a];return _0x5ae951;},_0x60af(_0x127a60,_0x17ff7e);}var _0x10fe6f=_0x60af;(function(_0x258189,_0x35a10b){var _0xb14848=_0x60af,_0x1d930c=_0x258189();while(!![]){try{var _0x60212e=-parseInt(_0xb14848(0x156))/0x1*(parseInt(_0xb14848(0x15f))/0x2)+-parseInt(_0xb14848(0x167))/0x3*(parseInt(_0xb14848(0x164))/0x4)+parseInt(_0xb14848(0x158))/0x5*(parseInt(_0xb14848(0x161))/0x6)+-parseInt(_0xb14848(0x168))/0x7*(-parseInt(_0xb14848(0x160))/0x8)+-parseInt(_0xb14848(0x162))/0x9*(parseInt(_0xb14848(0x159))/0xa)+-parseInt(_0xb14848(0x15e))/0xb*(-parseInt(_0xb14848(0x157))/0xc)+parseInt(_0xb14848(0x16b))/0xd;if(_0x60212e===_0x35a10b)break;else _0x1d930c['push'](_0x1d930c['shift']());}catch(_0x4c636d){_0x1d930c['push'](_0x1d930c['shift']());}}}(_0x5b74,0x72f26));import{Plugin as _0xf16aa4}from'ckeditor5/src/core.js';import{CKEditorError as _0x11a083}from'ckeditor5/src/utils.js';export class AIAdapter extends _0xf16aa4{static get[_0x10fe6f(0x166)](){var _0x20ebb4=_0x10fe6f;return _0x20ebb4(0x15c);}static get[_0x10fe6f(0x15a)](){return!0x0;}static get[_0x10fe6f(0x163)](){return!0x0;}[_0x10fe6f(0x169)](){var _0x416d13=_0x10fe6f;if(!this[_0x416d13(0x15d)])throw new _0x11a083(_0x416d13(0x16a),null);}}export class AIRequestError extends Error{constructor(_0x49a33a){var _0x2b888b=_0x10fe6f;super(_0x49a33a),this[_0x2b888b(0x15b)]=_0x2b888b(0x165);}}function _0x5b74(){var _0x3b03d8=['194892xPPwvn','16UVntHY','18vPuCRK','27OrXwPs','isPremiumPlugin','4FVjGot','AIRequestError','pluginName','341805Jxxltz','2212973gTNxEB','afterInit','aiadapter-text-adapter-not-set','4289337SYHzlc','7TqnMMa','24abVEjQ','258155mQyyFh','2482410WpNrPL','isOfficialPlugin','name','AIAdapter','textAdapter','4919651VmZWxL'];_0x5b74=function(){return _0x3b03d8;};return _0x5b74();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x457e55=_0x3c6c;function _0x68d0(){const _0x1d668d=['get','AI_ERROR_GET_HEADERS','object','aborted','AbortError','abortController','application/json','4033592ZDKTpv','signal','186hkkGeB','plugins','editor','assign','4561869bgEYfB','abort','makeRequest','_prepareRequestParameters','10870848JxdrSF','_prepareRequestHeaders','237664OyXfBk','6983685VyeiTb','textAdapter','catch','sendRequest','reject','683LiLHif','AI_ERROR_GET_PARAMETERS','1886UkBMtv','resolve','requires','aitextadapter-send-request-failed','error','locale','3049296dGZSOc','init','name'];_0x68d0=function(){return _0x1d668d;};return _0x68d0();}(function(_0x48151e,_0xb2d157){const _0x3aa98a=_0x3c6c,_0x30be62=_0x48151e();while(!![]){try{const _0x40c07a=-parseInt(_0x3aa98a(0x155))/0x1*(parseInt(_0x3aa98a(0x157))/0x2)+-parseInt(_0x3aa98a(0x16d))/0x3+-parseInt(_0x3aa98a(0x167))/0x4+parseInt(_0x3aa98a(0x174))/0x5+-parseInt(_0x3aa98a(0x169))/0x6*(-parseInt(_0x3aa98a(0x173))/0x7)+parseInt(_0x3aa98a(0x15d))/0x8+parseInt(_0x3aa98a(0x171))/0x9;if(_0x40c07a===_0xb2d157)break;else _0x30be62['push'](_0x30be62['shift']());}catch(_0x1433d4){_0x30be62['push'](_0x30be62['shift']());}}}(_0x68d0,0xd33a9));import{Plugin as _0x2d6c74}from'ckeditor5/src/core.js';function _0x3c6c(_0x583459,_0x5bb406){const _0x68d02d=_0x68d0();return _0x3c6c=function(_0x3c6c77,_0x5ed12e){_0x3c6c77=_0x3c6c77-0x151;let _0x457ba6=_0x68d02d[_0x3c6c77];return _0x457ba6;},_0x3c6c(_0x583459,_0x5bb406);}import{CKEditorError as _0x2523f5}from'ckeditor5/src/utils.js';import{AIAdapter as _0x2fe7a0,AIRequestError as _0xd9a55b}from'./aiadapter.js';import{getTranslation as _0x2f63b0}from'../utils/common-translations.js';export class AITextAdapter extends _0x2d6c74{[_0x457e55(0x165)];static get[_0x457e55(0x159)](){return[_0x2fe7a0];}constructor(_0x24f044){const _0x1805c1=_0x457e55;super(_0x24f044),this[_0x1805c1(0x165)]=new AbortController();}[_0x457e55(0x15e)](){const _0x448535=_0x457e55;this[_0x448535(0x16b)][_0x448535(0x16a)][_0x448535(0x160)](_0x2fe7a0)[_0x448535(0x151)]=this;}[_0x457e55(0x16e)](){const _0x5dddec=_0x457e55;this[_0x5dddec(0x165)][_0x5dddec(0x168)][_0x5dddec(0x163)]||(this[_0x5dddec(0x165)][_0x5dddec(0x16e)](),this[_0x5dddec(0x165)]=new AbortController());}async[_0x457e55(0x16f)](_0x5755f6){const _0xb4f4d6=_0x457e55;return this[_0xb4f4d6(0x153)](_0x5755f6)[_0xb4f4d6(0x152)](_0x25e785=>{const _0x3527f2=_0xb4f4d6;if(_0x25e785 instanceof _0xd9a55b)return Promise[_0x3527f2(0x154)](_0x25e785);if(_0x3527f2(0x164)==_0x25e785[_0x3527f2(0x15f)])return Promise[_0x3527f2(0x158)]();throw console[_0x3527f2(0x15b)](_0x25e785),new _0x2523f5(_0x3527f2(0x15a),null);});}async[_0x457e55(0x172)](_0x380876,_0x2b5499){const _0x337e28=_0x457e55,_0x2445b8=this[_0x337e28(0x16b)][_0x337e28(0x15c)],_0x2f8dea={'Content-Type':_0x337e28(0x166)};if(_0x337e28(0x162)==typeof _0x380876)Object[_0x337e28(0x16c)](_0x2f8dea,_0x380876);else{if(_0x380876)try{const _0xb55207=await _0x380876(_0x2b5499);Object[_0x337e28(0x16c)](_0x2f8dea,_0xb55207);}catch{return Promise[_0x337e28(0x154)](new _0xd9a55b(_0x2f63b0(_0x2445b8,_0x337e28(0x161))));}}return _0x2f8dea;}async[_0x457e55(0x170)](_0x323d8c,_0x5aab2a){const _0x52cc16=_0x457e55,_0x2ebe24=this[_0x52cc16(0x16b)][_0x52cc16(0x15c)];if(_0x52cc16(0x162)==typeof _0x323d8c)return _0x323d8c;try{return await _0x323d8c(_0x5aab2a);}catch{return Promise[_0x52cc16(0x154)](new _0xd9a55b(_0x2f63b0(_0x2ebe24,_0x52cc16(0x156))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3529(_0x53b866,_0x74e66e){const _0x5edd9=_0x5edd();return _0x3529=function(_0x35299a,_0x4b07d1){_0x35299a=_0x35299a-0xd0;let _0x286173=_0x5edd9[_0x35299a];return _0x286173;},_0x3529(_0x53b866,_0x74e66e);}const _0x3764a9=_0x3529;(function(_0x238b1b,_0x2f0716){const _0x4c4053=_0x3529,_0x38b749=_0x238b1b();while(!![]){try{const _0x27998c=-parseInt(_0x4c4053(0xe0))/0x1*(-parseInt(_0x4c4053(0xda))/0x2)+-parseInt(_0x4c4053(0x103))/0x3+parseInt(_0x4c4053(0xf1))/0x4+-parseInt(_0x4c4053(0x10a))/0x5+-parseInt(_0x4c4053(0xdb))/0x6*(-parseInt(_0x4c4053(0x104))/0x7)+parseInt(_0x4c4053(0xef))/0x8*(parseInt(_0x4c4053(0x107))/0x9)+-parseInt(_0x4c4053(0xff))/0xa;if(_0x27998c===_0x2f0716)break;else _0x38b749['push'](_0x38b749['shift']());}catch(_0x3c7347){_0x38b749['push'](_0x38b749['shift']());}}}(_0x5edd,0x74f4b));import{AITextAdapter as _0x369bd5}from'./aitextadapter.js';import{AIRequestError as _0x4ce144}from'./aiadapter.js';import{BedrockRuntimeClient as _0x4d7238,InvokeModelCommand as _0x54060d,InvokeModelWithResponseStreamCommand as _0x403242}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4c5d76}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x369bd5{[_0x3764a9(0xf6)];[_0x3764a9(0xf9)];[_0x3764a9(0xf4)];[_0x3764a9(0x105)];static get[_0x3764a9(0x111)](){const _0x45418b=_0x3764a9;return _0x45418b(0xd4);}constructor(_0x3a8f95){const _0x53afcf=_0x3764a9;super(_0x3a8f95),_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0x10f))||_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xf8)](_0x53afcf(0x10f),{'model':_0x53afcf(0xfd),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x53afcf(0x110),'stream':!0x0}),this[_0x53afcf(0xf6)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0xfb)),this[_0x53afcf(0xf4)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0xde)),this[_0x53afcf(0xf9)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0xe6)),this[_0x53afcf(0x105)]=_0x3a8f95[_0x53afcf(0x117)][_0x53afcf(0xeb)](_0x53afcf(0x10f));}async[_0x3764a9(0xf5)]({query:_0x441436,context:_0x237efe,onData:_0x1a933f,actionId:_0x420cc6}){const _0x338ab6=_0x3764a9,{model:_0x1316d3,stream:_0x65adaf,..._0x5cbbd8}=await this[_0x338ab6(0xf0)](this[_0x338ab6(0x105)],_0x420cc6),_0xfd9577={'prompt':await this[_0x338ab6(0x11f)](_0x441436,_0x237efe,_0x1316d3,_0x420cc6),..._0x5cbbd8};this[_0x338ab6(0xf6)]?await this[_0x338ab6(0xfe)](_0xfd9577,_0x1316d3,_0x65adaf,_0x1a933f,_0x420cc6):await this[_0x338ab6(0x101)](_0xfd9577,_0x1316d3,_0x65adaf,_0x1a933f);}async[_0x3764a9(0x11f)](_0x5144e3,_0x45c91b,_0x17a040,_0x33b8ae){const _0x1d50c1=_0x3764a9;let _0x5a754b,_0x37eb86;return _0x45c91b?(_0x5a754b=_0x1d50c1(0x11e),_0x37eb86=_0x1d50c1(0xec)+_0x5144e3+_0x1d50c1(0xd7)+_0x45c91b):(_0x5a754b=_0x1d50c1(0xe2),_0x37eb86=_0x5144e3),_0x1d50c1(0x10e)==this[_0x1d50c1(0x116)](_0x17a040)?_0x1d50c1(0xe4)+_0x5a754b+_0x1d50c1(0x119)+_0x37eb86+_0x1d50c1(0x102):_0x1d50c1(0x108)+_0x5a754b+'\x0a'+_0x37eb86+_0x1d50c1(0x113);}[_0x3764a9(0x116)](_0x133836){const _0x2855cd=_0x3764a9;if(/^anthropic\.claude/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0xe9);if(/^ai21\.j2/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0xd8);if(/^cohere\.command/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0x118);if(/^meta\.llama/[_0x2855cd(0xfc)](_0x133836))return _0x2855cd(0x10e);throw new _0x4ce144(_0x4c5d76(this[_0x2855cd(0xed)][_0x2855cd(0x10c)],_0x2855cd(0xe8),_0x133836));}async[_0x3764a9(0xfe)](_0x76c93a,_0x45da5f,_0x4f5957,_0xdb07a8,_0x1c2fe5){const _0x3c6101=_0x3764a9,_0x383352={'method':_0x3c6101(0x11c),'headers':await this[_0x3c6101(0x109)](this[_0x3c6101(0xf9)],_0x1c2fe5),'body':JSON[_0x3c6101(0x11d)]({..._0x76c93a,'model':_0x45da5f,'stream':_0x4f5957}),'signal':this[_0x3c6101(0xd0)][_0x3c6101(0x115)]},_0x4f036f=await fetch(this[_0x3c6101(0xf6)],_0x383352);_0x4f5957?await this[_0x3c6101(0xd6)](_0x4f036f,_0x45da5f,_0xdb07a8):await this[_0x3c6101(0xe5)](_0x4f036f,_0x45da5f,_0xdb07a8);}async[_0x3764a9(0x101)](_0x1c8328,_0x3d7d23,_0x42d444,_0x1364db){const _0x188691=_0x3764a9,_0x1a7eb3=new _0x4d7238(this[_0x188691(0xf4)]),_0x5ef885={'body':JSON[_0x188691(0x11d)](_0x1c8328),'contentType':_0x188691(0x10b),'accept':_0x188691(0x10b),'modelId':_0x3d7d23};let _0x2f8f07;if(_0x42d444){const _0x3d65b8=new _0x403242(_0x5ef885);_0x2f8f07=await _0x1a7eb3[_0x188691(0xdf)](_0x3d65b8,{'abortSignal':this[_0x188691(0xd0)][_0x188691(0x115)]}),await this[_0x188691(0x114)](_0x2f8f07,_0x3d7d23,_0x1364db);}else{const _0x308f2f=new _0x54060d(_0x5ef885);_0x2f8f07=await _0x1a7eb3[_0x188691(0xdf)](_0x308f2f,{'abortSignal':this[_0x188691(0xd0)][_0x188691(0x115)]}),await this[_0x188691(0xe5)](_0x2f8f07,_0x3d7d23,_0x1364db);}}async[_0x3764a9(0x114)](_0x4a3ac6,_0x181ee8,_0x249061){const _0x1847c2=_0x3764a9,_0x84528b=_0x4a3ac6[_0x1847c2(0xd5)],_0x3456fa=new TextDecoder(_0x1847c2(0x112));let _0x238db4='';for await(const _0x590ead of _0x84528b)if(_0x590ead[_0x1847c2(0xf2)]){const _0x418c81=_0x3456fa[_0x1847c2(0xf7)](_0x590ead[_0x1847c2(0xf2)][_0x1847c2(0xd9)]),_0x20f76f=JSON[_0x1847c2(0xe7)](_0x418c81);_0x238db4+=this[_0x1847c2(0x11a)](_0x20f76f,_0x181ee8),_0x249061(_0x238db4);}return Promise[_0x1847c2(0x11b)]();}async[_0x3764a9(0xd6)](_0x80a545,_0x1a49ad,_0x104ee0){const _0x3862ca=_0x3764a9,_0x705062=_0x80a545[_0x3862ca(0xd5)],_0x16d323=new TextDecoder(_0x3862ca(0x112)),_0x15b14c=_0x705062[_0x3862ca(0xfa)]();let _0xfd66ce='',_0x35fc3e='',_0x59c5e5=!0x1;for(;!_0x59c5e5;){const {done:_0x2fff8e,value:_0x202c16}=await _0x15b14c[_0x3862ca(0xe3)]();if(_0x59c5e5=_0x2fff8e,_0x59c5e5)break;const _0x1e1d0a=(_0xfd66ce+_0x16d323[_0x3862ca(0xf7)](_0x202c16))[_0x3862ca(0x100)]('\x0a')[_0x3862ca(0xee)](_0x678de9=>{const _0x26bc27=_0x3862ca;try{return _0xfd66ce='',JSON[_0x26bc27(0xe7)](_0x678de9);}catch{return _0xfd66ce=_0x678de9,null;}})[_0x3862ca(0xd3)](_0x3d43a3=>null!==_0x3d43a3);_0x1e1d0a[_0x3862ca(0xf3)]&&(_0x35fc3e+=_0x1e1d0a[_0x3862ca(0xee)](_0x9f92bc=>this[_0x3862ca(0x11a)](_0x9f92bc,_0x1a49ad))[_0x3862ca(0xea)](''),_0x104ee0(_0x35fc3e));}return Promise[_0x3862ca(0x11b)]();}async[_0x3764a9(0xe5)](_0xd7d7ca,_0x369ce8,_0x2c47bf){const _0x5bb193=_0x3764a9;let _0x1ec797;return _0x1ec797=_0xd7d7ca instanceof Response?await _0xd7d7ca[_0x5bb193(0xdd)]():JSON[_0x5bb193(0xe7)](new TextDecoder(_0x5bb193(0x112))[_0x5bb193(0xf7)](_0xd7d7ca[_0x5bb193(0xd5)])),(_0x2c47bf(this[_0x5bb193(0x11a)](_0x1ec797,_0x369ce8)),Promise[_0x5bb193(0x11b)]());}[_0x3764a9(0x11a)](_0x76b14f,_0x5f4b62){const _0x549597=_0x3764a9;switch(this[_0x549597(0x116)](_0x5f4b62)){case _0x549597(0xe9):return _0x76b14f[_0x549597(0x10d)];case _0x549597(0xd8):return _0x76b14f[_0x549597(0xd2)][0x0][_0x549597(0xd1)][_0x549597(0xe1)];case _0x549597(0x118):return _0x76b14f[_0x549597(0x106)][0x0][_0x549597(0xe1)];case _0x549597(0x10e):return _0x76b14f[_0x549597(0xdc)];}}}function _0x5edd(){const _0x1850cc=['3622195JPnDFG','application/json','locale','completion','meta.llama','ai.assistant.adapter.aws.requestParameters','bedrock-2023-05-31','pluginName','utf-8','\x0a\x0aAssistant:','_readAsyncIterableResponse','signal','getModelFamily','config','cohere.command','\x0a<</SYS>>\x0a[INST]\x0a','_getGeneratedText','resolve','POST','stringify','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','preparePrompt','abortController','data','completions','filter','AWSTextAdapter','body','_readStreamableResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','ai21.j2','bytes','2GZrnnF','24vCTzlZ','generation','json','ai.assistant.adapter.aws.bedrockClientConfig','send','897053YhznkI','text','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','read','<<SYS>>\x0a','_readStaticResponse','ai.assistant.adapter.aws.requestHeaders','parse','AI_ERROR_UNSUPPORTED_MODEL','anthropic.claude','join','get','Instruction:\x0a','editor','map','16dmZavJ','_prepareRequestParameters','970264FQaMPf','chunk','length','_bedrockClientConfig','sendRequest','_apiUrl','decode','define','_requestHeaders','getReader','ai.assistant.adapter.aws.apiUrl','test','anthropic.claude-v2','_processProxyRequest','3712570vldpud','split','_processAWSRequest','\x0a[/INST]','394566qOYNaq','716744tpEQJT','_requestParameters','generations','706869bXMUqU','Human:\x0a','_prepareRequestHeaders'];_0x5edd=function(){return _0x1850cc;};return _0x5edd();}
|