@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230904.0 → 0.0.0-nightly-20230906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfc38=['getCustomProperty','dataReady','authoredAt','nodeAfter','ck-suggestion-marker','accept','markInlineFormat','formatBlock','getChanges','toViewElement','acceptSelectedSuggestions','dataDowncast','markerToData','conversion','suggestion-type','_mergeNestedSuggestions','stop','selection','chain','discardAllSuggestions','isTouching','getRanges','join','suggestionChanged','reconvertMarker','isEqual','isAfter','widget','_createSuggestion','showSuggestionHighlights','consumable','previous','addSuggestionData','isDocumentOperation','unbind','open','ck-suggestion-marker-formatBlock','isIntersectingWithRange','_editor','createSelection','markMultiRangeDeletion','containsItem','delete','markerNameToElements','never','deletion:','author','ck-suggestion-marker--active','document','fire','track-changes-adapter-missing-getsuggestion','low','collaboration.channelId','insertion:','formatBlock:join','_customCallbacks','toJSON','markers','formatBlock:discard','enableReadOnlyMode','_cutOutSuggestionMarker','deleteContent','createRange','formatInline:chain','markInsertion','unbindElementFromMarkerName','registerCustomCallback','batch','fetchCommentThread','mapper','$graveyard','trackChanges','removeClass','CommentsRepository','_rangeIsInLocalUserInsertion','upcast','howMany','isBefore','then','removeComment','_joinSuggestions','suggestion:','pluginName','forward','hasCommentThread','removed','_addThreadToSuggestion','isNextTo','getUser','targetPosition','getAllAdjacentSuggestions','commands','always','elementToElement','markMultiRangeInsertion','setSelection','@external','containsPosition','setTo','_commentsRepository','_splitMarkerName','track-changes-adapter-already-set','getFirstRange','insertion:accept','change:data','activeMarkers','splitPosition','_suggestions','suggestionUnloaded','attributes','adapter','isLocal','writer','after','item','_setSuggestionData','authorName','createRangeIn','insertion:chain','data','insertion','enableCommand','trackChanges.mergeNestedSuggestions','isUndo','markerToHighlight','tablePasteChainId','accepted','track-changes-command-not-found','init','_isDataLoaded','discard','move','map','moveTargetPosition','_updateSuggestionData','containsRangeInObject','execute','deletion:chain','getCommentThread','getWalker','PendingActions','getChangedMarkers','root','_breakSuggestionMarker','commandName','suggestion','addHighlight','notReady','rethrowUnexpectedError','formatInline:','options','resolve','change:activeMarkers','backward','ready','push','add','splice','_isForcedDefaultExecutionBlock','acceptSuggestion','highest','trackChangesCommand','getNearestSelectionRange','isObject','commentThread','_getAuthorFromId','addRange','deletion:join','isSelectable','updateSuggestion','markerReady','markBlockFormat','Users','_getExternalAuthor','name','refresh','_trackFormatChanges','has','_addSuggestionMarker','getLastMatchingPosition','formatBlock:','setAttribute','change:_saved','multi','model','_setSuggestionRange','_adapter','deletion','substr','PENDING_ACTION_SUGGESTION','group','$marker','marker-count','_joinWithAdjacentSuggestions','schema','nodeBefore','isRemovable','TrackChangesEditing','parent','values','dataToMarker','editor','range','_suggestionState','_handleNewSuggestionMarker','editingDowncast','formatInline:join','discardSuggestion','catch','isOwn','hasComments','formatBlock:accept','updateMarker','includes','acceptAllSuggestions','every','_suggestionFactory','_removeSuggestion','start','for','filter','getSuggestions','getIntersection','addMarker:suggestion:formatBlock','formatGroupId','external:','removeMarker','addMarker','getFirstMarker','split','assign','_findSuggestions','createPositionBefore','plugins','get','containerElement','length','getShiftedBy','forceDefaultExecution','deletion:discard','isAtEnd','clear','position','skipNestingCheck','define','oldRange','data-suggestion','isArray','deletion:accept','stopListening','remove','change','addCommentThread','formatBlock:chain','getAncestors','addSuggestion','track-changes-user-not-found','rootName','lowest','insertion:join','ck-suggestion-marker-','some','isBlock','_saved','requires','sort','value','isInContent','insertContent','type','creator','differ','getMultiRangeId','getMarkers','_refreshSuggestionsChain','hasSuggestion','elementStart','formatInline','_getSuggestionData','from','subType','locale','high','buildSuggestion','_defaultCallbacks','elementEnd','fromCharCode','normal','$textProxy','markerName','newRange','end','_model','next','config','getSuggestion','listenTo','isAtStart','isInsideObject','createPositionAt','discardSelectedSuggestions','insertion:discard','getDifference','element','isLimit','_checkSuggestionCorrectness','bindElementToMarker','containsRange','multipleBlocks','set','trackChanges.trackFormatChanges','track-changes-suggestion-data-mismatch','detach','suggestionLoaded','getAttribute','markDeletion','removeAttribute','enqueueChange','addUser','isMultiRange','getSuggestionCallback','createdAt','removeMarkers','addMarkerName','_registerDefaultCallbacks','isCollapsed','head','consume'];(function(_0x5e2282,_0xfc3873){const _0x4bfbf7=function(_0x39894d){while(--_0x39894d){_0x5e2282['push'](_0x5e2282['shift']());}};_0x4bfbf7(++_0xfc3873);}(_0xfc38,0x1ef));const _0x4bfb=function(_0x5e2282,_0xfc3873){_0x5e2282=_0x5e2282-0x0;let _0x4bfbf7=_0xfc38[_0x5e2282];return _0x4bfbf7;};import{Plugin as _0x404131,PendingActions as _0x42b687}from'ckeditor5/src/core';import{LiveRange as _0x3b509a}from'ckeditor5/src/engine';import{CKEditorError as _0x5cc285,uid as _0x405b2a,priorities as _0x2a39a3,logWarning as _0x11be23}from'ckeditor5/src/utils';import{toWidget as _0x55bee1}from'ckeditor5/src/widget';import{Users as _0x563e41,hashObject as _0x5225a2}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ebdeb from'./commands/trackchangescommand';import _0x42e371 from'./commands/acceptsuggestioncommand';import _0x2ec97c from'./commands/discardsuggestioncommand';import _0x107841 from'./commands/executeonallsuggestionscommand';import _0x5acbbe from'./commands/executeonselectedsuggestionscommand';import _0x128731 from'./suggestion';import _0x4708e4 from'./suggestiondescriptionfactory';import _0x5c7915 from'./integrations/alignment';import _0x40b8cd from'./integrations/basicstyles';import _0x364dcc from'./integrations/blockquote';import _0x529637 from'./integrations/ckbox';import _0x4e2484 from'./integrations/codeblock';import _0x87ad7e from'./integrations/comments';import _0x31c8eb from'./integrations/deletecommand';import _0x3f1dff from'./integrations/documentlist';import _0x46a59d from'./integrations/entercommand';import _0x2ccef8 from'./integrations/findandreplace';import _0x39ee0a from'./integrations/font';import _0x1c20d5 from'./integrations/formatpainter';import _0x5127bf from'./integrations/heading';import _0x3dc020 from'./integrations/highlight';import _0x54df0f from'./integrations/horizontalline';import _0x5e2bdd from'./integrations/htmlembed';import _0x333615 from'./integrations/image';import _0x24648d from'./integrations/imagereplace';import _0x177ed7 from'./integrations/importword';import _0x330c1e from'./integrations/indent';import _0x1bb5d4 from'./integrations/inputcommand';import _0x1ddc0d from'./integrations/link';import _0x458e37 from'./integrations/list';import _0x2c08cb from'./integrations/listproperties';import _0x283571 from'./integrations/mediaembed';import _0x363e29 from'./integrations/mention';import _0x3f8abe from'./integrations/pagebreak';import _0x134593 from'./integrations/paragraph';import _0x387102 from'./integrations/removeformat';import _0x472109 from'./integrations/restrictededitingmode';import _0x283105 from'./integrations/shiftentercommand';import _0x141d53 from'./integrations/standardeditingmode';import _0x28d3b5 from'./integrations/style';import _0xed6974 from'./integrations/table';import _0x1a1655 from'./integrations/tablemergesplit';import _0x4365b4 from'./integrations/tableheadings';import _0x32d6bf from'./integrations/tableclipboard';import _0x457e55 from'./integrations/tablecolumnresize';import _0x38e658 from'./integrations/template';import _0x3778ac from'./integrations/tableofcontents';import _0x43560d from'./integrations/title';import _0x16d137 from'./integrations/undo';import{getTranslation as _0x41814a}from'./utils/common-translations';import _0x3d3407 from'./integrations/tablecaption';import _0x58b8ba from'./integrations/documentlistproperties';import _0xabb38b from'./integrations/tableproperties';import{isEqual as _0x2821ce}from'lodash-es';export default class p extends _0x404131{static get[_0x4bfb('0x61')](){return[_0x4bfb('0xea'),_0x563e41,_0x42b687,_0x5c7915,_0x40b8cd,_0x364dcc,_0x529637,_0x4e2484,_0x87ad7e,_0x31c8eb,_0x3f1dff,_0x58b8ba,_0x46a59d,_0x2ccef8,_0x39ee0a,_0x1c20d5,_0x5127bf,_0x3dc020,_0x54df0f,_0x5e2bdd,_0x333615,_0x24648d,_0x177ed7,_0x330c1e,_0x1bb5d4,_0x1ddc0d,_0x458e37,_0x2c08cb,_0x283571,_0x363e29,_0x3f8abe,_0x134593,_0x387102,_0x472109,_0x283105,_0x141d53,_0x28d3b5,_0xed6974,_0x1a1655,_0x4365b4,_0x3d3407,_0x32d6bf,_0x457e55,_0x3778ac,_0xabb38b,_0x38e658,_0x43560d,_0x16d137];}static get[_0x4bfb('0xf3')](){return _0x4bfb('0x1e');}constructor(_0x340e8a){function _0x195aab(_0x54161d){return _0x54161d[_0x4bfb('0x125')](_0x2d5926=>String[_0x4bfb('0x77')](_0x2d5926))['join']('');}super(_0x340e8a),this[_0x4bfb('0x8e')](_0x4bfb('0x10a'),[]),this['on'](_0x4bfb('0x139'),(_0x3c5dae,_0x96341f,_0x248d2f,_0x70594f)=>{this[_0x4bfb('0x7d')]['change'](()=>{for(const _0x4f9963 of[..._0x70594f,..._0x248d2f])this[_0x4bfb('0x7d')][_0x4bfb('0xda')]['has'](_0x4f9963)&&_0x340e8a['editing'][_0x4bfb('0xb9')](_0x4f9963);});}),this['_descriptionFactory']=new _0x4708e4(this['editor'][_0x4bfb('0x11')][_0x4bfb('0x1b')],this[_0x4bfb('0x22')][_0x4bfb('0x72')]),this[_0x4bfb('0x13')]=null,this[_0x4bfb('0x31')]=new Dt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x340e8a['plugins'][_0x4bfb('0x43')](_0x4bfb('0xea')),this['_enabledCommands']=new Set(),this['_model']=this[_0x4bfb('0x22')][_0x4bfb('0x11')],this[_0x4bfb('0x24')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x340e8a[_0x4bfb('0x7f')][_0x4bfb('0x4d')](_0x4bfb('0x8f'),'default'),this['_trackFormatChanges']=_0x340e8a[_0x4bfb('0x7f')]['get']('trackChanges.trackFormatChanges'),_0x340e8a['config']['define'](_0x4bfb('0x11b'),!0x0),this[_0x4bfb('0xb0')]=_0x340e8a[_0x4bfb('0x7f')][_0x4bfb('0x43')](_0x4bfb('0x11b')),this[_0x4bfb('0x142')]=new _0x5ebdeb(_0x340e8a,this['_enabledCommands']),this[_0x195aab([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x195aab([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x38]);}[_0x4bfb('0x121')](){const _0xcb326a=this['editor'];_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')]('editingDowncast')[_0x4bfb('0x11d')]({'model':_0x4bfb('0x132'),'view':_0x16888f=>{const {id:_0x8b0728,type:_0x3697e4}=this[_0x4bfb('0x105')](_0x16888f[_0x4bfb('0x7a')]),_0x58d9f6=[_0x4bfb('0xa5'),_0x4bfb('0x5d')+_0x3697e4];let _0xdd8cdf=0xbb8;return this[_0x4bfb('0x10a')][_0x4bfb('0x2e')](_0x16888f[_0x4bfb('0x7a')])&&(_0x58d9f6[_0x4bfb('0x13c')](_0x4bfb('0xd0')),_0xdd8cdf=0xbc2),_0x4bfb('0x14')==_0x3697e4&&(_0xdd8cdf+=0x5),{'classes':_0x58d9f6,'attributes':{'data-suggestion':_0x8b0728},'priority':_0xdd8cdf};}}),_0xcb326a['conversion'][_0x4bfb('0x34')]('dataDowncast')[_0x4bfb('0x13d')](_0x436733=>{_0x436733['on']('addMarker:suggestion',(_0x1c5258,_0x4bcb98,_0x42859c)=>{if(!_0x42859c[_0x4bfb('0x137')][_0x4bfb('0xbe')])return;const _0x594ba7=_0x4bcb98['item'];if(!_0x594ba7)return;const _0x5809c1=_0x42859c[_0x4bfb('0xe6')]['toViewElement'](_0x594ba7);_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')]['isObject'](_0x594ba7)&&_0x5809c1&&!_0x5809c1['getCustomProperty'](_0x4bfb('0xbc'))&&_0x5809c1['is'](_0x4bfb('0x44'))&&_0x55bee1(_0x5809c1,_0x42859c['writer']);},{'priority':_0x4bfb('0x73')});}),_0xcb326a[_0x4bfb('0xae')]['for'](_0x4bfb('0xac'))[_0x4bfb('0x11d')]({'model':_0x4bfb('0x132'),'view':(_0x320b35,_0x62035b)=>{if(!_0x62035b['options'][_0x4bfb('0xbe')])return null;const {type:_0x392dfb}=this[_0x4bfb('0x105')](_0x320b35[_0x4bfb('0x7a')]);return{'classes':[_0x4bfb('0xa5'),_0x4bfb('0x5d')+_0x392dfb],'priority':0xbb8};}});const _0x181ae6=({showActiveMarkers:_0x316052=!0x0}={})=>(_0x41736b,_0x167aef,_0x4aff90)=>{if(!_0x167aef[_0x4bfb('0x113')])return;if(_0x167aef[_0x4bfb('0x113')]['is'](_0x4bfb('0xb2')))return void _0x4aff90[_0x4bfb('0xbf')][_0x4bfb('0xa0')](_0x167aef['item'],_0x41736b[_0x4bfb('0x7')]);const _0x117737=_0x4aff90[_0x4bfb('0xe6')][_0x4bfb('0xaa')](_0x167aef[_0x4bfb('0x113')]);if(!(_0x167aef['item']['is'](_0x4bfb('0x88'))&&_0xcb326a['model'][_0x4bfb('0x1b')][_0x4bfb('0x5f')](_0x167aef[_0x4bfb('0x113')])&&!_0x117737[_0x4bfb('0xa1')]('addHighlight')))return;const {id:_0x75c55b}=this[_0x4bfb('0x105')](_0x167aef[_0x4bfb('0x7a')]);_0x4aff90['writer']['addClass']([_0x4bfb('0xa5'),'ck-suggestion-marker-formatBlock'],_0x117737),_0x4aff90[_0x4bfb('0x111')][_0x4bfb('0xe')](_0x4bfb('0x4f'),_0x75c55b,_0x117737),_0x4aff90['mapper'][_0x4bfb('0x8b')](_0x117737,_0x167aef[_0x4bfb('0x7a')]),_0x316052&&(this[_0x4bfb('0x10a')][_0x4bfb('0x2e')](_0x167aef[_0x4bfb('0x7a')])?_0x4aff90[_0x4bfb('0x111')]['addClass'](_0x4bfb('0xd0'),_0x117737):_0x4aff90[_0x4bfb('0x111')]['removeClass'](_0x4bfb('0xd0'),_0x117737));for(const _0x35585b of _0xcb326a['model'][_0x4bfb('0x116')](_0x167aef[_0x4bfb('0x113')])['getItems']())_0x4aff90[_0x4bfb('0xbf')]['consume'](_0x35585b,_0x41736b[_0x4bfb('0x7')]);_0x4aff90['consumable'][_0x4bfb('0xa0')](_0x167aef['item'],_0x41736b['name']);};_0xcb326a[_0x4bfb('0xae')]['for']('dataDowncast')[_0x4bfb('0x13d')](_0x339c2d=>{_0x339c2d['on']('addMarker:suggestion:formatBlock',(_0x2604be,_0x36ff13,_0x9bc34e)=>{_0x9bc34e[_0x4bfb('0x137')][_0x4bfb('0xbe')]&&_0x181ae6({'showActiveMarkers':!0x1})(_0x2604be,_0x36ff13,_0x9bc34e);},{'priority':_0x4bfb('0x141')});}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')](_0x4bfb('0xac'))[_0x4bfb('0xad')]({'model':_0x4bfb('0x132'),'view':(_0x4db258,_0x4f3958)=>_0x4f3958[_0x4bfb('0x137')][_0x4bfb('0xbe')]?null:{'group':'suggestion','name':_0x4db258[_0x4bfb('0x15')](0xb)}}),_0xcb326a['conversion']['for'](_0x4bfb('0xec'))[_0x4bfb('0xfe')]({'view':{'name':_0x4bfb('0x132'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41898c,{writer:_0x274d1a})=>{let _0x55b37f=_0x4bfb('0xf2')+_0x41898c['getAttribute'](_0x4bfb('0xaf'))+':'+_0x41898c[_0x4bfb('0x93')]('id');return _0x41898c[_0x4bfb('0x93')](_0x4bfb('0x19'))&&(_0x55b37f+=':'+_0x41898c['getAttribute'](_0x4bfb('0x19'))),_0x274d1a['createElement'](_0x4bfb('0x18'),{'data-name':_0x55b37f});}}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')](_0x4bfb('0xec'))[_0x4bfb('0x21')]({'view':_0x4bfb('0x132')}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')]('editingDowncast')[_0x4bfb('0x13d')](_0x3a139c=>{_0x3a139c['on'](_0x4bfb('0x38'),_0x181ae6(),{'priority':_0x4bfb('0x73')});}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')](_0x4bfb('0x26'))[_0x4bfb('0x13d')](_0x5f4f6b=>{_0x5f4f6b['on']('removeMarker:suggestion:formatBlock',(_0x4f807c,_0x80dff,_0x3e4790)=>{const _0xe5aa01=_0x3e4790[_0x4bfb('0xe6')][_0x4bfb('0xcc')](_0x80dff['markerName']);if(_0xe5aa01)for(const _0x1e805a of _0xe5aa01)_0x1e805a[_0x4bfb('0xa1')](_0x4bfb('0x133'))||(_0x3e4790[_0x4bfb('0x111')][_0x4bfb('0xe9')]([_0x4bfb('0xa5'),_0x4bfb('0xc5'),_0x4bfb('0xd0')],_0x1e805a),_0x3e4790[_0x4bfb('0x111')][_0x4bfb('0x95')]('data-suggestion',_0x1e805a),_0x3e4790['mapper'][_0x4bfb('0xe2')](_0x1e805a,_0x80dff['markerName']));},{'priority':_0x4bfb('0x73')});}),_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')]['registerPostFixer'](_0x48efab=>{let _0x30153d=!0x1;const _0x1932bf=Array['from'](_0xcb326a['model'][_0x4bfb('0xd1')][_0x4bfb('0x68')][_0x4bfb('0x12e')]()),_0x14d87e=new Set();for(const {name:_0x336bfa,data:_0x4ff14c}of _0x1932bf){const {group:_0x1f6af0,type:_0x5f10dd,id:_0x50182f}=this[_0x4bfb('0x105')](_0x336bfa);if(_0x4bfb('0x132')!==_0x1f6af0)continue;const _0x21fb77=this['_suggestions']['get'](_0x50182f);if(null!=_0x4ff14c[_0x4bfb('0x7b')]){_0x4bfb('0x6e')==_0x5f10dd&&(_0x30153d=_0x30153d||Mt(_0x4ff14c[_0x4bfb('0x7b')],_0x336bfa,_0x48efab,_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')]));if(_0x4ff14c['newRange'][_0x4bfb('0x9e')]||_0x4bfb('0xe7')==_0x4ff14c[_0x4bfb('0x7b')][_0x4bfb('0x12f')][_0x4bfb('0x5a')]||_0x4bfb('0xa8')==_0x5f10dd&&!Nt(_0x4ff14c[_0x4bfb('0x7b')])||_0x4bfb('0x14')==_0x5f10dd&&!(!_t(_0xd6dc2b=_0x4ff14c[_0x4bfb('0x7b')])&&!function(_0x30a94f){return _0x30a94f[_0x4bfb('0x33')][_0x4bfb('0x1f')]==_0x30a94f[_0x4bfb('0x7c')][_0x4bfb('0x1c')]&&_0x30a94f['start'][_0x4bfb('0x49')];}(_0xd6dc2b)))_0x48efab[_0x4bfb('0x3b')](_0x336bfa),_0x30153d=!0x0;else{if(!_0x21fb77||!_0x21fb77[_0x4bfb('0x64')])continue;_0x14d87e['add'](_0x21fb77);}}}var _0xd6dc2b;return _0x14d87e['size']>0x0&&(_0x30153d=!!this[_0x4bfb('0x1a')](_0x14d87e)||_0x30153d),_0x30153d;}),_0xcb326a['model'][_0x4bfb('0xd1')]['registerPostFixer'](_0x571394=>{let _0x69f5fd=!0x1;for(const _0x3bf8b4 of _0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')][_0x4bfb('0x68')][_0x4bfb('0xa9')]()){if('insert'!=_0x3bf8b4[_0x4bfb('0x66')])continue;const _0x372e26=_0x3bf8b4[_0x4bfb('0x4b')][_0x4bfb('0x46')](_0x3bf8b4['length']);if(_0x372e26[_0x4bfb('0x49')])for(const _0xc3e676 of this[_0x4bfb('0x10c')][_0x4bfb('0x20')]()){if(_0xc3e676[_0x4bfb('0x98')]||!_0xc3e676['isInContent'])continue;if('formatBlock'!=_0xc3e676['type'])continue;const _0x1f5026=_0xc3e676[_0x4bfb('0x107')]();if(_0x1f5026['start']['parent']!=_0x1f5026[_0x4bfb('0x7c')][_0x4bfb('0x1f')]&&_0x1f5026[_0x4bfb('0x7c')]['isEqual'](_0x3bf8b4[_0x4bfb('0x4b')])){const _0x17de39=_0xcb326a['model']['createRange'](_0x1f5026[_0x4bfb('0x33')],_0x372e26);_0x571394[_0x4bfb('0x2d')](_0xc3e676[_0x4bfb('0x3d')](),{'range':_0x17de39}),_0x69f5fd=!0x0;}}}return _0x69f5fd;}),_0xcb326a[_0x4bfb('0x11')]['markers']['on']('update:suggestion',(_0x52eb64,_0x553ee6,_0x23732d)=>{if(null==_0x23732d){const {id:_0x37e79e}=this[_0x4bfb('0x105')](_0x553ee6[_0x4bfb('0x7')]),_0x51b663=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x37e79e);_0x51b663&&_0x51b663[_0x4bfb('0x9c')](_0x553ee6[_0x4bfb('0x7')]);}}),_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')]['on'](_0x4bfb('0x109'),()=>{const _0x494c75=Array[_0x4bfb('0x70')](_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')]['differ'][_0x4bfb('0x12e')]())[_0x4bfb('0x35')](_0x3933a3=>_0x4bfb('0x132')===this['_splitMarkerName'](_0x3933a3[_0x4bfb('0x7')])[_0x4bfb('0x17')]);if(0x0===_0x494c75[_0x4bfb('0x45')])return;_0x494c75[_0x4bfb('0x62')]((_0xa81e5c,_0x14ef52)=>{const _0x23c9e6=_0xa81e5c[_0x4bfb('0x118')]['oldRange'],_0x47afa1=_0x14ef52[_0x4bfb('0x118')][_0x4bfb('0x4e')];return null===_0x23c9e6&&null===_0x47afa1?0x0:null===_0x23c9e6&&null!==_0x47afa1?-0x1:null!==_0x23c9e6&&null===_0x47afa1?0x1:_0x23c9e6[_0x4bfb('0x33')]['isBefore'](_0x47afa1[_0x4bfb('0x33')])?-0x1:0x1;});const _0x14af78=new Set(),_0x336b8d=new Set();for(const {name:_0x3e6980,data:_0x47931a}of _0x494c75){const {id:_0x3250b6}=this[_0x4bfb('0x105')](_0x3e6980);if(null===_0x47931a['oldRange']){const _0x2f857e=this[_0x4bfb('0x25')](_0x3e6980);_0x336b8d['add'](_0x2f857e);}else{const _0x485402=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x3250b6);null!==_0x47931a[_0x4bfb('0x7b')]||_0x485402['isInContent']?(_0x14af78[_0x4bfb('0x13d')](_0x485402[_0x4bfb('0x9f')]),_0x336b8d[_0x4bfb('0x13d')](_0x485402)):this[_0x4bfb('0x32')](_0x485402);}}_0x336b8d['size']>0x0&&this[_0x4bfb('0x6b')](_0x336b8d);for(const _0x56707d of _0x14af78)this[_0x4bfb('0xd2')](_0x4bfb('0xb8'),_0x56707d);}),_0xcb326a[_0x4bfb('0x11')]['on']('applyOperation',(_0x538397,_0x5f1b77)=>{const _0x5189da=_0x5f1b77[0x0];if(!this[_0x4bfb('0x10c')]['size'])return;if(!_0x5189da[_0x4bfb('0xc2')])return;if(_0x5189da[_0x4bfb('0xe4')][_0x4bfb('0x11c')]||!_0x5189da[_0x4bfb('0xe4')][_0x4bfb('0x110')])return;let _0x49d69a,_0xe261f1;switch(_0x5189da[_0x4bfb('0x66')]){case'insert':_0x49d69a=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x84')](_0x5189da[_0x4bfb('0x4b')]),_0xe261f1=_0x49d69a[_0x4bfb('0x46')](_0x5189da[_0x4bfb('0xed')]);break;case _0x4bfb('0x3e'):_0x49d69a=_0xcb326a['model'][_0x4bfb('0x84')](_0x5189da[_0x4bfb('0x10b')]),_0xe261f1=_0xcb326a[_0x4bfb('0x11')]['createPositionAt'](_0x5189da[_0x4bfb('0x126')]);break;case _0x4bfb('0x124'):_0x49d69a=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x84')](_0x5189da[_0x4bfb('0xfa')]),_0xe261f1=_0x49d69a['getShiftedBy'](_0x5189da[_0x4bfb('0xed')]);break;default:return;}const _0x4de38b=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xdf')](_0x49d69a,_0xe261f1);_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x54')](()=>{for(const {suggestion:_0x2ea08a,meta:_0x5c5f3e}of this[_0x4bfb('0x40')](_0x4de38b)){if(_0x2ea08a[_0x4bfb('0x98')])continue;if(_0x4bfb('0x6e')==_0x2ea08a[_0x4bfb('0x66')])continue;const _0x29f637=_0x2ea08a[_0x4bfb('0x118')]&&_0x2ea08a[_0x4bfb('0x118')]['multipleBlocks'];('formatBlock'!=_0x2ea08a[_0x4bfb('0x66')]||'split'==_0x5189da[_0x4bfb('0x66')]&&!_0x29f637)&&(_0x5c5f3e['containsRangeInObject']||'insertion'==_0x2ea08a[_0x4bfb('0x66')]&&_0x5c5f3e['isOwn']||_0x2ea08a[_0x4bfb('0x107')]()[_0x4bfb('0x8c')](_0x4de38b)&&this[_0x4bfb('0x130')](_0x2ea08a,_0x49d69a,_0xe261f1));}});},{'priority':_0x4bfb('0x5b')}),_0xcb326a['model']['on'](_0x4bfb('0xde'),(_0x172159,_0x473c3b)=>{const _0x30fa62=_0x473c3b[0x0],_0x19ce9=_0x473c3b[0x1];if(_0x19ce9&&_0x19ce9[_0x4bfb('0x47')])return;if(this[_0x4bfb('0x13f')])return;if(!this[_0x4bfb('0x142')][_0x4bfb('0x63')])return;if(_0x30fa62['isCollapsed'])return;const _0x2909d3=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')],{start:_0x5abcf4,end:_0x3ab64c}=_0x30fa62['getFirstRange'](),_0x30c8bb=_0x5abcf4[_0x4bfb('0xa4')]&&_0x2909d3[_0x4bfb('0x89')](_0x5abcf4[_0x4bfb('0xa4')])?null:_0x2909d3[_0x4bfb('0x143')](_0x5abcf4,_0x4bfb('0xf4')),_0x327d84=_0x3ab64c[_0x4bfb('0x1c')]&&_0x2909d3[_0x4bfb('0x89')](_0x3ab64c[_0x4bfb('0x1c')])?null:_0x2909d3[_0x4bfb('0x143')](_0x3ab64c,_0x4bfb('0x13a')),_0x326572=_0xcb326a['model']['createRange'](_0x30c8bb?_0x30c8bb['start']:_0x5abcf4,_0x327d84?_0x327d84[_0x4bfb('0x7c')]:_0x3ab64c);_0xcb326a['model'][_0x4bfb('0x54')](_0x41fb8f=>{this[_0x4bfb('0x94')](_0x326572);const _0x382a06=_0xcb326a['model'][_0x4bfb('0x1b')]['getNearestSelectionRange'](_0x326572[_0x4bfb('0x33')]);_0x30fa62['is']('documentSelection')?_0x41fb8f[_0x4bfb('0x100')](_0x382a06):_0x30fa62[_0x4bfb('0x103')](_0x382a06);}),_0x172159[_0x4bfb('0xb1')]();},{'priority':_0x2a39a3[_0x4bfb('0x78')]+0xa}),_0xcb326a[_0x4bfb('0x11')]['on'](_0x4bfb('0x65'),(_0x2fab38,_0x34a3ee)=>{const _0x6cdb0c=_0x34a3ee[_0x34a3ee[_0x4bfb('0x45')]-0x1];_0x6cdb0c&&_0x6cdb0c[_0x4bfb('0x47')]||this[_0x4bfb('0x13f')]||this[_0x4bfb('0x142')]['value']&&(_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x54')](()=>{let _0x25f082=_0xcb326a['model']['insertContent'](_0x34a3ee[0x0],_0x34a3ee[0x1],_0x34a3ee[0x2],{'forceDefaultExecution':!0x0});if(!_0x25f082)return;_0x2fab38['return']=_0x25f082['clone']();const _0x45b680=_0x25f082['end'][_0x4bfb('0x1c')],_0x3eae25=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')];_0x45b680&&_0x3eae25[_0x4bfb('0x5f')](_0x45b680)&&!_0x3eae25[_0x4bfb('0x144')](_0x45b680)&&(_0x25f082=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xdf')](_0x25f082[_0x4bfb('0x33')],_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x84')](_0x45b680,_0x4bfb('0x7c')))),this[_0x4bfb('0xe1')](_0x25f082);}),_0x2fab38[_0x4bfb('0xb1')]());},{'priority':_0x4bfb('0x73')}),this[_0x4bfb('0x22')][_0x4bfb('0xfc')]['add'](_0x4bfb('0xe8'),this[_0x4bfb('0x142')]),this[_0x4bfb('0x11a')](_0x4bfb('0xe8'));const _0x21a619=new _0x42e371(_0xcb326a,this['_suggestions']);_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0x140'),_0x21a619),this[_0x4bfb('0x11a')]('acceptSuggestion');const _0xfde995=new _0x2ec97c(_0xcb326a,this[_0x4bfb('0x10c')]);_0xcb326a[_0x4bfb('0xfc')]['add'](_0x4bfb('0x28'),_0xfde995),this[_0x4bfb('0x11a')](_0x4bfb('0x28')),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0x2f'),new _0x107841(_0xcb326a,_0x21a619,this['_suggestions'])),this[_0x4bfb('0x11a')](_0x4bfb('0x2f')),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0xb4'),new _0x107841(_0xcb326a,_0xfde995,this[_0x4bfb('0x10c')])),this[_0x4bfb('0x11a')](_0x4bfb('0xb4')),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0xab'),new _0x5acbbe(_0xcb326a,_0x21a619,this[_0x4bfb('0x10c')])),this[_0x4bfb('0x11a')]('acceptSelectedSuggestions'),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0x85'),new _0x5acbbe(_0xcb326a,_0xfde995,this[_0x4bfb('0x10c')])),this[_0x4bfb('0x11a')](_0x4bfb('0x85'));const _0x4f3130=_0xcb326a[_0x4bfb('0x42')]['get'](_0x4bfb('0xea'));this[_0x4bfb('0x81')](_0x4f3130,'addComment',(_0x328954,{threadId:_0x4c9437})=>{const _0x16843f=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x4c9437);_0x16843f&&_0x16843f[_0x4bfb('0x145')]&&0x1===_0x16843f[_0x4bfb('0x145')]['length']&&this[_0x4bfb('0x127')](_0x4c9437,{'hasComments':!0x0});},{'priority':_0x4bfb('0xd4')}),this[_0x4bfb('0x81')](_0x4f3130,_0x4bfb('0xf0'),(_0x220cb9,{threadId:_0x24cee3})=>{const _0x3d848d=this['_suggestions']['get'](_0x24cee3);_0x3d848d&&_0x3d848d[_0x4bfb('0x145')]&&!_0x3d848d[_0x4bfb('0x145')]['length']&&this[_0x4bfb('0x127')](_0x24cee3,{'hasComments':!0x1});},{'priority':_0x4bfb('0xd4')});}set[_0x4bfb('0x10f')](_0x3942dc){if(this['_adapter'])throw new _0x5cc285(_0x4bfb('0x106'),this);this[_0x4bfb('0x13')]=_0x3942dc;}get['adapter'](){return this[_0x4bfb('0x13')];}['getSuggestions']({skipNotAttached:_0x41e683=!0x1,toJSON:_0x46397a=!0x1}={}){const _0x2ca9e=[];for(const _0x40a3a8 of this[_0x4bfb('0x10c')][_0x4bfb('0x20')]())_0x41e683&&!_0x40a3a8[_0x4bfb('0x64')]||_0x2ca9e[_0x4bfb('0x13c')](_0x40a3a8);return _0x46397a?_0x2ca9e[_0x4bfb('0x125')](_0x5ac2bc=>_0x5ac2bc[_0x4bfb('0xd9')]()):_0x2ca9e;}['getSuggestion'](_0x367b43){const _0x28d4e7=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x367b43);if(!_0x28d4e7)throw new _0x5cc285('track-changes-suggestion-not-found',this);return _0x28d4e7;}[_0x4bfb('0x6c')](_0x17affb){return this[_0x4bfb('0x10c')]['has'](_0x17affb);}[_0x4bfb('0xc1')](_0x28b4fd){const {authorId:_0x2b4d7a,id:_0xf34799,attributes:_0x511abf}=_0x28b4fd,[_0x14b408,_0xf30ab2]=_0x28b4fd[_0x4bfb('0x66')]['split'](':'),_0xefd9f1=this['_suggestions'][_0x4bfb('0x43')](_0xf34799)||this[_0x4bfb('0xbd')](_0x14b408,_0xf30ab2,_0xf34799,_0x2b4d7a,_0x511abf);if(this[_0x4bfb('0xf7')](_0xefd9f1),this[_0x4bfb('0x8a')](_0xefd9f1,_0x14b408,_0xf30ab2||null,_0x2b4d7a),_0xefd9f1['createdAt']=_0x28b4fd[_0x4bfb('0x9a')],_0xefd9f1[_0x4bfb('0x122')]=!0x0,_0x511abf&&_0x511abf[_0x4bfb('0x101')]){const _0x2ed6f0=_0x511abf[_0x4bfb('0x101')],_0x2da03e=this[_0x4bfb('0x6')](_0x2ed6f0[_0x4bfb('0x115')]);_0xefd9f1['authoredAt']=_0x2ed6f0[_0x4bfb('0x9a')],_0xefd9f1['author']=_0x2da03e,_0xefd9f1['isExternal']=!0x0;}else _0xefd9f1[_0x4bfb('0xa3')]=_0x28b4fd[_0x4bfb('0x9a')];switch(_0x28b4fd[_0x4bfb('0x118')]&&(_0xefd9f1[_0x4bfb('0x118')]=_0x28b4fd[_0x4bfb('0x118')]),_0x28b4fd[_0x4bfb('0x10e')]&&(_0xefd9f1[_0x4bfb('0x10e')]=_0x28b4fd[_0x4bfb('0x10e')]),this[_0x4bfb('0x13')]&&this[_0x4bfb('0x13')]['addSuggestion']||(_0xefd9f1[_0x4bfb('0x60')]=!0x0),this[_0x4bfb('0x24')][_0x4bfb('0x43')](_0xefd9f1)){case _0x4bfb('0x134'):this[_0x4bfb('0x24')]['set'](_0xefd9f1,_0x4bfb('0xa2'));break;case'markerReady':_0xefd9f1[_0x4bfb('0x64')]?(this[_0x4bfb('0x6b')](new Set([_0xefd9f1])),this['_joinWithAdjacentSuggestions'](new Set([_0xefd9f1])),this[_0x4bfb('0x24')][_0x4bfb('0x8e')](_0xefd9f1,_0x4bfb('0x13b')),this['fire']('suggestionLoaded',_0xefd9f1)):this[_0x4bfb('0x24')]['set'](_0xefd9f1,_0x4bfb('0xf6'));}return _0xefd9f1;}['acceptSuggestion'](_0x80b266){this[_0x4bfb('0x47')](()=>{this[_0x4bfb('0x22')]['model']['change'](()=>{for(const _0x465ddb of _0x80b266[_0x4bfb('0xfb')]())_0x465ddb[_0x4bfb('0xa6')]();});});}[_0x4bfb('0x28')](_0x11792d){this[_0x4bfb('0x47')](()=>{this[_0x4bfb('0x22')][_0x4bfb('0x11')]['change'](()=>{for(const _0x222a02 of _0x11792d[_0x4bfb('0xfb')]())_0x222a02[_0x4bfb('0x123')]();});});}['enableCommand'](_0x1d4e17,_0x2d9306){const _0x59527c=this[_0x4bfb('0x22')]['commands'][_0x4bfb('0x43')](_0x1d4e17);if(!_0x59527c)throw new _0x5cc285(_0x4bfb('0x120'),this,{'commandName':_0x1d4e17});this['_enabledCommands'][_0x4bfb('0x13d')](_0x59527c),_0x2d9306&&_0x59527c['on'](_0x4bfb('0x129'),(_0x11e66a,_0x4f0b07)=>{this[_0x4bfb('0x142')]['value']&&(this[_0x4bfb('0x13f')]||_0x4f0b07[_0x4bfb('0x45')]>0x0&&_0x4f0b07[_0x4f0b07['length']-0x1]&&_0x4f0b07[_0x4f0b07['length']-0x1][_0x4bfb('0x47')]||(_0x2d9306((..._0x12c978)=>_0x59527c['execute'](..._0x12c978,{'forceDefaultExecution':!0x0}),..._0x4f0b07),_0x11e66a[_0x4bfb('0xb1')]()));},{'priority':_0x4bfb('0x73')});}[_0x4bfb('0x47')](_0xde21bc){let _0x3d964b,_0xd5a892;const _0x2da6cb=this[_0x4bfb('0x13f')];this[_0x4bfb('0x13f')]=!0x0;try{_0x3d964b=_0xde21bc();}catch(_0x2a7e9a){_0xd5a892=_0x2a7e9a;}return _0x2da6cb||(this[_0x4bfb('0x13f')]=!0x1),_0xd5a892&&_0x5cc285[_0x4bfb('0x135')](_0xd5a892,this),_0x3d964b;}['markInsertion'](_0xf581dc,_0x528345=null,_0x5cf397={}){if(_0xf581dc[_0x4bfb('0x9e')])return null;const _0x278df5=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'];for(const {suggestion:_0x111403,meta:_0x3be144}of this[_0x4bfb('0x40')](_0xf581dc,'insertion'))if(_0x3be144[_0x4bfb('0x2a')]){if(!_0x3be144['isNextTo']){if(_0x3be144[_0x4bfb('0x128')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x111403,_0x5cf397))continue;return _0x111403;}if(Ut(_0x111403,_0x5cf397))return _0x111403;this['_breakSuggestionMarker'](_0x111403,_0xf581dc[_0x4bfb('0x33')],_0xf581dc[_0x4bfb('0x7c')]);break;}if(_0x528345==_0x111403[_0x4bfb('0x71')]&&Ut(_0x111403,_0x5cf397)){const _0x5bd62d=_0x111403[_0x4bfb('0x107')]();return _0x5bd62d['start'][_0x4bfb('0xba')](_0xf581dc[_0x4bfb('0x7c')])?this[_0x4bfb('0x12')](_0x111403,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0xf581dc[_0x4bfb('0x33')],_0x5bd62d[_0x4bfb('0x7c')])):this[_0x4bfb('0x12')](_0x111403,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x5bd62d['start'],_0xf581dc['end'])),_0x111403;}}const _0x10b56c=_0x405b2a(),_0xbff7f9=_0x278df5['id'],_0x34388d=_0x528345?_0x4bfb('0xd6')+_0x528345:'insertion',_0x1c8ecd=this[_0x4bfb('0x114')]({'id':_0x10b56c,'type':_0x34388d,'createdAt':new Date(),'authorId':_0xbff7f9,'attributes':_0x5cf397});return this[_0x4bfb('0xb')](_0x34388d,_0x10b56c,_0xbff7f9,_0xf581dc),_0x1c8ecd;}[_0x4bfb('0xff')](_0x56b8fd,_0xf1460e=_0x4bfb('0x10'),_0x4580ce={}){const _0x1342fe=this[_0x4bfb('0x22')][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'],_0x46e9af=this['_suggestionFactory'][_0x4bfb('0x99')]('insertion',_0xf1460e,_0x4bfb('0xb7'));for(const _0x8544cd of this['getSuggestions']())if(_0x8544cd['author']['id']==_0x1342fe['id']&&_0x4bfb('0x119')==_0x8544cd[_0x4bfb('0x66')]&&_0x8544cd[_0x4bfb('0x71')]==_0xf1460e&&Ut(_0x8544cd,_0x4580ce)&&(_0x46e9af(_0x8544cd[_0x4bfb('0xb6')](),_0x56b8fd)||_0x46e9af(_0x56b8fd,_0x8544cd['getRanges']()))){for(const _0x189a23 of _0x56b8fd)_0x8544cd['addRange'](_0x189a23);return _0x8544cd;}for(const {suggestion:_0x5cd154,meta:_0x286540}of this[_0x4bfb('0x40')](_0x56b8fd,_0x4bfb('0x119'))){if(!_0x286540['isOwn'])continue;if(!this[_0x4bfb('0xb0')]&&_0x286540[_0x4bfb('0x128')])continue;if(!Ut(_0x5cd154,_0x4580ce))continue;let _0x4dc83c=!0x0;for(const _0x340586 of _0x5cd154['getRanges']())for(const _0xcec347 of _0x56b8fd)if(!_0x340586[_0x4bfb('0x8c')](_0xcec347)){_0x4dc83c=!0x1;break;}if(_0x4dc83c)return _0x5cd154;}const _0x4e9de2=_0x405b2a(),_0x4d936e=_0x1342fe['id'],_0x58a379=_0x4bfb('0xd6')+_0xf1460e,_0x58234f=this[_0x4bfb('0x114')]({'id':_0x4e9de2,'type':_0x58a379,'createdAt':new Date(),'authorId':_0x4d936e,'attributes':_0x4580ce});for(const _0x28361d of _0x56b8fd)this[_0x4bfb('0xb')](_0x58a379,_0x4e9de2,_0x4d936e,_0x28361d,_0x128731[_0x4bfb('0x69')]());return _0x58234f;}[_0x4bfb('0xa7')](_0x2bdd60,_0x40ba7f,_0x1e9862=null,_0x5c29a5={}){if(_0x1e9862=_0x1e9862||$t(_0x40ba7f),_0x2bdd60['isCollapsed'])return null;if(_0x4bfb('0xcd')===this[_0x4bfb('0x9')]){const _0x343c57=this[_0x4bfb('0x31')]['getSuggestionCallback'](_0x4bfb('0x6e'),_0x1e9862,_0x4bfb('0xa6'));return this['forceDefaultExecution'](()=>_0x343c57([_0x2bdd60],_0x40ba7f,_0x5c29a5)),null;}const _0x8bbf84=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')]('Users')['me'],_0x1e58b6=[];if(_0x4bfb('0xfd')!==this['_trackFormatChanges'])for(const {suggestion:_0x187f62,meta:_0x485655}of this[_0x4bfb('0x40')](_0x2bdd60,_0x4bfb('0x119')))_0x485655[_0x4bfb('0x2a')]&&!_0x485655[_0x4bfb('0x83')]&&_0x1e58b6['push'](..._0x187f62[_0x4bfb('0xb6')]());const _0x45f252=function(_0x443921,_0x525827){const _0x4307b7=[];for(const _0x54a258 of _0x525827){const _0x5ad356=_0x443921['getIntersection'](_0x54a258);_0x5ad356&&_0x4307b7[_0x4bfb('0x13c')](_0x5ad356);}return _0x4307b7;}(_0x2bdd60,_0x1e58b6),_0x9437b4=function(_0x51b2ba,_0xbea408){const _0x341e1a=[_0x51b2ba];for(const _0x5732d1 of _0xbea408){let _0x17c694=0x0;for(;_0x17c694<_0x341e1a['length'];){const _0x423399=_0x341e1a[_0x17c694][_0x4bfb('0x87')](_0x5732d1);_0x341e1a[_0x4bfb('0x13e')](_0x17c694,0x1,..._0x423399),_0x17c694+=_0x423399[_0x4bfb('0x45')];}}return _0x341e1a;}(_0x2bdd60,_0x1e58b6);_0x45f252[_0x4bfb('0x45')]&&this[_0x4bfb('0x7d')][_0x4bfb('0x54')](()=>{for(const _0x589591 of _0x45f252){const _0x55ae66=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0x6e'),_0x1e9862,_0x4bfb('0xa6'));this[_0x4bfb('0x47')](()=>_0x55ae66([_0x589591],_0x40ba7f,_0x5c29a5));}});for(const _0x1c07a8 of _0x9437b4){let _0x27aca5=null,_0x2dc414=_0x1c07a8[_0x4bfb('0x33')],_0x4b0b74=_0x1c07a8[_0x4bfb('0x7c')];for(const {suggestion:_0x33ca76,meta:_0x595b09}of this[_0x4bfb('0x40')](_0x1c07a8,'formatInline')){if(!_0x595b09[_0x4bfb('0x2a')])continue;if(_0x33ca76[_0x4bfb('0x71')]!=_0x1e9862)continue;if(!Ut(_0x33ca76,_0x5c29a5))continue;const _0x24c75e=_0x33ca76[_0x4bfb('0x107')]();if(_0x24c75e[_0x4bfb('0x8c')](_0x1c07a8,!0x0))return null;_0x2dc414=_0x2dc414[_0x4bfb('0xee')](_0x24c75e[_0x4bfb('0x33')])?_0x2dc414:_0x24c75e['start'],_0x4b0b74=_0x4b0b74[_0x4bfb('0xbb')](_0x24c75e[_0x4bfb('0x7c')])?_0x4b0b74:_0x24c75e[_0x4bfb('0x7c')],_0x27aca5?_0x24c75e[_0x4bfb('0x33')]['isBefore'](_0x27aca5['getFirstRange']()[_0x4bfb('0x33')])?(_0x27aca5['removeMarkers'](),_0x27aca5=_0x33ca76):_0x33ca76[_0x4bfb('0x9b')]():_0x27aca5=_0x33ca76;}const _0x46847c=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x2dc414,_0x4b0b74);if(_0x27aca5)this[_0x4bfb('0x12')](_0x27aca5,_0x46847c);else{const _0x573343=_0x405b2a(),_0x26468c=_0x8bbf84['id'];this[_0x4bfb('0x114')]({'id':_0x573343,'type':_0x4bfb('0x136')+_0x1e9862,'data':_0x40ba7f,'createdAt':new Date(),'authorId':_0x26468c,'attributes':_0x5c29a5}),this[_0x4bfb('0xb')]('formatInline:'+_0x1e9862,_0x573343,_0x26468c,_0x46847c);}}return null;}[_0x4bfb('0x4')](_0x1c5e30,_0x53a636,_0x3a8966=[],_0x5cdf0e=null,_0x25030b={}){_0x53a636['formatGroupId']||(_0x53a636['formatGroupId']=_0x53a636[_0x4bfb('0x131')]),_0x53a636['multipleBlocks']=_0x1c5e30['is'](_0x4bfb('0x23')),_0x5cdf0e=_0x5cdf0e||$t(_0x53a636);const _0x16af32=_0x3a8966['map'](_0x53f1fe=>Rt(_0x53f1fe,this['_model'])),_0x42390f=_0x1c5e30['is'](_0x4bfb('0x23'))?_0x1c5e30:Rt(_0x1c5e30,this['_model']);if(_0x4bfb('0xcd')===this['_trackFormatChanges']){const _0x569be0=this['_suggestionFactory'][_0x4bfb('0x99')]('formatBlock',_0x5cdf0e,_0x4bfb('0xa6'));return this['forceDefaultExecution'](()=>_0x569be0([_0x42390f],_0x53a636,_0x25030b)),null;}_0x16af32['push'](_0x42390f);let _0x25a576=!0x0;for(const _0xa73676 of _0x16af32)if(!this[_0x4bfb('0xeb')](_0xa73676)){_0x25a576=!0x1;break;}if(_0x25a576&&_0x4bfb('0xfd')!==this[_0x4bfb('0x9')]){const _0x2909a0=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x5cdf0e,_0x4bfb('0xa6'));return this['forceDefaultExecution'](()=>_0x2909a0([_0x42390f],_0x53a636,_0x25030b)),null;}let _0x2ca596=null,_0x280ff3=_0x42390f['start'],_0x537f15=_0x42390f['end'];for(const {suggestion:_0x6be373,meta:_0x2ea24c}of this[_0x4bfb('0x40')](_0x42390f,'formatBlock')){if(!_0x2ea24c['isOwn'])continue;if(_0x2ea24c[_0x4bfb('0xf8')]||_0x2ea24c[_0x4bfb('0x128')]||_0x2ea24c[_0x4bfb('0x83')])continue;if(_0x6be373[_0x4bfb('0x118')][_0x4bfb('0x39')]!=_0x53a636[_0x4bfb('0x39')])continue;if(!Ut(_0x6be373,_0x25030b))continue;const _0x3168f0=_0x6be373[_0x4bfb('0x107')]();if(_0x6be373[_0x4bfb('0x71')]==_0x5cdf0e){if(_0x3168f0[_0x4bfb('0x8c')](_0x42390f,!0x0))return null;_0x280ff3=_0x280ff3[_0x4bfb('0xee')](_0x3168f0[_0x4bfb('0x33')])?_0x280ff3:_0x3168f0[_0x4bfb('0x33')],_0x537f15=_0x537f15[_0x4bfb('0xbb')](_0x3168f0[_0x4bfb('0x7c')])?_0x537f15:_0x3168f0[_0x4bfb('0x7c')],_0x2ca596?_0x3168f0['start']['isBefore'](_0x2ca596['getFirstRange']()[_0x4bfb('0x33')])?(_0x2ca596[_0x4bfb('0x9b')](),_0x2ca596=_0x6be373):_0x6be373[_0x4bfb('0x9b')]():_0x2ca596=_0x6be373;}else{const _0x29e7aa=_0x42390f[_0x4bfb('0x37')](_0x3168f0);this[_0x4bfb('0xdd')](_0x6be373,_0x29e7aa);}}const _0x213b1c=this[_0x4bfb('0x22')][_0x4bfb('0x42')]['get']('Users')['me'],_0xffdcea=_0x405b2a(),_0x50c72c=_0x213b1c['id'];if(_0x2ca596)return this['_setSuggestionRange'](_0x2ca596,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x280ff3,_0x537f15)),_0x2ca596;{const _0xada8e1=this['_setSuggestionData']({'id':_0xffdcea,'type':_0x4bfb('0xd')+_0x5cdf0e,'data':_0x53a636,'createdAt':new Date(),'authorId':_0x50c72c,'attributes':_0x25030b});return this[_0x4bfb('0xb')]('formatBlock:'+_0x5cdf0e,_0xffdcea,_0x50c72c,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x280ff3,_0x537f15)),_0xada8e1;}}['markMultiRangeBlockFormat'](_0x16adeb,_0xfbc254,_0x5b8dbc=[],_0x1b99b9=null,_0x51921b={}){_0xfbc254[_0x4bfb('0x39')]||(_0xfbc254[_0x4bfb('0x39')]=_0xfbc254[_0x4bfb('0x131')]);const _0x2e2916=_0x16adeb[0x0];_0xfbc254[_0x4bfb('0x8d')]=_0x2e2916['is'](_0x4bfb('0x23')),_0x1b99b9=_0x1b99b9||$t(_0xfbc254);const _0x1ab4ec=_0x5b8dbc['map'](_0x1ed82e=>Rt(_0x1ed82e,this[_0x4bfb('0x7d')])),_0x3ca0d6=_0x2e2916['is'](_0x4bfb('0x23'))?_0x16adeb:_0x16adeb['map'](_0x2cad02=>Rt(_0x2cad02,this[_0x4bfb('0x7d')]));if(_0x4bfb('0xcd')===this[_0x4bfb('0x9')]){const _0x3a4118=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x1b99b9,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x3a4118(_0x3ca0d6,_0xfbc254,_0x51921b)),null;}_0x1ab4ec[_0x4bfb('0x13c')](..._0x3ca0d6);let _0x383425=!0x0;for(const _0x421a55 of _0x1ab4ec)if(!this[_0x4bfb('0xeb')](_0x421a55)){_0x383425=!0x1;break;}if(_0x383425&&_0x4bfb('0xfd')!==this[_0x4bfb('0x9')]){const _0x37e3c7=this['_suggestionFactory'][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x1b99b9,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x37e3c7(_0x3ca0d6,_0xfbc254,_0x51921b)),null;}const _0x36c224=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')]('Users')['me'];for(const _0x44e4f9 of this['getSuggestions']()){if(_0x44e4f9['author']['id']!=_0x36c224['id'])continue;if(_0x4bfb('0xa8')!=_0x44e4f9[_0x4bfb('0x66')]||_0x44e4f9[_0x4bfb('0x118')][_0x4bfb('0x39')]!=_0xfbc254['formatGroupId'])continue;if(!Ut(_0x44e4f9,_0x51921b))continue;const _0x758c63=_0x44e4f9[_0x4bfb('0x71')]==_0x1b99b9;for(let _0x1c5c33=0x0;_0x1c5c33<_0x3ca0d6[_0x4bfb('0x45')];_0x1c5c33++){const _0x309534=_0x3ca0d6[_0x1c5c33];for(const _0x1acf65 of _0x44e4f9[_0x4bfb('0x6a')]()){const _0x8755d7=_0x1acf65['getRange']();if(_0x309534[_0x4bfb('0xba')](_0x8755d7)){_0x758c63?(_0x3ca0d6[_0x4bfb('0x13e')](_0x1c5c33,0x1),_0x1c5c33--):_0x44e4f9['removeMarker'](_0x1acf65[_0x4bfb('0x7')]);break;}}}}if(0x0==_0x3ca0d6[_0x4bfb('0x45')])return null;const _0x2b2442=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x1b99b9,'join');for(const _0x4cc73c of this['getSuggestions']())if(_0x4cc73c['author']['id']==_0x36c224['id']&&_0x4bfb('0xa8')==_0x4cc73c[_0x4bfb('0x66')]&&_0x4cc73c['data'][_0x4bfb('0x39')]==_0xfbc254['formatGroupId']&&_0x4cc73c['subType']==_0x1b99b9&&Ut(_0x4cc73c,_0x51921b)&&(_0x2b2442(_0x4cc73c['getRanges'](),_0x3ca0d6)||_0x2b2442(_0x3ca0d6,_0x4cc73c[_0x4bfb('0xb6')]()))){for(const _0x2fd96f of _0x3ca0d6)_0x4cc73c['addRange'](_0x2fd96f);return _0x4cc73c;}const _0x2552a1=_0x405b2a(),_0x3fc919=_0x36c224['id'],_0x3c321a='formatBlock:'+_0x1b99b9,_0x57d3b2=this[_0x4bfb('0x114')]({'id':_0x2552a1,'type':_0x3c321a,'data':_0xfbc254,'createdAt':new Date(),'authorId':_0x3fc919,'attributes':_0x51921b});for(const _0x588732 of _0x3ca0d6)this[_0x4bfb('0xb')](_0x3c321a,_0x2552a1,_0x3fc919,_0x588732,_0x128731[_0x4bfb('0x69')]());return _0x57d3b2;}[_0x4bfb('0x94')](_0x5419f4,_0x2b1f2f=null,_0x59877e={}){if(_0x5419f4['isCollapsed'])return null;const _0x298334=this[_0x4bfb('0x22')][_0x4bfb('0x42')]['get'](_0x4bfb('0x5'))['me'],_0x1b9cff=new _0x3b509a(_0x5419f4[_0x4bfb('0x33')],_0x5419f4[_0x4bfb('0x7c')]);for(const {suggestion:_0x1e43ad,meta:_0x197f1f}of this[_0x4bfb('0x40')](_0x1b9cff,'insertion'))if(_0x197f1f['isOwn']&&!_0x197f1f[_0x4bfb('0xf8')]){if(_0x1e43ad[_0x4bfb('0x98')]){const _0x480c0c=_0x1e43ad[_0x4bfb('0xb6')]()[_0x4bfb('0x35')](_0x123764=>_0x4bfb('0xe7')!=_0x123764['root'][_0x4bfb('0x5a')]);_0x480c0c[_0x4bfb('0x30')](_0x14ab34=>_0x1b9cff[_0x4bfb('0x8c')](_0x14ab34,!0x0))&&_0x1e43ad['discard']();if(_0x480c0c['some'](_0x2f5170=>_0x2f5170['containsRange'](_0x1b9cff,!0x0))){const _0x38fe70=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0x14'),_0x2b1f2f,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x38fe70([_0x1b9cff],null,_0x59877e)),null;}}else{const _0x1ab0a7=_0x1b9cff['getIntersection'](_0x1e43ad['getFirstRange']());null!==_0x1ab0a7&&_0x1e43ad['_onDiscard']([_0x1ab0a7],null,_0x59877e);}}if(_0x1b9cff['detach'](),_0x1b9cff['isCollapsed']||_0x4bfb('0xe7')==_0x1b9cff[_0x4bfb('0x12f')]['rootName'])return null;let _0x5c6b7a=null,_0x59d38d=_0x1b9cff[_0x4bfb('0x33')],_0x40e46c=_0x1b9cff[_0x4bfb('0x7c')];const _0xa71404=this[_0x4bfb('0x40')](_0x1b9cff,_0x4bfb('0x14'));for(const {suggestion:_0x34533f,meta:_0x3ca5f9}of _0xa71404){const _0x44e9c1=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x59d38d,_0x40e46c);if(_0x3ca5f9[_0x4bfb('0x2a')]&&(this[_0x4bfb('0xb0')]||!_0x3ca5f9[_0x4bfb('0x128')]&&!_0x3ca5f9['isInsideObject'])){if(_0x34533f[_0x4bfb('0x98')]){if(!Ut(_0x34533f,_0x59877e))continue;let _0xfb2c3c=!0x0;for(const _0x4239d3 of _0x34533f[_0x4bfb('0xb6')]()){if(_0x4239d3[_0x4bfb('0x8c')](_0x44e9c1,!0x0))return _0x34533f;_0x44e9c1[_0x4bfb('0x8c')](_0x4239d3)||(_0xfb2c3c=!0x1);}_0xfb2c3c&&_0x34533f[_0x4bfb('0x123')]();}else{const _0xfe88ad=_0x34533f[_0x4bfb('0x107')]();if(_0xfe88ad[_0x4bfb('0x8c')](_0x44e9c1,!0x0))return _0x34533f;if(!Ut(_0x34533f,_0x59877e)){_0x44e9c1[_0x4bfb('0x8c')](_0xfe88ad)?_0x34533f[_0x4bfb('0x9b')]():_0xfe88ad[_0x4bfb('0x102')](_0x59d38d)?_0x59d38d=_0xfe88ad[_0x4bfb('0x7c')]:_0xfe88ad['containsPosition'](_0x40e46c)&&(_0x40e46c=_0xfe88ad[_0x4bfb('0x33')]);continue;}_0x59d38d=_0x59d38d['isBefore'](_0xfe88ad['start'])?_0x59d38d:_0xfe88ad['start'],_0x40e46c=_0x40e46c[_0x4bfb('0xbb')](_0xfe88ad['end'])?_0x40e46c:_0xfe88ad[_0x4bfb('0x7c')],_0x59877e=Object['assign']({},_0x34533f[_0x4bfb('0x10e')]),_0x5c6b7a?_0xfe88ad[_0x4bfb('0x33')]['isBefore'](_0x5c6b7a[_0x4bfb('0x107')]()['start'])?(_0x5c6b7a[_0x4bfb('0x9b')](),_0x5c6b7a=_0x34533f):_0x34533f[_0x4bfb('0x9b')]():_0x5c6b7a=_0x34533f;}}}if(_0x5c6b7a)return this[_0x4bfb('0x12')](_0x5c6b7a,this[_0x4bfb('0x7d')]['createRange'](_0x59d38d,_0x40e46c)),_0x5c6b7a;{const _0x48b1ab=_0x405b2a(),_0x483249=this['_model'][_0x4bfb('0xdf')](_0x59d38d,_0x40e46c),_0xc1d241=_0x298334['id'],_0x184083=_0x2b1f2f?'deletion:'+_0x2b1f2f:_0x4bfb('0x14'),_0x6ad4a5=this[_0x4bfb('0x114')]({'id':_0x48b1ab,'type':_0x184083,'createdAt':new Date(),'authorId':_0xc1d241,'attributes':_0x59877e});return this[_0x4bfb('0xb')](_0x184083,_0x48b1ab,_0xc1d241,_0x483249),_0x6ad4a5;}}[_0x4bfb('0xc9')](_0x1941cf,_0x40c97a=_0x4bfb('0x10'),_0x38c428={}){const _0xb6d4c7=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'],_0x39c2eb=_0x1941cf[_0x4bfb('0x125')](_0x5e2250=>new _0x3b509a(_0x5e2250[_0x4bfb('0x33')],_0x5e2250[_0x4bfb('0x7c')])),_0x2bcd59=new Set();for(const {suggestion:_0x480eba,meta:_0x43c536}of this[_0x4bfb('0x40')](_0x39c2eb,'insertion'))_0x43c536[_0x4bfb('0x2a')]&&!_0x43c536[_0x4bfb('0xf8')]&&_0x2bcd59[_0x4bfb('0x13d')](_0x480eba);for(const _0x1bfa33 of _0x2bcd59)if(_0x1bfa33[_0x4bfb('0x98')]){const _0x1a4dcc=_0x1bfa33[_0x4bfb('0xb6')]();(!_0x1bfa33[_0x4bfb('0x10e')]||!_0x1bfa33['attributes'][_0x4bfb('0x4c')])&&(_0x1a4dcc[_0x4bfb('0x30')](_0x443600=>_0x39c2eb[_0x4bfb('0x5e')](_0x3c01b1=>_0x3c01b1['containsRange'](_0x443600,!0x0)))&&_0x1bfa33[_0x4bfb('0x123')]());if(_0x39c2eb[_0x4bfb('0x30')](_0x331e93=>_0x1a4dcc[_0x4bfb('0x5e')](_0x5ba952=>_0x5ba952[_0x4bfb('0x8c')](_0x331e93,!0x0)))){const _0x441f08=this['_suggestionFactory'][_0x4bfb('0x99')](_0x4bfb('0x14'),_0x40c97a,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x441f08(_0x1941cf,null,_0x38c428)),null;}}else{const _0x10cd44=_0x1bfa33['getFirstRange']();_0x39c2eb[_0x4bfb('0x5e')](_0xb558bc=>_0xb558bc[_0x4bfb('0x8c')](_0x10cd44,!0x0))&&_0x1bfa33[_0x4bfb('0x123')]();if(_0x39c2eb[_0x4bfb('0x30')](_0x36f335=>_0x10cd44['containsRange'](_0x36f335,!0x0))){const _0x1c7017=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40c97a,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x1c7017(_0x39c2eb,null,_0x38c428)),null;}}const _0x3a96fd=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0x14'),_0x40c97a,_0x4bfb('0xb7'));let _0x18f2b6=null;for(const _0x47282d of this[_0x4bfb('0x36')]())if(_0x47282d['author']['id']==_0xb6d4c7['id']&&_0x47282d[_0x4bfb('0x64')]&&_0x4bfb('0x14')==_0x47282d['type']&&_0x47282d[_0x4bfb('0x71')]==_0x40c97a&&Ut(_0x47282d,_0x38c428)&&(_0x3a96fd(_0x47282d[_0x4bfb('0xb6')](),_0x39c2eb)||_0x3a96fd(_0x39c2eb,_0x47282d[_0x4bfb('0xb6')]()))){if(_0x18f2b6){if(_0x47282d['commentThread']&&_0x47282d[_0x4bfb('0x145')][_0x4bfb('0x45')])continue;for(const _0x4891df of _0x47282d['getRanges']())_0x18f2b6[_0x4bfb('0xc6')](_0x4891df)||_0x18f2b6[_0x4bfb('0x147')](_0x4891df);_0x47282d[_0x4bfb('0x9b')]();}else{_0x18f2b6=_0x47282d;for(const _0x126465 of _0x39c2eb)_0x47282d[_0x4bfb('0xc6')](_0x126465)||_0x47282d['addRange'](_0x126465);}}if(_0x18f2b6)return _0x18f2b6;_0x2bcd59[_0x4bfb('0x4a')]();for(const {suggestion:_0x542013,meta:_0x5a2a9b}of this['_findSuggestions'](_0x39c2eb,_0x4bfb('0x14')))_0x5a2a9b[_0x4bfb('0x2a')]&&(this[_0x4bfb('0xb0')]||!_0x5a2a9b['containsRangeInObject']&&!_0x5a2a9b['isInsideObject'])&&Ut(_0x542013,_0x38c428)&&_0x2bcd59[_0x4bfb('0x13d')](_0x542013);for(const _0x18709e of _0x2bcd59){const _0x3d26cb=_0x18709e[_0x4bfb('0xb6')]();if(!_0x38c428||!_0x38c428[_0x4bfb('0x4c')]){if(_0x39c2eb[_0x4bfb('0x30')](_0x251e87=>_0x3d26cb[_0x4bfb('0x5e')](_0x182724=>_0x182724[_0x4bfb('0x8c')](_0x251e87,!0x0))))return _0x18709e;}(!_0x18709e['attributes']||!_0x18709e[_0x4bfb('0x10e')][_0x4bfb('0x4c')])&&(_0x3d26cb[_0x4bfb('0x30')](_0x39c8de=>_0x39c2eb[_0x4bfb('0x5e')](_0xb4e3fc=>_0xb4e3fc[_0x4bfb('0x8c')](_0x39c8de,!0x0)))&&_0x18709e[_0x4bfb('0x123')]());}const _0x3c2085=_0x405b2a(),_0x5b274f=_0xb6d4c7['id'],_0x1c8c4e=_0x4bfb('0xce')+_0x40c97a,_0x1d3b3c=this[_0x4bfb('0x114')]({'id':_0x3c2085,'type':_0x1c8c4e,'createdAt':new Date(),'authorId':_0x5b274f,'attributes':_0x38c428});for(const _0x5a04a2 of _0x39c2eb)_0x5a04a2[_0x4bfb('0x91')](),_0x5a04a2[_0x4bfb('0x9e')]||'$graveyard'==_0x5a04a2[_0x4bfb('0x12f')][_0x4bfb('0x5a')]||this[_0x4bfb('0xb')](_0x1c8c4e,_0x3c2085,_0x5b274f,_0x5a04a2,_0x128731[_0x4bfb('0x69')]());return _0x1d3b3c;}[_0x4bfb('0x12')](_0x42a4ae,_0x46b545){const _0x2b2e97=_0x42a4ae[_0x4bfb('0x3d')]();this[_0x4bfb('0x7d')][_0x4bfb('0x54')](_0x513a3a=>{_0x513a3a[_0x4bfb('0x2d')](_0x2b2e97,{'range':_0x46b545});});}[_0x4bfb('0xf7')](_0x3c57eb){const _0x447fd2=_0x3c57eb['id'],_0x4e7afb=this['editor'][_0x4bfb('0x7f')]['get'](_0x4bfb('0xd5'));this[_0x4bfb('0x104')][_0x4bfb('0xf5')](_0x447fd2)||this[_0x4bfb('0x104')][_0x4bfb('0x55')]({'channelId':_0x4e7afb,'threadId':_0x447fd2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d1b24=this['_commentsRepository'][_0x4bfb('0x12b')](_0x447fd2);_0x3d1b24[_0x4bfb('0xc3')](_0x4bfb('0x1d')),_0x3d1b24[_0x4bfb('0x1d')]=!0x1,_0x3c57eb[_0x4bfb('0x145')]=_0x3d1b24;}['_checkSuggestionCorrectness'](_0x2e99f8,_0x308d4a,_0x195050,_0x1ef925){if(_0x2e99f8['type']!=_0x308d4a||_0x2e99f8['subType']!=_0x195050||_0x2e99f8['creator']['id']!=_0x1ef925)throw this['editor'][_0x4bfb('0xdc')]('track-changes-suggestion-data-mismatch'),new _0x5cc285(_0x4bfb('0x90'),this);}[_0x4bfb('0xdd')](_0x19f4f7,_0x347b3a){const _0x1a7aaf=_0x19f4f7[_0x4bfb('0x107')]();if(_0x347b3a[_0x4bfb('0xba')](_0x1a7aaf))_0x19f4f7[_0x4bfb('0x9b')]();else{if(_0x1a7aaf['containsRange'](_0x347b3a)){const _0x26a097=this['_model'][_0x4bfb('0x84')](_0x347b3a[_0x4bfb('0x33')]['nodeBefore'],_0x4bfb('0x7c'));this[_0x4bfb('0x12')](_0x19f4f7,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x1a7aaf[_0x4bfb('0x33')],_0x26a097));const _0x1c122b=_0x405b2a(),_0x18835d=_0x19f4f7[_0x4bfb('0x67')]['id'],_0x3cf456=_0x19f4f7['type']+':'+_0x19f4f7[_0x4bfb('0x71')];this[_0x4bfb('0x114')]({'id':_0x1c122b,'type':_0x3cf456,'createdAt':new Date(),'authorId':_0x18835d,'data':_0x19f4f7[_0x4bfb('0x118')],'attributes':_0x19f4f7[_0x4bfb('0x10e')]});const _0x4a5c00=this['_model'][_0x4bfb('0x84')](_0x347b3a[_0x4bfb('0x7c')][_0x4bfb('0x1f')],_0x4bfb('0x112')),_0x2e9048=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x4a5c00,_0x1a7aaf[_0x4bfb('0x7c')]);this[_0x4bfb('0xb')](_0x3cf456,_0x1c122b,_0x18835d,_0x2e9048);}else{if(_0x1a7aaf[_0x4bfb('0x102')](_0x347b3a['start'])){const _0x1b23ba=this['_model'][_0x4bfb('0x84')](_0x347b3a['start'][_0x4bfb('0x1c')],'end');this[_0x4bfb('0x12')](_0x19f4f7,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x1a7aaf['start'],_0x1b23ba));}else{const _0x19d4db=this[_0x4bfb('0x7d')][_0x4bfb('0x84')](_0x347b3a[_0x4bfb('0x7c')][_0x4bfb('0x1f')],_0x4bfb('0x112'));this[_0x4bfb('0x12')](_0x19f4f7,this['_model'][_0x4bfb('0xdf')](_0x19d4db,_0x1a7aaf[_0x4bfb('0x7c')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3dc8d1){for(const {suggestion:_0x300107,meta:_0x226fbe}of this['_findSuggestions'](_0x3dc8d1,_0x4bfb('0x119'))){if(!_0x226fbe['isOwn'])continue;const _0x54ec3f=_0x300107[_0x4bfb('0xb6')]();for(const _0x172464 of _0x54ec3f)if(!_0x3dc8d1[_0x4bfb('0x87')](_0x172464)[_0x4bfb('0x45')])return!0x0;}return!0x1;}[_0x4bfb('0x146')](_0x3c0dab){const _0x425e69=this[_0x4bfb('0x22')][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['getUser'](_0x3c0dab);if(!_0x425e69)throw new _0x5cc285(_0x4bfb('0x59'),this);return _0x425e69;}[_0x4bfb('0x6')](_0x112672){const _0x250263=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5')),_0xd50d70=_0x5225a2(_0x4bfb('0x3a')+_0x112672),_0x1c94f3=_0x250263[_0x4bfb('0xf9')](_0xd50d70);return _0x1c94f3||_0x250263[_0x4bfb('0x97')]({'id':_0xd50d70,'name':_0x112672});}[_0x4bfb('0xbd')](_0x163641,_0x391dba,_0x38a09c,_0x49108b,_0x143495){const _0x525bc3=this['_getAuthorFromId'](_0x49108b),_0x25e080=this[_0x4bfb('0x31')][_0x4bfb('0x74')](_0x163641,_0x391dba,_0x38a09c,_0x525bc3,_0x143495,_0xabde0e=>this[_0x4bfb('0x127')](_0x38a09c,{'attributes':_0xabde0e}));return this['listenTo'](_0x25e080,'accept',()=>{this[_0x4bfb('0x127')](_0x38a09c,{'state':_0x4bfb('0x11f')});},{'priority':_0x4bfb('0x73')}),this['listenTo'](_0x25e080,_0x4bfb('0x123'),()=>{this['_updateSuggestionData'](_0x38a09c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x38a09c,_0x25e080),this['_suggestionState'][_0x4bfb('0x8e')](_0x25e080,_0x4bfb('0x134')),_0x25e080;}[_0x4bfb('0x105')](_0x3db48b){const _0xd04e51=_0x3db48b[_0x4bfb('0x3e')](':');return{'group':_0xd04e51[0x0],'type':_0xd04e51[0x1],'subType':_0xd04e51['length']>=0x5?_0xd04e51[0x2]:null,'id':_0xd04e51[_0x4bfb('0x45')]<0x5?_0xd04e51[0x2]:_0xd04e51[0x3],'authorId':_0xd04e51['length']<0x5?_0xd04e51[0x3]:_0xd04e51[0x4],'markerCount':0x6==_0xd04e51[_0x4bfb('0x45')]?_0xd04e51[0x5]:null};}[_0x4bfb('0x130')](_0x234d30,_0xdf251a,_0x18ef80){const _0x91e5af=_0x234d30['getFirstRange'](),_0x3ceb2a=_0x91e5af[_0x4bfb('0x33')],_0x5361a1=_0x91e5af[_0x4bfb('0x7c')];this[_0x4bfb('0x12')](_0x234d30,this[_0x4bfb('0x7d')]['createRange'](_0x3ceb2a,_0xdf251a));const _0x3bd00f=_0x405b2a(),_0x5414ae=_0x234d30[_0x4bfb('0x67')]['id'],_0x55d9f3=_0x234d30[_0x4bfb('0x66')]+(_0x234d30['subType']?':'+_0x234d30[_0x4bfb('0x71')]:'');this[_0x4bfb('0x114')]({'id':_0x3bd00f,'type':_0x55d9f3,'createdAt':new Date(),'authorId':_0x5414ae,'originalSuggestionId':_0x234d30['id'],'attributes':_0x234d30[_0x4bfb('0x10e')],'data':_0x234d30[_0x4bfb('0x118')]}),_0x4bfb('0xa8')==_0x234d30[_0x4bfb('0x66')]&&(_0x18ef80=this[_0x4bfb('0x7d')][_0x4bfb('0x41')](_0x18ef80[_0x4bfb('0x1f')])),this[_0x4bfb('0xb')](_0x55d9f3,_0x3bd00f,_0x5414ae,this['_model'][_0x4bfb('0xdf')](_0x18ef80,_0x5361a1));}[_0x4bfb('0x40')](_0x5b9a85,_0x54f308=null){const _0x388b06=[],_0x27d28c=this[_0x4bfb('0x22')][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'];Array[_0x4bfb('0x50')](_0x5b9a85)||(_0x5b9a85=[_0x5b9a85]);for(const _0x14ce10 of this[_0x4bfb('0x36')]()){if(!_0x14ce10[_0x4bfb('0x64')])continue;if(_0x54f308&&_0x14ce10['type']!=_0x54f308)continue;let _0x23bb51=!0x1;for(const _0x36cd14 of _0x14ce10[_0x4bfb('0xb6')]()){for(const _0x7646e2 of _0x5b9a85){const _0x17a9a3=_0x7646e2[_0x4bfb('0x33')][_0x4bfb('0xba')](_0x36cd14['end'])||_0x7646e2[_0x4bfb('0x7c')][_0x4bfb('0xba')](_0x36cd14[_0x4bfb('0x33')]);if(_0x17a9a3||_0x7646e2[_0x4bfb('0x37')](_0x36cd14)){const _0x290bdb=_0x7646e2[_0x4bfb('0x8c')](_0x36cd14)&&Bt(this[_0x4bfb('0x7d')][_0x4bfb('0x1b')],_0x36cd14['start'],_0x7646e2),_0x3f4159=_0x36cd14[_0x4bfb('0x8c')](_0x7646e2)&&Bt(this[_0x4bfb('0x7d')][_0x4bfb('0x1b')],_0x7646e2[_0x4bfb('0x33')],_0x36cd14);_0x388b06['push']({'suggestion':_0x14ce10,'meta':{'isOwn':_0x27d28c==_0x14ce10[_0x4bfb('0xcf')],'isNextTo':_0x17a9a3,'isInsideObject':_0x290bdb,'containsRangeInObject':_0x3f4159}}),_0x23bb51=!0x0;break;}}if(_0x23bb51)break;}}return _0x388b06;}[_0x4bfb('0xb')](_0x5ac5e4,_0x464fee,_0x3c4afa,_0xc8332b,_0x4bd9b3){this[_0x4bfb('0x7d')]['change'](_0x3d5f0c=>{let _0xaf5116=_0x4bfb('0xf2')+_0x5ac5e4+':'+_0x464fee+':'+_0x3c4afa;_0x4bd9b3&&(_0xaf5116=_0xaf5116+':'+_0x4bd9b3),_0x3d5f0c[_0x4bfb('0x3c')](_0xaf5116,{'range':_0xc8332b,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4bfb('0x32')](_0x5a25fe){const _0x5d6f6a=_0x5a25fe[_0x4bfb('0xc0')],_0x495824=_0x5a25fe[_0x4bfb('0x7e')];_0x5a25fe['previous']=null,null!=_0x5d6f6a&&(_0x5d6f6a[_0x4bfb('0x7e')]=null),_0x5a25fe[_0x4bfb('0x7e')]=null,null!=_0x495824&&(_0x495824[_0x4bfb('0xc0')]=null),'ready'==this[_0x4bfb('0x24')][_0x4bfb('0x43')](_0x5a25fe)&&(this['_suggestionState'][_0x4bfb('0x8e')](_0x5a25fe,_0x4bfb('0xf6')),this['fire'](_0x4bfb('0x10d'),_0x5a25fe,_0x5d6f6a,_0x495824));}[_0x4bfb('0x114')](_0x4d4be3){const _0x59e802=_0x4d4be3['id'],_0x5e75f0=this[_0x4bfb('0xc1')](_0x4d4be3);if(this['_adapter']&&this[_0x4bfb('0x13')][_0x4bfb('0x58')]){const _0x20b091=this[_0x4bfb('0x22')][_0x4bfb('0x42')]['get'](_0x4bfb('0x12d')),_0x70fe7e=_0x5e75f0[_0x4bfb('0x2b')],_0x2864bb=_0x5e75f0[_0x4bfb('0x71')]?_0x5e75f0[_0x4bfb('0x66')]+':'+_0x5e75f0[_0x4bfb('0x71')]:_0x5e75f0['type'],_0x501377=this['editor'][_0x4bfb('0x72')],_0x4a5570=_0x20b091[_0x4bfb('0x13d')](_0x41814a(_0x501377,_0x4bfb('0x16'))),_0x56c180={'id':_0x59e802,'type':_0x2864bb,'hasComments':_0x70fe7e,'data':_0x4d4be3[_0x4bfb('0x118')]||null,'originalSuggestionId':_0x4d4be3['originalSuggestionId']||null,'attributes':_0x5e75f0[_0x4bfb('0x10e')]};this['_adapter'][_0x4bfb('0x58')](_0x56c180)['then'](_0x574adf=>{_0x5e75f0['_saved']=!0x0,_0x20b091[_0x4bfb('0x53')](_0x4a5570),_0x574adf&&_0x574adf['createdAt']&&(this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x59e802)[_0x4bfb('0x9a')]=_0x574adf['createdAt']);})[_0x4bfb('0x29')](_0x19ed41=>{throw _0x11be23('error-saving-suggestion-data-suggestion-discarded'),this[_0x4bfb('0x22')][_0x4bfb('0x11')][_0x4bfb('0x96')]({'isUndoable':!0x1},()=>{_0x5e75f0[_0x4bfb('0x123')]();}),_0x5e75f0[_0x4bfb('0x52')](),this['_suggestions'][_0x4bfb('0xcb')](_0x5e75f0['id']),this['_suggestionState'][_0x4bfb('0xcb')](_0x5e75f0),_0x19ed41;});}return _0x5e75f0;}[_0x4bfb('0x127')](_0x4bc747,_0x3f18be){const _0x2430aa=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')]('PendingActions'),_0x257abf=this['getSuggestion'](_0x4bc747);if(this[_0x4bfb('0x13')]&&this['_adapter']['updateSuggestion']){if(_0x257abf['_saved']){const _0x58884e=_0x2430aa[_0x4bfb('0x13d')](_0x41814a(this[_0x4bfb('0x22')][_0x4bfb('0x72')],'PENDING_ACTION_SUGGESTION'));this[_0x4bfb('0x13')][_0x4bfb('0x2')](_0x4bc747,_0x3f18be)[_0x4bfb('0xef')](()=>{_0x2430aa['remove'](_0x58884e);});}else _0x257abf['on'](_0x4bfb('0xf'),()=>{this[_0x4bfb('0x127')](_0x4bc747,_0x3f18be);});}}[_0x4bfb('0x6f')](_0x2813d6){if(!this['_adapter']||!this[_0x4bfb('0x13')]['getSuggestion'])throw new _0x5cc285(_0x4bfb('0xd3'),this);return this[_0x4bfb('0x13')][_0x4bfb('0x80')](_0x2813d6);}[_0x4bfb('0x25')](_0x2687cb){const {id:_0x144aa4,type:_0x264c94,subType:_0x5e9eed,authorId:_0x55c611}=this['_splitMarkerName'](_0x2687cb),_0x35c853=this[_0x4bfb('0x10c')]['get'](_0x144aa4)||this[_0x4bfb('0xbd')](_0x264c94,_0x5e9eed,_0x144aa4,_0x55c611,{});switch(this[_0x4bfb('0x8a')](_0x35c853,_0x264c94,_0x5e9eed,_0x55c611),this['_suggestionState'][_0x4bfb('0x43')](_0x35c853)){case _0x4bfb('0x134'):this[_0x4bfb('0x6f')](_0x144aa4)[_0x4bfb('0xef')](_0x1e39c0=>{let _0x424b49=Promise[_0x4bfb('0x138')]();_0x1e39c0[_0x4bfb('0x2b')]&&(_0x424b49=this[_0x4bfb('0x104')][_0x4bfb('0xe5')]({'channelId':this['editor']['config'][_0x4bfb('0x43')](_0x4bfb('0xd5')),'threadId':_0x144aa4})),_0x424b49[_0x4bfb('0xef')](()=>{this[_0x4bfb('0xc1')](_0x1e39c0)[_0x4bfb('0x60')]=!0x0;});}),this[_0x4bfb('0x24')]['set'](_0x35c853,_0x4bfb('0x3'));break;case _0x4bfb('0xf6'):this[_0x4bfb('0x127')](_0x144aa4,{'state':_0x4bfb('0xc4')});case _0x4bfb('0xa2'):this[_0x4bfb('0x24')][_0x4bfb('0x8e')](_0x35c853,_0x4bfb('0x13b')),this[_0x4bfb('0xd2')](_0x4bfb('0x92'),_0x35c853);break;case'ready':this[_0x4bfb('0xd2')](_0x4bfb('0xb8'),_0x35c853);}return _0x35c853[_0x4bfb('0x9c')](_0x2687cb),_0x35c853;}[_0x4bfb('0x6b')](_0x2d107a){const _0x468be9=Array[_0x4bfb('0x70')](_0x2d107a)[_0x4bfb('0x35')](_0x33eb99=>!_0x33eb99[_0x4bfb('0x98')]),_0x5e0cbe=this[_0x4bfb('0x36')]({'skipNotAttached':!0x0})[_0x4bfb('0x35')](_0x20b9bd=>!_0x20b9bd[_0x4bfb('0x98')]),_0x2ffc20=_0x5e0cbe[_0x4bfb('0x35')](_0x1d9e87=>!_0x2d107a[_0x4bfb('0xa')](_0x1d9e87)),_0xfe6163=new Map(_0x5e0cbe['map'](_0x928fd8=>[_0x928fd8,this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x928fd8[_0x4bfb('0x66')],_0x928fd8['subType'],_0x4bfb('0xb3'))])),_0x32b991=new Map(_0x5e0cbe[_0x4bfb('0x125')](_0x4ff0ab=>[_0x4ff0ab,_0x4ff0ab[_0x4bfb('0x107')]()])),_0x46e805=new Set(),_0x412516=new Set();for(let _0x3c3fc1=0x0;_0x3c3fc1<_0x468be9[_0x4bfb('0x45')];_0x3c3fc1++)_0x5723f3(_0x468be9[_0x3c3fc1],_0x468be9,_0x3c3fc1+0x1);for(let _0x124b9f=0x0;_0x124b9f<_0x468be9[_0x4bfb('0x45')];_0x124b9f++)_0x5723f3(_0x468be9[_0x124b9f],_0x2ffc20,0x0);for(let _0x3066c9=0x0;_0x3066c9<_0x468be9['length'];_0x3066c9++){const _0x3f2139=_0x468be9[_0x3066c9];!_0x412516[_0x4bfb('0xa')](_0x3f2139)&&_0x3f2139[_0x4bfb('0xc0')]&&(_0x3f2139[_0x4bfb('0xc0')][_0x4bfb('0x7e')]===_0x3f2139&&(_0x3f2139['previous'][_0x4bfb('0x7e')]=null),_0x3f2139[_0x4bfb('0xc0')]=null),!_0x46e805[_0x4bfb('0xa')](_0x3f2139)&&_0x3f2139['next']&&(_0x3f2139[_0x4bfb('0x7e')]['previous']===_0x3f2139&&(_0x3f2139[_0x4bfb('0x7e')]['previous']=null),_0x3f2139['next']=null);}function _0x5723f3(_0x45ab8c,_0x331c80,_0x625e0a){for(let _0x528e75=_0x625e0a;_0x528e75<_0x331c80['length'];_0x528e75++){const _0x1de654=_0x1328dd(_0x45ab8c,_0x331c80[_0x528e75]);_0x1de654&&(_0x1de654[0x0][_0x4bfb('0x7e')]=_0x1de654[0x1],_0x1de654[0x1][_0x4bfb('0xc0')]=_0x1de654[0x0],_0x46e805[_0x4bfb('0x13d')](_0x1de654[0x0]),_0x412516[_0x4bfb('0x13d')](_0x1de654[0x1]));}}function _0x1328dd(_0x32d36e,_0x4ded6e){if(_0x32d36e[_0x4bfb('0xcf')]['id']!==_0x4ded6e[_0x4bfb('0xcf')]['id'])return null;const _0x1c9b75=_0xfe6163['get'](_0x32d36e)(_0x32d36e,_0x4ded6e,_0x32b991[_0x4bfb('0x43')](_0x32d36e),_0x32b991[_0x4bfb('0x43')](_0x4ded6e));if(!_0x1c9b75)return null;return _0xfe6163[_0x4bfb('0x43')](_0x4ded6e)(_0x32d36e,_0x4ded6e,_0x32b991[_0x4bfb('0x43')](_0x32d36e),_0x32b991[_0x4bfb('0x43')](_0x4ded6e))?_0x1c9b75[0x1][_0x4bfb('0x145')]&&_0x1c9b75[0x1][_0x4bfb('0x145')][_0x4bfb('0x45')]?null:_0x1c9b75:null;}}[_0x4bfb('0x1a')](_0x29bf39){const _0x5cc6fd=Array[_0x4bfb('0x70')](_0x29bf39),_0x11e8d3=this[_0x4bfb('0x36')]({'skipNotAttached':!0x0}),_0x295762=_0x11e8d3['filter'](_0x333579=>!_0x29bf39[_0x4bfb('0xa')](_0x333579)),_0x3711f5=new Map(_0x5cc6fd['map'](_0x469472=>[_0x469472,this[_0x4bfb('0x31')]['getSuggestionCallback'](_0x469472[_0x4bfb('0x66')],_0x469472['subType'],_0x4bfb('0xb7'))])),_0x3e9ebc=new Map(_0x11e8d3[_0x4bfb('0x125')](_0xa4d98d=>[_0xa4d98d,_0xa4d98d['getRanges']()]));for(let _0x2b9c22=0x0;_0x2b9c22<_0x5cc6fd[_0x4bfb('0x45')];_0x2b9c22++){if(_0x2be09a(this,_0x5cc6fd[_0x2b9c22],_0x5cc6fd,_0x2b9c22+0x1))return!0x0;}for(let _0x521955=0x0;_0x521955<_0x5cc6fd['length'];_0x521955++){if(_0x2be09a(this,_0x5cc6fd[_0x521955],_0x295762,0x0))return!0x0;}return!0x1;function _0x2be09a(_0x4e1e9e,_0x1cf184,_0x119cf3,_0x1d8bf4){for(let _0x363f8a=_0x1d8bf4;_0x363f8a<_0x119cf3[_0x4bfb('0x45')];_0x363f8a++){const _0x3f514a=_0x119cf3[_0x363f8a];if(_0x3f514a['type']!==_0x1cf184['type']||_0x3f514a[_0x4bfb('0xcf')]['id']!==_0x1cf184[_0x4bfb('0xcf')]['id']||_0x3f514a[_0x4bfb('0x71')]!==_0x1cf184['subType'])continue;if(!xt(_0x1cf184,_0x3f514a))continue;const _0x2c0fa9=_0x3711f5[_0x4bfb('0x43')](_0x1cf184),_0x5c63b0=_0x3e9ebc[_0x4bfb('0x43')](_0x1cf184),_0x2ba58e=_0x3e9ebc[_0x4bfb('0x43')](_0x3f514a),_0x450818=_0x1cf184[_0x4bfb('0x145')]&&_0x1cf184[_0x4bfb('0x145')][_0x4bfb('0x45')],_0x172442=_0x3f514a[_0x4bfb('0x145')]&&_0x3f514a[_0x4bfb('0x145')]['length'];if(!_0x450818&&_0x2c0fa9(_0x2ba58e,_0x5c63b0))return _0x4e1e9e['_joinSuggestions'](_0x3f514a,_0x1cf184),_0x3e9ebc['delete'](_0x1cf184),!0x0;if(!_0x172442&&_0x2c0fa9(_0x5c63b0,_0x2ba58e))return _0x4e1e9e[_0x4bfb('0xf1')](_0x1cf184,_0x3f514a),_0x3e9ebc[_0x4bfb('0xcb')](_0x3f514a),!0x0;}return!0x1;}}[_0x4bfb('0xf1')](_0x533a89,_0xf9a183){if(_0x533a89[_0x4bfb('0x98')])for(const _0x29b019 of _0xf9a183[_0x4bfb('0xb6')]())_0x533a89['addRange'](_0x29b019);else{const _0x5e86be=_0xf9a183[_0x4bfb('0x107')]()[_0x4bfb('0x7c')];this[_0x4bfb('0x12')](_0x533a89,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x533a89[_0x4bfb('0x107')]()[_0x4bfb('0x33')],_0x5e86be));}_0xf9a183[_0x4bfb('0x9b')]();}}class Dt{constructor(_0x5b2210){this['_editor']=_0x5b2210,this[_0x4bfb('0x7d')]=_0x5b2210[_0x4bfb('0x11')],this[_0x4bfb('0xd8')]=new Map(),this[_0x4bfb('0x75')]=new Map(),this[_0x4bfb('0x9d')]();}[_0x4bfb('0x74')](_0x61b4d7,_0x2b7512,_0x4e310a,_0x188ccd,_0x37931e,_0x542dbf){return new _0x128731(this['_model'],{'type':_0x61b4d7,'subType':_0x2b7512,'id':_0x4e310a,'author':_0x188ccd,'creator':_0x188ccd,'attributes':_0x37931e,'onAttributesChange':_0x542dbf,'onAccept':(..._0x47ff2d)=>this[_0x4bfb('0x99')](_0x61b4d7,_0x2b7512,_0x4bfb('0xa6'))(..._0x47ff2d),'onDiscard':(..._0x287c37)=>this[_0x4bfb('0x99')](_0x61b4d7,_0x2b7512,_0x4bfb('0x123'))(..._0x287c37)});}[_0x4bfb('0xe3')](_0x4161f7,_0x23e196,_0x259f6f,_0x4cdd57){const _0x1f4b31=_0x4161f7+':'+_0x23e196+':'+_0x259f6f;this[_0x4bfb('0xd8')]['set'](_0x1f4b31,_0x4cdd57);}[_0x4bfb('0x99')](_0x1396a4,_0xba0b,_0x11c7d3){const _0x577c1c=_0x1396a4+':'+_0xba0b+':'+_0x11c7d3;return this[_0x4bfb('0xd8')][_0x4bfb('0x43')](_0x577c1c)||this['_defaultCallbacks'][_0x4bfb('0x43')](_0x1396a4+':'+_0x11c7d3);}[_0x4bfb('0x9d')](){const _0x39002e=()=>!0x1,_0x3b3f9f=_0x1db45c=>{_0x1db45c[_0x4bfb('0x62')]((_0xe1d662,_0x31e1e0)=>_0xe1d662[_0x4bfb('0x33')][_0x4bfb('0xee')](_0x31e1e0[_0x4bfb('0x33')])?0x1:-0x1),this[_0x4bfb('0x7d')][_0x4bfb('0x54')](_0x56c43d=>{for(const _0x257cea of _0x1db45c){let _0x58806d;_0x58806d=_0x257cea[_0x4bfb('0x7c')][_0x4bfb('0x49')]&&_0x257cea['end'][_0x4bfb('0x1f')]==_0x257cea['start'][_0x4bfb('0xa4')]?_0x56c43d[_0x4bfb('0xc8')](_0x257cea[_0x4bfb('0x33')][_0x4bfb('0xa4')],'on'):_0x56c43d[_0x4bfb('0xc8')](_0x257cea),this['_model']['deleteContent'](_0x58806d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43bb89=(_0x572d40,_0x18004b)=>{this['_model'][_0x4bfb('0x54')](_0x173389=>{const {commandName:_0x4fc399,commandParams:_0x39444b=[]}=_0x18004b,_0x1f539b=_0x572d40['map'](_0x111e8d=>(_t(_0x111e8d)&&(_0x111e8d=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x111e8d['end'])),_0x111e8d))[_0x4bfb('0x35')](_0x2d6e31=>_0x4bfb('0xe7')!==_0x2d6e31['root'][_0x4bfb('0x5a')]);if(_0x1f539b['length']<0x1)return;const _0x33f5cb=Array[_0x4bfb('0x70')](this['_model'][_0x4bfb('0xd1')][_0x4bfb('0xb2')][_0x4bfb('0xb6')]())['map'](_0x394b48=>_0x3b509a['fromRange'](_0x394b48));_0x173389[_0x4bfb('0x100')](_0x1f539b);for(const _0x3c09f8 of this[_0x4bfb('0xc7')]['commands']['commands']())_0x3c09f8[_0x4bfb('0x8')]();_0x39444b[_0x4bfb('0x13c')]({'forceDefaultExecution':!0x0}),this[_0x4bfb('0xc7')][_0x4bfb('0x129')](_0x4fc399,..._0x39444b);const _0x147980=_0x33f5cb[_0x4bfb('0x35')](_0x40f1a4=>'$graveyard'!=_0x40f1a4[_0x4bfb('0x12f')][_0x4bfb('0x5a')]);_0x147980[_0x4bfb('0x45')]>0x0&&_0x173389['setSelection'](_0x147980);for(const _0x565608 of _0x33f5cb)_0x565608['detach']();});},_0x4d8301=(_0x2e5416,_0x17a841)=>0x1==_0x2e5416[_0x4bfb('0x45')]&&0x1==_0x17a841[_0x4bfb('0x45')]&&_0x2e5416[0x0][_0x4bfb('0x7c')][_0x4bfb('0xba')](_0x17a841[0x0][_0x4bfb('0x33')]),_0x5dba5a=(_0x3c6c40,_0x5096c6,_0x2ce41e,_0x4a7fb1)=>jt(_0x3c6c40,_0x5096c6,_0x2ce41e,_0x4a7fb1,this['_model'])?[_0x3c6c40,_0x5096c6]:jt(_0x5096c6,_0x3c6c40,_0x4a7fb1,_0x2ce41e,this[_0x4bfb('0x7d')])?[_0x5096c6,_0x3c6c40]:null;this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x108'),_0x39002e),this['_defaultCallbacks']['set'](_0x4bfb('0x86'),_0x3b3f9f),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x5c'),_0x4d8301),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x117'),_0x5dba5a),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x51'),_0x3b3f9f),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x48'),_0x39002e),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x0'),_0x4d8301),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x12a'),_0x5dba5a),this[_0x4bfb('0x75')][_0x4bfb('0x8e')]('formatInline:accept',_0x43bb89),this[_0x4bfb('0x75')]['set']('formatInline:discard',_0x39002e),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x27'),_0x4d8301),this[_0x4bfb('0x75')]['set'](_0x4bfb('0xe0'),_0x39002e),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x2c'),_0x43bb89),this['_defaultCallbacks'][_0x4bfb('0x8e')](_0x4bfb('0xdb'),_0x39002e),this['_defaultCallbacks'][_0x4bfb('0x8e')](_0x4bfb('0xd7'),_0x4d8301),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x56'),_0x39002e);}}function Bt(_0x1567e2,_0x1320a5,_0x324774){for(const _0x128324 of _0x1320a5[_0x4bfb('0x1f')][_0x4bfb('0x57')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x128324[_0x4bfb('0x12f')]==_0x128324)return!0x1;if(!_0x324774[_0x4bfb('0xca')](_0x128324))return!0x1;if(_0x1567e2[_0x4bfb('0x144')](_0x128324)||_0x1567e2['isLimit'](_0x128324))return!0x0;}return!0x1;}function _t(_0x4fd08a){return _0x4fd08a['end']['parent']==_0x4fd08a[_0x4bfb('0x33')][_0x4bfb('0xa4')]&&_0x4fd08a['end'][_0x4bfb('0x82')];}function Mt(_0x5c079b,_0x543e18,_0x42251d,_0x3f99b0){const _0x33d6e9=_0x543db1=>!_0x543db1[_0x4bfb('0x113')]['is'](_0x4bfb('0x79'))&&!_0x3f99b0['isObject'](_0x543db1[_0x4bfb('0x113')]),_0x12a729=_0x5c079b[_0x4bfb('0x33')][_0x4bfb('0xc')](_0x33d6e9),_0x3afb27=_0x5c079b[_0x4bfb('0x7c')][_0x4bfb('0xc')](_0x33d6e9,{'direction':_0x4bfb('0x13a')});return(!_0x5c079b[_0x4bfb('0x33')][_0x4bfb('0xba')](_0x12a729)||!_0x5c079b[_0x4bfb('0x7c')][_0x4bfb('0xba')](_0x3afb27))&&(_0x12a729[_0x4bfb('0xee')](_0x3afb27)?_0x42251d[_0x4bfb('0x2d')](_0x543e18,{'range':_0x42251d[_0x4bfb('0xdf')](_0x12a729,_0x3afb27)}):_0x42251d[_0x4bfb('0x3b')](_0x543e18),!0x0);}function $t(_0x32ab4b){return _0x5225a2(_0x32ab4b);}function Nt(_0x4eebca){const _0x216096=_0x4eebca['start'][_0x4bfb('0xa4')];return _0x216096&&_0x216096['is'](_0x4bfb('0x88'));}function Rt(_0x5d2105,_0x2c7215){const _0xb3c8d8=_0x2c7215[_0x4bfb('0x1b')]['isObject'](_0x5d2105)||_0x2c7215[_0x4bfb('0x1b')][_0x4bfb('0x1')](_0x5d2105);return _0x2c7215[_0x4bfb('0xdf')](_0x2c7215[_0x4bfb('0x84')](_0x5d2105,'before'),_0xb3c8d8?_0x2c7215['createPositionAfter'](_0x5d2105):_0x2c7215['createPositionAt'](_0x5d2105,_0x4bfb('0x7c')));}function jt(_0xb84d2,_0x31d3ac,_0x21df2b,_0x5ae443,_0x44751c){if(!xt(_0xb84d2,_0x31d3ac))return!0x1;if(_0x21df2b[_0x4bfb('0x7c')]['isEqual'](_0x5ae443[_0x4bfb('0x33')]))return!0x0;if(_0xb84d2[_0x4bfb('0x66')]!=_0x31d3ac[_0x4bfb('0x66')])return!0x1;if(!_0x21df2b[_0x4bfb('0x7c')][_0x4bfb('0xb5')](_0x5ae443[_0x4bfb('0x33')]))return!0x1;const _0x5a9670=_0x44751c[_0x4bfb('0xdf')](_0x21df2b[_0x4bfb('0x7c')],_0x5ae443[_0x4bfb('0x33')])[_0x4bfb('0x12c')]();for(const _0x1484e0 of _0x5a9670)if([_0x4bfb('0x6d'),_0x4bfb('0x76')][_0x4bfb('0x2e')](_0x1484e0[_0x4bfb('0x66')])&&_0x44751c['schema']['isLimit'](_0x1484e0[_0x4bfb('0x113')]))return!0x1;return!0x0;}function xt(_0x13d794,_0xab7874){return!(!_0x13d794['_isDataLoaded']||!_0xab7874['_isDataLoaded'])&&_0x2821ce(_0x13d794[_0x4bfb('0x10e')],_0xab7874[_0x4bfb('0x10e')]);}function Ut(_0x19442c,_0x2326fd){const _0x271e31=Ot(_0x19442c[_0x4bfb('0x10e')]),_0x233677=Ot(_0x2326fd);if(!_0x19442c['_isDataLoaded'])return!0x1;for(const _0x407046 of Object['keys'](_0x233677))if(!_0x2821ce(_0x271e31[_0x407046],_0x233677[_0x407046]))return!0x1;return!0x0;}function Ot(_0x31c4cc){const _0x373cff=Object[_0x4bfb('0x3f')]({},_0x31c4cc);return delete _0x373cff[_0x4bfb('0x4c')],delete _0x373cff[_0x4bfb('0x11e')],_0x373cff;}
23
+ const _0x2f59=['getFirstRange','locale','moveTargetPosition','isAfter','authoredAt','containerElement','then','stop','oldRange','getWalker','resolve','accepted','commandName','track-changes-adapter-already-set','markerToData','removeMarker:suggestion:formatBlock','ck-suggestion-marker','addClass','start','getNearestSelectionRange','discardSelectedSuggestions','createRange','data','editingDowncast','_registerDefaultCallbacks','addSuggestion','formatBlock:join','_splitMarkerName','originalSuggestionId','formatGroupId','normal','insertion','getSuggestionCallback','config','_handleNewSuggestionMarker','error-saving-suggestion-data-suggestion-discarded','change','setSelection','markerToHighlight','change:data','isMultiRange','isExternal','acceptSelectedSuggestions','add','forceDefaultExecution','root','head','splice','track-changes-suggestion-not-found','define','removed','ck-suggestion-marker-','formatInline:join','backward','from','for','low','selection','_editor','move','@external','updateMarker','formatInline:accept','addSuggestionData','targetPosition','join','_saved','PendingActions','track-changes-adapter-missing-getsuggestion','listenTo','containsItem','group','value','addRange','_suggestionState','creator','isSelectable','isDocumentOperation','ck-suggestion-marker-formatBlock','_customCallbacks','_setSuggestionData','plugins','_onDiscard','_commentsRepository','deletion:chain','_joinWithAdjacentSuggestions','suggestion','applyOperation','track-changes-user-not-found','refresh','_setSuggestionRange','_updateSuggestionData','element','always','editing','isBefore','stopListening','deletion:discard','$textProxy','_addThreadToSuggestion','addMarker:suggestion:formatBlock','_rangeIsInLocalUserInsertion','accept','length','updateSuggestion','ready','_adapter','suggestionUnloaded','previous','discardSuggestion','writer','markers','insertion:chain','getRange','detach','deletion','discard','suggestion:','getChangedMarkers','unbind','_refreshSuggestionsChain','_defaultCallbacks','clone','howMany','_removeSuggestion','discardAllSuggestions','getUser','never','commentThread','track-changes-suggestion-data-mismatch','setAttribute','chain','options','nodeBefore','addUser','_suggestions','getMarkers','removeClass','reconvertMarker','createPositionBefore','_breakSuggestionMarker','widget','end','hasCommentThread','isArray','isNextTo','elementToElement','conversion','insertion:join','remove','item','position','markerReady','isBlock','containsRange','catch','trackChangesCommand','toViewElement','getAllAdjacentSuggestions','createPositionAt','deletion:accept','formatInline','attributes','dataToMarker','isCollapsed','nodeAfter','registerCustomCallback','next','values','_mergeNestedSuggestions','activeMarkers','containsPosition','splitPosition','fire','model','addHighlight','_suggestionFactory','isObject','fromCharCode','substr','rejected','_isForcedDefaultExecutionBlock','getIntersection','notReady','update:suggestion','PENDING_ACTION_SUGGESTION','sort','newRange','some','size','getCustomProperty','_getExternalAuthor','multi','documentSelection','createSelection','multipleBlocks','acceptSuggestion','markInsertion','_getSuggestionData','markMultiRangeDeletion','removeMarker','_findSuggestions','dataReady','_addSuggestionMarker','range','createElement','_joinSuggestions','mapper','change:activeMarkers','_getAuthorFromId','formatBlock','collaboration.channelId','formatInline:','editor','consumable','tablePasteChainId','enableCommand','batch','dataDowncast','getShiftedBy','commands','document','rootName','trackChanges.mergeNestedSuggestions','formatBlock:','addMarkerName','trackChanges','isRemovable','deletion:','bindElementToMarker','consume','push','showSuggestionHighlights','markMultiRangeInsertion','elementStart','markerName','parent','formatBlock:accept','trackChanges.trackFormatChanges','init','_enabledCommands','_model','upcast','acceptAllSuggestions','every','_createSuggestion','skipNestingCheck','addCommentThread','buildSuggestion','type','split','getMultiRangeId','registerPostFixer','get','addComment','insertContent','Users','high','assign','isAtStart','formatInline:discard','includes','differ','getChanges','ck-suggestion-marker--active','has','schema','external:','change:_saved','addMarker','getLastMatchingPosition','rethrowUnexpectedError','name','_checkSuggestionCorrectness','_cutOutSuggestionMarker','open','containsRangeInObject','_trackFormatChanges','author','isInsideObject','subType','suggestionChanged','isInContent','map','getCommentThread','deleteContent','requires','isIntersectingWithRange','set','delete','createdAt','addMarker:suggestion','removeMarkers','getFirstMarker','isAtEnd','hasSuggestion','isEqual','suggestion-type','suggestionLoaded','getItems','isLimit','after','insertion:','$graveyard','_isDataLoaded','getAncestors','adapter','getDifference','isOwn','getRanges','execute','CommentsRepository','filter','getAttribute','marker-count','hasComments','getSuggestion','formatBlock:discard','toJSON','unbindElementFromMarkerName','insertion:discard','clear','getSuggestions'];(function(_0xf4ba58,_0x2f5991){const _0x37eb2a=function(_0x329f17){while(--_0x329f17){_0xf4ba58['push'](_0xf4ba58['shift']());}};_0x37eb2a(++_0x2f5991);}(_0x2f59,0xa4));const _0x37eb=function(_0xf4ba58,_0x2f5991){_0xf4ba58=_0xf4ba58-0x0;let _0x37eb2a=_0x2f59[_0xf4ba58];return _0x37eb2a;};import{Plugin as _0x4f925a,PendingActions as _0x4ef2af}from'ckeditor5/src/core';import{LiveRange as _0x4586a9}from'ckeditor5/src/engine';import{CKEditorError as _0x1805df,uid as _0x1f3984,priorities as _0x41825d,logWarning as _0x16f58e}from'ckeditor5/src/utils';import{toWidget as _0x54fb95}from'ckeditor5/src/widget';import{Users as _0x2a8a63,hashObject as _0x10009b}from'ckeditor5-collaboration/src/collaboration-core';import _0x173bdd from'./commands/trackchangescommand';import _0x271455 from'./commands/acceptsuggestioncommand';import _0x1e70cd from'./commands/discardsuggestioncommand';import _0x4d89c9 from'./commands/executeonallsuggestionscommand';import _0x2136f0 from'./commands/executeonselectedsuggestionscommand';import _0x5d4473 from'./suggestion';import _0x2a6692 from'./suggestiondescriptionfactory';import _0x505dfd from'./integrations/alignment';import _0x3ddcf9 from'./integrations/basicstyles';import _0x3eefd2 from'./integrations/blockquote';import _0x2c78a7 from'./integrations/ckbox';import _0x4d051d from'./integrations/codeblock';import _0x292c35 from'./integrations/comments';import _0x493553 from'./integrations/deletecommand';import _0x5c588a from'./integrations/documentlist';import _0x2d82da from'./integrations/entercommand';import _0x17877a from'./integrations/findandreplace';import _0x13294c from'./integrations/font';import _0x38240d from'./integrations/formatpainter';import _0x480c20 from'./integrations/heading';import _0x1d1339 from'./integrations/highlight';import _0x3849c from'./integrations/horizontalline';import _0x596a49 from'./integrations/htmlembed';import _0x47f05b from'./integrations/image';import _0x3a80b2 from'./integrations/imagereplace';import _0x134e79 from'./integrations/importword';import _0x56a243 from'./integrations/indent';import _0x3c65fb from'./integrations/inputcommand';import _0x2df648 from'./integrations/link';import _0x2f1b10 from'./integrations/list';import _0x12927a from'./integrations/listproperties';import _0x4b313d from'./integrations/mediaembed';import _0x1fda9c from'./integrations/mention';import _0x6413eb from'./integrations/pagebreak';import _0x909a8 from'./integrations/paragraph';import _0x67b85c from'./integrations/removeformat';import _0x5a0a13 from'./integrations/restrictededitingmode';import _0x17073d from'./integrations/shiftentercommand';import _0x41605d from'./integrations/standardeditingmode';import _0x239539 from'./integrations/style';import _0x556153 from'./integrations/table';import _0x421ffe from'./integrations/tablemergesplit';import _0x540ea5 from'./integrations/tableheadings';import _0x269e22 from'./integrations/tableclipboard';import _0x56e28 from'./integrations/tablecolumnresize';import _0x56337a from'./integrations/template';import _0x311307 from'./integrations/tableofcontents';import _0x8a4995 from'./integrations/title';import _0x446234 from'./integrations/undo';import{getTranslation as _0x116ea4}from'./utils/common-translations';import _0x4070c2 from'./integrations/tablecaption';import _0x51f3bf from'./integrations/documentlistproperties';import _0x560b9f from'./integrations/tableproperties';import{isEqual as _0x49024e}from'lodash-es';export default class p extends _0x4f925a{static get[_0x37eb('0x7a')](){return[_0x37eb('0x93'),_0x2a8a63,_0x4ef2af,_0x505dfd,_0x3ddcf9,_0x3eefd2,_0x2c78a7,_0x4d051d,_0x292c35,_0x493553,_0x5c588a,_0x51f3bf,_0x2d82da,_0x17877a,_0x13294c,_0x38240d,_0x480c20,_0x1d1339,_0x3849c,_0x596a49,_0x47f05b,_0x3a80b2,_0x134e79,_0x56a243,_0x3c65fb,_0x2df648,_0x2f1b10,_0x12927a,_0x4b313d,_0x1fda9c,_0x6413eb,_0x909a8,_0x67b85c,_0x5a0a13,_0x17073d,_0x41605d,_0x239539,_0x556153,_0x421ffe,_0x540ea5,_0x4070c2,_0x269e22,_0x56e28,_0x311307,_0x560b9f,_0x56337a,_0x8a4995,_0x446234];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x283cee){function _0x19822e(_0x4d695a){return _0x4d695a[_0x37eb('0x77')](_0x3806d4=>String[_0x37eb('0xe')](_0x3806d4))['join']('');}super(_0x283cee),this[_0x37eb('0x7c')](_0x37eb('0x6'),[]),this['on'](_0x37eb('0x2c'),(_0x3b98c3,_0x268d7d,_0x2d13cf,_0x37efcf)=>{this[_0x37eb('0x4d')][_0x37eb('0xc3')](()=>{for(const _0x7dda34 of[..._0x37efcf,..._0x2d13cf])this['_model'][_0x37eb('0x10e')][_0x37eb('0x65')](_0x7dda34)&&_0x283cee[_0x37eb('0xfd')][_0x37eb('0x129')](_0x7dda34);});}),this['_descriptionFactory']=new _0x2a6692(this[_0x37eb('0x31')][_0x37eb('0xa')][_0x37eb('0x66')],this['editor'][_0x37eb('0xa0')]),this[_0x37eb('0x109')]=null,this['_suggestionFactory']=new Dt(this[_0x37eb('0x31')]),this[_0x37eb('0x126')]=new Map(),this[_0x37eb('0xf2')]=_0x283cee['plugins']['get'](_0x37eb('0x93')),this[_0x37eb('0x4c')]=new Set(),this[_0x37eb('0x4d')]=this['editor'][_0x37eb('0xa')],this['_suggestionState']=new WeakMap(),this[_0x37eb('0x11')]=!0x1,_0x283cee[_0x37eb('0xc0')][_0x37eb('0xd0')](_0x37eb('0x4a'),'default'),this[_0x37eb('0x71')]=_0x283cee[_0x37eb('0xc0')][_0x37eb('0x59')](_0x37eb('0x4a')),_0x283cee[_0x37eb('0xc0')][_0x37eb('0xd0')](_0x37eb('0x3b'),!0x0),this[_0x37eb('0x5')]=_0x283cee['config'][_0x37eb('0x59')]('trackChanges.mergeNestedSuggestions'),this[_0x37eb('0x13b')]=new _0x173bdd(_0x283cee,this[_0x37eb('0x4c')]),this[_0x19822e([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x19822e([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x32]);}[_0x37eb('0x4b')](){const _0x17a325=this[_0x37eb('0x31')];_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')]('editingDowncast')[_0x37eb('0xc5')]({'model':_0x37eb('0xf5'),'view':_0x25a798=>{const {id:_0x5adcb0,type:_0x395c94}=this[_0x37eb('0xba')](_0x25a798['markerName']),_0x2470b4=['ck-suggestion-marker',_0x37eb('0xd2')+_0x395c94];let _0x287545=0xbb8;return this[_0x37eb('0x6')][_0x37eb('0x61')](_0x25a798[_0x37eb('0x47')])&&(_0x2470b4[_0x37eb('0x43')](_0x37eb('0x64')),_0x287545=0xbc2),_0x37eb('0x112')==_0x395c94&&(_0x287545+=0x5),{'classes':_0x2470b4,'attributes':{'data-suggestion':_0x5adcb0},'priority':_0x287545};}}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')]('dataDowncast')[_0x37eb('0xca')](_0x341003=>{_0x341003['on'](_0x37eb('0x7f'),(_0xd30b17,_0x5be7d6,_0x27704b)=>{if(!_0x27704b[_0x37eb('0x123')]['showSuggestionHighlights'])return;const _0x135418=_0x5be7d6['item'];if(!_0x135418)return;const _0x33a9a0=_0x27704b['mapper'][_0x37eb('0x13c')](_0x135418);_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')][_0x37eb('0xd')](_0x135418)&&_0x33a9a0&&!_0x33a9a0[_0x37eb('0x1a')](_0x37eb('0x12c'))&&_0x33a9a0['is'](_0x37eb('0xa4'))&&_0x54fb95(_0x33a9a0,_0x27704b['writer']);},{'priority':_0x37eb('0x5d')});}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0x36'))[_0x37eb('0xc5')]({'model':_0x37eb('0xf5'),'view':(_0x342865,_0x5cf494)=>{if(!_0x5cf494[_0x37eb('0x123')][_0x37eb('0x44')])return null;const {type:_0x1f15a0}=this['_splitMarkerName'](_0x342865[_0x37eb('0x47')]);return{'classes':[_0x37eb('0xaf'),'ck-suggestion-marker-'+_0x1f15a0],'priority':0xbb8};}});const _0x210339=({showActiveMarkers:_0x54f8ea=!0x0}={})=>(_0x5a8360,_0x2b4b6b,_0x3efc43)=>{if(!_0x2b4b6b[_0x37eb('0x135')])return;if(_0x2b4b6b['item']['is'](_0x37eb('0xd8')))return void _0x3efc43[_0x37eb('0x32')][_0x37eb('0x42')](_0x2b4b6b['item'],_0x5a8360[_0x37eb('0x6c')]);const _0x563f09=_0x3efc43['mapper'][_0x37eb('0x13c')](_0x2b4b6b[_0x37eb('0x135')]);if(!(_0x2b4b6b['item']['is'](_0x37eb('0xfb'))&&_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')]['isBlock'](_0x2b4b6b[_0x37eb('0x135')])&&!_0x563f09[_0x37eb('0x1a')](_0x37eb('0xb'))))return;const {id:_0x3017a5}=this[_0x37eb('0xba')](_0x2b4b6b[_0x37eb('0x47')]);_0x3efc43[_0x37eb('0x10d')]['addClass'](['ck-suggestion-marker',_0x37eb('0xed')],_0x563f09),_0x3efc43['writer'][_0x37eb('0x121')]('data-suggestion',_0x3017a5,_0x563f09),_0x3efc43[_0x37eb('0x2b')][_0x37eb('0x41')](_0x563f09,_0x2b4b6b['markerName']),_0x54f8ea&&(this['activeMarkers'][_0x37eb('0x61')](_0x2b4b6b[_0x37eb('0x47')])?_0x3efc43['writer'][_0x37eb('0xb0')](_0x37eb('0x64'),_0x563f09):_0x3efc43[_0x37eb('0x10d')][_0x37eb('0x128')](_0x37eb('0x64'),_0x563f09));for(const _0x278158 of _0x17a325[_0x37eb('0xa')]['createRangeIn'](_0x2b4b6b[_0x37eb('0x135')])[_0x37eb('0x87')]())_0x3efc43[_0x37eb('0x32')][_0x37eb('0x42')](_0x278158,_0x5a8360['name']);_0x3efc43[_0x37eb('0x32')][_0x37eb('0x42')](_0x2b4b6b[_0x37eb('0x135')],_0x5a8360[_0x37eb('0x6c')]);};_0x17a325[_0x37eb('0x132')]['for'](_0x37eb('0x36'))['add'](_0x527b71=>{_0x527b71['on']('addMarker:suggestion:formatBlock',(_0x2848cb,_0x73f73a,_0x55d0fd)=>{_0x55d0fd[_0x37eb('0x123')][_0x37eb('0x44')]&&_0x210339({'showActiveMarkers':!0x1})(_0x2848cb,_0x73f73a,_0x55d0fd);},{'priority':'highest'});}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0x36'))[_0x37eb('0xad')]({'model':_0x37eb('0xf5'),'view':(_0x539156,_0x59ba06)=>_0x59ba06[_0x37eb('0x123')]['showSuggestionHighlights']?null:{'group':_0x37eb('0xf5'),'name':_0x539156[_0x37eb('0xf')](0xb)}}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0x4e'))[_0x37eb('0x131')]({'view':{'name':_0x37eb('0xf5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ec598,{writer:_0x1c6c14})=>{let _0x32e6c7=_0x37eb('0x114')+_0x1ec598['getAttribute'](_0x37eb('0x85'))+':'+_0x1ec598[_0x37eb('0x95')]('id');return _0x1ec598[_0x37eb('0x95')](_0x37eb('0x96'))&&(_0x32e6c7+=':'+_0x1ec598[_0x37eb('0x95')](_0x37eb('0x96'))),_0x1c6c14[_0x37eb('0x29')]('$marker',{'data-name':_0x32e6c7});}}),_0x17a325['conversion']['for'](_0x37eb('0x4e'))[_0x37eb('0x142')]({'view':_0x37eb('0xf5')}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')]('editingDowncast')[_0x37eb('0xca')](_0x534e16=>{_0x534e16['on'](_0x37eb('0x103'),_0x210339(),{'priority':_0x37eb('0x5d')});}),_0x17a325[_0x37eb('0x132')][_0x37eb('0xd6')](_0x37eb('0xb6'))['add'](_0x29cd6d=>{_0x29cd6d['on'](_0x37eb('0xae'),(_0x288e6e,_0x2b2fbb,_0x3605d9)=>{const _0x30ce07=_0x3605d9[_0x37eb('0x2b')]['markerNameToElements'](_0x2b2fbb[_0x37eb('0x47')]);if(_0x30ce07)for(const _0xa3de6b of _0x30ce07)_0xa3de6b['getCustomProperty'](_0x37eb('0xb'))||(_0x3605d9['writer'][_0x37eb('0x128')]([_0x37eb('0xaf'),'ck-suggestion-marker-formatBlock',_0x37eb('0x64')],_0xa3de6b),_0x3605d9[_0x37eb('0x10d')]['removeAttribute']('data-suggestion',_0xa3de6b),_0x3605d9[_0x37eb('0x2b')][_0x37eb('0x9b')](_0xa3de6b,_0x2b2fbb[_0x37eb('0x47')]));},{'priority':_0x37eb('0x5d')});}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')][_0x37eb('0x58')](_0x40a818=>{let _0x1d6bc1=!0x1;const _0xd515b=Array[_0x37eb('0xd5')](_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')][_0x37eb('0x62')][_0x37eb('0x115')]()),_0x39971c=new Set();for(const {name:_0x24929b,data:_0x31c30f}of _0xd515b){const {group:_0x40eaee,type:_0x3459fd,id:_0x3058e1}=this[_0x37eb('0xba')](_0x24929b);if(_0x37eb('0xf5')!==_0x40eaee)continue;const _0x2e9141=this['_suggestions'][_0x37eb('0x59')](_0x3058e1);if(null!=_0x31c30f[_0x37eb('0x17')]){_0x37eb('0x140')==_0x3459fd&&(_0x1d6bc1=_0x1d6bc1||Mt(_0x31c30f['newRange'],_0x24929b,_0x40a818,_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')]));if(_0x31c30f[_0x37eb('0x17')]['isCollapsed']||_0x37eb('0x8b')==_0x31c30f[_0x37eb('0x17')][_0x37eb('0xcc')][_0x37eb('0x3a')]||_0x37eb('0x2e')==_0x3459fd&&!Nt(_0x31c30f[_0x37eb('0x17')])||'deletion'==_0x3459fd&&!(!_t(_0x572c7f=_0x31c30f[_0x37eb('0x17')])&&!function(_0x1ba415){return _0x1ba415[_0x37eb('0xb1')][_0x37eb('0x48')]==_0x1ba415['end'][_0x37eb('0x124')]&&_0x1ba415[_0x37eb('0xb1')][_0x37eb('0x82')];}(_0x572c7f)))_0x40a818[_0x37eb('0x24')](_0x24929b),_0x1d6bc1=!0x0;else{if(!_0x2e9141||!_0x2e9141[_0x37eb('0x76')])continue;_0x39971c[_0x37eb('0xca')](_0x2e9141);}}}var _0x572c7f;return _0x39971c[_0x37eb('0x19')]>0x0&&(_0x1d6bc1=!!this[_0x37eb('0xf4')](_0x39971c)||_0x1d6bc1),_0x1d6bc1;}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')]['registerPostFixer'](_0x3c1a13=>{let _0x282950=!0x1;for(const _0xcd4d5e of _0x17a325[_0x37eb('0xa')][_0x37eb('0x39')]['differ'][_0x37eb('0x63')]()){if('insert'!=_0xcd4d5e[_0x37eb('0x55')])continue;const _0x3647c1=_0xcd4d5e[_0x37eb('0x136')][_0x37eb('0x37')](_0xcd4d5e[_0x37eb('0x106')]);if(_0x3647c1[_0x37eb('0x82')])for(const _0xf468c of this['_suggestions'][_0x37eb('0x4')]()){if(_0xf468c['isMultiRange']||!_0xf468c[_0x37eb('0x76')])continue;if(_0x37eb('0x2e')!=_0xf468c['type'])continue;const _0x2a5110=_0xf468c[_0x37eb('0x9f')]();if(_0x2a5110[_0x37eb('0xb1')][_0x37eb('0x48')]!=_0x2a5110[_0x37eb('0x12d')][_0x37eb('0x48')]&&_0x2a5110[_0x37eb('0x12d')][_0x37eb('0x84')](_0xcd4d5e['position'])){const _0x47ec78=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0x2a5110['start'],_0x3647c1);_0x3c1a13['updateMarker'](_0xf468c['getFirstMarker'](),{'range':_0x47ec78}),_0x282950=!0x0;}}}return _0x282950;}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x10e')]['on'](_0x37eb('0x14'),(_0x270054,_0x13758b,_0x504595)=>{if(null==_0x504595){const {id:_0x7881b9}=this[_0x37eb('0xba')](_0x13758b[_0x37eb('0x6c')]),_0x47c41e=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x7881b9);_0x47c41e&&_0x47c41e[_0x37eb('0x3d')](_0x13758b[_0x37eb('0x6c')]);}}),_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')]['on'](_0x37eb('0xc6'),()=>{const _0x3aac3c=Array['from'](_0x17a325[_0x37eb('0xa')][_0x37eb('0x39')][_0x37eb('0x62')]['getChangedMarkers']())[_0x37eb('0x94')](_0x50ecc0=>_0x37eb('0xf5')===this['_splitMarkerName'](_0x50ecc0[_0x37eb('0x6c')])[_0x37eb('0xe6')]);if(0x0===_0x3aac3c[_0x37eb('0x106')])return;_0x3aac3c[_0x37eb('0x16')]((_0x519b97,_0x2057cc)=>{const _0x153f56=_0x519b97['data'][_0x37eb('0xa7')],_0x2faae8=_0x2057cc[_0x37eb('0xb5')][_0x37eb('0xa7')];return null===_0x153f56&&null===_0x2faae8?0x0:null===_0x153f56&&null!==_0x2faae8?-0x1:null!==_0x153f56&&null===_0x2faae8?0x1:_0x153f56[_0x37eb('0xb1')][_0x37eb('0xfe')](_0x2faae8[_0x37eb('0xb1')])?-0x1:0x1;});const _0x2b1845=new Set(),_0x2148e5=new Set();for(const {name:_0x250cf6,data:_0x5c12c2}of _0x3aac3c){const {id:_0xaecfdb}=this[_0x37eb('0xba')](_0x250cf6);if(null===_0x5c12c2[_0x37eb('0xa7')]){const _0x2e187f=this['_handleNewSuggestionMarker'](_0x250cf6);_0x2148e5[_0x37eb('0xca')](_0x2e187f);}else{const _0x64cc8e=this[_0x37eb('0x126')][_0x37eb('0x59')](_0xaecfdb);null!==_0x5c12c2[_0x37eb('0x17')]||_0x64cc8e[_0x37eb('0x76')]?(_0x2b1845[_0x37eb('0xca')](_0x64cc8e[_0x37eb('0xcd')]),_0x2148e5[_0x37eb('0xca')](_0x64cc8e)):this[_0x37eb('0x11b')](_0x64cc8e);}}_0x2148e5[_0x37eb('0x19')]>0x0&&this[_0x37eb('0x117')](_0x2148e5);for(const _0x1052eb of _0x2b1845)this[_0x37eb('0x9')]('suggestionChanged',_0x1052eb);}),_0x17a325[_0x37eb('0xa')]['on'](_0x37eb('0xf6'),(_0x243551,_0x4802b5)=>{const _0x1d2ec1=_0x4802b5[0x0];if(!this[_0x37eb('0x126')][_0x37eb('0x19')])return;if(!_0x1d2ec1[_0x37eb('0xec')])return;if(_0x1d2ec1[_0x37eb('0x35')]['isUndo']||!_0x1d2ec1[_0x37eb('0x35')]['isLocal'])return;let _0xb9b560,_0xd950c4;switch(_0x1d2ec1[_0x37eb('0x55')]){case'insert':_0xb9b560=_0x17a325['model'][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0x136')]),_0xd950c4=_0xb9b560[_0x37eb('0x37')](_0x1d2ec1[_0x37eb('0x11a')]);break;case _0x37eb('0x56'):_0xb9b560=_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0x8')]),_0xd950c4=_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0xa1')]);break;case _0x37eb('0xda'):_0xb9b560=_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x1d2ec1[_0x37eb('0xdf')]),_0xd950c4=_0xb9b560[_0x37eb('0x37')](_0x1d2ec1[_0x37eb('0x11a')]);break;default:return;}const _0x4c36d7=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0xb9b560,_0xd950c4);_0x17a325[_0x37eb('0xa')][_0x37eb('0xc3')](()=>{for(const {suggestion:_0xb67a22,meta:_0x4c2155}of this['_findSuggestions'](_0x4c36d7)){if(_0xb67a22[_0x37eb('0xc7')])continue;if('formatInline'==_0xb67a22[_0x37eb('0x55')])continue;const _0xe0427d=_0xb67a22[_0x37eb('0xb5')]&&_0xb67a22[_0x37eb('0xb5')][_0x37eb('0x1f')];(_0x37eb('0x2e')!=_0xb67a22[_0x37eb('0x55')]||_0x37eb('0x56')==_0x1d2ec1[_0x37eb('0x55')]&&!_0xe0427d)&&(_0x4c2155['containsRangeInObject']||_0x37eb('0xbe')==_0xb67a22[_0x37eb('0x55')]&&_0x4c2155[_0x37eb('0x90')]||_0xb67a22[_0x37eb('0x9f')]()[_0x37eb('0x139')](_0x4c36d7)&&this[_0x37eb('0x12b')](_0xb67a22,_0xb9b560,_0xd950c4));}});},{'priority':'lowest'}),_0x17a325['model']['on'](_0x37eb('0x79'),(_0x5b216f,_0x1a970d)=>{const _0x217ae8=_0x1a970d[0x0],_0xcb036e=_0x1a970d[0x1];if(_0xcb036e&&_0xcb036e['forceDefaultExecution'])return;if(this[_0x37eb('0x11')])return;if(!this[_0x37eb('0x13b')][_0x37eb('0xe7')])return;if(_0x217ae8[_0x37eb('0x0')])return;const _0x1dc3ff=_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')],{start:_0x1b085c,end:_0x3965bb}=_0x217ae8['getFirstRange'](),_0x47f9fa=_0x1b085c[_0x37eb('0x1')]&&_0x1dc3ff['isLimit'](_0x1b085c[_0x37eb('0x1')])?null:_0x1dc3ff[_0x37eb('0xb2')](_0x1b085c,'forward'),_0x40cb45=_0x3965bb[_0x37eb('0x124')]&&_0x1dc3ff[_0x37eb('0x88')](_0x3965bb['nodeBefore'])?null:_0x1dc3ff[_0x37eb('0xb2')](_0x3965bb,_0x37eb('0xd4')),_0x219f78=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0x47f9fa?_0x47f9fa['start']:_0x1b085c,_0x40cb45?_0x40cb45['end']:_0x3965bb);_0x17a325[_0x37eb('0xa')][_0x37eb('0xc3')](_0x2b3f54=>{this['markDeletion'](_0x219f78);const _0x6d3bf=_0x17a325[_0x37eb('0xa')][_0x37eb('0x66')][_0x37eb('0xb2')](_0x219f78[_0x37eb('0xb1')]);_0x217ae8['is'](_0x37eb('0x1d'))?_0x2b3f54[_0x37eb('0xc4')](_0x6d3bf):_0x217ae8['setTo'](_0x6d3bf);}),_0x5b216f['stop']();},{'priority':_0x41825d[_0x37eb('0xbd')]+0xa}),_0x17a325[_0x37eb('0xa')]['on'](_0x37eb('0x5b'),(_0x10b962,_0x4b1f1d)=>{const _0x315393=_0x4b1f1d[_0x4b1f1d[_0x37eb('0x106')]-0x1];_0x315393&&_0x315393[_0x37eb('0xcb')]||this[_0x37eb('0x11')]||this[_0x37eb('0x13b')][_0x37eb('0xe7')]&&(_0x17a325[_0x37eb('0xa')]['change'](()=>{let _0x14d794=_0x17a325[_0x37eb('0xa')][_0x37eb('0x5b')](_0x4b1f1d[0x0],_0x4b1f1d[0x1],_0x4b1f1d[0x2],{'forceDefaultExecution':!0x0});if(!_0x14d794)return;_0x10b962['return']=_0x14d794[_0x37eb('0x119')]();const _0x2c04bd=_0x14d794[_0x37eb('0x12d')][_0x37eb('0x124')],_0x49696c=_0x17a325[_0x37eb('0xa')]['schema'];_0x2c04bd&&_0x49696c[_0x37eb('0x138')](_0x2c04bd)&&!_0x49696c['isObject'](_0x2c04bd)&&(_0x14d794=_0x17a325[_0x37eb('0xa')][_0x37eb('0xb4')](_0x14d794[_0x37eb('0xb1')],_0x17a325[_0x37eb('0xa')][_0x37eb('0x13e')](_0x2c04bd,_0x37eb('0x12d')))),this[_0x37eb('0x21')](_0x14d794);}),_0x10b962[_0x37eb('0xa6')]());},{'priority':_0x37eb('0x5d')}),this[_0x37eb('0x31')][_0x37eb('0x38')][_0x37eb('0xca')]('trackChanges',this[_0x37eb('0x13b')]),this[_0x37eb('0x34')](_0x37eb('0x3e'));const _0x45ecae=new _0x271455(_0x17a325,this[_0x37eb('0x126')]);_0x17a325[_0x37eb('0x38')][_0x37eb('0xca')]('acceptSuggestion',_0x45ecae),this[_0x37eb('0x34')](_0x37eb('0x20'));const _0x25a293=new _0x1e70cd(_0x17a325,this[_0x37eb('0x126')]);_0x17a325['commands'][_0x37eb('0xca')]('discardSuggestion',_0x25a293),this[_0x37eb('0x34')](_0x37eb('0x10c')),_0x17a325['commands'][_0x37eb('0xca')](_0x37eb('0x4f'),new _0x4d89c9(_0x17a325,_0x45ecae,this[_0x37eb('0x126')])),this['enableCommand'](_0x37eb('0x4f')),_0x17a325[_0x37eb('0x38')][_0x37eb('0xca')]('discardAllSuggestions',new _0x4d89c9(_0x17a325,_0x25a293,this[_0x37eb('0x126')])),this[_0x37eb('0x34')](_0x37eb('0x11c')),_0x17a325[_0x37eb('0x38')]['add']('acceptSelectedSuggestions',new _0x2136f0(_0x17a325,_0x45ecae,this[_0x37eb('0x126')])),this['enableCommand'](_0x37eb('0xc9')),_0x17a325[_0x37eb('0x38')][_0x37eb('0xca')](_0x37eb('0xb3'),new _0x2136f0(_0x17a325,_0x25a293,this['_suggestions'])),this[_0x37eb('0x34')]('discardSelectedSuggestions');const _0x28cebf=_0x17a325[_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x93'));this[_0x37eb('0xe4')](_0x28cebf,_0x37eb('0x5a'),(_0x531af5,{threadId:_0x4ab21d})=>{const _0x2b1cf=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x4ab21d);_0x2b1cf&&_0x2b1cf[_0x37eb('0x11f')]&&0x1===_0x2b1cf[_0x37eb('0x11f')][_0x37eb('0x106')]&&this[_0x37eb('0xfa')](_0x4ab21d,{'hasComments':!0x0});},{'priority':'low'}),this[_0x37eb('0xe4')](_0x28cebf,'removeComment',(_0x1a4b79,{threadId:_0x2d4f2b})=>{const _0x6b427a=this['_suggestions'][_0x37eb('0x59')](_0x2d4f2b);_0x6b427a&&_0x6b427a[_0x37eb('0x11f')]&&!_0x6b427a[_0x37eb('0x11f')][_0x37eb('0x106')]&&this['_updateSuggestionData'](_0x2d4f2b,{'hasComments':!0x1});},{'priority':_0x37eb('0xd7')});}set[_0x37eb('0x8e')](_0x4ad865){if(this[_0x37eb('0x109')])throw new _0x1805df(_0x37eb('0xac'),this);this[_0x37eb('0x109')]=_0x4ad865;}get[_0x37eb('0x8e')](){return this[_0x37eb('0x109')];}[_0x37eb('0x9e')]({skipNotAttached:_0x1317b9=!0x1,toJSON:_0x171f88=!0x1}={}){const _0x113fb3=[];for(const _0x4f83b8 of this[_0x37eb('0x126')]['values']())_0x1317b9&&!_0x4f83b8[_0x37eb('0x76')]||_0x113fb3[_0x37eb('0x43')](_0x4f83b8);return _0x171f88?_0x113fb3[_0x37eb('0x77')](_0x37dd7b=>_0x37dd7b[_0x37eb('0x9a')]()):_0x113fb3;}[_0x37eb('0x98')](_0x57675c){const _0xcf00c4=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x57675c);if(!_0xcf00c4)throw new _0x1805df(_0x37eb('0xcf'),this);return _0xcf00c4;}[_0x37eb('0x83')](_0x3c3e13){return this[_0x37eb('0x126')][_0x37eb('0x65')](_0x3c3e13);}[_0x37eb('0xde')](_0x51aa81){const {authorId:_0xbbd4b0,id:_0x1bfcd5,attributes:_0x157f77}=_0x51aa81,[_0xe5f044,_0x13f72b]=_0x51aa81['type']['split'](':'),_0x537cdf=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x1bfcd5)||this[_0x37eb('0x51')](_0xe5f044,_0x13f72b,_0x1bfcd5,_0xbbd4b0,_0x157f77);if(this[_0x37eb('0x102')](_0x537cdf),this[_0x37eb('0x6d')](_0x537cdf,_0xe5f044,_0x13f72b||null,_0xbbd4b0),_0x537cdf[_0x37eb('0x7e')]=_0x51aa81[_0x37eb('0x7e')],_0x537cdf[_0x37eb('0x8c')]=!0x0,_0x157f77&&_0x157f77[_0x37eb('0xdb')]){const _0x4a37a6=_0x157f77[_0x37eb('0xdb')],_0x17b07c=this[_0x37eb('0x1b')](_0x4a37a6['authorName']);_0x537cdf[_0x37eb('0xa3')]=_0x4a37a6[_0x37eb('0x7e')],_0x537cdf[_0x37eb('0x72')]=_0x17b07c,_0x537cdf[_0x37eb('0xc8')]=!0x0;}else _0x537cdf[_0x37eb('0xa3')]=_0x51aa81[_0x37eb('0x7e')];switch(_0x51aa81['data']&&(_0x537cdf[_0x37eb('0xb5')]=_0x51aa81[_0x37eb('0xb5')]),_0x51aa81['attributes']&&(_0x537cdf[_0x37eb('0x141')]=_0x51aa81[_0x37eb('0x141')]),this[_0x37eb('0x109')]&&this[_0x37eb('0x109')][_0x37eb('0xb8')]||(_0x537cdf[_0x37eb('0xe1')]=!0x0),this['_suggestionState'][_0x37eb('0x59')](_0x537cdf)){case _0x37eb('0x13'):this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x537cdf,_0x37eb('0x26'));break;case _0x37eb('0x137'):_0x537cdf[_0x37eb('0x76')]?(this[_0x37eb('0x117')](new Set([_0x537cdf])),this['_joinWithAdjacentSuggestions'](new Set([_0x537cdf])),this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x537cdf,'ready'),this['fire'](_0x37eb('0x86'),_0x537cdf)):this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x537cdf,'removed');}return _0x537cdf;}[_0x37eb('0x20')](_0x58eb8f){this[_0x37eb('0xcb')](()=>{this['editor'][_0x37eb('0xa')]['change'](()=>{for(const _0x27b13f of _0x58eb8f['getAllAdjacentSuggestions']())_0x27b13f[_0x37eb('0x105')]();});});}['discardSuggestion'](_0x32b608){this[_0x37eb('0xcb')](()=>{this[_0x37eb('0x31')]['model'][_0x37eb('0xc3')](()=>{for(const _0x7e2c89 of _0x32b608[_0x37eb('0x13d')]())_0x7e2c89[_0x37eb('0x113')]();});});}['enableCommand'](_0xb879fc,_0x2b8f99){const _0x5b2c17=this[_0x37eb('0x31')]['commands'][_0x37eb('0x59')](_0xb879fc);if(!_0x5b2c17)throw new _0x1805df('track-changes-command-not-found',this,{'commandName':_0xb879fc});this[_0x37eb('0x4c')][_0x37eb('0xca')](_0x5b2c17),_0x2b8f99&&_0x5b2c17['on']('execute',(_0x269690,_0x4e59b2)=>{this[_0x37eb('0x13b')]['value']&&(this[_0x37eb('0x11')]||_0x4e59b2[_0x37eb('0x106')]>0x0&&_0x4e59b2[_0x4e59b2[_0x37eb('0x106')]-0x1]&&_0x4e59b2[_0x4e59b2[_0x37eb('0x106')]-0x1]['forceDefaultExecution']||(_0x2b8f99((..._0xf6e156)=>_0x5b2c17[_0x37eb('0x92')](..._0xf6e156,{'forceDefaultExecution':!0x0}),..._0x4e59b2),_0x269690[_0x37eb('0xa6')]()));},{'priority':_0x37eb('0x5d')});}[_0x37eb('0xcb')](_0x8b769){let _0x2bcc06,_0x2bf87d;const _0x402161=this[_0x37eb('0x11')];this[_0x37eb('0x11')]=!0x0;try{_0x2bcc06=_0x8b769();}catch(_0x48b92d){_0x2bf87d=_0x48b92d;}return _0x402161||(this[_0x37eb('0x11')]=!0x1),_0x2bf87d&&_0x1805df[_0x37eb('0x6b')](_0x2bf87d,this),_0x2bcc06;}[_0x37eb('0x21')](_0x8d9e07,_0x28f0b6=null,_0xeb2229={}){if(_0x8d9e07[_0x37eb('0x0')])return null;const _0x886fd9=this[_0x37eb('0x31')]['plugins'][_0x37eb('0x59')](_0x37eb('0x5c'))['me'];for(const {suggestion:_0x5ca57c,meta:_0x2f80d8}of this[_0x37eb('0x25')](_0x8d9e07,_0x37eb('0xbe')))if(_0x2f80d8['isOwn']){if(!_0x2f80d8[_0x37eb('0x130')]){if(_0x2f80d8[_0x37eb('0x70')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x5ca57c,_0xeb2229))continue;return _0x5ca57c;}if(Ut(_0x5ca57c,_0xeb2229))return _0x5ca57c;this['_breakSuggestionMarker'](_0x5ca57c,_0x8d9e07[_0x37eb('0xb1')],_0x8d9e07['end']);break;}if(_0x28f0b6==_0x5ca57c[_0x37eb('0x74')]&&Ut(_0x5ca57c,_0xeb2229)){const _0x402fd8=_0x5ca57c[_0x37eb('0x9f')]();return _0x402fd8[_0x37eb('0xb1')][_0x37eb('0x84')](_0x8d9e07['end'])?this[_0x37eb('0xf9')](_0x5ca57c,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x8d9e07[_0x37eb('0xb1')],_0x402fd8[_0x37eb('0x12d')])):this[_0x37eb('0xf9')](_0x5ca57c,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x402fd8[_0x37eb('0xb1')],_0x8d9e07['end'])),_0x5ca57c;}}const _0x960f6b=_0x1f3984(),_0x19776f=_0x886fd9['id'],_0xc575d1=_0x28f0b6?_0x37eb('0x8a')+_0x28f0b6:_0x37eb('0xbe'),_0x206485=this[_0x37eb('0xef')]({'id':_0x960f6b,'type':_0xc575d1,'createdAt':new Date(),'authorId':_0x19776f,'attributes':_0xeb2229});return this[_0x37eb('0x27')](_0xc575d1,_0x960f6b,_0x19776f,_0x8d9e07),_0x206485;}[_0x37eb('0x45')](_0x742120,_0x28f95c=_0x37eb('0x1c'),_0x4d9185={}){const _0x5a0df7=this[_0x37eb('0x31')]['plugins']['get'](_0x37eb('0x5c'))['me'],_0x24c7b9=this['_suggestionFactory'][_0x37eb('0xbf')](_0x37eb('0xbe'),_0x28f95c,_0x37eb('0xe0'));for(const _0x3593c7 of this[_0x37eb('0x9e')]())if(_0x3593c7[_0x37eb('0x72')]['id']==_0x5a0df7['id']&&_0x37eb('0xbe')==_0x3593c7[_0x37eb('0x55')]&&_0x3593c7[_0x37eb('0x74')]==_0x28f95c&&Ut(_0x3593c7,_0x4d9185)&&(_0x24c7b9(_0x3593c7['getRanges'](),_0x742120)||_0x24c7b9(_0x742120,_0x3593c7[_0x37eb('0x91')]()))){for(const _0x4b6b3b of _0x742120)_0x3593c7['addRange'](_0x4b6b3b);return _0x3593c7;}for(const {suggestion:_0x5179a7,meta:_0x4a8008}of this[_0x37eb('0x25')](_0x742120,_0x37eb('0xbe'))){if(!_0x4a8008[_0x37eb('0x90')])continue;if(!this[_0x37eb('0x5')]&&_0x4a8008[_0x37eb('0x70')])continue;if(!Ut(_0x5179a7,_0x4d9185))continue;let _0x328664=!0x0;for(const _0x50e94b of _0x5179a7[_0x37eb('0x91')]())for(const _0x17da46 of _0x742120)if(!_0x50e94b[_0x37eb('0x139')](_0x17da46)){_0x328664=!0x1;break;}if(_0x328664)return _0x5179a7;}const _0x324cb8=_0x1f3984(),_0xa262fa=_0x5a0df7['id'],_0x5787c1='insertion:'+_0x28f95c,_0x3cf993=this[_0x37eb('0xef')]({'id':_0x324cb8,'type':_0x5787c1,'createdAt':new Date(),'authorId':_0xa262fa,'attributes':_0x4d9185});for(const _0x2db58d of _0x742120)this[_0x37eb('0x27')](_0x5787c1,_0x324cb8,_0xa262fa,_0x2db58d,_0x5d4473['getMultiRangeId']());return _0x3cf993;}['markInlineFormat'](_0x1e8e04,_0x13b059,_0x4fd7bf=null,_0x3ec041={}){if(_0x4fd7bf=_0x4fd7bf||$t(_0x13b059),_0x1e8e04[_0x37eb('0x0')])return null;if('never'===this[_0x37eb('0x71')]){const _0x345de0=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x140'),_0x4fd7bf,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x345de0([_0x1e8e04],_0x13b059,_0x3ec041)),null;}const _0x452ef4=this[_0x37eb('0x31')]['plugins'][_0x37eb('0x59')](_0x37eb('0x5c'))['me'],_0x50647d=[];if(_0x37eb('0xfc')!==this[_0x37eb('0x71')])for(const {suggestion:_0x17f0b1,meta:_0x4fbe14}of this['_findSuggestions'](_0x1e8e04,_0x37eb('0xbe')))_0x4fbe14[_0x37eb('0x90')]&&!_0x4fbe14[_0x37eb('0x73')]&&_0x50647d[_0x37eb('0x43')](..._0x17f0b1[_0x37eb('0x91')]());const _0x23d1d1=function(_0x2f4638,_0xea2553){const _0x14210f=[];for(const _0x1737d4 of _0xea2553){const _0x30fc43=_0x2f4638[_0x37eb('0x12')](_0x1737d4);_0x30fc43&&_0x14210f[_0x37eb('0x43')](_0x30fc43);}return _0x14210f;}(_0x1e8e04,_0x50647d),_0x576659=function(_0x436301,_0x3fa964){const _0x4a3309=[_0x436301];for(const _0x1738e2 of _0x3fa964){let _0x19eeb4=0x0;for(;_0x19eeb4<_0x4a3309[_0x37eb('0x106')];){const _0x45a873=_0x4a3309[_0x19eeb4][_0x37eb('0x8f')](_0x1738e2);_0x4a3309[_0x37eb('0xce')](_0x19eeb4,0x1,..._0x45a873),_0x19eeb4+=_0x45a873[_0x37eb('0x106')];}}return _0x4a3309;}(_0x1e8e04,_0x50647d);_0x23d1d1[_0x37eb('0x106')]&&this[_0x37eb('0x4d')]['change'](()=>{for(const _0x2a1e05 of _0x23d1d1){const _0x4c4b3e=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x140'),_0x4fd7bf,_0x37eb('0x105'));this[_0x37eb('0xcb')](()=>_0x4c4b3e([_0x2a1e05],_0x13b059,_0x3ec041));}});for(const _0xb50970 of _0x576659){let _0x3de6c0=null,_0xad713d=_0xb50970['start'],_0x370d14=_0xb50970[_0x37eb('0x12d')];for(const {suggestion:_0x28e888,meta:_0x25ecaa}of this['_findSuggestions'](_0xb50970,'formatInline')){if(!_0x25ecaa[_0x37eb('0x90')])continue;if(_0x28e888[_0x37eb('0x74')]!=_0x4fd7bf)continue;if(!Ut(_0x28e888,_0x3ec041))continue;const _0x361d97=_0x28e888['getFirstRange']();if(_0x361d97[_0x37eb('0x139')](_0xb50970,!0x0))return null;_0xad713d=_0xad713d[_0x37eb('0xfe')](_0x361d97[_0x37eb('0xb1')])?_0xad713d:_0x361d97[_0x37eb('0xb1')],_0x370d14=_0x370d14['isAfter'](_0x361d97[_0x37eb('0x12d')])?_0x370d14:_0x361d97[_0x37eb('0x12d')],_0x3de6c0?_0x361d97[_0x37eb('0xb1')][_0x37eb('0xfe')](_0x3de6c0[_0x37eb('0x9f')]()[_0x37eb('0xb1')])?(_0x3de6c0['removeMarkers'](),_0x3de6c0=_0x28e888):_0x28e888['removeMarkers']():_0x3de6c0=_0x28e888;}const _0x244ae5=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0xad713d,_0x370d14);if(_0x3de6c0)this[_0x37eb('0xf9')](_0x3de6c0,_0x244ae5);else{const _0x1b9564=_0x1f3984(),_0x63776c=_0x452ef4['id'];this[_0x37eb('0xef')]({'id':_0x1b9564,'type':_0x37eb('0x30')+_0x4fd7bf,'data':_0x13b059,'createdAt':new Date(),'authorId':_0x63776c,'attributes':_0x3ec041}),this[_0x37eb('0x27')]('formatInline:'+_0x4fd7bf,_0x1b9564,_0x63776c,_0x244ae5);}}return null;}['markBlockFormat'](_0x199e10,_0x9fd613,_0x122fc5=[],_0x28c1f7=null,_0x1b86c6={}){_0x9fd613[_0x37eb('0xbc')]||(_0x9fd613[_0x37eb('0xbc')]=_0x9fd613[_0x37eb('0xab')]),_0x9fd613[_0x37eb('0x1f')]=_0x199e10['is'](_0x37eb('0x28')),_0x28c1f7=_0x28c1f7||$t(_0x9fd613);const _0x559ef4=_0x122fc5['map'](_0xd41875=>Rt(_0xd41875,this[_0x37eb('0x4d')])),_0x3e284e=_0x199e10['is'](_0x37eb('0x28'))?_0x199e10:Rt(_0x199e10,this[_0x37eb('0x4d')]);if(_0x37eb('0x11e')===this[_0x37eb('0x71')]){const _0x29c63f=this['_suggestionFactory']['getSuggestionCallback'](_0x37eb('0x2e'),_0x28c1f7,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x29c63f([_0x3e284e],_0x9fd613,_0x1b86c6)),null;}_0x559ef4[_0x37eb('0x43')](_0x3e284e);let _0x1f3e4d=!0x0;for(const _0x16743a of _0x559ef4)if(!this[_0x37eb('0x104')](_0x16743a)){_0x1f3e4d=!0x1;break;}if(_0x1f3e4d&&_0x37eb('0xfc')!==this['_trackFormatChanges']){const _0x5757ea=this[_0x37eb('0xc')]['getSuggestionCallback'](_0x37eb('0x2e'),_0x28c1f7,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x5757ea([_0x3e284e],_0x9fd613,_0x1b86c6)),null;}let _0x23b98b=null,_0x769b5f=_0x3e284e[_0x37eb('0xb1')],_0x44716c=_0x3e284e['end'];for(const {suggestion:_0x8356f8,meta:_0x3e7afe}of this['_findSuggestions'](_0x3e284e,_0x37eb('0x2e'))){if(!_0x3e7afe[_0x37eb('0x90')])continue;if(_0x3e7afe[_0x37eb('0x130')]||_0x3e7afe[_0x37eb('0x70')]||_0x3e7afe[_0x37eb('0x73')])continue;if(_0x8356f8[_0x37eb('0xb5')][_0x37eb('0xbc')]!=_0x9fd613['formatGroupId'])continue;if(!Ut(_0x8356f8,_0x1b86c6))continue;const _0x4b4716=_0x8356f8[_0x37eb('0x9f')]();if(_0x8356f8[_0x37eb('0x74')]==_0x28c1f7){if(_0x4b4716['containsRange'](_0x3e284e,!0x0))return null;_0x769b5f=_0x769b5f[_0x37eb('0xfe')](_0x4b4716['start'])?_0x769b5f:_0x4b4716[_0x37eb('0xb1')],_0x44716c=_0x44716c[_0x37eb('0xa2')](_0x4b4716['end'])?_0x44716c:_0x4b4716[_0x37eb('0x12d')],_0x23b98b?_0x4b4716['start']['isBefore'](_0x23b98b[_0x37eb('0x9f')]()[_0x37eb('0xb1')])?(_0x23b98b[_0x37eb('0x80')](),_0x23b98b=_0x8356f8):_0x8356f8[_0x37eb('0x80')]():_0x23b98b=_0x8356f8;}else{const _0x52af46=_0x3e284e[_0x37eb('0x12')](_0x4b4716);this[_0x37eb('0x6e')](_0x8356f8,_0x52af46);}}const _0x15324f=this['editor']['plugins']['get'](_0x37eb('0x5c'))['me'],_0x12f38a=_0x1f3984(),_0x3b9283=_0x15324f['id'];if(_0x23b98b)return this['_setSuggestionRange'](_0x23b98b,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x769b5f,_0x44716c)),_0x23b98b;{const _0x4ac464=this[_0x37eb('0xef')]({'id':_0x12f38a,'type':_0x37eb('0x3c')+_0x28c1f7,'data':_0x9fd613,'createdAt':new Date(),'authorId':_0x3b9283,'attributes':_0x1b86c6});return this['_addSuggestionMarker']('formatBlock:'+_0x28c1f7,_0x12f38a,_0x3b9283,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x769b5f,_0x44716c)),_0x4ac464;}}['markMultiRangeBlockFormat'](_0x3894a0,_0x4b1ed6,_0x39305d=[],_0x55ebba=null,_0x720bbd={}){_0x4b1ed6[_0x37eb('0xbc')]||(_0x4b1ed6['formatGroupId']=_0x4b1ed6['commandName']);const _0x5d5ff3=_0x3894a0[0x0];_0x4b1ed6[_0x37eb('0x1f')]=_0x5d5ff3['is'](_0x37eb('0x28')),_0x55ebba=_0x55ebba||$t(_0x4b1ed6);const _0x46d1fe=_0x39305d['map'](_0x1daff3=>Rt(_0x1daff3,this['_model'])),_0xf985c9=_0x5d5ff3['is'](_0x37eb('0x28'))?_0x3894a0:_0x3894a0[_0x37eb('0x77')](_0x3503c7=>Rt(_0x3503c7,this[_0x37eb('0x4d')]));if(_0x37eb('0x11e')===this[_0x37eb('0x71')]){const _0x5f4407=this['_suggestionFactory'][_0x37eb('0xbf')](_0x37eb('0x2e'),_0x55ebba,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x5f4407(_0xf985c9,_0x4b1ed6,_0x720bbd)),null;}_0x46d1fe[_0x37eb('0x43')](..._0xf985c9);let _0x5dfac7=!0x0;for(const _0x2e5f8a of _0x46d1fe)if(!this[_0x37eb('0x104')](_0x2e5f8a)){_0x5dfac7=!0x1;break;}if(_0x5dfac7&&_0x37eb('0xfc')!==this[_0x37eb('0x71')]){const _0x5e6abf=this[_0x37eb('0xc')][_0x37eb('0xbf')]('formatBlock',_0x55ebba,'accept');return this['forceDefaultExecution'](()=>_0x5e6abf(_0xf985c9,_0x4b1ed6,_0x720bbd)),null;}const _0x764e1c=this[_0x37eb('0x31')][_0x37eb('0xf0')]['get'](_0x37eb('0x5c'))['me'];for(const _0x441b72 of this['getSuggestions']()){if(_0x441b72[_0x37eb('0x72')]['id']!=_0x764e1c['id'])continue;if(_0x37eb('0x2e')!=_0x441b72[_0x37eb('0x55')]||_0x441b72[_0x37eb('0xb5')][_0x37eb('0xbc')]!=_0x4b1ed6[_0x37eb('0xbc')])continue;if(!Ut(_0x441b72,_0x720bbd))continue;const _0x1c049b=_0x441b72[_0x37eb('0x74')]==_0x55ebba;for(let _0x2a600a=0x0;_0x2a600a<_0xf985c9[_0x37eb('0x106')];_0x2a600a++){const _0x2a8256=_0xf985c9[_0x2a600a];for(const _0x4a6e09 of _0x441b72[_0x37eb('0x127')]()){const _0x637473=_0x4a6e09[_0x37eb('0x110')]();if(_0x2a8256['isEqual'](_0x637473)){_0x1c049b?(_0xf985c9[_0x37eb('0xce')](_0x2a600a,0x1),_0x2a600a--):_0x441b72[_0x37eb('0x24')](_0x4a6e09[_0x37eb('0x6c')]);break;}}}}if(0x0==_0xf985c9[_0x37eb('0x106')])return null;const _0x438313=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x2e'),_0x55ebba,_0x37eb('0xe0'));for(const _0x15c04f of this[_0x37eb('0x9e')]())if(_0x15c04f[_0x37eb('0x72')]['id']==_0x764e1c['id']&&_0x37eb('0x2e')==_0x15c04f[_0x37eb('0x55')]&&_0x15c04f['data'][_0x37eb('0xbc')]==_0x4b1ed6[_0x37eb('0xbc')]&&_0x15c04f[_0x37eb('0x74')]==_0x55ebba&&Ut(_0x15c04f,_0x720bbd)&&(_0x438313(_0x15c04f['getRanges'](),_0xf985c9)||_0x438313(_0xf985c9,_0x15c04f[_0x37eb('0x91')]()))){for(const _0x3b217f of _0xf985c9)_0x15c04f['addRange'](_0x3b217f);return _0x15c04f;}const _0x225e4a=_0x1f3984(),_0x3584da=_0x764e1c['id'],_0x901105='formatBlock:'+_0x55ebba,_0x10e67e=this[_0x37eb('0xef')]({'id':_0x225e4a,'type':_0x901105,'data':_0x4b1ed6,'createdAt':new Date(),'authorId':_0x3584da,'attributes':_0x720bbd});for(const _0x2ab6fd of _0xf985c9)this['_addSuggestionMarker'](_0x901105,_0x225e4a,_0x3584da,_0x2ab6fd,_0x5d4473[_0x37eb('0x57')]());return _0x10e67e;}['markDeletion'](_0x4c2ce5,_0x492b4c=null,_0x783609={}){if(_0x4c2ce5[_0x37eb('0x0')])return null;const _0x1943b2=this[_0x37eb('0x31')][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c'))['me'],_0x380c6f=new _0x4586a9(_0x4c2ce5[_0x37eb('0xb1')],_0x4c2ce5[_0x37eb('0x12d')]);for(const {suggestion:_0x4149ff,meta:_0x135143}of this['_findSuggestions'](_0x380c6f,_0x37eb('0xbe')))if(_0x135143[_0x37eb('0x90')]&&!_0x135143[_0x37eb('0x130')]){if(_0x4149ff[_0x37eb('0xc7')]){const _0x38ee95=_0x4149ff[_0x37eb('0x91')]()[_0x37eb('0x94')](_0x246cb8=>_0x37eb('0x8b')!=_0x246cb8[_0x37eb('0xcc')][_0x37eb('0x3a')]);_0x38ee95['every'](_0x3d7302=>_0x380c6f[_0x37eb('0x139')](_0x3d7302,!0x0))&&_0x4149ff[_0x37eb('0x113')]();if(_0x38ee95[_0x37eb('0x18')](_0x362ff2=>_0x362ff2[_0x37eb('0x139')](_0x380c6f,!0x0))){const _0x9c2fad=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x112'),_0x492b4c,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x9c2fad([_0x380c6f],null,_0x783609)),null;}}else{const _0x50c07b=_0x380c6f[_0x37eb('0x12')](_0x4149ff['getFirstRange']());null!==_0x50c07b&&_0x4149ff[_0x37eb('0xf1')]([_0x50c07b],null,_0x783609);}}if(_0x380c6f[_0x37eb('0x111')](),_0x380c6f[_0x37eb('0x0')]||_0x37eb('0x8b')==_0x380c6f[_0x37eb('0xcc')][_0x37eb('0x3a')])return null;let _0x4e6bf6=null,_0x468f5e=_0x380c6f[_0x37eb('0xb1')],_0x4273e3=_0x380c6f['end'];const _0x3a743d=this[_0x37eb('0x25')](_0x380c6f,_0x37eb('0x112'));for(const {suggestion:_0x5bdee2,meta:_0x275748}of _0x3a743d){const _0x22f08f=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x468f5e,_0x4273e3);if(_0x275748['isOwn']&&(this[_0x37eb('0x5')]||!_0x275748['containsRangeInObject']&&!_0x275748[_0x37eb('0x73')])){if(_0x5bdee2['isMultiRange']){if(!Ut(_0x5bdee2,_0x783609))continue;let _0x139870=!0x0;for(const _0x23952d of _0x5bdee2[_0x37eb('0x91')]()){if(_0x23952d[_0x37eb('0x139')](_0x22f08f,!0x0))return _0x5bdee2;_0x22f08f[_0x37eb('0x139')](_0x23952d)||(_0x139870=!0x1);}_0x139870&&_0x5bdee2[_0x37eb('0x113')]();}else{const _0x3e14c0=_0x5bdee2[_0x37eb('0x9f')]();if(_0x3e14c0[_0x37eb('0x139')](_0x22f08f,!0x0))return _0x5bdee2;if(!Ut(_0x5bdee2,_0x783609)){_0x22f08f[_0x37eb('0x139')](_0x3e14c0)?_0x5bdee2[_0x37eb('0x80')]():_0x3e14c0[_0x37eb('0x7')](_0x468f5e)?_0x468f5e=_0x3e14c0['end']:_0x3e14c0[_0x37eb('0x7')](_0x4273e3)&&(_0x4273e3=_0x3e14c0[_0x37eb('0xb1')]);continue;}_0x468f5e=_0x468f5e[_0x37eb('0xfe')](_0x3e14c0[_0x37eb('0xb1')])?_0x468f5e:_0x3e14c0[_0x37eb('0xb1')],_0x4273e3=_0x4273e3[_0x37eb('0xa2')](_0x3e14c0[_0x37eb('0x12d')])?_0x4273e3:_0x3e14c0[_0x37eb('0x12d')],_0x783609=Object['assign']({},_0x5bdee2[_0x37eb('0x141')]),_0x4e6bf6?_0x3e14c0[_0x37eb('0xb1')]['isBefore'](_0x4e6bf6[_0x37eb('0x9f')]()[_0x37eb('0xb1')])?(_0x4e6bf6[_0x37eb('0x80')](),_0x4e6bf6=_0x5bdee2):_0x5bdee2[_0x37eb('0x80')]():_0x4e6bf6=_0x5bdee2;}}}if(_0x4e6bf6)return this[_0x37eb('0xf9')](_0x4e6bf6,this['_model'][_0x37eb('0xb4')](_0x468f5e,_0x4273e3)),_0x4e6bf6;{const _0x128848=_0x1f3984(),_0x34e251=this[_0x37eb('0x4d')]['createRange'](_0x468f5e,_0x4273e3),_0x4c5491=_0x1943b2['id'],_0x2f1ed0=_0x492b4c?_0x37eb('0x40')+_0x492b4c:_0x37eb('0x112'),_0x2fdc14=this[_0x37eb('0xef')]({'id':_0x128848,'type':_0x2f1ed0,'createdAt':new Date(),'authorId':_0x4c5491,'attributes':_0x783609});return this[_0x37eb('0x27')](_0x2f1ed0,_0x128848,_0x4c5491,_0x34e251),_0x2fdc14;}}[_0x37eb('0x23')](_0x19216b,_0x20cb60=_0x37eb('0x1c'),_0x5b847a={}){const _0x3bb421=this[_0x37eb('0x31')]['plugins']['get'](_0x37eb('0x5c'))['me'],_0x3bc217=_0x19216b[_0x37eb('0x77')](_0x2483bb=>new _0x4586a9(_0x2483bb[_0x37eb('0xb1')],_0x2483bb[_0x37eb('0x12d')])),_0x5d08c3=new Set();for(const {suggestion:_0x5493ba,meta:_0x1b2ca9}of this[_0x37eb('0x25')](_0x3bc217,_0x37eb('0xbe')))_0x1b2ca9[_0x37eb('0x90')]&&!_0x1b2ca9[_0x37eb('0x130')]&&_0x5d08c3[_0x37eb('0xca')](_0x5493ba);for(const _0x1d5c08 of _0x5d08c3)if(_0x1d5c08[_0x37eb('0xc7')]){const _0x6e4720=_0x1d5c08['getRanges']();(!_0x1d5c08[_0x37eb('0x141')]||!_0x1d5c08[_0x37eb('0x141')][_0x37eb('0x52')])&&(_0x6e4720[_0x37eb('0x50')](_0x33cc03=>_0x3bc217[_0x37eb('0x18')](_0x1197f7=>_0x1197f7[_0x37eb('0x139')](_0x33cc03,!0x0)))&&_0x1d5c08[_0x37eb('0x113')]());if(_0x3bc217[_0x37eb('0x50')](_0x5461b5=>_0x6e4720[_0x37eb('0x18')](_0x5e5f62=>_0x5e5f62[_0x37eb('0x139')](_0x5461b5,!0x0)))){const _0x3ed4aa=this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x37eb('0x112'),_0x20cb60,_0x37eb('0x105'));return this['forceDefaultExecution'](()=>_0x3ed4aa(_0x19216b,null,_0x5b847a)),null;}}else{const _0x3ab30b=_0x1d5c08[_0x37eb('0x9f')]();_0x3bc217[_0x37eb('0x18')](_0x579fcc=>_0x579fcc[_0x37eb('0x139')](_0x3ab30b,!0x0))&&_0x1d5c08[_0x37eb('0x113')]();if(_0x3bc217[_0x37eb('0x50')](_0x44bd02=>_0x3ab30b[_0x37eb('0x139')](_0x44bd02,!0x0))){const _0x19175b=this[_0x37eb('0xc')][_0x37eb('0xbf')]('deletion',_0x20cb60,_0x37eb('0x105'));return this[_0x37eb('0xcb')](()=>_0x19175b(_0x3bc217,null,_0x5b847a)),null;}}const _0x8e97e6=this[_0x37eb('0xc')]['getSuggestionCallback'](_0x37eb('0x112'),_0x20cb60,'join');let _0x192f4f=null;for(const _0x206792 of this[_0x37eb('0x9e')]())if(_0x206792[_0x37eb('0x72')]['id']==_0x3bb421['id']&&_0x206792[_0x37eb('0x76')]&&_0x37eb('0x112')==_0x206792[_0x37eb('0x55')]&&_0x206792[_0x37eb('0x74')]==_0x20cb60&&Ut(_0x206792,_0x5b847a)&&(_0x8e97e6(_0x206792[_0x37eb('0x91')](),_0x3bc217)||_0x8e97e6(_0x3bc217,_0x206792[_0x37eb('0x91')]()))){if(_0x192f4f){if(_0x206792['commentThread']&&_0x206792[_0x37eb('0x11f')][_0x37eb('0x106')])continue;for(const _0x1beefd of _0x206792['getRanges']())_0x192f4f[_0x37eb('0x7b')](_0x1beefd)||_0x192f4f[_0x37eb('0xe8')](_0x1beefd);_0x206792[_0x37eb('0x80')]();}else{_0x192f4f=_0x206792;for(const _0x5b4fc9 of _0x3bc217)_0x206792[_0x37eb('0x7b')](_0x5b4fc9)||_0x206792[_0x37eb('0xe8')](_0x5b4fc9);}}if(_0x192f4f)return _0x192f4f;_0x5d08c3[_0x37eb('0x9d')]();for(const {suggestion:_0x158f10,meta:_0x2a3c07}of this[_0x37eb('0x25')](_0x3bc217,'deletion'))_0x2a3c07[_0x37eb('0x90')]&&(this[_0x37eb('0x5')]||!_0x2a3c07['containsRangeInObject']&&!_0x2a3c07[_0x37eb('0x73')])&&Ut(_0x158f10,_0x5b847a)&&_0x5d08c3['add'](_0x158f10);for(const _0x185b79 of _0x5d08c3){const _0x2dced9=_0x185b79[_0x37eb('0x91')]();if(!_0x5b847a||!_0x5b847a[_0x37eb('0x52')]){if(_0x3bc217[_0x37eb('0x50')](_0x168b46=>_0x2dced9[_0x37eb('0x18')](_0x2752ff=>_0x2752ff['containsRange'](_0x168b46,!0x0))))return _0x185b79;}(!_0x185b79[_0x37eb('0x141')]||!_0x185b79[_0x37eb('0x141')][_0x37eb('0x52')])&&(_0x2dced9[_0x37eb('0x50')](_0x203f5a=>_0x3bc217[_0x37eb('0x18')](_0x29593d=>_0x29593d['containsRange'](_0x203f5a,!0x0)))&&_0x185b79['discard']());}const _0x26d8ff=_0x1f3984(),_0x263be2=_0x3bb421['id'],_0x11a3df=_0x37eb('0x40')+_0x20cb60,_0xed8961=this[_0x37eb('0xef')]({'id':_0x26d8ff,'type':_0x11a3df,'createdAt':new Date(),'authorId':_0x263be2,'attributes':_0x5b847a});for(const _0x5e0124 of _0x3bc217)_0x5e0124[_0x37eb('0x111')](),_0x5e0124[_0x37eb('0x0')]||'$graveyard'==_0x5e0124[_0x37eb('0xcc')][_0x37eb('0x3a')]||this[_0x37eb('0x27')](_0x11a3df,_0x26d8ff,_0x263be2,_0x5e0124,_0x5d4473['getMultiRangeId']());return _0xed8961;}[_0x37eb('0xf9')](_0xe7a848,_0xf226e2){const _0x1957fe=_0xe7a848[_0x37eb('0x81')]();this['_model'][_0x37eb('0xc3')](_0x7f8f2d=>{_0x7f8f2d[_0x37eb('0xdc')](_0x1957fe,{'range':_0xf226e2});});}[_0x37eb('0x102')](_0x31bb3c){const _0x2a90ac=_0x31bb3c['id'],_0x4502f3=this[_0x37eb('0x31')]['config'][_0x37eb('0x59')](_0x37eb('0x2f'));this[_0x37eb('0xf2')][_0x37eb('0x12e')](_0x2a90ac)||this[_0x37eb('0xf2')][_0x37eb('0x53')]({'channelId':_0x4502f3,'threadId':_0x2a90ac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x19ac50=this['_commentsRepository'][_0x37eb('0x78')](_0x2a90ac);_0x19ac50[_0x37eb('0x116')]('isRemovable'),_0x19ac50[_0x37eb('0x3f')]=!0x1,_0x31bb3c[_0x37eb('0x11f')]=_0x19ac50;}['_checkSuggestionCorrectness'](_0x2bf3b5,_0x1f8a48,_0x388e60,_0x544f67){if(_0x2bf3b5[_0x37eb('0x55')]!=_0x1f8a48||_0x2bf3b5[_0x37eb('0x74')]!=_0x388e60||_0x2bf3b5[_0x37eb('0xea')]['id']!=_0x544f67)throw this[_0x37eb('0x31')]['enableReadOnlyMode'](_0x37eb('0x120')),new _0x1805df('track-changes-suggestion-data-mismatch',this);}[_0x37eb('0x6e')](_0x24ac3d,_0x293080){const _0x2068ae=_0x24ac3d['getFirstRange']();if(_0x293080[_0x37eb('0x84')](_0x2068ae))_0x24ac3d['removeMarkers']();else{if(_0x2068ae['containsRange'](_0x293080)){const _0x25be4f=this[_0x37eb('0x4d')]['createPositionAt'](_0x293080['start'][_0x37eb('0x124')],_0x37eb('0x12d'));this[_0x37eb('0xf9')](_0x24ac3d,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x2068ae[_0x37eb('0xb1')],_0x25be4f));const _0x28fc5a=_0x1f3984(),_0x3646a5=_0x24ac3d[_0x37eb('0xea')]['id'],_0x347049=_0x24ac3d['type']+':'+_0x24ac3d[_0x37eb('0x74')];this[_0x37eb('0xef')]({'id':_0x28fc5a,'type':_0x347049,'createdAt':new Date(),'authorId':_0x3646a5,'data':_0x24ac3d[_0x37eb('0xb5')],'attributes':_0x24ac3d[_0x37eb('0x141')]});const _0x5a67c4=this[_0x37eb('0x4d')]['createPositionAt'](_0x293080['end']['parent'],_0x37eb('0x89')),_0x41b1f6=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x5a67c4,_0x2068ae[_0x37eb('0x12d')]);this['_addSuggestionMarker'](_0x347049,_0x28fc5a,_0x3646a5,_0x41b1f6);}else{if(_0x2068ae[_0x37eb('0x7')](_0x293080['start'])){const _0x1975ef=this['_model']['createPositionAt'](_0x293080[_0x37eb('0xb1')][_0x37eb('0x124')],_0x37eb('0x12d'));this['_setSuggestionRange'](_0x24ac3d,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x2068ae[_0x37eb('0xb1')],_0x1975ef));}else{const _0x567573=this[_0x37eb('0x4d')][_0x37eb('0x13e')](_0x293080[_0x37eb('0x12d')]['parent'],_0x37eb('0x89'));this[_0x37eb('0xf9')](_0x24ac3d,this['_model'][_0x37eb('0xb4')](_0x567573,_0x2068ae['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x584804){for(const {suggestion:_0x38573f,meta:_0x148f83}of this[_0x37eb('0x25')](_0x584804,_0x37eb('0xbe'))){if(!_0x148f83[_0x37eb('0x90')])continue;const _0x272a29=_0x38573f['getRanges']();for(const _0x29388d of _0x272a29)if(!_0x584804['getDifference'](_0x29388d)[_0x37eb('0x106')])return!0x0;}return!0x1;}[_0x37eb('0x2d')](_0x208598){const _0x3c979c=this[_0x37eb('0x31')][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c'))[_0x37eb('0x11d')](_0x208598);if(!_0x3c979c)throw new _0x1805df(_0x37eb('0xf7'),this);return _0x3c979c;}[_0x37eb('0x1b')](_0x4acbff){const _0x234826=this['editor'][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c')),_0xcea0f3=_0x10009b(_0x37eb('0x67')+_0x4acbff),_0x261a31=_0x234826[_0x37eb('0x11d')](_0xcea0f3);return _0x261a31||_0x234826[_0x37eb('0x125')]({'id':_0xcea0f3,'name':_0x4acbff});}[_0x37eb('0x51')](_0x3c6470,_0x2c6afa,_0x595bea,_0x2205b5,_0x63bc7c){const _0x4e4dbf=this[_0x37eb('0x2d')](_0x2205b5),_0x28284b=this[_0x37eb('0xc')][_0x37eb('0x54')](_0x3c6470,_0x2c6afa,_0x595bea,_0x4e4dbf,_0x63bc7c,_0x2b48a2=>this[_0x37eb('0xfa')](_0x595bea,{'attributes':_0x2b48a2}));return this[_0x37eb('0xe4')](_0x28284b,_0x37eb('0x105'),()=>{this['_updateSuggestionData'](_0x595bea,{'state':_0x37eb('0xaa')});},{'priority':_0x37eb('0x5d')}),this['listenTo'](_0x28284b,_0x37eb('0x113'),()=>{this[_0x37eb('0xfa')](_0x595bea,{'state':_0x37eb('0x10')});},{'priority':'high'}),this[_0x37eb('0x126')][_0x37eb('0x7c')](_0x595bea,_0x28284b),this['_suggestionState'][_0x37eb('0x7c')](_0x28284b,'notReady'),_0x28284b;}[_0x37eb('0xba')](_0x50359d){const _0xb5ba98=_0x50359d['split'](':');return{'group':_0xb5ba98[0x0],'type':_0xb5ba98[0x1],'subType':_0xb5ba98['length']>=0x5?_0xb5ba98[0x2]:null,'id':_0xb5ba98[_0x37eb('0x106')]<0x5?_0xb5ba98[0x2]:_0xb5ba98[0x3],'authorId':_0xb5ba98[_0x37eb('0x106')]<0x5?_0xb5ba98[0x3]:_0xb5ba98[0x4],'markerCount':0x6==_0xb5ba98[_0x37eb('0x106')]?_0xb5ba98[0x5]:null};}[_0x37eb('0x12b')](_0x326f70,_0x45706f,_0x13c204){const _0x306a51=_0x326f70[_0x37eb('0x9f')](),_0x79d5c0=_0x306a51[_0x37eb('0xb1')],_0xbd687d=_0x306a51[_0x37eb('0x12d')];this['_setSuggestionRange'](_0x326f70,this[_0x37eb('0x4d')]['createRange'](_0x79d5c0,_0x45706f));const _0x2af652=_0x1f3984(),_0x35e044=_0x326f70[_0x37eb('0xea')]['id'],_0x28eea5=_0x326f70[_0x37eb('0x55')]+(_0x326f70[_0x37eb('0x74')]?':'+_0x326f70[_0x37eb('0x74')]:'');this['_setSuggestionData']({'id':_0x2af652,'type':_0x28eea5,'createdAt':new Date(),'authorId':_0x35e044,'originalSuggestionId':_0x326f70['id'],'attributes':_0x326f70[_0x37eb('0x141')],'data':_0x326f70[_0x37eb('0xb5')]}),_0x37eb('0x2e')==_0x326f70[_0x37eb('0x55')]&&(_0x13c204=this[_0x37eb('0x4d')][_0x37eb('0x12a')](_0x13c204[_0x37eb('0x48')])),this['_addSuggestionMarker'](_0x28eea5,_0x2af652,_0x35e044,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x13c204,_0xbd687d));}[_0x37eb('0x25')](_0x342650,_0x488e96=null){const _0x2f9d68=[],_0x4abb9d=this['editor'][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0x5c'))['me'];Array[_0x37eb('0x12f')](_0x342650)||(_0x342650=[_0x342650]);for(const _0x298a15 of this[_0x37eb('0x9e')]()){if(!_0x298a15[_0x37eb('0x76')])continue;if(_0x488e96&&_0x298a15[_0x37eb('0x55')]!=_0x488e96)continue;let _0x768182=!0x1;for(const _0x359ef6 of _0x298a15['getRanges']()){for(const _0x3c5913 of _0x342650){const _0xb33960=_0x3c5913['start'][_0x37eb('0x84')](_0x359ef6[_0x37eb('0x12d')])||_0x3c5913[_0x37eb('0x12d')][_0x37eb('0x84')](_0x359ef6[_0x37eb('0xb1')]);if(_0xb33960||_0x3c5913[_0x37eb('0x12')](_0x359ef6)){const _0x14d622=_0x3c5913[_0x37eb('0x139')](_0x359ef6)&&Bt(this[_0x37eb('0x4d')]['schema'],_0x359ef6[_0x37eb('0xb1')],_0x3c5913),_0x18c340=_0x359ef6['containsRange'](_0x3c5913)&&Bt(this['_model'][_0x37eb('0x66')],_0x3c5913['start'],_0x359ef6);_0x2f9d68[_0x37eb('0x43')]({'suggestion':_0x298a15,'meta':{'isOwn':_0x4abb9d==_0x298a15[_0x37eb('0x72')],'isNextTo':_0xb33960,'isInsideObject':_0x14d622,'containsRangeInObject':_0x18c340}}),_0x768182=!0x0;break;}}if(_0x768182)break;}}return _0x2f9d68;}[_0x37eb('0x27')](_0x265228,_0x1a671a,_0x5940b3,_0x56e059,_0x3e3d29){this[_0x37eb('0x4d')][_0x37eb('0xc3')](_0x5c5fa6=>{let _0x38c064=_0x37eb('0x114')+_0x265228+':'+_0x1a671a+':'+_0x5940b3;_0x3e3d29&&(_0x38c064=_0x38c064+':'+_0x3e3d29),_0x5c5fa6[_0x37eb('0x69')](_0x38c064,{'range':_0x56e059,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x14a50f){const _0x4b6ebc=_0x14a50f['previous'],_0x291362=_0x14a50f['next'];_0x14a50f[_0x37eb('0x10b')]=null,null!=_0x4b6ebc&&(_0x4b6ebc[_0x37eb('0x3')]=null),_0x14a50f[_0x37eb('0x3')]=null,null!=_0x291362&&(_0x291362[_0x37eb('0x10b')]=null),_0x37eb('0x108')==this['_suggestionState'][_0x37eb('0x59')](_0x14a50f)&&(this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x14a50f,_0x37eb('0xd1')),this[_0x37eb('0x9')](_0x37eb('0x10a'),_0x14a50f,_0x4b6ebc,_0x291362));}['_setSuggestionData'](_0x19c0af){const _0x11067b=_0x19c0af['id'],_0xb19229=this['addSuggestionData'](_0x19c0af);if(this[_0x37eb('0x109')]&&this[_0x37eb('0x109')][_0x37eb('0xb8')]){const _0x3be600=this[_0x37eb('0x31')][_0x37eb('0xf0')][_0x37eb('0x59')](_0x37eb('0xe2')),_0x57bcb1=_0xb19229[_0x37eb('0x97')],_0x202317=_0xb19229['subType']?_0xb19229[_0x37eb('0x55')]+':'+_0xb19229[_0x37eb('0x74')]:_0xb19229[_0x37eb('0x55')],_0x8a8a67=this[_0x37eb('0x31')]['locale'],_0x577ddd=_0x3be600[_0x37eb('0xca')](_0x116ea4(_0x8a8a67,_0x37eb('0x15'))),_0x53a82c={'id':_0x11067b,'type':_0x202317,'hasComments':_0x57bcb1,'data':_0x19c0af[_0x37eb('0xb5')]||null,'originalSuggestionId':_0x19c0af[_0x37eb('0xbb')]||null,'attributes':_0xb19229['attributes']};this[_0x37eb('0x109')]['addSuggestion'](_0x53a82c)['then'](_0x4f9122=>{_0xb19229[_0x37eb('0xe1')]=!0x0,_0x3be600[_0x37eb('0x134')](_0x577ddd),_0x4f9122&&_0x4f9122[_0x37eb('0x7e')]&&(this[_0x37eb('0x126')][_0x37eb('0x59')](_0x11067b)['createdAt']=_0x4f9122['createdAt']);})[_0x37eb('0x13a')](_0x535dca=>{throw _0x16f58e(_0x37eb('0xc2')),this[_0x37eb('0x31')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb19229[_0x37eb('0x113')]();}),_0xb19229[_0x37eb('0xff')](),this[_0x37eb('0x126')]['delete'](_0xb19229['id']),this[_0x37eb('0xe9')]['delete'](_0xb19229),_0x535dca;});}return _0xb19229;}[_0x37eb('0xfa')](_0x157213,_0x53ccea){const _0x4d3c51=this[_0x37eb('0x31')]['plugins'][_0x37eb('0x59')]('PendingActions'),_0x5e6788=this['getSuggestion'](_0x157213);if(this[_0x37eb('0x109')]&&this[_0x37eb('0x109')][_0x37eb('0x107')]){if(_0x5e6788['_saved']){const _0x49c9fd=_0x4d3c51['add'](_0x116ea4(this['editor'][_0x37eb('0xa0')],_0x37eb('0x15')));this[_0x37eb('0x109')][_0x37eb('0x107')](_0x157213,_0x53ccea)[_0x37eb('0xa5')](()=>{_0x4d3c51[_0x37eb('0x134')](_0x49c9fd);});}else _0x5e6788['on'](_0x37eb('0x68'),()=>{this[_0x37eb('0xfa')](_0x157213,_0x53ccea);});}}[_0x37eb('0x22')](_0x295f1b){if(!this[_0x37eb('0x109')]||!this[_0x37eb('0x109')][_0x37eb('0x98')])throw new _0x1805df(_0x37eb('0xe3'),this);return this[_0x37eb('0x109')]['getSuggestion'](_0x295f1b);}[_0x37eb('0xc1')](_0x26d482){const {id:_0x1d2b7f,type:_0x450065,subType:_0x27878a,authorId:_0xa26109}=this[_0x37eb('0xba')](_0x26d482),_0x5792fe=this[_0x37eb('0x126')][_0x37eb('0x59')](_0x1d2b7f)||this[_0x37eb('0x51')](_0x450065,_0x27878a,_0x1d2b7f,_0xa26109,{});switch(this[_0x37eb('0x6d')](_0x5792fe,_0x450065,_0x27878a,_0xa26109),this['_suggestionState'][_0x37eb('0x59')](_0x5792fe)){case _0x37eb('0x13'):this[_0x37eb('0x22')](_0x1d2b7f)[_0x37eb('0xa5')](_0x353553=>{let _0x4620c3=Promise[_0x37eb('0xa9')]();_0x353553[_0x37eb('0x97')]&&(_0x4620c3=this[_0x37eb('0xf2')]['fetchCommentThread']({'channelId':this[_0x37eb('0x31')]['config']['get'](_0x37eb('0x2f')),'threadId':_0x1d2b7f})),_0x4620c3['then'](()=>{this[_0x37eb('0xde')](_0x353553)[_0x37eb('0xe1')]=!0x0;});}),this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x5792fe,_0x37eb('0x137'));break;case _0x37eb('0xd1'):this[_0x37eb('0xfa')](_0x1d2b7f,{'state':_0x37eb('0x6f')});case _0x37eb('0x26'):this[_0x37eb('0xe9')][_0x37eb('0x7c')](_0x5792fe,_0x37eb('0x108')),this[_0x37eb('0x9')](_0x37eb('0x86'),_0x5792fe);break;case _0x37eb('0x108'):this[_0x37eb('0x9')](_0x37eb('0x75'),_0x5792fe);}return _0x5792fe[_0x37eb('0x3d')](_0x26d482),_0x5792fe;}[_0x37eb('0x117')](_0x3cad2f){const _0x1d3dcb=Array[_0x37eb('0xd5')](_0x3cad2f)[_0x37eb('0x94')](_0x533089=>!_0x533089[_0x37eb('0xc7')]),_0x4505b6=this[_0x37eb('0x9e')]({'skipNotAttached':!0x0})['filter'](_0x4b41c3=>!_0x4b41c3[_0x37eb('0xc7')]),_0x17bab7=_0x4505b6['filter'](_0x3c5a01=>!_0x3cad2f[_0x37eb('0x65')](_0x3c5a01)),_0x4c67e9=new Map(_0x4505b6[_0x37eb('0x77')](_0x57176b=>[_0x57176b,this['_suggestionFactory'][_0x37eb('0xbf')](_0x57176b[_0x37eb('0x55')],_0x57176b[_0x37eb('0x74')],_0x37eb('0x122'))])),_0xcc4e3f=new Map(_0x4505b6[_0x37eb('0x77')](_0x20b8f0=>[_0x20b8f0,_0x20b8f0[_0x37eb('0x9f')]()])),_0x43715c=new Set(),_0xb7bc8c=new Set();for(let _0x3e8142=0x0;_0x3e8142<_0x1d3dcb['length'];_0x3e8142++)_0x245137(_0x1d3dcb[_0x3e8142],_0x1d3dcb,_0x3e8142+0x1);for(let _0x1cae94=0x0;_0x1cae94<_0x1d3dcb[_0x37eb('0x106')];_0x1cae94++)_0x245137(_0x1d3dcb[_0x1cae94],_0x17bab7,0x0);for(let _0x358046=0x0;_0x358046<_0x1d3dcb[_0x37eb('0x106')];_0x358046++){const _0x75bdbb=_0x1d3dcb[_0x358046];!_0xb7bc8c['has'](_0x75bdbb)&&_0x75bdbb[_0x37eb('0x10b')]&&(_0x75bdbb[_0x37eb('0x10b')][_0x37eb('0x3')]===_0x75bdbb&&(_0x75bdbb[_0x37eb('0x10b')][_0x37eb('0x3')]=null),_0x75bdbb[_0x37eb('0x10b')]=null),!_0x43715c[_0x37eb('0x65')](_0x75bdbb)&&_0x75bdbb[_0x37eb('0x3')]&&(_0x75bdbb[_0x37eb('0x3')][_0x37eb('0x10b')]===_0x75bdbb&&(_0x75bdbb[_0x37eb('0x3')][_0x37eb('0x10b')]=null),_0x75bdbb['next']=null);}function _0x245137(_0x8db42,_0x146553,_0x420e28){for(let _0x40f23d=_0x420e28;_0x40f23d<_0x146553[_0x37eb('0x106')];_0x40f23d++){const _0x5c69e2=_0x30420b(_0x8db42,_0x146553[_0x40f23d]);_0x5c69e2&&(_0x5c69e2[0x0][_0x37eb('0x3')]=_0x5c69e2[0x1],_0x5c69e2[0x1]['previous']=_0x5c69e2[0x0],_0x43715c[_0x37eb('0xca')](_0x5c69e2[0x0]),_0xb7bc8c['add'](_0x5c69e2[0x1]));}}function _0x30420b(_0x47a963,_0x250bb8){if(_0x47a963[_0x37eb('0x72')]['id']!==_0x250bb8[_0x37eb('0x72')]['id'])return null;const _0x3f4b5e=_0x4c67e9[_0x37eb('0x59')](_0x47a963)(_0x47a963,_0x250bb8,_0xcc4e3f[_0x37eb('0x59')](_0x47a963),_0xcc4e3f[_0x37eb('0x59')](_0x250bb8));if(!_0x3f4b5e)return null;return _0x4c67e9[_0x37eb('0x59')](_0x250bb8)(_0x47a963,_0x250bb8,_0xcc4e3f[_0x37eb('0x59')](_0x47a963),_0xcc4e3f[_0x37eb('0x59')](_0x250bb8))?_0x3f4b5e[0x1][_0x37eb('0x11f')]&&_0x3f4b5e[0x1]['commentThread'][_0x37eb('0x106')]?null:_0x3f4b5e:null;}}[_0x37eb('0xf4')](_0x62d473){const _0x12cb69=Array['from'](_0x62d473),_0x238d1e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x345237=_0x238d1e[_0x37eb('0x94')](_0xa2aae0=>!_0x62d473[_0x37eb('0x65')](_0xa2aae0)),_0x3ebcbd=new Map(_0x12cb69[_0x37eb('0x77')](_0x245f85=>[_0x245f85,this[_0x37eb('0xc')][_0x37eb('0xbf')](_0x245f85[_0x37eb('0x55')],_0x245f85['subType'],_0x37eb('0xe0'))])),_0x2eab7e=new Map(_0x238d1e['map'](_0xaa9a3f=>[_0xaa9a3f,_0xaa9a3f[_0x37eb('0x91')]()]));for(let _0x304f0b=0x0;_0x304f0b<_0x12cb69[_0x37eb('0x106')];_0x304f0b++){if(_0x7913b5(this,_0x12cb69[_0x304f0b],_0x12cb69,_0x304f0b+0x1))return!0x0;}for(let _0x203fc3=0x0;_0x203fc3<_0x12cb69['length'];_0x203fc3++){if(_0x7913b5(this,_0x12cb69[_0x203fc3],_0x345237,0x0))return!0x0;}return!0x1;function _0x7913b5(_0x50d1da,_0x438f19,_0x5d5f37,_0x3ab45c){for(let _0x2c737e=_0x3ab45c;_0x2c737e<_0x5d5f37['length'];_0x2c737e++){const _0x19eae3=_0x5d5f37[_0x2c737e];if(_0x19eae3['type']!==_0x438f19[_0x37eb('0x55')]||_0x19eae3[_0x37eb('0x72')]['id']!==_0x438f19[_0x37eb('0x72')]['id']||_0x19eae3[_0x37eb('0x74')]!==_0x438f19[_0x37eb('0x74')])continue;if(!xt(_0x438f19,_0x19eae3))continue;const _0x443cbd=_0x3ebcbd[_0x37eb('0x59')](_0x438f19),_0x36da60=_0x2eab7e[_0x37eb('0x59')](_0x438f19),_0x32f7ca=_0x2eab7e[_0x37eb('0x59')](_0x19eae3),_0xeb9b76=_0x438f19[_0x37eb('0x11f')]&&_0x438f19[_0x37eb('0x11f')][_0x37eb('0x106')],_0xf98be=_0x19eae3['commentThread']&&_0x19eae3[_0x37eb('0x11f')][_0x37eb('0x106')];if(!_0xeb9b76&&_0x443cbd(_0x32f7ca,_0x36da60))return _0x50d1da[_0x37eb('0x2a')](_0x19eae3,_0x438f19),_0x2eab7e[_0x37eb('0x7d')](_0x438f19),!0x0;if(!_0xf98be&&_0x443cbd(_0x36da60,_0x32f7ca))return _0x50d1da[_0x37eb('0x2a')](_0x438f19,_0x19eae3),_0x2eab7e[_0x37eb('0x7d')](_0x19eae3),!0x0;}return!0x1;}}[_0x37eb('0x2a')](_0x494734,_0x1cf0f3){if(_0x494734[_0x37eb('0xc7')])for(const _0x48aa73 of _0x1cf0f3['getRanges']())_0x494734['addRange'](_0x48aa73);else{const _0x143796=_0x1cf0f3[_0x37eb('0x9f')]()[_0x37eb('0x12d')];this[_0x37eb('0xf9')](_0x494734,this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0x494734[_0x37eb('0x9f')]()[_0x37eb('0xb1')],_0x143796));}_0x1cf0f3[_0x37eb('0x80')]();}}class Dt{constructor(_0x66d54d){this[_0x37eb('0xd9')]=_0x66d54d,this[_0x37eb('0x4d')]=_0x66d54d[_0x37eb('0xa')],this[_0x37eb('0xee')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x37eb('0xb7')]();}[_0x37eb('0x54')](_0x1588f7,_0x4dfaff,_0x41cf4b,_0x505de4,_0x2683dd,_0x55a69c){return new _0x5d4473(this[_0x37eb('0x4d')],{'type':_0x1588f7,'subType':_0x4dfaff,'id':_0x41cf4b,'author':_0x505de4,'creator':_0x505de4,'attributes':_0x2683dd,'onAttributesChange':_0x55a69c,'onAccept':(..._0x282de5)=>this['getSuggestionCallback'](_0x1588f7,_0x4dfaff,_0x37eb('0x105'))(..._0x282de5),'onDiscard':(..._0x223a0a)=>this[_0x37eb('0xbf')](_0x1588f7,_0x4dfaff,_0x37eb('0x113'))(..._0x223a0a)});}[_0x37eb('0x2')](_0x6f8cf5,_0x2b03bb,_0x2a07ac,_0x260f82){const _0x129166=_0x6f8cf5+':'+_0x2b03bb+':'+_0x2a07ac;this['_customCallbacks'][_0x37eb('0x7c')](_0x129166,_0x260f82);}[_0x37eb('0xbf')](_0x440725,_0x580500,_0x5b3d05){const _0x2dbe26=_0x440725+':'+_0x580500+':'+_0x5b3d05;return this[_0x37eb('0xee')][_0x37eb('0x59')](_0x2dbe26)||this[_0x37eb('0x118')][_0x37eb('0x59')](_0x440725+':'+_0x5b3d05);}['_registerDefaultCallbacks'](){const _0x184f7c=()=>!0x1,_0x539e6d=_0x58b6df=>{_0x58b6df[_0x37eb('0x16')]((_0x5a73f9,_0x22b992)=>_0x5a73f9[_0x37eb('0xb1')][_0x37eb('0xfe')](_0x22b992[_0x37eb('0xb1')])?0x1:-0x1),this[_0x37eb('0x4d')][_0x37eb('0xc3')](_0xa50ef1=>{for(const _0x568350 of _0x58b6df){let _0x13e946;_0x13e946=_0x568350[_0x37eb('0x12d')]['isAtEnd']&&_0x568350['end'][_0x37eb('0x48')]==_0x568350[_0x37eb('0xb1')][_0x37eb('0x1')]?_0xa50ef1['createSelection'](_0x568350[_0x37eb('0xb1')]['nodeAfter'],'on'):_0xa50ef1[_0x37eb('0x1e')](_0x568350),this[_0x37eb('0x4d')][_0x37eb('0x79')](_0x13e946,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a42e4=(_0x2edce7,_0xda580c)=>{this[_0x37eb('0x4d')][_0x37eb('0xc3')](_0x171e4e=>{const {commandName:_0x3569e3,commandParams:_0x9bd51c=[]}=_0xda580c,_0x98374a=_0x2edce7['map'](_0xab578d=>(_t(_0xab578d)&&(_0xab578d=this[_0x37eb('0x4d')][_0x37eb('0xb4')](_0xab578d[_0x37eb('0x12d')])),_0xab578d))['filter'](_0xec0276=>'$graveyard'!==_0xec0276[_0x37eb('0xcc')][_0x37eb('0x3a')]);if(_0x98374a[_0x37eb('0x106')]<0x1)return;const _0x14a7b4=Array[_0x37eb('0xd5')](this[_0x37eb('0x4d')]['document']['selection'][_0x37eb('0x91')]())[_0x37eb('0x77')](_0x550d2e=>_0x4586a9['fromRange'](_0x550d2e));_0x171e4e['setSelection'](_0x98374a);for(const _0xc42e98 of this[_0x37eb('0xd9')]['commands'][_0x37eb('0x38')]())_0xc42e98[_0x37eb('0xf8')]();_0x9bd51c['push']({'forceDefaultExecution':!0x0}),this[_0x37eb('0xd9')]['execute'](_0x3569e3,..._0x9bd51c);const _0x212017=_0x14a7b4['filter'](_0x5a729d=>'$graveyard'!=_0x5a729d['root'][_0x37eb('0x3a')]);_0x212017[_0x37eb('0x106')]>0x0&&_0x171e4e[_0x37eb('0xc4')](_0x212017);for(const _0x2fe1a6 of _0x14a7b4)_0x2fe1a6[_0x37eb('0x111')]();});},_0x1cc7b5=(_0x4fe2a8,_0x54de5d)=>0x1==_0x4fe2a8[_0x37eb('0x106')]&&0x1==_0x54de5d[_0x37eb('0x106')]&&_0x4fe2a8[0x0][_0x37eb('0x12d')][_0x37eb('0x84')](_0x54de5d[0x0][_0x37eb('0xb1')]),_0x98bce3=(_0x39181c,_0x2ca840,_0xefebbf,_0x4ae91a)=>jt(_0x39181c,_0x2ca840,_0xefebbf,_0x4ae91a,this[_0x37eb('0x4d')])?[_0x39181c,_0x2ca840]:jt(_0x2ca840,_0x39181c,_0x4ae91a,_0xefebbf,this[_0x37eb('0x4d')])?[_0x2ca840,_0x39181c]:null;this[_0x37eb('0x118')][_0x37eb('0x7c')]('insertion:accept',_0x184f7c),this[_0x37eb('0x118')]['set'](_0x37eb('0x9c'),_0x539e6d),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x133'),_0x1cc7b5),this['_defaultCallbacks'][_0x37eb('0x7c')](_0x37eb('0x10f'),_0x98bce3),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x13f'),_0x539e6d),this[_0x37eb('0x118')]['set'](_0x37eb('0x100'),_0x184f7c),this['_defaultCallbacks'][_0x37eb('0x7c')]('deletion:join',_0x1cc7b5),this[_0x37eb('0x118')]['set'](_0x37eb('0xf3'),_0x98bce3),this['_defaultCallbacks']['set'](_0x37eb('0xdd'),_0x2a42e4),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x60'),_0x184f7c),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0xd3'),_0x1cc7b5),this['_defaultCallbacks']['set']('formatInline:chain',_0x184f7c),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0x49'),_0x2a42e4),this['_defaultCallbacks']['set'](_0x37eb('0x99'),_0x184f7c),this[_0x37eb('0x118')][_0x37eb('0x7c')](_0x37eb('0xb9'),_0x1cc7b5),this[_0x37eb('0x118')][_0x37eb('0x7c')]('formatBlock:chain',_0x184f7c);}}function Bt(_0x3d7f0b,_0x8edc91,_0x5e1cfd){for(const _0x341e1e of _0x8edc91[_0x37eb('0x48')][_0x37eb('0x8d')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x341e1e[_0x37eb('0xcc')]==_0x341e1e)return!0x1;if(!_0x5e1cfd[_0x37eb('0xe5')](_0x341e1e))return!0x1;if(_0x3d7f0b[_0x37eb('0xd')](_0x341e1e)||_0x3d7f0b[_0x37eb('0x88')](_0x341e1e))return!0x0;}return!0x1;}function _t(_0x44bf49){return _0x44bf49[_0x37eb('0x12d')][_0x37eb('0x48')]==_0x44bf49[_0x37eb('0xb1')][_0x37eb('0x1')]&&_0x44bf49[_0x37eb('0x12d')][_0x37eb('0x5f')];}function Mt(_0x99786e,_0x1c425a,_0x1d4f63,_0x4c56f8){const _0x1e0b55=_0x44bd6a=>!_0x44bd6a['item']['is'](_0x37eb('0x101'))&&!_0x4c56f8[_0x37eb('0xd')](_0x44bd6a['item']),_0x137969=_0x99786e[_0x37eb('0xb1')][_0x37eb('0x6a')](_0x1e0b55),_0x3d5685=_0x99786e[_0x37eb('0x12d')][_0x37eb('0x6a')](_0x1e0b55,{'direction':_0x37eb('0xd4')});return(!_0x99786e[_0x37eb('0xb1')][_0x37eb('0x84')](_0x137969)||!_0x99786e[_0x37eb('0x12d')][_0x37eb('0x84')](_0x3d5685))&&(_0x137969[_0x37eb('0xfe')](_0x3d5685)?_0x1d4f63['updateMarker'](_0x1c425a,{'range':_0x1d4f63['createRange'](_0x137969,_0x3d5685)}):_0x1d4f63['removeMarker'](_0x1c425a),!0x0);}function $t(_0x4439b0){return _0x10009b(_0x4439b0);}function Nt(_0x3df1f6){const _0x4189b3=_0x3df1f6[_0x37eb('0xb1')][_0x37eb('0x1')];return _0x4189b3&&_0x4189b3['is'](_0x37eb('0xfb'));}function Rt(_0x35a8aa,_0x5e3a3a){const _0x20949f=_0x5e3a3a[_0x37eb('0x66')]['isObject'](_0x35a8aa)||_0x5e3a3a[_0x37eb('0x66')][_0x37eb('0xeb')](_0x35a8aa);return _0x5e3a3a[_0x37eb('0xb4')](_0x5e3a3a['createPositionAt'](_0x35a8aa,'before'),_0x20949f?_0x5e3a3a['createPositionAfter'](_0x35a8aa):_0x5e3a3a[_0x37eb('0x13e')](_0x35a8aa,_0x37eb('0x12d')));}function jt(_0x2460b9,_0x328f50,_0x18194b,_0x2d3754,_0x59c477){if(!xt(_0x2460b9,_0x328f50))return!0x1;if(_0x18194b[_0x37eb('0x12d')][_0x37eb('0x84')](_0x2d3754[_0x37eb('0xb1')]))return!0x0;if(_0x2460b9[_0x37eb('0x55')]!=_0x328f50[_0x37eb('0x55')])return!0x1;if(!_0x18194b['end']['isTouching'](_0x2d3754[_0x37eb('0xb1')]))return!0x1;const _0x31aaee=_0x59c477['createRange'](_0x18194b[_0x37eb('0x12d')],_0x2d3754[_0x37eb('0xb1')])[_0x37eb('0xa8')]();for(const _0x2b8f32 of _0x31aaee)if([_0x37eb('0x46'),'elementEnd'][_0x37eb('0x61')](_0x2b8f32['type'])&&_0x59c477[_0x37eb('0x66')][_0x37eb('0x88')](_0x2b8f32['item']))return!0x1;return!0x0;}function xt(_0x49062e,_0x8ceef4){return!(!_0x49062e[_0x37eb('0x8c')]||!_0x8ceef4[_0x37eb('0x8c')])&&_0x49024e(_0x49062e[_0x37eb('0x141')],_0x8ceef4[_0x37eb('0x141')]);}function Ut(_0x2614d1,_0x30ff30){const _0x59989d=Ot(_0x2614d1[_0x37eb('0x141')]),_0x5263ab=Ot(_0x30ff30);if(!_0x2614d1[_0x37eb('0x8c')])return!0x1;for(const _0x91236a of Object['keys'](_0x5263ab))if(!_0x49024e(_0x59989d[_0x91236a],_0x5263ab[_0x91236a]))return!0x1;return!0x0;}function Ot(_0x1adcae){const _0x2aac2a=Object[_0x37eb('0x5e')]({},_0x1adcae);return delete _0x2aac2a[_0x37eb('0x52')],delete _0x2aac2a[_0x37eb('0x33')],_0x2aac2a;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d5d=['getFirstRange','get','arrowView','comments.maxCommentCharsWhenCollapsed','createAnnotationView','getDescriptions','unbind','switchbutton','EditorAnnotations','locale','change:activeAnnotations','reduce','view','_annotationViews','suggestionLoaded','_updateController','change:previous','CommentsRepository','init','refreshSelectedViews','lowest','innerView','comments.editorConfig','delete','focus','_createUIButton','size','commentThread','type','TrackChangesUI','previous','from','getSuggestion','values','_descriptionFactory','actionView','suggestion-','config','getMarkerNames','button','trackChanges.disableComments','isEnabled','add','SuggestionThreadView','listenTo','_initializeController','keys','trackChanges','acceptAllSuggestions','trackChanges.SuggestionThreadView','discardButton','TrackChangesEditing','getMarkers','commands','filter','some','isOn','isMultiRange','getRanges','Annotations','commandName','push','_viewToController','getByInnerView','CommentView','requires','has','destroy','_handleSuggestionControllerDelayed','value','suggestionChanged','isInContent','_disableComments','_bindAnnotationToEditors','_destroyController','head','define','_suggestionToController','_refreshActiveMarkers','getJoined','clear','editor','CommentsUI','getAllAdjacentSuggestions','addComment','Track\x20changes','buttonView','componentFactory','plugins','acceptButton','Discard\x20all\x20suggestions','model','descriptionParts','_handleControllerBuffer','createAnnotation','addSourceCollector','isDirty','set','length','bind','separator','execute','pluginName','editing','acceptSelectedSuggestions','source','mainView'];(function(_0x3ef766,_0x5d5d2d){const _0x3b5a02=function(_0x3bcedb){while(--_0x3bcedb){_0x3ef766['push'](_0x3ef766['shift']());}};_0x3b5a02(++_0x5d5d2d);}(_0x5d5d,0x16c));const _0x3b5a=function(_0x3ef766,_0x5d5d2d){_0x3ef766=_0x3ef766-0x0;let _0x3b5a02=_0x5d5d[_0x3ef766];return _0x3b5a02;};import{Plugin as _0x5cae29}from'ckeditor5/src/core';import{Collection as _0x4c9845}from'ckeditor5/src/utils';import{Model as _0x3ae574,SplitButtonView as _0x5948dd,createDropdown as _0x5f25cc,addListToDropdown as _0x14be52}from'ckeditor5/src/ui';import{Users as _0x475d9e,getDateTimeFormatter as _0x2ff6ed,getAllMarkersDomElementsSorted as _0x302601}from'ckeditor5-collaboration/src/collaboration-core';import _0x26a636 from'./trackchangesediting';import _0xe3e04e from'./ui/suggestioncontroller';import _0x36c549 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1cf1e0}from'./utils/common-translations';import _0xcace68 from'../theme/icons/track-changes.svg';export default class d extends _0x5cae29{static get[_0x3b5a('0x16')](){return[_0x26a636,_0x475d9e,_0x3b5a('0x51'),_0x3b5a('0x10'),_0x3b5a('0x48')];}static get[_0x3b5a('0x3b')](){return _0x3b5a('0x5d');}constructor(_0x54bb91){super(_0x54bb91),this['_suggestionToController']=new Map(),this[_0x3b5a('0x13')]=new Map(),this[_0x3b5a('0x4d')]=new Map(),this[_0x3b5a('0x32')]=new Map();const _0x3c3577=this['editor'][_0x3b5a('0x65')];_0x3c3577['define'](_0x3b5a('0x6'),_0x36c549),_0x3c3577[_0x3b5a('0x21')](_0x3b5a('0x68'),!0x1),this[_0x3b5a('0x1d')]=_0x3c3577[_0x3b5a('0x41')]('trackChanges.disableComments');}[_0x3b5a('0x19')](_0x3d22df,_0x79a0de){0x0===this['_handleControllerBuffer'][_0x3b5a('0x5a')]&&setTimeout(()=>{for(const [_0x59a3dd,_0x599bdf]of this[_0x3b5a('0x32')]){const _0x310207=this[_0x3b5a('0x22')]['has'](_0x59a3dd);_0x310207||_0x599bdf?_0x310207&&_0x599bdf&&this[_0x3b5a('0x1f')](_0x59a3dd):this[_0x3b5a('0x2')](_0x59a3dd);}this['editor'][_0x3b5a('0x2d')][_0x3b5a('0x41')]('EditorAnnotations')[_0x3b5a('0x53')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x3b5a('0x25')]();},0xa),this[_0x3b5a('0x32')][_0x3b5a('0x36')](_0x3d22df,_0x79a0de);}[_0x3b5a('0x52')](){const _0x9ad87a=this['editor'],_0x3805f8=_0x9ad87a[_0x3b5a('0x2d')]['get'](_0x3b5a('0x8')),_0x7ed14e=_0x9ad87a[_0x3b5a('0x2d')]['get']('Annotations'),_0x30effb=_0x9ad87a['plugins'][_0x3b5a('0x41')](_0x3b5a('0x48')),_0x37f980=_0x9ad87a[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x51'));_0x9ad87a['ui'][_0x3b5a('0x2c')]['add'](_0x3b5a('0x4'),_0x181a20=>this[_0x3b5a('0x59')](_0x181a20)),_0x30effb[_0x3b5a('0x34')](()=>{const _0x2966f0=[];for(const [_0xff827e,_0x4d9be1]of Array['from'](this['_suggestionToController'])){const _0x5ccd41=_0xff827e[_0x3b5a('0x28')](),_0x352408=[];for(const _0x3c81d1 of _0x5ccd41){if(!_0x3c81d1[_0x3b5a('0x1c')])continue;if(_0x3c81d1[_0x3b5a('0xe')]){_0x352408[_0x3b5a('0x12')](..._0x3c81d1[_0x3b5a('0xf')]());continue;}const _0x502216=_0x3c81d1[_0x3b5a('0x40')]();if(_0x352408['length']>0x0){const _0x241e96=_0x352408[0x0][_0x3b5a('0x24')](_0x502216);if(_0x241e96){_0x352408[0x0]=_0x241e96;continue;}}_0x352408[_0x3b5a('0x12')](_0x502216);}_0x2966f0[_0x3b5a('0x12')]([_0x4d9be1[_0x3b5a('0x4c')],_0x352408]);}return _0x2966f0;}),this[_0x3b5a('0x1')](_0x3805f8,_0x3b5a('0x4e'),(_0x4bb322,_0x33a929)=>{this[_0x3b5a('0x1')](_0x33a929,_0x3b5a('0x50'),(_0x5b7932,_0x4d7276,_0x70690c,_0x28cd48)=>{_0x33a929['isInContent']&&(null==_0x70690c?(this[_0x3b5a('0x4f')](_0x28cd48['head']),this['_handleSuggestionControllerDelayed'](_0x33a929,!0x1)):(this[_0x3b5a('0x4f')](_0x70690c[_0x3b5a('0x20')]),this[_0x3b5a('0x19')](_0x33a929,!0x0)));}),null===_0x33a929[_0x3b5a('0x5e')]?this['_handleSuggestionControllerDelayed'](_0x33a929,!0x1):this[_0x3b5a('0x4f')](_0x33a929[_0x3b5a('0x20')]);}),this[_0x3b5a('0x1')](_0x3805f8,'suggestionUnloaded',(_0x245aa6,_0xc26594,_0x2a86e7)=>{this['stopListening'](_0xc26594,_0x3b5a('0x50')),this[_0x3b5a('0x32')][_0x3b5a('0x57')](_0xc26594);const _0x437d06=_0x2a86e7?_0x2a86e7[_0x3b5a('0x20')]:_0xc26594,_0x1be240=this[_0x3b5a('0x22')]['get'](_0x437d06);null!==_0x2a86e7&&this[_0x3b5a('0x4f')](_0x437d06),null===_0x2a86e7&&_0x1be240&&this['_destroyController'](_0xc26594);}),this[_0x3b5a('0x1')](_0x3805f8,_0x3b5a('0x1b'),(_0x5d99ca,_0x2c2019)=>{this[_0x3b5a('0x4f')](_0x2c2019);}),this['listenTo'](_0x7ed14e,_0x3b5a('0x4a'),()=>{this[_0x3b5a('0x23')]();}),this[_0x3b5a('0x1')](_0x37f980,_0x3b5a('0x29'),(_0x1b619e,{threadId:_0x27d3ba,isFromAdapter:_0x3dff5e})=>{if(_0x3dff5e||!_0x3805f8['hasSuggestion'](_0x27d3ba))return;const _0x1832ae=_0x3805f8[_0x3b5a('0x60')](_0x27d3ba);this[_0x3b5a('0x22')][_0x3b5a('0x41')](_0x1832ae)['view'][_0x3b5a('0x58')]();},{'priority':_0x3b5a('0x54')});}['_refreshActiveMarkers'](){const _0x4b166c=this[_0x3b5a('0x26')]['plugins'][_0x3b5a('0x41')](_0x3b5a('0x10')),_0xcf4585=this['editor'][_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x8')),_0x4ffb11=Array[_0x3b5a('0x5f')](_0x4b166c['activeAnnotations'],_0x473d75=>_0x473d75[_0x3b5a('0x55')])[_0x3b5a('0xb')](_0x4020b6=>this['_viewToController'][_0x3b5a('0x17')](_0x4020b6)),_0x364eb4=[];for(const _0x51a16d of _0x4ffb11){const _0x4431cc=this['_viewToController']['get'](_0x51a16d)[_0x3b5a('0x30')][_0x3b5a('0x28')]();_0x364eb4[_0x3b5a('0x12')](..._0x4431cc[_0x3b5a('0x4b')]((_0x22f2b0,_0x1abaf5)=>[..._0x22f2b0,..._0x1abaf5[_0x3b5a('0x66')]()],[]));}_0xcf4585['activeMarkers']=_0x364eb4;}[_0x3b5a('0x59')](_0x104aab){const _0x42dbb1=_0x5f25cc(_0x104aab,_0x5948dd),_0x5b9f9e=this['editor'][_0x3b5a('0xa')][_0x3b5a('0x41')]('trackChanges'),_0x24f4f7=_0x1cf1e0(_0x104aab,_0x3b5a('0x2a'));_0x42dbb1[_0x3b5a('0x2b')]['set']({'tooltip':_0x24f4f7,'label':_0x24f4f7,'icon':_0xcace68}),_0x42dbb1[_0x3b5a('0x2b')][_0x3b5a('0x38')](_0x3b5a('0xd'))['to'](_0x5b9f9e,_0x3b5a('0x1a')),_0x42dbb1[_0x3b5a('0x2b')]['on'](_0x3b5a('0x3a'),()=>{_0x5b9f9e[_0x3b5a('0x3a')](),this[_0x3b5a('0x26')][_0x3b5a('0x3c')][_0x3b5a('0x4c')]['focus']();});const _0x3edfa5=new _0x4c9845(),_0x22a876=[{'type':_0x3b5a('0x47'),'model':{'withText':!0x0,'label':_0x24f4f7,'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Accept\x20all\x20suggestions'),'commandName':_0x3b5a('0x5')}},{'type':_0x3b5a('0x67'),'model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x3b5a('0x3d')}},{'type':'button','model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,_0x3b5a('0x2f')),'commandName':'discardAllSuggestions'}},{'type':_0x3b5a('0x67'),'model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0xa62040 of _0x22a876){let _0x3b8e29={'type':_0x3b5a('0x39')};if(_0xa62040['model']){const _0x4f1009=new _0x3ae574(_0xa62040['model']),_0x264003=this['editor'][_0x3b5a('0xa')]['get'](_0x4f1009[_0x3b5a('0x11')]);_0x4f1009[_0x3b5a('0x38')](_0x3b5a('0xd'),_0x3b5a('0x69'))['to'](_0x264003,_0x3b5a('0x1a'),'isEnabled'),_0x3b8e29={'type':_0xa62040[_0x3b5a('0x5c')],'model':_0x4f1009};}_0x3edfa5[_0x3b5a('0x6a')](_0x3b8e29);}_0x14be52(_0x42dbb1,_0x3edfa5);const _0x528b84=_0x22a876[_0x3b5a('0xb')](_0x19e1e9=>null!=_0x19e1e9[_0x3b5a('0x30')])['map'](_0x431ba2=>this[_0x3b5a('0x26')][_0x3b5a('0xa')]['get'](_0x431ba2[_0x3b5a('0x30')][_0x3b5a('0x11')])),_0x37877b=_0x42dbb1[_0x3b5a('0x2b')];return _0x37877b[_0x3b5a('0x63')][_0x3b5a('0x46')](_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x42')][_0x3b5a('0x46')](_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x63')]['bind'](_0x3b5a('0x69'))['to'](_0x5b9f9e,_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x42')][_0x3b5a('0x38')](_0x3b5a('0x69'))['toMany'](_0x528b84,_0x3b5a('0x69'),(..._0x5c6dc0)=>_0x5c6dc0[_0x3b5a('0xc')](_0x1a3cc9=>_0x1a3cc9)),_0x42dbb1['on'](_0x3b5a('0x3a'),_0x358483=>{this[_0x3b5a('0x26')][_0x3b5a('0x3a')](_0x358483[_0x3b5a('0x3e')][_0x3b5a('0x11')]),this[_0x3b5a('0x26')][_0x3b5a('0x3c')][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x42dbb1;}[_0x3b5a('0x2')](_0x5df0d0){const _0x5c87f1=this['editor'],_0x145199=_0x5c87f1['config'],_0x560239=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x10')),_0x139469=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x51')),_0x1027d7=_0x5c87f1[_0x3b5a('0x2d')]['get'](_0x3b5a('0x48')),_0x310311=_0x5c87f1['plugins'][_0x3b5a('0x41')](_0x475d9e)['me'],_0xbfe373=_0x145199[_0x3b5a('0x41')]('trackChanges')[_0x3b5a('0x0')],{CommentsListView:_0x2dff7b,CommentThreadInputView:_0x14b8e2}=_0x5c87f1['plugins']['get'](_0x3b5a('0x27'));let _0x129055,_0x41ed97;this[_0x3b5a('0x4d')][_0x3b5a('0x17')](_0x5df0d0['id'])?(_0x41ed97=this[_0x3b5a('0x4d')]['get'](_0x5df0d0['id']),_0x129055=_0x41ed97[_0x3b5a('0x3f')]):(_0x129055=new _0xbfe373(_0x5c87f1[_0x3b5a('0x49')],_0x5df0d0,_0x310311,{'disableComments':this['_disableComments'],'editorConfig':_0x145199[_0x3b5a('0x41')](_0x3b5a('0x56')),'maxCommentsWhenCollapsed':_0x145199[_0x3b5a('0x41')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x145199['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x145199[_0x3b5a('0x41')](_0x3b5a('0x43')),'formatDateTime':_0x2ff6ed(_0x145199[_0x3b5a('0x41')](_0x3b5a('0x49'))),'CommentView':_0x145199[_0x3b5a('0x41')]('comments')[_0x3b5a('0x15')],'CommentsListView':_0x2dff7b,'CommentThreadInputView':_0x14b8e2}),_0x129055[_0x3b5a('0x2e')]['on'](_0x3b5a('0x3a'),()=>{_0x5c87f1[_0x3b5a('0x3c')][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x129055[_0x3b5a('0x7')]['on'](_0x3b5a('0x3a'),()=>{_0x5c87f1['editing'][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x41ed97=_0x560239[_0x3b5a('0x44')](this['editor'][_0x3b5a('0x49')],_0x129055),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x35'))['to'](_0x129055,_0x3b5a('0x35')),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x37'))['to'](_0x129055),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x5c'))['to'](_0x129055,_0x3b5a('0x5c'),_0x3817f7=>_0x3b5a('0x64')+_0x3817f7),this[_0x3b5a('0x4d')][_0x3b5a('0x36')](_0x5df0d0['id'],_0x41ed97));const _0x4f1f37=_0x139469['createCommentThreadController'](_0x5df0d0[_0x3b5a('0x5b')],_0x129055),_0x1075ad=new _0xe3e04e(_0x5c87f1,_0x5df0d0,_0x129055,_0x4f1f37),_0x48ff35=_0x5df0d0[_0x3b5a('0x28')]()['filter'](_0x205fac=>_0x205fac['isInContent']);_0x129055['descriptionParts']=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x8'))['_descriptionFactory'][_0x3b5a('0x45')](_0x48ff35),this[_0x3b5a('0x22')][_0x3b5a('0x36')](_0x5df0d0,_0x1075ad),this[_0x3b5a('0x13')]['set'](_0x129055,_0x1075ad);const _0x1f38c1=_0x560239[_0x3b5a('0x33')]({'view':_0x41ed97,'target':()=>{const _0x388474=[],_0x2bdefb=_0x5df0d0[_0x3b5a('0x28')]()[_0x3b5a('0xb')](_0x554821=>_0x554821['isInContent']);for(const _0x51d6a0 of _0x2bdefb)_0x388474[_0x3b5a('0x12')](..._0x51d6a0[_0x3b5a('0x9')]());return _0x302601(_0x5c87f1[_0x3b5a('0x3c')],_0x388474);},'type':()=>_0x3b5a('0x64')+_0x1075ad['view'][_0x3b5a('0x5c')]});_0x139469[_0x3b5a('0x1e')](_0x129055,_0x1f38c1),_0x560239[_0x3b5a('0x6a')](_0x1f38c1),_0x1027d7['registerAnnotation'](_0x1f38c1);}[_0x3b5a('0x1f')](_0x4fed35){const _0x1f470b=this[_0x3b5a('0x26')]['plugins'][_0x3b5a('0x41')]('Annotations'),_0x5b908c=this['_suggestionToController'][_0x3b5a('0x41')](_0x4fed35),_0x4e0a15=_0x5b908c[_0x3b5a('0x4c')],_0x25700b=_0x1f470b[_0x3b5a('0x14')](_0x4e0a15);_0x25700b&&_0x1f470b['remove'](_0x25700b),this['_suggestionToController'][_0x3b5a('0x57')](_0x4fed35),this[_0x3b5a('0x13')][_0x3b5a('0x57')](_0x4e0a15),_0x5b908c[_0x3b5a('0x18')]();}[_0x3b5a('0x4f')](_0x189575){if(!_0x189575[_0x3b5a('0x1c')]||!this['_suggestionToController']['has'](_0x189575))return;const _0x547c23=this[_0x3b5a('0x26')]['plugins']['get']('TrackChangesEditing'),_0x3861b9=this['_suggestionToController'][_0x3b5a('0x41')](_0x189575),_0x103434=_0x189575[_0x3b5a('0x28')]();_0x3861b9['view'][_0x3b5a('0x31')]=_0x547c23[_0x3b5a('0x62')]['getDescriptions'](_0x103434);}[_0x3b5a('0x18')](){for(const _0x1f89d0 of this[_0x3b5a('0x22')][_0x3b5a('0x3')]())this[_0x3b5a('0x1f')](_0x1f89d0);for(const _0x49dadc of this[_0x3b5a('0x4d')][_0x3b5a('0x61')]())_0x49dadc[_0x3b5a('0x3f')][_0x3b5a('0x18')]();super[_0x3b5a('0x18')]();}}
23
+ const _0x51d4=['commentThread','editing','plugins','registerAnnotation','TrackChangesUI','toMany','innerView','suggestionChanged','trackChanges.SuggestionThreadView','arrowView','createAnnotation','commands','createCommentThreadController','suggestionLoaded','config','push','define','isDirty','getMarkerNames','filter','view','listenTo','comments.maxCommentsWhenCollapsed','_suggestionToController','activeMarkers','hasSuggestion','_createUIButton','suggestion-','getAllAdjacentSuggestions','trackChanges','size','_bindAnnotationToEditors','pluginName','actionView','getMarkers','destroy','length','clear','getDescriptions','editor','Accept\x20all\x20suggestions','addComment','CommentView','type','source','head','_refreshActiveMarkers','has','_disableComments','previous','comments.maxCommentCharsWhenCollapsed','CommentsUI','focus','TrackChangesEditing','trackChanges.disableComments','change:previous','mainView','Discard\x20all\x20selected\x20suggestions','activeAnnotations','_viewToController','button','acceptAllSuggestions','switchbutton','suggestionUnloaded','_updateController','model','getFirstRange','stopListening','locale','Accept\x20all\x20selected\x20suggestions','_initializeController','componentFactory','execute','separator','delete','get','_handleSuggestionControllerDelayed','discardButton','buttonView','set','isOn','map','_descriptionFactory','_annotationViews','isEnabled','_handleControllerBuffer','commandName','lowest','Annotations','unbind','change:activeAnnotations','CommentsRepository','value','from','_destroyController','isInContent','EditorAnnotations','Discard\x20all\x20suggestions','getRanges','add','descriptionParts','getSuggestion','some','bind'];(function(_0x4ce290,_0x51d499){const _0x27f289=function(_0x109ae1){while(--_0x109ae1){_0x4ce290['push'](_0x4ce290['shift']());}};_0x27f289(++_0x51d499);}(_0x51d4,0x1a7));const _0x27f2=function(_0x4ce290,_0x51d499){_0x4ce290=_0x4ce290-0x0;let _0x27f289=_0x51d4[_0x4ce290];return _0x27f289;};import{Plugin as _0x2c02ae}from'ckeditor5/src/core';import{Collection as _0x460093}from'ckeditor5/src/utils';import{Model as _0x48b50c,SplitButtonView as _0x3f51b2,createDropdown as _0x11c123,addListToDropdown as _0x19e86e}from'ckeditor5/src/ui';import{Users as _0x2aaace,getDateTimeFormatter as _0x232e0e,getAllMarkersDomElementsSorted as _0x20d90f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b0442 from'./trackchangesediting';import _0x73486 from'./ui/suggestioncontroller';import _0x9de663 from'./ui/view/suggestionthreadview';import{getTranslation as _0x192ca8}from'./utils/common-translations';import _0x54977c from'../theme/icons/track-changes.svg';export default class d extends _0x2c02ae{static get['requires'](){return[_0x2b0442,_0x2aaace,'CommentsRepository',_0x27f2('0x51'),_0x27f2('0x59')];}static get[_0x27f2('0x19')](){return _0x27f2('0x65');}constructor(_0x1e0ae5){super(_0x1e0ae5),this['_suggestionToController']=new Map(),this[_0x27f2('0x34')]=new Map(),this[_0x27f2('0x4c')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x35e44e=this[_0x27f2('0x20')][_0x27f2('0x7')];_0x35e44e[_0x27f2('0x9')](_0x27f2('0x1'),_0x9de663),_0x35e44e[_0x27f2('0x9')](_0x27f2('0x2f'),!0x1),this['_disableComments']=_0x35e44e[_0x27f2('0x44')](_0x27f2('0x2f'));}[_0x27f2('0x45')](_0x4fac41,_0x36916e){0x0===this[_0x27f2('0x4e')][_0x27f2('0x17')]&&setTimeout(()=>{for(const [_0x49d0c0,_0x5d802c]of this[_0x27f2('0x4e')]){const _0x215ba3=this[_0x27f2('0x10')][_0x27f2('0x28')](_0x49d0c0);_0x215ba3||_0x5d802c?_0x215ba3&&_0x5d802c&&this[_0x27f2('0x57')](_0x49d0c0):this[_0x27f2('0x3f')](_0x49d0c0);}this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x59'))['refreshSelectedViews'](),this['_refreshActiveMarkers'](),this[_0x27f2('0x4e')][_0x27f2('0x1e')]();},0xa),this[_0x27f2('0x4e')][_0x27f2('0x48')](_0x4fac41,_0x36916e);}['init'](){const _0x335ac3=this['editor'],_0x5b5582=_0x335ac3[_0x27f2('0x63')]['get']('TrackChangesEditing'),_0x46e829=_0x335ac3[_0x27f2('0x63')]['get'](_0x27f2('0x51')),_0xb58294=_0x335ac3[_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x59')),_0xe51dca=_0x335ac3[_0x27f2('0x63')]['get'](_0x27f2('0x54'));_0x335ac3['ui'][_0x27f2('0x40')]['add'](_0x27f2('0x16'),_0x20bd20=>this['_createUIButton'](_0x20bd20)),_0xb58294['addSourceCollector'](()=>{const _0x3939c3=[];for(const [_0x4b2bb9,_0x388b7f]of Array[_0x27f2('0x56')](this[_0x27f2('0x10')])){const _0x1f7046=_0x4b2bb9[_0x27f2('0x15')](),_0x3bdf71=[];for(const _0x94fb0b of _0x1f7046){if(!_0x94fb0b[_0x27f2('0x58')])continue;if(_0x94fb0b['isMultiRange']){_0x3bdf71[_0x27f2('0x8')](..._0x94fb0b[_0x27f2('0x5b')]());continue;}const _0x41b709=_0x94fb0b[_0x27f2('0x3b')]();if(_0x3bdf71[_0x27f2('0x1d')]>0x0){const _0x5e7536=_0x3bdf71[0x0]['getJoined'](_0x41b709);if(_0x5e7536){_0x3bdf71[0x0]=_0x5e7536;continue;}}_0x3bdf71[_0x27f2('0x8')](_0x41b709);}_0x3939c3['push']([_0x388b7f[_0x27f2('0xd')],_0x3bdf71]);}return _0x3939c3;}),this['listenTo'](_0x5b5582,_0x27f2('0x6'),(_0x25a327,_0x4e549d)=>{this[_0x27f2('0xe')](_0x4e549d,'change:previous',(_0x2c2afa,_0x19eb44,_0x127603,_0x19f8eb)=>{_0x4e549d[_0x27f2('0x58')]&&(null==_0x127603?(this['_updateController'](_0x19f8eb[_0x27f2('0x26')]),this[_0x27f2('0x45')](_0x4e549d,!0x1)):(this['_updateController'](_0x127603[_0x27f2('0x26')]),this[_0x27f2('0x45')](_0x4e549d,!0x0)));}),null===_0x4e549d[_0x27f2('0x2a')]?this['_handleSuggestionControllerDelayed'](_0x4e549d,!0x1):this['_updateController'](_0x4e549d[_0x27f2('0x26')]);}),this[_0x27f2('0xe')](_0x5b5582,_0x27f2('0x38'),(_0x2f6bde,_0x231112,_0x2636ca)=>{this[_0x27f2('0x3c')](_0x231112,_0x27f2('0x30')),this[_0x27f2('0x4e')][_0x27f2('0x43')](_0x231112);const _0x258620=_0x2636ca?_0x2636ca[_0x27f2('0x26')]:_0x231112,_0x143e46=this[_0x27f2('0x10')]['get'](_0x258620);null!==_0x2636ca&&this[_0x27f2('0x39')](_0x258620),null===_0x2636ca&&_0x143e46&&this[_0x27f2('0x57')](_0x231112);}),this[_0x27f2('0xe')](_0x5b5582,_0x27f2('0x0'),(_0x45823f,_0x2c91c4)=>{this[_0x27f2('0x39')](_0x2c91c4);}),this['listenTo'](_0x46e829,_0x27f2('0x53'),()=>{this['_refreshActiveMarkers']();}),this[_0x27f2('0xe')](_0xe51dca,_0x27f2('0x22'),(_0x3a0dff,{threadId:_0x2412e3,isFromAdapter:_0x563f57})=>{if(_0x563f57||!_0x5b5582[_0x27f2('0x12')](_0x2412e3))return;const _0x1c0a54=_0x5b5582[_0x27f2('0x5e')](_0x2412e3);this[_0x27f2('0x10')][_0x27f2('0x44')](_0x1c0a54)['view'][_0x27f2('0x2d')]();},{'priority':_0x27f2('0x50')});}[_0x27f2('0x27')](){const _0x12f6f6=this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x51')),_0x11df58=this[_0x27f2('0x20')][_0x27f2('0x63')]['get'](_0x27f2('0x2e')),_0x561a7a=Array[_0x27f2('0x56')](_0x12f6f6[_0x27f2('0x33')],_0x51d241=>_0x51d241[_0x27f2('0x67')])['filter'](_0x177169=>this['_viewToController'][_0x27f2('0x28')](_0x177169)),_0x52a901=[];for(const _0x38af98 of _0x561a7a){const _0x59ece9=this['_viewToController'][_0x27f2('0x44')](_0x38af98)['model'][_0x27f2('0x15')]();_0x52a901['push'](..._0x59ece9['reduce']((_0x368f50,_0x27095b)=>[..._0x368f50,..._0x27095b[_0x27f2('0xb')]()],[]));}_0x11df58[_0x27f2('0x11')]=_0x52a901;}[_0x27f2('0x13')](_0x3f66ce){const _0x3e9a29=_0x11c123(_0x3f66ce,_0x3f51b2),_0x5c3097=this[_0x27f2('0x20')][_0x27f2('0x4')]['get']('trackChanges'),_0x26f480=_0x192ca8(_0x3f66ce,'Track\x20changes');_0x3e9a29[_0x27f2('0x47')][_0x27f2('0x48')]({'tooltip':_0x26f480,'label':_0x26f480,'icon':_0x54977c}),_0x3e9a29[_0x27f2('0x47')]['bind']('isOn')['to'](_0x5c3097,_0x27f2('0x55')),_0x3e9a29[_0x27f2('0x47')]['on'](_0x27f2('0x41'),()=>{_0x5c3097['execute'](),this[_0x27f2('0x20')][_0x27f2('0x62')][_0x27f2('0xd')][_0x27f2('0x2d')]();});const _0x24ae43=new _0x460093(),_0x379e17=[{'type':_0x27f2('0x37'),'model':{'withText':!0x0,'label':_0x26f480,'commandName':'trackChanges'}},{'type':'separator'},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x21')),'commandName':_0x27f2('0x36')}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x3e')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x5a')),'commandName':'discardAllSuggestions'}},{'type':_0x27f2('0x35'),'model':{'withText':!0x0,'label':_0x192ca8(_0x3f66ce,_0x27f2('0x32')),'commandName':'discardSelectedSuggestions'}}];for(const _0x58eecc of _0x379e17){let _0x3c132d={'type':_0x27f2('0x42')};if(_0x58eecc[_0x27f2('0x3a')]){const _0x4fdf5e=new _0x48b50c(_0x58eecc[_0x27f2('0x3a')]),_0x2e5453=this[_0x27f2('0x20')][_0x27f2('0x4')][_0x27f2('0x44')](_0x4fdf5e[_0x27f2('0x4f')]);_0x4fdf5e[_0x27f2('0x60')](_0x27f2('0x49'),'isEnabled')['to'](_0x2e5453,_0x27f2('0x55'),'isEnabled'),_0x3c132d={'type':_0x58eecc[_0x27f2('0x24')],'model':_0x4fdf5e};}_0x24ae43[_0x27f2('0x5c')](_0x3c132d);}_0x19e86e(_0x3e9a29,_0x24ae43);const _0x3edaab=_0x379e17[_0x27f2('0xc')](_0x4666ed=>null!=_0x4666ed[_0x27f2('0x3a')])[_0x27f2('0x4a')](_0x12c147=>this['editor'][_0x27f2('0x4')][_0x27f2('0x44')](_0x12c147[_0x27f2('0x3a')][_0x27f2('0x4f')])),_0x231022=_0x3e9a29[_0x27f2('0x47')];return _0x231022[_0x27f2('0x1a')][_0x27f2('0x52')](_0x27f2('0x4d')),_0x231022['arrowView'][_0x27f2('0x52')](_0x27f2('0x4d')),_0x231022[_0x27f2('0x1a')][_0x27f2('0x60')]('isEnabled')['to'](_0x5c3097,_0x27f2('0x4d')),_0x231022[_0x27f2('0x2')][_0x27f2('0x60')]('isEnabled')[_0x27f2('0x66')](_0x3edaab,_0x27f2('0x4d'),(..._0x473869)=>_0x473869[_0x27f2('0x5f')](_0x9b6f1a=>_0x9b6f1a)),_0x3e9a29['on'](_0x27f2('0x41'),_0x508187=>{this['editor'][_0x27f2('0x41')](_0x508187[_0x27f2('0x25')][_0x27f2('0x4f')]),this[_0x27f2('0x20')][_0x27f2('0x62')][_0x27f2('0xd')]['focus']();}),_0x3e9a29;}[_0x27f2('0x3f')](_0x43de3b){const _0x1028e6=this[_0x27f2('0x20')],_0x15e127=_0x1028e6['config'],_0x14f094=_0x1028e6['plugins'][_0x27f2('0x44')]('Annotations'),_0x3a3adb=_0x1028e6['plugins'][_0x27f2('0x44')]('CommentsRepository'),_0x377461=_0x1028e6['plugins'][_0x27f2('0x44')](_0x27f2('0x59')),_0x5f382d=_0x1028e6['plugins'][_0x27f2('0x44')](_0x2aaace)['me'],_0x2d495e=_0x15e127[_0x27f2('0x44')](_0x27f2('0x16'))['SuggestionThreadView'],{CommentsListView:_0x583d59,CommentThreadInputView:_0x1c4a44}=_0x1028e6[_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x2c'));let _0x2385a7,_0x4533fe;this[_0x27f2('0x4c')][_0x27f2('0x28')](_0x43de3b['id'])?(_0x4533fe=this[_0x27f2('0x4c')][_0x27f2('0x44')](_0x43de3b['id']),_0x2385a7=_0x4533fe[_0x27f2('0x31')]):(_0x2385a7=new _0x2d495e(_0x1028e6[_0x27f2('0x3d')],_0x43de3b,_0x5f382d,{'disableComments':this[_0x27f2('0x29')],'editorConfig':_0x15e127[_0x27f2('0x44')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x15e127['get'](_0x27f2('0xf')),'maxThreadTotalWeight':_0x15e127[_0x27f2('0x44')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15e127[_0x27f2('0x44')](_0x27f2('0x2b')),'formatDateTime':_0x232e0e(_0x15e127[_0x27f2('0x44')](_0x27f2('0x3d'))),'CommentView':_0x15e127[_0x27f2('0x44')]('comments')[_0x27f2('0x23')],'CommentsListView':_0x583d59,'CommentThreadInputView':_0x1c4a44}),_0x2385a7['acceptButton']['on']('execute',()=>{_0x1028e6[_0x27f2('0x62')][_0x27f2('0xd')]['focus']();}),_0x2385a7[_0x27f2('0x46')]['on'](_0x27f2('0x41'),()=>{_0x1028e6['editing'][_0x27f2('0xd')][_0x27f2('0x2d')]();}),_0x4533fe=_0x14f094['createAnnotationView'](this[_0x27f2('0x20')][_0x27f2('0x3d')],_0x2385a7),_0x4533fe[_0x27f2('0x60')](_0x27f2('0xa'))['to'](_0x2385a7,_0x27f2('0xa')),_0x4533fe[_0x27f2('0x60')]('length')['to'](_0x2385a7),_0x4533fe[_0x27f2('0x60')](_0x27f2('0x24'))['to'](_0x2385a7,_0x27f2('0x24'),_0x2fd181=>_0x27f2('0x14')+_0x2fd181),this[_0x27f2('0x4c')][_0x27f2('0x48')](_0x43de3b['id'],_0x4533fe));const _0x34615b=_0x3a3adb[_0x27f2('0x5')](_0x43de3b[_0x27f2('0x61')],_0x2385a7),_0x375dc6=new _0x73486(_0x1028e6,_0x43de3b,_0x2385a7,_0x34615b),_0x3505c3=_0x43de3b[_0x27f2('0x15')]()[_0x27f2('0xc')](_0x353880=>_0x353880[_0x27f2('0x58')]);_0x2385a7[_0x27f2('0x5d')]=_0x1028e6[_0x27f2('0x63')][_0x27f2('0x44')]('TrackChangesEditing')[_0x27f2('0x4b')][_0x27f2('0x1f')](_0x3505c3),this[_0x27f2('0x10')][_0x27f2('0x48')](_0x43de3b,_0x375dc6),this['_viewToController']['set'](_0x2385a7,_0x375dc6);const _0x4086c4=_0x14f094[_0x27f2('0x3')]({'view':_0x4533fe,'target':()=>{const _0x417a48=[],_0x2f7ff6=_0x43de3b[_0x27f2('0x15')]()[_0x27f2('0xc')](_0x32c17c=>_0x32c17c[_0x27f2('0x58')]);for(const _0x1a3f27 of _0x2f7ff6)_0x417a48['push'](..._0x1a3f27[_0x27f2('0x1b')]());return _0x20d90f(_0x1028e6['editing'],_0x417a48);},'type':()=>_0x27f2('0x14')+_0x375dc6[_0x27f2('0xd')][_0x27f2('0x24')]});_0x3a3adb[_0x27f2('0x18')](_0x2385a7,_0x4086c4),_0x14f094['add'](_0x4086c4),_0x377461[_0x27f2('0x64')](_0x4086c4);}[_0x27f2('0x57')](_0x31e066){const _0x1a030a=this[_0x27f2('0x20')][_0x27f2('0x63')]['get']('Annotations'),_0xe1ecf9=this[_0x27f2('0x10')][_0x27f2('0x44')](_0x31e066),_0x1d1cc2=_0xe1ecf9[_0x27f2('0xd')],_0x4f2d81=_0x1a030a['getByInnerView'](_0x1d1cc2);_0x4f2d81&&_0x1a030a['remove'](_0x4f2d81),this[_0x27f2('0x10')]['delete'](_0x31e066),this[_0x27f2('0x34')]['delete'](_0x1d1cc2),_0xe1ecf9[_0x27f2('0x1c')]();}[_0x27f2('0x39')](_0x2e9249){if(!_0x2e9249[_0x27f2('0x58')]||!this['_suggestionToController'][_0x27f2('0x28')](_0x2e9249))return;const _0x186536=this[_0x27f2('0x20')][_0x27f2('0x63')][_0x27f2('0x44')](_0x27f2('0x2e')),_0x1cd938=this[_0x27f2('0x10')][_0x27f2('0x44')](_0x2e9249),_0x231206=_0x2e9249['getAllAdjacentSuggestions']();_0x1cd938[_0x27f2('0xd')]['descriptionParts']=_0x186536[_0x27f2('0x4b')]['getDescriptions'](_0x231206);}[_0x27f2('0x1c')](){for(const _0x1ccef5 of this[_0x27f2('0x10')]['keys']())this[_0x27f2('0x57')](_0x1ccef5);for(const _0x55da7f of this[_0x27f2('0x4c')]['values']())_0x55da7f[_0x27f2('0x31')][_0x27f2('0x1c')]();super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2900=['_setPendingAction','add','locale','canDiscard','bind','_acceptCommand','isEnabled','canAccept','listenTo','model','acceptSuggestion','_removePendingAction','commentThreadController','_pendingAction','execute','get','remove','view','commands','_editor','getRanges','destroy','plugins','discardSuggestion','change:isDirty','PendingActions','unbind','_discardCommand','stopListening','canEditAt'];(function(_0x3c60ce,_0x29006e){const _0x2329b3=function(_0x3edbbb){while(--_0x3edbbb){_0x3c60ce['push'](_0x3c60ce['shift']());}};_0x2329b3(++_0x29006e);}(_0x2900,0x161));const _0x2329=function(_0x3c60ce,_0x29006e){_0x3c60ce=_0x3c60ce-0x0;let _0x2329b3=_0x2900[_0x3c60ce];return _0x2329b3;};import{ObservableMixin as _0x33cff4}from'ckeditor5/src/utils';import{getTranslation as _0x1a6c16}from'../utils/common-translations';export default class Ft extends _0x33cff4(){constructor(_0x27a0c5,_0x2fb6ec,_0x4fe062,_0x33c4db){super(),this[_0x2329('0x10')]=_0x2fb6ec,this[_0x2329('0x18')]=_0x4fe062,this['commentThreadController']=_0x33c4db,this[_0x2329('0x1a')]=_0x27a0c5,this[_0x2329('0xc')]=_0x27a0c5[_0x2329('0x19')]['get'](_0x2329('0x11')),this[_0x2329('0x4')]=_0x27a0c5[_0x2329('0x19')][_0x2329('0x16')](_0x2329('0x0')),this[_0x2329('0x18')]['bind']('isEnabled')['to'](this[_0x2329('0xc')],this[_0x2329('0x4')],(_0x418362,_0x5b41de)=>_0x418362||_0x5b41de),this[_0x2329('0x18')]['bind'](_0x2329('0xe'))['to'](this[_0x2329('0xc')],_0x2329('0xd'),_0x9ea01e=>_0x9ea01e&&this[_0x2329('0x1a')]['model'][_0x2329('0x6')](_0x2fb6ec[_0x2329('0x1b')]())),this[_0x2329('0x18')][_0x2329('0xb')](_0x2329('0xa'))['to'](this[_0x2329('0x4')],_0x2329('0xd'),_0x38ea0c=>_0x38ea0c&&this[_0x2329('0x1a')][_0x2329('0x10')][_0x2329('0x6')](_0x2fb6ec[_0x2329('0x1b')]())),this[_0x2329('0x14')]=null,_0x4fe062['isDirty']&&this[_0x2329('0x7')](),this[_0x2329('0xf')](_0x4fe062,'acceptSuggestion',()=>this[_0x2329('0x11')]()),this[_0x2329('0xf')](_0x4fe062,_0x2329('0x0'),()=>this[_0x2329('0x0')]()),this[_0x2329('0xf')](_0x4fe062,_0x2329('0x1'),()=>{_0x4fe062['isDirty']?this[_0x2329('0x7')]():this['_removePendingAction']();});}[_0x2329('0x11')](){this[_0x2329('0xc')][_0x2329('0x15')](this[_0x2329('0x10')]['id']);}[_0x2329('0x0')](){this[_0x2329('0x4')][_0x2329('0x15')](this[_0x2329('0x10')]['id']);}[_0x2329('0x1c')](){this[_0x2329('0x18')][_0x2329('0x3')](_0x2329('0xd')),this[_0x2329('0x18')][_0x2329('0x3')](_0x2329('0xe')),this[_0x2329('0x18')][_0x2329('0x3')](_0x2329('0xa')),this[_0x2329('0x5')](),this[_0x2329('0x13')][_0x2329('0x1c')](),this[_0x2329('0x14')]&&this[_0x2329('0x12')]();}[_0x2329('0x7')](){const _0x4f2bc8=_0x1a6c16(this['_editor'][_0x2329('0x9')],'PENDING_ACTION_SUGGESTION');this[_0x2329('0x14')]=this[_0x2329('0x1a')][_0x2329('0x1d')][_0x2329('0x16')](_0x2329('0x2'))[_0x2329('0x8')](_0x4f2bc8);}[_0x2329('0x12')](){null!==this[_0x2329('0x14')]&&this[_0x2329('0x1a')][_0x2329('0x1d')][_0x2329('0x16')]('PendingActions')[_0x2329('0x17')](this[_0x2329('0x14')]),this[_0x2329('0x14')]=null;}}
23
+ const _0x34f1=['_acceptCommand','bind','PENDING_ACTION_SUGGESTION','listenTo','_removePendingAction','change:isDirty','isEnabled','execute','isDirty','model','_editor','view','commands','_discardCommand','acceptSuggestion','getRanges','PendingActions','plugins','unbind','stopListening','commentThreadController','locale','canAccept','canDiscard','_pendingAction','get','canEditAt','discardSuggestion','_setPendingAction'];(function(_0x75ea3f,_0x34f1bc){const _0x17aa71=function(_0x4f5636){while(--_0x4f5636){_0x75ea3f['push'](_0x75ea3f['shift']());}};_0x17aa71(++_0x34f1bc);}(_0x34f1,0x82));const _0x17aa=function(_0x75ea3f,_0x34f1bc){_0x75ea3f=_0x75ea3f-0x0;let _0x17aa71=_0x34f1[_0x75ea3f];return _0x17aa71;};import{ObservableMixin as _0x9bbf63}from'ckeditor5/src/utils';import{getTranslation as _0x16f3d9}from'../utils/common-translations';export default class Ft extends _0x9bbf63(){constructor(_0x39a9f3,_0x3fc405,_0x549c49,_0x4adc9d){super(),this[_0x17aa('0x18')]=_0x3fc405,this[_0x17aa('0x1a')]=_0x549c49,this[_0x17aa('0x6')]=_0x4adc9d,this[_0x17aa('0x19')]=_0x39a9f3,this['_acceptCommand']=_0x39a9f3[_0x17aa('0x1b')][_0x17aa('0xb')](_0x17aa('0x0')),this['_discardCommand']=_0x39a9f3[_0x17aa('0x1b')][_0x17aa('0xb')](_0x17aa('0xd')),this[_0x17aa('0x1a')][_0x17aa('0x10')](_0x17aa('0x15'))['to'](this[_0x17aa('0xf')],this[_0x17aa('0x1c')],(_0x2c4fe1,_0xbd17b9)=>_0x2c4fe1||_0xbd17b9),this[_0x17aa('0x1a')][_0x17aa('0x10')](_0x17aa('0x8'))['to'](this['_acceptCommand'],_0x17aa('0x15'),_0x32279d=>_0x32279d&&this[_0x17aa('0x19')][_0x17aa('0x18')]['canEditAt'](_0x3fc405[_0x17aa('0x1')]())),this['view'][_0x17aa('0x10')](_0x17aa('0x9'))['to'](this[_0x17aa('0x1c')],_0x17aa('0x15'),_0xe3314d=>_0xe3314d&&this[_0x17aa('0x19')][_0x17aa('0x18')][_0x17aa('0xc')](_0x3fc405['getRanges']())),this[_0x17aa('0xa')]=null,_0x549c49[_0x17aa('0x17')]&&this[_0x17aa('0xe')](),this[_0x17aa('0x12')](_0x549c49,_0x17aa('0x0'),()=>this[_0x17aa('0x0')]()),this[_0x17aa('0x12')](_0x549c49,_0x17aa('0xd'),()=>this['discardSuggestion']()),this['listenTo'](_0x549c49,_0x17aa('0x14'),()=>{_0x549c49[_0x17aa('0x17')]?this[_0x17aa('0xe')]():this[_0x17aa('0x13')]();});}[_0x17aa('0x0')](){this[_0x17aa('0xf')]['execute'](this[_0x17aa('0x18')]['id']);}[_0x17aa('0xd')](){this[_0x17aa('0x1c')][_0x17aa('0x16')](this[_0x17aa('0x18')]['id']);}['destroy'](){this[_0x17aa('0x1a')]['unbind'](_0x17aa('0x15')),this[_0x17aa('0x1a')][_0x17aa('0x4')]('canAccept'),this['view'][_0x17aa('0x4')](_0x17aa('0x9')),this[_0x17aa('0x5')](),this[_0x17aa('0x6')]['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}[_0x17aa('0xe')](){const _0xa40d10=_0x16f3d9(this['_editor'][_0x17aa('0x7')],_0x17aa('0x11'));this['_pendingAction']=this[_0x17aa('0x19')][_0x17aa('0x3')][_0x17aa('0xb')](_0x17aa('0x2'))['add'](_0xa40d10);}[_0x17aa('0x13')](){null!==this['_pendingAction']&&this[_0x17aa('0x19')][_0x17aa('0x3')][_0x17aa('0xb')](_0x17aa('0x2'))['remove'](this['_pendingAction']),this[_0x17aa('0xa')]=null;}}