@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +9 -2
- package/dist/index-editor.css +119 -34
- package/dist/index.css +144 -35
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/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 +3 -3
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +6 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +2 -4
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +11 -4
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
- 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.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +4 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +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.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.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +2 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +2 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +3 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +31 -3
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -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/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +4 -0
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.d.ts +5 -0
- package/src/errors.js +23 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
- package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
- package/theme/aichat/aichat-controls.css +1 -0
- package/theme/aichat/aichat.css +0 -1
- package/theme/aichat/aichatfeed.css +9 -0
- package/theme/aichat/aisuggestioncontainer.css +7 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
- package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
- package/theme/aitabs/aitabsview.css +2 -2
- package/theme/aitabs/tabs/tabsview.css +13 -3
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.0.
|
|
3
|
+
"version": "47.1.0-alpha.1",
|
|
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.
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.0.
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.0.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.0.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.0.
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.0.
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.0.
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.0.
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.0.
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.0.
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.0.
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.0.
|
|
44
|
-
"ckeditor5": "47.0.
|
|
45
|
-
"ckeditor5-collaboration": "47.0.
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.1.0-alpha.1",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.1.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.1.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.1.0-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.1.0-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.1.0-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.1.0-alpha.1",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.1.0-alpha.1",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.1.0-alpha.1",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.1.0-alpha.1",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.1.0-alpha.1",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.1.0-alpha.1",
|
|
44
|
+
"ckeditor5": "47.1.0-alpha.1",
|
|
45
|
+
"ckeditor5-collaboration": "47.1.0-alpha.1",
|
|
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 _0x4a36d1=_0x5215;(function(_0x4fe8b8,_0x594443){const _0x3f3c9d=_0x5215,_0x46b97a=_0x4fe8b8();while(!![]){try{const _0x1df80f=parseInt(_0x3f3c9d(0x256))/0x1+parseInt(_0x3f3c9d(0x24f))/0x2+-parseInt(_0x3f3c9d(0x21b))/0x3*(-parseInt(_0x3f3c9d(0x20d))/0x4)+-parseInt(_0x3f3c9d(0x26c))/0x5*(parseInt(_0x3f3c9d(0x202))/0x6)+parseInt(_0x3f3c9d(0x229))/0x7*(-parseInt(_0x3f3c9d(0x20a))/0x8)+parseInt(_0x3f3c9d(0x258))/0x9*(parseInt(_0x3f3c9d(0x27d))/0xa)+-parseInt(_0x3f3c9d(0x28a))/0xb;if(_0x1df80f===_0x594443)break;else _0x46b97a['push'](_0x46b97a['shift']());}catch(_0x1036a4){_0x46b97a['push'](_0x46b97a['shift']());}}}(_0x1f3e,0x2aa89));import{Plugin as _0x1a1e36}from'ckeditor5/src/core.js';import{AIConnector as _0x5d1b1e}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x365b43}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x5215(_0x4d0c29,_0x47fabd){const _0x1f3efc=_0x1f3e();return _0x5215=function(_0x5215da,_0x1ba3fc){_0x5215da=_0x5215da-0x1cd;let _0x5a1158=_0x1f3efc[_0x5215da];return _0x5a1158;},_0x5215(_0x4d0c29,_0x47fabd);}import{Dialog as _0x16092a,ButtonView as _0x44fa11,ViewCollection as _0x1c40ca,View as _0x235b3f}from'ckeditor5/src/ui.js';import{AIEditing as _0x2ab615}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x526c35}from'./model/aiactionsinteraction.js';import{first as _0x3d1f76}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0xc8a02,IconRefresh as _0x2c56b6,IconNextArrow as _0x2763ac,IconPreviousArrow as _0x46b546,IconShowChangesOff as _0x231bd9}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1cf185}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x915ba1}from'../aichat/utils/promisequeue.js';function _0x1f3e(){const _0x4c63c9=['_anchorOperation','getSelectionAsFragment','schema','_isNavigationPreviousButtonInView','executeAction','data','mainView','Error\x20updating\x20content\x20during\x20navigation:','getSelectedBlocks','batch','isOfficialPlugin','_navigationNextButton','_displayInteractionAtIndex','root','_clearLoadingState','stopInteraction','replyContentUpdated','includes','hasPendingParts','getSelectedTableCells','actionName','_getExecuteDataInTable','getDocumentContext','TableSelection','getChild','AIConnector','areChangesVisible','addOperation','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getFirstRange','AIActions','open','_setupCustomViews','position','abort','_navigationPreviousButton','showChangesButton','end','ck-ai-custom-action-button','removeNavigationItem','_refreshInteraction','_currentInteractionIndex','createRange','error','listenTo','_promiseQueue','type','element','isPremiumPlugin','document','editor','span','execute','range','createPositionBefore','rename','AIBalloon','_applyChanges','_clone','rootName','sourcePosition','textContent','split','_appendChild','filter','has','changeGroups','documentContextContent','showError','_setErrorState','84324LrMHPA','getLimitElement','createPositionAt','push','_filterOperationsOutsideRange','aiBalloon','isEnabled','applyOperation','916120MbWUvO','parent','hideLoader','252EEcSBE','path','AI_ACTIONS_NEXT_INTERACTION','hideError','clone','Attribute','_createInteraction','_interactions','upsertAIActionRating','baseVersion','setLoading','AI_ACTIONS_GENERIC_ERROR','change','clearErrorState','11682aqiTzd','replyCreated','stop','_navigateToPrevious','bodyView','signal','Error\x20refreshing\x20interaction:','add','AI_ACTIONS_TRY_AGAIN','focus','Error\x20updating\x20content\x20in\x20replyContentUpdated:','toggleSuggestionDisplayMode','move','state','14KSYOiL','icon','enqueue','setChangeGroupState','merge','indexOf','getRoot','_execute','get','_clearInteractionHistory','_balloonShowDiff','actionCallId','isLoading','_applyOperationsAsSuggestions','setErrorState','set','upsertCustomAIActionRating','_customViews','_navigateToNext','_isNavigationNextButtonInView','replyChangeGroupStateUpdated','setTemplate','replies','getRanges','message','setSelection','_children','interactionFinished','createPositionAfter','pending','nextSibling','static','addNavigationItem','_updateNavigationUI','_stopInteraction','remove','startsWith','accepted','525494xaOYgM','howMany','length','isCollapsed','ck-ai-interaction-counter','showLoader','insert','157276hXLWCG','_wrapWithCommonAncestors','333JHAPak','ai-request-aborted','catch','Error\x20updating\x20content\x20in\x20replyCreated:','reinsert','processor','getOperations','pluginName','queueEmptyPromise','plugins','AI_ACTIONS_PREVIOUS_INTERACTION','locale','_setLoadingState','modelToViewWithIds','getAncestors','isDocumentOperation','isBusy','applySuggestion','operationsA','bind','40vXSXMp','ck-ai-navigation-button\x20ck-ai-next-button','insertSuggestion','getCommonAncestor','_executeAction','getSelectedContent','_clearSuggestionContent','_getExecuteDataRegular','ck-ai-navigation-button\x20ck-ai-previous-button','_interactionParams','_interaction','hasError','first','start','documentFragment','random','getChildAtOffset','47660zDnHPX','streaming','_isAbortError','slice','_isNavigationCounterInView','version','stopListening','_navigationCounter','map','requires','updateContent','_aiConnector','_clearErrorState','3580456PUvOvZ','toData','toolbar','clearLoading','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','nodeAfter','TrackChangesEditing','miniToolbarView','balloonView','selection','1/1','dialogClosed','history','close','rejected','$graveyard','model','stickiness'];_0x1f3e=function(){return _0x4c63c9;};return _0x1f3e();}import{getTranslation as _0x3d68fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4b9d8e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x1d9cac}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x510f01}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x42b98b,ModelRange as _0x479a8e,ModelPosition as _0x4e58c2,_DetachOperation as _0x2ecba7,transformOperationSets as _0x2a80ed}from'ckeditor5/src/engine.js';export class AIActions extends _0x1a1e36{static get[_0x4a36d1(0x286)](){return[_0x5d1b1e,_0x16092a,_0x2ab615,_0x1cf185,_0x1d9cac];}static get[_0x4a36d1(0x25f)](){const _0x9e8361=_0x4a36d1;return _0x9e8361(0x1da);}static get[_0x4a36d1(0x2a6)](){return!0x0;}static get[_0x4a36d1(0x1ec)](){return!0x0;}[_0x4a36d1(0x288)];[_0x4a36d1(0x214)]=[];[_0x4a36d1(0x1e5)]=0x0;[_0x4a36d1(0x275)];[_0x4a36d1(0x233)]=!0x1;[_0x4a36d1(0x23a)]=new _0x1c40ca();[_0x4a36d1(0x1df)];[_0x4a36d1(0x284)];[_0x4a36d1(0x281)]=!0x1;[_0x4a36d1(0x2a7)];[_0x4a36d1(0x29f)]=!0x1;[_0x4a36d1(0x23c)]=!0x1;[_0x4a36d1(0x1e9)];get[_0x4a36d1(0x276)](){const _0x20de6f=_0x4a36d1;return this[_0x20de6f(0x214)][this[_0x20de6f(0x214)][_0x20de6f(0x251)]-0x1];}constructor(_0x1e3cde){const _0x501e7f=_0x4a36d1;super(_0x1e3cde),this[_0x501e7f(0x288)]=this[_0x501e7f(0x1ee)][_0x501e7f(0x261)][_0x501e7f(0x231)](_0x501e7f(0x1d5)),this[_0x501e7f(0x238)](_0x501e7f(0x268),!0x1),this[_0x501e7f(0x1e9)]=new _0x915ba1(),this[_0x501e7f(0x1dc)]();}[_0x4a36d1(0x2ab)](){const _0x4ce97a=_0x4a36d1;this[_0x4ce97a(0x24b)]();}async[_0x4a36d1(0x2a0)](_0x1d7f63,_0x4f4f5b,_0xa952b4){const _0x31c3a9=_0x4a36d1;if(this[_0x31c3a9(0x1ee)][_0x31c3a9(0x261)][_0x31c3a9(0x1fd)](_0x31c3a9(0x1d3))){if(this[_0x31c3a9(0x1ee)][_0x31c3a9(0x261)][_0x31c3a9(0x231)](_0x31c3a9(0x1d3))[_0x31c3a9(0x1cf)]()){const {modelFragment:_0x56dfe9,anchorData:_0x30cb41}=this[_0x31c3a9(0x1d1)]();return this[_0x31c3a9(0x270)](_0x1d7f63,_0x56dfe9,_0x30cb41,_0x4f4f5b,_0xa952b4);}}const {modelFragment:_0x241760,anchorData:_0x1b3a4b}=this[_0x31c3a9(0x273)]();return this[_0x31c3a9(0x270)](_0x1d7f63,_0x241760,_0x1b3a4b,_0x4f4f5b,_0xa952b4);}[_0x4a36d1(0x273)](){const _0x266bc9=_0x4a36d1,_0x26bd18=this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x1ed)][_0x266bc9(0x293)];if(_0x26bd18[_0x266bc9(0x252)]){const _0x48165b=_0x3d1f76(_0x26bd18[_0x266bc9(0x2a4)]())||this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x29e)][_0x266bc9(0x203)](_0x26bd18);this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x219)](_0x30ef9f=>{const _0x311db7=_0x266bc9;_0x30ef9f[_0x311db7(0x242)](_0x48165b,'in');});}const _0x55be23=_0x26bd18[_0x266bc9(0x1d9)](),_0x3b99bb=this[_0x266bc9(0x257)](this[_0x266bc9(0x1ee)][_0x266bc9(0x29a)][_0x266bc9(0x271)](_0x26bd18),_0x55be23[_0x266bc9(0x279)],_0x55be23[_0x266bc9(0x1e1)]),_0x33e014=_0x26bd18[_0x266bc9(0x1d9)]()[_0x266bc9(0x279)],_0x11339e=new Map();let _0x8ba7dd=_0x3b99bb;for(let _0x91aaa9=0x0;_0x91aaa9<_0x33e014[_0x266bc9(0x20e)][_0x266bc9(0x251)];_0x91aaa9++)_0x11339e[_0x266bc9(0x238)](_0x8ba7dd,_0x33e014[_0x266bc9(0x20e)][_0x91aaa9]),_0x8ba7dd=_0x8ba7dd[_0x266bc9(0x1d4)](0x0);return{'modelFragment':_0x3b99bb,'anchorData':_0x11339e};}[_0x4a36d1(0x1d1)](){const _0x8d0169=_0x4a36d1,_0x262553=this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x1ed)][_0x8d0169(0x293)],_0xe7808e=this[_0x8d0169(0x1ee)][_0x8d0169(0x261)][_0x8d0169(0x231)](_0x8d0169(0x1d3))[_0x8d0169(0x29d)](),_0x4731fb=_0x262553[_0x8d0169(0x1d9)]()[_0x8d0169(0x279)][_0x8d0169(0x20b)][_0x8d0169(0x20b)],_0x3a3c21=this[_0x8d0169(0x257)](_0xe7808e,this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x1f2)](_0x4731fb),this[_0x8d0169(0x1ee)][_0x8d0169(0x29a)][_0x8d0169(0x245)](_0x4731fb)),_0x26a2fb=_0x262553[_0x8d0169(0x1d9)]()[_0x8d0169(0x279)],_0xe51074=new Map();let _0x462b32=_0x3a3c21;for(let _0x4d9648=0x0;_0x4d9648<_0x26a2fb[_0x8d0169(0x20e)][_0x8d0169(0x251)];_0x4d9648++)if(_0xe51074[_0x8d0169(0x238)](_0x462b32,_0x26a2fb[_0x8d0169(0x20e)][_0x4d9648]),_0x4d9648<_0x26a2fb[_0x8d0169(0x20e)][_0x8d0169(0x251)]-0x1)_0x462b32=_0x462b32[_0x8d0169(0x1d4)](0x0);else{let _0x597644=_0x462b32[_0x8d0169(0x247)];for(;_0x597644;)_0xe51074[_0x8d0169(0x238)](_0x597644,_0x26a2fb[_0x8d0169(0x20e)][_0x4d9648]),_0x597644=_0x597644[_0x8d0169(0x247)];}return{'modelFragment':_0x3a3c21,'anchorData':_0xe51074};}[_0x4a36d1(0x270)](_0x353ea0,_0x4c1b7a,_0x511ccd,_0x159ac5,_0x4d3b4c){const _0x2c31cb=_0x4a36d1,_0xb9ac42=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x261)][_0x2c31cb(0x231)](_0x2ab615),_0x4c333d=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x261)][_0x2c31cb(0x231)](_0x1cf185),_0xe3c4f7=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x29a)][_0x2c31cb(0x1ed)][_0x2c31cb(0x293)],_0x2e8580=_0xb9ac42[_0x2c31cb(0x265)](_0x4c1b7a),_0xf76ec9=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x2a1)][_0x2c31cb(0x25d)][_0x2c31cb(0x28b)](_0x2e8580),_0x5d1f5c=this[_0x2c31cb(0x1ee)][_0x2c31cb(0x29a)][_0x2c31cb(0x1ed)][_0x2c31cb(0x282)],_0x2f0e27=[..._0xe3c4f7[_0x2c31cb(0x240)]()],_0x38ed2d=new _0x365b43(this[_0x2c31cb(0x1ee)][_0x2c31cb(0x263)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x2c31cb(0x22a),'customView':this[_0x2c31cb(0x23a)]},'showUnchangedParts':!0x0});return _0x4c333d[_0x2c31cb(0x1db)]({'index':0x3e8*Math[_0x2c31cb(0x27b)]()%0x3e8,'title':_0x159ac5,'icon':_0x4d3b4c||_0xc8a02,'mainView':_0x38ed2d,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x2f0e27}),this[_0x2c31cb(0x264)](_0x38ed2d,_0x4c333d),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x269),()=>{const _0xf50ea0=_0x2c31cb;this[_0xf50ea0(0x1f5)](_0x4c1b7a,_0x511ccd,!0x1);}),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x26e),()=>{const _0x15bc14=_0x2c31cb;this[_0x15bc14(0x1f5)](_0x4c1b7a,_0x511ccd,!0x0);}),this[_0x2c31cb(0x1e8)](_0x4c333d,_0x2c31cb(0x295),()=>{const _0x4d9344=_0x2c31cb;if(this[_0x4d9344(0x276)]&&this[_0x4d9344(0x276)][_0x4d9344(0x23f)][_0x4d9344(0x251)]>0x0){const _0xcd45f0=this[_0x4d9344(0x276)][_0x4d9344(0x23f)][this[_0x4d9344(0x276)][_0x4d9344(0x23f)][_0x4d9344(0x251)]-0x1],_0x1ea30e=_0xcd45f0[_0x4d9344(0x1fe)][0x0];_0x1ea30e&&_0x4d9344(0x246)===_0x1ea30e[_0x4d9344(0x228)]&&_0xcd45f0[_0x4d9344(0x22c)](0x0,_0x4d9344(0x298));}this[_0x4d9344(0x24b)](),this[_0x4d9344(0x232)](),this[_0x4d9344(0x283)](_0x4c333d);}),this[_0x2c31cb(0x213)](_0xf76ec9,_0x5d1f5c,_0x38ed2d,_0x4c333d,_0x353ea0);}[_0x4a36d1(0x257)](_0x5ec16c,_0x41fac1,_0x269038){const _0x5bb97a=_0x4a36d1,_0x32139c=this[_0x5bb97a(0x1ee)][_0x5bb97a(0x29a)][_0x5bb97a(0x1e6)](_0x41fac1,_0x269038)[_0x5bb97a(0x26f)](),_0x5533a6=_0x32139c['is'](_0x5bb97a(0x27a))?[]:_0x32139c[_0x5bb97a(0x266)]({'includeSelf':!0x0})[_0x5bb97a(0x280)](0x1);if(_0x5533a6[_0x5bb97a(0x251)]){const _0x174f3e=_0x5533a6[_0x5bb97a(0x285)](_0x58245c=>_0x58245c[_0x5bb97a(0x1f6)](!0x1));for(let _0x577466=0x1;_0x577466<_0x174f3e[_0x5bb97a(0x251)];_0x577466++)_0x174f3e[_0x577466-0x1][_0x5bb97a(0x1fb)](_0x174f3e[_0x577466]);return _0x174f3e[_0x174f3e[_0x5bb97a(0x251)]-0x1][_0x5bb97a(0x1fb)](_0x5ec16c),new _0x42b98b(_0x174f3e[0x0]);}return _0x5ec16c;}async[_0x4a36d1(0x213)](_0x7a03cf,_0x14c8c2,_0x4abedf,_0x62491f,_0x8b8760){const _0x667020=_0x4a36d1,_0x4ea0b8=this[_0x667020(0x1ee)];this[_0x667020(0x275)]={'action':_0x8b8760,'content':_0x7a03cf,'version':_0x14c8c2,'mainView':_0x4abedf,'aiBalloon':_0x62491f};const _0x46077f=new _0x526c35({'connector':this[_0x667020(0x288)],'editor':_0x4ea0b8,'content':_0x7a03cf,'version':_0x14c8c2,..._0x8b8760});this[_0x667020(0x214)][_0x667020(0x205)](_0x46077f),_0x4abedf[_0x667020(0x210)]();const _0x405bba=(_0x1ffdbb,_0x7cf30,_0xee7b07=!0x1,_0x324714=_0x667020(0x27e))=>this[_0x667020(0x1e9)][_0x667020(0x22b)](async _0x53236d=>{const _0xc2b2ab=_0x667020;try{const _0x145f53=_0x4b9d8e({'editor':_0x4ea0b8,'changeGroups':_0x1ffdbb[_0xc2b2ab(0x1fe)],'documentContextContent':_0x1ffdbb[_0xc2b2ab(0x1ff)],'showDiff':_0xee7b07,'trimUnchanged':!0x1});await _0x7cf30[_0xc2b2ab(0x287)]({'parts':_0x145f53,'renderingStrategy':_0x324714,'abortSignal':_0x53236d});}catch(_0x4803a1){if(this[_0xc2b2ab(0x27f)](_0x4803a1))return;throw _0x4803a1;}});this[_0x667020(0x276)]['on'](_0x667020(0x21c),(_0xcad3ef,_0xf29310)=>{const _0x31e9bb=_0x667020;_0x4abedf[_0x31e9bb(0x20c)](),_0x405bba(_0xf29310,_0x4abedf)[_0x31e9bb(0x25a)](_0x2df334=>{const _0x5568ac=_0x31e9bb;this[_0x5568ac(0x27f)](_0x2df334)||(console[_0x5568ac(0x1e7)](_0x5568ac(0x25b),_0x2df334),this[_0x5568ac(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x2ac),(_0x5b9bfb,_0x2875df)=>{const _0x271818=_0x667020;_0x405bba(_0x2875df,_0x4abedf)[_0x271818(0x25a)](_0x17bfff=>{const _0x1f6513=_0x271818;this[_0x1f6513(0x27f)](_0x17bfff)||(console[_0x1f6513(0x1e7)](_0x1f6513(0x225),_0x17bfff),this[_0x1f6513(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x244),async()=>{const _0x307755=_0x667020;try{await this[_0x307755(0x2aa)](_0x4abedf,_0x62491f),this[_0x307755(0x24a)]();}catch(_0x2ee83a){this[_0x307755(0x27f)](_0x2ee83a)||(console[_0x307755(0x1e7)](_0x307755(0x1d8),_0x2ee83a),this[_0x307755(0x201)](_0x46077f,_0x4abedf));}}),this[_0x667020(0x1e8)](_0x4abedf,_0x667020(0x226),(_0x8411dc,{showDiff:_0x338378})=>{const _0x3cc66b=_0x667020;this[_0x3cc66b(0x233)]=_0x338378;const _0x56d1d2=this[_0x3cc66b(0x276)][_0x3cc66b(0x23f)][this[_0x3cc66b(0x276)][_0x3cc66b(0x23f)][_0x3cc66b(0x251)]-0x1];_0x56d1d2&&_0x405bba(_0x56d1d2,_0x4abedf,_0x338378,_0x3cc66b(0x248))[_0x3cc66b(0x25a)](_0x2a39b7=>{const _0x453552=_0x3cc66b;this[_0x453552(0x27f)](_0x2a39b7)||(console[_0x453552(0x1e7)](_0x453552(0x28e),_0x2a39b7),this[_0x453552(0x201)](_0x46077f,_0x4abedf));});}),this[_0x667020(0x276)]['on'](_0x667020(0x23d),(_0x10dfc2,{reply:_0x42a903})=>{const _0x414165=_0x667020,_0x34a0b={'positiveCount':_0x42a903[_0x414165(0x1fe)][_0x414165(0x1fc)](_0x4a3ce5=>_0x414165(0x24e)===_0x4a3ce5[_0x414165(0x228)])[_0x414165(0x251)],'totalCount':_0x42a903[_0x414165(0x1fe)][_0x414165(0x251)]},_0x4f6e9d=this[_0x414165(0x276)][_0x414165(0x234)],_0x1aa3d4=this[_0x414165(0x276)][_0x414165(0x1d0)];_0x1aa3d4?this[_0x414165(0x288)][_0x414165(0x215)](_0x1aa3d4,_0x4f6e9d,_0x34a0b):this[_0x414165(0x288)][_0x414165(0x239)](_0x4f6e9d,_0x34a0b);}),this[_0x667020(0x264)](_0x4abedf,_0x62491f);try{const _0x19e03c=await this[_0x667020(0x276)][_0x667020(0x279)]();return this[_0x667020(0x24a)](),_0x19e03c;}catch(_0x307d8e){if(this[_0x667020(0x27f)](_0x307d8e))return;_0x4abedf[_0x667020(0x20c)](),this[_0x667020(0x201)](_0x46077f,_0x4abedf);}}[_0x4a36d1(0x1f5)](_0x4d4d36,_0x4e6493,_0x18e24c){const _0x39eeed=_0x4a36d1,_0xb438e5=this[_0x39eeed(0x1ee)],_0x2c19b9=this[_0x39eeed(0x1ee)][_0x39eeed(0x261)][_0x39eeed(0x231)](_0x1d9cac),_0x217771=this[_0x39eeed(0x276)],_0x3b7aa9=this[_0x39eeed(0x276)][_0x39eeed(0x23f)][this[_0x39eeed(0x276)][_0x39eeed(0x23f)][_0x39eeed(0x251)]-0x1],_0xbf4ca8=_0x3b7aa9[_0x39eeed(0x1fe)];_0x3b7aa9[_0x39eeed(0x22c)](0x0,_0x39eeed(0x24e));let _0x5b2b4e=_0x510f01({'editor':_0xb438e5,'reply':_0x3b7aa9,'interaction':_0x217771,'groups':_0xbf4ca8,'transform':!0x1,'documentCompare':_0x2c19b9,'documentCompareOptions':{'anchor':_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x204)](_0x4d4d36,0x0),'markDeletions':_0x18e24c}});_0x5b2b4e=this[_0x39eeed(0x206)](_0x5b2b4e,_0x4e6493);for(const _0x5ce855 of _0x5b2b4e)this[_0x39eeed(0x29c)](_0x4e6493,_0x5ce855,_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)][_0x39eeed(0x22f)]());const _0x356b72=_0x217771[_0x39eeed(0x1d2)]()[_0x39eeed(0x282)],_0x2933c7=_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)][_0x39eeed(0x296)][_0x39eeed(0x25e)](_0x356b72),_0x48d529={'document':_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x1ed)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x35d3cd=_0x2a80ed(_0x5b2b4e,_0x2933c7,_0x48d529)[_0x39eeed(0x26a)];_0xb438e5[_0x39eeed(0x29a)][_0x39eeed(0x219)](_0x2c73f2=>{const _0x5d8a36=_0x39eeed;if(_0x2c73f2[_0x5d8a36(0x242)](_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x1ed)][_0x5d8a36(0x293)][_0x5d8a36(0x224)]),_0x18e24c)_0xb438e5[_0x5d8a36(0x261)][_0x5d8a36(0x231)](_0x5d8a36(0x290))[_0x5d8a36(0x236)](_0x35d3cd);else{for(const _0x5808ca of _0x35d3cd)_0x5808ca[_0x5d8a36(0x216)]=_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x1ed)][_0x5d8a36(0x282)],_0x2c73f2[_0x5d8a36(0x2a5)][_0x5d8a36(0x1d7)](_0x5808ca),_0xb438e5[_0x5d8a36(0x29a)][_0x5d8a36(0x209)](_0x5808ca);}}),this[_0x39eeed(0x1ee)][_0x39eeed(0x261)][_0x39eeed(0x231)](_0x39eeed(0x1f4))[_0x39eeed(0x297)]();}[_0x4a36d1(0x206)](_0x20fb33,_0x11e671){const _0xd55ee9=_0x4a36d1;return _0x20fb33[_0xd55ee9(0x1fc)](_0x3122b5=>{const _0x5f227f=_0xd55ee9;if(_0x5f227f(0x1f3)==_0x3122b5[_0x5f227f(0x1ea)]){const _0x3ed30c=_0x3122b5[_0x5f227f(0x1dd)][_0x5f227f(0x28f)];return!_0x11e671[_0x5f227f(0x1fd)](_0x3ed30c);}if(_0x3122b5[_0x5f227f(0x1ea)][_0x5f227f(0x22e)](_0x5f227f(0x212))>-0x1){const _0x1e92d0=_0x3122b5[_0x5f227f(0x1f1)][_0x5f227f(0x279)][_0x5f227f(0x28f)];return!_0x11e671[_0x5f227f(0x1fd)](_0x1e92d0);}return!0x0;});}[_0x4a36d1(0x29c)](_0x8edbf5,_0x3ddc9e,_0x2d805e){const _0x12aa82=_0x4a36d1,_0x446db7=_0x3ddc9e[_0x12aa82(0x211)]();for(const _0x444278 in _0x3ddc9e){const _0x4dd099=_0x3ddc9e[_0x444278];_0x4dd099 instanceof _0x479a8e?_0x3ddc9e[_0x444278]=new _0x479a8e(_0x3992b9(_0x4dd099[_0x12aa82(0x279)]),_0x3992b9(_0x4dd099[_0x12aa82(0x1e1)])):_0x4dd099 instanceof _0x4e58c2&&(_0x3ddc9e[_0x444278]=_0x3992b9(_0x4dd099));}if([_0x12aa82(0x255),_0x12aa82(0x227),_0x12aa82(0x24c),_0x12aa82(0x25c),_0x12aa82(0x1fa),_0x12aa82(0x22d)][_0x12aa82(0x1cd)](_0x446db7[_0x12aa82(0x1ea)])){if(_0x446db7[_0x12aa82(0x267)]=!0x1,_0x446db7[_0x12aa82(0x216)]=null,_0x12aa82(0x24c)==_0x446db7[_0x12aa82(0x1ea)]){const _0x303204=_0x446db7[_0x12aa82(0x1f8)],_0x751edc=_0x446db7[_0x12aa82(0x250)];new _0x2ecba7(_0x303204,_0x751edc)[_0x12aa82(0x230)]();}else _0x446db7[_0x12aa82(0x230)]();}function _0x3992b9(_0x4f4dc6){const _0x8041f8=_0x12aa82;if(_0x8041f8(0x299)==_0x4f4dc6[_0x8041f8(0x2a9)][_0x8041f8(0x1f7)])return _0x4f4dc6;const _0x385aa3=[];let _0x2e3f63=_0x4f4dc6[_0x8041f8(0x2a9)];for(let _0x1a0936=0x0;_0x1a0936<_0x4f4dc6[_0x8041f8(0x20e)][_0x8041f8(0x251)];_0x1a0936++){const _0x1ca4e4=_0x8edbf5[_0x8041f8(0x231)](_0x2e3f63)||0x0;_0x385aa3[_0x1a0936]=_0x4f4dc6[_0x8041f8(0x20e)][_0x1a0936]+_0x1ca4e4,_0x2e3f63=_0x2e3f63[_0x8041f8(0x27c)](_0x4f4dc6[_0x8041f8(0x20e)][_0x1a0936]);}return new _0x4e58c2(_0x2d805e,_0x385aa3,_0x4f4dc6[_0x8041f8(0x29b)]);}}[_0x4a36d1(0x1e4)](){const _0x181d90=_0x4a36d1;if(!this[_0x181d90(0x275)])return;this[_0x181d90(0x214)][_0x181d90(0x251)]>0x0&&this[_0x181d90(0x24b)](),this[_0x181d90(0x1e5)]=0x0,this[_0x181d90(0x233)]=!0x1;const {action:_0xa29153,content:_0xa62f51,version:_0x35a9ba,mainView:_0x460851,aiBalloon:_0x26e4a0}=this[_0x181d90(0x275)];_0x460851[_0x181d90(0x1d6)]=!0x1,_0x460851[_0x181d90(0x210)](),this[_0x181d90(0x289)](_0x460851,_0x26e4a0);const _0x55263e=_0x460851;_0x55263e[_0x181d90(0x291)]&&_0x55263e[_0x181d90(0x291)][_0x181d90(0x1e0)]&&_0x55263e[_0x181d90(0x291)][_0x181d90(0x1e0)][_0x181d90(0x238)]({'isOn':!0x1,'icon':_0x231bd9}),this[_0x181d90(0x272)](_0x460851),_0x460851[_0x181d90(0x254)](),this[_0x181d90(0x24a)](),this[_0x181d90(0x213)](_0xa62f51,_0x35a9ba,_0x460851,_0x26e4a0,_0xa29153)[_0x181d90(0x25a)](_0x3990f9=>{const _0x4006b2=_0x181d90;this[_0x4006b2(0x27f)](_0x3990f9)||console[_0x4006b2(0x1e7)](_0x4006b2(0x221),_0x3990f9);});}[_0x4a36d1(0x272)](_0x1decfd){const _0x4d60e7=_0x4a36d1,_0x343ef2=_0x1decfd[_0x4d60e7(0x21f)][_0x4d60e7(0x243)];for(;_0x343ef2[_0x4d60e7(0x251)]>0x0;)_0x343ef2[_0x4d60e7(0x24c)](_0x343ef2[_0x4d60e7(0x278)]);_0x1decfd[_0x4d60e7(0x21f)][_0x4d60e7(0x1ce)]=!0x1;}[_0x4a36d1(0x27f)](_0x48e56f){const _0x10caf9=_0x4a36d1;return!!_0x48e56f[_0x10caf9(0x241)]&&_0x48e56f[_0x10caf9(0x241)][_0x10caf9(0x24d)](_0x10caf9(0x259));}[_0x4a36d1(0x232)](){const _0x3888e6=_0x4a36d1;this[_0x3888e6(0x214)]=[],this[_0x3888e6(0x275)]=void 0x0,this[_0x3888e6(0x1e5)]=0x0,this[_0x3888e6(0x24a)]();}[_0x4a36d1(0x24b)](){const _0x577cf3=_0x4a36d1;this[_0x577cf3(0x276)]&&this[_0x577cf3(0x276)][_0x577cf3(0x21d)](),this[_0x577cf3(0x1e9)][_0x577cf3(0x1de)](),this[_0x577cf3(0x268)]=!0x1;}[_0x4a36d1(0x1dc)](){const _0x345512=_0x4a36d1,_0x5414d5=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0x57a4c6=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0x489b6e=new _0x235b3f(this[_0x345512(0x1ee)][_0x345512(0x263)]),_0xe213a8=new _0x44fa11(this[_0x345512(0x1ee)][_0x345512(0x263)]);_0x5414d5[_0x345512(0x238)]({'icon':_0x2c56b6,'label':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x223)),'tooltip':!0x0,'class':_0x345512(0x1e2)}),_0x57a4c6[_0x345512(0x238)]({'icon':_0x46b546,'tooltip':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x262)),'class':_0x345512(0x274)}),_0x489b6e[_0x345512(0x23e)]({'tag':_0x345512(0x1ef),'attributes':{'class':[_0x345512(0x253)]},'children':[_0x345512(0x294)]}),_0xe213a8[_0x345512(0x238)]({'icon':_0x2763ac,'tooltip':_0x3d68fe(this[_0x345512(0x1ee)][_0x345512(0x263)],_0x345512(0x20f)),'class':_0x345512(0x26d)}),_0x5414d5[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x12c28d=>!_0x12c28d),_0x5414d5['on'](_0x345512(0x1f0),()=>{const _0x1dc0ff=_0x345512;this[_0x1dc0ff(0x1e4)]();}),_0x57a4c6[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x5a96ab=>!_0x5a96ab),_0x57a4c6['on'](_0x345512(0x1f0),()=>{const _0x38f806=_0x345512;this[_0x38f806(0x21e)]();}),_0xe213a8[_0x345512(0x26b)](_0x345512(0x208))['to'](this,_0x345512(0x268),_0x939821=>!_0x939821),_0xe213a8['on'](_0x345512(0x1f0),()=>{const _0x3bafc0=_0x345512;this[_0x3bafc0(0x23b)]();}),this[_0x345512(0x1df)]=_0x57a4c6,this[_0x345512(0x284)]=_0x489b6e,this[_0x345512(0x2a7)]=_0xe213a8,this[_0x345512(0x23a)][_0x345512(0x222)](_0x5414d5);}[_0x4a36d1(0x21e)](){const _0x49a378=_0x4a36d1,_0x5d088a=this[_0x49a378(0x214)][_0x49a378(0x251)];this[_0x49a378(0x1e5)]<_0x5d088a-0x1&&this[_0x49a378(0x2a8)](this[_0x49a378(0x1e5)]+0x1);}[_0x4a36d1(0x23b)](){const _0x5e4704=_0x4a36d1;this[_0x5e4704(0x1e5)]>0x0&&this[_0x5e4704(0x2a8)](this[_0x5e4704(0x1e5)]-0x1);}async[_0x4a36d1(0x2a8)](_0x374cb5){const _0x37ad9c=_0x4a36d1;if(!this[_0x37ad9c(0x275)])return;this[_0x37ad9c(0x1e5)]=_0x374cb5;const {mainView:_0x19b18a}=this[_0x37ad9c(0x275)],_0x5a1142=this[_0x37ad9c(0x214)][this[_0x37ad9c(0x214)][_0x37ad9c(0x251)]-0x1-this[_0x37ad9c(0x1e5)]];if(!_0x5a1142)return;if(_0x5a1142[_0x37ad9c(0x277)])return this[_0x37ad9c(0x201)](_0x5a1142,_0x19b18a),void this[_0x37ad9c(0x24a)]();if(!_0x5a1142[_0x37ad9c(0x23f)][_0x37ad9c(0x251)])return;_0x19b18a[_0x37ad9c(0x210)](),this[_0x37ad9c(0x275)]&&this[_0x37ad9c(0x289)](_0x19b18a,this[_0x37ad9c(0x275)][_0x37ad9c(0x207)]);const _0x5f2e60=_0x5a1142[_0x37ad9c(0x23f)][_0x5a1142[_0x37ad9c(0x23f)][_0x37ad9c(0x251)]-0x1];if(_0x5f2e60){const _0x5aac32=this[_0x37ad9c(0x1ee)];this[_0x37ad9c(0x272)](_0x19b18a);try{const _0x581c7f=_0x4b9d8e({'editor':_0x5aac32,'changeGroups':_0x5f2e60[_0x37ad9c(0x1fe)],'documentContextContent':_0x5f2e60[_0x37ad9c(0x1ff)],'showDiff':this[_0x37ad9c(0x233)],'trimUnchanged':!0x1});this[_0x37ad9c(0x272)](_0x19b18a),await new Promise(_0x2f07a1=>setTimeout(_0x2f07a1,0x32)),await _0x19b18a[_0x37ad9c(0x287)]({'parts':_0x581c7f,'renderingStrategy':_0x37ad9c(0x248),'abortSignal':new AbortController()[_0x37ad9c(0x220)]});}catch(_0x272da4){this[_0x37ad9c(0x27f)](_0x272da4)||console[_0x37ad9c(0x1e7)](_0x37ad9c(0x2a3),_0x272da4);}}this[_0x37ad9c(0x24a)]();}[_0x4a36d1(0x24a)](){const _0x38722e=_0x4a36d1;if(!this[_0x38722e(0x1df)]||!this[_0x38722e(0x284)]||!this[_0x38722e(0x2a7)])return;const _0x52bde6=this[_0x38722e(0x214)][_0x38722e(0x251)],_0x2ef91b=_0x52bde6>0x1,_0x51e812=this[_0x38722e(0x275)]?.[_0x38722e(0x2a2)];if(_0x2ef91b){this[_0x38722e(0x29f)]||this[_0x38722e(0x281)]||this[_0x38722e(0x23c)]||(this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x1df)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x1df)]),this[_0x38722e(0x29f)]=!0x0,this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x284)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x284)]),this[_0x38722e(0x281)]=!0x0,this[_0x38722e(0x23a)][_0x38722e(0x222)](this[_0x38722e(0x2a7)]),_0x51e812?.[_0x38722e(0x249)](this[_0x38722e(0x2a7)]),this[_0x38722e(0x23c)]=!0x0);const _0x5d24bb=_0x52bde6-this[_0x38722e(0x1e5)];this[_0x38722e(0x284)][_0x38722e(0x1eb)]&&(this[_0x38722e(0x284)][_0x38722e(0x1eb)][_0x38722e(0x1f9)]=_0x5d24bb+'/'+_0x52bde6),this[_0x38722e(0x1df)][_0x38722e(0x208)]=this[_0x38722e(0x1e5)]<_0x52bde6-0x1,this[_0x38722e(0x2a7)][_0x38722e(0x208)]=this[_0x38722e(0x1e5)]>0x0;}else(this[_0x38722e(0x29f)]||this[_0x38722e(0x281)]||this[_0x38722e(0x23c)])&&(this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x1df)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x1df)]),this[_0x38722e(0x29f)]=!0x1,this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x284)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x284)]),this[_0x38722e(0x281)]=!0x1,this[_0x38722e(0x23a)][_0x38722e(0x24c)](this[_0x38722e(0x2a7)]),_0x51e812?.[_0x38722e(0x1e3)](this[_0x38722e(0x2a7)]),this[_0x38722e(0x23c)]=!0x1);}[_0x4a36d1(0x264)](_0x15826b,_0x3f9270){const _0x1d3e7f=_0x4a36d1;_0x15826b[_0x1d3e7f(0x217)](),_0x3f9270[_0x1d3e7f(0x292)][_0x1d3e7f(0x217)](),this[_0x1d3e7f(0x268)]=!0x0;}async[_0x4a36d1(0x201)](_0x589b6b,_0x5ecdfd){const _0x35a001=_0x4a36d1,_0x1038ce=_0x3d68fe(this[_0x35a001(0x1ee)][_0x35a001(0x263)],_0x35a001(0x218));_0x5ecdfd[_0x35a001(0x200)](_0x1038ce),_0x589b6b[_0x35a001(0x277)]=!0x0,await this[_0x35a001(0x1e9)][_0x35a001(0x260)],_0x5ecdfd[_0x35a001(0x237)](),this[_0x35a001(0x275)]?.[_0x35a001(0x207)][_0x35a001(0x292)][_0x35a001(0x28c)]&&(this[_0x35a001(0x275)][_0x35a001(0x207)][_0x35a001(0x292)][_0x35a001(0x28c)][_0x35a001(0x235)]=!0x0);}[_0x4a36d1(0x289)](_0x2b4b9f,_0x4747fb){const _0x5e21e5=_0x4a36d1;_0x2b4b9f[_0x5e21e5(0x21a)](),_0x4747fb[_0x5e21e5(0x292)][_0x5e21e5(0x28c)]&&(_0x4747fb[_0x5e21e5(0x292)][_0x5e21e5(0x28c)][_0x5e21e5(0x235)]=!0x1);}async[_0x4a36d1(0x2aa)](_0xfcedeb,_0x454387){const _0x25f1a6=_0x4a36d1;await this[_0x25f1a6(0x1e9)][_0x25f1a6(0x260)],this[_0x25f1a6(0x268)]=!0x1,_0xfcedeb[_0x25f1a6(0x28d)](),_0x454387[_0x25f1a6(0x292)][_0x25f1a6(0x28d)]();}}
|
|
23
|
+
const _0x410544=_0x6d10;(function(_0x37f2d4,_0x25d5ff){const _0x59ec0b=_0x6d10,_0x128f80=_0x37f2d4();while(!![]){try{const _0x40721c=-parseInt(_0x59ec0b(0x23d))/0x1*(-parseInt(_0x59ec0b(0x1c5))/0x2)+-parseInt(_0x59ec0b(0x1dc))/0x3*(-parseInt(_0x59ec0b(0x258))/0x4)+-parseInt(_0x59ec0b(0x24e))/0x5*(parseInt(_0x59ec0b(0x1e1))/0x6)+-parseInt(_0x59ec0b(0x1bc))/0x7+parseInt(_0x59ec0b(0x1c7))/0x8+parseInt(_0x59ec0b(0x249))/0x9+-parseInt(_0x59ec0b(0x1c2))/0xa;if(_0x40721c===_0x25d5ff)break;else _0x128f80['push'](_0x128f80['shift']());}catch(_0xca6a7e){_0x128f80['push'](_0x128f80['shift']());}}}(_0x2f80,0xe0b60));import{Plugin as _0x51632c}from'ckeditor5/src/core.js';import{AIConnector as _0x5d3ec2}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x343e78}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x4fd0bc,ButtonView as _0x27534c,ViewCollection as _0x5b82a8,View as _0x5b2a42}from'ckeditor5/src/ui.js';import{AIEditing as _0x25f74e}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4f0ffc}from'./model/aiactionsinteraction.js';import{first as _0x520196}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x1959ee,IconRefresh as _0x5cd54c,IconNextArrow as _0x357da0,IconPreviousArrow as _0x5e5e45,IconShowChangesOff as _0x4283d4}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x461234}from'../aiballoon/aiballoon.js';function _0x2f80(){const _0x1bd81d=['isPremiumPlugin','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20during\x20navigation:','insert','ck-ai-custom-action-button','abort','AIActions','13065534fACLeu','rejected','_appendChild','startsWith','getSelectionAsFragment','7842025mVNnbD','clearLoading','document','Error\x20updating\x20content\x20in\x20replyCreated:','documentFragment','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_getExecuteDataInTable','length','toData','hideLoader','3236TqfFwi','_setLoadingState','setLoading','sourcePosition','setChangeGroupState','addOperation','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','getSelectedContent','nextSibling','indexOf','_customViews','random','getOperations','get','isLoading','replyCreated','replyContentUpdated','element','history','bind','bodyView','reinsert','AIBalloon','execute','queueEmptyPromise','_execute','AI_ACTIONS_TRY_AGAIN','_currentInteractionIndex','processor','clone','_navigateToNext','_setErrorState','static','_navigationCounter','accepted','mainView','change','_clearSuggestionContent','isCollapsed','actionName','nodeAfter','_aiConnector','setErrorState','start','getDocumentContext','isEnabled','AI_ACTIONS_NEXT_INTERACTION','_clearLoadingState','set','createPositionAt','selection','first','position','applyOperation','pending','_navigateToPrevious','includes','parent','modelToViewWithIds','applySuggestion','AI_ACTIONS_PREVIOUS_INTERACTION','Attribute','batch','showChangesButton','_refreshInteraction','stickiness','createPositionBefore','2360253SVceaJ','hasError','areChangesVisible','add','operationsA','isOfficialPlugin','32933070TcRplM','has','_navigationPreviousButton','862ZSUxGR','filter','11812648zZTazR','move','setSelection','setTemplate','upsertAIActionRating','Error\x20refreshing\x20interaction:','getCommonAncestor','replyChangeGroupStateUpdated','catch','interactionFinished','merge','signal','_anchorOperation','root','path','miniToolbarView','_isNavigationPreviousButtonInView','_interactionParams','dialogClosed','_children','span','5301gCoOBd','showError','_stopInteraction','_wrapWithCommonAncestors','getChild','6CtBXvJ','_applyChanges','getChildAtOffset','stopListening','editor','model','type','pluginName','rootName','actionCallId','TableSelection','TrackChangesEditing','_createInteraction','_executeAction','1/1','message','data','rename','ck-ai-interaction-counter','streaming','_interaction','hasPendingParts','map','changeGroups','upsertCustomAIActionRating','Error\x20updating\x20content\x20in\x20replyContentUpdated:','removeNavigationItem','_clone','error','_promiseQueue','toolbar','updateContent','_navigationNextButton','isBusy','slice','open','listenTo','split','ai-request-aborted','_clearInteractionHistory','_isNavigationNextButtonInView','ck-ai-navigation-button\x20ck-ai-next-button','getRanges','balloonView','getSelectedBlocks','_interactions','enqueue','_isNavigationCounterInView','insertSuggestion','AIConnector','getLimitElement','getRoot','_displayInteractionAtIndex','aiBalloon','_balloonShowDiff','_setupCustomViews','end','schema','hideError','_applyOperationsAsSuggestions','isDocumentOperation','remove','createRange','locale','_filterOperationsOutsideRange','push','getAncestors','replies','focus','ck-ai-navigation-button\x20ck-ai-previous-button','createPositionAfter','AI_ACTIONS_GENERIC_ERROR','showLoader','range','_isAbortError','textContent','_getExecuteDataRegular','close','state','baseVersion','howMany','documentContextContent','_updateNavigationUI','version','requires','stopInteraction','addNavigationItem','stop','_clearErrorState','getFirstRange','clearErrorState','plugins','4087yKRzxE','icon','executeAction','$graveyard','getSelectedTableCells'];_0x2f80=function(){return _0x1bd81d;};return _0x2f80();}import{PromiseQueue as _0x3710f6}from'../aichat/utils/promisequeue.js';function _0x6d10(_0x3b9e95,_0x4490bb){const _0x2f8043=_0x2f80();return _0x6d10=function(_0x6d10dd,_0x5e7c4b){_0x6d10dd=_0x6d10dd-0x1af;let _0x49fb74=_0x2f8043[_0x6d10dd];return _0x49fb74;},_0x6d10(_0x3b9e95,_0x4490bb);}import{getTranslation as _0x1933ba}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x37135b}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x195bd6}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0xf3c669}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x413ac3,ModelRange as _0x50f276,ModelPosition as _0x51cfb4,_DetachOperation as _0x18765a,transformOperationSets as _0x157373}from'ckeditor5/src/engine.js';export class AIActions extends _0x51632c{static get[_0x410544(0x235)](){return[_0x5d3ec2,_0x4fd0bc,_0x25f74e,_0x461234,_0x195bd6];}static get[_0x410544(0x1e8)](){const _0xd93c88=_0x410544;return _0xd93c88(0x248);}static get[_0x410544(0x1c1)](){return!0x0;}static get[_0x410544(0x242)](){return!0x0;}[_0x410544(0x281)];[_0x410544(0x20e)]=[];[_0x410544(0x273)]=0x0;[_0x410544(0x1d8)];[_0x410544(0x217)]=!0x1;[_0x410544(0x262)]=new _0x5b82a8();[_0x410544(0x1c4)];[_0x410544(0x279)];[_0x410544(0x210)]=!0x1;[_0x410544(0x201)];[_0x410544(0x1d7)]=!0x1;[_0x410544(0x209)]=!0x1;[_0x410544(0x1fe)];get[_0x410544(0x1f5)](){const _0x9186b=_0x410544;return this[_0x9186b(0x20e)][this[_0x9186b(0x20e)][_0x9186b(0x255)]-0x1];}constructor(_0x58291f){const _0x402a4f=_0x410544;super(_0x58291f),this[_0x402a4f(0x281)]=this[_0x402a4f(0x1e5)][_0x402a4f(0x23c)][_0x402a4f(0x265)](_0x402a4f(0x212)),this[_0x402a4f(0x288)](_0x402a4f(0x202),!0x1),this[_0x402a4f(0x1fe)]=new _0x3710f6(),this[_0x402a4f(0x218)]();}[_0x410544(0x236)](){const _0x359ab1=_0x410544;this[_0x359ab1(0x1de)]();}async[_0x410544(0x23f)](_0x12fa92,_0xe65920,_0x59b323){const _0x43ce35=_0x410544;if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x1c3)](_0x43ce35(0x1eb))){if(this[_0x43ce35(0x1e5)][_0x43ce35(0x23c)][_0x43ce35(0x265)](_0x43ce35(0x1eb))[_0x43ce35(0x241)]()){const {modelFragment:_0x1e2797,anchorData:_0x2e5471}=this[_0x43ce35(0x254)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x1e2797,_0x2e5471,_0xe65920,_0x59b323);}}const {modelFragment:_0x34e5bd,anchorData:_0x4f84b5}=this[_0x43ce35(0x22d)]();return this[_0x43ce35(0x1ee)](_0x12fa92,_0x34e5bd,_0x4f84b5,_0xe65920,_0x59b323);}[_0x410544(0x22d)](){const _0x3d569c=_0x410544,_0x34e567=this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x250)][_0x3d569c(0x28a)];if(_0x34e567[_0x3d569c(0x27e)]){const _0x62560a=_0x520196(_0x34e567[_0x3d569c(0x20d)]())||this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x21a)][_0x3d569c(0x213)](_0x34e567);this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x27c)](_0x213303=>{const _0xc8ad5d=_0x3d569c;_0x213303[_0xc8ad5d(0x1c9)](_0x62560a,'in');});}const _0xcc499d=_0x34e567[_0x3d569c(0x23a)](),_0x2989a6=this[_0x3d569c(0x1df)](this[_0x3d569c(0x1e5)][_0x3d569c(0x1e6)][_0x3d569c(0x25f)](_0x34e567),_0xcc499d[_0x3d569c(0x283)],_0xcc499d[_0x3d569c(0x219)]),_0x284462=_0x34e567[_0x3d569c(0x23a)]()[_0x3d569c(0x283)],_0x2061aa=new Map();let _0x2a175a=_0x2989a6;for(let _0x549b31=0x0;_0x549b31<_0x284462[_0x3d569c(0x1d5)][_0x3d569c(0x255)];_0x549b31++)_0x2061aa[_0x3d569c(0x288)](_0x2a175a,_0x284462[_0x3d569c(0x1d5)][_0x549b31]),_0x2a175a=_0x2a175a[_0x3d569c(0x1e0)](0x0);return{'modelFragment':_0x2989a6,'anchorData':_0x2061aa};}[_0x410544(0x254)](){const _0x1ca93e=_0x410544,_0x2201ed=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x250)][_0x1ca93e(0x28a)],_0x2af650=this[_0x1ca93e(0x1e5)][_0x1ca93e(0x23c)][_0x1ca93e(0x265)](_0x1ca93e(0x1eb))[_0x1ca93e(0x24d)](),_0x2bfcaf=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)][_0x1ca93e(0x1b2)][_0x1ca93e(0x1b2)],_0x6a0ca4=this[_0x1ca93e(0x1df)](_0x2af650,this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x1bb)](_0x2bfcaf),this[_0x1ca93e(0x1e5)][_0x1ca93e(0x1e6)][_0x1ca93e(0x227)](_0x2bfcaf)),_0x478247=_0x2201ed[_0x1ca93e(0x23a)]()[_0x1ca93e(0x283)],_0x308a7d=new Map();let _0xba8748=_0x6a0ca4;for(let _0x42c246=0x0;_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)];_0x42c246++)if(_0x308a7d[_0x1ca93e(0x288)](_0xba8748,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x42c246<_0x478247[_0x1ca93e(0x1d5)][_0x1ca93e(0x255)]-0x1)_0xba8748=_0xba8748[_0x1ca93e(0x1e0)](0x0);else{let _0x36896e=_0xba8748[_0x1ca93e(0x260)];for(;_0x36896e;)_0x308a7d[_0x1ca93e(0x288)](_0x36896e,_0x478247[_0x1ca93e(0x1d5)][_0x42c246]),_0x36896e=_0x36896e[_0x1ca93e(0x260)];}return{'modelFragment':_0x6a0ca4,'anchorData':_0x308a7d};}[_0x410544(0x1ee)](_0x4ca9c1,_0x139cbe,_0x3a0226,_0x48ab60,_0x5dcb3f){const _0x23dfea=_0x410544,_0x38fd28=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x25f74e),_0x18773b=this[_0x23dfea(0x1e5)][_0x23dfea(0x23c)][_0x23dfea(0x265)](_0x461234),_0x1747f6=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x28a)],_0x186dec=_0x38fd28[_0x23dfea(0x1b3)](_0x139cbe),_0x2cf112=this[_0x23dfea(0x1e5)][_0x23dfea(0x1f1)][_0x23dfea(0x274)][_0x23dfea(0x256)](_0x186dec),_0x4ecb4c=this[_0x23dfea(0x1e5)][_0x23dfea(0x1e6)][_0x23dfea(0x250)][_0x23dfea(0x234)],_0x1c4f98=[..._0x1747f6[_0x23dfea(0x20b)]()],_0x187ac8=new _0x343e78(this[_0x23dfea(0x1e5)][_0x23dfea(0x220)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x23dfea(0x23e),'customView':this[_0x23dfea(0x262)]},'showUnchangedParts':!0x0});return _0x18773b[_0x23dfea(0x204)]({'index':0x3e8*Math[_0x23dfea(0x263)]()%0x3e8,'title':_0x48ab60,'icon':_0x5dcb3f||_0x1959ee,'mainView':_0x187ac8,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x1c4f98}),this[_0x23dfea(0x259)](_0x187ac8,_0x18773b),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1b4),()=>{const _0x1a54f4=_0x23dfea;this[_0x1a54f4(0x1e2)](_0x139cbe,_0x3a0226,!0x1);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x211),()=>{const _0x3164a4=_0x23dfea;this[_0x3164a4(0x1e2)](_0x139cbe,_0x3a0226,!0x0);}),this[_0x23dfea(0x205)](_0x18773b,_0x23dfea(0x1d9),()=>{const _0xb2a046=_0x23dfea;if(this[_0xb2a046(0x1f5)]&&this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]>0x0){const _0x54d18e=this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][this[_0xb2a046(0x1f5)][_0xb2a046(0x224)][_0xb2a046(0x255)]-0x1],_0xb04b48=_0x54d18e[_0xb2a046(0x1f8)][0x0];_0xb04b48&&_0xb2a046(0x1af)===_0xb04b48[_0xb2a046(0x22f)]&&_0x54d18e[_0xb2a046(0x25c)](0x0,_0xb2a046(0x24a));}this[_0xb2a046(0x1de)](),this[_0xb2a046(0x208)](),this[_0xb2a046(0x1e4)](_0x18773b);}),this[_0x23dfea(0x1ed)](_0x2cf112,_0x4ecb4c,_0x187ac8,_0x18773b,_0x4ca9c1);}[_0x410544(0x1df)](_0x47da69,_0x2b5673,_0x357fc6){const _0x4d14bd=_0x410544,_0x2e06d0=this[_0x4d14bd(0x1e5)][_0x4d14bd(0x1e6)][_0x4d14bd(0x21f)](_0x2b5673,_0x357fc6)[_0x4d14bd(0x1cd)](),_0x267347=_0x2e06d0['is'](_0x4d14bd(0x252))?[]:_0x2e06d0[_0x4d14bd(0x223)]({'includeSelf':!0x0})[_0x4d14bd(0x203)](0x1);if(_0x267347[_0x4d14bd(0x255)]){const _0x34bf1b=_0x267347[_0x4d14bd(0x1f7)](_0x1e0040=>_0x1e0040[_0x4d14bd(0x1fc)](!0x1));for(let _0x27efe4=0x1;_0x27efe4<_0x34bf1b[_0x4d14bd(0x255)];_0x27efe4++)_0x34bf1b[_0x27efe4-0x1][_0x4d14bd(0x24b)](_0x34bf1b[_0x27efe4]);return _0x34bf1b[_0x34bf1b[_0x4d14bd(0x255)]-0x1][_0x4d14bd(0x24b)](_0x47da69),new _0x413ac3(_0x34bf1b[0x0]);}return _0x47da69;}async[_0x410544(0x1ed)](_0x4cc174,_0x3eae39,_0x588589,_0x38d19a,_0x3cf167){const _0xb20bdc=_0x410544,_0xad0c25=this[_0xb20bdc(0x1e5)];this[_0xb20bdc(0x1d8)]={'action':_0x3cf167,'content':_0x4cc174,'version':_0x3eae39,'mainView':_0x588589,'aiBalloon':_0x38d19a};const _0x152674=new _0x4f0ffc({'connector':this[_0xb20bdc(0x281)],'editor':_0xad0c25,'content':_0x4cc174,'version':_0x3eae39,..._0x3cf167});this[_0xb20bdc(0x20e)][_0xb20bdc(0x222)](_0x152674),_0x588589[_0xb20bdc(0x21b)]();const _0x1a2fe0=(_0x53c181,_0x197aa0,_0x3dad7d=!0x1,_0x19ea05=_0xb20bdc(0x1f4))=>this[_0xb20bdc(0x1fe)][_0xb20bdc(0x20f)](async _0x304942=>{const _0x15d4fd=_0xb20bdc;try{const _0x372ac9=_0x37135b({'editor':_0xad0c25,'changeGroups':_0x53c181[_0x15d4fd(0x1f8)],'documentContextContent':_0x53c181[_0x15d4fd(0x232)],'showDiff':_0x3dad7d,'trimUnchanged':!0x1});await _0x197aa0[_0x15d4fd(0x200)]({'parts':_0x372ac9,'renderingStrategy':_0x19ea05,'abortSignal':_0x304942});}catch(_0x410c49){if(this[_0x15d4fd(0x22b)](_0x410c49))return;throw _0x410c49;}});this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x267),(_0x2c5e14,_0x46d5ce)=>{const _0x23c2fe=_0xb20bdc;_0x588589[_0x23c2fe(0x257)](),_0x1a2fe0(_0x46d5ce,_0x588589)[_0x23c2fe(0x1cf)](_0x346b1f=>{const _0x4efea1=_0x23c2fe;this[_0x4efea1(0x22b)](_0x346b1f)||(console[_0x4efea1(0x1fd)](_0x4efea1(0x251),_0x346b1f),this[_0x4efea1(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x268),(_0x311bdd,_0x23ba09)=>{const _0xefc9f=_0xb20bdc;_0x1a2fe0(_0x23ba09,_0x588589)[_0xefc9f(0x1cf)](_0x528575=>{const _0x2a7b7c=_0xefc9f;this[_0x2a7b7c(0x22b)](_0x528575)||(console[_0x2a7b7c(0x1fd)](_0x2a7b7c(0x1fa),_0x528575),this[_0x2a7b7c(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1d0),async()=>{const _0x41e6e3=_0xb20bdc;try{await this[_0x41e6e3(0x287)](_0x588589,_0x38d19a),this[_0x41e6e3(0x233)]();}catch(_0x466849){this[_0x41e6e3(0x22b)](_0x466849)||(console[_0x41e6e3(0x1fd)](_0x41e6e3(0x253),_0x466849),this[_0x41e6e3(0x277)](_0x152674,_0x588589));}}),this[_0xb20bdc(0x205)](_0x588589,_0xb20bdc(0x243),(_0x4182a1,{showDiff:_0x488ca8})=>{const _0x3776ff=_0xb20bdc;this[_0x3776ff(0x217)]=_0x488ca8;const _0x5e6de4=this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][this[_0x3776ff(0x1f5)][_0x3776ff(0x224)][_0x3776ff(0x255)]-0x1];_0x5e6de4&&_0x1a2fe0(_0x5e6de4,_0x588589,_0x488ca8,_0x3776ff(0x278))[_0x3776ff(0x1cf)](_0x35ba7b=>{const _0x2e9586=_0x3776ff;this[_0x2e9586(0x22b)](_0x35ba7b)||(console[_0x2e9586(0x1fd)](_0x2e9586(0x25e),_0x35ba7b),this[_0x2e9586(0x277)](_0x152674,_0x588589));});}),this[_0xb20bdc(0x1f5)]['on'](_0xb20bdc(0x1ce),(_0x48b825,{reply:_0x5dc3d6})=>{const _0x58479d=_0xb20bdc,_0x24b709={'positiveCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x1c6)](_0x582ba0=>_0x58479d(0x27a)===_0x582ba0[_0x58479d(0x22f)])[_0x58479d(0x255)],'totalCount':_0x5dc3d6[_0x58479d(0x1f8)][_0x58479d(0x255)]},_0x3a3f1a=this[_0x58479d(0x1f5)][_0x58479d(0x1ea)],_0x52ec98=this[_0x58479d(0x1f5)][_0x58479d(0x27f)];_0x52ec98?this[_0x58479d(0x281)][_0x58479d(0x1cb)](_0x52ec98,_0x3a3f1a,_0x24b709):this[_0x58479d(0x281)][_0x58479d(0x1f9)](_0x3a3f1a,_0x24b709);}),this[_0xb20bdc(0x259)](_0x588589,_0x38d19a);try{const _0x7d65a1=await this[_0xb20bdc(0x1f5)][_0xb20bdc(0x283)]();return this[_0xb20bdc(0x233)](),_0x7d65a1;}catch(_0x921ef1){if(this[_0xb20bdc(0x22b)](_0x921ef1))return;_0x588589[_0xb20bdc(0x257)](),this[_0xb20bdc(0x277)](_0x152674,_0x588589);}}[_0x410544(0x1e2)](_0x25b7a2,_0x59f186,_0x4b053c){const _0x4f3840=_0x410544,_0x38ffd8=this[_0x4f3840(0x1e5)],_0x3fcbf1=this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x195bd6),_0x3b6ce9=this[_0x4f3840(0x1f5)],_0x58b92f=this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][this[_0x4f3840(0x1f5)][_0x4f3840(0x224)][_0x4f3840(0x255)]-0x1],_0x4f9072=_0x58b92f[_0x4f3840(0x1f8)];_0x58b92f[_0x4f3840(0x25c)](0x0,_0x4f3840(0x27a));let _0x4fed40=_0xf3c669({'editor':_0x38ffd8,'reply':_0x58b92f,'interaction':_0x3b6ce9,'groups':_0x4f9072,'transform':!0x1,'documentCompare':_0x3fcbf1,'documentCompareOptions':{'anchor':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x289)](_0x25b7a2,0x0),'markDeletions':_0x4b053c}});_0x4fed40=this[_0x4f3840(0x221)](_0x4fed40,_0x59f186);for(const _0x1f5915 of _0x4fed40)this[_0x4f3840(0x1d3)](_0x59f186,_0x1f5915,_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x214)]());const _0x3e0975=_0x3b6ce9[_0x4f3840(0x284)]()[_0x4f3840(0x234)],_0x3d9d4c=_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)][_0x4f3840(0x26a)][_0x4f3840(0x264)](_0x3e0975),_0x156384={'document':_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x250)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2daeec=_0x157373(_0x4fed40,_0x3d9d4c,_0x156384)[_0x4f3840(0x1c0)];_0x38ffd8[_0x4f3840(0x1e6)][_0x4f3840(0x27c)](_0x5212bf=>{const _0x316d82=_0x4f3840;if(_0x5212bf[_0x316d82(0x1c9)](_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x28a)][_0x316d82(0x225)]),_0x4b053c)_0x38ffd8[_0x316d82(0x23c)][_0x316d82(0x265)](_0x316d82(0x1ec))[_0x316d82(0x21c)](_0x2daeec);else{for(const _0x383a36 of _0x2daeec)_0x383a36[_0x316d82(0x230)]=_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x250)][_0x316d82(0x234)],_0x5212bf[_0x316d82(0x1b7)][_0x316d82(0x25d)](_0x383a36),_0x38ffd8[_0x316d82(0x1e6)][_0x316d82(0x28d)](_0x383a36);}}),this[_0x4f3840(0x1e5)][_0x4f3840(0x23c)][_0x4f3840(0x265)](_0x4f3840(0x26e))[_0x4f3840(0x22e)]();}[_0x410544(0x221)](_0x4c0d85,_0x4a9a8b){const _0x514a2f=_0x410544;return _0x4c0d85[_0x514a2f(0x1c6)](_0x569456=>{const _0x3af971=_0x514a2f;if(_0x3af971(0x1f2)==_0x569456[_0x3af971(0x1e7)]){const _0x55c8a9=_0x569456[_0x3af971(0x28c)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x55c8a9);}if(_0x569456[_0x3af971(0x1e7)][_0x3af971(0x261)](_0x3af971(0x1b6))>-0x1){const _0x1a8eac=_0x569456[_0x3af971(0x22a)][_0x3af971(0x283)][_0x3af971(0x280)];return!_0x4a9a8b[_0x3af971(0x1c3)](_0x1a8eac);}return!0x0;});}[_0x410544(0x1d3)](_0x2e70d9,_0x48a445,_0x277b38){const _0x429831=_0x410544,_0x4afcbf=_0x48a445[_0x429831(0x275)]();for(const _0x3507bf in _0x48a445){const _0xde5f58=_0x48a445[_0x3507bf];_0xde5f58 instanceof _0x50f276?_0x48a445[_0x3507bf]=new _0x50f276(_0x5a2766(_0xde5f58[_0x429831(0x283)]),_0x5a2766(_0xde5f58[_0x429831(0x219)])):_0xde5f58 instanceof _0x51cfb4&&(_0x48a445[_0x3507bf]=_0x5a2766(_0xde5f58));}if([_0x429831(0x245),_0x429831(0x1c8),_0x429831(0x21e),_0x429831(0x26d),_0x429831(0x206),_0x429831(0x1d1)][_0x429831(0x1b1)](_0x4afcbf[_0x429831(0x1e7)])){if(_0x4afcbf[_0x429831(0x21d)]=!0x1,_0x4afcbf[_0x429831(0x230)]=null,_0x429831(0x21e)==_0x4afcbf[_0x429831(0x1e7)]){const _0x1b6224=_0x4afcbf[_0x429831(0x25b)],_0x4fbe15=_0x4afcbf[_0x429831(0x231)];new _0x18765a(_0x1b6224,_0x4fbe15)[_0x429831(0x271)]();}else _0x4afcbf[_0x429831(0x271)]();}function _0x5a2766(_0x1a8782){const _0x2ede8a=_0x429831;if(_0x2ede8a(0x240)==_0x1a8782[_0x2ede8a(0x1d4)][_0x2ede8a(0x1e9)])return _0x1a8782;const _0x1ba70e=[];let _0x24d46a=_0x1a8782[_0x2ede8a(0x1d4)];for(let _0x46aa20=0x0;_0x46aa20<_0x1a8782[_0x2ede8a(0x1d5)][_0x2ede8a(0x255)];_0x46aa20++){const _0xc38a55=_0x2e70d9[_0x2ede8a(0x265)](_0x24d46a)||0x0;_0x1ba70e[_0x46aa20]=_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]+_0xc38a55,_0x24d46a=_0x24d46a[_0x2ede8a(0x1e3)](_0x1a8782[_0x2ede8a(0x1d5)][_0x46aa20]);}return new _0x51cfb4(_0x277b38,_0x1ba70e,_0x1a8782[_0x2ede8a(0x1ba)]);}}[_0x410544(0x1b9)](){const _0x4c3f1a=_0x410544;if(!this[_0x4c3f1a(0x1d8)])return;this[_0x4c3f1a(0x20e)][_0x4c3f1a(0x255)]>0x0&&this[_0x4c3f1a(0x1de)](),this[_0x4c3f1a(0x273)]=0x0,this[_0x4c3f1a(0x217)]=!0x1;const {action:_0x4f4c36,content:_0xb20a06,version:_0x86ab85,mainView:_0x75ee74,aiBalloon:_0x98803d}=this[_0x4c3f1a(0x1d8)];_0x75ee74[_0x4c3f1a(0x1be)]=!0x1,_0x75ee74[_0x4c3f1a(0x21b)](),this[_0x4c3f1a(0x239)](_0x75ee74,_0x98803d);const _0x3a504e=_0x75ee74;_0x3a504e[_0x4c3f1a(0x1d6)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)]&&_0x3a504e[_0x4c3f1a(0x1d6)][_0x4c3f1a(0x1b8)][_0x4c3f1a(0x288)]({'isOn':!0x1,'icon':_0x4283d4}),this[_0x4c3f1a(0x27d)](_0x75ee74),_0x75ee74[_0x4c3f1a(0x229)](),this[_0x4c3f1a(0x233)](),this[_0x4c3f1a(0x1ed)](_0xb20a06,_0x86ab85,_0x75ee74,_0x98803d,_0x4f4c36)[_0x4c3f1a(0x1cf)](_0x1820ec=>{const _0x4dacf8=_0x4c3f1a;this[_0x4dacf8(0x22b)](_0x1820ec)||console[_0x4dacf8(0x1fd)](_0x4dacf8(0x1cc),_0x1820ec);});}[_0x410544(0x27d)](_0x55f43f){const _0x424410=_0x410544,_0x4e7d15=_0x55f43f[_0x424410(0x26c)][_0x424410(0x1da)];for(;_0x4e7d15[_0x424410(0x255)]>0x0;)_0x4e7d15[_0x424410(0x21e)](_0x4e7d15[_0x424410(0x28b)]);_0x55f43f[_0x424410(0x26c)][_0x424410(0x1f6)]=!0x1;}[_0x410544(0x22b)](_0x36434f){const _0x22bacd=_0x410544;return!!_0x36434f[_0x22bacd(0x1f0)]&&_0x36434f[_0x22bacd(0x1f0)][_0x22bacd(0x24c)](_0x22bacd(0x207));}[_0x410544(0x208)](){const _0x46eeb2=_0x410544;this[_0x46eeb2(0x20e)]=[],this[_0x46eeb2(0x1d8)]=void 0x0,this[_0x46eeb2(0x273)]=0x0,this[_0x46eeb2(0x233)]();}[_0x410544(0x1de)](){const _0x41909a=_0x410544;this[_0x41909a(0x1f5)]&&this[_0x41909a(0x1f5)][_0x41909a(0x238)](),this[_0x41909a(0x1fe)][_0x41909a(0x247)](),this[_0x41909a(0x202)]=!0x1;}[_0x410544(0x218)](){const _0x16dcc2=_0x410544,_0x27a20=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x204668=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x4b5fe4=new _0x5b2a42(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]),_0x5a3cb2=new _0x27534c(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)]);_0x27a20[_0x16dcc2(0x288)]({'icon':_0x5cd54c,'label':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x272)),'tooltip':!0x0,'class':_0x16dcc2(0x246)}),_0x204668[_0x16dcc2(0x288)]({'icon':_0x5e5e45,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x1b5)),'class':_0x16dcc2(0x226)}),_0x4b5fe4[_0x16dcc2(0x1ca)]({'tag':_0x16dcc2(0x1db),'attributes':{'class':[_0x16dcc2(0x1f3)]},'children':[_0x16dcc2(0x1ef)]}),_0x5a3cb2[_0x16dcc2(0x288)]({'icon':_0x357da0,'tooltip':_0x1933ba(this[_0x16dcc2(0x1e5)][_0x16dcc2(0x220)],_0x16dcc2(0x286)),'class':_0x16dcc2(0x20a)}),_0x27a20[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x345c0c=>!_0x345c0c),_0x27a20['on'](_0x16dcc2(0x26f),()=>{const _0x4af22c=_0x16dcc2;this[_0x4af22c(0x1b9)]();}),_0x204668[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x2fb754=>!_0x2fb754),_0x204668['on'](_0x16dcc2(0x26f),()=>{const _0x25c0d2=_0x16dcc2;this[_0x25c0d2(0x1b0)]();}),_0x5a3cb2[_0x16dcc2(0x26b)](_0x16dcc2(0x285))['to'](this,_0x16dcc2(0x202),_0x393d1f=>!_0x393d1f),_0x5a3cb2['on'](_0x16dcc2(0x26f),()=>{const _0x60a7c9=_0x16dcc2;this[_0x60a7c9(0x276)]();}),this[_0x16dcc2(0x1c4)]=_0x204668,this[_0x16dcc2(0x279)]=_0x4b5fe4,this[_0x16dcc2(0x201)]=_0x5a3cb2,this[_0x16dcc2(0x262)][_0x16dcc2(0x1bf)](_0x27a20);}[_0x410544(0x1b0)](){const _0x33ca77=_0x410544,_0x547c8e=this[_0x33ca77(0x20e)][_0x33ca77(0x255)];this[_0x33ca77(0x273)]<_0x547c8e-0x1&&this[_0x33ca77(0x215)](this[_0x33ca77(0x273)]+0x1);}[_0x410544(0x276)](){const _0x51810e=_0x410544;this[_0x51810e(0x273)]>0x0&&this[_0x51810e(0x215)](this[_0x51810e(0x273)]-0x1);}async[_0x410544(0x215)](_0x2adc14){const _0xbcc471=_0x410544;if(!this[_0xbcc471(0x1d8)])return;this[_0xbcc471(0x273)]=_0x2adc14;const {mainView:_0x4b120e}=this[_0xbcc471(0x1d8)],_0x2c1547=this[_0xbcc471(0x20e)][this[_0xbcc471(0x20e)][_0xbcc471(0x255)]-0x1-this[_0xbcc471(0x273)]];if(!_0x2c1547)return;if(_0x2c1547[_0xbcc471(0x1bd)])return this[_0xbcc471(0x277)](_0x2c1547,_0x4b120e),void this[_0xbcc471(0x233)]();if(!_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)])return;_0x4b120e[_0xbcc471(0x21b)](),this[_0xbcc471(0x1d8)]&&this[_0xbcc471(0x239)](_0x4b120e,this[_0xbcc471(0x1d8)][_0xbcc471(0x216)]);const _0x54489e=_0x2c1547[_0xbcc471(0x224)][_0x2c1547[_0xbcc471(0x224)][_0xbcc471(0x255)]-0x1];if(_0x54489e){const _0x61d889=this[_0xbcc471(0x1e5)];this[_0xbcc471(0x27d)](_0x4b120e);try{const _0x2e5f7b=_0x37135b({'editor':_0x61d889,'changeGroups':_0x54489e[_0xbcc471(0x1f8)],'documentContextContent':_0x54489e[_0xbcc471(0x232)],'showDiff':this[_0xbcc471(0x217)],'trimUnchanged':!0x1});this[_0xbcc471(0x27d)](_0x4b120e),await new Promise(_0x58c58d=>setTimeout(_0x58c58d,0x32)),await _0x4b120e[_0xbcc471(0x200)]({'parts':_0x2e5f7b,'renderingStrategy':_0xbcc471(0x278),'abortSignal':new AbortController()[_0xbcc471(0x1d2)]});}catch(_0x4350ff){this[_0xbcc471(0x22b)](_0x4350ff)||console[_0xbcc471(0x1fd)](_0xbcc471(0x244),_0x4350ff);}}this[_0xbcc471(0x233)]();}[_0x410544(0x233)](){const _0x134f83=_0x410544;if(!this[_0x134f83(0x1c4)]||!this[_0x134f83(0x279)]||!this[_0x134f83(0x201)])return;const _0x185cd5=this[_0x134f83(0x20e)][_0x134f83(0x255)],_0x51422e=_0x185cd5>0x1,_0x25052f=this[_0x134f83(0x1d8)]?.[_0x134f83(0x27b)];if(_0x51422e){this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)]||(this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x0,this[_0x134f83(0x262)][_0x134f83(0x1bf)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x237)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x0);const _0x45dc37=_0x185cd5-this[_0x134f83(0x273)];this[_0x134f83(0x279)][_0x134f83(0x269)]&&(this[_0x134f83(0x279)][_0x134f83(0x269)][_0x134f83(0x22c)]=_0x45dc37+'/'+_0x185cd5),this[_0x134f83(0x1c4)][_0x134f83(0x285)]=this[_0x134f83(0x273)]<_0x185cd5-0x1,this[_0x134f83(0x201)][_0x134f83(0x285)]=this[_0x134f83(0x273)]>0x0;}else(this[_0x134f83(0x1d7)]||this[_0x134f83(0x210)]||this[_0x134f83(0x209)])&&(this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x1c4)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x1c4)]),this[_0x134f83(0x1d7)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x279)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x279)]),this[_0x134f83(0x210)]=!0x1,this[_0x134f83(0x262)][_0x134f83(0x21e)](this[_0x134f83(0x201)]),_0x25052f?.[_0x134f83(0x1fb)](this[_0x134f83(0x201)]),this[_0x134f83(0x209)]=!0x1);}[_0x410544(0x259)](_0x4ca1a9,_0x36f1fd){const _0x647178=_0x410544;_0x4ca1a9[_0x647178(0x25a)](),_0x36f1fd[_0x647178(0x20c)][_0x647178(0x25a)](),this[_0x647178(0x202)]=!0x0;}async[_0x410544(0x277)](_0x3ca01d,_0xc0214e){const _0x3a676c=_0x410544,_0x2fa2ea=_0x1933ba(this[_0x3a676c(0x1e5)][_0x3a676c(0x220)],_0x3a676c(0x228));_0xc0214e[_0x3a676c(0x1dd)](_0x2fa2ea),_0x3ca01d[_0x3a676c(0x1bd)]=!0x0,await this[_0x3a676c(0x1fe)][_0x3a676c(0x270)],_0xc0214e[_0x3a676c(0x282)](),this[_0x3a676c(0x1d8)]?.[_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)]&&(this[_0x3a676c(0x1d8)][_0x3a676c(0x216)][_0x3a676c(0x20c)][_0x3a676c(0x1ff)][_0x3a676c(0x266)]=!0x0);}[_0x410544(0x239)](_0x15acd9,_0x300ce5){const _0x3afcf4=_0x410544;_0x15acd9[_0x3afcf4(0x23b)](),_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)]&&(_0x300ce5[_0x3afcf4(0x20c)][_0x3afcf4(0x1ff)][_0x3afcf4(0x266)]=!0x1);}async[_0x410544(0x287)](_0x443fc4,_0x31c875){const _0x473d2a=_0x410544;await this[_0x473d2a(0x1fe)][_0x473d2a(0x270)],this[_0x473d2a(0x202)]=!0x1,_0x443fc4[_0x473d2a(0x24f)](),_0x31c875[_0x473d2a(0x20c)][_0x473d2a(0x24f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3f4d(){const _0x49c092=['actionName','180DmwAqj','html','executeAction','getDocumentContext','1294676bSdWXi','connector','push','version','11643876lOjoWJ','replyCreated','createReply','5YwFgJO','16589avNmfu','2384008tMImab','22MqWoCQ','6seeXwu','current-document','sendRequest','executeCustomAction','fire','replies','6399hfllBY','content','model','Current\x20document','userMessage','2430342ThZokH','1990240GeeFil','TEXT','86zjBkkl','args','editor','delegate','hasError'];_0x3f4d=function(){return _0x49c092;};return _0x3f4d();}const _0x518a51=_0x36a1;function _0x36a1(_0x3bcbba,_0x30c0fe){const _0x3f4de6=_0x3f4d();return _0x36a1=function(_0x36a17e,_0x4c3115){_0x36a17e=_0x36a17e-0x183;let _0x62ef64=_0x3f4de6[_0x36a17e];return _0x62ef64;},_0x36a1(_0x3bcbba,_0x30c0fe);}(function(_0x16c762,_0x5eb664){const _0x54bbfa=_0x36a1,_0x52c214=_0x16c762();while(!![]){try{const _0x5c8438=parseInt(_0x54bbfa(0x19d))/0x1*(parseInt(_0x54bbfa(0x18b))/0x2)+-parseInt(_0x54bbfa(0x1a0))/0x3*(-parseInt(_0x54bbfa(0x195))/0x4)+parseInt(_0x54bbfa(0x19c))/0x5*(parseInt(_0x54bbfa(0x188))/0x6)+parseInt(_0x54bbfa(0x189))/0x7+parseInt(_0x54bbfa(0x19e))/0x8+-parseInt(_0x54bbfa(0x183))/0x9*(parseInt(_0x54bbfa(0x191))/0xa)+parseInt(_0x54bbfa(0x19f))/0xb*(-parseInt(_0x54bbfa(0x199))/0xc);if(_0x5c8438===_0x5eb664)break;else _0x52c214['push'](_0x52c214['shift']());}catch(_0x3ec4eb){_0x52c214['push'](_0x52c214['shift']());}}}(_0x3f4d,0x60567));import{AIInteraction as _0x351d25,AI_MODEL_EVENT_NAMES as _0x1747a1}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x252d1a}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0xc6b58b}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x351d25{[_0x518a51(0x184)];[_0x518a51(0x198)];[_0x518a51(0x190)];[_0x518a51(0x18c)];[_0x518a51(0x187)];[_0x518a51(0x185)];[_0x518a51(0x18f)]=!0x1;constructor(_0x4128ea){const _0x22c837=_0x518a51;super(_0x4128ea),this[_0x22c837(0x184)]=_0x4128ea[_0x22c837(0x184)],this[_0x22c837(0x198)]=_0x4128ea[_0x22c837(0x198)],this[_0x22c837(0x190)]=_0x4128ea[_0x22c837(0x190)],this[_0x22c837(0x18c)]=_0x4128ea[_0x22c837(0x18c)],this[_0x22c837(0x187)]=_0x4128ea[_0x22c837(0x187)],this[_0x22c837(0x185)]=_0x4128ea[_0x22c837(0x185)];}async[_0x518a51(0x1a2)](){const _0x2cd8b2=_0x518a51;return this[_0x2cd8b2(0x190)]?this[_0x2cd8b2(0x196)][_0x2cd8b2(0x193)]({'content':this[_0x2cd8b2(0x184)],'actionName':this[_0x2cd8b2(0x190)],'args':this[_0x2cd8b2(0x18c)]}):this[_0x2cd8b2(0x196)][_0x2cd8b2(0x1a3)]({'content':this[_0x2cd8b2(0x184)],'message':this[_0x2cd8b2(0x187)],'model':this[_0x2cd8b2(0x185)],'outputFormat':_0x2cd8b2(0x192)});}[_0x518a51(0x194)](){const _0x526b0a=_0x518a51;return{'type':_0x252d1a[_0x526b0a(0x18a)],'content':this[_0x526b0a(0x184)],'version':this[_0x526b0a(0x198)],'label':_0x526b0a(0x186),'uiId':_0x526b0a(0x1a1)};}[_0x518a51(0x19b)](_0x184445){const _0x35ee3e=_0x518a51,_0x16f019=new _0xc6b58b({'editor':this[_0x35ee3e(0x18d)],'documentContextContent':this[_0x35ee3e(0x184)],..._0x184445});return this[_0x35ee3e(0x1a5)][_0x35ee3e(0x197)](_0x16f019),_0x16f019[_0x35ee3e(0x18e)](..._0x1747a1)['to'](this),this[_0x35ee3e(0x1a4)](_0x35ee3e(0x19a),_0x16f019),_0x16f019;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5b8b82=_0x3b6f;(function(_0x5ec03a,_0x24788a){const _0x19741a=_0x3b6f,_0xc8526b=_0x5ec03a();while(!![]){try{const _0x2e4612=-parseInt(_0x19741a(0x186))/0x1*(parseInt(_0x19741a(0x198))/0x2)+-parseInt(_0x19741a(0x18d))/0x3*(-parseInt(_0x19741a(0x188))/0x4)+parseInt(_0x19741a(0x18a))/0x5+parseInt(_0x19741a(0x184))/0x6+parseInt(_0x19741a(0x196))/0x7*(parseInt(_0x19741a(0x193))/0x8)+-parseInt(_0x19741a(0x18e))/0x9*(parseInt(_0x19741a(0x187))/0xa)+-parseInt(_0x19741a(0x192))/0xb;if(_0x2e4612===_0x24788a)break;else _0xc8526b['push'](_0xc8526b['shift']());}catch(_0x302146){_0xc8526b['push'](_0xc8526b['shift']());}}}(_0x349a,0xb2e0d));import{AIReply as _0x56475f}from'../../aicore/model/aireply.js';function _0x349a(){const _0x46e7f1=['56948QGQYhy','cloneNode','3632100npxjKa','isDone','childNodes','75roMSCg','5617071krZITz','node','changeGroups','value','4586879KbWilD','104CxEVhT','data-id','updateChangeGroups','598129uEgicj','new','2YwJNGJ','children','pop','length','parsedMergedContent','added','documentContextContent','modified','pending','_getDifferentChangeGroups','map','parsedContent','8261610ikIcrL','removed','1172179SqNZKR','20YPINJG'];_0x349a=function(){return _0x46e7f1;};return _0x349a();}function _0x3b6f(_0x5685ea,_0x1066f2){const _0x349a04=_0x349a();return _0x3b6f=function(_0x3b6f91,_0xd85fd){_0x3b6f91=_0x3b6f91-0x17d;let _0xd925cd=_0x349a04[_0x3b6f91];return _0xd925cd;},_0x3b6f(_0x5685ea,_0x1066f2);}import{getAttribute as _0x436538}from'../../aicore/utils/htmlparser.js';import{uid as _0x3082e7}from'ckeditor5/src/utils.js';import{diffArrays as _0x1aa18c}from'diff';export class AIActionsReply extends _0x56475f{[_0x5b8b82(0x195)](){const _0x4d623d=_0x5b8b82;if(this[_0x4d623d(0x19c)]=this[_0x4d623d(0x183)][_0x4d623d(0x189)](!0x0),0x0==this[_0x4d623d(0x19c)][_0x4d623d(0x18c)][_0x4d623d(0x19b)])return void(this[_0x4d623d(0x190)]=[]);const _0x1c7683=this[_0x4d623d(0x17e)][_0x4d623d(0x199)][_0x4d623d(0x182)](_0x794b0e=>({'node':_0x794b0e,'id':_0x436538(_0x794b0e,_0x4d623d(0x194))})),_0xeea7a2=this[_0x4d623d(0x19c)][_0x4d623d(0x199)][_0x4d623d(0x182)](_0x1bf6c1=>({'node':_0x1bf6c1,'id':_0x436538(_0x1bf6c1,_0x4d623d(0x194))||_0x3082e7()})),_0x2b17fe=_0x1aa18c(_0x1c7683,_0xeea7a2,{'comparator':(_0x3b483d,_0x554a98)=>_0x3b483d['id']==_0x554a98['id'],'oneChangePerToken':!0x0});if(!this[_0x4d623d(0x18b)]){for(;_0x2b17fe[_0x4d623d(0x19b)]&&_0x2b17fe[_0x2b17fe[_0x4d623d(0x19b)]-0x1][_0x4d623d(0x185)];)_0x2b17fe[_0x4d623d(0x19a)]();}const _0x4d5d76=_0x2b17fe[_0x4d623d(0x182)](_0x5f334c=>{const _0x554ad4=_0x4d623d,_0x48103a=_0x5f334c[_0x554ad4(0x17d)]?_0x554ad4(0x197):_0x5f334c[_0x554ad4(0x185)]?_0x554ad4(0x185):_0x554ad4(0x17f);return{'node':_0x5f334c[_0x554ad4(0x191)][0x0][_0x554ad4(0x18f)],'type':_0x48103a,'id':_0x5f334c[_0x554ad4(0x191)][0x0]['id']};});this[_0x4d623d(0x190)]=[{'changes':_0x4d5d76,'state':_0x4d623d(0x180),'index':0x0}];}[_0x5b8b82(0x181)](_0x4f0048,_0x26fd3b){return _0x26fd3b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x16fa74=_0x542d;(function(_0x206588,_0x1f6288){var _0x477ee8=_0x542d,_0x1254d4=_0x206588();while(!![]){try{var _0x2c5345=-parseInt(_0x477ee8(0x73))/0x1+parseInt(_0x477ee8(0x6e))/0x2+-parseInt(_0x477ee8(0x74))/0x3+-parseInt(_0x477ee8(0x71))/0x4*(parseInt(_0x477ee8(0x7e))/0x5)+-parseInt(_0x477ee8(0x7c))/0x6*(parseInt(_0x477ee8(0x77))/0x7)+-parseInt(_0x477ee8(0x7f))/0x8+-parseInt(_0x477ee8(0x80))/0x9*(-parseInt(_0x477ee8(0x78))/0xa);if(_0x2c5345===_0x1f6288)break;else _0x1254d4['push'](_0x1254d4['shift']());}catch(_0x3d3ffe){_0x1254d4['push'](_0x1254d4['shift']());}}}(_0x1435,0x94f5a));import{Plugin as _0x3b89b4}from'ckeditor5/src/core.js';function _0x542d(_0x46d0a3,_0x15428c){var _0x14355c=_0x1435();return _0x542d=function(_0x542d79,_0xbbc4c4){_0x542d79=_0x542d79-0x6e;var _0x132f99=_0x14355c[_0x542d79];return _0x132f99;},_0x542d(_0x46d0a3,_0x15428c);}function _0x1435(){var _0x16edf3=['AIAdapter','5820Dbgsfr','281943qMHEVx','textAdapter','AIRequestError','215026VKLSdj','26260370RCZGTb','pluginName','afterInit','isOfficialPlugin','204iQGkbZ','name','5yTsoju','3713232bIjDXN','9aFIEIY','81582uszAJd','aiadapter-text-adapter-not-set','isPremiumPlugin','1793292FFGPlD'];_0x1435=function(){return _0x16edf3;};return _0x1435();}import{CKEditorError as _0x41636f}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x3b89b4{static get[_0x16fa74(0x79)](){var _0x37d8a4=_0x16fa74;return _0x37d8a4(0x72);}static get[_0x16fa74(0x7b)](){return!0x0;}static get[_0x16fa74(0x70)](){return!0x0;}[_0x16fa74(0x7a)](){var _0x3d9d9a=_0x16fa74;if(!this[_0x3d9d9a(0x75)])throw new _0x41636f(_0x3d9d9a(0x6f),null);}}export class AIRequestError extends Error{constructor(_0x598d30){var _0x25ae64=_0x16fa74;super(_0x598d30),this[_0x25ae64(0x7d)]=_0x25ae64(0x76);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e6f3c=_0x4cb5;(function(_0x5d576d,_0x40edcd){const _0x50bdbc=_0x4cb5,_0x54c96f=_0x5d576d();while(!![]){try{const _0x13b256=parseInt(_0x50bdbc(0x16d))/0x1+parseInt(_0x50bdbc(0x151))/0x2+-parseInt(_0x50bdbc(0x14a))/0x3*(-parseInt(_0x50bdbc(0x162))/0x4)+parseInt(_0x50bdbc(0x15e))/0x5*(-parseInt(_0x50bdbc(0x16c))/0x6)+-parseInt(_0x50bdbc(0x15f))/0x7*(-parseInt(_0x50bdbc(0x163))/0x8)+-parseInt(_0x50bdbc(0x14e))/0x9+-parseInt(_0x50bdbc(0x16e))/0xa;if(_0x13b256===_0x40edcd)break;else _0x54c96f['push'](_0x54c96f['shift']());}catch(_0x5cebcf){_0x54c96f['push'](_0x54c96f['shift']());}}}(_0xa072,0x77433));function _0xa072(){const _0x5a68b4=['511wyUsVo','_prepareRequestHeaders','aitextadapter-send-request-failed','4mTsOhh','81544FxujQV','get','sendRequest','textAdapter','init','AI_ERROR_GET_PARAMETERS','editor','reject','error','6rdtBIs','274927RWUtCP','6121320UsPBnv','219282vkkfXw','resolve','plugins','requires','124326Eelavv','signal','object','1857148wCjkSS','makeRequest','name','abortController','_prepareRequestParameters','catch','locale','aborted','assign','AI_ERROR_GET_HEADERS','AbortError','application/json','abort','4531195TqnfRd'];_0xa072=function(){return _0x5a68b4;};return _0xa072();}import{Plugin as _0x1ad7c3}from'ckeditor5/src/core.js';import{CKEditorError as _0x3ae9ff}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4a43cd,AIRequestError as _0x80876b}from'./aiadapter.js';import{getTranslation as _0x2a9018}from'../utils/common-translations.js';function _0x4cb5(_0x401737,_0x33d1b1){const _0xa072e7=_0xa072();return _0x4cb5=function(_0x4cb5e8,_0x59a4f1){_0x4cb5e8=_0x4cb5e8-0x14a;let _0x55f4c0=_0xa072e7[_0x4cb5e8];return _0x55f4c0;},_0x4cb5(_0x401737,_0x33d1b1);}export class AITextAdapter extends _0x1ad7c3{[_0x1e6f3c(0x154)];static get[_0x1e6f3c(0x14d)](){return[_0x4a43cd];}constructor(_0xee7b5b){const _0x516be3=_0x1e6f3c;super(_0xee7b5b),this[_0x516be3(0x154)]=new AbortController();}[_0x1e6f3c(0x167)](){const _0x5bb540=_0x1e6f3c;this[_0x5bb540(0x169)][_0x5bb540(0x14c)][_0x5bb540(0x164)](_0x4a43cd)[_0x5bb540(0x166)]=this;}[_0x1e6f3c(0x15d)](){const _0xe49b62=_0x1e6f3c;this[_0xe49b62(0x154)][_0xe49b62(0x14f)][_0xe49b62(0x158)]||(this[_0xe49b62(0x154)][_0xe49b62(0x15d)](),this[_0xe49b62(0x154)]=new AbortController());}async[_0x1e6f3c(0x152)](_0x5a7171){const _0x17a9d7=_0x1e6f3c;return this[_0x17a9d7(0x165)](_0x5a7171)[_0x17a9d7(0x156)](_0x338147=>{const _0x4bd6df=_0x17a9d7;if(_0x338147 instanceof _0x80876b)return Promise[_0x4bd6df(0x16a)](_0x338147);if(_0x4bd6df(0x15b)==_0x338147[_0x4bd6df(0x153)])return Promise[_0x4bd6df(0x14b)]();throw console[_0x4bd6df(0x16b)](_0x338147),new _0x3ae9ff(_0x4bd6df(0x161),null);});}async[_0x1e6f3c(0x160)](_0x4e15b3,_0x12009b){const _0x1e0950=_0x1e6f3c,_0x3cb210=this[_0x1e0950(0x169)][_0x1e0950(0x157)],_0x1e0352={'Content-Type':_0x1e0950(0x15c)};if(_0x1e0950(0x150)==typeof _0x4e15b3)Object[_0x1e0950(0x159)](_0x1e0352,_0x4e15b3);else{if(_0x4e15b3)try{const _0x176fde=await _0x4e15b3(_0x12009b);Object[_0x1e0950(0x159)](_0x1e0352,_0x176fde);}catch{return Promise[_0x1e0950(0x16a)](new _0x80876b(_0x2a9018(_0x3cb210,_0x1e0950(0x15a))));}}return _0x1e0352;}async[_0x1e6f3c(0x155)](_0x166d5c,_0x4f82d5){const _0x2d2e47=_0x1e6f3c,_0x4077d6=this[_0x2d2e47(0x169)][_0x2d2e47(0x157)];if(_0x2d2e47(0x150)==typeof _0x166d5c)return _0x166d5c;try{return await _0x166d5c(_0x4f82d5);}catch{return Promise[_0x2d2e47(0x16a)](new _0x80876b(_0x2a9018(_0x4077d6,_0x2d2e47(0x168))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5642bf=_0xf88c;(function(_0x4819de,_0x190d95){const _0xd86ba3=_0xf88c,_0x5932f8=_0x4819de();while(!![]){try{const _0x5c3993=parseInt(_0xd86ba3(0x105))/0x1+-parseInt(_0xd86ba3(0xf4))/0x2*(parseInt(_0xd86ba3(0x119))/0x3)+parseInt(_0xd86ba3(0x102))/0x4*(-parseInt(_0xd86ba3(0x104))/0x5)+parseInt(_0xd86ba3(0x115))/0x6*(-parseInt(_0xd86ba3(0x101))/0x7)+-parseInt(_0xd86ba3(0xde))/0x8*(-parseInt(_0xd86ba3(0xfd))/0x9)+-parseInt(_0xd86ba3(0xf5))/0xa+parseInt(_0xd86ba3(0x11d))/0xb*(parseInt(_0xd86ba3(0xdf))/0xc);if(_0x5c3993===_0x190d95)break;else _0x5932f8['push'](_0x5932f8['shift']());}catch(_0x15b20e){_0x5932f8['push'](_0x5932f8['shift']());}}}(_0x5918,0x450a3));import{AITextAdapter as _0x430538}from'./aitextadapter.js';import{AIRequestError as _0x5c0fce}from'./aiadapter.js';import{BedrockRuntimeClient as _0x18ffeb,InvokeModelCommand as _0x3cb64b,InvokeModelWithResponseStreamCommand as _0x203bf3}from'@aws-sdk/client-bedrock-runtime';function _0xf88c(_0x514580,_0x103bcd){const _0x591846=_0x5918();return _0xf88c=function(_0xf88c7e,_0x4757d7){_0xf88c7e=_0xf88c7e-0xd0;let _0x38b8f5=_0x591846[_0xf88c7e];return _0x38b8f5;},_0xf88c(_0x514580,_0x103bcd);}function _0x5918(){const _0x3fe2e6=['_prepareRequestHeaders','config','resolve','86898qEpVIy','send','Human:\x0a','bytes','1344021rxdmUv','filter','data','get','11UvHToV','length','bedrock-2023-05-31','body','AWSTextAdapter','application/json','pluginName','ai21.j2','split','editor','getModelFamily','signal','ai.assistant.adapter.aws.requestParameters','\x0a<</SYS>>\x0a[INST]\x0a','_processAWSRequest','utf-8','generation','_readStreamableResponse','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','1552IylEKI','11315076ZVmUvx','meta.llama','stringify','test','_bedrockClientConfig','text','decode','ai.assistant.adapter.aws.bedrockClientConfig','completion','AI_ERROR_UNSUPPORTED_MODEL','_requestHeaders','chunk','locale','POST','anthropic.claude','_readStaticResponse','anthropic.claude-v2','_apiUrl','preparePrompt','cohere.command','json','2CyWgXk','1136610EuideG','sendRequest','_requestParameters','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.','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.','\x0a[/INST]','join','<<SYS>>\x0a','4113XgrBDQ','abortController','_processProxyRequest','Instruction:\x0a','42MoFQdO','4vPpPVg','completions','2493070jYrcws','398386CZNgXi','\x0a\x0aAssistant:','parse','_readAsyncIterableResponse','generations','ai.assistant.adapter.aws.apiUrl','_prepareRequestParameters','ai.assistant.adapter.aws.requestHeaders','map','read','define','getReader','_getGeneratedText'];_0x5918=function(){return _0x3fe2e6;};return _0x5918();}import{getTranslation as _0x47beab}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x430538{[_0x5642bf(0xf0)];[_0x5642bf(0xe9)];[_0x5642bf(0xe3)];[_0x5642bf(0xf7)];static get[_0x5642bf(0xd1)](){const _0x1dd9b4=_0x5642bf;return _0x1dd9b4(0x121);}constructor(_0x33e560){const _0x57b937=_0x5642bf;super(_0x33e560),_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xd7))||_0x33e560[_0x57b937(0x113)][_0x57b937(0x10f)](_0x57b937(0xd7),{'model':_0x57b937(0xef),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x57b937(0x11f),'stream':!0x0}),this[_0x57b937(0xf0)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0x10a)),this[_0x57b937(0xe3)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xe6)),this[_0x57b937(0xe9)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0x10c)),this[_0x57b937(0xf7)]=_0x33e560[_0x57b937(0x113)][_0x57b937(0x11c)](_0x57b937(0xd7));}async[_0x5642bf(0xf6)]({query:_0x1b99a1,context:_0x5b5ddd,onData:_0x2d7923,actionId:_0x34ae30}){const _0x368c6b=_0x5642bf,{model:_0x9e11d0,stream:_0x5368c3,..._0x222e93}=await this[_0x368c6b(0x10b)](this[_0x368c6b(0xf7)],_0x34ae30),_0x24edb8={'prompt':await this[_0x368c6b(0xf1)](_0x1b99a1,_0x5b5ddd,_0x9e11d0,_0x34ae30),..._0x222e93};this[_0x368c6b(0xf0)]?await this[_0x368c6b(0xff)](_0x24edb8,_0x9e11d0,_0x5368c3,_0x2d7923,_0x34ae30):await this[_0x368c6b(0xd9)](_0x24edb8,_0x9e11d0,_0x5368c3,_0x2d7923);}async[_0x5642bf(0xf1)](_0x1d85d6,_0x128cee,_0x8b714e,_0x5e8377){const _0x384308=_0x5642bf;let _0x33d30c,_0x52fcf2;return _0x128cee?(_0x33d30c=_0x384308(0xf9),_0x52fcf2=_0x384308(0x100)+_0x1d85d6+_0x384308(0xdd)+_0x128cee):(_0x33d30c=_0x384308(0xf8),_0x52fcf2=_0x1d85d6),_0x384308(0xe0)==this[_0x384308(0xd5)](_0x8b714e)?_0x384308(0xfc)+_0x33d30c+_0x384308(0xd8)+_0x52fcf2+_0x384308(0xfa):_0x384308(0x117)+_0x33d30c+'\x0a'+_0x52fcf2+_0x384308(0x106);}[_0x5642bf(0xd5)](_0x4ea2a9){const _0x439615=_0x5642bf;if(/^anthropic\.claude/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xed);if(/^ai21\.j2/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xd2);if(/^cohere\.command/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xf2);if(/^meta\.llama/[_0x439615(0xe2)](_0x4ea2a9))return _0x439615(0xe0);throw new _0x5c0fce(_0x47beab(this[_0x439615(0xd4)][_0x439615(0xeb)],_0x439615(0xe8),_0x4ea2a9));}async[_0x5642bf(0xff)](_0x3b95a3,_0x282f1a,_0x328075,_0x48d5d1,_0x189216){const _0x15c2ac=_0x5642bf,_0xc9a1c={'method':_0x15c2ac(0xec),'headers':await this[_0x15c2ac(0x112)](this[_0x15c2ac(0xe9)],_0x189216),'body':JSON[_0x15c2ac(0xe1)]({..._0x3b95a3,'model':_0x282f1a,'stream':_0x328075}),'signal':this[_0x15c2ac(0xfe)][_0x15c2ac(0xd6)]},_0x6d7024=await fetch(this[_0x15c2ac(0xf0)],_0xc9a1c);_0x328075?await this[_0x15c2ac(0xdc)](_0x6d7024,_0x282f1a,_0x48d5d1):await this[_0x15c2ac(0xee)](_0x6d7024,_0x282f1a,_0x48d5d1);}async[_0x5642bf(0xd9)](_0x39cb3d,_0xe2173e,_0x2e9b1e,_0x61a4fe){const _0x35f8fe=_0x5642bf,_0x5a9e45=new _0x18ffeb(this[_0x35f8fe(0xe3)]),_0x463608={'body':JSON[_0x35f8fe(0xe1)](_0x39cb3d),'contentType':_0x35f8fe(0xd0),'accept':_0x35f8fe(0xd0),'modelId':_0xe2173e};let _0xccc69b;if(_0x2e9b1e){const _0x3d6c2d=new _0x203bf3(_0x463608);_0xccc69b=await _0x5a9e45[_0x35f8fe(0x116)](_0x3d6c2d,{'abortSignal':this[_0x35f8fe(0xfe)][_0x35f8fe(0xd6)]}),await this[_0x35f8fe(0x108)](_0xccc69b,_0xe2173e,_0x61a4fe);}else{const _0x3ef6c2=new _0x3cb64b(_0x463608);_0xccc69b=await _0x5a9e45[_0x35f8fe(0x116)](_0x3ef6c2,{'abortSignal':this[_0x35f8fe(0xfe)][_0x35f8fe(0xd6)]}),await this[_0x35f8fe(0xee)](_0xccc69b,_0xe2173e,_0x61a4fe);}}async[_0x5642bf(0x108)](_0x31af57,_0x3acb2e,_0x381706){const _0x135822=_0x5642bf,_0x4f02c9=_0x31af57[_0x135822(0x120)],_0x357c5a=new TextDecoder(_0x135822(0xda));let _0x44727c='';for await(const _0x1a5fc4 of _0x4f02c9)if(_0x1a5fc4[_0x135822(0xea)]){const _0x531b3a=_0x357c5a[_0x135822(0xe5)](_0x1a5fc4[_0x135822(0xea)][_0x135822(0x118)]),_0x2bbcf8=JSON[_0x135822(0x107)](_0x531b3a);_0x44727c+=this[_0x135822(0x111)](_0x2bbcf8,_0x3acb2e),_0x381706(_0x44727c);}return Promise[_0x135822(0x114)]();}async[_0x5642bf(0xdc)](_0x543648,_0x62c5b3,_0x392217){const _0xe27dc9=_0x5642bf,_0x3cf32f=_0x543648[_0xe27dc9(0x120)],_0x58ff3c=new TextDecoder(_0xe27dc9(0xda)),_0x17103b=_0x3cf32f[_0xe27dc9(0x110)]();let _0x2f4819='',_0x2e1483='',_0x394b25=!0x1;for(;!_0x394b25;){const {done:_0x4dc060,value:_0x546f23}=await _0x17103b[_0xe27dc9(0x10e)]();if(_0x394b25=_0x4dc060,_0x394b25)break;const _0x1333c7=(_0x2f4819+_0x58ff3c[_0xe27dc9(0xe5)](_0x546f23))[_0xe27dc9(0xd3)]('\x0a')[_0xe27dc9(0x10d)](_0x56866d=>{const _0x148447=_0xe27dc9;try{return _0x2f4819='',JSON[_0x148447(0x107)](_0x56866d);}catch{return _0x2f4819=_0x56866d,null;}})[_0xe27dc9(0x11a)](_0x17cfb4=>null!==_0x17cfb4);_0x1333c7[_0xe27dc9(0x11e)]&&(_0x2e1483+=_0x1333c7[_0xe27dc9(0x10d)](_0x4f256c=>this[_0xe27dc9(0x111)](_0x4f256c,_0x62c5b3))[_0xe27dc9(0xfb)](''),_0x392217(_0x2e1483));}return Promise[_0xe27dc9(0x114)]();}async[_0x5642bf(0xee)](_0x50248b,_0x146f37,_0x33c5bf){const _0xdbf572=_0x5642bf;let _0x3c4f7a;return _0x3c4f7a=_0x50248b instanceof Response?await _0x50248b[_0xdbf572(0xf3)]():JSON[_0xdbf572(0x107)](new TextDecoder(_0xdbf572(0xda))[_0xdbf572(0xe5)](_0x50248b[_0xdbf572(0x120)])),(_0x33c5bf(this[_0xdbf572(0x111)](_0x3c4f7a,_0x146f37)),Promise[_0xdbf572(0x114)]());}[_0x5642bf(0x111)](_0x114318,_0x14bac1){const _0x5991b6=_0x5642bf;switch(this[_0x5991b6(0xd5)](_0x14bac1)){case _0x5991b6(0xed):return _0x114318[_0x5991b6(0xe7)];case _0x5991b6(0xd2):return _0x114318[_0x5991b6(0x103)][0x0][_0x5991b6(0x11b)][_0x5991b6(0xe4)];case _0x5991b6(0xf2):return _0x114318[_0x5991b6(0x109)][0x0][_0x5991b6(0xe4)];case _0x5991b6(0xe0):return _0x114318[_0x5991b6(0xdb)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33b32d=_0x568f;(function(_0x5a8f3d,_0x2bab9f){const _0x425f06=_0x568f,_0x2c7f1b=_0x5a8f3d();while(!![]){try{const _0x1b26e7=-parseInt(_0x425f06(0x8d))/0x1*(-parseInt(_0x425f06(0x84))/0x2)+-parseInt(_0x425f06(0x92))/0x3*(-parseInt(_0x425f06(0xc6))/0x4)+parseInt(_0x425f06(0x90))/0x5+parseInt(_0x425f06(0xc0))/0x6+parseInt(_0x425f06(0xbf))/0x7*(-parseInt(_0x425f06(0x8b))/0x8)+-parseInt(_0x425f06(0xa1))/0x9+-parseInt(_0x425f06(0xaf))/0xa;if(_0x1b26e7===_0x2bab9f)break;else _0x2c7f1b['push'](_0x2c7f1b['shift']());}catch(_0x3c2f1d){_0x2c7f1b['push'](_0x2c7f1b['shift']());}}}(_0x28a8,0x8a544));function _0x568f(_0x56242e,_0x43375b){const _0x28a876=_0x28a8();return _0x568f=function(_0x568fc7,_0x4f914f){_0x568fc7=_0x568fc7-0x84;let _0x3f0f89=_0x28a876[_0x568fc7];return _0x3f0f89;},_0x568f(_0x56242e,_0x43375b);}import{AITextAdapter as _0x557cec}from'./aitextadapter.js';import{AIRequestError as _0x14dfa9}from'./aiadapter.js';import{getTranslation as _0xb4eeb6}from'../utils/common-translations.js';function _0x28a8(){const _0xe7bd70=['getReader','pluginName','_requestHeaders','2317860MMQVNk','_prepareRequestParameters','https://api.openai.com/v1/chat/completions','_readStreamableResponse','ai.assistant.adapter.openAI.apiUrl','reject','split','config','replace','AI_ERROR_MODERATION','content','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.','abortController','_requestParameters','Moderation','signal','7904183vouRGG','4976502uaptdl','stringify','body','stream','gpt-4o','length','2041624SroLQc','resolve','sendRequest','POST','22bVXuSV','delta','define','text','choices','_cleanUpData','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.','8Wamgzb','context_length_exceeded','190vPXOMb','map','prepareMessages','3812930ssgUGZ','_prepareRequestHeaders','6kHgRTz','get','_isBufferIncomplete','user','AI_ERROR_CONTEXT_LENGTH','OpenAITextAdapter','parse','editor','[DONE]','ai.assistant.adapter.openAI.requestParameters','ai.assistant.adapter.openAI.requestHeaders','Instruction:\x0a','json','filter','_apiUrl','6186186lXmiiS','message','_readStaticResponse','data:\x20','read','includes','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','decode','join','locale','system'];_0x28a8=function(){return _0xe7bd70;};return _0x28a8();}export class OpenAITextAdapter extends _0x557cec{[_0x33b32d(0xa0)];[_0x33b32d(0xae)];[_0x33b32d(0xbc)];static get[_0x33b32d(0xad)](){const _0xa269d9=_0x33b32d;return _0xa269d9(0x97);}constructor(_0x24bfa8){const _0x492df6=_0x33b32d;super(_0x24bfa8),_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x86)](_0x492df6(0xb3),_0x492df6(0xb1)),_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9b))||_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x86)](_0x492df6(0x9b),{'model':_0x492df6(0xc4),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x492df6(0xa0)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0xb3)),this[_0x492df6(0xae)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9c))||{},this[_0x492df6(0xbc)]=_0x24bfa8[_0x492df6(0xb6)][_0x492df6(0x93)](_0x492df6(0x9b));}async[_0x33b32d(0xc8)]({query:_0x7117b1,context:_0x449b04,onData:_0x1a88f5,actionId:_0x224dfa}){const _0x82449f=_0x33b32d,_0x283a51=this[_0x82449f(0x99)][_0x82449f(0xaa)],_0x5c3d57=await this[_0x82449f(0x8f)](_0x7117b1,_0x449b04,_0x224dfa),_0x4d96f7=await this[_0x82449f(0x91)](this[_0x82449f(0xae)],_0x224dfa),_0x3e21da=await this[_0x82449f(0xb0)](this[_0x82449f(0xbc)],_0x224dfa),_0x5aea18={'messages':_0x5c3d57,..._0x3e21da},_0x4f93ab={'method':_0x82449f(0xc9),'headers':_0x4d96f7,'body':JSON[_0x82449f(0xc1)](_0x5aea18),'signal':this[_0x82449f(0xbb)][_0x82449f(0xbe)]},_0x33ff17=await fetch(this[_0x82449f(0xa0)],_0x4f93ab);if(_0x33ff17['ok'])return _0x3e21da[_0x82449f(0xc3)]?await this[_0x82449f(0xb2)](_0x33ff17,_0x1a88f5):await this[_0x82449f(0xa3)](_0x33ff17,_0x1a88f5),Promise[_0x82449f(0xc7)]();{const _0xaafa36=await _0x33ff17[_0x82449f(0x87)]();return _0xaafa36[_0x82449f(0xa6)](_0x82449f(0x8c))?Promise[_0x82449f(0xb4)](new _0x14dfa9(_0xb4eeb6(_0x283a51,_0x82449f(0x96)))):_0xaafa36[_0x82449f(0xa6)](_0x82449f(0xbd))?Promise[_0x82449f(0xb4)](new _0x14dfa9(_0xb4eeb6(_0x283a51,_0x82449f(0xb8)))):Promise[_0x82449f(0xb4)](new Error(_0xaafa36));}}async[_0x33b32d(0x8f)](_0x1d078a,_0x1ff34c,_0x36d065){const _0x1f46a5=_0x33b32d;let _0x59a605,_0x46d6f7;return _0x1ff34c?(_0x59a605=_0x1f46a5(0xba),_0x46d6f7=_0x1f46a5(0x9d)+_0x1d078a+_0x1f46a5(0xa7)+_0x1ff34c):(_0x59a605=_0x1f46a5(0x8a),_0x46d6f7=_0x1d078a),[{'role':_0x1f46a5(0xab),'content':_0x59a605},{'role':_0x1f46a5(0x95),'content':_0x46d6f7}];}async[_0x33b32d(0xb2)](_0x50619d,_0x280794){const _0x2552b8=_0x33b32d,_0x5484d2=_0x50619d[_0x2552b8(0xc2)][_0x2552b8(0xac)](),_0x58bb3d=new TextDecoder();let _0x1ac41e='',_0x7fc76b='',_0x520215='',_0x535de1=!0x1;for(;!_0x535de1;){const {done:_0x3e3ec0,value:_0x31aa21}=await _0x5484d2[_0x2552b8(0xa5)](),_0x182af4=_0x1ac41e+_0x58bb3d[_0x2552b8(0xa8)](_0x31aa21);let _0x560caf='';_0x535de1=_0x3e3ec0;try{_0x560caf=this[_0x2552b8(0x89)](_0x182af4),_0x1ac41e='';}catch{_0x1ac41e=_0x182af4;continue;}_0x7fc76b+=_0x560caf,!_0x535de1&&this[_0x2552b8(0x94)](_0x7fc76b)||_0x7fc76b&&(_0x520215+=_0x7fc76b,_0x7fc76b='',_0x280794(_0x520215));}return Promise[_0x2552b8(0xc7)]();}async[_0x33b32d(0xa3)](_0x188938,_0x7a5b1b){const _0xaeb57b=_0x33b32d;return _0x7a5b1b((await _0x188938[_0xaeb57b(0x9e)]())[_0xaeb57b(0x88)][0x0][_0xaeb57b(0xa2)][_0xaeb57b(0xb9)]),Promise[_0xaeb57b(0xc7)]();}[_0x33b32d(0x94)](_0x25587d){const _0x4fa19a=_0x33b32d,_0x44bcfa=_0x25587d[_0x4fa19a(0xb5)]('<')[_0x4fa19a(0xc5)]!==_0x25587d[_0x4fa19a(0xb5)]('>')[_0x4fa19a(0xc5)],_0x5251ea=_0x25587d[_0x4fa19a(0xc5)]<0x1e;return _0x44bcfa&&_0x5251ea;}[_0x33b32d(0x89)](_0x2122ce){const _0xaec61d=_0x33b32d;return _0x2122ce[_0xaec61d(0xb5)](/\n(?![^{]*\})/g)[_0xaec61d(0x8e)](_0x22f8bd=>_0x22f8bd[_0xaec61d(0xb7)](_0xaec61d(0xa4),''))[_0xaec61d(0x9f)](_0x16249c=>_0x16249c&&_0x16249c[_0xaec61d(0xc5)]>0x0&&_0xaec61d(0x9a)!==_0x16249c)[_0xaec61d(0x8e)](_0x4d8315=>{const _0x231771=_0xaec61d,{choices:_0x40f090}=JSON[_0x231771(0x98)](_0x4d8315);if(_0x40f090[0x0]?.[_0x231771(0x85)]?.[_0x231771(0xb9)])return _0x40f090[0x0][_0x231771(0x85)][_0x231771(0xb9)];})[_0xaec61d(0x9f)](_0x5d1de2=>_0x5d1de2)[_0xaec61d(0xa9)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1a41(_0x50e9cf,_0x1ae728){const _0x6a5143=_0x6a51();return _0x1a41=function(_0x1a41ea,_0x217420){_0x1a41ea=_0x1a41ea-0x1b5;let _0x12163a=_0x6a5143[_0x1a41ea];return _0x12163a;},_0x1a41(_0x50e9cf,_0x1ae728);}const _0x4d19fa=_0x1a41;function _0x6a51(){const _0x438061=['professional','isPremiumPlugin','Direct','isOfficialPlugin','Simplified\x20Chinese','translateGerman','3KNyeUO','Change\x20style','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Change\x20tone','Continue','AIAssistant','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Spanish','1RTAHNK','editOrReview','commands','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Professional','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','1159776UxBsrI','makeLonger','simplifyLanguage','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','1294510gWhblH','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Hindi','push','translateEnglish','Translate\x20the\x20content\x20to\x20German\x20language.','includes','translateChinese','French','ai.assistant.removeCommands','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Business','ai.assistant.extraCommandGroups','filter','ai.assistant.preserveComments','friendly','132298zVvYSu','1598427NqZmoc','Arabic','Portuguese','translateHindi','translatePortuguese','988564MUaeSt','Confident','config','translateFrench','poetic','journalism','pluginName','summarize','Make\x20longer','groupId','Translate','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','forEach','translateSpanish','6fEoNLA','business','changeTone','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','direct','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Improve\x20writing','locale','ai.assistant.commands','Legal','confident','Simplify\x20language','Friendly','Translate\x20the\x20content\x20to\x20English\x20language.','requires','977522BLOXnn','changeStyle','improveWriting','Translate\x20the\x20content\x20to\x20Hindi\x20language.','set','Casual','generate','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','define','concat','Summarize','casual','translateArabic','English','find','3065775dXhXUr','continue','Journalism','get','Edit\x20or\x20review','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','German','makeShorter','translate','Translate\x20the\x20content\x20to\x20French\x20language.','Generate\x20from\x20selection','Make\x20shorter','legal','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.'];_0x6a51=function(){return _0x438061;};return _0x6a51();}(function(_0x18281b,_0x21df92){const _0x2cb444=_0x1a41,_0xf56ffd=_0x18281b();while(!![]){try{const _0x36b598=-parseInt(_0x2cb444(0x1bd))/0x1*(parseInt(_0x2cb444(0x1da))/0x2)+parseInt(_0x2cb444(0x223))/0x3*(-parseInt(_0x2cb444(0x1e0))/0x4)+parseInt(_0x2cb444(0x20f))/0x5+-parseInt(_0x2cb444(0x1f1))/0x6*(parseInt(_0x2cb444(0x200))/0x7)+-parseInt(_0x2cb444(0x1c3))/0x8+parseInt(_0x2cb444(0x1db))/0x9+parseInt(_0x2cb444(0x1c9))/0xa;if(_0x36b598===_0x21df92)break;else _0xf56ffd['push'](_0xf56ffd['shift']());}catch(_0x5f03f4){_0xf56ffd['push'](_0xf56ffd['shift']());}}}(_0x6a51,0x4eafd));import{Plugin as _0x297345}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x525cdd}from'./aiassistantui.js';import{AIAssistantEditing as _0x5aeb9a}from'./aiassistantediting.js';import{getTranslation as _0x920f9a}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3040bc}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x297345{static get[_0x4d19fa(0x1ff)](){return[_0x525cdd,_0x5aeb9a];}static get[_0x4d19fa(0x1e6)](){const _0xbb30f2=_0x4d19fa;return _0xbb30f2(0x1ba);}static get[_0x4d19fa(0x220)](){return!0x0;}static get[_0x4d19fa(0x21e)](){return!0x0;}constructor(_0x50bafe){const _0xae6be6=_0x4d19fa;super(_0x50bafe);const _0x450a46=_0x50bafe[_0xae6be6(0x1e2)],_0x28285f=_0x50bafe[_0xae6be6(0x1f8)];_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d8),!0x0),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1f9),getDefaultAICommands(_0x28285f)),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d6),[]),_0x450a46[_0xae6be6(0x208)](_0xae6be6(0x1d3),[]);let _0x302fb=_0x3040bc(_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1f9)),_0x28285f);const _0x44be3c=_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1d6)),_0x3b5345=_0x450a46[_0xae6be6(0x212)](_0xae6be6(0x1d3));_0x44be3c[_0xae6be6(0x1ef)](_0x453e5d=>{const _0x2f26a6=_0xae6be6,_0x3c0616=_0x302fb[_0x2f26a6(0x20e)](_0x33517a=>_0x33517a[_0x2f26a6(0x1e9)]===_0x453e5d[_0x2f26a6(0x1e9)]);_0x3c0616?_0x3c0616[_0x2f26a6(0x1bf)]=_0x3c0616[_0x2f26a6(0x1bf)][_0x2f26a6(0x209)](_0x453e5d[_0x2f26a6(0x1bf)]):_0x302fb[_0x2f26a6(0x1cd)](_0x453e5d);}),_0x302fb=_0x302fb[_0xae6be6(0x1d7)](_0x2c4a19=>!_0x3b5345[_0xae6be6(0x1d0)](_0x2c4a19[_0xae6be6(0x1e9)])),_0x302fb[_0xae6be6(0x1ef)](_0x128844=>{const _0x1567f5=_0xae6be6;_0x128844[_0x1567f5(0x1bf)]=_0x128844[_0x1567f5(0x1bf)][_0x1567f5(0x1d7)](_0x25deed=>!_0x3b5345[_0x1567f5(0x1d0)](_0x25deed['id']));}),_0x450a46[_0xae6be6(0x204)](_0xae6be6(0x1f9),_0x302fb);}}export function getDefaultAICommands(_0x7e19f4){const _0xc46b37=_0x4d19fa;return[{'groupId':_0xc46b37(0x1be),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x213)),'commands':[{'id':_0xc46b37(0x202),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1f7)),'prompt':_0xc46b37(0x1b7)},{'id':_0xc46b37(0x216),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x21a)),'prompt':_0xc46b37(0x1f4)},{'id':_0xc46b37(0x1c4),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1e8)),'prompt':_0xc46b37(0x1ec)},{'id':_0xc46b37(0x1c5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fc)),'prompt':_0xc46b37(0x214)}]},{'groupId':_0xc46b37(0x206),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x219)),'commands':[{'id':_0xc46b37(0x1e7),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x20a)),'prompt':_0xc46b37(0x1c0)},{'id':_0xc46b37(0x210),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b9)),'prompt':_0xc46b37(0x1bb)}]},{'groupId':_0xc46b37(0x1f3),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b8)),'commands':[{'id':_0xc46b37(0x21d),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1c1)),'prompt':_0xc46b37(0x21c)},{'id':_0xc46b37(0x20b),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x205)),'prompt':_0xc46b37(0x1c7)},{'id':_0xc46b37(0x1f5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x21f)),'prompt':_0xc46b37(0x1eb)},{'id':_0xc46b37(0x1fb),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1e1)),'prompt':_0xc46b37(0x1c2)},{'id':_0xc46b37(0x1d9),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fd)),'prompt':_0xc46b37(0x1f6)}]},{'groupId':_0xc46b37(0x201),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1b5)),'commands':[{'id':_0xc46b37(0x1f2),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1d5)),'prompt':_0xc46b37(0x1ee)},{'id':_0xc46b37(0x21b),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1fa)),'prompt':_0xc46b37(0x1d4)},{'id':_0xc46b37(0x1e5),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x211)),'prompt':_0xc46b37(0x1cb)},{'id':_0xc46b37(0x1e4),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1ed)),'prompt':_0xc46b37(0x1b6)}]},{'groupId':_0xc46b37(0x217),'groupLabel':_0x920f9a(_0x7e19f4,_0xc46b37(0x1ea)),'commands':[{'id':_0xc46b37(0x1ce),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x20d)),'prompt':_0xc46b37(0x1fe)},{'id':_0xc46b37(0x1f0),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1bc)),'prompt':_0xc46b37(0x1c8)},{'id':_0xc46b37(0x1df),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1dd)),'prompt':_0xc46b37(0x1c6)},{'id':_0xc46b37(0x222),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x215)),'prompt':_0xc46b37(0x1cf)},{'id':_0xc46b37(0x1e3),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1d2)),'prompt':_0xc46b37(0x218)},{'id':_0xc46b37(0x1d1),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x221)),'prompt':_0xc46b37(0x207)},{'id':_0xc46b37(0x1de),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1cc)),'prompt':_0xc46b37(0x203)},{'id':_0xc46b37(0x20c),'label':_0x920f9a(_0x7e19f4,_0xc46b37(0x1dc)),'prompt':_0xc46b37(0x1ca)}]}];}
|