@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230721.0 → 0.0.0-nightly-20230723.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31b2=['moveTargetPosition','consume','schema','targetPosition','dataReady','updateMarker','enableCommand','high','suggestionChanged','isBefore','createPositionAt','$textProxy','data-suggestion','createPositionBefore','markInlineFormat','formatInline:discard','getCustomProperty','head','_setSuggestionData','type','detach','getLastMatchingPosition','consumable','track-changes-suggestion-data-mismatch','isMultiRange','ck-suggestion-marker','creator','trackChangesCommand','root','containsItem','markerReady','_defaultCallbacks','oldRange','chain','isDocumentOperation','insertion:discard','setTo','_getSuggestionData','removeMarker:suggestion:formatBlock','upcast','editing','skipNestingCheck','Users','_refreshSuggestionsChain','addMarker','document','options','requires','isInsideObject','createElement','_getExternalAuthor','markBlockFormat','nodeBefore','rejected','hasComments','locale','isAfter','editor','previous','includes','ck-suggestion-marker--active','insertion:accept','default','external:','deletion:join','newRange','_mergeNestedSuggestions','remove','unbind','formatGroupId','applyOperation','activeMarkers','getRanges','deletion','error-saving-suggestion-data-suggestion-discarded','normal','_addSuggestionMarker','return','model','getSuggestions','isTouching','ready','differ','clear','data','isNextTo','change','resolve','addUser','dataDowncast','getCommentThread','catch','range','addMarkerName','getIntersection','marker-count','@external','formatBlock','deletion:','stop','init','refresh','authoredAt','isSelectable','_suggestionState','formatInline:','_onDiscard','insertion:','change:data','markDeletion','getNearestSelectionRange','createSelection','formatInline:accept','removeClass','hasCommentThread','subType','createdAt','markMultiRangeInsertion','batch','every','elementStart','suggestionLoaded','getSuggestionCallback','addCommentThread','acceptSelectedSuggestions','_handleNewSuggestionMarker','_suggestionFactory','discardAllSuggestions','toViewElement','containsRangeInObject','_addThreadToSuggestion','_removeSuggestion','howMany','discard','accepted','_registerDefaultCallbacks','commandName','start','fromCharCode','track-changes-adapter-missing-getsuggestion','define','author','config','pluginName','getChanges','authorName','addMarker:suggestion','size','formatBlock:','getAncestors','ck-suggestion-marker-formatBlock','removed','enableReadOnlyMode','formatBlock:discard','addHighlight','next','markMultiRangeDeletion','_saved','listenTo','_updateSuggestionData','then','group','_adapter','removeMarkers','addSuggestionData','highest','_breakSuggestionMarker','getRange','multi','attributes','getWalker','_joinWithAdjacentSuggestions','acceptSuggestion','_splitMarkerName','adapter','commands','$graveyard','insert','forward','toJSON','suggestion:','getChangedMarkers','deletion:discard','_enabledCommands','trackChanges.mergeNestedSuggestions','notReady','discardSuggestion','_rangeIsInLocalUserInsertion','CommentsRepository','getShiftedBy','split','mapper','removeMarker','position','splitPosition','accept','selection','isLimit','addRange','stopListening','never','_setSuggestionRange','updateSuggestion','reconvertMarker','_cutOutSuggestionMarker','getSuggestion','execute','map','elementEnd','_checkSuggestionCorrectness','containerElement','documentSelection','addMarker:suggestion:formatBlock','fromRange','isObject','isCollapsed','commentThread','some','addComment','editingDowncast','dataToMarker','_trackFormatChanges','nodeAfter','getUser','for','markInsertion','acceptAllSuggestions','isBlock','end','isAtEnd','isInContent','delete','insertion','lowest','_customCallbacks','isEqual','backward','setAttribute','markerToHighlight','filter','after','update:suggestion','$marker','multipleBlocks','removeComment','markers','insertContent','setSelection','parent','_model','createPositionAfter','trackChanges.trackFormatChanges','join','isOwn','PendingActions','PENDING_ACTION_SUGGESTION','addClass','conversion','rootName','deletion:chain','originalSuggestionId','get','value','_isForcedDefaultExecutionBlock','length','low','rethrowUnexpectedError','_getAuthorFromId','splice','suggestion','getAttribute','_joinSuggestions','plugins','TrackChangesEditing','push','ck-suggestion-marker-','elementToElement','containsRange','element','_findSuggestions','containsPosition','getFirstRange','forceDefaultExecution','buildSuggestion','fire','markMultiRangeBlockFormat','markerName','set','values','suggestionUnloaded','addSuggestion','isRemovable','createRange','_editor','track-changes-suggestion-not-found','name','deleteContent','writer','fetchCommentThread','createRangeIn','_suggestions','always','_commentsRepository','isExternal','sort','registerPostFixer','formatBlock:accept','move','insertion:chain','getFirstMarker','_descriptionFactory','removeAttribute','getMultiRangeId','formatInline','formatBlock:chain','substr','getAllAdjacentSuggestions','has','add','track-changes-user-not-found','item','from'];(function(_0x5ba016,_0x31b265){const _0x4dbda5=function(_0x4511f2){while(--_0x4511f2){_0x5ba016['push'](_0x5ba016['shift']());}};_0x4dbda5(++_0x31b265);}(_0x31b2,0x1e5));const _0x4dbd=function(_0x5ba016,_0x31b265){_0x5ba016=_0x5ba016-0x0;let _0x4dbda5=_0x31b2[_0x5ba016];return _0x4dbda5;};import{Plugin as _0x1a5ce2,PendingActions as _0x5c9cbe}from'ckeditor5/src/core';import{LiveRange as _0x1e9257}from'ckeditor5/src/engine';import{CKEditorError as _0x535074,uid as _0xe330c2,priorities as _0xb7fe5f,logWarning as _0x5825ef}from'ckeditor5/src/utils';import{toWidget as _0x18e004}from'ckeditor5/src/widget';import{Users as _0x269764,hashObject as _0x3d9f6e}from'ckeditor5-collaboration/src/collaboration-core';import _0x26b97e from'./commands/trackchangescommand';import _0x13f406 from'./commands/acceptsuggestioncommand';import _0x8f399 from'./commands/discardsuggestioncommand';import _0x109d8c from'./commands/executeonallsuggestionscommand';import _0x123818 from'./commands/executeonselectedsuggestionscommand';import _0x434182 from'./suggestion';import _0x5a36fa from'./suggestiondescriptionfactory';import _0x5d1fac from'./integrations/alignment';import _0x277fd2 from'./integrations/basicstyles';import _0x14ba00 from'./integrations/blockquote';import _0x515e9a from'./integrations/ckbox';import _0x2701d7 from'./integrations/codeblock';import _0x314fb8 from'./integrations/comments';import _0x52fd9b from'./integrations/deletecommand';import _0x10c70f from'./integrations/documentlist';import _0x5b3d52 from'./integrations/entercommand';import _0x411ccc from'./integrations/findandreplace';import _0x467539 from'./integrations/font';import _0xf85783 from'./integrations/formatpainter';import _0x27e546 from'./integrations/heading';import _0x411f2c from'./integrations/highlight';import _0x200f1e from'./integrations/horizontalline';import _0x154f30 from'./integrations/htmlembed';import _0x26a2a0 from'./integrations/image';import _0x58ade8 from'./integrations/imagereplace';import _0x2c7e53 from'./integrations/importword';import _0x368d8c from'./integrations/indent';import _0xc19953 from'./integrations/inputcommand';import _0xdfc38 from'./integrations/link';import _0x3c27d1 from'./integrations/list';import _0x42c523 from'./integrations/listproperties';import _0x3e7e93 from'./integrations/mediaembed';import _0x3b1c51 from'./integrations/mention';import _0x193baa from'./integrations/pagebreak';import _0x4cde99 from'./integrations/paragraph';import _0x374992 from'./integrations/removeformat';import _0x1a0eae from'./integrations/restrictededitingmode';import _0x5aa5ae from'./integrations/shiftentercommand';import _0x21ae35 from'./integrations/standardeditingmode';import _0x4e45b6 from'./integrations/style';import _0x5b10c8 from'./integrations/table';import _0x56c6b3 from'./integrations/tablemergesplit';import _0x2beb43 from'./integrations/tableheadings';import _0x1d50ae from'./integrations/tableclipboard';import _0x3d41a8 from'./integrations/tablecolumnresize';import _0x2be429 from'./integrations/template';import _0x5ac99e from'./integrations/tableofcontents';import _0x31f896 from'./integrations/title';import _0x1253f6 from'./integrations/undo';import{getTranslation as _0x450d15}from'./utils/common-translations';import _0x380b71 from'./integrations/tablecaption';import _0x45310f from'./integrations/documentlistproperties';import _0x3608e7 from'./integrations/tableproperties';export default class p extends _0x1a5ce2{static get[_0x4dbd('0xce')](){return[_0x4dbd('0x19'),_0x269764,_0x5c9cbe,_0x5d1fac,_0x277fd2,_0x14ba00,_0x515e9a,_0x2701d7,_0x314fb8,_0x52fd9b,_0x10c70f,_0x45310f,_0x5b3d52,_0x411ccc,_0x467539,_0xf85783,_0x27e546,_0x411f2c,_0x200f1e,_0x154f30,_0x26a2a0,_0x58ade8,_0x2c7e53,_0x368d8c,_0xc19953,_0xdfc38,_0x3c27d1,_0x42c523,_0x3e7e93,_0x3b1c51,_0x193baa,_0x4cde99,_0x374992,_0x1a0eae,_0x5aa5ae,_0x21ae35,_0x4e45b6,_0x5b10c8,_0x56c6b3,_0x2beb43,_0x380b71,_0x1d50ae,_0x3d41a8,_0x5ac99e,_0x3608e7,_0x2be429,_0x31f896,_0x1253f6];}static get[_0x4dbd('0x12e')](){return _0x4dbd('0x6e');}constructor(_0x30e3fb){function _0x19e974(_0x15bb63){return _0x15bb63['map'](_0x12442e=>String[_0x4dbd('0x129')](_0x12442e))[_0x4dbd('0x59')]('');}super(_0x30e3fb),this[_0x4dbd('0x7c')](_0x4dbd('0xe6'),[]),this['on']('change:activeMarkers',(_0x5b476a,_0x166ef2,_0x36765a,_0x3c6f2e)=>{this[_0x4dbd('0x56')][_0x4dbd('0xf5')](()=>{for(const _0x46eb94 of[..._0x3c6f2e,..._0x36765a])this[_0x4dbd('0x56')][_0x4dbd('0x52')][_0x4dbd('0x9a')](_0x46eb94)&&_0x30e3fb[_0x4dbd('0xc7')][_0x4dbd('0x28')](_0x46eb94);});}),this[_0x4dbd('0x93')]=new _0x5a36fa(this[_0x4dbd('0xd8')][_0x4dbd('0xed')][_0x4dbd('0xa1')],this['editor'][_0x4dbd('0xd6')]),this[_0x4dbd('0x141')]=null,this['_suggestionFactory']=new Dt(this[_0x4dbd('0xd8')]),this[_0x4dbd('0x89')]=new Map(),this[_0x4dbd('0x8b')]=_0x30e3fb[_0x4dbd('0x6d')]['get'](_0x4dbd('0x19')),this[_0x4dbd('0x14')]=new Set(),this[_0x4dbd('0x56')]=this[_0x4dbd('0xd8')]['model'],this[_0x4dbd('0x107')]=new WeakMap(),this[_0x4dbd('0x64')]=!0x1,_0x30e3fb[_0x4dbd('0x12d')][_0x4dbd('0x12b')](_0x4dbd('0x58'),_0x4dbd('0xdd')),this['_trackFormatChanges']=_0x30e3fb[_0x4dbd('0x12d')][_0x4dbd('0x62')](_0x4dbd('0x58')),_0x30e3fb[_0x4dbd('0x12d')][_0x4dbd('0x12b')](_0x4dbd('0x15'),!0x0),this[_0x4dbd('0xe1')]=_0x30e3fb[_0x4dbd('0x12d')][_0x4dbd('0x62')](_0x4dbd('0x15')),this[_0x4dbd('0xba')]=new _0x26b97e(_0x30e3fb,this[_0x4dbd('0x14')]),this[_0x19e974([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x19e974([0x34,0x30,0x34,0x36,0x31,0x34,0x34,0x32]);}[_0x4dbd('0x103')](){const _0x4aab25=this[_0x4dbd('0xd8')];_0x4aab25['conversion'][_0x4dbd('0x3d')](_0x4dbd('0x38'))[_0x4dbd('0x4b')]({'model':'suggestion','view':_0xb03e14=>{const {id:_0x2ba112,type:_0xaf99e}=this[_0x4dbd('0xa')](_0xb03e14[_0x4dbd('0x7b')]),_0x204a26=[_0x4dbd('0xb8'),'ck-suggestion-marker-'+_0xaf99e];let _0x24ea48=0xbb8;return this[_0x4dbd('0xe6')][_0x4dbd('0xda')](_0xb03e14[_0x4dbd('0x7b')])&&(_0x204a26['push'](_0x4dbd('0xdb')),_0x24ea48=0xbc2),_0x4dbd('0xe8')==_0xaf99e&&(_0x24ea48+=0x5),{'classes':_0x204a26,'attributes':{'data-suggestion':_0x2ba112},'priority':_0x24ea48};}}),_0x4aab25[_0x4dbd('0x5e')]['for']('dataDowncast')[_0x4dbd('0x9b')](_0x2f5f7b=>{_0x2f5f7b['on'](_0x4dbd('0x131'),(_0x228f8f,_0x526fd5,_0x323c72)=>{if(!_0x323c72[_0x4dbd('0xcd')]['showSuggestionHighlights'])return;const _0xd29f3=_0x526fd5[_0x4dbd('0x9d')];if(!_0xd29f3)return;const _0x497e84=_0x323c72['mapper'][_0x4dbd('0x11f')](_0xd29f3);_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa1')][_0x4dbd('0x33')](_0xd29f3)&&_0x497e84&&!_0x497e84[_0x4dbd('0xaf')]('widget')&&_0x497e84['is'](_0x4dbd('0x2f'))&&_0x18e004(_0x497e84,_0x323c72[_0x4dbd('0x86')]);},{'priority':_0x4dbd('0xa6')});}),_0x4aab25[_0x4dbd('0x5e')][_0x4dbd('0x3d')](_0x4dbd('0xf8'))['markerToHighlight']({'model':_0x4dbd('0x6a'),'view':(_0x5edf5c,_0x45a631)=>{if(!_0x45a631[_0x4dbd('0xcd')]['showSuggestionHighlights'])return null;const {type:_0x5c2f31}=this['_splitMarkerName'](_0x5edf5c[_0x4dbd('0x7b')]);return{'classes':[_0x4dbd('0xb8'),_0x4dbd('0x70')+_0x5c2f31],'priority':0xbb8};}});const _0x40e4a0=({showActiveMarkers:_0x2c4806=!0x0}={})=>(_0x22d38a,_0x3b926a,_0x439274)=>{if(!_0x3b926a[_0x4dbd('0x9d')])return;if(_0x3b926a[_0x4dbd('0x9d')]['is']('selection'))return void _0x439274[_0x4dbd('0xb5')]['consume'](_0x3b926a[_0x4dbd('0x9d')],_0x22d38a[_0x4dbd('0x84')]);const _0x60447f=_0x439274['mapper'][_0x4dbd('0x11f')](_0x3b926a[_0x4dbd('0x9d')]);if(!(_0x3b926a['item']['is'](_0x4dbd('0x73'))&&_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa1')]['isBlock'](_0x3b926a[_0x4dbd('0x9d')])&&!_0x60447f[_0x4dbd('0xaf')](_0x4dbd('0x139'))))return;const {id:_0x368512}=this[_0x4dbd('0xa')](_0x3b926a[_0x4dbd('0x7b')]);_0x439274[_0x4dbd('0x86')][_0x4dbd('0x5d')]([_0x4dbd('0xb8'),_0x4dbd('0x135')],_0x60447f),_0x439274[_0x4dbd('0x86')][_0x4dbd('0x4a')](_0x4dbd('0xab'),_0x368512,_0x60447f),_0x439274[_0x4dbd('0x1c')]['bindElementToMarker'](_0x60447f,_0x3b926a[_0x4dbd('0x7b')]),_0x2c4806&&(this['activeMarkers'][_0x4dbd('0xda')](_0x3b926a[_0x4dbd('0x7b')])?_0x439274[_0x4dbd('0x86')]['addClass'](_0x4dbd('0xdb'),_0x60447f):_0x439274['writer'][_0x4dbd('0x110')](_0x4dbd('0xdb'),_0x60447f));for(const _0x5304e8 of _0x4aab25[_0x4dbd('0xed')][_0x4dbd('0x88')](_0x3b926a[_0x4dbd('0x9d')])['getItems']())_0x439274[_0x4dbd('0xb5')][_0x4dbd('0xa0')](_0x5304e8,_0x22d38a[_0x4dbd('0x84')]);_0x439274[_0x4dbd('0xb5')]['consume'](_0x3b926a[_0x4dbd('0x9d')],_0x22d38a[_0x4dbd('0x84')]);};_0x4aab25['conversion']['for'](_0x4dbd('0xf8'))['add'](_0x3a6c47=>{_0x3a6c47['on'](_0x4dbd('0x31'),(_0x496256,_0x2cbbe0,_0x217ff9)=>{_0x217ff9[_0x4dbd('0xcd')]['showSuggestionHighlights']&&_0x40e4a0({'showActiveMarkers':!0x1})(_0x496256,_0x2cbbe0,_0x217ff9);},{'priority':_0x4dbd('0x2')});}),_0x4aab25['conversion'][_0x4dbd('0x3d')](_0x4dbd('0xf8'))['markerToData']({'model':_0x4dbd('0x6a'),'view':(_0x2f56d2,_0x1ef75e)=>_0x1ef75e[_0x4dbd('0xcd')]['showSuggestionHighlights']?null:{'group':_0x4dbd('0x6a'),'name':_0x2f56d2[_0x4dbd('0x98')](0xb)}}),_0x4aab25['conversion'][_0x4dbd('0x3d')]('upcast')[_0x4dbd('0x71')]({'view':{'name':_0x4dbd('0x6a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x19db04,{writer:_0x199aa0})=>{let _0x24d974=_0x4dbd('0x11')+_0x19db04[_0x4dbd('0x6b')]('suggestion-type')+':'+_0x19db04['getAttribute']('id');return _0x19db04['getAttribute'](_0x4dbd('0xfe'))&&(_0x24d974+=':'+_0x19db04['getAttribute'](_0x4dbd('0xfe'))),_0x199aa0[_0x4dbd('0xd0')](_0x4dbd('0x4f'),{'data-name':_0x24d974});}}),_0x4aab25[_0x4dbd('0x5e')][_0x4dbd('0x3d')](_0x4dbd('0xc6'))[_0x4dbd('0x39')]({'view':'suggestion'}),_0x4aab25[_0x4dbd('0x5e')][_0x4dbd('0x3d')](_0x4dbd('0x38'))[_0x4dbd('0x9b')](_0x4fee78=>{_0x4fee78['on']('addMarker:suggestion:formatBlock',_0x40e4a0(),{'priority':_0x4dbd('0xa6')});}),_0x4aab25['conversion'][_0x4dbd('0x3d')](_0x4dbd('0x38'))[_0x4dbd('0x9b')](_0x59ffa0=>{_0x59ffa0['on'](_0x4dbd('0xc5'),(_0x5361c5,_0x1ef1e0,_0x71141c)=>{const _0x588046=_0x71141c[_0x4dbd('0x1c')]['markerNameToElements'](_0x1ef1e0[_0x4dbd('0x7b')]);if(_0x588046)for(const _0x500a0d of _0x588046)_0x500a0d[_0x4dbd('0xaf')](_0x4dbd('0x139'))||(_0x71141c[_0x4dbd('0x86')][_0x4dbd('0x110')]([_0x4dbd('0xb8'),_0x4dbd('0x135'),_0x4dbd('0xdb')],_0x500a0d),_0x71141c[_0x4dbd('0x86')][_0x4dbd('0x94')]('data-suggestion',_0x500a0d),_0x71141c[_0x4dbd('0x1c')]['unbindElementFromMarkerName'](_0x500a0d,_0x1ef1e0[_0x4dbd('0x7b')]));},{'priority':_0x4dbd('0xa6')});}),_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xcc')][_0x4dbd('0x8e')](_0x38f0a4=>{let _0x239ba1=!0x1;const _0x593dfe=Array[_0x4dbd('0x9e')](_0x4aab25['model'][_0x4dbd('0xcc')][_0x4dbd('0xf1')][_0x4dbd('0x12')]()),_0x2421d9=new Set();for(const {name:_0x832f37,data:_0x2b9e3d}of _0x593dfe){const {group:_0x1137cc,type:_0x29267f,id:_0x59305e}=this['_splitMarkerName'](_0x832f37);if(_0x4dbd('0x6a')!==_0x1137cc)continue;const _0x31ce17=this[_0x4dbd('0x89')][_0x4dbd('0x62')](_0x59305e);if(null!=_0x2b9e3d[_0x4dbd('0xe0')]){'formatInline'==_0x29267f&&(_0x239ba1=_0x239ba1||Mt(_0x2b9e3d[_0x4dbd('0xe0')],_0x832f37,_0x38f0a4,_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa1')]));if(_0x2b9e3d[_0x4dbd('0xe0')][_0x4dbd('0x34')]||_0x4dbd('0xd')==_0x2b9e3d[_0x4dbd('0xe0')][_0x4dbd('0xbb')]['rootName']||_0x4dbd('0x100')==_0x29267f&&!Nt(_0x2b9e3d['newRange'])||_0x4dbd('0xe8')==_0x29267f&&!(!_t(_0x55f270=_0x2b9e3d[_0x4dbd('0xe0')])&&!function(_0x14f07e){return _0x14f07e[_0x4dbd('0x128')][_0x4dbd('0x55')]==_0x14f07e[_0x4dbd('0x41')][_0x4dbd('0xd3')]&&_0x14f07e['start']['isAtEnd'];}(_0x55f270)))_0x38f0a4[_0x4dbd('0x1d')](_0x832f37),_0x239ba1=!0x0;else{if(!_0x31ce17||!_0x31ce17[_0x4dbd('0x43')])continue;_0x2421d9[_0x4dbd('0x9b')](_0x31ce17);}}}var _0x55f270;return _0x2421d9[_0x4dbd('0x132')]>0x0&&(_0x239ba1=!!this[_0x4dbd('0x8')](_0x2421d9)||_0x239ba1),_0x239ba1;}),_0x4aab25['model'][_0x4dbd('0xcc')]['registerPostFixer'](_0x1557f3=>{let _0x235a6f=!0x1;for(const _0x2eb6f5 of _0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xcc')][_0x4dbd('0xf1')][_0x4dbd('0x12f')]()){if(_0x4dbd('0xe')!=_0x2eb6f5['type'])continue;const _0x711412=_0x2eb6f5[_0x4dbd('0x1e')]['getShiftedBy'](_0x2eb6f5[_0x4dbd('0x65')]);if(_0x711412[_0x4dbd('0x42')])for(const _0xd3ad01 of this[_0x4dbd('0x89')][_0x4dbd('0x7d')]()){if(_0xd3ad01['isMultiRange']||!_0xd3ad01[_0x4dbd('0x43')])continue;if('formatBlock'!=_0xd3ad01[_0x4dbd('0xb2')])continue;const _0x330313=_0xd3ad01[_0x4dbd('0x76')]();if(_0x330313[_0x4dbd('0x128')][_0x4dbd('0x55')]!=_0x330313['end'][_0x4dbd('0x55')]&&_0x330313[_0x4dbd('0x41')][_0x4dbd('0x48')](_0x2eb6f5[_0x4dbd('0x1e')])){const _0x4800d8=_0x4aab25['model'][_0x4dbd('0x81')](_0x330313[_0x4dbd('0x128')],_0x711412);_0x1557f3[_0x4dbd('0xa4')](_0xd3ad01[_0x4dbd('0x92')](),{'range':_0x4800d8}),_0x235a6f=!0x0;}}}return _0x235a6f;}),_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0x52')]['on'](_0x4dbd('0x4e'),(_0x2aa57e,_0x1eb891,_0x3f3ad0)=>{if(null==_0x3f3ad0){const {id:_0xed38af}=this['_splitMarkerName'](_0x1eb891[_0x4dbd('0x84')]),_0x33a051=this['_suggestions'][_0x4dbd('0x62')](_0xed38af);_0x33a051&&_0x33a051[_0x4dbd('0xfc')](_0x1eb891[_0x4dbd('0x84')]);}}),_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xcc')]['on'](_0x4dbd('0x10b'),()=>{const _0x1b69b3=Array[_0x4dbd('0x9e')](_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xcc')][_0x4dbd('0xf1')][_0x4dbd('0x12')]())[_0x4dbd('0x4c')](_0x5f105d=>_0x4dbd('0x6a')===this[_0x4dbd('0xa')](_0x5f105d[_0x4dbd('0x84')])[_0x4dbd('0x140')]);if(0x0===_0x1b69b3[_0x4dbd('0x65')])return;_0x1b69b3[_0x4dbd('0x8d')]((_0xc6acf0,_0x1c101e)=>{const _0x578382=_0xc6acf0['data']['oldRange'],_0x2ba53e=_0x1c101e[_0x4dbd('0xf3')][_0x4dbd('0xbf')];return null===_0x578382&&null===_0x2ba53e?0x0:null===_0x578382&&null!==_0x2ba53e?-0x1:null!==_0x578382&&null===_0x2ba53e?0x1:_0x578382[_0x4dbd('0x128')][_0x4dbd('0xa8')](_0x2ba53e[_0x4dbd('0x128')])?-0x1:0x1;});const _0x5322e5=new Set(),_0x18dbb3=new Set();for(const {name:_0x19bb55,data:_0x1144d7}of _0x1b69b3){const {id:_0x3dc1dd}=this[_0x4dbd('0xa')](_0x19bb55);if(null===_0x1144d7[_0x4dbd('0xbf')]){const _0x132f00=this['_handleNewSuggestionMarker'](_0x19bb55);_0x18dbb3[_0x4dbd('0x9b')](_0x132f00);}else{const _0x56b18b=this['_suggestions'][_0x4dbd('0x62')](_0x3dc1dd);null!==_0x1144d7[_0x4dbd('0xe0')]||_0x56b18b[_0x4dbd('0x43')]?(_0x5322e5[_0x4dbd('0x9b')](_0x56b18b[_0x4dbd('0xb0')]),_0x18dbb3['add'](_0x56b18b)):this[_0x4dbd('0x122')](_0x56b18b);}}_0x18dbb3[_0x4dbd('0x132')]>0x0&&this['_refreshSuggestionsChain'](_0x18dbb3);for(const _0x536576 of _0x5322e5)this[_0x4dbd('0x79')](_0x4dbd('0xa7'),_0x536576);}),_0x4aab25[_0x4dbd('0xed')]['on'](_0x4dbd('0xe5'),(_0x258b95,_0xb34137)=>{const _0x40f7fd=_0xb34137[0x0];if(!this[_0x4dbd('0x89')][_0x4dbd('0x132')])return;if(!_0x40f7fd[_0x4dbd('0xc1')])return;if(_0x40f7fd[_0x4dbd('0x115')]['isUndo']||!_0x40f7fd[_0x4dbd('0x115')]['isLocal'])return;let _0x5265c6,_0x47b71e;switch(_0x40f7fd[_0x4dbd('0xb2')]){case _0x4dbd('0xe'):_0x5265c6=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa9')](_0x40f7fd[_0x4dbd('0x1e')]),_0x47b71e=_0x5265c6[_0x4dbd('0x1a')](_0x40f7fd[_0x4dbd('0x123')]);break;case _0x4dbd('0x1b'):_0x5265c6=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa9')](_0x40f7fd[_0x4dbd('0x1f')]),_0x47b71e=_0x4aab25[_0x4dbd('0xed')]['createPositionAt'](_0x40f7fd[_0x4dbd('0x9f')]);break;case _0x4dbd('0x90'):_0x5265c6=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa9')](_0x40f7fd[_0x4dbd('0xa2')]),_0x47b71e=_0x5265c6[_0x4dbd('0x1a')](_0x40f7fd[_0x4dbd('0x123')]);break;default:return;}const _0x13d8c0=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0x81')](_0x5265c6,_0x47b71e);_0x4aab25['model'][_0x4dbd('0xf5')](()=>{for(const {suggestion:_0x3a06cb,meta:_0x4dd6c5}of this[_0x4dbd('0x74')](_0x13d8c0)){if(_0x3a06cb[_0x4dbd('0xb7')])continue;if('formatInline'==_0x3a06cb[_0x4dbd('0xb2')])continue;const _0x356288=_0x3a06cb[_0x4dbd('0xf3')]&&_0x3a06cb[_0x4dbd('0xf3')][_0x4dbd('0x50')];('formatBlock'!=_0x3a06cb[_0x4dbd('0xb2')]||_0x4dbd('0x1b')==_0x40f7fd[_0x4dbd('0xb2')]&&!_0x356288)&&(_0x4dd6c5[_0x4dbd('0x120')]||'insertion'==_0x3a06cb[_0x4dbd('0xb2')]&&_0x4dd6c5[_0x4dbd('0x5a')]||_0x3a06cb[_0x4dbd('0x76')]()['containsRange'](_0x13d8c0)&&this[_0x4dbd('0x3')](_0x3a06cb,_0x5265c6,_0x47b71e));}});},{'priority':_0x4dbd('0x46')}),_0x4aab25[_0x4dbd('0xed')]['on'](_0x4dbd('0x85'),(_0x1e873f,_0x2eb177)=>{const _0x3849a6=_0x2eb177[0x0],_0x30c7a7=_0x2eb177[0x1];if(_0x30c7a7&&_0x30c7a7[_0x4dbd('0x77')])return;if(this[_0x4dbd('0x64')])return;if(!this['trackChangesCommand'][_0x4dbd('0x63')])return;if(_0x3849a6[_0x4dbd('0x34')])return;const _0x195d59=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa1')],{start:_0x3c604d,end:_0x3c4893}=_0x3849a6[_0x4dbd('0x76')](),_0x40a444=_0x3c604d[_0x4dbd('0x3b')]&&_0x195d59['isLimit'](_0x3c604d[_0x4dbd('0x3b')])?null:_0x195d59[_0x4dbd('0x10d')](_0x3c604d,_0x4dbd('0xf')),_0x11f049=_0x3c4893['nodeBefore']&&_0x195d59[_0x4dbd('0x22')](_0x3c4893[_0x4dbd('0xd3')])?null:_0x195d59[_0x4dbd('0x10d')](_0x3c4893,_0x4dbd('0x49')),_0x8d17ac=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0x81')](_0x40a444?_0x40a444[_0x4dbd('0x128')]:_0x3c604d,_0x11f049?_0x11f049[_0x4dbd('0x41')]:_0x3c4893);_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xf5')](_0x512af4=>{this['markDeletion'](_0x8d17ac);const _0x230f29=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa1')][_0x4dbd('0x10d')](_0x8d17ac[_0x4dbd('0x128')]);_0x3849a6['is'](_0x4dbd('0x30'))?_0x512af4[_0x4dbd('0x54')](_0x230f29):_0x3849a6[_0x4dbd('0xc3')](_0x230f29);}),_0x1e873f[_0x4dbd('0x102')]();},{'priority':_0xb7fe5f[_0x4dbd('0xea')]+0xa}),_0x4aab25[_0x4dbd('0xed')]['on'](_0x4dbd('0x53'),(_0x5a219b,_0x46597f)=>{const _0x124a52=_0x46597f[_0x46597f[_0x4dbd('0x65')]-0x1];_0x124a52&&_0x124a52[_0x4dbd('0x77')]||this[_0x4dbd('0x64')]||this[_0x4dbd('0xba')][_0x4dbd('0x63')]&&(_0x4aab25['model'][_0x4dbd('0xf5')](()=>{let _0x23d265=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0x53')](_0x46597f[0x0],_0x46597f[0x1],_0x46597f[0x2],{'forceDefaultExecution':!0x0});if(!_0x23d265)return;_0x5a219b[_0x4dbd('0xec')]=_0x23d265['clone']();const _0x48852c=_0x23d265[_0x4dbd('0x41')][_0x4dbd('0xd3')],_0x4b05ec=_0x4aab25['model']['schema'];_0x48852c&&_0x4b05ec[_0x4dbd('0x40')](_0x48852c)&&!_0x4b05ec[_0x4dbd('0x33')](_0x48852c)&&(_0x23d265=_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0x81')](_0x23d265['start'],_0x4aab25[_0x4dbd('0xed')][_0x4dbd('0xa9')](_0x48852c,_0x4dbd('0x41')))),this[_0x4dbd('0x3e')](_0x23d265);}),_0x5a219b[_0x4dbd('0x102')]());},{'priority':_0x4dbd('0xa6')}),this[_0x4dbd('0xd8')][_0x4dbd('0xc')][_0x4dbd('0x9b')]('trackChanges',this[_0x4dbd('0xba')]),this[_0x4dbd('0xa5')]('trackChanges');const _0x8c138e=new _0x13f406(_0x4aab25,this[_0x4dbd('0x89')]);_0x4aab25[_0x4dbd('0xc')]['add']('acceptSuggestion',_0x8c138e),this[_0x4dbd('0xa5')](_0x4dbd('0x9'));const _0x224a01=new _0x8f399(_0x4aab25,this[_0x4dbd('0x89')]);_0x4aab25[_0x4dbd('0xc')][_0x4dbd('0x9b')](_0x4dbd('0x17'),_0x224a01),this[_0x4dbd('0xa5')](_0x4dbd('0x17')),_0x4aab25[_0x4dbd('0xc')][_0x4dbd('0x9b')](_0x4dbd('0x3f'),new _0x109d8c(_0x4aab25,_0x8c138e,this['_suggestions'])),this[_0x4dbd('0xa5')](_0x4dbd('0x3f')),_0x4aab25[_0x4dbd('0xc')][_0x4dbd('0x9b')]('discardAllSuggestions',new _0x109d8c(_0x4aab25,_0x224a01,this[_0x4dbd('0x89')])),this[_0x4dbd('0xa5')](_0x4dbd('0x11e')),_0x4aab25['commands']['add'](_0x4dbd('0x11b'),new _0x123818(_0x4aab25,_0x8c138e,this['_suggestions'])),this[_0x4dbd('0xa5')](_0x4dbd('0x11b')),_0x4aab25[_0x4dbd('0xc')][_0x4dbd('0x9b')]('discardSelectedSuggestions',new _0x123818(_0x4aab25,_0x224a01,this[_0x4dbd('0x89')])),this[_0x4dbd('0xa5')]('discardSelectedSuggestions');const _0x3f7f87=_0x4aab25['plugins'][_0x4dbd('0x62')](_0x4dbd('0x19'));this[_0x4dbd('0x13d')](_0x3f7f87,_0x4dbd('0x37'),(_0x258ce0,{threadId:_0x675cbf})=>{const _0x50e662=this[_0x4dbd('0x89')]['get'](_0x675cbf);_0x50e662&&_0x50e662[_0x4dbd('0x35')]&&0x1===_0x50e662[_0x4dbd('0x35')][_0x4dbd('0x65')]&&this['_updateSuggestionData'](_0x675cbf,{'hasComments':!0x0});},{'priority':_0x4dbd('0x66')}),this[_0x4dbd('0x13d')](_0x3f7f87,_0x4dbd('0x51'),(_0x464772,{threadId:_0x23d897})=>{const _0x473139=this[_0x4dbd('0x89')][_0x4dbd('0x62')](_0x23d897);_0x473139&&_0x473139['commentThread']&&!_0x473139[_0x4dbd('0x35')][_0x4dbd('0x65')]&&this[_0x4dbd('0x13e')](_0x23d897,{'hasComments':!0x1});},{'priority':_0x4dbd('0x66')});}set[_0x4dbd('0xb')](_0x29f78b){if(this[_0x4dbd('0x141')])throw new _0x535074('track-changes-adapter-already-set',this);this['_adapter']=_0x29f78b;}get['adapter'](){return this[_0x4dbd('0x141')];}[_0x4dbd('0xee')]({skipNotAttached:_0x424700=!0x1,toJSON:_0x19d5cc=!0x1}={}){const _0x2f1ba3=[];for(const _0x22b291 of this['_suggestions'][_0x4dbd('0x7d')]())_0x424700&&!_0x22b291[_0x4dbd('0x43')]||_0x2f1ba3[_0x4dbd('0x6f')](_0x22b291);return _0x19d5cc?_0x2f1ba3[_0x4dbd('0x2c')](_0x428a85=>_0x428a85[_0x4dbd('0x10')]()):_0x2f1ba3;}['getSuggestion'](_0x12dfff){const _0x304057=this[_0x4dbd('0x89')][_0x4dbd('0x62')](_0x12dfff);if(!_0x304057)throw new _0x535074(_0x4dbd('0x83'),this);return _0x304057;}['hasSuggestion'](_0x96a58d){return this['_suggestions']['has'](_0x96a58d);}[_0x4dbd('0x1')](_0x1a03aa){const {authorId:_0xb9f535,id:_0x71094c,attributes:_0x4dad44}=_0x1a03aa,[_0x79d450,_0xf8f560]=_0x1a03aa[_0x4dbd('0xb2')]['split'](':'),_0x28aef3=this[_0x4dbd('0x89')][_0x4dbd('0x62')](_0x71094c)||this['_createSuggestion'](_0x79d450,_0xf8f560,_0x71094c,_0xb9f535,_0x4dad44);if(this[_0x4dbd('0x121')](_0x28aef3),this[_0x4dbd('0x2e')](_0x28aef3,_0x79d450,_0xf8f560||null,_0xb9f535),_0x28aef3[_0x4dbd('0x113')]=_0x1a03aa[_0x4dbd('0x113')],_0x4dad44&&_0x4dad44[_0x4dbd('0xff')]){const _0x31d1e8=_0x4dad44['@external'],_0x9aea2c=this[_0x4dbd('0xd1')](_0x31d1e8[_0x4dbd('0x130')]);_0x28aef3[_0x4dbd('0x105')]=_0x31d1e8[_0x4dbd('0x113')],_0x28aef3[_0x4dbd('0x12c')]=_0x9aea2c,_0x28aef3[_0x4dbd('0x8c')]=!0x0;}else _0x28aef3[_0x4dbd('0x105')]=_0x1a03aa[_0x4dbd('0x113')];switch(_0x1a03aa[_0x4dbd('0xf3')]&&(_0x28aef3['data']=_0x1a03aa[_0x4dbd('0xf3')]),_0x1a03aa[_0x4dbd('0x6')]&&(_0x28aef3[_0x4dbd('0x6')]=_0x1a03aa['attributes']),this[_0x4dbd('0x141')]&&this[_0x4dbd('0x141')][_0x4dbd('0x7f')]||(_0x28aef3['_saved']=!0x0),this[_0x4dbd('0x107')][_0x4dbd('0x62')](_0x28aef3)){case _0x4dbd('0x16'):this['_suggestionState'][_0x4dbd('0x7c')](_0x28aef3,_0x4dbd('0xa3'));break;case'markerReady':_0x28aef3['isInContent']?(this['_suggestionState']['set'](_0x28aef3,_0x4dbd('0xf0')),this[_0x4dbd('0x79')](_0x4dbd('0x118'),_0x28aef3)):this['_suggestionState'][_0x4dbd('0x7c')](_0x28aef3,'removed');}return _0x28aef3;}[_0x4dbd('0x9')](_0x599f50){this[_0x4dbd('0x77')](()=>{this[_0x4dbd('0xd8')][_0x4dbd('0xed')][_0x4dbd('0xf5')](()=>{for(const _0x3cc08c of _0x599f50[_0x4dbd('0x99')]())_0x3cc08c[_0x4dbd('0x20')]();});});}[_0x4dbd('0x17')](_0x46aeb1){this[_0x4dbd('0x77')](()=>{this['editor'][_0x4dbd('0xed')][_0x4dbd('0xf5')](()=>{for(const _0x357e39 of _0x46aeb1[_0x4dbd('0x99')]())_0x357e39[_0x4dbd('0x124')]();});});}[_0x4dbd('0xa5')](_0x19c0b3,_0x1fc3f0){const _0x368253=this['editor'][_0x4dbd('0xc')][_0x4dbd('0x62')](_0x19c0b3);if(!_0x368253)throw new _0x535074('track-changes-command-not-found',this,{'commandName':_0x19c0b3});this[_0x4dbd('0x14')]['add'](_0x368253),_0x1fc3f0&&_0x368253['on'](_0x4dbd('0x2b'),(_0x17fe87,_0x2bd92f)=>{this[_0x4dbd('0xba')][_0x4dbd('0x63')]&&(this['_isForcedDefaultExecutionBlock']||_0x2bd92f[_0x4dbd('0x65')]>0x0&&_0x2bd92f[_0x2bd92f[_0x4dbd('0x65')]-0x1]&&_0x2bd92f[_0x2bd92f[_0x4dbd('0x65')]-0x1][_0x4dbd('0x77')]||(_0x1fc3f0((..._0x564f11)=>_0x368253[_0x4dbd('0x2b')](..._0x564f11,{'forceDefaultExecution':!0x0}),..._0x2bd92f),_0x17fe87[_0x4dbd('0x102')]()));},{'priority':'high'});}[_0x4dbd('0x77')](_0x588a43){let _0x359070,_0x2be895;const _0x595098=this[_0x4dbd('0x64')];this[_0x4dbd('0x64')]=!0x0;try{_0x359070=_0x588a43();}catch(_0x54b17b){_0x2be895=_0x54b17b;}return _0x595098||(this[_0x4dbd('0x64')]=!0x1),_0x2be895&&_0x535074[_0x4dbd('0x67')](_0x2be895,this),_0x359070;}[_0x4dbd('0x3e')](_0x4a9d32,_0x2804c8=null,_0x52a6ea={}){if(_0x4a9d32['isCollapsed'])return null;const _0x34bb46=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0xc9'))['me'];for(const {suggestion:_0x430b56,meta:_0x9440e9}of this[_0x4dbd('0x74')](_0x4a9d32,_0x4dbd('0x45')))if(_0x9440e9[_0x4dbd('0x5a')]){if(!_0x9440e9['isNextTo']){if(!this['_mergeNestedSuggestions']&&_0x9440e9[_0x4dbd('0x120')])continue;return _0x430b56;}if(_0x2804c8==_0x430b56[_0x4dbd('0x112')]){const _0x139537=_0x430b56[_0x4dbd('0x76')]();return _0x139537[_0x4dbd('0x128')][_0x4dbd('0x48')](_0x4a9d32['end'])?this[_0x4dbd('0x26')](_0x430b56,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x4a9d32[_0x4dbd('0x128')],_0x139537['end'])):this[_0x4dbd('0x26')](_0x430b56,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x139537[_0x4dbd('0x128')],_0x4a9d32[_0x4dbd('0x41')])),_0x430b56;}}const _0x59cba4=_0xe330c2(),_0x4fc066=_0x34bb46['id'],_0x3573cf=_0x2804c8?_0x4dbd('0x10a')+_0x2804c8:_0x4dbd('0x45'),_0x453ea7=this[_0x4dbd('0xb1')]({'id':_0x59cba4,'type':_0x3573cf,'createdAt':new Date(),'authorId':_0x4fc066,'attributes':_0x52a6ea});return this['_addSuggestionMarker'](_0x3573cf,_0x59cba4,_0x4fc066,_0x4a9d32),_0x453ea7;}[_0x4dbd('0x114')](_0x301b0d,_0x111eb2='multi',_0x599a69={}){const _0x28edfe=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0xc9'))['me'],_0x1b6c0e=this[_0x4dbd('0x11d')]['getSuggestionCallback'](_0x4dbd('0x45'),_0x111eb2,_0x4dbd('0x59'));for(const _0x57b947 of this['getSuggestions']())if(_0x57b947[_0x4dbd('0x12c')]['id']==_0x28edfe['id']&&_0x4dbd('0x45')==_0x57b947[_0x4dbd('0xb2')]&&_0x57b947[_0x4dbd('0x112')]==_0x111eb2&&(_0x1b6c0e(_0x57b947[_0x4dbd('0xe7')](),_0x301b0d)||_0x1b6c0e(_0x301b0d,_0x57b947[_0x4dbd('0xe7')]()))){for(const _0x5e3e3c of _0x301b0d)_0x57b947['addRange'](_0x5e3e3c);return _0x57b947;}if(this[_0x4dbd('0xe1')])for(const _0xe23ed3 of _0x301b0d)for(const {suggestion:_0x150864,meta:_0x455327}of this[_0x4dbd('0x74')](_0xe23ed3,'insertion')){if(!_0x455327[_0x4dbd('0x5a')])continue;let _0x37b099=!0x0;for(const _0x277815 of _0x150864[_0x4dbd('0xe7')]())for(const _0x3e2621 of _0x301b0d)if(!_0x277815[_0x4dbd('0x72')](_0x3e2621)){_0x37b099=!0x1;break;}if(_0x37b099)return _0x150864;}const _0x1df4d9=_0xe330c2(),_0x2ed118=_0x28edfe['id'],_0x112eb1=_0x4dbd('0x10a')+_0x111eb2,_0x35bc6f=this['_setSuggestionData']({'id':_0x1df4d9,'type':_0x112eb1,'createdAt':new Date(),'authorId':_0x2ed118,'attributes':_0x599a69});for(const _0x3a09e1 of _0x301b0d)this['_addSuggestionMarker'](_0x112eb1,_0x1df4d9,_0x2ed118,_0x3a09e1,_0x434182[_0x4dbd('0x95')]());return _0x35bc6f;}[_0x4dbd('0xad')](_0x594e48,_0x1bfeba,_0xdaa371=null,_0x1b1ec3={}){if(_0xdaa371=_0xdaa371||$t(_0x1bfeba),_0x594e48[_0x4dbd('0x34')])return null;if('never'===this[_0x4dbd('0x3a')]){const _0x8e3023=this[_0x4dbd('0x11d')][_0x4dbd('0x119')](_0x4dbd('0x96'),_0xdaa371,_0x4dbd('0x20'));return this[_0x4dbd('0x77')](()=>_0x8e3023([_0x594e48],_0x1bfeba,_0x1b1ec3)),null;}const _0x2c9815=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')]['get']('Users')['me'],_0x1ac15b=[];if(_0x4dbd('0x8a')!==this['_trackFormatChanges'])for(const {suggestion:_0x1b29fd,meta:_0x3b20a8}of this[_0x4dbd('0x74')](_0x594e48,_0x4dbd('0x45')))_0x3b20a8[_0x4dbd('0x5a')]&&!_0x3b20a8[_0x4dbd('0xcf')]&&_0x1ac15b[_0x4dbd('0x6f')](..._0x1b29fd[_0x4dbd('0xe7')]());const _0x64ac34=function(_0x5c0e2f,_0x45446f){const _0x5c4e49=[];for(const _0x29a6fa of _0x45446f){const _0x27a7ba=_0x5c0e2f[_0x4dbd('0xfd')](_0x29a6fa);_0x27a7ba&&_0x5c4e49[_0x4dbd('0x6f')](_0x27a7ba);}return _0x5c4e49;}(_0x594e48,_0x1ac15b),_0x5572d8=function(_0x59a625,_0x4c3078){const _0x314b90=[_0x59a625];for(const _0x501728 of _0x4c3078){let _0x4a99e7=0x0;for(;_0x4a99e7<_0x314b90['length'];){const _0x34fd0f=_0x314b90[_0x4a99e7]['getDifference'](_0x501728);_0x314b90[_0x4dbd('0x69')](_0x4a99e7,0x1,..._0x34fd0f),_0x4a99e7+=_0x34fd0f['length'];}}return _0x314b90;}(_0x594e48,_0x1ac15b);_0x64ac34[_0x4dbd('0x65')]&&this[_0x4dbd('0x56')][_0x4dbd('0xf5')](()=>{for(const _0x2adfad of _0x64ac34){const _0x4f3782=this[_0x4dbd('0x11d')][_0x4dbd('0x119')](_0x4dbd('0x96'),_0xdaa371,_0x4dbd('0x20'));this[_0x4dbd('0x77')](()=>_0x4f3782([_0x2adfad],_0x1bfeba,_0x1b1ec3));}});for(const _0x3fbcb7 of _0x5572d8){let _0x662a96=null,_0x22c643=_0x3fbcb7[_0x4dbd('0x128')],_0x526529=_0x3fbcb7[_0x4dbd('0x41')];for(const {suggestion:_0x4a27c3,meta:_0x916158}of this[_0x4dbd('0x74')](_0x3fbcb7,_0x4dbd('0x96'))){if(!_0x916158[_0x4dbd('0x5a')])continue;if(_0x4a27c3[_0x4dbd('0x112')]!=_0xdaa371)continue;const _0x2ba39f=_0x4a27c3[_0x4dbd('0x76')]();if(_0x2ba39f[_0x4dbd('0x72')](_0x3fbcb7,!0x0))return null;_0x22c643=_0x22c643['isBefore'](_0x2ba39f[_0x4dbd('0x128')])?_0x22c643:_0x2ba39f['start'],_0x526529=_0x526529[_0x4dbd('0xd7')](_0x2ba39f[_0x4dbd('0x41')])?_0x526529:_0x2ba39f[_0x4dbd('0x41')],_0x662a96?_0x2ba39f[_0x4dbd('0x128')][_0x4dbd('0xa8')](_0x662a96[_0x4dbd('0x76')]()[_0x4dbd('0x128')])?(_0x662a96[_0x4dbd('0x0')](),_0x662a96=_0x4a27c3):_0x4a27c3[_0x4dbd('0x0')]():_0x662a96=_0x4a27c3;}const _0x47e879=this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x22c643,_0x526529);if(_0x662a96)this[_0x4dbd('0x26')](_0x662a96,_0x47e879);else{const _0x11a0b1=_0xe330c2(),_0x1a928a=_0x2c9815['id'];this[_0x4dbd('0xb1')]({'id':_0x11a0b1,'type':_0x4dbd('0x108')+_0xdaa371,'data':_0x1bfeba,'createdAt':new Date(),'authorId':_0x1a928a,'attributes':_0x1b1ec3}),this[_0x4dbd('0xeb')]('formatInline:'+_0xdaa371,_0x11a0b1,_0x1a928a,_0x47e879);}}return null;}[_0x4dbd('0xd2')](_0x2ff679,_0x1e1994,_0x49b74c=[],_0x140a06=null,_0x536b92={}){_0x1e1994[_0x4dbd('0xe4')]||(_0x1e1994[_0x4dbd('0xe4')]=_0x1e1994[_0x4dbd('0x127')]),_0x1e1994[_0x4dbd('0x50')]=_0x2ff679['is'](_0x4dbd('0xfb')),_0x140a06=_0x140a06||$t(_0x1e1994);const _0x5df23=_0x49b74c[_0x4dbd('0x2c')](_0x208cfe=>Rt(_0x208cfe,this[_0x4dbd('0x56')])),_0x32daa1=_0x2ff679['is'](_0x4dbd('0xfb'))?_0x2ff679:Rt(_0x2ff679,this[_0x4dbd('0x56')]);if(_0x4dbd('0x25')===this['_trackFormatChanges']){const _0x580f1d=this[_0x4dbd('0x11d')][_0x4dbd('0x119')](_0x4dbd('0x100'),_0x140a06,_0x4dbd('0x20'));return this['forceDefaultExecution'](()=>_0x580f1d([_0x32daa1],_0x1e1994,_0x536b92)),null;}_0x5df23['push'](_0x32daa1);let _0x3f1ea5=!0x0;for(const _0x1a08f6 of _0x5df23)if(!this[_0x4dbd('0x18')](_0x1a08f6)){_0x3f1ea5=!0x1;break;}if(_0x3f1ea5&&'always'!==this[_0x4dbd('0x3a')]){const _0x354434=this['_suggestionFactory']['getSuggestionCallback'](_0x4dbd('0x100'),_0x140a06,_0x4dbd('0x20'));return this[_0x4dbd('0x77')](()=>_0x354434([_0x32daa1],_0x1e1994,_0x536b92)),null;}let _0x5c0676=null,_0x9bde02=_0x32daa1[_0x4dbd('0x128')],_0x535699=_0x32daa1[_0x4dbd('0x41')];for(const {suggestion:_0x21390a,meta:_0x12aa63}of this[_0x4dbd('0x74')](_0x32daa1,_0x4dbd('0x100'))){if(!_0x12aa63[_0x4dbd('0x5a')]||_0x12aa63[_0x4dbd('0xf4')]||_0x12aa63[_0x4dbd('0x120')]||_0x12aa63['isInsideObject'])continue;if(_0x21390a['data'][_0x4dbd('0xe4')]!=_0x1e1994[_0x4dbd('0xe4')])continue;const _0x550739=_0x21390a[_0x4dbd('0x76')]();if(_0x21390a[_0x4dbd('0x112')]==_0x140a06){if(_0x550739[_0x4dbd('0x72')](_0x32daa1,!0x0))return null;_0x9bde02=_0x9bde02['isBefore'](_0x550739[_0x4dbd('0x128')])?_0x9bde02:_0x550739[_0x4dbd('0x128')],_0x535699=_0x535699[_0x4dbd('0xd7')](_0x550739['end'])?_0x535699:_0x550739[_0x4dbd('0x41')],_0x5c0676?_0x550739[_0x4dbd('0x128')][_0x4dbd('0xa8')](_0x5c0676['getFirstRange']()[_0x4dbd('0x128')])?(_0x5c0676[_0x4dbd('0x0')](),_0x5c0676=_0x21390a):_0x21390a[_0x4dbd('0x0')]():_0x5c0676=_0x21390a;}else{const _0x250ff0=_0x32daa1[_0x4dbd('0xfd')](_0x550739);this[_0x4dbd('0x29')](_0x21390a,_0x250ff0);}}const _0x200f07=this['editor'][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0xc9'))['me'],_0x26995e=_0xe330c2(),_0x144b07=_0x200f07['id'];if(_0x5c0676)return this[_0x4dbd('0x26')](_0x5c0676,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x9bde02,_0x535699)),_0x5c0676;{const _0x473356=this[_0x4dbd('0xb1')]({'id':_0x26995e,'type':_0x4dbd('0x133')+_0x140a06,'data':_0x1e1994,'createdAt':new Date(),'authorId':_0x144b07,'attributes':_0x536b92});return this[_0x4dbd('0xeb')](_0x4dbd('0x133')+_0x140a06,_0x26995e,_0x144b07,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x9bde02,_0x535699)),_0x473356;}}[_0x4dbd('0x7a')](_0x1f43ad,_0x2eb38d,_0x130890=[],_0x1911c7=null,_0x15c3da={}){_0x2eb38d[_0x4dbd('0xe4')]||(_0x2eb38d['formatGroupId']=_0x2eb38d[_0x4dbd('0x127')]);const _0x593b3c=_0x1f43ad[0x0];_0x2eb38d[_0x4dbd('0x50')]=_0x593b3c['is'](_0x4dbd('0xfb')),_0x1911c7=_0x1911c7||$t(_0x2eb38d);const _0x5142cb=_0x130890[_0x4dbd('0x2c')](_0x3bbf6c=>Rt(_0x3bbf6c,this[_0x4dbd('0x56')])),_0x1a5755=_0x593b3c['is']('range')?_0x1f43ad:_0x1f43ad[_0x4dbd('0x2c')](_0x5d7fdd=>Rt(_0x5d7fdd,this['_model']));if(_0x4dbd('0x25')===this[_0x4dbd('0x3a')]){const _0x55256d=this[_0x4dbd('0x11d')][_0x4dbd('0x119')](_0x4dbd('0x100'),_0x1911c7,_0x4dbd('0x20'));return this['forceDefaultExecution'](()=>_0x55256d(_0x1a5755,_0x2eb38d,_0x15c3da)),null;}_0x5142cb['push'](..._0x1a5755);let _0x19c2e1=!0x0;for(const _0x7a31c6 of _0x5142cb)if(!this[_0x4dbd('0x18')](_0x7a31c6)){_0x19c2e1=!0x1;break;}if(_0x19c2e1&&_0x4dbd('0x8a')!==this[_0x4dbd('0x3a')]){const _0x41f090=this[_0x4dbd('0x11d')][_0x4dbd('0x119')](_0x4dbd('0x100'),_0x1911c7,_0x4dbd('0x20'));return this[_0x4dbd('0x77')](()=>_0x41f090(_0x1a5755,_0x2eb38d,_0x15c3da)),null;}const _0x346977=this[_0x4dbd('0xd8')]['plugins'][_0x4dbd('0x62')](_0x4dbd('0xc9'))['me'];for(const _0x566b8b of this[_0x4dbd('0xee')]()){if(_0x566b8b[_0x4dbd('0x12c')]['id']!=_0x346977['id'])continue;if(_0x4dbd('0x100')!=_0x566b8b[_0x4dbd('0xb2')]||_0x566b8b[_0x4dbd('0xf3')][_0x4dbd('0xe4')]!=_0x2eb38d[_0x4dbd('0xe4')])continue;const _0x45a1d6=_0x566b8b[_0x4dbd('0x112')]==_0x1911c7;for(let _0x20b9da=0x0;_0x20b9da<_0x1a5755[_0x4dbd('0x65')];_0x20b9da++){const _0x47f2f8=_0x1a5755[_0x20b9da];for(const _0x533f2a of _0x566b8b['getMarkers']()){const _0x402cab=_0x533f2a[_0x4dbd('0x4')]();if(_0x47f2f8[_0x4dbd('0x48')](_0x402cab)){_0x45a1d6?(_0x1a5755[_0x4dbd('0x69')](_0x20b9da,0x1),_0x20b9da--):_0x566b8b[_0x4dbd('0x1d')](_0x533f2a[_0x4dbd('0x84')]);break;}}}}if(0x0==_0x1a5755['length'])return null;const _0x2a6285=this['_suggestionFactory'][_0x4dbd('0x119')](_0x4dbd('0x100'),_0x1911c7,_0x4dbd('0x59'));for(const _0x5e2784 of this['getSuggestions']())if(_0x5e2784[_0x4dbd('0x12c')]['id']==_0x346977['id']&&_0x4dbd('0x100')==_0x5e2784[_0x4dbd('0xb2')]&&_0x5e2784['data'][_0x4dbd('0xe4')]==_0x2eb38d[_0x4dbd('0xe4')]&&_0x5e2784['subType']==_0x1911c7&&(_0x2a6285(_0x5e2784['getRanges'](),_0x1a5755)||_0x2a6285(_0x1a5755,_0x5e2784['getRanges']()))){for(const _0xcf4ae8 of _0x1a5755)_0x5e2784[_0x4dbd('0x23')](_0xcf4ae8);return _0x5e2784;}const _0x6e2e6=_0xe330c2(),_0x24a6ef=_0x346977['id'],_0x5bc4b4=_0x4dbd('0x133')+_0x1911c7,_0x4a47cf=this['_setSuggestionData']({'id':_0x6e2e6,'type':_0x5bc4b4,'data':_0x2eb38d,'createdAt':new Date(),'authorId':_0x24a6ef,'attributes':_0x15c3da});for(const _0x29c81a of _0x1a5755)this[_0x4dbd('0xeb')](_0x5bc4b4,_0x6e2e6,_0x24a6ef,_0x29c81a,_0x434182['getMultiRangeId']());return _0x4a47cf;}[_0x4dbd('0x10c')](_0x3e9083,_0x99b42c=null,_0x241312={}){if(_0x3e9083[_0x4dbd('0x34')])return null;const _0x490f24=this['editor'][_0x4dbd('0x6d')]['get'](_0x4dbd('0xc9'))['me'],_0x3409d4=new _0x1e9257(_0x3e9083['start'],_0x3e9083[_0x4dbd('0x41')]);for(const {suggestion:_0x5516bf,meta:_0x5382de}of this['_findSuggestions'](_0x3409d4,'insertion'))if(_0x5382de['isOwn']&&!_0x5382de[_0x4dbd('0xf4')]){if(_0x5516bf['isMultiRange']){const _0x2a799d=_0x5516bf[_0x4dbd('0xe7')]()[_0x4dbd('0x4c')](_0x386b0b=>_0x4dbd('0xd')!=_0x386b0b[_0x4dbd('0xbb')][_0x4dbd('0x5f')]);_0x2a799d[_0x4dbd('0x116')](_0xc215cc=>_0x3409d4[_0x4dbd('0x72')](_0xc215cc,!0x0))&&_0x5516bf['discard']();if(_0x2a799d[_0x4dbd('0x36')](_0x2e6aec=>_0x2e6aec[_0x4dbd('0x72')](_0x3409d4,!0x0))){const _0x72c8a4=this[_0x4dbd('0x11d')][_0x4dbd('0x119')](_0x4dbd('0xe8'),_0x99b42c,'accept');return this[_0x4dbd('0x77')](()=>_0x72c8a4([_0x3409d4],null,_0x241312)),null;}}else{const _0x17e74e=_0x3409d4[_0x4dbd('0xfd')](_0x5516bf['getFirstRange']());null!==_0x17e74e&&_0x5516bf[_0x4dbd('0x109')]([_0x17e74e],null,_0x241312);}}if(_0x3409d4[_0x4dbd('0xb3')](),_0x3409d4[_0x4dbd('0x34')]||'$graveyard'==_0x3409d4[_0x4dbd('0xbb')][_0x4dbd('0x5f')])return null;let _0x36213a=null,_0x2cef1b=_0x3409d4[_0x4dbd('0x128')],_0xeacf52=_0x3409d4[_0x4dbd('0x41')];for(const {suggestion:_0x558825,meta:_0x14e93c}of this[_0x4dbd('0x74')](_0x3409d4,_0x4dbd('0xe8')))if(_0x14e93c[_0x4dbd('0x5a')]){if(_0x558825[_0x4dbd('0xb7')]&&this[_0x4dbd('0xe1')]){let _0x45e2b6=!0x0;for(const _0x3d8357 of _0x558825[_0x4dbd('0xe7')]()){if(_0x3d8357['containsRange'](_0x3409d4,!0x0))return _0x558825;_0x3409d4['containsRange'](_0x3d8357)||(_0x45e2b6=!0x1);}_0x45e2b6&&_0x558825[_0x4dbd('0x124')]();}else{const _0x13cdcf=_0x558825[_0x4dbd('0x76')]();if(_0x13cdcf['containsRange'](_0x3409d4,!0x0)){if(!this[_0x4dbd('0xe1')]&&_0x14e93c['containsRangeInObject'])continue;return _0x558825;}_0x2cef1b=_0x2cef1b[_0x4dbd('0xa8')](_0x13cdcf[_0x4dbd('0x128')])?_0x2cef1b:_0x13cdcf[_0x4dbd('0x128')],_0xeacf52=_0xeacf52[_0x4dbd('0xd7')](_0x13cdcf[_0x4dbd('0x41')])?_0xeacf52:_0x13cdcf[_0x4dbd('0x41')],_0x36213a?_0x13cdcf['start'][_0x4dbd('0xa8')](_0x36213a[_0x4dbd('0x76')]()[_0x4dbd('0x128')])?(_0x36213a[_0x4dbd('0x0')](),_0x36213a=_0x558825):_0x558825[_0x4dbd('0x0')]():_0x36213a=_0x558825;}}if(_0x36213a)return this[_0x4dbd('0x26')](_0x36213a,this['_model']['createRange'](_0x2cef1b,_0xeacf52)),_0x36213a;{const _0x5d696b=_0xe330c2(),_0x43a687=this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x2cef1b,_0xeacf52),_0x5c04bb=_0x490f24['id'],_0x1d1d51=_0x99b42c?_0x4dbd('0x101')+_0x99b42c:'deletion',_0x2eef44=this[_0x4dbd('0xb1')]({'id':_0x5d696b,'type':_0x1d1d51,'createdAt':new Date(),'authorId':_0x5c04bb,'attributes':_0x241312});return this['_addSuggestionMarker'](_0x1d1d51,_0x5d696b,_0x5c04bb,_0x43a687),_0x2eef44;}}[_0x4dbd('0x13b')](_0x3ac53a,_0x52f47f=_0x4dbd('0x5'),_0x306131={}){const _0x201b3b=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0xc9'))['me'],_0x5dcabf=_0x3ac53a[_0x4dbd('0x2c')](_0x286b25=>new _0x1e9257(_0x286b25[_0x4dbd('0x128')],_0x286b25[_0x4dbd('0x41')])),_0x18b5f9=new Set();for(const _0x2f0113 of _0x5dcabf)for(const {suggestion:_0x173039,meta:_0x51f326}of this[_0x4dbd('0x74')](_0x2f0113,'insertion'))_0x51f326['isOwn']&&!_0x51f326[_0x4dbd('0xf4')]&&_0x18b5f9[_0x4dbd('0x9b')](_0x173039);for(const _0x120de9 of _0x18b5f9)if(_0x120de9[_0x4dbd('0xb7')]){const _0xa9bbd6=_0x120de9['getRanges']();(!_0x120de9[_0x4dbd('0x6')]||!_0x120de9[_0x4dbd('0x6')][_0x4dbd('0xc8')])&&(_0xa9bbd6['every'](_0x1720e0=>_0x5dcabf['some'](_0x51e4e2=>_0x51e4e2[_0x4dbd('0x72')](_0x1720e0,!0x0)))&&_0x120de9['discard']());if(_0x5dcabf['every'](_0x3a321a=>_0xa9bbd6['some'](_0x12b729=>_0x12b729['containsRange'](_0x3a321a,!0x0)))){const _0x199a39=this['_suggestionFactory'][_0x4dbd('0x119')](_0x4dbd('0xe8'),_0x52f47f,'accept');return this['forceDefaultExecution'](()=>_0x199a39(_0x3ac53a,null,_0x306131)),null;}}else{const _0x3e447d=_0x120de9[_0x4dbd('0x76')]();_0x5dcabf[_0x4dbd('0x36')](_0x534100=>_0x534100[_0x4dbd('0x72')](_0x3e447d,!0x0))&&_0x120de9[_0x4dbd('0x124')]();if(_0x5dcabf['every'](_0x3bc034=>_0x3e447d[_0x4dbd('0x72')](_0x3bc034,!0x0))){const _0x3fe117=this[_0x4dbd('0x11d')][_0x4dbd('0x119')](_0x4dbd('0xe8'),_0x52f47f,_0x4dbd('0x20'));return this[_0x4dbd('0x77')](()=>_0x3fe117(_0x5dcabf,null,_0x306131)),null;}}const _0x2fed7d=this['_suggestionFactory'][_0x4dbd('0x119')](_0x4dbd('0xe8'),_0x52f47f,'join');let _0x4f77c7=null;for(const _0x4277ac of this['getSuggestions']())if(_0x4277ac['author']['id']==_0x201b3b['id']&&_0x4277ac[_0x4dbd('0x43')]&&_0x4dbd('0xe8')==_0x4277ac[_0x4dbd('0xb2')]&&_0x4277ac['subType']==_0x52f47f&&(_0x2fed7d(_0x4277ac[_0x4dbd('0xe7')](),_0x5dcabf)||_0x2fed7d(_0x5dcabf,_0x4277ac[_0x4dbd('0xe7')]()))){if(_0x4f77c7){if(_0x4277ac[_0x4dbd('0x35')]&&_0x4277ac[_0x4dbd('0x35')][_0x4dbd('0x65')])continue;for(const _0x4f11ca of _0x4277ac[_0x4dbd('0xe7')]())_0x4f77c7['isIntersectingWithRange'](_0x4f11ca)||_0x4f77c7[_0x4dbd('0x23')](_0x4f11ca);_0x4277ac[_0x4dbd('0x0')]();}else{_0x4f77c7=_0x4277ac;for(const _0x118fd5 of _0x5dcabf)_0x4277ac['isIntersectingWithRange'](_0x118fd5)||_0x4277ac[_0x4dbd('0x23')](_0x118fd5);}}if(_0x4f77c7)return _0x4f77c7;_0x18b5f9[_0x4dbd('0xf2')]();for(const _0x2d5ed9 of _0x5dcabf)for(const {suggestion:_0x2d6de2,meta:_0x2e42dd}of this[_0x4dbd('0x74')](_0x2d5ed9,_0x4dbd('0xe8')))_0x2e42dd['isOwn']&&_0x18b5f9[_0x4dbd('0x9b')](_0x2d6de2);for(const _0x44f5b5 of _0x18b5f9){const _0x4e1f27=_0x44f5b5[_0x4dbd('0xe7')]();if(!_0x306131||!_0x306131[_0x4dbd('0xc8')]){if(_0x5dcabf[_0x4dbd('0x116')](_0x4cf616=>_0x4e1f27[_0x4dbd('0x36')](_0x34e308=>_0x34e308[_0x4dbd('0x72')](_0x4cf616,!0x0))))return _0x44f5b5;}(!_0x44f5b5['attributes']||!_0x44f5b5['attributes'][_0x4dbd('0xc8')])&&(_0x4e1f27['every'](_0x48e09c=>_0x5dcabf[_0x4dbd('0x36')](_0x994563=>_0x994563[_0x4dbd('0x72')](_0x48e09c,!0x0)))&&_0x44f5b5['discard']());}const _0x565f55=_0xe330c2(),_0x18f762=_0x201b3b['id'],_0xc235fa=_0x4dbd('0x101')+_0x52f47f,_0xc5b9d3=this['_setSuggestionData']({'id':_0x565f55,'type':_0xc235fa,'createdAt':new Date(),'authorId':_0x18f762,'attributes':_0x306131});for(const _0x3dac88 of _0x5dcabf)_0x3dac88[_0x4dbd('0xb3')](),_0x3dac88[_0x4dbd('0x34')]||_0x4dbd('0xd')==_0x3dac88[_0x4dbd('0xbb')][_0x4dbd('0x5f')]||this[_0x4dbd('0xeb')](_0xc235fa,_0x565f55,_0x18f762,_0x3dac88,_0x434182[_0x4dbd('0x95')]());return _0xc5b9d3;}['_setSuggestionRange'](_0x249057,_0x6085ac){const _0x35708a=_0x249057[_0x4dbd('0x92')]();this['_model'][_0x4dbd('0xf5')](_0x4d1748=>{_0x4d1748[_0x4dbd('0xa4')](_0x35708a,{'range':_0x6085ac});});}[_0x4dbd('0x121')](_0x10460f){const _0x171f30=_0x10460f['id'],_0x4d5729=this['editor']['config'][_0x4dbd('0x62')]('collaboration.channelId');this[_0x4dbd('0x8b')][_0x4dbd('0x111')](_0x171f30)||this[_0x4dbd('0x8b')][_0x4dbd('0x11a')]({'channelId':_0x4d5729,'threadId':_0x171f30,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41e0d0=this['_commentsRepository'][_0x4dbd('0xf9')](_0x171f30);_0x41e0d0[_0x4dbd('0xe3')]('isRemovable'),_0x41e0d0[_0x4dbd('0x80')]=!0x1,_0x10460f[_0x4dbd('0x35')]=_0x41e0d0;}[_0x4dbd('0x2e')](_0x28fcba,_0x742323,_0x74eb76,_0x58ed72){if(_0x28fcba['type']!=_0x742323||_0x28fcba[_0x4dbd('0x112')]!=_0x74eb76||_0x28fcba[_0x4dbd('0xb9')]['id']!=_0x58ed72)throw this['editor'][_0x4dbd('0x137')](_0x4dbd('0xb6')),new _0x535074(_0x4dbd('0xb6'),this);}[_0x4dbd('0x29')](_0x3a8fa4,_0x36175f){const _0x2561e9=_0x3a8fa4['getFirstRange']();if(_0x36175f[_0x4dbd('0x48')](_0x2561e9))_0x3a8fa4[_0x4dbd('0x0')]();else{if(_0x2561e9[_0x4dbd('0x72')](_0x36175f)){const _0x3de3ec=this[_0x4dbd('0x56')][_0x4dbd('0xa9')](_0x36175f[_0x4dbd('0x128')][_0x4dbd('0xd3')],_0x4dbd('0x41'));this[_0x4dbd('0x26')](_0x3a8fa4,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x2561e9[_0x4dbd('0x128')],_0x3de3ec));const _0x66c0be=_0xe330c2(),_0x2df84c=_0x3a8fa4[_0x4dbd('0xb9')]['id'],_0x30e85c=_0x3a8fa4['type']+':'+_0x3a8fa4[_0x4dbd('0x112')];this[_0x4dbd('0xb1')]({'id':_0x66c0be,'type':_0x30e85c,'createdAt':new Date(),'authorId':_0x2df84c,'data':_0x3a8fa4['data'],'attributes':_0x3a8fa4[_0x4dbd('0x6')]});const _0x3639b3=this[_0x4dbd('0x56')]['createPositionAt'](_0x36175f[_0x4dbd('0x41')][_0x4dbd('0x55')],_0x4dbd('0x4d')),_0x4f0912=this['_model']['createRange'](_0x3639b3,_0x2561e9[_0x4dbd('0x41')]);this[_0x4dbd('0xeb')](_0x30e85c,_0x66c0be,_0x2df84c,_0x4f0912);}else{if(_0x2561e9[_0x4dbd('0x75')](_0x36175f[_0x4dbd('0x128')])){const _0x58a163=this[_0x4dbd('0x56')]['createPositionAt'](_0x36175f[_0x4dbd('0x128')][_0x4dbd('0xd3')],_0x4dbd('0x41'));this[_0x4dbd('0x26')](_0x3a8fa4,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x2561e9[_0x4dbd('0x128')],_0x58a163));}else{const _0x25ab0d=this[_0x4dbd('0x56')]['createPositionAt'](_0x36175f[_0x4dbd('0x41')][_0x4dbd('0x55')],'after');this[_0x4dbd('0x26')](_0x3a8fa4,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x25ab0d,_0x2561e9[_0x4dbd('0x41')]));}}}}[_0x4dbd('0x18')](_0x243289){for(const {suggestion:_0x49c0f1,meta:_0x592b0a}of this[_0x4dbd('0x74')](_0x243289,_0x4dbd('0x45'))){if(!_0x592b0a[_0x4dbd('0x5a')])continue;const _0x2ede11=_0x49c0f1[_0x4dbd('0xe7')]();for(const _0x4bb7af of _0x2ede11)if(!_0x243289['getDifference'](_0x4bb7af)['length'])return!0x0;}return!0x1;}[_0x4dbd('0x68')](_0x200a4e){const _0x745f0=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0xc9'))[_0x4dbd('0x3c')](_0x200a4e);if(!_0x745f0)throw new _0x535074(_0x4dbd('0x9c'),this);return _0x745f0;}[_0x4dbd('0xd1')](_0x5813e3){const _0x4ab942=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0xc9')),_0x523e3f=_0x3d9f6e(_0x4dbd('0xde')+_0x5813e3),_0x281cf8=_0x4ab942['getUser'](_0x523e3f);return _0x281cf8||_0x4ab942[_0x4dbd('0xf7')]({'id':_0x523e3f,'name':_0x5813e3});}['_createSuggestion'](_0x4b9f0c,_0x463f8a,_0x289073,_0x598784,_0x592857){const _0x39e4ca=this[_0x4dbd('0x68')](_0x598784),_0x431f79=this['_suggestionFactory'][_0x4dbd('0x78')](_0x4b9f0c,_0x463f8a,_0x289073,_0x39e4ca,_0x592857,_0x1adee5=>this[_0x4dbd('0x13e')](_0x289073,{'attributes':_0x1adee5}));return this[_0x4dbd('0x13d')](_0x431f79,'accept',()=>{this[_0x4dbd('0x13e')](_0x289073,{'state':_0x4dbd('0x125')});},{'priority':_0x4dbd('0xa6')}),this[_0x4dbd('0x13d')](_0x431f79,'discard',()=>{this[_0x4dbd('0x13e')](_0x289073,{'state':_0x4dbd('0xd4')});},{'priority':_0x4dbd('0xa6')}),this['_suggestions']['set'](_0x289073,_0x431f79),this[_0x4dbd('0x107')]['set'](_0x431f79,_0x4dbd('0x16')),_0x431f79;}['_splitMarkerName'](_0x43945d){const _0x10ab9e=_0x43945d[_0x4dbd('0x1b')](':');return{'group':_0x10ab9e[0x0],'type':_0x10ab9e[0x1],'subType':_0x10ab9e[_0x4dbd('0x65')]>=0x5?_0x10ab9e[0x2]:null,'id':_0x10ab9e[_0x4dbd('0x65')]<0x5?_0x10ab9e[0x2]:_0x10ab9e[0x3],'authorId':_0x10ab9e[_0x4dbd('0x65')]<0x5?_0x10ab9e[0x3]:_0x10ab9e[0x4],'markerCount':0x6==_0x10ab9e[_0x4dbd('0x65')]?_0x10ab9e[0x5]:null};}['_breakSuggestionMarker'](_0x1e184c,_0x4d4bf4,_0x11cb3a){const _0x4e6c48=_0x1e184c[_0x4dbd('0x76')](),_0x552789=_0x4e6c48[_0x4dbd('0x128')],_0x35d3f1=_0x4e6c48[_0x4dbd('0x41')];this[_0x4dbd('0x26')](_0x1e184c,this[_0x4dbd('0x56')]['createRange'](_0x552789,_0x4d4bf4));const _0x1023c7=_0xe330c2(),_0x1a271e=_0x1e184c[_0x4dbd('0xb9')]['id'],_0xb08e2a=_0x1e184c[_0x4dbd('0xb2')]+(_0x1e184c['subType']?':'+_0x1e184c['subType']:'');this[_0x4dbd('0xb1')]({'id':_0x1023c7,'type':_0xb08e2a,'createdAt':new Date(),'authorId':_0x1a271e,'originalSuggestionId':_0x1e184c['id'],'attributes':_0x1e184c[_0x4dbd('0x6')],'data':_0x1e184c[_0x4dbd('0xf3')]}),'formatBlock'==_0x1e184c[_0x4dbd('0xb2')]&&(_0x11cb3a=this[_0x4dbd('0x56')][_0x4dbd('0xac')](_0x11cb3a[_0x4dbd('0x55')])),this[_0x4dbd('0xeb')](_0xb08e2a,_0x1023c7,_0x1a271e,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x11cb3a,_0x35d3f1));}['_findSuggestions'](_0x2908f3,_0x2d869b=null){const _0xef0f2b=[],_0x4618e6=this['_model'][_0x4dbd('0xa1')],_0x46c961=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0xc9'))['me'];for(const _0x4ca346 of this[_0x4dbd('0xee')]())if(_0x4ca346[_0x4dbd('0x43')]&&(!_0x2d869b||_0x4ca346[_0x4dbd('0xb2')]==_0x2d869b))for(const _0xffa541 of _0x4ca346[_0x4dbd('0xe7')]()){const _0x4a8626=_0x2908f3[_0x4dbd('0x128')][_0x4dbd('0x48')](_0xffa541[_0x4dbd('0x41')])||_0x2908f3[_0x4dbd('0x41')]['isEqual'](_0xffa541[_0x4dbd('0x128')]);if(_0x4a8626||_0x2908f3[_0x4dbd('0xfd')](_0xffa541)){const _0x14e628=_0x2908f3['containsRange'](_0xffa541)&&Bt(_0x4618e6,_0xffa541[_0x4dbd('0x128')],_0x2908f3),_0x3446e0=_0xffa541[_0x4dbd('0x72')](_0x2908f3)&&Bt(_0x4618e6,_0x2908f3['start'],_0xffa541);_0xef0f2b[_0x4dbd('0x6f')]({'suggestion':_0x4ca346,'meta':{'isOwn':_0x46c961==_0x4ca346[_0x4dbd('0x12c')],'isNextTo':_0x4a8626,'isInsideObject':_0x14e628,'containsRangeInObject':_0x3446e0}});break;}}return _0xef0f2b;}[_0x4dbd('0xeb')](_0x3299a4,_0x44c227,_0x1f99a3,_0x2e4c83,_0x323353){this['_model']['change'](_0x9b2cf7=>{let _0x3f4b87='suggestion:'+_0x3299a4+':'+_0x44c227+':'+_0x1f99a3;_0x323353&&(_0x3f4b87=_0x3f4b87+':'+_0x323353),_0x9b2cf7[_0x4dbd('0xcb')](_0x3f4b87,{'range':_0x2e4c83,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x292886){const _0x59140f=_0x292886[_0x4dbd('0xd9')],_0x26c6cc=_0x292886[_0x4dbd('0x13a')];_0x292886[_0x4dbd('0xd9')]=null,null!=_0x59140f&&(_0x59140f[_0x4dbd('0x13a')]=null),_0x292886[_0x4dbd('0x13a')]=null,null!=_0x26c6cc&&(_0x26c6cc[_0x4dbd('0xd9')]=null),_0x4dbd('0xf0')==this[_0x4dbd('0x107')][_0x4dbd('0x62')](_0x292886)&&(this[_0x4dbd('0x107')][_0x4dbd('0x7c')](_0x292886,_0x4dbd('0x136')),this[_0x4dbd('0x79')](_0x4dbd('0x7e'),_0x292886,_0x59140f,_0x26c6cc));}[_0x4dbd('0xb1')](_0x37eef2){const _0x1e23b6=_0x37eef2['id'],_0x4a3df7=this['addSuggestionData'](_0x37eef2);if(this[_0x4dbd('0x141')]&&this[_0x4dbd('0x141')][_0x4dbd('0x7f')]){const _0x3ffe07=this[_0x4dbd('0xd8')][_0x4dbd('0x6d')][_0x4dbd('0x62')](_0x4dbd('0x5b')),_0x4d394c=_0x4a3df7[_0x4dbd('0xd5')],_0x1ccdae=_0x4a3df7[_0x4dbd('0x112')]?_0x4a3df7['type']+':'+_0x4a3df7[_0x4dbd('0x112')]:_0x4a3df7[_0x4dbd('0xb2')],_0x30dbec=this[_0x4dbd('0xd8')][_0x4dbd('0xd6')],_0x3eca8d=_0x3ffe07['add'](_0x450d15(_0x30dbec,_0x4dbd('0x5c'))),_0x4035bd={'id':_0x1e23b6,'type':_0x1ccdae,'hasComments':_0x4d394c,'data':_0x37eef2[_0x4dbd('0xf3')]||null,'originalSuggestionId':_0x37eef2[_0x4dbd('0x61')]||null,'attributes':_0x4a3df7[_0x4dbd('0x6')]};this[_0x4dbd('0x141')][_0x4dbd('0x7f')](_0x4035bd)[_0x4dbd('0x13f')](_0x2ca33f=>{_0x4a3df7[_0x4dbd('0x13c')]=!0x0,_0x3ffe07[_0x4dbd('0xe2')](_0x3eca8d),_0x2ca33f&&_0x2ca33f[_0x4dbd('0x113')]&&(this[_0x4dbd('0x89')][_0x4dbd('0x62')](_0x1e23b6)[_0x4dbd('0x113')]=_0x2ca33f[_0x4dbd('0x113')]);})[_0x4dbd('0xfa')](_0x4ae93e=>{throw _0x5825ef(_0x4dbd('0xe9')),this[_0x4dbd('0xd8')][_0x4dbd('0xed')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x4a3df7[_0x4dbd('0x124')]();}),_0x4a3df7[_0x4dbd('0x24')](),this[_0x4dbd('0x89')]['delete'](_0x4a3df7['id']),this['_suggestionState']['delete'](_0x4a3df7),_0x4ae93e;});}return _0x4a3df7;}[_0x4dbd('0x13e')](_0x34de0a,_0x441054){const _0x4e9435=this['editor'][_0x4dbd('0x6d')][_0x4dbd('0x62')]('PendingActions'),_0x130a6f=this[_0x4dbd('0x2a')](_0x34de0a);if(this[_0x4dbd('0x141')]&&this[_0x4dbd('0x141')][_0x4dbd('0x27')]){if(_0x130a6f[_0x4dbd('0x13c')]){const _0x48d79c=_0x4e9435[_0x4dbd('0x9b')](_0x450d15(this[_0x4dbd('0xd8')]['locale'],_0x4dbd('0x5c')));this['_adapter'][_0x4dbd('0x27')](_0x34de0a,_0x441054)[_0x4dbd('0x13f')](()=>{_0x4e9435[_0x4dbd('0xe2')](_0x48d79c);});}else _0x130a6f['on']('change:_saved',()=>{this[_0x4dbd('0x13e')](_0x34de0a,_0x441054);});}}[_0x4dbd('0xc4')](_0x533ca5){if(!this[_0x4dbd('0x141')]||!this[_0x4dbd('0x141')][_0x4dbd('0x2a')])throw new _0x535074(_0x4dbd('0x12a'),this);return this[_0x4dbd('0x141')][_0x4dbd('0x2a')](_0x533ca5);}[_0x4dbd('0x11c')](_0x2c7f66){const {id:_0xd1f36d,type:_0x164821,subType:_0x4aadfd,authorId:_0x434b9d}=this[_0x4dbd('0xa')](_0x2c7f66),_0xc9f18a=this[_0x4dbd('0x89')]['get'](_0xd1f36d)||this['_createSuggestion'](_0x164821,_0x4aadfd,_0xd1f36d,_0x434b9d,{});switch(this[_0x4dbd('0x2e')](_0xc9f18a,_0x164821,_0x4aadfd,_0x434b9d),this[_0x4dbd('0x107')][_0x4dbd('0x62')](_0xc9f18a)){case _0x4dbd('0x16'):this[_0x4dbd('0xc4')](_0xd1f36d)[_0x4dbd('0x13f')](_0xefd57a=>{let _0x1da107=Promise[_0x4dbd('0xf6')]();_0xefd57a['hasComments']&&(_0x1da107=this['_commentsRepository'][_0x4dbd('0x87')]({'channelId':this['editor']['config'][_0x4dbd('0x62')]('collaboration.channelId'),'threadId':_0xd1f36d})),_0x1da107['then'](()=>{this['addSuggestionData'](_0xefd57a)[_0x4dbd('0x13c')]=!0x0;});}),this[_0x4dbd('0x107')]['set'](_0xc9f18a,_0x4dbd('0xbd'));break;case _0x4dbd('0x136'):this[_0x4dbd('0x13e')](_0xd1f36d,{'state':'open'});case'dataReady':this[_0x4dbd('0x107')][_0x4dbd('0x7c')](_0xc9f18a,_0x4dbd('0xf0')),this[_0x4dbd('0x79')]('suggestionLoaded',_0xc9f18a);break;case _0x4dbd('0xf0'):this[_0x4dbd('0x79')]('suggestionChanged',_0xc9f18a);}return _0xc9f18a[_0x4dbd('0xfc')](_0x2c7f66),_0xc9f18a;}[_0x4dbd('0xca')](_0x103160){const _0x2118e1=Array[_0x4dbd('0x9e')](_0x103160)[_0x4dbd('0x4c')](_0x385a19=>!_0x385a19['isMultiRange']),_0x26c3d0=this[_0x4dbd('0xee')]({'skipNotAttached':!0x0})[_0x4dbd('0x4c')](_0x3fbd4e=>!_0x3fbd4e[_0x4dbd('0xb7')]),_0x1baf67=_0x26c3d0['filter'](_0x2707db=>!_0x103160[_0x4dbd('0x9a')](_0x2707db)),_0x5435af=new Map(_0x26c3d0[_0x4dbd('0x2c')](_0x13ffeb=>[_0x13ffeb,this['_suggestionFactory'][_0x4dbd('0x119')](_0x13ffeb['type'],_0x13ffeb[_0x4dbd('0x112')],_0x4dbd('0xc0'))])),_0x238bc9=new Map(_0x26c3d0[_0x4dbd('0x2c')](_0x1c7336=>[_0x1c7336,_0x1c7336[_0x4dbd('0x76')]()])),_0x2b8666=new Set(),_0x3124f7=new Set();for(let _0x359fc6=0x0;_0x359fc6<_0x2118e1[_0x4dbd('0x65')];_0x359fc6++)_0x3c7b2f(_0x2118e1[_0x359fc6],_0x2118e1,_0x359fc6+0x1);for(let _0x8bcf41=0x0;_0x8bcf41<_0x2118e1[_0x4dbd('0x65')];_0x8bcf41++)_0x3c7b2f(_0x2118e1[_0x8bcf41],_0x1baf67,0x0);for(let _0x257170=0x0;_0x257170<_0x2118e1[_0x4dbd('0x65')];_0x257170++){const _0x3323f8=_0x2118e1[_0x257170];!_0x3124f7[_0x4dbd('0x9a')](_0x3323f8)&&_0x3323f8[_0x4dbd('0xd9')]&&(_0x3323f8[_0x4dbd('0xd9')][_0x4dbd('0x13a')]===_0x3323f8&&(_0x3323f8[_0x4dbd('0xd9')][_0x4dbd('0x13a')]=null),_0x3323f8[_0x4dbd('0xd9')]=null),!_0x2b8666[_0x4dbd('0x9a')](_0x3323f8)&&_0x3323f8[_0x4dbd('0x13a')]&&(_0x3323f8[_0x4dbd('0x13a')][_0x4dbd('0xd9')]===_0x3323f8&&(_0x3323f8[_0x4dbd('0x13a')]['previous']=null),_0x3323f8[_0x4dbd('0x13a')]=null);}function _0x3c7b2f(_0x3f5891,_0xa921c9,_0x146ebd){for(let _0x59a6ad=_0x146ebd;_0x59a6ad<_0xa921c9[_0x4dbd('0x65')];_0x59a6ad++){const _0x219691=_0x23d4ab(_0x3f5891,_0xa921c9[_0x59a6ad]);_0x219691&&(_0x219691[0x0][_0x4dbd('0x13a')]=_0x219691[0x1],_0x219691[0x1]['previous']=_0x219691[0x0],_0x2b8666[_0x4dbd('0x9b')](_0x219691[0x0]),_0x3124f7[_0x4dbd('0x9b')](_0x219691[0x1]));}}function _0x23d4ab(_0x399b80,_0x186781){if(_0x399b80[_0x4dbd('0x12c')]['id']!==_0x186781[_0x4dbd('0x12c')]['id'])return null;const _0x3c1139=_0x5435af[_0x4dbd('0x62')](_0x399b80)(_0x399b80,_0x186781,_0x238bc9[_0x4dbd('0x62')](_0x399b80),_0x238bc9[_0x4dbd('0x62')](_0x186781));if(!_0x3c1139)return null;return _0x5435af[_0x4dbd('0x62')](_0x186781)(_0x399b80,_0x186781,_0x238bc9[_0x4dbd('0x62')](_0x399b80),_0x238bc9[_0x4dbd('0x62')](_0x186781))?_0x3c1139[0x1][_0x4dbd('0x35')]&&_0x3c1139[0x1][_0x4dbd('0x35')][_0x4dbd('0x65')]?null:_0x3c1139:null;}}[_0x4dbd('0x8')](_0x4f7fa5){const _0x8c2aff=Array[_0x4dbd('0x9e')](_0x4f7fa5),_0x42d799=this['getSuggestions']({'skipNotAttached':!0x0}),_0x11f6c3=_0x42d799[_0x4dbd('0x4c')](_0xc984c5=>!_0x4f7fa5[_0x4dbd('0x9a')](_0xc984c5)),_0x6bf767=new Map(_0x8c2aff[_0x4dbd('0x2c')](_0x5b1763=>[_0x5b1763,this['_suggestionFactory'][_0x4dbd('0x119')](_0x5b1763[_0x4dbd('0xb2')],_0x5b1763[_0x4dbd('0x112')],'join')])),_0x4e330c=new Map(_0x42d799['map'](_0xa96b4f=>[_0xa96b4f,_0xa96b4f[_0x4dbd('0xe7')]()]));for(let _0x249e18=0x0;_0x249e18<_0x8c2aff[_0x4dbd('0x65')];_0x249e18++){if(_0x5a39d1(this,_0x8c2aff[_0x249e18],_0x8c2aff,_0x249e18+0x1))return!0x0;}for(let _0x26d673=0x0;_0x26d673<_0x8c2aff[_0x4dbd('0x65')];_0x26d673++){if(_0x5a39d1(this,_0x8c2aff[_0x26d673],_0x11f6c3,0x0))return!0x0;}return!0x1;function _0x5a39d1(_0x302d2c,_0x45f831,_0x279e1c,_0x3dce0e){for(let _0x4b9360=_0x3dce0e;_0x4b9360<_0x279e1c[_0x4dbd('0x65')];_0x4b9360++){const _0x1adc7e=_0x279e1c[_0x4b9360];if(_0x1adc7e[_0x4dbd('0xb2')]!==_0x45f831['type']||_0x1adc7e[_0x4dbd('0x12c')]['id']!==_0x45f831[_0x4dbd('0x12c')]['id']||_0x1adc7e['subType']!==_0x45f831['subType'])continue;const _0x412c63=_0x6bf767[_0x4dbd('0x62')](_0x45f831),_0x181978=_0x4e330c[_0x4dbd('0x62')](_0x45f831),_0x4017a6=_0x4e330c[_0x4dbd('0x62')](_0x1adc7e),_0x4c1c5a=_0x45f831[_0x4dbd('0x35')]&&_0x45f831['commentThread'][_0x4dbd('0x65')],_0x9abe48=_0x1adc7e[_0x4dbd('0x35')]&&_0x1adc7e['commentThread'][_0x4dbd('0x65')];if(!_0x4c1c5a&&_0x412c63(_0x4017a6,_0x181978))return _0x302d2c['_joinSuggestions'](_0x1adc7e,_0x45f831),_0x4e330c[_0x4dbd('0x44')](_0x45f831),!0x0;if(!_0x9abe48&&_0x412c63(_0x181978,_0x4017a6))return _0x302d2c[_0x4dbd('0x6c')](_0x45f831,_0x1adc7e),_0x4e330c[_0x4dbd('0x44')](_0x1adc7e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1591c1,_0x17558d){if(_0x1591c1[_0x4dbd('0xb7')])for(const _0x2b6c71 of _0x17558d[_0x4dbd('0xe7')]())_0x1591c1['addRange'](_0x2b6c71);else{const _0x225b38=_0x17558d[_0x4dbd('0x76')]()['end'];this[_0x4dbd('0x26')](_0x1591c1,this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x1591c1['getFirstRange']()[_0x4dbd('0x128')],_0x225b38));}_0x17558d[_0x4dbd('0x0')]();}}class Dt{constructor(_0x22f2c4){this['_editor']=_0x22f2c4,this['_model']=_0x22f2c4[_0x4dbd('0xed')],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x803c63,_0x4b4938,_0x276d53,_0x576429,_0x388d1e,_0x5b50a3){return new _0x434182(this[_0x4dbd('0x56')],{'type':_0x803c63,'subType':_0x4b4938,'id':_0x276d53,'author':_0x576429,'creator':_0x576429,'attributes':_0x388d1e,'onAttributesChange':_0x5b50a3,'onAccept':(..._0x102c4e)=>this[_0x4dbd('0x119')](_0x803c63,_0x4b4938,_0x4dbd('0x20'))(..._0x102c4e),'onDiscard':(..._0x3f3069)=>this[_0x4dbd('0x119')](_0x803c63,_0x4b4938,_0x4dbd('0x124'))(..._0x3f3069)});}['registerCustomCallback'](_0x5cb783,_0x1f44b2,_0xf10204,_0x15e0fa){const _0x1e59f9=_0x5cb783+':'+_0x1f44b2+':'+_0xf10204;this['_customCallbacks'][_0x4dbd('0x7c')](_0x1e59f9,_0x15e0fa);}[_0x4dbd('0x119')](_0x3f22b7,_0x79da08,_0x3112cf){const _0x507049=_0x3f22b7+':'+_0x79da08+':'+_0x3112cf;return this[_0x4dbd('0x47')][_0x4dbd('0x62')](_0x507049)||this['_defaultCallbacks']['get'](_0x3f22b7+':'+_0x3112cf);}[_0x4dbd('0x126')](){const _0x57847c=()=>{},_0x1d5bde=_0x3f5787=>{_0x3f5787[_0x4dbd('0x8d')]((_0x140af7,_0x558e19)=>_0x140af7[_0x4dbd('0x128')]['isBefore'](_0x558e19['start'])?0x1:-0x1),this[_0x4dbd('0x56')][_0x4dbd('0xf5')](_0x52a2bf=>{for(const _0x35bc83 of _0x3f5787){let _0x55ade1;_0x55ade1=_0x35bc83[_0x4dbd('0x41')][_0x4dbd('0x42')]&&_0x35bc83[_0x4dbd('0x41')]['parent']==_0x35bc83['start']['nodeAfter']?_0x52a2bf[_0x4dbd('0x10e')](_0x35bc83['start']['nodeAfter'],'on'):_0x52a2bf[_0x4dbd('0x10e')](_0x35bc83),this[_0x4dbd('0x56')]['deleteContent'](_0x55ade1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1c8145=(_0x306264,_0x511f52)=>{this[_0x4dbd('0x56')][_0x4dbd('0xf5')](_0x15fab9=>{const {commandName:_0x104eed,commandParams:_0x24cc1a=[]}=_0x511f52,_0x239730=_0x306264[_0x4dbd('0x2c')](_0x5b3b30=>(_t(_0x5b3b30)&&(_0x5b3b30=this[_0x4dbd('0x56')][_0x4dbd('0x81')](_0x5b3b30[_0x4dbd('0x41')])),_0x5b3b30))[_0x4dbd('0x4c')](_0x4e8186=>_0x4dbd('0xd')!==_0x4e8186[_0x4dbd('0xbb')]['rootName']);if(_0x239730[_0x4dbd('0x65')]<0x1)return;const _0x2afcc7=Array['from'](this['_model'][_0x4dbd('0xcc')][_0x4dbd('0x21')][_0x4dbd('0xe7')]())['map'](_0x2c4145=>_0x1e9257[_0x4dbd('0x32')](_0x2c4145));_0x15fab9[_0x4dbd('0x54')](_0x239730);for(const _0x3bfed6 of this[_0x4dbd('0x82')][_0x4dbd('0xc')][_0x4dbd('0xc')]())_0x3bfed6[_0x4dbd('0x104')]();_0x24cc1a[_0x4dbd('0x6f')]({'forceDefaultExecution':!0x0}),this[_0x4dbd('0x82')][_0x4dbd('0x2b')](_0x104eed,..._0x24cc1a);const _0x1c2de9=_0x2afcc7[_0x4dbd('0x4c')](_0x1b43fe=>'$graveyard'!=_0x1b43fe['root'][_0x4dbd('0x5f')]);_0x1c2de9['length']>0x0&&_0x15fab9[_0x4dbd('0x54')](_0x1c2de9);for(const _0x4d7399 of _0x2afcc7)_0x4d7399[_0x4dbd('0xb3')]();});},_0x4cfa22=(_0x29afa5,_0x2d4079)=>0x1==_0x29afa5[_0x4dbd('0x65')]&&0x1==_0x2d4079['length']&&_0x29afa5[0x0][_0x4dbd('0x41')][_0x4dbd('0x48')](_0x2d4079[0x0]['start']),_0x4991f6=(_0x57bf5a,_0x34395e,_0x16706a,_0x1e2735)=>xt(_0x57bf5a,_0x34395e,_0x16706a,_0x1e2735,this[_0x4dbd('0x56')])?[_0x57bf5a,_0x34395e]:xt(_0x34395e,_0x57bf5a,_0x1e2735,_0x16706a,this[_0x4dbd('0x56')])?[_0x34395e,_0x57bf5a]:null;this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0xdc'),_0x57847c),this['_defaultCallbacks']['set'](_0x4dbd('0xc2'),_0x1d5bde),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')]('insertion:join',_0x4cfa22),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0x91'),_0x4991f6),this[_0x4dbd('0xbe')]['set']('deletion:accept',_0x1d5bde),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0x13'),_0x57847c),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0xdf'),_0x4cfa22),this['_defaultCallbacks'][_0x4dbd('0x7c')](_0x4dbd('0x60'),_0x4991f6),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0x10f'),_0x1c8145),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0xae'),_0x57847c),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')]('formatInline:join',_0x4cfa22),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')]('formatInline:chain',_0x57847c),this['_defaultCallbacks'][_0x4dbd('0x7c')](_0x4dbd('0x8f'),_0x1c8145),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0x138'),_0x57847c),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')]('formatBlock:join',_0x4cfa22),this[_0x4dbd('0xbe')][_0x4dbd('0x7c')](_0x4dbd('0x97'),_0x57847c);}}function Bt(_0x177cfa,_0xd1fcc,_0x2501b3){for(const _0xd2b423 of _0xd1fcc[_0x4dbd('0x55')][_0x4dbd('0x134')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd2b423[_0x4dbd('0xbb')]==_0xd2b423)return!0x1;if(!_0x2501b3[_0x4dbd('0xbc')](_0xd2b423))return!0x1;if(_0x177cfa['isObject'](_0xd2b423)||_0x177cfa[_0x4dbd('0x22')](_0xd2b423))return!0x0;}return!0x1;}function _t(_0x1f254a){return _0x1f254a[_0x4dbd('0x41')][_0x4dbd('0x55')]==_0x1f254a['start'][_0x4dbd('0x3b')]&&_0x1f254a['end']['isAtStart'];}function Mt(_0xf11f45,_0x25fa21,_0x54bb49,_0x1d00f8){const _0x4da5d2=_0x5a3da3=>!_0x5a3da3['item']['is'](_0x4dbd('0xaa'))&&!_0x1d00f8[_0x4dbd('0x33')](_0x5a3da3['item']),_0x128388=_0xf11f45[_0x4dbd('0x128')][_0x4dbd('0xb4')](_0x4da5d2),_0x1b3bf8=_0xf11f45['end']['getLastMatchingPosition'](_0x4da5d2,{'direction':_0x4dbd('0x49')});return(!_0xf11f45['start'][_0x4dbd('0x48')](_0x128388)||!_0xf11f45[_0x4dbd('0x41')][_0x4dbd('0x48')](_0x1b3bf8))&&(_0x128388[_0x4dbd('0xa8')](_0x1b3bf8)?_0x54bb49['updateMarker'](_0x25fa21,{'range':_0x54bb49[_0x4dbd('0x81')](_0x128388,_0x1b3bf8)}):_0x54bb49['removeMarker'](_0x25fa21),!0x0);}function $t(_0x59b59a){return _0x3d9f6e(_0x59b59a);}function Nt(_0x1fe0ee){const _0x401eb1=_0x1fe0ee[_0x4dbd('0x128')]['nodeAfter'];return _0x401eb1&&_0x401eb1['is'](_0x4dbd('0x73'));}function Rt(_0x39afaa,_0x51ad3c){const _0x436880=_0x51ad3c[_0x4dbd('0xa1')][_0x4dbd('0x33')](_0x39afaa)||_0x51ad3c[_0x4dbd('0xa1')][_0x4dbd('0x106')](_0x39afaa);return _0x51ad3c[_0x4dbd('0x81')](_0x51ad3c[_0x4dbd('0xa9')](_0x39afaa,'before'),_0x436880?_0x51ad3c[_0x4dbd('0x57')](_0x39afaa):_0x51ad3c['createPositionAt'](_0x39afaa,_0x4dbd('0x41')));}function xt(_0x5f1030,_0x3341b8,_0x22b71,_0x4b4b65,_0x47217b){if(_0x22b71[_0x4dbd('0x41')]['isEqual'](_0x4b4b65[_0x4dbd('0x128')]))return!0x0;if(_0x5f1030['type']!=_0x3341b8[_0x4dbd('0xb2')])return!0x1;if(!_0x22b71[_0x4dbd('0x41')][_0x4dbd('0xef')](_0x4b4b65[_0x4dbd('0x128')]))return!0x1;const _0x28b638=_0x47217b[_0x4dbd('0x81')](_0x22b71[_0x4dbd('0x41')],_0x4b4b65[_0x4dbd('0x128')])[_0x4dbd('0x7')]();for(const _0x16a30d of _0x28b638)if([_0x4dbd('0x117'),_0x4dbd('0x2d')]['includes'](_0x16a30d[_0x4dbd('0xb2')])&&_0x47217b['schema'][_0x4dbd('0x22')](_0x16a30d[_0x4dbd('0x9d')]))return!0x1;return!0x0;}
23
+ const _0x6515=['formatGroupId','isInsideObject','@external','formatBlock','TrackChangesEditing','updateMarker','oldRange','ck-suggestion-marker--active','containsPosition','after','error-saving-suggestion-data-suggestion-discarded','formatInline','getRanges','showSuggestionHighlights','isBlock','some','data-suggestion','differ','mapper','howMany','addUser','PendingActions','nodeBefore','has','normal','getNearestSelectionRange','editor','lowest','_trackFormatChanges','createRange','_isForcedDefaultExecutionBlock','deleteContent','toViewElement','_handleNewSuggestionMarker','fromCharCode','_registerDefaultCallbacks','newRange','bindElementToMarker','insertion:join','isAtEnd','change:data','isOwn','discardAllSuggestions','deletion','isInContent','ck-suggestion-marker-','getChangedMarkers','getFirstRange','isRemovable','size','moveTargetPosition','removeAttribute','schema','set','markerName','includes','containsRangeInObject','trackChanges','_refreshSuggestionsChain','isEqual','split','config','setSelection','discardSuggestion','skipNestingCheck','formatBlock:chain','_customCallbacks','containsRange','splitPosition','addComment','consume','Users','createSelection','suggestion','stop','position','add','_addSuggestionMarker','map','buildSuggestion','get','formatBlock:accept','consumable','_suggestions','detach','enableCommand','discardSelectedSuggestions','removeComment','multipleBlocks','getIntersection','updateSuggestion','suggestionChanged','getShiftedBy','widget','value','formatInline:chain','markerToData','requires','sort','formatBlock:join','remove','define','_commentsRepository','markDeletion','isBefore','isCollapsed','createPositionAfter','getUser','editingDowncast','$textProxy','_updateSuggestionData','getAllAdjacentSuggestions','resolve','getSuggestions','getLastMatchingPosition','forward','values','then','formatInline:','dataReady','removeClass','commands','markerToHighlight','containerElement','_editor','catch','track-changes-adapter-missing-getsuggestion','activeMarkers','registerPostFixer','markerReady','isIntersectingWithRange','before','never','_cutOutSuggestionMarker','$graveyard','hasCommentThread','_breakSuggestionMarker','suggestion:','suggestion-type','_onDiscard','isDocumentOperation','markMultiRangeDeletion','commandName','clear','type','createRangeIn','_setSuggestionRange','low','stopListening','_suggestionState','enableReadOnlyMode','_checkSuggestionCorrectness','model','external:','getSuggestionCallback','createPositionAt','refresh','locale','insertion:accept','elementEnd','rootName','getMultiRangeId','addMarker:suggestion:formatBlock','marker-count','item','track-changes-suggestion-data-mismatch','accept','conversion','execute','isTouching','_getExternalAuthor','splice','upcast','data','isLimit','join','dataToMarker','filter','_rangeIsInLocalUserInsertion','rethrowUnexpectedError','_enabledCommands','track-changes-suggestion-not-found','ck-suggestion-marker','always','track-changes-user-not-found','change','isSelectable','removeMarkers','attributes','isAfter','_getAuthorFromId','every','end','getMarkers','return','change:activeMarkers','_defaultCallbacks','track-changes-command-not-found','deletion:','markInsertion','fromRange','init','addRange','open','setAttribute','createPositionBefore','_createSuggestion','getCommentThread','isUndo','addMarker','authoredAt','elementToElement','adapter','getChanges','clone','trackChanges.trackFormatChanges','pluginName','element','reconvertMarker','next','length','notReady','isLocal','forceDefaultExecution','getCustomProperty','acceptSelectedSuggestions','_joinWithAdjacentSuggestions','deletion:chain','getDifference','commentThread','trackChanges.mergeNestedSuggestions','acceptAllSuggestions','ck-suggestion-marker-formatBlock','registerCustomCallback','removeMarker','removed','formatInline:join','author','acceptSuggestion','ready','setTo','unbindElementFromMarkerName','_joinSuggestions','root','plugins','getSuggestion','subType','document','_findSuggestions','suggestionUnloaded','insertion','unbind','previous','isNextTo','_model','_saved','_addThreadToSuggestion','addHighlight','_splitMarkerName','addSuggestion','head','range','isObject','createElement','markMultiRangeBlockFormat','hasComments','toJSON','track-changes-adapter-already-set','insertion:','name','suggestionLoaded','isMultiRange','trackChangesCommand','discard','parent','selection','for','PENDING_ACTION_SUGGESTION','delete','insertContent','fire','_setSuggestionData','_suggestionFactory','addMarkerName','insert','createdAt','getFirstMarker','hasSuggestion','multi','from','push','getAttribute','high','markBlockFormat','highest','accepted','addClass','start','_removeSuggestion','deletion:discard','addCommentThread','getItems','CommentsRepository','nodeAfter','chain','formatBlock:','elementStart','addSuggestionData','markers','_mergeNestedSuggestions','options','writer','dataDowncast','_adapter','creator'];(function(_0x450f57,_0xf64606){const _0x65ee97=function(_0x1fb8ca){while(--_0x1fb8ca){_0x450f57['push'](_0x450f57['shift']());}};_0x65ee97(++_0xf64606);}(_0x6515,0x186));const _0xf646=function(_0x450f57,_0xf64606){_0x450f57=_0x450f57-0x0;let _0x65ee97=_0x6515[_0x450f57];return _0x65ee97;};import{Plugin as _0x1c7aff,PendingActions as _0x477595}from'ckeditor5/src/core';import{LiveRange as _0x439dfc}from'ckeditor5/src/engine';import{CKEditorError as _0x12141c,uid as _0x1111ee,priorities as _0x3d5ed7,logWarning as _0x1ff280}from'ckeditor5/src/utils';import{toWidget as _0x2926f9}from'ckeditor5/src/widget';import{Users as _0xf274a0,hashObject as _0x160990}from'ckeditor5-collaboration/src/collaboration-core';import _0x5f5603 from'./commands/trackchangescommand';import _0x306eff from'./commands/acceptsuggestioncommand';import _0x36aad6 from'./commands/discardsuggestioncommand';import _0x4f9b2a from'./commands/executeonallsuggestionscommand';import _0x209006 from'./commands/executeonselectedsuggestionscommand';import _0x2ac3b5 from'./suggestion';import _0x3ba007 from'./suggestiondescriptionfactory';import _0x13c786 from'./integrations/alignment';import _0xaabcf2 from'./integrations/basicstyles';import _0x3391ea from'./integrations/blockquote';import _0x5cb23d from'./integrations/ckbox';import _0x5ae234 from'./integrations/codeblock';import _0x342a5d from'./integrations/comments';import _0x365f4d from'./integrations/deletecommand';import _0x27e5a2 from'./integrations/documentlist';import _0x2b7bcb from'./integrations/entercommand';import _0x3aa45d from'./integrations/findandreplace';import _0x3560d3 from'./integrations/font';import _0x3e76d7 from'./integrations/formatpainter';import _0x4e52fe from'./integrations/heading';import _0x440ce8 from'./integrations/highlight';import _0x410144 from'./integrations/horizontalline';import _0x278480 from'./integrations/htmlembed';import _0x48bccb from'./integrations/image';import _0x398cf1 from'./integrations/imagereplace';import _0x540e5e from'./integrations/importword';import _0x3c8dca from'./integrations/indent';import _0x2842c8 from'./integrations/inputcommand';import _0x3057e from'./integrations/link';import _0xa51a81 from'./integrations/list';import _0x6bcb6e from'./integrations/listproperties';import _0x336b6b from'./integrations/mediaembed';import _0x5db0c6 from'./integrations/mention';import _0xa55ad4 from'./integrations/pagebreak';import _0x1c2b6c from'./integrations/paragraph';import _0x3824a2 from'./integrations/removeformat';import _0x3e6985 from'./integrations/restrictededitingmode';import _0x4b1c6b from'./integrations/shiftentercommand';import _0x2c4a4e from'./integrations/standardeditingmode';import _0x180ac0 from'./integrations/style';import _0x1141c0 from'./integrations/table';import _0x9df528 from'./integrations/tablemergesplit';import _0x441bdc from'./integrations/tableheadings';import _0x516120 from'./integrations/tableclipboard';import _0x586ef2 from'./integrations/tablecolumnresize';import _0x3a6943 from'./integrations/template';import _0x30f302 from'./integrations/tableofcontents';import _0x352d9c from'./integrations/title';import _0x2f96f9 from'./integrations/undo';import{getTranslation as _0x1fb6d6}from'./utils/common-translations';import _0x1d4fb9 from'./integrations/tablecaption';import _0x1368cf from'./integrations/documentlistproperties';import _0x32ac16 from'./integrations/tableproperties';export default class p extends _0x1c7aff{static get[_0xf646('0x16')](){return[_0xf646('0xe3'),_0xf274a0,_0x477595,_0x13c786,_0xaabcf2,_0x3391ea,_0x5cb23d,_0x5ae234,_0x342a5d,_0x365f4d,_0x27e5a2,_0x1368cf,_0x2b7bcb,_0x3aa45d,_0x3560d3,_0x3e76d7,_0x4e52fe,_0x440ce8,_0x410144,_0x278480,_0x48bccb,_0x398cf1,_0x540e5e,_0x3c8dca,_0x2842c8,_0x3057e,_0xa51a81,_0x6bcb6e,_0x336b6b,_0x5db0c6,_0xa55ad4,_0x1c2b6c,_0x3824a2,_0x3e6985,_0x4b1c6b,_0x2c4a4e,_0x180ac0,_0x1141c0,_0x9df528,_0x441bdc,_0x1d4fb9,_0x516120,_0x586ef2,_0x30f302,_0x32ac16,_0x3a6943,_0x352d9c,_0x2f96f9];}static get[_0xf646('0x8d')](){return _0xf646('0xf4');}constructor(_0x2b85f9){function _0x292e24(_0x4112f1){return _0x4112f1[_0xf646('0x3')](_0x589aee=>String[_0xf646('0x112')](_0x589aee))[_0xf646('0x64')]('');}super(_0x2b85f9),this[_0xf646('0x125')](_0xf646('0x34'),[]),this['on'](_0xf646('0x78'),(_0x4f78aa,_0x4f50fe,_0x4f9f9d,_0x5899c4)=>{this[_0xf646('0xb3')][_0xf646('0x6e')](()=>{for(const _0x25c23c of[..._0x5899c4,..._0x4f9f9d])this[_0xf646('0xb3')]['markers'][_0xf646('0x107')](_0x25c23c)&&_0x2b85f9['editing'][_0xf646('0x8f')](_0x25c23c);});}),this['_descriptionFactory']=new _0x3ba007(this[_0xf646('0x10a')][_0xf646('0x4d')][_0xf646('0x124')],this[_0xf646('0x10a')][_0xf646('0x52')]),this[_0xf646('0xee')]=null,this[_0xf646('0xcf')]=new Dt(this[_0xf646('0x10a')]),this[_0xf646('0x8')]=new Map(),this['_commentsRepository']=_0x2b85f9[_0xf646('0xa9')][_0xf646('0x5')](_0xf646('0xe3')),this['_enabledCommands']=new Set(),this[_0xf646('0xb3')]=this[_0xf646('0x10a')][_0xf646('0x4d')],this['_suggestionState']=new WeakMap(),this[_0xf646('0x10e')]=!0x1,_0x2b85f9[_0xf646('0x12d')][_0xf646('0x1a')](_0xf646('0x8c'),'default'),this[_0xf646('0x10c')]=_0x2b85f9[_0xf646('0x12d')][_0xf646('0x5')]('trackChanges.trackFormatChanges'),_0x2b85f9['config'][_0xf646('0x1a')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2b85f9['config'][_0xf646('0x5')](_0xf646('0x9b')),this[_0xf646('0xc5')]=new _0x5f5603(_0x2b85f9,this[_0xf646('0x69')]),this[_0x292e24([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x292e24([0x34,0x30,0x34,0x36,0x31,0x34,0x34,0x36]);}[_0xf646('0x7e')](){const _0x2fbe46=this[_0xf646('0x10a')];_0x2fbe46['conversion'][_0xf646('0xc9')](_0xf646('0x21'))[_0xf646('0x2f')]({'model':_0xf646('0x139'),'view':_0x1c1e81=>{const {id:_0x527745,type:_0x363ffa}=this[_0xf646('0xb7')](_0x1c1e81[_0xf646('0x126')]),_0x473298=[_0xf646('0x6b'),_0xf646('0x11d')+_0x363ffa];let _0x380432=0xbb8;return this[_0xf646('0x34')][_0xf646('0x127')](_0x1c1e81[_0xf646('0x126')])&&(_0x473298[_0xf646('0xd7')]('ck-suggestion-marker--active'),_0x380432=0xbc2),_0xf646('0x11b')==_0x363ffa&&(_0x380432+=0x5),{'classes':_0x473298,'attributes':{'data-suggestion':_0x527745},'priority':_0x380432};}}),_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')](_0xf646('0xed'))[_0xf646('0x1')](_0x19d65c=>{_0x19d65c['on']('addMarker:suggestion',(_0x3d7cbc,_0x37c03c,_0x460adf)=>{if(!_0x460adf[_0xf646('0xeb')][_0xf646('0xfd')])return;const _0x17b7d3=_0x37c03c[_0xf646('0x59')];if(!_0x17b7d3)return;const _0x3cc579=_0x460adf[_0xf646('0x102')][_0xf646('0x110')](_0x17b7d3);_0x2fbe46[_0xf646('0x4d')][_0xf646('0x124')][_0xf646('0xbb')](_0x17b7d3)&&_0x3cc579&&!_0x3cc579[_0xf646('0x95')](_0xf646('0x12'))&&_0x3cc579['is'](_0xf646('0x30'))&&_0x2926f9(_0x3cc579,_0x460adf[_0xf646('0xec')]);},{'priority':_0xf646('0xd9')});}),_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')](_0xf646('0xed'))[_0xf646('0x2f')]({'model':_0xf646('0x139'),'view':(_0x1a2c6e,_0x41d332)=>{if(!_0x41d332[_0xf646('0xeb')]['showSuggestionHighlights'])return null;const {type:_0x528108}=this[_0xf646('0xb7')](_0x1a2c6e[_0xf646('0x126')]);return{'classes':['ck-suggestion-marker',_0xf646('0x11d')+_0x528108],'priority':0xbb8};}});const _0x59f60e=({showActiveMarkers:_0x29b1de=!0x0}={})=>(_0x2995b9,_0x2b997d,_0x1fb464)=>{if(!_0x2b997d[_0xf646('0x59')])return;if(_0x2b997d[_0xf646('0x59')]['is'](_0xf646('0xc8')))return void _0x1fb464[_0xf646('0x7')][_0xf646('0x136')](_0x2b997d[_0xf646('0x59')],_0x2995b9[_0xf646('0xc2')]);const _0x530e49=_0x1fb464[_0xf646('0x102')][_0xf646('0x110')](_0x2b997d['item']);if(!(_0x2b997d[_0xf646('0x59')]['is'](_0xf646('0x8e'))&&_0x2fbe46[_0xf646('0x4d')]['schema'][_0xf646('0xfe')](_0x2b997d['item'])&&!_0x530e49[_0xf646('0x95')](_0xf646('0xb6'))))return;const {id:_0x5e6f68}=this[_0xf646('0xb7')](_0x2b997d['markerName']);_0x1fb464[_0xf646('0xec')]['addClass']([_0xf646('0x6b'),_0xf646('0x9d')],_0x530e49),_0x1fb464[_0xf646('0xec')][_0xf646('0x81')]('data-suggestion',_0x5e6f68,_0x530e49),_0x1fb464[_0xf646('0x102')][_0xf646('0x115')](_0x530e49,_0x2b997d[_0xf646('0x126')]),_0x29b1de&&(this[_0xf646('0x34')]['includes'](_0x2b997d[_0xf646('0x126')])?_0x1fb464[_0xf646('0xec')][_0xf646('0xdd')](_0xf646('0xf7'),_0x530e49):_0x1fb464['writer'][_0xf646('0x2d')](_0xf646('0xf7'),_0x530e49));for(const _0xd22d84 of _0x2fbe46[_0xf646('0x4d')][_0xf646('0x46')](_0x2b997d['item'])[_0xf646('0xe2')]())_0x1fb464[_0xf646('0x7')][_0xf646('0x136')](_0xd22d84,_0x2995b9[_0xf646('0xc2')]);_0x1fb464[_0xf646('0x7')]['consume'](_0x2b997d['item'],_0x2995b9[_0xf646('0xc2')]);};_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')](_0xf646('0xed'))[_0xf646('0x1')](_0x18ddac=>{_0x18ddac['on'](_0xf646('0x57'),(_0x55dc72,_0x20734d,_0xfac23f)=>{_0xfac23f[_0xf646('0xeb')]['showSuggestionHighlights']&&_0x59f60e({'showActiveMarkers':!0x1})(_0x55dc72,_0x20734d,_0xfac23f);},{'priority':_0xf646('0xdb')});}),_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')]('dataDowncast')[_0xf646('0x15')]({'model':_0xf646('0x139'),'view':(_0x25e109,_0x401b0b)=>_0x401b0b['options'][_0xf646('0xfd')]?null:{'group':'suggestion','name':_0x25e109['substr'](0xb)}}),_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')](_0xf646('0x61'))[_0xf646('0x88')]({'view':{'name':_0xf646('0x139'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x896b7c,{writer:_0x203ac3})=>{let _0x185fa7='suggestion:'+_0x896b7c[_0xf646('0xd8')](_0xf646('0x3f'))+':'+_0x896b7c[_0xf646('0xd8')]('id');return _0x896b7c['getAttribute'](_0xf646('0x58'))&&(_0x185fa7+=':'+_0x896b7c[_0xf646('0xd8')](_0xf646('0x58'))),_0x203ac3[_0xf646('0xbc')]('$marker',{'data-name':_0x185fa7});}}),_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')](_0xf646('0x61'))[_0xf646('0x65')]({'view':'suggestion'}),_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')](_0xf646('0x21'))[_0xf646('0x1')](_0x1f4459=>{_0x1f4459['on']('addMarker:suggestion:formatBlock',_0x59f60e(),{'priority':_0xf646('0xd9')});}),_0x2fbe46[_0xf646('0x5c')][_0xf646('0xc9')](_0xf646('0x21'))[_0xf646('0x1')](_0x40b67d=>{_0x40b67d['on']('removeMarker:suggestion:formatBlock',(_0xd1fe6,_0x3e7625,_0x4375fd)=>{const _0x45b812=_0x4375fd[_0xf646('0x102')]['markerNameToElements'](_0x3e7625[_0xf646('0x126')]);if(_0x45b812)for(const _0x4038d8 of _0x45b812)_0x4038d8['getCustomProperty'](_0xf646('0xb6'))||(_0x4375fd[_0xf646('0xec')]['removeClass']([_0xf646('0x6b'),_0xf646('0x9d'),'ck-suggestion-marker--active'],_0x4038d8),_0x4375fd['writer'][_0xf646('0x123')](_0xf646('0x100'),_0x4038d8),_0x4375fd[_0xf646('0x102')][_0xf646('0xa6')](_0x4038d8,_0x3e7625[_0xf646('0x126')]));},{'priority':_0xf646('0xd9')});}),_0x2fbe46[_0xf646('0x4d')][_0xf646('0xac')][_0xf646('0x35')](_0x593789=>{let _0x35ff29=!0x1;const _0x6bbef5=Array['from'](_0x2fbe46[_0xf646('0x4d')]['document']['differ'][_0xf646('0x11e')]()),_0x1de381=new Set();for(const {name:_0x1e7267,data:_0x4290ef}of _0x6bbef5){const {group:_0x2339e4,type:_0x4bc2f8,id:_0x5ddb71}=this[_0xf646('0xb7')](_0x1e7267);if(_0xf646('0x139')!==_0x2339e4)continue;const _0x393633=this[_0xf646('0x8')][_0xf646('0x5')](_0x5ddb71);if(null!=_0x4290ef[_0xf646('0x114')]){_0xf646('0xfb')==_0x4bc2f8&&(_0x35ff29=_0x35ff29||Mt(_0x4290ef['newRange'],_0x1e7267,_0x593789,_0x2fbe46[_0xf646('0x4d')][_0xf646('0x124')]));if(_0x4290ef['newRange']['isCollapsed']||_0xf646('0x3b')==_0x4290ef['newRange'][_0xf646('0xa8')][_0xf646('0x55')]||_0xf646('0xf3')==_0x4bc2f8&&!Nt(_0x4290ef['newRange'])||_0xf646('0x11b')==_0x4bc2f8&&!(!_t(_0x416fb0=_0x4290ef['newRange'])&&!function(_0x3315a0){return _0x3315a0[_0xf646('0xde')][_0xf646('0xc7')]==_0x3315a0[_0xf646('0x75')][_0xf646('0x106')]&&_0x3315a0[_0xf646('0xde')]['isAtEnd'];}(_0x416fb0)))_0x593789[_0xf646('0x9f')](_0x1e7267),_0x35ff29=!0x0;else{if(!_0x393633||!_0x393633[_0xf646('0x11c')])continue;_0x1de381['add'](_0x393633);}}}var _0x416fb0;return _0x1de381[_0xf646('0x121')]>0x0&&(_0x35ff29=!!this[_0xf646('0x97')](_0x1de381)||_0x35ff29),_0x35ff29;}),_0x2fbe46[_0xf646('0x4d')][_0xf646('0xac')][_0xf646('0x35')](_0x481fd8=>{let _0x3b4979=!0x1;for(const _0x4c3b84 of _0x2fbe46[_0xf646('0x4d')][_0xf646('0xac')][_0xf646('0x101')][_0xf646('0x8a')]()){if('insert'!=_0x4c3b84[_0xf646('0x45')])continue;const _0x12bbe0=_0x4c3b84[_0xf646('0x0')][_0xf646('0x11')](_0x4c3b84[_0xf646('0x91')]);if(_0x12bbe0['isAtEnd'])for(const _0x463482 of this[_0xf646('0x8')][_0xf646('0x29')]()){if(_0x463482[_0xf646('0xc4')]||!_0x463482['isInContent'])continue;if(_0xf646('0xf3')!=_0x463482[_0xf646('0x45')])continue;const _0x133d48=_0x463482['getFirstRange']();if(_0x133d48[_0xf646('0xde')][_0xf646('0xc7')]!=_0x133d48['end'][_0xf646('0xc7')]&&_0x133d48[_0xf646('0x75')][_0xf646('0x12b')](_0x4c3b84[_0xf646('0x0')])){const _0xd046a5=_0x2fbe46[_0xf646('0x4d')][_0xf646('0x10d')](_0x133d48[_0xf646('0xde')],_0x12bbe0);_0x481fd8[_0xf646('0xf5')](_0x463482[_0xf646('0xd3')](),{'range':_0xd046a5}),_0x3b4979=!0x0;}}}return _0x3b4979;}),_0x2fbe46[_0xf646('0x4d')][_0xf646('0xe9')]['on']('update:suggestion',(_0x443bee,_0x3d8443,_0x26086a)=>{if(null==_0x26086a){const {id:_0x347157}=this[_0xf646('0xb7')](_0x3d8443['name']),_0x5f40a6=this[_0xf646('0x8')][_0xf646('0x5')](_0x347157);_0x5f40a6&&_0x5f40a6[_0xf646('0xd0')](_0x3d8443[_0xf646('0xc2')]);}}),_0x2fbe46[_0xf646('0x4d')][_0xf646('0xac')]['on'](_0xf646('0x118'),()=>{const _0x34713f=Array[_0xf646('0xd6')](_0x2fbe46[_0xf646('0x4d')][_0xf646('0xac')][_0xf646('0x101')]['getChangedMarkers']())[_0xf646('0x66')](_0x23ddae=>_0xf646('0x139')===this[_0xf646('0xb7')](_0x23ddae[_0xf646('0xc2')])['group']);if(0x0===_0x34713f[_0xf646('0x91')])return;_0x34713f[_0xf646('0x17')]((_0x32f9cc,_0x4a3951)=>{const _0x75cddb=_0x32f9cc[_0xf646('0x62')][_0xf646('0xf6')],_0x5903c6=_0x4a3951[_0xf646('0x62')][_0xf646('0xf6')];return null===_0x75cddb&&null===_0x5903c6?0x0:null===_0x75cddb&&null!==_0x5903c6?-0x1:null!==_0x75cddb&&null===_0x5903c6?0x1:_0x75cddb[_0xf646('0xde')][_0xf646('0x1d')](_0x5903c6['start'])?-0x1:0x1;});const _0x378c99=new Set(),_0x18e69c=new Set();for(const {name:_0x4be5fc,data:_0x37aa13}of _0x34713f){const {id:_0x4bf1c6}=this[_0xf646('0xb7')](_0x4be5fc);if(null===_0x37aa13[_0xf646('0xf6')]){const _0xa09fe2=this[_0xf646('0x111')](_0x4be5fc);_0x18e69c[_0xf646('0x1')](_0xa09fe2);}else{const _0x9f3960=this[_0xf646('0x8')][_0xf646('0x5')](_0x4bf1c6);null!==_0x37aa13['newRange']||_0x9f3960['isInContent']?(_0x378c99[_0xf646('0x1')](_0x9f3960[_0xf646('0xb9')]),_0x18e69c[_0xf646('0x1')](_0x9f3960)):this[_0xf646('0xdf')](_0x9f3960);}}_0x18e69c[_0xf646('0x121')]>0x0&&this[_0xf646('0x12a')](_0x18e69c);for(const _0x3f019c of _0x378c99)this[_0xf646('0xcd')](_0xf646('0x10'),_0x3f019c);}),_0x2fbe46[_0xf646('0x4d')]['on']('applyOperation',(_0x5d71ca,_0x2b66cb)=>{const _0xe9106b=_0x2b66cb[0x0];if(!this[_0xf646('0x8')][_0xf646('0x121')])return;if(!_0xe9106b[_0xf646('0x41')])return;if(_0xe9106b['batch'][_0xf646('0x85')]||!_0xe9106b['batch'][_0xf646('0x93')])return;let _0x2f294f,_0x32c1d5;switch(_0xe9106b[_0xf646('0x45')]){case _0xf646('0xd1'):_0x2f294f=_0x2fbe46[_0xf646('0x4d')][_0xf646('0x50')](_0xe9106b[_0xf646('0x0')]),_0x32c1d5=_0x2f294f[_0xf646('0x11')](_0xe9106b[_0xf646('0x103')]);break;case _0xf646('0x12c'):_0x2f294f=_0x2fbe46['model']['createPositionAt'](_0xe9106b[_0xf646('0x134')]),_0x32c1d5=_0x2fbe46[_0xf646('0x4d')][_0xf646('0x50')](_0xe9106b[_0xf646('0x122')]);break;case'move':_0x2f294f=_0x2fbe46[_0xf646('0x4d')][_0xf646('0x50')](_0xe9106b['targetPosition']),_0x32c1d5=_0x2f294f[_0xf646('0x11')](_0xe9106b[_0xf646('0x103')]);break;default:return;}const _0x7fc34c=_0x2fbe46['model'][_0xf646('0x10d')](_0x2f294f,_0x32c1d5);_0x2fbe46[_0xf646('0x4d')][_0xf646('0x6e')](()=>{for(const {suggestion:_0x55a4a3,meta:_0x5d1dea}of this[_0xf646('0xad')](_0x7fc34c)){if(_0x55a4a3[_0xf646('0xc4')])continue;if(_0xf646('0xfb')==_0x55a4a3[_0xf646('0x45')])continue;const _0x4ff4bb=_0x55a4a3[_0xf646('0x62')]&&_0x55a4a3[_0xf646('0x62')]['multipleBlocks'];('formatBlock'!=_0x55a4a3[_0xf646('0x45')]||_0xf646('0x12c')==_0xe9106b[_0xf646('0x45')]&&!_0x4ff4bb)&&(_0x5d1dea[_0xf646('0x128')]||_0xf646('0xaf')==_0x55a4a3[_0xf646('0x45')]&&_0x5d1dea[_0xf646('0x119')]||_0x55a4a3[_0xf646('0x11f')]()['containsRange'](_0x7fc34c)&&this[_0xf646('0x3d')](_0x55a4a3,_0x2f294f,_0x32c1d5));}});},{'priority':_0xf646('0x10b')}),_0x2fbe46[_0xf646('0x4d')]['on'](_0xf646('0x10f'),(_0x357454,_0x177ced)=>{const _0x99d4a5=_0x177ced[0x0],_0x5c038b=_0x177ced[0x1];if(_0x5c038b&&_0x5c038b[_0xf646('0x94')])return;if(this[_0xf646('0x10e')])return;if(!this[_0xf646('0xc5')][_0xf646('0x13')])return;if(_0x99d4a5['isCollapsed'])return;const _0x4a77ac=_0x2fbe46[_0xf646('0x4d')]['schema'],{start:_0x3e5c25,end:_0x39592b}=_0x99d4a5[_0xf646('0x11f')](),_0x5ef2f5=_0x3e5c25[_0xf646('0xe4')]&&_0x4a77ac['isLimit'](_0x3e5c25['nodeAfter'])?null:_0x4a77ac[_0xf646('0x109')](_0x3e5c25,_0xf646('0x28')),_0xc34e71=_0x39592b[_0xf646('0x106')]&&_0x4a77ac['isLimit'](_0x39592b['nodeBefore'])?null:_0x4a77ac[_0xf646('0x109')](_0x39592b,'backward'),_0x3346b4=_0x2fbe46['model'][_0xf646('0x10d')](_0x5ef2f5?_0x5ef2f5['start']:_0x3e5c25,_0xc34e71?_0xc34e71[_0xf646('0x75')]:_0x39592b);_0x2fbe46[_0xf646('0x4d')][_0xf646('0x6e')](_0x4d0d62=>{this[_0xf646('0x1c')](_0x3346b4);const _0x2de200=_0x2fbe46['model']['schema']['getNearestSelectionRange'](_0x3346b4[_0xf646('0xde')]);_0x99d4a5['is']('documentSelection')?_0x4d0d62[_0xf646('0x12e')](_0x2de200):_0x99d4a5[_0xf646('0xa5')](_0x2de200);}),_0x357454[_0xf646('0x13a')]();},{'priority':_0x3d5ed7[_0xf646('0x108')]+0xa}),_0x2fbe46[_0xf646('0x4d')]['on'](_0xf646('0xcc'),(_0x364fc8,_0x39e332)=>{const _0x3c5a02=_0x39e332[_0x39e332[_0xf646('0x91')]-0x1];_0x3c5a02&&_0x3c5a02[_0xf646('0x94')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0xf646('0x13')]&&(_0x2fbe46[_0xf646('0x4d')][_0xf646('0x6e')](()=>{let _0x1e8240=_0x2fbe46['model']['insertContent'](_0x39e332[0x0],_0x39e332[0x1],_0x39e332[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e8240)return;_0x364fc8[_0xf646('0x77')]=_0x1e8240[_0xf646('0x8b')]();const _0x3e8443=_0x1e8240[_0xf646('0x75')][_0xf646('0x106')],_0x4a76b3=_0x2fbe46[_0xf646('0x4d')]['schema'];_0x3e8443&&_0x4a76b3[_0xf646('0xfe')](_0x3e8443)&&!_0x4a76b3[_0xf646('0xbb')](_0x3e8443)&&(_0x1e8240=_0x2fbe46[_0xf646('0x4d')][_0xf646('0x10d')](_0x1e8240[_0xf646('0xde')],_0x2fbe46['model'][_0xf646('0x50')](_0x3e8443,_0xf646('0x75')))),this[_0xf646('0x7c')](_0x1e8240);}),_0x364fc8[_0xf646('0x13a')]());},{'priority':_0xf646('0xd9')}),this[_0xf646('0x10a')][_0xf646('0x2e')][_0xf646('0x1')]('trackChanges',this['trackChangesCommand']),this[_0xf646('0xa')](_0xf646('0x129'));const _0x5c2058=new _0x306eff(_0x2fbe46,this[_0xf646('0x8')]);_0x2fbe46[_0xf646('0x2e')][_0xf646('0x1')](_0xf646('0xa3'),_0x5c2058),this[_0xf646('0xa')]('acceptSuggestion');const _0x218efc=new _0x36aad6(_0x2fbe46,this[_0xf646('0x8')]);_0x2fbe46[_0xf646('0x2e')][_0xf646('0x1')](_0xf646('0x12f'),_0x218efc),this[_0xf646('0xa')](_0xf646('0x12f')),_0x2fbe46[_0xf646('0x2e')][_0xf646('0x1')](_0xf646('0x9c'),new _0x4f9b2a(_0x2fbe46,_0x5c2058,this['_suggestions'])),this['enableCommand'](_0xf646('0x9c')),_0x2fbe46['commands'][_0xf646('0x1')](_0xf646('0x11a'),new _0x4f9b2a(_0x2fbe46,_0x218efc,this[_0xf646('0x8')])),this['enableCommand'](_0xf646('0x11a')),_0x2fbe46[_0xf646('0x2e')][_0xf646('0x1')]('acceptSelectedSuggestions',new _0x209006(_0x2fbe46,_0x5c2058,this[_0xf646('0x8')])),this[_0xf646('0xa')](_0xf646('0x96')),_0x2fbe46[_0xf646('0x2e')][_0xf646('0x1')](_0xf646('0xb'),new _0x209006(_0x2fbe46,_0x218efc,this[_0xf646('0x8')])),this[_0xf646('0xa')](_0xf646('0xb'));const _0x5265f7=_0x2fbe46[_0xf646('0xa9')]['get'](_0xf646('0xe3'));this['listenTo'](_0x5265f7,_0xf646('0x135'),(_0x2502e6,{threadId:_0x19135b})=>{const _0x281fb0=this[_0xf646('0x8')][_0xf646('0x5')](_0x19135b);_0x281fb0&&_0x281fb0['commentThread']&&0x1===_0x281fb0['commentThread']['length']&&this[_0xf646('0x23')](_0x19135b,{'hasComments':!0x0});},{'priority':_0xf646('0x48')}),this['listenTo'](_0x5265f7,_0xf646('0xc'),(_0x34883f,{threadId:_0x30aab9})=>{const _0x1b526b=this[_0xf646('0x8')][_0xf646('0x5')](_0x30aab9);_0x1b526b&&_0x1b526b[_0xf646('0x9a')]&&!_0x1b526b[_0xf646('0x9a')][_0xf646('0x91')]&&this[_0xf646('0x23')](_0x30aab9,{'hasComments':!0x1});},{'priority':_0xf646('0x48')});}set['adapter'](_0x5e69e1){if(this[_0xf646('0xee')])throw new _0x12141c(_0xf646('0xc0'),this);this[_0xf646('0xee')]=_0x5e69e1;}get[_0xf646('0x89')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2830a0=!0x1,toJSON:_0x47b2ed=!0x1}={}){const _0x13e661=[];for(const _0x2c3547 of this[_0xf646('0x8')][_0xf646('0x29')]())_0x2830a0&&!_0x2c3547['isInContent']||_0x13e661['push'](_0x2c3547);return _0x47b2ed?_0x13e661[_0xf646('0x3')](_0x3913bc=>_0x3913bc[_0xf646('0xbf')]()):_0x13e661;}['getSuggestion'](_0x412c14){const _0xf9cc31=this[_0xf646('0x8')]['get'](_0x412c14);if(!_0xf9cc31)throw new _0x12141c(_0xf646('0x6a'),this);return _0xf9cc31;}[_0xf646('0xd4')](_0x3d989b){return this[_0xf646('0x8')][_0xf646('0x107')](_0x3d989b);}['addSuggestionData'](_0x2c9b82){const {authorId:_0x47d43b,id:_0x27085e,attributes:_0x3a5538}=_0x2c9b82,[_0x3ddbad,_0x12344d]=_0x2c9b82[_0xf646('0x45')]['split'](':'),_0x5ab87b=this[_0xf646('0x8')][_0xf646('0x5')](_0x27085e)||this[_0xf646('0x83')](_0x3ddbad,_0x12344d,_0x27085e,_0x47d43b,_0x3a5538);if(this['_addThreadToSuggestion'](_0x5ab87b),this[_0xf646('0x4c')](_0x5ab87b,_0x3ddbad,_0x12344d||null,_0x47d43b),_0x5ab87b[_0xf646('0xd2')]=_0x2c9b82[_0xf646('0xd2')],_0x3a5538&&_0x3a5538['@external']){const _0x4270bc=_0x3a5538[_0xf646('0xf2')],_0x32b229=this[_0xf646('0x5f')](_0x4270bc['authorName']);_0x5ab87b['authoredAt']=_0x4270bc['createdAt'],_0x5ab87b[_0xf646('0xa2')]=_0x32b229,_0x5ab87b['isExternal']=!0x0;}else _0x5ab87b[_0xf646('0x87')]=_0x2c9b82[_0xf646('0xd2')];switch(_0x2c9b82['data']&&(_0x5ab87b[_0xf646('0x62')]=_0x2c9b82[_0xf646('0x62')]),_0x2c9b82[_0xf646('0x71')]&&(_0x5ab87b[_0xf646('0x71')]=_0x2c9b82[_0xf646('0x71')]),this[_0xf646('0xee')]&&this[_0xf646('0xee')][_0xf646('0xb8')]||(_0x5ab87b['_saved']=!0x0),this[_0xf646('0x4a')][_0xf646('0x5')](_0x5ab87b)){case _0xf646('0x92'):this[_0xf646('0x4a')][_0xf646('0x125')](_0x5ab87b,_0xf646('0x2c'));break;case _0xf646('0x36'):_0x5ab87b[_0xf646('0x11c')]?(this[_0xf646('0x4a')][_0xf646('0x125')](_0x5ab87b,_0xf646('0xa4')),this[_0xf646('0xcd')]('suggestionLoaded',_0x5ab87b)):this['_suggestionState'][_0xf646('0x125')](_0x5ab87b,_0xf646('0xa0'));}return _0x5ab87b;}[_0xf646('0xa3')](_0x6d2c79){this[_0xf646('0x94')](()=>{this[_0xf646('0x10a')]['model'][_0xf646('0x6e')](()=>{for(const _0x372deb of _0x6d2c79[_0xf646('0x24')]())_0x372deb['accept']();});});}['discardSuggestion'](_0x1bc232){this[_0xf646('0x94')](()=>{this[_0xf646('0x10a')][_0xf646('0x4d')][_0xf646('0x6e')](()=>{for(const _0x2d82d0 of _0x1bc232[_0xf646('0x24')]())_0x2d82d0['discard']();});});}[_0xf646('0xa')](_0x934d3a,_0x77d92d){const _0x2e7c56=this['editor']['commands']['get'](_0x934d3a);if(!_0x2e7c56)throw new _0x12141c(_0xf646('0x7a'),this,{'commandName':_0x934d3a});this[_0xf646('0x69')][_0xf646('0x1')](_0x2e7c56),_0x77d92d&&_0x2e7c56['on']('execute',(_0x39caeb,_0x5a9ed4)=>{this[_0xf646('0xc5')][_0xf646('0x13')]&&(this['_isForcedDefaultExecutionBlock']||_0x5a9ed4[_0xf646('0x91')]>0x0&&_0x5a9ed4[_0x5a9ed4[_0xf646('0x91')]-0x1]&&_0x5a9ed4[_0x5a9ed4[_0xf646('0x91')]-0x1][_0xf646('0x94')]||(_0x77d92d((..._0x31d88c)=>_0x2e7c56['execute'](..._0x31d88c,{'forceDefaultExecution':!0x0}),..._0x5a9ed4),_0x39caeb[_0xf646('0x13a')]()));},{'priority':'high'});}[_0xf646('0x94')](_0x2b89a8){let _0x6143b2,_0x3ada03;const _0x238bea=this[_0xf646('0x10e')];this[_0xf646('0x10e')]=!0x0;try{_0x6143b2=_0x2b89a8();}catch(_0x476284){_0x3ada03=_0x476284;}return _0x238bea||(this[_0xf646('0x10e')]=!0x1),_0x3ada03&&_0x12141c[_0xf646('0x68')](_0x3ada03,this),_0x6143b2;}['markInsertion'](_0x3299d4,_0xfe6c5=null,_0x458de8={}){if(_0x3299d4['isCollapsed'])return null;const _0x3078fb=this[_0xf646('0x10a')][_0xf646('0xa9')]['get'](_0xf646('0x137'))['me'];for(const {suggestion:_0x576dee,meta:_0x1db8c7}of this[_0xf646('0xad')](_0x3299d4,'insertion'))if(_0x1db8c7[_0xf646('0x119')]){if(!_0x1db8c7['isNextTo']){if(!this[_0xf646('0xea')]&&_0x1db8c7[_0xf646('0x128')])continue;return _0x576dee;}if(_0xfe6c5==_0x576dee[_0xf646('0xab')]){const _0x27675e=_0x576dee[_0xf646('0x11f')]();return _0x27675e[_0xf646('0xde')][_0xf646('0x12b')](_0x3299d4[_0xf646('0x75')])?this[_0xf646('0x47')](_0x576dee,this['_model'][_0xf646('0x10d')](_0x3299d4[_0xf646('0xde')],_0x27675e[_0xf646('0x75')])):this[_0xf646('0x47')](_0x576dee,this[_0xf646('0xb3')][_0xf646('0x10d')](_0x27675e[_0xf646('0xde')],_0x3299d4[_0xf646('0x75')])),_0x576dee;}}const _0x469403=_0x1111ee(),_0x4475f8=_0x3078fb['id'],_0x3359f6=_0xfe6c5?_0xf646('0xc1')+_0xfe6c5:'insertion',_0x8f26a3=this[_0xf646('0xce')]({'id':_0x469403,'type':_0x3359f6,'createdAt':new Date(),'authorId':_0x4475f8,'attributes':_0x458de8});return this['_addSuggestionMarker'](_0x3359f6,_0x469403,_0x4475f8,_0x3299d4),_0x8f26a3;}['markMultiRangeInsertion'](_0x1ab2ef,_0x59ba27=_0xf646('0xd5'),_0x32f5b3={}){const _0x535d83=this['editor'][_0xf646('0xa9')][_0xf646('0x5')]('Users')['me'],_0x1cb2b1=this['_suggestionFactory']['getSuggestionCallback'](_0xf646('0xaf'),_0x59ba27,_0xf646('0x64'));for(const _0x3af59a of this[_0xf646('0x26')]())if(_0x3af59a[_0xf646('0xa2')]['id']==_0x535d83['id']&&_0xf646('0xaf')==_0x3af59a['type']&&_0x3af59a[_0xf646('0xab')]==_0x59ba27&&(_0x1cb2b1(_0x3af59a[_0xf646('0xfc')](),_0x1ab2ef)||_0x1cb2b1(_0x1ab2ef,_0x3af59a['getRanges']()))){for(const _0x4a41a8 of _0x1ab2ef)_0x3af59a[_0xf646('0x7f')](_0x4a41a8);return _0x3af59a;}if(this[_0xf646('0xea')])for(const _0x25fb29 of _0x1ab2ef)for(const {suggestion:_0x849da2,meta:_0x567a7e}of this[_0xf646('0xad')](_0x25fb29,'insertion')){if(!_0x567a7e['isOwn'])continue;let _0x399a39=!0x0;for(const _0x2d1743 of _0x849da2[_0xf646('0xfc')]())for(const _0x31b29d of _0x1ab2ef)if(!_0x2d1743[_0xf646('0x133')](_0x31b29d)){_0x399a39=!0x1;break;}if(_0x399a39)return _0x849da2;}const _0x2e6805=_0x1111ee(),_0x5a6dfd=_0x535d83['id'],_0x5d0ea2=_0xf646('0xc1')+_0x59ba27,_0x3492e4=this[_0xf646('0xce')]({'id':_0x2e6805,'type':_0x5d0ea2,'createdAt':new Date(),'authorId':_0x5a6dfd,'attributes':_0x32f5b3});for(const _0x1c5e29 of _0x1ab2ef)this[_0xf646('0x2')](_0x5d0ea2,_0x2e6805,_0x5a6dfd,_0x1c5e29,_0x2ac3b5[_0xf646('0x56')]());return _0x3492e4;}['markInlineFormat'](_0x3dd5c3,_0x12bfb5,_0x3feb4c=null,_0x18c280={}){if(_0x3feb4c=_0x3feb4c||$t(_0x12bfb5),_0x3dd5c3['isCollapsed'])return null;if(_0xf646('0x39')===this[_0xf646('0x10c')]){const _0x5dd783=this['_suggestionFactory']['getSuggestionCallback'](_0xf646('0xfb'),_0x3feb4c,_0xf646('0x5b'));return this[_0xf646('0x94')](()=>_0x5dd783([_0x3dd5c3],_0x12bfb5,_0x18c280)),null;}const _0xacfb75=this['editor']['plugins'][_0xf646('0x5')](_0xf646('0x137'))['me'],_0x237f13=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x5ee051,meta:_0x2e6007}of this[_0xf646('0xad')](_0x3dd5c3,_0xf646('0xaf')))_0x2e6007[_0xf646('0x119')]&&!_0x2e6007[_0xf646('0xf1')]&&_0x237f13[_0xf646('0xd7')](..._0x5ee051['getRanges']());const _0x19d84d=function(_0x16e1f0,_0x5018db){const _0xc006a8=[];for(const _0x5e6101 of _0x5018db){const _0x13fd44=_0x16e1f0[_0xf646('0xe')](_0x5e6101);_0x13fd44&&_0xc006a8[_0xf646('0xd7')](_0x13fd44);}return _0xc006a8;}(_0x3dd5c3,_0x237f13),_0x1b0efa=function(_0x5c0646,_0x4e4d9f){const _0x46f2ca=[_0x5c0646];for(const _0x1b6810 of _0x4e4d9f){let _0x5e9bea=0x0;for(;_0x5e9bea<_0x46f2ca[_0xf646('0x91')];){const _0x4f940b=_0x46f2ca[_0x5e9bea][_0xf646('0x99')](_0x1b6810);_0x46f2ca[_0xf646('0x60')](_0x5e9bea,0x1,..._0x4f940b),_0x5e9bea+=_0x4f940b[_0xf646('0x91')];}}return _0x46f2ca;}(_0x3dd5c3,_0x237f13);_0x19d84d[_0xf646('0x91')]&&this[_0xf646('0xb3')][_0xf646('0x6e')](()=>{for(const _0x1c68d2 of _0x19d84d){const _0x388118=this[_0xf646('0xcf')][_0xf646('0x4f')](_0xf646('0xfb'),_0x3feb4c,_0xf646('0x5b'));this[_0xf646('0x94')](()=>_0x388118([_0x1c68d2],_0x12bfb5,_0x18c280));}});for(const _0x4ca7e9 of _0x1b0efa){let _0x4fb455=null,_0x387c84=_0x4ca7e9['start'],_0x582efb=_0x4ca7e9[_0xf646('0x75')];for(const {suggestion:_0x57cf54,meta:_0x52651a}of this[_0xf646('0xad')](_0x4ca7e9,'formatInline')){if(!_0x52651a['isOwn'])continue;if(_0x57cf54[_0xf646('0xab')]!=_0x3feb4c)continue;const _0x159dd5=_0x57cf54[_0xf646('0x11f')]();if(_0x159dd5[_0xf646('0x133')](_0x4ca7e9,!0x0))return null;_0x387c84=_0x387c84['isBefore'](_0x159dd5['start'])?_0x387c84:_0x159dd5[_0xf646('0xde')],_0x582efb=_0x582efb[_0xf646('0x72')](_0x159dd5[_0xf646('0x75')])?_0x582efb:_0x159dd5[_0xf646('0x75')],_0x4fb455?_0x159dd5['start'][_0xf646('0x1d')](_0x4fb455[_0xf646('0x11f')]()['start'])?(_0x4fb455[_0xf646('0x70')](),_0x4fb455=_0x57cf54):_0x57cf54[_0xf646('0x70')]():_0x4fb455=_0x57cf54;}const _0x187ff1=this[_0xf646('0xb3')][_0xf646('0x10d')](_0x387c84,_0x582efb);if(_0x4fb455)this[_0xf646('0x47')](_0x4fb455,_0x187ff1);else{const _0x40fbc5=_0x1111ee(),_0x554e25=_0xacfb75['id'];this[_0xf646('0xce')]({'id':_0x40fbc5,'type':_0xf646('0x2b')+_0x3feb4c,'data':_0x12bfb5,'createdAt':new Date(),'authorId':_0x554e25,'attributes':_0x18c280}),this[_0xf646('0x2')](_0xf646('0x2b')+_0x3feb4c,_0x40fbc5,_0x554e25,_0x187ff1);}}return null;}[_0xf646('0xda')](_0x43b9db,_0x35ce5a,_0x57ad5b=[],_0x2af578=null,_0xb1bad7={}){_0x35ce5a[_0xf646('0xf0')]||(_0x35ce5a[_0xf646('0xf0')]=_0x35ce5a[_0xf646('0x43')]),_0x35ce5a['multipleBlocks']=_0x43b9db['is'](_0xf646('0xba')),_0x2af578=_0x2af578||$t(_0x35ce5a);const _0x335075=_0x57ad5b[_0xf646('0x3')](_0xd8d5d5=>Rt(_0xd8d5d5,this['_model'])),_0x459981=_0x43b9db['is'](_0xf646('0xba'))?_0x43b9db:Rt(_0x43b9db,this[_0xf646('0xb3')]);if('never'===this[_0xf646('0x10c')]){const _0x4fbec2=this[_0xf646('0xcf')][_0xf646('0x4f')]('formatBlock',_0x2af578,_0xf646('0x5b'));return this[_0xf646('0x94')](()=>_0x4fbec2([_0x459981],_0x35ce5a,_0xb1bad7)),null;}_0x335075[_0xf646('0xd7')](_0x459981);let _0x1300af=!0x0;for(const _0x2b2b96 of _0x335075)if(!this['_rangeIsInLocalUserInsertion'](_0x2b2b96)){_0x1300af=!0x1;break;}if(_0x1300af&&_0xf646('0x6c')!==this['_trackFormatChanges']){const _0x491559=this[_0xf646('0xcf')][_0xf646('0x4f')](_0xf646('0xf3'),_0x2af578,_0xf646('0x5b'));return this['forceDefaultExecution'](()=>_0x491559([_0x459981],_0x35ce5a,_0xb1bad7)),null;}let _0x5b9822=null,_0x39cf8f=_0x459981[_0xf646('0xde')],_0x2157e1=_0x459981[_0xf646('0x75')];for(const {suggestion:_0x23f0cf,meta:_0x280490}of this['_findSuggestions'](_0x459981,'formatBlock')){if(!_0x280490['isOwn']||_0x280490[_0xf646('0xb2')]||_0x280490['containsRangeInObject']||_0x280490[_0xf646('0xf1')])continue;if(_0x23f0cf[_0xf646('0x62')]['formatGroupId']!=_0x35ce5a['formatGroupId'])continue;const _0x127077=_0x23f0cf[_0xf646('0x11f')]();if(_0x23f0cf['subType']==_0x2af578){if(_0x127077[_0xf646('0x133')](_0x459981,!0x0))return null;_0x39cf8f=_0x39cf8f[_0xf646('0x1d')](_0x127077[_0xf646('0xde')])?_0x39cf8f:_0x127077[_0xf646('0xde')],_0x2157e1=_0x2157e1['isAfter'](_0x127077['end'])?_0x2157e1:_0x127077[_0xf646('0x75')],_0x5b9822?_0x127077['start']['isBefore'](_0x5b9822[_0xf646('0x11f')]()['start'])?(_0x5b9822['removeMarkers'](),_0x5b9822=_0x23f0cf):_0x23f0cf['removeMarkers']():_0x5b9822=_0x23f0cf;}else{const _0x1ab558=_0x459981['getIntersection'](_0x127077);this['_cutOutSuggestionMarker'](_0x23f0cf,_0x1ab558);}}const _0x172511=this[_0xf646('0x10a')][_0xf646('0xa9')][_0xf646('0x5')](_0xf646('0x137'))['me'],_0x37e84b=_0x1111ee(),_0x589dd7=_0x172511['id'];if(_0x5b9822)return this[_0xf646('0x47')](_0x5b9822,this[_0xf646('0xb3')]['createRange'](_0x39cf8f,_0x2157e1)),_0x5b9822;{const _0x339d11=this['_setSuggestionData']({'id':_0x37e84b,'type':_0xf646('0xe6')+_0x2af578,'data':_0x35ce5a,'createdAt':new Date(),'authorId':_0x589dd7,'attributes':_0xb1bad7});return this[_0xf646('0x2')](_0xf646('0xe6')+_0x2af578,_0x37e84b,_0x589dd7,this[_0xf646('0xb3')][_0xf646('0x10d')](_0x39cf8f,_0x2157e1)),_0x339d11;}}[_0xf646('0xbd')](_0x5a5451,_0x3f938c,_0x12b00b=[],_0x2d785e=null,_0x35d798={}){_0x3f938c[_0xf646('0xf0')]||(_0x3f938c[_0xf646('0xf0')]=_0x3f938c['commandName']);const _0x247043=_0x5a5451[0x0];_0x3f938c[_0xf646('0xd')]=_0x247043['is']('range'),_0x2d785e=_0x2d785e||$t(_0x3f938c);const _0x4eba23=_0x12b00b[_0xf646('0x3')](_0x29a2d2=>Rt(_0x29a2d2,this[_0xf646('0xb3')])),_0x1f0171=_0x247043['is']('range')?_0x5a5451:_0x5a5451[_0xf646('0x3')](_0xd6b67e=>Rt(_0xd6b67e,this[_0xf646('0xb3')]));if(_0xf646('0x39')===this['_trackFormatChanges']){const _0x501197=this[_0xf646('0xcf')]['getSuggestionCallback']('formatBlock',_0x2d785e,_0xf646('0x5b'));return this[_0xf646('0x94')](()=>_0x501197(_0x1f0171,_0x3f938c,_0x35d798)),null;}_0x4eba23['push'](..._0x1f0171);let _0x288273=!0x0;for(const _0x52a0af of _0x4eba23)if(!this['_rangeIsInLocalUserInsertion'](_0x52a0af)){_0x288273=!0x1;break;}if(_0x288273&&_0xf646('0x6c')!==this['_trackFormatChanges']){const _0x51328b=this[_0xf646('0xcf')][_0xf646('0x4f')](_0xf646('0xf3'),_0x2d785e,'accept');return this[_0xf646('0x94')](()=>_0x51328b(_0x1f0171,_0x3f938c,_0x35d798)),null;}const _0x188d80=this[_0xf646('0x10a')][_0xf646('0xa9')]['get'](_0xf646('0x137'))['me'];for(const _0x1733fd of this['getSuggestions']()){if(_0x1733fd[_0xf646('0xa2')]['id']!=_0x188d80['id'])continue;if('formatBlock'!=_0x1733fd[_0xf646('0x45')]||_0x1733fd['data']['formatGroupId']!=_0x3f938c[_0xf646('0xf0')])continue;const _0x1de29d=_0x1733fd['subType']==_0x2d785e;for(let _0x4123cd=0x0;_0x4123cd<_0x1f0171[_0xf646('0x91')];_0x4123cd++){const _0x420232=_0x1f0171[_0x4123cd];for(const _0x45b377 of _0x1733fd[_0xf646('0x76')]()){const _0x4eb60d=_0x45b377['getRange']();if(_0x420232['isEqual'](_0x4eb60d)){_0x1de29d?(_0x1f0171[_0xf646('0x60')](_0x4123cd,0x1),_0x4123cd--):_0x1733fd[_0xf646('0x9f')](_0x45b377[_0xf646('0xc2')]);break;}}}}if(0x0==_0x1f0171[_0xf646('0x91')])return null;const _0x7cd09=this[_0xf646('0xcf')]['getSuggestionCallback'](_0xf646('0xf3'),_0x2d785e,_0xf646('0x64'));for(const _0x3149c9 of this['getSuggestions']())if(_0x3149c9[_0xf646('0xa2')]['id']==_0x188d80['id']&&'formatBlock'==_0x3149c9[_0xf646('0x45')]&&_0x3149c9['data'][_0xf646('0xf0')]==_0x3f938c[_0xf646('0xf0')]&&_0x3149c9['subType']==_0x2d785e&&(_0x7cd09(_0x3149c9['getRanges'](),_0x1f0171)||_0x7cd09(_0x1f0171,_0x3149c9[_0xf646('0xfc')]()))){for(const _0x3048bf of _0x1f0171)_0x3149c9[_0xf646('0x7f')](_0x3048bf);return _0x3149c9;}const _0x5f3678=_0x1111ee(),_0x45b22a=_0x188d80['id'],_0x201437='formatBlock:'+_0x2d785e,_0x33fd8e=this[_0xf646('0xce')]({'id':_0x5f3678,'type':_0x201437,'data':_0x3f938c,'createdAt':new Date(),'authorId':_0x45b22a,'attributes':_0x35d798});for(const _0x176d88 of _0x1f0171)this[_0xf646('0x2')](_0x201437,_0x5f3678,_0x45b22a,_0x176d88,_0x2ac3b5[_0xf646('0x56')]());return _0x33fd8e;}[_0xf646('0x1c')](_0xfd8bdc,_0x44c79b=null,_0x19743d={}){if(_0xfd8bdc['isCollapsed'])return null;const _0x447973=this[_0xf646('0x10a')][_0xf646('0xa9')][_0xf646('0x5')]('Users')['me'],_0x3e7b56=new _0x439dfc(_0xfd8bdc[_0xf646('0xde')],_0xfd8bdc[_0xf646('0x75')]);for(const {suggestion:_0x44cc08,meta:_0x41404a}of this['_findSuggestions'](_0x3e7b56,_0xf646('0xaf')))if(_0x41404a[_0xf646('0x119')]&&!_0x41404a[_0xf646('0xb2')]){if(_0x44cc08[_0xf646('0xc4')]){const _0x10ac78=_0x44cc08[_0xf646('0xfc')]()[_0xf646('0x66')](_0xce4d9e=>'$graveyard'!=_0xce4d9e[_0xf646('0xa8')][_0xf646('0x55')]);_0x10ac78['every'](_0x3413d7=>_0x3e7b56[_0xf646('0x133')](_0x3413d7,!0x0))&&_0x44cc08[_0xf646('0xc6')]();if(_0x10ac78[_0xf646('0xff')](_0x4f9178=>_0x4f9178['containsRange'](_0x3e7b56,!0x0))){const _0x24f8ff=this[_0xf646('0xcf')][_0xf646('0x4f')]('deletion',_0x44c79b,_0xf646('0x5b'));return this[_0xf646('0x94')](()=>_0x24f8ff([_0x3e7b56],null,_0x19743d)),null;}}else{const _0x284645=_0x3e7b56[_0xf646('0xe')](_0x44cc08['getFirstRange']());null!==_0x284645&&_0x44cc08[_0xf646('0x40')]([_0x284645],null,_0x19743d);}}if(_0x3e7b56[_0xf646('0x9')](),_0x3e7b56[_0xf646('0x1e')]||'$graveyard'==_0x3e7b56[_0xf646('0xa8')]['rootName'])return null;let _0x5bbd7e=null,_0x12fb9b=_0x3e7b56[_0xf646('0xde')],_0x500b52=_0x3e7b56[_0xf646('0x75')];for(const {suggestion:_0x5f4b97,meta:_0x5b5d41}of this[_0xf646('0xad')](_0x3e7b56,'deletion'))if(_0x5b5d41[_0xf646('0x119')]){if(_0x5f4b97[_0xf646('0xc4')]&&this['_mergeNestedSuggestions']){let _0x44079b=!0x0;for(const _0x3741df of _0x5f4b97[_0xf646('0xfc')]()){if(_0x3741df['containsRange'](_0x3e7b56,!0x0))return _0x5f4b97;_0x3e7b56['containsRange'](_0x3741df)||(_0x44079b=!0x1);}_0x44079b&&_0x5f4b97['discard']();}else{const _0xa37522=_0x5f4b97[_0xf646('0x11f')]();if(_0xa37522[_0xf646('0x133')](_0x3e7b56,!0x0)){if(!this[_0xf646('0xea')]&&_0x5b5d41[_0xf646('0x128')])continue;return _0x5f4b97;}_0x12fb9b=_0x12fb9b[_0xf646('0x1d')](_0xa37522[_0xf646('0xde')])?_0x12fb9b:_0xa37522[_0xf646('0xde')],_0x500b52=_0x500b52['isAfter'](_0xa37522[_0xf646('0x75')])?_0x500b52:_0xa37522[_0xf646('0x75')],_0x5bbd7e?_0xa37522[_0xf646('0xde')]['isBefore'](_0x5bbd7e[_0xf646('0x11f')]()[_0xf646('0xde')])?(_0x5bbd7e[_0xf646('0x70')](),_0x5bbd7e=_0x5f4b97):_0x5f4b97[_0xf646('0x70')]():_0x5bbd7e=_0x5f4b97;}}if(_0x5bbd7e)return this[_0xf646('0x47')](_0x5bbd7e,this[_0xf646('0xb3')][_0xf646('0x10d')](_0x12fb9b,_0x500b52)),_0x5bbd7e;{const _0x137f53=_0x1111ee(),_0x39c3b4=this[_0xf646('0xb3')]['createRange'](_0x12fb9b,_0x500b52),_0x4c22a7=_0x447973['id'],_0x19629f=_0x44c79b?_0xf646('0x7b')+_0x44c79b:'deletion',_0x324fb5=this['_setSuggestionData']({'id':_0x137f53,'type':_0x19629f,'createdAt':new Date(),'authorId':_0x4c22a7,'attributes':_0x19743d});return this[_0xf646('0x2')](_0x19629f,_0x137f53,_0x4c22a7,_0x39c3b4),_0x324fb5;}}[_0xf646('0x42')](_0x3ec299,_0x3a823c=_0xf646('0xd5'),_0x5ad746={}){const _0x4e4065=this['editor'][_0xf646('0xa9')]['get'](_0xf646('0x137'))['me'],_0x26b269=_0x3ec299[_0xf646('0x3')](_0x16be16=>new _0x439dfc(_0x16be16['start'],_0x16be16[_0xf646('0x75')])),_0x19514e=new Set();for(const _0x44391c of _0x26b269)for(const {suggestion:_0x144140,meta:_0x58451}of this[_0xf646('0xad')](_0x44391c,'insertion'))_0x58451[_0xf646('0x119')]&&!_0x58451['isNextTo']&&_0x19514e[_0xf646('0x1')](_0x144140);for(const _0xeb79d1 of _0x19514e)if(_0xeb79d1[_0xf646('0xc4')]){const _0x1877be=_0xeb79d1['getRanges']();(!_0xeb79d1[_0xf646('0x71')]||!_0xeb79d1['attributes'][_0xf646('0x130')])&&(_0x1877be['every'](_0x11a540=>_0x26b269[_0xf646('0xff')](_0x5cc350=>_0x5cc350[_0xf646('0x133')](_0x11a540,!0x0)))&&_0xeb79d1[_0xf646('0xc6')]());if(_0x26b269[_0xf646('0x74')](_0xa9130=>_0x1877be[_0xf646('0xff')](_0x43bb0c=>_0x43bb0c[_0xf646('0x133')](_0xa9130,!0x0)))){const _0x45bbc2=this[_0xf646('0xcf')][_0xf646('0x4f')](_0xf646('0x11b'),_0x3a823c,_0xf646('0x5b'));return this[_0xf646('0x94')](()=>_0x45bbc2(_0x3ec299,null,_0x5ad746)),null;}}else{const _0x40c87c=_0xeb79d1[_0xf646('0x11f')]();_0x26b269[_0xf646('0xff')](_0x30ce37=>_0x30ce37[_0xf646('0x133')](_0x40c87c,!0x0))&&_0xeb79d1[_0xf646('0xc6')]();if(_0x26b269[_0xf646('0x74')](_0x789c07=>_0x40c87c['containsRange'](_0x789c07,!0x0))){const _0x430e0f=this['_suggestionFactory'][_0xf646('0x4f')](_0xf646('0x11b'),_0x3a823c,_0xf646('0x5b'));return this[_0xf646('0x94')](()=>_0x430e0f(_0x26b269,null,_0x5ad746)),null;}}const _0x434c3d=this[_0xf646('0xcf')][_0xf646('0x4f')](_0xf646('0x11b'),_0x3a823c,_0xf646('0x64'));let _0x4b61b1=null;for(const _0x5e095d of this[_0xf646('0x26')]())if(_0x5e095d['author']['id']==_0x4e4065['id']&&_0x5e095d[_0xf646('0x11c')]&&_0xf646('0x11b')==_0x5e095d[_0xf646('0x45')]&&_0x5e095d['subType']==_0x3a823c&&(_0x434c3d(_0x5e095d[_0xf646('0xfc')](),_0x26b269)||_0x434c3d(_0x26b269,_0x5e095d['getRanges']()))){if(_0x4b61b1){if(_0x5e095d[_0xf646('0x9a')]&&_0x5e095d['commentThread'][_0xf646('0x91')])continue;for(const _0x4cccbe of _0x5e095d[_0xf646('0xfc')]())_0x4b61b1[_0xf646('0x37')](_0x4cccbe)||_0x4b61b1[_0xf646('0x7f')](_0x4cccbe);_0x5e095d[_0xf646('0x70')]();}else{_0x4b61b1=_0x5e095d;for(const _0xd1793d of _0x26b269)_0x5e095d[_0xf646('0x37')](_0xd1793d)||_0x5e095d[_0xf646('0x7f')](_0xd1793d);}}if(_0x4b61b1)return _0x4b61b1;_0x19514e[_0xf646('0x44')]();for(const _0x3c2a36 of _0x26b269)for(const {suggestion:_0x2ff063,meta:_0x5a0eb6}of this[_0xf646('0xad')](_0x3c2a36,_0xf646('0x11b')))_0x5a0eb6[_0xf646('0x119')]&&_0x19514e[_0xf646('0x1')](_0x2ff063);for(const _0x230ad4 of _0x19514e){const _0x563121=_0x230ad4[_0xf646('0xfc')]();if(!_0x5ad746||!_0x5ad746[_0xf646('0x130')]){if(_0x26b269[_0xf646('0x74')](_0x362e54=>_0x563121['some'](_0x2ecc8c=>_0x2ecc8c[_0xf646('0x133')](_0x362e54,!0x0))))return _0x230ad4;}(!_0x230ad4[_0xf646('0x71')]||!_0x230ad4[_0xf646('0x71')][_0xf646('0x130')])&&(_0x563121[_0xf646('0x74')](_0x245c32=>_0x26b269[_0xf646('0xff')](_0x8a0f80=>_0x8a0f80[_0xf646('0x133')](_0x245c32,!0x0)))&&_0x230ad4[_0xf646('0xc6')]());}const _0x51a87f=_0x1111ee(),_0x5a60f7=_0x4e4065['id'],_0x4f7458='deletion:'+_0x3a823c,_0x577974=this[_0xf646('0xce')]({'id':_0x51a87f,'type':_0x4f7458,'createdAt':new Date(),'authorId':_0x5a60f7,'attributes':_0x5ad746});for(const _0x15644c of _0x26b269)_0x15644c[_0xf646('0x9')](),_0x15644c['isCollapsed']||_0xf646('0x3b')==_0x15644c['root']['rootName']||this[_0xf646('0x2')](_0x4f7458,_0x51a87f,_0x5a60f7,_0x15644c,_0x2ac3b5[_0xf646('0x56')]());return _0x577974;}[_0xf646('0x47')](_0x59ea9e,_0x193230){const _0x554ed8=_0x59ea9e[_0xf646('0xd3')]();this['_model']['change'](_0x465748=>{_0x465748[_0xf646('0xf5')](_0x554ed8,{'range':_0x193230});});}[_0xf646('0xb5')](_0x4fa0c1){const _0x47221d=_0x4fa0c1['id'],_0x5b5189=this[_0xf646('0x10a')][_0xf646('0x12d')][_0xf646('0x5')]('collaboration.channelId');this[_0xf646('0x1b')][_0xf646('0x3c')](_0x47221d)||this[_0xf646('0x1b')][_0xf646('0xe1')]({'channelId':_0x5b5189,'threadId':_0x47221d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x150640=this[_0xf646('0x1b')][_0xf646('0x84')](_0x47221d);_0x150640[_0xf646('0xb0')](_0xf646('0x120')),_0x150640[_0xf646('0x120')]=!0x1,_0x4fa0c1[_0xf646('0x9a')]=_0x150640;}['_checkSuggestionCorrectness'](_0x5633c9,_0x27d4d2,_0x504615,_0x54bce4){if(_0x5633c9[_0xf646('0x45')]!=_0x27d4d2||_0x5633c9[_0xf646('0xab')]!=_0x504615||_0x5633c9['creator']['id']!=_0x54bce4)throw this[_0xf646('0x10a')][_0xf646('0x4b')](_0xf646('0x5a')),new _0x12141c(_0xf646('0x5a'),this);}[_0xf646('0x3a')](_0x576294,_0xd55acc){const _0x53c805=_0x576294['getFirstRange']();if(_0xd55acc[_0xf646('0x12b')](_0x53c805))_0x576294['removeMarkers']();else{if(_0x53c805['containsRange'](_0xd55acc)){const _0x1a9348=this[_0xf646('0xb3')][_0xf646('0x50')](_0xd55acc['start']['nodeBefore'],_0xf646('0x75'));this['_setSuggestionRange'](_0x576294,this[_0xf646('0xb3')]['createRange'](_0x53c805[_0xf646('0xde')],_0x1a9348));const _0x45e23d=_0x1111ee(),_0x103fa4=_0x576294[_0xf646('0xef')]['id'],_0xea3c5e=_0x576294['type']+':'+_0x576294[_0xf646('0xab')];this[_0xf646('0xce')]({'id':_0x45e23d,'type':_0xea3c5e,'createdAt':new Date(),'authorId':_0x103fa4,'data':_0x576294[_0xf646('0x62')],'attributes':_0x576294[_0xf646('0x71')]});const _0x5a3456=this[_0xf646('0xb3')]['createPositionAt'](_0xd55acc[_0xf646('0x75')][_0xf646('0xc7')],_0xf646('0xf9')),_0x3fecb7=this[_0xf646('0xb3')]['createRange'](_0x5a3456,_0x53c805['end']);this[_0xf646('0x2')](_0xea3c5e,_0x45e23d,_0x103fa4,_0x3fecb7);}else{if(_0x53c805[_0xf646('0xf8')](_0xd55acc[_0xf646('0xde')])){const _0x2172f1=this[_0xf646('0xb3')][_0xf646('0x50')](_0xd55acc['start'][_0xf646('0x106')],_0xf646('0x75'));this[_0xf646('0x47')](_0x576294,this[_0xf646('0xb3')][_0xf646('0x10d')](_0x53c805[_0xf646('0xde')],_0x2172f1));}else{const _0x5d02da=this[_0xf646('0xb3')][_0xf646('0x50')](_0xd55acc['end'][_0xf646('0xc7')],_0xf646('0xf9'));this[_0xf646('0x47')](_0x576294,this[_0xf646('0xb3')][_0xf646('0x10d')](_0x5d02da,_0x53c805[_0xf646('0x75')]));}}}}[_0xf646('0x67')](_0x5e9af3){for(const {suggestion:_0x512ed6,meta:_0x2dc5dd}of this[_0xf646('0xad')](_0x5e9af3,_0xf646('0xaf'))){if(!_0x2dc5dd[_0xf646('0x119')])continue;const _0x344114=_0x512ed6[_0xf646('0xfc')]();for(const _0x36eefd of _0x344114)if(!_0x5e9af3['getDifference'](_0x36eefd)[_0xf646('0x91')])return!0x0;}return!0x1;}[_0xf646('0x73')](_0x1b4190){const _0x3bbf96=this['editor']['plugins']['get'](_0xf646('0x137'))[_0xf646('0x20')](_0x1b4190);if(!_0x3bbf96)throw new _0x12141c(_0xf646('0x6d'),this);return _0x3bbf96;}['_getExternalAuthor'](_0xe38fbb){const _0x5cb2e8=this[_0xf646('0x10a')][_0xf646('0xa9')][_0xf646('0x5')](_0xf646('0x137')),_0x2ddcaa=_0x160990(_0xf646('0x4e')+_0xe38fbb),_0x479f94=_0x5cb2e8['getUser'](_0x2ddcaa);return _0x479f94||_0x5cb2e8[_0xf646('0x104')]({'id':_0x2ddcaa,'name':_0xe38fbb});}[_0xf646('0x83')](_0x476295,_0x245f20,_0x4805a9,_0x5d7804,_0x49c05c){const _0x4e4cf8=this[_0xf646('0x73')](_0x5d7804),_0x15caa3=this[_0xf646('0xcf')]['buildSuggestion'](_0x476295,_0x245f20,_0x4805a9,_0x4e4cf8,_0x49c05c,_0x12454e=>this['_updateSuggestionData'](_0x4805a9,{'attributes':_0x12454e}));return this['listenTo'](_0x15caa3,'accept',()=>{this[_0xf646('0x23')](_0x4805a9,{'state':_0xf646('0xdc')});},{'priority':_0xf646('0xd9')}),this['listenTo'](_0x15caa3,'discard',()=>{this[_0xf646('0x23')](_0x4805a9,{'state':'rejected'});},{'priority':'high'}),this[_0xf646('0x8')]['set'](_0x4805a9,_0x15caa3),this[_0xf646('0x4a')]['set'](_0x15caa3,'notReady'),_0x15caa3;}[_0xf646('0xb7')](_0x188c50){const _0x469c25=_0x188c50[_0xf646('0x12c')](':');return{'group':_0x469c25[0x0],'type':_0x469c25[0x1],'subType':_0x469c25[_0xf646('0x91')]>=0x5?_0x469c25[0x2]:null,'id':_0x469c25['length']<0x5?_0x469c25[0x2]:_0x469c25[0x3],'authorId':_0x469c25[_0xf646('0x91')]<0x5?_0x469c25[0x3]:_0x469c25[0x4],'markerCount':0x6==_0x469c25[_0xf646('0x91')]?_0x469c25[0x5]:null};}[_0xf646('0x3d')](_0x7eecbb,_0x35924a,_0x5a40c8){const _0x1b3093=_0x7eecbb['getFirstRange'](),_0x27db27=_0x1b3093[_0xf646('0xde')],_0x43be37=_0x1b3093[_0xf646('0x75')];this['_setSuggestionRange'](_0x7eecbb,this['_model'][_0xf646('0x10d')](_0x27db27,_0x35924a));const _0x1d81bb=_0x1111ee(),_0x160638=_0x7eecbb[_0xf646('0xef')]['id'],_0x5f3b9d=_0x7eecbb[_0xf646('0x45')]+(_0x7eecbb[_0xf646('0xab')]?':'+_0x7eecbb[_0xf646('0xab')]:'');this[_0xf646('0xce')]({'id':_0x1d81bb,'type':_0x5f3b9d,'createdAt':new Date(),'authorId':_0x160638,'originalSuggestionId':_0x7eecbb['id'],'attributes':_0x7eecbb[_0xf646('0x71')],'data':_0x7eecbb[_0xf646('0x62')]}),_0xf646('0xf3')==_0x7eecbb[_0xf646('0x45')]&&(_0x5a40c8=this[_0xf646('0xb3')][_0xf646('0x82')](_0x5a40c8[_0xf646('0xc7')])),this[_0xf646('0x2')](_0x5f3b9d,_0x1d81bb,_0x160638,this[_0xf646('0xb3')][_0xf646('0x10d')](_0x5a40c8,_0x43be37));}[_0xf646('0xad')](_0x5c1ff6,_0x5403ef=null){const _0x5d4dbb=[],_0x4e4855=this['_model'][_0xf646('0x124')],_0x1a3ce6=this['editor'][_0xf646('0xa9')]['get'](_0xf646('0x137'))['me'];for(const _0x420d30 of this[_0xf646('0x26')]())if(_0x420d30[_0xf646('0x11c')]&&(!_0x5403ef||_0x420d30['type']==_0x5403ef))for(const _0x518965 of _0x420d30[_0xf646('0xfc')]()){const _0x118b76=_0x5c1ff6[_0xf646('0xde')][_0xf646('0x12b')](_0x518965['end'])||_0x5c1ff6[_0xf646('0x75')][_0xf646('0x12b')](_0x518965[_0xf646('0xde')]);if(_0x118b76||_0x5c1ff6['getIntersection'](_0x518965)){const _0x3a3216=_0x5c1ff6[_0xf646('0x133')](_0x518965)&&Bt(_0x4e4855,_0x518965['start'],_0x5c1ff6),_0x2b0948=_0x518965['containsRange'](_0x5c1ff6)&&Bt(_0x4e4855,_0x5c1ff6['start'],_0x518965);_0x5d4dbb[_0xf646('0xd7')]({'suggestion':_0x420d30,'meta':{'isOwn':_0x1a3ce6==_0x420d30['author'],'isNextTo':_0x118b76,'isInsideObject':_0x3a3216,'containsRangeInObject':_0x2b0948}});break;}}return _0x5d4dbb;}[_0xf646('0x2')](_0xf342c0,_0x425242,_0x5d663e,_0x2ed674,_0x52028f){this[_0xf646('0xb3')]['change'](_0x5c4301=>{let _0xe556ba=_0xf646('0x3e')+_0xf342c0+':'+_0x425242+':'+_0x5d663e;_0x52028f&&(_0xe556ba=_0xe556ba+':'+_0x52028f),_0x5c4301[_0xf646('0x86')](_0xe556ba,{'range':_0x2ed674,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xf646('0xdf')](_0x164149){const _0x59e40e=_0x164149['previous'],_0x33450e=_0x164149[_0xf646('0x90')];_0x164149[_0xf646('0xb1')]=null,null!=_0x59e40e&&(_0x59e40e[_0xf646('0x90')]=null),_0x164149[_0xf646('0x90')]=null,null!=_0x33450e&&(_0x33450e[_0xf646('0xb1')]=null),_0xf646('0xa4')==this[_0xf646('0x4a')]['get'](_0x164149)&&(this['_suggestionState'][_0xf646('0x125')](_0x164149,_0xf646('0xa0')),this['fire'](_0xf646('0xae'),_0x164149,_0x59e40e,_0x33450e));}[_0xf646('0xce')](_0x75b47d){const _0x3df815=_0x75b47d['id'],_0x4b0890=this[_0xf646('0xe8')](_0x75b47d);if(this['_adapter']&&this[_0xf646('0xee')][_0xf646('0xb8')]){const _0x1c9b7b=this[_0xf646('0x10a')][_0xf646('0xa9')][_0xf646('0x5')](_0xf646('0x105')),_0x266f9b=_0x4b0890[_0xf646('0xbe')],_0x216ee2=_0x4b0890[_0xf646('0xab')]?_0x4b0890[_0xf646('0x45')]+':'+_0x4b0890[_0xf646('0xab')]:_0x4b0890[_0xf646('0x45')],_0x56a89f=this['editor']['locale'],_0x496a2f=_0x1c9b7b[_0xf646('0x1')](_0x1fb6d6(_0x56a89f,'PENDING_ACTION_SUGGESTION')),_0x36179a={'id':_0x3df815,'type':_0x216ee2,'hasComments':_0x266f9b,'data':_0x75b47d[_0xf646('0x62')]||null,'originalSuggestionId':_0x75b47d['originalSuggestionId']||null,'attributes':_0x4b0890[_0xf646('0x71')]};this[_0xf646('0xee')]['addSuggestion'](_0x36179a)[_0xf646('0x2a')](_0x19a6a4=>{_0x4b0890[_0xf646('0xb4')]=!0x0,_0x1c9b7b[_0xf646('0x19')](_0x496a2f),_0x19a6a4&&_0x19a6a4['createdAt']&&(this[_0xf646('0x8')][_0xf646('0x5')](_0x3df815)[_0xf646('0xd2')]=_0x19a6a4[_0xf646('0xd2')]);})[_0xf646('0x32')](_0x41538f=>{throw _0x1ff280(_0xf646('0xfa')),this[_0xf646('0x10a')][_0xf646('0x4d')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x4b0890[_0xf646('0xc6')]();}),_0x4b0890[_0xf646('0x49')](),this['_suggestions'][_0xf646('0xcb')](_0x4b0890['id']),this['_suggestionState'][_0xf646('0xcb')](_0x4b0890),_0x41538f;});}return _0x4b0890;}['_updateSuggestionData'](_0x450518,_0x368648){const _0x5aae30=this[_0xf646('0x10a')][_0xf646('0xa9')]['get'](_0xf646('0x105')),_0x488af5=this[_0xf646('0xaa')](_0x450518);if(this[_0xf646('0xee')]&&this[_0xf646('0xee')][_0xf646('0xf')]){if(_0x488af5[_0xf646('0xb4')]){const _0x201b12=_0x5aae30[_0xf646('0x1')](_0x1fb6d6(this[_0xf646('0x10a')]['locale'],_0xf646('0xca')));this['_adapter'][_0xf646('0xf')](_0x450518,_0x368648)[_0xf646('0x2a')](()=>{_0x5aae30[_0xf646('0x19')](_0x201b12);});}else _0x488af5['on']('change:_saved',()=>{this[_0xf646('0x23')](_0x450518,_0x368648);});}}['_getSuggestionData'](_0x301649){if(!this[_0xf646('0xee')]||!this['_adapter'][_0xf646('0xaa')])throw new _0x12141c(_0xf646('0x33'),this);return this[_0xf646('0xee')][_0xf646('0xaa')](_0x301649);}[_0xf646('0x111')](_0x5e2ae4){const {id:_0x477d5c,type:_0x61d619,subType:_0x2921bd,authorId:_0x24da17}=this['_splitMarkerName'](_0x5e2ae4),_0x53b40e=this[_0xf646('0x8')][_0xf646('0x5')](_0x477d5c)||this[_0xf646('0x83')](_0x61d619,_0x2921bd,_0x477d5c,_0x24da17,{});switch(this['_checkSuggestionCorrectness'](_0x53b40e,_0x61d619,_0x2921bd,_0x24da17),this[_0xf646('0x4a')]['get'](_0x53b40e)){case'notReady':this['_getSuggestionData'](_0x477d5c)[_0xf646('0x2a')](_0x2f4472=>{let _0x15c615=Promise[_0xf646('0x25')]();_0x2f4472[_0xf646('0xbe')]&&(_0x15c615=this[_0xf646('0x1b')]['fetchCommentThread']({'channelId':this[_0xf646('0x10a')]['config'][_0xf646('0x5')]('collaboration.channelId'),'threadId':_0x477d5c})),_0x15c615[_0xf646('0x2a')](()=>{this[_0xf646('0xe8')](_0x2f4472)['_saved']=!0x0;});}),this[_0xf646('0x4a')][_0xf646('0x125')](_0x53b40e,_0xf646('0x36'));break;case _0xf646('0xa0'):this[_0xf646('0x23')](_0x477d5c,{'state':_0xf646('0x80')});case _0xf646('0x2c'):this['_suggestionState'][_0xf646('0x125')](_0x53b40e,_0xf646('0xa4')),this[_0xf646('0xcd')](_0xf646('0xc3'),_0x53b40e);break;case'ready':this[_0xf646('0xcd')](_0xf646('0x10'),_0x53b40e);}return _0x53b40e['addMarkerName'](_0x5e2ae4),_0x53b40e;}['_refreshSuggestionsChain'](_0x1f5535){const _0x25b97e=Array[_0xf646('0xd6')](_0x1f5535)['filter'](_0x391445=>!_0x391445[_0xf646('0xc4')]),_0x4a48e9=this['getSuggestions']({'skipNotAttached':!0x0})[_0xf646('0x66')](_0x44f029=>!_0x44f029[_0xf646('0xc4')]),_0x4276e2=_0x4a48e9['filter'](_0x32201d=>!_0x1f5535['has'](_0x32201d)),_0x661198=new Map(_0x4a48e9[_0xf646('0x3')](_0x33686a=>[_0x33686a,this['_suggestionFactory']['getSuggestionCallback'](_0x33686a[_0xf646('0x45')],_0x33686a[_0xf646('0xab')],_0xf646('0xe5'))])),_0x34daf3=new Map(_0x4a48e9[_0xf646('0x3')](_0x42f810=>[_0x42f810,_0x42f810[_0xf646('0x11f')]()])),_0x29af45=new Set(),_0x4bfc3c=new Set();for(let _0x4d8058=0x0;_0x4d8058<_0x25b97e[_0xf646('0x91')];_0x4d8058++)_0x90f447(_0x25b97e[_0x4d8058],_0x25b97e,_0x4d8058+0x1);for(let _0x38b996=0x0;_0x38b996<_0x25b97e['length'];_0x38b996++)_0x90f447(_0x25b97e[_0x38b996],_0x4276e2,0x0);for(let _0x74896d=0x0;_0x74896d<_0x25b97e[_0xf646('0x91')];_0x74896d++){const _0xe2004b=_0x25b97e[_0x74896d];!_0x4bfc3c[_0xf646('0x107')](_0xe2004b)&&_0xe2004b['previous']&&(_0xe2004b['previous'][_0xf646('0x90')]===_0xe2004b&&(_0xe2004b[_0xf646('0xb1')][_0xf646('0x90')]=null),_0xe2004b[_0xf646('0xb1')]=null),!_0x29af45[_0xf646('0x107')](_0xe2004b)&&_0xe2004b[_0xf646('0x90')]&&(_0xe2004b[_0xf646('0x90')][_0xf646('0xb1')]===_0xe2004b&&(_0xe2004b[_0xf646('0x90')]['previous']=null),_0xe2004b[_0xf646('0x90')]=null);}function _0x90f447(_0x1d101a,_0x14d9ab,_0x1ae5e0){for(let _0x2716ab=_0x1ae5e0;_0x2716ab<_0x14d9ab[_0xf646('0x91')];_0x2716ab++){const _0x547ef7=_0x59904e(_0x1d101a,_0x14d9ab[_0x2716ab]);_0x547ef7&&(_0x547ef7[0x0][_0xf646('0x90')]=_0x547ef7[0x1],_0x547ef7[0x1][_0xf646('0xb1')]=_0x547ef7[0x0],_0x29af45['add'](_0x547ef7[0x0]),_0x4bfc3c[_0xf646('0x1')](_0x547ef7[0x1]));}}function _0x59904e(_0x499da4,_0x5de24f){if(_0x499da4[_0xf646('0xa2')]['id']!==_0x5de24f[_0xf646('0xa2')]['id'])return null;const _0x1caa24=_0x661198['get'](_0x499da4)(_0x499da4,_0x5de24f,_0x34daf3[_0xf646('0x5')](_0x499da4),_0x34daf3[_0xf646('0x5')](_0x5de24f));if(!_0x1caa24)return null;return _0x661198[_0xf646('0x5')](_0x5de24f)(_0x499da4,_0x5de24f,_0x34daf3[_0xf646('0x5')](_0x499da4),_0x34daf3[_0xf646('0x5')](_0x5de24f))?_0x1caa24[0x1][_0xf646('0x9a')]&&_0x1caa24[0x1][_0xf646('0x9a')][_0xf646('0x91')]?null:_0x1caa24:null;}}['_joinWithAdjacentSuggestions'](_0xcd3d93){const _0x50b20c=Array['from'](_0xcd3d93),_0x2fbd64=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe94f17=_0x2fbd64[_0xf646('0x66')](_0x56840b=>!_0xcd3d93['has'](_0x56840b)),_0x5ee3b0=new Map(_0x50b20c['map'](_0x481f82=>[_0x481f82,this[_0xf646('0xcf')][_0xf646('0x4f')](_0x481f82[_0xf646('0x45')],_0x481f82[_0xf646('0xab')],_0xf646('0x64'))])),_0x17a777=new Map(_0x2fbd64[_0xf646('0x3')](_0x192f45=>[_0x192f45,_0x192f45[_0xf646('0xfc')]()]));for(let _0x5e5020=0x0;_0x5e5020<_0x50b20c[_0xf646('0x91')];_0x5e5020++){if(_0x4c0eb9(this,_0x50b20c[_0x5e5020],_0x50b20c,_0x5e5020+0x1))return!0x0;}for(let _0x434ce1=0x0;_0x434ce1<_0x50b20c[_0xf646('0x91')];_0x434ce1++){if(_0x4c0eb9(this,_0x50b20c[_0x434ce1],_0xe94f17,0x0))return!0x0;}return!0x1;function _0x4c0eb9(_0x5e8526,_0x3ba2a1,_0x5c05d7,_0x4c8931){for(let _0x687faa=_0x4c8931;_0x687faa<_0x5c05d7[_0xf646('0x91')];_0x687faa++){const _0x4cd8a4=_0x5c05d7[_0x687faa];if(_0x4cd8a4['type']!==_0x3ba2a1[_0xf646('0x45')]||_0x4cd8a4[_0xf646('0xa2')]['id']!==_0x3ba2a1['author']['id']||_0x4cd8a4['subType']!==_0x3ba2a1[_0xf646('0xab')])continue;const _0x220af7=_0x5ee3b0[_0xf646('0x5')](_0x3ba2a1),_0x56f7a4=_0x17a777[_0xf646('0x5')](_0x3ba2a1),_0x32e33f=_0x17a777[_0xf646('0x5')](_0x4cd8a4),_0x4706bc=_0x3ba2a1[_0xf646('0x9a')]&&_0x3ba2a1[_0xf646('0x9a')][_0xf646('0x91')],_0x4ef56f=_0x4cd8a4[_0xf646('0x9a')]&&_0x4cd8a4[_0xf646('0x9a')][_0xf646('0x91')];if(!_0x4706bc&&_0x220af7(_0x32e33f,_0x56f7a4))return _0x5e8526[_0xf646('0xa7')](_0x4cd8a4,_0x3ba2a1),_0x17a777[_0xf646('0xcb')](_0x3ba2a1),!0x0;if(!_0x4ef56f&&_0x220af7(_0x56f7a4,_0x32e33f))return _0x5e8526[_0xf646('0xa7')](_0x3ba2a1,_0x4cd8a4),_0x17a777[_0xf646('0xcb')](_0x4cd8a4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x690457,_0x38a79d){if(_0x690457[_0xf646('0xc4')])for(const _0x44a428 of _0x38a79d[_0xf646('0xfc')]())_0x690457['addRange'](_0x44a428);else{const _0x1174c7=_0x38a79d[_0xf646('0x11f')]()[_0xf646('0x75')];this[_0xf646('0x47')](_0x690457,this[_0xf646('0xb3')][_0xf646('0x10d')](_0x690457[_0xf646('0x11f')]()[_0xf646('0xde')],_0x1174c7));}_0x38a79d[_0xf646('0x70')]();}}class Dt{constructor(_0x4679f9){this['_editor']=_0x4679f9,this[_0xf646('0xb3')]=_0x4679f9[_0xf646('0x4d')],this[_0xf646('0x132')]=new Map(),this[_0xf646('0x79')]=new Map(),this[_0xf646('0x113')]();}[_0xf646('0x4')](_0x540140,_0x230394,_0x180234,_0x91794,_0x5b6ef3,_0x259dbe){return new _0x2ac3b5(this['_model'],{'type':_0x540140,'subType':_0x230394,'id':_0x180234,'author':_0x91794,'creator':_0x91794,'attributes':_0x5b6ef3,'onAttributesChange':_0x259dbe,'onAccept':(..._0x2f9650)=>this[_0xf646('0x4f')](_0x540140,_0x230394,_0xf646('0x5b'))(..._0x2f9650),'onDiscard':(..._0x320e64)=>this['getSuggestionCallback'](_0x540140,_0x230394,_0xf646('0xc6'))(..._0x320e64)});}[_0xf646('0x9e')](_0x3a9b91,_0x4dc42,_0x1e3f6f,_0x294aaa){const _0xf1b567=_0x3a9b91+':'+_0x4dc42+':'+_0x1e3f6f;this[_0xf646('0x132')][_0xf646('0x125')](_0xf1b567,_0x294aaa);}['getSuggestionCallback'](_0x1b1a4e,_0x2af20d,_0x259b6f){const _0x4c6ba6=_0x1b1a4e+':'+_0x2af20d+':'+_0x259b6f;return this['_customCallbacks'][_0xf646('0x5')](_0x4c6ba6)||this[_0xf646('0x79')][_0xf646('0x5')](_0x1b1a4e+':'+_0x259b6f);}[_0xf646('0x113')](){const _0x1df5a6=()=>{},_0x55cbcf=_0x467ebf=>{_0x467ebf[_0xf646('0x17')]((_0x2e0b3e,_0x437129)=>_0x2e0b3e[_0xf646('0xde')][_0xf646('0x1d')](_0x437129[_0xf646('0xde')])?0x1:-0x1),this[_0xf646('0xb3')][_0xf646('0x6e')](_0x3c4ba4=>{for(const _0x42143f of _0x467ebf){let _0x283e96;_0x283e96=_0x42143f[_0xf646('0x75')][_0xf646('0x117')]&&_0x42143f[_0xf646('0x75')][_0xf646('0xc7')]==_0x42143f['start'][_0xf646('0xe4')]?_0x3c4ba4['createSelection'](_0x42143f[_0xf646('0xde')][_0xf646('0xe4')],'on'):_0x3c4ba4[_0xf646('0x138')](_0x42143f),this[_0xf646('0xb3')][_0xf646('0x10f')](_0x283e96,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x414647=(_0x1a0c85,_0x3dcf2e)=>{this['_model'][_0xf646('0x6e')](_0xc49c4d=>{const {commandName:_0x361d4c,commandParams:_0x649f8a=[]}=_0x3dcf2e,_0x2bcc0a=_0x1a0c85[_0xf646('0x3')](_0x39898c=>(_t(_0x39898c)&&(_0x39898c=this[_0xf646('0xb3')][_0xf646('0x10d')](_0x39898c[_0xf646('0x75')])),_0x39898c))[_0xf646('0x66')](_0x1de24a=>_0xf646('0x3b')!==_0x1de24a[_0xf646('0xa8')][_0xf646('0x55')]);if(_0x2bcc0a[_0xf646('0x91')]<0x1)return;const _0x1239d5=Array[_0xf646('0xd6')](this['_model']['document']['selection'][_0xf646('0xfc')]())[_0xf646('0x3')](_0x3d58ac=>_0x439dfc[_0xf646('0x7d')](_0x3d58ac));_0xc49c4d['setSelection'](_0x2bcc0a);for(const _0x5eb3cc of this[_0xf646('0x31')][_0xf646('0x2e')]['commands']())_0x5eb3cc[_0xf646('0x51')]();_0x649f8a[_0xf646('0xd7')]({'forceDefaultExecution':!0x0}),this[_0xf646('0x31')][_0xf646('0x5d')](_0x361d4c,..._0x649f8a);const _0x59427b=_0x1239d5[_0xf646('0x66')](_0x58b7cb=>'$graveyard'!=_0x58b7cb[_0xf646('0xa8')]['rootName']);_0x59427b['length']>0x0&&_0xc49c4d[_0xf646('0x12e')](_0x59427b);for(const _0x564245 of _0x1239d5)_0x564245[_0xf646('0x9')]();});},_0x1d2e7b=(_0x47b6c5,_0x9424c6)=>0x1==_0x47b6c5[_0xf646('0x91')]&&0x1==_0x9424c6[_0xf646('0x91')]&&_0x47b6c5[0x0][_0xf646('0x75')]['isEqual'](_0x9424c6[0x0][_0xf646('0xde')]),_0x4321e7=(_0x3184f4,_0x53a88c,_0x184bf6,_0x4dbaa7)=>xt(_0x3184f4,_0x53a88c,_0x184bf6,_0x4dbaa7,this[_0xf646('0xb3')])?[_0x3184f4,_0x53a88c]:xt(_0x53a88c,_0x3184f4,_0x4dbaa7,_0x184bf6,this['_model'])?[_0x53a88c,_0x3184f4]:null;this[_0xf646('0x79')]['set'](_0xf646('0x53'),_0x1df5a6),this[_0xf646('0x79')][_0xf646('0x125')]('insertion:discard',_0x55cbcf),this[_0xf646('0x79')][_0xf646('0x125')](_0xf646('0x116'),_0x1d2e7b),this[_0xf646('0x79')]['set']('insertion:chain',_0x4321e7),this['_defaultCallbacks'][_0xf646('0x125')]('deletion:accept',_0x55cbcf),this[_0xf646('0x79')]['set'](_0xf646('0xe0'),_0x1df5a6),this['_defaultCallbacks']['set']('deletion:join',_0x1d2e7b),this['_defaultCallbacks'][_0xf646('0x125')](_0xf646('0x98'),_0x4321e7),this[_0xf646('0x79')][_0xf646('0x125')]('formatInline:accept',_0x414647),this[_0xf646('0x79')]['set']('formatInline:discard',_0x1df5a6),this['_defaultCallbacks']['set'](_0xf646('0xa1'),_0x1d2e7b),this[_0xf646('0x79')]['set'](_0xf646('0x14'),_0x1df5a6),this[_0xf646('0x79')]['set'](_0xf646('0x6'),_0x414647),this[_0xf646('0x79')]['set']('formatBlock:discard',_0x1df5a6),this[_0xf646('0x79')][_0xf646('0x125')](_0xf646('0x18'),_0x1d2e7b),this[_0xf646('0x79')][_0xf646('0x125')](_0xf646('0x131'),_0x1df5a6);}}function Bt(_0x56a957,_0x5e9b04,_0x150f61){for(const _0x5cb431 of _0x5e9b04['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5cb431[_0xf646('0xa8')]==_0x5cb431)return!0x1;if(!_0x150f61['containsItem'](_0x5cb431))return!0x1;if(_0x56a957[_0xf646('0xbb')](_0x5cb431)||_0x56a957[_0xf646('0x63')](_0x5cb431))return!0x0;}return!0x1;}function _t(_0x38893d){return _0x38893d['end'][_0xf646('0xc7')]==_0x38893d['start']['nodeAfter']&&_0x38893d[_0xf646('0x75')]['isAtStart'];}function Mt(_0x51cf8d,_0x5c3700,_0x5b8f57,_0x1274d9){const _0x2145ec=_0x380f0e=>!_0x380f0e[_0xf646('0x59')]['is'](_0xf646('0x22'))&&!_0x1274d9[_0xf646('0xbb')](_0x380f0e[_0xf646('0x59')]),_0x2f2d77=_0x51cf8d[_0xf646('0xde')][_0xf646('0x27')](_0x2145ec),_0x4d2485=_0x51cf8d[_0xf646('0x75')][_0xf646('0x27')](_0x2145ec,{'direction':'backward'});return(!_0x51cf8d[_0xf646('0xde')][_0xf646('0x12b')](_0x2f2d77)||!_0x51cf8d['end'][_0xf646('0x12b')](_0x4d2485))&&(_0x2f2d77[_0xf646('0x1d')](_0x4d2485)?_0x5b8f57[_0xf646('0xf5')](_0x5c3700,{'range':_0x5b8f57[_0xf646('0x10d')](_0x2f2d77,_0x4d2485)}):_0x5b8f57[_0xf646('0x9f')](_0x5c3700),!0x0);}function $t(_0x11b794){return _0x160990(_0x11b794);}function Nt(_0x2ea9e8){const _0x1573ef=_0x2ea9e8[_0xf646('0xde')]['nodeAfter'];return _0x1573ef&&_0x1573ef['is'](_0xf646('0x8e'));}function Rt(_0x526910,_0x38f315){const _0x421609=_0x38f315[_0xf646('0x124')][_0xf646('0xbb')](_0x526910)||_0x38f315[_0xf646('0x124')][_0xf646('0x6f')](_0x526910);return _0x38f315[_0xf646('0x10d')](_0x38f315[_0xf646('0x50')](_0x526910,_0xf646('0x38')),_0x421609?_0x38f315[_0xf646('0x1f')](_0x526910):_0x38f315[_0xf646('0x50')](_0x526910,_0xf646('0x75')));}function xt(_0x1cec23,_0x25cd6d,_0x1a9719,_0x2dcfc0,_0x34a78c){if(_0x1a9719['end']['isEqual'](_0x2dcfc0[_0xf646('0xde')]))return!0x0;if(_0x1cec23[_0xf646('0x45')]!=_0x25cd6d[_0xf646('0x45')])return!0x1;if(!_0x1a9719[_0xf646('0x75')][_0xf646('0x5e')](_0x2dcfc0[_0xf646('0xde')]))return!0x1;const _0x1fc203=_0x34a78c['createRange'](_0x1a9719[_0xf646('0x75')],_0x2dcfc0['start'])['getWalker']();for(const _0x181930 of _0x1fc203)if([_0xf646('0xe7'),_0xf646('0x54')]['includes'](_0x181930[_0xf646('0x45')])&&_0x34a78c[_0xf646('0x124')][_0xf646('0x63')](_0x181930[_0xf646('0x59')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a63=['set','length','comments.maxCommentsWhenCollapsed','_disableComments','acceptButton','comments.maxCommentCharsWhenCollapsed','suggestionChanged','map','stopListening','trackChanges','buttonView','value','registerAnnotation','requires','getAllAdjacentSuggestions','_suggestionToController','acceptAllSuggestions','isDirty','toMany','change:previous','comments.editorConfig','addSourceCollector','_annotationViews','addComment','commands','getByInnerView','model','isMultiRange','Accept\x20all\x20selected\x20suggestions','unbind','lowest','isOn','filter','type','_refreshActiveMarkers','getJoined','config','getRanges','_descriptionFactory','get','getFirstRange','getMarkers','isInContent','execute','suggestion-','delete','from','refreshSelectedViews','getSuggestion','destroy','_createUIButton','_viewToController','suggestionUnloaded','pluginName','focus','change:activeAnnotations','Discard\x20all\x20selected\x20suggestions','bind','source','define','separator','switchbutton','innerView','_initializeController','CommentsRepository','componentFactory','size','discardSelectedSuggestions','arrowView','isEnabled','_updateController','editor','descriptionParts','init','Discard\x20all\x20suggestions','add','hasSuggestion','createAnnotation','mainView','commentThread','comments.maxThreadTotalWeight','plugins','_handleControllerBuffer','suggestionLoaded','keys','_destroyController','has','head','locale','editing','listenTo','EditorAnnotations','button','Accept\x20all\x20suggestions','clear','TrackChangesEditing','trackChanges.disableComments','acceptSelectedSuggestions','push','Annotations','getDescriptions','remove','comments','view','_handleSuggestionControllerDelayed'];(function(_0x2a1ba0,_0x4a632a){const _0x494a90=function(_0x35f3a7){while(--_0x35f3a7){_0x2a1ba0['push'](_0x2a1ba0['shift']());}};_0x494a90(++_0x4a632a);}(_0x4a63,0x115));const _0x494a=function(_0x2a1ba0,_0x4a632a){_0x2a1ba0=_0x2a1ba0-0x0;let _0x494a90=_0x4a63[_0x2a1ba0];return _0x494a90;};import{Plugin as _0x160001}from'ckeditor5/src/core';import{Collection as _0x104f5b}from'ckeditor5/src/utils';import{Model as _0x43683b,SplitButtonView as _0x438181,createDropdown as _0x65e1aa,addListToDropdown as _0x3b7059}from'ckeditor5/src/ui';import{Users as _0x5bcc09,getDateTimeFormatter as _0x209d1d,getAllMarkersDomElementsSorted as _0x2c13bc}from'ckeditor5-collaboration/src/collaboration-core';import _0x5c04e7 from'./trackchangesediting';import _0x2db13b from'./ui/suggestioncontroller';import _0x5ea045 from'./ui/view/suggestionthreadview';import{getTranslation as _0x518e2d}from'./utils/common-translations';import _0x330fe6 from'../theme/icons/track-changes.svg';export default class d extends _0x160001{static get[_0x494a('0x33')](){return[_0x5c04e7,_0x5bcc09,'CommentsRepository',_0x494a('0x20'),_0x494a('0x18')];}static get[_0x494a('0x5b')](){return'TrackChangesUI';}constructor(_0x12502b){super(_0x12502b),this[_0x494a('0x35')]=new Map(),this[_0x494a('0x59')]=new Map(),this[_0x494a('0x3c')]=new Map(),this[_0x494a('0xf')]=new Map();const _0x170ccf=this[_0x494a('0x4')][_0x494a('0x4a')];_0x170ccf[_0x494a('0x61')]('trackChanges.SuggestionThreadView',_0x5ea045),_0x170ccf['define']('trackChanges.disableComments',!0x1),this[_0x494a('0x29')]=_0x170ccf[_0x494a('0x4d')](_0x494a('0x1d'));}['_handleSuggestionControllerDelayed'](_0x379df0,_0x4359fb){0x0===this[_0x494a('0xf')][_0x494a('0x68')]&&setTimeout(()=>{for(const [_0x52c1bf,_0x41f7f7]of this[_0x494a('0xf')]){const _0x156b6d=this[_0x494a('0x35')][_0x494a('0x13')](_0x52c1bf);_0x156b6d||_0x41f7f7?_0x156b6d&&_0x41f7f7&&this[_0x494a('0x12')](_0x52c1bf):this[_0x494a('0x65')](_0x52c1bf);}this[_0x494a('0x4')][_0x494a('0xe')][_0x494a('0x4d')](_0x494a('0x18'))[_0x494a('0x55')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x494a('0x1b')]();},0xa),this['_handleControllerBuffer']['set'](_0x379df0,_0x4359fb);}[_0x494a('0x6')](){const _0x4f7508=this[_0x494a('0x4')],_0x346e42=_0x4f7508[_0x494a('0xe')][_0x494a('0x4d')](_0x494a('0x1c')),_0x179952=_0x4f7508['plugins'][_0x494a('0x4d')](_0x494a('0x20')),_0x504890=_0x4f7508[_0x494a('0xe')][_0x494a('0x4d')]('EditorAnnotations'),_0x22c4bc=_0x4f7508[_0x494a('0xe')]['get']('CommentsRepository');_0x4f7508['ui'][_0x494a('0x67')][_0x494a('0x8')](_0x494a('0x2f'),_0x44196a=>this[_0x494a('0x58')](_0x44196a)),_0x504890[_0x494a('0x3b')](()=>{const _0x5e7154=[];for(const [_0x22f761,_0x3aa94c]of Array[_0x494a('0x54')](this[_0x494a('0x35')])){const _0x41202d=_0x22f761[_0x494a('0x34')](),_0x4adc53=[];for(const _0x2a4f67 of _0x41202d){if(!_0x2a4f67['isInContent'])continue;if(_0x2a4f67[_0x494a('0x41')]){_0x4adc53[_0x494a('0x1f')](..._0x2a4f67[_0x494a('0x4b')]());continue;}const _0xc33be4=_0x2a4f67[_0x494a('0x4e')]();if(_0x4adc53[_0x494a('0x27')]>0x0){const _0x185d19=_0x4adc53[0x0][_0x494a('0x49')](_0xc33be4);if(_0x185d19){_0x4adc53[0x0]=_0x185d19;continue;}}_0x4adc53[_0x494a('0x1f')](_0xc33be4);}_0x5e7154[_0x494a('0x1f')]([_0x3aa94c[_0x494a('0x24')],_0x4adc53]);}return _0x5e7154;}),this['listenTo'](_0x346e42,_0x494a('0x10'),(_0x42a606,_0x648407)=>{this[_0x494a('0x17')](_0x648407,_0x494a('0x39'),(_0xae19f7,_0x4e8ca0,_0x10fd40,_0x197150)=>{_0x648407[_0x494a('0x50')]&&(null==_0x10fd40?(this['_updateController'](_0x197150['head']),this[_0x494a('0x25')](_0x648407,!0x1)):(this[_0x494a('0x3')](_0x10fd40[_0x494a('0x14')]),this[_0x494a('0x25')](_0x648407,!0x0)));}),null===_0x648407['previous']?this[_0x494a('0x25')](_0x648407,!0x1):this[_0x494a('0x3')](_0x648407[_0x494a('0x14')]);}),this[_0x494a('0x17')](_0x346e42,_0x494a('0x5a'),(_0x4b586f,_0x1129b0,_0x428a6d)=>{this[_0x494a('0x2e')](_0x1129b0,_0x494a('0x39')),this[_0x494a('0xf')][_0x494a('0x53')](_0x1129b0);const _0x185d33=_0x428a6d?_0x428a6d[_0x494a('0x14')]:_0x1129b0,_0x338dd9=this[_0x494a('0x35')]['get'](_0x185d33);null!==_0x428a6d&&this[_0x494a('0x3')](_0x185d33),null===_0x428a6d&&_0x338dd9&&this[_0x494a('0x12')](_0x1129b0);}),this['listenTo'](_0x346e42,_0x494a('0x2c'),(_0x414cb9,_0x232cb5)=>{this['_updateController'](_0x232cb5);}),this[_0x494a('0x17')](_0x179952,_0x494a('0x5d'),()=>{this[_0x494a('0x48')]();}),this[_0x494a('0x17')](_0x22c4bc,_0x494a('0x3d'),(_0x3b6022,{threadId:_0x1281f4,isFromAdapter:_0x1388e8})=>{if(_0x1388e8||!_0x346e42[_0x494a('0x9')](_0x1281f4))return;const _0x29ca5f=_0x346e42[_0x494a('0x56')](_0x1281f4);this[_0x494a('0x35')][_0x494a('0x4d')](_0x29ca5f)[_0x494a('0x24')]['focus']();},{'priority':_0x494a('0x44')});}[_0x494a('0x48')](){const _0x39f9c9=this[_0x494a('0x4')][_0x494a('0xe')]['get']('Annotations'),_0x380192=this[_0x494a('0x4')][_0x494a('0xe')]['get'](_0x494a('0x1c')),_0x315674=Array['from'](_0x39f9c9['activeAnnotations'],_0x114ef4=>_0x114ef4[_0x494a('0x64')])[_0x494a('0x46')](_0x46c64f=>this[_0x494a('0x59')][_0x494a('0x13')](_0x46c64f)),_0x987c76=[];for(const _0x3609ae of _0x315674){const _0x2e1bfa=this[_0x494a('0x59')]['get'](_0x3609ae)[_0x494a('0x40')]['getAllAdjacentSuggestions']();_0x987c76[_0x494a('0x1f')](..._0x2e1bfa['reduce']((_0x4a5a48,_0xd66438)=>[..._0x4a5a48,..._0xd66438['getMarkerNames']()],[]));}_0x380192['activeMarkers']=_0x987c76;}[_0x494a('0x58')](_0x3a63c3){const _0x1f49cf=_0x65e1aa(_0x3a63c3,_0x438181),_0x2734a=this[_0x494a('0x4')][_0x494a('0x3e')][_0x494a('0x4d')](_0x494a('0x2f')),_0x5aa407=_0x518e2d(_0x3a63c3,'Track\x20changes');_0x1f49cf[_0x494a('0x30')]['set']({'tooltip':_0x5aa407,'label':_0x5aa407,'icon':_0x330fe6}),_0x1f49cf[_0x494a('0x30')][_0x494a('0x5f')](_0x494a('0x45'))['to'](_0x2734a,_0x494a('0x31')),_0x1f49cf[_0x494a('0x30')]['on'](_0x494a('0x51'),()=>{_0x2734a[_0x494a('0x51')](),this[_0x494a('0x4')][_0x494a('0x16')][_0x494a('0x24')][_0x494a('0x5c')]();});const _0x212ac2=new _0x104f5b(),_0x116e79=[{'type':_0x494a('0x63'),'model':{'withText':!0x0,'label':_0x5aa407,'commandName':_0x494a('0x2f')}},{'type':_0x494a('0x62')},{'type':_0x494a('0x19'),'model':{'withText':!0x0,'label':_0x518e2d(_0x3a63c3,_0x494a('0x1a')),'commandName':_0x494a('0x36')}},{'type':_0x494a('0x19'),'model':{'withText':!0x0,'label':_0x518e2d(_0x3a63c3,_0x494a('0x42')),'commandName':_0x494a('0x1e')}},{'type':_0x494a('0x19'),'model':{'withText':!0x0,'label':_0x518e2d(_0x3a63c3,_0x494a('0x7')),'commandName':'discardAllSuggestions'}},{'type':_0x494a('0x19'),'model':{'withText':!0x0,'label':_0x518e2d(_0x3a63c3,_0x494a('0x5e')),'commandName':_0x494a('0x0')}}];for(const _0xbee444 of _0x116e79){let _0x1f464e={'type':_0x494a('0x62')};if(_0xbee444[_0x494a('0x40')]){const _0x5bb36a=new _0x43683b(_0xbee444[_0x494a('0x40')]),_0x5843b8=this[_0x494a('0x4')][_0x494a('0x3e')][_0x494a('0x4d')](_0x5bb36a['commandName']);_0x5bb36a['bind'](_0x494a('0x45'),_0x494a('0x2'))['to'](_0x5843b8,_0x494a('0x31'),_0x494a('0x2')),_0x1f464e={'type':_0xbee444[_0x494a('0x47')],'model':_0x5bb36a};}_0x212ac2[_0x494a('0x8')](_0x1f464e);}_0x3b7059(_0x1f49cf,_0x212ac2);const _0x12c2f2=_0x116e79[_0x494a('0x46')](_0x2da78c=>null!=_0x2da78c[_0x494a('0x40')])[_0x494a('0x2d')](_0x3cf767=>this['editor'][_0x494a('0x3e')][_0x494a('0x4d')](_0x3cf767[_0x494a('0x40')]['commandName'])),_0x280cae=_0x1f49cf[_0x494a('0x30')];return _0x280cae['actionView'][_0x494a('0x43')](_0x494a('0x2')),_0x280cae[_0x494a('0x1')][_0x494a('0x43')](_0x494a('0x2')),_0x280cae['actionView'][_0x494a('0x5f')](_0x494a('0x2'))['to'](_0x2734a,'isEnabled'),_0x280cae[_0x494a('0x1')][_0x494a('0x5f')](_0x494a('0x2'))[_0x494a('0x38')](_0x12c2f2,'isEnabled',(..._0x3218fa)=>_0x3218fa['some'](_0x3038bd=>_0x3038bd)),_0x1f49cf['on'](_0x494a('0x51'),_0x2267ae=>{this[_0x494a('0x4')][_0x494a('0x51')](_0x2267ae[_0x494a('0x60')]['commandName']),this[_0x494a('0x4')][_0x494a('0x16')][_0x494a('0x24')][_0x494a('0x5c')]();}),_0x1f49cf;}[_0x494a('0x65')](_0x56f152){const _0x1612fd=this[_0x494a('0x4')],_0x532ddd=_0x1612fd['config'],_0xc8a03c=_0x1612fd['plugins'][_0x494a('0x4d')](_0x494a('0x20')),_0x58a1f6=_0x1612fd[_0x494a('0xe')][_0x494a('0x4d')](_0x494a('0x66')),_0x1144b4=_0x1612fd['plugins'][_0x494a('0x4d')](_0x494a('0x18')),_0xda3763=_0x1612fd[_0x494a('0xe')][_0x494a('0x4d')](_0x5bcc09)['me'],_0x280d17=_0x532ddd[_0x494a('0x4d')](_0x494a('0x2f'))['SuggestionThreadView'],{CommentsListView:_0x9bf3ad,CommentThreadInputView:_0x37d0e7}=_0x1612fd[_0x494a('0xe')]['get']('CommentsUI');let _0x21d12b,_0x29ad63;this[_0x494a('0x3c')][_0x494a('0x13')](_0x56f152['id'])?(_0x29ad63=this[_0x494a('0x3c')][_0x494a('0x4d')](_0x56f152['id']),_0x21d12b=_0x29ad63[_0x494a('0xb')]):(_0x21d12b=new _0x280d17(_0x1612fd[_0x494a('0x15')],_0x56f152,_0xda3763,{'disableComments':this[_0x494a('0x29')],'editorConfig':_0x532ddd[_0x494a('0x4d')](_0x494a('0x3a')),'maxCommentsWhenCollapsed':_0x532ddd[_0x494a('0x4d')](_0x494a('0x28')),'maxThreadTotalWeight':_0x532ddd[_0x494a('0x4d')](_0x494a('0xd')),'maxCommentCharsWhenCollapsed':_0x532ddd[_0x494a('0x4d')](_0x494a('0x2b')),'formatDateTime':_0x209d1d(_0x532ddd[_0x494a('0x4d')](_0x494a('0x15'))),'CommentView':_0x532ddd[_0x494a('0x4d')](_0x494a('0x23'))['CommentView'],'CommentsListView':_0x9bf3ad,'CommentThreadInputView':_0x37d0e7}),_0x21d12b[_0x494a('0x2a')]['on']('execute',()=>{_0x1612fd[_0x494a('0x16')]['view'][_0x494a('0x5c')]();}),_0x21d12b['discardButton']['on']('execute',()=>{_0x1612fd[_0x494a('0x16')][_0x494a('0x24')][_0x494a('0x5c')]();}),_0x29ad63=_0xc8a03c['createAnnotationView'](this[_0x494a('0x4')]['locale'],_0x21d12b),_0x29ad63[_0x494a('0x5f')]('isDirty')['to'](_0x21d12b,_0x494a('0x37')),_0x29ad63['bind'](_0x494a('0x27'))['to'](_0x21d12b),_0x29ad63[_0x494a('0x5f')]('type')['to'](_0x21d12b,_0x494a('0x47'),_0x3cf823=>_0x494a('0x52')+_0x3cf823),this[_0x494a('0x3c')][_0x494a('0x26')](_0x56f152['id'],_0x29ad63));const _0x284771=_0x58a1f6['createCommentThreadController'](_0x56f152[_0x494a('0xc')],_0x21d12b),_0x27412a=new _0x2db13b(_0x1612fd,_0x56f152,_0x21d12b,_0x284771),_0x35fdc3=_0x56f152[_0x494a('0x34')]()[_0x494a('0x46')](_0x26ff8f=>_0x26ff8f[_0x494a('0x50')]);_0x21d12b[_0x494a('0x5')]=_0x1612fd[_0x494a('0xe')][_0x494a('0x4d')]('TrackChangesEditing')[_0x494a('0x4c')][_0x494a('0x21')](_0x35fdc3),this[_0x494a('0x35')]['set'](_0x56f152,_0x27412a),this['_viewToController']['set'](_0x21d12b,_0x27412a);const _0x5d72d8=_0xc8a03c[_0x494a('0xa')]({'view':_0x29ad63,'target':()=>{const _0x341a70=[],_0x55258d=_0x56f152[_0x494a('0x34')]()[_0x494a('0x46')](_0x450c38=>_0x450c38[_0x494a('0x50')]);for(const _0x8a608c of _0x55258d)_0x341a70[_0x494a('0x1f')](..._0x8a608c[_0x494a('0x4f')]());return _0x2c13bc(_0x1612fd[_0x494a('0x16')],_0x341a70);},'type':()=>_0x494a('0x52')+_0x27412a[_0x494a('0x24')][_0x494a('0x47')]});_0xc8a03c[_0x494a('0x8')](_0x5d72d8),_0x1144b4[_0x494a('0x32')](_0x5d72d8);}['_destroyController'](_0x28548c){const _0x1930ec=this[_0x494a('0x4')]['plugins'][_0x494a('0x4d')]('Annotations'),_0x1ca26f=this[_0x494a('0x35')]['get'](_0x28548c),_0x3aea59=_0x1ca26f[_0x494a('0x24')],_0x196581=_0x1930ec[_0x494a('0x3f')](_0x3aea59);_0x196581&&_0x1930ec[_0x494a('0x22')](_0x196581),this[_0x494a('0x35')][_0x494a('0x53')](_0x28548c),this[_0x494a('0x59')][_0x494a('0x53')](_0x3aea59),_0x1ca26f['destroy']();}[_0x494a('0x3')](_0x2cb4f7){if(!_0x2cb4f7[_0x494a('0x50')]||!this['_suggestionToController'][_0x494a('0x13')](_0x2cb4f7))return;const _0x53990c=this[_0x494a('0x4')][_0x494a('0xe')][_0x494a('0x4d')](_0x494a('0x1c')),_0x422be3=this[_0x494a('0x35')][_0x494a('0x4d')](_0x2cb4f7),_0x494a20=_0x2cb4f7[_0x494a('0x34')]();_0x422be3[_0x494a('0x24')][_0x494a('0x5')]=_0x53990c[_0x494a('0x4c')][_0x494a('0x21')](_0x494a20);}[_0x494a('0x57')](){for(const _0x264d73 of this[_0x494a('0x35')][_0x494a('0x11')]())this[_0x494a('0x12')](_0x264d73);for(const _0x1aa9ff of this[_0x494a('0x3c')]['values']())_0x1aa9ff[_0x494a('0xb')][_0x494a('0x57')]();super[_0x494a('0x57')]();}}
23
+ const _0x3755=['_handleControllerBuffer','get','addComment','keys','CommentsRepository','TrackChangesEditing','acceptButton','Accept\x20all\x20suggestions','getMarkers','trackChanges.SuggestionThreadView','separator','_disableComments','requires','_destroyController','destroy','size','previous','createAnnotationView','getFirstRange','_suggestionToController','add','innerView','refreshSelectedViews','_initializeController','suggestionLoaded','init','descriptionParts','SuggestionThreadView','acceptAllSuggestions','filter','delete','focus','clear','_viewToController','_handleSuggestionControllerDelayed','push','editor','_descriptionFactory','lowest','commentThread','buttonView','addSourceCollector','discardButton','registerAnnotation','plugins','_createUIButton','execute','some','trackChanges','locale','view','change:activeAnnotations','isInContent','arrowView','isMultiRange','model','getDescriptions','Track\x20changes','from','head','change:previous','getByInnerView','button','actionView','_refreshActiveMarkers','length','_annotationViews','createCommentThreadController','mainView','acceptSelectedSuggestions','comments.editorConfig','getAllAdjacentSuggestions','has','comments.maxCommentsWhenCollapsed','getSuggestion','Annotations','getMarkerNames','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','suggestionUnloaded','comments.maxCommentCharsWhenCollapsed','isOn','define','set','trackChanges.disableComments','remove','value','TrackChangesUI','values','listenTo','commands','isEnabled','suggestionChanged','activeMarkers','comments.maxThreadTotalWeight','config','editing','suggestion-','unbind','discardSelectedSuggestions','bind','getJoined','map','reduce','_updateController','commandName'];(function(_0x32a80e,_0x375598){const _0x4b70df=function(_0x51193b){while(--_0x51193b){_0x32a80e['push'](_0x32a80e['shift']());}};_0x4b70df(++_0x375598);}(_0x3755,0x71));const _0x4b70=function(_0x32a80e,_0x375598){_0x32a80e=_0x32a80e-0x0;let _0x4b70df=_0x3755[_0x32a80e];return _0x4b70df;};import{Plugin as _0x2e1ce4}from'ckeditor5/src/core';import{Collection as _0x29cb1d}from'ckeditor5/src/utils';import{Model as _0x4dbb76,SplitButtonView as _0x25780a,createDropdown as _0x558890,addListToDropdown as _0x17aaff}from'ckeditor5/src/ui';import{Users as _0x3391b0,getDateTimeFormatter as _0x2ac6b9,getAllMarkersDomElementsSorted as _0x3ea15a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2426c5 from'./trackchangesediting';import _0x9776ca from'./ui/suggestioncontroller';import _0xd1de93 from'./ui/view/suggestionthreadview';import{getTranslation as _0xbe3170}from'./utils/common-translations';import _0x37b67b from'../theme/icons/track-changes.svg';export default class d extends _0x2e1ce4{static get[_0x4b70('0x5')](){return[_0x2426c5,_0x3391b0,_0x4b70('0x67'),_0x4b70('0x44'),'EditorAnnotations'];}static get['pluginName'](){return _0x4b70('0x50');}constructor(_0x272745){super(_0x272745),this[_0x4b70('0xc')]=new Map(),this[_0x4b70('0x1a')]=new Map(),this['_annotationViews']=new Map(),this[_0x4b70('0x63')]=new Map();const _0x1dc2bc=this[_0x4b70('0x1d')][_0x4b70('0x58')];_0x1dc2bc[_0x4b70('0x4b')](_0x4b70('0x2'),_0xd1de93),_0x1dc2bc[_0x4b70('0x4b')](_0x4b70('0x4d'),!0x1),this[_0x4b70('0x4')]=_0x1dc2bc[_0x4b70('0x64')]('trackChanges.disableComments');}[_0x4b70('0x1b')](_0x428a45,_0x2babf1){0x0===this['_handleControllerBuffer'][_0x4b70('0x8')]&&setTimeout(()=>{for(const [_0x2ed565,_0x2afdb1]of this[_0x4b70('0x63')]){const _0x411109=this[_0x4b70('0xc')]['has'](_0x2ed565);_0x411109||_0x2afdb1?_0x411109&&_0x2afdb1&&this[_0x4b70('0x6')](_0x2ed565):this[_0x4b70('0x10')](_0x2ed565);}this[_0x4b70('0x1d')][_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x46'))[_0x4b70('0xf')](),this[_0x4b70('0x39')](),this[_0x4b70('0x63')][_0x4b70('0x19')]();},0xa),this[_0x4b70('0x63')][_0x4b70('0x4c')](_0x428a45,_0x2babf1);}[_0x4b70('0x12')](){const _0x10bc95=this[_0x4b70('0x1d')],_0x55800f=_0x10bc95[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x68')),_0x4ed78d=_0x10bc95[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x44')),_0x5dc98a=_0x10bc95[_0x4b70('0x25')]['get'](_0x4b70('0x46')),_0x2f80c4=_0x10bc95[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x67'));_0x10bc95['ui']['componentFactory']['add']('trackChanges',_0x2392c5=>this[_0x4b70('0x26')](_0x2392c5)),_0x5dc98a[_0x4b70('0x22')](()=>{const _0x7ca6c6=[];for(const [_0x57f551,_0x24b60e]of Array[_0x4b70('0x33')](this[_0x4b70('0xc')])){const _0x4a6817=_0x57f551[_0x4b70('0x40')](),_0x591b37=[];for(const _0x22d1eb of _0x4a6817){if(!_0x22d1eb['isInContent'])continue;if(_0x22d1eb[_0x4b70('0x2f')]){_0x591b37[_0x4b70('0x1c')](..._0x22d1eb['getRanges']());continue;}const _0x720ccb=_0x22d1eb[_0x4b70('0xb')]();if(_0x591b37[_0x4b70('0x3a')]>0x0){const _0x4306fc=_0x591b37[0x0][_0x4b70('0x5e')](_0x720ccb);if(_0x4306fc){_0x591b37[0x0]=_0x4306fc;continue;}}_0x591b37[_0x4b70('0x1c')](_0x720ccb);}_0x7ca6c6['push']([_0x24b60e['view'],_0x591b37]);}return _0x7ca6c6;}),this[_0x4b70('0x52')](_0x55800f,_0x4b70('0x11'),(_0x1180da,_0x1ec86d)=>{this['listenTo'](_0x1ec86d,_0x4b70('0x35'),(_0x5a7055,_0x3e39c7,_0x3e9f2b,_0x44c798)=>{_0x1ec86d[_0x4b70('0x2d')]&&(null==_0x3e9f2b?(this[_0x4b70('0x61')](_0x44c798['head']),this[_0x4b70('0x1b')](_0x1ec86d,!0x1)):(this[_0x4b70('0x61')](_0x3e9f2b[_0x4b70('0x34')]),this[_0x4b70('0x1b')](_0x1ec86d,!0x0)));}),null===_0x1ec86d[_0x4b70('0x9')]?this[_0x4b70('0x1b')](_0x1ec86d,!0x1):this[_0x4b70('0x61')](_0x1ec86d[_0x4b70('0x34')]);}),this[_0x4b70('0x52')](_0x55800f,_0x4b70('0x48'),(_0x1597c0,_0x58e6db,_0x14f600)=>{this['stopListening'](_0x58e6db,_0x4b70('0x35')),this[_0x4b70('0x63')][_0x4b70('0x17')](_0x58e6db);const _0x317bc5=_0x14f600?_0x14f600[_0x4b70('0x34')]:_0x58e6db,_0x5277f0=this[_0x4b70('0xc')]['get'](_0x317bc5);null!==_0x14f600&&this[_0x4b70('0x61')](_0x317bc5),null===_0x14f600&&_0x5277f0&&this[_0x4b70('0x6')](_0x58e6db);}),this[_0x4b70('0x52')](_0x55800f,_0x4b70('0x55'),(_0x10dc1e,_0xb82213)=>{this['_updateController'](_0xb82213);}),this[_0x4b70('0x52')](_0x4ed78d,_0x4b70('0x2c'),()=>{this[_0x4b70('0x39')]();}),this[_0x4b70('0x52')](_0x2f80c4,_0x4b70('0x65'),(_0x11c07a,{threadId:_0x5f3e7d,isFromAdapter:_0x106162})=>{if(_0x106162||!_0x55800f['hasSuggestion'](_0x5f3e7d))return;const _0xc564c6=_0x55800f[_0x4b70('0x43')](_0x5f3e7d);this[_0x4b70('0xc')][_0x4b70('0x64')](_0xc564c6)['view']['focus']();},{'priority':_0x4b70('0x1f')});}[_0x4b70('0x39')](){const _0x52f5b4=this[_0x4b70('0x1d')][_0x4b70('0x25')]['get'](_0x4b70('0x44')),_0x24f7ab=this['editor'][_0x4b70('0x25')]['get'](_0x4b70('0x68')),_0xab240c=Array[_0x4b70('0x33')](_0x52f5b4['activeAnnotations'],_0x3b1a46=>_0x3b1a46[_0x4b70('0xe')])[_0x4b70('0x16')](_0x1ae9f9=>this['_viewToController'][_0x4b70('0x41')](_0x1ae9f9)),_0xc66b51=[];for(const _0x527b4d of _0xab240c){const _0x5436ef=this[_0x4b70('0x1a')]['get'](_0x527b4d)[_0x4b70('0x30')]['getAllAdjacentSuggestions']();_0xc66b51[_0x4b70('0x1c')](..._0x5436ef[_0x4b70('0x60')]((_0x5f1929,_0x5882ad)=>[..._0x5f1929,..._0x5882ad[_0x4b70('0x45')]()],[]));}_0x24f7ab[_0x4b70('0x56')]=_0xc66b51;}[_0x4b70('0x26')](_0x22a700){const _0x9fe04d=_0x558890(_0x22a700,_0x25780a),_0x33c9da=this[_0x4b70('0x1d')][_0x4b70('0x53')][_0x4b70('0x64')]('trackChanges'),_0x440d41=_0xbe3170(_0x22a700,_0x4b70('0x32'));_0x9fe04d[_0x4b70('0x21')]['set']({'tooltip':_0x440d41,'label':_0x440d41,'icon':_0x37b67b}),_0x9fe04d[_0x4b70('0x21')][_0x4b70('0x5d')](_0x4b70('0x4a'))['to'](_0x33c9da,'value'),_0x9fe04d[_0x4b70('0x21')]['on']('execute',()=>{_0x33c9da[_0x4b70('0x27')](),this[_0x4b70('0x1d')][_0x4b70('0x59')]['view'][_0x4b70('0x18')]();});const _0x186a4f=new _0x29cb1d(),_0x2410e4=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x440d41,'commandName':_0x4b70('0x29')}},{'type':_0x4b70('0x3')},{'type':_0x4b70('0x37'),'model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,_0x4b70('0x0')),'commandName':_0x4b70('0x15')}},{'type':'button','model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x4b70('0x3e')}},{'type':_0x4b70('0x37'),'model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':_0x4b70('0x37'),'model':{'withText':!0x0,'label':_0xbe3170(_0x22a700,_0x4b70('0x47')),'commandName':_0x4b70('0x5c')}}];for(const _0x525091 of _0x2410e4){let _0x2dbbc6={'type':_0x4b70('0x3')};if(_0x525091['model']){const _0x53a687=new _0x4dbb76(_0x525091[_0x4b70('0x30')]),_0x308d66=this[_0x4b70('0x1d')]['commands'][_0x4b70('0x64')](_0x53a687[_0x4b70('0x62')]);_0x53a687['bind']('isOn',_0x4b70('0x54'))['to'](_0x308d66,_0x4b70('0x4f'),_0x4b70('0x54')),_0x2dbbc6={'type':_0x525091['type'],'model':_0x53a687};}_0x186a4f['add'](_0x2dbbc6);}_0x17aaff(_0x9fe04d,_0x186a4f);const _0x138277=_0x2410e4[_0x4b70('0x16')](_0x5448db=>null!=_0x5448db[_0x4b70('0x30')])[_0x4b70('0x5f')](_0x44deed=>this[_0x4b70('0x1d')]['commands'][_0x4b70('0x64')](_0x44deed[_0x4b70('0x30')][_0x4b70('0x62')])),_0x4a6500=_0x9fe04d[_0x4b70('0x21')];return _0x4a6500[_0x4b70('0x38')][_0x4b70('0x5b')]('isEnabled'),_0x4a6500[_0x4b70('0x2e')][_0x4b70('0x5b')](_0x4b70('0x54')),_0x4a6500['actionView'][_0x4b70('0x5d')](_0x4b70('0x54'))['to'](_0x33c9da,_0x4b70('0x54')),_0x4a6500[_0x4b70('0x2e')]['bind']('isEnabled')['toMany'](_0x138277,_0x4b70('0x54'),(..._0x1d6ddf)=>_0x1d6ddf[_0x4b70('0x28')](_0x4d6b72=>_0x4d6b72)),_0x9fe04d['on'](_0x4b70('0x27'),_0x2dba79=>{this[_0x4b70('0x1d')][_0x4b70('0x27')](_0x2dba79['source'][_0x4b70('0x62')]),this[_0x4b70('0x1d')][_0x4b70('0x59')][_0x4b70('0x2b')][_0x4b70('0x18')]();}),_0x9fe04d;}[_0x4b70('0x10')](_0x46a8e5){const _0x334055=this[_0x4b70('0x1d')],_0x76fbf=_0x334055[_0x4b70('0x58')],_0x3cae8e=_0x334055[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x44')),_0x5dc7a1=_0x334055['plugins'][_0x4b70('0x64')](_0x4b70('0x67')),_0x19e0d2=_0x334055[_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x46')),_0x335436=_0x334055[_0x4b70('0x25')][_0x4b70('0x64')](_0x3391b0)['me'],_0x580898=_0x76fbf[_0x4b70('0x64')](_0x4b70('0x29'))[_0x4b70('0x14')],{CommentsListView:_0x19226e,CommentThreadInputView:_0x200263}=_0x334055[_0x4b70('0x25')]['get']('CommentsUI');let _0x423839,_0x12f219;this[_0x4b70('0x3b')][_0x4b70('0x41')](_0x46a8e5['id'])?(_0x12f219=this['_annotationViews'][_0x4b70('0x64')](_0x46a8e5['id']),_0x423839=_0x12f219[_0x4b70('0x3d')]):(_0x423839=new _0x580898(_0x334055[_0x4b70('0x2a')],_0x46a8e5,_0x335436,{'disableComments':this[_0x4b70('0x4')],'editorConfig':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x3f')),'maxCommentsWhenCollapsed':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x42')),'maxThreadTotalWeight':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x57')),'maxCommentCharsWhenCollapsed':_0x76fbf[_0x4b70('0x64')](_0x4b70('0x49')),'formatDateTime':_0x2ac6b9(_0x76fbf[_0x4b70('0x64')](_0x4b70('0x2a'))),'CommentView':_0x76fbf[_0x4b70('0x64')]('comments')['CommentView'],'CommentsListView':_0x19226e,'CommentThreadInputView':_0x200263}),_0x423839[_0x4b70('0x69')]['on'](_0x4b70('0x27'),()=>{_0x334055['editing'][_0x4b70('0x2b')][_0x4b70('0x18')]();}),_0x423839[_0x4b70('0x23')]['on'](_0x4b70('0x27'),()=>{_0x334055['editing'][_0x4b70('0x2b')][_0x4b70('0x18')]();}),_0x12f219=_0x3cae8e[_0x4b70('0xa')](this['editor'][_0x4b70('0x2a')],_0x423839),_0x12f219[_0x4b70('0x5d')]('isDirty')['to'](_0x423839,'isDirty'),_0x12f219[_0x4b70('0x5d')](_0x4b70('0x3a'))['to'](_0x423839),_0x12f219[_0x4b70('0x5d')]('type')['to'](_0x423839,'type',_0x39fffd=>_0x4b70('0x5a')+_0x39fffd),this[_0x4b70('0x3b')][_0x4b70('0x4c')](_0x46a8e5['id'],_0x12f219));const _0xc07c81=_0x5dc7a1[_0x4b70('0x3c')](_0x46a8e5[_0x4b70('0x20')],_0x423839),_0x4385eb=new _0x9776ca(_0x334055,_0x46a8e5,_0x423839,_0xc07c81),_0x45505d=_0x46a8e5['getAllAdjacentSuggestions']()[_0x4b70('0x16')](_0x4d0c50=>_0x4d0c50['isInContent']);_0x423839[_0x4b70('0x13')]=_0x334055[_0x4b70('0x25')]['get']('TrackChangesEditing')[_0x4b70('0x1e')][_0x4b70('0x31')](_0x45505d),this['_suggestionToController'][_0x4b70('0x4c')](_0x46a8e5,_0x4385eb),this['_viewToController']['set'](_0x423839,_0x4385eb);const _0x352b9c=_0x3cae8e['createAnnotation']({'view':_0x12f219,'target':()=>{const _0xfdd7f8=[],_0x369be1=_0x46a8e5[_0x4b70('0x40')]()[_0x4b70('0x16')](_0x5b4dbe=>_0x5b4dbe['isInContent']);for(const _0x29dce8 of _0x369be1)_0xfdd7f8[_0x4b70('0x1c')](..._0x29dce8[_0x4b70('0x1')]());return _0x3ea15a(_0x334055['editing'],_0xfdd7f8);},'type':()=>'suggestion-'+_0x4385eb[_0x4b70('0x2b')]['type']});_0x3cae8e[_0x4b70('0xd')](_0x352b9c),_0x19e0d2[_0x4b70('0x24')](_0x352b9c);}['_destroyController'](_0x38516c){const _0x260280=this[_0x4b70('0x1d')][_0x4b70('0x25')]['get'](_0x4b70('0x44')),_0x2cdf36=this[_0x4b70('0xc')][_0x4b70('0x64')](_0x38516c),_0x1f52ef=_0x2cdf36[_0x4b70('0x2b')],_0x50b2e7=_0x260280[_0x4b70('0x36')](_0x1f52ef);_0x50b2e7&&_0x260280[_0x4b70('0x4e')](_0x50b2e7),this[_0x4b70('0xc')][_0x4b70('0x17')](_0x38516c),this[_0x4b70('0x1a')]['delete'](_0x1f52ef),_0x2cdf36['destroy']();}[_0x4b70('0x61')](_0x1c29cc){if(!_0x1c29cc[_0x4b70('0x2d')]||!this[_0x4b70('0xc')][_0x4b70('0x41')](_0x1c29cc))return;const _0x2ba40f=this[_0x4b70('0x1d')][_0x4b70('0x25')][_0x4b70('0x64')](_0x4b70('0x68')),_0x12fffa=this[_0x4b70('0xc')]['get'](_0x1c29cc),_0x5133cb=_0x1c29cc['getAllAdjacentSuggestions']();_0x12fffa['view']['descriptionParts']=_0x2ba40f[_0x4b70('0x1e')][_0x4b70('0x31')](_0x5133cb);}[_0x4b70('0x7')](){for(const _0x1ffcf8 of this[_0x4b70('0xc')][_0x4b70('0x66')]())this[_0x4b70('0x6')](_0x1ffcf8);for(const _0x4e9dc7 of this[_0x4b70('0x3b')][_0x4b70('0x51')]())_0x4e9dc7[_0x4b70('0x3d')][_0x4b70('0x7')]();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17bf=['_discardCommand','discardSuggestion','commands','_editor','_acceptCommand','canAccept','commentThreadController','plugins','canDiscard','getRanges','isEnabled','unbind','change:isDirty','_pendingAction','_removePendingAction','canEditAt','locale','listenTo','bind','view','destroy','_setPendingAction','model','stopListening','PendingActions','get','execute','add','isDirty','acceptSuggestion'];(function(_0x4a12cf,_0x17bf86){const _0x492397=function(_0x53ab8a){while(--_0x53ab8a){_0x4a12cf['push'](_0x4a12cf['shift']());}};_0x492397(++_0x17bf86);}(_0x17bf,0x19b));const _0x4923=function(_0x4a12cf,_0x17bf86){_0x4a12cf=_0x4a12cf-0x0;let _0x492397=_0x17bf[_0x4a12cf];return _0x492397;};import{ObservableMixin as _0x39fc2b}from'ckeditor5/src/utils';import{getTranslation as _0x97983e}from'../utils/common-translations';export default class qt extends _0x39fc2b(){constructor(_0x2043d2,_0x7f8e42,_0x443a3f,_0x331b6a){super(),this[_0x4923('0x1')]=_0x7f8e42,this[_0x4923('0x1c')]=_0x443a3f,this[_0x4923('0xf')]=_0x331b6a,this[_0x4923('0xc')]=_0x2043d2,this[_0x4923('0xd')]=_0x2043d2[_0x4923('0xb')][_0x4923('0x4')](_0x4923('0x8')),this[_0x4923('0x9')]=_0x2043d2[_0x4923('0xb')][_0x4923('0x4')](_0x4923('0xa')),this[_0x4923('0x1c')][_0x4923('0x1b')](_0x4923('0x13'))['to'](this['_acceptCommand'],this[_0x4923('0x9')],(_0x1c1013,_0x57a8d7)=>_0x1c1013||_0x57a8d7),this['view'][_0x4923('0x1b')]('canAccept')['to'](this[_0x4923('0xd')],'isEnabled',_0xbe5ccf=>_0xbe5ccf&&this['_editor'][_0x4923('0x1')][_0x4923('0x18')](_0x7f8e42[_0x4923('0x12')]())),this[_0x4923('0x1c')][_0x4923('0x1b')](_0x4923('0x11'))['to'](this[_0x4923('0x9')],_0x4923('0x13'),_0x26df0e=>_0x26df0e&&this['_editor'][_0x4923('0x1')][_0x4923('0x18')](_0x7f8e42['getRanges']())),this[_0x4923('0x16')]=null,_0x443a3f['isDirty']&&this[_0x4923('0x0')](),this[_0x4923('0x1a')](_0x443a3f,'acceptSuggestion',()=>this[_0x4923('0x8')]()),this['listenTo'](_0x443a3f,'discardSuggestion',()=>this['discardSuggestion']()),this[_0x4923('0x1a')](_0x443a3f,_0x4923('0x15'),()=>{_0x443a3f[_0x4923('0x7')]?this[_0x4923('0x0')]():this[_0x4923('0x17')]();});}['acceptSuggestion'](){this[_0x4923('0xd')][_0x4923('0x5')](this[_0x4923('0x1')]['id']);}['discardSuggestion'](){this['_discardCommand'][_0x4923('0x5')](this[_0x4923('0x1')]['id']);}[_0x4923('0x1d')](){this['view'][_0x4923('0x14')](_0x4923('0x13')),this[_0x4923('0x1c')]['unbind'](_0x4923('0xe')),this[_0x4923('0x1c')]['unbind'](_0x4923('0x11')),this[_0x4923('0x2')](),this[_0x4923('0xf')][_0x4923('0x1d')](),this['_pendingAction']&&this['_removePendingAction']();}[_0x4923('0x0')](){const _0x4f55b6=_0x97983e(this[_0x4923('0xc')][_0x4923('0x19')],'PENDING_ACTION_SUGGESTION');this[_0x4923('0x16')]=this[_0x4923('0xc')][_0x4923('0x10')][_0x4923('0x4')](_0x4923('0x3'))[_0x4923('0x6')](_0x4f55b6);}[_0x4923('0x17')](){null!==this[_0x4923('0x16')]&&this[_0x4923('0xc')][_0x4923('0x10')][_0x4923('0x4')](_0x4923('0x3'))['remove'](this[_0x4923('0x16')]),this[_0x4923('0x16')]=null;}}
23
+ const _0x141b=['get','commands','locale','_pendingAction','commentThreadController','_editor','change:isDirty','canEditAt','isDirty','destroy','model','plugins','_discardCommand','execute','_removePendingAction','stopListening','listenTo','canAccept','add','bind','discardSuggestion','getRanges','isEnabled','canDiscard','unbind','_setPendingAction','acceptSuggestion','_acceptCommand','PENDING_ACTION_SUGGESTION','PendingActions','view'];(function(_0x1734df,_0x141b06){const _0x336b71=function(_0x27d290){while(--_0x27d290){_0x1734df['push'](_0x1734df['shift']());}};_0x336b71(++_0x141b06);}(_0x141b,0xc5));const _0x336b=function(_0x1734df,_0x141b06){_0x1734df=_0x1734df-0x0;let _0x336b71=_0x141b[_0x1734df];return _0x336b71;};import{ObservableMixin as _0x274c3a}from'ckeditor5/src/utils';import{getTranslation as _0x5c75af}from'../utils/common-translations';export default class qt extends _0x274c3a(){constructor(_0x59a05a,_0x38851c,_0x23e8da,_0x234225){super(),this[_0x336b('0x1e')]=_0x38851c,this[_0x336b('0x13')]=_0x23e8da,this[_0x336b('0x18')]=_0x234225,this[_0x336b('0x19')]=_0x59a05a,this[_0x336b('0x10')]=_0x59a05a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x59a05a[_0x336b('0x15')]['get']('discardSuggestion'),this[_0x336b('0x13')][_0x336b('0x8')](_0x336b('0xb'))['to'](this[_0x336b('0x10')],this[_0x336b('0x1')],(_0x51a1a8,_0x1f111d)=>_0x51a1a8||_0x1f111d),this[_0x336b('0x13')][_0x336b('0x8')]('canAccept')['to'](this[_0x336b('0x10')],'isEnabled',_0x39e877=>_0x39e877&&this[_0x336b('0x19')][_0x336b('0x1e')][_0x336b('0x1b')](_0x38851c['getRanges']())),this[_0x336b('0x13')][_0x336b('0x8')](_0x336b('0xc'))['to'](this['_discardCommand'],_0x336b('0xb'),_0x4707d0=>_0x4707d0&&this[_0x336b('0x19')][_0x336b('0x1e')][_0x336b('0x1b')](_0x38851c[_0x336b('0xa')]())),this['_pendingAction']=null,_0x23e8da['isDirty']&&this[_0x336b('0xe')](),this[_0x336b('0x5')](_0x23e8da,_0x336b('0xf'),()=>this[_0x336b('0xf')]()),this[_0x336b('0x5')](_0x23e8da,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x23e8da,_0x336b('0x1a'),()=>{_0x23e8da[_0x336b('0x1c')]?this['_setPendingAction']():this[_0x336b('0x3')]();});}[_0x336b('0xf')](){this[_0x336b('0x10')][_0x336b('0x2')](this[_0x336b('0x1e')]['id']);}[_0x336b('0x9')](){this[_0x336b('0x1')][_0x336b('0x2')](this[_0x336b('0x1e')]['id']);}[_0x336b('0x1d')](){this[_0x336b('0x13')][_0x336b('0xd')](_0x336b('0xb')),this['view'][_0x336b('0xd')](_0x336b('0x6')),this[_0x336b('0x13')]['unbind'](_0x336b('0xc')),this[_0x336b('0x4')](),this[_0x336b('0x18')][_0x336b('0x1d')](),this[_0x336b('0x17')]&&this['_removePendingAction']();}[_0x336b('0xe')](){const _0x56e88d=_0x5c75af(this[_0x336b('0x19')][_0x336b('0x16')],_0x336b('0x11'));this[_0x336b('0x17')]=this[_0x336b('0x19')][_0x336b('0x0')]['get'](_0x336b('0x12'))[_0x336b('0x7')](_0x56e88d);}[_0x336b('0x3')](){null!==this[_0x336b('0x17')]&&this[_0x336b('0x19')][_0x336b('0x0')][_0x336b('0x14')]('PendingActions')['remove'](this[_0x336b('0x17')]),this[_0x336b('0x17')]=null;}}