@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231015.0 → 0.0.0-nightly-20231017.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ecf=['_suggestionState','addComment','_getAuthorFromId','removeMarker','model','addHighlight','deletion:join','createPositionBefore','consumable','assign','discard','suggestion','trackChanges.mergeNestedSuggestions','reconvertMarker','length','root','multi','_splitMarkerName','accepted','isLimit','position','ck-suggestion-marker','removeMarker:suggestion:formatBlock','getAttribute','move','getIntersection','removeMarkers','consume','batch','PendingActions','originalSuggestionId','size','detach','remove','containsRangeInObject','rethrowUnexpectedError','getChanges','high','getDifference','markInlineFormat','item','oldRange','updateSuggestion','element','getRange','previous','_removeSuggestion','mapper','ck-suggestion-marker-','isNextTo','return','containsRange','buildSuggestion','tablePasteChainId','formatBlock:accept','nodeBefore','never','type','$graveyard','suggestionUnloaded','stop','@external','_isDataLoaded','getAllAdjacentSuggestions','has','updateMarker','isMultiRange','insertion','enableReadOnlyMode','documentSelection','data-suggestion','differ','fromRange','before','toJSON','from','acceptAllSuggestions','fire','dataDowncast','getChangedMarkers','_isForcedDefaultExecutionBlock','createRange','then','insertion:discard','sort','hasCommentThread','enableCommand','isLocal','discardSuggestion','highest','isInsideObject','getCustomProperty','multipleBlocks','isBefore','change:_saved','getUser','notReady','end','default','fromCharCode','$marker','_refreshSuggestionsChain','clone','_suggestions','marker-count','includes','backward','markMultiRangeBlockFormat','getMarkers','collaboration.channelId','removeComment','track-changes-user-not-found','CommentsRepository','upcast','createPositionAt','isInContent','rootName','addClass','change','setSelection','addMarker','ck-suggestion-marker--active','always','parent','markerName','chain','track-changes-suggestion-data-mismatch','execute','_trackFormatChanges','_checkSuggestionCorrectness','_createSuggestion','resolve','values','getMultiRangeId','define','toViewElement','requires','formatInline:','formatInline:chain','isUndo','schema','removed','TrackChangesEditing','markMultiRangeInsertion','discardAllSuggestions','author','subType','selection','showSuggestionHighlights','options','activeMarkers','_editor','start','formatBlock','nodeAfter','keys','forward','elementStart','track-changes-command-not-found','getLastMatchingPosition','removeAttribute','applyOperation','_joinWithAdjacentSuggestions','setAttribute','editingDowncast','_adapter','unbind','locale','_findSuggestions','markBlockFormat','getFirstRange','createdAt','dataReady','deletion','$textProxy','range','getNearestSelectionRange','conversion','external:','creator','isDocumentOperation','targetPosition','config','addSuggestionData','isTouching','commands','_addThreadToSuggestion','_handleNewSuggestionMarker','getCommentThread','change:data','update:suggestion','head','splice','getSuggestion','pluginName','every','hasSuggestion','getShiftedBy','plugins','isIntersectingWithRange','fetchCommentThread','bindElementToMarker','markDeletion','isObject','markerToHighlight','PENDING_ACTION_SUGGESTION','track-changes-adapter-missing-getsuggestion','isArray','init','formatInline:discard','isExternal','insert','isBlock','_suggestionFactory','addMarker:suggestion','map','accept','isOwn','after','deleteContent','skipNestingCheck','containerElement','_cutOutSuggestionMarker','low','insertion:accept','_onDiscard','suggestion:','registerCustomCallback','push','setTo','formatBlock:discard','authoredAt','_getExternalAuthor','editor','isAfter','getRanges','getWalker','document','moveTargetPosition','addMarker:suggestion:formatBlock','Users','trackChangesCommand','_enabledCommands','containsItem','formatGroupId','acceptSelectedSuggestions','isAtEnd','formatInline','markerReady','filter','join','_breakSuggestionMarker','ready','trackChanges.trackFormatChanges','getSuggestions','ck-suggestion-marker-formatBlock','formatBlock:','_mergeNestedSuggestions','registerPostFixer','hasComments','suggestionChanged','writer','enqueueChange','acceptSuggestion','error-saving-suggestion-data-suggestion-discarded','value','containsPosition','_customCallbacks','attributes','addRange','_getSuggestionData','insertion:','listenTo','delete','markInsertion','insertion:chain','commentThread','addMarkerName','addSuggestion','for','insertion:join','commandName','insertContent','_updateSuggestionData','_addSuggestionMarker','adapter','get','removeClass','some','_joinSuggestions','add','split','set','_setSuggestionData','addUser','_setSuggestionRange','_registerDefaultCallbacks','stopListening','_model','isCollapsed','isEqual','_rangeIsInLocalUserInsertion','_defaultCallbacks','_commentsRepository','catch','getSuggestionCallback','howMany','widget','createPositionAfter','forceDefaultExecution','next','_saved','createSelection','editing','name','data','newRange','elementToElement','deletion:discard','isRemovable','lowest'];(function(_0x242a2f,_0x3ecf9d){const _0x43bae9=function(_0x2df248){while(--_0x2df248){_0x242a2f['push'](_0x242a2f['shift']());}};_0x43bae9(++_0x3ecf9d);}(_0x3ecf,0xfc));const _0x43ba=function(_0x242a2f,_0x3ecf9d){_0x242a2f=_0x242a2f-0x0;let _0x43bae9=_0x3ecf[_0x242a2f];return _0x43bae9;};import{Plugin as _0x5d7a2f,PendingActions as _0x314b32}from'ckeditor5/src/core';import{LiveRange as _0x15aa1d}from'ckeditor5/src/engine';import{CKEditorError as _0x16ff23,uid as _0x2af23f,priorities as _0x535b7b,logWarning as _0x538ed1}from'ckeditor5/src/utils';import{toWidget as _0x2bc653}from'ckeditor5/src/widget';import{Users as _0x332c8d,hashObject as _0x59b15b}from'ckeditor5-collaboration/src/collaboration-core';import _0x193835 from'./commands/trackchangescommand';import _0x4b4421 from'./commands/acceptsuggestioncommand';import _0xc22251 from'./commands/discardsuggestioncommand';import _0x40c213 from'./commands/executeonallsuggestionscommand';import _0x21bf53 from'./commands/executeonselectedsuggestionscommand';import _0x3e8a11 from'./suggestion';import _0x1e6e29 from'./suggestiondescriptionfactory';import _0x5651df from'./integrations/aiassistant';import _0x42b3f7 from'./integrations/alignment';import _0xd92380 from'./integrations/basicstyles';import _0xf0ca20 from'./integrations/blockquote';import _0x538d1c from'./integrations/ckbox';import _0x3a2ff7 from'./integrations/codeblock';import _0x51cbad from'./integrations/comments';import _0x2a557a from'./integrations/deletecommand';import _0x3a66fc from'./integrations/documentlist';import _0x4cec63 from'./integrations/entercommand';import _0x46f6d1 from'./integrations/findandreplace';import _0x3f13bc from'./integrations/font';import _0x33afdd from'./integrations/formatpainter';import _0x986d4 from'./integrations/heading';import _0x5866c3 from'./integrations/highlight';import _0x48b587 from'./integrations/horizontalline';import _0x386be1 from'./integrations/htmlembed';import _0x1cfb36 from'./integrations/image';import _0x1a3965 from'./integrations/imagereplace';import _0x4141e1 from'./integrations/importword';import _0x3f2beb from'./integrations/indent';import _0x14cd65 from'./integrations/inputcommand';import _0xf0e4cf from'./integrations/link';import _0x35435d from'./integrations/list';import _0x2827ff from'./integrations/listproperties';import _0x1a72ed from'./integrations/mediaembed';import _0x12e403 from'./integrations/mention';import _0x22192f from'./integrations/pagebreak';import _0x22ec53 from'./integrations/paragraph';import _0x3dff80 from'./integrations/removeformat';import _0x386975 from'./integrations/restrictededitingmode';import _0x318b6b from'./integrations/shiftentercommand';import _0x22fcfd from'./integrations/standardeditingmode';import _0x2fc1a7 from'./integrations/style';import _0x2aacdf from'./integrations/table';import _0x4d3f3d from'./integrations/tablemergesplit';import _0x49f437 from'./integrations/tableheadings';import _0x4e0044 from'./integrations/tableclipboard';import _0x124d0f from'./integrations/tablecolumnresize';import _0x27036d from'./integrations/template';import _0xdf81c4 from'./integrations/tableofcontents';import _0x2eaf66 from'./integrations/title';import _0x9314c2 from'./integrations/undo';import{getTranslation as _0x28a7fe}from'./utils/common-translations';import _0x10acae from'./integrations/tablecaption';import _0x4a9159 from'./integrations/documentlistproperties';import _0x501c3b from'./integrations/tableproperties';import{isEqual as _0x5e0a1c}from'lodash-es';export default class p extends _0x5d7a2f{static get[_0x43ba('0xcd')](){return[_0x43ba('0xb5'),_0x332c8d,_0x314b32,_0x5651df,_0x42b3f7,_0xd92380,_0xf0ca20,_0x538d1c,_0x3a2ff7,_0x51cbad,_0x2a557a,_0x3a66fc,_0x4a9159,_0x4cec63,_0x46f6d1,_0x3f13bc,_0x33afdd,_0x986d4,_0x5866c3,_0x48b587,_0x386be1,_0x1cfb36,_0x1a3965,_0x4141e1,_0x3f2beb,_0x14cd65,_0xf0e4cf,_0x35435d,_0x2827ff,_0x1a72ed,_0x12e403,_0x22192f,_0x22ec53,_0x3dff80,_0x386975,_0x318b6b,_0x22fcfd,_0x2fc1a7,_0x2aacdf,_0x4d3f3d,_0x49f437,_0x10acae,_0x4e0044,_0x124d0f,_0xdf81c4,_0x501c3b,_0x27036d,_0x2eaf66,_0x9314c2];}static get[_0x43ba('0x107')](){return _0x43ba('0xd3');}constructor(_0x3783d4){function _0x1fb7aa(_0x439175){return _0x439175['map'](_0x104e23=>String[_0x43ba('0xa8')](_0x104e23))[_0x43ba('0x13f')]('');}super(_0x3783d4),this[_0x43ba('0x28')]('activeMarkers',[]),this['on']('change:activeMarkers',(_0x13aee6,_0x5689f1,_0x1178f4,_0x242f51)=>{this[_0x43ba('0x2e')]['change'](()=>{for(const _0x3730ec of[..._0x242f51,..._0x1178f4])this[_0x43ba('0x2e')]['markers'][_0x43ba('0x85')](_0x3730ec)&&_0x3783d4[_0x43ba('0x3d')][_0x43ba('0x52')](_0x3730ec);});}),this['_descriptionFactory']=new _0x1e6e29(this[_0x43ba('0x12e')][_0x43ba('0x49')][_0x43ba('0xd1')],this[_0x43ba('0x12e')][_0x43ba('0xec')]),this[_0x43ba('0xea')]=null,this['_suggestionFactory']=new Bt(this[_0x43ba('0x12e')]),this[_0x43ba('0xac')]=new Map(),this[_0x43ba('0x33')]=_0x3783d4['plugins'][_0x43ba('0x22')](_0x43ba('0xb5')),this[_0x43ba('0x137')]=new Set(),this[_0x43ba('0x2e')]=this[_0x43ba('0x12e')][_0x43ba('0x49')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3783d4['config']['define'](_0x43ba('0x1'),_0x43ba('0xa7')),this['_trackFormatChanges']=_0x3783d4[_0x43ba('0xfb')][_0x43ba('0x22')](_0x43ba('0x1')),_0x3783d4[_0x43ba('0xfb')][_0x43ba('0xcb')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x43ba('0x5')]=_0x3783d4['config']['get'](_0x43ba('0x51')),this[_0x43ba('0x136')]=new _0x193835(_0x3783d4,this[_0x43ba('0x137')]),this[_0x1fb7aa([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1fb7aa([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x30]);}[_0x43ba('0x115')](){const _0x296b0f=this[_0x43ba('0x12e')];_0x296b0f[_0x43ba('0xf6')][_0x43ba('0x1b')]('editingDowncast')[_0x43ba('0x111')]({'model':_0x43ba('0x50'),'view':_0x202349=>{const {id:_0x50b787,type:_0x110aff}=this[_0x43ba('0x56')](_0x202349[_0x43ba('0xc1')]),_0x255e6e=[_0x43ba('0x5a'),_0x43ba('0x75')+_0x110aff];let _0x52c27f=0xbb8;return this['activeMarkers'][_0x43ba('0xae')](_0x202349[_0x43ba('0xc1')])&&(_0x255e6e[_0x43ba('0x129')](_0x43ba('0xbe')),_0x52c27f=0xbc2),_0x43ba('0xf2')==_0x110aff&&(_0x52c27f+=0x5),{'classes':_0x255e6e,'attributes':{'data-suggestion':_0x50b787},'priority':_0x52c27f};}}),_0x296b0f[_0x43ba('0xf6')]['for']('dataDowncast')[_0x43ba('0x26')](_0x21a8de=>{_0x21a8de['on'](_0x43ba('0x11b'),(_0x1f1c77,_0x55da16,_0x3fbe52)=>{if(!_0x3fbe52['options'][_0x43ba('0xd9')])return;const _0x437283=_0x55da16['item'];if(!_0x437283)return;const _0xc4a73b=_0x3fbe52[_0x43ba('0x74')][_0x43ba('0xcc')](_0x437283);_0x296b0f[_0x43ba('0x49')][_0x43ba('0xd1')]['isObject'](_0x437283)&&_0xc4a73b&&!_0xc4a73b[_0x43ba('0xa0')](_0x43ba('0x37'))&&_0xc4a73b['is'](_0x43ba('0x122'))&&_0x2bc653(_0xc4a73b,_0x3fbe52[_0x43ba('0x9')]);},{'priority':_0x43ba('0x6a')});}),_0x296b0f[_0x43ba('0xf6')][_0x43ba('0x1b')](_0x43ba('0x93'))[_0x43ba('0x111')]({'model':_0x43ba('0x50'),'view':(_0x47fbe1,_0x41c578)=>{if(!_0x41c578['options'][_0x43ba('0xd9')])return null;const {type:_0x3edc38}=this[_0x43ba('0x56')](_0x47fbe1[_0x43ba('0xc1')]);return{'classes':[_0x43ba('0x5a'),_0x43ba('0x75')+_0x3edc38],'priority':0xbb8};}});const _0x5258ca=({showActiveMarkers:_0x28304e=!0x0}={})=>(_0xa85e30,_0x974e06,_0x3cdf50)=>{if(!_0x974e06[_0x43ba('0x6d')])return;if(_0x974e06[_0x43ba('0x6d')]['is'](_0x43ba('0xd8')))return void _0x3cdf50[_0x43ba('0x4d')][_0x43ba('0x60')](_0x974e06[_0x43ba('0x6d')],_0xa85e30[_0x43ba('0x3e')]);const _0x331af0=_0x3cdf50['mapper'][_0x43ba('0xcc')](_0x974e06[_0x43ba('0x6d')]);if(!(_0x974e06['item']['is'](_0x43ba('0x70'))&&_0x296b0f[_0x43ba('0x49')][_0x43ba('0xd1')]['isBlock'](_0x974e06[_0x43ba('0x6d')])&&!_0x331af0[_0x43ba('0xa0')](_0x43ba('0x4a'))))return;const {id:_0x4712dc}=this[_0x43ba('0x56')](_0x974e06[_0x43ba('0xc1')]);_0x3cdf50['writer'][_0x43ba('0xba')]([_0x43ba('0x5a'),_0x43ba('0x3')],_0x331af0),_0x3cdf50[_0x43ba('0x9')][_0x43ba('0xe8')](_0x43ba('0x8b'),_0x4712dc,_0x331af0),_0x3cdf50['mapper'][_0x43ba('0x10e')](_0x331af0,_0x974e06[_0x43ba('0xc1')]),_0x28304e&&(this[_0x43ba('0xdb')][_0x43ba('0xae')](_0x974e06[_0x43ba('0xc1')])?_0x3cdf50[_0x43ba('0x9')][_0x43ba('0xba')](_0x43ba('0xbe'),_0x331af0):_0x3cdf50[_0x43ba('0x9')][_0x43ba('0x23')](_0x43ba('0xbe'),_0x331af0));for(const _0x445614 of _0x296b0f[_0x43ba('0x49')]['createRangeIn'](_0x974e06[_0x43ba('0x6d')])['getItems']())_0x3cdf50['consumable']['consume'](_0x445614,_0xa85e30[_0x43ba('0x3e')]);_0x3cdf50[_0x43ba('0x4d')]['consume'](_0x974e06[_0x43ba('0x6d')],_0xa85e30[_0x43ba('0x3e')]);};_0x296b0f[_0x43ba('0xf6')][_0x43ba('0x1b')](_0x43ba('0x93'))[_0x43ba('0x26')](_0x4f35f4=>{_0x4f35f4['on'](_0x43ba('0x134'),(_0x3de946,_0x47e171,_0x1cdf13)=>{_0x1cdf13[_0x43ba('0xda')][_0x43ba('0xd9')]&&_0x5258ca({'showActiveMarkers':!0x1})(_0x3de946,_0x47e171,_0x1cdf13);},{'priority':_0x43ba('0x9e')});}),_0x296b0f['conversion'][_0x43ba('0x1b')](_0x43ba('0x93'))['markerToData']({'model':'suggestion','view':(_0x2b3eff,_0x343666)=>_0x343666[_0x43ba('0xda')][_0x43ba('0xd9')]?null:{'group':'suggestion','name':_0x2b3eff['substr'](0xb)}}),_0x296b0f[_0x43ba('0xf6')]['for'](_0x43ba('0xb6'))[_0x43ba('0x41')]({'view':{'name':_0x43ba('0x50'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x123320,{writer:_0x2c4fba})=>{let _0x255334=_0x43ba('0x127')+_0x123320['getAttribute']('suggestion-type')+':'+_0x123320['getAttribute']('id');return _0x123320[_0x43ba('0x5c')](_0x43ba('0xad'))&&(_0x255334+=':'+_0x123320[_0x43ba('0x5c')](_0x43ba('0xad'))),_0x2c4fba['createElement'](_0x43ba('0xa9'),{'data-name':_0x255334});}}),_0x296b0f[_0x43ba('0xf6')][_0x43ba('0x1b')]('upcast')['dataToMarker']({'view':'suggestion'}),_0x296b0f[_0x43ba('0xf6')][_0x43ba('0x1b')]('editingDowncast')[_0x43ba('0x26')](_0x364368=>{_0x364368['on'](_0x43ba('0x134'),_0x5258ca(),{'priority':'high'});}),_0x296b0f['conversion'][_0x43ba('0x1b')](_0x43ba('0xe9'))[_0x43ba('0x26')](_0x1dfa07=>{_0x1dfa07['on'](_0x43ba('0x5b'),(_0x39c387,_0xc91ca3,_0x19f5c2)=>{const _0xca1c66=_0x19f5c2[_0x43ba('0x74')]['markerNameToElements'](_0xc91ca3['markerName']);if(_0xca1c66)for(const _0x4c7e77 of _0xca1c66)_0x4c7e77[_0x43ba('0xa0')](_0x43ba('0x4a'))||(_0x19f5c2['writer'][_0x43ba('0x23')]([_0x43ba('0x5a'),_0x43ba('0x3'),'ck-suggestion-marker--active'],_0x4c7e77),_0x19f5c2[_0x43ba('0x9')][_0x43ba('0xe5')]('data-suggestion',_0x4c7e77),_0x19f5c2[_0x43ba('0x74')]['unbindElementFromMarkerName'](_0x4c7e77,_0xc91ca3[_0x43ba('0xc1')]));},{'priority':_0x43ba('0x6a')});}),_0x296b0f[_0x43ba('0x49')]['document'][_0x43ba('0x6')](_0x39d19e=>{let _0x46fbdb=!0x1;const _0x51f620=Array[_0x43ba('0x90')](_0x296b0f[_0x43ba('0x49')]['document']['differ'][_0x43ba('0x94')]()),_0x6bed42=new Set();for(const {name:_0x2fea65,data:_0x1e3a73}of _0x51f620){const {group:_0x235cdb,type:_0x324471,id:_0x4de770}=this[_0x43ba('0x56')](_0x2fea65);if(_0x43ba('0x50')!==_0x235cdb)continue;const _0x463492=this['_suggestions'][_0x43ba('0x22')](_0x4de770);if(null!=_0x1e3a73['newRange']){_0x43ba('0x13c')==_0x324471&&(_0x46fbdb=_0x46fbdb||$t(_0x1e3a73[_0x43ba('0x40')],_0x2fea65,_0x39d19e,_0x296b0f['model'][_0x43ba('0xd1')]));if(_0x1e3a73[_0x43ba('0x40')][_0x43ba('0x2f')]||_0x43ba('0x7f')==_0x1e3a73['newRange'][_0x43ba('0x54')][_0x43ba('0xb9')]||_0x43ba('0xde')==_0x324471&&!Rt(_0x1e3a73[_0x43ba('0x40')])||_0x43ba('0xf2')==_0x324471&&!(!Mt(_0x44994=_0x1e3a73[_0x43ba('0x40')])&&!function(_0x51615c){return _0x51615c[_0x43ba('0xdd')]['parent']==_0x51615c['end']['nodeBefore']&&_0x51615c['start'][_0x43ba('0x13b')];}(_0x44994)))_0x39d19e['removeMarker'](_0x2fea65),_0x46fbdb=!0x0;else{if(!_0x463492||!_0x463492[_0x43ba('0xb8')])continue;_0x6bed42[_0x43ba('0x26')](_0x463492);}}}var _0x44994;return _0x6bed42['size']>0x0&&(_0x46fbdb=!!this[_0x43ba('0xe7')](_0x6bed42)||_0x46fbdb),_0x46fbdb;}),_0x296b0f[_0x43ba('0x49')][_0x43ba('0x132')]['registerPostFixer'](_0x4ab8fe=>{let _0x2111eb=!0x1;for(const _0x140f6f of _0x296b0f[_0x43ba('0x49')][_0x43ba('0x132')][_0x43ba('0x8c')][_0x43ba('0x69')]()){if('insert'!=_0x140f6f[_0x43ba('0x7e')])continue;const _0x1bce5f=_0x140f6f['position'][_0x43ba('0x10a')](_0x140f6f['length']);if(_0x1bce5f[_0x43ba('0x13b')])for(const _0x242cc3 of this[_0x43ba('0xac')]['values']()){if(_0x242cc3['isMultiRange']||!_0x242cc3[_0x43ba('0xb8')])continue;if(_0x43ba('0xde')!=_0x242cc3[_0x43ba('0x7e')])continue;const _0x536d03=_0x242cc3['getFirstRange']();if(_0x536d03[_0x43ba('0xdd')][_0x43ba('0xc0')]!=_0x536d03['end'][_0x43ba('0xc0')]&&_0x536d03[_0x43ba('0xa6')][_0x43ba('0x30')](_0x140f6f[_0x43ba('0x59')])){const _0x131fe7=_0x296b0f['model'][_0x43ba('0x96')](_0x536d03['start'],_0x1bce5f);_0x4ab8fe['updateMarker'](_0x242cc3['getFirstMarker'](),{'range':_0x131fe7}),_0x2111eb=!0x0;}}}return _0x2111eb;}),_0x296b0f[_0x43ba('0x49')]['markers']['on'](_0x43ba('0x103'),(_0x24a0a1,_0x382dfe,_0x85cd4e)=>{if(null==_0x85cd4e){const {id:_0x111a63}=this[_0x43ba('0x56')](_0x382dfe[_0x43ba('0x3e')]),_0x4392b7=this['_suggestions']['get'](_0x111a63);_0x4392b7&&_0x4392b7[_0x43ba('0x19')](_0x382dfe[_0x43ba('0x3e')]);}}),_0x296b0f[_0x43ba('0x49')][_0x43ba('0x132')]['on'](_0x43ba('0x102'),()=>{const _0x2a8a17=Array['from'](_0x296b0f['model'][_0x43ba('0x132')][_0x43ba('0x8c')][_0x43ba('0x94')]())[_0x43ba('0x13e')](_0x3269df=>_0x43ba('0x50')===this[_0x43ba('0x56')](_0x3269df[_0x43ba('0x3e')])['group']);if(0x0===_0x2a8a17[_0x43ba('0x53')])return;_0x2a8a17['sort']((_0x25c465,_0x69b287)=>{const _0x55f6d9=_0x25c465[_0x43ba('0x3f')]['oldRange'],_0x47e078=_0x69b287[_0x43ba('0x3f')][_0x43ba('0x6e')];return null===_0x55f6d9&&null===_0x47e078?0x0:null===_0x55f6d9&&null!==_0x47e078?-0x1:null!==_0x55f6d9&&null===_0x47e078?0x1:_0x55f6d9[_0x43ba('0xdd')]['isBefore'](_0x47e078[_0x43ba('0xdd')])?-0x1:0x1;});const _0x418498=new Set(),_0x2468e2=new Set();for(const {name:_0x3fe01c,data:_0x300d30}of _0x2a8a17){const {id:_0x52b28f}=this[_0x43ba('0x56')](_0x3fe01c);if(null===_0x300d30['oldRange']){const _0x5b4e0f=this[_0x43ba('0x100')](_0x3fe01c);_0x2468e2[_0x43ba('0x26')](_0x5b4e0f);}else{const _0x5494a0=this[_0x43ba('0xac')][_0x43ba('0x22')](_0x52b28f);null!==_0x300d30[_0x43ba('0x40')]||_0x5494a0[_0x43ba('0xb8')]?(_0x418498[_0x43ba('0x26')](_0x5494a0[_0x43ba('0x104')]),_0x2468e2[_0x43ba('0x26')](_0x5494a0)):this[_0x43ba('0x73')](_0x5494a0);}}_0x2468e2[_0x43ba('0x64')]>0x0&&this[_0x43ba('0xaa')](_0x2468e2);for(const _0x3b8615 of _0x418498)this[_0x43ba('0x92')]('suggestionChanged',_0x3b8615);}),_0x296b0f['model']['on'](_0x43ba('0xe6'),(_0x12736e,_0x346560)=>{const _0x8b251a=_0x346560[0x0];if(!this['_suggestions'][_0x43ba('0x64')])return;if(!_0x8b251a[_0x43ba('0xf9')])return;if(_0x8b251a[_0x43ba('0x61')][_0x43ba('0xd0')]||!_0x8b251a[_0x43ba('0x61')][_0x43ba('0x9c')])return;let _0x2b777b,_0x32d6c3;switch(_0x8b251a['type']){case _0x43ba('0x118'):_0x2b777b=_0x296b0f[_0x43ba('0x49')]['createPositionAt'](_0x8b251a['position']),_0x32d6c3=_0x2b777b[_0x43ba('0x10a')](_0x8b251a[_0x43ba('0x36')]);break;case'split':_0x2b777b=_0x296b0f[_0x43ba('0x49')]['createPositionAt'](_0x8b251a['splitPosition']),_0x32d6c3=_0x296b0f[_0x43ba('0x49')][_0x43ba('0xb7')](_0x8b251a[_0x43ba('0x133')]);break;case _0x43ba('0x5d'):_0x2b777b=_0x296b0f[_0x43ba('0x49')][_0x43ba('0xb7')](_0x8b251a[_0x43ba('0xfa')]),_0x32d6c3=_0x2b777b['getShiftedBy'](_0x8b251a['howMany']);break;default:return;}const _0x200526=_0x296b0f[_0x43ba('0x49')][_0x43ba('0x96')](_0x2b777b,_0x32d6c3);_0x296b0f[_0x43ba('0x49')][_0x43ba('0xbb')](()=>{for(const {suggestion:_0x3dbd76,meta:_0x574cf9}of this['_findSuggestions'](_0x200526)){if(_0x3dbd76['isMultiRange'])continue;if(_0x43ba('0x13c')==_0x3dbd76['type'])continue;const _0x27c65a=_0x3dbd76[_0x43ba('0x3f')]&&_0x3dbd76[_0x43ba('0x3f')]['multipleBlocks'];('formatBlock'!=_0x3dbd76[_0x43ba('0x7e')]||'split'==_0x8b251a[_0x43ba('0x7e')]&&!_0x27c65a)&&(_0x574cf9[_0x43ba('0x67')]||'insertion'==_0x3dbd76['type']&&_0x574cf9[_0x43ba('0x11e')]||_0x3dbd76['getFirstRange']()[_0x43ba('0x78')](_0x200526)&&this[_0x43ba('0x140')](_0x3dbd76,_0x2b777b,_0x32d6c3));}});},{'priority':_0x43ba('0x44')}),_0x296b0f['model']['on'](_0x43ba('0x120'),(_0x1b0bd5,_0x283f56)=>{const _0x17c815=_0x283f56[0x0],_0x58a95b=_0x283f56[0x1];if(_0x58a95b&&_0x58a95b[_0x43ba('0x39')])return;if(this[_0x43ba('0x95')])return;if(!this[_0x43ba('0x136')][_0x43ba('0xd')])return;if(_0x17c815[_0x43ba('0x2f')])return;const _0x127653=_0x296b0f[_0x43ba('0x49')][_0x43ba('0xd1')],{start:_0x2ac8b4,end:_0x43827b}=_0x17c815['getFirstRange'](),_0x5111b2=_0x2ac8b4['nodeAfter']&&_0x127653[_0x43ba('0x58')](_0x2ac8b4['nodeAfter'])?null:_0x127653[_0x43ba('0xf5')](_0x2ac8b4,_0x43ba('0xe1')),_0x2a7b48=_0x43827b[_0x43ba('0x7c')]&&_0x127653[_0x43ba('0x58')](_0x43827b[_0x43ba('0x7c')])?null:_0x127653[_0x43ba('0xf5')](_0x43827b,'backward'),_0x1aafb7=_0x296b0f[_0x43ba('0x49')][_0x43ba('0x96')](_0x5111b2?_0x5111b2[_0x43ba('0xdd')]:_0x2ac8b4,_0x2a7b48?_0x2a7b48[_0x43ba('0xa6')]:_0x43827b);_0x296b0f[_0x43ba('0x49')]['change'](_0x22bd51=>{this[_0x43ba('0x10f')](_0x1aafb7);const _0x1f0e7f=_0x296b0f[_0x43ba('0x49')][_0x43ba('0xd1')][_0x43ba('0xf5')](_0x1aafb7[_0x43ba('0xdd')]);_0x17c815['is'](_0x43ba('0x8a'))?_0x22bd51['setSelection'](_0x1f0e7f):_0x17c815[_0x43ba('0x12a')](_0x1f0e7f);}),_0x1b0bd5[_0x43ba('0x81')]();},{'priority':_0x535b7b['normal']+0xa}),_0x296b0f[_0x43ba('0x49')]['on']('insertContent',(_0xaffd1e,_0x5976ea)=>{const _0x35ddfa=_0x5976ea[_0x5976ea[_0x43ba('0x53')]-0x1];_0x35ddfa&&_0x35ddfa[_0x43ba('0x39')]||this[_0x43ba('0x95')]||this['trackChangesCommand']['value']&&(_0x296b0f[_0x43ba('0x49')]['change'](()=>{let _0x3eb2cc=_0x296b0f[_0x43ba('0x49')][_0x43ba('0x1e')](_0x5976ea[0x0],_0x5976ea[0x1],_0x5976ea[0x2],{'forceDefaultExecution':!0x0});if(!_0x3eb2cc)return;_0xaffd1e[_0x43ba('0x77')]=_0x3eb2cc[_0x43ba('0xab')]();const _0x59c88c=_0x3eb2cc[_0x43ba('0xa6')]['nodeBefore'],_0x3d1e59=_0x296b0f[_0x43ba('0x49')]['schema'];_0x59c88c&&_0x3d1e59[_0x43ba('0x119')](_0x59c88c)&&!_0x3d1e59['isObject'](_0x59c88c)&&(_0x3eb2cc=_0x296b0f[_0x43ba('0x49')][_0x43ba('0x96')](_0x3eb2cc[_0x43ba('0xdd')],_0x296b0f['model'][_0x43ba('0xb7')](_0x59c88c,_0x43ba('0xa6')))),this[_0x43ba('0x16')](_0x3eb2cc);}),_0xaffd1e[_0x43ba('0x81')]());},{'priority':_0x43ba('0x6a')}),this[_0x43ba('0x12e')][_0x43ba('0xfe')]['add']('trackChanges',this[_0x43ba('0x136')]),this[_0x43ba('0x9b')]('trackChanges');const _0x165a1a=new _0x4b4421(_0x296b0f,this[_0x43ba('0xac')]);_0x296b0f[_0x43ba('0xfe')][_0x43ba('0x26')](_0x43ba('0xb'),_0x165a1a),this[_0x43ba('0x9b')]('acceptSuggestion');const _0x20eeeb=new _0xc22251(_0x296b0f,this[_0x43ba('0xac')]);_0x296b0f[_0x43ba('0xfe')][_0x43ba('0x26')](_0x43ba('0x9d'),_0x20eeeb),this[_0x43ba('0x9b')]('discardSuggestion'),_0x296b0f[_0x43ba('0xfe')]['add'](_0x43ba('0x91'),new _0x40c213(_0x296b0f,_0x165a1a,this[_0x43ba('0xac')])),this[_0x43ba('0x9b')](_0x43ba('0x91')),_0x296b0f['commands']['add'](_0x43ba('0xd5'),new _0x40c213(_0x296b0f,_0x20eeeb,this[_0x43ba('0xac')])),this[_0x43ba('0x9b')](_0x43ba('0xd5')),_0x296b0f[_0x43ba('0xfe')]['add']('acceptSelectedSuggestions',new _0x21bf53(_0x296b0f,_0x165a1a,this[_0x43ba('0xac')])),this['enableCommand'](_0x43ba('0x13a')),_0x296b0f['commands'][_0x43ba('0x26')]('discardSelectedSuggestions',new _0x21bf53(_0x296b0f,_0x20eeeb,this['_suggestions'])),this[_0x43ba('0x9b')]('discardSelectedSuggestions');const _0x46c614=_0x296b0f[_0x43ba('0x10b')]['get']('CommentsRepository');this[_0x43ba('0x14')](_0x46c614,_0x43ba('0x46'),(_0x42a820,{threadId:_0x2d5a63})=>{const _0x13d72f=this[_0x43ba('0xac')][_0x43ba('0x22')](_0x2d5a63);_0x13d72f&&_0x13d72f[_0x43ba('0x18')]&&0x1===_0x13d72f[_0x43ba('0x18')][_0x43ba('0x53')]&&this[_0x43ba('0x1f')](_0x2d5a63,{'hasComments':!0x0});},{'priority':_0x43ba('0x124')}),this['listenTo'](_0x46c614,_0x43ba('0xb3'),(_0x56248b,{threadId:_0x3f762e})=>{const _0x15ec9a=this[_0x43ba('0xac')][_0x43ba('0x22')](_0x3f762e);_0x15ec9a&&_0x15ec9a[_0x43ba('0x18')]&&!_0x15ec9a[_0x43ba('0x18')][_0x43ba('0x53')]&&this[_0x43ba('0x1f')](_0x3f762e,{'hasComments':!0x1});},{'priority':_0x43ba('0x124')});}set[_0x43ba('0x21')](_0x139835){if(this[_0x43ba('0xea')])throw new _0x16ff23('track-changes-adapter-already-set',this);this[_0x43ba('0xea')]=_0x139835;}get['adapter'](){return this[_0x43ba('0xea')];}[_0x43ba('0x2')]({skipNotAttached:_0x4b2df3=!0x1,toJSON:_0x528707=!0x1}={}){const _0x276ebe=[];for(const _0x156ffa of this[_0x43ba('0xac')][_0x43ba('0xc9')]())_0x4b2df3&&!_0x156ffa[_0x43ba('0xb8')]||_0x276ebe[_0x43ba('0x129')](_0x156ffa);return _0x528707?_0x276ebe[_0x43ba('0x11c')](_0xffb0b4=>_0xffb0b4[_0x43ba('0x8f')]()):_0x276ebe;}[_0x43ba('0x106')](_0x48d27e){const _0x246955=this[_0x43ba('0xac')][_0x43ba('0x22')](_0x48d27e);if(!_0x246955)throw new _0x16ff23('track-changes-suggestion-not-found',this);return _0x246955;}[_0x43ba('0x109')](_0x54c4ed){return this[_0x43ba('0xac')]['has'](_0x54c4ed);}['addSuggestionData'](_0x4d19a3){const {authorId:_0xf52902,id:_0x4dfee,attributes:_0x2e6cbf}=_0x4d19a3,[_0x13299d,_0x1b8306]=_0x4d19a3['type']['split'](':'),_0x37c993=this[_0x43ba('0xac')][_0x43ba('0x22')](_0x4dfee)||this[_0x43ba('0xc7')](_0x13299d,_0x1b8306,_0x4dfee,_0xf52902,_0x2e6cbf);if(this[_0x43ba('0xff')](_0x37c993),this[_0x43ba('0xc6')](_0x37c993,_0x13299d,_0x1b8306||null,_0xf52902),_0x37c993[_0x43ba('0xf0')]=_0x4d19a3[_0x43ba('0xf0')],_0x37c993[_0x43ba('0x83')]=!0x0,_0x2e6cbf&&_0x2e6cbf[_0x43ba('0x82')]){const _0x1cd2b5=_0x2e6cbf['@external'],_0x4af2a=this['_getExternalAuthor'](_0x1cd2b5['authorName']);_0x37c993['authoredAt']=_0x1cd2b5[_0x43ba('0xf0')],_0x37c993[_0x43ba('0xd6')]=_0x4af2a,_0x37c993[_0x43ba('0x117')]=!0x0;}else _0x37c993[_0x43ba('0x12c')]=_0x4d19a3[_0x43ba('0xf0')];switch(_0x4d19a3[_0x43ba('0x3f')]&&(_0x37c993[_0x43ba('0x3f')]=_0x4d19a3[_0x43ba('0x3f')]),_0x4d19a3[_0x43ba('0x10')]&&(_0x37c993[_0x43ba('0x10')]=_0x4d19a3['attributes']),this[_0x43ba('0xea')]&&this[_0x43ba('0xea')][_0x43ba('0x1a')]||(_0x37c993[_0x43ba('0x3b')]=!0x0),this[_0x43ba('0x45')][_0x43ba('0x22')](_0x37c993)){case'notReady':this['_suggestionState'][_0x43ba('0x28')](_0x37c993,_0x43ba('0xf1'));break;case _0x43ba('0x13d'):_0x37c993[_0x43ba('0xb8')]?(this['_refreshSuggestionsChain'](new Set([_0x37c993])),this['_joinWithAdjacentSuggestions'](new Set([_0x37c993])),this[_0x43ba('0x45')]['set'](_0x37c993,_0x43ba('0x0')),this[_0x43ba('0x92')]('suggestionLoaded',_0x37c993)):this[_0x43ba('0x45')]['set'](_0x37c993,_0x43ba('0xd2'));}return _0x37c993;}['acceptSuggestion'](_0x3833b3){this[_0x43ba('0x39')](()=>{this['editor'][_0x43ba('0x49')][_0x43ba('0xbb')](()=>{for(const _0x4b4ad9 of _0x3833b3['getAllAdjacentSuggestions']())_0x4b4ad9[_0x43ba('0x11d')]();});});}[_0x43ba('0x9d')](_0x581844){this[_0x43ba('0x39')](()=>{this[_0x43ba('0x12e')]['model']['change'](()=>{for(const _0x23cc17 of _0x581844[_0x43ba('0x84')]())_0x23cc17[_0x43ba('0x4f')]();});});}['enableCommand'](_0xe47cfd,_0x3107fb){const _0x5cb7fb=this['editor']['commands'][_0x43ba('0x22')](_0xe47cfd);if(!_0x5cb7fb)throw new _0x16ff23(_0x43ba('0xe3'),this,{'commandName':_0xe47cfd});this['_enabledCommands'][_0x43ba('0x26')](_0x5cb7fb),_0x3107fb&&_0x5cb7fb['on'](_0x43ba('0xc4'),(_0x2ee031,_0x4ca6e0)=>{this[_0x43ba('0x136')]['value']&&(this[_0x43ba('0x95')]||_0x4ca6e0['length']>0x0&&_0x4ca6e0[_0x4ca6e0[_0x43ba('0x53')]-0x1]&&_0x4ca6e0[_0x4ca6e0[_0x43ba('0x53')]-0x1][_0x43ba('0x39')]||(_0x2ee031[_0x43ba('0x77')]=_0x3107fb((..._0x3f73a8)=>_0x5cb7fb[_0x43ba('0xc4')](..._0x3f73a8,{'forceDefaultExecution':!0x0}),..._0x4ca6e0),_0x2ee031[_0x43ba('0x81')]()));},{'priority':_0x43ba('0x6a')});}[_0x43ba('0x39')](_0x2e704c){let _0x433c53,_0x4c7c48;const _0x12cbbc=this[_0x43ba('0x95')];this[_0x43ba('0x95')]=!0x0;try{_0x433c53=_0x2e704c();}catch(_0x22e6d0){_0x4c7c48=_0x22e6d0;}return _0x12cbbc||(this[_0x43ba('0x95')]=!0x1),_0x4c7c48&&_0x16ff23[_0x43ba('0x68')](_0x4c7c48,this),_0x433c53;}[_0x43ba('0x16')](_0x4889ec,_0x3d52dc=null,_0x5f2dcb={}){if(_0x4889ec[_0x43ba('0x2f')])return null;const _0x38ee4c=this['editor'][_0x43ba('0x10b')]['get'](_0x43ba('0x135'))['me'];for(const {suggestion:_0x23e816,meta:_0x2dc065}of this[_0x43ba('0xed')](_0x4889ec,_0x43ba('0x88')))if(_0x2dc065['isOwn']){if(!_0x2dc065[_0x43ba('0x76')]){if(_0x2dc065['containsRangeInObject']){if(!this[_0x43ba('0x5')]||!Ot(_0x23e816,_0x5f2dcb))continue;return _0x23e816;}if(Ot(_0x23e816,_0x5f2dcb))return _0x23e816;this[_0x43ba('0x140')](_0x23e816,_0x4889ec[_0x43ba('0xdd')],_0x4889ec['end']);break;}if(_0x3d52dc==_0x23e816[_0x43ba('0xd7')]&&Ot(_0x23e816,_0x5f2dcb)){const _0x29c834=_0x23e816[_0x43ba('0xef')]();return _0x29c834[_0x43ba('0xdd')]['isEqual'](_0x4889ec[_0x43ba('0xa6')])?this['_setSuggestionRange'](_0x23e816,this[_0x43ba('0x2e')][_0x43ba('0x96')](_0x4889ec[_0x43ba('0xdd')],_0x29c834['end'])):this[_0x43ba('0x2b')](_0x23e816,this[_0x43ba('0x2e')][_0x43ba('0x96')](_0x29c834[_0x43ba('0xdd')],_0x4889ec[_0x43ba('0xa6')])),_0x23e816;}}const _0x387c21=_0x2af23f(),_0x89a1fd=_0x38ee4c['id'],_0x541e57=_0x3d52dc?_0x43ba('0x13')+_0x3d52dc:_0x43ba('0x88'),_0x1f62bc=this['_setSuggestionData']({'id':_0x387c21,'type':_0x541e57,'createdAt':new Date(),'authorId':_0x89a1fd,'attributes':_0x5f2dcb});return this[_0x43ba('0x20')](_0x541e57,_0x387c21,_0x89a1fd,_0x4889ec),_0x1f62bc;}[_0x43ba('0xd4')](_0x3e3c43,_0x5b5b87='multi',_0x392a43={}){const _0x5acd63=this['editor'][_0x43ba('0x10b')]['get'](_0x43ba('0x135'))['me'],_0xc00e97=this[_0x43ba('0x11a')]['getSuggestionCallback']('insertion',_0x5b5b87,_0x43ba('0x13f'));for(const _0x46e9b8 of this[_0x43ba('0x2')]())if(_0x46e9b8['author']['id']==_0x5acd63['id']&&_0x43ba('0x88')==_0x46e9b8['type']&&_0x46e9b8[_0x43ba('0xd7')]==_0x5b5b87&&Ot(_0x46e9b8,_0x392a43)&&(_0xc00e97(_0x46e9b8[_0x43ba('0x130')](),_0x3e3c43)||_0xc00e97(_0x3e3c43,_0x46e9b8['getRanges']()))){for(const _0x4615aa of _0x3e3c43)_0x46e9b8[_0x43ba('0x11')](_0x4615aa);return _0x46e9b8;}for(const {suggestion:_0xefb9ac,meta:_0x444027}of this[_0x43ba('0xed')](_0x3e3c43,_0x43ba('0x88'))){if(!_0x444027[_0x43ba('0x11e')])continue;if(!this[_0x43ba('0x5')]&&_0x444027[_0x43ba('0x67')])continue;if(!Ot(_0xefb9ac,_0x392a43))continue;let _0x569a5e=!0x0;for(const _0x53c418 of _0xefb9ac[_0x43ba('0x130')]())for(const _0x591e60 of _0x3e3c43)if(!_0x53c418[_0x43ba('0x78')](_0x591e60)){_0x569a5e=!0x1;break;}if(_0x569a5e)return _0xefb9ac;}const _0x4e6bc3=_0x2af23f(),_0x576f63=_0x5acd63['id'],_0x17d87a=_0x43ba('0x13')+_0x5b5b87,_0x38c74a=this['_setSuggestionData']({'id':_0x4e6bc3,'type':_0x17d87a,'createdAt':new Date(),'authorId':_0x576f63,'attributes':_0x392a43});for(const _0x3f9356 of _0x3e3c43)this['_addSuggestionMarker'](_0x17d87a,_0x4e6bc3,_0x576f63,_0x3f9356,_0x3e8a11[_0x43ba('0xca')]());return _0x38c74a;}[_0x43ba('0x6c')](_0x303420,_0x5e739e,_0x35fdd9=null,_0x424078={}){if(_0x35fdd9=_0x35fdd9||Nt(_0x5e739e),_0x303420[_0x43ba('0x2f')])return null;if(_0x43ba('0x7d')===this[_0x43ba('0xc5')]){const _0x38f1ba=this[_0x43ba('0x11a')][_0x43ba('0x35')]('formatInline',_0x35fdd9,'accept');return this[_0x43ba('0x39')](()=>_0x38f1ba([_0x303420],_0x5e739e,_0x424078)),null;}const _0x56f0d3=this[_0x43ba('0x12e')]['plugins']['get'](_0x43ba('0x135'))['me'],_0x401a6d=[];if(_0x43ba('0xbf')!==this[_0x43ba('0xc5')])for(const {suggestion:_0x367275,meta:_0x1f501c}of this[_0x43ba('0xed')](_0x303420,_0x43ba('0x88')))_0x1f501c[_0x43ba('0x11e')]&&!_0x1f501c[_0x43ba('0x9f')]&&_0x401a6d[_0x43ba('0x129')](..._0x367275[_0x43ba('0x130')]());const _0x2ba7d4=function(_0x1dbe1c,_0x5a59be){const _0x41d14f=[];for(const _0x5702d4 of _0x5a59be){const _0x4c3636=_0x1dbe1c['getIntersection'](_0x5702d4);_0x4c3636&&_0x41d14f[_0x43ba('0x129')](_0x4c3636);}return _0x41d14f;}(_0x303420,_0x401a6d),_0x4b34c8=function(_0x20a032,_0x4d82c0){const _0x34ebfd=[_0x20a032];for(const _0x27a8a5 of _0x4d82c0){let _0x1de4d2=0x0;for(;_0x1de4d2<_0x34ebfd['length'];){const _0x409cdd=_0x34ebfd[_0x1de4d2][_0x43ba('0x6b')](_0x27a8a5);_0x34ebfd[_0x43ba('0x105')](_0x1de4d2,0x1,..._0x409cdd),_0x1de4d2+=_0x409cdd['length'];}}return _0x34ebfd;}(_0x303420,_0x401a6d);_0x2ba7d4[_0x43ba('0x53')]&&this[_0x43ba('0x2e')][_0x43ba('0xbb')](()=>{for(const _0x1097bd of _0x2ba7d4){const _0x214b5d=this[_0x43ba('0x11a')][_0x43ba('0x35')]('formatInline',_0x35fdd9,'accept');this[_0x43ba('0x39')](()=>_0x214b5d([_0x1097bd],_0x5e739e,_0x424078));}});for(const _0x2337eb of _0x4b34c8){let _0x35c241=null,_0x3c26a1=_0x2337eb['start'],_0x43cfe5=_0x2337eb[_0x43ba('0xa6')];for(const {suggestion:_0x25cded,meta:_0x38cd42}of this[_0x43ba('0xed')](_0x2337eb,_0x43ba('0x13c'))){if(!_0x38cd42[_0x43ba('0x11e')])continue;if(_0x25cded[_0x43ba('0xd7')]!=_0x35fdd9)continue;if(!Ot(_0x25cded,_0x424078))continue;const _0xf55862=_0x25cded[_0x43ba('0xef')]();if(_0xf55862['containsRange'](_0x2337eb,!0x0))return null;_0x3c26a1=_0x3c26a1[_0x43ba('0xa2')](_0xf55862['start'])?_0x3c26a1:_0xf55862[_0x43ba('0xdd')],_0x43cfe5=_0x43cfe5[_0x43ba('0x12f')](_0xf55862[_0x43ba('0xa6')])?_0x43cfe5:_0xf55862[_0x43ba('0xa6')],_0x35c241?_0xf55862[_0x43ba('0xdd')]['isBefore'](_0x35c241[_0x43ba('0xef')]()[_0x43ba('0xdd')])?(_0x35c241[_0x43ba('0x5f')](),_0x35c241=_0x25cded):_0x25cded['removeMarkers']():_0x35c241=_0x25cded;}const _0x55ca89=this['_model'][_0x43ba('0x96')](_0x3c26a1,_0x43cfe5);if(_0x35c241)this['_setSuggestionRange'](_0x35c241,_0x55ca89);else{const _0x326810=_0x2af23f(),_0x5a9925=_0x56f0d3['id'];this[_0x43ba('0x29')]({'id':_0x326810,'type':_0x43ba('0xce')+_0x35fdd9,'data':_0x5e739e,'createdAt':new Date(),'authorId':_0x5a9925,'attributes':_0x424078}),this[_0x43ba('0x20')](_0x43ba('0xce')+_0x35fdd9,_0x326810,_0x5a9925,_0x55ca89);}}return null;}[_0x43ba('0xee')](_0x3d6ba6,_0x1a4b5c,_0x23f995=[],_0x3f833c=null,_0x1368b7={}){_0x1a4b5c[_0x43ba('0x139')]||(_0x1a4b5c[_0x43ba('0x139')]=_0x1a4b5c[_0x43ba('0x1d')]),_0x1a4b5c['multipleBlocks']=_0x3d6ba6['is'](_0x43ba('0xf4')),_0x3f833c=_0x3f833c||Nt(_0x1a4b5c);const _0x2ff23a=_0x23f995[_0x43ba('0x11c')](_0x34a6fa=>jt(_0x34a6fa,this[_0x43ba('0x2e')])),_0x1b6997=_0x3d6ba6['is'](_0x43ba('0xf4'))?_0x3d6ba6:jt(_0x3d6ba6,this[_0x43ba('0x2e')]);if('never'===this['_trackFormatChanges']){const _0x403ef2=this[_0x43ba('0x11a')][_0x43ba('0x35')](_0x43ba('0xde'),_0x3f833c,_0x43ba('0x11d'));return this[_0x43ba('0x39')](()=>_0x403ef2([_0x1b6997],_0x1a4b5c,_0x1368b7)),null;}_0x2ff23a[_0x43ba('0x129')](_0x1b6997);let _0x590b3b=!0x0;for(const _0x504434 of _0x2ff23a)if(!this[_0x43ba('0x31')](_0x504434)){_0x590b3b=!0x1;break;}if(_0x590b3b&&_0x43ba('0xbf')!==this[_0x43ba('0xc5')]){const _0x3d3394=this[_0x43ba('0x11a')][_0x43ba('0x35')](_0x43ba('0xde'),_0x3f833c,'accept');return this[_0x43ba('0x39')](()=>_0x3d3394([_0x1b6997],_0x1a4b5c,_0x1368b7)),null;}let _0x487567=null,_0x5ce206=_0x1b6997['start'],_0x3173d7=_0x1b6997[_0x43ba('0xa6')];for(const {suggestion:_0x16f24f,meta:_0x41c1d0}of this['_findSuggestions'](_0x1b6997,'formatBlock')){if(!_0x41c1d0[_0x43ba('0x11e')])continue;if(_0x41c1d0[_0x43ba('0x76')]||_0x41c1d0['containsRangeInObject']||_0x41c1d0[_0x43ba('0x9f')])continue;if(_0x16f24f['data'][_0x43ba('0x139')]!=_0x1a4b5c[_0x43ba('0x139')])continue;if(!Ot(_0x16f24f,_0x1368b7))continue;const _0x106f39=_0x16f24f[_0x43ba('0xef')]();if(_0x16f24f[_0x43ba('0xd7')]==_0x3f833c){if(_0x106f39[_0x43ba('0x78')](_0x1b6997,!0x0))return null;_0x5ce206=_0x5ce206[_0x43ba('0xa2')](_0x106f39[_0x43ba('0xdd')])?_0x5ce206:_0x106f39[_0x43ba('0xdd')],_0x3173d7=_0x3173d7['isAfter'](_0x106f39[_0x43ba('0xa6')])?_0x3173d7:_0x106f39['end'],_0x487567?_0x106f39[_0x43ba('0xdd')][_0x43ba('0xa2')](_0x487567[_0x43ba('0xef')]()[_0x43ba('0xdd')])?(_0x487567['removeMarkers'](),_0x487567=_0x16f24f):_0x16f24f[_0x43ba('0x5f')]():_0x487567=_0x16f24f;}else{const _0x5a115d=_0x1b6997[_0x43ba('0x5e')](_0x106f39);this[_0x43ba('0x123')](_0x16f24f,_0x5a115d);}}const _0x3a71de=this[_0x43ba('0x12e')][_0x43ba('0x10b')][_0x43ba('0x22')](_0x43ba('0x135'))['me'],_0x4d39e2=_0x2af23f(),_0x371f5a=_0x3a71de['id'];if(_0x487567)return this[_0x43ba('0x2b')](_0x487567,this['_model'][_0x43ba('0x96')](_0x5ce206,_0x3173d7)),_0x487567;{const _0x2db96a=this[_0x43ba('0x29')]({'id':_0x4d39e2,'type':_0x43ba('0x4')+_0x3f833c,'data':_0x1a4b5c,'createdAt':new Date(),'authorId':_0x371f5a,'attributes':_0x1368b7});return this['_addSuggestionMarker'](_0x43ba('0x4')+_0x3f833c,_0x4d39e2,_0x371f5a,this['_model'][_0x43ba('0x96')](_0x5ce206,_0x3173d7)),_0x2db96a;}}[_0x43ba('0xb0')](_0x59d425,_0x4bd67,_0x4fdd12=[],_0xa511f9=null,_0x4417a4={}){_0x4bd67[_0x43ba('0x139')]||(_0x4bd67[_0x43ba('0x139')]=_0x4bd67['commandName']);const _0x23d366=_0x59d425[0x0];_0x4bd67[_0x43ba('0xa1')]=_0x23d366['is'](_0x43ba('0xf4')),_0xa511f9=_0xa511f9||Nt(_0x4bd67);const _0x156ca7=_0x4fdd12[_0x43ba('0x11c')](_0x1555fd=>jt(_0x1555fd,this['_model'])),_0x388755=_0x23d366['is']('range')?_0x59d425:_0x59d425[_0x43ba('0x11c')](_0x47f752=>jt(_0x47f752,this[_0x43ba('0x2e')]));if(_0x43ba('0x7d')===this[_0x43ba('0xc5')]){const _0x13f0d2=this['_suggestionFactory'][_0x43ba('0x35')](_0x43ba('0xde'),_0xa511f9,_0x43ba('0x11d'));return this[_0x43ba('0x39')](()=>_0x13f0d2(_0x388755,_0x4bd67,_0x4417a4)),null;}_0x156ca7[_0x43ba('0x129')](..._0x388755);let _0x16a449=!0x0;for(const _0x4a89f0 of _0x156ca7)if(!this[_0x43ba('0x31')](_0x4a89f0)){_0x16a449=!0x1;break;}if(_0x16a449&&_0x43ba('0xbf')!==this[_0x43ba('0xc5')]){const _0x330b7c=this[_0x43ba('0x11a')][_0x43ba('0x35')](_0x43ba('0xde'),_0xa511f9,_0x43ba('0x11d'));return this[_0x43ba('0x39')](()=>_0x330b7c(_0x388755,_0x4bd67,_0x4417a4)),null;}const _0x2463cb=this[_0x43ba('0x12e')][_0x43ba('0x10b')][_0x43ba('0x22')](_0x43ba('0x135'))['me'];for(const _0x418325 of this[_0x43ba('0x2')]()){if(_0x418325[_0x43ba('0xd6')]['id']!=_0x2463cb['id'])continue;if(_0x43ba('0xde')!=_0x418325[_0x43ba('0x7e')]||_0x418325['data'][_0x43ba('0x139')]!=_0x4bd67['formatGroupId'])continue;if(!Ot(_0x418325,_0x4417a4))continue;const _0x46da21=_0x418325['subType']==_0xa511f9;for(let _0x17299a=0x0;_0x17299a<_0x388755[_0x43ba('0x53')];_0x17299a++){const _0x815e89=_0x388755[_0x17299a];for(const _0x3f3fb9 of _0x418325[_0x43ba('0xb1')]()){const _0x19f861=_0x3f3fb9[_0x43ba('0x71')]();if(_0x815e89[_0x43ba('0x30')](_0x19f861)){_0x46da21?(_0x388755['splice'](_0x17299a,0x1),_0x17299a--):_0x418325[_0x43ba('0x48')](_0x3f3fb9[_0x43ba('0x3e')]);break;}}}}if(0x0==_0x388755[_0x43ba('0x53')])return null;const _0x2fa1f3=this['_suggestionFactory']['getSuggestionCallback'](_0x43ba('0xde'),_0xa511f9,'join');for(const _0x3f94ce of this[_0x43ba('0x2')]())if(_0x3f94ce[_0x43ba('0xd6')]['id']==_0x2463cb['id']&&_0x43ba('0xde')==_0x3f94ce[_0x43ba('0x7e')]&&_0x3f94ce[_0x43ba('0x3f')][_0x43ba('0x139')]==_0x4bd67[_0x43ba('0x139')]&&_0x3f94ce[_0x43ba('0xd7')]==_0xa511f9&&Ot(_0x3f94ce,_0x4417a4)&&(_0x2fa1f3(_0x3f94ce[_0x43ba('0x130')](),_0x388755)||_0x2fa1f3(_0x388755,_0x3f94ce[_0x43ba('0x130')]()))){for(const _0x207a55 of _0x388755)_0x3f94ce[_0x43ba('0x11')](_0x207a55);return _0x3f94ce;}const _0x16220b=_0x2af23f(),_0x128455=_0x2463cb['id'],_0x14bb7f=_0x43ba('0x4')+_0xa511f9,_0x8d45cf=this[_0x43ba('0x29')]({'id':_0x16220b,'type':_0x14bb7f,'data':_0x4bd67,'createdAt':new Date(),'authorId':_0x128455,'attributes':_0x4417a4});for(const _0x4e2f49 of _0x388755)this[_0x43ba('0x20')](_0x14bb7f,_0x16220b,_0x128455,_0x4e2f49,_0x3e8a11[_0x43ba('0xca')]());return _0x8d45cf;}['markDeletion'](_0x40e2d1,_0xc53f7=null,_0x3bfab8={}){if(_0x40e2d1[_0x43ba('0x2f')])return null;const _0x269b38=this['editor'][_0x43ba('0x10b')][_0x43ba('0x22')](_0x43ba('0x135'))['me'],_0x504923=new _0x15aa1d(_0x40e2d1[_0x43ba('0xdd')],_0x40e2d1[_0x43ba('0xa6')]);for(const {suggestion:_0xfcd11b,meta:_0x1b4eba}of this['_findSuggestions'](_0x504923,_0x43ba('0x88')))if(_0x1b4eba[_0x43ba('0x11e')]&&!_0x1b4eba[_0x43ba('0x76')]){if(_0xfcd11b[_0x43ba('0x87')]){const _0x4991fb=_0xfcd11b[_0x43ba('0x130')]()[_0x43ba('0x13e')](_0x2a14ce=>_0x43ba('0x7f')!=_0x2a14ce['root'][_0x43ba('0xb9')]);_0x4991fb[_0x43ba('0x108')](_0x5b81f9=>_0x504923['containsRange'](_0x5b81f9,!0x0))&&_0xfcd11b[_0x43ba('0x4f')]();if(_0x4991fb[_0x43ba('0x24')](_0x369ad4=>_0x369ad4['containsRange'](_0x504923,!0x0))){const _0x362464=this[_0x43ba('0x11a')][_0x43ba('0x35')]('deletion',_0xc53f7,'accept');return this['forceDefaultExecution'](()=>_0x362464([_0x504923],null,_0x3bfab8)),null;}}else{const _0x56bb7d=_0x504923[_0x43ba('0x5e')](_0xfcd11b[_0x43ba('0xef')]());null!==_0x56bb7d&&_0xfcd11b[_0x43ba('0x126')]([_0x56bb7d],null,_0x3bfab8);}}if(_0x504923[_0x43ba('0x65')](),_0x504923[_0x43ba('0x2f')]||'$graveyard'==_0x504923[_0x43ba('0x54')][_0x43ba('0xb9')])return null;let _0x4fe583=null,_0x1251d6=_0x504923['start'],_0x54b9a0=_0x504923[_0x43ba('0xa6')];const _0x342e64=this[_0x43ba('0xed')](_0x504923,_0x43ba('0xf2'));for(const {suggestion:_0x381682,meta:_0x5cd84f}of _0x342e64){const _0x9319b6=this[_0x43ba('0x2e')][_0x43ba('0x96')](_0x1251d6,_0x54b9a0);if(_0x5cd84f[_0x43ba('0x11e')]&&(this[_0x43ba('0x5')]||!_0x5cd84f[_0x43ba('0x67')]&&!_0x5cd84f[_0x43ba('0x9f')])){if(_0x381682[_0x43ba('0x87')]){if(!Ot(_0x381682,_0x3bfab8))continue;let _0x2e6a09=!0x0;for(const _0x2e5f31 of _0x381682[_0x43ba('0x130')]()){if(_0x2e5f31[_0x43ba('0x78')](_0x9319b6,!0x0))return _0x381682;_0x9319b6[_0x43ba('0x78')](_0x2e5f31)||(_0x2e6a09=!0x1);}_0x2e6a09&&_0x381682[_0x43ba('0x4f')]();}else{const _0x1ea45b=_0x381682[_0x43ba('0xef')]();if(_0x1ea45b[_0x43ba('0x78')](_0x9319b6,!0x0))return _0x381682;if(!Ot(_0x381682,_0x3bfab8)){_0x9319b6['containsRange'](_0x1ea45b)?_0x381682['removeMarkers']():_0x1ea45b[_0x43ba('0xe')](_0x1251d6)?_0x1251d6=_0x1ea45b[_0x43ba('0xa6')]:_0x1ea45b[_0x43ba('0xe')](_0x54b9a0)&&(_0x54b9a0=_0x1ea45b[_0x43ba('0xdd')]);continue;}_0x1251d6=_0x1251d6[_0x43ba('0xa2')](_0x1ea45b['start'])?_0x1251d6:_0x1ea45b[_0x43ba('0xdd')],_0x54b9a0=_0x54b9a0[_0x43ba('0x12f')](_0x1ea45b[_0x43ba('0xa6')])?_0x54b9a0:_0x1ea45b[_0x43ba('0xa6')],_0x3bfab8=Object[_0x43ba('0x4e')]({},_0x381682[_0x43ba('0x10')]),_0x4fe583?_0x1ea45b[_0x43ba('0xdd')][_0x43ba('0xa2')](_0x4fe583[_0x43ba('0xef')]()['start'])?(_0x4fe583['removeMarkers'](),_0x4fe583=_0x381682):_0x381682[_0x43ba('0x5f')]():_0x4fe583=_0x381682;}}}if(_0x4fe583)return this['_setSuggestionRange'](_0x4fe583,this[_0x43ba('0x2e')][_0x43ba('0x96')](_0x1251d6,_0x54b9a0)),_0x4fe583;{const _0x483e4d=_0x2af23f(),_0x18de4c=this[_0x43ba('0x2e')][_0x43ba('0x96')](_0x1251d6,_0x54b9a0),_0x6fe97b=_0x269b38['id'],_0xd91898=_0xc53f7?'deletion:'+_0xc53f7:_0x43ba('0xf2'),_0x3a4e2e=this['_setSuggestionData']({'id':_0x483e4d,'type':_0xd91898,'createdAt':new Date(),'authorId':_0x6fe97b,'attributes':_0x3bfab8});return this[_0x43ba('0x20')](_0xd91898,_0x483e4d,_0x6fe97b,_0x18de4c),_0x3a4e2e;}}['markMultiRangeDeletion'](_0x55478a,_0x8d6f66=_0x43ba('0x55'),_0x5f3240={}){const _0x300218=this['editor'][_0x43ba('0x10b')][_0x43ba('0x22')](_0x43ba('0x135'))['me'],_0x110a85=_0x55478a[_0x43ba('0x11c')](_0x447a6c=>new _0x15aa1d(_0x447a6c[_0x43ba('0xdd')],_0x447a6c[_0x43ba('0xa6')])),_0x585238=new Set();for(const {suggestion:_0x3c57bf,meta:_0x2d395a}of this[_0x43ba('0xed')](_0x110a85,_0x43ba('0x88')))_0x2d395a['isOwn']&&!_0x2d395a[_0x43ba('0x76')]&&_0x585238[_0x43ba('0x26')](_0x3c57bf);for(const _0x1db427 of _0x585238)if(_0x1db427[_0x43ba('0x87')]){const _0x48be79=_0x1db427[_0x43ba('0x130')]();(!_0x1db427['attributes']||!_0x1db427['attributes']['skipNestingCheck'])&&(_0x48be79[_0x43ba('0x108')](_0x548bad=>_0x110a85['some'](_0x7f8cf5=>_0x7f8cf5[_0x43ba('0x78')](_0x548bad,!0x0)))&&_0x1db427[_0x43ba('0x4f')]());if(_0x110a85['every'](_0x5b6a97=>_0x48be79['some'](_0x4b0248=>_0x4b0248[_0x43ba('0x78')](_0x5b6a97,!0x0)))){const _0x52122c=this[_0x43ba('0x11a')][_0x43ba('0x35')](_0x43ba('0xf2'),_0x8d6f66,_0x43ba('0x11d'));return this[_0x43ba('0x39')](()=>_0x52122c(_0x55478a,null,_0x5f3240)),null;}}else{const _0x33041c=_0x1db427[_0x43ba('0xef')]();_0x110a85[_0x43ba('0x24')](_0x2f58e2=>_0x2f58e2[_0x43ba('0x78')](_0x33041c,!0x0))&&_0x1db427['discard']();if(_0x110a85['every'](_0xe4110e=>_0x33041c[_0x43ba('0x78')](_0xe4110e,!0x0))){const _0x43b1e2=this['_suggestionFactory'][_0x43ba('0x35')](_0x43ba('0xf2'),_0x8d6f66,'accept');return this[_0x43ba('0x39')](()=>_0x43b1e2(_0x110a85,null,_0x5f3240)),null;}}const _0x2c02bb=this[_0x43ba('0x11a')][_0x43ba('0x35')](_0x43ba('0xf2'),_0x8d6f66,_0x43ba('0x13f'));let _0x28148e=null;for(const _0x177b96 of this[_0x43ba('0x2')]())if(_0x177b96[_0x43ba('0xd6')]['id']==_0x300218['id']&&_0x177b96['isInContent']&&'deletion'==_0x177b96[_0x43ba('0x7e')]&&_0x177b96[_0x43ba('0xd7')]==_0x8d6f66&&Ot(_0x177b96,_0x5f3240)&&(_0x2c02bb(_0x177b96[_0x43ba('0x130')](),_0x110a85)||_0x2c02bb(_0x110a85,_0x177b96[_0x43ba('0x130')]()))){if(_0x28148e){if(_0x177b96[_0x43ba('0x18')]&&_0x177b96[_0x43ba('0x18')][_0x43ba('0x53')])continue;for(const _0x385c05 of _0x177b96['getRanges']())_0x28148e[_0x43ba('0x10c')](_0x385c05)||_0x28148e[_0x43ba('0x11')](_0x385c05);_0x177b96['removeMarkers']();}else{_0x28148e=_0x177b96;for(const _0x3a6ae4 of _0x110a85)_0x177b96[_0x43ba('0x10c')](_0x3a6ae4)||_0x177b96['addRange'](_0x3a6ae4);}}if(_0x28148e)return _0x28148e;_0x585238['clear']();for(const {suggestion:_0x474e64,meta:_0x2ea3e}of this[_0x43ba('0xed')](_0x110a85,'deletion'))_0x2ea3e[_0x43ba('0x11e')]&&(this[_0x43ba('0x5')]||!_0x2ea3e[_0x43ba('0x67')]&&!_0x2ea3e[_0x43ba('0x9f')])&&Ot(_0x474e64,_0x5f3240)&&_0x585238[_0x43ba('0x26')](_0x474e64);for(const _0x211f9a of _0x585238){const _0xfd69ef=_0x211f9a['getRanges']();if(!_0x5f3240||!_0x5f3240[_0x43ba('0x121')]){if(_0x110a85[_0x43ba('0x108')](_0x378f9b=>_0xfd69ef[_0x43ba('0x24')](_0x488bf1=>_0x488bf1[_0x43ba('0x78')](_0x378f9b,!0x0))))return _0x211f9a;}(!_0x211f9a[_0x43ba('0x10')]||!_0x211f9a[_0x43ba('0x10')]['skipNestingCheck'])&&(_0xfd69ef['every'](_0x394b15=>_0x110a85[_0x43ba('0x24')](_0x1243e9=>_0x1243e9[_0x43ba('0x78')](_0x394b15,!0x0)))&&_0x211f9a['discard']());}const _0x14349e=_0x2af23f(),_0x38e14b=_0x300218['id'],_0x204198='deletion:'+_0x8d6f66,_0x7577c0=this['_setSuggestionData']({'id':_0x14349e,'type':_0x204198,'createdAt':new Date(),'authorId':_0x38e14b,'attributes':_0x5f3240});for(const _0x5099b7 of _0x110a85)_0x5099b7[_0x43ba('0x65')](),_0x5099b7['isCollapsed']||_0x43ba('0x7f')==_0x5099b7[_0x43ba('0x54')][_0x43ba('0xb9')]||this[_0x43ba('0x20')](_0x204198,_0x14349e,_0x38e14b,_0x5099b7,_0x3e8a11['getMultiRangeId']());return _0x7577c0;}['_setSuggestionRange'](_0x3b6255,_0x6cbf38){const _0x82ba29=_0x3b6255['getFirstMarker']();this[_0x43ba('0x2e')][_0x43ba('0xbb')](_0x11fc3a=>{_0x11fc3a[_0x43ba('0x86')](_0x82ba29,{'range':_0x6cbf38});});}[_0x43ba('0xff')](_0x1baa6f){const _0x3a6390=_0x1baa6f['id'],_0x58e286=this[_0x43ba('0x12e')][_0x43ba('0xfb')][_0x43ba('0x22')](_0x43ba('0xb2'));this[_0x43ba('0x33')][_0x43ba('0x9a')](_0x3a6390)||this[_0x43ba('0x33')]['addCommentThread']({'channelId':_0x58e286,'threadId':_0x3a6390,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ea485=this[_0x43ba('0x33')][_0x43ba('0x101')](_0x3a6390);_0x3ea485[_0x43ba('0xeb')](_0x43ba('0x43')),_0x3ea485[_0x43ba('0x43')]=!0x1,_0x1baa6f[_0x43ba('0x18')]=_0x3ea485;}[_0x43ba('0xc6')](_0x2ede97,_0x2579a4,_0xa8008e,_0x1b5910){if(_0x2ede97[_0x43ba('0x7e')]!=_0x2579a4||_0x2ede97[_0x43ba('0xd7')]!=_0xa8008e||_0x2ede97[_0x43ba('0xf8')]['id']!=_0x1b5910)throw this['editor'][_0x43ba('0x89')]('track-changes-suggestion-data-mismatch'),new _0x16ff23(_0x43ba('0xc3'),this);}[_0x43ba('0x123')](_0xee4844,_0x5fb232){const _0xbb61ed=_0xee4844[_0x43ba('0xef')]();if(_0x5fb232[_0x43ba('0x30')](_0xbb61ed))_0xee4844[_0x43ba('0x5f')]();else{if(_0xbb61ed[_0x43ba('0x78')](_0x5fb232)){const _0x2a17c6=this['_model']['createPositionAt'](_0x5fb232['start'][_0x43ba('0x7c')],'end');this[_0x43ba('0x2b')](_0xee4844,this['_model']['createRange'](_0xbb61ed[_0x43ba('0xdd')],_0x2a17c6));const _0x58c2e8=_0x2af23f(),_0x4d6655=_0xee4844['creator']['id'],_0x517ce8=_0xee4844[_0x43ba('0x7e')]+':'+_0xee4844['subType'];this[_0x43ba('0x29')]({'id':_0x58c2e8,'type':_0x517ce8,'createdAt':new Date(),'authorId':_0x4d6655,'data':_0xee4844[_0x43ba('0x3f')],'attributes':_0xee4844['attributes']});const _0x4ecf0d=this['_model'][_0x43ba('0xb7')](_0x5fb232[_0x43ba('0xa6')][_0x43ba('0xc0')],_0x43ba('0x11f')),_0x5f18a0=this[_0x43ba('0x2e')]['createRange'](_0x4ecf0d,_0xbb61ed[_0x43ba('0xa6')]);this[_0x43ba('0x20')](_0x517ce8,_0x58c2e8,_0x4d6655,_0x5f18a0);}else{if(_0xbb61ed[_0x43ba('0xe')](_0x5fb232[_0x43ba('0xdd')])){const _0x1c4e3e=this[_0x43ba('0x2e')][_0x43ba('0xb7')](_0x5fb232[_0x43ba('0xdd')][_0x43ba('0x7c')],_0x43ba('0xa6'));this[_0x43ba('0x2b')](_0xee4844,this['_model'][_0x43ba('0x96')](_0xbb61ed[_0x43ba('0xdd')],_0x1c4e3e));}else{const _0x245562=this[_0x43ba('0x2e')][_0x43ba('0xb7')](_0x5fb232[_0x43ba('0xa6')][_0x43ba('0xc0')],_0x43ba('0x11f'));this['_setSuggestionRange'](_0xee4844,this[_0x43ba('0x2e')]['createRange'](_0x245562,_0xbb61ed[_0x43ba('0xa6')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2abac8){for(const {suggestion:_0x51c329,meta:_0x32d2f1}of this['_findSuggestions'](_0x2abac8,'insertion')){if(!_0x32d2f1[_0x43ba('0x11e')])continue;const _0x4c1813=_0x51c329[_0x43ba('0x130')]();for(const _0x35f5c9 of _0x4c1813)if(!_0x2abac8[_0x43ba('0x6b')](_0x35f5c9)[_0x43ba('0x53')])return!0x0;}return!0x1;}[_0x43ba('0x47')](_0x3bf7ba){const _0x365a53=this[_0x43ba('0x12e')]['plugins'][_0x43ba('0x22')](_0x43ba('0x135'))[_0x43ba('0xa4')](_0x3bf7ba);if(!_0x365a53)throw new _0x16ff23(_0x43ba('0xb4'),this);return _0x365a53;}[_0x43ba('0x12d')](_0x54eb04){const _0x4e353c=this[_0x43ba('0x12e')][_0x43ba('0x10b')]['get'](_0x43ba('0x135')),_0x14afaf=_0x59b15b(_0x43ba('0xf7')+_0x54eb04),_0x1fd986=_0x4e353c['getUser'](_0x14afaf);return _0x1fd986||_0x4e353c[_0x43ba('0x2a')]({'id':_0x14afaf,'name':_0x54eb04});}[_0x43ba('0xc7')](_0x168ec,_0x280162,_0x48d55e,_0x496749,_0x3ec3e8){const _0x20917f=this[_0x43ba('0x47')](_0x496749),_0x4f7e06=this[_0x43ba('0x11a')][_0x43ba('0x79')](_0x168ec,_0x280162,_0x48d55e,_0x20917f,_0x3ec3e8,_0x51e82d=>this[_0x43ba('0x1f')](_0x48d55e,{'attributes':_0x51e82d}));return this[_0x43ba('0x14')](_0x4f7e06,_0x43ba('0x11d'),()=>{this[_0x43ba('0x1f')](_0x48d55e,{'state':_0x43ba('0x57')});},{'priority':_0x43ba('0x6a')}),this[_0x43ba('0x14')](_0x4f7e06,'discard',()=>{this[_0x43ba('0x1f')](_0x48d55e,{'state':'rejected'});},{'priority':_0x43ba('0x6a')}),this['_suggestions'][_0x43ba('0x28')](_0x48d55e,_0x4f7e06),this['_suggestionState'][_0x43ba('0x28')](_0x4f7e06,_0x43ba('0xa5')),_0x4f7e06;}[_0x43ba('0x56')](_0x5cc256){const _0x4a3bcf=_0x5cc256[_0x43ba('0x27')](':');return{'group':_0x4a3bcf[0x0],'type':_0x4a3bcf[0x1],'subType':_0x4a3bcf[_0x43ba('0x53')]>=0x5?_0x4a3bcf[0x2]:null,'id':_0x4a3bcf[_0x43ba('0x53')]<0x5?_0x4a3bcf[0x2]:_0x4a3bcf[0x3],'authorId':_0x4a3bcf[_0x43ba('0x53')]<0x5?_0x4a3bcf[0x3]:_0x4a3bcf[0x4],'markerCount':0x6==_0x4a3bcf[_0x43ba('0x53')]?_0x4a3bcf[0x5]:null};}[_0x43ba('0x140')](_0x21f5d8,_0x1bc757,_0x2341e1){const _0x568fbd=_0x21f5d8['getFirstRange'](),_0x389c01=_0x568fbd[_0x43ba('0xdd')],_0x226f44=_0x568fbd[_0x43ba('0xa6')];this[_0x43ba('0x2b')](_0x21f5d8,this['_model'][_0x43ba('0x96')](_0x389c01,_0x1bc757));const _0x2bb67c=_0x2af23f(),_0x246cf7=_0x21f5d8[_0x43ba('0xf8')]['id'],_0x112d2b=_0x21f5d8[_0x43ba('0x7e')]+(_0x21f5d8[_0x43ba('0xd7')]?':'+_0x21f5d8['subType']:'');this['_setSuggestionData']({'id':_0x2bb67c,'type':_0x112d2b,'createdAt':new Date(),'authorId':_0x246cf7,'originalSuggestionId':_0x21f5d8['id'],'attributes':_0x21f5d8[_0x43ba('0x10')],'data':_0x21f5d8['data']}),_0x43ba('0xde')==_0x21f5d8[_0x43ba('0x7e')]&&(_0x2341e1=this[_0x43ba('0x2e')][_0x43ba('0x4c')](_0x2341e1[_0x43ba('0xc0')])),this[_0x43ba('0x20')](_0x112d2b,_0x2bb67c,_0x246cf7,this[_0x43ba('0x2e')][_0x43ba('0x96')](_0x2341e1,_0x226f44));}['_findSuggestions'](_0x14e55a,_0x440438=null){const _0x102938=[],_0x59369c=this[_0x43ba('0x12e')][_0x43ba('0x10b')][_0x43ba('0x22')]('Users')['me'];Array[_0x43ba('0x114')](_0x14e55a)||(_0x14e55a=[_0x14e55a]);for(const _0x404b54 of this[_0x43ba('0x2')]()){if(!_0x404b54[_0x43ba('0xb8')])continue;if(_0x440438&&_0x404b54[_0x43ba('0x7e')]!=_0x440438)continue;let _0x1621a1=!0x1;for(const _0x355c77 of _0x404b54['getRanges']()){for(const _0x57775e of _0x14e55a){const _0x58cd7d=_0x57775e['start']['isEqual'](_0x355c77[_0x43ba('0xa6')])||_0x57775e[_0x43ba('0xa6')][_0x43ba('0x30')](_0x355c77[_0x43ba('0xdd')]);if(_0x58cd7d||_0x57775e[_0x43ba('0x5e')](_0x355c77)){const _0x36068a=_0x57775e[_0x43ba('0x78')](_0x355c77)&&_t(this[_0x43ba('0x2e')][_0x43ba('0xd1')],_0x355c77[_0x43ba('0xdd')],_0x57775e),_0x39c211=_0x355c77['containsRange'](_0x57775e)&&_t(this['_model']['schema'],_0x57775e[_0x43ba('0xdd')],_0x355c77);_0x102938['push']({'suggestion':_0x404b54,'meta':{'isOwn':_0x59369c==_0x404b54[_0x43ba('0xd6')],'isNextTo':_0x58cd7d,'isInsideObject':_0x36068a,'containsRangeInObject':_0x39c211}}),_0x1621a1=!0x0;break;}}if(_0x1621a1)break;}}return _0x102938;}['_addSuggestionMarker'](_0x512681,_0x24a7e3,_0x137d57,_0x1f96c4,_0x179ee9){this[_0x43ba('0x2e')][_0x43ba('0xbb')](_0x52b57a=>{let _0x59b86c='suggestion:'+_0x512681+':'+_0x24a7e3+':'+_0x137d57;_0x179ee9&&(_0x59b86c=_0x59b86c+':'+_0x179ee9),_0x52b57a[_0x43ba('0xbd')](_0x59b86c,{'range':_0x1f96c4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x43ba('0x73')](_0x172b09){const _0x1aa691=_0x172b09[_0x43ba('0x72')],_0x5657e8=_0x172b09[_0x43ba('0x3a')];_0x172b09[_0x43ba('0x72')]=null,null!=_0x1aa691&&(_0x1aa691[_0x43ba('0x3a')]=null),_0x172b09[_0x43ba('0x3a')]=null,null!=_0x5657e8&&(_0x5657e8['previous']=null),'ready'==this[_0x43ba('0x45')][_0x43ba('0x22')](_0x172b09)&&(this[_0x43ba('0x45')]['set'](_0x172b09,'removed'),this[_0x43ba('0x92')](_0x43ba('0x80'),_0x172b09,_0x1aa691,_0x5657e8));}[_0x43ba('0x29')](_0x3e29fa){const _0x561e84=_0x3e29fa['id'],_0xf88c79=this['addSuggestionData'](_0x3e29fa);if(this[_0x43ba('0xea')]&&this[_0x43ba('0xea')][_0x43ba('0x1a')]){const _0x29bcb5=this[_0x43ba('0x12e')][_0x43ba('0x10b')]['get'](_0x43ba('0x62')),_0x594c19=_0xf88c79[_0x43ba('0x7')],_0x1f06b1=_0xf88c79['subType']?_0xf88c79[_0x43ba('0x7e')]+':'+_0xf88c79['subType']:_0xf88c79[_0x43ba('0x7e')],_0x3661fe=this['editor'][_0x43ba('0xec')],_0x14d83a=_0x29bcb5[_0x43ba('0x26')](_0x28a7fe(_0x3661fe,_0x43ba('0x112'))),_0x15dc1b={'id':_0x561e84,'type':_0x1f06b1,'hasComments':_0x594c19,'data':_0x3e29fa['data']||null,'originalSuggestionId':_0x3e29fa[_0x43ba('0x63')]||null,'attributes':_0xf88c79[_0x43ba('0x10')]};this[_0x43ba('0xea')]['addSuggestion'](_0x15dc1b)['then'](_0x5efb7e=>{_0xf88c79[_0x43ba('0x3b')]=!0x0,_0x29bcb5['remove'](_0x14d83a),_0x5efb7e&&_0x5efb7e[_0x43ba('0xf0')]&&(this['_suggestions']['get'](_0x561e84)[_0x43ba('0xf0')]=_0x5efb7e['createdAt']);})[_0x43ba('0x34')](_0x232e71=>{throw _0x538ed1(_0x43ba('0xc')),this[_0x43ba('0x12e')][_0x43ba('0x49')][_0x43ba('0xa')]({'isUndoable':!0x1},()=>{_0xf88c79[_0x43ba('0x4f')]();}),_0xf88c79[_0x43ba('0x2d')](),this['_suggestions'][_0x43ba('0x15')](_0xf88c79['id']),this[_0x43ba('0x45')]['delete'](_0xf88c79),_0x232e71;});}return _0xf88c79;}[_0x43ba('0x1f')](_0x45bf22,_0x4219bc){const _0x320349=this[_0x43ba('0x12e')][_0x43ba('0x10b')]['get']('PendingActions'),_0x2245c4=this['getSuggestion'](_0x45bf22);if(this[_0x43ba('0xea')]&&this['_adapter'][_0x43ba('0x6f')]){if(_0x2245c4['_saved']){const _0x4d3d52=_0x320349[_0x43ba('0x26')](_0x28a7fe(this[_0x43ba('0x12e')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x43ba('0xea')][_0x43ba('0x6f')](_0x45bf22,_0x4219bc)[_0x43ba('0x97')](()=>{_0x320349[_0x43ba('0x66')](_0x4d3d52);});}else _0x2245c4['on'](_0x43ba('0xa3'),()=>{this[_0x43ba('0x1f')](_0x45bf22,_0x4219bc);});}}[_0x43ba('0x12')](_0x503e6c){if(!this[_0x43ba('0xea')]||!this[_0x43ba('0xea')][_0x43ba('0x106')])throw new _0x16ff23(_0x43ba('0x113'),this);return this[_0x43ba('0xea')][_0x43ba('0x106')](_0x503e6c);}[_0x43ba('0x100')](_0x1f0701){const {id:_0x4ff907,type:_0x5cb05f,subType:_0x527b3f,authorId:_0x991b05}=this['_splitMarkerName'](_0x1f0701),_0x5a14b2=this[_0x43ba('0xac')][_0x43ba('0x22')](_0x4ff907)||this[_0x43ba('0xc7')](_0x5cb05f,_0x527b3f,_0x4ff907,_0x991b05,{});switch(this[_0x43ba('0xc6')](_0x5a14b2,_0x5cb05f,_0x527b3f,_0x991b05),this[_0x43ba('0x45')][_0x43ba('0x22')](_0x5a14b2)){case'notReady':this[_0x43ba('0x12')](_0x4ff907)[_0x43ba('0x97')](_0x48515c=>{let _0xb48a0b=Promise[_0x43ba('0xc8')]();_0x48515c[_0x43ba('0x7')]&&(_0xb48a0b=this[_0x43ba('0x33')][_0x43ba('0x10d')]({'channelId':this['editor'][_0x43ba('0xfb')][_0x43ba('0x22')](_0x43ba('0xb2')),'threadId':_0x4ff907})),_0xb48a0b['then'](()=>{this[_0x43ba('0xfc')](_0x48515c)[_0x43ba('0x3b')]=!0x0;});}),this[_0x43ba('0x45')][_0x43ba('0x28')](_0x5a14b2,_0x43ba('0x13d'));break;case _0x43ba('0xd2'):this[_0x43ba('0x1f')](_0x4ff907,{'state':'open'});case _0x43ba('0xf1'):this[_0x43ba('0x45')][_0x43ba('0x28')](_0x5a14b2,'ready'),this[_0x43ba('0x92')]('suggestionLoaded',_0x5a14b2);break;case'ready':this[_0x43ba('0x92')](_0x43ba('0x8'),_0x5a14b2);}return _0x5a14b2[_0x43ba('0x19')](_0x1f0701),_0x5a14b2;}[_0x43ba('0xaa')](_0x3867d7){const _0x50a204=Array[_0x43ba('0x90')](_0x3867d7)[_0x43ba('0x13e')](_0x184245=>!_0x184245[_0x43ba('0x87')]),_0x3e991d=this[_0x43ba('0x2')]({'skipNotAttached':!0x0})[_0x43ba('0x13e')](_0x2798aa=>!_0x2798aa[_0x43ba('0x87')]),_0x436511=_0x3e991d['filter'](_0x1eff54=>!_0x3867d7['has'](_0x1eff54)),_0x486ee9=new Map(_0x3e991d[_0x43ba('0x11c')](_0xeb616d=>[_0xeb616d,this[_0x43ba('0x11a')]['getSuggestionCallback'](_0xeb616d[_0x43ba('0x7e')],_0xeb616d[_0x43ba('0xd7')],_0x43ba('0xc2'))])),_0x26ed5a=new Map(_0x3e991d[_0x43ba('0x11c')](_0xa9d2ff=>[_0xa9d2ff,_0xa9d2ff['getFirstRange']()])),_0x272db8=new Set(),_0x5e28a0=new Set();for(let _0x3669a5=0x0;_0x3669a5<_0x50a204['length'];_0x3669a5++)_0x431821(_0x50a204[_0x3669a5],_0x50a204,_0x3669a5+0x1);for(let _0xd45c6c=0x0;_0xd45c6c<_0x50a204[_0x43ba('0x53')];_0xd45c6c++)_0x431821(_0x50a204[_0xd45c6c],_0x436511,0x0);for(let _0xc6287=0x0;_0xc6287<_0x50a204[_0x43ba('0x53')];_0xc6287++){const _0x2f18cc=_0x50a204[_0xc6287];!_0x5e28a0['has'](_0x2f18cc)&&_0x2f18cc[_0x43ba('0x72')]&&(_0x2f18cc[_0x43ba('0x72')][_0x43ba('0x3a')]===_0x2f18cc&&(_0x2f18cc['previous'][_0x43ba('0x3a')]=null),_0x2f18cc[_0x43ba('0x72')]=null),!_0x272db8[_0x43ba('0x85')](_0x2f18cc)&&_0x2f18cc['next']&&(_0x2f18cc['next'][_0x43ba('0x72')]===_0x2f18cc&&(_0x2f18cc[_0x43ba('0x3a')]['previous']=null),_0x2f18cc[_0x43ba('0x3a')]=null);}function _0x431821(_0x2a7a41,_0xab3410,_0x54392f){for(let _0x499f64=_0x54392f;_0x499f64<_0xab3410[_0x43ba('0x53')];_0x499f64++){const _0x36cc47=_0x5e1438(_0x2a7a41,_0xab3410[_0x499f64]);_0x36cc47&&(_0x36cc47[0x0]['next']=_0x36cc47[0x1],_0x36cc47[0x1][_0x43ba('0x72')]=_0x36cc47[0x0],_0x272db8['add'](_0x36cc47[0x0]),_0x5e28a0['add'](_0x36cc47[0x1]));}}function _0x5e1438(_0x201666,_0x369ddf){if(_0x201666[_0x43ba('0xd6')]['id']!==_0x369ddf['author']['id'])return null;const _0x336b9f=_0x486ee9[_0x43ba('0x22')](_0x201666)(_0x201666,_0x369ddf,_0x26ed5a['get'](_0x201666),_0x26ed5a[_0x43ba('0x22')](_0x369ddf));if(!_0x336b9f)return null;return _0x486ee9[_0x43ba('0x22')](_0x369ddf)(_0x201666,_0x369ddf,_0x26ed5a[_0x43ba('0x22')](_0x201666),_0x26ed5a['get'](_0x369ddf))?_0x336b9f[0x1][_0x43ba('0x18')]&&_0x336b9f[0x1][_0x43ba('0x18')][_0x43ba('0x53')]?null:_0x336b9f:null;}}[_0x43ba('0xe7')](_0x48da15){const _0xf08d12=Array[_0x43ba('0x90')](_0x48da15),_0x14a758=this[_0x43ba('0x2')]({'skipNotAttached':!0x0}),_0x3ba7c5=_0x14a758['filter'](_0x206811=>!_0x48da15['has'](_0x206811)),_0xf1a73d=new Map(_0xf08d12[_0x43ba('0x11c')](_0x59d352=>[_0x59d352,this['_suggestionFactory'][_0x43ba('0x35')](_0x59d352['type'],_0x59d352['subType'],_0x43ba('0x13f'))])),_0x3efaa6=new Map(_0x14a758[_0x43ba('0x11c')](_0x1f2bdb=>[_0x1f2bdb,_0x1f2bdb[_0x43ba('0x130')]()]));for(let _0x34dae0=0x0;_0x34dae0<_0xf08d12['length'];_0x34dae0++){if(_0x3bbb15(this,_0xf08d12[_0x34dae0],_0xf08d12,_0x34dae0+0x1))return!0x0;}for(let _0x529800=0x0;_0x529800<_0xf08d12[_0x43ba('0x53')];_0x529800++){if(_0x3bbb15(this,_0xf08d12[_0x529800],_0x3ba7c5,0x0))return!0x0;}return!0x1;function _0x3bbb15(_0x38cda2,_0x5029dd,_0x4eda1c,_0x15cc24){for(let _0x154e29=_0x15cc24;_0x154e29<_0x4eda1c[_0x43ba('0x53')];_0x154e29++){const _0x136201=_0x4eda1c[_0x154e29];if(_0x136201[_0x43ba('0x7e')]!==_0x5029dd[_0x43ba('0x7e')]||_0x136201[_0x43ba('0xd6')]['id']!==_0x5029dd[_0x43ba('0xd6')]['id']||_0x136201[_0x43ba('0xd7')]!==_0x5029dd[_0x43ba('0xd7')])continue;if(!Ut(_0x5029dd,_0x136201))continue;const _0x52397c=_0xf1a73d[_0x43ba('0x22')](_0x5029dd),_0x92880e=_0x3efaa6[_0x43ba('0x22')](_0x5029dd),_0x373be3=_0x3efaa6[_0x43ba('0x22')](_0x136201),_0x493769=_0x5029dd[_0x43ba('0x18')]&&_0x5029dd[_0x43ba('0x18')][_0x43ba('0x53')],_0x3a672d=_0x136201[_0x43ba('0x18')]&&_0x136201['commentThread'][_0x43ba('0x53')];if(!_0x493769&&_0x52397c(_0x373be3,_0x92880e))return _0x38cda2[_0x43ba('0x25')](_0x136201,_0x5029dd),_0x3efaa6[_0x43ba('0x15')](_0x5029dd),!0x0;if(!_0x3a672d&&_0x52397c(_0x92880e,_0x373be3))return _0x38cda2[_0x43ba('0x25')](_0x5029dd,_0x136201),_0x3efaa6[_0x43ba('0x15')](_0x136201),!0x0;}return!0x1;}}['_joinSuggestions'](_0x519548,_0x58ff41){if(_0x519548[_0x43ba('0x87')])for(const _0x2a8e01 of _0x58ff41[_0x43ba('0x130')]())_0x519548[_0x43ba('0x11')](_0x2a8e01);else{const _0x270d6d=_0x58ff41[_0x43ba('0xef')]()[_0x43ba('0xa6')];this[_0x43ba('0x2b')](_0x519548,this[_0x43ba('0x2e')][_0x43ba('0x96')](_0x519548[_0x43ba('0xef')]()[_0x43ba('0xdd')],_0x270d6d));}_0x58ff41[_0x43ba('0x5f')]();}}class Bt{constructor(_0x37b60a){this[_0x43ba('0xdc')]=_0x37b60a,this['_model']=_0x37b60a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this[_0x43ba('0x2c')]();}[_0x43ba('0x79')](_0x780cd5,_0x11c5fb,_0x3a123b,_0x340f64,_0x131a0f,_0x3176d6){return new _0x3e8a11(this[_0x43ba('0x2e')],{'type':_0x780cd5,'subType':_0x11c5fb,'id':_0x3a123b,'author':_0x340f64,'creator':_0x340f64,'attributes':_0x131a0f,'onAttributesChange':_0x3176d6,'onAccept':(..._0x42ab30)=>this[_0x43ba('0x35')](_0x780cd5,_0x11c5fb,_0x43ba('0x11d'))(..._0x42ab30),'onDiscard':(..._0x5c441c)=>this['getSuggestionCallback'](_0x780cd5,_0x11c5fb,'discard')(..._0x5c441c)});}[_0x43ba('0x128')](_0x5df70f,_0x44161d,_0xd4bb65,_0x215612){const _0x8c2f67=_0x5df70f+':'+_0x44161d+':'+_0xd4bb65;this[_0x43ba('0xf')][_0x43ba('0x28')](_0x8c2f67,_0x215612);}[_0x43ba('0x35')](_0x4afbdb,_0x3c776e,_0x359618){const _0x4f2b0a=_0x4afbdb+':'+_0x3c776e+':'+_0x359618;return this['_customCallbacks'][_0x43ba('0x22')](_0x4f2b0a)||this[_0x43ba('0x32')][_0x43ba('0x22')](_0x4afbdb+':'+_0x359618);}[_0x43ba('0x2c')](){const _0x18f643=()=>!0x1,_0x3cfc49=_0x2542b5=>{_0x2542b5[_0x43ba('0x99')]((_0x194b37,_0x51f9b2)=>_0x194b37[_0x43ba('0xdd')][_0x43ba('0xa2')](_0x51f9b2[_0x43ba('0xdd')])?0x1:-0x1),this['_model'][_0x43ba('0xbb')](_0x50f088=>{for(const _0x305a3f of _0x2542b5){let _0x5ac813;_0x5ac813=_0x305a3f[_0x43ba('0xa6')][_0x43ba('0x13b')]&&_0x305a3f[_0x43ba('0xa6')][_0x43ba('0xc0')]==_0x305a3f[_0x43ba('0xdd')][_0x43ba('0xdf')]?_0x50f088[_0x43ba('0x3c')](_0x305a3f[_0x43ba('0xdd')]['nodeAfter'],'on'):_0x50f088[_0x43ba('0x3c')](_0x305a3f),this[_0x43ba('0x2e')][_0x43ba('0x120')](_0x5ac813,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4413cb=(_0x169306,_0x548e02)=>{this[_0x43ba('0x2e')][_0x43ba('0xbb')](_0x47203b=>{const {commandName:_0x235be4,commandParams:_0x2febb7=[]}=_0x548e02,_0x113788=_0x169306['map'](_0x40e2ca=>(Mt(_0x40e2ca)&&(_0x40e2ca=this['_model'][_0x43ba('0x96')](_0x40e2ca[_0x43ba('0xa6')])),_0x40e2ca))[_0x43ba('0x13e')](_0x3d881a=>'$graveyard'!==_0x3d881a['root'][_0x43ba('0xb9')]);if(_0x113788[_0x43ba('0x53')]<0x1)return;const _0x24c4fb=Array[_0x43ba('0x90')](this[_0x43ba('0x2e')][_0x43ba('0x132')]['selection'][_0x43ba('0x130')]())[_0x43ba('0x11c')](_0xfe7a4b=>_0x15aa1d[_0x43ba('0x8d')](_0xfe7a4b));_0x47203b[_0x43ba('0xbc')](_0x113788);for(const _0xdcf350 of this['_editor']['commands']['commands']())_0xdcf350['refresh']();_0x2febb7[_0x43ba('0x129')]({'forceDefaultExecution':!0x0}),this[_0x43ba('0xdc')]['execute'](_0x235be4,..._0x2febb7);const _0x113bdc=_0x24c4fb[_0x43ba('0x13e')](_0x38fe3d=>_0x43ba('0x7f')!=_0x38fe3d['root'][_0x43ba('0xb9')]);_0x113bdc[_0x43ba('0x53')]>0x0&&_0x47203b[_0x43ba('0xbc')](_0x113bdc);for(const _0x27650a of _0x24c4fb)_0x27650a[_0x43ba('0x65')]();});},_0x1c1a45=(_0x48daa3,_0x2ecadf)=>0x1==_0x48daa3[_0x43ba('0x53')]&&0x1==_0x2ecadf[_0x43ba('0x53')]&&_0x48daa3[0x0][_0x43ba('0xa6')][_0x43ba('0x30')](_0x2ecadf[0x0][_0x43ba('0xdd')]),_0x2f1f57=(_0x1a8b0d,_0x3f339c,_0x5c3499,_0x44efb3)=>xt(_0x1a8b0d,_0x3f339c,_0x5c3499,_0x44efb3,this[_0x43ba('0x2e')])?[_0x1a8b0d,_0x3f339c]:xt(_0x3f339c,_0x1a8b0d,_0x44efb3,_0x5c3499,this[_0x43ba('0x2e')])?[_0x3f339c,_0x1a8b0d]:null;this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x125'),_0x18f643),this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x98'),_0x3cfc49),this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x1c'),_0x1c1a45),this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x17'),_0x2f1f57),this['_defaultCallbacks'][_0x43ba('0x28')]('deletion:accept',_0x3cfc49),this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x42'),_0x18f643),this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x4b'),_0x1c1a45),this[_0x43ba('0x32')][_0x43ba('0x28')]('deletion:chain',_0x2f1f57),this[_0x43ba('0x32')]['set']('formatInline:accept',_0x4413cb),this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x116'),_0x18f643),this[_0x43ba('0x32')][_0x43ba('0x28')]('formatInline:join',_0x1c1a45),this['_defaultCallbacks'][_0x43ba('0x28')](_0x43ba('0xcf'),_0x18f643),this[_0x43ba('0x32')]['set'](_0x43ba('0x7b'),_0x4413cb),this[_0x43ba('0x32')][_0x43ba('0x28')](_0x43ba('0x12b'),_0x18f643),this[_0x43ba('0x32')]['set']('formatBlock:join',_0x1c1a45),this[_0x43ba('0x32')][_0x43ba('0x28')]('formatBlock:chain',_0x18f643);}}function _t(_0x209131,_0x4bd69d,_0x545cf1){for(const _0x762ba7 of _0x4bd69d[_0x43ba('0xc0')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x762ba7['root']==_0x762ba7)return!0x1;if(!_0x545cf1[_0x43ba('0x138')](_0x762ba7))return!0x1;if(_0x209131[_0x43ba('0x110')](_0x762ba7)||_0x209131[_0x43ba('0x58')](_0x762ba7))return!0x0;}return!0x1;}function Mt(_0x3c5771){return _0x3c5771[_0x43ba('0xa6')][_0x43ba('0xc0')]==_0x3c5771[_0x43ba('0xdd')]['nodeAfter']&&_0x3c5771[_0x43ba('0xa6')]['isAtStart'];}function $t(_0x4814d7,_0x38a1f8,_0x43e216,_0x4259fa){const _0x29d9e0=_0xe9d6fc=>!_0xe9d6fc['item']['is'](_0x43ba('0xf3'))&&!_0x4259fa[_0x43ba('0x110')](_0xe9d6fc[_0x43ba('0x6d')]),_0x24a22e=_0x4814d7[_0x43ba('0xdd')][_0x43ba('0xe4')](_0x29d9e0),_0x398803=_0x4814d7[_0x43ba('0xa6')][_0x43ba('0xe4')](_0x29d9e0,{'direction':_0x43ba('0xaf')});return(!_0x4814d7[_0x43ba('0xdd')][_0x43ba('0x30')](_0x24a22e)||!_0x4814d7[_0x43ba('0xa6')][_0x43ba('0x30')](_0x398803))&&(_0x24a22e['isBefore'](_0x398803)?_0x43e216[_0x43ba('0x86')](_0x38a1f8,{'range':_0x43e216[_0x43ba('0x96')](_0x24a22e,_0x398803)}):_0x43e216[_0x43ba('0x48')](_0x38a1f8),!0x0);}function Nt(_0x4a2c8d){return _0x59b15b(_0x4a2c8d);}function Rt(_0x37ea18){const _0x597e17=_0x37ea18[_0x43ba('0xdd')]['nodeAfter'];return _0x597e17&&_0x597e17['is'](_0x43ba('0x70'));}function jt(_0x3b6fba,_0x3e444d){const _0x233210=_0x3e444d[_0x43ba('0xd1')][_0x43ba('0x110')](_0x3b6fba)||_0x3e444d[_0x43ba('0xd1')]['isSelectable'](_0x3b6fba);return _0x3e444d[_0x43ba('0x96')](_0x3e444d[_0x43ba('0xb7')](_0x3b6fba,_0x43ba('0x8e')),_0x233210?_0x3e444d[_0x43ba('0x38')](_0x3b6fba):_0x3e444d[_0x43ba('0xb7')](_0x3b6fba,_0x43ba('0xa6')));}function xt(_0x5c5e68,_0x2e3fc3,_0x58620b,_0x5e9635,_0x164e6d){if(!Ut(_0x5c5e68,_0x2e3fc3))return!0x1;if(_0x58620b[_0x43ba('0xa6')]['isEqual'](_0x5e9635[_0x43ba('0xdd')]))return!0x0;if(_0x5c5e68['type']!=_0x2e3fc3['type'])return!0x1;if(!_0x58620b[_0x43ba('0xa6')][_0x43ba('0xfd')](_0x5e9635['start']))return!0x1;const _0x17526f=_0x164e6d[_0x43ba('0x96')](_0x58620b[_0x43ba('0xa6')],_0x5e9635[_0x43ba('0xdd')])[_0x43ba('0x131')]();for(const _0x49a578 of _0x17526f)if([_0x43ba('0xe2'),'elementEnd'][_0x43ba('0xae')](_0x49a578[_0x43ba('0x7e')])&&_0x164e6d['schema'][_0x43ba('0x58')](_0x49a578[_0x43ba('0x6d')]))return!0x1;return!0x0;}function Ut(_0x5a4ed5,_0x553303){return!(!_0x5a4ed5[_0x43ba('0x83')]||!_0x553303[_0x43ba('0x83')])&&_0x5e0a1c(_0x5a4ed5[_0x43ba('0x10')],_0x553303['attributes']);}function Ot(_0x38e122,_0xaf6d08){const _0x22d801=Et(_0x38e122['attributes']),_0x3240d4=Et(_0xaf6d08);if(!_0x38e122[_0x43ba('0x83')])return!0x1;for(const _0x4e9707 of Object[_0x43ba('0xe0')](_0x3240d4))if(!_0x5e0a1c(_0x22d801[_0x4e9707],_0x3240d4[_0x4e9707]))return!0x1;return!0x0;}function Et(_0x3251ae){const _0x49141c=Object[_0x43ba('0x4e')]({},_0x3251ae);return delete _0x49141c['skipNestingCheck'],delete _0x49141c[_0x43ba('0x7a')],_0x49141c;}
|
|
23
|
+
const _0x2352=['_cutOutSuggestionMarker','markerNameToElements','unbindElementFromMarkerName','getSuggestion','isInContent','markerName','element','trackChanges.mergeNestedSuggestions','dataDowncast','getAllAdjacentSuggestions','stop','formatInline:discard','getShiftedBy','isRemovable','model','_joinSuggestions','deletion:accept','getChangedMarkers','formatGroupId','getItems','add','acceptAllSuggestions','track-changes-adapter-missing-getsuggestion','_joinWithAdjacentSuggestions','addUser','_createSuggestion','addClass','getMultiRangeId','_getExternalAuthor','ck-suggestion-marker-formatBlock','removed','formatBlock:accept','enqueueChange','_findSuggestions','plugins','start','_adapter','getFirstMarker','insert','split','getCustomProperty','addHighlight','authorName','splitPosition','isArray','track-changes-suggestion-data-mismatch','some','nodeAfter','ck-suggestion-marker','multipleBlocks','addMarker:suggestion','insertion:join','_editor','insertion','createdAt','_refreshSuggestionsChain','then','markerToData','markMultiRangeBlockFormat','markerReady','getNearestSelectionRange','isInsideObject','Users','data-suggestion','consume','hasComments','forward','detach','markBlockFormat','_suggestions','dataToMarker','enableCommand','createElement','trackChanges','@external','isAfter','registerCustomCallback','originalSuggestionId','_saved','mapper','forceDefaultExecution','updateMarker','fromCharCode','$textProxy','assign','getDifference','change:activeMarkers','join','trackChanges.trackFormatChanges','sort','buildSuggestion','isAtStart','tablePasteChainId','bindElementToMarker','_updateSuggestionData','item','nodeBefore','move','previous','suggestion','upcast','attributes','setSelection','stopListening','deletion:chain','discardSuggestion','hasCommentThread','commandName','rootName','suggestion:','markInsertion','formatInline:','getRange','oldRange','addSuggestionData','getSuggestionCallback','locale','isTouching','deletion:','isLimit','_registerDefaultCallbacks','schema','getRanges','acceptSuggestion','formatBlock','insertContent','before','for','setTo','_customCallbacks','map','_isDataLoaded','isNextTo','markInlineFormat','containsPosition','fromRange','push','updateSuggestion','formatInline:accept','getSuggestions','suggestionUnloaded','end','filter','suggestionChanged','_rangeIsInLocalUserInsertion','isCollapsed','high','createPositionAt','ck-suggestion-marker--active','commands','addRange','_trackFormatChanges','TrackChangesEditing','author','clone','selection','isAtEnd','dataReady','discardSelectedSuggestions','differ','subType','formatBlock:','track-changes-user-not-found','removeMarkers','next','keys','parent','config','_getSuggestionData','_suggestionFactory','delete','isBefore','markers','removeMarker','newRange','size','getAttribute','addMarker:suggestion:formatBlock','length','chain','splice','insertion:chain','get','deleteContent','getCommentThread','_onDiscard','skipNestingCheck','formatInline:chain','every','isOwn','always','PENDING_ACTION_SUGGESTION','addSuggestion','_defaultCallbacks','commentThread','_isForcedDefaultExecutionBlock','refresh','never','change:data','_setSuggestionRange','isExternal','removeAttribute','rejected','change','from','root','insertion:discard','catch','discard','removeComment','addMarkerName','_handleNewSuggestionMarker','getIntersection','ready','requires','normal','acceptSelectedSuggestions','markerToHighlight','createRange','editor','_splitMarkerName','range','markMultiRangeDeletion','_mergeNestedSuggestions','options','formatInline:join','addCommentThread','fire','CommentsRepository','suggestionLoaded','addComment','ck-suggestion-marker-','formatBlock:join','track-changes-suggestion-not-found','_enabledCommands','position','deletion:discard','toViewElement','insertion:','isLocal','getChanges','consumable','setAttribute','update:suggestion','_setSuggestionData','return','_descriptionFactory','howMany','conversion','elementToElement','set','_checkSuggestionCorrectness','markDeletion','activeMarkers','value','containsRange','isObject','createSelection','accept','registerPostFixer','_breakSuggestionMarker','_commentsRepository','marker-count','trackChangesCommand','_addSuggestionMarker','after','$graveyard','_addThreadToSuggestion','name','getFirstRange','deletion','containsRangeInObject','execute','containsItem','fetchCommentThread','formatBlock:chain','creator','writer','showSuggestionHighlights','includes','PendingActions','_suggestionState','external:','getUser','toJSON','data','multi','isMultiRange','listenTo','document','_removeSuggestion','hasSuggestion','unbind','_model','discardAllSuggestions','batch','authoredAt','remove','formatInline','widget','accepted','define','low','containerElement','_getAuthorFromId','backward','isEqual','notReady','type','default','insertion:accept','has','isDocumentOperation','editingDowncast','highest','elementStart'];(function(_0x2c833e,_0x23529c){const _0x2415d5=function(_0x37db15){while(--_0x37db15){_0x2c833e['push'](_0x2c833e['shift']());}};_0x2415d5(++_0x23529c);}(_0x2352,0x11f));const _0x2415=function(_0x2c833e,_0x23529c){_0x2c833e=_0x2c833e-0x0;let _0x2415d5=_0x2352[_0x2c833e];return _0x2415d5;};import{Plugin as _0xf6eef3,PendingActions as _0x54a0fa}from'ckeditor5/src/core';import{LiveRange as _0x4b2b04}from'ckeditor5/src/engine';import{CKEditorError as _0xfc2d3f,uid as _0x464a74,priorities as _0x15c895,logWarning as _0x1cc911}from'ckeditor5/src/utils';import{toWidget as _0x566913}from'ckeditor5/src/widget';import{Users as _0x3129f4,hashObject as _0x1952c9}from'ckeditor5-collaboration/src/collaboration-core';import _0x309402 from'./commands/trackchangescommand';import _0x2b4fa2 from'./commands/acceptsuggestioncommand';import _0x47ccbd from'./commands/discardsuggestioncommand';import _0x14f666 from'./commands/executeonallsuggestionscommand';import _0x2ddfeb from'./commands/executeonselectedsuggestionscommand';import _0x47e839 from'./suggestion';import _0x509ac3 from'./suggestiondescriptionfactory';import _0x5613d9 from'./integrations/aiassistant';import _0x578e76 from'./integrations/alignment';import _0x45453a from'./integrations/basicstyles';import _0x52c967 from'./integrations/blockquote';import _0x2c1373 from'./integrations/ckbox';import _0x596b9a from'./integrations/codeblock';import _0x5b3d7e from'./integrations/comments';import _0xe5ff9f from'./integrations/deletecommand';import _0x3ccc0a from'./integrations/documentlist';import _0x5773e9 from'./integrations/entercommand';import _0x2c5a2e from'./integrations/findandreplace';import _0x5c2de3 from'./integrations/font';import _0x4d07a6 from'./integrations/formatpainter';import _0x125c61 from'./integrations/heading';import _0x2223fd from'./integrations/highlight';import _0x5b683c from'./integrations/horizontalline';import _0x4865bb from'./integrations/htmlembed';import _0x1cf8f9 from'./integrations/image';import _0x428ecf from'./integrations/imagereplace';import _0x2577f1 from'./integrations/importword';import _0x398894 from'./integrations/indent';import _0x55ad98 from'./integrations/inputcommand';import _0x584389 from'./integrations/link';import _0x14f2ea from'./integrations/list';import _0x3ce128 from'./integrations/listproperties';import _0xf93fdf from'./integrations/mediaembed';import _0x339432 from'./integrations/mention';import _0x1c297d from'./integrations/pagebreak';import _0x32dcfc from'./integrations/paragraph';import _0x39ec3b from'./integrations/removeformat';import _0x2eab23 from'./integrations/restrictededitingmode';import _0x55b833 from'./integrations/shiftentercommand';import _0x1e7812 from'./integrations/standardeditingmode';import _0x508c6e from'./integrations/style';import _0x1c09ac from'./integrations/table';import _0x17d0e6 from'./integrations/tablemergesplit';import _0x19174d from'./integrations/tableheadings';import _0x5b436b from'./integrations/tableclipboard';import _0x4c9de5 from'./integrations/tablecolumnresize';import _0x5d694b from'./integrations/template';import _0x124f20 from'./integrations/tableofcontents';import _0x377c4a from'./integrations/title';import _0x4ad764 from'./integrations/undo';import{getTranslation as _0x2f5143}from'./utils/common-translations';import _0x1a0c3f from'./integrations/tablecaption';import _0x3f9724 from'./integrations/documentlistproperties';import _0x43f907 from'./integrations/tableproperties';import{isEqual as _0x45c4c7}from'lodash-es';export default class p extends _0xf6eef3{static get[_0x2415('0xf3')](){return[_0x2415('0x101'),_0x3129f4,_0x54a0fa,_0x5613d9,_0x578e76,_0x45453a,_0x52c967,_0x2c1373,_0x596b9a,_0x5b3d7e,_0xe5ff9f,_0x3ccc0a,_0x3f9724,_0x5773e9,_0x2c5a2e,_0x5c2de3,_0x4d07a6,_0x125c61,_0x2223fd,_0x5b683c,_0x4865bb,_0x1cf8f9,_0x428ecf,_0x2577f1,_0x398894,_0x55ad98,_0x584389,_0x14f2ea,_0x3ce128,_0xf93fdf,_0x339432,_0x1c297d,_0x32dcfc,_0x39ec3b,_0x2eab23,_0x55b833,_0x1e7812,_0x508c6e,_0x1c09ac,_0x17d0e6,_0x19174d,_0x1a0c3f,_0x5b436b,_0x4c9de5,_0x124f20,_0x43f907,_0x5d694b,_0x377c4a,_0x4ad764];}static get['pluginName'](){return _0x2415('0xb5');}constructor(_0x213f0c){function _0x1ccb37(_0x59c85){return _0x59c85['map'](_0x4b5dca=>String[_0x2415('0x6f')](_0x4b5dca))[_0x2415('0x74')]('');}super(_0x213f0c),this[_0x2415('0x117')]('activeMarkers',[]),this['on'](_0x2415('0x73'),(_0x4a69d8,_0x50de90,_0x4909af,_0x9b5839)=>{this[_0x2415('0x6')][_0x2415('0xe8')](()=>{for(const _0x176fd5 of[..._0x9b5839,..._0x4909af])this[_0x2415('0x6')]['markers'][_0x2415('0x18')](_0x176fd5)&&_0x213f0c['editing']['reconvertMarker'](_0x176fd5);});}),this[_0x2415('0x113')]=new _0x509ac3(this[_0x2415('0xf8')][_0x2415('0x2b')][_0x2415('0x96')],this[_0x2415('0xf8')]['locale']),this['_adapter']=null,this[_0x2415('0xc6')]=new Bt(this['editor']),this[_0x2415('0x62')]=new Map(),this[_0x2415('0x122')]=_0x213f0c[_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x101')),this['_enabledCommands']=new Set(),this[_0x2415('0x6')]=this[_0x2415('0xf8')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2415('0xe0')]=!0x1,_0x213f0c[_0x2415('0xc4')][_0x2415('0xe')](_0x2415('0x75'),_0x2415('0x16')),this[_0x2415('0xb4')]=_0x213f0c[_0x2415('0xc4')][_0x2415('0xd3')]('trackChanges.trackFormatChanges'),_0x213f0c[_0x2415('0xc4')][_0x2415('0xe')](_0x2415('0x24'),!0x0),this[_0x2415('0xfc')]=_0x213f0c[_0x2415('0xc4')][_0x2415('0xd3')](_0x2415('0x24')),this[_0x2415('0x124')]=new _0x309402(_0x213f0c,this[_0x2415('0x107')]),this[_0x1ccb37([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1ccb37([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x34]);}['init'](){const _0x58508e=this[_0x2415('0xf8')];_0x58508e[_0x2415('0x115')][_0x2415('0x9c')](_0x2415('0x1a'))[_0x2415('0xf6')]({'model':'suggestion','view':_0x518c11=>{const {id:_0x4a9389,type:_0xcb081}=this['_splitMarkerName'](_0x518c11[_0x2415('0x22')]),_0x1dcede=[_0x2415('0x4d'),_0x2415('0x104')+_0xcb081];let _0x3860f1=0xbb8;return this[_0x2415('0x11a')][_0x2415('0x134')](_0x518c11[_0x2415('0x22')])&&(_0x1dcede[_0x2415('0xa5')](_0x2415('0xb1')),_0x3860f1=0xbc2),_0x2415('0x12b')==_0xcb081&&(_0x3860f1+=0x5),{'classes':_0x1dcede,'attributes':{'data-suggestion':_0x4a9389},'priority':_0x3860f1};}}),_0x58508e[_0x2415('0x115')]['for'](_0x2415('0x25'))[_0x2415('0x31')](_0x142b08=>{_0x142b08['on'](_0x2415('0x4f'),(_0x805e8a,_0x405f74,_0x56df9d)=>{if(!_0x56df9d[_0x2415('0xfd')]['showSuggestionHighlights'])return;const _0x5e80a4=_0x405f74[_0x2415('0x7c')];if(!_0x5e80a4)return;const _0xe4c905=_0x56df9d[_0x2415('0x6c')][_0x2415('0x10a')](_0x5e80a4);_0x58508e[_0x2415('0x2b')]['schema'][_0x2415('0x11d')](_0x5e80a4)&&_0xe4c905&&!_0xe4c905[_0x2415('0x45')](_0x2415('0xc'))&&_0xe4c905['is'](_0x2415('0x10'))&&_0x566913(_0xe4c905,_0x56df9d['writer']);},{'priority':_0x2415('0xaf')});}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x25'))['markerToHighlight']({'model':_0x2415('0x80'),'view':(_0x200e10,_0x59f429)=>{if(!_0x59f429[_0x2415('0xfd')][_0x2415('0x133')])return null;const {type:_0x4a28e7}=this[_0x2415('0xf9')](_0x200e10[_0x2415('0x22')]);return{'classes':[_0x2415('0x4d'),_0x2415('0x104')+_0x4a28e7],'priority':0xbb8};}});const _0x5c3a72=({showActiveMarkers:_0x1b976c=!0x0}={})=>(_0x3f4faf,_0x4879ce,_0x3b761f)=>{if(!_0x4879ce[_0x2415('0x7c')])return;if(_0x4879ce[_0x2415('0x7c')]['is'](_0x2415('0xb8')))return void _0x3b761f[_0x2415('0x10e')][_0x2415('0x5d')](_0x4879ce[_0x2415('0x7c')],_0x3f4faf['name']);const _0x174f73=_0x3b761f[_0x2415('0x6c')][_0x2415('0x10a')](_0x4879ce[_0x2415('0x7c')]);if(!(_0x4879ce[_0x2415('0x7c')]['is'](_0x2415('0x23'))&&_0x58508e['model'][_0x2415('0x96')]['isBlock'](_0x4879ce[_0x2415('0x7c')])&&!_0x174f73[_0x2415('0x45')]('addHighlight')))return;const {id:_0x2e2d16}=this[_0x2415('0xf9')](_0x4879ce[_0x2415('0x22')]);_0x3b761f[_0x2415('0x132')][_0x2415('0x37')]([_0x2415('0x4d'),_0x2415('0x3a')],_0x174f73),_0x3b761f[_0x2415('0x132')][_0x2415('0x10f')](_0x2415('0x5c'),_0x2e2d16,_0x174f73),_0x3b761f[_0x2415('0x6c')][_0x2415('0x7a')](_0x174f73,_0x4879ce['markerName']),_0x1b976c&&(this[_0x2415('0x11a')][_0x2415('0x134')](_0x4879ce['markerName'])?_0x3b761f[_0x2415('0x132')][_0x2415('0x37')](_0x2415('0xb1'),_0x174f73):_0x3b761f[_0x2415('0x132')]['removeClass']('ck-suggestion-marker--active',_0x174f73));for(const _0x4cb9ae of _0x58508e[_0x2415('0x2b')]['createRangeIn'](_0x4879ce[_0x2415('0x7c')])[_0x2415('0x30')]())_0x3b761f[_0x2415('0x10e')]['consume'](_0x4cb9ae,_0x3f4faf['name']);_0x3b761f[_0x2415('0x10e')][_0x2415('0x5d')](_0x4879ce['item'],_0x3f4faf[_0x2415('0x129')]);};_0x58508e[_0x2415('0x115')][_0x2415('0x9c')](_0x2415('0x25'))[_0x2415('0x31')](_0x324939=>{_0x324939['on'](_0x2415('0xce'),(_0x38dad5,_0x472d33,_0x39e69b)=>{_0x39e69b[_0x2415('0xfd')][_0x2415('0x133')]&&_0x5c3a72({'showActiveMarkers':!0x1})(_0x38dad5,_0x472d33,_0x39e69b);},{'priority':_0x2415('0x1b')});}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x25'))[_0x2415('0x56')]({'model':_0x2415('0x80'),'view':(_0x365a0c,_0x18b9af)=>_0x18b9af[_0x2415('0xfd')][_0x2415('0x133')]?null:{'group':_0x2415('0x80'),'name':_0x365a0c['substr'](0xb)}}),_0x58508e[_0x2415('0x115')][_0x2415('0x9c')](_0x2415('0x81'))[_0x2415('0x116')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x113bb2,{writer:_0x34e4d1})=>{let _0x287a11=_0x2415('0x8a')+_0x113bb2[_0x2415('0xcd')]('suggestion-type')+':'+_0x113bb2['getAttribute']('id');return _0x113bb2[_0x2415('0xcd')](_0x2415('0x123'))&&(_0x287a11+=':'+_0x113bb2[_0x2415('0xcd')](_0x2415('0x123'))),_0x34e4d1[_0x2415('0x65')]('$marker',{'data-name':_0x287a11});}}),_0x58508e['conversion'][_0x2415('0x9c')]('upcast')[_0x2415('0x63')]({'view':_0x2415('0x80')}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x1a'))[_0x2415('0x31')](_0xb29484=>{_0xb29484['on'](_0x2415('0xce'),_0x5c3a72(),{'priority':_0x2415('0xaf')});}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x1a'))[_0x2415('0x31')](_0x154fb6=>{_0x154fb6['on']('removeMarker:suggestion:formatBlock',(_0x55ef7e,_0x3fb9b8,_0x417d4b)=>{const _0x2e414b=_0x417d4b[_0x2415('0x6c')][_0x2415('0x1e')](_0x3fb9b8['markerName']);if(_0x2e414b)for(const _0x24314f of _0x2e414b)_0x24314f[_0x2415('0x45')](_0x2415('0x46'))||(_0x417d4b[_0x2415('0x132')]['removeClass'](['ck-suggestion-marker',_0x2415('0x3a'),_0x2415('0xb1')],_0x24314f),_0x417d4b[_0x2415('0x132')][_0x2415('0xe6')](_0x2415('0x5c'),_0x24314f),_0x417d4b[_0x2415('0x6c')][_0x2415('0x1f')](_0x24314f,_0x3fb9b8['markerName']));},{'priority':_0x2415('0xaf')});}),_0x58508e[_0x2415('0x2b')]['document'][_0x2415('0x120')](_0x112b40=>{let _0x4faf74=!0x1;const _0x47edcc=Array['from'](_0x58508e[_0x2415('0x2b')]['document']['differ'][_0x2415('0x2e')]()),_0x401844=new Set();for(const {name:_0x261c8a,data:_0x46646}of _0x47edcc){const {group:_0xd1d031,type:_0x1c04a5,id:_0x30fc31}=this[_0x2415('0xf9')](_0x261c8a);if('suggestion'!==_0xd1d031)continue;const _0x189a06=this[_0x2415('0x62')]['get'](_0x30fc31);if(null!=_0x46646[_0x2415('0xcb')]){_0x2415('0xb')==_0x1c04a5&&(_0x4faf74=_0x4faf74||$t(_0x46646[_0x2415('0xcb')],_0x261c8a,_0x112b40,_0x58508e[_0x2415('0x2b')]['schema']));if(_0x46646[_0x2415('0xcb')]['isCollapsed']||_0x2415('0x127')==_0x46646['newRange'][_0x2415('0xea')][_0x2415('0x89')]||_0x2415('0x99')==_0x1c04a5&&!Rt(_0x46646[_0x2415('0xcb')])||_0x2415('0x12b')==_0x1c04a5&&!(!Mt(_0x50518c=_0x46646[_0x2415('0xcb')])&&!function(_0x546b78){return _0x546b78[_0x2415('0x40')][_0x2415('0xc3')]==_0x546b78['end'][_0x2415('0x7d')]&&_0x546b78[_0x2415('0x40')]['isAtEnd'];}(_0x50518c)))_0x112b40[_0x2415('0xca')](_0x261c8a),_0x4faf74=!0x0;else{if(!_0x189a06||!_0x189a06[_0x2415('0x21')])continue;_0x401844['add'](_0x189a06);}}}var _0x50518c;return _0x401844[_0x2415('0xcc')]>0x0&&(_0x4faf74=!!this[_0x2415('0x34')](_0x401844)||_0x4faf74),_0x4faf74;}),_0x58508e['model']['document'][_0x2415('0x120')](_0x5ab5b3=>{let _0x1963c4=!0x1;for(const _0x5bbe14 of _0x58508e['model'][_0x2415('0x2')][_0x2415('0xbc')][_0x2415('0x10d')]()){if(_0x2415('0x43')!=_0x5bbe14['type'])continue;const _0x5a7c02=_0x5bbe14[_0x2415('0x108')]['getShiftedBy'](_0x5bbe14[_0x2415('0xcf')]);if(_0x5a7c02[_0x2415('0xb9')])for(const _0x189688 of this[_0x2415('0x62')]['values']()){if(_0x189688[_0x2415('0x0')]||!_0x189688['isInContent'])continue;if(_0x2415('0x99')!=_0x189688['type'])continue;const _0x57bbb9=_0x189688['getFirstRange']();if(_0x57bbb9['start'][_0x2415('0xc3')]!=_0x57bbb9[_0x2415('0xaa')][_0x2415('0xc3')]&&_0x57bbb9[_0x2415('0xaa')][_0x2415('0x13')](_0x5bbe14['position'])){const _0x52983a=_0x58508e[_0x2415('0x2b')]['createRange'](_0x57bbb9[_0x2415('0x40')],_0x5a7c02);_0x5ab5b3[_0x2415('0x6e')](_0x189688[_0x2415('0x42')](),{'range':_0x52983a}),_0x1963c4=!0x0;}}}return _0x1963c4;}),_0x58508e['model'][_0x2415('0xc9')]['on'](_0x2415('0x110'),(_0x521411,_0x68f44a,_0x5c83b8)=>{if(null==_0x5c83b8){const {id:_0x2f8689}=this['_splitMarkerName'](_0x68f44a['name']),_0xfb0dc9=this[_0x2415('0x62')][_0x2415('0xd3')](_0x2f8689);_0xfb0dc9&&_0xfb0dc9[_0x2415('0xef')](_0x68f44a['name']);}}),_0x58508e['model']['document']['on'](_0x2415('0xe3'),()=>{const _0x111c33=Array[_0x2415('0xe9')](_0x58508e[_0x2415('0x2b')][_0x2415('0x2')][_0x2415('0xbc')][_0x2415('0x2e')]())[_0x2415('0xab')](_0x1f2b8c=>'suggestion'===this[_0x2415('0xf9')](_0x1f2b8c[_0x2415('0x129')])['group']);if(0x0===_0x111c33['length'])return;_0x111c33[_0x2415('0x76')]((_0x3b021f,_0x48269f)=>{const _0x53d890=_0x3b021f[_0x2415('0x13a')][_0x2415('0x8e')],_0x21c606=_0x48269f[_0x2415('0x13a')][_0x2415('0x8e')];return null===_0x53d890&&null===_0x21c606?0x0:null===_0x53d890&&null!==_0x21c606?-0x1:null!==_0x53d890&&null===_0x21c606?0x1:_0x53d890[_0x2415('0x40')][_0x2415('0xc8')](_0x21c606['start'])?-0x1:0x1;});const _0x47b13e=new Set(),_0x10ab95=new Set();for(const {name:_0xf3b43a,data:_0x46e4b3}of _0x111c33){const {id:_0x3d0402}=this[_0x2415('0xf9')](_0xf3b43a);if(null===_0x46e4b3[_0x2415('0x8e')]){const _0x2f1a31=this[_0x2415('0xf0')](_0xf3b43a);_0x10ab95['add'](_0x2f1a31);}else{const _0xddfaa=this['_suggestions'][_0x2415('0xd3')](_0x3d0402);null!==_0x46e4b3[_0x2415('0xcb')]||_0xddfaa['isInContent']?(_0x47b13e[_0x2415('0x31')](_0xddfaa['head']),_0x10ab95['add'](_0xddfaa)):this[_0x2415('0x3')](_0xddfaa);}}_0x10ab95['size']>0x0&&this['_refreshSuggestionsChain'](_0x10ab95);for(const _0x325b9c of _0x47b13e)this[_0x2415('0x100')](_0x2415('0xac'),_0x325b9c);}),_0x58508e[_0x2415('0x2b')]['on']('applyOperation',(_0x4a7448,_0x1b5c0f)=>{const _0x4a73a5=_0x1b5c0f[0x0];if(!this['_suggestions'][_0x2415('0xcc')])return;if(!_0x4a73a5[_0x2415('0x19')])return;if(_0x4a73a5['batch']['isUndo']||!_0x4a73a5[_0x2415('0x8')][_0x2415('0x10c')])return;let _0x1e54a1,_0x3cd299;switch(_0x4a73a5['type']){case _0x2415('0x43'):_0x1e54a1=_0x58508e['model'][_0x2415('0xb0')](_0x4a73a5[_0x2415('0x108')]),_0x3cd299=_0x1e54a1[_0x2415('0x29')](_0x4a73a5[_0x2415('0x114')]);break;case'split':_0x1e54a1=_0x58508e[_0x2415('0x2b')][_0x2415('0xb0')](_0x4a73a5[_0x2415('0x48')]),_0x3cd299=_0x58508e['model'][_0x2415('0xb0')](_0x4a73a5['moveTargetPosition']);break;case _0x2415('0x7e'):_0x1e54a1=_0x58508e[_0x2415('0x2b')]['createPositionAt'](_0x4a73a5['targetPosition']),_0x3cd299=_0x1e54a1[_0x2415('0x29')](_0x4a73a5[_0x2415('0x114')]);break;default:return;}const _0x5ebc7c=_0x58508e[_0x2415('0x2b')][_0x2415('0xf7')](_0x1e54a1,_0x3cd299);_0x58508e[_0x2415('0x2b')][_0x2415('0xe8')](()=>{for(const {suggestion:_0x2fb2ba,meta:_0x2357b4}of this[_0x2415('0x3e')](_0x5ebc7c)){if(_0x2fb2ba[_0x2415('0x0')])continue;if('formatInline'==_0x2fb2ba[_0x2415('0x15')])continue;const _0x47bc23=_0x2fb2ba[_0x2415('0x13a')]&&_0x2fb2ba[_0x2415('0x13a')][_0x2415('0x4e')];('formatBlock'!=_0x2fb2ba[_0x2415('0x15')]||_0x2415('0x44')==_0x4a73a5[_0x2415('0x15')]&&!_0x47bc23)&&(_0x2357b4[_0x2415('0x12c')]||_0x2415('0x52')==_0x2fb2ba[_0x2415('0x15')]&&_0x2357b4[_0x2415('0xda')]||_0x2fb2ba[_0x2415('0x12a')]()[_0x2415('0x11c')](_0x5ebc7c)&&this[_0x2415('0x121')](_0x2fb2ba,_0x1e54a1,_0x3cd299));}});},{'priority':'lowest'}),_0x58508e[_0x2415('0x2b')]['on']('deleteContent',(_0x60f073,_0x3535d1)=>{const _0x59c263=_0x3535d1[0x0],_0x4693cf=_0x3535d1[0x1];if(_0x4693cf&&_0x4693cf['forceDefaultExecution'])return;if(this[_0x2415('0xe0')])return;if(!this[_0x2415('0x124')][_0x2415('0x11b')])return;if(_0x59c263[_0x2415('0xae')])return;const _0x2a0344=_0x58508e[_0x2415('0x2b')][_0x2415('0x96')],{start:_0x245101,end:_0x1e7a27}=_0x59c263[_0x2415('0x12a')](),_0x513b80=_0x245101[_0x2415('0x4c')]&&_0x2a0344['isLimit'](_0x245101[_0x2415('0x4c')])?null:_0x2a0344[_0x2415('0x59')](_0x245101,_0x2415('0x5f')),_0x2adc04=_0x1e7a27[_0x2415('0x7d')]&&_0x2a0344[_0x2415('0x94')](_0x1e7a27[_0x2415('0x7d')])?null:_0x2a0344['getNearestSelectionRange'](_0x1e7a27,_0x2415('0x12')),_0x2494a7=_0x58508e[_0x2415('0x2b')][_0x2415('0xf7')](_0x513b80?_0x513b80[_0x2415('0x40')]:_0x245101,_0x2adc04?_0x2adc04[_0x2415('0xaa')]:_0x1e7a27);_0x58508e[_0x2415('0x2b')]['change'](_0x5383df=>{this['markDeletion'](_0x2494a7);const _0xfbaacd=_0x58508e['model'][_0x2415('0x96')][_0x2415('0x59')](_0x2494a7[_0x2415('0x40')]);_0x59c263['is']('documentSelection')?_0x5383df[_0x2415('0x83')](_0xfbaacd):_0x59c263[_0x2415('0x9d')](_0xfbaacd);}),_0x60f073[_0x2415('0x27')]();},{'priority':_0x15c895[_0x2415('0xf4')]+0xa}),_0x58508e[_0x2415('0x2b')]['on'](_0x2415('0x9a'),(_0x202027,_0x4f5390)=>{const _0x19f1da=_0x4f5390[_0x4f5390[_0x2415('0xcf')]-0x1];_0x19f1da&&_0x19f1da[_0x2415('0x6d')]||this[_0x2415('0xe0')]||this[_0x2415('0x124')]['value']&&(_0x58508e['model']['change'](()=>{let _0x4fbece=_0x58508e[_0x2415('0x2b')][_0x2415('0x9a')](_0x4f5390[0x0],_0x4f5390[0x1],_0x4f5390[0x2],{'forceDefaultExecution':!0x0});if(!_0x4fbece)return;_0x202027[_0x2415('0x112')]=_0x4fbece[_0x2415('0xb7')]();const _0x5e5b0f=_0x4fbece[_0x2415('0xaa')][_0x2415('0x7d')],_0x207325=_0x58508e[_0x2415('0x2b')][_0x2415('0x96')];_0x5e5b0f&&_0x207325['isBlock'](_0x5e5b0f)&&!_0x207325[_0x2415('0x11d')](_0x5e5b0f)&&(_0x4fbece=_0x58508e[_0x2415('0x2b')]['createRange'](_0x4fbece['start'],_0x58508e[_0x2415('0x2b')][_0x2415('0xb0')](_0x5e5b0f,'end'))),this[_0x2415('0x8b')](_0x4fbece);}),_0x202027[_0x2415('0x27')]());},{'priority':_0x2415('0xaf')}),this[_0x2415('0xf8')]['commands']['add'](_0x2415('0x66'),this[_0x2415('0x124')]),this[_0x2415('0x64')](_0x2415('0x66'));const _0x5cc527=new _0x2b4fa2(_0x58508e,this[_0x2415('0x62')]);_0x58508e['commands'][_0x2415('0x31')](_0x2415('0x98'),_0x5cc527),this[_0x2415('0x64')](_0x2415('0x98'));const _0x470eaa=new _0x47ccbd(_0x58508e,this[_0x2415('0x62')]);_0x58508e['commands'][_0x2415('0x31')](_0x2415('0x86'),_0x470eaa),this[_0x2415('0x64')](_0x2415('0x86')),_0x58508e[_0x2415('0xb2')]['add'](_0x2415('0x32'),new _0x14f666(_0x58508e,_0x5cc527,this[_0x2415('0x62')])),this[_0x2415('0x64')](_0x2415('0x32')),_0x58508e[_0x2415('0xb2')][_0x2415('0x31')](_0x2415('0x7'),new _0x14f666(_0x58508e,_0x470eaa,this[_0x2415('0x62')])),this['enableCommand'](_0x2415('0x7')),_0x58508e[_0x2415('0xb2')]['add'](_0x2415('0xf5'),new _0x2ddfeb(_0x58508e,_0x5cc527,this[_0x2415('0x62')])),this[_0x2415('0x64')](_0x2415('0xf5')),_0x58508e[_0x2415('0xb2')][_0x2415('0x31')](_0x2415('0xbb'),new _0x2ddfeb(_0x58508e,_0x470eaa,this[_0x2415('0x62')])),this['enableCommand'](_0x2415('0xbb'));const _0x121c45=_0x58508e[_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x101'));this[_0x2415('0x1')](_0x121c45,_0x2415('0x103'),(_0xfd70c1,{threadId:_0x2c56a8})=>{const _0x1cf74d=this[_0x2415('0x62')]['get'](_0x2c56a8);_0x1cf74d&&_0x1cf74d[_0x2415('0xdf')]&&0x1===_0x1cf74d['commentThread'][_0x2415('0xcf')]&&this[_0x2415('0x7b')](_0x2c56a8,{'hasComments':!0x0});},{'priority':_0x2415('0xf')}),this['listenTo'](_0x121c45,_0x2415('0xee'),(_0x19681e,{threadId:_0x53bcb7})=>{const _0x12725d=this[_0x2415('0x62')][_0x2415('0xd3')](_0x53bcb7);_0x12725d&&_0x12725d[_0x2415('0xdf')]&&!_0x12725d[_0x2415('0xdf')][_0x2415('0xcf')]&&this[_0x2415('0x7b')](_0x53bcb7,{'hasComments':!0x1});},{'priority':_0x2415('0xf')});}set['adapter'](_0x171c06){if(this[_0x2415('0x41')])throw new _0xfc2d3f('track-changes-adapter-already-set',this);this['_adapter']=_0x171c06;}get['adapter'](){return this[_0x2415('0x41')];}[_0x2415('0xa8')]({skipNotAttached:_0x5baf50=!0x1,toJSON:_0x5db5ba=!0x1}={}){const _0x5e3599=[];for(const _0x2c8fba of this[_0x2415('0x62')]['values']())_0x5baf50&&!_0x2c8fba[_0x2415('0x21')]||_0x5e3599[_0x2415('0xa5')](_0x2c8fba);return _0x5db5ba?_0x5e3599[_0x2415('0x9f')](_0xc47aea=>_0xc47aea[_0x2415('0x139')]()):_0x5e3599;}[_0x2415('0x20')](_0xd0596c){const _0x314a06=this[_0x2415('0x62')][_0x2415('0xd3')](_0xd0596c);if(!_0x314a06)throw new _0xfc2d3f(_0x2415('0x106'),this);return _0x314a06;}[_0x2415('0x4')](_0x38a0a3){return this[_0x2415('0x62')][_0x2415('0x18')](_0x38a0a3);}['addSuggestionData'](_0x2fb69c){const {authorId:_0x22746c,id:_0x4387f4,attributes:_0xabdfdd}=_0x2fb69c,[_0x13a8ab,_0x5b7baf]=_0x2fb69c['type'][_0x2415('0x44')](':'),_0x25795c=this[_0x2415('0x62')]['get'](_0x4387f4)||this[_0x2415('0x36')](_0x13a8ab,_0x5b7baf,_0x4387f4,_0x22746c,_0xabdfdd);if(this[_0x2415('0x128')](_0x25795c),this['_checkSuggestionCorrectness'](_0x25795c,_0x13a8ab,_0x5b7baf||null,_0x22746c),_0x25795c[_0x2415('0x53')]=_0x2fb69c[_0x2415('0x53')],_0x25795c['_isDataLoaded']=!0x0,_0xabdfdd&&_0xabdfdd[_0x2415('0x67')]){const _0x15851b=_0xabdfdd[_0x2415('0x67')],_0x138d0e=this[_0x2415('0x39')](_0x15851b[_0x2415('0x47')]);_0x25795c[_0x2415('0x9')]=_0x15851b[_0x2415('0x53')],_0x25795c[_0x2415('0xb6')]=_0x138d0e,_0x25795c[_0x2415('0xe5')]=!0x0;}else _0x25795c[_0x2415('0x9')]=_0x2fb69c[_0x2415('0x53')];switch(_0x2fb69c[_0x2415('0x13a')]&&(_0x25795c[_0x2415('0x13a')]=_0x2fb69c[_0x2415('0x13a')]),_0x2fb69c[_0x2415('0x82')]&&(_0x25795c['attributes']=_0x2fb69c[_0x2415('0x82')]),this[_0x2415('0x41')]&&this[_0x2415('0x41')]['addSuggestion']||(_0x25795c['_saved']=!0x0),this['_suggestionState'][_0x2415('0xd3')](_0x25795c)){case _0x2415('0x14'):this[_0x2415('0x136')][_0x2415('0x117')](_0x25795c,'dataReady');break;case _0x2415('0x58'):_0x25795c[_0x2415('0x21')]?(this[_0x2415('0x54')](new Set([_0x25795c])),this[_0x2415('0x34')](new Set([_0x25795c])),this['_suggestionState']['set'](_0x25795c,_0x2415('0xf2')),this[_0x2415('0x100')](_0x2415('0x102'),_0x25795c)):this[_0x2415('0x136')]['set'](_0x25795c,_0x2415('0x3b'));}return _0x25795c;}[_0x2415('0x98')](_0x4af31c){this[_0x2415('0x6d')](()=>{this['editor'][_0x2415('0x2b')][_0x2415('0xe8')](()=>{for(const _0x1469b7 of _0x4af31c[_0x2415('0x26')]())_0x1469b7[_0x2415('0x11f')]();});});}[_0x2415('0x86')](_0x3efbc0){this[_0x2415('0x6d')](()=>{this[_0x2415('0xf8')][_0x2415('0x2b')][_0x2415('0xe8')](()=>{for(const _0x133a3d of _0x3efbc0[_0x2415('0x26')]())_0x133a3d['discard']();});});}[_0x2415('0x64')](_0x5d7f58,_0x50aca7){const _0x40a100=this[_0x2415('0xf8')]['commands'][_0x2415('0xd3')](_0x5d7f58);if(!_0x40a100)throw new _0xfc2d3f('track-changes-command-not-found',this,{'commandName':_0x5d7f58});this[_0x2415('0x107')][_0x2415('0x31')](_0x40a100),_0x50aca7&&_0x40a100['on'](_0x2415('0x12d'),(_0x479263,_0x1ffb73)=>{this[_0x2415('0x124')][_0x2415('0x11b')]&&(this[_0x2415('0xe0')]||_0x1ffb73['length']>0x0&&_0x1ffb73[_0x1ffb73[_0x2415('0xcf')]-0x1]&&_0x1ffb73[_0x1ffb73['length']-0x1][_0x2415('0x6d')]||(_0x479263['return']=_0x50aca7((..._0x450dc1)=>_0x40a100['execute'](..._0x450dc1,{'forceDefaultExecution':!0x0}),..._0x1ffb73),_0x479263[_0x2415('0x27')]()));},{'priority':_0x2415('0xaf')});}[_0x2415('0x6d')](_0x1897c5){let _0x1d3d91,_0x197cc8;const _0x11d5cc=this[_0x2415('0xe0')];this[_0x2415('0xe0')]=!0x0;try{_0x1d3d91=_0x1897c5();}catch(_0x5b922d){_0x197cc8=_0x5b922d;}return _0x11d5cc||(this[_0x2415('0xe0')]=!0x1),_0x197cc8&&_0xfc2d3f['rethrowUnexpectedError'](_0x197cc8,this),_0x1d3d91;}[_0x2415('0x8b')](_0x2f54a7,_0x464802=null,_0xd2172d={}){if(_0x2f54a7['isCollapsed'])return null;const _0x4c07ac=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('Users')['me'];for(const {suggestion:_0x539d77,meta:_0x2c0add}of this[_0x2415('0x3e')](_0x2f54a7,'insertion'))if(_0x2c0add[_0x2415('0xda')]){if(!_0x2c0add[_0x2415('0xa1')]){if(_0x2c0add[_0x2415('0x12c')]){if(!this[_0x2415('0xfc')]||!Ot(_0x539d77,_0xd2172d))continue;return _0x539d77;}if(Ot(_0x539d77,_0xd2172d))return _0x539d77;this[_0x2415('0x121')](_0x539d77,_0x2f54a7[_0x2415('0x40')],_0x2f54a7['end']);break;}if(_0x464802==_0x539d77[_0x2415('0xbd')]&&Ot(_0x539d77,_0xd2172d)){const _0x2beb26=_0x539d77[_0x2415('0x12a')]();return _0x2beb26[_0x2415('0x40')][_0x2415('0x13')](_0x2f54a7[_0x2415('0xaa')])?this[_0x2415('0xe4')](_0x539d77,this['_model']['createRange'](_0x2f54a7[_0x2415('0x40')],_0x2beb26['end'])):this[_0x2415('0xe4')](_0x539d77,this[_0x2415('0x6')][_0x2415('0xf7')](_0x2beb26['start'],_0x2f54a7[_0x2415('0xaa')])),_0x539d77;}}const _0x35c8fd=_0x464a74(),_0x3d6c41=_0x4c07ac['id'],_0xb27238=_0x464802?_0x2415('0x10b')+_0x464802:_0x2415('0x52'),_0x18712d=this[_0x2415('0x111')]({'id':_0x35c8fd,'type':_0xb27238,'createdAt':new Date(),'authorId':_0x3d6c41,'attributes':_0xd2172d});return this[_0x2415('0x125')](_0xb27238,_0x35c8fd,_0x3d6c41,_0x2f54a7),_0x18712d;}['markMultiRangeInsertion'](_0x3efcd8,_0xf4ae73=_0x2415('0x13b'),_0x1efdf3={}){const _0x20e4a7=this[_0x2415('0xf8')][_0x2415('0x3f')]['get'](_0x2415('0x5b'))['me'],_0x536a38=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x52'),_0xf4ae73,_0x2415('0x74'));for(const _0x3c55ab of this['getSuggestions']())if(_0x3c55ab[_0x2415('0xb6')]['id']==_0x20e4a7['id']&&'insertion'==_0x3c55ab[_0x2415('0x15')]&&_0x3c55ab[_0x2415('0xbd')]==_0xf4ae73&&Ot(_0x3c55ab,_0x1efdf3)&&(_0x536a38(_0x3c55ab[_0x2415('0x97')](),_0x3efcd8)||_0x536a38(_0x3efcd8,_0x3c55ab['getRanges']()))){for(const _0x39ea88 of _0x3efcd8)_0x3c55ab[_0x2415('0xb3')](_0x39ea88);return _0x3c55ab;}for(const {suggestion:_0x271d89,meta:_0x527c91}of this[_0x2415('0x3e')](_0x3efcd8,_0x2415('0x52'))){if(!_0x527c91[_0x2415('0xda')])continue;if(!this[_0x2415('0xfc')]&&_0x527c91[_0x2415('0x12c')])continue;if(!Ot(_0x271d89,_0x1efdf3))continue;let _0x1cded8=!0x0;for(const _0x27a9df of _0x271d89['getRanges']())for(const _0x282e4e of _0x3efcd8)if(!_0x27a9df[_0x2415('0x11c')](_0x282e4e)){_0x1cded8=!0x1;break;}if(_0x1cded8)return _0x271d89;}const _0x39fd35=_0x464a74(),_0x4951ea=_0x20e4a7['id'],_0x6346d4=_0x2415('0x10b')+_0xf4ae73,_0x47d067=this[_0x2415('0x111')]({'id':_0x39fd35,'type':_0x6346d4,'createdAt':new Date(),'authorId':_0x4951ea,'attributes':_0x1efdf3});for(const _0x324b36 of _0x3efcd8)this[_0x2415('0x125')](_0x6346d4,_0x39fd35,_0x4951ea,_0x324b36,_0x47e839[_0x2415('0x38')]());return _0x47d067;}[_0x2415('0xa2')](_0x4a7960,_0x28bedd,_0x225677=null,_0x4f1779={}){if(_0x225677=_0x225677||Nt(_0x28bedd),_0x4a7960[_0x2415('0xae')])return null;if(_0x2415('0xe2')===this['_trackFormatChanges']){const _0x1613b9=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0xb'),_0x225677,'accept');return this[_0x2415('0x6d')](()=>_0x1613b9([_0x4a7960],_0x28bedd,_0x4f1779)),null;}const _0x46bfb5=this[_0x2415('0xf8')]['plugins'][_0x2415('0xd3')](_0x2415('0x5b'))['me'],_0x250144=[];if(_0x2415('0xdb')!==this[_0x2415('0xb4')])for(const {suggestion:_0x38326d,meta:_0x426f4f}of this[_0x2415('0x3e')](_0x4a7960,_0x2415('0x52')))_0x426f4f[_0x2415('0xda')]&&!_0x426f4f['isInsideObject']&&_0x250144[_0x2415('0xa5')](..._0x38326d[_0x2415('0x97')]());const _0x4633cc=function(_0x2fd867,_0x45dd70){const _0x4d19f3=[];for(const _0xadc586 of _0x45dd70){const _0xb616b8=_0x2fd867[_0x2415('0xf1')](_0xadc586);_0xb616b8&&_0x4d19f3[_0x2415('0xa5')](_0xb616b8);}return _0x4d19f3;}(_0x4a7960,_0x250144),_0x1a2b90=function(_0x12f3f0,_0x5e9743){const _0x12bf55=[_0x12f3f0];for(const _0x27f534 of _0x5e9743){let _0x531309=0x0;for(;_0x531309<_0x12bf55[_0x2415('0xcf')];){const _0x5d0c4d=_0x12bf55[_0x531309][_0x2415('0x72')](_0x27f534);_0x12bf55[_0x2415('0xd1')](_0x531309,0x1,..._0x5d0c4d),_0x531309+=_0x5d0c4d['length'];}}return _0x12bf55;}(_0x4a7960,_0x250144);_0x4633cc['length']&&this[_0x2415('0x6')][_0x2415('0xe8')](()=>{for(const _0x14a5ef of _0x4633cc){const _0x45aeae=this[_0x2415('0xc6')][_0x2415('0x90')]('formatInline',_0x225677,_0x2415('0x11f'));this[_0x2415('0x6d')](()=>_0x45aeae([_0x14a5ef],_0x28bedd,_0x4f1779));}});for(const _0x47855f of _0x1a2b90){let _0x2946d8=null,_0x99ebaf=_0x47855f[_0x2415('0x40')],_0x5b2ed1=_0x47855f['end'];for(const {suggestion:_0x40aba0,meta:_0x5650ab}of this[_0x2415('0x3e')](_0x47855f,_0x2415('0xb'))){if(!_0x5650ab['isOwn'])continue;if(_0x40aba0['subType']!=_0x225677)continue;if(!Ot(_0x40aba0,_0x4f1779))continue;const _0x37aa9d=_0x40aba0['getFirstRange']();if(_0x37aa9d['containsRange'](_0x47855f,!0x0))return null;_0x99ebaf=_0x99ebaf[_0x2415('0xc8')](_0x37aa9d[_0x2415('0x40')])?_0x99ebaf:_0x37aa9d[_0x2415('0x40')],_0x5b2ed1=_0x5b2ed1[_0x2415('0x68')](_0x37aa9d[_0x2415('0xaa')])?_0x5b2ed1:_0x37aa9d[_0x2415('0xaa')],_0x2946d8?_0x37aa9d['start'][_0x2415('0xc8')](_0x2946d8[_0x2415('0x12a')]()['start'])?(_0x2946d8['removeMarkers'](),_0x2946d8=_0x40aba0):_0x40aba0[_0x2415('0xc0')]():_0x2946d8=_0x40aba0;}const _0x4e6351=this['_model'][_0x2415('0xf7')](_0x99ebaf,_0x5b2ed1);if(_0x2946d8)this['_setSuggestionRange'](_0x2946d8,_0x4e6351);else{const _0x299cb1=_0x464a74(),_0x28f3d3=_0x46bfb5['id'];this[_0x2415('0x111')]({'id':_0x299cb1,'type':_0x2415('0x8c')+_0x225677,'data':_0x28bedd,'createdAt':new Date(),'authorId':_0x28f3d3,'attributes':_0x4f1779}),this[_0x2415('0x125')]('formatInline:'+_0x225677,_0x299cb1,_0x28f3d3,_0x4e6351);}}return null;}[_0x2415('0x61')](_0x54a10d,_0x1709c6,_0x3e257c=[],_0x318428=null,_0x2da228={}){_0x1709c6['formatGroupId']||(_0x1709c6[_0x2415('0x2f')]=_0x1709c6[_0x2415('0x88')]),_0x1709c6['multipleBlocks']=_0x54a10d['is'](_0x2415('0xfa')),_0x318428=_0x318428||Nt(_0x1709c6);const _0xc7d24=_0x3e257c[_0x2415('0x9f')](_0x40b714=>jt(_0x40b714,this[_0x2415('0x6')])),_0x19b575=_0x54a10d['is'](_0x2415('0xfa'))?_0x54a10d:jt(_0x54a10d,this[_0x2415('0x6')]);if(_0x2415('0xe2')===this[_0x2415('0xb4')]){const _0x2ade00=this['_suggestionFactory'][_0x2415('0x90')](_0x2415('0x99'),_0x318428,_0x2415('0x11f'));return this[_0x2415('0x6d')](()=>_0x2ade00([_0x19b575],_0x1709c6,_0x2da228)),null;}_0xc7d24[_0x2415('0xa5')](_0x19b575);let _0x24b3a7=!0x0;for(const _0x33f3e3 of _0xc7d24)if(!this[_0x2415('0xad')](_0x33f3e3)){_0x24b3a7=!0x1;break;}if(_0x24b3a7&&'always'!==this['_trackFormatChanges']){const _0x322fd1=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x99'),_0x318428,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x322fd1([_0x19b575],_0x1709c6,_0x2da228)),null;}let _0x5ac44a=null,_0x37b814=_0x19b575[_0x2415('0x40')],_0x2c87bc=_0x19b575[_0x2415('0xaa')];for(const {suggestion:_0x5b9ad3,meta:_0x1bc1c9}of this[_0x2415('0x3e')](_0x19b575,_0x2415('0x99'))){if(!_0x1bc1c9[_0x2415('0xda')])continue;if(_0x1bc1c9[_0x2415('0xa1')]||_0x1bc1c9[_0x2415('0x12c')]||_0x1bc1c9[_0x2415('0x5a')])continue;if(_0x5b9ad3[_0x2415('0x13a')][_0x2415('0x2f')]!=_0x1709c6[_0x2415('0x2f')])continue;if(!Ot(_0x5b9ad3,_0x2da228))continue;const _0x5ec299=_0x5b9ad3[_0x2415('0x12a')]();if(_0x5b9ad3['subType']==_0x318428){if(_0x5ec299[_0x2415('0x11c')](_0x19b575,!0x0))return null;_0x37b814=_0x37b814[_0x2415('0xc8')](_0x5ec299[_0x2415('0x40')])?_0x37b814:_0x5ec299[_0x2415('0x40')],_0x2c87bc=_0x2c87bc[_0x2415('0x68')](_0x5ec299['end'])?_0x2c87bc:_0x5ec299[_0x2415('0xaa')],_0x5ac44a?_0x5ec299[_0x2415('0x40')][_0x2415('0xc8')](_0x5ac44a[_0x2415('0x12a')]()[_0x2415('0x40')])?(_0x5ac44a['removeMarkers'](),_0x5ac44a=_0x5b9ad3):_0x5b9ad3['removeMarkers']():_0x5ac44a=_0x5b9ad3;}else{const _0x417b24=_0x19b575[_0x2415('0xf1')](_0x5ec299);this[_0x2415('0x1d')](_0x5b9ad3,_0x417b24);}}const _0x1e9ff6=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('Users')['me'],_0x25899e=_0x464a74(),_0x286ca8=_0x1e9ff6['id'];if(_0x5ac44a)return this[_0x2415('0xe4')](_0x5ac44a,this['_model'][_0x2415('0xf7')](_0x37b814,_0x2c87bc)),_0x5ac44a;{const _0x42856e=this['_setSuggestionData']({'id':_0x25899e,'type':_0x2415('0xbe')+_0x318428,'data':_0x1709c6,'createdAt':new Date(),'authorId':_0x286ca8,'attributes':_0x2da228});return this[_0x2415('0x125')](_0x2415('0xbe')+_0x318428,_0x25899e,_0x286ca8,this['_model'][_0x2415('0xf7')](_0x37b814,_0x2c87bc)),_0x42856e;}}[_0x2415('0x57')](_0x62d789,_0x4ea731,_0x164936=[],_0x5b8149=null,_0x4e449f={}){_0x4ea731[_0x2415('0x2f')]||(_0x4ea731[_0x2415('0x2f')]=_0x4ea731['commandName']);const _0x5166d4=_0x62d789[0x0];_0x4ea731['multipleBlocks']=_0x5166d4['is'](_0x2415('0xfa')),_0x5b8149=_0x5b8149||Nt(_0x4ea731);const _0x3bf250=_0x164936[_0x2415('0x9f')](_0x3c59ce=>jt(_0x3c59ce,this['_model'])),_0x4e87b4=_0x5166d4['is'](_0x2415('0xfa'))?_0x62d789:_0x62d789[_0x2415('0x9f')](_0x4e2b10=>jt(_0x4e2b10,this[_0x2415('0x6')]));if('never'===this['_trackFormatChanges']){const _0x45968a=this['_suggestionFactory'][_0x2415('0x90')](_0x2415('0x99'),_0x5b8149,_0x2415('0x11f'));return this[_0x2415('0x6d')](()=>_0x45968a(_0x4e87b4,_0x4ea731,_0x4e449f)),null;}_0x3bf250[_0x2415('0xa5')](..._0x4e87b4);let _0x347959=!0x0;for(const _0x1a4c96 of _0x3bf250)if(!this[_0x2415('0xad')](_0x1a4c96)){_0x347959=!0x1;break;}if(_0x347959&&_0x2415('0xdb')!==this['_trackFormatChanges']){const _0x36039a=this[_0x2415('0xc6')]['getSuggestionCallback'](_0x2415('0x99'),_0x5b8149,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x36039a(_0x4e87b4,_0x4ea731,_0x4e449f)),null;}const _0x2742e7=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x5b'))['me'];for(const _0x191a9b of this[_0x2415('0xa8')]()){if(_0x191a9b[_0x2415('0xb6')]['id']!=_0x2742e7['id'])continue;if(_0x2415('0x99')!=_0x191a9b[_0x2415('0x15')]||_0x191a9b[_0x2415('0x13a')]['formatGroupId']!=_0x4ea731[_0x2415('0x2f')])continue;if(!Ot(_0x191a9b,_0x4e449f))continue;const _0x48c842=_0x191a9b[_0x2415('0xbd')]==_0x5b8149;for(let _0x1e8820=0x0;_0x1e8820<_0x4e87b4[_0x2415('0xcf')];_0x1e8820++){const _0x1435e2=_0x4e87b4[_0x1e8820];for(const _0x7321ed of _0x191a9b['getMarkers']()){const _0x50cbe6=_0x7321ed[_0x2415('0x8d')]();if(_0x1435e2[_0x2415('0x13')](_0x50cbe6)){_0x48c842?(_0x4e87b4[_0x2415('0xd1')](_0x1e8820,0x1),_0x1e8820--):_0x191a9b[_0x2415('0xca')](_0x7321ed[_0x2415('0x129')]);break;}}}}if(0x0==_0x4e87b4[_0x2415('0xcf')])return null;const _0x934e79=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x99'),_0x5b8149,_0x2415('0x74'));for(const _0x2871d0 of this['getSuggestions']())if(_0x2871d0[_0x2415('0xb6')]['id']==_0x2742e7['id']&&_0x2415('0x99')==_0x2871d0[_0x2415('0x15')]&&_0x2871d0[_0x2415('0x13a')][_0x2415('0x2f')]==_0x4ea731[_0x2415('0x2f')]&&_0x2871d0[_0x2415('0xbd')]==_0x5b8149&&Ot(_0x2871d0,_0x4e449f)&&(_0x934e79(_0x2871d0[_0x2415('0x97')](),_0x4e87b4)||_0x934e79(_0x4e87b4,_0x2871d0['getRanges']()))){for(const _0x2bdc94 of _0x4e87b4)_0x2871d0['addRange'](_0x2bdc94);return _0x2871d0;}const _0x3f111d=_0x464a74(),_0x3af65a=_0x2742e7['id'],_0x318b18=_0x2415('0xbe')+_0x5b8149,_0x22e3eb=this[_0x2415('0x111')]({'id':_0x3f111d,'type':_0x318b18,'data':_0x4ea731,'createdAt':new Date(),'authorId':_0x3af65a,'attributes':_0x4e449f});for(const _0x279b61 of _0x4e87b4)this[_0x2415('0x125')](_0x318b18,_0x3f111d,_0x3af65a,_0x279b61,_0x47e839[_0x2415('0x38')]());return _0x22e3eb;}[_0x2415('0x119')](_0x4bd08e,_0xb80f8=null,_0x544cf4={}){if(_0x4bd08e[_0x2415('0xae')])return null;const _0x4d5b1f=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('Users')['me'],_0x223942=new _0x4b2b04(_0x4bd08e[_0x2415('0x40')],_0x4bd08e['end']);for(const {suggestion:_0x2a5959,meta:_0xcbecd7}of this[_0x2415('0x3e')](_0x223942,'insertion'))if(_0xcbecd7['isOwn']&&!_0xcbecd7['isNextTo']){if(_0x2a5959[_0x2415('0x0')]){const _0x59ab66=_0x2a5959['getRanges']()[_0x2415('0xab')](_0x13e7c5=>_0x2415('0x127')!=_0x13e7c5[_0x2415('0xea')][_0x2415('0x89')]);_0x59ab66[_0x2415('0xd9')](_0x2e9e29=>_0x223942[_0x2415('0x11c')](_0x2e9e29,!0x0))&&_0x2a5959[_0x2415('0xed')]();if(_0x59ab66['some'](_0x21285b=>_0x21285b[_0x2415('0x11c')](_0x223942,!0x0))){const _0x7c3f14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb80f8,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x7c3f14([_0x223942],null,_0x544cf4)),null;}}else{const _0x6e6257=_0x223942[_0x2415('0xf1')](_0x2a5959['getFirstRange']());null!==_0x6e6257&&_0x2a5959[_0x2415('0xd6')]([_0x6e6257],null,_0x544cf4);}}if(_0x223942[_0x2415('0x60')](),_0x223942[_0x2415('0xae')]||'$graveyard'==_0x223942[_0x2415('0xea')][_0x2415('0x89')])return null;let _0x3d4eb3=null,_0x374230=_0x223942[_0x2415('0x40')],_0x38c4b2=_0x223942[_0x2415('0xaa')];const _0x203e03=this['_findSuggestions'](_0x223942,_0x2415('0x12b'));for(const {suggestion:_0x5d1251,meta:_0x421692}of _0x203e03){const _0x2fd3dd=this[_0x2415('0x6')][_0x2415('0xf7')](_0x374230,_0x38c4b2);if(_0x421692[_0x2415('0xda')]&&(this[_0x2415('0xfc')]||!_0x421692['containsRangeInObject']&&!_0x421692[_0x2415('0x5a')])){if(_0x5d1251['isMultiRange']){if(!Ot(_0x5d1251,_0x544cf4))continue;let _0x2ebf75=!0x0;for(const _0x3e2bc2 of _0x5d1251['getRanges']()){if(_0x3e2bc2[_0x2415('0x11c')](_0x2fd3dd,!0x0))return _0x5d1251;_0x2fd3dd[_0x2415('0x11c')](_0x3e2bc2)||(_0x2ebf75=!0x1);}_0x2ebf75&&_0x5d1251[_0x2415('0xed')]();}else{const _0x53e3f7=_0x5d1251[_0x2415('0x12a')]();if(_0x53e3f7[_0x2415('0x11c')](_0x2fd3dd,!0x0))return _0x5d1251;if(!Ot(_0x5d1251,_0x544cf4)){_0x2fd3dd['containsRange'](_0x53e3f7)?_0x5d1251[_0x2415('0xc0')]():_0x53e3f7[_0x2415('0xa3')](_0x374230)?_0x374230=_0x53e3f7[_0x2415('0xaa')]:_0x53e3f7['containsPosition'](_0x38c4b2)&&(_0x38c4b2=_0x53e3f7[_0x2415('0x40')]);continue;}_0x374230=_0x374230[_0x2415('0xc8')](_0x53e3f7[_0x2415('0x40')])?_0x374230:_0x53e3f7[_0x2415('0x40')],_0x38c4b2=_0x38c4b2[_0x2415('0x68')](_0x53e3f7[_0x2415('0xaa')])?_0x38c4b2:_0x53e3f7['end'],_0x544cf4=Object[_0x2415('0x71')]({},_0x5d1251[_0x2415('0x82')]),_0x3d4eb3?_0x53e3f7[_0x2415('0x40')][_0x2415('0xc8')](_0x3d4eb3[_0x2415('0x12a')]()[_0x2415('0x40')])?(_0x3d4eb3['removeMarkers'](),_0x3d4eb3=_0x5d1251):_0x5d1251[_0x2415('0xc0')]():_0x3d4eb3=_0x5d1251;}}}if(_0x3d4eb3)return this[_0x2415('0xe4')](_0x3d4eb3,this[_0x2415('0x6')]['createRange'](_0x374230,_0x38c4b2)),_0x3d4eb3;{const _0x1990b5=_0x464a74(),_0x31734f=this[_0x2415('0x6')][_0x2415('0xf7')](_0x374230,_0x38c4b2),_0x3a6736=_0x4d5b1f['id'],_0x2b4469=_0xb80f8?_0x2415('0x93')+_0xb80f8:'deletion',_0x26dd86=this[_0x2415('0x111')]({'id':_0x1990b5,'type':_0x2b4469,'createdAt':new Date(),'authorId':_0x3a6736,'attributes':_0x544cf4});return this[_0x2415('0x125')](_0x2b4469,_0x1990b5,_0x3a6736,_0x31734f),_0x26dd86;}}[_0x2415('0xfb')](_0x7d9d57,_0x5889c8='multi',_0x757753={}){const _0x211e04=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x5b'))['me'],_0x28995f=_0x7d9d57[_0x2415('0x9f')](_0x35768b=>new _0x4b2b04(_0x35768b[_0x2415('0x40')],_0x35768b[_0x2415('0xaa')])),_0x206aba=new Set();for(const {suggestion:_0x3bc61b,meta:_0x7c53b2}of this['_findSuggestions'](_0x28995f,_0x2415('0x52')))_0x7c53b2[_0x2415('0xda')]&&!_0x7c53b2[_0x2415('0xa1')]&&_0x206aba['add'](_0x3bc61b);for(const _0x33ebba of _0x206aba)if(_0x33ebba[_0x2415('0x0')]){const _0x29d92d=_0x33ebba['getRanges']();(!_0x33ebba[_0x2415('0x82')]||!_0x33ebba[_0x2415('0x82')][_0x2415('0xd7')])&&(_0x29d92d['every'](_0x1d5923=>_0x28995f['some'](_0x2aeb70=>_0x2aeb70['containsRange'](_0x1d5923,!0x0)))&&_0x33ebba['discard']());if(_0x28995f[_0x2415('0xd9')](_0x3af400=>_0x29d92d['some'](_0x424489=>_0x424489[_0x2415('0x11c')](_0x3af400,!0x0)))){const _0x28ce39=this[_0x2415('0xc6')]['getSuggestionCallback'](_0x2415('0x12b'),_0x5889c8,_0x2415('0x11f'));return this[_0x2415('0x6d')](()=>_0x28ce39(_0x7d9d57,null,_0x757753)),null;}}else{const _0x209b44=_0x33ebba['getFirstRange']();_0x28995f[_0x2415('0x4b')](_0xc6503a=>_0xc6503a[_0x2415('0x11c')](_0x209b44,!0x0))&&_0x33ebba['discard']();if(_0x28995f['every'](_0x49c582=>_0x209b44['containsRange'](_0x49c582,!0x0))){const _0x130368=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x12b'),_0x5889c8,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x130368(_0x28995f,null,_0x757753)),null;}}const _0x5df018=this[_0x2415('0xc6')][_0x2415('0x90')]('deletion',_0x5889c8,'join');let _0x21506f=null;for(const _0x3a6146 of this['getSuggestions']())if(_0x3a6146[_0x2415('0xb6')]['id']==_0x211e04['id']&&_0x3a6146['isInContent']&&'deletion'==_0x3a6146[_0x2415('0x15')]&&_0x3a6146[_0x2415('0xbd')]==_0x5889c8&&Ot(_0x3a6146,_0x757753)&&(_0x5df018(_0x3a6146[_0x2415('0x97')](),_0x28995f)||_0x5df018(_0x28995f,_0x3a6146[_0x2415('0x97')]()))){if(_0x21506f){if(_0x3a6146[_0x2415('0xdf')]&&_0x3a6146['commentThread']['length'])continue;for(const _0x24b29b of _0x3a6146[_0x2415('0x97')]())_0x21506f['isIntersectingWithRange'](_0x24b29b)||_0x21506f[_0x2415('0xb3')](_0x24b29b);_0x3a6146['removeMarkers']();}else{_0x21506f=_0x3a6146;for(const _0x375c0f of _0x28995f)_0x3a6146['isIntersectingWithRange'](_0x375c0f)||_0x3a6146['addRange'](_0x375c0f);}}if(_0x21506f)return _0x21506f;_0x206aba['clear']();for(const {suggestion:_0x1e447b,meta:_0x4c0a53}of this['_findSuggestions'](_0x28995f,_0x2415('0x12b')))_0x4c0a53[_0x2415('0xda')]&&(this['_mergeNestedSuggestions']||!_0x4c0a53[_0x2415('0x12c')]&&!_0x4c0a53[_0x2415('0x5a')])&&Ot(_0x1e447b,_0x757753)&&_0x206aba[_0x2415('0x31')](_0x1e447b);for(const _0x224ecc of _0x206aba){const _0x421edd=_0x224ecc[_0x2415('0x97')]();if(!_0x757753||!_0x757753[_0x2415('0xd7')]){if(_0x28995f[_0x2415('0xd9')](_0x5336c3=>_0x421edd[_0x2415('0x4b')](_0x5be3aa=>_0x5be3aa[_0x2415('0x11c')](_0x5336c3,!0x0))))return _0x224ecc;}(!_0x224ecc['attributes']||!_0x224ecc[_0x2415('0x82')][_0x2415('0xd7')])&&(_0x421edd[_0x2415('0xd9')](_0x3f226f=>_0x28995f[_0x2415('0x4b')](_0x40e091=>_0x40e091[_0x2415('0x11c')](_0x3f226f,!0x0)))&&_0x224ecc['discard']());}const _0x173f58=_0x464a74(),_0x3fe780=_0x211e04['id'],_0x3aee59=_0x2415('0x93')+_0x5889c8,_0x599afd=this[_0x2415('0x111')]({'id':_0x173f58,'type':_0x3aee59,'createdAt':new Date(),'authorId':_0x3fe780,'attributes':_0x757753});for(const _0x265312 of _0x28995f)_0x265312['detach'](),_0x265312['isCollapsed']||_0x2415('0x127')==_0x265312[_0x2415('0xea')][_0x2415('0x89')]||this[_0x2415('0x125')](_0x3aee59,_0x173f58,_0x3fe780,_0x265312,_0x47e839[_0x2415('0x38')]());return _0x599afd;}[_0x2415('0xe4')](_0x1b0e19,_0x510542){const _0x11aa71=_0x1b0e19[_0x2415('0x42')]();this['_model'][_0x2415('0xe8')](_0x5edd0c=>{_0x5edd0c[_0x2415('0x6e')](_0x11aa71,{'range':_0x510542});});}['_addThreadToSuggestion'](_0x502dd6){const _0x6550df=_0x502dd6['id'],_0x3d4281=this[_0x2415('0xf8')][_0x2415('0xc4')][_0x2415('0xd3')]('collaboration.channelId');this[_0x2415('0x122')][_0x2415('0x87')](_0x6550df)||this[_0x2415('0x122')][_0x2415('0xff')]({'channelId':_0x3d4281,'threadId':_0x6550df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bc016=this[_0x2415('0x122')][_0x2415('0xd5')](_0x6550df);_0x4bc016[_0x2415('0x5')](_0x2415('0x2a')),_0x4bc016[_0x2415('0x2a')]=!0x1,_0x502dd6['commentThread']=_0x4bc016;}[_0x2415('0x118')](_0x53bd88,_0x440fd0,_0x14bf77,_0x5207a3){if(_0x53bd88[_0x2415('0x15')]!=_0x440fd0||_0x53bd88['subType']!=_0x14bf77||_0x53bd88[_0x2415('0x131')]['id']!=_0x5207a3)throw this[_0x2415('0xf8')]['enableReadOnlyMode'](_0x2415('0x4a')),new _0xfc2d3f(_0x2415('0x4a'),this);}[_0x2415('0x1d')](_0x4b49f5,_0x3c9c81){const _0x477b1b=_0x4b49f5[_0x2415('0x12a')]();if(_0x3c9c81[_0x2415('0x13')](_0x477b1b))_0x4b49f5[_0x2415('0xc0')]();else{if(_0x477b1b[_0x2415('0x11c')](_0x3c9c81)){const _0x4db9c8=this[_0x2415('0x6')][_0x2415('0xb0')](_0x3c9c81[_0x2415('0x40')][_0x2415('0x7d')],_0x2415('0xaa'));this[_0x2415('0xe4')](_0x4b49f5,this['_model'][_0x2415('0xf7')](_0x477b1b[_0x2415('0x40')],_0x4db9c8));const _0x17f6a4=_0x464a74(),_0x1a0737=_0x4b49f5[_0x2415('0x131')]['id'],_0x553ad5=_0x4b49f5[_0x2415('0x15')]+':'+_0x4b49f5[_0x2415('0xbd')];this[_0x2415('0x111')]({'id':_0x17f6a4,'type':_0x553ad5,'createdAt':new Date(),'authorId':_0x1a0737,'data':_0x4b49f5[_0x2415('0x13a')],'attributes':_0x4b49f5[_0x2415('0x82')]});const _0x12e32b=this[_0x2415('0x6')]['createPositionAt'](_0x3c9c81[_0x2415('0xaa')][_0x2415('0xc3')],_0x2415('0x126')),_0x5ebb73=this[_0x2415('0x6')][_0x2415('0xf7')](_0x12e32b,_0x477b1b[_0x2415('0xaa')]);this[_0x2415('0x125')](_0x553ad5,_0x17f6a4,_0x1a0737,_0x5ebb73);}else{if(_0x477b1b[_0x2415('0xa3')](_0x3c9c81[_0x2415('0x40')])){const _0x1c37ae=this['_model'][_0x2415('0xb0')](_0x3c9c81[_0x2415('0x40')][_0x2415('0x7d')],_0x2415('0xaa'));this['_setSuggestionRange'](_0x4b49f5,this[_0x2415('0x6')]['createRange'](_0x477b1b[_0x2415('0x40')],_0x1c37ae));}else{const _0x18e44d=this[_0x2415('0x6')][_0x2415('0xb0')](_0x3c9c81[_0x2415('0xaa')]['parent'],_0x2415('0x126'));this['_setSuggestionRange'](_0x4b49f5,this[_0x2415('0x6')][_0x2415('0xf7')](_0x18e44d,_0x477b1b[_0x2415('0xaa')]));}}}}[_0x2415('0xad')](_0x104460){for(const {suggestion:_0x4386d7,meta:_0xf112a5}of this[_0x2415('0x3e')](_0x104460,_0x2415('0x52'))){if(!_0xf112a5[_0x2415('0xda')])continue;const _0x1bbc4f=_0x4386d7[_0x2415('0x97')]();for(const _0x35c53a of _0x1bbc4f)if(!_0x104460[_0x2415('0x72')](_0x35c53a)[_0x2415('0xcf')])return!0x0;}return!0x1;}[_0x2415('0x11')](_0x35f4a8){const _0x210d5b=this['editor']['plugins']['get'](_0x2415('0x5b'))[_0x2415('0x138')](_0x35f4a8);if(!_0x210d5b)throw new _0xfc2d3f(_0x2415('0xbf'),this);return _0x210d5b;}[_0x2415('0x39')](_0x578d30){const _0x160988=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x5b')),_0x450941=_0x1952c9(_0x2415('0x137')+_0x578d30),_0x4c9b6f=_0x160988[_0x2415('0x138')](_0x450941);return _0x4c9b6f||_0x160988[_0x2415('0x35')]({'id':_0x450941,'name':_0x578d30});}['_createSuggestion'](_0x56e048,_0x3e6d09,_0x39f520,_0x3b099d,_0xbb71bf){const _0x5ae86b=this[_0x2415('0x11')](_0x3b099d),_0x1a2704=this['_suggestionFactory'][_0x2415('0x77')](_0x56e048,_0x3e6d09,_0x39f520,_0x5ae86b,_0xbb71bf,_0x263893=>this[_0x2415('0x7b')](_0x39f520,{'attributes':_0x263893}));return this[_0x2415('0x1')](_0x1a2704,'accept',()=>{this[_0x2415('0x7b')](_0x39f520,{'state':_0x2415('0xd')});},{'priority':'high'}),this['listenTo'](_0x1a2704,_0x2415('0xed'),()=>{this['_updateSuggestionData'](_0x39f520,{'state':_0x2415('0xe7')});},{'priority':_0x2415('0xaf')}),this[_0x2415('0x62')]['set'](_0x39f520,_0x1a2704),this[_0x2415('0x136')]['set'](_0x1a2704,_0x2415('0x14')),_0x1a2704;}[_0x2415('0xf9')](_0x5e585a){const _0x5f48ea=_0x5e585a[_0x2415('0x44')](':');return{'group':_0x5f48ea[0x0],'type':_0x5f48ea[0x1],'subType':_0x5f48ea[_0x2415('0xcf')]>=0x5?_0x5f48ea[0x2]:null,'id':_0x5f48ea[_0x2415('0xcf')]<0x5?_0x5f48ea[0x2]:_0x5f48ea[0x3],'authorId':_0x5f48ea[_0x2415('0xcf')]<0x5?_0x5f48ea[0x3]:_0x5f48ea[0x4],'markerCount':0x6==_0x5f48ea['length']?_0x5f48ea[0x5]:null};}[_0x2415('0x121')](_0x9f7e4d,_0x52d6f5,_0x308fbb){const _0x59ed48=_0x9f7e4d['getFirstRange'](),_0x54fe4a=_0x59ed48[_0x2415('0x40')],_0x1c2920=_0x59ed48['end'];this[_0x2415('0xe4')](_0x9f7e4d,this[_0x2415('0x6')]['createRange'](_0x54fe4a,_0x52d6f5));const _0x51ce2b=_0x464a74(),_0x8c9583=_0x9f7e4d[_0x2415('0x131')]['id'],_0x203d1e=_0x9f7e4d[_0x2415('0x15')]+(_0x9f7e4d[_0x2415('0xbd')]?':'+_0x9f7e4d[_0x2415('0xbd')]:'');this[_0x2415('0x111')]({'id':_0x51ce2b,'type':_0x203d1e,'createdAt':new Date(),'authorId':_0x8c9583,'originalSuggestionId':_0x9f7e4d['id'],'attributes':_0x9f7e4d[_0x2415('0x82')],'data':_0x9f7e4d[_0x2415('0x13a')]}),'formatBlock'==_0x9f7e4d[_0x2415('0x15')]&&(_0x308fbb=this[_0x2415('0x6')]['createPositionBefore'](_0x308fbb['parent'])),this[_0x2415('0x125')](_0x203d1e,_0x51ce2b,_0x8c9583,this[_0x2415('0x6')][_0x2415('0xf7')](_0x308fbb,_0x1c2920));}[_0x2415('0x3e')](_0x3f02d2,_0x41ae3a=null){const _0x359544=[],_0xc57759=this[_0x2415('0xf8')][_0x2415('0x3f')]['get'](_0x2415('0x5b'))['me'];Array[_0x2415('0x49')](_0x3f02d2)||(_0x3f02d2=[_0x3f02d2]);for(const _0x296bea of this[_0x2415('0xa8')]()){if(!_0x296bea[_0x2415('0x21')])continue;if(_0x41ae3a&&_0x296bea['type']!=_0x41ae3a)continue;let _0x24de38=!0x1;for(const _0x7d2083 of _0x296bea['getRanges']()){for(const _0x5752a2 of _0x3f02d2){const _0x5a674d=_0x5752a2[_0x2415('0x40')][_0x2415('0x13')](_0x7d2083[_0x2415('0xaa')])||_0x5752a2[_0x2415('0xaa')][_0x2415('0x13')](_0x7d2083[_0x2415('0x40')]);if(_0x5a674d||_0x5752a2[_0x2415('0xf1')](_0x7d2083)){const _0x5fbf4=_0x5752a2['containsRange'](_0x7d2083)&&_t(this[_0x2415('0x6')][_0x2415('0x96')],_0x7d2083[_0x2415('0x40')],_0x5752a2),_0x43243f=_0x7d2083[_0x2415('0x11c')](_0x5752a2)&&_t(this['_model']['schema'],_0x5752a2[_0x2415('0x40')],_0x7d2083);_0x359544[_0x2415('0xa5')]({'suggestion':_0x296bea,'meta':{'isOwn':_0xc57759==_0x296bea[_0x2415('0xb6')],'isNextTo':_0x5a674d,'isInsideObject':_0x5fbf4,'containsRangeInObject':_0x43243f}}),_0x24de38=!0x0;break;}}if(_0x24de38)break;}}return _0x359544;}[_0x2415('0x125')](_0x26612d,_0xe50904,_0x474f2e,_0x51a7ac,_0x39505d){this['_model'][_0x2415('0xe8')](_0x5965d7=>{let _0x5aec53=_0x2415('0x8a')+_0x26612d+':'+_0xe50904+':'+_0x474f2e;_0x39505d&&(_0x5aec53=_0x5aec53+':'+_0x39505d),_0x5965d7['addMarker'](_0x5aec53,{'range':_0x51a7ac,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2415('0x3')](_0x4864ac){const _0x56ea07=_0x4864ac[_0x2415('0x7f')],_0x5040d7=_0x4864ac['next'];_0x4864ac[_0x2415('0x7f')]=null,null!=_0x56ea07&&(_0x56ea07[_0x2415('0xc1')]=null),_0x4864ac[_0x2415('0xc1')]=null,null!=_0x5040d7&&(_0x5040d7[_0x2415('0x7f')]=null),_0x2415('0xf2')==this['_suggestionState']['get'](_0x4864ac)&&(this[_0x2415('0x136')][_0x2415('0x117')](_0x4864ac,_0x2415('0x3b')),this[_0x2415('0x100')](_0x2415('0xa9'),_0x4864ac,_0x56ea07,_0x5040d7));}['_setSuggestionData'](_0x1c5e46){const _0x41536b=_0x1c5e46['id'],_0x4adde7=this['addSuggestionData'](_0x1c5e46);if(this[_0x2415('0x41')]&&this[_0x2415('0x41')][_0x2415('0xdd')]){const _0x5e1a17=this[_0x2415('0xf8')]['plugins'][_0x2415('0xd3')](_0x2415('0x135')),_0x3b3c67=_0x4adde7[_0x2415('0x5e')],_0xe5e7f8=_0x4adde7[_0x2415('0xbd')]?_0x4adde7[_0x2415('0x15')]+':'+_0x4adde7[_0x2415('0xbd')]:_0x4adde7[_0x2415('0x15')],_0xa1e95a=this['editor'][_0x2415('0x91')],_0x471aef=_0x5e1a17[_0x2415('0x31')](_0x2f5143(_0xa1e95a,'PENDING_ACTION_SUGGESTION')),_0x7e34cb={'id':_0x41536b,'type':_0xe5e7f8,'hasComments':_0x3b3c67,'data':_0x1c5e46[_0x2415('0x13a')]||null,'originalSuggestionId':_0x1c5e46[_0x2415('0x6a')]||null,'attributes':_0x4adde7[_0x2415('0x82')]};this[_0x2415('0x41')][_0x2415('0xdd')](_0x7e34cb)[_0x2415('0x55')](_0x4de832=>{_0x4adde7[_0x2415('0x6b')]=!0x0,_0x5e1a17[_0x2415('0xa')](_0x471aef),_0x4de832&&_0x4de832[_0x2415('0x53')]&&(this['_suggestions']['get'](_0x41536b)[_0x2415('0x53')]=_0x4de832[_0x2415('0x53')]);})[_0x2415('0xec')](_0x4b82bf=>{throw _0x1cc911('error-saving-suggestion-data-suggestion-discarded'),this[_0x2415('0xf8')][_0x2415('0x2b')][_0x2415('0x3d')]({'isUndoable':!0x1},()=>{_0x4adde7['discard']();}),_0x4adde7[_0x2415('0x84')](),this[_0x2415('0x62')][_0x2415('0xc7')](_0x4adde7['id']),this[_0x2415('0x136')][_0x2415('0xc7')](_0x4adde7),_0x4b82bf;});}return _0x4adde7;}[_0x2415('0x7b')](_0x5e0ce2,_0x4f233a){const _0x323698=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('PendingActions'),_0x696f54=this[_0x2415('0x20')](_0x5e0ce2);if(this[_0x2415('0x41')]&&this[_0x2415('0x41')][_0x2415('0xa6')]){if(_0x696f54[_0x2415('0x6b')]){const _0x477104=_0x323698[_0x2415('0x31')](_0x2f5143(this[_0x2415('0xf8')][_0x2415('0x91')],_0x2415('0xdc')));this[_0x2415('0x41')][_0x2415('0xa6')](_0x5e0ce2,_0x4f233a)['then'](()=>{_0x323698['remove'](_0x477104);});}else _0x696f54['on']('change:_saved',()=>{this[_0x2415('0x7b')](_0x5e0ce2,_0x4f233a);});}}[_0x2415('0xc5')](_0x518117){if(!this[_0x2415('0x41')]||!this[_0x2415('0x41')][_0x2415('0x20')])throw new _0xfc2d3f(_0x2415('0x33'),this);return this[_0x2415('0x41')][_0x2415('0x20')](_0x518117);}['_handleNewSuggestionMarker'](_0x5e62a5){const {id:_0x28a747,type:_0xbc2785,subType:_0x4a199a,authorId:_0x55a224}=this['_splitMarkerName'](_0x5e62a5),_0x14ebd4=this[_0x2415('0x62')][_0x2415('0xd3')](_0x28a747)||this[_0x2415('0x36')](_0xbc2785,_0x4a199a,_0x28a747,_0x55a224,{});switch(this[_0x2415('0x118')](_0x14ebd4,_0xbc2785,_0x4a199a,_0x55a224),this[_0x2415('0x136')]['get'](_0x14ebd4)){case'notReady':this[_0x2415('0xc5')](_0x28a747)['then'](_0x44d3d2=>{let _0x3b4d08=Promise['resolve']();_0x44d3d2[_0x2415('0x5e')]&&(_0x3b4d08=this[_0x2415('0x122')][_0x2415('0x12f')]({'channelId':this[_0x2415('0xf8')][_0x2415('0xc4')][_0x2415('0xd3')]('collaboration.channelId'),'threadId':_0x28a747})),_0x3b4d08[_0x2415('0x55')](()=>{this[_0x2415('0x8f')](_0x44d3d2)[_0x2415('0x6b')]=!0x0;});}),this[_0x2415('0x136')][_0x2415('0x117')](_0x14ebd4,_0x2415('0x58'));break;case _0x2415('0x3b'):this['_updateSuggestionData'](_0x28a747,{'state':'open'});case _0x2415('0xba'):this['_suggestionState'][_0x2415('0x117')](_0x14ebd4,_0x2415('0xf2')),this[_0x2415('0x100')]('suggestionLoaded',_0x14ebd4);break;case _0x2415('0xf2'):this[_0x2415('0x100')]('suggestionChanged',_0x14ebd4);}return _0x14ebd4['addMarkerName'](_0x5e62a5),_0x14ebd4;}['_refreshSuggestionsChain'](_0x2f8a20){const _0x564552=Array[_0x2415('0xe9')](_0x2f8a20)[_0x2415('0xab')](_0x25f8b7=>!_0x25f8b7['isMultiRange']),_0xea27f7=this[_0x2415('0xa8')]({'skipNotAttached':!0x0})[_0x2415('0xab')](_0x21f3cd=>!_0x21f3cd['isMultiRange']),_0x64bfce=_0xea27f7['filter'](_0x1d946f=>!_0x2f8a20['has'](_0x1d946f)),_0xaaa3e6=new Map(_0xea27f7[_0x2415('0x9f')](_0x54305b=>[_0x54305b,this[_0x2415('0xc6')][_0x2415('0x90')](_0x54305b[_0x2415('0x15')],_0x54305b[_0x2415('0xbd')],_0x2415('0xd0'))])),_0x1d0cf2=new Map(_0xea27f7['map'](_0x2210d6=>[_0x2210d6,_0x2210d6['getFirstRange']()])),_0x3fbc50=new Set(),_0x4f152a=new Set();for(let _0x2c9023=0x0;_0x2c9023<_0x564552[_0x2415('0xcf')];_0x2c9023++)_0x3f4406(_0x564552[_0x2c9023],_0x564552,_0x2c9023+0x1);for(let _0x2145f0=0x0;_0x2145f0<_0x564552[_0x2415('0xcf')];_0x2145f0++)_0x3f4406(_0x564552[_0x2145f0],_0x64bfce,0x0);for(let _0x3c2e0b=0x0;_0x3c2e0b<_0x564552[_0x2415('0xcf')];_0x3c2e0b++){const _0x2a5308=_0x564552[_0x3c2e0b];!_0x4f152a['has'](_0x2a5308)&&_0x2a5308['previous']&&(_0x2a5308[_0x2415('0x7f')][_0x2415('0xc1')]===_0x2a5308&&(_0x2a5308['previous'][_0x2415('0xc1')]=null),_0x2a5308['previous']=null),!_0x3fbc50[_0x2415('0x18')](_0x2a5308)&&_0x2a5308[_0x2415('0xc1')]&&(_0x2a5308['next'][_0x2415('0x7f')]===_0x2a5308&&(_0x2a5308[_0x2415('0xc1')][_0x2415('0x7f')]=null),_0x2a5308[_0x2415('0xc1')]=null);}function _0x3f4406(_0xa366c7,_0x353961,_0x4a0d01){for(let _0x26c3cc=_0x4a0d01;_0x26c3cc<_0x353961[_0x2415('0xcf')];_0x26c3cc++){const _0xeda261=_0x879e79(_0xa366c7,_0x353961[_0x26c3cc]);_0xeda261&&(_0xeda261[0x0]['next']=_0xeda261[0x1],_0xeda261[0x1][_0x2415('0x7f')]=_0xeda261[0x0],_0x3fbc50[_0x2415('0x31')](_0xeda261[0x0]),_0x4f152a[_0x2415('0x31')](_0xeda261[0x1]));}}function _0x879e79(_0x54488c,_0x4449a2){if(_0x54488c[_0x2415('0xb6')]['id']!==_0x4449a2[_0x2415('0xb6')]['id'])return null;const _0x5dded3=_0xaaa3e6[_0x2415('0xd3')](_0x54488c)(_0x54488c,_0x4449a2,_0x1d0cf2[_0x2415('0xd3')](_0x54488c),_0x1d0cf2[_0x2415('0xd3')](_0x4449a2));if(!_0x5dded3)return null;return _0xaaa3e6['get'](_0x4449a2)(_0x54488c,_0x4449a2,_0x1d0cf2[_0x2415('0xd3')](_0x54488c),_0x1d0cf2['get'](_0x4449a2))?_0x5dded3[0x1][_0x2415('0xdf')]&&_0x5dded3[0x1]['commentThread']['length']?null:_0x5dded3:null;}}[_0x2415('0x34')](_0xd1b8f){const _0x567bcd=Array['from'](_0xd1b8f),_0x284ec3=this[_0x2415('0xa8')]({'skipNotAttached':!0x0}),_0x56966d=_0x284ec3['filter'](_0x2f37c1=>!_0xd1b8f[_0x2415('0x18')](_0x2f37c1)),_0x591a2e=new Map(_0x567bcd[_0x2415('0x9f')](_0x1f4153=>[_0x1f4153,this[_0x2415('0xc6')]['getSuggestionCallback'](_0x1f4153[_0x2415('0x15')],_0x1f4153[_0x2415('0xbd')],'join')])),_0x21d3a6=new Map(_0x284ec3['map'](_0x553184=>[_0x553184,_0x553184[_0x2415('0x97')]()]));for(let _0x568e23=0x0;_0x568e23<_0x567bcd[_0x2415('0xcf')];_0x568e23++){if(_0x21f648(this,_0x567bcd[_0x568e23],_0x567bcd,_0x568e23+0x1))return!0x0;}for(let _0xd91270=0x0;_0xd91270<_0x567bcd[_0x2415('0xcf')];_0xd91270++){if(_0x21f648(this,_0x567bcd[_0xd91270],_0x56966d,0x0))return!0x0;}return!0x1;function _0x21f648(_0x58fa59,_0x49db23,_0x5c7e4a,_0x8ca741){for(let _0x1ba6b4=_0x8ca741;_0x1ba6b4<_0x5c7e4a[_0x2415('0xcf')];_0x1ba6b4++){const _0x1b8322=_0x5c7e4a[_0x1ba6b4];if(_0x1b8322[_0x2415('0x15')]!==_0x49db23[_0x2415('0x15')]||_0x1b8322[_0x2415('0xb6')]['id']!==_0x49db23[_0x2415('0xb6')]['id']||_0x1b8322[_0x2415('0xbd')]!==_0x49db23[_0x2415('0xbd')])continue;if(!Ut(_0x49db23,_0x1b8322))continue;const _0x188283=_0x591a2e[_0x2415('0xd3')](_0x49db23),_0x2dc1ff=_0x21d3a6[_0x2415('0xd3')](_0x49db23),_0x23c68a=_0x21d3a6[_0x2415('0xd3')](_0x1b8322),_0x1d96cf=_0x49db23['commentThread']&&_0x49db23['commentThread'][_0x2415('0xcf')],_0x538978=_0x1b8322[_0x2415('0xdf')]&&_0x1b8322[_0x2415('0xdf')][_0x2415('0xcf')];if(!_0x1d96cf&&_0x188283(_0x23c68a,_0x2dc1ff))return _0x58fa59[_0x2415('0x2c')](_0x1b8322,_0x49db23),_0x21d3a6['delete'](_0x49db23),!0x0;if(!_0x538978&&_0x188283(_0x2dc1ff,_0x23c68a))return _0x58fa59[_0x2415('0x2c')](_0x49db23,_0x1b8322),_0x21d3a6[_0x2415('0xc7')](_0x1b8322),!0x0;}return!0x1;}}[_0x2415('0x2c')](_0x9257e1,_0x2c985a){if(_0x9257e1[_0x2415('0x0')])for(const _0x10f337 of _0x2c985a[_0x2415('0x97')]())_0x9257e1[_0x2415('0xb3')](_0x10f337);else{const _0x2317b2=_0x2c985a[_0x2415('0x12a')]()[_0x2415('0xaa')];this[_0x2415('0xe4')](_0x9257e1,this[_0x2415('0x6')][_0x2415('0xf7')](_0x9257e1[_0x2415('0x12a')]()[_0x2415('0x40')],_0x2317b2));}_0x2c985a['removeMarkers']();}}class Bt{constructor(_0x12a9ac){this['_editor']=_0x12a9ac,this['_model']=_0x12a9ac[_0x2415('0x2b')],this[_0x2415('0x9e')]=new Map(),this[_0x2415('0xde')]=new Map(),this[_0x2415('0x95')]();}[_0x2415('0x77')](_0x48e6b6,_0x5586f9,_0x31bbd6,_0xa5acfd,_0x449823,_0x19c6a1){return new _0x47e839(this[_0x2415('0x6')],{'type':_0x48e6b6,'subType':_0x5586f9,'id':_0x31bbd6,'author':_0xa5acfd,'creator':_0xa5acfd,'attributes':_0x449823,'onAttributesChange':_0x19c6a1,'onAccept':(..._0x56c241)=>this[_0x2415('0x90')](_0x48e6b6,_0x5586f9,_0x2415('0x11f'))(..._0x56c241),'onDiscard':(..._0xc7afaf)=>this[_0x2415('0x90')](_0x48e6b6,_0x5586f9,'discard')(..._0xc7afaf)});}[_0x2415('0x69')](_0x1ce585,_0x2150cd,_0x108b5d,_0x4d162a){const _0x3cddf8=_0x1ce585+':'+_0x2150cd+':'+_0x108b5d;this[_0x2415('0x9e')][_0x2415('0x117')](_0x3cddf8,_0x4d162a);}['getSuggestionCallback'](_0x5972bd,_0x18aa75,_0x22d5dd){const _0x265557=_0x5972bd+':'+_0x18aa75+':'+_0x22d5dd;return this['_customCallbacks'][_0x2415('0xd3')](_0x265557)||this[_0x2415('0xde')][_0x2415('0xd3')](_0x5972bd+':'+_0x22d5dd);}[_0x2415('0x95')](){const _0x30feca=()=>!0x1,_0x31ed93=_0x370a63=>{_0x370a63[_0x2415('0x76')]((_0x255348,_0x143140)=>_0x255348[_0x2415('0x40')]['isBefore'](_0x143140[_0x2415('0x40')])?0x1:-0x1),this[_0x2415('0x6')][_0x2415('0xe8')](_0x2d63b8=>{for(const _0x4ef854 of _0x370a63){let _0x3cdd07;_0x3cdd07=_0x4ef854[_0x2415('0xaa')][_0x2415('0xb9')]&&_0x4ef854[_0x2415('0xaa')]['parent']==_0x4ef854[_0x2415('0x40')][_0x2415('0x4c')]?_0x2d63b8[_0x2415('0x11e')](_0x4ef854[_0x2415('0x40')]['nodeAfter'],'on'):_0x2d63b8[_0x2415('0x11e')](_0x4ef854),this['_model'][_0x2415('0xd4')](_0x3cdd07,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30015d=(_0x21ed2f,_0x35ff81)=>{this[_0x2415('0x6')]['change'](_0x428196=>{const {commandName:_0x2e602e,commandParams:_0x345bbb=[]}=_0x35ff81,_0x58c3c9=_0x21ed2f[_0x2415('0x9f')](_0x4fffb9=>(Mt(_0x4fffb9)&&(_0x4fffb9=this[_0x2415('0x6')][_0x2415('0xf7')](_0x4fffb9[_0x2415('0xaa')])),_0x4fffb9))[_0x2415('0xab')](_0x2dadf5=>_0x2415('0x127')!==_0x2dadf5[_0x2415('0xea')]['rootName']);if(_0x58c3c9['length']<0x1)return;const _0x3a7793=Array[_0x2415('0xe9')](this[_0x2415('0x6')][_0x2415('0x2')][_0x2415('0xb8')][_0x2415('0x97')]())[_0x2415('0x9f')](_0x132cdf=>_0x4b2b04[_0x2415('0xa4')](_0x132cdf));_0x428196[_0x2415('0x83')](_0x58c3c9);for(const _0x231a47 of this[_0x2415('0x51')][_0x2415('0xb2')]['commands']())_0x231a47[_0x2415('0xe1')]();_0x345bbb[_0x2415('0xa5')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x2415('0x12d')](_0x2e602e,..._0x345bbb);const _0x32f79d=_0x3a7793[_0x2415('0xab')](_0x49fa01=>'$graveyard'!=_0x49fa01['root'][_0x2415('0x89')]);_0x32f79d['length']>0x0&&_0x428196['setSelection'](_0x32f79d);for(const _0x110328 of _0x3a7793)_0x110328[_0x2415('0x60')]();});},_0x3ae2ca=(_0x5e4270,_0x7f3455)=>0x1==_0x5e4270['length']&&0x1==_0x7f3455['length']&&_0x5e4270[0x0][_0x2415('0xaa')][_0x2415('0x13')](_0x7f3455[0x0]['start']),_0x4f8211=(_0x246cd2,_0x5ddfc1,_0x4c5070,_0x1d5874)=>xt(_0x246cd2,_0x5ddfc1,_0x4c5070,_0x1d5874,this[_0x2415('0x6')])?[_0x246cd2,_0x5ddfc1]:xt(_0x5ddfc1,_0x246cd2,_0x1d5874,_0x4c5070,this[_0x2415('0x6')])?[_0x5ddfc1,_0x246cd2]:null;this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x17'),_0x30feca),this[_0x2415('0xde')]['set'](_0x2415('0xeb'),_0x31ed93),this[_0x2415('0xde')]['set'](_0x2415('0x50'),_0x3ae2ca),this[_0x2415('0xde')]['set'](_0x2415('0xd2'),_0x4f8211),this[_0x2415('0xde')]['set'](_0x2415('0x2d'),_0x31ed93),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x109'),_0x30feca),this[_0x2415('0xde')]['set']('deletion:join',_0x3ae2ca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x85'),_0x4f8211),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0xa7'),_0x30015d),this[_0x2415('0xde')]['set'](_0x2415('0x28'),_0x30feca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0xfe'),_0x3ae2ca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0xd8'),_0x30feca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x3c'),_0x30015d),this['_defaultCallbacks'][_0x2415('0x117')]('formatBlock:discard',_0x30feca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x105'),_0x3ae2ca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x130'),_0x30feca);}}function _t(_0x577489,_0x4f2ff7,_0x235f96){for(const _0x2ac1dc of _0x4f2ff7[_0x2415('0xc3')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ac1dc[_0x2415('0xea')]==_0x2ac1dc)return!0x1;if(!_0x235f96[_0x2415('0x12e')](_0x2ac1dc))return!0x1;if(_0x577489[_0x2415('0x11d')](_0x2ac1dc)||_0x577489[_0x2415('0x94')](_0x2ac1dc))return!0x0;}return!0x1;}function Mt(_0x23564d){return _0x23564d['end'][_0x2415('0xc3')]==_0x23564d[_0x2415('0x40')][_0x2415('0x4c')]&&_0x23564d[_0x2415('0xaa')][_0x2415('0x78')];}function $t(_0x117b47,_0x41c60c,_0x50077e,_0x74b06c){const _0x13abb4=_0xca6103=>!_0xca6103[_0x2415('0x7c')]['is'](_0x2415('0x70'))&&!_0x74b06c[_0x2415('0x11d')](_0xca6103['item']),_0x258ca5=_0x117b47['start']['getLastMatchingPosition'](_0x13abb4),_0x3956e9=_0x117b47['end']['getLastMatchingPosition'](_0x13abb4,{'direction':'backward'});return(!_0x117b47[_0x2415('0x40')][_0x2415('0x13')](_0x258ca5)||!_0x117b47['end']['isEqual'](_0x3956e9))&&(_0x258ca5[_0x2415('0xc8')](_0x3956e9)?_0x50077e[_0x2415('0x6e')](_0x41c60c,{'range':_0x50077e[_0x2415('0xf7')](_0x258ca5,_0x3956e9)}):_0x50077e[_0x2415('0xca')](_0x41c60c),!0x0);}function Nt(_0x683b62){return _0x1952c9(_0x683b62);}function Rt(_0x290c22){const _0xdbad1b=_0x290c22[_0x2415('0x40')]['nodeAfter'];return _0xdbad1b&&_0xdbad1b['is']('element');}function jt(_0x3f728d,_0x48a2ad){const _0x5f3b37=_0x48a2ad[_0x2415('0x96')][_0x2415('0x11d')](_0x3f728d)||_0x48a2ad[_0x2415('0x96')]['isSelectable'](_0x3f728d);return _0x48a2ad['createRange'](_0x48a2ad[_0x2415('0xb0')](_0x3f728d,_0x2415('0x9b')),_0x5f3b37?_0x48a2ad['createPositionAfter'](_0x3f728d):_0x48a2ad['createPositionAt'](_0x3f728d,_0x2415('0xaa')));}function xt(_0x16d035,_0x1089ce,_0x83bb9b,_0x3de836,_0x5c425a){if(!Ut(_0x16d035,_0x1089ce))return!0x1;if(_0x83bb9b[_0x2415('0xaa')][_0x2415('0x13')](_0x3de836[_0x2415('0x40')]))return!0x0;if(_0x16d035[_0x2415('0x15')]!=_0x1089ce[_0x2415('0x15')])return!0x1;if(!_0x83bb9b[_0x2415('0xaa')][_0x2415('0x92')](_0x3de836[_0x2415('0x40')]))return!0x1;const _0x103c69=_0x5c425a[_0x2415('0xf7')](_0x83bb9b[_0x2415('0xaa')],_0x3de836[_0x2415('0x40')])['getWalker']();for(const _0xaf3f5c of _0x103c69)if([_0x2415('0x1c'),'elementEnd']['includes'](_0xaf3f5c[_0x2415('0x15')])&&_0x5c425a[_0x2415('0x96')][_0x2415('0x94')](_0xaf3f5c[_0x2415('0x7c')]))return!0x1;return!0x0;}function Ut(_0x5c34a6,_0x5810ee){return!(!_0x5c34a6[_0x2415('0xa0')]||!_0x5810ee[_0x2415('0xa0')])&&_0x45c4c7(_0x5c34a6[_0x2415('0x82')],_0x5810ee[_0x2415('0x82')]);}function Ot(_0x1806a1,_0x4bb4df){const _0xa6cc26=Et(_0x1806a1[_0x2415('0x82')]),_0x2c516c=Et(_0x4bb4df);if(!_0x1806a1[_0x2415('0xa0')])return!0x1;for(const _0x55e118 of Object[_0x2415('0xc2')](_0x2c516c))if(!_0x45c4c7(_0xa6cc26[_0x55e118],_0x2c516c[_0x55e118]))return!0x1;return!0x0;}function Et(_0x18b894){const _0x2f4313=Object[_0x2415('0x71')]({},_0x18b894);return delete _0x2f4313['skipNestingCheck'],delete _0x2f4313[_0x2415('0x79')],_0x2f4313;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4f8a=['comments.maxCommentCharsWhenCollapsed','trackChanges','createAnnotationView','type','comments.maxThreadTotalWeight','destroy','comments.maxCommentsWhenCollapsed','_refreshActiveMarkers','execute','toMany','createAnnotation','add','getSuggestion','TrackChangesUI','change:activeAnnotations','buttonView','getMarkers','_createUIButton','addSourceCollector','comments','head','editing','push','innerView','values','get','TrackChangesEditing','comments.editorConfig','requires','filter','descriptionParts','Annotations','SuggestionThreadView','Accept\x20all\x20selected\x20suggestions','_initializeController','value','actionView','suggestion-','pluginName','_handleSuggestionControllerDelayed','unbind','define','delete','EditorAnnotations','some','lowest','acceptButton','getJoined','CommentsRepository','length','change:previous','has','clear','bind','_annotationViews','set','focus','locale','Accept\x20all\x20suggestions','getFirstRange','keys','listenTo','from','commandName','button','_descriptionFactory','_suggestionToController','_updateController','plugins','_unbindEditors','isOn','suggestionUnloaded','_bindAnnotationToEditors','separator','registerAnnotation','arrowView','commands','view','getAllAdjacentSuggestions','isDirty','_disableComments','_destroyController','suggestionLoaded','isEnabled','isInContent','trackChanges.disableComments','refreshSelectedViews','_viewToController','_handleControllerBuffer','getByInnerView','editor','getDescriptions','model','Track\x20changes','mainView','hasSuggestion'];(function(_0x5d0642,_0x4f8a07){const _0x3e40e6=function(_0x10c70f){while(--_0x10c70f){_0x5d0642['push'](_0x5d0642['shift']());}};_0x3e40e6(++_0x4f8a07);}(_0x4f8a,0x1eb));const _0x3e40=function(_0x5d0642,_0x4f8a07){_0x5d0642=_0x5d0642-0x0;let _0x3e40e6=_0x4f8a[_0x5d0642];return _0x3e40e6;};import{Plugin as _0x20fee2}from'ckeditor5/src/core';import{Collection as _0x1916ed}from'ckeditor5/src/utils';import{Model as _0x385836,SplitButtonView as _0x1673d0,createDropdown as _0x3e17dc,addListToDropdown as _0x81838f}from'ckeditor5/src/ui';import{Users as _0xf73ff8,getDateTimeFormatter as _0x1b8af2,getAllMarkersDomElementsSorted as _0x1650aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x21187d from'./trackchangesediting';import _0x542a66 from'./ui/suggestioncontroller';import _0x490e79 from'./ui/view/suggestionthreadview';import{getTranslation as _0xe79c4c}from'./utils/common-translations';import _0x5986e2 from'../theme/icons/track-changes.svg';export default class d extends _0x20fee2{static get[_0x3e40('0x11')](){return[_0x21187d,_0xf73ff8,_0x3e40('0x25'),_0x3e40('0x14'),_0x3e40('0x20')];}static get[_0x3e40('0x1b')](){return _0x3e40('0x2');}constructor(_0xe51d49){super(_0xe51d49),this[_0x3e40('0x37')]=new Map(),this['_viewToController']=new Map(),this[_0x3e40('0x2b')]=new Map(),this[_0x3e40('0x4d')]=new Map();const _0x5d62e0=this['editor']['config'];_0x5d62e0[_0x3e40('0x1e')]('trackChanges.SuggestionThreadView',_0x490e79),_0x5d62e0['define'](_0x3e40('0x4a'),!0x1),this['_disableComments']=_0x5d62e0[_0x3e40('0xe')](_0x3e40('0x4a'));}[_0x3e40('0x1c')](_0x23b033,_0x80b762){0x0===this[_0x3e40('0x4d')]['size']&&setTimeout(()=>{for(const [_0x27325b,_0x1dcf45]of this[_0x3e40('0x4d')]){const _0x2df3b5=this['_suggestionToController'][_0x3e40('0x28')](_0x27325b);_0x2df3b5||_0x1dcf45?_0x2df3b5&&_0x1dcf45&&this[_0x3e40('0x46')](_0x27325b):this[_0x3e40('0x17')](_0x27325b);}this[_0x3e40('0x4f')][_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x20'))[_0x3e40('0x4b')](),this[_0x3e40('0x5c')](),this[_0x3e40('0x4d')][_0x3e40('0x29')]();},0xa),this['_handleControllerBuffer'][_0x3e40('0x2c')](_0x23b033,_0x80b762);}['init'](){const _0x3b64a4=this[_0x3e40('0x4f')],_0x3487c7=_0x3b64a4['plugins']['get']('TrackChangesEditing'),_0x496f65=_0x3b64a4[_0x3e40('0x39')]['get']('Annotations'),_0xc68643=_0x3b64a4['plugins']['get'](_0x3e40('0x20')),_0x475395=_0x3b64a4[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x25'));_0x3b64a4['ui']['componentFactory']['add'](_0x3e40('0x56'),_0x5dcd36=>this[_0x3e40('0x6')](_0x5dcd36)),_0xc68643[_0x3e40('0x7')](()=>{const _0x59ec43=[];for(const [_0x4fdeb2,_0x4706e9]of Array[_0x3e40('0x33')](this[_0x3e40('0x37')])){const _0xb2a31c=_0x4fdeb2['getAllAdjacentSuggestions'](),_0x542a32=[];for(const _0x508484 of _0xb2a31c){if(!_0x508484[_0x3e40('0x49')])continue;if(_0x508484['isMultiRange']){_0x542a32['push'](..._0x508484['getRanges']());continue;}const _0x4c3a35=_0x508484[_0x3e40('0x30')]();if(_0x542a32[_0x3e40('0x26')]>0x0){const _0x584b37=_0x542a32[0x0][_0x3e40('0x24')](_0x4c3a35);if(_0x584b37){_0x542a32[0x0]=_0x584b37;continue;}}_0x542a32[_0x3e40('0xb')](_0x4c3a35);}_0x59ec43['push']([_0x4706e9[_0x3e40('0x42')],_0x542a32]);}return _0x59ec43;}),this[_0x3e40('0x32')](_0x3487c7,_0x3e40('0x47'),(_0x56fcb9,_0x532630)=>{this[_0x3e40('0x32')](_0x532630,_0x3e40('0x27'),(_0x16c0c2,_0x559508,_0x147a74,_0x381f9a)=>{_0x532630[_0x3e40('0x49')]&&(null==_0x147a74?(this[_0x3e40('0x38')](_0x381f9a[_0x3e40('0x9')]),this['_handleSuggestionControllerDelayed'](_0x532630,!0x1)):(this[_0x3e40('0x38')](_0x147a74[_0x3e40('0x9')]),this[_0x3e40('0x1c')](_0x532630,!0x0)));}),null===_0x532630['previous']?this[_0x3e40('0x1c')](_0x532630,!0x1):this[_0x3e40('0x38')](_0x532630['head']);}),this[_0x3e40('0x32')](_0x3487c7,_0x3e40('0x3c'),(_0x449347,_0x1b6495,_0x163b08)=>{this['stopListening'](_0x1b6495,'change:previous'),this['_handleControllerBuffer'][_0x3e40('0x1f')](_0x1b6495);const _0x1f55af=_0x163b08?_0x163b08[_0x3e40('0x9')]:_0x1b6495,_0x3ac98e=this['_suggestionToController'][_0x3e40('0xe')](_0x1f55af);null!==_0x163b08&&this[_0x3e40('0x38')](_0x1f55af),null===_0x163b08&&_0x3ac98e&&this[_0x3e40('0x46')](_0x1b6495);}),this[_0x3e40('0x32')](_0x3487c7,'suggestionChanged',(_0x34519c,_0x7b7b50)=>{this[_0x3e40('0x38')](_0x7b7b50);}),this[_0x3e40('0x32')](_0x496f65,_0x3e40('0x3'),()=>{this['_refreshActiveMarkers']();}),this[_0x3e40('0x32')](_0x475395,'addComment',(_0x4053a8,{threadId:_0x2893ae,isFromAdapter:_0x49ec28})=>{if(_0x49ec28||!_0x3487c7[_0x3e40('0x54')](_0x2893ae))return;const _0x53e097=_0x3487c7[_0x3e40('0x1')](_0x2893ae);this[_0x3e40('0x37')][_0x3e40('0xe')](_0x53e097)['view'][_0x3e40('0x2d')]();},{'priority':_0x3e40('0x22')});}[_0x3e40('0x5c')](){const _0x26556d=this[_0x3e40('0x4f')]['plugins'][_0x3e40('0xe')](_0x3e40('0x14')),_0x57041f=this[_0x3e40('0x4f')]['plugins'][_0x3e40('0xe')](_0x3e40('0xf')),_0x9f3714=Array['from'](_0x26556d['activeAnnotations'],_0x677053=>_0x677053[_0x3e40('0xc')])[_0x3e40('0x12')](_0x216766=>this['_viewToController'][_0x3e40('0x28')](_0x216766)),_0x4a53fc=[];for(const _0x280236 of _0x9f3714){const _0x4bcbcb=this['_viewToController'][_0x3e40('0xe')](_0x280236)[_0x3e40('0x51')][_0x3e40('0x43')]();_0x4a53fc['push'](..._0x4bcbcb['reduce']((_0x11970e,_0x54d869)=>[..._0x11970e,..._0x54d869['getMarkerNames']()],[]));}_0x57041f['activeMarkers']=_0x4a53fc;}[_0x3e40('0x6')](_0x510dd0){const _0x22ad15=_0x3e17dc(_0x510dd0,_0x1673d0),_0x5e7a3e=this[_0x3e40('0x4f')][_0x3e40('0x41')][_0x3e40('0xe')](_0x3e40('0x56')),_0x4b1b3c=_0xe79c4c(_0x510dd0,_0x3e40('0x52'));_0x22ad15[_0x3e40('0x4')][_0x3e40('0x2c')]({'tooltip':_0x4b1b3c,'label':_0x4b1b3c,'icon':_0x5986e2}),_0x22ad15[_0x3e40('0x4')][_0x3e40('0x2a')](_0x3e40('0x3b'))['to'](_0x5e7a3e,_0x3e40('0x18')),_0x22ad15[_0x3e40('0x4')]['on'](_0x3e40('0x5d'),()=>{_0x5e7a3e['execute'](),this[_0x3e40('0x4f')][_0x3e40('0xa')][_0x3e40('0x42')][_0x3e40('0x2d')]();});const _0x66471d=new _0x1916ed(),_0x39783f=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4b1b3c,'commandName':_0x3e40('0x56')}},{'type':_0x3e40('0x3e')},{'type':_0x3e40('0x35'),'model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,_0x3e40('0x2f')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,_0x3e40('0x16')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x3e40('0x35'),'model':{'withText':!0x0,'label':_0xe79c4c(_0x510dd0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x3fbac5 of _0x39783f){let _0x281d4b={'type':'separator'};if(_0x3fbac5[_0x3e40('0x51')]){const _0x2d3c06=new _0x385836(_0x3fbac5['model']),_0x517f51=this[_0x3e40('0x4f')][_0x3e40('0x41')][_0x3e40('0xe')](_0x2d3c06[_0x3e40('0x34')]);_0x2d3c06['bind'](_0x3e40('0x3b'),_0x3e40('0x48'))['to'](_0x517f51,_0x3e40('0x18'),_0x3e40('0x48')),_0x281d4b={'type':_0x3fbac5[_0x3e40('0x58')],'model':_0x2d3c06};}_0x66471d[_0x3e40('0x0')](_0x281d4b);}_0x81838f(_0x22ad15,_0x66471d);const _0x17ef21=_0x39783f[_0x3e40('0x12')](_0x4d3555=>null!=_0x4d3555[_0x3e40('0x51')])['map'](_0x5e8d6d=>this['editor'][_0x3e40('0x41')][_0x3e40('0xe')](_0x5e8d6d[_0x3e40('0x51')][_0x3e40('0x34')])),_0x19086a=_0x22ad15[_0x3e40('0x4')];return _0x19086a[_0x3e40('0x19')][_0x3e40('0x1d')](_0x3e40('0x48')),_0x19086a[_0x3e40('0x40')][_0x3e40('0x1d')](_0x3e40('0x48')),_0x19086a[_0x3e40('0x19')]['bind'](_0x3e40('0x48'))['to'](_0x5e7a3e,'isEnabled'),_0x19086a[_0x3e40('0x40')][_0x3e40('0x2a')]('isEnabled')[_0x3e40('0x5e')](_0x17ef21,_0x3e40('0x48'),(..._0x4a1673)=>_0x4a1673[_0x3e40('0x21')](_0x3c3e49=>_0x3c3e49)),_0x22ad15['on']('execute',_0x3b7740=>{this[_0x3e40('0x4f')][_0x3e40('0x5d')](_0x3b7740['source'][_0x3e40('0x34')]),this[_0x3e40('0x4f')][_0x3e40('0xa')][_0x3e40('0x42')][_0x3e40('0x2d')]();}),_0x22ad15;}[_0x3e40('0x17')](_0x260aea){const _0x3f3bd9=this['editor'],_0x4e6a30=_0x3f3bd9['config'],_0x13b1d3=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x14')),_0x3f62f6=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x25')),_0x5b23bb=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x20')),_0xe085d9=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')](_0xf73ff8)['me'],_0xed7496=_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x56'))[_0x3e40('0x15')],{CommentsListView:_0xc669e2,CommentThreadInputView:_0x2441d5}=_0x3f3bd9[_0x3e40('0x39')][_0x3e40('0xe')]('CommentsUI');let _0x516440,_0x3bbaf0;this[_0x3e40('0x2b')]['has'](_0x260aea['id'])?(_0x3bbaf0=this[_0x3e40('0x2b')][_0x3e40('0xe')](_0x260aea['id']),_0x516440=_0x3bbaf0[_0x3e40('0x53')]):(_0x516440=new _0xed7496(_0x3f3bd9[_0x3e40('0x2e')],_0x260aea,_0xe085d9,{'disableComments':this[_0x3e40('0x45')],'editorConfig':_0x4e6a30['get'](_0x3e40('0x10')),'maxCommentsWhenCollapsed':_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x5b')),'maxThreadTotalWeight':_0x4e6a30['get'](_0x3e40('0x59')),'maxCommentCharsWhenCollapsed':_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x55')),'formatDateTime':_0x1b8af2(_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x2e'))),'CommentView':_0x4e6a30[_0x3e40('0xe')](_0x3e40('0x8'))['CommentView'],'CommentsListView':_0xc669e2,'CommentThreadInputView':_0x2441d5}),_0x516440[_0x3e40('0x23')]['on'](_0x3e40('0x5d'),()=>{_0x3f3bd9[_0x3e40('0xa')][_0x3e40('0x42')]['focus']();}),_0x516440['discardButton']['on']('execute',()=>{_0x3f3bd9[_0x3e40('0xa')][_0x3e40('0x42')][_0x3e40('0x2d')]();}),_0x3bbaf0=_0x13b1d3[_0x3e40('0x57')](this[_0x3e40('0x4f')][_0x3e40('0x2e')],_0x516440),_0x3bbaf0[_0x3e40('0x2a')](_0x3e40('0x44'))['to'](_0x516440,'isDirty'),_0x3bbaf0['bind'](_0x3e40('0x26'))['to'](_0x516440),_0x3bbaf0[_0x3e40('0x2a')](_0x3e40('0x58'))['to'](_0x516440,_0x3e40('0x58'),_0x12fa0f=>_0x3e40('0x1a')+_0x12fa0f),this[_0x3e40('0x2b')][_0x3e40('0x2c')](_0x260aea['id'],_0x3bbaf0));const _0x116858=_0x3f62f6['createCommentThreadController'](_0x260aea['commentThread'],_0x516440),_0xce900a=new _0x542a66(_0x3f3bd9,_0x260aea,_0x516440,_0x116858),_0x4302fb=_0x260aea[_0x3e40('0x43')]()['filter'](_0x3383d7=>_0x3383d7[_0x3e40('0x49')]);_0x516440['descriptionParts']=_0x3f3bd9[_0x3e40('0x39')]['get'](_0x3e40('0xf'))[_0x3e40('0x36')][_0x3e40('0x50')](_0x4302fb),this[_0x3e40('0x37')][_0x3e40('0x2c')](_0x260aea,_0xce900a),this[_0x3e40('0x4c')][_0x3e40('0x2c')](_0x516440,_0xce900a);const _0x510b87=_0x13b1d3[_0x3e40('0x5f')]({'view':_0x3bbaf0,'target':()=>{const _0xb030d=[],_0x5e6a6d=_0x260aea[_0x3e40('0x43')]()[_0x3e40('0x12')](_0x38bec3=>_0x38bec3[_0x3e40('0x49')]);for(const _0x2f4f39 of _0x5e6a6d)_0xb030d['push'](..._0x2f4f39[_0x3e40('0x5')]());return _0x1650aa(_0x3f3bd9[_0x3e40('0xa')],_0xb030d);},'type':()=>_0x3e40('0x1a')+_0xce900a[_0x3e40('0x42')][_0x3e40('0x58')]});_0x3f62f6[_0x3e40('0x3d')](_0x516440,_0x510b87),_0x13b1d3[_0x3e40('0x0')](_0x510b87),_0x5b23bb[_0x3e40('0x3f')](_0x510b87);}['_destroyController'](_0x1c9cd4){const _0x2da080=this[_0x3e40('0x4f')]['plugins'][_0x3e40('0xe')](_0x3e40('0x25')),_0x5b81ed=this[_0x3e40('0x4f')][_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0x14')),_0x29e1f3=this[_0x3e40('0x37')][_0x3e40('0xe')](_0x1c9cd4),_0x557e25=_0x29e1f3[_0x3e40('0x42')],_0x2e83af=_0x5b81ed[_0x3e40('0x4e')](_0x557e25);_0x2da080[_0x3e40('0x3a')](_0x557e25),_0x2e83af&&_0x5b81ed['remove'](_0x2e83af),this[_0x3e40('0x37')][_0x3e40('0x1f')](_0x1c9cd4),this[_0x3e40('0x4c')][_0x3e40('0x1f')](_0x557e25),_0x29e1f3[_0x3e40('0x5a')]();}[_0x3e40('0x38')](_0x2f6438){if(!_0x2f6438['isInContent']||!this[_0x3e40('0x37')][_0x3e40('0x28')](_0x2f6438))return;const _0xc8bae4=this[_0x3e40('0x4f')][_0x3e40('0x39')][_0x3e40('0xe')](_0x3e40('0xf')),_0x22df9f=this[_0x3e40('0x37')][_0x3e40('0xe')](_0x2f6438),_0xf5a4bc=_0x2f6438[_0x3e40('0x43')]();_0x22df9f[_0x3e40('0x42')][_0x3e40('0x13')]=_0xc8bae4[_0x3e40('0x36')][_0x3e40('0x50')](_0xf5a4bc);}['destroy'](){for(const _0xba9e9c of this[_0x3e40('0x37')][_0x3e40('0x31')]())this[_0x3e40('0x46')](_0xba9e9c);for(const _0x5b0554 of this[_0x3e40('0x2b')][_0x3e40('0xd')]())_0x5b0554[_0x3e40('0x53')][_0x3e40('0x5a')]();super[_0x3e40('0x5a')]();}}
|
|
23
|
+
const _0x55d0=['activeMarkers','isInContent','EditorAnnotations','trackChanges.SuggestionThreadView','acceptAllSuggestions','listenTo','_suggestionToController','_createUIButton','lowest','trackChanges.disableComments','change:previous','_disableComments','getFirstRange','from','destroy','commandName','innerView','values','set','_viewToController','_handleControllerBuffer','_descriptionFactory','mainView','discardSelectedSuggestions','refreshSelectedViews','getDescriptions','_updateController','buttonView','suggestionLoaded','addSourceCollector','TrackChangesUI','_initializeController','locale','getAllAdjacentSuggestions','commands','createAnnotation','model','_unbindEditors','suggestionChanged','suggestion-','commentThread','CommentsRepository','comments.maxThreadTotalWeight','size','Annotations','SuggestionThreadView','_handleSuggestionControllerDelayed','editing','getByInnerView','getSuggestion','descriptionParts','arrowView','filter','getMarkerNames','isDirty','acceptButton','registerAnnotation','head','keys','Discard\x20all\x20suggestions','view','_refreshActiveMarkers','_destroyController','type','unbind','plugins','delete','add','TrackChangesEditing','button','actionView','getJoined','suggestionUnloaded','config','CommentView','push','Discard\x20all\x20selected\x20suggestions','addComment','isOn','toMany','length','source','focus','value','activeAnnotations','comments.editorConfig','componentFactory','getMarkers','_annotationViews','comments.maxCommentsWhenCollapsed','pluginName','requires','has','change:activeAnnotations','previous','execute','hasSuggestion','clear','Accept\x20all\x20selected\x20suggestions','discardAllSuggestions','separator','editor','isMultiRange','trackChanges','map','get','some','stopListening','CommentsUI','bind','isEnabled','define'];(function(_0x260de9,_0x55d010){const _0x32a060=function(_0x117da3){while(--_0x117da3){_0x260de9['push'](_0x260de9['shift']());}};_0x32a060(++_0x55d010);}(_0x55d0,0x103));const _0x32a0=function(_0x260de9,_0x55d010){_0x260de9=_0x260de9-0x0;let _0x32a060=_0x55d0[_0x260de9];return _0x32a060;};import{Plugin as _0x584a2b}from'ckeditor5/src/core';import{Collection as _0x36c42c}from'ckeditor5/src/utils';import{Model as _0x3a43ed,SplitButtonView as _0x3f6f03,createDropdown as _0xce0e68,addListToDropdown as _0x450e1f}from'ckeditor5/src/ui';import{Users as _0x4f251e,getDateTimeFormatter as _0x2d481c,getAllMarkersDomElementsSorted as _0x4a20e0}from'ckeditor5-collaboration/src/collaboration-core';import _0x21cb1a from'./trackchangesediting';import _0x2a6362 from'./ui/suggestioncontroller';import _0x301142 from'./ui/view/suggestionthreadview';import{getTranslation as _0x147a99}from'./utils/common-translations';import _0x1d0aea from'../theme/icons/track-changes.svg';export default class d extends _0x584a2b{static get[_0x32a0('0x38')](){return[_0x21cb1a,_0x4f251e,_0x32a0('0x6'),_0x32a0('0x9'),_0x32a0('0x4f')];}static get[_0x32a0('0x37')](){return _0x32a0('0x6b');}constructor(_0x1e4f16){super(_0x1e4f16),this[_0x32a0('0x53')]=new Map(),this[_0x32a0('0x60')]=new Map(),this[_0x32a0('0x35')]=new Map(),this[_0x32a0('0x61')]=new Map();const _0x203467=this[_0x32a0('0x42')][_0x32a0('0x26')];_0x203467[_0x32a0('0x4c')](_0x32a0('0x50'),_0x301142),_0x203467['define'](_0x32a0('0x56'),!0x1),this['_disableComments']=_0x203467[_0x32a0('0x46')](_0x32a0('0x56'));}['_handleSuggestionControllerDelayed'](_0x2c4b2a,_0x214b1f){0x0===this[_0x32a0('0x61')][_0x32a0('0x8')]&&setTimeout(()=>{for(const [_0x30b69f,_0x3f36d7]of this[_0x32a0('0x61')]){const _0x30f7e2=this['_suggestionToController']['has'](_0x30b69f);_0x30f7e2||_0x3f36d7?_0x30f7e2&&_0x3f36d7&&this[_0x32a0('0x1b')](_0x30b69f):this['_initializeController'](_0x30b69f);}this[_0x32a0('0x42')]['plugins']['get'](_0x32a0('0x4f'))[_0x32a0('0x65')](),this[_0x32a0('0x1a')](),this[_0x32a0('0x61')][_0x32a0('0x3e')]();},0xa),this[_0x32a0('0x61')][_0x32a0('0x5f')](_0x2c4b2a,_0x214b1f);}['init'](){const _0x430ed3=this['editor'],_0x1032b4=_0x430ed3[_0x32a0('0x1e')]['get']('TrackChangesEditing'),_0x245287=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')]('Annotations'),_0x3b7ed9=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x4f')),_0x1dfa1e=_0x430ed3[_0x32a0('0x1e')][_0x32a0('0x46')]('CommentsRepository');_0x430ed3['ui'][_0x32a0('0x33')][_0x32a0('0x20')](_0x32a0('0x44'),_0x41d65e=>this[_0x32a0('0x54')](_0x41d65e)),_0x3b7ed9[_0x32a0('0x6a')](()=>{const _0x2fed47=[];for(const [_0x5620a1,_0x4d792a]of Array[_0x32a0('0x5a')](this[_0x32a0('0x53')])){const _0x27b33a=_0x5620a1[_0x32a0('0x6e')](),_0x5e2c09=[];for(const _0x34dd45 of _0x27b33a){if(!_0x34dd45[_0x32a0('0x4e')])continue;if(_0x34dd45[_0x32a0('0x43')]){_0x5e2c09['push'](..._0x34dd45['getRanges']());continue;}const _0x58b5d8=_0x34dd45[_0x32a0('0x59')]();if(_0x5e2c09[_0x32a0('0x2d')]>0x0){const _0x476912=_0x5e2c09[0x0][_0x32a0('0x24')](_0x58b5d8);if(_0x476912){_0x5e2c09[0x0]=_0x476912;continue;}}_0x5e2c09[_0x32a0('0x28')](_0x58b5d8);}_0x2fed47[_0x32a0('0x28')]([_0x4d792a[_0x32a0('0x19')],_0x5e2c09]);}return _0x2fed47;}),this[_0x32a0('0x52')](_0x1032b4,_0x32a0('0x69'),(_0x574fca,_0x294233)=>{this[_0x32a0('0x52')](_0x294233,_0x32a0('0x57'),(_0x5da5b1,_0x574b4f,_0x298755,_0x368c4c)=>{_0x294233['isInContent']&&(null==_0x298755?(this[_0x32a0('0x67')](_0x368c4c[_0x32a0('0x16')]),this[_0x32a0('0xb')](_0x294233,!0x1)):(this[_0x32a0('0x67')](_0x298755[_0x32a0('0x16')]),this[_0x32a0('0xb')](_0x294233,!0x0)));}),null===_0x294233[_0x32a0('0x3b')]?this[_0x32a0('0xb')](_0x294233,!0x1):this[_0x32a0('0x67')](_0x294233[_0x32a0('0x16')]);}),this['listenTo'](_0x1032b4,_0x32a0('0x25'),(_0x18f0d2,_0x50fc47,_0x2adc49)=>{this[_0x32a0('0x48')](_0x50fc47,_0x32a0('0x57')),this['_handleControllerBuffer'][_0x32a0('0x1f')](_0x50fc47);const _0x2d6f09=_0x2adc49?_0x2adc49['head']:_0x50fc47,_0x3e22d3=this[_0x32a0('0x53')]['get'](_0x2d6f09);null!==_0x2adc49&&this['_updateController'](_0x2d6f09),null===_0x2adc49&&_0x3e22d3&&this[_0x32a0('0x1b')](_0x50fc47);}),this[_0x32a0('0x52')](_0x1032b4,_0x32a0('0x3'),(_0x539a3a,_0x1af26c)=>{this[_0x32a0('0x67')](_0x1af26c);}),this[_0x32a0('0x52')](_0x245287,_0x32a0('0x3a'),()=>{this[_0x32a0('0x1a')]();}),this['listenTo'](_0x1dfa1e,_0x32a0('0x2a'),(_0x270593,{threadId:_0xf69aea,isFromAdapter:_0x4da65b})=>{if(_0x4da65b||!_0x1032b4[_0x32a0('0x3d')](_0xf69aea))return;const _0x46a643=_0x1032b4[_0x32a0('0xe')](_0xf69aea);this[_0x32a0('0x53')][_0x32a0('0x46')](_0x46a643)[_0x32a0('0x19')][_0x32a0('0x2f')]();},{'priority':_0x32a0('0x55')});}[_0x32a0('0x1a')](){const _0x534ac5=this[_0x32a0('0x42')][_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x9')),_0x15b1f7=this[_0x32a0('0x42')][_0x32a0('0x1e')]['get'](_0x32a0('0x21')),_0x520a9e=Array['from'](_0x534ac5[_0x32a0('0x31')],_0x4ec423=>_0x4ec423[_0x32a0('0x5d')])['filter'](_0x5d9621=>this[_0x32a0('0x60')][_0x32a0('0x39')](_0x5d9621)),_0x3a81d3=[];for(const _0x4a8f00 of _0x520a9e){const _0x1da285=this[_0x32a0('0x60')]['get'](_0x4a8f00)[_0x32a0('0x1')]['getAllAdjacentSuggestions']();_0x3a81d3[_0x32a0('0x28')](..._0x1da285['reduce']((_0x57e909,_0x494779)=>[..._0x57e909,..._0x494779[_0x32a0('0x12')]()],[]));}_0x15b1f7[_0x32a0('0x4d')]=_0x3a81d3;}[_0x32a0('0x54')](_0x33e09d){const _0x49de38=_0xce0e68(_0x33e09d,_0x3f6f03),_0x2c0f5b=this['editor']['commands'][_0x32a0('0x46')](_0x32a0('0x44')),_0x248466=_0x147a99(_0x33e09d,'Track\x20changes');_0x49de38['buttonView'][_0x32a0('0x5f')]({'tooltip':_0x248466,'label':_0x248466,'icon':_0x1d0aea}),_0x49de38['buttonView'][_0x32a0('0x4a')](_0x32a0('0x2b'))['to'](_0x2c0f5b,_0x32a0('0x30')),_0x49de38['buttonView']['on']('execute',()=>{_0x2c0f5b[_0x32a0('0x3c')](),this[_0x32a0('0x42')][_0x32a0('0xc')][_0x32a0('0x19')]['focus']();});const _0x4af871=new _0x36c42c(),_0x14b302=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x248466,'commandName':_0x32a0('0x44')}},{'type':_0x32a0('0x41')},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,'Accept\x20all\x20suggestions'),'commandName':_0x32a0('0x51')}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x3f')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x18')),'commandName':_0x32a0('0x40')}},{'type':_0x32a0('0x22'),'model':{'withText':!0x0,'label':_0x147a99(_0x33e09d,_0x32a0('0x29')),'commandName':_0x32a0('0x64')}}];for(const _0x48f4b3 of _0x14b302){let _0x28e7b2={'type':_0x32a0('0x41')};if(_0x48f4b3[_0x32a0('0x1')]){const _0x1fc248=new _0x3a43ed(_0x48f4b3['model']),_0x194aca=this['editor'][_0x32a0('0x6f')][_0x32a0('0x46')](_0x1fc248['commandName']);_0x1fc248[_0x32a0('0x4a')](_0x32a0('0x2b'),_0x32a0('0x4b'))['to'](_0x194aca,_0x32a0('0x30'),_0x32a0('0x4b')),_0x28e7b2={'type':_0x48f4b3['type'],'model':_0x1fc248};}_0x4af871['add'](_0x28e7b2);}_0x450e1f(_0x49de38,_0x4af871);const _0xcd0aa5=_0x14b302[_0x32a0('0x11')](_0x339fa8=>null!=_0x339fa8[_0x32a0('0x1')])[_0x32a0('0x45')](_0x363e09=>this[_0x32a0('0x42')][_0x32a0('0x6f')]['get'](_0x363e09[_0x32a0('0x1')][_0x32a0('0x5c')])),_0x3c324a=_0x49de38[_0x32a0('0x68')];return _0x3c324a[_0x32a0('0x23')][_0x32a0('0x1d')](_0x32a0('0x4b')),_0x3c324a[_0x32a0('0x10')]['unbind'](_0x32a0('0x4b')),_0x3c324a[_0x32a0('0x23')][_0x32a0('0x4a')](_0x32a0('0x4b'))['to'](_0x2c0f5b,_0x32a0('0x4b')),_0x3c324a['arrowView'][_0x32a0('0x4a')]('isEnabled')[_0x32a0('0x2c')](_0xcd0aa5,_0x32a0('0x4b'),(..._0x44ba42)=>_0x44ba42[_0x32a0('0x47')](_0xf40b07=>_0xf40b07)),_0x49de38['on'](_0x32a0('0x3c'),_0x133d11=>{this[_0x32a0('0x42')][_0x32a0('0x3c')](_0x133d11[_0x32a0('0x2e')][_0x32a0('0x5c')]),this['editor']['editing']['view']['focus']();}),_0x49de38;}[_0x32a0('0x6c')](_0x15e217){const _0x5d6d15=this[_0x32a0('0x42')],_0x554393=_0x5d6d15[_0x32a0('0x26')],_0x452690=_0x5d6d15[_0x32a0('0x1e')]['get'](_0x32a0('0x9')),_0x3a84e3=_0x5d6d15[_0x32a0('0x1e')]['get'](_0x32a0('0x6')),_0x3b6800=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')](_0x32a0('0x4f')),_0x55fc62=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')](_0x4f251e)['me'],_0x1b6979=_0x554393[_0x32a0('0x46')](_0x32a0('0x44'))[_0x32a0('0xa')],{CommentsListView:_0x160ac9,CommentThreadInputView:_0x22c40c}=_0x5d6d15['plugins']['get'](_0x32a0('0x49'));let _0x5a966b,_0xf6a9e5;this[_0x32a0('0x35')][_0x32a0('0x39')](_0x15e217['id'])?(_0xf6a9e5=this['_annotationViews'][_0x32a0('0x46')](_0x15e217['id']),_0x5a966b=_0xf6a9e5[_0x32a0('0x63')]):(_0x5a966b=new _0x1b6979(_0x5d6d15[_0x32a0('0x6d')],_0x15e217,_0x55fc62,{'disableComments':this[_0x32a0('0x58')],'editorConfig':_0x554393['get'](_0x32a0('0x32')),'maxCommentsWhenCollapsed':_0x554393['get'](_0x32a0('0x36')),'maxThreadTotalWeight':_0x554393['get'](_0x32a0('0x7')),'maxCommentCharsWhenCollapsed':_0x554393[_0x32a0('0x46')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d481c(_0x554393[_0x32a0('0x46')]('locale')),'CommentView':_0x554393[_0x32a0('0x46')]('comments')[_0x32a0('0x27')],'CommentsListView':_0x160ac9,'CommentThreadInputView':_0x22c40c}),_0x5a966b[_0x32a0('0x14')]['on'](_0x32a0('0x3c'),()=>{_0x5d6d15[_0x32a0('0xc')][_0x32a0('0x19')][_0x32a0('0x2f')]();}),_0x5a966b['discardButton']['on'](_0x32a0('0x3c'),()=>{_0x5d6d15[_0x32a0('0xc')]['view']['focus']();}),_0xf6a9e5=_0x452690['createAnnotationView'](this[_0x32a0('0x42')]['locale'],_0x5a966b),_0xf6a9e5[_0x32a0('0x4a')](_0x32a0('0x13'))['to'](_0x5a966b,_0x32a0('0x13')),_0xf6a9e5[_0x32a0('0x4a')]('length')['to'](_0x5a966b),_0xf6a9e5[_0x32a0('0x4a')](_0x32a0('0x1c'))['to'](_0x5a966b,_0x32a0('0x1c'),_0x21f9d3=>_0x32a0('0x4')+_0x21f9d3),this['_annotationViews']['set'](_0x15e217['id'],_0xf6a9e5));const _0x4c3989=_0x3a84e3['createCommentThreadController'](_0x15e217[_0x32a0('0x5')],_0x5a966b),_0x313341=new _0x2a6362(_0x5d6d15,_0x15e217,_0x5a966b,_0x4c3989),_0x3d7c38=_0x15e217[_0x32a0('0x6e')]()['filter'](_0x1caa2f=>_0x1caa2f['isInContent']);_0x5a966b[_0x32a0('0xf')]=_0x5d6d15[_0x32a0('0x1e')][_0x32a0('0x46')]('TrackChangesEditing')[_0x32a0('0x62')][_0x32a0('0x66')](_0x3d7c38),this[_0x32a0('0x53')][_0x32a0('0x5f')](_0x15e217,_0x313341),this[_0x32a0('0x60')][_0x32a0('0x5f')](_0x5a966b,_0x313341);const _0x323512=_0x452690[_0x32a0('0x0')]({'view':_0xf6a9e5,'target':()=>{const _0x595551=[],_0x139f70=_0x15e217['getAllAdjacentSuggestions']()['filter'](_0x35acd5=>_0x35acd5[_0x32a0('0x4e')]);for(const _0x2f1d53 of _0x139f70)_0x595551['push'](..._0x2f1d53[_0x32a0('0x34')]());return _0x4a20e0(_0x5d6d15[_0x32a0('0xc')],_0x595551);},'type':()=>'suggestion-'+_0x313341[_0x32a0('0x19')]['type']});_0x3a84e3['_bindAnnotationToEditors'](_0x5a966b,_0x323512),_0x452690[_0x32a0('0x20')](_0x323512),_0x3b6800[_0x32a0('0x15')](_0x323512);}['_destroyController'](_0x1189a8){const _0x202ee6=this[_0x32a0('0x42')]['plugins']['get']('CommentsRepository'),_0x4a21d8=this['editor'][_0x32a0('0x1e')]['get']('Annotations'),_0xcfb624=this[_0x32a0('0x53')][_0x32a0('0x46')](_0x1189a8),_0x10b2b5=_0xcfb624[_0x32a0('0x19')],_0x15ecd8=_0x4a21d8[_0x32a0('0xd')](_0x10b2b5);_0x202ee6[_0x32a0('0x2')](_0x10b2b5),_0x15ecd8&&_0x4a21d8['remove'](_0x15ecd8),this[_0x32a0('0x53')][_0x32a0('0x1f')](_0x1189a8),this['_viewToController'][_0x32a0('0x1f')](_0x10b2b5),_0xcfb624[_0x32a0('0x5b')]();}[_0x32a0('0x67')](_0x344d26){if(!_0x344d26[_0x32a0('0x4e')]||!this['_suggestionToController']['has'](_0x344d26))return;const _0x415e0a=this[_0x32a0('0x42')]['plugins'][_0x32a0('0x46')](_0x32a0('0x21')),_0x6b3707=this[_0x32a0('0x53')]['get'](_0x344d26),_0x41c284=_0x344d26[_0x32a0('0x6e')]();_0x6b3707[_0x32a0('0x19')]['descriptionParts']=_0x415e0a['_descriptionFactory'][_0x32a0('0x66')](_0x41c284);}[_0x32a0('0x5b')](){for(const _0x2bc1bb of this[_0x32a0('0x53')][_0x32a0('0x17')]())this['_destroyController'](_0x2bc1bb);for(const _0x5bbac6 of this['_annotationViews'][_0x32a0('0x5e')]())_0x5bbac6[_0x32a0('0x63')][_0x32a0('0x5b')]();super[_0x32a0('0x5b')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x587c=['commentThreadController','isEnabled','commands','_acceptCommand','bind','PENDING_ACTION_SUGGESTION','locale','_removePendingAction','_pendingAction','acceptSuggestion','PendingActions','model','canAccept','isDirty','_setPendingAction','canEditAt','get','_discardCommand','discardSuggestion','execute','getRanges','_editor','add','plugins','remove','view','destroy','listenTo'];(function(_0xc3da65,_0x587c6e){const _0x2b0e90=function(_0x297fc0){while(--_0x297fc0){_0xc3da65['push'](_0xc3da65['shift']());}};_0x2b0e90(++_0x587c6e);}(_0x587c,0x97));const _0x2b0e=function(_0xc3da65,_0x587c6e){_0xc3da65=_0xc3da65-0x0;let _0x2b0e90=_0x587c[_0xc3da65];return _0x2b0e90;};import{ObservableMixin as _0xda5ce4}from'ckeditor5/src/utils';import{getTranslation as _0x241661}from'../utils/common-translations';export default class Gt extends _0xda5ce4(){constructor(_0x407d24,_0x54c500,_0x33359b,_0x57c1c1){super(),this[_0x2b0e('0x0')]=_0x54c500,this[_0x2b0e('0xe')]=_0x33359b,this[_0x2b0e('0x11')]=_0x57c1c1,this[_0x2b0e('0xa')]=_0x407d24,this[_0x2b0e('0x14')]=_0x407d24[_0x2b0e('0x13')][_0x2b0e('0x5')](_0x2b0e('0x1a')),this[_0x2b0e('0x6')]=_0x407d24['commands'][_0x2b0e('0x5')](_0x2b0e('0x7')),this[_0x2b0e('0xe')]['bind'](_0x2b0e('0x12'))['to'](this[_0x2b0e('0x14')],this[_0x2b0e('0x6')],(_0x3bd950,_0x1a99ab)=>_0x3bd950||_0x1a99ab),this[_0x2b0e('0xe')][_0x2b0e('0x15')](_0x2b0e('0x1'))['to'](this[_0x2b0e('0x14')],_0x2b0e('0x12'),_0x52a1f1=>_0x52a1f1&&this[_0x2b0e('0xa')][_0x2b0e('0x0')]['canEditAt'](_0x54c500[_0x2b0e('0x9')]())),this[_0x2b0e('0xe')][_0x2b0e('0x15')]('canDiscard')['to'](this[_0x2b0e('0x6')],'isEnabled',_0x4b49de=>_0x4b49de&&this[_0x2b0e('0xa')][_0x2b0e('0x0')][_0x2b0e('0x4')](_0x54c500['getRanges']())),this[_0x2b0e('0x19')]=null,_0x33359b[_0x2b0e('0x2')]&&this[_0x2b0e('0x3')](),this[_0x2b0e('0x10')](_0x33359b,_0x2b0e('0x1a'),()=>this[_0x2b0e('0x1a')]()),this[_0x2b0e('0x10')](_0x33359b,_0x2b0e('0x7'),()=>this[_0x2b0e('0x7')]()),this[_0x2b0e('0x10')](_0x33359b,'change:isDirty',()=>{_0x33359b[_0x2b0e('0x2')]?this[_0x2b0e('0x3')]():this[_0x2b0e('0x18')]();});}[_0x2b0e('0x1a')](){this[_0x2b0e('0x14')][_0x2b0e('0x8')](this['model']['id']);}[_0x2b0e('0x7')](){this['_discardCommand'][_0x2b0e('0x8')](this['model']['id']);}['destroy'](){this[_0x2b0e('0xe')]['unbind'](_0x2b0e('0x12')),this[_0x2b0e('0xe')]['unbind'](_0x2b0e('0x1')),this[_0x2b0e('0xe')]['unbind']('canDiscard'),this['stopListening'](),this[_0x2b0e('0x11')][_0x2b0e('0xf')](),this['_pendingAction']&&this[_0x2b0e('0x18')]();}['_setPendingAction'](){const _0x35f23c=_0x241661(this[_0x2b0e('0xa')][_0x2b0e('0x17')],_0x2b0e('0x16'));this['_pendingAction']=this[_0x2b0e('0xa')][_0x2b0e('0xc')][_0x2b0e('0x5')](_0x2b0e('0x1b'))[_0x2b0e('0xb')](_0x35f23c);}[_0x2b0e('0x18')](){null!==this[_0x2b0e('0x19')]&&this[_0x2b0e('0xa')]['plugins'][_0x2b0e('0x5')]('PendingActions')[_0x2b0e('0xd')](this[_0x2b0e('0x19')]),this[_0x2b0e('0x19')]=null;}}
|