@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/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/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +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 +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- 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.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.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/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.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x204de0=_0xd2db;(function(_0x212b83,_0x17768f){const _0x3eac94=_0xd2db,_0x35c9c5=_0x212b83();while(!![]){try{const _0x2d5fde=parseInt(_0x3eac94(0x11f))/0x1+-parseInt(_0x3eac94(0x15f))/0x2*(parseInt(_0x3eac94(0x169))/0x3)+parseInt(_0x3eac94(0x140))/0x4*(parseInt(_0x3eac94(0xdc))/0x5)+parseInt(_0x3eac94(0x19c))/0x6+-parseInt(_0x3eac94(0x151))/0x7+parseInt(_0x3eac94(0x16d))/0x8+-parseInt(_0x3eac94(0x117))/0x9*(parseInt(_0x3eac94(0x10d))/0xa);if(_0x2d5fde===_0x17768f)break;else _0x35c9c5['push'](_0x35c9c5['shift']());}catch(_0x2a9cf5){_0x35c9c5['push'](_0x35c9c5['shift']());}}}(_0x4d38,0xbcfa1));import{Plugin as _0xf1ee02}from'ckeditor5/src/core.js';import{AIConnector as _0x2fb014}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x5a1593}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3f94d0,ButtonView as _0x28b59a,ViewCollection as _0x2e9255,View as _0x52f630}from'ckeditor5/src/ui.js';import{AIEditing as _0x1e3f1c}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4b1f75}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x59200e,first as _0x21bb81}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x215182,IconRefresh as _0x146f8c,IconNextArrow as _0x40047d,IconPreviousArrow as _0x18f19d,IconShowChangesOff as _0x35c373}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x10bdba}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0xa999dc}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x3b796d}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x164d47}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x4b0301}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x4b0b4f,getOperationsFromReply as _0x1d40d6}from'../aicore/utils/getoperationsfromreply.js';function _0xd2db(_0x1852d1,_0x460c09){const _0x4d3856=_0x4d38();return _0xd2db=function(_0xd2dbfd,_0x2c38f0){_0xd2dbfd=_0xd2dbfd-0xc1;let _0x3f5266=_0x4d3856[_0xd2dbfd];return _0x3f5266;},_0xd2db(_0x1852d1,_0x460c09);}import{ModelDocumentFragment as _0x2ff68e,ModelRange as _0x1f620b,ModelPosition as _0x27165c,_DetachOperation as _0x3c364c,transformOperationSets as _0xc735fa}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4d78ed}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';function _0x4d38(){const _0x280b8a=['toolbar','getSelectedTableCells','418235qmIoOO','setTemplate','toggleSuggestionDisplayMode','isPremiumPlugin','isEnabled','getSelectedContent','hideLoader','_displayInteractionAtIndex','path','_navigateToPrevious','ai-request-aborted','howMany','_stopInteraction','requires','getChild','actionName','getChildAtOffset','startAutoScroll','AIActions','Error\x20refreshing\x20interaction:','ai-no-track-changes','icon','element','_wrapWithCommonAncestors','selection','remove','isCollapsed','showError','clearErrorState','_promiseQueue','bind','_anchorOperation','setErrorState','_clearInteractionHistory','error','pending','history','stickiness','_isNavigationNextButtonInView','editor','_navigationPreviousButton','addOperation','_isNavigationCounterInView','_balloonShowDiff','Attribute','AIConnector','_applyOperationsAsSuggestions','getCommonAncestor','push','110iTErye','setChangeGroupState','TrackChanges','interactionFinished','upsertCustomAIActionRating','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_currentInteractionIndex','rejected','executeAction','static','1703889daWgwj','span','map','aiBalloon','_clone','filter','replyContentUpdated','slice','1299685XBGWDB','get','setLoading','baseVersion','split','_aiConnector','startsWith','showChangesButton','random','type','streaming','isLoading','pluginName','set','setSelection','hasError','ck-ai-navigation-button\x20ck-ai-previous-button','focus','_getExecuteDataInTable','indexOf','isOfficialPlugin','_refreshInteraction','_interactions','_children','getAncestors','parent','length','Error\x20updating\x20content\x20during\x20navigation:','add','_clearSuggestionContent','schema','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','change','44ceLBhq','merge','hideError','processor','rename','bodyView','replies','state','_appendChild','miniToolbarView','AI_ACTIONS_TRY_AGAIN','getSelectionAsFragment','getRoot','ck-ai-interaction-counter','toData','changeGroups','has','1273622csRJrx','accepted','getLimitElement','enqueue','isBusy','catch','first','TrackChangesEditing','_getExecuteDataRegular','start','getSelectedBlocks','_navigationCounter','createPositionAfter','applySuggestion','789040QumAbm','insert','queueEmptyPromise','stopListening','1/1','TableSelection','execute','end','_applyChanges','range','3JjjBqy','_executeAction','_filterOperationsOutsideRange','createRange','5216232jVnlby','_customViews','forEach','removeNavigationItem','clearLoading','createPositionAt','dialogClosed','signal','getFirstRange','_interaction','actionCallId','ck-ai-custom-action-button','listenTo','areChangesVisible','nextSibling','_navigationNextButton','version','sourcePosition','root','AI_ACTIONS_PREVIOUS_INTERACTION','upsertAIActionRating','abort','insertSuggestion','nodeAfter','document','_execute','operationsA','isDocumentOperation','documentContextContent','getDocumentContext','updateContent','_setErrorState','getOperations','applyOperation','replyCreated','addNavigationItem','stopInteraction','close','_clearErrorState','_isAbortError','stopAutoScroll','AI_ACTIONS_NEXT_INTERACTION','_isNavigationPreviousButtonInView','batch','position','hasPendingParts','move','3367290wSnFSj','_navigateToNext','stop','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','config','_clearLoadingState','message','open','documentFragment','selectionRemoved','$graveyard','AI_ACTIONS_GENERIC_ERROR','textContent','createPositionBefore','_setupCustomViews','showLoader','getRanges','ck-ai-navigation-button\x20ck-ai-next-button','replyChangeGroupStateUpdated','_setLoadingState','modelToViewWithIds','ai.availableReplyActions','includes','clone','_disableCustomViews','_interactionParams','AIBalloon','Error\x20updating\x20content\x20in\x20replyCreated:','data','rootName','mainView','reinsert','plugins','model','_createInteraction','_updateNavigationUI','locale','balloonView'];_0x4d38=function(){return _0x280b8a;};return _0x4d38();}export class AIActions extends _0xf1ee02{static get[_0x204de0(0xe9)](){return[_0x2fb014,_0x3f94d0,_0x1e3f1c,_0x10bdba,_0x4b0301];}static get[_0x204de0(0x12b)](){const _0x4d40fa=_0x204de0;return _0x4d40fa(0xee);}static get[_0x204de0(0x133)](){return!0x0;}static get[_0x204de0(0xdf)](){return!0x0;}[_0x204de0(0x124)];[_0x204de0(0x135)]=[];[_0x204de0(0x113)]=0x0;[_0x204de0(0xcd)];[_0x204de0(0x107)]=!0x1;[_0x204de0(0x16e)]=new _0x2e9255();[_0x204de0(0x104)];[_0x204de0(0x15c)];[_0x204de0(0x106)]=!0x1;[_0x204de0(0x17c)];[_0x204de0(0x197)]=!0x1;[_0x204de0(0x102)]=!0x1;[_0x204de0(0xf9)];get[_0x204de0(0x176)](){const _0x555c9f=_0x204de0;return this[_0x555c9f(0x135)][this[_0x555c9f(0x135)][_0x555c9f(0x139)]-0x1];}constructor(_0x2569db){const _0x5763c0=_0x204de0;super(_0x2569db),this[_0x5763c0(0x124)]=this[_0x5763c0(0x103)][_0x5763c0(0xd4)][_0x5763c0(0x120)](_0x5763c0(0x109)),this[_0x5763c0(0x12c)](_0x5763c0(0x155),!0x1),this[_0x5763c0(0xf9)]=new _0xa999dc(),this[_0x5763c0(0xc2)]();}[_0x204de0(0x191)](){const _0x17129d=_0x204de0;this[_0x17129d(0xe8)]();}async[_0x204de0(0x115)](_0x5ed8e6,_0x2211f5,_0x8780b9){const _0x48f9cd=_0x204de0;if(this[_0x48f9cd(0x103)][_0x48f9cd(0xd4)][_0x48f9cd(0x150)](_0x48f9cd(0x164))){if(this[_0x48f9cd(0x103)][_0x48f9cd(0xd4)][_0x48f9cd(0x120)](_0x48f9cd(0x164))[_0x48f9cd(0xdb)]()){const {modelFragment:_0x33706b,anchorData:_0x144740}=this[_0x48f9cd(0x131)]();return this[_0x48f9cd(0x16a)](_0x5ed8e6,_0x33706b,_0x144740,_0x2211f5,_0x8780b9);}}const {modelFragment:_0x1f3df6,anchorData:_0x1b4373}=this[_0x48f9cd(0x159)]();return this[_0x48f9cd(0x16a)](_0x5ed8e6,_0x1f3df6,_0x1b4373,_0x2211f5,_0x8780b9);}[_0x204de0(0x159)](){const _0x9e6a5f=_0x204de0,_0x21761e=this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0x185)][_0x9e6a5f(0xf4)];if(_0x21761e[_0x9e6a5f(0xf6)]){const _0x243a96=_0x21bb81(_0x21761e[_0x9e6a5f(0x15b)]())||this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0x13d)][_0x9e6a5f(0x153)](_0x21761e);this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0x13f)](_0x4af689=>{const _0x3f2fa5=_0x9e6a5f;_0x4af689[_0x3f2fa5(0x12d)](_0x243a96,'in');});}const _0x1ee776=_0x21761e[_0x9e6a5f(0x175)](),_0x91645f=this[_0x9e6a5f(0xf3)](this[_0x9e6a5f(0x103)][_0x9e6a5f(0xd5)][_0x9e6a5f(0xe1)](_0x21761e),_0x1ee776[_0x9e6a5f(0x15a)],_0x1ee776[_0x9e6a5f(0x166)]),_0x36054d=_0x21761e[_0x9e6a5f(0x175)]()[_0x9e6a5f(0x15a)],_0x5b5b73=new Map();let _0x2d72f3=_0x91645f;for(let _0x11ca0e=0x0;_0x11ca0e<_0x36054d[_0x9e6a5f(0xe4)][_0x9e6a5f(0x139)];_0x11ca0e++)_0x5b5b73[_0x9e6a5f(0x12c)](_0x2d72f3,_0x36054d[_0x9e6a5f(0xe4)][_0x11ca0e]),_0x2d72f3=_0x2d72f3[_0x9e6a5f(0xea)](0x0);return{'modelFragment':_0x91645f,'anchorData':_0x5b5b73};}[_0x204de0(0x131)](){const _0x26b77a=_0x204de0,_0x2b400f=this[_0x26b77a(0x103)][_0x26b77a(0xd5)][_0x26b77a(0x185)][_0x26b77a(0xf4)],_0x4ab393=this[_0x26b77a(0x103)][_0x26b77a(0xd4)][_0x26b77a(0x120)](_0x26b77a(0x164))[_0x26b77a(0x14b)](),_0xfbb624=_0x2b400f[_0x26b77a(0x175)]()[_0x26b77a(0x15a)][_0x26b77a(0x138)][_0x26b77a(0x138)],_0x11ce5e=this[_0x26b77a(0xf3)](_0x4ab393,this[_0x26b77a(0x103)][_0x26b77a(0xd5)][_0x26b77a(0xc1)](_0xfbb624),this[_0x26b77a(0x103)][_0x26b77a(0xd5)][_0x26b77a(0x15d)](_0xfbb624)),_0xb8906d=_0x2b400f[_0x26b77a(0x175)]()[_0x26b77a(0x15a)],_0x523406=new Map();let _0x1f1efd=_0x11ce5e;for(let _0x31151a=0x0;_0x31151a<_0xb8906d[_0x26b77a(0xe4)][_0x26b77a(0x139)];_0x31151a++)if(_0x523406[_0x26b77a(0x12c)](_0x1f1efd,_0xb8906d[_0x26b77a(0xe4)][_0x31151a]),_0x31151a<_0xb8906d[_0x26b77a(0xe4)][_0x26b77a(0x139)]-0x1)_0x1f1efd=_0x1f1efd[_0x26b77a(0xea)](0x0);else{let _0x2589e3=_0x1f1efd[_0x26b77a(0x17b)];for(;_0x2589e3;)_0x523406[_0x26b77a(0x12c)](_0x2589e3,_0xb8906d[_0x26b77a(0xe4)][_0x31151a]),_0x2589e3=_0x2589e3[_0x26b77a(0x17b)];}return{'modelFragment':_0x11ce5e,'anchorData':_0x523406};}[_0x204de0(0x16a)](_0x7d8caa,_0x187360,_0xd611da,_0x29b096,_0x4d8213){const _0x303c48=_0x204de0,_0x38ffb3=this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x120)](_0x1e3f1c),_0x11903a=this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x120)](_0x10bdba),_0x3cf54e=this[_0x303c48(0x103)][_0x303c48(0xd5)][_0x303c48(0x185)][_0x303c48(0xf4)],_0x30c902=_0x38ffb3[_0x303c48(0xc8)](_0x187360),_0x1c7e74=this[_0x303c48(0x103)][_0x303c48(0xd0)][_0x303c48(0x143)][_0x303c48(0x14e)](_0x30c902),_0x3a8f43=this[_0x303c48(0x103)][_0x303c48(0xd5)][_0x303c48(0x185)][_0x303c48(0x17d)],_0x42c597=[..._0x3cf54e[_0x303c48(0xc4)]()];let _0x1ca97f=this[_0x303c48(0x103)][_0x303c48(0x1a0)][_0x303c48(0x120)](_0x303c48(0xc9))||[..._0x4d78ed];this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x150)](_0x303c48(0x10f))||(_0x1ca97f=_0x1ca97f[_0x303c48(0x11c)](_0x1dd21a=>_0x303c48(0x183)!=_0x1dd21a));const _0x53d6bf=new _0x5a1593(this[_0x303c48(0x103)][_0x303c48(0xd8)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x303c48(0xf1),'customView':this[_0x303c48(0x16e)]},'showUnchangedParts':!0x0,'availableActions':_0x1ca97f});return _0x11903a[_0x303c48(0x1a3)]({'index':0x3e8*Math[_0x303c48(0x127)]()%0x3e8,'title':_0x29b096,'icon':_0x4d8213||_0x215182,'mainView':_0x53d6bf,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x303c48(0x103)][_0x303c48(0xd4)][_0x303c48(0x150)](_0x303c48(0x10f)),'ranges':_0x42c597}),this[_0x303c48(0xc7)](_0x53d6bf,_0x11903a),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x15e),()=>{const _0x3c5218=_0x303c48;this[_0x3c5218(0x167)](_0x187360,_0xd611da,!0x1);}),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x183),()=>{const _0x498d11=_0x303c48;this[_0x498d11(0x167)](_0x187360,_0xd611da,!0x0);}),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x1a5),()=>{const _0x55f3ca=_0x303c48;this[_0x55f3ca(0xe8)](),this[_0x55f3ca(0xcc)]();}),this[_0x303c48(0x179)](_0x11903a,_0x303c48(0x173),()=>{const _0x58b812=_0x303c48;if(this[_0x58b812(0x176)]&&this[_0x58b812(0x176)][_0x58b812(0x146)][_0x58b812(0x139)]>0x0){const _0x123741=this[_0x58b812(0x176)][_0x58b812(0x146)][this[_0x58b812(0x176)][_0x58b812(0x146)][_0x58b812(0x139)]-0x1],_0xfd52f0=_0x123741[_0x58b812(0x14f)][0x0];_0xfd52f0&&_0x58b812(0xff)===_0xfd52f0[_0x58b812(0x147)]&&_0x123741[_0x58b812(0x10e)](0x0,_0x58b812(0x114));}this[_0x58b812(0xe8)](),this[_0x58b812(0xfd)](),this[_0x58b812(0x162)](_0x11903a);}),this[_0x303c48(0xd6)](_0x1c7e74,_0x3a8f43,_0x53d6bf,_0x11903a,_0x7d8caa);}[_0x204de0(0xf3)](_0x38b50a,_0x2b828f,_0x6f0c24){const _0x3f1f0c=_0x204de0,_0x580eee=this[_0x3f1f0c(0x103)][_0x3f1f0c(0xd5)][_0x3f1f0c(0x16c)](_0x2b828f,_0x6f0c24)[_0x3f1f0c(0x10b)](),_0x29d51a=_0x580eee['is'](_0x3f1f0c(0x1a4))?[]:_0x580eee[_0x3f1f0c(0x137)]({'includeSelf':!0x0})[_0x3f1f0c(0x11e)](0x1);if(_0x29d51a[_0x3f1f0c(0x139)]){const _0x58c928=_0x29d51a[_0x3f1f0c(0x119)](_0x35bdb5=>_0x35bdb5[_0x3f1f0c(0x11b)](!0x1));for(let _0xe8a860=0x1;_0xe8a860<_0x58c928[_0x3f1f0c(0x139)];_0xe8a860++)_0x58c928[_0xe8a860-0x1][_0x3f1f0c(0x148)](_0x58c928[_0xe8a860]);return _0x58c928[_0x58c928[_0x3f1f0c(0x139)]-0x1][_0x3f1f0c(0x148)](_0x38b50a),new _0x2ff68e(_0x58c928[0x0]);}return _0x38b50a;}async[_0x204de0(0xd6)](_0x3c7e88,_0xd0686d,_0x1dbacc,_0x456f07,_0x3588d8){const _0xebc89e=_0x204de0,_0x3f18f9=this[_0xebc89e(0x103)];this[_0xebc89e(0xcd)]={'action':_0x3588d8,'content':_0x3c7e88,'version':_0xd0686d,'mainView':_0x1dbacc,'aiBalloon':_0x456f07};const _0x2c5f81=new _0x4b1f75({'connector':this[_0xebc89e(0x124)],'editor':_0x3f18f9,'content':_0x3c7e88,'version':_0xd0686d,..._0x3588d8});this[_0xebc89e(0x135)][_0xebc89e(0x10c)](_0x2c5f81),_0x1dbacc[_0xebc89e(0x142)]();const _0x5126a6=(_0x2f02d0,_0x3d7cd0,_0x3a526b=!0x1,_0x37e527=_0xebc89e(0x129))=>this[_0xebc89e(0xf9)][_0xebc89e(0x154)](async _0x10091f=>{const _0x66f0d9=_0xebc89e;try{const _0x5d01ca=_0x164d47({'editor':_0x3f18f9,'changeGroups':_0x2f02d0[_0x66f0d9(0x14f)],'documentContextContent':_0x2f02d0[_0x66f0d9(0x189)],'showDiff':_0x3a526b,'trimUnchanged':!0x1});await _0x3d7cd0[_0x66f0d9(0x18b)]({'parts':_0x5d01ca,'renderingStrategy':_0x37e527,'abortSignal':_0x10091f});}catch(_0xa1d8f3){if(this[_0x66f0d9(0x194)](_0xa1d8f3))return;throw _0xa1d8f3;}});this[_0xebc89e(0x176)]['on'](_0xebc89e(0x18f),(_0x2084f2,_0x41116b)=>{const _0x172957=_0xebc89e;_0x1dbacc[_0x172957(0xe2)](),_0x456f07[_0x172957(0xed)](),_0x5126a6(_0x41116b,_0x1dbacc)[_0x172957(0x156)](_0x9a9033=>{const _0x51ea1a=_0x172957;this[_0x51ea1a(0x194)](_0x9a9033)||(console[_0x51ea1a(0xfe)](_0x51ea1a(0xcf),_0x9a9033),this[_0x51ea1a(0x18c)](_0x2c5f81,_0x1dbacc));});}),this[_0xebc89e(0x176)]['on'](_0xebc89e(0x11d),(_0x1776a5,_0x4bf675)=>{const _0x30f789=_0xebc89e;_0x5126a6(_0x4bf675,_0x1dbacc)[_0x30f789(0x156)](_0x1022dd=>{const _0x188fe6=_0x30f789;this[_0x188fe6(0x194)](_0x1022dd)||(console[_0x188fe6(0xfe)](_0x188fe6(0x112),_0x1022dd),this[_0x188fe6(0x18c)](_0x2c5f81,_0x1dbacc));});}),this[_0xebc89e(0x176)]['on'](_0xebc89e(0x110),async()=>{const _0x117bb3=_0xebc89e;try{await this[_0x117bb3(0x1a1)](_0x1dbacc,_0x456f07),this[_0x117bb3(0xd7)](),await this[_0x117bb3(0xf9)][_0x117bb3(0x161)];}catch(_0xcba2b0){this[_0x117bb3(0x194)](_0xcba2b0)||(console[_0x117bb3(0xfe)](_0x117bb3(0x19f),_0xcba2b0),this[_0x117bb3(0x18c)](_0x2c5f81,_0x1dbacc));}finally{_0x456f07[_0x117bb3(0x195)]();}}),this[_0xebc89e(0x179)](_0x1dbacc,_0xebc89e(0xde),async(_0x434b4a,{showDiff:_0x1b646f})=>{const _0x13275c=_0xebc89e;try{this[_0x13275c(0x107)]=_0x1b646f;const _0x1d3c01=this[_0x13275c(0x176)][_0x13275c(0x146)][this[_0x13275c(0x176)][_0x13275c(0x146)][_0x13275c(0x139)]-0x1];_0x1d3c01&&await _0x5126a6(_0x1d3c01,_0x1dbacc,_0x1b646f,_0x13275c(0x116));}catch(_0x3e0008){this[_0x13275c(0x194)](_0x3e0008)||(console[_0x13275c(0xfe)](_0x13275c(0x13e),_0x3e0008),this[_0x13275c(0x18c)](_0x2c5f81,_0x1dbacc));}}),this[_0xebc89e(0x176)]['on'](_0xebc89e(0xc6),(_0x468d7b,{reply:_0x334705})=>{const _0x572558=_0xebc89e,_0x5de556={'positiveCount':_0x334705[_0x572558(0x14f)][_0x572558(0x11c)](_0x427c4b=>_0x572558(0x152)===_0x427c4b[_0x572558(0x147)])[_0x572558(0x139)],'totalCount':_0x334705[_0x572558(0x14f)][_0x572558(0x139)]},_0x17c052=this[_0x572558(0x176)][_0x572558(0x177)],_0x21829d=this[_0x572558(0x176)][_0x572558(0xeb)];_0x21829d?this[_0x572558(0x124)][_0x572558(0x181)](_0x21829d,_0x17c052,_0x5de556):this[_0x572558(0x124)][_0x572558(0x111)](_0x17c052,_0x5de556);}),this[_0xebc89e(0xc7)](_0x1dbacc,_0x456f07);try{const _0x426bc4=await this[_0xebc89e(0x176)][_0xebc89e(0x15a)]();return this[_0xebc89e(0xd7)](),_0x426bc4;}catch(_0x2df8d5){if(this[_0xebc89e(0x194)](_0x2df8d5))return;_0x1dbacc[_0xebc89e(0xe2)](),this[_0xebc89e(0x18c)](_0x2c5f81,_0x1dbacc);}}[_0x204de0(0x167)](_0x30d7d1,_0x3ce8a6,_0x5ebf78){const _0x4e748b=_0x204de0,_0x36d352=this[_0x4e748b(0x103)];if(_0x5ebf78&&!_0x36d352[_0x4e748b(0xd4)][_0x4e748b(0x150)](_0x4e748b(0x10f)))throw new _0x59200e(_0x4e748b(0xf0),null);const _0x2f45ae=this[_0x4e748b(0x103)][_0x4e748b(0xd4)][_0x4e748b(0x120)](_0x4b0301),_0x554d02=this[_0x4e748b(0x176)],_0x4af403=this[_0x4e748b(0x176)][_0x4e748b(0x146)][this[_0x4e748b(0x176)][_0x4e748b(0x146)][_0x4e748b(0x139)]-0x1],_0x2449df=_0x4af403[_0x4e748b(0x14f)];_0x4af403[_0x4e748b(0x10e)](0x0,_0x4e748b(0x152));let _0x57528f=_0x1d40d6({'editor':_0x36d352,'reply':_0x4af403,'interaction':_0x554d02,'groups':_0x2449df,'transform':!0x1,'documentCompare':_0x2f45ae,'documentCompareOptions':{'anchor':_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x172)](_0x30d7d1,0x0),'markDeletions':_0x5ebf78}});_0x57528f=this[_0x4e748b(0x16b)](_0x57528f,_0x3ce8a6);for(const _0x7f68c3 of _0x57528f)this[_0x4e748b(0xfb)](_0x3ce8a6,_0x7f68c3,_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x185)][_0x4e748b(0x14c)]());const _0x32f925=_0x554d02[_0x4e748b(0x18a)]()[_0x4e748b(0x17d)],_0x42cc5c=_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x185)][_0x4e748b(0x100)][_0x4e748b(0x18d)](_0x32f925),_0x10d6a2={'document':_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x185)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x316048=_0xc735fa(_0x57528f,_0x42cc5c,_0x10d6a2)[_0x4e748b(0x187)];_0x36d352[_0x4e748b(0xd5)][_0x4e748b(0x13f)](_0x3b0eaa=>{const _0x5b6d1a=_0x4e748b;if(_0x3b0eaa[_0x5b6d1a(0x12d)](_0x36d352[_0x5b6d1a(0xd5)][_0x5b6d1a(0x185)][_0x5b6d1a(0xf4)][_0x5b6d1a(0x130)]),_0x5ebf78)_0x36d352[_0x5b6d1a(0xd4)][_0x5b6d1a(0x120)](_0x5b6d1a(0x158))[_0x5b6d1a(0x10a)](_0x316048);else{for(const _0x298b03 of _0x316048)_0x298b03[_0x5b6d1a(0x122)]=_0x36d352[_0x5b6d1a(0xd5)][_0x5b6d1a(0x185)][_0x5b6d1a(0x17d)],_0x4b0b4f(_0x36d352,_0x298b03),_0x3b0eaa[_0x5b6d1a(0x198)][_0x5b6d1a(0x105)](_0x298b03),_0x36d352[_0x5b6d1a(0xd5)][_0x5b6d1a(0x18e)](_0x298b03);}}),this[_0x4e748b(0x103)][_0x4e748b(0xd4)][_0x4e748b(0x120)](_0x4e748b(0xce))[_0x4e748b(0x192)]();}[_0x204de0(0x16b)](_0x25850f,_0x1fc1b6){const _0x3e1275=_0x204de0;return _0x25850f[_0x3e1275(0x11c)](_0x1fe9de=>{const _0x3c1c6b=_0x3e1275;if(_0x3c1c6b(0x144)==_0x1fe9de[_0x3c1c6b(0x128)]){const _0x288a2d=_0x1fe9de[_0x3c1c6b(0x199)][_0x3c1c6b(0x184)];return!_0x1fc1b6[_0x3c1c6b(0x150)](_0x288a2d);}if(_0x1fe9de[_0x3c1c6b(0x128)][_0x3c1c6b(0x132)](_0x3c1c6b(0x108))>-0x1){const _0x2ab0e9=_0x1fe9de[_0x3c1c6b(0x168)][_0x3c1c6b(0x15a)][_0x3c1c6b(0x184)];return!_0x1fc1b6[_0x3c1c6b(0x150)](_0x2ab0e9);}return!0x0;});}[_0x204de0(0xfb)](_0x22f0a4,_0x1d1aca,_0x34e6f4){const _0x22876f=_0x204de0,_0x4f9309=_0x1d1aca[_0x22876f(0xcb)]();for(const _0x36f59d in _0x1d1aca){const _0x104975=_0x1d1aca[_0x36f59d];_0x104975 instanceof _0x1f620b?_0x1d1aca[_0x36f59d]=new _0x1f620b(_0x236b28(_0x104975[_0x22876f(0x15a)]),_0x236b28(_0x104975[_0x22876f(0x166)])):_0x104975 instanceof _0x27165c&&(_0x1d1aca[_0x36f59d]=_0x236b28(_0x104975));}if([_0x22876f(0x160),_0x22876f(0x19b),_0x22876f(0xf5),_0x22876f(0xd3),_0x22876f(0x123),_0x22876f(0x141)][_0x22876f(0xca)](_0x4f9309[_0x22876f(0x128)])){if(_0x4f9309[_0x22876f(0x188)]=!0x1,_0x4f9309[_0x22876f(0x122)]=null,_0x22876f(0xf5)==_0x4f9309[_0x22876f(0x128)]){const _0x2d0e8f=_0x4f9309[_0x22876f(0x17e)],_0x28ac26=_0x4f9309[_0x22876f(0xe7)];new _0x3c364c(_0x2d0e8f,_0x28ac26)[_0x22876f(0x186)]();}else _0x4f9309[_0x22876f(0x186)]();}function _0x236b28(_0x523b8d){const _0x1bf7db=_0x22876f;if(_0x1bf7db(0x1a6)==_0x523b8d[_0x1bf7db(0x17f)][_0x1bf7db(0xd1)])return _0x523b8d;const _0x2c295d=[];let _0x4df4cd=_0x523b8d[_0x1bf7db(0x17f)];for(let _0x58f08d=0x0;_0x58f08d<_0x523b8d[_0x1bf7db(0xe4)][_0x1bf7db(0x139)];_0x58f08d++){const _0x4defd6=_0x22f0a4[_0x1bf7db(0x120)](_0x4df4cd)||0x0;_0x2c295d[_0x58f08d]=_0x523b8d[_0x1bf7db(0xe4)][_0x58f08d]+_0x4defd6,_0x4df4cd=_0x4df4cd[_0x1bf7db(0xec)](_0x523b8d[_0x1bf7db(0xe4)][_0x58f08d]);}return new _0x27165c(_0x34e6f4,_0x2c295d,_0x523b8d[_0x1bf7db(0x101)]);}}[_0x204de0(0x134)](){const _0x3cfd29=_0x204de0;if(!this[_0x3cfd29(0xcd)])return;this[_0x3cfd29(0x135)][_0x3cfd29(0x139)]>0x0&&this[_0x3cfd29(0xe8)](),this[_0x3cfd29(0x113)]=0x0,this[_0x3cfd29(0x107)]=!0x1;const {action:_0x148800,content:_0x24d7ee,version:_0xdee6e8,mainView:_0x42bffb,aiBalloon:_0x4499cc}=this[_0x3cfd29(0xcd)];_0x42bffb[_0x3cfd29(0x17a)]=!0x1,_0x42bffb[_0x3cfd29(0x142)](),this[_0x3cfd29(0x193)](_0x42bffb,_0x4499cc);const _0x25eafc=_0x42bffb;_0x25eafc[_0x3cfd29(0x149)]&&_0x25eafc[_0x3cfd29(0x149)][_0x3cfd29(0x126)]&&_0x25eafc[_0x3cfd29(0x149)][_0x3cfd29(0x126)][_0x3cfd29(0x12c)]({'isOn':!0x1,'icon':_0x35c373}),this[_0x3cfd29(0x13c)](_0x42bffb),_0x42bffb[_0x3cfd29(0xc3)](),this[_0x3cfd29(0xd7)](),this[_0x3cfd29(0x162)](_0x42bffb),this[_0x3cfd29(0xd6)](_0x24d7ee,_0xdee6e8,_0x42bffb,_0x4499cc,_0x148800)[_0x3cfd29(0x156)](_0x442e98=>{const _0x5dc279=_0x3cfd29;this[_0x5dc279(0x194)](_0x442e98)||console[_0x5dc279(0xfe)](_0x5dc279(0xef),_0x442e98);});}[_0x204de0(0x13c)](_0xc42779){const _0x293761=_0x204de0,_0x835700=_0xc42779[_0x293761(0x145)][_0x293761(0x136)];for(;_0x835700[_0x293761(0x139)]>0x0;)_0x835700[_0x293761(0xf5)](_0x835700[_0x293761(0x157)]);_0xc42779[_0x293761(0x145)][_0x293761(0x19a)]=!0x1;}[_0x204de0(0x194)](_0x22ce54){const _0x49a3fe=_0x204de0;return!!_0x22ce54[_0x49a3fe(0x1a2)]&&_0x22ce54[_0x49a3fe(0x1a2)][_0x49a3fe(0x125)](_0x49a3fe(0xe6));}[_0x204de0(0xfd)](){const _0x3eae92=_0x204de0;this[_0x3eae92(0x135)]=[],this[_0x3eae92(0xcd)]=void 0x0,this[_0x3eae92(0x113)]=0x0,this[_0x3eae92(0xd7)]();}[_0x204de0(0xe8)](){const _0x2d4df1=_0x204de0;this[_0x2d4df1(0x176)]&&this[_0x2d4df1(0x176)][_0x2d4df1(0x19e)](),this[_0x2d4df1(0xf9)][_0x2d4df1(0x182)](),this[_0x2d4df1(0x155)]=!0x1,this[_0x2d4df1(0xcd)]&&this[_0x2d4df1(0xcd)][_0x2d4df1(0x11a)][_0x2d4df1(0x195)]();}[_0x204de0(0xc2)](){const _0x2bedf2=_0x204de0,_0x12e0b8=new _0x28b59a(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]),_0x56fff5=new _0x28b59a(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]),_0x3f379f=new _0x52f630(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]),_0x682bb0=new _0x28b59a(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)]);_0x12e0b8[_0x2bedf2(0x12c)]({'icon':_0x146f8c,'label':_0x3b796d(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)],_0x2bedf2(0x14a)),'tooltip':!0x0,'class':_0x2bedf2(0x178)}),_0x56fff5[_0x2bedf2(0x12c)]({'icon':_0x18f19d,'tooltip':_0x3b796d(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)],_0x2bedf2(0x180)),'class':_0x2bedf2(0x12f)}),_0x3f379f[_0x2bedf2(0xdd)]({'tag':_0x2bedf2(0x118),'attributes':{'class':[_0x2bedf2(0x14d)]},'children':[_0x2bedf2(0x163)]}),_0x682bb0[_0x2bedf2(0x12c)]({'icon':_0x40047d,'tooltip':_0x3b796d(this[_0x2bedf2(0x103)][_0x2bedf2(0xd8)],_0x2bedf2(0x196)),'class':_0x2bedf2(0xc5)}),_0x12e0b8[_0x2bedf2(0xfa)](_0x2bedf2(0xe0))['to'](this,_0x2bedf2(0x155),_0x46e2da=>!_0x46e2da),_0x12e0b8['on'](_0x2bedf2(0x165),()=>{const _0x753100=_0x2bedf2;this[_0x753100(0x134)]();}),_0x56fff5[_0x2bedf2(0xfa)](_0x2bedf2(0xe0))['to'](this,_0x2bedf2(0x155),_0x5be6f3=>!_0x5be6f3),_0x56fff5['on'](_0x2bedf2(0x165),()=>{const _0x40e514=_0x2bedf2;this[_0x40e514(0xe5)]();}),_0x682bb0[_0x2bedf2(0xfa)](_0x2bedf2(0xe0))['to'](this,_0x2bedf2(0x155),_0x2b7530=>!_0x2b7530),_0x682bb0['on'](_0x2bedf2(0x165),()=>{const _0x462c95=_0x2bedf2;this[_0x462c95(0x19d)]();}),this[_0x2bedf2(0x104)]=_0x56fff5,this[_0x2bedf2(0x15c)]=_0x3f379f,this[_0x2bedf2(0x17c)]=_0x682bb0,this[_0x2bedf2(0x16e)][_0x2bedf2(0x13b)](_0x12e0b8);}[_0x204de0(0xe5)](){const _0x24a2ae=_0x204de0,_0x119c34=this[_0x24a2ae(0x135)][_0x24a2ae(0x139)];this[_0x24a2ae(0x113)]<_0x119c34-0x1&&this[_0x24a2ae(0xe3)](this[_0x24a2ae(0x113)]+0x1);}[_0x204de0(0x19d)](){const _0x23969e=_0x204de0;this[_0x23969e(0x113)]>0x0&&this[_0x23969e(0xe3)](this[_0x23969e(0x113)]-0x1);}async[_0x204de0(0xe3)](_0xb241a2){const _0x5f56dc=_0x204de0;if(!this[_0x5f56dc(0xcd)])return;this[_0x5f56dc(0x113)]=_0xb241a2;const {mainView:_0x4b2d89}=this[_0x5f56dc(0xcd)],_0xbbe29=this[_0x5f56dc(0x135)][this[_0x5f56dc(0x135)][_0x5f56dc(0x139)]-0x1-this[_0x5f56dc(0x113)]];if(!_0xbbe29)return;if(_0xbbe29[_0x5f56dc(0x12e)])return this[_0x5f56dc(0x18c)](_0xbbe29,_0x4b2d89),void this[_0x5f56dc(0xd7)]();if(!_0xbbe29[_0x5f56dc(0x146)][_0x5f56dc(0x139)])return;_0x4b2d89[_0x5f56dc(0x142)](),this[_0x5f56dc(0xcd)]&&this[_0x5f56dc(0x193)](_0x4b2d89,this[_0x5f56dc(0xcd)][_0x5f56dc(0x11a)]);const _0x20fc6d=_0xbbe29[_0x5f56dc(0x146)][_0xbbe29[_0x5f56dc(0x146)][_0x5f56dc(0x139)]-0x1];if(_0x20fc6d){const _0x1aaf05=this[_0x5f56dc(0x103)];this[_0x5f56dc(0x13c)](_0x4b2d89);try{const _0x13117f=_0x164d47({'editor':_0x1aaf05,'changeGroups':_0x20fc6d[_0x5f56dc(0x14f)],'documentContextContent':_0x20fc6d[_0x5f56dc(0x189)],'showDiff':this[_0x5f56dc(0x107)],'trimUnchanged':!0x1});this[_0x5f56dc(0x13c)](_0x4b2d89),await new Promise(_0xed7cef=>setTimeout(_0xed7cef,0x32)),await _0x4b2d89[_0x5f56dc(0x18b)]({'parts':_0x13117f,'renderingStrategy':_0x5f56dc(0x116),'abortSignal':new AbortController()[_0x5f56dc(0x174)]});}catch(_0x4c4df4){this[_0x5f56dc(0x194)](_0x4c4df4)||console[_0x5f56dc(0xfe)](_0x5f56dc(0x13a),_0x4c4df4);}}this[_0x5f56dc(0xd7)]();}[_0x204de0(0xd7)](){const _0x5cc94f=_0x204de0;if(!this[_0x5cc94f(0x104)]||!this[_0x5cc94f(0x15c)]||!this[_0x5cc94f(0x17c)])return;const _0x5eed9b=this[_0x5cc94f(0x135)][_0x5cc94f(0x139)],_0x3f677e=_0x5eed9b>0x1,_0xf83b3d=this[_0x5cc94f(0xcd)]?.[_0x5cc94f(0xd2)];if(_0x3f677e){this[_0x5cc94f(0x197)]||this[_0x5cc94f(0x106)]||this[_0x5cc94f(0x102)]||(this[_0x5cc94f(0x16e)][_0x5cc94f(0x13b)](this[_0x5cc94f(0x104)]),_0xf83b3d?.[_0x5cc94f(0x190)](this[_0x5cc94f(0x104)]),this[_0x5cc94f(0x197)]=!0x0,this[_0x5cc94f(0x16e)][_0x5cc94f(0x13b)](this[_0x5cc94f(0x15c)]),_0xf83b3d?.[_0x5cc94f(0x190)](this[_0x5cc94f(0x15c)]),this[_0x5cc94f(0x106)]=!0x0,this[_0x5cc94f(0x16e)][_0x5cc94f(0x13b)](this[_0x5cc94f(0x17c)]),_0xf83b3d?.[_0x5cc94f(0x190)](this[_0x5cc94f(0x17c)]),this[_0x5cc94f(0x102)]=!0x0);const _0x2bc3d2=_0x5eed9b-this[_0x5cc94f(0x113)];this[_0x5cc94f(0x15c)][_0x5cc94f(0xf2)]&&(this[_0x5cc94f(0x15c)][_0x5cc94f(0xf2)][_0x5cc94f(0x1a8)]=_0x2bc3d2+'/'+_0x5eed9b),this[_0x5cc94f(0x104)][_0x5cc94f(0xe0)]=this[_0x5cc94f(0x113)]<_0x5eed9b-0x1,this[_0x5cc94f(0x17c)][_0x5cc94f(0xe0)]=this[_0x5cc94f(0x113)]>0x0;}else(this[_0x5cc94f(0x197)]||this[_0x5cc94f(0x106)]||this[_0x5cc94f(0x102)])&&(this[_0x5cc94f(0x16e)][_0x5cc94f(0xf5)](this[_0x5cc94f(0x104)]),_0xf83b3d?.[_0x5cc94f(0x170)](this[_0x5cc94f(0x104)]),this[_0x5cc94f(0x197)]=!0x1,this[_0x5cc94f(0x16e)][_0x5cc94f(0xf5)](this[_0x5cc94f(0x15c)]),_0xf83b3d?.[_0x5cc94f(0x170)](this[_0x5cc94f(0x15c)]),this[_0x5cc94f(0x106)]=!0x1,this[_0x5cc94f(0x16e)][_0x5cc94f(0xf5)](this[_0x5cc94f(0x17c)]),_0xf83b3d?.[_0x5cc94f(0x170)](this[_0x5cc94f(0x17c)]),this[_0x5cc94f(0x102)]=!0x1);}[_0x204de0(0xc7)](_0x37c6ea,_0x341125){const _0x145c15=_0x204de0;_0x37c6ea[_0x145c15(0x121)](),_0x341125[_0x145c15(0xd9)][_0x145c15(0x121)](),this[_0x145c15(0x155)]=!0x0;}async[_0x204de0(0x18c)](_0x200094,_0xf653cf){const _0x21b5e9=_0x204de0,_0x4dcfd6=_0x3b796d(this[_0x21b5e9(0x103)][_0x21b5e9(0xd8)],_0x21b5e9(0x1a7));_0xf653cf[_0x21b5e9(0xf7)](_0x4dcfd6),_0x200094[_0x21b5e9(0x12e)]=!0x0,await this[_0x21b5e9(0xf9)][_0x21b5e9(0x161)],_0xf653cf[_0x21b5e9(0xfc)](),this[_0x21b5e9(0xcd)]?.[_0x21b5e9(0x11a)][_0x21b5e9(0xd9)][_0x21b5e9(0xda)]&&(this[_0x21b5e9(0xcd)][_0x21b5e9(0x11a)][_0x21b5e9(0xd9)][_0x21b5e9(0xda)][_0x21b5e9(0x12a)]=!0x0);}[_0x204de0(0x193)](_0x11a54c,_0x695616){const _0x442652=_0x204de0;_0x11a54c[_0x442652(0xf8)](),_0x695616[_0x442652(0xd9)][_0x442652(0xda)]&&(_0x695616[_0x442652(0xd9)][_0x442652(0xda)][_0x442652(0x12a)]=!0x1);}async[_0x204de0(0x1a1)](_0x1edf2d,_0x50950b){const _0xa9a664=_0x204de0;await this[_0xa9a664(0xf9)][_0xa9a664(0x161)],this[_0xa9a664(0x155)]=!0x1,_0x1edf2d[_0xa9a664(0x171)](),_0x50950b[_0xa9a664(0xd9)][_0xa9a664(0x171)]();}[_0x204de0(0xcc)](){const _0x4874e2=_0x204de0;this[_0x4874e2(0x16e)][_0x4874e2(0x16f)](_0x524051=>{const _0xfb98d4=_0x4874e2;_0xfb98d4(0xe0)in _0x524051&&(_0x524051[_0xfb98d4(0xe0)]=!0x1);});}}
|
|
23
|
+
function _0x9f90(){const _0x106f5c=['first','execute','position','getLimitElement','TrackChangesEditing','setErrorState','replies','TableSelection','focus','bind','batch','message','version','_clone','mainView','45WjKwCA','AIConnector','getAncestors','end','_createInteraction','$graveyard','showLoader','slice','isDocumentOperation','_displayInteractionAtIndex','history','_interactionParams','_balloonShowDiff','getOperations','areChangesVisible','isEnabled','735942QijEDw','isBusy','push','applySuggestion','editor','ck-ai-interaction-counter','createRange','_clearSuggestionContent','852490Emgnse','getRoot','createPositionAfter','data','actionName','processor','howMany','isLoading','miniToolbarView','remove','sourcePosition','rejected','state','42583892vDCLNJ','replyCreated','showError','8gzNWwJ','_isNavigationNextButtonInView','_navigationPreviousButton','_stopInteraction','addNavigationItem','listenTo','_getExecuteDataInTable','_anchorOperation','_isNavigationPreviousButtonInView','stickiness','_executeAction','includes','_updateNavigationUI','getSelectedBlocks','clearErrorState','_interaction','queueEmptyPromise','indexOf','_execute','catch','527628mFdmzB','type','194531PcDblj','ck-ai-navigation-button\x20ck-ai-next-button','rename','_clearErrorState','forEach','ck-ai-custom-action-button','reinsert','startAutoScroll','insertSuggestion','ck-ai-navigation-button\x20ck-ai-previous-button','AI_ACTIONS_PREVIOUS_INTERACTION','add','_applyChanges','Error\x20refreshing\x20interaction:','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','6gPMAJU','isPremiumPlugin','root','model','_clearInteractionHistory','rootName','getChild','_isAbortError','merge','interactionFinished','locale','map','_setupCustomViews','Attribute','get','baseVersion','hideError','84472rOSDMO','textContent','close','hasError','executeAction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','icon','_aiConnector','469gpQcTC','change','toolbar','modelToViewWithIds','setChangeGroupState','getFirstRange','AIBalloon','pending','_navigationNextButton','clone','aiBalloon','getRanges','hideLoader','element','clearLoading','enqueue','_interactions','nodeAfter','createPositionAt','length','addOperation','upsertAIActionRating','replyContentUpdated','path','documentFragment','_customViews','config','split','AI_ACTIONS_GENERIC_ERROR','_navigationCounter','actionCallId','_refreshInteraction','startsWith','requires','_setErrorState','range','getSelectionAsFragment','ai.availableReplyActions','parent','documentContextContent','TrackChanges','insert','accepted','nextSibling','selectionRemoved','AI_ACTIONS_TRY_AGAIN','start','document','random','_promiseQueue','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','applyOperation','schema','_currentInteractionIndex','723264DfHIeS','getChildAtOffset','_disableCustomViews','changeGroups','stopInteraction','toggleSuggestionDisplayMode','getDocumentContext','streaming','_filterOperationsOutsideRange','signal','open','110Tjfnar','getSelectedContent','createPositionBefore','_clearLoadingState','set','Error\x20updating\x20content\x20in\x20replyCreated:','_navigateToNext','_applyOperationsAsSuggestions','AIActions','getSelectedTableCells','static','balloonView','move','replyChangeGroupStateUpdated','_wrapWithCommonAncestors','35vlUDPo','dialogClosed','bodyView','pluginName','ai-request-aborted','error','_children','upsertCustomAIActionRating','abort','getCommonAncestor','_setLoadingState','updateContent','toData','stopAutoScroll','filter','AI_ACTIONS_NEXT_INTERACTION','isCollapsed','removeNavigationItem','selection','_getExecuteDataRegular','showChangesButton','hasPendingParts','span','_isNavigationCounterInView','_navigateToPrevious','ai-no-track-changes','setLoading','setSelection','1/1','stop','_appendChild','stopListening','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','setTemplate','plugins','operationsA','has'];_0x9f90=function(){return _0x106f5c;};return _0x9f90();}const _0x560db3=_0x1176;(function(_0x2d4673,_0x558328){const _0x40160c=_0x1176,_0x36fb28=_0x2d4673();while(!![]){try{const _0x46944a=-parseInt(_0x40160c(0x1b1))/0x1*(parseInt(_0x40160c(0x1c1))/0x2)+-parseInt(_0x40160c(0x1af))/0x3*(-parseInt(_0x40160c(0x19b))/0x4)+-parseInt(_0x40160c(0x13f))/0x5*(parseInt(_0x40160c(0x183))/0x6)+parseInt(_0x40160c(0xef))/0x7*(-parseInt(_0x40160c(0xe7))/0x8)+-parseInt(_0x40160c(0x173))/0x9*(parseInt(_0x40160c(0x18b))/0xa)+parseInt(_0x40160c(0x130))/0xb*(-parseInt(_0x40160c(0x125))/0xc)+parseInt(_0x40160c(0x198))/0xd;if(_0x46944a===_0x558328)break;else _0x36fb28['push'](_0x36fb28['shift']());}catch(_0x6d09c){_0x36fb28['push'](_0x36fb28['shift']());}}}(_0x9f90,0x6d93a));import{Plugin as _0x155a29}from'ckeditor5/src/core.js';import{AIConnector as _0x22fa35}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x1cc655}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3ccbb4,ButtonView as _0x45fc67,ViewCollection as _0x4d9151,View as _0x2a0efa}from'ckeditor5/src/ui.js';import{AIEditing as _0x4fd8af}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4e902f}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x159e3f,first as _0xf706e5}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x512262,IconRefresh as _0x4b2471,IconNextArrow as _0x49f0b5,IconPreviousArrow as _0x561973,IconShowChangesOff as _0x1fa255}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1b1b23}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x21a9e1}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x45d4d1}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x44374e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x523407}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x342f4b,getOperationsFromReply as _0x24bfd0}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5c421e,ModelRange as _0x1fbe8e,ModelPosition as _0x5ef448,_DetachOperation as _0x2f80fb,transformOperationSets as _0x249a0d}from'ckeditor5/src/engine.js';function _0x1176(_0x495fbd,_0x15731d){const _0x9f904e=_0x9f90();return _0x1176=function(_0x117628,_0x26db90){_0x117628=_0x117628-0xe6;let _0x1cf67c=_0x9f904e[_0x117628];return _0x1cf67c;},_0x1176(_0x495fbd,_0x15731d);}import{AI_REPLY_ACTIONS as _0x140a47}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x155a29{static get[_0x560db3(0x110)](){return[_0x22fa35,_0x3ccbb4,_0x4fd8af,_0x1b1b23,_0x523407];}static get[_0x560db3(0x142)](){const _0x1271fa=_0x560db3;return _0x1271fa(0x138);}static get[_0x560db3(0x1bf)](){return!0x0;}static get[_0x560db3(0x1c2)](){return!0x0;}[_0x560db3(0xee)];[_0x560db3(0xff)]=[];[_0x560db3(0x124)]=0x0;[_0x560db3(0x17e)];[_0x560db3(0x17f)]=!0x1;[_0x560db3(0x108)]=new _0x4d9151();[_0x560db3(0x19d)];[_0x560db3(0x10c)];[_0x560db3(0x156)]=!0x1;[_0x560db3(0xf7)];[_0x560db3(0x1a3)]=!0x1;[_0x560db3(0x19c)]=!0x1;[_0x560db3(0x120)];get[_0x560db3(0x1aa)](){const _0x1749f2=_0x560db3;return this[_0x1749f2(0xff)][this[_0x1749f2(0xff)][_0x1749f2(0x102)]-0x1];}constructor(_0x2f4d68){const _0x4c880c=_0x560db3;super(_0x2f4d68),this[_0x4c880c(0xee)]=this[_0x4c880c(0x187)][_0x4c880c(0x161)][_0x4c880c(0x1cf)](_0x4c880c(0x174)),this[_0x4c880c(0x134)](_0x4c880c(0x184),!0x1),this[_0x4c880c(0x120)]=new _0x21a9e1(),this[_0x4c880c(0x1cd)]();}[_0x560db3(0x129)](){const _0x2ecba8=_0x560db3;this[_0x2ecba8(0x19e)]();}async[_0x560db3(0xeb)](_0x33607d,_0x569ece,_0x105b74){const _0xf76808=_0x560db3;if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x163)](_0xf76808(0x16b))){if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x1cf)](_0xf76808(0x16b))[_0xf76808(0x139)]()){const {modelFragment:_0x379380,anchorData:_0x5a9924}=this[_0xf76808(0x1a1)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x379380,_0x5a9924,_0x569ece,_0x105b74);}}const {modelFragment:_0x1de179,anchorData:_0x2f0b08}=this[_0xf76808(0x152)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x1de179,_0x2f0b08,_0x569ece,_0x105b74);}[_0x560db3(0x152)](){const _0x219931=_0x560db3,_0x4fb3d2=this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x11e)][_0x219931(0x151)];if(_0x4fb3d2[_0x219931(0x14f)]){const _0x511adb=_0xf706e5(_0x4fb3d2[_0x219931(0x1a8)]())||this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x123)][_0x219931(0x167)](_0x4fb3d2);this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0xf0)](_0x27ffb9=>{const _0x20c759=_0x219931;_0x27ffb9[_0x20c759(0x15a)](_0x511adb,'in');});}const _0x1037ad=_0x4fb3d2[_0x219931(0xf4)](),_0x11b693=this[_0x219931(0x13e)](this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x131)](_0x4fb3d2),_0x1037ad[_0x219931(0x11d)],_0x1037ad[_0x219931(0x176)]),_0x370994=_0x4fb3d2[_0x219931(0xf4)]()[_0x219931(0x11d)],_0x329695=new Map();let _0x5df5bb=_0x11b693;for(let _0x3f0ff4=0x0;_0x3f0ff4<_0x370994[_0x219931(0x106)][_0x219931(0x102)];_0x3f0ff4++)_0x329695[_0x219931(0x134)](_0x5df5bb,_0x370994[_0x219931(0x106)][_0x3f0ff4]),_0x5df5bb=_0x5df5bb[_0x219931(0x1c7)](0x0);return{'modelFragment':_0x11b693,'anchorData':_0x329695};}[_0x560db3(0x1a1)](){const _0x16fc1c=_0x560db3,_0x230e8e=this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x11e)][_0x16fc1c(0x151)],_0x7c4b67=this[_0x16fc1c(0x187)][_0x16fc1c(0x161)][_0x16fc1c(0x1cf)](_0x16fc1c(0x16b))[_0x16fc1c(0x113)](),_0x2b6c96=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)][_0x16fc1c(0x115)][_0x16fc1c(0x115)],_0x3f8361=this[_0x16fc1c(0x13e)](_0x7c4b67,this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x132)](_0x2b6c96),this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x18d)](_0x2b6c96)),_0x3f7832=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)],_0x248d16=new Map();let _0x2b8add=_0x3f8361;for(let _0x574005=0x0;_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)];_0x574005++)if(_0x248d16[_0x16fc1c(0x134)](_0x2b8add,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)]-0x1)_0x2b8add=_0x2b8add[_0x16fc1c(0x1c7)](0x0);else{let _0x1a477f=_0x2b8add[_0x16fc1c(0x11a)];for(;_0x1a477f;)_0x248d16[_0x16fc1c(0x134)](_0x1a477f,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x1a477f=_0x1a477f[_0x16fc1c(0x11a)];}return{'modelFragment':_0x3f8361,'anchorData':_0x248d16};}[_0x560db3(0x1a5)](_0x5c896b,_0x5939b6,_0x5b64ed,_0x5e1bc5,_0xa0cce6){const _0x378b75=_0x560db3,_0x4bf18e=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x4fd8af),_0x43e898=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x1b1b23),_0x21d787=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x151)],_0x4e4e27=_0x4bf18e[_0x378b75(0xf2)](_0x5939b6),_0xa82277=this[_0x378b75(0x187)][_0x378b75(0x18e)][_0x378b75(0x190)][_0x378b75(0x14b)](_0x4e4e27),_0x13de40=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x170)],_0x5b8090=[..._0x21d787[_0x378b75(0xfa)]()];let _0x58abb7=this[_0x378b75(0x187)][_0x378b75(0x109)][_0x378b75(0x1cf)](_0x378b75(0x114))||[..._0x140a47];this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117))||(_0x58abb7=_0x58abb7[_0x378b75(0x14d)](_0x22ca8c=>_0x378b75(0x1b9)!=_0x22ca8c));const _0x20d6a5=new _0x1cc655(this[_0x378b75(0x187)][_0x378b75(0x1cb)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x378b75(0xed),'customView':this[_0x378b75(0x108)]},'showUnchangedParts':!0x0,'availableActions':_0x58abb7});return _0x43e898[_0x378b75(0x12f)]({'index':0x3e8*Math[_0x378b75(0x11f)]()%0x3e8,'title':_0x5e1bc5,'icon':_0xa0cce6||_0x512262,'mainView':_0x20d6a5,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117)),'ranges':_0x5b8090}),this[_0x378b75(0x149)](_0x20d6a5,_0x43e898),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x186),()=>{const _0x10c755=_0x378b75;this[_0x10c755(0x1bd)](_0x5939b6,_0x5b64ed,!0x1);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x1b9),()=>{const _0x353030=_0x378b75;this[_0x353030(0x1bd)](_0x5939b6,_0x5b64ed,!0x0);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x11b),()=>{const _0x17363c=_0x378b75;this[_0x17363c(0x19e)](),this[_0x17363c(0x127)]();}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x140),()=>{const _0x48f798=_0x378b75;if(this[_0x48f798(0x1aa)]&&this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]>0x0){const _0xd54cc0=this[_0x48f798(0x1aa)][_0x48f798(0x16a)][this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]-0x1],_0x1426a0=_0xd54cc0[_0x48f798(0x128)][0x0];_0x1426a0&&_0x48f798(0xf6)===_0x1426a0[_0x48f798(0x197)]&&_0xd54cc0[_0x48f798(0xf3)](0x0,_0x48f798(0x196));}this[_0x48f798(0x19e)](),this[_0x48f798(0x1c5)](),this[_0x48f798(0x15e)](_0x43e898);}),this[_0x378b75(0x177)](_0xa82277,_0x13de40,_0x20d6a5,_0x43e898,_0x5c896b);}[_0x560db3(0x13e)](_0x57b985,_0x30e578,_0x3c197f){const _0x1d7b5c=_0x560db3,_0xb7b8f4=this[_0x1d7b5c(0x187)][_0x1d7b5c(0x1c4)][_0x1d7b5c(0x189)](_0x30e578,_0x3c197f)[_0x1d7b5c(0x148)](),_0x4de996=_0xb7b8f4['is'](_0x1d7b5c(0x107))?[]:_0xb7b8f4[_0x1d7b5c(0x175)]({'includeSelf':!0x0})[_0x1d7b5c(0x17a)](0x1);if(_0x4de996[_0x1d7b5c(0x102)]){const _0x556756=_0x4de996[_0x1d7b5c(0x1cc)](_0x3f506b=>_0x3f506b[_0x1d7b5c(0x171)](!0x1));for(let _0x242336=0x1;_0x242336<_0x556756[_0x1d7b5c(0x102)];_0x242336++)_0x556756[_0x242336-0x1][_0x1d7b5c(0x15d)](_0x556756[_0x242336]);return _0x556756[_0x556756[_0x1d7b5c(0x102)]-0x1][_0x1d7b5c(0x15d)](_0x57b985),new _0x5c421e(_0x556756[0x0]);}return _0x57b985;}async[_0x560db3(0x177)](_0x253094,_0x46795a,_0x57cca5,_0x154fa6,_0x551eb4){const _0x30886d=_0x560db3,_0x347581=this[_0x30886d(0x187)];this[_0x30886d(0x17e)]={'action':_0x551eb4,'content':_0x253094,'version':_0x46795a,'mainView':_0x57cca5,'aiBalloon':_0x154fa6};const _0x2654bf=new _0x4e902f({'connector':this[_0x30886d(0xee)],'editor':_0x347581,'content':_0x253094,'version':_0x46795a,..._0x551eb4});this[_0x30886d(0xff)][_0x30886d(0x185)](_0x2654bf),_0x57cca5[_0x30886d(0xe6)]();const _0x1a2bc8=(_0x1e32e3,_0xcb3d1f,_0x18b2fd=!0x1,_0x479518=_0x30886d(0x12c))=>this[_0x30886d(0x120)][_0x30886d(0xfe)](async _0x4200b3=>{const _0x542ef8=_0x30886d;try{const _0x3ec8c5=_0x44374e({'editor':_0x347581,'changeGroups':_0x1e32e3[_0x542ef8(0x128)],'documentContextContent':_0x1e32e3[_0x542ef8(0x116)],'showDiff':_0x18b2fd,'trimUnchanged':!0x1});await _0xcb3d1f[_0x542ef8(0x14a)]({'parts':_0x3ec8c5,'renderingStrategy':_0x479518,'abortSignal':_0x4200b3});}catch(_0x282b30){if(this[_0x542ef8(0x1c8)](_0x282b30))return;throw _0x282b30;}});this[_0x30886d(0x1aa)]['on'](_0x30886d(0x199),(_0x4c8dd8,_0x1780dc)=>{const _0x5f3b1a=_0x30886d;_0x57cca5[_0x5f3b1a(0xfb)](),_0x154fa6[_0x5f3b1a(0x1b8)](),_0x1a2bc8(_0x1780dc,_0x57cca5)[_0x5f3b1a(0x1ae)](_0x108716=>{const _0x6235ce=_0x5f3b1a;this[_0x6235ce(0x1c8)](_0x108716)||(console[_0x6235ce(0x144)](_0x6235ce(0x135),_0x108716),this[_0x6235ce(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x105),(_0x29926b,_0x232aaf)=>{const _0x1252cf=_0x30886d;_0x1a2bc8(_0x232aaf,_0x57cca5)[_0x1252cf(0x1ae)](_0x257f19=>{const _0x2d85b1=_0x1252cf;this[_0x2d85b1(0x1c8)](_0x257f19)||(console[_0x2d85b1(0x144)](_0x2d85b1(0xec),_0x257f19),this[_0x2d85b1(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x1ca),async()=>{const _0x4e7352=_0x30886d;try{await this[_0x4e7352(0x133)](_0x57cca5,_0x154fa6),this[_0x4e7352(0x1a7)](),await this[_0x4e7352(0x120)][_0x4e7352(0x1ab)];}catch(_0x3ad823){this[_0x4e7352(0x1c8)](_0x3ad823)||(console[_0x4e7352(0x144)](_0x4e7352(0x121),_0x3ad823),this[_0x4e7352(0x111)](_0x2654bf,_0x57cca5));}finally{_0x154fa6[_0x4e7352(0x14c)]();}}),this[_0x30886d(0x1a0)](_0x57cca5,_0x30886d(0x12a),async(_0x17e1c8,{showDiff:_0x2f33c6})=>{const _0x5b73ac=_0x30886d;try{this[_0x5b73ac(0x17f)]=_0x2f33c6;const _0x90c3ec=this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][_0x5b73ac(0x102)]-0x1];_0x90c3ec&&await _0x1a2bc8(_0x90c3ec,_0x57cca5,_0x2f33c6,_0x5b73ac(0x13a));}catch(_0x15df0a){this[_0x5b73ac(0x1c8)](_0x15df0a)||(console[_0x5b73ac(0x144)](_0x5b73ac(0x15f),_0x15df0a),this[_0x5b73ac(0x111)](_0x2654bf,_0x57cca5));}}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x13d),(_0x3362d7,{reply:_0x2aadbb})=>{const _0x5c85c8=_0x30886d,_0x5e3425={'positiveCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x14d)](_0xda5c54=>_0x5c85c8(0x119)===_0xda5c54[_0x5c85c8(0x197)])[_0x5c85c8(0x102)],'totalCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x102)]},_0x38e225=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x10d)],_0x386f9c=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x18f)];_0x386f9c?this[_0x5c85c8(0xee)][_0x5c85c8(0x104)](_0x386f9c,_0x38e225,_0x5e3425):this[_0x5c85c8(0xee)][_0x5c85c8(0x146)](_0x38e225,_0x5e3425);}),this[_0x30886d(0x149)](_0x57cca5,_0x154fa6);try{const _0x14e663=await this[_0x30886d(0x1aa)][_0x30886d(0x11d)]();return this[_0x30886d(0x1a7)](),_0x14e663;}catch(_0x4d1804){if(this[_0x30886d(0x1c8)](_0x4d1804))return;_0x57cca5[_0x30886d(0xfb)](),this[_0x30886d(0x111)](_0x2654bf,_0x57cca5);}}[_0x560db3(0x1bd)](_0x522d91,_0x38ff84,_0x56dc48){const _0x4f8f6a=_0x560db3,_0x3de26f=this[_0x4f8f6a(0x187)];if(_0x56dc48&&!_0x3de26f[_0x4f8f6a(0x161)][_0x4f8f6a(0x163)](_0x4f8f6a(0x117)))throw new _0x159e3f(_0x4f8f6a(0x158),null);const _0x1a5f70=this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x523407),_0x3b6730=this[_0x4f8f6a(0x1aa)],_0x44fb69=this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][_0x4f8f6a(0x102)]-0x1],_0x3d9599=_0x44fb69[_0x4f8f6a(0x128)];_0x44fb69[_0x4f8f6a(0xf3)](0x0,_0x4f8f6a(0x119));let _0x7050f9=_0x24bfd0({'editor':_0x3de26f,'reply':_0x44fb69,'interaction':_0x3b6730,'groups':_0x3d9599,'transform':!0x1,'documentCompare':_0x1a5f70,'documentCompareOptions':{'anchor':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x101)](_0x522d91,0x0),'markDeletions':_0x56dc48}});_0x7050f9=this[_0x4f8f6a(0x12d)](_0x7050f9,_0x38ff84);for(const _0x543e37 of _0x7050f9)this[_0x4f8f6a(0x1a2)](_0x38ff84,_0x543e37,_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x18c)]());const _0xe5316d=_0x3b6730[_0x4f8f6a(0x12b)]()[_0x4f8f6a(0x170)],_0x10cd69=_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x17d)][_0x4f8f6a(0x180)](_0xe5316d),_0x5332d1={'document':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x970c01=_0x249a0d(_0x7050f9,_0x10cd69,_0x5332d1)[_0x4f8f6a(0x162)];_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0xf0)](_0x5a8797=>{const _0x110fee=_0x4f8f6a;if(_0x5a8797[_0x110fee(0x15a)](_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x151)][_0x110fee(0x16c)]),_0x56dc48)_0x3de26f[_0x110fee(0x161)][_0x110fee(0x1cf)](_0x110fee(0x168))[_0x110fee(0x137)](_0x970c01);else{for(const _0x4bef40 of _0x970c01)_0x4bef40[_0x110fee(0x1d0)]=_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x170)],_0x342f4b(_0x3de26f,_0x4bef40),_0x5a8797[_0x110fee(0x16e)][_0x110fee(0x103)](_0x4bef40),_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x122)](_0x4bef40);}}),this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x4f8f6a(0xf5))[_0x4f8f6a(0xe9)]();}[_0x560db3(0x12d)](_0x364130,_0x5a76fe){const _0x376620=_0x560db3;return _0x364130[_0x376620(0x14d)](_0x4be65e=>{const _0x20fc58=_0x376620;if(_0x20fc58(0x1b3)==_0x4be65e[_0x20fc58(0x1b0)]){const _0x102f0f=_0x4be65e[_0x20fc58(0x166)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x102f0f);}if(_0x4be65e[_0x20fc58(0x1b0)][_0x20fc58(0x1ac)](_0x20fc58(0x1ce))>-0x1){const _0x3cc92d=_0x4be65e[_0x20fc58(0x112)][_0x20fc58(0x11d)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x3cc92d);}return!0x0;});}[_0x560db3(0x1a2)](_0x424aab,_0x7935f4,_0x51938f){const _0x433aec=_0x560db3,_0x24d00d=_0x7935f4[_0x433aec(0xf8)]();for(const _0x1aa9a3 in _0x7935f4){const _0x16c272=_0x7935f4[_0x1aa9a3];_0x16c272 instanceof _0x1fbe8e?_0x7935f4[_0x1aa9a3]=new _0x1fbe8e(_0x5c9d59(_0x16c272[_0x433aec(0x11d)]),_0x5c9d59(_0x16c272[_0x433aec(0x176)])):_0x16c272 instanceof _0x5ef448&&(_0x7935f4[_0x1aa9a3]=_0x5c9d59(_0x16c272));}if([_0x433aec(0x118),_0x433aec(0x13c),_0x433aec(0x194),_0x433aec(0x1b7),_0x433aec(0x10a),_0x433aec(0x1c9)][_0x433aec(0x1a6)](_0x24d00d[_0x433aec(0x1b0)])){if(_0x24d00d[_0x433aec(0x17b)]=!0x1,_0x24d00d[_0x433aec(0x1d0)]=null,_0x433aec(0x194)==_0x24d00d[_0x433aec(0x1b0)]){const _0x2e347d=_0x24d00d[_0x433aec(0x195)],_0x28a016=_0x24d00d[_0x433aec(0x191)];new _0x2f80fb(_0x2e347d,_0x28a016)[_0x433aec(0x1ad)]();}else _0x24d00d[_0x433aec(0x1ad)]();}function _0x5c9d59(_0x26a6db){const _0x490a1e=_0x433aec;if(_0x490a1e(0x178)==_0x26a6db[_0x490a1e(0x1c3)][_0x490a1e(0x1c6)])return _0x26a6db;const _0x42292e=[];let _0x268c17=_0x26a6db[_0x490a1e(0x1c3)];for(let _0x35c874=0x0;_0x35c874<_0x26a6db[_0x490a1e(0x106)][_0x490a1e(0x102)];_0x35c874++){const _0x39bdc2=_0x424aab[_0x490a1e(0x1cf)](_0x268c17)||0x0;_0x42292e[_0x35c874]=_0x26a6db[_0x490a1e(0x106)][_0x35c874]+_0x39bdc2,_0x268c17=_0x268c17[_0x490a1e(0x126)](_0x26a6db[_0x490a1e(0x106)][_0x35c874]);}return new _0x5ef448(_0x51938f,_0x42292e,_0x26a6db[_0x490a1e(0x1a4)]);}}[_0x560db3(0x10e)](){const _0xf740e3=_0x560db3;if(!this[_0xf740e3(0x17e)])return;this[_0xf740e3(0xff)][_0xf740e3(0x102)]>0x0&&this[_0xf740e3(0x19e)](),this[_0xf740e3(0x124)]=0x0,this[_0xf740e3(0x17f)]=!0x1;const {action:_0x505b2c,content:_0x4f02fc,version:_0xf6c7d9,mainView:_0x2cab65,aiBalloon:_0x1d3369}=this[_0xf740e3(0x17e)];_0x2cab65[_0xf740e3(0x181)]=!0x1,_0x2cab65[_0xf740e3(0xe6)](),this[_0xf740e3(0x1b4)](_0x2cab65,_0x1d3369);const _0x63f64a=_0x2cab65;_0x63f64a[_0xf740e3(0x193)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)][_0xf740e3(0x134)]({'isOn':!0x1,'icon':_0x1fa255}),this[_0xf740e3(0x18a)](_0x2cab65),_0x2cab65[_0xf740e3(0x179)](),this[_0xf740e3(0x1a7)](),this[_0xf740e3(0x15e)](_0x2cab65),this[_0xf740e3(0x177)](_0x4f02fc,_0xf6c7d9,_0x2cab65,_0x1d3369,_0x505b2c)[_0xf740e3(0x1ae)](_0x20c73f=>{const _0x105e05=_0xf740e3;this[_0x105e05(0x1c8)](_0x20c73f)||console[_0x105e05(0x144)](_0x105e05(0x1be),_0x20c73f);});}[_0x560db3(0x18a)](_0x52a897){const _0x4f3d25=_0x560db3,_0x4a8e31=_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x145)];for(;_0x4a8e31[_0x4f3d25(0x102)]>0x0;)_0x4a8e31[_0x4f3d25(0x194)](_0x4a8e31[_0x4f3d25(0x164)]);_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x154)]=!0x1;}[_0x560db3(0x1c8)](_0x354c91){const _0x4611af=_0x560db3;return!!_0x354c91[_0x4611af(0x16f)]&&_0x354c91[_0x4611af(0x16f)][_0x4611af(0x10f)](_0x4611af(0x143));}[_0x560db3(0x1c5)](){const _0x38951c=_0x560db3;this[_0x38951c(0xff)]=[],this[_0x38951c(0x17e)]=void 0x0,this[_0x38951c(0x124)]=0x0,this[_0x38951c(0x1a7)]();}[_0x560db3(0x19e)](){const _0x2b3495=_0x560db3;this[_0x2b3495(0x1aa)]&&this[_0x2b3495(0x1aa)][_0x2b3495(0x15c)](),this[_0x2b3495(0x120)][_0x2b3495(0x147)](),this[_0x2b3495(0x184)]=!0x1,this[_0x2b3495(0x17e)]&&this[_0x2b3495(0x17e)][_0x2b3495(0xf9)][_0x2b3495(0x14c)]();}[_0x560db3(0x1cd)](){const _0x17b757=_0x560db3,_0x37e370=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0xd735f5=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x22d912=new _0x2a0efa(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x5189ed=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]);_0x37e370[_0x17b757(0x134)]({'icon':_0x4b2471,'label':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x11c)),'tooltip':!0x0,'class':_0x17b757(0x1b6)}),_0xd735f5[_0x17b757(0x134)]({'icon':_0x561973,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x1bb)),'class':_0x17b757(0x1ba)}),_0x22d912[_0x17b757(0x160)]({'tag':_0x17b757(0x155),'attributes':{'class':[_0x17b757(0x188)]},'children':[_0x17b757(0x15b)]}),_0x5189ed[_0x17b757(0x134)]({'icon':_0x49f0b5,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x14e)),'class':_0x17b757(0x1b2)}),_0x37e370[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x1feae3=>!_0x1feae3),_0x37e370['on'](_0x17b757(0x165),()=>{const _0x3f860c=_0x17b757;this[_0x3f860c(0x10e)]();}),_0xd735f5[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x4a8efd=>!_0x4a8efd),_0xd735f5['on'](_0x17b757(0x165),()=>{const _0x11a201=_0x17b757;this[_0x11a201(0x157)]();}),_0x5189ed[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x5f1b93=>!_0x5f1b93),_0x5189ed['on'](_0x17b757(0x165),()=>{const _0x176872=_0x17b757;this[_0x176872(0x136)]();}),this[_0x17b757(0x19d)]=_0xd735f5,this[_0x17b757(0x10c)]=_0x22d912,this[_0x17b757(0xf7)]=_0x5189ed,this[_0x17b757(0x108)][_0x17b757(0x1bc)](_0x37e370);}[_0x560db3(0x157)](){const _0x3aaacf=_0x560db3,_0x2d3182=this[_0x3aaacf(0xff)][_0x3aaacf(0x102)];this[_0x3aaacf(0x124)]<_0x2d3182-0x1&&this[_0x3aaacf(0x17c)](this[_0x3aaacf(0x124)]+0x1);}[_0x560db3(0x136)](){const _0x407e26=_0x560db3;this[_0x407e26(0x124)]>0x0&&this[_0x407e26(0x17c)](this[_0x407e26(0x124)]-0x1);}async[_0x560db3(0x17c)](_0x2248ae){const _0x430b8c=_0x560db3;if(!this[_0x430b8c(0x17e)])return;this[_0x430b8c(0x124)]=_0x2248ae;const {mainView:_0x1bc0d8}=this[_0x430b8c(0x17e)],_0x235c89=this[_0x430b8c(0xff)][this[_0x430b8c(0xff)][_0x430b8c(0x102)]-0x1-this[_0x430b8c(0x124)]];if(!_0x235c89)return;if(_0x235c89[_0x430b8c(0xea)])return this[_0x430b8c(0x111)](_0x235c89,_0x1bc0d8),void this[_0x430b8c(0x1a7)]();if(!_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)])return;_0x1bc0d8[_0x430b8c(0xe6)](),this[_0x430b8c(0x17e)]&&this[_0x430b8c(0x1b4)](_0x1bc0d8,this[_0x430b8c(0x17e)][_0x430b8c(0xf9)]);const _0x3a415a=_0x235c89[_0x430b8c(0x16a)][_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)]-0x1];if(_0x3a415a){const _0x30da4a=this[_0x430b8c(0x187)];this[_0x430b8c(0x18a)](_0x1bc0d8);try{const _0x6a392a=_0x44374e({'editor':_0x30da4a,'changeGroups':_0x3a415a[_0x430b8c(0x128)],'documentContextContent':_0x3a415a[_0x430b8c(0x116)],'showDiff':this[_0x430b8c(0x17f)],'trimUnchanged':!0x1});this[_0x430b8c(0x18a)](_0x1bc0d8),await new Promise(_0x204129=>setTimeout(_0x204129,0x32)),await _0x1bc0d8[_0x430b8c(0x14a)]({'parts':_0x6a392a,'renderingStrategy':_0x430b8c(0x13a),'abortSignal':new AbortController()[_0x430b8c(0x12e)]});}catch(_0x5b69ad){this[_0x430b8c(0x1c8)](_0x5b69ad)||console[_0x430b8c(0x144)](_0x430b8c(0x1c0),_0x5b69ad);}}this[_0x430b8c(0x1a7)]();}[_0x560db3(0x1a7)](){const _0x4201f3=_0x560db3;if(!this[_0x4201f3(0x19d)]||!this[_0x4201f3(0x10c)]||!this[_0x4201f3(0xf7)])return;const _0x417048=this[_0x4201f3(0xff)][_0x4201f3(0x102)],_0x45685d=_0x417048>0x1,_0x5ed0f2=this[_0x4201f3(0x17e)]?.[_0x4201f3(0x172)];if(_0x45685d){this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)]||(this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x0);const _0x5c1370=_0x417048-this[_0x4201f3(0x124)];this[_0x4201f3(0x10c)][_0x4201f3(0xfc)]&&(this[_0x4201f3(0x10c)][_0x4201f3(0xfc)][_0x4201f3(0xe8)]=_0x5c1370+'/'+_0x417048),this[_0x4201f3(0x19d)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]<_0x417048-0x1,this[_0x4201f3(0xf7)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]>0x0;}else(this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)])&&(this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x1);}[_0x560db3(0x149)](_0x22ffd3,_0x2f3460){const _0x543293=_0x560db3;_0x22ffd3[_0x543293(0x159)](),_0x2f3460[_0x543293(0x13b)][_0x543293(0x159)](),this[_0x543293(0x184)]=!0x0;}async[_0x560db3(0x111)](_0x4d120d,_0x52e830){const _0x3f0ee8=_0x560db3,_0x1dae51=_0x45d4d1(this[_0x3f0ee8(0x187)][_0x3f0ee8(0x1cb)],_0x3f0ee8(0x10b));_0x52e830[_0x3f0ee8(0x19a)](_0x1dae51),_0x4d120d[_0x3f0ee8(0xea)]=!0x0,await this[_0x3f0ee8(0x120)][_0x3f0ee8(0x1ab)],_0x52e830[_0x3f0ee8(0x169)](),this[_0x3f0ee8(0x17e)]?.[_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)]&&(this[_0x3f0ee8(0x17e)][_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)][_0x3f0ee8(0x192)]=!0x0);}[_0x560db3(0x1b4)](_0x457fcb,_0x392fee){const _0x358620=_0x560db3;_0x457fcb[_0x358620(0x1a9)](),_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)]&&(_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)][_0x358620(0x192)]=!0x1);}async[_0x560db3(0x133)](_0x27828a,_0x6213c2){const _0x12c804=_0x560db3;await this[_0x12c804(0x120)][_0x12c804(0x1ab)],this[_0x12c804(0x184)]=!0x1,_0x27828a[_0x12c804(0xfd)](),_0x6213c2[_0x12c804(0x13b)][_0x12c804(0xfd)]();}[_0x560db3(0x127)](){const _0x569595=_0x560db3;this[_0x569595(0x108)][_0x569595(0x1b5)](_0x59014b=>{const _0x1216c7=_0x569595;_0x1216c7(0x182)in _0x59014b&&(_0x59014b[_0x1216c7(0x182)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39ccd2=_0x248a;function _0xee5a(){const _0x21f23c=['connector','84380QKpZXj','2111160XHbXpH','21foQONA','model','Current\x20document','83032pzRkAy','editor','1251CRHfeX','TEXT','hasError','4832135NRglst','1348460FqUPlZ','current-document','actionName','args','5772438FvvfNU','html','getDocumentContext','executeCustomAction','content','sendRequest','push','replies','executeAction','126772TDNOyl','replyCreated','userMessage','version','delegate','createReply','fire'];_0xee5a=function(){return _0x21f23c;};return _0xee5a();}(function(_0x4acd85,_0x1344b1){const _0x5e77b4=_0x248a,_0x3f54bf=_0x4acd85();while(!![]){try{const _0x26338d=-parseInt(_0x5e77b4(0xd2))/0x1+parseInt(_0x5e77b4(0xba))/0x2*(parseInt(_0x5e77b4(0xbc))/0x3)+parseInt(_0x5e77b4(0xbb))/0x4+-parseInt(_0x5e77b4(0xc5))/0x5+parseInt(_0x5e77b4(0xc9))/0x6+parseInt(_0x5e77b4(0xc4))/0x7+parseInt(_0x5e77b4(0xbf))/0x8*(-parseInt(_0x5e77b4(0xc1))/0x9);if(_0x26338d===_0x1344b1)break;else _0x3f54bf['push'](_0x3f54bf['shift']());}catch(_0x2e05a5){_0x3f54bf['push'](_0x3f54bf['shift']());}}}(_0xee5a,0x9b5c1));import{AIInteraction as _0x326939,AI_MODEL_EVENT_NAMES as _0x40dc8c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4ac8df}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x5da522}from'./aiactionsreply.js';function _0x248a(_0x15618f,_0x209dab){const _0xee5aba=_0xee5a();return _0x248a=function(_0x248a29,_0x40ac6a){_0x248a29=_0x248a29-0xb7;let _0x188a43=_0xee5aba[_0x248a29];return _0x188a43;},_0x248a(_0x15618f,_0x209dab);}export class AIActionsInteraction extends _0x326939{[_0x39ccd2(0xcd)];[_0x39ccd2(0xd5)];[_0x39ccd2(0xc7)];[_0x39ccd2(0xc8)];[_0x39ccd2(0xd4)];[_0x39ccd2(0xbd)];[_0x39ccd2(0xc3)]=!0x1;constructor(_0x37e629){const _0x172043=_0x39ccd2;super(_0x37e629),this[_0x172043(0xcd)]=_0x37e629[_0x172043(0xcd)],this[_0x172043(0xd5)]=_0x37e629[_0x172043(0xd5)],this[_0x172043(0xc7)]=_0x37e629[_0x172043(0xc7)],this[_0x172043(0xc8)]=_0x37e629[_0x172043(0xc8)],this[_0x172043(0xd4)]=_0x37e629[_0x172043(0xd4)],this[_0x172043(0xbd)]=_0x37e629[_0x172043(0xbd)];}async[_0x39ccd2(0xce)](){const _0x4d4fe5=_0x39ccd2;return this[_0x4d4fe5(0xc7)]?this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xd1)]({'content':this[_0x4d4fe5(0xcd)],'actionName':this[_0x4d4fe5(0xc7)],'args':this[_0x4d4fe5(0xc8)]}):this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xcc)]({'content':this[_0x4d4fe5(0xcd)],'message':this[_0x4d4fe5(0xd4)],'model':this[_0x4d4fe5(0xbd)],'outputFormat':_0x4d4fe5(0xca)});}[_0x39ccd2(0xcb)](){const _0x20b789=_0x39ccd2;return{'type':_0x4ac8df[_0x20b789(0xc2)],'content':this[_0x20b789(0xcd)],'version':this[_0x20b789(0xd5)],'label':_0x20b789(0xbe),'uiId':_0x20b789(0xc6)};}[_0x39ccd2(0xb7)](_0x5c0808){const _0x2c2b23=_0x39ccd2,_0x1a0198=new _0x5da522({'editor':this[_0x2c2b23(0xc0)],'documentContextContent':this[_0x2c2b23(0xcd)],..._0x5c0808});return this[_0x2c2b23(0xd0)][_0x2c2b23(0xcf)](_0x1a0198),_0x1a0198[_0x2c2b23(0xd6)](..._0x40dc8c)['to'](this),this[_0x2c2b23(0xb8)](_0x2c2b23(0xd3),_0x1a0198),_0x1a0198;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x12df8c=_0x5574;(function(_0x17925f,_0x4a5a45){const _0x54a63f=_0x5574,_0x38fd35=_0x17925f();while(!![]){try{const _0x2a5965=parseInt(_0x54a63f(0x9f))/0x1*(parseInt(_0x54a63f(0xa1))/0x2)+parseInt(_0x54a63f(0xb0))/0x3+parseInt(_0x54a63f(0xa5))/0x4*(parseInt(_0x54a63f(0xb3))/0x5)+-parseInt(_0x54a63f(0x9c))/0x6+parseInt(_0x54a63f(0x98))/0x7*(parseInt(_0x54a63f(0xa2))/0x8)+parseInt(_0x54a63f(0xa3))/0x9+parseInt(_0x54a63f(0x9b))/0xa*(-parseInt(_0x54a63f(0x97))/0xb);if(_0x2a5965===_0x4a5a45)break;else _0x38fd35['push'](_0x38fd35['shift']());}catch(_0x50ee5e){_0x38fd35['push'](_0x38fd35['shift']());}}}(_0x28a2,0xd76de));import{AIReply as _0x10af95}from'../../aicore/model/aireply.js';function _0x5574(_0x5ab435,_0x4a5b15){const _0x28a25c=_0x28a2();return _0x5574=function(_0x55745f,_0x356c72){_0x55745f=_0x55745f-0x97;let _0x45487a=_0x28a25c[_0x55745f];return _0x45487a;},_0x5574(_0x5ab435,_0x4a5b15);}import{getAttribute as _0x36b44e}from'../../aicore/utils/htmlparser.js';import{uid as _0x4de7ab}from'ckeditor5/src/utils.js';function _0x28a2(){const _0x418fac=['pop','145050wWswPM','children','updateChangeGroups','77295uhkAqI','_getDifferentChangeGroups','parsedContent','documentContextContent','36361996MAToxZ','5784163AowZHx','node','added','10lROzbk','4731492uEfbQH','data-id','map','2073QFaVgu','parsedMergedContent','1594PgPjQo','8ITeSkU','14395779IUziWL','childNodes','220pMPQDj','new','length','cloneNode','isDone','changeGroups','value','pending','removed','modified'];_0x28a2=function(){return _0x418fac;};return _0x28a2();}import{diffArrays as _0xb2308b}from'diff';export class AIActionsReply extends _0x10af95{[_0x12df8c(0xb2)](){const _0x4ccf98=_0x12df8c;if(this[_0x4ccf98(0xa0)]=this[_0x4ccf98(0xb5)][_0x4ccf98(0xa8)](!0x0),0x0==this[_0x4ccf98(0xa0)][_0x4ccf98(0xa4)][_0x4ccf98(0xa7)])return void(this[_0x4ccf98(0xaa)]=[]);const _0x2ec9a7=this[_0x4ccf98(0xb6)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x3cfb0f=>({'node':_0x3cfb0f,'id':_0x36b44e(_0x3cfb0f,_0x4ccf98(0x9d))})),_0x6e729=this[_0x4ccf98(0xa0)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x5a09c=>({'node':_0x5a09c,'id':_0x36b44e(_0x5a09c,_0x4ccf98(0x9d))||_0x4de7ab()})),_0x3767ab=_0xb2308b(_0x2ec9a7,_0x6e729,{'comparator':(_0x4efd33,_0x54c66f)=>_0x4efd33['id']==_0x54c66f['id'],'oneChangePerToken':!0x0});if(!this[_0x4ccf98(0xa9)]){for(;_0x3767ab[_0x4ccf98(0xa7)]&&_0x3767ab[_0x3767ab[_0x4ccf98(0xa7)]-0x1][_0x4ccf98(0xad)];)_0x3767ab[_0x4ccf98(0xaf)]();}const _0x54dc2e=_0x3767ab[_0x4ccf98(0x9e)](_0x25d7e6=>{const _0x51bcae=_0x4ccf98,_0x2db012=_0x25d7e6[_0x51bcae(0x9a)]?_0x51bcae(0xa6):_0x25d7e6[_0x51bcae(0xad)]?_0x51bcae(0xad):_0x51bcae(0xae);return{'node':_0x25d7e6[_0x51bcae(0xab)][0x0][_0x51bcae(0x99)],'type':_0x2db012,'id':_0x25d7e6[_0x51bcae(0xab)][0x0]['id']};});this[_0x4ccf98(0xaa)]=[{'changes':_0x54dc2e,'state':_0x4ccf98(0xac),'index':0x0}];}[_0x12df8c(0xb4)](_0x475068,_0x993c1){return _0x993c1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x42d897=_0x277d;(function(_0x2ce39a,_0x16c94b){var _0x1358f4=_0x277d,_0x58d4e0=_0x2ce39a();while(!![]){try{var _0x506bfd=-parseInt(_0x1358f4(0x161))/0x1+-parseInt(_0x1358f4(0x15f))/0x2+parseInt(_0x1358f4(0x15d))/0x3+-parseInt(_0x1358f4(0x162))/0x4*(parseInt(_0x1358f4(0x159))/0x5)+parseInt(_0x1358f4(0x160))/0x6*(parseInt(_0x1358f4(0x165))/0x7)+parseInt(_0x1358f4(0x154))/0x8+parseInt(_0x1358f4(0x15a))/0x9*(-parseInt(_0x1358f4(0x15e))/0xa);if(_0x506bfd===_0x16c94b)break;else _0x58d4e0['push'](_0x58d4e0['shift']());}catch(_0x542fef){_0x58d4e0['push'](_0x58d4e0['shift']());}}}(_0x1189,0xf2a00));function _0x1189(){var _0x2d970b=['490406GHrfwh','2190MDHYpR','654848xIjfoA','140jHNuLi','textAdapter','AIAdapter','12796Lwsmas','afterInit','14572936MByMvI','name','pluginName','isPremiumPlugin','isOfficialPlugin','123990XbrQKo','2481786SlUYro','aiadapter-text-adapter-not-set','AIRequestError','2473332VzLzGe','20DEBMGk'];_0x1189=function(){return _0x2d970b;};return _0x1189();}import{Plugin as _0x5378d0}from'ckeditor5/src/core.js';import{CKEditorError as _0x33c517}from'ckeditor5/src/utils.js';function _0x277d(_0x36ce40,_0x462e3f){var _0x11891f=_0x1189();return _0x277d=function(_0x277d58,_0x5b8fa7){_0x277d58=_0x277d58-0x154;var _0x61f5d7=_0x11891f[_0x277d58];return _0x61f5d7;},_0x277d(_0x36ce40,_0x462e3f);}export class AIAdapter extends _0x5378d0{static get[_0x42d897(0x156)](){var _0x1582ba=_0x42d897;return _0x1582ba(0x164);}static get[_0x42d897(0x158)](){return!0x0;}static get[_0x42d897(0x157)](){return!0x0;}[_0x42d897(0x166)](){var _0x548cae=_0x42d897;if(!this[_0x548cae(0x163)])throw new _0x33c517(_0x548cae(0x15b),null);}}export class AIRequestError extends Error{constructor(_0x4ef3e7){var _0xc519d0=_0x42d897;super(_0x4ef3e7),this[_0xc519d0(0x155)]=_0xc519d0(0x15c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3c06f7=_0x2ef4;function _0x2ef4(_0x47099c,_0x1cce9e){const _0x21dbd5=_0x21db();return _0x2ef4=function(_0x2ef439,_0x2eda87){_0x2ef439=_0x2ef439-0x84;let _0x4a0e7c=_0x21dbd5[_0x2ef439];return _0x4a0e7c;},_0x2ef4(_0x47099c,_0x1cce9e);}(function(_0x5a6519,_0xcf4bca){const _0x2b0b93=_0x2ef4,_0xe9149a=_0x5a6519();while(!![]){try{const _0x351319=-parseInt(_0x2b0b93(0x85))/0x1+-parseInt(_0x2b0b93(0x84))/0x2+parseInt(_0x2b0b93(0xa5))/0x3*(-parseInt(_0x2b0b93(0x9a))/0x4)+-parseInt(_0x2b0b93(0x87))/0x5+-parseInt(_0x2b0b93(0xa4))/0x6+-parseInt(_0x2b0b93(0x8f))/0x7+-parseInt(_0x2b0b93(0x96))/0x8*(-parseInt(_0x2b0b93(0x9b))/0x9);if(_0x351319===_0xcf4bca)break;else _0xe9149a['push'](_0xe9149a['shift']());}catch(_0x248970){_0xe9149a['push'](_0xe9149a['shift']());}}}(_0x21db,0x52659));import{Plugin as _0x5b64a2}from'ckeditor5/src/core.js';import{CKEditorError as _0x466e38}from'ckeditor5/src/utils.js';function _0x21db(){const _0x33fb58=['AI_ERROR_GET_HEADERS','makeRequest','resolve','assign','catch','signal','3545654BvgFFQ','name','_prepareRequestParameters','plugins','aitextadapter-send-request-failed','object','requires','8PjzkVt','locale','error','get','528PRYexD','20985273lhfCSg','abort','_prepareRequestHeaders','application/json','abortController','init','AI_ERROR_GET_PARAMETERS','editor','textAdapter','3225318XsPZqp','1605iayhiV','reject','aborted','165764uKhmQa','556692UggJbf','AbortError','1199655ubfPTY','sendRequest'];_0x21db=function(){return _0x33fb58;};return _0x21db();}import{AIAdapter as _0x4c57fa,AIRequestError as _0x595db6}from'./aiadapter.js';import{getTranslation as _0x3348a5}from'../utils/common-translations.js';export class AITextAdapter extends _0x5b64a2{[_0x3c06f7(0x9f)];static get[_0x3c06f7(0x95)](){return[_0x4c57fa];}constructor(_0x421fc5){const _0x4c4ade=_0x3c06f7;super(_0x421fc5),this[_0x4c4ade(0x9f)]=new AbortController();}[_0x3c06f7(0xa0)](){const _0x409cfb=_0x3c06f7;this[_0x409cfb(0xa2)][_0x409cfb(0x92)][_0x409cfb(0x99)](_0x4c57fa)[_0x409cfb(0xa3)]=this;}[_0x3c06f7(0x9c)](){const _0x30f802=_0x3c06f7;this[_0x30f802(0x9f)][_0x30f802(0x8e)][_0x30f802(0xa7)]||(this[_0x30f802(0x9f)][_0x30f802(0x9c)](),this[_0x30f802(0x9f)]=new AbortController());}async[_0x3c06f7(0x8a)](_0x322a9b){const _0x19d1f0=_0x3c06f7;return this[_0x19d1f0(0x88)](_0x322a9b)[_0x19d1f0(0x8d)](_0x2d77da=>{const _0x488a32=_0x19d1f0;if(_0x2d77da instanceof _0x595db6)return Promise[_0x488a32(0xa6)](_0x2d77da);if(_0x488a32(0x86)==_0x2d77da[_0x488a32(0x90)])return Promise[_0x488a32(0x8b)]();throw console[_0x488a32(0x98)](_0x2d77da),new _0x466e38(_0x488a32(0x93),null);});}async[_0x3c06f7(0x9d)](_0x32fbb3,_0x1eb41e){const _0x31b533=_0x3c06f7,_0xd78a4a=this[_0x31b533(0xa2)][_0x31b533(0x97)],_0x56196e={'Content-Type':_0x31b533(0x9e)};if(_0x31b533(0x94)==typeof _0x32fbb3)Object[_0x31b533(0x8c)](_0x56196e,_0x32fbb3);else{if(_0x32fbb3)try{const _0x5427d9=await _0x32fbb3(_0x1eb41e);Object[_0x31b533(0x8c)](_0x56196e,_0x5427d9);}catch{return Promise[_0x31b533(0xa6)](new _0x595db6(_0x3348a5(_0xd78a4a,_0x31b533(0x89))));}}return _0x56196e;}async[_0x3c06f7(0x91)](_0x5161a8,_0x36f3a7){const _0x478832=_0x3c06f7,_0x5946d1=this[_0x478832(0xa2)][_0x478832(0x97)];if(_0x478832(0x94)==typeof _0x5161a8)return _0x5161a8;try{return await _0x5161a8(_0x36f3a7);}catch{return Promise[_0x478832(0xa6)](new _0x595db6(_0x3348a5(_0x5946d1,_0x478832(0xa1))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bc041=_0x5a2b;(function(_0x5b0ec1,_0x47e9a8){const _0x28b6ba=_0x5a2b,_0x2ff03e=_0x5b0ec1();while(!![]){try{const _0x48d873=-parseInt(_0x28b6ba(0xfb))/0x1*(-parseInt(_0x28b6ba(0x129))/0x2)+parseInt(_0x28b6ba(0x10d))/0x3*(-parseInt(_0x28b6ba(0x127))/0x4)+-parseInt(_0x28b6ba(0x114))/0x5*(-parseInt(_0x28b6ba(0xda))/0x6)+parseInt(_0x28b6ba(0xde))/0x7*(-parseInt(_0x28b6ba(0x10a))/0x8)+parseInt(_0x28b6ba(0x108))/0x9*(-parseInt(_0x28b6ba(0x107))/0xa)+parseInt(_0x28b6ba(0x11c))/0xb*(parseInt(_0x28b6ba(0xe8))/0xc)+parseInt(_0x28b6ba(0xfc))/0xd;if(_0x48d873===_0x47e9a8)break;else _0x2ff03e['push'](_0x2ff03e['shift']());}catch(_0x2a60cf){_0x2ff03e['push'](_0x2ff03e['shift']());}}}(_0x1f03,0xe34ca));import{AITextAdapter as _0x13fcff}from'./aitextadapter.js';import{AIRequestError as _0x55b63a}from'./aiadapter.js';function _0x1f03(){const _0xd7faa1=['meta.llama','generations','decode','stringify','anthropic.claude','ai.assistant.adapter.aws.bedrockClientConfig','_readAsyncIterableResponse','locale','cohere.command','body','editor','get','read','1197305sXqErX','27733511ZpGppB','ai.assistant.adapter.aws.requestParameters','test','anthropic.claude-v2','_apiUrl','generation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getModelFamily','_processProxyRequest','getReader','completion','2042320vritXQ','72SPeXdx','resolve','56qDfLlA','parse','split','51933CXuZZG','filter','text','Human:\x0a','_requestParameters','_requestHeaders','application/json','7288475ayMIes','Instruction:\x0a','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.','AWSTextAdapter','\x0a[/INST]','config','preparePrompt','_getGeneratedText','1596826oGJBAY','ai21.j2','json','_readStaticResponse','AI_ERROR_UNSUPPORTED_MODEL','bytes','ai.assistant.adapter.aws.apiUrl','_prepareRequestHeaders','signal','map','join','408WhQqwJ','send','2GxFUTM','_bedrockClientConfig','ai.assistant.adapter.aws.requestHeaders','utf-8','6kfowIO','\x0a<</SYS>>\x0a[INST]\x0a','POST','_readStreamableResponse','602917Vhizdq','_prepareRequestParameters','<<SYS>>\x0a','length','_processAWSRequest','pluginName','abortController','define','chunk','\x0a\x0aAssistant:','12DFrxLg','data','sendRequest','bedrock-2023-05-31','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.','completions'];_0x1f03=function(){return _0xd7faa1;};return _0x1f03();}import{BedrockRuntimeClient as _0x31d2f1,InvokeModelCommand as _0x24333e,InvokeModelWithResponseStreamCommand as _0x363e10}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x45b253}from'../utils/common-translations.js';function _0x5a2b(_0x540a48,_0x2a43df){const _0x1f03a9=_0x1f03();return _0x5a2b=function(_0x5a2b16,_0x2d7547){_0x5a2b16=_0x5a2b16-0xda;let _0x44a8b2=_0x1f03a9[_0x5a2b16];return _0x44a8b2;},_0x5a2b(_0x540a48,_0x2a43df);}export class AWSTextAdapter extends _0x13fcff{[_0x2bc041(0x100)];[_0x2bc041(0x112)];[_0x2bc041(0x12a)];[_0x2bc041(0x111)];static get[_0x2bc041(0xe3)](){const _0x3b3f15=_0x2bc041;return _0x3b3f15(0x117);}constructor(_0x44b1fc){const _0x3e0c2d=_0x2bc041;super(_0x44b1fc),_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd))||_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xe5)](_0x3e0c2d(0xfd),{'model':_0x3e0c2d(0xff),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3e0c2d(0xeb),'stream':!0x0}),this[_0x3e0c2d(0x100)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x122)),this[_0x3e0c2d(0x12a)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xf3)),this[_0x3e0c2d(0x112)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x12b)),this[_0x3e0c2d(0x111)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd));}async[_0x2bc041(0xea)]({query:_0xcf9830,context:_0x9b37b7,onData:_0x48dd55,actionId:_0x45fa9d}){const _0x139408=_0x2bc041,{model:_0x2f8523,stream:_0x51e122,..._0x5c92cc}=await this[_0x139408(0xdf)](this[_0x139408(0x111)],_0x45fa9d),_0x51a951={'prompt':await this[_0x139408(0x11a)](_0xcf9830,_0x9b37b7,_0x2f8523,_0x45fa9d),..._0x5c92cc};this[_0x139408(0x100)]?await this[_0x139408(0x104)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55,_0x45fa9d):await this[_0x139408(0xe2)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55);}async[_0x2bc041(0x11a)](_0x14b6dd,_0x187cb2,_0x2c1cad,_0x58f0b5){const _0x41781e=_0x2bc041;let _0x4afbc4,_0x18faf0;return _0x187cb2?(_0x4afbc4=_0x41781e(0xec),_0x18faf0=_0x41781e(0x115)+_0x14b6dd+_0x41781e(0x102)+_0x187cb2):(_0x4afbc4=_0x41781e(0x116),_0x18faf0=_0x14b6dd),_0x41781e(0xee)==this[_0x41781e(0x103)](_0x2c1cad)?_0x41781e(0xe0)+_0x4afbc4+_0x41781e(0xdb)+_0x18faf0+_0x41781e(0x118):_0x41781e(0x110)+_0x4afbc4+'\x0a'+_0x18faf0+_0x41781e(0xe7);}[_0x2bc041(0x103)](_0x1c502c){const _0x48f937=_0x2bc041;if(/^anthropic\.claude/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf2);if(/^ai21\.j2/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0x11d);if(/^cohere\.command/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf6);if(/^meta\.llama/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xee);throw new _0x55b63a(_0x45b253(this[_0x48f937(0xf8)][_0x48f937(0xf5)],_0x48f937(0x120),_0x1c502c));}async[_0x2bc041(0x104)](_0x1703ac,_0x58187b,_0x31845b,_0x1e6938,_0x479df4){const _0x321ab7=_0x2bc041,_0x2d9dc6={'method':_0x321ab7(0xdc),'headers':await this[_0x321ab7(0x123)](this[_0x321ab7(0x112)],_0x479df4),'body':JSON[_0x321ab7(0xf1)]({..._0x1703ac,'model':_0x58187b,'stream':_0x31845b}),'signal':this[_0x321ab7(0xe4)][_0x321ab7(0x124)]},_0x321edb=await fetch(this[_0x321ab7(0x100)],_0x2d9dc6);_0x31845b?await this[_0x321ab7(0xdd)](_0x321edb,_0x58187b,_0x1e6938):await this[_0x321ab7(0x11f)](_0x321edb,_0x58187b,_0x1e6938);}async[_0x2bc041(0xe2)](_0x35e6b1,_0x2c3d59,_0x1874af,_0x316f55){const _0x381eb3=_0x2bc041,_0x2327b7=new _0x31d2f1(this[_0x381eb3(0x12a)]),_0x252978={'body':JSON[_0x381eb3(0xf1)](_0x35e6b1),'contentType':_0x381eb3(0x113),'accept':_0x381eb3(0x113),'modelId':_0x2c3d59};let _0x8a79d3;if(_0x1874af){const _0x480cd3=new _0x363e10(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x480cd3,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0xf4)](_0x8a79d3,_0x2c3d59,_0x316f55);}else{const _0x7dc49=new _0x24333e(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x7dc49,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0x11f)](_0x8a79d3,_0x2c3d59,_0x316f55);}}async[_0x2bc041(0xf4)](_0x2e180a,_0x2c12f7,_0x16ac1d){const _0x48e927=_0x2bc041,_0x384137=_0x2e180a[_0x48e927(0xf7)],_0x3339d1=new TextDecoder(_0x48e927(0x12c));let _0x194bbe='';for await(const _0x5c6e0f of _0x384137)if(_0x5c6e0f[_0x48e927(0xe6)]){const _0x26aaa2=_0x3339d1[_0x48e927(0xf0)](_0x5c6e0f[_0x48e927(0xe6)][_0x48e927(0x121)]),_0x4854eb=JSON[_0x48e927(0x10b)](_0x26aaa2);_0x194bbe+=this[_0x48e927(0x11b)](_0x4854eb,_0x2c12f7),_0x16ac1d(_0x194bbe);}return Promise[_0x48e927(0x109)]();}async[_0x2bc041(0xdd)](_0x245d2e,_0x4b9dae,_0x267406){const _0x522e30=_0x2bc041,_0x228dff=_0x245d2e[_0x522e30(0xf7)],_0x34074c=new TextDecoder(_0x522e30(0x12c)),_0x355201=_0x228dff[_0x522e30(0x105)]();let _0x1c7bee='',_0x1918c8='',_0x5a4c83=!0x1;for(;!_0x5a4c83;){const {done:_0x11f309,value:_0x1e3151}=await _0x355201[_0x522e30(0xfa)]();if(_0x5a4c83=_0x11f309,_0x5a4c83)break;const _0x3bfe96=(_0x1c7bee+_0x34074c[_0x522e30(0xf0)](_0x1e3151))[_0x522e30(0x10c)]('\x0a')[_0x522e30(0x125)](_0x532068=>{const _0x35abe2=_0x522e30;try{return _0x1c7bee='',JSON[_0x35abe2(0x10b)](_0x532068);}catch{return _0x1c7bee=_0x532068,null;}})[_0x522e30(0x10e)](_0x138ea9=>null!==_0x138ea9);_0x3bfe96[_0x522e30(0xe1)]&&(_0x1918c8+=_0x3bfe96[_0x522e30(0x125)](_0x1a04bd=>this[_0x522e30(0x11b)](_0x1a04bd,_0x4b9dae))[_0x522e30(0x126)](''),_0x267406(_0x1918c8));}return Promise[_0x522e30(0x109)]();}async[_0x2bc041(0x11f)](_0x48d2f2,_0x4d2d1e,_0x44f26c){const _0x1f8dd6=_0x2bc041;let _0x4d31d5;return _0x4d31d5=_0x48d2f2 instanceof Response?await _0x48d2f2[_0x1f8dd6(0x11e)]():JSON[_0x1f8dd6(0x10b)](new TextDecoder(_0x1f8dd6(0x12c))[_0x1f8dd6(0xf0)](_0x48d2f2[_0x1f8dd6(0xf7)])),(_0x44f26c(this[_0x1f8dd6(0x11b)](_0x4d31d5,_0x4d2d1e)),Promise[_0x1f8dd6(0x109)]());}[_0x2bc041(0x11b)](_0x9b1131,_0x17e3b4){const _0x5c9c15=_0x2bc041;switch(this[_0x5c9c15(0x103)](_0x17e3b4)){case _0x5c9c15(0xf2):return _0x9b1131[_0x5c9c15(0x106)];case _0x5c9c15(0x11d):return _0x9b1131[_0x5c9c15(0xed)][0x0][_0x5c9c15(0xe9)][_0x5c9c15(0x10f)];case _0x5c9c15(0xf6):return _0x9b1131[_0x5c9c15(0xef)][0x0][_0x5c9c15(0x10f)];case _0x5c9c15(0xee):return _0x9b1131[_0x5c9c15(0x101)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4ee92e=_0x2835;(function(_0x326fee,_0x4f15d8){const _0xaf97a6=_0x2835,_0x34bff5=_0x326fee();while(!![]){try{const _0x4805df=-parseInt(_0xaf97a6(0xbc))/0x1*(parseInt(_0xaf97a6(0xe1))/0x2)+-parseInt(_0xaf97a6(0xe6))/0x3*(-parseInt(_0xaf97a6(0xc6))/0x4)+parseInt(_0xaf97a6(0xc8))/0x5*(parseInt(_0xaf97a6(0xb0))/0x6)+parseInt(_0xaf97a6(0xb8))/0x7*(parseInt(_0xaf97a6(0xf2))/0x8)+-parseInt(_0xaf97a6(0xbe))/0x9*(-parseInt(_0xaf97a6(0xc3))/0xa)+-parseInt(_0xaf97a6(0xbb))/0xb*(parseInt(_0xaf97a6(0xd5))/0xc)+parseInt(_0xaf97a6(0xe2))/0xd;if(_0x4805df===_0x4f15d8)break;else _0x34bff5['push'](_0x34bff5['shift']());}catch(_0x2cfb5b){_0x34bff5['push'](_0x34bff5['shift']());}}}(_0x2b2d,0xe9d6e));import{AITextAdapter as _0x1aeee1}from'./aitextadapter.js';function _0x2835(_0x2dff34,_0x4d71e7){const _0x2b2d7f=_0x2b2d();return _0x2835=function(_0x283541,_0x4eca0b){_0x283541=_0x283541-0xb0;let _0x17613c=_0x2b2d7f[_0x283541];return _0x17613c;},_0x2835(_0x2dff34,_0x4d71e7);}import{AIRequestError as _0x43adc0}from'./aiadapter.js';function _0x2b2d(){const _0x37cb73=['join','choices','gpt-4o','6vrAcUs','_readStaticResponse','https://api.openai.com/v1/chat/completions','abortController','split','parse','pluginName','_prepareRequestHeaders','1978151GFhGpI','data:\x20','stringify','1235179uyVqGx','1864orEevA','define','171duRVHm','body','Moderation','resolve','AI_ERROR_CONTEXT_LENGTH','760570WOYTws','content','reject','3184kzdvFD','_readStreamableResponse','6224505SFBCuN','read','signal','OpenAITextAdapter','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.','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','decode','[DONE]','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.','_apiUrl','editor','204JcsHpP','context_length_exceeded','_cleanUpData','json','_prepareRequestParameters','stream','includes','_requestParameters','user','config','locale','ai.assistant.adapter.openAI.apiUrl','1052SShuCW','959790EbGhYB','POST','delta','system','3018vbkJcM','length','ai.assistant.adapter.openAI.requestHeaders','AI_ERROR_MODERATION','_requestHeaders','Instruction:\x0a','message','filter','ai.assistant.adapter.openAI.requestParameters','text','prepareMessages','replace','8gfwjma','map','_isBufferIncomplete','sendRequest'];_0x2b2d=function(){return _0x37cb73;};return _0x2b2d();}import{getTranslation as _0x28dba0}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x1aeee1{[_0x4ee92e(0xd3)];[_0x4ee92e(0xea)];[_0x4ee92e(0xdc)];static get[_0x4ee92e(0xb6)](){const _0x20a709=_0x4ee92e;return _0x20a709(0xcb);}constructor(_0x223afd){const _0x27d768=_0x4ee92e;super(_0x223afd),_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xe0),_0x27d768(0xb2)),_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee))||_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xee),{'model':_0x27d768(0xf8),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x27d768(0xd3)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe0)),this[_0x27d768(0xea)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe8))||{},this[_0x27d768(0xdc)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee));}async[_0x4ee92e(0xf5)]({query:_0x42a337,context:_0x25ea8b,onData:_0x19ab93,actionId:_0x39278c}){const _0x2e819e=_0x4ee92e,_0x6d2a5c=this[_0x2e819e(0xd4)][_0x2e819e(0xdf)],_0x365397=await this[_0x2e819e(0xf0)](_0x42a337,_0x25ea8b,_0x39278c),_0x14b724=await this[_0x2e819e(0xb7)](this[_0x2e819e(0xea)],_0x39278c),_0x4c7def=await this[_0x2e819e(0xd9)](this[_0x2e819e(0xdc)],_0x39278c),_0x5f4b03={'messages':_0x365397,..._0x4c7def},_0xc846={'method':_0x2e819e(0xe3),'headers':_0x14b724,'body':JSON[_0x2e819e(0xba)](_0x5f4b03),'signal':this[_0x2e819e(0xb3)][_0x2e819e(0xca)]},_0x5eeaab=await fetch(this[_0x2e819e(0xd3)],_0xc846);if(_0x5eeaab['ok'])return _0x4c7def[_0x2e819e(0xda)]?await this[_0x2e819e(0xc7)](_0x5eeaab,_0x19ab93):await this[_0x2e819e(0xb1)](_0x5eeaab,_0x19ab93),Promise[_0x2e819e(0xc1)]();{const _0x4cbd91=await _0x5eeaab[_0x2e819e(0xef)]();return _0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xd6))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xc2)))):_0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xc0))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xe9)))):Promise[_0x2e819e(0xc5)](new Error(_0x4cbd91));}}async[_0x4ee92e(0xf0)](_0x11c0d5,_0x21070b,_0xc5ae7b){const _0x4c895c=_0x4ee92e;let _0x3b77a4,_0x24cc42;return _0x21070b?(_0x3b77a4=_0x4c895c(0xd2),_0x24cc42=_0x4c895c(0xeb)+_0x11c0d5+_0x4c895c(0xce)+_0x21070b):(_0x3b77a4=_0x4c895c(0xcc),_0x24cc42=_0x11c0d5),[{'role':_0x4c895c(0xe5),'content':_0x3b77a4},{'role':_0x4c895c(0xdd),'content':_0x24cc42}];}async[_0x4ee92e(0xc7)](_0x3a8511,_0x3d48d5){const _0x53dc92=_0x4ee92e,_0x4152e2=_0x3a8511[_0x53dc92(0xbf)][_0x53dc92(0xcf)](),_0x386838=new TextDecoder();let _0x624328='',_0xb3bb77='',_0x578abb='',_0x1a86e5=!0x1;for(;!_0x1a86e5;){const {done:_0x686f19,value:_0x24a6d6}=await _0x4152e2[_0x53dc92(0xc9)](),_0x261d2a=_0x624328+_0x386838[_0x53dc92(0xd0)](_0x24a6d6);let _0x1d589a='';_0x1a86e5=_0x686f19;try{_0x1d589a=this[_0x53dc92(0xd7)](_0x261d2a),_0x624328='';}catch{_0x624328=_0x261d2a;continue;}_0xb3bb77+=_0x1d589a,!_0x1a86e5&&this[_0x53dc92(0xf4)](_0xb3bb77)||_0xb3bb77&&(_0x578abb+=_0xb3bb77,_0xb3bb77='',_0x3d48d5(_0x578abb));}return Promise[_0x53dc92(0xc1)]();}async[_0x4ee92e(0xb1)](_0x3042d9,_0x26c179){const _0x2f82f0=_0x4ee92e;return _0x26c179((await _0x3042d9[_0x2f82f0(0xd8)]())[_0x2f82f0(0xf7)][0x0][_0x2f82f0(0xec)][_0x2f82f0(0xc4)]),Promise[_0x2f82f0(0xc1)]();}[_0x4ee92e(0xf4)](_0x393454){const _0x5ccbd6=_0x4ee92e,_0x4b22e6=_0x393454[_0x5ccbd6(0xb4)]('<')[_0x5ccbd6(0xe7)]!==_0x393454[_0x5ccbd6(0xb4)]('>')[_0x5ccbd6(0xe7)],_0x1b3f52=_0x393454[_0x5ccbd6(0xe7)]<0x1e;return _0x4b22e6&&_0x1b3f52;}[_0x4ee92e(0xd7)](_0x1d7408){const _0x4fe7f2=_0x4ee92e;return _0x1d7408[_0x4fe7f2(0xb4)](/\n(?![^{]*\})/g)[_0x4fe7f2(0xf3)](_0x25faf5=>_0x25faf5[_0x4fe7f2(0xf1)](_0x4fe7f2(0xb9),''))[_0x4fe7f2(0xed)](_0x921ccf=>_0x921ccf&&_0x921ccf[_0x4fe7f2(0xe7)]>0x0&&_0x4fe7f2(0xd1)!==_0x921ccf)[_0x4fe7f2(0xf3)](_0x351606=>{const _0x2878fc=_0x4fe7f2,{choices:_0x49d2d0}=JSON[_0x2878fc(0xb5)](_0x351606);if(_0x49d2d0[0x0]?.[_0x2878fc(0xe4)]?.[_0x2878fc(0xc4)])return _0x49d2d0[0x0][_0x2878fc(0xe4)][_0x2878fc(0xc4)];})[_0x4fe7f2(0xed)](_0x4f1862=>_0x4f1862)[_0x4fe7f2(0xf6)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7d0554=_0x4438;function _0x13cd(){const _0x256a8d=['Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Continue','Translate\x20the\x20content\x20to\x20French\x20language.','set','Edit\x20or\x20review','Change\x20tone','forEach','professional','translateChinese','concat','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translatePortuguese','372956ZTibLa','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','ai.assistant.removeCommands','summarize','Friendly','Make\x20longer','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','translateHindi','Translate','translateGerman','simplifyLanguage','Arabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateFrench','Translate\x20the\x20content\x20to\x20English\x20language.','get','legal','generate','changeStyle','config','continue','685419SDgtza','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','French','Translate\x20the\x20content\x20to\x20German\x20language.','414qYNuAn','Hindi','groupId','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','business','ai.assistant.extraCommandGroups','2495850EKhIbU','Portuguese','define','ai.assistant.commands','Summarize','makeLonger','editOrReview','translateSpanish','Direct','improveWriting','push','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','direct','friendly','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20language','246553OiZctA','requires','pluginName','8kuvgkG','locale','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Confident','Legal','Casual','translateEnglish','isOfficialPlugin','Journalism','isPremiumPlugin','Generate\x20from\x20selection','changeTone','Simplified\x20Chinese','Change\x20style','German','filter','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Make\x20shorter','translateArabic','find','Spanish','ai.assistant.preserveComments','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','casual','makeShorter','Poetic','commands','confident','translate','26515XArCFi','394104azGEdn','Translate\x20the\x20content\x20to\x20Hindi\x20language.','AIAssistant','poetic','9UoWkMo','English','journalism','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Business','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','includes','2411640QDJRvN'];_0x13cd=function(){return _0x256a8d;};return _0x13cd();}(function(_0x5d15c7,_0x5212c0){const _0x4549ef=_0x4438,_0x3f9b43=_0x5d15c7();while(!![]){try{const _0x4d71c8=parseInt(_0x4549ef(0x237))/0x1+parseInt(_0x4549ef(0x25a))/0x2+-parseInt(_0x4549ef(0x25e))/0x3*(parseInt(_0x4549ef(0x204))/0x4)+parseInt(_0x4549ef(0x259))/0x5*(-parseInt(_0x4549ef(0x21e))/0x6)+-parseInt(_0x4549ef(0x219))/0x7*(parseInt(_0x4549ef(0x23a))/0x8)+parseInt(_0x4549ef(0x1f6))/0x9+parseInt(_0x4549ef(0x226))/0xa;if(_0x4d71c8===_0x5212c0)break;else _0x3f9b43['push'](_0x3f9b43['shift']());}catch(_0x28cfda){_0x3f9b43['push'](_0x3f9b43['shift']());}}}(_0x13cd,0x35209));function _0x4438(_0x428c67,_0x28d98d){const _0x13cddf=_0x13cd();return _0x4438=function(_0x4438eb,_0x446f96){_0x4438eb=_0x4438eb-0x1f1;let _0x310ccd=_0x13cddf[_0x4438eb];return _0x310ccd;},_0x4438(_0x428c67,_0x28d98d);}import{Plugin as _0x4e9591}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2ff8e5}from'./aiassistantui.js';import{AIAssistantEditing as _0x4c54d2}from'./aiassistantediting.js';import{getTranslation as _0xdd302}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x195ce3}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x4e9591{static get[_0x7d0554(0x238)](){return[_0x2ff8e5,_0x4c54d2];}static get[_0x7d0554(0x239)](){const _0x2d1a70=_0x7d0554;return _0x2d1a70(0x25c);}static get[_0x7d0554(0x241)](){return!0x0;}static get[_0x7d0554(0x243)](){return!0x0;}constructor(_0x26cdf9){const _0x581a74=_0x7d0554;super(_0x26cdf9);const _0x4e2027=_0x26cdf9[_0x581a74(0x217)],_0x455638=_0x26cdf9[_0x581a74(0x23b)];_0x4e2027[_0x581a74(0x228)](_0x581a74(0x24f),!0x0),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x229),getDefaultAICommands(_0x455638)),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x225),[]),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x206),[]);let _0x4487af=_0x195ce3(_0x4e2027[_0x581a74(0x213)](_0x581a74(0x229)),_0x455638);const _0x16b2a4=_0x4e2027[_0x581a74(0x213)](_0x581a74(0x225)),_0x55279a=_0x4e2027[_0x581a74(0x213)](_0x581a74(0x206));_0x16b2a4[_0x581a74(0x1fd)](_0xfa7d5e=>{const _0xca7448=_0x581a74,_0x43f007=_0x4487af[_0xca7448(0x24d)](_0x2c176f=>_0x2c176f[_0xca7448(0x220)]===_0xfa7d5e[_0xca7448(0x220)]);_0x43f007?_0x43f007[_0xca7448(0x256)]=_0x43f007[_0xca7448(0x256)][_0xca7448(0x200)](_0xfa7d5e[_0xca7448(0x256)]):_0x4487af[_0xca7448(0x230)](_0xfa7d5e);}),_0x4487af=_0x4487af[_0x581a74(0x249)](_0x436509=>!_0x55279a[_0x581a74(0x1f5)](_0x436509[_0x581a74(0x220)])),_0x4487af[_0x581a74(0x1fd)](_0x14b201=>{const _0x25b83f=_0x581a74;_0x14b201[_0x25b83f(0x256)]=_0x14b201[_0x25b83f(0x256)][_0x25b83f(0x249)](_0x27d29b=>!_0x55279a[_0x25b83f(0x1f5)](_0x27d29b['id']));}),_0x4e2027[_0x581a74(0x1fa)](_0x581a74(0x229),_0x4487af);}}export function getDefaultAICommands(_0x45b729){const _0x5f2c40=_0x7d0554;return[{'groupId':_0x5f2c40(0x22c),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x1fb)),'commands':[{'id':_0x5f2c40(0x22f),'label':_0xdd302(_0x45b729,_0x5f2c40(0x234)),'prompt':_0x5f2c40(0x252)},{'id':_0x5f2c40(0x254),'label':_0xdd302(_0x45b729,_0x5f2c40(0x24b)),'prompt':_0x5f2c40(0x1f2)},{'id':_0x5f2c40(0x22b),'label':_0xdd302(_0x45b729,_0x5f2c40(0x209)),'prompt':_0x5f2c40(0x1f7)},{'id':_0x5f2c40(0x20e),'label':_0xdd302(_0x45b729,_0x5f2c40(0x236)),'prompt':_0x5f2c40(0x21b)}]},{'groupId':_0x5f2c40(0x215),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x244)),'commands':[{'id':_0x5f2c40(0x207),'label':_0xdd302(_0x45b729,_0x5f2c40(0x22a)),'prompt':_0x5f2c40(0x202)},{'id':_0x5f2c40(0x218),'label':_0xdd302(_0x45b729,_0x5f2c40(0x1f8)),'prompt':_0x5f2c40(0x21a)}]},{'groupId':_0x5f2c40(0x245),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x1fc)),'commands':[{'id':_0x5f2c40(0x1fe),'label':_0xdd302(_0x45b729,_0x5f2c40(0x251)),'prompt':_0x5f2c40(0x205)},{'id':_0x5f2c40(0x253),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23f)),'prompt':_0x5f2c40(0x24a)},{'id':_0x5f2c40(0x232),'label':_0xdd302(_0x45b729,_0x5f2c40(0x22e)),'prompt':_0x5f2c40(0x250)},{'id':_0x5f2c40(0x257),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23d)),'prompt':_0x5f2c40(0x1f4)},{'id':_0x5f2c40(0x233),'label':_0xdd302(_0x45b729,_0x5f2c40(0x208)),'prompt':_0x5f2c40(0x23c)}]},{'groupId':_0x5f2c40(0x216),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x247)),'commands':[{'id':_0x5f2c40(0x224),'label':_0xdd302(_0x45b729,_0x5f2c40(0x1f3)),'prompt':_0x5f2c40(0x222)},{'id':_0x5f2c40(0x214),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23e)),'prompt':_0x5f2c40(0x231)},{'id':_0x5f2c40(0x1f1),'label':_0xdd302(_0x45b729,_0x5f2c40(0x242)),'prompt':_0x5f2c40(0x223)},{'id':_0x5f2c40(0x25d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x255)),'prompt':_0x5f2c40(0x235)}]},{'groupId':_0x5f2c40(0x258),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x20c)),'commands':[{'id':_0x5f2c40(0x240),'label':_0xdd302(_0x45b729,_0x5f2c40(0x25f)),'prompt':_0x5f2c40(0x212)},{'id':_0x5f2c40(0x22d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x24e)),'prompt':_0x5f2c40(0x210)},{'id':_0x5f2c40(0x203),'label':_0xdd302(_0x45b729,_0x5f2c40(0x227)),'prompt':_0x5f2c40(0x201)},{'id':_0x5f2c40(0x20d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x248)),'prompt':_0x5f2c40(0x21d)},{'id':_0x5f2c40(0x211),'label':_0xdd302(_0x45b729,_0x5f2c40(0x21c)),'prompt':_0x5f2c40(0x1f9)},{'id':_0x5f2c40(0x1ff),'label':_0xdd302(_0x45b729,_0x5f2c40(0x246)),'prompt':_0x5f2c40(0x20a)},{'id':_0x5f2c40(0x20b),'label':_0xdd302(_0x45b729,_0x5f2c40(0x21f)),'prompt':_0x5f2c40(0x25b)},{'id':_0x5f2c40(0x24c),'label':_0xdd302(_0x45b729,_0x5f2c40(0x20f)),'prompt':_0x5f2c40(0x221)}]}];}
|