@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.6.1
|
|
3
|
+
"version": "47.6.1",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@aws-sdk/client-bedrock-runtime": "3.994.0",
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "47.6.1
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "47.6.1
|
|
34
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.6.1
|
|
35
|
-
"@ckeditor/ckeditor5-core": "47.6.1
|
|
36
|
-
"@ckeditor/ckeditor5-engine": "47.6.1
|
|
37
|
-
"@ckeditor/ckeditor5-icons": "47.6.1
|
|
38
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.6.1
|
|
39
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.6.1
|
|
40
|
-
"@ckeditor/ckeditor5-table": "47.6.1
|
|
41
|
-
"@ckeditor/ckeditor5-theme-lark": "47.6.1
|
|
42
|
-
"@ckeditor/ckeditor5-ui": "47.6.1
|
|
43
|
-
"@ckeditor/ckeditor5-utils": "47.6.1
|
|
44
|
-
"ckeditor5": "47.6.1
|
|
45
|
-
"ckeditor5-collaboration": "47.6.1
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "47.6.1",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "47.6.1",
|
|
34
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.6.1",
|
|
35
|
+
"@ckeditor/ckeditor5-core": "47.6.1",
|
|
36
|
+
"@ckeditor/ckeditor5-engine": "47.6.1",
|
|
37
|
+
"@ckeditor/ckeditor5-icons": "47.6.1",
|
|
38
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.6.1",
|
|
39
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.6.1",
|
|
40
|
+
"@ckeditor/ckeditor5-table": "47.6.1",
|
|
41
|
+
"@ckeditor/ckeditor5-theme-lark": "47.6.1",
|
|
42
|
+
"@ckeditor/ckeditor5-ui": "47.6.1",
|
|
43
|
+
"@ckeditor/ckeditor5-utils": "47.6.1",
|
|
44
|
+
"ckeditor5": "47.6.1",
|
|
45
|
+
"ckeditor5-collaboration": "47.6.1",
|
|
46
46
|
"diff": "8.0.3",
|
|
47
47
|
"dom-serializer": "2.0.0",
|
|
48
48
|
"domhandler": "5.0.3",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5f5488=_0x5876;(function(_0x4b58b4,_0x326b42){const _0x138b36=_0x5876,_0x41da26=_0x4b58b4();while(!![]){try{const _0x5b22c1=-parseInt(_0x138b36(0x21c))/0x1*(-parseInt(_0x138b36(0x234))/0x2)+-parseInt(_0x138b36(0x22e))/0x3+-parseInt(_0x138b36(0x1fd))/0x4+parseInt(_0x138b36(0x29d))/0x5+parseInt(_0x138b36(0x241))/0x6*(-parseInt(_0x138b36(0x242))/0x7)+parseInt(_0x138b36(0x283))/0x8+parseInt(_0x138b36(0x270))/0x9*(parseInt(_0x138b36(0x29b))/0xa);if(_0x5b22c1===_0x326b42)break;else _0x41da26['push'](_0x41da26['shift']());}catch(_0x20d41e){_0x41da26['push'](_0x41da26['shift']());}}}(_0x4073,0x7af1a));import{Plugin as _0xa57208}from'ckeditor5/src/core.js';import{AIConnector as _0x1f0146}from'../aicore/aiconnector.js';function _0x4073(){const _0x558f4c=['config','actionName','containsRange','replyContentUpdated','getChild','actionCallId','requires','getChildAtOffset','trackChanges','_regularCalculateMarkerPath','howMany','tryAgain','pending','dialogClosed','version','_balloonShowDiff','getRanges','_getExecuteDataRegular','getSelectedTableCells','isDocumentOperation','locale','applyOperation','insertSuggestion','length','value','_navigateToNext','addOperation','accepted','schema','AIActions','_displayInteractionAtIndex','createPositionAfter','open','_execute','commands','baseVersion','set','_bodyCollection','rootName','_setErrorState','showPrevious','markers','upsertCustomAIActionRating','setIsLoading','Error\x20updating\x20content\x20in\x20replyContentUpdated:','_copyMarkersToFragment','includes','abort','3161824WPTFno','remove','_createActionsBalloonView','document','_promiseQueue','pluginName','_currentInteractionIndex','AIConnector','map','upsertAIActionRating','_navigateToPrevious','editor','resetShowChangesButton','_interactions','plugins','setErrorState','isOfficialPlugin','TableSelection','changeGroups','_applyOperationsAsSuggestions','has','replyChangeGroupStateUpdated','showNext','stopListening','getCommonAncestor','setSelection','Error\x20updating\x20content\x20in\x20replyCreated:','stopAutoScroll','_stopInteraction','_isAbortError','type','7939YthfSc','enqueue','createPositionFromPath','merge','start','updateContent','_applyChanges','aiActionsBalloon','hasError','_setupApplyListeners','replyCreated','Error\x20refreshing\x20interaction:','isPremiumPlugin','ck-ai-actions-balloon','affectsData','random','updateMiniToolbarButtons','startAutoScroll','1423119pNAyIi','nodeAfter','ai-no-track-changes','change','_aiConnector','get','16dtyODH','_wrapWithCommonAncestors','_clearErrorState','_filterOperationsOutsideRange','rejected','AI_ACTIONS_GENERIC_ERROR','getRoot','bind','end','sourcePosition','root','_interactionParams','TrackChangesEditing','220098hlDgJC','49uWWjUr','hideLoader','focus','clearContent','startsWith','_clone','detachFromDom','AIBalloon','indexOf','_clearLoadingState','error','_clearInteractionHistory','toggleSuggestionDisplayMode','stopInteraction','name','showError','move','getSelectionAsFragment','showLoader','disableMiniToolbarButtons','_appendChild','split','parent','getDocumentContext','isTrackChangesOn','applySuggestion','state','createPositionBefore','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','executeAction','_getExecuteDataInTable','replies','insert','_createInteraction','push','max','setChangeGroupState','isTableSelection','batch','getOperations','_interaction','reinsert','static','TrackChanges','selectionRemoved','isEqual','27MPTBrs','destroy','createRange','_setLoadingState','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','_actionsBalloonView','_refreshInteraction','path','clone','position','ai-request-aborted','getSelectedBlocks','Attribute','getLimitElement','documentContextContent','hideError','filter','_anchorOperation','close','7653688vjWGEq','model','isCollapsed','nextSibling','Error\x20updating\x20content\x20during\x20navigation:','catch','getRange','isBusy','listenTo','attachToDom','streaming','signal','rename','range','$graveyard','_executeAction','selection','getFirstRange','slice','operationsA','stop','some','toggleIsLoading','icon','2687970lEmPeB','documentFragment','992870wSVyvR','queueEmptyPromise','modelToDataWithIds','from','ai.availableReplyActions','stickiness','getSelectedContent','getAncestors','message','history','createPositionAt','interactionFinished'];_0x4073=function(){return _0x558f4c;};return _0x4073();}import{Dialog as _0x19db95,BodyCollection as _0x284e84}from'ckeditor5/src/ui.js';import{AIEditing as _0x39225c,AI_VISUAL_SELECTION_MARKER_NAME as _0x3ce02f}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x36ac46}from'./model/aiactionsinteraction.js';function _0x5876(_0x536698,_0x28b612){const _0x40733d=_0x4073();return _0x5876=function(_0x5876f4,_0x5a2d89){_0x5876f4=_0x5876f4-0x1e5;let _0x3a063b=_0x40733d[_0x5876f4];return _0x3a063b;},_0x5876(_0x536698,_0x28b612);}import{CKEditorError as _0x554e7d,first as _0x2b1fa9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x391963}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x375e17}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x953f10}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x5418aa}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x15b132}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x59616d}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1c567a,getOperationsFromReply as _0x5d749b}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x26efb4,ModelRange as _0x29e08a,ModelPosition as _0x29363c,_DetachOperation as _0x1f381c,transformOperationSets as _0x5a70b7}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x5415db}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x146ca3}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0xa57208{static get[_0x5f5488(0x2af)](){return[_0x1f0146,_0x19db95,_0x39225c,_0x375e17,_0x59616d];}static get[_0x5f5488(0x202)](){const _0x171bf8=_0x5f5488;return _0x171bf8(0x1ea);}static get[_0x5f5488(0x20d)](){return!0x0;}static get[_0x5f5488(0x228)](){return!0x0;}[_0x5f5488(0x232)];[_0x5f5488(0x20a)]=[];[_0x5f5488(0x203)]=0x0;[_0x5f5488(0x23f)];[_0x5f5488(0x2b8)]=!0x1;[_0x5f5488(0x201)];[_0x5f5488(0x1f2)];get[_0x5f5488(0x26a)](){const _0x45ac94=_0x5f5488;return this[_0x45ac94(0x20a)][this[_0x45ac94(0x20a)][_0x45ac94(0x2c0)]-0x1];}[_0x5f5488(0x275)];constructor(_0x14f86b){const _0x2a41a9=_0x5f5488;super(_0x14f86b),this[_0x2a41a9(0x1f2)]=new _0x284e84(this[_0x2a41a9(0x208)][_0x2a41a9(0x2bd)]),this[_0x2a41a9(0x1f2)][_0x2a41a9(0x28c)](),this[_0x2a41a9(0x232)]=this[_0x2a41a9(0x208)][_0x2a41a9(0x20b)][_0x2a41a9(0x233)](_0x2a41a9(0x204)),this[_0x2a41a9(0x1f1)](_0x2a41a9(0x28a),!0x1),this[_0x2a41a9(0x201)]=new _0x953f10();}[_0x5f5488(0x24f)](){const _0x19f652=_0x5f5488;this[_0x19f652(0x219)]();}async[_0x5f5488(0x25f)](_0x4b2c87,_0x32056a,_0x433852){const _0x5bc169=_0x5f5488;if(this[_0x5bc169(0x219)](),this[_0x5bc169(0x208)][_0x5bc169(0x20b)][_0x5bc169(0x211)](_0x5bc169(0x20e))){if(this[_0x5bc169(0x208)][_0x5bc169(0x20b)][_0x5bc169(0x233)](_0x5bc169(0x20e))[_0x5bc169(0x2bb)]()){const {modelFragment:_0x2a9562,anchorData:_0x524948}=this[_0x5bc169(0x260)]();return this[_0x5bc169(0x292)](_0x4b2c87,_0x2a9562,_0x524948,_0x32056a,_0x433852);}}const {modelFragment:_0x38ca48,anchorData:_0x42ab1d}=this[_0x5bc169(0x2ba)]();return this[_0x5bc169(0x292)](_0x4b2c87,_0x38ca48,_0x42ab1d,_0x32056a,_0x433852);}async[_0x5f5488(0x271)](){const _0x158158=_0x5f5488;return this[_0x158158(0x219)](),this[_0x158158(0x1f2)][_0x158158(0x248)](),super[_0x158158(0x271)]();}[_0x5f5488(0x1ff)](){const _0x1c34ba=_0x5f5488,_0x5cdb1e=this[_0x1c34ba(0x208)][_0x1c34ba(0x20b)][_0x1c34ba(0x211)](_0x1c34ba(0x26d));let _0x12ad4d=this[_0x1c34ba(0x208)][_0x1c34ba(0x2a9)][_0x1c34ba(0x233)](_0x1c34ba(0x2a1))||[..._0x5415db];_0x5cdb1e||(_0x12ad4d=_0x12ad4d[_0x1c34ba(0x280)](_0x6e60f7=>_0x1c34ba(0x2bf)!=_0x6e60f7));const _0x553941=this[_0x1c34ba(0x208)][_0x1c34ba(0x1ef)][_0x1c34ba(0x233)](_0x1c34ba(0x2b1)),_0x3962d1=new _0x146ca3(this[_0x1c34ba(0x208)][_0x1c34ba(0x2bd)],{'showApplyButton':!0x0,'showSuggestButton':_0x5cdb1e,'miniToolbarConfig':{'showChanges':_0x1c34ba(0x29a)},'availableActions':_0x12ad4d});return _0x3962d1[_0x1c34ba(0x23b)](_0x1c34ba(0x28a))['to'](this),_0x553941&&_0x3962d1[_0x1c34ba(0x23b)](_0x1c34ba(0x25a))['to'](_0x553941,_0x1c34ba(0x1e5)),_0x3962d1['on'](_0x1c34ba(0x2b4),()=>{const _0xf9f240=_0x1c34ba;this[_0xf9f240(0x276)]();}),_0x3962d1['on'](_0x1c34ba(0x1f5),()=>{const _0x4fa54a=_0x1c34ba;this[_0x4fa54a(0x207)]();}),_0x3962d1['on'](_0x1c34ba(0x213),()=>{const _0x146117=_0x1c34ba;this[_0x146117(0x1e6)]();}),_0x3962d1;}[_0x5f5488(0x2ba)](){const _0x32dd5e=_0x5f5488,_0x4ec9db=this[_0x32dd5e(0x208)][_0x32dd5e(0x284)][_0x32dd5e(0x200)][_0x32dd5e(0x293)];if(_0x4ec9db[_0x32dd5e(0x285)]){const _0x1d5722=_0x2b1fa9(_0x4ec9db[_0x32dd5e(0x27b)]())||this[_0x32dd5e(0x208)][_0x32dd5e(0x284)][_0x32dd5e(0x1e9)][_0x32dd5e(0x27d)](_0x4ec9db);this[_0x32dd5e(0x208)][_0x32dd5e(0x284)][_0x32dd5e(0x231)](_0x28f711=>{const _0x2f1ea3=_0x32dd5e;_0x28f711[_0x2f1ea3(0x216)](_0x1d5722,'in');});}const _0x526b8d=_0x4ec9db[_0x32dd5e(0x294)](),_0x2d1e9f=this[_0x32dd5e(0x235)](this[_0x32dd5e(0x208)][_0x32dd5e(0x284)][_0x32dd5e(0x2a3)](_0x4ec9db),_0x526b8d[_0x32dd5e(0x220)],_0x526b8d[_0x32dd5e(0x23c)]);this[_0x32dd5e(0x1fa)](_0x2d1e9f,_0x4ec9db,{'isTableSelection':!0x1});const _0x4b5007=_0x4ec9db[_0x32dd5e(0x294)]()[_0x32dd5e(0x220)],_0xb9a4ac=new Map();let _0x22b0c3=_0x2d1e9f;for(let _0x5e2382=0x0;_0x5e2382<_0x4b5007[_0x32dd5e(0x277)][_0x32dd5e(0x2c0)];_0x5e2382++)_0xb9a4ac[_0x32dd5e(0x1f1)](_0x22b0c3,_0x4b5007[_0x32dd5e(0x277)][_0x5e2382]),_0x22b0c3=_0x22b0c3[_0x32dd5e(0x2ad)](0x0);return{'modelFragment':_0x2d1e9f,'anchorData':_0xb9a4ac};}[_0x5f5488(0x260)](){const _0x3d8784=_0x5f5488,_0x2d4bab=this[_0x3d8784(0x208)][_0x3d8784(0x284)][_0x3d8784(0x200)][_0x3d8784(0x293)],_0x18f6b3=this[_0x3d8784(0x208)][_0x3d8784(0x20b)][_0x3d8784(0x233)](_0x3d8784(0x20e))[_0x3d8784(0x253)](),_0x4d31d6=_0x2d4bab[_0x3d8784(0x294)]()[_0x3d8784(0x220)][_0x3d8784(0x258)][_0x3d8784(0x258)],_0x21db0a=this[_0x3d8784(0x208)][_0x3d8784(0x284)][_0x3d8784(0x272)](this[_0x3d8784(0x208)][_0x3d8784(0x284)][_0x3d8784(0x25d)](_0x4d31d6),this[_0x3d8784(0x208)][_0x3d8784(0x284)][_0x3d8784(0x1ec)](_0x4d31d6)),_0x1d5635=this[_0x3d8784(0x235)](_0x18f6b3,_0x21db0a[_0x3d8784(0x220)],_0x21db0a[_0x3d8784(0x23c)]);this[_0x3d8784(0x1fa)](_0x1d5635,_0x2d4bab,{'isTableSelection':!0x0});const _0x15d6b0=_0x2d4bab[_0x3d8784(0x294)]()[_0x3d8784(0x220)],_0x460b85=new Map();let _0x286e1d=_0x1d5635;for(let _0x239a7a=0x0;_0x239a7a<_0x15d6b0[_0x3d8784(0x277)][_0x3d8784(0x2c0)];_0x239a7a++)if(_0x460b85[_0x3d8784(0x1f1)](_0x286e1d,_0x15d6b0[_0x3d8784(0x277)][_0x239a7a]),_0x239a7a<_0x15d6b0[_0x3d8784(0x277)][_0x3d8784(0x2c0)]-0x1)_0x286e1d=_0x286e1d[_0x3d8784(0x2ad)](0x0);else{let _0x2e63e0=_0x286e1d[_0x3d8784(0x286)];for(;_0x2e63e0;)_0x460b85[_0x3d8784(0x1f1)](_0x2e63e0,_0x15d6b0[_0x3d8784(0x277)][_0x239a7a]),_0x2e63e0=_0x2e63e0[_0x3d8784(0x286)];}return{'modelFragment':_0x1d5635,'anchorData':_0x460b85};}async[_0x5f5488(0x292)](_0x141520,_0x186902,_0x35778c,_0x45dd72,_0x15ec0f){const _0x357989=_0x5f5488,_0x637a60=this[_0x357989(0x208)][_0x357989(0x20b)][_0x357989(0x233)](_0x39225c),_0xbb20a7=this[_0x357989(0x208)][_0x357989(0x20b)][_0x357989(0x233)](_0x375e17),_0x4ac83a=this[_0x357989(0x208)][_0x357989(0x284)][_0x357989(0x200)][_0x357989(0x293)],_0x1e3799=await _0x637a60[_0x357989(0x29f)](_0x186902),_0x31ffe0=this[_0x357989(0x208)][_0x357989(0x284)][_0x357989(0x200)][_0x357989(0x2b7)],_0x587b56=[..._0x4ac83a[_0x357989(0x2b9)]()];return this[_0x357989(0x275)]||(this[_0x357989(0x275)]=this[_0x357989(0x1ff)]()),this[_0x357989(0x24d)](),this[_0x357989(0x236)](),this[_0x357989(0x275)][_0x357989(0x245)](),_0xbb20a7[_0x357989(0x1ed)]({'index':0x3e8*Math[_0x357989(0x22b)]()%0x3e8,'title':_0x45dd72,'icon':_0x15ec0f||_0x391963,'mainView':this[_0x357989(0x275)],'class':_0x357989(0x229),'ranges':_0x587b56,'id':_0x357989(0x223)}),this[_0x357989(0x273)](),this[_0x357989(0x214)](this[_0x357989(0x275)]),this[_0x357989(0x214)](_0xbb20a7),this[_0x357989(0x23f)]={'action':_0x141520,'content':_0x1e3799,'version':_0x31ffe0,'aiBalloon':_0xbb20a7,'modelFragment':_0x186902,'anchorData':_0x35778c},this[_0x357989(0x225)](),this[_0x357989(0x28b)](_0xbb20a7,_0x357989(0x26e),()=>{const _0x37ec7e=_0x357989;this[_0x37ec7e(0x219)](),this[_0x37ec7e(0x275)][_0x37ec7e(0x255)]();}),this[_0x357989(0x28b)](_0xbb20a7,_0x357989(0x2b6),(_0x2be1ee,{id:_0x2ab769})=>{const _0xf220be=_0x357989;if(_0xf220be(0x223)===_0x2ab769){if(this[_0xf220be(0x26a)]&&this[_0xf220be(0x26a)][_0xf220be(0x261)][_0xf220be(0x2c0)]>0x0){const _0x4739fe=this[_0xf220be(0x26a)][_0xf220be(0x261)][this[_0xf220be(0x26a)][_0xf220be(0x261)][_0xf220be(0x2c0)]-0x1],_0x19f818=_0x4739fe[_0xf220be(0x20f)][0x0];_0x19f818&&_0xf220be(0x2b5)===_0x19f818[_0xf220be(0x25c)]&&_0x4739fe[_0xf220be(0x266)](0x0,_0xf220be(0x238));}this[_0xf220be(0x219)](),this[_0xf220be(0x24d)](),this[_0xf220be(0x214)](this[_0xf220be(0x275)]),this[_0xf220be(0x214)](_0xbb20a7);}}),this[_0x357989(0x263)](_0x1e3799,_0x31ffe0,_0xbb20a7,_0x141520);}[_0x5f5488(0x225)](){const _0x9427c4=_0x5f5488;if(!this[_0x9427c4(0x23f)])return;const {modelFragment:_0x419053,anchorData:_0x11ae1e}=this[_0x9427c4(0x23f)];this[_0x9427c4(0x28b)](this[_0x9427c4(0x275)],_0x9427c4(0x25b),()=>{const _0x46f6b2=_0x9427c4;this[_0x46f6b2(0x222)](_0x419053,_0x11ae1e,!0x1);}),this[_0x9427c4(0x28b)](this[_0x9427c4(0x275)],_0x9427c4(0x2bf),()=>{const _0x2a9e7d=_0x9427c4;this[_0x2a9e7d(0x222)](_0x419053,_0x11ae1e,!0x0);});}[_0x5f5488(0x235)](_0x14870b,_0x4766db,_0x50c5ca){const _0x4c96df=_0x5f5488,_0x4e640f=this[_0x4c96df(0x208)][_0x4c96df(0x284)][_0x4c96df(0x272)](_0x4766db,_0x50c5ca)[_0x4c96df(0x215)](),_0xcdda9a=_0x4e640f['is'](_0x4c96df(0x29c))?[]:_0x4e640f[_0x4c96df(0x2a4)]({'includeSelf':!0x0})[_0x4c96df(0x295)](0x1);if(_0xcdda9a[_0x4c96df(0x2c0)]){const _0x36d590=_0xcdda9a[_0x4c96df(0x205)](_0x3b6176=>_0x3b6176[_0x4c96df(0x247)](!0x1));for(let _0x4ec218=0x1;_0x4ec218<_0x36d590[_0x4c96df(0x2c0)];_0x4ec218++)_0x36d590[_0x4ec218-0x1][_0x4c96df(0x256)](_0x36d590[_0x4ec218]);return _0x36d590[_0x36d590[_0x4c96df(0x2c0)]-0x1][_0x4c96df(0x256)](_0x14870b),new _0x26efb4(_0x36d590[0x0]);}return _0x14870b;}[_0x5f5488(0x1fa)](_0x2b9f3c,_0x160b54,_0xcc4b1c={'isTableSelection':!0x1}){const _0xabf08f=_0x5f5488,_0x3b8cdc=this[_0xabf08f(0x208)][_0xabf08f(0x284)],_0x27d9b6=Array[_0xabf08f(0x2a0)](_0x160b54[_0xabf08f(0x2b9)]()),_0x4a5e5c=_0x160b54[_0xabf08f(0x294)]()[_0xabf08f(0x220)];for(const _0x43c92f of _0x3b8cdc[_0xabf08f(0x1f6)]){if(_0x43c92f[_0xabf08f(0x250)][_0xabf08f(0x246)](_0x3ce02f)||!_0x43c92f[_0xabf08f(0x22a)])continue;const _0x174f11=_0x43c92f[_0xabf08f(0x289)]();if(!_0x27d9b6[_0xabf08f(0x298)](_0xc36ad6=>_0xc36ad6[_0xabf08f(0x2ab)](_0x174f11,!0x0)))continue;const _0x216ff6=this[_0xabf08f(0x2b2)](_0x174f11[_0xabf08f(0x220)],_0x4a5e5c,_0xcc4b1c[_0xabf08f(0x267)]),_0x2141ea=this[_0xabf08f(0x2b2)](_0x174f11[_0xabf08f(0x23c)],_0x4a5e5c,_0xcc4b1c[_0xabf08f(0x267)]),_0x28d5d4=_0x3b8cdc[_0xabf08f(0x21e)](_0x2b9f3c,_0x216ff6),_0x188fd4=_0x3b8cdc[_0xabf08f(0x21e)](_0x2b9f3c,_0x2141ea);if(!_0x28d5d4[_0xabf08f(0x26f)](_0x188fd4)){const _0x1f2a73=_0x3b8cdc[_0xabf08f(0x272)](_0x28d5d4,_0x188fd4);_0x2b9f3c[_0xabf08f(0x1f6)][_0xabf08f(0x1f1)](_0x43c92f[_0xabf08f(0x250)],_0x1f2a73);}}}[_0x5f5488(0x2b2)](_0xcc6bb7,_0x320695,_0x17677d=!0x1){const _0x7cf9f1=_0x5f5488,_0x4a18b3=[..._0xcc6bb7[_0x7cf9f1(0x277)][_0x7cf9f1(0x295)]()];for(let _0x5dac86=0x0;_0x5dac86<Math[_0x7cf9f1(0x265)](_0x320695[_0x7cf9f1(0x277)][_0x7cf9f1(0x2c0)],_0xcc6bb7[_0x7cf9f1(0x277)][_0x7cf9f1(0x2c0)]);_0x5dac86++){const _0x307a02=_0x320695[_0x7cf9f1(0x277)][_0x5dac86]||0x0,_0x551774=(_0xcc6bb7[_0x7cf9f1(0x277)][_0x5dac86]||0x0)-_0x307a02;if(_0x4a18b3[_0x5dac86]=_0x551774,0x0!==_0x551774&&!_0x17677d)break;}return _0x4a18b3;}async[_0x5f5488(0x263)](_0x168a99,_0x99f633,_0x410ea4,_0x4b39f7){const _0x1e29fc=_0x5f5488,_0x12633d=this[_0x1e29fc(0x208)];this[_0x1e29fc(0x23f)]||(this[_0x1e29fc(0x23f)]={'action':_0x4b39f7,'content':_0x168a99,'version':_0x99f633,'aiBalloon':_0x410ea4,'modelFragment':this[_0x1e29fc(0x208)][_0x1e29fc(0x284)][_0x1e29fc(0x2a3)](this[_0x1e29fc(0x208)][_0x1e29fc(0x284)][_0x1e29fc(0x200)][_0x1e29fc(0x293)]),'anchorData':new Map()});const _0x2e2558=new _0x36ac46({'connector':this[_0x1e29fc(0x232)],'editor':_0x12633d,'content':_0x168a99,'version':_0x99f633,..._0x4b39f7});this[_0x1e29fc(0x20a)][_0x1e29fc(0x264)](_0x2e2558);const _0x4b1a15=(_0x244591,_0x1de120=!0x1,_0x1ab6bb=_0x1e29fc(0x28d))=>this[_0x1e29fc(0x201)][_0x1e29fc(0x21d)](async _0xfb85d2=>{const _0x5a26dd=_0x1e29fc;try{const _0x3fcdab=_0x15b132({'editor':_0x12633d,'changeGroups':_0x244591[_0x5a26dd(0x20f)],'documentContextContent':_0x244591[_0x5a26dd(0x27e)],'showDiff':_0x1de120,'trimUnchanged':!0x1});_0x3fcdab[_0x5a26dd(0x2c0)]&&await this[_0x5a26dd(0x275)][_0x5a26dd(0x221)]({'part':_0x3fcdab[0x0],'renderingStrategy':_0x1ab6bb,'abortSignal':_0xfb85d2});}catch(_0x3a5cfa){if(this[_0x5a26dd(0x21a)](_0x3a5cfa))return;throw _0x3a5cfa;}});this[_0x1e29fc(0x26a)]['on'](_0x1e29fc(0x226),(_0x1fc380,_0x443bc9)=>{const _0xbc477e=_0x1e29fc;this[_0xbc477e(0x275)][_0xbc477e(0x243)](),this[_0xbc477e(0x275)][_0xbc477e(0x22d)](),_0x4b1a15(_0x443bc9)[_0xbc477e(0x288)](_0x4cdcf1=>{const _0x1c7d72=_0xbc477e;this[_0x1c7d72(0x21a)](_0x4cdcf1)||(console[_0x1c7d72(0x24c)](_0x1c7d72(0x217),_0x4cdcf1),this[_0x1c7d72(0x1f4)](_0x2e2558));});}),this[_0x1e29fc(0x26a)]['on'](_0x1e29fc(0x2ac),(_0x243e0c,_0x668181)=>{const _0x1c6446=_0x1e29fc;_0x4b1a15(_0x668181)[_0x1c6446(0x288)](_0x31bb54=>{const _0x38e7ba=_0x1c6446;this[_0x38e7ba(0x21a)](_0x31bb54)||(console[_0x38e7ba(0x24c)](_0x38e7ba(0x1f9),_0x31bb54),this[_0x38e7ba(0x1f4)](_0x2e2558));});}),this[_0x1e29fc(0x26a)]['on'](_0x1e29fc(0x2a8),async()=>{const _0x13cce1=_0x1e29fc;try{await this[_0x13cce1(0x24b)](),this[_0x13cce1(0x275)][_0x13cce1(0x22c)](this[_0x13cce1(0x20a)][_0x13cce1(0x2c0)],this[_0x13cce1(0x203)]),await this[_0x13cce1(0x201)][_0x13cce1(0x29e)];}catch(_0xfacedc){this[_0x13cce1(0x21a)](_0xfacedc)||(console[_0x13cce1(0x24c)](_0x13cce1(0x25e),_0xfacedc),this[_0x13cce1(0x1f4)](_0x2e2558));}finally{this[_0x13cce1(0x275)][_0x13cce1(0x218)]();}}),this[_0x1e29fc(0x28b)](this[_0x1e29fc(0x275)],_0x1e29fc(0x24e),async(_0x1c7c9b,{showDiff:_0x353488})=>{const _0x404165=_0x1e29fc;try{this[_0x404165(0x2b8)]=_0x353488;const _0x3d7575=this[_0x404165(0x26a)][_0x404165(0x261)][this[_0x404165(0x26a)][_0x404165(0x261)][_0x404165(0x2c0)]-0x1];_0x3d7575&&await _0x4b1a15(_0x3d7575,_0x353488,_0x404165(0x26c));}catch(_0x38abd5){this[_0x404165(0x21a)](_0x38abd5)||(console[_0x404165(0x24c)](_0x404165(0x274),_0x38abd5),this[_0x404165(0x1f4)](_0x2e2558));}}),this[_0x1e29fc(0x26a)]['on'](_0x1e29fc(0x212),(_0x235bc9,{reply:_0x4449c8})=>{const _0x28d47a=_0x1e29fc,_0x3e9315={'positiveCount':_0x4449c8[_0x28d47a(0x20f)][_0x28d47a(0x280)](_0x3bfd07=>_0x28d47a(0x1e8)===_0x3bfd07[_0x28d47a(0x25c)])[_0x28d47a(0x2c0)],'totalCount':_0x4449c8[_0x28d47a(0x20f)][_0x28d47a(0x2c0)]},_0x51bb57=this[_0x28d47a(0x26a)][_0x28d47a(0x2ae)],_0xe07425=this[_0x28d47a(0x26a)][_0x28d47a(0x2aa)];_0xe07425?this[_0x28d47a(0x232)][_0x28d47a(0x206)](_0xe07425,_0x51bb57,_0x3e9315):this[_0x28d47a(0x232)][_0x28d47a(0x1f7)](_0x51bb57,_0x3e9315);}),this[_0x1e29fc(0x273)]();try{const _0x241806=await this[_0x1e29fc(0x26a)][_0x1e29fc(0x220)]();return this[_0x1e29fc(0x275)][_0x1e29fc(0x22c)](this[_0x1e29fc(0x20a)][_0x1e29fc(0x2c0)],this[_0x1e29fc(0x203)]),_0x241806;}catch(_0x57a45){if(this[_0x1e29fc(0x21a)](_0x57a45))return;this[_0x1e29fc(0x275)][_0x1e29fc(0x243)](),this[_0x1e29fc(0x1f4)](_0x2e2558);}}[_0x5f5488(0x222)](_0x10cfeb,_0x3ab18c,_0x5a7474){const _0x358fd7=_0x5f5488,_0x510b98=this[_0x358fd7(0x208)];if(_0x5a7474&&!_0x510b98[_0x358fd7(0x20b)][_0x358fd7(0x211)](_0x358fd7(0x26d)))throw new _0x554e7d(_0x358fd7(0x230),null);const _0x41bf76=this[_0x358fd7(0x208)][_0x358fd7(0x20b)][_0x358fd7(0x233)](_0x59616d),_0x2dd9a1=this[_0x358fd7(0x20a)][this[_0x358fd7(0x20a)][_0x358fd7(0x2c0)]-0x1-this[_0x358fd7(0x203)]];if(!_0x2dd9a1||!_0x2dd9a1[_0x358fd7(0x261)][_0x358fd7(0x2c0)])return;const _0x3aebeb=_0x2dd9a1[_0x358fd7(0x261)][_0x2dd9a1[_0x358fd7(0x261)][_0x358fd7(0x2c0)]-0x1],_0x16bc07=_0x3aebeb[_0x358fd7(0x20f)];_0x3aebeb[_0x358fd7(0x266)](0x0,_0x358fd7(0x1e8));let _0x43e607=_0x5d749b({'editor':_0x510b98,'reply':_0x3aebeb,'interaction':_0x2dd9a1,'groups':_0x16bc07,'transform':!0x1,'documentCompare':_0x41bf76,'documentCompareOptions':{'anchor':_0x510b98[_0x358fd7(0x284)][_0x358fd7(0x2a7)](_0x10cfeb,0x0),'markDeletions':_0x5a7474}});_0x43e607=this[_0x358fd7(0x237)](_0x43e607,_0x3ab18c);for(const _0x2759fb of _0x43e607)this[_0x358fd7(0x281)](_0x3ab18c,_0x2759fb,_0x510b98[_0x358fd7(0x284)][_0x358fd7(0x200)][_0x358fd7(0x23a)]());const _0x79e30d=_0x2dd9a1[_0x358fd7(0x259)]()[_0x358fd7(0x2b7)],_0x900128=_0x510b98[_0x358fd7(0x284)][_0x358fd7(0x200)][_0x358fd7(0x2a6)][_0x358fd7(0x269)](_0x79e30d),_0x44d5b2={'document':_0x510b98[_0x358fd7(0x284)][_0x358fd7(0x200)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x458983=_0x5a70b7(_0x43e607,_0x900128,_0x44d5b2)[_0x358fd7(0x296)];_0x510b98[_0x358fd7(0x284)][_0x358fd7(0x231)](_0x584e93=>{const _0x5e017f=_0x358fd7;if(_0x584e93[_0x5e017f(0x216)](_0x510b98[_0x5e017f(0x284)][_0x5e017f(0x200)][_0x5e017f(0x293)][_0x5e017f(0x244)]),_0x5a7474)_0x510b98[_0x5e017f(0x20b)][_0x5e017f(0x233)](_0x5e017f(0x240))[_0x5e017f(0x210)](_0x458983);else{for(const _0x53addb of _0x458983)_0x53addb[_0x5e017f(0x1f0)]=_0x510b98[_0x5e017f(0x284)][_0x5e017f(0x200)][_0x5e017f(0x2b7)],_0x1c567a(_0x510b98,_0x53addb),_0x584e93[_0x5e017f(0x268)][_0x5e017f(0x1e7)](_0x53addb),_0x510b98[_0x5e017f(0x284)][_0x5e017f(0x2be)](_0x53addb);}}),this[_0x358fd7(0x208)][_0x358fd7(0x20b)][_0x358fd7(0x233)](_0x358fd7(0x249))[_0x358fd7(0x282)]();}[_0x5f5488(0x237)](_0x219857,_0x158aa0){const _0x38507a=_0x5f5488;return _0x219857[_0x38507a(0x280)](_0x5a847b=>{const _0xa02eef=_0x38507a;if(_0xa02eef(0x28f)==_0x5a847b[_0xa02eef(0x21b)]){const _0x57716e=_0x5a847b[_0xa02eef(0x279)][_0xa02eef(0x22f)];return!_0x158aa0[_0xa02eef(0x211)](_0x57716e);}if(_0x5a847b[_0xa02eef(0x21b)][_0xa02eef(0x24a)](_0xa02eef(0x27c))>-0x1){const _0x3b30ac=_0x5a847b[_0xa02eef(0x290)][_0xa02eef(0x220)][_0xa02eef(0x22f)];return!_0x158aa0[_0xa02eef(0x211)](_0x3b30ac);}return!0x0;});}[_0x5f5488(0x281)](_0x31ee08,_0x30e2ee,_0x1878c3){const _0x2cccf5=_0x5f5488,_0x16c23d=_0x30e2ee[_0x2cccf5(0x278)]();for(const _0x3dcda4 in _0x30e2ee){const _0x3dd70a=_0x30e2ee[_0x3dcda4];_0x3dd70a instanceof _0x29e08a?_0x30e2ee[_0x3dcda4]=new _0x29e08a(_0x3ee5ff(_0x3dd70a[_0x2cccf5(0x220)]),_0x3ee5ff(_0x3dd70a[_0x2cccf5(0x23c)])):_0x3dd70a instanceof _0x29363c&&(_0x30e2ee[_0x3dcda4]=_0x3ee5ff(_0x3dd70a));}if([_0x2cccf5(0x262),_0x2cccf5(0x252),_0x2cccf5(0x1fe),_0x2cccf5(0x26b),_0x2cccf5(0x257),_0x2cccf5(0x21f)][_0x2cccf5(0x1fb)](_0x16c23d[_0x2cccf5(0x21b)])){if(_0x16c23d[_0x2cccf5(0x2bc)]=!0x1,_0x16c23d[_0x2cccf5(0x1f0)]=null,_0x2cccf5(0x1fe)==_0x16c23d[_0x2cccf5(0x21b)]){const _0x36ccbd=_0x16c23d[_0x2cccf5(0x23d)],_0x3367f1=_0x16c23d[_0x2cccf5(0x2b3)];new _0x1f381c(_0x36ccbd,_0x3367f1)[_0x2cccf5(0x1ee)]();}else _0x16c23d[_0x2cccf5(0x1ee)]();}function _0x3ee5ff(_0x20113b){const _0x44f8da=_0x2cccf5;if(_0x44f8da(0x291)==_0x20113b[_0x44f8da(0x23e)][_0x44f8da(0x1f3)])return _0x20113b;const _0x434947=[];let _0xbf21fb=_0x20113b[_0x44f8da(0x23e)];for(let _0x44b766=0x0;_0x44b766<_0x20113b[_0x44f8da(0x277)][_0x44f8da(0x2c0)];_0x44b766++){const _0x236d3f=_0x31ee08[_0x44f8da(0x233)](_0xbf21fb)||0x0;_0x434947[_0x44b766]=_0x20113b[_0x44f8da(0x277)][_0x44b766]+_0x236d3f,_0xbf21fb=_0xbf21fb[_0x44f8da(0x2b0)](_0x20113b[_0x44f8da(0x277)][_0x44b766]);}return new _0x29363c(_0x1878c3,_0x434947,_0x20113b[_0x44f8da(0x2a2)]);}}[_0x5f5488(0x276)](){const _0x1dc798=_0x5f5488;if(!this[_0x1dc798(0x23f)])return;this[_0x1dc798(0x20a)][_0x1dc798(0x2c0)]>0x0&&this[_0x1dc798(0x219)](),this[_0x1dc798(0x203)]=0x0,this[_0x1dc798(0x2b8)]=!0x1;const {action:_0x2fcb12,content:_0x31ac5f,version:_0x72e053,aiBalloon:_0x191ccd}=this[_0x1dc798(0x23f)];this[_0x1dc798(0x236)](),this[_0x1dc798(0x275)][_0x1dc798(0x245)](),this[_0x1dc798(0x275)][_0x1dc798(0x254)](),this[_0x1dc798(0x275)][_0x1dc798(0x209)](),this[_0x1dc798(0x275)][_0x1dc798(0x22c)](this[_0x1dc798(0x20a)][_0x1dc798(0x2c0)],this[_0x1dc798(0x203)]),this[_0x1dc798(0x214)](this[_0x1dc798(0x275)]),this[_0x1dc798(0x225)](),this[_0x1dc798(0x263)](_0x31ac5f,_0x72e053,_0x191ccd,_0x2fcb12)[_0x1dc798(0x288)](_0x664e0=>{const _0xbd8476=_0x1dc798;this[_0xbd8476(0x21a)](_0x664e0)||console[_0xbd8476(0x24c)](_0xbd8476(0x227),_0x664e0);});}[_0x5f5488(0x21a)](_0x55b711){const _0x364ef2=_0x5f5488;return!!_0x55b711[_0x364ef2(0x2a5)]&&_0x55b711[_0x364ef2(0x2a5)][_0x364ef2(0x246)](_0x364ef2(0x27a));}[_0x5f5488(0x24d)](){const _0x99e6bb=_0x5f5488;this[_0x99e6bb(0x20a)]=[],this[_0x99e6bb(0x23f)]=void 0x0,this[_0x99e6bb(0x203)]=0x0,this[_0x99e6bb(0x275)][_0x99e6bb(0x22c)](this[_0x99e6bb(0x20a)][_0x99e6bb(0x2c0)],this[_0x99e6bb(0x203)]);}[_0x5f5488(0x219)](){const _0x2d36b9=_0x5f5488;this[_0x2d36b9(0x26a)]&&this[_0x2d36b9(0x26a)][_0x2d36b9(0x297)](),this[_0x2d36b9(0x201)][_0x2d36b9(0x1fc)](),this[_0x2d36b9(0x28a)]=!0x1,this[_0x2d36b9(0x23f)]&&this[_0x2d36b9(0x275)][_0x2d36b9(0x218)]();}[_0x5f5488(0x207)](){const _0x4e2eeb=_0x5f5488,_0x2ec671=this[_0x4e2eeb(0x20a)][_0x4e2eeb(0x2c0)];this[_0x4e2eeb(0x203)]<_0x2ec671-0x1&&this[_0x4e2eeb(0x1eb)](this[_0x4e2eeb(0x203)]+0x1);}[_0x5f5488(0x1e6)](){const _0x166526=_0x5f5488;this[_0x166526(0x203)]>0x0&&this[_0x166526(0x1eb)](this[_0x166526(0x203)]-0x1);}async[_0x5f5488(0x1eb)](_0x598153){const _0x486355=_0x5f5488;if(!this[_0x486355(0x23f)])return;this[_0x486355(0x203)]=_0x598153;const _0x470e5a=this[_0x486355(0x20a)][this[_0x486355(0x20a)][_0x486355(0x2c0)]-0x1-this[_0x486355(0x203)]];if(!_0x470e5a)return;if(_0x470e5a[_0x486355(0x224)])return this[_0x486355(0x1f4)](_0x470e5a),void this[_0x486355(0x275)][_0x486355(0x22c)](this[_0x486355(0x20a)][_0x486355(0x2c0)],this[_0x486355(0x203)]);if(!_0x470e5a[_0x486355(0x261)][_0x486355(0x2c0)])return;this[_0x486355(0x275)][_0x486355(0x27f)](),this[_0x486355(0x23f)]&&this[_0x486355(0x236)]();const _0x3b7ffc=_0x470e5a[_0x486355(0x261)][_0x470e5a[_0x486355(0x261)][_0x486355(0x2c0)]-0x1];if(_0x3b7ffc){const _0x703b08=this[_0x486355(0x208)];try{const _0x18c2ae=_0x15b132({'editor':_0x703b08,'changeGroups':_0x3b7ffc[_0x486355(0x20f)],'documentContextContent':_0x3b7ffc[_0x486355(0x27e)],'showDiff':this[_0x486355(0x2b8)],'trimUnchanged':!0x1});await new Promise(_0x4147a5=>setTimeout(_0x4147a5,0x32)),await this[_0x486355(0x275)][_0x486355(0x221)]({'part':_0x18c2ae[0x0],'renderingStrategy':_0x486355(0x26c),'abortSignal':new AbortController()[_0x486355(0x28e)]});}catch(_0x3b07cb){this[_0x486355(0x21a)](_0x3b07cb)||console[_0x486355(0x24c)](_0x486355(0x287),_0x3b07cb);}}this[_0x486355(0x275)][_0x486355(0x22c)](this[_0x486355(0x20a)][_0x486355(0x2c0)],this[_0x486355(0x203)]);}[_0x5f5488(0x273)](){const _0x24d8db=_0x5f5488;this[_0x24d8db(0x275)][_0x24d8db(0x1f8)](!0x0),this[_0x24d8db(0x28a)]=!0x0;}async[_0x5f5488(0x1f4)](_0x3aacd2){const _0xf267fa=_0x5f5488,_0x3706a2=_0x5418aa(this[_0xf267fa(0x208)][_0xf267fa(0x2bd)],_0xf267fa(0x239));this[_0xf267fa(0x275)][_0xf267fa(0x251)](_0x3706a2),_0x3aacd2[_0xf267fa(0x224)]=!0x0,await this[_0xf267fa(0x201)][_0xf267fa(0x29e)],this[_0xf267fa(0x275)][_0xf267fa(0x20c)](),this[_0xf267fa(0x275)][_0xf267fa(0x299)](!0x0);}[_0x5f5488(0x236)](){const _0x9bdac6=_0x5f5488;this[_0x9bdac6(0x275)][_0x9bdac6(0x27f)](),this[_0x9bdac6(0x275)][_0x9bdac6(0x299)](!0x1);}async[_0x5f5488(0x24b)](){const _0x2ac8b1=_0x5f5488;await this[_0x2ac8b1(0x201)][_0x2ac8b1(0x29e)],this[_0x2ac8b1(0x28a)]=!0x1,this[_0x2ac8b1(0x275)][_0x2ac8b1(0x1f8)](!0x1);}}
|
|
23
|
+
const _0x43fb57=_0x38d7;function _0x38d7(_0x2a29ea,_0x2c3f45){const _0x1eafd9=_0x1eaf();return _0x38d7=function(_0x38d7c5,_0x1e449f){_0x38d7c5=_0x38d7c5-0x1da;let _0x19daf1=_0x1eafd9[_0x38d7c5];return _0x19daf1;},_0x38d7(_0x2a29ea,_0x2c3f45);}(function(_0x56f6c2,_0x2d9d55){const _0x149cd9=_0x38d7,_0x710b5b=_0x56f6c2();while(!![]){try{const _0x286dc7=-parseInt(_0x149cd9(0x2ae))/0x1*(parseInt(_0x149cd9(0x211))/0x2)+-parseInt(_0x149cd9(0x228))/0x3+-parseInt(_0x149cd9(0x25e))/0x4*(-parseInt(_0x149cd9(0x2b6))/0x5)+-parseInt(_0x149cd9(0x26a))/0x6+parseInt(_0x149cd9(0x29b))/0x7*(parseInt(_0x149cd9(0x205))/0x8)+-parseInt(_0x149cd9(0x1f9))/0x9*(-parseInt(_0x149cd9(0x2ac))/0xa)+parseInt(_0x149cd9(0x233))/0xb*(-parseInt(_0x149cd9(0x230))/0xc);if(_0x286dc7===_0x2d9d55)break;else _0x710b5b['push'](_0x710b5b['shift']());}catch(_0x29d843){_0x710b5b['push'](_0x710b5b['shift']());}}}(_0x1eaf,0xd50d2));import{Plugin as _0x49eaed}from'ckeditor5/src/core.js';import{AIConnector as _0x4a4b53}from'../aicore/aiconnector.js';import{Dialog as _0x54601a,BodyCollection as _0x273a80}from'ckeditor5/src/ui.js';function _0x1eaf(){const _0x3c19fd=['_navigateToPrevious','stop','_clone','attachToDom','isCollapsed','54530faMicD','document','26097XRJJRj','stopListening','tryAgain','signal','_setLoadingState','error','_clearInteractionHistory','message','5iqvnij','upsertAIActionRating','locale','stickiness','Error\x20updating\x20content\x20in\x20replyCreated:','detachFromDom','_regularCalculateMarkerPath','_displayInteractionAtIndex','pluginName','startAutoScroll','getSelectedBlocks','upsertCustomAIActionRating','updateContent','trackChanges','_navigateToNext','indexOf','createPositionBefore','type','executeAction','TrackChanges','getLimitElement','rejected','accepted','some','close','_promiseQueue','clearContent','selectionRemoved','commands','length','documentContextContent','_executeAction','_createInteraction','459XwLfmf','name','rename','replyContentUpdated','_execute','AI_ACTIONS_GENERIC_ERROR','getSelectedTableCells','_appendChild','getSelectionAsFragment','parent','_refreshInteraction','slice','48vEzdct','schema','_copyMarkersToFragment','aiActionsBalloon','replyChangeGroupStateUpdated','markers','getSelectedContent','ai-no-track-changes','state','applySuggestion','batch','_currentInteractionIndex','74RmRwRz','open','getChildAtOffset','setIsLoading','_wrapWithCommonAncestors','_aiConnector','actionName','_actionsBalloonView','merge','setErrorState','nodeAfter','map','random','max','from','containsRange','AIActions','static','_createActionsBalloonView','_isAbortError','reinsert','resetShowChangesButton','TableSelection','507768lMiTLw','_stopInteraction','value','addOperation','interactionFinished','isTableSelection','stopAutoScroll','move','2208VxZHuY','affectsData','sourcePosition','47234xnpUxr','Error\x20updating\x20content\x20during\x20navigation:','listenTo','AIBalloon','filter','_applyChanges','pending','isTrackChangesOn','insert','updateMiniToolbarButtons','ck-ai-actions-balloon','_applyOperationsAsSuggestions','start','range','isDocumentOperation','abort','actionCallId','replies','modelToDataWithIds','includes','history','end','streaming','getChild','plugins','enqueue','isEqual','_interactions','getDocumentContext','replyCreated','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','createRange','toggleIsLoading','ai.availableReplyActions','_filterOperationsOutsideRange','showLoader','rootName','getAncestors','split','_clearLoadingState','_getExecuteDataRegular','model','TrackChangesEditing','6831068Rpokjd','has','queueEmptyPromise','hideError','startsWith','position','root','isPremiumPlugin','setSelection','path','_interactionParams','set','1180830xUyIrX','createPositionFromPath','_balloonShowDiff','editor','_clearErrorState','documentFragment','change','bind','hideLoader','createPositionAt','getRange','isOfficialPlugin','ai-request-aborted','_anchorOperation','icon','setChangeGroupState','get','toggleSuggestionDisplayMode','showPrevious','_setupApplyListeners','isBusy','showNext','applyOperation','selection','stopInteraction','nextSibling','version','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getCommonAncestor','_getExecuteDataInTable','_interaction','push','dialogClosed','$graveyard','_setErrorState','focus','changeGroups','disableMiniToolbarButtons','operationsA','catch','requires','_bodyCollection','createPositionAfter','config','hasError','clone','AIConnector','getOperations','Attribute','1176623iNpgzS','insertSuggestion','showError','remove','getRoot','getRanges','destroy','Error\x20refreshing\x20interaction:','Error\x20updating\x20content\x20in\x20replyContentUpdated:','baseVersion','getFirstRange','howMany'];_0x1eaf=function(){return _0x3c19fd;};return _0x1eaf();}import{AIEditing as _0x342b6a,AI_VISUAL_SELECTION_MARKER_NAME as _0x13293d}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x203a12}from'./model/aiactionsinteraction.js';import{CKEditorError as _0xb6715a,first as _0x55212f}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5e669c}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x3da172}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x115a61}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x2d45ca}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x44649d}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x330f11}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x1e6e1d,getOperationsFromReply as _0x11bc66}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x251fab,ModelRange as _0x58a0ef,ModelPosition as _0x514dc0,_DetachOperation as _0x4f12e9,transformOperationSets as _0x4d55f4}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x23f941}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x5eedac}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x49eaed{static get[_0x43fb57(0x292)](){return[_0x4a4b53,_0x54601a,_0x342b6a,_0x3da172,_0x330f11];}static get[_0x43fb57(0x1e0)](){const _0x339e94=_0x43fb57;return _0x339e94(0x221);}static get[_0x43fb57(0x275)](){return!0x0;}static get[_0x43fb57(0x265)](){return!0x0;}[_0x43fb57(0x216)];[_0x43fb57(0x24e)]=[];[_0x43fb57(0x210)]=0x0;[_0x43fb57(0x268)];[_0x43fb57(0x26c)]=!0x1;[_0x43fb57(0x1f1)];[_0x43fb57(0x293)];get[_0x43fb57(0x288)](){const _0x148fa5=_0x43fb57;return this[_0x148fa5(0x24e)][this[_0x148fa5(0x24e)][_0x148fa5(0x1f5)]-0x1];}[_0x43fb57(0x218)];constructor(_0x5ea6b6){const _0x582a6a=_0x43fb57;super(_0x5ea6b6),this[_0x582a6a(0x293)]=new _0x273a80(this[_0x582a6a(0x26d)][_0x582a6a(0x1da)]),this[_0x582a6a(0x293)][_0x582a6a(0x2aa)](),this[_0x582a6a(0x216)]=this[_0x582a6a(0x26d)][_0x582a6a(0x24b)][_0x582a6a(0x27a)](_0x582a6a(0x298)),this[_0x582a6a(0x269)](_0x582a6a(0x27e),!0x1),this[_0x582a6a(0x1f1)]=new _0x115a61();}[_0x43fb57(0x282)](){const _0x546b4a=_0x43fb57;this[_0x546b4a(0x229)]();}async[_0x43fb57(0x1ea)](_0x14ca48,_0xd4ce0e,_0x345079){const _0x55860a=_0x43fb57;if(this[_0x55860a(0x229)](),this[_0x55860a(0x26d)][_0x55860a(0x24b)][_0x55860a(0x25f)](_0x55860a(0x227))){if(this[_0x55860a(0x26d)][_0x55860a(0x24b)][_0x55860a(0x27a)](_0x55860a(0x227))[_0x55860a(0x1ff)]()){const {modelFragment:_0x7694f0,anchorData:_0x56bbb1}=this[_0x55860a(0x287)]();return this[_0x55860a(0x1f7)](_0x14ca48,_0x7694f0,_0x56bbb1,_0xd4ce0e,_0x345079);}}const {modelFragment:_0x19deac,anchorData:_0x308aab}=this[_0x55860a(0x25b)]();return this[_0x55860a(0x1f7)](_0x14ca48,_0x19deac,_0x308aab,_0xd4ce0e,_0x345079);}async[_0x43fb57(0x2a1)](){const _0x411070=_0x43fb57;return this[_0x411070(0x229)](),this[_0x411070(0x293)][_0x411070(0x1dd)](),super[_0x411070(0x2a1)]();}[_0x43fb57(0x223)](){const _0x20c9bb=_0x43fb57,_0x56f894=this[_0x20c9bb(0x26d)][_0x20c9bb(0x24b)][_0x20c9bb(0x25f)](_0x20c9bb(0x1eb));let _0x4accdd=this[_0x20c9bb(0x26d)][_0x20c9bb(0x295)][_0x20c9bb(0x27a)](_0x20c9bb(0x254))||[..._0x23f941];_0x56f894||(_0x4accdd=_0x4accdd[_0x20c9bb(0x237)](_0x32975b=>_0x20c9bb(0x29c)!=_0x32975b));const _0xd91dbb=this[_0x20c9bb(0x26d)][_0x20c9bb(0x1f4)][_0x20c9bb(0x27a)](_0x20c9bb(0x1e5)),_0x2a628d=new _0x5eedac(this[_0x20c9bb(0x26d)][_0x20c9bb(0x1da)],{'showApplyButton':!0x0,'showSuggestButton':_0x56f894,'miniToolbarConfig':{'showChanges':_0x20c9bb(0x278)},'availableActions':_0x4accdd});return _0x2a628d[_0x20c9bb(0x271)](_0x20c9bb(0x27e))['to'](this),_0xd91dbb&&_0x2a628d[_0x20c9bb(0x271)](_0x20c9bb(0x23a))['to'](_0xd91dbb,_0x20c9bb(0x22a)),_0x2a628d['on'](_0x20c9bb(0x2b0),()=>{const _0x47db63=_0x20c9bb;this[_0x47db63(0x203)]();}),_0x2a628d['on'](_0x20c9bb(0x27c),()=>{const _0x1730e4=_0x20c9bb;this[_0x1730e4(0x2a7)]();}),_0x2a628d['on'](_0x20c9bb(0x27f),()=>{const _0x175074=_0x20c9bb;this[_0x175074(0x1e6)]();}),_0x2a628d;}[_0x43fb57(0x25b)](){const _0x19dcff=_0x43fb57,_0x22efb9=this[_0x19dcff(0x26d)][_0x19dcff(0x25c)][_0x19dcff(0x2ad)][_0x19dcff(0x281)];if(_0x22efb9[_0x19dcff(0x2ab)]){const _0x31013b=_0x55212f(_0x22efb9[_0x19dcff(0x1e2)]())||this[_0x19dcff(0x26d)][_0x19dcff(0x25c)][_0x19dcff(0x206)][_0x19dcff(0x1ec)](_0x22efb9);this[_0x19dcff(0x26d)][_0x19dcff(0x25c)][_0x19dcff(0x270)](_0x378111=>{const _0xef863=_0x19dcff;_0x378111[_0xef863(0x266)](_0x31013b,'in');});}const _0x22a9bc=_0x22efb9[_0x19dcff(0x2a5)](),_0x113c3b=this[_0x19dcff(0x215)](this[_0x19dcff(0x26d)][_0x19dcff(0x25c)][_0x19dcff(0x20b)](_0x22efb9),_0x22a9bc[_0x19dcff(0x23f)],_0x22a9bc[_0x19dcff(0x248)]);this[_0x19dcff(0x207)](_0x113c3b,_0x22efb9,{'isTableSelection':!0x1});const _0x50c435=_0x22efb9[_0x19dcff(0x2a5)]()[_0x19dcff(0x23f)],_0x510507=new Map();let _0x4521dc=_0x113c3b;for(let _0xef848f=0x0;_0xef848f<_0x50c435[_0x19dcff(0x267)][_0x19dcff(0x1f5)];_0xef848f++)_0x510507[_0x19dcff(0x269)](_0x4521dc,_0x50c435[_0x19dcff(0x267)][_0xef848f]),_0x4521dc=_0x4521dc[_0x19dcff(0x24a)](0x0);return{'modelFragment':_0x113c3b,'anchorData':_0x510507};}[_0x43fb57(0x287)](){const _0x22d248=_0x43fb57,_0xfce6c3=this[_0x22d248(0x26d)][_0x22d248(0x25c)][_0x22d248(0x2ad)][_0x22d248(0x281)],_0x474aad=this[_0x22d248(0x26d)][_0x22d248(0x24b)][_0x22d248(0x27a)](_0x22d248(0x227))[_0x22d248(0x201)](),_0x5492fb=_0xfce6c3[_0x22d248(0x2a5)]()[_0x22d248(0x23f)][_0x22d248(0x202)][_0x22d248(0x202)],_0x1d642b=this[_0x22d248(0x26d)][_0x22d248(0x25c)][_0x22d248(0x252)](this[_0x22d248(0x26d)][_0x22d248(0x25c)][_0x22d248(0x1e8)](_0x5492fb),this[_0x22d248(0x26d)][_0x22d248(0x25c)][_0x22d248(0x294)](_0x5492fb)),_0x281f8c=this[_0x22d248(0x215)](_0x474aad,_0x1d642b[_0x22d248(0x23f)],_0x1d642b[_0x22d248(0x248)]);this[_0x22d248(0x207)](_0x281f8c,_0xfce6c3,{'isTableSelection':!0x0});const _0x561392=_0xfce6c3[_0x22d248(0x2a5)]()[_0x22d248(0x23f)],_0x23b5a2=new Map();let _0x2888c3=_0x281f8c;for(let _0x8cb2c8=0x0;_0x8cb2c8<_0x561392[_0x22d248(0x267)][_0x22d248(0x1f5)];_0x8cb2c8++)if(_0x23b5a2[_0x22d248(0x269)](_0x2888c3,_0x561392[_0x22d248(0x267)][_0x8cb2c8]),_0x8cb2c8<_0x561392[_0x22d248(0x267)][_0x22d248(0x1f5)]-0x1)_0x2888c3=_0x2888c3[_0x22d248(0x24a)](0x0);else{let _0x1b3059=_0x2888c3[_0x22d248(0x283)];for(;_0x1b3059;)_0x23b5a2[_0x22d248(0x269)](_0x1b3059,_0x561392[_0x22d248(0x267)][_0x8cb2c8]),_0x1b3059=_0x1b3059[_0x22d248(0x283)];}return{'modelFragment':_0x281f8c,'anchorData':_0x23b5a2};}async[_0x43fb57(0x1f7)](_0x5cc704,_0x316238,_0x4a18a5,_0x2e227f,_0xbc5844){const _0x28f43f=_0x43fb57,_0x290e21=this[_0x28f43f(0x26d)][_0x28f43f(0x24b)][_0x28f43f(0x27a)](_0x342b6a),_0x2200e3=this[_0x28f43f(0x26d)][_0x28f43f(0x24b)][_0x28f43f(0x27a)](_0x3da172),_0x4e013a=this[_0x28f43f(0x26d)][_0x28f43f(0x25c)][_0x28f43f(0x2ad)][_0x28f43f(0x281)],_0x146fc5=await _0x290e21[_0x28f43f(0x245)](_0x316238),_0x223c2a=this[_0x28f43f(0x26d)][_0x28f43f(0x25c)][_0x28f43f(0x2ad)][_0x28f43f(0x284)],_0x57564c=[..._0x4e013a[_0x28f43f(0x2a0)]()];return this[_0x28f43f(0x218)]||(this[_0x28f43f(0x218)]=this[_0x28f43f(0x223)]()),this[_0x28f43f(0x2b4)](),this[_0x28f43f(0x26e)](),this[_0x28f43f(0x218)][_0x28f43f(0x1f2)](),_0x2200e3[_0x28f43f(0x212)]({'index':0x3e8*Math[_0x28f43f(0x21d)]()%0x3e8,'title':_0x2e227f,'icon':_0xbc5844||_0x5e669c,'mainView':this[_0x28f43f(0x218)],'class':_0x28f43f(0x23d),'ranges':_0x57564c,'id':_0x28f43f(0x208)}),this[_0x28f43f(0x2b2)](),this[_0x28f43f(0x2af)](this[_0x28f43f(0x218)]),this[_0x28f43f(0x2af)](_0x2200e3),this[_0x28f43f(0x268)]={'action':_0x5cc704,'content':_0x146fc5,'version':_0x223c2a,'aiBalloon':_0x2200e3,'modelFragment':_0x316238,'anchorData':_0x4a18a5},this[_0x28f43f(0x27d)](),this[_0x28f43f(0x235)](_0x2200e3,_0x28f43f(0x1f3),()=>{const _0x3c7b65=_0x28f43f;this[_0x3c7b65(0x229)](),this[_0x3c7b65(0x218)][_0x3c7b65(0x28f)]();}),this[_0x28f43f(0x235)](_0x2200e3,_0x28f43f(0x28a),(_0x4e2daf,{id:_0x9d2394})=>{const _0x5e4c26=_0x28f43f;if(_0x5e4c26(0x208)===_0x9d2394){if(this[_0x5e4c26(0x288)]&&this[_0x5e4c26(0x288)][_0x5e4c26(0x244)][_0x5e4c26(0x1f5)]>0x0){const _0x15cae3=this[_0x5e4c26(0x288)][_0x5e4c26(0x244)][this[_0x5e4c26(0x288)][_0x5e4c26(0x244)][_0x5e4c26(0x1f5)]-0x1],_0x1fab42=_0x15cae3[_0x5e4c26(0x28e)][0x0];_0x1fab42&&_0x5e4c26(0x239)===_0x1fab42[_0x5e4c26(0x20d)]&&_0x15cae3[_0x5e4c26(0x279)](0x0,_0x5e4c26(0x1ed));}this[_0x5e4c26(0x229)](),this[_0x5e4c26(0x2b4)](),this[_0x5e4c26(0x2af)](this[_0x5e4c26(0x218)]),this[_0x5e4c26(0x2af)](_0x2200e3);}}),this[_0x28f43f(0x1f8)](_0x146fc5,_0x223c2a,_0x2200e3,_0x5cc704);}[_0x43fb57(0x27d)](){const _0x2d2a66=_0x43fb57;if(!this[_0x2d2a66(0x268)])return;const {modelFragment:_0x27aa04,anchorData:_0x3da981}=this[_0x2d2a66(0x268)];this[_0x2d2a66(0x235)](this[_0x2d2a66(0x218)],_0x2d2a66(0x20e),()=>{const _0x46f0c6=_0x2d2a66;this[_0x46f0c6(0x238)](_0x27aa04,_0x3da981,!0x1);}),this[_0x2d2a66(0x235)](this[_0x2d2a66(0x218)],_0x2d2a66(0x29c),()=>{const _0x1e7c0b=_0x2d2a66;this[_0x1e7c0b(0x238)](_0x27aa04,_0x3da981,!0x0);});}[_0x43fb57(0x215)](_0x3885d8,_0x4789c3,_0x1b2d2d){const _0x140621=_0x43fb57,_0x722863=this[_0x140621(0x26d)][_0x140621(0x25c)][_0x140621(0x252)](_0x4789c3,_0x1b2d2d)[_0x140621(0x286)](),_0x36717f=_0x722863['is'](_0x140621(0x26f))?[]:_0x722863[_0x140621(0x258)]({'includeSelf':!0x0})[_0x140621(0x204)](0x1);if(_0x36717f[_0x140621(0x1f5)]){const _0x54f303=_0x36717f[_0x140621(0x21c)](_0x42b87f=>_0x42b87f[_0x140621(0x2a9)](!0x1));for(let _0x3206dc=0x1;_0x3206dc<_0x54f303[_0x140621(0x1f5)];_0x3206dc++)_0x54f303[_0x3206dc-0x1][_0x140621(0x200)](_0x54f303[_0x3206dc]);return _0x54f303[_0x54f303[_0x140621(0x1f5)]-0x1][_0x140621(0x200)](_0x3885d8),new _0x251fab(_0x54f303[0x0]);}return _0x3885d8;}[_0x43fb57(0x207)](_0x47b52e,_0x5749ea,_0xa88b93={'isTableSelection':!0x1}){const _0x473648=_0x43fb57,_0x2052d5=this[_0x473648(0x26d)][_0x473648(0x25c)],_0x4cbd21=Array[_0x473648(0x21f)](_0x5749ea[_0x473648(0x2a0)]()),_0x159cf4=_0x5749ea[_0x473648(0x2a5)]()[_0x473648(0x23f)];for(const _0x33778c of _0x2052d5[_0x473648(0x20a)]){if(_0x33778c[_0x473648(0x1fa)][_0x473648(0x262)](_0x13293d)||!_0x33778c[_0x473648(0x231)])continue;const _0x136479=_0x33778c[_0x473648(0x274)]();if(!_0x4cbd21[_0x473648(0x1ef)](_0x44098c=>_0x44098c[_0x473648(0x220)](_0x136479,!0x0)))continue;const _0x44730c=this[_0x473648(0x1de)](_0x136479[_0x473648(0x23f)],_0x159cf4,_0xa88b93[_0x473648(0x22d)]),_0x3b496d=this[_0x473648(0x1de)](_0x136479[_0x473648(0x248)],_0x159cf4,_0xa88b93[_0x473648(0x22d)]),_0x14cf0c=_0x2052d5[_0x473648(0x26b)](_0x47b52e,_0x44730c),_0x12211b=_0x2052d5[_0x473648(0x26b)](_0x47b52e,_0x3b496d);if(!_0x14cf0c[_0x473648(0x24d)](_0x12211b)){const _0x360bdb=_0x2052d5[_0x473648(0x252)](_0x14cf0c,_0x12211b);_0x47b52e[_0x473648(0x20a)][_0x473648(0x269)](_0x33778c[_0x473648(0x1fa)],_0x360bdb);}}}[_0x43fb57(0x1de)](_0x5a8585,_0x30d962,_0x1f9d3f=!0x1){const _0x5b4b7f=_0x43fb57,_0x326465=[..._0x5a8585[_0x5b4b7f(0x267)][_0x5b4b7f(0x204)]()];for(let _0xf5ff8d=0x0;_0xf5ff8d<Math[_0x5b4b7f(0x21e)](_0x30d962[_0x5b4b7f(0x267)][_0x5b4b7f(0x1f5)],_0x5a8585[_0x5b4b7f(0x267)][_0x5b4b7f(0x1f5)]);_0xf5ff8d++){const _0x7d22bd=_0x30d962[_0x5b4b7f(0x267)][_0xf5ff8d]||0x0,_0x4cb2ad=(_0x5a8585[_0x5b4b7f(0x267)][_0xf5ff8d]||0x0)-_0x7d22bd;if(_0x326465[_0xf5ff8d]=_0x4cb2ad,0x0!==_0x4cb2ad&&!_0x1f9d3f)break;}return _0x326465;}async[_0x43fb57(0x1f8)](_0x269618,_0x4769c2,_0x3f71f5,_0x422e0c){const _0x428a60=_0x43fb57,_0x34d371=this[_0x428a60(0x26d)];this[_0x428a60(0x268)]||(this[_0x428a60(0x268)]={'action':_0x422e0c,'content':_0x269618,'version':_0x4769c2,'aiBalloon':_0x3f71f5,'modelFragment':this[_0x428a60(0x26d)][_0x428a60(0x25c)][_0x428a60(0x20b)](this[_0x428a60(0x26d)][_0x428a60(0x25c)][_0x428a60(0x2ad)][_0x428a60(0x281)]),'anchorData':new Map()});const _0x5b6a25=new _0x203a12({'connector':this[_0x428a60(0x216)],'editor':_0x34d371,'content':_0x269618,'version':_0x4769c2,..._0x422e0c});this[_0x428a60(0x24e)][_0x428a60(0x289)](_0x5b6a25);const _0x311c80=(_0x468a97,_0x5bb7b1=!0x1,_0x35a793=_0x428a60(0x249))=>this[_0x428a60(0x1f1)][_0x428a60(0x24c)](async _0x27b994=>{const _0x217ad6=_0x428a60;try{const _0x102c8b=_0x44649d({'editor':_0x34d371,'changeGroups':_0x468a97[_0x217ad6(0x28e)],'documentContextContent':_0x468a97[_0x217ad6(0x1f6)],'showDiff':_0x5bb7b1,'trimUnchanged':!0x1});_0x102c8b[_0x217ad6(0x1f5)]&&await this[_0x217ad6(0x218)][_0x217ad6(0x1e4)]({'part':_0x102c8b[0x0],'renderingStrategy':_0x35a793,'abortSignal':_0x27b994});}catch(_0x11a62d){if(this[_0x217ad6(0x224)](_0x11a62d))return;throw _0x11a62d;}});this[_0x428a60(0x288)]['on'](_0x428a60(0x250),(_0x45d23e,_0x231630)=>{const _0x58dfc1=_0x428a60;this[_0x58dfc1(0x218)][_0x58dfc1(0x272)](),this[_0x58dfc1(0x218)][_0x58dfc1(0x1e1)](),_0x311c80(_0x231630)[_0x58dfc1(0x291)](_0x35157f=>{const _0x50cd25=_0x58dfc1;this[_0x50cd25(0x224)](_0x35157f)||(console[_0x50cd25(0x2b3)](_0x50cd25(0x1dc),_0x35157f),this[_0x50cd25(0x28c)](_0x5b6a25));});}),this[_0x428a60(0x288)]['on'](_0x428a60(0x1fc),(_0x585f3b,_0x63c02d)=>{const _0x471edc=_0x428a60;_0x311c80(_0x63c02d)[_0x471edc(0x291)](_0x1f4e8f=>{const _0x5c8558=_0x471edc;this[_0x5c8558(0x224)](_0x1f4e8f)||(console[_0x5c8558(0x2b3)](_0x5c8558(0x2a3),_0x1f4e8f),this[_0x5c8558(0x28c)](_0x5b6a25));});}),this[_0x428a60(0x288)]['on'](_0x428a60(0x22c),async()=>{const _0x2318ed=_0x428a60;try{await this[_0x2318ed(0x25a)](),this[_0x2318ed(0x218)][_0x2318ed(0x23c)](this[_0x2318ed(0x24e)][_0x2318ed(0x1f5)],this[_0x2318ed(0x210)]),await this[_0x2318ed(0x1f1)][_0x2318ed(0x260)];}catch(_0x34a7b3){this[_0x2318ed(0x224)](_0x34a7b3)||(console[_0x2318ed(0x2b3)](_0x2318ed(0x285),_0x34a7b3),this[_0x2318ed(0x28c)](_0x5b6a25));}finally{this[_0x2318ed(0x218)][_0x2318ed(0x22e)]();}}),this[_0x428a60(0x235)](this[_0x428a60(0x218)],_0x428a60(0x27b),async(_0x5d5025,{showDiff:_0x4b0ae2})=>{const _0x88a18b=_0x428a60;try{this[_0x88a18b(0x26c)]=_0x4b0ae2;const _0xb29d44=this[_0x88a18b(0x288)][_0x88a18b(0x244)][this[_0x88a18b(0x288)][_0x88a18b(0x244)][_0x88a18b(0x1f5)]-0x1];_0xb29d44&&await _0x311c80(_0xb29d44,_0x4b0ae2,_0x88a18b(0x222));}catch(_0x1d5550){this[_0x88a18b(0x224)](_0x1d5550)||(console[_0x88a18b(0x2b3)](_0x88a18b(0x251),_0x1d5550),this[_0x88a18b(0x28c)](_0x5b6a25));}}),this[_0x428a60(0x288)]['on'](_0x428a60(0x209),(_0x559f76,{reply:_0x16a846})=>{const _0x528325=_0x428a60,_0x2dd9a0={'positiveCount':_0x16a846[_0x528325(0x28e)][_0x528325(0x237)](_0x129a64=>_0x528325(0x1ee)===_0x129a64[_0x528325(0x20d)])[_0x528325(0x1f5)],'totalCount':_0x16a846[_0x528325(0x28e)][_0x528325(0x1f5)]},_0x5f2273=this[_0x528325(0x288)][_0x528325(0x243)],_0x39c276=this[_0x528325(0x288)][_0x528325(0x217)];_0x39c276?this[_0x528325(0x216)][_0x528325(0x2b7)](_0x39c276,_0x5f2273,_0x2dd9a0):this[_0x528325(0x216)][_0x528325(0x1e3)](_0x5f2273,_0x2dd9a0);}),this[_0x428a60(0x2b2)]();try{const _0x48cd1e=await this[_0x428a60(0x288)][_0x428a60(0x23f)]();return this[_0x428a60(0x218)][_0x428a60(0x23c)](this[_0x428a60(0x24e)][_0x428a60(0x1f5)],this[_0x428a60(0x210)]),_0x48cd1e;}catch(_0x1bd798){if(this[_0x428a60(0x224)](_0x1bd798))return;this[_0x428a60(0x218)][_0x428a60(0x272)](),this[_0x428a60(0x28c)](_0x5b6a25);}}[_0x43fb57(0x238)](_0x4cb751,_0x14723a,_0x48c11f){const _0x4aa8fc=_0x43fb57,_0x1fffb9=this[_0x4aa8fc(0x26d)];if(_0x48c11f&&!_0x1fffb9[_0x4aa8fc(0x24b)][_0x4aa8fc(0x25f)](_0x4aa8fc(0x1eb)))throw new _0xb6715a(_0x4aa8fc(0x20c),null);const _0x156062=this[_0x4aa8fc(0x26d)][_0x4aa8fc(0x24b)][_0x4aa8fc(0x27a)](_0x330f11),_0x206ba5=this[_0x4aa8fc(0x24e)][this[_0x4aa8fc(0x24e)][_0x4aa8fc(0x1f5)]-0x1-this[_0x4aa8fc(0x210)]];if(!_0x206ba5||!_0x206ba5[_0x4aa8fc(0x244)][_0x4aa8fc(0x1f5)])return;const _0x5221f5=_0x206ba5[_0x4aa8fc(0x244)][_0x206ba5[_0x4aa8fc(0x244)][_0x4aa8fc(0x1f5)]-0x1],_0x5c29c2=_0x5221f5[_0x4aa8fc(0x28e)];_0x5221f5[_0x4aa8fc(0x279)](0x0,_0x4aa8fc(0x1ee));let _0x5b064c=_0x11bc66({'editor':_0x1fffb9,'reply':_0x5221f5,'interaction':_0x206ba5,'groups':_0x5c29c2,'transform':!0x1,'documentCompare':_0x156062,'documentCompareOptions':{'anchor':_0x1fffb9[_0x4aa8fc(0x25c)][_0x4aa8fc(0x273)](_0x4cb751,0x0),'markDeletions':_0x48c11f}});_0x5b064c=this[_0x4aa8fc(0x255)](_0x5b064c,_0x14723a);for(const _0x581255 of _0x5b064c)this[_0x4aa8fc(0x277)](_0x14723a,_0x581255,_0x1fffb9[_0x4aa8fc(0x25c)][_0x4aa8fc(0x2ad)][_0x4aa8fc(0x29f)]());const _0xf29853=_0x206ba5[_0x4aa8fc(0x24f)]()[_0x4aa8fc(0x284)],_0x578521=_0x1fffb9[_0x4aa8fc(0x25c)][_0x4aa8fc(0x2ad)][_0x4aa8fc(0x247)][_0x4aa8fc(0x299)](_0xf29853),_0x408692={'document':_0x1fffb9[_0x4aa8fc(0x25c)][_0x4aa8fc(0x2ad)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x234099=_0x4d55f4(_0x5b064c,_0x578521,_0x408692)[_0x4aa8fc(0x290)];_0x1fffb9[_0x4aa8fc(0x25c)][_0x4aa8fc(0x270)](_0x1bf916=>{const _0x338e1b=_0x4aa8fc;if(_0x1bf916[_0x338e1b(0x266)](_0x1fffb9[_0x338e1b(0x25c)][_0x338e1b(0x2ad)][_0x338e1b(0x281)][_0x338e1b(0x28d)]),_0x48c11f)_0x1fffb9[_0x338e1b(0x24b)][_0x338e1b(0x27a)](_0x338e1b(0x25d))[_0x338e1b(0x23e)](_0x234099);else{for(const _0x2d4895 of _0x234099)_0x2d4895[_0x338e1b(0x2a4)]=_0x1fffb9[_0x338e1b(0x25c)][_0x338e1b(0x2ad)][_0x338e1b(0x284)],_0x1e6e1d(_0x1fffb9,_0x2d4895),_0x1bf916[_0x338e1b(0x20f)][_0x338e1b(0x22b)](_0x2d4895),_0x1fffb9[_0x338e1b(0x25c)][_0x338e1b(0x280)](_0x2d4895);}}),this[_0x4aa8fc(0x26d)][_0x4aa8fc(0x24b)][_0x4aa8fc(0x27a)](_0x4aa8fc(0x236))[_0x4aa8fc(0x1f0)]();}[_0x43fb57(0x255)](_0x5210ae,_0x176f83){const _0x504a8a=_0x43fb57;return _0x5210ae[_0x504a8a(0x237)](_0x1e119d=>{const _0x18f57b=_0x504a8a;if(_0x18f57b(0x1fb)==_0x1e119d[_0x18f57b(0x1e9)]){const _0x1be8f2=_0x1e119d[_0x18f57b(0x263)][_0x18f57b(0x21b)];return!_0x176f83[_0x18f57b(0x25f)](_0x1be8f2);}if(_0x1e119d[_0x18f57b(0x1e9)][_0x18f57b(0x1e7)](_0x18f57b(0x29a))>-0x1){const _0x434ba2=_0x1e119d[_0x18f57b(0x240)][_0x18f57b(0x23f)][_0x18f57b(0x21b)];return!_0x176f83[_0x18f57b(0x25f)](_0x434ba2);}return!0x0;});}[_0x43fb57(0x277)](_0x1cdb5b,_0x2ad6cb,_0x103e5b){const _0x3e9add=_0x43fb57,_0x296f86=_0x2ad6cb[_0x3e9add(0x297)]();for(const _0x16f2fb in _0x2ad6cb){const _0x465c1b=_0x2ad6cb[_0x16f2fb];_0x465c1b instanceof _0x58a0ef?_0x2ad6cb[_0x16f2fb]=new _0x58a0ef(_0x3bb0b8(_0x465c1b[_0x3e9add(0x23f)]),_0x3bb0b8(_0x465c1b[_0x3e9add(0x248)])):_0x465c1b instanceof _0x514dc0&&(_0x2ad6cb[_0x16f2fb]=_0x3bb0b8(_0x465c1b));}if([_0x3e9add(0x23b),_0x3e9add(0x22f),_0x3e9add(0x29e),_0x3e9add(0x225),_0x3e9add(0x259),_0x3e9add(0x219)][_0x3e9add(0x246)](_0x296f86[_0x3e9add(0x1e9)])){if(_0x296f86[_0x3e9add(0x241)]=!0x1,_0x296f86[_0x3e9add(0x2a4)]=null,_0x3e9add(0x29e)==_0x296f86[_0x3e9add(0x1e9)]){const _0x1f4414=_0x296f86[_0x3e9add(0x232)],_0x21bbdb=_0x296f86[_0x3e9add(0x2a6)];new _0x4f12e9(_0x1f4414,_0x21bbdb)[_0x3e9add(0x1fd)]();}else _0x296f86[_0x3e9add(0x1fd)]();}function _0x3bb0b8(_0x40237c){const _0x398e0c=_0x3e9add;if(_0x398e0c(0x28b)==_0x40237c[_0x398e0c(0x264)][_0x398e0c(0x257)])return _0x40237c;const _0x2bbb79=[];let _0x5226ba=_0x40237c[_0x398e0c(0x264)];for(let _0x250ade=0x0;_0x250ade<_0x40237c[_0x398e0c(0x267)][_0x398e0c(0x1f5)];_0x250ade++){const _0x2baecd=_0x1cdb5b[_0x398e0c(0x27a)](_0x5226ba)||0x0;_0x2bbb79[_0x250ade]=_0x40237c[_0x398e0c(0x267)][_0x250ade]+_0x2baecd,_0x5226ba=_0x5226ba[_0x398e0c(0x213)](_0x40237c[_0x398e0c(0x267)][_0x250ade]);}return new _0x514dc0(_0x103e5b,_0x2bbb79,_0x40237c[_0x398e0c(0x1db)]);}}[_0x43fb57(0x203)](){const _0x5a39f2=_0x43fb57;if(!this[_0x5a39f2(0x268)])return;this[_0x5a39f2(0x24e)][_0x5a39f2(0x1f5)]>0x0&&this[_0x5a39f2(0x229)](),this[_0x5a39f2(0x210)]=0x0,this[_0x5a39f2(0x26c)]=!0x1;const {action:_0x50b840,content:_0x16000f,version:_0x497583,aiBalloon:_0x5863c9}=this[_0x5a39f2(0x268)];this[_0x5a39f2(0x26e)](),this[_0x5a39f2(0x218)][_0x5a39f2(0x1f2)](),this[_0x5a39f2(0x218)][_0x5a39f2(0x256)](),this[_0x5a39f2(0x218)][_0x5a39f2(0x226)](),this[_0x5a39f2(0x218)][_0x5a39f2(0x23c)](this[_0x5a39f2(0x24e)][_0x5a39f2(0x1f5)],this[_0x5a39f2(0x210)]),this[_0x5a39f2(0x2af)](this[_0x5a39f2(0x218)]),this[_0x5a39f2(0x27d)](),this[_0x5a39f2(0x1f8)](_0x16000f,_0x497583,_0x5863c9,_0x50b840)[_0x5a39f2(0x291)](_0x1b0921=>{const _0x177f19=_0x5a39f2;this[_0x177f19(0x224)](_0x1b0921)||console[_0x177f19(0x2b3)](_0x177f19(0x2a2),_0x1b0921);});}[_0x43fb57(0x224)](_0x56a5e5){const _0x26b3bd=_0x43fb57;return!!_0x56a5e5[_0x26b3bd(0x2b5)]&&_0x56a5e5[_0x26b3bd(0x2b5)][_0x26b3bd(0x262)](_0x26b3bd(0x276));}[_0x43fb57(0x2b4)](){const _0xcc3b40=_0x43fb57;this[_0xcc3b40(0x24e)]=[],this[_0xcc3b40(0x268)]=void 0x0,this[_0xcc3b40(0x210)]=0x0,this[_0xcc3b40(0x218)][_0xcc3b40(0x23c)](this[_0xcc3b40(0x24e)][_0xcc3b40(0x1f5)],this[_0xcc3b40(0x210)]);}[_0x43fb57(0x229)](){const _0x31684f=_0x43fb57;this[_0x31684f(0x288)]&&this[_0x31684f(0x288)][_0x31684f(0x2a8)](),this[_0x31684f(0x1f1)][_0x31684f(0x242)](),this[_0x31684f(0x27e)]=!0x1,this[_0x31684f(0x268)]&&this[_0x31684f(0x218)][_0x31684f(0x22e)]();}[_0x43fb57(0x2a7)](){const _0x41cbb8=_0x43fb57,_0x475771=this[_0x41cbb8(0x24e)][_0x41cbb8(0x1f5)];this[_0x41cbb8(0x210)]<_0x475771-0x1&&this[_0x41cbb8(0x1df)](this[_0x41cbb8(0x210)]+0x1);}[_0x43fb57(0x1e6)](){const _0x13c615=_0x43fb57;this[_0x13c615(0x210)]>0x0&&this[_0x13c615(0x1df)](this[_0x13c615(0x210)]-0x1);}async[_0x43fb57(0x1df)](_0x4d4e76){const _0x49e0c3=_0x43fb57;if(!this[_0x49e0c3(0x268)])return;this[_0x49e0c3(0x210)]=_0x4d4e76;const _0x296b2f=this[_0x49e0c3(0x24e)][this[_0x49e0c3(0x24e)][_0x49e0c3(0x1f5)]-0x1-this[_0x49e0c3(0x210)]];if(!_0x296b2f)return;if(_0x296b2f[_0x49e0c3(0x296)])return this[_0x49e0c3(0x28c)](_0x296b2f),void this[_0x49e0c3(0x218)][_0x49e0c3(0x23c)](this[_0x49e0c3(0x24e)][_0x49e0c3(0x1f5)],this[_0x49e0c3(0x210)]);if(!_0x296b2f[_0x49e0c3(0x244)][_0x49e0c3(0x1f5)])return;this[_0x49e0c3(0x218)][_0x49e0c3(0x261)](),this[_0x49e0c3(0x268)]&&this[_0x49e0c3(0x26e)]();const _0xa7c9ae=_0x296b2f[_0x49e0c3(0x244)][_0x296b2f[_0x49e0c3(0x244)][_0x49e0c3(0x1f5)]-0x1];if(_0xa7c9ae){const _0x28898a=this[_0x49e0c3(0x26d)];try{const _0x2fe706=_0x44649d({'editor':_0x28898a,'changeGroups':_0xa7c9ae[_0x49e0c3(0x28e)],'documentContextContent':_0xa7c9ae[_0x49e0c3(0x1f6)],'showDiff':this[_0x49e0c3(0x26c)],'trimUnchanged':!0x1});await new Promise(_0xf4269e=>setTimeout(_0xf4269e,0x32)),await this[_0x49e0c3(0x218)][_0x49e0c3(0x1e4)]({'part':_0x2fe706[0x0],'renderingStrategy':_0x49e0c3(0x222),'abortSignal':new AbortController()[_0x49e0c3(0x2b1)]});}catch(_0xc0c080){this[_0x49e0c3(0x224)](_0xc0c080)||console[_0x49e0c3(0x2b3)](_0x49e0c3(0x234),_0xc0c080);}}this[_0x49e0c3(0x218)][_0x49e0c3(0x23c)](this[_0x49e0c3(0x24e)][_0x49e0c3(0x1f5)],this[_0x49e0c3(0x210)]);}[_0x43fb57(0x2b2)](){const _0x1a5533=_0x43fb57;this[_0x1a5533(0x218)][_0x1a5533(0x214)](!0x0),this[_0x1a5533(0x27e)]=!0x0;}async[_0x43fb57(0x28c)](_0x16f282){const _0x22566d=_0x43fb57,_0x4d8b4a=_0x2d45ca(this[_0x22566d(0x26d)][_0x22566d(0x1da)],_0x22566d(0x1fe));this[_0x22566d(0x218)][_0x22566d(0x29d)](_0x4d8b4a),_0x16f282[_0x22566d(0x296)]=!0x0,await this[_0x22566d(0x1f1)][_0x22566d(0x260)],this[_0x22566d(0x218)][_0x22566d(0x21a)](),this[_0x22566d(0x218)][_0x22566d(0x253)](!0x0);}[_0x43fb57(0x26e)](){const _0x3cb0a6=_0x43fb57;this[_0x3cb0a6(0x218)][_0x3cb0a6(0x261)](),this[_0x3cb0a6(0x218)][_0x3cb0a6(0x253)](!0x1);}async[_0x43fb57(0x25a)](){const _0xb97599=_0x43fb57;await this[_0xb97599(0x1f1)][_0xb97599(0x260)],this[_0xb97599(0x27e)]=!0x1,this[_0xb97599(0x218)][_0xb97599(0x214)](!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x203015=_0xb2a3;(function(_0x5e501d,_0x35d3d1){const _0x2bde75=_0xb2a3,_0x5ca9e0=_0x5e501d();while(!![]){try{const _0x4067ee=-parseInt(_0x2bde75(0xcc))/0x1+-parseInt(_0x2bde75(0xb9))/0x2*(-parseInt(_0x2bde75(0xc7))/0x3)+-parseInt(_0x2bde75(0xca))/0x4*(-parseInt(_0x2bde75(0xc9))/0x5)+-parseInt(_0x2bde75(0xbe))/0x6+parseInt(_0x2bde75(0xc0))/0x7*(-parseInt(_0x2bde75(0xce))/0x8)+parseInt(_0x2bde75(0xb3))/0x9*(parseInt(_0x2bde75(0xba))/0xa)+parseInt(_0x2bde75(0xcb))/0xb;if(_0x4067ee===_0x35d3d1)break;else _0x5ca9e0['push'](_0x5ca9e0['shift']());}catch(_0x1322e4){_0x5ca9e0['push'](_0x5ca9e0['shift']());}}}(_0x1fcc,0x6bd0f));import{AIInteraction as _0x414532,AI_MODEL_EVENT_NAMES as _0x2f0ff2}from'../../aicore/model/aiinteraction.js';function _0xb2a3(_0x29a50c,_0x148fa6){const _0x1fcc4e=_0x1fcc();return _0xb2a3=function(_0xb2a365,_0xc97cd5){_0xb2a365=_0xb2a365-0xb1;let _0x209e30=_0x1fcc4e[_0xb2a365];return _0x209e30;},_0xb2a3(_0x29a50c,_0x148fa6);}function _0x1fcc(){const _0x2f1afb=['editor','889530suSycP','Current\x20document','21aSqxLN','fire','TEXT','args','createReply','executeAction','hasError','855xSQaUN','content','2435LiPizc','2596jlGRDm','8468559aMAacj','864691LFXaOe','html','2038824WGBvto','current-document','getDocumentContext','actionName','delegate','replyCreated','replies','5886927URjLLW','executeCustomAction','push','sendRequest','userMessage','version','3362UagflY','10yVPJrz','connector','model'];_0x1fcc=function(){return _0x2f1afb;};return _0x1fcc();}import{AIContextItemType as _0x1c03ce}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x56994f}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x414532{[_0x203015(0xc8)];[_0x203015(0xb8)];[_0x203015(0xd1)];[_0x203015(0xc3)];[_0x203015(0xb7)];[_0x203015(0xbc)];[_0x203015(0xc6)]=!0x1;constructor(_0x4a7fe6){const _0x43aae1=_0x203015;super(_0x4a7fe6),this[_0x43aae1(0xc8)]=_0x4a7fe6[_0x43aae1(0xc8)],this[_0x43aae1(0xb8)]=_0x4a7fe6[_0x43aae1(0xb8)],this[_0x43aae1(0xd1)]=_0x4a7fe6[_0x43aae1(0xd1)],this[_0x43aae1(0xc3)]=_0x4a7fe6[_0x43aae1(0xc3)],this[_0x43aae1(0xb7)]=_0x4a7fe6[_0x43aae1(0xb7)],this[_0x43aae1(0xbc)]=_0x4a7fe6[_0x43aae1(0xbc)];}async[_0x203015(0xb6)](){const _0x36f543=_0x203015;return this[_0x36f543(0xd1)]?this[_0x36f543(0xbb)][_0x36f543(0xc5)]({'content':this[_0x36f543(0xc8)],'actionName':this[_0x36f543(0xd1)],'args':this[_0x36f543(0xc3)]}):this[_0x36f543(0xbb)][_0x36f543(0xb4)]({'content':this[_0x36f543(0xc8)],'message':this[_0x36f543(0xb7)],'model':this[_0x36f543(0xbc)],'outputFormat':_0x36f543(0xcd)});}[_0x203015(0xd0)](){const _0x129265=_0x203015;return{'type':_0x1c03ce[_0x129265(0xc2)],'content':this[_0x129265(0xc8)],'version':this[_0x129265(0xb8)],'label':_0x129265(0xbf),'uiId':_0x129265(0xcf)};}[_0x203015(0xc4)](_0x5944b2){const _0x228d9c=_0x203015,_0x3df7fc=new _0x56994f({'editor':this[_0x228d9c(0xbd)],'documentContextContent':this[_0x228d9c(0xc8)],..._0x5944b2});return this[_0x228d9c(0xb2)][_0x228d9c(0xb5)](_0x3df7fc),_0x3df7fc[_0x228d9c(0xd2)](..._0x2f0ff2)['to'](this),this[_0x228d9c(0xc1)](_0x228d9c(0xb1),_0x3df7fc),_0x3df7fc;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xa3ac86=_0x5831;(function(_0x2d0372,_0x321abe){const _0x5435ac=_0x5831,_0x2b8748=_0x2d0372();while(!![]){try{const _0x27dc04=parseInt(_0x5435ac(0x1fc))/0x1+-parseInt(_0x5435ac(0x1f1))/0x2+parseInt(_0x5435ac(0x1fa))/0x3+parseInt(_0x5435ac(0x1f0))/0x4*(parseInt(_0x5435ac(0x1ed))/0x5)+-parseInt(_0x5435ac(0x1e7))/0x6*(-parseInt(_0x5435ac(0x200))/0x7)+parseInt(_0x5435ac(0x1ff))/0x8+-parseInt(_0x5435ac(0x1e8))/0x9;if(_0x27dc04===_0x321abe)break;else _0x2b8748['push'](_0x2b8748['shift']());}catch(_0x3d91c7){_0x2b8748['push'](_0x2b8748['shift']());}}}(_0x4fe1,0xb2104));import{AIReply as _0x40fdfe}from'../../aicore/model/aireply.js';function _0x4fe1(){const _0x256eae=['map','children','pop','modified','value','2939301tIlVXe','isDone','1337960PQunwo','removed','node','4934464CdKFdx','14bBNqRd','added','parsedMergedContent','_getDifferentChangeGroups','parsedContent','746094YxXTjX','28470357OtUJme','length','changeGroups','cloneNode','new','255qsOSBZ','data-id','pending','112916hPJnJr','1460382ALxJTE','childNodes','updateChangeGroups','documentContextContent'];_0x4fe1=function(){return _0x256eae;};return _0x4fe1();}import{getAttribute as _0x37690b}from'../../aicore/utils/htmlparser.js';import{uid as _0x140ad2}from'ckeditor5/src/utils.js';import{diffArrays as _0x1c8f2c}from'diff';function _0x5831(_0x549b56,_0x20a6ee){const _0x4fe11f=_0x4fe1();return _0x5831=function(_0x583188,_0x3515b0){_0x583188=_0x583188-0x1e6;let _0x23023b=_0x4fe11f[_0x583188];return _0x23023b;},_0x5831(_0x549b56,_0x20a6ee);}export class AIActionsReply extends _0x40fdfe{[_0xa3ac86(0x1f3)](){const _0x4ced53=_0xa3ac86;if(this[_0x4ced53(0x202)]=this[_0x4ced53(0x1e6)][_0x4ced53(0x1eb)](!0x0),0x0==this[_0x4ced53(0x202)][_0x4ced53(0x1f2)][_0x4ced53(0x1e9)])return void(this[_0x4ced53(0x1ea)]=[]);const _0xefbe1d=this[_0x4ced53(0x1f4)][_0x4ced53(0x1f6)][_0x4ced53(0x1f5)](_0x1d5f92=>({'node':_0x1d5f92,'id':_0x37690b(_0x1d5f92,_0x4ced53(0x1ee))})),_0x13fd68=this[_0x4ced53(0x202)][_0x4ced53(0x1f6)][_0x4ced53(0x1f5)](_0x8a57b1=>({'node':_0x8a57b1,'id':_0x37690b(_0x8a57b1,_0x4ced53(0x1ee))||_0x140ad2()})),_0x5aeb6a=_0x1c8f2c(_0xefbe1d,_0x13fd68,{'comparator':(_0x763c20,_0xc3f57f)=>_0x763c20['id']==_0xc3f57f['id'],'oneChangePerToken':!0x0});if(!this[_0x4ced53(0x1fb)]){for(;_0x5aeb6a[_0x4ced53(0x1e9)]&&_0x5aeb6a[_0x5aeb6a[_0x4ced53(0x1e9)]-0x1][_0x4ced53(0x1fd)];)_0x5aeb6a[_0x4ced53(0x1f7)]();}const _0x546d28=_0x5aeb6a[_0x4ced53(0x1f5)](_0x531081=>{const _0x4e65a0=_0x4ced53,_0x68c694=_0x531081[_0x4e65a0(0x201)]?_0x4e65a0(0x1ec):_0x531081[_0x4e65a0(0x1fd)]?_0x4e65a0(0x1fd):_0x4e65a0(0x1f8);return{'node':_0x531081[_0x4e65a0(0x1f9)][0x0][_0x4e65a0(0x1fe)],'type':_0x68c694,'id':_0x531081[_0x4e65a0(0x1f9)][0x0]['id']};});this[_0x4ced53(0x1ea)]=[{'changes':_0x546d28,'state':_0x4ced53(0x1ef),'index':0x0}];}[_0xa3ac86(0x203)](_0x2e5991,_0x4e2e00){return _0x4e2e00;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x170cec=_0x667b;(function(_0x41c07f,_0x18d9ea){var _0x45d2cd=_0x667b,_0x478b03=_0x41c07f();while(!![]){try{var _0x18fe1d=-parseInt(_0x45d2cd(0x1ed))/0x1+-parseInt(_0x45d2cd(0x1ef))/0x2*(parseInt(_0x45d2cd(0x1e0))/0x3)+parseInt(_0x45d2cd(0x1e5))/0x4+-parseInt(_0x45d2cd(0x1ec))/0x5+parseInt(_0x45d2cd(0x1e9))/0x6+parseInt(_0x45d2cd(0x1e2))/0x7+parseInt(_0x45d2cd(0x1e8))/0x8;if(_0x18fe1d===_0x18d9ea)break;else _0x478b03['push'](_0x478b03['shift']());}catch(_0x7eed88){_0x478b03['push'](_0x478b03['shift']());}}}(_0x872c,0x4fc2c));function _0x872c(){var _0x5349e7=['1245702AeLZZn','aiadapter-text-adapter-not-set','AIAdapter','1729845AAyeIk','445861asEDkj','isPremiumPlugin','2VgPKrC','afterInit','882255JOSlqR','name','1054571HTFBOu','isOfficialPlugin','AIRequestError','680648UfYZqk','textAdapter','pluginName','7073464qmUCmM'];_0x872c=function(){return _0x5349e7;};return _0x872c();}import{Plugin as _0x56ee32}from'ckeditor5/src/core.js';import{CKEditorError as _0x559b9c}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x56ee32{static get[_0x170cec(0x1e7)](){var _0x14e064=_0x170cec;return _0x14e064(0x1eb);}static get[_0x170cec(0x1e3)](){return!0x0;}static get[_0x170cec(0x1ee)](){return!0x0;}[_0x170cec(0x1f0)](){var _0x5235d7=_0x170cec;if(!this[_0x5235d7(0x1e6)])throw new _0x559b9c(_0x5235d7(0x1ea),null);}}function _0x667b(_0xf65d2a,_0x205c78){var _0x872ca7=_0x872c();return _0x667b=function(_0x667b91,_0x4c8580){_0x667b91=_0x667b91-0x1e0;var _0x41b2e6=_0x872ca7[_0x667b91];return _0x41b2e6;},_0x667b(_0xf65d2a,_0x205c78);}export class AIRequestError extends Error{constructor(_0x13029f){var _0x3ad97d=_0x170cec;super(_0x13029f),this[_0x3ad97d(0x1e1)]=_0x3ad97d(0x1e4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4401(){const _0x47cd9e=['resolve','textAdapter','AI_ERROR_GET_HEADERS','init','_prepareRequestParameters','8145355pSlAbk','7542824TdLmoC','catch','14828DedhVG','_prepareRequestHeaders','application/json','sendRequest','1293391MeUkBq','assign','get','1603572UGXXYI','1220racMvy','aitextadapter-send-request-failed','editor','abortController','9dUlsUU','AbortError','plugins','AI_ERROR_GET_PARAMETERS','1406762upEMhX','error','object','name','43857qnUupL','4gAjQyy','makeRequest','signal','reject','requires','aborted','24MrVVri','abort','locale'];_0x4401=function(){return _0x47cd9e;};return _0x4401();}function _0x3cda(_0x123c24,_0x36c502){const _0x4401c4=_0x4401();return _0x3cda=function(_0x3cda64,_0x58feab){_0x3cda64=_0x3cda64-0xea;let _0x4f8123=_0x4401c4[_0x3cda64];return _0x4f8123;},_0x3cda(_0x123c24,_0x36c502);}const _0x2e23b7=_0x3cda;(function(_0x6352c1,_0xdc02a6){const _0x3468d6=_0x3cda,_0xf79157=_0x6352c1();while(!![]){try{const _0x81bb7e=-parseInt(_0x3468d6(0xf0))/0x1+parseInt(_0x3468d6(0xf3))/0x2+parseInt(_0x3468d6(0x100))/0x3+-parseInt(_0x3468d6(0x101))/0x4*(-parseInt(_0x3468d6(0x10f))/0x5)+-parseInt(_0x3468d6(0x107))/0x6*(-parseInt(_0x3468d6(0xfc))/0x7)+parseInt(_0x3468d6(0xea))/0x8*(-parseInt(_0x3468d6(0xf8))/0x9)+parseInt(_0x3468d6(0xf4))/0xa*(-parseInt(_0x3468d6(0xec))/0xb);if(_0x81bb7e===_0xdc02a6)break;else _0xf79157['push'](_0xf79157['shift']());}catch(_0x2c430a){_0xf79157['push'](_0xf79157['shift']());}}}(_0x4401,0xcf300));import{Plugin as _0x5e51e4}from'ckeditor5/src/core.js';import{CKEditorError as _0x340842}from'ckeditor5/src/utils.js';import{AIAdapter as _0x288a08,AIRequestError as _0x3b1f08}from'./aiadapter.js';import{getTranslation as _0x11c9c2}from'../utils/common-translations.js';export class AITextAdapter extends _0x5e51e4{[_0x2e23b7(0xf7)];static get[_0x2e23b7(0x105)](){return[_0x288a08];}constructor(_0x45fabc){const _0xf6af99=_0x2e23b7;super(_0x45fabc),this[_0xf6af99(0xf7)]=new AbortController();}[_0x2e23b7(0x10d)](){const _0x4ba2fa=_0x2e23b7;this[_0x4ba2fa(0xf6)][_0x4ba2fa(0xfa)][_0x4ba2fa(0xf2)](_0x288a08)[_0x4ba2fa(0x10b)]=this;}[_0x2e23b7(0x108)](){const _0x4b854c=_0x2e23b7;this[_0x4b854c(0xf7)][_0x4b854c(0x103)][_0x4b854c(0x106)]||(this[_0x4b854c(0xf7)][_0x4b854c(0x108)](),this[_0x4b854c(0xf7)]=new AbortController());}async[_0x2e23b7(0x102)](_0x347432){const _0x4045f2=_0x2e23b7;return this[_0x4045f2(0xef)](_0x347432)[_0x4045f2(0xeb)](_0x16d27b=>{const _0x32dd65=_0x4045f2;if(_0x16d27b instanceof _0x3b1f08)return Promise[_0x32dd65(0x104)](_0x16d27b);if(_0x32dd65(0xf9)==_0x16d27b[_0x32dd65(0xff)])return Promise[_0x32dd65(0x10a)]();throw console[_0x32dd65(0xfd)](_0x16d27b),new _0x340842(_0x32dd65(0xf5),null);});}async[_0x2e23b7(0xed)](_0x16095,_0x516b49){const _0x5b5ab2=_0x2e23b7,_0x4d4539=this[_0x5b5ab2(0xf6)][_0x5b5ab2(0x109)],_0x4a50b1={'Content-Type':_0x5b5ab2(0xee)};if(_0x5b5ab2(0xfe)==typeof _0x16095)Object[_0x5b5ab2(0xf1)](_0x4a50b1,_0x16095);else{if(_0x16095)try{const _0x16930d=await _0x16095(_0x516b49);Object[_0x5b5ab2(0xf1)](_0x4a50b1,_0x16930d);}catch{return Promise[_0x5b5ab2(0x104)](new _0x3b1f08(_0x11c9c2(_0x4d4539,_0x5b5ab2(0x10c))));}}return _0x4a50b1;}async[_0x2e23b7(0x10e)](_0x432de5,_0x3674e8){const _0x35839f=_0x2e23b7,_0x4a1851=this[_0x35839f(0xf6)][_0x35839f(0x109)];if(_0x35839f(0xfe)==typeof _0x432de5)return _0x432de5;try{return await _0x432de5(_0x3674e8);}catch{return Promise[_0x35839f(0x104)](new _0x3b1f08(_0x11c9c2(_0x4a1851,_0x35839f(0xfb))));}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55e8f8=_0x13d7;function _0x423c(){const _0x50f776=['signal','ai.assistant.adapter.aws.apiUrl','utf-8','_getGeneratedText','join','meta.llama','decode','ai.assistant.adapter.aws.requestParameters','define','9bSWVUk','map','editor','completions','get','7966664BHwkUT','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.','resolve','send','json','data','getReader','POST','_processProxyRequest','_readAsyncIterableResponse','ai.assistant.adapter.aws.requestHeaders','_requestParameters','cohere.command','_prepareRequestParameters','AWSTextAdapter','AI_ERROR_UNSUPPORTED_MODEL','anthropic.claude-v2','_apiUrl','filter','test','preparePrompt','Human:\x0a','config','267518xhbnQj','split','_readStaticResponse','16244940KgyeuN','3524876qgyDwx','_processAWSRequest','generation','getModelFamily','sendRequest','_prepareRequestHeaders','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','read','body','text','anthropic.claude','\x0a<</SYS>>\x0a[INST]\x0a','30vxrSUu','_requestHeaders','\x0a[/INST]','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.','bedrock-2023-05-31','_readStreamableResponse','locale','pluginName','parse','2GxFaOo','_bedrockClientConfig','application/json','\x0a\x0aAssistant:','chunk','completion','length','bytes','196497WXaXfZ','<<SYS>>\x0a','ai.assistant.adapter.aws.bedrockClientConfig','stringify','generations','abortController','855627KXcoVN','2754605VLuWKq','ai21.j2'];_0x423c=function(){return _0x50f776;};return _0x423c();}(function(_0x2e8753,_0x543143){const _0x389304=_0x13d7,_0x20f39a=_0x2e8753();while(!![]){try{const _0x18ba1b=parseInt(_0x389304(0x228))/0x1*(-parseInt(_0x389304(0x1f2))/0x2)+-parseInt(_0x389304(0x200))/0x3+parseInt(_0x389304(0x22c))/0x4+-parseInt(_0x389304(0x201))/0x5+parseInt(_0x389304(0x1e8))/0x6*(parseInt(_0x389304(0x1fa))/0x7)+parseInt(_0x389304(0x211))/0x8*(-parseInt(_0x389304(0x20c))/0x9)+parseInt(_0x389304(0x22b))/0xa;if(_0x18ba1b===_0x543143)break;else _0x20f39a['push'](_0x20f39a['shift']());}catch(_0x3b68e0){_0x20f39a['push'](_0x20f39a['shift']());}}}(_0x423c,0x8571b));import{AITextAdapter as _0x56911c}from'./aitextadapter.js';import{AIRequestError as _0x5716c2}from'./aiadapter.js';function _0x13d7(_0x458495,_0x4ddfba){const _0x423c54=_0x423c();return _0x13d7=function(_0x13d77c,_0x3cefdd){_0x13d77c=_0x13d77c-0x1de;let _0x480bce=_0x423c54[_0x13d77c];return _0x480bce;},_0x13d7(_0x458495,_0x4ddfba);}import{BedrockRuntimeClient as _0xa2fe2a,InvokeModelCommand as _0x801d5d,InvokeModelWithResponseStreamCommand as _0x5eb202}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x42beff}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x56911c{[_0x55e8f8(0x222)];[_0x55e8f8(0x1e9)];[_0x55e8f8(0x1f3)];[_0x55e8f8(0x21c)];static get[_0x55e8f8(0x1f0)](){const _0x12e351=_0x55e8f8;return _0x12e351(0x21f);}constructor(_0x488f58){const _0x347a1b=_0x55e8f8;super(_0x488f58),_0x488f58[_0x347a1b(0x227)][_0x347a1b(0x210)](_0x347a1b(0x20a))||_0x488f58[_0x347a1b(0x227)][_0x347a1b(0x20b)](_0x347a1b(0x20a),{'model':_0x347a1b(0x221),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x347a1b(0x1ed),'stream':!0x0}),this[_0x347a1b(0x222)]=_0x488f58[_0x347a1b(0x227)][_0x347a1b(0x210)](_0x347a1b(0x204)),this[_0x347a1b(0x1f3)]=_0x488f58[_0x347a1b(0x227)][_0x347a1b(0x210)](_0x347a1b(0x1fc)),this[_0x347a1b(0x1e9)]=_0x488f58[_0x347a1b(0x227)][_0x347a1b(0x210)](_0x347a1b(0x21b)),this[_0x347a1b(0x21c)]=_0x488f58[_0x347a1b(0x227)][_0x347a1b(0x210)](_0x347a1b(0x20a));}async[_0x55e8f8(0x1e0)]({query:_0x423958,context:_0x526a48,onData:_0x23decb,actionId:_0x297e82}){const _0x51a466=_0x55e8f8,{model:_0x1d4072,stream:_0x55bd1c,..._0x52400f}=await this[_0x51a466(0x21e)](this[_0x51a466(0x21c)],_0x297e82),_0x5b07c8={'prompt':await this[_0x51a466(0x225)](_0x423958,_0x526a48,_0x1d4072,_0x297e82),..._0x52400f};this[_0x51a466(0x222)]?await this[_0x51a466(0x219)](_0x5b07c8,_0x1d4072,_0x55bd1c,_0x23decb,_0x297e82):await this[_0x51a466(0x22d)](_0x5b07c8,_0x1d4072,_0x55bd1c,_0x23decb);}async[_0x55e8f8(0x225)](_0x1e3692,_0xb5d75c,_0x466300,_0x590826){const _0x172572=_0x55e8f8;let _0x21b271,_0x530cde;return _0xb5d75c?(_0x21b271=_0x172572(0x212),_0x530cde=_0x172572(0x1eb)+_0x1e3692+_0x172572(0x1e2)+_0xb5d75c):(_0x21b271=_0x172572(0x1ec),_0x530cde=_0x1e3692),_0x172572(0x208)==this[_0x172572(0x1df)](_0x466300)?_0x172572(0x1fb)+_0x21b271+_0x172572(0x1e7)+_0x530cde+_0x172572(0x1ea):_0x172572(0x226)+_0x21b271+'\x0a'+_0x530cde+_0x172572(0x1f5);}[_0x55e8f8(0x1df)](_0x5ae6ca){const _0x13bfb4=_0x55e8f8;if(/^anthropic\.claude/[_0x13bfb4(0x224)](_0x5ae6ca))return _0x13bfb4(0x1e6);if(/^ai21\.j2/[_0x13bfb4(0x224)](_0x5ae6ca))return _0x13bfb4(0x202);if(/^cohere\.command/[_0x13bfb4(0x224)](_0x5ae6ca))return _0x13bfb4(0x21d);if(/^meta\.llama/[_0x13bfb4(0x224)](_0x5ae6ca))return _0x13bfb4(0x208);throw new _0x5716c2(_0x42beff(this[_0x13bfb4(0x20e)][_0x13bfb4(0x1ef)],_0x13bfb4(0x220),_0x5ae6ca));}async[_0x55e8f8(0x219)](_0x3e51a0,_0x49b9a3,_0x365ada,_0x35eba6,_0x13e2b1){const _0x539dbd=_0x55e8f8,_0x487756={'method':_0x539dbd(0x218),'headers':await this[_0x539dbd(0x1e1)](this[_0x539dbd(0x1e9)],_0x13e2b1),'body':JSON[_0x539dbd(0x1fd)]({..._0x3e51a0,'model':_0x49b9a3,'stream':_0x365ada}),'signal':this[_0x539dbd(0x1ff)][_0x539dbd(0x203)]},_0x10cae4=await fetch(this[_0x539dbd(0x222)],_0x487756);_0x365ada?await this[_0x539dbd(0x1ee)](_0x10cae4,_0x49b9a3,_0x35eba6):await this[_0x539dbd(0x22a)](_0x10cae4,_0x49b9a3,_0x35eba6);}async[_0x55e8f8(0x22d)](_0x20a88d,_0x1a7a2a,_0x35c0cf,_0x2f95ae){const _0x2e371c=_0x55e8f8,_0x2464a3=new _0xa2fe2a(this[_0x2e371c(0x1f3)]),_0xe2d5fc={'body':JSON[_0x2e371c(0x1fd)](_0x20a88d),'contentType':_0x2e371c(0x1f4),'accept':_0x2e371c(0x1f4),'modelId':_0x1a7a2a};let _0x6d237f;if(_0x35c0cf){const _0x204926=new _0x5eb202(_0xe2d5fc);_0x6d237f=await _0x2464a3[_0x2e371c(0x214)](_0x204926,{'abortSignal':this[_0x2e371c(0x1ff)][_0x2e371c(0x203)]}),await this[_0x2e371c(0x21a)](_0x6d237f,_0x1a7a2a,_0x2f95ae);}else{const _0x5ce069=new _0x801d5d(_0xe2d5fc);_0x6d237f=await _0x2464a3[_0x2e371c(0x214)](_0x5ce069,{'abortSignal':this[_0x2e371c(0x1ff)][_0x2e371c(0x203)]}),await this[_0x2e371c(0x22a)](_0x6d237f,_0x1a7a2a,_0x2f95ae);}}async[_0x55e8f8(0x21a)](_0x18a29a,_0x14ed7f,_0x40b47a){const _0x13a17c=_0x55e8f8,_0x21ce76=_0x18a29a[_0x13a17c(0x1e4)],_0x45a03a=new TextDecoder(_0x13a17c(0x205));let _0x4f4063='';for await(const _0x4392d3 of _0x21ce76)if(_0x4392d3[_0x13a17c(0x1f6)]){const _0x38afd1=_0x45a03a[_0x13a17c(0x209)](_0x4392d3[_0x13a17c(0x1f6)][_0x13a17c(0x1f9)]),_0x3ba88e=JSON[_0x13a17c(0x1f1)](_0x38afd1);_0x4f4063+=this[_0x13a17c(0x206)](_0x3ba88e,_0x14ed7f),_0x40b47a(_0x4f4063);}return Promise[_0x13a17c(0x213)]();}async[_0x55e8f8(0x1ee)](_0x431e92,_0x37ecd8,_0xbada68){const _0x25474a=_0x55e8f8,_0x5bc926=_0x431e92[_0x25474a(0x1e4)],_0x57f923=new TextDecoder(_0x25474a(0x205)),_0x30a520=_0x5bc926[_0x25474a(0x217)]();let _0x518637='',_0x3146b8='',_0x252f53=!0x1;for(;!_0x252f53;){const {done:_0xe7c5a,value:_0x35fff9}=await _0x30a520[_0x25474a(0x1e3)]();if(_0x252f53=_0xe7c5a,_0x252f53)break;const _0x8ad649=(_0x518637+_0x57f923[_0x25474a(0x209)](_0x35fff9))[_0x25474a(0x229)]('\x0a')[_0x25474a(0x20d)](_0x113192=>{const _0x4fb355=_0x25474a;try{return _0x518637='',JSON[_0x4fb355(0x1f1)](_0x113192);}catch{return _0x518637=_0x113192,null;}})[_0x25474a(0x223)](_0x551986=>null!==_0x551986);_0x8ad649[_0x25474a(0x1f8)]&&(_0x3146b8+=_0x8ad649[_0x25474a(0x20d)](_0x3b6621=>this[_0x25474a(0x206)](_0x3b6621,_0x37ecd8))[_0x25474a(0x207)](''),_0xbada68(_0x3146b8));}return Promise[_0x25474a(0x213)]();}async[_0x55e8f8(0x22a)](_0x13ebc7,_0x408d07,_0x2c8678){const _0x476aa1=_0x55e8f8;let _0x36243f;return _0x36243f=_0x13ebc7 instanceof Response?await _0x13ebc7[_0x476aa1(0x215)]():JSON[_0x476aa1(0x1f1)](new TextDecoder(_0x476aa1(0x205))[_0x476aa1(0x209)](_0x13ebc7[_0x476aa1(0x1e4)])),(_0x2c8678(this[_0x476aa1(0x206)](_0x36243f,_0x408d07)),Promise[_0x476aa1(0x213)]());}[_0x55e8f8(0x206)](_0x2bd8a8,_0xcdd7e2){const _0x4d0737=_0x55e8f8;switch(this[_0x4d0737(0x1df)](_0xcdd7e2)){case _0x4d0737(0x1e6):return _0x2bd8a8[_0x4d0737(0x1f7)];case _0x4d0737(0x202):return _0x2bd8a8[_0x4d0737(0x20f)][0x0][_0x4d0737(0x216)][_0x4d0737(0x1e5)];case _0x4d0737(0x21d):return _0x2bd8a8[_0x4d0737(0x1fe)][0x0][_0x4d0737(0x1e5)];case _0x4d0737(0x208):return _0x2bd8a8[_0x4d0737(0x1de)];}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x493ee2=_0x1765;(function(_0x1700b4,_0x5a3813){const _0x5c38d3=_0x1765,_0x4e6188=_0x1700b4();while(!![]){try{const _0x9098dd=parseInt(_0x5c38d3(0x195))/0x1*(-parseInt(_0x5c38d3(0x199))/0x2)+-parseInt(_0x5c38d3(0x180))/0x3+-parseInt(_0x5c38d3(0x18c))/0x4+-parseInt(_0x5c38d3(0x17f))/0x5*(-parseInt(_0x5c38d3(0x161))/0x6)+-parseInt(_0x5c38d3(0x16e))/0x7*(parseInt(_0x5c38d3(0x167))/0x8)+parseInt(_0x5c38d3(0x174))/0x9*(parseInt(_0x5c38d3(0x181))/0xa)+parseInt(_0x5c38d3(0x159))/0xb;if(_0x9098dd===_0x5a3813)break;else _0x4e6188['push'](_0x4e6188['shift']());}catch(_0x5a1457){_0x4e6188['push'](_0x4e6188['shift']());}}}(_0x5a2d,0x83a7f));function _0x1765(_0x3dd4bc,_0x297339){const _0x5a2da9=_0x5a2d();return _0x1765=function(_0x17653e,_0x34afc9){_0x17653e=_0x17653e-0x157;let _0x4658d7=_0x5a2da9[_0x17653e];return _0x4658d7;},_0x1765(_0x3dd4bc,_0x297339);}import{AITextAdapter as _0x4c933b}from'./aitextadapter.js';function _0x5a2d(){const _0x1fcf0f=['POST','resolve','_prepareRequestParameters','reject','replace','message','AI_ERROR_CONTEXT_LENGTH','prepareMessages','1727780brcqnN','1116246vlUeTy','1538540vbAHgM','content','locale','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.','stream','json','_requestHeaders','_requestParameters','_prepareRequestHeaders','filter','split','1501872yKJgQV','gpt-4o','sendRequest','body','AI_ERROR_MODERATION','includes','delta','ai.assistant.adapter.openAI.requestHeaders','text','701RAKfLM','user','pluginName','stringify','1530pBuwsJ','read','ai.assistant.adapter.openAI.apiUrl','join','decode','config','ai.assistant.adapter.openAI.requestParameters','22767844Ytqksq','[DONE]','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','system','length','editor','OpenAITextAdapter','data:\x20','6wkzRFo','map','get','getReader','define','_readStaticResponse','719992uEEyAu','abortController','_apiUrl','Moderation','context_length_exceeded','_isBufferIncomplete','signal','70UYiTNf','choices','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.','_cleanUpData','_readStreamableResponse','Instruction:\x0a','18VPWcMx','https://api.openai.com/v1/chat/completions','parse'];_0x5a2d=function(){return _0x1fcf0f;};return _0x5a2d();}import{AIRequestError as _0x2306e4}from'./aiadapter.js';import{getTranslation as _0x3dfed4}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x4c933b{[_0x493ee2(0x169)];[_0x493ee2(0x187)];[_0x493ee2(0x188)];static get[_0x493ee2(0x197)](){const _0x2c8046=_0x493ee2;return _0x2c8046(0x15f);}constructor(_0x482542){const _0x279f8a=_0x493ee2;super(_0x482542),_0x482542[_0x279f8a(0x157)][_0x279f8a(0x165)](_0x279f8a(0x19b),_0x279f8a(0x175)),_0x482542[_0x279f8a(0x157)][_0x279f8a(0x163)](_0x279f8a(0x158))||_0x482542[_0x279f8a(0x157)][_0x279f8a(0x165)](_0x279f8a(0x158),{'model':_0x279f8a(0x18d),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x279f8a(0x169)]=_0x482542[_0x279f8a(0x157)][_0x279f8a(0x163)](_0x279f8a(0x19b)),this[_0x279f8a(0x187)]=_0x482542[_0x279f8a(0x157)][_0x279f8a(0x163)](_0x279f8a(0x193))||{},this[_0x279f8a(0x188)]=_0x482542[_0x279f8a(0x157)][_0x279f8a(0x163)](_0x279f8a(0x158));}async[_0x493ee2(0x18e)]({query:_0xb95a37,context:_0x28f6c5,onData:_0x4873c4,actionId:_0x5bb265}){const _0x77beda=_0x493ee2,_0x205309=this[_0x77beda(0x15e)][_0x77beda(0x183)],_0x5d7ba1=await this[_0x77beda(0x17e)](_0xb95a37,_0x28f6c5,_0x5bb265),_0x32c92a=await this[_0x77beda(0x189)](this[_0x77beda(0x187)],_0x5bb265),_0xb47a4=await this[_0x77beda(0x179)](this[_0x77beda(0x188)],_0x5bb265),_0x16382d={'messages':_0x5d7ba1,..._0xb47a4},_0x48cea5={'method':_0x77beda(0x177),'headers':_0x32c92a,'body':JSON[_0x77beda(0x198)](_0x16382d),'signal':this[_0x77beda(0x168)][_0x77beda(0x16d)]},_0x38a162=await fetch(this[_0x77beda(0x169)],_0x48cea5);if(_0x38a162['ok'])return _0xb47a4[_0x77beda(0x185)]?await this[_0x77beda(0x172)](_0x38a162,_0x4873c4):await this[_0x77beda(0x166)](_0x38a162,_0x4873c4),Promise[_0x77beda(0x178)]();{const _0x144bcb=await _0x38a162[_0x77beda(0x194)]();return _0x144bcb[_0x77beda(0x191)](_0x77beda(0x16b))?Promise[_0x77beda(0x17a)](new _0x2306e4(_0x3dfed4(_0x205309,_0x77beda(0x17d)))):_0x144bcb[_0x77beda(0x191)](_0x77beda(0x16a))?Promise[_0x77beda(0x17a)](new _0x2306e4(_0x3dfed4(_0x205309,_0x77beda(0x190)))):Promise[_0x77beda(0x17a)](new Error(_0x144bcb));}}async[_0x493ee2(0x17e)](_0x347675,_0x59a95d,_0x4ad5f4){const _0x4ad90a=_0x493ee2;let _0x2a0782,_0xbddeb7;return _0x59a95d?(_0x2a0782=_0x4ad90a(0x170),_0xbddeb7=_0x4ad90a(0x173)+_0x347675+_0x4ad90a(0x15b)+_0x59a95d):(_0x2a0782=_0x4ad90a(0x184),_0xbddeb7=_0x347675),[{'role':_0x4ad90a(0x15c),'content':_0x2a0782},{'role':_0x4ad90a(0x196),'content':_0xbddeb7}];}async[_0x493ee2(0x172)](_0x3aa308,_0x1cf3fa){const _0x5047ad=_0x493ee2,_0x16dce1=_0x3aa308[_0x5047ad(0x18f)][_0x5047ad(0x164)](),_0x1057f3=new TextDecoder();let _0x5957a3='',_0x169869='',_0x1af40f='',_0x557b23=!0x1;for(;!_0x557b23;){const {done:_0x2c918d,value:_0x42d1e9}=await _0x16dce1[_0x5047ad(0x19a)](),_0x275167=_0x5957a3+_0x1057f3[_0x5047ad(0x19d)](_0x42d1e9);let _0x59ff13='';_0x557b23=_0x2c918d;try{_0x59ff13=this[_0x5047ad(0x171)](_0x275167),_0x5957a3='';}catch{_0x5957a3=_0x275167;continue;}_0x169869+=_0x59ff13,!_0x557b23&&this[_0x5047ad(0x16c)](_0x169869)||_0x169869&&(_0x1af40f+=_0x169869,_0x169869='',_0x1cf3fa(_0x1af40f));}return Promise[_0x5047ad(0x178)]();}async[_0x493ee2(0x166)](_0x3924de,_0x4b23e3){const _0x558e3e=_0x493ee2;return _0x4b23e3((await _0x3924de[_0x558e3e(0x186)]())[_0x558e3e(0x16f)][0x0][_0x558e3e(0x17c)][_0x558e3e(0x182)]),Promise[_0x558e3e(0x178)]();}[_0x493ee2(0x16c)](_0x411a6c){const _0x3ebd41=_0x493ee2,_0x3d4801=_0x411a6c[_0x3ebd41(0x18b)]('<')[_0x3ebd41(0x15d)]!==_0x411a6c[_0x3ebd41(0x18b)]('>')[_0x3ebd41(0x15d)],_0xd9434f=_0x411a6c[_0x3ebd41(0x15d)]<0x1e;return _0x3d4801&&_0xd9434f;}[_0x493ee2(0x171)](_0x23c450){const _0x57848c=_0x493ee2;return _0x23c450[_0x57848c(0x18b)](/\n(?![^{]*\})/g)[_0x57848c(0x162)](_0x4cfe74=>_0x4cfe74[_0x57848c(0x17b)](_0x57848c(0x160),''))[_0x57848c(0x18a)](_0x4380dc=>_0x4380dc&&_0x4380dc[_0x57848c(0x15d)]>0x0&&_0x57848c(0x15a)!==_0x4380dc)[_0x57848c(0x162)](_0x1c543f=>{const _0x54bba5=_0x57848c,{choices:_0x5492d3}=JSON[_0x54bba5(0x176)](_0x1c543f);if(_0x5492d3[0x0]?.[_0x54bba5(0x192)]?.[_0x54bba5(0x182)])return _0x5492d3[0x0][_0x54bba5(0x192)][_0x54bba5(0x182)];})[_0x57848c(0x18a)](_0x52c6ae=>_0x52c6ae)[_0x57848c(0x19c)]('');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x340bb5=_0x3f47;(function(_0x157040,_0x7824fb){const _0x9c126e=_0x3f47,_0xef1f4=_0x157040();while(!![]){try{const _0x14b05c=-parseInt(_0x9c126e(0x1cf))/0x1*(-parseInt(_0x9c126e(0x1e0))/0x2)+parseInt(_0x9c126e(0x1b2))/0x3*(-parseInt(_0x9c126e(0x1d6))/0x4)+parseInt(_0x9c126e(0x1d8))/0x5*(-parseInt(_0x9c126e(0x19c))/0x6)+parseInt(_0x9c126e(0x1e6))/0x7+parseInt(_0x9c126e(0x1b8))/0x8+parseInt(_0x9c126e(0x1de))/0x9+-parseInt(_0x9c126e(0x1c8))/0xa;if(_0x14b05c===_0x7824fb)break;else _0xef1f4['push'](_0xef1f4['shift']());}catch(_0x1f3b60){_0xef1f4['push'](_0xef1f4['shift']());}}}(_0x2fed,0x963bf));import{Plugin as _0x3bd894}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x55e396}from'./aiassistantui.js';import{AIAssistantEditing as _0x2c7659}from'./aiassistantediting.js';function _0x2fed(){const _0x4d5210=['poetic','Casual','translateEnglish','1085397btAETK','translateHindi','casual','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Edit\x20or\x20review','583064nyMSub','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','translateGerman','changeStyle','German','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','find','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','business','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','professional','ai.assistant.preserveComments','define','Change\x20style','ai.assistant.commands','3601310WdiDAu','Confident','Friendly','legal','Legal','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Arabic','1gIXsRA','get','Translate\x20the\x20content\x20to\x20German\x20language.','confident','generate','Change\x20tone','translateSpanish','4PGBfWb','continue','336160NJyJqd','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','isPremiumPlugin','Generate\x20from\x20selection','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','friendly','9235233YdkseD','Translate\x20the\x20content\x20to\x20Spanish\x20language.','1179190PiJqQz','Portuguese','journalism','config','Improve\x20writing','Continue','5541326SjFdIE','translateChinese','groupId','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','commands','locale','isOfficialPlugin','simplifyLanguage','AIAssistant','Translate\x20the\x20content\x20to\x20French\x20language.','pluginName','Direct','Journalism','requires','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','Simplified\x20Chinese','Make\x20shorter','improveWriting','Professional','translateFrench','concat','set','Business','includes','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Translate\x20the\x20content\x20to\x20English\x20language.','filter','forEach','Spanish','makeLonger','changeTone','Make\x20longer','Summarize','direct','summarize','102IElAbk','ai.assistant.extraCommandGroups','makeShorter','Simplify\x20language','translate','Poetic','Hindi','English','ai.assistant.removeCommands','push','translatePortuguese','Translate\x20the\x20content\x20to\x20Arabic\x20language.','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','French','Translate','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','editOrReview','translateArabic'];_0x2fed=function(){return _0x4d5210;};return _0x2fed();}import{getTranslation as _0x5e39ea}from'./utils/common-translations.js';function _0x3f47(_0x5c257a,_0x856d4a){const _0x2fed42=_0x2fed();return _0x3f47=function(_0x3f47c1,_0x255f34){_0x3f47c1=_0x3f47c1-0x195;let _0x1291f6=_0x2fed42[_0x3f47c1];return _0x1291f6;},_0x3f47(_0x5c257a,_0x856d4a);}import{normalizeCommandsConfig as _0x46db67}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x3bd894{static get[_0x340bb5(0x1f3)](){return[_0x55e396,_0x2c7659];}static get[_0x340bb5(0x1f0)](){const _0x2ffc70=_0x340bb5;return _0x2ffc70(0x1ee);}static get[_0x340bb5(0x1ec)](){return!0x0;}static get[_0x340bb5(0x1da)](){return!0x0;}constructor(_0x41072b){const _0x5d64c3=_0x340bb5;super(_0x41072b);const _0x454d3d=_0x41072b[_0x5d64c3(0x1e3)],_0x33491b=_0x41072b[_0x5d64c3(0x1eb)];_0x454d3d[_0x5d64c3(0x1c5)](_0x5d64c3(0x1c4),!0x0),_0x454d3d[_0x5d64c3(0x1c5)](_0x5d64c3(0x1c7),getDefaultAICommands(_0x33491b)),_0x454d3d[_0x5d64c3(0x1c5)](_0x5d64c3(0x19d),[]),_0x454d3d[_0x5d64c3(0x1c5)](_0x5d64c3(0x1a4),[]);let _0x2df0c7=_0x46db67(_0x454d3d[_0x5d64c3(0x1d0)](_0x5d64c3(0x1c7)),_0x33491b);const _0x4a6fcc=_0x454d3d[_0x5d64c3(0x1d0)](_0x5d64c3(0x19d)),_0x28108e=_0x454d3d[_0x5d64c3(0x1d0)](_0x5d64c3(0x1a4));_0x4a6fcc[_0x5d64c3(0x203)](_0x32e50b=>{const _0x16a5dc=_0x5d64c3,_0x226493=_0x2df0c7[_0x16a5dc(0x1be)](_0x2ca0c2=>_0x2ca0c2[_0x16a5dc(0x1e8)]===_0x32e50b[_0x16a5dc(0x1e8)]);_0x226493?_0x226493[_0x16a5dc(0x1ea)]=_0x226493[_0x16a5dc(0x1ea)][_0x16a5dc(0x1fa)](_0x32e50b[_0x16a5dc(0x1ea)]):_0x2df0c7[_0x16a5dc(0x1a5)](_0x32e50b);}),_0x2df0c7=_0x2df0c7[_0x5d64c3(0x202)](_0x40bda0=>!_0x28108e[_0x5d64c3(0x1fd)](_0x40bda0[_0x5d64c3(0x1e8)])),_0x2df0c7[_0x5d64c3(0x203)](_0x4e2073=>{const _0x1a8f15=_0x5d64c3;_0x4e2073[_0x1a8f15(0x1ea)]=_0x4e2073[_0x1a8f15(0x1ea)][_0x1a8f15(0x202)](_0x394034=>!_0x28108e[_0x1a8f15(0x1fd)](_0x394034['id']));}),_0x454d3d[_0x5d64c3(0x1fb)](_0x5d64c3(0x1c7),_0x2df0c7);}}export function getDefaultAICommands(_0x352ea6){const _0x21f06b=_0x340bb5;return[{'groupId':_0x21f06b(0x1ad),'groupLabel':_0x5e39ea(_0x352ea6,_0x21f06b(0x1b7)),'commands':[{'id':_0x21f06b(0x1f7),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1e4)),'prompt':_0x21f06b(0x1e9)},{'id':_0x21f06b(0x19e),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1f6)),'prompt':_0x21f06b(0x1fe)},{'id':_0x21f06b(0x196),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x198)),'prompt':_0x21f06b(0x1a8)},{'id':_0x21f06b(0x1ed),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x19f)),'prompt':_0x21f06b(0x1c0)}]},{'groupId':_0x21f06b(0x1d3),'groupLabel':_0x5e39ea(_0x352ea6,_0x21f06b(0x1db)),'commands':[{'id':_0x21f06b(0x19b),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x199)),'prompt':_0x21f06b(0x1d9)},{'id':_0x21f06b(0x1d7),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1e5)),'prompt':_0x21f06b(0x1b5)}]},{'groupId':_0x21f06b(0x197),'groupLabel':_0x5e39ea(_0x352ea6,_0x21f06b(0x1d4)),'commands':[{'id':_0x21f06b(0x1c3),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1f8)),'prompt':_0x21f06b(0x1dc)},{'id':_0x21f06b(0x1b4),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1b0)),'prompt':_0x21f06b(0x1b9)},{'id':_0x21f06b(0x19a),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1f1)),'prompt':_0x21f06b(0x1bd)},{'id':_0x21f06b(0x1d2),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1c9)),'prompt':_0x21f06b(0x1c2)},{'id':_0x21f06b(0x1dd),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1ca)),'prompt':_0x21f06b(0x1ac)}]},{'groupId':_0x21f06b(0x1bb),'groupLabel':_0x5e39ea(_0x352ea6,_0x21f06b(0x1c6)),'commands':[{'id':_0x21f06b(0x1c1),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1fc)),'prompt':_0x21f06b(0x1b6)},{'id':_0x21f06b(0x1cb),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1cc)),'prompt':_0x21f06b(0x1ab)},{'id':_0x21f06b(0x1e2),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1f2)),'prompt':_0x21f06b(0x1ff)},{'id':_0x21f06b(0x1af),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1a1)),'prompt':_0x21f06b(0x1bf)}]},{'groupId':_0x21f06b(0x1a0),'groupLabel':_0x5e39ea(_0x352ea6,_0x21f06b(0x1aa)),'commands':[{'id':_0x21f06b(0x1b1),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1a3)),'prompt':_0x21f06b(0x201)},{'id':_0x21f06b(0x1d5),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x195)),'prompt':_0x21f06b(0x1df)},{'id':_0x21f06b(0x1a6),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1e1)),'prompt':_0x21f06b(0x200)},{'id':_0x21f06b(0x1ba),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1bc)),'prompt':_0x21f06b(0x1d1)},{'id':_0x21f06b(0x1f9),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1a9)),'prompt':_0x21f06b(0x1ef)},{'id':_0x21f06b(0x1e7),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1f5)),'prompt':_0x21f06b(0x1f4)},{'id':_0x21f06b(0x1b3),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1a2)),'prompt':_0x21f06b(0x1cd)},{'id':_0x21f06b(0x1ae),'label':_0x5e39ea(_0x352ea6,_0x21f06b(0x1ce)),'prompt':_0x21f06b(0x1a7)}]}];}
|