@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231027.0 → 0.0.0-nightly-20231028.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c97=['formatBlock:chain','length','ck-suggestion-marker','range','_createSuggestion','createSelection','markInlineFormat','addRange','always','isCollapsed','markerToData','lowest','buildSuggestion','some','requires','insertion','model','trackChanges.mergeNestedSuggestions','substr','rootName','item','formatInline:accept','high','mapper','parent','isMultiRange','editingDowncast','containsItem','trackChanges','CommentsRepository','size','element','isBefore','detach','consume','formatInline:chain','$marker','ready','deletion:accept','return','listenTo','getMultiRangeId','hasComments','execute','deletion:chain','addSuggestionData','containsRange','_splitMarkerName','toJSON','registerPostFixer','getFirstMarker','fromCharCode','getItems','getAttribute','filter','_setSuggestionRange','push','activeMarkers','ck-suggestion-marker-','_adapter','getUser','_suggestions','originalSuggestionId','suggestionLoaded','collaboration.channelId','head','stopListening','commentThread','rejected','removeMarker','isAtEnd','elementToElement','adapter','init','formatBlock:','oldRange','markMultiRangeInsertion','map','editing','highest','previous','_enabledCommands','_customCallbacks','markerNameToElements','markDeletion','multi','value','add','getAllAdjacentSuggestions','_defaultCallbacks','_addThreadToSuggestion','isLimit','consumable','suggestionChanged','setTo','low','$textProxy','acceptAllSuggestions','deletion:join','dataDowncast','clear','getCustomProperty','_breakSuggestionMarker','unbindElementFromMarkerName','update:suggestion','assign','@external','insert','includes','removeComment','writer','removeMarkers','type','addUser','accepted','Users','acceptSuggestion','getRanges','getFirstRange','suggestion','_registerDefaultCallbacks','PENDING_ACTION_SUGGESTION','commands','addMarkerName','locale','isIntersectingWithRange','isDocumentOperation','trackChanges.trackFormatChanges','before','deletion','_setSuggestionData','track-changes-adapter-already-set','deleteContent','author','markBlockFormat','name','getDifference','discardSelectedSuggestions','enableReadOnlyMode','showSuggestionHighlights','_saved','backward','_onDiscard','_model','getIntersection','createRangeIn','_isDataLoaded','skipNestingCheck','markerName','insertion:discard','track-changes-suggestion-data-mismatch','updateMarker','_updateSuggestionData','toViewElement','removeMarker:suggestion:formatBlock','values','keys','normal','getAncestors','marker-count','then','selection','fire','trackChangesCommand','suggestionUnloaded','subType','end','get','_getAuthorFromId','isInContent','hasSuggestion','removed','_joinSuggestions','addMarker:suggestion:formatBlock','_suggestionState','removeClass','nodeAfter','isArray','setSelection','formatInline:','splice','_rangeIsInLocalUserInsertion','getMarkers','authorName','containerElement','isOwn','notReady','after','creator','conversion','getSuggestionCallback','stop','data','addClass','_refreshSuggestionsChain','open','isUndo','forward','getSuggestion','root','from','isRemovable','isInsideObject','insertion:chain','define','_findSuggestions','getCommentThread','suggestion-type','PendingActions','splitPosition','isNextTo','isObject','_cutOutSuggestionMarker','suggestion:','options','getChanges','updateSuggestion','deletion:discard','getSuggestions','nodeBefore','upcast','containsRangeInObject','elementEnd','accept','has','next','getShiftedBy','_removeSuggestion','ck-suggestion-marker-formatBlock','insertion:accept','batch','delete','insertContent','addMarker','createPositionAt','discardSuggestion','insertion:','markMultiRangeBlockFormat','schema','createElement','split','isAfter','clone','multipleBlocks','formatBlock:accept','attributes','config','change','elementStart','_trackFormatChanges','for','track-changes-adapter-missing-getsuggestion','_getSuggestionData','markers','start','$graveyard','formatBlock:discard','sort','_editor','default','formatBlock','_suggestionFactory','markerToHighlight','position','refresh','editor','_addSuggestionMarker','getChangedMarkers','createPositionBefore','chain','differ','_checkSuggestionCorrectness','formatGroupId','howMany','ck-suggestion-marker--active','set','remove','enableCommand','_getExternalAuthor','containsPosition','fetchCommentThread','getRange','acceptSelectedSuggestions','addSuggestion','getNearestSelectionRange','unbind','data-suggestion','discardAllSuggestions','isBlock','bindElementToMarker','every','move','formatInline:join','tablePasteChainId','track-changes-command-not-found','markerReady','isAtStart','discard','newRange','formatInline','addCommentThread','_isForcedDefaultExecutionBlock','applyOperation','track-changes-suggestion-not-found','createRange','external:','forceDefaultExecution','createdAt','isSelectable','dataReady','isEqual','plugins','document','deletion:','hasCommentThread','markInsertion','resolve','_commentsRepository','_mergeNestedSuggestions','join','_joinWithAdjacentSuggestions'];(function(_0x490a12,_0x2c9718){const _0x2fd1bf=function(_0x40eb21){while(--_0x40eb21){_0x490a12['push'](_0x490a12['shift']());}};_0x2fd1bf(++_0x2c9718);}(_0x2c97,0x197));const _0x2fd1=function(_0x490a12,_0x2c9718){_0x490a12=_0x490a12-0x0;let _0x2fd1bf=_0x2c97[_0x490a12];return _0x2fd1bf;};import{Plugin as _0x103552,PendingActions as _0x5a0b5c}from'ckeditor5/src/core';import{LiveRange as _0x32cb49}from'ckeditor5/src/engine';import{CKEditorError as _0x394079,uid as _0x73fc4a,priorities as _0x1e9791,logWarning as _0x243937}from'ckeditor5/src/utils';import{toWidget as _0x3db82a}from'ckeditor5/src/widget';import{Users as _0x3c36a6,hashObject as _0x486f3d}from'ckeditor5-collaboration/src/collaboration-core';import _0x5b82c5 from'./commands/trackchangescommand';import _0xc258be from'./commands/acceptsuggestioncommand';import _0xaddc21 from'./commands/discardsuggestioncommand';import _0x47b609 from'./commands/executeonallsuggestionscommand';import _0x5b05 from'./commands/executeonselectedsuggestionscommand';import _0x1593d2 from'./suggestion';import _0x2479ea from'./suggestiondescriptionfactory';import _0x24687a from'./integrations/aiassistant';import _0x163e3f from'./integrations/alignment';import _0x512e8b from'./integrations/basicstyles';import _0x4996b7 from'./integrations/blockquote';import _0x26bf2f from'./integrations/ckbox';import _0x1d6a27 from'./integrations/codeblock';import _0x4c6e79 from'./integrations/comments';import _0x3290ec from'./integrations/deletecommand';import _0x55d9f8 from'./integrations/documentlist';import _0x5462ba from'./integrations/entercommand';import _0x40e651 from'./integrations/findandreplace';import _0x5cd3e5 from'./integrations/font';import _0x5c40be from'./integrations/formatpainter';import _0x47ec56 from'./integrations/heading';import _0x1aacfc from'./integrations/highlight';import _0xa7870b from'./integrations/horizontalline';import _0x44390f from'./integrations/htmlembed';import _0x15dfe0 from'./integrations/image';import _0x218ea4 from'./integrations/imagereplace';import _0x10ef12 from'./integrations/importword';import _0xac6086 from'./integrations/indent';import _0x1ee0ef from'./integrations/inputcommand';import _0xa7c0e2 from'./integrations/link';import _0x300ea4 from'./integrations/list';import _0x25dfaa from'./integrations/listproperties';import _0xa86382 from'./integrations/mediaembed';import _0x2ff9eb from'./integrations/mention';import _0x20e499 from'./integrations/pagebreak';import _0x56918e from'./integrations/paragraph';import _0x509ced from'./integrations/removeformat';import _0x309eda from'./integrations/restrictededitingmode';import _0x3ae348 from'./integrations/shiftentercommand';import _0x16aecb from'./integrations/standardeditingmode';import _0xf17187 from'./integrations/style';import _0x294a5d from'./integrations/table';import _0x36039f from'./integrations/tablemergesplit';import _0x449fef from'./integrations/tableheadings';import _0x5745f6 from'./integrations/tableclipboard';import _0xe316d from'./integrations/tablecolumnresize';import _0x40bf28 from'./integrations/template';import _0x35ff03 from'./integrations/tableofcontents';import _0x5a94e5 from'./integrations/title';import _0xbe8d95 from'./integrations/undo';import{getTranslation as _0x75327f}from'./utils/common-translations';import _0x4ab31a from'./integrations/tablecaption';import _0x47ae24 from'./integrations/documentlistproperties';import _0x496a2c from'./integrations/tableproperties';import{isEqual as _0xb8c440}from'lodash-es';export default class p extends _0x103552{static get[_0x2fd1('0xf9')](){return[_0x2fd1('0x108'),_0x3c36a6,_0x5a0b5c,_0x24687a,_0x163e3f,_0x512e8b,_0x4996b7,_0x26bf2f,_0x1d6a27,_0x4c6e79,_0x3290ec,_0x55d9f8,_0x47ae24,_0x5462ba,_0x40e651,_0x5cd3e5,_0x5c40be,_0x47ec56,_0x1aacfc,_0xa7870b,_0x44390f,_0x15dfe0,_0x218ea4,_0x10ef12,_0xac6086,_0x1ee0ef,_0xa7c0e2,_0x300ea4,_0x25dfaa,_0xa86382,_0x2ff9eb,_0x20e499,_0x56918e,_0x509ced,_0x309eda,_0x3ae348,_0x16aecb,_0xf17187,_0x294a5d,_0x36039f,_0x449fef,_0x4ab31a,_0x5745f6,_0xe316d,_0x35ff03,_0x496a2c,_0x40bf28,_0x5a94e5,_0xbe8d95];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4f26f0){function _0x78cca3(_0x4afa55){return _0x4afa55[_0x2fd1('0x138')](_0x4adba7=>String[_0x2fd1('0x11e')](_0x4adba7))[_0x2fd1('0xe9')]('');}super(_0x4f26f0),this[_0x2fd1('0xbd')](_0x2fd1('0x124'),[]),this['on']('change:activeMarkers',(_0x12ff91,_0x20e004,_0x48dce3,_0x5b14f2)=>{this[_0x2fd1('0x39')][_0x2fd1('0xa1')](()=>{for(const _0x99cecf of[..._0x5b14f2,..._0x48dce3])this[_0x2fd1('0x39')][_0x2fd1('0xa7')]['has'](_0x99cecf)&&_0x4f26f0[_0x2fd1('0x139')]['reconvertMarker'](_0x99cecf);});}),this['_descriptionFactory']=new _0x2479ea(this[_0x2fd1('0xb3')]['model']['schema'],this['editor']['locale']),this[_0x2fd1('0x126')]=null,this[_0x2fd1('0xaf')]=new Bt(this[_0x2fd1('0xb3')]),this[_0x2fd1('0x128')]=new Map(),this[_0x2fd1('0xe7')]=_0x4f26f0[_0x2fd1('0xe1')][_0x2fd1('0x51')](_0x2fd1('0x108')),this[_0x2fd1('0x13c')]=new Set(),this[_0x2fd1('0x39')]=this[_0x2fd1('0xb3')][_0x2fd1('0xfb')],this[_0x2fd1('0x58')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4f26f0[_0x2fd1('0xa0')][_0x2fd1('0x76')](_0x2fd1('0x29'),_0x2fd1('0xad')),this[_0x2fd1('0xa3')]=_0x4f26f0[_0x2fd1('0xa0')][_0x2fd1('0x51')](_0x2fd1('0x29')),_0x4f26f0[_0x2fd1('0xa0')][_0x2fd1('0x76')](_0x2fd1('0xfc'),!0x0),this['_mergeNestedSuggestions']=_0x4f26f0[_0x2fd1('0xa0')][_0x2fd1('0x51')](_0x2fd1('0xfc')),this[_0x2fd1('0x4d')]=new _0x5b82c5(_0x4f26f0,this[_0x2fd1('0x13c')]),this[_0x78cca3([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x78cca3([0x34,0x30,0x34,0x36,0x32,0x30,0x35,0x34]);}[_0x2fd1('0x134')](){const _0x301e3b=this['editor'];_0x301e3b[_0x2fd1('0x67')][_0x2fd1('0xa4')](_0x2fd1('0x105'))[_0x2fd1('0xb0')]({'model':_0x2fd1('0x21'),'view':_0x22cb09=>{const {id:_0x53df14,type:_0xb7c712}=this['_splitMarkerName'](_0x22cb09[_0x2fd1('0x3e')]),_0x4f9688=[_0x2fd1('0xed'),_0x2fd1('0x125')+_0xb7c712];let _0x387244=0xbb8;return this[_0x2fd1('0x124')][_0x2fd1('0x16')](_0x22cb09[_0x2fd1('0x3e')])&&(_0x4f9688[_0x2fd1('0x123')](_0x2fd1('0xbc')),_0x387244=0xbc2),_0x2fd1('0x2b')==_0xb7c712&&(_0x387244+=0x5),{'classes':_0x4f9688,'attributes':{'data-suggestion':_0x53df14},'priority':_0x387244};}}),_0x301e3b[_0x2fd1('0x67')][_0x2fd1('0xa4')](_0x2fd1('0xd'))[_0x2fd1('0x1')](_0x1aaeb2=>{_0x1aaeb2['on']('addMarker:suggestion',(_0x2f07f9,_0x1daf75,_0x54e61a)=>{if(!_0x54e61a['options']['showSuggestionHighlights'])return;const _0x4242e1=_0x1daf75[_0x2fd1('0xff')];if(!_0x4242e1)return;const _0x11dbbf=_0x54e61a['mapper'][_0x2fd1('0x43')](_0x4242e1);_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0x98')][_0x2fd1('0x7d')](_0x4242e1)&&_0x11dbbf&&!_0x11dbbf['getCustomProperty']('widget')&&_0x11dbbf['is'](_0x2fd1('0x62'))&&_0x3db82a(_0x11dbbf,_0x54e61a[_0x2fd1('0x18')]);},{'priority':_0x2fd1('0x101')});}),_0x301e3b['conversion'][_0x2fd1('0xa4')]('dataDowncast')['markerToHighlight']({'model':_0x2fd1('0x21'),'view':(_0x33593d,_0x2602aa)=>{if(!_0x2602aa[_0x2fd1('0x80')][_0x2fd1('0x35')])return null;const {type:_0x4ce63e}=this[_0x2fd1('0x11a')](_0x33593d[_0x2fd1('0x3e')]);return{'classes':[_0x2fd1('0xed'),_0x2fd1('0x125')+_0x4ce63e],'priority':0xbb8};}});const _0x3d30cc=({showActiveMarkers:_0x51420d=!0x0}={})=>(_0x3164f4,_0x5c2f22,_0x3fd8ef)=>{if(!_0x5c2f22[_0x2fd1('0xff')])return;if(_0x5c2f22[_0x2fd1('0xff')]['is'](_0x2fd1('0x4b')))return void _0x3fd8ef[_0x2fd1('0x6')]['consume'](_0x5c2f22['item'],_0x3164f4[_0x2fd1('0x31')]);const _0x1c5c8f=_0x3fd8ef[_0x2fd1('0x102')][_0x2fd1('0x43')](_0x5c2f22[_0x2fd1('0xff')]);if(!(_0x5c2f22[_0x2fd1('0xff')]['is'](_0x2fd1('0x10a'))&&_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0x98')][_0x2fd1('0xca')](_0x5c2f22[_0x2fd1('0xff')])&&!_0x1c5c8f['getCustomProperty']('addHighlight')))return;const {id:_0x5267c1}=this[_0x2fd1('0x11a')](_0x5c2f22[_0x2fd1('0x3e')]);_0x3fd8ef[_0x2fd1('0x18')]['addClass']([_0x2fd1('0xed'),_0x2fd1('0x8e')],_0x1c5c8f),_0x3fd8ef[_0x2fd1('0x18')]['setAttribute'](_0x2fd1('0xc8'),_0x5267c1,_0x1c5c8f),_0x3fd8ef[_0x2fd1('0x102')][_0x2fd1('0xcb')](_0x1c5c8f,_0x5c2f22['markerName']),_0x51420d&&(this[_0x2fd1('0x124')][_0x2fd1('0x16')](_0x5c2f22[_0x2fd1('0x3e')])?_0x3fd8ef[_0x2fd1('0x18')][_0x2fd1('0x6b')](_0x2fd1('0xbc'),_0x1c5c8f):_0x3fd8ef[_0x2fd1('0x18')][_0x2fd1('0x59')]('ck-suggestion-marker--active',_0x1c5c8f));for(const _0x56d3d5 of _0x301e3b['model'][_0x2fd1('0x3b')](_0x5c2f22['item'])[_0x2fd1('0x11f')]())_0x3fd8ef[_0x2fd1('0x6')][_0x2fd1('0x10d')](_0x56d3d5,_0x3164f4['name']);_0x3fd8ef[_0x2fd1('0x6')]['consume'](_0x5c2f22[_0x2fd1('0xff')],_0x3164f4[_0x2fd1('0x31')]);};_0x301e3b[_0x2fd1('0x67')]['for'](_0x2fd1('0xd'))[_0x2fd1('0x1')](_0x52cd41=>{_0x52cd41['on'](_0x2fd1('0x57'),(_0x341404,_0x13daa8,_0x135ba0)=>{_0x135ba0['options'][_0x2fd1('0x35')]&&_0x3d30cc({'showActiveMarkers':!0x1})(_0x341404,_0x13daa8,_0x135ba0);},{'priority':_0x2fd1('0x13a')});}),_0x301e3b[_0x2fd1('0x67')][_0x2fd1('0xa4')]('dataDowncast')[_0x2fd1('0xf5')]({'model':_0x2fd1('0x21'),'view':(_0x5517d9,_0x21ec90)=>_0x21ec90['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5517d9[_0x2fd1('0xfd')](0xb)}}),_0x301e3b[_0x2fd1('0x67')]['for'](_0x2fd1('0x86'))[_0x2fd1('0x132')]({'view':{'name':_0x2fd1('0x21'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x411741,{writer:_0x223d0a})=>{let _0x314e7c=_0x2fd1('0x7f')+_0x411741['getAttribute'](_0x2fd1('0x79'))+':'+_0x411741[_0x2fd1('0x120')]('id');return _0x411741[_0x2fd1('0x120')](_0x2fd1('0x49'))&&(_0x314e7c+=':'+_0x411741[_0x2fd1('0x120')](_0x2fd1('0x49'))),_0x223d0a[_0x2fd1('0x99')](_0x2fd1('0x10f'),{'data-name':_0x314e7c});}}),_0x301e3b[_0x2fd1('0x67')][_0x2fd1('0xa4')](_0x2fd1('0x86'))['dataToMarker']({'view':_0x2fd1('0x21')}),_0x301e3b[_0x2fd1('0x67')][_0x2fd1('0xa4')](_0x2fd1('0x105'))['add'](_0x2f451d=>{_0x2f451d['on']('addMarker:suggestion:formatBlock',_0x3d30cc(),{'priority':'high'});}),_0x301e3b['conversion'][_0x2fd1('0xa4')](_0x2fd1('0x105'))[_0x2fd1('0x1')](_0x12deca=>{_0x12deca['on'](_0x2fd1('0x44'),(_0x52e05d,_0x13a932,_0x186389)=>{const _0x15da03=_0x186389[_0x2fd1('0x102')][_0x2fd1('0x13e')](_0x13a932['markerName']);if(_0x15da03)for(const _0x53f5ca of _0x15da03)_0x53f5ca[_0x2fd1('0xf')]('addHighlight')||(_0x186389[_0x2fd1('0x18')][_0x2fd1('0x59')]([_0x2fd1('0xed'),'ck-suggestion-marker-formatBlock',_0x2fd1('0xbc')],_0x53f5ca),_0x186389[_0x2fd1('0x18')]['removeAttribute'](_0x2fd1('0xc8'),_0x53f5ca),_0x186389[_0x2fd1('0x102')][_0x2fd1('0x11')](_0x53f5ca,_0x13a932[_0x2fd1('0x3e')]));},{'priority':_0x2fd1('0x101')});}),_0x301e3b['model'][_0x2fd1('0xe2')][_0x2fd1('0x11c')](_0xa77dd3=>{let _0x5cafdd=!0x1;const _0x3e4a61=Array['from'](_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xe2')][_0x2fd1('0xb8')]['getChangedMarkers']()),_0x23e8ec=new Set();for(const {name:_0x55f0e8,data:_0x2f46a1}of _0x3e4a61){const {group:_0x2c281f,type:_0x4aac91,id:_0x53a619}=this[_0x2fd1('0x11a')](_0x55f0e8);if(_0x2fd1('0x21')!==_0x2c281f)continue;const _0x5da1e7=this['_suggestions'][_0x2fd1('0x51')](_0x53a619);if(null!=_0x2f46a1[_0x2fd1('0xd4')]){_0x2fd1('0xd5')==_0x4aac91&&(_0x5cafdd=_0x5cafdd||$t(_0x2f46a1['newRange'],_0x55f0e8,_0xa77dd3,_0x301e3b['model']['schema']));if(_0x2f46a1['newRange'][_0x2fd1('0xf4')]||_0x2fd1('0xa9')==_0x2f46a1['newRange'][_0x2fd1('0x71')][_0x2fd1('0xfe')]||_0x2fd1('0xae')==_0x4aac91&&!Rt(_0x2f46a1['newRange'])||_0x2fd1('0x2b')==_0x4aac91&&!(!Mt(_0x53cc4a=_0x2f46a1['newRange'])&&!function(_0x56a264){return _0x56a264[_0x2fd1('0xa8')][_0x2fd1('0x103')]==_0x56a264['end'][_0x2fd1('0x85')]&&_0x56a264[_0x2fd1('0xa8')][_0x2fd1('0x131')];}(_0x53cc4a)))_0xa77dd3[_0x2fd1('0x130')](_0x55f0e8),_0x5cafdd=!0x0;else{if(!_0x5da1e7||!_0x5da1e7[_0x2fd1('0x53')])continue;_0x23e8ec[_0x2fd1('0x1')](_0x5da1e7);}}}var _0x53cc4a;return _0x23e8ec[_0x2fd1('0x109')]>0x0&&(_0x5cafdd=!!this[_0x2fd1('0xea')](_0x23e8ec)||_0x5cafdd),_0x5cafdd;}),_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xe2')]['registerPostFixer'](_0x2a01c1=>{let _0x466114=!0x1;for(const _0x289903 of _0x301e3b['model']['document']['differ'][_0x2fd1('0x81')]()){if(_0x2fd1('0x15')!=_0x289903[_0x2fd1('0x1a')])continue;const _0x3bb6cf=_0x289903[_0x2fd1('0xb1')][_0x2fd1('0x8c')](_0x289903[_0x2fd1('0xec')]);if(_0x3bb6cf['isAtEnd'])for(const _0x58dab0 of this['_suggestions'][_0x2fd1('0x45')]()){if(_0x58dab0[_0x2fd1('0x104')]||!_0x58dab0[_0x2fd1('0x53')])continue;if('formatBlock'!=_0x58dab0['type'])continue;const _0x5582c6=_0x58dab0[_0x2fd1('0x20')]();if(_0x5582c6[_0x2fd1('0xa8')][_0x2fd1('0x103')]!=_0x5582c6['end'][_0x2fd1('0x103')]&&_0x5582c6[_0x2fd1('0x50')]['isEqual'](_0x289903['position'])){const _0x33aae0=_0x301e3b[_0x2fd1('0xfb')]['createRange'](_0x5582c6[_0x2fd1('0xa8')],_0x3bb6cf);_0x2a01c1[_0x2fd1('0x41')](_0x58dab0['getFirstMarker'](),{'range':_0x33aae0}),_0x466114=!0x0;}}}return _0x466114;}),_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xa7')]['on'](_0x2fd1('0x12'),(_0x4d3da9,_0x3e938b,_0x37ca98)=>{if(null==_0x37ca98){const {id:_0x15de7d}=this[_0x2fd1('0x11a')](_0x3e938b[_0x2fd1('0x31')]),_0x73907=this['_suggestions'][_0x2fd1('0x51')](_0x15de7d);_0x73907&&_0x73907[_0x2fd1('0x25')](_0x3e938b['name']);}}),_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xe2')]['on']('change:data',()=>{const _0x2eba67=Array['from'](_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xe2')][_0x2fd1('0xb8')][_0x2fd1('0xb5')]())['filter'](_0x1a82ee=>'suggestion'===this[_0x2fd1('0x11a')](_0x1a82ee[_0x2fd1('0x31')])['group']);if(0x0===_0x2eba67[_0x2fd1('0xec')])return;_0x2eba67[_0x2fd1('0xab')]((_0x52c8c4,_0x26e78e)=>{const _0x2268ce=_0x52c8c4[_0x2fd1('0x6a')][_0x2fd1('0x136')],_0x51452c=_0x26e78e[_0x2fd1('0x6a')][_0x2fd1('0x136')];return null===_0x2268ce&&null===_0x51452c?0x0:null===_0x2268ce&&null!==_0x51452c?-0x1:null!==_0x2268ce&&null===_0x51452c?0x1:_0x2268ce[_0x2fd1('0xa8')]['isBefore'](_0x51452c['start'])?-0x1:0x1;});const _0x1d826f=new Set(),_0x1c16d1=new Set();for(const {name:_0x3d2b6c,data:_0x38b8c3}of _0x2eba67){const {id:_0x403d4c}=this[_0x2fd1('0x11a')](_0x3d2b6c);if(null===_0x38b8c3[_0x2fd1('0x136')]){const _0x4cf592=this['_handleNewSuggestionMarker'](_0x3d2b6c);_0x1c16d1[_0x2fd1('0x1')](_0x4cf592);}else{const _0x46516c=this['_suggestions'][_0x2fd1('0x51')](_0x403d4c);null!==_0x38b8c3[_0x2fd1('0xd4')]||_0x46516c[_0x2fd1('0x53')]?(_0x1d826f[_0x2fd1('0x1')](_0x46516c[_0x2fd1('0x12c')]),_0x1c16d1['add'](_0x46516c)):this[_0x2fd1('0x8d')](_0x46516c);}}_0x1c16d1[_0x2fd1('0x109')]>0x0&&this['_refreshSuggestionsChain'](_0x1c16d1);for(const _0x63e598 of _0x1d826f)this[_0x2fd1('0x4c')](_0x2fd1('0x7'),_0x63e598);}),_0x301e3b[_0x2fd1('0xfb')]['on'](_0x2fd1('0xd8'),(_0x2801fb,_0x154852)=>{const _0x1a26e9=_0x154852[0x0];if(!this[_0x2fd1('0x128')][_0x2fd1('0x109')])return;if(!_0x1a26e9[_0x2fd1('0x28')])return;if(_0x1a26e9[_0x2fd1('0x90')][_0x2fd1('0x6e')]||!_0x1a26e9['batch']['isLocal'])return;let _0xef9d58,_0x5bc938;switch(_0x1a26e9['type']){case _0x2fd1('0x15'):_0xef9d58=_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0x94')](_0x1a26e9[_0x2fd1('0xb1')]),_0x5bc938=_0xef9d58[_0x2fd1('0x8c')](_0x1a26e9[_0x2fd1('0xbb')]);break;case _0x2fd1('0x9a'):_0xef9d58=_0x301e3b[_0x2fd1('0xfb')]['createPositionAt'](_0x1a26e9[_0x2fd1('0x7b')]),_0x5bc938=_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0x94')](_0x1a26e9['moveTargetPosition']);break;case _0x2fd1('0xcd'):_0xef9d58=_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0x94')](_0x1a26e9['targetPosition']),_0x5bc938=_0xef9d58[_0x2fd1('0x8c')](_0x1a26e9[_0x2fd1('0xbb')]);break;default:return;}const _0x371174=_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xda')](_0xef9d58,_0x5bc938);_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xa1')](()=>{for(const {suggestion:_0x48843a,meta:_0x52bf56}of this['_findSuggestions'](_0x371174)){if(_0x48843a[_0x2fd1('0x104')])continue;if(_0x2fd1('0xd5')==_0x48843a[_0x2fd1('0x1a')])continue;const _0x3ae00e=_0x48843a[_0x2fd1('0x6a')]&&_0x48843a[_0x2fd1('0x6a')][_0x2fd1('0x9d')];(_0x2fd1('0xae')!=_0x48843a[_0x2fd1('0x1a')]||_0x2fd1('0x9a')==_0x1a26e9[_0x2fd1('0x1a')]&&!_0x3ae00e)&&(_0x52bf56['containsRangeInObject']||_0x2fd1('0xfa')==_0x48843a[_0x2fd1('0x1a')]&&_0x52bf56['isOwn']||_0x48843a['getFirstRange']()[_0x2fd1('0x119')](_0x371174)&&this[_0x2fd1('0x10')](_0x48843a,_0xef9d58,_0x5bc938));}});},{'priority':_0x2fd1('0xf6')}),_0x301e3b[_0x2fd1('0xfb')]['on'](_0x2fd1('0x2e'),(_0x51efb0,_0x2f6eed)=>{const _0x227622=_0x2f6eed[0x0],_0x151f9e=_0x2f6eed[0x1];if(_0x151f9e&&_0x151f9e[_0x2fd1('0xdc')])return;if(this[_0x2fd1('0xd7')])return;if(!this[_0x2fd1('0x4d')][_0x2fd1('0x0')])return;if(_0x227622[_0x2fd1('0xf4')])return;const _0x597251=_0x301e3b['model'][_0x2fd1('0x98')],{start:_0x3cb836,end:_0x14d859}=_0x227622['getFirstRange'](),_0x56fe14=_0x3cb836[_0x2fd1('0x5a')]&&_0x597251[_0x2fd1('0x5')](_0x3cb836['nodeAfter'])?null:_0x597251[_0x2fd1('0xc6')](_0x3cb836,_0x2fd1('0x6f')),_0x4b38ba=_0x14d859['nodeBefore']&&_0x597251[_0x2fd1('0x5')](_0x14d859[_0x2fd1('0x85')])?null:_0x597251[_0x2fd1('0xc6')](_0x14d859,_0x2fd1('0x37')),_0x123fd7=_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xda')](_0x56fe14?_0x56fe14[_0x2fd1('0xa8')]:_0x3cb836,_0x4b38ba?_0x4b38ba[_0x2fd1('0x50')]:_0x14d859);_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xa1')](_0x196a35=>{this[_0x2fd1('0x13f')](_0x123fd7);const _0x4cdae6=_0x301e3b[_0x2fd1('0xfb')]['schema']['getNearestSelectionRange'](_0x123fd7[_0x2fd1('0xa8')]);_0x227622['is']('documentSelection')?_0x196a35[_0x2fd1('0x5c')](_0x4cdae6):_0x227622[_0x2fd1('0x8')](_0x4cdae6);}),_0x51efb0['stop']();},{'priority':_0x1e9791[_0x2fd1('0x47')]+0xa}),_0x301e3b['model']['on'](_0x2fd1('0x92'),(_0x3f0ddb,_0x333ccc)=>{const _0x40241d=_0x333ccc[_0x333ccc[_0x2fd1('0xec')]-0x1];_0x40241d&&_0x40241d[_0x2fd1('0xdc')]||this[_0x2fd1('0xd7')]||this[_0x2fd1('0x4d')][_0x2fd1('0x0')]&&(_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xa1')](()=>{let _0x52a4ab=_0x301e3b['model'][_0x2fd1('0x92')](_0x333ccc[0x0],_0x333ccc[0x1],_0x333ccc[0x2],{'forceDefaultExecution':!0x0});if(!_0x52a4ab)return;_0x3f0ddb[_0x2fd1('0x112')]=_0x52a4ab[_0x2fd1('0x9c')]();const _0x27f99c=_0x52a4ab[_0x2fd1('0x50')][_0x2fd1('0x85')],_0x5a8d3c=_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0x98')];_0x27f99c&&_0x5a8d3c['isBlock'](_0x27f99c)&&!_0x5a8d3c['isObject'](_0x27f99c)&&(_0x52a4ab=_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0xda')](_0x52a4ab[_0x2fd1('0xa8')],_0x301e3b[_0x2fd1('0xfb')][_0x2fd1('0x94')](_0x27f99c,_0x2fd1('0x50')))),this[_0x2fd1('0xe5')](_0x52a4ab);}),_0x3f0ddb[_0x2fd1('0x69')]());},{'priority':'high'}),this[_0x2fd1('0xb3')][_0x2fd1('0x24')][_0x2fd1('0x1')](_0x2fd1('0x107'),this[_0x2fd1('0x4d')]),this[_0x2fd1('0xbf')](_0x2fd1('0x107'));const _0x2c09ee=new _0xc258be(_0x301e3b,this[_0x2fd1('0x128')]);_0x301e3b[_0x2fd1('0x24')][_0x2fd1('0x1')](_0x2fd1('0x1e'),_0x2c09ee),this['enableCommand']('acceptSuggestion');const _0x280964=new _0xaddc21(_0x301e3b,this[_0x2fd1('0x128')]);_0x301e3b[_0x2fd1('0x24')][_0x2fd1('0x1')](_0x2fd1('0x95'),_0x280964),this[_0x2fd1('0xbf')](_0x2fd1('0x95')),_0x301e3b[_0x2fd1('0x24')][_0x2fd1('0x1')](_0x2fd1('0xb'),new _0x47b609(_0x301e3b,_0x2c09ee,this[_0x2fd1('0x128')])),this[_0x2fd1('0xbf')]('acceptAllSuggestions'),_0x301e3b['commands'][_0x2fd1('0x1')](_0x2fd1('0xc9'),new _0x47b609(_0x301e3b,_0x280964,this['_suggestions'])),this[_0x2fd1('0xbf')](_0x2fd1('0xc9')),_0x301e3b[_0x2fd1('0x24')][_0x2fd1('0x1')](_0x2fd1('0xc4'),new _0x5b05(_0x301e3b,_0x2c09ee,this[_0x2fd1('0x128')])),this[_0x2fd1('0xbf')](_0x2fd1('0xc4')),_0x301e3b[_0x2fd1('0x24')][_0x2fd1('0x1')](_0x2fd1('0x33'),new _0x5b05(_0x301e3b,_0x280964,this[_0x2fd1('0x128')])),this['enableCommand'](_0x2fd1('0x33'));const _0x42f3c7=_0x301e3b[_0x2fd1('0xe1')][_0x2fd1('0x51')](_0x2fd1('0x108'));this[_0x2fd1('0x113')](_0x42f3c7,'addComment',(_0x248e4e,{threadId:_0xa8bde5})=>{const _0x1600b8=this[_0x2fd1('0x128')][_0x2fd1('0x51')](_0xa8bde5);_0x1600b8&&_0x1600b8['commentThread']&&0x1===_0x1600b8[_0x2fd1('0x12e')][_0x2fd1('0xec')]&&this[_0x2fd1('0x42')](_0xa8bde5,{'hasComments':!0x0});},{'priority':_0x2fd1('0x9')}),this[_0x2fd1('0x113')](_0x42f3c7,_0x2fd1('0x17'),(_0x5edb4c,{threadId:_0x8f18f5})=>{const _0x40ca61=this[_0x2fd1('0x128')][_0x2fd1('0x51')](_0x8f18f5);_0x40ca61&&_0x40ca61['commentThread']&&!_0x40ca61[_0x2fd1('0x12e')][_0x2fd1('0xec')]&&this[_0x2fd1('0x42')](_0x8f18f5,{'hasComments':!0x1});},{'priority':_0x2fd1('0x9')});}set[_0x2fd1('0x133')](_0x256238){if(this[_0x2fd1('0x126')])throw new _0x394079(_0x2fd1('0x2d'),this);this[_0x2fd1('0x126')]=_0x256238;}get[_0x2fd1('0x133')](){return this[_0x2fd1('0x126')];}['getSuggestions']({skipNotAttached:_0x14d648=!0x1,toJSON:_0x24c080=!0x1}={}){const _0xade7ce=[];for(const _0x11d3fd of this[_0x2fd1('0x128')][_0x2fd1('0x45')]())_0x14d648&&!_0x11d3fd[_0x2fd1('0x53')]||_0xade7ce[_0x2fd1('0x123')](_0x11d3fd);return _0x24c080?_0xade7ce[_0x2fd1('0x138')](_0x3241ab=>_0x3241ab[_0x2fd1('0x11b')]()):_0xade7ce;}[_0x2fd1('0x70')](_0x12e62b){const _0xab41b3=this[_0x2fd1('0x128')]['get'](_0x12e62b);if(!_0xab41b3)throw new _0x394079(_0x2fd1('0xd9'),this);return _0xab41b3;}[_0x2fd1('0x54')](_0xcba340){return this['_suggestions'][_0x2fd1('0x8a')](_0xcba340);}['addSuggestionData'](_0x32ddde){const {authorId:_0x4088ad,id:_0x27ef78,attributes:_0x12ee0d}=_0x32ddde,[_0x42c8c9,_0x3ccd35]=_0x32ddde[_0x2fd1('0x1a')][_0x2fd1('0x9a')](':'),_0x48c9fc=this[_0x2fd1('0x128')][_0x2fd1('0x51')](_0x27ef78)||this[_0x2fd1('0xef')](_0x42c8c9,_0x3ccd35,_0x27ef78,_0x4088ad,_0x12ee0d);if(this[_0x2fd1('0x4')](_0x48c9fc),this[_0x2fd1('0xb9')](_0x48c9fc,_0x42c8c9,_0x3ccd35||null,_0x4088ad),_0x48c9fc[_0x2fd1('0xdd')]=_0x32ddde[_0x2fd1('0xdd')],_0x48c9fc[_0x2fd1('0x3c')]=!0x0,_0x12ee0d&&_0x12ee0d['@external']){const _0x325249=_0x12ee0d[_0x2fd1('0x14')],_0x2c86ab=this[_0x2fd1('0xc0')](_0x325249[_0x2fd1('0x61')]);_0x48c9fc['authoredAt']=_0x325249[_0x2fd1('0xdd')],_0x48c9fc[_0x2fd1('0x2f')]=_0x2c86ab,_0x48c9fc['isExternal']=!0x0;}else _0x48c9fc['authoredAt']=_0x32ddde[_0x2fd1('0xdd')];switch(_0x32ddde[_0x2fd1('0x6a')]&&(_0x48c9fc[_0x2fd1('0x6a')]=_0x32ddde[_0x2fd1('0x6a')]),_0x32ddde[_0x2fd1('0x9f')]&&(_0x48c9fc[_0x2fd1('0x9f')]=_0x32ddde[_0x2fd1('0x9f')]),this[_0x2fd1('0x126')]&&this[_0x2fd1('0x126')][_0x2fd1('0xc5')]||(_0x48c9fc[_0x2fd1('0x36')]=!0x0),this[_0x2fd1('0x58')][_0x2fd1('0x51')](_0x48c9fc)){case _0x2fd1('0x64'):this[_0x2fd1('0x58')][_0x2fd1('0xbd')](_0x48c9fc,_0x2fd1('0xdf'));break;case _0x2fd1('0xd1'):_0x48c9fc[_0x2fd1('0x53')]?(this[_0x2fd1('0x6c')](new Set([_0x48c9fc])),this[_0x2fd1('0xea')](new Set([_0x48c9fc])),this[_0x2fd1('0x58')]['set'](_0x48c9fc,'ready'),this[_0x2fd1('0x4c')](_0x2fd1('0x12a'),_0x48c9fc)):this[_0x2fd1('0x58')][_0x2fd1('0xbd')](_0x48c9fc,'removed');}return _0x48c9fc;}[_0x2fd1('0x1e')](_0x4082e8){this[_0x2fd1('0xdc')](()=>{this['editor'][_0x2fd1('0xfb')]['change'](()=>{for(const _0xae45d1 of _0x4082e8[_0x2fd1('0x2')]())_0xae45d1[_0x2fd1('0x89')]();});});}['discardSuggestion'](_0x2c7663){this[_0x2fd1('0xdc')](()=>{this['editor'][_0x2fd1('0xfb')][_0x2fd1('0xa1')](()=>{for(const _0xd78f21 of _0x2c7663[_0x2fd1('0x2')]())_0xd78f21['discard']();});});}['enableCommand'](_0x279d27,_0x34b2da){const _0x557b4a=this['editor']['commands'][_0x2fd1('0x51')](_0x279d27);if(!_0x557b4a)throw new _0x394079(_0x2fd1('0xd0'),this,{'commandName':_0x279d27});this['_enabledCommands'][_0x2fd1('0x1')](_0x557b4a),_0x34b2da&&_0x557b4a['on']('execute',(_0x4b6d07,_0x31eb7c)=>{this[_0x2fd1('0x4d')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x31eb7c[_0x2fd1('0xec')]>0x0&&_0x31eb7c[_0x31eb7c[_0x2fd1('0xec')]-0x1]&&_0x31eb7c[_0x31eb7c[_0x2fd1('0xec')]-0x1][_0x2fd1('0xdc')]||(_0x4b6d07['return']=_0x34b2da((..._0x5f1d04)=>_0x557b4a[_0x2fd1('0x116')](..._0x5f1d04,{'forceDefaultExecution':!0x0}),..._0x31eb7c),_0x4b6d07[_0x2fd1('0x69')]()));},{'priority':_0x2fd1('0x101')});}[_0x2fd1('0xdc')](_0x45ebd0){let _0x42db4d,_0x1def52;const _0x24b3fb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x42db4d=_0x45ebd0();}catch(_0x161f21){_0x1def52=_0x161f21;}return _0x24b3fb||(this[_0x2fd1('0xd7')]=!0x1),_0x1def52&&_0x394079['rethrowUnexpectedError'](_0x1def52,this),_0x42db4d;}[_0x2fd1('0xe5')](_0x163b4d,_0x48d277=null,_0x79463a={}){if(_0x163b4d[_0x2fd1('0xf4')])return null;const _0x344daf=this['editor']['plugins'][_0x2fd1('0x51')](_0x2fd1('0x1d'))['me'];for(const {suggestion:_0x2abc6c,meta:_0x262e34}of this[_0x2fd1('0x77')](_0x163b4d,_0x2fd1('0xfa')))if(_0x262e34[_0x2fd1('0x63')]){if(!_0x262e34[_0x2fd1('0x7c')]){if(_0x262e34[_0x2fd1('0x87')]){if(!this[_0x2fd1('0xe8')]||!Ot(_0x2abc6c,_0x79463a))continue;return _0x2abc6c;}if(Ot(_0x2abc6c,_0x79463a))return _0x2abc6c;this['_breakSuggestionMarker'](_0x2abc6c,_0x163b4d[_0x2fd1('0xa8')],_0x163b4d[_0x2fd1('0x50')]);break;}if(_0x48d277==_0x2abc6c[_0x2fd1('0x4f')]&&Ot(_0x2abc6c,_0x79463a)){const _0x3f86e3=_0x2abc6c[_0x2fd1('0x20')]();return _0x3f86e3[_0x2fd1('0xa8')][_0x2fd1('0xe0')](_0x163b4d[_0x2fd1('0x50')])?this['_setSuggestionRange'](_0x2abc6c,this['_model'][_0x2fd1('0xda')](_0x163b4d['start'],_0x3f86e3['end'])):this['_setSuggestionRange'](_0x2abc6c,this['_model'][_0x2fd1('0xda')](_0x3f86e3[_0x2fd1('0xa8')],_0x163b4d[_0x2fd1('0x50')])),_0x2abc6c;}}const _0x50eb42=_0x73fc4a(),_0x3c201a=_0x344daf['id'],_0x2a15ed=_0x48d277?_0x2fd1('0x96')+_0x48d277:_0x2fd1('0xfa'),_0x20b8e7=this[_0x2fd1('0x2c')]({'id':_0x50eb42,'type':_0x2a15ed,'createdAt':new Date(),'authorId':_0x3c201a,'attributes':_0x79463a});return this[_0x2fd1('0xb4')](_0x2a15ed,_0x50eb42,_0x3c201a,_0x163b4d),_0x20b8e7;}[_0x2fd1('0x137')](_0x1023ed,_0x33c0cb=_0x2fd1('0x140'),_0x446e69={}){const _0x2dcc3b=this[_0x2fd1('0xb3')][_0x2fd1('0xe1')][_0x2fd1('0x51')](_0x2fd1('0x1d'))['me'],_0x1a607a=this[_0x2fd1('0xaf')]['getSuggestionCallback']('insertion',_0x33c0cb,_0x2fd1('0xe9'));for(const _0x4e1c8e of this[_0x2fd1('0x84')]())if(_0x4e1c8e[_0x2fd1('0x2f')]['id']==_0x2dcc3b['id']&&_0x2fd1('0xfa')==_0x4e1c8e[_0x2fd1('0x1a')]&&_0x4e1c8e[_0x2fd1('0x4f')]==_0x33c0cb&&Ot(_0x4e1c8e,_0x446e69)&&(_0x1a607a(_0x4e1c8e[_0x2fd1('0x1f')](),_0x1023ed)||_0x1a607a(_0x1023ed,_0x4e1c8e[_0x2fd1('0x1f')]()))){for(const _0x3fd8c6 of _0x1023ed)_0x4e1c8e[_0x2fd1('0xf2')](_0x3fd8c6);return _0x4e1c8e;}for(const {suggestion:_0x14d814,meta:_0x21504a}of this[_0x2fd1('0x77')](_0x1023ed,'insertion')){if(!_0x21504a['isOwn'])continue;if(!this[_0x2fd1('0xe8')]&&_0x21504a[_0x2fd1('0x87')])continue;if(!Ot(_0x14d814,_0x446e69))continue;let _0x12e39c=!0x0;for(const _0x37d1a0 of _0x14d814['getRanges']())for(const _0x109dca of _0x1023ed)if(!_0x37d1a0[_0x2fd1('0x119')](_0x109dca)){_0x12e39c=!0x1;break;}if(_0x12e39c)return _0x14d814;}const _0x3132a5=_0x73fc4a(),_0x419a73=_0x2dcc3b['id'],_0x238457=_0x2fd1('0x96')+_0x33c0cb,_0x171353=this[_0x2fd1('0x2c')]({'id':_0x3132a5,'type':_0x238457,'createdAt':new Date(),'authorId':_0x419a73,'attributes':_0x446e69});for(const _0x4699e2 of _0x1023ed)this[_0x2fd1('0xb4')](_0x238457,_0x3132a5,_0x419a73,_0x4699e2,_0x1593d2['getMultiRangeId']());return _0x171353;}[_0x2fd1('0xf1')](_0x45be73,_0x8acf67,_0x282f69=null,_0x172d1c={}){if(_0x282f69=_0x282f69||Nt(_0x8acf67),_0x45be73[_0x2fd1('0xf4')])return null;if('never'===this['_trackFormatChanges']){const _0x57101d=this[_0x2fd1('0xaf')][_0x2fd1('0x68')](_0x2fd1('0xd5'),_0x282f69,_0x2fd1('0x89'));return this[_0x2fd1('0xdc')](()=>_0x57101d([_0x45be73],_0x8acf67,_0x172d1c)),null;}const _0x114e0c=this['editor'][_0x2fd1('0xe1')]['get']('Users')['me'],_0x45c85f=[];if(_0x2fd1('0xf3')!==this['_trackFormatChanges'])for(const {suggestion:_0x44f341,meta:_0x5efe6f}of this['_findSuggestions'](_0x45be73,_0x2fd1('0xfa')))_0x5efe6f['isOwn']&&!_0x5efe6f[_0x2fd1('0x74')]&&_0x45c85f[_0x2fd1('0x123')](..._0x44f341[_0x2fd1('0x1f')]());const _0x263c8a=function(_0x5c40cf,_0x3f1263){const _0x445474=[];for(const _0x4aa55c of _0x3f1263){const _0x34f246=_0x5c40cf['getIntersection'](_0x4aa55c);_0x34f246&&_0x445474[_0x2fd1('0x123')](_0x34f246);}return _0x445474;}(_0x45be73,_0x45c85f),_0x4a07cd=function(_0x30c5c4,_0x222afc){const _0x5d20f9=[_0x30c5c4];for(const _0x6253e1 of _0x222afc){let _0x391968=0x0;for(;_0x391968<_0x5d20f9['length'];){const _0x11177f=_0x5d20f9[_0x391968][_0x2fd1('0x32')](_0x6253e1);_0x5d20f9[_0x2fd1('0x5e')](_0x391968,0x1,..._0x11177f),_0x391968+=_0x11177f[_0x2fd1('0xec')];}}return _0x5d20f9;}(_0x45be73,_0x45c85f);_0x263c8a[_0x2fd1('0xec')]&&this[_0x2fd1('0x39')][_0x2fd1('0xa1')](()=>{for(const _0x3c9e62 of _0x263c8a){const _0x1b211a=this[_0x2fd1('0xaf')][_0x2fd1('0x68')](_0x2fd1('0xd5'),_0x282f69,'accept');this[_0x2fd1('0xdc')](()=>_0x1b211a([_0x3c9e62],_0x8acf67,_0x172d1c));}});for(const _0x19f5c2 of _0x4a07cd){let _0x47d2f6=null,_0x4c2162=_0x19f5c2[_0x2fd1('0xa8')],_0x7a37fb=_0x19f5c2[_0x2fd1('0x50')];for(const {suggestion:_0x1edd61,meta:_0x31ed05}of this['_findSuggestions'](_0x19f5c2,'formatInline')){if(!_0x31ed05[_0x2fd1('0x63')])continue;if(_0x1edd61[_0x2fd1('0x4f')]!=_0x282f69)continue;if(!Ot(_0x1edd61,_0x172d1c))continue;const _0x38bdff=_0x1edd61[_0x2fd1('0x20')]();if(_0x38bdff[_0x2fd1('0x119')](_0x19f5c2,!0x0))return null;_0x4c2162=_0x4c2162[_0x2fd1('0x10b')](_0x38bdff['start'])?_0x4c2162:_0x38bdff[_0x2fd1('0xa8')],_0x7a37fb=_0x7a37fb['isAfter'](_0x38bdff['end'])?_0x7a37fb:_0x38bdff[_0x2fd1('0x50')],_0x47d2f6?_0x38bdff[_0x2fd1('0xa8')][_0x2fd1('0x10b')](_0x47d2f6['getFirstRange']()['start'])?(_0x47d2f6[_0x2fd1('0x19')](),_0x47d2f6=_0x1edd61):_0x1edd61['removeMarkers']():_0x47d2f6=_0x1edd61;}const _0x5cc6aa=this[_0x2fd1('0x39')][_0x2fd1('0xda')](_0x4c2162,_0x7a37fb);if(_0x47d2f6)this['_setSuggestionRange'](_0x47d2f6,_0x5cc6aa);else{const _0x5cb4b3=_0x73fc4a(),_0x368b0d=_0x114e0c['id'];this[_0x2fd1('0x2c')]({'id':_0x5cb4b3,'type':_0x2fd1('0x5d')+_0x282f69,'data':_0x8acf67,'createdAt':new Date(),'authorId':_0x368b0d,'attributes':_0x172d1c}),this[_0x2fd1('0xb4')](_0x2fd1('0x5d')+_0x282f69,_0x5cb4b3,_0x368b0d,_0x5cc6aa);}}return null;}[_0x2fd1('0x30')](_0x4cfecd,_0x10e572,_0x580ad5=[],_0x87f816=null,_0xf3a61e={}){_0x10e572[_0x2fd1('0xba')]||(_0x10e572[_0x2fd1('0xba')]=_0x10e572['commandName']),_0x10e572[_0x2fd1('0x9d')]=_0x4cfecd['is'](_0x2fd1('0xee')),_0x87f816=_0x87f816||Nt(_0x10e572);const _0x4dc19f=_0x580ad5['map'](_0x5441cc=>jt(_0x5441cc,this[_0x2fd1('0x39')])),_0x35de10=_0x4cfecd['is'](_0x2fd1('0xee'))?_0x4cfecd:jt(_0x4cfecd,this[_0x2fd1('0x39')]);if('never'===this[_0x2fd1('0xa3')]){const _0x3c7f83=this['_suggestionFactory'][_0x2fd1('0x68')](_0x2fd1('0xae'),_0x87f816,_0x2fd1('0x89'));return this[_0x2fd1('0xdc')](()=>_0x3c7f83([_0x35de10],_0x10e572,_0xf3a61e)),null;}_0x4dc19f[_0x2fd1('0x123')](_0x35de10);let _0x239854=!0x0;for(const _0x141377 of _0x4dc19f)if(!this['_rangeIsInLocalUserInsertion'](_0x141377)){_0x239854=!0x1;break;}if(_0x239854&&'always'!==this['_trackFormatChanges']){const _0x2762fe=this['_suggestionFactory'][_0x2fd1('0x68')](_0x2fd1('0xae'),_0x87f816,_0x2fd1('0x89'));return this[_0x2fd1('0xdc')](()=>_0x2762fe([_0x35de10],_0x10e572,_0xf3a61e)),null;}let _0x9c78b8=null,_0x1284b3=_0x35de10[_0x2fd1('0xa8')],_0x2f92e8=_0x35de10[_0x2fd1('0x50')];for(const {suggestion:_0xb5dde0,meta:_0xec31be}of this[_0x2fd1('0x77')](_0x35de10,_0x2fd1('0xae'))){if(!_0xec31be[_0x2fd1('0x63')])continue;if(_0xec31be['isNextTo']||_0xec31be[_0x2fd1('0x87')]||_0xec31be[_0x2fd1('0x74')])continue;if(_0xb5dde0[_0x2fd1('0x6a')][_0x2fd1('0xba')]!=_0x10e572[_0x2fd1('0xba')])continue;if(!Ot(_0xb5dde0,_0xf3a61e))continue;const _0x6c01f2=_0xb5dde0[_0x2fd1('0x20')]();if(_0xb5dde0[_0x2fd1('0x4f')]==_0x87f816){if(_0x6c01f2['containsRange'](_0x35de10,!0x0))return null;_0x1284b3=_0x1284b3[_0x2fd1('0x10b')](_0x6c01f2['start'])?_0x1284b3:_0x6c01f2[_0x2fd1('0xa8')],_0x2f92e8=_0x2f92e8['isAfter'](_0x6c01f2['end'])?_0x2f92e8:_0x6c01f2[_0x2fd1('0x50')],_0x9c78b8?_0x6c01f2[_0x2fd1('0xa8')][_0x2fd1('0x10b')](_0x9c78b8[_0x2fd1('0x20')]()[_0x2fd1('0xa8')])?(_0x9c78b8[_0x2fd1('0x19')](),_0x9c78b8=_0xb5dde0):_0xb5dde0[_0x2fd1('0x19')]():_0x9c78b8=_0xb5dde0;}else{const _0x13fb39=_0x35de10[_0x2fd1('0x3a')](_0x6c01f2);this[_0x2fd1('0x7e')](_0xb5dde0,_0x13fb39);}}const _0x2b4b20=this[_0x2fd1('0xb3')][_0x2fd1('0xe1')][_0x2fd1('0x51')]('Users')['me'],_0x366e69=_0x73fc4a(),_0x336f6e=_0x2b4b20['id'];if(_0x9c78b8)return this[_0x2fd1('0x122')](_0x9c78b8,this['_model'][_0x2fd1('0xda')](_0x1284b3,_0x2f92e8)),_0x9c78b8;{const _0x23e559=this[_0x2fd1('0x2c')]({'id':_0x366e69,'type':_0x2fd1('0x135')+_0x87f816,'data':_0x10e572,'createdAt':new Date(),'authorId':_0x336f6e,'attributes':_0xf3a61e});return this[_0x2fd1('0xb4')](_0x2fd1('0x135')+_0x87f816,_0x366e69,_0x336f6e,this[_0x2fd1('0x39')][_0x2fd1('0xda')](_0x1284b3,_0x2f92e8)),_0x23e559;}}[_0x2fd1('0x97')](_0x263c2d,_0x4cb32,_0x40289e=[],_0x15599b=null,_0x1837d9={}){_0x4cb32[_0x2fd1('0xba')]||(_0x4cb32[_0x2fd1('0xba')]=_0x4cb32['commandName']);const _0x3e8513=_0x263c2d[0x0];_0x4cb32[_0x2fd1('0x9d')]=_0x3e8513['is']('range'),_0x15599b=_0x15599b||Nt(_0x4cb32);const _0x358b32=_0x40289e[_0x2fd1('0x138')](_0x2d74d6=>jt(_0x2d74d6,this['_model'])),_0x577206=_0x3e8513['is']('range')?_0x263c2d:_0x263c2d[_0x2fd1('0x138')](_0xdd21d6=>jt(_0xdd21d6,this['_model']));if('never'===this[_0x2fd1('0xa3')]){const _0x3295b6=this[_0x2fd1('0xaf')][_0x2fd1('0x68')](_0x2fd1('0xae'),_0x15599b,'accept');return this['forceDefaultExecution'](()=>_0x3295b6(_0x577206,_0x4cb32,_0x1837d9)),null;}_0x358b32['push'](..._0x577206);let _0x132da3=!0x0;for(const _0x33b42c of _0x358b32)if(!this[_0x2fd1('0x5f')](_0x33b42c)){_0x132da3=!0x1;break;}if(_0x132da3&&'always'!==this[_0x2fd1('0xa3')]){const _0x18410e=this[_0x2fd1('0xaf')][_0x2fd1('0x68')]('formatBlock',_0x15599b,_0x2fd1('0x89'));return this['forceDefaultExecution'](()=>_0x18410e(_0x577206,_0x4cb32,_0x1837d9)),null;}const _0x559c11=this[_0x2fd1('0xb3')][_0x2fd1('0xe1')][_0x2fd1('0x51')](_0x2fd1('0x1d'))['me'];for(const _0x4423b6 of this[_0x2fd1('0x84')]()){if(_0x4423b6[_0x2fd1('0x2f')]['id']!=_0x559c11['id'])continue;if('formatBlock'!=_0x4423b6[_0x2fd1('0x1a')]||_0x4423b6[_0x2fd1('0x6a')][_0x2fd1('0xba')]!=_0x4cb32[_0x2fd1('0xba')])continue;if(!Ot(_0x4423b6,_0x1837d9))continue;const _0x241021=_0x4423b6[_0x2fd1('0x4f')]==_0x15599b;for(let _0x17b543=0x0;_0x17b543<_0x577206[_0x2fd1('0xec')];_0x17b543++){const _0x51c4b8=_0x577206[_0x17b543];for(const _0x47f976 of _0x4423b6[_0x2fd1('0x60')]()){const _0x2e6d75=_0x47f976[_0x2fd1('0xc3')]();if(_0x51c4b8[_0x2fd1('0xe0')](_0x2e6d75)){_0x241021?(_0x577206['splice'](_0x17b543,0x1),_0x17b543--):_0x4423b6['removeMarker'](_0x47f976[_0x2fd1('0x31')]);break;}}}}if(0x0==_0x577206[_0x2fd1('0xec')])return null;const _0x39343c=this[_0x2fd1('0xaf')][_0x2fd1('0x68')](_0x2fd1('0xae'),_0x15599b,'join');for(const _0x56ce39 of this[_0x2fd1('0x84')]())if(_0x56ce39[_0x2fd1('0x2f')]['id']==_0x559c11['id']&&'formatBlock'==_0x56ce39[_0x2fd1('0x1a')]&&_0x56ce39['data'][_0x2fd1('0xba')]==_0x4cb32[_0x2fd1('0xba')]&&_0x56ce39['subType']==_0x15599b&&Ot(_0x56ce39,_0x1837d9)&&(_0x39343c(_0x56ce39['getRanges'](),_0x577206)||_0x39343c(_0x577206,_0x56ce39[_0x2fd1('0x1f')]()))){for(const _0x290020 of _0x577206)_0x56ce39[_0x2fd1('0xf2')](_0x290020);return _0x56ce39;}const _0x438f65=_0x73fc4a(),_0x34a6c6=_0x559c11['id'],_0x6f1f8e=_0x2fd1('0x135')+_0x15599b,_0x2d1cf7=this[_0x2fd1('0x2c')]({'id':_0x438f65,'type':_0x6f1f8e,'data':_0x4cb32,'createdAt':new Date(),'authorId':_0x34a6c6,'attributes':_0x1837d9});for(const _0x345c4a of _0x577206)this[_0x2fd1('0xb4')](_0x6f1f8e,_0x438f65,_0x34a6c6,_0x345c4a,_0x1593d2[_0x2fd1('0x114')]());return _0x2d1cf7;}[_0x2fd1('0x13f')](_0x38817a,_0x50fdb4=null,_0x2cc1f5={}){if(_0x38817a[_0x2fd1('0xf4')])return null;const _0x89e801=this['editor'][_0x2fd1('0xe1')][_0x2fd1('0x51')](_0x2fd1('0x1d'))['me'],_0x50298b=new _0x32cb49(_0x38817a['start'],_0x38817a['end']);for(const {suggestion:_0x55af37,meta:_0x44818d}of this[_0x2fd1('0x77')](_0x50298b,'insertion'))if(_0x44818d[_0x2fd1('0x63')]&&!_0x44818d[_0x2fd1('0x7c')]){if(_0x55af37[_0x2fd1('0x104')]){const _0x5ef485=_0x55af37[_0x2fd1('0x1f')]()[_0x2fd1('0x121')](_0x461f8a=>'$graveyard'!=_0x461f8a[_0x2fd1('0x71')][_0x2fd1('0xfe')]);_0x5ef485[_0x2fd1('0xcc')](_0x30dfc3=>_0x50298b[_0x2fd1('0x119')](_0x30dfc3,!0x0))&&_0x55af37[_0x2fd1('0xd3')]();if(_0x5ef485['some'](_0xaed538=>_0xaed538[_0x2fd1('0x119')](_0x50298b,!0x0))){const _0x30df9e=this[_0x2fd1('0xaf')]['getSuggestionCallback'](_0x2fd1('0x2b'),_0x50fdb4,_0x2fd1('0x89'));return this['forceDefaultExecution'](()=>_0x30df9e([_0x50298b],null,_0x2cc1f5)),null;}}else{const _0x325802=_0x50298b[_0x2fd1('0x3a')](_0x55af37[_0x2fd1('0x20')]());null!==_0x325802&&_0x55af37[_0x2fd1('0x38')]([_0x325802],null,_0x2cc1f5);}}if(_0x50298b[_0x2fd1('0x10c')](),_0x50298b[_0x2fd1('0xf4')]||'$graveyard'==_0x50298b['root'][_0x2fd1('0xfe')])return null;let _0x1b03bc=null,_0xa47293=_0x50298b[_0x2fd1('0xa8')],_0x54b1c8=_0x50298b[_0x2fd1('0x50')];const _0x12a0a1=this[_0x2fd1('0x77')](_0x50298b,_0x2fd1('0x2b'));for(const {suggestion:_0xcdc661,meta:_0x26a582}of _0x12a0a1){const _0x1ae6e9=this[_0x2fd1('0x39')][_0x2fd1('0xda')](_0xa47293,_0x54b1c8);if(_0x26a582[_0x2fd1('0x63')]&&(this[_0x2fd1('0xe8')]||!_0x26a582[_0x2fd1('0x87')]&&!_0x26a582[_0x2fd1('0x74')])){if(_0xcdc661[_0x2fd1('0x104')]){if(!Ot(_0xcdc661,_0x2cc1f5))continue;let _0x140643=!0x0;for(const _0x24238a of _0xcdc661[_0x2fd1('0x1f')]()){if(_0x24238a[_0x2fd1('0x119')](_0x1ae6e9,!0x0))return _0xcdc661;_0x1ae6e9['containsRange'](_0x24238a)||(_0x140643=!0x1);}_0x140643&&_0xcdc661[_0x2fd1('0xd3')]();}else{const _0x31ebe7=_0xcdc661[_0x2fd1('0x20')]();if(_0x31ebe7[_0x2fd1('0x119')](_0x1ae6e9,!0x0))return _0xcdc661;if(!Ot(_0xcdc661,_0x2cc1f5)){_0x1ae6e9[_0x2fd1('0x119')](_0x31ebe7)?_0xcdc661['removeMarkers']():_0x31ebe7[_0x2fd1('0xc1')](_0xa47293)?_0xa47293=_0x31ebe7[_0x2fd1('0x50')]:_0x31ebe7[_0x2fd1('0xc1')](_0x54b1c8)&&(_0x54b1c8=_0x31ebe7[_0x2fd1('0xa8')]);continue;}_0xa47293=_0xa47293[_0x2fd1('0x10b')](_0x31ebe7[_0x2fd1('0xa8')])?_0xa47293:_0x31ebe7['start'],_0x54b1c8=_0x54b1c8[_0x2fd1('0x9b')](_0x31ebe7[_0x2fd1('0x50')])?_0x54b1c8:_0x31ebe7['end'],_0x2cc1f5=Object[_0x2fd1('0x13')]({},_0xcdc661[_0x2fd1('0x9f')]),_0x1b03bc?_0x31ebe7[_0x2fd1('0xa8')][_0x2fd1('0x10b')](_0x1b03bc['getFirstRange']()[_0x2fd1('0xa8')])?(_0x1b03bc[_0x2fd1('0x19')](),_0x1b03bc=_0xcdc661):_0xcdc661[_0x2fd1('0x19')]():_0x1b03bc=_0xcdc661;}}}if(_0x1b03bc)return this[_0x2fd1('0x122')](_0x1b03bc,this['_model']['createRange'](_0xa47293,_0x54b1c8)),_0x1b03bc;{const _0x18630a=_0x73fc4a(),_0x1f4e68=this[_0x2fd1('0x39')]['createRange'](_0xa47293,_0x54b1c8),_0x3f4d24=_0x89e801['id'],_0x584b88=_0x50fdb4?_0x2fd1('0xe3')+_0x50fdb4:_0x2fd1('0x2b'),_0x2c9d3f=this[_0x2fd1('0x2c')]({'id':_0x18630a,'type':_0x584b88,'createdAt':new Date(),'authorId':_0x3f4d24,'attributes':_0x2cc1f5});return this[_0x2fd1('0xb4')](_0x584b88,_0x18630a,_0x3f4d24,_0x1f4e68),_0x2c9d3f;}}['markMultiRangeDeletion'](_0x2bac14,_0xbbac7d='multi',_0x4c368a={}){const _0x517656=this['editor'][_0x2fd1('0xe1')][_0x2fd1('0x51')](_0x2fd1('0x1d'))['me'],_0x18f7c7=_0x2bac14['map'](_0x20924e=>new _0x32cb49(_0x20924e[_0x2fd1('0xa8')],_0x20924e['end'])),_0x5e438b=new Set();for(const {suggestion:_0x54e46b,meta:_0xff3961}of this[_0x2fd1('0x77')](_0x18f7c7,_0x2fd1('0xfa')))_0xff3961[_0x2fd1('0x63')]&&!_0xff3961[_0x2fd1('0x7c')]&&_0x5e438b[_0x2fd1('0x1')](_0x54e46b);for(const _0x56e558 of _0x5e438b)if(_0x56e558[_0x2fd1('0x104')]){const _0x53f792=_0x56e558[_0x2fd1('0x1f')]();(!_0x56e558[_0x2fd1('0x9f')]||!_0x56e558[_0x2fd1('0x9f')][_0x2fd1('0x3d')])&&(_0x53f792[_0x2fd1('0xcc')](_0x50fd6c=>_0x18f7c7['some'](_0x78ed2d=>_0x78ed2d[_0x2fd1('0x119')](_0x50fd6c,!0x0)))&&_0x56e558[_0x2fd1('0xd3')]());if(_0x18f7c7['every'](_0x48b997=>_0x53f792[_0x2fd1('0xf8')](_0x4536c0=>_0x4536c0['containsRange'](_0x48b997,!0x0)))){const _0x20578e=this['_suggestionFactory'][_0x2fd1('0x68')](_0x2fd1('0x2b'),_0xbbac7d,_0x2fd1('0x89'));return this[_0x2fd1('0xdc')](()=>_0x20578e(_0x2bac14,null,_0x4c368a)),null;}}else{const _0x38bda2=_0x56e558[_0x2fd1('0x20')]();_0x18f7c7['some'](_0x471b15=>_0x471b15['containsRange'](_0x38bda2,!0x0))&&_0x56e558[_0x2fd1('0xd3')]();if(_0x18f7c7['every'](_0x351175=>_0x38bda2[_0x2fd1('0x119')](_0x351175,!0x0))){const _0x1ace83=this[_0x2fd1('0xaf')]['getSuggestionCallback'](_0x2fd1('0x2b'),_0xbbac7d,'accept');return this[_0x2fd1('0xdc')](()=>_0x1ace83(_0x18f7c7,null,_0x4c368a)),null;}}const _0x3f099a=this[_0x2fd1('0xaf')]['getSuggestionCallback'](_0x2fd1('0x2b'),_0xbbac7d,'join');let _0x2686ce=null;for(const _0x130e30 of this['getSuggestions']())if(_0x130e30[_0x2fd1('0x2f')]['id']==_0x517656['id']&&_0x130e30[_0x2fd1('0x53')]&&_0x2fd1('0x2b')==_0x130e30[_0x2fd1('0x1a')]&&_0x130e30[_0x2fd1('0x4f')]==_0xbbac7d&&Ot(_0x130e30,_0x4c368a)&&(_0x3f099a(_0x130e30[_0x2fd1('0x1f')](),_0x18f7c7)||_0x3f099a(_0x18f7c7,_0x130e30[_0x2fd1('0x1f')]()))){if(_0x2686ce){if(_0x130e30[_0x2fd1('0x12e')]&&_0x130e30[_0x2fd1('0x12e')][_0x2fd1('0xec')])continue;for(const _0x5ce612 of _0x130e30[_0x2fd1('0x1f')]())_0x2686ce[_0x2fd1('0x27')](_0x5ce612)||_0x2686ce['addRange'](_0x5ce612);_0x130e30['removeMarkers']();}else{_0x2686ce=_0x130e30;for(const _0x2b9e6d of _0x18f7c7)_0x130e30[_0x2fd1('0x27')](_0x2b9e6d)||_0x130e30[_0x2fd1('0xf2')](_0x2b9e6d);}}if(_0x2686ce)return _0x2686ce;_0x5e438b[_0x2fd1('0xe')]();for(const {suggestion:_0x22e022,meta:_0x4e2517}of this[_0x2fd1('0x77')](_0x18f7c7,_0x2fd1('0x2b')))_0x4e2517['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e2517[_0x2fd1('0x87')]&&!_0x4e2517[_0x2fd1('0x74')])&&Ot(_0x22e022,_0x4c368a)&&_0x5e438b[_0x2fd1('0x1')](_0x22e022);for(const _0xc3bdd5 of _0x5e438b){const _0x194cca=_0xc3bdd5[_0x2fd1('0x1f')]();if(!_0x4c368a||!_0x4c368a[_0x2fd1('0x3d')]){if(_0x18f7c7[_0x2fd1('0xcc')](_0x165079=>_0x194cca['some'](_0x14ef18=>_0x14ef18[_0x2fd1('0x119')](_0x165079,!0x0))))return _0xc3bdd5;}(!_0xc3bdd5[_0x2fd1('0x9f')]||!_0xc3bdd5[_0x2fd1('0x9f')][_0x2fd1('0x3d')])&&(_0x194cca[_0x2fd1('0xcc')](_0x2c34f8=>_0x18f7c7['some'](_0x35bf24=>_0x35bf24[_0x2fd1('0x119')](_0x2c34f8,!0x0)))&&_0xc3bdd5[_0x2fd1('0xd3')]());}const _0x2a5012=_0x73fc4a(),_0x4ce0fc=_0x517656['id'],_0x176ecf=_0x2fd1('0xe3')+_0xbbac7d,_0x1713eb=this[_0x2fd1('0x2c')]({'id':_0x2a5012,'type':_0x176ecf,'createdAt':new Date(),'authorId':_0x4ce0fc,'attributes':_0x4c368a});for(const _0x38e5c1 of _0x18f7c7)_0x38e5c1[_0x2fd1('0x10c')](),_0x38e5c1[_0x2fd1('0xf4')]||'$graveyard'==_0x38e5c1[_0x2fd1('0x71')][_0x2fd1('0xfe')]||this[_0x2fd1('0xb4')](_0x176ecf,_0x2a5012,_0x4ce0fc,_0x38e5c1,_0x1593d2[_0x2fd1('0x114')]());return _0x1713eb;}[_0x2fd1('0x122')](_0x17f84b,_0x20877e){const _0x3e0e0f=_0x17f84b[_0x2fd1('0x11d')]();this[_0x2fd1('0x39')][_0x2fd1('0xa1')](_0x3c644d=>{_0x3c644d[_0x2fd1('0x41')](_0x3e0e0f,{'range':_0x20877e});});}[_0x2fd1('0x4')](_0x5e81eb){const _0x1c2395=_0x5e81eb['id'],_0x21f8da=this[_0x2fd1('0xb3')]['config'][_0x2fd1('0x51')](_0x2fd1('0x12b'));this[_0x2fd1('0xe7')][_0x2fd1('0xe4')](_0x1c2395)||this['_commentsRepository'][_0x2fd1('0xd6')]({'channelId':_0x21f8da,'threadId':_0x1c2395,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x67a63=this[_0x2fd1('0xe7')][_0x2fd1('0x78')](_0x1c2395);_0x67a63[_0x2fd1('0xc7')](_0x2fd1('0x73')),_0x67a63[_0x2fd1('0x73')]=!0x1,_0x5e81eb['commentThread']=_0x67a63;}[_0x2fd1('0xb9')](_0x162985,_0x44b8a8,_0x36a652,_0x5a8822){if(_0x162985[_0x2fd1('0x1a')]!=_0x44b8a8||_0x162985[_0x2fd1('0x4f')]!=_0x36a652||_0x162985[_0x2fd1('0x66')]['id']!=_0x5a8822)throw this[_0x2fd1('0xb3')][_0x2fd1('0x34')](_0x2fd1('0x40')),new _0x394079(_0x2fd1('0x40'),this);}[_0x2fd1('0x7e')](_0x8ac734,_0xedf509){const _0xed5d28=_0x8ac734[_0x2fd1('0x20')]();if(_0xedf509[_0x2fd1('0xe0')](_0xed5d28))_0x8ac734[_0x2fd1('0x19')]();else{if(_0xed5d28[_0x2fd1('0x119')](_0xedf509)){const _0x5e2254=this[_0x2fd1('0x39')][_0x2fd1('0x94')](_0xedf509[_0x2fd1('0xa8')]['nodeBefore'],_0x2fd1('0x50'));this[_0x2fd1('0x122')](_0x8ac734,this[_0x2fd1('0x39')]['createRange'](_0xed5d28['start'],_0x5e2254));const _0x2c6bfb=_0x73fc4a(),_0x1a8389=_0x8ac734[_0x2fd1('0x66')]['id'],_0x59aed1=_0x8ac734[_0x2fd1('0x1a')]+':'+_0x8ac734[_0x2fd1('0x4f')];this[_0x2fd1('0x2c')]({'id':_0x2c6bfb,'type':_0x59aed1,'createdAt':new Date(),'authorId':_0x1a8389,'data':_0x8ac734['data'],'attributes':_0x8ac734['attributes']});const _0x32f0be=this[_0x2fd1('0x39')]['createPositionAt'](_0xedf509[_0x2fd1('0x50')][_0x2fd1('0x103')],'after'),_0x5773c8=this[_0x2fd1('0x39')][_0x2fd1('0xda')](_0x32f0be,_0xed5d28[_0x2fd1('0x50')]);this[_0x2fd1('0xb4')](_0x59aed1,_0x2c6bfb,_0x1a8389,_0x5773c8);}else{if(_0xed5d28['containsPosition'](_0xedf509['start'])){const _0x12700e=this[_0x2fd1('0x39')]['createPositionAt'](_0xedf509[_0x2fd1('0xa8')][_0x2fd1('0x85')],'end');this[_0x2fd1('0x122')](_0x8ac734,this[_0x2fd1('0x39')][_0x2fd1('0xda')](_0xed5d28['start'],_0x12700e));}else{const _0x332581=this['_model']['createPositionAt'](_0xedf509[_0x2fd1('0x50')][_0x2fd1('0x103')],_0x2fd1('0x65'));this['_setSuggestionRange'](_0x8ac734,this[_0x2fd1('0x39')][_0x2fd1('0xda')](_0x332581,_0xed5d28['end']));}}}}[_0x2fd1('0x5f')](_0x274db9){for(const {suggestion:_0x512039,meta:_0x4f7d30}of this[_0x2fd1('0x77')](_0x274db9,'insertion')){if(!_0x4f7d30[_0x2fd1('0x63')])continue;const _0x398e2c=_0x512039[_0x2fd1('0x1f')]();for(const _0x3caf77 of _0x398e2c)if(!_0x274db9[_0x2fd1('0x32')](_0x3caf77)['length'])return!0x0;}return!0x1;}[_0x2fd1('0x52')](_0x3b1e5b){const _0xa9eaa5=this[_0x2fd1('0xb3')]['plugins'][_0x2fd1('0x51')]('Users')['getUser'](_0x3b1e5b);if(!_0xa9eaa5)throw new _0x394079('track-changes-user-not-found',this);return _0xa9eaa5;}[_0x2fd1('0xc0')](_0x5e6ec5){const _0x1c9df6=this[_0x2fd1('0xb3')]['plugins'][_0x2fd1('0x51')](_0x2fd1('0x1d')),_0x2b286f=_0x486f3d(_0x2fd1('0xdb')+_0x5e6ec5),_0x51a885=_0x1c9df6[_0x2fd1('0x127')](_0x2b286f);return _0x51a885||_0x1c9df6[_0x2fd1('0x1b')]({'id':_0x2b286f,'name':_0x5e6ec5});}[_0x2fd1('0xef')](_0x4dce0b,_0x4f7e2d,_0x1428e3,_0x252be4,_0x5003d3){const _0x19cffb=this['_getAuthorFromId'](_0x252be4),_0x32327d=this[_0x2fd1('0xaf')][_0x2fd1('0xf7')](_0x4dce0b,_0x4f7e2d,_0x1428e3,_0x19cffb,_0x5003d3,_0x5e3bcd=>this[_0x2fd1('0x42')](_0x1428e3,{'attributes':_0x5e3bcd}));return this['listenTo'](_0x32327d,'accept',()=>{this[_0x2fd1('0x42')](_0x1428e3,{'state':_0x2fd1('0x1c')});},{'priority':'high'}),this[_0x2fd1('0x113')](_0x32327d,_0x2fd1('0xd3'),()=>{this[_0x2fd1('0x42')](_0x1428e3,{'state':_0x2fd1('0x12f')});},{'priority':_0x2fd1('0x101')}),this[_0x2fd1('0x128')][_0x2fd1('0xbd')](_0x1428e3,_0x32327d),this[_0x2fd1('0x58')][_0x2fd1('0xbd')](_0x32327d,_0x2fd1('0x64')),_0x32327d;}[_0x2fd1('0x11a')](_0x1746c1){const _0x1edf51=_0x1746c1[_0x2fd1('0x9a')](':');return{'group':_0x1edf51[0x0],'type':_0x1edf51[0x1],'subType':_0x1edf51[_0x2fd1('0xec')]>=0x5?_0x1edf51[0x2]:null,'id':_0x1edf51[_0x2fd1('0xec')]<0x5?_0x1edf51[0x2]:_0x1edf51[0x3],'authorId':_0x1edf51[_0x2fd1('0xec')]<0x5?_0x1edf51[0x3]:_0x1edf51[0x4],'markerCount':0x6==_0x1edf51['length']?_0x1edf51[0x5]:null};}[_0x2fd1('0x10')](_0xa83ea4,_0x2b830f,_0x173e94){const _0x70441b=_0xa83ea4[_0x2fd1('0x20')](),_0xfa4b57=_0x70441b[_0x2fd1('0xa8')],_0x58313b=_0x70441b[_0x2fd1('0x50')];this[_0x2fd1('0x122')](_0xa83ea4,this[_0x2fd1('0x39')]['createRange'](_0xfa4b57,_0x2b830f));const _0x1abd01=_0x73fc4a(),_0x49f5eb=_0xa83ea4[_0x2fd1('0x66')]['id'],_0x16bb18=_0xa83ea4[_0x2fd1('0x1a')]+(_0xa83ea4['subType']?':'+_0xa83ea4[_0x2fd1('0x4f')]:'');this[_0x2fd1('0x2c')]({'id':_0x1abd01,'type':_0x16bb18,'createdAt':new Date(),'authorId':_0x49f5eb,'originalSuggestionId':_0xa83ea4['id'],'attributes':_0xa83ea4[_0x2fd1('0x9f')],'data':_0xa83ea4['data']}),'formatBlock'==_0xa83ea4['type']&&(_0x173e94=this[_0x2fd1('0x39')][_0x2fd1('0xb6')](_0x173e94['parent'])),this[_0x2fd1('0xb4')](_0x16bb18,_0x1abd01,_0x49f5eb,this['_model'][_0x2fd1('0xda')](_0x173e94,_0x58313b));}[_0x2fd1('0x77')](_0x2025da,_0x540158=null){const _0x38b480=[],_0x108fee=this[_0x2fd1('0xb3')][_0x2fd1('0xe1')][_0x2fd1('0x51')](_0x2fd1('0x1d'))['me'];Array[_0x2fd1('0x5b')](_0x2025da)||(_0x2025da=[_0x2025da]);for(const _0x465e75 of this[_0x2fd1('0x84')]()){if(!_0x465e75[_0x2fd1('0x53')])continue;if(_0x540158&&_0x465e75[_0x2fd1('0x1a')]!=_0x540158)continue;let _0x28d861=!0x1;for(const _0x1e9873 of _0x465e75[_0x2fd1('0x1f')]()){for(const _0x2dde55 of _0x2025da){const _0x154407=_0x2dde55[_0x2fd1('0xa8')][_0x2fd1('0xe0')](_0x1e9873[_0x2fd1('0x50')])||_0x2dde55[_0x2fd1('0x50')][_0x2fd1('0xe0')](_0x1e9873['start']);if(_0x154407||_0x2dde55[_0x2fd1('0x3a')](_0x1e9873)){const _0x2fa89b=_0x2dde55[_0x2fd1('0x119')](_0x1e9873)&&_t(this[_0x2fd1('0x39')][_0x2fd1('0x98')],_0x1e9873[_0x2fd1('0xa8')],_0x2dde55),_0x20787a=_0x1e9873[_0x2fd1('0x119')](_0x2dde55)&&_t(this['_model'][_0x2fd1('0x98')],_0x2dde55[_0x2fd1('0xa8')],_0x1e9873);_0x38b480[_0x2fd1('0x123')]({'suggestion':_0x465e75,'meta':{'isOwn':_0x108fee==_0x465e75['author'],'isNextTo':_0x154407,'isInsideObject':_0x2fa89b,'containsRangeInObject':_0x20787a}}),_0x28d861=!0x0;break;}}if(_0x28d861)break;}}return _0x38b480;}['_addSuggestionMarker'](_0x2f0682,_0x4dd09,_0x5cf7b8,_0x393cb3,_0x105478){this[_0x2fd1('0x39')]['change'](_0x31b7d4=>{let _0x4707d1=_0x2fd1('0x7f')+_0x2f0682+':'+_0x4dd09+':'+_0x5cf7b8;_0x105478&&(_0x4707d1=_0x4707d1+':'+_0x105478),_0x31b7d4[_0x2fd1('0x93')](_0x4707d1,{'range':_0x393cb3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2fd1('0x8d')](_0x4284ac){const _0x6d5657=_0x4284ac[_0x2fd1('0x13b')],_0xb5cf61=_0x4284ac['next'];_0x4284ac[_0x2fd1('0x13b')]=null,null!=_0x6d5657&&(_0x6d5657[_0x2fd1('0x8b')]=null),_0x4284ac['next']=null,null!=_0xb5cf61&&(_0xb5cf61['previous']=null),_0x2fd1('0x110')==this['_suggestionState']['get'](_0x4284ac)&&(this[_0x2fd1('0x58')][_0x2fd1('0xbd')](_0x4284ac,_0x2fd1('0x55')),this['fire'](_0x2fd1('0x4e'),_0x4284ac,_0x6d5657,_0xb5cf61));}[_0x2fd1('0x2c')](_0x478e94){const _0x121b6b=_0x478e94['id'],_0x3b2271=this['addSuggestionData'](_0x478e94);if(this[_0x2fd1('0x126')]&&this[_0x2fd1('0x126')][_0x2fd1('0xc5')]){const _0x23297d=this[_0x2fd1('0xb3')][_0x2fd1('0xe1')]['get'](_0x2fd1('0x7a')),_0x3d454d=_0x3b2271[_0x2fd1('0x115')],_0x341bb7=_0x3b2271[_0x2fd1('0x4f')]?_0x3b2271[_0x2fd1('0x1a')]+':'+_0x3b2271['subType']:_0x3b2271[_0x2fd1('0x1a')],_0x53a444=this[_0x2fd1('0xb3')][_0x2fd1('0x26')],_0xd6d8d1=_0x23297d[_0x2fd1('0x1')](_0x75327f(_0x53a444,_0x2fd1('0x23'))),_0x1d7b71={'id':_0x121b6b,'type':_0x341bb7,'hasComments':_0x3d454d,'data':_0x478e94[_0x2fd1('0x6a')]||null,'originalSuggestionId':_0x478e94[_0x2fd1('0x129')]||null,'attributes':_0x3b2271[_0x2fd1('0x9f')]};this[_0x2fd1('0x126')][_0x2fd1('0xc5')](_0x1d7b71)[_0x2fd1('0x4a')](_0x1fa9df=>{_0x3b2271[_0x2fd1('0x36')]=!0x0,_0x23297d[_0x2fd1('0xbe')](_0xd6d8d1),_0x1fa9df&&_0x1fa9df[_0x2fd1('0xdd')]&&(this['_suggestions'][_0x2fd1('0x51')](_0x121b6b)[_0x2fd1('0xdd')]=_0x1fa9df[_0x2fd1('0xdd')]);})['catch'](_0x20e2a7=>{throw _0x243937('error-saving-suggestion-data-suggestion-discarded'),this[_0x2fd1('0xb3')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b2271[_0x2fd1('0xd3')]();}),_0x3b2271[_0x2fd1('0x12d')](),this[_0x2fd1('0x128')][_0x2fd1('0x91')](_0x3b2271['id']),this[_0x2fd1('0x58')]['delete'](_0x3b2271),_0x20e2a7;});}return _0x3b2271;}[_0x2fd1('0x42')](_0x2039a8,_0x13276d){const _0x2632dd=this['editor'][_0x2fd1('0xe1')][_0x2fd1('0x51')]('PendingActions'),_0x178e7e=this[_0x2fd1('0x70')](_0x2039a8);if(this[_0x2fd1('0x126')]&&this[_0x2fd1('0x126')]['updateSuggestion']){if(_0x178e7e[_0x2fd1('0x36')]){const _0x2c92be=_0x2632dd['add'](_0x75327f(this['editor'][_0x2fd1('0x26')],_0x2fd1('0x23')));this['_adapter'][_0x2fd1('0x82')](_0x2039a8,_0x13276d)['then'](()=>{_0x2632dd[_0x2fd1('0xbe')](_0x2c92be);});}else _0x178e7e['on']('change:_saved',()=>{this[_0x2fd1('0x42')](_0x2039a8,_0x13276d);});}}[_0x2fd1('0xa6')](_0x34b70e){if(!this['_adapter']||!this[_0x2fd1('0x126')][_0x2fd1('0x70')])throw new _0x394079(_0x2fd1('0xa5'),this);return this[_0x2fd1('0x126')][_0x2fd1('0x70')](_0x34b70e);}['_handleNewSuggestionMarker'](_0x4b3b8e){const {id:_0x5e8380,type:_0x2dbdf1,subType:_0x4b9f50,authorId:_0x1c77df}=this[_0x2fd1('0x11a')](_0x4b3b8e),_0x27534b=this[_0x2fd1('0x128')][_0x2fd1('0x51')](_0x5e8380)||this['_createSuggestion'](_0x2dbdf1,_0x4b9f50,_0x5e8380,_0x1c77df,{});switch(this['_checkSuggestionCorrectness'](_0x27534b,_0x2dbdf1,_0x4b9f50,_0x1c77df),this['_suggestionState']['get'](_0x27534b)){case'notReady':this[_0x2fd1('0xa6')](_0x5e8380)[_0x2fd1('0x4a')](_0x2859b3=>{let _0x95de02=Promise[_0x2fd1('0xe6')]();_0x2859b3['hasComments']&&(_0x95de02=this[_0x2fd1('0xe7')][_0x2fd1('0xc2')]({'channelId':this['editor'][_0x2fd1('0xa0')][_0x2fd1('0x51')](_0x2fd1('0x12b')),'threadId':_0x5e8380})),_0x95de02[_0x2fd1('0x4a')](()=>{this[_0x2fd1('0x118')](_0x2859b3)[_0x2fd1('0x36')]=!0x0;});}),this[_0x2fd1('0x58')][_0x2fd1('0xbd')](_0x27534b,_0x2fd1('0xd1'));break;case _0x2fd1('0x55'):this['_updateSuggestionData'](_0x5e8380,{'state':_0x2fd1('0x6d')});case _0x2fd1('0xdf'):this[_0x2fd1('0x58')][_0x2fd1('0xbd')](_0x27534b,_0x2fd1('0x110')),this[_0x2fd1('0x4c')](_0x2fd1('0x12a'),_0x27534b);break;case _0x2fd1('0x110'):this['fire']('suggestionChanged',_0x27534b);}return _0x27534b['addMarkerName'](_0x4b3b8e),_0x27534b;}[_0x2fd1('0x6c')](_0x36d942){const _0x56c7f5=Array[_0x2fd1('0x72')](_0x36d942)[_0x2fd1('0x121')](_0x16eaf3=>!_0x16eaf3[_0x2fd1('0x104')]),_0x3bbb8c=this['getSuggestions']({'skipNotAttached':!0x0})[_0x2fd1('0x121')](_0x377ed3=>!_0x377ed3['isMultiRange']),_0x444ceb=_0x3bbb8c['filter'](_0x24b1c2=>!_0x36d942['has'](_0x24b1c2)),_0x381a98=new Map(_0x3bbb8c['map'](_0x2ac032=>[_0x2ac032,this[_0x2fd1('0xaf')][_0x2fd1('0x68')](_0x2ac032[_0x2fd1('0x1a')],_0x2ac032[_0x2fd1('0x4f')],_0x2fd1('0xb7'))])),_0x3d5f0d=new Map(_0x3bbb8c['map'](_0xdc83bf=>[_0xdc83bf,_0xdc83bf[_0x2fd1('0x20')]()])),_0x165825=new Set(),_0x17448f=new Set();for(let _0x1bbed3=0x0;_0x1bbed3<_0x56c7f5[_0x2fd1('0xec')];_0x1bbed3++)_0x42fe16(_0x56c7f5[_0x1bbed3],_0x56c7f5,_0x1bbed3+0x1);for(let _0x383ce9=0x0;_0x383ce9<_0x56c7f5[_0x2fd1('0xec')];_0x383ce9++)_0x42fe16(_0x56c7f5[_0x383ce9],_0x444ceb,0x0);for(let _0x5c08ef=0x0;_0x5c08ef<_0x56c7f5[_0x2fd1('0xec')];_0x5c08ef++){const _0x1b3328=_0x56c7f5[_0x5c08ef];!_0x17448f[_0x2fd1('0x8a')](_0x1b3328)&&_0x1b3328['previous']&&(_0x1b3328[_0x2fd1('0x13b')][_0x2fd1('0x8b')]===_0x1b3328&&(_0x1b3328[_0x2fd1('0x13b')][_0x2fd1('0x8b')]=null),_0x1b3328[_0x2fd1('0x13b')]=null),!_0x165825[_0x2fd1('0x8a')](_0x1b3328)&&_0x1b3328[_0x2fd1('0x8b')]&&(_0x1b3328[_0x2fd1('0x8b')][_0x2fd1('0x13b')]===_0x1b3328&&(_0x1b3328[_0x2fd1('0x8b')]['previous']=null),_0x1b3328[_0x2fd1('0x8b')]=null);}function _0x42fe16(_0x1b4dbb,_0x39d107,_0x47dfa2){for(let _0x2f14a6=_0x47dfa2;_0x2f14a6<_0x39d107[_0x2fd1('0xec')];_0x2f14a6++){const _0x38c176=_0x33fa84(_0x1b4dbb,_0x39d107[_0x2f14a6]);_0x38c176&&(_0x38c176[0x0][_0x2fd1('0x8b')]=_0x38c176[0x1],_0x38c176[0x1][_0x2fd1('0x13b')]=_0x38c176[0x0],_0x165825['add'](_0x38c176[0x0]),_0x17448f[_0x2fd1('0x1')](_0x38c176[0x1]));}}function _0x33fa84(_0x4bc34a,_0xa31388){if(_0x4bc34a[_0x2fd1('0x2f')]['id']!==_0xa31388['author']['id'])return null;const _0x4043c0=_0x381a98[_0x2fd1('0x51')](_0x4bc34a)(_0x4bc34a,_0xa31388,_0x3d5f0d[_0x2fd1('0x51')](_0x4bc34a),_0x3d5f0d[_0x2fd1('0x51')](_0xa31388));if(!_0x4043c0)return null;return _0x381a98[_0x2fd1('0x51')](_0xa31388)(_0x4bc34a,_0xa31388,_0x3d5f0d[_0x2fd1('0x51')](_0x4bc34a),_0x3d5f0d[_0x2fd1('0x51')](_0xa31388))?_0x4043c0[0x1][_0x2fd1('0x12e')]&&_0x4043c0[0x1][_0x2fd1('0x12e')][_0x2fd1('0xec')]?null:_0x4043c0:null;}}[_0x2fd1('0xea')](_0x5b3e7b){const _0x20dbc5=Array[_0x2fd1('0x72')](_0x5b3e7b),_0x4bacac=this[_0x2fd1('0x84')]({'skipNotAttached':!0x0}),_0x1cd48f=_0x4bacac['filter'](_0x70196c=>!_0x5b3e7b[_0x2fd1('0x8a')](_0x70196c)),_0xac09a8=new Map(_0x20dbc5[_0x2fd1('0x138')](_0x16f44e=>[_0x16f44e,this[_0x2fd1('0xaf')][_0x2fd1('0x68')](_0x16f44e['type'],_0x16f44e[_0x2fd1('0x4f')],_0x2fd1('0xe9'))])),_0x3df502=new Map(_0x4bacac[_0x2fd1('0x138')](_0xe60e7=>[_0xe60e7,_0xe60e7['getRanges']()]));for(let _0x5707bc=0x0;_0x5707bc<_0x20dbc5[_0x2fd1('0xec')];_0x5707bc++){if(_0x2375eb(this,_0x20dbc5[_0x5707bc],_0x20dbc5,_0x5707bc+0x1))return!0x0;}for(let _0x749440=0x0;_0x749440<_0x20dbc5[_0x2fd1('0xec')];_0x749440++){if(_0x2375eb(this,_0x20dbc5[_0x749440],_0x1cd48f,0x0))return!0x0;}return!0x1;function _0x2375eb(_0x16c281,_0x1e6812,_0x3a1857,_0x26b13b){for(let _0x2e5e91=_0x26b13b;_0x2e5e91<_0x3a1857[_0x2fd1('0xec')];_0x2e5e91++){const _0xfab13=_0x3a1857[_0x2e5e91];if(_0xfab13[_0x2fd1('0x1a')]!==_0x1e6812[_0x2fd1('0x1a')]||_0xfab13[_0x2fd1('0x2f')]['id']!==_0x1e6812[_0x2fd1('0x2f')]['id']||_0xfab13[_0x2fd1('0x4f')]!==_0x1e6812[_0x2fd1('0x4f')])continue;if(!Ut(_0x1e6812,_0xfab13))continue;const _0x18fa6e=_0xac09a8[_0x2fd1('0x51')](_0x1e6812),_0x348163=_0x3df502['get'](_0x1e6812),_0x5c787f=_0x3df502['get'](_0xfab13),_0x48e6c5=_0x1e6812[_0x2fd1('0x12e')]&&_0x1e6812['commentThread'][_0x2fd1('0xec')],_0x3c5b32=_0xfab13['commentThread']&&_0xfab13[_0x2fd1('0x12e')][_0x2fd1('0xec')];if(!_0x48e6c5&&_0x18fa6e(_0x5c787f,_0x348163))return _0x16c281['_joinSuggestions'](_0xfab13,_0x1e6812),_0x3df502[_0x2fd1('0x91')](_0x1e6812),!0x0;if(!_0x3c5b32&&_0x18fa6e(_0x348163,_0x5c787f))return _0x16c281['_joinSuggestions'](_0x1e6812,_0xfab13),_0x3df502[_0x2fd1('0x91')](_0xfab13),!0x0;}return!0x1;}}[_0x2fd1('0x56')](_0x169c0d,_0x2d2b1d){if(_0x169c0d['isMultiRange'])for(const _0x2eb751 of _0x2d2b1d[_0x2fd1('0x1f')]())_0x169c0d[_0x2fd1('0xf2')](_0x2eb751);else{const _0x39dedf=_0x2d2b1d[_0x2fd1('0x20')]()['end'];this[_0x2fd1('0x122')](_0x169c0d,this[_0x2fd1('0x39')]['createRange'](_0x169c0d[_0x2fd1('0x20')]()[_0x2fd1('0xa8')],_0x39dedf));}_0x2d2b1d['removeMarkers']();}}class Bt{constructor(_0x487798){this[_0x2fd1('0xac')]=_0x487798,this[_0x2fd1('0x39')]=_0x487798[_0x2fd1('0xfb')],this[_0x2fd1('0x13d')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x2fd1('0x22')]();}['buildSuggestion'](_0x36f33d,_0x5d7214,_0x374370,_0x17e3ef,_0x113af3,_0x5061ba){return new _0x1593d2(this[_0x2fd1('0x39')],{'type':_0x36f33d,'subType':_0x5d7214,'id':_0x374370,'author':_0x17e3ef,'creator':_0x17e3ef,'attributes':_0x113af3,'onAttributesChange':_0x5061ba,'onAccept':(..._0x2bac4f)=>this[_0x2fd1('0x68')](_0x36f33d,_0x5d7214,'accept')(..._0x2bac4f),'onDiscard':(..._0x287296)=>this[_0x2fd1('0x68')](_0x36f33d,_0x5d7214,_0x2fd1('0xd3'))(..._0x287296)});}['registerCustomCallback'](_0x1de795,_0x27475e,_0x42a0d5,_0x54ee38){const _0x1b2bac=_0x1de795+':'+_0x27475e+':'+_0x42a0d5;this[_0x2fd1('0x13d')][_0x2fd1('0xbd')](_0x1b2bac,_0x54ee38);}[_0x2fd1('0x68')](_0x800d58,_0x3d8b55,_0x576872){const _0x259d20=_0x800d58+':'+_0x3d8b55+':'+_0x576872;return this[_0x2fd1('0x13d')]['get'](_0x259d20)||this[_0x2fd1('0x3')]['get'](_0x800d58+':'+_0x576872);}[_0x2fd1('0x22')](){const _0x59f36b=()=>!0x1,_0x3d84c9=_0x1e954d=>{_0x1e954d[_0x2fd1('0xab')]((_0x4ad67f,_0x146174)=>_0x4ad67f[_0x2fd1('0xa8')]['isBefore'](_0x146174[_0x2fd1('0xa8')])?0x1:-0x1),this[_0x2fd1('0x39')][_0x2fd1('0xa1')](_0x1720b6=>{for(const _0x37b66f of _0x1e954d){let _0x58fb3b;_0x58fb3b=_0x37b66f[_0x2fd1('0x50')][_0x2fd1('0x131')]&&_0x37b66f[_0x2fd1('0x50')]['parent']==_0x37b66f[_0x2fd1('0xa8')]['nodeAfter']?_0x1720b6[_0x2fd1('0xf0')](_0x37b66f[_0x2fd1('0xa8')][_0x2fd1('0x5a')],'on'):_0x1720b6[_0x2fd1('0xf0')](_0x37b66f),this[_0x2fd1('0x39')][_0x2fd1('0x2e')](_0x58fb3b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x446171=(_0x294816,_0x114df9)=>{this[_0x2fd1('0x39')]['change'](_0x40ffcf=>{const {commandName:_0x52441c,commandParams:_0x4edf15=[]}=_0x114df9,_0x1d815f=_0x294816['map'](_0x401260=>(Mt(_0x401260)&&(_0x401260=this[_0x2fd1('0x39')][_0x2fd1('0xda')](_0x401260[_0x2fd1('0x50')])),_0x401260))[_0x2fd1('0x121')](_0x510cdb=>_0x2fd1('0xa9')!==_0x510cdb['root'][_0x2fd1('0xfe')]);if(_0x1d815f[_0x2fd1('0xec')]<0x1)return;const _0x5b26a9=Array[_0x2fd1('0x72')](this[_0x2fd1('0x39')]['document'][_0x2fd1('0x4b')][_0x2fd1('0x1f')]())['map'](_0x5a984d=>_0x32cb49['fromRange'](_0x5a984d));_0x40ffcf['setSelection'](_0x1d815f);for(const _0x460448 of this['_editor'][_0x2fd1('0x24')][_0x2fd1('0x24')]())_0x460448[_0x2fd1('0xb2')]();_0x4edf15['push']({'forceDefaultExecution':!0x0}),this[_0x2fd1('0xac')][_0x2fd1('0x116')](_0x52441c,..._0x4edf15);const _0x68a76a=_0x5b26a9[_0x2fd1('0x121')](_0x3a3f22=>_0x2fd1('0xa9')!=_0x3a3f22['root'][_0x2fd1('0xfe')]);_0x68a76a[_0x2fd1('0xec')]>0x0&&_0x40ffcf[_0x2fd1('0x5c')](_0x68a76a);for(const _0x5207ec of _0x5b26a9)_0x5207ec[_0x2fd1('0x10c')]();});},_0x4ddf61=(_0x1c72e9,_0x471a9e)=>0x1==_0x1c72e9[_0x2fd1('0xec')]&&0x1==_0x471a9e['length']&&_0x1c72e9[0x0][_0x2fd1('0x50')][_0x2fd1('0xe0')](_0x471a9e[0x0]['start']),_0xb92e2e=(_0x3d8839,_0x5ece29,_0x18ebcc,_0x1547be)=>xt(_0x3d8839,_0x5ece29,_0x18ebcc,_0x1547be,this[_0x2fd1('0x39')])?[_0x3d8839,_0x5ece29]:xt(_0x5ece29,_0x3d8839,_0x1547be,_0x18ebcc,this['_model'])?[_0x5ece29,_0x3d8839]:null;this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0x8f'),_0x59f36b),this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0x3f'),_0x3d84c9),this[_0x2fd1('0x3')][_0x2fd1('0xbd')]('insertion:join',_0x4ddf61),this[_0x2fd1('0x3')]['set'](_0x2fd1('0x75'),_0xb92e2e),this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0x111'),_0x3d84c9),this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0x83'),_0x59f36b),this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0xc'),_0x4ddf61),this[_0x2fd1('0x3')]['set'](_0x2fd1('0x117'),_0xb92e2e),this['_defaultCallbacks']['set'](_0x2fd1('0x100'),_0x446171),this[_0x2fd1('0x3')][_0x2fd1('0xbd')]('formatInline:discard',_0x59f36b),this['_defaultCallbacks']['set'](_0x2fd1('0xce'),_0x4ddf61),this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0x10e'),_0x59f36b),this[_0x2fd1('0x3')]['set'](_0x2fd1('0x9e'),_0x446171),this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0xaa'),_0x59f36b),this['_defaultCallbacks'][_0x2fd1('0xbd')]('formatBlock:join',_0x4ddf61),this[_0x2fd1('0x3')][_0x2fd1('0xbd')](_0x2fd1('0xeb'),_0x59f36b);}}function _t(_0x52600f,_0x5c432a,_0x51112c){for(const _0x27e6eb of _0x5c432a['parent'][_0x2fd1('0x48')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x27e6eb[_0x2fd1('0x71')]==_0x27e6eb)return!0x1;if(!_0x51112c[_0x2fd1('0x106')](_0x27e6eb))return!0x1;if(_0x52600f[_0x2fd1('0x7d')](_0x27e6eb)||_0x52600f[_0x2fd1('0x5')](_0x27e6eb))return!0x0;}return!0x1;}function Mt(_0x2aa20a){return _0x2aa20a[_0x2fd1('0x50')][_0x2fd1('0x103')]==_0x2aa20a[_0x2fd1('0xa8')][_0x2fd1('0x5a')]&&_0x2aa20a[_0x2fd1('0x50')][_0x2fd1('0xd2')];}function $t(_0x1ebc8a,_0x52067e,_0x103f73,_0x17dde8){const _0x53130d=_0xb54a55=>!_0xb54a55[_0x2fd1('0xff')]['is'](_0x2fd1('0xa'))&&!_0x17dde8[_0x2fd1('0x7d')](_0xb54a55[_0x2fd1('0xff')]),_0x232375=_0x1ebc8a['start']['getLastMatchingPosition'](_0x53130d),_0x4c9e9f=_0x1ebc8a[_0x2fd1('0x50')]['getLastMatchingPosition'](_0x53130d,{'direction':_0x2fd1('0x37')});return(!_0x1ebc8a[_0x2fd1('0xa8')][_0x2fd1('0xe0')](_0x232375)||!_0x1ebc8a[_0x2fd1('0x50')][_0x2fd1('0xe0')](_0x4c9e9f))&&(_0x232375[_0x2fd1('0x10b')](_0x4c9e9f)?_0x103f73[_0x2fd1('0x41')](_0x52067e,{'range':_0x103f73['createRange'](_0x232375,_0x4c9e9f)}):_0x103f73[_0x2fd1('0x130')](_0x52067e),!0x0);}function Nt(_0x121cb3){return _0x486f3d(_0x121cb3);}function Rt(_0x3101dd){const _0x5dbd06=_0x3101dd['start'][_0x2fd1('0x5a')];return _0x5dbd06&&_0x5dbd06['is'](_0x2fd1('0x10a'));}function jt(_0x3627d0,_0x52e44a){const _0x3ae317=_0x52e44a[_0x2fd1('0x98')][_0x2fd1('0x7d')](_0x3627d0)||_0x52e44a[_0x2fd1('0x98')][_0x2fd1('0xde')](_0x3627d0);return _0x52e44a[_0x2fd1('0xda')](_0x52e44a[_0x2fd1('0x94')](_0x3627d0,_0x2fd1('0x2a')),_0x3ae317?_0x52e44a['createPositionAfter'](_0x3627d0):_0x52e44a[_0x2fd1('0x94')](_0x3627d0,_0x2fd1('0x50')));}function xt(_0x3ec59c,_0x1edb81,_0x7aa5b7,_0x4c6574,_0x3fecde){if(!Ut(_0x3ec59c,_0x1edb81))return!0x1;if(_0x7aa5b7[_0x2fd1('0x50')]['isEqual'](_0x4c6574[_0x2fd1('0xa8')]))return!0x0;if(_0x3ec59c['type']!=_0x1edb81['type'])return!0x1;if(!_0x7aa5b7[_0x2fd1('0x50')]['isTouching'](_0x4c6574['start']))return!0x1;const _0x3c7133=_0x3fecde['createRange'](_0x7aa5b7[_0x2fd1('0x50')],_0x4c6574[_0x2fd1('0xa8')])['getWalker']();for(const _0x539d5f of _0x3c7133)if([_0x2fd1('0xa2'),_0x2fd1('0x88')][_0x2fd1('0x16')](_0x539d5f[_0x2fd1('0x1a')])&&_0x3fecde[_0x2fd1('0x98')]['isLimit'](_0x539d5f['item']))return!0x1;return!0x0;}function Ut(_0x44f3e0,_0x58e7e0){return!(!_0x44f3e0[_0x2fd1('0x3c')]||!_0x58e7e0['_isDataLoaded'])&&_0xb8c440(_0x44f3e0[_0x2fd1('0x9f')],_0x58e7e0[_0x2fd1('0x9f')]);}function Ot(_0x366399,_0xd0f1aa){const _0x2ccc0f=Et(_0x366399[_0x2fd1('0x9f')]),_0x529433=Et(_0xd0f1aa);if(!_0x366399[_0x2fd1('0x3c')])return!0x1;for(const _0x4215c9 of Object[_0x2fd1('0x46')](_0x529433))if(!_0xb8c440(_0x2ccc0f[_0x4215c9],_0x529433[_0x4215c9]))return!0x1;return!0x0;}function Et(_0xd6e28c){const _0x4eb269=Object[_0x2fd1('0x13')]({},_0xd6e28c);return delete _0x4eb269[_0x2fd1('0x3d')],delete _0x4eb269[_0x2fd1('0xcf')],_0x4eb269;}
23
+ const _0x4f1b=['clear','isBlock','getMarkers','isUndo','collaboration.channelId','discard','discardSelectedSuggestions','subType','_rangeIsInLocalUserInsertion','_breakSuggestionMarker','isLimit','consumable','_updateSuggestionData','_saved','item','fromCharCode','toViewElement','showSuggestionHighlights','acceptAllSuggestions','stop','markInlineFormat','sort','isSelectable','getFirstMarker','high','createdAt','markMultiRangeInsertion','previous','_getSuggestionData','hasCommentThread','writer','insertContent','formatInline:join','listenTo','_findSuggestions','getSuggestionCallback','containsRange','_addSuggestionMarker','trackChanges.trackFormatChanges','deletion:chain','bindElementToMarker','resolve','_getExternalAuthor','config','suggestionChanged','getSuggestion','getRange','insertion:chain','_getAuthorFromId','model','filter','error-saving-suggestion-data-suggestion-discarded','name','notReady','markInsertion','enableCommand','newRange','insertion:join','track-changes-suggestion-data-mismatch','_trackFormatChanges','markBlockFormat','isTouching','getWalker','includes','isCollapsed','discardSuggestion','move','elementToElement','multi','getIntersection','nodeAfter','low','createSelection','data-suggestion','_suggestionState','deletion:join','isExternal','assign','documentSelection','$textProxy','isAtStart','isArray','markerName','containsPosition','_removeSuggestion','_commentsRepository','getRanges','getAttribute','value','isEqual','ck-suggestion-marker--active','setAttribute','formatInline','getCustomProperty','ck-suggestion-marker-formatBlock','insertion:accept','unbind','forceDefaultExecution','nodeBefore','start','range','getAllAdjacentSuggestions','addSuggestionData','creator','dataDowncast','removed','adapter','mapper','set','addMarkerName','targetPosition','markMultiRangeDeletion','_suggestions','fire','howMany','_joinWithAdjacentSuggestions','formatBlock:accept','isRemovable','plugins','editor','suggestion','oldRange','every','toJSON','options','define','setTo','forward','_suggestionFactory','tablePasteChainId','addMarker:suggestion','marker-count','delete','_editor','markerReady','isInContent','_onDiscard','conversion','suggestionLoaded','PendingActions','hasComments','trackChanges.mergeNestedSuggestions','PENDING_ACTION_SUGGESTION','_joinSuggestions','execute','markers','open','detach','removeComment','fromRange','isIntersectingWithRange','_handleNewSuggestionMarker','_setSuggestionData','values','formatBlock:join','some','group','getItems','deletion','change:data','isInsideObject','locale','_mergeNestedSuggestions','isAfter','addClass','removeMarker','_isDataLoaded','ck-suggestion-marker','_addThreadToSuggestion','getMultiRangeId','originalSuggestionId','size','_refreshSuggestionsChain','@external','elementStart','insert','type','_customCallbacks','isBefore','_isForcedDefaultExecutionBlock','_defaultCallbacks','formatBlock:discard','addComment','fetchCommentThread','accept','add','catch','getChangedMarkers','join','has','createPositionAfter','author','after','_registerDefaultCallbacks','formatInline:chain','authorName','markerToHighlight','suggestionUnloaded','addMarker:suggestion:formatBlock','attributes','ready','formatBlock','document','differ','createRangeIn','highest','skipNestingCheck','formatBlock:chain','then','removeMarker:suggestion:formatBlock','createPositionAt','dataReady','ck-suggestion-marker-','multipleBlocks','update:suggestion','from','track-changes-adapter-already-set','addSuggestion','external:','data','isNextTo','_adapter','rejected','commands','suggestion:','stopListening','trackChanges','buildSuggestion','getSuggestions','deletion:','consume','_cutOutSuggestionMarker','CommentsRepository','track-changes-adapter-missing-getsuggestion','isLocal','formatInline:','discardAllSuggestions','selection','createRange','registerPostFixer','_splitMarkerName','getLastMatchingPosition','getNearestSelectionRange','insertion:','map','position','$marker','deleteContent','elementEnd','change','getDifference','get','getChanges','_enabledCommands','isMultiRange','never','insertion','addMarker','_checkSuggestionCorrectness','acceptSelectedSuggestions','updateMarker','end','head','addRange','split','keys','_createSuggestion','getAncestors','getShiftedBy','unbindElementFromMarkerName','formatGroupId','for','init','applyOperation','change:_saved','root','$graveyard','containerElement','acceptSuggestion','removeClass','next','isDocumentOperation','schema','rootName','getUser','always','getFirstRange','parent','moveTargetPosition','getCommentThread','setSelection','updateSuggestion','removeMarkers','markDeletion','change:activeMarkers','formatBlock:','push','trackChangesCommand','batch','commentThread','widget','element','containsItem','isOwn','backward','activeMarkers','accepted','_model','TrackChangesEditing','_setSuggestionRange','containsRangeInObject','dataToMarker','remove','deletion:discard','insertion:discard','isObject','length','splitPosition','Users','lowest','upcast','chain','editingDowncast','addUser','suggestion-type'];(function(_0x5e6b10,_0x4f1b10){const _0x1d2b13=function(_0x24ee32){while(--_0x24ee32){_0x5e6b10['push'](_0x5e6b10['shift']());}};_0x1d2b13(++_0x4f1b10);}(_0x4f1b,0x1f1));const _0x1d2b=function(_0x5e6b10,_0x4f1b10){_0x5e6b10=_0x5e6b10-0x0;let _0x1d2b13=_0x4f1b[_0x5e6b10];return _0x1d2b13;};import{Plugin as _0x381611,PendingActions as _0x5c1225}from'ckeditor5/src/core';import{LiveRange as _0x4a5f34}from'ckeditor5/src/engine';import{CKEditorError as _0x2364b6,uid as _0x430f0f,priorities as _0x5b0760,logWarning as _0x5efed4}from'ckeditor5/src/utils';import{toWidget as _0x49087c}from'ckeditor5/src/widget';import{Users as _0x15456b,hashObject as _0x4dc587}from'ckeditor5-collaboration/src/collaboration-core';import _0x8f7a12 from'./commands/trackchangescommand';import _0xc2d465 from'./commands/acceptsuggestioncommand';import _0x5bafad from'./commands/discardsuggestioncommand';import _0x41096b from'./commands/executeonallsuggestionscommand';import _0x13c961 from'./commands/executeonselectedsuggestionscommand';import _0x24076c from'./suggestion';import _0x262b1c from'./suggestiondescriptionfactory';import _0x563138 from'./integrations/aiassistant';import _0x21ee44 from'./integrations/alignment';import _0x24f97a from'./integrations/basicstyles';import _0x4721a6 from'./integrations/blockquote';import _0x1f06c4 from'./integrations/ckbox';import _0x26c907 from'./integrations/codeblock';import _0x246132 from'./integrations/comments';import _0x15caae from'./integrations/deletecommand';import _0x54f62c from'./integrations/documentlist';import _0x293b02 from'./integrations/entercommand';import _0x53de94 from'./integrations/findandreplace';import _0x4ced02 from'./integrations/font';import _0xa1255d from'./integrations/formatpainter';import _0x5c36f0 from'./integrations/heading';import _0x1bd77a from'./integrations/highlight';import _0x53bed3 from'./integrations/horizontalline';import _0x4f8e25 from'./integrations/htmlembed';import _0xbe05d from'./integrations/image';import _0x11a22e from'./integrations/imagereplace';import _0x3d422c from'./integrations/importword';import _0x9d37ad from'./integrations/indent';import _0x2d3033 from'./integrations/inputcommand';import _0x3805be from'./integrations/link';import _0x378db2 from'./integrations/list';import _0x126663 from'./integrations/listproperties';import _0x397f47 from'./integrations/mediaembed';import _0x548912 from'./integrations/mention';import _0x427195 from'./integrations/pagebreak';import _0x4af2e1 from'./integrations/paragraph';import _0x5740fd from'./integrations/removeformat';import _0x3ecacd from'./integrations/restrictededitingmode';import _0x3cd7e6 from'./integrations/shiftentercommand';import _0x50395c from'./integrations/standardeditingmode';import _0x33c113 from'./integrations/style';import _0x5eea79 from'./integrations/table';import _0x15308f from'./integrations/tablemergesplit';import _0x5dffe1 from'./integrations/tableheadings';import _0xc6b4ff from'./integrations/tableclipboard';import _0x596df7 from'./integrations/tablecolumnresize';import _0x37d7d2 from'./integrations/template';import _0xa1437c from'./integrations/tableofcontents';import _0x888f43 from'./integrations/title';import _0x32b3fb from'./integrations/undo';import{getTranslation as _0xca3f4a}from'./utils/common-translations';import _0x2e45ec from'./integrations/tablecaption';import _0x224375 from'./integrations/documentlistproperties';import _0x3bb607 from'./integrations/tableproperties';import{isEqual as _0x470561}from'lodash-es';export default class p extends _0x381611{static get['requires'](){return['CommentsRepository',_0x15456b,_0x5c1225,_0x563138,_0x21ee44,_0x24f97a,_0x4721a6,_0x1f06c4,_0x26c907,_0x246132,_0x15caae,_0x54f62c,_0x224375,_0x293b02,_0x53de94,_0x4ced02,_0xa1255d,_0x5c36f0,_0x1bd77a,_0x53bed3,_0x4f8e25,_0xbe05d,_0x11a22e,_0x3d422c,_0x9d37ad,_0x2d3033,_0x3805be,_0x378db2,_0x126663,_0x397f47,_0x548912,_0x427195,_0x4af2e1,_0x5740fd,_0x3ecacd,_0x3cd7e6,_0x50395c,_0x33c113,_0x5eea79,_0x15308f,_0x5dffe1,_0x2e45ec,_0xc6b4ff,_0x596df7,_0xa1437c,_0x3bb607,_0x37d7d2,_0x888f43,_0x32b3fb];}static get['pluginName'](){return _0x1d2b('0x88');}constructor(_0xa2e887){function _0x56883f(_0x31c72b){return _0x31c72b[_0x1d2b('0x48')](_0xe5ccc0=>String[_0x1d2b('0xa8')](_0xe5ccc0))[_0x1d2b('0x10')]('');}super(_0xa2e887),this[_0x1d2b('0x105')](_0x1d2b('0x85'),[]),this['on'](_0x1d2b('0x7a'),(_0x39a211,_0x461b90,_0x2ec337,_0x417358)=>{this[_0x1d2b('0x87')][_0x1d2b('0x4d')](()=>{for(const _0x456e66 of[..._0x417358,..._0x2ec337])this[_0x1d2b('0x87')][_0x1d2b('0x12a')]['has'](_0x456e66)&&_0xa2e887['editing']['reconvertMarker'](_0x456e66);});}),this['_descriptionFactory']=new _0x262b1c(this[_0x1d2b('0x110')][_0x1d2b('0xca')]['schema'],this[_0x1d2b('0x110')][_0x1d2b('0x13a')]),this[_0x1d2b('0x31')]=null,this[_0x1d2b('0x119')]=new Bt(this[_0x1d2b('0x110')]),this['_suggestions']=new Map(),this[_0x1d2b('0xee')]=_0xa2e887[_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x3c')),this[_0x1d2b('0x51')]=new Set(),this['_model']=this[_0x1d2b('0x110')][_0x1d2b('0xca')],this[_0x1d2b('0xe3')]=new WeakMap(),this[_0x1d2b('0x7')]=!0x1,_0xa2e887[_0x1d2b('0xc4')][_0x1d2b('0x116')]('trackChanges.trackFormatChanges','default'),this[_0x1d2b('0xd4')]=_0xa2e887['config'][_0x1d2b('0x4f')](_0x1d2b('0xbf')),_0xa2e887['config']['define'](_0x1d2b('0x126'),!0x0),this[_0x1d2b('0x13b')]=_0xa2e887[_0x1d2b('0xc4')]['get'](_0x1d2b('0x126')),this['trackChangesCommand']=new _0x8f7a12(_0xa2e887,this[_0x1d2b('0x51')]),this[_0x56883f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x56883f([0x34,0x30,0x34,0x36,0x32,0x30,0x35,0x36]);}[_0x1d2b('0x64')](){const _0x21b69d=this[_0x1d2b('0x110')];_0x21b69d[_0x1d2b('0x122')][_0x1d2b('0x63')](_0x1d2b('0x96'))[_0x1d2b('0x18')]({'model':_0x1d2b('0x111'),'view':_0x28cab7=>{const {id:_0x34751d,type:_0x27ed89}=this['_splitMarkerName'](_0x28cab7[_0x1d2b('0xeb')]),_0x1bfc4c=[_0x1d2b('0x140'),'ck-suggestion-marker-'+_0x27ed89];let _0x38b2c0=0xbb8;return this[_0x1d2b('0x85')]['includes'](_0x28cab7[_0x1d2b('0xeb')])&&(_0x1bfc4c[_0x1d2b('0x7c')](_0x1d2b('0xf3')),_0x38b2c0=0xbc2),_0x1d2b('0x137')==_0x27ed89&&(_0x38b2c0+=0x5),{'classes':_0x1bfc4c,'attributes':{'data-suggestion':_0x34751d},'priority':_0x38b2c0};}}),_0x21b69d[_0x1d2b('0x122')]['for']('dataDowncast')[_0x1d2b('0xd')](_0x541f3a=>{_0x541f3a['on'](_0x1d2b('0x11b'),(_0x5475c0,_0x3bfc8f,_0x1ff924)=>{if(!_0x1ff924['options']['showSuggestionHighlights'])return;const _0x19f610=_0x3bfc8f['item'];if(!_0x19f610)return;const _0x2efc9c=_0x1ff924['mapper'][_0x1d2b('0xa9')](_0x19f610);_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x6e')][_0x1d2b('0x8f')](_0x19f610)&&_0x2efc9c&&!_0x2efc9c[_0x1d2b('0xf6')](_0x1d2b('0x80'))&&_0x2efc9c['is'](_0x1d2b('0x69'))&&_0x49087c(_0x2efc9c,_0x1ff924[_0x1d2b('0xb7')]);},{'priority':_0x1d2b('0xb1')});}),_0x21b69d[_0x1d2b('0x122')][_0x1d2b('0x63')](_0x1d2b('0x101'))[_0x1d2b('0x18')]({'model':'suggestion','view':(_0x321271,_0x10d8ea)=>{if(!_0x10d8ea['options'][_0x1d2b('0xaa')])return null;const {type:_0x58a909}=this[_0x1d2b('0x44')](_0x321271[_0x1d2b('0xeb')]);return{'classes':[_0x1d2b('0x140'),_0x1d2b('0x28')+_0x58a909],'priority':0xbb8};}});const _0x1436f1=({showActiveMarkers:_0x1d5842=!0x0}={})=>(_0x1d26b9,_0x920ec1,_0x136d80)=>{if(!_0x920ec1[_0x1d2b('0xa7')])return;if(_0x920ec1[_0x1d2b('0xa7')]['is'](_0x1d2b('0x41')))return void _0x136d80[_0x1d2b('0xa4')]['consume'](_0x920ec1[_0x1d2b('0xa7')],_0x1d26b9[_0x1d2b('0xcd')]);const _0x1a2049=_0x136d80['mapper'][_0x1d2b('0xa9')](_0x920ec1[_0x1d2b('0xa7')]);if(!(_0x920ec1[_0x1d2b('0xa7')]['is'](_0x1d2b('0x81'))&&_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x6e')][_0x1d2b('0x9a')](_0x920ec1[_0x1d2b('0xa7')])&&!_0x1a2049['getCustomProperty']('addHighlight')))return;const {id:_0x5c0794}=this[_0x1d2b('0x44')](_0x920ec1[_0x1d2b('0xeb')]);_0x136d80['writer'][_0x1d2b('0x13d')]([_0x1d2b('0x140'),_0x1d2b('0xf7')],_0x1a2049),_0x136d80[_0x1d2b('0xb7')][_0x1d2b('0xf4')](_0x1d2b('0xe2'),_0x5c0794,_0x1a2049),_0x136d80[_0x1d2b('0x104')][_0x1d2b('0xc1')](_0x1a2049,_0x920ec1[_0x1d2b('0xeb')]),_0x1d5842&&(this[_0x1d2b('0x85')]['includes'](_0x920ec1[_0x1d2b('0xeb')])?_0x136d80[_0x1d2b('0xb7')][_0x1d2b('0x13d')](_0x1d2b('0xf3'),_0x1a2049):_0x136d80['writer'][_0x1d2b('0x6b')](_0x1d2b('0xf3'),_0x1a2049));for(const _0x2755bc of _0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x20')](_0x920ec1['item'])[_0x1d2b('0x136')]())_0x136d80[_0x1d2b('0xa4')][_0x1d2b('0x3a')](_0x2755bc,_0x1d26b9[_0x1d2b('0xcd')]);_0x136d80[_0x1d2b('0xa4')][_0x1d2b('0x3a')](_0x920ec1[_0x1d2b('0xa7')],_0x1d26b9[_0x1d2b('0xcd')]);};_0x21b69d[_0x1d2b('0x122')]['for']('dataDowncast')[_0x1d2b('0xd')](_0x265b0d=>{_0x265b0d['on'](_0x1d2b('0x1a'),(_0x1b712b,_0x4f5a40,_0x390f5a)=>{_0x390f5a[_0x1d2b('0x115')][_0x1d2b('0xaa')]&&_0x1436f1({'showActiveMarkers':!0x1})(_0x1b712b,_0x4f5a40,_0x390f5a);},{'priority':_0x1d2b('0x21')});}),_0x21b69d[_0x1d2b('0x122')][_0x1d2b('0x63')](_0x1d2b('0x101'))['markerToData']({'model':_0x1d2b('0x111'),'view':(_0x2cab89,_0x296f5a)=>_0x296f5a[_0x1d2b('0x115')][_0x1d2b('0xaa')]?null:{'group':_0x1d2b('0x111'),'name':_0x2cab89['substr'](0xb)}}),_0x21b69d[_0x1d2b('0x122')][_0x1d2b('0x63')](_0x1d2b('0x94'))[_0x1d2b('0xdc')]({'view':{'name':_0x1d2b('0x111'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f6ec6,{writer:_0x495ae0})=>{let _0x556b61=_0x1d2b('0x34')+_0x2f6ec6[_0x1d2b('0xf0')](_0x1d2b('0x98'))+':'+_0x2f6ec6['getAttribute']('id');return _0x2f6ec6[_0x1d2b('0xf0')](_0x1d2b('0x11c'))&&(_0x556b61+=':'+_0x2f6ec6[_0x1d2b('0xf0')](_0x1d2b('0x11c'))),_0x495ae0['createElement'](_0x1d2b('0x4a'),{'data-name':_0x556b61});}}),_0x21b69d['conversion'][_0x1d2b('0x63')]('upcast')[_0x1d2b('0x8b')]({'view':'suggestion'}),_0x21b69d[_0x1d2b('0x122')][_0x1d2b('0x63')]('editingDowncast')[_0x1d2b('0xd')](_0x2d684f=>{_0x2d684f['on'](_0x1d2b('0x1a'),_0x1436f1(),{'priority':_0x1d2b('0xb1')});}),_0x21b69d['conversion'][_0x1d2b('0x63')](_0x1d2b('0x96'))[_0x1d2b('0xd')](_0x143e5b=>{_0x143e5b['on'](_0x1d2b('0x25'),(_0x17a854,_0x259d75,_0x3c85c6)=>{const _0xf2753b=_0x3c85c6[_0x1d2b('0x104')]['markerNameToElements'](_0x259d75['markerName']);if(_0xf2753b)for(const _0x320f51 of _0xf2753b)_0x320f51['getCustomProperty']('addHighlight')||(_0x3c85c6[_0x1d2b('0xb7')][_0x1d2b('0x6b')]([_0x1d2b('0x140'),_0x1d2b('0xf7'),'ck-suggestion-marker--active'],_0x320f51),_0x3c85c6[_0x1d2b('0xb7')]['removeAttribute'](_0x1d2b('0xe2'),_0x320f51),_0x3c85c6[_0x1d2b('0x104')][_0x1d2b('0x61')](_0x320f51,_0x259d75[_0x1d2b('0xeb')]));},{'priority':_0x1d2b('0xb1')});}),_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x1e')][_0x1d2b('0x43')](_0x142417=>{let _0x37978d=!0x1;const _0x57824c=Array['from'](_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x1e')][_0x1d2b('0x1f')][_0x1d2b('0xf')]()),_0x5eae69=new Set();for(const {name:_0x4ede1d,data:_0x19b7db}of _0x57824c){const {group:_0x3d0dc7,type:_0x2e7a34,id:_0x329948}=this[_0x1d2b('0x44')](_0x4ede1d);if('suggestion'!==_0x3d0dc7)continue;const _0x2277d7=this[_0x1d2b('0x109')][_0x1d2b('0x4f')](_0x329948);if(null!=_0x19b7db[_0x1d2b('0xd1')]){_0x1d2b('0xf5')==_0x2e7a34&&(_0x37978d=_0x37978d||$t(_0x19b7db['newRange'],_0x4ede1d,_0x142417,_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x6e')]));if(_0x19b7db[_0x1d2b('0xd1')]['isCollapsed']||'$graveyard'==_0x19b7db[_0x1d2b('0xd1')][_0x1d2b('0x67')]['rootName']||_0x1d2b('0x1d')==_0x2e7a34&&!Rt(_0x19b7db[_0x1d2b('0xd1')])||_0x1d2b('0x137')==_0x2e7a34&&!(!Mt(_0x50582b=_0x19b7db[_0x1d2b('0xd1')])&&!function(_0x3df2c9){return _0x3df2c9[_0x1d2b('0xfc')][_0x1d2b('0x73')]==_0x3df2c9[_0x1d2b('0x59')]['nodeBefore']&&_0x3df2c9[_0x1d2b('0xfc')]['isAtEnd'];}(_0x50582b)))_0x142417['removeMarker'](_0x4ede1d),_0x37978d=!0x0;else{if(!_0x2277d7||!_0x2277d7[_0x1d2b('0x120')])continue;_0x5eae69['add'](_0x2277d7);}}}var _0x50582b;return _0x5eae69[_0x1d2b('0x144')]>0x0&&(_0x37978d=!!this[_0x1d2b('0x10c')](_0x5eae69)||_0x37978d),_0x37978d;}),_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x1e')][_0x1d2b('0x43')](_0x3cd164=>{let _0x5dae9c=!0x1;for(const _0x565d9e of _0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x1e')]['differ'][_0x1d2b('0x50')]()){if(_0x1d2b('0x3')!=_0x565d9e[_0x1d2b('0x4')])continue;const _0x287855=_0x565d9e[_0x1d2b('0x49')][_0x1d2b('0x60')](_0x565d9e[_0x1d2b('0x90')]);if(_0x287855['isAtEnd'])for(const _0x303c24 of this[_0x1d2b('0x109')][_0x1d2b('0x132')]()){if(_0x303c24[_0x1d2b('0x52')]||!_0x303c24[_0x1d2b('0x120')])continue;if(_0x1d2b('0x1d')!=_0x303c24[_0x1d2b('0x4')])continue;const _0x1670a3=_0x303c24['getFirstRange']();if(_0x1670a3[_0x1d2b('0xfc')]['parent']!=_0x1670a3['end'][_0x1d2b('0x73')]&&_0x1670a3[_0x1d2b('0x59')][_0x1d2b('0xf2')](_0x565d9e[_0x1d2b('0x49')])){const _0x2a08e5=_0x21b69d['model'][_0x1d2b('0x42')](_0x1670a3[_0x1d2b('0xfc')],_0x287855);_0x3cd164[_0x1d2b('0x58')](_0x303c24[_0x1d2b('0xb0')](),{'range':_0x2a08e5}),_0x5dae9c=!0x0;}}}return _0x5dae9c;}),_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x12a')]['on'](_0x1d2b('0x2a'),(_0x153f26,_0x381242,_0xda3548)=>{if(null==_0xda3548){const {id:_0x214b9a}=this[_0x1d2b('0x44')](_0x381242['name']),_0x31029e=this[_0x1d2b('0x109')][_0x1d2b('0x4f')](_0x214b9a);_0x31029e&&_0x31029e[_0x1d2b('0x106')](_0x381242['name']);}}),_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x1e')]['on'](_0x1d2b('0x138'),()=>{const _0x4c4e8f=Array[_0x1d2b('0x2b')](_0x21b69d['model'][_0x1d2b('0x1e')]['differ']['getChangedMarkers']())[_0x1d2b('0xcb')](_0x2e0eb8=>_0x1d2b('0x111')===this[_0x1d2b('0x44')](_0x2e0eb8[_0x1d2b('0xcd')])[_0x1d2b('0x135')]);if(0x0===_0x4c4e8f[_0x1d2b('0x90')])return;_0x4c4e8f[_0x1d2b('0xae')]((_0x51da1c,_0x4c75ef)=>{const _0x2bfd59=_0x51da1c['data'][_0x1d2b('0x112')],_0x2a05de=_0x4c75ef[_0x1d2b('0x2f')]['oldRange'];return null===_0x2bfd59&&null===_0x2a05de?0x0:null===_0x2bfd59&&null!==_0x2a05de?-0x1:null!==_0x2bfd59&&null===_0x2a05de?0x1:_0x2bfd59[_0x1d2b('0xfc')]['isBefore'](_0x2a05de[_0x1d2b('0xfc')])?-0x1:0x1;});const _0x172029=new Set(),_0x9edf6b=new Set();for(const {name:_0x2e7b1a,data:_0x581d84}of _0x4c4e8f){const {id:_0x1a28a0}=this[_0x1d2b('0x44')](_0x2e7b1a);if(null===_0x581d84[_0x1d2b('0x112')]){const _0x24c33c=this[_0x1d2b('0x130')](_0x2e7b1a);_0x9edf6b[_0x1d2b('0xd')](_0x24c33c);}else{const _0x140322=this['_suggestions'][_0x1d2b('0x4f')](_0x1a28a0);null!==_0x581d84[_0x1d2b('0xd1')]||_0x140322['isInContent']?(_0x172029['add'](_0x140322[_0x1d2b('0x5a')]),_0x9edf6b[_0x1d2b('0xd')](_0x140322)):this['_removeSuggestion'](_0x140322);}}_0x9edf6b[_0x1d2b('0x144')]>0x0&&this[_0x1d2b('0x0')](_0x9edf6b);for(const _0x4365d5 of _0x172029)this['fire'](_0x1d2b('0xc5'),_0x4365d5);}),_0x21b69d[_0x1d2b('0xca')]['on'](_0x1d2b('0x65'),(_0x745726,_0x51bc4b)=>{const _0xed75c3=_0x51bc4b[0x0];if(!this[_0x1d2b('0x109')]['size'])return;if(!_0xed75c3[_0x1d2b('0x6d')])return;if(_0xed75c3[_0x1d2b('0x7e')][_0x1d2b('0x9c')]||!_0xed75c3[_0x1d2b('0x7e')][_0x1d2b('0x3e')])return;let _0x16a131,_0x55cde1;switch(_0xed75c3['type']){case'insert':_0x16a131=_0x21b69d['model'][_0x1d2b('0x26')](_0xed75c3[_0x1d2b('0x49')]),_0x55cde1=_0x16a131[_0x1d2b('0x60')](_0xed75c3['howMany']);break;case'split':_0x16a131=_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x26')](_0xed75c3[_0x1d2b('0x91')]),_0x55cde1=_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x26')](_0xed75c3[_0x1d2b('0x74')]);break;case _0x1d2b('0xdb'):_0x16a131=_0x21b69d['model'][_0x1d2b('0x26')](_0xed75c3[_0x1d2b('0x107')]),_0x55cde1=_0x16a131['getShiftedBy'](_0xed75c3[_0x1d2b('0x10b')]);break;default:return;}const _0x2e535b=_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x42')](_0x16a131,_0x55cde1);_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x4d')](()=>{for(const {suggestion:_0x5c564f,meta:_0x4027d5}of this[_0x1d2b('0xbb')](_0x2e535b)){if(_0x5c564f['isMultiRange'])continue;if(_0x1d2b('0xf5')==_0x5c564f['type'])continue;const _0x478bb1=_0x5c564f[_0x1d2b('0x2f')]&&_0x5c564f['data'][_0x1d2b('0x29')];(_0x1d2b('0x1d')!=_0x5c564f[_0x1d2b('0x4')]||_0x1d2b('0x5c')==_0xed75c3[_0x1d2b('0x4')]&&!_0x478bb1)&&(_0x4027d5[_0x1d2b('0x8a')]||_0x1d2b('0x54')==_0x5c564f[_0x1d2b('0x4')]&&_0x4027d5[_0x1d2b('0x83')]||_0x5c564f[_0x1d2b('0x72')]()[_0x1d2b('0xbd')](_0x2e535b)&&this[_0x1d2b('0xa2')](_0x5c564f,_0x16a131,_0x55cde1));}});},{'priority':_0x1d2b('0x93')}),_0x21b69d[_0x1d2b('0xca')]['on'](_0x1d2b('0x4b'),(_0x4ed9ef,_0x3ac6df)=>{const _0x5db52e=_0x3ac6df[0x0],_0x3cc7ec=_0x3ac6df[0x1];if(_0x3cc7ec&&_0x3cc7ec[_0x1d2b('0xfa')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x1d2b('0x7d')]['value'])return;if(_0x5db52e[_0x1d2b('0xd9')])return;const _0x21a562=_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x6e')],{start:_0x62e88a,end:_0x116989}=_0x5db52e[_0x1d2b('0x72')](),_0x3a0e98=_0x62e88a[_0x1d2b('0xdf')]&&_0x21a562[_0x1d2b('0xa3')](_0x62e88a[_0x1d2b('0xdf')])?null:_0x21a562[_0x1d2b('0x46')](_0x62e88a,_0x1d2b('0x118')),_0xd34542=_0x116989[_0x1d2b('0xfb')]&&_0x21a562[_0x1d2b('0xa3')](_0x116989['nodeBefore'])?null:_0x21a562[_0x1d2b('0x46')](_0x116989,_0x1d2b('0x84')),_0x464d3b=_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x42')](_0x3a0e98?_0x3a0e98[_0x1d2b('0xfc')]:_0x62e88a,_0xd34542?_0xd34542[_0x1d2b('0x59')]:_0x116989);_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x4d')](_0x5ca30c=>{this['markDeletion'](_0x464d3b);const _0xc2855=_0x21b69d[_0x1d2b('0xca')]['schema'][_0x1d2b('0x46')](_0x464d3b[_0x1d2b('0xfc')]);_0x5db52e['is'](_0x1d2b('0xe7'))?_0x5ca30c[_0x1d2b('0x76')](_0xc2855):_0x5db52e[_0x1d2b('0x117')](_0xc2855);}),_0x4ed9ef[_0x1d2b('0xac')]();},{'priority':_0x5b0760['normal']+0xa}),_0x21b69d['model']['on']('insertContent',(_0x2b1df9,_0x5ae460)=>{const _0x3d1bd9=_0x5ae460[_0x5ae460[_0x1d2b('0x90')]-0x1];_0x3d1bd9&&_0x3d1bd9[_0x1d2b('0xfa')]||this[_0x1d2b('0x7')]||this['trackChangesCommand'][_0x1d2b('0xf1')]&&(_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x4d')](()=>{let _0x2d0b49=_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0xb8')](_0x5ae460[0x0],_0x5ae460[0x1],_0x5ae460[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d0b49)return;_0x2b1df9['return']=_0x2d0b49['clone']();const _0x510ea0=_0x2d0b49[_0x1d2b('0x59')]['nodeBefore'],_0x253999=_0x21b69d[_0x1d2b('0xca')][_0x1d2b('0x6e')];_0x510ea0&&_0x253999[_0x1d2b('0x9a')](_0x510ea0)&&!_0x253999[_0x1d2b('0x8f')](_0x510ea0)&&(_0x2d0b49=_0x21b69d['model']['createRange'](_0x2d0b49[_0x1d2b('0xfc')],_0x21b69d['model'][_0x1d2b('0x26')](_0x510ea0,_0x1d2b('0x59')))),this[_0x1d2b('0xcf')](_0x2d0b49);}),_0x2b1df9['stop']());},{'priority':_0x1d2b('0xb1')}),this[_0x1d2b('0x110')][_0x1d2b('0x33')][_0x1d2b('0xd')](_0x1d2b('0x36'),this[_0x1d2b('0x7d')]),this[_0x1d2b('0xd0')](_0x1d2b('0x36'));const _0x795833=new _0xc2d465(_0x21b69d,this[_0x1d2b('0x109')]);_0x21b69d[_0x1d2b('0x33')][_0x1d2b('0xd')](_0x1d2b('0x6a'),_0x795833),this[_0x1d2b('0xd0')](_0x1d2b('0x6a'));const _0x49105c=new _0x5bafad(_0x21b69d,this['_suggestions']);_0x21b69d['commands'][_0x1d2b('0xd')](_0x1d2b('0xda'),_0x49105c),this[_0x1d2b('0xd0')](_0x1d2b('0xda')),_0x21b69d[_0x1d2b('0x33')][_0x1d2b('0xd')](_0x1d2b('0xab'),new _0x41096b(_0x21b69d,_0x795833,this[_0x1d2b('0x109')])),this[_0x1d2b('0xd0')]('acceptAllSuggestions'),_0x21b69d[_0x1d2b('0x33')]['add'](_0x1d2b('0x40'),new _0x41096b(_0x21b69d,_0x49105c,this[_0x1d2b('0x109')])),this[_0x1d2b('0xd0')](_0x1d2b('0x40')),_0x21b69d[_0x1d2b('0x33')][_0x1d2b('0xd')](_0x1d2b('0x57'),new _0x13c961(_0x21b69d,_0x795833,this[_0x1d2b('0x109')])),this[_0x1d2b('0xd0')](_0x1d2b('0x57')),_0x21b69d[_0x1d2b('0x33')]['add'](_0x1d2b('0x9f'),new _0x13c961(_0x21b69d,_0x49105c,this[_0x1d2b('0x109')])),this[_0x1d2b('0xd0')](_0x1d2b('0x9f'));const _0x55c5b4=_0x21b69d['plugins'][_0x1d2b('0x4f')]('CommentsRepository');this[_0x1d2b('0xba')](_0x55c5b4,_0x1d2b('0xa'),(_0x6f604a,{threadId:_0x4057e3})=>{const _0x2509ec=this[_0x1d2b('0x109')][_0x1d2b('0x4f')](_0x4057e3);_0x2509ec&&_0x2509ec[_0x1d2b('0x7f')]&&0x1===_0x2509ec['commentThread'][_0x1d2b('0x90')]&&this[_0x1d2b('0xa5')](_0x4057e3,{'hasComments':!0x0});},{'priority':_0x1d2b('0xe0')}),this[_0x1d2b('0xba')](_0x55c5b4,_0x1d2b('0x12d'),(_0xbe23d9,{threadId:_0x327f12})=>{const _0x5e93c1=this['_suggestions'][_0x1d2b('0x4f')](_0x327f12);_0x5e93c1&&_0x5e93c1[_0x1d2b('0x7f')]&&!_0x5e93c1['commentThread'][_0x1d2b('0x90')]&&this[_0x1d2b('0xa5')](_0x327f12,{'hasComments':!0x1});},{'priority':'low'});}set[_0x1d2b('0x103')](_0x4fe5d0){if(this['_adapter'])throw new _0x2364b6(_0x1d2b('0x2c'),this);this[_0x1d2b('0x31')]=_0x4fe5d0;}get[_0x1d2b('0x103')](){return this[_0x1d2b('0x31')];}[_0x1d2b('0x38')]({skipNotAttached:_0x2d8f4b=!0x1,toJSON:_0x520376=!0x1}={}){const _0x851129=[];for(const _0x48654a of this[_0x1d2b('0x109')][_0x1d2b('0x132')]())_0x2d8f4b&&!_0x48654a['isInContent']||_0x851129[_0x1d2b('0x7c')](_0x48654a);return _0x520376?_0x851129[_0x1d2b('0x48')](_0x4c8f35=>_0x4c8f35[_0x1d2b('0x114')]()):_0x851129;}[_0x1d2b('0xc6')](_0x11ee42){const _0x6fe559=this['_suggestions'][_0x1d2b('0x4f')](_0x11ee42);if(!_0x6fe559)throw new _0x2364b6('track-changes-suggestion-not-found',this);return _0x6fe559;}['hasSuggestion'](_0x34d581){return this[_0x1d2b('0x109')]['has'](_0x34d581);}['addSuggestionData'](_0x252863){const {authorId:_0x19a3b5,id:_0x4c6a5d,attributes:_0x13f205}=_0x252863,[_0x40d519,_0x34b71b]=_0x252863['type'][_0x1d2b('0x5c')](':'),_0x40337e=this[_0x1d2b('0x109')]['get'](_0x4c6a5d)||this[_0x1d2b('0x5e')](_0x40d519,_0x34b71b,_0x4c6a5d,_0x19a3b5,_0x13f205);if(this['_addThreadToSuggestion'](_0x40337e),this[_0x1d2b('0x56')](_0x40337e,_0x40d519,_0x34b71b||null,_0x19a3b5),_0x40337e['createdAt']=_0x252863[_0x1d2b('0xb2')],_0x40337e[_0x1d2b('0x13f')]=!0x0,_0x13f205&&_0x13f205['@external']){const _0x4c5147=_0x13f205[_0x1d2b('0x1')],_0x2c880f=this['_getExternalAuthor'](_0x4c5147[_0x1d2b('0x17')]);_0x40337e['authoredAt']=_0x4c5147[_0x1d2b('0xb2')],_0x40337e[_0x1d2b('0x13')]=_0x2c880f,_0x40337e[_0x1d2b('0xe5')]=!0x0;}else _0x40337e['authoredAt']=_0x252863[_0x1d2b('0xb2')];switch(_0x252863[_0x1d2b('0x2f')]&&(_0x40337e[_0x1d2b('0x2f')]=_0x252863[_0x1d2b('0x2f')]),_0x252863[_0x1d2b('0x1b')]&&(_0x40337e[_0x1d2b('0x1b')]=_0x252863['attributes']),this[_0x1d2b('0x31')]&&this[_0x1d2b('0x31')]['addSuggestion']||(_0x40337e[_0x1d2b('0xa6')]=!0x0),this['_suggestionState'][_0x1d2b('0x4f')](_0x40337e)){case _0x1d2b('0xce'):this[_0x1d2b('0xe3')][_0x1d2b('0x105')](_0x40337e,_0x1d2b('0x27'));break;case'markerReady':_0x40337e['isInContent']?(this[_0x1d2b('0x0')](new Set([_0x40337e])),this[_0x1d2b('0x10c')](new Set([_0x40337e])),this[_0x1d2b('0xe3')][_0x1d2b('0x105')](_0x40337e,'ready'),this['fire'](_0x1d2b('0x123'),_0x40337e)):this[_0x1d2b('0xe3')][_0x1d2b('0x105')](_0x40337e,_0x1d2b('0x102'));}return _0x40337e;}[_0x1d2b('0x6a')](_0x554734){this[_0x1d2b('0xfa')](()=>{this['editor'][_0x1d2b('0xca')][_0x1d2b('0x4d')](()=>{for(const _0x5079f3 of _0x554734[_0x1d2b('0xfe')]())_0x5079f3[_0x1d2b('0xc')]();});});}[_0x1d2b('0xda')](_0x51127d){this[_0x1d2b('0xfa')](()=>{this[_0x1d2b('0x110')][_0x1d2b('0xca')][_0x1d2b('0x4d')](()=>{for(const _0x27b06d of _0x51127d[_0x1d2b('0xfe')]())_0x27b06d[_0x1d2b('0x9e')]();});});}[_0x1d2b('0xd0')](_0x3d02f2,_0x1ecd1a){const _0x1954ba=this[_0x1d2b('0x110')][_0x1d2b('0x33')]['get'](_0x3d02f2);if(!_0x1954ba)throw new _0x2364b6('track-changes-command-not-found',this,{'commandName':_0x3d02f2});this[_0x1d2b('0x51')][_0x1d2b('0xd')](_0x1954ba),_0x1ecd1a&&_0x1954ba['on'](_0x1d2b('0x129'),(_0x2bad0b,_0x2f8dd7)=>{this[_0x1d2b('0x7d')][_0x1d2b('0xf1')]&&(this[_0x1d2b('0x7')]||_0x2f8dd7[_0x1d2b('0x90')]>0x0&&_0x2f8dd7[_0x2f8dd7[_0x1d2b('0x90')]-0x1]&&_0x2f8dd7[_0x2f8dd7[_0x1d2b('0x90')]-0x1][_0x1d2b('0xfa')]||(_0x2bad0b['return']=_0x1ecd1a((..._0x692527)=>_0x1954ba['execute'](..._0x692527,{'forceDefaultExecution':!0x0}),..._0x2f8dd7),_0x2bad0b[_0x1d2b('0xac')]()));},{'priority':_0x1d2b('0xb1')});}[_0x1d2b('0xfa')](_0x37eee3){let _0x880c7,_0x4d6423;const _0xb8c5e8=this[_0x1d2b('0x7')];this[_0x1d2b('0x7')]=!0x0;try{_0x880c7=_0x37eee3();}catch(_0x322662){_0x4d6423=_0x322662;}return _0xb8c5e8||(this[_0x1d2b('0x7')]=!0x1),_0x4d6423&&_0x2364b6['rethrowUnexpectedError'](_0x4d6423,this),_0x880c7;}[_0x1d2b('0xcf')](_0xdff543,_0x559668=null,_0x14fdd7={}){if(_0xdff543['isCollapsed'])return null;const _0x2734d0=this[_0x1d2b('0x110')][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x92'))['me'];for(const {suggestion:_0x2fc0b6,meta:_0x30ce1e}of this[_0x1d2b('0xbb')](_0xdff543,'insertion'))if(_0x30ce1e['isOwn']){if(!_0x30ce1e[_0x1d2b('0x30')]){if(_0x30ce1e[_0x1d2b('0x8a')]){if(!this[_0x1d2b('0x13b')]||!Ot(_0x2fc0b6,_0x14fdd7))continue;return _0x2fc0b6;}if(Ot(_0x2fc0b6,_0x14fdd7))return _0x2fc0b6;this[_0x1d2b('0xa2')](_0x2fc0b6,_0xdff543[_0x1d2b('0xfc')],_0xdff543[_0x1d2b('0x59')]);break;}if(_0x559668==_0x2fc0b6[_0x1d2b('0xa0')]&&Ot(_0x2fc0b6,_0x14fdd7)){const _0x27a22a=_0x2fc0b6[_0x1d2b('0x72')]();return _0x27a22a['start'][_0x1d2b('0xf2')](_0xdff543['end'])?this[_0x1d2b('0x89')](_0x2fc0b6,this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0xdff543[_0x1d2b('0xfc')],_0x27a22a[_0x1d2b('0x59')])):this['_setSuggestionRange'](_0x2fc0b6,this['_model'][_0x1d2b('0x42')](_0x27a22a[_0x1d2b('0xfc')],_0xdff543[_0x1d2b('0x59')])),_0x2fc0b6;}}const _0xb7b91a=_0x430f0f(),_0x321dea=_0x2734d0['id'],_0x37296f=_0x559668?'insertion:'+_0x559668:_0x1d2b('0x54'),_0x51a7d5=this[_0x1d2b('0x131')]({'id':_0xb7b91a,'type':_0x37296f,'createdAt':new Date(),'authorId':_0x321dea,'attributes':_0x14fdd7});return this[_0x1d2b('0xbe')](_0x37296f,_0xb7b91a,_0x321dea,_0xdff543),_0x51a7d5;}[_0x1d2b('0xb3')](_0x5201e7,_0x443430=_0x1d2b('0xdd'),_0x13d6c9={}){const _0x4fab51=this['editor'][_0x1d2b('0x10f')][_0x1d2b('0x4f')]('Users')['me'],_0x431a57=this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1d2b('0x54'),_0x443430,_0x1d2b('0x10'));for(const _0x478a1f of this[_0x1d2b('0x38')]())if(_0x478a1f[_0x1d2b('0x13')]['id']==_0x4fab51['id']&&'insertion'==_0x478a1f[_0x1d2b('0x4')]&&_0x478a1f[_0x1d2b('0xa0')]==_0x443430&&Ot(_0x478a1f,_0x13d6c9)&&(_0x431a57(_0x478a1f[_0x1d2b('0xef')](),_0x5201e7)||_0x431a57(_0x5201e7,_0x478a1f[_0x1d2b('0xef')]()))){for(const _0x3a36a4 of _0x5201e7)_0x478a1f[_0x1d2b('0x5b')](_0x3a36a4);return _0x478a1f;}for(const {suggestion:_0x194f8e,meta:_0x3cdd6a}of this['_findSuggestions'](_0x5201e7,_0x1d2b('0x54'))){if(!_0x3cdd6a[_0x1d2b('0x83')])continue;if(!this[_0x1d2b('0x13b')]&&_0x3cdd6a[_0x1d2b('0x8a')])continue;if(!Ot(_0x194f8e,_0x13d6c9))continue;let _0x2ef79f=!0x0;for(const _0x1802c6 of _0x194f8e[_0x1d2b('0xef')]())for(const _0x3f694e of _0x5201e7)if(!_0x1802c6[_0x1d2b('0xbd')](_0x3f694e)){_0x2ef79f=!0x1;break;}if(_0x2ef79f)return _0x194f8e;}const _0x188090=_0x430f0f(),_0x1b7db1=_0x4fab51['id'],_0x75b0dc=_0x1d2b('0x47')+_0x443430,_0x3ea724=this[_0x1d2b('0x131')]({'id':_0x188090,'type':_0x75b0dc,'createdAt':new Date(),'authorId':_0x1b7db1,'attributes':_0x13d6c9});for(const _0x3acc0a of _0x5201e7)this[_0x1d2b('0xbe')](_0x75b0dc,_0x188090,_0x1b7db1,_0x3acc0a,_0x24076c[_0x1d2b('0x142')]());return _0x3ea724;}[_0x1d2b('0xad')](_0x515abf,_0x320a29,_0xd03a3e=null,_0x1698b4={}){if(_0xd03a3e=_0xd03a3e||Nt(_0x320a29),_0x515abf[_0x1d2b('0xd9')])return null;if(_0x1d2b('0x53')===this[_0x1d2b('0xd4')]){const _0x5a0b9b=this[_0x1d2b('0x119')]['getSuggestionCallback'](_0x1d2b('0xf5'),_0xd03a3e,_0x1d2b('0xc'));return this[_0x1d2b('0xfa')](()=>_0x5a0b9b([_0x515abf],_0x320a29,_0x1698b4)),null;}const _0xe12992=this[_0x1d2b('0x110')]['plugins'][_0x1d2b('0x4f')](_0x1d2b('0x92'))['me'],_0x4a5799=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x2c99b4,meta:_0x49e445}of this[_0x1d2b('0xbb')](_0x515abf,_0x1d2b('0x54')))_0x49e445['isOwn']&&!_0x49e445[_0x1d2b('0x139')]&&_0x4a5799[_0x1d2b('0x7c')](..._0x2c99b4[_0x1d2b('0xef')]());const _0x57f53f=function(_0x5414e4,_0x2f98e6){const _0x3bb441=[];for(const _0x5b9bce of _0x2f98e6){const _0x251de4=_0x5414e4[_0x1d2b('0xde')](_0x5b9bce);_0x251de4&&_0x3bb441['push'](_0x251de4);}return _0x3bb441;}(_0x515abf,_0x4a5799),_0x5d6b82=function(_0x358f38,_0x2bbda6){const _0x3f8913=[_0x358f38];for(const _0x55da81 of _0x2bbda6){let _0x1b8424=0x0;for(;_0x1b8424<_0x3f8913[_0x1d2b('0x90')];){const _0x30b703=_0x3f8913[_0x1b8424]['getDifference'](_0x55da81);_0x3f8913['splice'](_0x1b8424,0x1,..._0x30b703),_0x1b8424+=_0x30b703[_0x1d2b('0x90')];}}return _0x3f8913;}(_0x515abf,_0x4a5799);_0x57f53f[_0x1d2b('0x90')]&&this[_0x1d2b('0x87')][_0x1d2b('0x4d')](()=>{for(const _0x241855 of _0x57f53f){const _0x360fd8=this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1d2b('0xf5'),_0xd03a3e,_0x1d2b('0xc'));this['forceDefaultExecution'](()=>_0x360fd8([_0x241855],_0x320a29,_0x1698b4));}});for(const _0x4e6d2c of _0x5d6b82){let _0x40968f=null,_0x11c2c8=_0x4e6d2c[_0x1d2b('0xfc')],_0x8e54ab=_0x4e6d2c[_0x1d2b('0x59')];for(const {suggestion:_0x11aed4,meta:_0x2b57f7}of this['_findSuggestions'](_0x4e6d2c,_0x1d2b('0xf5'))){if(!_0x2b57f7[_0x1d2b('0x83')])continue;if(_0x11aed4[_0x1d2b('0xa0')]!=_0xd03a3e)continue;if(!Ot(_0x11aed4,_0x1698b4))continue;const _0x8ac9d1=_0x11aed4[_0x1d2b('0x72')]();if(_0x8ac9d1[_0x1d2b('0xbd')](_0x4e6d2c,!0x0))return null;_0x11c2c8=_0x11c2c8['isBefore'](_0x8ac9d1['start'])?_0x11c2c8:_0x8ac9d1[_0x1d2b('0xfc')],_0x8e54ab=_0x8e54ab[_0x1d2b('0x13c')](_0x8ac9d1[_0x1d2b('0x59')])?_0x8e54ab:_0x8ac9d1[_0x1d2b('0x59')],_0x40968f?_0x8ac9d1[_0x1d2b('0xfc')][_0x1d2b('0x6')](_0x40968f[_0x1d2b('0x72')]()[_0x1d2b('0xfc')])?(_0x40968f[_0x1d2b('0x78')](),_0x40968f=_0x11aed4):_0x11aed4[_0x1d2b('0x78')]():_0x40968f=_0x11aed4;}const _0x5671b2=this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x11c2c8,_0x8e54ab);if(_0x40968f)this[_0x1d2b('0x89')](_0x40968f,_0x5671b2);else{const _0x1244a6=_0x430f0f(),_0x3d120e=_0xe12992['id'];this[_0x1d2b('0x131')]({'id':_0x1244a6,'type':'formatInline:'+_0xd03a3e,'data':_0x320a29,'createdAt':new Date(),'authorId':_0x3d120e,'attributes':_0x1698b4}),this[_0x1d2b('0xbe')](_0x1d2b('0x3f')+_0xd03a3e,_0x1244a6,_0x3d120e,_0x5671b2);}}return null;}[_0x1d2b('0xd5')](_0x564f53,_0x5f78a8,_0xce6ab2=[],_0x2bd0d1=null,_0x16bac5={}){_0x5f78a8[_0x1d2b('0x62')]||(_0x5f78a8[_0x1d2b('0x62')]=_0x5f78a8['commandName']),_0x5f78a8[_0x1d2b('0x29')]=_0x564f53['is'](_0x1d2b('0xfd')),_0x2bd0d1=_0x2bd0d1||Nt(_0x5f78a8);const _0x3e590b=_0xce6ab2[_0x1d2b('0x48')](_0x29c60a=>jt(_0x29c60a,this[_0x1d2b('0x87')])),_0xa0f713=_0x564f53['is'](_0x1d2b('0xfd'))?_0x564f53:jt(_0x564f53,this[_0x1d2b('0x87')]);if(_0x1d2b('0x53')===this[_0x1d2b('0xd4')]){const _0x1f3b70=this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1d2b('0x1d'),_0x2bd0d1,'accept');return this[_0x1d2b('0xfa')](()=>_0x1f3b70([_0xa0f713],_0x5f78a8,_0x16bac5)),null;}_0x3e590b[_0x1d2b('0x7c')](_0xa0f713);let _0x426d46=!0x0;for(const _0x43760a of _0x3e590b)if(!this['_rangeIsInLocalUserInsertion'](_0x43760a)){_0x426d46=!0x1;break;}if(_0x426d46&&_0x1d2b('0x71')!==this[_0x1d2b('0xd4')]){const _0x195333=this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1d2b('0x1d'),_0x2bd0d1,_0x1d2b('0xc'));return this[_0x1d2b('0xfa')](()=>_0x195333([_0xa0f713],_0x5f78a8,_0x16bac5)),null;}let _0x549276=null,_0x91d705=_0xa0f713[_0x1d2b('0xfc')],_0x40f7e4=_0xa0f713[_0x1d2b('0x59')];for(const {suggestion:_0x5e09f6,meta:_0x53d244}of this[_0x1d2b('0xbb')](_0xa0f713,_0x1d2b('0x1d'))){if(!_0x53d244['isOwn'])continue;if(_0x53d244[_0x1d2b('0x30')]||_0x53d244[_0x1d2b('0x8a')]||_0x53d244['isInsideObject'])continue;if(_0x5e09f6[_0x1d2b('0x2f')][_0x1d2b('0x62')]!=_0x5f78a8['formatGroupId'])continue;if(!Ot(_0x5e09f6,_0x16bac5))continue;const _0x102dab=_0x5e09f6[_0x1d2b('0x72')]();if(_0x5e09f6[_0x1d2b('0xa0')]==_0x2bd0d1){if(_0x102dab['containsRange'](_0xa0f713,!0x0))return null;_0x91d705=_0x91d705[_0x1d2b('0x6')](_0x102dab[_0x1d2b('0xfc')])?_0x91d705:_0x102dab[_0x1d2b('0xfc')],_0x40f7e4=_0x40f7e4[_0x1d2b('0x13c')](_0x102dab[_0x1d2b('0x59')])?_0x40f7e4:_0x102dab['end'],_0x549276?_0x102dab['start']['isBefore'](_0x549276[_0x1d2b('0x72')]()[_0x1d2b('0xfc')])?(_0x549276[_0x1d2b('0x78')](),_0x549276=_0x5e09f6):_0x5e09f6[_0x1d2b('0x78')]():_0x549276=_0x5e09f6;}else{const _0x2b31d1=_0xa0f713['getIntersection'](_0x102dab);this[_0x1d2b('0x3b')](_0x5e09f6,_0x2b31d1);}}const _0x39d90d=this[_0x1d2b('0x110')][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x92'))['me'],_0x3f2324=_0x430f0f(),_0x484b22=_0x39d90d['id'];if(_0x549276)return this[_0x1d2b('0x89')](_0x549276,this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x91d705,_0x40f7e4)),_0x549276;{const _0x29d2c1=this[_0x1d2b('0x131')]({'id':_0x3f2324,'type':_0x1d2b('0x7b')+_0x2bd0d1,'data':_0x5f78a8,'createdAt':new Date(),'authorId':_0x484b22,'attributes':_0x16bac5});return this['_addSuggestionMarker'](_0x1d2b('0x7b')+_0x2bd0d1,_0x3f2324,_0x484b22,this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x91d705,_0x40f7e4)),_0x29d2c1;}}['markMultiRangeBlockFormat'](_0x1f9ddb,_0x1b239a,_0x1b9b04=[],_0xdcd6aa=null,_0x7ae2d={}){_0x1b239a[_0x1d2b('0x62')]||(_0x1b239a[_0x1d2b('0x62')]=_0x1b239a['commandName']);const _0x1cfa31=_0x1f9ddb[0x0];_0x1b239a[_0x1d2b('0x29')]=_0x1cfa31['is'](_0x1d2b('0xfd')),_0xdcd6aa=_0xdcd6aa||Nt(_0x1b239a);const _0x45d302=_0x1b9b04[_0x1d2b('0x48')](_0x37b41c=>jt(_0x37b41c,this['_model'])),_0x2c0dda=_0x1cfa31['is']('range')?_0x1f9ddb:_0x1f9ddb[_0x1d2b('0x48')](_0x4c033c=>jt(_0x4c033c,this['_model']));if(_0x1d2b('0x53')===this['_trackFormatChanges']){const _0x251a98=this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1d2b('0x1d'),_0xdcd6aa,_0x1d2b('0xc'));return this[_0x1d2b('0xfa')](()=>_0x251a98(_0x2c0dda,_0x1b239a,_0x7ae2d)),null;}_0x45d302[_0x1d2b('0x7c')](..._0x2c0dda);let _0x40f0d4=!0x0;for(const _0x42f30a of _0x45d302)if(!this[_0x1d2b('0xa1')](_0x42f30a)){_0x40f0d4=!0x1;break;}if(_0x40f0d4&&_0x1d2b('0x71')!==this[_0x1d2b('0xd4')]){const _0x535c95=this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1d2b('0x1d'),_0xdcd6aa,_0x1d2b('0xc'));return this[_0x1d2b('0xfa')](()=>_0x535c95(_0x2c0dda,_0x1b239a,_0x7ae2d)),null;}const _0x47c50b=this[_0x1d2b('0x110')][_0x1d2b('0x10f')]['get'](_0x1d2b('0x92'))['me'];for(const _0x976dc1 of this[_0x1d2b('0x38')]()){if(_0x976dc1[_0x1d2b('0x13')]['id']!=_0x47c50b['id'])continue;if(_0x1d2b('0x1d')!=_0x976dc1[_0x1d2b('0x4')]||_0x976dc1[_0x1d2b('0x2f')]['formatGroupId']!=_0x1b239a[_0x1d2b('0x62')])continue;if(!Ot(_0x976dc1,_0x7ae2d))continue;const _0x50afb3=_0x976dc1[_0x1d2b('0xa0')]==_0xdcd6aa;for(let _0x411e0f=0x0;_0x411e0f<_0x2c0dda[_0x1d2b('0x90')];_0x411e0f++){const _0x59a82e=_0x2c0dda[_0x411e0f];for(const _0x2eceb9 of _0x976dc1[_0x1d2b('0x9b')]()){const _0x4e1fff=_0x2eceb9[_0x1d2b('0xc7')]();if(_0x59a82e[_0x1d2b('0xf2')](_0x4e1fff)){_0x50afb3?(_0x2c0dda['splice'](_0x411e0f,0x1),_0x411e0f--):_0x976dc1[_0x1d2b('0x13e')](_0x2eceb9[_0x1d2b('0xcd')]);break;}}}}if(0x0==_0x2c0dda[_0x1d2b('0x90')])return null;const _0x264ca4=this[_0x1d2b('0x119')][_0x1d2b('0xbc')]('formatBlock',_0xdcd6aa,_0x1d2b('0x10'));for(const _0x4db918 of this[_0x1d2b('0x38')]())if(_0x4db918[_0x1d2b('0x13')]['id']==_0x47c50b['id']&&_0x1d2b('0x1d')==_0x4db918['type']&&_0x4db918[_0x1d2b('0x2f')]['formatGroupId']==_0x1b239a[_0x1d2b('0x62')]&&_0x4db918['subType']==_0xdcd6aa&&Ot(_0x4db918,_0x7ae2d)&&(_0x264ca4(_0x4db918[_0x1d2b('0xef')](),_0x2c0dda)||_0x264ca4(_0x2c0dda,_0x4db918[_0x1d2b('0xef')]()))){for(const _0x29f09a of _0x2c0dda)_0x4db918[_0x1d2b('0x5b')](_0x29f09a);return _0x4db918;}const _0x34e2f1=_0x430f0f(),_0x255c1b=_0x47c50b['id'],_0x35d04c=_0x1d2b('0x7b')+_0xdcd6aa,_0x12690a=this[_0x1d2b('0x131')]({'id':_0x34e2f1,'type':_0x35d04c,'data':_0x1b239a,'createdAt':new Date(),'authorId':_0x255c1b,'attributes':_0x7ae2d});for(const _0x973136 of _0x2c0dda)this['_addSuggestionMarker'](_0x35d04c,_0x34e2f1,_0x255c1b,_0x973136,_0x24076c[_0x1d2b('0x142')]());return _0x12690a;}[_0x1d2b('0x79')](_0xf260c2,_0x20a874=null,_0x38e502={}){if(_0xf260c2[_0x1d2b('0xd9')])return null;const _0x381f82=this[_0x1d2b('0x110')]['plugins'][_0x1d2b('0x4f')](_0x1d2b('0x92'))['me'],_0x59f3f0=new _0x4a5f34(_0xf260c2[_0x1d2b('0xfc')],_0xf260c2[_0x1d2b('0x59')]);for(const {suggestion:_0x81bb7,meta:_0x588e0c}of this[_0x1d2b('0xbb')](_0x59f3f0,_0x1d2b('0x54')))if(_0x588e0c['isOwn']&&!_0x588e0c[_0x1d2b('0x30')]){if(_0x81bb7[_0x1d2b('0x52')]){const _0x222295=_0x81bb7[_0x1d2b('0xef')]()[_0x1d2b('0xcb')](_0x29f692=>_0x1d2b('0x68')!=_0x29f692[_0x1d2b('0x67')]['rootName']);_0x222295['every'](_0x3a1616=>_0x59f3f0[_0x1d2b('0xbd')](_0x3a1616,!0x0))&&_0x81bb7[_0x1d2b('0x9e')]();if(_0x222295[_0x1d2b('0x134')](_0x2e5b68=>_0x2e5b68[_0x1d2b('0xbd')](_0x59f3f0,!0x0))){const _0xac53bd=this['_suggestionFactory'][_0x1d2b('0xbc')](_0x1d2b('0x137'),_0x20a874,'accept');return this[_0x1d2b('0xfa')](()=>_0xac53bd([_0x59f3f0],null,_0x38e502)),null;}}else{const _0x379416=_0x59f3f0[_0x1d2b('0xde')](_0x81bb7[_0x1d2b('0x72')]());null!==_0x379416&&_0x81bb7[_0x1d2b('0x121')]([_0x379416],null,_0x38e502);}}if(_0x59f3f0[_0x1d2b('0x12c')](),_0x59f3f0[_0x1d2b('0xd9')]||_0x1d2b('0x68')==_0x59f3f0[_0x1d2b('0x67')][_0x1d2b('0x6f')])return null;let _0x15ef8b=null,_0x3bac71=_0x59f3f0[_0x1d2b('0xfc')],_0x4a9d18=_0x59f3f0[_0x1d2b('0x59')];const _0x53ee37=this[_0x1d2b('0xbb')](_0x59f3f0,_0x1d2b('0x137'));for(const {suggestion:_0x4f895e,meta:_0x57e94e}of _0x53ee37){const _0x53df38=this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x3bac71,_0x4a9d18);if(_0x57e94e[_0x1d2b('0x83')]&&(this[_0x1d2b('0x13b')]||!_0x57e94e[_0x1d2b('0x8a')]&&!_0x57e94e['isInsideObject'])){if(_0x4f895e[_0x1d2b('0x52')]){if(!Ot(_0x4f895e,_0x38e502))continue;let _0x569672=!0x0;for(const _0x45b3ac of _0x4f895e[_0x1d2b('0xef')]()){if(_0x45b3ac[_0x1d2b('0xbd')](_0x53df38,!0x0))return _0x4f895e;_0x53df38[_0x1d2b('0xbd')](_0x45b3ac)||(_0x569672=!0x1);}_0x569672&&_0x4f895e[_0x1d2b('0x9e')]();}else{const _0x12f13a=_0x4f895e[_0x1d2b('0x72')]();if(_0x12f13a[_0x1d2b('0xbd')](_0x53df38,!0x0))return _0x4f895e;if(!Ot(_0x4f895e,_0x38e502)){_0x53df38['containsRange'](_0x12f13a)?_0x4f895e[_0x1d2b('0x78')]():_0x12f13a['containsPosition'](_0x3bac71)?_0x3bac71=_0x12f13a[_0x1d2b('0x59')]:_0x12f13a[_0x1d2b('0xec')](_0x4a9d18)&&(_0x4a9d18=_0x12f13a['start']);continue;}_0x3bac71=_0x3bac71[_0x1d2b('0x6')](_0x12f13a['start'])?_0x3bac71:_0x12f13a[_0x1d2b('0xfc')],_0x4a9d18=_0x4a9d18[_0x1d2b('0x13c')](_0x12f13a[_0x1d2b('0x59')])?_0x4a9d18:_0x12f13a[_0x1d2b('0x59')],_0x38e502=Object[_0x1d2b('0xe6')]({},_0x4f895e[_0x1d2b('0x1b')]),_0x15ef8b?_0x12f13a['start']['isBefore'](_0x15ef8b[_0x1d2b('0x72')]()[_0x1d2b('0xfc')])?(_0x15ef8b[_0x1d2b('0x78')](),_0x15ef8b=_0x4f895e):_0x4f895e[_0x1d2b('0x78')]():_0x15ef8b=_0x4f895e;}}}if(_0x15ef8b)return this[_0x1d2b('0x89')](_0x15ef8b,this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x3bac71,_0x4a9d18)),_0x15ef8b;{const _0x13bd91=_0x430f0f(),_0x321363=this['_model'][_0x1d2b('0x42')](_0x3bac71,_0x4a9d18),_0x23570f=_0x381f82['id'],_0x17993a=_0x20a874?_0x1d2b('0x39')+_0x20a874:_0x1d2b('0x137'),_0x193760=this[_0x1d2b('0x131')]({'id':_0x13bd91,'type':_0x17993a,'createdAt':new Date(),'authorId':_0x23570f,'attributes':_0x38e502});return this[_0x1d2b('0xbe')](_0x17993a,_0x13bd91,_0x23570f,_0x321363),_0x193760;}}[_0x1d2b('0x108')](_0x5d8a40,_0xb752f4=_0x1d2b('0xdd'),_0x526822={}){const _0x33f25c=this[_0x1d2b('0x110')][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x92'))['me'],_0x2da843=_0x5d8a40[_0x1d2b('0x48')](_0x2af702=>new _0x4a5f34(_0x2af702[_0x1d2b('0xfc')],_0x2af702[_0x1d2b('0x59')])),_0x5d5e4c=new Set();for(const {suggestion:_0x4079d5,meta:_0xc2d44d}of this[_0x1d2b('0xbb')](_0x2da843,_0x1d2b('0x54')))_0xc2d44d['isOwn']&&!_0xc2d44d[_0x1d2b('0x30')]&&_0x5d5e4c[_0x1d2b('0xd')](_0x4079d5);for(const _0x9aabfc of _0x5d5e4c)if(_0x9aabfc[_0x1d2b('0x52')]){const _0x5a1c6f=_0x9aabfc[_0x1d2b('0xef')]();(!_0x9aabfc[_0x1d2b('0x1b')]||!_0x9aabfc[_0x1d2b('0x1b')][_0x1d2b('0x22')])&&(_0x5a1c6f[_0x1d2b('0x113')](_0x39e255=>_0x2da843[_0x1d2b('0x134')](_0x5acfb4=>_0x5acfb4[_0x1d2b('0xbd')](_0x39e255,!0x0)))&&_0x9aabfc[_0x1d2b('0x9e')]());if(_0x2da843[_0x1d2b('0x113')](_0x5f09ca=>_0x5a1c6f[_0x1d2b('0x134')](_0x43a727=>_0x43a727[_0x1d2b('0xbd')](_0x5f09ca,!0x0)))){const _0xfcde15=this['_suggestionFactory'][_0x1d2b('0xbc')]('deletion',_0xb752f4,_0x1d2b('0xc'));return this[_0x1d2b('0xfa')](()=>_0xfcde15(_0x5d8a40,null,_0x526822)),null;}}else{const _0x3ba487=_0x9aabfc[_0x1d2b('0x72')]();_0x2da843[_0x1d2b('0x134')](_0x2a2d12=>_0x2a2d12[_0x1d2b('0xbd')](_0x3ba487,!0x0))&&_0x9aabfc[_0x1d2b('0x9e')]();if(_0x2da843['every'](_0x353643=>_0x3ba487[_0x1d2b('0xbd')](_0x353643,!0x0))){const _0x55dfb1=this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1d2b('0x137'),_0xb752f4,_0x1d2b('0xc'));return this['forceDefaultExecution'](()=>_0x55dfb1(_0x2da843,null,_0x526822)),null;}}const _0x2bde48=this['_suggestionFactory'][_0x1d2b('0xbc')](_0x1d2b('0x137'),_0xb752f4,'join');let _0x42e3ea=null;for(const _0x2bb3c9 of this[_0x1d2b('0x38')]())if(_0x2bb3c9[_0x1d2b('0x13')]['id']==_0x33f25c['id']&&_0x2bb3c9['isInContent']&&_0x1d2b('0x137')==_0x2bb3c9[_0x1d2b('0x4')]&&_0x2bb3c9[_0x1d2b('0xa0')]==_0xb752f4&&Ot(_0x2bb3c9,_0x526822)&&(_0x2bde48(_0x2bb3c9[_0x1d2b('0xef')](),_0x2da843)||_0x2bde48(_0x2da843,_0x2bb3c9[_0x1d2b('0xef')]()))){if(_0x42e3ea){if(_0x2bb3c9[_0x1d2b('0x7f')]&&_0x2bb3c9[_0x1d2b('0x7f')][_0x1d2b('0x90')])continue;for(const _0x458b89 of _0x2bb3c9['getRanges']())_0x42e3ea['isIntersectingWithRange'](_0x458b89)||_0x42e3ea[_0x1d2b('0x5b')](_0x458b89);_0x2bb3c9[_0x1d2b('0x78')]();}else{_0x42e3ea=_0x2bb3c9;for(const _0x3370d3 of _0x2da843)_0x2bb3c9[_0x1d2b('0x12f')](_0x3370d3)||_0x2bb3c9[_0x1d2b('0x5b')](_0x3370d3);}}if(_0x42e3ea)return _0x42e3ea;_0x5d5e4c[_0x1d2b('0x99')]();for(const {suggestion:_0x1e73db,meta:_0x3bf6d8}of this['_findSuggestions'](_0x2da843,_0x1d2b('0x137')))_0x3bf6d8['isOwn']&&(this[_0x1d2b('0x13b')]||!_0x3bf6d8[_0x1d2b('0x8a')]&&!_0x3bf6d8['isInsideObject'])&&Ot(_0x1e73db,_0x526822)&&_0x5d5e4c['add'](_0x1e73db);for(const _0x5d5645 of _0x5d5e4c){const _0x2557dc=_0x5d5645[_0x1d2b('0xef')]();if(!_0x526822||!_0x526822['skipNestingCheck']){if(_0x2da843['every'](_0x37e72c=>_0x2557dc['some'](_0x52f1f3=>_0x52f1f3[_0x1d2b('0xbd')](_0x37e72c,!0x0))))return _0x5d5645;}(!_0x5d5645[_0x1d2b('0x1b')]||!_0x5d5645[_0x1d2b('0x1b')][_0x1d2b('0x22')])&&(_0x2557dc['every'](_0x15c333=>_0x2da843[_0x1d2b('0x134')](_0x5ec5c9=>_0x5ec5c9[_0x1d2b('0xbd')](_0x15c333,!0x0)))&&_0x5d5645[_0x1d2b('0x9e')]());}const _0x10b8c2=_0x430f0f(),_0x2d2922=_0x33f25c['id'],_0x5a8109=_0x1d2b('0x39')+_0xb752f4,_0x20f20b=this['_setSuggestionData']({'id':_0x10b8c2,'type':_0x5a8109,'createdAt':new Date(),'authorId':_0x2d2922,'attributes':_0x526822});for(const _0x1a24a1 of _0x2da843)_0x1a24a1['detach'](),_0x1a24a1[_0x1d2b('0xd9')]||_0x1d2b('0x68')==_0x1a24a1[_0x1d2b('0x67')][_0x1d2b('0x6f')]||this[_0x1d2b('0xbe')](_0x5a8109,_0x10b8c2,_0x2d2922,_0x1a24a1,_0x24076c[_0x1d2b('0x142')]());return _0x20f20b;}[_0x1d2b('0x89')](_0x4553ed,_0x251b6e){const _0x919392=_0x4553ed[_0x1d2b('0xb0')]();this['_model'][_0x1d2b('0x4d')](_0x3fcbe0=>{_0x3fcbe0[_0x1d2b('0x58')](_0x919392,{'range':_0x251b6e});});}[_0x1d2b('0x141')](_0x3fc2b4){const _0x3ee5df=_0x3fc2b4['id'],_0x953419=this['editor'][_0x1d2b('0xc4')][_0x1d2b('0x4f')](_0x1d2b('0x9d'));this[_0x1d2b('0xee')][_0x1d2b('0xb6')](_0x3ee5df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x953419,'threadId':_0x3ee5df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xfb2084=this['_commentsRepository'][_0x1d2b('0x75')](_0x3ee5df);_0xfb2084[_0x1d2b('0xf9')](_0x1d2b('0x10e')),_0xfb2084['isRemovable']=!0x1,_0x3fc2b4[_0x1d2b('0x7f')]=_0xfb2084;}[_0x1d2b('0x56')](_0x16384b,_0x42dbb9,_0xde0755,_0xf1bbaf){if(_0x16384b[_0x1d2b('0x4')]!=_0x42dbb9||_0x16384b[_0x1d2b('0xa0')]!=_0xde0755||_0x16384b[_0x1d2b('0x100')]['id']!=_0xf1bbaf)throw this[_0x1d2b('0x110')]['enableReadOnlyMode'](_0x1d2b('0xd3')),new _0x2364b6(_0x1d2b('0xd3'),this);}[_0x1d2b('0x3b')](_0xc699b4,_0x497166){const _0x404412=_0xc699b4[_0x1d2b('0x72')]();if(_0x497166[_0x1d2b('0xf2')](_0x404412))_0xc699b4[_0x1d2b('0x78')]();else{if(_0x404412[_0x1d2b('0xbd')](_0x497166)){const _0x257448=this[_0x1d2b('0x87')]['createPositionAt'](_0x497166['start'][_0x1d2b('0xfb')],'end');this['_setSuggestionRange'](_0xc699b4,this[_0x1d2b('0x87')]['createRange'](_0x404412[_0x1d2b('0xfc')],_0x257448));const _0xcc2abd=_0x430f0f(),_0x4d3479=_0xc699b4[_0x1d2b('0x100')]['id'],_0x427709=_0xc699b4['type']+':'+_0xc699b4[_0x1d2b('0xa0')];this[_0x1d2b('0x131')]({'id':_0xcc2abd,'type':_0x427709,'createdAt':new Date(),'authorId':_0x4d3479,'data':_0xc699b4['data'],'attributes':_0xc699b4['attributes']});const _0x630e1c=this[_0x1d2b('0x87')][_0x1d2b('0x26')](_0x497166['end']['parent'],_0x1d2b('0x14')),_0x57e520=this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x630e1c,_0x404412[_0x1d2b('0x59')]);this[_0x1d2b('0xbe')](_0x427709,_0xcc2abd,_0x4d3479,_0x57e520);}else{if(_0x404412[_0x1d2b('0xec')](_0x497166[_0x1d2b('0xfc')])){const _0x1f4a3f=this[_0x1d2b('0x87')]['createPositionAt'](_0x497166[_0x1d2b('0xfc')][_0x1d2b('0xfb')],_0x1d2b('0x59'));this[_0x1d2b('0x89')](_0xc699b4,this[_0x1d2b('0x87')]['createRange'](_0x404412[_0x1d2b('0xfc')],_0x1f4a3f));}else{const _0x3b197a=this[_0x1d2b('0x87')]['createPositionAt'](_0x497166['end'][_0x1d2b('0x73')],_0x1d2b('0x14'));this[_0x1d2b('0x89')](_0xc699b4,this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x3b197a,_0x404412['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4bec7d){for(const {suggestion:_0x10ab61,meta:_0x38487c}of this[_0x1d2b('0xbb')](_0x4bec7d,_0x1d2b('0x54'))){if(!_0x38487c['isOwn'])continue;const _0x2ecf7b=_0x10ab61['getRanges']();for(const _0x63940a of _0x2ecf7b)if(!_0x4bec7d[_0x1d2b('0x4e')](_0x63940a)[_0x1d2b('0x90')])return!0x0;}return!0x1;}[_0x1d2b('0xc9')](_0x10d9eb){const _0x108210=this[_0x1d2b('0x110')][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x92'))[_0x1d2b('0x70')](_0x10d9eb);if(!_0x108210)throw new _0x2364b6('track-changes-user-not-found',this);return _0x108210;}[_0x1d2b('0xc3')](_0x67e87c){const _0x21dcaa=this['editor'][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x92')),_0x143083=_0x4dc587(_0x1d2b('0x2e')+_0x67e87c),_0xa546bc=_0x21dcaa[_0x1d2b('0x70')](_0x143083);return _0xa546bc||_0x21dcaa[_0x1d2b('0x97')]({'id':_0x143083,'name':_0x67e87c});}['_createSuggestion'](_0x439d1e,_0x597e96,_0x3d44eb,_0x474a71,_0x3d68a1){const _0x2340ec=this[_0x1d2b('0xc9')](_0x474a71),_0x114b51=this[_0x1d2b('0x119')][_0x1d2b('0x37')](_0x439d1e,_0x597e96,_0x3d44eb,_0x2340ec,_0x3d68a1,_0x49accc=>this[_0x1d2b('0xa5')](_0x3d44eb,{'attributes':_0x49accc}));return this['listenTo'](_0x114b51,_0x1d2b('0xc'),()=>{this[_0x1d2b('0xa5')](_0x3d44eb,{'state':_0x1d2b('0x86')});},{'priority':'high'}),this['listenTo'](_0x114b51,_0x1d2b('0x9e'),()=>{this[_0x1d2b('0xa5')](_0x3d44eb,{'state':_0x1d2b('0x32')});},{'priority':_0x1d2b('0xb1')}),this[_0x1d2b('0x109')][_0x1d2b('0x105')](_0x3d44eb,_0x114b51),this[_0x1d2b('0xe3')]['set'](_0x114b51,_0x1d2b('0xce')),_0x114b51;}[_0x1d2b('0x44')](_0x156697){const _0x5eab49=_0x156697[_0x1d2b('0x5c')](':');return{'group':_0x5eab49[0x0],'type':_0x5eab49[0x1],'subType':_0x5eab49[_0x1d2b('0x90')]>=0x5?_0x5eab49[0x2]:null,'id':_0x5eab49[_0x1d2b('0x90')]<0x5?_0x5eab49[0x2]:_0x5eab49[0x3],'authorId':_0x5eab49[_0x1d2b('0x90')]<0x5?_0x5eab49[0x3]:_0x5eab49[0x4],'markerCount':0x6==_0x5eab49[_0x1d2b('0x90')]?_0x5eab49[0x5]:null};}[_0x1d2b('0xa2')](_0x3155ab,_0x1acca5,_0xbfb339){const _0x5f3f76=_0x3155ab['getFirstRange'](),_0x5aa6d5=_0x5f3f76[_0x1d2b('0xfc')],_0xc8ed53=_0x5f3f76['end'];this['_setSuggestionRange'](_0x3155ab,this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0x5aa6d5,_0x1acca5));const _0x46de9d=_0x430f0f(),_0x4fde16=_0x3155ab[_0x1d2b('0x100')]['id'],_0x107820=_0x3155ab['type']+(_0x3155ab['subType']?':'+_0x3155ab[_0x1d2b('0xa0')]:'');this[_0x1d2b('0x131')]({'id':_0x46de9d,'type':_0x107820,'createdAt':new Date(),'authorId':_0x4fde16,'originalSuggestionId':_0x3155ab['id'],'attributes':_0x3155ab[_0x1d2b('0x1b')],'data':_0x3155ab[_0x1d2b('0x2f')]}),_0x1d2b('0x1d')==_0x3155ab[_0x1d2b('0x4')]&&(_0xbfb339=this[_0x1d2b('0x87')]['createPositionBefore'](_0xbfb339[_0x1d2b('0x73')])),this[_0x1d2b('0xbe')](_0x107820,_0x46de9d,_0x4fde16,this[_0x1d2b('0x87')][_0x1d2b('0x42')](_0xbfb339,_0xc8ed53));}[_0x1d2b('0xbb')](_0x3daa63,_0x188124=null){const _0x4dd44c=[],_0x2a86dd=this['editor'][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x92'))['me'];Array[_0x1d2b('0xea')](_0x3daa63)||(_0x3daa63=[_0x3daa63]);for(const _0x4337c1 of this['getSuggestions']()){if(!_0x4337c1['isInContent'])continue;if(_0x188124&&_0x4337c1[_0x1d2b('0x4')]!=_0x188124)continue;let _0x1af850=!0x1;for(const _0x3f310f of _0x4337c1[_0x1d2b('0xef')]()){for(const _0x2bb999 of _0x3daa63){const _0x4a6848=_0x2bb999[_0x1d2b('0xfc')][_0x1d2b('0xf2')](_0x3f310f[_0x1d2b('0x59')])||_0x2bb999[_0x1d2b('0x59')][_0x1d2b('0xf2')](_0x3f310f[_0x1d2b('0xfc')]);if(_0x4a6848||_0x2bb999['getIntersection'](_0x3f310f)){const _0x572fc6=_0x2bb999['containsRange'](_0x3f310f)&&_t(this[_0x1d2b('0x87')][_0x1d2b('0x6e')],_0x3f310f['start'],_0x2bb999),_0x18ef48=_0x3f310f['containsRange'](_0x2bb999)&&_t(this['_model'][_0x1d2b('0x6e')],_0x2bb999[_0x1d2b('0xfc')],_0x3f310f);_0x4dd44c[_0x1d2b('0x7c')]({'suggestion':_0x4337c1,'meta':{'isOwn':_0x2a86dd==_0x4337c1[_0x1d2b('0x13')],'isNextTo':_0x4a6848,'isInsideObject':_0x572fc6,'containsRangeInObject':_0x18ef48}}),_0x1af850=!0x0;break;}}if(_0x1af850)break;}}return _0x4dd44c;}['_addSuggestionMarker'](_0x3b932,_0x27f605,_0x254838,_0x26be88,_0x4cb826){this[_0x1d2b('0x87')][_0x1d2b('0x4d')](_0x4b1565=>{let _0x147632=_0x1d2b('0x34')+_0x3b932+':'+_0x27f605+':'+_0x254838;_0x4cb826&&(_0x147632=_0x147632+':'+_0x4cb826),_0x4b1565[_0x1d2b('0x55')](_0x147632,{'range':_0x26be88,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1d2b('0xed')](_0x3b2bfd){const _0x5503f0=_0x3b2bfd['previous'],_0x252a3a=_0x3b2bfd[_0x1d2b('0x6c')];_0x3b2bfd[_0x1d2b('0xb4')]=null,null!=_0x5503f0&&(_0x5503f0[_0x1d2b('0x6c')]=null),_0x3b2bfd[_0x1d2b('0x6c')]=null,null!=_0x252a3a&&(_0x252a3a[_0x1d2b('0xb4')]=null),_0x1d2b('0x1c')==this['_suggestionState'][_0x1d2b('0x4f')](_0x3b2bfd)&&(this[_0x1d2b('0xe3')][_0x1d2b('0x105')](_0x3b2bfd,_0x1d2b('0x102')),this['fire'](_0x1d2b('0x19'),_0x3b2bfd,_0x5503f0,_0x252a3a));}[_0x1d2b('0x131')](_0x5ca8c2){const _0x1790a0=_0x5ca8c2['id'],_0x455ca5=this[_0x1d2b('0xff')](_0x5ca8c2);if(this[_0x1d2b('0x31')]&&this[_0x1d2b('0x31')][_0x1d2b('0x2d')]){const _0x439e48=this[_0x1d2b('0x110')][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x124')),_0x1e0700=_0x455ca5[_0x1d2b('0x125')],_0x18d898=_0x455ca5[_0x1d2b('0xa0')]?_0x455ca5[_0x1d2b('0x4')]+':'+_0x455ca5[_0x1d2b('0xa0')]:_0x455ca5['type'],_0x12f889=this[_0x1d2b('0x110')][_0x1d2b('0x13a')],_0x4e49ad=_0x439e48['add'](_0xca3f4a(_0x12f889,_0x1d2b('0x127'))),_0x56f53e={'id':_0x1790a0,'type':_0x18d898,'hasComments':_0x1e0700,'data':_0x5ca8c2['data']||null,'originalSuggestionId':_0x5ca8c2[_0x1d2b('0x143')]||null,'attributes':_0x455ca5[_0x1d2b('0x1b')]};this[_0x1d2b('0x31')][_0x1d2b('0x2d')](_0x56f53e)['then'](_0x345bf9=>{_0x455ca5[_0x1d2b('0xa6')]=!0x0,_0x439e48[_0x1d2b('0x8c')](_0x4e49ad),_0x345bf9&&_0x345bf9[_0x1d2b('0xb2')]&&(this[_0x1d2b('0x109')][_0x1d2b('0x4f')](_0x1790a0)['createdAt']=_0x345bf9[_0x1d2b('0xb2')]);})[_0x1d2b('0xe')](_0x1070e9=>{throw _0x5efed4(_0x1d2b('0xcc')),this['editor'][_0x1d2b('0xca')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x455ca5[_0x1d2b('0x9e')]();}),_0x455ca5[_0x1d2b('0x35')](),this[_0x1d2b('0x109')][_0x1d2b('0x11d')](_0x455ca5['id']),this[_0x1d2b('0xe3')]['delete'](_0x455ca5),_0x1070e9;});}return _0x455ca5;}['_updateSuggestionData'](_0x39e117,_0x455098){const _0x1d0f59=this['editor'][_0x1d2b('0x10f')][_0x1d2b('0x4f')](_0x1d2b('0x124')),_0x394b89=this[_0x1d2b('0xc6')](_0x39e117);if(this[_0x1d2b('0x31')]&&this['_adapter'][_0x1d2b('0x77')]){if(_0x394b89[_0x1d2b('0xa6')]){const _0x45accb=_0x1d0f59[_0x1d2b('0xd')](_0xca3f4a(this[_0x1d2b('0x110')]['locale'],_0x1d2b('0x127')));this['_adapter']['updateSuggestion'](_0x39e117,_0x455098)[_0x1d2b('0x24')](()=>{_0x1d0f59[_0x1d2b('0x8c')](_0x45accb);});}else _0x394b89['on'](_0x1d2b('0x66'),()=>{this['_updateSuggestionData'](_0x39e117,_0x455098);});}}[_0x1d2b('0xb5')](_0x87648a){if(!this['_adapter']||!this[_0x1d2b('0x31')][_0x1d2b('0xc6')])throw new _0x2364b6(_0x1d2b('0x3d'),this);return this[_0x1d2b('0x31')][_0x1d2b('0xc6')](_0x87648a);}['_handleNewSuggestionMarker'](_0xf5542a){const {id:_0x688d73,type:_0x19293c,subType:_0x5a001d,authorId:_0x59e4c9}=this['_splitMarkerName'](_0xf5542a),_0x2f0c10=this[_0x1d2b('0x109')][_0x1d2b('0x4f')](_0x688d73)||this[_0x1d2b('0x5e')](_0x19293c,_0x5a001d,_0x688d73,_0x59e4c9,{});switch(this[_0x1d2b('0x56')](_0x2f0c10,_0x19293c,_0x5a001d,_0x59e4c9),this[_0x1d2b('0xe3')]['get'](_0x2f0c10)){case _0x1d2b('0xce'):this[_0x1d2b('0xb5')](_0x688d73)['then'](_0x52bdbb=>{let _0x4f674e=Promise[_0x1d2b('0xc2')]();_0x52bdbb[_0x1d2b('0x125')]&&(_0x4f674e=this[_0x1d2b('0xee')][_0x1d2b('0xb')]({'channelId':this[_0x1d2b('0x110')]['config'][_0x1d2b('0x4f')](_0x1d2b('0x9d')),'threadId':_0x688d73})),_0x4f674e['then'](()=>{this[_0x1d2b('0xff')](_0x52bdbb)[_0x1d2b('0xa6')]=!0x0;});}),this[_0x1d2b('0xe3')][_0x1d2b('0x105')](_0x2f0c10,_0x1d2b('0x11f'));break;case _0x1d2b('0x102'):this['_updateSuggestionData'](_0x688d73,{'state':_0x1d2b('0x12b')});case _0x1d2b('0x27'):this[_0x1d2b('0xe3')]['set'](_0x2f0c10,_0x1d2b('0x1c')),this[_0x1d2b('0x10a')](_0x1d2b('0x123'),_0x2f0c10);break;case _0x1d2b('0x1c'):this['fire']('suggestionChanged',_0x2f0c10);}return _0x2f0c10[_0x1d2b('0x106')](_0xf5542a),_0x2f0c10;}[_0x1d2b('0x0')](_0x208e09){const _0x1c6f1c=Array[_0x1d2b('0x2b')](_0x208e09)[_0x1d2b('0xcb')](_0x557377=>!_0x557377['isMultiRange']),_0x4422ee=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1d2b('0xcb')](_0x5624ee=>!_0x5624ee[_0x1d2b('0x52')]),_0x49de0c=_0x4422ee[_0x1d2b('0xcb')](_0x4c23ee=>!_0x208e09[_0x1d2b('0x11')](_0x4c23ee)),_0xe25f33=new Map(_0x4422ee[_0x1d2b('0x48')](_0x1bb0eb=>[_0x1bb0eb,this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x1bb0eb[_0x1d2b('0x4')],_0x1bb0eb[_0x1d2b('0xa0')],_0x1d2b('0x95'))])),_0x7d2e64=new Map(_0x4422ee[_0x1d2b('0x48')](_0x1bcebc=>[_0x1bcebc,_0x1bcebc[_0x1d2b('0x72')]()])),_0x2ab69e=new Set(),_0xedb298=new Set();for(let _0x1d03f5=0x0;_0x1d03f5<_0x1c6f1c[_0x1d2b('0x90')];_0x1d03f5++)_0x1f2c3a(_0x1c6f1c[_0x1d03f5],_0x1c6f1c,_0x1d03f5+0x1);for(let _0x1bc8d4=0x0;_0x1bc8d4<_0x1c6f1c[_0x1d2b('0x90')];_0x1bc8d4++)_0x1f2c3a(_0x1c6f1c[_0x1bc8d4],_0x49de0c,0x0);for(let _0x7b87e=0x0;_0x7b87e<_0x1c6f1c[_0x1d2b('0x90')];_0x7b87e++){const _0x3bb81a=_0x1c6f1c[_0x7b87e];!_0xedb298[_0x1d2b('0x11')](_0x3bb81a)&&_0x3bb81a['previous']&&(_0x3bb81a[_0x1d2b('0xb4')][_0x1d2b('0x6c')]===_0x3bb81a&&(_0x3bb81a[_0x1d2b('0xb4')][_0x1d2b('0x6c')]=null),_0x3bb81a['previous']=null),!_0x2ab69e[_0x1d2b('0x11')](_0x3bb81a)&&_0x3bb81a[_0x1d2b('0x6c')]&&(_0x3bb81a[_0x1d2b('0x6c')][_0x1d2b('0xb4')]===_0x3bb81a&&(_0x3bb81a['next']['previous']=null),_0x3bb81a[_0x1d2b('0x6c')]=null);}function _0x1f2c3a(_0x351082,_0x35e2de,_0x39c54c){for(let _0x2a002f=_0x39c54c;_0x2a002f<_0x35e2de[_0x1d2b('0x90')];_0x2a002f++){const _0x49aec4=_0x5adc62(_0x351082,_0x35e2de[_0x2a002f]);_0x49aec4&&(_0x49aec4[0x0]['next']=_0x49aec4[0x1],_0x49aec4[0x1][_0x1d2b('0xb4')]=_0x49aec4[0x0],_0x2ab69e['add'](_0x49aec4[0x0]),_0xedb298[_0x1d2b('0xd')](_0x49aec4[0x1]));}}function _0x5adc62(_0x230efa,_0x341a91){if(_0x230efa[_0x1d2b('0x13')]['id']!==_0x341a91['author']['id'])return null;const _0xdfea41=_0xe25f33[_0x1d2b('0x4f')](_0x230efa)(_0x230efa,_0x341a91,_0x7d2e64['get'](_0x230efa),_0x7d2e64[_0x1d2b('0x4f')](_0x341a91));if(!_0xdfea41)return null;return _0xe25f33[_0x1d2b('0x4f')](_0x341a91)(_0x230efa,_0x341a91,_0x7d2e64[_0x1d2b('0x4f')](_0x230efa),_0x7d2e64[_0x1d2b('0x4f')](_0x341a91))?_0xdfea41[0x1][_0x1d2b('0x7f')]&&_0xdfea41[0x1][_0x1d2b('0x7f')][_0x1d2b('0x90')]?null:_0xdfea41:null;}}[_0x1d2b('0x10c')](_0x5ede51){const _0x5df37d=Array[_0x1d2b('0x2b')](_0x5ede51),_0x4392d4=this[_0x1d2b('0x38')]({'skipNotAttached':!0x0}),_0x509a1a=_0x4392d4[_0x1d2b('0xcb')](_0x3c1b66=>!_0x5ede51[_0x1d2b('0x11')](_0x3c1b66)),_0x4d65d7=new Map(_0x5df37d[_0x1d2b('0x48')](_0x451512=>[_0x451512,this[_0x1d2b('0x119')][_0x1d2b('0xbc')](_0x451512[_0x1d2b('0x4')],_0x451512[_0x1d2b('0xa0')],_0x1d2b('0x10'))])),_0x1d46b0=new Map(_0x4392d4[_0x1d2b('0x48')](_0x541140=>[_0x541140,_0x541140[_0x1d2b('0xef')]()]));for(let _0x19b581=0x0;_0x19b581<_0x5df37d[_0x1d2b('0x90')];_0x19b581++){if(_0x4273a2(this,_0x5df37d[_0x19b581],_0x5df37d,_0x19b581+0x1))return!0x0;}for(let _0x6a0189=0x0;_0x6a0189<_0x5df37d[_0x1d2b('0x90')];_0x6a0189++){if(_0x4273a2(this,_0x5df37d[_0x6a0189],_0x509a1a,0x0))return!0x0;}return!0x1;function _0x4273a2(_0x33f86b,_0x2b11a0,_0x5747e8,_0x25fd34){for(let _0x8c3f70=_0x25fd34;_0x8c3f70<_0x5747e8['length'];_0x8c3f70++){const _0x3f6e55=_0x5747e8[_0x8c3f70];if(_0x3f6e55[_0x1d2b('0x4')]!==_0x2b11a0[_0x1d2b('0x4')]||_0x3f6e55[_0x1d2b('0x13')]['id']!==_0x2b11a0[_0x1d2b('0x13')]['id']||_0x3f6e55['subType']!==_0x2b11a0[_0x1d2b('0xa0')])continue;if(!Ut(_0x2b11a0,_0x3f6e55))continue;const _0x132a7a=_0x4d65d7[_0x1d2b('0x4f')](_0x2b11a0),_0x1a1537=_0x1d46b0['get'](_0x2b11a0),_0x3573af=_0x1d46b0[_0x1d2b('0x4f')](_0x3f6e55),_0x1bc386=_0x2b11a0[_0x1d2b('0x7f')]&&_0x2b11a0[_0x1d2b('0x7f')][_0x1d2b('0x90')],_0x5b70d8=_0x3f6e55['commentThread']&&_0x3f6e55['commentThread'][_0x1d2b('0x90')];if(!_0x1bc386&&_0x132a7a(_0x3573af,_0x1a1537))return _0x33f86b[_0x1d2b('0x128')](_0x3f6e55,_0x2b11a0),_0x1d46b0[_0x1d2b('0x11d')](_0x2b11a0),!0x0;if(!_0x5b70d8&&_0x132a7a(_0x1a1537,_0x3573af))return _0x33f86b['_joinSuggestions'](_0x2b11a0,_0x3f6e55),_0x1d46b0['delete'](_0x3f6e55),!0x0;}return!0x1;}}[_0x1d2b('0x128')](_0x457af9,_0x5d4e8b){if(_0x457af9['isMultiRange'])for(const _0x52d548 of _0x5d4e8b[_0x1d2b('0xef')]())_0x457af9['addRange'](_0x52d548);else{const _0x335baf=_0x5d4e8b[_0x1d2b('0x72')]()[_0x1d2b('0x59')];this['_setSuggestionRange'](_0x457af9,this[_0x1d2b('0x87')]['createRange'](_0x457af9[_0x1d2b('0x72')]()[_0x1d2b('0xfc')],_0x335baf));}_0x5d4e8b[_0x1d2b('0x78')]();}}class Bt{constructor(_0x44040c){this['_editor']=_0x44040c,this[_0x1d2b('0x87')]=_0x44040c['model'],this['_customCallbacks']=new Map(),this[_0x1d2b('0x8')]=new Map(),this[_0x1d2b('0x15')]();}[_0x1d2b('0x37')](_0x3a805c,_0x473d02,_0x1538dc,_0x618a66,_0x1fdbe6,_0x1fa21f){return new _0x24076c(this[_0x1d2b('0x87')],{'type':_0x3a805c,'subType':_0x473d02,'id':_0x1538dc,'author':_0x618a66,'creator':_0x618a66,'attributes':_0x1fdbe6,'onAttributesChange':_0x1fa21f,'onAccept':(..._0x7baa6)=>this[_0x1d2b('0xbc')](_0x3a805c,_0x473d02,_0x1d2b('0xc'))(..._0x7baa6),'onDiscard':(..._0x39b66c)=>this[_0x1d2b('0xbc')](_0x3a805c,_0x473d02,_0x1d2b('0x9e'))(..._0x39b66c)});}['registerCustomCallback'](_0x2655b1,_0x4a4cbb,_0x2f71c6,_0x2308f7){const _0x3e8fd8=_0x2655b1+':'+_0x4a4cbb+':'+_0x2f71c6;this[_0x1d2b('0x5')][_0x1d2b('0x105')](_0x3e8fd8,_0x2308f7);}[_0x1d2b('0xbc')](_0x136dab,_0x1df3e1,_0x187bdb){const _0x10fb99=_0x136dab+':'+_0x1df3e1+':'+_0x187bdb;return this[_0x1d2b('0x5')][_0x1d2b('0x4f')](_0x10fb99)||this['_defaultCallbacks'][_0x1d2b('0x4f')](_0x136dab+':'+_0x187bdb);}[_0x1d2b('0x15')](){const _0x4543f3=()=>!0x1,_0x3ff8db=_0x2cece0=>{_0x2cece0[_0x1d2b('0xae')]((_0x27c926,_0x3596dc)=>_0x27c926[_0x1d2b('0xfc')]['isBefore'](_0x3596dc['start'])?0x1:-0x1),this[_0x1d2b('0x87')][_0x1d2b('0x4d')](_0x8d334b=>{for(const _0x1157ba of _0x2cece0){let _0x4637e7;_0x4637e7=_0x1157ba[_0x1d2b('0x59')]['isAtEnd']&&_0x1157ba['end'][_0x1d2b('0x73')]==_0x1157ba[_0x1d2b('0xfc')]['nodeAfter']?_0x8d334b[_0x1d2b('0xe1')](_0x1157ba['start'][_0x1d2b('0xdf')],'on'):_0x8d334b[_0x1d2b('0xe1')](_0x1157ba),this[_0x1d2b('0x87')][_0x1d2b('0x4b')](_0x4637e7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x291ff7=(_0x557ad1,_0x360746)=>{this[_0x1d2b('0x87')][_0x1d2b('0x4d')](_0x3b6b21=>{const {commandName:_0x3d49ea,commandParams:_0x48f372=[]}=_0x360746,_0x37f233=_0x557ad1[_0x1d2b('0x48')](_0xce7a38=>(Mt(_0xce7a38)&&(_0xce7a38=this['_model'][_0x1d2b('0x42')](_0xce7a38[_0x1d2b('0x59')])),_0xce7a38))[_0x1d2b('0xcb')](_0x246872=>_0x1d2b('0x68')!==_0x246872[_0x1d2b('0x67')][_0x1d2b('0x6f')]);if(_0x37f233['length']<0x1)return;const _0x432806=Array[_0x1d2b('0x2b')](this[_0x1d2b('0x87')]['document'][_0x1d2b('0x41')][_0x1d2b('0xef')]())[_0x1d2b('0x48')](_0x2fbd0f=>_0x4a5f34[_0x1d2b('0x12e')](_0x2fbd0f));_0x3b6b21[_0x1d2b('0x76')](_0x37f233);for(const _0x2243c4 of this['_editor'][_0x1d2b('0x33')][_0x1d2b('0x33')]())_0x2243c4['refresh']();_0x48f372[_0x1d2b('0x7c')]({'forceDefaultExecution':!0x0}),this[_0x1d2b('0x11e')][_0x1d2b('0x129')](_0x3d49ea,..._0x48f372);const _0x199e7b=_0x432806['filter'](_0x5e3dd6=>_0x1d2b('0x68')!=_0x5e3dd6[_0x1d2b('0x67')]['rootName']);_0x199e7b[_0x1d2b('0x90')]>0x0&&_0x3b6b21[_0x1d2b('0x76')](_0x199e7b);for(const _0x41ef13 of _0x432806)_0x41ef13['detach']();});},_0x27efa2=(_0xfd41e4,_0x301cc4)=>0x1==_0xfd41e4['length']&&0x1==_0x301cc4[_0x1d2b('0x90')]&&_0xfd41e4[0x0][_0x1d2b('0x59')][_0x1d2b('0xf2')](_0x301cc4[0x0][_0x1d2b('0xfc')]),_0x252f93=(_0x257a7f,_0x1e9dad,_0x39fdc7,_0x6dcdc0)=>xt(_0x257a7f,_0x1e9dad,_0x39fdc7,_0x6dcdc0,this['_model'])?[_0x257a7f,_0x1e9dad]:xt(_0x1e9dad,_0x257a7f,_0x6dcdc0,_0x39fdc7,this[_0x1d2b('0x87')])?[_0x1e9dad,_0x257a7f]:null;this[_0x1d2b('0x8')]['set'](_0x1d2b('0xf8'),_0x4543f3),this[_0x1d2b('0x8')]['set'](_0x1d2b('0x8e'),_0x3ff8db),this['_defaultCallbacks'][_0x1d2b('0x105')](_0x1d2b('0xd2'),_0x27efa2),this['_defaultCallbacks'][_0x1d2b('0x105')](_0x1d2b('0xc8'),_0x252f93),this[_0x1d2b('0x8')][_0x1d2b('0x105')]('deletion:accept',_0x3ff8db),this[_0x1d2b('0x8')][_0x1d2b('0x105')](_0x1d2b('0x8d'),_0x4543f3),this['_defaultCallbacks']['set'](_0x1d2b('0xe4'),_0x27efa2),this['_defaultCallbacks'][_0x1d2b('0x105')](_0x1d2b('0xc0'),_0x252f93),this[_0x1d2b('0x8')][_0x1d2b('0x105')]('formatInline:accept',_0x291ff7),this[_0x1d2b('0x8')][_0x1d2b('0x105')]('formatInline:discard',_0x4543f3),this['_defaultCallbacks'][_0x1d2b('0x105')](_0x1d2b('0xb9'),_0x27efa2),this[_0x1d2b('0x8')]['set'](_0x1d2b('0x16'),_0x4543f3),this['_defaultCallbacks'][_0x1d2b('0x105')](_0x1d2b('0x10d'),_0x291ff7),this['_defaultCallbacks'][_0x1d2b('0x105')](_0x1d2b('0x9'),_0x4543f3),this[_0x1d2b('0x8')][_0x1d2b('0x105')](_0x1d2b('0x133'),_0x27efa2),this['_defaultCallbacks'][_0x1d2b('0x105')](_0x1d2b('0x23'),_0x4543f3);}}function _t(_0x376ca5,_0x3ac431,_0x2f7de0){for(const _0xd14bd9 of _0x3ac431[_0x1d2b('0x73')][_0x1d2b('0x5f')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd14bd9[_0x1d2b('0x67')]==_0xd14bd9)return!0x1;if(!_0x2f7de0[_0x1d2b('0x82')](_0xd14bd9))return!0x1;if(_0x376ca5[_0x1d2b('0x8f')](_0xd14bd9)||_0x376ca5[_0x1d2b('0xa3')](_0xd14bd9))return!0x0;}return!0x1;}function Mt(_0x8fdcef){return _0x8fdcef[_0x1d2b('0x59')]['parent']==_0x8fdcef[_0x1d2b('0xfc')][_0x1d2b('0xdf')]&&_0x8fdcef[_0x1d2b('0x59')][_0x1d2b('0xe9')];}function $t(_0x2cdd98,_0x2fd3ad,_0x3106e0,_0x3d3855){const _0x238018=_0x1ff103=>!_0x1ff103[_0x1d2b('0xa7')]['is'](_0x1d2b('0xe8'))&&!_0x3d3855['isObject'](_0x1ff103[_0x1d2b('0xa7')]),_0x1704fa=_0x2cdd98[_0x1d2b('0xfc')][_0x1d2b('0x45')](_0x238018),_0x4ca18a=_0x2cdd98[_0x1d2b('0x59')][_0x1d2b('0x45')](_0x238018,{'direction':_0x1d2b('0x84')});return(!_0x2cdd98['start']['isEqual'](_0x1704fa)||!_0x2cdd98['end'][_0x1d2b('0xf2')](_0x4ca18a))&&(_0x1704fa[_0x1d2b('0x6')](_0x4ca18a)?_0x3106e0['updateMarker'](_0x2fd3ad,{'range':_0x3106e0[_0x1d2b('0x42')](_0x1704fa,_0x4ca18a)}):_0x3106e0[_0x1d2b('0x13e')](_0x2fd3ad),!0x0);}function Nt(_0x3550b7){return _0x4dc587(_0x3550b7);}function Rt(_0xf92535){const _0x392add=_0xf92535[_0x1d2b('0xfc')][_0x1d2b('0xdf')];return _0x392add&&_0x392add['is'](_0x1d2b('0x81'));}function jt(_0x3be507,_0x1c2b85){const _0x3f2e5d=_0x1c2b85['schema'][_0x1d2b('0x8f')](_0x3be507)||_0x1c2b85[_0x1d2b('0x6e')][_0x1d2b('0xaf')](_0x3be507);return _0x1c2b85[_0x1d2b('0x42')](_0x1c2b85[_0x1d2b('0x26')](_0x3be507,'before'),_0x3f2e5d?_0x1c2b85[_0x1d2b('0x12')](_0x3be507):_0x1c2b85['createPositionAt'](_0x3be507,_0x1d2b('0x59')));}function xt(_0x999262,_0x5a36d1,_0x251abd,_0x3032b0,_0x57bc3c){if(!Ut(_0x999262,_0x5a36d1))return!0x1;if(_0x251abd[_0x1d2b('0x59')][_0x1d2b('0xf2')](_0x3032b0[_0x1d2b('0xfc')]))return!0x0;if(_0x999262[_0x1d2b('0x4')]!=_0x5a36d1[_0x1d2b('0x4')])return!0x1;if(!_0x251abd['end'][_0x1d2b('0xd6')](_0x3032b0[_0x1d2b('0xfc')]))return!0x1;const _0x4be669=_0x57bc3c[_0x1d2b('0x42')](_0x251abd['end'],_0x3032b0[_0x1d2b('0xfc')])[_0x1d2b('0xd7')]();for(const _0x238920 of _0x4be669)if([_0x1d2b('0x2'),_0x1d2b('0x4c')][_0x1d2b('0xd8')](_0x238920[_0x1d2b('0x4')])&&_0x57bc3c[_0x1d2b('0x6e')][_0x1d2b('0xa3')](_0x238920[_0x1d2b('0xa7')]))return!0x1;return!0x0;}function Ut(_0x778338,_0x43c366){return!(!_0x778338[_0x1d2b('0x13f')]||!_0x43c366[_0x1d2b('0x13f')])&&_0x470561(_0x778338[_0x1d2b('0x1b')],_0x43c366[_0x1d2b('0x1b')]);}function Ot(_0x4f38a0,_0xdb2c34){const _0x2dfc1e=Et(_0x4f38a0[_0x1d2b('0x1b')]),_0x29edce=Et(_0xdb2c34);if(!_0x4f38a0[_0x1d2b('0x13f')])return!0x1;for(const _0x5244e9 of Object[_0x1d2b('0x5d')](_0x29edce))if(!_0x470561(_0x2dfc1e[_0x5244e9],_0x29edce[_0x5244e9]))return!0x1;return!0x0;}function Et(_0x121fc9){const _0x2ce7a8=Object['assign']({},_0x121fc9);return delete _0x2ce7a8['skipNestingCheck'],delete _0x2ce7a8[_0x1d2b('0x11a')],_0x2ce7a8;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1da8=['trackChanges','get','CommentsUI','getDescriptions','commandName','getMarkerNames','change:activeAnnotations','acceptSelectedSuggestions','reduce','getRanges','focus','Track\x20changes','_disableComments','trackChanges.SuggestionThreadView','commentThread','isDirty','createCommentThreadController','push','pluginName','suggestion-','addComment','bind','descriptionParts','comments.maxThreadTotalWeight','execute','innerView','isEnabled','unbind','clear','activeMarkers','button','previous','SuggestionThreadView','length','from','arrowView','Discard\x20all\x20suggestions','suggestionChanged','getMarkers','getAllAdjacentSuggestions','locale','switchbutton','comments','comments.maxCommentCharsWhenCollapsed','refreshSelectedViews','createAnnotationView','createAnnotation','suggestionLoaded','commands','_destroyController','getSuggestion','_initializeController','delete','lowest','init','_handleControllerBuffer','_createUIButton','acceptAllSuggestions','map','define','change:previous','editing','keys','_viewToController','set','getJoined','_descriptionFactory','type','remove','_handleSuggestionControllerDelayed','filter','model','plugins','add','EditorAnnotations','mainView','_updateController','_unbindEditors','CommentView','editor','TrackChangesUI','hasSuggestion','isOn','Accept\x20all\x20selected\x20suggestions','_suggestionToController','toMany','listenTo','_annotationViews','values','componentFactory','getFirstRange','trackChanges.disableComments','_refreshActiveMarkers','Annotations','getByInnerView','Accept\x20all\x20suggestions','buttonView','destroy','Discard\x20all\x20selected\x20suggestions','isInContent','view','TrackChangesEditing','CommentsRepository','has','discardButton','head','acceptButton','actionView'];(function(_0xb8c489,_0x1da84f){const _0x384e73=function(_0x420b51){while(--_0x420b51){_0xb8c489['push'](_0xb8c489['shift']());}};_0x384e73(++_0x1da84f);}(_0x1da8,0x94));const _0x384e=function(_0xb8c489,_0x1da84f){_0xb8c489=_0xb8c489-0x0;let _0x384e73=_0x1da8[_0xb8c489];return _0x384e73;};import{Plugin as _0x4a0bda}from'ckeditor5/src/core';import{Collection as _0x395dc6}from'ckeditor5/src/utils';import{Model as _0x461ade,SplitButtonView as _0x29fe44,createDropdown as _0x25f8a1,addListToDropdown as _0x145f0f}from'ckeditor5/src/ui';import{Users as _0x2f3ffd,getDateTimeFormatter as _0x84686a,getAllMarkersDomElementsSorted as _0x4cfacc}from'ckeditor5-collaboration/src/collaboration-core';import _0x37b7af from'./trackchangesediting';import _0x1396e6 from'./ui/suggestioncontroller';import _0x9896de from'./ui/view/suggestionthreadview';import{getTranslation as _0x339081}from'./utils/common-translations';import _0x5b98ba from'../theme/icons/track-changes.svg';export default class d extends _0x4a0bda{static get['requires'](){return[_0x37b7af,_0x2f3ffd,_0x384e('0x3e'),'Annotations',_0x384e('0x22')];}static get[_0x384e('0x56')](){return _0x384e('0x28');}constructor(_0x715a3){super(_0x715a3),this[_0x384e('0x2c')]=new Map(),this[_0x384e('0x17')]=new Map(),this[_0x384e('0x2f')]=new Map(),this[_0x384e('0xf')]=new Map();const _0x518129=this[_0x384e('0x27')]['config'];_0x518129[_0x384e('0x13')](_0x384e('0x51'),_0x9896de),_0x518129[_0x384e('0x13')](_0x384e('0x33'),!0x1),this[_0x384e('0x50')]=_0x518129[_0x384e('0x45')](_0x384e('0x33'));}[_0x384e('0x1d')](_0x208f58,_0x200024){0x0===this[_0x384e('0xf')]['size']&&setTimeout(()=>{for(const [_0x3a633f,_0x1c00d3]of this['_handleControllerBuffer']){const _0x26723c=this[_0x384e('0x2c')][_0x384e('0x3f')](_0x3a633f);_0x26723c||_0x1c00d3?_0x26723c&&_0x1c00d3&&this[_0x384e('0x9')](_0x3a633f):this[_0x384e('0xb')](_0x3a633f);}this['editor'][_0x384e('0x20')][_0x384e('0x45')](_0x384e('0x22'))[_0x384e('0x4')](),this[_0x384e('0x34')](),this['_handleControllerBuffer'][_0x384e('0x60')]();},0xa),this[_0x384e('0xf')]['set'](_0x208f58,_0x200024);}[_0x384e('0xe')](){const _0x52bd64=this[_0x384e('0x27')],_0x50c3f1=_0x52bd64[_0x384e('0x20')][_0x384e('0x45')](_0x384e('0x3d')),_0x167208=_0x52bd64[_0x384e('0x20')][_0x384e('0x45')]('Annotations'),_0x1821f7=_0x52bd64[_0x384e('0x20')][_0x384e('0x45')]('EditorAnnotations'),_0x1383d7=_0x52bd64[_0x384e('0x20')][_0x384e('0x45')](_0x384e('0x3e'));_0x52bd64['ui'][_0x384e('0x31')][_0x384e('0x21')]('trackChanges',_0x2c3fbd=>this[_0x384e('0x10')](_0x2c3fbd)),_0x1821f7['addSourceCollector'](()=>{const _0x3f1d4a=[];for(const [_0x431d44,_0x58b44a]of Array[_0x384e('0x66')](this[_0x384e('0x2c')])){const _0x273660=_0x431d44[_0x384e('0x6b')](),_0x20a209=[];for(const _0x28503e of _0x273660){if(!_0x28503e[_0x384e('0x3b')])continue;if(_0x28503e['isMultiRange']){_0x20a209['push'](..._0x28503e[_0x384e('0x4d')]());continue;}const _0x4bb0ba=_0x28503e[_0x384e('0x32')]();if(_0x20a209[_0x384e('0x65')]>0x0){const _0x12e067=_0x20a209[0x0][_0x384e('0x19')](_0x4bb0ba);if(_0x12e067){_0x20a209[0x0]=_0x12e067;continue;}}_0x20a209[_0x384e('0x55')](_0x4bb0ba);}_0x3f1d4a[_0x384e('0x55')]([_0x58b44a['view'],_0x20a209]);}return _0x3f1d4a;}),this[_0x384e('0x2e')](_0x50c3f1,_0x384e('0x7'),(_0x18f253,_0x3ffa2b)=>{this[_0x384e('0x2e')](_0x3ffa2b,_0x384e('0x14'),(_0xd79d16,_0x59bad3,_0xbdd826,_0x1ef8cd)=>{_0x3ffa2b[_0x384e('0x3b')]&&(null==_0xbdd826?(this[_0x384e('0x24')](_0x1ef8cd['head']),this[_0x384e('0x1d')](_0x3ffa2b,!0x1)):(this[_0x384e('0x24')](_0xbdd826[_0x384e('0x41')]),this[_0x384e('0x1d')](_0x3ffa2b,!0x0)));}),null===_0x3ffa2b[_0x384e('0x63')]?this[_0x384e('0x1d')](_0x3ffa2b,!0x1):this[_0x384e('0x24')](_0x3ffa2b[_0x384e('0x41')]);}),this[_0x384e('0x2e')](_0x50c3f1,'suggestionUnloaded',(_0x1adc8b,_0x359169,_0x1c8b28)=>{this['stopListening'](_0x359169,_0x384e('0x14')),this[_0x384e('0xf')][_0x384e('0xc')](_0x359169);const _0x3fe0bb=_0x1c8b28?_0x1c8b28[_0x384e('0x41')]:_0x359169,_0xac8c8a=this['_suggestionToController']['get'](_0x3fe0bb);null!==_0x1c8b28&&this[_0x384e('0x24')](_0x3fe0bb),null===_0x1c8b28&&_0xac8c8a&&this[_0x384e('0x9')](_0x359169);}),this[_0x384e('0x2e')](_0x50c3f1,_0x384e('0x69'),(_0x1f6774,_0x586354)=>{this[_0x384e('0x24')](_0x586354);}),this['listenTo'](_0x167208,_0x384e('0x4a'),()=>{this[_0x384e('0x34')]();}),this[_0x384e('0x2e')](_0x1383d7,_0x384e('0x58'),(_0x5a1b4b,{threadId:_0x3b56b8,isFromAdapter:_0x3d1ad})=>{if(_0x3d1ad||!_0x50c3f1[_0x384e('0x29')](_0x3b56b8))return;const _0x58d234=_0x50c3f1[_0x384e('0xa')](_0x3b56b8);this[_0x384e('0x2c')][_0x384e('0x45')](_0x58d234)[_0x384e('0x3c')][_0x384e('0x4e')]();},{'priority':_0x384e('0xd')});}[_0x384e('0x34')](){const _0x4246f8=this[_0x384e('0x27')][_0x384e('0x20')][_0x384e('0x45')]('Annotations'),_0x448b68=this['editor'][_0x384e('0x20')][_0x384e('0x45')](_0x384e('0x3d')),_0x4859dd=Array['from'](_0x4246f8['activeAnnotations'],_0x149d6f=>_0x149d6f[_0x384e('0x5d')])['filter'](_0x167fec=>this[_0x384e('0x17')][_0x384e('0x3f')](_0x167fec)),_0x54f1fe=[];for(const _0x3740ba of _0x4859dd){const _0x5b9c7f=this[_0x384e('0x17')][_0x384e('0x45')](_0x3740ba)[_0x384e('0x1f')]['getAllAdjacentSuggestions']();_0x54f1fe[_0x384e('0x55')](..._0x5b9c7f[_0x384e('0x4c')]((_0x86e1f8,_0x459a27)=>[..._0x86e1f8,..._0x459a27[_0x384e('0x49')]()],[]));}_0x448b68[_0x384e('0x61')]=_0x54f1fe;}[_0x384e('0x10')](_0x54b3eb){const _0x58a07f=_0x25f8a1(_0x54b3eb,_0x29fe44),_0x3941ea=this[_0x384e('0x27')][_0x384e('0x8')]['get'](_0x384e('0x44')),_0xe9bbaf=_0x339081(_0x54b3eb,_0x384e('0x4f'));_0x58a07f[_0x384e('0x38')]['set']({'tooltip':_0xe9bbaf,'label':_0xe9bbaf,'icon':_0x5b98ba}),_0x58a07f[_0x384e('0x38')][_0x384e('0x59')](_0x384e('0x2a'))['to'](_0x3941ea,'value'),_0x58a07f['buttonView']['on'](_0x384e('0x5c'),()=>{_0x3941ea[_0x384e('0x5c')](),this['editor'][_0x384e('0x15')][_0x384e('0x3c')][_0x384e('0x4e')]();});const _0x472857=new _0x395dc6(),_0x35fc7a=[{'type':_0x384e('0x1'),'model':{'withText':!0x0,'label':_0xe9bbaf,'commandName':_0x384e('0x44')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x339081(_0x54b3eb,_0x384e('0x37')),'commandName':_0x384e('0x11')}},{'type':_0x384e('0x62'),'model':{'withText':!0x0,'label':_0x339081(_0x54b3eb,_0x384e('0x2b')),'commandName':_0x384e('0x4b')}},{'type':_0x384e('0x62'),'model':{'withText':!0x0,'label':_0x339081(_0x54b3eb,_0x384e('0x68')),'commandName':'discardAllSuggestions'}},{'type':_0x384e('0x62'),'model':{'withText':!0x0,'label':_0x339081(_0x54b3eb,_0x384e('0x3a')),'commandName':'discardSelectedSuggestions'}}];for(const _0x134ba3 of _0x35fc7a){let _0x21b8f3={'type':'separator'};if(_0x134ba3[_0x384e('0x1f')]){const _0x58f44d=new _0x461ade(_0x134ba3[_0x384e('0x1f')]),_0x5cac57=this[_0x384e('0x27')]['commands'][_0x384e('0x45')](_0x58f44d[_0x384e('0x48')]);_0x58f44d['bind'](_0x384e('0x2a'),_0x384e('0x5e'))['to'](_0x5cac57,'value',_0x384e('0x5e')),_0x21b8f3={'type':_0x134ba3[_0x384e('0x1b')],'model':_0x58f44d};}_0x472857[_0x384e('0x21')](_0x21b8f3);}_0x145f0f(_0x58a07f,_0x472857);const _0x17afaf=_0x35fc7a[_0x384e('0x1e')](_0xde936d=>null!=_0xde936d['model'])[_0x384e('0x12')](_0x5932ff=>this[_0x384e('0x27')][_0x384e('0x8')][_0x384e('0x45')](_0x5932ff['model'][_0x384e('0x48')])),_0x4c6b9e=_0x58a07f[_0x384e('0x38')];return _0x4c6b9e[_0x384e('0x43')][_0x384e('0x5f')](_0x384e('0x5e')),_0x4c6b9e[_0x384e('0x67')]['unbind'](_0x384e('0x5e')),_0x4c6b9e[_0x384e('0x43')][_0x384e('0x59')]('isEnabled')['to'](_0x3941ea,'isEnabled'),_0x4c6b9e[_0x384e('0x67')][_0x384e('0x59')](_0x384e('0x5e'))[_0x384e('0x2d')](_0x17afaf,_0x384e('0x5e'),(..._0x2438b0)=>_0x2438b0['some'](_0x3fed0d=>_0x3fed0d)),_0x58a07f['on'](_0x384e('0x5c'),_0x151eac=>{this['editor'][_0x384e('0x5c')](_0x151eac['source'][_0x384e('0x48')]),this[_0x384e('0x27')][_0x384e('0x15')][_0x384e('0x3c')][_0x384e('0x4e')]();}),_0x58a07f;}[_0x384e('0xb')](_0x10e404){const _0x2fb3cb=this[_0x384e('0x27')],_0x1b6039=_0x2fb3cb['config'],_0x203cc1=_0x2fb3cb[_0x384e('0x20')][_0x384e('0x45')](_0x384e('0x35')),_0x11340a=_0x2fb3cb[_0x384e('0x20')]['get'](_0x384e('0x3e')),_0x15ab2d=_0x2fb3cb['plugins']['get'](_0x384e('0x22')),_0x22563d=_0x2fb3cb[_0x384e('0x20')][_0x384e('0x45')](_0x2f3ffd)['me'],_0x561a7a=_0x1b6039[_0x384e('0x45')](_0x384e('0x44'))[_0x384e('0x64')],{CommentsListView:_0x666937,CommentThreadInputView:_0x118246}=_0x2fb3cb[_0x384e('0x20')][_0x384e('0x45')](_0x384e('0x46'));let _0x39a70f,_0x5909c1;this[_0x384e('0x2f')][_0x384e('0x3f')](_0x10e404['id'])?(_0x5909c1=this[_0x384e('0x2f')][_0x384e('0x45')](_0x10e404['id']),_0x39a70f=_0x5909c1[_0x384e('0x23')]):(_0x39a70f=new _0x561a7a(_0x2fb3cb[_0x384e('0x0')],_0x10e404,_0x22563d,{'disableComments':this[_0x384e('0x50')],'editorConfig':_0x1b6039['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1b6039[_0x384e('0x45')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1b6039[_0x384e('0x45')](_0x384e('0x5b')),'maxCommentCharsWhenCollapsed':_0x1b6039['get'](_0x384e('0x3')),'formatDateTime':_0x84686a(_0x1b6039['get'](_0x384e('0x0'))),'CommentView':_0x1b6039['get'](_0x384e('0x2'))[_0x384e('0x26')],'CommentsListView':_0x666937,'CommentThreadInputView':_0x118246}),_0x39a70f[_0x384e('0x42')]['on'](_0x384e('0x5c'),()=>{_0x2fb3cb[_0x384e('0x15')]['view'][_0x384e('0x4e')]();}),_0x39a70f[_0x384e('0x40')]['on'](_0x384e('0x5c'),()=>{_0x2fb3cb['editing'][_0x384e('0x3c')][_0x384e('0x4e')]();}),_0x5909c1=_0x203cc1[_0x384e('0x5')](this[_0x384e('0x27')][_0x384e('0x0')],_0x39a70f),_0x5909c1['bind'](_0x384e('0x53'))['to'](_0x39a70f,_0x384e('0x53')),_0x5909c1[_0x384e('0x59')](_0x384e('0x65'))['to'](_0x39a70f),_0x5909c1['bind'](_0x384e('0x1b'))['to'](_0x39a70f,'type',_0x204cf9=>_0x384e('0x57')+_0x204cf9),this[_0x384e('0x2f')][_0x384e('0x18')](_0x10e404['id'],_0x5909c1));const _0x271b0a=_0x11340a[_0x384e('0x54')](_0x10e404[_0x384e('0x52')],_0x39a70f),_0x278f5e=new _0x1396e6(_0x2fb3cb,_0x10e404,_0x39a70f,_0x271b0a),_0x53360d=_0x10e404[_0x384e('0x6b')]()[_0x384e('0x1e')](_0x19f897=>_0x19f897[_0x384e('0x3b')]);_0x39a70f[_0x384e('0x5a')]=_0x2fb3cb['plugins']['get'](_0x384e('0x3d'))['_descriptionFactory'][_0x384e('0x47')](_0x53360d),this[_0x384e('0x2c')]['set'](_0x10e404,_0x278f5e),this[_0x384e('0x17')]['set'](_0x39a70f,_0x278f5e);const _0x290c4e=_0x203cc1[_0x384e('0x6')]({'view':_0x5909c1,'target':()=>{const _0xaca044=[],_0x3ed7f9=_0x10e404[_0x384e('0x6b')]()[_0x384e('0x1e')](_0x127742=>_0x127742['isInContent']);for(const _0x3e77a5 of _0x3ed7f9)_0xaca044['push'](..._0x3e77a5[_0x384e('0x6a')]());return _0x4cfacc(_0x2fb3cb['editing'],_0xaca044);},'type':()=>_0x384e('0x57')+_0x278f5e[_0x384e('0x3c')][_0x384e('0x1b')]});_0x11340a['_bindAnnotationToEditors'](_0x39a70f,_0x290c4e),_0x203cc1[_0x384e('0x21')](_0x290c4e),_0x15ab2d['registerAnnotation'](_0x290c4e);}[_0x384e('0x9')](_0x4ff630){const _0x1c61e3=this['editor']['plugins'][_0x384e('0x45')](_0x384e('0x3e')),_0x28b327=this['editor']['plugins'][_0x384e('0x45')](_0x384e('0x35')),_0x409377=this['_suggestionToController'][_0x384e('0x45')](_0x4ff630),_0x4a977f=_0x409377[_0x384e('0x3c')],_0x1d07ca=_0x28b327[_0x384e('0x36')](_0x4a977f);_0x1c61e3[_0x384e('0x25')](_0x4a977f),_0x1d07ca&&_0x28b327[_0x384e('0x1c')](_0x1d07ca),this[_0x384e('0x2c')]['delete'](_0x4ff630),this[_0x384e('0x17')][_0x384e('0xc')](_0x4a977f),_0x409377[_0x384e('0x39')]();}[_0x384e('0x24')](_0x1da224){if(!_0x1da224[_0x384e('0x3b')]||!this[_0x384e('0x2c')][_0x384e('0x3f')](_0x1da224))return;const _0x177de4=this['editor'][_0x384e('0x20')][_0x384e('0x45')]('TrackChangesEditing'),_0x320208=this[_0x384e('0x2c')]['get'](_0x1da224),_0x2e9396=_0x1da224['getAllAdjacentSuggestions']();_0x320208[_0x384e('0x3c')][_0x384e('0x5a')]=_0x177de4[_0x384e('0x1a')][_0x384e('0x47')](_0x2e9396);}[_0x384e('0x39')](){for(const _0x321abd of this[_0x384e('0x2c')][_0x384e('0x16')]())this[_0x384e('0x9')](_0x321abd);for(const _0x5eb23c of this[_0x384e('0x2f')][_0x384e('0x30')]())_0x5eb23c[_0x384e('0x23')]['destroy']();super[_0x384e('0x39')]();}}
23
+ const _0x2d50=['change:activeAnnotations','acceptSelectedSuggestions','getSuggestion','trackChanges.SuggestionThreadView','_destroyController','filter','suggestionLoaded','get','view','createAnnotationView','getDescriptions','editor','from','source','_disableComments','actionView','activeMarkers','push','innerView','EditorAnnotations','define','acceptButton','isEnabled','Annotations','switchbutton','plugins','listenTo','discardSelectedSuggestions','editing','_annotationViews','trackChanges','discardAllSuggestions','head','bind','getRanges','delete','add','mainView','getAllAdjacentSuggestions','type','pluginName','init','CommentsRepository','suggestion-','hasSuggestion','stopListening','execute','_updateController','SuggestionThreadView','value','locale','config','Accept\x20all\x20selected\x20suggestions','model','_handleSuggestionControllerDelayed','commentThread','isOn','change:previous','trackChanges.disableComments','set','buttonView','TrackChangesEditing','some','createCommentThreadController','registerAnnotation','toMany','length','comments.maxCommentsWhenCollapsed','CommentView','_descriptionFactory','size','Accept\x20all\x20suggestions','separator','_viewToController','getFirstRange','commands','refreshSelectedViews','_refreshActiveMarkers','clear','getMarkerNames','_suggestionToController','_initializeController','focus','unbind','commandName','CommentsUI','has','suggestionChanged','lowest','button','discardButton','arrowView','_bindAnnotationToEditors','isInContent','_handleControllerBuffer','previous','values','map','keys','_unbindEditors','isMultiRange','isDirty','addComment','descriptionParts','suggestionUnloaded','activeAnnotations','Discard\x20all\x20selected\x20suggestions','destroy'];(function(_0x321b11,_0x2d5096){const _0x4dacf3=function(_0x2b7e3a){while(--_0x2b7e3a){_0x321b11['push'](_0x321b11['shift']());}};_0x4dacf3(++_0x2d5096);}(_0x2d50,0x136));const _0x4dac=function(_0x321b11,_0x2d5096){_0x321b11=_0x321b11-0x0;let _0x4dacf3=_0x2d50[_0x321b11];return _0x4dacf3;};import{Plugin as _0x48f751}from'ckeditor5/src/core';import{Collection as _0x4a6c16}from'ckeditor5/src/utils';import{Model as _0xe92ad8,SplitButtonView as _0x498fe2,createDropdown as _0x3d99f8,addListToDropdown as _0x4c9974}from'ckeditor5/src/ui';import{Users as _0x44677c,getDateTimeFormatter as _0x51cf53,getAllMarkersDomElementsSorted as _0x51d2ec}from'ckeditor5-collaboration/src/collaboration-core';import _0x38a339 from'./trackchangesediting';import _0x11e26f from'./ui/suggestioncontroller';import _0x48365f from'./ui/view/suggestionthreadview';import{getTranslation as _0x2a4b97}from'./utils/common-translations';import _0x352211 from'../theme/icons/track-changes.svg';export default class d extends _0x48f751{static get['requires'](){return[_0x38a339,_0x44677c,_0x4dac('0x38'),'Annotations','EditorAnnotations'];}static get[_0x4dac('0x36')](){return'TrackChangesUI';}constructor(_0x4401f6){super(_0x4401f6),this[_0x4dac('0x5e')]=new Map(),this['_viewToController']=new Map(),this[_0x4dac('0x2b')]=new Map(),this[_0x4dac('0x0')]=new Map();const _0x4225aa=this[_0x4dac('0x19')]['config'];_0x4225aa[_0x4dac('0x22')](_0x4dac('0x11'),_0x48365f),_0x4225aa[_0x4dac('0x22')](_0x4dac('0x48'),!0x1),this[_0x4dac('0x1c')]=_0x4225aa['get'](_0x4dac('0x48'));}['_handleSuggestionControllerDelayed'](_0x470d0e,_0x449b80){0x0===this['_handleControllerBuffer'][_0x4dac('0x54')]&&setTimeout(()=>{for(const [_0x1b22c2,_0x512fb5]of this['_handleControllerBuffer']){const _0x5cd3e7=this[_0x4dac('0x5e')][_0x4dac('0x64')](_0x1b22c2);_0x5cd3e7||_0x512fb5?_0x5cd3e7&&_0x512fb5&&this[_0x4dac('0x12')](_0x1b22c2):this[_0x4dac('0x5f')](_0x1b22c2);}this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')]('EditorAnnotations')[_0x4dac('0x5a')](),this[_0x4dac('0x5b')](),this[_0x4dac('0x0')][_0x4dac('0x5c')]();},0xa),this['_handleControllerBuffer'][_0x4dac('0x49')](_0x470d0e,_0x449b80);}[_0x4dac('0x37')](){const _0x457a13=this[_0x4dac('0x19')],_0x4d660f=_0x457a13[_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x4b')),_0x2d00aa=_0x457a13[_0x4dac('0x27')][_0x4dac('0x15')]('Annotations'),_0x14c244=_0x457a13[_0x4dac('0x27')]['get'](_0x4dac('0x21')),_0x5ae5ec=_0x457a13['plugins'][_0x4dac('0x15')]('CommentsRepository');_0x457a13['ui']['componentFactory']['add'](_0x4dac('0x2c'),_0x274d81=>this['_createUIButton'](_0x274d81)),_0x14c244['addSourceCollector'](()=>{const _0x24cf90=[];for(const [_0x8ae4de,_0x290c02]of Array['from'](this[_0x4dac('0x5e')])){const _0x13df2c=_0x8ae4de[_0x4dac('0x34')](),_0x4fb67e=[];for(const _0x516c18 of _0x13df2c){if(!_0x516c18['isInContent'])continue;if(_0x516c18[_0x4dac('0x6')]){_0x4fb67e[_0x4dac('0x1f')](..._0x516c18[_0x4dac('0x30')]());continue;}const _0x389572=_0x516c18[_0x4dac('0x58')]();if(_0x4fb67e[_0x4dac('0x50')]>0x0){const _0x544815=_0x4fb67e[0x0]['getJoined'](_0x389572);if(_0x544815){_0x4fb67e[0x0]=_0x544815;continue;}}_0x4fb67e[_0x4dac('0x1f')](_0x389572);}_0x24cf90[_0x4dac('0x1f')]([_0x290c02[_0x4dac('0x16')],_0x4fb67e]);}return _0x24cf90;}),this[_0x4dac('0x28')](_0x4d660f,_0x4dac('0x14'),(_0x30f473,_0x5c38b8)=>{this[_0x4dac('0x28')](_0x5c38b8,_0x4dac('0x47'),(_0x4c7b53,_0x546a3f,_0x476f70,_0x2eea5b)=>{_0x5c38b8['isInContent']&&(null==_0x476f70?(this['_updateController'](_0x2eea5b['head']),this[_0x4dac('0x44')](_0x5c38b8,!0x1)):(this['_updateController'](_0x476f70[_0x4dac('0x2e')]),this['_handleSuggestionControllerDelayed'](_0x5c38b8,!0x0)));}),null===_0x5c38b8[_0x4dac('0x1')]?this[_0x4dac('0x44')](_0x5c38b8,!0x1):this[_0x4dac('0x3d')](_0x5c38b8['head']);}),this['listenTo'](_0x4d660f,_0x4dac('0xa'),(_0x168d6c,_0x5961a2,_0x3b0267)=>{this[_0x4dac('0x3b')](_0x5961a2,'change:previous'),this[_0x4dac('0x0')][_0x4dac('0x31')](_0x5961a2);const _0x2092c1=_0x3b0267?_0x3b0267[_0x4dac('0x2e')]:_0x5961a2,_0x502b44=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x2092c1);null!==_0x3b0267&&this[_0x4dac('0x3d')](_0x2092c1),null===_0x3b0267&&_0x502b44&&this[_0x4dac('0x12')](_0x5961a2);}),this[_0x4dac('0x28')](_0x4d660f,_0x4dac('0x65'),(_0x3f2bd6,_0x8d6b03)=>{this[_0x4dac('0x3d')](_0x8d6b03);}),this[_0x4dac('0x28')](_0x2d00aa,_0x4dac('0xe'),()=>{this[_0x4dac('0x5b')]();}),this[_0x4dac('0x28')](_0x5ae5ec,_0x4dac('0x8'),(_0x1eda2f,{threadId:_0x11abd4,isFromAdapter:_0x3be6c4})=>{if(_0x3be6c4||!_0x4d660f[_0x4dac('0x3a')](_0x11abd4))return;const _0x4d6124=_0x4d660f[_0x4dac('0x10')](_0x11abd4);this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x4d6124)['view'][_0x4dac('0x60')]();},{'priority':_0x4dac('0x66')});}[_0x4dac('0x5b')](){const _0xe9948f=this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x25')),_0x4f6b5b=this['editor']['plugins']['get'](_0x4dac('0x4b')),_0x53c08e=Array[_0x4dac('0x1a')](_0xe9948f[_0x4dac('0xb')],_0x3b3ff8=>_0x3b3ff8[_0x4dac('0x20')])[_0x4dac('0x13')](_0x10d88a=>this[_0x4dac('0x57')][_0x4dac('0x64')](_0x10d88a)),_0x16b26a=[];for(const _0x12763a of _0x53c08e){const _0x481f07=this[_0x4dac('0x57')][_0x4dac('0x15')](_0x12763a)[_0x4dac('0x43')][_0x4dac('0x34')]();_0x16b26a['push'](..._0x481f07['reduce']((_0x26d68f,_0x315547)=>[..._0x26d68f,..._0x315547[_0x4dac('0x5d')]()],[]));}_0x4f6b5b[_0x4dac('0x1e')]=_0x16b26a;}['_createUIButton'](_0x4ac718){const _0x3a7b2e=_0x3d99f8(_0x4ac718,_0x498fe2),_0x439812=this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x4dac('0x2c')),_0x4bfed2=_0x2a4b97(_0x4ac718,'Track\x20changes');_0x3a7b2e[_0x4dac('0x4a')][_0x4dac('0x49')]({'tooltip':_0x4bfed2,'label':_0x4bfed2,'icon':_0x352211}),_0x3a7b2e[_0x4dac('0x4a')][_0x4dac('0x2f')](_0x4dac('0x46'))['to'](_0x439812,_0x4dac('0x3f')),_0x3a7b2e[_0x4dac('0x4a')]['on'](_0x4dac('0x3c'),()=>{_0x439812[_0x4dac('0x3c')](),this['editor']['editing']['view']['focus']();});const _0x2979fa=new _0x4a6c16(),_0x419e50=[{'type':_0x4dac('0x26'),'model':{'withText':!0x0,'label':_0x4bfed2,'commandName':_0x4dac('0x2c')}},{'type':_0x4dac('0x56')},{'type':_0x4dac('0x67'),'model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0x55')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0x42')),'commandName':_0x4dac('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,'Discard\x20all\x20suggestions'),'commandName':_0x4dac('0x2d')}},{'type':_0x4dac('0x67'),'model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0xc')),'commandName':_0x4dac('0x29')}}];for(const _0x193af7 of _0x419e50){let _0x3c8e97={'type':_0x4dac('0x56')};if(_0x193af7[_0x4dac('0x43')]){const _0x7c4e0c=new _0xe92ad8(_0x193af7[_0x4dac('0x43')]),_0x1e1183=this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x7c4e0c[_0x4dac('0x62')]);_0x7c4e0c[_0x4dac('0x2f')](_0x4dac('0x46'),_0x4dac('0x24'))['to'](_0x1e1183,_0x4dac('0x3f'),_0x4dac('0x24')),_0x3c8e97={'type':_0x193af7[_0x4dac('0x35')],'model':_0x7c4e0c};}_0x2979fa[_0x4dac('0x32')](_0x3c8e97);}_0x4c9974(_0x3a7b2e,_0x2979fa);const _0x2a1e3c=_0x419e50[_0x4dac('0x13')](_0x4e8d75=>null!=_0x4e8d75[_0x4dac('0x43')])[_0x4dac('0x3')](_0x144ac3=>this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x144ac3['model'][_0x4dac('0x62')])),_0x3f9e00=_0x3a7b2e['buttonView'];return _0x3f9e00[_0x4dac('0x1d')][_0x4dac('0x61')](_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x69')][_0x4dac('0x61')](_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x1d')][_0x4dac('0x2f')]('isEnabled')['to'](_0x439812,_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x69')][_0x4dac('0x2f')](_0x4dac('0x24'))[_0x4dac('0x4f')](_0x2a1e3c,'isEnabled',(..._0x535416)=>_0x535416[_0x4dac('0x4c')](_0x476498=>_0x476498)),_0x3a7b2e['on'](_0x4dac('0x3c'),_0x18f6b8=>{this['editor'][_0x4dac('0x3c')](_0x18f6b8[_0x4dac('0x1b')][_0x4dac('0x62')]),this[_0x4dac('0x19')][_0x4dac('0x2a')]['view'][_0x4dac('0x60')]();}),_0x3a7b2e;}[_0x4dac('0x5f')](_0x242254){const _0x9bd6d7=this[_0x4dac('0x19')],_0x42478c=_0x9bd6d7[_0x4dac('0x41')],_0x5003e5=_0x9bd6d7['plugins'][_0x4dac('0x15')](_0x4dac('0x25')),_0xb50545=_0x9bd6d7['plugins']['get'](_0x4dac('0x38')),_0x3ca772=_0x9bd6d7['plugins'][_0x4dac('0x15')](_0x4dac('0x21')),_0xa29788=_0x9bd6d7[_0x4dac('0x27')][_0x4dac('0x15')](_0x44677c)['me'],_0x3d9630=_0x42478c['get']('trackChanges')[_0x4dac('0x3e')],{CommentsListView:_0x1022a9,CommentThreadInputView:_0xc42279}=_0x9bd6d7[_0x4dac('0x27')]['get'](_0x4dac('0x63'));let _0x575d3b,_0x1b8f89;this[_0x4dac('0x2b')][_0x4dac('0x64')](_0x242254['id'])?(_0x1b8f89=this[_0x4dac('0x2b')]['get'](_0x242254['id']),_0x575d3b=_0x1b8f89['mainView']):(_0x575d3b=new _0x3d9630(_0x9bd6d7[_0x4dac('0x40')],_0x242254,_0xa29788,{'disableComments':this[_0x4dac('0x1c')],'editorConfig':_0x42478c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x42478c['get'](_0x4dac('0x51')),'maxThreadTotalWeight':_0x42478c[_0x4dac('0x15')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42478c[_0x4dac('0x15')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x51cf53(_0x42478c[_0x4dac('0x15')](_0x4dac('0x40'))),'CommentView':_0x42478c[_0x4dac('0x15')]('comments')[_0x4dac('0x52')],'CommentsListView':_0x1022a9,'CommentThreadInputView':_0xc42279}),_0x575d3b[_0x4dac('0x23')]['on'](_0x4dac('0x3c'),()=>{_0x9bd6d7['editing'][_0x4dac('0x16')][_0x4dac('0x60')]();}),_0x575d3b[_0x4dac('0x68')]['on'](_0x4dac('0x3c'),()=>{_0x9bd6d7[_0x4dac('0x2a')][_0x4dac('0x16')]['focus']();}),_0x1b8f89=_0x5003e5[_0x4dac('0x17')](this['editor'][_0x4dac('0x40')],_0x575d3b),_0x1b8f89[_0x4dac('0x2f')]('isDirty')['to'](_0x575d3b,_0x4dac('0x7')),_0x1b8f89[_0x4dac('0x2f')](_0x4dac('0x50'))['to'](_0x575d3b),_0x1b8f89[_0x4dac('0x2f')](_0x4dac('0x35'))['to'](_0x575d3b,_0x4dac('0x35'),_0x3378b3=>'suggestion-'+_0x3378b3),this[_0x4dac('0x2b')]['set'](_0x242254['id'],_0x1b8f89));const _0x248e61=_0xb50545[_0x4dac('0x4d')](_0x242254[_0x4dac('0x45')],_0x575d3b),_0x576099=new _0x11e26f(_0x9bd6d7,_0x242254,_0x575d3b,_0x248e61),_0x3bff30=_0x242254['getAllAdjacentSuggestions']()[_0x4dac('0x13')](_0x5eff01=>_0x5eff01[_0x4dac('0x6b')]);_0x575d3b[_0x4dac('0x9')]=_0x9bd6d7[_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x4b'))[_0x4dac('0x53')][_0x4dac('0x18')](_0x3bff30),this[_0x4dac('0x5e')][_0x4dac('0x49')](_0x242254,_0x576099),this[_0x4dac('0x57')][_0x4dac('0x49')](_0x575d3b,_0x576099);const _0x24548f=_0x5003e5['createAnnotation']({'view':_0x1b8f89,'target':()=>{const _0x1f2d9d=[],_0x488d87=_0x242254[_0x4dac('0x34')]()[_0x4dac('0x13')](_0x479327=>_0x479327[_0x4dac('0x6b')]);for(const _0x2d5443 of _0x488d87)_0x1f2d9d['push'](..._0x2d5443['getMarkers']());return _0x51d2ec(_0x9bd6d7[_0x4dac('0x2a')],_0x1f2d9d);},'type':()=>_0x4dac('0x39')+_0x576099[_0x4dac('0x16')][_0x4dac('0x35')]});_0xb50545[_0x4dac('0x6a')](_0x575d3b,_0x24548f),_0x5003e5['add'](_0x24548f),_0x3ca772[_0x4dac('0x4e')](_0x24548f);}['_destroyController'](_0x1a9993){const _0x1b4d43=this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x38')),_0x1bcd38=this[_0x4dac('0x19')][_0x4dac('0x27')]['get'](_0x4dac('0x25')),_0x32d85b=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x1a9993),_0x402099=_0x32d85b[_0x4dac('0x16')],_0x21e9e4=_0x1bcd38['getByInnerView'](_0x402099);_0x1b4d43[_0x4dac('0x5')](_0x402099),_0x21e9e4&&_0x1bcd38['remove'](_0x21e9e4),this[_0x4dac('0x5e')][_0x4dac('0x31')](_0x1a9993),this[_0x4dac('0x57')][_0x4dac('0x31')](_0x402099),_0x32d85b[_0x4dac('0xd')]();}[_0x4dac('0x3d')](_0x5ccaed){if(!_0x5ccaed['isInContent']||!this[_0x4dac('0x5e')][_0x4dac('0x64')](_0x5ccaed))return;const _0x4da20c=this[_0x4dac('0x19')]['plugins'][_0x4dac('0x15')]('TrackChangesEditing'),_0x3c88c1=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x5ccaed),_0x44d4cc=_0x5ccaed[_0x4dac('0x34')]();_0x3c88c1[_0x4dac('0x16')][_0x4dac('0x9')]=_0x4da20c[_0x4dac('0x53')][_0x4dac('0x18')](_0x44d4cc);}[_0x4dac('0xd')](){for(const _0x13ce43 of this[_0x4dac('0x5e')][_0x4dac('0x4')]())this['_destroyController'](_0x13ce43);for(const _0x1d95fe of this[_0x4dac('0x2b')][_0x4dac('0x2')]())_0x1d95fe[_0x4dac('0x33')]['destroy']();super[_0x4dac('0xd')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb33f=['PENDING_ACTION_SUGGESTION','change:isDirty','canAccept','listenTo','unbind','isDirty','commands','execute','_pendingAction','view','_setPendingAction','bind','PendingActions','getRanges','canDiscard','_removePendingAction','add','isEnabled','stopListening','plugins','commentThreadController','canEditAt','discardSuggestion','_acceptCommand','get','model','_editor','_discardCommand','acceptSuggestion'];(function(_0x5d8e66,_0xb33f48){const _0x7d08e0=function(_0x37ade2){while(--_0x37ade2){_0x5d8e66['push'](_0x5d8e66['shift']());}};_0x7d08e0(++_0xb33f48);}(_0xb33f,0x1ed));const _0x7d08=function(_0x5d8e66,_0xb33f48){_0x5d8e66=_0x5d8e66-0x0;let _0x7d08e0=_0xb33f[_0x5d8e66];return _0x7d08e0;};import{ObservableMixin as _0x1a4416}from'ckeditor5/src/utils';import{getTranslation as _0x2fd411}from'../utils/common-translations';export default class Gt extends _0x1a4416(){constructor(_0x407b82,_0x625e18,_0x152622,_0x46e08c){super(),this['model']=_0x625e18,this['view']=_0x152622,this[_0x7d08('0x14')]=_0x46e08c,this['_editor']=_0x407b82,this[_0x7d08('0x17')]=_0x407b82[_0x7d08('0x6')][_0x7d08('0x18')](_0x7d08('0x1c')),this['_discardCommand']=_0x407b82['commands'][_0x7d08('0x18')]('discardSuggestion'),this[_0x7d08('0x9')][_0x7d08('0xb')](_0x7d08('0x11'))['to'](this[_0x7d08('0x17')],this[_0x7d08('0x1b')],(_0x1bf9ee,_0x29f244)=>_0x1bf9ee||_0x29f244),this[_0x7d08('0x9')][_0x7d08('0xb')]('canAccept')['to'](this[_0x7d08('0x17')],_0x7d08('0x11'),_0x217e43=>_0x217e43&&this['_editor']['model'][_0x7d08('0x15')](_0x625e18[_0x7d08('0xd')]())),this[_0x7d08('0x9')][_0x7d08('0xb')]('canDiscard')['to'](this[_0x7d08('0x1b')],'isEnabled',_0x48cc4c=>_0x48cc4c&&this['_editor']['model'][_0x7d08('0x15')](_0x625e18['getRanges']())),this[_0x7d08('0x8')]=null,_0x152622[_0x7d08('0x5')]&&this[_0x7d08('0xa')](),this[_0x7d08('0x3')](_0x152622,_0x7d08('0x1c'),()=>this[_0x7d08('0x1c')]()),this['listenTo'](_0x152622,_0x7d08('0x16'),()=>this['discardSuggestion']()),this[_0x7d08('0x3')](_0x152622,_0x7d08('0x1'),()=>{_0x152622[_0x7d08('0x5')]?this['_setPendingAction']():this['_removePendingAction']();});}[_0x7d08('0x1c')](){this[_0x7d08('0x17')][_0x7d08('0x7')](this[_0x7d08('0x19')]['id']);}[_0x7d08('0x16')](){this[_0x7d08('0x1b')][_0x7d08('0x7')](this[_0x7d08('0x19')]['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this[_0x7d08('0x9')]['unbind'](_0x7d08('0x2')),this[_0x7d08('0x9')][_0x7d08('0x4')](_0x7d08('0xe')),this[_0x7d08('0x12')](),this[_0x7d08('0x14')]['destroy'](),this[_0x7d08('0x8')]&&this[_0x7d08('0xf')]();}[_0x7d08('0xa')](){const _0x41fda4=_0x2fd411(this[_0x7d08('0x1a')]['locale'],_0x7d08('0x0'));this[_0x7d08('0x8')]=this[_0x7d08('0x1a')][_0x7d08('0x13')][_0x7d08('0x18')](_0x7d08('0xc'))[_0x7d08('0x10')](_0x41fda4);}[_0x7d08('0xf')](){null!==this['_pendingAction']&&this[_0x7d08('0x1a')]['plugins'][_0x7d08('0x18')]('PendingActions')['remove'](this[_0x7d08('0x8')]),this[_0x7d08('0x8')]=null;}}
23
+ const _0x3450=['listenTo','locale','add','_editor','remove','getRanges','isDirty','_discardCommand','view','_acceptCommand','_pendingAction','unbind','_removePendingAction','PendingActions','canEditAt','canAccept','destroy','change:isDirty','discardSuggestion','commands','acceptSuggestion','isEnabled','plugins','_setPendingAction','canDiscard','commentThreadController','get','PENDING_ACTION_SUGGESTION','model','bind'];(function(_0x4294b3,_0x3450f6){const _0x221540=function(_0x255fde){while(--_0x255fde){_0x4294b3['push'](_0x4294b3['shift']());}};_0x221540(++_0x3450f6);}(_0x3450,0x17b));const _0x2215=function(_0x4294b3,_0x3450f6){_0x4294b3=_0x4294b3-0x0;let _0x221540=_0x3450[_0x4294b3];return _0x221540;};import{ObservableMixin as _0x3269b0}from'ckeditor5/src/utils';import{getTranslation as _0x414d5a}from'../utils/common-translations';export default class Gt extends _0x3269b0(){constructor(_0x33d3b5,_0x157ee2,_0x284810,_0x39c1df){super(),this[_0x2215('0x9')]=_0x157ee2,this[_0x2215('0x13')]=_0x284810,this[_0x2215('0x6')]=_0x39c1df,this[_0x2215('0xe')]=_0x33d3b5,this[_0x2215('0x14')]=_0x33d3b5[_0x2215('0x0')][_0x2215('0x7')](_0x2215('0x1')),this[_0x2215('0x12')]=_0x33d3b5[_0x2215('0x0')][_0x2215('0x7')](_0x2215('0x1d')),this[_0x2215('0x13')]['bind']('isEnabled')['to'](this[_0x2215('0x14')],this[_0x2215('0x12')],(_0x57d442,_0x5c2623)=>_0x57d442||_0x5c2623),this[_0x2215('0x13')][_0x2215('0xa')]('canAccept')['to'](this[_0x2215('0x14')],_0x2215('0x2'),_0x5a2b43=>_0x5a2b43&&this[_0x2215('0xe')]['model'][_0x2215('0x19')](_0x157ee2[_0x2215('0x10')]())),this[_0x2215('0x13')][_0x2215('0xa')](_0x2215('0x5'))['to'](this[_0x2215('0x12')],_0x2215('0x2'),_0x228880=>_0x228880&&this[_0x2215('0xe')][_0x2215('0x9')][_0x2215('0x19')](_0x157ee2[_0x2215('0x10')]())),this['_pendingAction']=null,_0x284810[_0x2215('0x11')]&&this['_setPendingAction'](),this[_0x2215('0xb')](_0x284810,'acceptSuggestion',()=>this[_0x2215('0x1')]()),this[_0x2215('0xb')](_0x284810,_0x2215('0x1d'),()=>this[_0x2215('0x1d')]()),this[_0x2215('0xb')](_0x284810,_0x2215('0x1c'),()=>{_0x284810[_0x2215('0x11')]?this[_0x2215('0x4')]():this[_0x2215('0x17')]();});}[_0x2215('0x1')](){this[_0x2215('0x14')]['execute'](this[_0x2215('0x9')]['id']);}['discardSuggestion'](){this[_0x2215('0x12')]['execute'](this[_0x2215('0x9')]['id']);}[_0x2215('0x1b')](){this['view'][_0x2215('0x16')]('isEnabled'),this[_0x2215('0x13')]['unbind'](_0x2215('0x1a')),this[_0x2215('0x13')][_0x2215('0x16')](_0x2215('0x5')),this['stopListening'](),this[_0x2215('0x6')][_0x2215('0x1b')](),this[_0x2215('0x15')]&&this[_0x2215('0x17')]();}[_0x2215('0x4')](){const _0x2a3691=_0x414d5a(this[_0x2215('0xe')][_0x2215('0xc')],_0x2215('0x8'));this[_0x2215('0x15')]=this['_editor'][_0x2215('0x3')][_0x2215('0x7')](_0x2215('0x18'))[_0x2215('0xd')](_0x2a3691);}[_0x2215('0x17')](){null!==this[_0x2215('0x15')]&&this[_0x2215('0xe')]['plugins'][_0x2215('0x7')](_0x2215('0x18'))[_0x2215('0xf')](this[_0x2215('0x15')]),this['_pendingAction']=null;}}