@ckeditor/ckeditor5-ai 47.3.0-alpha.7 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/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/showaiassistantcommand.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/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/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/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.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/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/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.3.0
|
|
3
|
+
"version": "47.3.0",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-bedrock-runtime": "3.823.0",
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "47.3.0
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.3.0
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.3.0
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.3.0
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.3.0
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.3.0
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.3.0
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.3.0
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.3.0
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.3.0
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.3.0
|
|
43
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.3.0
|
|
44
|
-
"ckeditor5": "47.3.0
|
|
45
|
-
"ckeditor5-collaboration": "47.3.0
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.3.0",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.3.0",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.3.0",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.3.0",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.3.0",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.3.0",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.3.0",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.3.0",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.3.0",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.3.0",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.3.0",
|
|
43
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.3.0",
|
|
44
|
+
"ckeditor5": "47.3.0",
|
|
45
|
+
"ckeditor5-collaboration": "47.3.0",
|
|
46
46
|
"es-toolkit": "1.39.5",
|
|
47
47
|
"eventsource-parser": "3.0.2",
|
|
48
48
|
"htmlparser2": "10.0.0",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x29b850=_0x12ff;(function(_0x4a895e,_0x16c879){const _0x2b1e3b=_0x12ff,_0x56905a=_0x4a895e();while(!![]){try{const _0x5a1860=-parseInt(_0x2b1e3b(0x234))/0x1*(-parseInt(_0x2b1e3b(0x1d6))/0x2)+parseInt(_0x2b1e3b(0x1e7))/0x3*(parseInt(_0x2b1e3b(0x22a))/0x4)+parseInt(_0x2b1e3b(0x262))/0x5*(-parseInt(_0x2b1e3b(0x223))/0x6)+parseInt(_0x2b1e3b(0x1c4))/0x7*(parseInt(_0x2b1e3b(0x275))/0x8)+-parseInt(_0x2b1e3b(0x1e2))/0x9+parseInt(_0x2b1e3b(0x1b4))/0xa*(-parseInt(_0x2b1e3b(0x1f0))/0xb)+parseInt(_0x2b1e3b(0x27c))/0xc;if(_0x5a1860===_0x16c879)break;else _0x56905a['push'](_0x56905a['shift']());}catch(_0x45766f){_0x56905a['push'](_0x56905a['shift']());}}}(_0x36e3,0xb93ef));import{Plugin as _0x809aed}from'ckeditor5/src/core.js';import{AIConnector as _0x4b8941}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x3fcdb2}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x36e3(){const _0x613cd8=['hideLoader','message','ai.availableReplyActions','error','slice','replies','1/1','_navigateToPrevious','startsWith','howMany','removeNavigationItem','_currentInteractionIndex','insert','Error\x20updating\x20content\x20during\x20navigation:','path','length','forEach','_clearLoadingState','pending','set','upsertAIActionRating','showLoader','interactionFinished','AI_ACTIONS_NEXT_INTERACTION','model','documentFragment','static','_customViews','_interactions','_interaction','stopInteraction','_createInteraction','nextSibling','has','locale','root','Attribute','_displayInteractionAtIndex','AI_ACTIONS_PREVIOUS_INTERACTION','isPremiumPlugin','ck-ai-interaction-counter','showChangesButton','getSelectedContent','isOfficialPlugin','position','getRanges','_getExecuteDataInTable','addNavigationItem','19692MFDtJz','getOperations','hasError','aiBalloon','applyOperation','end','operationsA','47524gGQKdS','getRoot','TrackChanges','parent','executeAction','balloonView','listenTo','$graveyard','getLimitElement','stopAutoScroll','15659EEQcrQ','_disableCustomViews','clone','includes','_interactionParams','close','getFirstRange','_refreshInteraction','map','Error\x20refreshing\x20interaction:','first','isEnabled','_children','random','_clearInteractionHistory','createPositionAt','setLoading','isDocumentOperation','element','createPositionBefore','_aiConnector','processor','abort','textContent','setTemplate','hasPendingParts','isBusy','getDocumentContext','_isNavigationPreviousButtonInView','_navigationPreviousButton','isCollapsed','_anchorOperation','history','stopListening','reinsert','getAncestors','_execute','split','TableSelection','_getExecuteDataRegular','span','mainView','Error\x20updating\x20content\x20in\x20replyContentUpdated:','requires','move','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','1005GolYKG','streaming','replyChangeGroupStateUpdated','nodeAfter','Error\x20updating\x20content\x20in\x20replyCreated:','filter','accepted','add','AIConnector','replyContentUpdated','getCommonAncestor','baseVersion','_appendChild','replyCreated','clearErrorState','showError','ck-ai-navigation-button\x20ck-ai-next-button','_isAbortError','_stopInteraction','8nBqxSL','selectionRemoved','getSelectionAsFragment','updateContent','stop','ck-ai-custom-action-button','toolbar','16320312DFXbZR','enqueue','range','plugins','_setErrorState','_clone','_applyChanges','_navigationCounter','rename','AIBalloon','get','indexOf','setErrorState','remove','_applyOperationsAsSuggestions','_executeAction','actionName','execute','AI_ACTIONS_GENERIC_ERROR','_clearSuggestionContent','type','editor','TrackChangesEditing','setSelection','queueEmptyPromise','data','change','rootName','_promiseQueue','start','merge','AIActions','_balloonShowDiff','selection','4510WPnzyY','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','_isNavigationCounterInView','open','miniToolbarView','_navigationNextButton','config','setChangeGroupState','sourcePosition','hideError','clearLoading','createPositionAfter','areChangesVisible','createRange','ai-request-aborted','icon','1701021mpxiGV','stickiness','state','changeGroups','applySuggestion','batch','_clearErrorState','getSelectedTableCells','isLoading','modelToViewWithIds','insertSuggestion','toData','bind','getChild','getChildAtOffset','_setLoadingState','_filterOperationsOutsideRange','toggleSuggestionDisplayMode','58YYfMVp','_wrapWithCommonAncestors','signal','bodyView','focus','catch','AI_ACTIONS_TRY_AGAIN','startAutoScroll','_isNavigationNextButtonInView','documentContextContent','_updateNavigationUI','_setupCustomViews','3475809GskqEj','version','upsertCustomAIActionRating','dialogClosed','ai-no-track-changes','45YqBBGN','push','actionCallId','ck-ai-navigation-button\x20ck-ai-previous-button','schema','getSelectedBlocks','_navigateToNext','rejected','pluginName','10505tCuwHi','addOperation','document'];_0x36e3=function(){return _0x613cd8;};return _0x36e3();}import{Dialog as _0x407cb2,ButtonView as _0x197995,ViewCollection as _0x11ec9e,View as _0x36dd8f}from'ckeditor5/src/ui.js';import{AIEditing as _0x4b4090}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x5df450}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x25704a,first as _0x251ea3}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x4eb835,IconRefresh as _0x45f56f,IconNextArrow as _0x58f9c4,IconPreviousArrow as _0x5ddb6b,IconShowChangesOff as _0x4013b0}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x270f06}from'../aiballoon/aiballoon.js';function _0x12ff(_0xb56307,_0x2c788d){const _0x36e383=_0x36e3();return _0x12ff=function(_0x12ff4a,_0x2d12cc){_0x12ff4a=_0x12ff4a-0x1b3;let _0x23d7b9=_0x36e383[_0x12ff4a];return _0x23d7b9;},_0x12ff(_0xb56307,_0x2c788d);}import{PromiseQueue as _0x4f17b7}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x4f89fe}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x49ea10}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3233b4}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xf95b18,getOperationsFromReply as _0x3de8a7}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5a7505,ModelRange as _0x19a245,ModelPosition as _0x41f1b2,_DetachOperation as _0x1e8805,transformOperationSets as _0x359e8b}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x83a4ce}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x809aed{static get[_0x29b850(0x25f)](){return[_0x4b8941,_0x407cb2,_0x4b4090,_0x270f06,_0x3233b4];}static get[_0x29b850(0x1ef)](){const _0x385e3e=_0x29b850;return _0x385e3e(0x29b);}static get[_0x29b850(0x21e)](){return!0x0;}static get[_0x29b850(0x21a)](){return!0x0;}[_0x29b850(0x248)];[_0x29b850(0x20f)]=[];[_0x29b850(0x1fe)]=0x0;[_0x29b850(0x238)];[_0x29b850(0x29c)]=!0x1;[_0x29b850(0x20e)]=new _0x11ec9e();[_0x29b850(0x251)];[_0x29b850(0x283)];[_0x29b850(0x1b6)]=!0x1;[_0x29b850(0x1b9)];[_0x29b850(0x250)]=!0x1;[_0x29b850(0x1de)]=!0x1;[_0x29b850(0x298)];get[_0x29b850(0x210)](){const _0x5775ad=_0x29b850;return this[_0x5775ad(0x20f)][this[_0x5775ad(0x20f)][_0x5775ad(0x202)]-0x1];}constructor(_0x37a3a1){const _0x530ece=_0x29b850;super(_0x37a3a1),this[_0x530ece(0x248)]=this[_0x530ece(0x291)][_0x530ece(0x27f)][_0x530ece(0x286)](_0x530ece(0x26a)),this[_0x530ece(0x206)](_0x530ece(0x24e),!0x1),this[_0x530ece(0x298)]=new _0x4f17b7(),this[_0x530ece(0x1e1)]();}[_0x29b850(0x211)](){const _0x19641f=_0x29b850;this[_0x19641f(0x274)]();}async[_0x29b850(0x22e)](_0xffb427,_0x538e4e,_0x2ea5ba){const _0x1fc1be=_0x29b850;if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x214)](_0x1fc1be(0x25a))){if(this[_0x1fc1be(0x291)][_0x1fc1be(0x27f)][_0x1fc1be(0x286)](_0x1fc1be(0x25a))[_0x1fc1be(0x1cb)]()){const {modelFragment:_0x2ca8bc,anchorData:_0x3033bb}=this[_0x1fc1be(0x221)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x2ca8bc,_0x3033bb,_0x538e4e,_0x2ea5ba);}}const {modelFragment:_0x4e9ab3,anchorData:_0x14be92}=this[_0x1fc1be(0x25b)]();return this[_0x1fc1be(0x28b)](_0xffb427,_0x4e9ab3,_0x14be92,_0x538e4e,_0x2ea5ba);}[_0x29b850(0x25b)](){const _0x100ecd=_0x29b850,_0x180763=this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1f2)][_0x100ecd(0x1b3)];if(_0x180763[_0x100ecd(0x252)]){const _0x54af8b=_0x251ea3(_0x180763[_0x100ecd(0x1ec)]())||this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x1eb)][_0x100ecd(0x232)](_0x180763);this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x296)](_0x490f38=>{const _0x20b71f=_0x100ecd;_0x490f38[_0x20b71f(0x293)](_0x54af8b,'in');});}const _0x5a2044=_0x180763[_0x100ecd(0x23a)](),_0x38e721=this[_0x100ecd(0x1d7)](this[_0x100ecd(0x291)][_0x100ecd(0x20b)][_0x100ecd(0x21d)](_0x180763),_0x5a2044[_0x100ecd(0x299)],_0x5a2044[_0x100ecd(0x228)]),_0x16bbd4=_0x180763[_0x100ecd(0x23a)]()[_0x100ecd(0x299)],_0x16ea93=new Map();let _0x3bc6d9=_0x38e721;for(let _0x2d9241=0x0;_0x2d9241<_0x16bbd4[_0x100ecd(0x201)][_0x100ecd(0x202)];_0x2d9241++)_0x16ea93[_0x100ecd(0x206)](_0x3bc6d9,_0x16bbd4[_0x100ecd(0x201)][_0x2d9241]),_0x3bc6d9=_0x3bc6d9[_0x100ecd(0x1d1)](0x0);return{'modelFragment':_0x38e721,'anchorData':_0x16ea93};}[_0x29b850(0x221)](){const _0x385ed5=_0x29b850,_0xd46029=this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1f2)][_0x385ed5(0x1b3)],_0x321ab1=this[_0x385ed5(0x291)][_0x385ed5(0x27f)][_0x385ed5(0x286)](_0x385ed5(0x25a))[_0x385ed5(0x277)](),_0x593b99=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)][_0x385ed5(0x22d)][_0x385ed5(0x22d)],_0x210b9d=this[_0x385ed5(0x1d7)](_0x321ab1,this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x247)](_0x593b99),this[_0x385ed5(0x291)][_0x385ed5(0x20b)][_0x385ed5(0x1bf)](_0x593b99)),_0x4a403f=_0xd46029[_0x385ed5(0x23a)]()[_0x385ed5(0x299)],_0x470843=new Map();let _0x1ccb02=_0x210b9d;for(let _0xc48f9a=0x0;_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)];_0xc48f9a++)if(_0x470843[_0x385ed5(0x206)](_0x1ccb02,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0xc48f9a<_0x4a403f[_0x385ed5(0x201)][_0x385ed5(0x202)]-0x1)_0x1ccb02=_0x1ccb02[_0x385ed5(0x1d1)](0x0);else{let _0x2ad6a5=_0x1ccb02[_0x385ed5(0x213)];for(;_0x2ad6a5;)_0x470843[_0x385ed5(0x206)](_0x2ad6a5,_0x4a403f[_0x385ed5(0x201)][_0xc48f9a]),_0x2ad6a5=_0x2ad6a5[_0x385ed5(0x213)];}return{'modelFragment':_0x210b9d,'anchorData':_0x470843};}[_0x29b850(0x28b)](_0x3807e0,_0x542872,_0x93869,_0x169e61,_0x4d71ac){const _0x50eac5=_0x29b850,_0x575a31=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x4b4090),_0x5b7ed0=this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x286)](_0x270f06),_0x17847f=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1b3)],_0x5a49e1=_0x575a31[_0x50eac5(0x1cd)](_0x542872),_0x3c9834=this[_0x50eac5(0x291)][_0x50eac5(0x295)][_0x50eac5(0x249)][_0x50eac5(0x1cf)](_0x5a49e1),_0x20b7c6=this[_0x50eac5(0x291)][_0x50eac5(0x20b)][_0x50eac5(0x1f2)][_0x50eac5(0x1e3)],_0x1daf56=[..._0x17847f[_0x50eac5(0x220)]()];let _0x54d2b3=this[_0x50eac5(0x291)][_0x50eac5(0x1ba)][_0x50eac5(0x286)](_0x50eac5(0x1f5))||[..._0x83a4ce];this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c))||(_0x54d2b3=_0x54d2b3[_0x50eac5(0x267)](_0x55f159=>_0x50eac5(0x1ce)!=_0x55f159));const _0x51acda=new _0x3fcdb2(this[_0x50eac5(0x291)][_0x50eac5(0x215)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x50eac5(0x1c3),'customView':this[_0x50eac5(0x20e)]},'showUnchangedParts':!0x0,'availableActions':_0x54d2b3});return _0x5b7ed0[_0x50eac5(0x1b7)]({'index':0x3e8*Math[_0x50eac5(0x241)]()%0x3e8,'title':_0x169e61,'icon':_0x4d71ac||_0x4eb835,'mainView':_0x51acda,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x50eac5(0x291)][_0x50eac5(0x27f)][_0x50eac5(0x214)](_0x50eac5(0x22c)),'ranges':_0x1daf56}),this[_0x50eac5(0x1d3)](_0x51acda,_0x5b7ed0),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1c8),()=>{const _0x236a56=_0x50eac5;this[_0x236a56(0x282)](_0x542872,_0x93869,!0x1);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1ce),()=>{const _0x3608d2=_0x50eac5;this[_0x3608d2(0x282)](_0x542872,_0x93869,!0x0);}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x276),()=>{const _0x58e13e=_0x50eac5;this[_0x58e13e(0x274)](),this[_0x58e13e(0x235)]();}),this[_0x50eac5(0x230)](_0x5b7ed0,_0x50eac5(0x1e5),()=>{const _0xe41055=_0x50eac5;if(this[_0xe41055(0x210)]&&this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]>0x0){const _0xd2ca37=this[_0xe41055(0x210)][_0xe41055(0x1f8)][this[_0xe41055(0x210)][_0xe41055(0x1f8)][_0xe41055(0x202)]-0x1],_0x3e7af1=_0xd2ca37[_0xe41055(0x1c7)][0x0];_0x3e7af1&&_0xe41055(0x205)===_0x3e7af1[_0xe41055(0x1c6)]&&_0xd2ca37[_0xe41055(0x1bb)](0x0,_0xe41055(0x1ee));}this[_0xe41055(0x274)](),this[_0xe41055(0x242)](),this[_0xe41055(0x255)](_0x5b7ed0);}),this[_0x50eac5(0x212)](_0x3c9834,_0x20b7c6,_0x51acda,_0x5b7ed0,_0x3807e0);}[_0x29b850(0x1d7)](_0x4d5560,_0x1cdb52,_0x4483d3){const _0x281304=_0x29b850,_0x2e701b=this[_0x281304(0x291)][_0x281304(0x20b)][_0x281304(0x1c1)](_0x1cdb52,_0x4483d3)[_0x281304(0x26c)](),_0x39bbdd=_0x2e701b['is'](_0x281304(0x20c))?[]:_0x2e701b[_0x281304(0x257)]({'includeSelf':!0x0})[_0x281304(0x1f7)](0x1);if(_0x39bbdd[_0x281304(0x202)]){const _0x1b9528=_0x39bbdd[_0x281304(0x23c)](_0x5e84d1=>_0x5e84d1[_0x281304(0x281)](!0x1));for(let _0x51553c=0x1;_0x51553c<_0x1b9528[_0x281304(0x202)];_0x51553c++)_0x1b9528[_0x51553c-0x1][_0x281304(0x26e)](_0x1b9528[_0x51553c]);return _0x1b9528[_0x1b9528[_0x281304(0x202)]-0x1][_0x281304(0x26e)](_0x4d5560),new _0x5a7505(_0x1b9528[0x0]);}return _0x4d5560;}async[_0x29b850(0x212)](_0x518538,_0x3a41a7,_0x32f9b5,_0x58b832,_0x1bcc90){const _0x4a29f6=_0x29b850,_0x436b70=this[_0x4a29f6(0x291)];this[_0x4a29f6(0x238)]={'action':_0x1bcc90,'content':_0x518538,'version':_0x3a41a7,'mainView':_0x32f9b5,'aiBalloon':_0x58b832};const _0x3c1617=new _0x5df450({'connector':this[_0x4a29f6(0x248)],'editor':_0x436b70,'content':_0x518538,'version':_0x3a41a7,..._0x1bcc90});this[_0x4a29f6(0x20f)][_0x4a29f6(0x1e8)](_0x3c1617),_0x32f9b5[_0x4a29f6(0x1bd)]();const _0x4e11b0=(_0xcd263b,_0x445a49,_0x16c90f=!0x1,_0x250569=_0x4a29f6(0x263))=>this[_0x4a29f6(0x298)][_0x4a29f6(0x27d)](async _0x2d153e=>{const _0x2735a3=_0x4a29f6;try{const _0x1dab75=_0x49ea10({'editor':_0x436b70,'changeGroups':_0xcd263b[_0x2735a3(0x1c7)],'documentContextContent':_0xcd263b[_0x2735a3(0x1df)],'showDiff':_0x16c90f,'trimUnchanged':!0x1});await _0x445a49[_0x2735a3(0x278)]({'parts':_0x1dab75,'renderingStrategy':_0x250569,'abortSignal':_0x2d153e});}catch(_0x59a2f8){if(this[_0x2735a3(0x273)](_0x59a2f8))return;throw _0x59a2f8;}});this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26f),(_0x3cdf8c,_0x38ece3)=>{const _0x374719=_0x4a29f6;_0x32f9b5[_0x374719(0x1f3)](),_0x58b832[_0x374719(0x1dd)](),_0x4e11b0(_0x38ece3,_0x32f9b5)[_0x374719(0x1db)](_0x437d8c=>{const _0x25fb22=_0x374719;this[_0x25fb22(0x273)](_0x437d8c)||(console[_0x25fb22(0x1f6)](_0x25fb22(0x266),_0x437d8c),this[_0x25fb22(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x26b),(_0x58955b,_0x5e2b75)=>{const _0x48b0bd=_0x4a29f6;_0x4e11b0(_0x5e2b75,_0x32f9b5)[_0x48b0bd(0x1db)](_0x603999=>{const _0x47941e=_0x48b0bd;this[_0x47941e(0x273)](_0x603999)||(console[_0x47941e(0x1f6)](_0x47941e(0x25e),_0x603999),this[_0x47941e(0x280)](_0x3c1617,_0x32f9b5));});}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x209),async()=>{const _0x1d9eba=_0x4a29f6;try{await this[_0x1d9eba(0x204)](_0x32f9b5,_0x58b832),this[_0x1d9eba(0x1e0)](),await this[_0x1d9eba(0x298)][_0x1d9eba(0x294)];}catch(_0x416242){this[_0x1d9eba(0x273)](_0x416242)||(console[_0x1d9eba(0x1f6)](_0x1d9eba(0x1b5),_0x416242),this[_0x1d9eba(0x280)](_0x3c1617,_0x32f9b5));}finally{_0x58b832[_0x1d9eba(0x233)]();}}),this[_0x4a29f6(0x230)](_0x32f9b5,_0x4a29f6(0x1d5),async(_0x3ebbe9,{showDiff:_0xdb7ac3})=>{const _0x9898=_0x4a29f6;try{this[_0x9898(0x29c)]=_0xdb7ac3;const _0x422e50=this[_0x9898(0x210)][_0x9898(0x1f8)][this[_0x9898(0x210)][_0x9898(0x1f8)][_0x9898(0x202)]-0x1];_0x422e50&&await _0x4e11b0(_0x422e50,_0x32f9b5,_0xdb7ac3,_0x9898(0x20d));}catch(_0x5ebae){this[_0x9898(0x273)](_0x5ebae)||(console[_0x9898(0x1f6)](_0x9898(0x261),_0x5ebae),this[_0x9898(0x280)](_0x3c1617,_0x32f9b5));}}),this[_0x4a29f6(0x210)]['on'](_0x4a29f6(0x264),(_0x13e6de,{reply:_0x377275})=>{const _0x18b871=_0x4a29f6,_0x1d35e7={'positiveCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x267)](_0xaeb5b4=>_0x18b871(0x268)===_0xaeb5b4[_0x18b871(0x1c6)])[_0x18b871(0x202)],'totalCount':_0x377275[_0x18b871(0x1c7)][_0x18b871(0x202)]},_0x669699=this[_0x18b871(0x210)][_0x18b871(0x1e9)],_0x5af7a8=this[_0x18b871(0x210)][_0x18b871(0x28c)];_0x5af7a8?this[_0x18b871(0x248)][_0x18b871(0x207)](_0x5af7a8,_0x669699,_0x1d35e7):this[_0x18b871(0x248)][_0x18b871(0x1e4)](_0x669699,_0x1d35e7);}),this[_0x4a29f6(0x1d3)](_0x32f9b5,_0x58b832);try{const _0x42ef6b=await this[_0x4a29f6(0x210)][_0x4a29f6(0x299)]();return this[_0x4a29f6(0x1e0)](),_0x42ef6b;}catch(_0x573ec4){if(this[_0x4a29f6(0x273)](_0x573ec4))return;_0x32f9b5[_0x4a29f6(0x1f3)](),this[_0x4a29f6(0x280)](_0x3c1617,_0x32f9b5);}}[_0x29b850(0x282)](_0x597d8e,_0x1b77ba,_0x4d60d9){const _0x559725=_0x29b850,_0x2fc8fe=this[_0x559725(0x291)];if(_0x4d60d9&&!_0x2fc8fe[_0x559725(0x27f)][_0x559725(0x214)](_0x559725(0x22c)))throw new _0x25704a(_0x559725(0x1e6),null);const _0xc7b72f=this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x3233b4),_0x38de5f=this[_0x559725(0x210)],_0x53eb20=this[_0x559725(0x210)][_0x559725(0x1f8)][this[_0x559725(0x210)][_0x559725(0x1f8)][_0x559725(0x202)]-0x1],_0x33e033=_0x53eb20[_0x559725(0x1c7)];_0x53eb20[_0x559725(0x1bb)](0x0,_0x559725(0x268));let _0x4f6242=_0x3de8a7({'editor':_0x2fc8fe,'reply':_0x53eb20,'interaction':_0x38de5f,'groups':_0x33e033,'transform':!0x1,'documentCompare':_0xc7b72f,'documentCompareOptions':{'anchor':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x243)](_0x597d8e,0x0),'markDeletions':_0x4d60d9}});_0x4f6242=this[_0x559725(0x1d4)](_0x4f6242,_0x1b77ba);for(const _0x34bcad of _0x4f6242)this[_0x559725(0x253)](_0x1b77ba,_0x34bcad,_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x22b)]());const _0x5ed7db=_0x38de5f[_0x559725(0x24f)]()[_0x559725(0x1e3)],_0x4a7b9a=_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)][_0x559725(0x254)][_0x559725(0x224)](_0x5ed7db),_0x2dceff={'document':_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x1f2)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x23a8b0=_0x359e8b(_0x4f6242,_0x4a7b9a,_0x2dceff)[_0x559725(0x229)];_0x2fc8fe[_0x559725(0x20b)][_0x559725(0x296)](_0x5815ae=>{const _0xa8162f=_0x559725;if(_0x5815ae[_0xa8162f(0x293)](_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1b3)][_0xa8162f(0x1da)]),_0x4d60d9)_0x2fc8fe[_0xa8162f(0x27f)][_0xa8162f(0x286)](_0xa8162f(0x292))[_0xa8162f(0x28a)](_0x23a8b0);else{for(const _0x32d40f of _0x23a8b0)_0x32d40f[_0xa8162f(0x26d)]=_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x1f2)][_0xa8162f(0x1e3)],_0xf95b18(_0x2fc8fe,_0x32d40f),_0x5815ae[_0xa8162f(0x1c9)][_0xa8162f(0x1f1)](_0x32d40f),_0x2fc8fe[_0xa8162f(0x20b)][_0xa8162f(0x227)](_0x32d40f);}}),this[_0x559725(0x291)][_0x559725(0x27f)][_0x559725(0x286)](_0x559725(0x285))[_0x559725(0x239)]();}[_0x29b850(0x1d4)](_0x17c3be,_0x12df39){const _0x57433e=_0x29b850;return _0x17c3be[_0x57433e(0x267)](_0x27c4ae=>{const _0x11d4b3=_0x57433e;if(_0x11d4b3(0x284)==_0x27c4ae[_0x11d4b3(0x290)]){const _0x3db492=_0x27c4ae[_0x11d4b3(0x21f)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x3db492);}if(_0x27c4ae[_0x11d4b3(0x290)][_0x11d4b3(0x287)](_0x11d4b3(0x217))>-0x1){const _0x4ac251=_0x27c4ae[_0x11d4b3(0x27e)][_0x11d4b3(0x299)][_0x11d4b3(0x265)];return!_0x12df39[_0x11d4b3(0x214)](_0x4ac251);}return!0x0;});}[_0x29b850(0x253)](_0x3923e0,_0xd3cc9b,_0x505928){const _0x3268c9=_0x29b850,_0xfab994=_0xd3cc9b[_0x3268c9(0x236)]();for(const _0x44c0c6 in _0xd3cc9b){const _0x1d968f=_0xd3cc9b[_0x44c0c6];_0x1d968f instanceof _0x19a245?_0xd3cc9b[_0x44c0c6]=new _0x19a245(_0xaa654d(_0x1d968f[_0x3268c9(0x299)]),_0xaa654d(_0x1d968f[_0x3268c9(0x228)])):_0x1d968f instanceof _0x41f1b2&&(_0xd3cc9b[_0x44c0c6]=_0xaa654d(_0x1d968f));}if([_0x3268c9(0x1ff),_0x3268c9(0x260),_0x3268c9(0x289),_0x3268c9(0x256),_0x3268c9(0x259),_0x3268c9(0x29a)][_0x3268c9(0x237)](_0xfab994[_0x3268c9(0x290)])){if(_0xfab994[_0x3268c9(0x245)]=!0x1,_0xfab994[_0x3268c9(0x26d)]=null,_0x3268c9(0x289)==_0xfab994[_0x3268c9(0x290)]){const _0x400fed=_0xfab994[_0x3268c9(0x1bc)],_0x56116e=_0xfab994[_0x3268c9(0x1fc)];new _0x1e8805(_0x400fed,_0x56116e)[_0x3268c9(0x258)]();}else _0xfab994[_0x3268c9(0x258)]();}function _0xaa654d(_0x245b2b){const _0xfa37b1=_0x3268c9;if(_0xfa37b1(0x231)==_0x245b2b[_0xfa37b1(0x216)][_0xfa37b1(0x297)])return _0x245b2b;const _0x30efd6=[];let _0x1a4850=_0x245b2b[_0xfa37b1(0x216)];for(let _0x2b1643=0x0;_0x2b1643<_0x245b2b[_0xfa37b1(0x201)][_0xfa37b1(0x202)];_0x2b1643++){const _0x26e53f=_0x3923e0[_0xfa37b1(0x286)](_0x1a4850)||0x0;_0x30efd6[_0x2b1643]=_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]+_0x26e53f,_0x1a4850=_0x1a4850[_0xfa37b1(0x1d2)](_0x245b2b[_0xfa37b1(0x201)][_0x2b1643]);}return new _0x41f1b2(_0x505928,_0x30efd6,_0x245b2b[_0xfa37b1(0x1c5)]);}}[_0x29b850(0x23b)](){const _0x1b6cba=_0x29b850;if(!this[_0x1b6cba(0x238)])return;this[_0x1b6cba(0x20f)][_0x1b6cba(0x202)]>0x0&&this[_0x1b6cba(0x274)](),this[_0x1b6cba(0x1fe)]=0x0,this[_0x1b6cba(0x29c)]=!0x1;const {action:_0x449efd,content:_0x1580ef,version:_0x2c7820,mainView:_0x1f3229,aiBalloon:_0x22b3d5}=this[_0x1b6cba(0x238)];_0x1f3229[_0x1b6cba(0x1c0)]=!0x1,_0x1f3229[_0x1b6cba(0x1bd)](),this[_0x1b6cba(0x1ca)](_0x1f3229,_0x22b3d5);const _0x568b7d=_0x1f3229;_0x568b7d[_0x1b6cba(0x1b8)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)]&&_0x568b7d[_0x1b6cba(0x1b8)][_0x1b6cba(0x21c)][_0x1b6cba(0x206)]({'isOn':!0x1,'icon':_0x4013b0}),this[_0x1b6cba(0x28f)](_0x1f3229),_0x1f3229[_0x1b6cba(0x208)](),this[_0x1b6cba(0x1e0)](),this[_0x1b6cba(0x255)](_0x1f3229),this[_0x1b6cba(0x212)](_0x1580ef,_0x2c7820,_0x1f3229,_0x22b3d5,_0x449efd)[_0x1b6cba(0x1db)](_0x49b423=>{const _0x1df3a1=_0x1b6cba;this[_0x1df3a1(0x273)](_0x49b423)||console[_0x1df3a1(0x1f6)](_0x1df3a1(0x23d),_0x49b423);});}[_0x29b850(0x28f)](_0x2a2180){const _0x21bbf0=_0x29b850,_0xd99c3d=_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x240)];for(;_0xd99c3d[_0x21bbf0(0x202)]>0x0;)_0xd99c3d[_0x21bbf0(0x289)](_0xd99c3d[_0x21bbf0(0x23e)]);_0x2a2180[_0x21bbf0(0x1d9)][_0x21bbf0(0x24d)]=!0x1;}[_0x29b850(0x273)](_0x5515a8){const _0x4b1afc=_0x29b850;return!!_0x5515a8[_0x4b1afc(0x1f4)]&&_0x5515a8[_0x4b1afc(0x1f4)][_0x4b1afc(0x1fb)](_0x4b1afc(0x1c2));}[_0x29b850(0x242)](){const _0x5439f0=_0x29b850;this[_0x5439f0(0x20f)]=[],this[_0x5439f0(0x238)]=void 0x0,this[_0x5439f0(0x1fe)]=0x0,this[_0x5439f0(0x1e0)]();}[_0x29b850(0x274)](){const _0x29bd98=_0x29b850;this[_0x29bd98(0x210)]&&this[_0x29bd98(0x210)][_0x29bd98(0x279)](),this[_0x29bd98(0x298)][_0x29bd98(0x24a)](),this[_0x29bd98(0x24e)]=!0x1,this[_0x29bd98(0x238)]&&this[_0x29bd98(0x238)][_0x29bd98(0x226)][_0x29bd98(0x233)]();}[_0x29b850(0x1e1)](){const _0x58e232=_0x29b850,_0x42336c=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x299494=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x21210c=new _0x36dd8f(this[_0x58e232(0x291)][_0x58e232(0x215)]),_0x27ad4a=new _0x197995(this[_0x58e232(0x291)][_0x58e232(0x215)]);_0x42336c[_0x58e232(0x206)]({'icon':_0x45f56f,'label':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x1dc)),'tooltip':!0x0,'class':_0x58e232(0x27a)}),_0x299494[_0x58e232(0x206)]({'icon':_0x5ddb6b,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x219)),'class':_0x58e232(0x1ea)}),_0x21210c[_0x58e232(0x24c)]({'tag':_0x58e232(0x25c),'attributes':{'class':[_0x58e232(0x21b)]},'children':[_0x58e232(0x1f9)]}),_0x27ad4a[_0x58e232(0x206)]({'icon':_0x58f9c4,'tooltip':_0x4f89fe(this[_0x58e232(0x291)][_0x58e232(0x215)],_0x58e232(0x20a)),'class':_0x58e232(0x272)}),_0x42336c[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x267083=>!_0x267083),_0x42336c['on'](_0x58e232(0x28d),()=>{const _0x5c359b=_0x58e232;this[_0x5c359b(0x23b)]();}),_0x299494[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x57fbd9=>!_0x57fbd9),_0x299494['on'](_0x58e232(0x28d),()=>{const _0x419881=_0x58e232;this[_0x419881(0x1fa)]();}),_0x27ad4a[_0x58e232(0x1d0)](_0x58e232(0x23f))['to'](this,_0x58e232(0x24e),_0x2dd2b2=>!_0x2dd2b2),_0x27ad4a['on'](_0x58e232(0x28d),()=>{const _0x37b698=_0x58e232;this[_0x37b698(0x1ed)]();}),this[_0x58e232(0x251)]=_0x299494,this[_0x58e232(0x283)]=_0x21210c,this[_0x58e232(0x1b9)]=_0x27ad4a,this[_0x58e232(0x20e)][_0x58e232(0x269)](_0x42336c);}[_0x29b850(0x1fa)](){const _0x185ca6=_0x29b850,_0x34a1e3=this[_0x185ca6(0x20f)][_0x185ca6(0x202)];this[_0x185ca6(0x1fe)]<_0x34a1e3-0x1&&this[_0x185ca6(0x218)](this[_0x185ca6(0x1fe)]+0x1);}[_0x29b850(0x1ed)](){const _0x6878f6=_0x29b850;this[_0x6878f6(0x1fe)]>0x0&&this[_0x6878f6(0x218)](this[_0x6878f6(0x1fe)]-0x1);}async[_0x29b850(0x218)](_0x1bc63e){const _0x202800=_0x29b850;if(!this[_0x202800(0x238)])return;this[_0x202800(0x1fe)]=_0x1bc63e;const {mainView:_0x39f57f}=this[_0x202800(0x238)],_0xfb1144=this[_0x202800(0x20f)][this[_0x202800(0x20f)][_0x202800(0x202)]-0x1-this[_0x202800(0x1fe)]];if(!_0xfb1144)return;if(_0xfb1144[_0x202800(0x225)])return this[_0x202800(0x280)](_0xfb1144,_0x39f57f),void this[_0x202800(0x1e0)]();if(!_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)])return;_0x39f57f[_0x202800(0x1bd)](),this[_0x202800(0x238)]&&this[_0x202800(0x1ca)](_0x39f57f,this[_0x202800(0x238)][_0x202800(0x226)]);const _0x328522=_0xfb1144[_0x202800(0x1f8)][_0xfb1144[_0x202800(0x1f8)][_0x202800(0x202)]-0x1];if(_0x328522){const _0x2b94ad=this[_0x202800(0x291)];this[_0x202800(0x28f)](_0x39f57f);try{const _0x27cc36=_0x49ea10({'editor':_0x2b94ad,'changeGroups':_0x328522[_0x202800(0x1c7)],'documentContextContent':_0x328522[_0x202800(0x1df)],'showDiff':this[_0x202800(0x29c)],'trimUnchanged':!0x1});this[_0x202800(0x28f)](_0x39f57f),await new Promise(_0x5b1994=>setTimeout(_0x5b1994,0x32)),await _0x39f57f[_0x202800(0x278)]({'parts':_0x27cc36,'renderingStrategy':_0x202800(0x20d),'abortSignal':new AbortController()[_0x202800(0x1d8)]});}catch(_0x3403c6){this[_0x202800(0x273)](_0x3403c6)||console[_0x202800(0x1f6)](_0x202800(0x200),_0x3403c6);}}this[_0x202800(0x1e0)]();}[_0x29b850(0x1e0)](){const _0x26d2e9=_0x29b850;if(!this[_0x26d2e9(0x251)]||!this[_0x26d2e9(0x283)]||!this[_0x26d2e9(0x1b9)])return;const _0x4b4037=this[_0x26d2e9(0x20f)][_0x26d2e9(0x202)],_0x387fc2=_0x4b4037>0x1,_0x3d701f=this[_0x26d2e9(0x238)]?.[_0x26d2e9(0x25d)];if(_0x387fc2){this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)]||(this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x0,this[_0x26d2e9(0x20e)][_0x26d2e9(0x269)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x222)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x0);const _0x3eab40=_0x4b4037-this[_0x26d2e9(0x1fe)];this[_0x26d2e9(0x283)][_0x26d2e9(0x246)]&&(this[_0x26d2e9(0x283)][_0x26d2e9(0x246)][_0x26d2e9(0x24b)]=_0x3eab40+'/'+_0x4b4037),this[_0x26d2e9(0x251)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]<_0x4b4037-0x1,this[_0x26d2e9(0x1b9)][_0x26d2e9(0x23f)]=this[_0x26d2e9(0x1fe)]>0x0;}else(this[_0x26d2e9(0x250)]||this[_0x26d2e9(0x1b6)]||this[_0x26d2e9(0x1de)])&&(this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x251)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x251)]),this[_0x26d2e9(0x250)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x283)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x283)]),this[_0x26d2e9(0x1b6)]=!0x1,this[_0x26d2e9(0x20e)][_0x26d2e9(0x289)](this[_0x26d2e9(0x1b9)]),_0x3d701f?.[_0x26d2e9(0x1fd)](this[_0x26d2e9(0x1b9)]),this[_0x26d2e9(0x1de)]=!0x1);}[_0x29b850(0x1d3)](_0x2e899d,_0x1ddfe4){const _0x551779=_0x29b850;_0x2e899d[_0x551779(0x244)](),_0x1ddfe4[_0x551779(0x22f)][_0x551779(0x244)](),this[_0x551779(0x24e)]=!0x0;}async[_0x29b850(0x280)](_0x4dd27c,_0x4742e2){const _0x45d80d=_0x29b850,_0x5f2686=_0x4f89fe(this[_0x45d80d(0x291)][_0x45d80d(0x215)],_0x45d80d(0x28e));_0x4742e2[_0x45d80d(0x271)](_0x5f2686),_0x4dd27c[_0x45d80d(0x225)]=!0x0,await this[_0x45d80d(0x298)][_0x45d80d(0x294)],_0x4742e2[_0x45d80d(0x288)](),this[_0x45d80d(0x238)]?.[_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)]&&(this[_0x45d80d(0x238)][_0x45d80d(0x226)][_0x45d80d(0x22f)][_0x45d80d(0x27b)][_0x45d80d(0x1cc)]=!0x0);}[_0x29b850(0x1ca)](_0x4639b7,_0x4d3262){const _0x2f538e=_0x29b850;_0x4639b7[_0x2f538e(0x270)](),_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)]&&(_0x4d3262[_0x2f538e(0x22f)][_0x2f538e(0x27b)][_0x2f538e(0x1cc)]=!0x1);}async[_0x29b850(0x204)](_0x5a11e6,_0x4e4900){const _0x25e240=_0x29b850;await this[_0x25e240(0x298)][_0x25e240(0x294)],this[_0x25e240(0x24e)]=!0x1,_0x5a11e6[_0x25e240(0x1be)](),_0x4e4900[_0x25e240(0x22f)][_0x25e240(0x1be)]();}[_0x29b850(0x235)](){const _0x122843=_0x29b850;this[_0x122843(0x20e)][_0x122843(0x203)](_0x5b06b3=>{const _0x2b794e=_0x122843;_0x2b794e(0x23f)in _0x5b06b3&&(_0x5b06b3[_0x2b794e(0x23f)]=!0x1);});}}
|
|
23
|
+
function _0x9f90(){const _0x106f5c=['first','execute','position','getLimitElement','TrackChangesEditing','setErrorState','replies','TableSelection','focus','bind','batch','message','version','_clone','mainView','45WjKwCA','AIConnector','getAncestors','end','_createInteraction','$graveyard','showLoader','slice','isDocumentOperation','_displayInteractionAtIndex','history','_interactionParams','_balloonShowDiff','getOperations','areChangesVisible','isEnabled','735942QijEDw','isBusy','push','applySuggestion','editor','ck-ai-interaction-counter','createRange','_clearSuggestionContent','852490Emgnse','getRoot','createPositionAfter','data','actionName','processor','howMany','isLoading','miniToolbarView','remove','sourcePosition','rejected','state','42583892vDCLNJ','replyCreated','showError','8gzNWwJ','_isNavigationNextButtonInView','_navigationPreviousButton','_stopInteraction','addNavigationItem','listenTo','_getExecuteDataInTable','_anchorOperation','_isNavigationPreviousButtonInView','stickiness','_executeAction','includes','_updateNavigationUI','getSelectedBlocks','clearErrorState','_interaction','queueEmptyPromise','indexOf','_execute','catch','527628mFdmzB','type','194531PcDblj','ck-ai-navigation-button\x20ck-ai-next-button','rename','_clearErrorState','forEach','ck-ai-custom-action-button','reinsert','startAutoScroll','insertSuggestion','ck-ai-navigation-button\x20ck-ai-previous-button','AI_ACTIONS_PREVIOUS_INTERACTION','add','_applyChanges','Error\x20refreshing\x20interaction:','isOfficialPlugin','Error\x20updating\x20content\x20during\x20navigation:','6gPMAJU','isPremiumPlugin','root','model','_clearInteractionHistory','rootName','getChild','_isAbortError','merge','interactionFinished','locale','map','_setupCustomViews','Attribute','get','baseVersion','hideError','84472rOSDMO','textContent','close','hasError','executeAction','Error\x20updating\x20content\x20in\x20replyContentUpdated:','icon','_aiConnector','469gpQcTC','change','toolbar','modelToViewWithIds','setChangeGroupState','getFirstRange','AIBalloon','pending','_navigationNextButton','clone','aiBalloon','getRanges','hideLoader','element','clearLoading','enqueue','_interactions','nodeAfter','createPositionAt','length','addOperation','upsertAIActionRating','replyContentUpdated','path','documentFragment','_customViews','config','split','AI_ACTIONS_GENERIC_ERROR','_navigationCounter','actionCallId','_refreshInteraction','startsWith','requires','_setErrorState','range','getSelectionAsFragment','ai.availableReplyActions','parent','documentContextContent','TrackChanges','insert','accepted','nextSibling','selectionRemoved','AI_ACTIONS_TRY_AGAIN','start','document','random','_promiseQueue','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','applyOperation','schema','_currentInteractionIndex','723264DfHIeS','getChildAtOffset','_disableCustomViews','changeGroups','stopInteraction','toggleSuggestionDisplayMode','getDocumentContext','streaming','_filterOperationsOutsideRange','signal','open','110Tjfnar','getSelectedContent','createPositionBefore','_clearLoadingState','set','Error\x20updating\x20content\x20in\x20replyCreated:','_navigateToNext','_applyOperationsAsSuggestions','AIActions','getSelectedTableCells','static','balloonView','move','replyChangeGroupStateUpdated','_wrapWithCommonAncestors','35vlUDPo','dialogClosed','bodyView','pluginName','ai-request-aborted','error','_children','upsertCustomAIActionRating','abort','getCommonAncestor','_setLoadingState','updateContent','toData','stopAutoScroll','filter','AI_ACTIONS_NEXT_INTERACTION','isCollapsed','removeNavigationItem','selection','_getExecuteDataRegular','showChangesButton','hasPendingParts','span','_isNavigationCounterInView','_navigateToPrevious','ai-no-track-changes','setLoading','setSelection','1/1','stop','_appendChild','stopListening','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','setTemplate','plugins','operationsA','has'];_0x9f90=function(){return _0x106f5c;};return _0x9f90();}const _0x560db3=_0x1176;(function(_0x2d4673,_0x558328){const _0x40160c=_0x1176,_0x36fb28=_0x2d4673();while(!![]){try{const _0x46944a=-parseInt(_0x40160c(0x1b1))/0x1*(parseInt(_0x40160c(0x1c1))/0x2)+-parseInt(_0x40160c(0x1af))/0x3*(-parseInt(_0x40160c(0x19b))/0x4)+-parseInt(_0x40160c(0x13f))/0x5*(parseInt(_0x40160c(0x183))/0x6)+parseInt(_0x40160c(0xef))/0x7*(-parseInt(_0x40160c(0xe7))/0x8)+-parseInt(_0x40160c(0x173))/0x9*(parseInt(_0x40160c(0x18b))/0xa)+parseInt(_0x40160c(0x130))/0xb*(-parseInt(_0x40160c(0x125))/0xc)+parseInt(_0x40160c(0x198))/0xd;if(_0x46944a===_0x558328)break;else _0x36fb28['push'](_0x36fb28['shift']());}catch(_0x6d09c){_0x36fb28['push'](_0x36fb28['shift']());}}}(_0x9f90,0x6d93a));import{Plugin as _0x155a29}from'ckeditor5/src/core.js';import{AIConnector as _0x22fa35}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x1cc655}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x3ccbb4,ButtonView as _0x45fc67,ViewCollection as _0x4d9151,View as _0x2a0efa}from'ckeditor5/src/ui.js';import{AIEditing as _0x4fd8af}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x4e902f}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x159e3f,first as _0xf706e5}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x512262,IconRefresh as _0x4b2471,IconNextArrow as _0x49f0b5,IconPreviousArrow as _0x561973,IconShowChangesOff as _0x1fa255}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x1b1b23}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x21a9e1}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x45d4d1}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x44374e}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x523407}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x342f4b,getOperationsFromReply as _0x24bfd0}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x5c421e,ModelRange as _0x1fbe8e,ModelPosition as _0x5ef448,_DetachOperation as _0x2f80fb,transformOperationSets as _0x249a0d}from'ckeditor5/src/engine.js';function _0x1176(_0x495fbd,_0x15731d){const _0x9f904e=_0x9f90();return _0x1176=function(_0x117628,_0x26db90){_0x117628=_0x117628-0xe6;let _0x1cf67c=_0x9f904e[_0x117628];return _0x1cf67c;},_0x1176(_0x495fbd,_0x15731d);}import{AI_REPLY_ACTIONS as _0x140a47}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIActions extends _0x155a29{static get[_0x560db3(0x110)](){return[_0x22fa35,_0x3ccbb4,_0x4fd8af,_0x1b1b23,_0x523407];}static get[_0x560db3(0x142)](){const _0x1271fa=_0x560db3;return _0x1271fa(0x138);}static get[_0x560db3(0x1bf)](){return!0x0;}static get[_0x560db3(0x1c2)](){return!0x0;}[_0x560db3(0xee)];[_0x560db3(0xff)]=[];[_0x560db3(0x124)]=0x0;[_0x560db3(0x17e)];[_0x560db3(0x17f)]=!0x1;[_0x560db3(0x108)]=new _0x4d9151();[_0x560db3(0x19d)];[_0x560db3(0x10c)];[_0x560db3(0x156)]=!0x1;[_0x560db3(0xf7)];[_0x560db3(0x1a3)]=!0x1;[_0x560db3(0x19c)]=!0x1;[_0x560db3(0x120)];get[_0x560db3(0x1aa)](){const _0x1749f2=_0x560db3;return this[_0x1749f2(0xff)][this[_0x1749f2(0xff)][_0x1749f2(0x102)]-0x1];}constructor(_0x2f4d68){const _0x4c880c=_0x560db3;super(_0x2f4d68),this[_0x4c880c(0xee)]=this[_0x4c880c(0x187)][_0x4c880c(0x161)][_0x4c880c(0x1cf)](_0x4c880c(0x174)),this[_0x4c880c(0x134)](_0x4c880c(0x184),!0x1),this[_0x4c880c(0x120)]=new _0x21a9e1(),this[_0x4c880c(0x1cd)]();}[_0x560db3(0x129)](){const _0x2ecba8=_0x560db3;this[_0x2ecba8(0x19e)]();}async[_0x560db3(0xeb)](_0x33607d,_0x569ece,_0x105b74){const _0xf76808=_0x560db3;if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x163)](_0xf76808(0x16b))){if(this[_0xf76808(0x187)][_0xf76808(0x161)][_0xf76808(0x1cf)](_0xf76808(0x16b))[_0xf76808(0x139)]()){const {modelFragment:_0x379380,anchorData:_0x5a9924}=this[_0xf76808(0x1a1)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x379380,_0x5a9924,_0x569ece,_0x105b74);}}const {modelFragment:_0x1de179,anchorData:_0x2f0b08}=this[_0xf76808(0x152)]();return this[_0xf76808(0x1a5)](_0x33607d,_0x1de179,_0x2f0b08,_0x569ece,_0x105b74);}[_0x560db3(0x152)](){const _0x219931=_0x560db3,_0x4fb3d2=this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x11e)][_0x219931(0x151)];if(_0x4fb3d2[_0x219931(0x14f)]){const _0x511adb=_0xf706e5(_0x4fb3d2[_0x219931(0x1a8)]())||this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x123)][_0x219931(0x167)](_0x4fb3d2);this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0xf0)](_0x27ffb9=>{const _0x20c759=_0x219931;_0x27ffb9[_0x20c759(0x15a)](_0x511adb,'in');});}const _0x1037ad=_0x4fb3d2[_0x219931(0xf4)](),_0x11b693=this[_0x219931(0x13e)](this[_0x219931(0x187)][_0x219931(0x1c4)][_0x219931(0x131)](_0x4fb3d2),_0x1037ad[_0x219931(0x11d)],_0x1037ad[_0x219931(0x176)]),_0x370994=_0x4fb3d2[_0x219931(0xf4)]()[_0x219931(0x11d)],_0x329695=new Map();let _0x5df5bb=_0x11b693;for(let _0x3f0ff4=0x0;_0x3f0ff4<_0x370994[_0x219931(0x106)][_0x219931(0x102)];_0x3f0ff4++)_0x329695[_0x219931(0x134)](_0x5df5bb,_0x370994[_0x219931(0x106)][_0x3f0ff4]),_0x5df5bb=_0x5df5bb[_0x219931(0x1c7)](0x0);return{'modelFragment':_0x11b693,'anchorData':_0x329695};}[_0x560db3(0x1a1)](){const _0x16fc1c=_0x560db3,_0x230e8e=this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x11e)][_0x16fc1c(0x151)],_0x7c4b67=this[_0x16fc1c(0x187)][_0x16fc1c(0x161)][_0x16fc1c(0x1cf)](_0x16fc1c(0x16b))[_0x16fc1c(0x113)](),_0x2b6c96=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)][_0x16fc1c(0x115)][_0x16fc1c(0x115)],_0x3f8361=this[_0x16fc1c(0x13e)](_0x7c4b67,this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x132)](_0x2b6c96),this[_0x16fc1c(0x187)][_0x16fc1c(0x1c4)][_0x16fc1c(0x18d)](_0x2b6c96)),_0x3f7832=_0x230e8e[_0x16fc1c(0xf4)]()[_0x16fc1c(0x11d)],_0x248d16=new Map();let _0x2b8add=_0x3f8361;for(let _0x574005=0x0;_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)];_0x574005++)if(_0x248d16[_0x16fc1c(0x134)](_0x2b8add,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x574005<_0x3f7832[_0x16fc1c(0x106)][_0x16fc1c(0x102)]-0x1)_0x2b8add=_0x2b8add[_0x16fc1c(0x1c7)](0x0);else{let _0x1a477f=_0x2b8add[_0x16fc1c(0x11a)];for(;_0x1a477f;)_0x248d16[_0x16fc1c(0x134)](_0x1a477f,_0x3f7832[_0x16fc1c(0x106)][_0x574005]),_0x1a477f=_0x1a477f[_0x16fc1c(0x11a)];}return{'modelFragment':_0x3f8361,'anchorData':_0x248d16};}[_0x560db3(0x1a5)](_0x5c896b,_0x5939b6,_0x5b64ed,_0x5e1bc5,_0xa0cce6){const _0x378b75=_0x560db3,_0x4bf18e=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x4fd8af),_0x43e898=this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x1cf)](_0x1b1b23),_0x21d787=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x151)],_0x4e4e27=_0x4bf18e[_0x378b75(0xf2)](_0x5939b6),_0xa82277=this[_0x378b75(0x187)][_0x378b75(0x18e)][_0x378b75(0x190)][_0x378b75(0x14b)](_0x4e4e27),_0x13de40=this[_0x378b75(0x187)][_0x378b75(0x1c4)][_0x378b75(0x11e)][_0x378b75(0x170)],_0x5b8090=[..._0x21d787[_0x378b75(0xfa)]()];let _0x58abb7=this[_0x378b75(0x187)][_0x378b75(0x109)][_0x378b75(0x1cf)](_0x378b75(0x114))||[..._0x140a47];this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117))||(_0x58abb7=_0x58abb7[_0x378b75(0x14d)](_0x22ca8c=>_0x378b75(0x1b9)!=_0x22ca8c));const _0x20d6a5=new _0x1cc655(this[_0x378b75(0x187)][_0x378b75(0x1cb)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x378b75(0xed),'customView':this[_0x378b75(0x108)]},'showUnchangedParts':!0x0,'availableActions':_0x58abb7});return _0x43e898[_0x378b75(0x12f)]({'index':0x3e8*Math[_0x378b75(0x11f)]()%0x3e8,'title':_0x5e1bc5,'icon':_0xa0cce6||_0x512262,'mainView':_0x20d6a5,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':this[_0x378b75(0x187)][_0x378b75(0x161)][_0x378b75(0x163)](_0x378b75(0x117)),'ranges':_0x5b8090}),this[_0x378b75(0x149)](_0x20d6a5,_0x43e898),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x186),()=>{const _0x10c755=_0x378b75;this[_0x10c755(0x1bd)](_0x5939b6,_0x5b64ed,!0x1);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x1b9),()=>{const _0x353030=_0x378b75;this[_0x353030(0x1bd)](_0x5939b6,_0x5b64ed,!0x0);}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x11b),()=>{const _0x17363c=_0x378b75;this[_0x17363c(0x19e)](),this[_0x17363c(0x127)]();}),this[_0x378b75(0x1a0)](_0x43e898,_0x378b75(0x140),()=>{const _0x48f798=_0x378b75;if(this[_0x48f798(0x1aa)]&&this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]>0x0){const _0xd54cc0=this[_0x48f798(0x1aa)][_0x48f798(0x16a)][this[_0x48f798(0x1aa)][_0x48f798(0x16a)][_0x48f798(0x102)]-0x1],_0x1426a0=_0xd54cc0[_0x48f798(0x128)][0x0];_0x1426a0&&_0x48f798(0xf6)===_0x1426a0[_0x48f798(0x197)]&&_0xd54cc0[_0x48f798(0xf3)](0x0,_0x48f798(0x196));}this[_0x48f798(0x19e)](),this[_0x48f798(0x1c5)](),this[_0x48f798(0x15e)](_0x43e898);}),this[_0x378b75(0x177)](_0xa82277,_0x13de40,_0x20d6a5,_0x43e898,_0x5c896b);}[_0x560db3(0x13e)](_0x57b985,_0x30e578,_0x3c197f){const _0x1d7b5c=_0x560db3,_0xb7b8f4=this[_0x1d7b5c(0x187)][_0x1d7b5c(0x1c4)][_0x1d7b5c(0x189)](_0x30e578,_0x3c197f)[_0x1d7b5c(0x148)](),_0x4de996=_0xb7b8f4['is'](_0x1d7b5c(0x107))?[]:_0xb7b8f4[_0x1d7b5c(0x175)]({'includeSelf':!0x0})[_0x1d7b5c(0x17a)](0x1);if(_0x4de996[_0x1d7b5c(0x102)]){const _0x556756=_0x4de996[_0x1d7b5c(0x1cc)](_0x3f506b=>_0x3f506b[_0x1d7b5c(0x171)](!0x1));for(let _0x242336=0x1;_0x242336<_0x556756[_0x1d7b5c(0x102)];_0x242336++)_0x556756[_0x242336-0x1][_0x1d7b5c(0x15d)](_0x556756[_0x242336]);return _0x556756[_0x556756[_0x1d7b5c(0x102)]-0x1][_0x1d7b5c(0x15d)](_0x57b985),new _0x5c421e(_0x556756[0x0]);}return _0x57b985;}async[_0x560db3(0x177)](_0x253094,_0x46795a,_0x57cca5,_0x154fa6,_0x551eb4){const _0x30886d=_0x560db3,_0x347581=this[_0x30886d(0x187)];this[_0x30886d(0x17e)]={'action':_0x551eb4,'content':_0x253094,'version':_0x46795a,'mainView':_0x57cca5,'aiBalloon':_0x154fa6};const _0x2654bf=new _0x4e902f({'connector':this[_0x30886d(0xee)],'editor':_0x347581,'content':_0x253094,'version':_0x46795a,..._0x551eb4});this[_0x30886d(0xff)][_0x30886d(0x185)](_0x2654bf),_0x57cca5[_0x30886d(0xe6)]();const _0x1a2bc8=(_0x1e32e3,_0xcb3d1f,_0x18b2fd=!0x1,_0x479518=_0x30886d(0x12c))=>this[_0x30886d(0x120)][_0x30886d(0xfe)](async _0x4200b3=>{const _0x542ef8=_0x30886d;try{const _0x3ec8c5=_0x44374e({'editor':_0x347581,'changeGroups':_0x1e32e3[_0x542ef8(0x128)],'documentContextContent':_0x1e32e3[_0x542ef8(0x116)],'showDiff':_0x18b2fd,'trimUnchanged':!0x1});await _0xcb3d1f[_0x542ef8(0x14a)]({'parts':_0x3ec8c5,'renderingStrategy':_0x479518,'abortSignal':_0x4200b3});}catch(_0x282b30){if(this[_0x542ef8(0x1c8)](_0x282b30))return;throw _0x282b30;}});this[_0x30886d(0x1aa)]['on'](_0x30886d(0x199),(_0x4c8dd8,_0x1780dc)=>{const _0x5f3b1a=_0x30886d;_0x57cca5[_0x5f3b1a(0xfb)](),_0x154fa6[_0x5f3b1a(0x1b8)](),_0x1a2bc8(_0x1780dc,_0x57cca5)[_0x5f3b1a(0x1ae)](_0x108716=>{const _0x6235ce=_0x5f3b1a;this[_0x6235ce(0x1c8)](_0x108716)||(console[_0x6235ce(0x144)](_0x6235ce(0x135),_0x108716),this[_0x6235ce(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x105),(_0x29926b,_0x232aaf)=>{const _0x1252cf=_0x30886d;_0x1a2bc8(_0x232aaf,_0x57cca5)[_0x1252cf(0x1ae)](_0x257f19=>{const _0x2d85b1=_0x1252cf;this[_0x2d85b1(0x1c8)](_0x257f19)||(console[_0x2d85b1(0x144)](_0x2d85b1(0xec),_0x257f19),this[_0x2d85b1(0x111)](_0x2654bf,_0x57cca5));});}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x1ca),async()=>{const _0x4e7352=_0x30886d;try{await this[_0x4e7352(0x133)](_0x57cca5,_0x154fa6),this[_0x4e7352(0x1a7)](),await this[_0x4e7352(0x120)][_0x4e7352(0x1ab)];}catch(_0x3ad823){this[_0x4e7352(0x1c8)](_0x3ad823)||(console[_0x4e7352(0x144)](_0x4e7352(0x121),_0x3ad823),this[_0x4e7352(0x111)](_0x2654bf,_0x57cca5));}finally{_0x154fa6[_0x4e7352(0x14c)]();}}),this[_0x30886d(0x1a0)](_0x57cca5,_0x30886d(0x12a),async(_0x17e1c8,{showDiff:_0x2f33c6})=>{const _0x5b73ac=_0x30886d;try{this[_0x5b73ac(0x17f)]=_0x2f33c6;const _0x90c3ec=this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][this[_0x5b73ac(0x1aa)][_0x5b73ac(0x16a)][_0x5b73ac(0x102)]-0x1];_0x90c3ec&&await _0x1a2bc8(_0x90c3ec,_0x57cca5,_0x2f33c6,_0x5b73ac(0x13a));}catch(_0x15df0a){this[_0x5b73ac(0x1c8)](_0x15df0a)||(console[_0x5b73ac(0x144)](_0x5b73ac(0x15f),_0x15df0a),this[_0x5b73ac(0x111)](_0x2654bf,_0x57cca5));}}),this[_0x30886d(0x1aa)]['on'](_0x30886d(0x13d),(_0x3362d7,{reply:_0x2aadbb})=>{const _0x5c85c8=_0x30886d,_0x5e3425={'positiveCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x14d)](_0xda5c54=>_0x5c85c8(0x119)===_0xda5c54[_0x5c85c8(0x197)])[_0x5c85c8(0x102)],'totalCount':_0x2aadbb[_0x5c85c8(0x128)][_0x5c85c8(0x102)]},_0x38e225=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x10d)],_0x386f9c=this[_0x5c85c8(0x1aa)][_0x5c85c8(0x18f)];_0x386f9c?this[_0x5c85c8(0xee)][_0x5c85c8(0x104)](_0x386f9c,_0x38e225,_0x5e3425):this[_0x5c85c8(0xee)][_0x5c85c8(0x146)](_0x38e225,_0x5e3425);}),this[_0x30886d(0x149)](_0x57cca5,_0x154fa6);try{const _0x14e663=await this[_0x30886d(0x1aa)][_0x30886d(0x11d)]();return this[_0x30886d(0x1a7)](),_0x14e663;}catch(_0x4d1804){if(this[_0x30886d(0x1c8)](_0x4d1804))return;_0x57cca5[_0x30886d(0xfb)](),this[_0x30886d(0x111)](_0x2654bf,_0x57cca5);}}[_0x560db3(0x1bd)](_0x522d91,_0x38ff84,_0x56dc48){const _0x4f8f6a=_0x560db3,_0x3de26f=this[_0x4f8f6a(0x187)];if(_0x56dc48&&!_0x3de26f[_0x4f8f6a(0x161)][_0x4f8f6a(0x163)](_0x4f8f6a(0x117)))throw new _0x159e3f(_0x4f8f6a(0x158),null);const _0x1a5f70=this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x523407),_0x3b6730=this[_0x4f8f6a(0x1aa)],_0x44fb69=this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][this[_0x4f8f6a(0x1aa)][_0x4f8f6a(0x16a)][_0x4f8f6a(0x102)]-0x1],_0x3d9599=_0x44fb69[_0x4f8f6a(0x128)];_0x44fb69[_0x4f8f6a(0xf3)](0x0,_0x4f8f6a(0x119));let _0x7050f9=_0x24bfd0({'editor':_0x3de26f,'reply':_0x44fb69,'interaction':_0x3b6730,'groups':_0x3d9599,'transform':!0x1,'documentCompare':_0x1a5f70,'documentCompareOptions':{'anchor':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x101)](_0x522d91,0x0),'markDeletions':_0x56dc48}});_0x7050f9=this[_0x4f8f6a(0x12d)](_0x7050f9,_0x38ff84);for(const _0x543e37 of _0x7050f9)this[_0x4f8f6a(0x1a2)](_0x38ff84,_0x543e37,_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x18c)]());const _0xe5316d=_0x3b6730[_0x4f8f6a(0x12b)]()[_0x4f8f6a(0x170)],_0x10cd69=_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)][_0x4f8f6a(0x17d)][_0x4f8f6a(0x180)](_0xe5316d),_0x5332d1={'document':_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0x11e)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x970c01=_0x249a0d(_0x7050f9,_0x10cd69,_0x5332d1)[_0x4f8f6a(0x162)];_0x3de26f[_0x4f8f6a(0x1c4)][_0x4f8f6a(0xf0)](_0x5a8797=>{const _0x110fee=_0x4f8f6a;if(_0x5a8797[_0x110fee(0x15a)](_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x151)][_0x110fee(0x16c)]),_0x56dc48)_0x3de26f[_0x110fee(0x161)][_0x110fee(0x1cf)](_0x110fee(0x168))[_0x110fee(0x137)](_0x970c01);else{for(const _0x4bef40 of _0x970c01)_0x4bef40[_0x110fee(0x1d0)]=_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x11e)][_0x110fee(0x170)],_0x342f4b(_0x3de26f,_0x4bef40),_0x5a8797[_0x110fee(0x16e)][_0x110fee(0x103)](_0x4bef40),_0x3de26f[_0x110fee(0x1c4)][_0x110fee(0x122)](_0x4bef40);}}),this[_0x4f8f6a(0x187)][_0x4f8f6a(0x161)][_0x4f8f6a(0x1cf)](_0x4f8f6a(0xf5))[_0x4f8f6a(0xe9)]();}[_0x560db3(0x12d)](_0x364130,_0x5a76fe){const _0x376620=_0x560db3;return _0x364130[_0x376620(0x14d)](_0x4be65e=>{const _0x20fc58=_0x376620;if(_0x20fc58(0x1b3)==_0x4be65e[_0x20fc58(0x1b0)]){const _0x102f0f=_0x4be65e[_0x20fc58(0x166)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x102f0f);}if(_0x4be65e[_0x20fc58(0x1b0)][_0x20fc58(0x1ac)](_0x20fc58(0x1ce))>-0x1){const _0x3cc92d=_0x4be65e[_0x20fc58(0x112)][_0x20fc58(0x11d)][_0x20fc58(0x100)];return!_0x5a76fe[_0x20fc58(0x163)](_0x3cc92d);}return!0x0;});}[_0x560db3(0x1a2)](_0x424aab,_0x7935f4,_0x51938f){const _0x433aec=_0x560db3,_0x24d00d=_0x7935f4[_0x433aec(0xf8)]();for(const _0x1aa9a3 in _0x7935f4){const _0x16c272=_0x7935f4[_0x1aa9a3];_0x16c272 instanceof _0x1fbe8e?_0x7935f4[_0x1aa9a3]=new _0x1fbe8e(_0x5c9d59(_0x16c272[_0x433aec(0x11d)]),_0x5c9d59(_0x16c272[_0x433aec(0x176)])):_0x16c272 instanceof _0x5ef448&&(_0x7935f4[_0x1aa9a3]=_0x5c9d59(_0x16c272));}if([_0x433aec(0x118),_0x433aec(0x13c),_0x433aec(0x194),_0x433aec(0x1b7),_0x433aec(0x10a),_0x433aec(0x1c9)][_0x433aec(0x1a6)](_0x24d00d[_0x433aec(0x1b0)])){if(_0x24d00d[_0x433aec(0x17b)]=!0x1,_0x24d00d[_0x433aec(0x1d0)]=null,_0x433aec(0x194)==_0x24d00d[_0x433aec(0x1b0)]){const _0x2e347d=_0x24d00d[_0x433aec(0x195)],_0x28a016=_0x24d00d[_0x433aec(0x191)];new _0x2f80fb(_0x2e347d,_0x28a016)[_0x433aec(0x1ad)]();}else _0x24d00d[_0x433aec(0x1ad)]();}function _0x5c9d59(_0x26a6db){const _0x490a1e=_0x433aec;if(_0x490a1e(0x178)==_0x26a6db[_0x490a1e(0x1c3)][_0x490a1e(0x1c6)])return _0x26a6db;const _0x42292e=[];let _0x268c17=_0x26a6db[_0x490a1e(0x1c3)];for(let _0x35c874=0x0;_0x35c874<_0x26a6db[_0x490a1e(0x106)][_0x490a1e(0x102)];_0x35c874++){const _0x39bdc2=_0x424aab[_0x490a1e(0x1cf)](_0x268c17)||0x0;_0x42292e[_0x35c874]=_0x26a6db[_0x490a1e(0x106)][_0x35c874]+_0x39bdc2,_0x268c17=_0x268c17[_0x490a1e(0x126)](_0x26a6db[_0x490a1e(0x106)][_0x35c874]);}return new _0x5ef448(_0x51938f,_0x42292e,_0x26a6db[_0x490a1e(0x1a4)]);}}[_0x560db3(0x10e)](){const _0xf740e3=_0x560db3;if(!this[_0xf740e3(0x17e)])return;this[_0xf740e3(0xff)][_0xf740e3(0x102)]>0x0&&this[_0xf740e3(0x19e)](),this[_0xf740e3(0x124)]=0x0,this[_0xf740e3(0x17f)]=!0x1;const {action:_0x505b2c,content:_0x4f02fc,version:_0xf6c7d9,mainView:_0x2cab65,aiBalloon:_0x1d3369}=this[_0xf740e3(0x17e)];_0x2cab65[_0xf740e3(0x181)]=!0x1,_0x2cab65[_0xf740e3(0xe6)](),this[_0xf740e3(0x1b4)](_0x2cab65,_0x1d3369);const _0x63f64a=_0x2cab65;_0x63f64a[_0xf740e3(0x193)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)]&&_0x63f64a[_0xf740e3(0x193)][_0xf740e3(0x153)][_0xf740e3(0x134)]({'isOn':!0x1,'icon':_0x1fa255}),this[_0xf740e3(0x18a)](_0x2cab65),_0x2cab65[_0xf740e3(0x179)](),this[_0xf740e3(0x1a7)](),this[_0xf740e3(0x15e)](_0x2cab65),this[_0xf740e3(0x177)](_0x4f02fc,_0xf6c7d9,_0x2cab65,_0x1d3369,_0x505b2c)[_0xf740e3(0x1ae)](_0x20c73f=>{const _0x105e05=_0xf740e3;this[_0x105e05(0x1c8)](_0x20c73f)||console[_0x105e05(0x144)](_0x105e05(0x1be),_0x20c73f);});}[_0x560db3(0x18a)](_0x52a897){const _0x4f3d25=_0x560db3,_0x4a8e31=_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x145)];for(;_0x4a8e31[_0x4f3d25(0x102)]>0x0;)_0x4a8e31[_0x4f3d25(0x194)](_0x4a8e31[_0x4f3d25(0x164)]);_0x52a897[_0x4f3d25(0x141)][_0x4f3d25(0x154)]=!0x1;}[_0x560db3(0x1c8)](_0x354c91){const _0x4611af=_0x560db3;return!!_0x354c91[_0x4611af(0x16f)]&&_0x354c91[_0x4611af(0x16f)][_0x4611af(0x10f)](_0x4611af(0x143));}[_0x560db3(0x1c5)](){const _0x38951c=_0x560db3;this[_0x38951c(0xff)]=[],this[_0x38951c(0x17e)]=void 0x0,this[_0x38951c(0x124)]=0x0,this[_0x38951c(0x1a7)]();}[_0x560db3(0x19e)](){const _0x2b3495=_0x560db3;this[_0x2b3495(0x1aa)]&&this[_0x2b3495(0x1aa)][_0x2b3495(0x15c)](),this[_0x2b3495(0x120)][_0x2b3495(0x147)](),this[_0x2b3495(0x184)]=!0x1,this[_0x2b3495(0x17e)]&&this[_0x2b3495(0x17e)][_0x2b3495(0xf9)][_0x2b3495(0x14c)]();}[_0x560db3(0x1cd)](){const _0x17b757=_0x560db3,_0x37e370=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0xd735f5=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x22d912=new _0x2a0efa(this[_0x17b757(0x187)][_0x17b757(0x1cb)]),_0x5189ed=new _0x45fc67(this[_0x17b757(0x187)][_0x17b757(0x1cb)]);_0x37e370[_0x17b757(0x134)]({'icon':_0x4b2471,'label':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x11c)),'tooltip':!0x0,'class':_0x17b757(0x1b6)}),_0xd735f5[_0x17b757(0x134)]({'icon':_0x561973,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x1bb)),'class':_0x17b757(0x1ba)}),_0x22d912[_0x17b757(0x160)]({'tag':_0x17b757(0x155),'attributes':{'class':[_0x17b757(0x188)]},'children':[_0x17b757(0x15b)]}),_0x5189ed[_0x17b757(0x134)]({'icon':_0x49f0b5,'tooltip':_0x45d4d1(this[_0x17b757(0x187)][_0x17b757(0x1cb)],_0x17b757(0x14e)),'class':_0x17b757(0x1b2)}),_0x37e370[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x1feae3=>!_0x1feae3),_0x37e370['on'](_0x17b757(0x165),()=>{const _0x3f860c=_0x17b757;this[_0x3f860c(0x10e)]();}),_0xd735f5[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x4a8efd=>!_0x4a8efd),_0xd735f5['on'](_0x17b757(0x165),()=>{const _0x11a201=_0x17b757;this[_0x11a201(0x157)]();}),_0x5189ed[_0x17b757(0x16d)](_0x17b757(0x182))['to'](this,_0x17b757(0x184),_0x5f1b93=>!_0x5f1b93),_0x5189ed['on'](_0x17b757(0x165),()=>{const _0x176872=_0x17b757;this[_0x176872(0x136)]();}),this[_0x17b757(0x19d)]=_0xd735f5,this[_0x17b757(0x10c)]=_0x22d912,this[_0x17b757(0xf7)]=_0x5189ed,this[_0x17b757(0x108)][_0x17b757(0x1bc)](_0x37e370);}[_0x560db3(0x157)](){const _0x3aaacf=_0x560db3,_0x2d3182=this[_0x3aaacf(0xff)][_0x3aaacf(0x102)];this[_0x3aaacf(0x124)]<_0x2d3182-0x1&&this[_0x3aaacf(0x17c)](this[_0x3aaacf(0x124)]+0x1);}[_0x560db3(0x136)](){const _0x407e26=_0x560db3;this[_0x407e26(0x124)]>0x0&&this[_0x407e26(0x17c)](this[_0x407e26(0x124)]-0x1);}async[_0x560db3(0x17c)](_0x2248ae){const _0x430b8c=_0x560db3;if(!this[_0x430b8c(0x17e)])return;this[_0x430b8c(0x124)]=_0x2248ae;const {mainView:_0x1bc0d8}=this[_0x430b8c(0x17e)],_0x235c89=this[_0x430b8c(0xff)][this[_0x430b8c(0xff)][_0x430b8c(0x102)]-0x1-this[_0x430b8c(0x124)]];if(!_0x235c89)return;if(_0x235c89[_0x430b8c(0xea)])return this[_0x430b8c(0x111)](_0x235c89,_0x1bc0d8),void this[_0x430b8c(0x1a7)]();if(!_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)])return;_0x1bc0d8[_0x430b8c(0xe6)](),this[_0x430b8c(0x17e)]&&this[_0x430b8c(0x1b4)](_0x1bc0d8,this[_0x430b8c(0x17e)][_0x430b8c(0xf9)]);const _0x3a415a=_0x235c89[_0x430b8c(0x16a)][_0x235c89[_0x430b8c(0x16a)][_0x430b8c(0x102)]-0x1];if(_0x3a415a){const _0x30da4a=this[_0x430b8c(0x187)];this[_0x430b8c(0x18a)](_0x1bc0d8);try{const _0x6a392a=_0x44374e({'editor':_0x30da4a,'changeGroups':_0x3a415a[_0x430b8c(0x128)],'documentContextContent':_0x3a415a[_0x430b8c(0x116)],'showDiff':this[_0x430b8c(0x17f)],'trimUnchanged':!0x1});this[_0x430b8c(0x18a)](_0x1bc0d8),await new Promise(_0x204129=>setTimeout(_0x204129,0x32)),await _0x1bc0d8[_0x430b8c(0x14a)]({'parts':_0x6a392a,'renderingStrategy':_0x430b8c(0x13a),'abortSignal':new AbortController()[_0x430b8c(0x12e)]});}catch(_0x5b69ad){this[_0x430b8c(0x1c8)](_0x5b69ad)||console[_0x430b8c(0x144)](_0x430b8c(0x1c0),_0x5b69ad);}}this[_0x430b8c(0x1a7)]();}[_0x560db3(0x1a7)](){const _0x4201f3=_0x560db3;if(!this[_0x4201f3(0x19d)]||!this[_0x4201f3(0x10c)]||!this[_0x4201f3(0xf7)])return;const _0x417048=this[_0x4201f3(0xff)][_0x4201f3(0x102)],_0x45685d=_0x417048>0x1,_0x5ed0f2=this[_0x4201f3(0x17e)]?.[_0x4201f3(0x172)];if(_0x45685d){this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)]||(this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x0,this[_0x4201f3(0x108)][_0x4201f3(0x1bc)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x19f)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x0);const _0x5c1370=_0x417048-this[_0x4201f3(0x124)];this[_0x4201f3(0x10c)][_0x4201f3(0xfc)]&&(this[_0x4201f3(0x10c)][_0x4201f3(0xfc)][_0x4201f3(0xe8)]=_0x5c1370+'/'+_0x417048),this[_0x4201f3(0x19d)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]<_0x417048-0x1,this[_0x4201f3(0xf7)][_0x4201f3(0x182)]=this[_0x4201f3(0x124)]>0x0;}else(this[_0x4201f3(0x1a3)]||this[_0x4201f3(0x156)]||this[_0x4201f3(0x19c)])&&(this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x19d)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x19d)]),this[_0x4201f3(0x1a3)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0x10c)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0x10c)]),this[_0x4201f3(0x156)]=!0x1,this[_0x4201f3(0x108)][_0x4201f3(0x194)](this[_0x4201f3(0xf7)]),_0x5ed0f2?.[_0x4201f3(0x150)](this[_0x4201f3(0xf7)]),this[_0x4201f3(0x19c)]=!0x1);}[_0x560db3(0x149)](_0x22ffd3,_0x2f3460){const _0x543293=_0x560db3;_0x22ffd3[_0x543293(0x159)](),_0x2f3460[_0x543293(0x13b)][_0x543293(0x159)](),this[_0x543293(0x184)]=!0x0;}async[_0x560db3(0x111)](_0x4d120d,_0x52e830){const _0x3f0ee8=_0x560db3,_0x1dae51=_0x45d4d1(this[_0x3f0ee8(0x187)][_0x3f0ee8(0x1cb)],_0x3f0ee8(0x10b));_0x52e830[_0x3f0ee8(0x19a)](_0x1dae51),_0x4d120d[_0x3f0ee8(0xea)]=!0x0,await this[_0x3f0ee8(0x120)][_0x3f0ee8(0x1ab)],_0x52e830[_0x3f0ee8(0x169)](),this[_0x3f0ee8(0x17e)]?.[_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)]&&(this[_0x3f0ee8(0x17e)][_0x3f0ee8(0xf9)][_0x3f0ee8(0x13b)][_0x3f0ee8(0xf1)][_0x3f0ee8(0x192)]=!0x0);}[_0x560db3(0x1b4)](_0x457fcb,_0x392fee){const _0x358620=_0x560db3;_0x457fcb[_0x358620(0x1a9)](),_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)]&&(_0x392fee[_0x358620(0x13b)][_0x358620(0xf1)][_0x358620(0x192)]=!0x1);}async[_0x560db3(0x133)](_0x27828a,_0x6213c2){const _0x12c804=_0x560db3;await this[_0x12c804(0x120)][_0x12c804(0x1ab)],this[_0x12c804(0x184)]=!0x1,_0x27828a[_0x12c804(0xfd)](),_0x6213c2[_0x12c804(0x13b)][_0x12c804(0xfd)]();}[_0x560db3(0x127)](){const _0x569595=_0x560db3;this[_0x569595(0x108)][_0x569595(0x1b5)](_0x59014b=>{const _0x1216c7=_0x569595;_0x1216c7(0x182)in _0x59014b&&(_0x59014b[_0x1216c7(0x182)]=!0x1);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39ccd2=_0x248a;function _0xee5a(){const _0x21f23c=['connector','84380QKpZXj','2111160XHbXpH','21foQONA','model','Current\x20document','83032pzRkAy','editor','1251CRHfeX','TEXT','hasError','4832135NRglst','1348460FqUPlZ','current-document','actionName','args','5772438FvvfNU','html','getDocumentContext','executeCustomAction','content','sendRequest','push','replies','executeAction','126772TDNOyl','replyCreated','userMessage','version','delegate','createReply','fire'];_0xee5a=function(){return _0x21f23c;};return _0xee5a();}(function(_0x4acd85,_0x1344b1){const _0x5e77b4=_0x248a,_0x3f54bf=_0x4acd85();while(!![]){try{const _0x26338d=-parseInt(_0x5e77b4(0xd2))/0x1+parseInt(_0x5e77b4(0xba))/0x2*(parseInt(_0x5e77b4(0xbc))/0x3)+parseInt(_0x5e77b4(0xbb))/0x4+-parseInt(_0x5e77b4(0xc5))/0x5+parseInt(_0x5e77b4(0xc9))/0x6+parseInt(_0x5e77b4(0xc4))/0x7+parseInt(_0x5e77b4(0xbf))/0x8*(-parseInt(_0x5e77b4(0xc1))/0x9);if(_0x26338d===_0x1344b1)break;else _0x3f54bf['push'](_0x3f54bf['shift']());}catch(_0x2e05a5){_0x3f54bf['push'](_0x3f54bf['shift']());}}}(_0xee5a,0x9b5c1));import{AIInteraction as _0x326939,AI_MODEL_EVENT_NAMES as _0x40dc8c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4ac8df}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x5da522}from'./aiactionsreply.js';function _0x248a(_0x15618f,_0x209dab){const _0xee5aba=_0xee5a();return _0x248a=function(_0x248a29,_0x40ac6a){_0x248a29=_0x248a29-0xb7;let _0x188a43=_0xee5aba[_0x248a29];return _0x188a43;},_0x248a(_0x15618f,_0x209dab);}export class AIActionsInteraction extends _0x326939{[_0x39ccd2(0xcd)];[_0x39ccd2(0xd5)];[_0x39ccd2(0xc7)];[_0x39ccd2(0xc8)];[_0x39ccd2(0xd4)];[_0x39ccd2(0xbd)];[_0x39ccd2(0xc3)]=!0x1;constructor(_0x37e629){const _0x172043=_0x39ccd2;super(_0x37e629),this[_0x172043(0xcd)]=_0x37e629[_0x172043(0xcd)],this[_0x172043(0xd5)]=_0x37e629[_0x172043(0xd5)],this[_0x172043(0xc7)]=_0x37e629[_0x172043(0xc7)],this[_0x172043(0xc8)]=_0x37e629[_0x172043(0xc8)],this[_0x172043(0xd4)]=_0x37e629[_0x172043(0xd4)],this[_0x172043(0xbd)]=_0x37e629[_0x172043(0xbd)];}async[_0x39ccd2(0xce)](){const _0x4d4fe5=_0x39ccd2;return this[_0x4d4fe5(0xc7)]?this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xd1)]({'content':this[_0x4d4fe5(0xcd)],'actionName':this[_0x4d4fe5(0xc7)],'args':this[_0x4d4fe5(0xc8)]}):this[_0x4d4fe5(0xb9)][_0x4d4fe5(0xcc)]({'content':this[_0x4d4fe5(0xcd)],'message':this[_0x4d4fe5(0xd4)],'model':this[_0x4d4fe5(0xbd)],'outputFormat':_0x4d4fe5(0xca)});}[_0x39ccd2(0xcb)](){const _0x20b789=_0x39ccd2;return{'type':_0x4ac8df[_0x20b789(0xc2)],'content':this[_0x20b789(0xcd)],'version':this[_0x20b789(0xd5)],'label':_0x20b789(0xbe),'uiId':_0x20b789(0xc6)};}[_0x39ccd2(0xb7)](_0x5c0808){const _0x2c2b23=_0x39ccd2,_0x1a0198=new _0x5da522({'editor':this[_0x2c2b23(0xc0)],'documentContextContent':this[_0x2c2b23(0xcd)],..._0x5c0808});return this[_0x2c2b23(0xd0)][_0x2c2b23(0xcf)](_0x1a0198),_0x1a0198[_0x2c2b23(0xd6)](..._0x40dc8c)['to'](this),this[_0x2c2b23(0xb8)](_0x2c2b23(0xd3),_0x1a0198),_0x1a0198;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12df8c=_0x5574;(function(_0x17925f,_0x4a5a45){const _0x54a63f=_0x5574,_0x38fd35=_0x17925f();while(!![]){try{const _0x2a5965=parseInt(_0x54a63f(0x9f))/0x1*(parseInt(_0x54a63f(0xa1))/0x2)+parseInt(_0x54a63f(0xb0))/0x3+parseInt(_0x54a63f(0xa5))/0x4*(parseInt(_0x54a63f(0xb3))/0x5)+-parseInt(_0x54a63f(0x9c))/0x6+parseInt(_0x54a63f(0x98))/0x7*(parseInt(_0x54a63f(0xa2))/0x8)+parseInt(_0x54a63f(0xa3))/0x9+parseInt(_0x54a63f(0x9b))/0xa*(-parseInt(_0x54a63f(0x97))/0xb);if(_0x2a5965===_0x4a5a45)break;else _0x38fd35['push'](_0x38fd35['shift']());}catch(_0x50ee5e){_0x38fd35['push'](_0x38fd35['shift']());}}}(_0x28a2,0xd76de));import{AIReply as _0x10af95}from'../../aicore/model/aireply.js';function _0x5574(_0x5ab435,_0x4a5b15){const _0x28a25c=_0x28a2();return _0x5574=function(_0x55745f,_0x356c72){_0x55745f=_0x55745f-0x97;let _0x45487a=_0x28a25c[_0x55745f];return _0x45487a;},_0x5574(_0x5ab435,_0x4a5b15);}import{getAttribute as _0x36b44e}from'../../aicore/utils/htmlparser.js';import{uid as _0x4de7ab}from'ckeditor5/src/utils.js';function _0x28a2(){const _0x418fac=['pop','145050wWswPM','children','updateChangeGroups','77295uhkAqI','_getDifferentChangeGroups','parsedContent','documentContextContent','36361996MAToxZ','5784163AowZHx','node','added','10lROzbk','4731492uEfbQH','data-id','map','2073QFaVgu','parsedMergedContent','1594PgPjQo','8ITeSkU','14395779IUziWL','childNodes','220pMPQDj','new','length','cloneNode','isDone','changeGroups','value','pending','removed','modified'];_0x28a2=function(){return _0x418fac;};return _0x28a2();}import{diffArrays as _0xb2308b}from'diff';export class AIActionsReply extends _0x10af95{[_0x12df8c(0xb2)](){const _0x4ccf98=_0x12df8c;if(this[_0x4ccf98(0xa0)]=this[_0x4ccf98(0xb5)][_0x4ccf98(0xa8)](!0x0),0x0==this[_0x4ccf98(0xa0)][_0x4ccf98(0xa4)][_0x4ccf98(0xa7)])return void(this[_0x4ccf98(0xaa)]=[]);const _0x2ec9a7=this[_0x4ccf98(0xb6)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x3cfb0f=>({'node':_0x3cfb0f,'id':_0x36b44e(_0x3cfb0f,_0x4ccf98(0x9d))})),_0x6e729=this[_0x4ccf98(0xa0)][_0x4ccf98(0xb1)][_0x4ccf98(0x9e)](_0x5a09c=>({'node':_0x5a09c,'id':_0x36b44e(_0x5a09c,_0x4ccf98(0x9d))||_0x4de7ab()})),_0x3767ab=_0xb2308b(_0x2ec9a7,_0x6e729,{'comparator':(_0x4efd33,_0x54c66f)=>_0x4efd33['id']==_0x54c66f['id'],'oneChangePerToken':!0x0});if(!this[_0x4ccf98(0xa9)]){for(;_0x3767ab[_0x4ccf98(0xa7)]&&_0x3767ab[_0x3767ab[_0x4ccf98(0xa7)]-0x1][_0x4ccf98(0xad)];)_0x3767ab[_0x4ccf98(0xaf)]();}const _0x54dc2e=_0x3767ab[_0x4ccf98(0x9e)](_0x25d7e6=>{const _0x51bcae=_0x4ccf98,_0x2db012=_0x25d7e6[_0x51bcae(0x9a)]?_0x51bcae(0xa6):_0x25d7e6[_0x51bcae(0xad)]?_0x51bcae(0xad):_0x51bcae(0xae);return{'node':_0x25d7e6[_0x51bcae(0xab)][0x0][_0x51bcae(0x99)],'type':_0x2db012,'id':_0x25d7e6[_0x51bcae(0xab)][0x0]['id']};});this[_0x4ccf98(0xaa)]=[{'changes':_0x54dc2e,'state':_0x4ccf98(0xac),'index':0x0}];}[_0x12df8c(0xb4)](_0x475068,_0x993c1){return _0x993c1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x42d897=_0x277d;(function(_0x2ce39a,_0x16c94b){var _0x1358f4=_0x277d,_0x58d4e0=_0x2ce39a();while(!![]){try{var _0x506bfd=-parseInt(_0x1358f4(0x161))/0x1+-parseInt(_0x1358f4(0x15f))/0x2+parseInt(_0x1358f4(0x15d))/0x3+-parseInt(_0x1358f4(0x162))/0x4*(parseInt(_0x1358f4(0x159))/0x5)+parseInt(_0x1358f4(0x160))/0x6*(parseInt(_0x1358f4(0x165))/0x7)+parseInt(_0x1358f4(0x154))/0x8+parseInt(_0x1358f4(0x15a))/0x9*(-parseInt(_0x1358f4(0x15e))/0xa);if(_0x506bfd===_0x16c94b)break;else _0x58d4e0['push'](_0x58d4e0['shift']());}catch(_0x542fef){_0x58d4e0['push'](_0x58d4e0['shift']());}}}(_0x1189,0xf2a00));function _0x1189(){var _0x2d970b=['490406GHrfwh','2190MDHYpR','654848xIjfoA','140jHNuLi','textAdapter','AIAdapter','12796Lwsmas','afterInit','14572936MByMvI','name','pluginName','isPremiumPlugin','isOfficialPlugin','123990XbrQKo','2481786SlUYro','aiadapter-text-adapter-not-set','AIRequestError','2473332VzLzGe','20DEBMGk'];_0x1189=function(){return _0x2d970b;};return _0x1189();}import{Plugin as _0x5378d0}from'ckeditor5/src/core.js';import{CKEditorError as _0x33c517}from'ckeditor5/src/utils.js';function _0x277d(_0x36ce40,_0x462e3f){var _0x11891f=_0x1189();return _0x277d=function(_0x277d58,_0x5b8fa7){_0x277d58=_0x277d58-0x154;var _0x61f5d7=_0x11891f[_0x277d58];return _0x61f5d7;},_0x277d(_0x36ce40,_0x462e3f);}export class AIAdapter extends _0x5378d0{static get[_0x42d897(0x156)](){var _0x1582ba=_0x42d897;return _0x1582ba(0x164);}static get[_0x42d897(0x158)](){return!0x0;}static get[_0x42d897(0x157)](){return!0x0;}[_0x42d897(0x166)](){var _0x548cae=_0x42d897;if(!this[_0x548cae(0x163)])throw new _0x33c517(_0x548cae(0x15b),null);}}export class AIRequestError extends Error{constructor(_0x4ef3e7){var _0xc519d0=_0x42d897;super(_0x4ef3e7),this[_0xc519d0(0x155)]=_0xc519d0(0x15c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c06f7=_0x2ef4;function _0x2ef4(_0x47099c,_0x1cce9e){const _0x21dbd5=_0x21db();return _0x2ef4=function(_0x2ef439,_0x2eda87){_0x2ef439=_0x2ef439-0x84;let _0x4a0e7c=_0x21dbd5[_0x2ef439];return _0x4a0e7c;},_0x2ef4(_0x47099c,_0x1cce9e);}(function(_0x5a6519,_0xcf4bca){const _0x2b0b93=_0x2ef4,_0xe9149a=_0x5a6519();while(!![]){try{const _0x351319=-parseInt(_0x2b0b93(0x85))/0x1+-parseInt(_0x2b0b93(0x84))/0x2+parseInt(_0x2b0b93(0xa5))/0x3*(-parseInt(_0x2b0b93(0x9a))/0x4)+-parseInt(_0x2b0b93(0x87))/0x5+-parseInt(_0x2b0b93(0xa4))/0x6+-parseInt(_0x2b0b93(0x8f))/0x7+-parseInt(_0x2b0b93(0x96))/0x8*(-parseInt(_0x2b0b93(0x9b))/0x9);if(_0x351319===_0xcf4bca)break;else _0xe9149a['push'](_0xe9149a['shift']());}catch(_0x248970){_0xe9149a['push'](_0xe9149a['shift']());}}}(_0x21db,0x52659));import{Plugin as _0x5b64a2}from'ckeditor5/src/core.js';import{CKEditorError as _0x466e38}from'ckeditor5/src/utils.js';function _0x21db(){const _0x33fb58=['AI_ERROR_GET_HEADERS','makeRequest','resolve','assign','catch','signal','3545654BvgFFQ','name','_prepareRequestParameters','plugins','aitextadapter-send-request-failed','object','requires','8PjzkVt','locale','error','get','528PRYexD','20985273lhfCSg','abort','_prepareRequestHeaders','application/json','abortController','init','AI_ERROR_GET_PARAMETERS','editor','textAdapter','3225318XsPZqp','1605iayhiV','reject','aborted','165764uKhmQa','556692UggJbf','AbortError','1199655ubfPTY','sendRequest'];_0x21db=function(){return _0x33fb58;};return _0x21db();}import{AIAdapter as _0x4c57fa,AIRequestError as _0x595db6}from'./aiadapter.js';import{getTranslation as _0x3348a5}from'../utils/common-translations.js';export class AITextAdapter extends _0x5b64a2{[_0x3c06f7(0x9f)];static get[_0x3c06f7(0x95)](){return[_0x4c57fa];}constructor(_0x421fc5){const _0x4c4ade=_0x3c06f7;super(_0x421fc5),this[_0x4c4ade(0x9f)]=new AbortController();}[_0x3c06f7(0xa0)](){const _0x409cfb=_0x3c06f7;this[_0x409cfb(0xa2)][_0x409cfb(0x92)][_0x409cfb(0x99)](_0x4c57fa)[_0x409cfb(0xa3)]=this;}[_0x3c06f7(0x9c)](){const _0x30f802=_0x3c06f7;this[_0x30f802(0x9f)][_0x30f802(0x8e)][_0x30f802(0xa7)]||(this[_0x30f802(0x9f)][_0x30f802(0x9c)](),this[_0x30f802(0x9f)]=new AbortController());}async[_0x3c06f7(0x8a)](_0x322a9b){const _0x19d1f0=_0x3c06f7;return this[_0x19d1f0(0x88)](_0x322a9b)[_0x19d1f0(0x8d)](_0x2d77da=>{const _0x488a32=_0x19d1f0;if(_0x2d77da instanceof _0x595db6)return Promise[_0x488a32(0xa6)](_0x2d77da);if(_0x488a32(0x86)==_0x2d77da[_0x488a32(0x90)])return Promise[_0x488a32(0x8b)]();throw console[_0x488a32(0x98)](_0x2d77da),new _0x466e38(_0x488a32(0x93),null);});}async[_0x3c06f7(0x9d)](_0x32fbb3,_0x1eb41e){const _0x31b533=_0x3c06f7,_0xd78a4a=this[_0x31b533(0xa2)][_0x31b533(0x97)],_0x56196e={'Content-Type':_0x31b533(0x9e)};if(_0x31b533(0x94)==typeof _0x32fbb3)Object[_0x31b533(0x8c)](_0x56196e,_0x32fbb3);else{if(_0x32fbb3)try{const _0x5427d9=await _0x32fbb3(_0x1eb41e);Object[_0x31b533(0x8c)](_0x56196e,_0x5427d9);}catch{return Promise[_0x31b533(0xa6)](new _0x595db6(_0x3348a5(_0xd78a4a,_0x31b533(0x89))));}}return _0x56196e;}async[_0x3c06f7(0x91)](_0x5161a8,_0x36f3a7){const _0x478832=_0x3c06f7,_0x5946d1=this[_0x478832(0xa2)][_0x478832(0x97)];if(_0x478832(0x94)==typeof _0x5161a8)return _0x5161a8;try{return await _0x5161a8(_0x36f3a7);}catch{return Promise[_0x478832(0xa6)](new _0x595db6(_0x3348a5(_0x5946d1,_0x478832(0xa1))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bc041=_0x5a2b;(function(_0x5b0ec1,_0x47e9a8){const _0x28b6ba=_0x5a2b,_0x2ff03e=_0x5b0ec1();while(!![]){try{const _0x48d873=-parseInt(_0x28b6ba(0xfb))/0x1*(-parseInt(_0x28b6ba(0x129))/0x2)+parseInt(_0x28b6ba(0x10d))/0x3*(-parseInt(_0x28b6ba(0x127))/0x4)+-parseInt(_0x28b6ba(0x114))/0x5*(-parseInt(_0x28b6ba(0xda))/0x6)+parseInt(_0x28b6ba(0xde))/0x7*(-parseInt(_0x28b6ba(0x10a))/0x8)+parseInt(_0x28b6ba(0x108))/0x9*(-parseInt(_0x28b6ba(0x107))/0xa)+parseInt(_0x28b6ba(0x11c))/0xb*(parseInt(_0x28b6ba(0xe8))/0xc)+parseInt(_0x28b6ba(0xfc))/0xd;if(_0x48d873===_0x47e9a8)break;else _0x2ff03e['push'](_0x2ff03e['shift']());}catch(_0x2a60cf){_0x2ff03e['push'](_0x2ff03e['shift']());}}}(_0x1f03,0xe34ca));import{AITextAdapter as _0x13fcff}from'./aitextadapter.js';import{AIRequestError as _0x55b63a}from'./aiadapter.js';function _0x1f03(){const _0xd7faa1=['meta.llama','generations','decode','stringify','anthropic.claude','ai.assistant.adapter.aws.bedrockClientConfig','_readAsyncIterableResponse','locale','cohere.command','body','editor','get','read','1197305sXqErX','27733511ZpGppB','ai.assistant.adapter.aws.requestParameters','test','anthropic.claude-v2','_apiUrl','generation','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getModelFamily','_processProxyRequest','getReader','completion','2042320vritXQ','72SPeXdx','resolve','56qDfLlA','parse','split','51933CXuZZG','filter','text','Human:\x0a','_requestParameters','_requestHeaders','application/json','7288475ayMIes','Instruction:\x0a','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AWSTextAdapter','\x0a[/INST]','config','preparePrompt','_getGeneratedText','1596826oGJBAY','ai21.j2','json','_readStaticResponse','AI_ERROR_UNSUPPORTED_MODEL','bytes','ai.assistant.adapter.aws.apiUrl','_prepareRequestHeaders','signal','map','join','408WhQqwJ','send','2GxFUTM','_bedrockClientConfig','ai.assistant.adapter.aws.requestHeaders','utf-8','6kfowIO','\x0a<</SYS>>\x0a[INST]\x0a','POST','_readStreamableResponse','602917Vhizdq','_prepareRequestParameters','<<SYS>>\x0a','length','_processAWSRequest','pluginName','abortController','define','chunk','\x0a\x0aAssistant:','12DFrxLg','data','sendRequest','bedrock-2023-05-31','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','completions'];_0x1f03=function(){return _0xd7faa1;};return _0x1f03();}import{BedrockRuntimeClient as _0x31d2f1,InvokeModelCommand as _0x24333e,InvokeModelWithResponseStreamCommand as _0x363e10}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x45b253}from'../utils/common-translations.js';function _0x5a2b(_0x540a48,_0x2a43df){const _0x1f03a9=_0x1f03();return _0x5a2b=function(_0x5a2b16,_0x2d7547){_0x5a2b16=_0x5a2b16-0xda;let _0x44a8b2=_0x1f03a9[_0x5a2b16];return _0x44a8b2;},_0x5a2b(_0x540a48,_0x2a43df);}export class AWSTextAdapter extends _0x13fcff{[_0x2bc041(0x100)];[_0x2bc041(0x112)];[_0x2bc041(0x12a)];[_0x2bc041(0x111)];static get[_0x2bc041(0xe3)](){const _0x3b3f15=_0x2bc041;return _0x3b3f15(0x117);}constructor(_0x44b1fc){const _0x3e0c2d=_0x2bc041;super(_0x44b1fc),_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd))||_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xe5)](_0x3e0c2d(0xfd),{'model':_0x3e0c2d(0xff),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x3e0c2d(0xeb),'stream':!0x0}),this[_0x3e0c2d(0x100)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x122)),this[_0x3e0c2d(0x12a)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xf3)),this[_0x3e0c2d(0x112)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0x12b)),this[_0x3e0c2d(0x111)]=_0x44b1fc[_0x3e0c2d(0x119)][_0x3e0c2d(0xf9)](_0x3e0c2d(0xfd));}async[_0x2bc041(0xea)]({query:_0xcf9830,context:_0x9b37b7,onData:_0x48dd55,actionId:_0x45fa9d}){const _0x139408=_0x2bc041,{model:_0x2f8523,stream:_0x51e122,..._0x5c92cc}=await this[_0x139408(0xdf)](this[_0x139408(0x111)],_0x45fa9d),_0x51a951={'prompt':await this[_0x139408(0x11a)](_0xcf9830,_0x9b37b7,_0x2f8523,_0x45fa9d),..._0x5c92cc};this[_0x139408(0x100)]?await this[_0x139408(0x104)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55,_0x45fa9d):await this[_0x139408(0xe2)](_0x51a951,_0x2f8523,_0x51e122,_0x48dd55);}async[_0x2bc041(0x11a)](_0x14b6dd,_0x187cb2,_0x2c1cad,_0x58f0b5){const _0x41781e=_0x2bc041;let _0x4afbc4,_0x18faf0;return _0x187cb2?(_0x4afbc4=_0x41781e(0xec),_0x18faf0=_0x41781e(0x115)+_0x14b6dd+_0x41781e(0x102)+_0x187cb2):(_0x4afbc4=_0x41781e(0x116),_0x18faf0=_0x14b6dd),_0x41781e(0xee)==this[_0x41781e(0x103)](_0x2c1cad)?_0x41781e(0xe0)+_0x4afbc4+_0x41781e(0xdb)+_0x18faf0+_0x41781e(0x118):_0x41781e(0x110)+_0x4afbc4+'\x0a'+_0x18faf0+_0x41781e(0xe7);}[_0x2bc041(0x103)](_0x1c502c){const _0x48f937=_0x2bc041;if(/^anthropic\.claude/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf2);if(/^ai21\.j2/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0x11d);if(/^cohere\.command/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xf6);if(/^meta\.llama/[_0x48f937(0xfe)](_0x1c502c))return _0x48f937(0xee);throw new _0x55b63a(_0x45b253(this[_0x48f937(0xf8)][_0x48f937(0xf5)],_0x48f937(0x120),_0x1c502c));}async[_0x2bc041(0x104)](_0x1703ac,_0x58187b,_0x31845b,_0x1e6938,_0x479df4){const _0x321ab7=_0x2bc041,_0x2d9dc6={'method':_0x321ab7(0xdc),'headers':await this[_0x321ab7(0x123)](this[_0x321ab7(0x112)],_0x479df4),'body':JSON[_0x321ab7(0xf1)]({..._0x1703ac,'model':_0x58187b,'stream':_0x31845b}),'signal':this[_0x321ab7(0xe4)][_0x321ab7(0x124)]},_0x321edb=await fetch(this[_0x321ab7(0x100)],_0x2d9dc6);_0x31845b?await this[_0x321ab7(0xdd)](_0x321edb,_0x58187b,_0x1e6938):await this[_0x321ab7(0x11f)](_0x321edb,_0x58187b,_0x1e6938);}async[_0x2bc041(0xe2)](_0x35e6b1,_0x2c3d59,_0x1874af,_0x316f55){const _0x381eb3=_0x2bc041,_0x2327b7=new _0x31d2f1(this[_0x381eb3(0x12a)]),_0x252978={'body':JSON[_0x381eb3(0xf1)](_0x35e6b1),'contentType':_0x381eb3(0x113),'accept':_0x381eb3(0x113),'modelId':_0x2c3d59};let _0x8a79d3;if(_0x1874af){const _0x480cd3=new _0x363e10(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x480cd3,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0xf4)](_0x8a79d3,_0x2c3d59,_0x316f55);}else{const _0x7dc49=new _0x24333e(_0x252978);_0x8a79d3=await _0x2327b7[_0x381eb3(0x128)](_0x7dc49,{'abortSignal':this[_0x381eb3(0xe4)][_0x381eb3(0x124)]}),await this[_0x381eb3(0x11f)](_0x8a79d3,_0x2c3d59,_0x316f55);}}async[_0x2bc041(0xf4)](_0x2e180a,_0x2c12f7,_0x16ac1d){const _0x48e927=_0x2bc041,_0x384137=_0x2e180a[_0x48e927(0xf7)],_0x3339d1=new TextDecoder(_0x48e927(0x12c));let _0x194bbe='';for await(const _0x5c6e0f of _0x384137)if(_0x5c6e0f[_0x48e927(0xe6)]){const _0x26aaa2=_0x3339d1[_0x48e927(0xf0)](_0x5c6e0f[_0x48e927(0xe6)][_0x48e927(0x121)]),_0x4854eb=JSON[_0x48e927(0x10b)](_0x26aaa2);_0x194bbe+=this[_0x48e927(0x11b)](_0x4854eb,_0x2c12f7),_0x16ac1d(_0x194bbe);}return Promise[_0x48e927(0x109)]();}async[_0x2bc041(0xdd)](_0x245d2e,_0x4b9dae,_0x267406){const _0x522e30=_0x2bc041,_0x228dff=_0x245d2e[_0x522e30(0xf7)],_0x34074c=new TextDecoder(_0x522e30(0x12c)),_0x355201=_0x228dff[_0x522e30(0x105)]();let _0x1c7bee='',_0x1918c8='',_0x5a4c83=!0x1;for(;!_0x5a4c83;){const {done:_0x11f309,value:_0x1e3151}=await _0x355201[_0x522e30(0xfa)]();if(_0x5a4c83=_0x11f309,_0x5a4c83)break;const _0x3bfe96=(_0x1c7bee+_0x34074c[_0x522e30(0xf0)](_0x1e3151))[_0x522e30(0x10c)]('\x0a')[_0x522e30(0x125)](_0x532068=>{const _0x35abe2=_0x522e30;try{return _0x1c7bee='',JSON[_0x35abe2(0x10b)](_0x532068);}catch{return _0x1c7bee=_0x532068,null;}})[_0x522e30(0x10e)](_0x138ea9=>null!==_0x138ea9);_0x3bfe96[_0x522e30(0xe1)]&&(_0x1918c8+=_0x3bfe96[_0x522e30(0x125)](_0x1a04bd=>this[_0x522e30(0x11b)](_0x1a04bd,_0x4b9dae))[_0x522e30(0x126)](''),_0x267406(_0x1918c8));}return Promise[_0x522e30(0x109)]();}async[_0x2bc041(0x11f)](_0x48d2f2,_0x4d2d1e,_0x44f26c){const _0x1f8dd6=_0x2bc041;let _0x4d31d5;return _0x4d31d5=_0x48d2f2 instanceof Response?await _0x48d2f2[_0x1f8dd6(0x11e)]():JSON[_0x1f8dd6(0x10b)](new TextDecoder(_0x1f8dd6(0x12c))[_0x1f8dd6(0xf0)](_0x48d2f2[_0x1f8dd6(0xf7)])),(_0x44f26c(this[_0x1f8dd6(0x11b)](_0x4d31d5,_0x4d2d1e)),Promise[_0x1f8dd6(0x109)]());}[_0x2bc041(0x11b)](_0x9b1131,_0x17e3b4){const _0x5c9c15=_0x2bc041;switch(this[_0x5c9c15(0x103)](_0x17e3b4)){case _0x5c9c15(0xf2):return _0x9b1131[_0x5c9c15(0x106)];case _0x5c9c15(0x11d):return _0x9b1131[_0x5c9c15(0xed)][0x0][_0x5c9c15(0xe9)][_0x5c9c15(0x10f)];case _0x5c9c15(0xf6):return _0x9b1131[_0x5c9c15(0xef)][0x0][_0x5c9c15(0x10f)];case _0x5c9c15(0xee):return _0x9b1131[_0x5c9c15(0x101)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ee92e=_0x2835;(function(_0x326fee,_0x4f15d8){const _0xaf97a6=_0x2835,_0x34bff5=_0x326fee();while(!![]){try{const _0x4805df=-parseInt(_0xaf97a6(0xbc))/0x1*(parseInt(_0xaf97a6(0xe1))/0x2)+-parseInt(_0xaf97a6(0xe6))/0x3*(-parseInt(_0xaf97a6(0xc6))/0x4)+parseInt(_0xaf97a6(0xc8))/0x5*(parseInt(_0xaf97a6(0xb0))/0x6)+parseInt(_0xaf97a6(0xb8))/0x7*(parseInt(_0xaf97a6(0xf2))/0x8)+-parseInt(_0xaf97a6(0xbe))/0x9*(-parseInt(_0xaf97a6(0xc3))/0xa)+-parseInt(_0xaf97a6(0xbb))/0xb*(parseInt(_0xaf97a6(0xd5))/0xc)+parseInt(_0xaf97a6(0xe2))/0xd;if(_0x4805df===_0x4f15d8)break;else _0x34bff5['push'](_0x34bff5['shift']());}catch(_0x2cfb5b){_0x34bff5['push'](_0x34bff5['shift']());}}}(_0x2b2d,0xe9d6e));import{AITextAdapter as _0x1aeee1}from'./aitextadapter.js';function _0x2835(_0x2dff34,_0x4d71e7){const _0x2b2d7f=_0x2b2d();return _0x2835=function(_0x283541,_0x4eca0b){_0x283541=_0x283541-0xb0;let _0x17613c=_0x2b2d7f[_0x283541];return _0x17613c;},_0x2835(_0x2dff34,_0x4d71e7);}import{AIRequestError as _0x43adc0}from'./aiadapter.js';function _0x2b2d(){const _0x37cb73=['join','choices','gpt-4o','6vrAcUs','_readStaticResponse','https://api.openai.com/v1/chat/completions','abortController','split','parse','pluginName','_prepareRequestHeaders','1978151GFhGpI','data:\x20','stringify','1235179uyVqGx','1864orEevA','define','171duRVHm','body','Moderation','resolve','AI_ERROR_CONTEXT_LENGTH','760570WOYTws','content','reject','3184kzdvFD','_readStreamableResponse','6224505SFBCuN','read','signal','OpenAITextAdapter','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','get','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','getReader','decode','[DONE]','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','_apiUrl','editor','204JcsHpP','context_length_exceeded','_cleanUpData','json','_prepareRequestParameters','stream','includes','_requestParameters','user','config','locale','ai.assistant.adapter.openAI.apiUrl','1052SShuCW','959790EbGhYB','POST','delta','system','3018vbkJcM','length','ai.assistant.adapter.openAI.requestHeaders','AI_ERROR_MODERATION','_requestHeaders','Instruction:\x0a','message','filter','ai.assistant.adapter.openAI.requestParameters','text','prepareMessages','replace','8gfwjma','map','_isBufferIncomplete','sendRequest'];_0x2b2d=function(){return _0x37cb73;};return _0x2b2d();}import{getTranslation as _0x28dba0}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x1aeee1{[_0x4ee92e(0xd3)];[_0x4ee92e(0xea)];[_0x4ee92e(0xdc)];static get[_0x4ee92e(0xb6)](){const _0x20a709=_0x4ee92e;return _0x20a709(0xcb);}constructor(_0x223afd){const _0x27d768=_0x4ee92e;super(_0x223afd),_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xe0),_0x27d768(0xb2)),_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee))||_0x223afd[_0x27d768(0xde)][_0x27d768(0xbd)](_0x27d768(0xee),{'model':_0x27d768(0xf8),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x27d768(0xd3)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe0)),this[_0x27d768(0xea)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xe8))||{},this[_0x27d768(0xdc)]=_0x223afd[_0x27d768(0xde)][_0x27d768(0xcd)](_0x27d768(0xee));}async[_0x4ee92e(0xf5)]({query:_0x42a337,context:_0x25ea8b,onData:_0x19ab93,actionId:_0x39278c}){const _0x2e819e=_0x4ee92e,_0x6d2a5c=this[_0x2e819e(0xd4)][_0x2e819e(0xdf)],_0x365397=await this[_0x2e819e(0xf0)](_0x42a337,_0x25ea8b,_0x39278c),_0x14b724=await this[_0x2e819e(0xb7)](this[_0x2e819e(0xea)],_0x39278c),_0x4c7def=await this[_0x2e819e(0xd9)](this[_0x2e819e(0xdc)],_0x39278c),_0x5f4b03={'messages':_0x365397,..._0x4c7def},_0xc846={'method':_0x2e819e(0xe3),'headers':_0x14b724,'body':JSON[_0x2e819e(0xba)](_0x5f4b03),'signal':this[_0x2e819e(0xb3)][_0x2e819e(0xca)]},_0x5eeaab=await fetch(this[_0x2e819e(0xd3)],_0xc846);if(_0x5eeaab['ok'])return _0x4c7def[_0x2e819e(0xda)]?await this[_0x2e819e(0xc7)](_0x5eeaab,_0x19ab93):await this[_0x2e819e(0xb1)](_0x5eeaab,_0x19ab93),Promise[_0x2e819e(0xc1)]();{const _0x4cbd91=await _0x5eeaab[_0x2e819e(0xef)]();return _0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xd6))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xc2)))):_0x4cbd91[_0x2e819e(0xdb)](_0x2e819e(0xc0))?Promise[_0x2e819e(0xc5)](new _0x43adc0(_0x28dba0(_0x6d2a5c,_0x2e819e(0xe9)))):Promise[_0x2e819e(0xc5)](new Error(_0x4cbd91));}}async[_0x4ee92e(0xf0)](_0x11c0d5,_0x21070b,_0xc5ae7b){const _0x4c895c=_0x4ee92e;let _0x3b77a4,_0x24cc42;return _0x21070b?(_0x3b77a4=_0x4c895c(0xd2),_0x24cc42=_0x4c895c(0xeb)+_0x11c0d5+_0x4c895c(0xce)+_0x21070b):(_0x3b77a4=_0x4c895c(0xcc),_0x24cc42=_0x11c0d5),[{'role':_0x4c895c(0xe5),'content':_0x3b77a4},{'role':_0x4c895c(0xdd),'content':_0x24cc42}];}async[_0x4ee92e(0xc7)](_0x3a8511,_0x3d48d5){const _0x53dc92=_0x4ee92e,_0x4152e2=_0x3a8511[_0x53dc92(0xbf)][_0x53dc92(0xcf)](),_0x386838=new TextDecoder();let _0x624328='',_0xb3bb77='',_0x578abb='',_0x1a86e5=!0x1;for(;!_0x1a86e5;){const {done:_0x686f19,value:_0x24a6d6}=await _0x4152e2[_0x53dc92(0xc9)](),_0x261d2a=_0x624328+_0x386838[_0x53dc92(0xd0)](_0x24a6d6);let _0x1d589a='';_0x1a86e5=_0x686f19;try{_0x1d589a=this[_0x53dc92(0xd7)](_0x261d2a),_0x624328='';}catch{_0x624328=_0x261d2a;continue;}_0xb3bb77+=_0x1d589a,!_0x1a86e5&&this[_0x53dc92(0xf4)](_0xb3bb77)||_0xb3bb77&&(_0x578abb+=_0xb3bb77,_0xb3bb77='',_0x3d48d5(_0x578abb));}return Promise[_0x53dc92(0xc1)]();}async[_0x4ee92e(0xb1)](_0x3042d9,_0x26c179){const _0x2f82f0=_0x4ee92e;return _0x26c179((await _0x3042d9[_0x2f82f0(0xd8)]())[_0x2f82f0(0xf7)][0x0][_0x2f82f0(0xec)][_0x2f82f0(0xc4)]),Promise[_0x2f82f0(0xc1)]();}[_0x4ee92e(0xf4)](_0x393454){const _0x5ccbd6=_0x4ee92e,_0x4b22e6=_0x393454[_0x5ccbd6(0xb4)]('<')[_0x5ccbd6(0xe7)]!==_0x393454[_0x5ccbd6(0xb4)]('>')[_0x5ccbd6(0xe7)],_0x1b3f52=_0x393454[_0x5ccbd6(0xe7)]<0x1e;return _0x4b22e6&&_0x1b3f52;}[_0x4ee92e(0xd7)](_0x1d7408){const _0x4fe7f2=_0x4ee92e;return _0x1d7408[_0x4fe7f2(0xb4)](/\n(?![^{]*\})/g)[_0x4fe7f2(0xf3)](_0x25faf5=>_0x25faf5[_0x4fe7f2(0xf1)](_0x4fe7f2(0xb9),''))[_0x4fe7f2(0xed)](_0x921ccf=>_0x921ccf&&_0x921ccf[_0x4fe7f2(0xe7)]>0x0&&_0x4fe7f2(0xd1)!==_0x921ccf)[_0x4fe7f2(0xf3)](_0x351606=>{const _0x2878fc=_0x4fe7f2,{choices:_0x49d2d0}=JSON[_0x2878fc(0xb5)](_0x351606);if(_0x49d2d0[0x0]?.[_0x2878fc(0xe4)]?.[_0x2878fc(0xc4)])return _0x49d2d0[0x0][_0x2878fc(0xe4)][_0x2878fc(0xc4)];})[_0x4fe7f2(0xed)](_0x4f1862=>_0x4f1862)[_0x4fe7f2(0xf6)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x7d0554=_0x4438;function _0x13cd(){const _0x256a8d=['Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Continue','Translate\x20the\x20content\x20to\x20French\x20language.','set','Edit\x20or\x20review','Change\x20tone','forEach','professional','translateChinese','concat','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','translatePortuguese','372956ZTibLa','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','ai.assistant.removeCommands','summarize','Friendly','Make\x20longer','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','translateHindi','Translate','translateGerman','simplifyLanguage','Arabic','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateFrench','Translate\x20the\x20content\x20to\x20English\x20language.','get','legal','generate','changeStyle','config','continue','685419SDgtza','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','French','Translate\x20the\x20content\x20to\x20German\x20language.','414qYNuAn','Hindi','groupId','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','business','ai.assistant.extraCommandGroups','2495850EKhIbU','Portuguese','define','ai.assistant.commands','Summarize','makeLonger','editOrReview','translateSpanish','Direct','improveWriting','push','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','direct','friendly','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20language','246553OiZctA','requires','pluginName','8kuvgkG','locale','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Confident','Legal','Casual','translateEnglish','isOfficialPlugin','Journalism','isPremiumPlugin','Generate\x20from\x20selection','changeTone','Simplified\x20Chinese','Change\x20style','German','filter','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Make\x20shorter','translateArabic','find','Spanish','ai.assistant.preserveComments','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','casual','makeShorter','Poetic','commands','confident','translate','26515XArCFi','394104azGEdn','Translate\x20the\x20content\x20to\x20Hindi\x20language.','AIAssistant','poetic','9UoWkMo','English','journalism','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Business','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','includes','2411640QDJRvN'];_0x13cd=function(){return _0x256a8d;};return _0x13cd();}(function(_0x5d15c7,_0x5212c0){const _0x4549ef=_0x4438,_0x3f9b43=_0x5d15c7();while(!![]){try{const _0x4d71c8=parseInt(_0x4549ef(0x237))/0x1+parseInt(_0x4549ef(0x25a))/0x2+-parseInt(_0x4549ef(0x25e))/0x3*(parseInt(_0x4549ef(0x204))/0x4)+parseInt(_0x4549ef(0x259))/0x5*(-parseInt(_0x4549ef(0x21e))/0x6)+-parseInt(_0x4549ef(0x219))/0x7*(parseInt(_0x4549ef(0x23a))/0x8)+parseInt(_0x4549ef(0x1f6))/0x9+parseInt(_0x4549ef(0x226))/0xa;if(_0x4d71c8===_0x5212c0)break;else _0x3f9b43['push'](_0x3f9b43['shift']());}catch(_0x28cfda){_0x3f9b43['push'](_0x3f9b43['shift']());}}}(_0x13cd,0x35209));function _0x4438(_0x428c67,_0x28d98d){const _0x13cddf=_0x13cd();return _0x4438=function(_0x4438eb,_0x446f96){_0x4438eb=_0x4438eb-0x1f1;let _0x310ccd=_0x13cddf[_0x4438eb];return _0x310ccd;},_0x4438(_0x428c67,_0x28d98d);}import{Plugin as _0x4e9591}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2ff8e5}from'./aiassistantui.js';import{AIAssistantEditing as _0x4c54d2}from'./aiassistantediting.js';import{getTranslation as _0xdd302}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0x195ce3}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x4e9591{static get[_0x7d0554(0x238)](){return[_0x2ff8e5,_0x4c54d2];}static get[_0x7d0554(0x239)](){const _0x2d1a70=_0x7d0554;return _0x2d1a70(0x25c);}static get[_0x7d0554(0x241)](){return!0x0;}static get[_0x7d0554(0x243)](){return!0x0;}constructor(_0x26cdf9){const _0x581a74=_0x7d0554;super(_0x26cdf9);const _0x4e2027=_0x26cdf9[_0x581a74(0x217)],_0x455638=_0x26cdf9[_0x581a74(0x23b)];_0x4e2027[_0x581a74(0x228)](_0x581a74(0x24f),!0x0),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x229),getDefaultAICommands(_0x455638)),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x225),[]),_0x4e2027[_0x581a74(0x228)](_0x581a74(0x206),[]);let _0x4487af=_0x195ce3(_0x4e2027[_0x581a74(0x213)](_0x581a74(0x229)),_0x455638);const _0x16b2a4=_0x4e2027[_0x581a74(0x213)](_0x581a74(0x225)),_0x55279a=_0x4e2027[_0x581a74(0x213)](_0x581a74(0x206));_0x16b2a4[_0x581a74(0x1fd)](_0xfa7d5e=>{const _0xca7448=_0x581a74,_0x43f007=_0x4487af[_0xca7448(0x24d)](_0x2c176f=>_0x2c176f[_0xca7448(0x220)]===_0xfa7d5e[_0xca7448(0x220)]);_0x43f007?_0x43f007[_0xca7448(0x256)]=_0x43f007[_0xca7448(0x256)][_0xca7448(0x200)](_0xfa7d5e[_0xca7448(0x256)]):_0x4487af[_0xca7448(0x230)](_0xfa7d5e);}),_0x4487af=_0x4487af[_0x581a74(0x249)](_0x436509=>!_0x55279a[_0x581a74(0x1f5)](_0x436509[_0x581a74(0x220)])),_0x4487af[_0x581a74(0x1fd)](_0x14b201=>{const _0x25b83f=_0x581a74;_0x14b201[_0x25b83f(0x256)]=_0x14b201[_0x25b83f(0x256)][_0x25b83f(0x249)](_0x27d29b=>!_0x55279a[_0x25b83f(0x1f5)](_0x27d29b['id']));}),_0x4e2027[_0x581a74(0x1fa)](_0x581a74(0x229),_0x4487af);}}export function getDefaultAICommands(_0x45b729){const _0x5f2c40=_0x7d0554;return[{'groupId':_0x5f2c40(0x22c),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x1fb)),'commands':[{'id':_0x5f2c40(0x22f),'label':_0xdd302(_0x45b729,_0x5f2c40(0x234)),'prompt':_0x5f2c40(0x252)},{'id':_0x5f2c40(0x254),'label':_0xdd302(_0x45b729,_0x5f2c40(0x24b)),'prompt':_0x5f2c40(0x1f2)},{'id':_0x5f2c40(0x22b),'label':_0xdd302(_0x45b729,_0x5f2c40(0x209)),'prompt':_0x5f2c40(0x1f7)},{'id':_0x5f2c40(0x20e),'label':_0xdd302(_0x45b729,_0x5f2c40(0x236)),'prompt':_0x5f2c40(0x21b)}]},{'groupId':_0x5f2c40(0x215),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x244)),'commands':[{'id':_0x5f2c40(0x207),'label':_0xdd302(_0x45b729,_0x5f2c40(0x22a)),'prompt':_0x5f2c40(0x202)},{'id':_0x5f2c40(0x218),'label':_0xdd302(_0x45b729,_0x5f2c40(0x1f8)),'prompt':_0x5f2c40(0x21a)}]},{'groupId':_0x5f2c40(0x245),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x1fc)),'commands':[{'id':_0x5f2c40(0x1fe),'label':_0xdd302(_0x45b729,_0x5f2c40(0x251)),'prompt':_0x5f2c40(0x205)},{'id':_0x5f2c40(0x253),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23f)),'prompt':_0x5f2c40(0x24a)},{'id':_0x5f2c40(0x232),'label':_0xdd302(_0x45b729,_0x5f2c40(0x22e)),'prompt':_0x5f2c40(0x250)},{'id':_0x5f2c40(0x257),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23d)),'prompt':_0x5f2c40(0x1f4)},{'id':_0x5f2c40(0x233),'label':_0xdd302(_0x45b729,_0x5f2c40(0x208)),'prompt':_0x5f2c40(0x23c)}]},{'groupId':_0x5f2c40(0x216),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x247)),'commands':[{'id':_0x5f2c40(0x224),'label':_0xdd302(_0x45b729,_0x5f2c40(0x1f3)),'prompt':_0x5f2c40(0x222)},{'id':_0x5f2c40(0x214),'label':_0xdd302(_0x45b729,_0x5f2c40(0x23e)),'prompt':_0x5f2c40(0x231)},{'id':_0x5f2c40(0x1f1),'label':_0xdd302(_0x45b729,_0x5f2c40(0x242)),'prompt':_0x5f2c40(0x223)},{'id':_0x5f2c40(0x25d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x255)),'prompt':_0x5f2c40(0x235)}]},{'groupId':_0x5f2c40(0x258),'groupLabel':_0xdd302(_0x45b729,_0x5f2c40(0x20c)),'commands':[{'id':_0x5f2c40(0x240),'label':_0xdd302(_0x45b729,_0x5f2c40(0x25f)),'prompt':_0x5f2c40(0x212)},{'id':_0x5f2c40(0x22d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x24e)),'prompt':_0x5f2c40(0x210)},{'id':_0x5f2c40(0x203),'label':_0xdd302(_0x45b729,_0x5f2c40(0x227)),'prompt':_0x5f2c40(0x201)},{'id':_0x5f2c40(0x20d),'label':_0xdd302(_0x45b729,_0x5f2c40(0x248)),'prompt':_0x5f2c40(0x21d)},{'id':_0x5f2c40(0x211),'label':_0xdd302(_0x45b729,_0x5f2c40(0x21c)),'prompt':_0x5f2c40(0x1f9)},{'id':_0x5f2c40(0x1ff),'label':_0xdd302(_0x45b729,_0x5f2c40(0x246)),'prompt':_0x5f2c40(0x20a)},{'id':_0x5f2c40(0x20b),'label':_0xdd302(_0x45b729,_0x5f2c40(0x21f)),'prompt':_0x5f2c40(0x25b)},{'id':_0x5f2c40(0x24c),'label':_0xdd302(_0x45b729,_0x5f2c40(0x20f)),'prompt':_0x5f2c40(0x221)}]}];}
|