@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230817.0 → 0.0.0-nightly-20230818.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 _0x47c5=['commands','has','@external','low','deletion:chain','isExternal','addMarker:suggestion:formatBlock','_suggestionFactory','_rangeIsInLocalUserInsertion','isLocal','isEqual','markMultiRangeInsertion','includes','_defaultCallbacks','getChangedMarkers','change:data','mapper','high','_checkSuggestionCorrectness','filter','_joinWithAdjacentSuggestions','_adapter','ck-suggestion-marker--active','listenTo','sort','for','nodeAfter','execute','reconvertMarker','removeMarker','locale','range','editor','isRemovable','_suggestions','detach','_commentsRepository','push','bindElementToMarker','addComment','attributes','removeAttribute','deleteContent','_handleNewSuggestionMarker','conversion','_descriptionFactory','acceptAllSuggestions','splitPosition','toJSON','isMultiRange','subType','values','isCollapsed','_editor','join','elementEnd','trackChanges.trackFormatChanges','collaboration.channelId','track-changes-adapter-already-set','isObject','change','delete','accept','markers','nodeBefore','forceDefaultExecution','removeClass','getAllAdjacentSuggestions','start','rootName','insertion','config','chain','_cutOutSuggestionMarker','getSuggestion','_registerDefaultCallbacks','getCommentThread','get','deletion:','CommentsRepository','_getAuthorFromId','refresh','createSelection','add','multi','update:suggestion','insertion:','isAtStart','getRange','head','getAttribute','data','_updateSuggestionData','isUndo','_setSuggestionData','getCustomProperty','originalSuggestionId','previous','track-changes-suggestion-not-found','fromCharCode','lowest','containsRangeInObject','set','map','showSuggestionHighlights','getIntersection','_suggestionState','fire','change:_saved','selection','hasCommentThread','requires','_mergeNestedSuggestions','writer','_addSuggestionMarker','deletion','root','acceptSuggestion','clone','getLastMatchingPosition','external:','consume','formatBlock:discard','getMultiRangeId','never','markerName','formatBlock:join','discardSelectedSuggestions','$graveyard','_joinSuggestions','insertion:accept','addCommentThread','suggestionLoaded','_saved','from','howMany','error-saving-suggestion-data-suggestion-discarded','getDifference','schema','discardAllSuggestions','_findSuggestions','isBlock','track-changes-user-not-found','isInsideObject','formatInline:accept','document','suggestion:','suggestion','createPositionBefore','createPositionAfter','trackChanges','addSuggestionData','commandName','containerElement','data-suggestion','forward','Users','highest','_enabledCommands','containsRange','then','move','isAtEnd','insertion:join','markInsertion','change:activeMarkers','elementStart','parent','createdAt','addMarkerName','isTouching','marker-count','newRange','formatGroupId','track-changes-adapter-missing-getsuggestion','getRanges','length','skipNestingCheck','formatInline:discard','formatInline:','remove','next','discard','toViewElement','end','markInlineFormat','activeMarkers','_getSuggestionData','size','insertion:discard','getItems','containsItem','isSelectable','removeMarkers','discardSuggestion','isOwn','markerReady','elementToElement','unbind','isInContent','getFirstMarker','createRange','markDeletion','formatBlock:accept','deletion:accept','insertion:chain','markerToData','isDocumentOperation','markerNameToElements','value','removed','resolve','_setSuggestionRange','hasComments','_splitMarkerName','addSuggestion','fetchCommentThread','ck-suggestion-marker-formatBlock','return','oldRange','markBlockFormat','catch','element','multipleBlocks','$textProxy','always','applyOperation','PendingActions','_getExternalAuthor','addRange','buildSuggestion','enableCommand','addHighlight','dataToMarker','rejected','containsPosition','formatInline','isBefore','updateMarker','model','dataReady','markMultiRangeDeletion','getUser','isAfter','createPositionAt','getChanges','acceptSelectedSuggestions','moveTargetPosition','setAttribute','upcast','registerPostFixer','position','_breakSuggestionMarker','isIntersectingWithRange','commentThread','createElement','before','registerCustomCallback','isNextTo','addClass','some','options','markMultiRangeBlockFormat','getWalker','formatInline:chain','getFirstRange','trackChangesCommand','_isForcedDefaultExecutionBlock','_customCallbacks','authoredAt','hasSuggestion','ready','trackChanges.mergeNestedSuggestions','getSuggestions','_addThreadToSuggestion','ck-suggestion-marker','insertContent','adapter','batch','formatBlock:','define','getShiftedBy','plugins','consumable','unbindElementFromMarkerName','isLimit','creator','formatBlock','after','setSelection','getSuggestionCallback','deletion:discard','updateSuggestion','name','getNearestSelectionRange','_trackFormatChanges','fromRange','differ','group','open','_createSuggestion','item','type','split','dataDowncast','_refreshSuggestionsChain','addMarker','editingDowncast','_model','author','stop','_removeSuggestion','every','splice','formatInline:join','suggestionChanged','PENDING_ACTION_SUGGESTION','backward','pluginName','ck-suggestion-marker-','notReady'];(function(_0x342c28,_0x47c5c3){const _0x2a0847=function(_0x35d6b1){while(--_0x35d6b1){_0x342c28['push'](_0x342c28['shift']());}};_0x2a0847(++_0x47c5c3);}(_0x47c5,0x13f));const _0x2a08=function(_0x342c28,_0x47c5c3){_0x342c28=_0x342c28-0x0;let _0x2a0847=_0x47c5[_0x342c28];return _0x2a0847;};import{Plugin as _0x9bf3f0,PendingActions as _0x5e0d00}from'ckeditor5/src/core';import{LiveRange as _0x104eb2}from'ckeditor5/src/engine';import{CKEditorError as _0x248bc3,uid as _0x1938d2,priorities as _0x386e38,logWarning as _0x5d2605}from'ckeditor5/src/utils';import{toWidget as _0x4cf11d}from'ckeditor5/src/widget';import{Users as _0x12cb27,hashObject as _0x4c1c58}from'ckeditor5-collaboration/src/collaboration-core';import _0x2fc740 from'./commands/trackchangescommand';import _0x3fef26 from'./commands/acceptsuggestioncommand';import _0x411370 from'./commands/discardsuggestioncommand';import _0x25ef5a from'./commands/executeonallsuggestionscommand';import _0x51188b from'./commands/executeonselectedsuggestionscommand';import _0x21d5ce from'./suggestion';import _0x227f09 from'./suggestiondescriptionfactory';import _0x57e084 from'./integrations/alignment';import _0x2fd8a2 from'./integrations/basicstyles';import _0x130288 from'./integrations/blockquote';import _0x2db2aa from'./integrations/ckbox';import _0x271865 from'./integrations/codeblock';import _0x4c716d from'./integrations/comments';import _0x46ca49 from'./integrations/deletecommand';import _0x44ae24 from'./integrations/documentlist';import _0x312133 from'./integrations/entercommand';import _0x4482c6 from'./integrations/findandreplace';import _0x12aafc from'./integrations/font';import _0x2382af from'./integrations/formatpainter';import _0x1abf64 from'./integrations/heading';import _0xf046fb from'./integrations/highlight';import _0x36e02f from'./integrations/horizontalline';import _0x4347cc from'./integrations/htmlembed';import _0x1d1079 from'./integrations/image';import _0x2b42af from'./integrations/imagereplace';import _0x58db04 from'./integrations/importword';import _0x710fb2 from'./integrations/indent';import _0x1e3bb0 from'./integrations/inputcommand';import _0x406902 from'./integrations/link';import _0x453cb0 from'./integrations/list';import _0xf568fe from'./integrations/listproperties';import _0x6c0f38 from'./integrations/mediaembed';import _0x10e95e from'./integrations/mention';import _0x4c714e from'./integrations/pagebreak';import _0x1fea08 from'./integrations/paragraph';import _0x1cd2c6 from'./integrations/removeformat';import _0x297299 from'./integrations/restrictededitingmode';import _0x2218ad from'./integrations/shiftentercommand';import _0x5c47f6 from'./integrations/standardeditingmode';import _0x2644ae from'./integrations/style';import _0x1f19e8 from'./integrations/table';import _0x2808fb from'./integrations/tablemergesplit';import _0x5bcff2 from'./integrations/tableheadings';import _0x247bd6 from'./integrations/tableclipboard';import _0xd8d317 from'./integrations/tablecolumnresize';import _0xfa75ee from'./integrations/template';import _0x2f5fa7 from'./integrations/tableofcontents';import _0x20a55d from'./integrations/title';import _0x517160 from'./integrations/undo';import{getTranslation as _0x5528e0}from'./utils/common-translations';import _0x100e65 from'./integrations/tablecaption';import _0x39c704 from'./integrations/documentlistproperties';import _0x15328e from'./integrations/tableproperties';export default class p extends _0x9bf3f0{static get[_0x2a08('0x71')](){return['CommentsRepository',_0x12cb27,_0x5e0d00,_0x57e084,_0x2fd8a2,_0x130288,_0x2db2aa,_0x271865,_0x4c716d,_0x46ca49,_0x44ae24,_0x39c704,_0x312133,_0x4482c6,_0x12aafc,_0x2382af,_0x1abf64,_0xf046fb,_0x36e02f,_0x4347cc,_0x1d1079,_0x2b42af,_0x58db04,_0x710fb2,_0x1e3bb0,_0x406902,_0x453cb0,_0xf568fe,_0x6c0f38,_0x10e95e,_0x4c714e,_0x1fea08,_0x1cd2c6,_0x297299,_0x2218ad,_0x5c47f6,_0x2644ae,_0x1f19e8,_0x2808fb,_0x5bcff2,_0x100e65,_0x247bd6,_0xd8d317,_0x2f5fa7,_0x15328e,_0xfa75ee,_0x20a55d,_0x517160];}static get[_0x2a08('0x140')](){return'TrackChangesEditing';}constructor(_0x3cfb6a){function _0x205c33(_0x185669){return _0x185669['map'](_0x26e90=>String[_0x2a08('0x65')](_0x26e90))[_0x2a08('0x38')]('');}super(_0x3cfb6a),this[_0x2a08('0x68')]('activeMarkers',[]),this['on'](_0x2a08('0xa7'),(_0x3f585c,_0x310bea,_0x81d29d,_0x3a16dc)=>{this[_0x2a08('0x136')]['change'](()=>{for(const _0x3c0b29 of[..._0x3a16dc,..._0x81d29d])this[_0x2a08('0x136')]['markers'][_0x2a08('0x3')](_0x3c0b29)&&_0x3cfb6a['editing'][_0x2a08('0x1e')](_0x3c0b29);});}),this[_0x2a08('0x2f')]=new _0x227f09(this[_0x2a08('0x22')][_0x2a08('0xf1')]['schema'],this['editor']['locale']),this[_0x2a08('0x17')]=null,this[_0x2a08('0x9')]=new Dt(this[_0x2a08('0x22')]),this[_0x2a08('0x24')]=new Map(),this[_0x2a08('0x26')]=_0x3cfb6a[_0x2a08('0x11c')]['get'](_0x2a08('0x51')),this[_0x2a08('0xa0')]=new Set(),this[_0x2a08('0x136')]=this[_0x2a08('0x22')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2a08('0x10d')]=!0x1,_0x3cfb6a[_0x2a08('0x49')][_0x2a08('0x11a')](_0x2a08('0x3a'),'default'),this[_0x2a08('0x129')]=_0x3cfb6a[_0x2a08('0x49')][_0x2a08('0x4f')]('trackChanges.trackFormatChanges'),_0x3cfb6a[_0x2a08('0x49')]['define'](_0x2a08('0x112'),!0x0),this[_0x2a08('0x72')]=_0x3cfb6a['config']['get'](_0x2a08('0x112')),this['trackChangesCommand']=new _0x2fc740(_0x3cfb6a,this[_0x2a08('0xa0')]),this[_0x205c33([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x205c33([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x34]);}['init'](){const _0x3807c5=this[_0x2a08('0x22')];_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')]('editingDowncast')['markerToHighlight']({'model':_0x2a08('0x95'),'view':_0x13e25f=>{const {id:_0x45ea28,type:_0x14548c}=this['_splitMarkerName'](_0x13e25f[_0x2a08('0x7f')]),_0x57429c=[_0x2a08('0x115'),_0x2a08('0x0')+_0x14548c];let _0x201aaa=0xbb8;return this[_0x2a08('0xbc')][_0x2a08('0xe')](_0x13e25f[_0x2a08('0x7f')])&&(_0x57429c[_0x2a08('0x27')](_0x2a08('0x18')),_0x201aaa=0xbc2),_0x2a08('0x75')==_0x14548c&&(_0x201aaa+=0x5),{'classes':_0x57429c,'attributes':{'data-suggestion':_0x45ea28},'priority':_0x201aaa};}}),_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')](_0x2a08('0x132'))[_0x2a08('0x55')](_0x53d74d=>{_0x53d74d['on']('addMarker:suggestion',(_0x1e1534,_0x447c30,_0x5e995b)=>{if(!_0x5e995b[_0x2a08('0x107')][_0x2a08('0x6a')])return;const _0x5a17c8=_0x447c30[_0x2a08('0x12f')];if(!_0x5a17c8)return;const _0x557c13=_0x5e995b[_0x2a08('0x12')][_0x2a08('0xb9')](_0x5a17c8);_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')][_0x2a08('0x3d')](_0x5a17c8)&&_0x557c13&&!_0x557c13[_0x2a08('0x61')]('widget')&&_0x557c13['is'](_0x2a08('0x9b'))&&_0x4cf11d(_0x557c13,_0x5e995b[_0x2a08('0x73')]);},{'priority':_0x2a08('0x13')});}),_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')]('dataDowncast')['markerToHighlight']({'model':_0x2a08('0x95'),'view':(_0x28861b,_0x3c0259)=>{if(!_0x3c0259[_0x2a08('0x107')][_0x2a08('0x6a')])return null;const {type:_0x5e7e5e}=this[_0x2a08('0xd8')](_0x28861b[_0x2a08('0x7f')]);return{'classes':[_0x2a08('0x115'),'ck-suggestion-marker-'+_0x5e7e5e],'priority':0xbb8};}});const _0x202b66=({showActiveMarkers:_0x2e2910=!0x0}={})=>(_0x3f160f,_0x3b1a48,_0x228529)=>{if(!_0x3b1a48[_0x2a08('0x12f')])return;if(_0x3b1a48[_0x2a08('0x12f')]['is'](_0x2a08('0x6f')))return void _0x228529['consumable']['consume'](_0x3b1a48['item'],_0x3f160f[_0x2a08('0x127')]);const _0x115ec1=_0x228529[_0x2a08('0x12')][_0x2a08('0xb9')](_0x3b1a48['item']);if(!(_0x3b1a48[_0x2a08('0x12f')]['is'](_0x2a08('0xe0'))&&_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')][_0x2a08('0x8f')](_0x3b1a48[_0x2a08('0x12f')])&&!_0x115ec1[_0x2a08('0x61')](_0x2a08('0xea'))))return;const {id:_0x234ea8}=this[_0x2a08('0xd8')](_0x3b1a48[_0x2a08('0x7f')]);_0x228529[_0x2a08('0x73')][_0x2a08('0x105')]([_0x2a08('0x115'),'ck-suggestion-marker-formatBlock'],_0x115ec1),_0x228529[_0x2a08('0x73')][_0x2a08('0xfa')]('data-suggestion',_0x234ea8,_0x115ec1),_0x228529[_0x2a08('0x12')][_0x2a08('0x28')](_0x115ec1,_0x3b1a48[_0x2a08('0x7f')]),_0x2e2910&&(this[_0x2a08('0xbc')][_0x2a08('0xe')](_0x3b1a48[_0x2a08('0x7f')])?_0x228529[_0x2a08('0x73')][_0x2a08('0x105')]('ck-suggestion-marker--active',_0x115ec1):_0x228529[_0x2a08('0x73')][_0x2a08('0x44')]('ck-suggestion-marker--active',_0x115ec1));for(const _0x43cf7b of _0x3807c5[_0x2a08('0xf1')]['createRangeIn'](_0x3b1a48['item'])[_0x2a08('0xc0')]())_0x228529[_0x2a08('0x11d')][_0x2a08('0x7b')](_0x43cf7b,_0x3f160f[_0x2a08('0x127')]);_0x228529['consumable'][_0x2a08('0x7b')](_0x3b1a48[_0x2a08('0x12f')],_0x3f160f[_0x2a08('0x127')]);};_0x3807c5['conversion'][_0x2a08('0x1b')](_0x2a08('0x132'))[_0x2a08('0x55')](_0x3c3850=>{_0x3c3850['on']('addMarker:suggestion:formatBlock',(_0x387791,_0x276d4e,_0x241d69)=>{_0x241d69[_0x2a08('0x107')][_0x2a08('0x6a')]&&_0x202b66({'showActiveMarkers':!0x1})(_0x387791,_0x276d4e,_0x241d69);},{'priority':_0x2a08('0x9f')});}),_0x3807c5['conversion'][_0x2a08('0x1b')](_0x2a08('0x132'))[_0x2a08('0xd0')]({'model':_0x2a08('0x95'),'view':(_0x3eb8d3,_0x1dfd6b)=>_0x1dfd6b[_0x2a08('0x107')][_0x2a08('0x6a')]?null:{'group':_0x2a08('0x95'),'name':_0x3eb8d3['substr'](0xb)}}),_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')](_0x2a08('0xfb'))[_0x2a08('0xc7')]({'view':{'name':_0x2a08('0x95'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a0e92,{writer:_0x5bc7be})=>{let _0x5f3d71=_0x2a08('0x94')+_0x4a0e92[_0x2a08('0x5c')]('suggestion-type')+':'+_0x4a0e92[_0x2a08('0x5c')]('id');return _0x4a0e92[_0x2a08('0x5c')]('marker-count')&&(_0x5f3d71+=':'+_0x4a0e92['getAttribute'](_0x2a08('0xad'))),_0x5bc7be[_0x2a08('0x101')]('$marker',{'data-name':_0x5f3d71});}}),_0x3807c5[_0x2a08('0x2e')]['for'](_0x2a08('0xfb'))[_0x2a08('0xeb')]({'view':'suggestion'}),_0x3807c5[_0x2a08('0x2e')]['for'](_0x2a08('0x135'))[_0x2a08('0x55')](_0x130c2b=>{_0x130c2b['on'](_0x2a08('0x8'),_0x202b66(),{'priority':_0x2a08('0x13')});}),_0x3807c5['conversion'][_0x2a08('0x1b')](_0x2a08('0x135'))[_0x2a08('0x55')](_0x2ff032=>{_0x2ff032['on']('removeMarker:suggestion:formatBlock',(_0x67cf7c,_0x35e923,_0xffe75)=>{const _0x36a205=_0xffe75[_0x2a08('0x12')][_0x2a08('0xd2')](_0x35e923[_0x2a08('0x7f')]);if(_0x36a205)for(const _0x142218 of _0x36a205)_0x142218[_0x2a08('0x61')](_0x2a08('0xea'))||(_0xffe75[_0x2a08('0x73')][_0x2a08('0x44')](['ck-suggestion-marker',_0x2a08('0xdb'),_0x2a08('0x18')],_0x142218),_0xffe75[_0x2a08('0x73')][_0x2a08('0x2b')](_0x2a08('0x9c'),_0x142218),_0xffe75[_0x2a08('0x12')][_0x2a08('0x11e')](_0x142218,_0x35e923[_0x2a08('0x7f')]));},{'priority':'high'});}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')][_0x2a08('0xfc')](_0x599e67=>{let _0x43b17b=!0x1;const _0x4b2516=Array[_0x2a08('0x88')](_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')][_0x2a08('0x12b')][_0x2a08('0x10')]()),_0x5720d0=new Set();for(const {name:_0x4d9354,data:_0x5331f6}of _0x4b2516){const {group:_0x183cab,type:_0x274ce1,id:_0x1e65f4}=this[_0x2a08('0xd8')](_0x4d9354);if('suggestion'!==_0x183cab)continue;const _0x23319e=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x1e65f4);if(null!=_0x5331f6['newRange']){_0x2a08('0xee')==_0x274ce1&&(_0x43b17b=_0x43b17b||Mt(_0x5331f6[_0x2a08('0xae')],_0x4d9354,_0x599e67,_0x3807c5['model'][_0x2a08('0x8c')]));if(_0x5331f6['newRange'][_0x2a08('0x36')]||_0x2a08('0x82')==_0x5331f6[_0x2a08('0xae')][_0x2a08('0x76')][_0x2a08('0x47')]||'formatBlock'==_0x274ce1&&!Nt(_0x5331f6[_0x2a08('0xae')])||'deletion'==_0x274ce1&&!(!_t(_0x396358=_0x5331f6[_0x2a08('0xae')])&&!function(_0x57bea9){return _0x57bea9[_0x2a08('0x46')][_0x2a08('0xa9')]==_0x57bea9[_0x2a08('0xba')][_0x2a08('0x42')]&&_0x57bea9['start']['isAtEnd'];}(_0x396358)))_0x599e67[_0x2a08('0x1f')](_0x4d9354),_0x43b17b=!0x0;else{if(!_0x23319e||!_0x23319e[_0x2a08('0xc9')])continue;_0x5720d0[_0x2a08('0x55')](_0x23319e);}}}var _0x396358;return _0x5720d0[_0x2a08('0xbe')]>0x0&&(_0x43b17b=!!this[_0x2a08('0x16')](_0x5720d0)||_0x43b17b),_0x43b17b;}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')]['registerPostFixer'](_0x103880=>{let _0x507ba4=!0x1;for(const _0x360d1f of _0x3807c5['model'][_0x2a08('0x93')][_0x2a08('0x12b')][_0x2a08('0xf7')]()){if('insert'!=_0x360d1f['type'])continue;const _0x432cfb=_0x360d1f['position'][_0x2a08('0x11b')](_0x360d1f[_0x2a08('0xb2')]);if(_0x432cfb[_0x2a08('0xa4')])for(const _0x4603c3 of this['_suggestions'][_0x2a08('0x35')]()){if(_0x4603c3['isMultiRange']||!_0x4603c3[_0x2a08('0xc9')])continue;if(_0x2a08('0x121')!=_0x4603c3['type'])continue;const _0x2ea0f2=_0x4603c3['getFirstRange']();if(_0x2ea0f2[_0x2a08('0x46')][_0x2a08('0xa9')]!=_0x2ea0f2[_0x2a08('0xba')]['parent']&&_0x2ea0f2[_0x2a08('0xba')]['isEqual'](_0x360d1f['position'])){const _0x307320=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x2ea0f2[_0x2a08('0x46')],_0x432cfb);_0x103880[_0x2a08('0xf0')](_0x4603c3[_0x2a08('0xca')](),{'range':_0x307320}),_0x507ba4=!0x0;}}}return _0x507ba4;}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x41')]['on'](_0x2a08('0x57'),(_0x458608,_0x25f4fa,_0x197b21)=>{if(null==_0x197b21){const {id:_0x141824}=this[_0x2a08('0xd8')](_0x25f4fa[_0x2a08('0x127')]),_0x11d116=this['_suggestions'][_0x2a08('0x4f')](_0x141824);_0x11d116&&_0x11d116[_0x2a08('0xab')](_0x25f4fa[_0x2a08('0x127')]);}}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')]['on'](_0x2a08('0x11'),()=>{const _0x180a47=Array[_0x2a08('0x88')](_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')]['differ']['getChangedMarkers']())['filter'](_0x220581=>_0x2a08('0x95')===this[_0x2a08('0xd8')](_0x220581['name'])[_0x2a08('0x12c')]);if(0x0===_0x180a47[_0x2a08('0xb2')])return;_0x180a47[_0x2a08('0x1a')]((_0x50e864,_0x2b5d98)=>{const _0x107cc3=_0x50e864['data'][_0x2a08('0xdd')],_0x3d26cd=_0x2b5d98[_0x2a08('0x5d')][_0x2a08('0xdd')];return null===_0x107cc3&&null===_0x3d26cd?0x0:null===_0x107cc3&&null!==_0x3d26cd?-0x1:null!==_0x107cc3&&null===_0x3d26cd?0x1:_0x107cc3['start']['isBefore'](_0x3d26cd['start'])?-0x1:0x1;});const _0x464b1a=new Set(),_0x3e250a=new Set();for(const {name:_0x27e8d9,data:_0x4b29ff}of _0x180a47){const {id:_0xe3a1f4}=this[_0x2a08('0xd8')](_0x27e8d9);if(null===_0x4b29ff[_0x2a08('0xdd')]){const _0x2f4924=this[_0x2a08('0x2d')](_0x27e8d9);_0x3e250a[_0x2a08('0x55')](_0x2f4924);}else{const _0x9c3746=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0xe3a1f4);null!==_0x4b29ff[_0x2a08('0xae')]||_0x9c3746[_0x2a08('0xc9')]?(_0x464b1a[_0x2a08('0x55')](_0x9c3746[_0x2a08('0x5b')]),_0x3e250a[_0x2a08('0x55')](_0x9c3746)):this[_0x2a08('0x139')](_0x9c3746);}}_0x3e250a['size']>0x0&&this[_0x2a08('0x133')](_0x3e250a);for(const _0x3b16c5 of _0x464b1a)this[_0x2a08('0x6d')](_0x2a08('0x13d'),_0x3b16c5);}),_0x3807c5[_0x2a08('0xf1')]['on'](_0x2a08('0xe4'),(_0x24f87f,_0x1211ce)=>{const _0x30343e=_0x1211ce[0x0];if(!this[_0x2a08('0x24')]['size'])return;if(!_0x30343e[_0x2a08('0xd1')])return;if(_0x30343e[_0x2a08('0x118')][_0x2a08('0x5f')]||!_0x30343e[_0x2a08('0x118')][_0x2a08('0xb')])return;let _0x423ad7,_0x66f0b6;switch(_0x30343e['type']){case'insert':_0x423ad7=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x30343e[_0x2a08('0xfd')]),_0x66f0b6=_0x423ad7['getShiftedBy'](_0x30343e[_0x2a08('0x89')]);break;case _0x2a08('0x131'):_0x423ad7=_0x3807c5['model'][_0x2a08('0xf6')](_0x30343e[_0x2a08('0x31')]),_0x66f0b6=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x30343e[_0x2a08('0xf9')]);break;case _0x2a08('0xa3'):_0x423ad7=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x30343e['targetPosition']),_0x66f0b6=_0x423ad7[_0x2a08('0x11b')](_0x30343e['howMany']);break;default:return;}const _0x1c76ed=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x423ad7,_0x66f0b6);_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{for(const {suggestion:_0x449d03,meta:_0x2144a8}of this[_0x2a08('0x8e')](_0x1c76ed)){if(_0x449d03[_0x2a08('0x33')])continue;if('formatInline'==_0x449d03[_0x2a08('0x130')])continue;const _0x25c2d0=_0x449d03[_0x2a08('0x5d')]&&_0x449d03['data'][_0x2a08('0xe1')];(_0x2a08('0x121')!=_0x449d03[_0x2a08('0x130')]||_0x2a08('0x131')==_0x30343e['type']&&!_0x25c2d0)&&(_0x2144a8['containsRangeInObject']||'insertion'==_0x449d03[_0x2a08('0x130')]&&_0x2144a8['isOwn']||_0x449d03['getFirstRange']()[_0x2a08('0xa1')](_0x1c76ed)&&this[_0x2a08('0xfe')](_0x449d03,_0x423ad7,_0x66f0b6));}});},{'priority':_0x2a08('0x66')}),_0x3807c5[_0x2a08('0xf1')]['on'](_0x2a08('0x2c'),(_0x220737,_0x23738a)=>{const _0x5ad757=_0x23738a[0x0],_0x45fb28=_0x23738a[0x1];if(_0x45fb28&&_0x45fb28['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2a08('0x10c')][_0x2a08('0xd3')])return;if(_0x5ad757['isCollapsed'])return;const _0x8e6a42=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')],{start:_0xceec9b,end:_0x53483c}=_0x5ad757['getFirstRange'](),_0x4301bc=_0xceec9b[_0x2a08('0x1c')]&&_0x8e6a42[_0x2a08('0x11f')](_0xceec9b[_0x2a08('0x1c')])?null:_0x8e6a42[_0x2a08('0x128')](_0xceec9b,_0x2a08('0x9d')),_0x451f91=_0x53483c[_0x2a08('0x42')]&&_0x8e6a42[_0x2a08('0x11f')](_0x53483c['nodeBefore'])?null:_0x8e6a42[_0x2a08('0x128')](_0x53483c,'backward'),_0x44d54c=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x4301bc?_0x4301bc['start']:_0xceec9b,_0x451f91?_0x451f91[_0x2a08('0xba')]:_0x53483c);_0x3807c5[_0x2a08('0xf1')]['change'](_0x132942=>{this[_0x2a08('0xcc')](_0x44d54c);const _0x41bb8b=_0x3807c5['model'][_0x2a08('0x8c')][_0x2a08('0x128')](_0x44d54c[_0x2a08('0x46')]);_0x5ad757['is']('documentSelection')?_0x132942[_0x2a08('0x123')](_0x41bb8b):_0x5ad757['setTo'](_0x41bb8b);}),_0x220737[_0x2a08('0x138')]();},{'priority':_0x386e38['normal']+0xa}),_0x3807c5[_0x2a08('0xf1')]['on'](_0x2a08('0x116'),(_0x2b6512,_0x2fe73c)=>{const _0x4b33f4=_0x2fe73c[_0x2fe73c['length']-0x1];_0x4b33f4&&_0x4b33f4[_0x2a08('0x43')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{let _0x17fa8e=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x116')](_0x2fe73c[0x0],_0x2fe73c[0x1],_0x2fe73c[0x2],{'forceDefaultExecution':!0x0});if(!_0x17fa8e)return;_0x2b6512[_0x2a08('0xdc')]=_0x17fa8e[_0x2a08('0x78')]();const _0x263d92=_0x17fa8e[_0x2a08('0xba')][_0x2a08('0x42')],_0x2d35ee=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')];_0x263d92&&_0x2d35ee[_0x2a08('0x8f')](_0x263d92)&&!_0x2d35ee['isObject'](_0x263d92)&&(_0x17fa8e=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x17fa8e['start'],_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x263d92,_0x2a08('0xba')))),this[_0x2a08('0xa6')](_0x17fa8e);}),_0x2b6512['stop']());},{'priority':_0x2a08('0x13')}),this[_0x2a08('0x22')][_0x2a08('0x2')][_0x2a08('0x55')](_0x2a08('0x98'),this['trackChangesCommand']),this[_0x2a08('0xe9')](_0x2a08('0x98'));const _0x82e7a5=new _0x3fef26(_0x3807c5,this[_0x2a08('0x24')]);_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')]('acceptSuggestion',_0x82e7a5),this[_0x2a08('0xe9')](_0x2a08('0x77'));const _0x427a5e=new _0x411370(_0x3807c5,this[_0x2a08('0x24')]);_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')](_0x2a08('0xc4'),_0x427a5e),this[_0x2a08('0xe9')]('discardSuggestion'),_0x3807c5['commands'][_0x2a08('0x55')](_0x2a08('0x30'),new _0x25ef5a(_0x3807c5,_0x82e7a5,this['_suggestions'])),this['enableCommand'](_0x2a08('0x30')),_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')](_0x2a08('0x8d'),new _0x25ef5a(_0x3807c5,_0x427a5e,this['_suggestions'])),this[_0x2a08('0xe9')](_0x2a08('0x8d')),_0x3807c5['commands']['add'](_0x2a08('0xf8'),new _0x51188b(_0x3807c5,_0x82e7a5,this['_suggestions'])),this[_0x2a08('0xe9')]('acceptSelectedSuggestions'),_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')]('discardSelectedSuggestions',new _0x51188b(_0x3807c5,_0x427a5e,this['_suggestions'])),this[_0x2a08('0xe9')](_0x2a08('0x81'));const _0x27c55d=_0x3807c5[_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0x51'));this[_0x2a08('0x19')](_0x27c55d,_0x2a08('0x29'),(_0x415632,{threadId:_0x229955})=>{const _0x5d4bc1=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x229955);_0x5d4bc1&&_0x5d4bc1['commentThread']&&0x1===_0x5d4bc1[_0x2a08('0x100')][_0x2a08('0xb2')]&&this[_0x2a08('0x5e')](_0x229955,{'hasComments':!0x0});},{'priority':_0x2a08('0x5')}),this['listenTo'](_0x27c55d,'removeComment',(_0x36d60c,{threadId:_0x223bfb})=>{const _0x25a405=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x223bfb);_0x25a405&&_0x25a405[_0x2a08('0x100')]&&!_0x25a405[_0x2a08('0x100')]['length']&&this[_0x2a08('0x5e')](_0x223bfb,{'hasComments':!0x1});},{'priority':_0x2a08('0x5')});}set[_0x2a08('0x117')](_0xdfe651){if(this[_0x2a08('0x17')])throw new _0x248bc3(_0x2a08('0x3c'),this);this[_0x2a08('0x17')]=_0xdfe651;}get['adapter'](){return this[_0x2a08('0x17')];}[_0x2a08('0x113')]({skipNotAttached:_0x10a9bb=!0x1,toJSON:_0x32cee1=!0x1}={}){const _0x4a483=[];for(const _0x51ec99 of this[_0x2a08('0x24')][_0x2a08('0x35')]())_0x10a9bb&&!_0x51ec99['isInContent']||_0x4a483[_0x2a08('0x27')](_0x51ec99);return _0x32cee1?_0x4a483[_0x2a08('0x69')](_0x2ea79a=>_0x2ea79a[_0x2a08('0x32')]()):_0x4a483;}['getSuggestion'](_0x5898cb){const _0x3f0c75=this[_0x2a08('0x24')]['get'](_0x5898cb);if(!_0x3f0c75)throw new _0x248bc3(_0x2a08('0x64'),this);return _0x3f0c75;}[_0x2a08('0x110')](_0x2e4650){return this[_0x2a08('0x24')][_0x2a08('0x3')](_0x2e4650);}[_0x2a08('0x99')](_0x36580f){const {authorId:_0x4deca3,id:_0x5a26a9,attributes:_0x5eb858}=_0x36580f,[_0x1d2e77,_0x3ba2bf]=_0x36580f[_0x2a08('0x130')]['split'](':'),_0x1cb5df=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x5a26a9)||this['_createSuggestion'](_0x1d2e77,_0x3ba2bf,_0x5a26a9,_0x4deca3,_0x5eb858);if(this['_addThreadToSuggestion'](_0x1cb5df),this[_0x2a08('0x14')](_0x1cb5df,_0x1d2e77,_0x3ba2bf||null,_0x4deca3),_0x1cb5df[_0x2a08('0xaa')]=_0x36580f[_0x2a08('0xaa')],_0x5eb858&&_0x5eb858[_0x2a08('0x4')]){const _0x197268=_0x5eb858[_0x2a08('0x4')],_0x3f593d=this['_getExternalAuthor'](_0x197268['authorName']);_0x1cb5df['authoredAt']=_0x197268[_0x2a08('0xaa')],_0x1cb5df[_0x2a08('0x137')]=_0x3f593d,_0x1cb5df[_0x2a08('0x7')]=!0x0;}else _0x1cb5df[_0x2a08('0x10f')]=_0x36580f['createdAt'];switch(_0x36580f['data']&&(_0x1cb5df[_0x2a08('0x5d')]=_0x36580f[_0x2a08('0x5d')]),_0x36580f['attributes']&&(_0x1cb5df['attributes']=_0x36580f[_0x2a08('0x2a')]),this[_0x2a08('0x17')]&&this[_0x2a08('0x17')][_0x2a08('0xd9')]||(_0x1cb5df[_0x2a08('0x87')]=!0x0),this[_0x2a08('0x6c')][_0x2a08('0x4f')](_0x1cb5df)){case _0x2a08('0x1'):this[_0x2a08('0x6c')]['set'](_0x1cb5df,_0x2a08('0xf2'));break;case _0x2a08('0xc6'):_0x1cb5df[_0x2a08('0xc9')]?(this[_0x2a08('0x6c')][_0x2a08('0x68')](_0x1cb5df,_0x2a08('0x111')),this[_0x2a08('0x6d')](_0x2a08('0x86'),_0x1cb5df)):this[_0x2a08('0x6c')][_0x2a08('0x68')](_0x1cb5df,'removed');}return _0x1cb5df;}[_0x2a08('0x77')](_0x2c07b7){this[_0x2a08('0x43')](()=>{this['editor'][_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{for(const _0x4e2ed7 of _0x2c07b7[_0x2a08('0x45')]())_0x4e2ed7['accept']();});});}[_0x2a08('0xc4')](_0x4bb434){this['forceDefaultExecution'](()=>{this[_0x2a08('0x22')][_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{for(const _0x6aa0bc of _0x4bb434['getAllAdjacentSuggestions']())_0x6aa0bc['discard']();});});}[_0x2a08('0xe9')](_0x15eb2f,_0x5c4586){const _0x59e4b4=this[_0x2a08('0x22')][_0x2a08('0x2')]['get'](_0x15eb2f);if(!_0x59e4b4)throw new _0x248bc3('track-changes-command-not-found',this,{'commandName':_0x15eb2f});this[_0x2a08('0xa0')][_0x2a08('0x55')](_0x59e4b4),_0x5c4586&&_0x59e4b4['on'](_0x2a08('0x1d'),(_0x2d3dd4,_0x32f0dc)=>{this['trackChangesCommand'][_0x2a08('0xd3')]&&(this['_isForcedDefaultExecutionBlock']||_0x32f0dc[_0x2a08('0xb2')]>0x0&&_0x32f0dc[_0x32f0dc[_0x2a08('0xb2')]-0x1]&&_0x32f0dc[_0x32f0dc['length']-0x1][_0x2a08('0x43')]||(_0x5c4586((..._0x5dfbfe)=>_0x59e4b4[_0x2a08('0x1d')](..._0x5dfbfe,{'forceDefaultExecution':!0x0}),..._0x32f0dc),_0x2d3dd4['stop']()));},{'priority':_0x2a08('0x13')});}['forceDefaultExecution'](_0x12fc8e){let _0x26a6a6,_0x31f17b;const _0x5612a6=this[_0x2a08('0x10d')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x26a6a6=_0x12fc8e();}catch(_0x2408d6){_0x31f17b=_0x2408d6;}return _0x5612a6||(this[_0x2a08('0x10d')]=!0x1),_0x31f17b&&_0x248bc3['rethrowUnexpectedError'](_0x31f17b,this),_0x26a6a6;}[_0x2a08('0xa6')](_0x51a9aa,_0x43106f=null,_0x2fad54={}){if(_0x51a9aa[_0x2a08('0x36')])return null;const _0x534913=this[_0x2a08('0x22')][_0x2a08('0x11c')]['get'](_0x2a08('0x9e'))['me'];for(const {suggestion:_0x5ebf28,meta:_0x3137e9}of this[_0x2a08('0x8e')](_0x51a9aa,_0x2a08('0x48')))if(_0x3137e9[_0x2a08('0xc5')]){if(!_0x3137e9[_0x2a08('0x104')]){if(!this[_0x2a08('0x72')]&&_0x3137e9[_0x2a08('0x67')])continue;return _0x5ebf28;}if(_0x43106f==_0x5ebf28['subType']){const _0x1d7b0e=_0x5ebf28[_0x2a08('0x10b')]();return _0x1d7b0e['start'][_0x2a08('0xc')](_0x51a9aa[_0x2a08('0xba')])?this[_0x2a08('0xd6')](_0x5ebf28,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x51a9aa[_0x2a08('0x46')],_0x1d7b0e[_0x2a08('0xba')])):this['_setSuggestionRange'](_0x5ebf28,this[_0x2a08('0x136')]['createRange'](_0x1d7b0e[_0x2a08('0x46')],_0x51a9aa['end'])),_0x5ebf28;}}const _0x2f3931=_0x1938d2(),_0x43dacf=_0x534913['id'],_0x19711f=_0x43106f?_0x2a08('0x58')+_0x43106f:_0x2a08('0x48'),_0x41ecf9=this['_setSuggestionData']({'id':_0x2f3931,'type':_0x19711f,'createdAt':new Date(),'authorId':_0x43dacf,'attributes':_0x2fad54});return this[_0x2a08('0x74')](_0x19711f,_0x2f3931,_0x43dacf,_0x51a9aa),_0x41ecf9;}[_0x2a08('0xd')](_0x55d889,_0x3fd9cf=_0x2a08('0x56'),_0x49ecb2={}){const _0x48e9ef=this[_0x2a08('0x22')]['plugins'][_0x2a08('0x4f')]('Users')['me'],_0x35c7bf=this[_0x2a08('0x9')]['getSuggestionCallback'](_0x2a08('0x48'),_0x3fd9cf,_0x2a08('0x38'));for(const _0x188e41 of this[_0x2a08('0x113')]())if(_0x188e41[_0x2a08('0x137')]['id']==_0x48e9ef['id']&&_0x2a08('0x48')==_0x188e41[_0x2a08('0x130')]&&_0x188e41[_0x2a08('0x34')]==_0x3fd9cf&&(_0x35c7bf(_0x188e41[_0x2a08('0xb1')](),_0x55d889)||_0x35c7bf(_0x55d889,_0x188e41[_0x2a08('0xb1')]()))){for(const _0x335836 of _0x55d889)_0x188e41[_0x2a08('0xe7')](_0x335836);return _0x188e41;}if(this[_0x2a08('0x72')])for(const _0x4deff1 of _0x55d889)for(const {suggestion:_0x7d448,meta:_0x583369}of this[_0x2a08('0x8e')](_0x4deff1,_0x2a08('0x48'))){if(!_0x583369['isOwn'])continue;let _0x9564ee=!0x0;for(const _0x3a6f41 of _0x7d448['getRanges']())for(const _0x29d070 of _0x55d889)if(!_0x3a6f41[_0x2a08('0xa1')](_0x29d070)){_0x9564ee=!0x1;break;}if(_0x9564ee)return _0x7d448;}const _0x34df35=_0x1938d2(),_0x49addf=_0x48e9ef['id'],_0x26f9b3='insertion:'+_0x3fd9cf,_0x4b49b3=this['_setSuggestionData']({'id':_0x34df35,'type':_0x26f9b3,'createdAt':new Date(),'authorId':_0x49addf,'attributes':_0x49ecb2});for(const _0x20184a of _0x55d889)this[_0x2a08('0x74')](_0x26f9b3,_0x34df35,_0x49addf,_0x20184a,_0x21d5ce[_0x2a08('0x7d')]());return _0x4b49b3;}[_0x2a08('0xbb')](_0x32b3e7,_0x59b9d9,_0x253f14=null,_0x58fe69={}){if(_0x253f14=_0x253f14||$t(_0x59b9d9),_0x32b3e7[_0x2a08('0x36')])return null;if(_0x2a08('0x7e')===this[_0x2a08('0x129')]){const _0x4a1ddb=this['_suggestionFactory'][_0x2a08('0x124')](_0x2a08('0xee'),_0x253f14,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x4a1ddb([_0x32b3e7],_0x59b9d9,_0x58fe69)),null;}const _0x4079a2=this['editor'][_0x2a08('0x11c')][_0x2a08('0x4f')]('Users')['me'],_0x1e0466=[];if('always'!==this[_0x2a08('0x129')])for(const {suggestion:_0x30275d,meta:_0x1ff2f8}of this[_0x2a08('0x8e')](_0x32b3e7,_0x2a08('0x48')))_0x1ff2f8[_0x2a08('0xc5')]&&!_0x1ff2f8[_0x2a08('0x91')]&&_0x1e0466[_0x2a08('0x27')](..._0x30275d[_0x2a08('0xb1')]());const _0x2a948b=function(_0x16c3ae,_0xf26598){const _0x336d0d=[];for(const _0x11ae85 of _0xf26598){const _0x308e11=_0x16c3ae['getIntersection'](_0x11ae85);_0x308e11&&_0x336d0d[_0x2a08('0x27')](_0x308e11);}return _0x336d0d;}(_0x32b3e7,_0x1e0466),_0xb32d1d=function(_0x37f5e9,_0x2fa541){const _0x19b0b1=[_0x37f5e9];for(const _0x5d1cd3 of _0x2fa541){let _0x189f85=0x0;for(;_0x189f85<_0x19b0b1[_0x2a08('0xb2')];){const _0x4e4dba=_0x19b0b1[_0x189f85][_0x2a08('0x8b')](_0x5d1cd3);_0x19b0b1[_0x2a08('0x13b')](_0x189f85,0x1,..._0x4e4dba),_0x189f85+=_0x4e4dba[_0x2a08('0xb2')];}}return _0x19b0b1;}(_0x32b3e7,_0x1e0466);_0x2a948b[_0x2a08('0xb2')]&&this[_0x2a08('0x136')][_0x2a08('0x3e')](()=>{for(const _0x3d297b of _0x2a948b){const _0x284ce9=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0xee'),_0x253f14,'accept');this[_0x2a08('0x43')](()=>_0x284ce9([_0x3d297b],_0x59b9d9,_0x58fe69));}});for(const _0x36692b of _0xb32d1d){let _0x5673d1=null,_0xd530e8=_0x36692b[_0x2a08('0x46')],_0x420bdb=_0x36692b[_0x2a08('0xba')];for(const {suggestion:_0xd619c1,meta:_0x43d369}of this[_0x2a08('0x8e')](_0x36692b,_0x2a08('0xee'))){if(!_0x43d369[_0x2a08('0xc5')])continue;if(_0xd619c1['subType']!=_0x253f14)continue;const _0x5b5641=_0xd619c1['getFirstRange']();if(_0x5b5641[_0x2a08('0xa1')](_0x36692b,!0x0))return null;_0xd530e8=_0xd530e8['isBefore'](_0x5b5641[_0x2a08('0x46')])?_0xd530e8:_0x5b5641['start'],_0x420bdb=_0x420bdb[_0x2a08('0xf5')](_0x5b5641[_0x2a08('0xba')])?_0x420bdb:_0x5b5641[_0x2a08('0xba')],_0x5673d1?_0x5b5641[_0x2a08('0x46')][_0x2a08('0xef')](_0x5673d1[_0x2a08('0x10b')]()[_0x2a08('0x46')])?(_0x5673d1['removeMarkers'](),_0x5673d1=_0xd619c1):_0xd619c1[_0x2a08('0xc3')]():_0x5673d1=_0xd619c1;}const _0x231cd2=this[_0x2a08('0x136')]['createRange'](_0xd530e8,_0x420bdb);if(_0x5673d1)this['_setSuggestionRange'](_0x5673d1,_0x231cd2);else{const _0x200fc4=_0x1938d2(),_0x2c0b39=_0x4079a2['id'];this[_0x2a08('0x60')]({'id':_0x200fc4,'type':'formatInline:'+_0x253f14,'data':_0x59b9d9,'createdAt':new Date(),'authorId':_0x2c0b39,'attributes':_0x58fe69}),this[_0x2a08('0x74')](_0x2a08('0xb5')+_0x253f14,_0x200fc4,_0x2c0b39,_0x231cd2);}}return null;}[_0x2a08('0xde')](_0x563f50,_0x4fc0f1,_0x3e5136=[],_0x181fe5=null,_0x2cde22={}){_0x4fc0f1['formatGroupId']||(_0x4fc0f1[_0x2a08('0xaf')]=_0x4fc0f1['commandName']),_0x4fc0f1[_0x2a08('0xe1')]=_0x563f50['is']('range'),_0x181fe5=_0x181fe5||$t(_0x4fc0f1);const _0x3cc2ba=_0x3e5136[_0x2a08('0x69')](_0x5198c6=>Rt(_0x5198c6,this[_0x2a08('0x136')])),_0x4b2d70=_0x563f50['is'](_0x2a08('0x21'))?_0x563f50:Rt(_0x563f50,this[_0x2a08('0x136')]);if(_0x2a08('0x7e')===this[_0x2a08('0x129')]){const _0x6e339e=this[_0x2a08('0x9')]['getSuggestionCallback'](_0x2a08('0x121'),_0x181fe5,_0x2a08('0x40'));return this[_0x2a08('0x43')](()=>_0x6e339e([_0x4b2d70],_0x4fc0f1,_0x2cde22)),null;}_0x3cc2ba[_0x2a08('0x27')](_0x4b2d70);let _0x4e3a5d=!0x0;for(const _0x3bebe8 of _0x3cc2ba)if(!this[_0x2a08('0xa')](_0x3bebe8)){_0x4e3a5d=!0x1;break;}if(_0x4e3a5d&&_0x2a08('0xe3')!==this['_trackFormatChanges']){const _0x591ff3=this[_0x2a08('0x9')]['getSuggestionCallback'](_0x2a08('0x121'),_0x181fe5,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x591ff3([_0x4b2d70],_0x4fc0f1,_0x2cde22)),null;}let _0x1f47df=null,_0x271e11=_0x4b2d70[_0x2a08('0x46')],_0xf9a5c9=_0x4b2d70[_0x2a08('0xba')];for(const {suggestion:_0x2883b2,meta:_0x3077ee}of this[_0x2a08('0x8e')](_0x4b2d70,'formatBlock')){if(!_0x3077ee['isOwn']||_0x3077ee['isNextTo']||_0x3077ee['containsRangeInObject']||_0x3077ee['isInsideObject'])continue;if(_0x2883b2[_0x2a08('0x5d')][_0x2a08('0xaf')]!=_0x4fc0f1[_0x2a08('0xaf')])continue;const _0x50798c=_0x2883b2[_0x2a08('0x10b')]();if(_0x2883b2[_0x2a08('0x34')]==_0x181fe5){if(_0x50798c['containsRange'](_0x4b2d70,!0x0))return null;_0x271e11=_0x271e11['isBefore'](_0x50798c[_0x2a08('0x46')])?_0x271e11:_0x50798c[_0x2a08('0x46')],_0xf9a5c9=_0xf9a5c9[_0x2a08('0xf5')](_0x50798c[_0x2a08('0xba')])?_0xf9a5c9:_0x50798c[_0x2a08('0xba')],_0x1f47df?_0x50798c['start'][_0x2a08('0xef')](_0x1f47df[_0x2a08('0x10b')]()[_0x2a08('0x46')])?(_0x1f47df[_0x2a08('0xc3')](),_0x1f47df=_0x2883b2):_0x2883b2[_0x2a08('0xc3')]():_0x1f47df=_0x2883b2;}else{const _0x136cf1=_0x4b2d70[_0x2a08('0x6b')](_0x50798c);this[_0x2a08('0x4b')](_0x2883b2,_0x136cf1);}}const _0x5bf721=this[_0x2a08('0x22')][_0x2a08('0x11c')]['get']('Users')['me'],_0x5dd6fe=_0x1938d2(),_0x4c9fb6=_0x5bf721['id'];if(_0x1f47df)return this[_0x2a08('0xd6')](_0x1f47df,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x271e11,_0xf9a5c9)),_0x1f47df;{const _0x1f6eaa=this[_0x2a08('0x60')]({'id':_0x5dd6fe,'type':_0x2a08('0x119')+_0x181fe5,'data':_0x4fc0f1,'createdAt':new Date(),'authorId':_0x4c9fb6,'attributes':_0x2cde22});return this[_0x2a08('0x74')]('formatBlock:'+_0x181fe5,_0x5dd6fe,_0x4c9fb6,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x271e11,_0xf9a5c9)),_0x1f6eaa;}}[_0x2a08('0x108')](_0x1f5950,_0x4a93d8,_0x2a1aa4=[],_0x226e81=null,_0x4479e4={}){_0x4a93d8['formatGroupId']||(_0x4a93d8[_0x2a08('0xaf')]=_0x4a93d8[_0x2a08('0x9a')]);const _0x47cf28=_0x1f5950[0x0];_0x4a93d8[_0x2a08('0xe1')]=_0x47cf28['is'](_0x2a08('0x21')),_0x226e81=_0x226e81||$t(_0x4a93d8);const _0x24ba3f=_0x2a1aa4['map'](_0x30835=>Rt(_0x30835,this[_0x2a08('0x136')])),_0x36f1df=_0x47cf28['is'](_0x2a08('0x21'))?_0x1f5950:_0x1f5950[_0x2a08('0x69')](_0x2b3e82=>Rt(_0x2b3e82,this[_0x2a08('0x136')]));if('never'===this[_0x2a08('0x129')]){const _0x316dc5=this['_suggestionFactory'][_0x2a08('0x124')](_0x2a08('0x121'),_0x226e81,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x316dc5(_0x36f1df,_0x4a93d8,_0x4479e4)),null;}_0x24ba3f[_0x2a08('0x27')](..._0x36f1df);let _0xe19923=!0x0;for(const _0x50c5e3 of _0x24ba3f)if(!this[_0x2a08('0xa')](_0x50c5e3)){_0xe19923=!0x1;break;}if(_0xe19923&&_0x2a08('0xe3')!==this[_0x2a08('0x129')]){const _0xf49069=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0x121'),_0x226e81,_0x2a08('0x40'));return this[_0x2a08('0x43')](()=>_0xf49069(_0x36f1df,_0x4a93d8,_0x4479e4)),null;}const _0x525133=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0x9e'))['me'];for(const _0x3d857f of this[_0x2a08('0x113')]()){if(_0x3d857f[_0x2a08('0x137')]['id']!=_0x525133['id'])continue;if(_0x2a08('0x121')!=_0x3d857f['type']||_0x3d857f[_0x2a08('0x5d')]['formatGroupId']!=_0x4a93d8[_0x2a08('0xaf')])continue;const _0x429cfe=_0x3d857f[_0x2a08('0x34')]==_0x226e81;for(let _0x1d7ce9=0x0;_0x1d7ce9<_0x36f1df[_0x2a08('0xb2')];_0x1d7ce9++){const _0x1934cc=_0x36f1df[_0x1d7ce9];for(const _0x2d2e09 of _0x3d857f['getMarkers']()){const _0x141369=_0x2d2e09[_0x2a08('0x5a')]();if(_0x1934cc['isEqual'](_0x141369)){_0x429cfe?(_0x36f1df[_0x2a08('0x13b')](_0x1d7ce9,0x1),_0x1d7ce9--):_0x3d857f[_0x2a08('0x1f')](_0x2d2e09['name']);break;}}}}if(0x0==_0x36f1df[_0x2a08('0xb2')])return null;const _0x1f870f=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0x121'),_0x226e81,_0x2a08('0x38'));for(const _0xcfa8a3 of this[_0x2a08('0x113')]())if(_0xcfa8a3[_0x2a08('0x137')]['id']==_0x525133['id']&&'formatBlock'==_0xcfa8a3[_0x2a08('0x130')]&&_0xcfa8a3['data'][_0x2a08('0xaf')]==_0x4a93d8[_0x2a08('0xaf')]&&_0xcfa8a3[_0x2a08('0x34')]==_0x226e81&&(_0x1f870f(_0xcfa8a3[_0x2a08('0xb1')](),_0x36f1df)||_0x1f870f(_0x36f1df,_0xcfa8a3['getRanges']()))){for(const _0x384f24 of _0x36f1df)_0xcfa8a3['addRange'](_0x384f24);return _0xcfa8a3;}const _0x31d1f9=_0x1938d2(),_0x4e7e42=_0x525133['id'],_0x4fd2ba=_0x2a08('0x119')+_0x226e81,_0x5e57dd=this[_0x2a08('0x60')]({'id':_0x31d1f9,'type':_0x4fd2ba,'data':_0x4a93d8,'createdAt':new Date(),'authorId':_0x4e7e42,'attributes':_0x4479e4});for(const _0x509425 of _0x36f1df)this[_0x2a08('0x74')](_0x4fd2ba,_0x31d1f9,_0x4e7e42,_0x509425,_0x21d5ce[_0x2a08('0x7d')]());return _0x5e57dd;}[_0x2a08('0xcc')](_0x4685d3,_0x62c57e=null,_0x546138={}){if(_0x4685d3[_0x2a08('0x36')])return null;const _0x368586=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0x9e'))['me'],_0xc255b=new _0x104eb2(_0x4685d3[_0x2a08('0x46')],_0x4685d3[_0x2a08('0xba')]);for(const {suggestion:_0x40a0d0,meta:_0x3cf570}of this[_0x2a08('0x8e')](_0xc255b,_0x2a08('0x48')))if(_0x3cf570[_0x2a08('0xc5')]&&!_0x3cf570['isNextTo']){if(_0x40a0d0['isMultiRange']){const _0x3e07b9=_0x40a0d0[_0x2a08('0xb1')]()[_0x2a08('0x15')](_0x127c74=>_0x2a08('0x82')!=_0x127c74[_0x2a08('0x76')]['rootName']);_0x3e07b9[_0x2a08('0x13a')](_0x35eb75=>_0xc255b[_0x2a08('0xa1')](_0x35eb75,!0x0))&&_0x40a0d0[_0x2a08('0xb8')]();if(_0x3e07b9[_0x2a08('0x106')](_0x2a6d07=>_0x2a6d07[_0x2a08('0xa1')](_0xc255b,!0x0))){const _0x3572c1=this[_0x2a08('0x9')]['getSuggestionCallback']('deletion',_0x62c57e,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x3572c1([_0xc255b],null,_0x546138)),null;}}else{const _0x3046e6=_0xc255b['getIntersection'](_0x40a0d0['getFirstRange']());null!==_0x3046e6&&_0x40a0d0['_onDiscard']([_0x3046e6],null,_0x546138);}}if(_0xc255b['detach'](),_0xc255b[_0x2a08('0x36')]||_0x2a08('0x82')==_0xc255b[_0x2a08('0x76')]['rootName'])return null;let _0x347902=null,_0x46e8e5=_0xc255b[_0x2a08('0x46')],_0x41d238=_0xc255b[_0x2a08('0xba')];for(const {suggestion:_0x4d7cc0,meta:_0x349008}of this[_0x2a08('0x8e')](_0xc255b,_0x2a08('0x75')))if(_0x349008[_0x2a08('0xc5')]){if(_0x4d7cc0['isMultiRange']&&this[_0x2a08('0x72')]){let _0x40e6d6=!0x0;for(const _0x519c5c of _0x4d7cc0[_0x2a08('0xb1')]()){if(_0x519c5c[_0x2a08('0xa1')](_0xc255b,!0x0))return _0x4d7cc0;_0xc255b['containsRange'](_0x519c5c)||(_0x40e6d6=!0x1);}_0x40e6d6&&_0x4d7cc0['discard']();}else{const _0xe53bfd=_0x4d7cc0[_0x2a08('0x10b')]();if(_0xe53bfd[_0x2a08('0xa1')](_0xc255b,!0x0)){if(!this[_0x2a08('0x72')]&&_0x349008[_0x2a08('0x67')])continue;return _0x4d7cc0;}_0x46e8e5=_0x46e8e5[_0x2a08('0xef')](_0xe53bfd[_0x2a08('0x46')])?_0x46e8e5:_0xe53bfd[_0x2a08('0x46')],_0x41d238=_0x41d238['isAfter'](_0xe53bfd[_0x2a08('0xba')])?_0x41d238:_0xe53bfd[_0x2a08('0xba')],_0x347902?_0xe53bfd['start'][_0x2a08('0xef')](_0x347902['getFirstRange']()[_0x2a08('0x46')])?(_0x347902['removeMarkers'](),_0x347902=_0x4d7cc0):_0x4d7cc0[_0x2a08('0xc3')]():_0x347902=_0x4d7cc0;}}if(_0x347902)return this['_setSuggestionRange'](_0x347902,this[_0x2a08('0x136')]['createRange'](_0x46e8e5,_0x41d238)),_0x347902;{const _0x117952=_0x1938d2(),_0x2bb2e6=this['_model'][_0x2a08('0xcb')](_0x46e8e5,_0x41d238),_0xffa238=_0x368586['id'],_0xf446fc=_0x62c57e?'deletion:'+_0x62c57e:_0x2a08('0x75'),_0x189073=this[_0x2a08('0x60')]({'id':_0x117952,'type':_0xf446fc,'createdAt':new Date(),'authorId':_0xffa238,'attributes':_0x546138});return this[_0x2a08('0x74')](_0xf446fc,_0x117952,_0xffa238,_0x2bb2e6),_0x189073;}}[_0x2a08('0xf3')](_0x148264,_0x79032a='multi',_0x36344d={}){const _0x52851d=this[_0x2a08('0x22')]['plugins'][_0x2a08('0x4f')]('Users')['me'],_0x4823ce=_0x148264[_0x2a08('0x69')](_0x2ea1b4=>new _0x104eb2(_0x2ea1b4[_0x2a08('0x46')],_0x2ea1b4['end'])),_0x5e727c=new Set();for(const _0x1119f1 of _0x4823ce)for(const {suggestion:_0x2a4653,meta:_0x515f2c}of this[_0x2a08('0x8e')](_0x1119f1,'insertion'))_0x515f2c[_0x2a08('0xc5')]&&!_0x515f2c[_0x2a08('0x104')]&&_0x5e727c[_0x2a08('0x55')](_0x2a4653);for(const _0x3365b3 of _0x5e727c)if(_0x3365b3['isMultiRange']){const _0x14f726=_0x3365b3['getRanges']();(!_0x3365b3[_0x2a08('0x2a')]||!_0x3365b3[_0x2a08('0x2a')][_0x2a08('0xb3')])&&(_0x14f726[_0x2a08('0x13a')](_0x131258=>_0x4823ce[_0x2a08('0x106')](_0x53f855=>_0x53f855[_0x2a08('0xa1')](_0x131258,!0x0)))&&_0x3365b3[_0x2a08('0xb8')]());if(_0x4823ce['every'](_0x2a87c7=>_0x14f726[_0x2a08('0x106')](_0x3b5946=>_0x3b5946['containsRange'](_0x2a87c7,!0x0)))){const _0x4653ce=this[_0x2a08('0x9')]['getSuggestionCallback']('deletion',_0x79032a,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x4653ce(_0x148264,null,_0x36344d)),null;}}else{const _0x5bec77=_0x3365b3['getFirstRange']();_0x4823ce[_0x2a08('0x106')](_0x24fc4b=>_0x24fc4b[_0x2a08('0xa1')](_0x5bec77,!0x0))&&_0x3365b3['discard']();if(_0x4823ce[_0x2a08('0x13a')](_0x31c210=>_0x5bec77[_0x2a08('0xa1')](_0x31c210,!0x0))){const _0x3c41d3=this['_suggestionFactory']['getSuggestionCallback'](_0x2a08('0x75'),_0x79032a,_0x2a08('0x40'));return this[_0x2a08('0x43')](()=>_0x3c41d3(_0x4823ce,null,_0x36344d)),null;}}const _0x228176=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0x75'),_0x79032a,_0x2a08('0x38'));let _0xeb4de0=null;for(const _0x34b87d of this[_0x2a08('0x113')]())if(_0x34b87d[_0x2a08('0x137')]['id']==_0x52851d['id']&&_0x34b87d[_0x2a08('0xc9')]&&'deletion'==_0x34b87d[_0x2a08('0x130')]&&_0x34b87d[_0x2a08('0x34')]==_0x79032a&&(_0x228176(_0x34b87d['getRanges'](),_0x4823ce)||_0x228176(_0x4823ce,_0x34b87d[_0x2a08('0xb1')]()))){if(_0xeb4de0){if(_0x34b87d[_0x2a08('0x100')]&&_0x34b87d[_0x2a08('0x100')][_0x2a08('0xb2')])continue;for(const _0x38f690 of _0x34b87d['getRanges']())_0xeb4de0[_0x2a08('0xff')](_0x38f690)||_0xeb4de0['addRange'](_0x38f690);_0x34b87d[_0x2a08('0xc3')]();}else{_0xeb4de0=_0x34b87d;for(const _0x42106e of _0x4823ce)_0x34b87d[_0x2a08('0xff')](_0x42106e)||_0x34b87d['addRange'](_0x42106e);}}if(_0xeb4de0)return _0xeb4de0;_0x5e727c['clear']();for(const _0x522129 of _0x4823ce)for(const {suggestion:_0x2996a6,meta:_0xfbf33b}of this[_0x2a08('0x8e')](_0x522129,'deletion'))_0xfbf33b[_0x2a08('0xc5')]&&_0x5e727c[_0x2a08('0x55')](_0x2996a6);for(const _0x47a9e1 of _0x5e727c){const _0x5f2034=_0x47a9e1[_0x2a08('0xb1')]();if(!_0x36344d||!_0x36344d[_0x2a08('0xb3')]){if(_0x4823ce[_0x2a08('0x13a')](_0x437a6a=>_0x5f2034[_0x2a08('0x106')](_0x4ecf7=>_0x4ecf7[_0x2a08('0xa1')](_0x437a6a,!0x0))))return _0x47a9e1;}(!_0x47a9e1['attributes']||!_0x47a9e1[_0x2a08('0x2a')][_0x2a08('0xb3')])&&(_0x5f2034[_0x2a08('0x13a')](_0x1497d9=>_0x4823ce['some'](_0x432eab=>_0x432eab['containsRange'](_0x1497d9,!0x0)))&&_0x47a9e1[_0x2a08('0xb8')]());}const _0x16d1a8=_0x1938d2(),_0x4bd90f=_0x52851d['id'],_0xc68a98=_0x2a08('0x50')+_0x79032a,_0x476e9c=this[_0x2a08('0x60')]({'id':_0x16d1a8,'type':_0xc68a98,'createdAt':new Date(),'authorId':_0x4bd90f,'attributes':_0x36344d});for(const _0x244fed of _0x4823ce)_0x244fed[_0x2a08('0x25')](),_0x244fed['isCollapsed']||'$graveyard'==_0x244fed[_0x2a08('0x76')][_0x2a08('0x47')]||this[_0x2a08('0x74')](_0xc68a98,_0x16d1a8,_0x4bd90f,_0x244fed,_0x21d5ce[_0x2a08('0x7d')]());return _0x476e9c;}[_0x2a08('0xd6')](_0x44d532,_0x875fc4){const _0x236f47=_0x44d532[_0x2a08('0xca')]();this['_model'][_0x2a08('0x3e')](_0x35d85b=>{_0x35d85b[_0x2a08('0xf0')](_0x236f47,{'range':_0x875fc4});});}[_0x2a08('0x114')](_0x1cbfe6){const _0x1194cb=_0x1cbfe6['id'],_0x1029c7=this[_0x2a08('0x22')][_0x2a08('0x49')]['get'](_0x2a08('0x3b'));this[_0x2a08('0x26')][_0x2a08('0x70')](_0x1194cb)||this['_commentsRepository'][_0x2a08('0x85')]({'channelId':_0x1029c7,'threadId':_0x1194cb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x9ece14=this[_0x2a08('0x26')][_0x2a08('0x4e')](_0x1194cb);_0x9ece14[_0x2a08('0xc8')](_0x2a08('0x23')),_0x9ece14[_0x2a08('0x23')]=!0x1,_0x1cbfe6[_0x2a08('0x100')]=_0x9ece14;}[_0x2a08('0x14')](_0x4df260,_0x2bd469,_0x5f470f,_0x2f9313){if(_0x4df260['type']!=_0x2bd469||_0x4df260[_0x2a08('0x34')]!=_0x5f470f||_0x4df260['creator']['id']!=_0x2f9313)throw this[_0x2a08('0x22')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x248bc3('track-changes-suggestion-data-mismatch',this);}[_0x2a08('0x4b')](_0x3573b8,_0x21aa68){const _0x5b73ef=_0x3573b8['getFirstRange']();if(_0x21aa68[_0x2a08('0xc')](_0x5b73ef))_0x3573b8[_0x2a08('0xc3')]();else{if(_0x5b73ef[_0x2a08('0xa1')](_0x21aa68)){const _0x50dac6=this[_0x2a08('0x136')][_0x2a08('0xf6')](_0x21aa68[_0x2a08('0x46')]['nodeBefore'],_0x2a08('0xba'));this[_0x2a08('0xd6')](_0x3573b8,this[_0x2a08('0x136')]['createRange'](_0x5b73ef[_0x2a08('0x46')],_0x50dac6));const _0x37eeb2=_0x1938d2(),_0x3d4e2a=_0x3573b8[_0x2a08('0x120')]['id'],_0x228410=_0x3573b8[_0x2a08('0x130')]+':'+_0x3573b8['subType'];this[_0x2a08('0x60')]({'id':_0x37eeb2,'type':_0x228410,'createdAt':new Date(),'authorId':_0x3d4e2a,'data':_0x3573b8[_0x2a08('0x5d')],'attributes':_0x3573b8[_0x2a08('0x2a')]});const _0x1f1688=this[_0x2a08('0x136')][_0x2a08('0xf6')](_0x21aa68[_0x2a08('0xba')][_0x2a08('0xa9')],_0x2a08('0x122')),_0x268852=this[_0x2a08('0x136')]['createRange'](_0x1f1688,_0x5b73ef['end']);this[_0x2a08('0x74')](_0x228410,_0x37eeb2,_0x3d4e2a,_0x268852);}else{if(_0x5b73ef[_0x2a08('0xed')](_0x21aa68[_0x2a08('0x46')])){const _0x22194c=this[_0x2a08('0x136')][_0x2a08('0xf6')](_0x21aa68[_0x2a08('0x46')][_0x2a08('0x42')],_0x2a08('0xba'));this[_0x2a08('0xd6')](_0x3573b8,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x5b73ef[_0x2a08('0x46')],_0x22194c));}else{const _0x3c625a=this[_0x2a08('0x136')]['createPositionAt'](_0x21aa68['end'][_0x2a08('0xa9')],'after');this[_0x2a08('0xd6')](_0x3573b8,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x3c625a,_0x5b73ef[_0x2a08('0xba')]));}}}}[_0x2a08('0xa')](_0x709075){for(const {suggestion:_0xb8b960,meta:_0x36fb6f}of this['_findSuggestions'](_0x709075,_0x2a08('0x48'))){if(!_0x36fb6f[_0x2a08('0xc5')])continue;const _0x39905f=_0xb8b960[_0x2a08('0xb1')]();for(const _0x36f13c of _0x39905f)if(!_0x709075[_0x2a08('0x8b')](_0x36f13c)['length'])return!0x0;}return!0x1;}[_0x2a08('0x52')](_0x1ee077){const _0x35049d=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')]('Users')[_0x2a08('0xf4')](_0x1ee077);if(!_0x35049d)throw new _0x248bc3(_0x2a08('0x90'),this);return _0x35049d;}[_0x2a08('0xe6')](_0x4f5958){const _0x39b4c4=this[_0x2a08('0x22')]['plugins']['get'](_0x2a08('0x9e')),_0x3c91bd=_0x4c1c58(_0x2a08('0x7a')+_0x4f5958),_0x12b814=_0x39b4c4[_0x2a08('0xf4')](_0x3c91bd);return _0x12b814||_0x39b4c4['addUser']({'id':_0x3c91bd,'name':_0x4f5958});}[_0x2a08('0x12e')](_0x55ab9c,_0x5c7dc4,_0x359e16,_0x5d632d,_0x1c360c){const _0x1c4b00=this[_0x2a08('0x52')](_0x5d632d),_0x553d93=this[_0x2a08('0x9')][_0x2a08('0xe8')](_0x55ab9c,_0x5c7dc4,_0x359e16,_0x1c4b00,_0x1c360c,_0x208e74=>this[_0x2a08('0x5e')](_0x359e16,{'attributes':_0x208e74}));return this[_0x2a08('0x19')](_0x553d93,_0x2a08('0x40'),()=>{this['_updateSuggestionData'](_0x359e16,{'state':'accepted'});},{'priority':_0x2a08('0x13')}),this[_0x2a08('0x19')](_0x553d93,_0x2a08('0xb8'),()=>{this[_0x2a08('0x5e')](_0x359e16,{'state':_0x2a08('0xec')});},{'priority':_0x2a08('0x13')}),this[_0x2a08('0x24')][_0x2a08('0x68')](_0x359e16,_0x553d93),this[_0x2a08('0x6c')]['set'](_0x553d93,_0x2a08('0x1')),_0x553d93;}[_0x2a08('0xd8')](_0x31724e){const _0x153cd7=_0x31724e['split'](':');return{'group':_0x153cd7[0x0],'type':_0x153cd7[0x1],'subType':_0x153cd7[_0x2a08('0xb2')]>=0x5?_0x153cd7[0x2]:null,'id':_0x153cd7[_0x2a08('0xb2')]<0x5?_0x153cd7[0x2]:_0x153cd7[0x3],'authorId':_0x153cd7[_0x2a08('0xb2')]<0x5?_0x153cd7[0x3]:_0x153cd7[0x4],'markerCount':0x6==_0x153cd7['length']?_0x153cd7[0x5]:null};}[_0x2a08('0xfe')](_0x57e7f4,_0x5651c4,_0x29fbfa){const _0xb658d2=_0x57e7f4['getFirstRange'](),_0x179dbc=_0xb658d2[_0x2a08('0x46')],_0xa028ba=_0xb658d2['end'];this[_0x2a08('0xd6')](_0x57e7f4,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x179dbc,_0x5651c4));const _0x335b2b=_0x1938d2(),_0x1e882f=_0x57e7f4[_0x2a08('0x120')]['id'],_0x2751ee=_0x57e7f4[_0x2a08('0x130')]+(_0x57e7f4[_0x2a08('0x34')]?':'+_0x57e7f4[_0x2a08('0x34')]:'');this[_0x2a08('0x60')]({'id':_0x335b2b,'type':_0x2751ee,'createdAt':new Date(),'authorId':_0x1e882f,'originalSuggestionId':_0x57e7f4['id'],'attributes':_0x57e7f4[_0x2a08('0x2a')],'data':_0x57e7f4[_0x2a08('0x5d')]}),_0x2a08('0x121')==_0x57e7f4[_0x2a08('0x130')]&&(_0x29fbfa=this['_model'][_0x2a08('0x96')](_0x29fbfa[_0x2a08('0xa9')])),this[_0x2a08('0x74')](_0x2751ee,_0x335b2b,_0x1e882f,this['_model']['createRange'](_0x29fbfa,_0xa028ba));}[_0x2a08('0x8e')](_0x55f8f0,_0xdd1ea8=null){const _0x1ba892=[],_0x528513=this[_0x2a08('0x136')][_0x2a08('0x8c')],_0x2734a0=this[_0x2a08('0x22')]['plugins'][_0x2a08('0x4f')](_0x2a08('0x9e'))['me'];for(const _0x5d9997 of this[_0x2a08('0x113')]())if(_0x5d9997[_0x2a08('0xc9')]&&(!_0xdd1ea8||_0x5d9997[_0x2a08('0x130')]==_0xdd1ea8))for(const _0x5c05dd of _0x5d9997[_0x2a08('0xb1')]()){const _0x4ccfc0=_0x55f8f0['start'][_0x2a08('0xc')](_0x5c05dd['end'])||_0x55f8f0['end'][_0x2a08('0xc')](_0x5c05dd['start']);if(_0x4ccfc0||_0x55f8f0[_0x2a08('0x6b')](_0x5c05dd)){const _0x996a=_0x55f8f0[_0x2a08('0xa1')](_0x5c05dd)&&Bt(_0x528513,_0x5c05dd[_0x2a08('0x46')],_0x55f8f0),_0x2decbd=_0x5c05dd[_0x2a08('0xa1')](_0x55f8f0)&&Bt(_0x528513,_0x55f8f0['start'],_0x5c05dd);_0x1ba892[_0x2a08('0x27')]({'suggestion':_0x5d9997,'meta':{'isOwn':_0x2734a0==_0x5d9997['author'],'isNextTo':_0x4ccfc0,'isInsideObject':_0x996a,'containsRangeInObject':_0x2decbd}});break;}}return _0x1ba892;}[_0x2a08('0x74')](_0xc7cf14,_0x5061f8,_0x3b9755,_0x12abcc,_0x2e912e){this['_model'][_0x2a08('0x3e')](_0x471164=>{let _0x74b25a=_0x2a08('0x94')+_0xc7cf14+':'+_0x5061f8+':'+_0x3b9755;_0x2e912e&&(_0x74b25a=_0x74b25a+':'+_0x2e912e),_0x471164[_0x2a08('0x134')](_0x74b25a,{'range':_0x12abcc,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2a08('0x139')](_0x2f14c7){const _0x447ce3=_0x2f14c7[_0x2a08('0x63')],_0xe9b627=_0x2f14c7[_0x2a08('0xb7')];_0x2f14c7[_0x2a08('0x63')]=null,null!=_0x447ce3&&(_0x447ce3[_0x2a08('0xb7')]=null),_0x2f14c7['next']=null,null!=_0xe9b627&&(_0xe9b627[_0x2a08('0x63')]=null),_0x2a08('0x111')==this['_suggestionState'][_0x2a08('0x4f')](_0x2f14c7)&&(this['_suggestionState'][_0x2a08('0x68')](_0x2f14c7,_0x2a08('0xd4')),this[_0x2a08('0x6d')]('suggestionUnloaded',_0x2f14c7,_0x447ce3,_0xe9b627));}[_0x2a08('0x60')](_0x223d87){const _0x197b0a=_0x223d87['id'],_0x44f749=this['addSuggestionData'](_0x223d87);if(this[_0x2a08('0x17')]&&this[_0x2a08('0x17')]['addSuggestion']){const _0x2e8e14=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0xe5')),_0xd25824=_0x44f749[_0x2a08('0xd7')],_0x5ca26f=_0x44f749[_0x2a08('0x34')]?_0x44f749[_0x2a08('0x130')]+':'+_0x44f749[_0x2a08('0x34')]:_0x44f749[_0x2a08('0x130')],_0x112fe7=this[_0x2a08('0x22')][_0x2a08('0x20')],_0x171b01=_0x2e8e14[_0x2a08('0x55')](_0x5528e0(_0x112fe7,_0x2a08('0x13e'))),_0x1af15e={'id':_0x197b0a,'type':_0x5ca26f,'hasComments':_0xd25824,'data':_0x223d87['data']||null,'originalSuggestionId':_0x223d87[_0x2a08('0x62')]||null,'attributes':_0x44f749[_0x2a08('0x2a')]};this[_0x2a08('0x17')][_0x2a08('0xd9')](_0x1af15e)[_0x2a08('0xa2')](_0x5b7fae=>{_0x44f749['_saved']=!0x0,_0x2e8e14[_0x2a08('0xb6')](_0x171b01),_0x5b7fae&&_0x5b7fae['createdAt']&&(this[_0x2a08('0x24')]['get'](_0x197b0a)[_0x2a08('0xaa')]=_0x5b7fae[_0x2a08('0xaa')]);})[_0x2a08('0xdf')](_0x2149cc=>{throw _0x5d2605(_0x2a08('0x8a')),this[_0x2a08('0x22')][_0x2a08('0xf1')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x44f749[_0x2a08('0xb8')]();}),_0x44f749['stopListening'](),this[_0x2a08('0x24')][_0x2a08('0x3f')](_0x44f749['id']),this['_suggestionState'][_0x2a08('0x3f')](_0x44f749),_0x2149cc;});}return _0x44f749;}[_0x2a08('0x5e')](_0x33a793,_0x5ed1c5){const _0x3430c8=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0xe5')),_0x4aba34=this[_0x2a08('0x4c')](_0x33a793);if(this['_adapter']&&this['_adapter'][_0x2a08('0x126')]){if(_0x4aba34['_saved']){const _0x3a89bc=_0x3430c8['add'](_0x5528e0(this['editor'][_0x2a08('0x20')],_0x2a08('0x13e')));this['_adapter'][_0x2a08('0x126')](_0x33a793,_0x5ed1c5)[_0x2a08('0xa2')](()=>{_0x3430c8[_0x2a08('0xb6')](_0x3a89bc);});}else _0x4aba34['on'](_0x2a08('0x6e'),()=>{this[_0x2a08('0x5e')](_0x33a793,_0x5ed1c5);});}}[_0x2a08('0xbd')](_0x505835){if(!this[_0x2a08('0x17')]||!this[_0x2a08('0x17')]['getSuggestion'])throw new _0x248bc3(_0x2a08('0xb0'),this);return this[_0x2a08('0x17')]['getSuggestion'](_0x505835);}[_0x2a08('0x2d')](_0x36c369){const {id:_0x5a2365,type:_0x40e986,subType:_0x31a2b9,authorId:_0x5be72c}=this['_splitMarkerName'](_0x36c369),_0x2f83c9=this['_suggestions'][_0x2a08('0x4f')](_0x5a2365)||this['_createSuggestion'](_0x40e986,_0x31a2b9,_0x5a2365,_0x5be72c,{});switch(this[_0x2a08('0x14')](_0x2f83c9,_0x40e986,_0x31a2b9,_0x5be72c),this[_0x2a08('0x6c')][_0x2a08('0x4f')](_0x2f83c9)){case'notReady':this['_getSuggestionData'](_0x5a2365)[_0x2a08('0xa2')](_0x339b9f=>{let _0x2ebb10=Promise[_0x2a08('0xd5')]();_0x339b9f[_0x2a08('0xd7')]&&(_0x2ebb10=this['_commentsRepository'][_0x2a08('0xda')]({'channelId':this[_0x2a08('0x22')][_0x2a08('0x49')]['get'](_0x2a08('0x3b')),'threadId':_0x5a2365})),_0x2ebb10['then'](()=>{this['addSuggestionData'](_0x339b9f)[_0x2a08('0x87')]=!0x0;});}),this['_suggestionState'][_0x2a08('0x68')](_0x2f83c9,_0x2a08('0xc6'));break;case _0x2a08('0xd4'):this[_0x2a08('0x5e')](_0x5a2365,{'state':_0x2a08('0x12d')});case _0x2a08('0xf2'):this['_suggestionState']['set'](_0x2f83c9,'ready'),this[_0x2a08('0x6d')](_0x2a08('0x86'),_0x2f83c9);break;case _0x2a08('0x111'):this[_0x2a08('0x6d')](_0x2a08('0x13d'),_0x2f83c9);}return _0x2f83c9[_0x2a08('0xab')](_0x36c369),_0x2f83c9;}[_0x2a08('0x133')](_0x1da9a4){const _0x1fc927=Array[_0x2a08('0x88')](_0x1da9a4)[_0x2a08('0x15')](_0xab7dc5=>!_0xab7dc5[_0x2a08('0x33')]),_0x50b787=this[_0x2a08('0x113')]({'skipNotAttached':!0x0})[_0x2a08('0x15')](_0x10453a=>!_0x10453a[_0x2a08('0x33')]),_0x6f4ee0=_0x50b787['filter'](_0x5c7421=>!_0x1da9a4[_0x2a08('0x3')](_0x5c7421)),_0x48f708=new Map(_0x50b787[_0x2a08('0x69')](_0x33c453=>[_0x33c453,this[_0x2a08('0x9')][_0x2a08('0x124')](_0x33c453[_0x2a08('0x130')],_0x33c453[_0x2a08('0x34')],_0x2a08('0x4a'))])),_0x583f66=new Map(_0x50b787[_0x2a08('0x69')](_0x56f4fc=>[_0x56f4fc,_0x56f4fc[_0x2a08('0x10b')]()])),_0x39d9eb=new Set(),_0x4b894e=new Set();for(let _0x14e9d7=0x0;_0x14e9d7<_0x1fc927['length'];_0x14e9d7++)_0x3e080f(_0x1fc927[_0x14e9d7],_0x1fc927,_0x14e9d7+0x1);for(let _0x4571bc=0x0;_0x4571bc<_0x1fc927['length'];_0x4571bc++)_0x3e080f(_0x1fc927[_0x4571bc],_0x6f4ee0,0x0);for(let _0x559467=0x0;_0x559467<_0x1fc927[_0x2a08('0xb2')];_0x559467++){const _0x5828a8=_0x1fc927[_0x559467];!_0x4b894e[_0x2a08('0x3')](_0x5828a8)&&_0x5828a8['previous']&&(_0x5828a8[_0x2a08('0x63')]['next']===_0x5828a8&&(_0x5828a8['previous'][_0x2a08('0xb7')]=null),_0x5828a8[_0x2a08('0x63')]=null),!_0x39d9eb[_0x2a08('0x3')](_0x5828a8)&&_0x5828a8[_0x2a08('0xb7')]&&(_0x5828a8[_0x2a08('0xb7')]['previous']===_0x5828a8&&(_0x5828a8[_0x2a08('0xb7')][_0x2a08('0x63')]=null),_0x5828a8['next']=null);}function _0x3e080f(_0x49e545,_0x4d78e5,_0x1e3c5b){for(let _0x6526e1=_0x1e3c5b;_0x6526e1<_0x4d78e5[_0x2a08('0xb2')];_0x6526e1++){const _0x46e686=_0x559b4d(_0x49e545,_0x4d78e5[_0x6526e1]);_0x46e686&&(_0x46e686[0x0][_0x2a08('0xb7')]=_0x46e686[0x1],_0x46e686[0x1]['previous']=_0x46e686[0x0],_0x39d9eb['add'](_0x46e686[0x0]),_0x4b894e[_0x2a08('0x55')](_0x46e686[0x1]));}}function _0x559b4d(_0x5f1ab8,_0xd25f30){if(_0x5f1ab8[_0x2a08('0x137')]['id']!==_0xd25f30['author']['id'])return null;const _0x1328f5=_0x48f708[_0x2a08('0x4f')](_0x5f1ab8)(_0x5f1ab8,_0xd25f30,_0x583f66[_0x2a08('0x4f')](_0x5f1ab8),_0x583f66[_0x2a08('0x4f')](_0xd25f30));if(!_0x1328f5)return null;return _0x48f708['get'](_0xd25f30)(_0x5f1ab8,_0xd25f30,_0x583f66[_0x2a08('0x4f')](_0x5f1ab8),_0x583f66['get'](_0xd25f30))?_0x1328f5[0x1][_0x2a08('0x100')]&&_0x1328f5[0x1]['commentThread'][_0x2a08('0xb2')]?null:_0x1328f5:null;}}[_0x2a08('0x16')](_0x32e2ab){const _0x3fe718=Array[_0x2a08('0x88')](_0x32e2ab),_0x986676=this[_0x2a08('0x113')]({'skipNotAttached':!0x0}),_0x26379f=_0x986676[_0x2a08('0x15')](_0x291304=>!_0x32e2ab['has'](_0x291304)),_0x5dc798=new Map(_0x3fe718[_0x2a08('0x69')](_0x3f16f9=>[_0x3f16f9,this[_0x2a08('0x9')]['getSuggestionCallback'](_0x3f16f9[_0x2a08('0x130')],_0x3f16f9[_0x2a08('0x34')],_0x2a08('0x38'))])),_0xde82da=new Map(_0x986676['map'](_0x181be4=>[_0x181be4,_0x181be4[_0x2a08('0xb1')]()]));for(let _0x29adb8=0x0;_0x29adb8<_0x3fe718[_0x2a08('0xb2')];_0x29adb8++){if(_0x4ac47d(this,_0x3fe718[_0x29adb8],_0x3fe718,_0x29adb8+0x1))return!0x0;}for(let _0x447e6c=0x0;_0x447e6c<_0x3fe718[_0x2a08('0xb2')];_0x447e6c++){if(_0x4ac47d(this,_0x3fe718[_0x447e6c],_0x26379f,0x0))return!0x0;}return!0x1;function _0x4ac47d(_0x289889,_0x1e350b,_0x49ea0f,_0x8b9aa6){for(let _0x337775=_0x8b9aa6;_0x337775<_0x49ea0f[_0x2a08('0xb2')];_0x337775++){const _0x37179f=_0x49ea0f[_0x337775];if(_0x37179f[_0x2a08('0x130')]!==_0x1e350b[_0x2a08('0x130')]||_0x37179f[_0x2a08('0x137')]['id']!==_0x1e350b[_0x2a08('0x137')]['id']||_0x37179f[_0x2a08('0x34')]!==_0x1e350b[_0x2a08('0x34')])continue;const _0x356873=_0x5dc798[_0x2a08('0x4f')](_0x1e350b),_0x102864=_0xde82da[_0x2a08('0x4f')](_0x1e350b),_0x418eb9=_0xde82da[_0x2a08('0x4f')](_0x37179f),_0x5c1fc9=_0x1e350b[_0x2a08('0x100')]&&_0x1e350b['commentThread'][_0x2a08('0xb2')],_0x5b6f7c=_0x37179f[_0x2a08('0x100')]&&_0x37179f['commentThread']['length'];if(!_0x5c1fc9&&_0x356873(_0x418eb9,_0x102864))return _0x289889[_0x2a08('0x83')](_0x37179f,_0x1e350b),_0xde82da[_0x2a08('0x3f')](_0x1e350b),!0x0;if(!_0x5b6f7c&&_0x356873(_0x102864,_0x418eb9))return _0x289889[_0x2a08('0x83')](_0x1e350b,_0x37179f),_0xde82da[_0x2a08('0x3f')](_0x37179f),!0x0;}return!0x1;}}[_0x2a08('0x83')](_0x2c4bdc,_0x37bdb8){if(_0x2c4bdc[_0x2a08('0x33')])for(const _0x26e195 of _0x37bdb8[_0x2a08('0xb1')]())_0x2c4bdc[_0x2a08('0xe7')](_0x26e195);else{const _0x4e5267=_0x37bdb8['getFirstRange']()[_0x2a08('0xba')];this[_0x2a08('0xd6')](_0x2c4bdc,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x2c4bdc[_0x2a08('0x10b')]()[_0x2a08('0x46')],_0x4e5267));}_0x37bdb8[_0x2a08('0xc3')]();}}class Dt{constructor(_0x577f1a){this[_0x2a08('0x37')]=_0x577f1a,this[_0x2a08('0x136')]=_0x577f1a['model'],this[_0x2a08('0x10e')]=new Map(),this[_0x2a08('0xf')]=new Map(),this[_0x2a08('0x4d')]();}[_0x2a08('0xe8')](_0x354921,_0x5d689a,_0x20ac68,_0x437cb4,_0x438400,_0x57b333){return new _0x21d5ce(this['_model'],{'type':_0x354921,'subType':_0x5d689a,'id':_0x20ac68,'author':_0x437cb4,'creator':_0x437cb4,'attributes':_0x438400,'onAttributesChange':_0x57b333,'onAccept':(..._0x75397d)=>this[_0x2a08('0x124')](_0x354921,_0x5d689a,_0x2a08('0x40'))(..._0x75397d),'onDiscard':(..._0x1f094b)=>this[_0x2a08('0x124')](_0x354921,_0x5d689a,_0x2a08('0xb8'))(..._0x1f094b)});}[_0x2a08('0x103')](_0x5bb4f3,_0x188491,_0x434406,_0x8e7aa0){const _0x57de47=_0x5bb4f3+':'+_0x188491+':'+_0x434406;this['_customCallbacks'][_0x2a08('0x68')](_0x57de47,_0x8e7aa0);}[_0x2a08('0x124')](_0x221aa1,_0x2bbf36,_0x4e7a45){const _0x3d1ba2=_0x221aa1+':'+_0x2bbf36+':'+_0x4e7a45;return this[_0x2a08('0x10e')]['get'](_0x3d1ba2)||this['_defaultCallbacks']['get'](_0x221aa1+':'+_0x4e7a45);}[_0x2a08('0x4d')](){const _0x129447=()=>{},_0x48af03=_0x1a32a2=>{_0x1a32a2[_0x2a08('0x1a')]((_0x5e7f1c,_0x56f53a)=>_0x5e7f1c['start'][_0x2a08('0xef')](_0x56f53a[_0x2a08('0x46')])?0x1:-0x1),this[_0x2a08('0x136')][_0x2a08('0x3e')](_0x241c19=>{for(const _0x1d54c1 of _0x1a32a2){let _0x340c0f;_0x340c0f=_0x1d54c1[_0x2a08('0xba')]['isAtEnd']&&_0x1d54c1[_0x2a08('0xba')]['parent']==_0x1d54c1['start'][_0x2a08('0x1c')]?_0x241c19[_0x2a08('0x54')](_0x1d54c1[_0x2a08('0x46')]['nodeAfter'],'on'):_0x241c19[_0x2a08('0x54')](_0x1d54c1),this[_0x2a08('0x136')]['deleteContent'](_0x340c0f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24d4fa=(_0x693d06,_0x54b137)=>{this[_0x2a08('0x136')][_0x2a08('0x3e')](_0x57e195=>{const {commandName:_0x3e18f7,commandParams:_0xe2bd61=[]}=_0x54b137,_0x5b01f0=_0x693d06[_0x2a08('0x69')](_0x2ad442=>(_t(_0x2ad442)&&(_0x2ad442=this['_model']['createRange'](_0x2ad442[_0x2a08('0xba')])),_0x2ad442))[_0x2a08('0x15')](_0x3650bd=>'$graveyard'!==_0x3650bd[_0x2a08('0x76')][_0x2a08('0x47')]);if(_0x5b01f0[_0x2a08('0xb2')]<0x1)return;const _0x24fd79=Array[_0x2a08('0x88')](this['_model']['document']['selection'][_0x2a08('0xb1')]())['map'](_0xc1778=>_0x104eb2[_0x2a08('0x12a')](_0xc1778));_0x57e195['setSelection'](_0x5b01f0);for(const _0x33c74e of this['_editor'][_0x2a08('0x2')][_0x2a08('0x2')]())_0x33c74e[_0x2a08('0x53')]();_0xe2bd61[_0x2a08('0x27')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x2a08('0x1d')](_0x3e18f7,..._0xe2bd61);const _0x160d25=_0x24fd79[_0x2a08('0x15')](_0x5be0cb=>'$graveyard'!=_0x5be0cb[_0x2a08('0x76')][_0x2a08('0x47')]);_0x160d25[_0x2a08('0xb2')]>0x0&&_0x57e195[_0x2a08('0x123')](_0x160d25);for(const _0x48033f of _0x24fd79)_0x48033f['detach']();});},_0x5f273e=(_0x571f9d,_0x481696)=>0x1==_0x571f9d[_0x2a08('0xb2')]&&0x1==_0x481696['length']&&_0x571f9d[0x0][_0x2a08('0xba')]['isEqual'](_0x481696[0x0]['start']),_0x3bc79c=(_0xe6a0d0,_0x203c0d,_0x3147ba,_0x2281f1)=>xt(_0xe6a0d0,_0x203c0d,_0x3147ba,_0x2281f1,this[_0x2a08('0x136')])?[_0xe6a0d0,_0x203c0d]:xt(_0x203c0d,_0xe6a0d0,_0x2281f1,_0x3147ba,this[_0x2a08('0x136')])?[_0x203c0d,_0xe6a0d0]:null;this[_0x2a08('0xf')]['set'](_0x2a08('0x84'),_0x129447),this['_defaultCallbacks'][_0x2a08('0x68')](_0x2a08('0xbf'),_0x48af03),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0xa5'),_0x5f273e),this['_defaultCallbacks']['set'](_0x2a08('0xcf'),_0x3bc79c),this[_0x2a08('0xf')]['set'](_0x2a08('0xce'),_0x48af03),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x125'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')]('deletion:join',_0x5f273e),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x6'),_0x3bc79c),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x92'),_0x24d4fa),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0xb4'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x13c'),_0x5f273e),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x10a'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0xcd'),_0x24d4fa),this['_defaultCallbacks']['set'](_0x2a08('0x7c'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x80'),_0x5f273e),this[_0x2a08('0xf')][_0x2a08('0x68')]('formatBlock:chain',_0x129447);}}function Bt(_0x14cbb1,_0x61bae9,_0x350828){for(const _0xe25e36 of _0x61bae9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe25e36[_0x2a08('0x76')]==_0xe25e36)return!0x1;if(!_0x350828[_0x2a08('0xc1')](_0xe25e36))return!0x1;if(_0x14cbb1[_0x2a08('0x3d')](_0xe25e36)||_0x14cbb1[_0x2a08('0x11f')](_0xe25e36))return!0x0;}return!0x1;}function _t(_0x23db03){return _0x23db03[_0x2a08('0xba')][_0x2a08('0xa9')]==_0x23db03[_0x2a08('0x46')][_0x2a08('0x1c')]&&_0x23db03[_0x2a08('0xba')][_0x2a08('0x59')];}function Mt(_0x24a71b,_0x49d91f,_0x2685fd,_0x24a673){const _0x4d16c9=_0xa1b3d2=>!_0xa1b3d2['item']['is'](_0x2a08('0xe2'))&&!_0x24a673['isObject'](_0xa1b3d2[_0x2a08('0x12f')]),_0x592e0d=_0x24a71b['start'][_0x2a08('0x79')](_0x4d16c9),_0x43473c=_0x24a71b[_0x2a08('0xba')]['getLastMatchingPosition'](_0x4d16c9,{'direction':_0x2a08('0x13f')});return(!_0x24a71b[_0x2a08('0x46')][_0x2a08('0xc')](_0x592e0d)||!_0x24a71b[_0x2a08('0xba')][_0x2a08('0xc')](_0x43473c))&&(_0x592e0d['isBefore'](_0x43473c)?_0x2685fd[_0x2a08('0xf0')](_0x49d91f,{'range':_0x2685fd[_0x2a08('0xcb')](_0x592e0d,_0x43473c)}):_0x2685fd['removeMarker'](_0x49d91f),!0x0);}function $t(_0x3ac3c8){return _0x4c1c58(_0x3ac3c8);}function Nt(_0x25f7d2){const _0x5d006b=_0x25f7d2['start'][_0x2a08('0x1c')];return _0x5d006b&&_0x5d006b['is'](_0x2a08('0xe0'));}function Rt(_0x46ed1f,_0x2f3994){const _0x355905=_0x2f3994['schema'][_0x2a08('0x3d')](_0x46ed1f)||_0x2f3994[_0x2a08('0x8c')][_0x2a08('0xc2')](_0x46ed1f);return _0x2f3994[_0x2a08('0xcb')](_0x2f3994[_0x2a08('0xf6')](_0x46ed1f,_0x2a08('0x102')),_0x355905?_0x2f3994[_0x2a08('0x97')](_0x46ed1f):_0x2f3994['createPositionAt'](_0x46ed1f,'end'));}function xt(_0x3e5ef4,_0xefaa9f,_0x40b5cf,_0x59233f,_0x361f7e){if(_0x40b5cf[_0x2a08('0xba')][_0x2a08('0xc')](_0x59233f['start']))return!0x0;if(_0x3e5ef4[_0x2a08('0x130')]!=_0xefaa9f[_0x2a08('0x130')])return!0x1;if(!_0x40b5cf[_0x2a08('0xba')][_0x2a08('0xac')](_0x59233f[_0x2a08('0x46')]))return!0x1;const _0x171728=_0x361f7e['createRange'](_0x40b5cf[_0x2a08('0xba')],_0x59233f[_0x2a08('0x46')])[_0x2a08('0x109')]();for(const _0x3f6b10 of _0x171728)if([_0x2a08('0xa8'),_0x2a08('0x39')]['includes'](_0x3f6b10[_0x2a08('0x130')])&&_0x361f7e[_0x2a08('0x8c')][_0x2a08('0x11f')](_0x3f6b10[_0x2a08('0x12f')]))return!0x1;return!0x0;}
23
+ const _0x4775=['removeClass','isLocal','containerElement','formatInline:join','getAllAdjacentSuggestions','enableCommand','bindElementToMarker','suggestionUnloaded','insertion:join','_commentsRepository','getChangedMarkers','trackChanges','locale','open','getCustomProperty','push','writer','dataDowncast','editing','getIntersection','getItems','isSelectable','isObject','nodeAfter','markMultiRangeBlockFormat','pluginName','discardAllSuggestions','commands','before','updateSuggestion','markerToHighlight','start','addSuggestionData','_breakSuggestionMarker','addSuggestion','document','formatInline','execute','formatBlock:discard','containsRangeInObject','removeMarker:suggestion:formatBlock','containsRange','insertion:accept','ready','markerName','insertion','getSuggestionCallback','isIntersectingWithRange','removeMarker','fromCharCode','filter','creator','_customCallbacks','isNextTo','rejected','PendingActions','addUser','split','commentThread','change','formatBlock:','authoredAt','markMultiRangeInsertion','createSelection','showSuggestionHighlights','value','clone','getUser','parent','length','_adapter','some','addMarkerName','stopListening','setAttribute','howMany','always','getSuggestion','accepted','$textProxy','createPositionAt','end','removeComment','ck-suggestion-marker--active','never','CommentsRepository','stop','deletion:chain','backward','requires','join','includes','skipNestingCheck','range','accept','documentSelection','isExternal','subType','attributes','getFirstRange','isBefore','fetchCommentThread','options','_updateSuggestionData','differ','rootName','change:_saved','deletion','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','data','hasComments','collaboration.channelId','authorName','low','originalSuggestionId','widget','_rangeIsInLocalUserInsertion','ck-suggestion-marker-formatBlock','_handleNewSuggestionMarker','ck-suggestion-marker-','track-changes-suggestion-data-mismatch','from','toViewElement','head','toJSON','_findSuggestions','getAncestors','track-changes-adapter-already-set','_checkSuggestionCorrectness','_addSuggestionMarker','move','has','addClass','createPositionAfter','fromRange','removeAttribute','author','position','_suggestionFactory','getShiftedBy','isMultiRange','previous','delete','_isForcedDefaultExecutionBlock','map','addMarker:suggestion:formatBlock','_createSuggestion','getLastMatchingPosition','detach','track-changes-adapter-missing-getsuggestion','update:suggestion','name','$graveyard','containsItem','discardSelectedSuggestions','formatBlock:accept','enqueueChange','discard','suggestion','insertContent','dataToMarker','insertion:','sort','containsPosition','registerPostFixer','get','addComment','clear','_splitMarkerName','isEqual','activeMarkers','_joinSuggestions','values','group','fire','_onDiscard','schema','_model','markInsertion','_removeSuggestion','addRange','after','_suggestions','resolve','_suggestionState','isTouching','dataReady','createdAt','next','marker-count','formatInline:','markBlockFormat','for','_trackFormatChanges','markMultiRangeDeletion','catch','then','notReady','selection','trackChangesCommand','_cutOutSuggestionMarker','upcast','addHighlight','editor','formatBlock','registerCustomCallback','removeMarkers','_setSuggestionData','applyOperation','getAttribute','_enabledCommands','getNearestSelectionRange','setTo','isCollapsed','deleteContent','isDocumentOperation','isOwn','buildSuggestion','_editor','listenTo','createPositionBefore','consumable','element','external:','isBlock','removed','adapter','TrackChangesEditing','lowest','createElement','multipleBlocks','splice','getMultiRangeId','isRemovable','isInsideObject','init','data-suggestion','model','suggestion-type','_setSuggestionRange','markerReady','trackChanges.mergeNestedSuggestions','createRange','config','root','error-saving-suggestion-data-suggestion-discarded','forceDefaultExecution','return','targetPosition','getDifference','_addThreadToSuggestion','markerToData','size','forward','commandName','_refreshSuggestionsChain','change:activeMarkers','_defaultCallbacks','formatInline:accept','addMarker:suggestion','suggestion:','track-changes-command-not-found','getFirstMarker','updateMarker','add','isUndo','set','isInContent','formatGroupId','rethrowUnexpectedError','item','_registerDefaultCallbacks','conversion','getWalker','consume','enableReadOnlyMode','isAtEnd','isLimit','_getAuthorFromId','getRanges','formatInline:discard','discardSuggestion','elementEnd','unbindElementFromMarkerName','mapper','oldRange','batch','type','_mergeNestedSuggestions','markInlineFormat','suggestionLoaded','getSuggestions','chain','@external','multi','Users','every','define','track-changes-suggestion-not-found','acceptAllSuggestions','setSelection','elementStart','nodeBefore','getChanges','deletion:','high','isAfter','createRangeIn','ck-suggestion-marker','acceptSuggestion','highest','_saved','plugins','addMarker','editingDowncast','_getSuggestionData','markerNameToElements','formatBlock:join','newRange','normal'];(function(_0x265007,_0x4775e7){const _0x3b4a1c=function(_0x5aecbe){while(--_0x5aecbe){_0x265007['push'](_0x265007['shift']());}};_0x3b4a1c(++_0x4775e7);}(_0x4775,0x105));const _0x3b4a=function(_0x265007,_0x4775e7){_0x265007=_0x265007-0x0;let _0x3b4a1c=_0x4775[_0x265007];return _0x3b4a1c;};import{Plugin as _0x1903b8,PendingActions as _0x566bfa}from'ckeditor5/src/core';import{LiveRange as _0x52f246}from'ckeditor5/src/engine';import{CKEditorError as _0xa8742b,uid as _0x43cb01,priorities as _0xafe4ad,logWarning as _0x2fab1c}from'ckeditor5/src/utils';import{toWidget as _0x3e37f9}from'ckeditor5/src/widget';import{Users as _0x5eb117,hashObject as _0x5670c4}from'ckeditor5-collaboration/src/collaboration-core';import _0x5d2dd5 from'./commands/trackchangescommand';import _0x2a2cd7 from'./commands/acceptsuggestioncommand';import _0x1eed5a from'./commands/discardsuggestioncommand';import _0x513acc from'./commands/executeonallsuggestionscommand';import _0x4f101d from'./commands/executeonselectedsuggestionscommand';import _0x143fbf from'./suggestion';import _0x1e8e67 from'./suggestiondescriptionfactory';import _0x52ad7a from'./integrations/alignment';import _0x1715fb from'./integrations/basicstyles';import _0x2ecda9 from'./integrations/blockquote';import _0x202e28 from'./integrations/ckbox';import _0x43c5a3 from'./integrations/codeblock';import _0x26a933 from'./integrations/comments';import _0x3ddc3f from'./integrations/deletecommand';import _0x1aaab4 from'./integrations/documentlist';import _0x25fb3a from'./integrations/entercommand';import _0x4b6a29 from'./integrations/findandreplace';import _0x3eaab6 from'./integrations/font';import _0x52d76d from'./integrations/formatpainter';import _0x55f6b0 from'./integrations/heading';import _0x38ec76 from'./integrations/highlight';import _0x2e59c0 from'./integrations/horizontalline';import _0xcac70a from'./integrations/htmlembed';import _0x201676 from'./integrations/image';import _0x4c1f8c from'./integrations/imagereplace';import _0x544274 from'./integrations/importword';import _0x15a5ea from'./integrations/indent';import _0x2eff32 from'./integrations/inputcommand';import _0x71acf6 from'./integrations/link';import _0x19e534 from'./integrations/list';import _0x312415 from'./integrations/listproperties';import _0x30ca14 from'./integrations/mediaembed';import _0x8043e8 from'./integrations/mention';import _0x17ad13 from'./integrations/pagebreak';import _0x4d8d9c from'./integrations/paragraph';import _0x3573d8 from'./integrations/removeformat';import _0x152e2e from'./integrations/restrictededitingmode';import _0x10bb2b from'./integrations/shiftentercommand';import _0x3b2fe6 from'./integrations/standardeditingmode';import _0x576d1c from'./integrations/style';import _0x5bb05b from'./integrations/table';import _0x3e212c from'./integrations/tablemergesplit';import _0x920a65 from'./integrations/tableheadings';import _0x1a05a1 from'./integrations/tableclipboard';import _0x379522 from'./integrations/tablecolumnresize';import _0x14243f from'./integrations/template';import _0x2be2ab from'./integrations/tableofcontents';import _0x5ec3ba from'./integrations/title';import _0x4c9183 from'./integrations/undo';import{getTranslation as _0x55976c}from'./utils/common-translations';import _0x2cc4e6 from'./integrations/tablecaption';import _0x5c993b from'./integrations/documentlistproperties';import _0x7684b8 from'./integrations/tableproperties';export default class p extends _0x1903b8{static get[_0x3b4a('0x95')](){return[_0x3b4a('0x91'),_0x5eb117,_0x566bfa,_0x52ad7a,_0x1715fb,_0x2ecda9,_0x202e28,_0x43c5a3,_0x26a933,_0x3ddc3f,_0x1aaab4,_0x5c993b,_0x25fb3a,_0x4b6a29,_0x3eaab6,_0x52d76d,_0x55f6b0,_0x38ec76,_0x2e59c0,_0xcac70a,_0x201676,_0x4c1f8c,_0x544274,_0x15a5ea,_0x2eff32,_0x71acf6,_0x19e534,_0x312415,_0x30ca14,_0x8043e8,_0x17ad13,_0x4d8d9c,_0x3573d8,_0x152e2e,_0x10bb2b,_0x3b2fe6,_0x576d1c,_0x5bb05b,_0x3e212c,_0x920a65,_0x2cc4e6,_0x1a05a1,_0x379522,_0x2be2ab,_0x7684b8,_0x14243f,_0x5ec3ba,_0x4c9183];}static get[_0x3b4a('0x55')](){return _0x3b4a('0x120');}constructor(_0x4d52c6){function _0x4ce972(_0x41aa02){return _0x41aa02[_0x3b4a('0xcd')](_0x50b333=>String[_0x3b4a('0x6d')](_0x50b333))[_0x3b4a('0x96')]('');}super(_0x4d52c6),this['set'](_0x3b4a('0xe7'),[]),this['on'](_0x3b4a('0x13d'),(_0x228c73,_0x1754f4,_0x1b9c50,_0x1f7728)=>{this['_model'][_0x3b4a('0x77')](()=>{for(const _0x2394f8 of[..._0x1f7728,..._0x1b9c50])this[_0x3b4a('0xee')]['markers']['has'](_0x2394f8)&&_0x4d52c6[_0x3b4a('0x4e')]['reconvertMarker'](_0x2394f8);});}),this['_descriptionFactory']=new _0x1e8e67(this[_0x3b4a('0x108')][_0x3b4a('0x12a')][_0x3b4a('0xed')],this[_0x3b4a('0x108')][_0x3b4a('0x48')]),this[_0x3b4a('0x82')]=null,this[_0x3b4a('0xc7')]=new Dt(this['editor']),this[_0x3b4a('0xf3')]=new Map(),this[_0x3b4a('0x45')]=_0x4d52c6[_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x91')),this[_0x3b4a('0x10f')]=new Set(),this[_0x3b4a('0xee')]=this[_0x3b4a('0x108')][_0x3b4a('0x12a')],this['_suggestionState']=new WeakMap(),this[_0x3b4a('0xcc')]=!0x1,_0x4d52c6[_0x3b4a('0x130')][_0x3b4a('0x25')]('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4d52c6[_0x3b4a('0x130')][_0x3b4a('0xe2')]('trackChanges.trackFormatChanges'),_0x4d52c6[_0x3b4a('0x130')][_0x3b4a('0x25')](_0x3b4a('0x12e'),!0x0),this[_0x3b4a('0x1c')]=_0x4d52c6['config'][_0x3b4a('0xe2')](_0x3b4a('0x12e')),this[_0x3b4a('0x104')]=new _0x5d2dd5(_0x4d52c6,this[_0x3b4a('0x10f')]),this[_0x4ce972([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ce972([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x36]);}[_0x3b4a('0x128')](){const _0x4b3020=this[_0x3b4a('0x108')];_0x4b3020[_0x3b4a('0xc')]['for']('editingDowncast')[_0x3b4a('0x5a')]({'model':_0x3b4a('0xdb'),'view':_0x3caead=>{const {id:_0x3e1517,type:_0x6c2121}=this[_0x3b4a('0xe5')](_0x3caead[_0x3b4a('0x68')]),_0x37b7fb=['ck-suggestion-marker',_0x3b4a('0xb4')+_0x6c2121];let _0x43ee19=0xbb8;return this['activeMarkers']['includes'](_0x3caead[_0x3b4a('0x68')])&&(_0x37b7fb[_0x3b4a('0x4b')](_0x3b4a('0x8f')),_0x43ee19=0xbc2),_0x3b4a('0xa7')==_0x6c2121&&(_0x43ee19+=0x5),{'classes':_0x37b7fb,'attributes':{'data-suggestion':_0x3e1517},'priority':_0x43ee19};}}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x4d'))[_0x3b4a('0x4')](_0x54f897=>{_0x54f897['on'](_0x3b4a('0x140'),(_0x41ec34,_0x10b2c6,_0x15c492)=>{if(!_0x15c492[_0x3b4a('0xa2')][_0x3b4a('0x7c')])return;const _0x80cc4f=_0x10b2c6[_0x3b4a('0xa')];if(!_0x80cc4f)return;const _0x9acce3=_0x15c492[_0x3b4a('0x18')][_0x3b4a('0xb7')](_0x80cc4f);_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')][_0x3b4a('0x52')](_0x80cc4f)&&_0x9acce3&&!_0x9acce3[_0x3b4a('0x4a')](_0x3b4a('0xb0'))&&_0x9acce3['is'](_0x3b4a('0x3e'))&&_0x3e37f9(_0x9acce3,_0x15c492[_0x3b4a('0x4c')]);},{'priority':'high'});}),_0x4b3020['conversion'][_0x3b4a('0xfd')](_0x3b4a('0x4d'))['markerToHighlight']({'model':_0x3b4a('0xdb'),'view':(_0x30d231,_0x2f5b39)=>{if(!_0x2f5b39[_0x3b4a('0xa2')][_0x3b4a('0x7c')])return null;const {type:_0x4acf32}=this['_splitMarkerName'](_0x30d231[_0x3b4a('0x68')]);return{'classes':[_0x3b4a('0x30'),_0x3b4a('0xb4')+_0x4acf32],'priority':0xbb8};}});const _0x2b39af=({showActiveMarkers:_0x543f13=!0x0}={})=>(_0x5d71f0,_0x1e9b80,_0x31d20e)=>{if(!_0x1e9b80['item'])return;if(_0x1e9b80[_0x3b4a('0xa')]['is'](_0x3b4a('0x103')))return void _0x31d20e[_0x3b4a('0x11a')][_0x3b4a('0xe')](_0x1e9b80[_0x3b4a('0xa')],_0x5d71f0[_0x3b4a('0xd4')]);const _0x46db15=_0x31d20e[_0x3b4a('0x18')][_0x3b4a('0xb7')](_0x1e9b80[_0x3b4a('0xa')]);if(!(_0x1e9b80[_0x3b4a('0xa')]['is']('element')&&_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')]['isBlock'](_0x1e9b80[_0x3b4a('0xa')])&&!_0x46db15[_0x3b4a('0x4a')]('addHighlight')))return;const {id:_0x41b339}=this['_splitMarkerName'](_0x1e9b80[_0x3b4a('0x68')]);_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0xc1')]([_0x3b4a('0x30'),'ck-suggestion-marker-formatBlock'],_0x46db15),_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0x86')](_0x3b4a('0x129'),_0x41b339,_0x46db15),_0x31d20e[_0x3b4a('0x18')][_0x3b4a('0x42')](_0x46db15,_0x1e9b80['markerName']),_0x543f13&&(this[_0x3b4a('0xe7')][_0x3b4a('0x97')](_0x1e9b80[_0x3b4a('0x68')])?_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0xc1')](_0x3b4a('0x8f'),_0x46db15):_0x31d20e[_0x3b4a('0x4c')][_0x3b4a('0x3c')]('ck-suggestion-marker--active',_0x46db15));for(const _0xf3380d of _0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x2f')](_0x1e9b80[_0x3b4a('0xa')])[_0x3b4a('0x50')]())_0x31d20e[_0x3b4a('0x11a')][_0x3b4a('0xe')](_0xf3380d,_0x5d71f0['name']);_0x31d20e[_0x3b4a('0x11a')]['consume'](_0x1e9b80['item'],_0x5d71f0['name']);};_0x4b3020['conversion'][_0x3b4a('0xfd')](_0x3b4a('0x4d'))['add'](_0x116048=>{_0x116048['on'](_0x3b4a('0xce'),(_0x1ac0dd,_0xc3a3f7,_0x120550)=>{_0x120550[_0x3b4a('0xa2')][_0x3b4a('0x7c')]&&_0x2b39af({'showActiveMarkers':!0x1})(_0x1ac0dd,_0xc3a3f7,_0x120550);},{'priority':_0x3b4a('0x32')});}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x4d'))[_0x3b4a('0x138')]({'model':'suggestion','view':(_0x37b05a,_0x3c385c)=>_0x3c385c[_0x3b4a('0xa2')][_0x3b4a('0x7c')]?null:{'group':'suggestion','name':_0x37b05a['substr'](0xb)}}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x106'))['elementToElement']({'view':{'name':_0x3b4a('0xdb'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x55af0a,{writer:_0x10c0cc})=>{let _0x3c487f=_0x3b4a('0x0')+_0x55af0a[_0x3b4a('0x10e')](_0x3b4a('0x12b'))+':'+_0x55af0a[_0x3b4a('0x10e')]('id');return _0x55af0a[_0x3b4a('0x10e')](_0x3b4a('0xfa'))&&(_0x3c487f+=':'+_0x55af0a['getAttribute']('marker-count')),_0x10c0cc[_0x3b4a('0x122')]('$marker',{'data-name':_0x3c487f});}}),_0x4b3020['conversion'][_0x3b4a('0xfd')](_0x3b4a('0x106'))[_0x3b4a('0xdd')]({'view':_0x3b4a('0xdb')}),_0x4b3020['conversion'][_0x3b4a('0xfd')]('editingDowncast')[_0x3b4a('0x4')](_0x5ab4ac=>{_0x5ab4ac['on'](_0x3b4a('0xce'),_0x2b39af(),{'priority':_0x3b4a('0x2d')});}),_0x4b3020[_0x3b4a('0xc')][_0x3b4a('0xfd')](_0x3b4a('0x36'))['add'](_0x1ecc33=>{_0x1ecc33['on'](_0x3b4a('0x64'),(_0x5d268e,_0x1a029e,_0x5f1c48)=>{const _0x3cd17c=_0x5f1c48[_0x3b4a('0x18')][_0x3b4a('0x38')](_0x1a029e['markerName']);if(_0x3cd17c)for(const _0x45eb89 of _0x3cd17c)_0x45eb89[_0x3b4a('0x4a')](_0x3b4a('0x107'))||(_0x5f1c48[_0x3b4a('0x4c')]['removeClass'](['ck-suggestion-marker',_0x3b4a('0xb2'),'ck-suggestion-marker--active'],_0x45eb89),_0x5f1c48[_0x3b4a('0x4c')][_0x3b4a('0xc4')](_0x3b4a('0x129'),_0x45eb89),_0x5f1c48[_0x3b4a('0x18')][_0x3b4a('0x17')](_0x45eb89,_0x1a029e[_0x3b4a('0x68')]));},{'priority':_0x3b4a('0x2d')});}),_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x5f')][_0x3b4a('0xe1')](_0x5093ca=>{let _0x4c894d=!0x1;const _0xe3e7c8=Array[_0x3b4a('0xb6')](_0x4b3020[_0x3b4a('0x12a')]['document'][_0x3b4a('0xa4')][_0x3b4a('0x46')]()),_0x7e4074=new Set();for(const {name:_0x5b2508,data:_0x1e2ca3}of _0xe3e7c8){const {group:_0xdc4f95,type:_0x2e70c5,id:_0x2b82c1}=this['_splitMarkerName'](_0x5b2508);if(_0x3b4a('0xdb')!==_0xdc4f95)continue;const _0x5a9471=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x2b82c1);if(null!=_0x1e2ca3[_0x3b4a('0x3a')]){'formatInline'==_0x2e70c5&&(_0x4c894d=_0x4c894d||Mt(_0x1e2ca3[_0x3b4a('0x3a')],_0x5b2508,_0x5093ca,_0x4b3020[_0x3b4a('0x12a')]['schema']));if(_0x1e2ca3[_0x3b4a('0x3a')][_0x3b4a('0x112')]||_0x3b4a('0xd5')==_0x1e2ca3[_0x3b4a('0x3a')][_0x3b4a('0x131')][_0x3b4a('0xa5')]||_0x3b4a('0x109')==_0x2e70c5&&!Nt(_0x1e2ca3[_0x3b4a('0x3a')])||_0x3b4a('0xa7')==_0x2e70c5&&!(!_t(_0x789f08=_0x1e2ca3[_0x3b4a('0x3a')])&&!function(_0xd6df1c){return _0xd6df1c[_0x3b4a('0x5b')]['parent']==_0xd6df1c[_0x3b4a('0x8d')]['nodeBefore']&&_0xd6df1c[_0x3b4a('0x5b')]['isAtEnd'];}(_0x789f08)))_0x5093ca['removeMarker'](_0x5b2508),_0x4c894d=!0x0;else{if(!_0x5a9471||!_0x5a9471[_0x3b4a('0x7')])continue;_0x7e4074[_0x3b4a('0x4')](_0x5a9471);}}}var _0x789f08;return _0x7e4074[_0x3b4a('0x139')]>0x0&&(_0x4c894d=!!this[_0x3b4a('0xa8')](_0x7e4074)||_0x4c894d),_0x4c894d;}),_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x5f')][_0x3b4a('0xe1')](_0x33268a=>{let _0x19d8fb=!0x1;for(const _0x52a4f0 of _0x4b3020[_0x3b4a('0x12a')]['document'][_0x3b4a('0xa4')][_0x3b4a('0x2b')]()){if('insert'!=_0x52a4f0[_0x3b4a('0x1b')])continue;const _0x4f1d88=_0x52a4f0[_0x3b4a('0xc6')][_0x3b4a('0xc8')](_0x52a4f0[_0x3b4a('0x81')]);if(_0x4f1d88[_0x3b4a('0x10')])for(const _0x32f45b of this[_0x3b4a('0xf3')][_0x3b4a('0xe9')]()){if(_0x32f45b[_0x3b4a('0xc9')]||!_0x32f45b[_0x3b4a('0x7')])continue;if('formatBlock'!=_0x32f45b['type'])continue;const _0x3a7c14=_0x32f45b[_0x3b4a('0x9f')]();if(_0x3a7c14['start'][_0x3b4a('0x80')]!=_0x3a7c14[_0x3b4a('0x8d')][_0x3b4a('0x80')]&&_0x3a7c14[_0x3b4a('0x8d')][_0x3b4a('0xe6')](_0x52a4f0[_0x3b4a('0xc6')])){const _0x213967=_0x4b3020[_0x3b4a('0x12a')]['createRange'](_0x3a7c14[_0x3b4a('0x5b')],_0x4f1d88);_0x33268a[_0x3b4a('0x3')](_0x32f45b[_0x3b4a('0x2')](),{'range':_0x213967}),_0x19d8fb=!0x0;}}}return _0x19d8fb;}),_0x4b3020[_0x3b4a('0x12a')]['markers']['on'](_0x3b4a('0xd3'),(_0x4068e5,_0x1ff5ff,_0x551859)=>{if(null==_0x551859){const {id:_0x32b2cb}=this[_0x3b4a('0xe5')](_0x1ff5ff[_0x3b4a('0xd4')]),_0x47c379=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x32b2cb);_0x47c379&&_0x47c379['addMarkerName'](_0x1ff5ff[_0x3b4a('0xd4')]);}}),_0x4b3020[_0x3b4a('0x12a')]['document']['on']('change:data',()=>{const _0x54240b=Array[_0x3b4a('0xb6')](_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x5f')]['differ'][_0x3b4a('0x46')]())['filter'](_0x2271ee=>_0x3b4a('0xdb')===this[_0x3b4a('0xe5')](_0x2271ee[_0x3b4a('0xd4')])[_0x3b4a('0xea')]);if(0x0===_0x54240b[_0x3b4a('0x81')])return;_0x54240b[_0x3b4a('0xdf')]((_0x262804,_0x84c0d3)=>{const _0x57f33d=_0x262804[_0x3b4a('0xaa')][_0x3b4a('0x19')],_0x4daa53=_0x84c0d3[_0x3b4a('0xaa')]['oldRange'];return null===_0x57f33d&&null===_0x4daa53?0x0:null===_0x57f33d&&null!==_0x4daa53?-0x1:null!==_0x57f33d&&null===_0x4daa53?0x1:_0x57f33d[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0x4daa53['start'])?-0x1:0x1;});const _0x5bf437=new Set(),_0xc2371=new Set();for(const {name:_0x4eaab7,data:_0x4a1377}of _0x54240b){const {id:_0x43df55}=this[_0x3b4a('0xe5')](_0x4eaab7);if(null===_0x4a1377[_0x3b4a('0x19')]){const _0x1d9eec=this[_0x3b4a('0xb3')](_0x4eaab7);_0xc2371['add'](_0x1d9eec);}else{const _0x4db15=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x43df55);null!==_0x4a1377[_0x3b4a('0x3a')]||_0x4db15['isInContent']?(_0x5bf437['add'](_0x4db15[_0x3b4a('0xb8')]),_0xc2371[_0x3b4a('0x4')](_0x4db15)):this[_0x3b4a('0xf0')](_0x4db15);}}_0xc2371[_0x3b4a('0x139')]>0x0&&this[_0x3b4a('0x13c')](_0xc2371);for(const _0x2ebc37 of _0x5bf437)this[_0x3b4a('0xeb')]('suggestionChanged',_0x2ebc37);}),_0x4b3020[_0x3b4a('0x12a')]['on'](_0x3b4a('0x10d'),(_0x1f1a3d,_0x52232e)=>{const _0x1d41b6=_0x52232e[0x0];if(!this[_0x3b4a('0xf3')]['size'])return;if(!_0x1d41b6[_0x3b4a('0x114')])return;if(_0x1d41b6[_0x3b4a('0x1a')][_0x3b4a('0x5')]||!_0x1d41b6['batch'][_0x3b4a('0x3d')])return;let _0xb3a7ea,_0x2e93e8;switch(_0x1d41b6[_0x3b4a('0x1b')]){case'insert':_0xb3a7ea=_0x4b3020['model'][_0x3b4a('0x8c')](_0x1d41b6[_0x3b4a('0xc6')]),_0x2e93e8=_0xb3a7ea[_0x3b4a('0xc8')](_0x1d41b6[_0x3b4a('0x87')]);break;case _0x3b4a('0x75'):_0xb3a7ea=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x8c')](_0x1d41b6['splitPosition']),_0x2e93e8=_0x4b3020['model']['createPositionAt'](_0x1d41b6['moveTargetPosition']);break;case _0x3b4a('0xbf'):_0xb3a7ea=_0x4b3020[_0x3b4a('0x12a')]['createPositionAt'](_0x1d41b6[_0x3b4a('0x135')]),_0x2e93e8=_0xb3a7ea[_0x3b4a('0xc8')](_0x1d41b6[_0x3b4a('0x87')]);break;default:return;}const _0x1287e7=_0x4b3020['model'][_0x3b4a('0x12f')](_0xb3a7ea,_0x2e93e8);_0x4b3020[_0x3b4a('0x12a')]['change'](()=>{for(const {suggestion:_0x409b43,meta:_0x4298d8}of this[_0x3b4a('0xba')](_0x1287e7)){if(_0x409b43[_0x3b4a('0xc9')])continue;if(_0x3b4a('0x60')==_0x409b43[_0x3b4a('0x1b')])continue;const _0x30b599=_0x409b43['data']&&_0x409b43['data'][_0x3b4a('0x123')];(_0x3b4a('0x109')!=_0x409b43['type']||'split'==_0x1d41b6[_0x3b4a('0x1b')]&&!_0x30b599)&&(_0x4298d8[_0x3b4a('0x63')]||'insertion'==_0x409b43[_0x3b4a('0x1b')]&&_0x4298d8[_0x3b4a('0x115')]||_0x409b43[_0x3b4a('0x9f')]()[_0x3b4a('0x65')](_0x1287e7)&&this[_0x3b4a('0x5d')](_0x409b43,_0xb3a7ea,_0x2e93e8));}});},{'priority':_0x3b4a('0x121')}),_0x4b3020['model']['on'](_0x3b4a('0x113'),(_0x24dd3c,_0x19d653)=>{const _0x37ed63=_0x19d653[0x0],_0x455801=_0x19d653[0x1];if(_0x455801&&_0x455801[_0x3b4a('0x133')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3b4a('0x104')][_0x3b4a('0x7d')])return;if(_0x37ed63['isCollapsed'])return;const _0x416242=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')],{start:_0x2be23e,end:_0x4d0c77}=_0x37ed63[_0x3b4a('0x9f')](),_0x373092=_0x2be23e[_0x3b4a('0x53')]&&_0x416242[_0x3b4a('0x11')](_0x2be23e[_0x3b4a('0x53')])?null:_0x416242[_0x3b4a('0x110')](_0x2be23e,_0x3b4a('0x13a')),_0x2fb266=_0x4d0c77['nodeBefore']&&_0x416242[_0x3b4a('0x11')](_0x4d0c77[_0x3b4a('0x2a')])?null:_0x416242[_0x3b4a('0x110')](_0x4d0c77,_0x3b4a('0x94')),_0x329e57=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x12f')](_0x373092?_0x373092[_0x3b4a('0x5b')]:_0x2be23e,_0x2fb266?_0x2fb266[_0x3b4a('0x8d')]:_0x4d0c77);_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x77')](_0x47f772=>{this['markDeletion'](_0x329e57);const _0x338303=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')][_0x3b4a('0x110')](_0x329e57[_0x3b4a('0x5b')]);_0x37ed63['is'](_0x3b4a('0x9b'))?_0x47f772['setSelection'](_0x338303):_0x37ed63[_0x3b4a('0x111')](_0x338303);}),_0x24dd3c['stop']();},{'priority':_0xafe4ad[_0x3b4a('0x3b')]+0xa}),_0x4b3020[_0x3b4a('0x12a')]['on'](_0x3b4a('0xdc'),(_0x1970f8,_0x9c26bb)=>{const _0xce341c=_0x9c26bb[_0x9c26bb[_0x3b4a('0x81')]-0x1];_0xce341c&&_0xce341c[_0x3b4a('0x133')]||this[_0x3b4a('0xcc')]||this[_0x3b4a('0x104')]['value']&&(_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x77')](()=>{let _0xabfb4f=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xdc')](_0x9c26bb[0x0],_0x9c26bb[0x1],_0x9c26bb[0x2],{'forceDefaultExecution':!0x0});if(!_0xabfb4f)return;_0x1970f8[_0x3b4a('0x134')]=_0xabfb4f[_0x3b4a('0x7e')]();const _0x4aac9a=_0xabfb4f[_0x3b4a('0x8d')][_0x3b4a('0x2a')],_0x320f28=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0xed')];_0x4aac9a&&_0x320f28[_0x3b4a('0x11d')](_0x4aac9a)&&!_0x320f28[_0x3b4a('0x52')](_0x4aac9a)&&(_0xabfb4f=_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x12f')](_0xabfb4f[_0x3b4a('0x5b')],_0x4b3020[_0x3b4a('0x12a')][_0x3b4a('0x8c')](_0x4aac9a,_0x3b4a('0x8d')))),this[_0x3b4a('0xef')](_0xabfb4f);}),_0x1970f8[_0x3b4a('0x92')]());},{'priority':'high'}),this[_0x3b4a('0x108')][_0x3b4a('0x57')][_0x3b4a('0x4')](_0x3b4a('0x47'),this[_0x3b4a('0x104')]),this[_0x3b4a('0x41')]('trackChanges');const _0x40c21a=new _0x2a2cd7(_0x4b3020,this[_0x3b4a('0xf3')]);_0x4b3020[_0x3b4a('0x57')][_0x3b4a('0x4')]('acceptSuggestion',_0x40c21a),this[_0x3b4a('0x41')](_0x3b4a('0x31'));const _0x1ab8a7=new _0x1eed5a(_0x4b3020,this[_0x3b4a('0xf3')]);_0x4b3020[_0x3b4a('0x57')]['add'](_0x3b4a('0x15'),_0x1ab8a7),this[_0x3b4a('0x41')](_0x3b4a('0x15')),_0x4b3020[_0x3b4a('0x57')][_0x3b4a('0x4')](_0x3b4a('0x27'),new _0x513acc(_0x4b3020,_0x40c21a,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0x27')),_0x4b3020[_0x3b4a('0x57')][_0x3b4a('0x4')](_0x3b4a('0x56'),new _0x513acc(_0x4b3020,_0x1ab8a7,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0x56')),_0x4b3020['commands'][_0x3b4a('0x4')](_0x3b4a('0xa9'),new _0x4f101d(_0x4b3020,_0x40c21a,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0xa9')),_0x4b3020['commands'][_0x3b4a('0x4')](_0x3b4a('0xd7'),new _0x4f101d(_0x4b3020,_0x1ab8a7,this[_0x3b4a('0xf3')])),this[_0x3b4a('0x41')](_0x3b4a('0xd7'));const _0x3e28d0=_0x4b3020[_0x3b4a('0x34')]['get'](_0x3b4a('0x91'));this[_0x3b4a('0x118')](_0x3e28d0,_0x3b4a('0xe3'),(_0x129c5d,{threadId:_0x1b1ecf})=>{const _0x51cb45=this['_suggestions'][_0x3b4a('0xe2')](_0x1b1ecf);_0x51cb45&&_0x51cb45[_0x3b4a('0x76')]&&0x1===_0x51cb45[_0x3b4a('0x76')][_0x3b4a('0x81')]&&this[_0x3b4a('0xa3')](_0x1b1ecf,{'hasComments':!0x0});},{'priority':_0x3b4a('0xae')}),this[_0x3b4a('0x118')](_0x3e28d0,_0x3b4a('0x8e'),(_0x5ddfdb,{threadId:_0x9c8e2d})=>{const _0x41c82e=this['_suggestions']['get'](_0x9c8e2d);_0x41c82e&&_0x41c82e['commentThread']&&!_0x41c82e[_0x3b4a('0x76')][_0x3b4a('0x81')]&&this[_0x3b4a('0xa3')](_0x9c8e2d,{'hasComments':!0x1});},{'priority':_0x3b4a('0xae')});}set[_0x3b4a('0x11f')](_0xde2bf9){if(this['_adapter'])throw new _0xa8742b(_0x3b4a('0xbc'),this);this[_0x3b4a('0x82')]=_0xde2bf9;}get[_0x3b4a('0x11f')](){return this[_0x3b4a('0x82')];}[_0x3b4a('0x1f')]({skipNotAttached:_0x25321b=!0x1,toJSON:_0x99be9=!0x1}={}){const _0x2bbea4=[];for(const _0x5ec9b5 of this['_suggestions'][_0x3b4a('0xe9')]())_0x25321b&&!_0x5ec9b5[_0x3b4a('0x7')]||_0x2bbea4[_0x3b4a('0x4b')](_0x5ec9b5);return _0x99be9?_0x2bbea4[_0x3b4a('0xcd')](_0x56d3fc=>_0x56d3fc[_0x3b4a('0xb9')]()):_0x2bbea4;}[_0x3b4a('0x89')](_0x4564d9){const _0x566ebf=this[_0x3b4a('0xf3')][_0x3b4a('0xe2')](_0x4564d9);if(!_0x566ebf)throw new _0xa8742b(_0x3b4a('0x26'),this);return _0x566ebf;}['hasSuggestion'](_0x16aeb8){return this[_0x3b4a('0xf3')][_0x3b4a('0xc0')](_0x16aeb8);}[_0x3b4a('0x5c')](_0xd68aaf){const {authorId:_0x18bf3a,id:_0x17ed30,attributes:_0x5615eb}=_0xd68aaf,[_0x4d6c66,_0x2ef028]=_0xd68aaf[_0x3b4a('0x1b')][_0x3b4a('0x75')](':'),_0x2b397a=this[_0x3b4a('0xf3')]['get'](_0x17ed30)||this[_0x3b4a('0xcf')](_0x4d6c66,_0x2ef028,_0x17ed30,_0x18bf3a,_0x5615eb);if(this[_0x3b4a('0x137')](_0x2b397a),this[_0x3b4a('0xbd')](_0x2b397a,_0x4d6c66,_0x2ef028||null,_0x18bf3a),_0x2b397a['createdAt']=_0xd68aaf[_0x3b4a('0xf8')],_0x5615eb&&_0x5615eb['@external']){const _0x6c895b=_0x5615eb[_0x3b4a('0x21')],_0x40a5d0=this['_getExternalAuthor'](_0x6c895b[_0x3b4a('0xad')]);_0x2b397a[_0x3b4a('0x79')]=_0x6c895b[_0x3b4a('0xf8')],_0x2b397a['author']=_0x40a5d0,_0x2b397a[_0x3b4a('0x9c')]=!0x0;}else _0x2b397a[_0x3b4a('0x79')]=_0xd68aaf[_0x3b4a('0xf8')];switch(_0xd68aaf['data']&&(_0x2b397a[_0x3b4a('0xaa')]=_0xd68aaf[_0x3b4a('0xaa')]),_0xd68aaf[_0x3b4a('0x9e')]&&(_0x2b397a[_0x3b4a('0x9e')]=_0xd68aaf[_0x3b4a('0x9e')]),this[_0x3b4a('0x82')]&&this['_adapter'][_0x3b4a('0x5e')]||(_0x2b397a[_0x3b4a('0x33')]=!0x0),this[_0x3b4a('0xf5')]['get'](_0x2b397a)){case'notReady':this['_suggestionState']['set'](_0x2b397a,_0x3b4a('0xf7'));break;case'markerReady':_0x2b397a[_0x3b4a('0x7')]?(this[_0x3b4a('0xf5')][_0x3b4a('0x6')](_0x2b397a,'ready'),this['fire']('suggestionLoaded',_0x2b397a)):this[_0x3b4a('0xf5')]['set'](_0x2b397a,_0x3b4a('0x11e'));}return _0x2b397a;}[_0x3b4a('0x31')](_0x2fec04){this[_0x3b4a('0x133')](()=>{this[_0x3b4a('0x108')]['model'][_0x3b4a('0x77')](()=>{for(const _0x696285 of _0x2fec04[_0x3b4a('0x40')]())_0x696285[_0x3b4a('0x9a')]();});});}['discardSuggestion'](_0x4356df){this['forceDefaultExecution'](()=>{this[_0x3b4a('0x108')][_0x3b4a('0x12a')][_0x3b4a('0x77')](()=>{for(const _0x537ce1 of _0x4356df[_0x3b4a('0x40')]())_0x537ce1[_0x3b4a('0xda')]();});});}[_0x3b4a('0x41')](_0x42f244,_0x47f537){const _0x566c51=this[_0x3b4a('0x108')][_0x3b4a('0x57')][_0x3b4a('0xe2')](_0x42f244);if(!_0x566c51)throw new _0xa8742b(_0x3b4a('0x1'),this,{'commandName':_0x42f244});this[_0x3b4a('0x10f')][_0x3b4a('0x4')](_0x566c51),_0x47f537&&_0x566c51['on'](_0x3b4a('0x61'),(_0x10b981,_0x56c78d)=>{this[_0x3b4a('0x104')][_0x3b4a('0x7d')]&&(this['_isForcedDefaultExecutionBlock']||_0x56c78d[_0x3b4a('0x81')]>0x0&&_0x56c78d[_0x56c78d[_0x3b4a('0x81')]-0x1]&&_0x56c78d[_0x56c78d[_0x3b4a('0x81')]-0x1][_0x3b4a('0x133')]||(_0x47f537((..._0xd04656)=>_0x566c51[_0x3b4a('0x61')](..._0xd04656,{'forceDefaultExecution':!0x0}),..._0x56c78d),_0x10b981[_0x3b4a('0x92')]()));},{'priority':_0x3b4a('0x2d')});}[_0x3b4a('0x133')](_0xc41c60){let _0x67faf5,_0x439da1;const _0x111a0b=this[_0x3b4a('0xcc')];this[_0x3b4a('0xcc')]=!0x0;try{_0x67faf5=_0xc41c60();}catch(_0x7599df){_0x439da1=_0x7599df;}return _0x111a0b||(this[_0x3b4a('0xcc')]=!0x1),_0x439da1&&_0xa8742b[_0x3b4a('0x9')](_0x439da1,this),_0x67faf5;}[_0x3b4a('0xef')](_0x24c3b3,_0x16abf8=null,_0x310826={}){if(_0x24c3b3[_0x3b4a('0x112')])return null;const _0x1f9392=this[_0x3b4a('0x108')][_0x3b4a('0x34')][_0x3b4a('0xe2')]('Users')['me'];for(const {suggestion:_0x4acc3c,meta:_0x43b084}of this['_findSuggestions'](_0x24c3b3,_0x3b4a('0x69')))if(_0x43b084['isOwn']){if(!_0x43b084['isNextTo']){if(!this[_0x3b4a('0x1c')]&&_0x43b084[_0x3b4a('0x63')])continue;return _0x4acc3c;}if(_0x16abf8==_0x4acc3c['subType']){const _0x44dd4a=_0x4acc3c[_0x3b4a('0x9f')]();return _0x44dd4a['start']['isEqual'](_0x24c3b3[_0x3b4a('0x8d')])?this[_0x3b4a('0x12c')](_0x4acc3c,this[_0x3b4a('0xee')]['createRange'](_0x24c3b3['start'],_0x44dd4a[_0x3b4a('0x8d')])):this['_setSuggestionRange'](_0x4acc3c,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x44dd4a[_0x3b4a('0x5b')],_0x24c3b3['end'])),_0x4acc3c;}}const _0x9815f1=_0x43cb01(),_0x38a212=_0x1f9392['id'],_0x2bdd1d=_0x16abf8?_0x3b4a('0xde')+_0x16abf8:_0x3b4a('0x69'),_0x58818f=this['_setSuggestionData']({'id':_0x9815f1,'type':_0x2bdd1d,'createdAt':new Date(),'authorId':_0x38a212,'attributes':_0x310826});return this[_0x3b4a('0xbe')](_0x2bdd1d,_0x9815f1,_0x38a212,_0x24c3b3),_0x58818f;}[_0x3b4a('0x7a')](_0x302162,_0x13b8ba=_0x3b4a('0x22'),_0x140376={}){const _0x489d82=this['editor']['plugins'][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'],_0x175c99=this['_suggestionFactory'][_0x3b4a('0x6a')](_0x3b4a('0x69'),_0x13b8ba,_0x3b4a('0x96'));for(const _0x5b6daa of this[_0x3b4a('0x1f')]())if(_0x5b6daa[_0x3b4a('0xc5')]['id']==_0x489d82['id']&&_0x3b4a('0x69')==_0x5b6daa[_0x3b4a('0x1b')]&&_0x5b6daa[_0x3b4a('0x9d')]==_0x13b8ba&&(_0x175c99(_0x5b6daa[_0x3b4a('0x13')](),_0x302162)||_0x175c99(_0x302162,_0x5b6daa[_0x3b4a('0x13')]()))){for(const _0x58efee of _0x302162)_0x5b6daa['addRange'](_0x58efee);return _0x5b6daa;}if(this['_mergeNestedSuggestions'])for(const _0x5347d2 of _0x302162)for(const {suggestion:_0x121550,meta:_0x51d394}of this['_findSuggestions'](_0x5347d2,'insertion')){if(!_0x51d394['isOwn'])continue;let _0x1d7e9f=!0x0;for(const _0x2e7650 of _0x121550['getRanges']())for(const _0x41ad23 of _0x302162)if(!_0x2e7650[_0x3b4a('0x65')](_0x41ad23)){_0x1d7e9f=!0x1;break;}if(_0x1d7e9f)return _0x121550;}const _0x4e1307=_0x43cb01(),_0x186e62=_0x489d82['id'],_0x1ef634=_0x3b4a('0xde')+_0x13b8ba,_0x620020=this[_0x3b4a('0x10c')]({'id':_0x4e1307,'type':_0x1ef634,'createdAt':new Date(),'authorId':_0x186e62,'attributes':_0x140376});for(const _0x33f1af of _0x302162)this[_0x3b4a('0xbe')](_0x1ef634,_0x4e1307,_0x186e62,_0x33f1af,_0x143fbf[_0x3b4a('0x125')]());return _0x620020;}[_0x3b4a('0x1d')](_0x193bfe,_0x290b1e,_0x2b1bac=null,_0x16e821={}){if(_0x2b1bac=_0x2b1bac||$t(_0x290b1e),_0x193bfe[_0x3b4a('0x112')])return null;if('never'===this[_0x3b4a('0xfe')]){const _0x52d9c6=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')]('formatInline',_0x2b1bac,_0x3b4a('0x9a'));return this['forceDefaultExecution'](()=>_0x52d9c6([_0x193bfe],_0x290b1e,_0x16e821)),null;}const _0x254c0b=this[_0x3b4a('0x108')][_0x3b4a('0x34')]['get'](_0x3b4a('0x23'))['me'],_0x20ca65=[];if(_0x3b4a('0x88')!==this[_0x3b4a('0xfe')])for(const {suggestion:_0xfd2a92,meta:_0x351069}of this[_0x3b4a('0xba')](_0x193bfe,_0x3b4a('0x69')))_0x351069['isOwn']&&!_0x351069['isInsideObject']&&_0x20ca65['push'](..._0xfd2a92[_0x3b4a('0x13')]());const _0x4a0f8f=function(_0x205815,_0x3b926e){const _0x49360d=[];for(const _0xe29605 of _0x3b926e){const _0x32e3d7=_0x205815[_0x3b4a('0x4f')](_0xe29605);_0x32e3d7&&_0x49360d[_0x3b4a('0x4b')](_0x32e3d7);}return _0x49360d;}(_0x193bfe,_0x20ca65),_0x5d74be=function(_0x3e227f,_0xbf14d3){const _0x5c04ff=[_0x3e227f];for(const _0x1fc653 of _0xbf14d3){let _0x4ea557=0x0;for(;_0x4ea557<_0x5c04ff[_0x3b4a('0x81')];){const _0x25c2c5=_0x5c04ff[_0x4ea557][_0x3b4a('0x136')](_0x1fc653);_0x5c04ff[_0x3b4a('0x124')](_0x4ea557,0x1,..._0x25c2c5),_0x4ea557+=_0x25c2c5[_0x3b4a('0x81')];}}return _0x5c04ff;}(_0x193bfe,_0x20ca65);_0x4a0f8f[_0x3b4a('0x81')]&&this[_0x3b4a('0xee')][_0x3b4a('0x77')](()=>{for(const _0x31c815 of _0x4a0f8f){const _0x5eb429=this['_suggestionFactory'][_0x3b4a('0x6a')](_0x3b4a('0x60'),_0x2b1bac,_0x3b4a('0x9a'));this[_0x3b4a('0x133')](()=>_0x5eb429([_0x31c815],_0x290b1e,_0x16e821));}});for(const _0x36328c of _0x5d74be){let _0x355b3b=null,_0x99a87c=_0x36328c['start'],_0x236567=_0x36328c[_0x3b4a('0x8d')];for(const {suggestion:_0x42bda0,meta:_0x207f39}of this[_0x3b4a('0xba')](_0x36328c,_0x3b4a('0x60'))){if(!_0x207f39[_0x3b4a('0x115')])continue;if(_0x42bda0['subType']!=_0x2b1bac)continue;const _0x3f370d=_0x42bda0[_0x3b4a('0x9f')]();if(_0x3f370d[_0x3b4a('0x65')](_0x36328c,!0x0))return null;_0x99a87c=_0x99a87c[_0x3b4a('0xa0')](_0x3f370d['start'])?_0x99a87c:_0x3f370d[_0x3b4a('0x5b')],_0x236567=_0x236567[_0x3b4a('0x2e')](_0x3f370d['end'])?_0x236567:_0x3f370d['end'],_0x355b3b?_0x3f370d[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0x355b3b[_0x3b4a('0x9f')]()[_0x3b4a('0x5b')])?(_0x355b3b['removeMarkers'](),_0x355b3b=_0x42bda0):_0x42bda0[_0x3b4a('0x10b')]():_0x355b3b=_0x42bda0;}const _0x2714b7=this['_model'][_0x3b4a('0x12f')](_0x99a87c,_0x236567);if(_0x355b3b)this[_0x3b4a('0x12c')](_0x355b3b,_0x2714b7);else{const _0x2e0381=_0x43cb01(),_0x5219c2=_0x254c0b['id'];this['_setSuggestionData']({'id':_0x2e0381,'type':_0x3b4a('0xfb')+_0x2b1bac,'data':_0x290b1e,'createdAt':new Date(),'authorId':_0x5219c2,'attributes':_0x16e821}),this[_0x3b4a('0xbe')](_0x3b4a('0xfb')+_0x2b1bac,_0x2e0381,_0x5219c2,_0x2714b7);}}return null;}[_0x3b4a('0xfc')](_0x3348c8,_0x2658ba,_0x2c465b=[],_0x191164=null,_0x22d413={}){_0x2658ba[_0x3b4a('0x8')]||(_0x2658ba[_0x3b4a('0x8')]=_0x2658ba[_0x3b4a('0x13b')]),_0x2658ba[_0x3b4a('0x123')]=_0x3348c8['is']('range'),_0x191164=_0x191164||$t(_0x2658ba);const _0x1c40ea=_0x2c465b['map'](_0x1858ff=>Rt(_0x1858ff,this[_0x3b4a('0xee')])),_0x3b465f=_0x3348c8['is'](_0x3b4a('0x99'))?_0x3348c8:Rt(_0x3348c8,this['_model']);if(_0x3b4a('0x90')===this[_0x3b4a('0xfe')]){const _0x2c1960=this[_0x3b4a('0xc7')]['getSuggestionCallback'](_0x3b4a('0x109'),_0x191164,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x2c1960([_0x3b465f],_0x2658ba,_0x22d413)),null;}_0x1c40ea[_0x3b4a('0x4b')](_0x3b465f);let _0x41d96b=!0x0;for(const _0xe94ce of _0x1c40ea)if(!this[_0x3b4a('0xb1')](_0xe94ce)){_0x41d96b=!0x1;break;}if(_0x41d96b&&_0x3b4a('0x88')!==this[_0x3b4a('0xfe')]){const _0x2fd257=this[_0x3b4a('0xc7')]['getSuggestionCallback'](_0x3b4a('0x109'),_0x191164,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x2fd257([_0x3b465f],_0x2658ba,_0x22d413)),null;}let _0x53568b=null,_0x403de3=_0x3b465f['start'],_0x2574a9=_0x3b465f['end'];for(const {suggestion:_0x474571,meta:_0x1465ba}of this[_0x3b4a('0xba')](_0x3b465f,'formatBlock')){if(!_0x1465ba['isOwn']||_0x1465ba[_0x3b4a('0x71')]||_0x1465ba[_0x3b4a('0x63')]||_0x1465ba[_0x3b4a('0x127')])continue;if(_0x474571[_0x3b4a('0xaa')]['formatGroupId']!=_0x2658ba[_0x3b4a('0x8')])continue;const _0x12ff14=_0x474571[_0x3b4a('0x9f')]();if(_0x474571[_0x3b4a('0x9d')]==_0x191164){if(_0x12ff14[_0x3b4a('0x65')](_0x3b465f,!0x0))return null;_0x403de3=_0x403de3['isBefore'](_0x12ff14[_0x3b4a('0x5b')])?_0x403de3:_0x12ff14['start'],_0x2574a9=_0x2574a9['isAfter'](_0x12ff14[_0x3b4a('0x8d')])?_0x2574a9:_0x12ff14[_0x3b4a('0x8d')],_0x53568b?_0x12ff14['start'][_0x3b4a('0xa0')](_0x53568b[_0x3b4a('0x9f')]()[_0x3b4a('0x5b')])?(_0x53568b['removeMarkers'](),_0x53568b=_0x474571):_0x474571[_0x3b4a('0x10b')]():_0x53568b=_0x474571;}else{const _0x172eac=_0x3b465f[_0x3b4a('0x4f')](_0x12ff14);this[_0x3b4a('0x105')](_0x474571,_0x172eac);}}const _0x347aee=this[_0x3b4a('0x108')]['plugins']['get'](_0x3b4a('0x23'))['me'],_0x194970=_0x43cb01(),_0x150b68=_0x347aee['id'];if(_0x53568b)return this[_0x3b4a('0x12c')](_0x53568b,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x403de3,_0x2574a9)),_0x53568b;{const _0x322436=this[_0x3b4a('0x10c')]({'id':_0x194970,'type':_0x3b4a('0x78')+_0x191164,'data':_0x2658ba,'createdAt':new Date(),'authorId':_0x150b68,'attributes':_0x22d413});return this[_0x3b4a('0xbe')](_0x3b4a('0x78')+_0x191164,_0x194970,_0x150b68,this[_0x3b4a('0xee')]['createRange'](_0x403de3,_0x2574a9)),_0x322436;}}[_0x3b4a('0x54')](_0x36ba90,_0x9bfe51,_0x2d5742=[],_0x3e031c=null,_0x3982bd={}){_0x9bfe51[_0x3b4a('0x8')]||(_0x9bfe51[_0x3b4a('0x8')]=_0x9bfe51['commandName']);const _0x2eef38=_0x36ba90[0x0];_0x9bfe51['multipleBlocks']=_0x2eef38['is'](_0x3b4a('0x99')),_0x3e031c=_0x3e031c||$t(_0x9bfe51);const _0x3ec390=_0x2d5742[_0x3b4a('0xcd')](_0x2d7cc6=>Rt(_0x2d7cc6,this['_model'])),_0x244056=_0x2eef38['is']('range')?_0x36ba90:_0x36ba90[_0x3b4a('0xcd')](_0x30a3bd=>Rt(_0x30a3bd,this[_0x3b4a('0xee')]));if(_0x3b4a('0x90')===this[_0x3b4a('0xfe')]){const _0x1acdff=this['_suggestionFactory'][_0x3b4a('0x6a')](_0x3b4a('0x109'),_0x3e031c,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x1acdff(_0x244056,_0x9bfe51,_0x3982bd)),null;}_0x3ec390[_0x3b4a('0x4b')](..._0x244056);let _0x287019=!0x0;for(const _0x1dee18 of _0x3ec390)if(!this[_0x3b4a('0xb1')](_0x1dee18)){_0x287019=!0x1;break;}if(_0x287019&&_0x3b4a('0x88')!==this[_0x3b4a('0xfe')]){const _0x92e2a2=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')]('formatBlock',_0x3e031c,'accept');return this[_0x3b4a('0x133')](()=>_0x92e2a2(_0x244056,_0x9bfe51,_0x3982bd)),null;}const _0x48eb37=this[_0x3b4a('0x108')]['plugins'][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'];for(const _0x178418 of this['getSuggestions']()){if(_0x178418[_0x3b4a('0xc5')]['id']!=_0x48eb37['id'])continue;if(_0x3b4a('0x109')!=_0x178418['type']||_0x178418[_0x3b4a('0xaa')][_0x3b4a('0x8')]!=_0x9bfe51[_0x3b4a('0x8')])continue;const _0x6fac8b=_0x178418['subType']==_0x3e031c;for(let _0x189942=0x0;_0x189942<_0x244056[_0x3b4a('0x81')];_0x189942++){const _0x5e0ff3=_0x244056[_0x189942];for(const _0x2bedf7 of _0x178418['getMarkers']()){const _0x22c15b=_0x2bedf7['getRange']();if(_0x5e0ff3[_0x3b4a('0xe6')](_0x22c15b)){_0x6fac8b?(_0x244056[_0x3b4a('0x124')](_0x189942,0x1),_0x189942--):_0x178418[_0x3b4a('0x6c')](_0x2bedf7['name']);break;}}}}if(0x0==_0x244056['length'])return null;const _0x5f1248=this['_suggestionFactory'][_0x3b4a('0x6a')]('formatBlock',_0x3e031c,_0x3b4a('0x96'));for(const _0x1c928c of this[_0x3b4a('0x1f')]())if(_0x1c928c[_0x3b4a('0xc5')]['id']==_0x48eb37['id']&&'formatBlock'==_0x1c928c[_0x3b4a('0x1b')]&&_0x1c928c[_0x3b4a('0xaa')][_0x3b4a('0x8')]==_0x9bfe51[_0x3b4a('0x8')]&&_0x1c928c[_0x3b4a('0x9d')]==_0x3e031c&&(_0x5f1248(_0x1c928c[_0x3b4a('0x13')](),_0x244056)||_0x5f1248(_0x244056,_0x1c928c[_0x3b4a('0x13')]()))){for(const _0x4cdcda of _0x244056)_0x1c928c[_0x3b4a('0xf1')](_0x4cdcda);return _0x1c928c;}const _0x398171=_0x43cb01(),_0x35648e=_0x48eb37['id'],_0x335cf7=_0x3b4a('0x78')+_0x3e031c,_0x144577=this['_setSuggestionData']({'id':_0x398171,'type':_0x335cf7,'data':_0x9bfe51,'createdAt':new Date(),'authorId':_0x35648e,'attributes':_0x3982bd});for(const _0x11c9e4 of _0x244056)this[_0x3b4a('0xbe')](_0x335cf7,_0x398171,_0x35648e,_0x11c9e4,_0x143fbf[_0x3b4a('0x125')]());return _0x144577;}['markDeletion'](_0x51b0a2,_0x214f9e=null,_0x166e71={}){if(_0x51b0a2[_0x3b4a('0x112')])return null;const _0x2e073b=this['editor'][_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'],_0x263e99=new _0x52f246(_0x51b0a2[_0x3b4a('0x5b')],_0x51b0a2[_0x3b4a('0x8d')]);for(const {suggestion:_0x589622,meta:_0x23dc67}of this['_findSuggestions'](_0x263e99,_0x3b4a('0x69')))if(_0x23dc67[_0x3b4a('0x115')]&&!_0x23dc67[_0x3b4a('0x71')]){if(_0x589622[_0x3b4a('0xc9')]){const _0x5a8c01=_0x589622[_0x3b4a('0x13')]()[_0x3b4a('0x6e')](_0x560d89=>_0x3b4a('0xd5')!=_0x560d89[_0x3b4a('0x131')][_0x3b4a('0xa5')]);_0x5a8c01[_0x3b4a('0x24')](_0x5d09e3=>_0x263e99[_0x3b4a('0x65')](_0x5d09e3,!0x0))&&_0x589622['discard']();if(_0x5a8c01[_0x3b4a('0x83')](_0x446c04=>_0x446c04['containsRange'](_0x263e99,!0x0))){const _0x3903da=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')]('deletion',_0x214f9e,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x3903da([_0x263e99],null,_0x166e71)),null;}}else{const _0xdb1a4d=_0x263e99[_0x3b4a('0x4f')](_0x589622['getFirstRange']());null!==_0xdb1a4d&&_0x589622[_0x3b4a('0xec')]([_0xdb1a4d],null,_0x166e71);}}if(_0x263e99[_0x3b4a('0xd1')](),_0x263e99[_0x3b4a('0x112')]||'$graveyard'==_0x263e99[_0x3b4a('0x131')][_0x3b4a('0xa5')])return null;let _0xd4180f=null,_0x5ad63e=_0x263e99[_0x3b4a('0x5b')],_0x232779=_0x263e99[_0x3b4a('0x8d')];for(const {suggestion:_0x37a267,meta:_0x2d6c49}of this[_0x3b4a('0xba')](_0x263e99,'deletion'))if(_0x2d6c49[_0x3b4a('0x115')]){if(_0x37a267[_0x3b4a('0xc9')]&&this['_mergeNestedSuggestions']){let _0x1eeb4f=!0x0;for(const _0x313b24 of _0x37a267[_0x3b4a('0x13')]()){if(_0x313b24['containsRange'](_0x263e99,!0x0))return _0x37a267;_0x263e99[_0x3b4a('0x65')](_0x313b24)||(_0x1eeb4f=!0x1);}_0x1eeb4f&&_0x37a267[_0x3b4a('0xda')]();}else{const _0x3fe452=_0x37a267['getFirstRange']();if(_0x3fe452[_0x3b4a('0x65')](_0x263e99,!0x0)){if(!this[_0x3b4a('0x1c')]&&_0x2d6c49[_0x3b4a('0x63')])continue;return _0x37a267;}_0x5ad63e=_0x5ad63e['isBefore'](_0x3fe452[_0x3b4a('0x5b')])?_0x5ad63e:_0x3fe452[_0x3b4a('0x5b')],_0x232779=_0x232779[_0x3b4a('0x2e')](_0x3fe452['end'])?_0x232779:_0x3fe452[_0x3b4a('0x8d')],_0xd4180f?_0x3fe452[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0xd4180f[_0x3b4a('0x9f')]()['start'])?(_0xd4180f['removeMarkers'](),_0xd4180f=_0x37a267):_0x37a267[_0x3b4a('0x10b')]():_0xd4180f=_0x37a267;}}if(_0xd4180f)return this[_0x3b4a('0x12c')](_0xd4180f,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x5ad63e,_0x232779)),_0xd4180f;{const _0x469faf=_0x43cb01(),_0x31bdcd=this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x5ad63e,_0x232779),_0x579d7a=_0x2e073b['id'],_0x17ada0=_0x214f9e?_0x3b4a('0x2c')+_0x214f9e:_0x3b4a('0xa7'),_0x7f0ce8=this['_setSuggestionData']({'id':_0x469faf,'type':_0x17ada0,'createdAt':new Date(),'authorId':_0x579d7a,'attributes':_0x166e71});return this[_0x3b4a('0xbe')](_0x17ada0,_0x469faf,_0x579d7a,_0x31bdcd),_0x7f0ce8;}}[_0x3b4a('0xff')](_0x32f79f,_0x32eec2=_0x3b4a('0x22'),_0x2a4b36={}){const _0xbe652e=this[_0x3b4a('0x108')][_0x3b4a('0x34')]['get']('Users')['me'],_0x1b6048=_0x32f79f[_0x3b4a('0xcd')](_0x160446=>new _0x52f246(_0x160446[_0x3b4a('0x5b')],_0x160446[_0x3b4a('0x8d')])),_0x4b1e40=new Set();for(const _0x4dc83d of _0x1b6048)for(const {suggestion:_0x32d0c9,meta:_0x1991da}of this[_0x3b4a('0xba')](_0x4dc83d,_0x3b4a('0x69')))_0x1991da[_0x3b4a('0x115')]&&!_0x1991da[_0x3b4a('0x71')]&&_0x4b1e40[_0x3b4a('0x4')](_0x32d0c9);for(const _0x3bb1cb of _0x4b1e40)if(_0x3bb1cb[_0x3b4a('0xc9')]){const _0x1ff9cf=_0x3bb1cb[_0x3b4a('0x13')]();(!_0x3bb1cb['attributes']||!_0x3bb1cb[_0x3b4a('0x9e')]['skipNestingCheck'])&&(_0x1ff9cf[_0x3b4a('0x24')](_0x3e28be=>_0x1b6048['some'](_0x19affe=>_0x19affe['containsRange'](_0x3e28be,!0x0)))&&_0x3bb1cb[_0x3b4a('0xda')]());if(_0x1b6048[_0x3b4a('0x24')](_0x4ecfe3=>_0x1ff9cf[_0x3b4a('0x83')](_0x17ed5d=>_0x17ed5d['containsRange'](_0x4ecfe3,!0x0)))){const _0x3f1d9e=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x3b4a('0xa7'),_0x32eec2,'accept');return this['forceDefaultExecution'](()=>_0x3f1d9e(_0x32f79f,null,_0x2a4b36)),null;}}else{const _0x53a84b=_0x3bb1cb[_0x3b4a('0x9f')]();_0x1b6048['some'](_0x2cbcae=>_0x2cbcae[_0x3b4a('0x65')](_0x53a84b,!0x0))&&_0x3bb1cb['discard']();if(_0x1b6048[_0x3b4a('0x24')](_0x8a81f5=>_0x53a84b[_0x3b4a('0x65')](_0x8a81f5,!0x0))){const _0x57dfaa=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x3b4a('0xa7'),_0x32eec2,_0x3b4a('0x9a'));return this[_0x3b4a('0x133')](()=>_0x57dfaa(_0x1b6048,null,_0x2a4b36)),null;}}const _0xb37769=this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x3b4a('0xa7'),_0x32eec2,'join');let _0x391d01=null;for(const _0x168b03 of this['getSuggestions']())if(_0x168b03[_0x3b4a('0xc5')]['id']==_0xbe652e['id']&&_0x168b03[_0x3b4a('0x7')]&&_0x3b4a('0xa7')==_0x168b03[_0x3b4a('0x1b')]&&_0x168b03[_0x3b4a('0x9d')]==_0x32eec2&&(_0xb37769(_0x168b03[_0x3b4a('0x13')](),_0x1b6048)||_0xb37769(_0x1b6048,_0x168b03[_0x3b4a('0x13')]()))){if(_0x391d01){if(_0x168b03['commentThread']&&_0x168b03[_0x3b4a('0x76')][_0x3b4a('0x81')])continue;for(const _0x31e1ab of _0x168b03['getRanges']())_0x391d01[_0x3b4a('0x6b')](_0x31e1ab)||_0x391d01[_0x3b4a('0xf1')](_0x31e1ab);_0x168b03[_0x3b4a('0x10b')]();}else{_0x391d01=_0x168b03;for(const _0x375ec5 of _0x1b6048)_0x168b03[_0x3b4a('0x6b')](_0x375ec5)||_0x168b03[_0x3b4a('0xf1')](_0x375ec5);}}if(_0x391d01)return _0x391d01;_0x4b1e40[_0x3b4a('0xe4')]();for(const _0x7aa2d5 of _0x1b6048)for(const {suggestion:_0x5e2a80,meta:_0x4526c9}of this[_0x3b4a('0xba')](_0x7aa2d5,_0x3b4a('0xa7')))_0x4526c9['isOwn']&&_0x4b1e40[_0x3b4a('0x4')](_0x5e2a80);for(const _0x42c19a of _0x4b1e40){const _0x341e3b=_0x42c19a[_0x3b4a('0x13')]();if(!_0x2a4b36||!_0x2a4b36['skipNestingCheck']){if(_0x1b6048[_0x3b4a('0x24')](_0x1415e7=>_0x341e3b[_0x3b4a('0x83')](_0x485446=>_0x485446[_0x3b4a('0x65')](_0x1415e7,!0x0))))return _0x42c19a;}(!_0x42c19a[_0x3b4a('0x9e')]||!_0x42c19a['attributes'][_0x3b4a('0x98')])&&(_0x341e3b[_0x3b4a('0x24')](_0x517a0d=>_0x1b6048[_0x3b4a('0x83')](_0x1ff107=>_0x1ff107[_0x3b4a('0x65')](_0x517a0d,!0x0)))&&_0x42c19a['discard']());}const _0x596eb8=_0x43cb01(),_0x42a3f3=_0xbe652e['id'],_0x5287ea=_0x3b4a('0x2c')+_0x32eec2,_0x48236a=this[_0x3b4a('0x10c')]({'id':_0x596eb8,'type':_0x5287ea,'createdAt':new Date(),'authorId':_0x42a3f3,'attributes':_0x2a4b36});for(const _0x4511be of _0x1b6048)_0x4511be[_0x3b4a('0xd1')](),_0x4511be[_0x3b4a('0x112')]||'$graveyard'==_0x4511be[_0x3b4a('0x131')]['rootName']||this[_0x3b4a('0xbe')](_0x5287ea,_0x596eb8,_0x42a3f3,_0x4511be,_0x143fbf[_0x3b4a('0x125')]());return _0x48236a;}[_0x3b4a('0x12c')](_0x2b53ec,_0x41c163){const _0x1069e7=_0x2b53ec[_0x3b4a('0x2')]();this[_0x3b4a('0xee')][_0x3b4a('0x77')](_0x499fe5=>{_0x499fe5[_0x3b4a('0x3')](_0x1069e7,{'range':_0x41c163});});}[_0x3b4a('0x137')](_0x3a6872){const _0x52799d=_0x3a6872['id'],_0x2cdd1d=this[_0x3b4a('0x108')]['config'][_0x3b4a('0xe2')](_0x3b4a('0xac'));this[_0x3b4a('0x45')]['hasCommentThread'](_0x52799d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2cdd1d,'threadId':_0x52799d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2945fa=this['_commentsRepository']['getCommentThread'](_0x52799d);_0x2945fa['unbind'](_0x3b4a('0x126')),_0x2945fa[_0x3b4a('0x126')]=!0x1,_0x3a6872[_0x3b4a('0x76')]=_0x2945fa;}[_0x3b4a('0xbd')](_0x35f278,_0x167986,_0x397b78,_0x41a77e){if(_0x35f278[_0x3b4a('0x1b')]!=_0x167986||_0x35f278[_0x3b4a('0x9d')]!=_0x397b78||_0x35f278[_0x3b4a('0x6f')]['id']!=_0x41a77e)throw this[_0x3b4a('0x108')][_0x3b4a('0xf')](_0x3b4a('0xb5')),new _0xa8742b('track-changes-suggestion-data-mismatch',this);}[_0x3b4a('0x105')](_0xe03c19,_0x534218){const _0x54201a=_0xe03c19[_0x3b4a('0x9f')]();if(_0x534218[_0x3b4a('0xe6')](_0x54201a))_0xe03c19[_0x3b4a('0x10b')]();else{if(_0x54201a['containsRange'](_0x534218)){const _0x36d7dd=this[_0x3b4a('0xee')][_0x3b4a('0x8c')](_0x534218[_0x3b4a('0x5b')]['nodeBefore'],'end');this['_setSuggestionRange'](_0xe03c19,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x54201a['start'],_0x36d7dd));const _0x9c1423=_0x43cb01(),_0x3339ad=_0xe03c19[_0x3b4a('0x6f')]['id'],_0x49295a=_0xe03c19[_0x3b4a('0x1b')]+':'+_0xe03c19[_0x3b4a('0x9d')];this[_0x3b4a('0x10c')]({'id':_0x9c1423,'type':_0x49295a,'createdAt':new Date(),'authorId':_0x3339ad,'data':_0xe03c19[_0x3b4a('0xaa')],'attributes':_0xe03c19[_0x3b4a('0x9e')]});const _0x250836=this['_model'][_0x3b4a('0x8c')](_0x534218[_0x3b4a('0x8d')]['parent'],_0x3b4a('0xf2')),_0x13ed44=this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x250836,_0x54201a[_0x3b4a('0x8d')]);this[_0x3b4a('0xbe')](_0x49295a,_0x9c1423,_0x3339ad,_0x13ed44);}else{if(_0x54201a[_0x3b4a('0xe0')](_0x534218[_0x3b4a('0x5b')])){const _0x4e59da=this[_0x3b4a('0xee')]['createPositionAt'](_0x534218[_0x3b4a('0x5b')][_0x3b4a('0x2a')],_0x3b4a('0x8d'));this[_0x3b4a('0x12c')](_0xe03c19,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x54201a[_0x3b4a('0x5b')],_0x4e59da));}else{const _0x419c5c=this[_0x3b4a('0xee')][_0x3b4a('0x8c')](_0x534218[_0x3b4a('0x8d')][_0x3b4a('0x80')],'after');this[_0x3b4a('0x12c')](_0xe03c19,this[_0x3b4a('0xee')]['createRange'](_0x419c5c,_0x54201a[_0x3b4a('0x8d')]));}}}}[_0x3b4a('0xb1')](_0x5231fc){for(const {suggestion:_0x201550,meta:_0x4bbda1}of this[_0x3b4a('0xba')](_0x5231fc,_0x3b4a('0x69'))){if(!_0x4bbda1['isOwn'])continue;const _0x226d49=_0x201550[_0x3b4a('0x13')]();for(const _0x4f67de of _0x226d49)if(!_0x5231fc[_0x3b4a('0x136')](_0x4f67de)[_0x3b4a('0x81')])return!0x0;}return!0x1;}[_0x3b4a('0x12')](_0x5a9134){const _0x583c4e=this[_0x3b4a('0x108')]['plugins'][_0x3b4a('0xe2')]('Users')[_0x3b4a('0x7f')](_0x5a9134);if(!_0x583c4e)throw new _0xa8742b('track-changes-user-not-found',this);return _0x583c4e;}['_getExternalAuthor'](_0x278005){const _0x54c393=this['editor'][_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x23')),_0xbea37d=_0x5670c4(_0x3b4a('0x11c')+_0x278005),_0x13b31d=_0x54c393['getUser'](_0xbea37d);return _0x13b31d||_0x54c393[_0x3b4a('0x74')]({'id':_0xbea37d,'name':_0x278005});}[_0x3b4a('0xcf')](_0x403ba0,_0x171e01,_0x4fc92e,_0x54d35d,_0xe0d58c){const _0x201011=this[_0x3b4a('0x12')](_0x54d35d),_0x577cc9=this[_0x3b4a('0xc7')][_0x3b4a('0x116')](_0x403ba0,_0x171e01,_0x4fc92e,_0x201011,_0xe0d58c,_0x102600=>this['_updateSuggestionData'](_0x4fc92e,{'attributes':_0x102600}));return this['listenTo'](_0x577cc9,_0x3b4a('0x9a'),()=>{this['_updateSuggestionData'](_0x4fc92e,{'state':_0x3b4a('0x8a')});},{'priority':_0x3b4a('0x2d')}),this['listenTo'](_0x577cc9,_0x3b4a('0xda'),()=>{this[_0x3b4a('0xa3')](_0x4fc92e,{'state':_0x3b4a('0x72')});},{'priority':_0x3b4a('0x2d')}),this[_0x3b4a('0xf3')]['set'](_0x4fc92e,_0x577cc9),this['_suggestionState'][_0x3b4a('0x6')](_0x577cc9,_0x3b4a('0x102')),_0x577cc9;}[_0x3b4a('0xe5')](_0x5420b7){const _0xc3004b=_0x5420b7[_0x3b4a('0x75')](':');return{'group':_0xc3004b[0x0],'type':_0xc3004b[0x1],'subType':_0xc3004b[_0x3b4a('0x81')]>=0x5?_0xc3004b[0x2]:null,'id':_0xc3004b['length']<0x5?_0xc3004b[0x2]:_0xc3004b[0x3],'authorId':_0xc3004b[_0x3b4a('0x81')]<0x5?_0xc3004b[0x3]:_0xc3004b[0x4],'markerCount':0x6==_0xc3004b[_0x3b4a('0x81')]?_0xc3004b[0x5]:null};}['_breakSuggestionMarker'](_0x301283,_0x4e24c2,_0x5f07a7){const _0x1eb9e6=_0x301283[_0x3b4a('0x9f')](),_0x5236a9=_0x1eb9e6[_0x3b4a('0x5b')],_0x10db35=_0x1eb9e6[_0x3b4a('0x8d')];this['_setSuggestionRange'](_0x301283,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x5236a9,_0x4e24c2));const _0x4599d6=_0x43cb01(),_0x1fce04=_0x301283['creator']['id'],_0xea1d72=_0x301283['type']+(_0x301283['subType']?':'+_0x301283['subType']:'');this['_setSuggestionData']({'id':_0x4599d6,'type':_0xea1d72,'createdAt':new Date(),'authorId':_0x1fce04,'originalSuggestionId':_0x301283['id'],'attributes':_0x301283[_0x3b4a('0x9e')],'data':_0x301283[_0x3b4a('0xaa')]}),_0x3b4a('0x109')==_0x301283[_0x3b4a('0x1b')]&&(_0x5f07a7=this[_0x3b4a('0xee')][_0x3b4a('0x119')](_0x5f07a7[_0x3b4a('0x80')])),this[_0x3b4a('0xbe')](_0xea1d72,_0x4599d6,_0x1fce04,this['_model'][_0x3b4a('0x12f')](_0x5f07a7,_0x10db35));}[_0x3b4a('0xba')](_0x1cd1e2,_0x35b035=null){const _0x2f78df=[],_0x22a0b9=this[_0x3b4a('0xee')]['schema'],_0x31ed28=this[_0x3b4a('0x108')][_0x3b4a('0x34')][_0x3b4a('0xe2')](_0x3b4a('0x23'))['me'];for(const _0x1c102b of this[_0x3b4a('0x1f')]())if(_0x1c102b[_0x3b4a('0x7')]&&(!_0x35b035||_0x1c102b[_0x3b4a('0x1b')]==_0x35b035))for(const _0xdb8569 of _0x1c102b['getRanges']()){const _0x5da704=_0x1cd1e2[_0x3b4a('0x5b')][_0x3b4a('0xe6')](_0xdb8569[_0x3b4a('0x8d')])||_0x1cd1e2[_0x3b4a('0x8d')][_0x3b4a('0xe6')](_0xdb8569['start']);if(_0x5da704||_0x1cd1e2[_0x3b4a('0x4f')](_0xdb8569)){const _0x2a7b0b=_0x1cd1e2[_0x3b4a('0x65')](_0xdb8569)&&Bt(_0x22a0b9,_0xdb8569[_0x3b4a('0x5b')],_0x1cd1e2),_0x106842=_0xdb8569[_0x3b4a('0x65')](_0x1cd1e2)&&Bt(_0x22a0b9,_0x1cd1e2[_0x3b4a('0x5b')],_0xdb8569);_0x2f78df['push']({'suggestion':_0x1c102b,'meta':{'isOwn':_0x31ed28==_0x1c102b['author'],'isNextTo':_0x5da704,'isInsideObject':_0x2a7b0b,'containsRangeInObject':_0x106842}});break;}}return _0x2f78df;}[_0x3b4a('0xbe')](_0x32a202,_0x41682b,_0x23398e,_0x1b25d7,_0x5b1652){this['_model'][_0x3b4a('0x77')](_0x510cf6=>{let _0x4e2493=_0x3b4a('0x0')+_0x32a202+':'+_0x41682b+':'+_0x23398e;_0x5b1652&&(_0x4e2493=_0x4e2493+':'+_0x5b1652),_0x510cf6[_0x3b4a('0x35')](_0x4e2493,{'range':_0x1b25d7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3b4a('0xf0')](_0x45e35a){const _0x17c02b=_0x45e35a['previous'],_0x3eea46=_0x45e35a[_0x3b4a('0xf9')];_0x45e35a[_0x3b4a('0xca')]=null,null!=_0x17c02b&&(_0x17c02b['next']=null),_0x45e35a['next']=null,null!=_0x3eea46&&(_0x3eea46[_0x3b4a('0xca')]=null),_0x3b4a('0x67')==this['_suggestionState'][_0x3b4a('0xe2')](_0x45e35a)&&(this['_suggestionState']['set'](_0x45e35a,'removed'),this['fire'](_0x3b4a('0x43'),_0x45e35a,_0x17c02b,_0x3eea46));}[_0x3b4a('0x10c')](_0x71ee37){const _0x429dfa=_0x71ee37['id'],_0x4ed40c=this[_0x3b4a('0x5c')](_0x71ee37);if(this[_0x3b4a('0x82')]&&this[_0x3b4a('0x82')]['addSuggestion']){const _0x11a02e=this['editor']['plugins'][_0x3b4a('0xe2')]('PendingActions'),_0x5cae75=_0x4ed40c[_0x3b4a('0xab')],_0x4b6d5b=_0x4ed40c['subType']?_0x4ed40c[_0x3b4a('0x1b')]+':'+_0x4ed40c[_0x3b4a('0x9d')]:_0x4ed40c['type'],_0x49d48a=this[_0x3b4a('0x108')][_0x3b4a('0x48')],_0x28bab8=_0x11a02e[_0x3b4a('0x4')](_0x55976c(_0x49d48a,'PENDING_ACTION_SUGGESTION')),_0xfb0acc={'id':_0x429dfa,'type':_0x4b6d5b,'hasComments':_0x5cae75,'data':_0x71ee37['data']||null,'originalSuggestionId':_0x71ee37[_0x3b4a('0xaf')]||null,'attributes':_0x4ed40c[_0x3b4a('0x9e')]};this['_adapter'][_0x3b4a('0x5e')](_0xfb0acc)[_0x3b4a('0x101')](_0x2fd931=>{_0x4ed40c['_saved']=!0x0,_0x11a02e['remove'](_0x28bab8),_0x2fd931&&_0x2fd931[_0x3b4a('0xf8')]&&(this['_suggestions'][_0x3b4a('0xe2')](_0x429dfa)['createdAt']=_0x2fd931[_0x3b4a('0xf8')]);})[_0x3b4a('0x100')](_0x13dc23=>{throw _0x2fab1c(_0x3b4a('0x132')),this[_0x3b4a('0x108')][_0x3b4a('0x12a')][_0x3b4a('0xd9')]({'isUndoable':!0x1},()=>{_0x4ed40c[_0x3b4a('0xda')]();}),_0x4ed40c[_0x3b4a('0x85')](),this['_suggestions'][_0x3b4a('0xcb')](_0x4ed40c['id']),this['_suggestionState'][_0x3b4a('0xcb')](_0x4ed40c),_0x13dc23;});}return _0x4ed40c;}['_updateSuggestionData'](_0x118dc4,_0x4d7f6e){const _0x4bdd6a=this[_0x3b4a('0x108')]['plugins'][_0x3b4a('0xe2')](_0x3b4a('0x73')),_0x2b00c6=this[_0x3b4a('0x89')](_0x118dc4);if(this[_0x3b4a('0x82')]&&this[_0x3b4a('0x82')]['updateSuggestion']){if(_0x2b00c6[_0x3b4a('0x33')]){const _0x25b50d=_0x4bdd6a['add'](_0x55976c(this['editor'][_0x3b4a('0x48')],'PENDING_ACTION_SUGGESTION'));this[_0x3b4a('0x82')][_0x3b4a('0x59')](_0x118dc4,_0x4d7f6e)[_0x3b4a('0x101')](()=>{_0x4bdd6a['remove'](_0x25b50d);});}else _0x2b00c6['on'](_0x3b4a('0xa6'),()=>{this['_updateSuggestionData'](_0x118dc4,_0x4d7f6e);});}}[_0x3b4a('0x37')](_0x479059){if(!this[_0x3b4a('0x82')]||!this['_adapter'][_0x3b4a('0x89')])throw new _0xa8742b(_0x3b4a('0xd2'),this);return this[_0x3b4a('0x82')][_0x3b4a('0x89')](_0x479059);}[_0x3b4a('0xb3')](_0x18dc7f){const {id:_0x4a4192,type:_0x2dbde7,subType:_0x4fe1c6,authorId:_0x4bbaf2}=this[_0x3b4a('0xe5')](_0x18dc7f),_0x301d61=this[_0x3b4a('0xf3')]['get'](_0x4a4192)||this['_createSuggestion'](_0x2dbde7,_0x4fe1c6,_0x4a4192,_0x4bbaf2,{});switch(this[_0x3b4a('0xbd')](_0x301d61,_0x2dbde7,_0x4fe1c6,_0x4bbaf2),this[_0x3b4a('0xf5')]['get'](_0x301d61)){case _0x3b4a('0x102'):this[_0x3b4a('0x37')](_0x4a4192)[_0x3b4a('0x101')](_0x1ce85a=>{let _0x1572b0=Promise[_0x3b4a('0xf4')]();_0x1ce85a[_0x3b4a('0xab')]&&(_0x1572b0=this[_0x3b4a('0x45')][_0x3b4a('0xa1')]({'channelId':this[_0x3b4a('0x108')][_0x3b4a('0x130')][_0x3b4a('0xe2')](_0x3b4a('0xac')),'threadId':_0x4a4192})),_0x1572b0[_0x3b4a('0x101')](()=>{this[_0x3b4a('0x5c')](_0x1ce85a)['_saved']=!0x0;});}),this[_0x3b4a('0xf5')][_0x3b4a('0x6')](_0x301d61,_0x3b4a('0x12d'));break;case _0x3b4a('0x11e'):this['_updateSuggestionData'](_0x4a4192,{'state':_0x3b4a('0x49')});case _0x3b4a('0xf7'):this[_0x3b4a('0xf5')][_0x3b4a('0x6')](_0x301d61,_0x3b4a('0x67')),this['fire'](_0x3b4a('0x1e'),_0x301d61);break;case'ready':this[_0x3b4a('0xeb')]('suggestionChanged',_0x301d61);}return _0x301d61[_0x3b4a('0x84')](_0x18dc7f),_0x301d61;}[_0x3b4a('0x13c')](_0x2e720b){const _0x2c5880=Array['from'](_0x2e720b)[_0x3b4a('0x6e')](_0x1dd581=>!_0x1dd581[_0x3b4a('0xc9')]),_0x5de959=this[_0x3b4a('0x1f')]({'skipNotAttached':!0x0})[_0x3b4a('0x6e')](_0x373d04=>!_0x373d04[_0x3b4a('0xc9')]),_0x517347=_0x5de959['filter'](_0x3cb68f=>!_0x2e720b[_0x3b4a('0xc0')](_0x3cb68f)),_0x346fb3=new Map(_0x5de959[_0x3b4a('0xcd')](_0x411b49=>[_0x411b49,this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x411b49[_0x3b4a('0x1b')],_0x411b49[_0x3b4a('0x9d')],_0x3b4a('0x20'))])),_0xbd1d59=new Map(_0x5de959['map'](_0x2d61fc=>[_0x2d61fc,_0x2d61fc[_0x3b4a('0x9f')]()])),_0x48b4c3=new Set(),_0x40625a=new Set();for(let _0x30ea16=0x0;_0x30ea16<_0x2c5880[_0x3b4a('0x81')];_0x30ea16++)_0x5c7aef(_0x2c5880[_0x30ea16],_0x2c5880,_0x30ea16+0x1);for(let _0x4384fe=0x0;_0x4384fe<_0x2c5880[_0x3b4a('0x81')];_0x4384fe++)_0x5c7aef(_0x2c5880[_0x4384fe],_0x517347,0x0);for(let _0x5c4aff=0x0;_0x5c4aff<_0x2c5880[_0x3b4a('0x81')];_0x5c4aff++){const _0x253198=_0x2c5880[_0x5c4aff];!_0x40625a[_0x3b4a('0xc0')](_0x253198)&&_0x253198[_0x3b4a('0xca')]&&(_0x253198['previous']['next']===_0x253198&&(_0x253198[_0x3b4a('0xca')][_0x3b4a('0xf9')]=null),_0x253198[_0x3b4a('0xca')]=null),!_0x48b4c3[_0x3b4a('0xc0')](_0x253198)&&_0x253198['next']&&(_0x253198['next'][_0x3b4a('0xca')]===_0x253198&&(_0x253198[_0x3b4a('0xf9')][_0x3b4a('0xca')]=null),_0x253198[_0x3b4a('0xf9')]=null);}function _0x5c7aef(_0x35977e,_0x4e0a45,_0x220ebd){for(let _0x31dabf=_0x220ebd;_0x31dabf<_0x4e0a45[_0x3b4a('0x81')];_0x31dabf++){const _0x3ce895=_0x3a8955(_0x35977e,_0x4e0a45[_0x31dabf]);_0x3ce895&&(_0x3ce895[0x0][_0x3b4a('0xf9')]=_0x3ce895[0x1],_0x3ce895[0x1][_0x3b4a('0xca')]=_0x3ce895[0x0],_0x48b4c3[_0x3b4a('0x4')](_0x3ce895[0x0]),_0x40625a[_0x3b4a('0x4')](_0x3ce895[0x1]));}}function _0x3a8955(_0x5cf2a2,_0x4a4fad){if(_0x5cf2a2[_0x3b4a('0xc5')]['id']!==_0x4a4fad[_0x3b4a('0xc5')]['id'])return null;const _0x4ff4f2=_0x346fb3[_0x3b4a('0xe2')](_0x5cf2a2)(_0x5cf2a2,_0x4a4fad,_0xbd1d59[_0x3b4a('0xe2')](_0x5cf2a2),_0xbd1d59[_0x3b4a('0xe2')](_0x4a4fad));if(!_0x4ff4f2)return null;return _0x346fb3['get'](_0x4a4fad)(_0x5cf2a2,_0x4a4fad,_0xbd1d59[_0x3b4a('0xe2')](_0x5cf2a2),_0xbd1d59[_0x3b4a('0xe2')](_0x4a4fad))?_0x4ff4f2[0x1]['commentThread']&&_0x4ff4f2[0x1][_0x3b4a('0x76')][_0x3b4a('0x81')]?null:_0x4ff4f2:null;}}['_joinWithAdjacentSuggestions'](_0x177c23){const _0x55c301=Array['from'](_0x177c23),_0x89be62=this[_0x3b4a('0x1f')]({'skipNotAttached':!0x0}),_0x2a8269=_0x89be62[_0x3b4a('0x6e')](_0x542c1b=>!_0x177c23[_0x3b4a('0xc0')](_0x542c1b)),_0x5dd9d9=new Map(_0x55c301[_0x3b4a('0xcd')](_0x420fe0=>[_0x420fe0,this[_0x3b4a('0xc7')][_0x3b4a('0x6a')](_0x420fe0[_0x3b4a('0x1b')],_0x420fe0['subType'],_0x3b4a('0x96'))])),_0x19c578=new Map(_0x89be62[_0x3b4a('0xcd')](_0x57588e=>[_0x57588e,_0x57588e['getRanges']()]));for(let _0x13f898=0x0;_0x13f898<_0x55c301['length'];_0x13f898++){if(_0x4f0495(this,_0x55c301[_0x13f898],_0x55c301,_0x13f898+0x1))return!0x0;}for(let _0x588978=0x0;_0x588978<_0x55c301[_0x3b4a('0x81')];_0x588978++){if(_0x4f0495(this,_0x55c301[_0x588978],_0x2a8269,0x0))return!0x0;}return!0x1;function _0x4f0495(_0x22067b,_0x5a28dc,_0x40b523,_0xb71bb7){for(let _0x1f06e7=_0xb71bb7;_0x1f06e7<_0x40b523['length'];_0x1f06e7++){const _0xa307e2=_0x40b523[_0x1f06e7];if(_0xa307e2['type']!==_0x5a28dc[_0x3b4a('0x1b')]||_0xa307e2[_0x3b4a('0xc5')]['id']!==_0x5a28dc[_0x3b4a('0xc5')]['id']||_0xa307e2['subType']!==_0x5a28dc[_0x3b4a('0x9d')])continue;const _0x17f8e6=_0x5dd9d9[_0x3b4a('0xe2')](_0x5a28dc),_0x45d447=_0x19c578[_0x3b4a('0xe2')](_0x5a28dc),_0xc0dd47=_0x19c578[_0x3b4a('0xe2')](_0xa307e2),_0x7f7d2e=_0x5a28dc[_0x3b4a('0x76')]&&_0x5a28dc[_0x3b4a('0x76')][_0x3b4a('0x81')],_0x5029c8=_0xa307e2[_0x3b4a('0x76')]&&_0xa307e2[_0x3b4a('0x76')][_0x3b4a('0x81')];if(!_0x7f7d2e&&_0x17f8e6(_0xc0dd47,_0x45d447))return _0x22067b[_0x3b4a('0xe8')](_0xa307e2,_0x5a28dc),_0x19c578[_0x3b4a('0xcb')](_0x5a28dc),!0x0;if(!_0x5029c8&&_0x17f8e6(_0x45d447,_0xc0dd47))return _0x22067b[_0x3b4a('0xe8')](_0x5a28dc,_0xa307e2),_0x19c578[_0x3b4a('0xcb')](_0xa307e2),!0x0;}return!0x1;}}[_0x3b4a('0xe8')](_0x2f671f,_0xea4a0d){if(_0x2f671f[_0x3b4a('0xc9')])for(const _0x3325b8 of _0xea4a0d[_0x3b4a('0x13')]())_0x2f671f[_0x3b4a('0xf1')](_0x3325b8);else{const _0x2d06e1=_0xea4a0d[_0x3b4a('0x9f')]()['end'];this[_0x3b4a('0x12c')](_0x2f671f,this[_0x3b4a('0xee')][_0x3b4a('0x12f')](_0x2f671f[_0x3b4a('0x9f')]()[_0x3b4a('0x5b')],_0x2d06e1));}_0xea4a0d[_0x3b4a('0x10b')]();}}class Dt{constructor(_0x581b5a){this[_0x3b4a('0x117')]=_0x581b5a,this['_model']=_0x581b5a['model'],this['_customCallbacks']=new Map(),this[_0x3b4a('0x13e')]=new Map(),this['_registerDefaultCallbacks']();}[_0x3b4a('0x116')](_0x2659a3,_0x14854e,_0x2d1300,_0x4dc3cc,_0x164834,_0x574433){return new _0x143fbf(this[_0x3b4a('0xee')],{'type':_0x2659a3,'subType':_0x14854e,'id':_0x2d1300,'author':_0x4dc3cc,'creator':_0x4dc3cc,'attributes':_0x164834,'onAttributesChange':_0x574433,'onAccept':(..._0x557590)=>this['getSuggestionCallback'](_0x2659a3,_0x14854e,_0x3b4a('0x9a'))(..._0x557590),'onDiscard':(..._0x4bdee1)=>this[_0x3b4a('0x6a')](_0x2659a3,_0x14854e,_0x3b4a('0xda'))(..._0x4bdee1)});}[_0x3b4a('0x10a')](_0x3a0c9d,_0x4b0149,_0x5eefae,_0x5e001a){const _0x53dc4c=_0x3a0c9d+':'+_0x4b0149+':'+_0x5eefae;this[_0x3b4a('0x70')]['set'](_0x53dc4c,_0x5e001a);}[_0x3b4a('0x6a')](_0x36e6d4,_0x243efb,_0x2a2d74){const _0x5d9dbc=_0x36e6d4+':'+_0x243efb+':'+_0x2a2d74;return this[_0x3b4a('0x70')]['get'](_0x5d9dbc)||this[_0x3b4a('0x13e')][_0x3b4a('0xe2')](_0x36e6d4+':'+_0x2a2d74);}[_0x3b4a('0xb')](){const _0x226bf4=()=>{},_0x5ad119=_0x9f17a0=>{_0x9f17a0[_0x3b4a('0xdf')]((_0x1933f0,_0x1ee569)=>_0x1933f0[_0x3b4a('0x5b')][_0x3b4a('0xa0')](_0x1ee569['start'])?0x1:-0x1),this['_model'][_0x3b4a('0x77')](_0x3cb086=>{for(const _0x51c7f8 of _0x9f17a0){let _0x552256;_0x552256=_0x51c7f8[_0x3b4a('0x8d')]['isAtEnd']&&_0x51c7f8[_0x3b4a('0x8d')]['parent']==_0x51c7f8['start'][_0x3b4a('0x53')]?_0x3cb086[_0x3b4a('0x7b')](_0x51c7f8[_0x3b4a('0x5b')][_0x3b4a('0x53')],'on'):_0x3cb086['createSelection'](_0x51c7f8),this['_model'][_0x3b4a('0x113')](_0x552256,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x441936=(_0x4ba72a,_0x30709b)=>{this[_0x3b4a('0xee')][_0x3b4a('0x77')](_0xe2ae6=>{const {commandName:_0x1c1901,commandParams:_0x3d4b61=[]}=_0x30709b,_0xc6c81c=_0x4ba72a[_0x3b4a('0xcd')](_0x45c8f2=>(_t(_0x45c8f2)&&(_0x45c8f2=this['_model'][_0x3b4a('0x12f')](_0x45c8f2[_0x3b4a('0x8d')])),_0x45c8f2))['filter'](_0x2e904d=>'$graveyard'!==_0x2e904d[_0x3b4a('0x131')][_0x3b4a('0xa5')]);if(_0xc6c81c[_0x3b4a('0x81')]<0x1)return;const _0x5bcbf1=Array[_0x3b4a('0xb6')](this[_0x3b4a('0xee')][_0x3b4a('0x5f')]['selection'][_0x3b4a('0x13')]())[_0x3b4a('0xcd')](_0x220cd0=>_0x52f246[_0x3b4a('0xc3')](_0x220cd0));_0xe2ae6[_0x3b4a('0x28')](_0xc6c81c);for(const _0x51565a of this['_editor'][_0x3b4a('0x57')][_0x3b4a('0x57')]())_0x51565a['refresh']();_0x3d4b61[_0x3b4a('0x4b')]({'forceDefaultExecution':!0x0}),this[_0x3b4a('0x117')]['execute'](_0x1c1901,..._0x3d4b61);const _0x270df9=_0x5bcbf1[_0x3b4a('0x6e')](_0x8d6ab7=>'$graveyard'!=_0x8d6ab7['root'][_0x3b4a('0xa5')]);_0x270df9[_0x3b4a('0x81')]>0x0&&_0xe2ae6[_0x3b4a('0x28')](_0x270df9);for(const _0x3f3cf9 of _0x5bcbf1)_0x3f3cf9[_0x3b4a('0xd1')]();});},_0x6b52ff=(_0x79c779,_0x34dc2b)=>0x1==_0x79c779[_0x3b4a('0x81')]&&0x1==_0x34dc2b[_0x3b4a('0x81')]&&_0x79c779[0x0][_0x3b4a('0x8d')]['isEqual'](_0x34dc2b[0x0][_0x3b4a('0x5b')]),_0xc1c2b0=(_0x44f070,_0x530147,_0x10bc59,_0x52b9da)=>xt(_0x44f070,_0x530147,_0x10bc59,_0x52b9da,this[_0x3b4a('0xee')])?[_0x44f070,_0x530147]:xt(_0x530147,_0x44f070,_0x52b9da,_0x10bc59,this['_model'])?[_0x530147,_0x44f070]:null;this[_0x3b4a('0x13e')]['set'](_0x3b4a('0x66'),_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('insertion:discard',_0x5ad119),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x44'),_0x6b52ff),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('insertion:chain',_0xc1c2b0),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('deletion:accept',_0x5ad119),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('deletion:discard',_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('deletion:join',_0x6b52ff),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x93'),_0xc1c2b0),this['_defaultCallbacks'][_0x3b4a('0x6')](_0x3b4a('0x13f'),_0x441936),this['_defaultCallbacks']['set'](_0x3b4a('0x14'),_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x3f'),_0x6b52ff),this[_0x3b4a('0x13e')][_0x3b4a('0x6')]('formatInline:chain',_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0xd8'),_0x441936),this['_defaultCallbacks']['set'](_0x3b4a('0x62'),_0x226bf4),this[_0x3b4a('0x13e')][_0x3b4a('0x6')](_0x3b4a('0x39'),_0x6b52ff),this['_defaultCallbacks'][_0x3b4a('0x6')]('formatBlock:chain',_0x226bf4);}}function Bt(_0x279fab,_0x60afac,_0x59ab05){for(const _0x3c9df5 of _0x60afac['parent'][_0x3b4a('0xbb')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c9df5[_0x3b4a('0x131')]==_0x3c9df5)return!0x1;if(!_0x59ab05[_0x3b4a('0xd6')](_0x3c9df5))return!0x1;if(_0x279fab[_0x3b4a('0x52')](_0x3c9df5)||_0x279fab[_0x3b4a('0x11')](_0x3c9df5))return!0x0;}return!0x1;}function _t(_0x3f8952){return _0x3f8952['end']['parent']==_0x3f8952[_0x3b4a('0x5b')][_0x3b4a('0x53')]&&_0x3f8952[_0x3b4a('0x8d')]['isAtStart'];}function Mt(_0x6e4587,_0xc2c3a9,_0x3c2ea4,_0x4f6402){const _0x7d0741=_0x4dd421=>!_0x4dd421['item']['is'](_0x3b4a('0x8b'))&&!_0x4f6402[_0x3b4a('0x52')](_0x4dd421[_0x3b4a('0xa')]),_0x4f3cd7=_0x6e4587['start'][_0x3b4a('0xd0')](_0x7d0741),_0x50143c=_0x6e4587['end'][_0x3b4a('0xd0')](_0x7d0741,{'direction':_0x3b4a('0x94')});return(!_0x6e4587['start'][_0x3b4a('0xe6')](_0x4f3cd7)||!_0x6e4587['end'][_0x3b4a('0xe6')](_0x50143c))&&(_0x4f3cd7[_0x3b4a('0xa0')](_0x50143c)?_0x3c2ea4[_0x3b4a('0x3')](_0xc2c3a9,{'range':_0x3c2ea4[_0x3b4a('0x12f')](_0x4f3cd7,_0x50143c)}):_0x3c2ea4[_0x3b4a('0x6c')](_0xc2c3a9),!0x0);}function $t(_0x391835){return _0x5670c4(_0x391835);}function Nt(_0x2832b1){const _0x218b76=_0x2832b1[_0x3b4a('0x5b')][_0x3b4a('0x53')];return _0x218b76&&_0x218b76['is'](_0x3b4a('0x11b'));}function Rt(_0x4b758f,_0x45eb29){const _0x10f001=_0x45eb29[_0x3b4a('0xed')][_0x3b4a('0x52')](_0x4b758f)||_0x45eb29[_0x3b4a('0xed')][_0x3b4a('0x51')](_0x4b758f);return _0x45eb29[_0x3b4a('0x12f')](_0x45eb29[_0x3b4a('0x8c')](_0x4b758f,_0x3b4a('0x58')),_0x10f001?_0x45eb29[_0x3b4a('0xc2')](_0x4b758f):_0x45eb29[_0x3b4a('0x8c')](_0x4b758f,'end'));}function xt(_0x47cd57,_0x4b9295,_0x2fb13e,_0x50b097,_0x347e9c){if(_0x2fb13e[_0x3b4a('0x8d')][_0x3b4a('0xe6')](_0x50b097['start']))return!0x0;if(_0x47cd57[_0x3b4a('0x1b')]!=_0x4b9295[_0x3b4a('0x1b')])return!0x1;if(!_0x2fb13e[_0x3b4a('0x8d')][_0x3b4a('0xf6')](_0x50b097[_0x3b4a('0x5b')]))return!0x1;const _0x5d6c88=_0x347e9c[_0x3b4a('0x12f')](_0x2fb13e[_0x3b4a('0x8d')],_0x50b097[_0x3b4a('0x5b')])[_0x3b4a('0xd')]();for(const _0x2ee104 of _0x5d6c88)if([_0x3b4a('0x29'),_0x3b4a('0x16')][_0x3b4a('0x97')](_0x2ee104[_0x3b4a('0x1b')])&&_0x347e9c[_0x3b4a('0xed')]['isLimit'](_0x2ee104[_0x3b4a('0xa')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1948=['length','createAnnotationView','CommentView','commands','comments.maxCommentCharsWhenCollapsed','createAnnotation','componentFactory','execute','comments.editorConfig','model','requires','addSourceCollector','add','comments','getMarkerNames','destroy','_descriptionFactory','commentThread','keys','TrackChangesUI','from','clear','CommentsUI','Discard\x20all\x20selected\x20suggestions','value','init','locale','suggestionLoaded','getDescriptions','_initializeController','innerView','Annotations','suggestion-','acceptSelectedSuggestions','Accept\x20all\x20suggestions','_refreshActiveMarkers','some','actionView','isOn','_disableComments','activeAnnotations','isEnabled','_suggestionToController','filter','button','commandName','Accept\x20all\x20selected\x20suggestions','pluginName','comments.maxThreadTotalWeight','trackChanges','isDirty','config','getAllAdjacentSuggestions','comments.maxCommentsWhenCollapsed','_createUIButton','get','change:previous','_handleSuggestionControllerDelayed','Discard\x20all\x20suggestions','CommentsRepository','_destroyController','editor','_annotationViews','toMany','EditorAnnotations','activeMarkers','bind','_updateController','map','listenTo','suggestionChanged','acceptButton','focus','descriptionParts','_handleControllerBuffer','previous','trackChanges.disableComments','values','mainView','type','isMultiRange','hasSuggestion','define','unbind','registerAnnotation','delete','suggestionUnloaded','acceptAllSuggestions','arrowView','editing','discardButton','plugins','buttonView','getRanges','TrackChangesEditing','_bindAnnotationToEditors','set','getMarkers','Track\x20changes','remove','head','view','isInContent','getSuggestion','push','has','SuggestionThreadView','_viewToController','separator','size'];(function(_0xb37658,_0x1948ff){const _0x42e53d=function(_0x2f77fb){while(--_0x2f77fb){_0xb37658['push'](_0xb37658['shift']());}};_0x42e53d(++_0x1948ff);}(_0x1948,0x93));const _0x42e5=function(_0xb37658,_0x1948ff){_0xb37658=_0xb37658-0x0;let _0x42e53d=_0x1948[_0xb37658];return _0x42e53d;};import{Plugin as _0x2f077a}from'ckeditor5/src/core';import{Collection as _0xe72de4}from'ckeditor5/src/utils';import{Model as _0x572d01,SplitButtonView as _0x486d55,createDropdown as _0x107967,addListToDropdown as _0x5ab986}from'ckeditor5/src/ui';import{Users as _0x3f3414,getDateTimeFormatter as _0x31292d,getAllMarkersDomElementsSorted as _0x8f3102}from'ckeditor5-collaboration/src/collaboration-core';import _0x58f679 from'./trackchangesediting';import _0x4b3c72 from'./ui/suggestioncontroller';import _0x244a6b from'./ui/view/suggestionthreadview';import{getTranslation as _0x2dff47}from'./utils/common-translations';import _0x48bd6f from'../theme/icons/track-changes.svg';export default class d extends _0x2f077a{static get[_0x42e5('0x53')](){return[_0x58f679,_0x3f3414,_0x42e5('0x16'),_0x42e5('0x68'),_0x42e5('0x1b')];}static get[_0x42e5('0xa')](){return _0x42e5('0x5c');}constructor(_0x524a83){super(_0x524a83),this[_0x42e5('0x5')]=new Map(),this[_0x42e5('0x46')]=new Map(),this[_0x42e5('0x19')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x1eb680=this[_0x42e5('0x18')][_0x42e5('0xe')];_0x1eb680['define']('trackChanges.SuggestionThreadView',_0x244a6b),_0x1eb680[_0x42e5('0x2d')](_0x42e5('0x27'),!0x1),this[_0x42e5('0x2')]=_0x1eb680[_0x42e5('0x12')](_0x42e5('0x27'));}['_handleSuggestionControllerDelayed'](_0x4daf15,_0xb9c586){0x0===this[_0x42e5('0x25')][_0x42e5('0x48')]&&setTimeout(()=>{for(const [_0x5c6875,_0x3549ab]of this[_0x42e5('0x25')]){const _0x320529=this[_0x42e5('0x5')][_0x42e5('0x44')](_0x5c6875);_0x320529||_0x3549ab?_0x320529&&_0x3549ab&&this[_0x42e5('0x17')](_0x5c6875):this[_0x42e5('0x66')](_0x5c6875);}this[_0x42e5('0x18')][_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x1b'))['refreshSelectedViews'](),this['_refreshActiveMarkers'](),this[_0x42e5('0x25')][_0x42e5('0x5e')]();},0xa),this['_handleControllerBuffer'][_0x42e5('0x3b')](_0x4daf15,_0xb9c586);}[_0x42e5('0x62')](){const _0x3d7af8=this['editor'],_0x527642=_0x3d7af8[_0x42e5('0x36')][_0x42e5('0x12')]('TrackChangesEditing'),_0x584c76=_0x3d7af8[_0x42e5('0x36')][_0x42e5('0x12')]('Annotations'),_0x4d61b8=_0x3d7af8[_0x42e5('0x36')]['get']('EditorAnnotations'),_0x3eb79c=_0x3d7af8[_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x16'));_0x3d7af8['ui'][_0x42e5('0x4f')][_0x42e5('0x55')](_0x42e5('0xc'),_0x5c5e8c=>this[_0x42e5('0x11')](_0x5c5e8c)),_0x4d61b8[_0x42e5('0x54')](()=>{const _0x4ae56f=[];for(const [_0x3798b4,_0x3c343d]of Array[_0x42e5('0x5d')](this['_suggestionToController'])){const _0x3c3e1a=_0x3798b4['getAllAdjacentSuggestions'](),_0x376899=[];for(const _0x2612e5 of _0x3c3e1a){if(!_0x2612e5[_0x42e5('0x41')])continue;if(_0x2612e5[_0x42e5('0x2b')]){_0x376899['push'](..._0x2612e5[_0x42e5('0x38')]());continue;}const _0x1a7489=_0x2612e5['getFirstRange']();if(_0x376899[_0x42e5('0x49')]>0x0){const _0x25d3fe=_0x376899[0x0]['getJoined'](_0x1a7489);if(_0x25d3fe){_0x376899[0x0]=_0x25d3fe;continue;}}_0x376899['push'](_0x1a7489);}_0x4ae56f[_0x42e5('0x43')]([_0x3c343d[_0x42e5('0x40')],_0x376899]);}return _0x4ae56f;}),this[_0x42e5('0x20')](_0x527642,_0x42e5('0x64'),(_0x2bb540,_0x3badc8)=>{this['listenTo'](_0x3badc8,_0x42e5('0x13'),(_0x102986,_0x491c1d,_0x1ed301,_0x474ae7)=>{_0x3badc8[_0x42e5('0x41')]&&(null==_0x1ed301?(this[_0x42e5('0x1e')](_0x474ae7[_0x42e5('0x3f')]),this[_0x42e5('0x14')](_0x3badc8,!0x1)):(this[_0x42e5('0x1e')](_0x1ed301['head']),this[_0x42e5('0x14')](_0x3badc8,!0x0)));}),null===_0x3badc8[_0x42e5('0x26')]?this[_0x42e5('0x14')](_0x3badc8,!0x1):this[_0x42e5('0x1e')](_0x3badc8['head']);}),this[_0x42e5('0x20')](_0x527642,_0x42e5('0x31'),(_0x2841ae,_0x29769f,_0x41535a)=>{this['stopListening'](_0x29769f,_0x42e5('0x13')),this[_0x42e5('0x25')][_0x42e5('0x30')](_0x29769f);const _0x5f11fa=_0x41535a?_0x41535a[_0x42e5('0x3f')]:_0x29769f,_0x1feb8e=this[_0x42e5('0x5')][_0x42e5('0x12')](_0x5f11fa);null!==_0x41535a&&this[_0x42e5('0x1e')](_0x5f11fa),null===_0x41535a&&_0x1feb8e&&this[_0x42e5('0x17')](_0x29769f);}),this[_0x42e5('0x20')](_0x527642,_0x42e5('0x21'),(_0x4f59ee,_0x5f2efe)=>{this[_0x42e5('0x1e')](_0x5f2efe);}),this[_0x42e5('0x20')](_0x584c76,'change:activeAnnotations',()=>{this[_0x42e5('0x6c')]();}),this[_0x42e5('0x20')](_0x3eb79c,'addComment',(_0x10684a,{threadId:_0x337b78,isFromAdapter:_0x5b497c})=>{if(_0x5b497c||!_0x527642[_0x42e5('0x2c')](_0x337b78))return;const _0x2e8a57=_0x527642[_0x42e5('0x42')](_0x337b78);this[_0x42e5('0x5')]['get'](_0x2e8a57)['view'][_0x42e5('0x23')]();},{'priority':'lowest'});}[_0x42e5('0x6c')](){const _0x2f50ec=this[_0x42e5('0x18')]['plugins'][_0x42e5('0x12')](_0x42e5('0x68')),_0x40c1ba=this[_0x42e5('0x18')][_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x39')),_0x50f2e6=Array[_0x42e5('0x5d')](_0x2f50ec[_0x42e5('0x3')],_0xed4653=>_0xed4653[_0x42e5('0x67')])[_0x42e5('0x6')](_0x5afa22=>this[_0x42e5('0x46')]['has'](_0x5afa22)),_0x52f320=[];for(const _0x3f05d0 of _0x50f2e6){const _0x45d79a=this[_0x42e5('0x46')][_0x42e5('0x12')](_0x3f05d0)[_0x42e5('0x52')][_0x42e5('0xf')]();_0x52f320[_0x42e5('0x43')](..._0x45d79a['reduce']((_0x44299d,_0x9ae5dc)=>[..._0x44299d,..._0x9ae5dc[_0x42e5('0x57')]()],[]));}_0x40c1ba[_0x42e5('0x1c')]=_0x52f320;}['_createUIButton'](_0x5583de){const _0x44403b=_0x107967(_0x5583de,_0x486d55),_0xc8fd37=this['editor'][_0x42e5('0x4c')][_0x42e5('0x12')](_0x42e5('0xc')),_0x35db0e=_0x2dff47(_0x5583de,_0x42e5('0x3d'));_0x44403b[_0x42e5('0x37')]['set']({'tooltip':_0x35db0e,'label':_0x35db0e,'icon':_0x48bd6f}),_0x44403b[_0x42e5('0x37')][_0x42e5('0x1d')](_0x42e5('0x1'))['to'](_0xc8fd37,_0x42e5('0x61')),_0x44403b[_0x42e5('0x37')]['on'](_0x42e5('0x50'),()=>{_0xc8fd37[_0x42e5('0x50')](),this[_0x42e5('0x18')][_0x42e5('0x34')][_0x42e5('0x40')][_0x42e5('0x23')]();});const _0x28d8ce=new _0xe72de4(),_0x310c27=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x35db0e,'commandName':'trackChanges'}},{'type':_0x42e5('0x47')},{'type':'button','model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x6b')),'commandName':_0x42e5('0x32')}},{'type':_0x42e5('0x7'),'model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x9')),'commandName':_0x42e5('0x6a')}},{'type':_0x42e5('0x7'),'model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x15')),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x60')),'commandName':'discardSelectedSuggestions'}}];for(const _0x3ad4da of _0x310c27){let _0x5b3166={'type':_0x42e5('0x47')};if(_0x3ad4da[_0x42e5('0x52')]){const _0x5eeef0=new _0x572d01(_0x3ad4da['model']),_0x1cb759=this[_0x42e5('0x18')]['commands'][_0x42e5('0x12')](_0x5eeef0[_0x42e5('0x8')]);_0x5eeef0[_0x42e5('0x1d')](_0x42e5('0x1'),_0x42e5('0x4'))['to'](_0x1cb759,_0x42e5('0x61'),'isEnabled'),_0x5b3166={'type':_0x3ad4da[_0x42e5('0x2a')],'model':_0x5eeef0};}_0x28d8ce[_0x42e5('0x55')](_0x5b3166);}_0x5ab986(_0x44403b,_0x28d8ce);const _0x1b1285=_0x310c27[_0x42e5('0x6')](_0x37acc9=>null!=_0x37acc9['model'])[_0x42e5('0x1f')](_0x317c26=>this[_0x42e5('0x18')][_0x42e5('0x4c')][_0x42e5('0x12')](_0x317c26[_0x42e5('0x52')][_0x42e5('0x8')])),_0x358412=_0x44403b['buttonView'];return _0x358412[_0x42e5('0x0')][_0x42e5('0x2e')](_0x42e5('0x4')),_0x358412[_0x42e5('0x33')]['unbind']('isEnabled'),_0x358412[_0x42e5('0x0')][_0x42e5('0x1d')](_0x42e5('0x4'))['to'](_0xc8fd37,_0x42e5('0x4')),_0x358412[_0x42e5('0x33')][_0x42e5('0x1d')](_0x42e5('0x4'))[_0x42e5('0x1a')](_0x1b1285,_0x42e5('0x4'),(..._0x11f563)=>_0x11f563[_0x42e5('0x6d')](_0x2dca8c=>_0x2dca8c)),_0x44403b['on']('execute',_0xbf65e3=>{this[_0x42e5('0x18')][_0x42e5('0x50')](_0xbf65e3['source'][_0x42e5('0x8')]),this['editor'][_0x42e5('0x34')][_0x42e5('0x40')]['focus']();}),_0x44403b;}[_0x42e5('0x66')](_0x310c65){const _0x43a356=this['editor'],_0x4faef3=_0x43a356[_0x42e5('0xe')],_0x34eac8=_0x43a356[_0x42e5('0x36')][_0x42e5('0x12')]('Annotations'),_0x562da5=_0x43a356['plugins'][_0x42e5('0x12')](_0x42e5('0x16')),_0x406f56=_0x43a356['plugins'][_0x42e5('0x12')](_0x42e5('0x1b')),_0x346646=_0x43a356['plugins'][_0x42e5('0x12')](_0x3f3414)['me'],_0x261abd=_0x4faef3['get']('trackChanges')[_0x42e5('0x45')],{CommentsListView:_0x2fa4fe,CommentThreadInputView:_0x163db7}=_0x43a356[_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x5f'));let _0x1a7bd0,_0x5e71c0;this[_0x42e5('0x19')][_0x42e5('0x44')](_0x310c65['id'])?(_0x5e71c0=this[_0x42e5('0x19')][_0x42e5('0x12')](_0x310c65['id']),_0x1a7bd0=_0x5e71c0[_0x42e5('0x29')]):(_0x1a7bd0=new _0x261abd(_0x43a356[_0x42e5('0x63')],_0x310c65,_0x346646,{'disableComments':this['_disableComments'],'editorConfig':_0x4faef3[_0x42e5('0x12')](_0x42e5('0x51')),'maxCommentsWhenCollapsed':_0x4faef3[_0x42e5('0x12')](_0x42e5('0x10')),'maxThreadTotalWeight':_0x4faef3[_0x42e5('0x12')](_0x42e5('0xb')),'maxCommentCharsWhenCollapsed':_0x4faef3['get'](_0x42e5('0x4d')),'formatDateTime':_0x31292d(_0x4faef3[_0x42e5('0x12')]('locale')),'CommentView':_0x4faef3[_0x42e5('0x12')](_0x42e5('0x56'))[_0x42e5('0x4b')],'CommentsListView':_0x2fa4fe,'CommentThreadInputView':_0x163db7}),_0x1a7bd0[_0x42e5('0x22')]['on']('execute',()=>{_0x43a356[_0x42e5('0x34')][_0x42e5('0x40')][_0x42e5('0x23')]();}),_0x1a7bd0[_0x42e5('0x35')]['on'](_0x42e5('0x50'),()=>{_0x43a356[_0x42e5('0x34')][_0x42e5('0x40')][_0x42e5('0x23')]();}),_0x5e71c0=_0x34eac8[_0x42e5('0x4a')](this[_0x42e5('0x18')][_0x42e5('0x63')],_0x1a7bd0),_0x5e71c0[_0x42e5('0x1d')](_0x42e5('0xd'))['to'](_0x1a7bd0,_0x42e5('0xd')),_0x5e71c0[_0x42e5('0x1d')](_0x42e5('0x49'))['to'](_0x1a7bd0),_0x5e71c0[_0x42e5('0x1d')](_0x42e5('0x2a'))['to'](_0x1a7bd0,_0x42e5('0x2a'),_0x2c7f39=>_0x42e5('0x69')+_0x2c7f39),this[_0x42e5('0x19')][_0x42e5('0x3b')](_0x310c65['id'],_0x5e71c0));const _0x52d697=_0x562da5['createCommentThreadController'](_0x310c65[_0x42e5('0x5a')],_0x1a7bd0),_0x165446=new _0x4b3c72(_0x43a356,_0x310c65,_0x1a7bd0,_0x52d697),_0x50a17d=_0x310c65['getAllAdjacentSuggestions']()[_0x42e5('0x6')](_0xd254f2=>_0xd254f2['isInContent']);_0x1a7bd0[_0x42e5('0x24')]=_0x43a356[_0x42e5('0x36')]['get']('TrackChangesEditing')[_0x42e5('0x59')]['getDescriptions'](_0x50a17d),this[_0x42e5('0x5')][_0x42e5('0x3b')](_0x310c65,_0x165446),this[_0x42e5('0x46')][_0x42e5('0x3b')](_0x1a7bd0,_0x165446);const _0x57fbf8=_0x34eac8[_0x42e5('0x4e')]({'view':_0x5e71c0,'target':()=>{const _0x6a2f61=[],_0x1c12bc=_0x310c65[_0x42e5('0xf')]()[_0x42e5('0x6')](_0x5ba957=>_0x5ba957['isInContent']);for(const _0x437e5c of _0x1c12bc)_0x6a2f61[_0x42e5('0x43')](..._0x437e5c[_0x42e5('0x3c')]());return _0x8f3102(_0x43a356['editing'],_0x6a2f61);},'type':()=>_0x42e5('0x69')+_0x165446['view'][_0x42e5('0x2a')]});_0x562da5[_0x42e5('0x3a')](_0x1a7bd0,_0x57fbf8),_0x34eac8[_0x42e5('0x55')](_0x57fbf8),_0x406f56[_0x42e5('0x2f')](_0x57fbf8);}[_0x42e5('0x17')](_0x3b1fa7){const _0x452f08=this[_0x42e5('0x18')][_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x68')),_0x4555de=this[_0x42e5('0x5')][_0x42e5('0x12')](_0x3b1fa7),_0x1fe33d=_0x4555de['view'],_0x42ee6c=_0x452f08['getByInnerView'](_0x1fe33d);_0x42ee6c&&_0x452f08[_0x42e5('0x3e')](_0x42ee6c),this['_suggestionToController'][_0x42e5('0x30')](_0x3b1fa7),this[_0x42e5('0x46')][_0x42e5('0x30')](_0x1fe33d),_0x4555de[_0x42e5('0x58')]();}[_0x42e5('0x1e')](_0x241d4d){if(!_0x241d4d[_0x42e5('0x41')]||!this[_0x42e5('0x5')][_0x42e5('0x44')](_0x241d4d))return;const _0x3514a8=this[_0x42e5('0x18')]['plugins'][_0x42e5('0x12')](_0x42e5('0x39')),_0x412817=this[_0x42e5('0x5')][_0x42e5('0x12')](_0x241d4d),_0x552947=_0x241d4d[_0x42e5('0xf')]();_0x412817[_0x42e5('0x40')][_0x42e5('0x24')]=_0x3514a8['_descriptionFactory'][_0x42e5('0x65')](_0x552947);}['destroy'](){for(const _0x4d3f50 of this[_0x42e5('0x5')][_0x42e5('0x5b')]())this[_0x42e5('0x17')](_0x4d3f50);for(const _0xe27a77 of this[_0x42e5('0x19')][_0x42e5('0x28')]())_0xe27a77[_0x42e5('0x29')][_0x42e5('0x58')]();super[_0x42e5('0x58')]();}}
23
+ const _0x5496=['CommentsRepository','plugins','_updateController','values','view','delete','createAnnotationView','_disableComments','lowest','remove','_descriptionFactory','some','_initializeController','_handleSuggestionControllerDelayed','push','commandName','TrackChangesEditing','createCommentThreadController','from','suggestionLoaded','stopListening','keys','descriptionParts','pluginName','listenTo','value','_refreshActiveMarkers','comments.maxCommentCharsWhenCollapsed','model','comments.maxCommentsWhenCollapsed','size','commentThread','SuggestionThreadView','discardButton','head','getFirstRange','button','has','requires','focus','Accept\x20all\x20selected\x20suggestions','discardSelectedSuggestions','Discard\x20all\x20selected\x20suggestions','commands','arrowView','activeAnnotations','unbind','_destroyController','_annotationViews','Discard\x20all\x20suggestions','suggestion-','define','filter','get','getDescriptions','locale','change:previous','trackChanges','buttonView','type','execute','registerAnnotation','_createUIButton','init','_bindAnnotationToEditors','suggestionUnloaded','isDirty','activeMarkers','componentFactory','trackChanges.disableComments','comments.maxThreadTotalWeight','config','isInContent','trackChanges.SuggestionThreadView','editing','_viewToController','refreshSelectedViews','separator','isEnabled','acceptSelectedSuggestions','bind','EditorAnnotations','getAllAdjacentSuggestions','comments.editorConfig','discardAllSuggestions','_handleControllerBuffer','editor','TrackChangesUI','Annotations','addComment','CommentView','destroy','set','acceptAllSuggestions','add','innerView','getRanges','acceptButton','length','_suggestionToController','comments','actionView','mainView','source','isOn'];(function(_0x598c97,_0x5496a0){const _0x2d204e=function(_0xae4c40){while(--_0xae4c40){_0x598c97['push'](_0x598c97['shift']());}};_0x2d204e(++_0x5496a0);}(_0x5496,0x1dc));const _0x2d20=function(_0x598c97,_0x5496a0){_0x598c97=_0x598c97-0x0;let _0x2d204e=_0x5496[_0x598c97];return _0x2d204e;};import{Plugin as _0x312840}from'ckeditor5/src/core';import{Collection as _0x390c98}from'ckeditor5/src/utils';import{Model as _0x1ee6d1,SplitButtonView as _0x19a0dd,createDropdown as _0x1cebb8,addListToDropdown as _0x2ee19f}from'ckeditor5/src/ui';import{Users as _0x304116,getDateTimeFormatter as _0x120e81,getAllMarkersDomElementsSorted as _0x16b6a9}from'ckeditor5-collaboration/src/collaboration-core';import _0x118ad3 from'./trackchangesediting';import _0x979bb0 from'./ui/suggestioncontroller';import _0x83c897 from'./ui/view/suggestionthreadview';import{getTranslation as _0xe6bc44}from'./utils/common-translations';import _0x3a3b60 from'../theme/icons/track-changes.svg';export default class d extends _0x312840{static get[_0x2d20('0x57')](){return[_0x118ad3,_0x304116,_0x2d20('0x31'),_0x2d20('0x20'),_0x2d20('0x19')];}static get[_0x2d20('0x48')](){return _0x2d20('0x1f');}constructor(_0x536083){super(_0x536083),this['_suggestionToController']=new Map(),this[_0x2d20('0x13')]=new Map(),this[_0x2d20('0x61')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x7879c1=this[_0x2d20('0x1e')][_0x2d20('0xf')];_0x7879c1[_0x2d20('0x64')](_0x2d20('0x11'),_0x83c897),_0x7879c1[_0x2d20('0x64')](_0x2d20('0xd'),!0x1),this['_disableComments']=_0x7879c1[_0x2d20('0x66')](_0x2d20('0xd'));}[_0x2d20('0x3e')](_0x47bd01,_0x353875){0x0===this[_0x2d20('0x1d')][_0x2d20('0x4f')]&&setTimeout(()=>{for(const [_0x36c69b,_0x3c1c86]of this[_0x2d20('0x1d')]){const _0x22a6c0=this[_0x2d20('0x2b')][_0x2d20('0x56')](_0x36c69b);_0x22a6c0||_0x3c1c86?_0x22a6c0&&_0x3c1c86&&this[_0x2d20('0x60')](_0x36c69b):this[_0x2d20('0x3d')](_0x36c69b);}this[_0x2d20('0x1e')][_0x2d20('0x32')][_0x2d20('0x66')]('EditorAnnotations')[_0x2d20('0x14')](),this[_0x2d20('0x4b')](),this[_0x2d20('0x1d')]['clear']();},0xa),this[_0x2d20('0x1d')]['set'](_0x47bd01,_0x353875);}[_0x2d20('0x7')](){const _0x264dd6=this[_0x2d20('0x1e')],_0x229f0f=_0x264dd6[_0x2d20('0x32')]['get'](_0x2d20('0x41')),_0x1107aa=_0x264dd6[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x20')),_0x24c799=_0x264dd6[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x19')),_0x4d91b1=_0x264dd6[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x31'));_0x264dd6['ui'][_0x2d20('0xc')][_0x2d20('0x26')]('trackChanges',_0x47530b=>this[_0x2d20('0x6')](_0x47530b)),_0x24c799['addSourceCollector'](()=>{const _0x116e13=[];for(const [_0x5b1e78,_0x407abe]of Array[_0x2d20('0x43')](this[_0x2d20('0x2b')])){const _0x57c293=_0x5b1e78[_0x2d20('0x1a')](),_0xe43de0=[];for(const _0x261a16 of _0x57c293){if(!_0x261a16[_0x2d20('0x10')])continue;if(_0x261a16['isMultiRange']){_0xe43de0[_0x2d20('0x3f')](..._0x261a16[_0x2d20('0x28')]());continue;}const _0x50aad3=_0x261a16[_0x2d20('0x54')]();if(_0xe43de0['length']>0x0){const _0xed042b=_0xe43de0[0x0]['getJoined'](_0x50aad3);if(_0xed042b){_0xe43de0[0x0]=_0xed042b;continue;}}_0xe43de0['push'](_0x50aad3);}_0x116e13[_0x2d20('0x3f')]([_0x407abe['view'],_0xe43de0]);}return _0x116e13;}),this['listenTo'](_0x229f0f,_0x2d20('0x44'),(_0xf460f5,_0x6d2d45)=>{this[_0x2d20('0x49')](_0x6d2d45,_0x2d20('0x0'),(_0x3f943c,_0x19eacf,_0xe8c6e,_0xcb2f69)=>{_0x6d2d45['isInContent']&&(null==_0xe8c6e?(this['_updateController'](_0xcb2f69[_0x2d20('0x53')]),this[_0x2d20('0x3e')](_0x6d2d45,!0x1)):(this[_0x2d20('0x33')](_0xe8c6e[_0x2d20('0x53')]),this['_handleSuggestionControllerDelayed'](_0x6d2d45,!0x0)));}),null===_0x6d2d45['previous']?this[_0x2d20('0x3e')](_0x6d2d45,!0x1):this[_0x2d20('0x33')](_0x6d2d45[_0x2d20('0x53')]);}),this[_0x2d20('0x49')](_0x229f0f,_0x2d20('0x9'),(_0x367ed4,_0x49b589,_0x120af9)=>{this[_0x2d20('0x45')](_0x49b589,_0x2d20('0x0')),this['_handleControllerBuffer'][_0x2d20('0x36')](_0x49b589);const _0x46af90=_0x120af9?_0x120af9['head']:_0x49b589,_0x35b33e=this['_suggestionToController'][_0x2d20('0x66')](_0x46af90);null!==_0x120af9&&this[_0x2d20('0x33')](_0x46af90),null===_0x120af9&&_0x35b33e&&this[_0x2d20('0x60')](_0x49b589);}),this['listenTo'](_0x229f0f,'suggestionChanged',(_0x24f8d9,_0x3cc8e1)=>{this[_0x2d20('0x33')](_0x3cc8e1);}),this[_0x2d20('0x49')](_0x1107aa,'change:activeAnnotations',()=>{this[_0x2d20('0x4b')]();}),this[_0x2d20('0x49')](_0x4d91b1,_0x2d20('0x21'),(_0x18b3ce,{threadId:_0x4673d7,isFromAdapter:_0x1e42b2})=>{if(_0x1e42b2||!_0x229f0f['hasSuggestion'](_0x4673d7))return;const _0x3322ed=_0x229f0f['getSuggestion'](_0x4673d7);this[_0x2d20('0x2b')][_0x2d20('0x66')](_0x3322ed)[_0x2d20('0x35')][_0x2d20('0x58')]();},{'priority':_0x2d20('0x39')});}[_0x2d20('0x4b')](){const _0x5ccf3f=this['editor'][_0x2d20('0x32')][_0x2d20('0x66')]('Annotations'),_0x1850b8=this['editor'][_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x41')),_0xfbef0f=Array[_0x2d20('0x43')](_0x5ccf3f[_0x2d20('0x5e')],_0x5bd811=>_0x5bd811[_0x2d20('0x27')])['filter'](_0x35429c=>this[_0x2d20('0x13')][_0x2d20('0x56')](_0x35429c)),_0x10b1b9=[];for(const _0x58bd75 of _0xfbef0f){const _0x39f5b7=this[_0x2d20('0x13')][_0x2d20('0x66')](_0x58bd75)[_0x2d20('0x4d')]['getAllAdjacentSuggestions']();_0x10b1b9[_0x2d20('0x3f')](..._0x39f5b7['reduce']((_0x5dd7d6,_0x23a158)=>[..._0x5dd7d6,..._0x23a158['getMarkerNames']()],[]));}_0x1850b8[_0x2d20('0xb')]=_0x10b1b9;}[_0x2d20('0x6')](_0x5b2810){const _0x77401=_0x1cebb8(_0x5b2810,_0x19a0dd),_0x368de6=this[_0x2d20('0x1e')][_0x2d20('0x5c')]['get'](_0x2d20('0x1')),_0x581107=_0xe6bc44(_0x5b2810,'Track\x20changes');_0x77401[_0x2d20('0x2')][_0x2d20('0x24')]({'tooltip':_0x581107,'label':_0x581107,'icon':_0x3a3b60}),_0x77401[_0x2d20('0x2')]['bind']('isOn')['to'](_0x368de6,'value'),_0x77401[_0x2d20('0x2')]['on'](_0x2d20('0x4'),()=>{_0x368de6[_0x2d20('0x4')](),this[_0x2d20('0x1e')][_0x2d20('0x12')][_0x2d20('0x35')][_0x2d20('0x58')]();});const _0x2ffc88=new _0x390c98(),_0x2b909d=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x581107,'commandName':'trackChanges'}},{'type':_0x2d20('0x15')},{'type':'button','model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,'Accept\x20all\x20suggestions'),'commandName':_0x2d20('0x25')}},{'type':_0x2d20('0x55'),'model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,_0x2d20('0x59')),'commandName':_0x2d20('0x17')}},{'type':'button','model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,_0x2d20('0x62')),'commandName':_0x2d20('0x1c')}},{'type':'button','model':{'withText':!0x0,'label':_0xe6bc44(_0x5b2810,_0x2d20('0x5b')),'commandName':_0x2d20('0x5a')}}];for(const _0x231fa2 of _0x2b909d){let _0x561f49={'type':_0x2d20('0x15')};if(_0x231fa2[_0x2d20('0x4d')]){const _0x41c315=new _0x1ee6d1(_0x231fa2[_0x2d20('0x4d')]),_0x317490=this['editor'][_0x2d20('0x5c')][_0x2d20('0x66')](_0x41c315['commandName']);_0x41c315[_0x2d20('0x18')](_0x2d20('0x30'),_0x2d20('0x16'))['to'](_0x317490,_0x2d20('0x4a'),_0x2d20('0x16')),_0x561f49={'type':_0x231fa2[_0x2d20('0x3')],'model':_0x41c315};}_0x2ffc88[_0x2d20('0x26')](_0x561f49);}_0x2ee19f(_0x77401,_0x2ffc88);const _0x4d6ae0=_0x2b909d['filter'](_0x453341=>null!=_0x453341[_0x2d20('0x4d')])['map'](_0x561237=>this[_0x2d20('0x1e')]['commands'][_0x2d20('0x66')](_0x561237['model'][_0x2d20('0x40')])),_0x92f463=_0x77401[_0x2d20('0x2')];return _0x92f463[_0x2d20('0x2d')][_0x2d20('0x5f')](_0x2d20('0x16')),_0x92f463['arrowView'][_0x2d20('0x5f')](_0x2d20('0x16')),_0x92f463[_0x2d20('0x2d')]['bind'](_0x2d20('0x16'))['to'](_0x368de6,_0x2d20('0x16')),_0x92f463[_0x2d20('0x5d')][_0x2d20('0x18')]('isEnabled')['toMany'](_0x4d6ae0,_0x2d20('0x16'),(..._0x5efd30)=>_0x5efd30[_0x2d20('0x3c')](_0x29e508=>_0x29e508)),_0x77401['on'](_0x2d20('0x4'),_0x28c410=>{this['editor'][_0x2d20('0x4')](_0x28c410[_0x2d20('0x2f')][_0x2d20('0x40')]),this['editor']['editing'][_0x2d20('0x35')][_0x2d20('0x58')]();}),_0x77401;}['_initializeController'](_0x5e957a){const _0x14517a=this['editor'],_0x4e37bc=_0x14517a[_0x2d20('0xf')],_0x1de3e3=_0x14517a[_0x2d20('0x32')][_0x2d20('0x66')](_0x2d20('0x20')),_0x3442b7=_0x14517a['plugins'][_0x2d20('0x66')](_0x2d20('0x31')),_0x4c6dd1=_0x14517a['plugins'][_0x2d20('0x66')]('EditorAnnotations'),_0x6d343f=_0x14517a[_0x2d20('0x32')][_0x2d20('0x66')](_0x304116)['me'],_0x31235c=_0x4e37bc[_0x2d20('0x66')]('trackChanges')[_0x2d20('0x51')],{CommentsListView:_0x829cb2,CommentThreadInputView:_0x21f3bf}=_0x14517a[_0x2d20('0x32')][_0x2d20('0x66')]('CommentsUI');let _0x500e8f,_0x31ca17;this[_0x2d20('0x61')]['has'](_0x5e957a['id'])?(_0x31ca17=this['_annotationViews'][_0x2d20('0x66')](_0x5e957a['id']),_0x500e8f=_0x31ca17[_0x2d20('0x2e')]):(_0x500e8f=new _0x31235c(_0x14517a[_0x2d20('0x68')],_0x5e957a,_0x6d343f,{'disableComments':this[_0x2d20('0x38')],'editorConfig':_0x4e37bc['get'](_0x2d20('0x1b')),'maxCommentsWhenCollapsed':_0x4e37bc['get'](_0x2d20('0x4e')),'maxThreadTotalWeight':_0x4e37bc['get'](_0x2d20('0xe')),'maxCommentCharsWhenCollapsed':_0x4e37bc[_0x2d20('0x66')](_0x2d20('0x4c')),'formatDateTime':_0x120e81(_0x4e37bc[_0x2d20('0x66')](_0x2d20('0x68'))),'CommentView':_0x4e37bc[_0x2d20('0x66')](_0x2d20('0x2c'))[_0x2d20('0x22')],'CommentsListView':_0x829cb2,'CommentThreadInputView':_0x21f3bf}),_0x500e8f[_0x2d20('0x29')]['on']('execute',()=>{_0x14517a[_0x2d20('0x12')]['view'][_0x2d20('0x58')]();}),_0x500e8f[_0x2d20('0x52')]['on']('execute',()=>{_0x14517a[_0x2d20('0x12')][_0x2d20('0x35')][_0x2d20('0x58')]();}),_0x31ca17=_0x1de3e3[_0x2d20('0x37')](this['editor'][_0x2d20('0x68')],_0x500e8f),_0x31ca17[_0x2d20('0x18')](_0x2d20('0xa'))['to'](_0x500e8f,'isDirty'),_0x31ca17['bind'](_0x2d20('0x2a'))['to'](_0x500e8f),_0x31ca17[_0x2d20('0x18')](_0x2d20('0x3'))['to'](_0x500e8f,_0x2d20('0x3'),_0xb9810b=>_0x2d20('0x63')+_0xb9810b),this[_0x2d20('0x61')][_0x2d20('0x24')](_0x5e957a['id'],_0x31ca17));const _0x193618=_0x3442b7[_0x2d20('0x42')](_0x5e957a[_0x2d20('0x50')],_0x500e8f),_0x4abc4f=new _0x979bb0(_0x14517a,_0x5e957a,_0x500e8f,_0x193618),_0x24ab62=_0x5e957a[_0x2d20('0x1a')]()['filter'](_0x5637c0=>_0x5637c0[_0x2d20('0x10')]);_0x500e8f[_0x2d20('0x47')]=_0x14517a['plugins'][_0x2d20('0x66')]('TrackChangesEditing')[_0x2d20('0x3b')][_0x2d20('0x67')](_0x24ab62),this['_suggestionToController'][_0x2d20('0x24')](_0x5e957a,_0x4abc4f),this[_0x2d20('0x13')][_0x2d20('0x24')](_0x500e8f,_0x4abc4f);const _0x20d439=_0x1de3e3['createAnnotation']({'view':_0x31ca17,'target':()=>{const _0x44f9ee=[],_0x321fd0=_0x5e957a[_0x2d20('0x1a')]()[_0x2d20('0x65')](_0x26f54e=>_0x26f54e[_0x2d20('0x10')]);for(const _0x3cab15 of _0x321fd0)_0x44f9ee[_0x2d20('0x3f')](..._0x3cab15['getMarkers']());return _0x16b6a9(_0x14517a[_0x2d20('0x12')],_0x44f9ee);},'type':()=>_0x2d20('0x63')+_0x4abc4f[_0x2d20('0x35')][_0x2d20('0x3')]});_0x3442b7[_0x2d20('0x8')](_0x500e8f,_0x20d439),_0x1de3e3[_0x2d20('0x26')](_0x20d439),_0x4c6dd1[_0x2d20('0x5')](_0x20d439);}[_0x2d20('0x60')](_0x57f335){const _0x2ea824=this[_0x2d20('0x1e')]['plugins'][_0x2d20('0x66')](_0x2d20('0x20')),_0x27f9b2=this[_0x2d20('0x2b')][_0x2d20('0x66')](_0x57f335),_0x5cfa0f=_0x27f9b2[_0x2d20('0x35')],_0x52491b=_0x2ea824['getByInnerView'](_0x5cfa0f);_0x52491b&&_0x2ea824[_0x2d20('0x3a')](_0x52491b),this[_0x2d20('0x2b')][_0x2d20('0x36')](_0x57f335),this[_0x2d20('0x13')][_0x2d20('0x36')](_0x5cfa0f),_0x27f9b2[_0x2d20('0x23')]();}[_0x2d20('0x33')](_0xf303d8){if(!_0xf303d8[_0x2d20('0x10')]||!this['_suggestionToController'][_0x2d20('0x56')](_0xf303d8))return;const _0x4bd122=this['editor'][_0x2d20('0x32')]['get'](_0x2d20('0x41')),_0xea1287=this[_0x2d20('0x2b')][_0x2d20('0x66')](_0xf303d8),_0x135f73=_0xf303d8[_0x2d20('0x1a')]();_0xea1287['view']['descriptionParts']=_0x4bd122[_0x2d20('0x3b')]['getDescriptions'](_0x135f73);}[_0x2d20('0x23')](){for(const _0x4653b5 of this[_0x2d20('0x2b')][_0x2d20('0x46')]())this[_0x2d20('0x60')](_0x4653b5);for(const _0x21a0d5 of this[_0x2d20('0x61')][_0x2d20('0x34')]())_0x21a0d5[_0x2d20('0x2e')][_0x2d20('0x23')]();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3bd0=['_editor','isDirty','destroy','canAccept','isEnabled','discardSuggestion','get','model','add','listenTo','locale','_pendingAction','_acceptCommand','remove','PendingActions','change:isDirty','bind','execute','plugins','_discardCommand','view','commentThreadController','_setPendingAction','_removePendingAction','unbind','canEditAt','canDiscard','stopListening','getRanges','PENDING_ACTION_SUGGESTION','commands'];(function(_0x2bf292,_0x3bd00e){const _0x1855e6=function(_0x4b874a){while(--_0x4b874a){_0x2bf292['push'](_0x2bf292['shift']());}};_0x1855e6(++_0x3bd00e);}(_0x3bd0,0x11c));const _0x1855=function(_0x2bf292,_0x3bd00e){_0x2bf292=_0x2bf292-0x0;let _0x1855e6=_0x3bd0[_0x2bf292];return _0x1855e6;};import{ObservableMixin as _0x5b53d3}from'ckeditor5/src/utils';import{getTranslation as _0x209813}from'../utils/common-translations';export default class qt extends _0x5b53d3(){constructor(_0x2c0458,_0x21ce00,_0x34fa3a,_0x411d15){super(),this[_0x1855('0x2')]=_0x21ce00,this['view']=_0x34fa3a,this[_0x1855('0x10')]=_0x411d15,this[_0x1855('0x1a')]=_0x2c0458,this['_acceptCommand']=_0x2c0458[_0x1855('0x19')]['get']('acceptSuggestion'),this[_0x1855('0xe')]=_0x2c0458[_0x1855('0x19')][_0x1855('0x1')](_0x1855('0x0')),this[_0x1855('0xf')][_0x1855('0xb')](_0x1855('0x1e'))['to'](this[_0x1855('0x7')],this['_discardCommand'],(_0x171ef9,_0x4608ff)=>_0x171ef9||_0x4608ff),this['view'][_0x1855('0xb')](_0x1855('0x1d'))['to'](this[_0x1855('0x7')],'isEnabled',_0x2199fc=>_0x2199fc&&this[_0x1855('0x1a')][_0x1855('0x2')][_0x1855('0x14')](_0x21ce00[_0x1855('0x17')]())),this['view']['bind'](_0x1855('0x15'))['to'](this[_0x1855('0xe')],'isEnabled',_0x74043=>_0x74043&&this[_0x1855('0x1a')]['model'][_0x1855('0x14')](_0x21ce00[_0x1855('0x17')]())),this['_pendingAction']=null,_0x34fa3a[_0x1855('0x1b')]&&this['_setPendingAction'](),this[_0x1855('0x4')](_0x34fa3a,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x1855('0x4')](_0x34fa3a,_0x1855('0x0'),()=>this['discardSuggestion']()),this[_0x1855('0x4')](_0x34fa3a,_0x1855('0xa'),()=>{_0x34fa3a[_0x1855('0x1b')]?this[_0x1855('0x11')]():this[_0x1855('0x12')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1855('0xc')](this[_0x1855('0x2')]['id']);}[_0x1855('0x0')](){this[_0x1855('0xe')][_0x1855('0xc')](this[_0x1855('0x2')]['id']);}[_0x1855('0x1c')](){this[_0x1855('0xf')][_0x1855('0x13')](_0x1855('0x1e')),this[_0x1855('0xf')][_0x1855('0x13')](_0x1855('0x1d')),this[_0x1855('0xf')][_0x1855('0x13')]('canDiscard'),this[_0x1855('0x16')](),this[_0x1855('0x10')][_0x1855('0x1c')](),this['_pendingAction']&&this[_0x1855('0x12')]();}[_0x1855('0x11')](){const _0x35dbe4=_0x209813(this[_0x1855('0x1a')][_0x1855('0x5')],_0x1855('0x18'));this[_0x1855('0x6')]=this[_0x1855('0x1a')]['plugins']['get'](_0x1855('0x9'))[_0x1855('0x3')](_0x35dbe4);}[_0x1855('0x12')](){null!==this[_0x1855('0x6')]&&this[_0x1855('0x1a')][_0x1855('0xd')]['get'](_0x1855('0x9'))[_0x1855('0x8')](this['_pendingAction']),this[_0x1855('0x6')]=null;}}
23
+ const _0x114a=['stopListening','isDirty','getRanges','add','canEditAt','isEnabled','listenTo','PendingActions','_acceptCommand','remove','discardSuggestion','commands','get','unbind','_editor','_discardCommand','_pendingAction','canAccept','model','commentThreadController','change:isDirty','execute','canDiscard','view','destroy','plugins','_removePendingAction','bind','_setPendingAction','acceptSuggestion'];(function(_0x2f5eeb,_0x114a5a){const _0x5bd99a=function(_0x326599){while(--_0x326599){_0x2f5eeb['push'](_0x2f5eeb['shift']());}};_0x5bd99a(++_0x114a5a);}(_0x114a,0x12b));const _0x5bd9=function(_0x2f5eeb,_0x114a5a){_0x2f5eeb=_0x2f5eeb-0x0;let _0x5bd99a=_0x114a[_0x2f5eeb];return _0x5bd99a;};import{ObservableMixin as _0x18729e}from'ckeditor5/src/utils';import{getTranslation as _0x3e2653}from'../utils/common-translations';export default class qt extends _0x18729e(){constructor(_0x595a48,_0x20bad4,_0x57eee0,_0x4b39e6){super(),this[_0x5bd9('0x13')]=_0x20bad4,this['view']=_0x57eee0,this[_0x5bd9('0x14')]=_0x4b39e6,this[_0x5bd9('0xf')]=_0x595a48,this[_0x5bd9('0x9')]=_0x595a48[_0x5bd9('0xc')][_0x5bd9('0xd')](_0x5bd9('0x0')),this[_0x5bd9('0x10')]=_0x595a48[_0x5bd9('0xc')][_0x5bd9('0xd')](_0x5bd9('0xb')),this['view'][_0x5bd9('0x1c')]('isEnabled')['to'](this[_0x5bd9('0x9')],this['_discardCommand'],(_0x34b6b9,_0x1c745c)=>_0x34b6b9||_0x1c745c),this[_0x5bd9('0x18')][_0x5bd9('0x1c')]('canAccept')['to'](this[_0x5bd9('0x9')],_0x5bd9('0x6'),_0x143219=>_0x143219&&this[_0x5bd9('0xf')][_0x5bd9('0x13')][_0x5bd9('0x5')](_0x20bad4[_0x5bd9('0x3')]())),this[_0x5bd9('0x18')][_0x5bd9('0x1c')]('canDiscard')['to'](this['_discardCommand'],_0x5bd9('0x6'),_0x174136=>_0x174136&&this['_editor'][_0x5bd9('0x13')][_0x5bd9('0x5')](_0x20bad4['getRanges']())),this[_0x5bd9('0x11')]=null,_0x57eee0[_0x5bd9('0x2')]&&this[_0x5bd9('0x1d')](),this['listenTo'](_0x57eee0,'acceptSuggestion',()=>this[_0x5bd9('0x0')]()),this[_0x5bd9('0x7')](_0x57eee0,_0x5bd9('0xb'),()=>this[_0x5bd9('0xb')]()),this['listenTo'](_0x57eee0,_0x5bd9('0x15'),()=>{_0x57eee0[_0x5bd9('0x2')]?this[_0x5bd9('0x1d')]():this[_0x5bd9('0x1b')]();});}['acceptSuggestion'](){this[_0x5bd9('0x9')]['execute'](this[_0x5bd9('0x13')]['id']);}[_0x5bd9('0xb')](){this[_0x5bd9('0x10')][_0x5bd9('0x16')](this[_0x5bd9('0x13')]['id']);}[_0x5bd9('0x19')](){this[_0x5bd9('0x18')][_0x5bd9('0xe')](_0x5bd9('0x6')),this[_0x5bd9('0x18')][_0x5bd9('0xe')](_0x5bd9('0x12')),this[_0x5bd9('0x18')][_0x5bd9('0xe')](_0x5bd9('0x17')),this[_0x5bd9('0x1')](),this['commentThreadController'][_0x5bd9('0x19')](),this[_0x5bd9('0x11')]&&this[_0x5bd9('0x1b')]();}[_0x5bd9('0x1d')](){const _0x2ae3c9=_0x3e2653(this[_0x5bd9('0xf')]['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this[_0x5bd9('0xf')][_0x5bd9('0x1a')][_0x5bd9('0xd')](_0x5bd9('0x8'))[_0x5bd9('0x4')](_0x2ae3c9);}[_0x5bd9('0x1b')](){null!==this['_pendingAction']&&this[_0x5bd9('0xf')][_0x5bd9('0x1a')][_0x5bd9('0xd')](_0x5bd9('0x8'))[_0x5bd9('0xa')](this['_pendingAction']),this[_0x5bd9('0x11')]=null;}}