@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230818.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.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2928=['isObject','group','creator','position','options','_mergeNestedSuggestions','createdAt','markMultiRangeDeletion','ready','_checkSuggestionCorrectness','ck-suggestion-marker-','multi','_addSuggestionMarker','filter','isMultiRange','markerName','rootName','_registerDefaultCallbacks','editing','formatBlock:','createRange','subType','_descriptionFactory','containsItem','stop','howMany','_suggestionFactory','reconvertMarker','createElement','catch','after','track-changes-user-not-found','getRange','trackChanges.trackFormatChanges','root','originalSuggestionId','setSelection','removeAttribute','markMultiRangeBlockFormat','pluginName','nodeBefore','suggestionLoaded','insertContent','isSelectable','TrackChangesEditing','return','CommentsRepository','createPositionAfter','toJSON','insert','containsRangeInObject','push','buildSuggestion','createRangeIn','widget','conversion','_isForcedDefaultExecutionBlock','addHighlight','config','_defaultCallbacks','PendingActions','never','schema','addMarker:suggestion:formatBlock','selection','addCommentThread','isExternal','bindElementToMarker','includes','_trackFormatChanges','item','formatBlock','backward','track-changes-adapter-missing-getsuggestion','_suggestionState','start','_setSuggestionRange','enqueueChange','data-suggestion','authorName','isAfter','fire','getMultiRangeId','formatInline:accept','model','size','every','getCustomProperty','some','dataDowncast','removeComment','hasCommentThread','formatBlock:discard','always','_handleNewSuggestionMarker','_addThreadToSuggestion','formatInline:discard','getFirstMarker','head','_updateSuggestionData','from','getMarkers','getUser','isEqual','update:suggestion','differ','hasComments','_adapter','next','splitPosition','$graveyard','add','formatInline','then','getNearestSelectionRange','_saved','isRemovable','_commentsRepository','acceptSuggestion','_editor','markerReady','ck-suggestion-marker','isInContent','forceDefaultExecution','name','markerNameToElements','suggestionChanged','change','_rangeIsInLocalUserInsertion','length','suggestion-type','mapper','getLastMatchingPosition','commands','removeMarkers','split','documentSelection','unbindElementFromMarkerName','deletion:accept','trackChanges.mergeNestedSuggestions','addMarkerName','moveTargetPosition','activeMarkers','_model','map','suggestion:','author','ck-suggestion-marker--active','setTo','data','get','highest','getFirstRange','_breakSuggestionMarker','listenTo','_findSuggestions','applyOperation','createPositionAt','track-changes-suggestion-data-mismatch','containsPosition','formatInline:chain','element','has','enableReadOnlyMode','addSuggestionData','ck-suggestion-marker-formatBlock','$marker','getSuggestionCallback','acceptAllSuggestions','_splitMarkerName','values','registerPostFixer','trackChanges','insertion:accept','splice','join','discardSelectedSuggestions','type','unbind','registerCustomCallback','previous','targetPosition','discardSuggestion','accept','isNextTo','authoredAt','value','document','removed','discardAllSuggestions','plugins','getSuggestion','markInsertion','markers','_refreshSuggestionsChain','low','addMarker:suggestion','_enabledCommands','createSelection','elementEnd','high','sort','remove','for','getItems','enableCommand','init','change:_saved','_createSuggestion','clone','getAttribute','@external','_onDiscard','commentThread','removeMarker','resolve','removeClass','containsRange','deletion:join','_joinSuggestions','forward','_setSuggestionData','formatInline:','collaboration.channelId','isIntersectingWithRange','getDifference','showSuggestionHighlights','newRange','execute','isLocal','isUndo','deletion','multipleBlocks','upcast','setAttribute','normal','isTouching','isLimit','insertion:chain','deletion:chain','substr','nodeAfter','updateMarker','trackChangesCommand','updateSuggestion','rejected','addComment','locale','consumable','chain','getIntersection','dataReady','discard','markMultiRangeInsertion','commandName','removeMarker:suggestion:formatBlock','isBlock','track-changes-suggestion-not-found','getChangedMarkers','getAllAdjacentSuggestions','deleteContent','getRanges','getShiftedBy','detach','default','notReady','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','addClass','change:data','writer','editor','getSuggestions','track-changes-command-not-found','Users','elementStart','define','insertion','markDeletion','editingDowncast','dataToMarker','error-saving-suggestion-data-suggestion-discarded','refresh','isAtEnd','skipNestingCheck','getWalker','delete','oldRange','addSuggestion','addRange','insertion:','getCommentThread','deletion:','isCollapsed','_getAuthorFromId','batch','adapter','isBefore','formatGroupId','markInlineFormat','external:','formatBlock:accept','isDocumentOperation','createPositionBefore','markerToHighlight','consume','PENDING_ACTION_SUGGESTION','isOwn','attributes','set','suggestion','_removeSuggestion','end','move','fromRange','parent','suggestionUnloaded','_cutOutSuggestionMarker','getAncestors','_suggestions','range','clear','_getSuggestionData','change:activeMarkers','_customCallbacks','isInsideObject'];(function(_0x276c62,_0x2928f7){const _0x7e0b26=function(_0x1f5715){while(--_0x1f5715){_0x276c62['push'](_0x276c62['shift']());}};_0x7e0b26(++_0x2928f7);}(_0x2928,0x109));const _0x7e0b=function(_0x276c62,_0x2928f7){_0x276c62=_0x276c62-0x0;let _0x7e0b26=_0x2928[_0x276c62];return _0x7e0b26;};import{Plugin as _0x321376,PendingActions as _0x520fbc}from'ckeditor5/src/core';import{LiveRange as _0x491aa7}from'ckeditor5/src/engine';import{CKEditorError as _0x58fb70,uid as _0x1862e6,priorities as _0xf969cc,logWarning as _0x2f4b48}from'ckeditor5/src/utils';import{toWidget as _0x37d5c8}from'ckeditor5/src/widget';import{Users as _0x3bd855,hashObject as _0x1685bc}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ab93a from'./commands/trackchangescommand';import _0x3b4901 from'./commands/acceptsuggestioncommand';import _0x433a42 from'./commands/discardsuggestioncommand';import _0x28e3b2 from'./commands/executeonallsuggestionscommand';import _0x16f9ac from'./commands/executeonselectedsuggestionscommand';import _0x232d62 from'./suggestion';import _0x929de5 from'./suggestiondescriptionfactory';import _0x46390a from'./integrations/alignment';import _0x5bc39d from'./integrations/basicstyles';import _0x3fabc7 from'./integrations/blockquote';import _0x5c8300 from'./integrations/ckbox';import _0x1336c0 from'./integrations/codeblock';import _0x5ebef3 from'./integrations/comments';import _0x501c8d from'./integrations/deletecommand';import _0x51bd62 from'./integrations/documentlist';import _0x13d70b from'./integrations/entercommand';import _0x84dcad from'./integrations/findandreplace';import _0x21b2af from'./integrations/font';import _0xa36196 from'./integrations/formatpainter';import _0x1f25b3 from'./integrations/heading';import _0x1aae36 from'./integrations/highlight';import _0x2813b1 from'./integrations/horizontalline';import _0x15fbd0 from'./integrations/htmlembed';import _0x1c9fb3 from'./integrations/image';import _0x1c9f51 from'./integrations/imagereplace';import _0x2ba43c from'./integrations/importword';import _0x16afbd from'./integrations/indent';import _0x28a733 from'./integrations/inputcommand';import _0x3fdfa3 from'./integrations/link';import _0x253459 from'./integrations/list';import _0x9d363 from'./integrations/listproperties';import _0x1cdd9f from'./integrations/mediaembed';import _0x47d786 from'./integrations/mention';import _0x498742 from'./integrations/pagebreak';import _0x20b1f8 from'./integrations/paragraph';import _0x4436ef from'./integrations/removeformat';import _0x47fb5a from'./integrations/restrictededitingmode';import _0x22659d from'./integrations/shiftentercommand';import _0x29deed from'./integrations/standardeditingmode';import _0x40b576 from'./integrations/style';import _0x4e4e61 from'./integrations/table';import _0x4b7877 from'./integrations/tablemergesplit';import _0x367a89 from'./integrations/tableheadings';import _0x14e9e3 from'./integrations/tableclipboard';import _0x31d3ab from'./integrations/tablecolumnresize';import _0x1051a8 from'./integrations/template';import _0x46015f from'./integrations/tableofcontents';import _0x5b2246 from'./integrations/title';import _0xe3760a from'./integrations/undo';import{getTranslation as _0x25f2c4}from'./utils/common-translations';import _0x3ddec0 from'./integrations/tablecaption';import _0x98523b from'./integrations/documentlistproperties';import _0x14be67 from'./integrations/tableproperties';export default class p extends _0x321376{static get['requires'](){return['CommentsRepository',_0x3bd855,_0x520fbc,_0x46390a,_0x5bc39d,_0x3fabc7,_0x5c8300,_0x1336c0,_0x5ebef3,_0x501c8d,_0x51bd62,_0x98523b,_0x13d70b,_0x84dcad,_0x21b2af,_0xa36196,_0x1f25b3,_0x1aae36,_0x2813b1,_0x15fbd0,_0x1c9fb3,_0x1c9f51,_0x2ba43c,_0x16afbd,_0x28a733,_0x3fdfa3,_0x253459,_0x9d363,_0x1cdd9f,_0x47d786,_0x498742,_0x20b1f8,_0x4436ef,_0x47fb5a,_0x22659d,_0x29deed,_0x40b576,_0x4e4e61,_0x4b7877,_0x367a89,_0x3ddec0,_0x14e9e3,_0x31d3ab,_0x46015f,_0x14be67,_0x1051a8,_0x5b2246,_0xe3760a];}static get[_0x7e0b('0x64')](){return _0x7e0b('0x69');}constructor(_0x2d1cf4){function _0x10c953(_0x2bb088){return _0x2bb088[_0x7e0b('0xcd')](_0x4309aa=>String['fromCharCode'](_0x4309aa))[_0x7e0b('0xec')]('');}super(_0x2d1cf4),this[_0x7e0b('0x2c')]('activeMarkers',[]),this['on'](_0x7e0b('0x3a'),(_0x53208a,_0x46fd8b,_0xbf4de6,_0x14352d)=>{this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](()=>{for(const _0x101118 of[..._0x14352d,..._0xbf4de6])this[_0x7e0b('0xcc')][_0x7e0b('0xfe')][_0x7e0b('0xdf')](_0x101118)&&_0x2d1cf4[_0x7e0b('0x4f')][_0x7e0b('0x58')](_0x101118);});}),this[_0x7e0b('0x53')]=new _0x929de5(this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x7b')],this[_0x7e0b('0x6')][_0x7e0b('0x134')]),this['_adapter']=null,this[_0x7e0b('0x57')]=new Dt(this['editor']),this[_0x7e0b('0x36')]=new Map(),this['_commentsRepository']=_0x2d1cf4[_0x7e0b('0xfb')]['get'](_0x7e0b('0x6b')),this['_enabledCommands']=new Set(),this[_0x7e0b('0xcc')]=this[_0x7e0b('0x6')][_0x7e0b('0x91')],this[_0x7e0b('0x87')]=new WeakMap(),this[_0x7e0b('0x75')]=!0x1,_0x2d1cf4[_0x7e0b('0x77')]['define']('trackChanges.trackFormatChanges',_0x7e0b('0x145')),this[_0x7e0b('0x82')]=_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x5e')),_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xb')](_0x7e0b('0xc8'),!0x0),this[_0x7e0b('0x42')]=_0x2d1cf4[_0x7e0b('0x77')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x7e0b('0x130')]=new _0x3ab93a(_0x2d1cf4,this['_enabledCommands']),this[_0x10c953([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10c953([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x32]);}[_0x7e0b('0x10b')](){const _0x3db3e4=this['editor'];_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0x27')]({'model':'suggestion','view':_0x4f3c62=>{const {id:_0x1432aa,type:_0x5142c5}=this['_splitMarkerName'](_0x4f3c62['markerName']),_0x2e185a=[_0x7e0b('0xb6'),_0x7e0b('0x47')+_0x5142c5];let _0x570db1=0xbb8;return this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x4f3c62['markerName'])&&(_0x2e185a['push'](_0x7e0b('0xd0')),_0x570db1=0xbc2),'deletion'==_0x5142c5&&(_0x570db1+=0x5),{'classes':_0x2e185a,'attributes':{'data-suggestion':_0x1432aa},'priority':_0x570db1};}}),_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x4ce6fa=>{_0x4ce6fa['on'](_0x7e0b('0x101'),(_0x517b73,_0x472d83,_0x38af86)=>{if(!_0x38af86['options'][_0x7e0b('0x11f')])return;const _0x1ca598=_0x472d83['item'];if(!_0x1ca598)return;const _0x40c0b3=_0x38af86[_0x7e0b('0xc0')]['toViewElement'](_0x1ca598);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1ca598)&&_0x40c0b3&&!_0x40c0b3[_0x7e0b('0x94')](_0x7e0b('0x73'))&&_0x40c0b3['is']('containerElement')&&_0x37d5c8(_0x40c0b3,_0x38af86['writer']);},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for'](_0x7e0b('0x96'))[_0x7e0b('0x27')]({'model':_0x7e0b('0x2d'),'view':(_0x21adf7,_0x2181a7)=>{if(!_0x2181a7[_0x7e0b('0x41')][_0x7e0b('0x11f')])return null;const {type:_0x3b0ad1}=this[_0x7e0b('0xe6')](_0x21adf7[_0x7e0b('0x4c')]);return{'classes':['ck-suggestion-marker',_0x7e0b('0x47')+_0x3b0ad1],'priority':0xbb8};}});const _0x41f028=({showActiveMarkers:_0x455852=!0x0}={})=>(_0x4c2214,_0x3a04f7,_0x10f6fc)=>{if(!_0x3a04f7[_0x7e0b('0x83')])return;if(_0x3a04f7[_0x7e0b('0x83')]['is'](_0x7e0b('0x7d')))return void _0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7[_0x7e0b('0x83')],_0x4c2214[_0x7e0b('0xb9')]);const _0x3ba81f=_0x10f6fc[_0x7e0b('0xc0')]['toViewElement'](_0x3a04f7[_0x7e0b('0x83')]);if(!(_0x3a04f7['item']['is'](_0x7e0b('0xde'))&&_0x3db3e4[_0x7e0b('0x91')]['schema'][_0x7e0b('0x13d')](_0x3a04f7['item'])&&!_0x3ba81f[_0x7e0b('0x94')](_0x7e0b('0x76'))))return;const {id:_0x3b99b2}=this[_0x7e0b('0xe6')](_0x3a04f7[_0x7e0b('0x4c')]);_0x10f6fc['writer']['addClass']([_0x7e0b('0xb6'),_0x7e0b('0xe2')],_0x3ba81f),_0x10f6fc[_0x7e0b('0x5')][_0x7e0b('0x127')](_0x7e0b('0x8b'),_0x3b99b2,_0x3ba81f),_0x10f6fc[_0x7e0b('0xc0')][_0x7e0b('0x80')](_0x3ba81f,_0x3a04f7[_0x7e0b('0x4c')]),_0x455852&&(this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x3a04f7['markerName'])?_0x10f6fc['writer'][_0x7e0b('0x3')](_0x7e0b('0xd0'),_0x3ba81f):_0x10f6fc['writer'][_0x7e0b('0x115')](_0x7e0b('0xd0'),_0x3ba81f));for(const _0x599772 of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x72')](_0x3a04f7[_0x7e0b('0x83')])[_0x7e0b('0x109')]())_0x10f6fc['consumable'][_0x7e0b('0x28')](_0x599772,_0x4c2214[_0x7e0b('0xb9')]);_0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7['item'],_0x4c2214['name']);};_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x55c3ae=>{_0x55c3ae['on'](_0x7e0b('0x7c'),(_0x6ff516,_0x12bb06,_0x1098c9)=>{_0x1098c9['options'][_0x7e0b('0x11f')]&&_0x41f028({'showActiveMarkers':!0x1})(_0x6ff516,_0x12bb06,_0x1098c9);},{'priority':_0x7e0b('0xd4')});}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x96'))['markerToData']({'model':_0x7e0b('0x2d'),'view':(_0x1a610b,_0x2459d7)=>_0x2459d7[_0x7e0b('0x41')][_0x7e0b('0x11f')]?null:{'group':_0x7e0b('0x2d'),'name':_0x1a610b[_0x7e0b('0x12d')](0xb)}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))['elementToElement']({'view':{'name':_0x7e0b('0x2d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b8e34,{writer:_0x8d5bc})=>{let _0x3ac5aa='suggestion:'+_0x5b8e34[_0x7e0b('0x10f')](_0x7e0b('0xbf'))+':'+_0x5b8e34['getAttribute']('id');return _0x5b8e34['getAttribute']('marker-count')&&(_0x3ac5aa+=':'+_0x5b8e34[_0x7e0b('0x10f')]('marker-count')),_0x8d5bc[_0x7e0b('0x59')](_0x7e0b('0xe3'),{'data-name':_0x3ac5aa});}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))[_0x7e0b('0xf')]({'view':'suggestion'}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0xac')](_0x379d06=>{_0x379d06['on'](_0x7e0b('0x7c'),_0x41f028(),{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for']('editingDowncast')[_0x7e0b('0xac')](_0x546f4b=>{_0x546f4b['on'](_0x7e0b('0x13c'),(_0x249c24,_0x3f78b8,_0x5b6170)=>{const _0x4683ee=_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xba')](_0x3f78b8[_0x7e0b('0x4c')]);if(_0x4683ee)for(const _0x27038a of _0x4683ee)_0x27038a[_0x7e0b('0x94')](_0x7e0b('0x76'))||(_0x5b6170['writer']['removeClass']([_0x7e0b('0xb6'),'ck-suggestion-marker-formatBlock',_0x7e0b('0xd0')],_0x27038a),_0x5b6170[_0x7e0b('0x5')][_0x7e0b('0x62')]('data-suggestion',_0x27038a),_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xc6')](_0x27038a,_0x3f78b8[_0x7e0b('0x4c')]));},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x68975=>{let _0x34306d=!0x1;const _0x5f3864=Array['from'](_0x3db3e4[_0x7e0b('0x91')]['document']['differ'][_0x7e0b('0x13f')]()),_0x304d04=new Set();for(const {name:_0x3e2fc0,data:_0x4206a2}of _0x5f3864){const {group:_0x343103,type:_0x22e4f9,id:_0x3680b8}=this['_splitMarkerName'](_0x3e2fc0);if(_0x7e0b('0x2d')!==_0x343103)continue;const _0x32b5aa=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x3680b8);if(null!=_0x4206a2['newRange']){_0x7e0b('0xad')==_0x22e4f9&&(_0x34306d=_0x34306d||Mt(_0x4206a2[_0x7e0b('0x120')],_0x3e2fc0,_0x68975,_0x3db3e4['model'][_0x7e0b('0x7b')]));if(_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x5f')][_0x7e0b('0x4d')]||_0x7e0b('0x84')==_0x22e4f9&&!Nt(_0x4206a2[_0x7e0b('0x120')])||'deletion'==_0x22e4f9&&!(!_t(_0x53f75b=_0x4206a2[_0x7e0b('0x120')])&&!function(_0x54668f){return _0x54668f['start'][_0x7e0b('0x32')]==_0x54668f[_0x7e0b('0x2f')]['nodeBefore']&&_0x54668f['start'][_0x7e0b('0x12')];}(_0x53f75b)))_0x68975[_0x7e0b('0x113')](_0x3e2fc0),_0x34306d=!0x0;else{if(!_0x32b5aa||!_0x32b5aa[_0x7e0b('0xb7')])continue;_0x304d04[_0x7e0b('0xac')](_0x32b5aa);}}}var _0x53f75b;return _0x304d04[_0x7e0b('0x92')]>0x0&&(_0x34306d=!!this[_0x7e0b('0x1')](_0x304d04)||_0x34306d),_0x34306d;}),_0x3db3e4['model'][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x3d829d=>{let _0x5d128f=!0x1;for(const _0x1279db of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')]['getChanges']()){if(_0x7e0b('0x6e')!=_0x1279db[_0x7e0b('0xee')])continue;const _0x214359=_0x1279db['position']['getShiftedBy'](_0x1279db[_0x7e0b('0xbe')]);if(_0x214359['isAtEnd'])for(const _0x36ce40 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]()){if(_0x36ce40['isMultiRange']||!_0x36ce40[_0x7e0b('0xb7')])continue;if(_0x7e0b('0x84')!=_0x36ce40[_0x7e0b('0xee')])continue;const _0x17595a=_0x36ce40[_0x7e0b('0xd5')]();if(_0x17595a['start'][_0x7e0b('0x32')]!=_0x17595a[_0x7e0b('0x2f')][_0x7e0b('0x32')]&&_0x17595a['end'][_0x7e0b('0xa4')](_0x1279db[_0x7e0b('0x40')])){const _0x455508=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x17595a['start'],_0x214359);_0x3d829d['updateMarker'](_0x36ce40[_0x7e0b('0x9e')](),{'range':_0x455508}),_0x5d128f=!0x0;}}}return _0x5d128f;}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xfe')]['on'](_0x7e0b('0xa5'),(_0x59db46,_0x286fbc,_0x4ce649)=>{if(null==_0x4ce649){const {id:_0x1144e1}=this['_splitMarkerName'](_0x286fbc[_0x7e0b('0xb9')]),_0x5b1f65=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x1144e1);_0x5b1f65&&_0x5b1f65[_0x7e0b('0xc9')](_0x286fbc[_0x7e0b('0xb9')]);}}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')]['on'](_0x7e0b('0x4'),()=>{const _0x418fd2=Array[_0x7e0b('0xa1')](_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')][_0x7e0b('0x13f')]())['filter'](_0xad5cd2=>_0x7e0b('0x2d')===this[_0x7e0b('0xe6')](_0xad5cd2[_0x7e0b('0xb9')])[_0x7e0b('0x3e')]);if(0x0===_0x418fd2[_0x7e0b('0xbe')])return;_0x418fd2[_0x7e0b('0x106')]((_0x5aafa4,_0x49912f)=>{const _0x8c6685=_0x5aafa4['data'][_0x7e0b('0x16')],_0x4321f5=_0x49912f['data'][_0x7e0b('0x16')];return null===_0x8c6685&&null===_0x4321f5?0x0:null===_0x8c6685&&null!==_0x4321f5?-0x1:null!==_0x8c6685&&null===_0x4321f5?0x1:_0x8c6685['start']['isBefore'](_0x4321f5[_0x7e0b('0x88')])?-0x1:0x1;});const _0x446e7b=new Set(),_0x43aaef=new Set();for(const {name:_0x5f19f4,data:_0x4c4081}of _0x418fd2){const {id:_0x4425c3}=this[_0x7e0b('0xe6')](_0x5f19f4);if(null===_0x4c4081[_0x7e0b('0x16')]){const _0x4ccecb=this[_0x7e0b('0x9b')](_0x5f19f4);_0x43aaef[_0x7e0b('0xac')](_0x4ccecb);}else{const _0xaaa503=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x4425c3);null!==_0x4c4081['newRange']||_0xaaa503[_0x7e0b('0xb7')]?(_0x446e7b[_0x7e0b('0xac')](_0xaaa503[_0x7e0b('0x9f')]),_0x43aaef['add'](_0xaaa503)):this[_0x7e0b('0x2e')](_0xaaa503);}}_0x43aaef['size']>0x0&&this[_0x7e0b('0xff')](_0x43aaef);for(const _0x21ccfb of _0x446e7b)this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x21ccfb);}),_0x3db3e4['model']['on'](_0x7e0b('0xd9'),(_0x4398bd,_0x59c986)=>{const _0x383316=_0x59c986[0x0];if(!this[_0x7e0b('0x36')]['size'])return;if(!_0x383316[_0x7e0b('0x25')])return;if(_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x123')]||!_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x122')])return;let _0x124e73,_0x1074e0;switch(_0x383316[_0x7e0b('0xee')]){case'insert':_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0x40')]),_0x1074e0=_0x124e73['getShiftedBy'](_0x383316[_0x7e0b('0x56')]);break;case _0x7e0b('0xc4'):_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xaa')]),_0x1074e0=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xca')]);break;case _0x7e0b('0x30'):_0x124e73=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xf2')]),_0x1074e0=_0x124e73[_0x7e0b('0x143')](_0x383316[_0x7e0b('0x56')]);break;default:return;}const _0x3d051c=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x124e73,_0x1074e0);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const {suggestion:_0x2f2bfb,meta:_0x71c7b}of this['_findSuggestions'](_0x3d051c)){if(_0x2f2bfb['isMultiRange'])continue;if(_0x7e0b('0xad')==_0x2f2bfb[_0x7e0b('0xee')])continue;const _0x26c107=_0x2f2bfb['data']&&_0x2f2bfb[_0x7e0b('0xd2')][_0x7e0b('0x125')];(_0x7e0b('0x84')!=_0x2f2bfb['type']||_0x7e0b('0xc4')==_0x383316['type']&&!_0x26c107)&&(_0x71c7b[_0x7e0b('0x6f')]||_0x7e0b('0xc')==_0x2f2bfb['type']&&_0x71c7b[_0x7e0b('0x2a')]||_0x2f2bfb['getFirstRange']()[_0x7e0b('0x116')](_0x3d051c)&&this[_0x7e0b('0xd6')](_0x2f2bfb,_0x124e73,_0x1074e0));}});},{'priority':'lowest'}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x141'),(_0x3dc275,_0x23ef7a)=>{const _0x581212=_0x23ef7a[0x0],_0x624f7a=_0x23ef7a[0x1];if(_0x624f7a&&_0x624f7a[_0x7e0b('0xb8')])return;if(this[_0x7e0b('0x75')])return;if(!this[_0x7e0b('0x130')][_0x7e0b('0xf7')])return;if(_0x581212[_0x7e0b('0x1c')])return;const _0x2cfdbe=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')],{start:_0x5db3fd,end:_0x181faa}=_0x581212[_0x7e0b('0xd5')](),_0x54954d=_0x5db3fd[_0x7e0b('0x12e')]&&_0x2cfdbe['isLimit'](_0x5db3fd[_0x7e0b('0x12e')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x5db3fd,_0x7e0b('0x119')),_0x2841dd=_0x181faa[_0x7e0b('0x65')]&&_0x2cfdbe[_0x7e0b('0x12a')](_0x181faa[_0x7e0b('0x65')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x181faa,_0x7e0b('0x85')),_0x140e06=_0x3db3e4['model'][_0x7e0b('0x51')](_0x54954d?_0x54954d[_0x7e0b('0x88')]:_0x5db3fd,_0x2841dd?_0x2841dd['end']:_0x181faa);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](_0xe243d7=>{this[_0x7e0b('0xd')](_0x140e06);const _0x3fe944=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0xaf')](_0x140e06[_0x7e0b('0x88')]);_0x581212['is'](_0x7e0b('0xc5'))?_0xe243d7[_0x7e0b('0x61')](_0x3fe944):_0x581212[_0x7e0b('0xd1')](_0x3fe944);}),_0x3dc275[_0x7e0b('0x55')]();},{'priority':_0xf969cc[_0x7e0b('0x128')]+0xa}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x67'),(_0x2b7587,_0x53d36c)=>{const _0xfa6446=_0x53d36c[_0x53d36c[_0x7e0b('0xbe')]-0x1];_0xfa6446&&_0xfa6446['forceDefaultExecution']||this[_0x7e0b('0x75')]||this[_0x7e0b('0x130')][_0x7e0b('0xf7')]&&(_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{let _0x310459=_0x3db3e4['model'][_0x7e0b('0x67')](_0x53d36c[0x0],_0x53d36c[0x1],_0x53d36c[0x2],{'forceDefaultExecution':!0x0});if(!_0x310459)return;_0x2b7587[_0x7e0b('0x6a')]=_0x310459[_0x7e0b('0x10e')]();const _0x28aead=_0x310459[_0x7e0b('0x2f')][_0x7e0b('0x65')],_0x7ca8d4=_0x3db3e4['model']['schema'];_0x28aead&&_0x7ca8d4[_0x7e0b('0x13d')](_0x28aead)&&!_0x7ca8d4['isObject'](_0x28aead)&&(_0x310459=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x310459[_0x7e0b('0x88')],_0x3db3e4[_0x7e0b('0x91')]['createPositionAt'](_0x28aead,_0x7e0b('0x2f')))),this[_0x7e0b('0xfd')](_0x310459);}),_0x2b7587['stop']());},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0x6')][_0x7e0b('0xc2')]['add'](_0x7e0b('0xe9'),this[_0x7e0b('0x130')]),this[_0x7e0b('0x10a')](_0x7e0b('0xe9'));const _0x2d6d1e=new _0x3b4901(_0x3db3e4,this[_0x7e0b('0x36')]);_0x3db3e4['commands'][_0x7e0b('0xac')]('acceptSuggestion',_0x2d6d1e),this['enableCommand'](_0x7e0b('0xb3'));const _0x2e76b4=new _0x433a42(_0x3db3e4,this['_suggestions']);_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xf3'),_0x2e76b4),this[_0x7e0b('0x10a')](_0x7e0b('0xf3')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xe5'),new _0x28e3b2(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0xe5')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xfa'),new _0x28e3b2(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this[_0x7e0b('0x10a')](_0x7e0b('0xfa')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0x2'),new _0x16f9ac(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0x2')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xed'),new _0x16f9ac(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this['enableCommand'](_0x7e0b('0xed'));const _0x2c5538=_0x3db3e4[_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x6b'));this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x133'),(_0x34e5dc,{threadId:_0x231807})=>{const _0x330e0f=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x231807);_0x330e0f&&_0x330e0f[_0x7e0b('0x112')]&&0x1===_0x330e0f[_0x7e0b('0x112')][_0x7e0b('0xbe')]&&this['_updateSuggestionData'](_0x231807,{'hasComments':!0x0});},{'priority':_0x7e0b('0x100')}),this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x97'),(_0xa2faeb,{threadId:_0x2538aa})=>{const _0x986047=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x2538aa);_0x986047&&_0x986047[_0x7e0b('0x112')]&&!_0x986047['commentThread'][_0x7e0b('0xbe')]&&this[_0x7e0b('0xa0')](_0x2538aa,{'hasComments':!0x1});},{'priority':_0x7e0b('0x100')});}set[_0x7e0b('0x1f')](_0xd29e1){if(this['_adapter'])throw new _0x58fb70('track-changes-adapter-already-set',this);this[_0x7e0b('0xa8')]=_0xd29e1;}get[_0x7e0b('0x1f')](){return this[_0x7e0b('0xa8')];}['getSuggestions']({skipNotAttached:_0x5eb0b2=!0x1,toJSON:_0x177403=!0x1}={}){const _0x269ae9=[];for(const _0x4112a2 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]())_0x5eb0b2&&!_0x4112a2[_0x7e0b('0xb7')]||_0x269ae9[_0x7e0b('0x70')](_0x4112a2);return _0x177403?_0x269ae9[_0x7e0b('0xcd')](_0x5742f6=>_0x5742f6[_0x7e0b('0x6d')]()):_0x269ae9;}[_0x7e0b('0xfc')](_0x295ae9){const _0x13074f=this[_0x7e0b('0x36')]['get'](_0x295ae9);if(!_0x13074f)throw new _0x58fb70(_0x7e0b('0x13e'),this);return _0x13074f;}['hasSuggestion'](_0x3e6869){return this[_0x7e0b('0x36')][_0x7e0b('0xdf')](_0x3e6869);}[_0x7e0b('0xe1')](_0x59d7a4){const {authorId:_0x33b11f,id:_0x24b98b,attributes:_0x4d5cc6}=_0x59d7a4,[_0x5e7706,_0x572aaf]=_0x59d7a4[_0x7e0b('0xee')][_0x7e0b('0xc4')](':'),_0x26c2a5=this[_0x7e0b('0x36')]['get'](_0x24b98b)||this[_0x7e0b('0x10d')](_0x5e7706,_0x572aaf,_0x24b98b,_0x33b11f,_0x4d5cc6);if(this[_0x7e0b('0x9c')](_0x26c2a5),this[_0x7e0b('0x46')](_0x26c2a5,_0x5e7706,_0x572aaf||null,_0x33b11f),_0x26c2a5[_0x7e0b('0x43')]=_0x59d7a4['createdAt'],_0x4d5cc6&&_0x4d5cc6[_0x7e0b('0x110')]){const _0x50ba99=_0x4d5cc6['@external'],_0x4b227c=this['_getExternalAuthor'](_0x50ba99[_0x7e0b('0x8c')]);_0x26c2a5[_0x7e0b('0xf6')]=_0x50ba99[_0x7e0b('0x43')],_0x26c2a5[_0x7e0b('0xcf')]=_0x4b227c,_0x26c2a5[_0x7e0b('0x7f')]=!0x0;}else _0x26c2a5[_0x7e0b('0xf6')]=_0x59d7a4[_0x7e0b('0x43')];switch(_0x59d7a4[_0x7e0b('0xd2')]&&(_0x26c2a5[_0x7e0b('0xd2')]=_0x59d7a4[_0x7e0b('0xd2')]),_0x59d7a4['attributes']&&(_0x26c2a5['attributes']=_0x59d7a4[_0x7e0b('0x2b')]),this['_adapter']&&this[_0x7e0b('0xa8')]['addSuggestion']||(_0x26c2a5[_0x7e0b('0xb0')]=!0x0),this['_suggestionState']['get'](_0x26c2a5)){case _0x7e0b('0x0'):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x138'));break;case _0x7e0b('0xb5'):_0x26c2a5[_0x7e0b('0xb7')]?(this['_suggestionState'][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x45')),this[_0x7e0b('0x8e')](_0x7e0b('0x66'),_0x26c2a5)):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0xf9'));}return _0x26c2a5;}[_0x7e0b('0xb3')](_0x89a8f0){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x19c168 of _0x89a8f0[_0x7e0b('0x140')]())_0x19c168[_0x7e0b('0xf4')]();});});}[_0x7e0b('0xf3')](_0x111c46){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x5692de of _0x111c46[_0x7e0b('0x140')]())_0x5692de['discard']();});});}[_0x7e0b('0x10a')](_0x24f15b,_0x17e2c0){const _0x5e0a72=this[_0x7e0b('0x6')][_0x7e0b('0xc2')][_0x7e0b('0xd3')](_0x24f15b);if(!_0x5e0a72)throw new _0x58fb70(_0x7e0b('0x8'),this,{'commandName':_0x24f15b});this[_0x7e0b('0x102')][_0x7e0b('0xac')](_0x5e0a72),_0x17e2c0&&_0x5e0a72['on']('execute',(_0x242d50,_0x3d5e4b)=>{this[_0x7e0b('0x130')]['value']&&(this[_0x7e0b('0x75')]||_0x3d5e4b[_0x7e0b('0xbe')]>0x0&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1]&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1][_0x7e0b('0xb8')]||(_0x17e2c0((..._0x4f6dde)=>_0x5e0a72[_0x7e0b('0x121')](..._0x4f6dde,{'forceDefaultExecution':!0x0}),..._0x3d5e4b),_0x242d50['stop']()));},{'priority':'high'});}[_0x7e0b('0xb8')](_0x4a43db){let _0x2adcbc,_0x2af685;const _0x4fe3d0=this[_0x7e0b('0x75')];this[_0x7e0b('0x75')]=!0x0;try{_0x2adcbc=_0x4a43db();}catch(_0x1d71aa){_0x2af685=_0x1d71aa;}return _0x4fe3d0||(this[_0x7e0b('0x75')]=!0x1),_0x2af685&&_0x58fb70['rethrowUnexpectedError'](_0x2af685,this),_0x2adcbc;}[_0x7e0b('0xfd')](_0xca550c,_0xb5c730=null,_0x1635e5={}){if(_0xca550c['isCollapsed'])return null;const _0x3b52bb=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'];for(const {suggestion:_0x256682,meta:_0xf6e4f9}of this[_0x7e0b('0xd8')](_0xca550c,_0x7e0b('0xc')))if(_0xf6e4f9[_0x7e0b('0x2a')]){if(!_0xf6e4f9['isNextTo']){if(!this[_0x7e0b('0x42')]&&_0xf6e4f9[_0x7e0b('0x6f')])continue;return _0x256682;}if(_0xb5c730==_0x256682[_0x7e0b('0x52')]){const _0x64c672=_0x256682[_0x7e0b('0xd5')]();return _0x64c672['start']['isEqual'](_0xca550c['end'])?this[_0x7e0b('0x89')](_0x256682,this['_model'][_0x7e0b('0x51')](_0xca550c['start'],_0x64c672[_0x7e0b('0x2f')])):this['_setSuggestionRange'](_0x256682,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x64c672[_0x7e0b('0x88')],_0xca550c[_0x7e0b('0x2f')])),_0x256682;}}const _0x31a99f=_0x1862e6(),_0x3b169d=_0x3b52bb['id'],_0x5b41c0=_0xb5c730?_0x7e0b('0x19')+_0xb5c730:_0x7e0b('0xc'),_0x1cfc09=this[_0x7e0b('0x11a')]({'id':_0x31a99f,'type':_0x5b41c0,'createdAt':new Date(),'authorId':_0x3b169d,'attributes':_0x1635e5});return this[_0x7e0b('0x49')](_0x5b41c0,_0x31a99f,_0x3b169d,_0xca550c),_0x1cfc09;}[_0x7e0b('0x13a')](_0x2bb7ab,_0x134322=_0x7e0b('0x48'),_0x4755fe={}){const _0x1fbdf3=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0xb7fad2=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('insertion',_0x134322,_0x7e0b('0xec'));for(const _0x31f79d of this[_0x7e0b('0x7')]())if(_0x31f79d['author']['id']==_0x1fbdf3['id']&&_0x7e0b('0xc')==_0x31f79d[_0x7e0b('0xee')]&&_0x31f79d[_0x7e0b('0x52')]==_0x134322&&(_0xb7fad2(_0x31f79d[_0x7e0b('0x142')](),_0x2bb7ab)||_0xb7fad2(_0x2bb7ab,_0x31f79d[_0x7e0b('0x142')]()))){for(const _0x5025a5 of _0x2bb7ab)_0x31f79d[_0x7e0b('0x18')](_0x5025a5);return _0x31f79d;}if(this['_mergeNestedSuggestions'])for(const _0x59aef7 of _0x2bb7ab)for(const {suggestion:_0x3a53b7,meta:_0x4e4ece}of this['_findSuggestions'](_0x59aef7,_0x7e0b('0xc'))){if(!_0x4e4ece[_0x7e0b('0x2a')])continue;let _0x2c651b=!0x0;for(const _0x427839 of _0x3a53b7[_0x7e0b('0x142')]())for(const _0x42a68d of _0x2bb7ab)if(!_0x427839[_0x7e0b('0x116')](_0x42a68d)){_0x2c651b=!0x1;break;}if(_0x2c651b)return _0x3a53b7;}const _0x4085b0=_0x1862e6(),_0xd6650=_0x1fbdf3['id'],_0x399b98=_0x7e0b('0x19')+_0x134322,_0x14321d=this[_0x7e0b('0x11a')]({'id':_0x4085b0,'type':_0x399b98,'createdAt':new Date(),'authorId':_0xd6650,'attributes':_0x4755fe});for(const _0x561506 of _0x2bb7ab)this['_addSuggestionMarker'](_0x399b98,_0x4085b0,_0xd6650,_0x561506,_0x232d62[_0x7e0b('0x8f')]());return _0x14321d;}[_0x7e0b('0x22')](_0x1c5c15,_0x1c071c,_0x49f541=null,_0x60eb4a={}){if(_0x49f541=_0x49f541||$t(_0x1c071c),_0x1c5c15[_0x7e0b('0x1c')])return null;if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x1d97d1=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0xad'),_0x49f541,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x1d97d1([_0x1c5c15],_0x1c071c,_0x60eb4a)),null;}const _0x4d684a=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x1bb58f=[];if('always'!==this[_0x7e0b('0x82')])for(const {suggestion:_0x402948,meta:_0x93e36e}of this['_findSuggestions'](_0x1c5c15,_0x7e0b('0xc')))_0x93e36e['isOwn']&&!_0x93e36e['isInsideObject']&&_0x1bb58f[_0x7e0b('0x70')](..._0x402948[_0x7e0b('0x142')]());const _0x1e8fa9=function(_0x51835e,_0x46c69e){const _0x314a8f=[];for(const _0x1a1b0b of _0x46c69e){const _0x1733e0=_0x51835e[_0x7e0b('0x137')](_0x1a1b0b);_0x1733e0&&_0x314a8f[_0x7e0b('0x70')](_0x1733e0);}return _0x314a8f;}(_0x1c5c15,_0x1bb58f),_0x54ac21=function(_0x499b44,_0x4453e3){const _0x1c1d17=[_0x499b44];for(const _0x4ecdd8 of _0x4453e3){let _0xbca074=0x0;for(;_0xbca074<_0x1c1d17[_0x7e0b('0xbe')];){const _0x3147f8=_0x1c1d17[_0xbca074][_0x7e0b('0x11e')](_0x4ecdd8);_0x1c1d17['splice'](_0xbca074,0x1,..._0x3147f8),_0xbca074+=_0x3147f8['length'];}}return _0x1c1d17;}(_0x1c5c15,_0x1bb58f);_0x1e8fa9[_0x7e0b('0xbe')]&&this[_0x7e0b('0xcc')]['change'](()=>{for(const _0x56494a of _0x1e8fa9){const _0xa401ca=this['_suggestionFactory'][_0x7e0b('0xe4')]('formatInline',_0x49f541,'accept');this[_0x7e0b('0xb8')](()=>_0xa401ca([_0x56494a],_0x1c071c,_0x60eb4a));}});for(const _0x38ec93 of _0x54ac21){let _0x3b6bda=null,_0x58533e=_0x38ec93[_0x7e0b('0x88')],_0x350aa0=_0x38ec93['end'];for(const {suggestion:_0x4ce2f7,meta:_0x40a755}of this[_0x7e0b('0xd8')](_0x38ec93,'formatInline')){if(!_0x40a755[_0x7e0b('0x2a')])continue;if(_0x4ce2f7[_0x7e0b('0x52')]!=_0x49f541)continue;const _0x4c2e34=_0x4ce2f7[_0x7e0b('0xd5')]();if(_0x4c2e34[_0x7e0b('0x116')](_0x38ec93,!0x0))return null;_0x58533e=_0x58533e[_0x7e0b('0x20')](_0x4c2e34[_0x7e0b('0x88')])?_0x58533e:_0x4c2e34['start'],_0x350aa0=_0x350aa0[_0x7e0b('0x8d')](_0x4c2e34['end'])?_0x350aa0:_0x4c2e34['end'],_0x3b6bda?_0x4c2e34[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3b6bda['getFirstRange']()[_0x7e0b('0x88')])?(_0x3b6bda[_0x7e0b('0xc3')](),_0x3b6bda=_0x4ce2f7):_0x4ce2f7[_0x7e0b('0xc3')]():_0x3b6bda=_0x4ce2f7;}const _0x5b8d7b=this[_0x7e0b('0xcc')]['createRange'](_0x58533e,_0x350aa0);if(_0x3b6bda)this[_0x7e0b('0x89')](_0x3b6bda,_0x5b8d7b);else{const _0x1e745c=_0x1862e6(),_0x5b9080=_0x4d684a['id'];this['_setSuggestionData']({'id':_0x1e745c,'type':_0x7e0b('0x11b')+_0x49f541,'data':_0x1c071c,'createdAt':new Date(),'authorId':_0x5b9080,'attributes':_0x60eb4a}),this[_0x7e0b('0x49')](_0x7e0b('0x11b')+_0x49f541,_0x1e745c,_0x5b9080,_0x5b8d7b);}}return null;}['markBlockFormat'](_0x36f9b7,_0x2364ea,_0x279a07=[],_0x447b4e=null,_0x201840={}){_0x2364ea[_0x7e0b('0x21')]||(_0x2364ea[_0x7e0b('0x21')]=_0x2364ea['commandName']),_0x2364ea[_0x7e0b('0x125')]=_0x36f9b7['is'](_0x7e0b('0x37')),_0x447b4e=_0x447b4e||$t(_0x2364ea);const _0x311dbe=_0x279a07['map'](_0x36ffcd=>Rt(_0x36ffcd,this['_model'])),_0x303bad=_0x36f9b7['is'](_0x7e0b('0x37'))?_0x36f9b7:Rt(_0x36f9b7,this[_0x7e0b('0xcc')]);if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x472997=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x472997([_0x303bad],_0x2364ea,_0x201840)),null;}_0x311dbe['push'](_0x303bad);let _0x547e44=!0x0;for(const _0x1e9b28 of _0x311dbe)if(!this[_0x7e0b('0xbd')](_0x1e9b28)){_0x547e44=!0x1;break;}if(_0x547e44&&_0x7e0b('0x9a')!==this[_0x7e0b('0x82')]){const _0x5df665=this['_suggestionFactory'][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x5df665([_0x303bad],_0x2364ea,_0x201840)),null;}let _0x3a01c9=null,_0x2d7d26=_0x303bad['start'],_0x10ff75=_0x303bad[_0x7e0b('0x2f')];for(const {suggestion:_0x3ac22f,meta:_0x51f309}of this[_0x7e0b('0xd8')](_0x303bad,_0x7e0b('0x84'))){if(!_0x51f309[_0x7e0b('0x2a')]||_0x51f309[_0x7e0b('0xf5')]||_0x51f309[_0x7e0b('0x6f')]||_0x51f309[_0x7e0b('0x3c')])continue;if(_0x3ac22f[_0x7e0b('0xd2')][_0x7e0b('0x21')]!=_0x2364ea[_0x7e0b('0x21')])continue;const _0x2e0ed9=_0x3ac22f[_0x7e0b('0xd5')]();if(_0x3ac22f['subType']==_0x447b4e){if(_0x2e0ed9[_0x7e0b('0x116')](_0x303bad,!0x0))return null;_0x2d7d26=_0x2d7d26[_0x7e0b('0x20')](_0x2e0ed9[_0x7e0b('0x88')])?_0x2d7d26:_0x2e0ed9['start'],_0x10ff75=_0x10ff75[_0x7e0b('0x8d')](_0x2e0ed9[_0x7e0b('0x2f')])?_0x10ff75:_0x2e0ed9[_0x7e0b('0x2f')],_0x3a01c9?_0x2e0ed9[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3a01c9[_0x7e0b('0xd5')]()['start'])?(_0x3a01c9[_0x7e0b('0xc3')](),_0x3a01c9=_0x3ac22f):_0x3ac22f[_0x7e0b('0xc3')]():_0x3a01c9=_0x3ac22f;}else{const _0x2bc298=_0x303bad[_0x7e0b('0x137')](_0x2e0ed9);this[_0x7e0b('0x34')](_0x3ac22f,_0x2bc298);}}const _0x45a94a=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0x1288fa=_0x1862e6(),_0x3ab646=_0x45a94a['id'];if(_0x3a01c9)return this[_0x7e0b('0x89')](_0x3a01c9,this['_model'][_0x7e0b('0x51')](_0x2d7d26,_0x10ff75)),_0x3a01c9;{const _0x26f148=this[_0x7e0b('0x11a')]({'id':_0x1288fa,'type':_0x7e0b('0x50')+_0x447b4e,'data':_0x2364ea,'createdAt':new Date(),'authorId':_0x3ab646,'attributes':_0x201840});return this['_addSuggestionMarker'](_0x7e0b('0x50')+_0x447b4e,_0x1288fa,_0x3ab646,this[_0x7e0b('0xcc')]['createRange'](_0x2d7d26,_0x10ff75)),_0x26f148;}}[_0x7e0b('0x63')](_0x46e1c6,_0x3e5e73,_0x4150fe=[],_0x6e4355=null,_0x3c12e4={}){_0x3e5e73[_0x7e0b('0x21')]||(_0x3e5e73[_0x7e0b('0x21')]=_0x3e5e73[_0x7e0b('0x13b')]);const _0x2de93c=_0x46e1c6[0x0];_0x3e5e73['multipleBlocks']=_0x2de93c['is'](_0x7e0b('0x37')),_0x6e4355=_0x6e4355||$t(_0x3e5e73);const _0xe10ca=_0x4150fe[_0x7e0b('0xcd')](_0x150e14=>Rt(_0x150e14,this[_0x7e0b('0xcc')])),_0x2eba05=_0x2de93c['is'](_0x7e0b('0x37'))?_0x46e1c6:_0x46e1c6[_0x7e0b('0xcd')](_0x1dd816=>Rt(_0x1dd816,this['_model']));if(_0x7e0b('0x7a')===this['_trackFormatChanges']){const _0xed68c3=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,'accept');return this[_0x7e0b('0xb8')](()=>_0xed68c3(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}_0xe10ca[_0x7e0b('0x70')](..._0x2eba05);let _0x3ab87a=!0x0;for(const _0x4a0079 of _0xe10ca)if(!this[_0x7e0b('0xbd')](_0x4a0079)){_0x3ab87a=!0x1;break;}if(_0x3ab87a&&_0x7e0b('0x9a')!==this['_trackFormatChanges']){const _0x228809=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x228809(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}const _0x4f5383=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'];for(const _0x48a5a1 of this['getSuggestions']()){if(_0x48a5a1['author']['id']!=_0x4f5383['id'])continue;if(_0x7e0b('0x84')!=_0x48a5a1[_0x7e0b('0xee')]||_0x48a5a1[_0x7e0b('0xd2')]['formatGroupId']!=_0x3e5e73[_0x7e0b('0x21')])continue;const _0x3a542c=_0x48a5a1[_0x7e0b('0x52')]==_0x6e4355;for(let _0xe60c5e=0x0;_0xe60c5e<_0x2eba05['length'];_0xe60c5e++){const _0x2b99b5=_0x2eba05[_0xe60c5e];for(const _0x1b9cee of _0x48a5a1[_0x7e0b('0xa2')]()){const _0x446ff6=_0x1b9cee[_0x7e0b('0x5d')]();if(_0x2b99b5[_0x7e0b('0xa4')](_0x446ff6)){_0x3a542c?(_0x2eba05[_0x7e0b('0xeb')](_0xe60c5e,0x1),_0xe60c5e--):_0x48a5a1[_0x7e0b('0x113')](_0x1b9cee['name']);break;}}}}if(0x0==_0x2eba05[_0x7e0b('0xbe')])return null;const _0x5d5abc=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x6e4355,_0x7e0b('0xec'));for(const _0x310c95 of this['getSuggestions']())if(_0x310c95[_0x7e0b('0xcf')]['id']==_0x4f5383['id']&&_0x7e0b('0x84')==_0x310c95[_0x7e0b('0xee')]&&_0x310c95[_0x7e0b('0xd2')][_0x7e0b('0x21')]==_0x3e5e73[_0x7e0b('0x21')]&&_0x310c95[_0x7e0b('0x52')]==_0x6e4355&&(_0x5d5abc(_0x310c95[_0x7e0b('0x142')](),_0x2eba05)||_0x5d5abc(_0x2eba05,_0x310c95[_0x7e0b('0x142')]()))){for(const _0x12c45f of _0x2eba05)_0x310c95['addRange'](_0x12c45f);return _0x310c95;}const _0x27953b=_0x1862e6(),_0x11e11f=_0x4f5383['id'],_0xaa4480=_0x7e0b('0x50')+_0x6e4355,_0x519e8a=this['_setSuggestionData']({'id':_0x27953b,'type':_0xaa4480,'data':_0x3e5e73,'createdAt':new Date(),'authorId':_0x11e11f,'attributes':_0x3c12e4});for(const _0xb1f0a9 of _0x2eba05)this['_addSuggestionMarker'](_0xaa4480,_0x27953b,_0x11e11f,_0xb1f0a9,_0x232d62[_0x7e0b('0x8f')]());return _0x519e8a;}[_0x7e0b('0xd')](_0x299b18,_0x3d1fcd=null,_0xc042cb={}){if(_0x299b18[_0x7e0b('0x1c')])return null;const _0x23065f=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x46c732=new _0x491aa7(_0x299b18[_0x7e0b('0x88')],_0x299b18[_0x7e0b('0x2f')]);for(const {suggestion:_0x1838be,meta:_0x25cd15}of this[_0x7e0b('0xd8')](_0x46c732,_0x7e0b('0xc')))if(_0x25cd15[_0x7e0b('0x2a')]&&!_0x25cd15[_0x7e0b('0xf5')]){if(_0x1838be[_0x7e0b('0x4b')]){const _0x20bad6=_0x1838be['getRanges']()[_0x7e0b('0x4a')](_0x5130a8=>_0x7e0b('0xab')!=_0x5130a8[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);_0x20bad6[_0x7e0b('0x93')](_0x508db2=>_0x46c732[_0x7e0b('0x116')](_0x508db2,!0x0))&&_0x1838be[_0x7e0b('0x139')]();if(_0x20bad6['some'](_0x4a6d1b=>_0x4a6d1b[_0x7e0b('0x116')](_0x46c732,!0x0))){const _0x42f404=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('deletion',_0x3d1fcd,_0x7e0b('0xf4'));return this['forceDefaultExecution'](()=>_0x42f404([_0x46c732],null,_0xc042cb)),null;}}else{const _0x263c37=_0x46c732[_0x7e0b('0x137')](_0x1838be['getFirstRange']());null!==_0x263c37&&_0x1838be[_0x7e0b('0x111')]([_0x263c37],null,_0xc042cb);}}if(_0x46c732[_0x7e0b('0x144')](),_0x46c732['isCollapsed']||_0x7e0b('0xab')==_0x46c732[_0x7e0b('0x5f')][_0x7e0b('0x4d')])return null;let _0x650384=null,_0x47e24e=_0x46c732['start'],_0x4b275e=_0x46c732[_0x7e0b('0x2f')];for(const {suggestion:_0x15cfd8,meta:_0x293a5d}of this[_0x7e0b('0xd8')](_0x46c732,'deletion'))if(_0x293a5d[_0x7e0b('0x2a')]){if(_0x15cfd8[_0x7e0b('0x4b')]&&this[_0x7e0b('0x42')]){let _0x3d5cd8=!0x0;for(const _0x453086 of _0x15cfd8[_0x7e0b('0x142')]()){if(_0x453086[_0x7e0b('0x116')](_0x46c732,!0x0))return _0x15cfd8;_0x46c732[_0x7e0b('0x116')](_0x453086)||(_0x3d5cd8=!0x1);}_0x3d5cd8&&_0x15cfd8[_0x7e0b('0x139')]();}else{const _0x5b23d4=_0x15cfd8[_0x7e0b('0xd5')]();if(_0x5b23d4[_0x7e0b('0x116')](_0x46c732,!0x0)){if(!this[_0x7e0b('0x42')]&&_0x293a5d[_0x7e0b('0x6f')])continue;return _0x15cfd8;}_0x47e24e=_0x47e24e[_0x7e0b('0x20')](_0x5b23d4[_0x7e0b('0x88')])?_0x47e24e:_0x5b23d4[_0x7e0b('0x88')],_0x4b275e=_0x4b275e[_0x7e0b('0x8d')](_0x5b23d4[_0x7e0b('0x2f')])?_0x4b275e:_0x5b23d4[_0x7e0b('0x2f')],_0x650384?_0x5b23d4[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x650384[_0x7e0b('0xd5')]()['start'])?(_0x650384['removeMarkers'](),_0x650384=_0x15cfd8):_0x15cfd8[_0x7e0b('0xc3')]():_0x650384=_0x15cfd8;}}if(_0x650384)return this['_setSuggestionRange'](_0x650384,this[_0x7e0b('0xcc')]['createRange'](_0x47e24e,_0x4b275e)),_0x650384;{const _0x5dccee=_0x1862e6(),_0x399c8e=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x47e24e,_0x4b275e),_0x36abf5=_0x23065f['id'],_0x359fca=_0x3d1fcd?_0x7e0b('0x1b')+_0x3d1fcd:_0x7e0b('0x124'),_0x28af88=this[_0x7e0b('0x11a')]({'id':_0x5dccee,'type':_0x359fca,'createdAt':new Date(),'authorId':_0x36abf5,'attributes':_0xc042cb});return this[_0x7e0b('0x49')](_0x359fca,_0x5dccee,_0x36abf5,_0x399c8e),_0x28af88;}}[_0x7e0b('0x44')](_0x264db5,_0x35c65b=_0x7e0b('0x48'),_0x5a1319={}){const _0x25f478=this[_0x7e0b('0x6')][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'],_0x30c39f=_0x264db5[_0x7e0b('0xcd')](_0x35ed13=>new _0x491aa7(_0x35ed13[_0x7e0b('0x88')],_0x35ed13[_0x7e0b('0x2f')])),_0xbabaae=new Set();for(const _0x54a1d8 of _0x30c39f)for(const {suggestion:_0x33a635,meta:_0x259d26}of this[_0x7e0b('0xd8')](_0x54a1d8,_0x7e0b('0xc')))_0x259d26[_0x7e0b('0x2a')]&&!_0x259d26[_0x7e0b('0xf5')]&&_0xbabaae[_0x7e0b('0xac')](_0x33a635);for(const _0x35cb04 of _0xbabaae)if(_0x35cb04[_0x7e0b('0x4b')]){const _0x28d7ba=_0x35cb04[_0x7e0b('0x142')]();(!_0x35cb04['attributes']||!_0x35cb04[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0x28d7ba['every'](_0x3ca08a=>_0x30c39f[_0x7e0b('0x95')](_0x3bcbc3=>_0x3bcbc3['containsRange'](_0x3ca08a,!0x0)))&&_0x35cb04[_0x7e0b('0x139')]());if(_0x30c39f[_0x7e0b('0x93')](_0x865c5=>_0x28d7ba[_0x7e0b('0x95')](_0x27c03c=>_0x27c03c[_0x7e0b('0x116')](_0x865c5,!0x0)))){const _0x2089ca=this['_suggestionFactory']['getSuggestionCallback'](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x2089ca(_0x264db5,null,_0x5a1319)),null;}}else{const _0x394533=_0x35cb04['getFirstRange']();_0x30c39f[_0x7e0b('0x95')](_0x4bc796=>_0x4bc796[_0x7e0b('0x116')](_0x394533,!0x0))&&_0x35cb04[_0x7e0b('0x139')]();if(_0x30c39f['every'](_0x1b1c32=>_0x394533['containsRange'](_0x1b1c32,!0x0))){const _0x53f96d=this[_0x7e0b('0x57')]['getSuggestionCallback']('deletion',_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x53f96d(_0x30c39f,null,_0x5a1319)),null;}}const _0x8e0b2b=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xec'));let _0x1db33f=null;for(const _0x42ee77 of this['getSuggestions']())if(_0x42ee77[_0x7e0b('0xcf')]['id']==_0x25f478['id']&&_0x42ee77[_0x7e0b('0xb7')]&&_0x7e0b('0x124')==_0x42ee77['type']&&_0x42ee77[_0x7e0b('0x52')]==_0x35c65b&&(_0x8e0b2b(_0x42ee77['getRanges'](),_0x30c39f)||_0x8e0b2b(_0x30c39f,_0x42ee77[_0x7e0b('0x142')]()))){if(_0x1db33f){if(_0x42ee77['commentThread']&&_0x42ee77[_0x7e0b('0x112')][_0x7e0b('0xbe')])continue;for(const _0x443fac of _0x42ee77['getRanges']())_0x1db33f[_0x7e0b('0x11d')](_0x443fac)||_0x1db33f[_0x7e0b('0x18')](_0x443fac);_0x42ee77[_0x7e0b('0xc3')]();}else{_0x1db33f=_0x42ee77;for(const _0x74112 of _0x30c39f)_0x42ee77[_0x7e0b('0x11d')](_0x74112)||_0x42ee77[_0x7e0b('0x18')](_0x74112);}}if(_0x1db33f)return _0x1db33f;_0xbabaae[_0x7e0b('0x38')]();for(const _0x17495c of _0x30c39f)for(const {suggestion:_0x20612d,meta:_0x507167}of this['_findSuggestions'](_0x17495c,_0x7e0b('0x124')))_0x507167[_0x7e0b('0x2a')]&&_0xbabaae[_0x7e0b('0xac')](_0x20612d);for(const _0x13c6b6 of _0xbabaae){const _0xb20573=_0x13c6b6[_0x7e0b('0x142')]();if(!_0x5a1319||!_0x5a1319[_0x7e0b('0x13')]){if(_0x30c39f[_0x7e0b('0x93')](_0x52207a=>_0xb20573[_0x7e0b('0x95')](_0x395e33=>_0x395e33['containsRange'](_0x52207a,!0x0))))return _0x13c6b6;}(!_0x13c6b6['attributes']||!_0x13c6b6[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0xb20573[_0x7e0b('0x93')](_0x1d24bc=>_0x30c39f[_0x7e0b('0x95')](_0x47fc67=>_0x47fc67[_0x7e0b('0x116')](_0x1d24bc,!0x0)))&&_0x13c6b6[_0x7e0b('0x139')]());}const _0x3ae1ed=_0x1862e6(),_0x2d0c2c=_0x25f478['id'],_0x343966='deletion:'+_0x35c65b,_0x3014ad=this[_0x7e0b('0x11a')]({'id':_0x3ae1ed,'type':_0x343966,'createdAt':new Date(),'authorId':_0x2d0c2c,'attributes':_0x5a1319});for(const _0x87c642 of _0x30c39f)_0x87c642[_0x7e0b('0x144')](),_0x87c642[_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x87c642[_0x7e0b('0x5f')]['rootName']||this[_0x7e0b('0x49')](_0x343966,_0x3ae1ed,_0x2d0c2c,_0x87c642,_0x232d62['getMultiRangeId']());return _0x3014ad;}[_0x7e0b('0x89')](_0x277bcb,_0x5ec64e){const _0xdda608=_0x277bcb[_0x7e0b('0x9e')]();this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x17ec8a=>{_0x17ec8a[_0x7e0b('0x12f')](_0xdda608,{'range':_0x5ec64e});});}[_0x7e0b('0x9c')](_0x320c47){const _0x279c5a=_0x320c47['id'],_0x7054d5=this[_0x7e0b('0x6')]['config'][_0x7e0b('0xd3')]('collaboration.channelId');this[_0x7e0b('0xb2')][_0x7e0b('0x98')](_0x279c5a)||this[_0x7e0b('0xb2')][_0x7e0b('0x7e')]({'channelId':_0x7054d5,'threadId':_0x279c5a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4dd02e=this[_0x7e0b('0xb2')][_0x7e0b('0x1a')](_0x279c5a);_0x4dd02e[_0x7e0b('0xef')](_0x7e0b('0xb1')),_0x4dd02e['isRemovable']=!0x1,_0x320c47[_0x7e0b('0x112')]=_0x4dd02e;}[_0x7e0b('0x46')](_0xa63780,_0x56887d,_0x32600f,_0x2753da){if(_0xa63780[_0x7e0b('0xee')]!=_0x56887d||_0xa63780['subType']!=_0x32600f||_0xa63780[_0x7e0b('0x3f')]['id']!=_0x2753da)throw this[_0x7e0b('0x6')][_0x7e0b('0xe0')](_0x7e0b('0xdb')),new _0x58fb70('track-changes-suggestion-data-mismatch',this);}[_0x7e0b('0x34')](_0x40532b,_0x22123c){const _0x335a3e=_0x40532b[_0x7e0b('0xd5')]();if(_0x22123c[_0x7e0b('0xa4')](_0x335a3e))_0x40532b[_0x7e0b('0xc3')]();else{if(_0x335a3e['containsRange'](_0x22123c)){const _0x76ec58=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this['_setSuggestionRange'](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0x76ec58));const _0x2cb229=_0x1862e6(),_0x5654c8=_0x40532b[_0x7e0b('0x3f')]['id'],_0x1a965e=_0x40532b[_0x7e0b('0xee')]+':'+_0x40532b[_0x7e0b('0x52')];this['_setSuggestionData']({'id':_0x2cb229,'type':_0x1a965e,'createdAt':new Date(),'authorId':_0x5654c8,'data':_0x40532b[_0x7e0b('0xd2')],'attributes':_0x40532b[_0x7e0b('0x2b')]});const _0xf3b54c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x2f')][_0x7e0b('0x32')],_0x7e0b('0x5b')),_0x2d1199=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0xf3b54c,_0x335a3e[_0x7e0b('0x2f')]);this['_addSuggestionMarker'](_0x1a965e,_0x2cb229,_0x5654c8,_0x2d1199);}else{if(_0x335a3e[_0x7e0b('0xdc')](_0x22123c[_0x7e0b('0x88')])){const _0xedaf8c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this[_0x7e0b('0x89')](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0xedaf8c));}else{const _0x455e20=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c['end']['parent'],_0x7e0b('0x5b'));this[_0x7e0b('0x89')](_0x40532b,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x455e20,_0x335a3e['end']));}}}}[_0x7e0b('0xbd')](_0x5cb8a7){for(const {suggestion:_0xd79f82,meta:_0x128edb}of this[_0x7e0b('0xd8')](_0x5cb8a7,_0x7e0b('0xc'))){if(!_0x128edb['isOwn'])continue;const _0x4de765=_0xd79f82[_0x7e0b('0x142')]();for(const _0x3dcc9e of _0x4de765)if(!_0x5cb8a7[_0x7e0b('0x11e')](_0x3dcc9e)[_0x7e0b('0xbe')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x589c04){const _0x1863b2=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')[_0x7e0b('0xa3')](_0x589c04);if(!_0x1863b2)throw new _0x58fb70(_0x7e0b('0x5c'),this);return _0x1863b2;}['_getExternalAuthor'](_0x58818f){const _0x577637=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9')),_0x3cd3ff=_0x1685bc(_0x7e0b('0x23')+_0x58818f),_0x3973f5=_0x577637['getUser'](_0x3cd3ff);return _0x3973f5||_0x577637['addUser']({'id':_0x3cd3ff,'name':_0x58818f});}[_0x7e0b('0x10d')](_0x812417,_0x5e45c3,_0x260b29,_0x332367,_0x3f49c6){const _0x4d9246=this[_0x7e0b('0x1d')](_0x332367),_0x26358a=this[_0x7e0b('0x57')][_0x7e0b('0x71')](_0x812417,_0x5e45c3,_0x260b29,_0x4d9246,_0x3f49c6,_0x4aa897=>this[_0x7e0b('0xa0')](_0x260b29,{'attributes':_0x4aa897}));return this['listenTo'](_0x26358a,_0x7e0b('0xf4'),()=>{this['_updateSuggestionData'](_0x260b29,{'state':'accepted'});},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0xd7')](_0x26358a,_0x7e0b('0x139'),()=>{this[_0x7e0b('0xa0')](_0x260b29,{'state':_0x7e0b('0x132')});},{'priority':'high'}),this[_0x7e0b('0x36')][_0x7e0b('0x2c')](_0x260b29,_0x26358a),this['_suggestionState']['set'](_0x26358a,_0x7e0b('0x0')),_0x26358a;}[_0x7e0b('0xe6')](_0x32fd19){const _0x2c77f0=_0x32fd19['split'](':');return{'group':_0x2c77f0[0x0],'type':_0x2c77f0[0x1],'subType':_0x2c77f0[_0x7e0b('0xbe')]>=0x5?_0x2c77f0[0x2]:null,'id':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x2]:_0x2c77f0[0x3],'authorId':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x3]:_0x2c77f0[0x4],'markerCount':0x6==_0x2c77f0[_0x7e0b('0xbe')]?_0x2c77f0[0x5]:null};}['_breakSuggestionMarker'](_0x31b3f4,_0x5c9ab7,_0x5914f5){const _0x2ada24=_0x31b3f4[_0x7e0b('0xd5')](),_0x45039e=_0x2ada24[_0x7e0b('0x88')],_0x42807e=_0x2ada24[_0x7e0b('0x2f')];this[_0x7e0b('0x89')](_0x31b3f4,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x45039e,_0x5c9ab7));const _0x9c365b=_0x1862e6(),_0x5312d8=_0x31b3f4[_0x7e0b('0x3f')]['id'],_0x59a7ae=_0x31b3f4['type']+(_0x31b3f4[_0x7e0b('0x52')]?':'+_0x31b3f4['subType']:'');this[_0x7e0b('0x11a')]({'id':_0x9c365b,'type':_0x59a7ae,'createdAt':new Date(),'authorId':_0x5312d8,'originalSuggestionId':_0x31b3f4['id'],'attributes':_0x31b3f4[_0x7e0b('0x2b')],'data':_0x31b3f4['data']}),_0x7e0b('0x84')==_0x31b3f4[_0x7e0b('0xee')]&&(_0x5914f5=this['_model'][_0x7e0b('0x26')](_0x5914f5[_0x7e0b('0x32')])),this[_0x7e0b('0x49')](_0x59a7ae,_0x9c365b,_0x5312d8,this['_model'][_0x7e0b('0x51')](_0x5914f5,_0x42807e));}[_0x7e0b('0xd8')](_0x2503d5,_0x22187c=null){const _0x486438=[],_0x45aef1=this['_model']['schema'],_0x2ca04e=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')]('Users')['me'];for(const _0x16f974 of this[_0x7e0b('0x7')]())if(_0x16f974[_0x7e0b('0xb7')]&&(!_0x22187c||_0x16f974[_0x7e0b('0xee')]==_0x22187c))for(const _0x38d4e1 of _0x16f974[_0x7e0b('0x142')]()){const _0x2298aa=_0x2503d5[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x2f')])||_0x2503d5[_0x7e0b('0x2f')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x88')]);if(_0x2298aa||_0x2503d5['getIntersection'](_0x38d4e1)){const _0x4968ee=_0x2503d5['containsRange'](_0x38d4e1)&&Bt(_0x45aef1,_0x38d4e1[_0x7e0b('0x88')],_0x2503d5),_0x3ef930=_0x38d4e1[_0x7e0b('0x116')](_0x2503d5)&&Bt(_0x45aef1,_0x2503d5[_0x7e0b('0x88')],_0x38d4e1);_0x486438[_0x7e0b('0x70')]({'suggestion':_0x16f974,'meta':{'isOwn':_0x2ca04e==_0x16f974[_0x7e0b('0xcf')],'isNextTo':_0x2298aa,'isInsideObject':_0x4968ee,'containsRangeInObject':_0x3ef930}});break;}}return _0x486438;}['_addSuggestionMarker'](_0x1dba94,_0x54cec8,_0x195ff6,_0x4b22ac,_0x48761f){this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x47979d=>{let _0x3a0465=_0x7e0b('0xce')+_0x1dba94+':'+_0x54cec8+':'+_0x195ff6;_0x48761f&&(_0x3a0465=_0x3a0465+':'+_0x48761f),_0x47979d['addMarker'](_0x3a0465,{'range':_0x4b22ac,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x7e0b('0x2e')](_0x47bf86){const _0x49b64e=_0x47bf86[_0x7e0b('0xf1')],_0x4cb72b=_0x47bf86[_0x7e0b('0xa9')];_0x47bf86[_0x7e0b('0xf1')]=null,null!=_0x49b64e&&(_0x49b64e[_0x7e0b('0xa9')]=null),_0x47bf86[_0x7e0b('0xa9')]=null,null!=_0x4cb72b&&(_0x4cb72b[_0x7e0b('0xf1')]=null),_0x7e0b('0x45')==this[_0x7e0b('0x87')]['get'](_0x47bf86)&&(this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x47bf86,'removed'),this[_0x7e0b('0x8e')](_0x7e0b('0x33'),_0x47bf86,_0x49b64e,_0x4cb72b));}[_0x7e0b('0x11a')](_0x366703){const _0x1bd044=_0x366703['id'],_0x38ce50=this[_0x7e0b('0xe1')](_0x366703);if(this[_0x7e0b('0xa8')]&&this[_0x7e0b('0xa8')][_0x7e0b('0x17')]){const _0x51a7db=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('PendingActions'),_0x5eb50d=_0x38ce50['hasComments'],_0x5c1c1c=_0x38ce50['subType']?_0x38ce50['type']+':'+_0x38ce50[_0x7e0b('0x52')]:_0x38ce50[_0x7e0b('0xee')],_0x455b9f=this[_0x7e0b('0x6')][_0x7e0b('0x134')],_0x32a96a=_0x51a7db[_0x7e0b('0xac')](_0x25f2c4(_0x455b9f,_0x7e0b('0x29'))),_0x1ada71={'id':_0x1bd044,'type':_0x5c1c1c,'hasComments':_0x5eb50d,'data':_0x366703['data']||null,'originalSuggestionId':_0x366703[_0x7e0b('0x60')]||null,'attributes':_0x38ce50['attributes']};this[_0x7e0b('0xa8')][_0x7e0b('0x17')](_0x1ada71)['then'](_0x3e3a8b=>{_0x38ce50[_0x7e0b('0xb0')]=!0x0,_0x51a7db[_0x7e0b('0x107')](_0x32a96a),_0x3e3a8b&&_0x3e3a8b[_0x7e0b('0x43')]&&(this['_suggestions'][_0x7e0b('0xd3')](_0x1bd044)[_0x7e0b('0x43')]=_0x3e3a8b[_0x7e0b('0x43')]);})[_0x7e0b('0x5a')](_0x2cf0a9=>{throw _0x2f4b48(_0x7e0b('0x10')),this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x8a')]({'isUndoable':!0x1},()=>{_0x38ce50[_0x7e0b('0x139')]();}),_0x38ce50['stopListening'](),this[_0x7e0b('0x36')][_0x7e0b('0x15')](_0x38ce50['id']),this[_0x7e0b('0x87')][_0x7e0b('0x15')](_0x38ce50),_0x2cf0a9;});}return _0x38ce50;}['_updateSuggestionData'](_0x2b0e1d,_0x283c51){const _0x1d07bb=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x79')),_0x479a9e=this[_0x7e0b('0xfc')](_0x2b0e1d);if(this[_0x7e0b('0xa8')]&&this['_adapter'][_0x7e0b('0x131')]){if(_0x479a9e[_0x7e0b('0xb0')]){const _0x1024b0=_0x1d07bb['add'](_0x25f2c4(this[_0x7e0b('0x6')]['locale'],_0x7e0b('0x29')));this[_0x7e0b('0xa8')][_0x7e0b('0x131')](_0x2b0e1d,_0x283c51)[_0x7e0b('0xae')](()=>{_0x1d07bb['remove'](_0x1024b0);});}else _0x479a9e['on'](_0x7e0b('0x10c'),()=>{this['_updateSuggestionData'](_0x2b0e1d,_0x283c51);});}}[_0x7e0b('0x39')](_0x549c35){if(!this[_0x7e0b('0xa8')]||!this[_0x7e0b('0xa8')][_0x7e0b('0xfc')])throw new _0x58fb70(_0x7e0b('0x86'),this);return this[_0x7e0b('0xa8')]['getSuggestion'](_0x549c35);}['_handleNewSuggestionMarker'](_0x309d92){const {id:_0x74948f,type:_0x334e56,subType:_0x188c97,authorId:_0x7ddaf6}=this[_0x7e0b('0xe6')](_0x309d92),_0x5d46f2=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x74948f)||this[_0x7e0b('0x10d')](_0x334e56,_0x188c97,_0x74948f,_0x7ddaf6,{});switch(this[_0x7e0b('0x46')](_0x5d46f2,_0x334e56,_0x188c97,_0x7ddaf6),this[_0x7e0b('0x87')][_0x7e0b('0xd3')](_0x5d46f2)){case _0x7e0b('0x0'):this[_0x7e0b('0x39')](_0x74948f)[_0x7e0b('0xae')](_0x2bc9c2=>{let _0x54ab26=Promise[_0x7e0b('0x114')]();_0x2bc9c2[_0x7e0b('0xa7')]&&(_0x54ab26=this[_0x7e0b('0xb2')]['fetchCommentThread']({'channelId':this[_0x7e0b('0x6')][_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x11c')),'threadId':_0x74948f})),_0x54ab26[_0x7e0b('0xae')](()=>{this[_0x7e0b('0xe1')](_0x2bc9c2)['_saved']=!0x0;});}),this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x5d46f2,_0x7e0b('0xb5'));break;case _0x7e0b('0xf9'):this[_0x7e0b('0xa0')](_0x74948f,{'state':'open'});case _0x7e0b('0x138'):this[_0x7e0b('0x87')]['set'](_0x5d46f2,_0x7e0b('0x45')),this[_0x7e0b('0x8e')]('suggestionLoaded',_0x5d46f2);break;case _0x7e0b('0x45'):this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x5d46f2);}return _0x5d46f2[_0x7e0b('0xc9')](_0x309d92),_0x5d46f2;}[_0x7e0b('0xff')](_0x3cde14){const _0x547ed0=Array[_0x7e0b('0xa1')](_0x3cde14)[_0x7e0b('0x4a')](_0x7f6afb=>!_0x7f6afb[_0x7e0b('0x4b')]),_0x255e6b=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0})[_0x7e0b('0x4a')](_0x433823=>!_0x433823[_0x7e0b('0x4b')]),_0x435280=_0x255e6b['filter'](_0x537a8d=>!_0x3cde14[_0x7e0b('0xdf')](_0x537a8d)),_0x96803f=new Map(_0x255e6b['map'](_0x14ca1f=>[_0x14ca1f,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x14ca1f[_0x7e0b('0xee')],_0x14ca1f[_0x7e0b('0x52')],_0x7e0b('0x136'))])),_0x3d12e7=new Map(_0x255e6b['map'](_0x2d1eb5=>[_0x2d1eb5,_0x2d1eb5['getFirstRange']()])),_0x469c83=new Set(),_0x288ac0=new Set();for(let _0x5009a4=0x0;_0x5009a4<_0x547ed0[_0x7e0b('0xbe')];_0x5009a4++)_0x2529fd(_0x547ed0[_0x5009a4],_0x547ed0,_0x5009a4+0x1);for(let _0x10e7eb=0x0;_0x10e7eb<_0x547ed0[_0x7e0b('0xbe')];_0x10e7eb++)_0x2529fd(_0x547ed0[_0x10e7eb],_0x435280,0x0);for(let _0x1ee8e3=0x0;_0x1ee8e3<_0x547ed0[_0x7e0b('0xbe')];_0x1ee8e3++){const _0x2f5dd0=_0x547ed0[_0x1ee8e3];!_0x288ac0[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xf1')]&&(_0x2f5dd0[_0x7e0b('0xf1')]['next']===_0x2f5dd0&&(_0x2f5dd0['previous'][_0x7e0b('0xa9')]=null),_0x2f5dd0[_0x7e0b('0xf1')]=null),!_0x469c83[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xa9')]&&(_0x2f5dd0['next'][_0x7e0b('0xf1')]===_0x2f5dd0&&(_0x2f5dd0[_0x7e0b('0xa9')]['previous']=null),_0x2f5dd0[_0x7e0b('0xa9')]=null);}function _0x2529fd(_0xdaf3da,_0x525ae1,_0x2a83ff){for(let _0x446f80=_0x2a83ff;_0x446f80<_0x525ae1[_0x7e0b('0xbe')];_0x446f80++){const _0x308cc8=_0x55c8e3(_0xdaf3da,_0x525ae1[_0x446f80]);_0x308cc8&&(_0x308cc8[0x0][_0x7e0b('0xa9')]=_0x308cc8[0x1],_0x308cc8[0x1][_0x7e0b('0xf1')]=_0x308cc8[0x0],_0x469c83[_0x7e0b('0xac')](_0x308cc8[0x0]),_0x288ac0['add'](_0x308cc8[0x1]));}}function _0x55c8e3(_0x1d8a79,_0x31eb6c){if(_0x1d8a79[_0x7e0b('0xcf')]['id']!==_0x31eb6c[_0x7e0b('0xcf')]['id'])return null;const _0x1f6a7d=_0x96803f[_0x7e0b('0xd3')](_0x1d8a79)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7['get'](_0x31eb6c));if(!_0x1f6a7d)return null;return _0x96803f[_0x7e0b('0xd3')](_0x31eb6c)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7[_0x7e0b('0xd3')](_0x31eb6c))?_0x1f6a7d[0x1][_0x7e0b('0x112')]&&_0x1f6a7d[0x1][_0x7e0b('0x112')]['length']?null:_0x1f6a7d:null;}}[_0x7e0b('0x1')](_0x1f63a4){const _0x4e7561=Array[_0x7e0b('0xa1')](_0x1f63a4),_0x1ed4ab=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0}),_0x1276d4=_0x1ed4ab[_0x7e0b('0x4a')](_0x88de27=>!_0x1f63a4['has'](_0x88de27)),_0x3aa887=new Map(_0x4e7561[_0x7e0b('0xcd')](_0x39253c=>[_0x39253c,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x39253c[_0x7e0b('0xee')],_0x39253c[_0x7e0b('0x52')],'join')])),_0x993455=new Map(_0x1ed4ab[_0x7e0b('0xcd')](_0x306e60=>[_0x306e60,_0x306e60[_0x7e0b('0x142')]()]));for(let _0x5d8f41=0x0;_0x5d8f41<_0x4e7561[_0x7e0b('0xbe')];_0x5d8f41++){if(_0x34e6d8(this,_0x4e7561[_0x5d8f41],_0x4e7561,_0x5d8f41+0x1))return!0x0;}for(let _0x4b45c4=0x0;_0x4b45c4<_0x4e7561[_0x7e0b('0xbe')];_0x4b45c4++){if(_0x34e6d8(this,_0x4e7561[_0x4b45c4],_0x1276d4,0x0))return!0x0;}return!0x1;function _0x34e6d8(_0x28102d,_0x467bc7,_0x27b67e,_0x1bbb3b){for(let _0x584968=_0x1bbb3b;_0x584968<_0x27b67e[_0x7e0b('0xbe')];_0x584968++){const _0x24447e=_0x27b67e[_0x584968];if(_0x24447e['type']!==_0x467bc7[_0x7e0b('0xee')]||_0x24447e[_0x7e0b('0xcf')]['id']!==_0x467bc7[_0x7e0b('0xcf')]['id']||_0x24447e[_0x7e0b('0x52')]!==_0x467bc7[_0x7e0b('0x52')])continue;const _0x201897=_0x3aa887[_0x7e0b('0xd3')](_0x467bc7),_0x1bfca2=_0x993455[_0x7e0b('0xd3')](_0x467bc7),_0x3496a9=_0x993455['get'](_0x24447e),_0x1e11a7=_0x467bc7['commentThread']&&_0x467bc7[_0x7e0b('0x112')]['length'],_0x295116=_0x24447e[_0x7e0b('0x112')]&&_0x24447e[_0x7e0b('0x112')][_0x7e0b('0xbe')];if(!_0x1e11a7&&_0x201897(_0x3496a9,_0x1bfca2))return _0x28102d[_0x7e0b('0x118')](_0x24447e,_0x467bc7),_0x993455['delete'](_0x467bc7),!0x0;if(!_0x295116&&_0x201897(_0x1bfca2,_0x3496a9))return _0x28102d['_joinSuggestions'](_0x467bc7,_0x24447e),_0x993455[_0x7e0b('0x15')](_0x24447e),!0x0;}return!0x1;}}[_0x7e0b('0x118')](_0x2927a7,_0x5442ec){if(_0x2927a7[_0x7e0b('0x4b')])for(const _0x2f22a6 of _0x5442ec['getRanges']())_0x2927a7[_0x7e0b('0x18')](_0x2f22a6);else{const _0x270e52=_0x5442ec[_0x7e0b('0xd5')]()['end'];this[_0x7e0b('0x89')](_0x2927a7,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x2927a7[_0x7e0b('0xd5')]()[_0x7e0b('0x88')],_0x270e52));}_0x5442ec[_0x7e0b('0xc3')]();}}class Dt{constructor(_0xd47833){this['_editor']=_0xd47833,this[_0x7e0b('0xcc')]=_0xd47833[_0x7e0b('0x91')],this[_0x7e0b('0x3b')]=new Map(),this[_0x7e0b('0x78')]=new Map(),this[_0x7e0b('0x4e')]();}[_0x7e0b('0x71')](_0x48045c,_0x363884,_0x3a9931,_0x374b16,_0x12741e,_0x2bacbc){return new _0x232d62(this[_0x7e0b('0xcc')],{'type':_0x48045c,'subType':_0x363884,'id':_0x3a9931,'author':_0x374b16,'creator':_0x374b16,'attributes':_0x12741e,'onAttributesChange':_0x2bacbc,'onAccept':(..._0x7ed563)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,_0x7e0b('0xf4'))(..._0x7ed563),'onDiscard':(..._0x412786)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,'discard')(..._0x412786)});}[_0x7e0b('0xf0')](_0x121069,_0x681c9c,_0x198eac,_0x21d725){const _0x3ee56d=_0x121069+':'+_0x681c9c+':'+_0x198eac;this[_0x7e0b('0x3b')]['set'](_0x3ee56d,_0x21d725);}[_0x7e0b('0xe4')](_0x1233eb,_0x4227e2,_0x1df37a){const _0x3f08ea=_0x1233eb+':'+_0x4227e2+':'+_0x1df37a;return this[_0x7e0b('0x3b')][_0x7e0b('0xd3')](_0x3f08ea)||this[_0x7e0b('0x78')][_0x7e0b('0xd3')](_0x1233eb+':'+_0x1df37a);}[_0x7e0b('0x4e')](){const _0x1c305a=()=>{},_0x4e563c=_0x278653=>{_0x278653[_0x7e0b('0x106')]((_0x5dcc5a,_0x5213df)=>_0x5dcc5a[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x5213df[_0x7e0b('0x88')])?0x1:-0x1),this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0xabd811=>{for(const _0x186086 of _0x278653){let _0x2a854e;_0x2a854e=_0x186086[_0x7e0b('0x2f')]['isAtEnd']&&_0x186086['end'][_0x7e0b('0x32')]==_0x186086['start'][_0x7e0b('0x12e')]?_0xabd811['createSelection'](_0x186086[_0x7e0b('0x88')][_0x7e0b('0x12e')],'on'):_0xabd811[_0x7e0b('0x103')](_0x186086),this[_0x7e0b('0xcc')][_0x7e0b('0x141')](_0x2a854e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18a1b2=(_0x4907b5,_0x227bb5)=>{this['_model'][_0x7e0b('0xbc')](_0x1bba84=>{const {commandName:_0x575e40,commandParams:_0x595e6b=[]}=_0x227bb5,_0x1034e5=_0x4907b5[_0x7e0b('0xcd')](_0x46e38f=>(_t(_0x46e38f)&&(_0x46e38f=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x46e38f[_0x7e0b('0x2f')])),_0x46e38f))[_0x7e0b('0x4a')](_0x4dce27=>'$graveyard'!==_0x4dce27[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);if(_0x1034e5[_0x7e0b('0xbe')]<0x1)return;const _0x5ba33c=Array[_0x7e0b('0xa1')](this['_model'][_0x7e0b('0xf8')][_0x7e0b('0x7d')]['getRanges']())['map'](_0x350b7f=>_0x491aa7[_0x7e0b('0x31')](_0x350b7f));_0x1bba84[_0x7e0b('0x61')](_0x1034e5);for(const _0x229aae of this[_0x7e0b('0xb4')][_0x7e0b('0xc2')][_0x7e0b('0xc2')]())_0x229aae[_0x7e0b('0x11')]();_0x595e6b[_0x7e0b('0x70')]({'forceDefaultExecution':!0x0}),this[_0x7e0b('0xb4')][_0x7e0b('0x121')](_0x575e40,..._0x595e6b);const _0x528e92=_0x5ba33c[_0x7e0b('0x4a')](_0x1ac59c=>'$graveyard'!=_0x1ac59c[_0x7e0b('0x5f')]['rootName']);_0x528e92['length']>0x0&&_0x1bba84['setSelection'](_0x528e92);for(const _0x28348a of _0x5ba33c)_0x28348a[_0x7e0b('0x144')]();});},_0x17817f=(_0x5106cc,_0x4282c3)=>0x1==_0x5106cc[_0x7e0b('0xbe')]&&0x1==_0x4282c3[_0x7e0b('0xbe')]&&_0x5106cc[0x0][_0x7e0b('0x2f')]['isEqual'](_0x4282c3[0x0][_0x7e0b('0x88')]),_0x26b62d=(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1)=>xt(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1,this[_0x7e0b('0xcc')])?[_0x1f1d85,_0x37807b]:xt(_0x37807b,_0x1f1d85,_0x299fd1,_0x4edfae,this[_0x7e0b('0xcc')])?[_0x37807b,_0x1f1d85]:null;this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xea'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('insertion:discard',_0x4e563c),this['_defaultCallbacks'][_0x7e0b('0x2c')]('insertion:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')](_0x7e0b('0x12b'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xc7'),_0x4e563c),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('deletion:discard',_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x117'),_0x17817f),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x12c'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x90'),_0x18a1b2),this['_defaultCallbacks']['set'](_0x7e0b('0x9d'),_0x1c305a),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatInline:join',_0x17817f),this[_0x7e0b('0x78')]['set'](_0x7e0b('0xdd'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x24'),_0x18a1b2),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x99'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('formatBlock:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatBlock:chain',_0x1c305a);}}function Bt(_0x7cdbb3,_0x585bb4,_0xfcb79b){for(const _0x4d0682 of _0x585bb4['parent'][_0x7e0b('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d0682['root']==_0x4d0682)return!0x1;if(!_0xfcb79b[_0x7e0b('0x54')](_0x4d0682))return!0x1;if(_0x7cdbb3['isObject'](_0x4d0682)||_0x7cdbb3[_0x7e0b('0x12a')](_0x4d0682))return!0x0;}return!0x1;}function _t(_0xcd12a6){return _0xcd12a6['end'][_0x7e0b('0x32')]==_0xcd12a6[_0x7e0b('0x88')]['nodeAfter']&&_0xcd12a6['end']['isAtStart'];}function Mt(_0x563208,_0x554fde,_0x3791c2,_0x2bd65d){const _0x155f4d=_0x5df75d=>!_0x5df75d['item']['is']('$textProxy')&&!_0x2bd65d[_0x7e0b('0x3d')](_0x5df75d[_0x7e0b('0x83')]),_0x2886a4=_0x563208[_0x7e0b('0x88')][_0x7e0b('0xc1')](_0x155f4d),_0x324c1c=_0x563208['end'][_0x7e0b('0xc1')](_0x155f4d,{'direction':'backward'});return(!_0x563208[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x2886a4)||!_0x563208['end']['isEqual'](_0x324c1c))&&(_0x2886a4['isBefore'](_0x324c1c)?_0x3791c2[_0x7e0b('0x12f')](_0x554fde,{'range':_0x3791c2[_0x7e0b('0x51')](_0x2886a4,_0x324c1c)}):_0x3791c2[_0x7e0b('0x113')](_0x554fde),!0x0);}function $t(_0x2120ff){return _0x1685bc(_0x2120ff);}function Nt(_0x526a58){const _0x5a52dd=_0x526a58[_0x7e0b('0x88')][_0x7e0b('0x12e')];return _0x5a52dd&&_0x5a52dd['is'](_0x7e0b('0xde'));}function Rt(_0x1f556a,_0x905b13){const _0x16dbb7=_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1f556a)||_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x68')](_0x1f556a);return _0x905b13['createRange'](_0x905b13[_0x7e0b('0xda')](_0x1f556a,'before'),_0x16dbb7?_0x905b13[_0x7e0b('0x6c')](_0x1f556a):_0x905b13['createPositionAt'](_0x1f556a,'end'));}function xt(_0x2ec874,_0xdcdf5,_0x42ca3a,_0x3cc74c,_0x2f36e9){if(_0x42ca3a['end'][_0x7e0b('0xa4')](_0x3cc74c[_0x7e0b('0x88')]))return!0x0;if(_0x2ec874[_0x7e0b('0xee')]!=_0xdcdf5['type'])return!0x1;if(!_0x42ca3a[_0x7e0b('0x2f')][_0x7e0b('0x129')](_0x3cc74c['start']))return!0x1;const _0x46cd38=_0x2f36e9[_0x7e0b('0x51')](_0x42ca3a['end'],_0x3cc74c[_0x7e0b('0x88')])[_0x7e0b('0x14')]();for(const _0x25b06a of _0x46cd38)if([_0x7e0b('0xa'),_0x7e0b('0x104')]['includes'](_0x25b06a[_0x7e0b('0xee')])&&_0x2f36e9[_0x7e0b('0x7b')][_0x7e0b('0x12a')](_0x25b06a[_0x7e0b('0x83')]))return!0x1;return!0x0;}
23
+ const _0x3a99=['sort','_setSuggestionData','containsPosition','removeMarker:suggestion:formatBlock','parent','insert','_checkSuggestionCorrectness','_mergeNestedSuggestions','getChangedMarkers','ck-suggestion-marker-','_defaultCallbacks','getRanges','newRange','enableCommand','always','createRange','suggestion:','markerToData','conversion','suggestionLoaded','track-changes-suggestion-data-mismatch','_commentsRepository','attributes','discard','markerNameToElements','addMarker:suggestion:formatBlock','formatBlock:discard','_findSuggestions','model','showSuggestionHighlights','oldRange','insertContent','author','_handleNewSuggestionMarker','howMany','options','TrackChangesEditing','dataReady','targetPosition','isIntersectingWithRange','isAtEnd','hasCommentThread','addMarkerName','acceptSuggestion','markerToHighlight','markerReady','resolve','documentSelection','dataDowncast','_getSuggestionData','createPositionAfter','formatBlock','_updateSuggestionData','consumable','isEqual','getFirstRange','_cutOutSuggestionMarker','acceptSelectedSuggestions','createRangeIn','end','isAtStart','item','document','isNextTo','_getExternalAuthor','clear','isAfter','isLimit','plugins','isSelectable','execute','registerCustomCallback','discardSuggestion','isLocal','_adapter','nodeAfter','backward','error-saving-suggestion-data-suggestion-discarded','_enabledCommands','applyOperation','_rangeIsInLocalUserInsertion','formatBlock:join','addSuggestion','_getAuthorFromId','getSuggestionCallback','$graveyard','PendingActions','rejected','editing','adapter','discardSelectedSuggestions','isCollapsed','catch','elementToElement','ready','formatBlock:accept','mapper','previous','deletion:join','formatInline:join','head','locale','subType','formatInline:','before','setTo','marker-count','getCustomProperty','markMultiRangeBlockFormat','registerPostFixer','ck-suggestion-marker','ck-suggestion-marker-formatBlock','consume','length','createdAt','createElement','getItems','_addThreadToSuggestion','fire','formatInline','size','start','moveTargetPosition','deletion:accept','markMultiRangeInsertion','addClass','getNearestSelectionRange','add','unbind','_removeSuggestion','push','suggestionUnloaded','deletion','then','filter','open','config','forceDefaultExecution','isMultiRange','addRange','selection','_isForcedDefaultExecutionBlock','trackChanges.mergeNestedSuggestions','some','change','low','hasComments','addHighlight','detach','refresh','element','suggestion','type','markInsertion','batch','ck-suggestion-marker--active','dataToMarker','trackChangesCommand','addMarker:suggestion','formatBlock:','clone','pluginName','markers','external:','elementEnd','isRemovable','getAttribute','track-changes-adapter-missing-getsuggestion','_splitMarkerName','_setSuggestionRange','suggestion-type','get','CommentsRepository','getCommentThread','@external','setAttribute','getIntersection','$marker','_model','getUser','hasSuggestion','getSuggestions','removeMarker','never','enqueueChange','$textProxy','addComment','move','authoredAt','formatInline:accept','activeMarkers','set','markMultiRangeDeletion','toViewElement','_customCallbacks','containsRangeInObject','track-changes-user-not-found','delete','isInsideObject','root','setSelection','skipNestingCheck','getDifference','addMarker','addSuggestionData','unbindElementFromMarkerName','_joinWithAdjacentSuggestions','PENDING_ACTION_SUGGESTION','value','getChanges','_suggestionFactory','getFirstMarker','formatGroupId','join','default','listenTo','values','deletion:','_descriptionFactory','markerName','_breakSuggestionMarker','acceptAllSuggestions','bindElementToMarker','getAllAdjacentSuggestions','stopListening','track-changes-suggestion-not-found','writer','isInContent','track-changes-adapter-already-set','forward','after','getMarkers','_suggestionState','schema','nodeBefore','accepted','getAncestors','split','rootName','remove','discardAllSuggestions','high','change:activeMarkers','removed','has','every','markInlineFormat','_refreshSuggestionsChain','from','containsRange','_registerDefaultCallbacks','group','removeMarkers','isOwn','name','define','splice','for','change:_saved','getLastMatchingPosition','substr','highest','isObject','_addSuggestionMarker','markDeletion','upcast','update:suggestion','_suggestions','getMultiRangeId','editor','_saved','collaboration.channelId','deleteContent','_editor','trackChanges.trackFormatChanges','data','editingDowncast','commentThread','includes','map','isUndo','init','formatInline:chain','stop','data-suggestion','isExternal','insertion:','buildSuggestion','accept','position','next','multipleBlocks','createPositionAt','addCommentThread','getShiftedBy','_trackFormatChanges','Users','_createSuggestion','isBefore','range','updateMarker','getSuggestion','elementStart','removeClass','return','createSelection','notReady','suggestionChanged','commands','addUser','commandName','trackChanges','insertion','fromCharCode','containsItem','normal','creator','_joinSuggestions','enableReadOnlyMode'];(function(_0x33ad3b,_0x3a995c){const _0x5a333b=function(_0x202305){while(--_0x202305){_0x33ad3b['push'](_0x33ad3b['shift']());}};_0x5a333b(++_0x3a995c);}(_0x3a99,0x13d));const _0x5a33=function(_0x33ad3b,_0x3a995c){_0x33ad3b=_0x33ad3b-0x0;let _0x5a333b=_0x3a99[_0x33ad3b];return _0x5a333b;};import{Plugin as _0x50771f,PendingActions as _0x3ae3a6}from'ckeditor5/src/core';import{LiveRange as _0x503ccc}from'ckeditor5/src/engine';import{CKEditorError as _0x52fb41,uid as _0x507ffc,priorities as _0x267864,logWarning as _0x4469c8}from'ckeditor5/src/utils';import{toWidget as _0x1d0739}from'ckeditor5/src/widget';import{Users as _0x252123,hashObject as _0x9b0fcf}from'ckeditor5-collaboration/src/collaboration-core';import _0x27c8f5 from'./commands/trackchangescommand';import _0x5c93fb from'./commands/acceptsuggestioncommand';import _0x579aba from'./commands/discardsuggestioncommand';import _0x599703 from'./commands/executeonallsuggestionscommand';import _0x372fe2 from'./commands/executeonselectedsuggestionscommand';import _0x2964dc from'./suggestion';import _0x320b82 from'./suggestiondescriptionfactory';import _0x10f8b2 from'./integrations/alignment';import _0x2d53ab from'./integrations/basicstyles';import _0x51d356 from'./integrations/blockquote';import _0x544a7c from'./integrations/ckbox';import _0x4b17fd from'./integrations/codeblock';import _0x106d77 from'./integrations/comments';import _0x21d59e from'./integrations/deletecommand';import _0x2ddaf8 from'./integrations/documentlist';import _0x12b7ae from'./integrations/entercommand';import _0x589ff5 from'./integrations/findandreplace';import _0x1dee7c from'./integrations/font';import _0x1f4fc8 from'./integrations/formatpainter';import _0x152409 from'./integrations/heading';import _0x270405 from'./integrations/highlight';import _0x29101b from'./integrations/horizontalline';import _0x50b9f3 from'./integrations/htmlembed';import _0x2f3662 from'./integrations/image';import _0x503fdb from'./integrations/imagereplace';import _0x873aaf from'./integrations/importword';import _0x4daf17 from'./integrations/indent';import _0x530538 from'./integrations/inputcommand';import _0x18e3d7 from'./integrations/link';import _0x4a87de from'./integrations/list';import _0x2bb87d from'./integrations/listproperties';import _0x4af87a from'./integrations/mediaembed';import _0x6ae5be from'./integrations/mention';import _0x44957a from'./integrations/pagebreak';import _0x308768 from'./integrations/paragraph';import _0x1166bc from'./integrations/removeformat';import _0x45ffd6 from'./integrations/restrictededitingmode';import _0x15a837 from'./integrations/shiftentercommand';import _0x2191d8 from'./integrations/standardeditingmode';import _0x51a3c9 from'./integrations/style';import _0x397cff from'./integrations/table';import _0x74815 from'./integrations/tablemergesplit';import _0xd9a159 from'./integrations/tableheadings';import _0x21783c from'./integrations/tableclipboard';import _0x381cc3 from'./integrations/tablecolumnresize';import _0x48fb39 from'./integrations/template';import _0x1fd6da from'./integrations/tableofcontents';import _0x10f0d2 from'./integrations/title';import _0x5c026d from'./integrations/undo';import{getTranslation as _0x2463b2}from'./utils/common-translations';import _0x398628 from'./integrations/tablecaption';import _0x3f3a86 from'./integrations/documentlistproperties';import _0x30236a from'./integrations/tableproperties';export default class p extends _0x50771f{static get['requires'](){return[_0x5a33('0xae'),_0x252123,_0x3ae3a6,_0x10f8b2,_0x2d53ab,_0x51d356,_0x544a7c,_0x4b17fd,_0x106d77,_0x21d59e,_0x2ddaf8,_0x3f3a86,_0x12b7ae,_0x589ff5,_0x1dee7c,_0x1f4fc8,_0x152409,_0x270405,_0x29101b,_0x50b9f3,_0x2f3662,_0x503fdb,_0x873aaf,_0x4daf17,_0x530538,_0x18e3d7,_0x4a87de,_0x2bb87d,_0x4af87a,_0x6ae5be,_0x44957a,_0x308768,_0x1166bc,_0x45ffd6,_0x15a837,_0x2191d8,_0x51a3c9,_0x397cff,_0x74815,_0xd9a159,_0x398628,_0x21783c,_0x381cc3,_0x1fd6da,_0x30236a,_0x48fb39,_0x10f0d2,_0x5c026d];}static get[_0x5a33('0xa3')](){return _0x5a33('0x26');}constructor(_0x589ff0){function _0x455626(_0x4b9a02){return _0x4b9a02[_0x5a33('0x119')](_0x99e86b=>String[_0x5a33('0x13b')](_0x99e86b))['join']('');}super(_0x589ff0),this[_0x5a33('0xc1')](_0x5a33('0xc0'),[]),this['on'](_0x5a33('0xf4'),(_0x3e1b21,_0x24dc7d,_0x3eebbe,_0x4d44c4)=>{this['_model'][_0x5a33('0x92')](()=>{for(const _0x36c58a of[..._0x4d44c4,..._0x3eebbe])this[_0x5a33('0xb4')][_0x5a33('0xa4')]['has'](_0x36c58a)&&_0x589ff0[_0x5a33('0x5a')]['reconvertMarker'](_0x36c58a);});}),this[_0x5a33('0xdc')]=new _0x320b82(this[_0x5a33('0x10f')]['model'][_0x5a33('0xeb')],this[_0x5a33('0x10f')]['locale']),this[_0x5a33('0x4c')]=null,this['_suggestionFactory']=new Dt(this[_0x5a33('0x10f')]),this[_0x5a33('0x10d')]=new Map(),this['_commentsRepository']=_0x589ff0['plugins'][_0x5a33('0xad')]('CommentsRepository'),this[_0x5a33('0x50')]=new Set(),this[_0x5a33('0xb4')]=this['editor'][_0x5a33('0x1e')],this[_0x5a33('0xea')]=new WeakMap(),this[_0x5a33('0x8f')]=!0x1,_0x589ff0[_0x5a33('0x8a')][_0x5a33('0x101')](_0x5a33('0x114'),_0x5a33('0xd8')),this[_0x5a33('0x129')]=_0x589ff0[_0x5a33('0x8a')][_0x5a33('0xad')](_0x5a33('0x114')),_0x589ff0[_0x5a33('0x8a')][_0x5a33('0x101')](_0x5a33('0x90'),!0x0),this['_mergeNestedSuggestions']=_0x589ff0[_0x5a33('0x8a')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x5a33('0x9f')]=new _0x27c8f5(_0x589ff0,this['_enabledCommands']),this[_0x455626([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x455626([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x36]);}[_0x5a33('0x11b')](){const _0x48cc99=this['editor'];_0x48cc99[_0x5a33('0x14')]['for']('editingDowncast')[_0x5a33('0x2e')]({'model':'suggestion','view':_0x40d759=>{const {id:_0x5b8164,type:_0x59e12b}=this['_splitMarkerName'](_0x40d759[_0x5a33('0xdd')]),_0x224279=[_0x5a33('0x70'),_0x5a33('0xb')+_0x59e12b];let _0x335977=0xbb8;return this[_0x5a33('0xc0')][_0x5a33('0x118')](_0x40d759[_0x5a33('0xdd')])&&(_0x224279['push'](_0x5a33('0x9d')),_0x335977=0xbc2),_0x5a33('0x86')==_0x59e12b&&(_0x335977+=0x5),{'classes':_0x224279,'attributes':{'data-suggestion':_0x5b8164},'priority':_0x335977};}}),_0x48cc99['conversion']['for'](_0x5a33('0x32'))[_0x5a33('0x81')](_0x5a62e5=>{_0x5a62e5['on'](_0x5a33('0xa0'),(_0x59af9f,_0x2c3a39,_0x2d116e)=>{if(!_0x2d116e[_0x5a33('0x25')][_0x5a33('0x1f')])return;const _0x15abf8=_0x2c3a39[_0x5a33('0x3f')];if(!_0x15abf8)return;const _0x47a662=_0x2d116e[_0x5a33('0x62')]['toViewElement'](_0x15abf8);_0x48cc99[_0x5a33('0x1e')][_0x5a33('0xeb')][_0x5a33('0x108')](_0x15abf8)&&_0x47a662&&!_0x47a662[_0x5a33('0x6d')]('widget')&&_0x47a662['is']('containerElement')&&_0x1d0739(_0x47a662,_0x2d116e[_0x5a33('0xe4')]);},{'priority':_0x5a33('0xf3')});}),_0x48cc99[_0x5a33('0x14')]['for'](_0x5a33('0x32'))['markerToHighlight']({'model':_0x5a33('0x99'),'view':(_0x30a870,_0x340635)=>{if(!_0x340635['options'][_0x5a33('0x1f')])return null;const {type:_0x1eba4a}=this[_0x5a33('0xaa')](_0x30a870[_0x5a33('0xdd')]);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x1eba4a],'priority':0xbb8};}});const _0x5bee9d=({showActiveMarkers:_0x486695=!0x0}={})=>(_0x46651f,_0x408837,_0x5eff83)=>{if(!_0x408837[_0x5a33('0x3f')])return;if(_0x408837[_0x5a33('0x3f')]['is']('selection'))return void _0x5eff83[_0x5a33('0x37')][_0x5a33('0x72')](_0x408837['item'],_0x46651f['name']);const _0x1ff160=_0x5eff83['mapper'][_0x5a33('0xc3')](_0x408837[_0x5a33('0x3f')]);if(!(_0x408837['item']['is'](_0x5a33('0x98'))&&_0x48cc99[_0x5a33('0x1e')][_0x5a33('0xeb')]['isBlock'](_0x408837['item'])&&!_0x1ff160[_0x5a33('0x6d')](_0x5a33('0x95'))))return;const {id:_0x1cda36}=this[_0x5a33('0xaa')](_0x408837['markerName']);_0x5eff83['writer'][_0x5a33('0x7f')]([_0x5a33('0x70'),'ck-suggestion-marker-formatBlock'],_0x1ff160),_0x5eff83[_0x5a33('0xe4')][_0x5a33('0xb1')]('data-suggestion',_0x1cda36,_0x1ff160),_0x5eff83[_0x5a33('0x62')][_0x5a33('0xe0')](_0x1ff160,_0x408837[_0x5a33('0xdd')]),_0x486695&&(this['activeMarkers'][_0x5a33('0x118')](_0x408837['markerName'])?_0x5eff83[_0x5a33('0xe4')][_0x5a33('0x7f')](_0x5a33('0x9d'),_0x1ff160):_0x5eff83[_0x5a33('0xe4')][_0x5a33('0x131')](_0x5a33('0x9d'),_0x1ff160));for(const _0x77a6c of _0x48cc99[_0x5a33('0x1e')][_0x5a33('0x3c')](_0x408837['item'])[_0x5a33('0x76')]())_0x5eff83[_0x5a33('0x37')][_0x5a33('0x72')](_0x77a6c,_0x46651f[_0x5a33('0x100')]);_0x5eff83['consumable'][_0x5a33('0x72')](_0x408837['item'],_0x46651f['name']);};_0x48cc99[_0x5a33('0x14')][_0x5a33('0x103')](_0x5a33('0x32'))['add'](_0xf35d41=>{_0xf35d41['on'](_0x5a33('0x1b'),(_0x1b12a4,_0x5548e4,_0x1f38df)=>{_0x1f38df['options'][_0x5a33('0x1f')]&&_0x5bee9d({'showActiveMarkers':!0x1})(_0x1b12a4,_0x5548e4,_0x1f38df);},{'priority':_0x5a33('0x107')});}),_0x48cc99[_0x5a33('0x14')][_0x5a33('0x103')](_0x5a33('0x32'))[_0x5a33('0x13')]({'model':'suggestion','view':(_0xd37411,_0x39c8e7)=>_0x39c8e7[_0x5a33('0x25')]['showSuggestionHighlights']?null:{'group':_0x5a33('0x99'),'name':_0xd37411[_0x5a33('0x106')](0xb)}}),_0x48cc99[_0x5a33('0x14')][_0x5a33('0x103')](_0x5a33('0x10b'))[_0x5a33('0x5f')]({'view':{'name':_0x5a33('0x99'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x30813d,{writer:_0x1c15f3})=>{let _0x84b505='suggestion:'+_0x30813d[_0x5a33('0xa8')](_0x5a33('0xac'))+':'+_0x30813d[_0x5a33('0xa8')]('id');return _0x30813d[_0x5a33('0xa8')](_0x5a33('0x6c'))&&(_0x84b505+=':'+_0x30813d[_0x5a33('0xa8')](_0x5a33('0x6c'))),_0x1c15f3[_0x5a33('0x75')](_0x5a33('0xb3'),{'data-name':_0x84b505});}}),_0x48cc99[_0x5a33('0x14')]['for'](_0x5a33('0x10b'))[_0x5a33('0x9e')]({'view':_0x5a33('0x99')}),_0x48cc99[_0x5a33('0x14')][_0x5a33('0x103')]('editingDowncast')[_0x5a33('0x81')](_0x154045=>{_0x154045['on'](_0x5a33('0x1b'),_0x5bee9d(),{'priority':_0x5a33('0xf3')});}),_0x48cc99[_0x5a33('0x14')]['for'](_0x5a33('0x116'))[_0x5a33('0x81')](_0x33448d=>{_0x33448d['on'](_0x5a33('0x5'),(_0xf7b697,_0x1f4dc0,_0x2b1b3d)=>{const _0x127d78=_0x2b1b3d[_0x5a33('0x62')][_0x5a33('0x1a')](_0x1f4dc0[_0x5a33('0xdd')]);if(_0x127d78)for(const _0x44b6dc of _0x127d78)_0x44b6dc['getCustomProperty']('addHighlight')||(_0x2b1b3d[_0x5a33('0xe4')][_0x5a33('0x131')](['ck-suggestion-marker',_0x5a33('0x71'),_0x5a33('0x9d')],_0x44b6dc),_0x2b1b3d[_0x5a33('0xe4')]['removeAttribute'](_0x5a33('0x11e'),_0x44b6dc),_0x2b1b3d[_0x5a33('0x62')][_0x5a33('0xcf')](_0x44b6dc,_0x1f4dc0['markerName']));},{'priority':_0x5a33('0xf3')});}),_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x40')][_0x5a33('0x6f')](_0x18536a=>{let _0x1a993c=!0x1;const _0x27b3a3=Array[_0x5a33('0xfa')](_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x40')]['differ'][_0x5a33('0xa')]()),_0x49272c=new Set();for(const {name:_0x2c9914,data:_0x462958}of _0x27b3a3){const {group:_0x563256,type:_0x123e68,id:_0x12f1c3}=this[_0x5a33('0xaa')](_0x2c9914);if(_0x5a33('0x99')!==_0x563256)continue;const _0x1b5dc7=this[_0x5a33('0x10d')][_0x5a33('0xad')](_0x12f1c3);if(null!=_0x462958[_0x5a33('0xe')]){_0x5a33('0x79')==_0x123e68&&(_0x1a993c=_0x1a993c||Mt(_0x462958[_0x5a33('0xe')],_0x2c9914,_0x18536a,_0x48cc99[_0x5a33('0x1e')][_0x5a33('0xeb')]));if(_0x462958[_0x5a33('0xe')][_0x5a33('0x5d')]||_0x5a33('0x57')==_0x462958['newRange'][_0x5a33('0xc9')][_0x5a33('0xf0')]||_0x5a33('0x35')==_0x123e68&&!Nt(_0x462958[_0x5a33('0xe')])||_0x5a33('0x86')==_0x123e68&&!(!_t(_0x4f3aa7=_0x462958['newRange'])&&!function(_0x712ae6){return _0x712ae6[_0x5a33('0x7b')][_0x5a33('0x6')]==_0x712ae6['end']['nodeBefore']&&_0x712ae6['start'][_0x5a33('0x2a')];}(_0x4f3aa7)))_0x18536a[_0x5a33('0xb8')](_0x2c9914),_0x1a993c=!0x0;else{if(!_0x1b5dc7||!_0x1b5dc7['isInContent'])continue;_0x49272c[_0x5a33('0x81')](_0x1b5dc7);}}}var _0x4f3aa7;return _0x49272c[_0x5a33('0x7a')]>0x0&&(_0x1a993c=!!this[_0x5a33('0xd0')](_0x49272c)||_0x1a993c),_0x1a993c;}),_0x48cc99[_0x5a33('0x1e')]['document'][_0x5a33('0x6f')](_0x27d384=>{let _0x356258=!0x1;for(const _0x8200e6 of _0x48cc99[_0x5a33('0x1e')][_0x5a33('0x40')]['differ'][_0x5a33('0xd3')]()){if(_0x5a33('0x7')!=_0x8200e6[_0x5a33('0x9a')])continue;const _0x5fe42f=_0x8200e6[_0x5a33('0x123')][_0x5a33('0x128')](_0x8200e6[_0x5a33('0x73')]);if(_0x5fe42f[_0x5a33('0x2a')])for(const _0x2877c3 of this[_0x5a33('0x10d')][_0x5a33('0xda')]()){if(_0x2877c3[_0x5a33('0x8c')]||!_0x2877c3[_0x5a33('0xe5')])continue;if('formatBlock'!=_0x2877c3[_0x5a33('0x9a')])continue;const _0x3faefb=_0x2877c3['getFirstRange']();if(_0x3faefb[_0x5a33('0x7b')][_0x5a33('0x6')]!=_0x3faefb[_0x5a33('0x3d')][_0x5a33('0x6')]&&_0x3faefb[_0x5a33('0x3d')]['isEqual'](_0x8200e6['position'])){const _0x375a23=_0x48cc99[_0x5a33('0x1e')]['createRange'](_0x3faefb[_0x5a33('0x7b')],_0x5fe42f);_0x27d384[_0x5a33('0x12e')](_0x2877c3[_0x5a33('0xd5')](),{'range':_0x375a23}),_0x356258=!0x0;}}}return _0x356258;}),_0x48cc99[_0x5a33('0x1e')][_0x5a33('0xa4')]['on'](_0x5a33('0x10c'),(_0x2abd62,_0x3b9743,_0x35ba54)=>{if(null==_0x35ba54){const {id:_0x134dae}=this[_0x5a33('0xaa')](_0x3b9743[_0x5a33('0x100')]),_0x35230a=this['_suggestions']['get'](_0x134dae);_0x35230a&&_0x35230a[_0x5a33('0x2c')](_0x3b9743['name']);}}),_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x40')]['on']('change:data',()=>{const _0x42311f=Array[_0x5a33('0xfa')](_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x40')]['differ']['getChangedMarkers']())['filter'](_0x3e61b3=>_0x5a33('0x99')===this[_0x5a33('0xaa')](_0x3e61b3[_0x5a33('0x100')])[_0x5a33('0xfd')]);if(0x0===_0x42311f[_0x5a33('0x73')])return;_0x42311f[_0x5a33('0x2')]((_0x2d636e,_0x3eeb92)=>{const _0x4f1353=_0x2d636e[_0x5a33('0x115')]['oldRange'],_0xed4d84=_0x3eeb92['data'][_0x5a33('0x20')];return null===_0x4f1353&&null===_0xed4d84?0x0:null===_0x4f1353&&null!==_0xed4d84?-0x1:null!==_0x4f1353&&null===_0xed4d84?0x1:_0x4f1353['start'][_0x5a33('0x12c')](_0xed4d84['start'])?-0x1:0x1;});const _0x15a577=new Set(),_0x1f1624=new Set();for(const {name:_0x1c2916,data:_0x32f8d9}of _0x42311f){const {id:_0x71abca}=this['_splitMarkerName'](_0x1c2916);if(null===_0x32f8d9[_0x5a33('0x20')]){const _0x15d203=this[_0x5a33('0x23')](_0x1c2916);_0x1f1624[_0x5a33('0x81')](_0x15d203);}else{const _0x4ebdbc=this[_0x5a33('0x10d')][_0x5a33('0xad')](_0x71abca);null!==_0x32f8d9[_0x5a33('0xe')]||_0x4ebdbc[_0x5a33('0xe5')]?(_0x15a577[_0x5a33('0x81')](_0x4ebdbc[_0x5a33('0x66')]),_0x1f1624['add'](_0x4ebdbc)):this['_removeSuggestion'](_0x4ebdbc);}}_0x1f1624['size']>0x0&&this[_0x5a33('0xf9')](_0x1f1624);for(const _0x2b38b6 of _0x15a577)this[_0x5a33('0x78')]('suggestionChanged',_0x2b38b6);}),_0x48cc99[_0x5a33('0x1e')]['on'](_0x5a33('0x51'),(_0xc0821c,_0x3a5aaf)=>{const _0x75e178=_0x3a5aaf[0x0];if(!this[_0x5a33('0x10d')][_0x5a33('0x7a')])return;if(!_0x75e178['isDocumentOperation'])return;if(_0x75e178[_0x5a33('0x9c')][_0x5a33('0x11a')]||!_0x75e178[_0x5a33('0x9c')][_0x5a33('0x4b')])return;let _0x512be0,_0x4ab9be;switch(_0x75e178['type']){case _0x5a33('0x7'):_0x512be0=_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x126')](_0x75e178[_0x5a33('0x123')]),_0x4ab9be=_0x512be0[_0x5a33('0x128')](_0x75e178[_0x5a33('0x24')]);break;case'split':_0x512be0=_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x126')](_0x75e178['splitPosition']),_0x4ab9be=_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x126')](_0x75e178[_0x5a33('0x7c')]);break;case _0x5a33('0xbd'):_0x512be0=_0x48cc99[_0x5a33('0x1e')]['createPositionAt'](_0x75e178[_0x5a33('0x28')]),_0x4ab9be=_0x512be0[_0x5a33('0x128')](_0x75e178[_0x5a33('0x24')]);break;default:return;}const _0xe407d0=_0x48cc99['model'][_0x5a33('0x11')](_0x512be0,_0x4ab9be);_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x92')](()=>{for(const {suggestion:_0x16f34b,meta:_0x23181a}of this[_0x5a33('0x1d')](_0xe407d0)){if(_0x16f34b[_0x5a33('0x8c')])continue;if('formatInline'==_0x16f34b[_0x5a33('0x9a')])continue;const _0x337d7=_0x16f34b[_0x5a33('0x115')]&&_0x16f34b[_0x5a33('0x115')][_0x5a33('0x125')];(_0x5a33('0x35')!=_0x16f34b['type']||_0x5a33('0xef')==_0x75e178[_0x5a33('0x9a')]&&!_0x337d7)&&(_0x23181a[_0x5a33('0xc5')]||'insertion'==_0x16f34b['type']&&_0x23181a[_0x5a33('0xff')]||_0x16f34b['getFirstRange']()[_0x5a33('0xfb')](_0xe407d0)&&this[_0x5a33('0xde')](_0x16f34b,_0x512be0,_0x4ab9be));}});},{'priority':'lowest'}),_0x48cc99[_0x5a33('0x1e')]['on'](_0x5a33('0x112'),(_0x590b88,_0x216100)=>{const _0x5a4eb6=_0x216100[0x0],_0x440fcd=_0x216100[0x1];if(_0x440fcd&&_0x440fcd[_0x5a33('0x8b')])return;if(this[_0x5a33('0x8f')])return;if(!this[_0x5a33('0x9f')][_0x5a33('0xd2')])return;if(_0x5a4eb6[_0x5a33('0x5d')])return;const _0x170684=_0x48cc99['model'][_0x5a33('0xeb')],{start:_0x38ba4d,end:_0x104760}=_0x5a4eb6[_0x5a33('0x39')](),_0x5d8ad1=_0x38ba4d[_0x5a33('0x4d')]&&_0x170684[_0x5a33('0x45')](_0x38ba4d['nodeAfter'])?null:_0x170684['getNearestSelectionRange'](_0x38ba4d,_0x5a33('0xe7')),_0x4ab72b=_0x104760[_0x5a33('0xec')]&&_0x170684[_0x5a33('0x45')](_0x104760[_0x5a33('0xec')])?null:_0x170684[_0x5a33('0x80')](_0x104760,_0x5a33('0x4e')),_0x54051e=_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x11')](_0x5d8ad1?_0x5d8ad1[_0x5a33('0x7b')]:_0x38ba4d,_0x4ab72b?_0x4ab72b['end']:_0x104760);_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x92')](_0x1ad9be=>{this[_0x5a33('0x10a')](_0x54051e);const _0x28220c=_0x48cc99[_0x5a33('0x1e')]['schema'][_0x5a33('0x80')](_0x54051e[_0x5a33('0x7b')]);_0x5a4eb6['is'](_0x5a33('0x31'))?_0x1ad9be['setSelection'](_0x28220c):_0x5a4eb6[_0x5a33('0x6b')](_0x28220c);}),_0x590b88['stop']();},{'priority':_0x267864[_0x5a33('0x13d')]+0xa}),_0x48cc99[_0x5a33('0x1e')]['on']('insertContent',(_0x46e1f8,_0xff6e0a)=>{const _0x30e88a=_0xff6e0a[_0xff6e0a[_0x5a33('0x73')]-0x1];_0x30e88a&&_0x30e88a[_0x5a33('0x8b')]||this[_0x5a33('0x8f')]||this[_0x5a33('0x9f')][_0x5a33('0xd2')]&&(_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x92')](()=>{let _0x4d428b=_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x21')](_0xff6e0a[0x0],_0xff6e0a[0x1],_0xff6e0a[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d428b)return;_0x46e1f8[_0x5a33('0x132')]=_0x4d428b[_0x5a33('0xa2')]();const _0x341e31=_0x4d428b['end'][_0x5a33('0xec')],_0x1baab7=_0x48cc99[_0x5a33('0x1e')][_0x5a33('0xeb')];_0x341e31&&_0x1baab7['isBlock'](_0x341e31)&&!_0x1baab7[_0x5a33('0x108')](_0x341e31)&&(_0x4d428b=_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x11')](_0x4d428b[_0x5a33('0x7b')],_0x48cc99[_0x5a33('0x1e')][_0x5a33('0x126')](_0x341e31,_0x5a33('0x3d')))),this[_0x5a33('0x9b')](_0x4d428b);}),_0x46e1f8[_0x5a33('0x11d')]());},{'priority':'high'}),this[_0x5a33('0x10f')][_0x5a33('0x136')][_0x5a33('0x81')](_0x5a33('0x139'),this[_0x5a33('0x9f')]),this[_0x5a33('0xf')](_0x5a33('0x139'));const _0x15cedd=new _0x5c93fb(_0x48cc99,this[_0x5a33('0x10d')]);_0x48cc99['commands']['add'](_0x5a33('0x2d'),_0x15cedd),this['enableCommand'](_0x5a33('0x2d'));const _0x4e11dc=new _0x579aba(_0x48cc99,this['_suggestions']);_0x48cc99[_0x5a33('0x136')]['add'](_0x5a33('0x4a'),_0x4e11dc),this['enableCommand'](_0x5a33('0x4a')),_0x48cc99[_0x5a33('0x136')]['add']('acceptAllSuggestions',new _0x599703(_0x48cc99,_0x15cedd,this[_0x5a33('0x10d')])),this['enableCommand'](_0x5a33('0xdf')),_0x48cc99['commands'][_0x5a33('0x81')](_0x5a33('0xf2'),new _0x599703(_0x48cc99,_0x4e11dc,this[_0x5a33('0x10d')])),this[_0x5a33('0xf')]('discardAllSuggestions'),_0x48cc99['commands'][_0x5a33('0x81')](_0x5a33('0x3b'),new _0x372fe2(_0x48cc99,_0x15cedd,this[_0x5a33('0x10d')])),this[_0x5a33('0xf')](_0x5a33('0x3b')),_0x48cc99[_0x5a33('0x136')][_0x5a33('0x81')](_0x5a33('0x5c'),new _0x372fe2(_0x48cc99,_0x4e11dc,this[_0x5a33('0x10d')])),this[_0x5a33('0xf')](_0x5a33('0x5c'));const _0x3756fb=_0x48cc99['plugins'][_0x5a33('0xad')]('CommentsRepository');this[_0x5a33('0xd9')](_0x3756fb,_0x5a33('0xbc'),(_0x3c47be,{threadId:_0x589524})=>{const _0x3d79f8=this[_0x5a33('0x10d')]['get'](_0x589524);_0x3d79f8&&_0x3d79f8[_0x5a33('0x117')]&&0x1===_0x3d79f8[_0x5a33('0x117')][_0x5a33('0x73')]&&this['_updateSuggestionData'](_0x589524,{'hasComments':!0x0});},{'priority':_0x5a33('0x93')}),this[_0x5a33('0xd9')](_0x3756fb,'removeComment',(_0x59b2fb,{threadId:_0x4b8e22})=>{const _0x24b526=this[_0x5a33('0x10d')][_0x5a33('0xad')](_0x4b8e22);_0x24b526&&_0x24b526['commentThread']&&!_0x24b526[_0x5a33('0x117')][_0x5a33('0x73')]&&this[_0x5a33('0x36')](_0x4b8e22,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5a33('0x5b')](_0x52db01){if(this[_0x5a33('0x4c')])throw new _0x52fb41(_0x5a33('0xe6'),this);this[_0x5a33('0x4c')]=_0x52db01;}get[_0x5a33('0x5b')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1ebd60=!0x1,toJSON:_0x40608a=!0x1}={}){const _0x5d4710=[];for(const _0x86535c of this['_suggestions'][_0x5a33('0xda')]())_0x1ebd60&&!_0x86535c[_0x5a33('0xe5')]||_0x5d4710[_0x5a33('0x84')](_0x86535c);return _0x40608a?_0x5d4710[_0x5a33('0x119')](_0x5d95a0=>_0x5d95a0['toJSON']()):_0x5d4710;}[_0x5a33('0x12f')](_0x586d75){const _0x2c353e=this[_0x5a33('0x10d')][_0x5a33('0xad')](_0x586d75);if(!_0x2c353e)throw new _0x52fb41(_0x5a33('0xe3'),this);return _0x2c353e;}[_0x5a33('0xb6')](_0x4c2ff9){return this[_0x5a33('0x10d')][_0x5a33('0xf6')](_0x4c2ff9);}[_0x5a33('0xce')](_0xe9291e){const {authorId:_0x50c893,id:_0x54e015,attributes:_0xf973fc}=_0xe9291e,[_0xd0deae,_0x181dee]=_0xe9291e[_0x5a33('0x9a')][_0x5a33('0xef')](':'),_0x5a14f5=this[_0x5a33('0x10d')][_0x5a33('0xad')](_0x54e015)||this[_0x5a33('0x12b')](_0xd0deae,_0x181dee,_0x54e015,_0x50c893,_0xf973fc);if(this[_0x5a33('0x77')](_0x5a14f5),this[_0x5a33('0x8')](_0x5a14f5,_0xd0deae,_0x181dee||null,_0x50c893),_0x5a14f5[_0x5a33('0x74')]=_0xe9291e['createdAt'],_0xf973fc&&_0xf973fc[_0x5a33('0xb0')]){const _0x1dced2=_0xf973fc['@external'],_0x464e72=this['_getExternalAuthor'](_0x1dced2['authorName']);_0x5a14f5[_0x5a33('0xbe')]=_0x1dced2[_0x5a33('0x74')],_0x5a14f5[_0x5a33('0x22')]=_0x464e72,_0x5a14f5[_0x5a33('0x11f')]=!0x0;}else _0x5a14f5[_0x5a33('0xbe')]=_0xe9291e['createdAt'];switch(_0xe9291e[_0x5a33('0x115')]&&(_0x5a14f5[_0x5a33('0x115')]=_0xe9291e['data']),_0xe9291e[_0x5a33('0x18')]&&(_0x5a14f5[_0x5a33('0x18')]=_0xe9291e[_0x5a33('0x18')]),this[_0x5a33('0x4c')]&&this['_adapter'][_0x5a33('0x54')]||(_0x5a14f5[_0x5a33('0x110')]=!0x0),this[_0x5a33('0xea')]['get'](_0x5a14f5)){case _0x5a33('0x134'):this[_0x5a33('0xea')][_0x5a33('0xc1')](_0x5a14f5,'dataReady');break;case _0x5a33('0x2f'):_0x5a14f5[_0x5a33('0xe5')]?(this[_0x5a33('0xea')][_0x5a33('0xc1')](_0x5a14f5,_0x5a33('0x60')),this[_0x5a33('0x78')]('suggestionLoaded',_0x5a14f5)):this[_0x5a33('0xea')][_0x5a33('0xc1')](_0x5a14f5,'removed');}return _0x5a14f5;}[_0x5a33('0x2d')](_0x41c27c){this[_0x5a33('0x8b')](()=>{this['editor']['model'][_0x5a33('0x92')](()=>{for(const _0x1b4309 of _0x41c27c['getAllAdjacentSuggestions']())_0x1b4309[_0x5a33('0x122')]();});});}[_0x5a33('0x4a')](_0x5039c7){this['forceDefaultExecution'](()=>{this[_0x5a33('0x10f')][_0x5a33('0x1e')][_0x5a33('0x92')](()=>{for(const _0x1bcce2 of _0x5039c7[_0x5a33('0xe1')]())_0x1bcce2[_0x5a33('0x19')]();});});}[_0x5a33('0xf')](_0x572fa9,_0x54cf5d){const _0x22def7=this[_0x5a33('0x10f')][_0x5a33('0x136')][_0x5a33('0xad')](_0x572fa9);if(!_0x22def7)throw new _0x52fb41('track-changes-command-not-found',this,{'commandName':_0x572fa9});this[_0x5a33('0x50')][_0x5a33('0x81')](_0x22def7),_0x54cf5d&&_0x22def7['on'](_0x5a33('0x48'),(_0x1d0306,_0x57dfe2)=>{this['trackChangesCommand']['value']&&(this[_0x5a33('0x8f')]||_0x57dfe2['length']>0x0&&_0x57dfe2[_0x57dfe2[_0x5a33('0x73')]-0x1]&&_0x57dfe2[_0x57dfe2[_0x5a33('0x73')]-0x1][_0x5a33('0x8b')]||(_0x54cf5d((..._0x4802f9)=>_0x22def7[_0x5a33('0x48')](..._0x4802f9,{'forceDefaultExecution':!0x0}),..._0x57dfe2),_0x1d0306['stop']()));},{'priority':_0x5a33('0xf3')});}['forceDefaultExecution'](_0x218280){let _0x2a599b,_0x4bf91f;const _0x1c2960=this[_0x5a33('0x8f')];this[_0x5a33('0x8f')]=!0x0;try{_0x2a599b=_0x218280();}catch(_0x3dc7b6){_0x4bf91f=_0x3dc7b6;}return _0x1c2960||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4bf91f&&_0x52fb41['rethrowUnexpectedError'](_0x4bf91f,this),_0x2a599b;}['markInsertion'](_0x2658a1,_0x413839=null,_0x357477={}){if(_0x2658a1[_0x5a33('0x5d')])return null;const _0x5efca9=this[_0x5a33('0x10f')]['plugins']['get']('Users')['me'];for(const {suggestion:_0x6dbb6,meta:_0x24d597}of this['_findSuggestions'](_0x2658a1,_0x5a33('0x13a')))if(_0x24d597[_0x5a33('0xff')]){if(!_0x24d597['isNextTo']){if(!this['_mergeNestedSuggestions']&&_0x24d597['containsRangeInObject'])continue;return _0x6dbb6;}if(_0x413839==_0x6dbb6[_0x5a33('0x68')]){const _0x2a9544=_0x6dbb6[_0x5a33('0x39')]();return _0x2a9544[_0x5a33('0x7b')]['isEqual'](_0x2658a1[_0x5a33('0x3d')])?this[_0x5a33('0xab')](_0x6dbb6,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x2658a1['start'],_0x2a9544[_0x5a33('0x3d')])):this['_setSuggestionRange'](_0x6dbb6,this['_model'][_0x5a33('0x11')](_0x2a9544['start'],_0x2658a1['end'])),_0x6dbb6;}}const _0xc9ff82=_0x507ffc(),_0x15c951=_0x5efca9['id'],_0x464212=_0x413839?_0x5a33('0x120')+_0x413839:_0x5a33('0x13a'),_0x31da52=this[_0x5a33('0x3')]({'id':_0xc9ff82,'type':_0x464212,'createdAt':new Date(),'authorId':_0x15c951,'attributes':_0x357477});return this[_0x5a33('0x109')](_0x464212,_0xc9ff82,_0x15c951,_0x2658a1),_0x31da52;}[_0x5a33('0x7e')](_0xbd5e6a,_0x53b471='multi',_0x19c74e={}){const _0x68a1e8=this['editor'][_0x5a33('0x46')][_0x5a33('0xad')](_0x5a33('0x12a'))['me'],_0x23e4f5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x53b471,_0x5a33('0xd7'));for(const _0x30fa51 of this[_0x5a33('0xb7')]())if(_0x30fa51[_0x5a33('0x22')]['id']==_0x68a1e8['id']&&_0x5a33('0x13a')==_0x30fa51['type']&&_0x30fa51[_0x5a33('0x68')]==_0x53b471&&(_0x23e4f5(_0x30fa51[_0x5a33('0xd')](),_0xbd5e6a)||_0x23e4f5(_0xbd5e6a,_0x30fa51[_0x5a33('0xd')]()))){for(const _0x42e7f2 of _0xbd5e6a)_0x30fa51[_0x5a33('0x8d')](_0x42e7f2);return _0x30fa51;}if(this[_0x5a33('0x9')])for(const _0xc7f152 of _0xbd5e6a)for(const {suggestion:_0xfaa10c,meta:_0x3bc790}of this['_findSuggestions'](_0xc7f152,_0x5a33('0x13a'))){if(!_0x3bc790['isOwn'])continue;let _0x14bed7=!0x0;for(const _0x1a9676 of _0xfaa10c['getRanges']())for(const _0x3444b9 of _0xbd5e6a)if(!_0x1a9676[_0x5a33('0xfb')](_0x3444b9)){_0x14bed7=!0x1;break;}if(_0x14bed7)return _0xfaa10c;}const _0x4e54e7=_0x507ffc(),_0x391809=_0x68a1e8['id'],_0x3b0d76='insertion:'+_0x53b471,_0x136934=this[_0x5a33('0x3')]({'id':_0x4e54e7,'type':_0x3b0d76,'createdAt':new Date(),'authorId':_0x391809,'attributes':_0x19c74e});for(const _0x2cd5a7 of _0xbd5e6a)this[_0x5a33('0x109')](_0x3b0d76,_0x4e54e7,_0x391809,_0x2cd5a7,_0x2964dc[_0x5a33('0x10e')]());return _0x136934;}[_0x5a33('0xf8')](_0x21b15e,_0x3bc41d,_0x21af85=null,_0x3a0c09={}){if(_0x21af85=_0x21af85||$t(_0x3bc41d),_0x21b15e[_0x5a33('0x5d')])return null;if(_0x5a33('0xb9')===this[_0x5a33('0x129')]){const _0x2f264f=this[_0x5a33('0xd4')]['getSuggestionCallback'](_0x5a33('0x79'),_0x21af85,_0x5a33('0x122'));return this[_0x5a33('0x8b')](()=>_0x2f264f([_0x21b15e],_0x3bc41d,_0x3a0c09)),null;}const _0x355019=this[_0x5a33('0x10f')][_0x5a33('0x46')][_0x5a33('0xad')]('Users')['me'],_0x44500d=[];if(_0x5a33('0x10')!==this['_trackFormatChanges'])for(const {suggestion:_0x25de70,meta:_0x2522fe}of this[_0x5a33('0x1d')](_0x21b15e,_0x5a33('0x13a')))_0x2522fe[_0x5a33('0xff')]&&!_0x2522fe[_0x5a33('0xc8')]&&_0x44500d['push'](..._0x25de70[_0x5a33('0xd')]());const _0x34fcdc=function(_0x1225b4,_0x4adea6){const _0x334a86=[];for(const _0x2099b5 of _0x4adea6){const _0xf780cc=_0x1225b4[_0x5a33('0xb2')](_0x2099b5);_0xf780cc&&_0x334a86[_0x5a33('0x84')](_0xf780cc);}return _0x334a86;}(_0x21b15e,_0x44500d),_0xcdd791=function(_0x386817,_0x18a730){const _0x4afc7c=[_0x386817];for(const _0x1fcab8 of _0x18a730){let _0x36e884=0x0;for(;_0x36e884<_0x4afc7c[_0x5a33('0x73')];){const _0x1915b1=_0x4afc7c[_0x36e884][_0x5a33('0xcc')](_0x1fcab8);_0x4afc7c[_0x5a33('0x102')](_0x36e884,0x1,..._0x1915b1),_0x36e884+=_0x1915b1['length'];}}return _0x4afc7c;}(_0x21b15e,_0x44500d);_0x34fcdc['length']&&this['_model']['change'](()=>{for(const _0x1fba50 of _0x34fcdc){const _0x205a7c=this[_0x5a33('0xd4')][_0x5a33('0x56')](_0x5a33('0x79'),_0x21af85,_0x5a33('0x122'));this[_0x5a33('0x8b')](()=>_0x205a7c([_0x1fba50],_0x3bc41d,_0x3a0c09));}});for(const _0x2159e4 of _0xcdd791){let _0x27af03=null,_0x4df5dc=_0x2159e4['start'],_0x331499=_0x2159e4['end'];for(const {suggestion:_0x30578a,meta:_0x1e51ae}of this[_0x5a33('0x1d')](_0x2159e4,_0x5a33('0x79'))){if(!_0x1e51ae[_0x5a33('0xff')])continue;if(_0x30578a[_0x5a33('0x68')]!=_0x21af85)continue;const _0x90a484=_0x30578a['getFirstRange']();if(_0x90a484[_0x5a33('0xfb')](_0x2159e4,!0x0))return null;_0x4df5dc=_0x4df5dc[_0x5a33('0x12c')](_0x90a484[_0x5a33('0x7b')])?_0x4df5dc:_0x90a484[_0x5a33('0x7b')],_0x331499=_0x331499['isAfter'](_0x90a484[_0x5a33('0x3d')])?_0x331499:_0x90a484[_0x5a33('0x3d')],_0x27af03?_0x90a484[_0x5a33('0x7b')][_0x5a33('0x12c')](_0x27af03[_0x5a33('0x39')]()[_0x5a33('0x7b')])?(_0x27af03[_0x5a33('0xfe')](),_0x27af03=_0x30578a):_0x30578a[_0x5a33('0xfe')]():_0x27af03=_0x30578a;}const _0x1bf428=this['_model'][_0x5a33('0x11')](_0x4df5dc,_0x331499);if(_0x27af03)this['_setSuggestionRange'](_0x27af03,_0x1bf428);else{const _0x1f358d=_0x507ffc(),_0x176c72=_0x355019['id'];this['_setSuggestionData']({'id':_0x1f358d,'type':_0x5a33('0x69')+_0x21af85,'data':_0x3bc41d,'createdAt':new Date(),'authorId':_0x176c72,'attributes':_0x3a0c09}),this['_addSuggestionMarker']('formatInline:'+_0x21af85,_0x1f358d,_0x176c72,_0x1bf428);}}return null;}['markBlockFormat'](_0x146e08,_0x4c8347,_0xfd69d2=[],_0x409586=null,_0x1a7ac8={}){_0x4c8347[_0x5a33('0xd6')]||(_0x4c8347['formatGroupId']=_0x4c8347[_0x5a33('0x138')]),_0x4c8347['multipleBlocks']=_0x146e08['is'](_0x5a33('0x12d')),_0x409586=_0x409586||$t(_0x4c8347);const _0x2ccf36=_0xfd69d2[_0x5a33('0x119')](_0x3a59b7=>Rt(_0x3a59b7,this[_0x5a33('0xb4')])),_0x15d6e9=_0x146e08['is'](_0x5a33('0x12d'))?_0x146e08:Rt(_0x146e08,this[_0x5a33('0xb4')]);if(_0x5a33('0xb9')===this[_0x5a33('0x129')]){const _0x3b708d=this[_0x5a33('0xd4')][_0x5a33('0x56')]('formatBlock',_0x409586,_0x5a33('0x122'));return this['forceDefaultExecution'](()=>_0x3b708d([_0x15d6e9],_0x4c8347,_0x1a7ac8)),null;}_0x2ccf36[_0x5a33('0x84')](_0x15d6e9);let _0x3befd9=!0x0;for(const _0x363b02 of _0x2ccf36)if(!this[_0x5a33('0x52')](_0x363b02)){_0x3befd9=!0x1;break;}if(_0x3befd9&&_0x5a33('0x10')!==this['_trackFormatChanges']){const _0x51dffa=this['_suggestionFactory'][_0x5a33('0x56')](_0x5a33('0x35'),_0x409586,_0x5a33('0x122'));return this['forceDefaultExecution'](()=>_0x51dffa([_0x15d6e9],_0x4c8347,_0x1a7ac8)),null;}let _0x488ec9=null,_0x90ad4f=_0x15d6e9[_0x5a33('0x7b')],_0x4fe3f1=_0x15d6e9['end'];for(const {suggestion:_0x46c3c3,meta:_0x5cfd58}of this['_findSuggestions'](_0x15d6e9,'formatBlock')){if(!_0x5cfd58[_0x5a33('0xff')]||_0x5cfd58['isNextTo']||_0x5cfd58['containsRangeInObject']||_0x5cfd58['isInsideObject'])continue;if(_0x46c3c3[_0x5a33('0x115')][_0x5a33('0xd6')]!=_0x4c8347[_0x5a33('0xd6')])continue;const _0x296511=_0x46c3c3[_0x5a33('0x39')]();if(_0x46c3c3[_0x5a33('0x68')]==_0x409586){if(_0x296511['containsRange'](_0x15d6e9,!0x0))return null;_0x90ad4f=_0x90ad4f[_0x5a33('0x12c')](_0x296511[_0x5a33('0x7b')])?_0x90ad4f:_0x296511['start'],_0x4fe3f1=_0x4fe3f1['isAfter'](_0x296511[_0x5a33('0x3d')])?_0x4fe3f1:_0x296511[_0x5a33('0x3d')],_0x488ec9?_0x296511[_0x5a33('0x7b')][_0x5a33('0x12c')](_0x488ec9[_0x5a33('0x39')]()[_0x5a33('0x7b')])?(_0x488ec9[_0x5a33('0xfe')](),_0x488ec9=_0x46c3c3):_0x46c3c3['removeMarkers']():_0x488ec9=_0x46c3c3;}else{const _0x2580b8=_0x15d6e9[_0x5a33('0xb2')](_0x296511);this[_0x5a33('0x3a')](_0x46c3c3,_0x2580b8);}}const _0x398dd0=this[_0x5a33('0x10f')][_0x5a33('0x46')][_0x5a33('0xad')](_0x5a33('0x12a'))['me'],_0xd1f923=_0x507ffc(),_0x4273df=_0x398dd0['id'];if(_0x488ec9)return this[_0x5a33('0xab')](_0x488ec9,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x90ad4f,_0x4fe3f1)),_0x488ec9;{const _0x1b34bf=this[_0x5a33('0x3')]({'id':_0xd1f923,'type':_0x5a33('0xa1')+_0x409586,'data':_0x4c8347,'createdAt':new Date(),'authorId':_0x4273df,'attributes':_0x1a7ac8});return this[_0x5a33('0x109')]('formatBlock:'+_0x409586,_0xd1f923,_0x4273df,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x90ad4f,_0x4fe3f1)),_0x1b34bf;}}[_0x5a33('0x6e')](_0x5c378f,_0x2fe2d9,_0xb489d6=[],_0x5d22e0=null,_0x137793={}){_0x2fe2d9[_0x5a33('0xd6')]||(_0x2fe2d9[_0x5a33('0xd6')]=_0x2fe2d9['commandName']);const _0x5f2ec=_0x5c378f[0x0];_0x2fe2d9['multipleBlocks']=_0x5f2ec['is'](_0x5a33('0x12d')),_0x5d22e0=_0x5d22e0||$t(_0x2fe2d9);const _0x4f6ff7=_0xb489d6[_0x5a33('0x119')](_0x1957c3=>Rt(_0x1957c3,this['_model'])),_0xedb0f=_0x5f2ec['is'](_0x5a33('0x12d'))?_0x5c378f:_0x5c378f[_0x5a33('0x119')](_0x421af0=>Rt(_0x421af0,this[_0x5a33('0xb4')]));if('never'===this[_0x5a33('0x129')]){const _0x2470fa=this[_0x5a33('0xd4')][_0x5a33('0x56')](_0x5a33('0x35'),_0x5d22e0,_0x5a33('0x122'));return this[_0x5a33('0x8b')](()=>_0x2470fa(_0xedb0f,_0x2fe2d9,_0x137793)),null;}_0x4f6ff7[_0x5a33('0x84')](..._0xedb0f);let _0x2c443f=!0x0;for(const _0x3f563f of _0x4f6ff7)if(!this['_rangeIsInLocalUserInsertion'](_0x3f563f)){_0x2c443f=!0x1;break;}if(_0x2c443f&&_0x5a33('0x10')!==this['_trackFormatChanges']){const _0x18de38=this['_suggestionFactory']['getSuggestionCallback'](_0x5a33('0x35'),_0x5d22e0,_0x5a33('0x122'));return this[_0x5a33('0x8b')](()=>_0x18de38(_0xedb0f,_0x2fe2d9,_0x137793)),null;}const _0x505cd9=this[_0x5a33('0x10f')][_0x5a33('0x46')][_0x5a33('0xad')]('Users')['me'];for(const _0x40b287 of this[_0x5a33('0xb7')]()){if(_0x40b287[_0x5a33('0x22')]['id']!=_0x505cd9['id'])continue;if('formatBlock'!=_0x40b287['type']||_0x40b287[_0x5a33('0x115')]['formatGroupId']!=_0x2fe2d9[_0x5a33('0xd6')])continue;const _0x47d231=_0x40b287[_0x5a33('0x68')]==_0x5d22e0;for(let _0x2f1f97=0x0;_0x2f1f97<_0xedb0f[_0x5a33('0x73')];_0x2f1f97++){const _0x90cedd=_0xedb0f[_0x2f1f97];for(const _0x4f82b0 of _0x40b287[_0x5a33('0xe9')]()){const _0x5a6f64=_0x4f82b0['getRange']();if(_0x90cedd[_0x5a33('0x38')](_0x5a6f64)){_0x47d231?(_0xedb0f['splice'](_0x2f1f97,0x1),_0x2f1f97--):_0x40b287[_0x5a33('0xb8')](_0x4f82b0[_0x5a33('0x100')]);break;}}}}if(0x0==_0xedb0f[_0x5a33('0x73')])return null;const _0x1e116d=this[_0x5a33('0xd4')][_0x5a33('0x56')](_0x5a33('0x35'),_0x5d22e0,_0x5a33('0xd7'));for(const _0x4e738e of this[_0x5a33('0xb7')]())if(_0x4e738e[_0x5a33('0x22')]['id']==_0x505cd9['id']&&_0x5a33('0x35')==_0x4e738e['type']&&_0x4e738e[_0x5a33('0x115')]['formatGroupId']==_0x2fe2d9[_0x5a33('0xd6')]&&_0x4e738e[_0x5a33('0x68')]==_0x5d22e0&&(_0x1e116d(_0x4e738e[_0x5a33('0xd')](),_0xedb0f)||_0x1e116d(_0xedb0f,_0x4e738e[_0x5a33('0xd')]()))){for(const _0x3e7d83 of _0xedb0f)_0x4e738e[_0x5a33('0x8d')](_0x3e7d83);return _0x4e738e;}const _0x51833d=_0x507ffc(),_0x31d9e5=_0x505cd9['id'],_0x438c17=_0x5a33('0xa1')+_0x5d22e0,_0x47dff9=this[_0x5a33('0x3')]({'id':_0x51833d,'type':_0x438c17,'data':_0x2fe2d9,'createdAt':new Date(),'authorId':_0x31d9e5,'attributes':_0x137793});for(const _0x3eb534 of _0xedb0f)this['_addSuggestionMarker'](_0x438c17,_0x51833d,_0x31d9e5,_0x3eb534,_0x2964dc[_0x5a33('0x10e')]());return _0x47dff9;}[_0x5a33('0x10a')](_0x12f090,_0x4a6af0=null,_0x18d6a1={}){if(_0x12f090[_0x5a33('0x5d')])return null;const _0x4cdf53=this[_0x5a33('0x10f')][_0x5a33('0x46')]['get'](_0x5a33('0x12a'))['me'],_0x4731e3=new _0x503ccc(_0x12f090[_0x5a33('0x7b')],_0x12f090[_0x5a33('0x3d')]);for(const {suggestion:_0x22bda1,meta:_0x2d7ea4}of this['_findSuggestions'](_0x4731e3,_0x5a33('0x13a')))if(_0x2d7ea4[_0x5a33('0xff')]&&!_0x2d7ea4['isNextTo']){if(_0x22bda1[_0x5a33('0x8c')]){const _0x371681=_0x22bda1[_0x5a33('0xd')]()[_0x5a33('0x88')](_0xf93d97=>'$graveyard'!=_0xf93d97['root'][_0x5a33('0xf0')]);_0x371681[_0x5a33('0xf7')](_0x4591e8=>_0x4731e3[_0x5a33('0xfb')](_0x4591e8,!0x0))&&_0x22bda1[_0x5a33('0x19')]();if(_0x371681[_0x5a33('0x91')](_0x23854a=>_0x23854a['containsRange'](_0x4731e3,!0x0))){const _0x4377df=this[_0x5a33('0xd4')][_0x5a33('0x56')](_0x5a33('0x86'),_0x4a6af0,'accept');return this[_0x5a33('0x8b')](()=>_0x4377df([_0x4731e3],null,_0x18d6a1)),null;}}else{const _0x55ea1b=_0x4731e3[_0x5a33('0xb2')](_0x22bda1[_0x5a33('0x39')]());null!==_0x55ea1b&&_0x22bda1['_onDiscard']([_0x55ea1b],null,_0x18d6a1);}}if(_0x4731e3[_0x5a33('0x96')](),_0x4731e3['isCollapsed']||'$graveyard'==_0x4731e3['root']['rootName'])return null;let _0x4ff6b0=null,_0x27e8a5=_0x4731e3[_0x5a33('0x7b')],_0x2a83d8=_0x4731e3[_0x5a33('0x3d')];for(const {suggestion:_0x253321,meta:_0x577fee}of this['_findSuggestions'](_0x4731e3,'deletion'))if(_0x577fee[_0x5a33('0xff')]){if(_0x253321['isMultiRange']&&this['_mergeNestedSuggestions']){let _0x502ffb=!0x0;for(const _0x30a245 of _0x253321['getRanges']()){if(_0x30a245['containsRange'](_0x4731e3,!0x0))return _0x253321;_0x4731e3['containsRange'](_0x30a245)||(_0x502ffb=!0x1);}_0x502ffb&&_0x253321[_0x5a33('0x19')]();}else{const _0x44dec8=_0x253321[_0x5a33('0x39')]();if(_0x44dec8[_0x5a33('0xfb')](_0x4731e3,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x577fee[_0x5a33('0xc5')])continue;return _0x253321;}_0x27e8a5=_0x27e8a5[_0x5a33('0x12c')](_0x44dec8[_0x5a33('0x7b')])?_0x27e8a5:_0x44dec8[_0x5a33('0x7b')],_0x2a83d8=_0x2a83d8[_0x5a33('0x44')](_0x44dec8[_0x5a33('0x3d')])?_0x2a83d8:_0x44dec8[_0x5a33('0x3d')],_0x4ff6b0?_0x44dec8[_0x5a33('0x7b')][_0x5a33('0x12c')](_0x4ff6b0['getFirstRange']()[_0x5a33('0x7b')])?(_0x4ff6b0[_0x5a33('0xfe')](),_0x4ff6b0=_0x253321):_0x253321['removeMarkers']():_0x4ff6b0=_0x253321;}}if(_0x4ff6b0)return this[_0x5a33('0xab')](_0x4ff6b0,this['_model'][_0x5a33('0x11')](_0x27e8a5,_0x2a83d8)),_0x4ff6b0;{const _0x5acf34=_0x507ffc(),_0x2ca76d=this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x27e8a5,_0x2a83d8),_0x2f67b5=_0x4cdf53['id'],_0x27a7a3=_0x4a6af0?_0x5a33('0xdb')+_0x4a6af0:'deletion',_0x10d9b2=this[_0x5a33('0x3')]({'id':_0x5acf34,'type':_0x27a7a3,'createdAt':new Date(),'authorId':_0x2f67b5,'attributes':_0x18d6a1});return this[_0x5a33('0x109')](_0x27a7a3,_0x5acf34,_0x2f67b5,_0x2ca76d),_0x10d9b2;}}[_0x5a33('0xc2')](_0x269279,_0x3f3698='multi',_0x572d90={}){const _0x2f9795=this[_0x5a33('0x10f')][_0x5a33('0x46')][_0x5a33('0xad')](_0x5a33('0x12a'))['me'],_0x4eafbe=_0x269279[_0x5a33('0x119')](_0x2194c7=>new _0x503ccc(_0x2194c7['start'],_0x2194c7[_0x5a33('0x3d')])),_0x2e7e2f=new Set();for(const _0x157d92 of _0x4eafbe)for(const {suggestion:_0x351ce8,meta:_0x4569a6}of this[_0x5a33('0x1d')](_0x157d92,_0x5a33('0x13a')))_0x4569a6[_0x5a33('0xff')]&&!_0x4569a6[_0x5a33('0x41')]&&_0x2e7e2f[_0x5a33('0x81')](_0x351ce8);for(const _0x2d3554 of _0x2e7e2f)if(_0x2d3554['isMultiRange']){const _0x1a1d8f=_0x2d3554[_0x5a33('0xd')]();(!_0x2d3554['attributes']||!_0x2d3554[_0x5a33('0x18')][_0x5a33('0xcb')])&&(_0x1a1d8f[_0x5a33('0xf7')](_0x2bb8ea=>_0x4eafbe[_0x5a33('0x91')](_0x34e49f=>_0x34e49f[_0x5a33('0xfb')](_0x2bb8ea,!0x0)))&&_0x2d3554[_0x5a33('0x19')]());if(_0x4eafbe[_0x5a33('0xf7')](_0x19b076=>_0x1a1d8f[_0x5a33('0x91')](_0x4615f9=>_0x4615f9[_0x5a33('0xfb')](_0x19b076,!0x0)))){const _0x4888d1=this[_0x5a33('0xd4')][_0x5a33('0x56')](_0x5a33('0x86'),_0x3f3698,_0x5a33('0x122'));return this['forceDefaultExecution'](()=>_0x4888d1(_0x269279,null,_0x572d90)),null;}}else{const _0x17d570=_0x2d3554['getFirstRange']();_0x4eafbe[_0x5a33('0x91')](_0x460e14=>_0x460e14[_0x5a33('0xfb')](_0x17d570,!0x0))&&_0x2d3554[_0x5a33('0x19')]();if(_0x4eafbe[_0x5a33('0xf7')](_0x47ce81=>_0x17d570[_0x5a33('0xfb')](_0x47ce81,!0x0))){const _0x3fc412=this[_0x5a33('0xd4')]['getSuggestionCallback']('deletion',_0x3f3698,'accept');return this[_0x5a33('0x8b')](()=>_0x3fc412(_0x4eafbe,null,_0x572d90)),null;}}const _0x1e0a87=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f3698,_0x5a33('0xd7'));let _0x64f07a=null;for(const _0x2f0d88 of this['getSuggestions']())if(_0x2f0d88[_0x5a33('0x22')]['id']==_0x2f9795['id']&&_0x2f0d88[_0x5a33('0xe5')]&&_0x5a33('0x86')==_0x2f0d88[_0x5a33('0x9a')]&&_0x2f0d88[_0x5a33('0x68')]==_0x3f3698&&(_0x1e0a87(_0x2f0d88[_0x5a33('0xd')](),_0x4eafbe)||_0x1e0a87(_0x4eafbe,_0x2f0d88[_0x5a33('0xd')]()))){if(_0x64f07a){if(_0x2f0d88[_0x5a33('0x117')]&&_0x2f0d88[_0x5a33('0x117')][_0x5a33('0x73')])continue;for(const _0x4db2d5 of _0x2f0d88['getRanges']())_0x64f07a[_0x5a33('0x29')](_0x4db2d5)||_0x64f07a[_0x5a33('0x8d')](_0x4db2d5);_0x2f0d88[_0x5a33('0xfe')]();}else{_0x64f07a=_0x2f0d88;for(const _0xf10478 of _0x4eafbe)_0x2f0d88[_0x5a33('0x29')](_0xf10478)||_0x2f0d88[_0x5a33('0x8d')](_0xf10478);}}if(_0x64f07a)return _0x64f07a;_0x2e7e2f[_0x5a33('0x43')]();for(const _0x10c186 of _0x4eafbe)for(const {suggestion:_0x2845c7,meta:_0xd25a62}of this[_0x5a33('0x1d')](_0x10c186,'deletion'))_0xd25a62[_0x5a33('0xff')]&&_0x2e7e2f[_0x5a33('0x81')](_0x2845c7);for(const _0x51b878 of _0x2e7e2f){const _0x11b190=_0x51b878[_0x5a33('0xd')]();if(!_0x572d90||!_0x572d90[_0x5a33('0xcb')]){if(_0x4eafbe[_0x5a33('0xf7')](_0x3dedd4=>_0x11b190[_0x5a33('0x91')](_0x2dd334=>_0x2dd334[_0x5a33('0xfb')](_0x3dedd4,!0x0))))return _0x51b878;}(!_0x51b878[_0x5a33('0x18')]||!_0x51b878[_0x5a33('0x18')]['skipNestingCheck'])&&(_0x11b190['every'](_0x555617=>_0x4eafbe[_0x5a33('0x91')](_0x59509b=>_0x59509b['containsRange'](_0x555617,!0x0)))&&_0x51b878['discard']());}const _0x4ff0c0=_0x507ffc(),_0xf43420=_0x2f9795['id'],_0x17525c=_0x5a33('0xdb')+_0x3f3698,_0x214c62=this['_setSuggestionData']({'id':_0x4ff0c0,'type':_0x17525c,'createdAt':new Date(),'authorId':_0xf43420,'attributes':_0x572d90});for(const _0x359889 of _0x4eafbe)_0x359889[_0x5a33('0x96')](),_0x359889[_0x5a33('0x5d')]||_0x5a33('0x57')==_0x359889[_0x5a33('0xc9')][_0x5a33('0xf0')]||this[_0x5a33('0x109')](_0x17525c,_0x4ff0c0,_0xf43420,_0x359889,_0x2964dc['getMultiRangeId']());return _0x214c62;}[_0x5a33('0xab')](_0x13e76f,_0x546740){const _0x514598=_0x13e76f[_0x5a33('0xd5')]();this['_model'][_0x5a33('0x92')](_0x8f5c05=>{_0x8f5c05[_0x5a33('0x12e')](_0x514598,{'range':_0x546740});});}[_0x5a33('0x77')](_0x47ab23){const _0x206bd9=_0x47ab23['id'],_0x444b93=this[_0x5a33('0x10f')][_0x5a33('0x8a')][_0x5a33('0xad')](_0x5a33('0x111'));this['_commentsRepository'][_0x5a33('0x2b')](_0x206bd9)||this['_commentsRepository'][_0x5a33('0x127')]({'channelId':_0x444b93,'threadId':_0x206bd9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5b7955=this['_commentsRepository'][_0x5a33('0xaf')](_0x206bd9);_0x5b7955[_0x5a33('0x82')]('isRemovable'),_0x5b7955[_0x5a33('0xa7')]=!0x1,_0x47ab23[_0x5a33('0x117')]=_0x5b7955;}[_0x5a33('0x8')](_0x54e73b,_0x5bea6,_0x10e3b1,_0x585eb8){if(_0x54e73b[_0x5a33('0x9a')]!=_0x5bea6||_0x54e73b[_0x5a33('0x68')]!=_0x10e3b1||_0x54e73b[_0x5a33('0x13e')]['id']!=_0x585eb8)throw this[_0x5a33('0x10f')][_0x5a33('0x1')](_0x5a33('0x16')),new _0x52fb41('track-changes-suggestion-data-mismatch',this);}[_0x5a33('0x3a')](_0x4415ac,_0x42e036){const _0x383b2d=_0x4415ac['getFirstRange']();if(_0x42e036[_0x5a33('0x38')](_0x383b2d))_0x4415ac[_0x5a33('0xfe')]();else{if(_0x383b2d[_0x5a33('0xfb')](_0x42e036)){const _0x1cd201=this[_0x5a33('0xb4')][_0x5a33('0x126')](_0x42e036[_0x5a33('0x7b')][_0x5a33('0xec')],'end');this['_setSuggestionRange'](_0x4415ac,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x383b2d[_0x5a33('0x7b')],_0x1cd201));const _0xb6a539=_0x507ffc(),_0x114142=_0x4415ac[_0x5a33('0x13e')]['id'],_0x4b4f15=_0x4415ac[_0x5a33('0x9a')]+':'+_0x4415ac[_0x5a33('0x68')];this[_0x5a33('0x3')]({'id':_0xb6a539,'type':_0x4b4f15,'createdAt':new Date(),'authorId':_0x114142,'data':_0x4415ac[_0x5a33('0x115')],'attributes':_0x4415ac[_0x5a33('0x18')]});const _0x40e7be=this['_model'][_0x5a33('0x126')](_0x42e036[_0x5a33('0x3d')][_0x5a33('0x6')],_0x5a33('0xe8')),_0x415742=this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x40e7be,_0x383b2d[_0x5a33('0x3d')]);this[_0x5a33('0x109')](_0x4b4f15,_0xb6a539,_0x114142,_0x415742);}else{if(_0x383b2d[_0x5a33('0x4')](_0x42e036[_0x5a33('0x7b')])){const _0x56b869=this[_0x5a33('0xb4')]['createPositionAt'](_0x42e036['start'][_0x5a33('0xec')],_0x5a33('0x3d'));this[_0x5a33('0xab')](_0x4415ac,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x383b2d['start'],_0x56b869));}else{const _0x231c9e=this[_0x5a33('0xb4')][_0x5a33('0x126')](_0x42e036[_0x5a33('0x3d')]['parent'],_0x5a33('0xe8'));this[_0x5a33('0xab')](_0x4415ac,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x231c9e,_0x383b2d[_0x5a33('0x3d')]));}}}}['_rangeIsInLocalUserInsertion'](_0x28d353){for(const {suggestion:_0x73272f,meta:_0xd7c4c6}of this['_findSuggestions'](_0x28d353,_0x5a33('0x13a'))){if(!_0xd7c4c6['isOwn'])continue;const _0x1b19f7=_0x73272f[_0x5a33('0xd')]();for(const _0x226d54 of _0x1b19f7)if(!_0x28d353['getDifference'](_0x226d54)[_0x5a33('0x73')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x21a728){const _0x4d54b5=this[_0x5a33('0x10f')]['plugins']['get'](_0x5a33('0x12a'))[_0x5a33('0xb5')](_0x21a728);if(!_0x4d54b5)throw new _0x52fb41(_0x5a33('0xc6'),this);return _0x4d54b5;}[_0x5a33('0x42')](_0x34750a){const _0x4eaf12=this['editor']['plugins'][_0x5a33('0xad')]('Users'),_0x356340=_0x9b0fcf(_0x5a33('0xa5')+_0x34750a),_0x2e21d3=_0x4eaf12[_0x5a33('0xb5')](_0x356340);return _0x2e21d3||_0x4eaf12[_0x5a33('0x137')]({'id':_0x356340,'name':_0x34750a});}[_0x5a33('0x12b')](_0x2253b2,_0x5b7f65,_0x5d914d,_0x173829,_0x11d6f2){const _0x4d24bd=this[_0x5a33('0x55')](_0x173829),_0x819337=this[_0x5a33('0xd4')][_0x5a33('0x121')](_0x2253b2,_0x5b7f65,_0x5d914d,_0x4d24bd,_0x11d6f2,_0x3f0f85=>this[_0x5a33('0x36')](_0x5d914d,{'attributes':_0x3f0f85}));return this['listenTo'](_0x819337,_0x5a33('0x122'),()=>{this[_0x5a33('0x36')](_0x5d914d,{'state':_0x5a33('0xed')});},{'priority':_0x5a33('0xf3')}),this[_0x5a33('0xd9')](_0x819337,_0x5a33('0x19'),()=>{this[_0x5a33('0x36')](_0x5d914d,{'state':_0x5a33('0x59')});},{'priority':_0x5a33('0xf3')}),this[_0x5a33('0x10d')][_0x5a33('0xc1')](_0x5d914d,_0x819337),this[_0x5a33('0xea')][_0x5a33('0xc1')](_0x819337,_0x5a33('0x134')),_0x819337;}[_0x5a33('0xaa')](_0x3e2039){const _0x664a7d=_0x3e2039[_0x5a33('0xef')](':');return{'group':_0x664a7d[0x0],'type':_0x664a7d[0x1],'subType':_0x664a7d['length']>=0x5?_0x664a7d[0x2]:null,'id':_0x664a7d[_0x5a33('0x73')]<0x5?_0x664a7d[0x2]:_0x664a7d[0x3],'authorId':_0x664a7d['length']<0x5?_0x664a7d[0x3]:_0x664a7d[0x4],'markerCount':0x6==_0x664a7d['length']?_0x664a7d[0x5]:null};}[_0x5a33('0xde')](_0x30611c,_0x137442,_0x43e60b){const _0x11b91e=_0x30611c[_0x5a33('0x39')](),_0x139634=_0x11b91e[_0x5a33('0x7b')],_0x3babc3=_0x11b91e[_0x5a33('0x3d')];this[_0x5a33('0xab')](_0x30611c,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x139634,_0x137442));const _0x10a1de=_0x507ffc(),_0x283439=_0x30611c[_0x5a33('0x13e')]['id'],_0x2470fd=_0x30611c['type']+(_0x30611c[_0x5a33('0x68')]?':'+_0x30611c[_0x5a33('0x68')]:'');this[_0x5a33('0x3')]({'id':_0x10a1de,'type':_0x2470fd,'createdAt':new Date(),'authorId':_0x283439,'originalSuggestionId':_0x30611c['id'],'attributes':_0x30611c[_0x5a33('0x18')],'data':_0x30611c['data']}),_0x5a33('0x35')==_0x30611c[_0x5a33('0x9a')]&&(_0x43e60b=this[_0x5a33('0xb4')]['createPositionBefore'](_0x43e60b['parent'])),this[_0x5a33('0x109')](_0x2470fd,_0x10a1de,_0x283439,this[_0x5a33('0xb4')]['createRange'](_0x43e60b,_0x3babc3));}[_0x5a33('0x1d')](_0x3b502f,_0x5328fe=null){const _0x3c4623=[],_0x22d9cc=this['_model'][_0x5a33('0xeb')],_0xa400c2=this[_0x5a33('0x10f')][_0x5a33('0x46')][_0x5a33('0xad')](_0x5a33('0x12a'))['me'];for(const _0x1ba4a0 of this[_0x5a33('0xb7')]())if(_0x1ba4a0[_0x5a33('0xe5')]&&(!_0x5328fe||_0x1ba4a0[_0x5a33('0x9a')]==_0x5328fe))for(const _0x28e96f of _0x1ba4a0['getRanges']()){const _0x4b0f93=_0x3b502f['start'][_0x5a33('0x38')](_0x28e96f[_0x5a33('0x3d')])||_0x3b502f[_0x5a33('0x3d')][_0x5a33('0x38')](_0x28e96f[_0x5a33('0x7b')]);if(_0x4b0f93||_0x3b502f[_0x5a33('0xb2')](_0x28e96f)){const _0x27454e=_0x3b502f[_0x5a33('0xfb')](_0x28e96f)&&Bt(_0x22d9cc,_0x28e96f[_0x5a33('0x7b')],_0x3b502f),_0x1cdda6=_0x28e96f[_0x5a33('0xfb')](_0x3b502f)&&Bt(_0x22d9cc,_0x3b502f['start'],_0x28e96f);_0x3c4623['push']({'suggestion':_0x1ba4a0,'meta':{'isOwn':_0xa400c2==_0x1ba4a0[_0x5a33('0x22')],'isNextTo':_0x4b0f93,'isInsideObject':_0x27454e,'containsRangeInObject':_0x1cdda6}});break;}}return _0x3c4623;}[_0x5a33('0x109')](_0x52a8f0,_0x492e30,_0x2b3e9c,_0x5b1952,_0x2d3bf4){this[_0x5a33('0xb4')][_0x5a33('0x92')](_0x5a24ba=>{let _0x561364=_0x5a33('0x12')+_0x52a8f0+':'+_0x492e30+':'+_0x2b3e9c;_0x2d3bf4&&(_0x561364=_0x561364+':'+_0x2d3bf4),_0x5a24ba[_0x5a33('0xcd')](_0x561364,{'range':_0x5b1952,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a33('0x83')](_0x134e6a){const _0x4df878=_0x134e6a[_0x5a33('0x63')],_0x3f0ab6=_0x134e6a[_0x5a33('0x124')];_0x134e6a[_0x5a33('0x63')]=null,null!=_0x4df878&&(_0x4df878[_0x5a33('0x124')]=null),_0x134e6a[_0x5a33('0x124')]=null,null!=_0x3f0ab6&&(_0x3f0ab6[_0x5a33('0x63')]=null),_0x5a33('0x60')==this['_suggestionState'][_0x5a33('0xad')](_0x134e6a)&&(this[_0x5a33('0xea')][_0x5a33('0xc1')](_0x134e6a,_0x5a33('0xf5')),this[_0x5a33('0x78')](_0x5a33('0x85'),_0x134e6a,_0x4df878,_0x3f0ab6));}[_0x5a33('0x3')](_0x508432){const _0x2e49b3=_0x508432['id'],_0xc0e3cb=this[_0x5a33('0xce')](_0x508432);if(this[_0x5a33('0x4c')]&&this[_0x5a33('0x4c')][_0x5a33('0x54')]){const _0x1deaae=this['editor']['plugins'][_0x5a33('0xad')](_0x5a33('0x58')),_0x31ba32=_0xc0e3cb[_0x5a33('0x94')],_0x1ce05b=_0xc0e3cb[_0x5a33('0x68')]?_0xc0e3cb[_0x5a33('0x9a')]+':'+_0xc0e3cb[_0x5a33('0x68')]:_0xc0e3cb[_0x5a33('0x9a')],_0x32e664=this['editor'][_0x5a33('0x67')],_0x580c89=_0x1deaae['add'](_0x2463b2(_0x32e664,_0x5a33('0xd1'))),_0x177072={'id':_0x2e49b3,'type':_0x1ce05b,'hasComments':_0x31ba32,'data':_0x508432['data']||null,'originalSuggestionId':_0x508432['originalSuggestionId']||null,'attributes':_0xc0e3cb[_0x5a33('0x18')]};this[_0x5a33('0x4c')][_0x5a33('0x54')](_0x177072)['then'](_0x722b32=>{_0xc0e3cb[_0x5a33('0x110')]=!0x0,_0x1deaae[_0x5a33('0xf1')](_0x580c89),_0x722b32&&_0x722b32[_0x5a33('0x74')]&&(this[_0x5a33('0x10d')][_0x5a33('0xad')](_0x2e49b3)[_0x5a33('0x74')]=_0x722b32[_0x5a33('0x74')]);})[_0x5a33('0x5e')](_0x33c272=>{throw _0x4469c8(_0x5a33('0x4f')),this[_0x5a33('0x10f')][_0x5a33('0x1e')][_0x5a33('0xba')]({'isUndoable':!0x1},()=>{_0xc0e3cb[_0x5a33('0x19')]();}),_0xc0e3cb[_0x5a33('0xe2')](),this['_suggestions'][_0x5a33('0xc7')](_0xc0e3cb['id']),this[_0x5a33('0xea')][_0x5a33('0xc7')](_0xc0e3cb),_0x33c272;});}return _0xc0e3cb;}[_0x5a33('0x36')](_0x6da8fe,_0x438ca7){const _0xdad543=this[_0x5a33('0x10f')][_0x5a33('0x46')][_0x5a33('0xad')]('PendingActions'),_0x8bf4e0=this[_0x5a33('0x12f')](_0x6da8fe);if(this[_0x5a33('0x4c')]&&this[_0x5a33('0x4c')]['updateSuggestion']){if(_0x8bf4e0[_0x5a33('0x110')]){const _0xd43603=_0xdad543[_0x5a33('0x81')](_0x2463b2(this[_0x5a33('0x10f')]['locale'],_0x5a33('0xd1')));this[_0x5a33('0x4c')]['updateSuggestion'](_0x6da8fe,_0x438ca7)['then'](()=>{_0xdad543[_0x5a33('0xf1')](_0xd43603);});}else _0x8bf4e0['on'](_0x5a33('0x104'),()=>{this[_0x5a33('0x36')](_0x6da8fe,_0x438ca7);});}}['_getSuggestionData'](_0x34d140){if(!this[_0x5a33('0x4c')]||!this[_0x5a33('0x4c')]['getSuggestion'])throw new _0x52fb41(_0x5a33('0xa9'),this);return this['_adapter'][_0x5a33('0x12f')](_0x34d140);}[_0x5a33('0x23')](_0x3a6176){const {id:_0x4795e4,type:_0x58dd48,subType:_0x2f17d6,authorId:_0x3354f0}=this[_0x5a33('0xaa')](_0x3a6176),_0x45aaf6=this[_0x5a33('0x10d')][_0x5a33('0xad')](_0x4795e4)||this[_0x5a33('0x12b')](_0x58dd48,_0x2f17d6,_0x4795e4,_0x3354f0,{});switch(this[_0x5a33('0x8')](_0x45aaf6,_0x58dd48,_0x2f17d6,_0x3354f0),this['_suggestionState'][_0x5a33('0xad')](_0x45aaf6)){case _0x5a33('0x134'):this[_0x5a33('0x33')](_0x4795e4)['then'](_0x21f492=>{let _0x570f6a=Promise[_0x5a33('0x30')]();_0x21f492['hasComments']&&(_0x570f6a=this[_0x5a33('0x17')]['fetchCommentThread']({'channelId':this[_0x5a33('0x10f')]['config']['get']('collaboration.channelId'),'threadId':_0x4795e4})),_0x570f6a[_0x5a33('0x87')](()=>{this[_0x5a33('0xce')](_0x21f492)[_0x5a33('0x110')]=!0x0;});}),this[_0x5a33('0xea')][_0x5a33('0xc1')](_0x45aaf6,_0x5a33('0x2f'));break;case _0x5a33('0xf5'):this['_updateSuggestionData'](_0x4795e4,{'state':_0x5a33('0x89')});case _0x5a33('0x27'):this[_0x5a33('0xea')][_0x5a33('0xc1')](_0x45aaf6,_0x5a33('0x60')),this[_0x5a33('0x78')](_0x5a33('0x15'),_0x45aaf6);break;case _0x5a33('0x60'):this[_0x5a33('0x78')](_0x5a33('0x135'),_0x45aaf6);}return _0x45aaf6[_0x5a33('0x2c')](_0x3a6176),_0x45aaf6;}[_0x5a33('0xf9')](_0x4ccbdd){const _0x2ff8fb=Array[_0x5a33('0xfa')](_0x4ccbdd)[_0x5a33('0x88')](_0x2bf1bd=>!_0x2bf1bd[_0x5a33('0x8c')]),_0x45ef56=this[_0x5a33('0xb7')]({'skipNotAttached':!0x0})[_0x5a33('0x88')](_0x12193d=>!_0x12193d['isMultiRange']),_0x2168e8=_0x45ef56['filter'](_0x4f2d42=>!_0x4ccbdd['has'](_0x4f2d42)),_0x368087=new Map(_0x45ef56[_0x5a33('0x119')](_0x30bfde=>[_0x30bfde,this['_suggestionFactory'][_0x5a33('0x56')](_0x30bfde[_0x5a33('0x9a')],_0x30bfde[_0x5a33('0x68')],'chain')])),_0xf0eec1=new Map(_0x45ef56[_0x5a33('0x119')](_0x5a4ebb=>[_0x5a4ebb,_0x5a4ebb[_0x5a33('0x39')]()])),_0x37354b=new Set(),_0x1483c2=new Set();for(let _0x3f20ad=0x0;_0x3f20ad<_0x2ff8fb['length'];_0x3f20ad++)_0x40256f(_0x2ff8fb[_0x3f20ad],_0x2ff8fb,_0x3f20ad+0x1);for(let _0x53d501=0x0;_0x53d501<_0x2ff8fb[_0x5a33('0x73')];_0x53d501++)_0x40256f(_0x2ff8fb[_0x53d501],_0x2168e8,0x0);for(let _0x4164eb=0x0;_0x4164eb<_0x2ff8fb[_0x5a33('0x73')];_0x4164eb++){const _0x178b28=_0x2ff8fb[_0x4164eb];!_0x1483c2['has'](_0x178b28)&&_0x178b28[_0x5a33('0x63')]&&(_0x178b28[_0x5a33('0x63')]['next']===_0x178b28&&(_0x178b28[_0x5a33('0x63')][_0x5a33('0x124')]=null),_0x178b28[_0x5a33('0x63')]=null),!_0x37354b[_0x5a33('0xf6')](_0x178b28)&&_0x178b28['next']&&(_0x178b28[_0x5a33('0x124')][_0x5a33('0x63')]===_0x178b28&&(_0x178b28[_0x5a33('0x124')][_0x5a33('0x63')]=null),_0x178b28[_0x5a33('0x124')]=null);}function _0x40256f(_0x50b3bf,_0x50b515,_0x1d083b){for(let _0x5bc273=_0x1d083b;_0x5bc273<_0x50b515['length'];_0x5bc273++){const _0x3bc347=_0x45610b(_0x50b3bf,_0x50b515[_0x5bc273]);_0x3bc347&&(_0x3bc347[0x0][_0x5a33('0x124')]=_0x3bc347[0x1],_0x3bc347[0x1][_0x5a33('0x63')]=_0x3bc347[0x0],_0x37354b['add'](_0x3bc347[0x0]),_0x1483c2[_0x5a33('0x81')](_0x3bc347[0x1]));}}function _0x45610b(_0x40bdd2,_0x52c91f){if(_0x40bdd2['author']['id']!==_0x52c91f[_0x5a33('0x22')]['id'])return null;const _0x14ae6f=_0x368087[_0x5a33('0xad')](_0x40bdd2)(_0x40bdd2,_0x52c91f,_0xf0eec1[_0x5a33('0xad')](_0x40bdd2),_0xf0eec1[_0x5a33('0xad')](_0x52c91f));if(!_0x14ae6f)return null;return _0x368087[_0x5a33('0xad')](_0x52c91f)(_0x40bdd2,_0x52c91f,_0xf0eec1[_0x5a33('0xad')](_0x40bdd2),_0xf0eec1['get'](_0x52c91f))?_0x14ae6f[0x1][_0x5a33('0x117')]&&_0x14ae6f[0x1]['commentThread']['length']?null:_0x14ae6f:null;}}['_joinWithAdjacentSuggestions'](_0x55966c){const _0x4b56c1=Array[_0x5a33('0xfa')](_0x55966c),_0xdf8efe=this[_0x5a33('0xb7')]({'skipNotAttached':!0x0}),_0xb24766=_0xdf8efe[_0x5a33('0x88')](_0x49dfbd=>!_0x55966c['has'](_0x49dfbd)),_0x191dd9=new Map(_0x4b56c1[_0x5a33('0x119')](_0x24b27a=>[_0x24b27a,this[_0x5a33('0xd4')][_0x5a33('0x56')](_0x24b27a['type'],_0x24b27a[_0x5a33('0x68')],_0x5a33('0xd7'))])),_0x539ea1=new Map(_0xdf8efe['map'](_0x181221=>[_0x181221,_0x181221['getRanges']()]));for(let _0x24a1f0=0x0;_0x24a1f0<_0x4b56c1[_0x5a33('0x73')];_0x24a1f0++){if(_0x3ee465(this,_0x4b56c1[_0x24a1f0],_0x4b56c1,_0x24a1f0+0x1))return!0x0;}for(let _0x361530=0x0;_0x361530<_0x4b56c1[_0x5a33('0x73')];_0x361530++){if(_0x3ee465(this,_0x4b56c1[_0x361530],_0xb24766,0x0))return!0x0;}return!0x1;function _0x3ee465(_0x35caa4,_0x3db7c0,_0x557c06,_0x5b0b4d){for(let _0x23faff=_0x5b0b4d;_0x23faff<_0x557c06[_0x5a33('0x73')];_0x23faff++){const _0xb8c455=_0x557c06[_0x23faff];if(_0xb8c455[_0x5a33('0x9a')]!==_0x3db7c0[_0x5a33('0x9a')]||_0xb8c455[_0x5a33('0x22')]['id']!==_0x3db7c0[_0x5a33('0x22')]['id']||_0xb8c455[_0x5a33('0x68')]!==_0x3db7c0['subType'])continue;const _0x56557b=_0x191dd9['get'](_0x3db7c0),_0x329af5=_0x539ea1['get'](_0x3db7c0),_0x55ba4f=_0x539ea1['get'](_0xb8c455),_0x5c04dc=_0x3db7c0[_0x5a33('0x117')]&&_0x3db7c0[_0x5a33('0x117')][_0x5a33('0x73')],_0x1d646f=_0xb8c455[_0x5a33('0x117')]&&_0xb8c455[_0x5a33('0x117')][_0x5a33('0x73')];if(!_0x5c04dc&&_0x56557b(_0x55ba4f,_0x329af5))return _0x35caa4['_joinSuggestions'](_0xb8c455,_0x3db7c0),_0x539ea1[_0x5a33('0xc7')](_0x3db7c0),!0x0;if(!_0x1d646f&&_0x56557b(_0x329af5,_0x55ba4f))return _0x35caa4[_0x5a33('0x0')](_0x3db7c0,_0xb8c455),_0x539ea1[_0x5a33('0xc7')](_0xb8c455),!0x0;}return!0x1;}}[_0x5a33('0x0')](_0x4c3503,_0x4c05a3){if(_0x4c3503[_0x5a33('0x8c')])for(const _0x1125c2 of _0x4c05a3[_0x5a33('0xd')]())_0x4c3503[_0x5a33('0x8d')](_0x1125c2);else{const _0x446a3c=_0x4c05a3[_0x5a33('0x39')]()['end'];this[_0x5a33('0xab')](_0x4c3503,this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x4c3503[_0x5a33('0x39')]()[_0x5a33('0x7b')],_0x446a3c));}_0x4c05a3[_0x5a33('0xfe')]();}}class Dt{constructor(_0x2b3ed1){this[_0x5a33('0x113')]=_0x2b3ed1,this['_model']=_0x2b3ed1[_0x5a33('0x1e')],this[_0x5a33('0xc4')]=new Map(),this[_0x5a33('0xc')]=new Map(),this[_0x5a33('0xfc')]();}[_0x5a33('0x121')](_0x42b9b6,_0x3f5006,_0x24f2f6,_0x1a30cf,_0x2011a7,_0x4e4485){return new _0x2964dc(this['_model'],{'type':_0x42b9b6,'subType':_0x3f5006,'id':_0x24f2f6,'author':_0x1a30cf,'creator':_0x1a30cf,'attributes':_0x2011a7,'onAttributesChange':_0x4e4485,'onAccept':(..._0x2a0fe4)=>this[_0x5a33('0x56')](_0x42b9b6,_0x3f5006,'accept')(..._0x2a0fe4),'onDiscard':(..._0x5cd73a)=>this[_0x5a33('0x56')](_0x42b9b6,_0x3f5006,_0x5a33('0x19'))(..._0x5cd73a)});}[_0x5a33('0x49')](_0x55f589,_0x3bb4b9,_0x3192a0,_0x2cc269){const _0x4674c1=_0x55f589+':'+_0x3bb4b9+':'+_0x3192a0;this[_0x5a33('0xc4')][_0x5a33('0xc1')](_0x4674c1,_0x2cc269);}[_0x5a33('0x56')](_0x98e93b,_0x248446,_0x21d79f){const _0x53f9a2=_0x98e93b+':'+_0x248446+':'+_0x21d79f;return this[_0x5a33('0xc4')][_0x5a33('0xad')](_0x53f9a2)||this[_0x5a33('0xc')][_0x5a33('0xad')](_0x98e93b+':'+_0x21d79f);}['_registerDefaultCallbacks'](){const _0x1cdcea=()=>{},_0x3537b7=_0x3cf41d=>{_0x3cf41d[_0x5a33('0x2')]((_0x533a68,_0x2881d7)=>_0x533a68[_0x5a33('0x7b')]['isBefore'](_0x2881d7['start'])?0x1:-0x1),this['_model'][_0x5a33('0x92')](_0x5d6cf1=>{for(const _0x1349da of _0x3cf41d){let _0x14d940;_0x14d940=_0x1349da[_0x5a33('0x3d')][_0x5a33('0x2a')]&&_0x1349da[_0x5a33('0x3d')][_0x5a33('0x6')]==_0x1349da['start'][_0x5a33('0x4d')]?_0x5d6cf1['createSelection'](_0x1349da[_0x5a33('0x7b')][_0x5a33('0x4d')],'on'):_0x5d6cf1[_0x5a33('0x133')](_0x1349da),this[_0x5a33('0xb4')][_0x5a33('0x112')](_0x14d940,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x461e1d=(_0x5b4b77,_0x4206b7)=>{this[_0x5a33('0xb4')][_0x5a33('0x92')](_0x353b17=>{const {commandName:_0x883e4e,commandParams:_0x596e6a=[]}=_0x4206b7,_0x54d417=_0x5b4b77[_0x5a33('0x119')](_0x372252=>(_t(_0x372252)&&(_0x372252=this[_0x5a33('0xb4')][_0x5a33('0x11')](_0x372252['end'])),_0x372252))[_0x5a33('0x88')](_0x466e5a=>_0x5a33('0x57')!==_0x466e5a[_0x5a33('0xc9')][_0x5a33('0xf0')]);if(_0x54d417[_0x5a33('0x73')]<0x1)return;const _0xf3c75d=Array[_0x5a33('0xfa')](this[_0x5a33('0xb4')][_0x5a33('0x40')][_0x5a33('0x8e')]['getRanges']())['map'](_0x4a45da=>_0x503ccc['fromRange'](_0x4a45da));_0x353b17['setSelection'](_0x54d417);for(const _0xe7854b of this[_0x5a33('0x113')][_0x5a33('0x136')]['commands']())_0xe7854b[_0x5a33('0x97')]();_0x596e6a['push']({'forceDefaultExecution':!0x0}),this[_0x5a33('0x113')][_0x5a33('0x48')](_0x883e4e,..._0x596e6a);const _0x2b0753=_0xf3c75d['filter'](_0x5a11af=>_0x5a33('0x57')!=_0x5a11af[_0x5a33('0xc9')][_0x5a33('0xf0')]);_0x2b0753['length']>0x0&&_0x353b17[_0x5a33('0xca')](_0x2b0753);for(const _0x556e75 of _0xf3c75d)_0x556e75[_0x5a33('0x96')]();});},_0x2e94ed=(_0xbc3dda,_0x44ece6)=>0x1==_0xbc3dda[_0x5a33('0x73')]&&0x1==_0x44ece6[_0x5a33('0x73')]&&_0xbc3dda[0x0][_0x5a33('0x3d')]['isEqual'](_0x44ece6[0x0][_0x5a33('0x7b')]),_0x74b8f7=(_0x499c89,_0x1cd162,_0x23515a,_0x4b2f71)=>xt(_0x499c89,_0x1cd162,_0x23515a,_0x4b2f71,this[_0x5a33('0xb4')])?[_0x499c89,_0x1cd162]:xt(_0x1cd162,_0x499c89,_0x4b2f71,_0x23515a,this[_0x5a33('0xb4')])?[_0x1cd162,_0x499c89]:null;this[_0x5a33('0xc')][_0x5a33('0xc1')]('insertion:accept',_0x1cdcea),this[_0x5a33('0xc')][_0x5a33('0xc1')]('insertion:discard',_0x3537b7),this[_0x5a33('0xc')]['set']('insertion:join',_0x2e94ed),this[_0x5a33('0xc')][_0x5a33('0xc1')]('insertion:chain',_0x74b8f7),this[_0x5a33('0xc')][_0x5a33('0xc1')](_0x5a33('0x7d'),_0x3537b7),this[_0x5a33('0xc')][_0x5a33('0xc1')]('deletion:discard',_0x1cdcea),this[_0x5a33('0xc')][_0x5a33('0xc1')](_0x5a33('0x64'),_0x2e94ed),this['_defaultCallbacks'][_0x5a33('0xc1')]('deletion:chain',_0x74b8f7),this[_0x5a33('0xc')][_0x5a33('0xc1')](_0x5a33('0xbf'),_0x461e1d),this[_0x5a33('0xc')][_0x5a33('0xc1')]('formatInline:discard',_0x1cdcea),this[_0x5a33('0xc')][_0x5a33('0xc1')](_0x5a33('0x65'),_0x2e94ed),this['_defaultCallbacks']['set'](_0x5a33('0x11c'),_0x1cdcea),this[_0x5a33('0xc')][_0x5a33('0xc1')](_0x5a33('0x61'),_0x461e1d),this[_0x5a33('0xc')][_0x5a33('0xc1')](_0x5a33('0x1c'),_0x1cdcea),this[_0x5a33('0xc')][_0x5a33('0xc1')](_0x5a33('0x53'),_0x2e94ed),this[_0x5a33('0xc')][_0x5a33('0xc1')]('formatBlock:chain',_0x1cdcea);}}function Bt(_0x37ea8f,_0x2041a4,_0x3d7f0e){for(const _0x5a26ad of _0x2041a4['parent'][_0x5a33('0xee')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a26ad[_0x5a33('0xc9')]==_0x5a26ad)return!0x1;if(!_0x3d7f0e[_0x5a33('0x13c')](_0x5a26ad))return!0x1;if(_0x37ea8f[_0x5a33('0x108')](_0x5a26ad)||_0x37ea8f[_0x5a33('0x45')](_0x5a26ad))return!0x0;}return!0x1;}function _t(_0xc096){return _0xc096['end'][_0x5a33('0x6')]==_0xc096[_0x5a33('0x7b')]['nodeAfter']&&_0xc096[_0x5a33('0x3d')][_0x5a33('0x3e')];}function Mt(_0x95ea9b,_0x2156b0,_0x19be04,_0x5775ce){const _0x5d383a=_0x1e007d=>!_0x1e007d[_0x5a33('0x3f')]['is'](_0x5a33('0xbb'))&&!_0x5775ce['isObject'](_0x1e007d[_0x5a33('0x3f')]),_0x30f252=_0x95ea9b[_0x5a33('0x7b')][_0x5a33('0x105')](_0x5d383a),_0x3af661=_0x95ea9b[_0x5a33('0x3d')][_0x5a33('0x105')](_0x5d383a,{'direction':_0x5a33('0x4e')});return(!_0x95ea9b[_0x5a33('0x7b')][_0x5a33('0x38')](_0x30f252)||!_0x95ea9b['end'][_0x5a33('0x38')](_0x3af661))&&(_0x30f252['isBefore'](_0x3af661)?_0x19be04['updateMarker'](_0x2156b0,{'range':_0x19be04['createRange'](_0x30f252,_0x3af661)}):_0x19be04['removeMarker'](_0x2156b0),!0x0);}function $t(_0x298379){return _0x9b0fcf(_0x298379);}function Nt(_0x47a9d8){const _0x509c6d=_0x47a9d8[_0x5a33('0x7b')][_0x5a33('0x4d')];return _0x509c6d&&_0x509c6d['is'](_0x5a33('0x98'));}function Rt(_0x4bf02d,_0x51556e){const _0x511f79=_0x51556e[_0x5a33('0xeb')][_0x5a33('0x108')](_0x4bf02d)||_0x51556e[_0x5a33('0xeb')][_0x5a33('0x47')](_0x4bf02d);return _0x51556e[_0x5a33('0x11')](_0x51556e[_0x5a33('0x126')](_0x4bf02d,_0x5a33('0x6a')),_0x511f79?_0x51556e[_0x5a33('0x34')](_0x4bf02d):_0x51556e[_0x5a33('0x126')](_0x4bf02d,'end'));}function xt(_0x198fb8,_0x5bd602,_0x43697b,_0x2910bd,_0x175943){if(_0x43697b[_0x5a33('0x3d')][_0x5a33('0x38')](_0x2910bd['start']))return!0x0;if(_0x198fb8[_0x5a33('0x9a')]!=_0x5bd602[_0x5a33('0x9a')])return!0x1;if(!_0x43697b[_0x5a33('0x3d')]['isTouching'](_0x2910bd['start']))return!0x1;const _0x269803=_0x175943['createRange'](_0x43697b[_0x5a33('0x3d')],_0x2910bd[_0x5a33('0x7b')])['getWalker']();for(const _0x4d94e6 of _0x269803)if([_0x5a33('0x130'),_0x5a33('0xa6')][_0x5a33('0x118')](_0x4d94e6['type'])&&_0x175943[_0x5a33('0xeb')][_0x5a33('0x45')](_0x4d94e6[_0x5a33('0x3f')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x10ad=['_handleSuggestionControllerDelayed','trackChanges','config','reduce','separator','size','execute','getDescriptions','getSuggestion','init','comments.maxCommentsWhenCollapsed','isInContent','_createUIButton','suggestionUnloaded','actionView','discardButton','_destroyController','acceptAllSuggestions','_handleControllerBuffer','createAnnotation','clear','commands','_initializeController','comments.maxCommentCharsWhenCollapsed','buttonView','isEnabled','bind','locale','arrowView','plugins','change:activeAnnotations','commentThread','isOn','add','acceptButton','getMarkers','comments','_updateController','getAllAdjacentSuggestions','mainView','registerAnnotation','trackChanges.SuggestionThreadView','focus','button','CommentsUI','TrackChangesUI','_descriptionFactory','Track\x20changes','Discard\x20all\x20selected\x20suggestions','hasSuggestion','_annotationViews','trackChanges.disableComments','Annotations','view','getFirstRange','Accept\x20all\x20selected\x20suggestions','_viewToController','CommentsRepository','unbind','listenTo','suggestion-','getJoined','switchbutton','previous','activeMarkers','comments.maxThreadTotalWeight','define','lowest','from','requires','keys','model','head','addSourceCollector','type','_disableComments','discardAllSuggestions','get','TrackChangesEditing','editor','createCommentThreadController','toMany','getRanges','change:previous','filter','values','activeAnnotations','discardSelectedSuggestions','value','EditorAnnotations','source','isMultiRange','destroy','_suggestionToController','comments.editorConfig','isDirty','set','Discard\x20all\x20suggestions','descriptionParts','length','has','editing','CommentView','acceptSelectedSuggestions','createAnnotationView','_refreshActiveMarkers','_bindAnnotationToEditors','innerView','delete','push'];(function(_0x21984c,_0x10ad0e){const _0x4694f8=function(_0x1ef25f){while(--_0x1ef25f){_0x21984c['push'](_0x21984c['shift']());}};_0x4694f8(++_0x10ad0e);}(_0x10ad,0xf1));const _0x4694=function(_0x21984c,_0x10ad0e){_0x21984c=_0x21984c-0x0;let _0x4694f8=_0x10ad[_0x21984c];return _0x4694f8;};import{Plugin as _0x3b41ad}from'ckeditor5/src/core';import{Collection as _0x1b6b62}from'ckeditor5/src/utils';import{Model as _0x4fcc01,SplitButtonView as _0x54e14f,createDropdown as _0xe20a07,addListToDropdown as _0x479dad}from'ckeditor5/src/ui';import{Users as _0x755b65,getDateTimeFormatter as _0x5c594e,getAllMarkersDomElementsSorted as _0x55558b}from'ckeditor5-collaboration/src/collaboration-core';import _0xb2eaa4 from'./trackchangesediting';import _0x4483a9 from'./ui/suggestioncontroller';import _0x177038 from'./ui/view/suggestionthreadview';import{getTranslation as _0x364151}from'./utils/common-translations';import _0x493945 from'../theme/icons/track-changes.svg';export default class d extends _0x3b41ad{static get[_0x4694('0x30')](){return[_0xb2eaa4,_0x755b65,_0x4694('0x24'),_0x4694('0x1f'),'EditorAnnotations'];}static get['pluginName'](){return _0x4694('0x18');}constructor(_0x31cef9){super(_0x31cef9),this[_0x4694('0x48')]=new Map(),this[_0x4694('0x23')]=new Map(),this[_0x4694('0x1d')]=new Map(),this[_0x4694('0x6b')]=new Map();const _0x4a743f=this['editor'][_0x4694('0x5b')];_0x4a743f['define'](_0x4694('0x14'),_0x177038),_0x4a743f[_0x4694('0x2d')](_0x4694('0x1e'),!0x1),this[_0x4694('0x36')]=_0x4a743f[_0x4694('0x38')]('trackChanges.disableComments');}[_0x4694('0x59')](_0x2e2a4c,_0x269afe){0x0===this['_handleControllerBuffer'][_0x4694('0x5e')]&&setTimeout(()=>{for(const [_0x55252e,_0x28b86b]of this[_0x4694('0x6b')]){const _0x42085f=this[_0x4694('0x48')][_0x4694('0x4f')](_0x55252e);_0x42085f||_0x28b86b?_0x42085f&&_0x28b86b&&this[_0x4694('0x69')](_0x55252e):this[_0x4694('0x1')](_0x55252e);}this['editor'][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x44'))['refreshSelectedViews'](),this[_0x4694('0x54')](),this[_0x4694('0x6b')][_0x4694('0x6d')]();},0xa),this[_0x4694('0x6b')][_0x4694('0x4b')](_0x2e2a4c,_0x269afe);}[_0x4694('0x62')](){const _0x10f51a=this[_0x4694('0x3a')],_0x1f0f06=_0x10f51a[_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x39')),_0x44765c=_0x10f51a[_0x4694('0x8')]['get'](_0x4694('0x1f')),_0x13e4bc=_0x10f51a[_0x4694('0x8')]['get'](_0x4694('0x44')),_0x663813=_0x10f51a[_0x4694('0x8')]['get']('CommentsRepository');_0x10f51a['ui']['componentFactory'][_0x4694('0xc')](_0x4694('0x5a'),_0x32d405=>this[_0x4694('0x65')](_0x32d405)),_0x13e4bc[_0x4694('0x34')](()=>{const _0x3dd77c=[];for(const [_0x370148,_0x4121cb]of Array[_0x4694('0x2f')](this[_0x4694('0x48')])){const _0x4345bc=_0x370148[_0x4694('0x11')](),_0x4afd57=[];for(const _0x2f9beb of _0x4345bc){if(!_0x2f9beb[_0x4694('0x64')])continue;if(_0x2f9beb[_0x4694('0x46')]){_0x4afd57['push'](..._0x2f9beb[_0x4694('0x3d')]());continue;}const _0x46c3ba=_0x2f9beb[_0x4694('0x21')]();if(_0x4afd57[_0x4694('0x4e')]>0x0){const _0x8f600e=_0x4afd57[0x0][_0x4694('0x28')](_0x46c3ba);if(_0x8f600e){_0x4afd57[0x0]=_0x8f600e;continue;}}_0x4afd57['push'](_0x46c3ba);}_0x3dd77c[_0x4694('0x58')]([_0x4121cb[_0x4694('0x20')],_0x4afd57]);}return _0x3dd77c;}),this['listenTo'](_0x1f0f06,'suggestionLoaded',(_0x2b3b0e,_0xfee3e8)=>{this[_0x4694('0x26')](_0xfee3e8,_0x4694('0x3e'),(_0x13db7d,_0x399357,_0x3b28f3,_0x2d652a)=>{_0xfee3e8[_0x4694('0x64')]&&(null==_0x3b28f3?(this[_0x4694('0x10')](_0x2d652a[_0x4694('0x33')]),this[_0x4694('0x59')](_0xfee3e8,!0x1)):(this[_0x4694('0x10')](_0x3b28f3[_0x4694('0x33')]),this['_handleSuggestionControllerDelayed'](_0xfee3e8,!0x0)));}),null===_0xfee3e8[_0x4694('0x2a')]?this[_0x4694('0x59')](_0xfee3e8,!0x1):this[_0x4694('0x10')](_0xfee3e8['head']);}),this['listenTo'](_0x1f0f06,_0x4694('0x66'),(_0x268481,_0x3c83f8,_0x15d08f)=>{this['stopListening'](_0x3c83f8,_0x4694('0x3e')),this['_handleControllerBuffer'][_0x4694('0x57')](_0x3c83f8);const _0x4d0119=_0x15d08f?_0x15d08f[_0x4694('0x33')]:_0x3c83f8,_0x4713ae=this[_0x4694('0x48')][_0x4694('0x38')](_0x4d0119);null!==_0x15d08f&&this[_0x4694('0x10')](_0x4d0119),null===_0x15d08f&&_0x4713ae&&this[_0x4694('0x69')](_0x3c83f8);}),this[_0x4694('0x26')](_0x1f0f06,'suggestionChanged',(_0x3479c2,_0x20bfbe)=>{this[_0x4694('0x10')](_0x20bfbe);}),this[_0x4694('0x26')](_0x44765c,_0x4694('0x9'),()=>{this[_0x4694('0x54')]();}),this['listenTo'](_0x663813,'addComment',(_0xc9d13f,{threadId:_0x183fd8,isFromAdapter:_0x3ffeda})=>{if(_0x3ffeda||!_0x1f0f06[_0x4694('0x1c')](_0x183fd8))return;const _0x3c2305=_0x1f0f06[_0x4694('0x61')](_0x183fd8);this['_suggestionToController'][_0x4694('0x38')](_0x3c2305)[_0x4694('0x20')]['focus']();},{'priority':_0x4694('0x2e')});}[_0x4694('0x54')](){const _0x233718=this[_0x4694('0x3a')][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x1f')),_0xbb86c7=this['editor'][_0x4694('0x8')][_0x4694('0x38')]('TrackChangesEditing'),_0x8ca89d=Array[_0x4694('0x2f')](_0x233718[_0x4694('0x41')],_0xc385e1=>_0xc385e1[_0x4694('0x56')])['filter'](_0x5b2203=>this['_viewToController']['has'](_0x5b2203)),_0x72895b=[];for(const _0x7a9952 of _0x8ca89d){const _0x5ce18f=this['_viewToController'][_0x4694('0x38')](_0x7a9952)[_0x4694('0x32')][_0x4694('0x11')]();_0x72895b[_0x4694('0x58')](..._0x5ce18f[_0x4694('0x5c')]((_0x19ff06,_0x4d4928)=>[..._0x19ff06,..._0x4d4928['getMarkerNames']()],[]));}_0xbb86c7[_0x4694('0x2b')]=_0x72895b;}[_0x4694('0x65')](_0x25ab86){const _0x3cf9ee=_0xe20a07(_0x25ab86,_0x54e14f),_0x2ac349=this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x4694('0x5a')),_0x52930f=_0x364151(_0x25ab86,_0x4694('0x1a'));_0x3cf9ee[_0x4694('0x3')][_0x4694('0x4b')]({'tooltip':_0x52930f,'label':_0x52930f,'icon':_0x493945}),_0x3cf9ee[_0x4694('0x3')][_0x4694('0x5')](_0x4694('0xb'))['to'](_0x2ac349,_0x4694('0x43')),_0x3cf9ee['buttonView']['on']('execute',()=>{_0x2ac349['execute'](),this[_0x4694('0x3a')][_0x4694('0x50')]['view'][_0x4694('0x15')]();});const _0x7675a6=new _0x1b6b62(),_0x344a2c=[{'type':_0x4694('0x29'),'model':{'withText':!0x0,'label':_0x52930f,'commandName':_0x4694('0x5a')}},{'type':_0x4694('0x5d')},{'type':'button','model':{'withText':!0x0,'label':_0x364151(_0x25ab86,'Accept\x20all\x20suggestions'),'commandName':_0x4694('0x6a')}},{'type':'button','model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x22')),'commandName':_0x4694('0x52')}},{'type':_0x4694('0x16'),'model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x4c')),'commandName':_0x4694('0x37')}},{'type':_0x4694('0x16'),'model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x1b')),'commandName':_0x4694('0x42')}}];for(const _0x32cdf0 of _0x344a2c){let _0xdd564b={'type':_0x4694('0x5d')};if(_0x32cdf0[_0x4694('0x32')]){const _0x534dbd=new _0x4fcc01(_0x32cdf0[_0x4694('0x32')]),_0x3505ad=this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x534dbd['commandName']);_0x534dbd[_0x4694('0x5')](_0x4694('0xb'),_0x4694('0x4'))['to'](_0x3505ad,_0x4694('0x43'),_0x4694('0x4')),_0xdd564b={'type':_0x32cdf0[_0x4694('0x35')],'model':_0x534dbd};}_0x7675a6[_0x4694('0xc')](_0xdd564b);}_0x479dad(_0x3cf9ee,_0x7675a6);const _0x2174cb=_0x344a2c['filter'](_0x4c8804=>null!=_0x4c8804['model'])['map'](_0x1ae731=>this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x1ae731[_0x4694('0x32')]['commandName'])),_0x2f9156=_0x3cf9ee[_0x4694('0x3')];return _0x2f9156[_0x4694('0x67')]['unbind'](_0x4694('0x4')),_0x2f9156['arrowView'][_0x4694('0x25')](_0x4694('0x4')),_0x2f9156[_0x4694('0x67')][_0x4694('0x5')](_0x4694('0x4'))['to'](_0x2ac349,_0x4694('0x4')),_0x2f9156[_0x4694('0x7')]['bind'](_0x4694('0x4'))[_0x4694('0x3c')](_0x2174cb,_0x4694('0x4'),(..._0x55dfec)=>_0x55dfec['some'](_0x418f64=>_0x418f64)),_0x3cf9ee['on'](_0x4694('0x5f'),_0x4bce4b=>{this[_0x4694('0x3a')][_0x4694('0x5f')](_0x4bce4b[_0x4694('0x45')]['commandName']),this[_0x4694('0x3a')][_0x4694('0x50')][_0x4694('0x20')][_0x4694('0x15')]();}),_0x3cf9ee;}['_initializeController'](_0xcfa19f){const _0x4b2bfc=this[_0x4694('0x3a')],_0x58c0cd=_0x4b2bfc[_0x4694('0x5b')],_0x14e07e=_0x4b2bfc[_0x4694('0x8')][_0x4694('0x38')]('Annotations'),_0x51015b=_0x4b2bfc['plugins'][_0x4694('0x38')](_0x4694('0x24')),_0x438d8f=_0x4b2bfc[_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x44')),_0x2c2c41=_0x4b2bfc['plugins']['get'](_0x755b65)['me'],_0x33403a=_0x58c0cd[_0x4694('0x38')]('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x73072,CommentThreadInputView:_0x16b891}=_0x4b2bfc['plugins'][_0x4694('0x38')](_0x4694('0x17'));let _0x438b47,_0x271f8b;this['_annotationViews']['has'](_0xcfa19f['id'])?(_0x271f8b=this[_0x4694('0x1d')][_0x4694('0x38')](_0xcfa19f['id']),_0x438b47=_0x271f8b[_0x4694('0x12')]):(_0x438b47=new _0x33403a(_0x4b2bfc['locale'],_0xcfa19f,_0x2c2c41,{'disableComments':this[_0x4694('0x36')],'editorConfig':_0x58c0cd[_0x4694('0x38')](_0x4694('0x49')),'maxCommentsWhenCollapsed':_0x58c0cd[_0x4694('0x38')](_0x4694('0x63')),'maxThreadTotalWeight':_0x58c0cd['get'](_0x4694('0x2c')),'maxCommentCharsWhenCollapsed':_0x58c0cd[_0x4694('0x38')](_0x4694('0x2')),'formatDateTime':_0x5c594e(_0x58c0cd[_0x4694('0x38')](_0x4694('0x6'))),'CommentView':_0x58c0cd[_0x4694('0x38')](_0x4694('0xf'))[_0x4694('0x51')],'CommentsListView':_0x73072,'CommentThreadInputView':_0x16b891}),_0x438b47[_0x4694('0xd')]['on']('execute',()=>{_0x4b2bfc[_0x4694('0x50')][_0x4694('0x20')][_0x4694('0x15')]();}),_0x438b47[_0x4694('0x68')]['on']('execute',()=>{_0x4b2bfc['editing']['view']['focus']();}),_0x271f8b=_0x14e07e[_0x4694('0x53')](this[_0x4694('0x3a')][_0x4694('0x6')],_0x438b47),_0x271f8b[_0x4694('0x5')](_0x4694('0x4a'))['to'](_0x438b47,_0x4694('0x4a')),_0x271f8b[_0x4694('0x5')](_0x4694('0x4e'))['to'](_0x438b47),_0x271f8b['bind'](_0x4694('0x35'))['to'](_0x438b47,'type',_0x3dd6f2=>_0x4694('0x27')+_0x3dd6f2),this['_annotationViews'][_0x4694('0x4b')](_0xcfa19f['id'],_0x271f8b));const _0x4f7fe8=_0x51015b[_0x4694('0x3b')](_0xcfa19f[_0x4694('0xa')],_0x438b47),_0x41067c=new _0x4483a9(_0x4b2bfc,_0xcfa19f,_0x438b47,_0x4f7fe8),_0x2b691c=_0xcfa19f[_0x4694('0x11')]()[_0x4694('0x3f')](_0x2d3d84=>_0x2d3d84[_0x4694('0x64')]);_0x438b47[_0x4694('0x4d')]=_0x4b2bfc[_0x4694('0x8')]['get'](_0x4694('0x39'))[_0x4694('0x19')][_0x4694('0x60')](_0x2b691c),this[_0x4694('0x48')][_0x4694('0x4b')](_0xcfa19f,_0x41067c),this[_0x4694('0x23')][_0x4694('0x4b')](_0x438b47,_0x41067c);const _0x1534c4=_0x14e07e[_0x4694('0x6c')]({'view':_0x271f8b,'target':()=>{const _0x40dcfc=[],_0x402ad4=_0xcfa19f[_0x4694('0x11')]()['filter'](_0x3bc7b6=>_0x3bc7b6[_0x4694('0x64')]);for(const _0x27b098 of _0x402ad4)_0x40dcfc[_0x4694('0x58')](..._0x27b098[_0x4694('0xe')]());return _0x55558b(_0x4b2bfc['editing'],_0x40dcfc);},'type':()=>_0x4694('0x27')+_0x41067c[_0x4694('0x20')][_0x4694('0x35')]});_0x51015b[_0x4694('0x55')](_0x438b47,_0x1534c4),_0x14e07e[_0x4694('0xc')](_0x1534c4),_0x438d8f[_0x4694('0x13')](_0x1534c4);}[_0x4694('0x69')](_0x338284){const _0x53fd3d=this[_0x4694('0x3a')][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x1f')),_0x2a7e5e=this[_0x4694('0x48')][_0x4694('0x38')](_0x338284),_0xee9b4f=_0x2a7e5e[_0x4694('0x20')],_0x42eef6=_0x53fd3d['getByInnerView'](_0xee9b4f);_0x42eef6&&_0x53fd3d['remove'](_0x42eef6),this[_0x4694('0x48')][_0x4694('0x57')](_0x338284),this[_0x4694('0x23')][_0x4694('0x57')](_0xee9b4f),_0x2a7e5e[_0x4694('0x47')]();}[_0x4694('0x10')](_0x53393a){if(!_0x53393a['isInContent']||!this[_0x4694('0x48')][_0x4694('0x4f')](_0x53393a))return;const _0x1ee460=this['editor'][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x39')),_0x226a39=this[_0x4694('0x48')][_0x4694('0x38')](_0x53393a),_0x35529a=_0x53393a['getAllAdjacentSuggestions']();_0x226a39[_0x4694('0x20')][_0x4694('0x4d')]=_0x1ee460['_descriptionFactory'][_0x4694('0x60')](_0x35529a);}[_0x4694('0x47')](){for(const _0x30ef65 of this[_0x4694('0x48')][_0x4694('0x31')]())this[_0x4694('0x69')](_0x30ef65);for(const _0x1f5c71 of this['_annotationViews'][_0x4694('0x40')]())_0x1f5c71[_0x4694('0x12')][_0x4694('0x47')]();super[_0x4694('0x47')]();}}
23
+ const _0x1939=['lowest','keys','focus','listenTo','comments.maxCommentsWhenCollapsed','_viewToController','_updateController','_disableComments','locale','Accept\x20all\x20selected\x20suggestions','filter','acceptButton','getMarkers','comments.maxThreadTotalWeight','previous','getAllAdjacentSuggestions','suggestionUnloaded','execute','destroy','arrowView','acceptSelectedSuggestions','size','Discard\x20all\x20suggestions','activeAnnotations','getRanges','_annotationViews','delete','_createUIButton','change:previous','_destroyController','trackChanges.disableComments','isMultiRange','view','Discard\x20all\x20selected\x20suggestions','_handleSuggestionControllerDelayed','_handleControllerBuffer','init','innerView','discardAllSuggestions','suggestion-','button','activeMarkers','separator','add','refreshSelectedViews','createAnnotation','CommentView','has','stopListening','type','set','requires','_refreshActiveMarkers','value','TrackChangesEditing','comments.editorConfig','createCommentThreadController','trackChanges','commandName','mainView','addComment','_bindAnnotationToEditors','unbind','editing','comments','_suggestionToController','Track\x20changes','CommentsRepository','config','descriptionParts','getJoined','buttonView','componentFactory','commands','getByInnerView','commentThread','editor','getFirstRange','TrackChangesUI','EditorAnnotations','getSuggestion','from','plugins','isOn','map','Annotations','discardSelectedSuggestions','pluginName','isInContent','comments.maxCommentCharsWhenCollapsed','source','switchbutton','change:activeAnnotations','getMarkerNames','model','toMany','_descriptionFactory','bind','addSourceCollector','length','push','define','_initializeController','suggestionChanged','isEnabled','head','isDirty','get'];(function(_0x5109d4,_0x193970){const _0x261b9a=function(_0x2c0691){while(--_0x2c0691){_0x5109d4['push'](_0x5109d4['shift']());}};_0x261b9a(++_0x193970);}(_0x1939,0x1b8));const _0x261b=function(_0x5109d4,_0x193970){_0x5109d4=_0x5109d4-0x0;let _0x261b9a=_0x1939[_0x5109d4];return _0x261b9a;};import{Plugin as _0x4d7ba2}from'ckeditor5/src/core';import{Collection as _0x1d8e68}from'ckeditor5/src/utils';import{Model as _0x4f0185,SplitButtonView as _0x56ac1d,createDropdown as _0x112fd4,addListToDropdown as _0xf72177}from'ckeditor5/src/ui';import{Users as _0x566df6,getDateTimeFormatter as _0x252b86,getAllMarkersDomElementsSorted as _0x3f8088}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c948b from'./trackchangesediting';import _0x55a883 from'./ui/suggestioncontroller';import _0x31a66f from'./ui/view/suggestionthreadview';import{getTranslation as _0x296a06}from'./utils/common-translations';import _0x1fdff4 from'../theme/icons/track-changes.svg';export default class d extends _0x4d7ba2{static get[_0x261b('0x2b')](){return[_0x4c948b,_0x566df6,_0x261b('0x3b'),_0x261b('0x4d'),_0x261b('0x47')];}static get[_0x261b('0x4f')](){return _0x261b('0x46');}constructor(_0x38a08a){super(_0x38a08a),this[_0x261b('0x39')]=new Map(),this[_0x261b('0x69')]=new Map(),this[_0x261b('0x11')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x41c97c=this[_0x261b('0x44')][_0x261b('0x3c')];_0x41c97c[_0x261b('0x5d')]('trackChanges.SuggestionThreadView',_0x31a66f),_0x41c97c[_0x261b('0x5d')](_0x261b('0x16'),!0x1),this[_0x261b('0x6b')]=_0x41c97c[_0x261b('0x63')](_0x261b('0x16'));}['_handleSuggestionControllerDelayed'](_0x32c0e6,_0x33f9bc){0x0===this['_handleControllerBuffer'][_0x261b('0xd')]&&setTimeout(()=>{for(const [_0x12ed79,_0x57c8ec]of this[_0x261b('0x1b')]){const _0x307e3a=this['_suggestionToController'][_0x261b('0x27')](_0x12ed79);_0x307e3a||_0x57c8ec?_0x307e3a&&_0x57c8ec&&this[_0x261b('0x15')](_0x12ed79):this[_0x261b('0x5e')](_0x12ed79);}this[_0x261b('0x44')]['plugins']['get']('EditorAnnotations')[_0x261b('0x24')](),this[_0x261b('0x2c')](),this['_handleControllerBuffer']['clear']();},0xa),this[_0x261b('0x1b')]['set'](_0x32c0e6,_0x33f9bc);}[_0x261b('0x1c')](){const _0x2346a2=this[_0x261b('0x44')],_0x3b079b=_0x2346a2[_0x261b('0x4a')][_0x261b('0x63')]('TrackChangesEditing'),_0x1f7ebc=_0x2346a2[_0x261b('0x4a')]['get'](_0x261b('0x4d')),_0x1e347b=_0x2346a2['plugins'][_0x261b('0x63')]('EditorAnnotations'),_0x548064=_0x2346a2[_0x261b('0x4a')][_0x261b('0x63')]('CommentsRepository');_0x2346a2['ui'][_0x261b('0x40')][_0x261b('0x23')](_0x261b('0x31'),_0x39303c=>this[_0x261b('0x13')](_0x39303c)),_0x1e347b[_0x261b('0x5a')](()=>{const _0x52e1ae=[];for(const [_0x35f1ad,_0x36e2e8]of Array[_0x261b('0x49')](this['_suggestionToController'])){const _0xf3109f=_0x35f1ad[_0x261b('0x7')](),_0x2581fe=[];for(const _0x2db88e of _0xf3109f){if(!_0x2db88e[_0x261b('0x50')])continue;if(_0x2db88e[_0x261b('0x17')]){_0x2581fe['push'](..._0x2db88e[_0x261b('0x10')]());continue;}const _0x2f24b3=_0x2db88e[_0x261b('0x45')]();if(_0x2581fe['length']>0x0){const _0x109216=_0x2581fe[0x0][_0x261b('0x3e')](_0x2f24b3);if(_0x109216){_0x2581fe[0x0]=_0x109216;continue;}}_0x2581fe[_0x261b('0x5c')](_0x2f24b3);}_0x52e1ae[_0x261b('0x5c')]([_0x36e2e8['view'],_0x2581fe]);}return _0x52e1ae;}),this[_0x261b('0x67')](_0x3b079b,'suggestionLoaded',(_0x4918f0,_0x1d9934)=>{this['listenTo'](_0x1d9934,'change:previous',(_0x52d637,_0x4c2ffc,_0x324a5a,_0x164e63)=>{_0x1d9934[_0x261b('0x50')]&&(null==_0x324a5a?(this[_0x261b('0x6a')](_0x164e63[_0x261b('0x61')]),this['_handleSuggestionControllerDelayed'](_0x1d9934,!0x1)):(this[_0x261b('0x6a')](_0x324a5a['head']),this[_0x261b('0x1a')](_0x1d9934,!0x0)));}),null===_0x1d9934[_0x261b('0x6')]?this[_0x261b('0x1a')](_0x1d9934,!0x1):this[_0x261b('0x6a')](_0x1d9934['head']);}),this['listenTo'](_0x3b079b,_0x261b('0x8'),(_0x4e91e2,_0x9d9023,_0x59e473)=>{this[_0x261b('0x28')](_0x9d9023,_0x261b('0x14')),this[_0x261b('0x1b')][_0x261b('0x12')](_0x9d9023);const _0x35b72f=_0x59e473?_0x59e473[_0x261b('0x61')]:_0x9d9023,_0x512e3f=this[_0x261b('0x39')][_0x261b('0x63')](_0x35b72f);null!==_0x59e473&&this[_0x261b('0x6a')](_0x35b72f),null===_0x59e473&&_0x512e3f&&this[_0x261b('0x15')](_0x9d9023);}),this['listenTo'](_0x3b079b,_0x261b('0x5f'),(_0x3ef15a,_0x4619d4)=>{this[_0x261b('0x6a')](_0x4619d4);}),this[_0x261b('0x67')](_0x1f7ebc,_0x261b('0x54'),()=>{this['_refreshActiveMarkers']();}),this[_0x261b('0x67')](_0x548064,_0x261b('0x34'),(_0xdcafa4,{threadId:_0x353f90,isFromAdapter:_0x1ab77a})=>{if(_0x1ab77a||!_0x3b079b['hasSuggestion'](_0x353f90))return;const _0x3ed87c=_0x3b079b[_0x261b('0x48')](_0x353f90);this[_0x261b('0x39')][_0x261b('0x63')](_0x3ed87c)[_0x261b('0x18')][_0x261b('0x66')]();},{'priority':_0x261b('0x64')});}[_0x261b('0x2c')](){const _0x130d00=this[_0x261b('0x44')][_0x261b('0x4a')][_0x261b('0x63')](_0x261b('0x4d')),_0x5e983c=this[_0x261b('0x44')]['plugins'][_0x261b('0x63')](_0x261b('0x2e')),_0xac103=Array['from'](_0x130d00[_0x261b('0xf')],_0x39b729=>_0x39b729[_0x261b('0x1d')])[_0x261b('0x2')](_0x3bfbb8=>this['_viewToController'][_0x261b('0x27')](_0x3bfbb8)),_0x3b29b2=[];for(const _0x343ad8 of _0xac103){const _0x8fa0ca=this['_viewToController'][_0x261b('0x63')](_0x343ad8)[_0x261b('0x56')]['getAllAdjacentSuggestions']();_0x3b29b2['push'](..._0x8fa0ca['reduce']((_0x389dc5,_0x1db7b8)=>[..._0x389dc5,..._0x1db7b8[_0x261b('0x55')]()],[]));}_0x5e983c[_0x261b('0x21')]=_0x3b29b2;}['_createUIButton'](_0x206009){const _0x27c2cd=_0x112fd4(_0x206009,_0x56ac1d),_0x3eeb1b=this[_0x261b('0x44')][_0x261b('0x41')][_0x261b('0x63')](_0x261b('0x31')),_0x44b93f=_0x296a06(_0x206009,_0x261b('0x3a'));_0x27c2cd[_0x261b('0x3f')][_0x261b('0x2a')]({'tooltip':_0x44b93f,'label':_0x44b93f,'icon':_0x1fdff4}),_0x27c2cd[_0x261b('0x3f')][_0x261b('0x59')](_0x261b('0x4b'))['to'](_0x3eeb1b,_0x261b('0x2d')),_0x27c2cd[_0x261b('0x3f')]['on'](_0x261b('0x9'),()=>{_0x3eeb1b[_0x261b('0x9')](),this[_0x261b('0x44')]['editing'][_0x261b('0x18')][_0x261b('0x66')]();});const _0x5123b7=new _0x1d8e68(),_0x2755fe=[{'type':_0x261b('0x53'),'model':{'withText':!0x0,'label':_0x44b93f,'commandName':_0x261b('0x31')}},{'type':_0x261b('0x22')},{'type':'button','model':{'withText':!0x0,'label':_0x296a06(_0x206009,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x261b('0x20'),'model':{'withText':!0x0,'label':_0x296a06(_0x206009,_0x261b('0x1')),'commandName':_0x261b('0xc')}},{'type':_0x261b('0x20'),'model':{'withText':!0x0,'label':_0x296a06(_0x206009,_0x261b('0xe')),'commandName':_0x261b('0x1e')}},{'type':_0x261b('0x20'),'model':{'withText':!0x0,'label':_0x296a06(_0x206009,_0x261b('0x19')),'commandName':_0x261b('0x4e')}}];for(const _0x524617 of _0x2755fe){let _0x41d1eb={'type':_0x261b('0x22')};if(_0x524617[_0x261b('0x56')]){const _0x580707=new _0x4f0185(_0x524617[_0x261b('0x56')]),_0x30909d=this[_0x261b('0x44')]['commands']['get'](_0x580707[_0x261b('0x32')]);_0x580707[_0x261b('0x59')]('isOn',_0x261b('0x60'))['to'](_0x30909d,_0x261b('0x2d'),_0x261b('0x60')),_0x41d1eb={'type':_0x524617[_0x261b('0x29')],'model':_0x580707};}_0x5123b7['add'](_0x41d1eb);}_0xf72177(_0x27c2cd,_0x5123b7);const _0x4198e6=_0x2755fe[_0x261b('0x2')](_0x2c4143=>null!=_0x2c4143[_0x261b('0x56')])[_0x261b('0x4c')](_0x353bcd=>this['editor'][_0x261b('0x41')][_0x261b('0x63')](_0x353bcd[_0x261b('0x56')][_0x261b('0x32')])),_0x3f8335=_0x27c2cd['buttonView'];return _0x3f8335['actionView'][_0x261b('0x36')](_0x261b('0x60')),_0x3f8335[_0x261b('0xb')][_0x261b('0x36')](_0x261b('0x60')),_0x3f8335['actionView']['bind']('isEnabled')['to'](_0x3eeb1b,_0x261b('0x60')),_0x3f8335[_0x261b('0xb')][_0x261b('0x59')](_0x261b('0x60'))[_0x261b('0x57')](_0x4198e6,_0x261b('0x60'),(..._0x1b755f)=>_0x1b755f['some'](_0x4fd7cf=>_0x4fd7cf)),_0x27c2cd['on'](_0x261b('0x9'),_0x23c8ed=>{this[_0x261b('0x44')][_0x261b('0x9')](_0x23c8ed[_0x261b('0x52')][_0x261b('0x32')]),this[_0x261b('0x44')]['editing'][_0x261b('0x18')][_0x261b('0x66')]();}),_0x27c2cd;}[_0x261b('0x5e')](_0x47bbcd){const _0x34d88d=this[_0x261b('0x44')],_0x442c01=_0x34d88d['config'],_0x1975e8=_0x34d88d[_0x261b('0x4a')][_0x261b('0x63')]('Annotations'),_0xad3747=_0x34d88d[_0x261b('0x4a')]['get'](_0x261b('0x3b')),_0x4a1543=_0x34d88d[_0x261b('0x4a')][_0x261b('0x63')](_0x261b('0x47')),_0x3ddc71=_0x34d88d[_0x261b('0x4a')][_0x261b('0x63')](_0x566df6)['me'],_0x83466f=_0x442c01[_0x261b('0x63')](_0x261b('0x31'))['SuggestionThreadView'],{CommentsListView:_0x1efec6,CommentThreadInputView:_0x350440}=_0x34d88d['plugins']['get']('CommentsUI');let _0x12dcf5,_0x29d633;this[_0x261b('0x11')][_0x261b('0x27')](_0x47bbcd['id'])?(_0x29d633=this['_annotationViews']['get'](_0x47bbcd['id']),_0x12dcf5=_0x29d633[_0x261b('0x33')]):(_0x12dcf5=new _0x83466f(_0x34d88d[_0x261b('0x0')],_0x47bbcd,_0x3ddc71,{'disableComments':this['_disableComments'],'editorConfig':_0x442c01['get'](_0x261b('0x2f')),'maxCommentsWhenCollapsed':_0x442c01[_0x261b('0x63')](_0x261b('0x68')),'maxThreadTotalWeight':_0x442c01['get'](_0x261b('0x5')),'maxCommentCharsWhenCollapsed':_0x442c01[_0x261b('0x63')](_0x261b('0x51')),'formatDateTime':_0x252b86(_0x442c01[_0x261b('0x63')](_0x261b('0x0'))),'CommentView':_0x442c01[_0x261b('0x63')](_0x261b('0x38'))[_0x261b('0x26')],'CommentsListView':_0x1efec6,'CommentThreadInputView':_0x350440}),_0x12dcf5[_0x261b('0x3')]['on'](_0x261b('0x9'),()=>{_0x34d88d[_0x261b('0x37')][_0x261b('0x18')][_0x261b('0x66')]();}),_0x12dcf5['discardButton']['on']('execute',()=>{_0x34d88d['editing']['view']['focus']();}),_0x29d633=_0x1975e8['createAnnotationView'](this[_0x261b('0x44')][_0x261b('0x0')],_0x12dcf5),_0x29d633[_0x261b('0x59')](_0x261b('0x62'))['to'](_0x12dcf5,_0x261b('0x62')),_0x29d633[_0x261b('0x59')](_0x261b('0x5b'))['to'](_0x12dcf5),_0x29d633[_0x261b('0x59')]('type')['to'](_0x12dcf5,_0x261b('0x29'),_0x59f3a5=>_0x261b('0x1f')+_0x59f3a5),this[_0x261b('0x11')][_0x261b('0x2a')](_0x47bbcd['id'],_0x29d633));const _0x13e57e=_0xad3747[_0x261b('0x30')](_0x47bbcd[_0x261b('0x43')],_0x12dcf5),_0x3ea9e4=new _0x55a883(_0x34d88d,_0x47bbcd,_0x12dcf5,_0x13e57e),_0x11fff3=_0x47bbcd['getAllAdjacentSuggestions']()['filter'](_0x2ec8b5=>_0x2ec8b5[_0x261b('0x50')]);_0x12dcf5[_0x261b('0x3d')]=_0x34d88d[_0x261b('0x4a')]['get'](_0x261b('0x2e'))[_0x261b('0x58')]['getDescriptions'](_0x11fff3),this[_0x261b('0x39')][_0x261b('0x2a')](_0x47bbcd,_0x3ea9e4),this[_0x261b('0x69')][_0x261b('0x2a')](_0x12dcf5,_0x3ea9e4);const _0x3be1c8=_0x1975e8[_0x261b('0x25')]({'view':_0x29d633,'target':()=>{const _0x2423d9=[],_0x1aec32=_0x47bbcd[_0x261b('0x7')]()[_0x261b('0x2')](_0x532093=>_0x532093[_0x261b('0x50')]);for(const _0x4393a1 of _0x1aec32)_0x2423d9[_0x261b('0x5c')](..._0x4393a1[_0x261b('0x4')]());return _0x3f8088(_0x34d88d[_0x261b('0x37')],_0x2423d9);},'type':()=>_0x261b('0x1f')+_0x3ea9e4[_0x261b('0x18')][_0x261b('0x29')]});_0xad3747[_0x261b('0x35')](_0x12dcf5,_0x3be1c8),_0x1975e8['add'](_0x3be1c8),_0x4a1543['registerAnnotation'](_0x3be1c8);}[_0x261b('0x15')](_0x502ca0){const _0x5ce855=this[_0x261b('0x44')]['plugins'][_0x261b('0x63')]('Annotations'),_0x2fe2d0=this[_0x261b('0x39')][_0x261b('0x63')](_0x502ca0),_0x5c4bd5=_0x2fe2d0[_0x261b('0x18')],_0x43d54f=_0x5ce855[_0x261b('0x42')](_0x5c4bd5);_0x43d54f&&_0x5ce855['remove'](_0x43d54f),this[_0x261b('0x39')][_0x261b('0x12')](_0x502ca0),this[_0x261b('0x69')][_0x261b('0x12')](_0x5c4bd5),_0x2fe2d0['destroy']();}[_0x261b('0x6a')](_0x47ed46){if(!_0x47ed46[_0x261b('0x50')]||!this[_0x261b('0x39')][_0x261b('0x27')](_0x47ed46))return;const _0x41afcd=this[_0x261b('0x44')][_0x261b('0x4a')]['get'](_0x261b('0x2e')),_0x313cfc=this['_suggestionToController']['get'](_0x47ed46),_0x2aaacf=_0x47ed46[_0x261b('0x7')]();_0x313cfc[_0x261b('0x18')][_0x261b('0x3d')]=_0x41afcd[_0x261b('0x58')]['getDescriptions'](_0x2aaacf);}[_0x261b('0xa')](){for(const _0x5ce320 of this[_0x261b('0x39')][_0x261b('0x65')]())this[_0x261b('0x15')](_0x5ce320);for(const _0x1381bf of this[_0x261b('0x11')]['values']())_0x1381bf[_0x261b('0x33')][_0x261b('0xa')]();super[_0x261b('0xa')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xed59=['destroy','locale','getRanges','stopListening','bind','canAccept','_discardCommand','execute','view','commands','_acceptCommand','_editor','canDiscard','unbind','get','model','_removePendingAction','isDirty','isEnabled','discardSuggestion','plugins','commentThreadController','acceptSuggestion','_pendingAction','PendingActions','canEditAt','_setPendingAction','listenTo'];(function(_0x1b729e,_0xed5982){const _0x50c06a=function(_0x2810d){while(--_0x2810d){_0x1b729e['push'](_0x1b729e['shift']());}};_0x50c06a(++_0xed5982);}(_0xed59,0xd7));const _0x50c0=function(_0x1b729e,_0xed5982){_0x1b729e=_0x1b729e-0x0;let _0x50c06a=_0xed59[_0x1b729e];return _0x50c06a;};import{ObservableMixin as _0x7c4a94}from'ckeditor5/src/utils';import{getTranslation as _0x26f88b}from'../utils/common-translations';export default class qt extends _0x7c4a94(){constructor(_0x47c8c5,_0x5969ac,_0x4bb745,_0x118b00){super(),this[_0x50c0('0x18')]=_0x5969ac,this[_0x50c0('0x11')]=_0x4bb745,this['commentThreadController']=_0x118b00,this[_0x50c0('0x14')]=_0x47c8c5,this[_0x50c0('0x13')]=_0x47c8c5[_0x50c0('0x12')][_0x50c0('0x17')](_0x50c0('0x3')),this['_discardCommand']=_0x47c8c5[_0x50c0('0x12')][_0x50c0('0x17')](_0x50c0('0x0')),this[_0x50c0('0x11')]['bind'](_0x50c0('0x1b'))['to'](this[_0x50c0('0x13')],this[_0x50c0('0xf')],(_0x20dfd0,_0x3e1a95)=>_0x20dfd0||_0x3e1a95),this[_0x50c0('0x11')][_0x50c0('0xd')](_0x50c0('0xe'))['to'](this[_0x50c0('0x13')],_0x50c0('0x1b'),_0x5a0eac=>_0x5a0eac&&this[_0x50c0('0x14')][_0x50c0('0x18')][_0x50c0('0x6')](_0x5969ac[_0x50c0('0xb')]())),this[_0x50c0('0x11')][_0x50c0('0xd')](_0x50c0('0x15'))['to'](this['_discardCommand'],'isEnabled',_0x4b1ee8=>_0x4b1ee8&&this[_0x50c0('0x14')]['model'][_0x50c0('0x6')](_0x5969ac[_0x50c0('0xb')]())),this['_pendingAction']=null,_0x4bb745['isDirty']&&this[_0x50c0('0x7')](),this['listenTo'](_0x4bb745,_0x50c0('0x3'),()=>this[_0x50c0('0x3')]()),this[_0x50c0('0x8')](_0x4bb745,_0x50c0('0x0'),()=>this[_0x50c0('0x0')]()),this[_0x50c0('0x8')](_0x4bb745,'change:isDirty',()=>{_0x4bb745[_0x50c0('0x1a')]?this[_0x50c0('0x7')]():this[_0x50c0('0x19')]();});}[_0x50c0('0x3')](){this[_0x50c0('0x13')][_0x50c0('0x10')](this[_0x50c0('0x18')]['id']);}[_0x50c0('0x0')](){this[_0x50c0('0xf')][_0x50c0('0x10')](this[_0x50c0('0x18')]['id']);}[_0x50c0('0x9')](){this[_0x50c0('0x11')][_0x50c0('0x16')]('isEnabled'),this[_0x50c0('0x11')][_0x50c0('0x16')](_0x50c0('0xe')),this[_0x50c0('0x11')]['unbind'](_0x50c0('0x15')),this[_0x50c0('0xc')](),this[_0x50c0('0x2')][_0x50c0('0x9')](),this[_0x50c0('0x4')]&&this[_0x50c0('0x19')]();}[_0x50c0('0x7')](){const _0x59ae8d=_0x26f88b(this[_0x50c0('0x14')][_0x50c0('0xa')],'PENDING_ACTION_SUGGESTION');this[_0x50c0('0x4')]=this[_0x50c0('0x14')][_0x50c0('0x1')][_0x50c0('0x17')](_0x50c0('0x5'))['add'](_0x59ae8d);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x50c0('0x14')][_0x50c0('0x1')][_0x50c0('0x17')](_0x50c0('0x5'))['remove'](this['_pendingAction']),this[_0x50c0('0x4')]=null;}}
23
+ const _0xe3d7=['add','commentThreadController','locale','isDirty','destroy','_removePendingAction','isEnabled','canDiscard','commands','canAccept','_discardCommand','_setPendingAction','listenTo','bind','plugins','_acceptCommand','PENDING_ACTION_SUGGESTION','unbind','model','execute','_editor','discardSuggestion','view','getRanges','PendingActions','acceptSuggestion','canEditAt','change:isDirty','get','_pendingAction'];(function(_0x29cc31,_0xe3d731){const _0x4ff696=function(_0x55285b){while(--_0x55285b){_0x29cc31['push'](_0x29cc31['shift']());}};_0x4ff696(++_0xe3d731);}(_0xe3d7,0x113));const _0x4ff6=function(_0x29cc31,_0xe3d731){_0x29cc31=_0x29cc31-0x0;let _0x4ff696=_0xe3d7[_0x29cc31];return _0x4ff696;};import{ObservableMixin as _0x1d2524}from'ckeditor5/src/utils';import{getTranslation as _0x46a224}from'../utils/common-translations';export default class qt extends _0x1d2524(){constructor(_0x7b945b,_0x7aba81,_0x35e595,_0x18a6b7){super(),this['model']=_0x7aba81,this['view']=_0x35e595,this[_0x4ff6('0x1a')]=_0x18a6b7,this[_0x4ff6('0xf')]=_0x7b945b,this[_0x4ff6('0xa')]=_0x7b945b[_0x4ff6('0x3')][_0x4ff6('0x17')](_0x4ff6('0x14')),this[_0x4ff6('0x5')]=_0x7b945b[_0x4ff6('0x3')][_0x4ff6('0x17')](_0x4ff6('0x10')),this[_0x4ff6('0x11')]['bind']('isEnabled')['to'](this['_acceptCommand'],this[_0x4ff6('0x5')],(_0x234a60,_0x4fca75)=>_0x234a60||_0x4fca75),this[_0x4ff6('0x11')][_0x4ff6('0x8')](_0x4ff6('0x4'))['to'](this[_0x4ff6('0xa')],_0x4ff6('0x1'),_0x27eb11=>_0x27eb11&&this[_0x4ff6('0xf')][_0x4ff6('0xd')][_0x4ff6('0x15')](_0x7aba81[_0x4ff6('0x12')]())),this[_0x4ff6('0x11')][_0x4ff6('0x8')]('canDiscard')['to'](this[_0x4ff6('0x5')],'isEnabled',_0x582f36=>_0x582f36&&this[_0x4ff6('0xf')][_0x4ff6('0xd')][_0x4ff6('0x15')](_0x7aba81[_0x4ff6('0x12')]())),this[_0x4ff6('0x18')]=null,_0x35e595[_0x4ff6('0x1c')]&&this[_0x4ff6('0x6')](),this[_0x4ff6('0x7')](_0x35e595,_0x4ff6('0x14'),()=>this[_0x4ff6('0x14')]()),this['listenTo'](_0x35e595,_0x4ff6('0x10'),()=>this[_0x4ff6('0x10')]()),this[_0x4ff6('0x7')](_0x35e595,_0x4ff6('0x16'),()=>{_0x35e595['isDirty']?this[_0x4ff6('0x6')]():this[_0x4ff6('0x0')]();});}[_0x4ff6('0x14')](){this[_0x4ff6('0xa')][_0x4ff6('0xe')](this['model']['id']);}['discardSuggestion'](){this[_0x4ff6('0x5')]['execute'](this[_0x4ff6('0xd')]['id']);}[_0x4ff6('0x1d')](){this[_0x4ff6('0x11')][_0x4ff6('0xc')](_0x4ff6('0x1')),this[_0x4ff6('0x11')][_0x4ff6('0xc')](_0x4ff6('0x4')),this['view'][_0x4ff6('0xc')](_0x4ff6('0x2')),this['stopListening'](),this[_0x4ff6('0x1a')][_0x4ff6('0x1d')](),this['_pendingAction']&&this[_0x4ff6('0x0')]();}[_0x4ff6('0x6')](){const _0x5ade44=_0x46a224(this[_0x4ff6('0xf')][_0x4ff6('0x1b')],_0x4ff6('0xb'));this[_0x4ff6('0x18')]=this[_0x4ff6('0xf')][_0x4ff6('0x9')][_0x4ff6('0x17')](_0x4ff6('0x13'))[_0x4ff6('0x19')](_0x5ade44);}[_0x4ff6('0x0')](){null!==this['_pendingAction']&&this[_0x4ff6('0xf')][_0x4ff6('0x9')][_0x4ff6('0x17')](_0x4ff6('0x13'))['remove'](this[_0x4ff6('0x18')]),this['_pendingAction']=null;}}