@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230829.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 _0x56dc=['item','isInContent','isAtEnd','isEqual','discardSuggestion','track-changes-suggestion-data-mismatch','getChangedMarkers','sort','accept','markInlineFormat','ck-suggestion-marker-','formatBlock:','removed','document','isRemovable','oldRange','registerPostFixer','getRanges','suggestion-type','markers','_joinSuggestions','change:data','external:','options','_mergeNestedSuggestions','isAtStart','from','markerToHighlight','delete','join','getSuggestions','group','getWalker','forceDefaultExecution','end','getIntersection','dataReady','trackChanges','getFirstRange','_getAuthorFromId','detach','elementEnd','editor','after','insertion:accept','hasComments','addSuggestionData','getRange','_breakSuggestionMarker','suggestion:','parent','catch','getItems','for','CommentsRepository','addMarkerName','_handleNewSuggestionMarker','splitPosition','writer','chain','discardSelectedSuggestions','_suggestions','filter','isInsideObject','ready','highest','toViewElement','isMultiRange','setAttribute','getFirstMarker','commands','addMarker','data-suggestion','getAncestors','isBlock','addSuggestion','_createSuggestion','removeMarkers','add','change:_saved','updateMarker','update:suggestion','high','isAfter','formatBlock:chain','formatBlock','targetPosition','_setSuggestionRange','refresh','subType','forward','_descriptionFactory','addCommentThread','remove','formatBlock:discard','insertion','config','isCollapsed','isNextTo','isExternal','getSuggestion','_checkSuggestionCorrectness','data','acceptSuggestion','removeClass','trackChanges.trackFormatChanges','newRange','hasSuggestion','getShiftedBy','documentSelection','markerReady','getAllAdjacentSuggestions','stop','creator','isBefore','formatInline:join','position','PENDING_ACTION_SUGGESTION','substr','range','showSuggestionHighlights','split','isObject','containsItem','createPositionAfter','isDocumentOperation','hasCommentThread','_suggestionState','getNearestSelectionRange','isOwn','formatBlock:join','resolve','createRange','attributes','updateSuggestion','markBlockFormat','_getSuggestionData','set','isSelectable','TrackChangesEditing','fromRange','suggestion','length','push','open','normal','start','notReady','skipNestingCheck','_removeSuggestion','previous','enableCommand','root','_updateSuggestionData','conversion','get','formatInline','_addSuggestionMarker','default','fetchCommentThread','applyOperation','nodeBefore','then','_commentsRepository','fire','element','listenTo','elementToElement','commandName','getDifference','isUndo','_customCallbacks','change','size','_saved','splice','some','getAttribute','activeMarkers','addRange','lowest','setSelection','includes','markMultiRangeInsertion','_isForcedDefaultExecutionBlock','getMarkers','getSuggestionCallback','removeAttribute','adapter','trackChangesCommand','formatGroupId','track-changes-suggestion-not-found','authoredAt','createdAt','_suggestionFactory','addClass','$graveyard','_registerDefaultCallbacks','acceptAllSuggestions','addHighlight','getLastMatchingPosition','error-saving-suggestion-data-suggestion-discarded','rootName','formatInline:discard','addComment','addUser','editingDowncast','editing','originalSuggestionId','rethrowUnexpectedError','type','discard','nodeAfter','deletion:','formatInline:','_trackFormatChanges','consumable','createPositionAt','track-changes-user-not-found','marker-count','rejected','backward','insertion:join','insertion:','setTo','acceptSelectedSuggestions','PendingActions','deletion:chain','_editor','widget','trackChanges.mergeNestedSuggestions','name','getUser','markerName','author','_adapter','_enabledCommands','suggestionChanged','model','_findSuggestions','enableReadOnlyMode','formatBlock:accept','schema','getCustomProperty','ck-suggestion-marker','has','formatInline:chain','value','_refreshSuggestionsChain','bindElementToMarker','define','enqueueChange','upcast','markerNameToElements','multi','containsRangeInObject','isLimit','$marker','$textProxy','batch','removeMarker','insertContent','markerToData','createElement','addMarker:suggestion','track-changes-adapter-missing-getsuggestion','plugins','moveTargetPosition','consume','containsRange','always','deletion','values','deletion:discard','markDeletion','toJSON','move','suggestionLoaded','createPositionBefore','_cutOutSuggestionMarker','collaboration.channelId','_splitMarkerName','@external','never','markInsertion','deleteContent','multipleBlocks','_defaultCallbacks','containsPosition','execute','track-changes-adapter-already-set','mapper','removeComment','addMarker:suggestion:formatBlock','dataToMarker','accepted','init','howMany','every','map','getMultiRangeId','next','ck-suggestion-marker--active','_onDiscard','_addThreadToSuggestion','authorName','locale','low','commentThread','createSelection','_rangeIsInLocalUserInsertion','_model','Users','dataDowncast','selection','_setSuggestionData','differ','insertion:chain','discardAllSuggestions'];(function(_0x2542bc,_0x56dcac){const _0x513ae3=function(_0x21c816){while(--_0x21c816){_0x2542bc['push'](_0x2542bc['shift']());}};_0x513ae3(++_0x56dcac);}(_0x56dc,0x100));const _0x513a=function(_0x2542bc,_0x56dcac){_0x2542bc=_0x2542bc-0x0;let _0x513ae3=_0x56dc[_0x2542bc];return _0x513ae3;};import{Plugin as _0xe755de,PendingActions as _0x627f67}from'ckeditor5/src/core';import{LiveRange as _0x73d110}from'ckeditor5/src/engine';import{CKEditorError as _0x2e8f93,uid as _0x1396d2,priorities as _0x51363f,logWarning as _0xfa39c1}from'ckeditor5/src/utils';import{toWidget as _0x149dc6}from'ckeditor5/src/widget';import{Users as _0xc261a1,hashObject as _0x3419ee}from'ckeditor5-collaboration/src/collaboration-core';import _0xb12d80 from'./commands/trackchangescommand';import _0x2f6a2d from'./commands/acceptsuggestioncommand';import _0x1f1ef9 from'./commands/discardsuggestioncommand';import _0x44430d from'./commands/executeonallsuggestionscommand';import _0x31bb6e from'./commands/executeonselectedsuggestionscommand';import _0xf7935d from'./suggestion';import _0x2d4cd2 from'./suggestiondescriptionfactory';import _0x228ef4 from'./integrations/alignment';import _0x280823 from'./integrations/basicstyles';import _0x55acd8 from'./integrations/blockquote';import _0x1600bb from'./integrations/ckbox';import _0x2800d5 from'./integrations/codeblock';import _0x3c4983 from'./integrations/comments';import _0x389c1f from'./integrations/deletecommand';import _0x3a0dfc from'./integrations/documentlist';import _0x302e77 from'./integrations/entercommand';import _0x11a7f2 from'./integrations/findandreplace';import _0x448cf1 from'./integrations/font';import _0x3dc3f0 from'./integrations/formatpainter';import _0x45d30a from'./integrations/heading';import _0x39256b from'./integrations/highlight';import _0x5bad6b from'./integrations/horizontalline';import _0x10303d from'./integrations/htmlembed';import _0x47fba8 from'./integrations/image';import _0x4921b8 from'./integrations/imagereplace';import _0x598117 from'./integrations/importword';import _0x5e23c8 from'./integrations/indent';import _0x5e36b8 from'./integrations/inputcommand';import _0x4f66dc from'./integrations/link';import _0x2b8969 from'./integrations/list';import _0x534c00 from'./integrations/listproperties';import _0x1c871a from'./integrations/mediaembed';import _0x8188ce from'./integrations/mention';import _0x50a269 from'./integrations/pagebreak';import _0x29df81 from'./integrations/paragraph';import _0x57bc08 from'./integrations/removeformat';import _0x13cdde from'./integrations/restrictededitingmode';import _0x49d799 from'./integrations/shiftentercommand';import _0x4d6f44 from'./integrations/standardeditingmode';import _0x9c465 from'./integrations/style';import _0xb207a6 from'./integrations/table';import _0x412b79 from'./integrations/tablemergesplit';import _0x294dc9 from'./integrations/tableheadings';import _0x3b48ac from'./integrations/tableclipboard';import _0x4a7eb2 from'./integrations/tablecolumnresize';import _0x15d549 from'./integrations/template';import _0x2b58c5 from'./integrations/tableofcontents';import _0x1e8f40 from'./integrations/title';import _0xc59e82 from'./integrations/undo';import{getTranslation as _0x4b72e5}from'./utils/common-translations';import _0x425cb7 from'./integrations/tablecaption';import _0x23f5b0 from'./integrations/documentlistproperties';import _0x579137 from'./integrations/tableproperties';export default class p extends _0xe755de{static get['requires'](){return[_0x513a('0x75'),_0xc261a1,_0x627f67,_0x228ef4,_0x280823,_0x55acd8,_0x1600bb,_0x2800d5,_0x3c4983,_0x389c1f,_0x3a0dfc,_0x23f5b0,_0x302e77,_0x11a7f2,_0x448cf1,_0x3dc3f0,_0x45d30a,_0x39256b,_0x5bad6b,_0x10303d,_0x47fba8,_0x4921b8,_0x598117,_0x5e23c8,_0x5e36b8,_0x4f66dc,_0x2b8969,_0x534c00,_0x1c871a,_0x8188ce,_0x50a269,_0x29df81,_0x57bc08,_0x13cdde,_0x49d799,_0x4d6f44,_0x9c465,_0xb207a6,_0x412b79,_0x294dc9,_0x425cb7,_0x3b48ac,_0x4a7eb2,_0x2b58c5,_0x579137,_0x15d549,_0x1e8f40,_0xc59e82];}static get['pluginName'](){return _0x513a('0xca');}constructor(_0x29fe48){function _0x3cfd19(_0x594b5c){return _0x594b5c['map'](_0x3e6507=>String['fromCharCode'](_0x3e6507))['join']('');}super(_0x29fe48),this['set'](_0x513a('0xf1'),[]),this['on']('change:activeMarkers',(_0x465a25,_0x4c5d23,_0x1acb99,_0x2d0c4c)=>{this[_0x513a('0x37')][_0x513a('0xeb')](()=>{for(const _0x4280fa of[..._0x2d0c4c,..._0x1acb99])this[_0x513a('0x37')][_0x513a('0x52')][_0x513a('0x134')](_0x4280fa)&&_0x29fe48[_0x513a('0x10e')]['reconvertMarker'](_0x4280fa);});}),this[_0x513a('0x9a')]=new _0x2d4cd2(this['editor'][_0x513a('0x12d')]['schema'],this[_0x513a('0x69')][_0x513a('0x32')]),this[_0x513a('0x12a')]=null,this[_0x513a('0x101')]=new Dt(this[_0x513a('0x69')]),this['_suggestions']=new Map(),this[_0x513a('0xe2')]=_0x29fe48[_0x513a('0xa')]['get']('CommentsRepository'),this[_0x513a('0x12b')]=new Set(),this[_0x513a('0x37')]=this[_0x513a('0x69')][_0x513a('0x12d')],this['_suggestionState']=new WeakMap(),this[_0x513a('0xf7')]=!0x1,_0x29fe48['config'][_0x513a('0x139')](_0x513a('0xa8'),_0x513a('0xdd')),this[_0x513a('0x116')]=_0x29fe48[_0x513a('0x9f')][_0x513a('0xda')](_0x513a('0xa8')),_0x29fe48[_0x513a('0x9f')]['define'](_0x513a('0x125'),!0x0),this['_mergeNestedSuggestions']=_0x29fe48[_0x513a('0x9f')][_0x513a('0xda')](_0x513a('0x125')),this[_0x513a('0xfc')]=new _0xb12d80(_0x29fe48,this[_0x513a('0x12b')]),this[_0x3cfd19([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3cfd19([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x36]);}[_0x513a('0x28')](){const _0x40706a=this['editor'];_0x40706a[_0x513a('0xd9')]['for'](_0x513a('0x10d'))[_0x513a('0x5a')]({'model':_0x513a('0xcc'),'view':_0x2a9b92=>{const {id:_0x3356c7,type:_0x1ff7a9}=this[_0x513a('0x19')](_0x2a9b92[_0x513a('0x128')]),_0x5a5059=[_0x513a('0x133'),_0x513a('0x49')+_0x1ff7a9];let _0x4b8451=0xbb8;return this[_0x513a('0xf1')][_0x513a('0xf5')](_0x2a9b92['markerName'])&&(_0x5a5059['push']('ck-suggestion-marker--active'),_0x4b8451=0xbc2),'deletion'==_0x1ff7a9&&(_0x4b8451+=0x5),{'classes':_0x5a5059,'attributes':{'data-suggestion':_0x3356c7},'priority':_0x4b8451};}}),_0x40706a[_0x513a('0xd9')]['for'](_0x513a('0x39'))[_0x513a('0x8d')](_0x37c1bd=>{_0x37c1bd['on'](_0x513a('0x8'),(_0x30c797,_0x1cce22,_0x33d99e)=>{if(!_0x33d99e[_0x513a('0x56')][_0x513a('0xb7')])return;const _0x125a60=_0x1cce22[_0x513a('0x3f')];if(!_0x125a60)return;const _0x4c950e=_0x33d99e['mapper'][_0x513a('0x81')](_0x125a60);_0x40706a[_0x513a('0x12d')]['schema']['isObject'](_0x125a60)&&_0x4c950e&&!_0x4c950e[_0x513a('0x132')](_0x513a('0x124'))&&_0x4c950e['is']('containerElement')&&_0x149dc6(_0x4c950e,_0x33d99e[_0x513a('0x79')]);},{'priority':_0x513a('0x91')});}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')]('dataDowncast')[_0x513a('0x5a')]({'model':_0x513a('0xcc'),'view':(_0x412b83,_0x1432bd)=>{if(!_0x1432bd[_0x513a('0x56')][_0x513a('0xb7')])return null;const {type:_0x3db12b}=this[_0x513a('0x19')](_0x412b83[_0x513a('0x128')]);return{'classes':[_0x513a('0x133'),_0x513a('0x49')+_0x3db12b],'priority':0xbb8};}});const _0x1a0893=({showActiveMarkers:_0x36530b=!0x0}={})=>(_0x2bb13b,_0x4f8f26,_0x7b6b9b)=>{if(!_0x4f8f26[_0x513a('0x3f')])return;if(_0x4f8f26[_0x513a('0x3f')]['is'](_0x513a('0x3a')))return void _0x7b6b9b[_0x513a('0x117')][_0x513a('0xc')](_0x4f8f26['item'],_0x2bb13b[_0x513a('0x126')]);const _0x11b75b=_0x7b6b9b[_0x513a('0x23')][_0x513a('0x81')](_0x4f8f26[_0x513a('0x3f')]);if(!(_0x4f8f26[_0x513a('0x3f')]['is'](_0x513a('0xe4'))&&_0x40706a[_0x513a('0x12d')][_0x513a('0x131')][_0x513a('0x89')](_0x4f8f26[_0x513a('0x3f')])&&!_0x11b75b[_0x513a('0x132')](_0x513a('0x106'))))return;const {id:_0x6013f4}=this['_splitMarkerName'](_0x4f8f26['markerName']);_0x7b6b9b[_0x513a('0x79')][_0x513a('0x102')]([_0x513a('0x133'),'ck-suggestion-marker-formatBlock'],_0x11b75b),_0x7b6b9b[_0x513a('0x79')][_0x513a('0x83')]('data-suggestion',_0x6013f4,_0x11b75b),_0x7b6b9b[_0x513a('0x23')][_0x513a('0x138')](_0x11b75b,_0x4f8f26['markerName']),_0x36530b&&(this['activeMarkers']['includes'](_0x4f8f26[_0x513a('0x128')])?_0x7b6b9b['writer'][_0x513a('0x102')](_0x513a('0x2e'),_0x11b75b):_0x7b6b9b[_0x513a('0x79')][_0x513a('0xa7')](_0x513a('0x2e'),_0x11b75b));for(const _0x17e27d of _0x40706a[_0x513a('0x12d')]['createRangeIn'](_0x4f8f26[_0x513a('0x3f')])[_0x513a('0x73')]())_0x7b6b9b[_0x513a('0x117')][_0x513a('0xc')](_0x17e27d,_0x2bb13b[_0x513a('0x126')]);_0x7b6b9b[_0x513a('0x117')][_0x513a('0xc')](_0x4f8f26['item'],_0x2bb13b[_0x513a('0x126')]);};_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x39'))[_0x513a('0x8d')](_0x2f72af=>{_0x2f72af['on'](_0x513a('0x25'),(_0x15e3f4,_0x30d972,_0x1b98fc)=>{_0x1b98fc[_0x513a('0x56')][_0x513a('0xb7')]&&_0x1a0893({'showActiveMarkers':!0x1})(_0x15e3f4,_0x30d972,_0x1b98fc);},{'priority':_0x513a('0x80')});}),_0x40706a['conversion'][_0x513a('0x74')](_0x513a('0x39'))[_0x513a('0x6')]({'model':_0x513a('0xcc'),'view':(_0x523c8c,_0x21d379)=>_0x21d379[_0x513a('0x56')][_0x513a('0xb7')]?null:{'group':_0x513a('0xcc'),'name':_0x523c8c[_0x513a('0xb5')](0xb)}}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x13b'))[_0x513a('0xe6')]({'view':{'name':_0x513a('0xcc'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a5097,{writer:_0x3a4fcf})=>{let _0x13b5f6=_0x513a('0x70')+_0x1a5097[_0x513a('0xf0')](_0x513a('0x51'))+':'+_0x1a5097[_0x513a('0xf0')]('id');return _0x1a5097[_0x513a('0xf0')](_0x513a('0x11a'))&&(_0x13b5f6+=':'+_0x1a5097['getAttribute']('marker-count')),_0x3a4fcf[_0x513a('0x7')](_0x513a('0x1'),{'data-name':_0x13b5f6});}}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x13b'))[_0x513a('0x26')]({'view':_0x513a('0xcc')}),_0x40706a['conversion'][_0x513a('0x74')](_0x513a('0x10d'))['add'](_0x3cb105=>{_0x3cb105['on'](_0x513a('0x25'),_0x1a0893(),{'priority':_0x513a('0x91')});}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x10d'))[_0x513a('0x8d')](_0x5718ba=>{_0x5718ba['on']('removeMarker:suggestion:formatBlock',(_0x3fcbee,_0x1e7926,_0x357fae)=>{const _0x38dc71=_0x357fae['mapper'][_0x513a('0x13c')](_0x1e7926[_0x513a('0x128')]);if(_0x38dc71)for(const _0x150e60 of _0x38dc71)_0x150e60[_0x513a('0x132')]('addHighlight')||(_0x357fae[_0x513a('0x79')]['removeClass']([_0x513a('0x133'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x150e60),_0x357fae[_0x513a('0x79')][_0x513a('0xfa')](_0x513a('0x87'),_0x150e60),_0x357fae[_0x513a('0x23')]['unbindElementFromMarkerName'](_0x150e60,_0x1e7926[_0x513a('0x128')]));},{'priority':_0x513a('0x91')});}),_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')]['registerPostFixer'](_0xba9d5a=>{let _0x374631=!0x1;const _0x2f4d57=Array[_0x513a('0x59')](_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')][_0x513a('0x3c')][_0x513a('0x45')]()),_0xfd72a0=new Set();for(const {name:_0x4f9de4,data:_0x434308}of _0x2f4d57){const {group:_0x105d58,type:_0x1cddbf,id:_0x40e5b5}=this[_0x513a('0x19')](_0x4f9de4);if('suggestion'!==_0x105d58)continue;const _0x256d83=this[_0x513a('0x7c')]['get'](_0x40e5b5);if(null!=_0x434308['newRange']){_0x513a('0xdb')==_0x1cddbf&&(_0x374631=_0x374631||Mt(_0x434308[_0x513a('0xa9')],_0x4f9de4,_0xba9d5a,_0x40706a[_0x513a('0x12d')][_0x513a('0x131')]));if(_0x434308['newRange'][_0x513a('0xa0')]||'$graveyard'==_0x434308['newRange'][_0x513a('0xd7')][_0x513a('0x109')]||_0x513a('0x94')==_0x1cddbf&&!Nt(_0x434308[_0x513a('0xa9')])||_0x513a('0xf')==_0x1cddbf&&!(!_t(_0x5b6758=_0x434308[_0x513a('0xa9')])&&!function(_0xe06292){return _0xe06292[_0x513a('0xd1')]['parent']==_0xe06292['end'][_0x513a('0xe0')]&&_0xe06292[_0x513a('0xd1')][_0x513a('0x41')];}(_0x5b6758)))_0xba9d5a[_0x513a('0x4')](_0x4f9de4),_0x374631=!0x0;else{if(!_0x256d83||!_0x256d83[_0x513a('0x40')])continue;_0xfd72a0['add'](_0x256d83);}}}var _0x5b6758;return _0xfd72a0[_0x513a('0xec')]>0x0&&(_0x374631=!!this['_joinWithAdjacentSuggestions'](_0xfd72a0)||_0x374631),_0x374631;}),_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')][_0x513a('0x4f')](_0x112c29=>{let _0x39629a=!0x1;for(const _0x56285d of _0x40706a[_0x513a('0x12d')][_0x513a('0x4c')][_0x513a('0x3c')]['getChanges']()){if('insert'!=_0x56285d[_0x513a('0x111')])continue;const _0x27a7f8=_0x56285d[_0x513a('0xb3')]['getShiftedBy'](_0x56285d['length']);if(_0x27a7f8['isAtEnd'])for(const _0x2ff8db of this[_0x513a('0x7c')][_0x513a('0x10')]()){if(_0x2ff8db['isMultiRange']||!_0x2ff8db[_0x513a('0x40')])continue;if('formatBlock'!=_0x2ff8db[_0x513a('0x111')])continue;const _0x407ecc=_0x2ff8db[_0x513a('0x65')]();if(_0x407ecc[_0x513a('0xd1')]['parent']!=_0x407ecc[_0x513a('0x61')][_0x513a('0x71')]&&_0x407ecc[_0x513a('0x61')]['isEqual'](_0x56285d[_0x513a('0xb3')])){const _0x3c8940=_0x40706a['model'][_0x513a('0xc3')](_0x407ecc[_0x513a('0xd1')],_0x27a7f8);_0x112c29['updateMarker'](_0x2ff8db['getFirstMarker'](),{'range':_0x3c8940}),_0x39629a=!0x0;}}}return _0x39629a;}),_0x40706a[_0x513a('0x12d')]['markers']['on'](_0x513a('0x90'),(_0x1e5c36,_0x371f4a,_0x2118f2)=>{if(null==_0x2118f2){const {id:_0xe1ea15}=this['_splitMarkerName'](_0x371f4a[_0x513a('0x126')]),_0x4967d6=this[_0x513a('0x7c')][_0x513a('0xda')](_0xe1ea15);_0x4967d6&&_0x4967d6[_0x513a('0x76')](_0x371f4a[_0x513a('0x126')]);}}),_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')]['on'](_0x513a('0x54'),()=>{const _0x2ba796=Array[_0x513a('0x59')](_0x40706a['model'][_0x513a('0x4c')]['differ'][_0x513a('0x45')]())[_0x513a('0x7d')](_0x52eb90=>_0x513a('0xcc')===this[_0x513a('0x19')](_0x52eb90[_0x513a('0x126')])[_0x513a('0x5e')]);if(0x0===_0x2ba796['length'])return;_0x2ba796[_0x513a('0x46')]((_0x3568fd,_0x437e5e)=>{const _0x49819a=_0x3568fd[_0x513a('0xa5')][_0x513a('0x4e')],_0x30dcf1=_0x437e5e['data'][_0x513a('0x4e')];return null===_0x49819a&&null===_0x30dcf1?0x0:null===_0x49819a&&null!==_0x30dcf1?-0x1:null!==_0x49819a&&null===_0x30dcf1?0x1:_0x49819a[_0x513a('0xd1')][_0x513a('0xb1')](_0x30dcf1[_0x513a('0xd1')])?-0x1:0x1;});const _0x1020ae=new Set(),_0x3bf938=new Set();for(const {name:_0x297b9a,data:_0x1c7278}of _0x2ba796){const {id:_0xeb3705}=this[_0x513a('0x19')](_0x297b9a);if(null===_0x1c7278['oldRange']){const _0xfa175e=this['_handleNewSuggestionMarker'](_0x297b9a);_0x3bf938['add'](_0xfa175e);}else{const _0x55a054=this[_0x513a('0x7c')][_0x513a('0xda')](_0xeb3705);null!==_0x1c7278['newRange']||_0x55a054[_0x513a('0x40')]?(_0x1020ae[_0x513a('0x8d')](_0x55a054['head']),_0x3bf938[_0x513a('0x8d')](_0x55a054)):this[_0x513a('0xd4')](_0x55a054);}}_0x3bf938[_0x513a('0xec')]>0x0&&this[_0x513a('0x137')](_0x3bf938);for(const _0x4fa4d2 of _0x1020ae)this['fire']('suggestionChanged',_0x4fa4d2);}),_0x40706a[_0x513a('0x12d')]['on'](_0x513a('0xdf'),(_0x2537aa,_0x4362a8)=>{const _0x25b5ce=_0x4362a8[0x0];if(!this[_0x513a('0x7c')][_0x513a('0xec')])return;if(!_0x25b5ce[_0x513a('0xbc')])return;if(_0x25b5ce[_0x513a('0x3')][_0x513a('0xe9')]||!_0x25b5ce[_0x513a('0x3')]['isLocal'])return;let _0x4bb977,_0x1b9681;switch(_0x25b5ce[_0x513a('0x111')]){case'insert':_0x4bb977=_0x40706a[_0x513a('0x12d')][_0x513a('0x118')](_0x25b5ce[_0x513a('0xb3')]),_0x1b9681=_0x4bb977[_0x513a('0xab')](_0x25b5ce[_0x513a('0x29')]);break;case _0x513a('0xb8'):_0x4bb977=_0x40706a['model'][_0x513a('0x118')](_0x25b5ce[_0x513a('0x78')]),_0x1b9681=_0x40706a[_0x513a('0x12d')]['createPositionAt'](_0x25b5ce[_0x513a('0xb')]);break;case _0x513a('0x14'):_0x4bb977=_0x40706a['model'][_0x513a('0x118')](_0x25b5ce[_0x513a('0x95')]),_0x1b9681=_0x4bb977[_0x513a('0xab')](_0x25b5ce['howMany']);break;default:return;}const _0x49eb8d=_0x40706a[_0x513a('0x12d')]['createRange'](_0x4bb977,_0x1b9681);_0x40706a[_0x513a('0x12d')]['change'](()=>{for(const {suggestion:_0x2158ef,meta:_0x6606e0}of this['_findSuggestions'](_0x49eb8d)){if(_0x2158ef[_0x513a('0x82')])continue;if('formatInline'==_0x2158ef[_0x513a('0x111')])continue;const _0x5a6272=_0x2158ef['data']&&_0x2158ef[_0x513a('0xa5')][_0x513a('0x1e')];(_0x513a('0x94')!=_0x2158ef[_0x513a('0x111')]||_0x513a('0xb8')==_0x25b5ce['type']&&!_0x5a6272)&&(_0x6606e0[_0x513a('0x13e')]||_0x513a('0x9e')==_0x2158ef['type']&&_0x6606e0[_0x513a('0xc0')]||_0x2158ef[_0x513a('0x65')]()[_0x513a('0xd')](_0x49eb8d)&&this[_0x513a('0x6f')](_0x2158ef,_0x4bb977,_0x1b9681));}});},{'priority':_0x513a('0xf3')}),_0x40706a['model']['on']('deleteContent',(_0x250cd7,_0x4fd6a5)=>{const _0x3b238d=_0x4fd6a5[0x0],_0x122655=_0x4fd6a5[0x1];if(_0x122655&&_0x122655['forceDefaultExecution'])return;if(this[_0x513a('0xf7')])return;if(!this[_0x513a('0xfc')]['value'])return;if(_0x3b238d['isCollapsed'])return;const _0x3b4ad3=_0x40706a['model'][_0x513a('0x131')],{start:_0x3150ee,end:_0x1df5c1}=_0x3b238d[_0x513a('0x65')](),_0x1a14a3=_0x3150ee[_0x513a('0x113')]&&_0x3b4ad3[_0x513a('0x0')](_0x3150ee[_0x513a('0x113')])?null:_0x3b4ad3[_0x513a('0xbf')](_0x3150ee,_0x513a('0x99')),_0x179707=_0x1df5c1[_0x513a('0xe0')]&&_0x3b4ad3[_0x513a('0x0')](_0x1df5c1['nodeBefore'])?null:_0x3b4ad3[_0x513a('0xbf')](_0x1df5c1,_0x513a('0x11c')),_0x3e923d=_0x40706a[_0x513a('0x12d')]['createRange'](_0x1a14a3?_0x1a14a3['start']:_0x3150ee,_0x179707?_0x179707[_0x513a('0x61')]:_0x1df5c1);_0x40706a[_0x513a('0x12d')][_0x513a('0xeb')](_0x2565b4=>{this[_0x513a('0x12')](_0x3e923d);const _0x2d72e6=_0x40706a[_0x513a('0x12d')][_0x513a('0x131')][_0x513a('0xbf')](_0x3e923d[_0x513a('0xd1')]);_0x3b238d['is'](_0x513a('0xac'))?_0x2565b4['setSelection'](_0x2d72e6):_0x3b238d[_0x513a('0x11f')](_0x2d72e6);}),_0x250cd7[_0x513a('0xaf')]();},{'priority':_0x51363f[_0x513a('0xd0')]+0xa}),_0x40706a['model']['on']('insertContent',(_0x1013a6,_0x2968e4)=>{const _0x43b744=_0x2968e4[_0x2968e4[_0x513a('0xcd')]-0x1];_0x43b744&&_0x43b744[_0x513a('0x60')]||this[_0x513a('0xf7')]||this[_0x513a('0xfc')][_0x513a('0x136')]&&(_0x40706a[_0x513a('0x12d')]['change'](()=>{let _0x293532=_0x40706a[_0x513a('0x12d')][_0x513a('0x5')](_0x2968e4[0x0],_0x2968e4[0x1],_0x2968e4[0x2],{'forceDefaultExecution':!0x0});if(!_0x293532)return;_0x1013a6['return']=_0x293532['clone']();const _0x37d167=_0x293532[_0x513a('0x61')]['nodeBefore'],_0x5b224a=_0x40706a[_0x513a('0x12d')]['schema'];_0x37d167&&_0x5b224a[_0x513a('0x89')](_0x37d167)&&!_0x5b224a['isObject'](_0x37d167)&&(_0x293532=_0x40706a[_0x513a('0x12d')][_0x513a('0xc3')](_0x293532[_0x513a('0xd1')],_0x40706a[_0x513a('0x12d')][_0x513a('0x118')](_0x37d167,_0x513a('0x61')))),this[_0x513a('0x1c')](_0x293532);}),_0x1013a6[_0x513a('0xaf')]());},{'priority':_0x513a('0x91')}),this[_0x513a('0x69')][_0x513a('0x85')][_0x513a('0x8d')]('trackChanges',this[_0x513a('0xfc')]),this[_0x513a('0xd6')](_0x513a('0x64'));const _0xf4d033=new _0x2f6a2d(_0x40706a,this[_0x513a('0x7c')]);_0x40706a['commands']['add'](_0x513a('0xa6'),_0xf4d033),this[_0x513a('0xd6')](_0x513a('0xa6'));const _0x3b4f31=new _0x1f1ef9(_0x40706a,this[_0x513a('0x7c')]);_0x40706a[_0x513a('0x85')][_0x513a('0x8d')](_0x513a('0x43'),_0x3b4f31),this[_0x513a('0xd6')](_0x513a('0x43')),_0x40706a[_0x513a('0x85')][_0x513a('0x8d')](_0x513a('0x105'),new _0x44430d(_0x40706a,_0xf4d033,this[_0x513a('0x7c')])),this[_0x513a('0xd6')](_0x513a('0x105')),_0x40706a['commands'][_0x513a('0x8d')](_0x513a('0x3e'),new _0x44430d(_0x40706a,_0x3b4f31,this[_0x513a('0x7c')])),this[_0x513a('0xd6')]('discardAllSuggestions'),_0x40706a['commands'][_0x513a('0x8d')](_0x513a('0x120'),new _0x31bb6e(_0x40706a,_0xf4d033,this[_0x513a('0x7c')])),this[_0x513a('0xd6')](_0x513a('0x120')),_0x40706a[_0x513a('0x85')][_0x513a('0x8d')](_0x513a('0x7b'),new _0x31bb6e(_0x40706a,_0x3b4f31,this[_0x513a('0x7c')])),this[_0x513a('0xd6')](_0x513a('0x7b'));const _0x118e65=_0x40706a[_0x513a('0xa')]['get'](_0x513a('0x75'));this[_0x513a('0xe5')](_0x118e65,_0x513a('0x10b'),(_0x3ae7ba,{threadId:_0x106fd5})=>{const _0x6a767=this[_0x513a('0x7c')][_0x513a('0xda')](_0x106fd5);_0x6a767&&_0x6a767['commentThread']&&0x1===_0x6a767[_0x513a('0x34')][_0x513a('0xcd')]&&this[_0x513a('0xd8')](_0x106fd5,{'hasComments':!0x0});},{'priority':'low'}),this[_0x513a('0xe5')](_0x118e65,_0x513a('0x24'),(_0x1801b3,{threadId:_0x9dce5d})=>{const _0xce35e8=this[_0x513a('0x7c')][_0x513a('0xda')](_0x9dce5d);_0xce35e8&&_0xce35e8[_0x513a('0x34')]&&!_0xce35e8[_0x513a('0x34')][_0x513a('0xcd')]&&this[_0x513a('0xd8')](_0x9dce5d,{'hasComments':!0x1});},{'priority':_0x513a('0x33')});}set[_0x513a('0xfb')](_0x193991){if(this[_0x513a('0x12a')])throw new _0x2e8f93(_0x513a('0x22'),this);this['_adapter']=_0x193991;}get[_0x513a('0xfb')](){return this[_0x513a('0x12a')];}[_0x513a('0x5d')]({skipNotAttached:_0x1a08fe=!0x1,toJSON:_0x5eb003=!0x1}={}){const _0x875cee=[];for(const _0x1ee597 of this['_suggestions'][_0x513a('0x10')]())_0x1a08fe&&!_0x1ee597[_0x513a('0x40')]||_0x875cee['push'](_0x1ee597);return _0x5eb003?_0x875cee[_0x513a('0x2b')](_0x48e681=>_0x48e681[_0x513a('0x13')]()):_0x875cee;}[_0x513a('0xa3')](_0x63bc9){const _0xfcd587=this[_0x513a('0x7c')][_0x513a('0xda')](_0x63bc9);if(!_0xfcd587)throw new _0x2e8f93(_0x513a('0xfe'),this);return _0xfcd587;}[_0x513a('0xaa')](_0x259255){return this[_0x513a('0x7c')][_0x513a('0x134')](_0x259255);}['addSuggestionData'](_0x54a4d7){const {authorId:_0x3b221b,id:_0x46f643,attributes:_0x3c2fee}=_0x54a4d7,[_0x546c17,_0x330d7a]=_0x54a4d7[_0x513a('0x111')][_0x513a('0xb8')](':'),_0x6dd728=this[_0x513a('0x7c')][_0x513a('0xda')](_0x46f643)||this[_0x513a('0x8b')](_0x546c17,_0x330d7a,_0x46f643,_0x3b221b,_0x3c2fee);if(this[_0x513a('0x30')](_0x6dd728),this[_0x513a('0xa4')](_0x6dd728,_0x546c17,_0x330d7a||null,_0x3b221b),_0x6dd728['createdAt']=_0x54a4d7[_0x513a('0x100')],_0x3c2fee&&_0x3c2fee[_0x513a('0x1a')]){const _0x1ea54b=_0x3c2fee['@external'],_0x3b6d06=this['_getExternalAuthor'](_0x1ea54b[_0x513a('0x31')]);_0x6dd728[_0x513a('0xff')]=_0x1ea54b[_0x513a('0x100')],_0x6dd728['author']=_0x3b6d06,_0x6dd728[_0x513a('0xa2')]=!0x0;}else _0x6dd728[_0x513a('0xff')]=_0x54a4d7[_0x513a('0x100')];switch(_0x54a4d7['data']&&(_0x6dd728[_0x513a('0xa5')]=_0x54a4d7[_0x513a('0xa5')]),_0x54a4d7['attributes']&&(_0x6dd728['attributes']=_0x54a4d7['attributes']),this[_0x513a('0x12a')]&&this[_0x513a('0x12a')][_0x513a('0x8a')]||(_0x6dd728[_0x513a('0xed')]=!0x0),this[_0x513a('0xbe')][_0x513a('0xda')](_0x6dd728)){case _0x513a('0xd2'):this['_suggestionState'][_0x513a('0xc8')](_0x6dd728,_0x513a('0x63'));break;case'markerReady':_0x6dd728[_0x513a('0x40')]?(this['_suggestionState'][_0x513a('0xc8')](_0x6dd728,_0x513a('0x7f')),this['fire'](_0x513a('0x15'),_0x6dd728)):this[_0x513a('0xbe')][_0x513a('0xc8')](_0x6dd728,_0x513a('0x4b'));}return _0x6dd728;}[_0x513a('0xa6')](_0x31a1a0){this[_0x513a('0x60')](()=>{this[_0x513a('0x69')][_0x513a('0x12d')][_0x513a('0xeb')](()=>{for(const _0x3f4db5 of _0x31a1a0[_0x513a('0xae')]())_0x3f4db5[_0x513a('0x47')]();});});}[_0x513a('0x43')](_0x1fd9cb){this[_0x513a('0x60')](()=>{this[_0x513a('0x69')]['model']['change'](()=>{for(const _0x2daedf of _0x1fd9cb[_0x513a('0xae')]())_0x2daedf[_0x513a('0x112')]();});});}['enableCommand'](_0x4e2bd6,_0xdedfd3){const _0x11a0a0=this[_0x513a('0x69')][_0x513a('0x85')][_0x513a('0xda')](_0x4e2bd6);if(!_0x11a0a0)throw new _0x2e8f93('track-changes-command-not-found',this,{'commandName':_0x4e2bd6});this['_enabledCommands'][_0x513a('0x8d')](_0x11a0a0),_0xdedfd3&&_0x11a0a0['on']('execute',(_0xbca46d,_0x54be5e)=>{this[_0x513a('0xfc')][_0x513a('0x136')]&&(this[_0x513a('0xf7')]||_0x54be5e[_0x513a('0xcd')]>0x0&&_0x54be5e[_0x54be5e[_0x513a('0xcd')]-0x1]&&_0x54be5e[_0x54be5e[_0x513a('0xcd')]-0x1]['forceDefaultExecution']||(_0xdedfd3((..._0x3a153d)=>_0x11a0a0[_0x513a('0x21')](..._0x3a153d,{'forceDefaultExecution':!0x0}),..._0x54be5e),_0xbca46d[_0x513a('0xaf')]()));},{'priority':'high'});}[_0x513a('0x60')](_0xa04729){let _0x5af49f,_0x485415;const _0x424f88=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5af49f=_0xa04729();}catch(_0x536604){_0x485415=_0x536604;}return _0x424f88||(this[_0x513a('0xf7')]=!0x1),_0x485415&&_0x2e8f93[_0x513a('0x110')](_0x485415,this),_0x5af49f;}[_0x513a('0x1c')](_0x481e0b,_0x3cb1a2=null,_0x4e9b66={}){if(_0x481e0b[_0x513a('0xa0')])return null;const _0x15e15a=this[_0x513a('0x69')][_0x513a('0xa')]['get'](_0x513a('0x38'))['me'];for(const {suggestion:_0x1b9ce7,meta:_0xca3c99}of this[_0x513a('0x12e')](_0x481e0b,_0x513a('0x9e')))if(_0xca3c99[_0x513a('0xc0')]){if(!_0xca3c99[_0x513a('0xa1')]){if(!this['_mergeNestedSuggestions']&&_0xca3c99[_0x513a('0x13e')])continue;return _0x1b9ce7;}if(_0x3cb1a2==_0x1b9ce7['subType']){const _0x4fba86=_0x1b9ce7[_0x513a('0x65')]();return _0x4fba86['start'][_0x513a('0x42')](_0x481e0b[_0x513a('0x61')])?this[_0x513a('0x96')](_0x1b9ce7,this[_0x513a('0x37')][_0x513a('0xc3')](_0x481e0b[_0x513a('0xd1')],_0x4fba86[_0x513a('0x61')])):this[_0x513a('0x96')](_0x1b9ce7,this['_model'][_0x513a('0xc3')](_0x4fba86['start'],_0x481e0b[_0x513a('0x61')])),_0x1b9ce7;}}const _0x45ce41=_0x1396d2(),_0x119442=_0x15e15a['id'],_0x4dfe76=_0x3cb1a2?'insertion:'+_0x3cb1a2:_0x513a('0x9e'),_0x5a692d=this[_0x513a('0x3b')]({'id':_0x45ce41,'type':_0x4dfe76,'createdAt':new Date(),'authorId':_0x119442,'attributes':_0x4e9b66});return this[_0x513a('0xdc')](_0x4dfe76,_0x45ce41,_0x119442,_0x481e0b),_0x5a692d;}[_0x513a('0xf6')](_0xd6b813,_0x3e2feb='multi',_0x43b388={}){const _0x5f0786=this[_0x513a('0x69')][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x38'))['me'],_0xfa2975=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0x9e'),_0x3e2feb,_0x513a('0x5c'));for(const _0x2309b4 of this[_0x513a('0x5d')]())if(_0x2309b4[_0x513a('0x129')]['id']==_0x5f0786['id']&&'insertion'==_0x2309b4[_0x513a('0x111')]&&_0x2309b4[_0x513a('0x98')]==_0x3e2feb&&(_0xfa2975(_0x2309b4[_0x513a('0x50')](),_0xd6b813)||_0xfa2975(_0xd6b813,_0x2309b4[_0x513a('0x50')]()))){for(const _0xe12546 of _0xd6b813)_0x2309b4[_0x513a('0xf2')](_0xe12546);return _0x2309b4;}if(this[_0x513a('0x57')])for(const _0xfb0ede of _0xd6b813)for(const {suggestion:_0x34fc31,meta:_0x1dbf76}of this[_0x513a('0x12e')](_0xfb0ede,_0x513a('0x9e'))){if(!_0x1dbf76[_0x513a('0xc0')])continue;let _0xe218ef=!0x0;for(const _0x3d9144 of _0x34fc31[_0x513a('0x50')]())for(const _0x288f24 of _0xd6b813)if(!_0x3d9144['containsRange'](_0x288f24)){_0xe218ef=!0x1;break;}if(_0xe218ef)return _0x34fc31;}const _0x3aeb1a=_0x1396d2(),_0x5c2876=_0x5f0786['id'],_0x290a3e=_0x513a('0x11e')+_0x3e2feb,_0x2e0e93=this[_0x513a('0x3b')]({'id':_0x3aeb1a,'type':_0x290a3e,'createdAt':new Date(),'authorId':_0x5c2876,'attributes':_0x43b388});for(const _0x6f4d0c of _0xd6b813)this[_0x513a('0xdc')](_0x290a3e,_0x3aeb1a,_0x5c2876,_0x6f4d0c,_0xf7935d[_0x513a('0x2c')]());return _0x2e0e93;}[_0x513a('0x48')](_0x23eb15,_0x56fa0a,_0x41258d=null,_0x3693dd={}){if(_0x41258d=_0x41258d||$t(_0x56fa0a),_0x23eb15['isCollapsed'])return null;if(_0x513a('0x1b')===this[_0x513a('0x116')]){const _0xc7a9b8=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xdb'),_0x41258d,_0x513a('0x47'));return this['forceDefaultExecution'](()=>_0xc7a9b8([_0x23eb15],_0x56fa0a,_0x3693dd)),null;}const _0x19803e=this['editor'][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x38'))['me'],_0x3725a9=[];if(_0x513a('0xe')!==this['_trackFormatChanges'])for(const {suggestion:_0x37207e,meta:_0x61de14}of this[_0x513a('0x12e')](_0x23eb15,'insertion'))_0x61de14['isOwn']&&!_0x61de14[_0x513a('0x7e')]&&_0x3725a9[_0x513a('0xce')](..._0x37207e[_0x513a('0x50')]());const _0x5c231e=function(_0x21262c,_0x281fd4){const _0x1f5963=[];for(const _0x3c2659 of _0x281fd4){const _0x3e9857=_0x21262c[_0x513a('0x62')](_0x3c2659);_0x3e9857&&_0x1f5963['push'](_0x3e9857);}return _0x1f5963;}(_0x23eb15,_0x3725a9),_0x365ef7=function(_0x59cc89,_0x5bd649){const _0x4017fb=[_0x59cc89];for(const _0x2d681e of _0x5bd649){let _0xea821f=0x0;for(;_0xea821f<_0x4017fb[_0x513a('0xcd')];){const _0x3bf440=_0x4017fb[_0xea821f][_0x513a('0xe8')](_0x2d681e);_0x4017fb['splice'](_0xea821f,0x1,..._0x3bf440),_0xea821f+=_0x3bf440['length'];}}return _0x4017fb;}(_0x23eb15,_0x3725a9);_0x5c231e[_0x513a('0xcd')]&&this['_model'][_0x513a('0xeb')](()=>{for(const _0x136404 of _0x5c231e){const _0x448873=this['_suggestionFactory'][_0x513a('0xf9')](_0x513a('0xdb'),_0x41258d,_0x513a('0x47'));this[_0x513a('0x60')](()=>_0x448873([_0x136404],_0x56fa0a,_0x3693dd));}});for(const _0x6c359 of _0x365ef7){let _0x215a74=null,_0xe5f32c=_0x6c359[_0x513a('0xd1')],_0x53cadc=_0x6c359[_0x513a('0x61')];for(const {suggestion:_0x136fae,meta:_0x5ccb05}of this[_0x513a('0x12e')](_0x6c359,_0x513a('0xdb'))){if(!_0x5ccb05['isOwn'])continue;if(_0x136fae[_0x513a('0x98')]!=_0x41258d)continue;const _0x482856=_0x136fae[_0x513a('0x65')]();if(_0x482856[_0x513a('0xd')](_0x6c359,!0x0))return null;_0xe5f32c=_0xe5f32c['isBefore'](_0x482856[_0x513a('0xd1')])?_0xe5f32c:_0x482856['start'],_0x53cadc=_0x53cadc[_0x513a('0x92')](_0x482856[_0x513a('0x61')])?_0x53cadc:_0x482856['end'],_0x215a74?_0x482856[_0x513a('0xd1')][_0x513a('0xb1')](_0x215a74[_0x513a('0x65')]()[_0x513a('0xd1')])?(_0x215a74['removeMarkers'](),_0x215a74=_0x136fae):_0x136fae[_0x513a('0x8c')]():_0x215a74=_0x136fae;}const _0x241cfc=this[_0x513a('0x37')][_0x513a('0xc3')](_0xe5f32c,_0x53cadc);if(_0x215a74)this[_0x513a('0x96')](_0x215a74,_0x241cfc);else{const _0x2c293f=_0x1396d2(),_0x40a2a8=_0x19803e['id'];this[_0x513a('0x3b')]({'id':_0x2c293f,'type':'formatInline:'+_0x41258d,'data':_0x56fa0a,'createdAt':new Date(),'authorId':_0x40a2a8,'attributes':_0x3693dd}),this[_0x513a('0xdc')](_0x513a('0x115')+_0x41258d,_0x2c293f,_0x40a2a8,_0x241cfc);}}return null;}[_0x513a('0xc6')](_0x33d05f,_0x14758f,_0x3eb1a7=[],_0x40499c=null,_0x274918={}){_0x14758f[_0x513a('0xfd')]||(_0x14758f[_0x513a('0xfd')]=_0x14758f[_0x513a('0xe7')]),_0x14758f[_0x513a('0x1e')]=_0x33d05f['is'](_0x513a('0xb6')),_0x40499c=_0x40499c||$t(_0x14758f);const _0x4a2746=_0x3eb1a7[_0x513a('0x2b')](_0x4f22c6=>Rt(_0x4f22c6,this[_0x513a('0x37')])),_0x26c2b=_0x33d05f['is'](_0x513a('0xb6'))?_0x33d05f:Rt(_0x33d05f,this['_model']);if('never'===this[_0x513a('0x116')]){const _0x3a1df5=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0x94'),_0x40499c,'accept');return this[_0x513a('0x60')](()=>_0x3a1df5([_0x26c2b],_0x14758f,_0x274918)),null;}_0x4a2746['push'](_0x26c2b);let _0x27d60e=!0x0;for(const _0x4eb6e0 of _0x4a2746)if(!this['_rangeIsInLocalUserInsertion'](_0x4eb6e0)){_0x27d60e=!0x1;break;}if(_0x27d60e&&'always'!==this[_0x513a('0x116')]){const _0x497b33=this['_suggestionFactory'][_0x513a('0xf9')](_0x513a('0x94'),_0x40499c,_0x513a('0x47'));return this[_0x513a('0x60')](()=>_0x497b33([_0x26c2b],_0x14758f,_0x274918)),null;}let _0x5c7983=null,_0x5d5961=_0x26c2b[_0x513a('0xd1')],_0x23c7bd=_0x26c2b[_0x513a('0x61')];for(const {suggestion:_0x13d5f2,meta:_0x503c9a}of this['_findSuggestions'](_0x26c2b,'formatBlock')){if(!_0x503c9a['isOwn']||_0x503c9a['isNextTo']||_0x503c9a[_0x513a('0x13e')]||_0x503c9a[_0x513a('0x7e')])continue;if(_0x13d5f2[_0x513a('0xa5')]['formatGroupId']!=_0x14758f[_0x513a('0xfd')])continue;const _0x5d534c=_0x13d5f2[_0x513a('0x65')]();if(_0x13d5f2[_0x513a('0x98')]==_0x40499c){if(_0x5d534c[_0x513a('0xd')](_0x26c2b,!0x0))return null;_0x5d5961=_0x5d5961[_0x513a('0xb1')](_0x5d534c[_0x513a('0xd1')])?_0x5d5961:_0x5d534c['start'],_0x23c7bd=_0x23c7bd['isAfter'](_0x5d534c[_0x513a('0x61')])?_0x23c7bd:_0x5d534c[_0x513a('0x61')],_0x5c7983?_0x5d534c[_0x513a('0xd1')][_0x513a('0xb1')](_0x5c7983['getFirstRange']()[_0x513a('0xd1')])?(_0x5c7983[_0x513a('0x8c')](),_0x5c7983=_0x13d5f2):_0x13d5f2[_0x513a('0x8c')]():_0x5c7983=_0x13d5f2;}else{const _0x53dd00=_0x26c2b[_0x513a('0x62')](_0x5d534c);this[_0x513a('0x17')](_0x13d5f2,_0x53dd00);}}const _0x39fa25=this['editor'][_0x513a('0xa')]['get'](_0x513a('0x38'))['me'],_0x552337=_0x1396d2(),_0x19e747=_0x39fa25['id'];if(_0x5c7983)return this[_0x513a('0x96')](_0x5c7983,this['_model']['createRange'](_0x5d5961,_0x23c7bd)),_0x5c7983;{const _0x57db67=this[_0x513a('0x3b')]({'id':_0x552337,'type':_0x513a('0x4a')+_0x40499c,'data':_0x14758f,'createdAt':new Date(),'authorId':_0x19e747,'attributes':_0x274918});return this[_0x513a('0xdc')](_0x513a('0x4a')+_0x40499c,_0x552337,_0x19e747,this[_0x513a('0x37')]['createRange'](_0x5d5961,_0x23c7bd)),_0x57db67;}}['markMultiRangeBlockFormat'](_0x234f0f,_0x16bcc2,_0x5bff50=[],_0x239aab=null,_0x3e1f80={}){_0x16bcc2[_0x513a('0xfd')]||(_0x16bcc2[_0x513a('0xfd')]=_0x16bcc2['commandName']);const _0x2f482f=_0x234f0f[0x0];_0x16bcc2[_0x513a('0x1e')]=_0x2f482f['is'](_0x513a('0xb6')),_0x239aab=_0x239aab||$t(_0x16bcc2);const _0x242543=_0x5bff50['map'](_0x4a0e70=>Rt(_0x4a0e70,this[_0x513a('0x37')])),_0x45ddad=_0x2f482f['is'](_0x513a('0xb6'))?_0x234f0f:_0x234f0f['map'](_0x50024b=>Rt(_0x50024b,this[_0x513a('0x37')]));if(_0x513a('0x1b')===this[_0x513a('0x116')]){const _0x531302=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0x94'),_0x239aab,_0x513a('0x47'));return this[_0x513a('0x60')](()=>_0x531302(_0x45ddad,_0x16bcc2,_0x3e1f80)),null;}_0x242543[_0x513a('0xce')](..._0x45ddad);let _0xb2802d=!0x0;for(const _0x42f668 of _0x242543)if(!this[_0x513a('0x36')](_0x42f668)){_0xb2802d=!0x1;break;}if(_0xb2802d&&_0x513a('0xe')!==this[_0x513a('0x116')]){const _0x198d48=this[_0x513a('0x101')]['getSuggestionCallback'](_0x513a('0x94'),_0x239aab,'accept');return this['forceDefaultExecution'](()=>_0x198d48(_0x45ddad,_0x16bcc2,_0x3e1f80)),null;}const _0x4f8258=this[_0x513a('0x69')]['plugins'][_0x513a('0xda')]('Users')['me'];for(const _0x1d8758 of this[_0x513a('0x5d')]()){if(_0x1d8758['author']['id']!=_0x4f8258['id'])continue;if('formatBlock'!=_0x1d8758[_0x513a('0x111')]||_0x1d8758[_0x513a('0xa5')]['formatGroupId']!=_0x16bcc2[_0x513a('0xfd')])continue;const _0x138ba2=_0x1d8758[_0x513a('0x98')]==_0x239aab;for(let _0x24e65a=0x0;_0x24e65a<_0x45ddad['length'];_0x24e65a++){const _0x39e541=_0x45ddad[_0x24e65a];for(const _0x5c2ead of _0x1d8758[_0x513a('0xf8')]()){const _0x1342fe=_0x5c2ead[_0x513a('0x6e')]();if(_0x39e541[_0x513a('0x42')](_0x1342fe)){_0x138ba2?(_0x45ddad[_0x513a('0xee')](_0x24e65a,0x1),_0x24e65a--):_0x1d8758[_0x513a('0x4')](_0x5c2ead[_0x513a('0x126')]);break;}}}}if(0x0==_0x45ddad[_0x513a('0xcd')])return null;const _0x34b601=this['_suggestionFactory'][_0x513a('0xf9')](_0x513a('0x94'),_0x239aab,_0x513a('0x5c'));for(const _0x46d9a5 of this[_0x513a('0x5d')]())if(_0x46d9a5[_0x513a('0x129')]['id']==_0x4f8258['id']&&'formatBlock'==_0x46d9a5[_0x513a('0x111')]&&_0x46d9a5[_0x513a('0xa5')][_0x513a('0xfd')]==_0x16bcc2['formatGroupId']&&_0x46d9a5[_0x513a('0x98')]==_0x239aab&&(_0x34b601(_0x46d9a5['getRanges'](),_0x45ddad)||_0x34b601(_0x45ddad,_0x46d9a5[_0x513a('0x50')]()))){for(const _0x1eca9f of _0x45ddad)_0x46d9a5[_0x513a('0xf2')](_0x1eca9f);return _0x46d9a5;}const _0x2aaff7=_0x1396d2(),_0x552089=_0x4f8258['id'],_0x2c07fd=_0x513a('0x4a')+_0x239aab,_0x28cc40=this['_setSuggestionData']({'id':_0x2aaff7,'type':_0x2c07fd,'data':_0x16bcc2,'createdAt':new Date(),'authorId':_0x552089,'attributes':_0x3e1f80});for(const _0x232824 of _0x45ddad)this[_0x513a('0xdc')](_0x2c07fd,_0x2aaff7,_0x552089,_0x232824,_0xf7935d[_0x513a('0x2c')]());return _0x28cc40;}[_0x513a('0x12')](_0x37cadf,_0x833361=null,_0x2cd8eb={}){if(_0x37cadf[_0x513a('0xa0')])return null;const _0x364bca=this[_0x513a('0x69')][_0x513a('0xa')]['get'](_0x513a('0x38'))['me'],_0x269733=new _0x73d110(_0x37cadf[_0x513a('0xd1')],_0x37cadf[_0x513a('0x61')]);for(const {suggestion:_0x5640a7,meta:_0x11246b}of this[_0x513a('0x12e')](_0x269733,_0x513a('0x9e')))if(_0x11246b['isOwn']&&!_0x11246b[_0x513a('0xa1')]){if(_0x5640a7[_0x513a('0x82')]){const _0x569821=_0x5640a7[_0x513a('0x50')]()[_0x513a('0x7d')](_0x4b940f=>'$graveyard'!=_0x4b940f[_0x513a('0xd7')][_0x513a('0x109')]);_0x569821[_0x513a('0x2a')](_0xffd08f=>_0x269733['containsRange'](_0xffd08f,!0x0))&&_0x5640a7[_0x513a('0x112')]();if(_0x569821[_0x513a('0xef')](_0x486bb0=>_0x486bb0['containsRange'](_0x269733,!0x0))){const _0x580ba4=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xf'),_0x833361,_0x513a('0x47'));return this[_0x513a('0x60')](()=>_0x580ba4([_0x269733],null,_0x2cd8eb)),null;}}else{const _0x4bc7fb=_0x269733[_0x513a('0x62')](_0x5640a7[_0x513a('0x65')]());null!==_0x4bc7fb&&_0x5640a7[_0x513a('0x2f')]([_0x4bc7fb],null,_0x2cd8eb);}}if(_0x269733[_0x513a('0x67')](),_0x269733[_0x513a('0xa0')]||'$graveyard'==_0x269733['root'][_0x513a('0x109')])return null;let _0x3f9370=null,_0x498bc4=_0x269733[_0x513a('0xd1')],_0x362bf9=_0x269733['end'];for(const {suggestion:_0x3e6ccd,meta:_0x208422}of this[_0x513a('0x12e')](_0x269733,_0x513a('0xf')))if(_0x208422[_0x513a('0xc0')]){if(_0x3e6ccd[_0x513a('0x82')]&&this[_0x513a('0x57')]){let _0x4c7765=!0x0;for(const _0x53df53 of _0x3e6ccd[_0x513a('0x50')]()){if(_0x53df53[_0x513a('0xd')](_0x269733,!0x0))return _0x3e6ccd;_0x269733[_0x513a('0xd')](_0x53df53)||(_0x4c7765=!0x1);}_0x4c7765&&_0x3e6ccd[_0x513a('0x112')]();}else{const _0x1d53f7=_0x3e6ccd[_0x513a('0x65')]();if(_0x1d53f7['containsRange'](_0x269733,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x208422['containsRangeInObject'])continue;return _0x3e6ccd;}_0x498bc4=_0x498bc4[_0x513a('0xb1')](_0x1d53f7[_0x513a('0xd1')])?_0x498bc4:_0x1d53f7[_0x513a('0xd1')],_0x362bf9=_0x362bf9['isAfter'](_0x1d53f7[_0x513a('0x61')])?_0x362bf9:_0x1d53f7[_0x513a('0x61')],_0x3f9370?_0x1d53f7['start'][_0x513a('0xb1')](_0x3f9370[_0x513a('0x65')]()['start'])?(_0x3f9370[_0x513a('0x8c')](),_0x3f9370=_0x3e6ccd):_0x3e6ccd['removeMarkers']():_0x3f9370=_0x3e6ccd;}}if(_0x3f9370)return this['_setSuggestionRange'](_0x3f9370,this['_model'][_0x513a('0xc3')](_0x498bc4,_0x362bf9)),_0x3f9370;{const _0x2908bf=_0x1396d2(),_0x23bd85=this[_0x513a('0x37')][_0x513a('0xc3')](_0x498bc4,_0x362bf9),_0x3ad2bd=_0x364bca['id'],_0x56e79c=_0x833361?_0x513a('0x114')+_0x833361:_0x513a('0xf'),_0x5b6c3d=this[_0x513a('0x3b')]({'id':_0x2908bf,'type':_0x56e79c,'createdAt':new Date(),'authorId':_0x3ad2bd,'attributes':_0x2cd8eb});return this['_addSuggestionMarker'](_0x56e79c,_0x2908bf,_0x3ad2bd,_0x23bd85),_0x5b6c3d;}}['markMultiRangeDeletion'](_0xcbc2ef,_0x31c58f=_0x513a('0x13d'),_0x1ed710={}){const _0xc3a3f5=this[_0x513a('0x69')][_0x513a('0xa')][_0x513a('0xda')]('Users')['me'],_0x172cd3=_0xcbc2ef['map'](_0x2840d6=>new _0x73d110(_0x2840d6[_0x513a('0xd1')],_0x2840d6[_0x513a('0x61')])),_0x34209f=new Set();for(const _0x1c3364 of _0x172cd3)for(const {suggestion:_0x9be754,meta:_0x5a8dc7}of this[_0x513a('0x12e')](_0x1c3364,_0x513a('0x9e')))_0x5a8dc7[_0x513a('0xc0')]&&!_0x5a8dc7[_0x513a('0xa1')]&&_0x34209f[_0x513a('0x8d')](_0x9be754);for(const _0x28f2c8 of _0x34209f)if(_0x28f2c8[_0x513a('0x82')]){const _0x309570=_0x28f2c8['getRanges']();(!_0x28f2c8[_0x513a('0xc4')]||!_0x28f2c8[_0x513a('0xc4')][_0x513a('0xd3')])&&(_0x309570[_0x513a('0x2a')](_0x38c97a=>_0x172cd3[_0x513a('0xef')](_0x11d40d=>_0x11d40d[_0x513a('0xd')](_0x38c97a,!0x0)))&&_0x28f2c8[_0x513a('0x112')]());if(_0x172cd3[_0x513a('0x2a')](_0x4c52e1=>_0x309570[_0x513a('0xef')](_0x551814=>_0x551814[_0x513a('0xd')](_0x4c52e1,!0x0)))){const _0xbba0a1=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xf'),_0x31c58f,_0x513a('0x47'));return this['forceDefaultExecution'](()=>_0xbba0a1(_0xcbc2ef,null,_0x1ed710)),null;}}else{const _0x313b4a=_0x28f2c8[_0x513a('0x65')]();_0x172cd3['some'](_0x2021d3=>_0x2021d3[_0x513a('0xd')](_0x313b4a,!0x0))&&_0x28f2c8[_0x513a('0x112')]();if(_0x172cd3[_0x513a('0x2a')](_0x703e8a=>_0x313b4a[_0x513a('0xd')](_0x703e8a,!0x0))){const _0x345e87=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xf'),_0x31c58f,'accept');return this[_0x513a('0x60')](()=>_0x345e87(_0x172cd3,null,_0x1ed710)),null;}}const _0xc94c7e=this[_0x513a('0x101')][_0x513a('0xf9')]('deletion',_0x31c58f,_0x513a('0x5c'));let _0x34f462=null;for(const _0x5be294 of this[_0x513a('0x5d')]())if(_0x5be294[_0x513a('0x129')]['id']==_0xc3a3f5['id']&&_0x5be294['isInContent']&&_0x513a('0xf')==_0x5be294[_0x513a('0x111')]&&_0x5be294[_0x513a('0x98')]==_0x31c58f&&(_0xc94c7e(_0x5be294[_0x513a('0x50')](),_0x172cd3)||_0xc94c7e(_0x172cd3,_0x5be294['getRanges']()))){if(_0x34f462){if(_0x5be294[_0x513a('0x34')]&&_0x5be294[_0x513a('0x34')]['length'])continue;for(const _0x300b63 of _0x5be294[_0x513a('0x50')]())_0x34f462['isIntersectingWithRange'](_0x300b63)||_0x34f462[_0x513a('0xf2')](_0x300b63);_0x5be294[_0x513a('0x8c')]();}else{_0x34f462=_0x5be294;for(const _0x6cb9d6 of _0x172cd3)_0x5be294['isIntersectingWithRange'](_0x6cb9d6)||_0x5be294[_0x513a('0xf2')](_0x6cb9d6);}}if(_0x34f462)return _0x34f462;_0x34209f['clear']();for(const _0x55ee89 of _0x172cd3)for(const {suggestion:_0x3c655d,meta:_0x2ca7b5}of this[_0x513a('0x12e')](_0x55ee89,_0x513a('0xf')))_0x2ca7b5[_0x513a('0xc0')]&&_0x34209f['add'](_0x3c655d);for(const _0x18bd90 of _0x34209f){const _0x1ec7f1=_0x18bd90[_0x513a('0x50')]();if(!_0x1ed710||!_0x1ed710[_0x513a('0xd3')]){if(_0x172cd3['every'](_0x4c5141=>_0x1ec7f1[_0x513a('0xef')](_0x37af01=>_0x37af01['containsRange'](_0x4c5141,!0x0))))return _0x18bd90;}(!_0x18bd90[_0x513a('0xc4')]||!_0x18bd90[_0x513a('0xc4')][_0x513a('0xd3')])&&(_0x1ec7f1[_0x513a('0x2a')](_0x53cecb=>_0x172cd3[_0x513a('0xef')](_0x27176d=>_0x27176d['containsRange'](_0x53cecb,!0x0)))&&_0x18bd90[_0x513a('0x112')]());}const _0x56db9c=_0x1396d2(),_0x7f55fa=_0xc3a3f5['id'],_0xc8b270=_0x513a('0x114')+_0x31c58f,_0x1e7bf9=this[_0x513a('0x3b')]({'id':_0x56db9c,'type':_0xc8b270,'createdAt':new Date(),'authorId':_0x7f55fa,'attributes':_0x1ed710});for(const _0x220a38 of _0x172cd3)_0x220a38['detach'](),_0x220a38[_0x513a('0xa0')]||_0x513a('0x103')==_0x220a38[_0x513a('0xd7')][_0x513a('0x109')]||this[_0x513a('0xdc')](_0xc8b270,_0x56db9c,_0x7f55fa,_0x220a38,_0xf7935d[_0x513a('0x2c')]());return _0x1e7bf9;}[_0x513a('0x96')](_0x5f2aaa,_0x129e27){const _0x2bc777=_0x5f2aaa[_0x513a('0x84')]();this[_0x513a('0x37')][_0x513a('0xeb')](_0x1915d9=>{_0x1915d9['updateMarker'](_0x2bc777,{'range':_0x129e27});});}[_0x513a('0x30')](_0x194bc2){const _0x42164a=_0x194bc2['id'],_0xd17edb=this[_0x513a('0x69')][_0x513a('0x9f')][_0x513a('0xda')](_0x513a('0x18'));this[_0x513a('0xe2')][_0x513a('0xbd')](_0x42164a)||this[_0x513a('0xe2')][_0x513a('0x9b')]({'channelId':_0xd17edb,'threadId':_0x42164a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cfa9c=this[_0x513a('0xe2')]['getCommentThread'](_0x42164a);_0x1cfa9c['unbind'](_0x513a('0x4d')),_0x1cfa9c['isRemovable']=!0x1,_0x194bc2[_0x513a('0x34')]=_0x1cfa9c;}[_0x513a('0xa4')](_0x2d382b,_0x46b4c9,_0x101c40,_0x395847){if(_0x2d382b[_0x513a('0x111')]!=_0x46b4c9||_0x2d382b[_0x513a('0x98')]!=_0x101c40||_0x2d382b[_0x513a('0xb0')]['id']!=_0x395847)throw this[_0x513a('0x69')][_0x513a('0x12f')](_0x513a('0x44')),new _0x2e8f93('track-changes-suggestion-data-mismatch',this);}[_0x513a('0x17')](_0x1d15b6,_0x29ed72){const _0x1413f8=_0x1d15b6[_0x513a('0x65')]();if(_0x29ed72[_0x513a('0x42')](_0x1413f8))_0x1d15b6['removeMarkers']();else{if(_0x1413f8[_0x513a('0xd')](_0x29ed72)){const _0x3abdbc=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72[_0x513a('0xd1')][_0x513a('0xe0')],_0x513a('0x61'));this['_setSuggestionRange'](_0x1d15b6,this['_model'][_0x513a('0xc3')](_0x1413f8[_0x513a('0xd1')],_0x3abdbc));const _0x58b1b4=_0x1396d2(),_0x407669=_0x1d15b6[_0x513a('0xb0')]['id'],_0x5a5b67=_0x1d15b6[_0x513a('0x111')]+':'+_0x1d15b6[_0x513a('0x98')];this[_0x513a('0x3b')]({'id':_0x58b1b4,'type':_0x5a5b67,'createdAt':new Date(),'authorId':_0x407669,'data':_0x1d15b6[_0x513a('0xa5')],'attributes':_0x1d15b6[_0x513a('0xc4')]});const _0x44ab0a=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72['end'][_0x513a('0x71')],_0x513a('0x6a')),_0x4ba32b=this[_0x513a('0x37')][_0x513a('0xc3')](_0x44ab0a,_0x1413f8[_0x513a('0x61')]);this[_0x513a('0xdc')](_0x5a5b67,_0x58b1b4,_0x407669,_0x4ba32b);}else{if(_0x1413f8[_0x513a('0x20')](_0x29ed72[_0x513a('0xd1')])){const _0x2d81d5=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72['start']['nodeBefore'],'end');this[_0x513a('0x96')](_0x1d15b6,this[_0x513a('0x37')]['createRange'](_0x1413f8[_0x513a('0xd1')],_0x2d81d5));}else{const _0x4eccd5=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72[_0x513a('0x61')][_0x513a('0x71')],_0x513a('0x6a'));this[_0x513a('0x96')](_0x1d15b6,this[_0x513a('0x37')][_0x513a('0xc3')](_0x4eccd5,_0x1413f8[_0x513a('0x61')]));}}}}[_0x513a('0x36')](_0x49beb3){for(const {suggestion:_0x5ebc53,meta:_0x3b1824}of this[_0x513a('0x12e')](_0x49beb3,'insertion')){if(!_0x3b1824['isOwn'])continue;const _0x57761a=_0x5ebc53[_0x513a('0x50')]();for(const _0x30b434 of _0x57761a)if(!_0x49beb3[_0x513a('0xe8')](_0x30b434)[_0x513a('0xcd')])return!0x0;}return!0x1;}[_0x513a('0x66')](_0x10a66c){const _0x499d6d=this['editor'][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x38'))[_0x513a('0x127')](_0x10a66c);if(!_0x499d6d)throw new _0x2e8f93(_0x513a('0x119'),this);return _0x499d6d;}['_getExternalAuthor'](_0x2426e3){const _0x2b2483=this[_0x513a('0x69')][_0x513a('0xa')]['get'](_0x513a('0x38')),_0x4f76b7=_0x3419ee(_0x513a('0x55')+_0x2426e3),_0x225621=_0x2b2483[_0x513a('0x127')](_0x4f76b7);return _0x225621||_0x2b2483[_0x513a('0x10c')]({'id':_0x4f76b7,'name':_0x2426e3});}[_0x513a('0x8b')](_0x430080,_0xcc63d5,_0x95f013,_0x415bcf,_0x101a11){const _0x4de7a9=this['_getAuthorFromId'](_0x415bcf),_0x45798c=this[_0x513a('0x101')]['buildSuggestion'](_0x430080,_0xcc63d5,_0x95f013,_0x4de7a9,_0x101a11,_0x49459e=>this[_0x513a('0xd8')](_0x95f013,{'attributes':_0x49459e}));return this[_0x513a('0xe5')](_0x45798c,_0x513a('0x47'),()=>{this[_0x513a('0xd8')](_0x95f013,{'state':_0x513a('0x27')});},{'priority':_0x513a('0x91')}),this[_0x513a('0xe5')](_0x45798c,_0x513a('0x112'),()=>{this['_updateSuggestionData'](_0x95f013,{'state':_0x513a('0x11b')});},{'priority':_0x513a('0x91')}),this[_0x513a('0x7c')][_0x513a('0xc8')](_0x95f013,_0x45798c),this['_suggestionState']['set'](_0x45798c,'notReady'),_0x45798c;}[_0x513a('0x19')](_0x1c8789){const _0xc1b8b7=_0x1c8789['split'](':');return{'group':_0xc1b8b7[0x0],'type':_0xc1b8b7[0x1],'subType':_0xc1b8b7['length']>=0x5?_0xc1b8b7[0x2]:null,'id':_0xc1b8b7[_0x513a('0xcd')]<0x5?_0xc1b8b7[0x2]:_0xc1b8b7[0x3],'authorId':_0xc1b8b7[_0x513a('0xcd')]<0x5?_0xc1b8b7[0x3]:_0xc1b8b7[0x4],'markerCount':0x6==_0xc1b8b7[_0x513a('0xcd')]?_0xc1b8b7[0x5]:null};}['_breakSuggestionMarker'](_0x42be65,_0xa6b93f,_0x414879){const _0x2786fe=_0x42be65[_0x513a('0x65')](),_0x42a928=_0x2786fe[_0x513a('0xd1')],_0x1c07e6=_0x2786fe['end'];this[_0x513a('0x96')](_0x42be65,this[_0x513a('0x37')][_0x513a('0xc3')](_0x42a928,_0xa6b93f));const _0x3da7c6=_0x1396d2(),_0x5b9dc9=_0x42be65[_0x513a('0xb0')]['id'],_0x869595=_0x42be65[_0x513a('0x111')]+(_0x42be65[_0x513a('0x98')]?':'+_0x42be65['subType']:'');this[_0x513a('0x3b')]({'id':_0x3da7c6,'type':_0x869595,'createdAt':new Date(),'authorId':_0x5b9dc9,'originalSuggestionId':_0x42be65['id'],'attributes':_0x42be65['attributes'],'data':_0x42be65[_0x513a('0xa5')]}),_0x513a('0x94')==_0x42be65[_0x513a('0x111')]&&(_0x414879=this[_0x513a('0x37')][_0x513a('0x16')](_0x414879[_0x513a('0x71')])),this[_0x513a('0xdc')](_0x869595,_0x3da7c6,_0x5b9dc9,this[_0x513a('0x37')][_0x513a('0xc3')](_0x414879,_0x1c07e6));}['_findSuggestions'](_0x3ddc2f,_0x2875e7=null){const _0x186db6=[],_0x49fb16=this[_0x513a('0x37')]['schema'],_0x418ba7=this['editor']['plugins'][_0x513a('0xda')](_0x513a('0x38'))['me'];for(const _0x38e417 of this[_0x513a('0x5d')]())if(_0x38e417[_0x513a('0x40')]&&(!_0x2875e7||_0x38e417[_0x513a('0x111')]==_0x2875e7))for(const _0x58ed6b of _0x38e417[_0x513a('0x50')]()){const _0x2bc50e=_0x3ddc2f[_0x513a('0xd1')][_0x513a('0x42')](_0x58ed6b[_0x513a('0x61')])||_0x3ddc2f[_0x513a('0x61')][_0x513a('0x42')](_0x58ed6b['start']);if(_0x2bc50e||_0x3ddc2f[_0x513a('0x62')](_0x58ed6b)){const _0x4589a4=_0x3ddc2f[_0x513a('0xd')](_0x58ed6b)&&Bt(_0x49fb16,_0x58ed6b['start'],_0x3ddc2f),_0x2ce3b2=_0x58ed6b['containsRange'](_0x3ddc2f)&&Bt(_0x49fb16,_0x3ddc2f['start'],_0x58ed6b);_0x186db6[_0x513a('0xce')]({'suggestion':_0x38e417,'meta':{'isOwn':_0x418ba7==_0x38e417['author'],'isNextTo':_0x2bc50e,'isInsideObject':_0x4589a4,'containsRangeInObject':_0x2ce3b2}});break;}}return _0x186db6;}[_0x513a('0xdc')](_0x4385c3,_0x5a15e3,_0xecb93f,_0x399950,_0x595147){this[_0x513a('0x37')][_0x513a('0xeb')](_0x157d46=>{let _0x510366=_0x513a('0x70')+_0x4385c3+':'+_0x5a15e3+':'+_0xecb93f;_0x595147&&(_0x510366=_0x510366+':'+_0x595147),_0x157d46[_0x513a('0x86')](_0x510366,{'range':_0x399950,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x513a('0xd4')](_0x444496){const _0x9b9897=_0x444496['previous'],_0xaff026=_0x444496[_0x513a('0x2d')];_0x444496[_0x513a('0xd5')]=null,null!=_0x9b9897&&(_0x9b9897[_0x513a('0x2d')]=null),_0x444496[_0x513a('0x2d')]=null,null!=_0xaff026&&(_0xaff026[_0x513a('0xd5')]=null),'ready'==this[_0x513a('0xbe')][_0x513a('0xda')](_0x444496)&&(this[_0x513a('0xbe')][_0x513a('0xc8')](_0x444496,_0x513a('0x4b')),this[_0x513a('0xe3')]('suggestionUnloaded',_0x444496,_0x9b9897,_0xaff026));}[_0x513a('0x3b')](_0x2ff6a0){const _0x391994=_0x2ff6a0['id'],_0x2d6c9e=this[_0x513a('0x6d')](_0x2ff6a0);if(this['_adapter']&&this[_0x513a('0x12a')][_0x513a('0x8a')]){const _0x4e3534=this[_0x513a('0x69')][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x121')),_0x126235=_0x2d6c9e['hasComments'],_0x110e7f=_0x2d6c9e['subType']?_0x2d6c9e[_0x513a('0x111')]+':'+_0x2d6c9e[_0x513a('0x98')]:_0x2d6c9e[_0x513a('0x111')],_0x1cfcc8=this[_0x513a('0x69')]['locale'],_0x43f602=_0x4e3534[_0x513a('0x8d')](_0x4b72e5(_0x1cfcc8,_0x513a('0xb4'))),_0x104601={'id':_0x391994,'type':_0x110e7f,'hasComments':_0x126235,'data':_0x2ff6a0[_0x513a('0xa5')]||null,'originalSuggestionId':_0x2ff6a0[_0x513a('0x10f')]||null,'attributes':_0x2d6c9e['attributes']};this[_0x513a('0x12a')]['addSuggestion'](_0x104601)['then'](_0x2bc993=>{_0x2d6c9e[_0x513a('0xed')]=!0x0,_0x4e3534['remove'](_0x43f602),_0x2bc993&&_0x2bc993['createdAt']&&(this['_suggestions'][_0x513a('0xda')](_0x391994)[_0x513a('0x100')]=_0x2bc993['createdAt']);})[_0x513a('0x72')](_0x486b33=>{throw _0xfa39c1(_0x513a('0x108')),this[_0x513a('0x69')]['model'][_0x513a('0x13a')]({'isUndoable':!0x1},()=>{_0x2d6c9e['discard']();}),_0x2d6c9e['stopListening'](),this[_0x513a('0x7c')][_0x513a('0x5b')](_0x2d6c9e['id']),this['_suggestionState'][_0x513a('0x5b')](_0x2d6c9e),_0x486b33;});}return _0x2d6c9e;}['_updateSuggestionData'](_0x1ad1fb,_0xb7bcc8){const _0x26e5b3=this['editor'][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x121')),_0x1fff80=this[_0x513a('0xa3')](_0x1ad1fb);if(this['_adapter']&&this['_adapter'][_0x513a('0xc5')]){if(_0x1fff80[_0x513a('0xed')]){const _0x39dec1=_0x26e5b3['add'](_0x4b72e5(this['editor'][_0x513a('0x32')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x513a('0xc5')](_0x1ad1fb,_0xb7bcc8)[_0x513a('0xe1')](()=>{_0x26e5b3[_0x513a('0x9c')](_0x39dec1);});}else _0x1fff80['on'](_0x513a('0x8e'),()=>{this['_updateSuggestionData'](_0x1ad1fb,_0xb7bcc8);});}}['_getSuggestionData'](_0x7311ab){if(!this['_adapter']||!this[_0x513a('0x12a')][_0x513a('0xa3')])throw new _0x2e8f93(_0x513a('0x9'),this);return this[_0x513a('0x12a')][_0x513a('0xa3')](_0x7311ab);}[_0x513a('0x77')](_0x1bae97){const {id:_0x3bdb03,type:_0x1cd048,subType:_0x2fb8ab,authorId:_0x251c6b}=this[_0x513a('0x19')](_0x1bae97),_0x41e4e1=this['_suggestions'][_0x513a('0xda')](_0x3bdb03)||this[_0x513a('0x8b')](_0x1cd048,_0x2fb8ab,_0x3bdb03,_0x251c6b,{});switch(this[_0x513a('0xa4')](_0x41e4e1,_0x1cd048,_0x2fb8ab,_0x251c6b),this[_0x513a('0xbe')][_0x513a('0xda')](_0x41e4e1)){case _0x513a('0xd2'):this[_0x513a('0xc7')](_0x3bdb03)[_0x513a('0xe1')](_0x17c901=>{let _0x22986e=Promise[_0x513a('0xc2')]();_0x17c901[_0x513a('0x6c')]&&(_0x22986e=this[_0x513a('0xe2')][_0x513a('0xde')]({'channelId':this[_0x513a('0x69')]['config'][_0x513a('0xda')]('collaboration.channelId'),'threadId':_0x3bdb03})),_0x22986e[_0x513a('0xe1')](()=>{this['addSuggestionData'](_0x17c901)[_0x513a('0xed')]=!0x0;});}),this[_0x513a('0xbe')]['set'](_0x41e4e1,_0x513a('0xad'));break;case _0x513a('0x4b'):this[_0x513a('0xd8')](_0x3bdb03,{'state':_0x513a('0xcf')});case'dataReady':this[_0x513a('0xbe')][_0x513a('0xc8')](_0x41e4e1,_0x513a('0x7f')),this['fire']('suggestionLoaded',_0x41e4e1);break;case _0x513a('0x7f'):this[_0x513a('0xe3')](_0x513a('0x12c'),_0x41e4e1);}return _0x41e4e1[_0x513a('0x76')](_0x1bae97),_0x41e4e1;}[_0x513a('0x137')](_0x3f9be4){const _0x9a4ccb=Array['from'](_0x3f9be4)[_0x513a('0x7d')](_0x3d5bb9=>!_0x3d5bb9[_0x513a('0x82')]),_0x505d3a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c633=>!_0x49c633[_0x513a('0x82')]),_0x572474=_0x505d3a['filter'](_0x2d7de2=>!_0x3f9be4[_0x513a('0x134')](_0x2d7de2)),_0x2ff422=new Map(_0x505d3a[_0x513a('0x2b')](_0x314398=>[_0x314398,this['_suggestionFactory']['getSuggestionCallback'](_0x314398[_0x513a('0x111')],_0x314398['subType'],_0x513a('0x7a'))])),_0x242ec1=new Map(_0x505d3a['map'](_0x8d626b=>[_0x8d626b,_0x8d626b['getFirstRange']()])),_0x18d8e7=new Set(),_0x2de097=new Set();for(let _0x2950c5=0x0;_0x2950c5<_0x9a4ccb['length'];_0x2950c5++)_0x243dff(_0x9a4ccb[_0x2950c5],_0x9a4ccb,_0x2950c5+0x1);for(let _0x323c7e=0x0;_0x323c7e<_0x9a4ccb[_0x513a('0xcd')];_0x323c7e++)_0x243dff(_0x9a4ccb[_0x323c7e],_0x572474,0x0);for(let _0x5cddd7=0x0;_0x5cddd7<_0x9a4ccb[_0x513a('0xcd')];_0x5cddd7++){const _0x5614d4=_0x9a4ccb[_0x5cddd7];!_0x2de097['has'](_0x5614d4)&&_0x5614d4[_0x513a('0xd5')]&&(_0x5614d4[_0x513a('0xd5')]['next']===_0x5614d4&&(_0x5614d4[_0x513a('0xd5')]['next']=null),_0x5614d4['previous']=null),!_0x18d8e7['has'](_0x5614d4)&&_0x5614d4[_0x513a('0x2d')]&&(_0x5614d4['next']['previous']===_0x5614d4&&(_0x5614d4[_0x513a('0x2d')][_0x513a('0xd5')]=null),_0x5614d4[_0x513a('0x2d')]=null);}function _0x243dff(_0x2c9aaa,_0x565c2c,_0x3f47c2){for(let _0x44d956=_0x3f47c2;_0x44d956<_0x565c2c['length'];_0x44d956++){const _0x267a98=_0xee76fb(_0x2c9aaa,_0x565c2c[_0x44d956]);_0x267a98&&(_0x267a98[0x0][_0x513a('0x2d')]=_0x267a98[0x1],_0x267a98[0x1][_0x513a('0xd5')]=_0x267a98[0x0],_0x18d8e7[_0x513a('0x8d')](_0x267a98[0x0]),_0x2de097['add'](_0x267a98[0x1]));}}function _0xee76fb(_0xa916d,_0x3f8f5a){if(_0xa916d[_0x513a('0x129')]['id']!==_0x3f8f5a[_0x513a('0x129')]['id'])return null;const _0x4267a6=_0x2ff422[_0x513a('0xda')](_0xa916d)(_0xa916d,_0x3f8f5a,_0x242ec1['get'](_0xa916d),_0x242ec1[_0x513a('0xda')](_0x3f8f5a));if(!_0x4267a6)return null;return _0x2ff422[_0x513a('0xda')](_0x3f8f5a)(_0xa916d,_0x3f8f5a,_0x242ec1[_0x513a('0xda')](_0xa916d),_0x242ec1['get'](_0x3f8f5a))?_0x4267a6[0x1]['commentThread']&&_0x4267a6[0x1][_0x513a('0x34')][_0x513a('0xcd')]?null:_0x4267a6:null;}}['_joinWithAdjacentSuggestions'](_0x1a25c1){const _0x4c362b=Array[_0x513a('0x59')](_0x1a25c1),_0x538e0e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1290dd=_0x538e0e[_0x513a('0x7d')](_0x465b7a=>!_0x1a25c1[_0x513a('0x134')](_0x465b7a)),_0x4297b6=new Map(_0x4c362b[_0x513a('0x2b')](_0x13f37b=>[_0x13f37b,this['_suggestionFactory'][_0x513a('0xf9')](_0x13f37b[_0x513a('0x111')],_0x13f37b[_0x513a('0x98')],_0x513a('0x5c'))])),_0x384d2a=new Map(_0x538e0e[_0x513a('0x2b')](_0x13302b=>[_0x13302b,_0x13302b[_0x513a('0x50')]()]));for(let _0x34560a=0x0;_0x34560a<_0x4c362b[_0x513a('0xcd')];_0x34560a++){if(_0x541e07(this,_0x4c362b[_0x34560a],_0x4c362b,_0x34560a+0x1))return!0x0;}for(let _0x11de13=0x0;_0x11de13<_0x4c362b[_0x513a('0xcd')];_0x11de13++){if(_0x541e07(this,_0x4c362b[_0x11de13],_0x1290dd,0x0))return!0x0;}return!0x1;function _0x541e07(_0x9403b5,_0x2291fe,_0x3e8ad1,_0x302fc6){for(let _0x131593=_0x302fc6;_0x131593<_0x3e8ad1['length'];_0x131593++){const _0x51dd39=_0x3e8ad1[_0x131593];if(_0x51dd39[_0x513a('0x111')]!==_0x2291fe['type']||_0x51dd39['author']['id']!==_0x2291fe['author']['id']||_0x51dd39['subType']!==_0x2291fe[_0x513a('0x98')])continue;const _0x33af8d=_0x4297b6[_0x513a('0xda')](_0x2291fe),_0x25884e=_0x384d2a['get'](_0x2291fe),_0x2aa2b8=_0x384d2a[_0x513a('0xda')](_0x51dd39),_0x53f41c=_0x2291fe[_0x513a('0x34')]&&_0x2291fe[_0x513a('0x34')][_0x513a('0xcd')],_0x3cd437=_0x51dd39[_0x513a('0x34')]&&_0x51dd39['commentThread']['length'];if(!_0x53f41c&&_0x33af8d(_0x2aa2b8,_0x25884e))return _0x9403b5[_0x513a('0x53')](_0x51dd39,_0x2291fe),_0x384d2a[_0x513a('0x5b')](_0x2291fe),!0x0;if(!_0x3cd437&&_0x33af8d(_0x25884e,_0x2aa2b8))return _0x9403b5[_0x513a('0x53')](_0x2291fe,_0x51dd39),_0x384d2a[_0x513a('0x5b')](_0x51dd39),!0x0;}return!0x1;}}['_joinSuggestions'](_0x31be00,_0x542d43){if(_0x31be00[_0x513a('0x82')])for(const _0x351a36 of _0x542d43[_0x513a('0x50')]())_0x31be00[_0x513a('0xf2')](_0x351a36);else{const _0x22fab8=_0x542d43[_0x513a('0x65')]()[_0x513a('0x61')];this['_setSuggestionRange'](_0x31be00,this[_0x513a('0x37')]['createRange'](_0x31be00['getFirstRange']()[_0x513a('0xd1')],_0x22fab8));}_0x542d43[_0x513a('0x8c')]();}}class Dt{constructor(_0x3c13d6){this[_0x513a('0x123')]=_0x3c13d6,this[_0x513a('0x37')]=_0x3c13d6[_0x513a('0x12d')],this[_0x513a('0xea')]=new Map(),this[_0x513a('0x1f')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24d60f,_0x178e57,_0x4a5d72,_0x15a087,_0x1da560,_0x4581ba){return new _0xf7935d(this[_0x513a('0x37')],{'type':_0x24d60f,'subType':_0x178e57,'id':_0x4a5d72,'author':_0x15a087,'creator':_0x15a087,'attributes':_0x1da560,'onAttributesChange':_0x4581ba,'onAccept':(..._0xaebf18)=>this['getSuggestionCallback'](_0x24d60f,_0x178e57,_0x513a('0x47'))(..._0xaebf18),'onDiscard':(..._0x58dcc3)=>this[_0x513a('0xf9')](_0x24d60f,_0x178e57,_0x513a('0x112'))(..._0x58dcc3)});}['registerCustomCallback'](_0x406b98,_0x6409d2,_0x2102f4,_0x55af21){const _0x1dfbb0=_0x406b98+':'+_0x6409d2+':'+_0x2102f4;this[_0x513a('0xea')]['set'](_0x1dfbb0,_0x55af21);}[_0x513a('0xf9')](_0x5dc550,_0x3bb631,_0x1e6769){const _0xa56f5d=_0x5dc550+':'+_0x3bb631+':'+_0x1e6769;return this[_0x513a('0xea')][_0x513a('0xda')](_0xa56f5d)||this[_0x513a('0x1f')][_0x513a('0xda')](_0x5dc550+':'+_0x1e6769);}[_0x513a('0x104')](){const _0x14142a=()=>{},_0x30bae0=_0x48720c=>{_0x48720c[_0x513a('0x46')]((_0x1add17,_0x44d30a)=>_0x1add17[_0x513a('0xd1')][_0x513a('0xb1')](_0x44d30a[_0x513a('0xd1')])?0x1:-0x1),this[_0x513a('0x37')][_0x513a('0xeb')](_0x14dde8=>{for(const _0xd6011 of _0x48720c){let _0x30f127;_0x30f127=_0xd6011[_0x513a('0x61')][_0x513a('0x41')]&&_0xd6011[_0x513a('0x61')][_0x513a('0x71')]==_0xd6011[_0x513a('0xd1')][_0x513a('0x113')]?_0x14dde8[_0x513a('0x35')](_0xd6011['start'][_0x513a('0x113')],'on'):_0x14dde8[_0x513a('0x35')](_0xd6011),this[_0x513a('0x37')][_0x513a('0x1d')](_0x30f127,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18b5de=(_0xc50afa,_0x1253de)=>{this[_0x513a('0x37')][_0x513a('0xeb')](_0x3ad653=>{const {commandName:_0x2791f8,commandParams:_0x30bafb=[]}=_0x1253de,_0x1e73a6=_0xc50afa[_0x513a('0x2b')](_0x3dc03f=>(_t(_0x3dc03f)&&(_0x3dc03f=this[_0x513a('0x37')][_0x513a('0xc3')](_0x3dc03f[_0x513a('0x61')])),_0x3dc03f))[_0x513a('0x7d')](_0x374459=>_0x513a('0x103')!==_0x374459[_0x513a('0xd7')][_0x513a('0x109')]);if(_0x1e73a6[_0x513a('0xcd')]<0x1)return;const _0x285b00=Array[_0x513a('0x59')](this[_0x513a('0x37')]['document'][_0x513a('0x3a')][_0x513a('0x50')]())[_0x513a('0x2b')](_0x20dc4d=>_0x73d110[_0x513a('0xcb')](_0x20dc4d));_0x3ad653[_0x513a('0xf4')](_0x1e73a6);for(const _0x5e144c of this['_editor']['commands'][_0x513a('0x85')]())_0x5e144c[_0x513a('0x97')]();_0x30bafb[_0x513a('0xce')]({'forceDefaultExecution':!0x0}),this[_0x513a('0x123')][_0x513a('0x21')](_0x2791f8,..._0x30bafb);const _0x2030e2=_0x285b00[_0x513a('0x7d')](_0x1cc4cd=>_0x513a('0x103')!=_0x1cc4cd['root'][_0x513a('0x109')]);_0x2030e2[_0x513a('0xcd')]>0x0&&_0x3ad653[_0x513a('0xf4')](_0x2030e2);for(const _0x514349 of _0x285b00)_0x514349['detach']();});},_0x14a970=(_0x53a514,_0x15de06)=>0x1==_0x53a514[_0x513a('0xcd')]&&0x1==_0x15de06['length']&&_0x53a514[0x0][_0x513a('0x61')][_0x513a('0x42')](_0x15de06[0x0][_0x513a('0xd1')]),_0x9771f5=(_0x89a8f8,_0x1057c2,_0x3af83a,_0x5dec51)=>xt(_0x89a8f8,_0x1057c2,_0x3af83a,_0x5dec51,this[_0x513a('0x37')])?[_0x89a8f8,_0x1057c2]:xt(_0x1057c2,_0x89a8f8,_0x5dec51,_0x3af83a,this['_model'])?[_0x1057c2,_0x89a8f8]:null;this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x6b'),_0x14142a),this[_0x513a('0x1f')]['set']('insertion:discard',_0x30bae0),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x11d'),_0x14a970),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x3d'),_0x9771f5),this[_0x513a('0x1f')][_0x513a('0xc8')]('deletion:accept',_0x30bae0),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x11'),_0x14142a),this[_0x513a('0x1f')][_0x513a('0xc8')]('deletion:join',_0x14a970),this['_defaultCallbacks'][_0x513a('0xc8')](_0x513a('0x122'),_0x9771f5),this['_defaultCallbacks'][_0x513a('0xc8')]('formatInline:accept',_0x18b5de),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x10a'),_0x14142a),this[_0x513a('0x1f')]['set'](_0x513a('0xb2'),_0x14a970),this['_defaultCallbacks'][_0x513a('0xc8')](_0x513a('0x135'),_0x14142a),this['_defaultCallbacks'][_0x513a('0xc8')](_0x513a('0x130'),_0x18b5de),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x9d'),_0x14142a),this[_0x513a('0x1f')]['set'](_0x513a('0xc1'),_0x14a970),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x93'),_0x14142a);}}function Bt(_0xe47fec,_0x595eaf,_0x6789ab){for(const _0xd59668 of _0x595eaf[_0x513a('0x71')][_0x513a('0x88')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd59668[_0x513a('0xd7')]==_0xd59668)return!0x1;if(!_0x6789ab[_0x513a('0xba')](_0xd59668))return!0x1;if(_0xe47fec['isObject'](_0xd59668)||_0xe47fec['isLimit'](_0xd59668))return!0x0;}return!0x1;}function _t(_0x1ebb48){return _0x1ebb48[_0x513a('0x61')][_0x513a('0x71')]==_0x1ebb48[_0x513a('0xd1')]['nodeAfter']&&_0x1ebb48[_0x513a('0x61')][_0x513a('0x58')];}function Mt(_0x51fac6,_0x474c1c,_0x19d34c,_0x5ae685){const _0x89ee03=_0x4ddc5a=>!_0x4ddc5a[_0x513a('0x3f')]['is'](_0x513a('0x2'))&&!_0x5ae685[_0x513a('0xb9')](_0x4ddc5a['item']),_0x1cd69a=_0x51fac6['start'][_0x513a('0x107')](_0x89ee03),_0x140f20=_0x51fac6['end'][_0x513a('0x107')](_0x89ee03,{'direction':'backward'});return(!_0x51fac6['start'][_0x513a('0x42')](_0x1cd69a)||!_0x51fac6[_0x513a('0x61')]['isEqual'](_0x140f20))&&(_0x1cd69a[_0x513a('0xb1')](_0x140f20)?_0x19d34c[_0x513a('0x8f')](_0x474c1c,{'range':_0x19d34c[_0x513a('0xc3')](_0x1cd69a,_0x140f20)}):_0x19d34c[_0x513a('0x4')](_0x474c1c),!0x0);}function $t(_0xa94b95){return _0x3419ee(_0xa94b95);}function Nt(_0x37f21a){const _0x4401e2=_0x37f21a[_0x513a('0xd1')][_0x513a('0x113')];return _0x4401e2&&_0x4401e2['is']('element');}function Rt(_0x256cef,_0x3710f8){const _0x4a7869=_0x3710f8[_0x513a('0x131')][_0x513a('0xb9')](_0x256cef)||_0x3710f8[_0x513a('0x131')][_0x513a('0xc9')](_0x256cef);return _0x3710f8['createRange'](_0x3710f8['createPositionAt'](_0x256cef,'before'),_0x4a7869?_0x3710f8[_0x513a('0xbb')](_0x256cef):_0x3710f8['createPositionAt'](_0x256cef,_0x513a('0x61')));}function xt(_0x2ff637,_0x32c605,_0x3acb25,_0x313cea,_0x117a86){if(_0x3acb25[_0x513a('0x61')][_0x513a('0x42')](_0x313cea[_0x513a('0xd1')]))return!0x0;if(_0x2ff637[_0x513a('0x111')]!=_0x32c605[_0x513a('0x111')])return!0x1;if(!_0x3acb25[_0x513a('0x61')]['isTouching'](_0x313cea[_0x513a('0xd1')]))return!0x1;const _0x4af94c=_0x117a86[_0x513a('0xc3')](_0x3acb25[_0x513a('0x61')],_0x313cea[_0x513a('0xd1')])[_0x513a('0x5f')]();for(const _0x14cbb1 of _0x4af94c)if(['elementStart',_0x513a('0x68')][_0x513a('0xf5')](_0x14cbb1[_0x513a('0x111')])&&_0x117a86[_0x513a('0x131')][_0x513a('0x0')](_0x14cbb1[_0x513a('0x3f')]))return!0x1;return!0x0;}
23
+ const _0x5b30=['trackChanges.mergeNestedSuggestions','isSelectable','$graveyard','editingDowncast','add','isAtStart','getMultiRangeId','suggestion-type','getCommentThread','removed','getSuggestionCallback','newRange','createPositionAt','track-changes-command-not-found','isCollapsed','authoredAt','markers','commandName','formatBlock','get','fetchCommentThread','forward','stop','deletion:join','change:activeMarkers','from','_isForcedDefaultExecutionBlock','registerCustomCallback','deleteContent','plugins','addCommentThread','group','markerNameToElements','containsRange','change:_saved','fire','previous','discardSuggestion','unbindElementFromMarkerName','map','type','formatInline:','_splitMarkerName','consume','formatGroupId','track-changes-suggestion-data-mismatch','removeAttribute','markMultiRangeInsertion','formatBlock:join','mapper','createRange','_setSuggestionRange','insertContent','nodeBefore','change','getAncestors','ready','_createSuggestion','substr','start','error-saving-suggestion-data-suggestion-discarded','markDeletion','delete','insertion:','isLimit','isEqual','high','removeClass','trackChangesCommand','split','pluginName','catch','some','track-changes-suggestion-not-found','createElement','editor','deletion','addMarkerName','isExternal','_rangeIsInLocalUserInsertion','$marker','getSuggestion','toViewElement','isObject','commentThread','getLastMatchingPosition','batch','ck-suggestion-marker--active','_commentsRepository','_suggestionFactory','change:data','getAllAdjacentSuggestions','commands','forceDefaultExecution','acceptSelectedSuggestions','_getSuggestionData','_saved','TrackChangesEditing','ck-suggestion-marker','isBlock','markInsertion','containsItem','addMarker:suggestion','isOwn','enableReadOnlyMode','end','push','track-changes-adapter-missing-getsuggestion','fromRange','selection','suggestion:','_checkSuggestionCorrectness','markBlockFormat','differ','return','_defaultCallbacks','getRange','join','createSelection','getRanges','isMultiRange','getItems','CommentsRepository','isNextTo','editing','after','data','rejected','howMany','suggestion','_customCallbacks','init','_adapter','getCustomProperty','getShiftedBy','element','parent','getWalker','insertion:discard','multipleBlocks','ck-suggestion-marker-formatBlock','skipNestingCheck','_registerDefaultCallbacks','consumable','containsRangeInObject','_model','markerToHighlight','schema','bindElementToMarker','markerName','@external','_suggestions','insertion:join','toJSON','_onDiscard','accept','markInlineFormat','isLocal','addHighlight','range','length','discardAllSuggestions','config','_trackFormatChanges','formatBlock:accept','dataDowncast','markMultiRangeDeletion','collaboration.channelId','stopListening','deletion:chain','_addSuggestionMarker','containsPosition','isAfter','locale','_addThreadToSuggestion','detach','isInsideObject','_descriptionFactory','addSuggestion','suggestionLoaded','discardSelectedSuggestions','suggestionChanged','addSuggestionData','then','authorName','removeComment','lowest','document','markMultiRangeBlockFormat','enableCommand','Users','creator','getFirstRange','default','_editor','formatBlock:chain','activeMarkers','PendingActions','_removeSuggestion','every','getAttribute','value','addRange','addClass','getChanges','addUser','updateSuggestion','createPositionBefore','dataToMarker','data-suggestion','accepted','formatInline:chain','root','acceptAllSuggestions','adapter','_cutOutSuggestionMarker','size','_joinSuggestions','removeMarker:suggestion:formatBlock','formatInline:join','track-changes-user-not-found','_findSuggestions','getIntersection','attributes','PENDING_ACTION_SUGGESTION','trackChanges.trackFormatChanges','upcast','update:suggestion','author','originalSuggestionId','formatBlock:discard','getChangedMarkers','_suggestionState','position','nodeAfter','oldRange','execute','getFirstMarker','createdAt','createPositionAfter','highest','isDocumentOperation','isIntersectingWithRange','listenTo','formatInline','addMarker:suggestion:formatBlock','updateMarker','isTouching','item','suggestionUnloaded','setTo','values','_enabledCommands','name','_joinWithAdjacentSuggestions','getUser','_getExternalAuthor','hasComments','buildSuggestion','notReady','filter','insertion','set','multi','move','next','isUndo','setAttribute','elementToElement','showSuggestionHighlights','getNearestSelectionRange','splitPosition','for','elementEnd','subType','markerReady','documentSelection','never','formatBlock:','options','define','isAtEnd','formatInline:accept','has','_handleNewSuggestionMarker','rootName','conversion','writer','deletion:discard','model','acceptSuggestion','dataReady','applyOperation','addComment','_refreshSuggestionsChain','isRemovable','insert','backward','ck-suggestion-marker-','discard','removeMarkers','low','_setSuggestionData','$textProxy','removeMarker','isInContent','marker-count','isBefore','_getAuthorFromId','fromCharCode','_mergeNestedSuggestions','external:','_updateSuggestionData','insertion:chain','getDifference','includes','clone','markerToData','getSuggestions','trackChanges','normal','head','unbind'];(function(_0x3bc1d1,_0x5b30cc){const _0x3b3a16=function(_0x2df66f){while(--_0x2df66f){_0x3bc1d1['push'](_0x3bc1d1['shift']());}};_0x3b3a16(++_0x5b30cc);}(_0x5b30,0x15f));const _0x3b3a=function(_0x3bc1d1,_0x5b30cc){_0x3bc1d1=_0x3bc1d1-0x0;let _0x3b3a16=_0x5b30[_0x3bc1d1];return _0x3b3a16;};import{Plugin as _0x5a8a15,PendingActions as _0x5d29cd}from'ckeditor5/src/core';import{LiveRange as _0x541e31}from'ckeditor5/src/engine';import{CKEditorError as _0x351a30,uid as _0x562252,priorities as _0x4c7313,logWarning as _0x57dcef}from'ckeditor5/src/utils';import{toWidget as _0x3caca7}from'ckeditor5/src/widget';import{Users as _0x7cca0d,hashObject as _0xe552ec}from'ckeditor5-collaboration/src/collaboration-core';import _0x41bdf1 from'./commands/trackchangescommand';import _0x1b56cc from'./commands/acceptsuggestioncommand';import _0x5df727 from'./commands/discardsuggestioncommand';import _0x8f7995 from'./commands/executeonallsuggestionscommand';import _0x5229a3 from'./commands/executeonselectedsuggestionscommand';import _0x38aeef from'./suggestion';import _0x1c62f3 from'./suggestiondescriptionfactory';import _0x59a691 from'./integrations/alignment';import _0xd715fd from'./integrations/basicstyles';import _0x623f1b from'./integrations/blockquote';import _0x383b8c from'./integrations/ckbox';import _0x574c61 from'./integrations/codeblock';import _0xa4143 from'./integrations/comments';import _0x54d6e4 from'./integrations/deletecommand';import _0x155c2b from'./integrations/documentlist';import _0x5523b3 from'./integrations/entercommand';import _0xd4bc03 from'./integrations/findandreplace';import _0x1792b6 from'./integrations/font';import _0x226d43 from'./integrations/formatpainter';import _0x2bfde8 from'./integrations/heading';import _0x5d8156 from'./integrations/highlight';import _0x46406d from'./integrations/horizontalline';import _0x1040dc from'./integrations/htmlembed';import _0x233ce3 from'./integrations/image';import _0x975268 from'./integrations/imagereplace';import _0x20fd50 from'./integrations/importword';import _0x298950 from'./integrations/indent';import _0x3656a9 from'./integrations/inputcommand';import _0x4946df from'./integrations/link';import _0x247e30 from'./integrations/list';import _0x4df5dd from'./integrations/listproperties';import _0x2753a6 from'./integrations/mediaembed';import _0x1ee22b from'./integrations/mention';import _0x59a3bc from'./integrations/pagebreak';import _0x52d947 from'./integrations/paragraph';import _0x4e27ac from'./integrations/removeformat';import _0x5158f0 from'./integrations/restrictededitingmode';import _0x5eea33 from'./integrations/shiftentercommand';import _0x55b104 from'./integrations/standardeditingmode';import _0x534305 from'./integrations/style';import _0x24e5ae from'./integrations/table';import _0x4a5b1b from'./integrations/tablemergesplit';import _0x5505f4 from'./integrations/tableheadings';import _0x476fb3 from'./integrations/tableclipboard';import _0x282a41 from'./integrations/tablecolumnresize';import _0x5f4397 from'./integrations/template';import _0x2fc20e from'./integrations/tableofcontents';import _0x4bf7cf from'./integrations/title';import _0x53f492 from'./integrations/undo';import{getTranslation as _0x1c5b1c}from'./utils/common-translations';import _0x3fc06a from'./integrations/tablecaption';import _0x284672 from'./integrations/documentlistproperties';import _0x466b74 from'./integrations/tableproperties';export default class p extends _0x5a8a15{static get['requires'](){return[_0x3b3a('0x5e'),_0x7cca0d,_0x5d29cd,_0x59a691,_0xd715fd,_0x623f1b,_0x383b8c,_0x574c61,_0xa4143,_0x54d6e4,_0x155c2b,_0x284672,_0x5523b3,_0xd4bc03,_0x1792b6,_0x226d43,_0x2bfde8,_0x5d8156,_0x46406d,_0x1040dc,_0x233ce3,_0x975268,_0x20fd50,_0x298950,_0x3656a9,_0x4946df,_0x247e30,_0x4df5dd,_0x2753a6,_0x1ee22b,_0x59a3bc,_0x52d947,_0x4e27ac,_0x5158f0,_0x5eea33,_0x55b104,_0x534305,_0x24e5ae,_0x4a5b1b,_0x5505f4,_0x3fc06a,_0x476fb3,_0x282a41,_0x2fc20e,_0x466b74,_0x5f4397,_0x4bf7cf,_0x53f492];}static get[_0x3b3a('0x2a')](){return _0x3b3a('0x45');}constructor(_0x10855e){function _0x565a77(_0xb8f1db){return _0xb8f1db[_0x3b3a('0xb')](_0x154061=>String[_0x3b3a('0x119')](_0x154061))['join']('');}super(_0x10855e),this[_0x3b3a('0xea')](_0x3b3a('0xa8'),[]),this['on'](_0x3b3a('0x13f'),(_0x1adf8b,_0x31ce92,_0x293071,_0x4238e6)=>{this[_0x3b3a('0x75')][_0x3b3a('0x1a')](()=>{for(const _0x7e48ad of[..._0x4238e6,..._0x293071])this['_model'][_0x3b3a('0x137')]['has'](_0x7e48ad)&&_0x10855e[_0x3b3a('0x60')]['reconvertMarker'](_0x7e48ad);});}),this[_0x3b3a('0x95')]=new _0x1c62f3(this[_0x3b3a('0x2f')][_0x3b3a('0x105')][_0x3b3a('0x77')],this[_0x3b3a('0x2f')][_0x3b3a('0x91')]),this['_adapter']=null,this[_0x3b3a('0x3d')]=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x3b3a('0x3c')]=_0x10855e[_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0x5e')),this[_0x3b3a('0xe0')]=new Set(),this[_0x3b3a('0x75')]=this[_0x3b3a('0x2f')][_0x3b3a('0x105')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x10855e[_0x3b3a('0x86')][_0x3b3a('0xfc')](_0x3b3a('0xc5'),_0x3b3a('0xa5')),this[_0x3b3a('0x87')]=_0x10855e[_0x3b3a('0x86')][_0x3b3a('0x13a')](_0x3b3a('0xc5')),_0x10855e[_0x3b3a('0x86')][_0x3b3a('0xfc')](_0x3b3a('0x127'),!0x0),this[_0x3b3a('0x11a')]=_0x10855e['config'][_0x3b3a('0x13a')]('trackChanges.mergeNestedSuggestions'),this[_0x3b3a('0x28')]=new _0x41bdf1(_0x10855e,this[_0x3b3a('0xe0')]),this[_0x565a77([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x565a77([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x38]);}[_0x3b3a('0x67')](){const _0x2c0938=this[_0x3b3a('0x2f')];_0x2c0938['conversion']['for'](_0x3b3a('0x12a'))['markerToHighlight']({'model':_0x3b3a('0x65'),'view':_0x3da648=>{const {id:_0x3f4db9,type:_0xe2be87}=this[_0x3b3a('0xe')](_0x3da648[_0x3b3a('0x79')]),_0x807f5a=['ck-suggestion-marker',_0x3b3a('0x10e')+_0xe2be87];let _0x2bc137=0xbb8;return this[_0x3b3a('0xa8')][_0x3b3a('0x11f')](_0x3da648[_0x3b3a('0x79')])&&(_0x807f5a[_0x3b3a('0x4e')](_0x3b3a('0x3b')),_0x2bc137=0xbc2),_0x3b3a('0x30')==_0xe2be87&&(_0x2bc137+=0x5),{'classes':_0x807f5a,'attributes':{'data-suggestion':_0x3f4db9},'priority':_0x2bc137};}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))['add'](_0xe45712=>{_0xe45712['on'](_0x3b3a('0x4a'),(_0x2fc242,_0x7039e8,_0x1c3155)=>{if(!_0x1c3155['options'][_0x3b3a('0xf1')])return;const _0x5070ed=_0x7039e8['item'];if(!_0x5070ed)return;const _0x59ce2b=_0x1c3155[_0x3b3a('0x15')][_0x3b3a('0x36')](_0x5070ed);_0x2c0938['model']['schema'][_0x3b3a('0x37')](_0x5070ed)&&_0x59ce2b&&!_0x59ce2b[_0x3b3a('0x69')]('widget')&&_0x59ce2b['is']('containerElement')&&_0x3caca7(_0x59ce2b,_0x1c3155['writer']);},{'priority':'high'});}),_0x2c0938[_0x3b3a('0x102')]['for']('dataDowncast')[_0x3b3a('0x76')]({'model':_0x3b3a('0x65'),'view':(_0x4fc3bd,_0x5004b2)=>{if(!_0x5004b2[_0x3b3a('0xfb')][_0x3b3a('0xf1')])return null;const {type:_0x9567a}=this[_0x3b3a('0xe')](_0x4fc3bd['markerName']);return{'classes':[_0x3b3a('0x46'),_0x3b3a('0x10e')+_0x9567a],'priority':0xbb8};}});const _0x1e244c=({showActiveMarkers:_0x40e916=!0x0}={})=>(_0xf28b4e,_0x3c82c0,_0x2234a2)=>{if(!_0x3c82c0[_0x3b3a('0xdc')])return;if(_0x3c82c0[_0x3b3a('0xdc')]['is'](_0x3b3a('0x51')))return void _0x2234a2['consumable'][_0x3b3a('0xf')](_0x3c82c0[_0x3b3a('0xdc')],_0xf28b4e[_0x3b3a('0xe1')]);const _0x57c2b8=_0x2234a2[_0x3b3a('0x15')][_0x3b3a('0x36')](_0x3c82c0['item']);if(!(_0x3c82c0[_0x3b3a('0xdc')]['is']('element')&&_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')][_0x3b3a('0x47')](_0x3c82c0['item'])&&!_0x57c2b8[_0x3b3a('0x69')](_0x3b3a('0x82'))))return;const {id:_0x5f45a3}=this[_0x3b3a('0xe')](_0x3c82c0['markerName']);_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xaf')]([_0x3b3a('0x46'),_0x3b3a('0x70')],_0x57c2b8),_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xef')](_0x3b3a('0xb5'),_0x5f45a3,_0x57c2b8),_0x2234a2['mapper'][_0x3b3a('0x78')](_0x57c2b8,_0x3c82c0[_0x3b3a('0x79')]),_0x40e916&&(this[_0x3b3a('0xa8')]['includes'](_0x3c82c0['markerName'])?_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xaf')](_0x3b3a('0x3b'),_0x57c2b8):_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0x27')](_0x3b3a('0x3b'),_0x57c2b8));for(const _0x309021 of _0x2c0938[_0x3b3a('0x105')]['createRangeIn'](_0x3c82c0[_0x3b3a('0xdc')])[_0x3b3a('0x5d')]())_0x2234a2[_0x3b3a('0x73')]['consume'](_0x309021,_0xf28b4e['name']);_0x2234a2[_0x3b3a('0x73')][_0x3b3a('0xf')](_0x3c82c0[_0x3b3a('0xdc')],_0xf28b4e[_0x3b3a('0xe1')]);};_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))[_0x3b3a('0x12b')](_0x11ad6f=>{_0x11ad6f['on'](_0x3b3a('0xd9'),(_0x39ae84,_0x557e36,_0x22bc36)=>{_0x22bc36[_0x3b3a('0xfb')][_0x3b3a('0xf1')]&&_0x1e244c({'showActiveMarkers':!0x1})(_0x39ae84,_0x557e36,_0x22bc36);},{'priority':_0x3b3a('0xd4')});}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))[_0x3b3a('0x121')]({'model':_0x3b3a('0x65'),'view':(_0xd1c904,_0x43b9a2)=>_0x43b9a2[_0x3b3a('0xfb')]['showSuggestionHighlights']?null:{'group':_0x3b3a('0x65'),'name':_0xd1c904[_0x3b3a('0x1e')](0xb)}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0xc6'))[_0x3b3a('0xf0')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x26dbc1,{writer:_0x5881b5})=>{let _0x325d85=_0x3b3a('0x52')+_0x26dbc1[_0x3b3a('0xac')](_0x3b3a('0x12e'))+':'+_0x26dbc1[_0x3b3a('0xac')]('id');return _0x26dbc1[_0x3b3a('0xac')](_0x3b3a('0x116'))&&(_0x325d85+=':'+_0x26dbc1['getAttribute'](_0x3b3a('0x116'))),_0x5881b5[_0x3b3a('0x2e')](_0x3b3a('0x34'),{'data-name':_0x325d85});}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')]('upcast')[_0x3b3a('0xb4')]({'view':_0x3b3a('0x65')}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x12a'))[_0x3b3a('0x12b')](_0x2e91a3=>{_0x2e91a3['on']('addMarker:suggestion:formatBlock',_0x1e244c(),{'priority':_0x3b3a('0x26')});}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x12a'))[_0x3b3a('0x12b')](_0x36ff6b=>{_0x36ff6b['on'](_0x3b3a('0xbe'),(_0xbee629,_0x34d702,_0x3d434c)=>{const _0x325caa=_0x3d434c[_0x3b3a('0x15')][_0x3b3a('0x4')](_0x34d702['markerName']);if(_0x325caa)for(const _0xca140f of _0x325caa)_0xca140f[_0x3b3a('0x69')](_0x3b3a('0x82'))||(_0x3d434c[_0x3b3a('0x103')]['removeClass']([_0x3b3a('0x46'),_0x3b3a('0x70'),_0x3b3a('0x3b')],_0xca140f),_0x3d434c[_0x3b3a('0x103')][_0x3b3a('0x12')](_0x3b3a('0xb5'),_0xca140f),_0x3d434c[_0x3b3a('0x15')][_0x3b3a('0xa')](_0xca140f,_0x34d702[_0x3b3a('0x79')]));},{'priority':_0x3b3a('0x26')});}),_0x2c0938['model']['document']['registerPostFixer'](_0x2b8b77=>{let _0x3d71af=!0x1;const _0x1d7147=Array[_0x3b3a('0x140')](_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')]['getChangedMarkers']()),_0x4d24e1=new Set();for(const {name:_0x75b5ad,data:_0x5e8e6f}of _0x1d7147){const {group:_0x27aa23,type:_0x5798b3,id:_0x366675}=this['_splitMarkerName'](_0x75b5ad);if('suggestion'!==_0x27aa23)continue;const _0x542821=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x366675);if(null!=_0x5e8e6f[_0x3b3a('0x132')]){'formatInline'==_0x5798b3&&(_0x3d71af=_0x3d71af||Mt(_0x5e8e6f[_0x3b3a('0x132')],_0x75b5ad,_0x2b8b77,_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')]));if(_0x5e8e6f[_0x3b3a('0x132')]['isCollapsed']||_0x3b3a('0x129')==_0x5e8e6f['newRange'][_0x3b3a('0xb8')][_0x3b3a('0x101')]||_0x3b3a('0x139')==_0x5798b3&&!Nt(_0x5e8e6f[_0x3b3a('0x132')])||_0x3b3a('0x30')==_0x5798b3&&!(!_t(_0x197f9d=_0x5e8e6f[_0x3b3a('0x132')])&&!function(_0x5d82fc){return _0x5d82fc[_0x3b3a('0x1f')][_0x3b3a('0x6c')]==_0x5d82fc['end'][_0x3b3a('0x19')]&&_0x5d82fc[_0x3b3a('0x1f')][_0x3b3a('0xfd')];}(_0x197f9d)))_0x2b8b77['removeMarker'](_0x75b5ad),_0x3d71af=!0x0;else{if(!_0x542821||!_0x542821[_0x3b3a('0x115')])continue;_0x4d24e1[_0x3b3a('0x12b')](_0x542821);}}}var _0x197f9d;return _0x4d24e1[_0x3b3a('0xbc')]>0x0&&(_0x3d71af=!!this['_joinWithAdjacentSuggestions'](_0x4d24e1)||_0x3d71af),_0x3d71af;}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')]['registerPostFixer'](_0x572d95=>{let _0x11afdb=!0x1;for(const _0x475ce1 of _0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')][_0x3b3a('0xb0')]()){if(_0x3b3a('0x10c')!=_0x475ce1[_0x3b3a('0xc')])continue;const _0x58b4f5=_0x475ce1[_0x3b3a('0xcd')][_0x3b3a('0x6a')](_0x475ce1['length']);if(_0x58b4f5['isAtEnd'])for(const _0x255ea7 of this['_suggestions'][_0x3b3a('0xdf')]()){if(_0x255ea7[_0x3b3a('0x5c')]||!_0x255ea7[_0x3b3a('0x115')])continue;if(_0x3b3a('0x139')!=_0x255ea7[_0x3b3a('0xc')])continue;const _0x3a2775=_0x255ea7[_0x3b3a('0xa4')]();if(_0x3a2775[_0x3b3a('0x1f')][_0x3b3a('0x6c')]!=_0x3a2775[_0x3b3a('0x4d')][_0x3b3a('0x6c')]&&_0x3a2775[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x475ce1[_0x3b3a('0xcd')])){const _0x42d65c=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x3a2775[_0x3b3a('0x1f')],_0x58b4f5);_0x572d95[_0x3b3a('0xda')](_0x255ea7[_0x3b3a('0xd1')](),{'range':_0x42d65c}),_0x11afdb=!0x0;}}}return _0x11afdb;}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x137')]['on'](_0x3b3a('0xc7'),(_0x1a0466,_0x55a179,_0x2f7de6)=>{if(null==_0x2f7de6){const {id:_0x5d9987}=this[_0x3b3a('0xe')](_0x55a179[_0x3b3a('0xe1')]),_0x199761=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x5d9987);_0x199761&&_0x199761[_0x3b3a('0x31')](_0x55a179['name']);}}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')]['on'](_0x3b3a('0x3e'),()=>{const _0x5858e6=Array[_0x3b3a('0x140')](_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')][_0x3b3a('0xcb')]())[_0x3b3a('0xe8')](_0x279644=>_0x3b3a('0x65')===this[_0x3b3a('0xe')](_0x279644[_0x3b3a('0xe1')])[_0x3b3a('0x3')]);if(0x0===_0x5858e6[_0x3b3a('0x84')])return;_0x5858e6['sort']((_0x141538,_0x21cc8c)=>{const _0x1f1fc1=_0x141538[_0x3b3a('0x62')]['oldRange'],_0x4cc9b0=_0x21cc8c[_0x3b3a('0x62')]['oldRange'];return null===_0x1f1fc1&&null===_0x4cc9b0?0x0:null===_0x1f1fc1&&null!==_0x4cc9b0?-0x1:null!==_0x1f1fc1&&null===_0x4cc9b0?0x1:_0x1f1fc1['start'][_0x3b3a('0x117')](_0x4cc9b0['start'])?-0x1:0x1;});const _0xdae2b2=new Set(),_0x31f47b=new Set();for(const {name:_0x4520fd,data:_0x38e36e}of _0x5858e6){const {id:_0x9deda7}=this['_splitMarkerName'](_0x4520fd);if(null===_0x38e36e[_0x3b3a('0xcf')]){const _0x4ba167=this[_0x3b3a('0x100')](_0x4520fd);_0x31f47b[_0x3b3a('0x12b')](_0x4ba167);}else{const _0x536086=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x9deda7);null!==_0x38e36e[_0x3b3a('0x132')]||_0x536086[_0x3b3a('0x115')]?(_0xdae2b2['add'](_0x536086[_0x3b3a('0x125')]),_0x31f47b['add'](_0x536086)):this[_0x3b3a('0xaa')](_0x536086);}}_0x31f47b[_0x3b3a('0xbc')]>0x0&&this[_0x3b3a('0x10a')](_0x31f47b);for(const _0x4b8cbd of _0xdae2b2)this[_0x3b3a('0x7')](_0x3b3a('0x99'),_0x4b8cbd);}),_0x2c0938[_0x3b3a('0x105')]['on'](_0x3b3a('0x108'),(_0x1adbd1,_0x4b83a2)=>{const _0x339e59=_0x4b83a2[0x0];if(!this[_0x3b3a('0x7b')][_0x3b3a('0xbc')])return;if(!_0x339e59[_0x3b3a('0xd5')])return;if(_0x339e59[_0x3b3a('0x3a')][_0x3b3a('0xee')]||!_0x339e59[_0x3b3a('0x3a')][_0x3b3a('0x81')])return;let _0x582883,_0x1cddc0;switch(_0x339e59[_0x3b3a('0xc')]){case'insert':_0x582883=_0x2c0938[_0x3b3a('0x105')]['createPositionAt'](_0x339e59[_0x3b3a('0xcd')]),_0x1cddc0=_0x582883[_0x3b3a('0x6a')](_0x339e59[_0x3b3a('0x64')]);break;case _0x3b3a('0x29'):_0x582883=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59[_0x3b3a('0xf3')]),_0x1cddc0=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59['moveTargetPosition']);break;case _0x3b3a('0xec'):_0x582883=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59['targetPosition']),_0x1cddc0=_0x582883['getShiftedBy'](_0x339e59[_0x3b3a('0x64')]);break;default:return;}const _0x26fa5a=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x582883,_0x1cddc0);_0x2c0938['model'][_0x3b3a('0x1a')](()=>{for(const {suggestion:_0x547120,meta:_0xb711f6}of this[_0x3b3a('0xc1')](_0x26fa5a)){if(_0x547120[_0x3b3a('0x5c')])continue;if(_0x3b3a('0xd8')==_0x547120[_0x3b3a('0xc')])continue;const _0x3324f1=_0x547120[_0x3b3a('0x62')]&&_0x547120['data'][_0x3b3a('0x6f')];(_0x3b3a('0x139')!=_0x547120[_0x3b3a('0xc')]||_0x3b3a('0x29')==_0x339e59['type']&&!_0x3324f1)&&(_0xb711f6['containsRangeInObject']||_0x3b3a('0xe9')==_0x547120[_0x3b3a('0xc')]&&_0xb711f6[_0x3b3a('0x4b')]||_0x547120['getFirstRange']()[_0x3b3a('0x5')](_0x26fa5a)&&this['_breakSuggestionMarker'](_0x547120,_0x582883,_0x1cddc0));}});},{'priority':_0x3b3a('0x9e')}),_0x2c0938['model']['on'](_0x3b3a('0x0'),(_0x51e84c,_0x2bd6e2)=>{const _0x29b5b4=_0x2bd6e2[0x0],_0x2021f2=_0x2bd6e2[0x1];if(_0x2021f2&&_0x2021f2[_0x3b3a('0x41')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3b3a('0x28')]['value'])return;if(_0x29b5b4[_0x3b3a('0x135')])return;const _0x3381db=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')],{start:_0x45f245,end:_0x47db8e}=_0x29b5b4[_0x3b3a('0xa4')](),_0xe7fb0c=_0x45f245[_0x3b3a('0xce')]&&_0x3381db['isLimit'](_0x45f245[_0x3b3a('0xce')])?null:_0x3381db[_0x3b3a('0xf2')](_0x45f245,_0x3b3a('0x13c')),_0x2884d8=_0x47db8e[_0x3b3a('0x19')]&&_0x3381db[_0x3b3a('0x24')](_0x47db8e[_0x3b3a('0x19')])?null:_0x3381db['getNearestSelectionRange'](_0x47db8e,_0x3b3a('0x10d')),_0x28b94e=_0x2c0938['model']['createRange'](_0xe7fb0c?_0xe7fb0c[_0x3b3a('0x1f')]:_0x45f245,_0x2884d8?_0x2884d8[_0x3b3a('0x4d')]:_0x47db8e);_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x1a')](_0x5142c3=>{this['markDeletion'](_0x28b94e);const _0x142af1=_0x2c0938['model'][_0x3b3a('0x77')]['getNearestSelectionRange'](_0x28b94e['start']);_0x29b5b4['is'](_0x3b3a('0xf8'))?_0x5142c3['setSelection'](_0x142af1):_0x29b5b4[_0x3b3a('0xde')](_0x142af1);}),_0x51e84c['stop']();},{'priority':_0x4c7313[_0x3b3a('0x124')]+0xa}),_0x2c0938[_0x3b3a('0x105')]['on'](_0x3b3a('0x18'),(_0x12368b,_0x3eaa72)=>{const _0x273309=_0x3eaa72[_0x3eaa72[_0x3b3a('0x84')]-0x1];_0x273309&&_0x273309[_0x3b3a('0x41')]||this['_isForcedDefaultExecutionBlock']||this[_0x3b3a('0x28')][_0x3b3a('0xad')]&&(_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x1a')](()=>{let _0x41f23f=_0x2c0938['model'][_0x3b3a('0x18')](_0x3eaa72[0x0],_0x3eaa72[0x1],_0x3eaa72[0x2],{'forceDefaultExecution':!0x0});if(!_0x41f23f)return;_0x12368b[_0x3b3a('0x56')]=_0x41f23f[_0x3b3a('0x120')]();const _0x54cab8=_0x41f23f[_0x3b3a('0x4d')][_0x3b3a('0x19')],_0x40e277=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')];_0x54cab8&&_0x40e277[_0x3b3a('0x47')](_0x54cab8)&&!_0x40e277['isObject'](_0x54cab8)&&(_0x41f23f=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x41f23f[_0x3b3a('0x1f')],_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x54cab8,'end'))),this[_0x3b3a('0x48')](_0x41f23f);}),_0x12368b['stop']());},{'priority':_0x3b3a('0x26')}),this[_0x3b3a('0x2f')][_0x3b3a('0x40')]['add'](_0x3b3a('0x123'),this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a4337=new _0x1b56cc(_0x2c0938,this[_0x3b3a('0x7b')]);_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0x106'),_0x5a4337),this[_0x3b3a('0xa1')](_0x3b3a('0x106'));const _0x18bb06=new _0x5df727(_0x2c0938,this[_0x3b3a('0x7b')]);_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')]('discardSuggestion',_0x18bb06),this[_0x3b3a('0xa1')]('discardSuggestion'),_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0xb9'),new _0x8f7995(_0x2c0938,_0x5a4337,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0xb9')),_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0x85'),new _0x8f7995(_0x2c0938,_0x18bb06,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x85')),_0x2c0938['commands'][_0x3b3a('0x12b')]('acceptSelectedSuggestions',new _0x5229a3(_0x2c0938,_0x5a4337,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x42')),_0x2c0938['commands'][_0x3b3a('0x12b')](_0x3b3a('0x98'),new _0x5229a3(_0x2c0938,_0x18bb06,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x98'));const _0x5b5fcb=_0x2c0938[_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0x5e'));this[_0x3b3a('0xd7')](_0x5b5fcb,_0x3b3a('0x109'),(_0x4f77be,{threadId:_0x30835b})=>{const _0x30dc19=this['_suggestions'][_0x3b3a('0x13a')](_0x30835b);_0x30dc19&&_0x30dc19[_0x3b3a('0x38')]&&0x1===_0x30dc19[_0x3b3a('0x38')][_0x3b3a('0x84')]&&this[_0x3b3a('0x11c')](_0x30835b,{'hasComments':!0x0});},{'priority':'low'}),this[_0x3b3a('0xd7')](_0x5b5fcb,_0x3b3a('0x9d'),(_0x157ca7,{threadId:_0x2da3be})=>{const _0x451d36=this['_suggestions'][_0x3b3a('0x13a')](_0x2da3be);_0x451d36&&_0x451d36['commentThread']&&!_0x451d36[_0x3b3a('0x38')][_0x3b3a('0x84')]&&this['_updateSuggestionData'](_0x2da3be,{'hasComments':!0x1});},{'priority':_0x3b3a('0x111')});}set['adapter'](_0x4184cb){if(this['_adapter'])throw new _0x351a30('track-changes-adapter-already-set',this);this['_adapter']=_0x4184cb;}get[_0x3b3a('0xba')](){return this[_0x3b3a('0x68')];}[_0x3b3a('0x122')]({skipNotAttached:_0x4405b0=!0x1,toJSON:_0x2bb5af=!0x1}={}){const _0x479e21=[];for(const _0x5b33ad of this[_0x3b3a('0x7b')][_0x3b3a('0xdf')]())_0x4405b0&&!_0x5b33ad[_0x3b3a('0x115')]||_0x479e21[_0x3b3a('0x4e')](_0x5b33ad);return _0x2bb5af?_0x479e21[_0x3b3a('0xb')](_0x563689=>_0x563689[_0x3b3a('0x7d')]()):_0x479e21;}[_0x3b3a('0x35')](_0x3d1f5b){const _0x30f087=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x3d1f5b);if(!_0x30f087)throw new _0x351a30(_0x3b3a('0x2d'),this);return _0x30f087;}['hasSuggestion'](_0x146cb2){return this[_0x3b3a('0x7b')][_0x3b3a('0xff')](_0x146cb2);}[_0x3b3a('0x9a')](_0x325ede){const {authorId:_0x3380ed,id:_0x16dc36,attributes:_0x33cfdf}=_0x325ede,[_0x234cb9,_0x2b8896]=_0x325ede['type']['split'](':'),_0x33c2ed=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x16dc36)||this['_createSuggestion'](_0x234cb9,_0x2b8896,_0x16dc36,_0x3380ed,_0x33cfdf);if(this['_addThreadToSuggestion'](_0x33c2ed),this[_0x3b3a('0x53')](_0x33c2ed,_0x234cb9,_0x2b8896||null,_0x3380ed),_0x33c2ed['createdAt']=_0x325ede['createdAt'],_0x33cfdf&&_0x33cfdf[_0x3b3a('0x7a')]){const _0xcd008=_0x33cfdf[_0x3b3a('0x7a')],_0x2bfe01=this['_getExternalAuthor'](_0xcd008[_0x3b3a('0x9c')]);_0x33c2ed['authoredAt']=_0xcd008['createdAt'],_0x33c2ed[_0x3b3a('0xc8')]=_0x2bfe01,_0x33c2ed[_0x3b3a('0x32')]=!0x0;}else _0x33c2ed[_0x3b3a('0x136')]=_0x325ede[_0x3b3a('0xd2')];switch(_0x325ede[_0x3b3a('0x62')]&&(_0x33c2ed[_0x3b3a('0x62')]=_0x325ede[_0x3b3a('0x62')]),_0x325ede['attributes']&&(_0x33c2ed[_0x3b3a('0xc3')]=_0x325ede[_0x3b3a('0xc3')]),this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0x96')]||(_0x33c2ed[_0x3b3a('0x44')]=!0x0),this[_0x3b3a('0xcc')]['get'](_0x33c2ed)){case _0x3b3a('0xe7'):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,'dataReady');break;case _0x3b3a('0xf7'):_0x33c2ed[_0x3b3a('0x115')]?(this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,_0x3b3a('0x1c')),this['fire']('suggestionLoaded',_0x33c2ed)):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,_0x3b3a('0x130'));}return _0x33c2ed;}[_0x3b3a('0x106')](_0x5dbe42){this[_0x3b3a('0x41')](()=>{this['editor'][_0x3b3a('0x105')]['change'](()=>{for(const _0x21bc40 of _0x5dbe42[_0x3b3a('0x3f')]())_0x21bc40[_0x3b3a('0x7f')]();});});}[_0x3b3a('0x9')](_0x278e82){this[_0x3b3a('0x41')](()=>{this['editor'][_0x3b3a('0x105')][_0x3b3a('0x1a')](()=>{for(const _0xdc0525 of _0x278e82['getAllAdjacentSuggestions']())_0xdc0525['discard']();});});}[_0x3b3a('0xa1')](_0x597127,_0x4c8357){const _0x1d1033=this[_0x3b3a('0x2f')][_0x3b3a('0x40')][_0x3b3a('0x13a')](_0x597127);if(!_0x1d1033)throw new _0x351a30(_0x3b3a('0x134'),this,{'commandName':_0x597127});this[_0x3b3a('0xe0')]['add'](_0x1d1033),_0x4c8357&&_0x1d1033['on'](_0x3b3a('0xd0'),(_0x4160d4,_0x1c9441)=>{this[_0x3b3a('0x28')][_0x3b3a('0xad')]&&(this[_0x3b3a('0x141')]||_0x1c9441[_0x3b3a('0x84')]>0x0&&_0x1c9441[_0x1c9441[_0x3b3a('0x84')]-0x1]&&_0x1c9441[_0x1c9441[_0x3b3a('0x84')]-0x1][_0x3b3a('0x41')]||(_0x4c8357((..._0x299ad7)=>_0x1d1033[_0x3b3a('0xd0')](..._0x299ad7,{'forceDefaultExecution':!0x0}),..._0x1c9441),_0x4160d4[_0x3b3a('0x13d')]()));},{'priority':'high'});}[_0x3b3a('0x41')](_0x2b5e5d){let _0x9c3cff,_0x5de211;const _0x42a813=this[_0x3b3a('0x141')];this[_0x3b3a('0x141')]=!0x0;try{_0x9c3cff=_0x2b5e5d();}catch(_0x22c178){_0x5de211=_0x22c178;}return _0x42a813||(this[_0x3b3a('0x141')]=!0x1),_0x5de211&&_0x351a30['rethrowUnexpectedError'](_0x5de211,this),_0x9c3cff;}['markInsertion'](_0x90ebf9,_0x429369=null,_0x1e7bde={}){if(_0x90ebf9[_0x3b3a('0x135')])return null;const _0x28b9da=this['editor'][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'];for(const {suggestion:_0x57d8c7,meta:_0xb8fabd}of this[_0x3b3a('0xc1')](_0x90ebf9,_0x3b3a('0xe9')))if(_0xb8fabd[_0x3b3a('0x4b')]){if(!_0xb8fabd[_0x3b3a('0x5f')]){if(!this[_0x3b3a('0x11a')]&&_0xb8fabd[_0x3b3a('0x74')])continue;return _0x57d8c7;}if(_0x429369==_0x57d8c7[_0x3b3a('0xf6')]){const _0x4acceb=_0x57d8c7[_0x3b3a('0xa4')]();return _0x4acceb['start'][_0x3b3a('0x25')](_0x90ebf9[_0x3b3a('0x4d')])?this[_0x3b3a('0x17')](_0x57d8c7,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x90ebf9['start'],_0x4acceb[_0x3b3a('0x4d')])):this[_0x3b3a('0x17')](_0x57d8c7,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x4acceb[_0x3b3a('0x1f')],_0x90ebf9[_0x3b3a('0x4d')])),_0x57d8c7;}}const _0x485e9c=_0x562252(),_0x3de3b7=_0x28b9da['id'],_0x4378aa=_0x429369?_0x3b3a('0x23')+_0x429369:_0x3b3a('0xe9'),_0x34fe58=this[_0x3b3a('0x112')]({'id':_0x485e9c,'type':_0x4378aa,'createdAt':new Date(),'authorId':_0x3de3b7,'attributes':_0x1e7bde});return this[_0x3b3a('0x8e')](_0x4378aa,_0x485e9c,_0x3de3b7,_0x90ebf9),_0x34fe58;}[_0x3b3a('0x13')](_0x1478c6,_0x300ac4=_0x3b3a('0xeb'),_0x50398b={}){const _0x2e0171=this[_0x3b3a('0x2f')]['plugins'][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x3869ac=this[_0x3b3a('0x3d')]['getSuggestionCallback'](_0x3b3a('0xe9'),_0x300ac4,_0x3b3a('0x59'));for(const _0x48953f of this['getSuggestions']())if(_0x48953f[_0x3b3a('0xc8')]['id']==_0x2e0171['id']&&_0x3b3a('0xe9')==_0x48953f[_0x3b3a('0xc')]&&_0x48953f['subType']==_0x300ac4&&(_0x3869ac(_0x48953f['getRanges'](),_0x1478c6)||_0x3869ac(_0x1478c6,_0x48953f['getRanges']()))){for(const _0x4e3c7a of _0x1478c6)_0x48953f['addRange'](_0x4e3c7a);return _0x48953f;}if(this[_0x3b3a('0x11a')])for(const _0x1a3198 of _0x1478c6)for(const {suggestion:_0xf75895,meta:_0x555747}of this[_0x3b3a('0xc1')](_0x1a3198,_0x3b3a('0xe9'))){if(!_0x555747[_0x3b3a('0x4b')])continue;let _0x3163e4=!0x0;for(const _0x241e1c of _0xf75895[_0x3b3a('0x5b')]())for(const _0x3f3911 of _0x1478c6)if(!_0x241e1c['containsRange'](_0x3f3911)){_0x3163e4=!0x1;break;}if(_0x3163e4)return _0xf75895;}const _0x25529b=_0x562252(),_0x2fde60=_0x2e0171['id'],_0x2c78d6='insertion:'+_0x300ac4,_0x1dd0a5=this[_0x3b3a('0x112')]({'id':_0x25529b,'type':_0x2c78d6,'createdAt':new Date(),'authorId':_0x2fde60,'attributes':_0x50398b});for(const _0x95f008 of _0x1478c6)this[_0x3b3a('0x8e')](_0x2c78d6,_0x25529b,_0x2fde60,_0x95f008,_0x38aeef[_0x3b3a('0x12d')]());return _0x1dd0a5;}[_0x3b3a('0x80')](_0xb355b2,_0xe1aa8b,_0x408933=null,_0x269aac={}){if(_0x408933=_0x408933||$t(_0xe1aa8b),_0xb355b2[_0x3b3a('0x135')])return null;if('never'===this[_0x3b3a('0x87')]){const _0x4e917a=this['_suggestionFactory'][_0x3b3a('0x131')](_0x3b3a('0xd8'),_0x408933,'accept');return this['forceDefaultExecution'](()=>_0x4e917a([_0xb355b2],_0xe1aa8b,_0x269aac)),null;}const _0x236019=this['editor'][_0x3b3a('0x1')][_0x3b3a('0x13a')]('Users')['me'],_0x8566d3=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x2867b7,meta:_0x337d60}of this[_0x3b3a('0xc1')](_0xb355b2,_0x3b3a('0xe9')))_0x337d60['isOwn']&&!_0x337d60[_0x3b3a('0x94')]&&_0x8566d3['push'](..._0x2867b7[_0x3b3a('0x5b')]());const _0x368fb3=function(_0x1d8b13,_0x1872e4){const _0x3eb42c=[];for(const _0x22406a of _0x1872e4){const _0x5ae381=_0x1d8b13[_0x3b3a('0xc2')](_0x22406a);_0x5ae381&&_0x3eb42c['push'](_0x5ae381);}return _0x3eb42c;}(_0xb355b2,_0x8566d3),_0x34a7da=function(_0x4d3817,_0x4158f9){const _0xd80c71=[_0x4d3817];for(const _0x181a6c of _0x4158f9){let _0x2ff8a2=0x0;for(;_0x2ff8a2<_0xd80c71['length'];){const _0xab17bb=_0xd80c71[_0x2ff8a2][_0x3b3a('0x11e')](_0x181a6c);_0xd80c71['splice'](_0x2ff8a2,0x1,..._0xab17bb),_0x2ff8a2+=_0xab17bb['length'];}}return _0xd80c71;}(_0xb355b2,_0x8566d3);_0x368fb3[_0x3b3a('0x84')]&&this[_0x3b3a('0x75')][_0x3b3a('0x1a')](()=>{for(const _0x17daf8 of _0x368fb3){const _0x47e691=this['_suggestionFactory']['getSuggestionCallback'](_0x3b3a('0xd8'),_0x408933,_0x3b3a('0x7f'));this[_0x3b3a('0x41')](()=>_0x47e691([_0x17daf8],_0xe1aa8b,_0x269aac));}});for(const _0x17e069 of _0x34a7da){let _0x64bd9f=null,_0x141334=_0x17e069['start'],_0x1e56b3=_0x17e069[_0x3b3a('0x4d')];for(const {suggestion:_0x3d015c,meta:_0x395ac7}of this['_findSuggestions'](_0x17e069,_0x3b3a('0xd8'))){if(!_0x395ac7[_0x3b3a('0x4b')])continue;if(_0x3d015c[_0x3b3a('0xf6')]!=_0x408933)continue;const _0x32509f=_0x3d015c['getFirstRange']();if(_0x32509f[_0x3b3a('0x5')](_0x17e069,!0x0))return null;_0x141334=_0x141334[_0x3b3a('0x117')](_0x32509f[_0x3b3a('0x1f')])?_0x141334:_0x32509f[_0x3b3a('0x1f')],_0x1e56b3=_0x1e56b3[_0x3b3a('0x90')](_0x32509f[_0x3b3a('0x4d')])?_0x1e56b3:_0x32509f[_0x3b3a('0x4d')],_0x64bd9f?_0x32509f[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x64bd9f[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x64bd9f['removeMarkers'](),_0x64bd9f=_0x3d015c):_0x3d015c[_0x3b3a('0x110')]():_0x64bd9f=_0x3d015c;}const _0x182a14=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x141334,_0x1e56b3);if(_0x64bd9f)this[_0x3b3a('0x17')](_0x64bd9f,_0x182a14);else{const _0x114a03=_0x562252(),_0x2e267c=_0x236019['id'];this[_0x3b3a('0x112')]({'id':_0x114a03,'type':'formatInline:'+_0x408933,'data':_0xe1aa8b,'createdAt':new Date(),'authorId':_0x2e267c,'attributes':_0x269aac}),this['_addSuggestionMarker'](_0x3b3a('0xd')+_0x408933,_0x114a03,_0x2e267c,_0x182a14);}}return null;}[_0x3b3a('0x54')](_0x17deb8,_0xebecf3,_0x4b42ef=[],_0x18a27f=null,_0xac7ded={}){_0xebecf3['formatGroupId']||(_0xebecf3[_0x3b3a('0x10')]=_0xebecf3[_0x3b3a('0x138')]),_0xebecf3[_0x3b3a('0x6f')]=_0x17deb8['is'](_0x3b3a('0x83')),_0x18a27f=_0x18a27f||$t(_0xebecf3);const _0x2b8f7b=_0x4b42ef[_0x3b3a('0xb')](_0x48f7f6=>Rt(_0x48f7f6,this['_model'])),_0x1a0183=_0x17deb8['is']('range')?_0x17deb8:Rt(_0x17deb8,this[_0x3b3a('0x75')]);if(_0x3b3a('0xf9')===this['_trackFormatChanges']){const _0x361087=this['_suggestionFactory'][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x18a27f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x361087([_0x1a0183],_0xebecf3,_0xac7ded)),null;}_0x2b8f7b[_0x3b3a('0x4e')](_0x1a0183);let _0x169ccb=!0x0;for(const _0x1e9e40 of _0x2b8f7b)if(!this[_0x3b3a('0x33')](_0x1e9e40)){_0x169ccb=!0x1;break;}if(_0x169ccb&&'always'!==this['_trackFormatChanges']){const _0xe5929e=this['_suggestionFactory'][_0x3b3a('0x131')]('formatBlock',_0x18a27f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0xe5929e([_0x1a0183],_0xebecf3,_0xac7ded)),null;}let _0x49e905=null,_0x10cb77=_0x1a0183['start'],_0x30cddd=_0x1a0183[_0x3b3a('0x4d')];for(const {suggestion:_0x147c51,meta:_0xd8b1a4}of this['_findSuggestions'](_0x1a0183,_0x3b3a('0x139'))){if(!_0xd8b1a4['isOwn']||_0xd8b1a4[_0x3b3a('0x5f')]||_0xd8b1a4[_0x3b3a('0x74')]||_0xd8b1a4[_0x3b3a('0x94')])continue;if(_0x147c51[_0x3b3a('0x62')][_0x3b3a('0x10')]!=_0xebecf3[_0x3b3a('0x10')])continue;const _0xa7508=_0x147c51[_0x3b3a('0xa4')]();if(_0x147c51[_0x3b3a('0xf6')]==_0x18a27f){if(_0xa7508[_0x3b3a('0x5')](_0x1a0183,!0x0))return null;_0x10cb77=_0x10cb77[_0x3b3a('0x117')](_0xa7508[_0x3b3a('0x1f')])?_0x10cb77:_0xa7508[_0x3b3a('0x1f')],_0x30cddd=_0x30cddd[_0x3b3a('0x90')](_0xa7508[_0x3b3a('0x4d')])?_0x30cddd:_0xa7508[_0x3b3a('0x4d')],_0x49e905?_0xa7508[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x49e905[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x49e905['removeMarkers'](),_0x49e905=_0x147c51):_0x147c51[_0x3b3a('0x110')]():_0x49e905=_0x147c51;}else{const _0x476e8d=_0x1a0183[_0x3b3a('0xc2')](_0xa7508);this[_0x3b3a('0xbb')](_0x147c51,_0x476e8d);}}const _0x2c772e=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x55dd93=_0x562252(),_0x3c579b=_0x2c772e['id'];if(_0x49e905)return this[_0x3b3a('0x17')](_0x49e905,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x10cb77,_0x30cddd)),_0x49e905;{const _0x376503=this[_0x3b3a('0x112')]({'id':_0x55dd93,'type':'formatBlock:'+_0x18a27f,'data':_0xebecf3,'createdAt':new Date(),'authorId':_0x3c579b,'attributes':_0xac7ded});return this[_0x3b3a('0x8e')]('formatBlock:'+_0x18a27f,_0x55dd93,_0x3c579b,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x10cb77,_0x30cddd)),_0x376503;}}[_0x3b3a('0xa0')](_0x56b0c1,_0x5c583a,_0x3ff59d=[],_0x56e023=null,_0x413dbb={}){_0x5c583a['formatGroupId']||(_0x5c583a[_0x3b3a('0x10')]=_0x5c583a['commandName']);const _0x4adc0c=_0x56b0c1[0x0];_0x5c583a[_0x3b3a('0x6f')]=_0x4adc0c['is'](_0x3b3a('0x83')),_0x56e023=_0x56e023||$t(_0x5c583a);const _0xf6ec9c=_0x3ff59d['map'](_0x101c91=>Rt(_0x101c91,this[_0x3b3a('0x75')])),_0x1f6f44=_0x4adc0c['is'](_0x3b3a('0x83'))?_0x56b0c1:_0x56b0c1[_0x3b3a('0xb')](_0x4d1bc0=>Rt(_0x4d1bc0,this['_model']));if(_0x3b3a('0xf9')===this[_0x3b3a('0x87')]){const _0x4cd059=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x56e023,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x4cd059(_0x1f6f44,_0x5c583a,_0x413dbb)),null;}_0xf6ec9c[_0x3b3a('0x4e')](..._0x1f6f44);let _0x25b697=!0x0;for(const _0x4605b3 of _0xf6ec9c)if(!this[_0x3b3a('0x33')](_0x4605b3)){_0x25b697=!0x1;break;}if(_0x25b697&&'always'!==this['_trackFormatChanges']){const _0x3525b2=this['_suggestionFactory'][_0x3b3a('0x131')]('formatBlock',_0x56e023,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x3525b2(_0x1f6f44,_0x5c583a,_0x413dbb)),null;}const _0x18290b=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'];for(const _0x3faa6e of this[_0x3b3a('0x122')]()){if(_0x3faa6e[_0x3b3a('0xc8')]['id']!=_0x18290b['id'])continue;if('formatBlock'!=_0x3faa6e[_0x3b3a('0xc')]||_0x3faa6e[_0x3b3a('0x62')][_0x3b3a('0x10')]!=_0x5c583a[_0x3b3a('0x10')])continue;const _0x3a5f75=_0x3faa6e['subType']==_0x56e023;for(let _0xf9e2d3=0x0;_0xf9e2d3<_0x1f6f44[_0x3b3a('0x84')];_0xf9e2d3++){const _0x4a045a=_0x1f6f44[_0xf9e2d3];for(const _0x175401 of _0x3faa6e['getMarkers']()){const _0x37d475=_0x175401[_0x3b3a('0x58')]();if(_0x4a045a[_0x3b3a('0x25')](_0x37d475)){_0x3a5f75?(_0x1f6f44['splice'](_0xf9e2d3,0x1),_0xf9e2d3--):_0x3faa6e[_0x3b3a('0x114')](_0x175401[_0x3b3a('0xe1')]);break;}}}}if(0x0==_0x1f6f44[_0x3b3a('0x84')])return null;const _0x17489a=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x56e023,'join');for(const _0x34d53f of this['getSuggestions']())if(_0x34d53f[_0x3b3a('0xc8')]['id']==_0x18290b['id']&&_0x3b3a('0x139')==_0x34d53f[_0x3b3a('0xc')]&&_0x34d53f[_0x3b3a('0x62')][_0x3b3a('0x10')]==_0x5c583a['formatGroupId']&&_0x34d53f['subType']==_0x56e023&&(_0x17489a(_0x34d53f[_0x3b3a('0x5b')](),_0x1f6f44)||_0x17489a(_0x1f6f44,_0x34d53f[_0x3b3a('0x5b')]()))){for(const _0x4eebc1 of _0x1f6f44)_0x34d53f['addRange'](_0x4eebc1);return _0x34d53f;}const _0x42988c=_0x562252(),_0x5d6ca5=_0x18290b['id'],_0x329b64=_0x3b3a('0xfa')+_0x56e023,_0x477e2d=this[_0x3b3a('0x112')]({'id':_0x42988c,'type':_0x329b64,'data':_0x5c583a,'createdAt':new Date(),'authorId':_0x5d6ca5,'attributes':_0x413dbb});for(const _0x4b9eb0 of _0x1f6f44)this[_0x3b3a('0x8e')](_0x329b64,_0x42988c,_0x5d6ca5,_0x4b9eb0,_0x38aeef[_0x3b3a('0x12d')]());return _0x477e2d;}[_0x3b3a('0x21')](_0x5e380d,_0x1e717f=null,_0x19bbc6={}){if(_0x5e380d[_0x3b3a('0x135')])return null;const _0x2ce221=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0xcb9d36=new _0x541e31(_0x5e380d[_0x3b3a('0x1f')],_0x5e380d[_0x3b3a('0x4d')]);for(const {suggestion:_0x188faa,meta:_0x46f0ff}of this[_0x3b3a('0xc1')](_0xcb9d36,_0x3b3a('0xe9')))if(_0x46f0ff['isOwn']&&!_0x46f0ff[_0x3b3a('0x5f')]){if(_0x188faa['isMultiRange']){const _0x2de961=_0x188faa[_0x3b3a('0x5b')]()[_0x3b3a('0xe8')](_0x3ddef3=>_0x3b3a('0x129')!=_0x3ddef3[_0x3b3a('0xb8')][_0x3b3a('0x101')]);_0x2de961[_0x3b3a('0xab')](_0x5c990f=>_0xcb9d36[_0x3b3a('0x5')](_0x5c990f,!0x0))&&_0x188faa[_0x3b3a('0x10f')]();if(_0x2de961['some'](_0x19d4b5=>_0x19d4b5[_0x3b3a('0x5')](_0xcb9d36,!0x0))){const _0x6b9f66=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x1e717f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x6b9f66([_0xcb9d36],null,_0x19bbc6)),null;}}else{const _0x112e60=_0xcb9d36[_0x3b3a('0xc2')](_0x188faa[_0x3b3a('0xa4')]());null!==_0x112e60&&_0x188faa[_0x3b3a('0x7e')]([_0x112e60],null,_0x19bbc6);}}if(_0xcb9d36[_0x3b3a('0x93')](),_0xcb9d36[_0x3b3a('0x135')]||_0x3b3a('0x129')==_0xcb9d36[_0x3b3a('0xb8')][_0x3b3a('0x101')])return null;let _0x39284c=null,_0x5bc77d=_0xcb9d36['start'],_0x837cef=_0xcb9d36[_0x3b3a('0x4d')];for(const {suggestion:_0x58bcce,meta:_0x4b3d90}of this['_findSuggestions'](_0xcb9d36,_0x3b3a('0x30')))if(_0x4b3d90[_0x3b3a('0x4b')]){if(_0x58bcce[_0x3b3a('0x5c')]&&this[_0x3b3a('0x11a')]){let _0x3b712c=!0x0;for(const _0x4c7d70 of _0x58bcce[_0x3b3a('0x5b')]()){if(_0x4c7d70[_0x3b3a('0x5')](_0xcb9d36,!0x0))return _0x58bcce;_0xcb9d36[_0x3b3a('0x5')](_0x4c7d70)||(_0x3b712c=!0x1);}_0x3b712c&&_0x58bcce[_0x3b3a('0x10f')]();}else{const _0x2f2ce1=_0x58bcce[_0x3b3a('0xa4')]();if(_0x2f2ce1[_0x3b3a('0x5')](_0xcb9d36,!0x0)){if(!this[_0x3b3a('0x11a')]&&_0x4b3d90['containsRangeInObject'])continue;return _0x58bcce;}_0x5bc77d=_0x5bc77d[_0x3b3a('0x117')](_0x2f2ce1[_0x3b3a('0x1f')])?_0x5bc77d:_0x2f2ce1[_0x3b3a('0x1f')],_0x837cef=_0x837cef[_0x3b3a('0x90')](_0x2f2ce1[_0x3b3a('0x4d')])?_0x837cef:_0x2f2ce1[_0x3b3a('0x4d')],_0x39284c?_0x2f2ce1[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x39284c[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x39284c[_0x3b3a('0x110')](),_0x39284c=_0x58bcce):_0x58bcce['removeMarkers']():_0x39284c=_0x58bcce;}}if(_0x39284c)return this['_setSuggestionRange'](_0x39284c,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5bc77d,_0x837cef)),_0x39284c;{const _0x42df0c=_0x562252(),_0x5faca7=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5bc77d,_0x837cef),_0x25320e=_0x2ce221['id'],_0x2e4d5c=_0x1e717f?'deletion:'+_0x1e717f:'deletion',_0x8d4fb5=this['_setSuggestionData']({'id':_0x42df0c,'type':_0x2e4d5c,'createdAt':new Date(),'authorId':_0x25320e,'attributes':_0x19bbc6});return this[_0x3b3a('0x8e')](_0x2e4d5c,_0x42df0c,_0x25320e,_0x5faca7),_0x8d4fb5;}}[_0x3b3a('0x8a')](_0x1c668b,_0x52c705=_0x3b3a('0xeb'),_0x31e71a={}){const _0x337689=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x4cb46e=_0x1c668b[_0x3b3a('0xb')](_0x6f7756=>new _0x541e31(_0x6f7756['start'],_0x6f7756['end'])),_0x1c3756=new Set();for(const _0x55ab36 of _0x4cb46e)for(const {suggestion:_0x3bf6eb,meta:_0x53f103}of this['_findSuggestions'](_0x55ab36,_0x3b3a('0xe9')))_0x53f103[_0x3b3a('0x4b')]&&!_0x53f103['isNextTo']&&_0x1c3756[_0x3b3a('0x12b')](_0x3bf6eb);for(const _0x4303b1 of _0x1c3756)if(_0x4303b1[_0x3b3a('0x5c')]){const _0x3858c2=_0x4303b1[_0x3b3a('0x5b')]();(!_0x4303b1[_0x3b3a('0xc3')]||!_0x4303b1[_0x3b3a('0xc3')]['skipNestingCheck'])&&(_0x3858c2['every'](_0x29230e=>_0x4cb46e[_0x3b3a('0x2c')](_0x104749=>_0x104749[_0x3b3a('0x5')](_0x29230e,!0x0)))&&_0x4303b1[_0x3b3a('0x10f')]());if(_0x4cb46e[_0x3b3a('0xab')](_0x2a919c=>_0x3858c2['some'](_0x558d73=>_0x558d73[_0x3b3a('0x5')](_0x2a919c,!0x0)))){const _0x4050a0=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x52c705,'accept');return this[_0x3b3a('0x41')](()=>_0x4050a0(_0x1c668b,null,_0x31e71a)),null;}}else{const _0x2e9505=_0x4303b1[_0x3b3a('0xa4')]();_0x4cb46e[_0x3b3a('0x2c')](_0x22e65f=>_0x22e65f['containsRange'](_0x2e9505,!0x0))&&_0x4303b1[_0x3b3a('0x10f')]();if(_0x4cb46e[_0x3b3a('0xab')](_0x59f8aa=>_0x2e9505[_0x3b3a('0x5')](_0x59f8aa,!0x0))){const _0x4606ff=this['_suggestionFactory'][_0x3b3a('0x131')]('deletion',_0x52c705,'accept');return this['forceDefaultExecution'](()=>_0x4606ff(_0x4cb46e,null,_0x31e71a)),null;}}const _0x35eb43=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x52c705,_0x3b3a('0x59'));let _0x2a2175=null;for(const _0x8c1557 of this[_0x3b3a('0x122')]())if(_0x8c1557[_0x3b3a('0xc8')]['id']==_0x337689['id']&&_0x8c1557[_0x3b3a('0x115')]&&'deletion'==_0x8c1557[_0x3b3a('0xc')]&&_0x8c1557[_0x3b3a('0xf6')]==_0x52c705&&(_0x35eb43(_0x8c1557[_0x3b3a('0x5b')](),_0x4cb46e)||_0x35eb43(_0x4cb46e,_0x8c1557[_0x3b3a('0x5b')]()))){if(_0x2a2175){if(_0x8c1557['commentThread']&&_0x8c1557[_0x3b3a('0x38')][_0x3b3a('0x84')])continue;for(const _0x3ab0cc of _0x8c1557[_0x3b3a('0x5b')]())_0x2a2175[_0x3b3a('0xd6')](_0x3ab0cc)||_0x2a2175[_0x3b3a('0xae')](_0x3ab0cc);_0x8c1557[_0x3b3a('0x110')]();}else{_0x2a2175=_0x8c1557;for(const _0x462d1a of _0x4cb46e)_0x8c1557[_0x3b3a('0xd6')](_0x462d1a)||_0x8c1557['addRange'](_0x462d1a);}}if(_0x2a2175)return _0x2a2175;_0x1c3756['clear']();for(const _0x11f57f of _0x4cb46e)for(const {suggestion:_0x4dc857,meta:_0x1f207b}of this['_findSuggestions'](_0x11f57f,_0x3b3a('0x30')))_0x1f207b[_0x3b3a('0x4b')]&&_0x1c3756[_0x3b3a('0x12b')](_0x4dc857);for(const _0x577b20 of _0x1c3756){const _0x212eeb=_0x577b20[_0x3b3a('0x5b')]();if(!_0x31e71a||!_0x31e71a[_0x3b3a('0x71')]){if(_0x4cb46e[_0x3b3a('0xab')](_0x50af73=>_0x212eeb[_0x3b3a('0x2c')](_0x41173b=>_0x41173b[_0x3b3a('0x5')](_0x50af73,!0x0))))return _0x577b20;}(!_0x577b20[_0x3b3a('0xc3')]||!_0x577b20[_0x3b3a('0xc3')][_0x3b3a('0x71')])&&(_0x212eeb[_0x3b3a('0xab')](_0x3c4bb9=>_0x4cb46e['some'](_0x1ea122=>_0x1ea122['containsRange'](_0x3c4bb9,!0x0)))&&_0x577b20[_0x3b3a('0x10f')]());}const _0x1daf89=_0x562252(),_0x268a92=_0x337689['id'],_0x3ac014='deletion:'+_0x52c705,_0x11f773=this[_0x3b3a('0x112')]({'id':_0x1daf89,'type':_0x3ac014,'createdAt':new Date(),'authorId':_0x268a92,'attributes':_0x31e71a});for(const _0x512d69 of _0x4cb46e)_0x512d69['detach'](),_0x512d69[_0x3b3a('0x135')]||_0x3b3a('0x129')==_0x512d69[_0x3b3a('0xb8')][_0x3b3a('0x101')]||this[_0x3b3a('0x8e')](_0x3ac014,_0x1daf89,_0x268a92,_0x512d69,_0x38aeef[_0x3b3a('0x12d')]());return _0x11f773;}['_setSuggestionRange'](_0x5c7d64,_0x433ad7){const _0x4ef94a=_0x5c7d64[_0x3b3a('0xd1')]();this[_0x3b3a('0x75')][_0x3b3a('0x1a')](_0x2b123f=>{_0x2b123f[_0x3b3a('0xda')](_0x4ef94a,{'range':_0x433ad7});});}[_0x3b3a('0x92')](_0x180683){const _0x1d886a=_0x180683['id'],_0x253900=this[_0x3b3a('0x2f')][_0x3b3a('0x86')]['get'](_0x3b3a('0x8b'));this[_0x3b3a('0x3c')]['hasCommentThread'](_0x1d886a)||this[_0x3b3a('0x3c')][_0x3b3a('0x2')]({'channelId':_0x253900,'threadId':_0x1d886a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f27bf=this[_0x3b3a('0x3c')][_0x3b3a('0x12f')](_0x1d886a);_0x3f27bf[_0x3b3a('0x126')](_0x3b3a('0x10b')),_0x3f27bf[_0x3b3a('0x10b')]=!0x1,_0x180683[_0x3b3a('0x38')]=_0x3f27bf;}['_checkSuggestionCorrectness'](_0x14cf84,_0x10de1b,_0x15e08a,_0x3021bf){if(_0x14cf84[_0x3b3a('0xc')]!=_0x10de1b||_0x14cf84[_0x3b3a('0xf6')]!=_0x15e08a||_0x14cf84[_0x3b3a('0xa3')]['id']!=_0x3021bf)throw this[_0x3b3a('0x2f')][_0x3b3a('0x4c')](_0x3b3a('0x11')),new _0x351a30(_0x3b3a('0x11'),this);}['_cutOutSuggestionMarker'](_0x336370,_0x9e276c){const _0x5ce4c4=_0x336370['getFirstRange']();if(_0x9e276c['isEqual'](_0x5ce4c4))_0x336370['removeMarkers']();else{if(_0x5ce4c4[_0x3b3a('0x5')](_0x9e276c)){const _0x213c14=this['_model']['createPositionAt'](_0x9e276c['start'][_0x3b3a('0x19')],_0x3b3a('0x4d'));this[_0x3b3a('0x17')](_0x336370,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5ce4c4[_0x3b3a('0x1f')],_0x213c14));const _0xcaa11=_0x562252(),_0x470161=_0x336370[_0x3b3a('0xa3')]['id'],_0x3aea8a=_0x336370[_0x3b3a('0xc')]+':'+_0x336370[_0x3b3a('0xf6')];this[_0x3b3a('0x112')]({'id':_0xcaa11,'type':_0x3aea8a,'createdAt':new Date(),'authorId':_0x470161,'data':_0x336370[_0x3b3a('0x62')],'attributes':_0x336370['attributes']});const _0x47bd77=this['_model'][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x4d')][_0x3b3a('0x6c')],_0x3b3a('0x61')),_0xc536a0=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x47bd77,_0x5ce4c4[_0x3b3a('0x4d')]);this['_addSuggestionMarker'](_0x3aea8a,_0xcaa11,_0x470161,_0xc536a0);}else{if(_0x5ce4c4[_0x3b3a('0x8f')](_0x9e276c[_0x3b3a('0x1f')])){const _0x41b65d=this[_0x3b3a('0x75')][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x1f')]['nodeBefore'],_0x3b3a('0x4d'));this[_0x3b3a('0x17')](_0x336370,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5ce4c4['start'],_0x41b65d));}else{const _0x195b71=this['_model'][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x4d')][_0x3b3a('0x6c')],_0x3b3a('0x61'));this[_0x3b3a('0x17')](_0x336370,this['_model']['createRange'](_0x195b71,_0x5ce4c4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x158d71){for(const {suggestion:_0x5246a5,meta:_0x2adead}of this['_findSuggestions'](_0x158d71,_0x3b3a('0xe9'))){if(!_0x2adead[_0x3b3a('0x4b')])continue;const _0x46b3d9=_0x5246a5[_0x3b3a('0x5b')]();for(const _0x1cbe73 of _0x46b3d9)if(!_0x158d71[_0x3b3a('0x11e')](_0x1cbe73)[_0x3b3a('0x84')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x534527){const _0x2fd311=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get'](_0x3b3a('0xa2'))['getUser'](_0x534527);if(!_0x2fd311)throw new _0x351a30(_0x3b3a('0xc0'),this);return _0x2fd311;}[_0x3b3a('0xe4')](_0x35d3fe){const _0x48db0c=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get']('Users'),_0x45d8d4=_0xe552ec(_0x3b3a('0x11b')+_0x35d3fe),_0xd11b1=_0x48db0c[_0x3b3a('0xe3')](_0x45d8d4);return _0xd11b1||_0x48db0c[_0x3b3a('0xb1')]({'id':_0x45d8d4,'name':_0x35d3fe});}['_createSuggestion'](_0xbd71f2,_0x5602d4,_0x4a9b26,_0x10f84b,_0x367cba){const _0x3d6390=this[_0x3b3a('0x118')](_0x10f84b),_0x2c6dcd=this[_0x3b3a('0x3d')][_0x3b3a('0xe6')](_0xbd71f2,_0x5602d4,_0x4a9b26,_0x3d6390,_0x367cba,_0x5a20bb=>this[_0x3b3a('0x11c')](_0x4a9b26,{'attributes':_0x5a20bb}));return this[_0x3b3a('0xd7')](_0x2c6dcd,'accept',()=>{this['_updateSuggestionData'](_0x4a9b26,{'state':_0x3b3a('0xb6')});},{'priority':'high'}),this[_0x3b3a('0xd7')](_0x2c6dcd,_0x3b3a('0x10f'),()=>{this[_0x3b3a('0x11c')](_0x4a9b26,{'state':_0x3b3a('0x63')});},{'priority':_0x3b3a('0x26')}),this['_suggestions'][_0x3b3a('0xea')](_0x4a9b26,_0x2c6dcd),this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x2c6dcd,_0x3b3a('0xe7')),_0x2c6dcd;}[_0x3b3a('0xe')](_0x56d791){const _0x52ea19=_0x56d791[_0x3b3a('0x29')](':');return{'group':_0x52ea19[0x0],'type':_0x52ea19[0x1],'subType':_0x52ea19[_0x3b3a('0x84')]>=0x5?_0x52ea19[0x2]:null,'id':_0x52ea19['length']<0x5?_0x52ea19[0x2]:_0x52ea19[0x3],'authorId':_0x52ea19['length']<0x5?_0x52ea19[0x3]:_0x52ea19[0x4],'markerCount':0x6==_0x52ea19[_0x3b3a('0x84')]?_0x52ea19[0x5]:null};}['_breakSuggestionMarker'](_0xa7a0b9,_0x376133,_0x11da16){const _0x19c572=_0xa7a0b9['getFirstRange'](),_0x5e71f9=_0x19c572[_0x3b3a('0x1f')],_0x34b882=_0x19c572['end'];this[_0x3b3a('0x17')](_0xa7a0b9,this['_model'][_0x3b3a('0x16')](_0x5e71f9,_0x376133));const _0x4877a0=_0x562252(),_0xc4e427=_0xa7a0b9[_0x3b3a('0xa3')]['id'],_0x4ebd64=_0xa7a0b9[_0x3b3a('0xc')]+(_0xa7a0b9[_0x3b3a('0xf6')]?':'+_0xa7a0b9[_0x3b3a('0xf6')]:'');this[_0x3b3a('0x112')]({'id':_0x4877a0,'type':_0x4ebd64,'createdAt':new Date(),'authorId':_0xc4e427,'originalSuggestionId':_0xa7a0b9['id'],'attributes':_0xa7a0b9[_0x3b3a('0xc3')],'data':_0xa7a0b9[_0x3b3a('0x62')]}),_0x3b3a('0x139')==_0xa7a0b9[_0x3b3a('0xc')]&&(_0x11da16=this[_0x3b3a('0x75')][_0x3b3a('0xb3')](_0x11da16[_0x3b3a('0x6c')])),this[_0x3b3a('0x8e')](_0x4ebd64,_0x4877a0,_0xc4e427,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x11da16,_0x34b882));}[_0x3b3a('0xc1')](_0x1c8a1e,_0x2cfdc5=null){const _0x273974=[],_0x2460d3=this['_model']['schema'],_0x4839da=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get']('Users')['me'];for(const _0x280b38 of this['getSuggestions']())if(_0x280b38[_0x3b3a('0x115')]&&(!_0x2cfdc5||_0x280b38[_0x3b3a('0xc')]==_0x2cfdc5))for(const _0x29068b of _0x280b38[_0x3b3a('0x5b')]()){const _0x5ba589=_0x1c8a1e[_0x3b3a('0x1f')]['isEqual'](_0x29068b[_0x3b3a('0x4d')])||_0x1c8a1e[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x29068b['start']);if(_0x5ba589||_0x1c8a1e['getIntersection'](_0x29068b)){const _0x5b1ecd=_0x1c8a1e[_0x3b3a('0x5')](_0x29068b)&&Bt(_0x2460d3,_0x29068b[_0x3b3a('0x1f')],_0x1c8a1e),_0x32a0fb=_0x29068b[_0x3b3a('0x5')](_0x1c8a1e)&&Bt(_0x2460d3,_0x1c8a1e[_0x3b3a('0x1f')],_0x29068b);_0x273974['push']({'suggestion':_0x280b38,'meta':{'isOwn':_0x4839da==_0x280b38[_0x3b3a('0xc8')],'isNextTo':_0x5ba589,'isInsideObject':_0x5b1ecd,'containsRangeInObject':_0x32a0fb}});break;}}return _0x273974;}[_0x3b3a('0x8e')](_0x38c650,_0x31a996,_0x5e5de8,_0x46207b,_0x49e7ab){this[_0x3b3a('0x75')][_0x3b3a('0x1a')](_0x4290b9=>{let _0x35d260=_0x3b3a('0x52')+_0x38c650+':'+_0x31a996+':'+_0x5e5de8;_0x49e7ab&&(_0x35d260=_0x35d260+':'+_0x49e7ab),_0x4290b9['addMarker'](_0x35d260,{'range':_0x46207b,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3b3a('0xaa')](_0x2dc72a){const _0xa24fb1=_0x2dc72a[_0x3b3a('0x8')],_0x30e351=_0x2dc72a['next'];_0x2dc72a[_0x3b3a('0x8')]=null,null!=_0xa24fb1&&(_0xa24fb1[_0x3b3a('0xed')]=null),_0x2dc72a[_0x3b3a('0xed')]=null,null!=_0x30e351&&(_0x30e351[_0x3b3a('0x8')]=null),'ready'==this['_suggestionState'][_0x3b3a('0x13a')](_0x2dc72a)&&(this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x2dc72a,_0x3b3a('0x130')),this['fire'](_0x3b3a('0xdd'),_0x2dc72a,_0xa24fb1,_0x30e351));}[_0x3b3a('0x112')](_0x2247de){const _0x2f736a=_0x2247de['id'],_0x55f675=this[_0x3b3a('0x9a')](_0x2247de);if(this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0x96')]){const _0x4f510c=this['editor'][_0x3b3a('0x1')]['get'](_0x3b3a('0xa9')),_0x28c815=_0x55f675['hasComments'],_0x57ab2c=_0x55f675['subType']?_0x55f675[_0x3b3a('0xc')]+':'+_0x55f675[_0x3b3a('0xf6')]:_0x55f675[_0x3b3a('0xc')],_0x581674=this[_0x3b3a('0x2f')]['locale'],_0x245345=_0x4f510c[_0x3b3a('0x12b')](_0x1c5b1c(_0x581674,_0x3b3a('0xc4'))),_0x5c3f70={'id':_0x2f736a,'type':_0x57ab2c,'hasComments':_0x28c815,'data':_0x2247de[_0x3b3a('0x62')]||null,'originalSuggestionId':_0x2247de[_0x3b3a('0xc9')]||null,'attributes':_0x55f675[_0x3b3a('0xc3')]};this[_0x3b3a('0x68')][_0x3b3a('0x96')](_0x5c3f70)[_0x3b3a('0x9b')](_0x10d935=>{_0x55f675[_0x3b3a('0x44')]=!0x0,_0x4f510c['remove'](_0x245345),_0x10d935&&_0x10d935[_0x3b3a('0xd2')]&&(this[_0x3b3a('0x7b')]['get'](_0x2f736a)['createdAt']=_0x10d935[_0x3b3a('0xd2')]);})[_0x3b3a('0x2b')](_0x35b57c=>{throw _0x57dcef(_0x3b3a('0x20')),this[_0x3b3a('0x2f')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x55f675[_0x3b3a('0x10f')]();}),_0x55f675[_0x3b3a('0x8c')](),this[_0x3b3a('0x7b')]['delete'](_0x55f675['id']),this[_0x3b3a('0xcc')]['delete'](_0x55f675),_0x35b57c;});}return _0x55f675;}[_0x3b3a('0x11c')](_0x49d68d,_0x457520){const _0x2ada42=this['editor'][_0x3b3a('0x1')]['get']('PendingActions'),_0x1b95b3=this[_0x3b3a('0x35')](_0x49d68d);if(this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0xb2')]){if(_0x1b95b3[_0x3b3a('0x44')]){const _0xbcee9e=_0x2ada42[_0x3b3a('0x12b')](_0x1c5b1c(this[_0x3b3a('0x2f')][_0x3b3a('0x91')],_0x3b3a('0xc4')));this[_0x3b3a('0x68')][_0x3b3a('0xb2')](_0x49d68d,_0x457520)[_0x3b3a('0x9b')](()=>{_0x2ada42['remove'](_0xbcee9e);});}else _0x1b95b3['on'](_0x3b3a('0x6'),()=>{this[_0x3b3a('0x11c')](_0x49d68d,_0x457520);});}}['_getSuggestionData'](_0x371536){if(!this[_0x3b3a('0x68')]||!this['_adapter'][_0x3b3a('0x35')])throw new _0x351a30(_0x3b3a('0x4f'),this);return this[_0x3b3a('0x68')][_0x3b3a('0x35')](_0x371536);}['_handleNewSuggestionMarker'](_0x4db7b0){const {id:_0x316e72,type:_0x25f88d,subType:_0x5b03f8,authorId:_0x36cc89}=this['_splitMarkerName'](_0x4db7b0),_0x49b4cf=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x316e72)||this[_0x3b3a('0x1d')](_0x25f88d,_0x5b03f8,_0x316e72,_0x36cc89,{});switch(this[_0x3b3a('0x53')](_0x49b4cf,_0x25f88d,_0x5b03f8,_0x36cc89),this[_0x3b3a('0xcc')][_0x3b3a('0x13a')](_0x49b4cf)){case _0x3b3a('0xe7'):this[_0x3b3a('0x43')](_0x316e72)[_0x3b3a('0x9b')](_0xa58e9f=>{let _0x4ca9f9=Promise['resolve']();_0xa58e9f[_0x3b3a('0xe5')]&&(_0x4ca9f9=this[_0x3b3a('0x3c')][_0x3b3a('0x13b')]({'channelId':this[_0x3b3a('0x2f')][_0x3b3a('0x86')][_0x3b3a('0x13a')](_0x3b3a('0x8b')),'threadId':_0x316e72})),_0x4ca9f9[_0x3b3a('0x9b')](()=>{this[_0x3b3a('0x9a')](_0xa58e9f)[_0x3b3a('0x44')]=!0x0;});}),this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x49b4cf,_0x3b3a('0xf7'));break;case _0x3b3a('0x130'):this['_updateSuggestionData'](_0x316e72,{'state':'open'});case _0x3b3a('0x107'):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x49b4cf,_0x3b3a('0x1c')),this[_0x3b3a('0x7')](_0x3b3a('0x97'),_0x49b4cf);break;case _0x3b3a('0x1c'):this['fire'](_0x3b3a('0x99'),_0x49b4cf);}return _0x49b4cf[_0x3b3a('0x31')](_0x4db7b0),_0x49b4cf;}['_refreshSuggestionsChain'](_0x4b1313){const _0x1ccc0b=Array['from'](_0x4b1313)[_0x3b3a('0xe8')](_0x615f9a=>!_0x615f9a[_0x3b3a('0x5c')]),_0x461a70=this[_0x3b3a('0x122')]({'skipNotAttached':!0x0})[_0x3b3a('0xe8')](_0x67cdde=>!_0x67cdde[_0x3b3a('0x5c')]),_0x363f94=_0x461a70[_0x3b3a('0xe8')](_0xcd5a0e=>!_0x4b1313['has'](_0xcd5a0e)),_0x45cbfd=new Map(_0x461a70[_0x3b3a('0xb')](_0xd64950=>[_0xd64950,this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0xd64950[_0x3b3a('0xc')],_0xd64950[_0x3b3a('0xf6')],'chain')])),_0x587239=new Map(_0x461a70[_0x3b3a('0xb')](_0x133543=>[_0x133543,_0x133543[_0x3b3a('0xa4')]()])),_0x183187=new Set(),_0x56f0d2=new Set();for(let _0x3bc8aa=0x0;_0x3bc8aa<_0x1ccc0b['length'];_0x3bc8aa++)_0x5d781c(_0x1ccc0b[_0x3bc8aa],_0x1ccc0b,_0x3bc8aa+0x1);for(let _0x3b3704=0x0;_0x3b3704<_0x1ccc0b[_0x3b3a('0x84')];_0x3b3704++)_0x5d781c(_0x1ccc0b[_0x3b3704],_0x363f94,0x0);for(let _0x23d587=0x0;_0x23d587<_0x1ccc0b['length'];_0x23d587++){const _0xfc1f11=_0x1ccc0b[_0x23d587];!_0x56f0d2[_0x3b3a('0xff')](_0xfc1f11)&&_0xfc1f11['previous']&&(_0xfc1f11[_0x3b3a('0x8')][_0x3b3a('0xed')]===_0xfc1f11&&(_0xfc1f11[_0x3b3a('0x8')][_0x3b3a('0xed')]=null),_0xfc1f11[_0x3b3a('0x8')]=null),!_0x183187[_0x3b3a('0xff')](_0xfc1f11)&&_0xfc1f11[_0x3b3a('0xed')]&&(_0xfc1f11[_0x3b3a('0xed')][_0x3b3a('0x8')]===_0xfc1f11&&(_0xfc1f11[_0x3b3a('0xed')][_0x3b3a('0x8')]=null),_0xfc1f11[_0x3b3a('0xed')]=null);}function _0x5d781c(_0x28f841,_0x5bd869,_0x6df87){for(let _0x4d032f=_0x6df87;_0x4d032f<_0x5bd869[_0x3b3a('0x84')];_0x4d032f++){const _0xe25653=_0x473b23(_0x28f841,_0x5bd869[_0x4d032f]);_0xe25653&&(_0xe25653[0x0]['next']=_0xe25653[0x1],_0xe25653[0x1][_0x3b3a('0x8')]=_0xe25653[0x0],_0x183187[_0x3b3a('0x12b')](_0xe25653[0x0]),_0x56f0d2[_0x3b3a('0x12b')](_0xe25653[0x1]));}}function _0x473b23(_0x1bbd10,_0x247ad9){if(_0x1bbd10[_0x3b3a('0xc8')]['id']!==_0x247ad9[_0x3b3a('0xc8')]['id'])return null;const _0x13dbf6=_0x45cbfd[_0x3b3a('0x13a')](_0x1bbd10)(_0x1bbd10,_0x247ad9,_0x587239[_0x3b3a('0x13a')](_0x1bbd10),_0x587239['get'](_0x247ad9));if(!_0x13dbf6)return null;return _0x45cbfd['get'](_0x247ad9)(_0x1bbd10,_0x247ad9,_0x587239[_0x3b3a('0x13a')](_0x1bbd10),_0x587239[_0x3b3a('0x13a')](_0x247ad9))?_0x13dbf6[0x1]['commentThread']&&_0x13dbf6[0x1]['commentThread'][_0x3b3a('0x84')]?null:_0x13dbf6:null;}}[_0x3b3a('0xe2')](_0x16c929){const _0x4b39a=Array[_0x3b3a('0x140')](_0x16c929),_0x3c1379=this[_0x3b3a('0x122')]({'skipNotAttached':!0x0}),_0x374785=_0x3c1379[_0x3b3a('0xe8')](_0x6aa43c=>!_0x16c929[_0x3b3a('0xff')](_0x6aa43c)),_0x4d9618=new Map(_0x4b39a['map'](_0xa6455b=>[_0xa6455b,this['_suggestionFactory'][_0x3b3a('0x131')](_0xa6455b[_0x3b3a('0xc')],_0xa6455b[_0x3b3a('0xf6')],_0x3b3a('0x59'))])),_0xca58df=new Map(_0x3c1379[_0x3b3a('0xb')](_0x33cab1=>[_0x33cab1,_0x33cab1[_0x3b3a('0x5b')]()]));for(let _0xbdcc70=0x0;_0xbdcc70<_0x4b39a[_0x3b3a('0x84')];_0xbdcc70++){if(_0xd1cc7d(this,_0x4b39a[_0xbdcc70],_0x4b39a,_0xbdcc70+0x1))return!0x0;}for(let _0x32d8ea=0x0;_0x32d8ea<_0x4b39a['length'];_0x32d8ea++){if(_0xd1cc7d(this,_0x4b39a[_0x32d8ea],_0x374785,0x0))return!0x0;}return!0x1;function _0xd1cc7d(_0x13510a,_0x1b9806,_0x3a1658,_0x1fafbb){for(let _0x1932a9=_0x1fafbb;_0x1932a9<_0x3a1658[_0x3b3a('0x84')];_0x1932a9++){const _0x4085d8=_0x3a1658[_0x1932a9];if(_0x4085d8[_0x3b3a('0xc')]!==_0x1b9806[_0x3b3a('0xc')]||_0x4085d8[_0x3b3a('0xc8')]['id']!==_0x1b9806[_0x3b3a('0xc8')]['id']||_0x4085d8[_0x3b3a('0xf6')]!==_0x1b9806[_0x3b3a('0xf6')])continue;const _0x3b5c44=_0x4d9618['get'](_0x1b9806),_0x385e37=_0xca58df[_0x3b3a('0x13a')](_0x1b9806),_0x3a96d0=_0xca58df['get'](_0x4085d8),_0x4ce5b3=_0x1b9806[_0x3b3a('0x38')]&&_0x1b9806['commentThread'][_0x3b3a('0x84')],_0x4a6b4b=_0x4085d8[_0x3b3a('0x38')]&&_0x4085d8[_0x3b3a('0x38')][_0x3b3a('0x84')];if(!_0x4ce5b3&&_0x3b5c44(_0x3a96d0,_0x385e37))return _0x13510a[_0x3b3a('0xbd')](_0x4085d8,_0x1b9806),_0xca58df[_0x3b3a('0x22')](_0x1b9806),!0x0;if(!_0x4a6b4b&&_0x3b5c44(_0x385e37,_0x3a96d0))return _0x13510a[_0x3b3a('0xbd')](_0x1b9806,_0x4085d8),_0xca58df[_0x3b3a('0x22')](_0x4085d8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1da892,_0x1c65d1){if(_0x1da892[_0x3b3a('0x5c')])for(const _0x3afbdc of _0x1c65d1['getRanges']())_0x1da892[_0x3b3a('0xae')](_0x3afbdc);else{const _0x1b1367=_0x1c65d1[_0x3b3a('0xa4')]()[_0x3b3a('0x4d')];this['_setSuggestionRange'](_0x1da892,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x1da892[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')],_0x1b1367));}_0x1c65d1[_0x3b3a('0x110')]();}}class Dt{constructor(_0x49ea12){this[_0x3b3a('0xa6')]=_0x49ea12,this[_0x3b3a('0x75')]=_0x49ea12[_0x3b3a('0x105')],this[_0x3b3a('0x66')]=new Map(),this[_0x3b3a('0x57')]=new Map(),this[_0x3b3a('0x72')]();}['buildSuggestion'](_0x4e33cb,_0x1eb2e8,_0x576265,_0xdefa87,_0xeba648,_0x151086){return new _0x38aeef(this[_0x3b3a('0x75')],{'type':_0x4e33cb,'subType':_0x1eb2e8,'id':_0x576265,'author':_0xdefa87,'creator':_0xdefa87,'attributes':_0xeba648,'onAttributesChange':_0x151086,'onAccept':(..._0x5464b8)=>this['getSuggestionCallback'](_0x4e33cb,_0x1eb2e8,_0x3b3a('0x7f'))(..._0x5464b8),'onDiscard':(..._0x3ea9cd)=>this[_0x3b3a('0x131')](_0x4e33cb,_0x1eb2e8,_0x3b3a('0x10f'))(..._0x3ea9cd)});}[_0x3b3a('0x142')](_0x32a7ce,_0x582b31,_0x58131d,_0x2cd944){const _0x5b7c09=_0x32a7ce+':'+_0x582b31+':'+_0x58131d;this[_0x3b3a('0x66')][_0x3b3a('0xea')](_0x5b7c09,_0x2cd944);}['getSuggestionCallback'](_0x39956f,_0x42e1bd,_0x3af7bb){const _0x372dce=_0x39956f+':'+_0x42e1bd+':'+_0x3af7bb;return this['_customCallbacks'][_0x3b3a('0x13a')](_0x372dce)||this['_defaultCallbacks'][_0x3b3a('0x13a')](_0x39956f+':'+_0x3af7bb);}['_registerDefaultCallbacks'](){const _0x14fdfa=()=>{},_0x871637=_0x227210=>{_0x227210['sort']((_0x444011,_0x209e17)=>_0x444011[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x209e17[_0x3b3a('0x1f')])?0x1:-0x1),this[_0x3b3a('0x75')]['change'](_0x37658c=>{for(const _0x1575f4 of _0x227210){let _0x23938a;_0x23938a=_0x1575f4['end'][_0x3b3a('0xfd')]&&_0x1575f4['end']['parent']==_0x1575f4[_0x3b3a('0x1f')][_0x3b3a('0xce')]?_0x37658c[_0x3b3a('0x5a')](_0x1575f4['start'][_0x3b3a('0xce')],'on'):_0x37658c[_0x3b3a('0x5a')](_0x1575f4),this['_model']['deleteContent'](_0x23938a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53dfaa=(_0x3cabf7,_0x2dab3c)=>{this[_0x3b3a('0x75')]['change'](_0x2640c1=>{const {commandName:_0x1c603e,commandParams:_0x14d772=[]}=_0x2dab3c,_0xc25908=_0x3cabf7[_0x3b3a('0xb')](_0x3493c8=>(_t(_0x3493c8)&&(_0x3493c8=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x3493c8['end'])),_0x3493c8))[_0x3b3a('0xe8')](_0x1df85e=>_0x3b3a('0x129')!==_0x1df85e[_0x3b3a('0xb8')][_0x3b3a('0x101')]);if(_0xc25908[_0x3b3a('0x84')]<0x1)return;const _0x127989=Array[_0x3b3a('0x140')](this[_0x3b3a('0x75')]['document'][_0x3b3a('0x51')][_0x3b3a('0x5b')]())[_0x3b3a('0xb')](_0x39ecdb=>_0x541e31[_0x3b3a('0x50')](_0x39ecdb));_0x2640c1['setSelection'](_0xc25908);for(const _0x574c7b of this[_0x3b3a('0xa6')][_0x3b3a('0x40')][_0x3b3a('0x40')]())_0x574c7b['refresh']();_0x14d772[_0x3b3a('0x4e')]({'forceDefaultExecution':!0x0}),this[_0x3b3a('0xa6')][_0x3b3a('0xd0')](_0x1c603e,..._0x14d772);const _0x6819d4=_0x127989['filter'](_0x598da4=>_0x3b3a('0x129')!=_0x598da4[_0x3b3a('0xb8')][_0x3b3a('0x101')]);_0x6819d4[_0x3b3a('0x84')]>0x0&&_0x2640c1['setSelection'](_0x6819d4);for(const _0x2f6353 of _0x127989)_0x2f6353[_0x3b3a('0x93')]();});},_0x25dad6=(_0x150f8a,_0x289abc)=>0x1==_0x150f8a[_0x3b3a('0x84')]&&0x1==_0x289abc[_0x3b3a('0x84')]&&_0x150f8a[0x0][_0x3b3a('0x4d')]['isEqual'](_0x289abc[0x0][_0x3b3a('0x1f')]),_0x4b0bb3=(_0x32332b,_0x4ce730,_0x52034b,_0x4714b4)=>xt(_0x32332b,_0x4ce730,_0x52034b,_0x4714b4,this[_0x3b3a('0x75')])?[_0x32332b,_0x4ce730]:xt(_0x4ce730,_0x32332b,_0x4714b4,_0x52034b,this[_0x3b3a('0x75')])?[_0x4ce730,_0x32332b]:null;this[_0x3b3a('0x57')][_0x3b3a('0xea')]('insertion:accept',_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x6e'),_0x871637),this['_defaultCallbacks']['set'](_0x3b3a('0x7c'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x11d'),_0x4b0bb3),this[_0x3b3a('0x57')][_0x3b3a('0xea')]('deletion:accept',_0x871637),this[_0x3b3a('0x57')]['set'](_0x3b3a('0x104'),_0x14fdfa),this['_defaultCallbacks'][_0x3b3a('0xea')](_0x3b3a('0x13e'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x8d'),_0x4b0bb3),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xfe'),_0x53dfaa),this[_0x3b3a('0x57')][_0x3b3a('0xea')]('formatInline:discard',_0x14fdfa),this[_0x3b3a('0x57')]['set'](_0x3b3a('0xbf'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xb7'),_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x88'),_0x53dfaa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xca'),_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x14'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xa7'),_0x14fdfa);}}function Bt(_0x1664d0,_0x5d1a1a,_0x175550){for(const _0x28a7b of _0x5d1a1a[_0x3b3a('0x6c')][_0x3b3a('0x1b')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28a7b[_0x3b3a('0xb8')]==_0x28a7b)return!0x1;if(!_0x175550[_0x3b3a('0x49')](_0x28a7b))return!0x1;if(_0x1664d0['isObject'](_0x28a7b)||_0x1664d0[_0x3b3a('0x24')](_0x28a7b))return!0x0;}return!0x1;}function _t(_0x5f0810){return _0x5f0810[_0x3b3a('0x4d')][_0x3b3a('0x6c')]==_0x5f0810[_0x3b3a('0x1f')][_0x3b3a('0xce')]&&_0x5f0810['end'][_0x3b3a('0x12c')];}function Mt(_0x3601e0,_0x127650,_0x580618,_0x221154){const _0x21cd9f=_0x2780d4=>!_0x2780d4[_0x3b3a('0xdc')]['is'](_0x3b3a('0x113'))&&!_0x221154[_0x3b3a('0x37')](_0x2780d4['item']),_0x35f8c7=_0x3601e0[_0x3b3a('0x1f')][_0x3b3a('0x39')](_0x21cd9f),_0x58d451=_0x3601e0[_0x3b3a('0x4d')][_0x3b3a('0x39')](_0x21cd9f,{'direction':_0x3b3a('0x10d')});return(!_0x3601e0[_0x3b3a('0x1f')][_0x3b3a('0x25')](_0x35f8c7)||!_0x3601e0[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x58d451))&&(_0x35f8c7[_0x3b3a('0x117')](_0x58d451)?_0x580618['updateMarker'](_0x127650,{'range':_0x580618[_0x3b3a('0x16')](_0x35f8c7,_0x58d451)}):_0x580618[_0x3b3a('0x114')](_0x127650),!0x0);}function $t(_0x5a7fc3){return _0xe552ec(_0x5a7fc3);}function Nt(_0x757664){const _0x3f2bc6=_0x757664[_0x3b3a('0x1f')][_0x3b3a('0xce')];return _0x3f2bc6&&_0x3f2bc6['is'](_0x3b3a('0x6b'));}function Rt(_0x2704c6,_0x199b8c){const _0x44beaa=_0x199b8c[_0x3b3a('0x77')][_0x3b3a('0x37')](_0x2704c6)||_0x199b8c['schema'][_0x3b3a('0x128')](_0x2704c6);return _0x199b8c['createRange'](_0x199b8c['createPositionAt'](_0x2704c6,'before'),_0x44beaa?_0x199b8c[_0x3b3a('0xd3')](_0x2704c6):_0x199b8c['createPositionAt'](_0x2704c6,_0x3b3a('0x4d')));}function xt(_0x958436,_0x4a870b,_0x2d2a6b,_0x3b3706,_0x717dba){if(_0x2d2a6b['end']['isEqual'](_0x3b3706[_0x3b3a('0x1f')]))return!0x0;if(_0x958436['type']!=_0x4a870b[_0x3b3a('0xc')])return!0x1;if(!_0x2d2a6b[_0x3b3a('0x4d')][_0x3b3a('0xdb')](_0x3b3706[_0x3b3a('0x1f')]))return!0x1;const _0x159ba9=_0x717dba['createRange'](_0x2d2a6b['end'],_0x3b3706[_0x3b3a('0x1f')])[_0x3b3a('0x6d')]();for(const _0x506344 of _0x159ba9)if(['elementStart',_0x3b3a('0xf5')][_0x3b3a('0x11f')](_0x506344[_0x3b3a('0xc')])&&_0x717dba['schema']['isLimit'](_0x506344[_0x3b3a('0xdc')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5adc=['_destroyController','from','_refreshActiveMarkers','comments.maxThreadTotalWeight','value','acceptButton','componentFactory','clear','arrowView','acceptSelectedSuggestions','createCommentThreadController','CommentsRepository','Track\x20changes','map','suggestionUnloaded','_handleSuggestionControllerDelayed','plugins','_descriptionFactory','activeMarkers','registerAnnotation','suggestionChanged','Annotations','delete','CommentsUI','addSourceCollector','Accept\x20all\x20suggestions','filter','values','previous','commands','activeAnnotations','refreshSelectedViews','hasSuggestion','destroy','trackChanges','_suggestionToController','_viewToController','requires','length','head','isInContent','comments.maxCommentsWhenCollapsed','get','mainView','discardAllSuggestions','_updateController','separator','editor','keys','model','type','has','unbind','set','_initializeController','isOn','descriptionParts','source','discardSelectedSuggestions','size','define','createAnnotationView','isDirty','getJoined','buttonView','discardButton','view','comments.maxCommentCharsWhenCollapsed','change:previous','actionView','reduce','push','config','isEnabled','_disableComments','focus','commandName','getDescriptions','Discard\x20all\x20selected\x20suggestions','_annotationViews','SuggestionThreadView','switchbutton','suggestion-','getMarkers','_createUIButton','trackChanges.disableComments','listenTo','trackChanges.SuggestionThreadView','button','locale','Accept\x20all\x20selected\x20suggestions','add','remove','bind','_handleControllerBuffer','getByInnerView','_bindAnnotationToEditors','Discard\x20all\x20suggestions','EditorAnnotations','isMultiRange','getAllAdjacentSuggestions','editing','TrackChangesEditing','execute'];(function(_0x1d5200,_0x5adcdf){const _0x340342=function(_0x5005e4){while(--_0x5005e4){_0x1d5200['push'](_0x1d5200['shift']());}};_0x340342(++_0x5adcdf);}(_0x5adc,0x6b));const _0x3403=function(_0x1d5200,_0x5adcdf){_0x1d5200=_0x1d5200-0x0;let _0x340342=_0x5adc[_0x1d5200];return _0x340342;};import{Plugin as _0x45eda9}from'ckeditor5/src/core';import{Collection as _0x4ce46f}from'ckeditor5/src/utils';import{Model as _0x1307b7,SplitButtonView as _0x4e0227,createDropdown as _0x4df4b7,addListToDropdown as _0x497d52}from'ckeditor5/src/ui';import{Users as _0x32ec2d,getDateTimeFormatter as _0x23a44b,getAllMarkersDomElementsSorted as _0x47bb35}from'ckeditor5-collaboration/src/collaboration-core';import _0x103adb from'./trackchangesediting';import _0x2d06c2 from'./ui/suggestioncontroller';import _0x2de3b5 from'./ui/view/suggestionthreadview';import{getTranslation as _0xac2841}from'./utils/common-translations';import _0x4969d2 from'../theme/icons/track-changes.svg';export default class d extends _0x45eda9{static get[_0x3403('0x22')](){return[_0x103adb,_0x32ec2d,_0x3403('0x8'),_0x3403('0x12'),'EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4c91f4){super(_0x4c91f4),this[_0x3403('0x20')]=new Map(),this[_0x3403('0x21')]=new Map(),this[_0x3403('0x4c')]=new Map(),this[_0x3403('0x5b')]=new Map();const _0x137dec=this[_0x3403('0x2c')][_0x3403('0x45')];_0x137dec[_0x3403('0x39')](_0x3403('0x54'),_0x2de3b5),_0x137dec[_0x3403('0x39')](_0x3403('0x52'),!0x1),this[_0x3403('0x47')]=_0x137dec['get'](_0x3403('0x52'));}[_0x3403('0xc')](_0x519d52,_0x8fa657){0x0===this[_0x3403('0x5b')][_0x3403('0x38')]&&setTimeout(()=>{for(const [_0x579bd5,_0x2db64d]of this[_0x3403('0x5b')]){const _0x1b83ce=this[_0x3403('0x20')][_0x3403('0x30')](_0x579bd5);_0x1b83ce||_0x2db64d?_0x1b83ce&&_0x2db64d&&this[_0x3403('0x65')](_0x579bd5):this[_0x3403('0x33')](_0x579bd5);}this[_0x3403('0x2c')][_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x5f'))[_0x3403('0x1c')](),this['_refreshActiveMarkers'](),this[_0x3403('0x5b')][_0x3403('0x4')]();},0xa),this[_0x3403('0x5b')][_0x3403('0x32')](_0x519d52,_0x8fa657);}['init'](){const _0x18a4e5=this[_0x3403('0x2c')],_0x21b258=_0x18a4e5['plugins']['get'](_0x3403('0x63')),_0x27b120=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x12')),_0x514be6=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x5f')),_0x3572e1=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')]('CommentsRepository');_0x18a4e5['ui'][_0x3403('0x3')]['add']('trackChanges',_0x36e22b=>this[_0x3403('0x51')](_0x36e22b)),_0x514be6[_0x3403('0x15')](()=>{const _0x53be01=[];for(const [_0x308d6a,_0x5c96de]of Array['from'](this['_suggestionToController'])){const _0x1dfb32=_0x308d6a[_0x3403('0x61')](),_0x5bb333=[];for(const _0xa5084d of _0x1dfb32){if(!_0xa5084d[_0x3403('0x25')])continue;if(_0xa5084d[_0x3403('0x60')]){_0x5bb333[_0x3403('0x44')](..._0xa5084d['getRanges']());continue;}const _0x399550=_0xa5084d['getFirstRange']();if(_0x5bb333[_0x3403('0x23')]>0x0){const _0x46da85=_0x5bb333[0x0][_0x3403('0x3c')](_0x399550);if(_0x46da85){_0x5bb333[0x0]=_0x46da85;continue;}}_0x5bb333[_0x3403('0x44')](_0x399550);}_0x53be01['push']([_0x5c96de[_0x3403('0x3f')],_0x5bb333]);}return _0x53be01;}),this[_0x3403('0x53')](_0x21b258,'suggestionLoaded',(_0x3817a9,_0x2331fc)=>{this['listenTo'](_0x2331fc,'change:previous',(_0x5d82fb,_0x57050a,_0x291beb,_0x310204)=>{_0x2331fc['isInContent']&&(null==_0x291beb?(this[_0x3403('0x2a')](_0x310204['head']),this['_handleSuggestionControllerDelayed'](_0x2331fc,!0x1)):(this[_0x3403('0x2a')](_0x291beb[_0x3403('0x24')]),this[_0x3403('0xc')](_0x2331fc,!0x0)));}),null===_0x2331fc[_0x3403('0x19')]?this[_0x3403('0xc')](_0x2331fc,!0x1):this[_0x3403('0x2a')](_0x2331fc[_0x3403('0x24')]);}),this[_0x3403('0x53')](_0x21b258,_0x3403('0xb'),(_0x14fe16,_0x50cb9e,_0x18a5e5)=>{this['stopListening'](_0x50cb9e,_0x3403('0x41')),this[_0x3403('0x5b')][_0x3403('0x13')](_0x50cb9e);const _0x242c44=_0x18a5e5?_0x18a5e5[_0x3403('0x24')]:_0x50cb9e,_0x4e0e65=this[_0x3403('0x20')]['get'](_0x242c44);null!==_0x18a5e5&&this[_0x3403('0x2a')](_0x242c44),null===_0x18a5e5&&_0x4e0e65&&this['_destroyController'](_0x50cb9e);}),this[_0x3403('0x53')](_0x21b258,_0x3403('0x11'),(_0x30b3f8,_0x460f94)=>{this[_0x3403('0x2a')](_0x460f94);}),this[_0x3403('0x53')](_0x27b120,'change:activeAnnotations',()=>{this[_0x3403('0x67')]();}),this[_0x3403('0x53')](_0x3572e1,'addComment',(_0xcbb552,{threadId:_0x2cbb77,isFromAdapter:_0x102f44})=>{if(_0x102f44||!_0x21b258[_0x3403('0x1d')](_0x2cbb77))return;const _0x239fff=_0x21b258['getSuggestion'](_0x2cbb77);this[_0x3403('0x20')][_0x3403('0x27')](_0x239fff)[_0x3403('0x3f')][_0x3403('0x48')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x7699b8=this[_0x3403('0x2c')]['plugins'][_0x3403('0x27')](_0x3403('0x12')),_0x3f4307=this['editor'][_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x63')),_0x455089=Array[_0x3403('0x66')](_0x7699b8[_0x3403('0x1b')],_0x19beff=>_0x19beff['innerView'])['filter'](_0x4555f6=>this[_0x3403('0x21')][_0x3403('0x30')](_0x4555f6)),_0x5b5952=[];for(const _0x4fc67e of _0x455089){const _0x21e23a=this[_0x3403('0x21')][_0x3403('0x27')](_0x4fc67e)[_0x3403('0x2e')]['getAllAdjacentSuggestions']();_0x5b5952[_0x3403('0x44')](..._0x21e23a[_0x3403('0x43')]((_0x11ca52,_0x1b7801)=>[..._0x11ca52,..._0x1b7801['getMarkerNames']()],[]));}_0x3f4307[_0x3403('0xf')]=_0x5b5952;}[_0x3403('0x51')](_0x5ab647){const _0x55a99d=_0x4df4b7(_0x5ab647,_0x4e0227),_0x9ac0a3=this[_0x3403('0x2c')][_0x3403('0x1a')][_0x3403('0x27')](_0x3403('0x1f')),_0x515e75=_0xac2841(_0x5ab647,_0x3403('0x9'));_0x55a99d['buttonView'][_0x3403('0x32')]({'tooltip':_0x515e75,'label':_0x515e75,'icon':_0x4969d2}),_0x55a99d['buttonView'][_0x3403('0x5a')](_0x3403('0x34'))['to'](_0x9ac0a3,_0x3403('0x1')),_0x55a99d[_0x3403('0x3d')]['on'](_0x3403('0x64'),()=>{_0x9ac0a3[_0x3403('0x64')](),this[_0x3403('0x2c')][_0x3403('0x62')][_0x3403('0x3f')][_0x3403('0x48')]();});const _0x4537c0=new _0x4ce46f(),_0x52fac5=[{'type':_0x3403('0x4e'),'model':{'withText':!0x0,'label':_0x515e75,'commandName':_0x3403('0x1f')}},{'type':_0x3403('0x2b')},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x16')),'commandName':'acceptAllSuggestions'}},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x57')),'commandName':_0x3403('0x6')}},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x5e')),'commandName':_0x3403('0x29')}},{'type':'button','model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x4b')),'commandName':_0x3403('0x37')}}];for(const _0x329ad7 of _0x52fac5){let _0x2e6c46={'type':_0x3403('0x2b')};if(_0x329ad7[_0x3403('0x2e')]){const _0x1a2674=new _0x1307b7(_0x329ad7[_0x3403('0x2e')]),_0x19e671=this['editor'][_0x3403('0x1a')][_0x3403('0x27')](_0x1a2674[_0x3403('0x49')]);_0x1a2674['bind'](_0x3403('0x34'),_0x3403('0x46'))['to'](_0x19e671,_0x3403('0x1'),_0x3403('0x46')),_0x2e6c46={'type':_0x329ad7[_0x3403('0x2f')],'model':_0x1a2674};}_0x4537c0[_0x3403('0x58')](_0x2e6c46);}_0x497d52(_0x55a99d,_0x4537c0);const _0x197410=_0x52fac5[_0x3403('0x17')](_0x4d3c6b=>null!=_0x4d3c6b['model'])[_0x3403('0xa')](_0x40b512=>this[_0x3403('0x2c')][_0x3403('0x1a')]['get'](_0x40b512['model'][_0x3403('0x49')])),_0x3fdb73=_0x55a99d[_0x3403('0x3d')];return _0x3fdb73[_0x3403('0x42')][_0x3403('0x31')](_0x3403('0x46')),_0x3fdb73[_0x3403('0x5')][_0x3403('0x31')](_0x3403('0x46')),_0x3fdb73[_0x3403('0x42')][_0x3403('0x5a')](_0x3403('0x46'))['to'](_0x9ac0a3,_0x3403('0x46')),_0x3fdb73[_0x3403('0x5')][_0x3403('0x5a')](_0x3403('0x46'))['toMany'](_0x197410,_0x3403('0x46'),(..._0x920b6a)=>_0x920b6a['some'](_0x2cd0ad=>_0x2cd0ad)),_0x55a99d['on']('execute',_0x688d03=>{this[_0x3403('0x2c')]['execute'](_0x688d03[_0x3403('0x36')][_0x3403('0x49')]),this[_0x3403('0x2c')]['editing']['view']['focus']();}),_0x55a99d;}['_initializeController'](_0x21106a){const _0x397904=this[_0x3403('0x2c')],_0x3565fb=_0x397904[_0x3403('0x45')],_0x26dc59=_0x397904[_0x3403('0xd')][_0x3403('0x27')]('Annotations'),_0x309dfa=_0x397904['plugins'][_0x3403('0x27')](_0x3403('0x8')),_0x249636=_0x397904[_0x3403('0xd')][_0x3403('0x27')]('EditorAnnotations'),_0x12d30b=_0x397904[_0x3403('0xd')]['get'](_0x32ec2d)['me'],_0x37db38=_0x3565fb[_0x3403('0x27')](_0x3403('0x1f'))[_0x3403('0x4d')],{CommentsListView:_0xa6acc4,CommentThreadInputView:_0x5efd2f}=_0x397904[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x14'));let _0x11f054,_0x3821e3;this[_0x3403('0x4c')][_0x3403('0x30')](_0x21106a['id'])?(_0x3821e3=this[_0x3403('0x4c')][_0x3403('0x27')](_0x21106a['id']),_0x11f054=_0x3821e3[_0x3403('0x28')]):(_0x11f054=new _0x37db38(_0x397904[_0x3403('0x56')],_0x21106a,_0x12d30b,{'disableComments':this[_0x3403('0x47')],'editorConfig':_0x3565fb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3565fb[_0x3403('0x27')](_0x3403('0x26')),'maxThreadTotalWeight':_0x3565fb[_0x3403('0x27')](_0x3403('0x0')),'maxCommentCharsWhenCollapsed':_0x3565fb['get'](_0x3403('0x40')),'formatDateTime':_0x23a44b(_0x3565fb[_0x3403('0x27')](_0x3403('0x56'))),'CommentView':_0x3565fb[_0x3403('0x27')]('comments')['CommentView'],'CommentsListView':_0xa6acc4,'CommentThreadInputView':_0x5efd2f}),_0x11f054[_0x3403('0x2')]['on']('execute',()=>{_0x397904[_0x3403('0x62')][_0x3403('0x3f')][_0x3403('0x48')]();}),_0x11f054[_0x3403('0x3e')]['on'](_0x3403('0x64'),()=>{_0x397904[_0x3403('0x62')]['view'][_0x3403('0x48')]();}),_0x3821e3=_0x26dc59[_0x3403('0x3a')](this[_0x3403('0x2c')][_0x3403('0x56')],_0x11f054),_0x3821e3[_0x3403('0x5a')](_0x3403('0x3b'))['to'](_0x11f054,_0x3403('0x3b')),_0x3821e3['bind'](_0x3403('0x23'))['to'](_0x11f054),_0x3821e3[_0x3403('0x5a')](_0x3403('0x2f'))['to'](_0x11f054,_0x3403('0x2f'),_0x98f3fe=>_0x3403('0x4f')+_0x98f3fe),this[_0x3403('0x4c')][_0x3403('0x32')](_0x21106a['id'],_0x3821e3));const _0x441117=_0x309dfa[_0x3403('0x7')](_0x21106a['commentThread'],_0x11f054),_0x22f0fe=new _0x2d06c2(_0x397904,_0x21106a,_0x11f054,_0x441117),_0x4e0139=_0x21106a['getAllAdjacentSuggestions']()[_0x3403('0x17')](_0x19f067=>_0x19f067[_0x3403('0x25')]);_0x11f054[_0x3403('0x35')]=_0x397904[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x63'))['_descriptionFactory'][_0x3403('0x4a')](_0x4e0139),this[_0x3403('0x20')]['set'](_0x21106a,_0x22f0fe),this['_viewToController']['set'](_0x11f054,_0x22f0fe);const _0x43611b=_0x26dc59['createAnnotation']({'view':_0x3821e3,'target':()=>{const _0x116101=[],_0x58265f=_0x21106a[_0x3403('0x61')]()[_0x3403('0x17')](_0x2b4cf2=>_0x2b4cf2['isInContent']);for(const _0x1faa86 of _0x58265f)_0x116101[_0x3403('0x44')](..._0x1faa86[_0x3403('0x50')]());return _0x47bb35(_0x397904[_0x3403('0x62')],_0x116101);},'type':()=>_0x3403('0x4f')+_0x22f0fe['view'][_0x3403('0x2f')]});_0x309dfa[_0x3403('0x5d')](_0x11f054,_0x43611b),_0x26dc59[_0x3403('0x58')](_0x43611b),_0x249636[_0x3403('0x10')](_0x43611b);}[_0x3403('0x65')](_0x7cb7a){const _0x3bc065=this[_0x3403('0x2c')]['plugins'][_0x3403('0x27')](_0x3403('0x12')),_0x1efa2c=this[_0x3403('0x20')][_0x3403('0x27')](_0x7cb7a),_0x532128=_0x1efa2c[_0x3403('0x3f')],_0x28165=_0x3bc065[_0x3403('0x5c')](_0x532128);_0x28165&&_0x3bc065[_0x3403('0x59')](_0x28165),this[_0x3403('0x20')]['delete'](_0x7cb7a),this['_viewToController'][_0x3403('0x13')](_0x532128),_0x1efa2c[_0x3403('0x1e')]();}[_0x3403('0x2a')](_0x4645c1){if(!_0x4645c1[_0x3403('0x25')]||!this[_0x3403('0x20')][_0x3403('0x30')](_0x4645c1))return;const _0x176bf5=this[_0x3403('0x2c')][_0x3403('0xd')]['get'](_0x3403('0x63')),_0x3ecb19=this[_0x3403('0x20')][_0x3403('0x27')](_0x4645c1),_0x5497f6=_0x4645c1[_0x3403('0x61')]();_0x3ecb19['view']['descriptionParts']=_0x176bf5[_0x3403('0xe')][_0x3403('0x4a')](_0x5497f6);}['destroy'](){for(const _0x19d990 of this[_0x3403('0x20')][_0x3403('0x2d')]())this[_0x3403('0x65')](_0x19d990);for(const _0x896d39 of this[_0x3403('0x4c')][_0x3403('0x18')]())_0x896d39[_0x3403('0x28')][_0x3403('0x1e')]();super[_0x3403('0x1e')]();}}
23
+ const _0x4ae6=['button','createAnnotationView','CommentsRepository','change:activeAnnotations','init','_descriptionFactory','_createUIButton','buttonView','_disableComments','registerAnnotation','head','bind','trackChanges.disableComments','set','_viewToController','push','unbind','activeMarkers','actionView','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','editor','getMarkers','activeAnnotations','isDirty','_handleControllerBuffer','values','requires','createCommentThreadController','separator','config','change:previous','_refreshActiveMarkers','suggestionUnloaded','getJoined','get','commentThread','isOn','comments.maxCommentCharsWhenCollapsed','locale','suggestionLoaded','Accept\x20all\x20selected\x20suggestions','descriptionParts','delete','CommentView','toMany','_annotationViews','add','filter','discardButton','from','map','commands','TrackChangesEditing','Accept\x20all\x20suggestions','size','value','Track\x20changes','view','acceptAllSuggestions','comments.editorConfig','reduce','Discard\x20all\x20suggestions','source','Annotations','destroy','length','suggestion-','acceptButton','_destroyController','suggestionChanged','comments','EditorAnnotations','execute','trackChanges.SuggestionThreadView','plugins','_bindAnnotationToEditors','_handleSuggestionControllerDelayed','remove','arrowView','isInContent','refreshSelectedViews','comments.maxCommentsWhenCollapsed','_initializeController','model','_updateController','trackChanges','getFirstRange','previous','switchbutton','clear','getAllAdjacentSuggestions','acceptSelectedSuggestions','define','getSuggestion','discardAllSuggestions','focus','lowest','type','mainView','editing','has','keys','_suggestionToController','innerView','CommentsUI','commandName','listenTo','componentFactory','getMarkerNames','isEnabled'];(function(_0x34d9a5,_0x4ae6f6){const _0x39eed5=function(_0x4daa1b){while(--_0x4daa1b){_0x34d9a5['push'](_0x34d9a5['shift']());}};_0x39eed5(++_0x4ae6f6);}(_0x4ae6,0x142));const _0x39ee=function(_0x34d9a5,_0x4ae6f6){_0x34d9a5=_0x34d9a5-0x0;let _0x39eed5=_0x4ae6[_0x34d9a5];return _0x39eed5;};import{Plugin as _0x3b50cf}from'ckeditor5/src/core';import{Collection as _0x2c5c98}from'ckeditor5/src/utils';import{Model as _0x4b52de,SplitButtonView as _0x344626,createDropdown as _0x4220ef,addListToDropdown as _0x272ddf}from'ckeditor5/src/ui';import{Users as _0x13e270,getDateTimeFormatter as _0x317fdb,getAllMarkersDomElementsSorted as _0x1a882d}from'ckeditor5-collaboration/src/collaboration-core';import _0x128a46 from'./trackchangesediting';import _0x3f9a11 from'./ui/suggestioncontroller';import _0x241d9c from'./ui/view/suggestionthreadview';import{getTranslation as _0x2ac648}from'./utils/common-translations';import _0x49ff55 from'../theme/icons/track-changes.svg';export default class d extends _0x3b50cf{static get[_0x39ee('0x26')](){return[_0x128a46,_0x13e270,_0x39ee('0xd'),_0x39ee('0x4b'),_0x39ee('0x53')];}static get['pluginName'](){return _0x39ee('0x1e');}constructor(_0x5cc2e1){super(_0x5cc2e1),this[_0x39ee('0x3')]=new Map(),this[_0x39ee('0x19')]=new Map(),this[_0x39ee('0x39')]=new Map(),this[_0x39ee('0x24')]=new Map();const _0x3804b8=this['editor'][_0x39ee('0x29')];_0x3804b8[_0x39ee('0x68')](_0x39ee('0x55'),_0x241d9c),_0x3804b8['define'](_0x39ee('0x17'),!0x1),this[_0x39ee('0x13')]=_0x3804b8[_0x39ee('0x2e')]('trackChanges.disableComments');}[_0x39ee('0x58')](_0x5b6586,_0x5358fc){0x0===this[_0x39ee('0x24')][_0x39ee('0x42')]&&setTimeout(()=>{for(const [_0x575ae2,_0x3731f0]of this[_0x39ee('0x24')]){const _0x31885c=this[_0x39ee('0x3')]['has'](_0x575ae2);_0x31885c||_0x3731f0?_0x31885c&&_0x3731f0&&this[_0x39ee('0x50')](_0x575ae2):this[_0x39ee('0x5e')](_0x575ae2);}this[_0x39ee('0x20')]['plugins'][_0x39ee('0x2e')](_0x39ee('0x53'))[_0x39ee('0x5c')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x39ee('0x65')]();},0xa),this[_0x39ee('0x24')][_0x39ee('0x18')](_0x5b6586,_0x5358fc);}[_0x39ee('0xf')](){const _0xa4a85a=this['editor'],_0x2fa0ec=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x40')),_0x15f7a6=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')]('Annotations'),_0x26a738=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x53')),_0x159913=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0xd'));_0xa4a85a['ui'][_0x39ee('0x8')][_0x39ee('0x3a')](_0x39ee('0x61'),_0x2f8129=>this[_0x39ee('0x11')](_0x2f8129)),_0x26a738['addSourceCollector'](()=>{const _0x260756=[];for(const [_0x2d191c,_0x2bdf8b]of Array[_0x39ee('0x3d')](this['_suggestionToController'])){const _0xe18db7=_0x2d191c[_0x39ee('0x66')](),_0x4a4315=[];for(const _0x15930a of _0xe18db7){if(!_0x15930a[_0x39ee('0x5b')])continue;if(_0x15930a['isMultiRange']){_0x4a4315['push'](..._0x15930a['getRanges']());continue;}const _0x3e55fd=_0x15930a[_0x39ee('0x62')]();if(_0x4a4315[_0x39ee('0x4d')]>0x0){const _0x53d1da=_0x4a4315[0x0][_0x39ee('0x2d')](_0x3e55fd);if(_0x53d1da){_0x4a4315[0x0]=_0x53d1da;continue;}}_0x4a4315['push'](_0x3e55fd);}_0x260756[_0x39ee('0x1a')]([_0x2bdf8b[_0x39ee('0x45')],_0x4a4315]);}return _0x260756;}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x33'),(_0x18bde1,_0x2f9404)=>{this['listenTo'](_0x2f9404,_0x39ee('0x2a'),(_0xe16ec0,_0x367bc3,_0x3402e0,_0x30695e)=>{_0x2f9404['isInContent']&&(null==_0x3402e0?(this[_0x39ee('0x60')](_0x30695e[_0x39ee('0x15')]),this[_0x39ee('0x58')](_0x2f9404,!0x1)):(this[_0x39ee('0x60')](_0x3402e0[_0x39ee('0x15')]),this[_0x39ee('0x58')](_0x2f9404,!0x0)));}),null===_0x2f9404[_0x39ee('0x63')]?this['_handleSuggestionControllerDelayed'](_0x2f9404,!0x1):this[_0x39ee('0x60')](_0x2f9404[_0x39ee('0x15')]);}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x2c'),(_0x68aee4,_0x41f42e,_0x163e5b)=>{this['stopListening'](_0x41f42e,_0x39ee('0x2a')),this['_handleControllerBuffer'][_0x39ee('0x36')](_0x41f42e);const _0x4a459e=_0x163e5b?_0x163e5b['head']:_0x41f42e,_0x4dbdb7=this['_suggestionToController'][_0x39ee('0x2e')](_0x4a459e);null!==_0x163e5b&&this[_0x39ee('0x60')](_0x4a459e),null===_0x163e5b&&_0x4dbdb7&&this[_0x39ee('0x50')](_0x41f42e);}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x51'),(_0x147c40,_0x2672b8)=>{this['_updateController'](_0x2672b8);}),this[_0x39ee('0x7')](_0x15f7a6,_0x39ee('0xe'),()=>{this['_refreshActiveMarkers']();}),this[_0x39ee('0x7')](_0x159913,'addComment',(_0x5f0dce,{threadId:_0x4d00fd,isFromAdapter:_0x3dd5f4})=>{if(_0x3dd5f4||!_0x2fa0ec['hasSuggestion'](_0x4d00fd))return;const _0x4d6b58=_0x2fa0ec[_0x39ee('0x69')](_0x4d00fd);this[_0x39ee('0x3')][_0x39ee('0x2e')](_0x4d6b58)[_0x39ee('0x45')][_0x39ee('0x6b')]();},{'priority':_0x39ee('0x6c')});}[_0x39ee('0x2b')](){const _0x56722a=this[_0x39ee('0x20')][_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x4b')),_0x22c037=this[_0x39ee('0x20')]['plugins'][_0x39ee('0x2e')]('TrackChangesEditing'),_0x345ba6=Array[_0x39ee('0x3d')](_0x56722a[_0x39ee('0x22')],_0x45b6a8=>_0x45b6a8[_0x39ee('0x4')])['filter'](_0x19eeef=>this[_0x39ee('0x19')][_0x39ee('0x1')](_0x19eeef)),_0x5a555d=[];for(const _0x2d4d52 of _0x345ba6){const _0x107c06=this[_0x39ee('0x19')][_0x39ee('0x2e')](_0x2d4d52)[_0x39ee('0x5f')]['getAllAdjacentSuggestions']();_0x5a555d['push'](..._0x107c06[_0x39ee('0x48')]((_0x1af418,_0x1d4b77)=>[..._0x1af418,..._0x1d4b77[_0x39ee('0x9')]()],[]));}_0x22c037[_0x39ee('0x1c')]=_0x5a555d;}[_0x39ee('0x11')](_0x2ff9a6){const _0x139dfd=_0x4220ef(_0x2ff9a6,_0x344626),_0x28c9ca=this[_0x39ee('0x20')][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x39ee('0x61')),_0x43a850=_0x2ac648(_0x2ff9a6,_0x39ee('0x44'));_0x139dfd[_0x39ee('0x12')][_0x39ee('0x18')]({'tooltip':_0x43a850,'label':_0x43a850,'icon':_0x49ff55}),_0x139dfd[_0x39ee('0x12')][_0x39ee('0x16')](_0x39ee('0x30'))['to'](_0x28c9ca,_0x39ee('0x43')),_0x139dfd[_0x39ee('0x12')]['on'](_0x39ee('0x54'),()=>{_0x28c9ca['execute'](),this[_0x39ee('0x20')][_0x39ee('0x0')][_0x39ee('0x45')]['focus']();});const _0x24b477=new _0x2c5c98(),_0x35b674=[{'type':_0x39ee('0x64'),'model':{'withText':!0x0,'label':_0x43a850,'commandName':_0x39ee('0x61')}},{'type':_0x39ee('0x28')},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x41')),'commandName':_0x39ee('0x46')}},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x34')),'commandName':_0x39ee('0x67')}},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x49')),'commandName':_0x39ee('0x6a')}},{'type':'button','model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x1f')),'commandName':'discardSelectedSuggestions'}}];for(const _0x219de7 of _0x35b674){let _0x5c11c7={'type':_0x39ee('0x28')};if(_0x219de7[_0x39ee('0x5f')]){const _0x10ed13=new _0x4b52de(_0x219de7[_0x39ee('0x5f')]),_0x4b3740=this[_0x39ee('0x20')][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x10ed13[_0x39ee('0x6')]);_0x10ed13['bind']('isOn','isEnabled')['to'](_0x4b3740,_0x39ee('0x43'),_0x39ee('0xa')),_0x5c11c7={'type':_0x219de7[_0x39ee('0x6d')],'model':_0x10ed13};}_0x24b477['add'](_0x5c11c7);}_0x272ddf(_0x139dfd,_0x24b477);const _0x3bfb09=_0x35b674[_0x39ee('0x3b')](_0x4a9c2b=>null!=_0x4a9c2b[_0x39ee('0x5f')])[_0x39ee('0x3e')](_0x5c36c7=>this['editor'][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x5c36c7['model'][_0x39ee('0x6')])),_0x5a7d17=_0x139dfd[_0x39ee('0x12')];return _0x5a7d17[_0x39ee('0x1d')][_0x39ee('0x1b')]('isEnabled'),_0x5a7d17[_0x39ee('0x5a')][_0x39ee('0x1b')](_0x39ee('0xa')),_0x5a7d17['actionView']['bind']('isEnabled')['to'](_0x28c9ca,_0x39ee('0xa')),_0x5a7d17[_0x39ee('0x5a')][_0x39ee('0x16')](_0x39ee('0xa'))[_0x39ee('0x38')](_0x3bfb09,_0x39ee('0xa'),(..._0x17606b)=>_0x17606b['some'](_0x544be2=>_0x544be2)),_0x139dfd['on']('execute',_0x5796fe=>{this[_0x39ee('0x20')][_0x39ee('0x54')](_0x5796fe[_0x39ee('0x4a')]['commandName']),this[_0x39ee('0x20')][_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0x139dfd;}['_initializeController'](_0x121b1c){const _0x585e8f=this[_0x39ee('0x20')],_0x5f49b4=_0x585e8f[_0x39ee('0x29')],_0x11090e=_0x585e8f[_0x39ee('0x56')][_0x39ee('0x2e')]('Annotations'),_0x39b16a=_0x585e8f['plugins'][_0x39ee('0x2e')](_0x39ee('0xd')),_0x226814=_0x585e8f[_0x39ee('0x56')]['get'](_0x39ee('0x53')),_0x1edee1=_0x585e8f[_0x39ee('0x56')]['get'](_0x13e270)['me'],_0x499a36=_0x5f49b4['get'](_0x39ee('0x61'))['SuggestionThreadView'],{CommentsListView:_0xb24366,CommentThreadInputView:_0x5bc51d}=_0x585e8f[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x5'));let _0x12cd29,_0xbbe3e9;this['_annotationViews']['has'](_0x121b1c['id'])?(_0xbbe3e9=this[_0x39ee('0x39')][_0x39ee('0x2e')](_0x121b1c['id']),_0x12cd29=_0xbbe3e9[_0x39ee('0x6e')]):(_0x12cd29=new _0x499a36(_0x585e8f[_0x39ee('0x32')],_0x121b1c,_0x1edee1,{'disableComments':this[_0x39ee('0x13')],'editorConfig':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x47')),'maxCommentsWhenCollapsed':_0x5f49b4['get'](_0x39ee('0x5d')),'maxThreadTotalWeight':_0x5f49b4[_0x39ee('0x2e')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x31')),'formatDateTime':_0x317fdb(_0x5f49b4['get'](_0x39ee('0x32'))),'CommentView':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x52'))[_0x39ee('0x37')],'CommentsListView':_0xb24366,'CommentThreadInputView':_0x5bc51d}),_0x12cd29[_0x39ee('0x4f')]['on'](_0x39ee('0x54'),()=>{_0x585e8f[_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0x12cd29[_0x39ee('0x3c')]['on']('execute',()=>{_0x585e8f[_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0xbbe3e9=_0x11090e[_0x39ee('0xc')](this[_0x39ee('0x20')][_0x39ee('0x32')],_0x12cd29),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x23'))['to'](_0x12cd29,'isDirty'),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x4d'))['to'](_0x12cd29),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x6d'))['to'](_0x12cd29,'type',_0x336d8f=>_0x39ee('0x4e')+_0x336d8f),this[_0x39ee('0x39')][_0x39ee('0x18')](_0x121b1c['id'],_0xbbe3e9));const _0x1af3c6=_0x39b16a[_0x39ee('0x27')](_0x121b1c[_0x39ee('0x2f')],_0x12cd29),_0x5ef201=new _0x3f9a11(_0x585e8f,_0x121b1c,_0x12cd29,_0x1af3c6),_0x131699=_0x121b1c['getAllAdjacentSuggestions']()[_0x39ee('0x3b')](_0x5921c9=>_0x5921c9[_0x39ee('0x5b')]);_0x12cd29['descriptionParts']=_0x585e8f[_0x39ee('0x56')]['get'](_0x39ee('0x40'))[_0x39ee('0x10')]['getDescriptions'](_0x131699),this[_0x39ee('0x3')]['set'](_0x121b1c,_0x5ef201),this[_0x39ee('0x19')]['set'](_0x12cd29,_0x5ef201);const _0x50ef7a=_0x11090e['createAnnotation']({'view':_0xbbe3e9,'target':()=>{const _0x5b4015=[],_0x3e624c=_0x121b1c['getAllAdjacentSuggestions']()[_0x39ee('0x3b')](_0x692759=>_0x692759['isInContent']);for(const _0x3fa12c of _0x3e624c)_0x5b4015[_0x39ee('0x1a')](..._0x3fa12c[_0x39ee('0x21')]());return _0x1a882d(_0x585e8f[_0x39ee('0x0')],_0x5b4015);},'type':()=>'suggestion-'+_0x5ef201[_0x39ee('0x45')]['type']});_0x39b16a[_0x39ee('0x57')](_0x12cd29,_0x50ef7a),_0x11090e[_0x39ee('0x3a')](_0x50ef7a),_0x226814[_0x39ee('0x14')](_0x50ef7a);}[_0x39ee('0x50')](_0x162d64){const _0x48d820=this['editor'][_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x4b')),_0x401a52=this[_0x39ee('0x3')][_0x39ee('0x2e')](_0x162d64),_0x514b54=_0x401a52['view'],_0x179ef6=_0x48d820['getByInnerView'](_0x514b54);_0x179ef6&&_0x48d820[_0x39ee('0x59')](_0x179ef6),this[_0x39ee('0x3')][_0x39ee('0x36')](_0x162d64),this[_0x39ee('0x19')]['delete'](_0x514b54),_0x401a52[_0x39ee('0x4c')]();}[_0x39ee('0x60')](_0x4d4d60){if(!_0x4d4d60[_0x39ee('0x5b')]||!this[_0x39ee('0x3')]['has'](_0x4d4d60))return;const _0xec84c1=this[_0x39ee('0x20')][_0x39ee('0x56')]['get']('TrackChangesEditing'),_0x2aba3f=this['_suggestionToController'][_0x39ee('0x2e')](_0x4d4d60),_0x915fcc=_0x4d4d60[_0x39ee('0x66')]();_0x2aba3f[_0x39ee('0x45')][_0x39ee('0x35')]=_0xec84c1[_0x39ee('0x10')]['getDescriptions'](_0x915fcc);}[_0x39ee('0x4c')](){for(const _0x5e9bb9 of this[_0x39ee('0x3')][_0x39ee('0x2')]())this['_destroyController'](_0x5e9bb9);for(const _0x1c0e17 of this[_0x39ee('0x39')][_0x39ee('0x25')]())_0x1c0e17[_0x39ee('0x6e')][_0x39ee('0x4c')]();super[_0x39ee('0x4c')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e99=['getRanges','acceptSuggestion','_pendingAction','PENDING_ACTION_SUGGESTION','_removePendingAction','isEnabled','canDiscard','unbind','commentThreadController','locale','add','_acceptCommand','discardSuggestion','execute','_discardCommand','commands','destroy','model','canAccept','get','canEditAt','plugins','view','_editor','_setPendingAction','isDirty','listenTo','PendingActions','bind'];(function(_0x1a3cdf,_0x1e9920){const _0x11651e=function(_0x523105){while(--_0x523105){_0x1a3cdf['push'](_0x1a3cdf['shift']());}};_0x11651e(++_0x1e9920);}(_0x1e99,0xd2));const _0x1165=function(_0x1a3cdf,_0x1e9920){_0x1a3cdf=_0x1a3cdf-0x0;let _0x11651e=_0x1e99[_0x1a3cdf];return _0x11651e;};import{ObservableMixin as _0x286cb9}from'ckeditor5/src/utils';import{getTranslation as _0x4e8f9c}from'../utils/common-translations';export default class qt extends _0x286cb9(){constructor(_0x2622a4,_0x51deab,_0x541e80,_0x4e1e75){super(),this[_0x1165('0xa')]=_0x51deab,this[_0x1165('0xf')]=_0x541e80,this[_0x1165('0x1')]=_0x4e1e75,this[_0x1165('0x10')]=_0x2622a4,this['_acceptCommand']=_0x2622a4[_0x1165('0x8')][_0x1165('0xc')]('acceptSuggestion'),this['_discardCommand']=_0x2622a4['commands']['get']('discardSuggestion'),this[_0x1165('0xf')]['bind'](_0x1165('0x1b'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x146ff4,_0x224664)=>_0x146ff4||_0x224664),this[_0x1165('0xf')][_0x1165('0x15')]('canAccept')['to'](this['_acceptCommand'],_0x1165('0x1b'),_0x5057c2=>_0x5057c2&&this[_0x1165('0x10')]['model'][_0x1165('0xd')](_0x51deab[_0x1165('0x16')]())),this['view'][_0x1165('0x15')](_0x1165('0x1c'))['to'](this['_discardCommand'],_0x1165('0x1b'),_0x96ede=>_0x96ede&&this[_0x1165('0x10')]['model']['canEditAt'](_0x51deab[_0x1165('0x16')]())),this[_0x1165('0x18')]=null,_0x541e80[_0x1165('0x12')]&&this[_0x1165('0x11')](),this[_0x1165('0x13')](_0x541e80,_0x1165('0x17'),()=>this[_0x1165('0x17')]()),this[_0x1165('0x13')](_0x541e80,_0x1165('0x5'),()=>this[_0x1165('0x5')]()),this[_0x1165('0x13')](_0x541e80,'change:isDirty',()=>{_0x541e80[_0x1165('0x12')]?this[_0x1165('0x11')]():this['_removePendingAction']();});}[_0x1165('0x17')](){this[_0x1165('0x4')][_0x1165('0x6')](this[_0x1165('0xa')]['id']);}[_0x1165('0x5')](){this[_0x1165('0x7')][_0x1165('0x6')](this[_0x1165('0xa')]['id']);}[_0x1165('0x9')](){this['view'][_0x1165('0x0')]('isEnabled'),this[_0x1165('0xf')][_0x1165('0x0')](_0x1165('0xb')),this['view'][_0x1165('0x0')](_0x1165('0x1c')),this['stopListening'](),this[_0x1165('0x1')]['destroy'](),this[_0x1165('0x18')]&&this[_0x1165('0x1a')]();}['_setPendingAction'](){const _0x185b13=_0x4e8f9c(this[_0x1165('0x10')][_0x1165('0x2')],_0x1165('0x19'));this[_0x1165('0x18')]=this[_0x1165('0x10')]['plugins'][_0x1165('0xc')](_0x1165('0x14'))[_0x1165('0x3')](_0x185b13);}['_removePendingAction'](){null!==this[_0x1165('0x18')]&&this[_0x1165('0x10')][_0x1165('0xe')]['get'](_0x1165('0x14'))['remove'](this[_0x1165('0x18')]),this['_pendingAction']=null;}}
23
+ const _0x3080=['_pendingAction','canAccept','stopListening','PENDING_ACTION_SUGGESTION','get','model','getRanges','bind','canEditAt','isDirty','isEnabled','_discardCommand','commentThreadController','discardSuggestion','canDiscard','commands','unbind','_acceptCommand','PendingActions','listenTo','destroy','plugins','_removePendingAction','execute','add','locale','acceptSuggestion','remove','view','_editor','_setPendingAction'];(function(_0x25737e,_0x30803d){const _0x2cc0c3=function(_0x1663f2){while(--_0x1663f2){_0x25737e['push'](_0x25737e['shift']());}};_0x2cc0c3(++_0x30803d);}(_0x3080,0x101));const _0x2cc0=function(_0x25737e,_0x30803d){_0x25737e=_0x25737e-0x0;let _0x2cc0c3=_0x3080[_0x25737e];return _0x2cc0c3;};import{ObservableMixin as _0x3ff8cc}from'ckeditor5/src/utils';import{getTranslation as _0x1e699f}from'../utils/common-translations';export default class qt extends _0x3ff8cc(){constructor(_0x14b9a0,_0x26ac70,_0x5b72be,_0xb08f1a){super(),this['model']=_0x26ac70,this[_0x2cc0('0x13')]=_0x5b72be,this[_0x2cc0('0x3')]=_0xb08f1a,this['_editor']=_0x14b9a0,this[_0x2cc0('0x8')]=_0x14b9a0[_0x2cc0('0x6')][_0x2cc0('0x1a')](_0x2cc0('0x11')),this['_discardCommand']=_0x14b9a0[_0x2cc0('0x6')][_0x2cc0('0x1a')](_0x2cc0('0x4')),this[_0x2cc0('0x13')][_0x2cc0('0x1d')]('isEnabled')['to'](this['_acceptCommand'],this[_0x2cc0('0x2')],(_0x43c87f,_0x4ec340)=>_0x43c87f||_0x4ec340),this[_0x2cc0('0x13')][_0x2cc0('0x1d')]('canAccept')['to'](this[_0x2cc0('0x8')],_0x2cc0('0x1'),_0x233fb6=>_0x233fb6&&this['_editor']['model'][_0x2cc0('0x1e')](_0x26ac70[_0x2cc0('0x1c')]())),this[_0x2cc0('0x13')][_0x2cc0('0x1d')](_0x2cc0('0x5'))['to'](this[_0x2cc0('0x2')],'isEnabled',_0x2a0f5b=>_0x2a0f5b&&this[_0x2cc0('0x14')][_0x2cc0('0x1b')][_0x2cc0('0x1e')](_0x26ac70[_0x2cc0('0x1c')]())),this['_pendingAction']=null,_0x5b72be[_0x2cc0('0x0')]&&this[_0x2cc0('0x15')](),this[_0x2cc0('0xa')](_0x5b72be,_0x2cc0('0x11'),()=>this[_0x2cc0('0x11')]()),this['listenTo'](_0x5b72be,_0x2cc0('0x4'),()=>this['discardSuggestion']()),this[_0x2cc0('0xa')](_0x5b72be,'change:isDirty',()=>{_0x5b72be[_0x2cc0('0x0')]?this[_0x2cc0('0x15')]():this['_removePendingAction']();});}[_0x2cc0('0x11')](){this[_0x2cc0('0x8')]['execute'](this[_0x2cc0('0x1b')]['id']);}[_0x2cc0('0x4')](){this['_discardCommand'][_0x2cc0('0xe')](this[_0x2cc0('0x1b')]['id']);}[_0x2cc0('0xb')](){this['view'][_0x2cc0('0x7')](_0x2cc0('0x1')),this['view']['unbind'](_0x2cc0('0x17')),this[_0x2cc0('0x13')][_0x2cc0('0x7')](_0x2cc0('0x5')),this[_0x2cc0('0x18')](),this[_0x2cc0('0x3')][_0x2cc0('0xb')](),this['_pendingAction']&&this[_0x2cc0('0xd')]();}[_0x2cc0('0x15')](){const _0x2667de=_0x1e699f(this['_editor'][_0x2cc0('0x10')],_0x2cc0('0x19'));this[_0x2cc0('0x16')]=this[_0x2cc0('0x14')][_0x2cc0('0xc')][_0x2cc0('0x1a')](_0x2cc0('0x9'))[_0x2cc0('0xf')](_0x2667de);}[_0x2cc0('0xd')](){null!==this[_0x2cc0('0x16')]&&this[_0x2cc0('0x14')][_0x2cc0('0xc')]['get'](_0x2cc0('0x9'))[_0x2cc0('0x12')](this[_0x2cc0('0x16')]),this[_0x2cc0('0x16')]=null;}}