@ckeditor/ckeditor5-ai 47.3.0-alpha.4 → 47.3.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/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 _0x4885ef=_0x17a5;function _0x49b9(){const _0x1224ef=['_clone','rootName','indexOf','processor','add','sourcePosition','_wrapWithCommonAncestors','Error\x20refreshing\x20interaction:','_navigateToPrevious','document','get','baseVersion','_disableCustomViews','balloonView','replyCreated','ck-ai-custom-action-button','config','root','toData','stopListening','has','set','start','span','createRange','split','actionName','stopInteraction','getChildAtOffset','AI_ACTIONS_TRY_AGAIN','change','version','addOperation','addNavigationItem','focus','3982872kwtxjw','isLoading','isEnabled','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_anchorOperation','AIConnector','pluginName','getFirstRange','execute','slice','_clearErrorState','ai.availableReplyActions','5028JCfXxg','createPositionAt','ck-ai-interaction-counter','clearLoading','open','toolbar','icon','nodeAfter','startsWith','_navigationPreviousButton','_applyOperationsAsSuggestions','createPositionAfter','$graveyard','interactionFinished','replies','_createInteraction','getSelectionAsFragment','showLoader','_children','upsertAIActionRating','_execute','updateContent','1/1','range','history','_balloonShowDiff','AIBalloon','setErrorState','howMany','bodyView','data','TrackChanges','_isNavigationPreviousButtonInView','getRoot','pending','documentContextContent','remove','error','model','_displayInteractionAtIndex','modelToViewWithIds','streaming','element','AI_ACTIONS_NEXT_INTERACTION','move','stop','miniToolbarView','showError','TableSelection','isCollapsed','_navigateToNext','requires','replyContentUpdated','setLoading','queueEmptyPromise','applySuggestion','editor','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','changeGroups','batch','removeNavigationItem','stopAutoScroll','_customViews','310470rpzQSX','includes','_applyChanges','isDocumentOperation','applyOperation','locale','hasPendingParts','bind','_getExecuteDataRegular','_getExecuteDataInTable','setSelection','listenTo','dialogClosed','close','filter','mainView','_isNavigationNextButtonInView','rename','first','ck-ai-navigation-button\x20ck-ai-next-button','accepted','_filterOperationsOutsideRange','hideError','_promiseQueue','969630aheLdE','insertSuggestion','hasError','AI_ACTIONS_GENERIC_ERROR','map','forEach','upsertCustomAIActionRating','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','reinsert','ai-no-track-changes','Attribute','getSelectedBlocks','_interactions','_currentInteractionIndex','getLimitElement','push','random','_executeAction','isBusy','1437dkxTUO','setTemplate','aiBalloon','state','enqueue','schema','stickiness','showChangesButton','_navigationCounter','2390571GBueOs','position','Error\x20updating\x20content\x20in\x20replyCreated:','AI_ACTIONS_PREVIOUS_INTERACTION','getSelectedContent','_navigationNextButton','_clearSuggestionContent','_stopInteraction','hideLoader','_interactionParams','isPremiumPlugin','_updateNavigationUI','getAncestors','getSelectedTableCells','catch','23624OajLKD','nextSibling','end','getChild','getRanges','abort','2114lxtXbC','parent','merge','_isAbortError','documentFragment','_appendChild','toggleSuggestionDisplayMode','getOperations','areChangesVisible','static','createPositionBefore','_refreshInteraction','selectionRemoved','setChangeGroupState','textContent','startAutoScroll','isOfficialPlugin','_setErrorState','selection','length','insert','type','getDocumentContext','_clearLoadingState','_interaction','replyChangeGroupStateUpdated','operationsA','signal','ai-request-aborted','message','plugins','ck-ai-navigation-button\x20ck-ai-previous-button','_clearInteractionHistory','27710OMWhqq','executeAction','_isNavigationCounterInView','rejected','_setLoadingState','path','AIActions','_setupCustomViews','_aiConnector','Error\x20updating\x20content\x20during\x20navigation:','actionCallId','clone','TrackChangesEditing','clearErrorState','getCommonAncestor'];_0x49b9=function(){return _0x1224ef;};return _0x49b9();}(function(_0x131e3e,_0x36802e){const _0x23019e=_0x17a5,_0x31f58f=_0x131e3e();while(!![]){try{const _0x583b29=parseInt(_0x23019e(0x269))/0x1+-parseInt(_0x23019e(0x281))/0x2+-parseInt(_0x23019e(0x294))/0x3*(-parseInt(_0x23019e(0x22a))/0x4)+-parseInt(_0x23019e(0x1ec))/0x5+parseInt(_0x23019e(0x21e))/0x6+-parseInt(_0x23019e(0x1cb))/0x7*(parseInt(_0x23019e(0x1c5))/0x8)+parseInt(_0x23019e(0x1b6))/0x9;if(_0x583b29===_0x36802e)break;else _0x31f58f['push'](_0x31f58f['shift']());}catch(_0x4b2927){_0x31f58f['push'](_0x31f58f['shift']());}}}(_0x49b9,0x70441));import{Plugin as _0x1482fe}from'ckeditor5/src/core.js';import{AIConnector as _0x2b0ccd}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x26f777}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x389324,ButtonView as _0x1ad5e0,ViewCollection as _0x55fcb6,View as _0x36c0d1}from'ckeditor5/src/ui.js';import{AIEditing as _0x267924}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4b3cba}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x375158,first as _0x5a32b9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x12742a,IconRefresh as _0x57c8a9,IconNextArrow as _0x19d3a9,IconPreviousArrow as _0x3c4c50,IconShowChangesOff as _0x59d370}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x80ef72}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x117c35}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x1a4156}from'../aicore/utils/common-translations.js';function _0x17a5(_0x992e2e,_0x3fcceb){const _0x49b9fe=_0x49b9();return _0x17a5=function(_0x17a57a,_0x2a8202){_0x17a57a=_0x17a57a-0x1b5;let _0x18c3fb=_0x49b9fe[_0x17a57a];return _0x18c3fb;},_0x17a5(_0x992e2e,_0x3fcceb);}import{getSuggestionPartsFromReply as _0x55535d}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x18afea}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x128cfa,getOperationsFromReply as _0x14c6d9}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x3fee9b,ModelRange as _0x962104,ModelPosition as _0x2fe05d,_DetachOperation as _0x9a7b8e,transformOperationSets as _0x1a9de7}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x33cc1d}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x1482fe{static get[_0x4885ef(0x25d)](){return[_0x2b0ccd,_0x389324,_0x267924,_0x80ef72,_0x18afea];}static get[_0x4885ef(0x224)](){const _0x5e6a0c=_0x4885ef;return _0x5e6a0c(0x1f2);}static get[_0x4885ef(0x1db)](){return!0x0;}static get[_0x4885ef(0x1c0)](){return!0x0;}[_0x4885ef(0x1f4)];[_0x4885ef(0x28d)]=[];[_0x4885ef(0x28e)]=0x0;[_0x4885ef(0x1bf)];[_0x4885ef(0x243)]=!0x1;[_0x4885ef(0x268)]=new _0x55fcb6();[_0x4885ef(0x233)];[_0x4885ef(0x1b5)];[_0x4885ef(0x1ee)]=!0x1;[_0x4885ef(0x1bb)];[_0x4885ef(0x24a)]=!0x1;[_0x4885ef(0x279)]=!0x1;[_0x4885ef(0x280)];get[_0x4885ef(0x1e3)](){const _0x1ce3ed=_0x4885ef;return this[_0x1ce3ed(0x28d)][this[_0x1ce3ed(0x28d)][_0x1ce3ed(0x1de)]-0x1];}constructor(_0x1d86cc){const _0x1c5bf8=_0x4885ef;super(_0x1d86cc),this[_0x1c5bf8(0x1f4)]=this[_0x1c5bf8(0x262)][_0x1c5bf8(0x1e9)][_0x1c5bf8(0x205)](_0x1c5bf8(0x223)),this[_0x1c5bf8(0x210)](_0x1c5bf8(0x293),!0x1),this[_0x1c5bf8(0x280)]=new _0x117c35(),this[_0x1c5bf8(0x1f3)]();}[_0x4885ef(0x216)](){const _0x42aa99=_0x4885ef;this[_0x42aa99(0x1bd)]();}async[_0x4885ef(0x1ed)](_0x458840,_0x2c8f65,_0x2ec4be){const _0x3a94c7=_0x4885ef;if(this[_0x3a94c7(0x262)][_0x3a94c7(0x1e9)][_0x3a94c7(0x20f)](_0x3a94c7(0x25a))){if(this[_0x3a94c7(0x262)][_0x3a94c7(0x1e9)][_0x3a94c7(0x205)](_0x3a94c7(0x25a))[_0x3a94c7(0x1c3)]()){const {modelFragment:_0x24ca70,anchorData:_0x23a876}=this[_0x3a94c7(0x272)]();return this[_0x3a94c7(0x292)](_0x458840,_0x24ca70,_0x23a876,_0x2c8f65,_0x2ec4be);}}const {modelFragment:_0x3bcf0d,anchorData:_0x46d2cf}=this[_0x3a94c7(0x271)]();return this[_0x3a94c7(0x292)](_0x458840,_0x3bcf0d,_0x46d2cf,_0x2c8f65,_0x2ec4be);}[_0x4885ef(0x271)](){const _0x263091=_0x4885ef,_0x4400ed=this[_0x263091(0x262)][_0x263091(0x250)][_0x263091(0x204)][_0x263091(0x1dd)];if(_0x4400ed[_0x263091(0x25b)]){const _0xcabaa3=_0x5a32b9(_0x4400ed[_0x263091(0x28c)]())||this[_0x263091(0x262)][_0x263091(0x250)][_0x263091(0x299)][_0x263091(0x28f)](_0x4400ed);this[_0x263091(0x262)][_0x263091(0x250)][_0x263091(0x219)](_0x42cfcf=>{const _0xb25d36=_0x263091;_0x42cfcf[_0xb25d36(0x273)](_0xcabaa3,'in');});}const _0x25852e=_0x4400ed[_0x263091(0x225)](),_0xd70baf=this[_0x263091(0x201)](this[_0x263091(0x262)][_0x263091(0x250)][_0x263091(0x1ba)](_0x4400ed),_0x25852e[_0x263091(0x211)],_0x25852e[_0x263091(0x1c7)]),_0x58708a=_0x4400ed[_0x263091(0x225)]()[_0x263091(0x211)],_0x6d14cf=new Map();let _0x1db70d=_0xd70baf;for(let _0x5203e5=0x0;_0x5203e5<_0x58708a[_0x263091(0x1f1)][_0x263091(0x1de)];_0x5203e5++)_0x6d14cf[_0x263091(0x210)](_0x1db70d,_0x58708a[_0x263091(0x1f1)][_0x5203e5]),_0x1db70d=_0x1db70d[_0x263091(0x1c8)](0x0);return{'modelFragment':_0xd70baf,'anchorData':_0x6d14cf};}[_0x4885ef(0x272)](){const _0x253854=_0x4885ef,_0x261a97=this[_0x253854(0x262)][_0x253854(0x250)][_0x253854(0x204)][_0x253854(0x1dd)],_0x38b4ad=this[_0x253854(0x262)][_0x253854(0x1e9)][_0x253854(0x205)](_0x253854(0x25a))[_0x253854(0x23a)](),_0x43320a=_0x261a97[_0x253854(0x225)]()[_0x253854(0x211)][_0x253854(0x1cc)][_0x253854(0x1cc)],_0x8bd61e=this[_0x253854(0x201)](_0x38b4ad,this[_0x253854(0x262)][_0x253854(0x250)][_0x253854(0x1d5)](_0x43320a),this[_0x253854(0x262)][_0x253854(0x250)][_0x253854(0x235)](_0x43320a)),_0x40d1d6=_0x261a97[_0x253854(0x225)]()[_0x253854(0x211)],_0x4fb4ea=new Map();let _0x32264e=_0x8bd61e;for(let _0xff81cc=0x0;_0xff81cc<_0x40d1d6[_0x253854(0x1f1)][_0x253854(0x1de)];_0xff81cc++)if(_0x4fb4ea[_0x253854(0x210)](_0x32264e,_0x40d1d6[_0x253854(0x1f1)][_0xff81cc]),_0xff81cc<_0x40d1d6[_0x253854(0x1f1)][_0x253854(0x1de)]-0x1)_0x32264e=_0x32264e[_0x253854(0x1c8)](0x0);else{let _0x1bcb0d=_0x32264e[_0x253854(0x1c6)];for(;_0x1bcb0d;)_0x4fb4ea[_0x253854(0x210)](_0x1bcb0d,_0x40d1d6[_0x253854(0x1f1)][_0xff81cc]),_0x1bcb0d=_0x1bcb0d[_0x253854(0x1c6)];}return{'modelFragment':_0x8bd61e,'anchorData':_0x4fb4ea};}[_0x4885ef(0x292)](_0x31ab3b,_0xfb8bd3,_0x4e0e7b,_0x2e279e,_0x2029ec){const _0x1758cf=_0x4885ef,_0xb09417=this[_0x1758cf(0x262)][_0x1758cf(0x1e9)][_0x1758cf(0x205)](_0x267924),_0x4797ce=this[_0x1758cf(0x262)][_0x1758cf(0x1e9)][_0x1758cf(0x205)](_0x80ef72),_0x5d6396=this[_0x1758cf(0x262)][_0x1758cf(0x250)][_0x1758cf(0x204)][_0x1758cf(0x1dd)],_0x537a19=_0xb09417[_0x1758cf(0x252)](_0xfb8bd3),_0x2d9a6b=this[_0x1758cf(0x262)][_0x1758cf(0x248)][_0x1758cf(0x1fe)][_0x1758cf(0x20d)](_0x537a19),_0x1c70ac=this[_0x1758cf(0x262)][_0x1758cf(0x250)][_0x1758cf(0x204)][_0x1758cf(0x21a)],_0xa7ffde=[..._0x5d6396[_0x1758cf(0x1c9)]()];let _0x2e263c=this[_0x1758cf(0x262)][_0x1758cf(0x20b)][_0x1758cf(0x205)](_0x1758cf(0x229))||[..._0x33cc1d];this[_0x1758cf(0x262)][_0x1758cf(0x1e9)][_0x1758cf(0x20f)](_0x1758cf(0x249))||(_0x2e263c=_0x2e263c[_0x1758cf(0x277)](_0x3d8ba7=>_0x1758cf(0x282)!=_0x3d8ba7));const _0x201c55=new _0x26f777(this[_0x1758cf(0x262)][_0x1758cf(0x26e)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x1758cf(0x230),'customView':this[_0x1758cf(0x268)]},'showUnchangedParts':!0x0,'availableActions':_0x2e263c});return _0x4797ce[_0x1758cf(0x22e)]({'index':0x3e8*Math[_0x1758cf(0x291)]()%0x3e8,'title':_0x2e279e,'icon':_0x2029ec||_0x12742a,'mainView':_0x201c55,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x1758cf(0x262)][_0x1758cf(0x1e9)][_0x1758cf(0x20f)](_0x1758cf(0x249)),'ranges':_0xa7ffde}),this[_0x1758cf(0x1f0)](_0x201c55,_0x4797ce),this[_0x1758cf(0x274)](_0x4797ce,_0x1758cf(0x261),()=>{const _0x5c914f=_0x1758cf;this[_0x5c914f(0x26b)](_0xfb8bd3,_0x4e0e7b,!0x1);}),this[_0x1758cf(0x274)](_0x4797ce,_0x1758cf(0x282),()=>{const _0x590bbb=_0x1758cf;this[_0x590bbb(0x26b)](_0xfb8bd3,_0x4e0e7b,!0x0);}),this[_0x1758cf(0x274)](_0x4797ce,_0x1758cf(0x1d7),()=>{const _0x4f66e6=_0x1758cf;this[_0x4f66e6(0x1bd)](),this[_0x4f66e6(0x207)]();}),this[_0x1758cf(0x274)](_0x4797ce,_0x1758cf(0x275),()=>{const _0x33dff2=_0x1758cf;if(this[_0x33dff2(0x1e3)]&&this[_0x33dff2(0x1e3)][_0x33dff2(0x238)][_0x33dff2(0x1de)]>0x0){const _0x9f1bdb=this[_0x33dff2(0x1e3)][_0x33dff2(0x238)][this[_0x33dff2(0x1e3)][_0x33dff2(0x238)][_0x33dff2(0x1de)]-0x1],_0x1970c2=_0x9f1bdb[_0x33dff2(0x264)][0x0];_0x1970c2&&_0x33dff2(0x24c)===_0x1970c2[_0x33dff2(0x297)]&&_0x9f1bdb[_0x33dff2(0x1d8)](0x0,_0x33dff2(0x1ef));}this[_0x33dff2(0x1bd)](),this[_0x33dff2(0x1eb)](),this[_0x33dff2(0x20e)](_0x4797ce);}),this[_0x1758cf(0x239)](_0x2d9a6b,_0x1c70ac,_0x201c55,_0x4797ce,_0x31ab3b);}[_0x4885ef(0x201)](_0x3f28a1,_0x51011e,_0x9c695c){const _0x321f22=_0x4885ef,_0x544014=this[_0x321f22(0x262)][_0x321f22(0x250)][_0x321f22(0x213)](_0x51011e,_0x9c695c)[_0x321f22(0x1fa)](),_0x1ca5f6=_0x544014['is'](_0x321f22(0x1cf))?[]:_0x544014[_0x321f22(0x1c2)]({'includeSelf':!0x0})[_0x321f22(0x227)](0x1);if(_0x1ca5f6[_0x321f22(0x1de)]){const _0x39ef98=_0x1ca5f6[_0x321f22(0x285)](_0x92c108=>_0x92c108[_0x321f22(0x1fb)](!0x1));for(let _0x50a125=0x1;_0x50a125<_0x39ef98[_0x321f22(0x1de)];_0x50a125++)_0x39ef98[_0x50a125-0x1][_0x321f22(0x1d0)](_0x39ef98[_0x50a125]);return _0x39ef98[_0x39ef98[_0x321f22(0x1de)]-0x1][_0x321f22(0x1d0)](_0x3f28a1),new _0x3fee9b(_0x39ef98[0x0]);}return _0x3f28a1;}async[_0x4885ef(0x239)](_0x2a5aba,_0x44227a,_0x5b08c3,_0x4a2acf,_0x2f6a5b){const _0x2d5ff4=_0x4885ef,_0x295ae7=this[_0x2d5ff4(0x262)];this[_0x2d5ff4(0x1bf)]={'action':_0x2f6a5b,'content':_0x2a5aba,'version':_0x44227a,'mainView':_0x5b08c3,'aiBalloon':_0x4a2acf};const _0x1e3417=new _0x4b3cba({'connector':this[_0x2d5ff4(0x1f4)],'editor':_0x295ae7,'content':_0x2a5aba,'version':_0x44227a,..._0x2f6a5b});this[_0x2d5ff4(0x28d)][_0x2d5ff4(0x290)](_0x1e3417),_0x5b08c3[_0x2d5ff4(0x27f)]();const _0xf614a4=(_0x34efad,_0x50a070,_0x4a435b=!0x1,_0x5236f4=_0x2d5ff4(0x253))=>this[_0x2d5ff4(0x280)][_0x2d5ff4(0x298)](async _0x9b1aff=>{const _0x53ba66=_0x2d5ff4;try{const _0x3777d0=_0x55535d({'editor':_0x295ae7,'changeGroups':_0x34efad[_0x53ba66(0x264)],'documentContextContent':_0x34efad[_0x53ba66(0x24d)],'showDiff':_0x4a435b,'trimUnchanged':!0x1});await _0x50a070[_0x53ba66(0x23f)]({'parts':_0x3777d0,'renderingStrategy':_0x5236f4,'abortSignal':_0x9b1aff});}catch(_0x5ded31){if(this[_0x53ba66(0x1ce)](_0x5ded31))return;throw _0x5ded31;}});this[_0x2d5ff4(0x1e3)]['on'](_0x2d5ff4(0x209),(_0x32a1e7,_0x4a403e)=>{const _0x19215a=_0x2d5ff4;_0x5b08c3[_0x19215a(0x1be)](),_0x4a2acf[_0x19215a(0x1da)](),_0xf614a4(_0x4a403e,_0x5b08c3)[_0x19215a(0x1c4)](_0x2c1396=>{const _0x3d865e=_0x19215a;this[_0x3d865e(0x1ce)](_0x2c1396)||(console[_0x3d865e(0x24f)](_0x3d865e(0x1b8),_0x2c1396),this[_0x3d865e(0x1dc)](_0x1e3417,_0x5b08c3));});}),this[_0x2d5ff4(0x1e3)]['on'](_0x2d5ff4(0x25e),(_0xfd65ba,_0x19de3b)=>{const _0x5743ba=_0x2d5ff4;_0xf614a4(_0x19de3b,_0x5b08c3)[_0x5743ba(0x1c4)](_0x398a9e=>{const _0x3dfc96=_0x5743ba;this[_0x3dfc96(0x1ce)](_0x398a9e)||(console[_0x3dfc96(0x24f)](_0x3dfc96(0x221),_0x398a9e),this[_0x3dfc96(0x1dc)](_0x1e3417,_0x5b08c3));});}),this[_0x2d5ff4(0x1e3)]['on'](_0x2d5ff4(0x237),async()=>{const _0x4a492a=_0x2d5ff4;try{await this[_0x4a492a(0x1e2)](_0x5b08c3,_0x4a2acf),this[_0x4a492a(0x1c1)](),await this[_0x4a492a(0x280)][_0x4a492a(0x260)];}catch(_0x44198e){this[_0x4a492a(0x1ce)](_0x44198e)||(console[_0x4a492a(0x24f)](_0x4a492a(0x288),_0x44198e),this[_0x4a492a(0x1dc)](_0x1e3417,_0x5b08c3));}finally{_0x4a2acf[_0x4a492a(0x267)]();}}),this[_0x2d5ff4(0x274)](_0x5b08c3,_0x2d5ff4(0x1d1),async(_0x174b9f,{showDiff:_0x2a32f2})=>{const _0x26ff0e=_0x2d5ff4;try{this[_0x26ff0e(0x243)]=_0x2a32f2;const _0x463ea3=this[_0x26ff0e(0x1e3)][_0x26ff0e(0x238)][this[_0x26ff0e(0x1e3)][_0x26ff0e(0x238)][_0x26ff0e(0x1de)]-0x1];_0x463ea3&&await _0xf614a4(_0x463ea3,_0x5b08c3,_0x2a32f2,_0x26ff0e(0x1d4));}catch(_0x4128a9){this[_0x26ff0e(0x1ce)](_0x4128a9)||(console[_0x26ff0e(0x24f)](_0x26ff0e(0x263),_0x4128a9),this[_0x26ff0e(0x1dc)](_0x1e3417,_0x5b08c3));}}),this[_0x2d5ff4(0x1e3)]['on'](_0x2d5ff4(0x1e4),(_0x43d8ef,{reply:_0x1288ab})=>{const _0x159767=_0x2d5ff4,_0x388707={'positiveCount':_0x1288ab[_0x159767(0x264)][_0x159767(0x277)](_0x341882=>_0x159767(0x27d)===_0x341882[_0x159767(0x297)])[_0x159767(0x1de)],'totalCount':_0x1288ab[_0x159767(0x264)][_0x159767(0x1de)]},_0xa155ea=this[_0x159767(0x1e3)][_0x159767(0x1f6)],_0x9de454=this[_0x159767(0x1e3)][_0x159767(0x215)];_0x9de454?this[_0x159767(0x1f4)][_0x159767(0x23d)](_0x9de454,_0xa155ea,_0x388707):this[_0x159767(0x1f4)][_0x159767(0x287)](_0xa155ea,_0x388707);}),this[_0x2d5ff4(0x1f0)](_0x5b08c3,_0x4a2acf);try{const _0x4824a3=await this[_0x2d5ff4(0x1e3)][_0x2d5ff4(0x211)]();return this[_0x2d5ff4(0x1c1)](),_0x4824a3;}catch(_0x461614){if(this[_0x2d5ff4(0x1ce)](_0x461614))return;_0x5b08c3[_0x2d5ff4(0x1be)](),this[_0x2d5ff4(0x1dc)](_0x1e3417,_0x5b08c3);}}[_0x4885ef(0x26b)](_0x4edf93,_0x2eafa4,_0x29978f){const _0x31a55e=_0x4885ef,_0x463129=this[_0x31a55e(0x262)];if(_0x29978f&&!_0x463129[_0x31a55e(0x1e9)][_0x31a55e(0x20f)](_0x31a55e(0x249)))throw new _0x375158(_0x31a55e(0x28a),null);const _0x51c8b3=this[_0x31a55e(0x262)][_0x31a55e(0x1e9)][_0x31a55e(0x205)](_0x18afea),_0x206922=this[_0x31a55e(0x1e3)],_0x3f64c3=this[_0x31a55e(0x1e3)][_0x31a55e(0x238)][this[_0x31a55e(0x1e3)][_0x31a55e(0x238)][_0x31a55e(0x1de)]-0x1],_0x322bf5=_0x3f64c3[_0x31a55e(0x264)];_0x3f64c3[_0x31a55e(0x1d8)](0x0,_0x31a55e(0x27d));let _0xe41d2d=_0x14c6d9({'editor':_0x463129,'reply':_0x3f64c3,'interaction':_0x206922,'groups':_0x322bf5,'transform':!0x1,'documentCompare':_0x51c8b3,'documentCompareOptions':{'anchor':_0x463129[_0x31a55e(0x250)][_0x31a55e(0x22b)](_0x4edf93,0x0),'markDeletions':_0x29978f}});_0xe41d2d=this[_0x31a55e(0x27e)](_0xe41d2d,_0x2eafa4);for(const _0x36b721 of _0xe41d2d)this[_0x31a55e(0x222)](_0x2eafa4,_0x36b721,_0x463129[_0x31a55e(0x250)][_0x31a55e(0x204)][_0x31a55e(0x24b)]());const _0x3057d1=_0x206922[_0x31a55e(0x1e1)]()[_0x31a55e(0x21a)],_0x142e91=_0x463129[_0x31a55e(0x250)][_0x31a55e(0x204)][_0x31a55e(0x242)][_0x31a55e(0x1d2)](_0x3057d1),_0x3d16b5={'document':_0x463129[_0x31a55e(0x250)][_0x31a55e(0x204)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4e3f5b=_0x1a9de7(_0xe41d2d,_0x142e91,_0x3d16b5)[_0x31a55e(0x1e5)];_0x463129[_0x31a55e(0x250)][_0x31a55e(0x219)](_0x1a8403=>{const _0x1f666d=_0x31a55e;if(_0x1a8403[_0x1f666d(0x273)](_0x463129[_0x1f666d(0x250)][_0x1f666d(0x204)][_0x1f666d(0x1dd)][_0x1f666d(0x21d)]),_0x29978f)_0x463129[_0x1f666d(0x1e9)][_0x1f666d(0x205)](_0x1f666d(0x1f8))[_0x1f666d(0x234)](_0x4e3f5b);else{for(const _0x29b016 of _0x4e3f5b)_0x29b016[_0x1f666d(0x206)]=_0x463129[_0x1f666d(0x250)][_0x1f666d(0x204)][_0x1f666d(0x21a)],_0x128cfa(_0x463129,_0x29b016),_0x1a8403[_0x1f666d(0x265)][_0x1f666d(0x21b)](_0x29b016),_0x463129[_0x1f666d(0x250)][_0x1f666d(0x26d)](_0x29b016);}}),this[_0x31a55e(0x262)][_0x31a55e(0x1e9)][_0x31a55e(0x205)](_0x31a55e(0x244))[_0x31a55e(0x276)]();}[_0x4885ef(0x27e)](_0x1cf03f,_0xea48e9){const _0x2a238d=_0x4885ef;return _0x1cf03f[_0x2a238d(0x277)](_0x422573=>{const _0x42ff1f=_0x2a238d;if(_0x42ff1f(0x27a)==_0x422573[_0x42ff1f(0x1e0)]){const _0x2e2b9f=_0x422573[_0x42ff1f(0x1b7)][_0x42ff1f(0x231)];return!_0xea48e9[_0x42ff1f(0x20f)](_0x2e2b9f);}if(_0x422573[_0x42ff1f(0x1e0)][_0x42ff1f(0x1fd)](_0x42ff1f(0x28b))>-0x1){const _0x2990c4=_0x422573[_0x42ff1f(0x241)][_0x42ff1f(0x211)][_0x42ff1f(0x231)];return!_0xea48e9[_0x42ff1f(0x20f)](_0x2990c4);}return!0x0;});}[_0x4885ef(0x222)](_0xa11568,_0x401438,_0x4582c6){const _0x2b9ed7=_0x4885ef,_0x403506=_0x401438[_0x2b9ed7(0x1f7)]();for(const _0x320989 in _0x401438){const _0x1d42db=_0x401438[_0x320989];_0x1d42db instanceof _0x962104?_0x401438[_0x320989]=new _0x962104(_0x2dbc57(_0x1d42db[_0x2b9ed7(0x211)]),_0x2dbc57(_0x1d42db[_0x2b9ed7(0x1c7)])):_0x1d42db instanceof _0x2fe05d&&(_0x401438[_0x320989]=_0x2dbc57(_0x1d42db));}if([_0x2b9ed7(0x1df),_0x2b9ed7(0x256),_0x2b9ed7(0x24e),_0x2b9ed7(0x289),_0x2b9ed7(0x214),_0x2b9ed7(0x1cd)][_0x2b9ed7(0x26a)](_0x403506[_0x2b9ed7(0x1e0)])){if(_0x403506[_0x2b9ed7(0x26c)]=!0x1,_0x403506[_0x2b9ed7(0x206)]=null,_0x2b9ed7(0x24e)==_0x403506[_0x2b9ed7(0x1e0)]){const _0x3b5228=_0x403506[_0x2b9ed7(0x200)],_0x1fdee0=_0x403506[_0x2b9ed7(0x246)];new _0x9a7b8e(_0x3b5228,_0x1fdee0)[_0x2b9ed7(0x23e)]();}else _0x403506[_0x2b9ed7(0x23e)]();}function _0x2dbc57(_0x440b35){const _0x444806=_0x2b9ed7;if(_0x444806(0x236)==_0x440b35[_0x444806(0x20c)][_0x444806(0x1fc)])return _0x440b35;const _0x42653b=[];let _0x2792e8=_0x440b35[_0x444806(0x20c)];for(let _0x377fa1=0x0;_0x377fa1<_0x440b35[_0x444806(0x1f1)][_0x444806(0x1de)];_0x377fa1++){const _0xdf03d0=_0xa11568[_0x444806(0x205)](_0x2792e8)||0x0;_0x42653b[_0x377fa1]=_0x440b35[_0x444806(0x1f1)][_0x377fa1]+_0xdf03d0,_0x2792e8=_0x2792e8[_0x444806(0x217)](_0x440b35[_0x444806(0x1f1)][_0x377fa1]);}return new _0x2fe05d(_0x4582c6,_0x42653b,_0x440b35[_0x444806(0x29a)]);}}[_0x4885ef(0x1d6)](){const _0x4ded48=_0x4885ef;if(!this[_0x4ded48(0x1bf)])return;this[_0x4ded48(0x28d)][_0x4ded48(0x1de)]>0x0&&this[_0x4ded48(0x1bd)](),this[_0x4ded48(0x28e)]=0x0,this[_0x4ded48(0x243)]=!0x1;const {action:_0x8287d5,content:_0x2a8917,version:_0x398908,mainView:_0x2601d8,aiBalloon:_0x139104}=this[_0x4ded48(0x1bf)];_0x2601d8[_0x4ded48(0x1d3)]=!0x1,_0x2601d8[_0x4ded48(0x27f)](),this[_0x4ded48(0x228)](_0x2601d8,_0x139104);const _0x1a6449=_0x2601d8;_0x1a6449[_0x4ded48(0x258)]&&_0x1a6449[_0x4ded48(0x258)][_0x4ded48(0x29b)]&&_0x1a6449[_0x4ded48(0x258)][_0x4ded48(0x29b)][_0x4ded48(0x210)]({'isOn':!0x1,'icon':_0x59d370}),this[_0x4ded48(0x1bc)](_0x2601d8),_0x2601d8[_0x4ded48(0x23b)](),this[_0x4ded48(0x1c1)](),this[_0x4ded48(0x20e)](_0x2601d8),this[_0x4ded48(0x239)](_0x2a8917,_0x398908,_0x2601d8,_0x139104,_0x8287d5)[_0x4ded48(0x1c4)](_0x1e1705=>{const _0x519538=_0x4ded48;this[_0x519538(0x1ce)](_0x1e1705)||console[_0x519538(0x24f)](_0x519538(0x202),_0x1e1705);});}[_0x4885ef(0x1bc)](_0x57b996){const _0x4c0c90=_0x4885ef,_0x5c504c=_0x57b996[_0x4c0c90(0x247)][_0x4c0c90(0x23c)];for(;_0x5c504c[_0x4c0c90(0x1de)]>0x0;)_0x5c504c[_0x4c0c90(0x24e)](_0x5c504c[_0x4c0c90(0x27b)]);_0x57b996[_0x4c0c90(0x247)][_0x4c0c90(0x26f)]=!0x1;}[_0x4885ef(0x1ce)](_0x4749a7){const _0x5d2867=_0x4885ef;return!!_0x4749a7[_0x5d2867(0x1e8)]&&_0x4749a7[_0x5d2867(0x1e8)][_0x5d2867(0x232)](_0x5d2867(0x1e7));}[_0x4885ef(0x1eb)](){const _0x3521af=_0x4885ef;this[_0x3521af(0x28d)]=[],this[_0x3521af(0x1bf)]=void 0x0,this[_0x3521af(0x28e)]=0x0,this[_0x3521af(0x1c1)]();}[_0x4885ef(0x1bd)](){const _0x5a4e8d=_0x4885ef;this[_0x5a4e8d(0x1e3)]&&this[_0x5a4e8d(0x1e3)][_0x5a4e8d(0x257)](),this[_0x5a4e8d(0x280)][_0x5a4e8d(0x1ca)](),this[_0x5a4e8d(0x293)]=!0x1,this[_0x5a4e8d(0x1bf)]&&this[_0x5a4e8d(0x1bf)][_0x5a4e8d(0x296)][_0x5a4e8d(0x267)]();}[_0x4885ef(0x1f3)](){const _0x3f61da=_0x4885ef,_0x5ec972=new _0x1ad5e0(this[_0x3f61da(0x262)][_0x3f61da(0x26e)]),_0x6a41bd=new _0x1ad5e0(this[_0x3f61da(0x262)][_0x3f61da(0x26e)]),_0x5cbee0=new _0x36c0d1(this[_0x3f61da(0x262)][_0x3f61da(0x26e)]),_0x1b6f7f=new _0x1ad5e0(this[_0x3f61da(0x262)][_0x3f61da(0x26e)]);_0x5ec972[_0x3f61da(0x210)]({'icon':_0x57c8a9,'label':_0x1a4156(this[_0x3f61da(0x262)][_0x3f61da(0x26e)],_0x3f61da(0x218)),'tooltip':!0x0,'class':_0x3f61da(0x20a)}),_0x6a41bd[_0x3f61da(0x210)]({'icon':_0x3c4c50,'tooltip':_0x1a4156(this[_0x3f61da(0x262)][_0x3f61da(0x26e)],_0x3f61da(0x1b9)),'class':_0x3f61da(0x1ea)}),_0x5cbee0[_0x3f61da(0x295)]({'tag':_0x3f61da(0x212),'attributes':{'class':[_0x3f61da(0x22c)]},'children':[_0x3f61da(0x240)]}),_0x1b6f7f[_0x3f61da(0x210)]({'icon':_0x19d3a9,'tooltip':_0x1a4156(this[_0x3f61da(0x262)][_0x3f61da(0x26e)],_0x3f61da(0x255)),'class':_0x3f61da(0x27c)}),_0x5ec972[_0x3f61da(0x270)](_0x3f61da(0x220))['to'](this,_0x3f61da(0x293),_0x68c408=>!_0x68c408),_0x5ec972['on'](_0x3f61da(0x226),()=>{const _0x343d6e=_0x3f61da;this[_0x343d6e(0x1d6)]();}),_0x6a41bd[_0x3f61da(0x270)](_0x3f61da(0x220))['to'](this,_0x3f61da(0x293),_0x514426=>!_0x514426),_0x6a41bd['on'](_0x3f61da(0x226),()=>{const _0x570eee=_0x3f61da;this[_0x570eee(0x203)]();}),_0x1b6f7f[_0x3f61da(0x270)](_0x3f61da(0x220))['to'](this,_0x3f61da(0x293),_0x2418a0=>!_0x2418a0),_0x1b6f7f['on'](_0x3f61da(0x226),()=>{const _0x43bd98=_0x3f61da;this[_0x43bd98(0x25c)]();}),this[_0x3f61da(0x233)]=_0x6a41bd,this[_0x3f61da(0x1b5)]=_0x5cbee0,this[_0x3f61da(0x1bb)]=_0x1b6f7f,this[_0x3f61da(0x268)][_0x3f61da(0x1ff)](_0x5ec972);}[_0x4885ef(0x203)](){const _0x569016=_0x4885ef,_0x382f0f=this[_0x569016(0x28d)][_0x569016(0x1de)];this[_0x569016(0x28e)]<_0x382f0f-0x1&&this[_0x569016(0x251)](this[_0x569016(0x28e)]+0x1);}[_0x4885ef(0x25c)](){const _0x2d74c8=_0x4885ef;this[_0x2d74c8(0x28e)]>0x0&&this[_0x2d74c8(0x251)](this[_0x2d74c8(0x28e)]-0x1);}async[_0x4885ef(0x251)](_0x5e3638){const _0x2143e0=_0x4885ef;if(!this[_0x2143e0(0x1bf)])return;this[_0x2143e0(0x28e)]=_0x5e3638;const {mainView:_0xdc3af1}=this[_0x2143e0(0x1bf)],_0x45888b=this[_0x2143e0(0x28d)][this[_0x2143e0(0x28d)][_0x2143e0(0x1de)]-0x1-this[_0x2143e0(0x28e)]];if(!_0x45888b)return;if(_0x45888b[_0x2143e0(0x283)])return this[_0x2143e0(0x1dc)](_0x45888b,_0xdc3af1),void this[_0x2143e0(0x1c1)]();if(!_0x45888b[_0x2143e0(0x238)][_0x2143e0(0x1de)])return;_0xdc3af1[_0x2143e0(0x27f)](),this[_0x2143e0(0x1bf)]&&this[_0x2143e0(0x228)](_0xdc3af1,this[_0x2143e0(0x1bf)][_0x2143e0(0x296)]);const _0x128ebf=_0x45888b[_0x2143e0(0x238)][_0x45888b[_0x2143e0(0x238)][_0x2143e0(0x1de)]-0x1];if(_0x128ebf){const _0xd8a68a=this[_0x2143e0(0x262)];this[_0x2143e0(0x1bc)](_0xdc3af1);try{const _0x46f0be=_0x55535d({'editor':_0xd8a68a,'changeGroups':_0x128ebf[_0x2143e0(0x264)],'documentContextContent':_0x128ebf[_0x2143e0(0x24d)],'showDiff':this[_0x2143e0(0x243)],'trimUnchanged':!0x1});this[_0x2143e0(0x1bc)](_0xdc3af1),await new Promise(_0x589207=>setTimeout(_0x589207,0x32)),await _0xdc3af1[_0x2143e0(0x23f)]({'parts':_0x46f0be,'renderingStrategy':_0x2143e0(0x1d4),'abortSignal':new AbortController()[_0x2143e0(0x1e6)]});}catch(_0x38ea73){this[_0x2143e0(0x1ce)](_0x38ea73)||console[_0x2143e0(0x24f)](_0x2143e0(0x1f5),_0x38ea73);}}this[_0x2143e0(0x1c1)]();}[_0x4885ef(0x1c1)](){const _0x22c7c1=_0x4885ef;if(!this[_0x22c7c1(0x233)]||!this[_0x22c7c1(0x1b5)]||!this[_0x22c7c1(0x1bb)])return;const _0x3e6c23=this[_0x22c7c1(0x28d)][_0x22c7c1(0x1de)],_0x388e14=_0x3e6c23>0x1,_0x33e9fb=this[_0x22c7c1(0x1bf)]?.[_0x22c7c1(0x278)];if(_0x388e14){this[_0x22c7c1(0x24a)]||this[_0x22c7c1(0x1ee)]||this[_0x22c7c1(0x279)]||(this[_0x22c7c1(0x268)][_0x22c7c1(0x1ff)](this[_0x22c7c1(0x233)]),_0x33e9fb?.[_0x22c7c1(0x21c)](this[_0x22c7c1(0x233)]),this[_0x22c7c1(0x24a)]=!0x0,this[_0x22c7c1(0x268)][_0x22c7c1(0x1ff)](this[_0x22c7c1(0x1b5)]),_0x33e9fb?.[_0x22c7c1(0x21c)](this[_0x22c7c1(0x1b5)]),this[_0x22c7c1(0x1ee)]=!0x0,this[_0x22c7c1(0x268)][_0x22c7c1(0x1ff)](this[_0x22c7c1(0x1bb)]),_0x33e9fb?.[_0x22c7c1(0x21c)](this[_0x22c7c1(0x1bb)]),this[_0x22c7c1(0x279)]=!0x0);const _0x136bf4=_0x3e6c23-this[_0x22c7c1(0x28e)];this[_0x22c7c1(0x1b5)][_0x22c7c1(0x254)]&&(this[_0x22c7c1(0x1b5)][_0x22c7c1(0x254)][_0x22c7c1(0x1d9)]=_0x136bf4+'/'+_0x3e6c23),this[_0x22c7c1(0x233)][_0x22c7c1(0x220)]=this[_0x22c7c1(0x28e)]<_0x3e6c23-0x1,this[_0x22c7c1(0x1bb)][_0x22c7c1(0x220)]=this[_0x22c7c1(0x28e)]>0x0;}else(this[_0x22c7c1(0x24a)]||this[_0x22c7c1(0x1ee)]||this[_0x22c7c1(0x279)])&&(this[_0x22c7c1(0x268)][_0x22c7c1(0x24e)](this[_0x22c7c1(0x233)]),_0x33e9fb?.[_0x22c7c1(0x266)](this[_0x22c7c1(0x233)]),this[_0x22c7c1(0x24a)]=!0x1,this[_0x22c7c1(0x268)][_0x22c7c1(0x24e)](this[_0x22c7c1(0x1b5)]),_0x33e9fb?.[_0x22c7c1(0x266)](this[_0x22c7c1(0x1b5)]),this[_0x22c7c1(0x1ee)]=!0x1,this[_0x22c7c1(0x268)][_0x22c7c1(0x24e)](this[_0x22c7c1(0x1bb)]),_0x33e9fb?.[_0x22c7c1(0x266)](this[_0x22c7c1(0x1bb)]),this[_0x22c7c1(0x279)]=!0x1);}[_0x4885ef(0x1f0)](_0x51dc40,_0x55d067){const _0x1628b9=_0x4885ef;_0x51dc40[_0x1628b9(0x25f)](),_0x55d067[_0x1628b9(0x208)][_0x1628b9(0x25f)](),this[_0x1628b9(0x293)]=!0x0;}async[_0x4885ef(0x1dc)](_0x33a69b,_0x389722){const _0xc2bd60=_0x4885ef,_0x358541=_0x1a4156(this[_0xc2bd60(0x262)][_0xc2bd60(0x26e)],_0xc2bd60(0x284));_0x389722[_0xc2bd60(0x259)](_0x358541),_0x33a69b[_0xc2bd60(0x283)]=!0x0,await this[_0xc2bd60(0x280)][_0xc2bd60(0x260)],_0x389722[_0xc2bd60(0x245)](),this[_0xc2bd60(0x1bf)]?.[_0xc2bd60(0x296)][_0xc2bd60(0x208)][_0xc2bd60(0x22f)]&&(this[_0xc2bd60(0x1bf)][_0xc2bd60(0x296)][_0xc2bd60(0x208)][_0xc2bd60(0x22f)][_0xc2bd60(0x21f)]=!0x0);}[_0x4885ef(0x228)](_0x317358,_0xa2ee6a){const _0x2ba924=_0x4885ef;_0x317358[_0x2ba924(0x1f9)](),_0xa2ee6a[_0x2ba924(0x208)][_0x2ba924(0x22f)]&&(_0xa2ee6a[_0x2ba924(0x208)][_0x2ba924(0x22f)][_0x2ba924(0x21f)]=!0x1);}async[_0x4885ef(0x1e2)](_0x3d364e,_0x25327d){const _0x494d0b=_0x4885ef;await this[_0x494d0b(0x280)][_0x494d0b(0x260)],this[_0x494d0b(0x293)]=!0x1,_0x3d364e[_0x494d0b(0x22d)](),_0x25327d[_0x494d0b(0x208)][_0x494d0b(0x22d)]();}[_0x4885ef(0x207)](){const _0x472be0=_0x4885ef;this[_0x472be0(0x268)][_0x472be0(0x286)](_0xe392d7=>{const _0x4d0976=_0x472be0;_0x4d0976(0x220)in _0xe392d7&&(_0xe392d7[_0x4d0976(0x220)]=!0x1);});}}
|
|
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);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d53ef=_0x32d2;(function(_0x57553b,_0x3ca710){const _0x17926b=_0x32d2,_0x248fd6=_0x57553b();while(!![]){try{const _0x3caf47=-parseInt(_0x17926b(0x112))/0x1+-parseInt(_0x17926b(0x116))/0x2+-parseInt(_0x17926b(0x115))/0x3*(parseInt(_0x17926b(0xfe))/0x4)+-parseInt(_0x17926b(0x10f))/0x5+parseInt(_0x17926b(0xfd))/0x6+-parseInt(_0x17926b(0xfa))/0x7+parseInt(_0x17926b(0x10e))/0x8*(parseInt(_0x17926b(0x100))/0x9);if(_0x3caf47===_0x3ca710)break;else _0x248fd6['push'](_0x248fd6['shift']());}catch(_0x4d20a9){_0x248fd6['push'](_0x248fd6['shift']());}}}(_0xa00a,0x8178b));import{AIInteraction as _0x346f59,AI_MODEL_EVENT_NAMES as _0x1dae83}from'../../aicore/model/aiinteraction.js';function _0x32d2(_0x32a0ed,_0xadaa49){const _0xa00a2=_0xa00a();return _0x32d2=function(_0x32d205,_0x4e630e){_0x32d205=_0x32d205-0xfa;let _0x2d1f17=_0xa00a2[_0x32d205];return _0x2d1f17;},_0x32d2(_0x32a0ed,_0xadaa49);}import{AIContextItemType as _0x1079f4}from'../../aicore/model/aicontext.js';function _0xa00a(){const _0x13cef8=['push','Current\x20document','524799GEmYsG','current-document','replyCreated','939ixswty','2058356tJOcDb','html','TEXT','createReply','2443455sKcyKB','userMessage','model','3217608ZXBYKn','5972OzLaka','executeAction','36mkhbGL','actionName','delegate','getDocumentContext','editor','replies','fire','hasError','sendRequest','args','connector','content','version','executeCustomAction','6775264oRjavw','5116170TDkDUx'];_0xa00a=function(){return _0x13cef8;};return _0xa00a();}import{AIActionsReply as _0x11b273}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x346f59{[_0x3d53ef(0x10b)];[_0x3d53ef(0x10c)];[_0x3d53ef(0x101)];[_0x3d53ef(0x109)];[_0x3d53ef(0xfb)];[_0x3d53ef(0xfc)];[_0x3d53ef(0x107)]=!0x1;constructor(_0x4fe635){const _0x15d6a2=_0x3d53ef;super(_0x4fe635),this[_0x15d6a2(0x10b)]=_0x4fe635[_0x15d6a2(0x10b)],this[_0x15d6a2(0x10c)]=_0x4fe635[_0x15d6a2(0x10c)],this[_0x15d6a2(0x101)]=_0x4fe635[_0x15d6a2(0x101)],this[_0x15d6a2(0x109)]=_0x4fe635[_0x15d6a2(0x109)],this[_0x15d6a2(0xfb)]=_0x4fe635[_0x15d6a2(0xfb)],this[_0x15d6a2(0xfc)]=_0x4fe635[_0x15d6a2(0xfc)];}async[_0x3d53ef(0x108)](){const _0x4a57fc=_0x3d53ef;return this[_0x4a57fc(0x101)]?this[_0x4a57fc(0x10a)][_0x4a57fc(0xff)]({'content':this[_0x4a57fc(0x10b)],'actionName':this[_0x4a57fc(0x101)],'args':this[_0x4a57fc(0x109)]}):this[_0x4a57fc(0x10a)][_0x4a57fc(0x10d)]({'content':this[_0x4a57fc(0x10b)],'message':this[_0x4a57fc(0xfb)],'model':this[_0x4a57fc(0xfc)],'outputFormat':_0x4a57fc(0x117)});}[_0x3d53ef(0x103)](){const _0x57db6e=_0x3d53ef;return{'type':_0x1079f4[_0x57db6e(0x118)],'content':this[_0x57db6e(0x10b)],'version':this[_0x57db6e(0x10c)],'label':_0x57db6e(0x111),'uiId':_0x57db6e(0x113)};}[_0x3d53ef(0x119)](_0x109187){const _0x22cf19=_0x3d53ef,_0x502d81=new _0x11b273({'editor':this[_0x22cf19(0x104)],'documentContextContent':this[_0x22cf19(0x10b)],..._0x109187});return this[_0x22cf19(0x105)][_0x22cf19(0x110)](_0x502d81),_0x502d81[_0x22cf19(0x102)](..._0x1dae83)['to'](this),this[_0x22cf19(0x106)](_0x22cf19(0x114),_0x502d81),_0x502d81;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x50af(){const _0x159645=['2380368cZnFAL','pop','documentContextContent','updateChangeGroups','pending','553343nWEnsO','746000BuVudG','2451603pEfCgm','changeGroups','modified','parsedContent','childNodes','isDone','_getDifferentChangeGroups','removed','value','length','map','parsedMergedContent','2450190ctYecD','data-id','new','cloneNode','526242xSYBLN','2220084usmwSJ','children','node','added'];_0x50af=function(){return _0x159645;};return _0x50af();}function _0x35ef(_0x210eca,_0x14aa90){const _0x50af23=_0x50af();return _0x35ef=function(_0x35ef19,_0x2f6824){_0x35ef19=_0x35ef19-0x1ef;let _0x4abade=_0x50af23[_0x35ef19];return _0x4abade;},_0x35ef(_0x210eca,_0x14aa90);}const _0x4df926=_0x35ef;(function(_0x2940b7,_0x489bc1){const _0x18c306=_0x35ef,_0x3584df=_0x2940b7();while(!![]){try{const _0x48a92e=parseInt(_0x18c306(0x1f4))/0x1+-parseInt(_0x18c306(0x205))/0x2+-parseInt(_0x18c306(0x1f5))/0x3+parseInt(_0x18c306(0x20a))/0x4+parseInt(_0x18c306(0x201))/0x5+-parseInt(_0x18c306(0x206))/0x6+parseInt(_0x18c306(0x1f3))/0x7;if(_0x48a92e===_0x489bc1)break;else _0x3584df['push'](_0x3584df['shift']());}catch(_0x24df34){_0x3584df['push'](_0x3584df['shift']());}}}(_0x50af,0x70443));import{AIReply as _0x1a1582}from'../../aicore/model/aireply.js';import{getAttribute as _0x215ea9}from'../../aicore/utils/htmlparser.js';import{uid as _0x5603ff}from'ckeditor5/src/utils.js';import{diffArrays as _0x33d6c5}from'diff';export class AIActionsReply extends _0x1a1582{[_0x4df926(0x1f1)](){const _0x456492=_0x4df926;if(this[_0x456492(0x200)]=this[_0x456492(0x1f8)][_0x456492(0x204)](!0x0),0x0==this[_0x456492(0x200)][_0x456492(0x1f9)][_0x456492(0x1fe)])return void(this[_0x456492(0x1f6)]=[]);const _0x5ee3a3=this[_0x456492(0x1f0)][_0x456492(0x207)][_0x456492(0x1ff)](_0x5227d2=>({'node':_0x5227d2,'id':_0x215ea9(_0x5227d2,_0x456492(0x202))})),_0x4de01c=this[_0x456492(0x200)][_0x456492(0x207)][_0x456492(0x1ff)](_0x3933dc=>({'node':_0x3933dc,'id':_0x215ea9(_0x3933dc,_0x456492(0x202))||_0x5603ff()})),_0x58689e=_0x33d6c5(_0x5ee3a3,_0x4de01c,{'comparator':(_0x19bdff,_0x1efd09)=>_0x19bdff['id']==_0x1efd09['id'],'oneChangePerToken':!0x0});if(!this[_0x456492(0x1fa)]){for(;_0x58689e[_0x456492(0x1fe)]&&_0x58689e[_0x58689e[_0x456492(0x1fe)]-0x1][_0x456492(0x1fc)];)_0x58689e[_0x456492(0x1ef)]();}const _0xa53eb6=_0x58689e[_0x456492(0x1ff)](_0x467004=>{const _0x4f387c=_0x456492,_0x4478a3=_0x467004[_0x4f387c(0x209)]?_0x4f387c(0x203):_0x467004[_0x4f387c(0x1fc)]?_0x4f387c(0x1fc):_0x4f387c(0x1f7);return{'node':_0x467004[_0x4f387c(0x1fd)][0x0][_0x4f387c(0x208)],'type':_0x4478a3,'id':_0x467004[_0x4f387c(0x1fd)][0x0]['id']};});this[_0x456492(0x1f6)]=[{'changes':_0xa53eb6,'state':_0x456492(0x1f2),'index':0x0}];}[_0x4df926(0x1fb)](_0x3eb1e5,_0x2fb4e8){return _0x2fb4e8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x38b7(){var _0x446827=['name','textAdapter','afterInit','256552UHQJie','7450632RsSTPg','pluginName','130364eAdKtZ','isPremiumPlugin','AIAdapter','801032veDftz','4566752NkAAup','aiadapter-text-adapter-not-set','isOfficialPlugin','340860HmLkaq','1858608IQxpmG','36lcYFyV','AIRequestError'];_0x38b7=function(){return _0x446827;};return _0x38b7();}var _0x20cab0=_0x5050;function _0x5050(_0x42c7b9,_0x488250){var _0x38b704=_0x38b7();return _0x5050=function(_0x5050dd,_0x2684c6){_0x5050dd=_0x5050dd-0x17d;var _0x4caebf=_0x38b704[_0x5050dd];return _0x4caebf;},_0x5050(_0x42c7b9,_0x488250);}(function(_0x84c699,_0x42d61a){var _0x270cc4=_0x5050,_0x22c792=_0x84c699();while(!![]){try{var _0x3f59a6=-parseInt(_0x270cc4(0x17d))/0x1+-parseInt(_0x270cc4(0x18b))/0x2+-parseInt(_0x270cc4(0x182))/0x3+parseInt(_0x270cc4(0x188))/0x4+-parseInt(_0x270cc4(0x181))/0x5*(-parseInt(_0x270cc4(0x183))/0x6)+parseInt(_0x270cc4(0x189))/0x7+parseInt(_0x270cc4(0x17e))/0x8;if(_0x3f59a6===_0x42d61a)break;else _0x22c792['push'](_0x22c792['shift']());}catch(_0x241ad6){_0x22c792['push'](_0x22c792['shift']());}}}(_0x38b7,0x98030));import{Plugin as _0x4860bb}from'ckeditor5/src/core.js';import{CKEditorError as _0x528f6e}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x4860bb{static get[_0x20cab0(0x18a)](){var _0x23d8ad=_0x20cab0;return _0x23d8ad(0x18d);}static get[_0x20cab0(0x180)](){return!0x0;}static get[_0x20cab0(0x18c)](){return!0x0;}[_0x20cab0(0x187)](){var _0x39cbb7=_0x20cab0;if(!this[_0x39cbb7(0x186)])throw new _0x528f6e(_0x39cbb7(0x17f),null);}}export class AIRequestError extends Error{constructor(_0x100b3d){var _0x459658=_0x20cab0;super(_0x100b3d),this[_0x459658(0x185)]=_0x459658(0x184);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x19d9(_0x34e6a1,_0x22cede){const _0x57dabc=_0x57da();return _0x19d9=function(_0x19d949,_0x25237d){_0x19d949=_0x19d949-0x199;let _0xd8a6fb=_0x57dabc[_0x19d949];return _0xd8a6fb;},_0x19d9(_0x34e6a1,_0x22cede);}const _0x12a49c=_0x19d9;(function(_0x207c45,_0x55846c){const _0x54e91b=_0x19d9,_0x1e7c36=_0x207c45();while(!![]){try{const _0x39d8a5=-parseInt(_0x54e91b(0x1a6))/0x1+-parseInt(_0x54e91b(0x199))/0x2+parseInt(_0x54e91b(0x19e))/0x3+-parseInt(_0x54e91b(0x1bd))/0x4*(-parseInt(_0x54e91b(0x1a3))/0x5)+parseInt(_0x54e91b(0x1ad))/0x6*(-parseInt(_0x54e91b(0x1b4))/0x7)+parseInt(_0x54e91b(0x1b9))/0x8*(parseInt(_0x54e91b(0x1a2))/0x9)+parseInt(_0x54e91b(0x1ac))/0xa*(parseInt(_0x54e91b(0x1ba))/0xb);if(_0x39d8a5===_0x55846c)break;else _0x1e7c36['push'](_0x1e7c36['shift']());}catch(_0x22d992){_0x1e7c36['push'](_0x1e7c36['shift']());}}}(_0x57da,0x62001));import{Plugin as _0x475a8f}from'ckeditor5/src/core.js';import{CKEditorError as _0x7fc304}from'ckeditor5/src/utils.js';import{AIAdapter as _0x2586c7,AIRequestError as _0x261a5e}from'./aiadapter.js';function _0x57da(){const _0x49112f=['aborted','260OZQgoD','object','641524kSEjfI','sendRequest','signal','init','textAdapter','1111440TuXwXY','AI_ERROR_GET_PARAMETERS','AI_ERROR_GET_HEADERS','aitextadapter-send-request-failed','5310423CvsGrk','14565Ywjalk','abortController','resolve','310043ybVvWn','makeRequest','get','abort','editor','application/json','110UFAbAU','18XCPkzB','error','assign','name','requires','locale','_prepareRequestHeaders','864689eqmpkj','AbortError','_prepareRequestParameters','plugins','catch','8nnxFLT','252923hriYgn','reject'];_0x57da=function(){return _0x49112f;};return _0x57da();}import{getTranslation as _0x4e7b6c}from'../utils/common-translations.js';export class AITextAdapter extends _0x475a8f{[_0x12a49c(0x1a4)];static get[_0x12a49c(0x1b1)](){return[_0x2586c7];}constructor(_0x58bbe9){const _0x231ea2=_0x12a49c;super(_0x58bbe9),this[_0x231ea2(0x1a4)]=new AbortController();}[_0x12a49c(0x19c)](){const _0x10ade4=_0x12a49c;this[_0x10ade4(0x1aa)][_0x10ade4(0x1b7)][_0x10ade4(0x1a8)](_0x2586c7)[_0x10ade4(0x19d)]=this;}[_0x12a49c(0x1a9)](){const _0x2747a6=_0x12a49c;this[_0x2747a6(0x1a4)][_0x2747a6(0x19b)][_0x2747a6(0x1bc)]||(this[_0x2747a6(0x1a4)][_0x2747a6(0x1a9)](),this[_0x2747a6(0x1a4)]=new AbortController());}async[_0x12a49c(0x1a7)](_0x11147e){const _0x1931ed=_0x12a49c;return this[_0x1931ed(0x19a)](_0x11147e)[_0x1931ed(0x1b8)](_0xcd86e1=>{const _0x4e93e5=_0x1931ed;if(_0xcd86e1 instanceof _0x261a5e)return Promise[_0x4e93e5(0x1bb)](_0xcd86e1);if(_0x4e93e5(0x1b5)==_0xcd86e1[_0x4e93e5(0x1b0)])return Promise[_0x4e93e5(0x1a5)]();throw console[_0x4e93e5(0x1ae)](_0xcd86e1),new _0x7fc304(_0x4e93e5(0x1a1),null);});}async[_0x12a49c(0x1b3)](_0x492bc5,_0x3e28b3){const _0x36704a=_0x12a49c,_0x18d69a=this[_0x36704a(0x1aa)][_0x36704a(0x1b2)],_0x204fe2={'Content-Type':_0x36704a(0x1ab)};if(_0x36704a(0x1be)==typeof _0x492bc5)Object[_0x36704a(0x1af)](_0x204fe2,_0x492bc5);else{if(_0x492bc5)try{const _0x4f8d90=await _0x492bc5(_0x3e28b3);Object[_0x36704a(0x1af)](_0x204fe2,_0x4f8d90);}catch{return Promise[_0x36704a(0x1bb)](new _0x261a5e(_0x4e7b6c(_0x18d69a,_0x36704a(0x1a0))));}}return _0x204fe2;}async[_0x12a49c(0x1b6)](_0x44a820,_0x528ef1){const _0x3f3271=_0x12a49c,_0x4cd3ac=this[_0x3f3271(0x1aa)][_0x3f3271(0x1b2)];if(_0x3f3271(0x1be)==typeof _0x44a820)return _0x44a820;try{return await _0x44a820(_0x528ef1);}catch{return Promise[_0x3f3271(0x1bb)](new _0x261a5e(_0x4e7b6c(_0x4cd3ac,_0x3f3271(0x19f))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x397431=_0x3009;(function(_0x367d39,_0x2ce5d3){const _0x2a9d76=_0x3009,_0x48043e=_0x367d39();while(!![]){try{const _0x4f4aa0=-parseInt(_0x2a9d76(0x10e))/0x1*(parseInt(_0x2a9d76(0xee))/0x2)+-parseInt(_0x2a9d76(0x107))/0x3+-parseInt(_0x2a9d76(0x11a))/0x4+parseInt(_0x2a9d76(0xea))/0x5+parseInt(_0x2a9d76(0x11e))/0x6*(-parseInt(_0x2a9d76(0x108))/0x7)+parseInt(_0x2a9d76(0x112))/0x8*(parseInt(_0x2a9d76(0xe0))/0x9)+parseInt(_0x2a9d76(0x105))/0xa;if(_0x4f4aa0===_0x2ce5d3)break;else _0x48043e['push'](_0x48043e['shift']());}catch(_0x182649){_0x48043e['push'](_0x48043e['shift']());}}}(_0x2ac5,0xb095f));import{AITextAdapter as _0x31560f}from'./aitextadapter.js';import{AIRequestError as _0x1d6b3d}from'./aiadapter.js';function _0x2ac5(){const _0x18c497=['_readStreamableResponse','completions','json','editor','chunk','_prepareRequestHeaders','getReader','\x0a<</SYS>>\x0a[INST]\x0a','ai.assistant.adapter.aws.requestParameters','_getGeneratedText','generation','ai21.j2','split','bedrock-2023-05-31','_requestParameters','bytes','31187660TFIOJN','AI_ERROR_UNSUPPORTED_MODEL','2037930yUVRjh','14lRzeHv','ai.assistant.adapter.aws.apiUrl','preparePrompt','text','application/json','abortController','16607SHdapL','meta.llama','anthropic.claude-v2','map','1616GZxDqQ','pluginName','_readAsyncIterableResponse','filter','ai.assistant.adapter.aws.requestHeaders','generations','send','define','1049152MQQLrq','config','test','decode','3720018gXraZG','stringify','Human:\x0a','_bedrockClientConfig','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.','getModelFamily','body','resolve','_requestHeaders','utf-8','anthropic.claude','sendRequest','Instruction:\x0a','completion','signal','read','_apiUrl','AWSTextAdapter','14382kvJgCc','ai.assistant.adapter.aws.bedrockClientConfig','\x0a[/INST]','parse','_prepareRequestParameters','_processAWSRequest','_readStaticResponse','join','locale','get','721120bjWSbS','_processProxyRequest','cohere.command','POST','82iQSiJn','\x0a\x0aAssistant:','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','data','length','<<SYS>>\x0a','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.'];_0x2ac5=function(){return _0x18c497;};return _0x2ac5();}import{BedrockRuntimeClient as _0x1c71f7,InvokeModelCommand as _0x5cf2ba,InvokeModelWithResponseStreamCommand as _0x1a0ad7}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x4bffbc}from'../utils/common-translations.js';function _0x3009(_0x48c261,_0xd92a0e){const _0x2ac5b1=_0x2ac5();return _0x3009=function(_0x3009ee,_0x3eeeb0){_0x3009ee=_0x3009ee-0xd7;let _0xb665ce=_0x2ac5b1[_0x3009ee];return _0xb665ce;},_0x3009(_0x48c261,_0xd92a0e);}export class AWSTextAdapter extends _0x31560f{[_0x397431(0xde)];[_0x397431(0x126)];[_0x397431(0x121)];[_0x397431(0x103)];static get[_0x397431(0x113)](){const _0x1cff86=_0x397431;return _0x1cff86(0xdf);}constructor(_0x4be593){const _0x200a51=_0x397431;super(_0x4be593),_0x4be593[_0x200a51(0x11b)][_0x200a51(0xe9)](_0x200a51(0xfd))||_0x4be593[_0x200a51(0x11b)][_0x200a51(0x119)](_0x200a51(0xfd),{'model':_0x200a51(0x110),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x200a51(0x102),'stream':!0x0}),this[_0x200a51(0xde)]=_0x4be593[_0x200a51(0x11b)][_0x200a51(0xe9)](_0x200a51(0x109)),this[_0x200a51(0x121)]=_0x4be593[_0x200a51(0x11b)][_0x200a51(0xe9)](_0x200a51(0xe1)),this[_0x200a51(0x126)]=_0x4be593[_0x200a51(0x11b)][_0x200a51(0xe9)](_0x200a51(0x116)),this[_0x200a51(0x103)]=_0x4be593[_0x200a51(0x11b)][_0x200a51(0xe9)](_0x200a51(0xfd));}async[_0x397431(0xd9)]({query:_0x70f909,context:_0x481ad5,onData:_0x451ea9,actionId:_0x42e65a}){const _0x262685=_0x397431,{model:_0xbe86bf,stream:_0x5b2d80,..._0x420872}=await this[_0x262685(0xe4)](this[_0x262685(0x103)],_0x42e65a),_0x53bd73={'prompt':await this[_0x262685(0x10a)](_0x70f909,_0x481ad5,_0xbe86bf,_0x42e65a),..._0x420872};this[_0x262685(0xde)]?await this[_0x262685(0xeb)](_0x53bd73,_0xbe86bf,_0x5b2d80,_0x451ea9,_0x42e65a):await this[_0x262685(0xe5)](_0x53bd73,_0xbe86bf,_0x5b2d80,_0x451ea9);}async[_0x397431(0x10a)](_0x3eccbd,_0x2582fe,_0x2cb907,_0x463e01){const _0xf26860=_0x397431;let _0x244705,_0xd7b595;return _0x2582fe?(_0x244705=_0xf26860(0xf4),_0xd7b595=_0xf26860(0xda)+_0x3eccbd+_0xf26860(0xf0)+_0x2582fe):(_0x244705=_0xf26860(0x122),_0xd7b595=_0x3eccbd),_0xf26860(0x10f)==this[_0xf26860(0x123)](_0x2cb907)?_0xf26860(0xf3)+_0x244705+_0xf26860(0xfc)+_0xd7b595+_0xf26860(0xe2):_0xf26860(0x120)+_0x244705+'\x0a'+_0xd7b595+_0xf26860(0xef);}[_0x397431(0x123)](_0x24999f){const _0x347c52=_0x397431;if(/^anthropic\.claude/[_0x347c52(0x11c)](_0x24999f))return _0x347c52(0xd8);if(/^ai21\.j2/[_0x347c52(0x11c)](_0x24999f))return _0x347c52(0x100);if(/^cohere\.command/[_0x347c52(0x11c)](_0x24999f))return _0x347c52(0xec);if(/^meta\.llama/[_0x347c52(0x11c)](_0x24999f))return _0x347c52(0x10f);throw new _0x1d6b3d(_0x4bffbc(this[_0x347c52(0xf8)][_0x347c52(0xe8)],_0x347c52(0x106),_0x24999f));}async[_0x397431(0xeb)](_0x543f34,_0x42da83,_0x470045,_0x473182,_0x2d9a80){const _0x4658e2=_0x397431,_0x2802c5={'method':_0x4658e2(0xed),'headers':await this[_0x4658e2(0xfa)](this[_0x4658e2(0x126)],_0x2d9a80),'body':JSON[_0x4658e2(0x11f)]({..._0x543f34,'model':_0x42da83,'stream':_0x470045}),'signal':this[_0x4658e2(0x10d)][_0x4658e2(0xdc)]},_0x3d2da3=await fetch(this[_0x4658e2(0xde)],_0x2802c5);_0x470045?await this[_0x4658e2(0xf5)](_0x3d2da3,_0x42da83,_0x473182):await this[_0x4658e2(0xe6)](_0x3d2da3,_0x42da83,_0x473182);}async[_0x397431(0xe5)](_0x2e6760,_0x1733af,_0x1a79e6,_0x2baca2){const _0x42d9fd=_0x397431,_0x159d9a=new _0x1c71f7(this[_0x42d9fd(0x121)]),_0x3d3e2b={'body':JSON[_0x42d9fd(0x11f)](_0x2e6760),'contentType':_0x42d9fd(0x10c),'accept':_0x42d9fd(0x10c),'modelId':_0x1733af};let _0x431cf6;if(_0x1a79e6){const _0x5a9eb5=new _0x1a0ad7(_0x3d3e2b);_0x431cf6=await _0x159d9a[_0x42d9fd(0x118)](_0x5a9eb5,{'abortSignal':this[_0x42d9fd(0x10d)][_0x42d9fd(0xdc)]}),await this[_0x42d9fd(0x114)](_0x431cf6,_0x1733af,_0x2baca2);}else{const _0x1432c1=new _0x5cf2ba(_0x3d3e2b);_0x431cf6=await _0x159d9a[_0x42d9fd(0x118)](_0x1432c1,{'abortSignal':this[_0x42d9fd(0x10d)][_0x42d9fd(0xdc)]}),await this[_0x42d9fd(0xe6)](_0x431cf6,_0x1733af,_0x2baca2);}}async[_0x397431(0x114)](_0x261e83,_0x200859,_0x9a68f9){const _0x2067e0=_0x397431,_0x2b4fa8=_0x261e83[_0x2067e0(0x124)],_0x46d6f5=new TextDecoder(_0x2067e0(0xd7));let _0x3d5923='';for await(const _0x5ed965 of _0x2b4fa8)if(_0x5ed965[_0x2067e0(0xf9)]){const _0x2364ff=_0x46d6f5[_0x2067e0(0x11d)](_0x5ed965[_0x2067e0(0xf9)][_0x2067e0(0x104)]),_0xc06d23=JSON[_0x2067e0(0xe3)](_0x2364ff);_0x3d5923+=this[_0x2067e0(0xfe)](_0xc06d23,_0x200859),_0x9a68f9(_0x3d5923);}return Promise[_0x2067e0(0x125)]();}async[_0x397431(0xf5)](_0x15b2e6,_0xc7e0b,_0x2d9422){const _0x211373=_0x397431,_0xf08290=_0x15b2e6[_0x211373(0x124)],_0x5283cb=new TextDecoder(_0x211373(0xd7)),_0x373e56=_0xf08290[_0x211373(0xfb)]();let _0x6cc9ca='',_0x364d94='',_0x2523c1=!0x1;for(;!_0x2523c1;){const {done:_0x4b36d0,value:_0x588927}=await _0x373e56[_0x211373(0xdd)]();if(_0x2523c1=_0x4b36d0,_0x2523c1)break;const _0x522ec5=(_0x6cc9ca+_0x5283cb[_0x211373(0x11d)](_0x588927))[_0x211373(0x101)]('\x0a')[_0x211373(0x111)](_0x2fb1fe=>{const _0x29667d=_0x211373;try{return _0x6cc9ca='',JSON[_0x29667d(0xe3)](_0x2fb1fe);}catch{return _0x6cc9ca=_0x2fb1fe,null;}})[_0x211373(0x115)](_0x180110=>null!==_0x180110);_0x522ec5[_0x211373(0xf2)]&&(_0x364d94+=_0x522ec5[_0x211373(0x111)](_0x4a5a59=>this[_0x211373(0xfe)](_0x4a5a59,_0xc7e0b))[_0x211373(0xe7)](''),_0x2d9422(_0x364d94));}return Promise[_0x211373(0x125)]();}async[_0x397431(0xe6)](_0x1597f1,_0xfe5c88,_0x450b27){const _0x541505=_0x397431;let _0x1bf7e3;return _0x1bf7e3=_0x1597f1 instanceof Response?await _0x1597f1[_0x541505(0xf7)]():JSON[_0x541505(0xe3)](new TextDecoder(_0x541505(0xd7))[_0x541505(0x11d)](_0x1597f1[_0x541505(0x124)])),(_0x450b27(this[_0x541505(0xfe)](_0x1bf7e3,_0xfe5c88)),Promise[_0x541505(0x125)]());}[_0x397431(0xfe)](_0x50400c,_0x98aff1){const _0x3d3c98=_0x397431;switch(this[_0x3d3c98(0x123)](_0x98aff1)){case _0x3d3c98(0xd8):return _0x50400c[_0x3d3c98(0xdb)];case _0x3d3c98(0x100):return _0x50400c[_0x3d3c98(0xf6)][0x0][_0x3d3c98(0xf1)][_0x3d3c98(0x10b)];case _0x3d3c98(0xec):return _0x50400c[_0x3d3c98(0x117)][0x0][_0x3d3c98(0x10b)];case _0x3d3c98(0x10f):return _0x50400c[_0x3d3c98(0xff)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x501d(_0x2ebba9,_0x561151){const _0x49f10f=_0x49f1();return _0x501d=function(_0x501d8c,_0x59f85e){_0x501d8c=_0x501d8c-0x13e;let _0x3f2882=_0x49f10f[_0x501d8c];return _0x3f2882;},_0x501d(_0x2ebba9,_0x561151);}const _0x499b62=_0x501d;(function(_0x3519e0,_0x4a3a4b){const _0x588d78=_0x501d,_0x25cda9=_0x3519e0();while(!![]){try{const _0x32be37=-parseInt(_0x588d78(0x177))/0x1*(parseInt(_0x588d78(0x152))/0x2)+parseInt(_0x588d78(0x169))/0x3+parseInt(_0x588d78(0x165))/0x4+-parseInt(_0x588d78(0x181))/0x5*(-parseInt(_0x588d78(0x15b))/0x6)+-parseInt(_0x588d78(0x13e))/0x7+parseInt(_0x588d78(0x15f))/0x8*(-parseInt(_0x588d78(0x147))/0x9)+parseInt(_0x588d78(0x145))/0xa*(parseInt(_0x588d78(0x15e))/0xb);if(_0x32be37===_0x4a3a4b)break;else _0x25cda9['push'](_0x25cda9['shift']());}catch(_0x45b695){_0x25cda9['push'](_0x25cda9['shift']());}}}(_0x49f1,0x8d35b));import{AITextAdapter as _0x25e229}from'./aitextadapter.js';import{AIRequestError as _0x3b8804}from'./aiadapter.js';import{getTranslation as _0x2b6708}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x25e229{[_0x499b62(0x15a)];[_0x499b62(0x180)];[_0x499b62(0x16d)];static get[_0x499b62(0x140)](){const _0x3cdb02=_0x499b62;return _0x3cdb02(0x176);}constructor(_0x154abb){const _0x3e417d=_0x499b62;super(_0x154abb),_0x154abb[_0x3e417d(0x160)][_0x3e417d(0x156)](_0x3e417d(0x158),_0x3e417d(0x13f)),_0x154abb[_0x3e417d(0x160)][_0x3e417d(0x172)](_0x3e417d(0x171))||_0x154abb[_0x3e417d(0x160)][_0x3e417d(0x156)](_0x3e417d(0x171),{'model':_0x3e417d(0x15d),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x3e417d(0x15a)]=_0x154abb[_0x3e417d(0x160)][_0x3e417d(0x172)](_0x3e417d(0x158)),this[_0x3e417d(0x180)]=_0x154abb[_0x3e417d(0x160)][_0x3e417d(0x172)](_0x3e417d(0x168))||{},this[_0x3e417d(0x16d)]=_0x154abb[_0x3e417d(0x160)][_0x3e417d(0x172)](_0x3e417d(0x171));}async[_0x499b62(0x179)]({query:_0x3b1f4f,context:_0x1c46a7,onData:_0x3d522e,actionId:_0x3a5105}){const _0x23cccb=_0x499b62,_0x232319=this[_0x23cccb(0x142)][_0x23cccb(0x17d)],_0x59c13a=await this[_0x23cccb(0x174)](_0x3b1f4f,_0x1c46a7,_0x3a5105),_0x33988c=await this[_0x23cccb(0x17a)](this[_0x23cccb(0x180)],_0x3a5105),_0x3aa0f7=await this[_0x23cccb(0x17c)](this[_0x23cccb(0x16d)],_0x3a5105),_0x2cba77={'messages':_0x59c13a,..._0x3aa0f7},_0x114695={'method':_0x23cccb(0x157),'headers':_0x33988c,'body':JSON[_0x23cccb(0x16a)](_0x2cba77),'signal':this[_0x23cccb(0x153)][_0x23cccb(0x14d)]},_0x12b683=await fetch(this[_0x23cccb(0x15a)],_0x114695);if(_0x12b683['ok'])return _0x3aa0f7[_0x23cccb(0x183)]?await this[_0x23cccb(0x161)](_0x12b683,_0x3d522e):await this[_0x23cccb(0x17f)](_0x12b683,_0x3d522e),Promise[_0x23cccb(0x14f)]();{const _0x5c2efd=await _0x12b683[_0x23cccb(0x170)]();return _0x5c2efd[_0x23cccb(0x14c)](_0x23cccb(0x17b))?Promise[_0x23cccb(0x148)](new _0x3b8804(_0x2b6708(_0x232319,_0x23cccb(0x16f)))):_0x5c2efd[_0x23cccb(0x14c)](_0x23cccb(0x17e))?Promise[_0x23cccb(0x148)](new _0x3b8804(_0x2b6708(_0x232319,_0x23cccb(0x162)))):Promise[_0x23cccb(0x148)](new Error(_0x5c2efd));}}async[_0x499b62(0x174)](_0x18ea31,_0x535e19,_0x13908f){const _0x51e849=_0x499b62;let _0x1c6c5f,_0x1ea6fa;return _0x535e19?(_0x1c6c5f=_0x51e849(0x16c),_0x1ea6fa=_0x51e849(0x14a)+_0x18ea31+_0x51e849(0x16e)+_0x535e19):(_0x1c6c5f=_0x51e849(0x151),_0x1ea6fa=_0x18ea31),[{'role':_0x51e849(0x144),'content':_0x1c6c5f},{'role':_0x51e849(0x15c),'content':_0x1ea6fa}];}async[_0x499b62(0x161)](_0xa9e3ef,_0xd6a6aa){const _0x5493fd=_0x499b62,_0x45b75a=_0xa9e3ef[_0x5493fd(0x178)][_0x5493fd(0x143)](),_0x1d3a0a=new TextDecoder();let _0x2589e1='',_0x445bd5='',_0xcd6515='',_0xac1ce3=!0x1;for(;!_0xac1ce3;){const {done:_0x2e934d,value:_0x32ef88}=await _0x45b75a[_0x5493fd(0x166)](),_0x17bff3=_0x2589e1+_0x1d3a0a[_0x5493fd(0x167)](_0x32ef88);let _0x46aac5='';_0xac1ce3=_0x2e934d;try{_0x46aac5=this[_0x5493fd(0x175)](_0x17bff3),_0x2589e1='';}catch{_0x2589e1=_0x17bff3;continue;}_0x445bd5+=_0x46aac5,!_0xac1ce3&&this[_0x5493fd(0x16b)](_0x445bd5)||_0x445bd5&&(_0xcd6515+=_0x445bd5,_0x445bd5='',_0xd6a6aa(_0xcd6515));}return Promise[_0x5493fd(0x14f)]();}async[_0x499b62(0x17f)](_0x32a617,_0x2bf610){const _0x1430b7=_0x499b62;return _0x2bf610((await _0x32a617[_0x1430b7(0x182)]())[_0x1430b7(0x14e)][0x0][_0x1430b7(0x159)][_0x1430b7(0x149)]),Promise[_0x1430b7(0x14f)]();}[_0x499b62(0x16b)](_0x3420f1){const _0x2c6699=_0x499b62,_0x32fe86=_0x3420f1[_0x2c6699(0x184)]('<')[_0x2c6699(0x173)]!==_0x3420f1[_0x2c6699(0x184)]('>')[_0x2c6699(0x173)],_0x5ed5b5=_0x3420f1[_0x2c6699(0x173)]<0x1e;return _0x32fe86&&_0x5ed5b5;}[_0x499b62(0x175)](_0x42f505){const _0x317ffe=_0x499b62;return _0x42f505[_0x317ffe(0x184)](/\n(?![^{]*\})/g)[_0x317ffe(0x164)](_0x4ccefd=>_0x4ccefd[_0x317ffe(0x146)](_0x317ffe(0x141),''))[_0x317ffe(0x163)](_0x30fa30=>_0x30fa30&&_0x30fa30[_0x317ffe(0x173)]>0x0&&_0x317ffe(0x14b)!==_0x30fa30)[_0x317ffe(0x164)](_0x1995c7=>{const _0x299b46=_0x317ffe,{choices:_0x31a2bb}=JSON[_0x299b46(0x150)](_0x1995c7);if(_0x31a2bb[0x0]?.[_0x299b46(0x155)]?.[_0x299b46(0x149)])return _0x31a2bb[0x0][_0x299b46(0x155)][_0x299b46(0x149)];})[_0x317ffe(0x163)](_0x197b62=>_0x197b62)[_0x317ffe(0x154)]('');}}function _0x49f1(){const _0x39bd61=['OpenAITextAdapter','1PwTQqf','body','sendRequest','_prepareRequestHeaders','context_length_exceeded','_prepareRequestParameters','locale','Moderation','_readStaticResponse','_requestHeaders','115FRZpSa','json','stream','split','3216787fwXscR','https://api.openai.com/v1/chat/completions','pluginName','data:\x20','editor','getReader','system','10022290MvpneL','replace','250119uvvtYY','reject','content','Instruction:\x0a','[DONE]','includes','signal','choices','resolve','parse','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.','1675680GRVnXy','abortController','join','delta','define','POST','ai.assistant.adapter.openAI.apiUrl','message','_apiUrl','97218xkjEwW','user','gpt-4o','11IfeKKD','176xARsPw','config','_readStreamableResponse','AI_ERROR_MODERATION','filter','map','3270812aoSqin','read','decode','ai.assistant.adapter.openAI.requestHeaders','883731ifmpsh','stringify','_isBufferIncomplete','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.','_requestParameters','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','AI_ERROR_CONTEXT_LENGTH','text','ai.assistant.adapter.openAI.requestParameters','get','length','prepareMessages','_cleanUpData'];_0x49f1=function(){return _0x39bd61;};return _0x49f1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4d77e3=_0xbde8;function _0xdeed(){const _0x541223=['Poetic','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.commands','generate','changeStyle','Change\x20style','Translate\x20the\x20content\x20to\x20German\x20language.','2244288foOITk','German','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Business','Translate\x20the\x20content\x20to\x20French\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','pluginName','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Summarize','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translatePortuguese','get','translateEnglish','translateGerman','Legal','groupId','Professional','English','locale','config','French','AIAssistant','includes','Change\x20tone','676870nFuokP','translate','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','780190QbULin','set','requires','Spanish','Casual','9vevmXB','professional','6834856bCBIig','translateSpanish','Direct','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20language','commands','casual','Make\x20shorter','push','7821170cMxetL','makeLonger','Journalism','Portuguese','translateHindi','Simplified\x20Chinese','translateFrench','Translate','editOrReview','ai.assistant.preserveComments','journalism','filter','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','define','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','business','makeShorter','Continue','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','continue','ai.assistant.removeCommands','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','poetic','Arabic','Edit\x20or\x20review','Friendly','legal','friendly','concat','isOfficialPlugin','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Make\x20longer','summarize','isPremiumPlugin','translateArabic','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Confident','753448pYcMuC','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','ai.assistant.extraCommandGroups','changeTone','find','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','direct','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','simplifyLanguage','892956qgddPU','confident','improveWriting','translateChinese','Improve\x20writing','Generate\x20from\x20selection','forEach','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Hindi'];_0xdeed=function(){return _0x541223;};return _0xdeed();}function _0xbde8(_0x36f452,_0x2fda03){const _0xdeed6a=_0xdeed();return _0xbde8=function(_0xbde81b,_0x32df92){_0xbde81b=_0xbde81b-0x103;let _0x1693fd=_0xdeed6a[_0xbde81b];return _0x1693fd;},_0xbde8(_0x36f452,_0x2fda03);}(function(_0x5d09f3,_0x5823f0){const _0x35c76e=_0xbde8,_0x2897a0=_0x5d09f3();while(!![]){try{const _0x5c4259=-parseInt(_0x35c76e(0x165))/0x1+-parseInt(_0x35c76e(0x12a))/0x2+-parseInt(_0x35c76e(0x132))/0x3*(parseInt(_0x35c76e(0x16e))/0x4)+parseInt(_0x35c76e(0x12d))/0x5+parseInt(_0x35c76e(0x112))/0x6+parseInt(_0x35c76e(0x13d))/0x7+parseInt(_0x35c76e(0x134))/0x8;if(_0x5c4259===_0x5823f0)break;else _0x2897a0['push'](_0x2897a0['shift']());}catch(_0x5322f0){_0x2897a0['push'](_0x2897a0['shift']());}}}(_0xdeed,0xb4b39));import{Plugin as _0xaceff4}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x50f0dd}from'./aiassistantui.js';import{AIAssistantEditing as _0x1d8fd3}from'./aiassistantediting.js';import{getTranslation as _0x549f2b}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x3ece95}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0xaceff4{static get[_0x4d77e3(0x12f)](){return[_0x50f0dd,_0x1d8fd3];}static get[_0x4d77e3(0x118)](){const _0xd1157d=_0x4d77e3;return _0xd1157d(0x127);}static get[_0x4d77e3(0x15d)](){return!0x0;}static get[_0x4d77e3(0x161)](){return!0x0;}constructor(_0x2170cd){const _0xd631b5=_0x4d77e3;super(_0x2170cd);const _0x206180=_0x2170cd[_0xd631b5(0x125)],_0x136cc5=_0x2170cd[_0xd631b5(0x124)];_0x206180[_0xd631b5(0x14d)](_0xd631b5(0x146),!0x0),_0x206180[_0xd631b5(0x14d)](_0xd631b5(0x10d),getDefaultAICommands(_0x136cc5)),_0x206180[_0xd631b5(0x14d)](_0xd631b5(0x167),[]),_0x206180[_0xd631b5(0x14d)](_0xd631b5(0x154),[]);let _0x40a840=_0x3ece95(_0x206180[_0xd631b5(0x11d)](_0xd631b5(0x10d)),_0x136cc5);const _0x5b9446=_0x206180[_0xd631b5(0x11d)](_0xd631b5(0x167)),_0x2f14c6=_0x206180[_0xd631b5(0x11d)](_0xd631b5(0x154));_0x5b9446[_0xd631b5(0x107)](_0x388db1=>{const _0x3358bc=_0xd631b5,_0x5efce3=_0x40a840[_0x3358bc(0x169)](_0x35a752=>_0x35a752[_0x3358bc(0x121)]===_0x388db1[_0x3358bc(0x121)]);_0x5efce3?_0x5efce3[_0x3358bc(0x139)]=_0x5efce3[_0x3358bc(0x139)][_0x3358bc(0x15c)](_0x388db1[_0x3358bc(0x139)]):_0x40a840[_0x3358bc(0x13c)](_0x388db1);}),_0x40a840=_0x40a840[_0xd631b5(0x148)](_0x4a0ba3=>!_0x2f14c6[_0xd631b5(0x128)](_0x4a0ba3[_0xd631b5(0x121)])),_0x40a840[_0xd631b5(0x107)](_0xeff982=>{const _0x4b3ee3=_0xd631b5;_0xeff982[_0x4b3ee3(0x139)]=_0xeff982[_0x4b3ee3(0x139)][_0x4b3ee3(0x148)](_0x22f82e=>!_0x2f14c6[_0x4b3ee3(0x128)](_0x22f82e['id']));}),_0x206180[_0xd631b5(0x12e)](_0xd631b5(0x10d),_0x40a840);}}export function getDefaultAICommands(_0x30c793){const _0x2e4c07=_0x4d77e3;return[{'groupId':_0x2e4c07(0x145),'groupLabel':_0x549f2b(_0x30c793,_0x2e4c07(0x158)),'commands':[{'id':_0x2e4c07(0x103),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x105)),'prompt':_0x2e4c07(0x114)},{'id':_0x2e4c07(0x150),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x13b)),'prompt':_0x2e4c07(0x152)},{'id':_0x2e4c07(0x13e),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x15f)),'prompt':_0x2e4c07(0x10b)},{'id':_0x2e4c07(0x16d),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x138)),'prompt':_0x2e4c07(0x155)}]},{'groupId':_0x2e4c07(0x10e),'groupLabel':_0x549f2b(_0x30c793,_0x2e4c07(0x106)),'commands':[{'id':_0x2e4c07(0x160),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x11a)),'prompt':_0x2e4c07(0x16c)},{'id':_0x2e4c07(0x153),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x151)),'prompt':_0x2e4c07(0x14e)}]},{'groupId':_0x2e4c07(0x168),'groupLabel':_0x549f2b(_0x30c793,_0x2e4c07(0x129)),'commands':[{'id':_0x2e4c07(0x133),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x122)),'prompt':_0x2e4c07(0x11b)},{'id':_0x2e4c07(0x13a),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x131)),'prompt':_0x2e4c07(0x119)},{'id':_0x2e4c07(0x16b),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x136)),'prompt':_0x2e4c07(0x12c)},{'id':_0x2e4c07(0x16f),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x164)),'prompt':_0x2e4c07(0x108)},{'id':_0x2e4c07(0x15b),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x159)),'prompt':_0x2e4c07(0x10c)}]},{'groupId':_0x2e4c07(0x10f),'groupLabel':_0x549f2b(_0x30c793,_0x2e4c07(0x110)),'commands':[{'id':_0x2e4c07(0x14f),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x115)),'prompt':_0x2e4c07(0x16a)},{'id':_0x2e4c07(0x15a),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x120)),'prompt':_0x2e4c07(0x14c)},{'id':_0x2e4c07(0x147),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x13f)),'prompt':_0x2e4c07(0x166)},{'id':_0x2e4c07(0x156),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x10a)),'prompt':_0x2e4c07(0x137)}]},{'groupId':_0x2e4c07(0x12b),'groupLabel':_0x549f2b(_0x30c793,_0x2e4c07(0x144)),'commands':[{'id':_0x2e4c07(0x11e),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x123)),'prompt':_0x2e4c07(0x14a)},{'id':_0x2e4c07(0x135),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x130)),'prompt':_0x2e4c07(0x117)},{'id':_0x2e4c07(0x11c),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x140)),'prompt':_0x2e4c07(0x163)},{'id':_0x2e4c07(0x11f),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x113)),'prompt':_0x2e4c07(0x111)},{'id':_0x2e4c07(0x143),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x126)),'prompt':_0x2e4c07(0x116)},{'id':_0x2e4c07(0x104),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x142)),'prompt':_0x2e4c07(0x149)},{'id':_0x2e4c07(0x141),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x109)),'prompt':_0x2e4c07(0x15e)},{'id':_0x2e4c07(0x162),'label':_0x549f2b(_0x30c793,_0x2e4c07(0x157)),'prompt':_0x2e4c07(0x14b)}]}];}
|