@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +17 -2
- package/dist/index.css +18 -2
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +1 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +2 -0
- 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.d.ts +6 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.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/aireviewmodels.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/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +6 -0
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/augmentation.d.ts +6 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aisuggestioncontainer.css +8 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ff315=_0x23e2;(function(_0x3d297f,_0xa8a6f8){const _0xde409c=_0x23e2,_0x195fd4=_0x3d297f();while(!![]){try{const _0x1d7fed=-parseInt(_0xde409c(0xa0))/0x1+parseInt(_0xde409c(0xa7))/0x2+-parseInt(_0xde409c(0xe9))/0x3+parseInt(_0xde409c(0xdd))/0x4*(-parseInt(_0xde409c(0xc6))/0x5)+parseInt(_0xde409c(0xb7))/0x6*(-parseInt(_0xde409c(0x84))/0x7)+-parseInt(_0xde409c(0x97))/0x8*(-parseInt(_0xde409c(0xf8))/0x9)+parseInt(_0xde409c(0xbb))/0xa;if(_0x1d7fed===_0xa8a6f8)break;else _0x195fd4['push'](_0x195fd4['shift']());}catch(_0x36e154){_0x195fd4['push'](_0x195fd4['shift']());}}}(_0x10ae,0xb02f7));import{Plugin as _0x439309}from'ckeditor5/src/core.js';function _0x23e2(_0x4f6b3f,_0x792d20){const _0x10aec5=_0x10ae();return _0x23e2=function(_0x23e282,_0x18265b){_0x23e282=_0x23e282-0x72;let _0x716f9=_0x10aec5[_0x23e282];return _0x716f9;},_0x23e2(_0x4f6b3f,_0x792d20);}import{AIConnector as _0x104aad}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x26d790}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5376a6,ButtonView as _0x76bd3c,ViewCollection as _0x1ce096}from'ckeditor5/src/ui.js';import{AIEditing as _0x3c12cb}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x387607}from'./model/aiactionsinteraction.js';import{first as _0x33aba}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x2bc3e3,IconRefresh as _0x2bb960}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x460a3b}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x1a636f}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x2bafd1}from'../aicore/utils/common-translations.js';function _0x10ae(){const _0x3f5940=['processor','filter','AIActions','_appendChild','13136qqmtkR','_createInteraction','first','AIConnector','_children','set','random','_applyChanges','listenTo','418422enaMwf','replies','applySuggestion','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','getSelectedContent','_aiConnector','icon','563546QIymhi','warn','insertSuggestion','length','getFirstRange','range','addOperation','_clearSuggestionContent','startsWith','getChild','stickiness','isBusy','_isAbortError','close','showLoader','_getExecuteDataInTable','192xDaEGv','isDocumentOperation','rootName','_refreshInteraction','25302200BXLhZq','_anchorOperation','createRange','pluginName','ai-request-aborted','getChildAtOffset','getDocumentContext','replyCreated','path','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_stopInteraction','5cSeAwf','setSelection','enqueue','nodeAfter','toData','Error\x20updating\x20content\x20in\x20replyContentUpdated:','Attribute','_setLoadingState','start','TrackChangesEditing','push','$graveyard','queueEmptyPromise','ck-ai-custom-action-button','version','hasPendingParts','clone','history','bind','has','requires','_executeAction','createPositionBefore','5279772IopsKF','toggleSuggestionDisplayMode','plugins','abort','remove','schema','insert','stopInteraction','clearLoading','interactionFinished','documentContextContent','applyOperation','2239215HVKIiz','modelToViewWithIds','_filterOperationsOutsideRange','getOperations','AI_ACTIONS_TRY_AGAIN','catch','createPositionAfter','getCommonAncestor','howMany','focus','split','selection','_getExecuteDataRegular','getSelectionAsFragment','model','2880QdiuNU','get','getAncestors','bodyView','changeGroups','includes','_setupCustomViews','_execute','end','replyContentUpdated','AIBalloon','position','_currentInteractionParams','Error\x20updating\x20content\x20in\x20replyCreated:','document','isOfficialPlugin','root','static','_clearLoadingState','executeAction','balloonView','type','_applyOperationsAsSuggestions','isCollapsed','previousInteractions','isPremiumPlugin','editor','createPositionAt','_previousInteractions','slice','message','error','isEnabled','_wrapWithCommonAncestors','_clone','data','_customViews','move','streaming','nextSibling','documentFragment','indexOf','Error\x20refreshing\x20interaction:','_promiseQueue','parent','_clearInteractionHistory','TableSelection','locale','map','stopListening','merge','execute','getRoot','hideLoader','getSelectedTableCells','updateContent','sourcePosition','baseVersion','getLimitElement','add','28658mvvKQA','No\x20current\x20interaction\x20to\x20refresh','getRanges','batch','stop','rename','reinsert','dialogClosed','_interaction','_balloonShowDiff','getSelectedBlocks','change','setLoading','operationsA','open'];_0x10ae=function(){return _0x3f5940;};return _0x10ae();}import{getSuggestionPartsFromReply as _0x30bf15}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x11c8c4}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x309074}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1bc32e,ModelRange as _0x2cdb0a,ModelPosition as _0x487c13,_DetachOperation as _0x68ebfd,transformOperationSets as _0x527676}from'ckeditor5/src/engine.js';export class AIActions extends _0x439309{static get[_0x3ff315(0xda)](){return[_0x104aad,_0x5376a6,_0x3c12cb,_0x460a3b,_0x11c8c4];}static get[_0x3ff315(0xbe)](){const _0x1c0448=_0x3ff315;return _0x1c0448(0x95);}static get[_0x3ff315(0x107)](){return!0x0;}static get[_0x3ff315(0x111)](){return!0x0;}[_0x3ff315(0xa5)];[_0x3ff315(0x114)]=[];[_0x3ff315(0x104)];[_0x3ff315(0x8d)]=!0x1;[_0x3ff315(0x11c)]=new _0x1ce096();[_0x3ff315(0x73)];constructor(_0x1ce86b){const _0x58777d=_0x3ff315;super(_0x1ce86b),this[_0x58777d(0xa5)]=this[_0x58777d(0x112)][_0x58777d(0xdf)][_0x58777d(0xf9)](_0x58777d(0x9a)),this[_0x58777d(0x9c)](_0x58777d(0xb2),!0x1),this[_0x58777d(0x73)]=new _0x1a636f(),this[_0x58777d(0xfe)]();}[_0x3ff315(0xe4)](){const _0x361f23=_0x3ff315;this[_0x361f23(0xc5)]();}get[_0x3ff315(0x110)](){const _0x4ecf3c=_0x3ff315;return this[_0x4ecf3c(0x114)];}async[_0x3ff315(0x10b)](_0x462e73,_0x4260dc,_0x4f37e2){const _0x43afca=_0x3ff315;if(this[_0x43afca(0x112)][_0x43afca(0xdf)][_0x43afca(0xd9)](_0x43afca(0x76))){if(this[_0x43afca(0x112)][_0x43afca(0xdf)][_0x43afca(0xf9)](_0x43afca(0x76))[_0x43afca(0x7e)]()){const {modelFragment:_0x1963a0,anchorData:_0x3a8c8d}=this[_0x43afca(0xb6)]();return this[_0x43afca(0xdb)](_0x462e73,_0x1963a0,_0x3a8c8d,_0x4260dc,_0x4f37e2);}}const {modelFragment:_0x3de4c6,anchorData:_0x41ef9d}=this[_0x43afca(0xf5)]();return this[_0x43afca(0xdb)](_0x462e73,_0x3de4c6,_0x41ef9d,_0x4260dc,_0x4f37e2);}[_0x3ff315(0xf5)](){const _0x12a1fb=_0x3ff315,_0x251211=this[_0x12a1fb(0x112)][_0x12a1fb(0xf7)][_0x12a1fb(0x106)][_0x12a1fb(0xf4)];if(_0x251211[_0x12a1fb(0x10f)]){const _0x3d3423=_0x33aba(_0x251211[_0x12a1fb(0x8e)]())||this[_0x12a1fb(0x112)][_0x12a1fb(0xf7)][_0x12a1fb(0xe2)][_0x12a1fb(0x82)](_0x251211);this[_0x12a1fb(0x112)][_0x12a1fb(0xf7)][_0x12a1fb(0x8f)](_0x1f57f8=>{const _0x2f7357=_0x12a1fb;_0x1f57f8[_0x2f7357(0xc7)](_0x3d3423,'in');});}const _0x3969d1=_0x251211[_0x12a1fb(0xab)](),_0x47d59b=this[_0x12a1fb(0x119)](this[_0x12a1fb(0x112)][_0x12a1fb(0xf7)][_0x12a1fb(0xa4)](_0x251211),_0x3969d1[_0x12a1fb(0xce)],_0x3969d1[_0x12a1fb(0x100)]),_0x40fc04=_0x251211[_0x12a1fb(0xab)]()[_0x12a1fb(0xce)],_0x4361f8=new Map();let _0x22f303=_0x47d59b;for(let _0xefe371=0x0;_0xefe371<_0x40fc04[_0x12a1fb(0xc3)][_0x12a1fb(0xaa)];_0xefe371++)_0x4361f8[_0x12a1fb(0x9c)](_0x22f303,_0x40fc04[_0x12a1fb(0xc3)][_0xefe371]),_0x22f303=_0x22f303[_0x12a1fb(0xb0)](0x0);return{'modelFragment':_0x47d59b,'anchorData':_0x4361f8};}[_0x3ff315(0xb6)](){const _0x5c4494=_0x3ff315,_0x585ac1=this[_0x5c4494(0x112)][_0x5c4494(0xf7)][_0x5c4494(0x106)][_0x5c4494(0xf4)],_0x8ab094=this[_0x5c4494(0x112)][_0x5c4494(0xdf)][_0x5c4494(0xf9)](_0x5c4494(0x76))[_0x5c4494(0xf6)](),_0x2dce3b=_0x585ac1[_0x5c4494(0xab)]()[_0x5c4494(0xce)][_0x5c4494(0x74)][_0x5c4494(0x74)],_0x2c04e0=this[_0x5c4494(0x119)](_0x8ab094,this[_0x5c4494(0x112)][_0x5c4494(0xf7)][_0x5c4494(0xdc)](_0x2dce3b),this[_0x5c4494(0x112)][_0x5c4494(0xf7)][_0x5c4494(0xef)](_0x2dce3b)),_0x80f456=_0x585ac1[_0x5c4494(0xab)]()[_0x5c4494(0xce)],_0x1b8412=new Map();let _0x2f06b6=_0x2c04e0;for(let _0x7e16a2=0x0;_0x7e16a2<_0x80f456[_0x5c4494(0xc3)][_0x5c4494(0xaa)];_0x7e16a2++)if(_0x1b8412[_0x5c4494(0x9c)](_0x2f06b6,_0x80f456[_0x5c4494(0xc3)][_0x7e16a2]),_0x7e16a2<_0x80f456[_0x5c4494(0xc3)][_0x5c4494(0xaa)]-0x1)_0x2f06b6=_0x2f06b6[_0x5c4494(0xb0)](0x0);else{let _0xdd38e0=_0x2f06b6[_0x5c4494(0x11f)];for(;_0xdd38e0;)_0x1b8412[_0x5c4494(0x9c)](_0xdd38e0,_0x80f456[_0x5c4494(0xc3)][_0x7e16a2]),_0xdd38e0=_0xdd38e0[_0x5c4494(0x11f)];}return{'modelFragment':_0x2c04e0,'anchorData':_0x1b8412};}[_0x3ff315(0xdb)](_0x43f2e3,_0x5aa74a,_0x4d5e3f,_0x2e6236,_0x18a4e5){const _0x56c41d=_0x3ff315,_0x45970a=this[_0x56c41d(0x112)][_0x56c41d(0xdf)][_0x56c41d(0xf9)](_0x3c12cb),_0x428a7e=this[_0x56c41d(0x112)][_0x56c41d(0xdf)][_0x56c41d(0xf9)](_0x460a3b),_0x523924=this[_0x56c41d(0x112)][_0x56c41d(0xf7)][_0x56c41d(0x106)][_0x56c41d(0xf4)],_0x2e469b=_0x45970a[_0x56c41d(0xea)](_0x5aa74a),_0x4b7169=this[_0x56c41d(0x112)][_0x56c41d(0x11b)][_0x56c41d(0x93)][_0x56c41d(0xca)](_0x2e469b),_0xcbc2b1=this[_0x56c41d(0x112)][_0x56c41d(0xf7)][_0x56c41d(0x106)][_0x56c41d(0xd4)],_0x4d3e00=[..._0x523924[_0x56c41d(0x86)]()],_0x35de3d=new _0x26d790(this[_0x56c41d(0x112)][_0x56c41d(0x77)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x56c41d(0xa6),'customView':this[_0x56c41d(0x11c)]},'showUnchangedParts':!0x0});return _0x428a7e[_0x56c41d(0x92)]({'index':0x3e8*Math[_0x56c41d(0x9d)]()%0x3e8,'title':_0x2e6236,'icon':_0x18a4e5||_0x2bc3e3,'mainView':_0x35de3d,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x4d3e00}),this[_0x56c41d(0xcd)](_0x35de3d,_0x428a7e),this[_0x56c41d(0x9f)](_0x428a7e,_0x56c41d(0xa2),()=>{const _0x7006c7=_0x56c41d;this[_0x7006c7(0x9e)](_0x5aa74a,_0x4d5e3f,!0x1);}),this[_0x56c41d(0x9f)](_0x428a7e,_0x56c41d(0xa9),()=>{const _0x482bb2=_0x56c41d;this[_0x482bb2(0x9e)](_0x5aa74a,_0x4d5e3f,!0x0);}),this[_0x56c41d(0x9f)](_0x428a7e,_0x56c41d(0x8b),()=>{const _0xfac168=_0x56c41d;this[_0xfac168(0xc5)](),this[_0xfac168(0x75)](),this[_0xfac168(0x79)](_0x428a7e);}),this[_0x56c41d(0x98)](_0x4b7169,_0xcbc2b1,_0x35de3d,_0x428a7e,_0x43f2e3);}[_0x3ff315(0x119)](_0x90e9d6,_0x15493f,_0x67f552){const _0x3fd3c6=_0x3ff315,_0x44453c=this[_0x3fd3c6(0x112)][_0x3fd3c6(0xf7)][_0x3fd3c6(0xbd)](_0x15493f,_0x67f552)[_0x3fd3c6(0xf0)](),_0x52b572=_0x44453c['is'](_0x3fd3c6(0x120))?[]:_0x44453c[_0x3fd3c6(0xfa)]({'includeSelf':!0x0})[_0x3fd3c6(0x115)](0x1);if(_0x52b572[_0x3fd3c6(0xaa)]){const _0x48fb7e=_0x52b572[_0x3fd3c6(0x78)](_0x2caa3d=>_0x2caa3d[_0x3fd3c6(0x11a)](!0x1));for(let _0x2a399c=0x1;_0x2a399c<_0x48fb7e[_0x3fd3c6(0xaa)];_0x2a399c++)_0x48fb7e[_0x2a399c-0x1][_0x3fd3c6(0x96)](_0x48fb7e[_0x2a399c]);return _0x48fb7e[_0x48fb7e[_0x3fd3c6(0xaa)]-0x1][_0x3fd3c6(0x96)](_0x90e9d6),new _0x1bc32e(_0x48fb7e[0x0]);}return _0x90e9d6;}async[_0x3ff315(0x98)](_0x49fa0d,_0x1e8a92,_0x39247f,_0x15d512,_0x3117b0){const _0x36056c=_0x3ff315,_0x5191e5=this[_0x36056c(0x112)];this[_0x36056c(0x104)]={'action':_0x3117b0,'content':_0x49fa0d,'version':_0x1e8a92,'mainView':_0x39247f,'aiBalloon':_0x15d512},this[_0x36056c(0x8c)]=new _0x387607({'connector':this[_0x36056c(0xa5)],'editor':_0x5191e5,'content':_0x49fa0d,'version':_0x1e8a92,..._0x3117b0});const _0x28676e=(_0x5022ab,_0xb3992a,_0x57d372=!0x1,_0x22525f=_0x36056c(0x11e))=>this[_0x36056c(0x73)][_0x36056c(0xc8)](async _0x5af3fa=>{const _0x11ead7=_0x36056c;try{const _0x5b9e5f=_0x30bf15({'editor':_0x5191e5,'changeGroups':_0x5022ab[_0x11ead7(0xfc)],'documentContextContent':_0x5022ab[_0x11ead7(0xe7)],'showDiff':_0x57d372,'trimUnchanged':!0x1});await _0xb3992a[_0x11ead7(0x7f)]({'parts':_0x5b9e5f,'renderingStrategy':_0x22525f,'abortSignal':_0x5af3fa});}catch(_0x35c07f){if(this[_0x11ead7(0xb3)](_0x35c07f))return;throw _0x35c07f;}});this[_0x36056c(0x8c)]['on'](_0x36056c(0xc2),(_0x5aa056,_0x4bc4d3)=>{const _0x46e44d=_0x36056c;_0x39247f[_0x46e44d(0x7d)](),_0x28676e(_0x4bc4d3,_0x39247f)[_0x46e44d(0xee)](_0x18aeda=>{const _0x26ccd0=_0x46e44d;this[_0x26ccd0(0xb3)](_0x18aeda)||console[_0x26ccd0(0x117)](_0x26ccd0(0x105),_0x18aeda);});}),this[_0x36056c(0x8c)]['on'](_0x36056c(0x101),(_0x29451e,_0x2ce2a2)=>{const _0x1d22f3=_0x36056c;_0x28676e(_0x2ce2a2,_0x39247f)[_0x1d22f3(0xee)](_0x2ddbf3=>{const _0x1a294b=_0x1d22f3;this[_0x1a294b(0xb3)](_0x2ddbf3)||console[_0x1a294b(0x117)](_0x1a294b(0xcb),_0x2ddbf3);});}),this[_0x36056c(0x8c)]['on'](_0x36056c(0xe6),async()=>{const _0x2f964c=_0x36056c;try{await this[_0x2f964c(0x10a)](_0x39247f,_0x15d512);}catch(_0x409725){this[_0x2f964c(0xb3)](_0x409725)||console[_0x2f964c(0x117)](_0x2f964c(0xc4),_0x409725);}}),this[_0x36056c(0x9f)](_0x39247f,_0x36056c(0xde),(_0x20cbaa,{showDiff:_0x328546})=>{const _0xe373e3=_0x36056c;this[_0xe373e3(0x8d)]=_0x328546;const _0x157dbe=this[_0xe373e3(0x8c)][_0xe373e3(0xa1)][this[_0xe373e3(0x8c)][_0xe373e3(0xa1)][_0xe373e3(0xaa)]-0x1];_0x157dbe&&_0x28676e(_0x157dbe,_0x39247f,_0x328546,_0xe373e3(0x109))[_0xe373e3(0xee)](_0x544f77=>{const _0x1a13ef=_0xe373e3;this[_0x1a13ef(0xb3)](_0x544f77)||console[_0x1a13ef(0x117)](_0x1a13ef(0xa3),_0x544f77);});}),this[_0x36056c(0xcd)](_0x39247f,_0x15d512);try{return await this[_0x36056c(0x8c)][_0x36056c(0xce)]();}catch(_0x4cadb3){if(this[_0x36056c(0xb3)](_0x4cadb3))return;throw _0x4cadb3;}}[_0x3ff315(0x9e)](_0x585ee2,_0x49bfbe,_0x3a0746){const _0xc30419=_0x3ff315,_0x1c0cfc=this[_0xc30419(0x112)],_0xdf0bd0=this[_0xc30419(0x112)][_0xc30419(0xdf)][_0xc30419(0xf9)](_0x11c8c4),_0x25ac32=this[_0xc30419(0x8c)],_0x31e219=this[_0xc30419(0x8c)][_0xc30419(0xa1)][this[_0xc30419(0x8c)][_0xc30419(0xa1)][_0xc30419(0xaa)]-0x1],_0xeffa06=_0x31e219[_0xc30419(0xfc)];let _0x43ca61=_0x309074({'editor':_0x1c0cfc,'reply':_0x31e219,'interaction':_0x25ac32,'groups':_0xeffa06,'transform':!0x1,'documentCompare':_0xdf0bd0,'documentCompareOptions':{'anchor':_0x1c0cfc[_0xc30419(0xf7)][_0xc30419(0x113)](_0x585ee2,0x0),'markDeletions':_0x3a0746}});_0x43ca61=this[_0xc30419(0xeb)](_0x43ca61,_0x49bfbe);for(const _0x125dc7 of _0x43ca61)this[_0xc30419(0xbc)](_0x49bfbe,_0x125dc7,_0x1c0cfc[_0xc30419(0xf7)][_0xc30419(0x106)][_0xc30419(0x7c)]());const _0x528c05=_0x25ac32[_0xc30419(0xc1)]()[_0xc30419(0xd4)],_0x83e555=_0x1c0cfc[_0xc30419(0xf7)][_0xc30419(0x106)][_0xc30419(0xd7)][_0xc30419(0xec)](_0x528c05),_0x117b68={'document':_0x1c0cfc[_0xc30419(0xf7)][_0xc30419(0x106)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x522c48=_0x527676(_0x43ca61,_0x83e555,_0x117b68)[_0xc30419(0x91)];_0x1c0cfc[_0xc30419(0xf7)][_0xc30419(0x8f)](_0x248651=>{const _0x2926d4=_0xc30419;if(_0x248651[_0x2926d4(0xc7)](_0x1c0cfc[_0x2926d4(0xf7)][_0x2926d4(0x106)][_0x2926d4(0xf4)][_0x2926d4(0xf2)]),_0x3a0746)_0x1c0cfc[_0x2926d4(0xdf)][_0x2926d4(0xf9)](_0x2926d4(0xcf))[_0x2926d4(0x10e)](_0x522c48);else{for(const _0x25e58c of _0x522c48)_0x25e58c[_0x2926d4(0x81)]=_0x1c0cfc[_0x2926d4(0xf7)][_0x2926d4(0x106)][_0x2926d4(0xd4)],_0x248651[_0x2926d4(0x87)][_0x2926d4(0xad)](_0x25e58c),_0x1c0cfc[_0x2926d4(0xf7)][_0x2926d4(0xe8)](_0x25e58c);}}),this[_0xc30419(0x112)][_0xc30419(0xdf)][_0xc30419(0xf9)](_0xc30419(0x102))[_0xc30419(0xb4)]();}[_0x3ff315(0xeb)](_0x13aeec,_0x197fc8){const _0x4e4cf5=_0x3ff315;return _0x13aeec[_0x4e4cf5(0x94)](_0x363dc4=>{const _0x2fcf1e=_0x4e4cf5;if(_0x2fcf1e(0x89)==_0x363dc4[_0x2fcf1e(0x10d)]){const _0x56194c=_0x363dc4[_0x2fcf1e(0x103)][_0x2fcf1e(0xc9)];return!_0x197fc8[_0x2fcf1e(0xd9)](_0x56194c);}if(_0x363dc4[_0x2fcf1e(0x10d)][_0x2fcf1e(0x121)](_0x2fcf1e(0xcc))>-0x1){const _0x2833b6=_0x363dc4[_0x2fcf1e(0xac)][_0x2fcf1e(0xce)][_0x2fcf1e(0xc9)];return!_0x197fc8[_0x2fcf1e(0xd9)](_0x2833b6);}return!0x0;});}[_0x3ff315(0xbc)](_0x26acc0,_0xceead4,_0x5b6011){const _0x1ec710=_0x3ff315,_0x5389d8=_0xceead4[_0x1ec710(0xd6)]();for(const _0x56264e in _0xceead4){const _0x3aafc8=_0xceead4[_0x56264e];_0x3aafc8 instanceof _0x2cdb0a?_0xceead4[_0x56264e]=new _0x2cdb0a(_0x3829f3(_0x3aafc8[_0x1ec710(0xce)]),_0x3829f3(_0x3aafc8[_0x1ec710(0x100)])):_0x3aafc8 instanceof _0x487c13&&(_0xceead4[_0x56264e]=_0x3829f3(_0x3aafc8));}if([_0x1ec710(0xe3),_0x1ec710(0x11d),_0x1ec710(0xe1),_0x1ec710(0x8a),_0x1ec710(0xf3),_0x1ec710(0x7a)][_0x1ec710(0xfd)](_0x5389d8[_0x1ec710(0x10d)])){if(_0x5389d8[_0x1ec710(0xb8)]=!0x1,_0x5389d8[_0x1ec710(0x81)]=null,_0x1ec710(0xe1)==_0x5389d8[_0x1ec710(0x10d)]){const _0x55a92d=_0x5389d8[_0x1ec710(0x80)],_0x34494e=_0x5389d8[_0x1ec710(0xf1)];new _0x68ebfd(_0x55a92d,_0x34494e)[_0x1ec710(0xff)]();}else _0x5389d8[_0x1ec710(0xff)]();}function _0x3829f3(_0x16320b){const _0x112c9d=_0x1ec710;if(_0x112c9d(0xd1)==_0x16320b[_0x112c9d(0x108)][_0x112c9d(0xb9)])return _0x16320b;const _0xb61c77=[];let _0x3134eb=_0x16320b[_0x112c9d(0x108)];for(let _0x5cf975=0x0;_0x5cf975<_0x16320b[_0x112c9d(0xc3)][_0x112c9d(0xaa)];_0x5cf975++){const _0x20b1d8=_0x26acc0[_0x112c9d(0xf9)](_0x3134eb)||0x0;_0xb61c77[_0x5cf975]=_0x16320b[_0x112c9d(0xc3)][_0x5cf975]+_0x20b1d8,_0x3134eb=_0x3134eb[_0x112c9d(0xc0)](_0x16320b[_0x112c9d(0xc3)][_0x5cf975]);}return new _0x487c13(_0x5b6011,_0xb61c77,_0x16320b[_0x112c9d(0xb1)]);}}[_0x3ff315(0xba)](){const _0x11a966=_0x3ff315;if(!this[_0x11a966(0x104)])return void console[_0x11a966(0xa8)](_0x11a966(0x85));this[_0x11a966(0x8c)]&&(this[_0x11a966(0x114)][_0x11a966(0xd0)](this[_0x11a966(0x8c)]),this[_0x11a966(0xc5)]());const {action:_0x512340,content:_0x161bc6,version:_0x7b7327,mainView:_0x2b085b,aiBalloon:_0x2898b4}=this[_0x11a966(0x104)];this[_0x11a966(0xae)](_0x2b085b),_0x2b085b[_0x11a966(0xb5)](),this[_0x11a966(0x98)](_0x161bc6,_0x7b7327,_0x2b085b,_0x2898b4,_0x512340)[_0x11a966(0xee)](_0x56d641=>{const _0x5e4b57=_0x11a966;this[_0x5e4b57(0xb3)](_0x56d641)||console[_0x5e4b57(0x117)](_0x5e4b57(0x72),_0x56d641);});}[_0x3ff315(0xae)](_0x371b06){const _0x57264c=_0x3ff315,_0x12903e=_0x371b06[_0x57264c(0xfb)][_0x57264c(0x9b)];for(;_0x12903e[_0x57264c(0xaa)]>0x0;)_0x12903e[_0x57264c(0xe1)](_0x12903e[_0x57264c(0x99)]);_0x371b06[_0x57264c(0xfb)][_0x57264c(0xd5)]=!0x1;}[_0x3ff315(0xb3)](_0x3689fc){const _0x4287df=_0x3ff315;return!!_0x3689fc[_0x4287df(0x116)]&&_0x3689fc[_0x4287df(0x116)][_0x4287df(0xaf)](_0x4287df(0xbf));}[_0x3ff315(0x75)](){const _0x68eaa5=_0x3ff315;this[_0x68eaa5(0x114)]=[],this[_0x68eaa5(0x104)]=void 0x0;}[_0x3ff315(0xc5)](){const _0x2a03fc=_0x3ff315;this[_0x2a03fc(0x8c)]&&this[_0x2a03fc(0x8c)][_0x2a03fc(0x88)](),this[_0x2a03fc(0x73)][_0x2a03fc(0xe0)](),this[_0x2a03fc(0xb2)]=!0x1;}[_0x3ff315(0xfe)](){const _0x2b2bd7=_0x3ff315,_0x5a3cb8=new _0x76bd3c(this[_0x2b2bd7(0x112)][_0x2b2bd7(0x77)]);_0x5a3cb8[_0x2b2bd7(0x9c)]({'icon':_0x2bb960,'label':_0x2bafd1(this[_0x2b2bd7(0x112)][_0x2b2bd7(0x77)],_0x2b2bd7(0xed)),'tooltip':!0x0,'class':_0x2b2bd7(0xd3)}),_0x5a3cb8[_0x2b2bd7(0xd8)](_0x2b2bd7(0x118))['to'](this,_0x2b2bd7(0xb2),_0x4d375e=>!_0x4d375e),_0x5a3cb8['on'](_0x2b2bd7(0x7b),()=>{const _0x29bfbb=_0x2b2bd7;this[_0x29bfbb(0xba)]();}),this[_0x2b2bd7(0x11c)][_0x2b2bd7(0x83)](_0x5a3cb8);}[_0x3ff315(0xcd)](_0x3c206e,_0x3cc441){const _0x5510b1=_0x3ff315;_0x3c206e[_0x5510b1(0x90)](),_0x3cc441[_0x5510b1(0x10c)][_0x5510b1(0x90)](),this[_0x5510b1(0xb2)]=!0x0;}async[_0x3ff315(0x10a)](_0x4c567f,_0x4b9caa){const _0x2465f1=_0x3ff315;await this[_0x2465f1(0x73)][_0x2465f1(0xd2)],this[_0x2465f1(0xb2)]=!0x1,_0x4c567f[_0x2465f1(0xe5)](),_0x4b9caa[_0x2465f1(0x10c)][_0x2465f1(0xe5)]();}}
|
|
23
|
+
const _0x1cb3af=_0x1d76;(function(_0x4cefa6,_0xb8421b){const _0x23ec7e=_0x1d76,_0x16563c=_0x4cefa6();while(!![]){try{const _0x2e5833=parseInt(_0x23ec7e(0x1fe))/0x1+parseInt(_0x23ec7e(0x1bb))/0x2*(-parseInt(_0x23ec7e(0x16f))/0x3)+-parseInt(_0x23ec7e(0x1e1))/0x4+parseInt(_0x23ec7e(0x1e4))/0x5*(-parseInt(_0x23ec7e(0x17f))/0x6)+-parseInt(_0x23ec7e(0x1f1))/0x7+parseInt(_0x23ec7e(0x18e))/0x8+parseInt(_0x23ec7e(0x1f9))/0x9;if(_0x2e5833===_0xb8421b)break;else _0x16563c['push'](_0x16563c['shift']());}catch(_0x145847){_0x16563c['push'](_0x16563c['shift']());}}}(_0x54b2,0x8963c));function _0x54b2(){const _0x169231=['end','enqueue','modelToViewWithIds','rootName','abort','_executeAction','_appendChild','editor','position','updateContent','streaming','_filterOperationsOutsideRange','_currentInteractionParams','3080072vRDuLC','replyContentUpdated','execute','insertSuggestion','random','addOperation','slice','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','previousInteractions','AIConnector','data','clone','length','_previousInteractions','isPremiumPlugin','TrackChangesEditing','isOfficialPlugin','applySuggestion','_applyChanges','getSelectedBlocks','Error\x20updating\x20content\x20in\x20replyContentUpdated:','changeGroups','parent','_balloonShowDiff','_stopInteraction','showLoader','locale','ck-ai-custom-action-button','nodeAfter','createPositionAt','executeAction','AIBalloon','type','getSelectedTableCells','_getExecuteDataRegular','howMany','reinsert','push','move','startsWith','processor','stickiness','createPositionBefore','isDocumentOperation','_interaction','4610FgSnGi','documentFragment','getDocumentContext','_clearLoadingState','_setupCustomViews','change','static','_clearSuggestionContent','version','Error\x20refreshing\x20interaction:','start','clearLoading','stop','range','operationsA','close','message','toData','ai-request-aborted','icon','replies','filter','_applyOperationsAsSuggestions','indexOf','Attribute','includes','getLimitElement','_setLoadingState','nextSibling','getSelectionAsFragment','schema','baseVersion','isEnabled','interactionFinished','hideLoader','createRange','_refreshInteraction','_wrapWithCommonAncestors','1387744dKjWzb','has','getChild','5560DkEdqW','batch','first','sourcePosition','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getFirstRange','applyOperation','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20in\x20replyCreated:','_promiseQueue','insert','documentContextContent','_clone','813512pTARyi','get','_clearInteractionHistory','setLoading','requires','selection','rename','history','13511358WNecLG','No\x20current\x20interaction\x20to\x20refresh','_anchorOperation','TableSelection','focus','686780mKQPSl','merge','hasPendingParts','model','replyCreated','dialogClosed','map','bodyView','getRanges','getAncestors','warn','isBusy','$graveyard','set','getRoot','_customViews','stopInteraction','queueEmptyPromise','_children','_createInteraction','bind','remove','getCommonAncestor','_isAbortError','getSelectedContent','open','plugins','stopListening','listenTo','pluginName','_getExecuteDataInTable','AIActions','837eRlclm','setSelection','root','catch','add','_aiConnector','isCollapsed','error','path','getOperations','split','createPositionAfter','getChildAtOffset','document','balloonView','AI_ACTIONS_TRY_AGAIN','4878UAZFEb','_execute'];_0x54b2=function(){return _0x169231;};return _0x54b2();}import{Plugin as _0x31fa12}from'ckeditor5/src/core.js';import{AIConnector as _0x2b80a3}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x4f1c9e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0xacc1fc,ButtonView as _0x137a66,ViewCollection as _0x629451}from'ckeditor5/src/ui.js';import{AIEditing as _0xfb7b7f}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x180878}from'./model/aiactionsinteraction.js';import{first as _0x4465b9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5b1099,IconRefresh as _0x225576}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x5757b5}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x12f0a7}from'../aichat/utils/promisequeue.js';function _0x1d76(_0x1e2c37,_0x50fcb7){const _0x54b295=_0x54b2();return _0x1d76=function(_0x1d76f0,_0x2b2324){_0x1d76f0=_0x1d76f0-0x157;let _0x2f4811=_0x54b295[_0x1d76f0];return _0x2f4811;},_0x1d76(_0x1e2c37,_0x50fcb7);}import{getTranslation as _0xa1c139}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4ef310}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3f3e59}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x3f835f}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x139095,ModelRange as _0x2efb5c,ModelPosition as _0x506d80,_DetachOperation as _0x128d9d,transformOperationSets as _0x2cdc5f}from'ckeditor5/src/engine.js';export class AIActions extends _0x31fa12{static get[_0x1cb3af(0x1f5)](){return[_0x2b80a3,_0xacc1fc,_0xfb7b7f,_0x5757b5,_0x3f3e59];}static get[_0x1cb3af(0x16c)](){const _0x5ec162=_0x1cb3af;return _0x5ec162(0x16e);}static get[_0x1cb3af(0x19e)](){return!0x0;}static get[_0x1cb3af(0x19c)](){return!0x0;}[_0x1cb3af(0x174)];[_0x1cb3af(0x19b)]=[];[_0x1cb3af(0x18d)];[_0x1cb3af(0x1a5)]=!0x1;[_0x1cb3af(0x15e)]=new _0x629451();[_0x1cb3af(0x1ed)];constructor(_0x13bbd9){const _0x562e6b=_0x1cb3af;super(_0x13bbd9),this[_0x562e6b(0x174)]=this[_0x562e6b(0x188)][_0x562e6b(0x169)][_0x562e6b(0x1f2)](_0x562e6b(0x197)),this[_0x562e6b(0x15c)](_0x562e6b(0x15a),!0x1),this[_0x562e6b(0x1ed)]=new _0x12f0a7(),this[_0x562e6b(0x1bf)]();}[_0x1cb3af(0x15f)](){const _0x142730=_0x1cb3af;this[_0x142730(0x1a6)]();}get[_0x1cb3af(0x196)](){const _0x232141=_0x1cb3af;return this[_0x232141(0x19b)];}async[_0x1cb3af(0x1ac)](_0x3dd099,_0x10d7c0,_0x4e596b){const _0x4274fd=_0x1cb3af;if(this[_0x4274fd(0x188)][_0x4274fd(0x169)][_0x4274fd(0x1e2)](_0x4274fd(0x1fc))){if(this[_0x4274fd(0x188)][_0x4274fd(0x169)][_0x4274fd(0x1f2)](_0x4274fd(0x1fc))[_0x4274fd(0x1af)]()){const {modelFragment:_0x851391,anchorData:_0x10b172}=this[_0x4274fd(0x16d)]();return this[_0x4274fd(0x186)](_0x3dd099,_0x851391,_0x10b172,_0x10d7c0,_0x4e596b);}}const {modelFragment:_0x5186ca,anchorData:_0xa9ae26}=this[_0x4274fd(0x1b0)]();return this[_0x4274fd(0x186)](_0x3dd099,_0x5186ca,_0xa9ae26,_0x10d7c0,_0x4e596b);}[_0x1cb3af(0x1b0)](){const _0x37eee0=_0x1cb3af,_0x1276df=this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x17c)][_0x37eee0(0x1f6)];if(_0x1276df[_0x37eee0(0x175)]){const _0x2367c6=_0x4465b9(_0x1276df[_0x37eee0(0x1a1)]())||this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x1d9)][_0x37eee0(0x1d5)](_0x1276df);this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x1c0)](_0x1ddb2d=>{const _0x350b54=_0x37eee0;_0x1ddb2d[_0x350b54(0x170)](_0x2367c6,'in');});}const _0x57e380=_0x1276df[_0x37eee0(0x1e9)](),_0x2024c8=this[_0x37eee0(0x1e0)](this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x167)](_0x1276df),_0x57e380[_0x37eee0(0x1c5)],_0x57e380[_0x37eee0(0x181)]),_0x2d2bf8=_0x1276df[_0x37eee0(0x1e9)]()[_0x37eee0(0x1c5)],_0x36eb02=new Map();let _0x756d86=_0x2024c8;for(let _0x4f58ce=0x0;_0x4f58ce<_0x2d2bf8[_0x37eee0(0x177)][_0x37eee0(0x19a)];_0x4f58ce++)_0x36eb02[_0x37eee0(0x15c)](_0x756d86,_0x2d2bf8[_0x37eee0(0x177)][_0x4f58ce]),_0x756d86=_0x756d86[_0x37eee0(0x1e3)](0x0);return{'modelFragment':_0x2024c8,'anchorData':_0x36eb02};}[_0x1cb3af(0x16d)](){const _0x6deb29=_0x1cb3af,_0x4c3740=this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x17c)][_0x6deb29(0x1f6)],_0x1c7df7=this[_0x6deb29(0x188)][_0x6deb29(0x169)][_0x6deb29(0x1f2)](_0x6deb29(0x1fc))[_0x6deb29(0x1d8)](),_0x72c2a5=_0x4c3740[_0x6deb29(0x1e9)]()[_0x6deb29(0x1c5)][_0x6deb29(0x1a4)][_0x6deb29(0x1a4)],_0x4eef9e=this[_0x6deb29(0x1e0)](_0x1c7df7,this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x1b8)](_0x72c2a5),this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x17a)](_0x72c2a5)),_0x400380=_0x4c3740[_0x6deb29(0x1e9)]()[_0x6deb29(0x1c5)],_0xdef5f3=new Map();let _0x3bb688=_0x4eef9e;for(let _0x34a3cb=0x0;_0x34a3cb<_0x400380[_0x6deb29(0x177)][_0x6deb29(0x19a)];_0x34a3cb++)if(_0xdef5f3[_0x6deb29(0x15c)](_0x3bb688,_0x400380[_0x6deb29(0x177)][_0x34a3cb]),_0x34a3cb<_0x400380[_0x6deb29(0x177)][_0x6deb29(0x19a)]-0x1)_0x3bb688=_0x3bb688[_0x6deb29(0x1e3)](0x0);else{let _0x58b528=_0x3bb688[_0x6deb29(0x1d7)];for(;_0x58b528;)_0xdef5f3[_0x6deb29(0x15c)](_0x58b528,_0x400380[_0x6deb29(0x177)][_0x34a3cb]),_0x58b528=_0x58b528[_0x6deb29(0x1d7)];}return{'modelFragment':_0x4eef9e,'anchorData':_0xdef5f3};}[_0x1cb3af(0x186)](_0x427527,_0x3397ad,_0x448ff4,_0xc126d7,_0x521f11){const _0x48e592=_0x1cb3af,_0xd0db6c=this[_0x48e592(0x188)][_0x48e592(0x169)][_0x48e592(0x1f2)](_0xfb7b7f),_0x202820=this[_0x48e592(0x188)][_0x48e592(0x169)][_0x48e592(0x1f2)](_0x5757b5),_0x56613a=this[_0x48e592(0x188)][_0x48e592(0x201)][_0x48e592(0x17c)][_0x48e592(0x1f6)],_0xf10a4c=_0xd0db6c[_0x48e592(0x183)](_0x3397ad),_0x38d5e3=this[_0x48e592(0x188)][_0x48e592(0x198)][_0x48e592(0x1b6)][_0x48e592(0x1cc)](_0xf10a4c),_0x2b521a=this[_0x48e592(0x188)][_0x48e592(0x201)][_0x48e592(0x17c)][_0x48e592(0x1c3)],_0x1b0ac7=[..._0x56613a[_0x48e592(0x157)]()],_0x418e76=new _0x4f1c9e(this[_0x48e592(0x188)][_0x48e592(0x1a8)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x48e592(0x1ce),'customView':this[_0x48e592(0x15e)]},'showUnchangedParts':!0x0});return _0x202820[_0x48e592(0x168)]({'index':0x3e8*Math[_0x48e592(0x192)]()%0x3e8,'title':_0xc126d7,'icon':_0x521f11||_0x5b1099,'mainView':_0x418e76,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x1b0ac7}),this[_0x48e592(0x1d6)](_0x418e76,_0x202820),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x19f),()=>{const _0x31aa3e=_0x48e592;this[_0x31aa3e(0x1a0)](_0x3397ad,_0x448ff4,!0x1);}),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x191),()=>{const _0x48c445=_0x48e592;this[_0x48c445(0x1a0)](_0x3397ad,_0x448ff4,!0x0);}),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x203),()=>{const _0x541f8f=_0x48e592;this[_0x541f8f(0x1a6)](),this[_0x541f8f(0x1f3)](),this[_0x541f8f(0x16a)](_0x202820);}),this[_0x48e592(0x162)](_0x38d5e3,_0x2b521a,_0x418e76,_0x202820,_0x427527);}[_0x1cb3af(0x1e0)](_0x11610e,_0xee6c7c,_0x1cc4e8){const _0x1c8681=_0x1cb3af,_0x189a06=this[_0x1c8681(0x188)][_0x1c8681(0x201)][_0x1c8681(0x1de)](_0xee6c7c,_0x1cc4e8)[_0x1c8681(0x165)](),_0x2e9346=_0x189a06['is'](_0x1c8681(0x1bc))?[]:_0x189a06[_0x1c8681(0x158)]({'includeSelf':!0x0})[_0x1c8681(0x194)](0x1);if(_0x2e9346[_0x1c8681(0x19a)]){const _0x3b48f2=_0x2e9346[_0x1c8681(0x204)](_0x126c81=>_0x126c81[_0x1c8681(0x1f0)](!0x1));for(let _0xa204ed=0x1;_0xa204ed<_0x3b48f2[_0x1c8681(0x19a)];_0xa204ed++)_0x3b48f2[_0xa204ed-0x1][_0x1c8681(0x187)](_0x3b48f2[_0xa204ed]);return _0x3b48f2[_0x3b48f2[_0x1c8681(0x19a)]-0x1][_0x1c8681(0x187)](_0x11610e),new _0x139095(_0x3b48f2[0x0]);}return _0x11610e;}async[_0x1cb3af(0x162)](_0x281c68,_0x46361d,_0x505e8b,_0x38de64,_0x3c3756){const _0x3ee084=_0x1cb3af,_0x1782b9=this[_0x3ee084(0x188)];this[_0x3ee084(0x18d)]={'action':_0x3c3756,'content':_0x281c68,'version':_0x46361d,'mainView':_0x505e8b,'aiBalloon':_0x38de64},this[_0x3ee084(0x1ba)]=new _0x180878({'connector':this[_0x3ee084(0x174)],'editor':_0x1782b9,'content':_0x281c68,'version':_0x46361d,..._0x3c3756});const _0x38fa5a=(_0x746a7e,_0x3f4022,_0x2f205c=!0x1,_0x1c905c=_0x3ee084(0x18b))=>this[_0x3ee084(0x1ed)][_0x3ee084(0x182)](async _0x384d66=>{const _0x5cccd4=_0x3ee084;try{const _0x2cbea1=_0x4ef310({'editor':_0x1782b9,'changeGroups':_0x746a7e[_0x5cccd4(0x1a3)],'documentContextContent':_0x746a7e[_0x5cccd4(0x1ef)],'showDiff':_0x2f205c,'trimUnchanged':!0x1});await _0x3f4022[_0x5cccd4(0x18a)]({'parts':_0x2cbea1,'renderingStrategy':_0x1c905c,'abortSignal':_0x384d66});}catch(_0x122602){if(this[_0x5cccd4(0x166)](_0x122602))return;throw _0x122602;}});this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x202),(_0x3f79b4,_0x56dd99)=>{const _0x1cef79=_0x3ee084;_0x505e8b[_0x1cef79(0x1dd)](),_0x38fa5a(_0x56dd99,_0x505e8b)[_0x1cef79(0x172)](_0x5d29e3=>{const _0x3f47e4=_0x1cef79;this[_0x3f47e4(0x166)](_0x5d29e3)||console[_0x3f47e4(0x176)](_0x3f47e4(0x1ec),_0x5d29e3);});}),this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x18f),(_0x40aced,_0x25a3b3)=>{const _0xbc84ea=_0x3ee084;_0x38fa5a(_0x25a3b3,_0x505e8b)[_0xbc84ea(0x172)](_0x47bd6e=>{const _0x4aabf8=_0xbc84ea;this[_0x4aabf8(0x166)](_0x47bd6e)||console[_0x4aabf8(0x176)](_0x4aabf8(0x1a2),_0x47bd6e);});}),this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x1dc),async()=>{const _0x1f3592=_0x3ee084;try{await this[_0x1f3592(0x1be)](_0x505e8b,_0x38de64);}catch(_0x438a27){this[_0x1f3592(0x166)](_0x438a27)||console[_0x1f3592(0x176)](_0x1f3592(0x1e8),_0x438a27);}}),this[_0x3ee084(0x16b)](_0x505e8b,_0x3ee084(0x1eb),(_0x1c7435,{showDiff:_0x50decf})=>{const _0x574c67=_0x3ee084;this[_0x574c67(0x1a5)]=_0x50decf;const _0x4f7b92=this[_0x574c67(0x1ba)][_0x574c67(0x1cf)][this[_0x574c67(0x1ba)][_0x574c67(0x1cf)][_0x574c67(0x19a)]-0x1];_0x4f7b92&&_0x38fa5a(_0x4f7b92,_0x505e8b,_0x50decf,_0x574c67(0x1c1))[_0x574c67(0x172)](_0x8db8da=>{const _0x445ffb=_0x574c67;this[_0x445ffb(0x166)](_0x8db8da)||console[_0x445ffb(0x176)](_0x445ffb(0x195),_0x8db8da);});}),this[_0x3ee084(0x1d6)](_0x505e8b,_0x38de64);try{return await this[_0x3ee084(0x1ba)][_0x3ee084(0x1c5)]();}catch(_0x502dcc){if(this[_0x3ee084(0x166)](_0x502dcc))return;throw _0x502dcc;}}[_0x1cb3af(0x1a0)](_0x1db3ce,_0x3d948a,_0x36a623){const _0x11f6d5=_0x1cb3af,_0x506dc9=this[_0x11f6d5(0x188)],_0x1631ad=this[_0x11f6d5(0x188)][_0x11f6d5(0x169)][_0x11f6d5(0x1f2)](_0x3f3e59),_0x424d70=this[_0x11f6d5(0x1ba)],_0x11a9fa=this[_0x11f6d5(0x1ba)][_0x11f6d5(0x1cf)][this[_0x11f6d5(0x1ba)][_0x11f6d5(0x1cf)][_0x11f6d5(0x19a)]-0x1],_0x5a33c2=_0x11a9fa[_0x11f6d5(0x1a3)];let _0x20b07b=_0x3f835f({'editor':_0x506dc9,'reply':_0x11a9fa,'interaction':_0x424d70,'groups':_0x5a33c2,'transform':!0x1,'documentCompare':_0x1631ad,'documentCompareOptions':{'anchor':_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x1ab)](_0x1db3ce,0x0),'markDeletions':_0x36a623}});_0x20b07b=this[_0x11f6d5(0x18c)](_0x20b07b,_0x3d948a);for(const _0x1c0aed of _0x20b07b)this[_0x11f6d5(0x1fb)](_0x3d948a,_0x1c0aed,_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)][_0x11f6d5(0x15d)]());const _0x316401=_0x424d70[_0x11f6d5(0x1bd)]()[_0x11f6d5(0x1c3)],_0x2333ea=_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)][_0x11f6d5(0x1f8)][_0x11f6d5(0x178)](_0x316401),_0x402e4e={'document':_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1653bb=_0x2cdc5f(_0x20b07b,_0x2333ea,_0x402e4e)[_0x11f6d5(0x1c9)];_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x1c0)](_0x8fc194=>{const _0x5ac148=_0x11f6d5;if(_0x8fc194[_0x5ac148(0x170)](_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x17c)][_0x5ac148(0x1f6)][_0x5ac148(0x1fd)]),_0x36a623)_0x506dc9[_0x5ac148(0x169)][_0x5ac148(0x1f2)](_0x5ac148(0x19d))[_0x5ac148(0x1d1)](_0x1653bb);else{for(const _0x5a3ffa of _0x1653bb)_0x5a3ffa[_0x5ac148(0x1da)]=_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x17c)][_0x5ac148(0x1c3)],_0x8fc194[_0x5ac148(0x1e5)][_0x5ac148(0x193)](_0x5a3ffa),_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x1ea)](_0x5a3ffa);}}),this[_0x11f6d5(0x188)][_0x11f6d5(0x169)][_0x11f6d5(0x1f2)](_0x11f6d5(0x1ad))[_0x11f6d5(0x1ca)]();}[_0x1cb3af(0x18c)](_0x546e47,_0x5a7a99){const _0x49b0e2=_0x1cb3af;return _0x546e47[_0x49b0e2(0x1d0)](_0x185281=>{const _0x3b5411=_0x49b0e2;if(_0x3b5411(0x1f7)==_0x185281[_0x3b5411(0x1ae)]){const _0x2e1ccc=_0x185281[_0x3b5411(0x189)][_0x3b5411(0x1aa)];return!_0x5a7a99[_0x3b5411(0x1e2)](_0x2e1ccc);}if(_0x185281[_0x3b5411(0x1ae)][_0x3b5411(0x1d2)](_0x3b5411(0x1d3))>-0x1){const _0x148312=_0x185281[_0x3b5411(0x1c8)][_0x3b5411(0x1c5)][_0x3b5411(0x1aa)];return!_0x5a7a99[_0x3b5411(0x1e2)](_0x148312);}return!0x0;});}[_0x1cb3af(0x1fb)](_0x561106,_0x3a8a8e,_0xce6284){const _0x4c8d97=_0x1cb3af,_0x12e3d3=_0x3a8a8e[_0x4c8d97(0x199)]();for(const _0x1b9fe2 in _0x3a8a8e){const _0x3ddadc=_0x3a8a8e[_0x1b9fe2];_0x3ddadc instanceof _0x2efb5c?_0x3a8a8e[_0x1b9fe2]=new _0x2efb5c(_0x9ae258(_0x3ddadc[_0x4c8d97(0x1c5)]),_0x9ae258(_0x3ddadc[_0x4c8d97(0x181)])):_0x3ddadc instanceof _0x506d80&&(_0x3a8a8e[_0x1b9fe2]=_0x9ae258(_0x3ddadc));}if([_0x4c8d97(0x1ee),_0x4c8d97(0x1b4),_0x4c8d97(0x164),_0x4c8d97(0x1b2),_0x4c8d97(0x179),_0x4c8d97(0x1ff)][_0x4c8d97(0x1d4)](_0x12e3d3[_0x4c8d97(0x1ae)])){if(_0x12e3d3[_0x4c8d97(0x1b9)]=!0x1,_0x12e3d3[_0x4c8d97(0x1da)]=null,_0x4c8d97(0x164)==_0x12e3d3[_0x4c8d97(0x1ae)]){const _0x1f09de=_0x12e3d3[_0x4c8d97(0x1e7)],_0x105907=_0x12e3d3[_0x4c8d97(0x1b1)];new _0x128d9d(_0x1f09de,_0x105907)[_0x4c8d97(0x180)]();}else _0x12e3d3[_0x4c8d97(0x180)]();}function _0x9ae258(_0x33f1b0){const _0x34c791=_0x4c8d97;if(_0x34c791(0x15b)==_0x33f1b0[_0x34c791(0x171)][_0x34c791(0x184)])return _0x33f1b0;const _0x3f0a32=[];let _0x53260d=_0x33f1b0[_0x34c791(0x171)];for(let _0x1c44c3=0x0;_0x1c44c3<_0x33f1b0[_0x34c791(0x177)][_0x34c791(0x19a)];_0x1c44c3++){const _0x29a475=_0x561106[_0x34c791(0x1f2)](_0x53260d)||0x0;_0x3f0a32[_0x1c44c3]=_0x33f1b0[_0x34c791(0x177)][_0x1c44c3]+_0x29a475,_0x53260d=_0x53260d[_0x34c791(0x17b)](_0x33f1b0[_0x34c791(0x177)][_0x1c44c3]);}return new _0x506d80(_0xce6284,_0x3f0a32,_0x33f1b0[_0x34c791(0x1b7)]);}}[_0x1cb3af(0x1df)](){const _0x21b413=_0x1cb3af;if(!this[_0x21b413(0x18d)])return void console[_0x21b413(0x159)](_0x21b413(0x1fa));this[_0x21b413(0x1ba)]&&(this[_0x21b413(0x19b)][_0x21b413(0x1b3)](this[_0x21b413(0x1ba)]),this[_0x21b413(0x1a6)]());const {action:_0x3e33f4,content:_0x34d367,version:_0x11d84c,mainView:_0x4efa5e,aiBalloon:_0x38f078}=this[_0x21b413(0x18d)];this[_0x21b413(0x1c2)](_0x4efa5e),_0x4efa5e[_0x21b413(0x1a7)](),this[_0x21b413(0x162)](_0x34d367,_0x11d84c,_0x4efa5e,_0x38f078,_0x3e33f4)[_0x21b413(0x172)](_0x54db50=>{const _0x530351=_0x21b413;this[_0x530351(0x166)](_0x54db50)||console[_0x530351(0x176)](_0x530351(0x1c4),_0x54db50);});}[_0x1cb3af(0x1c2)](_0x144c40){const _0x486114=_0x1cb3af,_0x2c16cf=_0x144c40[_0x486114(0x205)][_0x486114(0x161)];for(;_0x2c16cf[_0x486114(0x19a)]>0x0;)_0x2c16cf[_0x486114(0x164)](_0x2c16cf[_0x486114(0x1e6)]);_0x144c40[_0x486114(0x205)][_0x486114(0x200)]=!0x1;}[_0x1cb3af(0x166)](_0x4b76f6){const _0x6846a6=_0x1cb3af;return!!_0x4b76f6[_0x6846a6(0x1cb)]&&_0x4b76f6[_0x6846a6(0x1cb)][_0x6846a6(0x1b5)](_0x6846a6(0x1cd));}[_0x1cb3af(0x1f3)](){const _0x56e604=_0x1cb3af;this[_0x56e604(0x19b)]=[],this[_0x56e604(0x18d)]=void 0x0;}[_0x1cb3af(0x1a6)](){const _0x33a3d7=_0x1cb3af;this[_0x33a3d7(0x1ba)]&&this[_0x33a3d7(0x1ba)][_0x33a3d7(0x1c7)](),this[_0x33a3d7(0x1ed)][_0x33a3d7(0x185)](),this[_0x33a3d7(0x15a)]=!0x1;}[_0x1cb3af(0x1bf)](){const _0x25effc=_0x1cb3af,_0x2810af=new _0x137a66(this[_0x25effc(0x188)][_0x25effc(0x1a8)]);_0x2810af[_0x25effc(0x15c)]({'icon':_0x225576,'label':_0xa1c139(this[_0x25effc(0x188)][_0x25effc(0x1a8)],_0x25effc(0x17e)),'tooltip':!0x0,'class':_0x25effc(0x1a9)}),_0x2810af[_0x25effc(0x163)](_0x25effc(0x1db))['to'](this,_0x25effc(0x15a),_0x2ce8e0=>!_0x2ce8e0),_0x2810af['on'](_0x25effc(0x190),()=>{const _0x45e0d7=_0x25effc;this[_0x45e0d7(0x1df)]();}),this[_0x25effc(0x15e)][_0x25effc(0x173)](_0x2810af);}[_0x1cb3af(0x1d6)](_0x1b9ef4,_0x40e8ce){const _0x158828=_0x1cb3af;_0x1b9ef4[_0x158828(0x1f4)](),_0x40e8ce[_0x158828(0x17d)][_0x158828(0x1f4)](),this[_0x158828(0x15a)]=!0x0;}async[_0x1cb3af(0x1be)](_0x46220a,_0x83251e){const _0x38f726=_0x1cb3af;await this[_0x38f726(0x1ed)][_0x38f726(0x160)],this[_0x38f726(0x15a)]=!0x1,_0x46220a[_0x38f726(0x1c6)](),_0x83251e[_0x38f726(0x17d)][_0x38f726(0x1c6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3c59(_0x2a6f5a,_0x51e211){const _0x3739ee=_0x3739();return _0x3c59=function(_0x3c5912,_0x16251e){_0x3c5912=_0x3c5912-0x72;let _0x3604cf=_0x3739ee[_0x3c5912];return _0x3604cf;},_0x3c59(_0x2a6f5a,_0x51e211);}const _0x33b1f6=_0x3c59;(function(_0x408062,_0x241d66){const _0x2ff98d=_0x3c59,_0x3582ba=_0x408062();while(!![]){try{const _0x88808d=-parseInt(_0x2ff98d(0x7c))/0x1*(-parseInt(_0x2ff98d(0x78))/0x2)+parseInt(_0x2ff98d(0x8b))/0x3+parseInt(_0x2ff98d(0x77))/0x4*(-parseInt(_0x2ff98d(0x82))/0x5)+-parseInt(_0x2ff98d(0x84))/0x6+parseInt(_0x2ff98d(0x91))/0x7+-parseInt(_0x2ff98d(0x81))/0x8*(-parseInt(_0x2ff98d(0x89))/0x9)+-parseInt(_0x2ff98d(0x90))/0xa;if(_0x88808d===_0x241d66)break;else _0x3582ba['push'](_0x3582ba['shift']());}catch(_0x250a2d){_0x3582ba['push'](_0x3582ba['shift']());}}}(_0x3739,0x7885e));function _0x3739(){const _0x2873c3=['args','executeCustomAction','version','3wKCSIq','push','content','html','replies','1572072UBkHTL','25EUYpGv','userMessage','2720202RvFZtf','sendRequest','replyCreated','Current\x20document','actionName','9KuvPfx','fire','859143ASOdJt','delegate','connector','executeAction','editor','9768740hlbJfd','6660787msqbzZ','TEXT','getDocumentContext','current-document','model','createReply','177124cZOSLj','473918PkVgUP'];_0x3739=function(){return _0x2873c3;};return _0x3739();}import{AIInteraction as _0x5783f7,AI_MODEL_EVENT_NAMES as _0x432e2c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x5f39b2}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x423d16}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x5783f7{[_0x33b1f6(0x7e)];[_0x33b1f6(0x7b)];[_0x33b1f6(0x88)];[_0x33b1f6(0x79)];[_0x33b1f6(0x83)];[_0x33b1f6(0x75)];constructor(_0x2616ed){const _0x627dc4=_0x33b1f6;super(_0x2616ed),this[_0x627dc4(0x7e)]=_0x2616ed[_0x627dc4(0x7e)],this[_0x627dc4(0x7b)]=_0x2616ed[_0x627dc4(0x7b)],this[_0x627dc4(0x88)]=_0x2616ed[_0x627dc4(0x88)],this[_0x627dc4(0x79)]=_0x2616ed[_0x627dc4(0x79)],this[_0x627dc4(0x83)]=_0x2616ed[_0x627dc4(0x83)],this[_0x627dc4(0x75)]=_0x2616ed[_0x627dc4(0x75)];}async[_0x33b1f6(0x85)](){const _0x145b8b=_0x33b1f6;return this[_0x145b8b(0x88)]?this[_0x145b8b(0x8d)][_0x145b8b(0x8e)]({'content':this[_0x145b8b(0x7e)],'actionName':this[_0x145b8b(0x88)],'args':this[_0x145b8b(0x79)]}):this[_0x145b8b(0x8d)][_0x145b8b(0x7a)]({'content':this[_0x145b8b(0x7e)],'message':this[_0x145b8b(0x83)],'model':this[_0x145b8b(0x75)],'outputFormat':_0x145b8b(0x7f)});}[_0x33b1f6(0x73)](){const _0x28ed1e=_0x33b1f6;return{'type':_0x5f39b2[_0x28ed1e(0x72)],'content':this[_0x28ed1e(0x7e)],'version':this[_0x28ed1e(0x7b)],'label':_0x28ed1e(0x87),'uiId':_0x28ed1e(0x74)};}[_0x33b1f6(0x76)](_0x4829a6){const _0x29124e=_0x33b1f6,_0x4a9e7b=new _0x423d16({'editor':this[_0x29124e(0x8f)],'documentContextContent':this[_0x29124e(0x7e)],..._0x4829a6});return this[_0x29124e(0x80)][_0x29124e(0x7d)](_0x4a9e7b),_0x4a9e7b[_0x29124e(0x8c)](..._0x432e2c)['to'](this),this[_0x29124e(0x8a)](_0x29124e(0x86),_0x4a9e7b),_0x4a9e7b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc0e830=_0x161b;(function(_0x3bd1d4,_0x278db8){const _0xaaa2bb=_0x161b,_0x5058e3=_0x3bd1d4();while(!![]){try{const _0xaee224=-parseInt(_0xaaa2bb(0x134))/0x1*(-parseInt(_0xaaa2bb(0x126))/0x2)+parseInt(_0xaaa2bb(0x120))/0x3+parseInt(_0xaaa2bb(0x11d))/0x4+-parseInt(_0xaaa2bb(0x122))/0x5+-parseInt(_0xaaa2bb(0x123))/0x6+-parseInt(_0xaaa2bb(0x124))/0x7*(-parseInt(_0xaaa2bb(0x129))/0x8)+-parseInt(_0xaaa2bb(0x11c))/0x9;if(_0xaee224===_0x278db8)break;else _0x5058e3['push'](_0x5058e3['shift']());}catch(_0x5075ff){_0x5058e3['push'](_0x5058e3['shift']());}}}(_0x32e2,0xd71dd));import{AIReply as _0xac9e6e}from'../../aicore/model/aireply.js';function _0x161b(_0x463ddb,_0x251af3){const _0x32e292=_0x32e2();return _0x161b=function(_0x161bf9,_0x174132){_0x161bf9=_0x161bf9-0x11a;let _0x4bf799=_0x32e292[_0x161bf9];return _0x4bf799;},_0x161b(_0x463ddb,_0x251af3);}import{getAttribute as _0x2307c4}from'../../aicore/utils/htmlparser.js';import{uid as _0x4f5012}from'ckeditor5/src/utils.js';function _0x32e2(){const _0x202352=['data-id','71049TIyZjh','pending','_getDifferentChangeGroups','pop','new','documentContextContent','18396504dMIOkf','7026708AudfpK','childNodes','added','2443359eqIOYV','cloneNode','2803300toSCTm','1202214Puvrrl','7RGZZtB','updateChangeGroups','2QnlRHY','length','value','8352184TVsscS','removed','modified','changeGroups','isDone','node','parsedContent','parsedMergedContent','map','children'];_0x32e2=function(){return _0x202352;};return _0x32e2();}import{diffArrays as _0x3c4182}from'diff';export class AIActionsReply extends _0xac9e6e{[_0xc0e830(0x125)](){const _0x2a6e8b=_0xc0e830;if(this[_0x2a6e8b(0x130)]=this[_0x2a6e8b(0x12f)][_0x2a6e8b(0x121)](!0x0),0x0==this[_0x2a6e8b(0x130)][_0x2a6e8b(0x11e)][_0x2a6e8b(0x127)])return void(this[_0x2a6e8b(0x12c)]=[]);const _0x230809=this[_0x2a6e8b(0x11b)][_0x2a6e8b(0x132)][_0x2a6e8b(0x131)](_0x1cb710=>({'node':_0x1cb710,'id':_0x2307c4(_0x1cb710,_0x2a6e8b(0x133))})),_0x139464=this[_0x2a6e8b(0x130)][_0x2a6e8b(0x132)][_0x2a6e8b(0x131)](_0x4256a8=>({'node':_0x4256a8,'id':_0x2307c4(_0x4256a8,_0x2a6e8b(0x133))||_0x4f5012()})),_0xa83710=_0x3c4182(_0x230809,_0x139464,{'comparator':(_0x57fbb7,_0x1288aa)=>_0x57fbb7['id']==_0x1288aa['id'],'oneChangePerToken':!0x0});if(!this[_0x2a6e8b(0x12d)]){for(;_0xa83710[_0x2a6e8b(0x127)]&&_0xa83710[_0xa83710[_0x2a6e8b(0x127)]-0x1][_0x2a6e8b(0x12a)];)_0xa83710[_0x2a6e8b(0x137)]();}const _0x21d3b1=_0xa83710[_0x2a6e8b(0x131)](_0x4c3adc=>{const _0x1f4892=_0x2a6e8b,_0x2a0a52=_0x4c3adc[_0x1f4892(0x11f)]?_0x1f4892(0x11a):_0x4c3adc[_0x1f4892(0x12a)]?_0x1f4892(0x12a):_0x1f4892(0x12b);return{'node':_0x4c3adc[_0x1f4892(0x128)][0x0][_0x1f4892(0x12e)],'type':_0x2a0a52,'id':_0x4c3adc[_0x1f4892(0x128)][0x0]['id']};});this[_0x2a6e8b(0x12c)]=[{'changes':_0x21d3b1,'state':_0x2a6e8b(0x135),'index':0x0}];}[_0xc0e830(0x136)](_0x3d4535,_0x11efc1){return _0x11efc1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4d5f83=_0x5ae6;(function(_0x29aceb,_0x518c29){var _0x59740b=_0x5ae6,_0x4dba4f=_0x29aceb();while(!![]){try{var _0x4bf0c2=parseInt(_0x59740b(0x1cf))/0x1+parseInt(_0x59740b(0x1c9))/0x2+-parseInt(_0x59740b(0x1ca))/0x3+parseInt(_0x59740b(0x1c4))/0x4*(parseInt(_0x59740b(0x1cc))/0x5)+parseInt(_0x59740b(0x1d4))/0x6+-parseInt(_0x59740b(0x1d0))/0x7+parseInt(_0x59740b(0x1d2))/0x8*(-parseInt(_0x59740b(0x1d1))/0x9);if(_0x4bf0c2===_0x518c29)break;else _0x4dba4f['push'](_0x4dba4f['shift']());}catch(_0x5451f0){_0x4dba4f['push'](_0x4dba4f['shift']());}}}(_0x5019,0xd7e12));function _0x5ae6(_0x38b6ea,_0x52d962){var _0x5019c5=_0x5019();return _0x5ae6=function(_0x5ae6a1,_0x1d8817){_0x5ae6a1=_0x5ae6a1-0x1c3;var _0x4a4d44=_0x5019c5[_0x5ae6a1];return _0x4a4d44;},_0x5ae6(_0x38b6ea,_0x52d962);}function _0x5019(){var _0x5e99f0=['aiadapter-text-adapter-not-set','22976yUFAyy','isPremiumPlugin','pluginName','textAdapter','isOfficialPlugin','2257446hWOgja','792852DkblBW','afterInit','970QjOODS','AIAdapter','AIRequestError','146871NrKDHW','4519431anTtHS','9QmdOrP','11808696xtWSzJ','name','5281896fHkrVK'];_0x5019=function(){return _0x5e99f0;};return _0x5019();}import{Plugin as _0x259aa0}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f86cb}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x259aa0{static get[_0x4d5f83(0x1c6)](){var _0x4728e4=_0x4d5f83;return _0x4728e4(0x1cd);}static get[_0x4d5f83(0x1c8)](){return!0x0;}static get[_0x4d5f83(0x1c5)](){return!0x0;}[_0x4d5f83(0x1cb)](){var _0x19b016=_0x4d5f83;if(!this[_0x19b016(0x1c7)])throw new _0x3f86cb(_0x19b016(0x1c3),null);}}export class AIRequestError extends Error{constructor(_0x2fc461){var _0x5e7956=_0x4d5f83;super(_0x2fc461),this[_0x5e7956(0x1d3)]=_0x5e7956(0x1ce);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5988(){const _0x10873f=['error','abortController','396424LRNlkQ','editor','locale','723605jGkLPJ','11xEqBEA','abort','aitextadapter-send-request-failed','init','81096kdBbMQ','resolve','name','5057myzfkU','418069OFhwAh','requires','_prepareRequestHeaders','application/json','get','6pUtcdV','plugins','AbortError','20olwDPE','object','24eEjLTD','_prepareRequestParameters','reject','signal','AI_ERROR_GET_PARAMETERS','7461290RkhXUG','makeRequest','catch','24SRXEzQ','224721ogCcRW','1213387dgHiYE','AI_ERROR_GET_HEADERS','aborted','assign','sendRequest','textAdapter'];_0x5988=function(){return _0x10873f;};return _0x5988();}const _0x3a735c=_0x198b;(function(_0x551a7b,_0x12b8ca){const _0x500012=_0x198b,_0xd4551f=_0x551a7b();while(!![]){try{const _0x5df2be=parseInt(_0x500012(0x137))/0x1+parseInt(_0x500012(0x12b))/0x2*(parseInt(_0x500012(0x13c))/0x3)+-parseInt(_0x500012(0x13f))/0x4*(-parseInt(_0x500012(0x12e))/0x5)+parseInt(_0x500012(0x141))/0x6*(parseInt(_0x500012(0x14b))/0x7)+parseInt(_0x500012(0x149))/0x8*(parseInt(_0x500012(0x14a))/0x9)+parseInt(_0x500012(0x146))/0xa*(parseInt(_0x500012(0x12f))/0xb)+-parseInt(_0x500012(0x133))/0xc*(parseInt(_0x500012(0x136))/0xd);if(_0x5df2be===_0x12b8ca)break;else _0xd4551f['push'](_0xd4551f['shift']());}catch(_0x419e75){_0xd4551f['push'](_0xd4551f['shift']());}}}(_0x5988,0x676d4));import{Plugin as _0x18b5fc}from'ckeditor5/src/core.js';import{CKEditorError as _0x186b07}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4755ab,AIRequestError as _0x110469}from'./aiadapter.js';function _0x198b(_0x1acedb,_0x416c79){const _0x5988a9=_0x5988();return _0x198b=function(_0x198b52,_0x3c9cc6){_0x198b52=_0x198b52-0x12b;let _0x1e42d0=_0x5988a9[_0x198b52];return _0x1e42d0;},_0x198b(_0x1acedb,_0x416c79);}import{getTranslation as _0x365bad}from'../utils/common-translations.js';export class AITextAdapter extends _0x18b5fc{[_0x3a735c(0x152)];static get[_0x3a735c(0x138)](){return[_0x4755ab];}constructor(_0x33d2e0){const _0x41f3bd=_0x3a735c;super(_0x33d2e0),this[_0x41f3bd(0x152)]=new AbortController();}[_0x3a735c(0x132)](){const _0xed16d6=_0x3a735c;this[_0xed16d6(0x12c)][_0xed16d6(0x13d)][_0xed16d6(0x13b)](_0x4755ab)[_0xed16d6(0x150)]=this;}[_0x3a735c(0x130)](){const _0x341d44=_0x3a735c;this[_0x341d44(0x152)][_0x341d44(0x144)][_0x341d44(0x14d)]||(this[_0x341d44(0x152)][_0x341d44(0x130)](),this[_0x341d44(0x152)]=new AbortController());}async[_0x3a735c(0x147)](_0x362954){const _0x4acace=_0x3a735c;return this[_0x4acace(0x14f)](_0x362954)[_0x4acace(0x148)](_0x4d885d=>{const _0x27327d=_0x4acace;if(_0x4d885d instanceof _0x110469)return Promise[_0x27327d(0x143)](_0x4d885d);if(_0x27327d(0x13e)==_0x4d885d[_0x27327d(0x135)])return Promise[_0x27327d(0x134)]();throw console[_0x27327d(0x151)](_0x4d885d),new _0x186b07(_0x27327d(0x131),null);});}async[_0x3a735c(0x139)](_0x32e09e,_0x13633e){const _0xa23e81=_0x3a735c,_0x4f4539=this[_0xa23e81(0x12c)][_0xa23e81(0x12d)],_0x2c98bd={'Content-Type':_0xa23e81(0x13a)};if(_0xa23e81(0x140)==typeof _0x32e09e)Object[_0xa23e81(0x14e)](_0x2c98bd,_0x32e09e);else{if(_0x32e09e)try{const _0x45ca43=await _0x32e09e(_0x13633e);Object[_0xa23e81(0x14e)](_0x2c98bd,_0x45ca43);}catch{return Promise[_0xa23e81(0x143)](new _0x110469(_0x365bad(_0x4f4539,_0xa23e81(0x14c))));}}return _0x2c98bd;}async[_0x3a735c(0x142)](_0xfe0a32,_0x3a3268){const _0x59d4db=_0x3a735c,_0x5d9842=this[_0x59d4db(0x12c)][_0x59d4db(0x12d)];if(_0x59d4db(0x140)==typeof _0xfe0a32)return _0xfe0a32;try{return await _0xfe0a32(_0x3a3268);}catch{return Promise[_0x59d4db(0x143)](new _0x110469(_0x365bad(_0x5d9842,_0x59d4db(0x145))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xd11b91=_0x5208;(function(_0x45382b,_0x272b86){const _0x3463b1=_0x5208,_0xc5babf=_0x45382b();while(!![]){try{const _0x2cc451=-parseInt(_0x3463b1(0xc7))/0x1+parseInt(_0x3463b1(0xe1))/0x2*(parseInt(_0x3463b1(0x10e))/0x3)+parseInt(_0x3463b1(0xd0))/0x4+parseInt(_0x3463b1(0xcb))/0x5+parseInt(_0x3463b1(0xe2))/0x6+-parseInt(_0x3463b1(0x108))/0x7+-parseInt(_0x3463b1(0xf2))/0x8;if(_0x2cc451===_0x272b86)break;else _0xc5babf['push'](_0xc5babf['shift']());}catch(_0x2d622f){_0xc5babf['push'](_0xc5babf['shift']());}}}(_0x2ae5,0x2fa88));import{AITextAdapter as _0x267a10}from'./aitextadapter.js';function _0x5208(_0x28f9c1,_0x54e7ce){const _0x2ae567=_0x2ae5();return _0x5208=function(_0x520849,_0x44f144){_0x520849=_0x520849-0xc2;let _0x10d535=_0x2ae567[_0x520849];return _0x10d535;},_0x5208(_0x28f9c1,_0x54e7ce);}import{AIRequestError as _0x4cef64}from'./aiadapter.js';function _0x2ae5(){const _0x514c03=['utf-8','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.','completion','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','read','665606aywUGm','115260jzUjGI','join','filter','_readAsyncIterableResponse','generation','test','ai.assistant.adapter.aws.apiUrl','\x0a[/INST]','completions','sendRequest','meta.llama','split','anthropic.claude','_getGeneratedText','data','<<SYS>>\x0a','2490992CHXdih','send','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.','define','generations','editor','_processAWSRequest','_readStaticResponse','_requestParameters','getReader','anthropic.claude-v2','_prepareRequestHeaders','decode','_processProxyRequest','signal','application/json','stringify','ai.assistant.adapter.aws.requestHeaders','resolve','_readStreamableResponse','pluginName','config','651763aAfAal','ai.assistant.adapter.aws.requestParameters','abortController','_prepareRequestParameters','get','Instruction:\x0a','3mKHGpY','_apiUrl','POST','\x0a<</SYS>>\x0a[INST]\x0a','length','_bedrockClientConfig','map','289754eFYgFF','bedrock-2023-05-31','AI_ERROR_UNSUPPORTED_MODEL','parse','1895795XnqAnZ','AWSTextAdapter','Human:\x0a','locale','ai.assistant.adapter.aws.bedrockClientConfig','633092sFkOmO','bytes','preparePrompt','text','ai21.j2','body','getModelFamily','cohere.command','\x0a\x0aAssistant:','chunk','_requestHeaders','json'];_0x2ae5=function(){return _0x514c03;};return _0x2ae5();}import{BedrockRuntimeClient as _0x28343f,InvokeModelCommand as _0x34f0ed,InvokeModelWithResponseStreamCommand as _0x20e054}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x1205ad}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x267a10{[_0xd11b91(0x10f)];[_0xd11b91(0xda)];[_0xd11b91(0xc5)];[_0xd11b91(0xfa)];static get[_0xd11b91(0x106)](){const _0x3af1fe=_0xd11b91;return _0x3af1fe(0xcc);}constructor(_0x49048a){const _0x1bbd83=_0xd11b91;super(_0x49048a),_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0x109))||_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0xf5)](_0x1bbd83(0x109),{'model':_0x1bbd83(0xfc),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1bbd83(0xc8),'stream':!0x0}),this[_0x1bbd83(0x10f)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0xe8)),this[_0x1bbd83(0xc5)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0xcf)),this[_0x1bbd83(0xda)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0x103)),this[_0x1bbd83(0xfa)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0x109));}async[_0xd11b91(0xeb)]({query:_0x5a2e18,context:_0x31f5c7,onData:_0xb8bf63,actionId:_0x374722}){const _0x12fda6=_0xd11b91,{model:_0x50227b,stream:_0x11da70,..._0x37b09e}=await this[_0x12fda6(0x10b)](this[_0x12fda6(0xfa)],_0x374722),_0x4e7f96={'prompt':await this[_0x12fda6(0xd2)](_0x5a2e18,_0x31f5c7,_0x50227b,_0x374722),..._0x37b09e};this[_0x12fda6(0x10f)]?await this[_0x12fda6(0xff)](_0x4e7f96,_0x50227b,_0x11da70,_0xb8bf63,_0x374722):await this[_0x12fda6(0xf8)](_0x4e7f96,_0x50227b,_0x11da70,_0xb8bf63);}async[_0xd11b91(0xd2)](_0x5b6772,_0x474be8,_0x12f26d,_0x58f721){const _0x47f2fb=_0xd11b91;let _0x7ad241,_0x51b2b0;return _0x474be8?(_0x7ad241=_0x47f2fb(0xf4),_0x51b2b0=_0x47f2fb(0x10d)+_0x5b6772+_0x47f2fb(0xdf)+_0x474be8):(_0x7ad241=_0x47f2fb(0xdd),_0x51b2b0=_0x5b6772),_0x47f2fb(0xec)==this[_0x47f2fb(0xd6)](_0x12f26d)?_0x47f2fb(0xf1)+_0x7ad241+_0x47f2fb(0xc3)+_0x51b2b0+_0x47f2fb(0xe9):_0x47f2fb(0xcd)+_0x7ad241+'\x0a'+_0x51b2b0+_0x47f2fb(0xd8);}[_0xd11b91(0xd6)](_0x5a2e9d){const _0x40c978=_0xd11b91;if(/^anthropic\.claude/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xee);if(/^ai21\.j2/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xd4);if(/^cohere\.command/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xd7);if(/^meta\.llama/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xec);throw new _0x4cef64(_0x1205ad(this[_0x40c978(0xf7)][_0x40c978(0xce)],_0x40c978(0xc9),_0x5a2e9d));}async[_0xd11b91(0xff)](_0x1b8dea,_0x944d18,_0x384396,_0x495ee3,_0x816b73){const _0xc7fde9=_0xd11b91,_0x9401ab={'method':_0xc7fde9(0xc2),'headers':await this[_0xc7fde9(0xfd)](this[_0xc7fde9(0xda)],_0x816b73),'body':JSON[_0xc7fde9(0x102)]({..._0x1b8dea,'model':_0x944d18,'stream':_0x384396}),'signal':this[_0xc7fde9(0x10a)][_0xc7fde9(0x100)]},_0x9d44bb=await fetch(this[_0xc7fde9(0x10f)],_0x9401ab);_0x384396?await this[_0xc7fde9(0x105)](_0x9d44bb,_0x944d18,_0x495ee3):await this[_0xc7fde9(0xf9)](_0x9d44bb,_0x944d18,_0x495ee3);}async[_0xd11b91(0xf8)](_0x114522,_0x4fd055,_0x4e7b62,_0xe28a70){const _0x545015=_0xd11b91,_0xb2ad42=new _0x28343f(this[_0x545015(0xc5)]),_0x1f0fbc={'body':JSON[_0x545015(0x102)](_0x114522),'contentType':_0x545015(0x101),'accept':_0x545015(0x101),'modelId':_0x4fd055};let _0x243a4;if(_0x4e7b62){const _0x301944=new _0x20e054(_0x1f0fbc);_0x243a4=await _0xb2ad42[_0x545015(0xf3)](_0x301944,{'abortSignal':this[_0x545015(0x10a)][_0x545015(0x100)]}),await this[_0x545015(0xe5)](_0x243a4,_0x4fd055,_0xe28a70);}else{const _0xcd3e15=new _0x34f0ed(_0x1f0fbc);_0x243a4=await _0xb2ad42[_0x545015(0xf3)](_0xcd3e15,{'abortSignal':this[_0x545015(0x10a)][_0x545015(0x100)]}),await this[_0x545015(0xf9)](_0x243a4,_0x4fd055,_0xe28a70);}}async[_0xd11b91(0xe5)](_0x412b92,_0x328e62,_0x74ab18){const _0x301cc0=_0xd11b91,_0x4215c1=_0x412b92[_0x301cc0(0xd5)],_0x412d8f=new TextDecoder(_0x301cc0(0xdc));let _0x35269c='';for await(const _0x5bcd9d of _0x4215c1)if(_0x5bcd9d[_0x301cc0(0xd9)]){const _0x4bfd09=_0x412d8f[_0x301cc0(0xfe)](_0x5bcd9d[_0x301cc0(0xd9)][_0x301cc0(0xd1)]),_0x21b1d6=JSON[_0x301cc0(0xca)](_0x4bfd09);_0x35269c+=this[_0x301cc0(0xef)](_0x21b1d6,_0x328e62),_0x74ab18(_0x35269c);}return Promise[_0x301cc0(0x104)]();}async[_0xd11b91(0x105)](_0x3dc704,_0x11e440,_0x475a7f){const _0xd1431f=_0xd11b91,_0x291caf=_0x3dc704[_0xd1431f(0xd5)],_0x145e39=new TextDecoder(_0xd1431f(0xdc)),_0x16f4b1=_0x291caf[_0xd1431f(0xfb)]();let _0x602148='',_0x12ad7d='',_0x5f959b=!0x1;for(;!_0x5f959b;){const {done:_0x18f07d,value:_0x572496}=await _0x16f4b1[_0xd1431f(0xe0)]();if(_0x5f959b=_0x18f07d,_0x5f959b)break;const _0x1c069a=(_0x602148+_0x145e39[_0xd1431f(0xfe)](_0x572496))[_0xd1431f(0xed)]('\x0a')[_0xd1431f(0xc6)](_0x4a837d=>{const _0x26f8cc=_0xd1431f;try{return _0x602148='',JSON[_0x26f8cc(0xca)](_0x4a837d);}catch{return _0x602148=_0x4a837d,null;}})[_0xd1431f(0xe4)](_0x45e30a=>null!==_0x45e30a);_0x1c069a[_0xd1431f(0xc4)]&&(_0x12ad7d+=_0x1c069a[_0xd1431f(0xc6)](_0x27aa90=>this[_0xd1431f(0xef)](_0x27aa90,_0x11e440))[_0xd1431f(0xe3)](''),_0x475a7f(_0x12ad7d));}return Promise[_0xd1431f(0x104)]();}async[_0xd11b91(0xf9)](_0x4dc83a,_0x4fb60c,_0x514c4f){const _0x8c8abe=_0xd11b91;let _0x28d9ed;return _0x28d9ed=_0x4dc83a instanceof Response?await _0x4dc83a[_0x8c8abe(0xdb)]():JSON[_0x8c8abe(0xca)](new TextDecoder(_0x8c8abe(0xdc))[_0x8c8abe(0xfe)](_0x4dc83a[_0x8c8abe(0xd5)])),(_0x514c4f(this[_0x8c8abe(0xef)](_0x28d9ed,_0x4fb60c)),Promise[_0x8c8abe(0x104)]());}[_0xd11b91(0xef)](_0x3e011e,_0x4fe64){const _0x7242d7=_0xd11b91;switch(this[_0x7242d7(0xd6)](_0x4fe64)){case _0x7242d7(0xee):return _0x3e011e[_0x7242d7(0xde)];case _0x7242d7(0xd4):return _0x3e011e[_0x7242d7(0xea)][0x0][_0x7242d7(0xf0)][_0x7242d7(0xd3)];case _0x7242d7(0xd7):return _0x3e011e[_0x7242d7(0xf6)][0x0][_0x7242d7(0xd3)];case _0x7242d7(0xec):return _0x3e011e[_0x7242d7(0xe6)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x2d11(){const _0x40a151=['text','content','delta','Instruction:\x0a','context_length_exceeded','json','_requestParameters','4116VqfzCV','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','pluginName','getReader','filter','ai.assistant.adapter.openAI.apiUrl','225VaLcpA','config','map','2517009BLkpGz','decode','data:\x20','message','signal','5798hFgNYE','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.','POST','read','OpenAITextAdapter','26lgmvWe','sendRequest','define','body','_isBufferIncomplete','https://api.openai.com/v1/chat/completions','207720OMdawG','get','_readStaticResponse','ai.assistant.adapter.openAI.requestParameters','36xECRSP','stream','parse','[DONE]','_apiUrl','resolve','editor','AI_ERROR_MODERATION','2044WBMxbp','2037610NKfsfX','_readStreamableResponse','_requestHeaders','252goOzAQ','stringify','_prepareRequestHeaders','choices','_prepareRequestParameters','gpt-4o','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.','ai.assistant.adapter.openAI.requestHeaders','_cleanUpData','Moderation','reject','replace','system','prepareMessages','includes','join','173024TrTnhd','AI_ERROR_CONTEXT_LENGTH','locale','abortController','split','user','length'];_0x2d11=function(){return _0x40a151;};return _0x2d11();}const _0x25e6c1=_0x249c;(function(_0x2364cd,_0x4f9329){const _0xac638a=_0x249c,_0x1f9e0b=_0x2364cd();while(!![]){try{const _0x4a59ab=-parseInt(_0xac638a(0x1b6))/0x1*(-parseInt(_0xac638a(0x1bb))/0x2)+-parseInt(_0xac638a(0x1c1))/0x3+parseInt(_0xac638a(0x1cd))/0x4*(parseInt(_0xac638a(0x1ae))/0x5)+-parseInt(_0xac638a(0x1d1))/0x6*(-parseInt(_0xac638a(0x1ef))/0x7)+parseInt(_0xac638a(0x1e1))/0x8*(parseInt(_0xac638a(0x1c5))/0x9)+parseInt(_0xac638a(0x1ce))/0xa+-parseInt(_0xac638a(0x1b1))/0xb;if(_0x4a59ab===_0x4f9329)break;else _0x1f9e0b['push'](_0x1f9e0b['shift']());}catch(_0x5443ee){_0x1f9e0b['push'](_0x1f9e0b['shift']());}}}(_0x2d11,0x1c24f));import{AITextAdapter as _0x18b178}from'./aitextadapter.js';import{AIRequestError as _0x29c96b}from'./aiadapter.js';function _0x249c(_0x57b5e9,_0x152b09){const _0x2d11f7=_0x2d11();return _0x249c=function(_0x249ca0,_0x3f5e76){_0x249ca0=_0x249ca0-0x1ae;let _0x210839=_0x2d11f7[_0x249ca0];return _0x210839;},_0x249c(_0x57b5e9,_0x152b09);}import{getTranslation as _0x2c0aad}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x18b178{[_0x25e6c1(0x1c9)];[_0x25e6c1(0x1d0)];[_0x25e6c1(0x1ee)];static get[_0x25e6c1(0x1f1)](){const _0x39409a=_0x25e6c1;return _0x39409a(0x1ba);}constructor(_0x89e8c9){const _0x268bb2=_0x25e6c1;super(_0x89e8c9),_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1bd)](_0x268bb2(0x1f4),_0x268bb2(0x1c0)),_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1c4))||_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1bd)](_0x268bb2(0x1c4),{'model':_0x268bb2(0x1d6),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x268bb2(0x1c9)]=_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1f4)),this[_0x268bb2(0x1d0)]=_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1d8))||{},this[_0x268bb2(0x1ee)]=_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1c4));}async[_0x25e6c1(0x1bc)]({query:_0x1c7391,context:_0x372020,onData:_0x1a595f,actionId:_0x11e2b4}){const _0x4bc97e=_0x25e6c1,_0x1d4ad8=this[_0x4bc97e(0x1cb)][_0x4bc97e(0x1e3)],_0x1d7280=await this[_0x4bc97e(0x1de)](_0x1c7391,_0x372020,_0x11e2b4),_0x8f4f20=await this[_0x4bc97e(0x1d3)](this[_0x4bc97e(0x1d0)],_0x11e2b4),_0x560c94=await this[_0x4bc97e(0x1d5)](this[_0x4bc97e(0x1ee)],_0x11e2b4),_0x53f5d5={'messages':_0x1d7280,..._0x560c94},_0x5a66cf={'method':_0x4bc97e(0x1b8),'headers':_0x8f4f20,'body':JSON[_0x4bc97e(0x1d2)](_0x53f5d5),'signal':this[_0x4bc97e(0x1e4)][_0x4bc97e(0x1b5)]},_0x4cce6f=await fetch(this[_0x4bc97e(0x1c9)],_0x5a66cf);if(_0x4cce6f['ok'])return _0x560c94[_0x4bc97e(0x1c6)]?await this[_0x4bc97e(0x1cf)](_0x4cce6f,_0x1a595f):await this[_0x4bc97e(0x1c3)](_0x4cce6f,_0x1a595f),Promise[_0x4bc97e(0x1ca)]();{const _0x2e06fc=await _0x4cce6f[_0x4bc97e(0x1e8)]();return _0x2e06fc[_0x4bc97e(0x1df)](_0x4bc97e(0x1ec))?Promise[_0x4bc97e(0x1db)](new _0x29c96b(_0x2c0aad(_0x1d4ad8,_0x4bc97e(0x1e2)))):_0x2e06fc[_0x4bc97e(0x1df)](_0x4bc97e(0x1da))?Promise[_0x4bc97e(0x1db)](new _0x29c96b(_0x2c0aad(_0x1d4ad8,_0x4bc97e(0x1cc)))):Promise[_0x4bc97e(0x1db)](new Error(_0x2e06fc));}}async[_0x25e6c1(0x1de)](_0x12fe48,_0x59d35c,_0x4e8f2c){const _0x20921b=_0x25e6c1;let _0x1203f8,_0x34d281;return _0x59d35c?(_0x1203f8=_0x20921b(0x1d7),_0x34d281=_0x20921b(0x1eb)+_0x12fe48+_0x20921b(0x1f0)+_0x59d35c):(_0x1203f8=_0x20921b(0x1b7),_0x34d281=_0x12fe48),[{'role':_0x20921b(0x1dd),'content':_0x1203f8},{'role':_0x20921b(0x1e6),'content':_0x34d281}];}async[_0x25e6c1(0x1cf)](_0x32c557,_0x358f81){const _0x45e105=_0x25e6c1,_0x20d1b6=_0x32c557[_0x45e105(0x1be)][_0x45e105(0x1f2)](),_0x255cc0=new TextDecoder();let _0x52dc91='',_0x565d30='',_0x42440b='',_0x584000=!0x1;for(;!_0x584000;){const {done:_0x33d8f3,value:_0x4809a0}=await _0x20d1b6[_0x45e105(0x1b9)](),_0x4052ee=_0x52dc91+_0x255cc0[_0x45e105(0x1b2)](_0x4809a0);let _0x10f872='';_0x584000=_0x33d8f3;try{_0x10f872=this[_0x45e105(0x1d9)](_0x4052ee),_0x52dc91='';}catch{_0x52dc91=_0x4052ee;continue;}_0x565d30+=_0x10f872,!_0x584000&&this[_0x45e105(0x1bf)](_0x565d30)||_0x565d30&&(_0x42440b+=_0x565d30,_0x565d30='',_0x358f81(_0x42440b));}return Promise[_0x45e105(0x1ca)]();}async[_0x25e6c1(0x1c3)](_0x52a9fa,_0x1ac73c){const _0x467ed1=_0x25e6c1;return _0x1ac73c((await _0x52a9fa[_0x467ed1(0x1ed)]())[_0x467ed1(0x1d4)][0x0][_0x467ed1(0x1b4)][_0x467ed1(0x1e9)]),Promise[_0x467ed1(0x1ca)]();}[_0x25e6c1(0x1bf)](_0x1c5559){const _0x3a8f94=_0x25e6c1,_0x3ab3c5=_0x1c5559[_0x3a8f94(0x1e5)]('<')[_0x3a8f94(0x1e7)]!==_0x1c5559[_0x3a8f94(0x1e5)]('>')[_0x3a8f94(0x1e7)],_0x4d08c3=_0x1c5559[_0x3a8f94(0x1e7)]<0x1e;return _0x3ab3c5&&_0x4d08c3;}[_0x25e6c1(0x1d9)](_0x1694a0){const _0x462385=_0x25e6c1;return _0x1694a0[_0x462385(0x1e5)](/\n(?![^{]*\})/g)[_0x462385(0x1b0)](_0x4e6b13=>_0x4e6b13[_0x462385(0x1dc)](_0x462385(0x1b3),''))[_0x462385(0x1f3)](_0x3f66a1=>_0x3f66a1&&_0x3f66a1[_0x462385(0x1e7)]>0x0&&_0x462385(0x1c8)!==_0x3f66a1)[_0x462385(0x1b0)](_0x1e8a08=>{const _0x495dd8=_0x462385,{choices:_0x3127fb}=JSON[_0x495dd8(0x1c7)](_0x1e8a08);if(_0x3127fb[0x0]?.[_0x495dd8(0x1ea)]?.[_0x495dd8(0x1e9)])return _0x3127fb[0x0][_0x495dd8(0x1ea)][_0x495dd8(0x1e9)];})[_0x462385(0x1f3)](_0x1467b4=>_0x1467b4)[_0x462385(0x1e0)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40f93b=_0x5d48;(function(_0x5b7d4e,_0x59489){const _0x58193e=_0x5d48,_0x509d8e=_0x5b7d4e();while(!![]){try{const _0x7a6c7e=parseInt(_0x58193e(0xd7))/0x1+parseInt(_0x58193e(0xc9))/0x2+-parseInt(_0x58193e(0xc7))/0x3+parseInt(_0x58193e(0xae))/0x4+parseInt(_0x58193e(0x109))/0x5*(-parseInt(_0x58193e(0xec))/0x6)+parseInt(_0x58193e(0xb1))/0x7+-parseInt(_0x58193e(0xfc))/0x8*(parseInt(_0x58193e(0xfd))/0x9);if(_0x7a6c7e===_0x59489)break;else _0x509d8e['push'](_0x509d8e['shift']());}catch(_0x300d5b){_0x509d8e['push'](_0x509d8e['shift']());}}}(_0x3266,0xb9bf9));import{Plugin as _0x221c93}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x4dd9db}from'./aiassistantui.js';import{AIAssistantEditing as _0x3c4202}from'./aiassistantediting.js';function _0x3266(){const _0x4f8928=['Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Generate\x20from\x20selection','French','Change\x20tone','casual','translateChinese','Simplified\x20Chinese','Translate','continue','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','professional','editOrReview','generate','ai.assistant.commands','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','2518460dGvsQn','makeLonger','isOfficialPlugin','9812159ANRtSK','filter','Translate\x20the\x20content\x20to\x20German\x20language.','ai.assistant.extraCommandGroups','commands','Continue','ai.assistant.preserveComments','Casual','changeTone','push','Change\x20style','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Direct','ai.assistant.removeCommands','Arabic','Professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Confident','requires','Translate\x20the\x20content\x20to\x20Arabic\x20language.','friendly','2036358mYBGEa','translateHindi','222496QusZKg','Simplify\x20language','set','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','get','summarize','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','improveWriting','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','config','translateEnglish','Edit\x20or\x20review','translatePortuguese','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','704790KrDvGx','Friendly','poetic','translate','makeShorter','Poetic','changeStyle','Spanish','confident','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','business','translateArabic','includes','Journalism','AIAssistant','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20English\x20language.','Business','locale','groupId','Hindi','6yeBaBd','concat','Legal','journalism','English','Make\x20longer','Summarize','Translate\x20the\x20content\x20to\x20Hindi\x20language.','find','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateSpanish','translateFrench','Improve\x20writing','German','forEach','Portuguese','4460504cQEqkf','9BEQiHR','Translate\x20the\x20content\x20to\x20French\x20language.','Make\x20shorter','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','define','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','pluginName','isPremiumPlugin','legal','direct','translateGerman','4251080FFOWaC','simplifyLanguage','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'];_0x3266=function(){return _0x4f8928;};return _0x3266();}function _0x5d48(_0x2280ae,_0x1a351a){const _0x326615=_0x3266();return _0x5d48=function(_0x5d483a,_0x165d35){_0x5d483a=_0x5d483a-0xad;let _0x548d65=_0x326615[_0x5d483a];return _0x548d65;},_0x5d48(_0x2280ae,_0x1a351a);}import{getTranslation as _0x3e7aa3}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0xc743dc}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x221c93{static get[_0x40f93b(0xc4)](){return[_0x4dd9db,_0x3c4202];}static get[_0x40f93b(0x104)](){const _0x3da3cc=_0x40f93b;return _0x3da3cc(0xe5);}static get[_0x40f93b(0xb0)](){return!0x0;}static get[_0x40f93b(0x105)](){return!0x0;}constructor(_0x411a58){const _0x6a3236=_0x40f93b;super(_0x411a58);const _0x33fd26=_0x411a58[_0x6a3236(0xd2)],_0x16c117=_0x411a58[_0x6a3236(0xe9)];_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0xb7),!0x0),_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0x11a),getDefaultAICommands(_0x16c117)),_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0xb4),[]),_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0xbf),[]);let _0x2e451f=_0xc743dc(_0x33fd26[_0x6a3236(0xcd)](_0x6a3236(0x11a)),_0x16c117);const _0x1e89c6=_0x33fd26[_0x6a3236(0xcd)](_0x6a3236(0xb4)),_0x1f50ed=_0x33fd26[_0x6a3236(0xcd)](_0x6a3236(0xbf));_0x1e89c6[_0x6a3236(0xfa)](_0x3e7c4d=>{const _0x2b79d5=_0x6a3236,_0x23e180=_0x2e451f[_0x2b79d5(0xf4)](_0x5eebac=>_0x5eebac[_0x2b79d5(0xea)]===_0x3e7c4d[_0x2b79d5(0xea)]);_0x23e180?_0x23e180[_0x2b79d5(0xb5)]=_0x23e180[_0x2b79d5(0xb5)][_0x2b79d5(0xed)](_0x3e7c4d[_0x2b79d5(0xb5)]):_0x2e451f[_0x2b79d5(0xba)](_0x3e7c4d);}),_0x2e451f=_0x2e451f[_0x6a3236(0xb2)](_0x30d10b=>!_0x1f50ed[_0x6a3236(0xe3)](_0x30d10b[_0x6a3236(0xea)])),_0x2e451f[_0x6a3236(0xfa)](_0x4be54e=>{const _0x5d0d23=_0x6a3236;_0x4be54e[_0x5d0d23(0xb5)]=_0x4be54e[_0x5d0d23(0xb5)][_0x5d0d23(0xb2)](_0x5b5ddb=>!_0x1f50ed[_0x5d0d23(0xe3)](_0x5b5ddb['id']));}),_0x33fd26[_0x6a3236(0xcb)](_0x6a3236(0x11a),_0x2e451f);}}export function getDefaultAICommands(_0xbdf171){const _0x6ab860=_0x40f93b;return[{'groupId':_0x6ab860(0x118),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0xd4)),'commands':[{'id':_0x6ab860(0xd0),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf8)),'prompt':_0x6ab860(0xc2)},{'id':_0x6ab860(0xdb),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xff)),'prompt':_0x6ab860(0x100)},{'id':_0x6ab860(0xaf),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf1)),'prompt':_0x6ab860(0xbc)},{'id':_0x6ab860(0x10a),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xca)),'prompt':_0x6ab860(0x102)}]},{'groupId':_0x6ab860(0x119),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0x10e)),'commands':[{'id':_0x6ab860(0xce),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf2)),'prompt':_0x6ab860(0xe0)},{'id':_0x6ab860(0x115),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xb6)),'prompt':_0x6ab860(0x116)}]},{'groupId':_0x6ab860(0xb9),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0x110)),'commands':[{'id':_0x6ab860(0x117),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xc1)),'prompt':_0x6ab860(0xcc)},{'id':_0x6ab860(0x111),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xb8)),'prompt':_0x6ab860(0xe6)},{'id':_0x6ab860(0x107),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xbe)),'prompt':_0x6ab860(0xd1)},{'id':_0x6ab860(0xdf),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xc3)),'prompt':_0x6ab860(0xad)},{'id':_0x6ab860(0xc6),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xd8)),'prompt':_0x6ab860(0x10c)}]},{'groupId':_0x6ab860(0xdd),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0xbb)),'commands':[{'id':_0x6ab860(0xe1),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xe8)),'prompt':_0x6ab860(0x10d)},{'id':_0x6ab860(0x106),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xee)),'prompt':_0x6ab860(0x10b)},{'id':_0x6ab860(0xef),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xe4)),'prompt':_0x6ab860(0xd6)},{'id':_0x6ab860(0xd9),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xdc)),'prompt':_0x6ab860(0x103)}]},{'groupId':_0x6ab860(0xda),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0x114)),'commands':[{'id':_0x6ab860(0xd3),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf0)),'prompt':_0x6ab860(0xe7)},{'id':_0x6ab860(0xf6),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xde)),'prompt':_0x6ab860(0xf5)},{'id':_0x6ab860(0xd5),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xfb)),'prompt':_0x6ab860(0xbd)},{'id':_0x6ab860(0x108),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf9)),'prompt':_0x6ab860(0xb3)},{'id':_0x6ab860(0xf7),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0x10f)),'prompt':_0x6ab860(0xfe)},{'id':_0x6ab860(0x112),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0x113)),'prompt':_0x6ab860(0xcf)},{'id':_0x6ab860(0xc8),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xeb)),'prompt':_0x6ab860(0xf3)},{'id':_0x6ab860(0xe2),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xc0)),'prompt':_0x6ab860(0xc5)}]}];}
|