@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231106.0 → 0.0.0-nightly-20231107.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 (65) 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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b26=['insertion:accept','filter','open','_getExternalAuthor','isInContent','formatGroupId','dataReady','discardSuggestion','item','formatBlock:discard','model','formatBlock:accept','addClass','track-changes-adapter-missing-getsuggestion','listenTo','createPositionAt','getRange','removeAttribute','enableCommand','elementStart','rejected','_onDiscard','getMultiRangeId','editor','suggestion-type','_mergeNestedSuggestions','attributes','for','track-changes-suggestion-not-found','hasSuggestion','deletion:accept','isBlock','writer','every','toJSON','formatInline','acceptSelectedSuggestions','pluginName','resolve','notReady','isObject','substr','_splitMarkerName','formatInline:discard','removeMarkers','parent','head','_joinWithAdjacentSuggestions','formatInline:','Users','PENDING_ACTION_SUGGESTION','isBefore','collaboration.channelId','elementEnd','selection','setTo','dataDowncast','clear','updateMarker','locale','getSuggestionCallback','ck-suggestion-marker--active','_createSuggestion','suggestionLoaded','upcast','group','batch','clone','insertion:','markerToData','formatInline:join','enqueueChange','_setSuggestionRange','isMultiRange','start','insertContent','bindElementToMarker','root','remove','isLimit','_breakSuggestionMarker','rootName','_registerDefaultCallbacks','_saved','_customCallbacks','nodeAfter','formatInline:accept','_enabledCommands','isCollapsed','execute','_editor','getDifference','data-suggestion','track-changes-command-not-found','set','_findSuggestions','getIntersection','forceDefaultExecution','nodeBefore','values','_refreshSuggestionsChain','editing','_addThreadToSuggestion','getCommentThread','formatInline:chain','_suggestions','markerToHighlight','removeMarker','config','getShiftedBy','detach','value','getSuggestions','getChangedMarkers','containsItem','trackChanges','fromCharCode','addSuggestionData','howMany','never','isArray','_removeSuggestion','@external','skipNestingCheck','change:activeMarkers','deletion:chain','default','isEqual','commands','removeClass','isExternal','markInsertion','fire','_handleNewSuggestionMarker','buildSuggestion','CommentsRepository','createRangeIn','enableReadOnlyMode','stop','splitPosition','_trackFormatChanges','then','_getAuthorFromId','after','applyOperation','schema','deleteContent','low','getUser','track-changes-user-not-found','discard','getAttribute','map','get','isAfter','isIntersectingWithRange','size','createElement','dataToMarker','addComment','showSuggestionHighlights','add','getLastMatchingPosition','sort','isTouching','previous','removeMarker:suggestion:formatBlock','addUser','join','formatBlock:chain','elementToElement','suggestion:','author','originalSuggestionId','requires','consume','_model','deletion','push','_getSuggestionData','createSelection','markInlineFormat','discardSelectedSuggestions','insertion:chain','toViewElement','high','before','from','setSelection','containerElement','oldRange','data','markMultiRangeInsertion','createRange','commentThread','position','_addSuggestionMarker','conversion','reconvertMarker','differ','$marker','discardAllSuggestions','markBlockFormat','keys','_suggestionFactory','_updateSuggestionData','split','includes','getNearestSelectionRange','markerName','addMarker','backward','some','acceptSuggestion','trackChanges.trackFormatChanges','suggestionUnloaded','hasComments','getCustomProperty','move','formatBlock:','removed','end','ready','getSuggestion','suggestionChanged','element','assign','insertion:join','markDeletion','isDocumentOperation','subType','trackChangesCommand','init','commandName','track-changes-adapter-already-set','accepted','return','isRemovable','isOwn','marker-count','document','unbindElementFromMarkerName','define','_setSuggestionData','multipleBlocks','ck-suggestion-marker-','plugins','addMarkerName','isInsideObject','addRange','PendingActions','containsRangeInObject','name','length','creator','unbind','addMarker:suggestion:formatBlock','_isDataLoaded','editingDowncast','getFirstMarker','getAncestors','_adapter','createPositionAfter','addSuggestion','activeMarkers','registerPostFixer','change:data','has','next','range','formatBlock','getMarkers','ck-suggestion-marker','isNextTo','getRanges','trackChanges.mergeNestedSuggestions','_checkSuggestionCorrectness','acceptAllSuggestions','documentSelection','always','options','type','forward','getFirstRange','_joinSuggestions','createdAt','multi','normal','insertion','updateSuggestion','consumable','insertion:discard','_defaultCallbacks','containsRange','markers','_rangeIsInLocalUserInsertion','stopListening','_isForcedDefaultExecutionBlock','mapper','isUndo','lowest','$graveyard','newRange','_descriptionFactory','track-changes-suggestion-data-mismatch','_suggestionState','isAtEnd','tablePasteChainId','authoredAt','fetchCommentThread','change','adapter','setAttribute','external:','hasCommentThread','accept','delete','_commentsRepository','suggestion'];(function(_0x3a710d,_0x1b26b8){const _0xc46189=function(_0x17d007){while(--_0x17d007){_0x3a710d['push'](_0x3a710d['shift']());}};_0xc46189(++_0x1b26b8);}(_0x1b26,0x159));const _0xc461=function(_0x3a710d,_0x1b26b8){_0x3a710d=_0x3a710d-0x0;let _0xc46189=_0x1b26[_0x3a710d];return _0xc46189;};import{Plugin as _0x566c40,PendingActions as _0x44cdde}from'ckeditor5/src/core';import{LiveRange as _0x439992}from'ckeditor5/src/engine';import{CKEditorError as _0x339aa1,uid as _0xccee84,priorities as _0x312d8c,logWarning as _0x1725bb}from'ckeditor5/src/utils';import{toWidget as _0x1c8f14}from'ckeditor5/src/widget';import{Users as _0x1ef6d4,hashObject as _0x4a4395}from'ckeditor5-collaboration/src/collaboration-core';import _0x347b90 from'./commands/trackchangescommand';import _0x98675f from'./commands/acceptsuggestioncommand';import _0x1587e2 from'./commands/discardsuggestioncommand';import _0xaceebc from'./commands/executeonallsuggestionscommand';import _0x198a38 from'./commands/executeonselectedsuggestionscommand';import _0x454d15 from'./suggestion';import _0x53c2ba from'./suggestiondescriptionfactory';import _0x4a217a from'./integrations/aiassistant';import _0x3d20ce from'./integrations/alignment';import _0x243a99 from'./integrations/basicstyles';import _0x422abe from'./integrations/blockquote';import _0x527932 from'./integrations/ckbox';import _0x406f10 from'./integrations/codeblock';import _0xc09312 from'./integrations/comments';import _0x2c2cf8 from'./integrations/deletecommand';import _0x3b29fb from'./integrations/documentlist';import _0x4e5610 from'./integrations/entercommand';import _0x29d3a7 from'./integrations/findandreplace';import _0x5be49f from'./integrations/font';import _0x33199a from'./integrations/formatpainter';import _0x209ec1 from'./integrations/heading';import _0x10e67d from'./integrations/highlight';import _0x1ae1a2 from'./integrations/horizontalline';import _0x555479 from'./integrations/htmlembed';import _0x18287f from'./integrations/image';import _0x36e659 from'./integrations/imagereplace';import _0x51df5b from'./integrations/importword';import _0x2d52fb from'./integrations/indent';import _0x1e12cf from'./integrations/inputcommand';import _0x120cd1 from'./integrations/link';import _0x14613b from'./integrations/list';import _0x1fb7fe from'./integrations/listproperties';import _0x19cfc1 from'./integrations/mediaembed';import _0x3c1012 from'./integrations/mention';import _0x1de599 from'./integrations/pagebreak';import _0x112eeb from'./integrations/paragraph';import _0x2278c8 from'./integrations/removeformat';import _0x16fbb4 from'./integrations/restrictededitingmode';import _0x34b8d4 from'./integrations/shiftentercommand';import _0x9de535 from'./integrations/standardeditingmode';import _0x24e643 from'./integrations/style';import _0x1b7573 from'./integrations/table';import _0x310af5 from'./integrations/tablemergesplit';import _0x2d99b9 from'./integrations/tableheadings';import _0x413160 from'./integrations/tableclipboard';import _0x5c1707 from'./integrations/tablecolumnresize';import _0x40f708 from'./integrations/template';import _0x480453 from'./integrations/tableofcontents';import _0x2ec094 from'./integrations/title';import _0x4b467a from'./integrations/undo';import{getTranslation as _0x30569e}from'./utils/common-translations';import _0x504903 from'./integrations/tablecaption';import _0x5c10b6 from'./integrations/documentlistproperties';import _0x3096f2 from'./integrations/tableproperties';import{isEqual as _0x4541bd}from'lodash-es';export default class p extends _0x566c40{static get[_0xc461('0x94')](){return[_0xc461('0x6d'),_0x1ef6d4,_0x44cdde,_0x4a217a,_0x3d20ce,_0x243a99,_0x422abe,_0x527932,_0x406f10,_0xc09312,_0x2c2cf8,_0x3b29fb,_0x5c10b6,_0x4e5610,_0x29d3a7,_0x5be49f,_0x33199a,_0x209ec1,_0x10e67d,_0x1ae1a2,_0x555479,_0x18287f,_0x36e659,_0x51df5b,_0x2d52fb,_0x1e12cf,_0x120cd1,_0x14613b,_0x1fb7fe,_0x19cfc1,_0x3c1012,_0x1de599,_0x112eeb,_0x2278c8,_0x16fbb4,_0x34b8d4,_0x9de535,_0x24e643,_0x1b7573,_0x310af5,_0x2d99b9,_0x504903,_0x413160,_0x5c1707,_0x480453,_0x3096f2,_0x40f708,_0x2ec094,_0x4b467a];}static get[_0xc461('0xb')](){return'TrackChangesEditing';}constructor(_0x372932){function _0x530a45(_0x2535fd){return _0x2535fd[_0xc461('0x7e')](_0x59edc9=>String[_0xc461('0x5a')](_0x59edc9))[_0xc461('0x8e')]('');}super(_0x372932),this[_0xc461('0x44')](_0xc461('0xee'),[]),this['on'](_0xc461('0x62'),(_0x155904,_0x5660fc,_0x1558bf,_0x3101fd)=>{this['_model'][_0xc461('0x11c')](()=>{for(const _0x3a0d45 of[..._0x3101fd,..._0x1558bf])this[_0xc461('0x96')]['markers'][_0xc461('0xf1')](_0x3a0d45)&&_0x372932[_0xc461('0x4b')][_0xc461('0xac')](_0x3a0d45);});}),this[_0xc461('0x115')]=new _0x53c2ba(this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x77')],this[_0xc461('0x13c')]['locale']),this[_0xc461('0xeb')]=null,this[_0xc461('0xb2')]=new Bt(this[_0xc461('0x13c')]),this['_suggestions']=new Map(),this[_0xc461('0x123')]=_0x372932[_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x6d')),this[_0xc461('0x3d')]=new Set(),this['_model']=this[_0xc461('0x13c')]['model'],this[_0xc461('0x117')]=new WeakMap(),this[_0xc461('0x10f')]=!0x1,_0x372932[_0xc461('0x52')][_0xc461('0xd8')](_0xc461('0xbc'),_0xc461('0x64')),this[_0xc461('0x72')]=_0x372932[_0xc461('0x52')][_0xc461('0x7f')](_0xc461('0xbc')),_0x372932['config'][_0xc461('0xd8')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x372932[_0xc461('0x52')][_0xc461('0x7f')](_0xc461('0xf9')),this[_0xc461('0xcd')]=new _0x347b90(_0x372932,this['_enabledCommands']),this[_0x530a45([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x530a45([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x32]);}[_0xc461('0xce')](){const _0x138134=this['editor'];_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0xe8'))[_0xc461('0x50')]({'model':_0xc461('0x124'),'view':_0x31c465=>{const {id:_0x258d5a,type:_0x59dde9}=this[_0xc461('0x10')](_0x31c465[_0xc461('0xb7')]),_0x4450af=['ck-suggestion-marker',_0xc461('0xdb')+_0x59dde9];let _0x5d2281=0xbb8;return this['activeMarkers'][_0xc461('0xb5')](_0x31c465['markerName'])&&(_0x4450af[_0xc461('0x98')](_0xc461('0x23')),_0x5d2281=0xbc2),_0xc461('0x97')==_0x59dde9&&(_0x5d2281+=0x5),{'classes':_0x4450af,'attributes':{'data-suggestion':_0x258d5a},'priority':_0x5d2281};}}),_0x138134['conversion'][_0xc461('0x1')](_0xc461('0x1e'))[_0xc461('0x87')](_0x5bd8a7=>{_0x5bd8a7['on']('addMarker:suggestion',(_0x3b7e70,_0x2054e,_0x38fadc)=>{if(!_0x38fadc[_0xc461('0xfe')][_0xc461('0x86')])return;const _0x274302=_0x2054e['item'];if(!_0x274302)return;const _0x5a9d19=_0x38fadc[_0xc461('0x110')]['toViewElement'](_0x274302);_0x138134['model'][_0xc461('0x77')][_0xc461('0xe')](_0x274302)&&_0x5a9d19&&!_0x5a9d19[_0xc461('0xbf')]('widget')&&_0x5a9d19['is'](_0xc461('0xa3'))&&_0x1c8f14(_0x5a9d19,_0x38fadc[_0xc461('0x6')]);},{'priority':_0xc461('0x9f')});}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x1e'))[_0xc461('0x50')]({'model':'suggestion','view':(_0x3f3004,_0x210570)=>{if(!_0x210570[_0xc461('0xfe')][_0xc461('0x86')])return null;const {type:_0x25cbaf}=this[_0xc461('0x10')](_0x3f3004[_0xc461('0xb7')]);return{'classes':[_0xc461('0xf6'),'ck-suggestion-marker-'+_0x25cbaf],'priority':0xbb8};}});const _0x23c3ed=({showActiveMarkers:_0x4dffe1=!0x0}={})=>(_0x409ac5,_0x1f6b1b,_0x42eaf6)=>{if(!_0x1f6b1b['item'])return;if(_0x1f6b1b[_0xc461('0x12d')]['is']('selection'))return void _0x42eaf6[_0xc461('0x108')]['consume'](_0x1f6b1b[_0xc461('0x12d')],_0x409ac5[_0xc461('0xe2')]);const _0x1001df=_0x42eaf6['mapper'][_0xc461('0x9e')](_0x1f6b1b[_0xc461('0x12d')]);if(!(_0x1f6b1b['item']['is'](_0xc461('0xc7'))&&_0x138134['model'][_0xc461('0x77')][_0xc461('0x5')](_0x1f6b1b[_0xc461('0x12d')])&&!_0x1001df[_0xc461('0xbf')]('addHighlight')))return;const {id:_0x2b7d65}=this['_splitMarkerName'](_0x1f6b1b['markerName']);_0x42eaf6[_0xc461('0x6')][_0xc461('0x131')]([_0xc461('0xf6'),'ck-suggestion-marker-formatBlock'],_0x1001df),_0x42eaf6['writer'][_0xc461('0x11e')](_0xc461('0x42'),_0x2b7d65,_0x1001df),_0x42eaf6['mapper'][_0xc461('0x32')](_0x1001df,_0x1f6b1b[_0xc461('0xb7')]),_0x4dffe1&&(this['activeMarkers']['includes'](_0x1f6b1b[_0xc461('0xb7')])?_0x42eaf6[_0xc461('0x6')][_0xc461('0x131')](_0xc461('0x23'),_0x1001df):_0x42eaf6[_0xc461('0x6')][_0xc461('0x67')](_0xc461('0x23'),_0x1001df));for(const _0x146de8 of _0x138134[_0xc461('0x12f')][_0xc461('0x6e')](_0x1f6b1b[_0xc461('0x12d')])['getItems']())_0x42eaf6[_0xc461('0x108')]['consume'](_0x146de8,_0x409ac5['name']);_0x42eaf6[_0xc461('0x108')][_0xc461('0x95')](_0x1f6b1b[_0xc461('0x12d')],_0x409ac5['name']);};_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x1e'))['add'](_0x9c1e5=>{_0x9c1e5['on']('addMarker:suggestion:formatBlock',(_0x100858,_0x43f6b1,_0x213291)=>{_0x213291[_0xc461('0xfe')]['showSuggestionHighlights']&&_0x23c3ed({'showActiveMarkers':!0x1})(_0x100858,_0x43f6b1,_0x213291);},{'priority':'highest'});}),_0x138134['conversion']['for'](_0xc461('0x1e'))[_0xc461('0x2b')]({'model':'suggestion','view':(_0x33d336,_0x3de0cd)=>_0x3de0cd[_0xc461('0xfe')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33d336[_0xc461('0xf')](0xb)}}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x26'))[_0xc461('0x90')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34ba46,{writer:_0x448291})=>{let _0x131317=_0xc461('0x91')+_0x34ba46[_0xc461('0x7d')](_0xc461('0x13d'))+':'+_0x34ba46[_0xc461('0x7d')]('id');return _0x34ba46[_0xc461('0x7d')](_0xc461('0xd5'))&&(_0x131317+=':'+_0x34ba46['getAttribute'](_0xc461('0xd5'))),_0x448291[_0xc461('0x83')](_0xc461('0xae'),{'data-name':_0x131317});}}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x26'))[_0xc461('0x84')]({'view':_0xc461('0x124')}),_0x138134[_0xc461('0xab')]['for'](_0xc461('0xe8'))[_0xc461('0x87')](_0x309ca2=>{_0x309ca2['on'](_0xc461('0xe6'),_0x23c3ed(),{'priority':_0xc461('0x9f')});}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0xe8'))[_0xc461('0x87')](_0x4d7bf6=>{_0x4d7bf6['on'](_0xc461('0x8c'),(_0x22287d,_0x7909e7,_0x478e5d)=>{const _0x17f36f=_0x478e5d[_0xc461('0x110')]['markerNameToElements'](_0x7909e7[_0xc461('0xb7')]);if(_0x17f36f)for(const _0x1c9be0 of _0x17f36f)_0x1c9be0['getCustomProperty']('addHighlight')||(_0x478e5d['writer'][_0xc461('0x67')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0xc461('0x23')],_0x1c9be0),_0x478e5d[_0xc461('0x6')][_0xc461('0x136')](_0xc461('0x42'),_0x1c9be0),_0x478e5d[_0xc461('0x110')][_0xc461('0xd7')](_0x1c9be0,_0x7909e7['markerName']));},{'priority':_0xc461('0x9f')});}),_0x138134['model'][_0xc461('0xd6')][_0xc461('0xef')](_0x200c52=>{let _0x45b67f=!0x1;const _0x1c626c=Array[_0xc461('0xa1')](_0x138134[_0xc461('0x12f')][_0xc461('0xd6')]['differ'][_0xc461('0x57')]()),_0x586738=new Set();for(const {name:_0x2fb8a1,data:_0x579ec6}of _0x1c626c){const {group:_0x216436,type:_0x5e8322,id:_0x1d8150}=this[_0xc461('0x10')](_0x2fb8a1);if(_0xc461('0x124')!==_0x216436)continue;const _0x2b25a7=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x1d8150);if(null!=_0x579ec6[_0xc461('0x114')]){_0xc461('0x9')==_0x5e8322&&(_0x45b67f=_0x45b67f||$t(_0x579ec6['newRange'],_0x2fb8a1,_0x200c52,_0x138134[_0xc461('0x12f')][_0xc461('0x77')]));if(_0x579ec6[_0xc461('0x114')][_0xc461('0x3e')]||'$graveyard'==_0x579ec6[_0xc461('0x114')][_0xc461('0x33')][_0xc461('0x37')]||_0xc461('0xf4')==_0x5e8322&&!Rt(_0x579ec6[_0xc461('0x114')])||_0xc461('0x97')==_0x5e8322&&!(!Mt(_0x1bcbce=_0x579ec6[_0xc461('0x114')])&&!function(_0x44e10f){return _0x44e10f['start'][_0xc461('0x13')]==_0x44e10f['end'][_0xc461('0x48')]&&_0x44e10f['start'][_0xc461('0x118')];}(_0x1bcbce)))_0x200c52[_0xc461('0x51')](_0x2fb8a1),_0x45b67f=!0x0;else{if(!_0x2b25a7||!_0x2b25a7[_0xc461('0x129')])continue;_0x586738[_0xc461('0x87')](_0x2b25a7);}}}var _0x1bcbce;return _0x586738[_0xc461('0x82')]>0x0&&(_0x45b67f=!!this[_0xc461('0x15')](_0x586738)||_0x45b67f),_0x45b67f;}),_0x138134[_0xc461('0x12f')]['document']['registerPostFixer'](_0x2fff32=>{let _0x231928=!0x1;for(const _0x317064 of _0x138134[_0xc461('0x12f')][_0xc461('0xd6')][_0xc461('0xad')]['getChanges']()){if('insert'!=_0x317064[_0xc461('0xff')])continue;const _0x4860e2=_0x317064[_0xc461('0xa9')][_0xc461('0x53')](_0x317064[_0xc461('0xe3')]);if(_0x4860e2['isAtEnd'])for(const _0x2051df of this[_0xc461('0x4f')][_0xc461('0x49')]()){if(_0x2051df[_0xc461('0x2f')]||!_0x2051df[_0xc461('0x129')])continue;if(_0xc461('0xf4')!=_0x2051df[_0xc461('0xff')])continue;const _0x29a311=_0x2051df[_0xc461('0x101')]();if(_0x29a311['start'][_0xc461('0x13')]!=_0x29a311[_0xc461('0xc3')][_0xc461('0x13')]&&_0x29a311[_0xc461('0xc3')][_0xc461('0x65')](_0x317064['position'])){const _0x1d1fd3=_0x138134['model'][_0xc461('0xa7')](_0x29a311[_0xc461('0x30')],_0x4860e2);_0x2fff32[_0xc461('0x20')](_0x2051df[_0xc461('0xe9')](),{'range':_0x1d1fd3}),_0x231928=!0x0;}}}return _0x231928;}),_0x138134[_0xc461('0x12f')][_0xc461('0x10c')]['on']('update:suggestion',(_0x3a38e1,_0x13db76,_0x3319ac)=>{if(null==_0x3319ac){const {id:_0x55b31a}=this['_splitMarkerName'](_0x13db76['name']),_0x45a6a3=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x55b31a);_0x45a6a3&&_0x45a6a3[_0xc461('0xdd')](_0x13db76[_0xc461('0xe2')]);}}),_0x138134['model'][_0xc461('0xd6')]['on'](_0xc461('0xf0'),()=>{const _0x4dc27b=Array[_0xc461('0xa1')](_0x138134['model'][_0xc461('0xd6')]['differ'][_0xc461('0x57')]())[_0xc461('0x126')](_0x5ce609=>_0xc461('0x124')===this[_0xc461('0x10')](_0x5ce609[_0xc461('0xe2')])[_0xc461('0x27')]);if(0x0===_0x4dc27b[_0xc461('0xe3')])return;_0x4dc27b['sort']((_0x2a0781,_0x10757b)=>{const _0x5f5dfe=_0x2a0781[_0xc461('0xa5')][_0xc461('0xa4')],_0x1d6136=_0x10757b[_0xc461('0xa5')]['oldRange'];return null===_0x5f5dfe&&null===_0x1d6136?0x0:null===_0x5f5dfe&&null!==_0x1d6136?-0x1:null!==_0x5f5dfe&&null===_0x1d6136?0x1:_0x5f5dfe[_0xc461('0x30')][_0xc461('0x19')](_0x1d6136[_0xc461('0x30')])?-0x1:0x1;});const _0x2c01ca=new Set(),_0x51f7a4=new Set();for(const {name:_0x473082,data:_0x343a25}of _0x4dc27b){const {id:_0x4a2755}=this[_0xc461('0x10')](_0x473082);if(null===_0x343a25[_0xc461('0xa4')]){const _0x5d8409=this[_0xc461('0x6b')](_0x473082);_0x51f7a4['add'](_0x5d8409);}else{const _0x3444a0=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x4a2755);null!==_0x343a25[_0xc461('0x114')]||_0x3444a0['isInContent']?(_0x2c01ca[_0xc461('0x87')](_0x3444a0[_0xc461('0x14')]),_0x51f7a4[_0xc461('0x87')](_0x3444a0)):this[_0xc461('0x5f')](_0x3444a0);}}_0x51f7a4[_0xc461('0x82')]>0x0&&this[_0xc461('0x4a')](_0x51f7a4);for(const _0x31c485 of _0x2c01ca)this['fire'](_0xc461('0xc6'),_0x31c485);}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x76'),(_0x2d09ea,_0x4be9a4)=>{const _0x13ecc4=_0x4be9a4[0x0];if(!this[_0xc461('0x4f')][_0xc461('0x82')])return;if(!_0x13ecc4[_0xc461('0xcb')])return;if(_0x13ecc4[_0xc461('0x28')][_0xc461('0x111')]||!_0x13ecc4[_0xc461('0x28')]['isLocal'])return;let _0x198124,_0x5b3234;switch(_0x13ecc4[_0xc461('0xff')]){case'insert':_0x198124=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4[_0xc461('0xa9')]),_0x5b3234=_0x198124[_0xc461('0x53')](_0x13ecc4[_0xc461('0x5c')]);break;case _0xc461('0xb4'):_0x198124=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4[_0xc461('0x71')]),_0x5b3234=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4['moveTargetPosition']);break;case _0xc461('0xc0'):_0x198124=_0x138134[_0xc461('0x12f')]['createPositionAt'](_0x13ecc4['targetPosition']),_0x5b3234=_0x198124[_0xc461('0x53')](_0x13ecc4['howMany']);break;default:return;}const _0x49e8fd=_0x138134[_0xc461('0x12f')][_0xc461('0xa7')](_0x198124,_0x5b3234);_0x138134[_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const {suggestion:_0x221e72,meta:_0x5df00c}of this[_0xc461('0x45')](_0x49e8fd)){if(_0x221e72[_0xc461('0x2f')])continue;if('formatInline'==_0x221e72['type'])continue;const _0x11498d=_0x221e72[_0xc461('0xa5')]&&_0x221e72[_0xc461('0xa5')][_0xc461('0xda')];(_0xc461('0xf4')!=_0x221e72['type']||_0xc461('0xb4')==_0x13ecc4[_0xc461('0xff')]&&!_0x11498d)&&(_0x5df00c[_0xc461('0xe1')]||_0xc461('0x106')==_0x221e72[_0xc461('0xff')]&&_0x5df00c['isOwn']||_0x221e72[_0xc461('0x101')]()[_0xc461('0x10b')](_0x49e8fd)&&this[_0xc461('0x36')](_0x221e72,_0x198124,_0x5b3234));}});},{'priority':_0xc461('0x112')}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x78'),(_0x31f328,_0x2416ea)=>{const _0x16fe48=_0x2416ea[0x0],_0x7962d4=_0x2416ea[0x1];if(_0x7962d4&&_0x7962d4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0xc461('0xcd')][_0xc461('0x55')])return;if(_0x16fe48['isCollapsed'])return;const _0x55008d=_0x138134[_0xc461('0x12f')][_0xc461('0x77')],{start:_0x1e7021,end:_0x4c036b}=_0x16fe48[_0xc461('0x101')](),_0x371f1a=_0x1e7021['nodeAfter']&&_0x55008d[_0xc461('0x35')](_0x1e7021['nodeAfter'])?null:_0x55008d['getNearestSelectionRange'](_0x1e7021,_0xc461('0x100')),_0x32cf99=_0x4c036b[_0xc461('0x48')]&&_0x55008d[_0xc461('0x35')](_0x4c036b[_0xc461('0x48')])?null:_0x55008d[_0xc461('0xb6')](_0x4c036b,_0xc461('0xb9')),_0x14c36f=_0x138134['model'][_0xc461('0xa7')](_0x371f1a?_0x371f1a[_0xc461('0x30')]:_0x1e7021,_0x32cf99?_0x32cf99[_0xc461('0xc3')]:_0x4c036b);_0x138134['model']['change'](_0x515b5d=>{this[_0xc461('0xca')](_0x14c36f);const _0x4ac9fa=_0x138134[_0xc461('0x12f')]['schema'][_0xc461('0xb6')](_0x14c36f[_0xc461('0x30')]);_0x16fe48['is'](_0xc461('0xfc'))?_0x515b5d[_0xc461('0xa2')](_0x4ac9fa):_0x16fe48[_0xc461('0x1d')](_0x4ac9fa);}),_0x31f328[_0xc461('0x70')]();},{'priority':_0x312d8c[_0xc461('0x105')]+0xa}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x31'),(_0x41c9aa,_0x45f011)=>{const _0x20bc35=_0x45f011[_0x45f011['length']-0x1];_0x20bc35&&_0x20bc35['forceDefaultExecution']||this[_0xc461('0x10f')]||this['trackChangesCommand'][_0xc461('0x55')]&&(_0x138134[_0xc461('0x12f')][_0xc461('0x11c')](()=>{let _0x560e52=_0x138134[_0xc461('0x12f')][_0xc461('0x31')](_0x45f011[0x0],_0x45f011[0x1],_0x45f011[0x2],{'forceDefaultExecution':!0x0});if(!_0x560e52)return;_0x41c9aa['return']=_0x560e52[_0xc461('0x29')]();const _0x2fc38f=_0x560e52['end'][_0xc461('0x48')],_0x4f37af=_0x138134[_0xc461('0x12f')][_0xc461('0x77')];_0x2fc38f&&_0x4f37af['isBlock'](_0x2fc38f)&&!_0x4f37af[_0xc461('0xe')](_0x2fc38f)&&(_0x560e52=_0x138134[_0xc461('0x12f')][_0xc461('0xa7')](_0x560e52[_0xc461('0x30')],_0x138134[_0xc461('0x12f')]['createPositionAt'](_0x2fc38f,'end'))),this[_0xc461('0x69')](_0x560e52);}),_0x41c9aa[_0xc461('0x70')]());},{'priority':_0xc461('0x9f')}),this[_0xc461('0x13c')][_0xc461('0x66')][_0xc461('0x87')](_0xc461('0x59'),this[_0xc461('0xcd')]),this[_0xc461('0x137')](_0xc461('0x59'));const _0x21fa0a=new _0x98675f(_0x138134,this[_0xc461('0x4f')]);_0x138134['commands'][_0xc461('0x87')]('acceptSuggestion',_0x21fa0a),this['enableCommand'](_0xc461('0xbb'));const _0x2e0791=new _0x1587e2(_0x138134,this['_suggestions']);_0x138134[_0xc461('0x66')][_0xc461('0x87')]('discardSuggestion',_0x2e0791),this[_0xc461('0x137')](_0xc461('0x12c')),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('acceptAllSuggestions',new _0xaceebc(_0x138134,_0x21fa0a,this[_0xc461('0x4f')])),this['enableCommand'](_0xc461('0xfb')),_0x138134['commands']['add'](_0xc461('0xaf'),new _0xaceebc(_0x138134,_0x2e0791,this[_0xc461('0x4f')])),this['enableCommand']('discardAllSuggestions'),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('acceptSelectedSuggestions',new _0x198a38(_0x138134,_0x21fa0a,this[_0xc461('0x4f')])),this[_0xc461('0x137')](_0xc461('0xa')),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('discardSelectedSuggestions',new _0x198a38(_0x138134,_0x2e0791,this[_0xc461('0x4f')])),this[_0xc461('0x137')](_0xc461('0x9c'));const _0x655555=_0x138134[_0xc461('0xdc')]['get']('CommentsRepository');this[_0xc461('0x133')](_0x655555,_0xc461('0x85'),(_0x3d00a3,{threadId:_0x35c828})=>{const _0x34f00d=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x35c828);_0x34f00d&&_0x34f00d['commentThread']&&0x1===_0x34f00d[_0xc461('0xa8')][_0xc461('0xe3')]&&this[_0xc461('0xb3')](_0x35c828,{'hasComments':!0x0});},{'priority':'low'}),this[_0xc461('0x133')](_0x655555,'removeComment',(_0x360e62,{threadId:_0x4724c4})=>{const _0x44c5ed=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x4724c4);_0x44c5ed&&_0x44c5ed[_0xc461('0xa8')]&&!_0x44c5ed['commentThread']['length']&&this[_0xc461('0xb3')](_0x4724c4,{'hasComments':!0x1});},{'priority':_0xc461('0x79')});}set[_0xc461('0x11d')](_0x18c4a9){if(this[_0xc461('0xeb')])throw new _0x339aa1(_0xc461('0xd0'),this);this[_0xc461('0xeb')]=_0x18c4a9;}get[_0xc461('0x11d')](){return this[_0xc461('0xeb')];}[_0xc461('0x56')]({skipNotAttached:_0x465648=!0x1,toJSON:_0x22d3dd=!0x1}={}){const _0x59c1c3=[];for(const _0x1be6ff of this['_suggestions'][_0xc461('0x49')]())_0x465648&&!_0x1be6ff['isInContent']||_0x59c1c3[_0xc461('0x98')](_0x1be6ff);return _0x22d3dd?_0x59c1c3['map'](_0x2baecc=>_0x2baecc[_0xc461('0x8')]()):_0x59c1c3;}[_0xc461('0xc5')](_0x3d0c28){const _0xb334f2=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x3d0c28);if(!_0xb334f2)throw new _0x339aa1(_0xc461('0x2'),this);return _0xb334f2;}[_0xc461('0x3')](_0x102f13){return this[_0xc461('0x4f')][_0xc461('0xf1')](_0x102f13);}[_0xc461('0x5b')](_0x229f69){const {authorId:_0x41647d,id:_0x2f4cb9,attributes:_0x1ac55a}=_0x229f69,[_0x249f30,_0x12168e]=_0x229f69[_0xc461('0xff')][_0xc461('0xb4')](':'),_0x3e3f71=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x2f4cb9)||this[_0xc461('0x24')](_0x249f30,_0x12168e,_0x2f4cb9,_0x41647d,_0x1ac55a);if(this[_0xc461('0x4c')](_0x3e3f71),this[_0xc461('0xfa')](_0x3e3f71,_0x249f30,_0x12168e||null,_0x41647d),_0x3e3f71['createdAt']=_0x229f69[_0xc461('0x103')],_0x3e3f71['_isDataLoaded']=!0x0,_0x1ac55a&&_0x1ac55a[_0xc461('0x60')]){const _0x4bf891=_0x1ac55a[_0xc461('0x60')],_0x17fb3a=this[_0xc461('0x128')](_0x4bf891['authorName']);_0x3e3f71[_0xc461('0x11a')]=_0x4bf891['createdAt'],_0x3e3f71['author']=_0x17fb3a,_0x3e3f71[_0xc461('0x68')]=!0x0;}else _0x3e3f71[_0xc461('0x11a')]=_0x229f69[_0xc461('0x103')];switch(_0x229f69[_0xc461('0xa5')]&&(_0x3e3f71[_0xc461('0xa5')]=_0x229f69[_0xc461('0xa5')]),_0x229f69[_0xc461('0x0')]&&(_0x3e3f71[_0xc461('0x0')]=_0x229f69[_0xc461('0x0')]),this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0xed')]||(_0x3e3f71[_0xc461('0x39')]=!0x0),this['_suggestionState'][_0xc461('0x7f')](_0x3e3f71)){case _0xc461('0xd'):this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0x12b'));break;case'markerReady':_0x3e3f71['isInContent']?(this[_0xc461('0x4a')](new Set([_0x3e3f71])),this[_0xc461('0x15')](new Set([_0x3e3f71])),this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0xc4')),this[_0xc461('0x6a')](_0xc461('0x25'),_0x3e3f71)):this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0xc2'));}return _0x3e3f71;}['acceptSuggestion'](_0x16196f){this[_0xc461('0x47')](()=>{this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const _0x3f8f71 of _0x16196f['getAllAdjacentSuggestions']())_0x3f8f71[_0xc461('0x121')]();});});}[_0xc461('0x12c')](_0x52c426){this['forceDefaultExecution'](()=>{this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const _0x2f3dba of _0x52c426['getAllAdjacentSuggestions']())_0x2f3dba[_0xc461('0x7c')]();});});}['enableCommand'](_0x231891,_0x150168){const _0x583329=this['editor'][_0xc461('0x66')][_0xc461('0x7f')](_0x231891);if(!_0x583329)throw new _0x339aa1(_0xc461('0x43'),this,{'commandName':_0x231891});this[_0xc461('0x3d')]['add'](_0x583329),_0x150168&&_0x583329['on'](_0xc461('0x3f'),(_0x420317,_0x27b2f3)=>{this['trackChangesCommand'][_0xc461('0x55')]&&(this['_isForcedDefaultExecutionBlock']||_0x27b2f3[_0xc461('0xe3')]>0x0&&_0x27b2f3[_0x27b2f3[_0xc461('0xe3')]-0x1]&&_0x27b2f3[_0x27b2f3[_0xc461('0xe3')]-0x1][_0xc461('0x47')]||(_0x420317[_0xc461('0xd2')]=_0x150168((..._0x17e539)=>_0x583329[_0xc461('0x3f')](..._0x17e539,{'forceDefaultExecution':!0x0}),..._0x27b2f3),_0x420317[_0xc461('0x70')]()));},{'priority':_0xc461('0x9f')});}[_0xc461('0x47')](_0x5a9b8e){let _0x10ccde,_0x4265c9;const _0x2ab5dc=this[_0xc461('0x10f')];this[_0xc461('0x10f')]=!0x0;try{_0x10ccde=_0x5a9b8e();}catch(_0x55836e){_0x4265c9=_0x55836e;}return _0x2ab5dc||(this[_0xc461('0x10f')]=!0x1),_0x4265c9&&_0x339aa1['rethrowUnexpectedError'](_0x4265c9,this),_0x10ccde;}[_0xc461('0x69')](_0xc8be0f,_0x180650=null,_0x357f06={}){if(_0xc8be0f['isCollapsed'])return null;const _0x1de02b=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'];for(const {suggestion:_0x4c676f,meta:_0x41b3a1}of this['_findSuggestions'](_0xc8be0f,_0xc461('0x106')))if(_0x41b3a1[_0xc461('0xd4')]){if(!_0x41b3a1['isNextTo']){if(_0x41b3a1[_0xc461('0xe1')]){if(!this[_0xc461('0x13e')]||!Ot(_0x4c676f,_0x357f06))continue;return _0x4c676f;}if(Ot(_0x4c676f,_0x357f06))return _0x4c676f;this['_breakSuggestionMarker'](_0x4c676f,_0xc8be0f['start'],_0xc8be0f[_0xc461('0xc3')]);break;}if(_0x180650==_0x4c676f[_0xc461('0xcc')]&&Ot(_0x4c676f,_0x357f06)){const _0x2899b5=_0x4c676f[_0xc461('0x101')]();return _0x2899b5[_0xc461('0x30')][_0xc461('0x65')](_0xc8be0f['end'])?this[_0xc461('0x2e')](_0x4c676f,this[_0xc461('0x96')][_0xc461('0xa7')](_0xc8be0f[_0xc461('0x30')],_0x2899b5[_0xc461('0xc3')])):this[_0xc461('0x2e')](_0x4c676f,this[_0xc461('0x96')][_0xc461('0xa7')](_0x2899b5[_0xc461('0x30')],_0xc8be0f['end'])),_0x4c676f;}}const _0x10938d=_0xccee84(),_0x42456e=_0x1de02b['id'],_0x5b1dda=_0x180650?_0xc461('0x2a')+_0x180650:_0xc461('0x106'),_0x2151f4=this[_0xc461('0xd9')]({'id':_0x10938d,'type':_0x5b1dda,'createdAt':new Date(),'authorId':_0x42456e,'attributes':_0x357f06});return this[_0xc461('0xaa')](_0x5b1dda,_0x10938d,_0x42456e,_0xc8be0f),_0x2151f4;}[_0xc461('0xa6')](_0x3b318b,_0x1e1448=_0xc461('0x104'),_0x3faa08={}){const _0x341558=this[_0xc461('0x13c')][_0xc461('0xdc')]['get'](_0xc461('0x17'))['me'],_0x19a23a=this[_0xc461('0xb2')][_0xc461('0x22')]('insertion',_0x1e1448,'join');for(const _0x3081be of this[_0xc461('0x56')]())if(_0x3081be[_0xc461('0x92')]['id']==_0x341558['id']&&'insertion'==_0x3081be[_0xc461('0xff')]&&_0x3081be[_0xc461('0xcc')]==_0x1e1448&&Ot(_0x3081be,_0x3faa08)&&(_0x19a23a(_0x3081be[_0xc461('0xf8')](),_0x3b318b)||_0x19a23a(_0x3b318b,_0x3081be[_0xc461('0xf8')]()))){for(const _0x4d32ca of _0x3b318b)_0x3081be[_0xc461('0xdf')](_0x4d32ca);return _0x3081be;}for(const {suggestion:_0x56848c,meta:_0x5ce76f}of this[_0xc461('0x45')](_0x3b318b,_0xc461('0x106'))){if(!_0x5ce76f['isOwn'])continue;if(!this[_0xc461('0x13e')]&&_0x5ce76f['containsRangeInObject'])continue;if(!Ot(_0x56848c,_0x3faa08))continue;let _0x3bb495=!0x0;for(const _0x1d8a30 of _0x56848c[_0xc461('0xf8')]())for(const _0x3b7166 of _0x3b318b)if(!_0x1d8a30[_0xc461('0x10b')](_0x3b7166)){_0x3bb495=!0x1;break;}if(_0x3bb495)return _0x56848c;}const _0x40eaca=_0xccee84(),_0x4038f0=_0x341558['id'],_0x33a9c6=_0xc461('0x2a')+_0x1e1448,_0x3d110e=this[_0xc461('0xd9')]({'id':_0x40eaca,'type':_0x33a9c6,'createdAt':new Date(),'authorId':_0x4038f0,'attributes':_0x3faa08});for(const _0x379065 of _0x3b318b)this[_0xc461('0xaa')](_0x33a9c6,_0x40eaca,_0x4038f0,_0x379065,_0x454d15[_0xc461('0x13b')]());return _0x3d110e;}[_0xc461('0x9b')](_0x213069,_0x1a6e24,_0x123630=null,_0x1ee02d={}){if(_0x123630=_0x123630||Nt(_0x1a6e24),_0x213069[_0xc461('0x3e')])return null;if(_0xc461('0x5d')===this[_0xc461('0x72')]){const _0x2c43e6=this[_0xc461('0xb2')][_0xc461('0x22')]('formatInline',_0x123630,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x2c43e6([_0x213069],_0x1a6e24,_0x1ee02d)),null;}const _0x1e94da=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')]('Users')['me'],_0xf9b58d=[];if(_0xc461('0xfd')!==this['_trackFormatChanges'])for(const {suggestion:_0x43a6c9,meta:_0x2ee995}of this[_0xc461('0x45')](_0x213069,_0xc461('0x106')))_0x2ee995['isOwn']&&!_0x2ee995[_0xc461('0xde')]&&_0xf9b58d[_0xc461('0x98')](..._0x43a6c9['getRanges']());const _0x2f8f68=function(_0x3b8b81,_0x622107){const _0x2113b1=[];for(const _0x4752e1 of _0x622107){const _0x362bfb=_0x3b8b81[_0xc461('0x46')](_0x4752e1);_0x362bfb&&_0x2113b1[_0xc461('0x98')](_0x362bfb);}return _0x2113b1;}(_0x213069,_0xf9b58d),_0x44e17c=function(_0x1e8545,_0x39393a){const _0x4a7662=[_0x1e8545];for(const _0x36583a of _0x39393a){let _0x5aef80=0x0;for(;_0x5aef80<_0x4a7662['length'];){const _0x368e6d=_0x4a7662[_0x5aef80][_0xc461('0x41')](_0x36583a);_0x4a7662['splice'](_0x5aef80,0x1,..._0x368e6d),_0x5aef80+=_0x368e6d[_0xc461('0xe3')];}}return _0x4a7662;}(_0x213069,_0xf9b58d);_0x2f8f68[_0xc461('0xe3')]&&this[_0xc461('0x96')][_0xc461('0x11c')](()=>{for(const _0x5567a3 of _0x2f8f68){const _0x2f0108=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0x9'),_0x123630,_0xc461('0x121'));this[_0xc461('0x47')](()=>_0x2f0108([_0x5567a3],_0x1a6e24,_0x1ee02d));}});for(const _0x2ecd22 of _0x44e17c){let _0x400d93=null,_0x36506e=_0x2ecd22[_0xc461('0x30')],_0x4f98f0=_0x2ecd22[_0xc461('0xc3')];for(const {suggestion:_0xd021f,meta:_0x4c91f7}of this[_0xc461('0x45')](_0x2ecd22,_0xc461('0x9'))){if(!_0x4c91f7['isOwn'])continue;if(_0xd021f[_0xc461('0xcc')]!=_0x123630)continue;if(!Ot(_0xd021f,_0x1ee02d))continue;const _0x278c3f=_0xd021f['getFirstRange']();if(_0x278c3f['containsRange'](_0x2ecd22,!0x0))return null;_0x36506e=_0x36506e[_0xc461('0x19')](_0x278c3f[_0xc461('0x30')])?_0x36506e:_0x278c3f['start'],_0x4f98f0=_0x4f98f0[_0xc461('0x80')](_0x278c3f[_0xc461('0xc3')])?_0x4f98f0:_0x278c3f['end'],_0x400d93?_0x278c3f[_0xc461('0x30')]['isBefore'](_0x400d93['getFirstRange']()[_0xc461('0x30')])?(_0x400d93[_0xc461('0x12')](),_0x400d93=_0xd021f):_0xd021f[_0xc461('0x12')]():_0x400d93=_0xd021f;}const _0x5367b7=this[_0xc461('0x96')]['createRange'](_0x36506e,_0x4f98f0);if(_0x400d93)this['_setSuggestionRange'](_0x400d93,_0x5367b7);else{const _0x407c37=_0xccee84(),_0x46b5a2=_0x1e94da['id'];this[_0xc461('0xd9')]({'id':_0x407c37,'type':_0xc461('0x16')+_0x123630,'data':_0x1a6e24,'createdAt':new Date(),'authorId':_0x46b5a2,'attributes':_0x1ee02d}),this[_0xc461('0xaa')]('formatInline:'+_0x123630,_0x407c37,_0x46b5a2,_0x5367b7);}}return null;}[_0xc461('0xb0')](_0x5dfed8,_0x1107a5,_0x31c42c=[],_0xfa0310=null,_0x854621={}){_0x1107a5[_0xc461('0x12a')]||(_0x1107a5[_0xc461('0x12a')]=_0x1107a5['commandName']),_0x1107a5[_0xc461('0xda')]=_0x5dfed8['is'](_0xc461('0xf3')),_0xfa0310=_0xfa0310||Nt(_0x1107a5);const _0x52bf0c=_0x31c42c[_0xc461('0x7e')](_0x27c6ca=>jt(_0x27c6ca,this[_0xc461('0x96')])),_0x527d73=_0x5dfed8['is'](_0xc461('0xf3'))?_0x5dfed8:jt(_0x5dfed8,this[_0xc461('0x96')]);if(_0xc461('0x5d')===this[_0xc461('0x72')]){const _0x320beb=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0xf4'),_0xfa0310,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x320beb([_0x527d73],_0x1107a5,_0x854621)),null;}_0x52bf0c[_0xc461('0x98')](_0x527d73);let _0x26b7f8=!0x0;for(const _0x788975 of _0x52bf0c)if(!this[_0xc461('0x10d')](_0x788975)){_0x26b7f8=!0x1;break;}if(_0x26b7f8&&'always'!==this[_0xc461('0x72')]){const _0x3ffc32=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0xf4'),_0xfa0310,'accept');return this[_0xc461('0x47')](()=>_0x3ffc32([_0x527d73],_0x1107a5,_0x854621)),null;}let _0x51fbd6=null,_0x121752=_0x527d73[_0xc461('0x30')],_0x27f091=_0x527d73[_0xc461('0xc3')];for(const {suggestion:_0x2d2815,meta:_0x1f8201}of this['_findSuggestions'](_0x527d73,'formatBlock')){if(!_0x1f8201[_0xc461('0xd4')])continue;if(_0x1f8201[_0xc461('0xf7')]||_0x1f8201[_0xc461('0xe1')]||_0x1f8201[_0xc461('0xde')])continue;if(_0x2d2815[_0xc461('0xa5')][_0xc461('0x12a')]!=_0x1107a5[_0xc461('0x12a')])continue;if(!Ot(_0x2d2815,_0x854621))continue;const _0x44dfff=_0x2d2815[_0xc461('0x101')]();if(_0x2d2815[_0xc461('0xcc')]==_0xfa0310){if(_0x44dfff[_0xc461('0x10b')](_0x527d73,!0x0))return null;_0x121752=_0x121752[_0xc461('0x19')](_0x44dfff[_0xc461('0x30')])?_0x121752:_0x44dfff[_0xc461('0x30')],_0x27f091=_0x27f091[_0xc461('0x80')](_0x44dfff[_0xc461('0xc3')])?_0x27f091:_0x44dfff[_0xc461('0xc3')],_0x51fbd6?_0x44dfff[_0xc461('0x30')]['isBefore'](_0x51fbd6['getFirstRange']()[_0xc461('0x30')])?(_0x51fbd6['removeMarkers'](),_0x51fbd6=_0x2d2815):_0x2d2815[_0xc461('0x12')]():_0x51fbd6=_0x2d2815;}else{const _0x18ab0a=_0x527d73[_0xc461('0x46')](_0x44dfff);this['_cutOutSuggestionMarker'](_0x2d2815,_0x18ab0a);}}const _0x2f71ed=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'],_0x43fb58=_0xccee84(),_0x2773f2=_0x2f71ed['id'];if(_0x51fbd6)return this['_setSuggestionRange'](_0x51fbd6,this[_0xc461('0x96')]['createRange'](_0x121752,_0x27f091)),_0x51fbd6;{const _0x364eb2=this[_0xc461('0xd9')]({'id':_0x43fb58,'type':_0xc461('0xc1')+_0xfa0310,'data':_0x1107a5,'createdAt':new Date(),'authorId':_0x2773f2,'attributes':_0x854621});return this['_addSuggestionMarker']('formatBlock:'+_0xfa0310,_0x43fb58,_0x2773f2,this[_0xc461('0x96')]['createRange'](_0x121752,_0x27f091)),_0x364eb2;}}['markMultiRangeBlockFormat'](_0x46ba51,_0x2992a8,_0x5ea260=[],_0x203407=null,_0x505db1={}){_0x2992a8[_0xc461('0x12a')]||(_0x2992a8['formatGroupId']=_0x2992a8[_0xc461('0xcf')]);const _0x4a22fe=_0x46ba51[0x0];_0x2992a8[_0xc461('0xda')]=_0x4a22fe['is'](_0xc461('0xf3')),_0x203407=_0x203407||Nt(_0x2992a8);const _0x529bb5=_0x5ea260[_0xc461('0x7e')](_0x338b7d=>jt(_0x338b7d,this[_0xc461('0x96')])),_0x5965ac=_0x4a22fe['is'](_0xc461('0xf3'))?_0x46ba51:_0x46ba51['map'](_0x4ff372=>jt(_0x4ff372,this[_0xc461('0x96')]));if(_0xc461('0x5d')===this['_trackFormatChanges']){const _0x22b437=this['_suggestionFactory']['getSuggestionCallback'](_0xc461('0xf4'),_0x203407,'accept');return this[_0xc461('0x47')](()=>_0x22b437(_0x5965ac,_0x2992a8,_0x505db1)),null;}_0x529bb5[_0xc461('0x98')](..._0x5965ac);let _0x1de0f8=!0x0;for(const _0x380250 of _0x529bb5)if(!this[_0xc461('0x10d')](_0x380250)){_0x1de0f8=!0x1;break;}if(_0x1de0f8&&_0xc461('0xfd')!==this[_0xc461('0x72')]){const _0x127046=this[_0xc461('0xb2')]['getSuggestionCallback'](_0xc461('0xf4'),_0x203407,'accept');return this[_0xc461('0x47')](()=>_0x127046(_0x5965ac,_0x2992a8,_0x505db1)),null;}const _0x3bfa77=this['editor'][_0xc461('0xdc')][_0xc461('0x7f')]('Users')['me'];for(const _0x92e348 of this[_0xc461('0x56')]()){if(_0x92e348[_0xc461('0x92')]['id']!=_0x3bfa77['id'])continue;if(_0xc461('0xf4')!=_0x92e348[_0xc461('0xff')]||_0x92e348[_0xc461('0xa5')]['formatGroupId']!=_0x2992a8[_0xc461('0x12a')])continue;if(!Ot(_0x92e348,_0x505db1))continue;const _0x4f6d33=_0x92e348[_0xc461('0xcc')]==_0x203407;for(let _0x27271e=0x0;_0x27271e<_0x5965ac['length'];_0x27271e++){const _0x5c3ade=_0x5965ac[_0x27271e];for(const _0x20c106 of _0x92e348[_0xc461('0xf5')]()){const _0x317e90=_0x20c106[_0xc461('0x135')]();if(_0x5c3ade[_0xc461('0x65')](_0x317e90)){_0x4f6d33?(_0x5965ac['splice'](_0x27271e,0x1),_0x27271e--):_0x92e348[_0xc461('0x51')](_0x20c106[_0xc461('0xe2')]);break;}}}}if(0x0==_0x5965ac[_0xc461('0xe3')])return null;const _0x5e10db=this['_suggestionFactory'][_0xc461('0x22')](_0xc461('0xf4'),_0x203407,_0xc461('0x8e'));for(const _0xabcbc2 of this[_0xc461('0x56')]())if(_0xabcbc2[_0xc461('0x92')]['id']==_0x3bfa77['id']&&_0xc461('0xf4')==_0xabcbc2[_0xc461('0xff')]&&_0xabcbc2[_0xc461('0xa5')]['formatGroupId']==_0x2992a8[_0xc461('0x12a')]&&_0xabcbc2[_0xc461('0xcc')]==_0x203407&&Ot(_0xabcbc2,_0x505db1)&&(_0x5e10db(_0xabcbc2['getRanges'](),_0x5965ac)||_0x5e10db(_0x5965ac,_0xabcbc2[_0xc461('0xf8')]()))){for(const _0x21c000 of _0x5965ac)_0xabcbc2['addRange'](_0x21c000);return _0xabcbc2;}const _0x21200b=_0xccee84(),_0x25193d=_0x3bfa77['id'],_0x139713=_0xc461('0xc1')+_0x203407,_0x2cbb19=this[_0xc461('0xd9')]({'id':_0x21200b,'type':_0x139713,'data':_0x2992a8,'createdAt':new Date(),'authorId':_0x25193d,'attributes':_0x505db1});for(const _0x5d0646 of _0x5965ac)this[_0xc461('0xaa')](_0x139713,_0x21200b,_0x25193d,_0x5d0646,_0x454d15[_0xc461('0x13b')]());return _0x2cbb19;}[_0xc461('0xca')](_0x15e472,_0x228bfc=null,_0x53680f={}){if(_0x15e472[_0xc461('0x3e')])return null;const _0x1def87=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'],_0xd260ef=new _0x439992(_0x15e472[_0xc461('0x30')],_0x15e472['end']);for(const {suggestion:_0x19a4e8,meta:_0x2bc1d6}of this[_0xc461('0x45')](_0xd260ef,'insertion'))if(_0x2bc1d6['isOwn']&&!_0x2bc1d6['isNextTo']){if(_0x19a4e8['isMultiRange']){const _0xbff4b=_0x19a4e8[_0xc461('0xf8')]()[_0xc461('0x126')](_0x39dcf9=>_0xc461('0x113')!=_0x39dcf9[_0xc461('0x33')][_0xc461('0x37')]);_0xbff4b[_0xc461('0x7')](_0x5a213a=>_0xd260ef[_0xc461('0x10b')](_0x5a213a,!0x0))&&_0x19a4e8[_0xc461('0x7c')]();if(_0xbff4b['some'](_0x2e9417=>_0x2e9417[_0xc461('0x10b')](_0xd260ef,!0x0))){const _0x3f3203=this['_suggestionFactory']['getSuggestionCallback'](_0xc461('0x97'),_0x228bfc,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x3f3203([_0xd260ef],null,_0x53680f)),null;}}else{const _0x2e91e0=_0xd260ef['getIntersection'](_0x19a4e8[_0xc461('0x101')]());null!==_0x2e91e0&&_0x19a4e8[_0xc461('0x13a')]([_0x2e91e0],null,_0x53680f);}}if(_0xd260ef[_0xc461('0x54')](),_0xd260ef[_0xc461('0x3e')]||'$graveyard'==_0xd260ef['root']['rootName'])return null;let _0x384143=null,_0x26a37c=_0xd260ef[_0xc461('0x30')],_0x2924a0=_0xd260ef[_0xc461('0xc3')];const _0x584b6f=this['_findSuggestions'](_0xd260ef,_0xc461('0x97'));for(const {suggestion:_0x4b6fe4,meta:_0x161321}of _0x584b6f){const _0x1e8151=this[_0xc461('0x96')][_0xc461('0xa7')](_0x26a37c,_0x2924a0);if(_0x161321[_0xc461('0xd4')]&&(this[_0xc461('0x13e')]||!_0x161321[_0xc461('0xe1')]&&!_0x161321[_0xc461('0xde')])){if(_0x4b6fe4['isMultiRange']){if(!Ot(_0x4b6fe4,_0x53680f))continue;let _0x309321=!0x0;for(const _0x1ddc07 of _0x4b6fe4[_0xc461('0xf8')]()){if(_0x1ddc07[_0xc461('0x10b')](_0x1e8151,!0x0))return _0x4b6fe4;_0x1e8151[_0xc461('0x10b')](_0x1ddc07)||(_0x309321=!0x1);}_0x309321&&_0x4b6fe4[_0xc461('0x7c')]();}else{const _0x186ada=_0x4b6fe4[_0xc461('0x101')]();if(_0x186ada[_0xc461('0x10b')](_0x1e8151,!0x0))return _0x4b6fe4;if(!Ot(_0x4b6fe4,_0x53680f)){_0x1e8151[_0xc461('0x10b')](_0x186ada)?_0x4b6fe4[_0xc461('0x12')]():_0x186ada['containsPosition'](_0x26a37c)?_0x26a37c=_0x186ada['end']:_0x186ada['containsPosition'](_0x2924a0)&&(_0x2924a0=_0x186ada[_0xc461('0x30')]);continue;}_0x26a37c=_0x26a37c[_0xc461('0x19')](_0x186ada[_0xc461('0x30')])?_0x26a37c:_0x186ada['start'],_0x2924a0=_0x2924a0['isAfter'](_0x186ada[_0xc461('0xc3')])?_0x2924a0:_0x186ada['end'],_0x53680f=Object[_0xc461('0xc8')]({},_0x4b6fe4[_0xc461('0x0')]),_0x384143?_0x186ada[_0xc461('0x30')][_0xc461('0x19')](_0x384143['getFirstRange']()[_0xc461('0x30')])?(_0x384143['removeMarkers'](),_0x384143=_0x4b6fe4):_0x4b6fe4[_0xc461('0x12')]():_0x384143=_0x4b6fe4;}}}if(_0x384143)return this['_setSuggestionRange'](_0x384143,this['_model']['createRange'](_0x26a37c,_0x2924a0)),_0x384143;{const _0x4ab1c7=_0xccee84(),_0x19b3ae=this['_model'][_0xc461('0xa7')](_0x26a37c,_0x2924a0),_0x46592a=_0x1def87['id'],_0x25a9d0=_0x228bfc?'deletion:'+_0x228bfc:'deletion',_0x19d8ae=this['_setSuggestionData']({'id':_0x4ab1c7,'type':_0x25a9d0,'createdAt':new Date(),'authorId':_0x46592a,'attributes':_0x53680f});return this['_addSuggestionMarker'](_0x25a9d0,_0x4ab1c7,_0x46592a,_0x19b3ae),_0x19d8ae;}}['markMultiRangeDeletion'](_0x3f029b,_0x195153=_0xc461('0x104'),_0x39a446={}){const _0x1e5d64=this['editor']['plugins']['get'](_0xc461('0x17'))['me'],_0x14fc01=_0x3f029b['map'](_0x4de768=>new _0x439992(_0x4de768['start'],_0x4de768[_0xc461('0xc3')])),_0x303664=new Set();for(const {suggestion:_0x198bbe,meta:_0x41135f}of this[_0xc461('0x45')](_0x14fc01,_0xc461('0x106')))_0x41135f[_0xc461('0xd4')]&&!_0x41135f['isNextTo']&&_0x303664[_0xc461('0x87')](_0x198bbe);for(const _0x1bd0a5 of _0x303664)if(_0x1bd0a5[_0xc461('0x2f')]){const _0x3b2f5c=_0x1bd0a5[_0xc461('0xf8')]();(!_0x1bd0a5[_0xc461('0x0')]||!_0x1bd0a5[_0xc461('0x0')][_0xc461('0x61')])&&(_0x3b2f5c[_0xc461('0x7')](_0x77cacd=>_0x14fc01[_0xc461('0xba')](_0x2a9414=>_0x2a9414[_0xc461('0x10b')](_0x77cacd,!0x0)))&&_0x1bd0a5[_0xc461('0x7c')]());if(_0x14fc01[_0xc461('0x7')](_0x9bac37=>_0x3b2f5c[_0xc461('0xba')](_0x2dc03f=>_0x2dc03f[_0xc461('0x10b')](_0x9bac37,!0x0)))){const _0x598458=this[_0xc461('0xb2')][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x121'));return this['forceDefaultExecution'](()=>_0x598458(_0x3f029b,null,_0x39a446)),null;}}else{const _0x1b86db=_0x1bd0a5['getFirstRange']();_0x14fc01[_0xc461('0xba')](_0xfe452=>_0xfe452['containsRange'](_0x1b86db,!0x0))&&_0x1bd0a5[_0xc461('0x7c')]();if(_0x14fc01[_0xc461('0x7')](_0x734abe=>_0x1b86db['containsRange'](_0x734abe,!0x0))){const _0xc416bc=this[_0xc461('0xb2')][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0xc416bc(_0x14fc01,null,_0x39a446)),null;}}const _0x116942=this['_suggestionFactory'][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x8e'));let _0xce647e=null;for(const _0xe4713 of this[_0xc461('0x56')]())if(_0xe4713['author']['id']==_0x1e5d64['id']&&_0xe4713[_0xc461('0x129')]&&_0xc461('0x97')==_0xe4713['type']&&_0xe4713['subType']==_0x195153&&Ot(_0xe4713,_0x39a446)&&(_0x116942(_0xe4713[_0xc461('0xf8')](),_0x14fc01)||_0x116942(_0x14fc01,_0xe4713[_0xc461('0xf8')]()))){if(_0xce647e){if(_0xe4713[_0xc461('0xa8')]&&_0xe4713[_0xc461('0xa8')][_0xc461('0xe3')])continue;for(const _0x1a2ee1 of _0xe4713['getRanges']())_0xce647e[_0xc461('0x81')](_0x1a2ee1)||_0xce647e[_0xc461('0xdf')](_0x1a2ee1);_0xe4713[_0xc461('0x12')]();}else{_0xce647e=_0xe4713;for(const _0x5a3057 of _0x14fc01)_0xe4713[_0xc461('0x81')](_0x5a3057)||_0xe4713[_0xc461('0xdf')](_0x5a3057);}}if(_0xce647e)return _0xce647e;_0x303664[_0xc461('0x1f')]();for(const {suggestion:_0x36ca07,meta:_0x4bea49}of this[_0xc461('0x45')](_0x14fc01,_0xc461('0x97')))_0x4bea49[_0xc461('0xd4')]&&(this[_0xc461('0x13e')]||!_0x4bea49['containsRangeInObject']&&!_0x4bea49[_0xc461('0xde')])&&Ot(_0x36ca07,_0x39a446)&&_0x303664[_0xc461('0x87')](_0x36ca07);for(const _0x2a991c of _0x303664){const _0x125dad=_0x2a991c[_0xc461('0xf8')]();if(!_0x39a446||!_0x39a446[_0xc461('0x61')]){if(_0x14fc01[_0xc461('0x7')](_0x1180e7=>_0x125dad[_0xc461('0xba')](_0x22128d=>_0x22128d['containsRange'](_0x1180e7,!0x0))))return _0x2a991c;}(!_0x2a991c[_0xc461('0x0')]||!_0x2a991c[_0xc461('0x0')][_0xc461('0x61')])&&(_0x125dad[_0xc461('0x7')](_0x5c290e=>_0x14fc01[_0xc461('0xba')](_0x4399ba=>_0x4399ba['containsRange'](_0x5c290e,!0x0)))&&_0x2a991c[_0xc461('0x7c')]());}const _0x1a7882=_0xccee84(),_0x1a789e=_0x1e5d64['id'],_0x3b9273='deletion:'+_0x195153,_0x1593d5=this[_0xc461('0xd9')]({'id':_0x1a7882,'type':_0x3b9273,'createdAt':new Date(),'authorId':_0x1a789e,'attributes':_0x39a446});for(const _0x2538b0 of _0x14fc01)_0x2538b0['detach'](),_0x2538b0[_0xc461('0x3e')]||_0xc461('0x113')==_0x2538b0[_0xc461('0x33')][_0xc461('0x37')]||this[_0xc461('0xaa')](_0x3b9273,_0x1a7882,_0x1a789e,_0x2538b0,_0x454d15['getMultiRangeId']());return _0x1593d5;}['_setSuggestionRange'](_0x5f156c,_0x23e9bb){const _0x17c92c=_0x5f156c[_0xc461('0xe9')]();this['_model'][_0xc461('0x11c')](_0x4319ea=>{_0x4319ea[_0xc461('0x20')](_0x17c92c,{'range':_0x23e9bb});});}['_addThreadToSuggestion'](_0x22a99d){const _0x297155=_0x22a99d['id'],_0x2e6528=this[_0xc461('0x13c')][_0xc461('0x52')]['get'](_0xc461('0x1a'));this[_0xc461('0x123')][_0xc461('0x120')](_0x297155)||this[_0xc461('0x123')]['addCommentThread']({'channelId':_0x2e6528,'threadId':_0x297155,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd95eb3=this[_0xc461('0x123')][_0xc461('0x4d')](_0x297155);_0xd95eb3[_0xc461('0xe5')](_0xc461('0xd3')),_0xd95eb3['isRemovable']=!0x1,_0x22a99d[_0xc461('0xa8')]=_0xd95eb3;}[_0xc461('0xfa')](_0x40c5c5,_0x3b15cb,_0x5b3914,_0x2a9aec){if(_0x40c5c5['type']!=_0x3b15cb||_0x40c5c5[_0xc461('0xcc')]!=_0x5b3914||_0x40c5c5[_0xc461('0xe4')]['id']!=_0x2a9aec)throw this[_0xc461('0x13c')][_0xc461('0x6f')](_0xc461('0x116')),new _0x339aa1(_0xc461('0x116'),this);}['_cutOutSuggestionMarker'](_0x152404,_0x220fb2){const _0x4bafca=_0x152404[_0xc461('0x101')]();if(_0x220fb2[_0xc461('0x65')](_0x4bafca))_0x152404[_0xc461('0x12')]();else{if(_0x4bafca['containsRange'](_0x220fb2)){const _0x4bf5a9=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0x30')][_0xc461('0x48')],_0xc461('0xc3'));this[_0xc461('0x2e')](_0x152404,this['_model'][_0xc461('0xa7')](_0x4bafca['start'],_0x4bf5a9));const _0x35f1fa=_0xccee84(),_0x5570eb=_0x152404[_0xc461('0xe4')]['id'],_0x5a4432=_0x152404[_0xc461('0xff')]+':'+_0x152404[_0xc461('0xcc')];this['_setSuggestionData']({'id':_0x35f1fa,'type':_0x5a4432,'createdAt':new Date(),'authorId':_0x5570eb,'data':_0x152404[_0xc461('0xa5')],'attributes':_0x152404[_0xc461('0x0')]});const _0x4afabe=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0xc3')][_0xc461('0x13')],_0xc461('0x75')),_0x226c6d=this[_0xc461('0x96')][_0xc461('0xa7')](_0x4afabe,_0x4bafca[_0xc461('0xc3')]);this[_0xc461('0xaa')](_0x5a4432,_0x35f1fa,_0x5570eb,_0x226c6d);}else{if(_0x4bafca['containsPosition'](_0x220fb2['start'])){const _0x3f3ffa=this[_0xc461('0x96')][_0xc461('0x134')](_0x220fb2[_0xc461('0x30')][_0xc461('0x48')],_0xc461('0xc3'));this[_0xc461('0x2e')](_0x152404,this[_0xc461('0x96')]['createRange'](_0x4bafca['start'],_0x3f3ffa));}else{const _0xa95307=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0xc3')][_0xc461('0x13')],'after');this[_0xc461('0x2e')](_0x152404,this[_0xc461('0x96')][_0xc461('0xa7')](_0xa95307,_0x4bafca[_0xc461('0xc3')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2110c0){for(const {suggestion:_0x2eab0b,meta:_0x5987f5}of this[_0xc461('0x45')](_0x2110c0,_0xc461('0x106'))){if(!_0x5987f5[_0xc461('0xd4')])continue;const _0x5acb98=_0x2eab0b[_0xc461('0xf8')]();for(const _0x286208 of _0x5acb98)if(!_0x2110c0[_0xc461('0x41')](_0x286208)['length'])return!0x0;}return!0x1;}[_0xc461('0x74')](_0x355865){const _0x9d643a=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))[_0xc461('0x7a')](_0x355865);if(!_0x9d643a)throw new _0x339aa1(_0xc461('0x7b'),this);return _0x9d643a;}[_0xc461('0x128')](_0x50db34){const _0x275e68=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17')),_0xd751fb=_0x4a4395(_0xc461('0x11f')+_0x50db34),_0x39e106=_0x275e68[_0xc461('0x7a')](_0xd751fb);return _0x39e106||_0x275e68[_0xc461('0x8d')]({'id':_0xd751fb,'name':_0x50db34});}['_createSuggestion'](_0x557a26,_0x4233bd,_0x3c1abf,_0x4e0877,_0x937c16){const _0x117f12=this[_0xc461('0x74')](_0x4e0877),_0xe1d885=this[_0xc461('0xb2')][_0xc461('0x6c')](_0x557a26,_0x4233bd,_0x3c1abf,_0x117f12,_0x937c16,_0x3ecb74=>this[_0xc461('0xb3')](_0x3c1abf,{'attributes':_0x3ecb74}));return this['listenTo'](_0xe1d885,_0xc461('0x121'),()=>{this[_0xc461('0xb3')](_0x3c1abf,{'state':_0xc461('0xd1')});},{'priority':_0xc461('0x9f')}),this['listenTo'](_0xe1d885,_0xc461('0x7c'),()=>{this[_0xc461('0xb3')](_0x3c1abf,{'state':_0xc461('0x139')});},{'priority':_0xc461('0x9f')}),this[_0xc461('0x4f')]['set'](_0x3c1abf,_0xe1d885),this[_0xc461('0x117')]['set'](_0xe1d885,_0xc461('0xd')),_0xe1d885;}['_splitMarkerName'](_0x504be9){const _0x2319b4=_0x504be9[_0xc461('0xb4')](':');return{'group':_0x2319b4[0x0],'type':_0x2319b4[0x1],'subType':_0x2319b4[_0xc461('0xe3')]>=0x5?_0x2319b4[0x2]:null,'id':_0x2319b4['length']<0x5?_0x2319b4[0x2]:_0x2319b4[0x3],'authorId':_0x2319b4[_0xc461('0xe3')]<0x5?_0x2319b4[0x3]:_0x2319b4[0x4],'markerCount':0x6==_0x2319b4[_0xc461('0xe3')]?_0x2319b4[0x5]:null};}[_0xc461('0x36')](_0x125bba,_0x27270b,_0x3d4127){const _0x16e662=_0x125bba[_0xc461('0x101')](),_0x3bc0ad=_0x16e662[_0xc461('0x30')],_0xfb2db8=_0x16e662[_0xc461('0xc3')];this[_0xc461('0x2e')](_0x125bba,this[_0xc461('0x96')][_0xc461('0xa7')](_0x3bc0ad,_0x27270b));const _0x5b9137=_0xccee84(),_0x5103d1=_0x125bba['creator']['id'],_0x5592cc=_0x125bba['type']+(_0x125bba[_0xc461('0xcc')]?':'+_0x125bba[_0xc461('0xcc')]:'');this[_0xc461('0xd9')]({'id':_0x5b9137,'type':_0x5592cc,'createdAt':new Date(),'authorId':_0x5103d1,'originalSuggestionId':_0x125bba['id'],'attributes':_0x125bba[_0xc461('0x0')],'data':_0x125bba['data']}),'formatBlock'==_0x125bba[_0xc461('0xff')]&&(_0x3d4127=this[_0xc461('0x96')]['createPositionBefore'](_0x3d4127[_0xc461('0x13')])),this[_0xc461('0xaa')](_0x5592cc,_0x5b9137,_0x5103d1,this[_0xc461('0x96')][_0xc461('0xa7')](_0x3d4127,_0xfb2db8));}[_0xc461('0x45')](_0x42f844,_0x33f7f6=null){const _0x483af8=[],_0x58203a=this['editor'][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'];Array[_0xc461('0x5e')](_0x42f844)||(_0x42f844=[_0x42f844]);for(const _0x44f6b4 of this[_0xc461('0x56')]()){if(!_0x44f6b4[_0xc461('0x129')])continue;if(_0x33f7f6&&_0x44f6b4['type']!=_0x33f7f6)continue;let _0x34de78=!0x1;for(const _0x10b5c0 of _0x44f6b4[_0xc461('0xf8')]()){for(const _0x497527 of _0x42f844){const _0x5c37cd=_0x497527[_0xc461('0x30')][_0xc461('0x65')](_0x10b5c0[_0xc461('0xc3')])||_0x497527['end']['isEqual'](_0x10b5c0[_0xc461('0x30')]);if(_0x5c37cd||_0x497527[_0xc461('0x46')](_0x10b5c0)){const _0x175819=_0x497527[_0xc461('0x10b')](_0x10b5c0)&&_t(this[_0xc461('0x96')]['schema'],_0x10b5c0['start'],_0x497527),_0x49f8df=_0x10b5c0[_0xc461('0x10b')](_0x497527)&&_t(this[_0xc461('0x96')][_0xc461('0x77')],_0x497527[_0xc461('0x30')],_0x10b5c0);_0x483af8[_0xc461('0x98')]({'suggestion':_0x44f6b4,'meta':{'isOwn':_0x58203a==_0x44f6b4['author'],'isNextTo':_0x5c37cd,'isInsideObject':_0x175819,'containsRangeInObject':_0x49f8df}}),_0x34de78=!0x0;break;}}if(_0x34de78)break;}}return _0x483af8;}['_addSuggestionMarker'](_0x3c0c55,_0x37be87,_0x4f2e07,_0x112731,_0x39d034){this[_0xc461('0x96')][_0xc461('0x11c')](_0x222e34=>{let _0x59ab16=_0xc461('0x91')+_0x3c0c55+':'+_0x37be87+':'+_0x4f2e07;_0x39d034&&(_0x59ab16=_0x59ab16+':'+_0x39d034),_0x222e34[_0xc461('0xb8')](_0x59ab16,{'range':_0x112731,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xc461('0x5f')](_0x3c1587){const _0x496474=_0x3c1587['previous'],_0x5cb2d4=_0x3c1587['next'];_0x3c1587[_0xc461('0x8b')]=null,null!=_0x496474&&(_0x496474[_0xc461('0xf2')]=null),_0x3c1587['next']=null,null!=_0x5cb2d4&&(_0x5cb2d4[_0xc461('0x8b')]=null),_0xc461('0xc4')==this[_0xc461('0x117')][_0xc461('0x7f')](_0x3c1587)&&(this[_0xc461('0x117')][_0xc461('0x44')](_0x3c1587,'removed'),this[_0xc461('0x6a')](_0xc461('0xbd'),_0x3c1587,_0x496474,_0x5cb2d4));}['_setSuggestionData'](_0x238ce7){const _0xc8a086=_0x238ce7['id'],_0xcf431=this[_0xc461('0x5b')](_0x238ce7);if(this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0xed')]){const _0x43b2bc=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0xe0')),_0x21882f=_0xcf431[_0xc461('0xbe')],_0x33ab46=_0xcf431[_0xc461('0xcc')]?_0xcf431['type']+':'+_0xcf431[_0xc461('0xcc')]:_0xcf431[_0xc461('0xff')],_0x441c59=this['editor'][_0xc461('0x21')],_0x5b0bdb=_0x43b2bc['add'](_0x30569e(_0x441c59,_0xc461('0x18'))),_0x4e2a28={'id':_0xc8a086,'type':_0x33ab46,'hasComments':_0x21882f,'data':_0x238ce7['data']||null,'originalSuggestionId':_0x238ce7[_0xc461('0x93')]||null,'attributes':_0xcf431[_0xc461('0x0')]};this['_adapter'][_0xc461('0xed')](_0x4e2a28)[_0xc461('0x73')](_0x31a4fc=>{_0xcf431[_0xc461('0x39')]=!0x0,_0x43b2bc['remove'](_0x5b0bdb),_0x31a4fc&&_0x31a4fc[_0xc461('0x103')]&&(this['_suggestions'][_0xc461('0x7f')](_0xc8a086)[_0xc461('0x103')]=_0x31a4fc[_0xc461('0x103')]);})['catch'](_0x314882=>{throw _0x1725bb('error-saving-suggestion-data-suggestion-discarded'),this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x2d')]({'isUndoable':!0x1},()=>{_0xcf431[_0xc461('0x7c')]();}),_0xcf431[_0xc461('0x10e')](),this[_0xc461('0x4f')]['delete'](_0xcf431['id']),this[_0xc461('0x117')][_0xc461('0x122')](_0xcf431),_0x314882;});}return _0xcf431;}[_0xc461('0xb3')](_0x1bfa81,_0x100093){const _0x2b219d=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0xe0')),_0x168a33=this[_0xc461('0xc5')](_0x1bfa81);if(this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0x107')]){if(_0x168a33['_saved']){const _0x184da3=_0x2b219d[_0xc461('0x87')](_0x30569e(this[_0xc461('0x13c')][_0xc461('0x21')],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1bfa81,_0x100093)[_0xc461('0x73')](()=>{_0x2b219d[_0xc461('0x34')](_0x184da3);});}else _0x168a33['on']('change:_saved',()=>{this[_0xc461('0xb3')](_0x1bfa81,_0x100093);});}}['_getSuggestionData'](_0x1e6542){if(!this[_0xc461('0xeb')]||!this[_0xc461('0xeb')][_0xc461('0xc5')])throw new _0x339aa1(_0xc461('0x132'),this);return this[_0xc461('0xeb')][_0xc461('0xc5')](_0x1e6542);}[_0xc461('0x6b')](_0x8d5ec2){const {id:_0x2f328e,type:_0x3895e8,subType:_0x4109bc,authorId:_0x2e7c80}=this[_0xc461('0x10')](_0x8d5ec2),_0x48c30e=this[_0xc461('0x4f')]['get'](_0x2f328e)||this[_0xc461('0x24')](_0x3895e8,_0x4109bc,_0x2f328e,_0x2e7c80,{});switch(this['_checkSuggestionCorrectness'](_0x48c30e,_0x3895e8,_0x4109bc,_0x2e7c80),this['_suggestionState'][_0xc461('0x7f')](_0x48c30e)){case _0xc461('0xd'):this[_0xc461('0x99')](_0x2f328e)['then'](_0x5b2510=>{let _0x35a478=Promise[_0xc461('0xc')]();_0x5b2510['hasComments']&&(_0x35a478=this[_0xc461('0x123')][_0xc461('0x11b')]({'channelId':this['editor']['config'][_0xc461('0x7f')](_0xc461('0x1a')),'threadId':_0x2f328e})),_0x35a478[_0xc461('0x73')](()=>{this['addSuggestionData'](_0x5b2510)[_0xc461('0x39')]=!0x0;});}),this[_0xc461('0x117')][_0xc461('0x44')](_0x48c30e,'markerReady');break;case'removed':this[_0xc461('0xb3')](_0x2f328e,{'state':_0xc461('0x127')});case _0xc461('0x12b'):this['_suggestionState'][_0xc461('0x44')](_0x48c30e,'ready'),this[_0xc461('0x6a')](_0xc461('0x25'),_0x48c30e);break;case _0xc461('0xc4'):this[_0xc461('0x6a')](_0xc461('0xc6'),_0x48c30e);}return _0x48c30e[_0xc461('0xdd')](_0x8d5ec2),_0x48c30e;}[_0xc461('0x4a')](_0x10ff19){const _0x28077a=Array['from'](_0x10ff19)[_0xc461('0x126')](_0x52437a=>!_0x52437a['isMultiRange']),_0x541481=this[_0xc461('0x56')]({'skipNotAttached':!0x0})[_0xc461('0x126')](_0x563a4b=>!_0x563a4b[_0xc461('0x2f')]),_0x2e8bee=_0x541481[_0xc461('0x126')](_0x996071=>!_0x10ff19['has'](_0x996071)),_0x2be762=new Map(_0x541481[_0xc461('0x7e')](_0x2d5a49=>[_0x2d5a49,this[_0xc461('0xb2')][_0xc461('0x22')](_0x2d5a49[_0xc461('0xff')],_0x2d5a49['subType'],'chain')])),_0x5547d3=new Map(_0x541481[_0xc461('0x7e')](_0x4b09d0=>[_0x4b09d0,_0x4b09d0[_0xc461('0x101')]()])),_0x599fca=new Set(),_0x49fb76=new Set();for(let _0x21167e=0x0;_0x21167e<_0x28077a[_0xc461('0xe3')];_0x21167e++)_0x1f748d(_0x28077a[_0x21167e],_0x28077a,_0x21167e+0x1);for(let _0x9f680e=0x0;_0x9f680e<_0x28077a['length'];_0x9f680e++)_0x1f748d(_0x28077a[_0x9f680e],_0x2e8bee,0x0);for(let _0x46dc1d=0x0;_0x46dc1d<_0x28077a['length'];_0x46dc1d++){const _0x1408b8=_0x28077a[_0x46dc1d];!_0x49fb76['has'](_0x1408b8)&&_0x1408b8[_0xc461('0x8b')]&&(_0x1408b8[_0xc461('0x8b')][_0xc461('0xf2')]===_0x1408b8&&(_0x1408b8[_0xc461('0x8b')][_0xc461('0xf2')]=null),_0x1408b8[_0xc461('0x8b')]=null),!_0x599fca[_0xc461('0xf1')](_0x1408b8)&&_0x1408b8[_0xc461('0xf2')]&&(_0x1408b8['next'][_0xc461('0x8b')]===_0x1408b8&&(_0x1408b8['next']['previous']=null),_0x1408b8[_0xc461('0xf2')]=null);}function _0x1f748d(_0xd21c1,_0x551dab,_0xbf5aac){for(let _0x174c73=_0xbf5aac;_0x174c73<_0x551dab['length'];_0x174c73++){const _0xf1b3f2=_0x315f9f(_0xd21c1,_0x551dab[_0x174c73]);_0xf1b3f2&&(_0xf1b3f2[0x0]['next']=_0xf1b3f2[0x1],_0xf1b3f2[0x1][_0xc461('0x8b')]=_0xf1b3f2[0x0],_0x599fca[_0xc461('0x87')](_0xf1b3f2[0x0]),_0x49fb76[_0xc461('0x87')](_0xf1b3f2[0x1]));}}function _0x315f9f(_0x4abcd8,_0x1e6378){if(_0x4abcd8[_0xc461('0x92')]['id']!==_0x1e6378[_0xc461('0x92')]['id'])return null;const _0xad6603=_0x2be762[_0xc461('0x7f')](_0x4abcd8)(_0x4abcd8,_0x1e6378,_0x5547d3[_0xc461('0x7f')](_0x4abcd8),_0x5547d3[_0xc461('0x7f')](_0x1e6378));if(!_0xad6603)return null;return _0x2be762['get'](_0x1e6378)(_0x4abcd8,_0x1e6378,_0x5547d3['get'](_0x4abcd8),_0x5547d3['get'](_0x1e6378))?_0xad6603[0x1][_0xc461('0xa8')]&&_0xad6603[0x1][_0xc461('0xa8')][_0xc461('0xe3')]?null:_0xad6603:null;}}[_0xc461('0x15')](_0x33502c){const _0x11c095=Array['from'](_0x33502c),_0x208241=this['getSuggestions']({'skipNotAttached':!0x0}),_0x493681=_0x208241[_0xc461('0x126')](_0x27e5c7=>!_0x33502c[_0xc461('0xf1')](_0x27e5c7)),_0x46352e=new Map(_0x11c095[_0xc461('0x7e')](_0x28716d=>[_0x28716d,this[_0xc461('0xb2')][_0xc461('0x22')](_0x28716d['type'],_0x28716d['subType'],_0xc461('0x8e'))])),_0x328919=new Map(_0x208241[_0xc461('0x7e')](_0x1f61b5=>[_0x1f61b5,_0x1f61b5[_0xc461('0xf8')]()]));for(let _0x235a10=0x0;_0x235a10<_0x11c095[_0xc461('0xe3')];_0x235a10++){if(_0x2eb49f(this,_0x11c095[_0x235a10],_0x11c095,_0x235a10+0x1))return!0x0;}for(let _0x26516c=0x0;_0x26516c<_0x11c095[_0xc461('0xe3')];_0x26516c++){if(_0x2eb49f(this,_0x11c095[_0x26516c],_0x493681,0x0))return!0x0;}return!0x1;function _0x2eb49f(_0x52033f,_0x2ab1a4,_0x46f4bf,_0x2c096f){for(let _0x4979ed=_0x2c096f;_0x4979ed<_0x46f4bf[_0xc461('0xe3')];_0x4979ed++){const _0x305f6b=_0x46f4bf[_0x4979ed];if(_0x305f6b[_0xc461('0xff')]!==_0x2ab1a4[_0xc461('0xff')]||_0x305f6b[_0xc461('0x92')]['id']!==_0x2ab1a4['author']['id']||_0x305f6b[_0xc461('0xcc')]!==_0x2ab1a4[_0xc461('0xcc')])continue;if(!Ut(_0x2ab1a4,_0x305f6b))continue;const _0x2f736d=_0x46352e[_0xc461('0x7f')](_0x2ab1a4),_0x2b8329=_0x328919[_0xc461('0x7f')](_0x2ab1a4),_0x437a07=_0x328919['get'](_0x305f6b),_0x556f9b=_0x2ab1a4[_0xc461('0xa8')]&&_0x2ab1a4[_0xc461('0xa8')]['length'],_0x1c346b=_0x305f6b[_0xc461('0xa8')]&&_0x305f6b[_0xc461('0xa8')][_0xc461('0xe3')];if(!_0x556f9b&&_0x2f736d(_0x437a07,_0x2b8329))return _0x52033f[_0xc461('0x102')](_0x305f6b,_0x2ab1a4),_0x328919[_0xc461('0x122')](_0x2ab1a4),!0x0;if(!_0x1c346b&&_0x2f736d(_0x2b8329,_0x437a07))return _0x52033f['_joinSuggestions'](_0x2ab1a4,_0x305f6b),_0x328919[_0xc461('0x122')](_0x305f6b),!0x0;}return!0x1;}}[_0xc461('0x102')](_0x5a4fde,_0x4bc8b8){if(_0x5a4fde[_0xc461('0x2f')])for(const _0x210938 of _0x4bc8b8[_0xc461('0xf8')]())_0x5a4fde[_0xc461('0xdf')](_0x210938);else{const _0x4f9e63=_0x4bc8b8['getFirstRange']()[_0xc461('0xc3')];this['_setSuggestionRange'](_0x5a4fde,this[_0xc461('0x96')]['createRange'](_0x5a4fde['getFirstRange']()[_0xc461('0x30')],_0x4f9e63));}_0x4bc8b8['removeMarkers']();}}class Bt{constructor(_0x3ad131){this[_0xc461('0x40')]=_0x3ad131,this[_0xc461('0x96')]=_0x3ad131[_0xc461('0x12f')],this[_0xc461('0x3a')]=new Map(),this[_0xc461('0x10a')]=new Map(),this[_0xc461('0x38')]();}[_0xc461('0x6c')](_0x29f37e,_0x591e15,_0x2f6a37,_0x469883,_0x720b99,_0x108c26){return new _0x454d15(this[_0xc461('0x96')],{'type':_0x29f37e,'subType':_0x591e15,'id':_0x2f6a37,'author':_0x469883,'creator':_0x469883,'attributes':_0x720b99,'onAttributesChange':_0x108c26,'onAccept':(..._0x53117b)=>this['getSuggestionCallback'](_0x29f37e,_0x591e15,_0xc461('0x121'))(..._0x53117b),'onDiscard':(..._0x3e5a06)=>this[_0xc461('0x22')](_0x29f37e,_0x591e15,'discard')(..._0x3e5a06)});}['registerCustomCallback'](_0x418cc9,_0x114515,_0x33b7e6,_0x27753e){const _0x5bb5ca=_0x418cc9+':'+_0x114515+':'+_0x33b7e6;this[_0xc461('0x3a')]['set'](_0x5bb5ca,_0x27753e);}[_0xc461('0x22')](_0x199964,_0x3edfcb,_0x213118){const _0x2584f1=_0x199964+':'+_0x3edfcb+':'+_0x213118;return this['_customCallbacks']['get'](_0x2584f1)||this[_0xc461('0x10a')][_0xc461('0x7f')](_0x199964+':'+_0x213118);}[_0xc461('0x38')](){const _0x448e67=()=>!0x1,_0x2a8d67=_0x3459ee=>{_0x3459ee[_0xc461('0x89')]((_0x18d0a7,_0x5cafcc)=>_0x18d0a7[_0xc461('0x30')][_0xc461('0x19')](_0x5cafcc['start'])?0x1:-0x1),this[_0xc461('0x96')]['change'](_0xc9e4e9=>{for(const _0xfc9dc9 of _0x3459ee){let _0x2303c5;_0x2303c5=_0xfc9dc9['end']['isAtEnd']&&_0xfc9dc9[_0xc461('0xc3')][_0xc461('0x13')]==_0xfc9dc9[_0xc461('0x30')][_0xc461('0x3b')]?_0xc9e4e9[_0xc461('0x9a')](_0xfc9dc9['start'][_0xc461('0x3b')],'on'):_0xc9e4e9[_0xc461('0x9a')](_0xfc9dc9),this[_0xc461('0x96')][_0xc461('0x78')](_0x2303c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x12a76a=(_0x3d5e07,_0xe573cc)=>{this[_0xc461('0x96')][_0xc461('0x11c')](_0x1385eb=>{const {commandName:_0x70844b,commandParams:_0x46f2d8=[]}=_0xe573cc,_0x4cd2a6=_0x3d5e07['map'](_0x529b2c=>(Mt(_0x529b2c)&&(_0x529b2c=this[_0xc461('0x96')]['createRange'](_0x529b2c[_0xc461('0xc3')])),_0x529b2c))[_0xc461('0x126')](_0x2da0d7=>'$graveyard'!==_0x2da0d7[_0xc461('0x33')][_0xc461('0x37')]);if(_0x4cd2a6['length']<0x1)return;const _0x2ab3e3=Array['from'](this[_0xc461('0x96')]['document'][_0xc461('0x1c')][_0xc461('0xf8')]())[_0xc461('0x7e')](_0x5743d0=>_0x439992['fromRange'](_0x5743d0));_0x1385eb[_0xc461('0xa2')](_0x4cd2a6);for(const _0x8642dc of this[_0xc461('0x40')][_0xc461('0x66')][_0xc461('0x66')]())_0x8642dc['refresh']();_0x46f2d8[_0xc461('0x98')]({'forceDefaultExecution':!0x0}),this['_editor'][_0xc461('0x3f')](_0x70844b,..._0x46f2d8);const _0xb8b626=_0x2ab3e3[_0xc461('0x126')](_0x445513=>_0xc461('0x113')!=_0x445513['root'][_0xc461('0x37')]);_0xb8b626[_0xc461('0xe3')]>0x0&&_0x1385eb['setSelection'](_0xb8b626);for(const _0x5109c0 of _0x2ab3e3)_0x5109c0[_0xc461('0x54')]();});},_0x5380cf=(_0x4a24a6,_0x3d692f)=>0x1==_0x4a24a6['length']&&0x1==_0x3d692f['length']&&_0x4a24a6[0x0][_0xc461('0xc3')][_0xc461('0x65')](_0x3d692f[0x0][_0xc461('0x30')]),_0x1b6fc9=(_0x2cc9a6,_0x294708,_0x23b1e2,_0x5aeca8)=>xt(_0x2cc9a6,_0x294708,_0x23b1e2,_0x5aeca8,this[_0xc461('0x96')])?[_0x2cc9a6,_0x294708]:xt(_0x294708,_0x2cc9a6,_0x5aeca8,_0x23b1e2,this['_model'])?[_0x294708,_0x2cc9a6]:null;this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x125'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x109'),_0x2a8d67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0xc9'),_0x5380cf),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x9d'),_0x1b6fc9),this['_defaultCallbacks'][_0xc461('0x44')](_0xc461('0x4'),_0x2a8d67),this[_0xc461('0x10a')][_0xc461('0x44')]('deletion:discard',_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')]('deletion:join',_0x5380cf),this[_0xc461('0x10a')]['set'](_0xc461('0x63'),_0x1b6fc9),this[_0xc461('0x10a')]['set'](_0xc461('0x3c'),_0x12a76a),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x11'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x2c'),_0x5380cf),this[_0xc461('0x10a')]['set'](_0xc461('0x4e'),_0x448e67),this['_defaultCallbacks'][_0xc461('0x44')](_0xc461('0x130'),_0x12a76a),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x12e'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')]('formatBlock:join',_0x5380cf),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x8f'),_0x448e67);}}function _t(_0x3b7d76,_0x42d870,_0x490d37){for(const _0x49e16f of _0x42d870['parent'][_0xc461('0xea')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49e16f[_0xc461('0x33')]==_0x49e16f)return!0x1;if(!_0x490d37[_0xc461('0x58')](_0x49e16f))return!0x1;if(_0x3b7d76[_0xc461('0xe')](_0x49e16f)||_0x3b7d76[_0xc461('0x35')](_0x49e16f))return!0x0;}return!0x1;}function Mt(_0x52e369){return _0x52e369[_0xc461('0xc3')][_0xc461('0x13')]==_0x52e369['start']['nodeAfter']&&_0x52e369[_0xc461('0xc3')]['isAtStart'];}function $t(_0x57ee62,_0x267a9d,_0x17e52b,_0xcd09e7){const _0x4c6e0b=_0x4e3eb2=>!_0x4e3eb2[_0xc461('0x12d')]['is']('$textProxy')&&!_0xcd09e7[_0xc461('0xe')](_0x4e3eb2['item']),_0x57bd10=_0x57ee62[_0xc461('0x30')][_0xc461('0x88')](_0x4c6e0b),_0x549417=_0x57ee62[_0xc461('0xc3')][_0xc461('0x88')](_0x4c6e0b,{'direction':_0xc461('0xb9')});return(!_0x57ee62[_0xc461('0x30')][_0xc461('0x65')](_0x57bd10)||!_0x57ee62[_0xc461('0xc3')][_0xc461('0x65')](_0x549417))&&(_0x57bd10[_0xc461('0x19')](_0x549417)?_0x17e52b[_0xc461('0x20')](_0x267a9d,{'range':_0x17e52b[_0xc461('0xa7')](_0x57bd10,_0x549417)}):_0x17e52b[_0xc461('0x51')](_0x267a9d),!0x0);}function Nt(_0x4b2bb8){return _0x4a4395(_0x4b2bb8);}function Rt(_0x37a645){const _0x6a2330=_0x37a645[_0xc461('0x30')][_0xc461('0x3b')];return _0x6a2330&&_0x6a2330['is']('element');}function jt(_0x5ae169,_0x441df8){const _0x1ec82e=_0x441df8[_0xc461('0x77')]['isObject'](_0x5ae169)||_0x441df8['schema']['isSelectable'](_0x5ae169);return _0x441df8[_0xc461('0xa7')](_0x441df8[_0xc461('0x134')](_0x5ae169,_0xc461('0xa0')),_0x1ec82e?_0x441df8[_0xc461('0xec')](_0x5ae169):_0x441df8[_0xc461('0x134')](_0x5ae169,_0xc461('0xc3')));}function xt(_0x424e8d,_0x598863,_0x5941c5,_0x1ade99,_0x8546c4){if(!Ut(_0x424e8d,_0x598863))return!0x1;if(_0x5941c5[_0xc461('0xc3')][_0xc461('0x65')](_0x1ade99[_0xc461('0x30')]))return!0x0;if(_0x424e8d[_0xc461('0xff')]!=_0x598863[_0xc461('0xff')])return!0x1;if(!_0x5941c5[_0xc461('0xc3')][_0xc461('0x8a')](_0x1ade99[_0xc461('0x30')]))return!0x1;const _0x1ece40=_0x8546c4['createRange'](_0x5941c5['end'],_0x1ade99[_0xc461('0x30')])['getWalker']();for(const _0x17bdf1 of _0x1ece40)if([_0xc461('0x138'),_0xc461('0x1b')][_0xc461('0xb5')](_0x17bdf1['type'])&&_0x8546c4[_0xc461('0x77')]['isLimit'](_0x17bdf1[_0xc461('0x12d')]))return!0x1;return!0x0;}function Ut(_0x47aef9,_0x573875){return!(!_0x47aef9[_0xc461('0xe7')]||!_0x573875[_0xc461('0xe7')])&&_0x4541bd(_0x47aef9[_0xc461('0x0')],_0x573875[_0xc461('0x0')]);}function Ot(_0x38c48d,_0x518e69){const _0x33a3d5=Et(_0x38c48d[_0xc461('0x0')]),_0x472288=Et(_0x518e69);if(!_0x38c48d[_0xc461('0xe7')])return!0x1;for(const _0x1fcd53 of Object[_0xc461('0xb1')](_0x472288))if(!_0x4541bd(_0x33a3d5[_0x1fcd53],_0x472288[_0x1fcd53]))return!0x1;return!0x0;}function Et(_0x5c3873){const _0x5562eb=Object[_0xc461('0xc8')]({},_0x5c3873);return delete _0x5562eb[_0xc461('0x61')],delete _0x5562eb[_0xc461('0x119')],_0x5562eb;}
23
+ const _0x4f65=['trackChangesCommand','isDocumentOperation','getDifference','splice','default','trackChanges.trackFormatChanges','setSelection','getMarkers','unbind','_mergeNestedSuggestions','removed','element','getShiftedBy','change:activeMarkers','_commentsRepository','isLimit','isInContent','_suggestions','markerNameToElements','oldRange','_getExternalAuthor','getChanges','fromCharCode','removeClass','multipleBlocks','getRanges','removeMarkers','_setSuggestionRange','formatBlock:join','data-suggestion','hasSuggestion','formatInline','getAllAdjacentSuggestions','getUser','from','collaboration.channelId','clear','_model','suggestionLoaded','consumable','formatInline:','highest','suggestion-type','update:suggestion','isBefore','formatBlock','getIntersection','add','after','split','createRange','start','_handleNewSuggestionMarker','getMultiRangeId','isBlock','_findSuggestions','_updateSuggestionData','markers','subType','commandName','_getSuggestionData','fire','then','hasCommentThread','elementToElement','dataToMarker','chain','_defaultCallbacks','activeMarkers','filter','remove','_onDiscard','containsRangeInObject','discardAllSuggestions','deletion:','insertion:accept','accept','deletion:join','rethrowUnexpectedError','always','$graveyard','_enabledCommands','every','getSuggestions','discard','isAtEnd','$marker','_addThreadToSuggestion','isTouching','isArray','_refreshSuggestionsChain','buildSuggestion','assign','TrackChangesEditing','getRange','addMarkerName','values','commands','previous','reconvertMarker','isUndo','forceDefaultExecution','nodeBefore','insert','track-changes-user-not-found','selection','addHighlight','formatGroupId','creator','delete','formatInline:discard','updateSuggestion','map','getChangedMarkers','group','resolve','editingDowncast','_splitMarkerName','change:data','sort','editing','hasComments','document','markerName','getLastMatchingPosition','newRange','trackChanges.mergeNestedSuggestions','_createSuggestion','deletion:accept','options','root','createPositionBefore','config','enableReadOnlyMode','isRemovable','_getAuthorFromId','push','refresh','stop','discardSuggestion','isOwn','clone','getFirstMarker','name','getSuggestionCallback','isMultiRange','addSuggestionData','applyOperation','open','has','deletion:discard','elementEnd','deletion:chain','error-saving-suggestion-data-suggestion-discarded','deletion','ck-suggestion-marker--active','markDeletion','elementStart','isExternal','_joinWithAdjacentSuggestions','CommentsRepository','toViewElement','move','never','discardSelectedSuggestions','authorName','conversion','formatBlock:chain','consume','containsPosition','@external','_descriptionFactory','addUser','widget','high','addComment','addClass','authoredAt','nodeAfter','isSelectable','createPositionAt','isInsideObject','head','registerPostFixer','getAttribute','getCommentThread','$textProxy','containsRange','addMarker:suggestion','change','model','adapter','createRangeIn','Users','pluginName','_isForcedDefaultExecutionBlock','_removeSuggestion','rootName','normal','isObject','value','trackChanges','_suggestionState','isNextTo','ready','getNearestSelectionRange','insertion','ck-suggestion-marker','type','createPositionAfter','_suggestionFactory','howMany','editor','targetPosition','getAncestors','moveTargetPosition','before','addMarker:suggestion:formatBlock','addRange','getCustomProperty','PENDING_ACTION_SUGGESTION','skipNestingCheck','_cutOutSuggestionMarker','setAttribute','define','createSelection','parent','marker-count','getWalker','size','ck-suggestion-marker-formatBlock','data','next','updateMarker','ck-suggestion-marker-','mapper','external:','acceptSelectedSuggestions','item','addCommentThread','isAfter','get','bindElementToMarker','setTo','isCollapsed','acceptAllSuggestions','locale','dataDowncast','range','_trackFormatChanges','execute','suggestionChanged','removeMarker','insertion:chain','_isDataLoaded','_rangeIsInLocalUserInsertion','length','suggestion','enableCommand','enqueueChange','createdAt','author','acceptSuggestion','getSuggestion','addSuggestion','commentThread','init','notReady','formatBlock:','isEqual','join','containsItem','multi','some','removeAttribute','_addSuggestionMarker','includes','plugins','markInsertion','change:_saved','fetchCommentThread','attributes','schema','getItems','_joinSuggestions','PendingActions','writer','documentSelection','differ','_breakSuggestionMarker','upcast','set','detach','markBlockFormat','requires','_saved','forward','markerToData','markerToHighlight','_registerDefaultCallbacks','_customCallbacks','_editor','_checkSuggestionCorrectness','track-changes-suggestion-data-mismatch','_adapter','position','end','getFirstRange','dataReady','formatBlock:accept','batch','backward','markInlineFormat','listenTo','isIntersectingWithRange','_setSuggestionData','for','showSuggestionHighlights'];(function(_0xebb272,_0x4f656a){const _0x5e6a2e=function(_0x42e602){while(--_0x42e602){_0xebb272['push'](_0xebb272['shift']());}};_0x5e6a2e(++_0x4f656a);}(_0x4f65,0xa1));const _0x5e6a=function(_0xebb272,_0x4f656a){_0xebb272=_0xebb272-0x0;let _0x5e6a2e=_0x4f65[_0xebb272];return _0x5e6a2e;};import{Plugin as _0x40be21,PendingActions as _0x3f1c9b}from'ckeditor5/src/core';import{LiveRange as _0x14a52e}from'ckeditor5/src/engine';import{CKEditorError as _0x6a793a,uid as _0x260652,priorities as _0x23c666,logWarning as _0x5e52fa}from'ckeditor5/src/utils';import{toWidget as _0x39ba1b}from'ckeditor5/src/widget';import{Users as _0x5c4d5d,hashObject as _0xd4616e}from'ckeditor5-collaboration/src/collaboration-core';import _0x29ed9d from'./commands/trackchangescommand';import _0x33967c from'./commands/acceptsuggestioncommand';import _0x56c3b3 from'./commands/discardsuggestioncommand';import _0x4b9649 from'./commands/executeonallsuggestionscommand';import _0x5988ec from'./commands/executeonselectedsuggestionscommand';import _0x51161f from'./suggestion';import _0x527da4 from'./suggestiondescriptionfactory';import _0x2676a5 from'./integrations/aiassistant';import _0x1129a2 from'./integrations/alignment';import _0x578d4a from'./integrations/basicstyles';import _0x5cd697 from'./integrations/blockquote';import _0x30116a from'./integrations/ckbox';import _0x4c739d from'./integrations/codeblock';import _0x334a14 from'./integrations/comments';import _0x598801 from'./integrations/deletecommand';import _0x43382c from'./integrations/documentlist';import _0x2103da from'./integrations/entercommand';import _0x2b6b0a from'./integrations/findandreplace';import _0x307eff from'./integrations/font';import _0x37da1c from'./integrations/formatpainter';import _0x153d75 from'./integrations/heading';import _0x25af0f from'./integrations/highlight';import _0x46a331 from'./integrations/horizontalline';import _0xda4e26 from'./integrations/htmlembed';import _0x367ffb from'./integrations/image';import _0x29b5f5 from'./integrations/imagereplace';import _0x3713d8 from'./integrations/importword';import _0x6b3970 from'./integrations/indent';import _0x3f7d64 from'./integrations/inputcommand';import _0x735d2d from'./integrations/link';import _0x6a89cc from'./integrations/list';import _0x315551 from'./integrations/listproperties';import _0xc20e6d from'./integrations/mediaembed';import _0x3fe516 from'./integrations/mention';import _0x496795 from'./integrations/pagebreak';import _0x87179 from'./integrations/paragraph';import _0x217981 from'./integrations/removeformat';import _0x4ce3d8 from'./integrations/restrictededitingmode';import _0x4733c3 from'./integrations/shiftentercommand';import _0x27e8c1 from'./integrations/standardeditingmode';import _0x356a38 from'./integrations/style';import _0x573b67 from'./integrations/table';import _0x163b14 from'./integrations/tablemergesplit';import _0x322a68 from'./integrations/tableheadings';import _0x5e40b6 from'./integrations/tableclipboard';import _0x37c4fa from'./integrations/tablecolumnresize';import _0x5a0747 from'./integrations/template';import _0x48347b from'./integrations/tableofcontents';import _0x9ac38 from'./integrations/title';import _0x156b26 from'./integrations/undo';import{getTranslation as _0x3f2328}from'./utils/common-translations';import _0x4099d7 from'./integrations/tablecaption';import _0x563d10 from'./integrations/documentlistproperties';import _0x1f1662 from'./integrations/tableproperties';import{isEqual as _0x37cf62}from'lodash-es';export default class p extends _0x40be21{static get[_0x5e6a('0x85')](){return[_0x5e6a('0x13d'),_0x5c4d5d,_0x3f1c9b,_0x2676a5,_0x1129a2,_0x578d4a,_0x5cd697,_0x30116a,_0x4c739d,_0x334a14,_0x598801,_0x43382c,_0x563d10,_0x2103da,_0x2b6b0a,_0x307eff,_0x37da1c,_0x153d75,_0x25af0f,_0x46a331,_0xda4e26,_0x367ffb,_0x29b5f5,_0x3713d8,_0x6b3970,_0x3f7d64,_0x735d2d,_0x6a89cc,_0x315551,_0xc20e6d,_0x3fe516,_0x496795,_0x87179,_0x217981,_0x4ce3d8,_0x4733c3,_0x27e8c1,_0x356a38,_0x573b67,_0x163b14,_0x322a68,_0x4099d7,_0x5e40b6,_0x37c4fa,_0x48347b,_0x1f1662,_0x5a0747,_0x9ac38,_0x156b26];}static get[_0x5e6a('0x21')](){return _0x5e6a('0xfa');}constructor(_0x606d4){function _0x4a171a(_0x451712){return _0x451712[_0x5e6a('0x10d')](_0x2e0070=>String[_0x5e6a('0xb3')](_0x2e0070))[_0x5e6a('0x6d')]('');}super(_0x606d4),this[_0x5e6a('0x82')]('activeMarkers',[]),this['on'](_0x5e6a('0xaa'),(_0x61912c,_0x6bd364,_0x1aac3e,_0x121a32)=>{this[_0x5e6a('0xc2')][_0x5e6a('0x1c')](()=>{for(const _0x2d8683 of[..._0x121a32,..._0x1aac3e])this[_0x5e6a('0xc2')][_0x5e6a('0xd6')][_0x5e6a('0x132')](_0x2d8683)&&_0x606d4[_0x5e6a('0x115')][_0x5e6a('0x100')](_0x2d8683);});}),this[_0x5e6a('0xa')]=new _0x527da4(this[_0x5e6a('0x33')][_0x5e6a('0x1d')][_0x5e6a('0x79')],this[_0x5e6a('0x33')][_0x5e6a('0x55')]),this[_0x5e6a('0x8f')]=null,this[_0x5e6a('0x31')]=new Bt(this[_0x5e6a('0x33')]),this['_suggestions']=new Map(),this[_0x5e6a('0xab')]=_0x606d4[_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x13d')),this[_0x5e6a('0xee')]=new Set(),this[_0x5e6a('0xc2')]=this[_0x5e6a('0x33')][_0x5e6a('0x1d')],this[_0x5e6a('0x29')]=new WeakMap(),this[_0x5e6a('0x22')]=!0x1,_0x606d4[_0x5e6a('0x121')][_0x5e6a('0x3f')](_0x5e6a('0xa2'),_0x5e6a('0xa1')),this[_0x5e6a('0x58')]=_0x606d4[_0x5e6a('0x121')][_0x5e6a('0x50')]('trackChanges.trackFormatChanges'),_0x606d4['config'][_0x5e6a('0x3f')](_0x5e6a('0x11b'),!0x0),this[_0x5e6a('0xa6')]=_0x606d4[_0x5e6a('0x121')][_0x5e6a('0x50')](_0x5e6a('0x11b')),this['trackChangesCommand']=new _0x29ed9d(_0x606d4,this['_enabledCommands']),this[_0x4a171a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4a171a([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x34]);}[_0x5e6a('0x69')](){const _0x367a03=this[_0x5e6a('0x33')];_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')](_0x5e6a('0x111'))[_0x5e6a('0x89')]({'model':_0x5e6a('0x60'),'view':_0x13aa21=>{const {id:_0x5aca74,type:_0x32982c}=this[_0x5e6a('0x112')](_0x13aa21['markerName']),_0x117205=[_0x5e6a('0x2e'),_0x5e6a('0x49')+_0x32982c];let _0x4ba062=0xbb8;return this['activeMarkers'][_0x5e6a('0x73')](_0x13aa21[_0x5e6a('0x118')])&&(_0x117205[_0x5e6a('0x125')](_0x5e6a('0x138')),_0x4ba062=0xbc2),'deletion'==_0x32982c&&(_0x4ba062+=0x5),{'classes':_0x117205,'attributes':{'data-suggestion':_0x5aca74},'priority':_0x4ba062};}}),_0x367a03[_0x5e6a('0x5')]['for'](_0x5e6a('0x56'))['add'](_0x11c761=>{_0x11c761['on'](_0x5e6a('0x1b'),(_0x3b8440,_0x740aba,_0x2854d0)=>{if(!_0x2854d0[_0x5e6a('0x11e')][_0x5e6a('0x9c')])return;const _0xa94f3d=_0x740aba['item'];if(!_0xa94f3d)return;const _0x418b61=_0x2854d0['mapper'][_0x5e6a('0x0')](_0xa94f3d);_0x367a03[_0x5e6a('0x1d')]['schema'][_0x5e6a('0x26')](_0xa94f3d)&&_0x418b61&&!_0x418b61[_0x5e6a('0x3a')](_0x5e6a('0xc'))&&_0x418b61['is']('containerElement')&&_0x39ba1b(_0x418b61,_0x2854d0[_0x5e6a('0x7d')]);},{'priority':_0x5e6a('0xd')});}),_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')](_0x5e6a('0x56'))['markerToHighlight']({'model':_0x5e6a('0x60'),'view':(_0x30a49a,_0x68b3f3)=>{if(!_0x68b3f3[_0x5e6a('0x11e')]['showSuggestionHighlights'])return null;const {type:_0x2841d9}=this['_splitMarkerName'](_0x30a49a[_0x5e6a('0x118')]);return{'classes':[_0x5e6a('0x2e'),_0x5e6a('0x49')+_0x2841d9],'priority':0xbb8};}});const _0x19f96e=({showActiveMarkers:_0x23bfff=!0x0}={})=>(_0x4dc085,_0x1ffd65,_0x48a366)=>{if(!_0x1ffd65['item'])return;if(_0x1ffd65['item']['is'](_0x5e6a('0x106')))return void _0x48a366[_0x5e6a('0xc4')][_0x5e6a('0x7')](_0x1ffd65['item'],_0x4dc085[_0x5e6a('0x12c')]);const _0x34ec09=_0x48a366[_0x5e6a('0x4a')]['toViewElement'](_0x1ffd65[_0x5e6a('0x4d')]);if(!(_0x1ffd65[_0x5e6a('0x4d')]['is'](_0x5e6a('0xa8'))&&_0x367a03['model'][_0x5e6a('0x79')][_0x5e6a('0xd3')](_0x1ffd65['item'])&&!_0x34ec09[_0x5e6a('0x3a')](_0x5e6a('0x107'))))return;const {id:_0x526f08}=this[_0x5e6a('0x112')](_0x1ffd65[_0x5e6a('0x118')]);_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0xf')]([_0x5e6a('0x2e'),_0x5e6a('0x45')],_0x34ec09),_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0x3e')](_0x5e6a('0xba'),_0x526f08,_0x34ec09),_0x48a366[_0x5e6a('0x4a')][_0x5e6a('0x51')](_0x34ec09,_0x1ffd65[_0x5e6a('0x118')]),_0x23bfff&&(this[_0x5e6a('0xe1')]['includes'](_0x1ffd65[_0x5e6a('0x118')])?_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0xf')]('ck-suggestion-marker--active',_0x34ec09):_0x48a366[_0x5e6a('0x7d')][_0x5e6a('0xb4')]('ck-suggestion-marker--active',_0x34ec09));for(const _0x533560 of _0x367a03['model'][_0x5e6a('0x1f')](_0x1ffd65[_0x5e6a('0x4d')])[_0x5e6a('0x7a')]())_0x48a366['consumable'][_0x5e6a('0x7')](_0x533560,_0x4dc085['name']);_0x48a366[_0x5e6a('0xc4')]['consume'](_0x1ffd65['item'],_0x4dc085['name']);};_0x367a03['conversion']['for']('dataDowncast')[_0x5e6a('0xcc')](_0x2c49f0=>{_0x2c49f0['on']('addMarker:suggestion:formatBlock',(_0x15e490,_0x46defd,_0x2dfd33)=>{_0x2dfd33[_0x5e6a('0x11e')]['showSuggestionHighlights']&&_0x19f96e({'showActiveMarkers':!0x1})(_0x15e490,_0x46defd,_0x2dfd33);},{'priority':_0x5e6a('0xc6')});}),_0x367a03[_0x5e6a('0x5')]['for']('dataDowncast')[_0x5e6a('0x88')]({'model':_0x5e6a('0x60'),'view':(_0x29ee55,_0x3351dc)=>_0x3351dc[_0x5e6a('0x11e')][_0x5e6a('0x9c')]?null:{'group':'suggestion','name':_0x29ee55['substr'](0xb)}}),_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')]('upcast')[_0x5e6a('0xdd')]({'view':{'name':_0x5e6a('0x60'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1d8141,{writer:_0x4a1ff2})=>{let _0x5c505b='suggestion:'+_0x1d8141[_0x5e6a('0x17')](_0x5e6a('0xc7'))+':'+_0x1d8141['getAttribute']('id');return _0x1d8141[_0x5e6a('0x17')](_0x5e6a('0x42'))&&(_0x5c505b+=':'+_0x1d8141[_0x5e6a('0x17')](_0x5e6a('0x42'))),_0x4a1ff2['createElement'](_0x5e6a('0xf3'),{'data-name':_0x5c505b});}}),_0x367a03[_0x5e6a('0x5')]['for'](_0x5e6a('0x81'))[_0x5e6a('0xde')]({'view':_0x5e6a('0x60')}),_0x367a03[_0x5e6a('0x5')]['for']('editingDowncast')['add'](_0x63dfa0=>{_0x63dfa0['on'](_0x5e6a('0x38'),_0x19f96e(),{'priority':_0x5e6a('0xd')});}),_0x367a03[_0x5e6a('0x5')][_0x5e6a('0x9b')](_0x5e6a('0x111'))[_0x5e6a('0xcc')](_0x5234b0=>{_0x5234b0['on']('removeMarker:suggestion:formatBlock',(_0x2f7e93,_0x43a19f,_0x3578ae)=>{const _0x2ac0d2=_0x3578ae[_0x5e6a('0x4a')][_0x5e6a('0xaf')](_0x43a19f[_0x5e6a('0x118')]);if(_0x2ac0d2)for(const _0x5a080f of _0x2ac0d2)_0x5a080f['getCustomProperty'](_0x5e6a('0x107'))||(_0x3578ae[_0x5e6a('0x7d')][_0x5e6a('0xb4')]([_0x5e6a('0x2e'),'ck-suggestion-marker-formatBlock',_0x5e6a('0x138')],_0x5a080f),_0x3578ae[_0x5e6a('0x7d')][_0x5e6a('0x71')](_0x5e6a('0xba'),_0x5a080f),_0x3578ae[_0x5e6a('0x4a')]['unbindElementFromMarkerName'](_0x5a080f,_0x43a19f[_0x5e6a('0x118')]));},{'priority':'high'});}),_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')][_0x5e6a('0x16')](_0x3ef285=>{let _0x40a97e=!0x1;const _0x58078b=Array[_0x5e6a('0xbf')](_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')][_0x5e6a('0x7f')]['getChangedMarkers']()),_0x1fe0c0=new Set();for(const {name:_0x3418ab,data:_0x3a71e9}of _0x58078b){const {group:_0x10d535,type:_0x41edcb,id:_0x7cb38e}=this[_0x5e6a('0x112')](_0x3418ab);if(_0x5e6a('0x60')!==_0x10d535)continue;const _0x1d3d17=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x7cb38e);if(null!=_0x3a71e9[_0x5e6a('0x11a')]){'formatInline'==_0x41edcb&&(_0x40a97e=_0x40a97e||$t(_0x3a71e9['newRange'],_0x3418ab,_0x3ef285,_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x79')]));if(_0x3a71e9['newRange'][_0x5e6a('0x53')]||_0x5e6a('0xed')==_0x3a71e9[_0x5e6a('0x11a')][_0x5e6a('0x11f')][_0x5e6a('0x24')]||_0x5e6a('0xca')==_0x41edcb&&!Rt(_0x3a71e9[_0x5e6a('0x11a')])||_0x5e6a('0x137')==_0x41edcb&&!(!Mt(_0x2114be=_0x3a71e9['newRange'])&&!function(_0x2e3615){return _0x2e3615[_0x5e6a('0xd0')][_0x5e6a('0x41')]==_0x2e3615[_0x5e6a('0x91')][_0x5e6a('0x103')]&&_0x2e3615['start'][_0x5e6a('0xf2')];}(_0x2114be)))_0x3ef285['removeMarker'](_0x3418ab),_0x40a97e=!0x0;else{if(!_0x1d3d17||!_0x1d3d17[_0x5e6a('0xad')])continue;_0x1fe0c0[_0x5e6a('0xcc')](_0x1d3d17);}}}var _0x2114be;return _0x1fe0c0[_0x5e6a('0x44')]>0x0&&(_0x40a97e=!!this[_0x5e6a('0x13c')](_0x1fe0c0)||_0x40a97e),_0x40a97e;}),_0x367a03[_0x5e6a('0x1d')]['document'][_0x5e6a('0x16')](_0x30f1b6=>{let _0x64c7ae=!0x1;for(const _0x46a3d8 of _0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')]['differ'][_0x5e6a('0xb2')]()){if(_0x5e6a('0x104')!=_0x46a3d8['type'])continue;const _0x51c49a=_0x46a3d8[_0x5e6a('0x90')][_0x5e6a('0xa9')](_0x46a3d8[_0x5e6a('0x5f')]);if(_0x51c49a[_0x5e6a('0xf2')])for(const _0x34dde6 of this['_suggestions'][_0x5e6a('0xfd')]()){if(_0x34dde6[_0x5e6a('0x12e')]||!_0x34dde6[_0x5e6a('0xad')])continue;if(_0x5e6a('0xca')!=_0x34dde6[_0x5e6a('0x2f')])continue;const _0x498b5b=_0x34dde6[_0x5e6a('0x92')]();if(_0x498b5b[_0x5e6a('0xd0')][_0x5e6a('0x41')]!=_0x498b5b[_0x5e6a('0x91')][_0x5e6a('0x41')]&&_0x498b5b[_0x5e6a('0x91')]['isEqual'](_0x46a3d8[_0x5e6a('0x90')])){const _0x581de7=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0x498b5b['start'],_0x51c49a);_0x30f1b6[_0x5e6a('0x48')](_0x34dde6[_0x5e6a('0x12b')](),{'range':_0x581de7}),_0x64c7ae=!0x0;}}}return _0x64c7ae;}),_0x367a03['model'][_0x5e6a('0xd6')]['on'](_0x5e6a('0xc8'),(_0x569069,_0xd4746d,_0x1e7318)=>{if(null==_0x1e7318){const {id:_0x47580e}=this[_0x5e6a('0x112')](_0xd4746d[_0x5e6a('0x12c')]),_0x30a7a2=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x47580e);_0x30a7a2&&_0x30a7a2[_0x5e6a('0xfc')](_0xd4746d[_0x5e6a('0x12c')]);}}),_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')]['on'](_0x5e6a('0x113'),()=>{const _0xdcd0=Array[_0x5e6a('0xbf')](_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x117')]['differ'][_0x5e6a('0x10e')]())['filter'](_0x1e3d48=>_0x5e6a('0x60')===this['_splitMarkerName'](_0x1e3d48[_0x5e6a('0x12c')])[_0x5e6a('0x10f')]);if(0x0===_0xdcd0[_0x5e6a('0x5f')])return;_0xdcd0['sort']((_0xa11bfa,_0x2f1a36)=>{const _0x32ba4b=_0xa11bfa[_0x5e6a('0x46')][_0x5e6a('0xb0')],_0x4c2215=_0x2f1a36[_0x5e6a('0x46')][_0x5e6a('0xb0')];return null===_0x32ba4b&&null===_0x4c2215?0x0:null===_0x32ba4b&&null!==_0x4c2215?-0x1:null!==_0x32ba4b&&null===_0x4c2215?0x1:_0x32ba4b['start'][_0x5e6a('0xc9')](_0x4c2215['start'])?-0x1:0x1;});const _0x5ac15d=new Set(),_0x50092f=new Set();for(const {name:_0x7f54f8,data:_0x569df5}of _0xdcd0){const {id:_0x367db3}=this['_splitMarkerName'](_0x7f54f8);if(null===_0x569df5[_0x5e6a('0xb0')]){const _0x61f553=this['_handleNewSuggestionMarker'](_0x7f54f8);_0x50092f['add'](_0x61f553);}else{const _0x2a9aed=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x367db3);null!==_0x569df5[_0x5e6a('0x11a')]||_0x2a9aed[_0x5e6a('0xad')]?(_0x5ac15d['add'](_0x2a9aed[_0x5e6a('0x15')]),_0x50092f['add'](_0x2a9aed)):this[_0x5e6a('0x23')](_0x2a9aed);}}_0x50092f[_0x5e6a('0x44')]>0x0&&this[_0x5e6a('0xf7')](_0x50092f);for(const _0x1b6d20 of _0x5ac15d)this[_0x5e6a('0xda')](_0x5e6a('0x5a'),_0x1b6d20);}),_0x367a03[_0x5e6a('0x1d')]['on'](_0x5e6a('0x130'),(_0x2d13ff,_0x5523c5)=>{const _0x37cda2=_0x5523c5[0x0];if(!this['_suggestions'][_0x5e6a('0x44')])return;if(!_0x37cda2[_0x5e6a('0x9e')])return;if(_0x37cda2[_0x5e6a('0x95')][_0x5e6a('0x101')]||!_0x37cda2['batch']['isLocal'])return;let _0x294f1c,_0x305706;switch(_0x37cda2[_0x5e6a('0x2f')]){case'insert':_0x294f1c=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x13')](_0x37cda2[_0x5e6a('0x90')]),_0x305706=_0x294f1c['getShiftedBy'](_0x37cda2['howMany']);break;case _0x5e6a('0xce'):_0x294f1c=_0x367a03['model'][_0x5e6a('0x13')](_0x37cda2['splitPosition']),_0x305706=_0x367a03[_0x5e6a('0x1d')]['createPositionAt'](_0x37cda2[_0x5e6a('0x36')]);break;case _0x5e6a('0x1'):_0x294f1c=_0x367a03['model'][_0x5e6a('0x13')](_0x37cda2[_0x5e6a('0x34')]),_0x305706=_0x294f1c['getShiftedBy'](_0x37cda2[_0x5e6a('0x32')]);break;default:return;}const _0x54b62d=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0x294f1c,_0x305706);_0x367a03['model'][_0x5e6a('0x1c')](()=>{for(const {suggestion:_0x4df1ce,meta:_0xbe6a2d}of this[_0x5e6a('0xd4')](_0x54b62d)){if(_0x4df1ce[_0x5e6a('0x12e')])continue;if(_0x5e6a('0xbc')==_0x4df1ce[_0x5e6a('0x2f')])continue;const _0x5c4a68=_0x4df1ce[_0x5e6a('0x46')]&&_0x4df1ce[_0x5e6a('0x46')][_0x5e6a('0xb5')];('formatBlock'!=_0x4df1ce[_0x5e6a('0x2f')]||_0x5e6a('0xce')==_0x37cda2[_0x5e6a('0x2f')]&&!_0x5c4a68)&&(_0xbe6a2d['containsRangeInObject']||_0x5e6a('0x2d')==_0x4df1ce[_0x5e6a('0x2f')]&&_0xbe6a2d[_0x5e6a('0x129')]||_0x4df1ce[_0x5e6a('0x92')]()[_0x5e6a('0x1a')](_0x54b62d)&&this[_0x5e6a('0x80')](_0x4df1ce,_0x294f1c,_0x305706));}});},{'priority':'lowest'}),_0x367a03['model']['on']('deleteContent',(_0x31a106,_0x253e0d)=>{const _0x4687e9=_0x253e0d[0x0],_0x232765=_0x253e0d[0x1];if(_0x232765&&_0x232765[_0x5e6a('0x102')])return;if(this[_0x5e6a('0x22')])return;if(!this[_0x5e6a('0x9d')][_0x5e6a('0x27')])return;if(_0x4687e9['isCollapsed'])return;const _0x368cd2=_0x367a03['model'][_0x5e6a('0x79')],{start:_0x514e8e,end:_0x28d098}=_0x4687e9[_0x5e6a('0x92')](),_0xdff1d1=_0x514e8e[_0x5e6a('0x11')]&&_0x368cd2[_0x5e6a('0xac')](_0x514e8e[_0x5e6a('0x11')])?null:_0x368cd2[_0x5e6a('0x2c')](_0x514e8e,_0x5e6a('0x87')),_0x504be4=_0x28d098['nodeBefore']&&_0x368cd2[_0x5e6a('0xac')](_0x28d098[_0x5e6a('0x103')])?null:_0x368cd2['getNearestSelectionRange'](_0x28d098,_0x5e6a('0x96')),_0x14ecab=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0xdff1d1?_0xdff1d1[_0x5e6a('0xd0')]:_0x514e8e,_0x504be4?_0x504be4[_0x5e6a('0x91')]:_0x28d098);_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x1c')](_0x5d4758=>{this[_0x5e6a('0x139')](_0x14ecab);const _0x2da180=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x79')][_0x5e6a('0x2c')](_0x14ecab[_0x5e6a('0xd0')]);_0x4687e9['is'](_0x5e6a('0x7e'))?_0x5d4758['setSelection'](_0x2da180):_0x4687e9[_0x5e6a('0x52')](_0x2da180);}),_0x31a106[_0x5e6a('0x127')]();},{'priority':_0x23c666[_0x5e6a('0x25')]+0xa}),_0x367a03['model']['on']('insertContent',(_0x4b9973,_0x1fb452)=>{const _0x3cb72c=_0x1fb452[_0x1fb452[_0x5e6a('0x5f')]-0x1];_0x3cb72c&&_0x3cb72c[_0x5e6a('0x102')]||this[_0x5e6a('0x22')]||this[_0x5e6a('0x9d')]['value']&&(_0x367a03[_0x5e6a('0x1d')]['change'](()=>{let _0x25eecd=_0x367a03[_0x5e6a('0x1d')]['insertContent'](_0x1fb452[0x0],_0x1fb452[0x1],_0x1fb452[0x2],{'forceDefaultExecution':!0x0});if(!_0x25eecd)return;_0x4b9973['return']=_0x25eecd[_0x5e6a('0x12a')]();const _0x58718b=_0x25eecd[_0x5e6a('0x91')][_0x5e6a('0x103')],_0x44bb35=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x79')];_0x58718b&&_0x44bb35[_0x5e6a('0xd3')](_0x58718b)&&!_0x44bb35[_0x5e6a('0x26')](_0x58718b)&&(_0x25eecd=_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0xcf')](_0x25eecd[_0x5e6a('0xd0')],_0x367a03[_0x5e6a('0x1d')][_0x5e6a('0x13')](_0x58718b,_0x5e6a('0x91')))),this['markInsertion'](_0x25eecd);}),_0x4b9973[_0x5e6a('0x127')]());},{'priority':_0x5e6a('0xd')}),this[_0x5e6a('0x33')][_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0x28'),this[_0x5e6a('0x9d')]),this[_0x5e6a('0x61')](_0x5e6a('0x28'));const _0x244e22=new _0x33967c(_0x367a03,this['_suggestions']);_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0x65'),_0x244e22),this['enableCommand'](_0x5e6a('0x65'));const _0x449b05=new _0x56c3b3(_0x367a03,this[_0x5e6a('0xae')]);_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')]('discardSuggestion',_0x449b05),this[_0x5e6a('0x61')]('discardSuggestion'),_0x367a03[_0x5e6a('0xfe')]['add'](_0x5e6a('0x54'),new _0x4b9649(_0x367a03,_0x244e22,this['_suggestions'])),this[_0x5e6a('0x61')](_0x5e6a('0x54')),_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0xe6'),new _0x4b9649(_0x367a03,_0x449b05,this[_0x5e6a('0xae')])),this[_0x5e6a('0x61')](_0x5e6a('0xe6')),_0x367a03[_0x5e6a('0xfe')][_0x5e6a('0xcc')](_0x5e6a('0x4c'),new _0x5988ec(_0x367a03,_0x244e22,this[_0x5e6a('0xae')])),this[_0x5e6a('0x61')](_0x5e6a('0x4c')),_0x367a03['commands'][_0x5e6a('0xcc')](_0x5e6a('0x3'),new _0x5988ec(_0x367a03,_0x449b05,this[_0x5e6a('0xae')])),this[_0x5e6a('0x61')](_0x5e6a('0x3'));const _0x19f370=_0x367a03[_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x13d'));this[_0x5e6a('0x98')](_0x19f370,_0x5e6a('0xe'),(_0x125f95,{threadId:_0xf39712})=>{const _0x2ada33=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0xf39712);_0x2ada33&&_0x2ada33[_0x5e6a('0x68')]&&0x1===_0x2ada33['commentThread'][_0x5e6a('0x5f')]&&this['_updateSuggestionData'](_0xf39712,{'hasComments':!0x0});},{'priority':'low'}),this[_0x5e6a('0x98')](_0x19f370,'removeComment',(_0x21eb80,{threadId:_0x5e2b65})=>{const _0x47510b=this[_0x5e6a('0xae')]['get'](_0x5e2b65);_0x47510b&&_0x47510b[_0x5e6a('0x68')]&&!_0x47510b[_0x5e6a('0x68')][_0x5e6a('0x5f')]&&this['_updateSuggestionData'](_0x5e2b65,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5e6a('0x1e')](_0x4b1c03){if(this['_adapter'])throw new _0x6a793a('track-changes-adapter-already-set',this);this[_0x5e6a('0x8f')]=_0x4b1c03;}get[_0x5e6a('0x1e')](){return this[_0x5e6a('0x8f')];}[_0x5e6a('0xf0')]({skipNotAttached:_0x2c7b27=!0x1,toJSON:_0x2ea813=!0x1}={}){const _0x21e5d8=[];for(const _0x82e14e of this['_suggestions'][_0x5e6a('0xfd')]())_0x2c7b27&&!_0x82e14e[_0x5e6a('0xad')]||_0x21e5d8[_0x5e6a('0x125')](_0x82e14e);return _0x2ea813?_0x21e5d8[_0x5e6a('0x10d')](_0x47e536=>_0x47e536['toJSON']()):_0x21e5d8;}[_0x5e6a('0x66')](_0x3faa93){const _0x11d577=this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x3faa93);if(!_0x11d577)throw new _0x6a793a('track-changes-suggestion-not-found',this);return _0x11d577;}[_0x5e6a('0xbb')](_0x182a98){return this[_0x5e6a('0xae')][_0x5e6a('0x132')](_0x182a98);}[_0x5e6a('0x12f')](_0x49a374){const {authorId:_0x149a54,id:_0x28bc87,attributes:_0x52d20e}=_0x49a374,[_0x14e2ea,_0x16dfa4]=_0x49a374['type'][_0x5e6a('0xce')](':'),_0x3f1fff=this[_0x5e6a('0xae')]['get'](_0x28bc87)||this[_0x5e6a('0x11c')](_0x14e2ea,_0x16dfa4,_0x28bc87,_0x149a54,_0x52d20e);if(this['_addThreadToSuggestion'](_0x3f1fff),this[_0x5e6a('0x8d')](_0x3f1fff,_0x14e2ea,_0x16dfa4||null,_0x149a54),_0x3f1fff[_0x5e6a('0x63')]=_0x49a374[_0x5e6a('0x63')],_0x3f1fff[_0x5e6a('0x5d')]=!0x0,_0x52d20e&&_0x52d20e[_0x5e6a('0x9')]){const _0x52734d=_0x52d20e[_0x5e6a('0x9')],_0xd25b43=this['_getExternalAuthor'](_0x52734d[_0x5e6a('0x4')]);_0x3f1fff[_0x5e6a('0x10')]=_0x52734d[_0x5e6a('0x63')],_0x3f1fff[_0x5e6a('0x64')]=_0xd25b43,_0x3f1fff[_0x5e6a('0x13b')]=!0x0;}else _0x3f1fff[_0x5e6a('0x10')]=_0x49a374[_0x5e6a('0x63')];switch(_0x49a374['data']&&(_0x3f1fff[_0x5e6a('0x46')]=_0x49a374[_0x5e6a('0x46')]),_0x49a374[_0x5e6a('0x78')]&&(_0x3f1fff[_0x5e6a('0x78')]=_0x49a374['attributes']),this[_0x5e6a('0x8f')]&&this[_0x5e6a('0x8f')]['addSuggestion']||(_0x3f1fff[_0x5e6a('0x86')]=!0x0),this['_suggestionState'][_0x5e6a('0x50')](_0x3f1fff)){case _0x5e6a('0x6a'):this[_0x5e6a('0x29')]['set'](_0x3f1fff,_0x5e6a('0x93'));break;case'markerReady':_0x3f1fff[_0x5e6a('0xad')]?(this['_refreshSuggestionsChain'](new Set([_0x3f1fff])),this[_0x5e6a('0x13c')](new Set([_0x3f1fff])),this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x3f1fff,_0x5e6a('0x2b')),this[_0x5e6a('0xda')](_0x5e6a('0xc3'),_0x3f1fff)):this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x3f1fff,_0x5e6a('0xa7'));}return _0x3f1fff;}['acceptSuggestion'](_0x3ab5a2){this['forceDefaultExecution'](()=>{this[_0x5e6a('0x33')][_0x5e6a('0x1d')][_0x5e6a('0x1c')](()=>{for(const _0x2bc727 of _0x3ab5a2['getAllAdjacentSuggestions']())_0x2bc727['accept']();});});}[_0x5e6a('0x128')](_0x111b9f){this[_0x5e6a('0x102')](()=>{this[_0x5e6a('0x33')][_0x5e6a('0x1d')][_0x5e6a('0x1c')](()=>{for(const _0xea1fa5 of _0x111b9f[_0x5e6a('0xbd')]())_0xea1fa5[_0x5e6a('0xf1')]();});});}[_0x5e6a('0x61')](_0x3a5625,_0x3eab50){const _0x10ba57=this[_0x5e6a('0x33')]['commands'][_0x5e6a('0x50')](_0x3a5625);if(!_0x10ba57)throw new _0x6a793a('track-changes-command-not-found',this,{'commandName':_0x3a5625});this['_enabledCommands']['add'](_0x10ba57),_0x3eab50&&_0x10ba57['on'](_0x5e6a('0x59'),(_0x52dda3,_0x69b1df)=>{this[_0x5e6a('0x9d')][_0x5e6a('0x27')]&&(this[_0x5e6a('0x22')]||_0x69b1df[_0x5e6a('0x5f')]>0x0&&_0x69b1df[_0x69b1df[_0x5e6a('0x5f')]-0x1]&&_0x69b1df[_0x69b1df[_0x5e6a('0x5f')]-0x1][_0x5e6a('0x102')]||(_0x52dda3['return']=_0x3eab50((..._0x3efc39)=>_0x10ba57[_0x5e6a('0x59')](..._0x3efc39,{'forceDefaultExecution':!0x0}),..._0x69b1df),_0x52dda3[_0x5e6a('0x127')]()));},{'priority':_0x5e6a('0xd')});}[_0x5e6a('0x102')](_0x565054){let _0x3e1077,_0x4697a1;const _0x1410a2=this[_0x5e6a('0x22')];this[_0x5e6a('0x22')]=!0x0;try{_0x3e1077=_0x565054();}catch(_0x4477cd){_0x4697a1=_0x4477cd;}return _0x1410a2||(this[_0x5e6a('0x22')]=!0x1),_0x4697a1&&_0x6a793a[_0x5e6a('0xeb')](_0x4697a1,this),_0x3e1077;}[_0x5e6a('0x75')](_0x153969,_0x36e854=null,_0x4ef632={}){if(_0x153969['isCollapsed'])return null;const _0x16edd5=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')]('Users')['me'];for(const {suggestion:_0x1cb98e,meta:_0x196895}of this[_0x5e6a('0xd4')](_0x153969,'insertion'))if(_0x196895[_0x5e6a('0x129')]){if(!_0x196895[_0x5e6a('0x2a')]){if(_0x196895[_0x5e6a('0xe5')]){if(!this[_0x5e6a('0xa6')]||!Ot(_0x1cb98e,_0x4ef632))continue;return _0x1cb98e;}if(Ot(_0x1cb98e,_0x4ef632))return _0x1cb98e;this[_0x5e6a('0x80')](_0x1cb98e,_0x153969[_0x5e6a('0xd0')],_0x153969[_0x5e6a('0x91')]);break;}if(_0x36e854==_0x1cb98e[_0x5e6a('0xd7')]&&Ot(_0x1cb98e,_0x4ef632)){const _0x37ee82=_0x1cb98e[_0x5e6a('0x92')]();return _0x37ee82[_0x5e6a('0xd0')]['isEqual'](_0x153969[_0x5e6a('0x91')])?this['_setSuggestionRange'](_0x1cb98e,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x153969[_0x5e6a('0xd0')],_0x37ee82['end'])):this['_setSuggestionRange'](_0x1cb98e,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x37ee82[_0x5e6a('0xd0')],_0x153969[_0x5e6a('0x91')])),_0x1cb98e;}}const _0x5287a1=_0x260652(),_0x819da5=_0x16edd5['id'],_0x4cfcb1=_0x36e854?'insertion:'+_0x36e854:'insertion',_0x436a4f=this['_setSuggestionData']({'id':_0x5287a1,'type':_0x4cfcb1,'createdAt':new Date(),'authorId':_0x819da5,'attributes':_0x4ef632});return this[_0x5e6a('0x72')](_0x4cfcb1,_0x5287a1,_0x819da5,_0x153969),_0x436a4f;}['markMultiRangeInsertion'](_0xc68955,_0x5ad579=_0x5e6a('0x6f'),_0xa4292e={}){const _0xca2eae=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x20'))['me'],_0x1066a1=this[_0x5e6a('0x31')]['getSuggestionCallback']('insertion',_0x5ad579,_0x5e6a('0x6d'));for(const _0x275888 of this[_0x5e6a('0xf0')]())if(_0x275888['author']['id']==_0xca2eae['id']&&'insertion'==_0x275888['type']&&_0x275888['subType']==_0x5ad579&&Ot(_0x275888,_0xa4292e)&&(_0x1066a1(_0x275888['getRanges'](),_0xc68955)||_0x1066a1(_0xc68955,_0x275888[_0x5e6a('0xb6')]()))){for(const _0x39e0a9 of _0xc68955)_0x275888[_0x5e6a('0x39')](_0x39e0a9);return _0x275888;}for(const {suggestion:_0x47e199,meta:_0x3d8bf8}of this[_0x5e6a('0xd4')](_0xc68955,_0x5e6a('0x2d'))){if(!_0x3d8bf8[_0x5e6a('0x129')])continue;if(!this[_0x5e6a('0xa6')]&&_0x3d8bf8[_0x5e6a('0xe5')])continue;if(!Ot(_0x47e199,_0xa4292e))continue;let _0x4b5dd9=!0x0;for(const _0x479c85 of _0x47e199['getRanges']())for(const _0x11fc86 of _0xc68955)if(!_0x479c85[_0x5e6a('0x1a')](_0x11fc86)){_0x4b5dd9=!0x1;break;}if(_0x4b5dd9)return _0x47e199;}const _0x59868d=_0x260652(),_0x2c3eb6=_0xca2eae['id'],_0x486101='insertion:'+_0x5ad579,_0x1c5166=this[_0x5e6a('0x9a')]({'id':_0x59868d,'type':_0x486101,'createdAt':new Date(),'authorId':_0x2c3eb6,'attributes':_0xa4292e});for(const _0x3ba14b of _0xc68955)this[_0x5e6a('0x72')](_0x486101,_0x59868d,_0x2c3eb6,_0x3ba14b,_0x51161f[_0x5e6a('0xd2')]());return _0x1c5166;}[_0x5e6a('0x97')](_0x3eebe2,_0x2ae997,_0x1dd98f=null,_0x302f98={}){if(_0x1dd98f=_0x1dd98f||Nt(_0x2ae997),_0x3eebe2[_0x5e6a('0x53')])return null;if(_0x5e6a('0x2')===this[_0x5e6a('0x58')]){const _0x43a4e7=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0xbc'),_0x1dd98f,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x43a4e7([_0x3eebe2],_0x2ae997,_0x302f98)),null;}const _0x114a6f=this[_0x5e6a('0x33')][_0x5e6a('0x74')]['get']('Users')['me'],_0x79138b=[];if(_0x5e6a('0xec')!==this['_trackFormatChanges'])for(const {suggestion:_0x29df29,meta:_0x18611b}of this[_0x5e6a('0xd4')](_0x3eebe2,_0x5e6a('0x2d')))_0x18611b[_0x5e6a('0x129')]&&!_0x18611b['isInsideObject']&&_0x79138b[_0x5e6a('0x125')](..._0x29df29[_0x5e6a('0xb6')]());const _0x390c95=function(_0x4b4439,_0x44be46){const _0x570ff2=[];for(const _0x2e1e05 of _0x44be46){const _0x49db1f=_0x4b4439[_0x5e6a('0xcb')](_0x2e1e05);_0x49db1f&&_0x570ff2[_0x5e6a('0x125')](_0x49db1f);}return _0x570ff2;}(_0x3eebe2,_0x79138b),_0x41b14f=function(_0x1688b0,_0x4152bf){const _0x39e557=[_0x1688b0];for(const _0x45ed1b of _0x4152bf){let _0x29cd03=0x0;for(;_0x29cd03<_0x39e557[_0x5e6a('0x5f')];){const _0x315f9c=_0x39e557[_0x29cd03][_0x5e6a('0x9f')](_0x45ed1b);_0x39e557[_0x5e6a('0xa0')](_0x29cd03,0x1,..._0x315f9c),_0x29cd03+=_0x315f9c['length'];}}return _0x39e557;}(_0x3eebe2,_0x79138b);_0x390c95[_0x5e6a('0x5f')]&&this[_0x5e6a('0xc2')][_0x5e6a('0x1c')](()=>{for(const _0x572f82 of _0x390c95){const _0x5414d7=this['_suggestionFactory'][_0x5e6a('0x12d')](_0x5e6a('0xbc'),_0x1dd98f,_0x5e6a('0xe9'));this['forceDefaultExecution'](()=>_0x5414d7([_0x572f82],_0x2ae997,_0x302f98));}});for(const _0x1ce035 of _0x41b14f){let _0x263908=null,_0x37cace=_0x1ce035[_0x5e6a('0xd0')],_0x44ca7a=_0x1ce035['end'];for(const {suggestion:_0x250d32,meta:_0x369ec3}of this['_findSuggestions'](_0x1ce035,_0x5e6a('0xbc'))){if(!_0x369ec3[_0x5e6a('0x129')])continue;if(_0x250d32[_0x5e6a('0xd7')]!=_0x1dd98f)continue;if(!Ot(_0x250d32,_0x302f98))continue;const _0x3f425a=_0x250d32[_0x5e6a('0x92')]();if(_0x3f425a[_0x5e6a('0x1a')](_0x1ce035,!0x0))return null;_0x37cace=_0x37cace[_0x5e6a('0xc9')](_0x3f425a[_0x5e6a('0xd0')])?_0x37cace:_0x3f425a[_0x5e6a('0xd0')],_0x44ca7a=_0x44ca7a[_0x5e6a('0x4f')](_0x3f425a[_0x5e6a('0x91')])?_0x44ca7a:_0x3f425a[_0x5e6a('0x91')],_0x263908?_0x3f425a[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x263908[_0x5e6a('0x92')]()['start'])?(_0x263908[_0x5e6a('0xb7')](),_0x263908=_0x250d32):_0x250d32[_0x5e6a('0xb7')]():_0x263908=_0x250d32;}const _0x1a5b2e=this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x37cace,_0x44ca7a);if(_0x263908)this[_0x5e6a('0xb8')](_0x263908,_0x1a5b2e);else{const _0x3e78d1=_0x260652(),_0xab569d=_0x114a6f['id'];this['_setSuggestionData']({'id':_0x3e78d1,'type':'formatInline:'+_0x1dd98f,'data':_0x2ae997,'createdAt':new Date(),'authorId':_0xab569d,'attributes':_0x302f98}),this['_addSuggestionMarker'](_0x5e6a('0xc5')+_0x1dd98f,_0x3e78d1,_0xab569d,_0x1a5b2e);}}return null;}[_0x5e6a('0x84')](_0x178f25,_0x2696bb,_0x367cad=[],_0x1d35e8=null,_0x8b55cf={}){_0x2696bb[_0x5e6a('0x108')]||(_0x2696bb['formatGroupId']=_0x2696bb[_0x5e6a('0xd8')]),_0x2696bb[_0x5e6a('0xb5')]=_0x178f25['is'](_0x5e6a('0x57')),_0x1d35e8=_0x1d35e8||Nt(_0x2696bb);const _0x1c0480=_0x367cad[_0x5e6a('0x10d')](_0x7dc004=>jt(_0x7dc004,this[_0x5e6a('0xc2')])),_0x4cd739=_0x178f25['is'](_0x5e6a('0x57'))?_0x178f25:jt(_0x178f25,this[_0x5e6a('0xc2')]);if('never'===this['_trackFormatChanges']){const _0x56b924=this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x5e6a('0xca'),_0x1d35e8,'accept');return this['forceDefaultExecution'](()=>_0x56b924([_0x4cd739],_0x2696bb,_0x8b55cf)),null;}_0x1c0480[_0x5e6a('0x125')](_0x4cd739);let _0x3038cb=!0x0;for(const _0x397c2c of _0x1c0480)if(!this[_0x5e6a('0x5e')](_0x397c2c)){_0x3038cb=!0x1;break;}if(_0x3038cb&&_0x5e6a('0xec')!==this['_trackFormatChanges']){const _0x1f10a4=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0xca'),_0x1d35e8,'accept');return this[_0x5e6a('0x102')](()=>_0x1f10a4([_0x4cd739],_0x2696bb,_0x8b55cf)),null;}let _0x116244=null,_0x48c275=_0x4cd739[_0x5e6a('0xd0')],_0x441205=_0x4cd739[_0x5e6a('0x91')];for(const {suggestion:_0x2aac6a,meta:_0x2ca0e1}of this[_0x5e6a('0xd4')](_0x4cd739,_0x5e6a('0xca'))){if(!_0x2ca0e1[_0x5e6a('0x129')])continue;if(_0x2ca0e1['isNextTo']||_0x2ca0e1[_0x5e6a('0xe5')]||_0x2ca0e1[_0x5e6a('0x14')])continue;if(_0x2aac6a['data']['formatGroupId']!=_0x2696bb['formatGroupId'])continue;if(!Ot(_0x2aac6a,_0x8b55cf))continue;const _0x5af8f2=_0x2aac6a['getFirstRange']();if(_0x2aac6a[_0x5e6a('0xd7')]==_0x1d35e8){if(_0x5af8f2[_0x5e6a('0x1a')](_0x4cd739,!0x0))return null;_0x48c275=_0x48c275[_0x5e6a('0xc9')](_0x5af8f2['start'])?_0x48c275:_0x5af8f2['start'],_0x441205=_0x441205['isAfter'](_0x5af8f2[_0x5e6a('0x91')])?_0x441205:_0x5af8f2[_0x5e6a('0x91')],_0x116244?_0x5af8f2[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x116244[_0x5e6a('0x92')]()[_0x5e6a('0xd0')])?(_0x116244[_0x5e6a('0xb7')](),_0x116244=_0x2aac6a):_0x2aac6a[_0x5e6a('0xb7')]():_0x116244=_0x2aac6a;}else{const _0x289998=_0x4cd739['getIntersection'](_0x5af8f2);this[_0x5e6a('0x3d')](_0x2aac6a,_0x289998);}}const _0xe9ee45=this[_0x5e6a('0x33')][_0x5e6a('0x74')]['get'](_0x5e6a('0x20'))['me'],_0xdfecdd=_0x260652(),_0x162779=_0xe9ee45['id'];if(_0x116244)return this['_setSuggestionRange'](_0x116244,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x48c275,_0x441205)),_0x116244;{const _0x569d8d=this[_0x5e6a('0x9a')]({'id':_0xdfecdd,'type':'formatBlock:'+_0x1d35e8,'data':_0x2696bb,'createdAt':new Date(),'authorId':_0x162779,'attributes':_0x8b55cf});return this[_0x5e6a('0x72')]('formatBlock:'+_0x1d35e8,_0xdfecdd,_0x162779,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x48c275,_0x441205)),_0x569d8d;}}['markMultiRangeBlockFormat'](_0x14723f,_0x238380,_0x549ed7=[],_0x58986b=null,_0x348ad9={}){_0x238380[_0x5e6a('0x108')]||(_0x238380[_0x5e6a('0x108')]=_0x238380[_0x5e6a('0xd8')]);const _0x17e995=_0x14723f[0x0];_0x238380['multipleBlocks']=_0x17e995['is']('range'),_0x58986b=_0x58986b||Nt(_0x238380);const _0x2e1eba=_0x549ed7[_0x5e6a('0x10d')](_0x116ac2=>jt(_0x116ac2,this['_model'])),_0x406de6=_0x17e995['is'](_0x5e6a('0x57'))?_0x14723f:_0x14723f[_0x5e6a('0x10d')](_0x5dca6c=>jt(_0x5dca6c,this[_0x5e6a('0xc2')]));if('never'===this[_0x5e6a('0x58')]){const _0x40c3fd=this[_0x5e6a('0x31')][_0x5e6a('0x12d')]('formatBlock',_0x58986b,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x40c3fd(_0x406de6,_0x238380,_0x348ad9)),null;}_0x2e1eba['push'](..._0x406de6);let _0x5d5cfc=!0x0;for(const _0x35fe07 of _0x2e1eba)if(!this['_rangeIsInLocalUserInsertion'](_0x35fe07)){_0x5d5cfc=!0x1;break;}if(_0x5d5cfc&&_0x5e6a('0xec')!==this[_0x5e6a('0x58')]){const _0x5f0ba6=this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x5e6a('0xca'),_0x58986b,'accept');return this[_0x5e6a('0x102')](()=>_0x5f0ba6(_0x406de6,_0x238380,_0x348ad9)),null;}const _0x411aee=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x20'))['me'];for(const _0x2ab927 of this[_0x5e6a('0xf0')]()){if(_0x2ab927['author']['id']!=_0x411aee['id'])continue;if(_0x5e6a('0xca')!=_0x2ab927[_0x5e6a('0x2f')]||_0x2ab927[_0x5e6a('0x46')][_0x5e6a('0x108')]!=_0x238380[_0x5e6a('0x108')])continue;if(!Ot(_0x2ab927,_0x348ad9))continue;const _0x1c4871=_0x2ab927[_0x5e6a('0xd7')]==_0x58986b;for(let _0x54c8f0=0x0;_0x54c8f0<_0x406de6[_0x5e6a('0x5f')];_0x54c8f0++){const _0x390e03=_0x406de6[_0x54c8f0];for(const _0xb5101c of _0x2ab927[_0x5e6a('0xa4')]()){const _0x1752ef=_0xb5101c[_0x5e6a('0xfb')]();if(_0x390e03[_0x5e6a('0x6c')](_0x1752ef)){_0x1c4871?(_0x406de6[_0x5e6a('0xa0')](_0x54c8f0,0x1),_0x54c8f0--):_0x2ab927[_0x5e6a('0x5b')](_0xb5101c['name']);break;}}}}if(0x0==_0x406de6['length'])return null;const _0x32f126=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0xca'),_0x58986b,_0x5e6a('0x6d'));for(const _0xdbd141 of this[_0x5e6a('0xf0')]())if(_0xdbd141[_0x5e6a('0x64')]['id']==_0x411aee['id']&&_0x5e6a('0xca')==_0xdbd141[_0x5e6a('0x2f')]&&_0xdbd141['data'][_0x5e6a('0x108')]==_0x238380['formatGroupId']&&_0xdbd141[_0x5e6a('0xd7')]==_0x58986b&&Ot(_0xdbd141,_0x348ad9)&&(_0x32f126(_0xdbd141[_0x5e6a('0xb6')](),_0x406de6)||_0x32f126(_0x406de6,_0xdbd141['getRanges']()))){for(const _0x1cc1c6 of _0x406de6)_0xdbd141[_0x5e6a('0x39')](_0x1cc1c6);return _0xdbd141;}const _0x36b1c9=_0x260652(),_0x1962f1=_0x411aee['id'],_0xaf520b=_0x5e6a('0x6b')+_0x58986b,_0x212b71=this['_setSuggestionData']({'id':_0x36b1c9,'type':_0xaf520b,'data':_0x238380,'createdAt':new Date(),'authorId':_0x1962f1,'attributes':_0x348ad9});for(const _0x4fb6e1 of _0x406de6)this[_0x5e6a('0x72')](_0xaf520b,_0x36b1c9,_0x1962f1,_0x4fb6e1,_0x51161f[_0x5e6a('0xd2')]());return _0x212b71;}[_0x5e6a('0x139')](_0x2d4fe2,_0x2507a0=null,_0x1e0ad7={}){if(_0x2d4fe2[_0x5e6a('0x53')])return null;const _0x132ad4=this[_0x5e6a('0x33')]['plugins'][_0x5e6a('0x50')]('Users')['me'],_0x153c00=new _0x14a52e(_0x2d4fe2[_0x5e6a('0xd0')],_0x2d4fe2[_0x5e6a('0x91')]);for(const {suggestion:_0x1f3f49,meta:_0x334779}of this[_0x5e6a('0xd4')](_0x153c00,_0x5e6a('0x2d')))if(_0x334779['isOwn']&&!_0x334779[_0x5e6a('0x2a')]){if(_0x1f3f49['isMultiRange']){const _0x3ca1e7=_0x1f3f49[_0x5e6a('0xb6')]()[_0x5e6a('0xe2')](_0x3244af=>_0x5e6a('0xed')!=_0x3244af[_0x5e6a('0x11f')]['rootName']);_0x3ca1e7[_0x5e6a('0xef')](_0x285d34=>_0x153c00[_0x5e6a('0x1a')](_0x285d34,!0x0))&&_0x1f3f49[_0x5e6a('0xf1')]();if(_0x3ca1e7['some'](_0x1c0382=>_0x1c0382[_0x5e6a('0x1a')](_0x153c00,!0x0))){const _0x4770cf=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0x137'),_0x2507a0,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x4770cf([_0x153c00],null,_0x1e0ad7)),null;}}else{const _0x445ba7=_0x153c00[_0x5e6a('0xcb')](_0x1f3f49[_0x5e6a('0x92')]());null!==_0x445ba7&&_0x1f3f49[_0x5e6a('0xe4')]([_0x445ba7],null,_0x1e0ad7);}}if(_0x153c00[_0x5e6a('0x83')](),_0x153c00[_0x5e6a('0x53')]||_0x5e6a('0xed')==_0x153c00['root'][_0x5e6a('0x24')])return null;let _0x243041=null,_0x56e113=_0x153c00[_0x5e6a('0xd0')],_0x88a031=_0x153c00['end'];const _0x5a195f=this['_findSuggestions'](_0x153c00,_0x5e6a('0x137'));for(const {suggestion:_0x381b42,meta:_0x4d809c}of _0x5a195f){const _0x1098bb=this['_model'][_0x5e6a('0xcf')](_0x56e113,_0x88a031);if(_0x4d809c[_0x5e6a('0x129')]&&(this['_mergeNestedSuggestions']||!_0x4d809c['containsRangeInObject']&&!_0x4d809c['isInsideObject'])){if(_0x381b42[_0x5e6a('0x12e')]){if(!Ot(_0x381b42,_0x1e0ad7))continue;let _0x142dad=!0x0;for(const _0x331b4a of _0x381b42['getRanges']()){if(_0x331b4a[_0x5e6a('0x1a')](_0x1098bb,!0x0))return _0x381b42;_0x1098bb[_0x5e6a('0x1a')](_0x331b4a)||(_0x142dad=!0x1);}_0x142dad&&_0x381b42[_0x5e6a('0xf1')]();}else{const _0x415690=_0x381b42['getFirstRange']();if(_0x415690[_0x5e6a('0x1a')](_0x1098bb,!0x0))return _0x381b42;if(!Ot(_0x381b42,_0x1e0ad7)){_0x1098bb['containsRange'](_0x415690)?_0x381b42[_0x5e6a('0xb7')]():_0x415690[_0x5e6a('0x8')](_0x56e113)?_0x56e113=_0x415690[_0x5e6a('0x91')]:_0x415690[_0x5e6a('0x8')](_0x88a031)&&(_0x88a031=_0x415690[_0x5e6a('0xd0')]);continue;}_0x56e113=_0x56e113[_0x5e6a('0xc9')](_0x415690[_0x5e6a('0xd0')])?_0x56e113:_0x415690[_0x5e6a('0xd0')],_0x88a031=_0x88a031['isAfter'](_0x415690['end'])?_0x88a031:_0x415690['end'],_0x1e0ad7=Object[_0x5e6a('0xf9')]({},_0x381b42['attributes']),_0x243041?_0x415690[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x243041[_0x5e6a('0x92')]()[_0x5e6a('0xd0')])?(_0x243041[_0x5e6a('0xb7')](),_0x243041=_0x381b42):_0x381b42['removeMarkers']():_0x243041=_0x381b42;}}}if(_0x243041)return this[_0x5e6a('0xb8')](_0x243041,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x56e113,_0x88a031)),_0x243041;{const _0xab7732=_0x260652(),_0x4f0906=this['_model'][_0x5e6a('0xcf')](_0x56e113,_0x88a031),_0x3838a8=_0x132ad4['id'],_0x19deb0=_0x2507a0?_0x5e6a('0xe7')+_0x2507a0:_0x5e6a('0x137'),_0x54280b=this['_setSuggestionData']({'id':_0xab7732,'type':_0x19deb0,'createdAt':new Date(),'authorId':_0x3838a8,'attributes':_0x1e0ad7});return this['_addSuggestionMarker'](_0x19deb0,_0xab7732,_0x3838a8,_0x4f0906),_0x54280b;}}['markMultiRangeDeletion'](_0x404e1c,_0x5323c5=_0x5e6a('0x6f'),_0x66416={}){const _0x44c72e=this[_0x5e6a('0x33')]['plugins']['get']('Users')['me'],_0x27fec6=_0x404e1c[_0x5e6a('0x10d')](_0x49e9bb=>new _0x14a52e(_0x49e9bb['start'],_0x49e9bb[_0x5e6a('0x91')])),_0x445c0b=new Set();for(const {suggestion:_0xc99009,meta:_0x376485}of this[_0x5e6a('0xd4')](_0x27fec6,_0x5e6a('0x2d')))_0x376485[_0x5e6a('0x129')]&&!_0x376485['isNextTo']&&_0x445c0b[_0x5e6a('0xcc')](_0xc99009);for(const _0x4a9a85 of _0x445c0b)if(_0x4a9a85[_0x5e6a('0x12e')]){const _0x30eacd=_0x4a9a85[_0x5e6a('0xb6')]();(!_0x4a9a85[_0x5e6a('0x78')]||!_0x4a9a85[_0x5e6a('0x78')][_0x5e6a('0x3c')])&&(_0x30eacd[_0x5e6a('0xef')](_0x51e148=>_0x27fec6[_0x5e6a('0x70')](_0x356e6c=>_0x356e6c[_0x5e6a('0x1a')](_0x51e148,!0x0)))&&_0x4a9a85[_0x5e6a('0xf1')]());if(_0x27fec6['every'](_0x1eeaf=>_0x30eacd[_0x5e6a('0x70')](_0x5c34ac=>_0x5c34ac['containsRange'](_0x1eeaf,!0x0)))){const _0x40c076=this[_0x5e6a('0x31')]['getSuggestionCallback']('deletion',_0x5323c5,_0x5e6a('0xe9'));return this['forceDefaultExecution'](()=>_0x40c076(_0x404e1c,null,_0x66416)),null;}}else{const _0x2796de=_0x4a9a85[_0x5e6a('0x92')]();_0x27fec6[_0x5e6a('0x70')](_0x23759f=>_0x23759f['containsRange'](_0x2796de,!0x0))&&_0x4a9a85['discard']();if(_0x27fec6[_0x5e6a('0xef')](_0x1cad21=>_0x2796de[_0x5e6a('0x1a')](_0x1cad21,!0x0))){const _0x3aebdf=this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x5e6a('0x137'),_0x5323c5,_0x5e6a('0xe9'));return this[_0x5e6a('0x102')](()=>_0x3aebdf(_0x27fec6,null,_0x66416)),null;}}const _0xad7229=this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x5e6a('0x137'),_0x5323c5,_0x5e6a('0x6d'));let _0x485137=null;for(const _0x472d70 of this[_0x5e6a('0xf0')]())if(_0x472d70[_0x5e6a('0x64')]['id']==_0x44c72e['id']&&_0x472d70['isInContent']&&_0x5e6a('0x137')==_0x472d70['type']&&_0x472d70[_0x5e6a('0xd7')]==_0x5323c5&&Ot(_0x472d70,_0x66416)&&(_0xad7229(_0x472d70[_0x5e6a('0xb6')](),_0x27fec6)||_0xad7229(_0x27fec6,_0x472d70['getRanges']()))){if(_0x485137){if(_0x472d70[_0x5e6a('0x68')]&&_0x472d70[_0x5e6a('0x68')][_0x5e6a('0x5f')])continue;for(const _0x5c42e7 of _0x472d70[_0x5e6a('0xb6')]())_0x485137[_0x5e6a('0x99')](_0x5c42e7)||_0x485137['addRange'](_0x5c42e7);_0x472d70['removeMarkers']();}else{_0x485137=_0x472d70;for(const _0x17efa7 of _0x27fec6)_0x472d70[_0x5e6a('0x99')](_0x17efa7)||_0x472d70[_0x5e6a('0x39')](_0x17efa7);}}if(_0x485137)return _0x485137;_0x445c0b[_0x5e6a('0xc1')]();for(const {suggestion:_0x42e724,meta:_0x5a8833}of this[_0x5e6a('0xd4')](_0x27fec6,'deletion'))_0x5a8833[_0x5e6a('0x129')]&&(this[_0x5e6a('0xa6')]||!_0x5a8833[_0x5e6a('0xe5')]&&!_0x5a8833[_0x5e6a('0x14')])&&Ot(_0x42e724,_0x66416)&&_0x445c0b[_0x5e6a('0xcc')](_0x42e724);for(const _0x23d34c of _0x445c0b){const _0x9571f2=_0x23d34c[_0x5e6a('0xb6')]();if(!_0x66416||!_0x66416[_0x5e6a('0x3c')]){if(_0x27fec6[_0x5e6a('0xef')](_0x1a2af0=>_0x9571f2[_0x5e6a('0x70')](_0x12dd8b=>_0x12dd8b[_0x5e6a('0x1a')](_0x1a2af0,!0x0))))return _0x23d34c;}(!_0x23d34c[_0x5e6a('0x78')]||!_0x23d34c[_0x5e6a('0x78')][_0x5e6a('0x3c')])&&(_0x9571f2['every'](_0x410e04=>_0x27fec6[_0x5e6a('0x70')](_0x51b5b5=>_0x51b5b5['containsRange'](_0x410e04,!0x0)))&&_0x23d34c[_0x5e6a('0xf1')]());}const _0x2ebaf0=_0x260652(),_0x5d2440=_0x44c72e['id'],_0x287985=_0x5e6a('0xe7')+_0x5323c5,_0x569cae=this['_setSuggestionData']({'id':_0x2ebaf0,'type':_0x287985,'createdAt':new Date(),'authorId':_0x5d2440,'attributes':_0x66416});for(const _0xca5ab3 of _0x27fec6)_0xca5ab3[_0x5e6a('0x83')](),_0xca5ab3[_0x5e6a('0x53')]||_0x5e6a('0xed')==_0xca5ab3[_0x5e6a('0x11f')][_0x5e6a('0x24')]||this['_addSuggestionMarker'](_0x287985,_0x2ebaf0,_0x5d2440,_0xca5ab3,_0x51161f['getMultiRangeId']());return _0x569cae;}[_0x5e6a('0xb8')](_0x1c2fed,_0x116d9f){const _0x382a01=_0x1c2fed[_0x5e6a('0x12b')]();this['_model'][_0x5e6a('0x1c')](_0x4219f4=>{_0x4219f4['updateMarker'](_0x382a01,{'range':_0x116d9f});});}[_0x5e6a('0xf4')](_0x4cfc45){const _0x4c89d8=_0x4cfc45['id'],_0x345103=this[_0x5e6a('0x33')][_0x5e6a('0x121')][_0x5e6a('0x50')]('collaboration.channelId');this['_commentsRepository'][_0x5e6a('0xdc')](_0x4c89d8)||this[_0x5e6a('0xab')][_0x5e6a('0x4e')]({'channelId':_0x345103,'threadId':_0x4c89d8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4457c1=this[_0x5e6a('0xab')][_0x5e6a('0x18')](_0x4c89d8);_0x4457c1[_0x5e6a('0xa5')](_0x5e6a('0x123')),_0x4457c1[_0x5e6a('0x123')]=!0x1,_0x4cfc45[_0x5e6a('0x68')]=_0x4457c1;}[_0x5e6a('0x8d')](_0xea1096,_0x403097,_0xd8729d,_0x1e2824){if(_0xea1096[_0x5e6a('0x2f')]!=_0x403097||_0xea1096[_0x5e6a('0xd7')]!=_0xd8729d||_0xea1096['creator']['id']!=_0x1e2824)throw this[_0x5e6a('0x33')][_0x5e6a('0x122')](_0x5e6a('0x8e')),new _0x6a793a(_0x5e6a('0x8e'),this);}[_0x5e6a('0x3d')](_0x465905,_0x10d6ee){const _0x30d31e=_0x465905[_0x5e6a('0x92')]();if(_0x10d6ee['isEqual'](_0x30d31e))_0x465905[_0x5e6a('0xb7')]();else{if(_0x30d31e[_0x5e6a('0x1a')](_0x10d6ee)){const _0x499bf6=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0xd0')][_0x5e6a('0x103')],_0x5e6a('0x91'));this[_0x5e6a('0xb8')](_0x465905,this[_0x5e6a('0xc2')]['createRange'](_0x30d31e[_0x5e6a('0xd0')],_0x499bf6));const _0x23da17=_0x260652(),_0x2539e6=_0x465905[_0x5e6a('0x109')]['id'],_0x24e27b=_0x465905[_0x5e6a('0x2f')]+':'+_0x465905[_0x5e6a('0xd7')];this[_0x5e6a('0x9a')]({'id':_0x23da17,'type':_0x24e27b,'createdAt':new Date(),'authorId':_0x2539e6,'data':_0x465905[_0x5e6a('0x46')],'attributes':_0x465905[_0x5e6a('0x78')]});const _0x2cd922=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0x91')][_0x5e6a('0x41')],_0x5e6a('0xcd')),_0x1aa0d0=this[_0x5e6a('0xc2')]['createRange'](_0x2cd922,_0x30d31e[_0x5e6a('0x91')]);this[_0x5e6a('0x72')](_0x24e27b,_0x23da17,_0x2539e6,_0x1aa0d0);}else{if(_0x30d31e['containsPosition'](_0x10d6ee[_0x5e6a('0xd0')])){const _0x1d6059=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0xd0')][_0x5e6a('0x103')],_0x5e6a('0x91'));this[_0x5e6a('0xb8')](_0x465905,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x30d31e[_0x5e6a('0xd0')],_0x1d6059));}else{const _0x515c43=this[_0x5e6a('0xc2')][_0x5e6a('0x13')](_0x10d6ee[_0x5e6a('0x91')][_0x5e6a('0x41')],_0x5e6a('0xcd'));this['_setSuggestionRange'](_0x465905,this['_model'][_0x5e6a('0xcf')](_0x515c43,_0x30d31e[_0x5e6a('0x91')]));}}}}[_0x5e6a('0x5e')](_0x13d6d0){for(const {suggestion:_0xdab033,meta:_0x4a98f0}of this[_0x5e6a('0xd4')](_0x13d6d0,_0x5e6a('0x2d'))){if(!_0x4a98f0[_0x5e6a('0x129')])continue;const _0x570862=_0xdab033['getRanges']();for(const _0x30c28e of _0x570862)if(!_0x13d6d0[_0x5e6a('0x9f')](_0x30c28e)[_0x5e6a('0x5f')])return!0x0;}return!0x1;}[_0x5e6a('0x124')](_0x3025b0){const _0x2ec07e=this[_0x5e6a('0x33')]['plugins']['get'](_0x5e6a('0x20'))[_0x5e6a('0xbe')](_0x3025b0);if(!_0x2ec07e)throw new _0x6a793a(_0x5e6a('0x105'),this);return _0x2ec07e;}[_0x5e6a('0xb1')](_0xbad440){const _0x1ff1c6=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x20')),_0x28342a=_0xd4616e(_0x5e6a('0x4b')+_0xbad440),_0x3f1a42=_0x1ff1c6['getUser'](_0x28342a);return _0x3f1a42||_0x1ff1c6[_0x5e6a('0xb')]({'id':_0x28342a,'name':_0xbad440});}['_createSuggestion'](_0x13dbcf,_0x3224ff,_0x453de5,_0x398221,_0x1c3b9d){const _0x28af27=this[_0x5e6a('0x124')](_0x398221),_0x17fc4f=this[_0x5e6a('0x31')][_0x5e6a('0xf8')](_0x13dbcf,_0x3224ff,_0x453de5,_0x28af27,_0x1c3b9d,_0x23f77c=>this[_0x5e6a('0xd5')](_0x453de5,{'attributes':_0x23f77c}));return this['listenTo'](_0x17fc4f,_0x5e6a('0xe9'),()=>{this[_0x5e6a('0xd5')](_0x453de5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x17fc4f,_0x5e6a('0xf1'),()=>{this[_0x5e6a('0xd5')](_0x453de5,{'state':'rejected'});},{'priority':_0x5e6a('0xd')}),this[_0x5e6a('0xae')]['set'](_0x453de5,_0x17fc4f),this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x17fc4f,_0x5e6a('0x6a')),_0x17fc4f;}['_splitMarkerName'](_0x577b9b){const _0x40e1ce=_0x577b9b['split'](':');return{'group':_0x40e1ce[0x0],'type':_0x40e1ce[0x1],'subType':_0x40e1ce['length']>=0x5?_0x40e1ce[0x2]:null,'id':_0x40e1ce[_0x5e6a('0x5f')]<0x5?_0x40e1ce[0x2]:_0x40e1ce[0x3],'authorId':_0x40e1ce['length']<0x5?_0x40e1ce[0x3]:_0x40e1ce[0x4],'markerCount':0x6==_0x40e1ce[_0x5e6a('0x5f')]?_0x40e1ce[0x5]:null};}['_breakSuggestionMarker'](_0x5dd59f,_0x841064,_0xfe92fe){const _0x3c4585=_0x5dd59f[_0x5e6a('0x92')](),_0x4b9567=_0x3c4585[_0x5e6a('0xd0')],_0x15f573=_0x3c4585[_0x5e6a('0x91')];this[_0x5e6a('0xb8')](_0x5dd59f,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x4b9567,_0x841064));const _0x310a4e=_0x260652(),_0x4dd4f2=_0x5dd59f[_0x5e6a('0x109')]['id'],_0x28c7ad=_0x5dd59f['type']+(_0x5dd59f['subType']?':'+_0x5dd59f[_0x5e6a('0xd7')]:'');this['_setSuggestionData']({'id':_0x310a4e,'type':_0x28c7ad,'createdAt':new Date(),'authorId':_0x4dd4f2,'originalSuggestionId':_0x5dd59f['id'],'attributes':_0x5dd59f[_0x5e6a('0x78')],'data':_0x5dd59f[_0x5e6a('0x46')]}),'formatBlock'==_0x5dd59f[_0x5e6a('0x2f')]&&(_0xfe92fe=this[_0x5e6a('0xc2')][_0x5e6a('0x120')](_0xfe92fe[_0x5e6a('0x41')])),this['_addSuggestionMarker'](_0x28c7ad,_0x310a4e,_0x4dd4f2,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0xfe92fe,_0x15f573));}[_0x5e6a('0xd4')](_0x3356a9,_0x592942=null){const _0x1e6694=[],_0x3b2165=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')]('Users')['me'];Array[_0x5e6a('0xf6')](_0x3356a9)||(_0x3356a9=[_0x3356a9]);for(const _0x24c6ce of this[_0x5e6a('0xf0')]()){if(!_0x24c6ce['isInContent'])continue;if(_0x592942&&_0x24c6ce[_0x5e6a('0x2f')]!=_0x592942)continue;let _0x376613=!0x1;for(const _0x105d17 of _0x24c6ce[_0x5e6a('0xb6')]()){for(const _0x3f5d7b of _0x3356a9){const _0x4372e5=_0x3f5d7b[_0x5e6a('0xd0')][_0x5e6a('0x6c')](_0x105d17[_0x5e6a('0x91')])||_0x3f5d7b[_0x5e6a('0x91')][_0x5e6a('0x6c')](_0x105d17[_0x5e6a('0xd0')]);if(_0x4372e5||_0x3f5d7b[_0x5e6a('0xcb')](_0x105d17)){const _0x2125f0=_0x3f5d7b[_0x5e6a('0x1a')](_0x105d17)&&_t(this['_model']['schema'],_0x105d17['start'],_0x3f5d7b),_0x448b09=_0x105d17[_0x5e6a('0x1a')](_0x3f5d7b)&&_t(this[_0x5e6a('0xc2')][_0x5e6a('0x79')],_0x3f5d7b[_0x5e6a('0xd0')],_0x105d17);_0x1e6694[_0x5e6a('0x125')]({'suggestion':_0x24c6ce,'meta':{'isOwn':_0x3b2165==_0x24c6ce[_0x5e6a('0x64')],'isNextTo':_0x4372e5,'isInsideObject':_0x2125f0,'containsRangeInObject':_0x448b09}}),_0x376613=!0x0;break;}}if(_0x376613)break;}}return _0x1e6694;}['_addSuggestionMarker'](_0x384970,_0x3a95cd,_0x563e2e,_0x305826,_0x49719f){this['_model'][_0x5e6a('0x1c')](_0x284079=>{let _0x54a62d='suggestion:'+_0x384970+':'+_0x3a95cd+':'+_0x563e2e;_0x49719f&&(_0x54a62d=_0x54a62d+':'+_0x49719f),_0x284079['addMarker'](_0x54a62d,{'range':_0x305826,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x51fd86){const _0x52afd4=_0x51fd86[_0x5e6a('0xff')],_0x162f46=_0x51fd86[_0x5e6a('0x47')];_0x51fd86[_0x5e6a('0xff')]=null,null!=_0x52afd4&&(_0x52afd4[_0x5e6a('0x47')]=null),_0x51fd86[_0x5e6a('0x47')]=null,null!=_0x162f46&&(_0x162f46[_0x5e6a('0xff')]=null),_0x5e6a('0x2b')==this['_suggestionState']['get'](_0x51fd86)&&(this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x51fd86,_0x5e6a('0xa7')),this[_0x5e6a('0xda')]('suggestionUnloaded',_0x51fd86,_0x52afd4,_0x162f46));}[_0x5e6a('0x9a')](_0x400ba3){const _0x2d3760=_0x400ba3['id'],_0x359c95=this[_0x5e6a('0x12f')](_0x400ba3);if(this[_0x5e6a('0x8f')]&&this[_0x5e6a('0x8f')][_0x5e6a('0x67')]){const _0x746f2d=this['editor'][_0x5e6a('0x74')][_0x5e6a('0x50')]('PendingActions'),_0x1dbc5d=_0x359c95[_0x5e6a('0x116')],_0x3c0a8b=_0x359c95['subType']?_0x359c95[_0x5e6a('0x2f')]+':'+_0x359c95[_0x5e6a('0xd7')]:_0x359c95[_0x5e6a('0x2f')],_0x5f46a3=this[_0x5e6a('0x33')][_0x5e6a('0x55')],_0x2b95ff=_0x746f2d[_0x5e6a('0xcc')](_0x3f2328(_0x5f46a3,_0x5e6a('0x3b'))),_0x48a631={'id':_0x2d3760,'type':_0x3c0a8b,'hasComments':_0x1dbc5d,'data':_0x400ba3[_0x5e6a('0x46')]||null,'originalSuggestionId':_0x400ba3['originalSuggestionId']||null,'attributes':_0x359c95['attributes']};this[_0x5e6a('0x8f')][_0x5e6a('0x67')](_0x48a631)[_0x5e6a('0xdb')](_0x201456=>{_0x359c95[_0x5e6a('0x86')]=!0x0,_0x746f2d[_0x5e6a('0xe3')](_0x2b95ff),_0x201456&&_0x201456[_0x5e6a('0x63')]&&(this[_0x5e6a('0xae')][_0x5e6a('0x50')](_0x2d3760)[_0x5e6a('0x63')]=_0x201456[_0x5e6a('0x63')]);})['catch'](_0x12c3df=>{throw _0x5e52fa(_0x5e6a('0x136')),this['editor'][_0x5e6a('0x1d')][_0x5e6a('0x62')]({'isUndoable':!0x1},()=>{_0x359c95['discard']();}),_0x359c95['stopListening'](),this[_0x5e6a('0xae')][_0x5e6a('0x10a')](_0x359c95['id']),this[_0x5e6a('0x29')][_0x5e6a('0x10a')](_0x359c95),_0x12c3df;});}return _0x359c95;}[_0x5e6a('0xd5')](_0x5c329b,_0x185d47){const _0x30f41d=this[_0x5e6a('0x33')][_0x5e6a('0x74')][_0x5e6a('0x50')](_0x5e6a('0x7c')),_0x3a8e90=this['getSuggestion'](_0x5c329b);if(this[_0x5e6a('0x8f')]&&this[_0x5e6a('0x8f')]['updateSuggestion']){if(_0x3a8e90[_0x5e6a('0x86')]){const _0x4cc2b2=_0x30f41d[_0x5e6a('0xcc')](_0x3f2328(this[_0x5e6a('0x33')][_0x5e6a('0x55')],_0x5e6a('0x3b')));this[_0x5e6a('0x8f')][_0x5e6a('0x10c')](_0x5c329b,_0x185d47)['then'](()=>{_0x30f41d[_0x5e6a('0xe3')](_0x4cc2b2);});}else _0x3a8e90['on'](_0x5e6a('0x76'),()=>{this[_0x5e6a('0xd5')](_0x5c329b,_0x185d47);});}}[_0x5e6a('0xd9')](_0x3f6c86){if(!this[_0x5e6a('0x8f')]||!this[_0x5e6a('0x8f')][_0x5e6a('0x66')])throw new _0x6a793a('track-changes-adapter-missing-getsuggestion',this);return this[_0x5e6a('0x8f')]['getSuggestion'](_0x3f6c86);}[_0x5e6a('0xd1')](_0x496e2d){const {id:_0xfb215e,type:_0x32fcd1,subType:_0xc08e6d,authorId:_0x29a83a}=this[_0x5e6a('0x112')](_0x496e2d),_0x295a83=this['_suggestions'][_0x5e6a('0x50')](_0xfb215e)||this[_0x5e6a('0x11c')](_0x32fcd1,_0xc08e6d,_0xfb215e,_0x29a83a,{});switch(this['_checkSuggestionCorrectness'](_0x295a83,_0x32fcd1,_0xc08e6d,_0x29a83a),this[_0x5e6a('0x29')][_0x5e6a('0x50')](_0x295a83)){case _0x5e6a('0x6a'):this[_0x5e6a('0xd9')](_0xfb215e)[_0x5e6a('0xdb')](_0xde29b3=>{let _0x2f4684=Promise[_0x5e6a('0x110')]();_0xde29b3[_0x5e6a('0x116')]&&(_0x2f4684=this[_0x5e6a('0xab')][_0x5e6a('0x77')]({'channelId':this[_0x5e6a('0x33')][_0x5e6a('0x121')][_0x5e6a('0x50')](_0x5e6a('0xc0')),'threadId':_0xfb215e})),_0x2f4684[_0x5e6a('0xdb')](()=>{this[_0x5e6a('0x12f')](_0xde29b3)[_0x5e6a('0x86')]=!0x0;});}),this[_0x5e6a('0x29')][_0x5e6a('0x82')](_0x295a83,'markerReady');break;case _0x5e6a('0xa7'):this[_0x5e6a('0xd5')](_0xfb215e,{'state':_0x5e6a('0x131')});case _0x5e6a('0x93'):this[_0x5e6a('0x29')]['set'](_0x295a83,_0x5e6a('0x2b')),this[_0x5e6a('0xda')](_0x5e6a('0xc3'),_0x295a83);break;case _0x5e6a('0x2b'):this['fire'](_0x5e6a('0x5a'),_0x295a83);}return _0x295a83[_0x5e6a('0xfc')](_0x496e2d),_0x295a83;}[_0x5e6a('0xf7')](_0x4aa6cc){const _0x591463=Array[_0x5e6a('0xbf')](_0x4aa6cc)[_0x5e6a('0xe2')](_0x50d113=>!_0x50d113[_0x5e6a('0x12e')]),_0x52ccbc=this[_0x5e6a('0xf0')]({'skipNotAttached':!0x0})[_0x5e6a('0xe2')](_0x3dc2cb=>!_0x3dc2cb[_0x5e6a('0x12e')]),_0x5656fc=_0x52ccbc['filter'](_0x5e3b77=>!_0x4aa6cc[_0x5e6a('0x132')](_0x5e3b77)),_0x414643=new Map(_0x52ccbc[_0x5e6a('0x10d')](_0x543d0b=>[_0x543d0b,this[_0x5e6a('0x31')][_0x5e6a('0x12d')](_0x543d0b[_0x5e6a('0x2f')],_0x543d0b['subType'],_0x5e6a('0xdf'))])),_0x46d86d=new Map(_0x52ccbc[_0x5e6a('0x10d')](_0x24f70c=>[_0x24f70c,_0x24f70c[_0x5e6a('0x92')]()])),_0x11123d=new Set(),_0xd26d42=new Set();for(let _0x2f6cc0=0x0;_0x2f6cc0<_0x591463[_0x5e6a('0x5f')];_0x2f6cc0++)_0x45b94f(_0x591463[_0x2f6cc0],_0x591463,_0x2f6cc0+0x1);for(let _0x1c400d=0x0;_0x1c400d<_0x591463[_0x5e6a('0x5f')];_0x1c400d++)_0x45b94f(_0x591463[_0x1c400d],_0x5656fc,0x0);for(let _0x5899be=0x0;_0x5899be<_0x591463['length'];_0x5899be++){const _0x44f20c=_0x591463[_0x5899be];!_0xd26d42['has'](_0x44f20c)&&_0x44f20c[_0x5e6a('0xff')]&&(_0x44f20c[_0x5e6a('0xff')][_0x5e6a('0x47')]===_0x44f20c&&(_0x44f20c['previous'][_0x5e6a('0x47')]=null),_0x44f20c[_0x5e6a('0xff')]=null),!_0x11123d[_0x5e6a('0x132')](_0x44f20c)&&_0x44f20c['next']&&(_0x44f20c[_0x5e6a('0x47')][_0x5e6a('0xff')]===_0x44f20c&&(_0x44f20c[_0x5e6a('0x47')][_0x5e6a('0xff')]=null),_0x44f20c[_0x5e6a('0x47')]=null);}function _0x45b94f(_0xae8b75,_0xc283f,_0x3d1e70){for(let _0x277637=_0x3d1e70;_0x277637<_0xc283f[_0x5e6a('0x5f')];_0x277637++){const _0x2635c5=_0x36d7fe(_0xae8b75,_0xc283f[_0x277637]);_0x2635c5&&(_0x2635c5[0x0][_0x5e6a('0x47')]=_0x2635c5[0x1],_0x2635c5[0x1][_0x5e6a('0xff')]=_0x2635c5[0x0],_0x11123d['add'](_0x2635c5[0x0]),_0xd26d42[_0x5e6a('0xcc')](_0x2635c5[0x1]));}}function _0x36d7fe(_0x2642bb,_0x29cd39){if(_0x2642bb[_0x5e6a('0x64')]['id']!==_0x29cd39[_0x5e6a('0x64')]['id'])return null;const _0x51e37d=_0x414643[_0x5e6a('0x50')](_0x2642bb)(_0x2642bb,_0x29cd39,_0x46d86d[_0x5e6a('0x50')](_0x2642bb),_0x46d86d[_0x5e6a('0x50')](_0x29cd39));if(!_0x51e37d)return null;return _0x414643['get'](_0x29cd39)(_0x2642bb,_0x29cd39,_0x46d86d[_0x5e6a('0x50')](_0x2642bb),_0x46d86d[_0x5e6a('0x50')](_0x29cd39))?_0x51e37d[0x1][_0x5e6a('0x68')]&&_0x51e37d[0x1][_0x5e6a('0x68')][_0x5e6a('0x5f')]?null:_0x51e37d:null;}}['_joinWithAdjacentSuggestions'](_0x1203c8){const _0x312609=Array['from'](_0x1203c8),_0x19a14e=this[_0x5e6a('0xf0')]({'skipNotAttached':!0x0}),_0x2c56fe=_0x19a14e[_0x5e6a('0xe2')](_0x75364f=>!_0x1203c8[_0x5e6a('0x132')](_0x75364f)),_0x58ecaa=new Map(_0x312609[_0x5e6a('0x10d')](_0x301135=>[_0x301135,this[_0x5e6a('0x31')]['getSuggestionCallback'](_0x301135[_0x5e6a('0x2f')],_0x301135[_0x5e6a('0xd7')],'join')])),_0x3c8489=new Map(_0x19a14e[_0x5e6a('0x10d')](_0x31fbbf=>[_0x31fbbf,_0x31fbbf[_0x5e6a('0xb6')]()]));for(let _0x455b60=0x0;_0x455b60<_0x312609[_0x5e6a('0x5f')];_0x455b60++){if(_0x2fe92f(this,_0x312609[_0x455b60],_0x312609,_0x455b60+0x1))return!0x0;}for(let _0x250cfe=0x0;_0x250cfe<_0x312609[_0x5e6a('0x5f')];_0x250cfe++){if(_0x2fe92f(this,_0x312609[_0x250cfe],_0x2c56fe,0x0))return!0x0;}return!0x1;function _0x2fe92f(_0x1bfd22,_0x441328,_0xa6452,_0x1a57b0){for(let _0x13eac4=_0x1a57b0;_0x13eac4<_0xa6452[_0x5e6a('0x5f')];_0x13eac4++){const _0x3923e3=_0xa6452[_0x13eac4];if(_0x3923e3[_0x5e6a('0x2f')]!==_0x441328[_0x5e6a('0x2f')]||_0x3923e3[_0x5e6a('0x64')]['id']!==_0x441328[_0x5e6a('0x64')]['id']||_0x3923e3['subType']!==_0x441328['subType'])continue;if(!Ut(_0x441328,_0x3923e3))continue;const _0x48412a=_0x58ecaa[_0x5e6a('0x50')](_0x441328),_0x1e2c89=_0x3c8489[_0x5e6a('0x50')](_0x441328),_0x41bbb9=_0x3c8489[_0x5e6a('0x50')](_0x3923e3),_0xa66223=_0x441328['commentThread']&&_0x441328['commentThread'][_0x5e6a('0x5f')],_0x7fc21b=_0x3923e3[_0x5e6a('0x68')]&&_0x3923e3[_0x5e6a('0x68')][_0x5e6a('0x5f')];if(!_0xa66223&&_0x48412a(_0x41bbb9,_0x1e2c89))return _0x1bfd22[_0x5e6a('0x7b')](_0x3923e3,_0x441328),_0x3c8489[_0x5e6a('0x10a')](_0x441328),!0x0;if(!_0x7fc21b&&_0x48412a(_0x1e2c89,_0x41bbb9))return _0x1bfd22[_0x5e6a('0x7b')](_0x441328,_0x3923e3),_0x3c8489['delete'](_0x3923e3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x33ae5a,_0x4d1dc8){if(_0x33ae5a[_0x5e6a('0x12e')])for(const _0x5c7739 of _0x4d1dc8[_0x5e6a('0xb6')]())_0x33ae5a[_0x5e6a('0x39')](_0x5c7739);else{const _0x294b9c=_0x4d1dc8['getFirstRange']()[_0x5e6a('0x91')];this['_setSuggestionRange'](_0x33ae5a,this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x33ae5a[_0x5e6a('0x92')]()[_0x5e6a('0xd0')],_0x294b9c));}_0x4d1dc8[_0x5e6a('0xb7')]();}}class Bt{constructor(_0x41fa87){this[_0x5e6a('0x8c')]=_0x41fa87,this[_0x5e6a('0xc2')]=_0x41fa87[_0x5e6a('0x1d')],this[_0x5e6a('0x8b')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x5e6a('0x8a')]();}[_0x5e6a('0xf8')](_0x2d90c6,_0x378cf7,_0x4217d5,_0x53a14e,_0x5d247c,_0x2ff4e5){return new _0x51161f(this[_0x5e6a('0xc2')],{'type':_0x2d90c6,'subType':_0x378cf7,'id':_0x4217d5,'author':_0x53a14e,'creator':_0x53a14e,'attributes':_0x5d247c,'onAttributesChange':_0x2ff4e5,'onAccept':(..._0x1429b8)=>this[_0x5e6a('0x12d')](_0x2d90c6,_0x378cf7,'accept')(..._0x1429b8),'onDiscard':(..._0x35c032)=>this[_0x5e6a('0x12d')](_0x2d90c6,_0x378cf7,_0x5e6a('0xf1'))(..._0x35c032)});}['registerCustomCallback'](_0x1e6312,_0x5d2b43,_0x5e2d53,_0x3dc342){const _0x4c4ff1=_0x1e6312+':'+_0x5d2b43+':'+_0x5e2d53;this[_0x5e6a('0x8b')]['set'](_0x4c4ff1,_0x3dc342);}['getSuggestionCallback'](_0xcb5d2,_0x54f0de,_0xb618cd){const _0x42eb46=_0xcb5d2+':'+_0x54f0de+':'+_0xb618cd;return this[_0x5e6a('0x8b')][_0x5e6a('0x50')](_0x42eb46)||this[_0x5e6a('0xe0')][_0x5e6a('0x50')](_0xcb5d2+':'+_0xb618cd);}['_registerDefaultCallbacks'](){const _0x280c50=()=>!0x1,_0xec98e6=_0x877305=>{_0x877305[_0x5e6a('0x114')]((_0x38d322,_0x3b38fa)=>_0x38d322[_0x5e6a('0xd0')][_0x5e6a('0xc9')](_0x3b38fa['start'])?0x1:-0x1),this['_model'][_0x5e6a('0x1c')](_0x2b9096=>{for(const _0x2ef9ef of _0x877305){let _0x5c3356;_0x5c3356=_0x2ef9ef['end'][_0x5e6a('0xf2')]&&_0x2ef9ef[_0x5e6a('0x91')][_0x5e6a('0x41')]==_0x2ef9ef[_0x5e6a('0xd0')][_0x5e6a('0x11')]?_0x2b9096[_0x5e6a('0x40')](_0x2ef9ef[_0x5e6a('0xd0')][_0x5e6a('0x11')],'on'):_0x2b9096['createSelection'](_0x2ef9ef),this[_0x5e6a('0xc2')]['deleteContent'](_0x5c3356,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3639e7=(_0xdf7fb,_0x23518b)=>{this[_0x5e6a('0xc2')]['change'](_0x3daddd=>{const {commandName:_0x59ed8e,commandParams:_0x19e3a4=[]}=_0x23518b,_0x351062=_0xdf7fb[_0x5e6a('0x10d')](_0x57ad92=>(Mt(_0x57ad92)&&(_0x57ad92=this[_0x5e6a('0xc2')][_0x5e6a('0xcf')](_0x57ad92[_0x5e6a('0x91')])),_0x57ad92))[_0x5e6a('0xe2')](_0x4a3cf3=>_0x5e6a('0xed')!==_0x4a3cf3[_0x5e6a('0x11f')][_0x5e6a('0x24')]);if(_0x351062[_0x5e6a('0x5f')]<0x1)return;const _0x69b83c=Array['from'](this[_0x5e6a('0xc2')][_0x5e6a('0x117')][_0x5e6a('0x106')][_0x5e6a('0xb6')]())[_0x5e6a('0x10d')](_0x3b84ac=>_0x14a52e['fromRange'](_0x3b84ac));_0x3daddd['setSelection'](_0x351062);for(const _0x43ceac of this[_0x5e6a('0x8c')][_0x5e6a('0xfe')]['commands']())_0x43ceac[_0x5e6a('0x126')]();_0x19e3a4[_0x5e6a('0x125')]({'forceDefaultExecution':!0x0}),this[_0x5e6a('0x8c')][_0x5e6a('0x59')](_0x59ed8e,..._0x19e3a4);const _0xde6084=_0x69b83c[_0x5e6a('0xe2')](_0x59a26b=>_0x5e6a('0xed')!=_0x59a26b[_0x5e6a('0x11f')][_0x5e6a('0x24')]);_0xde6084[_0x5e6a('0x5f')]>0x0&&_0x3daddd[_0x5e6a('0xa3')](_0xde6084);for(const _0x5db717 of _0x69b83c)_0x5db717['detach']();});},_0x2b56ad=(_0x4e7bd2,_0x544785)=>0x1==_0x4e7bd2[_0x5e6a('0x5f')]&&0x1==_0x544785[_0x5e6a('0x5f')]&&_0x4e7bd2[0x0][_0x5e6a('0x91')][_0x5e6a('0x6c')](_0x544785[0x0][_0x5e6a('0xd0')]),_0x289421=(_0x235c63,_0x51e69f,_0x5b3ff0,_0x2fdd73)=>xt(_0x235c63,_0x51e69f,_0x5b3ff0,_0x2fdd73,this[_0x5e6a('0xc2')])?[_0x235c63,_0x51e69f]:xt(_0x51e69f,_0x235c63,_0x2fdd73,_0x5b3ff0,this[_0x5e6a('0xc2')])?[_0x51e69f,_0x235c63]:null;this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0xe8'),_0x280c50),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('insertion:discard',_0xec98e6),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('insertion:join',_0x2b56ad),this[_0x5e6a('0xe0')]['set'](_0x5e6a('0x5c'),_0x289421),this['_defaultCallbacks']['set'](_0x5e6a('0x11d'),_0xec98e6),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0x133'),_0x280c50),this[_0x5e6a('0xe0')]['set'](_0x5e6a('0xea'),_0x2b56ad),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0x135'),_0x289421),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('formatInline:accept',_0x3639e7),this['_defaultCallbacks'][_0x5e6a('0x82')](_0x5e6a('0x10b'),_0x280c50),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('formatInline:join',_0x2b56ad),this[_0x5e6a('0xe0')][_0x5e6a('0x82')]('formatInline:chain',_0x280c50),this[_0x5e6a('0xe0')]['set'](_0x5e6a('0x94'),_0x3639e7),this[_0x5e6a('0xe0')]['set']('formatBlock:discard',_0x280c50),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0xb9'),_0x2b56ad),this[_0x5e6a('0xe0')][_0x5e6a('0x82')](_0x5e6a('0x6'),_0x280c50);}}function _t(_0x2089b7,_0x59bff7,_0x4559c6){for(const _0x300e4d of _0x59bff7[_0x5e6a('0x41')][_0x5e6a('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x300e4d['root']==_0x300e4d)return!0x1;if(!_0x4559c6[_0x5e6a('0x6e')](_0x300e4d))return!0x1;if(_0x2089b7[_0x5e6a('0x26')](_0x300e4d)||_0x2089b7[_0x5e6a('0xac')](_0x300e4d))return!0x0;}return!0x1;}function Mt(_0x2db69c){return _0x2db69c[_0x5e6a('0x91')]['parent']==_0x2db69c['start'][_0x5e6a('0x11')]&&_0x2db69c[_0x5e6a('0x91')]['isAtStart'];}function $t(_0xb907b9,_0x6400b4,_0x56db61,_0x5d016e){const _0x5e7176=_0x2a2087=>!_0x2a2087['item']['is'](_0x5e6a('0x19'))&&!_0x5d016e[_0x5e6a('0x26')](_0x2a2087[_0x5e6a('0x4d')]),_0x24a6ad=_0xb907b9[_0x5e6a('0xd0')]['getLastMatchingPosition'](_0x5e7176),_0x386f08=_0xb907b9[_0x5e6a('0x91')][_0x5e6a('0x119')](_0x5e7176,{'direction':'backward'});return(!_0xb907b9['start'][_0x5e6a('0x6c')](_0x24a6ad)||!_0xb907b9['end'][_0x5e6a('0x6c')](_0x386f08))&&(_0x24a6ad[_0x5e6a('0xc9')](_0x386f08)?_0x56db61[_0x5e6a('0x48')](_0x6400b4,{'range':_0x56db61[_0x5e6a('0xcf')](_0x24a6ad,_0x386f08)}):_0x56db61[_0x5e6a('0x5b')](_0x6400b4),!0x0);}function Nt(_0xb57b64){return _0xd4616e(_0xb57b64);}function Rt(_0x515d2a){const _0x52d674=_0x515d2a[_0x5e6a('0xd0')]['nodeAfter'];return _0x52d674&&_0x52d674['is'](_0x5e6a('0xa8'));}function jt(_0x533df3,_0x22b8dc){const _0x5762e3=_0x22b8dc[_0x5e6a('0x79')][_0x5e6a('0x26')](_0x533df3)||_0x22b8dc[_0x5e6a('0x79')][_0x5e6a('0x12')](_0x533df3);return _0x22b8dc['createRange'](_0x22b8dc[_0x5e6a('0x13')](_0x533df3,_0x5e6a('0x37')),_0x5762e3?_0x22b8dc[_0x5e6a('0x30')](_0x533df3):_0x22b8dc[_0x5e6a('0x13')](_0x533df3,_0x5e6a('0x91')));}function xt(_0x15eda5,_0x38e05d,_0x47b07a,_0x24e6c6,_0x5ecefd){if(!Ut(_0x15eda5,_0x38e05d))return!0x1;if(_0x47b07a[_0x5e6a('0x91')]['isEqual'](_0x24e6c6[_0x5e6a('0xd0')]))return!0x0;if(_0x15eda5[_0x5e6a('0x2f')]!=_0x38e05d[_0x5e6a('0x2f')])return!0x1;if(!_0x47b07a[_0x5e6a('0x91')][_0x5e6a('0xf5')](_0x24e6c6[_0x5e6a('0xd0')]))return!0x1;const _0x51ada1=_0x5ecefd[_0x5e6a('0xcf')](_0x47b07a['end'],_0x24e6c6['start'])[_0x5e6a('0x43')]();for(const _0xdbc866 of _0x51ada1)if([_0x5e6a('0x13a'),_0x5e6a('0x134')]['includes'](_0xdbc866[_0x5e6a('0x2f')])&&_0x5ecefd[_0x5e6a('0x79')][_0x5e6a('0xac')](_0xdbc866[_0x5e6a('0x4d')]))return!0x1;return!0x0;}function Ut(_0x40a92e,_0x557756){return!(!_0x40a92e[_0x5e6a('0x5d')]||!_0x557756[_0x5e6a('0x5d')])&&_0x37cf62(_0x40a92e['attributes'],_0x557756[_0x5e6a('0x78')]);}function Ot(_0x1555f0,_0x36257a){const _0x537153=Et(_0x1555f0['attributes']),_0x348065=Et(_0x36257a);if(!_0x1555f0[_0x5e6a('0x5d')])return!0x1;for(const _0x351777 of Object['keys'](_0x348065))if(!_0x37cf62(_0x537153[_0x351777],_0x348065[_0x351777]))return!0x1;return!0x0;}function Et(_0x45716c){const _0xfb9dda=Object['assign']({},_0x45716c);return delete _0xfb9dda[_0x5e6a('0x3c')],delete _0xfb9dda['tablePasteChainId'],_0xfb9dda;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37d6=['type','head','buttonView','separator','_viewToController','button','acceptSelectedSuggestions','isEnabled','_annotationViews','Annotations','isMultiRange','change:activeAnnotations','_updateController','suggestionChanged','some','from','createAnnotation','refreshSelectedViews','define','trackChanges','stopListening','editor','Discard\x20all\x20suggestions','previous','listenTo','_refreshActiveMarkers','trackChanges.SuggestionThreadView','EditorAnnotations','descriptionParts','getByInnerView','arrowView','Accept\x20all\x20suggestions','_destroyController','editing','comments.maxCommentsWhenCollapsed','commentThread','_initializeController','SuggestionThreadView','_handleControllerBuffer','bind','actionView','activeAnnotations','innerView','comments','set','isOn','createAnnotationView','_disableComments','getAllAdjacentSuggestions','push','componentFactory','commandName','value','Track\x20changes','addComment','locale','_handleSuggestionControllerDelayed','hasSuggestion','focus','suggestionLoaded','map','lowest','view','destroy','change:previous','Accept\x20all\x20selected\x20suggestions','suggestion-','discardSelectedSuggestions','acceptAllSuggestions','comments.maxThreadTotalWeight','createCommentThreadController','_bindAnnotationToEditors','suggestionUnloaded','clear','discardAllSuggestions','commands','reduce','filter','remove','getMarkerNames','_unbindEditors','CommentsUI','comments.editorConfig','isDirty','plugins','keys','_descriptionFactory','getJoined','_createUIButton','CommentsRepository','_suggestionToController','mainView','unbind','get','execute','addSourceCollector','CommentView','delete','has','init','length','add','getFirstRange','TrackChangesUI','TrackChangesEditing','getDescriptions','model','getSuggestion','isInContent'];(function(_0xafbc68,_0x37d600){const _0xa96bae=function(_0x29330d){while(--_0x29330d){_0xafbc68['push'](_0xafbc68['shift']());}};_0xa96bae(++_0x37d600);}(_0x37d6,0x92));const _0xa96b=function(_0xafbc68,_0x37d600){_0xafbc68=_0xafbc68-0x0;let _0xa96bae=_0x37d6[_0xafbc68];return _0xa96bae;};import{Plugin as _0x5a5201}from'ckeditor5/src/core';import{Collection as _0x516d6b}from'ckeditor5/src/utils';import{Model as _0x20d09c,SplitButtonView as _0x1dbb08,createDropdown as _0x5a4d7b,addListToDropdown as _0xeec309}from'ckeditor5/src/ui';import{Users as _0x21ee88,getDateTimeFormatter as _0x248e88,getAllMarkersDomElementsSorted as _0x51b260}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f42c8 from'./trackchangesediting';import _0x2a14b3 from'./ui/suggestioncontroller';import _0x196b5a from'./ui/view/suggestionthreadview';import{getTranslation as _0x175062}from'./utils/common-translations';import _0x43a935 from'../theme/icons/track-changes.svg';export default class d extends _0x5a5201{static get['requires'](){return[_0x2f42c8,_0x21ee88,_0xa96b('0x34'),_0xa96b('0x51'),_0xa96b('0x63')];}static get['pluginName'](){return _0xa96b('0x42');}constructor(_0x25e765){super(_0x25e765),this[_0xa96b('0x35')]=new Map(),this[_0xa96b('0x4c')]=new Map(),this[_0xa96b('0x50')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x185cd7=this['editor']['config'];_0x185cd7[_0xa96b('0x5a')](_0xa96b('0x62'),_0x196b5a),_0x185cd7[_0xa96b('0x5a')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x185cd7[_0xa96b('0x38')]('trackChanges.disableComments');}[_0xa96b('0x13')](_0x559aab,_0x490028){0x0===this[_0xa96b('0x1')]['size']&&setTimeout(()=>{for(const [_0x284ff2,_0x5ba82a]of this['_handleControllerBuffer']){const _0x1c65e8=this[_0xa96b('0x35')]['has'](_0x284ff2);_0x1c65e8||_0x5ba82a?_0x1c65e8&&_0x5ba82a&&this[_0xa96b('0x68')](_0x284ff2):this['_initializeController'](_0x284ff2);}this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63'))[_0xa96b('0x59')](),this[_0xa96b('0x61')](),this[_0xa96b('0x1')][_0xa96b('0x24')]();},0xa),this[_0xa96b('0x1')]['set'](_0x559aab,_0x490028);}[_0xa96b('0x3e')](){const _0x5eb1f1=this[_0xa96b('0x5d')],_0x34e6a4=_0x5eb1f1['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x4658c9=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x2fbde3=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x3595aa=_0x5eb1f1['plugins'][_0xa96b('0x38')]('CommentsRepository');_0x5eb1f1['ui'][_0xa96b('0xd')][_0xa96b('0x40')](_0xa96b('0x5b'),_0x13ae6e=>this[_0xa96b('0x33')](_0x13ae6e)),_0x2fbde3[_0xa96b('0x3a')](()=>{const _0xb338fa=[];for(const [_0x120bde,_0x5926ba]of Array[_0xa96b('0x57')](this[_0xa96b('0x35')])){const _0x474d50=_0x120bde[_0xa96b('0xb')](),_0x1e0447=[];for(const _0x3464fc of _0x474d50){if(!_0x3464fc[_0xa96b('0x47')])continue;if(_0x3464fc[_0xa96b('0x52')]){_0x1e0447['push'](..._0x3464fc['getRanges']());continue;}const _0x4fdc05=_0x3464fc[_0xa96b('0x41')]();if(_0x1e0447[_0xa96b('0x3f')]>0x0){const _0x4dd5eb=_0x1e0447[0x0][_0xa96b('0x32')](_0x4fdc05);if(_0x4dd5eb){_0x1e0447[0x0]=_0x4dd5eb;continue;}}_0x1e0447['push'](_0x4fdc05);}_0xb338fa[_0xa96b('0xc')]([_0x5926ba[_0xa96b('0x19')],_0x1e0447]);}return _0xb338fa;}),this['listenTo'](_0x34e6a4,_0xa96b('0x16'),(_0x573d91,_0x4cafc4)=>{this[_0xa96b('0x60')](_0x4cafc4,_0xa96b('0x1b'),(_0x40fe23,_0x2f20e1,_0x1ca593,_0xd2e45a)=>{_0x4cafc4[_0xa96b('0x47')]&&(null==_0x1ca593?(this[_0xa96b('0x54')](_0xd2e45a[_0xa96b('0x49')]),this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1)):(this[_0xa96b('0x54')](_0x1ca593['head']),this[_0xa96b('0x13')](_0x4cafc4,!0x0)));}),null===_0x4cafc4[_0xa96b('0x5f')]?this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1):this['_updateController'](_0x4cafc4[_0xa96b('0x49')]);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x23'),(_0x3de2cb,_0x2bc4c2,_0x7890a6)=>{this[_0xa96b('0x5c')](_0x2bc4c2,_0xa96b('0x1b')),this['_handleControllerBuffer'][_0xa96b('0x3c')](_0x2bc4c2);const _0x36dc26=_0x7890a6?_0x7890a6[_0xa96b('0x49')]:_0x2bc4c2,_0x190576=this['_suggestionToController'][_0xa96b('0x38')](_0x36dc26);null!==_0x7890a6&&this['_updateController'](_0x36dc26),null===_0x7890a6&&_0x190576&&this[_0xa96b('0x68')](_0x2bc4c2);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x55'),(_0x176ed7,_0xe46826)=>{this[_0xa96b('0x54')](_0xe46826);}),this[_0xa96b('0x60')](_0x4658c9,_0xa96b('0x53'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3595aa,_0xa96b('0x11'),(_0x3f1264,{threadId:_0x461c68,isFromAdapter:_0x5bc1b4})=>{if(_0x5bc1b4||!_0x34e6a4[_0xa96b('0x14')](_0x461c68))return;const _0x3dbeaf=_0x34e6a4[_0xa96b('0x46')](_0x461c68);this[_0xa96b('0x35')][_0xa96b('0x38')](_0x3dbeaf)[_0xa96b('0x19')][_0xa96b('0x15')]();},{'priority':_0xa96b('0x18')});}['_refreshActiveMarkers'](){const _0xbff0f9=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x3dacd5=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('TrackChangesEditing'),_0x4ae98f=Array[_0xa96b('0x57')](_0xbff0f9[_0xa96b('0x4')],_0x29d89c=>_0x29d89c[_0xa96b('0x5')])[_0xa96b('0x28')](_0x11f828=>this[_0xa96b('0x4c')]['has'](_0x11f828)),_0x99248=[];for(const _0x1a1ad9 of _0x4ae98f){const _0x257bea=this[_0xa96b('0x4c')][_0xa96b('0x38')](_0x1a1ad9)[_0xa96b('0x45')][_0xa96b('0xb')]();_0x99248['push'](..._0x257bea[_0xa96b('0x27')]((_0x193cfc,_0x12b0d0)=>[..._0x193cfc,..._0x12b0d0[_0xa96b('0x2a')]()],[]));}_0x3dacd5['activeMarkers']=_0x99248;}['_createUIButton'](_0x3de84a){const _0x4919ea=_0x5a4d7b(_0x3de84a,_0x1dbb08),_0x18e909=this[_0xa96b('0x5d')][_0xa96b('0x26')]['get'](_0xa96b('0x5b')),_0x401176=_0x175062(_0x3de84a,_0xa96b('0x10'));_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x7')]({'tooltip':_0x401176,'label':_0x401176,'icon':_0x43a935}),_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x2')](_0xa96b('0x8'))['to'](_0x18e909,_0xa96b('0xf')),_0x4919ea[_0xa96b('0x4a')]['on']('execute',()=>{_0x18e909[_0xa96b('0x39')](),this[_0xa96b('0x5d')][_0xa96b('0x69')][_0xa96b('0x19')]['focus']();});const _0x5be39e=new _0x516d6b(),_0x346245=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x401176,'commandName':'trackChanges'}},{'type':_0xa96b('0x4b')},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x67')),'commandName':_0xa96b('0x1f')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x1c')),'commandName':_0xa96b('0x4e')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x5e')),'commandName':_0xa96b('0x25')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xa96b('0x1e')}}];for(const _0x269c01 of _0x346245){let _0xd3b487={'type':_0xa96b('0x4b')};if(_0x269c01['model']){const _0x33c2d8=new _0x20d09c(_0x269c01[_0xa96b('0x45')]),_0x38ad0e=this['editor']['commands'][_0xa96b('0x38')](_0x33c2d8[_0xa96b('0xe')]);_0x33c2d8['bind']('isOn','isEnabled')['to'](_0x38ad0e,_0xa96b('0xf'),_0xa96b('0x4f')),_0xd3b487={'type':_0x269c01[_0xa96b('0x48')],'model':_0x33c2d8};}_0x5be39e[_0xa96b('0x40')](_0xd3b487);}_0xeec309(_0x4919ea,_0x5be39e);const _0x492e18=_0x346245['filter'](_0x452875=>null!=_0x452875['model'])[_0xa96b('0x17')](_0x2e7b4f=>this[_0xa96b('0x5d')][_0xa96b('0x26')][_0xa96b('0x38')](_0x2e7b4f['model']['commandName'])),_0x867004=_0x4919ea[_0xa96b('0x4a')];return _0x867004[_0xa96b('0x3')][_0xa96b('0x37')](_0xa96b('0x4f')),_0x867004['arrowView'][_0xa96b('0x37')]('isEnabled'),_0x867004[_0xa96b('0x3')][_0xa96b('0x2')](_0xa96b('0x4f'))['to'](_0x18e909,_0xa96b('0x4f')),_0x867004[_0xa96b('0x66')][_0xa96b('0x2')](_0xa96b('0x4f'))['toMany'](_0x492e18,_0xa96b('0x4f'),(..._0x32fe97)=>_0x32fe97[_0xa96b('0x56')](_0x4eda6a=>_0x4eda6a)),_0x4919ea['on'](_0xa96b('0x39'),_0x25b826=>{this[_0xa96b('0x5d')][_0xa96b('0x39')](_0x25b826['source'][_0xa96b('0xe')]),this['editor']['editing'][_0xa96b('0x19')][_0xa96b('0x15')]();}),_0x4919ea;}[_0xa96b('0x6c')](_0x286e1e){const _0x2b5554=this['editor'],_0x8a2ab8=_0x2b5554['config'],_0x410816=_0x2b5554[_0xa96b('0x2f')]['get'](_0xa96b('0x51')),_0x26ba5b=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x5b8ed0=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x1117af=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0x21ee88)['me'],_0xd4fd3=_0x8a2ab8[_0xa96b('0x38')]('trackChanges')[_0xa96b('0x0')],{CommentsListView:_0x30d8ed,CommentThreadInputView:_0x2f079a}=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x2c'));let _0x3373ce,_0x413d96;this[_0xa96b('0x50')][_0xa96b('0x3d')](_0x286e1e['id'])?(_0x413d96=this[_0xa96b('0x50')][_0xa96b('0x38')](_0x286e1e['id']),_0x3373ce=_0x413d96[_0xa96b('0x36')]):(_0x3373ce=new _0xd4fd3(_0x2b5554['locale'],_0x286e1e,_0x1117af,{'disableComments':this[_0xa96b('0xa')],'editorConfig':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x2d')),'maxCommentsWhenCollapsed':_0x8a2ab8['get'](_0xa96b('0x6a')),'maxThreadTotalWeight':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x20')),'maxCommentCharsWhenCollapsed':_0x8a2ab8[_0xa96b('0x38')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x248e88(_0x8a2ab8[_0xa96b('0x38')]('locale')),'CommentView':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x6'))[_0xa96b('0x3b')],'CommentsListView':_0x30d8ed,'CommentThreadInputView':_0x2f079a}),_0x3373ce['acceptButton']['on'](_0xa96b('0x39'),()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x3373ce['discardButton']['on']('execute',()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x413d96=_0x410816[_0xa96b('0x9')](this[_0xa96b('0x5d')][_0xa96b('0x12')],_0x3373ce),_0x413d96[_0xa96b('0x2')]('isDirty')['to'](_0x3373ce,_0xa96b('0x2e')),_0x413d96[_0xa96b('0x2')](_0xa96b('0x3f'))['to'](_0x3373ce),_0x413d96[_0xa96b('0x2')](_0xa96b('0x48'))['to'](_0x3373ce,'type',_0x5e8d00=>'suggestion-'+_0x5e8d00),this[_0xa96b('0x50')][_0xa96b('0x7')](_0x286e1e['id'],_0x413d96));const _0x350af8=_0x26ba5b[_0xa96b('0x21')](_0x286e1e[_0xa96b('0x6b')],_0x3373ce),_0x52f445=new _0x2a14b3(_0x2b5554,_0x286e1e,_0x3373ce,_0x350af8),_0x10512d=_0x286e1e[_0xa96b('0xb')]()[_0xa96b('0x28')](_0xe6bc69=>_0xe6bc69[_0xa96b('0x47')]);_0x3373ce[_0xa96b('0x64')]=_0x2b5554['plugins'][_0xa96b('0x38')](_0xa96b('0x43'))[_0xa96b('0x31')][_0xa96b('0x44')](_0x10512d),this[_0xa96b('0x35')][_0xa96b('0x7')](_0x286e1e,_0x52f445),this[_0xa96b('0x4c')]['set'](_0x3373ce,_0x52f445);const _0x260532=_0x410816[_0xa96b('0x58')]({'view':_0x413d96,'target':()=>{const _0x433210=[],_0x3be3ec=_0x286e1e['getAllAdjacentSuggestions']()[_0xa96b('0x28')](_0x1d7982=>_0x1d7982['isInContent']);for(const _0x252d5c of _0x3be3ec)_0x433210[_0xa96b('0xc')](..._0x252d5c['getMarkers']());return _0x51b260(_0x2b5554['editing'],_0x433210);},'type':()=>_0xa96b('0x1d')+_0x52f445['view'][_0xa96b('0x48')]});_0x26ba5b[_0xa96b('0x22')](_0x3373ce,_0x260532),_0x410816[_0xa96b('0x40')](_0x260532),_0x5b8ed0['registerAnnotation'](_0x260532);}['_destroyController'](_0x9759c){const _0x97335a=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x3703fc=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x51')),_0xd9898=this[_0xa96b('0x35')]['get'](_0x9759c),_0x138fb0=_0xd9898[_0xa96b('0x19')],_0x4be608=_0x3703fc[_0xa96b('0x65')](_0x138fb0);_0x97335a[_0xa96b('0x2b')](_0x138fb0),_0x4be608&&_0x3703fc[_0xa96b('0x29')](_0x4be608),this['_suggestionToController'][_0xa96b('0x3c')](_0x9759c),this['_viewToController'][_0xa96b('0x3c')](_0x138fb0),_0xd9898['destroy']();}[_0xa96b('0x54')](_0x51119f){if(!_0x51119f[_0xa96b('0x47')]||!this[_0xa96b('0x35')][_0xa96b('0x3d')](_0x51119f))return;const _0x18a295=this['editor']['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x22a1bc=this[_0xa96b('0x35')]['get'](_0x51119f),_0x297ef8=_0x51119f[_0xa96b('0xb')]();_0x22a1bc[_0xa96b('0x19')][_0xa96b('0x64')]=_0x18a295[_0xa96b('0x31')][_0xa96b('0x44')](_0x297ef8);}[_0xa96b('0x1a')](){for(const _0x295e62 of this[_0xa96b('0x35')][_0xa96b('0x30')]())this['_destroyController'](_0x295e62);for(const _0x981537 of this[_0xa96b('0x50')]['values']())_0x981537['mainView']['destroy']();super[_0xa96b('0x1a')]();}}
23
+ const _0x29d2=['from','_createUIButton','_handleSuggestionControllerDelayed','commandName','filter','suggestionUnloaded','TrackChangesEditing','delete','getJoined','get','model','EditorAnnotations','isInContent','CommentsRepository','plugins','_updateController','head','stopListening','Annotations','mainView','Accept\x20all\x20selected\x20suggestions','some','createAnnotation','push','trackChanges.disableComments','_disableComments','_unbindEditors','requires','getAllAdjacentSuggestions','toMany','CommentsUI','_viewToController','arrowView','change:previous','discardButton','remove','_handleControllerBuffer','_destroyController','destroy','comments.maxThreadTotalWeight','button','buttonView','activeMarkers','isMultiRange','trackChanges','activeAnnotations','_descriptionFactory','CommentView','createCommentThreadController','discardSelectedSuggestions','getByInnerView','suggestionChanged','size','commands','execute','separator','addSourceCollector','getMarkerNames','getSuggestion','acceptAllSuggestions','isEnabled','createAnnotationView','comments','isOn','source','_annotationViews','length','view','type','keys','bind','innerView','value','discardAllSuggestions','values','init','Track\x20changes','set','isDirty','SuggestionThreadView','hasSuggestion','lowest','acceptButton','commentThread','registerAnnotation','_suggestionToController','clear','addComment','comments.maxCommentsWhenCollapsed','suggestionLoaded','editing','locale','acceptSelectedSuggestions','Discard\x20all\x20suggestions','trackChanges.SuggestionThreadView','define','has','getFirstRange','_bindAnnotationToEditors','refreshSelectedViews','_initializeController','actionView','add','focus','_refreshActiveMarkers','descriptionParts','listenTo','config','suggestion-','unbind','pluginName','editor'];(function(_0x1800b1,_0x29d248){const _0x2643e6=function(_0xaa3683){while(--_0xaa3683){_0x1800b1['push'](_0x1800b1['shift']());}};_0x2643e6(++_0x29d248);}(_0x29d2,0xc8));const _0x2643=function(_0x1800b1,_0x29d248){_0x1800b1=_0x1800b1-0x0;let _0x2643e6=_0x29d2[_0x1800b1];return _0x2643e6;};import{Plugin as _0x18ad5a}from'ckeditor5/src/core';import{Collection as _0x1ca296}from'ckeditor5/src/utils';import{Model as _0x68ac08,SplitButtonView as _0x520203,createDropdown as _0xd173e1,addListToDropdown as _0x248f9d}from'ckeditor5/src/ui';import{Users as _0x49f6d4,getDateTimeFormatter as _0x59d59f,getAllMarkersDomElementsSorted as _0x3b2bd5}from'ckeditor5-collaboration/src/collaboration-core';import _0x108011 from'./trackchangesediting';import _0xf5b911 from'./ui/suggestioncontroller';import _0x4b31db from'./ui/view/suggestionthreadview';import{getTranslation as _0x419242}from'./utils/common-translations';import _0x8470c5 from'../theme/icons/track-changes.svg';export default class d extends _0x18ad5a{static get[_0x2643('0x33')](){return[_0x108011,_0x49f6d4,_0x2643('0x25'),_0x2643('0x2a'),_0x2643('0x23')];}static get[_0x2643('0x16')](){return'TrackChangesUI';}constructor(_0x57aa19){super(_0x57aa19),this[_0x2643('0x6d')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x2643('0x3c')]=new Map();const _0x579321=this[_0x2643('0x17')][_0x2643('0x13')];_0x579321['define'](_0x2643('0x6'),_0x4b31db),_0x579321[_0x2643('0x7')](_0x2643('0x30'),!0x1),this[_0x2643('0x31')]=_0x579321['get'](_0x2643('0x30'));}[_0x2643('0x1a')](_0x51b9ad,_0x5e110f){0x0===this[_0x2643('0x3c')][_0x2643('0x4c')]&&setTimeout(()=>{for(const [_0x4ae804,_0x917f64]of this['_handleControllerBuffer']){const _0x4b04d8=this[_0x2643('0x6d')][_0x2643('0x8')](_0x4ae804);_0x4b04d8||_0x917f64?_0x4b04d8&&_0x917f64&&this[_0x2643('0x3d')](_0x4ae804):this['_initializeController'](_0x4ae804);}this['editor'][_0x2643('0x26')][_0x2643('0x21')]('EditorAnnotations')[_0x2643('0xb')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x2643('0x6e')]();},0xa),this['_handleControllerBuffer'][_0x2643('0x65')](_0x51b9ad,_0x5e110f);}[_0x2643('0x63')](){const _0x454386=this[_0x2643('0x17')],_0x1db3ea=_0x454386[_0x2643('0x26')]['get'](_0x2643('0x1e')),_0x38c439=_0x454386[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x2a')),_0x437a0a=_0x454386[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x23')),_0x2615ac=_0x454386['plugins'][_0x2643('0x21')](_0x2643('0x25'));_0x454386['ui']['componentFactory'][_0x2643('0xe')](_0x2643('0x44'),_0x58b597=>this[_0x2643('0x19')](_0x58b597)),_0x437a0a[_0x2643('0x50')](()=>{const _0x49b910=[];for(const [_0x459e94,_0x59c252]of Array[_0x2643('0x18')](this[_0x2643('0x6d')])){const _0x59dcb8=_0x459e94[_0x2643('0x34')](),_0x11fe1b=[];for(const _0x3c16ff of _0x59dcb8){if(!_0x3c16ff[_0x2643('0x24')])continue;if(_0x3c16ff[_0x2643('0x43')]){_0x11fe1b[_0x2643('0x2f')](..._0x3c16ff['getRanges']());continue;}const _0x1a1c20=_0x3c16ff[_0x2643('0x9')]();if(_0x11fe1b[_0x2643('0x5a')]>0x0){const _0x91f0d=_0x11fe1b[0x0][_0x2643('0x20')](_0x1a1c20);if(_0x91f0d){_0x11fe1b[0x0]=_0x91f0d;continue;}}_0x11fe1b[_0x2643('0x2f')](_0x1a1c20);}_0x49b910[_0x2643('0x2f')]([_0x59c252['view'],_0x11fe1b]);}return _0x49b910;}),this[_0x2643('0x12')](_0x1db3ea,_0x2643('0x1'),(_0x4501f2,_0x734e01)=>{this[_0x2643('0x12')](_0x734e01,_0x2643('0x39'),(_0x586b80,_0x46256c,_0x373ef3,_0x367959)=>{_0x734e01[_0x2643('0x24')]&&(null==_0x373ef3?(this[_0x2643('0x27')](_0x367959['head']),this[_0x2643('0x1a')](_0x734e01,!0x1)):(this[_0x2643('0x27')](_0x373ef3['head']),this['_handleSuggestionControllerDelayed'](_0x734e01,!0x0)));}),null===_0x734e01['previous']?this[_0x2643('0x1a')](_0x734e01,!0x1):this[_0x2643('0x27')](_0x734e01[_0x2643('0x28')]);}),this[_0x2643('0x12')](_0x1db3ea,_0x2643('0x1d'),(_0x10c605,_0x40e192,_0x2b96f4)=>{this[_0x2643('0x29')](_0x40e192,_0x2643('0x39')),this[_0x2643('0x3c')][_0x2643('0x1f')](_0x40e192);const _0x43eaef=_0x2b96f4?_0x2b96f4[_0x2643('0x28')]:_0x40e192,_0x575188=this[_0x2643('0x6d')]['get'](_0x43eaef);null!==_0x2b96f4&&this['_updateController'](_0x43eaef),null===_0x2b96f4&&_0x575188&&this['_destroyController'](_0x40e192);}),this[_0x2643('0x12')](_0x1db3ea,_0x2643('0x4b'),(_0x2bddb7,_0x2d653d)=>{this[_0x2643('0x27')](_0x2d653d);}),this[_0x2643('0x12')](_0x38c439,'change:activeAnnotations',()=>{this[_0x2643('0x10')]();}),this[_0x2643('0x12')](_0x2615ac,_0x2643('0x6f'),(_0x53e550,{threadId:_0x1937be,isFromAdapter:_0x20bfa0})=>{if(_0x20bfa0||!_0x1db3ea[_0x2643('0x68')](_0x1937be))return;const _0x8ca5cb=_0x1db3ea[_0x2643('0x52')](_0x1937be);this[_0x2643('0x6d')][_0x2643('0x21')](_0x8ca5cb)[_0x2643('0x5b')]['focus']();},{'priority':_0x2643('0x69')});}[_0x2643('0x10')](){const _0x23c9f7=this[_0x2643('0x17')][_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x2a')),_0x1d3d30=this['editor'][_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x1e')),_0x25fff9=Array[_0x2643('0x18')](_0x23c9f7[_0x2643('0x45')],_0x6caadf=>_0x6caadf[_0x2643('0x5f')])[_0x2643('0x1c')](_0x3a3a73=>this[_0x2643('0x37')][_0x2643('0x8')](_0x3a3a73)),_0x1c0603=[];for(const _0x698ffc of _0x25fff9){const _0x10c410=this[_0x2643('0x37')][_0x2643('0x21')](_0x698ffc)[_0x2643('0x22')][_0x2643('0x34')]();_0x1c0603[_0x2643('0x2f')](..._0x10c410['reduce']((_0x4d5b5c,_0x1b2c9f)=>[..._0x4d5b5c,..._0x1b2c9f[_0x2643('0x51')]()],[]));}_0x1d3d30[_0x2643('0x42')]=_0x1c0603;}[_0x2643('0x19')](_0x34932b){const _0xc8bab9=_0xd173e1(_0x34932b,_0x520203),_0x5ab783=this['editor'][_0x2643('0x4d')]['get'](_0x2643('0x44')),_0x14ed2a=_0x419242(_0x34932b,_0x2643('0x64'));_0xc8bab9[_0x2643('0x41')][_0x2643('0x65')]({'tooltip':_0x14ed2a,'label':_0x14ed2a,'icon':_0x8470c5}),_0xc8bab9['buttonView'][_0x2643('0x5e')]('isOn')['to'](_0x5ab783,'value'),_0xc8bab9['buttonView']['on']('execute',()=>{_0x5ab783[_0x2643('0x4e')](),this['editor'][_0x2643('0x2')][_0x2643('0x5b')]['focus']();});const _0x2c63c0=new _0x1ca296(),_0x126bd5=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x14ed2a,'commandName':_0x2643('0x44')}},{'type':_0x2643('0x4f')},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,'Accept\x20all\x20suggestions'),'commandName':_0x2643('0x53')}},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,_0x2643('0x2c')),'commandName':_0x2643('0x4')}},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,_0x2643('0x5')),'commandName':_0x2643('0x61')}},{'type':_0x2643('0x40'),'model':{'withText':!0x0,'label':_0x419242(_0x34932b,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x2643('0x49')}}];for(const _0xf61daf of _0x126bd5){let _0x479c9b={'type':_0x2643('0x4f')};if(_0xf61daf[_0x2643('0x22')]){const _0x1eb3c5=new _0x68ac08(_0xf61daf[_0x2643('0x22')]),_0x55800c=this[_0x2643('0x17')][_0x2643('0x4d')]['get'](_0x1eb3c5[_0x2643('0x1b')]);_0x1eb3c5[_0x2643('0x5e')](_0x2643('0x57'),_0x2643('0x54'))['to'](_0x55800c,_0x2643('0x60'),_0x2643('0x54')),_0x479c9b={'type':_0xf61daf['type'],'model':_0x1eb3c5};}_0x2c63c0['add'](_0x479c9b);}_0x248f9d(_0xc8bab9,_0x2c63c0);const _0x1ddc6f=_0x126bd5[_0x2643('0x1c')](_0x5d6705=>null!=_0x5d6705[_0x2643('0x22')])['map'](_0x5d0846=>this[_0x2643('0x17')]['commands'][_0x2643('0x21')](_0x5d0846['model'][_0x2643('0x1b')])),_0x55aa8b=_0xc8bab9[_0x2643('0x41')];return _0x55aa8b[_0x2643('0xd')]['unbind'](_0x2643('0x54')),_0x55aa8b[_0x2643('0x38')][_0x2643('0x15')](_0x2643('0x54')),_0x55aa8b[_0x2643('0xd')]['bind']('isEnabled')['to'](_0x5ab783,'isEnabled'),_0x55aa8b[_0x2643('0x38')]['bind'](_0x2643('0x54'))[_0x2643('0x35')](_0x1ddc6f,_0x2643('0x54'),(..._0x3ddafc)=>_0x3ddafc[_0x2643('0x2d')](_0x47846d=>_0x47846d)),_0xc8bab9['on'](_0x2643('0x4e'),_0x38b343=>{this['editor'][_0x2643('0x4e')](_0x38b343[_0x2643('0x58')][_0x2643('0x1b')]),this['editor']['editing'][_0x2643('0x5b')][_0x2643('0xf')]();}),_0xc8bab9;}[_0x2643('0xc')](_0xdf1c3e){const _0x4cca59=this['editor'],_0x33a975=_0x4cca59[_0x2643('0x13')],_0x56bb40=_0x4cca59['plugins'][_0x2643('0x21')](_0x2643('0x2a')),_0x1bd3b0=_0x4cca59[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x25')),_0x31bbfa=_0x4cca59[_0x2643('0x26')]['get'](_0x2643('0x23')),_0x231d90=_0x4cca59['plugins'][_0x2643('0x21')](_0x49f6d4)['me'],_0x1025fe=_0x33a975[_0x2643('0x21')](_0x2643('0x44'))[_0x2643('0x67')],{CommentsListView:_0x542fe6,CommentThreadInputView:_0x4d4c05}=_0x4cca59[_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x36'));let _0x4d9932,_0x7074d4;this[_0x2643('0x59')][_0x2643('0x8')](_0xdf1c3e['id'])?(_0x7074d4=this[_0x2643('0x59')][_0x2643('0x21')](_0xdf1c3e['id']),_0x4d9932=_0x7074d4[_0x2643('0x2b')]):(_0x4d9932=new _0x1025fe(_0x4cca59[_0x2643('0x3')],_0xdf1c3e,_0x231d90,{'disableComments':this[_0x2643('0x31')],'editorConfig':_0x33a975[_0x2643('0x21')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x33a975['get'](_0x2643('0x0')),'maxThreadTotalWeight':_0x33a975[_0x2643('0x21')](_0x2643('0x3f')),'maxCommentCharsWhenCollapsed':_0x33a975[_0x2643('0x21')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59d59f(_0x33a975[_0x2643('0x21')](_0x2643('0x3'))),'CommentView':_0x33a975[_0x2643('0x21')](_0x2643('0x56'))[_0x2643('0x47')],'CommentsListView':_0x542fe6,'CommentThreadInputView':_0x4d4c05}),_0x4d9932[_0x2643('0x6a')]['on'](_0x2643('0x4e'),()=>{_0x4cca59['editing'][_0x2643('0x5b')][_0x2643('0xf')]();}),_0x4d9932[_0x2643('0x3a')]['on'](_0x2643('0x4e'),()=>{_0x4cca59[_0x2643('0x2')][_0x2643('0x5b')][_0x2643('0xf')]();}),_0x7074d4=_0x56bb40[_0x2643('0x55')](this[_0x2643('0x17')][_0x2643('0x3')],_0x4d9932),_0x7074d4[_0x2643('0x5e')](_0x2643('0x66'))['to'](_0x4d9932,_0x2643('0x66')),_0x7074d4['bind']('length')['to'](_0x4d9932),_0x7074d4['bind'](_0x2643('0x5c'))['to'](_0x4d9932,_0x2643('0x5c'),_0x16f6a7=>_0x2643('0x14')+_0x16f6a7),this[_0x2643('0x59')]['set'](_0xdf1c3e['id'],_0x7074d4));const _0x5e7b3a=_0x1bd3b0[_0x2643('0x48')](_0xdf1c3e[_0x2643('0x6b')],_0x4d9932),_0x2f9aa1=new _0xf5b911(_0x4cca59,_0xdf1c3e,_0x4d9932,_0x5e7b3a),_0x44d192=_0xdf1c3e['getAllAdjacentSuggestions']()[_0x2643('0x1c')](_0x4e4df8=>_0x4e4df8[_0x2643('0x24')]);_0x4d9932[_0x2643('0x11')]=_0x4cca59[_0x2643('0x26')]['get'](_0x2643('0x1e'))['_descriptionFactory']['getDescriptions'](_0x44d192),this['_suggestionToController']['set'](_0xdf1c3e,_0x2f9aa1),this[_0x2643('0x37')][_0x2643('0x65')](_0x4d9932,_0x2f9aa1);const _0xed772d=_0x56bb40[_0x2643('0x2e')]({'view':_0x7074d4,'target':()=>{const _0x2899b3=[],_0x1f8035=_0xdf1c3e[_0x2643('0x34')]()['filter'](_0x23761c=>_0x23761c['isInContent']);for(const _0x488056 of _0x1f8035)_0x2899b3['push'](..._0x488056['getMarkers']());return _0x3b2bd5(_0x4cca59[_0x2643('0x2')],_0x2899b3);},'type':()=>_0x2643('0x14')+_0x2f9aa1[_0x2643('0x5b')][_0x2643('0x5c')]});_0x1bd3b0[_0x2643('0xa')](_0x4d9932,_0xed772d),_0x56bb40[_0x2643('0xe')](_0xed772d),_0x31bbfa[_0x2643('0x6c')](_0xed772d);}[_0x2643('0x3d')](_0x2637c7){const _0x3ecd63=this[_0x2643('0x17')]['plugins'][_0x2643('0x21')](_0x2643('0x25')),_0x49960b=this[_0x2643('0x17')][_0x2643('0x26')][_0x2643('0x21')](_0x2643('0x2a')),_0x24f3fb=this[_0x2643('0x6d')][_0x2643('0x21')](_0x2637c7),_0x4a757c=_0x24f3fb['view'],_0x131c3c=_0x49960b[_0x2643('0x4a')](_0x4a757c);_0x3ecd63[_0x2643('0x32')](_0x4a757c),_0x131c3c&&_0x49960b[_0x2643('0x3b')](_0x131c3c),this[_0x2643('0x6d')][_0x2643('0x1f')](_0x2637c7),this[_0x2643('0x37')][_0x2643('0x1f')](_0x4a757c),_0x24f3fb[_0x2643('0x3e')]();}[_0x2643('0x27')](_0x3b32c7){if(!_0x3b32c7[_0x2643('0x24')]||!this[_0x2643('0x6d')]['has'](_0x3b32c7))return;const _0x1c8ed9=this[_0x2643('0x17')][_0x2643('0x26')][_0x2643('0x21')]('TrackChangesEditing'),_0x1836f3=this['_suggestionToController']['get'](_0x3b32c7),_0x2663f0=_0x3b32c7['getAllAdjacentSuggestions']();_0x1836f3[_0x2643('0x5b')][_0x2643('0x11')]=_0x1c8ed9[_0x2643('0x46')]['getDescriptions'](_0x2663f0);}[_0x2643('0x3e')](){for(const _0xa4d5e1 of this[_0x2643('0x6d')][_0x2643('0x5d')]())this[_0x2643('0x3d')](_0xa4d5e1);for(const _0x519ac7 of this[_0x2643('0x59')][_0x2643('0x62')]())_0x519ac7[_0x2643('0x2b')][_0x2643('0x3e')]();super[_0x2643('0x3e')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4edb=['commentThreadController','listenTo','isEnabled','plugins','getRanges','execute','get','_acceptCommand','commands','model','stopListening','bind','_discardCommand','discardSuggestion','add','change:isDirty','_setPendingAction','canDiscard','acceptSuggestion','view','_removePendingAction','canAccept','_editor','PENDING_ACTION_SUGGESTION','_pendingAction','isDirty','PendingActions','canEditAt','unbind','destroy'];(function(_0x287669,_0x4edbff){const _0xd67789=function(_0x34e55d){while(--_0x34e55d){_0x287669['push'](_0x287669['shift']());}};_0xd67789(++_0x4edbff);}(_0x4edb,0x10e));const _0xd677=function(_0x287669,_0x4edbff){_0x287669=_0x287669-0x0;let _0xd67789=_0x4edb[_0x287669];return _0xd67789;};import{ObservableMixin as _0x15476d}from'ckeditor5/src/utils';import{getTranslation as _0x4cfe5d}from'../utils/common-translations';export default class Gt extends _0x15476d(){constructor(_0x137dfa,_0x2244af,_0x31fa3a,_0x376740){super(),this[_0xd677('0x9')]=_0x2244af,this[_0xd677('0x13')]=_0x31fa3a,this[_0xd677('0x0')]=_0x376740,this[_0xd677('0x16')]=_0x137dfa,this[_0xd677('0x7')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0x12')),this[_0xd677('0xc')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0xd')),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x2'))['to'](this['_acceptCommand'],this[_0xd677('0xc')],(_0x28a790,_0x1fe98f)=>_0x28a790||_0x1fe98f),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x15'))['to'](this[_0xd677('0x7')],_0xd677('0x2'),_0x285951=>_0x285951&&this[_0xd677('0x16')][_0xd677('0x9')]['canEditAt'](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x13')][_0xd677('0xb')]('canDiscard')['to'](this[_0xd677('0xc')],_0xd677('0x2'),_0x3d173b=>_0x3d173b&&this[_0xd677('0x16')][_0xd677('0x9')][_0xd677('0x1b')](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x18')]=null,_0x31fa3a['isDirty']&&this[_0xd677('0x10')](),this['listenTo'](_0x31fa3a,_0xd677('0x12'),()=>this[_0xd677('0x12')]()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xd'),()=>this['discardSuggestion']()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xf'),()=>{_0x31fa3a[_0xd677('0x19')]?this['_setPendingAction']():this[_0xd677('0x14')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0xd')](){this[_0xd677('0xc')][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0x1d')](){this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x2')),this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x15')),this['view'][_0xd677('0x1c')](_0xd677('0x11')),this[_0xd677('0xa')](),this[_0xd677('0x0')]['destroy'](),this['_pendingAction']&&this[_0xd677('0x14')]();}[_0xd677('0x10')](){const _0x23846f=_0x4cfe5d(this[_0xd677('0x16')]['locale'],_0xd677('0x17'));this[_0xd677('0x18')]=this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))[_0xd677('0xe')](_0x23846f);}[_0xd677('0x14')](){null!==this[_0xd677('0x18')]&&this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))['remove'](this[_0xd677('0x18')]),this[_0xd677('0x18')]=null;}}
23
+ const _0x2b62=['_setPendingAction','remove','change:isDirty','isEnabled','_editor','canDiscard','model','_pendingAction','_acceptCommand','unbind','stopListening','bind','execute','_discardCommand','view','PENDING_ACTION_SUGGESTION','_removePendingAction','commands','destroy','plugins','get','commentThreadController','canEditAt','PendingActions','acceptSuggestion','discardSuggestion','isDirty','getRanges','locale','listenTo'];(function(_0x4b022d,_0x2b62d7){const _0x4b5431=function(_0xe4f258){while(--_0xe4f258){_0x4b022d['push'](_0x4b022d['shift']());}};_0x4b5431(++_0x2b62d7);}(_0x2b62,0x19f));const _0x4b54=function(_0x4b022d,_0x2b62d7){_0x4b022d=_0x4b022d-0x0;let _0x4b5431=_0x2b62[_0x4b022d];return _0x4b5431;};import{ObservableMixin as _0x5243ab}from'ckeditor5/src/utils';import{getTranslation as _0x316439}from'../utils/common-translations';export default class Gt extends _0x5243ab(){constructor(_0xd8a1b3,_0x42064d,_0x469436,_0x2849d1){super(),this[_0x4b54('0xb')]=_0x42064d,this[_0x4b54('0x13')]=_0x469436,this[_0x4b54('0x1a')]=_0x2849d1,this[_0x4b54('0x9')]=_0xd8a1b3,this['_acceptCommand']=_0xd8a1b3['commands'][_0x4b54('0x19')](_0x4b54('0x1d')),this[_0x4b54('0x12')]=_0xd8a1b3[_0x4b54('0x16')]['get']('discardSuggestion'),this['view'][_0x4b54('0x10')]('isEnabled')['to'](this[_0x4b54('0xd')],this[_0x4b54('0x12')],(_0x2acc56,_0x4c5635)=>_0x2acc56||_0x4c5635),this[_0x4b54('0x13')]['bind']('canAccept')['to'](this['_acceptCommand'],_0x4b54('0x8'),_0x5878f1=>_0x5878f1&&this[_0x4b54('0x9')]['model'][_0x4b54('0x1b')](_0x42064d[_0x4b54('0x2')]())),this[_0x4b54('0x13')][_0x4b54('0x10')](_0x4b54('0xa'))['to'](this[_0x4b54('0x12')],_0x4b54('0x8'),_0xd96cab=>_0xd96cab&&this[_0x4b54('0x9')][_0x4b54('0xb')][_0x4b54('0x1b')](_0x42064d[_0x4b54('0x2')]())),this[_0x4b54('0xc')]=null,_0x469436['isDirty']&&this[_0x4b54('0x5')](),this[_0x4b54('0x4')](_0x469436,_0x4b54('0x1d'),()=>this[_0x4b54('0x1d')]()),this['listenTo'](_0x469436,'discardSuggestion',()=>this[_0x4b54('0x0')]()),this['listenTo'](_0x469436,_0x4b54('0x7'),()=>{_0x469436[_0x4b54('0x1')]?this[_0x4b54('0x5')]():this['_removePendingAction']();});}['acceptSuggestion'](){this[_0x4b54('0xd')][_0x4b54('0x11')](this['model']['id']);}[_0x4b54('0x0')](){this[_0x4b54('0x12')][_0x4b54('0x11')](this[_0x4b54('0xb')]['id']);}[_0x4b54('0x17')](){this[_0x4b54('0x13')][_0x4b54('0xe')](_0x4b54('0x8')),this[_0x4b54('0x13')]['unbind']('canAccept'),this[_0x4b54('0x13')]['unbind'](_0x4b54('0xa')),this[_0x4b54('0xf')](),this['commentThreadController']['destroy'](),this[_0x4b54('0xc')]&&this['_removePendingAction']();}[_0x4b54('0x5')](){const _0x29c267=_0x316439(this['_editor'][_0x4b54('0x3')],_0x4b54('0x14'));this[_0x4b54('0xc')]=this[_0x4b54('0x9')][_0x4b54('0x18')][_0x4b54('0x19')](_0x4b54('0x1c'))['add'](_0x29c267);}[_0x4b54('0x15')](){null!==this[_0x4b54('0xc')]&&this[_0x4b54('0x9')][_0x4b54('0x18')][_0x4b54('0x19')](_0x4b54('0x1c'))[_0x4b54('0x6')](this[_0x4b54('0xc')]),this[_0x4b54('0xc')]=null;}}