@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.3
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/awstextadapter.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.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/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/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/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/utils/eventnames.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/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiediting.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/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/aisuggestioncontentpartstateview.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/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/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/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/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-ai",
|
|
3
|
-
"version": "47.7.3
|
|
3
|
+
"version": "47.7.3",
|
|
4
4
|
"description": "AI features for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -28,20 +28,20 @@
|
|
|
28
28
|
"dist/translations/*.umd.js"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.7.3
|
|
32
|
-
"@ckeditor/ckeditor5-cloud-services": "47.7.3
|
|
33
|
-
"@ckeditor/ckeditor5-collaboration-core": "47.7.3
|
|
34
|
-
"@ckeditor/ckeditor5-core": "47.7.3
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "47.7.3
|
|
36
|
-
"@ckeditor/ckeditor5-icons": "47.7.3
|
|
37
|
-
"@ckeditor/ckeditor5-markdown-gfm": "47.7.3
|
|
38
|
-
"@ckeditor/ckeditor5-real-time-collaboration": "47.7.3
|
|
39
|
-
"@ckeditor/ckeditor5-table": "47.7.3
|
|
40
|
-
"@ckeditor/ckeditor5-theme-lark": "47.7.3
|
|
41
|
-
"@ckeditor/ckeditor5-ui": "47.7.3
|
|
42
|
-
"@ckeditor/ckeditor5-utils": "47.7.3
|
|
43
|
-
"ckeditor5": "47.7.3
|
|
44
|
-
"ckeditor5-collaboration": "47.7.3
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.7.3",
|
|
32
|
+
"@ckeditor/ckeditor5-cloud-services": "47.7.3",
|
|
33
|
+
"@ckeditor/ckeditor5-collaboration-core": "47.7.3",
|
|
34
|
+
"@ckeditor/ckeditor5-core": "47.7.3",
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "47.7.3",
|
|
36
|
+
"@ckeditor/ckeditor5-icons": "47.7.3",
|
|
37
|
+
"@ckeditor/ckeditor5-markdown-gfm": "47.7.3",
|
|
38
|
+
"@ckeditor/ckeditor5-real-time-collaboration": "47.7.3",
|
|
39
|
+
"@ckeditor/ckeditor5-table": "47.7.3",
|
|
40
|
+
"@ckeditor/ckeditor5-theme-lark": "47.7.3",
|
|
41
|
+
"@ckeditor/ckeditor5-ui": "47.7.3",
|
|
42
|
+
"@ckeditor/ckeditor5-utils": "47.7.3",
|
|
43
|
+
"ckeditor5": "47.7.3",
|
|
44
|
+
"ckeditor5-collaboration": "47.7.3",
|
|
45
45
|
"diff": "8.0.3",
|
|
46
46
|
"dom-serializer": "2.0.0",
|
|
47
47
|
"domhandler": "5.0.3",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ada87=_0x4520;(function(_0x126a07,_0x4b5ad8){const _0x289bfc=_0x4520,_0x11b8cb=_0x126a07();while(!![]){try{const _0x981ac9=-parseInt(_0x289bfc(0x13d))/0x1*(-parseInt(_0x289bfc(0x103))/0x2)+parseInt(_0x289bfc(0x129))/0x3*(-parseInt(_0x289bfc(0x142))/0x4)+-parseInt(_0x289bfc(0xb9))/0x5*(parseInt(_0x289bfc(0x11b))/0x6)+-parseInt(_0x289bfc(0xec))/0x7*(parseInt(_0x289bfc(0xd8))/0x8)+-parseInt(_0x289bfc(0x153))/0x9+parseInt(_0x289bfc(0xbd))/0xa+parseInt(_0x289bfc(0xb1))/0xb;if(_0x981ac9===_0x4b5ad8)break;else _0x11b8cb['push'](_0x11b8cb['shift']());}catch(_0x5fb0b6){_0x11b8cb['push'](_0x11b8cb['shift']());}}}(_0x58f2,0x22cd1));import{Plugin as _0x2e5850}from'ckeditor5/src/core.js';import{AIConnector as _0x3b0a65}from'../aicore/aiconnector.js';import{Dialog as _0x4259a0,BodyCollection as _0x3e068b}from'ckeditor5/src/ui.js';import{AIEditing as _0x10bf81,AI_VISUAL_SELECTION_MARKER_NAME as _0x457bf3}from'../aicore/aiediting.js';function _0x58f2(){const _0x45fc0a=['destroy','setChangeGroupState','showLoader','history','_isAbortError','_currentInteractionIndex','stopAutoScroll','_regularCalculateMarkerPath','6TDXVYS','rootName','streaming','name','move','set','upsertAIActionRating','push','AI_ACTIONS_GENERIC_ERROR','createRange','rejected','_interactions','getCommonAncestor','createPositionFromPath','18681noBcTH','upsertCustomAIActionRating','detachFromDom','getSelectedTableCells','document','signal','_stopInteraction','updateContent','split','_navigateToNext','_bodyCollection','locale','editor','focus','_getExecuteDataInTable','error','start','listenTo','getRoot','getRange','3BRdBFa','showError','open','TrackChanges','getChild','8tLvfuc','random','type','_aiConnector','stopListening','accepted','state','isOfficialPlugin','_setErrorState','getRanges','_anchorOperation','getOperations','path','isPremiumPlugin','clearContent','isTrackChangesOn','requires','1048464neBMcg','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','showNext','stop','reinsert','createPositionAt','_navigateToPrevious','rename','_refreshInteraction','includes','batch','config','startAutoScroll','catch','_interactionParams','_getExecuteDataRegular','insertSuggestion','applySuggestion','documentContextContent','_clearErrorState','_displayInteractionAtIndex','commands','_promiseQueue','indexOf','change','clone','setErrorState','trackChanges','affectsData','_clearLoadingState','_filterOperationsOutsideRange','applyOperation','end','_balloonShowDiff','_wrapWithCommonAncestors','schema','attachToDom','createPositionAfter','insert','selectionRemoved','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','length','has','TrackChangesEditing','createPositionBefore','Error\x20updating\x20content\x20in\x20replyCreated:','_applyOperationsAsSuggestions','remove','isEqual','getChildAtOffset','dialogClosed','getDocumentContext','nodeAfter','isBusy','$graveyard','AIConnector','_clone','getSelectedContent','hideLoader','4934842qZjTfp','stickiness','queueEmptyPromise','baseVersion','nextSibling','enqueue','bind','showPrevious','1293455bNbvuQ','Error\x20updating\x20content\x20during\x20navigation:','getFirstRange','addOperation','1517440YsnTqd','merge','AIActions','static','setIsLoading','model','pluginName','interactionFinished','max','map','actionCallId','disableMiniToolbarButtons','close','ai.availableReplyActions','_clearInteractionHistory','message','TableSelection','slice','icon','markers','_executeAction','sourcePosition','_actionsBalloonView','isCollapsed','resetShowChangesButton','toggleIsLoading','startsWith','16LouteF','ai-request-aborted','getSelectedBlocks','hasError','Attribute','_setupApplyListeners','root','modelToDataWithIds','getAncestors','executeAction','replyCreated','aiActionsBalloon','value','tryAgain','pending','actionName','_appendChild','replyChangeGroupStateUpdated','_applyChanges','updateMiniToolbarButtons','594209IyIYRn','plugins','containsRange','abort','ai-no-track-changes','getSelectionAsFragment','toggleSuggestionDisplayMode','howMany','stopInteraction','range','getLimitElement','selection','from','replies','ck-ai-actions-balloon','isDocumentOperation','_copyMarkersToFragment','_execute','_interaction','position','parent','filter','_createInteraction','66396SgIzbY','setSelection','some','get','isTableSelection','documentFragment','replyContentUpdated','Error\x20refreshing\x20interaction:','version','changeGroups','operationsA','hideError','_setLoadingState','_createActionsBalloonView','AIBalloon','Error\x20updating\x20content\x20in\x20replyContentUpdated:'];_0x58f2=function(){return _0x45fc0a;};return _0x58f2();}import{AIActionsInteraction as _0x1447ff}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x4db94f,first as _0x3af5a5}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3b5a06}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x5ad783}from'../aiballoon/aiballoon.js';function _0x4520(_0x21562a,_0x5a901b){const _0x58f280=_0x58f2();return _0x4520=function(_0x45202c,_0x1d2727){_0x45202c=_0x45202c-0xab;let _0x209251=_0x58f280[_0x45202c];return _0x209251;},_0x4520(_0x21562a,_0x5a901b);}import{PromiseQueue as _0x63f4a2}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x25dd6b}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0xe6b0f2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x12c606}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0xc2b64a,getOperationsFromReply as _0x3aa0c1}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0xc33157,ModelRange as _0x511751,ModelPosition as _0x462da1,_DetachOperation as _0x574926,transformOperationSets as _0x4cd9d9}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0xd88592}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x17db18}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x2e5850{static get[_0x3ada87(0x152)](){return[_0x3b0a65,_0x4259a0,_0x10bf81,_0x5ad783,_0x12c606];}static get[_0x3ada87(0xc3)](){const _0x1ec848=_0x3ada87;return _0x1ec848(0xbf);}static get[_0x3ada87(0x149)](){return!0x0;}static get[_0x3ada87(0x14f)](){return!0x0;}[_0x3ada87(0x145)];[_0x3ada87(0x126)]=[];[_0x3ada87(0x118)]=0x0;[_0x3ada87(0x161)];[_0x3ada87(0x174)]=!0x1;[_0x3ada87(0x169)];[_0x3ada87(0x133)];get[_0x3ada87(0xfe)](){const _0x45dc09=_0x3ada87;return this[_0x45dc09(0x126)][this[_0x45dc09(0x126)][_0x45dc09(0x17c)]-0x1];}[_0x3ada87(0xd3)];constructor(_0x4c2b8a){const _0x3f7c5d=_0x3ada87;super(_0x4c2b8a),this[_0x3f7c5d(0x133)]=new _0x3e068b(this[_0x3f7c5d(0x135)][_0x3f7c5d(0x134)]),this[_0x3f7c5d(0x133)][_0x3f7c5d(0x177)](),this[_0x3f7c5d(0x145)]=this[_0x3f7c5d(0x135)][_0x3f7c5d(0xed)][_0x3f7c5d(0x106)](_0x3f7c5d(0xad)),this[_0x3f7c5d(0x120)](_0x3f7c5d(0xab),!0x1),this[_0x3f7c5d(0x169)]=new _0x63f4a2();}[_0x3ada87(0xf4)](){const _0x57c08b=_0x3ada87;this[_0x57c08b(0x12f)]();}async[_0x3ada87(0xe1)](_0x5484d0,_0x569962,_0x55ed1c){const _0x526b8c=_0x3ada87;if(this[_0x526b8c(0x12f)](),this[_0x526b8c(0x135)][_0x526b8c(0xed)][_0x526b8c(0x17d)](_0x526b8c(0xcd))){if(this[_0x526b8c(0x135)][_0x526b8c(0xed)][_0x526b8c(0x106)](_0x526b8c(0xcd))[_0x526b8c(0x12c)]()){const {modelFragment:_0x403aff,anchorData:_0x11c688}=this[_0x526b8c(0x137)]();return this[_0x526b8c(0xd1)](_0x5484d0,_0x403aff,_0x11c688,_0x569962,_0x55ed1c);}}const {modelFragment:_0x9f91,anchorData:_0x543e42}=this[_0x526b8c(0x162)]();return this[_0x526b8c(0xd1)](_0x5484d0,_0x9f91,_0x543e42,_0x569962,_0x55ed1c);}async[_0x3ada87(0x113)](){const _0x1f8d6b=_0x3ada87;return this[_0x1f8d6b(0x12f)](),this[_0x1f8d6b(0x133)][_0x1f8d6b(0x12b)](),super[_0x1f8d6b(0x113)]();}[_0x3ada87(0x110)](){const _0x518662=_0x3ada87,_0x32bdd5=this[_0x518662(0x135)][_0x518662(0xed)][_0x518662(0x17d)](_0x518662(0x140));let _0x234c5f=this[_0x518662(0x135)][_0x518662(0x15e)][_0x518662(0x106)](_0x518662(0xca))||[..._0xd88592];_0x32bdd5||(_0x234c5f=_0x234c5f[_0x518662(0x101)](_0x52c34e=>_0x518662(0x163)!=_0x52c34e));const _0x39622b=this[_0x518662(0x135)][_0x518662(0x168)][_0x518662(0x106)](_0x518662(0x16e)),_0x5affff=new _0x17db18(this[_0x518662(0x135)][_0x518662(0x134)],{'showApplyButton':!0x0,'showSuggestButton':_0x32bdd5,'miniToolbarConfig':{'showChanges':_0x518662(0xcf)},'availableActions':_0x234c5f});return _0x5affff[_0x518662(0xb7)](_0x518662(0xab))['to'](this),_0x39622b&&_0x5affff[_0x518662(0xb7)](_0x518662(0x151))['to'](_0x39622b,_0x518662(0xe4)),_0x5affff['on'](_0x518662(0xe5),()=>{const _0x30d8cf=_0x518662;this[_0x30d8cf(0x15b)]();}),_0x5affff['on'](_0x518662(0xb8),()=>{const _0x49447c=_0x518662;this[_0x49447c(0x159)]();}),_0x5affff['on'](_0x518662(0x155),()=>{const _0x6a1471=_0x518662;this[_0x6a1471(0x132)]();}),_0x5affff;}[_0x3ada87(0x162)](){const _0x31aadb=_0x3ada87,_0x346551=this[_0x31aadb(0x135)][_0x31aadb(0xc2)][_0x31aadb(0x12d)][_0x31aadb(0xf7)];if(_0x346551[_0x31aadb(0xd4)]){const _0x1592af=_0x3af5a5(_0x346551[_0x31aadb(0xda)]())||this[_0x31aadb(0x135)][_0x31aadb(0xc2)][_0x31aadb(0x176)][_0x31aadb(0xf6)](_0x346551);this[_0x31aadb(0x135)][_0x31aadb(0xc2)][_0x31aadb(0x16b)](_0x420bbe=>{const _0x444acf=_0x31aadb;_0x420bbe[_0x444acf(0x104)](_0x1592af,'in');});}const _0x351e9f=_0x346551[_0x31aadb(0xbb)](),_0x135325=this[_0x31aadb(0x175)](this[_0x31aadb(0x135)][_0x31aadb(0xc2)][_0x31aadb(0xaf)](_0x346551),_0x351e9f[_0x31aadb(0x139)],_0x351e9f[_0x31aadb(0x173)]);this[_0x31aadb(0xfc)](_0x135325,_0x346551,{'isTableSelection':!0x1});const _0x62f70c=_0x346551[_0x31aadb(0xbb)]()[_0x31aadb(0x139)],_0x1d3614=new Map();let _0x328b08=_0x135325;for(let _0x47fb38=0x0;_0x47fb38<_0x62f70c[_0x31aadb(0x14e)][_0x31aadb(0x17c)];_0x47fb38++)_0x1d3614[_0x31aadb(0x120)](_0x328b08,_0x62f70c[_0x31aadb(0x14e)][_0x47fb38]),_0x328b08=_0x328b08[_0x31aadb(0x141)](0x0);return{'modelFragment':_0x135325,'anchorData':_0x1d3614};}[_0x3ada87(0x137)](){const _0x1d2e34=_0x3ada87,_0x5ec3ba=this[_0x1d2e34(0x135)][_0x1d2e34(0xc2)][_0x1d2e34(0x12d)][_0x1d2e34(0xf7)],_0x1711cf=this[_0x1d2e34(0x135)][_0x1d2e34(0xed)][_0x1d2e34(0x106)](_0x1d2e34(0xcd))[_0x1d2e34(0xf1)](),_0x224e9e=_0x5ec3ba[_0x1d2e34(0xbb)]()[_0x1d2e34(0x139)][_0x1d2e34(0x100)][_0x1d2e34(0x100)],_0x49e12c=this[_0x1d2e34(0x135)][_0x1d2e34(0xc2)][_0x1d2e34(0x124)](this[_0x1d2e34(0x135)][_0x1d2e34(0xc2)][_0x1d2e34(0x17f)](_0x224e9e),this[_0x1d2e34(0x135)][_0x1d2e34(0xc2)][_0x1d2e34(0x178)](_0x224e9e)),_0x4003f7=this[_0x1d2e34(0x175)](_0x1711cf,_0x49e12c[_0x1d2e34(0x139)],_0x49e12c[_0x1d2e34(0x173)]);this[_0x1d2e34(0xfc)](_0x4003f7,_0x5ec3ba,{'isTableSelection':!0x0});const _0x520baf=_0x5ec3ba[_0x1d2e34(0xbb)]()[_0x1d2e34(0x139)],_0x2be0c9=new Map();let _0x5a9df0=_0x4003f7;for(let _0x50ac0e=0x0;_0x50ac0e<_0x520baf[_0x1d2e34(0x14e)][_0x1d2e34(0x17c)];_0x50ac0e++)if(_0x2be0c9[_0x1d2e34(0x120)](_0x5a9df0,_0x520baf[_0x1d2e34(0x14e)][_0x50ac0e]),_0x50ac0e<_0x520baf[_0x1d2e34(0x14e)][_0x1d2e34(0x17c)]-0x1)_0x5a9df0=_0x5a9df0[_0x1d2e34(0x141)](0x0);else{let _0x13d42d=_0x5a9df0[_0x1d2e34(0xb5)];for(;_0x13d42d;)_0x2be0c9[_0x1d2e34(0x120)](_0x13d42d,_0x520baf[_0x1d2e34(0x14e)][_0x50ac0e]),_0x13d42d=_0x13d42d[_0x1d2e34(0xb5)];}return{'modelFragment':_0x4003f7,'anchorData':_0x2be0c9};}async[_0x3ada87(0xd1)](_0x1b5069,_0x48bf0b,_0x6100bb,_0x811262,_0x3a5f19){const _0x18072e=_0x3ada87,_0x3314ec=this[_0x18072e(0x135)][_0x18072e(0xed)][_0x18072e(0x106)](_0x10bf81),_0x2ed6e5=this[_0x18072e(0x135)][_0x18072e(0xed)][_0x18072e(0x106)](_0x5ad783),_0x4e526a=this[_0x18072e(0x135)][_0x18072e(0xc2)][_0x18072e(0x12d)][_0x18072e(0xf7)],_0x41c8d9=await _0x3314ec[_0x18072e(0xdf)](_0x48bf0b),_0xfaf75b=this[_0x18072e(0x135)][_0x18072e(0xc2)][_0x18072e(0x12d)][_0x18072e(0x10b)],_0x456d75=[..._0x4e526a[_0x18072e(0x14b)]()];return this[_0x18072e(0xd3)]||(this[_0x18072e(0xd3)]=this[_0x18072e(0x110)]()),this[_0x18072e(0xcb)](),this[_0x18072e(0x166)](),this[_0x18072e(0xd3)][_0x18072e(0x150)](),_0x2ed6e5[_0x18072e(0x13f)]({'index':0x3e8*Math[_0x18072e(0x143)]()%0x3e8,'title':_0x811262,'icon':_0x3a5f19||_0x3b5a06,'mainView':this[_0x18072e(0xd3)],'class':_0x18072e(0xfa),'ranges':_0x456d75,'id':_0x18072e(0xe3)}),this[_0x18072e(0x10f)](),this[_0x18072e(0x146)](this[_0x18072e(0xd3)]),this[_0x18072e(0x146)](_0x2ed6e5),this[_0x18072e(0x161)]={'action':_0x1b5069,'content':_0x41c8d9,'version':_0xfaf75b,'aiBalloon':_0x2ed6e5,'modelFragment':_0x48bf0b,'anchorData':_0x6100bb},this[_0x18072e(0xdd)](),this[_0x18072e(0x13a)](_0x2ed6e5,_0x18072e(0x17a),()=>{const _0x111475=_0x18072e;this[_0x111475(0x12f)](),this[_0x111475(0xd3)][_0x111475(0xc8)]();}),this[_0x18072e(0x13a)](_0x2ed6e5,_0x18072e(0x185),(_0x48d8c0,{id:_0x670f7})=>{const _0x49ba4c=_0x18072e;if(_0x49ba4c(0xe3)===_0x670f7){if(this[_0x49ba4c(0xfe)]&&this[_0x49ba4c(0xfe)][_0x49ba4c(0xf9)][_0x49ba4c(0x17c)]>0x0){const _0x54176c=this[_0x49ba4c(0xfe)][_0x49ba4c(0xf9)][this[_0x49ba4c(0xfe)][_0x49ba4c(0xf9)][_0x49ba4c(0x17c)]-0x1],_0x4d9731=_0x54176c[_0x49ba4c(0x10c)][0x0];_0x4d9731&&_0x49ba4c(0xe6)===_0x4d9731[_0x49ba4c(0x148)]&&_0x54176c[_0x49ba4c(0x114)](0x0,_0x49ba4c(0x125));}this[_0x49ba4c(0x12f)](),this[_0x49ba4c(0xcb)](),this[_0x49ba4c(0x146)](this[_0x49ba4c(0xd3)]),this[_0x49ba4c(0x146)](_0x2ed6e5);}}),this[_0x18072e(0x102)](_0x41c8d9,_0xfaf75b,_0x2ed6e5,_0x1b5069);}[_0x3ada87(0xdd)](){const _0xaeadb0=_0x3ada87;if(!this[_0xaeadb0(0x161)])return;const {modelFragment:_0x3873db,anchorData:_0x2f4390}=this[_0xaeadb0(0x161)];this[_0xaeadb0(0x13a)](this[_0xaeadb0(0xd3)],_0xaeadb0(0x164),()=>{const _0x3e1869=_0xaeadb0;this[_0x3e1869(0xea)](_0x3873db,_0x2f4390,!0x1);}),this[_0xaeadb0(0x13a)](this[_0xaeadb0(0xd3)],_0xaeadb0(0x163),()=>{const _0x2992d8=_0xaeadb0;this[_0x2992d8(0xea)](_0x3873db,_0x2f4390,!0x0);});}[_0x3ada87(0x175)](_0x1c1575,_0x4721b2,_0x3e2826){const _0x4d008b=_0x3ada87,_0x17477b=this[_0x4d008b(0x135)][_0x4d008b(0xc2)][_0x4d008b(0x124)](_0x4721b2,_0x3e2826)[_0x4d008b(0x127)](),_0x2d5646=_0x17477b['is'](_0x4d008b(0x108))?[]:_0x17477b[_0x4d008b(0xe0)]({'includeSelf':!0x0})[_0x4d008b(0xce)](0x1);if(_0x2d5646[_0x4d008b(0x17c)]){const _0x3bd60c=_0x2d5646[_0x4d008b(0xc6)](_0x1b27e2=>_0x1b27e2[_0x4d008b(0xae)](!0x1));for(let _0x117212=0x1;_0x117212<_0x3bd60c[_0x4d008b(0x17c)];_0x117212++)_0x3bd60c[_0x117212-0x1][_0x4d008b(0xe8)](_0x3bd60c[_0x117212]);return _0x3bd60c[_0x3bd60c[_0x4d008b(0x17c)]-0x1][_0x4d008b(0xe8)](_0x1c1575),new _0xc33157(_0x3bd60c[0x0]);}return _0x1c1575;}[_0x3ada87(0xfc)](_0x29cafd,_0x2cfafe,_0x5b61af={'isTableSelection':!0x1}){const _0x1a0560=_0x3ada87,_0x1c18f9=this[_0x1a0560(0x135)][_0x1a0560(0xc2)],_0x157d2f=Array[_0x1a0560(0xf8)](_0x2cfafe[_0x1a0560(0x14b)]()),_0x3bd6fc=_0x2cfafe[_0x1a0560(0xbb)]()[_0x1a0560(0x139)];for(const _0x3bd823 of _0x1c18f9[_0x1a0560(0xd0)]){if(_0x3bd823[_0x1a0560(0x11e)][_0x1a0560(0xd7)](_0x457bf3)||!_0x3bd823[_0x1a0560(0x16f)])continue;const _0x114f76=_0x3bd823[_0x1a0560(0x13c)]();if(!_0x157d2f[_0x1a0560(0x105)](_0x4fd436=>_0x4fd436[_0x1a0560(0xee)](_0x114f76,!0x0)))continue;const _0x2055ec=this[_0x1a0560(0x11a)](_0x114f76[_0x1a0560(0x139)],_0x3bd6fc,_0x5b61af[_0x1a0560(0x107)]),_0x221d65=this[_0x1a0560(0x11a)](_0x114f76[_0x1a0560(0x173)],_0x3bd6fc,_0x5b61af[_0x1a0560(0x107)]),_0x28e2c0=_0x1c18f9[_0x1a0560(0x128)](_0x29cafd,_0x2055ec),_0x42f481=_0x1c18f9[_0x1a0560(0x128)](_0x29cafd,_0x221d65);if(!_0x28e2c0[_0x1a0560(0x183)](_0x42f481)){const _0x1e7fc8=_0x1c18f9[_0x1a0560(0x124)](_0x28e2c0,_0x42f481);_0x29cafd[_0x1a0560(0xd0)][_0x1a0560(0x120)](_0x3bd823[_0x1a0560(0x11e)],_0x1e7fc8);}}}[_0x3ada87(0x11a)](_0x2f3b41,_0x3c2525,_0x40c9ce=!0x1){const _0x6926a6=_0x3ada87,_0x353c5a=[..._0x2f3b41[_0x6926a6(0x14e)][_0x6926a6(0xce)]()];for(let _0x3db931=0x0;_0x3db931<Math[_0x6926a6(0xc5)](_0x3c2525[_0x6926a6(0x14e)][_0x6926a6(0x17c)],_0x2f3b41[_0x6926a6(0x14e)][_0x6926a6(0x17c)]);_0x3db931++){const _0x4722d9=_0x3c2525[_0x6926a6(0x14e)][_0x3db931]||0x0,_0x5742b5=(_0x2f3b41[_0x6926a6(0x14e)][_0x3db931]||0x0)-_0x4722d9;if(_0x353c5a[_0x3db931]=_0x5742b5,0x0!==_0x5742b5&&!_0x40c9ce)break;}return _0x353c5a;}async[_0x3ada87(0x102)](_0x2479a0,_0x36d7ed,_0x1bb938,_0x4c2b48){const _0x417154=_0x3ada87,_0x3dbd06=this[_0x417154(0x135)];this[_0x417154(0x161)]||(this[_0x417154(0x161)]={'action':_0x4c2b48,'content':_0x2479a0,'version':_0x36d7ed,'aiBalloon':_0x1bb938,'modelFragment':this[_0x417154(0x135)][_0x417154(0xc2)][_0x417154(0xaf)](this[_0x417154(0x135)][_0x417154(0xc2)][_0x417154(0x12d)][_0x417154(0xf7)]),'anchorData':new Map()});const _0x3e76ea=new _0x1447ff({'connector':this[_0x417154(0x145)],'editor':_0x3dbd06,'content':_0x2479a0,'version':_0x36d7ed,..._0x4c2b48});this[_0x417154(0x126)][_0x417154(0x122)](_0x3e76ea);const _0x5d04dc=(_0x4abf8,_0x375835=!0x1,_0x6c8b8c=_0x417154(0x11d))=>this[_0x417154(0x169)][_0x417154(0xb6)](async _0x3ebd9b=>{const _0x469006=_0x417154;try{const _0x6b5471=_0xe6b0f2({'editor':_0x3dbd06,'changeGroups':_0x4abf8[_0x469006(0x10c)],'documentContextContent':_0x4abf8[_0x469006(0x165)],'showDiff':_0x375835,'trimUnchanged':!0x1});_0x6b5471[_0x469006(0x17c)]&&await this[_0x469006(0xd3)][_0x469006(0x130)]({'part':_0x6b5471[0x0],'renderingStrategy':_0x6c8b8c,'abortSignal':_0x3ebd9b});}catch(_0x4b84b1){if(this[_0x469006(0x117)](_0x4b84b1))return;throw _0x4b84b1;}});this[_0x417154(0xfe)]['on'](_0x417154(0xe2),(_0x2c8c06,_0x20728b)=>{const _0xce8c21=_0x417154;this[_0xce8c21(0xd3)][_0xce8c21(0xb0)](),this[_0xce8c21(0xd3)][_0xce8c21(0x15f)](),_0x5d04dc(_0x20728b)[_0xce8c21(0x160)](_0x592f78=>{const _0x413954=_0xce8c21;this[_0x413954(0x117)](_0x592f78)||(console[_0x413954(0x138)](_0x413954(0x180),_0x592f78),this[_0x413954(0x14a)](_0x3e76ea));});}),this[_0x417154(0xfe)]['on'](_0x417154(0x109),(_0xee99ed,_0x42fc26)=>{const _0x1a59ab=_0x417154;_0x5d04dc(_0x42fc26)[_0x1a59ab(0x160)](_0x309430=>{const _0x86cebf=_0x1a59ab;this[_0x86cebf(0x117)](_0x309430)||(console[_0x86cebf(0x138)](_0x86cebf(0x112),_0x309430),this[_0x86cebf(0x14a)](_0x3e76ea));});}),this[_0x417154(0xfe)]['on'](_0x417154(0xc4),async()=>{const _0x1777b6=_0x417154;try{await this[_0x1777b6(0x170)](),this[_0x1777b6(0xd3)][_0x1777b6(0xeb)](this[_0x1777b6(0x126)][_0x1777b6(0x17c)],this[_0x1777b6(0x118)]),await this[_0x1777b6(0x169)][_0x1777b6(0xb3)];}catch(_0x7f3a14){this[_0x1777b6(0x117)](_0x7f3a14)||(console[_0x1777b6(0x138)](_0x1777b6(0x154),_0x7f3a14),this[_0x1777b6(0x14a)](_0x3e76ea));}finally{this[_0x1777b6(0xd3)][_0x1777b6(0x119)]();}}),this[_0x417154(0x13a)](this[_0x417154(0xd3)],_0x417154(0xf2),async(_0x1fc121,{showDiff:_0x2b6195})=>{const _0x6a601f=_0x417154;try{this[_0x6a601f(0x174)]=_0x2b6195;const _0xd7467b=this[_0x6a601f(0xfe)][_0x6a601f(0xf9)][this[_0x6a601f(0xfe)][_0x6a601f(0xf9)][_0x6a601f(0x17c)]-0x1];_0xd7467b&&await _0x5d04dc(_0xd7467b,_0x2b6195,_0x6a601f(0xc0));}catch(_0x418282){this[_0x6a601f(0x117)](_0x418282)||(console[_0x6a601f(0x138)](_0x6a601f(0x17b),_0x418282),this[_0x6a601f(0x14a)](_0x3e76ea));}}),this[_0x417154(0xfe)]['on'](_0x417154(0xe9),(_0x53db17,{reply:_0x2745c1})=>{const _0x58d83e=_0x417154,_0x144088={'positiveCount':_0x2745c1[_0x58d83e(0x10c)][_0x58d83e(0x101)](_0x7c499c=>_0x58d83e(0x147)===_0x7c499c[_0x58d83e(0x148)])[_0x58d83e(0x17c)],'totalCount':_0x2745c1[_0x58d83e(0x10c)][_0x58d83e(0x17c)]},_0x3182d7=this[_0x58d83e(0xfe)][_0x58d83e(0xc7)],_0x2c2325=this[_0x58d83e(0xfe)][_0x58d83e(0xe7)];_0x2c2325?this[_0x58d83e(0x145)][_0x58d83e(0x121)](_0x2c2325,_0x3182d7,_0x144088):this[_0x58d83e(0x145)][_0x58d83e(0x12a)](_0x3182d7,_0x144088);}),this[_0x417154(0x10f)]();try{const _0x4b9a87=await this[_0x417154(0xfe)][_0x417154(0x139)]();return this[_0x417154(0xd3)][_0x417154(0xeb)](this[_0x417154(0x126)][_0x417154(0x17c)],this[_0x417154(0x118)]),_0x4b9a87;}catch(_0x23ddd4){if(this[_0x417154(0x117)](_0x23ddd4))return;this[_0x417154(0xd3)][_0x417154(0xb0)](),this[_0x417154(0x14a)](_0x3e76ea);}}[_0x3ada87(0xea)](_0x335419,_0x29ba53,_0x143c35){const _0x251208=_0x3ada87,_0x28a751=this[_0x251208(0x135)];if(_0x143c35&&!_0x28a751[_0x251208(0xed)][_0x251208(0x17d)](_0x251208(0x140)))throw new _0x4db94f(_0x251208(0xf0),null);const _0x2b19e4=this[_0x251208(0x135)][_0x251208(0xed)][_0x251208(0x106)](_0x12c606),_0x519714=this[_0x251208(0x126)][this[_0x251208(0x126)][_0x251208(0x17c)]-0x1-this[_0x251208(0x118)]];if(!_0x519714||!_0x519714[_0x251208(0xf9)][_0x251208(0x17c)])return;const _0x5407a6=_0x519714[_0x251208(0xf9)][_0x519714[_0x251208(0xf9)][_0x251208(0x17c)]-0x1],_0x2dada9=_0x5407a6[_0x251208(0x10c)];_0x5407a6[_0x251208(0x114)](0x0,_0x251208(0x147));let _0x43ab72=_0x3aa0c1({'editor':_0x28a751,'reply':_0x5407a6,'interaction':_0x519714,'groups':_0x2dada9,'transform':!0x1,'documentCompare':_0x2b19e4,'documentCompareOptions':{'anchor':_0x28a751[_0x251208(0xc2)][_0x251208(0x158)](_0x335419,0x0),'markDeletions':_0x143c35}});_0x43ab72=this[_0x251208(0x171)](_0x43ab72,_0x29ba53);for(const _0x1674cc of _0x43ab72)this[_0x251208(0x14c)](_0x29ba53,_0x1674cc,_0x28a751[_0x251208(0xc2)][_0x251208(0x12d)][_0x251208(0x13b)]());const _0x23a899=_0x519714[_0x251208(0x186)]()[_0x251208(0x10b)],_0x410bea=_0x28a751[_0x251208(0xc2)][_0x251208(0x12d)][_0x251208(0x116)][_0x251208(0x14d)](_0x23a899),_0xc76fde={'document':_0x28a751[_0x251208(0xc2)][_0x251208(0x12d)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x478d14=_0x4cd9d9(_0x43ab72,_0x410bea,_0xc76fde)[_0x251208(0x10d)];_0x28a751[_0x251208(0xc2)][_0x251208(0x16b)](_0x514f03=>{const _0x7a4ada=_0x251208;if(_0x514f03[_0x7a4ada(0x104)](_0x28a751[_0x7a4ada(0xc2)][_0x7a4ada(0x12d)][_0x7a4ada(0xf7)][_0x7a4ada(0x136)]),_0x143c35)_0x28a751[_0x7a4ada(0xed)][_0x7a4ada(0x106)](_0x7a4ada(0x17e))[_0x7a4ada(0x181)](_0x478d14);else{for(const _0x164899 of _0x478d14)_0x164899[_0x7a4ada(0xb4)]=_0x28a751[_0x7a4ada(0xc2)][_0x7a4ada(0x12d)][_0x7a4ada(0x10b)],_0xc2b64a(_0x28a751,_0x164899),_0x514f03[_0x7a4ada(0x15d)][_0x7a4ada(0xbc)](_0x164899),_0x28a751[_0x7a4ada(0xc2)][_0x7a4ada(0x172)](_0x164899);}}),this[_0x251208(0x135)][_0x251208(0xed)][_0x251208(0x106)](_0x251208(0x111))[_0x251208(0xc9)]();}[_0x3ada87(0x171)](_0x1bfb1e,_0x1e305d){const _0x1b0f7b=_0x3ada87;return _0x1bfb1e[_0x1b0f7b(0x101)](_0x35675e=>{const _0x3c502a=_0x1b0f7b;if(_0x3c502a(0x15a)==_0x35675e[_0x3c502a(0x144)]){const _0x39ed27=_0x35675e[_0x3c502a(0xff)][_0x3c502a(0x187)];return!_0x1e305d[_0x3c502a(0x17d)](_0x39ed27);}if(_0x35675e[_0x3c502a(0x144)][_0x3c502a(0x16a)](_0x3c502a(0xdc))>-0x1){const _0x1429d2=_0x35675e[_0x3c502a(0xf5)][_0x3c502a(0x139)][_0x3c502a(0x187)];return!_0x1e305d[_0x3c502a(0x17d)](_0x1429d2);}return!0x0;});}[_0x3ada87(0x14c)](_0x151620,_0x7becf7,_0x59027f){const _0x398bc4=_0x3ada87,_0x525548=_0x7becf7[_0x398bc4(0x16c)]();for(const _0x5511e1 in _0x7becf7){const _0x5da907=_0x7becf7[_0x5511e1];_0x5da907 instanceof _0x511751?_0x7becf7[_0x5511e1]=new _0x511751(_0x92dbbf(_0x5da907[_0x398bc4(0x139)]),_0x92dbbf(_0x5da907[_0x398bc4(0x173)])):_0x5da907 instanceof _0x462da1&&(_0x7becf7[_0x5511e1]=_0x92dbbf(_0x5da907));}if([_0x398bc4(0x179),_0x398bc4(0x11f),_0x398bc4(0x182),_0x398bc4(0x157),_0x398bc4(0x131),_0x398bc4(0xbe)][_0x398bc4(0x15c)](_0x525548[_0x398bc4(0x144)])){if(_0x525548[_0x398bc4(0xfb)]=!0x1,_0x525548[_0x398bc4(0xb4)]=null,_0x398bc4(0x182)==_0x525548[_0x398bc4(0x144)]){const _0x342bd7=_0x525548[_0x398bc4(0xd2)],_0x3d2d1b=_0x525548[_0x398bc4(0xf3)];new _0x574926(_0x342bd7,_0x3d2d1b)[_0x398bc4(0xfd)]();}else _0x525548[_0x398bc4(0xfd)]();}function _0x92dbbf(_0x347613){const _0x61ae93=_0x398bc4;if(_0x61ae93(0xac)==_0x347613[_0x61ae93(0xde)][_0x61ae93(0x11c)])return _0x347613;const _0x2e3870=[];let _0x50a388=_0x347613[_0x61ae93(0xde)];for(let _0x964b9b=0x0;_0x964b9b<_0x347613[_0x61ae93(0x14e)][_0x61ae93(0x17c)];_0x964b9b++){const _0x387f7a=_0x151620[_0x61ae93(0x106)](_0x50a388)||0x0;_0x2e3870[_0x964b9b]=_0x347613[_0x61ae93(0x14e)][_0x964b9b]+_0x387f7a,_0x50a388=_0x50a388[_0x61ae93(0x184)](_0x347613[_0x61ae93(0x14e)][_0x964b9b]);}return new _0x462da1(_0x59027f,_0x2e3870,_0x347613[_0x61ae93(0xb2)]);}}[_0x3ada87(0x15b)](){const _0x3a8f62=_0x3ada87;if(!this[_0x3a8f62(0x161)])return;this[_0x3a8f62(0x126)][_0x3a8f62(0x17c)]>0x0&&this[_0x3a8f62(0x12f)](),this[_0x3a8f62(0x118)]=0x0,this[_0x3a8f62(0x174)]=!0x1;const {action:_0xf3e615,content:_0x49015e,version:_0x169527,aiBalloon:_0x10e369}=this[_0x3a8f62(0x161)];this[_0x3a8f62(0x166)](),this[_0x3a8f62(0xd3)][_0x3a8f62(0x150)](),this[_0x3a8f62(0xd3)][_0x3a8f62(0x115)](),this[_0x3a8f62(0xd3)][_0x3a8f62(0xd5)](),this[_0x3a8f62(0xd3)][_0x3a8f62(0xeb)](this[_0x3a8f62(0x126)][_0x3a8f62(0x17c)],this[_0x3a8f62(0x118)]),this[_0x3a8f62(0x146)](this[_0x3a8f62(0xd3)]),this[_0x3a8f62(0xdd)](),this[_0x3a8f62(0x102)](_0x49015e,_0x169527,_0x10e369,_0xf3e615)[_0x3a8f62(0x160)](_0x1da04b=>{const _0x50d123=_0x3a8f62;this[_0x50d123(0x117)](_0x1da04b)||console[_0x50d123(0x138)](_0x50d123(0x10a),_0x1da04b);});}[_0x3ada87(0x117)](_0x44441d){const _0x2b0b90=_0x3ada87;return!!_0x44441d[_0x2b0b90(0xcc)]&&_0x44441d[_0x2b0b90(0xcc)][_0x2b0b90(0xd7)](_0x2b0b90(0xd9));}[_0x3ada87(0xcb)](){const _0x3f0d85=_0x3ada87;this[_0x3f0d85(0x126)]=[],this[_0x3f0d85(0x161)]=void 0x0,this[_0x3f0d85(0x118)]=0x0,this[_0x3f0d85(0xd3)][_0x3f0d85(0xeb)](this[_0x3f0d85(0x126)][_0x3f0d85(0x17c)],this[_0x3f0d85(0x118)]);}[_0x3ada87(0x12f)](){const _0x2f0232=_0x3ada87;this[_0x2f0232(0xfe)]&&this[_0x2f0232(0xfe)][_0x2f0232(0x156)](),this[_0x2f0232(0x169)][_0x2f0232(0xef)](),this[_0x2f0232(0xab)]=!0x1,this[_0x2f0232(0x161)]&&this[_0x2f0232(0xd3)][_0x2f0232(0x119)]();}[_0x3ada87(0x159)](){const _0x3b5ca3=_0x3ada87,_0x22cdb6=this[_0x3b5ca3(0x126)][_0x3b5ca3(0x17c)];this[_0x3b5ca3(0x118)]<_0x22cdb6-0x1&&this[_0x3b5ca3(0x167)](this[_0x3b5ca3(0x118)]+0x1);}[_0x3ada87(0x132)](){const _0xa0c24a=_0x3ada87;this[_0xa0c24a(0x118)]>0x0&&this[_0xa0c24a(0x167)](this[_0xa0c24a(0x118)]-0x1);}async[_0x3ada87(0x167)](_0x4a250d){const _0x54df59=_0x3ada87;if(!this[_0x54df59(0x161)])return;this[_0x54df59(0x118)]=_0x4a250d;const _0x432d70=this[_0x54df59(0x126)][this[_0x54df59(0x126)][_0x54df59(0x17c)]-0x1-this[_0x54df59(0x118)]];if(!_0x432d70)return;if(_0x432d70[_0x54df59(0xdb)])return this[_0x54df59(0x14a)](_0x432d70),void this[_0x54df59(0xd3)][_0x54df59(0xeb)](this[_0x54df59(0x126)][_0x54df59(0x17c)],this[_0x54df59(0x118)]);if(!_0x432d70[_0x54df59(0xf9)][_0x54df59(0x17c)])return;this[_0x54df59(0xd3)][_0x54df59(0x10e)](),this[_0x54df59(0x161)]&&this[_0x54df59(0x166)]();const _0x3f56c0=_0x432d70[_0x54df59(0xf9)][_0x432d70[_0x54df59(0xf9)][_0x54df59(0x17c)]-0x1];if(_0x3f56c0){const _0x1f950f=this[_0x54df59(0x135)];try{const _0x12c1e7=_0xe6b0f2({'editor':_0x1f950f,'changeGroups':_0x3f56c0[_0x54df59(0x10c)],'documentContextContent':_0x3f56c0[_0x54df59(0x165)],'showDiff':this[_0x54df59(0x174)],'trimUnchanged':!0x1});await new Promise(_0x5a7d7f=>setTimeout(_0x5a7d7f,0x32)),await this[_0x54df59(0xd3)][_0x54df59(0x130)]({'part':_0x12c1e7[0x0],'renderingStrategy':_0x54df59(0xc0),'abortSignal':new AbortController()[_0x54df59(0x12e)]});}catch(_0x1c542a){this[_0x54df59(0x117)](_0x1c542a)||console[_0x54df59(0x138)](_0x54df59(0xba),_0x1c542a);}}this[_0x54df59(0xd3)][_0x54df59(0xeb)](this[_0x54df59(0x126)][_0x54df59(0x17c)],this[_0x54df59(0x118)]);}[_0x3ada87(0x10f)](){const _0x38c323=_0x3ada87;this[_0x38c323(0xd3)][_0x38c323(0xc1)](!0x0),this[_0x38c323(0xab)]=!0x0;}async[_0x3ada87(0x14a)](_0x4fc0fc){const _0x2634e2=_0x3ada87,_0xbfa24f=_0x25dd6b(this[_0x2634e2(0x135)][_0x2634e2(0x134)],_0x2634e2(0x123));this[_0x2634e2(0xd3)][_0x2634e2(0x13e)](_0xbfa24f),_0x4fc0fc[_0x2634e2(0xdb)]=!0x0,await this[_0x2634e2(0x169)][_0x2634e2(0xb3)],this[_0x2634e2(0xd3)][_0x2634e2(0x16d)](),this[_0x2634e2(0xd3)][_0x2634e2(0xd6)](!0x0);}[_0x3ada87(0x166)](){const _0x45da03=_0x3ada87;this[_0x45da03(0xd3)][_0x45da03(0x10e)](),this[_0x45da03(0xd3)][_0x45da03(0xd6)](!0x1);}async[_0x3ada87(0x170)](){const _0x44c1da=_0x3ada87;await this[_0x44c1da(0x169)][_0x44c1da(0xb3)],this[_0x44c1da(0xab)]=!0x1,this[_0x44c1da(0xd3)][_0x44c1da(0xc1)](!0x1);}}
|
|
23
|
+
const _0x152c53=_0x41a2;function _0x41a2(_0x7403c5,_0x1ed06c){const _0x70bc17=_0x70bc();return _0x41a2=function(_0x41a218,_0xc00a45){_0x41a218=_0x41a218-0xab;let _0x133fc8=_0x70bc17[_0x41a218];return _0x133fc8;},_0x41a2(_0x7403c5,_0x1ed06c);}(function(_0x3d84e9,_0x583222){const _0x2d170f=_0x41a2,_0x5a25f4=_0x3d84e9();while(!![]){try{const _0xf47248=-parseInt(_0x2d170f(0x182))/0x1+parseInt(_0x2d170f(0x150))/0x2+parseInt(_0x2d170f(0x133))/0x3*(-parseInt(_0x2d170f(0x16e))/0x4)+-parseInt(_0x2d170f(0xbd))/0x5*(parseInt(_0x2d170f(0xef))/0x6)+-parseInt(_0x2d170f(0xc2))/0x7+-parseInt(_0x2d170f(0xf7))/0x8+parseInt(_0x2d170f(0x149))/0x9;if(_0xf47248===_0x583222)break;else _0x5a25f4['push'](_0x5a25f4['shift']());}catch(_0x27f20a){_0x5a25f4['push'](_0x5a25f4['shift']());}}}(_0x70bc,0xea8ae));import{Plugin as _0x41eb95}from'ckeditor5/src/core.js';import{AIConnector as _0x340209}from'../aicore/aiconnector.js';import{Dialog as _0x5a4d26,BodyCollection as _0x58b515}from'ckeditor5/src/ui.js';import{AIEditing as _0x406557,AI_VISUAL_SELECTION_MARKER_NAME as _0x4b00fa}from'../aicore/aiediting.js';function _0x70bc(){const _0x24b5a3=['_clearErrorState','schema','interactionFinished','ai-no-track-changes','pending','getSelectedTableCells','config','nextSibling','stop','accepted','root','actionCallId','setErrorState','1901872BrCWGK','createPositionAt','documentFragment','getFirstRange','attachToDom','type','static','trackChanges','_execute','_copyMarkersToFragment','value','_filterOperationsOutsideRange','replyCreated','queueEmptyPromise','updateContent','_executeAction','AIConnector','ai-request-aborted','_currentInteractionIndex','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','1483916eaoZiU','isOfficialPlugin','_clearInteractionHistory','position','Attribute','showNext','_setLoadingState','_aiConnector','replyChangeGroupStateUpdated','includes','replies','remove','applyOperation','start','markers','close','howMany','open','length','_navigateToNext','AIBalloon','startAutoScroll','149525rYZzaA','getCommonAncestor','parent','some','changeGroups','2055515DGpmNX','addOperation','indexOf','ck-ai-actions-balloon','_stopInteraction','applySuggestion','_interactionParams','sourcePosition','replyContentUpdated','_balloonShowDiff','_interactions','showError','error','path','AI_ACTIONS_GENERIC_ERROR','history','_interaction','createPositionBefore','nodeAfter','version','_appendChild','enqueue','getRanges','documentContextContent','clone','has','isBusy','modelToDataWithIds','isTrackChangesOn','max','isTableSelection','Error\x20updating\x20content\x20during\x20navigation:','resetShowChangesButton','startsWith','split','_applyChanges','ai.availableReplyActions','actionName','_createActionsBalloonView','_wrapWithCommonAncestors','toggleSuggestionDisplayMode','icon','requires','getSelectionAsFragment','getSelectedBlocks','222wIstVU','insert','stopInteraction','TableSelection','upsertCustomAIActionRating','listenTo','isEqual','plugins','12808240uCUPjH','aiActionsBalloon','getRoot','containsRange','Error\x20refreshing\x20interaction:','getChildAtOffset','operationsA','_getExecuteDataInTable','_refreshInteraction','disableMiniToolbarButtons','isDocumentOperation','range','editor','merge','message','isCollapsed','_applyOperationsAsSuggestions','Error\x20updating\x20content\x20in\x20replyCreated:','getSelectedContent','showLoader','focus','updateMiniToolbarButtons','getChild','hasError','pluginName','bind','_getExecuteDataRegular','streaming','move','_bodyCollection','showPrevious','_clearLoadingState','state','stickiness','_setErrorState','clearContent','rootName','detachFromDom','_anchorOperation','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','signal','rename','getLimitElement','isPremiumPlugin','change','get','filter','setChangeGroupState','_displayInteractionAtIndex','rejected','hideError','_navigateToPrevious','reinsert','selection','hideLoader','TrackChanges','insertSuggestion','_createInteraction','_setupApplyListeners','getOperations','6QgIaWC','AIActions','locale','dialogClosed','name','createRange','baseVersion','getRange','_actionsBalloonView','createPositionFromPath','setIsLoading','push','executeAction','affectsData','stopListening','createPositionAfter','getDocumentContext','getAncestors','upsertAIActionRating','slice','$graveyard','Error\x20updating\x20content\x20in\x20replyContentUpdated:','41523678uLvTCA','model','_isAbortError','_clone','_promiseQueue','batch','setSelection','3565912iFKycW','toggleIsLoading','set','random','catch','stopAutoScroll','end','from','document','map','selectionRemoved','tryAgain','commands','abort','_regularCalculateMarkerPath','destroy','TrackChangesEditing'];_0x70bc=function(){return _0x24b5a3;};return _0x70bc();}import{AIActionsInteraction as _0x359670}from'./model/aiactionsinteraction.js';import{CKEditorError as _0x35b6a0,first as _0x554c68}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x18358c}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x391bc7}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x65b675}from'../aichat/utils/promisequeue.js';import{getTranslation as _0x3e626d}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x1f35d3}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x105bba}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x418d4b,getOperationsFromReply as _0x4373d8}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x43722f,ModelRange as _0x2baa47,ModelPosition as _0x5ae0f7,_DetachOperation as _0x20e9db,transformOperationSets as _0x2f660b}from'ckeditor5/src/engine.js';import{AI_REPLY_ACTIONS as _0x4e1ad0}from'../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIActionsBalloonView as _0x24e473}from'../aiquickactions/ui/balloon/aiactionsballoonview.js';export class AIActions extends _0x41eb95{static get[_0x152c53(0xec)](){return[_0x340209,_0x5a4d26,_0x406557,_0x391bc7,_0x105bba];}static get[_0x152c53(0x10f)](){const _0x5bee5a=_0x152c53;return _0x5bee5a(0x134);}static get[_0x152c53(0x183)](){return!0x0;}static get[_0x152c53(0x122)](){return!0x0;}[_0x152c53(0xae)];[_0x152c53(0xcc)]=[];[_0x152c53(0x180)]=0x0;[_0x152c53(0xc8)];[_0x152c53(0xcb)]=!0x1;[_0x152c53(0x14d)];[_0x152c53(0x114)];get[_0x152c53(0xd2)](){const _0x199467=_0x152c53;return this[_0x199467(0xcc)][this[_0x199467(0xcc)][_0x199467(0xb9)]-0x1];}[_0x152c53(0x13b)];constructor(_0x3e3300){const _0x431337=_0x152c53;super(_0x3e3300),this[_0x431337(0x114)]=new _0x58b515(this[_0x431337(0x103)][_0x431337(0x135)]),this[_0x431337(0x114)][_0x431337(0x172)](),this[_0x431337(0xae)]=this[_0x431337(0x103)][_0x431337(0xf6)][_0x431337(0x124)](_0x431337(0x17e)),this[_0x431337(0x152)](_0x431337(0xdc),!0x1),this[_0x431337(0x14d)]=new _0x65b675();}[_0x152c53(0xf1)](){const _0x2807b9=_0x152c53;this[_0x2807b9(0xc6)]();}async[_0x152c53(0x13f)](_0x34e6d3,_0x25dcec,_0x3afdeb){const _0x3f1adf=_0x152c53;if(this[_0x3f1adf(0xc6)](),this[_0x3f1adf(0x103)][_0x3f1adf(0xf6)][_0x3f1adf(0xdb)](_0x3f1adf(0xf2))){if(this[_0x3f1adf(0x103)][_0x3f1adf(0xf6)][_0x3f1adf(0x124)](_0x3f1adf(0xf2))[_0x3f1adf(0x166)]()){const {modelFragment:_0x44b4ee,anchorData:_0x4cbe6b}=this[_0x3f1adf(0xfe)]();return this[_0x3f1adf(0x17d)](_0x34e6d3,_0x44b4ee,_0x4cbe6b,_0x25dcec,_0x3afdeb);}}const {modelFragment:_0x5743db,anchorData:_0x1f8c5b}=this[_0x3f1adf(0x111)]();return this[_0x3f1adf(0x17d)](_0x34e6d3,_0x5743db,_0x1f8c5b,_0x25dcec,_0x3afdeb);}async[_0x152c53(0x15f)](){const _0x1036db=_0x152c53;return this[_0x1036db(0xc6)](),this[_0x1036db(0x114)][_0x1036db(0x11c)](),super[_0x1036db(0x15f)]();}[_0x152c53(0xe8)](){const _0x5368da=_0x152c53,_0x21a0fb=this[_0x5368da(0x103)][_0x5368da(0xf6)][_0x5368da(0xdb)](_0x5368da(0x12e));let _0x364be4=this[_0x5368da(0x103)][_0x5368da(0x167)][_0x5368da(0x124)](_0x5368da(0xe6))||[..._0x4e1ad0];_0x21a0fb||(_0x364be4=_0x364be4[_0x5368da(0x125)](_0x4fb0fb=>_0x5368da(0x12f)!=_0x4fb0fb));const _0x38d58f=this[_0x5368da(0x103)][_0x5368da(0x15c)][_0x5368da(0x124)](_0x5368da(0x175)),_0x180636=new _0x24e473(this[_0x5368da(0x103)][_0x5368da(0x135)],{'showApplyButton':!0x0,'showSuggestButton':_0x21a0fb,'miniToolbarConfig':{'showChanges':_0x5368da(0xeb)},'availableActions':_0x364be4});return _0x180636[_0x5368da(0x110)](_0x5368da(0xdc))['to'](this),_0x38d58f&&_0x180636[_0x5368da(0x110)](_0x5368da(0xde))['to'](_0x38d58f,_0x5368da(0x178)),_0x180636['on'](_0x5368da(0x15b),()=>{const _0x570fbd=_0x5368da;this[_0x570fbd(0xff)]();}),_0x180636['on'](_0x5368da(0x115),()=>{const _0x6b3037=_0x5368da;this[_0x6b3037(0x12a)]();}),_0x180636['on'](_0x5368da(0xac),()=>{const _0x5b176a=_0x5368da;this[_0x5b176a(0xba)]();}),_0x180636;}[_0x152c53(0x111)](){const _0x337c89=_0x152c53,_0x3816b5=this[_0x337c89(0x103)][_0x337c89(0x14a)][_0x337c89(0x158)][_0x337c89(0x12c)];if(_0x3816b5[_0x337c89(0x106)]){const _0x585fd2=_0x554c68(_0x3816b5[_0x337c89(0xee)]())||this[_0x337c89(0x103)][_0x337c89(0x14a)][_0x337c89(0x162)][_0x337c89(0x121)](_0x3816b5);this[_0x337c89(0x103)][_0x337c89(0x14a)][_0x337c89(0x123)](_0x50fad1=>{const _0x44077d=_0x337c89;_0x50fad1[_0x44077d(0x14f)](_0x585fd2,'in');});}const _0x10adfe=_0x3816b5[_0x337c89(0x171)](),_0xbf551d=this[_0x337c89(0xe9)](this[_0x337c89(0x103)][_0x337c89(0x14a)][_0x337c89(0x109)](_0x3816b5),_0x10adfe[_0x337c89(0xb4)],_0x10adfe[_0x337c89(0x156)]);this[_0x337c89(0x177)](_0xbf551d,_0x3816b5,{'isTableSelection':!0x1});const _0xac11fe=_0x3816b5[_0x337c89(0x171)]()[_0x337c89(0xb4)],_0x785464=new Map();let _0x700dad=_0xbf551d;for(let _0x222888=0x0;_0x222888<_0xac11fe[_0x337c89(0xcf)][_0x337c89(0xb9)];_0x222888++)_0x785464[_0x337c89(0x152)](_0x700dad,_0xac11fe[_0x337c89(0xcf)][_0x222888]),_0x700dad=_0x700dad[_0x337c89(0x10d)](0x0);return{'modelFragment':_0xbf551d,'anchorData':_0x785464};}[_0x152c53(0xfe)](){const _0x3e5a6d=_0x152c53,_0x527a76=this[_0x3e5a6d(0x103)][_0x3e5a6d(0x14a)][_0x3e5a6d(0x158)][_0x3e5a6d(0x12c)],_0x291b3c=this[_0x3e5a6d(0x103)][_0x3e5a6d(0xf6)][_0x3e5a6d(0x124)](_0x3e5a6d(0xf2))[_0x3e5a6d(0xed)](),_0x2cb747=_0x527a76[_0x3e5a6d(0x171)]()[_0x3e5a6d(0xb4)][_0x3e5a6d(0xbf)][_0x3e5a6d(0xbf)],_0x527b1f=this[_0x3e5a6d(0x103)][_0x3e5a6d(0x14a)][_0x3e5a6d(0x138)](this[_0x3e5a6d(0x103)][_0x3e5a6d(0x14a)][_0x3e5a6d(0xd3)](_0x2cb747),this[_0x3e5a6d(0x103)][_0x3e5a6d(0x14a)][_0x3e5a6d(0x142)](_0x2cb747)),_0xa40141=this[_0x3e5a6d(0xe9)](_0x291b3c,_0x527b1f[_0x3e5a6d(0xb4)],_0x527b1f[_0x3e5a6d(0x156)]);this[_0x3e5a6d(0x177)](_0xa40141,_0x527a76,{'isTableSelection':!0x0});const _0x3690f3=_0x527a76[_0x3e5a6d(0x171)]()[_0x3e5a6d(0xb4)],_0x328335=new Map();let _0x5d4e62=_0xa40141;for(let _0x4468c0=0x0;_0x4468c0<_0x3690f3[_0x3e5a6d(0xcf)][_0x3e5a6d(0xb9)];_0x4468c0++)if(_0x328335[_0x3e5a6d(0x152)](_0x5d4e62,_0x3690f3[_0x3e5a6d(0xcf)][_0x4468c0]),_0x4468c0<_0x3690f3[_0x3e5a6d(0xcf)][_0x3e5a6d(0xb9)]-0x1)_0x5d4e62=_0x5d4e62[_0x3e5a6d(0x10d)](0x0);else{let _0x3e53e9=_0x5d4e62[_0x3e5a6d(0x168)];for(;_0x3e53e9;)_0x328335[_0x3e5a6d(0x152)](_0x3e53e9,_0x3690f3[_0x3e5a6d(0xcf)][_0x4468c0]),_0x3e53e9=_0x3e53e9[_0x3e5a6d(0x168)];}return{'modelFragment':_0xa40141,'anchorData':_0x328335};}async[_0x152c53(0x17d)](_0x3eb836,_0x1f41d5,_0x5a09b9,_0x1e142b,_0x2dfeb0){const _0x52b95f=_0x152c53,_0x11bcff=this[_0x52b95f(0x103)][_0x52b95f(0xf6)][_0x52b95f(0x124)](_0x406557),_0x500df3=this[_0x52b95f(0x103)][_0x52b95f(0xf6)][_0x52b95f(0x124)](_0x391bc7),_0x59f919=this[_0x52b95f(0x103)][_0x52b95f(0x14a)][_0x52b95f(0x158)][_0x52b95f(0x12c)],_0x3839a5=await _0x11bcff[_0x52b95f(0xdd)](_0x1f41d5),_0x2ba42=this[_0x52b95f(0x103)][_0x52b95f(0x14a)][_0x52b95f(0x158)][_0x52b95f(0xd5)],_0x14ec0=[..._0x59f919[_0x52b95f(0xd8)]()];return this[_0x52b95f(0x13b)]||(this[_0x52b95f(0x13b)]=this[_0x52b95f(0xe8)]()),this[_0x52b95f(0x184)](),this[_0x52b95f(0x161)](),this[_0x52b95f(0x13b)][_0x52b95f(0x11a)](),_0x500df3[_0x52b95f(0xb8)]({'index':0x3e8*Math[_0x52b95f(0x153)]()%0x3e8,'title':_0x1e142b,'icon':_0x2dfeb0||_0x18358c,'mainView':this[_0x52b95f(0x13b)],'class':_0x52b95f(0xc5),'ranges':_0x14ec0,'id':_0x52b95f(0xf8)}),this[_0x52b95f(0xad)](),this[_0x52b95f(0x141)](this[_0x52b95f(0x13b)]),this[_0x52b95f(0x141)](_0x500df3),this[_0x52b95f(0xc8)]={'action':_0x3eb836,'content':_0x3839a5,'version':_0x2ba42,'aiBalloon':_0x500df3,'modelFragment':_0x1f41d5,'anchorData':_0x5a09b9},this[_0x52b95f(0x131)](),this[_0x52b95f(0xf4)](_0x500df3,_0x52b95f(0x15a),()=>{const _0x449250=_0x52b95f;this[_0x449250(0xc6)](),this[_0x449250(0x13b)][_0x449250(0x100)]();}),this[_0x52b95f(0xf4)](_0x500df3,_0x52b95f(0x136),(_0x16cbba,{id:_0x5dea06})=>{const _0x4cbadf=_0x52b95f;if(_0x4cbadf(0xf8)===_0x5dea06){if(this[_0x4cbadf(0xd2)]&&this[_0x4cbadf(0xd2)][_0x4cbadf(0xb1)][_0x4cbadf(0xb9)]>0x0){const _0xf8de6e=this[_0x4cbadf(0xd2)][_0x4cbadf(0xb1)][this[_0x4cbadf(0xd2)][_0x4cbadf(0xb1)][_0x4cbadf(0xb9)]-0x1],_0x49b2ef=_0xf8de6e[_0x4cbadf(0xc1)][0x0];_0x49b2ef&&_0x4cbadf(0x165)===_0x49b2ef[_0x4cbadf(0x117)]&&_0xf8de6e[_0x4cbadf(0x126)](0x0,_0x4cbadf(0x128));}this[_0x4cbadf(0xc6)](),this[_0x4cbadf(0x184)](),this[_0x4cbadf(0x141)](this[_0x4cbadf(0x13b)]),this[_0x4cbadf(0x141)](_0x500df3);}}),this[_0x52b95f(0x130)](_0x3839a5,_0x2ba42,_0x500df3,_0x3eb836);}[_0x152c53(0x131)](){const _0x16b5b7=_0x152c53;if(!this[_0x16b5b7(0xc8)])return;const {modelFragment:_0x887dae,anchorData:_0xdd083}=this[_0x16b5b7(0xc8)];this[_0x16b5b7(0xf4)](this[_0x16b5b7(0x13b)],_0x16b5b7(0xc7),()=>{const _0x27b0d1=_0x16b5b7;this[_0x27b0d1(0xe5)](_0x887dae,_0xdd083,!0x1);}),this[_0x16b5b7(0xf4)](this[_0x16b5b7(0x13b)],_0x16b5b7(0x12f),()=>{const _0x4d6e73=_0x16b5b7;this[_0x4d6e73(0xe5)](_0x887dae,_0xdd083,!0x0);});}[_0x152c53(0xe9)](_0x30cf7f,_0x20dbfe,_0x2467f8){const _0x568c70=_0x152c53,_0x1cbbf8=this[_0x568c70(0x103)][_0x568c70(0x14a)][_0x568c70(0x138)](_0x20dbfe,_0x2467f8)[_0x568c70(0xbe)](),_0x29539b=_0x1cbbf8['is'](_0x568c70(0x170))?[]:_0x1cbbf8[_0x568c70(0x144)]({'includeSelf':!0x0})[_0x568c70(0x146)](0x1);if(_0x29539b[_0x568c70(0xb9)]){const _0x23b462=_0x29539b[_0x568c70(0x159)](_0x592fb6=>_0x592fb6[_0x568c70(0x14c)](!0x1));for(let _0x1e66d6=0x1;_0x1e66d6<_0x23b462[_0x568c70(0xb9)];_0x1e66d6++)_0x23b462[_0x1e66d6-0x1][_0x568c70(0xd6)](_0x23b462[_0x1e66d6]);return _0x23b462[_0x23b462[_0x568c70(0xb9)]-0x1][_0x568c70(0xd6)](_0x30cf7f),new _0x43722f(_0x23b462[0x0]);}return _0x30cf7f;}[_0x152c53(0x177)](_0x2e55b6,_0x29f069,_0x2203d2={'isTableSelection':!0x1}){const _0x1b3740=_0x152c53,_0xe50393=this[_0x1b3740(0x103)][_0x1b3740(0x14a)],_0x1e05fb=Array[_0x1b3740(0x157)](_0x29f069[_0x1b3740(0xd8)]()),_0x8eb31e=_0x29f069[_0x1b3740(0x171)]()[_0x1b3740(0xb4)];for(const _0x5ece0c of _0xe50393[_0x1b3740(0xb5)]){if(_0x5ece0c[_0x1b3740(0x137)][_0x1b3740(0xe3)](_0x4b00fa)||!_0x5ece0c[_0x1b3740(0x140)])continue;const _0x3bd399=_0x5ece0c[_0x1b3740(0x13a)]();if(!_0x1e05fb[_0x1b3740(0xc0)](_0x3d0eee=>_0x3d0eee[_0x1b3740(0xfa)](_0x3bd399,!0x0)))continue;const _0x22b4df=this[_0x1b3740(0x15e)](_0x3bd399[_0x1b3740(0xb4)],_0x8eb31e,_0x2203d2[_0x1b3740(0xe0)]),_0x553dad=this[_0x1b3740(0x15e)](_0x3bd399[_0x1b3740(0x156)],_0x8eb31e,_0x2203d2[_0x1b3740(0xe0)]),_0x2b4f09=_0xe50393[_0x1b3740(0x13c)](_0x2e55b6,_0x22b4df),_0x12b161=_0xe50393[_0x1b3740(0x13c)](_0x2e55b6,_0x553dad);if(!_0x2b4f09[_0x1b3740(0xf5)](_0x12b161)){const _0x4e9ef2=_0xe50393[_0x1b3740(0x138)](_0x2b4f09,_0x12b161);_0x2e55b6[_0x1b3740(0xb5)][_0x1b3740(0x152)](_0x5ece0c[_0x1b3740(0x137)],_0x4e9ef2);}}}[_0x152c53(0x15e)](_0x157723,_0x4643d6,_0x8f168f=!0x1){const _0x28b08a=_0x152c53,_0x9f7e4b=[..._0x157723[_0x28b08a(0xcf)][_0x28b08a(0x146)]()];for(let _0x48cdc8=0x0;_0x48cdc8<Math[_0x28b08a(0xdf)](_0x4643d6[_0x28b08a(0xcf)][_0x28b08a(0xb9)],_0x157723[_0x28b08a(0xcf)][_0x28b08a(0xb9)]);_0x48cdc8++){const _0x201120=_0x4643d6[_0x28b08a(0xcf)][_0x48cdc8]||0x0,_0x48168c=(_0x157723[_0x28b08a(0xcf)][_0x48cdc8]||0x0)-_0x201120;if(_0x9f7e4b[_0x48cdc8]=_0x48168c,0x0!==_0x48168c&&!_0x8f168f)break;}return _0x9f7e4b;}async[_0x152c53(0x130)](_0x8b1017,_0xe7c8cf,_0x1f04a4,_0x3c90d2){const _0x4aef83=_0x152c53,_0x5ba71f=this[_0x4aef83(0x103)];this[_0x4aef83(0xc8)]||(this[_0x4aef83(0xc8)]={'action':_0x3c90d2,'content':_0x8b1017,'version':_0xe7c8cf,'aiBalloon':_0x1f04a4,'modelFragment':this[_0x4aef83(0x103)][_0x4aef83(0x14a)][_0x4aef83(0x109)](this[_0x4aef83(0x103)][_0x4aef83(0x14a)][_0x4aef83(0x158)][_0x4aef83(0x12c)]),'anchorData':new Map()});const _0x26f8fd=new _0x359670({'connector':this[_0x4aef83(0xae)],'editor':_0x5ba71f,'content':_0x8b1017,'version':_0xe7c8cf,..._0x3c90d2});this[_0x4aef83(0xcc)][_0x4aef83(0x13e)](_0x26f8fd);const _0x5e4ab6=(_0x1d7f17,_0x59ac10=!0x1,_0x5bdbea=_0x4aef83(0x112))=>this[_0x4aef83(0x14d)][_0x4aef83(0xd7)](async _0x4ffc8a=>{const _0x3f2555=_0x4aef83;try{const _0x103270=_0x1f35d3({'editor':_0x5ba71f,'changeGroups':_0x1d7f17[_0x3f2555(0xc1)],'documentContextContent':_0x1d7f17[_0x3f2555(0xd9)],'showDiff':_0x59ac10,'trimUnchanged':!0x1});_0x103270[_0x3f2555(0xb9)]&&await this[_0x3f2555(0x13b)][_0x3f2555(0x17c)]({'part':_0x103270[0x0],'renderingStrategy':_0x5bdbea,'abortSignal':_0x4ffc8a});}catch(_0x51c4ab){if(this[_0x3f2555(0x14b)](_0x51c4ab))return;throw _0x51c4ab;}});this[_0x4aef83(0xd2)]['on'](_0x4aef83(0x17a),(_0x344908,_0x1c25fe)=>{const _0x14fb30=_0x4aef83;this[_0x14fb30(0x13b)][_0x14fb30(0x12d)](),this[_0x14fb30(0x13b)][_0x14fb30(0xbc)](),_0x5e4ab6(_0x1c25fe)[_0x14fb30(0x154)](_0x557ffe=>{const _0x5b8b2e=_0x14fb30;this[_0x5b8b2e(0x14b)](_0x557ffe)||(console[_0x5b8b2e(0xce)](_0x5b8b2e(0x108),_0x557ffe),this[_0x5b8b2e(0x119)](_0x26f8fd));});}),this[_0x4aef83(0xd2)]['on'](_0x4aef83(0xca),(_0x50aa63,_0x44ea69)=>{const _0x5b93e2=_0x4aef83;_0x5e4ab6(_0x44ea69)[_0x5b93e2(0x154)](_0x74aa72=>{const _0x4ec539=_0x5b93e2;this[_0x4ec539(0x14b)](_0x74aa72)||(console[_0x4ec539(0xce)](_0x4ec539(0x148),_0x74aa72),this[_0x4ec539(0x119)](_0x26f8fd));});}),this[_0x4aef83(0xd2)]['on'](_0x4aef83(0x163),async()=>{const _0x2721e6=_0x4aef83;try{await this[_0x2721e6(0x116)](),this[_0x2721e6(0x13b)][_0x2721e6(0x10c)](this[_0x2721e6(0xcc)][_0x2721e6(0xb9)],this[_0x2721e6(0x180)]),await this[_0x2721e6(0x14d)][_0x2721e6(0x17b)];}catch(_0xa917f5){this[_0x2721e6(0x14b)](_0xa917f5)||(console[_0x2721e6(0xce)](_0x2721e6(0x181),_0xa917f5),this[_0x2721e6(0x119)](_0x26f8fd));}finally{this[_0x2721e6(0x13b)][_0x2721e6(0x155)]();}}),this[_0x4aef83(0xf4)](this[_0x4aef83(0x13b)],_0x4aef83(0xea),async(_0x503985,{showDiff:_0x3df332})=>{const _0x40422b=_0x4aef83;try{this[_0x40422b(0xcb)]=_0x3df332;const _0x4c5ac4=this[_0x40422b(0xd2)][_0x40422b(0xb1)][this[_0x40422b(0xd2)][_0x40422b(0xb1)][_0x40422b(0xb9)]-0x1];_0x4c5ac4&&await _0x5e4ab6(_0x4c5ac4,_0x3df332,_0x40422b(0x174));}catch(_0x3d45f2){this[_0x40422b(0x14b)](_0x3d45f2)||(console[_0x40422b(0xce)](_0x40422b(0x11e),_0x3d45f2),this[_0x40422b(0x119)](_0x26f8fd));}}),this[_0x4aef83(0xd2)]['on'](_0x4aef83(0xaf),(_0x5a5b85,{reply:_0x28a0e0})=>{const _0x4ce4f5=_0x4aef83,_0x3eda17={'positiveCount':_0x28a0e0[_0x4ce4f5(0xc1)][_0x4ce4f5(0x125)](_0x13502a=>_0x4ce4f5(0x16a)===_0x13502a[_0x4ce4f5(0x117)])[_0x4ce4f5(0xb9)],'totalCount':_0x28a0e0[_0x4ce4f5(0xc1)][_0x4ce4f5(0xb9)]},_0x493f66=this[_0x4ce4f5(0xd2)][_0x4ce4f5(0x16c)],_0x45fbd6=this[_0x4ce4f5(0xd2)][_0x4ce4f5(0xe7)];_0x45fbd6?this[_0x4ce4f5(0xae)][_0x4ce4f5(0x145)](_0x45fbd6,_0x493f66,_0x3eda17):this[_0x4ce4f5(0xae)][_0x4ce4f5(0xf3)](_0x493f66,_0x3eda17);}),this[_0x4aef83(0xad)]();try{const _0x2a98ea=await this[_0x4aef83(0xd2)][_0x4aef83(0xb4)]();return this[_0x4aef83(0x13b)][_0x4aef83(0x10c)](this[_0x4aef83(0xcc)][_0x4aef83(0xb9)],this[_0x4aef83(0x180)]),_0x2a98ea;}catch(_0x3d02b4){if(this[_0x4aef83(0x14b)](_0x3d02b4))return;this[_0x4aef83(0x13b)][_0x4aef83(0x12d)](),this[_0x4aef83(0x119)](_0x26f8fd);}}[_0x152c53(0xe5)](_0x51f124,_0x1b5051,_0x424ab1){const _0x184f1d=_0x152c53,_0x5a9c06=this[_0x184f1d(0x103)];if(_0x424ab1&&!_0x5a9c06[_0x184f1d(0xf6)][_0x184f1d(0xdb)](_0x184f1d(0x12e)))throw new _0x35b6a0(_0x184f1d(0x164),null);const _0x5d6b17=this[_0x184f1d(0x103)][_0x184f1d(0xf6)][_0x184f1d(0x124)](_0x105bba),_0x5df5b8=this[_0x184f1d(0xcc)][this[_0x184f1d(0xcc)][_0x184f1d(0xb9)]-0x1-this[_0x184f1d(0x180)]];if(!_0x5df5b8||!_0x5df5b8[_0x184f1d(0xb1)][_0x184f1d(0xb9)])return;const _0x52439f=_0x5df5b8[_0x184f1d(0xb1)][_0x5df5b8[_0x184f1d(0xb1)][_0x184f1d(0xb9)]-0x1],_0x11397f=_0x52439f[_0x184f1d(0xc1)];_0x52439f[_0x184f1d(0x126)](0x0,_0x184f1d(0x16a));let _0x156ec4=_0x4373d8({'editor':_0x5a9c06,'reply':_0x52439f,'interaction':_0x5df5b8,'groups':_0x11397f,'transform':!0x1,'documentCompare':_0x5d6b17,'documentCompareOptions':{'anchor':_0x5a9c06[_0x184f1d(0x14a)][_0x184f1d(0x16f)](_0x51f124,0x0),'markDeletions':_0x424ab1}});_0x156ec4=this[_0x184f1d(0x179)](_0x156ec4,_0x1b5051);for(const _0x3800df of _0x156ec4)this[_0x184f1d(0x11d)](_0x1b5051,_0x3800df,_0x5a9c06[_0x184f1d(0x14a)][_0x184f1d(0x158)][_0x184f1d(0xf9)]());const _0x30d405=_0x5df5b8[_0x184f1d(0x143)]()[_0x184f1d(0xd5)],_0x46e8f1=_0x5a9c06[_0x184f1d(0x14a)][_0x184f1d(0x158)][_0x184f1d(0xd1)][_0x184f1d(0x132)](_0x30d405),_0x30f0b6={'document':_0x5a9c06[_0x184f1d(0x14a)][_0x184f1d(0x158)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x40f59e=_0x2f660b(_0x156ec4,_0x46e8f1,_0x30f0b6)[_0x184f1d(0xfd)];_0x5a9c06[_0x184f1d(0x14a)][_0x184f1d(0x123)](_0xdf3136=>{const _0x43c0a0=_0x184f1d;if(_0xdf3136[_0x43c0a0(0x14f)](_0x5a9c06[_0x43c0a0(0x14a)][_0x43c0a0(0x158)][_0x43c0a0(0x12c)][_0x43c0a0(0x10b)]),_0x424ab1)_0x5a9c06[_0x43c0a0(0xf6)][_0x43c0a0(0x124)](_0x43c0a0(0x160))[_0x43c0a0(0x107)](_0x40f59e);else{for(const _0x492bca of _0x40f59e)_0x492bca[_0x43c0a0(0x139)]=_0x5a9c06[_0x43c0a0(0x14a)][_0x43c0a0(0x158)][_0x43c0a0(0xd5)],_0x418d4b(_0x5a9c06,_0x492bca),_0xdf3136[_0x43c0a0(0x14e)][_0x43c0a0(0xc3)](_0x492bca),_0x5a9c06[_0x43c0a0(0x14a)][_0x43c0a0(0xb3)](_0x492bca);}}),this[_0x184f1d(0x103)][_0x184f1d(0xf6)][_0x184f1d(0x124)](_0x184f1d(0xbb))[_0x184f1d(0xb6)]();}[_0x152c53(0x179)](_0xfbe92e,_0x2fd17d){const _0xd8c19c=_0x152c53;return _0xfbe92e[_0xd8c19c(0x125)](_0x2d9929=>{const _0xb1b6ae=_0xd8c19c;if(_0xb1b6ae(0x120)==_0x2d9929[_0xb1b6ae(0x173)]){const _0x26496c=_0x2d9929[_0xb1b6ae(0x185)][_0xb1b6ae(0xd4)];return!_0x2fd17d[_0xb1b6ae(0xdb)](_0x26496c);}if(_0x2d9929[_0xb1b6ae(0x173)][_0xb1b6ae(0xc4)](_0xb1b6ae(0xab))>-0x1){const _0x4b3057=_0x2d9929[_0xb1b6ae(0x102)][_0xb1b6ae(0xb4)][_0xb1b6ae(0xd4)];return!_0x2fd17d[_0xb1b6ae(0xdb)](_0x4b3057);}return!0x0;});}[_0x152c53(0x11d)](_0x2f4948,_0x574bbd,_0x3462c0){const _0x2f8d03=_0x152c53,_0x1508a=_0x574bbd[_0x2f8d03(0xda)]();for(const _0x203454 in _0x574bbd){const _0x528881=_0x574bbd[_0x203454];_0x528881 instanceof _0x2baa47?_0x574bbd[_0x203454]=new _0x2baa47(_0x278719(_0x528881[_0x2f8d03(0xb4)]),_0x278719(_0x528881[_0x2f8d03(0x156)])):_0x528881 instanceof _0x5ae0f7&&(_0x574bbd[_0x203454]=_0x278719(_0x528881));}if([_0x2f8d03(0xf0),_0x2f8d03(0x113),_0x2f8d03(0xb2),_0x2f8d03(0x12b),_0x2f8d03(0xe4),_0x2f8d03(0x104)][_0x2f8d03(0xb0)](_0x1508a[_0x2f8d03(0x173)])){if(_0x1508a[_0x2f8d03(0x101)]=!0x1,_0x1508a[_0x2f8d03(0x139)]=null,_0x2f8d03(0xb2)==_0x1508a[_0x2f8d03(0x173)]){const _0x22d317=_0x1508a[_0x2f8d03(0xc9)],_0x52f799=_0x1508a[_0x2f8d03(0xb7)];new _0x20e9db(_0x22d317,_0x52f799)[_0x2f8d03(0x176)]();}else _0x1508a[_0x2f8d03(0x176)]();}function _0x278719(_0x4a7b42){const _0x4ca46f=_0x2f8d03;if(_0x4ca46f(0x147)==_0x4a7b42[_0x4ca46f(0x16b)][_0x4ca46f(0x11b)])return _0x4a7b42;const _0x4a5d85=[];let _0xe0e52=_0x4a7b42[_0x4ca46f(0x16b)];for(let _0x518d14=0x0;_0x518d14<_0x4a7b42[_0x4ca46f(0xcf)][_0x4ca46f(0xb9)];_0x518d14++){const _0x1f1a10=_0x2f4948[_0x4ca46f(0x124)](_0xe0e52)||0x0;_0x4a5d85[_0x518d14]=_0x4a7b42[_0x4ca46f(0xcf)][_0x518d14]+_0x1f1a10,_0xe0e52=_0xe0e52[_0x4ca46f(0xfc)](_0x4a7b42[_0x4ca46f(0xcf)][_0x518d14]);}return new _0x5ae0f7(_0x3462c0,_0x4a5d85,_0x4a7b42[_0x4ca46f(0x118)]);}}[_0x152c53(0xff)](){const _0x1103ac=_0x152c53;if(!this[_0x1103ac(0xc8)])return;this[_0x1103ac(0xcc)][_0x1103ac(0xb9)]>0x0&&this[_0x1103ac(0xc6)](),this[_0x1103ac(0x180)]=0x0,this[_0x1103ac(0xcb)]=!0x1;const {action:_0x510e01,content:_0x1d55f9,version:_0x47ca54,aiBalloon:_0x579139}=this[_0x1103ac(0xc8)];this[_0x1103ac(0x161)](),this[_0x1103ac(0x13b)][_0x1103ac(0x11a)](),this[_0x1103ac(0x13b)][_0x1103ac(0x10a)](),this[_0x1103ac(0x13b)][_0x1103ac(0xe2)](),this[_0x1103ac(0x13b)][_0x1103ac(0x10c)](this[_0x1103ac(0xcc)][_0x1103ac(0xb9)],this[_0x1103ac(0x180)]),this[_0x1103ac(0x141)](this[_0x1103ac(0x13b)]),this[_0x1103ac(0x131)](),this[_0x1103ac(0x130)](_0x1d55f9,_0x47ca54,_0x579139,_0x510e01)[_0x1103ac(0x154)](_0x1ffd64=>{const _0x59579d=_0x1103ac;this[_0x59579d(0x14b)](_0x1ffd64)||console[_0x59579d(0xce)](_0x59579d(0xfb),_0x1ffd64);});}[_0x152c53(0x14b)](_0x59c04c){const _0x543dcd=_0x152c53;return!!_0x59c04c[_0x543dcd(0x105)]&&_0x59c04c[_0x543dcd(0x105)][_0x543dcd(0xe3)](_0x543dcd(0x17f));}[_0x152c53(0x184)](){const _0x53bf8c=_0x152c53;this[_0x53bf8c(0xcc)]=[],this[_0x53bf8c(0xc8)]=void 0x0,this[_0x53bf8c(0x180)]=0x0,this[_0x53bf8c(0x13b)][_0x53bf8c(0x10c)](this[_0x53bf8c(0xcc)][_0x53bf8c(0xb9)],this[_0x53bf8c(0x180)]);}[_0x152c53(0xc6)](){const _0x5e7c26=_0x152c53;this[_0x5e7c26(0xd2)]&&this[_0x5e7c26(0xd2)][_0x5e7c26(0x169)](),this[_0x5e7c26(0x14d)][_0x5e7c26(0x15d)](),this[_0x5e7c26(0xdc)]=!0x1,this[_0x5e7c26(0xc8)]&&this[_0x5e7c26(0x13b)][_0x5e7c26(0x155)]();}[_0x152c53(0x12a)](){const _0x1f8ac9=_0x152c53,_0x4c92ad=this[_0x1f8ac9(0xcc)][_0x1f8ac9(0xb9)];this[_0x1f8ac9(0x180)]<_0x4c92ad-0x1&&this[_0x1f8ac9(0x127)](this[_0x1f8ac9(0x180)]+0x1);}[_0x152c53(0xba)](){const _0x1c5113=_0x152c53;this[_0x1c5113(0x180)]>0x0&&this[_0x1c5113(0x127)](this[_0x1c5113(0x180)]-0x1);}async[_0x152c53(0x127)](_0x31a887){const _0x3d175b=_0x152c53;if(!this[_0x3d175b(0xc8)])return;this[_0x3d175b(0x180)]=_0x31a887;const _0x12cfe5=this[_0x3d175b(0xcc)][this[_0x3d175b(0xcc)][_0x3d175b(0xb9)]-0x1-this[_0x3d175b(0x180)]];if(!_0x12cfe5)return;if(_0x12cfe5[_0x3d175b(0x10e)])return this[_0x3d175b(0x119)](_0x12cfe5),void this[_0x3d175b(0x13b)][_0x3d175b(0x10c)](this[_0x3d175b(0xcc)][_0x3d175b(0xb9)],this[_0x3d175b(0x180)]);if(!_0x12cfe5[_0x3d175b(0xb1)][_0x3d175b(0xb9)])return;this[_0x3d175b(0x13b)][_0x3d175b(0x129)](),this[_0x3d175b(0xc8)]&&this[_0x3d175b(0x161)]();const _0x467f7a=_0x12cfe5[_0x3d175b(0xb1)][_0x12cfe5[_0x3d175b(0xb1)][_0x3d175b(0xb9)]-0x1];if(_0x467f7a){const _0x3b3846=this[_0x3d175b(0x103)];try{const _0x34a869=_0x1f35d3({'editor':_0x3b3846,'changeGroups':_0x467f7a[_0x3d175b(0xc1)],'documentContextContent':_0x467f7a[_0x3d175b(0xd9)],'showDiff':this[_0x3d175b(0xcb)],'trimUnchanged':!0x1});await new Promise(_0xac4acc=>setTimeout(_0xac4acc,0x32)),await this[_0x3d175b(0x13b)][_0x3d175b(0x17c)]({'part':_0x34a869[0x0],'renderingStrategy':_0x3d175b(0x174),'abortSignal':new AbortController()[_0x3d175b(0x11f)]});}catch(_0x1bf804){this[_0x3d175b(0x14b)](_0x1bf804)||console[_0x3d175b(0xce)](_0x3d175b(0xe1),_0x1bf804);}}this[_0x3d175b(0x13b)][_0x3d175b(0x10c)](this[_0x3d175b(0xcc)][_0x3d175b(0xb9)],this[_0x3d175b(0x180)]);}[_0x152c53(0xad)](){const _0x245692=_0x152c53;this[_0x245692(0x13b)][_0x245692(0x13d)](!0x0),this[_0x245692(0xdc)]=!0x0;}async[_0x152c53(0x119)](_0xe6af8d){const _0x3df4e6=_0x152c53,_0xc4434e=_0x3e626d(this[_0x3df4e6(0x103)][_0x3df4e6(0x135)],_0x3df4e6(0xd0));this[_0x3df4e6(0x13b)][_0x3df4e6(0xcd)](_0xc4434e),_0xe6af8d[_0x3df4e6(0x10e)]=!0x0,await this[_0x3df4e6(0x14d)][_0x3df4e6(0x17b)],this[_0x3df4e6(0x13b)][_0x3df4e6(0x16d)](),this[_0x3df4e6(0x13b)][_0x3df4e6(0x151)](!0x0);}[_0x152c53(0x161)](){const _0x22259e=_0x152c53;this[_0x22259e(0x13b)][_0x22259e(0x129)](),this[_0x22259e(0x13b)][_0x22259e(0x151)](!0x1);}async[_0x152c53(0x116)](){const _0x5551cb=_0x152c53;await this[_0x5551cb(0x14d)][_0x5551cb(0x17b)],this[_0x5551cb(0xdc)]=!0x1,this[_0x5551cb(0x13b)][_0x5551cb(0x13d)](!0x1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x12f171=_0x38e9;(function(_0xd2b25,_0xfc5a07){const _0xffde1c=_0x38e9,_0x5bd977=_0xd2b25();while(!![]){try{const _0x564217=-parseInt(_0xffde1c(0xdb))/0x1+parseInt(_0xffde1c(0xe6))/0x2+-parseInt(_0xffde1c(0xde))/0x3*(-parseInt(_0xffde1c(0xd7))/0x4)+parseInt(_0xffde1c(0xdf))/0x5*(-parseInt(_0xffde1c(0xe9))/0x6)+-parseInt(_0xffde1c(0xcc))/0x7*(-parseInt(_0xffde1c(0xe3))/0x8)+parseInt(_0xffde1c(0xea))/0x9*(-parseInt(_0xffde1c(0xe0))/0xa)+-parseInt(_0xffde1c(0xd6))/0xb;if(_0x564217===_0xfc5a07)break;else _0x5bd977['push'](_0x5bd977['shift']());}catch(_0xde60e1){_0x5bd977['push'](_0x5bd977['shift']());}}}(_0x55a8,0x7568e));import{AIInteraction as _0x172bd7,AI_MODEL_EVENT_NAMES as _0x56bf2a}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x115241}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x1882b7}from'./aiactionsreply.js';function _0x38e9(_0x2bb384,_0x5a07ad){const _0x55a875=_0x55a8();return _0x38e9=function(_0x38e912,_0x5be04c){_0x38e912=_0x38e912-0xc9;let _0x220d95=_0x55a875[_0x38e912];return _0x220d95;},_0x38e9(_0x2bb384,_0x5a07ad);}function _0x55a8(){const _0x59fb97=['6WhGTCs','18vcZTkN','executeCustomAction','hasError','push','119uXDegX','actionName','createReply','current-document','TEXT','editor','delegate','html','sendRequest','userMessage','13109921MSwmJS','3176DJEJWU','replyCreated','fire','args','173476qiBhVa','connector','model','1626cZhzdW','227945TdKMUX','36330FXebcm','executeAction','Current\x20document','395768nXizRG','replies','content','1255394KaDLqh','getDocumentContext','version'];_0x55a8=function(){return _0x59fb97;};return _0x55a8();}export class AIActionsInteraction extends _0x172bd7{[_0x12f171(0xe5)];[_0x12f171(0xe8)];[_0x12f171(0xcd)];[_0x12f171(0xda)];[_0x12f171(0xd5)];[_0x12f171(0xdd)];[_0x12f171(0xca)]=!0x1;constructor(_0x198f58){const _0x420f82=_0x12f171;super(_0x198f58),this[_0x420f82(0xe5)]=_0x198f58[_0x420f82(0xe5)],this[_0x420f82(0xe8)]=_0x198f58[_0x420f82(0xe8)],this[_0x420f82(0xcd)]=_0x198f58[_0x420f82(0xcd)],this[_0x420f82(0xda)]=_0x198f58[_0x420f82(0xda)],this[_0x420f82(0xd5)]=_0x198f58[_0x420f82(0xd5)],this[_0x420f82(0xdd)]=_0x198f58[_0x420f82(0xdd)];}async[_0x12f171(0xd4)](){const _0xadbe1d=_0x12f171;return this[_0xadbe1d(0xcd)]?this[_0xadbe1d(0xdc)][_0xadbe1d(0xe1)]({'content':this[_0xadbe1d(0xe5)],'actionName':this[_0xadbe1d(0xcd)],'args':this[_0xadbe1d(0xda)]}):this[_0xadbe1d(0xdc)][_0xadbe1d(0xc9)]({'content':this[_0xadbe1d(0xe5)],'message':this[_0xadbe1d(0xd5)],'model':this[_0xadbe1d(0xdd)],'outputFormat':_0xadbe1d(0xd3)});}[_0x12f171(0xe7)](){const _0x56b7d6=_0x12f171;return{'type':_0x115241[_0x56b7d6(0xd0)],'content':this[_0x56b7d6(0xe5)],'version':this[_0x56b7d6(0xe8)],'label':_0x56b7d6(0xe2),'uiId':_0x56b7d6(0xcf)};}[_0x12f171(0xce)](_0x38b4ee){const _0x4570ee=_0x12f171,_0x301b81=new _0x1882b7({'editor':this[_0x4570ee(0xd1)],'documentContextContent':this[_0x4570ee(0xe5)],..._0x38b4ee});return this[_0x4570ee(0xe4)][_0x4570ee(0xcb)](_0x301b81),_0x301b81[_0x4570ee(0xd2)](..._0x56bf2a)['to'](this),this[_0x4570ee(0xd9)](_0x4570ee(0xd8),_0x301b81),_0x301b81;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f4d13=_0x335c;(function(_0x274b45,_0x4241d0){const _0x2cfabe=_0x335c,_0x4c5177=_0x274b45();while(!![]){try{const _0x1c963a=-parseInt(_0x2cfabe(0x1e8))/0x1+parseInt(_0x2cfabe(0x1e0))/0x2+-parseInt(_0x2cfabe(0x1db))/0x3+-parseInt(_0x2cfabe(0x1eb))/0x4+-parseInt(_0x2cfabe(0x1d3))/0x5*(-parseInt(_0x2cfabe(0x1d6))/0x6)+parseInt(_0x2cfabe(0x1e3))/0x7+-parseInt(_0x2cfabe(0x1d7))/0x8*(parseInt(_0x2cfabe(0x1e5))/0x9);if(_0x1c963a===_0x4241d0)break;else _0x4c5177['push'](_0x4c5177['shift']());}catch(_0x3ad427){_0x4c5177['push'](_0x4c5177['shift']());}}}(_0x68ea,0x1a8cb));import{AIReply as _0x4fa7e6}from'../../aicore/model/aireply.js';function _0x68ea(){const _0x244f60=['204764LDgvqL','cloneNode','pending','map','length','data-id','420860BXqxFt','documentContextContent','pop','12CaehaM','11504leLzsJ','modified','childNodes','node','274113eoMrFB','_getDifferentChangeGroups','added','children','parsedMergedContent','324262slLNxe','parsedContent','updateChangeGroups','1372798pijWgv','changeGroups','603iEygRW','removed','isDone','178934FAcDtm','new','value'];_0x68ea=function(){return _0x244f60;};return _0x68ea();}import{getAttribute as _0x749568}from'../../aicore/utils/htmlparser.js';import{uid as _0x1cabbd}from'ckeditor5/src/utils.js';function _0x335c(_0x473fd0,_0x4e0e7b){const _0x68ea6d=_0x68ea();return _0x335c=function(_0x335cbd,_0x4dd23d){_0x335cbd=_0x335cbd-0x1d1;let _0x2fc308=_0x68ea6d[_0x335cbd];return _0x2fc308;},_0x335c(_0x473fd0,_0x4e0e7b);}import{diffArrays as _0x3ed4e8}from'diff';export class AIActionsReply extends _0x4fa7e6{[_0x3f4d13(0x1e2)](){const _0x2fb828=_0x3f4d13;if(this[_0x2fb828(0x1df)]=this[_0x2fb828(0x1e1)][_0x2fb828(0x1ec)](!0x0),0x0==this[_0x2fb828(0x1df)][_0x2fb828(0x1d9)][_0x2fb828(0x1d1)])return void(this[_0x2fb828(0x1e4)]=[]);const _0xc9316d=this[_0x2fb828(0x1d4)][_0x2fb828(0x1de)][_0x2fb828(0x1ee)](_0x3a6a3b=>({'node':_0x3a6a3b,'id':_0x749568(_0x3a6a3b,_0x2fb828(0x1d2))})),_0x175200=this[_0x2fb828(0x1df)][_0x2fb828(0x1de)][_0x2fb828(0x1ee)](_0x2fa67a=>({'node':_0x2fa67a,'id':_0x749568(_0x2fa67a,_0x2fb828(0x1d2))||_0x1cabbd()})),_0x53bc7d=_0x3ed4e8(_0xc9316d,_0x175200,{'comparator':(_0x4a7f48,_0x471b7f)=>_0x4a7f48['id']==_0x471b7f['id'],'oneChangePerToken':!0x0});if(!this[_0x2fb828(0x1e7)]){for(;_0x53bc7d[_0x2fb828(0x1d1)]&&_0x53bc7d[_0x53bc7d[_0x2fb828(0x1d1)]-0x1][_0x2fb828(0x1e6)];)_0x53bc7d[_0x2fb828(0x1d5)]();}const _0x55ea27=_0x53bc7d[_0x2fb828(0x1ee)](_0x5d1b79=>{const _0x3630b0=_0x2fb828,_0xb19090=_0x5d1b79[_0x3630b0(0x1dd)]?_0x3630b0(0x1e9):_0x5d1b79[_0x3630b0(0x1e6)]?_0x3630b0(0x1e6):_0x3630b0(0x1d8);return{'node':_0x5d1b79[_0x3630b0(0x1ea)][0x0][_0x3630b0(0x1da)],'type':_0xb19090,'id':_0x5d1b79[_0x3630b0(0x1ea)][0x0]['id']};});this[_0x2fb828(0x1e4)]=[{'changes':_0x55ea27,'state':_0x2fb828(0x1ed),'index':0x0}];}[_0x3f4d13(0x1dc)](_0x172ece,_0x499160){return _0x499160;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13a786=_0x50ae;(function(_0x2e30bd,_0x5da4e8){var _0x2d1b69=_0x50ae,_0x49b3f6=_0x2e30bd();while(!![]){try{var _0x37bde6=-parseInt(_0x2d1b69(0x15a))/0x1+parseInt(_0x2d1b69(0x152))/0x2+parseInt(_0x2d1b69(0x14c))/0x3*(-parseInt(_0x2d1b69(0x155))/0x4)+-parseInt(_0x2d1b69(0x159))/0x5+-parseInt(_0x2d1b69(0x156))/0x6+-parseInt(_0x2d1b69(0x158))/0x7*(parseInt(_0x2d1b69(0x15b))/0x8)+parseInt(_0x2d1b69(0x157))/0x9;if(_0x37bde6===_0x5da4e8)break;else _0x49b3f6['push'](_0x49b3f6['shift']());}catch(_0x40c51b){_0x49b3f6['push'](_0x49b3f6['shift']());}}}(_0x5414,0xd2a5c));function _0x5414(){var _0x42d0ae=['AWSTextAdapter','1104888hDRGTu','sendRequest','pluginName','12dvDcBO','5345466AWNTEG','36596718oqOIJz','7jZmfYG','3910430KZcbmn','810906VoZAWT','7963808xjiCZJ','init','276555orMDeS','editor','AI_ERROR_AWS_NOT_SUPPORTED','locale','ai-aws-adapter-not-supported'];_0x5414=function(){return _0x42d0ae;};return _0x5414();}import{AITextAdapter as _0x56a978}from'./aitextadapter.js';import{AIRequestError as _0x5ab9b7}from'./aiadapter.js';function _0x50ae(_0x1d4b13,_0x36ae0a){var _0x541483=_0x5414();return _0x50ae=function(_0x50ae0a,_0x24e202){_0x50ae0a=_0x50ae0a-0x14b;var _0x9eec3=_0x541483[_0x50ae0a];return _0x9eec3;},_0x50ae(_0x1d4b13,_0x36ae0a);}import{getTranslation as _0x55ca43}from'../utils/common-translations.js';import{logWarning as _0x20416,logError as _0x210ef4}from'ckeditor5/src/utils.js';export class AWSTextAdapter extends _0x56a978{static get[_0x13a786(0x154)](){var _0x4ac8dd=_0x13a786;return _0x4ac8dd(0x151);}[_0x13a786(0x14b)](){var _0x3ae7d0=_0x13a786;super[_0x3ae7d0(0x14b)](),_0x20416(_0x3ae7d0(0x150));}async[_0x13a786(0x153)](_0x45e620){var _0x4a4b1e=_0x13a786;throw _0x210ef4(_0x4a4b1e(0x150)),new _0x5ab9b7(_0x55ca43(this[_0x4a4b1e(0x14d)][_0x4a4b1e(0x14f)],_0x4a4b1e(0x14e)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30d4a2=_0x5752;(function(_0x3fdcae,_0x3c6283){const _0x59c0fd=_0x5752,_0x300d34=_0x3fdcae();while(!![]){try{const _0x502b5a=-parseInt(_0x59c0fd(0x1ca))/0x1+parseInt(_0x59c0fd(0x1db))/0x2+parseInt(_0x59c0fd(0x1e6))/0x3*(parseInt(_0x59c0fd(0x207))/0x4)+parseInt(_0x59c0fd(0x204))/0x5*(parseInt(_0x59c0fd(0x1de))/0x6)+-parseInt(_0x59c0fd(0x1f9))/0x7*(parseInt(_0x59c0fd(0x1eb))/0x8)+parseInt(_0x59c0fd(0x1d9))/0x9+parseInt(_0x59c0fd(0x1fc))/0xa*(parseInt(_0x59c0fd(0x21a))/0xb);if(_0x502b5a===_0x3c6283)break;else _0x300d34['push'](_0x300d34['shift']());}catch(_0x392503){_0x300d34['push'](_0x300d34['shift']());}}}(_0x6592,0x2ca50));function _0x5752(_0xd3dfd9,_0x77cbe3){const _0x659235=_0x6592();return _0x5752=function(_0x575233,_0x5728c8){_0x575233=_0x575233-0x1c8;let _0x246f53=_0x659235[_0x575233];return _0x246f53;},_0x5752(_0xd3dfd9,_0x77cbe3);}function _0x6592(){const _0xb5b207=['ck-ai-form__copy-button-wrapper','ck-ai-form__content-area--processing','absolute','305367RtbRia','write','ck-hidden','_createCopyButton','setEndBefore','<span>[</span>','ck-content','execute','setContent','div','isProcessing','querySelector','_createLoader','wheel','lastElementChild','417951qCaYPS','ck-ai-form__copy-button','703564AJUDrw','locale','scrollTo','11958PYyEoE','isVisible','ck-ai-form__loader','copy','-9999px','copyButtonView','Copy','ClipboardItem','48tRQQmA','clipboard','createRange','bind','focus','564744UQJhxY','ck-ai-form__content-area-wrapper','value','listenTo','\x20ck-ai-form__copy-button--copied','<span>]</span>','scrollHeight','loaderView','ck-ai-form__content-field','bindTemplate','AI\x20is\x20writing...','change:isProcessing','body','change:value','35fogYXD','ck-ai-form__content-area','smooth','10mNSOzl','set','mousedown','innerHTML','setStartAfter','setTemplate','isEnabled','text/html','105kbrdTk','element','removeAllRanges','25172IJdPOh','text/plain','contentFieldView','addRange','class','_copyHTMLToClipboard','textContent','icon','render','firstElementChild','ck-reset_all-excluded','left','appendChild','remove','style','position','appendLoader','getSelection','.ck-ai-form__loader','3304774wEHayQ','createElement','execCommand'];_0x6592=function(){return _0xb5b207;};return _0x6592();}import{global as _0xe46216}from'ckeditor5/src/utils.js';import{View as _0x14432b,ButtonView as _0x319ac0,SpinnerView as _0x1640f3}from'ckeditor5/src/ui.js';import{IconCheck as _0x5f9033,IconCopy as _0x16150c}from'ckeditor5/src/icons.js';import{getTranslation as _0x260390}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x14432b{[_0x30d4a2(0x209)];[_0x30d4a2(0x1e3)];constructor(_0x8eb7,_0x99c14=''){const _0x2a25f2=_0x30d4a2;super(_0x8eb7),this[_0x2a25f2(0x1fd)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x2ce398=this[_0x2a25f2(0x1f4)];this[_0x2a25f2(0x209)]=new ContentFieldView(_0x8eb7,_0x99c14),this[_0x2a25f2(0x1e3)]=this[_0x2a25f2(0x1cd)](),this[_0x2a25f2(0x201)]({'tag':_0x2a25f2(0x1d3),'attributes':{'class':['ck',_0x2a25f2(0x1ec),_0x2ce398['if'](_0x2a25f2(0x1df),_0x2a25f2(0x1cc),_0x1e8cd7=>!_0x1e8cd7)],'tabindex':'-1'},'children':[{'tag':_0x2a25f2(0x1d3),'attributes':{'class':['ck',_0x2a25f2(0x1fa),_0x2ce398['if'](_0x2a25f2(0x1d4),_0x2a25f2(0x1c8))]},'children':[this[_0x2a25f2(0x209)],{'tag':_0x2a25f2(0x1d3),'attributes':{'class':['ck',_0x2a25f2(0x21d)]},'children':[this[_0x2a25f2(0x1e3)]]}]}]});}[_0x30d4a2(0x20f)](){const _0x343e62=_0x30d4a2;super[_0x343e62(0x20f)](),this[_0x343e62(0x1ed)]&&this[_0x343e62(0x209)][_0x343e62(0x1d2)](this[_0x343e62(0x1ed)]);let _0x3f9b9b=!0x1;this['on'](_0x343e62(0x1f8),(_0x18d2ec,_0x3272a0,_0x33a8fb)=>{const _0x5c7922=_0x343e62,_0x280b44=!this[_0x5c7922(0x209)][_0x5c7922(0x205)][_0x5c7922(0x1d5)](_0x5c7922(0x219));this[_0x5c7922(0x209)][_0x5c7922(0x1d2)](_0x33a8fb),this[_0x5c7922(0x1d4)]&&_0x280b44&&!_0x3f9b9b&&this[_0x5c7922(0x205)][_0x5c7922(0x1dd)]({'top':this[_0x5c7922(0x205)][_0x5c7922(0x1f1)],'behavior':_0x5c7922(0x1fb)});}),this['on'](_0x343e62(0x1f6),(_0x1869f4,_0x3c30b0,_0x3274bb)=>{const _0x157aa4=_0x343e62;_0x3f9b9b=!0x1,_0x3274bb?(this[_0x157aa4(0x1ed)]=null,this[_0x157aa4(0x209)][_0x157aa4(0x217)]()):this[_0x157aa4(0x1ed)]||this[_0x157aa4(0x209)][_0x157aa4(0x1d2)]('');}),this[_0x343e62(0x1ee)](this[_0x343e62(0x205)],_0x343e62(0x1d7),()=>{_0x3f9b9b=!0x0;}),this[_0x343e62(0x1ee)](this[_0x343e62(0x205)],_0x343e62(0x1fe),()=>{_0x3f9b9b=!0x0;});}[_0x30d4a2(0x1ea)](){const _0x5a088e=_0x30d4a2;this[_0x5a088e(0x205)][_0x5a088e(0x1ea)]();}[_0x30d4a2(0x1cd)](){const _0x35a583=_0x30d4a2,_0x4d1e11=this[_0x35a583(0x1dc)],_0x33c6d1=new _0x319ac0(this[_0x35a583(0x1dc)]),_0x37869a=_0x35a583(0x1da);return _0x33c6d1[_0x35a583(0x1fd)]({'label':_0x260390(_0x4d1e11,_0x35a583(0x1e4)),'icon':_0x16150c,'class':_0x37869a,'tooltip':!0x0}),_0x33c6d1[_0x35a583(0x1e9)](_0x35a583(0x1df))['to'](this,_0x35a583(0x1ed),_0x14e8d1=>!!_0x14e8d1),_0x33c6d1[_0x35a583(0x1e9)](_0x35a583(0x202))['to'](this,_0x35a583(0x1d4),_0x20b762=>!_0x20b762),_0x33c6d1['on'](_0x35a583(0x1d1),()=>{const _0x40b3a3=_0x35a583;this[_0x40b3a3(0x20c)](this[_0x40b3a3(0x209)][_0x40b3a3(0x205)]),_0x33c6d1[_0x40b3a3(0x20e)]=_0x5f9033,_0x33c6d1[_0x40b3a3(0x20b)]=_0x37869a+_0x40b3a3(0x1ef),this[_0x40b3a3(0x1ea)](),setTimeout(()=>{const _0x4a750e=_0x40b3a3;_0x33c6d1[_0x4a750e(0x20e)]=_0x16150c,_0x33c6d1[_0x4a750e(0x20b)]=_0x37869a;},0x3e8);}),_0x33c6d1;}[_0x30d4a2(0x20c)](_0x44ef42){const _0x1daf4b=_0x30d4a2,{window:_0x6261ec,document:_0x5e48c2}=_0xe46216;if(_0x6261ec[_0x1daf4b(0x1e5)]){const {Blob:_0x3bbdba,ClipboardItem:_0x3efee1}=_0x6261ec,_0x20d027=[new _0x3efee1({'text/html':new _0x3bbdba([_0x44ef42[_0x1daf4b(0x1ff)]],{'type':_0x1daf4b(0x203)}),'text/plain':new _0x3bbdba([_0x44ef42[_0x1daf4b(0x20d)]||''],{'type':_0x1daf4b(0x208)})})];navigator[_0x1daf4b(0x1e7)][_0x1daf4b(0x1cb)](_0x20d027);}else{const _0x4af54e=_0x5e48c2[_0x1daf4b(0x21b)](_0x1daf4b(0x1d3));_0x4af54e[_0x1daf4b(0x215)][_0x1daf4b(0x216)]=_0x1daf4b(0x1c9),_0x4af54e[_0x1daf4b(0x215)][_0x1daf4b(0x212)]=_0x1daf4b(0x1e2),_0x4af54e[_0x1daf4b(0x1ff)]=_0x1daf4b(0x1cf)+_0x44ef42[_0x1daf4b(0x1ff)]+_0x1daf4b(0x1f0),_0x5e48c2[_0x1daf4b(0x1f7)][_0x1daf4b(0x213)](_0x4af54e);const _0x554ca9=_0x5e48c2[_0x1daf4b(0x1e8)]();_0x554ca9[_0x1daf4b(0x200)](_0x4af54e[_0x1daf4b(0x210)]),_0x554ca9[_0x1daf4b(0x1ce)](_0x4af54e[_0x1daf4b(0x1d8)]);const _0x2f32fb=_0x6261ec[_0x1daf4b(0x218)]();_0x2f32fb[_0x1daf4b(0x206)](),_0x2f32fb[_0x1daf4b(0x20a)](_0x554ca9),_0x5e48c2[_0x1daf4b(0x21c)](_0x1daf4b(0x1e1)),_0x4af54e[_0x1daf4b(0x214)]();}}}export class ContentFieldView extends _0x14432b{constructor(_0x58afc1,_0x47bdce=''){const _0x12243b=_0x30d4a2;super(_0x58afc1),this[_0x12243b(0x1f2)]=this[_0x12243b(0x1d6)](),this[_0x12243b(0x201)]({'tag':_0x12243b(0x1d3),'attributes':{'class':['ck',_0x12243b(0x1d0),_0x47bdce,_0x12243b(0x211),_0x12243b(0x1f3)]}});}[_0x30d4a2(0x1d2)](_0x3a3708){const _0x555eb5=_0x30d4a2;this[_0x555eb5(0x205)][_0x555eb5(0x1ff)]=_0x3a3708;}[_0x30d4a2(0x217)](){const _0x18e3d5=_0x30d4a2;this[_0x18e3d5(0x205)][_0x18e3d5(0x213)](this[_0x18e3d5(0x1f2)][_0x18e3d5(0x205)]);}[_0x30d4a2(0x1d6)](){const _0x492748=_0x30d4a2,_0x4e58da=new _0x14432b(),_0x9bad56=this[_0x492748(0x1dc)],_0xabfb7d=new _0x1640f3();return _0xabfb7d[_0x492748(0x1df)]=!0x0,_0x4e58da[_0x492748(0x201)]({'tag':_0x492748(0x1d3),'attributes':{'class':['ck',_0x492748(0x1e0)]},'children':[_0xabfb7d,{'text':_0x260390(_0x9bad56,_0x492748(0x1f5))}]}),_0x4e58da[_0x492748(0x20f)](),_0x4e58da;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x253e(){const _0x1348fe=['6etfKSw','586882TOtILT','ck-ai-form__error','bindTemplate','12249176uYavjo','5fKKNHO','516qUhGQl','10478826IIXOZM','14672970bixJzJ','content','text','set','7AplgIX','6ZYmDOR','2982752jtSCqw','473561ibiHQh','div','setTemplate','11507508WIRWqA'];_0x253e=function(){return _0x1348fe;};return _0x253e();}(function(_0x12d192,_0x145d67){const _0x285a8d=_0x3f3a,_0x4f937b=_0x12d192();while(!![]){try{const _0xa34598=-parseInt(_0x285a8d(0x14a))/0x1*(parseInt(_0x285a8d(0x143))/0x2)+parseInt(_0x285a8d(0x149))/0x3*(parseInt(_0x285a8d(0x144))/0x4)+-parseInt(_0x285a8d(0x14e))/0x5*(-parseInt(_0x285a8d(0x13d))/0x6)+-parseInt(_0x285a8d(0x142))/0x7*(-parseInt(_0x285a8d(0x14d))/0x8)+parseInt(_0x285a8d(0x148))/0x9+-parseInt(_0x285a8d(0x13e))/0xa+-parseInt(_0x285a8d(0x145))/0xb*(parseInt(_0x285a8d(0x14f))/0xc);if(_0xa34598===_0x145d67)break;else _0x4f937b['push'](_0x4f937b['shift']());}catch(_0x3385d9){_0x4f937b['push'](_0x4f937b['shift']());}}}(_0x253e,0xec716));import{IconError as _0x4240f7}from'ckeditor5/src/icons.js';function _0x3f3a(_0x59a77a,_0x2d7549){const _0x253e4a=_0x253e();return _0x3f3a=function(_0x3f3a1f,_0x1339d9){_0x3f3a1f=_0x3f3a1f-0x13d;let _0x19cd9b=_0x253e4a[_0x3f3a1f];return _0x19cd9b;},_0x3f3a(_0x59a77a,_0x2d7549);}import{View as _0x5b0271,IconView as _0x49f508}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x5b0271{constructor(_0x54a557,_0x3fead3=''){const _0x185f09=_0x3f3a;super(_0x54a557);const _0xa7a43d=new _0x49f508(),_0x4bbf00=this[_0x185f09(0x14c)];this[_0x185f09(0x141)](_0x185f09(0x140),_0x3fead3),_0xa7a43d[_0x185f09(0x13f)]=_0x4240f7,this[_0x185f09(0x147)]({'tag':_0x185f09(0x146),'attributes':{'class':['ck',_0x185f09(0x14b)]},'children':[_0xa7a43d,{'text':_0x4bbf00['to'](_0x185f09(0x140))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x322c3c=_0x4013;function _0x3958(){const _0x2d6e2a=['showHistoryButtonView','right','left','style','_createShowHistoryButton','39rrZLFx','973raQBdl','focusCycler','requestAnimationFrame','5298180pbfpAb','uiLanguageDirection','ck-ai-form__submit','History','isEmpty','locale','focusFirst','5550850CpYpGB','ck-ai-form__toggle-history','width','children','set','Submit','rtl','_createSubmitButton','element','update','fieldView','fieldWrapperChildren','isOn','execute','add','focusableChildren','window','value','keystrokes','resultsView','fire','excludeScrollbarsAndBorders','isVisible','1341190PHTuTo','submit','focusLast','minRows','target','render','1050788NvVOiD','queryView','maxRows','1929428GMyvuz','123908PrmOsN','bind','submitButtonView','isEnabled','enter','18RciPDi','filteredView','1192vvRgDz','focus'];_0x3958=function(){return _0x2d6e2a;};return _0x3958();}function _0x4013(_0x1caac5,_0x579f59){const _0x395896=_0x3958();return _0x4013=function(_0x401348,_0x275618){_0x401348=_0x401348-0x6d;let _0x3254a3=_0x395896[_0x401348];return _0x3254a3;},_0x4013(_0x1caac5,_0x579f59);}(function(_0x51a41f,_0x2fba9c){const _0x1c8274=_0x4013,_0x5159f1=_0x51a41f();while(!![]){try{const _0x26339c=-parseInt(_0x1c8274(0x73))/0x1+-parseInt(_0x1c8274(0x76))/0x2+parseInt(_0x1c8274(0x85))/0x3*(parseInt(_0x1c8274(0x77))/0x4)+parseInt(_0x1c8274(0x90))/0x5+parseInt(_0x1c8274(0x89))/0x6+-parseInt(_0x1c8274(0x86))/0x7*(parseInt(_0x1c8274(0x7e))/0x8)+parseInt(_0x1c8274(0x7c))/0x9*(parseInt(_0x1c8274(0x6d))/0xa);if(_0x26339c===_0x2fba9c)break;else _0x5159f1['push'](_0x5159f1['shift']());}catch(_0x1d5dfc){_0x5159f1['push'](_0x5159f1['shift']());}}}(_0x3958,0x994d6));import{Rect as _0x2f97fe,global as _0x25cc13,isVisible as _0x4c36c9}from'ckeditor5/src/utils.js';import{IconAIHistory as _0xf676d6,IconSubmit as _0x58d49c}from'ckeditor5/src/icons.js';import{AutocompleteView as _0xd57ae6,ButtonView as _0x45476d}from'ckeditor5/src/ui.js';import{getTranslation as _0x392b05}from'../../utils/common-translations.js';export class AIFormPromptView extends _0xd57ae6{[_0x322c3c(0x79)];[_0x322c3c(0x80)];constructor(_0x11f2f4,_0x226cce){const _0x2c01d6=_0x322c3c;super(_0x11f2f4,_0x226cce),this[_0x2c01d6(0x74)][_0x2c01d6(0x9a)][_0x2c01d6(0x70)]=0x1,this[_0x2c01d6(0x74)][_0x2c01d6(0x9a)][_0x2c01d6(0x75)]=0x3,this[_0x2c01d6(0x79)]=this[_0x2c01d6(0x97)](),this[_0x2c01d6(0x80)]=this[_0x2c01d6(0x84)](),this[_0x2c01d6(0x9f)][_0x2c01d6(0x9e)](this[_0x2c01d6(0x80)],0x1),this[_0x2c01d6(0x9f)][_0x2c01d6(0x9e)](this[_0x2c01d6(0x79)]);}[_0x322c3c(0x72)](){const _0x5b373f=_0x322c3c;super[_0x5b373f(0x72)](),this[_0x5b373f(0x74)][_0x5b373f(0x9b)][_0x5b373f(0x9e)](this[_0x5b373f(0x80)]),this[_0x5b373f(0x93)][_0x5b373f(0x9e)](this[_0x5b373f(0x79)]),this[_0x5b373f(0xa2)][_0x5b373f(0x94)](_0x5b373f(0x7b),(_0x1f014f,_0x4d0e8c)=>{const _0x593c21=_0x5b373f;_0x1f014f[_0x593c21(0x71)]==this[_0x593c21(0x74)][_0x593c21(0x9a)][_0x593c21(0x98)]&&(this[_0x593c21(0x6e)](),_0x4d0e8c());});}[_0x322c3c(0x97)](){const _0x2b125e=_0x322c3c,_0xad3c2b=new _0x45476d(this[_0x2b125e(0x8e)]),_0x8eebe3=this[_0x2b125e(0x8e)];return _0xad3c2b[_0x2b125e(0x94)]({'icon':_0x58d49c,'label':_0x392b05(_0x8eebe3,_0x2b125e(0x95)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2b125e(0x8b)}),_0xad3c2b['on'](_0x2b125e(0x9d),()=>{const _0x54050a=_0x2b125e;this[_0x54050a(0x6e)]();}),_0xad3c2b[_0x2b125e(0x78)](_0x2b125e(0x7a))['to'](this[_0x2b125e(0x74)][_0x2b125e(0x9a)],_0x2b125e(0x8d),this,_0x2b125e(0x7a),(_0x4f29ae,_0x25ab36)=>!_0x4f29ae&&_0x25ab36),_0xad3c2b;}[_0x322c3c(0x84)](){const _0x1a7797=_0x322c3c,_0x266ea4=new _0x45476d(this[_0x1a7797(0x8e)]),_0x500850=this[_0x1a7797(0xa3)],_0x4e84e5=this[_0x1a7797(0x8e)];_0x266ea4[_0x1a7797(0x94)]({'label':_0x392b05(_0x4e84e5,_0x1a7797(0x8c)),'withText':!0x1,'icon':_0xf676d6,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x1a7797(0x91)}),_0x266ea4[_0x1a7797(0x78)](_0x1a7797(0x9c))['to'](_0x500850,_0x1a7797(0xa6)),_0x266ea4[_0x1a7797(0x78)](_0x1a7797(0x7a))['to'](this,_0x1a7797(0x7a)),_0x266ea4['on'](_0x1a7797(0x9d),()=>{const _0x836afd=_0x1a7797;_0x500850[_0x836afd(0xa6)]=!_0x500850[_0x836afd(0xa6)],_0x500850[_0x836afd(0xa6)]?this[_0x836afd(0x7d)][_0x836afd(0x7f)]():this[_0x836afd(0x7f)]();});const _0x423a6c=()=>{const _0x31f6c8=_0x1a7797;_0x25cc13[_0x31f6c8(0xa0)][_0x31f6c8(0x88)](()=>{const _0xe84fec=_0x31f6c8;if(_0x4c36c9(this[_0xe84fec(0x98)])){const _0x5750f2=new _0x2f97fe(this[_0xe84fec(0x74)][_0xe84fec(0x9a)][_0xe84fec(0x98)]),_0x22a3ac=_0x5750f2[_0xe84fec(0x92)],_0x467db6=_0xe84fec(0x96)===_0x4e84e5[_0xe84fec(0x8a)]?_0xe84fec(0x82):_0xe84fec(0x81);_0x5750f2[_0xe84fec(0xa5)](),_0x266ea4[_0xe84fec(0x98)][_0xe84fec(0x83)][_0x467db6]=_0x22a3ac-_0x5750f2[_0xe84fec(0x92)]+0x1+'px';}});};return this[_0x1a7797(0x74)][_0x1a7797(0x9a)]['on'](_0x1a7797(0x99),_0x423a6c),this['on'](_0x1a7797(0x72),_0x423a6c),_0x266ea4;}[_0x322c3c(0x6e)](){const _0x14b495=_0x322c3c,_0x3cf848=this[_0x14b495(0x74)][_0x14b495(0x9a)][_0x14b495(0x98)][_0x14b495(0xa1)];this[_0x14b495(0xa4)](_0x14b495(0x6e),_0x3cf848);}[_0x322c3c(0x7f)](_0x3dab5c){const _0x4bb509=_0x322c3c;-0x1===_0x3dab5c?this[_0x4bb509(0x87)][_0x4bb509(0x6f)]():this[_0x4bb509(0x87)][_0x4bb509(0x8f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36fb76=_0x17a6;(function(_0x1955ba,_0x4c1ad1){const _0x5b71ca=_0x17a6,_0x30a8ae=_0x1955ba();while(!![]){try{const _0x40ebe4=-parseInt(_0x5b71ca(0x149))/0x1*(-parseInt(_0x5b71ca(0x13d))/0x2)+parseInt(_0x5b71ca(0x137))/0x3*(-parseInt(_0x5b71ca(0x126))/0x4)+parseInt(_0x5b71ca(0x10b))/0x5*(-parseInt(_0x5b71ca(0x148))/0x6)+-parseInt(_0x5b71ca(0x159))/0x7*(parseInt(_0x5b71ca(0x140))/0x8)+-parseInt(_0x5b71ca(0x112))/0x9*(-parseInt(_0x5b71ca(0x128))/0xa)+-parseInt(_0x5b71ca(0x138))/0xb*(parseInt(_0x5b71ca(0x113))/0xc)+parseInt(_0x5b71ca(0x14a))/0xd;if(_0x40ebe4===_0x4c1ad1)break;else _0x30a8ae['push'](_0x30a8ae['shift']());}catch(_0x170b03){_0x30a8ae['push'](_0x30a8ae['shift']());}}}(_0x2d7a,0xc985e));import{FocusTracker as _0x59e8fa,KeystrokeHandler as _0x35375e}from'ckeditor5/src/utils.js';function _0x17a6(_0x1c7faf,_0x323408){const _0x2d7a74=_0x2d7a();return _0x17a6=function(_0x17a6a9,_0x4c5912){_0x17a6a9=_0x17a6a9-0x105;let _0x4adfab=_0x2d7a74[_0x17a6a9];return _0x4adfab;},_0x17a6(_0x1c7faf,_0x323408);}function _0x2d7a(){const _0x470805=['submitPrompt','clearHistory','focus','isError','submit','_createPromptView','bindTemplate','ck-hidden','handleError','3WpYakd','22JYCtwI','_promptHistory','Empty\x20history','set','stopProcessing','84EXVCCf','add','reset','7397936OeatXx','errorView','AI_ERROR_FAILED','Ask\x20AI\x20to\x20improve\x20generated\x20text','focusCycler','focusTracker','tryAgainButton','REPLACE','288996xWZSuw','37921ftVTUy','12960675GQQMCl','high','locale','setTemplate','chain','tryAgainEvent','copyButtonView','focusFirst','createCollection','mainAction','items','queryView','isVisible','historyGroupView','execute','7xWxBLR','shift\x20+\x20tab','fieldView','focusLast','element','fire','delegate','label','prompt','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','150ScWpXC','bind','text','replaceButton','Ask\x20AI\x20to\x20edit\x20or\x20generate','_createToolbar','promptView','3698280cggAJi','368700qsKSrh','ck-ai-form-content','search','finishProcessing','div','_createHistoryView','trim','bindTo','tab','render','startProcessing','toolbar','stopButton','ck-ai-form','clear','isProcessing','contentArea','listenTo','isEnabled','3906908PxRdxp','value','40JzdAbJ','insertContentBelow','_focusables','keystrokes','insertButton','replaceContent'];_0x2d7a=function(){return _0x470805;};return _0x2d7a();}import{View as _0x37b3b6,FocusCycler as _0x2f8dc8,createLabeledTextarea as _0x118e2c}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x78a205,AIFormToolbarViewMainActionLabel as _0x48dd48}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x2c034f}from'./aiformcontentarea.js';import{AIFormErrorView as _0xcae992}from'./aiformerrorview.js';import{AIFormPromptView as _0x5e41b8}from'./aiformpromptview.js';import{AIHistoryListView as _0x507cac}from'./aihistorylistview.js';import{AIHistoryListItemView as _0x281010}from'./aihistorylistitemview.js';import{PromptHistory as _0x500ed6}from'./prompthistory.js';import{getTranslation as _0x2d2021}from'../../utils/common-translations.js';import{escape as _0x2823e1}from'es-toolkit/compat';export class AIFormView extends _0x37b3b6{[_0x36fb76(0x145)];[_0x36fb76(0x12b)];[_0x36fb76(0x123)];[_0x36fb76(0x11e)];[_0x36fb76(0x111)];[_0x36fb76(0x141)];[_0x36fb76(0x12a)];[_0x36fb76(0x144)];[_0x36fb76(0x139)];constructor(_0x3b1a7b,_0x521112,_0x4856bf=''){const _0x104e26=_0x36fb76;super(_0x3b1a7b),this[_0x104e26(0x13b)](_0x104e26(0x125),!0x0),this[_0x104e26(0x13b)](_0x104e26(0x122),!0x1),this[_0x104e26(0x13b)](_0x104e26(0x109),''),this[_0x104e26(0x13b)](_0x104e26(0x127),''),this[_0x104e26(0x13b)](_0x104e26(0x131),!0x1),this[_0x104e26(0x13b)](_0x104e26(0x153),_0x48dd48[_0x104e26(0x147)]),this[_0x104e26(0x139)]=new _0x500ed6(),this[_0x104e26(0x141)]=new _0xcae992(_0x3b1a7b),this[_0x104e26(0x123)]=new _0x2c034f(_0x3b1a7b,_0x4856bf),this[_0x104e26(0x123)][_0x104e26(0x10c)](_0x104e26(0x122))['to'](this),this[_0x104e26(0x123)][_0x104e26(0x10c)](_0x104e26(0x127))['to'](this),this[_0x104e26(0x11e)]=this[_0x104e26(0x110)](),this[_0x104e26(0x11e)][_0x104e26(0x10c)](_0x104e26(0x153))['to'](this),this[_0x104e26(0x111)]=this[_0x104e26(0x133)](),this[_0x104e26(0x145)]=new _0x59e8fa(),this[_0x104e26(0x12b)]=new _0x35375e(),this[_0x104e26(0x12a)]=this[_0x104e26(0x152)]([this[_0x104e26(0x123)],this[_0x104e26(0x123)][_0x104e26(0x150)],this[_0x104e26(0x11e)],this[_0x104e26(0x111)]]),this[_0x104e26(0x144)]=new _0x2f8dc8({'focusables':this[_0x104e26(0x12a)],'focusTracker':this[_0x104e26(0x145)],'keystrokeHandler':this[_0x104e26(0x12b)],'actions':{'focusPrevious':_0x104e26(0x15a),'focusNext':_0x104e26(0x11b)}}),this[_0x104e26(0x144)][_0x104e26(0x14e)](this[_0x104e26(0x111)][_0x104e26(0x144)]),this[_0x104e26(0x111)][_0x104e26(0x155)][_0x104e26(0x15b)][_0x104e26(0x10c)](_0x104e26(0x127))['to'](this,_0x104e26(0x109));const _0x430ec9=this[_0x104e26(0x134)];this[_0x104e26(0x14d)]({'tag':_0x104e26(0x117),'attributes':{'class':['ck',_0x104e26(0x120),_0x521112],'tabindex':'-1'},'children':[{'tag':_0x104e26(0x117),'attributes':{'class':['ck',_0x104e26(0x114)]},'children':[{'tag':_0x104e26(0x117),'attributes':{'class':[_0x430ec9['if'](_0x104e26(0x131),_0x104e26(0x135),_0x575870=>!_0x575870)]},'children':[this[_0x104e26(0x141)]]},this[_0x104e26(0x123)],this[_0x104e26(0x11e)],this[_0x104e26(0x111)]]}]});}[_0x36fb76(0x11c)](){const _0x54bed3=_0x36fb76;super[_0x54bed3(0x11c)](),this[_0x54bed3(0x145)][_0x54bed3(0x13e)](this[_0x54bed3(0x123)][_0x54bed3(0x105)]),this[_0x54bed3(0x145)][_0x54bed3(0x13e)](this[_0x54bed3(0x123)][_0x54bed3(0x150)][_0x54bed3(0x105)]),this[_0x54bed3(0x145)][_0x54bed3(0x13e)](this[_0x54bed3(0x11e)][_0x54bed3(0x105)]),this[_0x54bed3(0x145)][_0x54bed3(0x13e)](this[_0x54bed3(0x111)][_0x54bed3(0x105)]),this[_0x54bed3(0x12b)][_0x54bed3(0x124)](this[_0x54bed3(0x105)]);}[_0x36fb76(0x130)](_0x109e0b=0x1){const _0x4d333a=_0x36fb76;-0x1===_0x109e0b?this[_0x4d333a(0x144)][_0x4d333a(0x15c)]():this[_0x4d333a(0x144)][_0x4d333a(0x151)]();}[_0x36fb76(0x13f)](){const _0x14f60f=_0x36fb76;this[_0x14f60f(0x109)]='',this[_0x14f60f(0x127)]='',this[_0x14f60f(0x131)]=!0x1,this[_0x14f60f(0x111)][_0x14f60f(0x13f)](),this[_0x14f60f(0x123)][_0x14f60f(0x156)]=!0x1,this[_0x14f60f(0x11e)][_0x14f60f(0x156)]=!0x1;}[_0x36fb76(0x133)](){const _0x148d37=_0x36fb76,_0x182e51=this[_0x148d37(0x14c)],_0x4b57ba=new _0x5e41b8(_0x182e51,{'queryView':{'label':_0x2d2021(_0x182e51,_0x148d37(0x10f)),'creator':_0x118e2c,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2d2021(_0x182e51,_0x148d37(0x13a)),'secondary':_0x2d2021(_0x182e51,_0x148d37(0x10a))}}},'filteredView':this[_0x148d37(0x118)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4b57ba[_0x148d37(0x10c)](_0x148d37(0x125))['to'](this,_0x148d37(0x125),this,_0x148d37(0x122),(_0x33e848,_0x56fae0)=>_0x33e848&&!_0x56fae0),this[_0x148d37(0x124)](_0x4b57ba,_0x148d37(0x132),(_0x360490,_0x3ab096)=>{const _0x4dd144=_0x148d37;this[_0x4dd144(0x109)]=_0x3ab096;const _0x63c7c=_0x2823e1(_0x3ab096);this[_0x4dd144(0x106)](_0x4dd144(0x12e),_0x63c7c),_0x3ab096[_0x4dd144(0x119)]()&&this[_0x4dd144(0x139)][_0x4dd144(0x13e)]({'prompt':_0x63c7c},0x0);},{'priority':_0x148d37(0x14b)}),_0x4b57ba;}[_0x36fb76(0x118)](){const _0x4084e0=_0x36fb76,_0x218c55=new _0x507cac(this[_0x4084e0(0x14c)]);return _0x218c55[_0x4084e0(0x157)][_0x4084e0(0x154)][_0x4084e0(0x11a)](this[_0x4084e0(0x139)])['as'](_0x281010),_0x218c55['on'](_0x4084e0(0x12f),()=>{const _0x30f2a5=_0x4084e0;this[_0x30f2a5(0x139)][_0x30f2a5(0x121)](),this[_0x30f2a5(0x111)][_0x30f2a5(0x115)](''),this[_0x30f2a5(0x111)][_0x30f2a5(0x130)]();}),_0x218c55;}[_0x36fb76(0x110)](){const _0x8712cc=_0x36fb76,_0x2f341f=new _0x78a205(this[_0x8712cc(0x14c)]);return _0x2f341f[_0x8712cc(0x10e)][_0x8712cc(0x10c)](_0x8712cc(0x125))['to'](this,_0x8712cc(0x125),this,_0x8712cc(0x122),this,_0x8712cc(0x127),(_0x5c1c16,_0x4ea771,_0x15cfdc)=>_0x5c1c16&&!_0x4ea771&&!!_0x15cfdc),_0x2f341f[_0x8712cc(0x10e)][_0x8712cc(0x107)](_0x8712cc(0x158))['to'](this,_0x8712cc(0x12d)),_0x2f341f[_0x8712cc(0x12c)][_0x8712cc(0x10c)](_0x8712cc(0x125))['to'](this,_0x8712cc(0x125),this,_0x8712cc(0x122),this,_0x8712cc(0x127),(_0x451639,_0x514910,_0x2daf5b)=>_0x451639&&!_0x514910&&!!_0x2daf5b),_0x2f341f[_0x8712cc(0x12c)][_0x8712cc(0x107)](_0x8712cc(0x158))['to'](this,_0x8712cc(0x129)),_0x2f341f[_0x8712cc(0x146)][_0x8712cc(0x10c)](_0x8712cc(0x125))['to'](this,_0x8712cc(0x125),this,_0x8712cc(0x122),(_0x3a1c36,_0x127e89)=>_0x3a1c36&&!_0x127e89),_0x2f341f[_0x8712cc(0x146)][_0x8712cc(0x107)](_0x8712cc(0x158))['to'](this,_0x8712cc(0x14f)),_0x2f341f[_0x8712cc(0x11f)][_0x8712cc(0x10c)](_0x8712cc(0x125))['to'](this,_0x8712cc(0x122)),_0x2f341f[_0x8712cc(0x11f)][_0x8712cc(0x107)](_0x8712cc(0x158))['to'](this,_0x8712cc(0x13c)),_0x2f341f;}[_0x36fb76(0x11d)](){const _0x1ca592=_0x36fb76;this[_0x1ca592(0x127)]='',this[_0x1ca592(0x131)]=!0x1,this[_0x1ca592(0x122)]=!0x0,this[_0x1ca592(0x123)][_0x1ca592(0x156)]=!0x0,this[_0x1ca592(0x11e)][_0x1ca592(0x156)]=!0x0,this[_0x1ca592(0x123)][_0x1ca592(0x130)]();}[_0x36fb76(0x116)](){const _0x52e874=_0x36fb76,_0x214e9d=this[_0x52e874(0x14c)];this[_0x52e874(0x122)]=!0x1,this[_0x52e874(0x109)]='',this[_0x52e874(0x111)][_0x52e874(0x13f)](),this[_0x52e874(0x127)]&&(this[_0x52e874(0x111)][_0x52e874(0x155)][_0x52e874(0x108)]=_0x2d2021(_0x214e9d,_0x52e874(0x143)));}[_0x36fb76(0x136)](_0x5af51c){const _0x4bd4e3=_0x36fb76,_0x2f2e5f=this[_0x4bd4e3(0x14c)];this[_0x4bd4e3(0x116)](),this[_0x4bd4e3(0x131)]=!0x0,this[_0x4bd4e3(0x141)][_0x4bd4e3(0x10d)]=_0x5af51c||_0x2d2021(_0x2f2e5f,_0x4bd4e3(0x142)),this[_0x4bd4e3(0x127)]||(this[_0x4bd4e3(0x123)][_0x4bd4e3(0x156)]=!0x1);}}
|
package/src/aichat/aichat.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x389157=_0x530b;(function(_0x5d128c,_0x4f5844){var _0x23d38f=_0x530b,_0x18317b=_0x5d128c();while(!![]){try{var _0x1b08c2=-parseInt(_0x23d38f(0x1c5))/0x1+parseInt(_0x23d38f(0x1cf))/0x2+-parseInt(_0x23d38f(0x1d2))/0x3+-parseInt(_0x23d38f(0x1cb))/0x4+parseInt(_0x23d38f(0x1c9))/0x5*(-parseInt(_0x23d38f(0x1ba))/0x6)+-parseInt(_0x23d38f(0x1bc))/0x7*(parseInt(_0x23d38f(0x1ce))/0x8)+-parseInt(_0x23d38f(0x1be))/0x9*(-parseInt(_0x23d38f(0x1c2))/0xa);if(_0x1b08c2===_0x4f5844)break;else _0x18317b['push'](_0x18317b['shift']());}catch(_0x1001ca){_0x18317b['push'](_0x18317b['shift']());}}}(_0x46bf,0xbd724));import{ContextPlugin as _0x36c65d}from'ckeditor5/src/core.js';import{AIChatController as _0x18dbcd}from'./aichatcontroller.js';import{AIEditing as _0x2891bc}from'../aicore/aiediting.js';function _0x530b(_0x35c10c,_0x3ac4d4){var _0x46bfdd=_0x46bf();return _0x530b=function(_0x530b8c,_0x4dc804){_0x530b8c=_0x530b8c-0x1b7;var _0x1ca871=_0x46bfdd[_0x530b8c];return _0x1ca871;},_0x530b(_0x35c10c,_0x3ac4d4);}import{AIChatUI as _0x256246}from'./aichatui.js';import{AIChatHistory as _0x94e57e}from'../aichathistory/aichathistory.js';function _0x46bf(){var _0x3b83bf=['define','10cckFQt','isPremiumPlugin','97500HVhLyD','focusPromptInput','config','9957912YjiHDW','281674jblOOm','pluginName','registerToolDataCallback','3306654qyglah','requires','context','addSelectionToChatContext','get','removeSelectionFromChatContext','1367796oqwGTq','_registerToolDataCallback','7AQDFwt','plugins','16248627VgAxkY','isOfficialPlugin','AIChat','startConversation','20zsLJgP','ai.chat.initialConversation','sendMessage','148407oiJOMB','new','ai.chat.context'];_0x46bf=function(){return _0x3b83bf;};return _0x46bf();}export class AIChat extends _0x36c65d{static get[_0x389157(0x1d3)](){return[_0x18dbcd,_0x2891bc,_0x256246,_0x94e57e];}static get[_0x389157(0x1d0)](){var _0x4dcdc3=_0x389157;return _0x4dcdc3(0x1c0);}static get[_0x389157(0x1bf)](){return!0x0;}static get[_0x389157(0x1ca)](){return!0x0;}constructor(_0xa0c1b9){var _0x467ac7=_0x389157;super(_0xa0c1b9),this[_0x467ac7(0x1d4)][_0x467ac7(0x1cd)][_0x467ac7(0x1c8)](_0x467ac7(0x1c7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x467ac7(0x1d4)][_0x467ac7(0x1cd)][_0x467ac7(0x1c8)](_0x467ac7(0x1c3),_0x467ac7(0x1c6));}async[_0x389157(0x1b7)](){var _0x867509=_0x389157;await this[_0x867509(0x1d4)][_0x867509(0x1bd)][_0x867509(0x1b8)](_0x18dbcd)[_0x867509(0x1b7)]();}async[_0x389157(0x1c1)](){var _0x53141d=_0x389157;await this[_0x53141d(0x1d4)][_0x53141d(0x1bd)][_0x53141d(0x1b8)](_0x18dbcd)[_0x53141d(0x1c1)]();}async[_0x389157(0x1c4)]({message:_0x1ccc80,attributes:_0x37f8cb}){var _0x2a041a=_0x389157;await this[_0x2a041a(0x1d4)][_0x2a041a(0x1bd)][_0x2a041a(0x1b8)](_0x18dbcd)[_0x2a041a(0x1c4)]({'message':_0x1ccc80,'attributes':_0x37f8cb});}[_0x389157(0x1b9)](){var _0x256c3d=_0x389157;this[_0x256c3d(0x1d4)][_0x256c3d(0x1bd)][_0x256c3d(0x1b8)](_0x18dbcd)[_0x256c3d(0x1b9)]();}[_0x389157(0x1cc)](){var _0x2a8850=_0x389157;this[_0x2a8850(0x1d4)][_0x2a8850(0x1bd)][_0x2a8850(0x1b8)](_0x18dbcd)[_0x2a8850(0x1cc)]();}[_0x389157(0x1d1)](_0x39589c){var _0x5303cd=_0x389157;this[_0x5303cd(0x1d4)][_0x5303cd(0x1bd)][_0x5303cd(0x1b8)](_0x18dbcd)[_0x5303cd(0x1bb)](_0x39589c);}}
|