@ckeditor/ckeditor5-ai 47.2.0 → 47.3.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/LICENSE.md +16 -20
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +285 -65
- package/dist/index.css +286 -68
- package/dist/index.js +5 -5
- 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 +10 -1
- package/lang/translations/af.po +36 -0
- package/lang/translations/ar.po +36 -0
- package/lang/translations/ast.po +36 -0
- package/lang/translations/az.po +36 -0
- package/lang/translations/be.po +36 -0
- package/lang/translations/bg.po +36 -0
- package/lang/translations/bn.po +36 -0
- package/lang/translations/bs.po +36 -0
- package/lang/translations/ca.po +36 -0
- package/lang/translations/cs.po +36 -0
- package/lang/translations/da.po +36 -0
- package/lang/translations/de-ch.po +36 -0
- package/lang/translations/de.po +36 -0
- package/lang/translations/el.po +36 -0
- package/lang/translations/en-au.po +36 -0
- package/lang/translations/en-gb.po +36 -0
- package/lang/translations/en.po +36 -0
- package/lang/translations/eo.po +36 -0
- package/lang/translations/es-co.po +36 -0
- package/lang/translations/es.po +36 -0
- package/lang/translations/et.po +36 -0
- package/lang/translations/eu.po +36 -0
- package/lang/translations/fa.po +36 -0
- package/lang/translations/fi.po +36 -0
- package/lang/translations/fr.po +36 -0
- package/lang/translations/gl.po +36 -0
- package/lang/translations/gu.po +36 -0
- package/lang/translations/he.po +36 -0
- package/lang/translations/hi.po +36 -0
- package/lang/translations/hr.po +36 -0
- package/lang/translations/hu.po +36 -0
- package/lang/translations/hy.po +36 -0
- package/lang/translations/id.po +36 -0
- package/lang/translations/it.po +36 -0
- package/lang/translations/ja.po +36 -0
- package/lang/translations/jv.po +36 -0
- package/lang/translations/kk.po +36 -0
- package/lang/translations/km.po +36 -0
- package/lang/translations/kn.po +36 -0
- package/lang/translations/ko.po +36 -0
- package/lang/translations/ku.po +36 -0
- package/lang/translations/lt.po +36 -0
- package/lang/translations/lv.po +36 -0
- package/lang/translations/ms.po +36 -0
- package/lang/translations/nb.po +36 -0
- package/lang/translations/ne.po +36 -0
- package/lang/translations/nl.po +36 -0
- package/lang/translations/no.po +36 -0
- package/lang/translations/oc.po +36 -0
- package/lang/translations/pl.po +36 -0
- package/lang/translations/pt-br.po +36 -0
- package/lang/translations/pt.po +36 -0
- package/lang/translations/ro.po +36 -0
- package/lang/translations/ru.po +36 -0
- package/lang/translations/si.po +36 -0
- package/lang/translations/sk.po +36 -0
- package/lang/translations/sl.po +36 -0
- package/lang/translations/sq.po +36 -0
- package/lang/translations/sr-latn.po +36 -0
- package/lang/translations/sr.po +36 -0
- package/lang/translations/sv.po +36 -0
- package/lang/translations/th.po +36 -0
- package/lang/translations/ti.po +36 -0
- package/lang/translations/tk.po +36 -0
- package/lang/translations/tr.po +36 -0
- package/lang/translations/tt.po +36 -0
- package/lang/translations/ug.po +36 -0
- package/lang/translations/uk.po +36 -0
- package/lang/translations/ur.po +36 -0
- package/lang/translations/uz.po +36 -0
- package/lang/translations/vi.po +36 -0
- package/lang/translations/zh-cn.po +36 -0
- package/lang/translations/zh.po +36 -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.d.ts +8 -0
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +12 -0
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.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/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 +2 -2
- 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/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.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/aicore/utils/scrollmanager.js +23 -0
- 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 +24 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +5 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
- 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.d.ts +4 -0
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.d.ts +8 -0
- package/src/errorsmap.js +23 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +26 -0
- package/theme/aichat/aichat.css +1 -3
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +139 -25
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
- package/theme/aireviewmode/aireviewmode.css +33 -10
- package/theme/common/{aichaterror.css → ainotification.css} +17 -14
- package/theme/common/aitrackchanges.css +9 -0
- package/src/aichat/utils/scrollmanager.js +0 -23
- /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
package/lang/translations/vi.po
CHANGED
|
@@ -1104,3 +1104,39 @@ msgstr "Mô hình tiết kiệm chi phí để tương tác nhanh chóng với k
|
|
|
1104
1104
|
msgctxt "The description of the Claude-4-5-Sonnet model."
|
|
1105
1105
|
msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
|
|
1106
1106
|
msgstr "Mô hình nâng cao với khả năng sáng tạo, độ tin cậy và khả năng suy luận được cải thiện"
|
|
1107
|
+
|
|
1108
|
+
msgctxt "The message displayed when the AI chat is unable to load requested conversation."
|
|
1109
|
+
msgid "AI_CHAT_UNABLE_TO_LOAD_CONVERSATION"
|
|
1110
|
+
msgstr "Không thể tải cuộc hội thoại đã chọn. Vui lòng đảm bảo rằng bạn đang trực tuyến và thử lại."
|
|
1111
|
+
|
|
1112
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is of an unsupported type."
|
|
1113
|
+
msgid "AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE"
|
|
1114
|
+
msgstr "Loại tệp không được hỗ trợ. Vui lòng tải lên một tệp khác."
|
|
1115
|
+
|
|
1116
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is too large."
|
|
1117
|
+
msgid "AI_CHAT_CONTEXT_FILE_TOO_LARGE"
|
|
1118
|
+
msgstr "Tệp quá lớn. Vui lòng tải lên tệp có dung lượng nhỏ hơn."
|
|
1119
|
+
|
|
1120
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it has too many pages."
|
|
1121
|
+
msgid "AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES"
|
|
1122
|
+
msgstr "Tệp có quá nhiều trang. Vui lòng tải lên tệp có ít trang hơn."
|
|
1123
|
+
|
|
1124
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because the form data size limits are exceeded."
|
|
1125
|
+
msgid "AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED"
|
|
1126
|
+
msgstr "Dung lượng dữ liệu biểu mẫu đã vượt quá giới hạn cho phép. Vui lòng tải lên tệp nhỏ hơn."
|
|
1127
|
+
|
|
1128
|
+
msgctxt "The message displayed when the AI chat is unable to process the request because the request data is invalid."
|
|
1129
|
+
msgid "AI_CHAT_INVALID_REQUEST"
|
|
1130
|
+
msgstr "Đã xảy ra lỗi khi xử lý yêu cầu của bạn. Vui lòng thử lại."
|
|
1131
|
+
|
|
1132
|
+
msgctxt "The message displayed when no quick actions are found matching the search query."
|
|
1133
|
+
msgid "AI_QUICK_ACTIONS_SEARCH_NOT_FOUND"
|
|
1134
|
+
msgstr "Không tìm thấy lệnh AI nào"
|
|
1135
|
+
|
|
1136
|
+
msgctxt "The label for the search input field to filter AI quick actions."
|
|
1137
|
+
msgid "AI_QUICK_ACTIONS_SEARCH"
|
|
1138
|
+
msgstr "Tìm kiếm các lệnh AI"
|
|
1139
|
+
|
|
1140
|
+
msgctxt "The message displayed when the AI review was initialized with errors and some features may not be available or work properly."
|
|
1141
|
+
msgid "AI_REVIEW_INITIALIZATION_ERROR_MESSAGE"
|
|
1142
|
+
msgstr "Đánh giá AI (AI Review) đã khởi tạo nhưng gặp lỗi. Một số tính năng có thể không khả dụng hoặc hoạt động không chính xác."
|
|
@@ -1104,3 +1104,39 @@ msgstr "极具成本效益的模型,其推理能力得到了提升,适用于
|
|
|
1104
1104
|
msgctxt "The description of the Claude-4-5-Sonnet model."
|
|
1105
1105
|
msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
|
|
1106
1106
|
msgstr "高级模型,在创造力、可靠性和推理能力方面均有提升"
|
|
1107
|
+
|
|
1108
|
+
msgctxt "The message displayed when the AI chat is unable to load requested conversation."
|
|
1109
|
+
msgid "AI_CHAT_UNABLE_TO_LOAD_CONVERSATION"
|
|
1110
|
+
msgstr "无法加载所选对话。请确保您的网络连接正常然后重试。"
|
|
1111
|
+
|
|
1112
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is of an unsupported type."
|
|
1113
|
+
msgid "AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE"
|
|
1114
|
+
msgstr "文件类型不受支持。请上传其他类型的文件。"
|
|
1115
|
+
|
|
1116
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is too large."
|
|
1117
|
+
msgid "AI_CHAT_CONTEXT_FILE_TOO_LARGE"
|
|
1118
|
+
msgstr "文件过大。请上传较小的文件。"
|
|
1119
|
+
|
|
1120
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it has too many pages."
|
|
1121
|
+
msgid "AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES"
|
|
1122
|
+
msgstr "文件页数过多。请上传页数较少的文件。"
|
|
1123
|
+
|
|
1124
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because the form data size limits are exceeded."
|
|
1125
|
+
msgid "AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED"
|
|
1126
|
+
msgstr "表单数据大小超过限制。请上传较小的文件。"
|
|
1127
|
+
|
|
1128
|
+
msgctxt "The message displayed when the AI chat is unable to process the request because the request data is invalid."
|
|
1129
|
+
msgid "AI_CHAT_INVALID_REQUEST"
|
|
1130
|
+
msgstr "处理你的请求时出现错误。请重试。"
|
|
1131
|
+
|
|
1132
|
+
msgctxt "The message displayed when no quick actions are found matching the search query."
|
|
1133
|
+
msgid "AI_QUICK_ACTIONS_SEARCH_NOT_FOUND"
|
|
1134
|
+
msgstr "未找到 AI 命令"
|
|
1135
|
+
|
|
1136
|
+
msgctxt "The label for the search input field to filter AI quick actions."
|
|
1137
|
+
msgid "AI_QUICK_ACTIONS_SEARCH"
|
|
1138
|
+
msgstr "搜索 AI 命令"
|
|
1139
|
+
|
|
1140
|
+
msgctxt "The message displayed when the AI review was initialized with errors and some features may not be available or work properly."
|
|
1141
|
+
msgid "AI_REVIEW_INITIALIZATION_ERROR_MESSAGE"
|
|
1142
|
+
msgstr "AI 审核已初始化但出现错误。部分功能可能不可用或无法正常工作。"
|
package/lang/translations/zh.po
CHANGED
|
@@ -1104,3 +1104,39 @@ msgstr "具成本效益且推理能力有所提升的模型,適合快速互動
|
|
|
1104
1104
|
msgctxt "The description of the Claude-4-5-Sonnet model."
|
|
1105
1105
|
msgid "AI_MODEL_DESCRIPTION_CLAUDE-4-5-SONNET"
|
|
1106
1106
|
msgstr "創意、可靠度及推理能力皆有所提升的進階模型"
|
|
1107
|
+
|
|
1108
|
+
msgctxt "The message displayed when the AI chat is unable to load requested conversation."
|
|
1109
|
+
msgid "AI_CHAT_UNABLE_TO_LOAD_CONVERSATION"
|
|
1110
|
+
msgstr "無法載入所選對話。請確保已連上網路並重試。"
|
|
1111
|
+
|
|
1112
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is of an unsupported type."
|
|
1113
|
+
msgid "AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE"
|
|
1114
|
+
msgstr "不支援該檔案類型,請上傳其他檔案。"
|
|
1115
|
+
|
|
1116
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it is too large."
|
|
1117
|
+
msgid "AI_CHAT_CONTEXT_FILE_TOO_LARGE"
|
|
1118
|
+
msgstr "檔案過大,請上傳較小的檔案。"
|
|
1119
|
+
|
|
1120
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because it has too many pages."
|
|
1121
|
+
msgid "AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES"
|
|
1122
|
+
msgstr "檔案頁數過多,請上傳頁數較少的檔案。"
|
|
1123
|
+
|
|
1124
|
+
msgctxt "The message displayed when the AI chat is unable to upload a file to the context because the form data size limits are exceeded."
|
|
1125
|
+
msgid "AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED"
|
|
1126
|
+
msgstr "表單資料大小超過限制,請上傳較小的檔案。"
|
|
1127
|
+
|
|
1128
|
+
msgctxt "The message displayed when the AI chat is unable to process the request because the request data is invalid."
|
|
1129
|
+
msgid "AI_CHAT_INVALID_REQUEST"
|
|
1130
|
+
msgstr "處理要求時發生錯誤。請再試一次。"
|
|
1131
|
+
|
|
1132
|
+
msgctxt "The message displayed when no quick actions are found matching the search query."
|
|
1133
|
+
msgid "AI_QUICK_ACTIONS_SEARCH_NOT_FOUND"
|
|
1134
|
+
msgstr "找不到 AI 指令"
|
|
1135
|
+
|
|
1136
|
+
msgctxt "The label for the search input field to filter AI quick actions."
|
|
1137
|
+
msgid "AI_QUICK_ACTIONS_SEARCH"
|
|
1138
|
+
msgstr "搜尋 AI 指令"
|
|
1139
|
+
|
|
1140
|
+
msgctxt "The message displayed when the AI review was initialized with errors and some features may not be available or work properly."
|
|
1141
|
+
msgid "AI_REVIEW_INITIALIZATION_ERROR_MESSAGE"
|
|
1142
|
+
msgstr "AI 審核在初始化時發生錯誤,部分功能可能無法使用或無法正常運作。"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.
|
|
3
|
+
"version": "47.3.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.
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.
|
|
44
|
-
"ckeditor5": "47.
|
|
45
|
-
"ckeditor5-collaboration": "47.
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.3.0-alpha.1",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.3.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.3.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.3.0-alpha.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.3.0-alpha.1",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.3.0-alpha.1",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.3.0-alpha.1",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.3.0-alpha.1",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.3.0-alpha.1",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.3.0-alpha.1",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.3.0-alpha.1",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.3.0-alpha.1",
|
|
44
|
+
"ckeditor5": "47.3.0-alpha.1",
|
|
45
|
+
"ckeditor5-collaboration": "47.3.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 _0x57595f=_0x5769;(function(_0xf2ef22,_0x4b2512){const _0x37b943=_0x5769,_0x424cc4=_0xf2ef22();while(!![]){try{const _0x9fb9bd=parseInt(_0x37b943(0x1e8))/0x1+-parseInt(_0x37b943(0x25c))/0x2*(parseInt(_0x37b943(0x26c))/0x3)+parseInt(_0x37b943(0x209))/0x4+parseInt(_0x37b943(0x26b))/0x5*(-parseInt(_0x37b943(0x211))/0x6)+parseInt(_0x37b943(0x296))/0x7+-parseInt(_0x37b943(0x1d5))/0x8+-parseInt(_0x37b943(0x286))/0x9*(-parseInt(_0x37b943(0x23a))/0xa);if(_0x9fb9bd===_0x4b2512)break;else _0x424cc4['push'](_0x424cc4['shift']());}catch(_0x13348e){_0x424cc4['push'](_0x424cc4['shift']());}}}(_0x5b68,0x49471));import{Plugin as _0x152f1e}from'ckeditor5/src/core.js';import{AIConnector as _0x4a9eac}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x27d0be}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x10972b,ButtonView as _0xd83547,ViewCollection as _0x4bc455,View as _0x1885bf}from'ckeditor5/src/ui.js';import{AIEditing as _0x15338c}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x20fc31}from'./model/aiactionsinteraction.js';import{CKEditorError as _0xd2c106,first as _0x21db73}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3ddaf8,IconRefresh as _0x5991ef,IconNextArrow as _0x6d55ff,IconPreviousArrow as _0x2d06a4,IconShowChangesOff as _0x5848ae}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x4f74df}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x3b0a23}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x57e83e}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0xfbc94f}from'../aicore/utils/getsuggestionpartsfromreply.js';function _0x5b68(){const _0x547a79=['get','_interactions','toggleSuggestionDisplayMode','createRange','interactionFinished','_anchorOperation','insert','baseVersion','signal','AI_ACTIONS_GENERIC_ERROR','nodeAfter','AI_ACTIONS_PREVIOUS_INTERACTION','setErrorState','first','stop','_isAbortError','_setupCustomViews','_getExecuteDataInTable','305055ZPODsO','documentFragment','replyContentUpdated','_isNavigationNextButtonInView','Error\x20updating\x20content\x20in\x20replyCreated:','locale','selection','set','_isNavigationPreviousButtonInView','TrackChangesEditing','_navigateToNext','_applyOperationsAsSuggestions','upsertAIActionRating','_updateNavigationUI','getSelectedContent','updateContent','stopInteraction','sourcePosition','actionName','message','showChangesButton','has','plugins','_clearLoadingState','bind','static','_currentInteractionIndex','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','createPositionAfter','queueEmptyPromise','dialogClosed','mainView','_children','329428nSQoAK','_isNavigationCounterInView','_wrapWithCommonAncestors','applyOperation','_navigationPreviousButton','_applyChanges','setChangeGroupState','_interaction','2669826GVRMmb','executeAction','AI_ACTIONS_TRY_AGAIN','Error\x20updating\x20content\x20in\x20replyContentUpdated:','TrackChanges','_aiConnector','model','hasError','ai.availableReplyActions','getSelectionAsFragment','howMany','bodyView','includes','modelToViewWithIds','error','areChangesVisible','getChildAtOffset','isPremiumPlugin','operationsA','AIConnector','setLoading','_clone','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','AI_ACTIONS_NEXT_INTERACTION','rootName','push','_promiseQueue','length','hideError','_customViews','clearErrorState','toolbar','close','$graveyard','split','showError','getLimitElement','_setErrorState','reinsert','start','ck-ai-interaction-counter','10pwdUfS','isDocumentOperation','hasPendingParts','_createInteraction','batch','getDocumentContext','AIBalloon','isOfficialPlugin','element','removeNavigationItem','focus','replyChangeGroupStateUpdated','Error\x20updating\x20content\x20during\x20navigation:','replies','addOperation','ai-request-aborted','parent','startsWith','config','pluginName','map','_appendChild','slice','TableSelection','type','path','_clearInteractionHistory','setTemplate','_clearErrorState','hideLoader','ck-ai-navigation-button\x20ck-ai-previous-button','getAncestors','listenTo','AIActions','11510qQqKrc','getOperations','getRoot','_getExecuteDataRegular','_navigateToPrevious','getFirstRange','ck-ai-custom-action-button','1/1','aiBalloon','execute','Error\x20refreshing\x20interaction:','_executeAction','miniToolbarView','_execute','root','5JYYvtY','222skTPaZ','history','range','position','_navigationNextButton','Attribute','change','isCollapsed','enqueue','getCommonAncestor','getSelectedTableCells','nextSibling','createPositionAt','editor','clearLoading','indexOf','toData','_setLoadingState','ai-no-track-changes','_navigationCounter','isLoading','data','open','balloonView','_balloonShowDiff','addNavigationItem','3714561kngJXM','state','pending','streaming','_refreshInteraction','ck-ai-navigation-button\x20ck-ai-next-button','requires','documentContextContent','changeGroups','isEnabled','merge','showLoader','clone','catch','textContent','_interactionParams','2807336Kpisrs','processor','actionCallId','icon','_stopInteraction','setSelection','accepted','abort','span','forEach','random','document','_filterOperationsOutsideRange','schema','getSelectedBlocks','createPositionBefore','upsertCustomAIActionRating','selectionRemoved','applySuggestion','remove','isBusy','replyCreated','_displayInteractionAtIndex','insertSuggestion','rejected','rename','getChild','filter','move','add','_disableCustomViews','version','stickiness','stopListening','getRanges','_clearSuggestionContent','end','241624iWVNxr'];_0x5b68=function(){return _0x547a79;};return _0x5b68();}import{DocumentCompare as _0x3d1240}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x5cff35,getOperationsFromReply as _0x184b44}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0xa18673,ModelRange as _0xf0f489,ModelPosition as _0x1dbcac,_DetachOperation as _0x438b53,transformOperationSets as _0x21153f}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4c4aa0}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x5769(_0x24071e,_0x59b7bd){const _0x5b6826=_0x5b68();return _0x5769=function(_0x576927,_0x5b33ee){_0x576927=_0x576927-0x1d5;let _0x2b4cdb=_0x5b6826[_0x576927];return _0x2b4cdb;},_0x5769(_0x24071e,_0x59b7bd);}export class AIActions extends _0x152f1e{static get[_0x57595f(0x28c)](){return[_0x4a9eac,_0x10972b,_0x15338c,_0x4f74df,_0x3d1240];}static get[_0x57595f(0x24d)](){const _0x237358=_0x57595f;return _0x237358(0x25b);}static get[_0x57595f(0x241)](){return!0x0;}static get[_0x57595f(0x222)](){return!0x0;}[_0x57595f(0x216)];[_0x57595f(0x1d7)]=[];[_0x57595f(0x202)]=0x0;[_0x57595f(0x295)];[_0x57595f(0x284)]=!0x1;[_0x57595f(0x22e)]=new _0x4bc455();[_0x57595f(0x20d)];[_0x57595f(0x27f)];[_0x57595f(0x20a)]=!0x1;[_0x57595f(0x270)];[_0x57595f(0x1f0)]=!0x1;[_0x57595f(0x1eb)]=!0x1;[_0x57595f(0x22b)];get[_0x57595f(0x210)](){const _0x5befaf=_0x57595f;return this[_0x5befaf(0x1d7)][this[_0x5befaf(0x1d7)][_0x5befaf(0x22c)]-0x1];}constructor(_0x3eab4f){const _0x11b5c3=_0x57595f;super(_0x3eab4f),this[_0x11b5c3(0x216)]=this[_0x11b5c3(0x279)][_0x11b5c3(0x1fe)][_0x11b5c3(0x1d6)](_0x11b5c3(0x224)),this[_0x11b5c3(0x1ef)](_0x11b5c3(0x2aa),!0x1),this[_0x11b5c3(0x22b)]=new _0x3b0a23(),this[_0x11b5c3(0x1e6)]();}[_0x57595f(0x1f8)](){const _0x4ea86f=_0x57595f;this[_0x4ea86f(0x29a)]();}async[_0x57595f(0x212)](_0x120848,_0x13b12b,_0x59e305){const _0x14afd1=_0x57595f;if(this[_0x14afd1(0x279)][_0x14afd1(0x1fe)][_0x14afd1(0x1fd)](_0x14afd1(0x251))){if(this[_0x14afd1(0x279)][_0x14afd1(0x1fe)][_0x14afd1(0x1d6)](_0x14afd1(0x251))[_0x14afd1(0x276)]()){const {modelFragment:_0x41867f,anchorData:_0x545d32}=this[_0x14afd1(0x1e7)]();return this[_0x14afd1(0x267)](_0x120848,_0x41867f,_0x545d32,_0x13b12b,_0x59e305);}}const {modelFragment:_0x563372,anchorData:_0x56f4b7}=this[_0x14afd1(0x25f)]();return this[_0x14afd1(0x267)](_0x120848,_0x563372,_0x56f4b7,_0x13b12b,_0x59e305);}[_0x57595f(0x25f)](){const _0x3b660f=_0x57595f,_0x7cdc0d=this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x2a1)][_0x3b660f(0x1ee)];if(_0x7cdc0d[_0x3b660f(0x273)]){const _0x25914b=_0x21db73(_0x7cdc0d[_0x3b660f(0x2a4)]())||this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x2a3)][_0x3b660f(0x235)](_0x7cdc0d);this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x272)](_0x5e7dcd=>{const _0x56313e=_0x3b660f;_0x5e7dcd[_0x56313e(0x29b)](_0x25914b,'in');});}const _0x404f80=_0x7cdc0d[_0x3b660f(0x261)](),_0x315657=this[_0x3b660f(0x20b)](this[_0x3b660f(0x279)][_0x3b660f(0x217)][_0x3b660f(0x1f6)](_0x7cdc0d),_0x404f80[_0x3b660f(0x238)],_0x404f80[_0x3b660f(0x2ba)]),_0x59a33d=_0x7cdc0d[_0x3b660f(0x261)]()[_0x3b660f(0x238)],_0x203ae1=new Map();let _0x30a22c=_0x315657;for(let _0x1f78a5=0x0;_0x1f78a5<_0x59a33d[_0x3b660f(0x253)][_0x3b660f(0x22c)];_0x1f78a5++)_0x203ae1[_0x3b660f(0x1ef)](_0x30a22c,_0x59a33d[_0x3b660f(0x253)][_0x1f78a5]),_0x30a22c=_0x30a22c[_0x3b660f(0x2b0)](0x0);return{'modelFragment':_0x315657,'anchorData':_0x203ae1};}[_0x57595f(0x1e7)](){const _0x474e10=_0x57595f,_0xb87029=this[_0x474e10(0x279)][_0x474e10(0x217)][_0x474e10(0x2a1)][_0x474e10(0x1ee)],_0x44278e=this[_0x474e10(0x279)][_0x474e10(0x1fe)][_0x474e10(0x1d6)](_0x474e10(0x251))[_0x474e10(0x21a)](),_0x20125d=_0xb87029[_0x474e10(0x261)]()[_0x474e10(0x238)][_0x474e10(0x24a)][_0x474e10(0x24a)],_0x48a3fc=this[_0x474e10(0x20b)](_0x44278e,this[_0x474e10(0x279)][_0x474e10(0x217)][_0x474e10(0x2a5)](_0x20125d),this[_0x474e10(0x279)][_0x474e10(0x217)][_0x474e10(0x204)](_0x20125d)),_0x213d40=_0xb87029[_0x474e10(0x261)]()[_0x474e10(0x238)],_0x740323=new Map();let _0x4f4eec=_0x48a3fc;for(let _0x4efe33=0x0;_0x4efe33<_0x213d40[_0x474e10(0x253)][_0x474e10(0x22c)];_0x4efe33++)if(_0x740323[_0x474e10(0x1ef)](_0x4f4eec,_0x213d40[_0x474e10(0x253)][_0x4efe33]),_0x4efe33<_0x213d40[_0x474e10(0x253)][_0x474e10(0x22c)]-0x1)_0x4f4eec=_0x4f4eec[_0x474e10(0x2b0)](0x0);else{let _0x3bcd9e=_0x4f4eec[_0x474e10(0x277)];for(;_0x3bcd9e;)_0x740323[_0x474e10(0x1ef)](_0x3bcd9e,_0x213d40[_0x474e10(0x253)][_0x4efe33]),_0x3bcd9e=_0x3bcd9e[_0x474e10(0x277)];}return{'modelFragment':_0x48a3fc,'anchorData':_0x740323};}[_0x57595f(0x267)](_0x1a8f57,_0x48241e,_0xb2eca8,_0x502f7c,_0xb4a811){const _0x5ab294=_0x57595f,_0x22c4c0=this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1d6)](_0x15338c),_0xc6cb4c=this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1d6)](_0x4f74df),_0x3ae311=this[_0x5ab294(0x279)][_0x5ab294(0x217)][_0x5ab294(0x2a1)][_0x5ab294(0x1ee)],_0x5e7229=_0x22c4c0[_0x5ab294(0x21e)](_0x48241e),_0x574fc4=this[_0x5ab294(0x279)][_0x5ab294(0x281)][_0x5ab294(0x297)][_0x5ab294(0x27c)](_0x5e7229),_0x4e4ccb=this[_0x5ab294(0x279)][_0x5ab294(0x217)][_0x5ab294(0x2a1)][_0x5ab294(0x2b5)],_0x102b9c=[..._0x3ae311[_0x5ab294(0x2b8)]()];let _0x1a2fff=this[_0x5ab294(0x279)][_0x5ab294(0x24c)][_0x5ab294(0x1d6)](_0x5ab294(0x219))||[..._0x4c4aa0];this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1fd)](_0x5ab294(0x215))||(_0x1a2fff=_0x1a2fff[_0x5ab294(0x2b1)](_0x37f752=>_0x5ab294(0x2ad)!=_0x37f752));const _0x1dadff=new _0x27d0be(this[_0x5ab294(0x279)][_0x5ab294(0x1ed)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x5ab294(0x299),'customView':this[_0x5ab294(0x22e)]},'showUnchangedParts':!0x0,'availableActions':_0x1a2fff});return _0xc6cb4c[_0x5ab294(0x282)]({'index':0x3e8*Math[_0x5ab294(0x2a0)]()%0x3e8,'title':_0x502f7c,'icon':_0xb4a811||_0x3ddaf8,'mainView':_0x1dadff,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x5ab294(0x279)][_0x5ab294(0x1fe)][_0x5ab294(0x1fd)](_0x5ab294(0x215)),'ranges':_0x102b9c}),this[_0x5ab294(0x27d)](_0x1dadff,_0xc6cb4c),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x2a8),()=>{const _0x64959e=_0x5ab294;this[_0x64959e(0x20e)](_0x48241e,_0xb2eca8,!0x1);}),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x2ad),()=>{const _0x482252=_0x5ab294;this[_0x482252(0x20e)](_0x48241e,_0xb2eca8,!0x0);}),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x2a7),()=>{const _0x1c60c8=_0x5ab294;this[_0x1c60c8(0x29a)](),this[_0x1c60c8(0x2b4)]();}),this[_0x5ab294(0x25a)](_0xc6cb4c,_0x5ab294(0x206),()=>{const _0x372054=_0x5ab294;if(this[_0x372054(0x210)]&&this[_0x372054(0x210)][_0x372054(0x247)][_0x372054(0x22c)]>0x0){const _0x1148aa=this[_0x372054(0x210)][_0x372054(0x247)][this[_0x372054(0x210)][_0x372054(0x247)][_0x372054(0x22c)]-0x1],_0x394b6b=_0x1148aa[_0x372054(0x28e)][0x0];_0x394b6b&&_0x372054(0x288)===_0x394b6b[_0x372054(0x287)]&&_0x1148aa[_0x372054(0x20f)](0x0,_0x372054(0x2ae));}this[_0x372054(0x29a)](),this[_0x372054(0x254)](),this[_0x372054(0x2b7)](_0xc6cb4c);}),this[_0x5ab294(0x23d)](_0x574fc4,_0x4e4ccb,_0x1dadff,_0xc6cb4c,_0x1a8f57);}[_0x57595f(0x20b)](_0x43192c,_0x177637,_0x271976){const _0x4bb163=_0x57595f,_0x2a449a=this[_0x4bb163(0x279)][_0x4bb163(0x217)][_0x4bb163(0x1d9)](_0x177637,_0x271976)[_0x4bb163(0x275)](),_0x19e6f8=_0x2a449a['is'](_0x4bb163(0x1e9))?[]:_0x2a449a[_0x4bb163(0x259)]({'includeSelf':!0x0})[_0x4bb163(0x250)](0x1);if(_0x19e6f8[_0x4bb163(0x22c)]){const _0x1c6b18=_0x19e6f8[_0x4bb163(0x24e)](_0x25ba0b=>_0x25ba0b[_0x4bb163(0x226)](!0x1));for(let _0x3099f8=0x1;_0x3099f8<_0x1c6b18[_0x4bb163(0x22c)];_0x3099f8++)_0x1c6b18[_0x3099f8-0x1][_0x4bb163(0x24f)](_0x1c6b18[_0x3099f8]);return _0x1c6b18[_0x1c6b18[_0x4bb163(0x22c)]-0x1][_0x4bb163(0x24f)](_0x43192c),new _0xa18673(_0x1c6b18[0x0]);}return _0x43192c;}async[_0x57595f(0x23d)](_0x50a477,_0x566807,_0x35403e,_0x10b529,_0x532a7a){const _0x241a78=_0x57595f,_0xcb323a=this[_0x241a78(0x279)];this[_0x241a78(0x295)]={'action':_0x532a7a,'content':_0x50a477,'version':_0x566807,'mainView':_0x35403e,'aiBalloon':_0x10b529};const _0x5d56d0=new _0x20fc31({'connector':this[_0x241a78(0x216)],'editor':_0xcb323a,'content':_0x50a477,'version':_0x566807,..._0x532a7a});this[_0x241a78(0x1d7)][_0x241a78(0x22a)](_0x5d56d0),_0x35403e[_0x241a78(0x22d)]();const _0x2e41dd=(_0x3819b2,_0x3ec36f,_0x1fc6c9=!0x1,_0x305f0f=_0x241a78(0x289))=>this[_0x241a78(0x22b)][_0x241a78(0x274)](async _0x348bff=>{const _0x12459a=_0x241a78;try{const _0x2f8984=_0xfbc94f({'editor':_0xcb323a,'changeGroups':_0x3819b2[_0x12459a(0x28e)],'documentContextContent':_0x3819b2[_0x12459a(0x28d)],'showDiff':_0x1fc6c9,'trimUnchanged':!0x1});await _0x3ec36f[_0x12459a(0x1f7)]({'parts':_0x2f8984,'renderingStrategy':_0x305f0f,'abortSignal':_0x348bff});}catch(_0x385594){if(this[_0x12459a(0x1e5)](_0x385594))return;throw _0x385594;}});this[_0x241a78(0x210)]['on'](_0x241a78(0x2ab),(_0x1d0169,_0x3eb4f1)=>{const _0x3d2240=_0x241a78;_0x35403e[_0x3d2240(0x257)](),_0x2e41dd(_0x3eb4f1,_0x35403e)[_0x3d2240(0x293)](_0x571d55=>{const _0x155f6a=_0x3d2240;this[_0x155f6a(0x1e5)](_0x571d55)||(console[_0x155f6a(0x21f)](_0x155f6a(0x1ec),_0x571d55),this[_0x155f6a(0x236)](_0x5d56d0,_0x35403e));});}),this[_0x241a78(0x210)]['on'](_0x241a78(0x1ea),(_0x561d5b,_0x1e9071)=>{const _0x5731ef=_0x241a78;_0x2e41dd(_0x1e9071,_0x35403e)[_0x5731ef(0x293)](_0x224a55=>{const _0xbb1f59=_0x5731ef;this[_0xbb1f59(0x1e5)](_0x224a55)||(console[_0xbb1f59(0x21f)](_0xbb1f59(0x214),_0x224a55),this[_0xbb1f59(0x236)](_0x5d56d0,_0x35403e));});}),this[_0x241a78(0x210)]['on'](_0x241a78(0x1da),async()=>{const _0x3db328=_0x241a78;try{await this[_0x3db328(0x1ff)](_0x35403e,_0x10b529),this[_0x3db328(0x1f5)]();}catch(_0x1cb152){this[_0x3db328(0x1e5)](_0x1cb152)||(console[_0x3db328(0x21f)](_0x3db328(0x203),_0x1cb152),this[_0x3db328(0x236)](_0x5d56d0,_0x35403e));}}),this[_0x241a78(0x25a)](_0x35403e,_0x241a78(0x1d8),(_0x25ea9e,{showDiff:_0x36e723})=>{const _0x51a389=_0x241a78;this[_0x51a389(0x284)]=_0x36e723;const _0xf52cbe=this[_0x51a389(0x210)][_0x51a389(0x247)][this[_0x51a389(0x210)][_0x51a389(0x247)][_0x51a389(0x22c)]-0x1];_0xf52cbe&&_0x2e41dd(_0xf52cbe,_0x35403e,_0x36e723,_0x51a389(0x201))[_0x51a389(0x293)](_0x22e200=>{const _0x1cd559=_0x51a389;this[_0x1cd559(0x1e5)](_0x22e200)||(console[_0x1cd559(0x21f)](_0x1cd559(0x227),_0x22e200),this[_0x1cd559(0x236)](_0x5d56d0,_0x35403e));});}),this[_0x241a78(0x210)]['on'](_0x241a78(0x245),(_0x4e6290,{reply:_0x456810})=>{const _0x1e3860=_0x241a78,_0x19334f={'positiveCount':_0x456810[_0x1e3860(0x28e)][_0x1e3860(0x2b1)](_0x2f0b9f=>_0x1e3860(0x29c)===_0x2f0b9f[_0x1e3860(0x287)])[_0x1e3860(0x22c)],'totalCount':_0x456810[_0x1e3860(0x28e)][_0x1e3860(0x22c)]},_0x25d072=this[_0x1e3860(0x210)][_0x1e3860(0x298)],_0x90376c=this[_0x1e3860(0x210)][_0x1e3860(0x1fa)];_0x90376c?this[_0x1e3860(0x216)][_0x1e3860(0x1f4)](_0x90376c,_0x25d072,_0x19334f):this[_0x1e3860(0x216)][_0x1e3860(0x2a6)](_0x25d072,_0x19334f);}),this[_0x241a78(0x27d)](_0x35403e,_0x10b529);try{const _0x195d6f=await this[_0x241a78(0x210)][_0x241a78(0x238)]();return this[_0x241a78(0x1f5)](),_0x195d6f;}catch(_0x1f1e17){if(this[_0x241a78(0x1e5)](_0x1f1e17))return;_0x35403e[_0x241a78(0x257)](),this[_0x241a78(0x236)](_0x5d56d0,_0x35403e);}}[_0x57595f(0x20e)](_0x81d88b,_0x5708c3,_0x15b00f){const _0x4383e9=_0x57595f,_0x48d05c=this[_0x4383e9(0x279)];if(_0x15b00f&&!_0x48d05c[_0x4383e9(0x1fe)][_0x4383e9(0x1fd)](_0x4383e9(0x215)))throw new _0xd2c106(_0x4383e9(0x27e),null);const _0x23a2ac=this[_0x4383e9(0x279)][_0x4383e9(0x1fe)][_0x4383e9(0x1d6)](_0x3d1240),_0x4bba39=this[_0x4383e9(0x210)],_0x13573b=this[_0x4383e9(0x210)][_0x4383e9(0x247)][this[_0x4383e9(0x210)][_0x4383e9(0x247)][_0x4383e9(0x22c)]-0x1],_0x351805=_0x13573b[_0x4383e9(0x28e)];_0x13573b[_0x4383e9(0x20f)](0x0,_0x4383e9(0x29c));let _0x5a061b=_0x184b44({'editor':_0x48d05c,'reply':_0x13573b,'interaction':_0x4bba39,'groups':_0x351805,'transform':!0x1,'documentCompare':_0x23a2ac,'documentCompareOptions':{'anchor':_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x278)](_0x81d88b,0x0),'markDeletions':_0x15b00f}});_0x5a061b=this[_0x4383e9(0x2a2)](_0x5a061b,_0x5708c3);for(const _0x133d55 of _0x5a061b)this[_0x4383e9(0x1db)](_0x5708c3,_0x133d55,_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x2a1)][_0x4383e9(0x25e)]());const _0x5494d8=_0x4bba39[_0x4383e9(0x23f)]()[_0x4383e9(0x2b5)],_0x3b1540=_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x2a1)][_0x4383e9(0x26d)][_0x4383e9(0x25d)](_0x5494d8),_0x263d72={'document':_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x2a1)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x2b837c=_0x21153f(_0x5a061b,_0x3b1540,_0x263d72)[_0x4383e9(0x223)];_0x48d05c[_0x4383e9(0x217)][_0x4383e9(0x272)](_0x10b387=>{const _0x3446a3=_0x4383e9;if(_0x10b387[_0x3446a3(0x29b)](_0x48d05c[_0x3446a3(0x217)][_0x3446a3(0x2a1)][_0x3446a3(0x1ee)][_0x3446a3(0x244)]),_0x15b00f)_0x48d05c[_0x3446a3(0x1fe)][_0x3446a3(0x1d6)](_0x3446a3(0x1f1))[_0x3446a3(0x1f3)](_0x2b837c);else{for(const _0x57d93a of _0x2b837c)_0x57d93a[_0x3446a3(0x1dd)]=_0x48d05c[_0x3446a3(0x217)][_0x3446a3(0x2a1)][_0x3446a3(0x2b5)],_0x5cff35(_0x48d05c,_0x57d93a),_0x10b387[_0x3446a3(0x23e)][_0x3446a3(0x248)](_0x57d93a),_0x48d05c[_0x3446a3(0x217)][_0x3446a3(0x20c)](_0x57d93a);}}),this[_0x4383e9(0x279)][_0x4383e9(0x1fe)][_0x4383e9(0x1d6)](_0x4383e9(0x240))[_0x4383e9(0x231)]();}[_0x57595f(0x2a2)](_0x18be05,_0x3a09e){const _0x3c8ae8=_0x57595f;return _0x18be05[_0x3c8ae8(0x2b1)](_0x78f20a=>{const _0x1ce061=_0x3c8ae8;if(_0x1ce061(0x2af)==_0x78f20a[_0x1ce061(0x252)]){const _0x2cb987=_0x78f20a[_0x1ce061(0x26f)][_0x1ce061(0x1e0)];return!_0x3a09e[_0x1ce061(0x1fd)](_0x2cb987);}if(_0x78f20a[_0x1ce061(0x252)][_0x1ce061(0x27b)](_0x1ce061(0x271))>-0x1){const _0x212307=_0x78f20a[_0x1ce061(0x26e)][_0x1ce061(0x238)][_0x1ce061(0x1e0)];return!_0x3a09e[_0x1ce061(0x1fd)](_0x212307);}return!0x0;});}[_0x57595f(0x1db)](_0x3a71f7,_0x4fbfdd,_0x753c94){const _0x4a8bd9=_0x57595f,_0x250569=_0x4fbfdd[_0x4a8bd9(0x292)]();for(const _0x35dc21 in _0x4fbfdd){const _0x1a0438=_0x4fbfdd[_0x35dc21];_0x1a0438 instanceof _0xf0f489?_0x4fbfdd[_0x35dc21]=new _0xf0f489(_0x112722(_0x1a0438[_0x4a8bd9(0x238)]),_0x112722(_0x1a0438[_0x4a8bd9(0x2ba)])):_0x1a0438 instanceof _0x1dbcac&&(_0x4fbfdd[_0x35dc21]=_0x112722(_0x1a0438));}if([_0x4a8bd9(0x1dc),_0x4a8bd9(0x2b2),_0x4a8bd9(0x2a9),_0x4a8bd9(0x237),_0x4a8bd9(0x233),_0x4a8bd9(0x290)][_0x4a8bd9(0x21d)](_0x250569[_0x4a8bd9(0x252)])){if(_0x250569[_0x4a8bd9(0x23b)]=!0x1,_0x250569[_0x4a8bd9(0x1dd)]=null,_0x4a8bd9(0x2a9)==_0x250569[_0x4a8bd9(0x252)]){const _0x54f5e3=_0x250569[_0x4a8bd9(0x1f9)],_0x4232c5=_0x250569[_0x4a8bd9(0x21b)];new _0x438b53(_0x54f5e3,_0x4232c5)[_0x4a8bd9(0x269)]();}else _0x250569[_0x4a8bd9(0x269)]();}function _0x112722(_0x26376c){const _0x1c861f=_0x4a8bd9;if(_0x1c861f(0x232)==_0x26376c[_0x1c861f(0x26a)][_0x1c861f(0x229)])return _0x26376c;const _0x165427=[];let _0x576f4b=_0x26376c[_0x1c861f(0x26a)];for(let _0x231d9e=0x0;_0x231d9e<_0x26376c[_0x1c861f(0x253)][_0x1c861f(0x22c)];_0x231d9e++){const _0x5cf29e=_0x3a71f7[_0x1c861f(0x1d6)](_0x576f4b)||0x0;_0x165427[_0x231d9e]=_0x26376c[_0x1c861f(0x253)][_0x231d9e]+_0x5cf29e,_0x576f4b=_0x576f4b[_0x1c861f(0x221)](_0x26376c[_0x1c861f(0x253)][_0x231d9e]);}return new _0x1dbcac(_0x753c94,_0x165427,_0x26376c[_0x1c861f(0x2b6)]);}}[_0x57595f(0x28a)](){const _0x19e154=_0x57595f;if(!this[_0x19e154(0x295)])return;this[_0x19e154(0x1d7)][_0x19e154(0x22c)]>0x0&&this[_0x19e154(0x29a)](),this[_0x19e154(0x202)]=0x0,this[_0x19e154(0x284)]=!0x1;const {action:_0xef2dfe,content:_0x2c935e,version:_0x2bacab,mainView:_0x50ea9c,aiBalloon:_0x19eb7c}=this[_0x19e154(0x295)];_0x50ea9c[_0x19e154(0x220)]=!0x1,_0x50ea9c[_0x19e154(0x22d)](),this[_0x19e154(0x256)](_0x50ea9c,_0x19eb7c);const _0x23aef8=_0x50ea9c;_0x23aef8[_0x19e154(0x268)]&&_0x23aef8[_0x19e154(0x268)][_0x19e154(0x1fc)]&&_0x23aef8[_0x19e154(0x268)][_0x19e154(0x1fc)][_0x19e154(0x1ef)]({'isOn':!0x1,'icon':_0x5848ae}),this[_0x19e154(0x2b9)](_0x50ea9c),_0x50ea9c[_0x19e154(0x291)](),this[_0x19e154(0x1f5)](),this[_0x19e154(0x23d)](_0x2c935e,_0x2bacab,_0x50ea9c,_0x19eb7c,_0xef2dfe)[_0x19e154(0x293)](_0xf7d925=>{const _0x23bed1=_0x19e154;this[_0x23bed1(0x1e5)](_0xf7d925)||console[_0x23bed1(0x21f)](_0x23bed1(0x266),_0xf7d925);});}[_0x57595f(0x2b9)](_0x4b3de9){const _0x4529a3=_0x57595f,_0x16c52f=_0x4b3de9[_0x4529a3(0x21c)][_0x4529a3(0x208)];for(;_0x16c52f[_0x4529a3(0x22c)]>0x0;)_0x16c52f[_0x4529a3(0x2a9)](_0x16c52f[_0x4529a3(0x1e3)]);_0x4b3de9[_0x4529a3(0x21c)][_0x4529a3(0x23c)]=!0x1;}[_0x57595f(0x1e5)](_0x57479c){const _0x18f951=_0x57595f;return!!_0x57479c[_0x18f951(0x1fb)]&&_0x57479c[_0x18f951(0x1fb)][_0x18f951(0x24b)](_0x18f951(0x249));}[_0x57595f(0x254)](){const _0x449371=_0x57595f;this[_0x449371(0x1d7)]=[],this[_0x449371(0x295)]=void 0x0,this[_0x449371(0x202)]=0x0,this[_0x449371(0x1f5)]();}[_0x57595f(0x29a)](){const _0x462dd7=_0x57595f;this[_0x462dd7(0x210)]&&this[_0x462dd7(0x210)][_0x462dd7(0x1e4)](),this[_0x462dd7(0x22b)][_0x462dd7(0x29d)](),this[_0x462dd7(0x2aa)]=!0x1;}[_0x57595f(0x1e6)](){const _0x1ec21e=_0x57595f,_0x3884d0=new _0xd83547(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]),_0x1092de=new _0xd83547(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]),_0x106db0=new _0x1885bf(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]),_0x2a8614=new _0xd83547(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)]);_0x3884d0[_0x1ec21e(0x1ef)]({'icon':_0x5991ef,'label':_0x57e83e(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)],_0x1ec21e(0x213)),'tooltip':!0x0,'class':_0x1ec21e(0x262)}),_0x1092de[_0x1ec21e(0x1ef)]({'icon':_0x2d06a4,'tooltip':_0x57e83e(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)],_0x1ec21e(0x1e1)),'class':_0x1ec21e(0x258)}),_0x106db0[_0x1ec21e(0x255)]({'tag':_0x1ec21e(0x29e),'attributes':{'class':[_0x1ec21e(0x239)]},'children':[_0x1ec21e(0x263)]}),_0x2a8614[_0x1ec21e(0x1ef)]({'icon':_0x6d55ff,'tooltip':_0x57e83e(this[_0x1ec21e(0x279)][_0x1ec21e(0x1ed)],_0x1ec21e(0x228)),'class':_0x1ec21e(0x28b)}),_0x3884d0[_0x1ec21e(0x200)](_0x1ec21e(0x28f))['to'](this,_0x1ec21e(0x2aa),_0x40b1ac=>!_0x40b1ac),_0x3884d0['on'](_0x1ec21e(0x265),()=>{const _0x34aaf1=_0x1ec21e;this[_0x34aaf1(0x28a)]();}),_0x1092de[_0x1ec21e(0x200)](_0x1ec21e(0x28f))['to'](this,_0x1ec21e(0x2aa),_0x57fc15=>!_0x57fc15),_0x1092de['on'](_0x1ec21e(0x265),()=>{const _0x2a3686=_0x1ec21e;this[_0x2a3686(0x260)]();}),_0x2a8614[_0x1ec21e(0x200)](_0x1ec21e(0x28f))['to'](this,_0x1ec21e(0x2aa),_0x582f7c=>!_0x582f7c),_0x2a8614['on'](_0x1ec21e(0x265),()=>{const _0x412098=_0x1ec21e;this[_0x412098(0x1f2)]();}),this[_0x1ec21e(0x20d)]=_0x1092de,this[_0x1ec21e(0x27f)]=_0x106db0,this[_0x1ec21e(0x270)]=_0x2a8614,this[_0x1ec21e(0x22e)][_0x1ec21e(0x2b3)](_0x3884d0);}[_0x57595f(0x260)](){const _0x27d121=_0x57595f,_0x1e8ea7=this[_0x27d121(0x1d7)][_0x27d121(0x22c)];this[_0x27d121(0x202)]<_0x1e8ea7-0x1&&this[_0x27d121(0x2ac)](this[_0x27d121(0x202)]+0x1);}[_0x57595f(0x1f2)](){const _0x4bf844=_0x57595f;this[_0x4bf844(0x202)]>0x0&&this[_0x4bf844(0x2ac)](this[_0x4bf844(0x202)]-0x1);}async[_0x57595f(0x2ac)](_0x4bd89e){const _0x4547ac=_0x57595f;if(!this[_0x4547ac(0x295)])return;this[_0x4547ac(0x202)]=_0x4bd89e;const {mainView:_0xc4018f}=this[_0x4547ac(0x295)],_0x480631=this[_0x4547ac(0x1d7)][this[_0x4547ac(0x1d7)][_0x4547ac(0x22c)]-0x1-this[_0x4547ac(0x202)]];if(!_0x480631)return;if(_0x480631[_0x4547ac(0x218)])return this[_0x4547ac(0x236)](_0x480631,_0xc4018f),void this[_0x4547ac(0x1f5)]();if(!_0x480631[_0x4547ac(0x247)][_0x4547ac(0x22c)])return;_0xc4018f[_0x4547ac(0x22d)](),this[_0x4547ac(0x295)]&&this[_0x4547ac(0x256)](_0xc4018f,this[_0x4547ac(0x295)][_0x4547ac(0x264)]);const _0x548d8a=_0x480631[_0x4547ac(0x247)][_0x480631[_0x4547ac(0x247)][_0x4547ac(0x22c)]-0x1];if(_0x548d8a){const _0x40f6f6=this[_0x4547ac(0x279)];this[_0x4547ac(0x2b9)](_0xc4018f);try{const _0xd5de6=_0xfbc94f({'editor':_0x40f6f6,'changeGroups':_0x548d8a[_0x4547ac(0x28e)],'documentContextContent':_0x548d8a[_0x4547ac(0x28d)],'showDiff':this[_0x4547ac(0x284)],'trimUnchanged':!0x1});this[_0x4547ac(0x2b9)](_0xc4018f),await new Promise(_0x20c0de=>setTimeout(_0x20c0de,0x32)),await _0xc4018f[_0x4547ac(0x1f7)]({'parts':_0xd5de6,'renderingStrategy':_0x4547ac(0x201),'abortSignal':new AbortController()[_0x4547ac(0x1de)]});}catch(_0x42d012){this[_0x4547ac(0x1e5)](_0x42d012)||console[_0x4547ac(0x21f)](_0x4547ac(0x246),_0x42d012);}}this[_0x4547ac(0x1f5)]();}[_0x57595f(0x1f5)](){const _0x5d7df3=_0x57595f;if(!this[_0x5d7df3(0x20d)]||!this[_0x5d7df3(0x27f)]||!this[_0x5d7df3(0x270)])return;const _0x37cdac=this[_0x5d7df3(0x1d7)][_0x5d7df3(0x22c)],_0x15ebd2=_0x37cdac>0x1,_0x306b9d=this[_0x5d7df3(0x295)]?.[_0x5d7df3(0x207)];if(_0x15ebd2){this[_0x5d7df3(0x1f0)]||this[_0x5d7df3(0x20a)]||this[_0x5d7df3(0x1eb)]||(this[_0x5d7df3(0x22e)][_0x5d7df3(0x2b3)](this[_0x5d7df3(0x20d)]),_0x306b9d?.[_0x5d7df3(0x285)](this[_0x5d7df3(0x20d)]),this[_0x5d7df3(0x1f0)]=!0x0,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2b3)](this[_0x5d7df3(0x27f)]),_0x306b9d?.[_0x5d7df3(0x285)](this[_0x5d7df3(0x27f)]),this[_0x5d7df3(0x20a)]=!0x0,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2b3)](this[_0x5d7df3(0x270)]),_0x306b9d?.[_0x5d7df3(0x285)](this[_0x5d7df3(0x270)]),this[_0x5d7df3(0x1eb)]=!0x0);const _0x1fac61=_0x37cdac-this[_0x5d7df3(0x202)];this[_0x5d7df3(0x27f)][_0x5d7df3(0x242)]&&(this[_0x5d7df3(0x27f)][_0x5d7df3(0x242)][_0x5d7df3(0x294)]=_0x1fac61+'/'+_0x37cdac),this[_0x5d7df3(0x20d)][_0x5d7df3(0x28f)]=this[_0x5d7df3(0x202)]<_0x37cdac-0x1,this[_0x5d7df3(0x270)][_0x5d7df3(0x28f)]=this[_0x5d7df3(0x202)]>0x0;}else(this[_0x5d7df3(0x1f0)]||this[_0x5d7df3(0x20a)]||this[_0x5d7df3(0x1eb)])&&(this[_0x5d7df3(0x22e)][_0x5d7df3(0x2a9)](this[_0x5d7df3(0x20d)]),_0x306b9d?.[_0x5d7df3(0x243)](this[_0x5d7df3(0x20d)]),this[_0x5d7df3(0x1f0)]=!0x1,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2a9)](this[_0x5d7df3(0x27f)]),_0x306b9d?.[_0x5d7df3(0x243)](this[_0x5d7df3(0x27f)]),this[_0x5d7df3(0x20a)]=!0x1,this[_0x5d7df3(0x22e)][_0x5d7df3(0x2a9)](this[_0x5d7df3(0x270)]),_0x306b9d?.[_0x5d7df3(0x243)](this[_0x5d7df3(0x270)]),this[_0x5d7df3(0x1eb)]=!0x1);}[_0x57595f(0x27d)](_0x343167,_0x4158f7){const _0x39021d=_0x57595f;_0x343167[_0x39021d(0x225)](),_0x4158f7[_0x39021d(0x283)][_0x39021d(0x225)](),this[_0x39021d(0x2aa)]=!0x0;}async[_0x57595f(0x236)](_0x5816c5,_0x43a019){const _0x41a094=_0x57595f,_0x243f4b=_0x57e83e(this[_0x41a094(0x279)][_0x41a094(0x1ed)],_0x41a094(0x1df));_0x43a019[_0x41a094(0x234)](_0x243f4b),_0x5816c5[_0x41a094(0x218)]=!0x0,await this[_0x41a094(0x22b)][_0x41a094(0x205)],_0x43a019[_0x41a094(0x1e2)](),this[_0x41a094(0x295)]?.[_0x41a094(0x264)][_0x41a094(0x283)][_0x41a094(0x230)]&&(this[_0x41a094(0x295)][_0x41a094(0x264)][_0x41a094(0x283)][_0x41a094(0x230)][_0x41a094(0x280)]=!0x0);}[_0x57595f(0x256)](_0x43f9e0,_0x328004){const _0x33919a=_0x57595f;_0x43f9e0[_0x33919a(0x22f)](),_0x328004[_0x33919a(0x283)][_0x33919a(0x230)]&&(_0x328004[_0x33919a(0x283)][_0x33919a(0x230)][_0x33919a(0x280)]=!0x1);}async[_0x57595f(0x1ff)](_0x3d16a5,_0x351c77){const _0x354e5d=_0x57595f;await this[_0x354e5d(0x22b)][_0x354e5d(0x205)],this[_0x354e5d(0x2aa)]=!0x1,_0x3d16a5[_0x354e5d(0x27a)](),_0x351c77[_0x354e5d(0x283)][_0x354e5d(0x27a)]();}[_0x57595f(0x2b4)](){const _0x41fb41=_0x57595f;this[_0x41fb41(0x22e)][_0x41fb41(0x29f)](_0x5de686=>{const _0x2cbfe9=_0x41fb41;_0x2cbfe9(0x28f)in _0x5de686&&(_0x5de686[_0x2cbfe9(0x28f)]=!0x1);});}}
|
|
23
|
+
const _0x2a209d=_0x17ca;(function(_0x18fcdd,_0x393334){const _0xef2be0=_0x17ca,_0x4aef93=_0x18fcdd();while(!![]){try{const _0x231a03=-parseInt(_0xef2be0(0x229))/0x1+parseInt(_0xef2be0(0x1e6))/0x2*(parseInt(_0xef2be0(0x1e1))/0x3)+parseInt(_0xef2be0(0x218))/0x4*(-parseInt(_0xef2be0(0x281))/0x5)+-parseInt(_0xef2be0(0x1c7))/0x6*(-parseInt(_0xef2be0(0x1e2))/0x7)+parseInt(_0xef2be0(0x1d6))/0x8+parseInt(_0xef2be0(0x25c))/0x9*(parseInt(_0xef2be0(0x271))/0xa)+parseInt(_0xef2be0(0x269))/0xb*(-parseInt(_0xef2be0(0x237))/0xc);if(_0x231a03===_0x393334)break;else _0x4aef93['push'](_0x4aef93['shift']());}catch(_0x10dbd4){_0x4aef93['push'](_0x4aef93['shift']());}}}(_0x3ca7,0xbc559));import{Plugin as _0x51cf54}from'ckeditor5/src/core.js';import{AIConnector as _0x149cb9}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0xd26322}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x1da137,ButtonView as _0x5a9a3a,ViewCollection as _0x3235b0,View as _0x25f6d3}from'ckeditor5/src/ui.js';import{AIEditing as _0x36edd8}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x365cb0}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x1d5010,first as _0xedbfa0}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x55b9c9,IconRefresh as _0x59f292,IconNextArrow as _0x1b9335,IconPreviousArrow as _0x131696,IconShowChangesOff as _0x1150fd}from'@ckeditor/ckeditor5-icons';function _0x17ca(_0x4d30a9,_0x45d0a6){const _0x3ca7e7=_0x3ca7();return _0x17ca=function(_0x17ca72,_0x4de65c){_0x17ca72=_0x17ca72-0x1c5;let _0x17dcac=_0x3ca7e7[_0x17ca72];return _0x17dcac;},_0x17ca(_0x4d30a9,_0x45d0a6);}import{AIBalloon as _0x3b3ca9}from'../aiballoon/aiballoon.js';function _0x3ca7(){const _0x2fdc44=['close','actionName','TrackChanges','_navigateToNext','documentFragment','type','hasError','getFirstRange','getChild','6668552FDKInL','rename','rootName','_disableCustomViews','showChangesButton','_setErrorState','execute','AIActions','_navigateToPrevious','isBusy','clone','9XfXfem','19362tsJJtV','clearErrorState','pluginName','_displayInteractionAtIndex','775780qnbmUQ','createPositionBefore','clearLoading','startsWith','hideError','includes','replyContentUpdated','_aiConnector','streaming','toggleSuggestionDisplayMode','setLoading','upsertCustomAIActionRating','TrackChangesEditing','selectionRemoved','hideLoader','_updateNavigationUI','removeNavigationItem','AIConnector','actionCallId','isOfficialPlugin','$graveyard','documentContextContent','enqueue','root','modelToViewWithIds','insertSuggestion','add','getSelectedBlocks','ck-ai-interaction-counter','error','sourcePosition','_navigationCounter','_applyOperationsAsSuggestions','TableSelection','_clearErrorState','_clearSuggestionContent','get','_interactionParams','processor','ck-ai-navigation-button\x20ck-ai-previous-button','nodeAfter','set','ai-request-aborted','toData','focus','changeGroups','_interactions','_filterOperationsOutsideRange','_isNavigationPreviousButtonInView','AI_ACTIONS_NEXT_INTERACTION','630156emlJQO','config','isLoading','_customViews','reinsert','queueEmptyPromise','document','aiBalloon','AI_ACTIONS_GENERIC_ERROR','getSelectedContent','isEnabled','plugins','signal','state','1/1','areChangesVisible','open','802662ZJTXOS','icon','stop','ck-ai-custom-action-button','move','getSelectionAsFragment','createRange','nextSibling','_stopInteraction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_appendChild','hasPendingParts','toolbar','forEach','168bTwaPO','howMany','insert','map','getRanges','getChildAtOffset','model','updateContent','_getExecuteDataInTable','version','path','_isNavigationNextButtonInView','start','selection','merge','schema','_navigationPreviousButton','stickiness','dialogClosed','split','_isNavigationCounterInView','_balloonShowDiff','requires','getSelectedTableCells','Error\x20updating\x20content\x20in\x20replyCreated:','first','_setupCustomViews','_navigationNextButton','message','_refreshInteraction','createPositionAt','slice','Error\x20refreshing\x20interaction:','ck-ai-navigation-button\x20ck-ai-next-button','getAncestors','stopInteraction','rejected','42849yIKOSO','ai.availableReplyActions','getOperations','data','miniToolbarView','getDocumentContext','length','locale','setChangeGroupState','interactionFinished','accepted','history','getRoot','834460SYQNpA','remove','_interaction','bind','showLoader','_children','startAutoScroll','replies','2670SBpqGa','end','balloonView','AI_ACTIONS_TRY_AGAIN','editor','getLimitElement','_applyChanges','applySuggestion','_currentInteractionIndex','addNavigationItem','Error\x20updating\x20content\x20during\x20navigation:','operationsA','catch','static','baseVersion','has','45psNgCV','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','indexOf','setSelection','showError','range','_clone','stopListening','abort','replyCreated','_getExecuteDataRegular','isCollapsed','getCommonAncestor','textContent','stopAutoScroll','createPositionAfter','applyOperation','_setLoadingState','Attribute','pending','upsertAIActionRating','_execute','_executeAction','_clearInteractionHistory','setTemplate','push','executeAction','_anchorOperation','_isAbortError','isDocumentOperation','_wrapWithCommonAncestors','isPremiumPlugin','element','_clearLoadingState','replyChangeGroupStateUpdated','AIBalloon','listenTo','setErrorState','ai-no-track-changes','bodyView','position','batch','random','parent','AI_ACTIONS_PREVIOUS_INTERACTION','span','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','filter','1704TEweEW','_createInteraction','change','addOperation','_promiseQueue','mainView'];_0x3ca7=function(){return _0x2fdc44;};return _0x3ca7();}import{PromiseQueue as _0x2e117e}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1a21a1}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x415c42}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x465adf}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x36ff6b,getOperationsFromReply as _0x4debfb}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x2b039f,ModelRange as _0x148c2e,ModelPosition as _0x524415,_DetachOperation as _0x254c03,transformOperationSets as _0x156fa3}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x193822}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x51cf54{static get[_0x2a209d(0x24d)](){return[_0x149cb9,_0x1da137,_0x36edd8,_0x3b3ca9,_0x465adf];}static get[_0x2a209d(0x1e4)](){const _0xf20278=_0x2a209d;return _0xf20278(0x1dd);}static get[_0x2a209d(0x1f9)](){return!0x0;}static get[_0x2a209d(0x2a0)](){return!0x0;}[_0x2a209d(0x1ed)];[_0x2a209d(0x214)]=[];[_0x2a209d(0x279)]=0x0;[_0x2a209d(0x20b)];[_0x2a209d(0x24c)]=!0x1;[_0x2a209d(0x21b)]=new _0x3235b0();[_0x2a209d(0x247)];[_0x2a209d(0x205)];[_0x2a209d(0x24b)]=!0x1;[_0x2a209d(0x252)];[_0x2a209d(0x216)]=!0x1;[_0x2a209d(0x242)]=!0x1;[_0x2a209d(0x1cb)];get[_0x2a209d(0x26b)](){const _0x2d393c=_0x2a209d;return this[_0x2d393c(0x214)][this[_0x2d393c(0x214)][_0x2d393c(0x262)]-0x1];}constructor(_0x5a188d){const _0x3564f8=_0x2a209d;super(_0x5a188d),this[_0x3564f8(0x1ed)]=this[_0x3564f8(0x275)][_0x3564f8(0x223)][_0x3564f8(0x20a)](_0x3564f8(0x1f7)),this[_0x3564f8(0x20f)](_0x3564f8(0x1df),!0x1),this[_0x3564f8(0x1cb)]=new _0x2e117e(),this[_0x3564f8(0x251)]();}[_0x2a209d(0x25a)](){const _0x45babd=_0x2a209d;this[_0x45babd(0x231)]();}async[_0x2a209d(0x29b)](_0x3c2701,_0xb54a14,_0x15b2b6){const _0x4ad8f9=_0x2a209d;if(this[_0x4ad8f9(0x275)][_0x4ad8f9(0x223)][_0x4ad8f9(0x280)](_0x4ad8f9(0x207))){if(this[_0x4ad8f9(0x275)][_0x4ad8f9(0x223)][_0x4ad8f9(0x20a)](_0x4ad8f9(0x207))[_0x4ad8f9(0x24e)]()){const {modelFragment:_0x5b6608,anchorData:_0x15f36f}=this[_0x4ad8f9(0x23f)]();return this[_0x4ad8f9(0x297)](_0x3c2701,_0x5b6608,_0x15f36f,_0xb54a14,_0x15b2b6);}}const {modelFragment:_0x3c9240,anchorData:_0x509a98}=this[_0x4ad8f9(0x28b)]();return this[_0x4ad8f9(0x297)](_0x3c2701,_0x3c9240,_0x509a98,_0xb54a14,_0x15b2b6);}[_0x2a209d(0x28b)](){const _0x126828=_0x2a209d,_0x3de10f=this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x21e)][_0x126828(0x244)];if(_0x3de10f[_0x126828(0x28c)]){const _0x556273=_0xedbfa0(_0x3de10f[_0x126828(0x201)]())||this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x246)][_0x126828(0x276)](_0x3de10f);this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x1c9)](_0x5a3866=>{const _0x36554c=_0x126828;_0x5a3866[_0x36554c(0x284)](_0x556273,'in');});}const _0x192b4b=_0x3de10f[_0x126828(0x1d4)](),_0x459d42=this[_0x126828(0x29f)](this[_0x126828(0x275)][_0x126828(0x23d)][_0x126828(0x221)](_0x3de10f),_0x192b4b[_0x126828(0x243)],_0x192b4b[_0x126828(0x272)]),_0x16ba5e=_0x3de10f[_0x126828(0x1d4)]()[_0x126828(0x243)],_0x1e4231=new Map();let _0x54de7c=_0x459d42;for(let _0xcbf909=0x0;_0xcbf909<_0x16ba5e[_0x126828(0x241)][_0x126828(0x262)];_0xcbf909++)_0x1e4231[_0x126828(0x20f)](_0x54de7c,_0x16ba5e[_0x126828(0x241)][_0xcbf909]),_0x54de7c=_0x54de7c[_0x126828(0x1d5)](0x0);return{'modelFragment':_0x459d42,'anchorData':_0x1e4231};}[_0x2a209d(0x23f)](){const _0x504655=_0x2a209d,_0x4a16ed=this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x21e)][_0x504655(0x244)],_0x2ae7d5=this[_0x504655(0x275)][_0x504655(0x223)][_0x504655(0x20a)](_0x504655(0x207))[_0x504655(0x22e)](),_0x12fb0c=_0x4a16ed[_0x504655(0x1d4)]()[_0x504655(0x243)][_0x504655(0x2ac)][_0x504655(0x2ac)],_0x23dc19=this[_0x504655(0x29f)](_0x2ae7d5,this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x1e7)](_0x12fb0c),this[_0x504655(0x275)][_0x504655(0x23d)][_0x504655(0x290)](_0x12fb0c)),_0x239023=_0x4a16ed[_0x504655(0x1d4)]()[_0x504655(0x243)],_0x15b793=new Map();let _0x486550=_0x23dc19;for(let _0x15b2e8=0x0;_0x15b2e8<_0x239023[_0x504655(0x241)][_0x504655(0x262)];_0x15b2e8++)if(_0x15b793[_0x504655(0x20f)](_0x486550,_0x239023[_0x504655(0x241)][_0x15b2e8]),_0x15b2e8<_0x239023[_0x504655(0x241)][_0x504655(0x262)]-0x1)_0x486550=_0x486550[_0x504655(0x1d5)](0x0);else{let _0x24c8b0=_0x486550[_0x504655(0x230)];for(;_0x24c8b0;)_0x15b793[_0x504655(0x20f)](_0x24c8b0,_0x239023[_0x504655(0x241)][_0x15b2e8]),_0x24c8b0=_0x24c8b0[_0x504655(0x230)];}return{'modelFragment':_0x23dc19,'anchorData':_0x15b793};}[_0x2a209d(0x297)](_0x36d699,_0x3a16e7,_0x3b7d76,_0x5e21db,_0x26cd4e){const _0x440c46=_0x2a209d,_0x4f1b99=this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x20a)](_0x36edd8),_0x2b54b6=this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x20a)](_0x3b3ca9),_0x1d7311=this[_0x440c46(0x275)][_0x440c46(0x23d)][_0x440c46(0x21e)][_0x440c46(0x244)],_0x18e333=_0x4f1b99[_0x440c46(0x1fe)](_0x3a16e7),_0x170637=this[_0x440c46(0x275)][_0x440c46(0x25f)][_0x440c46(0x20c)][_0x440c46(0x211)](_0x18e333),_0x588552=this[_0x440c46(0x275)][_0x440c46(0x23d)][_0x440c46(0x21e)][_0x440c46(0x240)],_0x3a1f8d=[..._0x1d7311[_0x440c46(0x23b)]()];let _0x4f5274=this[_0x440c46(0x275)][_0x440c46(0x219)][_0x440c46(0x20a)](_0x440c46(0x25d))||[..._0x193822];this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x280)](_0x440c46(0x1cf))||(_0x4f5274=_0x4f5274[_0x440c46(0x1c6)](_0x56c59d=>_0x440c46(0x1ff)!=_0x56c59d));const _0x55539e=new _0xd26322(this[_0x440c46(0x275)][_0x440c46(0x263)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x440c46(0x22a),'customView':this[_0x440c46(0x21b)]},'showUnchangedParts':!0x0,'availableActions':_0x4f5274});return _0x2b54b6[_0x440c46(0x228)]({'index':0x3e8*Math[_0x440c46(0x2ab)]()%0x3e8,'title':_0x5e21db,'icon':_0x26cd4e||_0x55b9c9,'mainView':_0x55539e,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x440c46(0x275)][_0x440c46(0x223)][_0x440c46(0x280)](_0x440c46(0x1cf)),'ranges':_0x3a1f8d}),this[_0x440c46(0x292)](_0x55539e,_0x2b54b6),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x278),()=>{const _0x4e7d64=_0x440c46;this[_0x4e7d64(0x277)](_0x3a16e7,_0x3b7d76,!0x1);}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x1ff),()=>{const _0xba0a7d=_0x440c46;this[_0xba0a7d(0x277)](_0x3a16e7,_0x3b7d76,!0x0);}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x1f3),()=>{const _0x197a4e=_0x440c46;this[_0x197a4e(0x231)](),this[_0x197a4e(0x1d9)]();}),this[_0x440c46(0x2a5)](_0x2b54b6,_0x440c46(0x249),()=>{const _0x5cc771=_0x440c46;if(this[_0x5cc771(0x26b)]&&this[_0x5cc771(0x26b)][_0x5cc771(0x270)][_0x5cc771(0x262)]>0x0){const _0x526671=this[_0x5cc771(0x26b)][_0x5cc771(0x270)][this[_0x5cc771(0x26b)][_0x5cc771(0x270)][_0x5cc771(0x262)]-0x1],_0x1e3f86=_0x526671[_0x5cc771(0x213)][0x0];_0x1e3f86&&_0x5cc771(0x294)===_0x1e3f86[_0x5cc771(0x225)]&&_0x526671[_0x5cc771(0x264)](0x0,_0x5cc771(0x25b));}this[_0x5cc771(0x231)](),this[_0x5cc771(0x298)](),this[_0x5cc771(0x288)](_0x2b54b6);}),this[_0x440c46(0x1c8)](_0x170637,_0x588552,_0x55539e,_0x2b54b6,_0x36d699);}[_0x2a209d(0x29f)](_0x4ff33c,_0x5af60d,_0x523a37){const _0x50fb47=_0x2a209d,_0x4cdbb0=this[_0x50fb47(0x275)][_0x50fb47(0x23d)][_0x50fb47(0x22f)](_0x5af60d,_0x523a37)[_0x50fb47(0x28d)](),_0x2d700c=_0x4cdbb0['is'](_0x50fb47(0x1d1))?[]:_0x4cdbb0[_0x50fb47(0x259)]({'includeSelf':!0x0})[_0x50fb47(0x256)](0x1);if(_0x2d700c[_0x50fb47(0x262)]){const _0x1ad121=_0x2d700c[_0x50fb47(0x23a)](_0x2cc23a=>_0x2cc23a[_0x50fb47(0x287)](!0x1));for(let _0x27ee91=0x1;_0x27ee91<_0x1ad121[_0x50fb47(0x262)];_0x27ee91++)_0x1ad121[_0x27ee91-0x1][_0x50fb47(0x233)](_0x1ad121[_0x27ee91]);return _0x1ad121[_0x1ad121[_0x50fb47(0x262)]-0x1][_0x50fb47(0x233)](_0x4ff33c),new _0x2b039f(_0x1ad121[0x0]);}return _0x4ff33c;}async[_0x2a209d(0x1c8)](_0x38e1bd,_0x10ddb7,_0x124e25,_0x10097a,_0x5c8b3f){const _0x226244=_0x2a209d,_0x456292=this[_0x226244(0x275)];this[_0x226244(0x20b)]={'action':_0x5c8b3f,'content':_0x38e1bd,'version':_0x10ddb7,'mainView':_0x124e25,'aiBalloon':_0x10097a};const _0x434616=new _0x365cb0({'connector':this[_0x226244(0x1ed)],'editor':_0x456292,'content':_0x38e1bd,'version':_0x10ddb7,..._0x5c8b3f});this[_0x226244(0x214)][_0x226244(0x29a)](_0x434616),_0x124e25[_0x226244(0x1ea)]();const _0x9de237=(_0x32791e,_0x1f3ea1,_0x95c4bb=!0x1,_0x342c62=_0x226244(0x1ee))=>this[_0x226244(0x1cb)][_0x226244(0x1fc)](async _0x5e795f=>{const _0x5dc33d=_0x226244;try{const _0x3ec493=_0x415c42({'editor':_0x456292,'changeGroups':_0x32791e[_0x5dc33d(0x213)],'documentContextContent':_0x32791e[_0x5dc33d(0x1fb)],'showDiff':_0x95c4bb,'trimUnchanged':!0x1});await _0x1f3ea1[_0x5dc33d(0x23e)]({'parts':_0x3ec493,'renderingStrategy':_0x342c62,'abortSignal':_0x5e795f});}catch(_0x1bff40){if(this[_0x5dc33d(0x29d)](_0x1bff40))return;throw _0x1bff40;}});this[_0x226244(0x26b)]['on'](_0x226244(0x28a),(_0x4ffb2f,_0x8b27f9)=>{const _0x1375d6=_0x226244;_0x124e25[_0x1375d6(0x1f4)](),_0x10097a[_0x1375d6(0x26f)](),_0x9de237(_0x8b27f9,_0x124e25)[_0x1375d6(0x27d)](_0x552c58=>{const _0x3e5f03=_0x1375d6;this[_0x3e5f03(0x29d)](_0x552c58)||(console[_0x3e5f03(0x203)](_0x3e5f03(0x24f),_0x552c58),this[_0x3e5f03(0x1db)](_0x434616,_0x124e25));});}),this[_0x226244(0x26b)]['on'](_0x226244(0x1ec),(_0x3f00d6,_0x8ee415)=>{const _0x4f7f04=_0x226244;_0x9de237(_0x8ee415,_0x124e25)[_0x4f7f04(0x27d)](_0x3cf764=>{const _0x2dfaae=_0x4f7f04;this[_0x2dfaae(0x29d)](_0x3cf764)||(console[_0x2dfaae(0x203)](_0x2dfaae(0x232),_0x3cf764),this[_0x2dfaae(0x1db)](_0x434616,_0x124e25));});}),this[_0x226244(0x26b)]['on'](_0x226244(0x265),async()=>{const _0xd0ba34=_0x226244;try{await this[_0xd0ba34(0x2a2)](_0x124e25,_0x10097a),this[_0xd0ba34(0x1f5)](),await this[_0xd0ba34(0x1cb)][_0xd0ba34(0x21d)];}catch(_0x3f4194){this[_0xd0ba34(0x29d)](_0x3f4194)||(console[_0xd0ba34(0x203)](_0xd0ba34(0x1c5),_0x3f4194),this[_0xd0ba34(0x1db)](_0x434616,_0x124e25));}finally{_0x10097a[_0xd0ba34(0x28f)]();}}),this[_0x226244(0x2a5)](_0x124e25,_0x226244(0x1ef),async(_0x556984,{showDiff:_0x226c63})=>{const _0x4ab293=_0x226244;try{this[_0x4ab293(0x24c)]=_0x226c63;const _0xa3549b=this[_0x4ab293(0x26b)][_0x4ab293(0x270)][this[_0x4ab293(0x26b)][_0x4ab293(0x270)][_0x4ab293(0x262)]-0x1];_0xa3549b&&await _0x9de237(_0xa3549b,_0x124e25,_0x226c63,_0x4ab293(0x27e));}catch(_0x2bd602){this[_0x4ab293(0x29d)](_0x2bd602)||(console[_0x4ab293(0x203)](_0x4ab293(0x282),_0x2bd602),this[_0x4ab293(0x1db)](_0x434616,_0x124e25));}}),this[_0x226244(0x26b)]['on'](_0x226244(0x2a3),(_0x4d4f4e,{reply:_0x2b3036})=>{const _0x5a160b=_0x226244,_0x2efa37={'positiveCount':_0x2b3036[_0x5a160b(0x213)][_0x5a160b(0x1c6)](_0x58856d=>_0x5a160b(0x266)===_0x58856d[_0x5a160b(0x225)])[_0x5a160b(0x262)],'totalCount':_0x2b3036[_0x5a160b(0x213)][_0x5a160b(0x262)]},_0x3f64f4=this[_0x5a160b(0x26b)][_0x5a160b(0x1f8)],_0x33cc91=this[_0x5a160b(0x26b)][_0x5a160b(0x1ce)];_0x33cc91?this[_0x5a160b(0x1ed)][_0x5a160b(0x295)](_0x33cc91,_0x3f64f4,_0x2efa37):this[_0x5a160b(0x1ed)][_0x5a160b(0x1f1)](_0x3f64f4,_0x2efa37);}),this[_0x226244(0x292)](_0x124e25,_0x10097a);try{const _0x46454b=await this[_0x226244(0x26b)][_0x226244(0x243)]();return this[_0x226244(0x1f5)](),_0x46454b;}catch(_0x6abd45){if(this[_0x226244(0x29d)](_0x6abd45))return;_0x124e25[_0x226244(0x1f4)](),this[_0x226244(0x1db)](_0x434616,_0x124e25);}}[_0x2a209d(0x277)](_0xba4bee,_0x50d12a,_0x42d1ca){const _0x3bbb71=_0x2a209d,_0x49d24e=this[_0x3bbb71(0x275)];if(_0x42d1ca&&!_0x49d24e[_0x3bbb71(0x223)][_0x3bbb71(0x280)](_0x3bbb71(0x1cf)))throw new _0x1d5010(_0x3bbb71(0x2a7),null);const _0x3fcd28=this[_0x3bbb71(0x275)][_0x3bbb71(0x223)][_0x3bbb71(0x20a)](_0x465adf),_0x2b615c=this[_0x3bbb71(0x26b)],_0x4375b7=this[_0x3bbb71(0x26b)][_0x3bbb71(0x270)][this[_0x3bbb71(0x26b)][_0x3bbb71(0x270)][_0x3bbb71(0x262)]-0x1],_0x1695a7=_0x4375b7[_0x3bbb71(0x213)];_0x4375b7[_0x3bbb71(0x264)](0x0,_0x3bbb71(0x266));let _0x21f09f=_0x4debfb({'editor':_0x49d24e,'reply':_0x4375b7,'interaction':_0x2b615c,'groups':_0x1695a7,'transform':!0x1,'documentCompare':_0x3fcd28,'documentCompareOptions':{'anchor':_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x255)](_0xba4bee,0x0),'markDeletions':_0x42d1ca}});_0x21f09f=this[_0x3bbb71(0x215)](_0x21f09f,_0x50d12a);for(const _0x5c116c of _0x21f09f)this[_0x3bbb71(0x29c)](_0x50d12a,_0x5c116c,_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)][_0x3bbb71(0x268)]());const _0x414c96=_0x2b615c[_0x3bbb71(0x261)]()[_0x3bbb71(0x240)],_0x456963=_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)][_0x3bbb71(0x267)][_0x3bbb71(0x25e)](_0x414c96),_0x106b33={'document':_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x21e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x12e8a4=_0x156fa3(_0x21f09f,_0x456963,_0x106b33)[_0x3bbb71(0x27c)];_0x49d24e[_0x3bbb71(0x23d)][_0x3bbb71(0x1c9)](_0x247ef9=>{const _0x419288=_0x3bbb71;if(_0x247ef9[_0x419288(0x284)](_0x49d24e[_0x419288(0x23d)][_0x419288(0x21e)][_0x419288(0x244)][_0x419288(0x212)]),_0x42d1ca)_0x49d24e[_0x419288(0x223)][_0x419288(0x20a)](_0x419288(0x1f2))[_0x419288(0x206)](_0x12e8a4);else{for(const _0x2bf20e of _0x12e8a4)_0x2bf20e[_0x419288(0x27f)]=_0x49d24e[_0x419288(0x23d)][_0x419288(0x21e)][_0x419288(0x240)],_0x36ff6b(_0x49d24e,_0x2bf20e),_0x247ef9[_0x419288(0x2aa)][_0x419288(0x1ca)](_0x2bf20e),_0x49d24e[_0x419288(0x23d)][_0x419288(0x291)](_0x2bf20e);}}),this[_0x3bbb71(0x275)][_0x3bbb71(0x223)][_0x3bbb71(0x20a)](_0x3bbb71(0x2a4))[_0x3bbb71(0x1cd)]();}[_0x2a209d(0x215)](_0x58d783,_0x42bce0){const _0x1b4579=_0x2a209d;return _0x58d783[_0x1b4579(0x1c6)](_0x4cdcc1=>{const _0x5dc8db=_0x1b4579;if(_0x5dc8db(0x1d7)==_0x4cdcc1[_0x5dc8db(0x1d2)]){const _0x243476=_0x4cdcc1[_0x5dc8db(0x2a9)][_0x5dc8db(0x20e)];return!_0x42bce0[_0x5dc8db(0x280)](_0x243476);}if(_0x4cdcc1[_0x5dc8db(0x1d2)][_0x5dc8db(0x283)](_0x5dc8db(0x293))>-0x1){const _0x202a68=_0x4cdcc1[_0x5dc8db(0x286)][_0x5dc8db(0x243)][_0x5dc8db(0x20e)];return!_0x42bce0[_0x5dc8db(0x280)](_0x202a68);}return!0x0;});}[_0x2a209d(0x29c)](_0x692a07,_0x50ebf3,_0x5b1bb8){const _0x11ded9=_0x2a209d,_0x2333d6=_0x50ebf3[_0x11ded9(0x1e0)]();for(const _0x3b5641 in _0x50ebf3){const _0x28e2fa=_0x50ebf3[_0x3b5641];_0x28e2fa instanceof _0x148c2e?_0x50ebf3[_0x3b5641]=new _0x148c2e(_0x69f16a(_0x28e2fa[_0x11ded9(0x243)]),_0x69f16a(_0x28e2fa[_0x11ded9(0x272)])):_0x28e2fa instanceof _0x524415&&(_0x50ebf3[_0x3b5641]=_0x69f16a(_0x28e2fa));}if([_0x11ded9(0x239),_0x11ded9(0x22d),_0x11ded9(0x26a),_0x11ded9(0x21c),_0x11ded9(0x24a),_0x11ded9(0x245)][_0x11ded9(0x1eb)](_0x2333d6[_0x11ded9(0x1d2)])){if(_0x2333d6[_0x11ded9(0x29e)]=!0x1,_0x2333d6[_0x11ded9(0x27f)]=null,_0x11ded9(0x26a)==_0x2333d6[_0x11ded9(0x1d2)]){const _0x8d68e4=_0x2333d6[_0x11ded9(0x204)],_0x5f2f03=_0x2333d6[_0x11ded9(0x238)];new _0x254c03(_0x8d68e4,_0x5f2f03)[_0x11ded9(0x296)]();}else _0x2333d6[_0x11ded9(0x296)]();}function _0x69f16a(_0xa13713){const _0x584ed6=_0x11ded9;if(_0x584ed6(0x1fa)==_0xa13713[_0x584ed6(0x1fd)][_0x584ed6(0x1d8)])return _0xa13713;const _0x43f7ea=[];let _0x3ba7ec=_0xa13713[_0x584ed6(0x1fd)];for(let _0x3da3c5=0x0;_0x3da3c5<_0xa13713[_0x584ed6(0x241)][_0x584ed6(0x262)];_0x3da3c5++){const _0x368ca4=_0x692a07[_0x584ed6(0x20a)](_0x3ba7ec)||0x0;_0x43f7ea[_0x3da3c5]=_0xa13713[_0x584ed6(0x241)][_0x3da3c5]+_0x368ca4,_0x3ba7ec=_0x3ba7ec[_0x584ed6(0x23c)](_0xa13713[_0x584ed6(0x241)][_0x3da3c5]);}return new _0x524415(_0x5b1bb8,_0x43f7ea,_0xa13713[_0x584ed6(0x248)]);}}[_0x2a209d(0x254)](){const _0xe56924=_0x2a209d;if(!this[_0xe56924(0x20b)])return;this[_0xe56924(0x214)][_0xe56924(0x262)]>0x0&&this[_0xe56924(0x231)](),this[_0xe56924(0x279)]=0x0,this[_0xe56924(0x24c)]=!0x1;const {action:_0x300a4e,content:_0x3b4a88,version:_0x26968e,mainView:_0x271f3e,aiBalloon:_0x316f6d}=this[_0xe56924(0x20b)];_0x271f3e[_0xe56924(0x227)]=!0x1,_0x271f3e[_0xe56924(0x1ea)](),this[_0xe56924(0x208)](_0x271f3e,_0x316f6d);const _0x31f5bb=_0x271f3e;_0x31f5bb[_0xe56924(0x260)]&&_0x31f5bb[_0xe56924(0x260)][_0xe56924(0x1da)]&&_0x31f5bb[_0xe56924(0x260)][_0xe56924(0x1da)][_0xe56924(0x20f)]({'isOn':!0x1,'icon':_0x1150fd}),this[_0xe56924(0x209)](_0x271f3e),_0x271f3e[_0xe56924(0x26d)](),this[_0xe56924(0x1f5)](),this[_0xe56924(0x288)](_0x271f3e),this[_0xe56924(0x1c8)](_0x3b4a88,_0x26968e,_0x271f3e,_0x316f6d,_0x300a4e)[_0xe56924(0x27d)](_0x3367be=>{const _0x28ab7b=_0xe56924;this[_0x28ab7b(0x29d)](_0x3367be)||console[_0x28ab7b(0x203)](_0x28ab7b(0x257),_0x3367be);});}[_0x2a209d(0x209)](_0x2c26e4){const _0x1407b3=_0x2a209d,_0x127174=_0x2c26e4[_0x1407b3(0x2a8)][_0x1407b3(0x26e)];for(;_0x127174[_0x1407b3(0x262)]>0x0;)_0x127174[_0x1407b3(0x26a)](_0x127174[_0x1407b3(0x250)]);_0x2c26e4[_0x1407b3(0x2a8)][_0x1407b3(0x234)]=!0x1;}[_0x2a209d(0x29d)](_0x30b651){const _0x5f3138=_0x2a209d;return!!_0x30b651[_0x5f3138(0x253)]&&_0x30b651[_0x5f3138(0x253)][_0x5f3138(0x1e9)](_0x5f3138(0x210));}[_0x2a209d(0x298)](){const _0x16d4ba=_0x2a209d;this[_0x16d4ba(0x214)]=[],this[_0x16d4ba(0x20b)]=void 0x0,this[_0x16d4ba(0x279)]=0x0,this[_0x16d4ba(0x1f5)]();}[_0x2a209d(0x231)](){const _0x38a48e=_0x2a209d;this[_0x38a48e(0x26b)]&&this[_0x38a48e(0x26b)][_0x38a48e(0x22b)](),this[_0x38a48e(0x1cb)][_0x38a48e(0x289)](),this[_0x38a48e(0x1df)]=!0x1,this[_0x38a48e(0x20b)]&&this[_0x38a48e(0x20b)][_0x38a48e(0x21f)][_0x38a48e(0x28f)]();}[_0x2a209d(0x251)](){const _0x1f6b0b=_0x2a209d,_0x4276cc=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x15a74e=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x310231=new _0x25f6d3(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]),_0x3f1b56=new _0x5a9a3a(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)]);_0x4276cc[_0x1f6b0b(0x20f)]({'icon':_0x59f292,'label':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x274)),'tooltip':!0x0,'class':_0x1f6b0b(0x22c)}),_0x15a74e[_0x1f6b0b(0x20f)]({'icon':_0x131696,'tooltip':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x2ad)),'class':_0x1f6b0b(0x20d)}),_0x310231[_0x1f6b0b(0x299)]({'tag':_0x1f6b0b(0x2ae),'attributes':{'class':[_0x1f6b0b(0x202)]},'children':[_0x1f6b0b(0x226)]}),_0x3f1b56[_0x1f6b0b(0x20f)]({'icon':_0x1b9335,'tooltip':_0x1a21a1(this[_0x1f6b0b(0x275)][_0x1f6b0b(0x263)],_0x1f6b0b(0x217)),'class':_0x1f6b0b(0x258)}),_0x4276cc[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x13da17=>!_0x13da17),_0x4276cc['on'](_0x1f6b0b(0x1dc),()=>{const _0x3c0a0a=_0x1f6b0b;this[_0x3c0a0a(0x254)]();}),_0x15a74e[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x2ff2b4=>!_0x2ff2b4),_0x15a74e['on'](_0x1f6b0b(0x1dc),()=>{const _0x117323=_0x1f6b0b;this[_0x117323(0x1de)]();}),_0x3f1b56[_0x1f6b0b(0x26c)](_0x1f6b0b(0x222))['to'](this,_0x1f6b0b(0x1df),_0x67b0d6=>!_0x67b0d6),_0x3f1b56['on'](_0x1f6b0b(0x1dc),()=>{const _0x2b2c35=_0x1f6b0b;this[_0x2b2c35(0x1d0)]();}),this[_0x1f6b0b(0x247)]=_0x15a74e,this[_0x1f6b0b(0x205)]=_0x310231,this[_0x1f6b0b(0x252)]=_0x3f1b56,this[_0x1f6b0b(0x21b)][_0x1f6b0b(0x200)](_0x4276cc);}[_0x2a209d(0x1de)](){const _0x4487ad=_0x2a209d,_0x3fb777=this[_0x4487ad(0x214)][_0x4487ad(0x262)];this[_0x4487ad(0x279)]<_0x3fb777-0x1&&this[_0x4487ad(0x1e5)](this[_0x4487ad(0x279)]+0x1);}[_0x2a209d(0x1d0)](){const _0x382b84=_0x2a209d;this[_0x382b84(0x279)]>0x0&&this[_0x382b84(0x1e5)](this[_0x382b84(0x279)]-0x1);}async[_0x2a209d(0x1e5)](_0xdf60ac){const _0x575aa5=_0x2a209d;if(!this[_0x575aa5(0x20b)])return;this[_0x575aa5(0x279)]=_0xdf60ac;const {mainView:_0x282f6c}=this[_0x575aa5(0x20b)],_0xa64582=this[_0x575aa5(0x214)][this[_0x575aa5(0x214)][_0x575aa5(0x262)]-0x1-this[_0x575aa5(0x279)]];if(!_0xa64582)return;if(_0xa64582[_0x575aa5(0x1d3)])return this[_0x575aa5(0x1db)](_0xa64582,_0x282f6c),void this[_0x575aa5(0x1f5)]();if(!_0xa64582[_0x575aa5(0x270)][_0x575aa5(0x262)])return;_0x282f6c[_0x575aa5(0x1ea)](),this[_0x575aa5(0x20b)]&&this[_0x575aa5(0x208)](_0x282f6c,this[_0x575aa5(0x20b)][_0x575aa5(0x21f)]);const _0x25943e=_0xa64582[_0x575aa5(0x270)][_0xa64582[_0x575aa5(0x270)][_0x575aa5(0x262)]-0x1];if(_0x25943e){const _0x52fa48=this[_0x575aa5(0x275)];this[_0x575aa5(0x209)](_0x282f6c);try{const _0x2ebacf=_0x415c42({'editor':_0x52fa48,'changeGroups':_0x25943e[_0x575aa5(0x213)],'documentContextContent':_0x25943e[_0x575aa5(0x1fb)],'showDiff':this[_0x575aa5(0x24c)],'trimUnchanged':!0x1});this[_0x575aa5(0x209)](_0x282f6c),await new Promise(_0x10b726=>setTimeout(_0x10b726,0x32)),await _0x282f6c[_0x575aa5(0x23e)]({'parts':_0x2ebacf,'renderingStrategy':_0x575aa5(0x27e),'abortSignal':new AbortController()[_0x575aa5(0x224)]});}catch(_0x4a41ab){this[_0x575aa5(0x29d)](_0x4a41ab)||console[_0x575aa5(0x203)](_0x575aa5(0x27b),_0x4a41ab);}}this[_0x575aa5(0x1f5)]();}[_0x2a209d(0x1f5)](){const _0x1d7f4f=_0x2a209d;if(!this[_0x1d7f4f(0x247)]||!this[_0x1d7f4f(0x205)]||!this[_0x1d7f4f(0x252)])return;const _0x57ac8e=this[_0x1d7f4f(0x214)][_0x1d7f4f(0x262)],_0x2c6b19=_0x57ac8e>0x1,_0x3a77f4=this[_0x1d7f4f(0x20b)]?.[_0x1d7f4f(0x1cc)];if(_0x2c6b19){this[_0x1d7f4f(0x216)]||this[_0x1d7f4f(0x24b)]||this[_0x1d7f4f(0x242)]||(this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x247)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x247)]),this[_0x1d7f4f(0x216)]=!0x0,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x205)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x205)]),this[_0x1d7f4f(0x24b)]=!0x0,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x200)](this[_0x1d7f4f(0x252)]),_0x3a77f4?.[_0x1d7f4f(0x27a)](this[_0x1d7f4f(0x252)]),this[_0x1d7f4f(0x242)]=!0x0);const _0x626b7b=_0x57ac8e-this[_0x1d7f4f(0x279)];this[_0x1d7f4f(0x205)][_0x1d7f4f(0x2a1)]&&(this[_0x1d7f4f(0x205)][_0x1d7f4f(0x2a1)][_0x1d7f4f(0x28e)]=_0x626b7b+'/'+_0x57ac8e),this[_0x1d7f4f(0x247)][_0x1d7f4f(0x222)]=this[_0x1d7f4f(0x279)]<_0x57ac8e-0x1,this[_0x1d7f4f(0x252)][_0x1d7f4f(0x222)]=this[_0x1d7f4f(0x279)]>0x0;}else(this[_0x1d7f4f(0x216)]||this[_0x1d7f4f(0x24b)]||this[_0x1d7f4f(0x242)])&&(this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x247)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x247)]),this[_0x1d7f4f(0x216)]=!0x1,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x205)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x205)]),this[_0x1d7f4f(0x24b)]=!0x1,this[_0x1d7f4f(0x21b)][_0x1d7f4f(0x26a)](this[_0x1d7f4f(0x252)]),_0x3a77f4?.[_0x1d7f4f(0x1f6)](this[_0x1d7f4f(0x252)]),this[_0x1d7f4f(0x242)]=!0x1);}[_0x2a209d(0x292)](_0x31f088,_0x9046e5){const _0x4bb309=_0x2a209d;_0x31f088[_0x4bb309(0x1f0)](),_0x9046e5[_0x4bb309(0x273)][_0x4bb309(0x1f0)](),this[_0x4bb309(0x1df)]=!0x0;}async[_0x2a209d(0x1db)](_0x2aaca0,_0x4d55ee){const _0xf21ead=_0x2a209d,_0x326cf5=_0x1a21a1(this[_0xf21ead(0x275)][_0xf21ead(0x263)],_0xf21ead(0x220));_0x4d55ee[_0xf21ead(0x285)](_0x326cf5),_0x2aaca0[_0xf21ead(0x1d3)]=!0x0,await this[_0xf21ead(0x1cb)][_0xf21ead(0x21d)],_0x4d55ee[_0xf21ead(0x2a6)](),this[_0xf21ead(0x20b)]?.[_0xf21ead(0x21f)][_0xf21ead(0x273)][_0xf21ead(0x235)]&&(this[_0xf21ead(0x20b)][_0xf21ead(0x21f)][_0xf21ead(0x273)][_0xf21ead(0x235)][_0xf21ead(0x21a)]=!0x0);}[_0x2a209d(0x208)](_0x3d4864,_0x3e38b3){const _0x4e2cba=_0x2a209d;_0x3d4864[_0x4e2cba(0x1e3)](),_0x3e38b3[_0x4e2cba(0x273)][_0x4e2cba(0x235)]&&(_0x3e38b3[_0x4e2cba(0x273)][_0x4e2cba(0x235)][_0x4e2cba(0x21a)]=!0x1);}async[_0x2a209d(0x2a2)](_0x16749d,_0x5a8e76){const _0x491611=_0x2a209d;await this[_0x491611(0x1cb)][_0x491611(0x21d)],this[_0x491611(0x1df)]=!0x1,_0x16749d[_0x491611(0x1e8)](),_0x5a8e76[_0x491611(0x273)][_0x491611(0x1e8)]();}[_0x2a209d(0x1d9)](){const _0x23aabd=_0x2a209d;this[_0x23aabd(0x21b)][_0x23aabd(0x236)](_0x3d00f0=>{const _0x58378a=_0x23aabd;_0x58378a(0x222)in _0x3d00f0&&(_0x3d00f0[_0x58378a(0x222)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x598f55=_0x4074;function _0x4074(_0x1b93ca,_0x852f85){const _0x493c58=_0x493c();return _0x4074=function(_0x407463,_0x4d0746){_0x407463=_0x407463-0x150;let _0x4dbbae=_0x493c58[_0x407463];return _0x4dbbae;},_0x4074(_0x1b93ca,_0x852f85);}(function(_0x25c30a,_0xa0333d){const _0x4431cd=_0x4074,_0x1d2b93=_0x25c30a();while(!![]){try{const _0x5e37c8=-parseInt(_0x4431cd(0x16a))/0x1*(-parseInt(_0x4431cd(0x169))/0x2)+-parseInt(_0x4431cd(0x158))/0x3*(-parseInt(_0x4431cd(0x16f))/0x4)+parseInt(_0x4431cd(0x156))/0x5+-parseInt(_0x4431cd(0x157))/0x6+parseInt(_0x4431cd(0x15a))/0x7+parseInt(_0x4431cd(0x161))/0x8*(-parseInt(_0x4431cd(0x16c))/0x9)+-parseInt(_0x4431cd(0x165))/0xa;if(_0x5e37c8===_0xa0333d)break;else _0x1d2b93['push'](_0x1d2b93['shift']());}catch(_0x36f70c){_0x1d2b93['push'](_0x1d2b93['shift']());}}}(_0x493c,0x2baab));import{AIInteraction as _0x12c9b8,AI_MODEL_EVENT_NAMES as _0x15b6c7}from'../../aicore/model/aiinteraction.js';function _0x493c(){const _0x50cbf3=['html','30AqYqJn','8332NzHhfz','hasError','171LoXJyf','replyCreated','fire','236uhFeOj','current-document','args','Current\x20document','push','delegate','getDocumentContext','userMessage','1697560mQrStw','1807968cdPANi','597swUGpD','content','656698lcaQWW','version','editor','replies','actionName','createReply','executeAction','22552rwLPbE','sendRequest','connector','TEXT','362990nSFGjC','executeCustomAction','model'];_0x493c=function(){return _0x50cbf3;};return _0x493c();}import{AIContextItemType as _0x16d737}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x55b4a3}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x12c9b8{[_0x598f55(0x159)];[_0x598f55(0x15b)];[_0x598f55(0x15e)];[_0x598f55(0x150)];[_0x598f55(0x155)];[_0x598f55(0x167)];[_0x598f55(0x16b)]=!0x1;constructor(_0x1481fb){const _0x2f9d23=_0x598f55;super(_0x1481fb),this[_0x2f9d23(0x159)]=_0x1481fb[_0x2f9d23(0x159)],this[_0x2f9d23(0x15b)]=_0x1481fb[_0x2f9d23(0x15b)],this[_0x2f9d23(0x15e)]=_0x1481fb[_0x2f9d23(0x15e)],this[_0x2f9d23(0x150)]=_0x1481fb[_0x2f9d23(0x150)],this[_0x2f9d23(0x155)]=_0x1481fb[_0x2f9d23(0x155)],this[_0x2f9d23(0x167)]=_0x1481fb[_0x2f9d23(0x167)];}async[_0x598f55(0x162)](){const _0x7fa786=_0x598f55;return this[_0x7fa786(0x15e)]?this[_0x7fa786(0x163)][_0x7fa786(0x160)]({'content':this[_0x7fa786(0x159)],'actionName':this[_0x7fa786(0x15e)],'args':this[_0x7fa786(0x150)]}):this[_0x7fa786(0x163)][_0x7fa786(0x166)]({'content':this[_0x7fa786(0x159)],'message':this[_0x7fa786(0x155)],'model':this[_0x7fa786(0x167)],'outputFormat':_0x7fa786(0x168)});}[_0x598f55(0x154)](){const _0x59c389=_0x598f55;return{'type':_0x16d737[_0x59c389(0x164)],'content':this[_0x59c389(0x159)],'version':this[_0x59c389(0x15b)],'label':_0x59c389(0x151),'uiId':_0x59c389(0x170)};}[_0x598f55(0x15f)](_0x137ebb){const _0x30b506=_0x598f55,_0x3e3d5a=new _0x55b4a3({'editor':this[_0x30b506(0x15c)],'documentContextContent':this[_0x30b506(0x159)],..._0x137ebb});return this[_0x30b506(0x15d)][_0x30b506(0x152)](_0x3e3d5a),_0x3e3d5a[_0x30b506(0x153)](..._0x15b6c7)['to'](this),this[_0x30b506(0x16e)](_0x30b506(0x16d),_0x3e3d5a),_0x3e3d5a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f3855=_0x4c48;(function(_0x5279e1,_0x177c31){const _0x18c032=_0x4c48,_0x36986d=_0x5279e1();while(!![]){try{const _0x5185fa=parseInt(_0x18c032(0x86))/0x1*(parseInt(_0x18c032(0x88))/0x2)+parseInt(_0x18c032(0x8f))/0x3*(parseInt(_0x18c032(0x9e))/0x4)+parseInt(_0x18c032(0x9b))/0x5+-parseInt(_0x18c032(0x9d))/0x6+parseInt(_0x18c032(0x89))/0x7+parseInt(_0x18c032(0x95))/0x8+-parseInt(_0x18c032(0x8a))/0x9;if(_0x5185fa===_0x177c31)break;else _0x36986d['push'](_0x36986d['shift']());}catch(_0x5c7ea1){_0x36986d['push'](_0x36986d['shift']());}}}(_0xba74,0x91794));import{AIReply as _0x360255}from'../../aicore/model/aireply.js';import{getAttribute as _0x362b1b}from'../../aicore/utils/htmlparser.js';function _0xba74(){const _0xa8e96=['added','_getDifferentChangeGroups','childNodes','removed','cloneNode','4198725vQHAEH','pop','4335474WYrknm','1994628TIpkBp','changeGroups','pending','updateChangeGroups','parsedMergedContent','documentContextContent','7saOgAV','value','292426DtNWKe','3985394EgZZtw','14846580wGnUDf','parsedContent','isDone','node','data-id','3PcdBre','map','new','children','modified','length','294592csIAxH'];_0xba74=function(){return _0xa8e96;};return _0xba74();}import{uid as _0x45dd37}from'ckeditor5/src/utils.js';function _0x4c48(_0xaceff0,_0x268509){const _0xba741c=_0xba74();return _0x4c48=function(_0x4c48a5,_0xcf103a){_0x4c48a5=_0x4c48a5-0x85;let _0xc9fddd=_0xba741c[_0x4c48a5];return _0xc9fddd;},_0x4c48(_0xaceff0,_0x268509);}import{diffArrays as _0x33405a}from'diff';export class AIActionsReply extends _0x360255{[_0x2f3855(0xa1)](){const _0xeec4f3=_0x2f3855;if(this[_0xeec4f3(0xa2)]=this[_0xeec4f3(0x8b)][_0xeec4f3(0x9a)](!0x0),0x0==this[_0xeec4f3(0xa2)][_0xeec4f3(0x98)][_0xeec4f3(0x94)])return void(this[_0xeec4f3(0x9f)]=[]);const _0x251459=this[_0xeec4f3(0x85)][_0xeec4f3(0x92)][_0xeec4f3(0x90)](_0x4c2eeb=>({'node':_0x4c2eeb,'id':_0x362b1b(_0x4c2eeb,_0xeec4f3(0x8e))})),_0xca5ccf=this[_0xeec4f3(0xa2)][_0xeec4f3(0x92)][_0xeec4f3(0x90)](_0xf9bf30=>({'node':_0xf9bf30,'id':_0x362b1b(_0xf9bf30,_0xeec4f3(0x8e))||_0x45dd37()})),_0x4c5a8a=_0x33405a(_0x251459,_0xca5ccf,{'comparator':(_0x4bb760,_0x148b52)=>_0x4bb760['id']==_0x148b52['id'],'oneChangePerToken':!0x0});if(!this[_0xeec4f3(0x8c)]){for(;_0x4c5a8a[_0xeec4f3(0x94)]&&_0x4c5a8a[_0x4c5a8a[_0xeec4f3(0x94)]-0x1][_0xeec4f3(0x99)];)_0x4c5a8a[_0xeec4f3(0x9c)]();}const _0x33f59f=_0x4c5a8a[_0xeec4f3(0x90)](_0x40a506=>{const _0x394bff=_0xeec4f3,_0x3e585d=_0x40a506[_0x394bff(0x96)]?_0x394bff(0x91):_0x40a506[_0x394bff(0x99)]?_0x394bff(0x99):_0x394bff(0x93);return{'node':_0x40a506[_0x394bff(0x87)][0x0][_0x394bff(0x8d)],'type':_0x3e585d,'id':_0x40a506[_0x394bff(0x87)][0x0]['id']};});this[_0xeec4f3(0x9f)]=[{'changes':_0x33f59f,'state':_0xeec4f3(0xa0),'index':0x0}];}[_0x2f3855(0x97)](_0x328596,_0x1c81bd){return _0x1c81bd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x70c23b=_0x23e0;(function(_0x25f1e9,_0x18dbd6){var _0xdbd6d4=_0x23e0,_0x12d4a1=_0x25f1e9();while(!![]){try{var _0x5aafe1=parseInt(_0xdbd6d4(0x149))/0x1+parseInt(_0xdbd6d4(0x143))/0x2*(-parseInt(_0xdbd6d4(0x14d))/0x3)+-parseInt(_0xdbd6d4(0x144))/0x4*(parseInt(_0xdbd6d4(0x147))/0x5)+parseInt(_0xdbd6d4(0x14b))/0x6+parseInt(_0xdbd6d4(0x153))/0x7*(parseInt(_0xdbd6d4(0x146))/0x8)+-parseInt(_0xdbd6d4(0x14f))/0x9*(parseInt(_0xdbd6d4(0x14a))/0xa)+-parseInt(_0xdbd6d4(0x152))/0xb;if(_0x5aafe1===_0x18dbd6)break;else _0x12d4a1['push'](_0x12d4a1['shift']());}catch(_0x967b30){_0x12d4a1['push'](_0x12d4a1['shift']());}}}(_0x5085,0xf1035));function _0x5085(){var _0x2aa858=['AIAdapter','17291457VfiJks','textAdapter','AIRequestError','2155626DhqivC','42CSKDlG','name','aiadapter-text-adapter-not-set','afterInit','1514nxdnyS','4pEkjhz','pluginName','2505040Vschwm','2247980JpAWFp','isOfficialPlugin','372057DZhaQZ','10gRdpKT','8100726tNzRwb','isPremiumPlugin','186McWMUw'];_0x5085=function(){return _0x2aa858;};return _0x5085();}import{Plugin as _0x187c2d}from'ckeditor5/src/core.js';function _0x23e0(_0x24698c,_0x2196a2){var _0x5085a9=_0x5085();return _0x23e0=function(_0x23e031,_0x56dc1c){_0x23e031=_0x23e031-0x140;var _0x3e6f16=_0x5085a9[_0x23e031];return _0x3e6f16;},_0x23e0(_0x24698c,_0x2196a2);}import{CKEditorError as _0x2be7b5}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x187c2d{static get[_0x70c23b(0x145)](){var _0x550ee3=_0x70c23b;return _0x550ee3(0x14e);}static get[_0x70c23b(0x148)](){return!0x0;}static get[_0x70c23b(0x14c)](){return!0x0;}[_0x70c23b(0x142)](){var _0x160a79=_0x70c23b;if(!this[_0x160a79(0x150)])throw new _0x2be7b5(_0x160a79(0x141),null);}}export class AIRequestError extends Error{constructor(_0x3259a9){var _0x28b96e=_0x70c23b;super(_0x3259a9),this[_0x28b96e(0x140)]=_0x28b96e(0x151);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dc098=_0x1c08;(function(_0x5417c0,_0x2c215b){const _0x38c38c=_0x1c08,_0x38cc4b=_0x5417c0();while(!![]){try{const _0x1f0de6=parseInt(_0x38c38c(0xf6))/0x1+parseInt(_0x38c38c(0x10b))/0x2*(-parseInt(_0x38c38c(0xf7))/0x3)+parseInt(_0x38c38c(0x10c))/0x4*(-parseInt(_0x38c38c(0xef))/0x5)+parseInt(_0x38c38c(0xec))/0x6+parseInt(_0x38c38c(0xf9))/0x7*(parseInt(_0x38c38c(0xed))/0x8)+-parseInt(_0x38c38c(0x107))/0x9*(-parseInt(_0x38c38c(0x104))/0xa)+parseInt(_0x38c38c(0xf1))/0xb;if(_0x1f0de6===_0x2c215b)break;else _0x38cc4b['push'](_0x38cc4b['shift']());}catch(_0x16f22f){_0x38cc4b['push'](_0x38cc4b['shift']());}}}(_0x2917,0xc8148));function _0x2917(){const _0x1d4ea6=['303060jXlCsg','error','AI_ERROR_GET_HEADERS','9KsjLib','application/json','get','aborted','2558oyPGCg','2227828haNUDj','abort','object','_prepareRequestHeaders','init','makeRequest','6398466jVICOw','592AZPvDh','sendRequest','10qQxNnG','catch','13202739eTEmAR','aitextadapter-send-request-failed','signal','assign','resolve','143108YpCUVM','1410jivVgE','reject','8939qNKMJU','name','plugins','AI_ERROR_GET_PARAMETERS','_prepareRequestParameters','locale','requires','editor','abortController','textAdapter','AbortError'];_0x2917=function(){return _0x1d4ea6;};return _0x2917();}import{Plugin as _0x3003ad}from'ckeditor5/src/core.js';import{CKEditorError as _0x162746}from'ckeditor5/src/utils.js';import{AIAdapter as _0x2427cd,AIRequestError as _0x25d4c6}from'./aiadapter.js';import{getTranslation as _0x1ca566}from'../utils/common-translations.js';function _0x1c08(_0x1611c0,_0x296cec){const _0x2917b8=_0x2917();return _0x1c08=function(_0x1c081b,_0x292f31){_0x1c081b=_0x1c081b-0xe7;let _0x162a5e=_0x2917b8[_0x1c081b];return _0x162a5e;},_0x1c08(_0x1611c0,_0x296cec);}export class AITextAdapter extends _0x3003ad{[_0x3dc098(0x101)];static get[_0x3dc098(0xff)](){return[_0x2427cd];}constructor(_0x5c5854){const _0xdd79de=_0x3dc098;super(_0x5c5854),this[_0xdd79de(0x101)]=new AbortController();}[_0x3dc098(0xea)](){const _0x496126=_0x3dc098;this[_0x496126(0x100)][_0x496126(0xfb)][_0x496126(0x109)](_0x2427cd)[_0x496126(0x102)]=this;}[_0x3dc098(0xe7)](){const _0x2dbdba=_0x3dc098;this[_0x2dbdba(0x101)][_0x2dbdba(0xf3)][_0x2dbdba(0x10a)]||(this[_0x2dbdba(0x101)][_0x2dbdba(0xe7)](),this[_0x2dbdba(0x101)]=new AbortController());}async[_0x3dc098(0xeb)](_0x32dc74){const _0x1cff46=_0x3dc098;return this[_0x1cff46(0xee)](_0x32dc74)[_0x1cff46(0xf0)](_0x44eb59=>{const _0x3653e5=_0x1cff46;if(_0x44eb59 instanceof _0x25d4c6)return Promise[_0x3653e5(0xf8)](_0x44eb59);if(_0x3653e5(0x103)==_0x44eb59[_0x3653e5(0xfa)])return Promise[_0x3653e5(0xf5)]();throw console[_0x3653e5(0x105)](_0x44eb59),new _0x162746(_0x3653e5(0xf2),null);});}async[_0x3dc098(0xe9)](_0x4bfd09,_0x454a45){const _0xf2e48d=_0x3dc098,_0x405440=this[_0xf2e48d(0x100)][_0xf2e48d(0xfe)],_0x5dac72={'Content-Type':_0xf2e48d(0x108)};if(_0xf2e48d(0xe8)==typeof _0x4bfd09)Object[_0xf2e48d(0xf4)](_0x5dac72,_0x4bfd09);else{if(_0x4bfd09)try{const _0x479117=await _0x4bfd09(_0x454a45);Object[_0xf2e48d(0xf4)](_0x5dac72,_0x479117);}catch{return Promise[_0xf2e48d(0xf8)](new _0x25d4c6(_0x1ca566(_0x405440,_0xf2e48d(0x106))));}}return _0x5dac72;}async[_0x3dc098(0xfd)](_0x4b3fba,_0x20b199){const _0x3de5ca=_0x3dc098,_0x2f125f=this[_0x3de5ca(0x100)][_0x3de5ca(0xfe)];if(_0x3de5ca(0xe8)==typeof _0x4b3fba)return _0x4b3fba;try{return await _0x4b3fba(_0x20b199);}catch{return Promise[_0x3de5ca(0xf8)](new _0x25d4c6(_0x1ca566(_0x2f125f,_0x3de5ca(0xfc))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c934c=_0x1373;function _0x1373(_0x309d3e,_0x30de58){const _0x5d42b2=_0x5d42();return _0x1373=function(_0x137317,_0x3a3c35){_0x137317=_0x137317-0x10c;let _0x4be7e6=_0x5d42b2[_0x137317];return _0x4be7e6;},_0x1373(_0x309d3e,_0x30de58);}(function(_0x2177bc,_0x1b7b1b){const _0x4fc29a=_0x1373,_0x396c7f=_0x2177bc();while(!![]){try{const _0x27142b=-parseInt(_0x4fc29a(0x14a))/0x1+parseInt(_0x4fc29a(0x10d))/0x2+parseInt(_0x4fc29a(0x12a))/0x3+-parseInt(_0x4fc29a(0x124))/0x4*(parseInt(_0x4fc29a(0x158))/0x5)+parseInt(_0x4fc29a(0x110))/0x6*(-parseInt(_0x4fc29a(0x15a))/0x7)+-parseInt(_0x4fc29a(0x10e))/0x8*(-parseInt(_0x4fc29a(0x117))/0x9)+parseInt(_0x4fc29a(0x135))/0xa*(-parseInt(_0x4fc29a(0x12c))/0xb);if(_0x27142b===_0x1b7b1b)break;else _0x396c7f['push'](_0x396c7f['shift']());}catch(_0x342d9a){_0x396c7f['push'](_0x396c7f['shift']());}}}(_0x5d42,0x8026d));function _0x5d42(){const _0x544ddf=['body','length','_getGeneratedText','_requestParameters','cohere.command','filter','application/json','_processAWSRequest','editor','split','AWSTextAdapter','ai.assistant.adapter.aws.requestHeaders','meta.llama','<<SYS>>\x0a','generations','_requestHeaders','ai21.j2','anthropic.claude','\x0a<</SYS>>\x0a[INST]\x0a','415434xksWHj','\x0a\x0aAssistant:','get','pluginName','resolve','map','ai.assistant.adapter.aws.requestParameters','define','sendRequest','signal','chunk','abortController','read','bytes','772130ZEDzFa','_processProxyRequest','35PKgCex','getModelFamily','_readAsyncIterableResponse','_readStreamableResponse','1767524gCzRqL','3370568nKbHYm','generation','174678gaWJov','preparePrompt','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','_apiUrl','json','parse','18DjkEkg','Human:\x0a','test','ai.assistant.adapter.aws.apiUrl','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.','utf-8','anthropic.claude-v2','text','getReader','completion','Instruction:\x0a','locale','data','12AURWyD','bedrock-2023-05-31','AI_ERROR_UNSUPPORTED_MODEL','ai.assistant.adapter.aws.bedrockClientConfig','stringify','send','3123183PQDNFd','_readStaticResponse','11aOahGt','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.','_prepareRequestHeaders','_bedrockClientConfig','config','completions','_prepareRequestParameters','decode','join','12182790pgVVCQ','\x0a[/INST]'];_0x5d42=function(){return _0x544ddf;};return _0x5d42();}import{AITextAdapter as _0x1e0381}from'./aitextadapter.js';import{AIRequestError as _0x13ca1f}from'./aiadapter.js';import{BedrockRuntimeClient as _0x332816,InvokeModelCommand as _0x4b651e,InvokeModelWithResponseStreamCommand as _0x1d078f}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x537e09}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x1e0381{[_0x2c934c(0x114)];[_0x2c934c(0x146)];[_0x2c934c(0x12f)];[_0x2c934c(0x13a)];static get[_0x2c934c(0x14d)](){const _0x3a2434=_0x2c934c;return _0x3a2434(0x141);}constructor(_0x520236){const _0x2fa5ff=_0x2c934c;super(_0x520236),_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x150))||_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x151)](_0x2fa5ff(0x150),{'model':_0x2fa5ff(0x11d),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x2fa5ff(0x125),'stream':!0x0}),this[_0x2fa5ff(0x114)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x11a)),this[_0x2fa5ff(0x12f)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x127)),this[_0x2fa5ff(0x146)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x142)),this[_0x2fa5ff(0x13a)]=_0x520236[_0x2fa5ff(0x130)][_0x2fa5ff(0x14c)](_0x2fa5ff(0x150));}async[_0x2c934c(0x152)]({query:_0x23807b,context:_0x17d635,onData:_0x2093bc,actionId:_0x2f7954}){const _0x114e38=_0x2c934c,{model:_0xf31bd2,stream:_0x876596,..._0x5d00e4}=await this[_0x114e38(0x132)](this[_0x114e38(0x13a)],_0x2f7954),_0x2c2f7f={'prompt':await this[_0x114e38(0x111)](_0x23807b,_0x17d635,_0xf31bd2,_0x2f7954),..._0x5d00e4};this[_0x114e38(0x114)]?await this[_0x114e38(0x159)](_0x2c2f7f,_0xf31bd2,_0x876596,_0x2093bc,_0x2f7954):await this[_0x114e38(0x13e)](_0x2c2f7f,_0xf31bd2,_0x876596,_0x2093bc);}async[_0x2c934c(0x111)](_0x4244cc,_0x21156e,_0x1bff98,_0x5460a5){const _0x397e74=_0x2c934c;let _0x5a77d4,_0x2b00fb;return _0x21156e?(_0x5a77d4=_0x397e74(0x11b),_0x2b00fb=_0x397e74(0x121)+_0x4244cc+_0x397e74(0x112)+_0x21156e):(_0x5a77d4=_0x397e74(0x12d),_0x2b00fb=_0x4244cc),_0x397e74(0x143)==this[_0x397e74(0x15b)](_0x1bff98)?_0x397e74(0x144)+_0x5a77d4+_0x397e74(0x149)+_0x2b00fb+_0x397e74(0x136):_0x397e74(0x118)+_0x5a77d4+'\x0a'+_0x2b00fb+_0x397e74(0x14b);}[_0x2c934c(0x15b)](_0x46ccbe){const _0x5438c8=_0x2c934c;if(/^anthropic\.claude/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x148);if(/^ai21\.j2/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x147);if(/^cohere\.command/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x13b);if(/^meta\.llama/[_0x5438c8(0x119)](_0x46ccbe))return _0x5438c8(0x143);throw new _0x13ca1f(_0x537e09(this[_0x5438c8(0x13f)][_0x5438c8(0x122)],_0x5438c8(0x126),_0x46ccbe));}async[_0x2c934c(0x159)](_0x43f4a8,_0x4bfb84,_0x307a24,_0x1279e3,_0x1ebb7f){const _0x53e407=_0x2c934c,_0x4c8fcf={'method':_0x53e407(0x113),'headers':await this[_0x53e407(0x12e)](this[_0x53e407(0x146)],_0x1ebb7f),'body':JSON[_0x53e407(0x128)]({..._0x43f4a8,'model':_0x4bfb84,'stream':_0x307a24}),'signal':this[_0x53e407(0x155)][_0x53e407(0x153)]},_0x3449c0=await fetch(this[_0x53e407(0x114)],_0x4c8fcf);_0x307a24?await this[_0x53e407(0x10c)](_0x3449c0,_0x4bfb84,_0x1279e3):await this[_0x53e407(0x12b)](_0x3449c0,_0x4bfb84,_0x1279e3);}async[_0x2c934c(0x13e)](_0x156432,_0x3ddd02,_0xab2c0a,_0x1b91ae){const _0x3c494a=_0x2c934c,_0x3cbc7b=new _0x332816(this[_0x3c494a(0x12f)]),_0x159c92={'body':JSON[_0x3c494a(0x128)](_0x156432),'contentType':_0x3c494a(0x13d),'accept':_0x3c494a(0x13d),'modelId':_0x3ddd02};let _0x2b017f;if(_0xab2c0a){const _0x22710a=new _0x1d078f(_0x159c92);_0x2b017f=await _0x3cbc7b[_0x3c494a(0x129)](_0x22710a,{'abortSignal':this[_0x3c494a(0x155)][_0x3c494a(0x153)]}),await this[_0x3c494a(0x15c)](_0x2b017f,_0x3ddd02,_0x1b91ae);}else{const _0x1e9c8d=new _0x4b651e(_0x159c92);_0x2b017f=await _0x3cbc7b[_0x3c494a(0x129)](_0x1e9c8d,{'abortSignal':this[_0x3c494a(0x155)][_0x3c494a(0x153)]}),await this[_0x3c494a(0x12b)](_0x2b017f,_0x3ddd02,_0x1b91ae);}}async[_0x2c934c(0x15c)](_0x219647,_0x5d33a7,_0x11ea33){const _0x91d55b=_0x2c934c,_0x31a5ee=_0x219647[_0x91d55b(0x137)],_0x5d071e=new TextDecoder(_0x91d55b(0x11c));let _0x3c3d8d='';for await(const _0x129d6e of _0x31a5ee)if(_0x129d6e[_0x91d55b(0x154)]){const _0x41b086=_0x5d071e[_0x91d55b(0x133)](_0x129d6e[_0x91d55b(0x154)][_0x91d55b(0x157)]),_0x3f2488=JSON[_0x91d55b(0x116)](_0x41b086);_0x3c3d8d+=this[_0x91d55b(0x139)](_0x3f2488,_0x5d33a7),_0x11ea33(_0x3c3d8d);}return Promise[_0x91d55b(0x14e)]();}async[_0x2c934c(0x10c)](_0x195c44,_0x335538,_0x260c1a){const _0x3d9ee4=_0x2c934c,_0x4b981a=_0x195c44[_0x3d9ee4(0x137)],_0x324ccd=new TextDecoder(_0x3d9ee4(0x11c)),_0x2cfb71=_0x4b981a[_0x3d9ee4(0x11f)]();let _0x3b3c25='',_0x208e5c='',_0x33fbae=!0x1;for(;!_0x33fbae;){const {done:_0x2370a3,value:_0xaca846}=await _0x2cfb71[_0x3d9ee4(0x156)]();if(_0x33fbae=_0x2370a3,_0x33fbae)break;const _0x4986ed=(_0x3b3c25+_0x324ccd[_0x3d9ee4(0x133)](_0xaca846))[_0x3d9ee4(0x140)]('\x0a')[_0x3d9ee4(0x14f)](_0x305cf3=>{const _0x4d4ff6=_0x3d9ee4;try{return _0x3b3c25='',JSON[_0x4d4ff6(0x116)](_0x305cf3);}catch{return _0x3b3c25=_0x305cf3,null;}})[_0x3d9ee4(0x13c)](_0x3574a1=>null!==_0x3574a1);_0x4986ed[_0x3d9ee4(0x138)]&&(_0x208e5c+=_0x4986ed[_0x3d9ee4(0x14f)](_0x2ff533=>this[_0x3d9ee4(0x139)](_0x2ff533,_0x335538))[_0x3d9ee4(0x134)](''),_0x260c1a(_0x208e5c));}return Promise[_0x3d9ee4(0x14e)]();}async[_0x2c934c(0x12b)](_0x48bfe0,_0x453d39,_0x48ca14){const _0x17485c=_0x2c934c;let _0x4a5a24;return _0x4a5a24=_0x48bfe0 instanceof Response?await _0x48bfe0[_0x17485c(0x115)]():JSON[_0x17485c(0x116)](new TextDecoder(_0x17485c(0x11c))[_0x17485c(0x133)](_0x48bfe0[_0x17485c(0x137)])),(_0x48ca14(this[_0x17485c(0x139)](_0x4a5a24,_0x453d39)),Promise[_0x17485c(0x14e)]());}[_0x2c934c(0x139)](_0x551e2d,_0x1901d8){const _0x121edc=_0x2c934c;switch(this[_0x121edc(0x15b)](_0x1901d8)){case _0x121edc(0x148):return _0x551e2d[_0x121edc(0x120)];case _0x121edc(0x147):return _0x551e2d[_0x121edc(0x131)][0x0][_0x121edc(0x123)][_0x121edc(0x11e)];case _0x121edc(0x13b):return _0x551e2d[_0x121edc(0x145)][0x0][_0x121edc(0x11e)];case _0x121edc(0x143):return _0x551e2d[_0x121edc(0x10f)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2819cf=_0x33ac;function _0xad4a(){const _0x5116fb=['OpenAITextAdapter','3879495fFmAQK','read','_apiUrl','reject','1630wigzli','system','delta','includes','gpt-4o','content','[DONE]','abortController','length','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.','message','Instruction:\x0a','getReader','ai.assistant.adapter.openAI.requestHeaders','_readStaticResponse','ai.assistant.adapter.openAI.requestParameters','filter','_isBufferIncomplete','join','937026NETtKU','split','_requestHeaders','get','user','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.','AI_ERROR_CONTEXT_LENGTH','map','Moderation','8uHkxwV','prepareMessages','1723upYsbt','decode','json','signal','37032uCQhTl','_cleanUpData','text','ai.assistant.adapter.openAI.apiUrl','6875MJgjyl','define','2212FSDWNV','body','sendRequest','https://api.openai.com/v1/chat/completions','2820587bdlhii','parse','1238hChVES','locale','resolve','config','_prepareRequestHeaders','AI_ERROR_MODERATION','choices','replace','_readStreamableResponse','_requestParameters','stream','49310Bqymsw','_prepareRequestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','POST','editor','context_length_exceeded','1341OqIxqN','data:\x20','pluginName','stringify'];_0xad4a=function(){return _0x5116fb;};return _0xad4a();}(function(_0x4a12cf,_0x2acabd){const _0x3a8c7e=_0x33ac,_0x4012e4=_0x4a12cf();while(!![]){try{const _0x1253e3=-parseInt(_0x3a8c7e(0x1cb))/0x1*(parseInt(_0x3a8c7e(0x1db))/0x2)+parseInt(_0x3a8c7e(0x1f1))/0x3+-parseInt(_0x3a8c7e(0x1d5))/0x4*(parseInt(_0x3a8c7e(0x1f5))/0x5)+-parseInt(_0x3a8c7e(0x208))/0x6+parseInt(_0x3a8c7e(0x1d9))/0x7*(-parseInt(_0x3a8c7e(0x1c9))/0x8)+-parseInt(_0x3a8c7e(0x1ec))/0x9*(parseInt(_0x3a8c7e(0x1e6))/0xa)+-parseInt(_0x3a8c7e(0x1d3))/0xb*(-parseInt(_0x3a8c7e(0x1cf))/0xc);if(_0x1253e3===_0x2acabd)break;else _0x4012e4['push'](_0x4012e4['shift']());}catch(_0x1b09c0){_0x4012e4['push'](_0x4012e4['shift']());}}}(_0xad4a,0xa6535));function _0x33ac(_0x140554,_0x6108da){const _0xad4a9d=_0xad4a();return _0x33ac=function(_0x33aca8,_0x1c9c25){_0x33aca8=_0x33aca8-0x1c6;let _0x598833=_0xad4a9d[_0x33aca8];return _0x598833;},_0x33ac(_0x140554,_0x6108da);}import{AITextAdapter as _0x2f838f}from'./aitextadapter.js';import{AIRequestError as _0x2e93a7}from'./aiadapter.js';import{getTranslation as _0xf92091}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x2f838f{[_0x2819cf(0x1f3)];[_0x2819cf(0x20a)];[_0x2819cf(0x1e4)];static get[_0x2819cf(0x1ee)](){const _0x320cd2=_0x2819cf;return _0x320cd2(0x1f0);}constructor(_0x1c30c2){const _0x5d1bf5=_0x2819cf;super(_0x1c30c2),_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x1d4)](_0x5d1bf5(0x1d2),_0x5d1bf5(0x1d8)),_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x204))||_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x1d4)](_0x5d1bf5(0x204),{'model':_0x5d1bf5(0x1f9),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x5d1bf5(0x1f3)]=_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x1d2)),this[_0x5d1bf5(0x20a)]=_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x202))||{},this[_0x5d1bf5(0x1e4)]=_0x1c30c2[_0x5d1bf5(0x1de)][_0x5d1bf5(0x20b)](_0x5d1bf5(0x204));}async[_0x2819cf(0x1d7)]({query:_0x225c69,context:_0x2fab68,onData:_0x29ad85,actionId:_0x1bfe72}){const _0x1e0304=_0x2819cf,_0x279e79=this[_0x1e0304(0x1ea)][_0x1e0304(0x1dc)],_0x1e591d=await this[_0x1e0304(0x1ca)](_0x225c69,_0x2fab68,_0x1bfe72),_0x14dde5=await this[_0x1e0304(0x1df)](this[_0x1e0304(0x20a)],_0x1bfe72),_0xb1a8a0=await this[_0x1e0304(0x1e7)](this[_0x1e0304(0x1e4)],_0x1bfe72),_0x1f3bfc={'messages':_0x1e591d,..._0xb1a8a0},_0x11e541={'method':_0x1e0304(0x1e9),'headers':_0x14dde5,'body':JSON[_0x1e0304(0x1ef)](_0x1f3bfc),'signal':this[_0x1e0304(0x1fc)][_0x1e0304(0x1ce)]},_0xc925e8=await fetch(this[_0x1e0304(0x1f3)],_0x11e541);if(_0xc925e8['ok'])return _0xb1a8a0[_0x1e0304(0x1e5)]?await this[_0x1e0304(0x1e3)](_0xc925e8,_0x29ad85):await this[_0x1e0304(0x203)](_0xc925e8,_0x29ad85),Promise[_0x1e0304(0x1dd)]();{const _0xe0c964=await _0xc925e8[_0x1e0304(0x1d1)]();return _0xe0c964[_0x1e0304(0x1f8)](_0x1e0304(0x1eb))?Promise[_0x1e0304(0x1f4)](new _0x2e93a7(_0xf92091(_0x279e79,_0x1e0304(0x1c6)))):_0xe0c964[_0x1e0304(0x1f8)](_0x1e0304(0x1c8))?Promise[_0x1e0304(0x1f4)](new _0x2e93a7(_0xf92091(_0x279e79,_0x1e0304(0x1e0)))):Promise[_0x1e0304(0x1f4)](new Error(_0xe0c964));}}async[_0x2819cf(0x1ca)](_0x444cae,_0x25ef11,_0x53c2f3){const _0x30586d=_0x2819cf;let _0x5bbbbf,_0x278994;return _0x25ef11?(_0x5bbbbf=_0x30586d(0x1fe),_0x278994=_0x30586d(0x200)+_0x444cae+_0x30586d(0x1e8)+_0x25ef11):(_0x5bbbbf=_0x30586d(0x20d),_0x278994=_0x444cae),[{'role':_0x30586d(0x1f6),'content':_0x5bbbbf},{'role':_0x30586d(0x20c),'content':_0x278994}];}async[_0x2819cf(0x1e3)](_0x48ea14,_0x3fd328){const _0x19a9b3=_0x2819cf,_0x2720ba=_0x48ea14[_0x19a9b3(0x1d6)][_0x19a9b3(0x201)](),_0x241ca4=new TextDecoder();let _0x40327f='',_0x50e467='',_0xbd696c='',_0x58d429=!0x1;for(;!_0x58d429;){const {done:_0x470b97,value:_0x1cdb21}=await _0x2720ba[_0x19a9b3(0x1f2)](),_0x285d37=_0x40327f+_0x241ca4[_0x19a9b3(0x1cc)](_0x1cdb21);let _0x191b95='';_0x58d429=_0x470b97;try{_0x191b95=this[_0x19a9b3(0x1d0)](_0x285d37),_0x40327f='';}catch{_0x40327f=_0x285d37;continue;}_0x50e467+=_0x191b95,!_0x58d429&&this[_0x19a9b3(0x206)](_0x50e467)||_0x50e467&&(_0xbd696c+=_0x50e467,_0x50e467='',_0x3fd328(_0xbd696c));}return Promise[_0x19a9b3(0x1dd)]();}async[_0x2819cf(0x203)](_0x42968c,_0x5b9fbe){const _0x400717=_0x2819cf;return _0x5b9fbe((await _0x42968c[_0x400717(0x1cd)]())[_0x400717(0x1e1)][0x0][_0x400717(0x1ff)][_0x400717(0x1fa)]),Promise[_0x400717(0x1dd)]();}[_0x2819cf(0x206)](_0x580c5a){const _0x4e82fb=_0x2819cf,_0x1bf108=_0x580c5a[_0x4e82fb(0x209)]('<')[_0x4e82fb(0x1fd)]!==_0x580c5a[_0x4e82fb(0x209)]('>')[_0x4e82fb(0x1fd)],_0x54dedc=_0x580c5a[_0x4e82fb(0x1fd)]<0x1e;return _0x1bf108&&_0x54dedc;}[_0x2819cf(0x1d0)](_0x276dba){const _0x2a691f=_0x2819cf;return _0x276dba[_0x2a691f(0x209)](/\n(?![^{]*\})/g)[_0x2a691f(0x1c7)](_0x1ed915=>_0x1ed915[_0x2a691f(0x1e2)](_0x2a691f(0x1ed),''))[_0x2a691f(0x205)](_0x2b404d=>_0x2b404d&&_0x2b404d[_0x2a691f(0x1fd)]>0x0&&_0x2a691f(0x1fb)!==_0x2b404d)[_0x2a691f(0x1c7)](_0x5e4baa=>{const _0x23e7ce=_0x2a691f,{choices:_0x335cd7}=JSON[_0x23e7ce(0x1da)](_0x5e4baa);if(_0x335cd7[0x0]?.[_0x23e7ce(0x1f7)]?.[_0x23e7ce(0x1fa)])return _0x335cd7[0x0][_0x23e7ce(0x1f7)][_0x23e7ce(0x1fa)];})[_0x2a691f(0x205)](_0x4df4af=>_0x4df4af)[_0x2a691f(0x207)]('');}}
|