@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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 +2 -2
- 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/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 _0x42c5=['isUndo','_enabledCommands','map','ck-suggestion-marker-','creator','end','writer','formatInline:accept','execute','acceptSelectedSuggestions','isAtStart','markerToHighlight','acceptAllSuggestions','type','_cutOutSuggestionMarker','removeMarker','markDeletion','getChangedMarkers','_setSuggestionData','isBlock','trackChanges.trackFormatChanges','backward','authoredAt','substr','position','delete','data-suggestion','buildSuggestion','enableCommand','batch','TrackChangesEditing','mapper','isAtEnd','$marker','discardSuggestion','clone','config','acceptSuggestion','isSelectable','fetchCommentThread','getUser','getRange','normal','insert','keys','dataToMarker','formatBlock','define','isOwn','_registerDefaultCallbacks','containerElement','_splitMarkerName','deletion','containsRangeInObject','editingDowncast','markerReady','getShiftedBy','isInsideObject','add','_getExternalAuthor','tablePasteChainId','suggestionUnloaded','addClass','addMarkerName','getAncestors','ck-suggestion-marker-formatBlock','change:_saved','join','suggestion','return','CommentsRepository','isBefore','isExternal','isCollapsed','lowest','getDifference','deletion:','_adapter','never','_mergeNestedSuggestions','low','includes','ck-suggestion-marker--active','addCommentThread','clear','registerPostFixer','getFirstRange','getCommentThread','createRange','addMarker:suggestion:formatBlock','previous','dataReady','length','ready','showSuggestionHighlights','unbindElementFromMarkerName','every','differ','enqueueChange','change:data','_addThreadToSuggestion','name','plugins','addSuggestion','createdAt','isNextTo','high','_updateSuggestionData','containsPosition','@external','addRange','_suggestionFactory','options','_customCallbacks','formatGroupId','element','_getSuggestionData','insertion:join','trackChanges.mergeNestedSuggestions','track-changes-command-not-found','formatBlock:','markBlockFormat','isLocal','getMultiRangeId','getAttribute','Users','fromRange','_setSuggestionRange','formatInline:chain','formatInline:join','formatBlock:discard','getMarkers','highest','authorName','_model','some','ck-suggestion-marker','activeMarkers','commandName','markerNameToElements','_onDiscard','_addSuggestionMarker','size','$textProxy','widget','containsItem','createSelection','selection','howMany','collaboration.channelId','getLastMatchingPosition','then','updateMarker','schema','_saved','_handleNewSuggestionMarker','split','model','splitPosition','consumable','forceDefaultExecution','isTouching','PENDING_ACTION_SUGGESTION','getItems','item','trackChanges','init','always','sort','insertContent','listenTo','subType','markMultiRangeBlockFormat','suggestion-type','formatInline','updateSuggestion','locale','external:','removeMarkers','setSelection','multipleBlocks','refresh','editing','_joinSuggestions','track-changes-adapter-missing-getsuggestion','addMarker:suggestion','set','change:activeMarkers','markers','head','track-changes-suggestion-not-found','getSuggestionCallback','update:suggestion','moveTargetPosition','data','notReady','upcast','discard','stop','stopListening','accept','values','_refreshSuggestionsChain','reconvertMarker','rethrowUnexpectedError','fromCharCode','range','requires','remove','containsRange','getChanges','isInContent','applyOperation','getCustomProperty','assign','commentThread','rootName','formatInline:discard','newRange','push','get','parent','insertion:discard','getRanges','nodeAfter','change','_isForcedDefaultExecutionBlock','_removeSuggestion','catch','conversion','_commentsRepository','isIntersectingWithRange','attributes','rejected','from','deletion:accept','hasComments','suggestionChanged','toJSON','discardSelectedSuggestions','after','addComment','insertion:accept','detach','track-changes-user-not-found','$graveyard','author','resolve','track-changes-suggestion-data-mismatch','for','removeClass','getAllAdjacentSuggestions','markInlineFormat','_defaultCallbacks','before','nodeBefore','getFirstMarker','isAfter','markerName','editor','consume','insertion:','getWalker','next','markInsertion','_suggestions','_joinWithAdjacentSuggestions','elementStart','suggestionLoaded','isRemovable','insertion','formatBlock:chain','_suggestionState','oldRange','root','isEqual','error-saving-suggestion-data-suggestion-discarded','discardAllSuggestions','hasCommentThread','deletion:discard','skipNestingCheck','deletion:chain','forward','accepted','createElement','_isDataLoaded','_trackFormatChanges','originalSuggestionId','document','chain','_checkSuggestionCorrectness','_findSuggestions','trackChangesCommand','createPositionAt','splice','removed','_getAuthorFromId','formatBlock:join','isObject','_breakSuggestionMarker','filter','commands','documentSelection','isMultiRange','getSuggestions','multi','addMarker','createRangeIn','addHighlight','getSuggestion','isArray','fire','deleteContent','_rangeIsInLocalUserInsertion','unbind','dataDowncast','markMultiRangeDeletion','addUser','addSuggestionData','getIntersection','_createSuggestion','has','removeAttribute','start','value','isLimit','adapter'];(function(_0x35fd4e,_0x42c55c){const _0x17dd6a=function(_0x473391){while(--_0x473391){_0x35fd4e['push'](_0x35fd4e['shift']());}};_0x17dd6a(++_0x42c55c);}(_0x42c5,0x146));const _0x17dd=function(_0x35fd4e,_0x42c55c){_0x35fd4e=_0x35fd4e-0x0;let _0x17dd6a=_0x42c5[_0x35fd4e];return _0x17dd6a;};import{Plugin as _0x29a647,PendingActions as _0x2a1080}from'ckeditor5/src/core';import{LiveRange as _0x276727}from'ckeditor5/src/engine';import{CKEditorError as _0x13bd1d,uid as _0x434768,priorities as _0x55f837,logWarning as _0x1e7a6b}from'ckeditor5/src/utils';import{toWidget as _0x2f0234}from'ckeditor5/src/widget';import{Users as _0x3f939b,hashObject as _0x2020e9}from'ckeditor5-collaboration/src/collaboration-core';import _0x3b8642 from'./commands/trackchangescommand';import _0x3c897e from'./commands/acceptsuggestioncommand';import _0x42cce3 from'./commands/discardsuggestioncommand';import _0x441244 from'./commands/executeonallsuggestionscommand';import _0x1037f2 from'./commands/executeonselectedsuggestionscommand';import _0x5463d9 from'./suggestion';import _0x5c3eec from'./suggestiondescriptionfactory';import _0x2c3009 from'./integrations/alignment';import _0x283da0 from'./integrations/basicstyles';import _0x401eb5 from'./integrations/blockquote';import _0x5a0a6b from'./integrations/ckbox';import _0x310a55 from'./integrations/codeblock';import _0x5796b9 from'./integrations/comments';import _0x38a47a from'./integrations/deletecommand';import _0x415656 from'./integrations/documentlist';import _0x2951cd from'./integrations/entercommand';import _0x5bfdce from'./integrations/findandreplace';import _0x281dcc from'./integrations/font';import _0x589763 from'./integrations/formatpainter';import _0x4c23bf from'./integrations/heading';import _0x53b8d8 from'./integrations/highlight';import _0x257528 from'./integrations/horizontalline';import _0x5a2fb9 from'./integrations/htmlembed';import _0x5caea2 from'./integrations/image';import _0x57162f from'./integrations/imagereplace';import _0xc99eec from'./integrations/importword';import _0x5c6426 from'./integrations/indent';import _0x1fafe2 from'./integrations/inputcommand';import _0x2a9f8e from'./integrations/link';import _0x24922a from'./integrations/list';import _0xa7d515 from'./integrations/listproperties';import _0xe4d088 from'./integrations/mediaembed';import _0x1ebf3f from'./integrations/mention';import _0x3295b7 from'./integrations/pagebreak';import _0x583709 from'./integrations/paragraph';import _0x2f7b5b from'./integrations/removeformat';import _0x17fb98 from'./integrations/restrictededitingmode';import _0x3ddd24 from'./integrations/shiftentercommand';import _0x3de26c from'./integrations/standardeditingmode';import _0x47493e from'./integrations/style';import _0x15b373 from'./integrations/table';import _0x2b7db2 from'./integrations/tablemergesplit';import _0x2daff8 from'./integrations/tableheadings';import _0xa7fa3c from'./integrations/tableclipboard';import _0x657ca7 from'./integrations/tablecolumnresize';import _0x85eaea from'./integrations/template';import _0x4cd709 from'./integrations/tableofcontents';import _0x17d52c from'./integrations/title';import _0x995c78 from'./integrations/undo';import{getTranslation as _0x2f5d6f}from'./utils/common-translations';import _0x1864d5 from'./integrations/tablecaption';import _0x5d265d from'./integrations/documentlistproperties';import _0x54e42b from'./integrations/tableproperties';import{isEqual as _0x25a31b}from'lodash-es';export default class p extends _0x29a647{static get[_0x17dd('0xd0')](){return[_0x17dd('0x47'),_0x3f939b,_0x2a1080,_0x2c3009,_0x283da0,_0x401eb5,_0x5a0a6b,_0x310a55,_0x5796b9,_0x38a47a,_0x415656,_0x5d265d,_0x2951cd,_0x5bfdce,_0x281dcc,_0x589763,_0x4c23bf,_0x53b8d8,_0x257528,_0x5a2fb9,_0x5caea2,_0x57162f,_0xc99eec,_0x5c6426,_0x1fafe2,_0x2a9f8e,_0x24922a,_0xa7d515,_0xe4d088,_0x1ebf3f,_0x3295b7,_0x583709,_0x2f7b5b,_0x17fb98,_0x3ddd24,_0x3de26c,_0x47493e,_0x15b373,_0x2b7db2,_0x2daff8,_0x1864d5,_0xa7fa3c,_0x657ca7,_0x4cd709,_0x54e42b,_0x85eaea,_0x17d52c,_0x995c78];}static get['pluginName'](){return _0x17dd('0x1f');}constructor(_0x4199f3){function _0x57d7f7(_0x2a9416){return _0x2a9416[_0x17dd('0x3')](_0x17191f=>String[_0x17dd('0xce')](_0x17191f))[_0x17dd('0x44')]('');}super(_0x4199f3),this[_0x17dd('0xbb')](_0x17dd('0x8a'),[]),this['on'](_0x17dd('0xbc'),(_0x1d9d7d,_0x5e8f1b,_0x466fcb,_0x2aaf96)=>{this[_0x17dd('0x87')]['change'](()=>{for(const _0x4b718a of[..._0x2aaf96,..._0x466fcb])this[_0x17dd('0x87')][_0x17dd('0xbd')][_0x17dd('0x142')](_0x4b718a)&&_0x4199f3[_0x17dd('0xb7')][_0x17dd('0xcc')](_0x4b718a);});}),this['_descriptionFactory']=new _0x5c3eec(this['editor'][_0x17dd('0x9e')][_0x17dd('0x9a')],this[_0x17dd('0x104')][_0x17dd('0xb1')]),this[_0x17dd('0x4e')]=null,this[_0x17dd('0x70')]=new Dt(this[_0x17dd('0x104')]),this['_suggestions']=new Map(),this[_0x17dd('0xe7')]=_0x4199f3['plugins'][_0x17dd('0xdd')](_0x17dd('0x47')),this['_enabledCommands']=new Set(),this[_0x17dd('0x87')]=this[_0x17dd('0x104')][_0x17dd('0x9e')],this[_0x17dd('0x111')]=new WeakMap(),this[_0x17dd('0xe3')]=!0x1,_0x4199f3[_0x17dd('0x25')][_0x17dd('0x30')](_0x17dd('0x15'),'default'),this['_trackFormatChanges']=_0x4199f3[_0x17dd('0x25')][_0x17dd('0xdd')](_0x17dd('0x15')),_0x4199f3[_0x17dd('0x25')]['define'](_0x17dd('0x77'),!0x0),this[_0x17dd('0x50')]=_0x4199f3[_0x17dd('0x25')][_0x17dd('0xdd')]('trackChanges.mergeNestedSuggestions'),this[_0x17dd('0x125')]=new _0x3b8642(_0x4199f3,this['_enabledCommands']),this[_0x57d7f7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57d7f7([0x34,0x30,0x34,0x36,0x31,0x38,0x32,0x32]);}[_0x17dd('0xa7')](){const _0x549539=this['editor'];_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')]('editingDowncast')[_0x17dd('0xc')]({'model':_0x17dd('0x45'),'view':_0x1040a9=>{const {id:_0x99e15c,type:_0x45192c}=this[_0x17dd('0x34')](_0x1040a9[_0x17dd('0x103')]),_0x31ebbd=[_0x17dd('0x89'),_0x17dd('0x4')+_0x45192c];let _0x126bd1=0xbb8;return this[_0x17dd('0x8a')][_0x17dd('0x52')](_0x1040a9[_0x17dd('0x103')])&&(_0x31ebbd[_0x17dd('0xdc')](_0x17dd('0x53')),_0x126bd1=0xbc2),_0x17dd('0x35')==_0x45192c&&(_0x126bd1+=0x5),{'classes':_0x31ebbd,'attributes':{'data-suggestion':_0x99e15c},'priority':_0x126bd1};}}),_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0x13c'))[_0x17dd('0x3b')](_0x6aaea7=>{_0x6aaea7['on'](_0x17dd('0xba'),(_0x4c36c7,_0x3390f7,_0x506ed9)=>{if(!_0x506ed9[_0x17dd('0x71')][_0x17dd('0x5f')])return;const _0x353772=_0x3390f7[_0x17dd('0xa5')];if(!_0x353772)return;const _0x58e4e4=_0x506ed9[_0x17dd('0x20')]['toViewElement'](_0x353772);_0x549539[_0x17dd('0x9e')]['schema'][_0x17dd('0x12b')](_0x353772)&&_0x58e4e4&&!_0x58e4e4[_0x17dd('0xd6')](_0x17dd('0x91'))&&_0x58e4e4['is'](_0x17dd('0x33'))&&_0x2f0234(_0x58e4e4,_0x506ed9[_0x17dd('0x7')]);},{'priority':_0x17dd('0x6b')});}),_0x549539['conversion'][_0x17dd('0xfa')](_0x17dd('0x13c'))[_0x17dd('0xc')]({'model':_0x17dd('0x45'),'view':(_0x28748a,_0x4bffc4)=>{if(!_0x4bffc4[_0x17dd('0x71')][_0x17dd('0x5f')])return null;const {type:_0x5de629}=this['_splitMarkerName'](_0x28748a[_0x17dd('0x103')]);return{'classes':[_0x17dd('0x89'),_0x17dd('0x4')+_0x5de629],'priority':0xbb8};}});const _0x265dca=({showActiveMarkers:_0x1f89e8=!0x0}={})=>(_0x1b3cbd,_0xfa4a73,_0x5563bd)=>{if(!_0xfa4a73[_0x17dd('0xa5')])return;if(_0xfa4a73[_0x17dd('0xa5')]['is'](_0x17dd('0x94')))return void _0x5563bd[_0x17dd('0xa0')][_0x17dd('0x105')](_0xfa4a73[_0x17dd('0xa5')],_0x1b3cbd[_0x17dd('0x66')]);const _0x5ed083=_0x5563bd['mapper']['toViewElement'](_0xfa4a73['item']);if(!(_0xfa4a73[_0x17dd('0xa5')]['is'](_0x17dd('0x74'))&&_0x549539['model']['schema'][_0x17dd('0x14')](_0xfa4a73['item'])&&!_0x5ed083[_0x17dd('0xd6')](_0x17dd('0x135'))))return;const {id:_0xe61d92}=this['_splitMarkerName'](_0xfa4a73['markerName']);_0x5563bd[_0x17dd('0x7')]['addClass']([_0x17dd('0x89'),_0x17dd('0x42')],_0x5ed083),_0x5563bd['writer']['setAttribute'](_0x17dd('0x1b'),_0xe61d92,_0x5ed083),_0x5563bd['mapper']['bindElementToMarker'](_0x5ed083,_0xfa4a73[_0x17dd('0x103')]),_0x1f89e8&&(this[_0x17dd('0x8a')][_0x17dd('0x52')](_0xfa4a73[_0x17dd('0x103')])?_0x5563bd[_0x17dd('0x7')][_0x17dd('0x3f')](_0x17dd('0x53'),_0x5ed083):_0x5563bd[_0x17dd('0x7')][_0x17dd('0xfb')]('ck-suggestion-marker--active',_0x5ed083));for(const _0x352f61 of _0x549539[_0x17dd('0x9e')][_0x17dd('0x134')](_0xfa4a73[_0x17dd('0xa5')])[_0x17dd('0xa4')]())_0x5563bd[_0x17dd('0xa0')][_0x17dd('0x105')](_0x352f61,_0x1b3cbd['name']);_0x5563bd['consumable'][_0x17dd('0x105')](_0xfa4a73['item'],_0x1b3cbd['name']);};_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0x13c'))['add'](_0x11111b=>{_0x11111b['on'](_0x17dd('0x5a'),(_0x11f99b,_0x1c2f44,_0x3034ba)=>{_0x3034ba['options'][_0x17dd('0x5f')]&&_0x265dca({'showActiveMarkers':!0x1})(_0x11f99b,_0x1c2f44,_0x3034ba);},{'priority':_0x17dd('0x85')});}),_0x549539[_0x17dd('0xe6')]['for']('dataDowncast')['markerToData']({'model':_0x17dd('0x45'),'view':(_0x51429f,_0x31afea)=>_0x31afea[_0x17dd('0x71')][_0x17dd('0x5f')]?null:{'group':_0x17dd('0x45'),'name':_0x51429f[_0x17dd('0x18')](0xb)}}),_0x549539[_0x17dd('0xe6')]['for'](_0x17dd('0xc5'))['elementToElement']({'view':{'name':_0x17dd('0x45'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ac70a,{writer:_0x425a41})=>{let _0x5c43d8='suggestion:'+_0x4ac70a['getAttribute'](_0x17dd('0xae'))+':'+_0x4ac70a['getAttribute']('id');return _0x4ac70a[_0x17dd('0x7d')]('marker-count')&&(_0x5c43d8+=':'+_0x4ac70a[_0x17dd('0x7d')]('marker-count')),_0x425a41[_0x17dd('0x11d')](_0x17dd('0x22'),{'data-name':_0x5c43d8});}}),_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0xc5'))[_0x17dd('0x2e')]({'view':_0x17dd('0x45')}),_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0x37'))['add'](_0x385114=>{_0x385114['on']('addMarker:suggestion:formatBlock',_0x265dca(),{'priority':_0x17dd('0x6b')});}),_0x549539[_0x17dd('0xe6')]['for'](_0x17dd('0x37'))[_0x17dd('0x3b')](_0x3323ac=>{_0x3323ac['on']('removeMarker:suggestion:formatBlock',(_0xe3c7f2,_0x59bc7e,_0x1e7444)=>{const _0x5353a5=_0x1e7444[_0x17dd('0x20')][_0x17dd('0x8c')](_0x59bc7e[_0x17dd('0x103')]);if(_0x5353a5)for(const _0x2a753f of _0x5353a5)_0x2a753f[_0x17dd('0xd6')]('addHighlight')||(_0x1e7444[_0x17dd('0x7')][_0x17dd('0xfb')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x17dd('0x53')],_0x2a753f),_0x1e7444[_0x17dd('0x7')][_0x17dd('0x143')]('data-suggestion',_0x2a753f),_0x1e7444['mapper'][_0x17dd('0x60')](_0x2a753f,_0x59bc7e['markerName']));},{'priority':_0x17dd('0x6b')});}),_0x549539[_0x17dd('0x9e')][_0x17dd('0x121')][_0x17dd('0x56')](_0x499294=>{let _0x3d3f43=!0x1;const _0x47e2eb=Array[_0x17dd('0xeb')](_0x549539[_0x17dd('0x9e')][_0x17dd('0x121')]['differ'][_0x17dd('0x12')]()),_0xb71300=new Set();for(const {name:_0x430da8,data:_0x4b6d76}of _0x47e2eb){const {group:_0x48ae60,type:_0x2059ca,id:_0x4914e5}=this[_0x17dd('0x34')](_0x430da8);if(_0x17dd('0x45')!==_0x48ae60)continue;const _0x138917=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x4914e5);if(null!=_0x4b6d76['newRange']){_0x17dd('0xaf')==_0x2059ca&&(_0x3d3f43=_0x3d3f43||Mt(_0x4b6d76[_0x17dd('0xdb')],_0x430da8,_0x499294,_0x549539[_0x17dd('0x9e')][_0x17dd('0x9a')]));if(_0x4b6d76[_0x17dd('0xdb')][_0x17dd('0x4a')]||_0x17dd('0xf6')==_0x4b6d76[_0x17dd('0xdb')][_0x17dd('0x113')]['rootName']||_0x17dd('0x2f')==_0x2059ca&&!Nt(_0x4b6d76[_0x17dd('0xdb')])||_0x17dd('0x35')==_0x2059ca&&!(!_t(_0x59df13=_0x4b6d76[_0x17dd('0xdb')])&&!function(_0x8f852f){return _0x8f852f[_0x17dd('0x144')][_0x17dd('0xde')]==_0x8f852f[_0x17dd('0x6')]['nodeBefore']&&_0x8f852f['start'][_0x17dd('0x21')];}(_0x59df13)))_0x499294[_0x17dd('0x10')](_0x430da8),_0x3d3f43=!0x0;else{if(!_0x138917||!_0x138917['isInContent'])continue;_0xb71300['add'](_0x138917);}}}var _0x59df13;return _0xb71300['size']>0x0&&(_0x3d3f43=!!this[_0x17dd('0x10b')](_0xb71300)||_0x3d3f43),_0x3d3f43;}),_0x549539[_0x17dd('0x9e')]['document'][_0x17dd('0x56')](_0x4a3b29=>{let _0x421476=!0x1;for(const _0x54955e of _0x549539['model']['document'][_0x17dd('0x62')][_0x17dd('0xd3')]()){if(_0x17dd('0x2c')!=_0x54955e[_0x17dd('0xe')])continue;const _0x4e4ce3=_0x54955e[_0x17dd('0x19')][_0x17dd('0x39')](_0x54955e['length']);if(_0x4e4ce3[_0x17dd('0x21')])for(const _0xdda557 of this[_0x17dd('0x10a')][_0x17dd('0xca')]()){if(_0xdda557[_0x17dd('0x130')]||!_0xdda557[_0x17dd('0xd4')])continue;if(_0x17dd('0x2f')!=_0xdda557[_0x17dd('0xe')])continue;const _0x27d555=_0xdda557[_0x17dd('0x57')]();if(_0x27d555['start'][_0x17dd('0xde')]!=_0x27d555[_0x17dd('0x6')][_0x17dd('0xde')]&&_0x27d555[_0x17dd('0x6')][_0x17dd('0x114')](_0x54955e[_0x17dd('0x19')])){const _0x243bcf=_0x549539['model'][_0x17dd('0x59')](_0x27d555[_0x17dd('0x144')],_0x4e4ce3);_0x4a3b29['updateMarker'](_0xdda557[_0x17dd('0x101')](),{'range':_0x243bcf}),_0x421476=!0x0;}}}return _0x421476;}),_0x549539[_0x17dd('0x9e')]['markers']['on'](_0x17dd('0xc1'),(_0x2f24fc,_0x45951d,_0x7eccff)=>{if(null==_0x7eccff){const {id:_0x3d1d43}=this[_0x17dd('0x34')](_0x45951d[_0x17dd('0x66')]),_0x1d5a8c=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x3d1d43);_0x1d5a8c&&_0x1d5a8c[_0x17dd('0x40')](_0x45951d['name']);}}),_0x549539['model'][_0x17dd('0x121')]['on'](_0x17dd('0x64'),()=>{const _0xfc6c23=Array[_0x17dd('0xeb')](_0x549539[_0x17dd('0x9e')][_0x17dd('0x121')][_0x17dd('0x62')][_0x17dd('0x12')]())['filter'](_0x22b542=>_0x17dd('0x45')===this['_splitMarkerName'](_0x22b542[_0x17dd('0x66')])['group']);if(0x0===_0xfc6c23[_0x17dd('0x5d')])return;_0xfc6c23['sort']((_0x3965fe,_0x3e2017)=>{const _0x9c4b38=_0x3965fe[_0x17dd('0xc3')][_0x17dd('0x112')],_0x3a6444=_0x3e2017[_0x17dd('0xc3')][_0x17dd('0x112')];return null===_0x9c4b38&&null===_0x3a6444?0x0:null===_0x9c4b38&&null!==_0x3a6444?-0x1:null!==_0x9c4b38&&null===_0x3a6444?0x1:_0x9c4b38[_0x17dd('0x144')][_0x17dd('0x48')](_0x3a6444[_0x17dd('0x144')])?-0x1:0x1;});const _0x5ec734=new Set(),_0x276aa6=new Set();for(const {name:_0x244b1e,data:_0x4579db}of _0xfc6c23){const {id:_0x578d9a}=this['_splitMarkerName'](_0x244b1e);if(null===_0x4579db['oldRange']){const _0x52eb05=this[_0x17dd('0x9c')](_0x244b1e);_0x276aa6[_0x17dd('0x3b')](_0x52eb05);}else{const _0x19b656=this[_0x17dd('0x10a')]['get'](_0x578d9a);null!==_0x4579db[_0x17dd('0xdb')]||_0x19b656[_0x17dd('0xd4')]?(_0x5ec734[_0x17dd('0x3b')](_0x19b656[_0x17dd('0xbe')]),_0x276aa6[_0x17dd('0x3b')](_0x19b656)):this[_0x17dd('0xe4')](_0x19b656);}}_0x276aa6[_0x17dd('0x8f')]>0x0&&this[_0x17dd('0xcb')](_0x276aa6);for(const _0x4c593a of _0x5ec734)this['fire'](_0x17dd('0xee'),_0x4c593a);}),_0x549539['model']['on'](_0x17dd('0xd5'),(_0x3cf263,_0x4582e9)=>{const _0x35da08=_0x4582e9[0x0];if(!this['_suggestions']['size'])return;if(!_0x35da08['isDocumentOperation'])return;if(_0x35da08[_0x17dd('0x1e')][_0x17dd('0x1')]||!_0x35da08[_0x17dd('0x1e')][_0x17dd('0x7b')])return;let _0x29a6a6,_0x34502f;switch(_0x35da08[_0x17dd('0xe')]){case _0x17dd('0x2c'):_0x29a6a6=_0x549539[_0x17dd('0x9e')]['createPositionAt'](_0x35da08[_0x17dd('0x19')]),_0x34502f=_0x29a6a6['getShiftedBy'](_0x35da08[_0x17dd('0x95')]);break;case _0x17dd('0x9d'):_0x29a6a6=_0x549539[_0x17dd('0x9e')][_0x17dd('0x126')](_0x35da08[_0x17dd('0x9f')]),_0x34502f=_0x549539[_0x17dd('0x9e')][_0x17dd('0x126')](_0x35da08[_0x17dd('0xc2')]);break;case'move':_0x29a6a6=_0x549539['model'][_0x17dd('0x126')](_0x35da08['targetPosition']),_0x34502f=_0x29a6a6['getShiftedBy'](_0x35da08[_0x17dd('0x95')]);break;default:return;}const _0x507cf7=_0x549539[_0x17dd('0x9e')][_0x17dd('0x59')](_0x29a6a6,_0x34502f);_0x549539[_0x17dd('0x9e')][_0x17dd('0xe2')](()=>{for(const {suggestion:_0x4948c2,meta:_0x14b8e5}of this['_findSuggestions'](_0x507cf7)){if(_0x4948c2[_0x17dd('0x130')])continue;if(_0x17dd('0xaf')==_0x4948c2[_0x17dd('0xe')])continue;const _0x4b8d9f=_0x4948c2[_0x17dd('0xc3')]&&_0x4948c2[_0x17dd('0xc3')]['multipleBlocks'];('formatBlock'!=_0x4948c2['type']||_0x17dd('0x9d')==_0x35da08[_0x17dd('0xe')]&&!_0x4b8d9f)&&(_0x14b8e5[_0x17dd('0x36')]||_0x17dd('0x10f')==_0x4948c2[_0x17dd('0xe')]&&_0x14b8e5[_0x17dd('0x31')]||_0x4948c2[_0x17dd('0x57')]()['containsRange'](_0x507cf7)&&this[_0x17dd('0x12c')](_0x4948c2,_0x29a6a6,_0x34502f));}});},{'priority':_0x17dd('0x4b')}),_0x549539[_0x17dd('0x9e')]['on'](_0x17dd('0x139'),(_0x2c897e,_0x7920c0)=>{const _0x24b070=_0x7920c0[0x0],_0x444156=_0x7920c0[0x1];if(_0x444156&&_0x444156[_0x17dd('0xa1')])return;if(this[_0x17dd('0xe3')])return;if(!this[_0x17dd('0x125')]['value'])return;if(_0x24b070['isCollapsed'])return;const _0x5dbd0f=_0x549539['model'][_0x17dd('0x9a')],{start:_0x48a5ef,end:_0x46e1d0}=_0x24b070[_0x17dd('0x57')](),_0x2b9e3f=_0x48a5ef[_0x17dd('0xe1')]&&_0x5dbd0f[_0x17dd('0x146')](_0x48a5ef[_0x17dd('0xe1')])?null:_0x5dbd0f['getNearestSelectionRange'](_0x48a5ef,_0x17dd('0x11b')),_0x333601=_0x46e1d0['nodeBefore']&&_0x5dbd0f[_0x17dd('0x146')](_0x46e1d0[_0x17dd('0x100')])?null:_0x5dbd0f['getNearestSelectionRange'](_0x46e1d0,_0x17dd('0x16')),_0x47b46d=_0x549539['model']['createRange'](_0x2b9e3f?_0x2b9e3f[_0x17dd('0x144')]:_0x48a5ef,_0x333601?_0x333601[_0x17dd('0x6')]:_0x46e1d0);_0x549539[_0x17dd('0x9e')]['change'](_0x1f05dc=>{this[_0x17dd('0x11')](_0x47b46d);const _0x286736=_0x549539[_0x17dd('0x9e')]['schema']['getNearestSelectionRange'](_0x47b46d[_0x17dd('0x144')]);_0x24b070['is'](_0x17dd('0x12f'))?_0x1f05dc['setSelection'](_0x286736):_0x24b070['setTo'](_0x286736);}),_0x2c897e[_0x17dd('0xc7')]();},{'priority':_0x55f837[_0x17dd('0x2b')]+0xa}),_0x549539[_0x17dd('0x9e')]['on'](_0x17dd('0xaa'),(_0x21ba89,_0x681e8f)=>{const _0xdb5f76=_0x681e8f[_0x681e8f['length']-0x1];_0xdb5f76&&_0xdb5f76[_0x17dd('0xa1')]||this[_0x17dd('0xe3')]||this[_0x17dd('0x125')][_0x17dd('0x145')]&&(_0x549539[_0x17dd('0x9e')][_0x17dd('0xe2')](()=>{let _0x47ed7a=_0x549539[_0x17dd('0x9e')][_0x17dd('0xaa')](_0x681e8f[0x0],_0x681e8f[0x1],_0x681e8f[0x2],{'forceDefaultExecution':!0x0});if(!_0x47ed7a)return;_0x21ba89[_0x17dd('0x46')]=_0x47ed7a[_0x17dd('0x24')]();const _0x1e19ff=_0x47ed7a[_0x17dd('0x6')]['nodeBefore'],_0x22bb27=_0x549539[_0x17dd('0x9e')][_0x17dd('0x9a')];_0x1e19ff&&_0x22bb27[_0x17dd('0x14')](_0x1e19ff)&&!_0x22bb27[_0x17dd('0x12b')](_0x1e19ff)&&(_0x47ed7a=_0x549539[_0x17dd('0x9e')][_0x17dd('0x59')](_0x47ed7a['start'],_0x549539[_0x17dd('0x9e')][_0x17dd('0x126')](_0x1e19ff,_0x17dd('0x6')))),this[_0x17dd('0x109')](_0x47ed7a);}),_0x21ba89[_0x17dd('0xc7')]());},{'priority':_0x17dd('0x6b')}),this[_0x17dd('0x104')][_0x17dd('0x12e')]['add'](_0x17dd('0xa6'),this[_0x17dd('0x125')]),this[_0x17dd('0x1d')](_0x17dd('0xa6'));const _0x1d6c2d=new _0x3c897e(_0x549539,this[_0x17dd('0x10a')]);_0x549539['commands'][_0x17dd('0x3b')](_0x17dd('0x26'),_0x1d6c2d),this[_0x17dd('0x1d')](_0x17dd('0x26'));const _0x2527a7=new _0x42cce3(_0x549539,this[_0x17dd('0x10a')]);_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0x23'),_0x2527a7),this[_0x17dd('0x1d')](_0x17dd('0x23')),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0xd'),new _0x441244(_0x549539,_0x1d6c2d,this['_suggestions'])),this[_0x17dd('0x1d')]('acceptAllSuggestions'),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0x116'),new _0x441244(_0x549539,_0x2527a7,this[_0x17dd('0x10a')])),this[_0x17dd('0x1d')](_0x17dd('0x116')),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0xa'),new _0x1037f2(_0x549539,_0x1d6c2d,this[_0x17dd('0x10a')])),this['enableCommand']('acceptSelectedSuggestions'),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0xf0'),new _0x1037f2(_0x549539,_0x2527a7,this[_0x17dd('0x10a')])),this[_0x17dd('0x1d')](_0x17dd('0xf0'));const _0xd30204=_0x549539[_0x17dd('0x67')][_0x17dd('0xdd')](_0x17dd('0x47'));this['listenTo'](_0xd30204,_0x17dd('0xf2'),(_0x5435d6,{threadId:_0x11864b})=>{const _0x231672=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x11864b);_0x231672&&_0x231672[_0x17dd('0xd8')]&&0x1===_0x231672['commentThread'][_0x17dd('0x5d')]&&this[_0x17dd('0x6c')](_0x11864b,{'hasComments':!0x0});},{'priority':_0x17dd('0x51')}),this[_0x17dd('0xab')](_0xd30204,'removeComment',(_0x4e890f,{threadId:_0x3f638e})=>{const _0x44cea2=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x3f638e);_0x44cea2&&_0x44cea2[_0x17dd('0xd8')]&&!_0x44cea2['commentThread'][_0x17dd('0x5d')]&&this[_0x17dd('0x6c')](_0x3f638e,{'hasComments':!0x1});},{'priority':_0x17dd('0x51')});}set[_0x17dd('0x0')](_0x50adb8){if(this['_adapter'])throw new _0x13bd1d('track-changes-adapter-already-set',this);this[_0x17dd('0x4e')]=_0x50adb8;}get[_0x17dd('0x0')](){return this[_0x17dd('0x4e')];}['getSuggestions']({skipNotAttached:_0x3faa6e=!0x1,toJSON:_0x369481=!0x1}={}){const _0xba8239=[];for(const _0x10db7b of this['_suggestions'][_0x17dd('0xca')]())_0x3faa6e&&!_0x10db7b[_0x17dd('0xd4')]||_0xba8239['push'](_0x10db7b);return _0x369481?_0xba8239[_0x17dd('0x3')](_0x456027=>_0x456027[_0x17dd('0xef')]()):_0xba8239;}[_0x17dd('0x136')](_0x2a3579){const _0x2e6853=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x2a3579);if(!_0x2e6853)throw new _0x13bd1d(_0x17dd('0xbf'),this);return _0x2e6853;}['hasSuggestion'](_0x3675fc){return this[_0x17dd('0x10a')][_0x17dd('0x142')](_0x3675fc);}['addSuggestionData'](_0xd8cdfa){const {authorId:_0x24b92c,id:_0x2e5508,attributes:_0x39ae8c}=_0xd8cdfa,[_0x43bacf,_0x534451]=_0xd8cdfa[_0x17dd('0xe')][_0x17dd('0x9d')](':'),_0x5117fa=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x2e5508)||this['_createSuggestion'](_0x43bacf,_0x534451,_0x2e5508,_0x24b92c,_0x39ae8c);if(this[_0x17dd('0x65')](_0x5117fa),this[_0x17dd('0x123')](_0x5117fa,_0x43bacf,_0x534451||null,_0x24b92c),_0x5117fa[_0x17dd('0x69')]=_0xd8cdfa[_0x17dd('0x69')],_0x5117fa[_0x17dd('0x11e')]=!0x0,_0x39ae8c&&_0x39ae8c[_0x17dd('0x6e')]){const _0x42d1a2=_0x39ae8c[_0x17dd('0x6e')],_0x3c8924=this[_0x17dd('0x3c')](_0x42d1a2[_0x17dd('0x86')]);_0x5117fa['authoredAt']=_0x42d1a2[_0x17dd('0x69')],_0x5117fa[_0x17dd('0xf7')]=_0x3c8924,_0x5117fa[_0x17dd('0x49')]=!0x0;}else _0x5117fa[_0x17dd('0x17')]=_0xd8cdfa[_0x17dd('0x69')];switch(_0xd8cdfa[_0x17dd('0xc3')]&&(_0x5117fa[_0x17dd('0xc3')]=_0xd8cdfa[_0x17dd('0xc3')]),_0xd8cdfa['attributes']&&(_0x5117fa[_0x17dd('0xe9')]=_0xd8cdfa[_0x17dd('0xe9')]),this[_0x17dd('0x4e')]&&this[_0x17dd('0x4e')]['addSuggestion']||(_0x5117fa[_0x17dd('0x9b')]=!0x0),this[_0x17dd('0x111')][_0x17dd('0xdd')](_0x5117fa)){case _0x17dd('0xc4'):this['_suggestionState'][_0x17dd('0xbb')](_0x5117fa,_0x17dd('0x5c'));break;case _0x17dd('0x38'):_0x5117fa['isInContent']?(this[_0x17dd('0xcb')](new Set([_0x5117fa])),this[_0x17dd('0x10b')](new Set([_0x5117fa])),this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x5117fa,_0x17dd('0x5e')),this[_0x17dd('0x138')](_0x17dd('0x10d'),_0x5117fa)):this[_0x17dd('0x111')]['set'](_0x5117fa,'removed');}return _0x5117fa;}[_0x17dd('0x26')](_0x28251c){this['forceDefaultExecution'](()=>{this[_0x17dd('0x104')][_0x17dd('0x9e')][_0x17dd('0xe2')](()=>{for(const _0x187866 of _0x28251c[_0x17dd('0xfc')]())_0x187866[_0x17dd('0xc9')]();});});}['discardSuggestion'](_0x439909){this[_0x17dd('0xa1')](()=>{this[_0x17dd('0x104')]['model'][_0x17dd('0xe2')](()=>{for(const _0x4d3a1a of _0x439909[_0x17dd('0xfc')]())_0x4d3a1a['discard']();});});}[_0x17dd('0x1d')](_0x36c27a,_0x4b9ec7){const _0x4fd913=this[_0x17dd('0x104')][_0x17dd('0x12e')][_0x17dd('0xdd')](_0x36c27a);if(!_0x4fd913)throw new _0x13bd1d(_0x17dd('0x78'),this,{'commandName':_0x36c27a});this[_0x17dd('0x2')]['add'](_0x4fd913),_0x4b9ec7&&_0x4fd913['on']('execute',(_0x330603,_0x409010)=>{this['trackChangesCommand']['value']&&(this[_0x17dd('0xe3')]||_0x409010['length']>0x0&&_0x409010[_0x409010[_0x17dd('0x5d')]-0x1]&&_0x409010[_0x409010[_0x17dd('0x5d')]-0x1][_0x17dd('0xa1')]||(_0x4b9ec7((..._0x1840f1)=>_0x4fd913[_0x17dd('0x9')](..._0x1840f1,{'forceDefaultExecution':!0x0}),..._0x409010),_0x330603[_0x17dd('0xc7')]()));},{'priority':_0x17dd('0x6b')});}['forceDefaultExecution'](_0x4364af){let _0x52b78d,_0x5c843e;const _0x16008f=this[_0x17dd('0xe3')];this[_0x17dd('0xe3')]=!0x0;try{_0x52b78d=_0x4364af();}catch(_0x433ac6){_0x5c843e=_0x433ac6;}return _0x16008f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5c843e&&_0x13bd1d[_0x17dd('0xcd')](_0x5c843e,this),_0x52b78d;}[_0x17dd('0x109')](_0xbebce2,_0x472a35=null,_0x7dba93={}){if(_0xbebce2['isCollapsed'])return null;const _0x11219a=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'];for(const {suggestion:_0x2e876d,meta:_0x55c6d7}of this['_findSuggestions'](_0xbebce2,_0x17dd('0x10f')))if(_0x55c6d7['isOwn']){if(!_0x55c6d7[_0x17dd('0x6a')]){if(_0x55c6d7[_0x17dd('0x36')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x2e876d,_0x7dba93))continue;return _0x2e876d;}if(Ut(_0x2e876d,_0x7dba93))return _0x2e876d;this[_0x17dd('0x12c')](_0x2e876d,_0xbebce2[_0x17dd('0x144')],_0xbebce2[_0x17dd('0x6')]);break;}if(_0x472a35==_0x2e876d['subType']&&Ut(_0x2e876d,_0x7dba93)){const _0x41e383=_0x2e876d[_0x17dd('0x57')]();return _0x41e383[_0x17dd('0x144')]['isEqual'](_0xbebce2['end'])?this[_0x17dd('0x80')](_0x2e876d,this['_model'][_0x17dd('0x59')](_0xbebce2[_0x17dd('0x144')],_0x41e383[_0x17dd('0x6')])):this[_0x17dd('0x80')](_0x2e876d,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x41e383[_0x17dd('0x144')],_0xbebce2['end'])),_0x2e876d;}}const _0x57f92a=_0x434768(),_0x1b7aa3=_0x11219a['id'],_0x3f3951=_0x472a35?_0x17dd('0x106')+_0x472a35:'insertion',_0x369c7c=this['_setSuggestionData']({'id':_0x57f92a,'type':_0x3f3951,'createdAt':new Date(),'authorId':_0x1b7aa3,'attributes':_0x7dba93});return this[_0x17dd('0x8e')](_0x3f3951,_0x57f92a,_0x1b7aa3,_0xbebce2),_0x369c7c;}['markMultiRangeInsertion'](_0x4ede5c,_0x35af59=_0x17dd('0x132'),_0x3346f0={}){const _0x4d1a03=this[_0x17dd('0x104')][_0x17dd('0x67')]['get'](_0x17dd('0x7e'))['me'],_0x270a2d=this[_0x17dd('0x70')]['getSuggestionCallback'](_0x17dd('0x10f'),_0x35af59,_0x17dd('0x44'));for(const _0x26e58c of this[_0x17dd('0x131')]())if(_0x26e58c[_0x17dd('0xf7')]['id']==_0x4d1a03['id']&&_0x17dd('0x10f')==_0x26e58c['type']&&_0x26e58c[_0x17dd('0xac')]==_0x35af59&&Ut(_0x26e58c,_0x3346f0)&&(_0x270a2d(_0x26e58c[_0x17dd('0xe0')](),_0x4ede5c)||_0x270a2d(_0x4ede5c,_0x26e58c[_0x17dd('0xe0')]()))){for(const _0x4ef868 of _0x4ede5c)_0x26e58c['addRange'](_0x4ef868);return _0x26e58c;}for(const {suggestion:_0x3bfec9,meta:_0x4d8508}of this[_0x17dd('0x124')](_0x4ede5c,_0x17dd('0x10f'))){if(!_0x4d8508['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4d8508[_0x17dd('0x36')])continue;if(!Ut(_0x3bfec9,_0x3346f0))continue;let _0x2129db=!0x0;for(const _0x1700fc of _0x3bfec9[_0x17dd('0xe0')]())for(const _0x2df4ee of _0x4ede5c)if(!_0x1700fc[_0x17dd('0xd2')](_0x2df4ee)){_0x2129db=!0x1;break;}if(_0x2129db)return _0x3bfec9;}const _0x241682=_0x434768(),_0x20e303=_0x4d1a03['id'],_0x28c00f=_0x17dd('0x106')+_0x35af59,_0x563284=this[_0x17dd('0x13')]({'id':_0x241682,'type':_0x28c00f,'createdAt':new Date(),'authorId':_0x20e303,'attributes':_0x3346f0});for(const _0x5123b8 of _0x4ede5c)this[_0x17dd('0x8e')](_0x28c00f,_0x241682,_0x20e303,_0x5123b8,_0x5463d9[_0x17dd('0x7c')]());return _0x563284;}[_0x17dd('0xfd')](_0x5f5a63,_0x131854,_0x312b7b=null,_0x20c412={}){if(_0x312b7b=_0x312b7b||$t(_0x131854),_0x5f5a63['isCollapsed'])return null;if('never'===this[_0x17dd('0x11f')]){const _0x47810e=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0xaf'),_0x312b7b,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x47810e([_0x5f5a63],_0x131854,_0x20c412)),null;}const _0x3dc8fb=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')](_0x17dd('0x7e'))['me'],_0x18e033=[];if('always'!==this[_0x17dd('0x11f')])for(const {suggestion:_0x4bb22e,meta:_0x2b8ccd}of this[_0x17dd('0x124')](_0x5f5a63,_0x17dd('0x10f')))_0x2b8ccd[_0x17dd('0x31')]&&!_0x2b8ccd[_0x17dd('0x3a')]&&_0x18e033[_0x17dd('0xdc')](..._0x4bb22e[_0x17dd('0xe0')]());const _0x38d4a1=function(_0x1eaf64,_0x5a8212){const _0x117778=[];for(const _0x3cc7de of _0x5a8212){const _0x508bf2=_0x1eaf64[_0x17dd('0x140')](_0x3cc7de);_0x508bf2&&_0x117778[_0x17dd('0xdc')](_0x508bf2);}return _0x117778;}(_0x5f5a63,_0x18e033),_0x2e1183=function(_0x2f1465,_0xee0097){const _0x58c67d=[_0x2f1465];for(const _0x1ba951 of _0xee0097){let _0x4f5ad1=0x0;for(;_0x4f5ad1<_0x58c67d['length'];){const _0x16011f=_0x58c67d[_0x4f5ad1][_0x17dd('0x4c')](_0x1ba951);_0x58c67d[_0x17dd('0x127')](_0x4f5ad1,0x1,..._0x16011f),_0x4f5ad1+=_0x16011f[_0x17dd('0x5d')];}}return _0x58c67d;}(_0x5f5a63,_0x18e033);_0x38d4a1[_0x17dd('0x5d')]&&this['_model'][_0x17dd('0xe2')](()=>{for(const _0x3a4eed of _0x38d4a1){const _0x55e1ed=this[_0x17dd('0x70')][_0x17dd('0xc0')]('formatInline',_0x312b7b,'accept');this['forceDefaultExecution'](()=>_0x55e1ed([_0x3a4eed],_0x131854,_0x20c412));}});for(const _0x42d5d8 of _0x2e1183){let _0x1cc46f=null,_0x458fd6=_0x42d5d8[_0x17dd('0x144')],_0x1c716e=_0x42d5d8[_0x17dd('0x6')];for(const {suggestion:_0x367ef5,meta:_0x2ce47}of this['_findSuggestions'](_0x42d5d8,_0x17dd('0xaf'))){if(!_0x2ce47['isOwn'])continue;if(_0x367ef5[_0x17dd('0xac')]!=_0x312b7b)continue;if(!Ut(_0x367ef5,_0x20c412))continue;const _0x535d97=_0x367ef5['getFirstRange']();if(_0x535d97['containsRange'](_0x42d5d8,!0x0))return null;_0x458fd6=_0x458fd6[_0x17dd('0x48')](_0x535d97[_0x17dd('0x144')])?_0x458fd6:_0x535d97[_0x17dd('0x144')],_0x1c716e=_0x1c716e['isAfter'](_0x535d97[_0x17dd('0x6')])?_0x1c716e:_0x535d97[_0x17dd('0x6')],_0x1cc46f?_0x535d97[_0x17dd('0x144')]['isBefore'](_0x1cc46f[_0x17dd('0x57')]()[_0x17dd('0x144')])?(_0x1cc46f[_0x17dd('0xb3')](),_0x1cc46f=_0x367ef5):_0x367ef5[_0x17dd('0xb3')]():_0x1cc46f=_0x367ef5;}const _0x3a27fd=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x458fd6,_0x1c716e);if(_0x1cc46f)this[_0x17dd('0x80')](_0x1cc46f,_0x3a27fd);else{const _0x37ecfd=_0x434768(),_0x16289a=_0x3dc8fb['id'];this[_0x17dd('0x13')]({'id':_0x37ecfd,'type':'formatInline:'+_0x312b7b,'data':_0x131854,'createdAt':new Date(),'authorId':_0x16289a,'attributes':_0x20c412}),this[_0x17dd('0x8e')]('formatInline:'+_0x312b7b,_0x37ecfd,_0x16289a,_0x3a27fd);}}return null;}[_0x17dd('0x7a')](_0x4cf6d0,_0x1203ad,_0x1a27b1=[],_0xda204e=null,_0x8866b8={}){_0x1203ad['formatGroupId']||(_0x1203ad[_0x17dd('0x73')]=_0x1203ad[_0x17dd('0x8b')]),_0x1203ad[_0x17dd('0xb5')]=_0x4cf6d0['is'](_0x17dd('0xcf')),_0xda204e=_0xda204e||$t(_0x1203ad);const _0x55c229=_0x1a27b1[_0x17dd('0x3')](_0x28d3d2=>Rt(_0x28d3d2,this[_0x17dd('0x87')])),_0x5bbb69=_0x4cf6d0['is'](_0x17dd('0xcf'))?_0x4cf6d0:Rt(_0x4cf6d0,this[_0x17dd('0x87')]);if(_0x17dd('0x4f')===this[_0x17dd('0x11f')]){const _0x2e62fe=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x2f'),_0xda204e,'accept');return this[_0x17dd('0xa1')](()=>_0x2e62fe([_0x5bbb69],_0x1203ad,_0x8866b8)),null;}_0x55c229['push'](_0x5bbb69);let _0x3f7acc=!0x0;for(const _0x2d6249 of _0x55c229)if(!this[_0x17dd('0x13a')](_0x2d6249)){_0x3f7acc=!0x1;break;}if(_0x3f7acc&&_0x17dd('0xa8')!==this[_0x17dd('0x11f')]){const _0x437d2f=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x2f'),_0xda204e,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x437d2f([_0x5bbb69],_0x1203ad,_0x8866b8)),null;}let _0x23dcc6=null,_0x489591=_0x5bbb69['start'],_0x5ee15c=_0x5bbb69[_0x17dd('0x6')];for(const {suggestion:_0x310dd3,meta:_0x22336f}of this[_0x17dd('0x124')](_0x5bbb69,_0x17dd('0x2f'))){if(!_0x22336f[_0x17dd('0x31')])continue;if(_0x22336f['isNextTo']||_0x22336f[_0x17dd('0x36')]||_0x22336f['isInsideObject'])continue;if(_0x310dd3[_0x17dd('0xc3')][_0x17dd('0x73')]!=_0x1203ad['formatGroupId'])continue;if(!Ut(_0x310dd3,_0x8866b8))continue;const _0x21bd71=_0x310dd3['getFirstRange']();if(_0x310dd3['subType']==_0xda204e){if(_0x21bd71['containsRange'](_0x5bbb69,!0x0))return null;_0x489591=_0x489591[_0x17dd('0x48')](_0x21bd71[_0x17dd('0x144')])?_0x489591:_0x21bd71[_0x17dd('0x144')],_0x5ee15c=_0x5ee15c[_0x17dd('0x102')](_0x21bd71[_0x17dd('0x6')])?_0x5ee15c:_0x21bd71[_0x17dd('0x6')],_0x23dcc6?_0x21bd71['start'][_0x17dd('0x48')](_0x23dcc6[_0x17dd('0x57')]()[_0x17dd('0x144')])?(_0x23dcc6['removeMarkers'](),_0x23dcc6=_0x310dd3):_0x310dd3[_0x17dd('0xb3')]():_0x23dcc6=_0x310dd3;}else{const _0x33c95=_0x5bbb69[_0x17dd('0x140')](_0x21bd71);this[_0x17dd('0xf')](_0x310dd3,_0x33c95);}}const _0x51404e=this[_0x17dd('0x104')]['plugins'][_0x17dd('0xdd')](_0x17dd('0x7e'))['me'],_0x56a96b=_0x434768(),_0x6f6a2c=_0x51404e['id'];if(_0x23dcc6)return this['_setSuggestionRange'](_0x23dcc6,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x489591,_0x5ee15c)),_0x23dcc6;{const _0x28a5b0=this[_0x17dd('0x13')]({'id':_0x56a96b,'type':'formatBlock:'+_0xda204e,'data':_0x1203ad,'createdAt':new Date(),'authorId':_0x6f6a2c,'attributes':_0x8866b8});return this['_addSuggestionMarker'](_0x17dd('0x79')+_0xda204e,_0x56a96b,_0x6f6a2c,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x489591,_0x5ee15c)),_0x28a5b0;}}[_0x17dd('0xad')](_0x147db1,_0x3cb8a6,_0xf6ae91=[],_0x25e060=null,_0x85aa8e={}){_0x3cb8a6[_0x17dd('0x73')]||(_0x3cb8a6[_0x17dd('0x73')]=_0x3cb8a6[_0x17dd('0x8b')]);const _0x38bfcf=_0x147db1[0x0];_0x3cb8a6[_0x17dd('0xb5')]=_0x38bfcf['is'](_0x17dd('0xcf')),_0x25e060=_0x25e060||$t(_0x3cb8a6);const _0x551dbe=_0xf6ae91[_0x17dd('0x3')](_0x4dbf13=>Rt(_0x4dbf13,this[_0x17dd('0x87')])),_0x2ec959=_0x38bfcf['is'](_0x17dd('0xcf'))?_0x147db1:_0x147db1[_0x17dd('0x3')](_0x5210f0=>Rt(_0x5210f0,this[_0x17dd('0x87')]));if(_0x17dd('0x4f')===this[_0x17dd('0x11f')]){const _0x49dbf2=this[_0x17dd('0x70')]['getSuggestionCallback']('formatBlock',_0x25e060,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x49dbf2(_0x2ec959,_0x3cb8a6,_0x85aa8e)),null;}_0x551dbe['push'](..._0x2ec959);let _0x3c09bb=!0x0;for(const _0x4e26ff of _0x551dbe)if(!this['_rangeIsInLocalUserInsertion'](_0x4e26ff)){_0x3c09bb=!0x1;break;}if(_0x3c09bb&&'always'!==this[_0x17dd('0x11f')]){const _0x1eb7d9=this['_suggestionFactory'][_0x17dd('0xc0')](_0x17dd('0x2f'),_0x25e060,_0x17dd('0xc9'));return this['forceDefaultExecution'](()=>_0x1eb7d9(_0x2ec959,_0x3cb8a6,_0x85aa8e)),null;}const _0x4cdddc=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'];for(const _0x1495af of this[_0x17dd('0x131')]()){if(_0x1495af[_0x17dd('0xf7')]['id']!=_0x4cdddc['id'])continue;if('formatBlock'!=_0x1495af['type']||_0x1495af['data'][_0x17dd('0x73')]!=_0x3cb8a6[_0x17dd('0x73')])continue;if(!Ut(_0x1495af,_0x85aa8e))continue;const _0x113773=_0x1495af['subType']==_0x25e060;for(let _0x148027=0x0;_0x148027<_0x2ec959[_0x17dd('0x5d')];_0x148027++){const _0x536c70=_0x2ec959[_0x148027];for(const _0x3449dc of _0x1495af[_0x17dd('0x84')]()){const _0x1a2414=_0x3449dc[_0x17dd('0x2a')]();if(_0x536c70[_0x17dd('0x114')](_0x1a2414)){_0x113773?(_0x2ec959['splice'](_0x148027,0x1),_0x148027--):_0x1495af[_0x17dd('0x10')](_0x3449dc[_0x17dd('0x66')]);break;}}}}if(0x0==_0x2ec959[_0x17dd('0x5d')])return null;const _0x1fbca8=this['_suggestionFactory'][_0x17dd('0xc0')](_0x17dd('0x2f'),_0x25e060,_0x17dd('0x44'));for(const _0x52b91f of this[_0x17dd('0x131')]())if(_0x52b91f[_0x17dd('0xf7')]['id']==_0x4cdddc['id']&&_0x17dd('0x2f')==_0x52b91f[_0x17dd('0xe')]&&_0x52b91f[_0x17dd('0xc3')][_0x17dd('0x73')]==_0x3cb8a6['formatGroupId']&&_0x52b91f[_0x17dd('0xac')]==_0x25e060&&Ut(_0x52b91f,_0x85aa8e)&&(_0x1fbca8(_0x52b91f[_0x17dd('0xe0')](),_0x2ec959)||_0x1fbca8(_0x2ec959,_0x52b91f[_0x17dd('0xe0')]()))){for(const _0x5f5cda of _0x2ec959)_0x52b91f['addRange'](_0x5f5cda);return _0x52b91f;}const _0x3783ce=_0x434768(),_0x54cd71=_0x4cdddc['id'],_0x5215b0='formatBlock:'+_0x25e060,_0x26493e=this[_0x17dd('0x13')]({'id':_0x3783ce,'type':_0x5215b0,'data':_0x3cb8a6,'createdAt':new Date(),'authorId':_0x54cd71,'attributes':_0x85aa8e});for(const _0x43c0af of _0x2ec959)this['_addSuggestionMarker'](_0x5215b0,_0x3783ce,_0x54cd71,_0x43c0af,_0x5463d9[_0x17dd('0x7c')]());return _0x26493e;}[_0x17dd('0x11')](_0x56123d,_0x51afeb=null,_0x160a34={}){if(_0x56123d['isCollapsed'])return null;const _0x678f40=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'],_0x5b9e13=new _0x276727(_0x56123d['start'],_0x56123d[_0x17dd('0x6')]);for(const {suggestion:_0x777184,meta:_0x3525ef}of this[_0x17dd('0x124')](_0x5b9e13,_0x17dd('0x10f')))if(_0x3525ef[_0x17dd('0x31')]&&!_0x3525ef[_0x17dd('0x6a')]){if(_0x777184[_0x17dd('0x130')]){const _0xf61dac=_0x777184[_0x17dd('0xe0')]()[_0x17dd('0x12d')](_0x143ae4=>'$graveyard'!=_0x143ae4[_0x17dd('0x113')][_0x17dd('0xd9')]);_0xf61dac[_0x17dd('0x61')](_0x39ad05=>_0x5b9e13['containsRange'](_0x39ad05,!0x0))&&_0x777184[_0x17dd('0xc6')]();if(_0xf61dac['some'](_0x4a45e8=>_0x4a45e8[_0x17dd('0xd2')](_0x5b9e13,!0x0))){const _0x2dc14d=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x35'),_0x51afeb,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x2dc14d([_0x5b9e13],null,_0x160a34)),null;}}else{const _0x8dc4b9=_0x5b9e13[_0x17dd('0x140')](_0x777184[_0x17dd('0x57')]());null!==_0x8dc4b9&&_0x777184[_0x17dd('0x8d')]([_0x8dc4b9],null,_0x160a34);}}if(_0x5b9e13[_0x17dd('0xf4')](),_0x5b9e13[_0x17dd('0x4a')]||_0x17dd('0xf6')==_0x5b9e13['root']['rootName'])return null;let _0x2395e3=null,_0x337980=_0x5b9e13[_0x17dd('0x144')],_0x3aef40=_0x5b9e13[_0x17dd('0x6')];const _0x59fce8=this[_0x17dd('0x124')](_0x5b9e13,_0x17dd('0x35'));for(const {suggestion:_0x528a78,meta:_0x6be25d}of _0x59fce8){const _0x191b78=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x337980,_0x3aef40);if(_0x6be25d[_0x17dd('0x31')]&&(this['_mergeNestedSuggestions']||!_0x6be25d['containsRangeInObject']&&!_0x6be25d['isInsideObject'])){if(_0x528a78['isMultiRange']){if(!Ut(_0x528a78,_0x160a34))continue;let _0x5ef061=!0x0;for(const _0x3b1522 of _0x528a78[_0x17dd('0xe0')]()){if(_0x3b1522[_0x17dd('0xd2')](_0x191b78,!0x0))return _0x528a78;_0x191b78[_0x17dd('0xd2')](_0x3b1522)||(_0x5ef061=!0x1);}_0x5ef061&&_0x528a78['discard']();}else{const _0x44d3d2=_0x528a78['getFirstRange']();if(_0x44d3d2['containsRange'](_0x191b78,!0x0))return _0x528a78;if(!Ut(_0x528a78,_0x160a34)){_0x191b78[_0x17dd('0xd2')](_0x44d3d2)?_0x528a78['removeMarkers']():_0x44d3d2[_0x17dd('0x6d')](_0x337980)?_0x337980=_0x44d3d2[_0x17dd('0x6')]:_0x44d3d2[_0x17dd('0x6d')](_0x3aef40)&&(_0x3aef40=_0x44d3d2['start']);continue;}_0x337980=_0x337980[_0x17dd('0x48')](_0x44d3d2[_0x17dd('0x144')])?_0x337980:_0x44d3d2['start'],_0x3aef40=_0x3aef40['isAfter'](_0x44d3d2[_0x17dd('0x6')])?_0x3aef40:_0x44d3d2[_0x17dd('0x6')],_0x160a34=Object[_0x17dd('0xd7')]({},_0x528a78[_0x17dd('0xe9')]),_0x2395e3?_0x44d3d2['start'][_0x17dd('0x48')](_0x2395e3[_0x17dd('0x57')]()[_0x17dd('0x144')])?(_0x2395e3['removeMarkers'](),_0x2395e3=_0x528a78):_0x528a78[_0x17dd('0xb3')]():_0x2395e3=_0x528a78;}}}if(_0x2395e3)return this['_setSuggestionRange'](_0x2395e3,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x337980,_0x3aef40)),_0x2395e3;{const _0x34f89e=_0x434768(),_0x23229c=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x337980,_0x3aef40),_0x935b63=_0x678f40['id'],_0x4f8f00=_0x51afeb?_0x17dd('0x4d')+_0x51afeb:'deletion',_0x4c0eff=this[_0x17dd('0x13')]({'id':_0x34f89e,'type':_0x4f8f00,'createdAt':new Date(),'authorId':_0x935b63,'attributes':_0x160a34});return this[_0x17dd('0x8e')](_0x4f8f00,_0x34f89e,_0x935b63,_0x23229c),_0x4c0eff;}}[_0x17dd('0x13d')](_0x4f2f44,_0x215e3c=_0x17dd('0x132'),_0x4979c2={}){const _0x10c693=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'],_0x161b2a=_0x4f2f44[_0x17dd('0x3')](_0x4723d8=>new _0x276727(_0x4723d8['start'],_0x4723d8['end'])),_0x3a4aa9=new Set();for(const {suggestion:_0xea4210,meta:_0x466d52}of this[_0x17dd('0x124')](_0x161b2a,'insertion'))_0x466d52['isOwn']&&!_0x466d52[_0x17dd('0x6a')]&&_0x3a4aa9[_0x17dd('0x3b')](_0xea4210);for(const _0x213619 of _0x3a4aa9)if(_0x213619['isMultiRange']){const _0xcda8cc=_0x213619[_0x17dd('0xe0')]();(!_0x213619['attributes']||!_0x213619[_0x17dd('0xe9')][_0x17dd('0x119')])&&(_0xcda8cc['every'](_0x2fc3a6=>_0x161b2a['some'](_0x3794ab=>_0x3794ab['containsRange'](_0x2fc3a6,!0x0)))&&_0x213619[_0x17dd('0xc6')]());if(_0x161b2a['every'](_0x3fe96a=>_0xcda8cc[_0x17dd('0x88')](_0x18cb8c=>_0x18cb8c[_0x17dd('0xd2')](_0x3fe96a,!0x0)))){const _0x1ee19b=this[_0x17dd('0x70')][_0x17dd('0xc0')]('deletion',_0x215e3c,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x1ee19b(_0x4f2f44,null,_0x4979c2)),null;}}else{const _0xe7912=_0x213619['getFirstRange']();_0x161b2a[_0x17dd('0x88')](_0x2b8dfb=>_0x2b8dfb[_0x17dd('0xd2')](_0xe7912,!0x0))&&_0x213619['discard']();if(_0x161b2a['every'](_0xd1bcde=>_0xe7912[_0x17dd('0xd2')](_0xd1bcde,!0x0))){const _0x472883=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x35'),_0x215e3c,_0x17dd('0xc9'));return this['forceDefaultExecution'](()=>_0x472883(_0x161b2a,null,_0x4979c2)),null;}}const _0x5ab4bf=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x35'),_0x215e3c,_0x17dd('0x44'));let _0x4b4474=null;for(const _0x145f0f of this[_0x17dd('0x131')]())if(_0x145f0f[_0x17dd('0xf7')]['id']==_0x10c693['id']&&_0x145f0f[_0x17dd('0xd4')]&&_0x17dd('0x35')==_0x145f0f[_0x17dd('0xe')]&&_0x145f0f['subType']==_0x215e3c&&Ut(_0x145f0f,_0x4979c2)&&(_0x5ab4bf(_0x145f0f['getRanges'](),_0x161b2a)||_0x5ab4bf(_0x161b2a,_0x145f0f[_0x17dd('0xe0')]()))){if(_0x4b4474){if(_0x145f0f[_0x17dd('0xd8')]&&_0x145f0f[_0x17dd('0xd8')][_0x17dd('0x5d')])continue;for(const _0x49055d of _0x145f0f['getRanges']())_0x4b4474['isIntersectingWithRange'](_0x49055d)||_0x4b4474[_0x17dd('0x6f')](_0x49055d);_0x145f0f['removeMarkers']();}else{_0x4b4474=_0x145f0f;for(const _0x4f6125 of _0x161b2a)_0x145f0f[_0x17dd('0xe8')](_0x4f6125)||_0x145f0f[_0x17dd('0x6f')](_0x4f6125);}}if(_0x4b4474)return _0x4b4474;_0x3a4aa9[_0x17dd('0x55')]();for(const {suggestion:_0x5275d0,meta:_0x2aad3d}of this['_findSuggestions'](_0x161b2a,'deletion'))_0x2aad3d[_0x17dd('0x31')]&&(this['_mergeNestedSuggestions']||!_0x2aad3d['containsRangeInObject']&&!_0x2aad3d['isInsideObject'])&&Ut(_0x5275d0,_0x4979c2)&&_0x3a4aa9[_0x17dd('0x3b')](_0x5275d0);for(const _0x519246 of _0x3a4aa9){const _0x2d3b2c=_0x519246['getRanges']();if(!_0x4979c2||!_0x4979c2[_0x17dd('0x119')]){if(_0x161b2a[_0x17dd('0x61')](_0x5b7d94=>_0x2d3b2c[_0x17dd('0x88')](_0x111ab6=>_0x111ab6[_0x17dd('0xd2')](_0x5b7d94,!0x0))))return _0x519246;}(!_0x519246[_0x17dd('0xe9')]||!_0x519246['attributes'][_0x17dd('0x119')])&&(_0x2d3b2c[_0x17dd('0x61')](_0x5d5771=>_0x161b2a[_0x17dd('0x88')](_0x3a18ab=>_0x3a18ab['containsRange'](_0x5d5771,!0x0)))&&_0x519246['discard']());}const _0x493d31=_0x434768(),_0x19b4ed=_0x10c693['id'],_0x46546d=_0x17dd('0x4d')+_0x215e3c,_0x236e6c=this['_setSuggestionData']({'id':_0x493d31,'type':_0x46546d,'createdAt':new Date(),'authorId':_0x19b4ed,'attributes':_0x4979c2});for(const _0x19873b of _0x161b2a)_0x19873b[_0x17dd('0xf4')](),_0x19873b[_0x17dd('0x4a')]||_0x17dd('0xf6')==_0x19873b[_0x17dd('0x113')][_0x17dd('0xd9')]||this[_0x17dd('0x8e')](_0x46546d,_0x493d31,_0x19b4ed,_0x19873b,_0x5463d9[_0x17dd('0x7c')]());return _0x236e6c;}[_0x17dd('0x80')](_0x2134ee,_0x840e9a){const _0x44298a=_0x2134ee[_0x17dd('0x101')]();this[_0x17dd('0x87')][_0x17dd('0xe2')](_0x525075=>{_0x525075[_0x17dd('0x99')](_0x44298a,{'range':_0x840e9a});});}[_0x17dd('0x65')](_0x379798){const _0x9dd4eb=_0x379798['id'],_0xd29375=this[_0x17dd('0x104')][_0x17dd('0x25')][_0x17dd('0xdd')]('collaboration.channelId');this['_commentsRepository'][_0x17dd('0x117')](_0x9dd4eb)||this[_0x17dd('0xe7')][_0x17dd('0x54')]({'channelId':_0xd29375,'threadId':_0x9dd4eb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x585ee9=this['_commentsRepository'][_0x17dd('0x58')](_0x9dd4eb);_0x585ee9[_0x17dd('0x13b')]('isRemovable'),_0x585ee9[_0x17dd('0x10e')]=!0x1,_0x379798['commentThread']=_0x585ee9;}[_0x17dd('0x123')](_0x2e00f1,_0x10385e,_0x15fd95,_0x202adc){if(_0x2e00f1['type']!=_0x10385e||_0x2e00f1[_0x17dd('0xac')]!=_0x15fd95||_0x2e00f1[_0x17dd('0x5')]['id']!=_0x202adc)throw this[_0x17dd('0x104')]['enableReadOnlyMode'](_0x17dd('0xf9')),new _0x13bd1d(_0x17dd('0xf9'),this);}[_0x17dd('0xf')](_0xb3d194,_0x246952){const _0x110949=_0xb3d194[_0x17dd('0x57')]();if(_0x246952[_0x17dd('0x114')](_0x110949))_0xb3d194[_0x17dd('0xb3')]();else{if(_0x110949[_0x17dd('0xd2')](_0x246952)){const _0x54fdd5=this[_0x17dd('0x87')][_0x17dd('0x126')](_0x246952['start'][_0x17dd('0x100')],_0x17dd('0x6'));this['_setSuggestionRange'](_0xb3d194,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x110949[_0x17dd('0x144')],_0x54fdd5));const _0x3d72f6=_0x434768(),_0x2a43ae=_0xb3d194[_0x17dd('0x5')]['id'],_0x152a14=_0xb3d194['type']+':'+_0xb3d194['subType'];this[_0x17dd('0x13')]({'id':_0x3d72f6,'type':_0x152a14,'createdAt':new Date(),'authorId':_0x2a43ae,'data':_0xb3d194[_0x17dd('0xc3')],'attributes':_0xb3d194[_0x17dd('0xe9')]});const _0x46bb4f=this['_model'][_0x17dd('0x126')](_0x246952[_0x17dd('0x6')]['parent'],_0x17dd('0xf1')),_0x452af9=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x46bb4f,_0x110949[_0x17dd('0x6')]);this[_0x17dd('0x8e')](_0x152a14,_0x3d72f6,_0x2a43ae,_0x452af9);}else{if(_0x110949[_0x17dd('0x6d')](_0x246952[_0x17dd('0x144')])){const _0x4407ad=this[_0x17dd('0x87')]['createPositionAt'](_0x246952[_0x17dd('0x144')][_0x17dd('0x100')],_0x17dd('0x6'));this[_0x17dd('0x80')](_0xb3d194,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x110949[_0x17dd('0x144')],_0x4407ad));}else{const _0xb59fd5=this['_model'][_0x17dd('0x126')](_0x246952[_0x17dd('0x6')][_0x17dd('0xde')],_0x17dd('0xf1'));this[_0x17dd('0x80')](_0xb3d194,this[_0x17dd('0x87')][_0x17dd('0x59')](_0xb59fd5,_0x110949[_0x17dd('0x6')]));}}}}['_rangeIsInLocalUserInsertion'](_0x8b9af5){for(const {suggestion:_0x379ae6,meta:_0x32c06f}of this[_0x17dd('0x124')](_0x8b9af5,_0x17dd('0x10f'))){if(!_0x32c06f[_0x17dd('0x31')])continue;const _0x43d9e3=_0x379ae6['getRanges']();for(const _0x5789d7 of _0x43d9e3)if(!_0x8b9af5[_0x17dd('0x4c')](_0x5789d7)[_0x17dd('0x5d')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45a9be){const _0xfac72a=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')](_0x17dd('0x7e'))[_0x17dd('0x29')](_0x45a9be);if(!_0xfac72a)throw new _0x13bd1d(_0x17dd('0xf5'),this);return _0xfac72a;}[_0x17dd('0x3c')](_0xd59882){const _0x4b3194=this[_0x17dd('0x104')]['plugins'][_0x17dd('0xdd')]('Users'),_0x1fd64e=_0x2020e9(_0x17dd('0xb2')+_0xd59882),_0x5ce430=_0x4b3194[_0x17dd('0x29')](_0x1fd64e);return _0x5ce430||_0x4b3194[_0x17dd('0x13e')]({'id':_0x1fd64e,'name':_0xd59882});}[_0x17dd('0x141')](_0x539da4,_0xfe2724,_0x542c40,_0x3f53e7,_0x1cdef3){const _0x117ee2=this[_0x17dd('0x129')](_0x3f53e7),_0x5686ba=this['_suggestionFactory'][_0x17dd('0x1c')](_0x539da4,_0xfe2724,_0x542c40,_0x117ee2,_0x1cdef3,_0x13a59e=>this[_0x17dd('0x6c')](_0x542c40,{'attributes':_0x13a59e}));return this[_0x17dd('0xab')](_0x5686ba,'accept',()=>{this[_0x17dd('0x6c')](_0x542c40,{'state':_0x17dd('0x11c')});},{'priority':_0x17dd('0x6b')}),this[_0x17dd('0xab')](_0x5686ba,'discard',()=>{this[_0x17dd('0x6c')](_0x542c40,{'state':_0x17dd('0xea')});},{'priority':_0x17dd('0x6b')}),this[_0x17dd('0x10a')][_0x17dd('0xbb')](_0x542c40,_0x5686ba),this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x5686ba,_0x17dd('0xc4')),_0x5686ba;}[_0x17dd('0x34')](_0x26c1cf){const _0x3813ac=_0x26c1cf[_0x17dd('0x9d')](':');return{'group':_0x3813ac[0x0],'type':_0x3813ac[0x1],'subType':_0x3813ac[_0x17dd('0x5d')]>=0x5?_0x3813ac[0x2]:null,'id':_0x3813ac['length']<0x5?_0x3813ac[0x2]:_0x3813ac[0x3],'authorId':_0x3813ac[_0x17dd('0x5d')]<0x5?_0x3813ac[0x3]:_0x3813ac[0x4],'markerCount':0x6==_0x3813ac[_0x17dd('0x5d')]?_0x3813ac[0x5]:null};}['_breakSuggestionMarker'](_0x23da52,_0x3fdaa4,_0x160e66){const _0x3edf32=_0x23da52[_0x17dd('0x57')](),_0x2e2932=_0x3edf32['start'],_0x95d5a8=_0x3edf32[_0x17dd('0x6')];this['_setSuggestionRange'](_0x23da52,this[_0x17dd('0x87')]['createRange'](_0x2e2932,_0x3fdaa4));const _0x112c2c=_0x434768(),_0x47c604=_0x23da52[_0x17dd('0x5')]['id'],_0x1ea2c0=_0x23da52[_0x17dd('0xe')]+(_0x23da52[_0x17dd('0xac')]?':'+_0x23da52[_0x17dd('0xac')]:'');this['_setSuggestionData']({'id':_0x112c2c,'type':_0x1ea2c0,'createdAt':new Date(),'authorId':_0x47c604,'originalSuggestionId':_0x23da52['id'],'attributes':_0x23da52[_0x17dd('0xe9')],'data':_0x23da52[_0x17dd('0xc3')]}),_0x17dd('0x2f')==_0x23da52[_0x17dd('0xe')]&&(_0x160e66=this[_0x17dd('0x87')]['createPositionBefore'](_0x160e66['parent'])),this[_0x17dd('0x8e')](_0x1ea2c0,_0x112c2c,_0x47c604,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x160e66,_0x95d5a8));}[_0x17dd('0x124')](_0xf775f9,_0x4ff77a=null){const _0xcdfee9=[],_0x578b06=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'];Array[_0x17dd('0x137')](_0xf775f9)||(_0xf775f9=[_0xf775f9]);for(const _0x2423e9 of this['getSuggestions']()){if(!_0x2423e9['isInContent'])continue;if(_0x4ff77a&&_0x2423e9[_0x17dd('0xe')]!=_0x4ff77a)continue;let _0x1d0938=!0x1;for(const _0x6f6fe5 of _0x2423e9[_0x17dd('0xe0')]()){for(const _0x9eafc6 of _0xf775f9){const _0xa78018=_0x9eafc6[_0x17dd('0x144')][_0x17dd('0x114')](_0x6f6fe5['end'])||_0x9eafc6[_0x17dd('0x6')][_0x17dd('0x114')](_0x6f6fe5[_0x17dd('0x144')]);if(_0xa78018||_0x9eafc6[_0x17dd('0x140')](_0x6f6fe5)){const _0x439f1d=_0x9eafc6[_0x17dd('0xd2')](_0x6f6fe5)&&Bt(this[_0x17dd('0x87')][_0x17dd('0x9a')],_0x6f6fe5[_0x17dd('0x144')],_0x9eafc6),_0x4421a9=_0x6f6fe5['containsRange'](_0x9eafc6)&&Bt(this[_0x17dd('0x87')][_0x17dd('0x9a')],_0x9eafc6[_0x17dd('0x144')],_0x6f6fe5);_0xcdfee9['push']({'suggestion':_0x2423e9,'meta':{'isOwn':_0x578b06==_0x2423e9[_0x17dd('0xf7')],'isNextTo':_0xa78018,'isInsideObject':_0x439f1d,'containsRangeInObject':_0x4421a9}}),_0x1d0938=!0x0;break;}}if(_0x1d0938)break;}}return _0xcdfee9;}[_0x17dd('0x8e')](_0x22751a,_0x22c50d,_0x5418ce,_0x5a3b33,_0x2ce946){this[_0x17dd('0x87')][_0x17dd('0xe2')](_0x123268=>{let _0x595a9a='suggestion:'+_0x22751a+':'+_0x22c50d+':'+_0x5418ce;_0x2ce946&&(_0x595a9a=_0x595a9a+':'+_0x2ce946),_0x123268[_0x17dd('0x133')](_0x595a9a,{'range':_0x5a3b33,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1cdbef){const _0xcc7c6b=_0x1cdbef[_0x17dd('0x5b')],_0x31575b=_0x1cdbef[_0x17dd('0x108')];_0x1cdbef['previous']=null,null!=_0xcc7c6b&&(_0xcc7c6b[_0x17dd('0x108')]=null),_0x1cdbef[_0x17dd('0x108')]=null,null!=_0x31575b&&(_0x31575b[_0x17dd('0x5b')]=null),_0x17dd('0x5e')==this[_0x17dd('0x111')][_0x17dd('0xdd')](_0x1cdbef)&&(this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x1cdbef,'removed'),this[_0x17dd('0x138')](_0x17dd('0x3e'),_0x1cdbef,_0xcc7c6b,_0x31575b));}['_setSuggestionData'](_0x395275){const _0x36ce3f=_0x395275['id'],_0x4b74c3=this[_0x17dd('0x13f')](_0x395275);if(this[_0x17dd('0x4e')]&&this[_0x17dd('0x4e')][_0x17dd('0x68')]){const _0x2d7c2f=this[_0x17dd('0x104')][_0x17dd('0x67')]['get']('PendingActions'),_0x55caf6=_0x4b74c3['hasComments'],_0x4591c9=_0x4b74c3[_0x17dd('0xac')]?_0x4b74c3[_0x17dd('0xe')]+':'+_0x4b74c3['subType']:_0x4b74c3[_0x17dd('0xe')],_0x5294d4=this[_0x17dd('0x104')][_0x17dd('0xb1')],_0x187640=_0x2d7c2f[_0x17dd('0x3b')](_0x2f5d6f(_0x5294d4,_0x17dd('0xa3'))),_0x107845={'id':_0x36ce3f,'type':_0x4591c9,'hasComments':_0x55caf6,'data':_0x395275[_0x17dd('0xc3')]||null,'originalSuggestionId':_0x395275[_0x17dd('0x120')]||null,'attributes':_0x4b74c3[_0x17dd('0xe9')]};this[_0x17dd('0x4e')][_0x17dd('0x68')](_0x107845)['then'](_0x51f597=>{_0x4b74c3[_0x17dd('0x9b')]=!0x0,_0x2d7c2f[_0x17dd('0xd1')](_0x187640),_0x51f597&&_0x51f597[_0x17dd('0x69')]&&(this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x36ce3f)[_0x17dd('0x69')]=_0x51f597[_0x17dd('0x69')]);})[_0x17dd('0xe5')](_0x6817b=>{throw _0x1e7a6b(_0x17dd('0x115')),this[_0x17dd('0x104')][_0x17dd('0x9e')][_0x17dd('0x63')]({'isUndoable':!0x1},()=>{_0x4b74c3[_0x17dd('0xc6')]();}),_0x4b74c3[_0x17dd('0xc8')](),this[_0x17dd('0x10a')][_0x17dd('0x1a')](_0x4b74c3['id']),this[_0x17dd('0x111')][_0x17dd('0x1a')](_0x4b74c3),_0x6817b;});}return _0x4b74c3;}[_0x17dd('0x6c')](_0x59cd50,_0x1f083b){const _0x136712=this['editor'][_0x17dd('0x67')][_0x17dd('0xdd')]('PendingActions'),_0x56603e=this[_0x17dd('0x136')](_0x59cd50);if(this['_adapter']&&this[_0x17dd('0x4e')][_0x17dd('0xb0')]){if(_0x56603e[_0x17dd('0x9b')]){const _0x3fbec5=_0x136712[_0x17dd('0x3b')](_0x2f5d6f(this['editor'][_0x17dd('0xb1')],_0x17dd('0xa3')));this[_0x17dd('0x4e')][_0x17dd('0xb0')](_0x59cd50,_0x1f083b)[_0x17dd('0x98')](()=>{_0x136712[_0x17dd('0xd1')](_0x3fbec5);});}else _0x56603e['on'](_0x17dd('0x43'),()=>{this['_updateSuggestionData'](_0x59cd50,_0x1f083b);});}}[_0x17dd('0x75')](_0x189b20){if(!this[_0x17dd('0x4e')]||!this[_0x17dd('0x4e')][_0x17dd('0x136')])throw new _0x13bd1d(_0x17dd('0xb9'),this);return this[_0x17dd('0x4e')][_0x17dd('0x136')](_0x189b20);}['_handleNewSuggestionMarker'](_0x355a0d){const {id:_0x2f15f8,type:_0xbfce62,subType:_0x4c8f79,authorId:_0x149f3b}=this[_0x17dd('0x34')](_0x355a0d),_0x14c655=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x2f15f8)||this[_0x17dd('0x141')](_0xbfce62,_0x4c8f79,_0x2f15f8,_0x149f3b,{});switch(this['_checkSuggestionCorrectness'](_0x14c655,_0xbfce62,_0x4c8f79,_0x149f3b),this[_0x17dd('0x111')][_0x17dd('0xdd')](_0x14c655)){case _0x17dd('0xc4'):this[_0x17dd('0x75')](_0x2f15f8)[_0x17dd('0x98')](_0x277461=>{let _0x19a5df=Promise[_0x17dd('0xf8')]();_0x277461[_0x17dd('0xed')]&&(_0x19a5df=this[_0x17dd('0xe7')][_0x17dd('0x28')]({'channelId':this[_0x17dd('0x104')][_0x17dd('0x25')][_0x17dd('0xdd')](_0x17dd('0x96')),'threadId':_0x2f15f8})),_0x19a5df[_0x17dd('0x98')](()=>{this[_0x17dd('0x13f')](_0x277461)[_0x17dd('0x9b')]=!0x0;});}),this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x14c655,_0x17dd('0x38'));break;case _0x17dd('0x128'):this[_0x17dd('0x6c')](_0x2f15f8,{'state':'open'});case _0x17dd('0x5c'):this['_suggestionState'][_0x17dd('0xbb')](_0x14c655,_0x17dd('0x5e')),this['fire'](_0x17dd('0x10d'),_0x14c655);break;case _0x17dd('0x5e'):this['fire']('suggestionChanged',_0x14c655);}return _0x14c655[_0x17dd('0x40')](_0x355a0d),_0x14c655;}[_0x17dd('0xcb')](_0x3a3d90){const _0x38e80d=Array[_0x17dd('0xeb')](_0x3a3d90)[_0x17dd('0x12d')](_0x54035c=>!_0x54035c['isMultiRange']),_0x317b0d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x478223=>!_0x478223['isMultiRange']),_0x3f8f51=_0x317b0d[_0x17dd('0x12d')](_0x514030=>!_0x3a3d90[_0x17dd('0x142')](_0x514030)),_0x2aba0a=new Map(_0x317b0d[_0x17dd('0x3')](_0x51dbfe=>[_0x51dbfe,this[_0x17dd('0x70')]['getSuggestionCallback'](_0x51dbfe[_0x17dd('0xe')],_0x51dbfe['subType'],_0x17dd('0x122'))])),_0x44c68b=new Map(_0x317b0d[_0x17dd('0x3')](_0x135ca2=>[_0x135ca2,_0x135ca2[_0x17dd('0x57')]()])),_0xdb46ca=new Set(),_0x401e2f=new Set();for(let _0x4d32af=0x0;_0x4d32af<_0x38e80d[_0x17dd('0x5d')];_0x4d32af++)_0x467e1b(_0x38e80d[_0x4d32af],_0x38e80d,_0x4d32af+0x1);for(let _0xd0a471=0x0;_0xd0a471<_0x38e80d[_0x17dd('0x5d')];_0xd0a471++)_0x467e1b(_0x38e80d[_0xd0a471],_0x3f8f51,0x0);for(let _0x541a87=0x0;_0x541a87<_0x38e80d[_0x17dd('0x5d')];_0x541a87++){const _0x49cd05=_0x38e80d[_0x541a87];!_0x401e2f[_0x17dd('0x142')](_0x49cd05)&&_0x49cd05[_0x17dd('0x5b')]&&(_0x49cd05[_0x17dd('0x5b')][_0x17dd('0x108')]===_0x49cd05&&(_0x49cd05[_0x17dd('0x5b')][_0x17dd('0x108')]=null),_0x49cd05[_0x17dd('0x5b')]=null),!_0xdb46ca['has'](_0x49cd05)&&_0x49cd05['next']&&(_0x49cd05[_0x17dd('0x108')][_0x17dd('0x5b')]===_0x49cd05&&(_0x49cd05['next'][_0x17dd('0x5b')]=null),_0x49cd05['next']=null);}function _0x467e1b(_0x5e13c6,_0x36e952,_0x4e1a2c){for(let _0x4405c7=_0x4e1a2c;_0x4405c7<_0x36e952['length'];_0x4405c7++){const _0x1fbe80=_0x36edc7(_0x5e13c6,_0x36e952[_0x4405c7]);_0x1fbe80&&(_0x1fbe80[0x0][_0x17dd('0x108')]=_0x1fbe80[0x1],_0x1fbe80[0x1]['previous']=_0x1fbe80[0x0],_0xdb46ca[_0x17dd('0x3b')](_0x1fbe80[0x0]),_0x401e2f['add'](_0x1fbe80[0x1]));}}function _0x36edc7(_0x74c3ba,_0x4573f4){if(_0x74c3ba['author']['id']!==_0x4573f4[_0x17dd('0xf7')]['id'])return null;const _0xd58372=_0x2aba0a[_0x17dd('0xdd')](_0x74c3ba)(_0x74c3ba,_0x4573f4,_0x44c68b[_0x17dd('0xdd')](_0x74c3ba),_0x44c68b['get'](_0x4573f4));if(!_0xd58372)return null;return _0x2aba0a['get'](_0x4573f4)(_0x74c3ba,_0x4573f4,_0x44c68b['get'](_0x74c3ba),_0x44c68b[_0x17dd('0xdd')](_0x4573f4))?_0xd58372[0x1]['commentThread']&&_0xd58372[0x1]['commentThread'][_0x17dd('0x5d')]?null:_0xd58372:null;}}['_joinWithAdjacentSuggestions'](_0x4e585a){const _0x3ef314=Array['from'](_0x4e585a),_0x3ab72e=this[_0x17dd('0x131')]({'skipNotAttached':!0x0}),_0x33995f=_0x3ab72e['filter'](_0x2379a5=>!_0x4e585a[_0x17dd('0x142')](_0x2379a5)),_0x18997e=new Map(_0x3ef314['map'](_0x4ea952=>[_0x4ea952,this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x4ea952[_0x17dd('0xe')],_0x4ea952['subType'],_0x17dd('0x44'))])),_0xeace73=new Map(_0x3ab72e[_0x17dd('0x3')](_0x3c9cbb=>[_0x3c9cbb,_0x3c9cbb[_0x17dd('0xe0')]()]));for(let _0x30e1a3=0x0;_0x30e1a3<_0x3ef314['length'];_0x30e1a3++){if(_0x3754fb(this,_0x3ef314[_0x30e1a3],_0x3ef314,_0x30e1a3+0x1))return!0x0;}for(let _0x16ed91=0x0;_0x16ed91<_0x3ef314[_0x17dd('0x5d')];_0x16ed91++){if(_0x3754fb(this,_0x3ef314[_0x16ed91],_0x33995f,0x0))return!0x0;}return!0x1;function _0x3754fb(_0x5d88a4,_0x459588,_0x5249b5,_0x1ed308){for(let _0x45504f=_0x1ed308;_0x45504f<_0x5249b5[_0x17dd('0x5d')];_0x45504f++){const _0x49e58d=_0x5249b5[_0x45504f];if(_0x49e58d[_0x17dd('0xe')]!==_0x459588[_0x17dd('0xe')]||_0x49e58d[_0x17dd('0xf7')]['id']!==_0x459588[_0x17dd('0xf7')]['id']||_0x49e58d['subType']!==_0x459588[_0x17dd('0xac')])continue;if(!xt(_0x459588,_0x49e58d))continue;const _0x23f7e3=_0x18997e[_0x17dd('0xdd')](_0x459588),_0x19517b=_0xeace73[_0x17dd('0xdd')](_0x459588),_0x5b08e6=_0xeace73[_0x17dd('0xdd')](_0x49e58d),_0xea0c73=_0x459588[_0x17dd('0xd8')]&&_0x459588[_0x17dd('0xd8')][_0x17dd('0x5d')],_0x5ccdde=_0x49e58d[_0x17dd('0xd8')]&&_0x49e58d[_0x17dd('0xd8')][_0x17dd('0x5d')];if(!_0xea0c73&&_0x23f7e3(_0x5b08e6,_0x19517b))return _0x5d88a4[_0x17dd('0xb8')](_0x49e58d,_0x459588),_0xeace73[_0x17dd('0x1a')](_0x459588),!0x0;if(!_0x5ccdde&&_0x23f7e3(_0x19517b,_0x5b08e6))return _0x5d88a4[_0x17dd('0xb8')](_0x459588,_0x49e58d),_0xeace73[_0x17dd('0x1a')](_0x49e58d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4775da,_0x594b5e){if(_0x4775da[_0x17dd('0x130')])for(const _0x447295 of _0x594b5e[_0x17dd('0xe0')]())_0x4775da[_0x17dd('0x6f')](_0x447295);else{const _0x15b97a=_0x594b5e[_0x17dd('0x57')]()[_0x17dd('0x6')];this[_0x17dd('0x80')](_0x4775da,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x4775da[_0x17dd('0x57')]()[_0x17dd('0x144')],_0x15b97a));}_0x594b5e[_0x17dd('0xb3')]();}}class Dt{constructor(_0x57401d){this['_editor']=_0x57401d,this['_model']=_0x57401d[_0x17dd('0x9e')],this['_customCallbacks']=new Map(),this[_0x17dd('0xfe')]=new Map(),this[_0x17dd('0x32')]();}[_0x17dd('0x1c')](_0x19f723,_0x34d6a0,_0x207556,_0x5d2a70,_0x5a948f,_0x3dccbe){return new _0x5463d9(this[_0x17dd('0x87')],{'type':_0x19f723,'subType':_0x34d6a0,'id':_0x207556,'author':_0x5d2a70,'creator':_0x5d2a70,'attributes':_0x5a948f,'onAttributesChange':_0x3dccbe,'onAccept':(..._0x5ee80f)=>this['getSuggestionCallback'](_0x19f723,_0x34d6a0,_0x17dd('0xc9'))(..._0x5ee80f),'onDiscard':(..._0xeeccb1)=>this[_0x17dd('0xc0')](_0x19f723,_0x34d6a0,_0x17dd('0xc6'))(..._0xeeccb1)});}['registerCustomCallback'](_0x2b3dea,_0x4cb726,_0x11ee3e,_0x44bd44){const _0x5f7b9e=_0x2b3dea+':'+_0x4cb726+':'+_0x11ee3e;this[_0x17dd('0x72')][_0x17dd('0xbb')](_0x5f7b9e,_0x44bd44);}['getSuggestionCallback'](_0x459999,_0x472bdf,_0x5aa24c){const _0xbfaa1f=_0x459999+':'+_0x472bdf+':'+_0x5aa24c;return this['_customCallbacks'][_0x17dd('0xdd')](_0xbfaa1f)||this[_0x17dd('0xfe')][_0x17dd('0xdd')](_0x459999+':'+_0x5aa24c);}['_registerDefaultCallbacks'](){const _0x5845da=()=>!0x1,_0x15537d=_0x59d10f=>{_0x59d10f[_0x17dd('0xa9')]((_0x18a764,_0x188439)=>_0x18a764['start'][_0x17dd('0x48')](_0x188439[_0x17dd('0x144')])?0x1:-0x1),this[_0x17dd('0x87')]['change'](_0x3d0677=>{for(const _0x44c291 of _0x59d10f){let _0x562405;_0x562405=_0x44c291[_0x17dd('0x6')][_0x17dd('0x21')]&&_0x44c291[_0x17dd('0x6')][_0x17dd('0xde')]==_0x44c291[_0x17dd('0x144')][_0x17dd('0xe1')]?_0x3d0677[_0x17dd('0x93')](_0x44c291['start'][_0x17dd('0xe1')],'on'):_0x3d0677[_0x17dd('0x93')](_0x44c291),this['_model'][_0x17dd('0x139')](_0x562405,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x570351=(_0x526bb9,_0x2b004b)=>{this[_0x17dd('0x87')]['change'](_0x57a3d3=>{const {commandName:_0x153e22,commandParams:_0x26909a=[]}=_0x2b004b,_0x328fc7=_0x526bb9[_0x17dd('0x3')](_0x5f558f=>(_t(_0x5f558f)&&(_0x5f558f=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x5f558f[_0x17dd('0x6')])),_0x5f558f))['filter'](_0x37270b=>_0x17dd('0xf6')!==_0x37270b[_0x17dd('0x113')][_0x17dd('0xd9')]);if(_0x328fc7['length']<0x1)return;const _0x3682ef=Array[_0x17dd('0xeb')](this[_0x17dd('0x87')][_0x17dd('0x121')][_0x17dd('0x94')]['getRanges']())[_0x17dd('0x3')](_0x5d4ca0=>_0x276727[_0x17dd('0x7f')](_0x5d4ca0));_0x57a3d3[_0x17dd('0xb4')](_0x328fc7);for(const _0x39e517 of this['_editor']['commands'][_0x17dd('0x12e')]())_0x39e517[_0x17dd('0xb6')]();_0x26909a[_0x17dd('0xdc')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x17dd('0x9')](_0x153e22,..._0x26909a);const _0x50137e=_0x3682ef[_0x17dd('0x12d')](_0x488955=>_0x17dd('0xf6')!=_0x488955[_0x17dd('0x113')][_0x17dd('0xd9')]);_0x50137e[_0x17dd('0x5d')]>0x0&&_0x57a3d3[_0x17dd('0xb4')](_0x50137e);for(const _0x3d8910 of _0x3682ef)_0x3d8910[_0x17dd('0xf4')]();});},_0x197718=(_0xd198c9,_0x41c275)=>0x1==_0xd198c9[_0x17dd('0x5d')]&&0x1==_0x41c275[_0x17dd('0x5d')]&&_0xd198c9[0x0]['end'][_0x17dd('0x114')](_0x41c275[0x0]['start']),_0x7317e4=(_0x4bcb51,_0x5088b7,_0x3384b9,_0x151a7f)=>jt(_0x4bcb51,_0x5088b7,_0x3384b9,_0x151a7f,this['_model'])?[_0x4bcb51,_0x5088b7]:jt(_0x5088b7,_0x4bcb51,_0x151a7f,_0x3384b9,this[_0x17dd('0x87')])?[_0x5088b7,_0x4bcb51]:null;this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xf3'),_0x5845da),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xdf'),_0x15537d),this[_0x17dd('0xfe')]['set'](_0x17dd('0x76'),_0x197718),this[_0x17dd('0xfe')][_0x17dd('0xbb')]('insertion:chain',_0x7317e4),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xec'),_0x15537d),this['_defaultCallbacks'][_0x17dd('0xbb')](_0x17dd('0x118'),_0x5845da),this['_defaultCallbacks']['set']('deletion:join',_0x197718),this['_defaultCallbacks'][_0x17dd('0xbb')](_0x17dd('0x11a'),_0x7317e4),this['_defaultCallbacks'][_0x17dd('0xbb')](_0x17dd('0x8'),_0x570351),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xda'),_0x5845da),this['_defaultCallbacks']['set'](_0x17dd('0x82'),_0x197718),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0x81'),_0x5845da),this['_defaultCallbacks'][_0x17dd('0xbb')]('formatBlock:accept',_0x570351),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0x83'),_0x5845da),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0x12a'),_0x197718),this[_0x17dd('0xfe')]['set'](_0x17dd('0x110'),_0x5845da);}}function Bt(_0x68e4e0,_0x454dc9,_0x26fd79){for(const _0x9b4e82 of _0x454dc9['parent'][_0x17dd('0x41')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x9b4e82['root']==_0x9b4e82)return!0x1;if(!_0x26fd79[_0x17dd('0x92')](_0x9b4e82))return!0x1;if(_0x68e4e0[_0x17dd('0x12b')](_0x9b4e82)||_0x68e4e0[_0x17dd('0x146')](_0x9b4e82))return!0x0;}return!0x1;}function _t(_0x510699){return _0x510699['end'][_0x17dd('0xde')]==_0x510699['start'][_0x17dd('0xe1')]&&_0x510699['end'][_0x17dd('0xb')];}function Mt(_0xc3bb4,_0x939d15,_0x47163d,_0x11cef2){const _0x392e04=_0x124eae=>!_0x124eae[_0x17dd('0xa5')]['is'](_0x17dd('0x90'))&&!_0x11cef2[_0x17dd('0x12b')](_0x124eae['item']),_0xb7e66e=_0xc3bb4[_0x17dd('0x144')][_0x17dd('0x97')](_0x392e04),_0x4a7385=_0xc3bb4[_0x17dd('0x6')][_0x17dd('0x97')](_0x392e04,{'direction':'backward'});return(!_0xc3bb4['start'][_0x17dd('0x114')](_0xb7e66e)||!_0xc3bb4['end'][_0x17dd('0x114')](_0x4a7385))&&(_0xb7e66e[_0x17dd('0x48')](_0x4a7385)?_0x47163d[_0x17dd('0x99')](_0x939d15,{'range':_0x47163d[_0x17dd('0x59')](_0xb7e66e,_0x4a7385)}):_0x47163d[_0x17dd('0x10')](_0x939d15),!0x0);}function $t(_0xa6dd0e){return _0x2020e9(_0xa6dd0e);}function Nt(_0x464a4a){const _0x422d8b=_0x464a4a[_0x17dd('0x144')]['nodeAfter'];return _0x422d8b&&_0x422d8b['is']('element');}function Rt(_0x44c317,_0x3075fc){const _0x4d4af8=_0x3075fc['schema'][_0x17dd('0x12b')](_0x44c317)||_0x3075fc[_0x17dd('0x9a')][_0x17dd('0x27')](_0x44c317);return _0x3075fc[_0x17dd('0x59')](_0x3075fc[_0x17dd('0x126')](_0x44c317,_0x17dd('0xff')),_0x4d4af8?_0x3075fc['createPositionAfter'](_0x44c317):_0x3075fc['createPositionAt'](_0x44c317,_0x17dd('0x6')));}function jt(_0x2ba18d,_0x37a43a,_0x48a8a4,_0x1a14eb,_0x5db77c){if(!xt(_0x2ba18d,_0x37a43a))return!0x1;if(_0x48a8a4[_0x17dd('0x6')][_0x17dd('0x114')](_0x1a14eb['start']))return!0x0;if(_0x2ba18d[_0x17dd('0xe')]!=_0x37a43a[_0x17dd('0xe')])return!0x1;if(!_0x48a8a4['end'][_0x17dd('0xa2')](_0x1a14eb['start']))return!0x1;const _0x2cfa1a=_0x5db77c['createRange'](_0x48a8a4[_0x17dd('0x6')],_0x1a14eb[_0x17dd('0x144')])[_0x17dd('0x107')]();for(const _0x56b836 of _0x2cfa1a)if([_0x17dd('0x10c'),'elementEnd']['includes'](_0x56b836[_0x17dd('0xe')])&&_0x5db77c['schema'][_0x17dd('0x146')](_0x56b836['item']))return!0x1;return!0x0;}function xt(_0x258cb1,_0x32a1fa){return!(!_0x258cb1['_isDataLoaded']||!_0x32a1fa['_isDataLoaded'])&&_0x25a31b(_0x258cb1['attributes'],_0x32a1fa[_0x17dd('0xe9')]);}function Ut(_0x5018a1,_0x4cabb2){const _0x50e1ef=Ot(_0x5018a1[_0x17dd('0xe9')]),_0x4f787f=Ot(_0x4cabb2);if(!_0x5018a1[_0x17dd('0x11e')])return!0x1;for(const _0x22dae1 of Object[_0x17dd('0x2d')](_0x4f787f))if(!_0x25a31b(_0x50e1ef[_0x22dae1],_0x4f787f[_0x22dae1]))return!0x1;return!0x0;}function Ot(_0x10ed33){const _0x2f50df=Object[_0x17dd('0xd7')]({},_0x10ed33);return delete _0x2f50df[_0x17dd('0x119')],delete _0x2f50df[_0x17dd('0x3d')],_0x2f50df;}
|
|
23
|
+
const _0x2094=['ready','_commentsRepository','createSelection','change:activeMarkers','setAttribute','editing','newRange','fromRange','low','toViewElement','_removeSuggestion','document','_editor','_onDiscard','name','hasSuggestion','_refreshSuggestionsChain','ck-suggestion-marker-formatBlock','multipleBlocks','track-changes-suggestion-not-found','enqueueChange','_trackFormatChanges','item','attributes','unbindElementFromMarkerName','isEqual','requires','@external','dataDowncast','_setSuggestionData','discardSelectedSuggestions','elementStart','data','createElement','element','never','selection','mapper','catch','dataToMarker','stop','getAllAdjacentSuggestions','some','author','isObject','getRanges','sort','addMarker','_suggestions','parent','getSuggestion','isMultiRange','deletion','createRange','value','_cutOutSuggestionMarker','values','getMarkers','forceDefaultExecution','position','marker-count','suggestionUnloaded','insertion:accept','getChangedMarkers','isExternal','always','tablePasteChainId','before','writer','_joinWithAdjacentSuggestions','splice','discardSuggestion','filter','markInlineFormat','nodeBefore','acceptAllSuggestions','commandName','ck-suggestion-marker-','options','markBlockFormat','$graveyard','oldRange','track-changes-adapter-missing-getsuggestion','isBefore','_getSuggestionData','getDifference','insertion:','markers','_addThreadToSuggestion','PENDING_ACTION_SUGGESTION','insertContent','getCommentThread','addComment','_mergeNestedSuggestions','execute','reconvertMarker','_suggestionFactory','$marker','hasComments','_findSuggestions','isLocal','removeAttribute','listenTo','isInContent','_adapter','isAfter','elementEnd','containsItem','formatInline:accept','length','model','markerToHighlight','formatBlock:chain','getWalker','deletion:chain','addMarker:suggestion:formatBlock','CommentsRepository','isAtStart','createRangeIn','containerElement','editor','_rangeIsInLocalUserInsertion','trackChanges.mergeNestedSuggestions','_joinSuggestions','markDeletion','formatGroupId','batch','trackChanges.trackFormatChanges','isSelectable','discardAllSuggestions','_enabledCommands','_isForcedDefaultExecutionBlock','addMarker:suggestion','substr','track-changes-adapter-already-set','ck-suggestion-marker--active','_checkSuggestionCorrectness','ck-suggestion-marker','includes','join','_saved','creator','rootName','locale','acceptSuggestion','_splitMarkerName','getRange','markerReady','after','_getAuthorFromId','_handleNewSuggestionMarker','getFirstRange','highest','_registerDefaultCallbacks','formatBlock:','getUser','split','next','getAncestors','backward','skipNestingCheck','suggestionLoaded','accept','enableCommand','getShiftedBy','range','notReady','multi','move','change','then','isUndo','addSuggestion','track-changes-suggestion-data-mismatch','formatInline:','plugins','root','commentThread','markMultiRangeDeletion','define','containsRange','insertion','consumable','updateSuggestion','getCustomProperty','registerPostFixer','schema','toJSON','start','isBlock','moveTargetPosition','addUser','consume','addHighlight','_updateSuggestionData','size','nodeAfter','removed','normal','remove','applyOperation','_breakSuggestionMarker','chain','fire','add','_descriptionFactory','detach','_createSuggestion','fromCharCode','showSuggestionHighlights','every','removeMarkers','data-suggestion','markMultiRangeInsertion','getFirstMarker','targetPosition','insert','isCollapsed','from','isAtEnd','adapter','end','external:','trackChanges','lowest','upcast','getSuggestions','change:_saved','formatInline','addMarkerName','isInsideObject','addCommentThread','discard','formatInline:discard','activeMarkers','forward','_getExternalAuthor','delete','_customCallbacks','_setSuggestionRange','createPositionAt','trackChangesCommand','track-changes-command-not-found','editingDowncast','differ','addRange','has','containsPosition','markerToData','setSelection','previous','collaboration.channelId','formatBlock','acceptSelectedSuggestions','commands','conversion','_suggestionState','deletion:discard','dataReady','isLimit','removeMarker:suggestion:formatBlock','buildSuggestion','registerCustomCallback','TrackChangesEditing','widget','formatBlock:join','getNearestSelectionRange','isNextTo','pluginName','markerName','isDocumentOperation','getSuggestionCallback','getChanges','deletion:','get','group','_model','set','documentSelection','addSuggestionData','head','howMany','refresh','type','_isDataLoaded','elementToElement','high','_addSuggestionMarker','authoredAt','subType','assign','insertion:chain','removeMarker','isOwn','for','removeClass','suggestion:','rethrowUnexpectedError','map','_defaultCallbacks','removeComment','suggestion','config','getLastMatchingPosition','getAttribute','init','containsRangeInObject','Users','push','deletion:join','open','addClass','PendingActions','isRemovable','getIntersection','createdAt','getMultiRangeId','markInsertion','isIntersectingWithRange','setTo','change:data','updateMarker','deleteContent'];(function(_0x34753d,_0x2094b2){const _0x473cc7=function(_0x52dbc3){while(--_0x52dbc3){_0x34753d['push'](_0x34753d['shift']());}};_0x473cc7(++_0x2094b2);}(_0x2094,0x140));const _0x473c=function(_0x34753d,_0x2094b2){_0x34753d=_0x34753d-0x0;let _0x473cc7=_0x2094[_0x34753d];return _0x473cc7;};import{Plugin as _0x5ab2a3,PendingActions as _0x3ee3fe}from'ckeditor5/src/core';import{LiveRange as _0x11089b}from'ckeditor5/src/engine';import{CKEditorError as _0x5b63fa,uid as _0x28debd,priorities as _0x12b64f,logWarning as _0x4b42e4}from'ckeditor5/src/utils';import{toWidget as _0x484767}from'ckeditor5/src/widget';import{Users as _0x2f8a51,hashObject as _0x491d52}from'ckeditor5-collaboration/src/collaboration-core';import _0x975ee5 from'./commands/trackchangescommand';import _0x306943 from'./commands/acceptsuggestioncommand';import _0x3b4797 from'./commands/discardsuggestioncommand';import _0x151472 from'./commands/executeonallsuggestionscommand';import _0x4fa26b from'./commands/executeonselectedsuggestionscommand';import _0x40a5e8 from'./suggestion';import _0x27ee7e from'./suggestiondescriptionfactory';import _0x3920d1 from'./integrations/alignment';import _0x404111 from'./integrations/basicstyles';import _0x4a6db9 from'./integrations/blockquote';import _0x523d56 from'./integrations/ckbox';import _0xcde106 from'./integrations/codeblock';import _0x2c743 from'./integrations/comments';import _0x2f4d01 from'./integrations/deletecommand';import _0x356d7b from'./integrations/documentlist';import _0xb8a5a9 from'./integrations/entercommand';import _0x52579f from'./integrations/findandreplace';import _0x420035 from'./integrations/font';import _0x435142 from'./integrations/formatpainter';import _0xeb88ed from'./integrations/heading';import _0x2a97fc from'./integrations/highlight';import _0x5e323c from'./integrations/horizontalline';import _0x2989b2 from'./integrations/htmlembed';import _0x47b3db from'./integrations/image';import _0x3ae7c3 from'./integrations/imagereplace';import _0x307b1e from'./integrations/importword';import _0x4c7907 from'./integrations/indent';import _0x4900ef from'./integrations/inputcommand';import _0x5c5392 from'./integrations/link';import _0xe62d9f from'./integrations/list';import _0x348a04 from'./integrations/listproperties';import _0xd115c0 from'./integrations/mediaembed';import _0xbf5d37 from'./integrations/mention';import _0x331f13 from'./integrations/pagebreak';import _0x41264f from'./integrations/paragraph';import _0x2cbfc3 from'./integrations/removeformat';import _0x1f4822 from'./integrations/restrictededitingmode';import _0x19fa7d from'./integrations/shiftentercommand';import _0x3344bd from'./integrations/standardeditingmode';import _0x265a2f from'./integrations/style';import _0x137e12 from'./integrations/table';import _0x5baabc from'./integrations/tablemergesplit';import _0x519d40 from'./integrations/tableheadings';import _0x2612de from'./integrations/tableclipboard';import _0x468ef3 from'./integrations/tablecolumnresize';import _0x560e06 from'./integrations/template';import _0x2e90f9 from'./integrations/tableofcontents';import _0x3514d5 from'./integrations/title';import _0x2d1d09 from'./integrations/undo';import{getTranslation as _0x1e1af9}from'./utils/common-translations';import _0x2d64f4 from'./integrations/tablecaption';import _0x2b3947 from'./integrations/documentlistproperties';import _0x40c1b2 from'./integrations/tableproperties';import{isEqual as _0x1249e3}from'lodash-es';export default class p extends _0x5ab2a3{static get[_0x473c('0x1d')](){return[_0x473c('0x77'),_0x2f8a51,_0x3ee3fe,_0x3920d1,_0x404111,_0x4a6db9,_0x523d56,_0xcde106,_0x2c743,_0x2f4d01,_0x356d7b,_0x2b3947,_0xb8a5a9,_0x52579f,_0x420035,_0x435142,_0xeb88ed,_0x2a97fc,_0x5e323c,_0x2989b2,_0x47b3db,_0x3ae7c3,_0x307b1e,_0x4c7907,_0x4900ef,_0x5c5392,_0xe62d9f,_0x348a04,_0xd115c0,_0xbf5d37,_0x331f13,_0x41264f,_0x2cbfc3,_0x1f4822,_0x19fa7d,_0x3344bd,_0x265a2f,_0x137e12,_0x5baabc,_0x519d40,_0x2d64f4,_0x2612de,_0x468ef3,_0x2e90f9,_0x40c1b2,_0x560e06,_0x3514d5,_0x2d1d09];}static get[_0x473c('0x10f')](){return _0x473c('0x10a');}constructor(_0x52a05a){function _0x517bed(_0xa08972){return _0xa08972['map'](_0x597087=>String[_0x473c('0xd3')](_0x597087))['join']('');}super(_0x52a05a),this[_0x473c('0x118')](_0x473c('0xed'),[]),this['on'](_0x473c('0x6'),(_0x23fcde,_0x2e4242,_0x2ffc0d,_0x502170)=>{this[_0x473c('0x117')]['change'](()=>{for(const _0x5d3db1 of[..._0x502170,..._0x2ffc0d])this[_0x473c('0x117')]['markers']['has'](_0x5d3db1)&&_0x52a05a[_0x473c('0x8')][_0x473c('0x62')](_0x5d3db1);});}),this[_0x473c('0xd0')]=new _0x27ee7e(this['editor']['model']['schema'],this[_0x473c('0x7b')]['locale']),this[_0x473c('0x6b')]=null,this['_suggestionFactory']=new Dt(this[_0x473c('0x7b')]),this['_suggestions']=new Map(),this[_0x473c('0x4')]=_0x52a05a['plugins'][_0x473c('0x115')]('CommentsRepository'),this[_0x473c('0x85')]=new Set(),this[_0x473c('0x117')]=this[_0x473c('0x7b')]['model'],this['_suggestionState']=new WeakMap(),this[_0x473c('0x86')]=!0x1,_0x52a05a[_0x473c('0x131')][_0x473c('0xb6')](_0x473c('0x82'),'default'),this[_0x473c('0x18')]=_0x52a05a['config'][_0x473c('0x115')]('trackChanges.trackFormatChanges'),_0x52a05a[_0x473c('0x131')][_0x473c('0xb6')](_0x473c('0x7d'),!0x0),this[_0x473c('0x60')]=_0x52a05a['config']['get'](_0x473c('0x7d')),this[_0x473c('0xf4')]=new _0x975ee5(_0x52a05a,this[_0x473c('0x85')]),this[_0x517bed([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x517bed([0x34,0x30,0x34,0x36,0x31,0x38,0x32,0x36]);}[_0x473c('0x134')](){const _0x28d748=this[_0x473c('0x7b')];_0x28d748[_0x473c('0x102')][_0x473c('0x129')](_0x473c('0xf6'))[_0x473c('0x72')]({'model':'suggestion','view':_0x5eae5e=>{const {id:_0xdd40ce,type:_0x3c31ce}=this[_0x473c('0x94')](_0x5eae5e[_0x473c('0x110')]),_0x3c239e=[_0x473c('0x8c'),_0x473c('0x50')+_0x3c31ce];let _0x34f149=0xbb8;return this[_0x473c('0xed')][_0x473c('0x8d')](_0x5eae5e['markerName'])&&(_0x3c239e[_0x473c('0x137')](_0x473c('0x8a')),_0x34f149=0xbc2),_0x473c('0x37')==_0x3c31ce&&(_0x34f149+=0x5),{'classes':_0x3c239e,'attributes':{'data-suggestion':_0xdd40ce},'priority':_0x34f149};}}),_0x28d748[_0x473c('0x102')][_0x473c('0x129')](_0x473c('0x1f'))[_0x473c('0xcf')](_0x12287d=>{_0x12287d['on'](_0x473c('0x87'),(_0x94d049,_0x3e2c6f,_0x545b68)=>{if(!_0x545b68[_0x473c('0x51')][_0x473c('0xd4')])return;const _0x582fbc=_0x3e2c6f[_0x473c('0x19')];if(!_0x582fbc)return;const _0x11155d=_0x545b68[_0x473c('0x28')][_0x473c('0xc')](_0x582fbc);_0x28d748['model']['schema'][_0x473c('0x2f')](_0x582fbc)&&_0x11155d&&!_0x11155d['getCustomProperty'](_0x473c('0x10b'))&&_0x11155d['is'](_0x473c('0x7a'))&&_0x484767(_0x11155d,_0x545b68[_0x473c('0x47')]);},{'priority':_0x473c('0x121')});}),_0x28d748['conversion'][_0x473c('0x129')](_0x473c('0x1f'))[_0x473c('0x72')]({'model':'suggestion','view':(_0x37a115,_0x1ecdb8)=>{if(!_0x1ecdb8['options'][_0x473c('0xd4')])return null;const {type:_0x53f9f4}=this[_0x473c('0x94')](_0x37a115[_0x473c('0x110')]);return{'classes':[_0x473c('0x8c'),_0x473c('0x50')+_0x53f9f4],'priority':0xbb8};}});const _0x8f4ab7=({showActiveMarkers:_0x2867cf=!0x0}={})=>(_0x408ba9,_0x917d56,_0x2035cd)=>{if(!_0x917d56[_0x473c('0x19')])return;if(_0x917d56[_0x473c('0x19')]['is']('selection'))return void _0x2035cd[_0x473c('0xb9')]['consume'](_0x917d56[_0x473c('0x19')],_0x408ba9[_0x473c('0x11')]);const _0x166e54=_0x2035cd['mapper'][_0x473c('0xc')](_0x917d56[_0x473c('0x19')]);if(!(_0x917d56['item']['is'](_0x473c('0x25'))&&_0x28d748[_0x473c('0x71')][_0x473c('0xbd')][_0x473c('0xc0')](_0x917d56[_0x473c('0x19')])&&!_0x166e54[_0x473c('0xbb')](_0x473c('0xc4'))))return;const {id:_0x2d8b47}=this[_0x473c('0x94')](_0x917d56[_0x473c('0x110')]);_0x2035cd['writer'][_0x473c('0x13a')]([_0x473c('0x8c'),_0x473c('0x14')],_0x166e54),_0x2035cd[_0x473c('0x47')][_0x473c('0x7')](_0x473c('0xd7'),_0x2d8b47,_0x166e54),_0x2035cd[_0x473c('0x28')]['bindElementToMarker'](_0x166e54,_0x917d56[_0x473c('0x110')]),_0x2867cf&&(this[_0x473c('0xed')]['includes'](_0x917d56[_0x473c('0x110')])?_0x2035cd[_0x473c('0x47')][_0x473c('0x13a')](_0x473c('0x8a'),_0x166e54):_0x2035cd[_0x473c('0x47')][_0x473c('0x12a')](_0x473c('0x8a'),_0x166e54));for(const _0x663a7e of _0x28d748['model'][_0x473c('0x79')](_0x917d56[_0x473c('0x19')])['getItems']())_0x2035cd[_0x473c('0xb9')][_0x473c('0xc3')](_0x663a7e,_0x408ba9['name']);_0x2035cd['consumable'][_0x473c('0xc3')](_0x917d56['item'],_0x408ba9['name']);};_0x28d748[_0x473c('0x102')]['for'](_0x473c('0x1f'))['add'](_0x5f2ee1=>{_0x5f2ee1['on'](_0x473c('0x76'),(_0x267c45,_0x2a57c1,_0x37335d)=>{_0x37335d[_0x473c('0x51')][_0x473c('0xd4')]&&_0x8f4ab7({'showActiveMarkers':!0x1})(_0x267c45,_0x2a57c1,_0x37335d);},{'priority':_0x473c('0x9b')});}),_0x28d748[_0x473c('0x102')][_0x473c('0x129')](_0x473c('0x1f'))[_0x473c('0xfb')]({'model':_0x473c('0x130'),'view':(_0x321e0b,_0x38187d)=>_0x38187d[_0x473c('0x51')][_0x473c('0xd4')]?null:{'group':_0x473c('0x130'),'name':_0x321e0b[_0x473c('0x88')](0xb)}}),_0x28d748[_0x473c('0x102')][_0x473c('0x129')](_0x473c('0xe4'))[_0x473c('0x120')]({'view':{'name':_0x473c('0x130'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x6ff798,{writer:_0x57aebc})=>{let _0x5d9f6c=_0x473c('0x12b')+_0x6ff798['getAttribute']('suggestion-type')+':'+_0x6ff798[_0x473c('0x133')]('id');return _0x6ff798[_0x473c('0x133')](_0x473c('0x3f'))&&(_0x5d9f6c+=':'+_0x6ff798[_0x473c('0x133')](_0x473c('0x3f'))),_0x57aebc[_0x473c('0x24')](_0x473c('0x64'),{'data-name':_0x5d9f6c});}}),_0x28d748['conversion'][_0x473c('0x129')](_0x473c('0xe4'))[_0x473c('0x2a')]({'view':_0x473c('0x130')}),_0x28d748[_0x473c('0x102')][_0x473c('0x129')]('editingDowncast')[_0x473c('0xcf')](_0x135631=>{_0x135631['on'](_0x473c('0x76'),_0x8f4ab7(),{'priority':_0x473c('0x121')});}),_0x28d748[_0x473c('0x102')][_0x473c('0x129')](_0x473c('0xf6'))[_0x473c('0xcf')](_0x3c1861=>{_0x3c1861['on'](_0x473c('0x107'),(_0xf1cdf3,_0xf9d381,_0x294048)=>{const _0x267a7d=_0x294048[_0x473c('0x28')]['markerNameToElements'](_0xf9d381[_0x473c('0x110')]);if(_0x267a7d)for(const _0x2cf7bb of _0x267a7d)_0x2cf7bb[_0x473c('0xbb')]('addHighlight')||(_0x294048['writer'][_0x473c('0x12a')]([_0x473c('0x8c'),_0x473c('0x14'),'ck-suggestion-marker--active'],_0x2cf7bb),_0x294048[_0x473c('0x47')][_0x473c('0x68')]('data-suggestion',_0x2cf7bb),_0x294048[_0x473c('0x28')][_0x473c('0x1b')](_0x2cf7bb,_0xf9d381[_0x473c('0x110')]));},{'priority':_0x473c('0x121')});}),_0x28d748[_0x473c('0x71')]['document'][_0x473c('0xbc')](_0x3920f2=>{let _0x43d2a9=!0x1;const _0x3f7a39=Array['from'](_0x28d748[_0x473c('0x71')]['document'][_0x473c('0xf7')][_0x473c('0x42')]()),_0x5f11c6=new Set();for(const {name:_0x24854f,data:_0x32f140}of _0x3f7a39){const {group:_0x5e270a,type:_0x107127,id:_0xbf4a58}=this[_0x473c('0x94')](_0x24854f);if('suggestion'!==_0x5e270a)continue;const _0x4d47b1=this[_0x473c('0x33')][_0x473c('0x115')](_0xbf4a58);if(null!=_0x32f140[_0x473c('0x9')]){_0x473c('0xe7')==_0x107127&&(_0x43d2a9=_0x43d2a9||Mt(_0x32f140['newRange'],_0x24854f,_0x3920f2,_0x28d748[_0x473c('0x71')]['schema']));if(_0x32f140[_0x473c('0x9')][_0x473c('0xdc')]||'$graveyard'==_0x32f140[_0x473c('0x9')][_0x473c('0xb3')][_0x473c('0x91')]||'formatBlock'==_0x107127&&!Nt(_0x32f140[_0x473c('0x9')])||_0x473c('0x37')==_0x107127&&!(!_t(_0x5f5482=_0x32f140['newRange'])&&!function(_0x5b1e80){return _0x5b1e80['start'][_0x473c('0x34')]==_0x5b1e80[_0x473c('0xe0')][_0x473c('0x4d')]&&_0x5b1e80[_0x473c('0xbf')][_0x473c('0xde')];}(_0x5f5482)))_0x3920f2['removeMarker'](_0x24854f),_0x43d2a9=!0x0;else{if(!_0x4d47b1||!_0x4d47b1[_0x473c('0x6a')])continue;_0x5f11c6[_0x473c('0xcf')](_0x4d47b1);}}}var _0x5f5482;return _0x5f11c6[_0x473c('0xc6')]>0x0&&(_0x43d2a9=!!this[_0x473c('0x48')](_0x5f11c6)||_0x43d2a9),_0x43d2a9;}),_0x28d748[_0x473c('0x71')][_0x473c('0xe')][_0x473c('0xbc')](_0x5486b5=>{let _0x18197c=!0x1;for(const _0x3de3f2 of _0x28d748['model']['document'][_0x473c('0xf7')][_0x473c('0x113')]()){if(_0x473c('0xdb')!=_0x3de3f2[_0x473c('0x11e')])continue;const _0x3b14e2=_0x3de3f2[_0x473c('0x3e')]['getShiftedBy'](_0x3de3f2[_0x473c('0x70')]);if(_0x3b14e2['isAtEnd'])for(const _0x21f24d of this[_0x473c('0x33')][_0x473c('0x3b')]()){if(_0x21f24d['isMultiRange']||!_0x21f24d[_0x473c('0x6a')])continue;if(_0x473c('0xff')!=_0x21f24d[_0x473c('0x11e')])continue;const _0x2a0ce7=_0x21f24d[_0x473c('0x9a')]();if(_0x2a0ce7[_0x473c('0xbf')][_0x473c('0x34')]!=_0x2a0ce7['end'][_0x473c('0x34')]&&_0x2a0ce7['end'][_0x473c('0x1c')](_0x3de3f2['position'])){const _0x167ea4=_0x28d748[_0x473c('0x71')][_0x473c('0x38')](_0x2a0ce7['start'],_0x3b14e2);_0x5486b5['updateMarker'](_0x21f24d[_0x473c('0xd9')](),{'range':_0x167ea4}),_0x18197c=!0x0;}}}return _0x18197c;}),_0x28d748[_0x473c('0x71')][_0x473c('0x5a')]['on']('update:suggestion',(_0x2bebb2,_0x2177a9,_0x41a8fd)=>{if(null==_0x41a8fd){const {id:_0x135067}=this[_0x473c('0x94')](_0x2177a9['name']),_0x4ec91a=this[_0x473c('0x33')][_0x473c('0x115')](_0x135067);_0x4ec91a&&_0x4ec91a['addMarkerName'](_0x2177a9[_0x473c('0x11')]);}}),_0x28d748['model']['document']['on'](_0x473c('0x0'),()=>{const _0x491404=Array[_0x473c('0xdd')](_0x28d748[_0x473c('0x71')]['document'][_0x473c('0xf7')][_0x473c('0x42')]())[_0x473c('0x4b')](_0x5f306f=>_0x473c('0x130')===this[_0x473c('0x94')](_0x5f306f[_0x473c('0x11')])[_0x473c('0x116')]);if(0x0===_0x491404['length'])return;_0x491404[_0x473c('0x31')]((_0x55e829,_0x3a89b0)=>{const _0x4b532e=_0x55e829[_0x473c('0x23')][_0x473c('0x54')],_0x37d0c0=_0x3a89b0[_0x473c('0x23')]['oldRange'];return null===_0x4b532e&&null===_0x37d0c0?0x0:null===_0x4b532e&&null!==_0x37d0c0?-0x1:null!==_0x4b532e&&null===_0x37d0c0?0x1:_0x4b532e[_0x473c('0xbf')][_0x473c('0x56')](_0x37d0c0['start'])?-0x1:0x1;});const _0x51915d=new Set(),_0x2b11b6=new Set();for(const {name:_0x2cc9e2,data:_0x230833}of _0x491404){const {id:_0x4642c0}=this['_splitMarkerName'](_0x2cc9e2);if(null===_0x230833['oldRange']){const _0x2f1fda=this[_0x473c('0x99')](_0x2cc9e2);_0x2b11b6[_0x473c('0xcf')](_0x2f1fda);}else{const _0x5b5a31=this[_0x473c('0x33')][_0x473c('0x115')](_0x4642c0);null!==_0x230833[_0x473c('0x9')]||_0x5b5a31[_0x473c('0x6a')]?(_0x51915d[_0x473c('0xcf')](_0x5b5a31[_0x473c('0x11b')]),_0x2b11b6['add'](_0x5b5a31)):this[_0x473c('0xd')](_0x5b5a31);}}_0x2b11b6[_0x473c('0xc6')]>0x0&&this[_0x473c('0x13')](_0x2b11b6);for(const _0x3cbd84 of _0x51915d)this[_0x473c('0xce')]('suggestionChanged',_0x3cbd84);}),_0x28d748['model']['on'](_0x473c('0xcb'),(_0x173fd3,_0x45fbad)=>{const _0x357ec1=_0x45fbad[0x0];if(!this[_0x473c('0x33')][_0x473c('0xc6')])return;if(!_0x357ec1[_0x473c('0x111')])return;if(_0x357ec1[_0x473c('0x81')][_0x473c('0xae')]||!_0x357ec1['batch'][_0x473c('0x67')])return;let _0x3c65ee,_0x298aef;switch(_0x357ec1[_0x473c('0x11e')]){case _0x473c('0xdb'):_0x3c65ee=_0x28d748[_0x473c('0x71')]['createPositionAt'](_0x357ec1[_0x473c('0x3e')]),_0x298aef=_0x3c65ee[_0x473c('0xa7')](_0x357ec1[_0x473c('0x11c')]);break;case _0x473c('0x9f'):_0x3c65ee=_0x28d748[_0x473c('0x71')]['createPositionAt'](_0x357ec1['splitPosition']),_0x298aef=_0x28d748[_0x473c('0x71')][_0x473c('0xf3')](_0x357ec1[_0x473c('0xc1')]);break;case _0x473c('0xab'):_0x3c65ee=_0x28d748[_0x473c('0x71')]['createPositionAt'](_0x357ec1[_0x473c('0xda')]),_0x298aef=_0x3c65ee[_0x473c('0xa7')](_0x357ec1['howMany']);break;default:return;}const _0x541d6c=_0x28d748['model'][_0x473c('0x38')](_0x3c65ee,_0x298aef);_0x28d748[_0x473c('0x71')]['change'](()=>{for(const {suggestion:_0x1fd16a,meta:_0xafc5be}of this[_0x473c('0x66')](_0x541d6c)){if(_0x1fd16a[_0x473c('0x36')])continue;if(_0x473c('0xe7')==_0x1fd16a[_0x473c('0x11e')])continue;const _0xc04407=_0x1fd16a[_0x473c('0x23')]&&_0x1fd16a[_0x473c('0x23')][_0x473c('0x15')];(_0x473c('0xff')!=_0x1fd16a[_0x473c('0x11e')]||'split'==_0x357ec1[_0x473c('0x11e')]&&!_0xc04407)&&(_0xafc5be[_0x473c('0x135')]||_0x473c('0xb8')==_0x1fd16a[_0x473c('0x11e')]&&_0xafc5be['isOwn']||_0x1fd16a[_0x473c('0x9a')]()[_0x473c('0xb7')](_0x541d6c)&&this[_0x473c('0xcc')](_0x1fd16a,_0x3c65ee,_0x298aef));}});},{'priority':_0x473c('0xe3')}),_0x28d748['model']['on'](_0x473c('0x2'),(_0x2b8243,_0x5b7af0)=>{const _0x87b131=_0x5b7af0[0x0],_0x1bdaeb=_0x5b7af0[0x1];if(_0x1bdaeb&&_0x1bdaeb[_0x473c('0x3d')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x473c('0xf4')][_0x473c('0x39')])return;if(_0x87b131[_0x473c('0xdc')])return;const _0x29182d=_0x28d748[_0x473c('0x71')]['schema'],{start:_0x558184,end:_0x5196df}=_0x87b131[_0x473c('0x9a')](),_0x457b3f=_0x558184[_0x473c('0xc7')]&&_0x29182d['isLimit'](_0x558184['nodeAfter'])?null:_0x29182d[_0x473c('0x10d')](_0x558184,_0x473c('0xee')),_0x29217a=_0x5196df[_0x473c('0x4d')]&&_0x29182d[_0x473c('0x106')](_0x5196df['nodeBefore'])?null:_0x29182d[_0x473c('0x10d')](_0x5196df,_0x473c('0xa2')),_0x1a293b=_0x28d748[_0x473c('0x71')][_0x473c('0x38')](_0x457b3f?_0x457b3f['start']:_0x558184,_0x29217a?_0x29217a[_0x473c('0xe0')]:_0x5196df);_0x28d748[_0x473c('0x71')]['change'](_0x45fe82=>{this[_0x473c('0x7f')](_0x1a293b);const _0x11f9ab=_0x28d748[_0x473c('0x71')]['schema'][_0x473c('0x10d')](_0x1a293b[_0x473c('0xbf')]);_0x87b131['is'](_0x473c('0x119'))?_0x45fe82[_0x473c('0xfc')](_0x11f9ab):_0x87b131[_0x473c('0x142')](_0x11f9ab);}),_0x2b8243[_0x473c('0x2b')]();},{'priority':_0x12b64f[_0x473c('0xc9')]+0xa}),_0x28d748['model']['on'](_0x473c('0x5d'),(_0x3a37b7,_0x3ef6f4)=>{const _0x4480f8=_0x3ef6f4[_0x3ef6f4[_0x473c('0x70')]-0x1];_0x4480f8&&_0x4480f8[_0x473c('0x3d')]||this['_isForcedDefaultExecutionBlock']||this[_0x473c('0xf4')][_0x473c('0x39')]&&(_0x28d748[_0x473c('0x71')][_0x473c('0xac')](()=>{let _0x4db411=_0x28d748['model']['insertContent'](_0x3ef6f4[0x0],_0x3ef6f4[0x1],_0x3ef6f4[0x2],{'forceDefaultExecution':!0x0});if(!_0x4db411)return;_0x3a37b7['return']=_0x4db411['clone']();const _0x152803=_0x4db411['end']['nodeBefore'],_0x28b466=_0x28d748[_0x473c('0x71')][_0x473c('0xbd')];_0x152803&&_0x28b466[_0x473c('0xc0')](_0x152803)&&!_0x28b466['isObject'](_0x152803)&&(_0x4db411=_0x28d748[_0x473c('0x71')]['createRange'](_0x4db411[_0x473c('0xbf')],_0x28d748['model'][_0x473c('0xf3')](_0x152803,_0x473c('0xe0')))),this[_0x473c('0x140')](_0x4db411);}),_0x3a37b7[_0x473c('0x2b')]());},{'priority':_0x473c('0x121')}),this['editor'][_0x473c('0x101')][_0x473c('0xcf')](_0x473c('0xe2'),this[_0x473c('0xf4')]),this['enableCommand'](_0x473c('0xe2'));const _0x53bdbf=new _0x306943(_0x28d748,this[_0x473c('0x33')]);_0x28d748[_0x473c('0x101')][_0x473c('0xcf')]('acceptSuggestion',_0x53bdbf),this[_0x473c('0xa6')](_0x473c('0x93'));const _0x1487b0=new _0x3b4797(_0x28d748,this[_0x473c('0x33')]);_0x28d748[_0x473c('0x101')]['add'](_0x473c('0x4a'),_0x1487b0),this[_0x473c('0xa6')](_0x473c('0x4a')),_0x28d748[_0x473c('0x101')][_0x473c('0xcf')](_0x473c('0x4e'),new _0x151472(_0x28d748,_0x53bdbf,this['_suggestions'])),this['enableCommand'](_0x473c('0x4e')),_0x28d748[_0x473c('0x101')][_0x473c('0xcf')]('discardAllSuggestions',new _0x151472(_0x28d748,_0x1487b0,this[_0x473c('0x33')])),this[_0x473c('0xa6')](_0x473c('0x84')),_0x28d748[_0x473c('0x101')][_0x473c('0xcf')](_0x473c('0x100'),new _0x4fa26b(_0x28d748,_0x53bdbf,this[_0x473c('0x33')])),this[_0x473c('0xa6')](_0x473c('0x100')),_0x28d748['commands']['add'](_0x473c('0x21'),new _0x4fa26b(_0x28d748,_0x1487b0,this['_suggestions'])),this['enableCommand'](_0x473c('0x21'));const _0x46e32c=_0x28d748[_0x473c('0xb2')]['get'](_0x473c('0x77'));this['listenTo'](_0x46e32c,_0x473c('0x5f'),(_0x594709,{threadId:_0x1af553})=>{const _0x558324=this[_0x473c('0x33')]['get'](_0x1af553);_0x558324&&_0x558324[_0x473c('0xb4')]&&0x1===_0x558324['commentThread'][_0x473c('0x70')]&&this[_0x473c('0xc5')](_0x1af553,{'hasComments':!0x0});},{'priority':'low'}),this[_0x473c('0x69')](_0x46e32c,_0x473c('0x12f'),(_0x4afced,{threadId:_0x1ca873})=>{const _0x17f929=this['_suggestions'][_0x473c('0x115')](_0x1ca873);_0x17f929&&_0x17f929[_0x473c('0xb4')]&&!_0x17f929[_0x473c('0xb4')][_0x473c('0x70')]&&this[_0x473c('0xc5')](_0x1ca873,{'hasComments':!0x1});},{'priority':_0x473c('0xb')});}set[_0x473c('0xdf')](_0x11652b){if(this['_adapter'])throw new _0x5b63fa(_0x473c('0x89'),this);this[_0x473c('0x6b')]=_0x11652b;}get[_0x473c('0xdf')](){return this[_0x473c('0x6b')];}[_0x473c('0xe5')]({skipNotAttached:_0x10263b=!0x1,toJSON:_0x2baace=!0x1}={}){const _0x47bbf5=[];for(const _0x29e5dc of this[_0x473c('0x33')][_0x473c('0x3b')]())_0x10263b&&!_0x29e5dc[_0x473c('0x6a')]||_0x47bbf5['push'](_0x29e5dc);return _0x2baace?_0x47bbf5[_0x473c('0x12d')](_0x38845c=>_0x38845c[_0x473c('0xbe')]()):_0x47bbf5;}[_0x473c('0x35')](_0x40b602){const _0x4999f9=this[_0x473c('0x33')][_0x473c('0x115')](_0x40b602);if(!_0x4999f9)throw new _0x5b63fa(_0x473c('0x16'),this);return _0x4999f9;}[_0x473c('0x12')](_0xa759a7){return this['_suggestions']['has'](_0xa759a7);}[_0x473c('0x11a')](_0x53e41c){const {authorId:_0x1e1308,id:_0x133a03,attributes:_0x1c86d1}=_0x53e41c,[_0x3ca89a,_0x190561]=_0x53e41c[_0x473c('0x11e')]['split'](':'),_0x1d0cef=this['_suggestions'][_0x473c('0x115')](_0x133a03)||this['_createSuggestion'](_0x3ca89a,_0x190561,_0x133a03,_0x1e1308,_0x1c86d1);if(this[_0x473c('0x5b')](_0x1d0cef),this[_0x473c('0x8b')](_0x1d0cef,_0x3ca89a,_0x190561||null,_0x1e1308),_0x1d0cef[_0x473c('0x13e')]=_0x53e41c[_0x473c('0x13e')],_0x1d0cef[_0x473c('0x11f')]=!0x0,_0x1c86d1&&_0x1c86d1[_0x473c('0x1e')]){const _0xb0ce97=_0x1c86d1[_0x473c('0x1e')],_0x5b39c5=this[_0x473c('0xef')](_0xb0ce97['authorName']);_0x1d0cef[_0x473c('0x123')]=_0xb0ce97[_0x473c('0x13e')],_0x1d0cef[_0x473c('0x2e')]=_0x5b39c5,_0x1d0cef[_0x473c('0x43')]=!0x0;}else _0x1d0cef[_0x473c('0x123')]=_0x53e41c[_0x473c('0x13e')];switch(_0x53e41c[_0x473c('0x23')]&&(_0x1d0cef[_0x473c('0x23')]=_0x53e41c[_0x473c('0x23')]),_0x53e41c[_0x473c('0x1a')]&&(_0x1d0cef[_0x473c('0x1a')]=_0x53e41c[_0x473c('0x1a')]),this[_0x473c('0x6b')]&&this[_0x473c('0x6b')][_0x473c('0xaf')]||(_0x1d0cef[_0x473c('0x8f')]=!0x0),this['_suggestionState'][_0x473c('0x115')](_0x1d0cef)){case _0x473c('0xa9'):this[_0x473c('0x103')][_0x473c('0x118')](_0x1d0cef,_0x473c('0x105'));break;case _0x473c('0x96'):_0x1d0cef[_0x473c('0x6a')]?(this['_refreshSuggestionsChain'](new Set([_0x1d0cef])),this[_0x473c('0x48')](new Set([_0x1d0cef])),this[_0x473c('0x103')][_0x473c('0x118')](_0x1d0cef,'ready'),this[_0x473c('0xce')](_0x473c('0xa4'),_0x1d0cef)):this[_0x473c('0x103')][_0x473c('0x118')](_0x1d0cef,'removed');}return _0x1d0cef;}[_0x473c('0x93')](_0x47ba6d){this[_0x473c('0x3d')](()=>{this[_0x473c('0x7b')][_0x473c('0x71')][_0x473c('0xac')](()=>{for(const _0x45da28 of _0x47ba6d['getAllAdjacentSuggestions']())_0x45da28[_0x473c('0xa5')]();});});}[_0x473c('0x4a')](_0x528041){this[_0x473c('0x3d')](()=>{this[_0x473c('0x7b')][_0x473c('0x71')][_0x473c('0xac')](()=>{for(const _0x43ac5b of _0x528041[_0x473c('0x2c')]())_0x43ac5b['discard']();});});}[_0x473c('0xa6')](_0x2f7e12,_0x39059a){const _0x2041a0=this[_0x473c('0x7b')][_0x473c('0x101')][_0x473c('0x115')](_0x2f7e12);if(!_0x2041a0)throw new _0x5b63fa(_0x473c('0xf5'),this,{'commandName':_0x2f7e12});this[_0x473c('0x85')]['add'](_0x2041a0),_0x39059a&&_0x2041a0['on']('execute',(_0xf00d81,_0x2a0848)=>{this[_0x473c('0xf4')][_0x473c('0x39')]&&(this['_isForcedDefaultExecutionBlock']||_0x2a0848[_0x473c('0x70')]>0x0&&_0x2a0848[_0x2a0848[_0x473c('0x70')]-0x1]&&_0x2a0848[_0x2a0848[_0x473c('0x70')]-0x1]['forceDefaultExecution']||(_0x39059a((..._0x370b64)=>_0x2041a0[_0x473c('0x61')](..._0x370b64,{'forceDefaultExecution':!0x0}),..._0x2a0848),_0xf00d81[_0x473c('0x2b')]()));},{'priority':_0x473c('0x121')});}[_0x473c('0x3d')](_0x639ba3){let _0x42b75a,_0x3ffdde;const _0x2bdaf1=this[_0x473c('0x86')];this[_0x473c('0x86')]=!0x0;try{_0x42b75a=_0x639ba3();}catch(_0x3c4981){_0x3ffdde=_0x3c4981;}return _0x2bdaf1||(this[_0x473c('0x86')]=!0x1),_0x3ffdde&&_0x5b63fa[_0x473c('0x12c')](_0x3ffdde,this),_0x42b75a;}[_0x473c('0x140')](_0xbb8a49,_0x5704b3=null,_0x49671f={}){if(_0xbb8a49[_0x473c('0xdc')])return null;const _0x570476=this['editor'][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x136'))['me'];for(const {suggestion:_0x38f448,meta:_0x1cb059}of this['_findSuggestions'](_0xbb8a49,_0x473c('0xb8')))if(_0x1cb059['isOwn']){if(!_0x1cb059[_0x473c('0x10e')]){if(_0x1cb059[_0x473c('0x135')]){if(!this[_0x473c('0x60')]||!Ut(_0x38f448,_0x49671f))continue;return _0x38f448;}if(Ut(_0x38f448,_0x49671f))return _0x38f448;this['_breakSuggestionMarker'](_0x38f448,_0xbb8a49[_0x473c('0xbf')],_0xbb8a49[_0x473c('0xe0')]);break;}if(_0x5704b3==_0x38f448[_0x473c('0x124')]&&Ut(_0x38f448,_0x49671f)){const _0x524ab4=_0x38f448['getFirstRange']();return _0x524ab4[_0x473c('0xbf')][_0x473c('0x1c')](_0xbb8a49['end'])?this[_0x473c('0xf2')](_0x38f448,this[_0x473c('0x117')]['createRange'](_0xbb8a49['start'],_0x524ab4[_0x473c('0xe0')])):this[_0x473c('0xf2')](_0x38f448,this[_0x473c('0x117')][_0x473c('0x38')](_0x524ab4['start'],_0xbb8a49[_0x473c('0xe0')])),_0x38f448;}}const _0x5c8eeb=_0x28debd(),_0x3054dd=_0x570476['id'],_0x44f400=_0x5704b3?_0x473c('0x59')+_0x5704b3:_0x473c('0xb8'),_0x299703=this[_0x473c('0x20')]({'id':_0x5c8eeb,'type':_0x44f400,'createdAt':new Date(),'authorId':_0x3054dd,'attributes':_0x49671f});return this[_0x473c('0x122')](_0x44f400,_0x5c8eeb,_0x3054dd,_0xbb8a49),_0x299703;}[_0x473c('0xd8')](_0xe642fc,_0x511a34=_0x473c('0xaa'),_0x1e162c={}){const _0x34c376=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x136'))['me'],_0x905946=this['_suggestionFactory'][_0x473c('0x112')](_0x473c('0xb8'),_0x511a34,_0x473c('0x8e'));for(const _0x328dc6 of this['getSuggestions']())if(_0x328dc6[_0x473c('0x2e')]['id']==_0x34c376['id']&&_0x473c('0xb8')==_0x328dc6[_0x473c('0x11e')]&&_0x328dc6[_0x473c('0x124')]==_0x511a34&&Ut(_0x328dc6,_0x1e162c)&&(_0x905946(_0x328dc6[_0x473c('0x30')](),_0xe642fc)||_0x905946(_0xe642fc,_0x328dc6[_0x473c('0x30')]()))){for(const _0x331a58 of _0xe642fc)_0x328dc6[_0x473c('0xf8')](_0x331a58);return _0x328dc6;}for(const {suggestion:_0x3586c5,meta:_0x8fe25d}of this[_0x473c('0x66')](_0xe642fc,_0x473c('0xb8'))){if(!_0x8fe25d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x8fe25d[_0x473c('0x135')])continue;if(!Ut(_0x3586c5,_0x1e162c))continue;let _0x33b46a=!0x0;for(const _0x288a15 of _0x3586c5['getRanges']())for(const _0xff4d10 of _0xe642fc)if(!_0x288a15[_0x473c('0xb7')](_0xff4d10)){_0x33b46a=!0x1;break;}if(_0x33b46a)return _0x3586c5;}const _0x23932c=_0x28debd(),_0x4f3ccc=_0x34c376['id'],_0x565e74=_0x473c('0x59')+_0x511a34,_0x59999f=this[_0x473c('0x20')]({'id':_0x23932c,'type':_0x565e74,'createdAt':new Date(),'authorId':_0x4f3ccc,'attributes':_0x1e162c});for(const _0x250376 of _0xe642fc)this[_0x473c('0x122')](_0x565e74,_0x23932c,_0x4f3ccc,_0x250376,_0x40a5e8[_0x473c('0x13f')]());return _0x59999f;}[_0x473c('0x4c')](_0x45b6d3,_0x17cc7c,_0x236120=null,_0x22770f={}){if(_0x236120=_0x236120||$t(_0x17cc7c),_0x45b6d3[_0x473c('0xdc')])return null;if(_0x473c('0x26')===this['_trackFormatChanges']){const _0x421610=this[_0x473c('0x63')]['getSuggestionCallback'](_0x473c('0xe7'),_0x236120,'accept');return this[_0x473c('0x3d')](()=>_0x421610([_0x45b6d3],_0x17cc7c,_0x22770f)),null;}const _0x20169a=this['editor'][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x136'))['me'],_0x3eddc2=[];if('always'!==this[_0x473c('0x18')])for(const {suggestion:_0x146594,meta:_0x4355b9}of this[_0x473c('0x66')](_0x45b6d3,'insertion'))_0x4355b9[_0x473c('0x128')]&&!_0x4355b9[_0x473c('0xe9')]&&_0x3eddc2[_0x473c('0x137')](..._0x146594['getRanges']());const _0x8f352a=function(_0x555fb8,_0x2484b7){const _0x470d96=[];for(const _0x1b1f6a of _0x2484b7){const _0x33ec17=_0x555fb8['getIntersection'](_0x1b1f6a);_0x33ec17&&_0x470d96[_0x473c('0x137')](_0x33ec17);}return _0x470d96;}(_0x45b6d3,_0x3eddc2),_0x40e463=function(_0x414729,_0x8de933){const _0xdc2af4=[_0x414729];for(const _0x1c8962 of _0x8de933){let _0x20a639=0x0;for(;_0x20a639<_0xdc2af4[_0x473c('0x70')];){const _0x3f8ce6=_0xdc2af4[_0x20a639]['getDifference'](_0x1c8962);_0xdc2af4['splice'](_0x20a639,0x1,..._0x3f8ce6),_0x20a639+=_0x3f8ce6[_0x473c('0x70')];}}return _0xdc2af4;}(_0x45b6d3,_0x3eddc2);_0x8f352a[_0x473c('0x70')]&&this['_model']['change'](()=>{for(const _0xe189de of _0x8f352a){const _0x2c52ef=this[_0x473c('0x63')][_0x473c('0x112')]('formatInline',_0x236120,_0x473c('0xa5'));this['forceDefaultExecution'](()=>_0x2c52ef([_0xe189de],_0x17cc7c,_0x22770f));}});for(const _0x1f678c of _0x40e463){let _0x2f6d73=null,_0x5e3491=_0x1f678c['start'],_0x4f8a33=_0x1f678c[_0x473c('0xe0')];for(const {suggestion:_0x3fb047,meta:_0x5347a2}of this['_findSuggestions'](_0x1f678c,_0x473c('0xe7'))){if(!_0x5347a2[_0x473c('0x128')])continue;if(_0x3fb047[_0x473c('0x124')]!=_0x236120)continue;if(!Ut(_0x3fb047,_0x22770f))continue;const _0x3cb31c=_0x3fb047['getFirstRange']();if(_0x3cb31c[_0x473c('0xb7')](_0x1f678c,!0x0))return null;_0x5e3491=_0x5e3491[_0x473c('0x56')](_0x3cb31c[_0x473c('0xbf')])?_0x5e3491:_0x3cb31c['start'],_0x4f8a33=_0x4f8a33[_0x473c('0x6c')](_0x3cb31c[_0x473c('0xe0')])?_0x4f8a33:_0x3cb31c[_0x473c('0xe0')],_0x2f6d73?_0x3cb31c[_0x473c('0xbf')][_0x473c('0x56')](_0x2f6d73[_0x473c('0x9a')]()[_0x473c('0xbf')])?(_0x2f6d73[_0x473c('0xd6')](),_0x2f6d73=_0x3fb047):_0x3fb047[_0x473c('0xd6')]():_0x2f6d73=_0x3fb047;}const _0x167a97=this['_model']['createRange'](_0x5e3491,_0x4f8a33);if(_0x2f6d73)this[_0x473c('0xf2')](_0x2f6d73,_0x167a97);else{const _0x41cbea=_0x28debd(),_0x3b5d36=_0x20169a['id'];this[_0x473c('0x20')]({'id':_0x41cbea,'type':_0x473c('0xb1')+_0x236120,'data':_0x17cc7c,'createdAt':new Date(),'authorId':_0x3b5d36,'attributes':_0x22770f}),this[_0x473c('0x122')]('formatInline:'+_0x236120,_0x41cbea,_0x3b5d36,_0x167a97);}}return null;}[_0x473c('0x52')](_0x4d54d4,_0x5353d0,_0xef62af=[],_0xdda04f=null,_0x701984={}){_0x5353d0[_0x473c('0x80')]||(_0x5353d0[_0x473c('0x80')]=_0x5353d0['commandName']),_0x5353d0['multipleBlocks']=_0x4d54d4['is'](_0x473c('0xa8')),_0xdda04f=_0xdda04f||$t(_0x5353d0);const _0x1658ba=_0xef62af[_0x473c('0x12d')](_0x16ea10=>Rt(_0x16ea10,this[_0x473c('0x117')])),_0xc5996c=_0x4d54d4['is'](_0x473c('0xa8'))?_0x4d54d4:Rt(_0x4d54d4,this[_0x473c('0x117')]);if(_0x473c('0x26')===this['_trackFormatChanges']){const _0x72ebb2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdda04f,_0x473c('0xa5'));return this[_0x473c('0x3d')](()=>_0x72ebb2([_0xc5996c],_0x5353d0,_0x701984)),null;}_0x1658ba[_0x473c('0x137')](_0xc5996c);let _0x290b14=!0x0;for(const _0x3fdb5c of _0x1658ba)if(!this[_0x473c('0x7c')](_0x3fdb5c)){_0x290b14=!0x1;break;}if(_0x290b14&&'always'!==this[_0x473c('0x18')]){const _0x570bab=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xdda04f,_0x473c('0xa5'));return this[_0x473c('0x3d')](()=>_0x570bab([_0xc5996c],_0x5353d0,_0x701984)),null;}let _0x47cccb=null,_0xf08e90=_0xc5996c[_0x473c('0xbf')],_0x3b442b=_0xc5996c['end'];for(const {suggestion:_0x459586,meta:_0x4950f6}of this[_0x473c('0x66')](_0xc5996c,'formatBlock')){if(!_0x4950f6[_0x473c('0x128')])continue;if(_0x4950f6[_0x473c('0x10e')]||_0x4950f6['containsRangeInObject']||_0x4950f6[_0x473c('0xe9')])continue;if(_0x459586['data'][_0x473c('0x80')]!=_0x5353d0[_0x473c('0x80')])continue;if(!Ut(_0x459586,_0x701984))continue;const _0x3fd5e1=_0x459586[_0x473c('0x9a')]();if(_0x459586[_0x473c('0x124')]==_0xdda04f){if(_0x3fd5e1[_0x473c('0xb7')](_0xc5996c,!0x0))return null;_0xf08e90=_0xf08e90[_0x473c('0x56')](_0x3fd5e1['start'])?_0xf08e90:_0x3fd5e1[_0x473c('0xbf')],_0x3b442b=_0x3b442b[_0x473c('0x6c')](_0x3fd5e1[_0x473c('0xe0')])?_0x3b442b:_0x3fd5e1[_0x473c('0xe0')],_0x47cccb?_0x3fd5e1[_0x473c('0xbf')][_0x473c('0x56')](_0x47cccb[_0x473c('0x9a')]()[_0x473c('0xbf')])?(_0x47cccb['removeMarkers'](),_0x47cccb=_0x459586):_0x459586[_0x473c('0xd6')]():_0x47cccb=_0x459586;}else{const _0xcb512f=_0xc5996c['getIntersection'](_0x3fd5e1);this['_cutOutSuggestionMarker'](_0x459586,_0xcb512f);}}const _0x22b4a4=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x136'))['me'],_0x5811a0=_0x28debd(),_0x24e4a8=_0x22b4a4['id'];if(_0x47cccb)return this[_0x473c('0xf2')](_0x47cccb,this['_model'][_0x473c('0x38')](_0xf08e90,_0x3b442b)),_0x47cccb;{const _0x2a957a=this[_0x473c('0x20')]({'id':_0x5811a0,'type':_0x473c('0x9d')+_0xdda04f,'data':_0x5353d0,'createdAt':new Date(),'authorId':_0x24e4a8,'attributes':_0x701984});return this['_addSuggestionMarker']('formatBlock:'+_0xdda04f,_0x5811a0,_0x24e4a8,this['_model']['createRange'](_0xf08e90,_0x3b442b)),_0x2a957a;}}['markMultiRangeBlockFormat'](_0x2a716c,_0x56bf7c,_0x385487=[],_0x1880ab=null,_0x3ca737={}){_0x56bf7c['formatGroupId']||(_0x56bf7c[_0x473c('0x80')]=_0x56bf7c[_0x473c('0x4f')]);const _0x4a939f=_0x2a716c[0x0];_0x56bf7c[_0x473c('0x15')]=_0x4a939f['is'](_0x473c('0xa8')),_0x1880ab=_0x1880ab||$t(_0x56bf7c);const _0x1c6254=_0x385487['map'](_0x147738=>Rt(_0x147738,this[_0x473c('0x117')])),_0x2ca6a2=_0x4a939f['is']('range')?_0x2a716c:_0x2a716c[_0x473c('0x12d')](_0x22f473=>Rt(_0x22f473,this[_0x473c('0x117')]));if('never'===this[_0x473c('0x18')]){const _0x58b814=this[_0x473c('0x63')][_0x473c('0x112')](_0x473c('0xff'),_0x1880ab,_0x473c('0xa5'));return this['forceDefaultExecution'](()=>_0x58b814(_0x2ca6a2,_0x56bf7c,_0x3ca737)),null;}_0x1c6254[_0x473c('0x137')](..._0x2ca6a2);let _0x4622c0=!0x0;for(const _0x94538b of _0x1c6254)if(!this[_0x473c('0x7c')](_0x94538b)){_0x4622c0=!0x1;break;}if(_0x4622c0&&_0x473c('0x44')!==this[_0x473c('0x18')]){const _0x4ec86d=this[_0x473c('0x63')]['getSuggestionCallback'](_0x473c('0xff'),_0x1880ab,_0x473c('0xa5'));return this[_0x473c('0x3d')](()=>_0x4ec86d(_0x2ca6a2,_0x56bf7c,_0x3ca737)),null;}const _0x19e11a=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')]('Users')['me'];for(const _0x5595e3 of this[_0x473c('0xe5')]()){if(_0x5595e3['author']['id']!=_0x19e11a['id'])continue;if('formatBlock'!=_0x5595e3[_0x473c('0x11e')]||_0x5595e3[_0x473c('0x23')][_0x473c('0x80')]!=_0x56bf7c['formatGroupId'])continue;if(!Ut(_0x5595e3,_0x3ca737))continue;const _0x3525e4=_0x5595e3['subType']==_0x1880ab;for(let _0x299da6=0x0;_0x299da6<_0x2ca6a2[_0x473c('0x70')];_0x299da6++){const _0x55c2fb=_0x2ca6a2[_0x299da6];for(const _0x4ad0fa of _0x5595e3[_0x473c('0x3c')]()){const _0x5019d6=_0x4ad0fa[_0x473c('0x95')]();if(_0x55c2fb[_0x473c('0x1c')](_0x5019d6)){_0x3525e4?(_0x2ca6a2[_0x473c('0x49')](_0x299da6,0x1),_0x299da6--):_0x5595e3['removeMarker'](_0x4ad0fa[_0x473c('0x11')]);break;}}}}if(0x0==_0x2ca6a2[_0x473c('0x70')])return null;const _0x1f0fd5=this[_0x473c('0x63')][_0x473c('0x112')](_0x473c('0xff'),_0x1880ab,_0x473c('0x8e'));for(const _0xcb34f7 of this[_0x473c('0xe5')]())if(_0xcb34f7[_0x473c('0x2e')]['id']==_0x19e11a['id']&&'formatBlock'==_0xcb34f7[_0x473c('0x11e')]&&_0xcb34f7[_0x473c('0x23')][_0x473c('0x80')]==_0x56bf7c[_0x473c('0x80')]&&_0xcb34f7[_0x473c('0x124')]==_0x1880ab&&Ut(_0xcb34f7,_0x3ca737)&&(_0x1f0fd5(_0xcb34f7[_0x473c('0x30')](),_0x2ca6a2)||_0x1f0fd5(_0x2ca6a2,_0xcb34f7[_0x473c('0x30')]()))){for(const _0x1cc49d of _0x2ca6a2)_0xcb34f7[_0x473c('0xf8')](_0x1cc49d);return _0xcb34f7;}const _0x1d569f=_0x28debd(),_0x2950ed=_0x19e11a['id'],_0x52f331=_0x473c('0x9d')+_0x1880ab,_0x47557f=this[_0x473c('0x20')]({'id':_0x1d569f,'type':_0x52f331,'data':_0x56bf7c,'createdAt':new Date(),'authorId':_0x2950ed,'attributes':_0x3ca737});for(const _0x999bb8 of _0x2ca6a2)this[_0x473c('0x122')](_0x52f331,_0x1d569f,_0x2950ed,_0x999bb8,_0x40a5e8[_0x473c('0x13f')]());return _0x47557f;}[_0x473c('0x7f')](_0x46b496,_0x2b471c=null,_0x39b48a={}){if(_0x46b496[_0x473c('0xdc')])return null;const _0x3bcd7d=this['editor']['plugins']['get']('Users')['me'],_0x26948d=new _0x11089b(_0x46b496[_0x473c('0xbf')],_0x46b496[_0x473c('0xe0')]);for(const {suggestion:_0x3a714b,meta:_0x5ba9cd}of this[_0x473c('0x66')](_0x26948d,_0x473c('0xb8')))if(_0x5ba9cd['isOwn']&&!_0x5ba9cd['isNextTo']){if(_0x3a714b[_0x473c('0x36')]){const _0x3322f9=_0x3a714b[_0x473c('0x30')]()['filter'](_0x13a26a=>_0x473c('0x53')!=_0x13a26a[_0x473c('0xb3')][_0x473c('0x91')]);_0x3322f9[_0x473c('0xd5')](_0x24841a=>_0x26948d[_0x473c('0xb7')](_0x24841a,!0x0))&&_0x3a714b[_0x473c('0xeb')]();if(_0x3322f9[_0x473c('0x2d')](_0x133d1d=>_0x133d1d[_0x473c('0xb7')](_0x26948d,!0x0))){const _0x3fde0e=this[_0x473c('0x63')][_0x473c('0x112')](_0x473c('0x37'),_0x2b471c,_0x473c('0xa5'));return this[_0x473c('0x3d')](()=>_0x3fde0e([_0x26948d],null,_0x39b48a)),null;}}else{const _0x584fa4=_0x26948d[_0x473c('0x13d')](_0x3a714b[_0x473c('0x9a')]());null!==_0x584fa4&&_0x3a714b[_0x473c('0x10')]([_0x584fa4],null,_0x39b48a);}}if(_0x26948d[_0x473c('0xd1')](),_0x26948d[_0x473c('0xdc')]||_0x473c('0x53')==_0x26948d['root'][_0x473c('0x91')])return null;let _0x476481=null,_0x3007bc=_0x26948d[_0x473c('0xbf')],_0x591297=_0x26948d[_0x473c('0xe0')];const _0x15c2b6=this[_0x473c('0x66')](_0x26948d,_0x473c('0x37'));for(const {suggestion:_0x574ac2,meta:_0x2c4e88}of _0x15c2b6){const _0x47aec8=this[_0x473c('0x117')]['createRange'](_0x3007bc,_0x591297);if(_0x2c4e88[_0x473c('0x128')]&&(this[_0x473c('0x60')]||!_0x2c4e88['containsRangeInObject']&&!_0x2c4e88[_0x473c('0xe9')])){if(_0x574ac2[_0x473c('0x36')]){if(!Ut(_0x574ac2,_0x39b48a))continue;let _0x4cff99=!0x0;for(const _0x22fd99 of _0x574ac2[_0x473c('0x30')]()){if(_0x22fd99[_0x473c('0xb7')](_0x47aec8,!0x0))return _0x574ac2;_0x47aec8['containsRange'](_0x22fd99)||(_0x4cff99=!0x1);}_0x4cff99&&_0x574ac2[_0x473c('0xeb')]();}else{const _0x3b0d51=_0x574ac2['getFirstRange']();if(_0x3b0d51[_0x473c('0xb7')](_0x47aec8,!0x0))return _0x574ac2;if(!Ut(_0x574ac2,_0x39b48a)){_0x47aec8[_0x473c('0xb7')](_0x3b0d51)?_0x574ac2[_0x473c('0xd6')]():_0x3b0d51[_0x473c('0xfa')](_0x3007bc)?_0x3007bc=_0x3b0d51[_0x473c('0xe0')]:_0x3b0d51[_0x473c('0xfa')](_0x591297)&&(_0x591297=_0x3b0d51[_0x473c('0xbf')]);continue;}_0x3007bc=_0x3007bc[_0x473c('0x56')](_0x3b0d51['start'])?_0x3007bc:_0x3b0d51['start'],_0x591297=_0x591297[_0x473c('0x6c')](_0x3b0d51[_0x473c('0xe0')])?_0x591297:_0x3b0d51[_0x473c('0xe0')],_0x39b48a=Object[_0x473c('0x125')]({},_0x574ac2['attributes']),_0x476481?_0x3b0d51[_0x473c('0xbf')][_0x473c('0x56')](_0x476481[_0x473c('0x9a')]()['start'])?(_0x476481['removeMarkers'](),_0x476481=_0x574ac2):_0x574ac2['removeMarkers']():_0x476481=_0x574ac2;}}}if(_0x476481)return this[_0x473c('0xf2')](_0x476481,this[_0x473c('0x117')][_0x473c('0x38')](_0x3007bc,_0x591297)),_0x476481;{const _0x5c0c1f=_0x28debd(),_0x36afed=this['_model'][_0x473c('0x38')](_0x3007bc,_0x591297),_0x379f57=_0x3bcd7d['id'],_0x25d3cb=_0x2b471c?'deletion:'+_0x2b471c:_0x473c('0x37'),_0x36436a=this[_0x473c('0x20')]({'id':_0x5c0c1f,'type':_0x25d3cb,'createdAt':new Date(),'authorId':_0x379f57,'attributes':_0x39b48a});return this['_addSuggestionMarker'](_0x25d3cb,_0x5c0c1f,_0x379f57,_0x36afed),_0x36436a;}}[_0x473c('0xb5')](_0x560dea,_0x2b4c26='multi',_0x6ce686={}){const _0x311cd4=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x136'))['me'],_0x4ea9b8=_0x560dea[_0x473c('0x12d')](_0xfe3770=>new _0x11089b(_0xfe3770[_0x473c('0xbf')],_0xfe3770[_0x473c('0xe0')])),_0x5ef926=new Set();for(const {suggestion:_0x4cebf1,meta:_0x25603d}of this[_0x473c('0x66')](_0x4ea9b8,_0x473c('0xb8')))_0x25603d[_0x473c('0x128')]&&!_0x25603d[_0x473c('0x10e')]&&_0x5ef926['add'](_0x4cebf1);for(const _0x1c63b6 of _0x5ef926)if(_0x1c63b6[_0x473c('0x36')]){const _0x29b46f=_0x1c63b6[_0x473c('0x30')]();(!_0x1c63b6[_0x473c('0x1a')]||!_0x1c63b6['attributes'][_0x473c('0xa3')])&&(_0x29b46f[_0x473c('0xd5')](_0x23c8a6=>_0x4ea9b8['some'](_0x4813f1=>_0x4813f1[_0x473c('0xb7')](_0x23c8a6,!0x0)))&&_0x1c63b6[_0x473c('0xeb')]());if(_0x4ea9b8[_0x473c('0xd5')](_0x48e409=>_0x29b46f[_0x473c('0x2d')](_0x261b87=>_0x261b87[_0x473c('0xb7')](_0x48e409,!0x0)))){const _0x37bbd4=this[_0x473c('0x63')][_0x473c('0x112')](_0x473c('0x37'),_0x2b4c26,_0x473c('0xa5'));return this['forceDefaultExecution'](()=>_0x37bbd4(_0x560dea,null,_0x6ce686)),null;}}else{const _0xe74332=_0x1c63b6[_0x473c('0x9a')]();_0x4ea9b8[_0x473c('0x2d')](_0x31a231=>_0x31a231[_0x473c('0xb7')](_0xe74332,!0x0))&&_0x1c63b6[_0x473c('0xeb')]();if(_0x4ea9b8[_0x473c('0xd5')](_0x27fd61=>_0xe74332[_0x473c('0xb7')](_0x27fd61,!0x0))){const _0x4b101d=this[_0x473c('0x63')]['getSuggestionCallback'](_0x473c('0x37'),_0x2b4c26,_0x473c('0xa5'));return this[_0x473c('0x3d')](()=>_0x4b101d(_0x4ea9b8,null,_0x6ce686)),null;}}const _0x3f8d76=this[_0x473c('0x63')][_0x473c('0x112')](_0x473c('0x37'),_0x2b4c26,_0x473c('0x8e'));let _0x2eb7a5=null;for(const _0x14aaea of this[_0x473c('0xe5')]())if(_0x14aaea[_0x473c('0x2e')]['id']==_0x311cd4['id']&&_0x14aaea[_0x473c('0x6a')]&&_0x473c('0x37')==_0x14aaea[_0x473c('0x11e')]&&_0x14aaea['subType']==_0x2b4c26&&Ut(_0x14aaea,_0x6ce686)&&(_0x3f8d76(_0x14aaea[_0x473c('0x30')](),_0x4ea9b8)||_0x3f8d76(_0x4ea9b8,_0x14aaea['getRanges']()))){if(_0x2eb7a5){if(_0x14aaea['commentThread']&&_0x14aaea[_0x473c('0xb4')][_0x473c('0x70')])continue;for(const _0x4b1c8f of _0x14aaea[_0x473c('0x30')]())_0x2eb7a5[_0x473c('0x141')](_0x4b1c8f)||_0x2eb7a5[_0x473c('0xf8')](_0x4b1c8f);_0x14aaea['removeMarkers']();}else{_0x2eb7a5=_0x14aaea;for(const _0x4de758 of _0x4ea9b8)_0x14aaea[_0x473c('0x141')](_0x4de758)||_0x14aaea['addRange'](_0x4de758);}}if(_0x2eb7a5)return _0x2eb7a5;_0x5ef926['clear']();for(const {suggestion:_0x47dab9,meta:_0x3cf573}of this[_0x473c('0x66')](_0x4ea9b8,_0x473c('0x37')))_0x3cf573[_0x473c('0x128')]&&(this['_mergeNestedSuggestions']||!_0x3cf573['containsRangeInObject']&&!_0x3cf573[_0x473c('0xe9')])&&Ut(_0x47dab9,_0x6ce686)&&_0x5ef926['add'](_0x47dab9);for(const _0x5064ad of _0x5ef926){const _0x5d7b2e=_0x5064ad['getRanges']();if(!_0x6ce686||!_0x6ce686[_0x473c('0xa3')]){if(_0x4ea9b8[_0x473c('0xd5')](_0x45bf01=>_0x5d7b2e[_0x473c('0x2d')](_0x39486c=>_0x39486c[_0x473c('0xb7')](_0x45bf01,!0x0))))return _0x5064ad;}(!_0x5064ad[_0x473c('0x1a')]||!_0x5064ad[_0x473c('0x1a')][_0x473c('0xa3')])&&(_0x5d7b2e[_0x473c('0xd5')](_0x2f96c6=>_0x4ea9b8[_0x473c('0x2d')](_0x26c5c1=>_0x26c5c1[_0x473c('0xb7')](_0x2f96c6,!0x0)))&&_0x5064ad['discard']());}const _0x4939f8=_0x28debd(),_0x185138=_0x311cd4['id'],_0x529dc9=_0x473c('0x114')+_0x2b4c26,_0x574c14=this['_setSuggestionData']({'id':_0x4939f8,'type':_0x529dc9,'createdAt':new Date(),'authorId':_0x185138,'attributes':_0x6ce686});for(const _0x58f9b6 of _0x4ea9b8)_0x58f9b6[_0x473c('0xd1')](),_0x58f9b6[_0x473c('0xdc')]||_0x473c('0x53')==_0x58f9b6[_0x473c('0xb3')][_0x473c('0x91')]||this[_0x473c('0x122')](_0x529dc9,_0x4939f8,_0x185138,_0x58f9b6,_0x40a5e8['getMultiRangeId']());return _0x574c14;}[_0x473c('0xf2')](_0x78349f,_0x45dc35){const _0x538399=_0x78349f['getFirstMarker']();this[_0x473c('0x117')]['change'](_0x596f51=>{_0x596f51['updateMarker'](_0x538399,{'range':_0x45dc35});});}[_0x473c('0x5b')](_0xb1b128){const _0x5b673f=_0xb1b128['id'],_0x382acd=this[_0x473c('0x7b')]['config'][_0x473c('0x115')](_0x473c('0xfe'));this[_0x473c('0x4')]['hasCommentThread'](_0x5b673f)||this[_0x473c('0x4')][_0x473c('0xea')]({'channelId':_0x382acd,'threadId':_0x5b673f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x24b85d=this['_commentsRepository'][_0x473c('0x5e')](_0x5b673f);_0x24b85d['unbind'](_0x473c('0x13c')),_0x24b85d[_0x473c('0x13c')]=!0x1,_0xb1b128['commentThread']=_0x24b85d;}[_0x473c('0x8b')](_0x2d3f23,_0x2f2388,_0x5a22d5,_0x53cd63){if(_0x2d3f23[_0x473c('0x11e')]!=_0x2f2388||_0x2d3f23[_0x473c('0x124')]!=_0x5a22d5||_0x2d3f23[_0x473c('0x90')]['id']!=_0x53cd63)throw this[_0x473c('0x7b')]['enableReadOnlyMode'](_0x473c('0xb0')),new _0x5b63fa(_0x473c('0xb0'),this);}[_0x473c('0x3a')](_0x1ba60b,_0x3ed076){const _0x4d2338=_0x1ba60b[_0x473c('0x9a')]();if(_0x3ed076[_0x473c('0x1c')](_0x4d2338))_0x1ba60b[_0x473c('0xd6')]();else{if(_0x4d2338[_0x473c('0xb7')](_0x3ed076)){const _0x3cc96d=this[_0x473c('0x117')]['createPositionAt'](_0x3ed076[_0x473c('0xbf')][_0x473c('0x4d')],_0x473c('0xe0'));this['_setSuggestionRange'](_0x1ba60b,this['_model'][_0x473c('0x38')](_0x4d2338[_0x473c('0xbf')],_0x3cc96d));const _0x40a7ba=_0x28debd(),_0x4bc889=_0x1ba60b[_0x473c('0x90')]['id'],_0x40c6ab=_0x1ba60b[_0x473c('0x11e')]+':'+_0x1ba60b['subType'];this[_0x473c('0x20')]({'id':_0x40a7ba,'type':_0x40c6ab,'createdAt':new Date(),'authorId':_0x4bc889,'data':_0x1ba60b[_0x473c('0x23')],'attributes':_0x1ba60b[_0x473c('0x1a')]});const _0x5a5c64=this[_0x473c('0x117')][_0x473c('0xf3')](_0x3ed076[_0x473c('0xe0')]['parent'],_0x473c('0x97')),_0x1a29c1=this['_model']['createRange'](_0x5a5c64,_0x4d2338[_0x473c('0xe0')]);this[_0x473c('0x122')](_0x40c6ab,_0x40a7ba,_0x4bc889,_0x1a29c1);}else{if(_0x4d2338[_0x473c('0xfa')](_0x3ed076['start'])){const _0x2863e0=this['_model'][_0x473c('0xf3')](_0x3ed076[_0x473c('0xbf')][_0x473c('0x4d')],_0x473c('0xe0'));this[_0x473c('0xf2')](_0x1ba60b,this['_model'][_0x473c('0x38')](_0x4d2338[_0x473c('0xbf')],_0x2863e0));}else{const _0xda1ada=this[_0x473c('0x117')][_0x473c('0xf3')](_0x3ed076[_0x473c('0xe0')][_0x473c('0x34')],'after');this[_0x473c('0xf2')](_0x1ba60b,this['_model'][_0x473c('0x38')](_0xda1ada,_0x4d2338['end']));}}}}[_0x473c('0x7c')](_0x7c1950){for(const {suggestion:_0xb61fe5,meta:_0xe45471}of this[_0x473c('0x66')](_0x7c1950,_0x473c('0xb8'))){if(!_0xe45471[_0x473c('0x128')])continue;const _0x535bc5=_0xb61fe5['getRanges']();for(const _0x1ddef1 of _0x535bc5)if(!_0x7c1950[_0x473c('0x58')](_0x1ddef1)[_0x473c('0x70')])return!0x0;}return!0x1;}[_0x473c('0x98')](_0x31570c){const _0x2339b7=this[_0x473c('0x7b')][_0x473c('0xb2')]['get'](_0x473c('0x136'))[_0x473c('0x9e')](_0x31570c);if(!_0x2339b7)throw new _0x5b63fa('track-changes-user-not-found',this);return _0x2339b7;}[_0x473c('0xef')](_0x19d0af){const _0x397566=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x136')),_0xbe841c=_0x491d52(_0x473c('0xe1')+_0x19d0af),_0x1e1cf4=_0x397566[_0x473c('0x9e')](_0xbe841c);return _0x1e1cf4||_0x397566[_0x473c('0xc2')]({'id':_0xbe841c,'name':_0x19d0af});}[_0x473c('0xd2')](_0x4c183d,_0x340311,_0x44e9f5,_0x4f34bf,_0x31aa32){const _0x3222c6=this[_0x473c('0x98')](_0x4f34bf),_0x11f572=this[_0x473c('0x63')]['buildSuggestion'](_0x4c183d,_0x340311,_0x44e9f5,_0x3222c6,_0x31aa32,_0xe1d9f7=>this[_0x473c('0xc5')](_0x44e9f5,{'attributes':_0xe1d9f7}));return this[_0x473c('0x69')](_0x11f572,'accept',()=>{this[_0x473c('0xc5')](_0x44e9f5,{'state':'accepted'});},{'priority':_0x473c('0x121')}),this[_0x473c('0x69')](_0x11f572,'discard',()=>{this[_0x473c('0xc5')](_0x44e9f5,{'state':'rejected'});},{'priority':_0x473c('0x121')}),this[_0x473c('0x33')]['set'](_0x44e9f5,_0x11f572),this['_suggestionState'][_0x473c('0x118')](_0x11f572,_0x473c('0xa9')),_0x11f572;}[_0x473c('0x94')](_0x4caa2c){const _0x25dbac=_0x4caa2c['split'](':');return{'group':_0x25dbac[0x0],'type':_0x25dbac[0x1],'subType':_0x25dbac['length']>=0x5?_0x25dbac[0x2]:null,'id':_0x25dbac['length']<0x5?_0x25dbac[0x2]:_0x25dbac[0x3],'authorId':_0x25dbac[_0x473c('0x70')]<0x5?_0x25dbac[0x3]:_0x25dbac[0x4],'markerCount':0x6==_0x25dbac[_0x473c('0x70')]?_0x25dbac[0x5]:null};}[_0x473c('0xcc')](_0x1d2a81,_0x1503fa,_0x352a1e){const _0x42b122=_0x1d2a81[_0x473c('0x9a')](),_0x457ace=_0x42b122[_0x473c('0xbf')],_0x2f34dc=_0x42b122['end'];this[_0x473c('0xf2')](_0x1d2a81,this[_0x473c('0x117')][_0x473c('0x38')](_0x457ace,_0x1503fa));const _0x3cebb2=_0x28debd(),_0x120cd4=_0x1d2a81[_0x473c('0x90')]['id'],_0x18e74f=_0x1d2a81[_0x473c('0x11e')]+(_0x1d2a81['subType']?':'+_0x1d2a81['subType']:'');this[_0x473c('0x20')]({'id':_0x3cebb2,'type':_0x18e74f,'createdAt':new Date(),'authorId':_0x120cd4,'originalSuggestionId':_0x1d2a81['id'],'attributes':_0x1d2a81[_0x473c('0x1a')],'data':_0x1d2a81[_0x473c('0x23')]}),_0x473c('0xff')==_0x1d2a81['type']&&(_0x352a1e=this[_0x473c('0x117')]['createPositionBefore'](_0x352a1e[_0x473c('0x34')])),this[_0x473c('0x122')](_0x18e74f,_0x3cebb2,_0x120cd4,this[_0x473c('0x117')]['createRange'](_0x352a1e,_0x2f34dc));}[_0x473c('0x66')](_0x199f23,_0x22cb07=null){const _0x1cf9b6=[],_0x3670bc=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x136'))['me'];Array['isArray'](_0x199f23)||(_0x199f23=[_0x199f23]);for(const _0x2db05c of this['getSuggestions']()){if(!_0x2db05c[_0x473c('0x6a')])continue;if(_0x22cb07&&_0x2db05c[_0x473c('0x11e')]!=_0x22cb07)continue;let _0x502d76=!0x1;for(const _0x435347 of _0x2db05c[_0x473c('0x30')]()){for(const _0x19b968 of _0x199f23){const _0x20e603=_0x19b968[_0x473c('0xbf')]['isEqual'](_0x435347['end'])||_0x19b968[_0x473c('0xe0')][_0x473c('0x1c')](_0x435347[_0x473c('0xbf')]);if(_0x20e603||_0x19b968[_0x473c('0x13d')](_0x435347)){const _0x4edea8=_0x19b968[_0x473c('0xb7')](_0x435347)&&Bt(this[_0x473c('0x117')][_0x473c('0xbd')],_0x435347[_0x473c('0xbf')],_0x19b968),_0x3dba11=_0x435347[_0x473c('0xb7')](_0x19b968)&&Bt(this[_0x473c('0x117')]['schema'],_0x19b968['start'],_0x435347);_0x1cf9b6['push']({'suggestion':_0x2db05c,'meta':{'isOwn':_0x3670bc==_0x2db05c['author'],'isNextTo':_0x20e603,'isInsideObject':_0x4edea8,'containsRangeInObject':_0x3dba11}}),_0x502d76=!0x0;break;}}if(_0x502d76)break;}}return _0x1cf9b6;}[_0x473c('0x122')](_0x1de7e7,_0x4ac1d0,_0x2c473d,_0x3c56fa,_0x57ca4f){this[_0x473c('0x117')]['change'](_0x198901=>{let _0x1c22c6=_0x473c('0x12b')+_0x1de7e7+':'+_0x4ac1d0+':'+_0x2c473d;_0x57ca4f&&(_0x1c22c6=_0x1c22c6+':'+_0x57ca4f),_0x198901[_0x473c('0x32')](_0x1c22c6,{'range':_0x3c56fa,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x12f074){const _0x5c5f8b=_0x12f074['previous'],_0x2c8355=_0x12f074[_0x473c('0xa0')];_0x12f074[_0x473c('0xfd')]=null,null!=_0x5c5f8b&&(_0x5c5f8b[_0x473c('0xa0')]=null),_0x12f074[_0x473c('0xa0')]=null,null!=_0x2c8355&&(_0x2c8355[_0x473c('0xfd')]=null),_0x473c('0x3')==this[_0x473c('0x103')][_0x473c('0x115')](_0x12f074)&&(this['_suggestionState'][_0x473c('0x118')](_0x12f074,_0x473c('0xc8')),this['fire'](_0x473c('0x40'),_0x12f074,_0x5c5f8b,_0x2c8355));}['_setSuggestionData'](_0x5d6829){const _0x24b228=_0x5d6829['id'],_0x290ffa=this[_0x473c('0x11a')](_0x5d6829);if(this[_0x473c('0x6b')]&&this[_0x473c('0x6b')][_0x473c('0xaf')]){const _0xb05f07=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')]('PendingActions'),_0x29f907=_0x290ffa[_0x473c('0x65')],_0x2f52aa=_0x290ffa['subType']?_0x290ffa[_0x473c('0x11e')]+':'+_0x290ffa[_0x473c('0x124')]:_0x290ffa[_0x473c('0x11e')],_0x179ff3=this['editor'][_0x473c('0x92')],_0x396867=_0xb05f07[_0x473c('0xcf')](_0x1e1af9(_0x179ff3,_0x473c('0x5c'))),_0xbe0889={'id':_0x24b228,'type':_0x2f52aa,'hasComments':_0x29f907,'data':_0x5d6829[_0x473c('0x23')]||null,'originalSuggestionId':_0x5d6829['originalSuggestionId']||null,'attributes':_0x290ffa[_0x473c('0x1a')]};this[_0x473c('0x6b')]['addSuggestion'](_0xbe0889)[_0x473c('0xad')](_0x5b35ea=>{_0x290ffa[_0x473c('0x8f')]=!0x0,_0xb05f07[_0x473c('0xca')](_0x396867),_0x5b35ea&&_0x5b35ea['createdAt']&&(this['_suggestions']['get'](_0x24b228)[_0x473c('0x13e')]=_0x5b35ea[_0x473c('0x13e')]);})[_0x473c('0x29')](_0x4439e2=>{throw _0x4b42e4('error-saving-suggestion-data-suggestion-discarded'),this[_0x473c('0x7b')][_0x473c('0x71')][_0x473c('0x17')]({'isUndoable':!0x1},()=>{_0x290ffa[_0x473c('0xeb')]();}),_0x290ffa['stopListening'](),this[_0x473c('0x33')][_0x473c('0xf0')](_0x290ffa['id']),this[_0x473c('0x103')][_0x473c('0xf0')](_0x290ffa),_0x4439e2;});}return _0x290ffa;}[_0x473c('0xc5')](_0x337b4e,_0xc1e3c8){const _0x579c72=this[_0x473c('0x7b')][_0x473c('0xb2')][_0x473c('0x115')](_0x473c('0x13b')),_0xd62d6a=this[_0x473c('0x35')](_0x337b4e);if(this[_0x473c('0x6b')]&&this[_0x473c('0x6b')][_0x473c('0xba')]){if(_0xd62d6a[_0x473c('0x8f')]){const _0xc8a8cf=_0x579c72[_0x473c('0xcf')](_0x1e1af9(this[_0x473c('0x7b')][_0x473c('0x92')],_0x473c('0x5c')));this[_0x473c('0x6b')][_0x473c('0xba')](_0x337b4e,_0xc1e3c8)[_0x473c('0xad')](()=>{_0x579c72['remove'](_0xc8a8cf);});}else _0xd62d6a['on'](_0x473c('0xe6'),()=>{this[_0x473c('0xc5')](_0x337b4e,_0xc1e3c8);});}}[_0x473c('0x57')](_0x5ab799){if(!this[_0x473c('0x6b')]||!this[_0x473c('0x6b')][_0x473c('0x35')])throw new _0x5b63fa(_0x473c('0x55'),this);return this[_0x473c('0x6b')][_0x473c('0x35')](_0x5ab799);}['_handleNewSuggestionMarker'](_0x120b16){const {id:_0x19de36,type:_0x250ac2,subType:_0x3ebf14,authorId:_0x5853c4}=this['_splitMarkerName'](_0x120b16),_0x32b36f=this[_0x473c('0x33')][_0x473c('0x115')](_0x19de36)||this['_createSuggestion'](_0x250ac2,_0x3ebf14,_0x19de36,_0x5853c4,{});switch(this[_0x473c('0x8b')](_0x32b36f,_0x250ac2,_0x3ebf14,_0x5853c4),this[_0x473c('0x103')][_0x473c('0x115')](_0x32b36f)){case _0x473c('0xa9'):this[_0x473c('0x57')](_0x19de36)[_0x473c('0xad')](_0x8eeac1=>{let _0x93062=Promise['resolve']();_0x8eeac1[_0x473c('0x65')]&&(_0x93062=this[_0x473c('0x4')]['fetchCommentThread']({'channelId':this[_0x473c('0x7b')][_0x473c('0x131')][_0x473c('0x115')](_0x473c('0xfe')),'threadId':_0x19de36})),_0x93062[_0x473c('0xad')](()=>{this[_0x473c('0x11a')](_0x8eeac1)[_0x473c('0x8f')]=!0x0;});}),this[_0x473c('0x103')][_0x473c('0x118')](_0x32b36f,_0x473c('0x96'));break;case'removed':this['_updateSuggestionData'](_0x19de36,{'state':_0x473c('0x139')});case _0x473c('0x105'):this[_0x473c('0x103')][_0x473c('0x118')](_0x32b36f,_0x473c('0x3')),this[_0x473c('0xce')](_0x473c('0xa4'),_0x32b36f);break;case _0x473c('0x3'):this[_0x473c('0xce')]('suggestionChanged',_0x32b36f);}return _0x32b36f[_0x473c('0xe8')](_0x120b16),_0x32b36f;}[_0x473c('0x13')](_0x1ffb7d){const _0xf00f69=Array[_0x473c('0xdd')](_0x1ffb7d)[_0x473c('0x4b')](_0x18aa19=>!_0x18aa19['isMultiRange']),_0x29fcf6=this['getSuggestions']({'skipNotAttached':!0x0})[_0x473c('0x4b')](_0x40e7bb=>!_0x40e7bb[_0x473c('0x36')]),_0x370404=_0x29fcf6['filter'](_0x3a1a62=>!_0x1ffb7d[_0x473c('0xf9')](_0x3a1a62)),_0x1ce296=new Map(_0x29fcf6['map'](_0x2ba8c3=>[_0x2ba8c3,this[_0x473c('0x63')]['getSuggestionCallback'](_0x2ba8c3['type'],_0x2ba8c3[_0x473c('0x124')],_0x473c('0xcd'))])),_0x599f95=new Map(_0x29fcf6[_0x473c('0x12d')](_0x309c94=>[_0x309c94,_0x309c94[_0x473c('0x9a')]()])),_0x529aad=new Set(),_0x58bf38=new Set();for(let _0x14079b=0x0;_0x14079b<_0xf00f69[_0x473c('0x70')];_0x14079b++)_0x4ad231(_0xf00f69[_0x14079b],_0xf00f69,_0x14079b+0x1);for(let _0x14a63d=0x0;_0x14a63d<_0xf00f69[_0x473c('0x70')];_0x14a63d++)_0x4ad231(_0xf00f69[_0x14a63d],_0x370404,0x0);for(let _0x219450=0x0;_0x219450<_0xf00f69[_0x473c('0x70')];_0x219450++){const _0x1732fe=_0xf00f69[_0x219450];!_0x58bf38['has'](_0x1732fe)&&_0x1732fe['previous']&&(_0x1732fe[_0x473c('0xfd')][_0x473c('0xa0')]===_0x1732fe&&(_0x1732fe[_0x473c('0xfd')][_0x473c('0xa0')]=null),_0x1732fe['previous']=null),!_0x529aad[_0x473c('0xf9')](_0x1732fe)&&_0x1732fe['next']&&(_0x1732fe[_0x473c('0xa0')][_0x473c('0xfd')]===_0x1732fe&&(_0x1732fe['next'][_0x473c('0xfd')]=null),_0x1732fe[_0x473c('0xa0')]=null);}function _0x4ad231(_0x11395c,_0x3f338b,_0x46512f){for(let _0x44d674=_0x46512f;_0x44d674<_0x3f338b[_0x473c('0x70')];_0x44d674++){const _0x594106=_0x482ad6(_0x11395c,_0x3f338b[_0x44d674]);_0x594106&&(_0x594106[0x0][_0x473c('0xa0')]=_0x594106[0x1],_0x594106[0x1]['previous']=_0x594106[0x0],_0x529aad[_0x473c('0xcf')](_0x594106[0x0]),_0x58bf38[_0x473c('0xcf')](_0x594106[0x1]));}}function _0x482ad6(_0x1577cd,_0x578be1){if(_0x1577cd[_0x473c('0x2e')]['id']!==_0x578be1[_0x473c('0x2e')]['id'])return null;const _0x4e99e4=_0x1ce296['get'](_0x1577cd)(_0x1577cd,_0x578be1,_0x599f95[_0x473c('0x115')](_0x1577cd),_0x599f95['get'](_0x578be1));if(!_0x4e99e4)return null;return _0x1ce296['get'](_0x578be1)(_0x1577cd,_0x578be1,_0x599f95[_0x473c('0x115')](_0x1577cd),_0x599f95['get'](_0x578be1))?_0x4e99e4[0x1][_0x473c('0xb4')]&&_0x4e99e4[0x1][_0x473c('0xb4')][_0x473c('0x70')]?null:_0x4e99e4:null;}}[_0x473c('0x48')](_0x2dccbf){const _0x388d62=Array[_0x473c('0xdd')](_0x2dccbf),_0x3877c7=this[_0x473c('0xe5')]({'skipNotAttached':!0x0}),_0x5f2080=_0x3877c7['filter'](_0x28b17a=>!_0x2dccbf[_0x473c('0xf9')](_0x28b17a)),_0x10e41f=new Map(_0x388d62['map'](_0xebbf66=>[_0xebbf66,this[_0x473c('0x63')][_0x473c('0x112')](_0xebbf66[_0x473c('0x11e')],_0xebbf66[_0x473c('0x124')],_0x473c('0x8e'))])),_0x593aec=new Map(_0x3877c7[_0x473c('0x12d')](_0x320c45=>[_0x320c45,_0x320c45[_0x473c('0x30')]()]));for(let _0x4d1037=0x0;_0x4d1037<_0x388d62[_0x473c('0x70')];_0x4d1037++){if(_0x57e0f9(this,_0x388d62[_0x4d1037],_0x388d62,_0x4d1037+0x1))return!0x0;}for(let _0x487a89=0x0;_0x487a89<_0x388d62['length'];_0x487a89++){if(_0x57e0f9(this,_0x388d62[_0x487a89],_0x5f2080,0x0))return!0x0;}return!0x1;function _0x57e0f9(_0x1e4efa,_0x3eea22,_0x2febc1,_0xf3f89d){for(let _0x22af3c=_0xf3f89d;_0x22af3c<_0x2febc1['length'];_0x22af3c++){const _0x35c882=_0x2febc1[_0x22af3c];if(_0x35c882[_0x473c('0x11e')]!==_0x3eea22[_0x473c('0x11e')]||_0x35c882['author']['id']!==_0x3eea22['author']['id']||_0x35c882['subType']!==_0x3eea22[_0x473c('0x124')])continue;if(!xt(_0x3eea22,_0x35c882))continue;const _0x3c8e1d=_0x10e41f[_0x473c('0x115')](_0x3eea22),_0x3655cf=_0x593aec[_0x473c('0x115')](_0x3eea22),_0x239ca9=_0x593aec['get'](_0x35c882),_0x36649b=_0x3eea22[_0x473c('0xb4')]&&_0x3eea22[_0x473c('0xb4')][_0x473c('0x70')],_0x3bcd1d=_0x35c882[_0x473c('0xb4')]&&_0x35c882[_0x473c('0xb4')][_0x473c('0x70')];if(!_0x36649b&&_0x3c8e1d(_0x239ca9,_0x3655cf))return _0x1e4efa['_joinSuggestions'](_0x35c882,_0x3eea22),_0x593aec['delete'](_0x3eea22),!0x0;if(!_0x3bcd1d&&_0x3c8e1d(_0x3655cf,_0x239ca9))return _0x1e4efa['_joinSuggestions'](_0x3eea22,_0x35c882),_0x593aec[_0x473c('0xf0')](_0x35c882),!0x0;}return!0x1;}}[_0x473c('0x7e')](_0x167a2c,_0x5dcc50){if(_0x167a2c[_0x473c('0x36')])for(const _0x6b6e1c of _0x5dcc50[_0x473c('0x30')]())_0x167a2c[_0x473c('0xf8')](_0x6b6e1c);else{const _0x2a4a95=_0x5dcc50[_0x473c('0x9a')]()[_0x473c('0xe0')];this[_0x473c('0xf2')](_0x167a2c,this[_0x473c('0x117')][_0x473c('0x38')](_0x167a2c[_0x473c('0x9a')]()[_0x473c('0xbf')],_0x2a4a95));}_0x5dcc50[_0x473c('0xd6')]();}}class Dt{constructor(_0x15837c){this[_0x473c('0xf')]=_0x15837c,this[_0x473c('0x117')]=_0x15837c[_0x473c('0x71')],this[_0x473c('0xf1')]=new Map(),this[_0x473c('0x12e')]=new Map(),this[_0x473c('0x9c')]();}[_0x473c('0x108')](_0x1b70c7,_0x3ccd99,_0x2bda30,_0x15b596,_0x357238,_0x25acf9){return new _0x40a5e8(this['_model'],{'type':_0x1b70c7,'subType':_0x3ccd99,'id':_0x2bda30,'author':_0x15b596,'creator':_0x15b596,'attributes':_0x357238,'onAttributesChange':_0x25acf9,'onAccept':(..._0x116f72)=>this[_0x473c('0x112')](_0x1b70c7,_0x3ccd99,_0x473c('0xa5'))(..._0x116f72),'onDiscard':(..._0x589150)=>this[_0x473c('0x112')](_0x1b70c7,_0x3ccd99,_0x473c('0xeb'))(..._0x589150)});}[_0x473c('0x109')](_0x53ec32,_0x5ed659,_0x41920e,_0x298ba0){const _0x11c02f=_0x53ec32+':'+_0x5ed659+':'+_0x41920e;this[_0x473c('0xf1')][_0x473c('0x118')](_0x11c02f,_0x298ba0);}[_0x473c('0x112')](_0x1631f2,_0x274ec1,_0x501c6d){const _0x189eba=_0x1631f2+':'+_0x274ec1+':'+_0x501c6d;return this[_0x473c('0xf1')][_0x473c('0x115')](_0x189eba)||this[_0x473c('0x12e')][_0x473c('0x115')](_0x1631f2+':'+_0x501c6d);}[_0x473c('0x9c')](){const _0x970b6f=()=>!0x1,_0x3a8bd4=_0x50011d=>{_0x50011d[_0x473c('0x31')]((_0x113a89,_0x501720)=>_0x113a89[_0x473c('0xbf')][_0x473c('0x56')](_0x501720['start'])?0x1:-0x1),this['_model'][_0x473c('0xac')](_0x996f07=>{for(const _0x58c65e of _0x50011d){let _0x2c233d;_0x2c233d=_0x58c65e[_0x473c('0xe0')][_0x473c('0xde')]&&_0x58c65e[_0x473c('0xe0')]['parent']==_0x58c65e['start'][_0x473c('0xc7')]?_0x996f07[_0x473c('0x5')](_0x58c65e[_0x473c('0xbf')][_0x473c('0xc7')],'on'):_0x996f07[_0x473c('0x5')](_0x58c65e),this[_0x473c('0x117')][_0x473c('0x2')](_0x2c233d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x54f138=(_0x15c87b,_0x53b44e)=>{this[_0x473c('0x117')][_0x473c('0xac')](_0x44fc89=>{const {commandName:_0x52e503,commandParams:_0x448e6c=[]}=_0x53b44e,_0x5ef09c=_0x15c87b[_0x473c('0x12d')](_0x3c7d44=>(_t(_0x3c7d44)&&(_0x3c7d44=this[_0x473c('0x117')]['createRange'](_0x3c7d44['end'])),_0x3c7d44))[_0x473c('0x4b')](_0x1c513f=>_0x473c('0x53')!==_0x1c513f[_0x473c('0xb3')][_0x473c('0x91')]);if(_0x5ef09c[_0x473c('0x70')]<0x1)return;const _0x2608a3=Array['from'](this[_0x473c('0x117')][_0x473c('0xe')][_0x473c('0x27')][_0x473c('0x30')]())['map'](_0x2bb3d7=>_0x11089b[_0x473c('0xa')](_0x2bb3d7));_0x44fc89[_0x473c('0xfc')](_0x5ef09c);for(const _0x30c328 of this[_0x473c('0xf')]['commands']['commands']())_0x30c328[_0x473c('0x11d')]();_0x448e6c[_0x473c('0x137')]({'forceDefaultExecution':!0x0}),this[_0x473c('0xf')][_0x473c('0x61')](_0x52e503,..._0x448e6c);const _0x2a9ebe=_0x2608a3[_0x473c('0x4b')](_0x80d2f0=>'$graveyard'!=_0x80d2f0[_0x473c('0xb3')][_0x473c('0x91')]);_0x2a9ebe[_0x473c('0x70')]>0x0&&_0x44fc89[_0x473c('0xfc')](_0x2a9ebe);for(const _0x3d0179 of _0x2608a3)_0x3d0179[_0x473c('0xd1')]();});},_0x3ffa06=(_0x24580c,_0xef3634)=>0x1==_0x24580c[_0x473c('0x70')]&&0x1==_0xef3634[_0x473c('0x70')]&&_0x24580c[0x0]['end']['isEqual'](_0xef3634[0x0][_0x473c('0xbf')]),_0x1195ec=(_0x30558d,_0x152d95,_0x301060,_0x289cc1)=>jt(_0x30558d,_0x152d95,_0x301060,_0x289cc1,this[_0x473c('0x117')])?[_0x30558d,_0x152d95]:jt(_0x152d95,_0x30558d,_0x289cc1,_0x301060,this['_model'])?[_0x152d95,_0x30558d]:null;this[_0x473c('0x12e')][_0x473c('0x118')](_0x473c('0x41'),_0x970b6f),this['_defaultCallbacks'][_0x473c('0x118')]('insertion:discard',_0x3a8bd4),this[_0x473c('0x12e')]['set']('insertion:join',_0x3ffa06),this[_0x473c('0x12e')]['set'](_0x473c('0x126'),_0x1195ec),this[_0x473c('0x12e')][_0x473c('0x118')]('deletion:accept',_0x3a8bd4),this[_0x473c('0x12e')][_0x473c('0x118')](_0x473c('0x104'),_0x970b6f),this['_defaultCallbacks'][_0x473c('0x118')](_0x473c('0x138'),_0x3ffa06),this[_0x473c('0x12e')][_0x473c('0x118')](_0x473c('0x75'),_0x1195ec),this['_defaultCallbacks'][_0x473c('0x118')](_0x473c('0x6f'),_0x54f138),this[_0x473c('0x12e')]['set'](_0x473c('0xec'),_0x970b6f),this[_0x473c('0x12e')][_0x473c('0x118')]('formatInline:join',_0x3ffa06),this[_0x473c('0x12e')][_0x473c('0x118')]('formatInline:chain',_0x970b6f),this[_0x473c('0x12e')]['set']('formatBlock:accept',_0x54f138),this[_0x473c('0x12e')][_0x473c('0x118')]('formatBlock:discard',_0x970b6f),this['_defaultCallbacks'][_0x473c('0x118')](_0x473c('0x10c'),_0x3ffa06),this[_0x473c('0x12e')]['set'](_0x473c('0x73'),_0x970b6f);}}function Bt(_0xe5d59f,_0x485a2b,_0x3bb080){for(const _0x1d3c7d of _0x485a2b['parent'][_0x473c('0xa1')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1d3c7d[_0x473c('0xb3')]==_0x1d3c7d)return!0x1;if(!_0x3bb080[_0x473c('0x6e')](_0x1d3c7d))return!0x1;if(_0xe5d59f[_0x473c('0x2f')](_0x1d3c7d)||_0xe5d59f[_0x473c('0x106')](_0x1d3c7d))return!0x0;}return!0x1;}function _t(_0x5c1c40){return _0x5c1c40[_0x473c('0xe0')]['parent']==_0x5c1c40[_0x473c('0xbf')][_0x473c('0xc7')]&&_0x5c1c40[_0x473c('0xe0')][_0x473c('0x78')];}function Mt(_0x350598,_0x3f4f07,_0x446465,_0x21d73b){const _0xbbb3db=_0x44459a=>!_0x44459a[_0x473c('0x19')]['is']('$textProxy')&&!_0x21d73b[_0x473c('0x2f')](_0x44459a[_0x473c('0x19')]),_0x1bbc76=_0x350598[_0x473c('0xbf')][_0x473c('0x132')](_0xbbb3db),_0x3c9edf=_0x350598[_0x473c('0xe0')]['getLastMatchingPosition'](_0xbbb3db,{'direction':_0x473c('0xa2')});return(!_0x350598[_0x473c('0xbf')]['isEqual'](_0x1bbc76)||!_0x350598[_0x473c('0xe0')][_0x473c('0x1c')](_0x3c9edf))&&(_0x1bbc76[_0x473c('0x56')](_0x3c9edf)?_0x446465[_0x473c('0x1')](_0x3f4f07,{'range':_0x446465[_0x473c('0x38')](_0x1bbc76,_0x3c9edf)}):_0x446465[_0x473c('0x127')](_0x3f4f07),!0x0);}function $t(_0x5e573c){return _0x491d52(_0x5e573c);}function Nt(_0x20b8d8){const _0x51e33a=_0x20b8d8[_0x473c('0xbf')][_0x473c('0xc7')];return _0x51e33a&&_0x51e33a['is']('element');}function Rt(_0x5f5b40,_0x40799d){const _0x27a14a=_0x40799d[_0x473c('0xbd')][_0x473c('0x2f')](_0x5f5b40)||_0x40799d[_0x473c('0xbd')][_0x473c('0x83')](_0x5f5b40);return _0x40799d[_0x473c('0x38')](_0x40799d['createPositionAt'](_0x5f5b40,_0x473c('0x46')),_0x27a14a?_0x40799d['createPositionAfter'](_0x5f5b40):_0x40799d[_0x473c('0xf3')](_0x5f5b40,_0x473c('0xe0')));}function jt(_0x3ec607,_0x2e15c1,_0x59b8cc,_0x41f96c,_0x55b934){if(!xt(_0x3ec607,_0x2e15c1))return!0x1;if(_0x59b8cc[_0x473c('0xe0')][_0x473c('0x1c')](_0x41f96c[_0x473c('0xbf')]))return!0x0;if(_0x3ec607[_0x473c('0x11e')]!=_0x2e15c1[_0x473c('0x11e')])return!0x1;if(!_0x59b8cc[_0x473c('0xe0')]['isTouching'](_0x41f96c[_0x473c('0xbf')]))return!0x1;const _0x2a38d6=_0x55b934['createRange'](_0x59b8cc['end'],_0x41f96c[_0x473c('0xbf')])[_0x473c('0x74')]();for(const _0x1fcf98 of _0x2a38d6)if([_0x473c('0x22'),_0x473c('0x6d')][_0x473c('0x8d')](_0x1fcf98[_0x473c('0x11e')])&&_0x55b934[_0x473c('0xbd')]['isLimit'](_0x1fcf98[_0x473c('0x19')]))return!0x1;return!0x0;}function xt(_0x26debe,_0x1bdb72){return!(!_0x26debe['_isDataLoaded']||!_0x1bdb72[_0x473c('0x11f')])&&_0x1249e3(_0x26debe[_0x473c('0x1a')],_0x1bdb72[_0x473c('0x1a')]);}function Ut(_0x3663e1,_0x1951b9){const _0x27788a=Ot(_0x3663e1[_0x473c('0x1a')]),_0x2f24cb=Ot(_0x1951b9);if(!_0x3663e1['_isDataLoaded'])return!0x1;for(const _0x5a1465 of Object['keys'](_0x2f24cb))if(!_0x1249e3(_0x27788a[_0x5a1465],_0x2f24cb[_0x5a1465]))return!0x1;return!0x0;}function Ot(_0x2b7139){const _0x3af0ac=Object[_0x473c('0x125')]({},_0x2b7139);return delete _0x3af0ac['skipNestingCheck'],delete _0x3af0ac[_0x473c('0x45')],_0x3af0ac;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x488b=['filter','_annotationViews','toMany','has','delete','suggestionChanged','Discard\x20all\x20selected\x20suggestions','map','isInContent','SuggestionThreadView','view','suggestionUnloaded','isEnabled','getSuggestion','trackChanges','_updateController','arrowView','Annotations','Track\x20changes','type','button','addComment','_viewToController','lowest','getJoined','innerView','values','get','destroy','requires','_refreshActiveMarkers','buttonView','_createUIButton','locale','set','_descriptionFactory','commandName','descriptionParts','focus','trackChanges.disableComments','switchbutton','length','getAllAdjacentSuggestions','commentThread','Discard\x20all\x20suggestions','isDirty','discardSelectedSuggestions','getMarkers','activeMarkers','Accept\x20all\x20selected\x20suggestions','listenTo','_suggestionToController','add','commands','value','init','_handleControllerBuffer','model','reduce','bind','comments.maxCommentCharsWhenCollapsed','Accept\x20all\x20suggestions','_disableComments','getFirstRange','getRanges','getDescriptions','suggestionLoaded','addSourceCollector','change:activeAnnotations','getMarkerNames','discardAllSuggestions','TrackChangesEditing','editor','_bindAnnotationToEditors','trackChanges.SuggestionThreadView','CommentView','previous','CommentsUI','getByInnerView','hasSuggestion','change:previous','registerAnnotation','_unbindEditors','createAnnotationView','pluginName','size','EditorAnnotations','createCommentThreadController','isMultiRange','execute','_destroyController','mainView','acceptSelectedSuggestions','remove','acceptButton','actionView','isOn','config','push','editing','head','createAnnotation','CommentsRepository','from','acceptAllSuggestions','refreshSelectedViews','activeAnnotations','_initializeController','plugins','_handleSuggestionControllerDelayed'];(function(_0x6856ad,_0x488be2){const _0x490624=function(_0x386c6b){while(--_0x386c6b){_0x6856ad['push'](_0x6856ad['shift']());}};_0x490624(++_0x488be2);}(_0x488b,0x7f));const _0x4906=function(_0x6856ad,_0x488be2){_0x6856ad=_0x6856ad-0x0;let _0x490624=_0x488b[_0x6856ad];return _0x490624;};import{Plugin as _0x10c3d1}from'ckeditor5/src/core';import{Collection as _0x549d01}from'ckeditor5/src/utils';import{Model as _0xf307d2,SplitButtonView as _0x3f8b1d,createDropdown as _0x311a90,addListToDropdown as _0x164343}from'ckeditor5/src/ui';import{Users as _0x52b7bd,getDateTimeFormatter as _0x45b533,getAllMarkersDomElementsSorted as _0x12132d}from'ckeditor5-collaboration/src/collaboration-core';import _0x4171d2 from'./trackchangesediting';import _0x2a569d from'./ui/suggestioncontroller';import _0xc2d7d9 from'./ui/view/suggestionthreadview';import{getTranslation as _0x321fe9}from'./utils/common-translations';import _0x3ffd49 from'../theme/icons/track-changes.svg';export default class d extends _0x10c3d1{static get[_0x4906('0xc')](){return[_0x4171d2,_0x52b7bd,_0x4906('0x55'),'Annotations',_0x4906('0x45')];}static get[_0x4906('0x43')](){return'TrackChangesUI';}constructor(_0x1fa1e4){super(_0x1fa1e4),this['_suggestionToController']=new Map(),this[_0x4906('0x5')]=new Map(),this['_annotationViews']=new Map(),this[_0x4906('0x27')]=new Map();const _0x164c61=this['editor'][_0x4906('0x50')];_0x164c61['define'](_0x4906('0x39'),_0xc2d7d9),_0x164c61['define'](_0x4906('0x16'),!0x1),this[_0x4906('0x2d')]=_0x164c61[_0x4906('0xa')](_0x4906('0x16'));}[_0x4906('0x5c')](_0xadb617,_0x2de3a1){0x0===this['_handleControllerBuffer'][_0x4906('0x44')]&&setTimeout(()=>{for(const [_0x43c248,_0x27c628]of this['_handleControllerBuffer']){const _0x22f7ec=this['_suggestionToController'][_0x4906('0x60')](_0x43c248);_0x22f7ec||_0x27c628?_0x22f7ec&&_0x27c628&&this[_0x4906('0x49')](_0x43c248):this[_0x4906('0x5a')](_0x43c248);}this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')]('EditorAnnotations')[_0x4906('0x58')](),this[_0x4906('0xd')](),this[_0x4906('0x27')]['clear']();},0xa),this[_0x4906('0x27')][_0x4906('0x11')](_0xadb617,_0x2de3a1);}[_0x4906('0x26')](){const _0x18b06d=this['editor'],_0x133ad1=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('TrackChangesEditing'),_0x4e1677=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('Annotations'),_0x546ee4=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x45')),_0xb6b6c8=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('CommentsRepository');_0x18b06d['ui']['componentFactory'][_0x4906('0x23')](_0x4906('0x6b'),_0xfa5f54=>this[_0x4906('0xf')](_0xfa5f54)),_0x546ee4[_0x4906('0x32')](()=>{const _0x5c2a91=[];for(const [_0x49f9fc,_0x4f6849]of Array[_0x4906('0x56')](this[_0x4906('0x22')])){const _0x3ab8d5=_0x49f9fc[_0x4906('0x19')](),_0x21d88e=[];for(const _0x33af9a of _0x3ab8d5){if(!_0x33af9a[_0x4906('0x65')])continue;if(_0x33af9a[_0x4906('0x47')]){_0x21d88e[_0x4906('0x51')](..._0x33af9a[_0x4906('0x2f')]());continue;}const _0x2827b1=_0x33af9a[_0x4906('0x2e')]();if(_0x21d88e[_0x4906('0x18')]>0x0){const _0x47dc87=_0x21d88e[0x0][_0x4906('0x7')](_0x2827b1);if(_0x47dc87){_0x21d88e[0x0]=_0x47dc87;continue;}}_0x21d88e[_0x4906('0x51')](_0x2827b1);}_0x5c2a91['push']([_0x4f6849[_0x4906('0x67')],_0x21d88e]);}return _0x5c2a91;}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x31'),(_0x1acd91,_0x45e36d)=>{this[_0x4906('0x21')](_0x45e36d,_0x4906('0x3f'),(_0x5c0220,_0x49c610,_0x1c5d2d,_0x588215)=>{_0x45e36d[_0x4906('0x65')]&&(null==_0x1c5d2d?(this[_0x4906('0x6c')](_0x588215[_0x4906('0x53')]),this[_0x4906('0x5c')](_0x45e36d,!0x1)):(this['_updateController'](_0x1c5d2d[_0x4906('0x53')]),this[_0x4906('0x5c')](_0x45e36d,!0x0)));}),null===_0x45e36d[_0x4906('0x3b')]?this[_0x4906('0x5c')](_0x45e36d,!0x1):this[_0x4906('0x6c')](_0x45e36d[_0x4906('0x53')]);}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x68'),(_0x114e64,_0x5bd2c6,_0x18881f)=>{this['stopListening'](_0x5bd2c6,_0x4906('0x3f')),this[_0x4906('0x27')][_0x4906('0x61')](_0x5bd2c6);const _0x560bfe=_0x18881f?_0x18881f['head']:_0x5bd2c6,_0x5cc93e=this['_suggestionToController'][_0x4906('0xa')](_0x560bfe);null!==_0x18881f&&this[_0x4906('0x6c')](_0x560bfe),null===_0x18881f&&_0x5cc93e&&this[_0x4906('0x49')](_0x5bd2c6);}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x62'),(_0x22bbec,_0x10f850)=>{this[_0x4906('0x6c')](_0x10f850);}),this[_0x4906('0x21')](_0x4e1677,_0x4906('0x33'),()=>{this[_0x4906('0xd')]();}),this[_0x4906('0x21')](_0xb6b6c8,_0x4906('0x4'),(_0x57d25e,{threadId:_0x4881ae,isFromAdapter:_0x17d0b5})=>{if(_0x17d0b5||!_0x133ad1[_0x4906('0x3e')](_0x4881ae))return;const _0x698d45=_0x133ad1[_0x4906('0x6a')](_0x4881ae);this[_0x4906('0x22')]['get'](_0x698d45)['view'][_0x4906('0x15')]();},{'priority':_0x4906('0x6')});}['_refreshActiveMarkers'](){const _0x4d0629=this[_0x4906('0x37')]['plugins']['get']('Annotations'),_0x19504e=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x36')),_0x3e6dbc=Array[_0x4906('0x56')](_0x4d0629[_0x4906('0x59')],_0x16f8ff=>_0x16f8ff[_0x4906('0x8')])[_0x4906('0x5d')](_0x3fe39d=>this[_0x4906('0x5')]['has'](_0x3fe39d)),_0x595c56=[];for(const _0x38aa9e of _0x3e6dbc){const _0x494084=this[_0x4906('0x5')]['get'](_0x38aa9e)[_0x4906('0x28')][_0x4906('0x19')]();_0x595c56[_0x4906('0x51')](..._0x494084[_0x4906('0x29')]((_0x3ecc21,_0x59a091)=>[..._0x3ecc21,..._0x59a091[_0x4906('0x34')]()],[]));}_0x19504e[_0x4906('0x1f')]=_0x595c56;}[_0x4906('0xf')](_0x5c4863){const _0x5293b4=_0x311a90(_0x5c4863,_0x3f8b1d),_0x5527c9=this[_0x4906('0x37')][_0x4906('0x24')]['get'](_0x4906('0x6b')),_0x1884e8=_0x321fe9(_0x5c4863,_0x4906('0x1'));_0x5293b4[_0x4906('0xe')][_0x4906('0x11')]({'tooltip':_0x1884e8,'label':_0x1884e8,'icon':_0x3ffd49}),_0x5293b4['buttonView'][_0x4906('0x2a')](_0x4906('0x4f'))['to'](_0x5527c9,_0x4906('0x25')),_0x5293b4[_0x4906('0xe')]['on']('execute',()=>{_0x5527c9[_0x4906('0x48')](),this['editor']['editing'][_0x4906('0x67')]['focus']();});const _0x38bf2a=new _0x549d01(),_0x359f0e=[{'type':_0x4906('0x17'),'model':{'withText':!0x0,'label':_0x1884e8,'commandName':_0x4906('0x6b')}},{'type':'separator'},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x2c')),'commandName':_0x4906('0x57')}},{'type':'button','model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x20')),'commandName':_0x4906('0x4b')}},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x1b')),'commandName':_0x4906('0x35')}},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x63')),'commandName':_0x4906('0x1d')}}];for(const _0x1a0630 of _0x359f0e){let _0x578d1b={'type':'separator'};if(_0x1a0630[_0x4906('0x28')]){const _0x368b9e=new _0xf307d2(_0x1a0630[_0x4906('0x28')]),_0x23c555=this['editor']['commands'][_0x4906('0xa')](_0x368b9e['commandName']);_0x368b9e[_0x4906('0x2a')](_0x4906('0x4f'),_0x4906('0x69'))['to'](_0x23c555,'value',_0x4906('0x69')),_0x578d1b={'type':_0x1a0630['type'],'model':_0x368b9e};}_0x38bf2a['add'](_0x578d1b);}_0x164343(_0x5293b4,_0x38bf2a);const _0x39b30c=_0x359f0e[_0x4906('0x5d')](_0x5486d5=>null!=_0x5486d5['model'])[_0x4906('0x64')](_0x1961b9=>this[_0x4906('0x37')][_0x4906('0x24')][_0x4906('0xa')](_0x1961b9[_0x4906('0x28')][_0x4906('0x13')])),_0x2da691=_0x5293b4[_0x4906('0xe')];return _0x2da691[_0x4906('0x4e')]['unbind'](_0x4906('0x69')),_0x2da691[_0x4906('0x6d')]['unbind'](_0x4906('0x69')),_0x2da691[_0x4906('0x4e')][_0x4906('0x2a')](_0x4906('0x69'))['to'](_0x5527c9,_0x4906('0x69')),_0x2da691[_0x4906('0x6d')]['bind']('isEnabled')[_0x4906('0x5f')](_0x39b30c,_0x4906('0x69'),(..._0x2de38d)=>_0x2de38d['some'](_0x62737a=>_0x62737a)),_0x5293b4['on'](_0x4906('0x48'),_0x5ce26f=>{this[_0x4906('0x37')][_0x4906('0x48')](_0x5ce26f['source'][_0x4906('0x13')]),this[_0x4906('0x37')][_0x4906('0x52')][_0x4906('0x67')]['focus']();}),_0x5293b4;}[_0x4906('0x5a')](_0x153f57){const _0x4fcded=this['editor'],_0x46623a=_0x4fcded['config'],_0x459789=_0x4fcded['plugins'][_0x4906('0xa')](_0x4906('0x0')),_0x56c92f=_0x4fcded[_0x4906('0x5b')]['get'](_0x4906('0x55')),_0x205556=_0x4fcded[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x45')),_0x2e022f=_0x4fcded['plugins']['get'](_0x52b7bd)['me'],_0x5b47f5=_0x46623a[_0x4906('0xa')](_0x4906('0x6b'))[_0x4906('0x66')],{CommentsListView:_0x4e0a58,CommentThreadInputView:_0x2b5330}=_0x4fcded[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x3c'));let _0x50136f,_0x29c3ba;this[_0x4906('0x5e')]['has'](_0x153f57['id'])?(_0x29c3ba=this[_0x4906('0x5e')]['get'](_0x153f57['id']),_0x50136f=_0x29c3ba[_0x4906('0x4a')]):(_0x50136f=new _0x5b47f5(_0x4fcded[_0x4906('0x10')],_0x153f57,_0x2e022f,{'disableComments':this[_0x4906('0x2d')],'editorConfig':_0x46623a[_0x4906('0xa')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x46623a[_0x4906('0xa')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46623a[_0x4906('0xa')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46623a[_0x4906('0xa')](_0x4906('0x2b')),'formatDateTime':_0x45b533(_0x46623a[_0x4906('0xa')](_0x4906('0x10'))),'CommentView':_0x46623a[_0x4906('0xa')]('comments')[_0x4906('0x3a')],'CommentsListView':_0x4e0a58,'CommentThreadInputView':_0x2b5330}),_0x50136f[_0x4906('0x4d')]['on']('execute',()=>{_0x4fcded[_0x4906('0x52')][_0x4906('0x67')][_0x4906('0x15')]();}),_0x50136f['discardButton']['on'](_0x4906('0x48'),()=>{_0x4fcded[_0x4906('0x52')][_0x4906('0x67')]['focus']();}),_0x29c3ba=_0x459789[_0x4906('0x42')](this[_0x4906('0x37')][_0x4906('0x10')],_0x50136f),_0x29c3ba[_0x4906('0x2a')](_0x4906('0x1c'))['to'](_0x50136f,'isDirty'),_0x29c3ba[_0x4906('0x2a')](_0x4906('0x18'))['to'](_0x50136f),_0x29c3ba['bind'](_0x4906('0x2'))['to'](_0x50136f,_0x4906('0x2'),_0xea2b7a=>'suggestion-'+_0xea2b7a),this[_0x4906('0x5e')][_0x4906('0x11')](_0x153f57['id'],_0x29c3ba));const _0x5a9ff5=_0x56c92f[_0x4906('0x46')](_0x153f57[_0x4906('0x1a')],_0x50136f),_0x56391e=new _0x2a569d(_0x4fcded,_0x153f57,_0x50136f,_0x5a9ff5),_0x17206a=_0x153f57['getAllAdjacentSuggestions']()[_0x4906('0x5d')](_0x5b1f61=>_0x5b1f61[_0x4906('0x65')]);_0x50136f['descriptionParts']=_0x4fcded[_0x4906('0x5b')]['get']('TrackChangesEditing')[_0x4906('0x12')][_0x4906('0x30')](_0x17206a),this[_0x4906('0x22')][_0x4906('0x11')](_0x153f57,_0x56391e),this['_viewToController'][_0x4906('0x11')](_0x50136f,_0x56391e);const _0x894dfc=_0x459789[_0x4906('0x54')]({'view':_0x29c3ba,'target':()=>{const _0x3fa19b=[],_0x304cdd=_0x153f57['getAllAdjacentSuggestions']()[_0x4906('0x5d')](_0x2e9189=>_0x2e9189[_0x4906('0x65')]);for(const _0x1c2667 of _0x304cdd)_0x3fa19b[_0x4906('0x51')](..._0x1c2667[_0x4906('0x1e')]());return _0x12132d(_0x4fcded['editing'],_0x3fa19b);},'type':()=>'suggestion-'+_0x56391e[_0x4906('0x67')][_0x4906('0x2')]});_0x56c92f[_0x4906('0x38')](_0x50136f,_0x894dfc),_0x459789[_0x4906('0x23')](_0x894dfc),_0x205556[_0x4906('0x40')](_0x894dfc);}['_destroyController'](_0x22f27a){const _0x57117d=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x55')),_0xc91f94=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x0')),_0x236854=this[_0x4906('0x22')]['get'](_0x22f27a),_0x4ab308=_0x236854[_0x4906('0x67')],_0xc02953=_0xc91f94[_0x4906('0x3d')](_0x4ab308);_0x57117d[_0x4906('0x41')](_0x4ab308),_0xc02953&&_0xc91f94[_0x4906('0x4c')](_0xc02953),this[_0x4906('0x22')]['delete'](_0x22f27a),this['_viewToController'][_0x4906('0x61')](_0x4ab308),_0x236854[_0x4906('0xb')]();}[_0x4906('0x6c')](_0x2c03ca){if(!_0x2c03ca[_0x4906('0x65')]||!this[_0x4906('0x22')][_0x4906('0x60')](_0x2c03ca))return;const _0x5ab308=this[_0x4906('0x37')]['plugins']['get'](_0x4906('0x36')),_0x4a840d=this[_0x4906('0x22')][_0x4906('0xa')](_0x2c03ca),_0x54e709=_0x2c03ca['getAllAdjacentSuggestions']();_0x4a840d[_0x4906('0x67')][_0x4906('0x14')]=_0x5ab308[_0x4906('0x12')][_0x4906('0x30')](_0x54e709);}[_0x4906('0xb')](){for(const _0x398634 of this[_0x4906('0x22')]['keys']())this['_destroyController'](_0x398634);for(const _0x35abcc of this[_0x4906('0x5e')][_0x4906('0x9')]())_0x35abcc[_0x4906('0x4a')][_0x4906('0xb')]();super[_0x4906('0xb')]();}}
|
|
23
|
+
const _0x4cf9=['comments.maxThreadTotalWeight','config','model','_annotationViews','commandName','acceptAllSuggestions','type','_initializeController','Track\x20changes','CommentsRepository','_destroyController','define','set','refreshSelectedViews','suggestion-','bind','arrowView','toMany','_viewToController','listenTo','_updateController','TrackChangesEditing','mainView','lowest','has','delete','buttonView','add','destroy','_handleControllerBuffer','Discard\x20all\x20suggestions','_refreshActiveMarkers','editor','source','commentThread','activeAnnotations','_handleSuggestionControllerDelayed','_unbindEditors','createCommentThreadController','SuggestionThreadView','unbind','TrackChangesUI','_descriptionFactory','some','registerAnnotation','view','isOn','hasSuggestion','isInContent','locale','switchbutton','focus','trackChanges.SuggestionThreadView','execute','acceptButton','descriptionParts','values','isEnabled','componentFactory','activeMarkers','discardButton','commands','head','EditorAnnotations','actionView','length','init','get','suggestionUnloaded','trackChanges','getAllAdjacentSuggestions','trackChanges.disableComments','button','suggestionLoaded','Discard\x20all\x20selected\x20suggestions','editing','CommentView','change:previous','Accept\x20all\x20selected\x20suggestions','_createUIButton','discardSelectedSuggestions','getDescriptions','isDirty','comments.maxCommentCharsWhenCollapsed','value','addComment','innerView','_disableComments','getFirstRange','discardAllSuggestions','_suggestionToController','plugins','comments','requires','from','filter','getMarkerNames','Annotations','push','acceptSelectedSuggestions','getByInnerView','change:activeAnnotations'];(function(_0x351dce,_0x4cf9cf){const _0x773db4=function(_0x39f459){while(--_0x39f459){_0x351dce['push'](_0x351dce['shift']());}};_0x773db4(++_0x4cf9cf);}(_0x4cf9,0x143));const _0x773d=function(_0x351dce,_0x4cf9cf){_0x351dce=_0x351dce-0x0;let _0x773db4=_0x4cf9[_0x351dce];return _0x773db4;};import{Plugin as _0x12e8ef}from'ckeditor5/src/core';import{Collection as _0x58d21e}from'ckeditor5/src/utils';import{Model as _0xd4a64e,SplitButtonView as _0x3a6eed,createDropdown as _0x525411,addListToDropdown as _0x3805ba}from'ckeditor5/src/ui';import{Users as _0xc4de2d,getDateTimeFormatter as _0x2ee942,getAllMarkersDomElementsSorted as _0x52e7ef}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ffcc5 from'./trackchangesediting';import _0x487f9c from'./ui/suggestioncontroller';import _0x278f95 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1ffd5e}from'./utils/common-translations';import _0x2e6808 from'../theme/icons/track-changes.svg';export default class d extends _0x12e8ef{static get[_0x773d('0x4c')](){return[_0x3ffcc5,_0xc4de2d,_0x773d('0x5e'),'Annotations',_0x773d('0x2e')];}static get['pluginName'](){return _0x773d('0x18');}constructor(_0x59de9b){super(_0x59de9b),this['_suggestionToController']=new Map(),this[_0x773d('0x1')]=new Map(),this['_annotationViews']=new Map(),this[_0x773d('0xc')]=new Map();const _0x3cf40c=this[_0x773d('0xf')][_0x773d('0x56')];_0x3cf40c[_0x773d('0x60')](_0x773d('0x23'),_0x278f95),_0x3cf40c[_0x773d('0x60')](_0x773d('0x36'),!0x1),this[_0x773d('0x46')]=_0x3cf40c[_0x773d('0x32')](_0x773d('0x36'));}['_handleSuggestionControllerDelayed'](_0x212ad3,_0x4890d3){0x0===this[_0x773d('0xc')]['size']&&setTimeout(()=>{for(const [_0xea2294,_0x1bf966]of this[_0x773d('0xc')]){const _0x5874df=this[_0x773d('0x49')][_0x773d('0x7')](_0xea2294);_0x5874df||_0x1bf966?_0x5874df&&_0x1bf966&&this[_0x773d('0x5f')](_0xea2294):this['_initializeController'](_0xea2294);}this[_0x773d('0xf')]['plugins'][_0x773d('0x32')](_0x773d('0x2e'))[_0x773d('0x62')](),this[_0x773d('0xe')](),this[_0x773d('0xc')]['clear']();},0xa),this['_handleControllerBuffer']['set'](_0x212ad3,_0x4890d3);}[_0x773d('0x31')](){const _0x56cefb=this[_0x773d('0xf')],_0x1e72b8=_0x56cefb[_0x773d('0x4a')][_0x773d('0x32')](_0x773d('0x4')),_0x5cfdda=_0x56cefb[_0x773d('0x4a')][_0x773d('0x32')](_0x773d('0x50')),_0x4f77e7=_0x56cefb[_0x773d('0x4a')]['get'](_0x773d('0x2e')),_0x30ee16=_0x56cefb[_0x773d('0x4a')][_0x773d('0x32')](_0x773d('0x5e'));_0x56cefb['ui'][_0x773d('0x29')][_0x773d('0xa')](_0x773d('0x34'),_0x383b00=>this[_0x773d('0x3e')](_0x383b00)),_0x4f77e7['addSourceCollector'](()=>{const _0x1c5afc=[];for(const [_0x210edb,_0x5ef409]of Array[_0x773d('0x4d')](this[_0x773d('0x49')])){const _0xae2a3e=_0x210edb['getAllAdjacentSuggestions'](),_0x3b9bba=[];for(const _0x466f1d of _0xae2a3e){if(!_0x466f1d[_0x773d('0x1f')])continue;if(_0x466f1d['isMultiRange']){_0x3b9bba[_0x773d('0x51')](..._0x466f1d['getRanges']());continue;}const _0xabdcd5=_0x466f1d[_0x773d('0x47')]();if(_0x3b9bba['length']>0x0){const _0x542738=_0x3b9bba[0x0]['getJoined'](_0xabdcd5);if(_0x542738){_0x3b9bba[0x0]=_0x542738;continue;}}_0x3b9bba[_0x773d('0x51')](_0xabdcd5);}_0x1c5afc['push']([_0x5ef409[_0x773d('0x1c')],_0x3b9bba]);}return _0x1c5afc;}),this['listenTo'](_0x1e72b8,_0x773d('0x38'),(_0x1bbff8,_0x173717)=>{this[_0x773d('0x2')](_0x173717,_0x773d('0x3c'),(_0x2f830c,_0xbdb0c5,_0x441b9a,_0x42aa29)=>{_0x173717[_0x773d('0x1f')]&&(null==_0x441b9a?(this[_0x773d('0x3')](_0x42aa29[_0x773d('0x2d')]),this['_handleSuggestionControllerDelayed'](_0x173717,!0x1)):(this[_0x773d('0x3')](_0x441b9a[_0x773d('0x2d')]),this[_0x773d('0x13')](_0x173717,!0x0)));}),null===_0x173717['previous']?this[_0x773d('0x13')](_0x173717,!0x1):this[_0x773d('0x3')](_0x173717[_0x773d('0x2d')]);}),this[_0x773d('0x2')](_0x1e72b8,_0x773d('0x33'),(_0x4386ed,_0x1237d5,_0xc562aa)=>{this['stopListening'](_0x1237d5,_0x773d('0x3c')),this[_0x773d('0xc')]['delete'](_0x1237d5);const _0x2de316=_0xc562aa?_0xc562aa['head']:_0x1237d5,_0x220347=this[_0x773d('0x49')][_0x773d('0x32')](_0x2de316);null!==_0xc562aa&&this['_updateController'](_0x2de316),null===_0xc562aa&&_0x220347&&this['_destroyController'](_0x1237d5);}),this[_0x773d('0x2')](_0x1e72b8,'suggestionChanged',(_0x3e44c2,_0x199607)=>{this[_0x773d('0x3')](_0x199607);}),this[_0x773d('0x2')](_0x5cfdda,_0x773d('0x54'),()=>{this[_0x773d('0xe')]();}),this[_0x773d('0x2')](_0x30ee16,_0x773d('0x44'),(_0x3a67ba,{threadId:_0x49e9ba,isFromAdapter:_0x46b43b})=>{if(_0x46b43b||!_0x1e72b8[_0x773d('0x1e')](_0x49e9ba))return;const _0xf25a31=_0x1e72b8['getSuggestion'](_0x49e9ba);this['_suggestionToController'][_0x773d('0x32')](_0xf25a31)['view'][_0x773d('0x22')]();},{'priority':_0x773d('0x6')});}['_refreshActiveMarkers'](){const _0x4f4934=this[_0x773d('0xf')][_0x773d('0x4a')][_0x773d('0x32')]('Annotations'),_0x10294a=this['editor']['plugins'][_0x773d('0x32')](_0x773d('0x4')),_0x3949aa=Array[_0x773d('0x4d')](_0x4f4934[_0x773d('0x12')],_0x16e7d9=>_0x16e7d9[_0x773d('0x45')])[_0x773d('0x4e')](_0x27d465=>this[_0x773d('0x1')][_0x773d('0x7')](_0x27d465)),_0x239df3=[];for(const _0x235403 of _0x3949aa){const _0x22299f=this['_viewToController']['get'](_0x235403)[_0x773d('0x57')][_0x773d('0x35')]();_0x239df3[_0x773d('0x51')](..._0x22299f['reduce']((_0x3a45f7,_0x41815a)=>[..._0x3a45f7,..._0x41815a[_0x773d('0x4f')]()],[]));}_0x10294a[_0x773d('0x2a')]=_0x239df3;}['_createUIButton'](_0x1d6f49){const _0x1a24b4=_0x525411(_0x1d6f49,_0x3a6eed),_0x591b8c=this['editor'][_0x773d('0x2c')]['get'](_0x773d('0x34')),_0x5a28a3=_0x1ffd5e(_0x1d6f49,_0x773d('0x5d'));_0x1a24b4[_0x773d('0x9')][_0x773d('0x61')]({'tooltip':_0x5a28a3,'label':_0x5a28a3,'icon':_0x2e6808}),_0x1a24b4[_0x773d('0x9')][_0x773d('0x64')](_0x773d('0x1d'))['to'](_0x591b8c,_0x773d('0x43')),_0x1a24b4[_0x773d('0x9')]['on'](_0x773d('0x24'),()=>{_0x591b8c['execute'](),this[_0x773d('0xf')][_0x773d('0x3a')][_0x773d('0x1c')]['focus']();});const _0x569719=new _0x58d21e(),_0x484cb2=[{'type':_0x773d('0x21'),'model':{'withText':!0x0,'label':_0x5a28a3,'commandName':_0x773d('0x34')}},{'type':'separator'},{'type':_0x773d('0x37'),'model':{'withText':!0x0,'label':_0x1ffd5e(_0x1d6f49,'Accept\x20all\x20suggestions'),'commandName':_0x773d('0x5a')}},{'type':_0x773d('0x37'),'model':{'withText':!0x0,'label':_0x1ffd5e(_0x1d6f49,_0x773d('0x3d')),'commandName':_0x773d('0x52')}},{'type':_0x773d('0x37'),'model':{'withText':!0x0,'label':_0x1ffd5e(_0x1d6f49,_0x773d('0xd')),'commandName':_0x773d('0x48')}},{'type':'button','model':{'withText':!0x0,'label':_0x1ffd5e(_0x1d6f49,_0x773d('0x39')),'commandName':_0x773d('0x3f')}}];for(const _0x3b2058 of _0x484cb2){let _0x34f18d={'type':'separator'};if(_0x3b2058[_0x773d('0x57')]){const _0x466be3=new _0xd4a64e(_0x3b2058[_0x773d('0x57')]),_0x486e3e=this[_0x773d('0xf')][_0x773d('0x2c')][_0x773d('0x32')](_0x466be3['commandName']);_0x466be3['bind'](_0x773d('0x1d'),_0x773d('0x28'))['to'](_0x486e3e,_0x773d('0x43'),_0x773d('0x28')),_0x34f18d={'type':_0x3b2058[_0x773d('0x5b')],'model':_0x466be3};}_0x569719[_0x773d('0xa')](_0x34f18d);}_0x3805ba(_0x1a24b4,_0x569719);const _0x4ba553=_0x484cb2['filter'](_0x6de3c7=>null!=_0x6de3c7[_0x773d('0x57')])['map'](_0x1fec5c=>this['editor'][_0x773d('0x2c')][_0x773d('0x32')](_0x1fec5c[_0x773d('0x57')][_0x773d('0x59')])),_0x30a211=_0x1a24b4['buttonView'];return _0x30a211[_0x773d('0x2f')][_0x773d('0x17')]('isEnabled'),_0x30a211[_0x773d('0x65')]['unbind'](_0x773d('0x28')),_0x30a211[_0x773d('0x2f')]['bind'](_0x773d('0x28'))['to'](_0x591b8c,_0x773d('0x28')),_0x30a211[_0x773d('0x65')][_0x773d('0x64')](_0x773d('0x28'))[_0x773d('0x0')](_0x4ba553,_0x773d('0x28'),(..._0x3c2bee)=>_0x3c2bee[_0x773d('0x1a')](_0x3c8d99=>_0x3c8d99)),_0x1a24b4['on'](_0x773d('0x24'),_0x508725=>{this[_0x773d('0xf')]['execute'](_0x508725[_0x773d('0x10')][_0x773d('0x59')]),this[_0x773d('0xf')][_0x773d('0x3a')][_0x773d('0x1c')]['focus']();}),_0x1a24b4;}[_0x773d('0x5c')](_0x3a7f73){const _0x45e212=this[_0x773d('0xf')],_0x3f9067=_0x45e212[_0x773d('0x56')],_0x3f75a0=_0x45e212['plugins'][_0x773d('0x32')](_0x773d('0x50')),_0x115dcb=_0x45e212[_0x773d('0x4a')]['get'](_0x773d('0x5e')),_0x1c3d11=_0x45e212[_0x773d('0x4a')]['get'](_0x773d('0x2e')),_0x5c5b84=_0x45e212[_0x773d('0x4a')][_0x773d('0x32')](_0xc4de2d)['me'],_0x160292=_0x3f9067[_0x773d('0x32')]('trackChanges')[_0x773d('0x16')],{CommentsListView:_0x378b2e,CommentThreadInputView:_0x2d8c72}=_0x45e212[_0x773d('0x4a')]['get']('CommentsUI');let _0x26abe,_0x326f5f;this[_0x773d('0x58')][_0x773d('0x7')](_0x3a7f73['id'])?(_0x326f5f=this[_0x773d('0x58')][_0x773d('0x32')](_0x3a7f73['id']),_0x26abe=_0x326f5f[_0x773d('0x5')]):(_0x26abe=new _0x160292(_0x45e212[_0x773d('0x20')],_0x3a7f73,_0x5c5b84,{'disableComments':this[_0x773d('0x46')],'editorConfig':_0x3f9067[_0x773d('0x32')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3f9067['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3f9067[_0x773d('0x32')](_0x773d('0x55')),'maxCommentCharsWhenCollapsed':_0x3f9067[_0x773d('0x32')](_0x773d('0x42')),'formatDateTime':_0x2ee942(_0x3f9067[_0x773d('0x32')]('locale')),'CommentView':_0x3f9067[_0x773d('0x32')](_0x773d('0x4b'))[_0x773d('0x3b')],'CommentsListView':_0x378b2e,'CommentThreadInputView':_0x2d8c72}),_0x26abe[_0x773d('0x25')]['on'](_0x773d('0x24'),()=>{_0x45e212[_0x773d('0x3a')][_0x773d('0x1c')][_0x773d('0x22')]();}),_0x26abe[_0x773d('0x2b')]['on'](_0x773d('0x24'),()=>{_0x45e212[_0x773d('0x3a')]['view'][_0x773d('0x22')]();}),_0x326f5f=_0x3f75a0['createAnnotationView'](this[_0x773d('0xf')][_0x773d('0x20')],_0x26abe),_0x326f5f[_0x773d('0x64')](_0x773d('0x41'))['to'](_0x26abe,_0x773d('0x41')),_0x326f5f['bind'](_0x773d('0x30'))['to'](_0x26abe),_0x326f5f[_0x773d('0x64')](_0x773d('0x5b'))['to'](_0x26abe,'type',_0x332e69=>_0x773d('0x63')+_0x332e69),this[_0x773d('0x58')][_0x773d('0x61')](_0x3a7f73['id'],_0x326f5f));const _0x1c53ea=_0x115dcb[_0x773d('0x15')](_0x3a7f73[_0x773d('0x11')],_0x26abe),_0x5580b5=new _0x487f9c(_0x45e212,_0x3a7f73,_0x26abe,_0x1c53ea),_0x35c0b9=_0x3a7f73[_0x773d('0x35')]()[_0x773d('0x4e')](_0x2a98ec=>_0x2a98ec[_0x773d('0x1f')]);_0x26abe[_0x773d('0x26')]=_0x45e212['plugins'][_0x773d('0x32')](_0x773d('0x4'))[_0x773d('0x19')][_0x773d('0x40')](_0x35c0b9),this[_0x773d('0x49')]['set'](_0x3a7f73,_0x5580b5),this[_0x773d('0x1')]['set'](_0x26abe,_0x5580b5);const _0x503fb9=_0x3f75a0['createAnnotation']({'view':_0x326f5f,'target':()=>{const _0x919703=[],_0x505910=_0x3a7f73[_0x773d('0x35')]()[_0x773d('0x4e')](_0x2b1da5=>_0x2b1da5[_0x773d('0x1f')]);for(const _0x3b3f28 of _0x505910)_0x919703[_0x773d('0x51')](..._0x3b3f28['getMarkers']());return _0x52e7ef(_0x45e212[_0x773d('0x3a')],_0x919703);},'type':()=>_0x773d('0x63')+_0x5580b5['view'][_0x773d('0x5b')]});_0x115dcb['_bindAnnotationToEditors'](_0x26abe,_0x503fb9),_0x3f75a0[_0x773d('0xa')](_0x503fb9),_0x1c3d11[_0x773d('0x1b')](_0x503fb9);}['_destroyController'](_0x546b9e){const _0x15ec58=this[_0x773d('0xf')][_0x773d('0x4a')][_0x773d('0x32')]('CommentsRepository'),_0x2f8095=this[_0x773d('0xf')]['plugins'][_0x773d('0x32')](_0x773d('0x50')),_0xa297fe=this[_0x773d('0x49')][_0x773d('0x32')](_0x546b9e),_0x466239=_0xa297fe[_0x773d('0x1c')],_0x1d2c4d=_0x2f8095[_0x773d('0x53')](_0x466239);_0x15ec58[_0x773d('0x14')](_0x466239),_0x1d2c4d&&_0x2f8095['remove'](_0x1d2c4d),this[_0x773d('0x49')][_0x773d('0x8')](_0x546b9e),this[_0x773d('0x1')][_0x773d('0x8')](_0x466239),_0xa297fe[_0x773d('0xb')]();}[_0x773d('0x3')](_0x4c73df){if(!_0x4c73df[_0x773d('0x1f')]||!this[_0x773d('0x49')][_0x773d('0x7')](_0x4c73df))return;const _0xd28e1c=this['editor']['plugins'][_0x773d('0x32')](_0x773d('0x4')),_0x1d34c9=this[_0x773d('0x49')][_0x773d('0x32')](_0x4c73df),_0x55f5a6=_0x4c73df[_0x773d('0x35')]();_0x1d34c9['view'][_0x773d('0x26')]=_0xd28e1c[_0x773d('0x19')][_0x773d('0x40')](_0x55f5a6);}[_0x773d('0xb')](){for(const _0x1cc6d8 of this[_0x773d('0x49')]['keys']())this[_0x773d('0x5f')](_0x1cc6d8);for(const _0x4d16b9 of this[_0x773d('0x58')][_0x773d('0x27')]())_0x4d16b9[_0x773d('0x5')][_0x773d('0xb')]();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x147b=['PendingActions','remove','unbind','commands','getRanges','change:isDirty','isDirty','canEditAt','acceptSuggestion','discardSuggestion','isEnabled','_discardCommand','add','canAccept','_removePendingAction','canDiscard','execute','plugins','model','_pendingAction','PENDING_ACTION_SUGGESTION','view','bind','listenTo','_acceptCommand','destroy','commentThreadController','get','_setPendingAction','_editor'];(function(_0x5d310a,_0x147bdf){const _0x13b0a2=function(_0x5f57f0){while(--_0x5f57f0){_0x5d310a['push'](_0x5d310a['shift']());}};_0x13b0a2(++_0x147bdf);}(_0x147b,0x1eb));const _0x13b0=function(_0x5d310a,_0x147bdf){_0x5d310a=_0x5d310a-0x0;let _0x13b0a2=_0x147b[_0x5d310a];return _0x13b0a2;};import{ObservableMixin as _0x4ac752}from'ckeditor5/src/utils';import{getTranslation as _0x16f619}from'../utils/common-translations';export default class Ft extends _0x4ac752(){constructor(_0x498190,_0x4365d4,_0x5e3dc0,_0x3879a7){super(),this['model']=_0x4365d4,this[_0x13b0('0xa')]=_0x5e3dc0,this['commentThreadController']=_0x3879a7,this[_0x13b0('0x12')]=_0x498190,this[_0x13b0('0xd')]=_0x498190['commands'][_0x13b0('0x10')](_0x13b0('0x1b')),this[_0x13b0('0x0')]=_0x498190[_0x13b0('0x16')][_0x13b0('0x10')](_0x13b0('0x1c')),this[_0x13b0('0xa')][_0x13b0('0xb')](_0x13b0('0x1d'))['to'](this[_0x13b0('0xd')],this[_0x13b0('0x0')],(_0x481fd6,_0x5c5fd0)=>_0x481fd6||_0x5c5fd0),this[_0x13b0('0xa')][_0x13b0('0xb')]('canAccept')['to'](this['_acceptCommand'],_0x13b0('0x1d'),_0x8ff972=>_0x8ff972&&this['_editor'][_0x13b0('0x7')][_0x13b0('0x1a')](_0x4365d4['getRanges']())),this[_0x13b0('0xa')][_0x13b0('0xb')](_0x13b0('0x4'))['to'](this[_0x13b0('0x0')],_0x13b0('0x1d'),_0x39a78e=>_0x39a78e&&this[_0x13b0('0x12')][_0x13b0('0x7')][_0x13b0('0x1a')](_0x4365d4[_0x13b0('0x17')]())),this[_0x13b0('0x8')]=null,_0x5e3dc0['isDirty']&&this[_0x13b0('0x11')](),this[_0x13b0('0xc')](_0x5e3dc0,_0x13b0('0x1b'),()=>this[_0x13b0('0x1b')]()),this['listenTo'](_0x5e3dc0,'discardSuggestion',()=>this[_0x13b0('0x1c')]()),this[_0x13b0('0xc')](_0x5e3dc0,_0x13b0('0x18'),()=>{_0x5e3dc0[_0x13b0('0x19')]?this[_0x13b0('0x11')]():this[_0x13b0('0x3')]();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this[_0x13b0('0x7')]['id']);}[_0x13b0('0x1c')](){this['_discardCommand'][_0x13b0('0x5')](this[_0x13b0('0x7')]['id']);}['destroy'](){this[_0x13b0('0xa')][_0x13b0('0x15')]('isEnabled'),this[_0x13b0('0xa')]['unbind'](_0x13b0('0x2')),this[_0x13b0('0xa')][_0x13b0('0x15')](_0x13b0('0x4')),this['stopListening'](),this[_0x13b0('0xf')][_0x13b0('0xe')](),this[_0x13b0('0x8')]&&this[_0x13b0('0x3')]();}[_0x13b0('0x11')](){const _0x3b8c7d=_0x16f619(this[_0x13b0('0x12')]['locale'],_0x13b0('0x9'));this[_0x13b0('0x8')]=this[_0x13b0('0x12')][_0x13b0('0x6')][_0x13b0('0x10')](_0x13b0('0x13'))[_0x13b0('0x1')](_0x3b8c7d);}[_0x13b0('0x3')](){null!==this[_0x13b0('0x8')]&&this[_0x13b0('0x12')][_0x13b0('0x6')]['get'](_0x13b0('0x13'))[_0x13b0('0x14')](this['_pendingAction']),this[_0x13b0('0x8')]=null;}}
|