@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231019.0 → 0.0.0-nightly-20231021.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 _0x6e61=['_saved','applyOperation','track-changes-suggestion-not-found','value','discard','_joinWithAdjacentSuggestions','forward','_refreshSuggestionsChain','document','remove','getNearestSelectionRange','name','trackChanges','splitPosition','_commentsRepository','suggestion-type','config','addMarker:suggestion:formatBlock','consume','formatInline:','getChangedMarkers','from','commands','isIntersectingWithRange','markers','sort','removeMarker','map','marker-count','selection','clear','ready','_editor','never','toViewElement','parent','_getExternalAuthor','markerReady','containsPosition','differ','adapter','suggestionLoaded','for','formatInline','data','acceptSelectedSuggestions','addMarker','isObject','_addThreadToSuggestion','formatGroupId','isSelectable','discardSuggestion','isRemovable','get','formatInline:discard','isNextTo','mapper','getUser','_updateSuggestionData','isCollapsed','_onDiscard','isBefore','_customCallbacks','markInlineFormat','split','suggestionUnloaded','isExternal','addComment','set','pluginName','_createSuggestion','isMultiRange','fetchCommentThread','after','formatInline:join','_breakSuggestionMarker','commentThread','enableReadOnlyMode','hasComments','_mergeNestedSuggestions','multi','getRanges','markerToHighlight','discardAllSuggestions','dataReady','lowest','createdAt','_suggestionState','buildSuggestion','unbindElementFromMarkerName','consumable','removeComment','isAfter','removed','insertion:','change','includes','dataToMarker','getChanges','containsRange','error-saving-suggestion-data-suggestion-discarded','addSuggestionData','containerElement','isUndo','filter','track-changes-suggestion-data-mismatch','change:data','ck-suggestion-marker','_cutOutSuggestionMarker','isAtStart','markerToData','getDifference','_defaultCallbacks','_checkSuggestionCorrectness','deletion:','acceptSuggestion','dataDowncast','deletion:join','getAllAdjacentSuggestions','createElement','insertion:join','createRangeIn','define','low','_suggestionFactory','editingDowncast','element','clone','containsRangeInObject','insertion','plugins','addRange','author','isLimit','rethrowUnexpectedError','isInsideObject','length','addMarkerName','insertContent','_enabledCommands','insertion:discard','_descriptionFactory','suggestion:','deletion','enqueueChange','getFirstRange','add','discardSelectedSuggestions','elementStart','newRange','change:activeMarkers','track-changes-adapter-already-set','backward','range','ck-suggestion-marker-formatBlock','updateSuggestion','type','join','values','rejected','deleteContent','formatBlock:accept','tablePasteChainId','getMultiRangeId','ck-suggestion-marker--active','$graveyard','getShiftedBy','default','_handleNewSuggestionMarker','getSuggestionCallback','setTo','has','formatBlock:','ck-suggestion-marker-','_trackFormatChanges','detach','some','showSuggestionHighlights','highest','deletion:accept','root','formatBlock','TrackChangesEditing','_joinSuggestions','_getAuthorFromId','editor','isTouching','group','_suggestions','unbind','_rangeIsInLocalUserInsertion','move','data-suggestion','$marker','markMultiRangeInsertion','removeClass','addCommentThread','open','getLastMatchingPosition','howMany','insertion:accept','isOwn','getIntersection','@external','Users','change:_saved','markBlockFormat','track-changes-user-not-found','moveTargetPosition','rootName','activeMarkers','item','registerPostFixer','external:','skipNestingCheck','getFirstMarker','markDeletion','registerCustomCallback','isEqual','getSuggestions','push','addClass','$textProxy','setSelection','createPositionBefore','_removeSuggestion','getAncestors','trackChangesCommand','oldRange','substr','catch','isInContent','writer','CommentsRepository','_splitMarkerName','getSuggestion','markerNameToElements','insert','upcast','isAtEnd','collaboration.channelId','assign','splice','isBlock','formatBlock:join','markMultiRangeDeletion','start','trackChanges.mergeNestedSuggestions','_getSuggestionData','high','originalSuggestionId','previous','_isForcedDefaultExecutionBlock','markerName','stop','accept','_setSuggestionData','_findSuggestions','attributes','stopListening','subType','elementToElement','markInsertion','position','removeMarkers','addHighlight','_setSuggestionRange','_addSuggestionMarker','locale','model','bindElementToMarker','targetPosition','createSelection','size','schema','next','conversion','end','containsItem','fire','removeAttribute','forceDefaultExecution','creator','nodeBefore','PendingActions','deletion:chain','execute','notReady','updateMarker','deletion:discard','trackChanges.trackFormatChanges','options','batch','nodeAfter','suggestionChanged','hasCommentThread','_adapter','_isDataLoaded','listenTo','_model','createRange','enableCommand','multipleBlocks','commandName','PENDING_ACTION_SUGGESTION','hasSuggestion','markMultiRangeBlockFormat','createPositionAt','addMarker:suggestion','always','getAttribute','getRange','getCustomProperty','then','suggestion','delete','every','authoredAt','chain'];(function(_0x49947a,_0x6e61da){const _0x5b1762=function(_0x4a4410){while(--_0x4a4410){_0x49947a['push'](_0x49947a['shift']());}};_0x5b1762(++_0x6e61da);}(_0x6e61,0x199));const _0x5b17=function(_0x49947a,_0x6e61da){_0x49947a=_0x49947a-0x0;let _0x5b1762=_0x6e61[_0x49947a];return _0x5b1762;};import{Plugin as _0x7b1b35,PendingActions as _0x501dde}from'ckeditor5/src/core';import{LiveRange as _0x15a817}from'ckeditor5/src/engine';import{CKEditorError as _0xa64f77,uid as _0x56fed8,priorities as _0x56c715,logWarning as _0xfaa372}from'ckeditor5/src/utils';import{toWidget as _0x39994b}from'ckeditor5/src/widget';import{Users as _0x52744d,hashObject as _0x15e5aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x5d7823 from'./commands/trackchangescommand';import _0x334995 from'./commands/acceptsuggestioncommand';import _0xd52769 from'./commands/discardsuggestioncommand';import _0x3616b1 from'./commands/executeonallsuggestionscommand';import _0x55e475 from'./commands/executeonselectedsuggestionscommand';import _0x45f923 from'./suggestion';import _0x478975 from'./suggestiondescriptionfactory';import _0x4d5072 from'./integrations/aiassistant';import _0x60c364 from'./integrations/alignment';import _0x3e9c7b from'./integrations/basicstyles';import _0x596393 from'./integrations/blockquote';import _0x148b1e from'./integrations/ckbox';import _0x1908aa from'./integrations/codeblock';import _0x424ac6 from'./integrations/comments';import _0x3e9352 from'./integrations/deletecommand';import _0x14333f from'./integrations/documentlist';import _0x5b1dfb from'./integrations/entercommand';import _0x1fec43 from'./integrations/findandreplace';import _0x13d5e8 from'./integrations/font';import _0x1480ef from'./integrations/formatpainter';import _0x5e5094 from'./integrations/heading';import _0x1ffa39 from'./integrations/highlight';import _0x4bc78f from'./integrations/horizontalline';import _0x1f2deb from'./integrations/htmlembed';import _0x34990a from'./integrations/image';import _0x3ab1aa from'./integrations/imagereplace';import _0xdcfa4f from'./integrations/importword';import _0x1a1c17 from'./integrations/indent';import _0x512c59 from'./integrations/inputcommand';import _0x14c66b from'./integrations/link';import _0x2b746a from'./integrations/list';import _0x3d9274 from'./integrations/listproperties';import _0x51d867 from'./integrations/mediaembed';import _0x44b906 from'./integrations/mention';import _0x348b7e from'./integrations/pagebreak';import _0x340f7d from'./integrations/paragraph';import _0x33d288 from'./integrations/removeformat';import _0x1145c7 from'./integrations/restrictededitingmode';import _0x30a44a from'./integrations/shiftentercommand';import _0x543054 from'./integrations/standardeditingmode';import _0x2bfc8a from'./integrations/style';import _0x41a7ff from'./integrations/table';import _0x2bf489 from'./integrations/tablemergesplit';import _0x77440a from'./integrations/tableheadings';import _0x391e4d from'./integrations/tableclipboard';import _0xc40d1c from'./integrations/tablecolumnresize';import _0x4c1c3b from'./integrations/template';import _0x191af6 from'./integrations/tableofcontents';import _0xc9ac76 from'./integrations/title';import _0x178297 from'./integrations/undo';import{getTranslation as _0x836558}from'./utils/common-translations';import _0x20b67a from'./integrations/tablecaption';import _0x1449db from'./integrations/documentlistproperties';import _0x59797d from'./integrations/tableproperties';import{isEqual as _0x326433}from'lodash-es';export default class p extends _0x7b1b35{static get['requires'](){return[_0x5b17('0x8f'),_0x52744d,_0x501dde,_0x4d5072,_0x60c364,_0x3e9c7b,_0x596393,_0x148b1e,_0x1908aa,_0x424ac6,_0x3e9352,_0x14333f,_0x1449db,_0x5b1dfb,_0x1fec43,_0x13d5e8,_0x1480ef,_0x5e5094,_0x1ffa39,_0x4bc78f,_0x1f2deb,_0x34990a,_0x3ab1aa,_0xdcfa4f,_0x1a1c17,_0x512c59,_0x14c66b,_0x2b746a,_0x3d9274,_0x51d867,_0x44b906,_0x348b7e,_0x340f7d,_0x33d288,_0x1145c7,_0x30a44a,_0x543054,_0x2bfc8a,_0x41a7ff,_0x2bf489,_0x77440a,_0x20b67a,_0x391e4d,_0xc40d1c,_0x191af6,_0x59797d,_0x4c1c3b,_0xc9ac76,_0x178297];}static get[_0x5b17('0x12a')](){return _0x5b17('0x5c');}constructor(_0x351749){function _0x404d74(_0x5c428b){return _0x5c428b[_0x5b17('0x100')](_0x5194b1=>String['fromCharCode'](_0x5194b1))['join']('');}super(_0x351749),this[_0x5b17('0x129')]('activeMarkers',[]),this['on'](_0x5b17('0x3c'),(_0x28da88,_0x251135,_0x36c08c,_0x46ca08)=>{this[_0x5b17('0xd1')][_0x5b17('0x5')](()=>{for(const _0x207c7f of[..._0x46ca08,..._0x36c08c])this[_0x5b17('0xd1')][_0x5b17('0xfd')][_0x5b17('0x51')](_0x207c7f)&&_0x351749['editing']['reconvertMarker'](_0x207c7f);});}),this[_0x5b17('0x33')]=new _0x478975(this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0xb8')],this[_0x5b17('0x5f')][_0x5b17('0xb2')]),this['_adapter']=null,this['_suggestionFactory']=new Bt(this[_0x5b17('0x5f')]),this[_0x5b17('0x62')]=new Map(),this[_0x5b17('0xf3')]=_0x351749[_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x8f')),this['_enabledCommands']=new Set(),this['_model']=this[_0x5b17('0x5f')]['model'],this[_0x5b17('0x13c')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x351749[_0x5b17('0xf5')]['define'](_0x5b17('0xc8'),_0x5b17('0x4d')),this[_0x5b17('0x54')]=_0x351749[_0x5b17('0xf5')]['get'](_0x5b17('0xc8')),_0x351749[_0x5b17('0xf5')][_0x5b17('0x20')](_0x5b17('0x9d'),!0x0),this[_0x5b17('0x134')]=_0x351749[_0x5b17('0xf5')][_0x5b17('0x11a')]('trackChanges.mergeNestedSuggestions'),this[_0x5b17('0x89')]=new _0x5d7823(_0x351749,this[_0x5b17('0x31')]),this[_0x404d74([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x404d74([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x38]);}['init'](){const _0x404ece=this['editor'];_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x23'))[_0x5b17('0x137')]({'model':_0x5b17('0xe0'),'view':_0x30541f=>{const {id:_0x7d64,type:_0x562528}=this[_0x5b17('0x90')](_0x30541f[_0x5b17('0xa3')]),_0x558239=['ck-suggestion-marker',_0x5b17('0x53')+_0x562528];let _0x5550a1=0xbb8;return this[_0x5b17('0x78')][_0x5b17('0x6')](_0x30541f[_0x5b17('0xa3')])&&(_0x558239[_0x5b17('0x82')](_0x5b17('0x4a')),_0x5550a1=0xbc2),_0x5b17('0x35')==_0x562528&&(_0x5550a1+=0x5),{'classes':_0x558239,'attributes':{'data-suggestion':_0x7d64},'priority':_0x5550a1};}}),_0x404ece[_0x5b17('0xba')]['for']('dataDowncast')['add'](_0x583efd=>{_0x583efd['on'](_0x5b17('0xda'),(_0x3d8a88,_0x1a3605,_0x48fdea)=>{if(!_0x48fdea[_0x5b17('0xc9')][_0x5b17('0x57')])return;const _0x502c80=_0x1a3605[_0x5b17('0x79')];if(!_0x502c80)return;const _0x92bfc4=_0x48fdea[_0x5b17('0x11d')][_0x5b17('0x107')](_0x502c80);_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')]['isObject'](_0x502c80)&&_0x92bfc4&&!_0x92bfc4['getCustomProperty']('widget')&&_0x92bfc4['is'](_0x5b17('0xc'))&&_0x39994b(_0x92bfc4,_0x48fdea['writer']);},{'priority':_0x5b17('0x9f')});}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x1a'))[_0x5b17('0x137')]({'model':_0x5b17('0xe0'),'view':(_0x1e0c1a,_0x25f82b)=>{if(!_0x25f82b[_0x5b17('0xc9')]['showSuggestionHighlights'])return null;const {type:_0x427d58}=this[_0x5b17('0x90')](_0x1e0c1a[_0x5b17('0xa3')]);return{'classes':[_0x5b17('0x11'),_0x5b17('0x53')+_0x427d58],'priority':0xbb8};}});const _0x4aaa93=({showActiveMarkers:_0x4c6911=!0x0}={})=>(_0x43caac,_0x2f487a,_0x5815e2)=>{if(!_0x2f487a[_0x5b17('0x79')])return;if(_0x2f487a[_0x5b17('0x79')]['is'](_0x5b17('0x102')))return void _0x5815e2[_0x5b17('0x0')]['consume'](_0x2f487a[_0x5b17('0x79')],_0x43caac[_0x5b17('0xf0')]);const _0x56e0a1=_0x5815e2[_0x5b17('0x11d')][_0x5b17('0x107')](_0x2f487a[_0x5b17('0x79')]);if(!(_0x2f487a['item']['is'](_0x5b17('0x24'))&&_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')][_0x5b17('0x99')](_0x2f487a[_0x5b17('0x79')])&&!_0x56e0a1[_0x5b17('0xde')]('addHighlight')))return;const {id:_0x363e48}=this[_0x5b17('0x90')](_0x2f487a[_0x5b17('0xa3')]);_0x5815e2['writer'][_0x5b17('0x83')]([_0x5b17('0x11'),_0x5b17('0x40')],_0x56e0a1),_0x5815e2[_0x5b17('0x8e')]['setAttribute']('data-suggestion',_0x363e48,_0x56e0a1),_0x5815e2[_0x5b17('0x11d')][_0x5b17('0xb4')](_0x56e0a1,_0x2f487a[_0x5b17('0xa3')]),_0x4c6911&&(this[_0x5b17('0x78')][_0x5b17('0x6')](_0x2f487a[_0x5b17('0xa3')])?_0x5815e2[_0x5b17('0x8e')][_0x5b17('0x83')](_0x5b17('0x4a'),_0x56e0a1):_0x5815e2[_0x5b17('0x8e')][_0x5b17('0x69')](_0x5b17('0x4a'),_0x56e0a1));for(const _0x13b3e3 of _0x404ece[_0x5b17('0xb3')][_0x5b17('0x1f')](_0x2f487a[_0x5b17('0x79')])['getItems']())_0x5815e2[_0x5b17('0x0')][_0x5b17('0xf7')](_0x13b3e3,_0x43caac[_0x5b17('0xf0')]);_0x5815e2[_0x5b17('0x0')][_0x5b17('0xf7')](_0x2f487a[_0x5b17('0x79')],_0x43caac['name']);};_0x404ece['conversion'][_0x5b17('0x10f')](_0x5b17('0x1a'))[_0x5b17('0x38')](_0x16df40=>{_0x16df40['on']('addMarker:suggestion:formatBlock',(_0x4b8a8f,_0x4218f2,_0x77f55d)=>{_0x77f55d[_0x5b17('0xc9')]['showSuggestionHighlights']&&_0x4aaa93({'showActiveMarkers':!0x1})(_0x4b8a8f,_0x4218f2,_0x77f55d);},{'priority':_0x5b17('0x58')});}),_0x404ece['conversion']['for'](_0x5b17('0x1a'))[_0x5b17('0x14')]({'model':'suggestion','view':(_0x1e0b31,_0x10f53a)=>_0x10f53a[_0x5b17('0xc9')]['showSuggestionHighlights']?null:{'group':_0x5b17('0xe0'),'name':_0x1e0b31[_0x5b17('0x8b')](0xb)}}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x94'))[_0x5b17('0xab')]({'view':{'name':_0x5b17('0xe0'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c8099,{writer:_0x11508b})=>{let _0x30b901=_0x5b17('0x34')+_0x1c8099[_0x5b17('0xdc')](_0x5b17('0xf4'))+':'+_0x1c8099[_0x5b17('0xdc')]('id');return _0x1c8099['getAttribute']('marker-count')&&(_0x30b901+=':'+_0x1c8099[_0x5b17('0xdc')](_0x5b17('0x101'))),_0x11508b[_0x5b17('0x1d')](_0x5b17('0x67'),{'data-name':_0x30b901});}}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x94'))[_0x5b17('0x7')]({'view':_0x5b17('0xe0')}),_0x404ece['conversion'][_0x5b17('0x10f')](_0x5b17('0x23'))[_0x5b17('0x38')](_0x17c3a9=>{_0x17c3a9['on'](_0x5b17('0xf6'),_0x4aaa93(),{'priority':_0x5b17('0x9f')});}),_0x404ece[_0x5b17('0xba')][_0x5b17('0x10f')](_0x5b17('0x23'))[_0x5b17('0x38')](_0x295765=>{_0x295765['on']('removeMarker:suggestion:formatBlock',(_0x4280fa,_0x3b2c7f,_0x1cda85)=>{const _0x2264a2=_0x1cda85[_0x5b17('0x11d')][_0x5b17('0x92')](_0x3b2c7f[_0x5b17('0xa3')]);if(_0x2264a2)for(const _0x38b80 of _0x2264a2)_0x38b80[_0x5b17('0xde')](_0x5b17('0xaf'))||(_0x1cda85[_0x5b17('0x8e')][_0x5b17('0x69')]([_0x5b17('0x11'),_0x5b17('0x40'),_0x5b17('0x4a')],_0x38b80),_0x1cda85['writer'][_0x5b17('0xbe')](_0x5b17('0x66'),_0x38b80),_0x1cda85[_0x5b17('0x11d')][_0x5b17('0x13e')](_0x38b80,_0x3b2c7f[_0x5b17('0xa3')]));},{'priority':_0x5b17('0x9f')});}),_0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x7a')](_0x2db72b=>{let _0x216451=!0x1;const _0x12a691=Array['from'](_0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x10c')][_0x5b17('0xf9')]()),_0x4dc0eb=new Set();for(const {name:_0x5a5623,data:_0x2fb93a}of _0x12a691){const {group:_0x1eaf90,type:_0x3c3e56,id:_0x8f9b00}=this[_0x5b17('0x90')](_0x5a5623);if(_0x5b17('0xe0')!==_0x1eaf90)continue;const _0x41d983=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x8f9b00);if(null!=_0x2fb93a[_0x5b17('0x3b')]){'formatInline'==_0x3c3e56&&(_0x216451=_0x216451||$t(_0x2fb93a[_0x5b17('0x3b')],_0x5a5623,_0x2db72b,_0x404ece['model'][_0x5b17('0xb8')]));if(_0x2fb93a[_0x5b17('0x3b')][_0x5b17('0x120')]||_0x5b17('0x4b')==_0x2fb93a['newRange'][_0x5b17('0x5a')][_0x5b17('0x77')]||'formatBlock'==_0x3c3e56&&!Rt(_0x2fb93a['newRange'])||_0x5b17('0x35')==_0x3c3e56&&!(!Mt(_0x5c4602=_0x2fb93a[_0x5b17('0x3b')])&&!function(_0x2ee7d3){return _0x2ee7d3[_0x5b17('0x9c')]['parent']==_0x2ee7d3[_0x5b17('0xbb')][_0x5b17('0xc1')]&&_0x2ee7d3[_0x5b17('0x9c')]['isAtEnd'];}(_0x5c4602)))_0x2db72b[_0x5b17('0xff')](_0x5a5623),_0x216451=!0x0;else{if(!_0x41d983||!_0x41d983[_0x5b17('0x8d')])continue;_0x4dc0eb[_0x5b17('0x38')](_0x41d983);}}}var _0x5c4602;return _0x4dc0eb[_0x5b17('0xb7')]>0x0&&(_0x216451=!!this['_joinWithAdjacentSuggestions'](_0x4dc0eb)||_0x216451),_0x216451;}),_0x404ece[_0x5b17('0xb3')][_0x5b17('0xed')][_0x5b17('0x7a')](_0x5c3427=>{let _0x40c109=!0x1;for(const _0x556451 of _0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x10c')][_0x5b17('0x8')]()){if(_0x5b17('0x93')!=_0x556451[_0x5b17('0x42')])continue;const _0x3f3eea=_0x556451['position'][_0x5b17('0x4c')](_0x556451[_0x5b17('0x2e')]);if(_0x3f3eea[_0x5b17('0x95')])for(const _0x2cce64 of this[_0x5b17('0x62')][_0x5b17('0x44')]()){if(_0x2cce64['isMultiRange']||!_0x2cce64[_0x5b17('0x8d')])continue;if(_0x5b17('0x5b')!=_0x2cce64[_0x5b17('0x42')])continue;const _0x451d06=_0x2cce64[_0x5b17('0x37')]();if(_0x451d06[_0x5b17('0x9c')][_0x5b17('0x108')]!=_0x451d06[_0x5b17('0xbb')][_0x5b17('0x108')]&&_0x451d06[_0x5b17('0xbb')][_0x5b17('0x80')](_0x556451['position'])){const _0x104208=_0x404ece['model'][_0x5b17('0xd2')](_0x451d06[_0x5b17('0x9c')],_0x3f3eea);_0x5c3427[_0x5b17('0xc6')](_0x2cce64[_0x5b17('0x7d')](),{'range':_0x104208}),_0x40c109=!0x0;}}}return _0x40c109;}),_0x404ece[_0x5b17('0xb3')][_0x5b17('0xfd')]['on']('update:suggestion',(_0x32750c,_0x11fa7d,_0x5dc3ae)=>{if(null==_0x5dc3ae){const {id:_0x45fe5f}=this[_0x5b17('0x90')](_0x11fa7d['name']),_0x334c77=this['_suggestions']['get'](_0x45fe5f);_0x334c77&&_0x334c77['addMarkerName'](_0x11fa7d[_0x5b17('0xf0')]);}}),_0x404ece[_0x5b17('0xb3')][_0x5b17('0xed')]['on'](_0x5b17('0x10'),()=>{const _0x27a900=Array[_0x5b17('0xfa')](_0x404ece['model'][_0x5b17('0xed')][_0x5b17('0x10c')]['getChangedMarkers']())[_0x5b17('0xe')](_0x3d6a6d=>_0x5b17('0xe0')===this['_splitMarkerName'](_0x3d6a6d[_0x5b17('0xf0')])[_0x5b17('0x61')]);if(0x0===_0x27a900['length'])return;_0x27a900[_0x5b17('0xfe')]((_0x2084ac,_0x1bb363)=>{const _0x50e2e2=_0x2084ac[_0x5b17('0x111')][_0x5b17('0x8a')],_0x59737e=_0x1bb363[_0x5b17('0x111')][_0x5b17('0x8a')];return null===_0x50e2e2&&null===_0x59737e?0x0:null===_0x50e2e2&&null!==_0x59737e?-0x1:null!==_0x50e2e2&&null===_0x59737e?0x1:_0x50e2e2[_0x5b17('0x9c')]['isBefore'](_0x59737e['start'])?-0x1:0x1;});const _0xa99899=new Set(),_0x59a84b=new Set();for(const {name:_0x2765ce,data:_0xb17479}of _0x27a900){const {id:_0x453b86}=this['_splitMarkerName'](_0x2765ce);if(null===_0xb17479[_0x5b17('0x8a')]){const _0x3c626e=this['_handleNewSuggestionMarker'](_0x2765ce);_0x59a84b[_0x5b17('0x38')](_0x3c626e);}else{const _0x5671a3=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x453b86);null!==_0xb17479[_0x5b17('0x3b')]||_0x5671a3[_0x5b17('0x8d')]?(_0xa99899[_0x5b17('0x38')](_0x5671a3['head']),_0x59a84b['add'](_0x5671a3)):this['_removeSuggestion'](_0x5671a3);}}_0x59a84b[_0x5b17('0xb7')]>0x0&&this['_refreshSuggestionsChain'](_0x59a84b);for(const _0x390cc7 of _0xa99899)this[_0x5b17('0xbd')](_0x5b17('0xcc'),_0x390cc7);}),_0x404ece[_0x5b17('0xb3')]['on'](_0x5b17('0xe6'),(_0x4d9688,_0x131705)=>{const _0x9d3892=_0x131705[0x0];if(!this['_suggestions'][_0x5b17('0xb7')])return;if(!_0x9d3892['isDocumentOperation'])return;if(_0x9d3892[_0x5b17('0xca')][_0x5b17('0xd')]||!_0x9d3892[_0x5b17('0xca')]['isLocal'])return;let _0x402873,_0x2f9e52;switch(_0x9d3892[_0x5b17('0x42')]){case _0x5b17('0x93'):_0x402873=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0xad')]),_0x2f9e52=_0x402873[_0x5b17('0x4c')](_0x9d3892[_0x5b17('0x6d')]);break;case _0x5b17('0x125'):_0x402873=_0x404ece['model'][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0xf2')]),_0x2f9e52=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0x76')]);break;case _0x5b17('0x65'):_0x402873=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd9')](_0x9d3892[_0x5b17('0xb5')]),_0x2f9e52=_0x402873[_0x5b17('0x4c')](_0x9d3892['howMany']);break;default:return;}const _0x1bea57=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd2')](_0x402873,_0x2f9e52);_0x404ece[_0x5b17('0xb3')][_0x5b17('0x5')](()=>{for(const {suggestion:_0x218b9c,meta:_0x128891}of this['_findSuggestions'](_0x1bea57)){if(_0x218b9c[_0x5b17('0x12c')])continue;if('formatInline'==_0x218b9c[_0x5b17('0x42')])continue;const _0x4d8284=_0x218b9c['data']&&_0x218b9c[_0x5b17('0x111')]['multipleBlocks'];(_0x5b17('0x5b')!=_0x218b9c[_0x5b17('0x42')]||_0x5b17('0x125')==_0x9d3892[_0x5b17('0x42')]&&!_0x4d8284)&&(_0x128891[_0x5b17('0x26')]||_0x5b17('0x27')==_0x218b9c[_0x5b17('0x42')]&&_0x128891[_0x5b17('0x6f')]||_0x218b9c[_0x5b17('0x37')]()[_0x5b17('0x9')](_0x1bea57)&&this['_breakSuggestionMarker'](_0x218b9c,_0x402873,_0x2f9e52));}});},{'priority':_0x5b17('0x13a')}),_0x404ece['model']['on']('deleteContent',(_0x9c9bc5,_0x1403d7)=>{const _0xa48333=_0x1403d7[0x0],_0x2bbd33=_0x1403d7[0x1];if(_0x2bbd33&&_0x2bbd33[_0x5b17('0xbf')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5b17('0x89')][_0x5b17('0xe8')])return;if(_0xa48333['isCollapsed'])return;const _0x2708df=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')],{start:_0xa0b720,end:_0x154de7}=_0xa48333[_0x5b17('0x37')](),_0x3e1bb0=_0xa0b720[_0x5b17('0xcb')]&&_0x2708df[_0x5b17('0x2b')](_0xa0b720[_0x5b17('0xcb')])?null:_0x2708df[_0x5b17('0xef')](_0xa0b720,_0x5b17('0xeb')),_0x10f73f=_0x154de7['nodeBefore']&&_0x2708df[_0x5b17('0x2b')](_0x154de7[_0x5b17('0xc1')])?null:_0x2708df[_0x5b17('0xef')](_0x154de7,'backward'),_0x1d1833=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xd2')](_0x3e1bb0?_0x3e1bb0[_0x5b17('0x9c')]:_0xa0b720,_0x10f73f?_0x10f73f[_0x5b17('0xbb')]:_0x154de7);_0x404ece[_0x5b17('0xb3')][_0x5b17('0x5')](_0x2a4c0c=>{this[_0x5b17('0x7e')](_0x1d1833);const _0x31348e=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')]['getNearestSelectionRange'](_0x1d1833['start']);_0xa48333['is']('documentSelection')?_0x2a4c0c[_0x5b17('0x85')](_0x31348e):_0xa48333[_0x5b17('0x50')](_0x31348e);}),_0x9c9bc5['stop']();},{'priority':_0x56c715['normal']+0xa}),_0x404ece['model']['on'](_0x5b17('0x30'),(_0xe385f1,_0x44d9c9)=>{const _0x46720f=_0x44d9c9[_0x44d9c9[_0x5b17('0x2e')]-0x1];_0x46720f&&_0x46720f[_0x5b17('0xbf')]||this[_0x5b17('0xa2')]||this[_0x5b17('0x89')][_0x5b17('0xe8')]&&(_0x404ece[_0x5b17('0xb3')][_0x5b17('0x5')](()=>{let _0x3172db=_0x404ece[_0x5b17('0xb3')][_0x5b17('0x30')](_0x44d9c9[0x0],_0x44d9c9[0x1],_0x44d9c9[0x2],{'forceDefaultExecution':!0x0});if(!_0x3172db)return;_0xe385f1['return']=_0x3172db[_0x5b17('0x25')]();const _0x5dd833=_0x3172db[_0x5b17('0xbb')][_0x5b17('0xc1')],_0x2c1459=_0x404ece[_0x5b17('0xb3')][_0x5b17('0xb8')];_0x5dd833&&_0x2c1459[_0x5b17('0x99')](_0x5dd833)&&!_0x2c1459[_0x5b17('0x114')](_0x5dd833)&&(_0x3172db=_0x404ece['model'][_0x5b17('0xd2')](_0x3172db[_0x5b17('0x9c')],_0x404ece[_0x5b17('0xb3')]['createPositionAt'](_0x5dd833,_0x5b17('0xbb')))),this[_0x5b17('0xac')](_0x3172db);}),_0xe385f1[_0x5b17('0xa4')]());},{'priority':_0x5b17('0x9f')}),this[_0x5b17('0x5f')]['commands'][_0x5b17('0x38')](_0x5b17('0xf1'),this[_0x5b17('0x89')]),this[_0x5b17('0xd3')](_0x5b17('0xf1'));const _0x8301be=new _0x334995(_0x404ece,this[_0x5b17('0x62')]);_0x404ece[_0x5b17('0xfb')][_0x5b17('0x38')](_0x5b17('0x19'),_0x8301be),this[_0x5b17('0xd3')](_0x5b17('0x19'));const _0x494157=new _0xd52769(_0x404ece,this['_suggestions']);_0x404ece[_0x5b17('0xfb')][_0x5b17('0x38')]('discardSuggestion',_0x494157),this[_0x5b17('0xd3')](_0x5b17('0x118')),_0x404ece[_0x5b17('0xfb')][_0x5b17('0x38')]('acceptAllSuggestions',new _0x3616b1(_0x404ece,_0x8301be,this[_0x5b17('0x62')])),this['enableCommand']('acceptAllSuggestions'),_0x404ece[_0x5b17('0xfb')]['add'](_0x5b17('0x138'),new _0x3616b1(_0x404ece,_0x494157,this[_0x5b17('0x62')])),this[_0x5b17('0xd3')](_0x5b17('0x138')),_0x404ece[_0x5b17('0xfb')]['add']('acceptSelectedSuggestions',new _0x55e475(_0x404ece,_0x8301be,this[_0x5b17('0x62')])),this[_0x5b17('0xd3')](_0x5b17('0x112')),_0x404ece['commands'][_0x5b17('0x38')](_0x5b17('0x39'),new _0x55e475(_0x404ece,_0x494157,this[_0x5b17('0x62')])),this['enableCommand'](_0x5b17('0x39'));const _0x18d6f7=_0x404ece['plugins'][_0x5b17('0x11a')](_0x5b17('0x8f'));this[_0x5b17('0xd0')](_0x18d6f7,_0x5b17('0x128'),(_0x4ad748,{threadId:_0x85d1ec})=>{const _0x262fa2=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x85d1ec);_0x262fa2&&_0x262fa2[_0x5b17('0x131')]&&0x1===_0x262fa2[_0x5b17('0x131')][_0x5b17('0x2e')]&&this[_0x5b17('0x11f')](_0x85d1ec,{'hasComments':!0x0});},{'priority':_0x5b17('0x21')}),this[_0x5b17('0xd0')](_0x18d6f7,_0x5b17('0x1'),(_0x50fdbd,{threadId:_0x3759db})=>{const _0x49c36b=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x3759db);_0x49c36b&&_0x49c36b[_0x5b17('0x131')]&&!_0x49c36b['commentThread'][_0x5b17('0x2e')]&&this[_0x5b17('0x11f')](_0x3759db,{'hasComments':!0x1});},{'priority':_0x5b17('0x21')});}set[_0x5b17('0x10d')](_0x353860){if(this[_0x5b17('0xce')])throw new _0xa64f77(_0x5b17('0x3d'),this);this[_0x5b17('0xce')]=_0x353860;}get['adapter'](){return this['_adapter'];}[_0x5b17('0x81')]({skipNotAttached:_0x5ae53c=!0x1,toJSON:_0x5686f5=!0x1}={}){const _0x3069b9=[];for(const _0x49980d of this['_suggestions'][_0x5b17('0x44')]())_0x5ae53c&&!_0x49980d['isInContent']||_0x3069b9[_0x5b17('0x82')](_0x49980d);return _0x5686f5?_0x3069b9[_0x5b17('0x100')](_0x4bed47=>_0x4bed47['toJSON']()):_0x3069b9;}[_0x5b17('0x91')](_0x558a87){const _0x17e93e=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x558a87);if(!_0x17e93e)throw new _0xa64f77(_0x5b17('0xe7'),this);return _0x17e93e;}[_0x5b17('0xd7')](_0xea33ce){return this[_0x5b17('0x62')][_0x5b17('0x51')](_0xea33ce);}[_0x5b17('0xb')](_0x52843f){const {authorId:_0x143840,id:_0xe2b3bb,attributes:_0x3de891}=_0x52843f,[_0x3ba300,_0x313852]=_0x52843f[_0x5b17('0x42')]['split'](':'),_0x5e7cc5=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0xe2b3bb)||this[_0x5b17('0x12b')](_0x3ba300,_0x313852,_0xe2b3bb,_0x143840,_0x3de891);if(this[_0x5b17('0x115')](_0x5e7cc5),this[_0x5b17('0x17')](_0x5e7cc5,_0x3ba300,_0x313852||null,_0x143840),_0x5e7cc5['createdAt']=_0x52843f[_0x5b17('0x13b')],_0x5e7cc5[_0x5b17('0xcf')]=!0x0,_0x3de891&&_0x3de891[_0x5b17('0x71')]){const _0x3c8e46=_0x3de891[_0x5b17('0x71')],_0x2e8c24=this[_0x5b17('0x109')](_0x3c8e46['authorName']);_0x5e7cc5[_0x5b17('0xe3')]=_0x3c8e46['createdAt'],_0x5e7cc5[_0x5b17('0x2a')]=_0x2e8c24,_0x5e7cc5[_0x5b17('0x127')]=!0x0;}else _0x5e7cc5[_0x5b17('0xe3')]=_0x52843f[_0x5b17('0x13b')];switch(_0x52843f[_0x5b17('0x111')]&&(_0x5e7cc5[_0x5b17('0x111')]=_0x52843f['data']),_0x52843f[_0x5b17('0xa8')]&&(_0x5e7cc5[_0x5b17('0xa8')]=_0x52843f[_0x5b17('0xa8')]),this[_0x5b17('0xce')]&&this['_adapter']['addSuggestion']||(_0x5e7cc5[_0x5b17('0xe5')]=!0x0),this[_0x5b17('0x13c')][_0x5b17('0x11a')](_0x5e7cc5)){case'notReady':this[_0x5b17('0x13c')][_0x5b17('0x129')](_0x5e7cc5,_0x5b17('0x139'));break;case _0x5b17('0x10a'):_0x5e7cc5[_0x5b17('0x8d')]?(this['_refreshSuggestionsChain'](new Set([_0x5e7cc5])),this[_0x5b17('0xea')](new Set([_0x5e7cc5])),this[_0x5b17('0x13c')]['set'](_0x5e7cc5,_0x5b17('0x104')),this[_0x5b17('0xbd')](_0x5b17('0x10e'),_0x5e7cc5)):this[_0x5b17('0x13c')][_0x5b17('0x129')](_0x5e7cc5,_0x5b17('0x3'));}return _0x5e7cc5;}[_0x5b17('0x19')](_0x277e19){this[_0x5b17('0xbf')](()=>{this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0x5')](()=>{for(const _0xf01055 of _0x277e19[_0x5b17('0x1c')]())_0xf01055[_0x5b17('0xa5')]();});});}[_0x5b17('0x118')](_0x5a9312){this['forceDefaultExecution'](()=>{this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0x5')](()=>{for(const _0x52367a of _0x5a9312[_0x5b17('0x1c')]())_0x52367a[_0x5b17('0xe9')]();});});}['enableCommand'](_0x44ec83,_0x2e3547){const _0x91f486=this[_0x5b17('0x5f')]['commands'][_0x5b17('0x11a')](_0x44ec83);if(!_0x91f486)throw new _0xa64f77('track-changes-command-not-found',this,{'commandName':_0x44ec83});this[_0x5b17('0x31')][_0x5b17('0x38')](_0x91f486),_0x2e3547&&_0x91f486['on'](_0x5b17('0xc4'),(_0x597ba1,_0x49cd3b)=>{this['trackChangesCommand'][_0x5b17('0xe8')]&&(this[_0x5b17('0xa2')]||_0x49cd3b[_0x5b17('0x2e')]>0x0&&_0x49cd3b[_0x49cd3b[_0x5b17('0x2e')]-0x1]&&_0x49cd3b[_0x49cd3b[_0x5b17('0x2e')]-0x1]['forceDefaultExecution']||(_0x597ba1['return']=_0x2e3547((..._0x2a84f4)=>_0x91f486[_0x5b17('0xc4')](..._0x2a84f4,{'forceDefaultExecution':!0x0}),..._0x49cd3b),_0x597ba1[_0x5b17('0xa4')]()));},{'priority':_0x5b17('0x9f')});}['forceDefaultExecution'](_0x224ba4){let _0x224de8,_0x375697;const _0xb5dbce=this[_0x5b17('0xa2')];this[_0x5b17('0xa2')]=!0x0;try{_0x224de8=_0x224ba4();}catch(_0x327dee){_0x375697=_0x327dee;}return _0xb5dbce||(this[_0x5b17('0xa2')]=!0x1),_0x375697&&_0xa64f77[_0x5b17('0x2c')](_0x375697,this),_0x224de8;}[_0x5b17('0xac')](_0x4f5eeb,_0x532a52=null,_0x224036={}){if(_0x4f5eeb['isCollapsed'])return null;const _0x41f538=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')]('Users')['me'];for(const {suggestion:_0x46469c,meta:_0x334d13}of this[_0x5b17('0xa7')](_0x4f5eeb,_0x5b17('0x27')))if(_0x334d13['isOwn']){if(!_0x334d13[_0x5b17('0x11c')]){if(_0x334d13['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ot(_0x46469c,_0x224036))continue;return _0x46469c;}if(Ot(_0x46469c,_0x224036))return _0x46469c;this[_0x5b17('0x130')](_0x46469c,_0x4f5eeb[_0x5b17('0x9c')],_0x4f5eeb[_0x5b17('0xbb')]);break;}if(_0x532a52==_0x46469c[_0x5b17('0xaa')]&&Ot(_0x46469c,_0x224036)){const _0xb30507=_0x46469c['getFirstRange']();return _0xb30507[_0x5b17('0x9c')][_0x5b17('0x80')](_0x4f5eeb[_0x5b17('0xbb')])?this[_0x5b17('0xb0')](_0x46469c,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x4f5eeb[_0x5b17('0x9c')],_0xb30507[_0x5b17('0xbb')])):this[_0x5b17('0xb0')](_0x46469c,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0xb30507['start'],_0x4f5eeb[_0x5b17('0xbb')])),_0x46469c;}}const _0x4c91d1=_0x56fed8(),_0x2bf1a0=_0x41f538['id'],_0x1a965d=_0x532a52?_0x5b17('0x4')+_0x532a52:_0x5b17('0x27'),_0x3512ba=this[_0x5b17('0xa6')]({'id':_0x4c91d1,'type':_0x1a965d,'createdAt':new Date(),'authorId':_0x2bf1a0,'attributes':_0x224036});return this['_addSuggestionMarker'](_0x1a965d,_0x4c91d1,_0x2bf1a0,_0x4f5eeb),_0x3512ba;}[_0x5b17('0x68')](_0x4f36ec,_0x583ecd=_0x5b17('0x135'),_0xcd0837={}){const _0x1a1d26=this[_0x5b17('0x5f')][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))['me'],_0x29dbf8=this[_0x5b17('0x22')][_0x5b17('0x4f')]('insertion',_0x583ecd,_0x5b17('0x43'));for(const _0x1292ab of this[_0x5b17('0x81')]())if(_0x1292ab[_0x5b17('0x2a')]['id']==_0x1a1d26['id']&&_0x5b17('0x27')==_0x1292ab[_0x5b17('0x42')]&&_0x1292ab['subType']==_0x583ecd&&Ot(_0x1292ab,_0xcd0837)&&(_0x29dbf8(_0x1292ab['getRanges'](),_0x4f36ec)||_0x29dbf8(_0x4f36ec,_0x1292ab[_0x5b17('0x136')]()))){for(const _0x430fd0 of _0x4f36ec)_0x1292ab[_0x5b17('0x29')](_0x430fd0);return _0x1292ab;}for(const {suggestion:_0x47448c,meta:_0x2acdeb}of this[_0x5b17('0xa7')](_0x4f36ec,_0x5b17('0x27'))){if(!_0x2acdeb[_0x5b17('0x6f')])continue;if(!this[_0x5b17('0x134')]&&_0x2acdeb['containsRangeInObject'])continue;if(!Ot(_0x47448c,_0xcd0837))continue;let _0x94fa1e=!0x0;for(const _0x32d987 of _0x47448c[_0x5b17('0x136')]())for(const _0x5a0f33 of _0x4f36ec)if(!_0x32d987[_0x5b17('0x9')](_0x5a0f33)){_0x94fa1e=!0x1;break;}if(_0x94fa1e)return _0x47448c;}const _0x35205b=_0x56fed8(),_0x28f1f4=_0x1a1d26['id'],_0x59de2e=_0x5b17('0x4')+_0x583ecd,_0x4da82f=this[_0x5b17('0xa6')]({'id':_0x35205b,'type':_0x59de2e,'createdAt':new Date(),'authorId':_0x28f1f4,'attributes':_0xcd0837});for(const _0xc39818 of _0x4f36ec)this[_0x5b17('0xb1')](_0x59de2e,_0x35205b,_0x28f1f4,_0xc39818,_0x45f923[_0x5b17('0x49')]());return _0x4da82f;}[_0x5b17('0x124')](_0x2571de,_0x280abc,_0x4c8ebe=null,_0x3e33f4={}){if(_0x4c8ebe=_0x4c8ebe||Nt(_0x280abc),_0x2571de[_0x5b17('0x120')])return null;if(_0x5b17('0x106')===this[_0x5b17('0x54')]){const _0x3ef4eb=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x110'),_0x4c8ebe,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x3ef4eb([_0x2571de],_0x280abc,_0x3e33f4)),null;}const _0x12f2a0=this[_0x5b17('0x5f')][_0x5b17('0x28')]['get'](_0x5b17('0x72'))['me'],_0x5c613b=[];if(_0x5b17('0xdb')!==this[_0x5b17('0x54')])for(const {suggestion:_0x41dc06,meta:_0x4e0556}of this['_findSuggestions'](_0x2571de,_0x5b17('0x27')))_0x4e0556['isOwn']&&!_0x4e0556[_0x5b17('0x2d')]&&_0x5c613b['push'](..._0x41dc06[_0x5b17('0x136')]());const _0x25d7a8=function(_0x4cdd32,_0x2ed783){const _0x28d058=[];for(const _0x2fd030 of _0x2ed783){const _0x58ea01=_0x4cdd32[_0x5b17('0x70')](_0x2fd030);_0x58ea01&&_0x28d058[_0x5b17('0x82')](_0x58ea01);}return _0x28d058;}(_0x2571de,_0x5c613b),_0x1dec6e=function(_0x26907e,_0x551dd1){const _0x245778=[_0x26907e];for(const _0x5c4fcc of _0x551dd1){let _0x147297=0x0;for(;_0x147297<_0x245778['length'];){const _0x1e9241=_0x245778[_0x147297][_0x5b17('0x15')](_0x5c4fcc);_0x245778[_0x5b17('0x98')](_0x147297,0x1,..._0x1e9241),_0x147297+=_0x1e9241[_0x5b17('0x2e')];}}return _0x245778;}(_0x2571de,_0x5c613b);_0x25d7a8[_0x5b17('0x2e')]&&this[_0x5b17('0xd1')]['change'](()=>{for(const _0x16b8e3 of _0x25d7a8){const _0x577bd9=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x110'),_0x4c8ebe,_0x5b17('0xa5'));this[_0x5b17('0xbf')](()=>_0x577bd9([_0x16b8e3],_0x280abc,_0x3e33f4));}});for(const _0x4c4e11 of _0x1dec6e){let _0xb8793d=null,_0x83c963=_0x4c4e11[_0x5b17('0x9c')],_0x2794ca=_0x4c4e11[_0x5b17('0xbb')];for(const {suggestion:_0xe2a7bd,meta:_0x4a01ea}of this[_0x5b17('0xa7')](_0x4c4e11,'formatInline')){if(!_0x4a01ea[_0x5b17('0x6f')])continue;if(_0xe2a7bd['subType']!=_0x4c8ebe)continue;if(!Ot(_0xe2a7bd,_0x3e33f4))continue;const _0x1aecb4=_0xe2a7bd[_0x5b17('0x37')]();if(_0x1aecb4['containsRange'](_0x4c4e11,!0x0))return null;_0x83c963=_0x83c963[_0x5b17('0x122')](_0x1aecb4['start'])?_0x83c963:_0x1aecb4[_0x5b17('0x9c')],_0x2794ca=_0x2794ca[_0x5b17('0x2')](_0x1aecb4[_0x5b17('0xbb')])?_0x2794ca:_0x1aecb4[_0x5b17('0xbb')],_0xb8793d?_0x1aecb4[_0x5b17('0x9c')][_0x5b17('0x122')](_0xb8793d['getFirstRange']()[_0x5b17('0x9c')])?(_0xb8793d['removeMarkers'](),_0xb8793d=_0xe2a7bd):_0xe2a7bd[_0x5b17('0xae')]():_0xb8793d=_0xe2a7bd;}const _0xce4542=this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x83c963,_0x2794ca);if(_0xb8793d)this[_0x5b17('0xb0')](_0xb8793d,_0xce4542);else{const _0xeb4a12=_0x56fed8(),_0x4afc1a=_0x12f2a0['id'];this[_0x5b17('0xa6')]({'id':_0xeb4a12,'type':_0x5b17('0xf8')+_0x4c8ebe,'data':_0x280abc,'createdAt':new Date(),'authorId':_0x4afc1a,'attributes':_0x3e33f4}),this[_0x5b17('0xb1')](_0x5b17('0xf8')+_0x4c8ebe,_0xeb4a12,_0x4afc1a,_0xce4542);}}return null;}[_0x5b17('0x74')](_0x1e4245,_0x45042b,_0x5f38ce=[],_0x3254cc=null,_0x3bc671={}){_0x45042b[_0x5b17('0x116')]||(_0x45042b[_0x5b17('0x116')]=_0x45042b[_0x5b17('0xd5')]),_0x45042b[_0x5b17('0xd4')]=_0x1e4245['is'](_0x5b17('0x3f')),_0x3254cc=_0x3254cc||Nt(_0x45042b);const _0x4a5b78=_0x5f38ce['map'](_0x2fded0=>jt(_0x2fded0,this[_0x5b17('0xd1')])),_0x1966a0=_0x1e4245['is']('range')?_0x1e4245:jt(_0x1e4245,this['_model']);if(_0x5b17('0x106')===this[_0x5b17('0x54')]){const _0x1a0a76=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x3254cc,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x1a0a76([_0x1966a0],_0x45042b,_0x3bc671)),null;}_0x4a5b78['push'](_0x1966a0);let _0x137638=!0x0;for(const _0x12038b of _0x4a5b78)if(!this[_0x5b17('0x64')](_0x12038b)){_0x137638=!0x1;break;}if(_0x137638&&_0x5b17('0xdb')!==this[_0x5b17('0x54')]){const _0x16f0e9=this['_suggestionFactory'][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x3254cc,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x16f0e9([_0x1966a0],_0x45042b,_0x3bc671)),null;}let _0x4b0a86=null,_0x148cd6=_0x1966a0[_0x5b17('0x9c')],_0x1cd0b7=_0x1966a0[_0x5b17('0xbb')];for(const {suggestion:_0x134f17,meta:_0x33f4d4}of this[_0x5b17('0xa7')](_0x1966a0,_0x5b17('0x5b'))){if(!_0x33f4d4['isOwn'])continue;if(_0x33f4d4[_0x5b17('0x11c')]||_0x33f4d4[_0x5b17('0x26')]||_0x33f4d4[_0x5b17('0x2d')])continue;if(_0x134f17[_0x5b17('0x111')]['formatGroupId']!=_0x45042b[_0x5b17('0x116')])continue;if(!Ot(_0x134f17,_0x3bc671))continue;const _0x58331a=_0x134f17['getFirstRange']();if(_0x134f17[_0x5b17('0xaa')]==_0x3254cc){if(_0x58331a[_0x5b17('0x9')](_0x1966a0,!0x0))return null;_0x148cd6=_0x148cd6['isBefore'](_0x58331a[_0x5b17('0x9c')])?_0x148cd6:_0x58331a[_0x5b17('0x9c')],_0x1cd0b7=_0x1cd0b7['isAfter'](_0x58331a[_0x5b17('0xbb')])?_0x1cd0b7:_0x58331a[_0x5b17('0xbb')],_0x4b0a86?_0x58331a[_0x5b17('0x9c')]['isBefore'](_0x4b0a86[_0x5b17('0x37')]()['start'])?(_0x4b0a86[_0x5b17('0xae')](),_0x4b0a86=_0x134f17):_0x134f17[_0x5b17('0xae')]():_0x4b0a86=_0x134f17;}else{const _0x202cd3=_0x1966a0['getIntersection'](_0x58331a);this[_0x5b17('0x12')](_0x134f17,_0x202cd3);}}const _0xfbe6f6=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))['me'],_0xe2335d=_0x56fed8(),_0x2068f5=_0xfbe6f6['id'];if(_0x4b0a86)return this[_0x5b17('0xb0')](_0x4b0a86,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x148cd6,_0x1cd0b7)),_0x4b0a86;{const _0x413df0=this[_0x5b17('0xa6')]({'id':_0xe2335d,'type':'formatBlock:'+_0x3254cc,'data':_0x45042b,'createdAt':new Date(),'authorId':_0x2068f5,'attributes':_0x3bc671});return this[_0x5b17('0xb1')](_0x5b17('0x52')+_0x3254cc,_0xe2335d,_0x2068f5,this[_0x5b17('0xd1')]['createRange'](_0x148cd6,_0x1cd0b7)),_0x413df0;}}[_0x5b17('0xd8')](_0x48e333,_0xabe47a,_0x200a5a=[],_0x358b7b=null,_0x18778c={}){_0xabe47a[_0x5b17('0x116')]||(_0xabe47a['formatGroupId']=_0xabe47a[_0x5b17('0xd5')]);const _0x35d66b=_0x48e333[0x0];_0xabe47a[_0x5b17('0xd4')]=_0x35d66b['is'](_0x5b17('0x3f')),_0x358b7b=_0x358b7b||Nt(_0xabe47a);const _0x1977da=_0x200a5a[_0x5b17('0x100')](_0x3c299c=>jt(_0x3c299c,this['_model'])),_0x3148ee=_0x35d66b['is']('range')?_0x48e333:_0x48e333[_0x5b17('0x100')](_0x3c8b45=>jt(_0x3c8b45,this[_0x5b17('0xd1')]));if(_0x5b17('0x106')===this[_0x5b17('0x54')]){const _0x51024a=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x358b7b,_0x5b17('0xa5'));return this[_0x5b17('0xbf')](()=>_0x51024a(_0x3148ee,_0xabe47a,_0x18778c)),null;}_0x1977da[_0x5b17('0x82')](..._0x3148ee);let _0x49ed82=!0x0;for(const _0x5a41a4 of _0x1977da)if(!this[_0x5b17('0x64')](_0x5a41a4)){_0x49ed82=!0x1;break;}if(_0x49ed82&&_0x5b17('0xdb')!==this[_0x5b17('0x54')]){const _0x1204ff=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x358b7b,_0x5b17('0xa5'));return this['forceDefaultExecution'](()=>_0x1204ff(_0x3148ee,_0xabe47a,_0x18778c)),null;}const _0x331aba=this[_0x5b17('0x5f')][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))['me'];for(const _0x51eff5 of this[_0x5b17('0x81')]()){if(_0x51eff5[_0x5b17('0x2a')]['id']!=_0x331aba['id'])continue;if(_0x5b17('0x5b')!=_0x51eff5[_0x5b17('0x42')]||_0x51eff5[_0x5b17('0x111')][_0x5b17('0x116')]!=_0xabe47a[_0x5b17('0x116')])continue;if(!Ot(_0x51eff5,_0x18778c))continue;const _0x2169c7=_0x51eff5['subType']==_0x358b7b;for(let _0x520f18=0x0;_0x520f18<_0x3148ee[_0x5b17('0x2e')];_0x520f18++){const _0x146252=_0x3148ee[_0x520f18];for(const _0x4522ba of _0x51eff5['getMarkers']()){const _0x2fe35a=_0x4522ba[_0x5b17('0xdd')]();if(_0x146252[_0x5b17('0x80')](_0x2fe35a)){_0x2169c7?(_0x3148ee['splice'](_0x520f18,0x1),_0x520f18--):_0x51eff5[_0x5b17('0xff')](_0x4522ba[_0x5b17('0xf0')]);break;}}}}if(0x0==_0x3148ee[_0x5b17('0x2e')])return null;const _0x22a3b5=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x5b'),_0x358b7b,_0x5b17('0x43'));for(const _0xca38f0 of this[_0x5b17('0x81')]())if(_0xca38f0[_0x5b17('0x2a')]['id']==_0x331aba['id']&&_0x5b17('0x5b')==_0xca38f0[_0x5b17('0x42')]&&_0xca38f0[_0x5b17('0x111')][_0x5b17('0x116')]==_0xabe47a['formatGroupId']&&_0xca38f0[_0x5b17('0xaa')]==_0x358b7b&&Ot(_0xca38f0,_0x18778c)&&(_0x22a3b5(_0xca38f0[_0x5b17('0x136')](),_0x3148ee)||_0x22a3b5(_0x3148ee,_0xca38f0['getRanges']()))){for(const _0x5452f2 of _0x3148ee)_0xca38f0[_0x5b17('0x29')](_0x5452f2);return _0xca38f0;}const _0x162cca=_0x56fed8(),_0x72e30e=_0x331aba['id'],_0xa67a09=_0x5b17('0x52')+_0x358b7b,_0x21fec8=this['_setSuggestionData']({'id':_0x162cca,'type':_0xa67a09,'data':_0xabe47a,'createdAt':new Date(),'authorId':_0x72e30e,'attributes':_0x18778c});for(const _0x2c2851 of _0x3148ee)this[_0x5b17('0xb1')](_0xa67a09,_0x162cca,_0x72e30e,_0x2c2851,_0x45f923[_0x5b17('0x49')]());return _0x21fec8;}['markDeletion'](_0x35847d,_0x15273c=null,_0x4b272d={}){if(_0x35847d[_0x5b17('0x120')])return null;const _0x27b4b3=this[_0x5b17('0x5f')]['plugins'][_0x5b17('0x11a')](_0x5b17('0x72'))['me'],_0xe84830=new _0x15a817(_0x35847d[_0x5b17('0x9c')],_0x35847d[_0x5b17('0xbb')]);for(const {suggestion:_0x4be3d1,meta:_0x3c44c7}of this[_0x5b17('0xa7')](_0xe84830,_0x5b17('0x27')))if(_0x3c44c7[_0x5b17('0x6f')]&&!_0x3c44c7[_0x5b17('0x11c')]){if(_0x4be3d1[_0x5b17('0x12c')]){const _0x5c81c7=_0x4be3d1[_0x5b17('0x136')]()[_0x5b17('0xe')](_0x3a3eaa=>'$graveyard'!=_0x3a3eaa[_0x5b17('0x5a')][_0x5b17('0x77')]);_0x5c81c7[_0x5b17('0xe2')](_0x47c0fd=>_0xe84830[_0x5b17('0x9')](_0x47c0fd,!0x0))&&_0x4be3d1[_0x5b17('0xe9')]();if(_0x5c81c7[_0x5b17('0x56')](_0x852cb4=>_0x852cb4['containsRange'](_0xe84830,!0x0))){const _0x1a7d0c=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x35'),_0x15273c,_0x5b17('0xa5'));return this[_0x5b17('0xbf')](()=>_0x1a7d0c([_0xe84830],null,_0x4b272d)),null;}}else{const _0x3e04bc=_0xe84830[_0x5b17('0x70')](_0x4be3d1[_0x5b17('0x37')]());null!==_0x3e04bc&&_0x4be3d1[_0x5b17('0x121')]([_0x3e04bc],null,_0x4b272d);}}if(_0xe84830[_0x5b17('0x55')](),_0xe84830[_0x5b17('0x120')]||'$graveyard'==_0xe84830[_0x5b17('0x5a')][_0x5b17('0x77')])return null;let _0xf60b3f=null,_0x3d68d1=_0xe84830[_0x5b17('0x9c')],_0x228cfc=_0xe84830[_0x5b17('0xbb')];const _0x431d98=this[_0x5b17('0xa7')](_0xe84830,_0x5b17('0x35'));for(const {suggestion:_0x468523,meta:_0x4a8a3d}of _0x431d98){const _0x599ff6=this['_model'][_0x5b17('0xd2')](_0x3d68d1,_0x228cfc);if(_0x4a8a3d[_0x5b17('0x6f')]&&(this[_0x5b17('0x134')]||!_0x4a8a3d[_0x5b17('0x26')]&&!_0x4a8a3d[_0x5b17('0x2d')])){if(_0x468523[_0x5b17('0x12c')]){if(!Ot(_0x468523,_0x4b272d))continue;let _0x1fd10=!0x0;for(const _0x210ef5 of _0x468523[_0x5b17('0x136')]()){if(_0x210ef5[_0x5b17('0x9')](_0x599ff6,!0x0))return _0x468523;_0x599ff6['containsRange'](_0x210ef5)||(_0x1fd10=!0x1);}_0x1fd10&&_0x468523[_0x5b17('0xe9')]();}else{const _0x26ae12=_0x468523[_0x5b17('0x37')]();if(_0x26ae12[_0x5b17('0x9')](_0x599ff6,!0x0))return _0x468523;if(!Ot(_0x468523,_0x4b272d)){_0x599ff6[_0x5b17('0x9')](_0x26ae12)?_0x468523[_0x5b17('0xae')]():_0x26ae12[_0x5b17('0x10b')](_0x3d68d1)?_0x3d68d1=_0x26ae12[_0x5b17('0xbb')]:_0x26ae12[_0x5b17('0x10b')](_0x228cfc)&&(_0x228cfc=_0x26ae12[_0x5b17('0x9c')]);continue;}_0x3d68d1=_0x3d68d1[_0x5b17('0x122')](_0x26ae12['start'])?_0x3d68d1:_0x26ae12[_0x5b17('0x9c')],_0x228cfc=_0x228cfc['isAfter'](_0x26ae12['end'])?_0x228cfc:_0x26ae12[_0x5b17('0xbb')],_0x4b272d=Object[_0x5b17('0x97')]({},_0x468523[_0x5b17('0xa8')]),_0xf60b3f?_0x26ae12[_0x5b17('0x9c')][_0x5b17('0x122')](_0xf60b3f[_0x5b17('0x37')]()[_0x5b17('0x9c')])?(_0xf60b3f[_0x5b17('0xae')](),_0xf60b3f=_0x468523):_0x468523[_0x5b17('0xae')]():_0xf60b3f=_0x468523;}}}if(_0xf60b3f)return this[_0x5b17('0xb0')](_0xf60b3f,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x3d68d1,_0x228cfc)),_0xf60b3f;{const _0x13277a=_0x56fed8(),_0x5c785a=this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x3d68d1,_0x228cfc),_0xb20b5a=_0x27b4b3['id'],_0x2642a3=_0x15273c?_0x5b17('0x18')+_0x15273c:_0x5b17('0x35'),_0x4967b2=this[_0x5b17('0xa6')]({'id':_0x13277a,'type':_0x2642a3,'createdAt':new Date(),'authorId':_0xb20b5a,'attributes':_0x4b272d});return this['_addSuggestionMarker'](_0x2642a3,_0x13277a,_0xb20b5a,_0x5c785a),_0x4967b2;}}[_0x5b17('0x9b')](_0x2246be,_0x45b53e=_0x5b17('0x135'),_0x3b62c2={}){const _0x40fd7=this[_0x5b17('0x5f')][_0x5b17('0x28')]['get']('Users')['me'],_0x414a4b=_0x2246be[_0x5b17('0x100')](_0x2c6fa7=>new _0x15a817(_0x2c6fa7[_0x5b17('0x9c')],_0x2c6fa7['end'])),_0x2f10f6=new Set();for(const {suggestion:_0x4788cf,meta:_0x6ee3e}of this['_findSuggestions'](_0x414a4b,_0x5b17('0x27')))_0x6ee3e[_0x5b17('0x6f')]&&!_0x6ee3e[_0x5b17('0x11c')]&&_0x2f10f6['add'](_0x4788cf);for(const _0x500712 of _0x2f10f6)if(_0x500712[_0x5b17('0x12c')]){const _0x3e26e9=_0x500712[_0x5b17('0x136')]();(!_0x500712[_0x5b17('0xa8')]||!_0x500712[_0x5b17('0xa8')]['skipNestingCheck'])&&(_0x3e26e9[_0x5b17('0xe2')](_0x5168df=>_0x414a4b[_0x5b17('0x56')](_0xf1e8ca=>_0xf1e8ca['containsRange'](_0x5168df,!0x0)))&&_0x500712[_0x5b17('0xe9')]());if(_0x414a4b[_0x5b17('0xe2')](_0xcab2bc=>_0x3e26e9[_0x5b17('0x56')](_0xac442e=>_0xac442e[_0x5b17('0x9')](_0xcab2bc,!0x0)))){const _0x5c20eb=this[_0x5b17('0x22')][_0x5b17('0x4f')](_0x5b17('0x35'),_0x45b53e,'accept');return this[_0x5b17('0xbf')](()=>_0x5c20eb(_0x2246be,null,_0x3b62c2)),null;}}else{const _0x16da0c=_0x500712[_0x5b17('0x37')]();_0x414a4b[_0x5b17('0x56')](_0x81fa98=>_0x81fa98[_0x5b17('0x9')](_0x16da0c,!0x0))&&_0x500712[_0x5b17('0xe9')]();if(_0x414a4b[_0x5b17('0xe2')](_0x239330=>_0x16da0c['containsRange'](_0x239330,!0x0))){const _0x391c19=this[_0x5b17('0x22')][_0x5b17('0x4f')]('deletion',_0x45b53e,_0x5b17('0xa5'));return this[_0x5b17('0xbf')](()=>_0x391c19(_0x414a4b,null,_0x3b62c2)),null;}}const _0x139ec7=this[_0x5b17('0x22')]['getSuggestionCallback']('deletion',_0x45b53e,'join');let _0x2ff3d2=null;for(const _0x2aa58d of this['getSuggestions']())if(_0x2aa58d[_0x5b17('0x2a')]['id']==_0x40fd7['id']&&_0x2aa58d[_0x5b17('0x8d')]&&'deletion'==_0x2aa58d[_0x5b17('0x42')]&&_0x2aa58d[_0x5b17('0xaa')]==_0x45b53e&&Ot(_0x2aa58d,_0x3b62c2)&&(_0x139ec7(_0x2aa58d[_0x5b17('0x136')](),_0x414a4b)||_0x139ec7(_0x414a4b,_0x2aa58d['getRanges']()))){if(_0x2ff3d2){if(_0x2aa58d[_0x5b17('0x131')]&&_0x2aa58d['commentThread'][_0x5b17('0x2e')])continue;for(const _0x336b6e of _0x2aa58d[_0x5b17('0x136')]())_0x2ff3d2['isIntersectingWithRange'](_0x336b6e)||_0x2ff3d2[_0x5b17('0x29')](_0x336b6e);_0x2aa58d['removeMarkers']();}else{_0x2ff3d2=_0x2aa58d;for(const _0x4928d1 of _0x414a4b)_0x2aa58d[_0x5b17('0xfc')](_0x4928d1)||_0x2aa58d['addRange'](_0x4928d1);}}if(_0x2ff3d2)return _0x2ff3d2;_0x2f10f6[_0x5b17('0x103')]();for(const {suggestion:_0x2ce75e,meta:_0x10bcad}of this[_0x5b17('0xa7')](_0x414a4b,_0x5b17('0x35')))_0x10bcad['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10bcad[_0x5b17('0x26')]&&!_0x10bcad[_0x5b17('0x2d')])&&Ot(_0x2ce75e,_0x3b62c2)&&_0x2f10f6[_0x5b17('0x38')](_0x2ce75e);for(const _0x21bc5e of _0x2f10f6){const _0x3e86c4=_0x21bc5e[_0x5b17('0x136')]();if(!_0x3b62c2||!_0x3b62c2[_0x5b17('0x7c')]){if(_0x414a4b[_0x5b17('0xe2')](_0x2530d9=>_0x3e86c4[_0x5b17('0x56')](_0x4b9343=>_0x4b9343[_0x5b17('0x9')](_0x2530d9,!0x0))))return _0x21bc5e;}(!_0x21bc5e['attributes']||!_0x21bc5e['attributes']['skipNestingCheck'])&&(_0x3e86c4[_0x5b17('0xe2')](_0x4d2c9d=>_0x414a4b[_0x5b17('0x56')](_0x56a9b5=>_0x56a9b5['containsRange'](_0x4d2c9d,!0x0)))&&_0x21bc5e[_0x5b17('0xe9')]());}const _0x2025ff=_0x56fed8(),_0x2c76b9=_0x40fd7['id'],_0x1ebd05='deletion:'+_0x45b53e,_0x2a43e3=this[_0x5b17('0xa6')]({'id':_0x2025ff,'type':_0x1ebd05,'createdAt':new Date(),'authorId':_0x2c76b9,'attributes':_0x3b62c2});for(const _0x3d6b37 of _0x414a4b)_0x3d6b37[_0x5b17('0x55')](),_0x3d6b37[_0x5b17('0x120')]||_0x5b17('0x4b')==_0x3d6b37[_0x5b17('0x5a')]['rootName']||this[_0x5b17('0xb1')](_0x1ebd05,_0x2025ff,_0x2c76b9,_0x3d6b37,_0x45f923[_0x5b17('0x49')]());return _0x2a43e3;}[_0x5b17('0xb0')](_0x392ce3,_0xcfc200){const _0x5dd773=_0x392ce3[_0x5b17('0x7d')]();this['_model'][_0x5b17('0x5')](_0x5c8674=>{_0x5c8674[_0x5b17('0xc6')](_0x5dd773,{'range':_0xcfc200});});}[_0x5b17('0x115')](_0x2e5cd7){const _0x579395=_0x2e5cd7['id'],_0x497f22=this[_0x5b17('0x5f')]['config'][_0x5b17('0x11a')](_0x5b17('0x96'));this[_0x5b17('0xf3')][_0x5b17('0xcd')](_0x579395)||this[_0x5b17('0xf3')][_0x5b17('0x6a')]({'channelId':_0x497f22,'threadId':_0x579395,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2f6e28=this[_0x5b17('0xf3')]['getCommentThread'](_0x579395);_0x2f6e28[_0x5b17('0x63')](_0x5b17('0x119')),_0x2f6e28['isRemovable']=!0x1,_0x2e5cd7[_0x5b17('0x131')]=_0x2f6e28;}[_0x5b17('0x17')](_0x2cb84b,_0x382321,_0x4c2066,_0x5db423){if(_0x2cb84b[_0x5b17('0x42')]!=_0x382321||_0x2cb84b[_0x5b17('0xaa')]!=_0x4c2066||_0x2cb84b[_0x5b17('0xc0')]['id']!=_0x5db423)throw this[_0x5b17('0x5f')][_0x5b17('0x132')](_0x5b17('0xf')),new _0xa64f77(_0x5b17('0xf'),this);}[_0x5b17('0x12')](_0x4eeefe,_0x188681){const _0x568a67=_0x4eeefe['getFirstRange']();if(_0x188681['isEqual'](_0x568a67))_0x4eeefe['removeMarkers']();else{if(_0x568a67['containsRange'](_0x188681)){const _0x46b393=this[_0x5b17('0xd1')][_0x5b17('0xd9')](_0x188681[_0x5b17('0x9c')][_0x5b17('0xc1')],_0x5b17('0xbb'));this['_setSuggestionRange'](_0x4eeefe,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x568a67[_0x5b17('0x9c')],_0x46b393));const _0x1b32e9=_0x56fed8(),_0x1e7f9f=_0x4eeefe['creator']['id'],_0x57cd33=_0x4eeefe[_0x5b17('0x42')]+':'+_0x4eeefe['subType'];this[_0x5b17('0xa6')]({'id':_0x1b32e9,'type':_0x57cd33,'createdAt':new Date(),'authorId':_0x1e7f9f,'data':_0x4eeefe[_0x5b17('0x111')],'attributes':_0x4eeefe[_0x5b17('0xa8')]});const _0x264555=this[_0x5b17('0xd1')][_0x5b17('0xd9')](_0x188681['end'][_0x5b17('0x108')],'after'),_0x3b0e16=this[_0x5b17('0xd1')]['createRange'](_0x264555,_0x568a67[_0x5b17('0xbb')]);this[_0x5b17('0xb1')](_0x57cd33,_0x1b32e9,_0x1e7f9f,_0x3b0e16);}else{if(_0x568a67[_0x5b17('0x10b')](_0x188681[_0x5b17('0x9c')])){const _0xd3d344=this[_0x5b17('0xd1')][_0x5b17('0xd9')](_0x188681[_0x5b17('0x9c')][_0x5b17('0xc1')],'end');this[_0x5b17('0xb0')](_0x4eeefe,this[_0x5b17('0xd1')]['createRange'](_0x568a67[_0x5b17('0x9c')],_0xd3d344));}else{const _0x2173ee=this[_0x5b17('0xd1')]['createPositionAt'](_0x188681[_0x5b17('0xbb')]['parent'],_0x5b17('0x12e'));this[_0x5b17('0xb0')](_0x4eeefe,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x2173ee,_0x568a67['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x28c105){for(const {suggestion:_0x332ccd,meta:_0x2db2c7}of this[_0x5b17('0xa7')](_0x28c105,'insertion')){if(!_0x2db2c7[_0x5b17('0x6f')])continue;const _0x325608=_0x332ccd[_0x5b17('0x136')]();for(const _0x1871be of _0x325608)if(!_0x28c105[_0x5b17('0x15')](_0x1871be)[_0x5b17('0x2e')])return!0x0;}return!0x1;}[_0x5b17('0x5e')](_0x1594ba){const _0xa7e414=this[_0x5b17('0x5f')][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72'))[_0x5b17('0x11e')](_0x1594ba);if(!_0xa7e414)throw new _0xa64f77(_0x5b17('0x75'),this);return _0xa7e414;}['_getExternalAuthor'](_0x54a202){const _0x55bdfe=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')](_0x5b17('0x72')),_0x4e8fe0=_0x15e5aa(_0x5b17('0x7b')+_0x54a202),_0x596633=_0x55bdfe[_0x5b17('0x11e')](_0x4e8fe0);return _0x596633||_0x55bdfe['addUser']({'id':_0x4e8fe0,'name':_0x54a202});}['_createSuggestion'](_0x51b608,_0x328d8d,_0x4afe0a,_0x15dfdb,_0x11f8a4){const _0x1d56c9=this['_getAuthorFromId'](_0x15dfdb),_0x276a05=this['_suggestionFactory'][_0x5b17('0x13d')](_0x51b608,_0x328d8d,_0x4afe0a,_0x1d56c9,_0x11f8a4,_0x2cb55a=>this[_0x5b17('0x11f')](_0x4afe0a,{'attributes':_0x2cb55a}));return this[_0x5b17('0xd0')](_0x276a05,'accept',()=>{this[_0x5b17('0x11f')](_0x4afe0a,{'state':'accepted'});},{'priority':_0x5b17('0x9f')}),this['listenTo'](_0x276a05,'discard',()=>{this[_0x5b17('0x11f')](_0x4afe0a,{'state':_0x5b17('0x45')});},{'priority':'high'}),this[_0x5b17('0x62')]['set'](_0x4afe0a,_0x276a05),this[_0x5b17('0x13c')][_0x5b17('0x129')](_0x276a05,_0x5b17('0xc5')),_0x276a05;}[_0x5b17('0x90')](_0x4c9bfc){const _0x32bff1=_0x4c9bfc['split'](':');return{'group':_0x32bff1[0x0],'type':_0x32bff1[0x1],'subType':_0x32bff1[_0x5b17('0x2e')]>=0x5?_0x32bff1[0x2]:null,'id':_0x32bff1[_0x5b17('0x2e')]<0x5?_0x32bff1[0x2]:_0x32bff1[0x3],'authorId':_0x32bff1[_0x5b17('0x2e')]<0x5?_0x32bff1[0x3]:_0x32bff1[0x4],'markerCount':0x6==_0x32bff1[_0x5b17('0x2e')]?_0x32bff1[0x5]:null};}[_0x5b17('0x130')](_0x1e8fd,_0x4e4a75,_0x2709fb){const _0x39b52c=_0x1e8fd[_0x5b17('0x37')](),_0x392111=_0x39b52c[_0x5b17('0x9c')],_0x3bf490=_0x39b52c['end'];this['_setSuggestionRange'](_0x1e8fd,this[_0x5b17('0xd1')]['createRange'](_0x392111,_0x4e4a75));const _0x46a55e=_0x56fed8(),_0x1a2253=_0x1e8fd[_0x5b17('0xc0')]['id'],_0x456baf=_0x1e8fd[_0x5b17('0x42')]+(_0x1e8fd[_0x5b17('0xaa')]?':'+_0x1e8fd[_0x5b17('0xaa')]:'');this[_0x5b17('0xa6')]({'id':_0x46a55e,'type':_0x456baf,'createdAt':new Date(),'authorId':_0x1a2253,'originalSuggestionId':_0x1e8fd['id'],'attributes':_0x1e8fd[_0x5b17('0xa8')],'data':_0x1e8fd[_0x5b17('0x111')]}),'formatBlock'==_0x1e8fd[_0x5b17('0x42')]&&(_0x2709fb=this[_0x5b17('0xd1')][_0x5b17('0x86')](_0x2709fb['parent'])),this['_addSuggestionMarker'](_0x456baf,_0x46a55e,_0x1a2253,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x2709fb,_0x3bf490));}[_0x5b17('0xa7')](_0x48b8ea,_0x884b9d=null){const _0x29ac11=[],_0x4b0e54=this[_0x5b17('0x5f')]['plugins'][_0x5b17('0x11a')](_0x5b17('0x72'))['me'];Array['isArray'](_0x48b8ea)||(_0x48b8ea=[_0x48b8ea]);for(const _0x30d936 of this[_0x5b17('0x81')]()){if(!_0x30d936[_0x5b17('0x8d')])continue;if(_0x884b9d&&_0x30d936['type']!=_0x884b9d)continue;let _0x3bb030=!0x1;for(const _0x1d1715 of _0x30d936['getRanges']()){for(const _0x3ec0b5 of _0x48b8ea){const _0x364f23=_0x3ec0b5[_0x5b17('0x9c')][_0x5b17('0x80')](_0x1d1715[_0x5b17('0xbb')])||_0x3ec0b5['end']['isEqual'](_0x1d1715[_0x5b17('0x9c')]);if(_0x364f23||_0x3ec0b5[_0x5b17('0x70')](_0x1d1715)){const _0x1ddf42=_0x3ec0b5['containsRange'](_0x1d1715)&&_t(this[_0x5b17('0xd1')][_0x5b17('0xb8')],_0x1d1715[_0x5b17('0x9c')],_0x3ec0b5),_0x18bee4=_0x1d1715[_0x5b17('0x9')](_0x3ec0b5)&&_t(this[_0x5b17('0xd1')][_0x5b17('0xb8')],_0x3ec0b5[_0x5b17('0x9c')],_0x1d1715);_0x29ac11['push']({'suggestion':_0x30d936,'meta':{'isOwn':_0x4b0e54==_0x30d936['author'],'isNextTo':_0x364f23,'isInsideObject':_0x1ddf42,'containsRangeInObject':_0x18bee4}}),_0x3bb030=!0x0;break;}}if(_0x3bb030)break;}}return _0x29ac11;}[_0x5b17('0xb1')](_0x57ea65,_0x298d8f,_0x23b813,_0x364f96,_0x9b59d9){this['_model']['change'](_0x4ab737=>{let _0x228ec6='suggestion:'+_0x57ea65+':'+_0x298d8f+':'+_0x23b813;_0x9b59d9&&(_0x228ec6=_0x228ec6+':'+_0x9b59d9),_0x4ab737[_0x5b17('0x113')](_0x228ec6,{'range':_0x364f96,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5b17('0x87')](_0x3e21cb){const _0x360cf0=_0x3e21cb[_0x5b17('0xa1')],_0x4a844d=_0x3e21cb[_0x5b17('0xb9')];_0x3e21cb[_0x5b17('0xa1')]=null,null!=_0x360cf0&&(_0x360cf0['next']=null),_0x3e21cb['next']=null,null!=_0x4a844d&&(_0x4a844d[_0x5b17('0xa1')]=null),'ready'==this[_0x5b17('0x13c')][_0x5b17('0x11a')](_0x3e21cb)&&(this[_0x5b17('0x13c')]['set'](_0x3e21cb,_0x5b17('0x3')),this[_0x5b17('0xbd')](_0x5b17('0x126'),_0x3e21cb,_0x360cf0,_0x4a844d));}[_0x5b17('0xa6')](_0x299d60){const _0x2a9cee=_0x299d60['id'],_0x5a6f9b=this[_0x5b17('0xb')](_0x299d60);if(this[_0x5b17('0xce')]&&this['_adapter']['addSuggestion']){const _0x56573a=this['editor'][_0x5b17('0x28')][_0x5b17('0x11a')]('PendingActions'),_0x3fc17f=_0x5a6f9b['hasComments'],_0x4e168e=_0x5a6f9b[_0x5b17('0xaa')]?_0x5a6f9b[_0x5b17('0x42')]+':'+_0x5a6f9b[_0x5b17('0xaa')]:_0x5a6f9b[_0x5b17('0x42')],_0x24200b=this[_0x5b17('0x5f')]['locale'],_0x26ae6a=_0x56573a[_0x5b17('0x38')](_0x836558(_0x24200b,_0x5b17('0xd6'))),_0x4da8ee={'id':_0x2a9cee,'type':_0x4e168e,'hasComments':_0x3fc17f,'data':_0x299d60[_0x5b17('0x111')]||null,'originalSuggestionId':_0x299d60[_0x5b17('0xa0')]||null,'attributes':_0x5a6f9b['attributes']};this['_adapter']['addSuggestion'](_0x4da8ee)[_0x5b17('0xdf')](_0x550df8=>{_0x5a6f9b[_0x5b17('0xe5')]=!0x0,_0x56573a['remove'](_0x26ae6a),_0x550df8&&_0x550df8['createdAt']&&(this[_0x5b17('0x62')]['get'](_0x2a9cee)[_0x5b17('0x13b')]=_0x550df8['createdAt']);})[_0x5b17('0x8c')](_0x330fd0=>{throw _0xfaa372(_0x5b17('0xa')),this[_0x5b17('0x5f')][_0x5b17('0xb3')][_0x5b17('0x36')]({'isUndoable':!0x1},()=>{_0x5a6f9b[_0x5b17('0xe9')]();}),_0x5a6f9b[_0x5b17('0xa9')](),this['_suggestions'][_0x5b17('0xe1')](_0x5a6f9b['id']),this[_0x5b17('0x13c')]['delete'](_0x5a6f9b),_0x330fd0;});}return _0x5a6f9b;}['_updateSuggestionData'](_0x4deca2,_0x3495cf){const _0x1f65f7=this[_0x5b17('0x5f')][_0x5b17('0x28')]['get'](_0x5b17('0xc2')),_0x2453d7=this['getSuggestion'](_0x4deca2);if(this[_0x5b17('0xce')]&&this[_0x5b17('0xce')][_0x5b17('0x41')]){if(_0x2453d7['_saved']){const _0x53f56c=_0x1f65f7[_0x5b17('0x38')](_0x836558(this[_0x5b17('0x5f')]['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x5b17('0xce')][_0x5b17('0x41')](_0x4deca2,_0x3495cf)[_0x5b17('0xdf')](()=>{_0x1f65f7[_0x5b17('0xee')](_0x53f56c);});}else _0x2453d7['on'](_0x5b17('0x73'),()=>{this['_updateSuggestionData'](_0x4deca2,_0x3495cf);});}}[_0x5b17('0x9e')](_0xf2e612){if(!this[_0x5b17('0xce')]||!this[_0x5b17('0xce')][_0x5b17('0x91')])throw new _0xa64f77('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xf2e612);}[_0x5b17('0x4e')](_0x16ff59){const {id:_0x558d86,type:_0x132cbc,subType:_0x4b4f16,authorId:_0x121f0f}=this[_0x5b17('0x90')](_0x16ff59),_0xec6810=this[_0x5b17('0x62')][_0x5b17('0x11a')](_0x558d86)||this['_createSuggestion'](_0x132cbc,_0x4b4f16,_0x558d86,_0x121f0f,{});switch(this[_0x5b17('0x17')](_0xec6810,_0x132cbc,_0x4b4f16,_0x121f0f),this['_suggestionState'][_0x5b17('0x11a')](_0xec6810)){case _0x5b17('0xc5'):this[_0x5b17('0x9e')](_0x558d86)[_0x5b17('0xdf')](_0x369f82=>{let _0x2d867e=Promise['resolve']();_0x369f82[_0x5b17('0x133')]&&(_0x2d867e=this[_0x5b17('0xf3')][_0x5b17('0x12d')]({'channelId':this[_0x5b17('0x5f')][_0x5b17('0xf5')][_0x5b17('0x11a')](_0x5b17('0x96')),'threadId':_0x558d86})),_0x2d867e[_0x5b17('0xdf')](()=>{this[_0x5b17('0xb')](_0x369f82)['_saved']=!0x0;});}),this['_suggestionState'][_0x5b17('0x129')](_0xec6810,_0x5b17('0x10a'));break;case _0x5b17('0x3'):this['_updateSuggestionData'](_0x558d86,{'state':_0x5b17('0x6b')});case _0x5b17('0x139'):this[_0x5b17('0x13c')]['set'](_0xec6810,_0x5b17('0x104')),this[_0x5b17('0xbd')]('suggestionLoaded',_0xec6810);break;case _0x5b17('0x104'):this[_0x5b17('0xbd')](_0x5b17('0xcc'),_0xec6810);}return _0xec6810[_0x5b17('0x2f')](_0x16ff59),_0xec6810;}[_0x5b17('0xec')](_0x25af93){const _0x599a55=Array[_0x5b17('0xfa')](_0x25af93)[_0x5b17('0xe')](_0x42dc99=>!_0x42dc99['isMultiRange']),_0x5ca3b4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f9439=>!_0x2f9439[_0x5b17('0x12c')]),_0x120009=_0x5ca3b4['filter'](_0x370f03=>!_0x25af93[_0x5b17('0x51')](_0x370f03)),_0x51e233=new Map(_0x5ca3b4[_0x5b17('0x100')](_0x4d0e8a=>[_0x4d0e8a,this[_0x5b17('0x22')]['getSuggestionCallback'](_0x4d0e8a['type'],_0x4d0e8a[_0x5b17('0xaa')],_0x5b17('0xe4'))])),_0x179cde=new Map(_0x5ca3b4['map'](_0x24bba5=>[_0x24bba5,_0x24bba5[_0x5b17('0x37')]()])),_0xc16ed2=new Set(),_0x4ccbec=new Set();for(let _0x18c366=0x0;_0x18c366<_0x599a55[_0x5b17('0x2e')];_0x18c366++)_0x60fac4(_0x599a55[_0x18c366],_0x599a55,_0x18c366+0x1);for(let _0x3e9956=0x0;_0x3e9956<_0x599a55[_0x5b17('0x2e')];_0x3e9956++)_0x60fac4(_0x599a55[_0x3e9956],_0x120009,0x0);for(let _0x64527d=0x0;_0x64527d<_0x599a55[_0x5b17('0x2e')];_0x64527d++){const _0x50cef6=_0x599a55[_0x64527d];!_0x4ccbec['has'](_0x50cef6)&&_0x50cef6[_0x5b17('0xa1')]&&(_0x50cef6[_0x5b17('0xa1')][_0x5b17('0xb9')]===_0x50cef6&&(_0x50cef6[_0x5b17('0xa1')]['next']=null),_0x50cef6[_0x5b17('0xa1')]=null),!_0xc16ed2[_0x5b17('0x51')](_0x50cef6)&&_0x50cef6[_0x5b17('0xb9')]&&(_0x50cef6[_0x5b17('0xb9')][_0x5b17('0xa1')]===_0x50cef6&&(_0x50cef6[_0x5b17('0xb9')][_0x5b17('0xa1')]=null),_0x50cef6[_0x5b17('0xb9')]=null);}function _0x60fac4(_0x313163,_0x2a78e2,_0x5430ed){for(let _0x166e4=_0x5430ed;_0x166e4<_0x2a78e2['length'];_0x166e4++){const _0x341e48=_0x4a6da0(_0x313163,_0x2a78e2[_0x166e4]);_0x341e48&&(_0x341e48[0x0][_0x5b17('0xb9')]=_0x341e48[0x1],_0x341e48[0x1]['previous']=_0x341e48[0x0],_0xc16ed2[_0x5b17('0x38')](_0x341e48[0x0]),_0x4ccbec['add'](_0x341e48[0x1]));}}function _0x4a6da0(_0x3323de,_0x1885f2){if(_0x3323de[_0x5b17('0x2a')]['id']!==_0x1885f2['author']['id'])return null;const _0x188fa9=_0x51e233[_0x5b17('0x11a')](_0x3323de)(_0x3323de,_0x1885f2,_0x179cde[_0x5b17('0x11a')](_0x3323de),_0x179cde[_0x5b17('0x11a')](_0x1885f2));if(!_0x188fa9)return null;return _0x51e233['get'](_0x1885f2)(_0x3323de,_0x1885f2,_0x179cde[_0x5b17('0x11a')](_0x3323de),_0x179cde[_0x5b17('0x11a')](_0x1885f2))?_0x188fa9[0x1][_0x5b17('0x131')]&&_0x188fa9[0x1][_0x5b17('0x131')]['length']?null:_0x188fa9:null;}}['_joinWithAdjacentSuggestions'](_0x513aa0){const _0x4e8b0d=Array[_0x5b17('0xfa')](_0x513aa0),_0x42c0eb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a8f99=_0x42c0eb['filter'](_0x46b5e8=>!_0x513aa0[_0x5b17('0x51')](_0x46b5e8)),_0x542504=new Map(_0x4e8b0d[_0x5b17('0x100')](_0x574bb5=>[_0x574bb5,this['_suggestionFactory']['getSuggestionCallback'](_0x574bb5[_0x5b17('0x42')],_0x574bb5[_0x5b17('0xaa')],_0x5b17('0x43'))])),_0x2d4797=new Map(_0x42c0eb[_0x5b17('0x100')](_0x3b5cf3=>[_0x3b5cf3,_0x3b5cf3[_0x5b17('0x136')]()]));for(let _0x2145cf=0x0;_0x2145cf<_0x4e8b0d[_0x5b17('0x2e')];_0x2145cf++){if(_0x3bc0e2(this,_0x4e8b0d[_0x2145cf],_0x4e8b0d,_0x2145cf+0x1))return!0x0;}for(let _0x375e2e=0x0;_0x375e2e<_0x4e8b0d['length'];_0x375e2e++){if(_0x3bc0e2(this,_0x4e8b0d[_0x375e2e],_0x4a8f99,0x0))return!0x0;}return!0x1;function _0x3bc0e2(_0x4b5842,_0x55be36,_0x36f37c,_0x532e38){for(let _0x2bafe8=_0x532e38;_0x2bafe8<_0x36f37c[_0x5b17('0x2e')];_0x2bafe8++){const _0x442bf0=_0x36f37c[_0x2bafe8];if(_0x442bf0[_0x5b17('0x42')]!==_0x55be36['type']||_0x442bf0[_0x5b17('0x2a')]['id']!==_0x55be36[_0x5b17('0x2a')]['id']||_0x442bf0[_0x5b17('0xaa')]!==_0x55be36[_0x5b17('0xaa')])continue;if(!Ut(_0x55be36,_0x442bf0))continue;const _0x2aa777=_0x542504[_0x5b17('0x11a')](_0x55be36),_0x17b3b9=_0x2d4797[_0x5b17('0x11a')](_0x55be36),_0x317698=_0x2d4797['get'](_0x442bf0),_0x26feff=_0x55be36[_0x5b17('0x131')]&&_0x55be36[_0x5b17('0x131')]['length'],_0x407a94=_0x442bf0['commentThread']&&_0x442bf0['commentThread']['length'];if(!_0x26feff&&_0x2aa777(_0x317698,_0x17b3b9))return _0x4b5842['_joinSuggestions'](_0x442bf0,_0x55be36),_0x2d4797['delete'](_0x55be36),!0x0;if(!_0x407a94&&_0x2aa777(_0x17b3b9,_0x317698))return _0x4b5842[_0x5b17('0x5d')](_0x55be36,_0x442bf0),_0x2d4797[_0x5b17('0xe1')](_0x442bf0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x39a537,_0x1ebcd7){if(_0x39a537['isMultiRange'])for(const _0x2fc2c8 of _0x1ebcd7[_0x5b17('0x136')]())_0x39a537[_0x5b17('0x29')](_0x2fc2c8);else{const _0x349076=_0x1ebcd7[_0x5b17('0x37')]()[_0x5b17('0xbb')];this[_0x5b17('0xb0')](_0x39a537,this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x39a537[_0x5b17('0x37')]()[_0x5b17('0x9c')],_0x349076));}_0x1ebcd7[_0x5b17('0xae')]();}}class Bt{constructor(_0x513947){this[_0x5b17('0x105')]=_0x513947,this[_0x5b17('0xd1')]=_0x513947['model'],this['_customCallbacks']=new Map(),this[_0x5b17('0x16')]=new Map(),this['_registerDefaultCallbacks']();}[_0x5b17('0x13d')](_0x285927,_0x571a81,_0x3c8e23,_0xce8e61,_0x121d9c,_0x36867b){return new _0x45f923(this[_0x5b17('0xd1')],{'type':_0x285927,'subType':_0x571a81,'id':_0x3c8e23,'author':_0xce8e61,'creator':_0xce8e61,'attributes':_0x121d9c,'onAttributesChange':_0x36867b,'onAccept':(..._0x158183)=>this[_0x5b17('0x4f')](_0x285927,_0x571a81,'accept')(..._0x158183),'onDiscard':(..._0x163eed)=>this[_0x5b17('0x4f')](_0x285927,_0x571a81,'discard')(..._0x163eed)});}[_0x5b17('0x7f')](_0x394a49,_0x319868,_0x517b91,_0x322c21){const _0x3ad499=_0x394a49+':'+_0x319868+':'+_0x517b91;this[_0x5b17('0x123')]['set'](_0x3ad499,_0x322c21);}['getSuggestionCallback'](_0x316e53,_0x4fccdb,_0x1736b6){const _0x4f25e7=_0x316e53+':'+_0x4fccdb+':'+_0x1736b6;return this[_0x5b17('0x123')]['get'](_0x4f25e7)||this['_defaultCallbacks'][_0x5b17('0x11a')](_0x316e53+':'+_0x1736b6);}['_registerDefaultCallbacks'](){const _0x408761=()=>!0x1,_0x497f4f=_0x35d5b5=>{_0x35d5b5[_0x5b17('0xfe')]((_0x5bab5b,_0x1eb6c6)=>_0x5bab5b[_0x5b17('0x9c')][_0x5b17('0x122')](_0x1eb6c6[_0x5b17('0x9c')])?0x1:-0x1),this[_0x5b17('0xd1')][_0x5b17('0x5')](_0x994bfd=>{for(const _0x4dd2f9 of _0x35d5b5){let _0x387f04;_0x387f04=_0x4dd2f9[_0x5b17('0xbb')][_0x5b17('0x95')]&&_0x4dd2f9[_0x5b17('0xbb')]['parent']==_0x4dd2f9[_0x5b17('0x9c')]['nodeAfter']?_0x994bfd[_0x5b17('0xb6')](_0x4dd2f9[_0x5b17('0x9c')]['nodeAfter'],'on'):_0x994bfd[_0x5b17('0xb6')](_0x4dd2f9),this[_0x5b17('0xd1')][_0x5b17('0x46')](_0x387f04,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x134ba6=(_0x5a224d,_0x83d6ec)=>{this['_model'][_0x5b17('0x5')](_0xf9b1dd=>{const {commandName:_0x4befbd,commandParams:_0x49f288=[]}=_0x83d6ec,_0x4d2b68=_0x5a224d[_0x5b17('0x100')](_0x4aa161=>(Mt(_0x4aa161)&&(_0x4aa161=this[_0x5b17('0xd1')][_0x5b17('0xd2')](_0x4aa161[_0x5b17('0xbb')])),_0x4aa161))['filter'](_0x4a8586=>_0x5b17('0x4b')!==_0x4a8586['root'][_0x5b17('0x77')]);if(_0x4d2b68['length']<0x1)return;const _0x2bd6a8=Array[_0x5b17('0xfa')](this[_0x5b17('0xd1')]['document'][_0x5b17('0x102')][_0x5b17('0x136')]())['map'](_0x2ee2ec=>_0x15a817['fromRange'](_0x2ee2ec));_0xf9b1dd[_0x5b17('0x85')](_0x4d2b68);for(const _0x103515 of this[_0x5b17('0x105')]['commands'][_0x5b17('0xfb')]())_0x103515['refresh']();_0x49f288[_0x5b17('0x82')]({'forceDefaultExecution':!0x0}),this[_0x5b17('0x105')][_0x5b17('0xc4')](_0x4befbd,..._0x49f288);const _0x3b2d6e=_0x2bd6a8[_0x5b17('0xe')](_0x49c4fc=>_0x5b17('0x4b')!=_0x49c4fc['root'][_0x5b17('0x77')]);_0x3b2d6e[_0x5b17('0x2e')]>0x0&&_0xf9b1dd[_0x5b17('0x85')](_0x3b2d6e);for(const _0x4a8fe5 of _0x2bd6a8)_0x4a8fe5[_0x5b17('0x55')]();});},_0x335a46=(_0x2ea3b2,_0x1b33b8)=>0x1==_0x2ea3b2[_0x5b17('0x2e')]&&0x1==_0x1b33b8[_0x5b17('0x2e')]&&_0x2ea3b2[0x0][_0x5b17('0xbb')][_0x5b17('0x80')](_0x1b33b8[0x0]['start']),_0x534bf9=(_0xfcd166,_0x9c30ae,_0x4c7a46,_0x503f21)=>xt(_0xfcd166,_0x9c30ae,_0x4c7a46,_0x503f21,this[_0x5b17('0xd1')])?[_0xfcd166,_0x9c30ae]:xt(_0x9c30ae,_0xfcd166,_0x503f21,_0x4c7a46,this[_0x5b17('0xd1')])?[_0x9c30ae,_0xfcd166]:null;this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x6e'),_0x408761),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x32'),_0x497f4f),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x1e'),_0x335a46),this[_0x5b17('0x16')][_0x5b17('0x129')]('insertion:chain',_0x534bf9),this[_0x5b17('0x16')]['set'](_0x5b17('0x59'),_0x497f4f),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0xc7'),_0x408761),this[_0x5b17('0x16')]['set'](_0x5b17('0x1b'),_0x335a46),this['_defaultCallbacks'][_0x5b17('0x129')](_0x5b17('0xc3'),_0x534bf9),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatInline:accept',_0x134ba6),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x11b'),_0x408761),this['_defaultCallbacks'][_0x5b17('0x129')](_0x5b17('0x12f'),_0x335a46),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatInline:chain',_0x408761),this[_0x5b17('0x16')][_0x5b17('0x129')](_0x5b17('0x47'),_0x134ba6),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatBlock:discard',_0x408761),this['_defaultCallbacks']['set'](_0x5b17('0x9a'),_0x335a46),this[_0x5b17('0x16')][_0x5b17('0x129')]('formatBlock:chain',_0x408761);}}function _t(_0xc7fd4c,_0x45e51b,_0x43c8fa){for(const _0x289340 of _0x45e51b[_0x5b17('0x108')][_0x5b17('0x88')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x289340[_0x5b17('0x5a')]==_0x289340)return!0x1;if(!_0x43c8fa[_0x5b17('0xbc')](_0x289340))return!0x1;if(_0xc7fd4c['isObject'](_0x289340)||_0xc7fd4c['isLimit'](_0x289340))return!0x0;}return!0x1;}function Mt(_0x178fa0){return _0x178fa0[_0x5b17('0xbb')][_0x5b17('0x108')]==_0x178fa0[_0x5b17('0x9c')][_0x5b17('0xcb')]&&_0x178fa0['end'][_0x5b17('0x13')];}function $t(_0x1183a5,_0x4a41f7,_0x55897f,_0x42c651){const _0x20f8fc=_0x4bb9b2=>!_0x4bb9b2['item']['is'](_0x5b17('0x84'))&&!_0x42c651['isObject'](_0x4bb9b2['item']),_0x496ff8=_0x1183a5[_0x5b17('0x9c')][_0x5b17('0x6c')](_0x20f8fc),_0x2e2c50=_0x1183a5['end'][_0x5b17('0x6c')](_0x20f8fc,{'direction':_0x5b17('0x3e')});return(!_0x1183a5[_0x5b17('0x9c')][_0x5b17('0x80')](_0x496ff8)||!_0x1183a5['end'][_0x5b17('0x80')](_0x2e2c50))&&(_0x496ff8[_0x5b17('0x122')](_0x2e2c50)?_0x55897f['updateMarker'](_0x4a41f7,{'range':_0x55897f[_0x5b17('0xd2')](_0x496ff8,_0x2e2c50)}):_0x55897f['removeMarker'](_0x4a41f7),!0x0);}function Nt(_0x3f78a8){return _0x15e5aa(_0x3f78a8);}function Rt(_0x4edf27){const _0x468157=_0x4edf27['start']['nodeAfter'];return _0x468157&&_0x468157['is'](_0x5b17('0x24'));}function jt(_0x164b1b,_0x26168c){const _0x1cfe9a=_0x26168c['schema'][_0x5b17('0x114')](_0x164b1b)||_0x26168c[_0x5b17('0xb8')][_0x5b17('0x117')](_0x164b1b);return _0x26168c['createRange'](_0x26168c['createPositionAt'](_0x164b1b,'before'),_0x1cfe9a?_0x26168c['createPositionAfter'](_0x164b1b):_0x26168c[_0x5b17('0xd9')](_0x164b1b,_0x5b17('0xbb')));}function xt(_0x51e9a6,_0x44b3f7,_0x223531,_0x6748b,_0x1febb2){if(!Ut(_0x51e9a6,_0x44b3f7))return!0x1;if(_0x223531['end'][_0x5b17('0x80')](_0x6748b[_0x5b17('0x9c')]))return!0x0;if(_0x51e9a6['type']!=_0x44b3f7[_0x5b17('0x42')])return!0x1;if(!_0x223531[_0x5b17('0xbb')][_0x5b17('0x60')](_0x6748b['start']))return!0x1;const _0x191a49=_0x1febb2[_0x5b17('0xd2')](_0x223531[_0x5b17('0xbb')],_0x6748b[_0x5b17('0x9c')])['getWalker']();for(const _0x167903 of _0x191a49)if([_0x5b17('0x3a'),'elementEnd']['includes'](_0x167903['type'])&&_0x1febb2[_0x5b17('0xb8')][_0x5b17('0x2b')](_0x167903[_0x5b17('0x79')]))return!0x1;return!0x0;}function Ut(_0x507c7d,_0x2b4b9c){return!(!_0x507c7d[_0x5b17('0xcf')]||!_0x2b4b9c['_isDataLoaded'])&&_0x326433(_0x507c7d[_0x5b17('0xa8')],_0x2b4b9c[_0x5b17('0xa8')]);}function Ot(_0x6cc7b9,_0x47e652){const _0x2751f7=Et(_0x6cc7b9[_0x5b17('0xa8')]),_0x2b970d=Et(_0x47e652);if(!_0x6cc7b9[_0x5b17('0xcf')])return!0x1;for(const _0x495238 of Object['keys'](_0x2b970d))if(!_0x326433(_0x2751f7[_0x495238],_0x2b970d[_0x495238]))return!0x1;return!0x0;}function Et(_0x5c9b2){const _0x46ef90=Object[_0x5b17('0x97')]({},_0x5c9b2);return delete _0x46ef90[_0x5b17('0x7c')],delete _0x46ef90[_0x5b17('0x48')],_0x46ef90;}
23
+ const _0x1e9b=['getShiftedBy','previous','refresh','bindElementToMarker','trackChangesCommand','addMarkerName','TrackChangesEditing','formatInline','_addSuggestionMarker','markMultiRangeInsertion','isAfter','_joinWithAdjacentSuggestions','addComment','isTouching','acceptAllSuggestions','init','removeComment','next','markerToHighlight','addMarker:suggestion','dataReady','data','commandName','removeMarker','hasCommentThread','marker-count','deletion:','multi','includes','isRemovable','mapper','removeClass','setAttribute','update:suggestion','insert','element','markerName','trackChanges','createRange','remove','rootName','set','substr','_refreshSuggestionsChain','fromCharCode','howMany','then','containsRange','createPositionAfter','insertion:','execute','upcast','getNearestSelectionRange','fetchCommentThread','addClass','tablePasteChainId','_updateSuggestionData','start','editing','nodeBefore','track-changes-command-not-found','getItems','ready','_commentsRepository','formatInline:accept','isLocal','_model','registerCustomCallback','item','subType','track-changes-user-not-found','filter','consume','_cutOutSuggestionMarker','differ','newRange','detach','addRange','deletion:chain','consumable','config','_getSuggestionData','isOwn','_setSuggestionRange','moveTargetPosition','getRanges','isDocumentOperation','commentThread','_mergeNestedSuggestions','options','accepted','values','_isDataLoaded','enableReadOnlyMode','formatGroupId','attributes','trackChanges.mergeNestedSuggestions','change:activeMarkers','isLimit','PendingActions','isObject','ck-suggestion-marker-','deletion:join','get','forceDefaultExecution','registerPostFixer','_getAuthorFromId','discard','define','resolve','isUndo','batch','discardAllSuggestions','schema','sort','markerReady','delete','formatBlock','backward','formatBlock:join','addMarker:suggestion:formatBlock','removeMarkers','_adapter','notReady','group','head','getFirstRange','isMultiRange','clone','$marker','trackChanges.trackFormatChanges','writer','getMarkers','addSuggestionData','add','_removeSuggestion','_joinSuggestions','forward','isEqual','createSelection','getChanges','addCommentThread','_defaultCallbacks','isCollapsed','chain','deletion:accept','setSelection','rejected','deletion','type','_setSuggestionData','join','isInsideObject','PENDING_ACTION_SUGGESTION','highest','addSuggestion','root','acceptSuggestion','Users','never','showSuggestionHighlights','getSuggestions','enqueueChange','markDeletion','size','editingDowncast','_editor','selection','some','default','dataDowncast','removeAttribute','isIntersectingWithRange','formatBlock:','getUser','suggestionLoaded','activeMarkers','editor','isSelectable','formatInline:','markInsertion','_breakSuggestionMarker','isBlock','getCustomProperty','markerNameToElements','createRangeIn','high','getDifference','containsRangeInObject','getAttribute','position','getSuggestionCallback','containsPosition','isBefore','open','fromRange','listenTo','author','split','conversion','getCommentThread','markerToData','unbindElementFromMarkerName','addHighlight','insertContent','discardSuggestion','skipNestingCheck','_descriptionFactory','change:data','markers','_rangeIsInLocalUserInsertion','_customCallbacks','range','authoredAt','isInContent','always','change:_saved','change','parent','getFirstMarker','_suggestionState','@external','formatBlock:accept','ck-suggestion-marker','deleteContent','buildSuggestion','updateSuggestion','originalSuggestionId','_onDiscard','_registerDefaultCallbacks','getChangedMarkers','applyOperation','_enabledCommands','setTo','getIntersection','requires','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','_addThreadToSuggestion','markInlineFormat','elementEnd','toViewElement','addMarker','value','has','plugins','markMultiRangeBlockFormat','accept','updateMarker','map','multipleBlocks','collaboration.channelId','createPositionAt','elementStart','_handleNewSuggestionMarker','getLastMatchingPosition','_findSuggestions','model','locale','createElement','creator','_saved','_isForcedDefaultExecutionBlock','_suggestions','suggestion','fire','external:','unbind','isAtEnd','getAllAdjacentSuggestions','length','pluginName','formatInline:chain','getMultiRangeId','isArray','stop','from','elementToElement','createdAt','splitPosition','_createSuggestion','insertion:join','formatInline:join','_suggestionFactory','lowest','name','after','assign','for','hasComments','_trackFormatChanges','acceptSelectedSuggestions','isExternal','ck-suggestion-marker-formatBlock','formatBlock:chain','clear','stopListening','enableCommand','nodeAfter','removeMarker:suggestion:formatBlock','reconvertMarker','$graveyard','suggestionChanged','low','_checkSuggestionCorrectness','isNextTo','insertion:discard','getSuggestion','commands','push','track-changes-adapter-already-set','splice','document','_getExternalAuthor','oldRange','every','_splitMarkerName','track-changes-adapter-missing-getsuggestion','getAncestors','data-suggestion','CommentsRepository','end','insertion'];(function(_0x4a8597,_0x1e9b7b){const _0x2c67d9=function(_0x536943){while(--_0x536943){_0x4a8597['push'](_0x4a8597['shift']());}};_0x2c67d9(++_0x1e9b7b);}(_0x1e9b,0x19d));const _0x2c67=function(_0x4a8597,_0x1e9b7b){_0x4a8597=_0x4a8597-0x0;let _0x2c67d9=_0x1e9b[_0x4a8597];return _0x2c67d9;};import{Plugin as _0x3aae55,PendingActions as _0x307adb}from'ckeditor5/src/core';import{LiveRange as _0x2a689f}from'ckeditor5/src/engine';import{CKEditorError as _0x12916d,uid as _0x14b3c2,priorities as _0x41fd06,logWarning as _0x34eed0}from'ckeditor5/src/utils';import{toWidget as _0x23170e}from'ckeditor5/src/widget';import{Users as _0x27440e,hashObject as _0x26d881}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ad4ef from'./commands/trackchangescommand';import _0x37ca99 from'./commands/acceptsuggestioncommand';import _0x2e678f from'./commands/discardsuggestioncommand';import _0x8fd8 from'./commands/executeonallsuggestionscommand';import _0x5983b4 from'./commands/executeonselectedsuggestionscommand';import _0x368607 from'./suggestion';import _0x5077ed from'./suggestiondescriptionfactory';import _0x421534 from'./integrations/aiassistant';import _0x31f96b from'./integrations/alignment';import _0x382c09 from'./integrations/basicstyles';import _0x59fbac from'./integrations/blockquote';import _0x1687fd from'./integrations/ckbox';import _0x34ed8a from'./integrations/codeblock';import _0x2c0829 from'./integrations/comments';import _0x36ddb6 from'./integrations/deletecommand';import _0x15c5be from'./integrations/documentlist';import _0x40bde7 from'./integrations/entercommand';import _0x355ca6 from'./integrations/findandreplace';import _0x3e8fc0 from'./integrations/font';import _0x470a6b from'./integrations/formatpainter';import _0x419e69 from'./integrations/heading';import _0x56559b from'./integrations/highlight';import _0xa82cf5 from'./integrations/horizontalline';import _0x2e4e96 from'./integrations/htmlembed';import _0x3729c8 from'./integrations/image';import _0x283335 from'./integrations/imagereplace';import _0x547a0e from'./integrations/importword';import _0x17e56c from'./integrations/indent';import _0x224b9b from'./integrations/inputcommand';import _0x3b56d4 from'./integrations/link';import _0x631513 from'./integrations/list';import _0x5729a9 from'./integrations/listproperties';import _0x2efba4 from'./integrations/mediaembed';import _0x2a52f6 from'./integrations/mention';import _0x8402a0 from'./integrations/pagebreak';import _0x163ff6 from'./integrations/paragraph';import _0x5b8f58 from'./integrations/removeformat';import _0x363319 from'./integrations/restrictededitingmode';import _0x62e450 from'./integrations/shiftentercommand';import _0x5c23dd from'./integrations/standardeditingmode';import _0x5ec205 from'./integrations/style';import _0x2590f6 from'./integrations/table';import _0x2fc9d0 from'./integrations/tablemergesplit';import _0x222e10 from'./integrations/tableheadings';import _0x2a5d74 from'./integrations/tableclipboard';import _0x56df6d from'./integrations/tablecolumnresize';import _0x5e19b1 from'./integrations/template';import _0xe7a760 from'./integrations/tableofcontents';import _0x1f2a80 from'./integrations/title';import _0x1811ad from'./integrations/undo';import{getTranslation as _0x243cd0}from'./utils/common-translations';import _0x4c1868 from'./integrations/tablecaption';import _0x50f680 from'./integrations/documentlistproperties';import _0x58b798 from'./integrations/tableproperties';import{isEqual as _0x5960dc}from'lodash-es';export default class p extends _0x3aae55{static get[_0x2c67('0x91')](){return[_0x2c67('0xe6'),_0x27440e,_0x307adb,_0x421534,_0x31f96b,_0x382c09,_0x59fbac,_0x1687fd,_0x34ed8a,_0x2c0829,_0x36ddb6,_0x15c5be,_0x50f680,_0x40bde7,_0x355ca6,_0x3e8fc0,_0x470a6b,_0x419e69,_0x56559b,_0xa82cf5,_0x2e4e96,_0x3729c8,_0x283335,_0x547a0e,_0x17e56c,_0x224b9b,_0x3b56d4,_0x631513,_0x5729a9,_0x2efba4,_0x2a52f6,_0x8402a0,_0x163ff6,_0x5b8f58,_0x363319,_0x62e450,_0x5c23dd,_0x5ec205,_0x2590f6,_0x2fc9d0,_0x222e10,_0x4c1868,_0x2a5d74,_0x56df6d,_0xe7a760,_0x58b798,_0x5e19b1,_0x1f2a80,_0x1811ad];}static get[_0x2c67('0xb5')](){return _0x2c67('0xef');}constructor(_0x31d47c){function _0x1a6925(_0x34770b){return _0x34770b[_0x2c67('0x9f')](_0x42be93=>String[_0x2c67('0x115')](_0x42be93))[_0x2c67('0x3d')]('');}super(_0x31d47c),this[_0x2c67('0x112')](_0x2c67('0x56'),[]),this['on'](_0x2c67('0x7'),(_0x2f4ef5,_0x3101d4,_0xaf9642,_0xe6aef6)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x51fd8c of[..._0xe6aef6,..._0xaf9642])this[_0x2c67('0x12b')][_0x2c67('0x77')][_0x2c67('0x9a')](_0x51fd8c)&&_0x31d47c[_0x2c67('0x123')][_0x2c67('0xd2')](_0x51fd8c);});}),this[_0x2c67('0x75')]=new _0x5077ed(this['editor']['model'][_0x2c67('0x17')],this[_0x2c67('0x57')]['locale']),this[_0x2c67('0x20')]=null,this[_0x2c67('0xc1')]=new Bt(this[_0x2c67('0x57')]),this['_suggestions']=new Map(),this[_0x2c67('0x128')]=_0x31d47c[_0x2c67('0x9b')]['get'](_0x2c67('0xe6')),this['_enabledCommands']=new Set(),this[_0x2c67('0x12b')]=this[_0x2c67('0x57')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2c67('0xac')]=!0x1,_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x28'),_0x2c67('0x4f')),this['_trackFormatChanges']=_0x31d47c['config'][_0x2c67('0xd')]('trackChanges.trackFormatChanges'),_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x6'),!0x0),this[_0x2c67('0x141')]=_0x31d47c[_0x2c67('0x139')][_0x2c67('0xd')]('trackChanges.mergeNestedSuggestions'),this[_0x2c67('0xed')]=new _0x5ad4ef(_0x31d47c,this[_0x2c67('0x8e')]),this[_0x1a6925([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1a6925([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x32]);}[_0x2c67('0xf8')](){const _0x2e35e1=this[_0x2c67('0x57')];_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x4b'))[_0x2c67('0xfb')]({'model':'suggestion','view':_0x5e7a39=>{const {id:_0x576a2a,type:_0x45ae56}=this['_splitMarkerName'](_0x5e7a39[_0x2c67('0x10d')]),_0x93478=[_0x2c67('0x85'),'ck-suggestion-marker-'+_0x45ae56];let _0x2aea62=0xbb8;return this[_0x2c67('0x56')][_0x2c67('0x105')](_0x5e7a39[_0x2c67('0x10d')])&&(_0x93478[_0x2c67('0xdb')]('ck-suggestion-marker--active'),_0x2aea62=0xbc2),'deletion'==_0x45ae56&&(_0x2aea62+=0x5),{'classes':_0x93478,'attributes':{'data-suggestion':_0x576a2a},'priority':_0x2aea62};}}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x2c')](_0x24baf7=>{_0x24baf7['on'](_0x2c67('0xfc'),(_0x35931f,_0x4cdb88,_0x3e898f)=>{if(!_0x3e898f[_0x2c67('0x142')][_0x2c67('0x46')])return;const _0x3a57a4=_0x4cdb88[_0x2c67('0x12d')];if(!_0x3a57a4)return;const _0x460cba=_0x3e898f['mapper'][_0x2c67('0x97')](_0x3a57a4);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')]['isObject'](_0x3a57a4)&&_0x460cba&&!_0x460cba[_0x2c67('0x5d')]('widget')&&_0x460cba['is']('containerElement')&&_0x23170e(_0x460cba,_0x3e898f[_0x2c67('0x29')]);},{'priority':'high'});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x50'))['markerToHighlight']({'model':_0x2c67('0xae'),'view':(_0x5b334f,_0xd6b8a8)=>{if(!_0xd6b8a8[_0x2c67('0x142')][_0x2c67('0x46')])return null;const {type:_0x55f9f6}=this[_0x2c67('0xe2')](_0x5b334f[_0x2c67('0x10d')]);return{'classes':[_0x2c67('0x85'),_0x2c67('0xb')+_0x55f9f6],'priority':0xbb8};}});const _0x4d2978=({showActiveMarkers:_0x69f34a=!0x0}={})=>(_0xfc9463,_0x506065,_0x262dc6)=>{if(!_0x506065[_0x2c67('0x12d')])return;if(_0x506065['item']['is'](_0x2c67('0x4d')))return void _0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x506065['item'],_0xfc9463[_0x2c67('0xc3')]);const _0x539bdf=_0x262dc6[_0x2c67('0x107')]['toViewElement'](_0x506065['item']);if(!(_0x506065['item']['is'](_0x2c67('0x10c'))&&_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x5c')](_0x506065[_0x2c67('0x12d')])&&!_0x539bdf[_0x2c67('0x5d')](_0x2c67('0x71'))))return;const {id:_0x584d57}=this[_0x2c67('0xe2')](_0x506065[_0x2c67('0x10d')]);_0x262dc6[_0x2c67('0x29')]['addClass']([_0x2c67('0x85'),_0x2c67('0xcb')],_0x539bdf),_0x262dc6[_0x2c67('0x29')][_0x2c67('0x109')](_0x2c67('0xe5'),_0x584d57,_0x539bdf),_0x262dc6[_0x2c67('0x107')][_0x2c67('0xec')](_0x539bdf,_0x506065['markerName']),_0x69f34a&&(this[_0x2c67('0x56')][_0x2c67('0x105')](_0x506065[_0x2c67('0x10d')])?_0x262dc6['writer'][_0x2c67('0x11f')](_0x2c67('0x92'),_0x539bdf):_0x262dc6[_0x2c67('0x29')][_0x2c67('0x108')](_0x2c67('0x92'),_0x539bdf));for(const _0x74422 of _0x2e35e1['model'][_0x2c67('0x5f')](_0x506065[_0x2c67('0x12d')])[_0x2c67('0x126')]())_0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x74422,_0xfc9463[_0x2c67('0xc3')]);_0x262dc6['consumable'][_0x2c67('0x131')](_0x506065[_0x2c67('0x12d')],_0xfc9463[_0x2c67('0xc3')]);};_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('dataDowncast')['add'](_0x4e479a=>{_0x4e479a['on'](_0x2c67('0x1e'),(_0x39d33a,_0x272cae,_0x3c2a35)=>{_0x3c2a35[_0x2c67('0x142')][_0x2c67('0x46')]&&_0x4d2978({'showActiveMarkers':!0x1})(_0x39d33a,_0x272cae,_0x3c2a35);},{'priority':_0x2c67('0x40')});}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x6f')]({'model':_0x2c67('0xae'),'view':(_0x57aed6,_0x4aaf0c)=>_0x4aaf0c[_0x2c67('0x142')][_0x2c67('0x46')]?null:{'group':_0x2c67('0xae'),'name':_0x57aed6[_0x2c67('0x113')](0xb)}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('upcast')[_0x2c67('0xbb')]({'view':{'name':_0x2c67('0xae'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5baf44,{writer:_0x21c037})=>{let _0x4fb193='suggestion:'+_0x5baf44['getAttribute']('suggestion-type')+':'+_0x5baf44[_0x2c67('0x63')]('id');return _0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))&&(_0x4fb193+=':'+_0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))),_0x21c037[_0x2c67('0xa9')](_0x2c67('0x27'),{'data-name':_0x4fb193});}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x11c'))['dataToMarker']({'view':_0x2c67('0xae')}),_0x2e35e1['conversion'][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x1f23eb=>{_0x1f23eb['on']('addMarker:suggestion:formatBlock',_0x4d2978(),{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x2587c5=>{_0x2587c5['on'](_0x2c67('0xd1'),(_0xf3a6,_0xa998a,_0xddf438)=>{const _0x4df9e1=_0xddf438['mapper'][_0x2c67('0x5e')](_0xa998a[_0x2c67('0x10d')]);if(_0x4df9e1)for(const _0x5d7c07 of _0x4df9e1)_0x5d7c07[_0x2c67('0x5d')](_0x2c67('0x71'))||(_0xddf438[_0x2c67('0x29')]['removeClass']([_0x2c67('0x85'),_0x2c67('0xcb'),_0x2c67('0x92')],_0x5d7c07),_0xddf438[_0x2c67('0x29')][_0x2c67('0x51')](_0x2c67('0xe5'),_0x5d7c07),_0xddf438[_0x2c67('0x107')][_0x2c67('0x70')](_0x5d7c07,_0xa998a[_0x2c67('0x10d')]));},{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0xf')](_0x3306c9=>{let _0x418cf9=!0x1;const _0x60c433=Array['from'](_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x8c')]()),_0x65b2d2=new Set();for(const {name:_0x5b4375,data:_0x45dc16}of _0x60c433){const {group:_0x5e5c4a,type:_0x47e1dd,id:_0x3fdb8f}=this[_0x2c67('0xe2')](_0x5b4375);if(_0x2c67('0xae')!==_0x5e5c4a)continue;const _0x12f8e8=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3fdb8f);if(null!=_0x45dc16['newRange']){_0x2c67('0xf0')==_0x47e1dd&&(_0x418cf9=_0x418cf9||$t(_0x45dc16[_0x2c67('0x134')],_0x5b4375,_0x3306c9,_0x2e35e1['model'][_0x2c67('0x17')]));if(_0x45dc16[_0x2c67('0x134')][_0x2c67('0x35')]||'$graveyard'==_0x45dc16['newRange'][_0x2c67('0x42')][_0x2c67('0x111')]||'formatBlock'==_0x47e1dd&&!Rt(_0x45dc16['newRange'])||_0x2c67('0x3a')==_0x47e1dd&&!(!Mt(_0x53b926=_0x45dc16[_0x2c67('0x134')])&&!function(_0x46229e){return _0x46229e[_0x2c67('0x122')][_0x2c67('0x80')]==_0x46229e['end'][_0x2c67('0x124')]&&_0x46229e['start'][_0x2c67('0xb2')];}(_0x53b926)))_0x3306c9[_0x2c67('0x100')](_0x5b4375),_0x418cf9=!0x0;else{if(!_0x12f8e8||!_0x12f8e8[_0x2c67('0x7c')])continue;_0x65b2d2['add'](_0x12f8e8);}}}var _0x53b926;return _0x65b2d2[_0x2c67('0x4a')]>0x0&&(_0x418cf9=!!this[_0x2c67('0xf4')](_0x65b2d2)||_0x418cf9),_0x418cf9;}),_0x2e35e1['model']['document']['registerPostFixer'](_0x36dbfa=>{let _0x381149=!0x1;for(const _0x184e05 of _0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x32')]()){if(_0x2c67('0x10b')!=_0x184e05[_0x2c67('0x3b')])continue;const _0x1cddb3=_0x184e05[_0x2c67('0x64')]['getShiftedBy'](_0x184e05['length']);if(_0x1cddb3[_0x2c67('0xb2')])for(const _0x9321d4 of this[_0x2c67('0xad')][_0x2c67('0x1')]()){if(_0x9321d4[_0x2c67('0x25')]||!_0x9321d4[_0x2c67('0x7c')])continue;if('formatBlock'!=_0x9321d4[_0x2c67('0x3b')])continue;const _0x295064=_0x9321d4[_0x2c67('0x24')]();if(_0x295064[_0x2c67('0x122')][_0x2c67('0x80')]!=_0x295064['end'][_0x2c67('0x80')]&&_0x295064['end'][_0x2c67('0x30')](_0x184e05['position'])){const _0x4ad1ea=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x295064[_0x2c67('0x122')],_0x1cddb3);_0x36dbfa[_0x2c67('0x9e')](_0x9321d4['getFirstMarker'](),{'range':_0x4ad1ea}),_0x381149=!0x0;}}}return _0x381149;}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x77')]['on'](_0x2c67('0x10a'),(_0x2930c6,_0x446d3c,_0x1c407c)=>{if(null==_0x1c407c){const {id:_0x5bdd1d}=this[_0x2c67('0xe2')](_0x446d3c['name']),_0x5903f2=this['_suggestions']['get'](_0x5bdd1d);_0x5903f2&&_0x5903f2[_0x2c67('0xee')](_0x446d3c[_0x2c67('0xc3')]);}}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')]['on'](_0x2c67('0x76'),()=>{const _0x7cf65=Array[_0x2c67('0xba')](_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')][_0x2c67('0x133')][_0x2c67('0x8c')]())[_0x2c67('0x130')](_0x52d2f7=>'suggestion'===this[_0x2c67('0xe2')](_0x52d2f7[_0x2c67('0xc3')])[_0x2c67('0x22')]);if(0x0===_0x7cf65[_0x2c67('0xb4')])return;_0x7cf65['sort']((_0x6a8c98,_0x329299)=>{const _0x430c46=_0x6a8c98[_0x2c67('0xfe')][_0x2c67('0xe0')],_0x5e582a=_0x329299[_0x2c67('0xfe')][_0x2c67('0xe0')];return null===_0x430c46&&null===_0x5e582a?0x0:null===_0x430c46&&null!==_0x5e582a?-0x1:null!==_0x430c46&&null===_0x5e582a?0x1:_0x430c46[_0x2c67('0x122')][_0x2c67('0x67')](_0x5e582a['start'])?-0x1:0x1;});const _0x38e6e6=new Set(),_0x38c110=new Set();for(const {name:_0x3f1324,data:_0x466981}of _0x7cf65){const {id:_0x21bece}=this[_0x2c67('0xe2')](_0x3f1324);if(null===_0x466981[_0x2c67('0xe0')]){const _0x42c4dc=this[_0x2c67('0xa4')](_0x3f1324);_0x38c110[_0x2c67('0x2c')](_0x42c4dc);}else{const _0x45333d=this['_suggestions'][_0x2c67('0xd')](_0x21bece);null!==_0x466981[_0x2c67('0x134')]||_0x45333d[_0x2c67('0x7c')]?(_0x38e6e6['add'](_0x45333d[_0x2c67('0x23')]),_0x38c110['add'](_0x45333d)):this[_0x2c67('0x2d')](_0x45333d);}}_0x38c110[_0x2c67('0x4a')]>0x0&&this[_0x2c67('0x114')](_0x38c110);for(const _0x3d3c9d of _0x38e6e6)this[_0x2c67('0xaf')](_0x2c67('0xd4'),_0x3d3c9d);}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x8d'),(_0x343fb9,_0x27fb6d)=>{const _0x52f7f8=_0x27fb6d[0x0];if(!this[_0x2c67('0xad')]['size'])return;if(!_0x52f7f8[_0x2c67('0x13f')])return;if(_0x52f7f8['batch'][_0x2c67('0x14')]||!_0x52f7f8[_0x2c67('0x15')][_0x2c67('0x12a')])return;let _0x3fc03c,_0xd4e2ab;switch(_0x52f7f8[_0x2c67('0x3b')]){case _0x2c67('0x10b'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x64')]),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;case _0x2c67('0x6c'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0xbd')]),_0xd4e2ab=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x13d')]);break;case'move':_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')]['createPositionAt'](_0x52f7f8['targetPosition']),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;default:return;}const _0x3d835a=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x3fc03c,_0xd4e2ab);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const {suggestion:_0x43d62a,meta:_0x4cf6e9}of this[_0x2c67('0xa6')](_0x3d835a)){if(_0x43d62a[_0x2c67('0x25')])continue;if('formatInline'==_0x43d62a[_0x2c67('0x3b')])continue;const _0x5b4d0a=_0x43d62a[_0x2c67('0xfe')]&&_0x43d62a[_0x2c67('0xfe')][_0x2c67('0xa0')];('formatBlock'!=_0x43d62a[_0x2c67('0x3b')]||_0x2c67('0x6c')==_0x52f7f8[_0x2c67('0x3b')]&&!_0x5b4d0a)&&(_0x4cf6e9[_0x2c67('0x62')]||_0x2c67('0xe8')==_0x43d62a['type']&&_0x4cf6e9[_0x2c67('0x13b')]||_0x43d62a[_0x2c67('0x24')]()['containsRange'](_0x3d835a)&&this[_0x2c67('0x5b')](_0x43d62a,_0x3fc03c,_0xd4e2ab));}});},{'priority':_0x2c67('0xc2')}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x86'),(_0x523459,_0x368b03)=>{const _0x41dbc1=_0x368b03[0x0],_0x4543a4=_0x368b03[0x1];if(_0x4543a4&&_0x4543a4[_0x2c67('0xe')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2c67('0xed')]['value'])return;if(_0x41dbc1[_0x2c67('0x35')])return;const _0x574b75=_0x2e35e1[_0x2c67('0xa7')]['schema'],{start:_0xd823a7,end:_0x54c021}=_0x41dbc1[_0x2c67('0x24')](),_0x5c80f0=_0xd823a7['nodeAfter']&&_0x574b75[_0x2c67('0x8')](_0xd823a7[_0x2c67('0xd0')])?null:_0x574b75[_0x2c67('0x11d')](_0xd823a7,_0x2c67('0x2f')),_0x4b985e=_0x54c021[_0x2c67('0x124')]&&_0x574b75['isLimit'](_0x54c021[_0x2c67('0x124')])?null:_0x574b75['getNearestSelectionRange'](_0x54c021,_0x2c67('0x1c')),_0x2b409e=_0x2e35e1['model'][_0x2c67('0x10f')](_0x5c80f0?_0x5c80f0[_0x2c67('0x122')]:_0xd823a7,_0x4b985e?_0x4b985e[_0x2c67('0xe7')]:_0x54c021);_0x2e35e1['model'][_0x2c67('0x7f')](_0xee82b1=>{this[_0x2c67('0x49')](_0x2b409e);const _0x15feec=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x11d')](_0x2b409e['start']);_0x41dbc1['is']('documentSelection')?_0xee82b1[_0x2c67('0x38')](_0x15feec):_0x41dbc1[_0x2c67('0x8f')](_0x15feec);}),_0x523459['stop']();},{'priority':_0x41fd06['normal']+0xa}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x72'),(_0x4cdb39,_0x5a4ce5)=>{const _0x355738=_0x5a4ce5[_0x5a4ce5['length']-0x1];_0x355738&&_0x355738[_0x2c67('0xe')]||this['_isForcedDefaultExecutionBlock']||this[_0x2c67('0xed')][_0x2c67('0x99')]&&(_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{let _0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x72')](_0x5a4ce5[0x0],_0x5a4ce5[0x1],_0x5a4ce5[0x2],{'forceDefaultExecution':!0x0});if(!_0x46c38f)return;_0x4cdb39['return']=_0x46c38f[_0x2c67('0x26')]();const _0x35b0ee=_0x46c38f[_0x2c67('0xe7')][_0x2c67('0x124')],_0x1bd3f9=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')];_0x35b0ee&&_0x1bd3f9[_0x2c67('0x5c')](_0x35b0ee)&&!_0x1bd3f9[_0x2c67('0xa')](_0x35b0ee)&&(_0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x10f')](_0x46c38f[_0x2c67('0x122')],_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x35b0ee,_0x2c67('0xe7')))),this[_0x2c67('0x5a')](_0x46c38f);}),_0x4cdb39[_0x2c67('0xb9')]());},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x57')]['commands'][_0x2c67('0x2c')]('trackChanges',this[_0x2c67('0xed')]),this['enableCommand'](_0x2c67('0x10e'));const _0x38e133=new _0x37ca99(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')]['add']('acceptSuggestion',_0x38e133),this[_0x2c67('0xcf')](_0x2c67('0x43'));const _0x4b8dc6=new _0x2e678f(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0x73'),_0x4b8dc6),this[_0x2c67('0xcf')](_0x2c67('0x73')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0xf7'),new _0x8fd8(_0x2e35e1,_0x38e133,this['_suggestions'])),this[_0x2c67('0xcf')]('acceptAllSuggestions'),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardAllSuggestions',new _0x8fd8(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this['enableCommand'](_0x2c67('0x16')),_0x2e35e1['commands']['add'](_0x2c67('0xc9'),new _0x5983b4(_0x2e35e1,_0x38e133,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')](_0x2c67('0xc9')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardSelectedSuggestions',new _0x5983b4(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')]('discardSelectedSuggestions');const _0x1ceaff=_0x2e35e1[_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0xe6'));this[_0x2c67('0x6a')](_0x1ceaff,_0x2c67('0xf5'),(_0x29e976,{threadId:_0x4115b7})=>{const _0x4db7e5=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x4115b7);_0x4db7e5&&_0x4db7e5['commentThread']&&0x1===_0x4db7e5[_0x2c67('0x140')]['length']&&this['_updateSuggestionData'](_0x4115b7,{'hasComments':!0x0});},{'priority':_0x2c67('0xd5')}),this['listenTo'](_0x1ceaff,_0x2c67('0xf9'),(_0x149428,{threadId:_0x3d83de})=>{const _0x297574=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3d83de);_0x297574&&_0x297574[_0x2c67('0x140')]&&!_0x297574['commentThread'][_0x2c67('0xb4')]&&this[_0x2c67('0x121')](_0x3d83de,{'hasComments':!0x1});},{'priority':_0x2c67('0xd5')});}set['adapter'](_0x105d6b){if(this[_0x2c67('0x20')])throw new _0x12916d(_0x2c67('0xdc'),this);this[_0x2c67('0x20')]=_0x105d6b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x107610=!0x1,toJSON:_0x2876b5=!0x1}={}){const _0x51ea94=[];for(const _0x36dec8 of this[_0x2c67('0xad')]['values']())_0x107610&&!_0x36dec8[_0x2c67('0x7c')]||_0x51ea94[_0x2c67('0xdb')](_0x36dec8);return _0x2876b5?_0x51ea94[_0x2c67('0x9f')](_0x50d650=>_0x50d650['toJSON']()):_0x51ea94;}[_0x2c67('0xd9')](_0x1b9b1d){const _0x178b32=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x1b9b1d);if(!_0x178b32)throw new _0x12916d('track-changes-suggestion-not-found',this);return _0x178b32;}['hasSuggestion'](_0x1a11b9){return this[_0x2c67('0xad')][_0x2c67('0x9a')](_0x1a11b9);}['addSuggestionData'](_0x2520ee){const {authorId:_0x4b1d83,id:_0xcba6c2,attributes:_0xaa172a}=_0x2520ee,[_0x4be77e,_0x403592]=_0x2520ee[_0x2c67('0x3b')][_0x2c67('0x6c')](':'),_0x3e9815=this[_0x2c67('0xad')][_0x2c67('0xd')](_0xcba6c2)||this[_0x2c67('0xbe')](_0x4be77e,_0x403592,_0xcba6c2,_0x4b1d83,_0xaa172a);if(this[_0x2c67('0x94')](_0x3e9815),this[_0x2c67('0xd6')](_0x3e9815,_0x4be77e,_0x403592||null,_0x4b1d83),_0x3e9815['createdAt']=_0x2520ee[_0x2c67('0xbc')],_0x3e9815[_0x2c67('0x2')]=!0x0,_0xaa172a&&_0xaa172a[_0x2c67('0x83')]){const _0x4d4ff0=_0xaa172a['@external'],_0x262173=this['_getExternalAuthor'](_0x4d4ff0['authorName']);_0x3e9815[_0x2c67('0x7b')]=_0x4d4ff0['createdAt'],_0x3e9815[_0x2c67('0x6b')]=_0x262173,_0x3e9815[_0x2c67('0xca')]=!0x0;}else _0x3e9815[_0x2c67('0x7b')]=_0x2520ee[_0x2c67('0xbc')];switch(_0x2520ee[_0x2c67('0xfe')]&&(_0x3e9815[_0x2c67('0xfe')]=_0x2520ee[_0x2c67('0xfe')]),_0x2520ee['attributes']&&(_0x3e9815[_0x2c67('0x5')]=_0x2520ee['attributes']),this[_0x2c67('0x20')]&&this[_0x2c67('0x20')]['addSuggestion']||(_0x3e9815[_0x2c67('0xab')]=!0x0),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x3e9815)){case'notReady':this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'dataReady');break;case _0x2c67('0x19'):_0x3e9815[_0x2c67('0x7c')]?(this[_0x2c67('0x114')](new Set([_0x3e9815])),this['_joinWithAdjacentSuggestions'](new Set([_0x3e9815])),this[_0x2c67('0x82')]['set'](_0x3e9815,'ready'),this['fire'](_0x2c67('0x55'),_0x3e9815)):this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'removed');}return _0x3e9815;}[_0x2c67('0x43')](_0x2529d6){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x326b58 of _0x2529d6[_0x2c67('0xb3')]())_0x326b58[_0x2c67('0x9d')]();});});}[_0x2c67('0x73')](_0x8855dd){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x11c123 of _0x8855dd[_0x2c67('0xb3')]())_0x11c123[_0x2c67('0x11')]();});});}['enableCommand'](_0x558cb6,_0xed5299){const _0x52c573=this[_0x2c67('0x57')][_0x2c67('0xda')][_0x2c67('0xd')](_0x558cb6);if(!_0x52c573)throw new _0x12916d(_0x2c67('0x125'),this,{'commandName':_0x558cb6});this['_enabledCommands'][_0x2c67('0x2c')](_0x52c573),_0xed5299&&_0x52c573['on'](_0x2c67('0x11b'),(_0x198b55,_0x5886fd)=>{this[_0x2c67('0xed')][_0x2c67('0x99')]&&(this[_0x2c67('0xac')]||_0x5886fd[_0x2c67('0xb4')]>0x0&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1]&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1][_0x2c67('0xe')]||(_0x198b55['return']=_0xed5299((..._0x37088b)=>_0x52c573['execute'](..._0x37088b,{'forceDefaultExecution':!0x0}),..._0x5886fd),_0x198b55[_0x2c67('0xb9')]()));},{'priority':_0x2c67('0x60')});}['forceDefaultExecution'](_0x227f37){let _0x682a45,_0x247e31;const _0x1c3f56=this[_0x2c67('0xac')];this[_0x2c67('0xac')]=!0x0;try{_0x682a45=_0x227f37();}catch(_0x5de538){_0x247e31=_0x5de538;}return _0x1c3f56||(this[_0x2c67('0xac')]=!0x1),_0x247e31&&_0x12916d['rethrowUnexpectedError'](_0x247e31,this),_0x682a45;}[_0x2c67('0x5a')](_0x43ba0c,_0x1e3e48=null,_0x1cda64={}){if(_0x43ba0c[_0x2c67('0x35')])return null;const _0xae5ddb=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')]('Users')['me'];for(const {suggestion:_0x397567,meta:_0x12e7f2}of this[_0x2c67('0xa6')](_0x43ba0c,_0x2c67('0xe8')))if(_0x12e7f2[_0x2c67('0x13b')]){if(!_0x12e7f2[_0x2c67('0xd7')]){if(_0x12e7f2['containsRangeInObject']){if(!this[_0x2c67('0x141')]||!Ot(_0x397567,_0x1cda64))continue;return _0x397567;}if(Ot(_0x397567,_0x1cda64))return _0x397567;this['_breakSuggestionMarker'](_0x397567,_0x43ba0c['start'],_0x43ba0c[_0x2c67('0xe7')]);break;}if(_0x1e3e48==_0x397567['subType']&&Ot(_0x397567,_0x1cda64)){const _0x8d52be=_0x397567[_0x2c67('0x24')]();return _0x8d52be[_0x2c67('0x122')][_0x2c67('0x30')](_0x43ba0c['end'])?this[_0x2c67('0x13c')](_0x397567,this['_model'][_0x2c67('0x10f')](_0x43ba0c[_0x2c67('0x122')],_0x8d52be[_0x2c67('0xe7')])):this[_0x2c67('0x13c')](_0x397567,this[_0x2c67('0x12b')]['createRange'](_0x8d52be[_0x2c67('0x122')],_0x43ba0c['end'])),_0x397567;}}const _0x21fa62=_0x14b3c2(),_0xae02ef=_0xae5ddb['id'],_0x3a867a=_0x1e3e48?_0x2c67('0x11a')+_0x1e3e48:_0x2c67('0xe8'),_0x4dae1d=this['_setSuggestionData']({'id':_0x21fa62,'type':_0x3a867a,'createdAt':new Date(),'authorId':_0xae02ef,'attributes':_0x1cda64});return this[_0x2c67('0xf1')](_0x3a867a,_0x21fa62,_0xae02ef,_0x43ba0c),_0x4dae1d;}[_0x2c67('0xf2')](_0x1d82a0,_0xebbff6=_0x2c67('0x104'),_0x201025={}){const _0xa5be83=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x44'))['me'],_0x100469=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0xe8'),_0xebbff6,_0x2c67('0x3d'));for(const _0x44ead9 of this[_0x2c67('0x47')]())if(_0x44ead9[_0x2c67('0x6b')]['id']==_0xa5be83['id']&&'insertion'==_0x44ead9[_0x2c67('0x3b')]&&_0x44ead9[_0x2c67('0x12e')]==_0xebbff6&&Ot(_0x44ead9,_0x201025)&&(_0x100469(_0x44ead9[_0x2c67('0x13e')](),_0x1d82a0)||_0x100469(_0x1d82a0,_0x44ead9[_0x2c67('0x13e')]()))){for(const _0x5b2553 of _0x1d82a0)_0x44ead9[_0x2c67('0x136')](_0x5b2553);return _0x44ead9;}for(const {suggestion:_0x202ff7,meta:_0x4dddfb}of this[_0x2c67('0xa6')](_0x1d82a0,'insertion')){if(!_0x4dddfb['isOwn'])continue;if(!this[_0x2c67('0x141')]&&_0x4dddfb['containsRangeInObject'])continue;if(!Ot(_0x202ff7,_0x201025))continue;let _0x557734=!0x0;for(const _0x425c57 of _0x202ff7['getRanges']())for(const _0x2af66c of _0x1d82a0)if(!_0x425c57[_0x2c67('0x118')](_0x2af66c)){_0x557734=!0x1;break;}if(_0x557734)return _0x202ff7;}const _0x2c91b2=_0x14b3c2(),_0x3e86a4=_0xa5be83['id'],_0x53bdb5='insertion:'+_0xebbff6,_0x390451=this[_0x2c67('0x3c')]({'id':_0x2c91b2,'type':_0x53bdb5,'createdAt':new Date(),'authorId':_0x3e86a4,'attributes':_0x201025});for(const _0x548ca8 of _0x1d82a0)this[_0x2c67('0xf1')](_0x53bdb5,_0x2c91b2,_0x3e86a4,_0x548ca8,_0x368607['getMultiRangeId']());return _0x390451;}[_0x2c67('0x95')](_0x49697a,_0x434517,_0x5158ec=null,_0x3fe7eb={}){if(_0x5158ec=_0x5158ec||Nt(_0x434517),_0x49697a[_0x2c67('0x35')])return null;if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x5b0834=this[_0x2c67('0xc1')]['getSuggestionCallback']('formatInline',_0x5158ec,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5b0834([_0x49697a],_0x434517,_0x3fe7eb)),null;}const _0x140c97=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'],_0x265b54=[];if(_0x2c67('0x7d')!==this['_trackFormatChanges'])for(const {suggestion:_0x2c19a7,meta:_0x171c7a}of this[_0x2c67('0xa6')](_0x49697a,_0x2c67('0xe8')))_0x171c7a[_0x2c67('0x13b')]&&!_0x171c7a['isInsideObject']&&_0x265b54[_0x2c67('0xdb')](..._0x2c19a7['getRanges']());const _0x9ea269=function(_0x52262c,_0x5b7159){const _0x52b49f=[];for(const _0x336a94 of _0x5b7159){const _0x3b7d0a=_0x52262c[_0x2c67('0x90')](_0x336a94);_0x3b7d0a&&_0x52b49f['push'](_0x3b7d0a);}return _0x52b49f;}(_0x49697a,_0x265b54),_0x4d066d=function(_0x220be1,_0x2fc881){const _0x27b7fb=[_0x220be1];for(const _0x28ee14 of _0x2fc881){let _0x544e2b=0x0;for(;_0x544e2b<_0x27b7fb[_0x2c67('0xb4')];){const _0x253b37=_0x27b7fb[_0x544e2b][_0x2c67('0x61')](_0x28ee14);_0x27b7fb[_0x2c67('0xdd')](_0x544e2b,0x1,..._0x253b37),_0x544e2b+=_0x253b37[_0x2c67('0xb4')];}}return _0x27b7fb;}(_0x49697a,_0x265b54);_0x9ea269['length']&&this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x5122d1 of _0x9ea269){const _0x429ffb=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0xf0'),_0x5158ec,'accept');this[_0x2c67('0xe')](()=>_0x429ffb([_0x5122d1],_0x434517,_0x3fe7eb));}});for(const _0x2adf99 of _0x4d066d){let _0x3d93a1=null,_0x33bbe2=_0x2adf99[_0x2c67('0x122')],_0x461cbe=_0x2adf99['end'];for(const {suggestion:_0xf9ad05,meta:_0x89753a}of this[_0x2c67('0xa6')](_0x2adf99,_0x2c67('0xf0'))){if(!_0x89753a[_0x2c67('0x13b')])continue;if(_0xf9ad05['subType']!=_0x5158ec)continue;if(!Ot(_0xf9ad05,_0x3fe7eb))continue;const _0x990c30=_0xf9ad05['getFirstRange']();if(_0x990c30['containsRange'](_0x2adf99,!0x0))return null;_0x33bbe2=_0x33bbe2[_0x2c67('0x67')](_0x990c30['start'])?_0x33bbe2:_0x990c30['start'],_0x461cbe=_0x461cbe[_0x2c67('0xf3')](_0x990c30[_0x2c67('0xe7')])?_0x461cbe:_0x990c30[_0x2c67('0xe7')],_0x3d93a1?_0x990c30['start'][_0x2c67('0x67')](_0x3d93a1[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x3d93a1[_0x2c67('0x1f')](),_0x3d93a1=_0xf9ad05):_0xf9ad05[_0x2c67('0x1f')]():_0x3d93a1=_0xf9ad05;}const _0x132c02=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x33bbe2,_0x461cbe);if(_0x3d93a1)this[_0x2c67('0x13c')](_0x3d93a1,_0x132c02);else{const _0x285d5c=_0x14b3c2(),_0x330627=_0x140c97['id'];this[_0x2c67('0x3c')]({'id':_0x285d5c,'type':_0x2c67('0x59')+_0x5158ec,'data':_0x434517,'createdAt':new Date(),'authorId':_0x330627,'attributes':_0x3fe7eb}),this[_0x2c67('0xf1')](_0x2c67('0x59')+_0x5158ec,_0x285d5c,_0x330627,_0x132c02);}}return null;}['markBlockFormat'](_0x579461,_0x4b842c,_0x3004ad=[],_0x6377cb=null,_0x3e872a={}){_0x4b842c[_0x2c67('0x4')]||(_0x4b842c[_0x2c67('0x4')]=_0x4b842c['commandName']),_0x4b842c[_0x2c67('0xa0')]=_0x579461['is'](_0x2c67('0x7a')),_0x6377cb=_0x6377cb||Nt(_0x4b842c);const _0x2a12fa=_0x3004ad[_0x2c67('0x9f')](_0xba290d=>jt(_0xba290d,this[_0x2c67('0x12b')])),_0x1442b6=_0x579461['is']('range')?_0x579461:jt(_0x579461,this[_0x2c67('0x12b')]);if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x3c7ac0=this[_0x2c67('0xc1')]['getSuggestionCallback'](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x3c7ac0([_0x1442b6],_0x4b842c,_0x3e872a)),null;}_0x2a12fa['push'](_0x1442b6);let _0x1a5da3=!0x0;for(const _0x37a3e7 of _0x2a12fa)if(!this['_rangeIsInLocalUserInsertion'](_0x37a3e7)){_0x1a5da3=!0x1;break;}if(_0x1a5da3&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x303921=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x303921([_0x1442b6],_0x4b842c,_0x3e872a)),null;}let _0x560074=null,_0x40322d=_0x1442b6[_0x2c67('0x122')],_0x1cb8f4=_0x1442b6[_0x2c67('0xe7')];for(const {suggestion:_0x366725,meta:_0x193e44}of this[_0x2c67('0xa6')](_0x1442b6,_0x2c67('0x1b'))){if(!_0x193e44[_0x2c67('0x13b')])continue;if(_0x193e44[_0x2c67('0xd7')]||_0x193e44[_0x2c67('0x62')]||_0x193e44['isInsideObject'])continue;if(_0x366725[_0x2c67('0xfe')]['formatGroupId']!=_0x4b842c[_0x2c67('0x4')])continue;if(!Ot(_0x366725,_0x3e872a))continue;const _0x535f9f=_0x366725[_0x2c67('0x24')]();if(_0x366725[_0x2c67('0x12e')]==_0x6377cb){if(_0x535f9f[_0x2c67('0x118')](_0x1442b6,!0x0))return null;_0x40322d=_0x40322d[_0x2c67('0x67')](_0x535f9f['start'])?_0x40322d:_0x535f9f['start'],_0x1cb8f4=_0x1cb8f4[_0x2c67('0xf3')](_0x535f9f[_0x2c67('0xe7')])?_0x1cb8f4:_0x535f9f[_0x2c67('0xe7')],_0x560074?_0x535f9f[_0x2c67('0x122')][_0x2c67('0x67')](_0x560074['getFirstRange']()[_0x2c67('0x122')])?(_0x560074[_0x2c67('0x1f')](),_0x560074=_0x366725):_0x366725[_0x2c67('0x1f')]():_0x560074=_0x366725;}else{const _0x438262=_0x1442b6[_0x2c67('0x90')](_0x535f9f);this[_0x2c67('0x132')](_0x366725,_0x438262);}}const _0x557f6c=this[_0x2c67('0x57')]['plugins']['get'](_0x2c67('0x44'))['me'],_0x1856f7=_0x14b3c2(),_0x46f408=_0x557f6c['id'];if(_0x560074)return this[_0x2c67('0x13c')](_0x560074,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x560074;{const _0x4fa710=this[_0x2c67('0x3c')]({'id':_0x1856f7,'type':'formatBlock:'+_0x6377cb,'data':_0x4b842c,'createdAt':new Date(),'authorId':_0x46f408,'attributes':_0x3e872a});return this['_addSuggestionMarker'](_0x2c67('0x53')+_0x6377cb,_0x1856f7,_0x46f408,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x4fa710;}}[_0x2c67('0x9c')](_0x31ac20,_0x40dd3b,_0x2f5873=[],_0xd85339=null,_0x3c6bcd={}){_0x40dd3b['formatGroupId']||(_0x40dd3b[_0x2c67('0x4')]=_0x40dd3b[_0x2c67('0xff')]);const _0x31139c=_0x31ac20[0x0];_0x40dd3b[_0x2c67('0xa0')]=_0x31139c['is']('range'),_0xd85339=_0xd85339||Nt(_0x40dd3b);const _0x570394=_0x2f5873[_0x2c67('0x9f')](_0x3cdf54=>jt(_0x3cdf54,this[_0x2c67('0x12b')])),_0xcb5480=_0x31139c['is']('range')?_0x31ac20:_0x31ac20[_0x2c67('0x9f')](_0x1805fa=>jt(_0x1805fa,this[_0x2c67('0x12b')]));if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x18b03a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd85339,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x18b03a(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}_0x570394[_0x2c67('0xdb')](..._0xcb5480);let _0x48dbd9=!0x0;for(const _0x56ee43 of _0x570394)if(!this['_rangeIsInLocalUserInsertion'](_0x56ee43)){_0x48dbd9=!0x1;break;}if(_0x48dbd9&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x1a9d67=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x1a9d67(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}const _0x144181=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];for(const _0x1cc35d of this['getSuggestions']()){if(_0x1cc35d[_0x2c67('0x6b')]['id']!=_0x144181['id'])continue;if('formatBlock'!=_0x1cc35d['type']||_0x1cc35d[_0x2c67('0xfe')][_0x2c67('0x4')]!=_0x40dd3b[_0x2c67('0x4')])continue;if(!Ot(_0x1cc35d,_0x3c6bcd))continue;const _0x3c68de=_0x1cc35d['subType']==_0xd85339;for(let _0x28481e=0x0;_0x28481e<_0xcb5480[_0x2c67('0xb4')];_0x28481e++){const _0x4fa39a=_0xcb5480[_0x28481e];for(const _0x4482f1 of _0x1cc35d[_0x2c67('0x2a')]()){const _0x2915d1=_0x4482f1['getRange']();if(_0x4fa39a[_0x2c67('0x30')](_0x2915d1)){_0x3c68de?(_0xcb5480[_0x2c67('0xdd')](_0x28481e,0x1),_0x28481e--):_0x1cc35d[_0x2c67('0x100')](_0x4482f1['name']);break;}}}}if(0x0==_0xcb5480[_0x2c67('0xb4')])return null;const _0x387063=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,'join');for(const _0xccb967 of this[_0x2c67('0x47')]())if(_0xccb967['author']['id']==_0x144181['id']&&_0x2c67('0x1b')==_0xccb967[_0x2c67('0x3b')]&&_0xccb967[_0x2c67('0xfe')][_0x2c67('0x4')]==_0x40dd3b[_0x2c67('0x4')]&&_0xccb967['subType']==_0xd85339&&Ot(_0xccb967,_0x3c6bcd)&&(_0x387063(_0xccb967[_0x2c67('0x13e')](),_0xcb5480)||_0x387063(_0xcb5480,_0xccb967[_0x2c67('0x13e')]()))){for(const _0x3c5031 of _0xcb5480)_0xccb967[_0x2c67('0x136')](_0x3c5031);return _0xccb967;}const _0x58c7e0=_0x14b3c2(),_0x4aa7cb=_0x144181['id'],_0x5736dd=_0x2c67('0x53')+_0xd85339,_0xdbf4a5=this[_0x2c67('0x3c')]({'id':_0x58c7e0,'type':_0x5736dd,'data':_0x40dd3b,'createdAt':new Date(),'authorId':_0x4aa7cb,'attributes':_0x3c6bcd});for(const _0xf8cd5b of _0xcb5480)this['_addSuggestionMarker'](_0x5736dd,_0x58c7e0,_0x4aa7cb,_0xf8cd5b,_0x368607[_0x2c67('0xb7')]());return _0xdbf4a5;}['markDeletion'](_0x5c7f0e,_0x556165=null,_0x281c8b={}){if(_0x5c7f0e[_0x2c67('0x35')])return null;const _0x4cf962=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x4f939d=new _0x2a689f(_0x5c7f0e['start'],_0x5c7f0e['end']);for(const {suggestion:_0x178438,meta:_0x5dbc48}of this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0xe8')))if(_0x5dbc48[_0x2c67('0x13b')]&&!_0x5dbc48[_0x2c67('0xd7')]){if(_0x178438['isMultiRange']){const _0x421a26=_0x178438[_0x2c67('0x13e')]()[_0x2c67('0x130')](_0x4c4ddf=>_0x2c67('0xd3')!=_0x4c4ddf[_0x2c67('0x42')][_0x2c67('0x111')]);_0x421a26[_0x2c67('0xe1')](_0x77b50a=>_0x4f939d[_0x2c67('0x118')](_0x77b50a,!0x0))&&_0x178438[_0x2c67('0x11')]();if(_0x421a26[_0x2c67('0x4e')](_0x102fab=>_0x102fab[_0x2c67('0x118')](_0x4f939d,!0x0))){const _0x3186e0=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x556165,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x3186e0([_0x4f939d],null,_0x281c8b)),null;}}else{const _0x14e74e=_0x4f939d[_0x2c67('0x90')](_0x178438[_0x2c67('0x24')]());null!==_0x14e74e&&_0x178438[_0x2c67('0x8a')]([_0x14e74e],null,_0x281c8b);}}if(_0x4f939d[_0x2c67('0x135')](),_0x4f939d[_0x2c67('0x35')]||_0x2c67('0xd3')==_0x4f939d[_0x2c67('0x42')][_0x2c67('0x111')])return null;let _0x107b3e=null,_0x53332a=_0x4f939d[_0x2c67('0x122')],_0x2c3060=_0x4f939d[_0x2c67('0xe7')];const _0x303efe=this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0x3a'));for(const {suggestion:_0x51faeb,meta:_0x1d40cb}of _0x303efe){const _0x41cce3=this['_model']['createRange'](_0x53332a,_0x2c3060);if(_0x1d40cb[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x1d40cb[_0x2c67('0x62')]&&!_0x1d40cb[_0x2c67('0x3e')])){if(_0x51faeb['isMultiRange']){if(!Ot(_0x51faeb,_0x281c8b))continue;let _0x1949ab=!0x0;for(const _0x2e9652 of _0x51faeb[_0x2c67('0x13e')]()){if(_0x2e9652[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;_0x41cce3[_0x2c67('0x118')](_0x2e9652)||(_0x1949ab=!0x1);}_0x1949ab&&_0x51faeb[_0x2c67('0x11')]();}else{const _0x48a02b=_0x51faeb[_0x2c67('0x24')]();if(_0x48a02b[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;if(!Ot(_0x51faeb,_0x281c8b)){_0x41cce3[_0x2c67('0x118')](_0x48a02b)?_0x51faeb[_0x2c67('0x1f')]():_0x48a02b[_0x2c67('0x66')](_0x53332a)?_0x53332a=_0x48a02b[_0x2c67('0xe7')]:_0x48a02b[_0x2c67('0x66')](_0x2c3060)&&(_0x2c3060=_0x48a02b[_0x2c67('0x122')]);continue;}_0x53332a=_0x53332a[_0x2c67('0x67')](_0x48a02b[_0x2c67('0x122')])?_0x53332a:_0x48a02b[_0x2c67('0x122')],_0x2c3060=_0x2c3060[_0x2c67('0xf3')](_0x48a02b[_0x2c67('0xe7')])?_0x2c3060:_0x48a02b[_0x2c67('0xe7')],_0x281c8b=Object[_0x2c67('0xc5')]({},_0x51faeb['attributes']),_0x107b3e?_0x48a02b[_0x2c67('0x122')][_0x2c67('0x67')](_0x107b3e[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x107b3e[_0x2c67('0x1f')](),_0x107b3e=_0x51faeb):_0x51faeb[_0x2c67('0x1f')]():_0x107b3e=_0x51faeb;}}}if(_0x107b3e)return this[_0x2c67('0x13c')](_0x107b3e,this[_0x2c67('0x12b')]['createRange'](_0x53332a,_0x2c3060)),_0x107b3e;{const _0x184573=_0x14b3c2(),_0x551749=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x53332a,_0x2c3060),_0x126073=_0x4cf962['id'],_0x3bcfc9=_0x556165?_0x2c67('0x103')+_0x556165:'deletion',_0x1384fa=this['_setSuggestionData']({'id':_0x184573,'type':_0x3bcfc9,'createdAt':new Date(),'authorId':_0x126073,'attributes':_0x281c8b});return this[_0x2c67('0xf1')](_0x3bcfc9,_0x184573,_0x126073,_0x551749),_0x1384fa;}}['markMultiRangeDeletion'](_0x3c589c,_0x34406c=_0x2c67('0x104'),_0x50ba1c={}){const _0x46c7fd=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x5a9353=_0x3c589c['map'](_0x25a476=>new _0x2a689f(_0x25a476[_0x2c67('0x122')],_0x25a476[_0x2c67('0xe7')])),_0x513260=new Set();for(const {suggestion:_0xe1875e,meta:_0x3b061c}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0xe8')))_0x3b061c[_0x2c67('0x13b')]&&!_0x3b061c[_0x2c67('0xd7')]&&_0x513260[_0x2c67('0x2c')](_0xe1875e);for(const _0x3f443c of _0x513260)if(_0x3f443c[_0x2c67('0x25')]){const _0x449ecc=_0x3f443c[_0x2c67('0x13e')]();(!_0x3f443c['attributes']||!_0x3f443c['attributes']['skipNestingCheck'])&&(_0x449ecc[_0x2c67('0xe1')](_0x510b28=>_0x5a9353[_0x2c67('0x4e')](_0x1ccce9=>_0x1ccce9['containsRange'](_0x510b28,!0x0)))&&_0x3f443c['discard']());if(_0x5a9353[_0x2c67('0xe1')](_0x1d7c63=>_0x449ecc[_0x2c67('0x4e')](_0x3fa2be=>_0x3fa2be[_0x2c67('0x118')](_0x1d7c63,!0x0)))){const _0x5ee53d=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5ee53d(_0x3c589c,null,_0x50ba1c)),null;}}else{const _0x16a9d1=_0x3f443c[_0x2c67('0x24')]();_0x5a9353[_0x2c67('0x4e')](_0x2ba01c=>_0x2ba01c['containsRange'](_0x16a9d1,!0x0))&&_0x3f443c[_0x2c67('0x11')]();if(_0x5a9353[_0x2c67('0xe1')](_0x49a90f=>_0x16a9d1['containsRange'](_0x49a90f,!0x0))){const _0x234dd4=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x234dd4(_0x5a9353,null,_0x50ba1c)),null;}}const _0x37e179=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x3d'));let _0xe19f97=null;for(const _0x48d2d0 of this[_0x2c67('0x47')]())if(_0x48d2d0[_0x2c67('0x6b')]['id']==_0x46c7fd['id']&&_0x48d2d0[_0x2c67('0x7c')]&&_0x2c67('0x3a')==_0x48d2d0['type']&&_0x48d2d0['subType']==_0x34406c&&Ot(_0x48d2d0,_0x50ba1c)&&(_0x37e179(_0x48d2d0[_0x2c67('0x13e')](),_0x5a9353)||_0x37e179(_0x5a9353,_0x48d2d0[_0x2c67('0x13e')]()))){if(_0xe19f97){if(_0x48d2d0[_0x2c67('0x140')]&&_0x48d2d0[_0x2c67('0x140')][_0x2c67('0xb4')])continue;for(const _0x3fc9c6 of _0x48d2d0[_0x2c67('0x13e')]())_0xe19f97[_0x2c67('0x52')](_0x3fc9c6)||_0xe19f97['addRange'](_0x3fc9c6);_0x48d2d0[_0x2c67('0x1f')]();}else{_0xe19f97=_0x48d2d0;for(const _0x2b2dc7 of _0x5a9353)_0x48d2d0[_0x2c67('0x52')](_0x2b2dc7)||_0x48d2d0['addRange'](_0x2b2dc7);}}if(_0xe19f97)return _0xe19f97;_0x513260[_0x2c67('0xcd')]();for(const {suggestion:_0x42ebae,meta:_0x4df149}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0x3a')))_0x4df149[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x4df149[_0x2c67('0x62')]&&!_0x4df149[_0x2c67('0x3e')])&&Ot(_0x42ebae,_0x50ba1c)&&_0x513260['add'](_0x42ebae);for(const _0x3fdefa of _0x513260){const _0x532839=_0x3fdefa[_0x2c67('0x13e')]();if(!_0x50ba1c||!_0x50ba1c[_0x2c67('0x74')]){if(_0x5a9353['every'](_0x589c07=>_0x532839[_0x2c67('0x4e')](_0x2256a1=>_0x2256a1['containsRange'](_0x589c07,!0x0))))return _0x3fdefa;}(!_0x3fdefa[_0x2c67('0x5')]||!_0x3fdefa[_0x2c67('0x5')][_0x2c67('0x74')])&&(_0x532839['every'](_0xb280a=>_0x5a9353[_0x2c67('0x4e')](_0x59bc5f=>_0x59bc5f[_0x2c67('0x118')](_0xb280a,!0x0)))&&_0x3fdefa[_0x2c67('0x11')]());}const _0x3579b9=_0x14b3c2(),_0x1fa3f4=_0x46c7fd['id'],_0x3f91f6='deletion:'+_0x34406c,_0x1712d5=this[_0x2c67('0x3c')]({'id':_0x3579b9,'type':_0x3f91f6,'createdAt':new Date(),'authorId':_0x1fa3f4,'attributes':_0x50ba1c});for(const _0x4a226d of _0x5a9353)_0x4a226d[_0x2c67('0x135')](),_0x4a226d['isCollapsed']||_0x2c67('0xd3')==_0x4a226d[_0x2c67('0x42')][_0x2c67('0x111')]||this[_0x2c67('0xf1')](_0x3f91f6,_0x3579b9,_0x1fa3f4,_0x4a226d,_0x368607[_0x2c67('0xb7')]());return _0x1712d5;}[_0x2c67('0x13c')](_0x2d2a42,_0x5e33a9){const _0x1dd409=_0x2d2a42[_0x2c67('0x81')]();this['_model']['change'](_0x5b2eb9=>{_0x5b2eb9['updateMarker'](_0x1dd409,{'range':_0x5e33a9});});}[_0x2c67('0x94')](_0x25d421){const _0x52cae5=_0x25d421['id'],_0x4d167b=this['editor'][_0x2c67('0x139')][_0x2c67('0xd')](_0x2c67('0xa1'));this[_0x2c67('0x128')][_0x2c67('0x101')](_0x52cae5)||this[_0x2c67('0x128')][_0x2c67('0x33')]({'channelId':_0x4d167b,'threadId':_0x52cae5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e721c=this['_commentsRepository'][_0x2c67('0x6e')](_0x52cae5);_0x1e721c[_0x2c67('0xb1')](_0x2c67('0x106')),_0x1e721c[_0x2c67('0x106')]=!0x1,_0x25d421[_0x2c67('0x140')]=_0x1e721c;}[_0x2c67('0xd6')](_0x4af61a,_0x46e861,_0x5fe775,_0x285fc4){if(_0x4af61a[_0x2c67('0x3b')]!=_0x46e861||_0x4af61a['subType']!=_0x5fe775||_0x4af61a[_0x2c67('0xaa')]['id']!=_0x285fc4)throw this['editor'][_0x2c67('0x3')]('track-changes-suggestion-data-mismatch'),new _0x12916d('track-changes-suggestion-data-mismatch',this);}[_0x2c67('0x132')](_0x2babfb,_0x4b554c){const _0x60d258=_0x2babfb[_0x2c67('0x24')]();if(_0x4b554c[_0x2c67('0x30')](_0x60d258))_0x2babfb[_0x2c67('0x1f')]();else{if(_0x60d258[_0x2c67('0x118')](_0x4b554c)){const _0x248487=this['_model'][_0x2c67('0xa2')](_0x4b554c['start'][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x60d258[_0x2c67('0x122')],_0x248487));const _0x271997=_0x14b3c2(),_0x133bd0=_0x2babfb['creator']['id'],_0x480bd4=_0x2babfb[_0x2c67('0x3b')]+':'+_0x2babfb[_0x2c67('0x12e')];this[_0x2c67('0x3c')]({'id':_0x271997,'type':_0x480bd4,'createdAt':new Date(),'authorId':_0x133bd0,'data':_0x2babfb['data'],'attributes':_0x2babfb[_0x2c67('0x5')]});const _0x2fb6f2=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0xe7')][_0x2c67('0x80')],_0x2c67('0xc4')),_0x3ff70b=this[_0x2c67('0x12b')]['createRange'](_0x2fb6f2,_0x60d258['end']);this[_0x2c67('0xf1')](_0x480bd4,_0x271997,_0x133bd0,_0x3ff70b);}else{if(_0x60d258[_0x2c67('0x66')](_0x4b554c[_0x2c67('0x122')])){const _0x537dd4=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0x122')][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this['_model']['createRange'](_0x60d258[_0x2c67('0x122')],_0x537dd4));}else{const _0x7af79e=this[_0x2c67('0x12b')]['createPositionAt'](_0x4b554c[_0x2c67('0xe7')]['parent'],_0x2c67('0xc4'));this['_setSuggestionRange'](_0x2babfb,this['_model'][_0x2c67('0x10f')](_0x7af79e,_0x60d258['end']));}}}}[_0x2c67('0x78')](_0xd0e464){for(const {suggestion:_0x499b17,meta:_0xcd146c}of this[_0x2c67('0xa6')](_0xd0e464,_0x2c67('0xe8'))){if(!_0xcd146c[_0x2c67('0x13b')])continue;const _0x1f4d75=_0x499b17['getRanges']();for(const _0x2d3bee of _0x1f4d75)if(!_0xd0e464['getDifference'](_0x2d3bee)[_0x2c67('0xb4')])return!0x0;}return!0x1;}[_0x2c67('0x10')](_0x239721){const _0x222810=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')[_0x2c67('0x54')](_0x239721);if(!_0x222810)throw new _0x12916d(_0x2c67('0x12f'),this);return _0x222810;}[_0x2c67('0xdf')](_0x4b2f41){const _0x33685e=this['editor']['plugins'][_0x2c67('0xd')](_0x2c67('0x44')),_0x3ffa3a=_0x26d881(_0x2c67('0xb0')+_0x4b2f41),_0x4de70a=_0x33685e[_0x2c67('0x54')](_0x3ffa3a);return _0x4de70a||_0x33685e['addUser']({'id':_0x3ffa3a,'name':_0x4b2f41});}['_createSuggestion'](_0x2619b4,_0x3d4c77,_0x5e4687,_0x38944d,_0x5403c5){const _0x386411=this[_0x2c67('0x10')](_0x38944d),_0x1be287=this[_0x2c67('0xc1')][_0x2c67('0x87')](_0x2619b4,_0x3d4c77,_0x5e4687,_0x386411,_0x5403c5,_0x10f763=>this[_0x2c67('0x121')](_0x5e4687,{'attributes':_0x10f763}));return this[_0x2c67('0x6a')](_0x1be287,_0x2c67('0x9d'),()=>{this[_0x2c67('0x121')](_0x5e4687,{'state':_0x2c67('0x0')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x6a')](_0x1be287,'discard',()=>{this['_updateSuggestionData'](_0x5e4687,{'state':_0x2c67('0x39')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0xad')][_0x2c67('0x112')](_0x5e4687,_0x1be287),this[_0x2c67('0x82')][_0x2c67('0x112')](_0x1be287,_0x2c67('0x21')),_0x1be287;}[_0x2c67('0xe2')](_0x3f63cf){const _0xa6da8=_0x3f63cf[_0x2c67('0x6c')](':');return{'group':_0xa6da8[0x0],'type':_0xa6da8[0x1],'subType':_0xa6da8[_0x2c67('0xb4')]>=0x5?_0xa6da8[0x2]:null,'id':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x2]:_0xa6da8[0x3],'authorId':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x3]:_0xa6da8[0x4],'markerCount':0x6==_0xa6da8[_0x2c67('0xb4')]?_0xa6da8[0x5]:null};}[_0x2c67('0x5b')](_0x258334,_0xf6344a,_0x15e3e6){const _0x5e4212=_0x258334[_0x2c67('0x24')](),_0x2a95c4=_0x5e4212[_0x2c67('0x122')],_0x5c976b=_0x5e4212[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x258334,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x2a95c4,_0xf6344a));const _0x5b989e=_0x14b3c2(),_0x311d8f=_0x258334[_0x2c67('0xaa')]['id'],_0xe95f66=_0x258334[_0x2c67('0x3b')]+(_0x258334['subType']?':'+_0x258334[_0x2c67('0x12e')]:'');this[_0x2c67('0x3c')]({'id':_0x5b989e,'type':_0xe95f66,'createdAt':new Date(),'authorId':_0x311d8f,'originalSuggestionId':_0x258334['id'],'attributes':_0x258334['attributes'],'data':_0x258334[_0x2c67('0xfe')]}),'formatBlock'==_0x258334[_0x2c67('0x3b')]&&(_0x15e3e6=this['_model']['createPositionBefore'](_0x15e3e6['parent'])),this[_0x2c67('0xf1')](_0xe95f66,_0x5b989e,_0x311d8f,this[_0x2c67('0x12b')]['createRange'](_0x15e3e6,_0x5c976b));}[_0x2c67('0xa6')](_0x14e3e2,_0x257d04=null){const _0x11d162=[],_0x345ebe=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];Array[_0x2c67('0xb8')](_0x14e3e2)||(_0x14e3e2=[_0x14e3e2]);for(const _0x4d8fce of this[_0x2c67('0x47')]()){if(!_0x4d8fce[_0x2c67('0x7c')])continue;if(_0x257d04&&_0x4d8fce[_0x2c67('0x3b')]!=_0x257d04)continue;let _0x1aab04=!0x1;for(const _0x4229ed of _0x4d8fce['getRanges']()){for(const _0x20885a of _0x14e3e2){const _0xd37a32=_0x20885a[_0x2c67('0x122')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0xe7')])||_0x20885a[_0x2c67('0xe7')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0x122')]);if(_0xd37a32||_0x20885a[_0x2c67('0x90')](_0x4229ed)){const _0xb46809=_0x20885a['containsRange'](_0x4229ed)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x4229ed[_0x2c67('0x122')],_0x20885a),_0xe52eb3=_0x4229ed[_0x2c67('0x118')](_0x20885a)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x20885a[_0x2c67('0x122')],_0x4229ed);_0x11d162[_0x2c67('0xdb')]({'suggestion':_0x4d8fce,'meta':{'isOwn':_0x345ebe==_0x4d8fce['author'],'isNextTo':_0xd37a32,'isInsideObject':_0xb46809,'containsRangeInObject':_0xe52eb3}}),_0x1aab04=!0x0;break;}}if(_0x1aab04)break;}}return _0x11d162;}[_0x2c67('0xf1')](_0x14c0e3,_0x595b96,_0x9ab734,_0x15e0a1,_0xc9f1f0){this['_model'][_0x2c67('0x7f')](_0x1561d4=>{let _0x13649f='suggestion:'+_0x14c0e3+':'+_0x595b96+':'+_0x9ab734;_0xc9f1f0&&(_0x13649f=_0x13649f+':'+_0xc9f1f0),_0x1561d4[_0x2c67('0x98')](_0x13649f,{'range':_0x15e0a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x577380){const _0x2dcca5=_0x577380[_0x2c67('0xea')],_0x11f972=_0x577380[_0x2c67('0xfa')];_0x577380[_0x2c67('0xea')]=null,null!=_0x2dcca5&&(_0x2dcca5['next']=null),_0x577380[_0x2c67('0xfa')]=null,null!=_0x11f972&&(_0x11f972[_0x2c67('0xea')]=null),_0x2c67('0x127')==this['_suggestionState'][_0x2c67('0xd')](_0x577380)&&(this['_suggestionState'][_0x2c67('0x112')](_0x577380,'removed'),this[_0x2c67('0xaf')]('suggestionUnloaded',_0x577380,_0x2dcca5,_0x11f972));}[_0x2c67('0x3c')](_0x293bab){const _0x157319=_0x293bab['id'],_0x4808a9=this['addSuggestionData'](_0x293bab);if(this[_0x2c67('0x20')]&&this[_0x2c67('0x20')][_0x2c67('0x41')]){const _0x422583=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x9')),_0x382e50=_0x4808a9[_0x2c67('0xc7')],_0x266db7=_0x4808a9['subType']?_0x4808a9[_0x2c67('0x3b')]+':'+_0x4808a9[_0x2c67('0x12e')]:_0x4808a9[_0x2c67('0x3b')],_0x34325d=this[_0x2c67('0x57')]['locale'],_0x40a5c8=_0x422583[_0x2c67('0x2c')](_0x243cd0(_0x34325d,_0x2c67('0x3f'))),_0x299a5a={'id':_0x157319,'type':_0x266db7,'hasComments':_0x382e50,'data':_0x293bab[_0x2c67('0xfe')]||null,'originalSuggestionId':_0x293bab[_0x2c67('0x89')]||null,'attributes':_0x4808a9[_0x2c67('0x5')]};this[_0x2c67('0x20')][_0x2c67('0x41')](_0x299a5a)[_0x2c67('0x117')](_0x1d05ba=>{_0x4808a9['_saved']=!0x0,_0x422583[_0x2c67('0x110')](_0x40a5c8),_0x1d05ba&&_0x1d05ba[_0x2c67('0xbc')]&&(this[_0x2c67('0xad')]['get'](_0x157319)[_0x2c67('0xbc')]=_0x1d05ba[_0x2c67('0xbc')]);})['catch'](_0x51ce95=>{throw _0x34eed0(_0x2c67('0x93')),this['editor'][_0x2c67('0xa7')][_0x2c67('0x48')]({'isUndoable':!0x1},()=>{_0x4808a9[_0x2c67('0x11')]();}),_0x4808a9[_0x2c67('0xce')](),this[_0x2c67('0xad')][_0x2c67('0x1a')](_0x4808a9['id']),this[_0x2c67('0x82')]['delete'](_0x4808a9),_0x51ce95;});}return _0x4808a9;}[_0x2c67('0x121')](_0x192139,_0x547021){const _0x52ae47=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')](_0x2c67('0x9')),_0x34f4ab=this['getSuggestion'](_0x192139);if(this['_adapter']&&this['_adapter'][_0x2c67('0x88')]){if(_0x34f4ab[_0x2c67('0xab')]){const _0x312aca=_0x52ae47[_0x2c67('0x2c')](_0x243cd0(this[_0x2c67('0x57')][_0x2c67('0xa8')],'PENDING_ACTION_SUGGESTION'));this[_0x2c67('0x20')][_0x2c67('0x88')](_0x192139,_0x547021)[_0x2c67('0x117')](()=>{_0x52ae47['remove'](_0x312aca);});}else _0x34f4ab['on'](_0x2c67('0x7e'),()=>{this[_0x2c67('0x121')](_0x192139,_0x547021);});}}[_0x2c67('0x13a')](_0x33abed){if(!this[_0x2c67('0x20')]||!this[_0x2c67('0x20')][_0x2c67('0xd9')])throw new _0x12916d(_0x2c67('0xe3'),this);return this[_0x2c67('0x20')][_0x2c67('0xd9')](_0x33abed);}['_handleNewSuggestionMarker'](_0x1ec224){const {id:_0x1ff55b,type:_0x401cbd,subType:_0x4c0674,authorId:_0x40b984}=this[_0x2c67('0xe2')](_0x1ec224),_0x180f93=this['_suggestions'][_0x2c67('0xd')](_0x1ff55b)||this[_0x2c67('0xbe')](_0x401cbd,_0x4c0674,_0x1ff55b,_0x40b984,{});switch(this[_0x2c67('0xd6')](_0x180f93,_0x401cbd,_0x4c0674,_0x40b984),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x180f93)){case'notReady':this[_0x2c67('0x13a')](_0x1ff55b)[_0x2c67('0x117')](_0x42bcb1=>{let _0xf39bec=Promise[_0x2c67('0x13')]();_0x42bcb1[_0x2c67('0xc7')]&&(_0xf39bec=this[_0x2c67('0x128')][_0x2c67('0x11e')]({'channelId':this[_0x2c67('0x57')]['config']['get'](_0x2c67('0xa1')),'threadId':_0x1ff55b})),_0xf39bec['then'](()=>{this[_0x2c67('0x2b')](_0x42bcb1)[_0x2c67('0xab')]=!0x0;});}),this['_suggestionState'][_0x2c67('0x112')](_0x180f93,_0x2c67('0x19'));break;case'removed':this[_0x2c67('0x121')](_0x1ff55b,{'state':_0x2c67('0x68')});case _0x2c67('0xfd'):this[_0x2c67('0x82')]['set'](_0x180f93,'ready'),this[_0x2c67('0xaf')](_0x2c67('0x55'),_0x180f93);break;case _0x2c67('0x127'):this[_0x2c67('0xaf')]('suggestionChanged',_0x180f93);}return _0x180f93['addMarkerName'](_0x1ec224),_0x180f93;}[_0x2c67('0x114')](_0x347c70){const _0x57b543=Array[_0x2c67('0xba')](_0x347c70)[_0x2c67('0x130')](_0x5717aa=>!_0x5717aa[_0x2c67('0x25')]),_0x3315f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b05fa=>!_0x5b05fa[_0x2c67('0x25')]),_0x301998=_0x3315f6[_0x2c67('0x130')](_0x44d1be=>!_0x347c70[_0x2c67('0x9a')](_0x44d1be)),_0x1c83bf=new Map(_0x3315f6['map'](_0x3248ea=>[_0x3248ea,this['_suggestionFactory'][_0x2c67('0x65')](_0x3248ea[_0x2c67('0x3b')],_0x3248ea[_0x2c67('0x12e')],_0x2c67('0x36'))])),_0x1b2bb9=new Map(_0x3315f6['map'](_0x5d266e=>[_0x5d266e,_0x5d266e['getFirstRange']()])),_0x11a858=new Set(),_0x32f470=new Set();for(let _0x57b66d=0x0;_0x57b66d<_0x57b543[_0x2c67('0xb4')];_0x57b66d++)_0x306f8f(_0x57b543[_0x57b66d],_0x57b543,_0x57b66d+0x1);for(let _0x8148db=0x0;_0x8148db<_0x57b543['length'];_0x8148db++)_0x306f8f(_0x57b543[_0x8148db],_0x301998,0x0);for(let _0x474735=0x0;_0x474735<_0x57b543['length'];_0x474735++){const _0x5c0b4b=_0x57b543[_0x474735];!_0x32f470[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xea')]&&(_0x5c0b4b[_0x2c67('0xea')][_0x2c67('0xfa')]===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xea')]['next']=null),_0x5c0b4b[_0x2c67('0xea')]=null),!_0x11a858[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xfa')]&&(_0x5c0b4b['next']['previous']===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xfa')][_0x2c67('0xea')]=null),_0x5c0b4b[_0x2c67('0xfa')]=null);}function _0x306f8f(_0x5d3ad3,_0x21bf81,_0x36f3b1){for(let _0xfe0b46=_0x36f3b1;_0xfe0b46<_0x21bf81[_0x2c67('0xb4')];_0xfe0b46++){const _0x1a3dd6=_0x1148ec(_0x5d3ad3,_0x21bf81[_0xfe0b46]);_0x1a3dd6&&(_0x1a3dd6[0x0]['next']=_0x1a3dd6[0x1],_0x1a3dd6[0x1][_0x2c67('0xea')]=_0x1a3dd6[0x0],_0x11a858['add'](_0x1a3dd6[0x0]),_0x32f470[_0x2c67('0x2c')](_0x1a3dd6[0x1]));}}function _0x1148ec(_0x5d4832,_0x5dfbb5){if(_0x5d4832[_0x2c67('0x6b')]['id']!==_0x5dfbb5['author']['id'])return null;const _0x5284ac=_0x1c83bf[_0x2c67('0xd')](_0x5d4832)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9[_0x2c67('0xd')](_0x5dfbb5));if(!_0x5284ac)return null;return _0x1c83bf[_0x2c67('0xd')](_0x5dfbb5)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9['get'](_0x5dfbb5))?_0x5284ac[0x1]['commentThread']&&_0x5284ac[0x1][_0x2c67('0x140')][_0x2c67('0xb4')]?null:_0x5284ac:null;}}[_0x2c67('0xf4')](_0x39df63){const _0xf9e1af=Array[_0x2c67('0xba')](_0x39df63),_0x44d045=this[_0x2c67('0x47')]({'skipNotAttached':!0x0}),_0x466419=_0x44d045[_0x2c67('0x130')](_0x3c7ecb=>!_0x39df63[_0x2c67('0x9a')](_0x3c7ecb)),_0x35d575=new Map(_0xf9e1af[_0x2c67('0x9f')](_0xbf9502=>[_0xbf9502,this[_0x2c67('0xc1')]['getSuggestionCallback'](_0xbf9502[_0x2c67('0x3b')],_0xbf9502['subType'],_0x2c67('0x3d'))])),_0x534daa=new Map(_0x44d045[_0x2c67('0x9f')](_0x161f34=>[_0x161f34,_0x161f34[_0x2c67('0x13e')]()]));for(let _0x3e167b=0x0;_0x3e167b<_0xf9e1af['length'];_0x3e167b++){if(_0x5688f0(this,_0xf9e1af[_0x3e167b],_0xf9e1af,_0x3e167b+0x1))return!0x0;}for(let _0x537ad8=0x0;_0x537ad8<_0xf9e1af[_0x2c67('0xb4')];_0x537ad8++){if(_0x5688f0(this,_0xf9e1af[_0x537ad8],_0x466419,0x0))return!0x0;}return!0x1;function _0x5688f0(_0x211444,_0x2f9d83,_0x54d79f,_0x3e5f81){for(let _0x33c78b=_0x3e5f81;_0x33c78b<_0x54d79f[_0x2c67('0xb4')];_0x33c78b++){const _0xead7be=_0x54d79f[_0x33c78b];if(_0xead7be['type']!==_0x2f9d83[_0x2c67('0x3b')]||_0xead7be[_0x2c67('0x6b')]['id']!==_0x2f9d83[_0x2c67('0x6b')]['id']||_0xead7be[_0x2c67('0x12e')]!==_0x2f9d83[_0x2c67('0x12e')])continue;if(!Ut(_0x2f9d83,_0xead7be))continue;const _0x5d88be=_0x35d575[_0x2c67('0xd')](_0x2f9d83),_0x52a6ed=_0x534daa[_0x2c67('0xd')](_0x2f9d83),_0x3e3072=_0x534daa['get'](_0xead7be),_0x525f22=_0x2f9d83[_0x2c67('0x140')]&&_0x2f9d83[_0x2c67('0x140')][_0x2c67('0xb4')],_0x437323=_0xead7be[_0x2c67('0x140')]&&_0xead7be['commentThread']['length'];if(!_0x525f22&&_0x5d88be(_0x3e3072,_0x52a6ed))return _0x211444[_0x2c67('0x2e')](_0xead7be,_0x2f9d83),_0x534daa[_0x2c67('0x1a')](_0x2f9d83),!0x0;if(!_0x437323&&_0x5d88be(_0x52a6ed,_0x3e3072))return _0x211444[_0x2c67('0x2e')](_0x2f9d83,_0xead7be),_0x534daa[_0x2c67('0x1a')](_0xead7be),!0x0;}return!0x1;}}[_0x2c67('0x2e')](_0x370035,_0x13ca36){if(_0x370035[_0x2c67('0x25')])for(const _0x2da569 of _0x13ca36['getRanges']())_0x370035[_0x2c67('0x136')](_0x2da569);else{const _0x21a523=_0x13ca36[_0x2c67('0x24')]()[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x370035,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x370035[_0x2c67('0x24')]()['start'],_0x21a523));}_0x13ca36['removeMarkers']();}}class Bt{constructor(_0x52bc92){this[_0x2c67('0x4c')]=_0x52bc92,this[_0x2c67('0x12b')]=_0x52bc92[_0x2c67('0xa7')],this[_0x2c67('0x79')]=new Map(),this[_0x2c67('0x34')]=new Map(),this[_0x2c67('0x8b')]();}[_0x2c67('0x87')](_0xf88642,_0x52b6a9,_0x448aec,_0x575c2d,_0x50213c,_0x13532d){return new _0x368607(this[_0x2c67('0x12b')],{'type':_0xf88642,'subType':_0x52b6a9,'id':_0x448aec,'author':_0x575c2d,'creator':_0x575c2d,'attributes':_0x50213c,'onAttributesChange':_0x13532d,'onAccept':(..._0x437ff1)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x9d'))(..._0x437ff1),'onDiscard':(..._0x3d4408)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x11'))(..._0x3d4408)});}[_0x2c67('0x12c')](_0x502ac7,_0x2f8894,_0x441c64,_0x1a7b0a){const _0x1f0fd1=_0x502ac7+':'+_0x2f8894+':'+_0x441c64;this['_customCallbacks'][_0x2c67('0x112')](_0x1f0fd1,_0x1a7b0a);}[_0x2c67('0x65')](_0x3800af,_0x4b9e77,_0x2371db){const _0x5a9f89=_0x3800af+':'+_0x4b9e77+':'+_0x2371db;return this[_0x2c67('0x79')][_0x2c67('0xd')](_0x5a9f89)||this['_defaultCallbacks']['get'](_0x3800af+':'+_0x2371db);}[_0x2c67('0x8b')](){const _0x472c60=()=>!0x1,_0x443cdf=_0x3cbb92=>{_0x3cbb92[_0x2c67('0x18')]((_0xde8635,_0x314a66)=>_0xde8635[_0x2c67('0x122')][_0x2c67('0x67')](_0x314a66[_0x2c67('0x122')])?0x1:-0x1),this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x20fbfa=>{for(const _0xe7d118 of _0x3cbb92){let _0x62f01c;_0x62f01c=_0xe7d118[_0x2c67('0xe7')][_0x2c67('0xb2')]&&_0xe7d118[_0x2c67('0xe7')][_0x2c67('0x80')]==_0xe7d118[_0x2c67('0x122')][_0x2c67('0xd0')]?_0x20fbfa[_0x2c67('0x31')](_0xe7d118['start'][_0x2c67('0xd0')],'on'):_0x20fbfa[_0x2c67('0x31')](_0xe7d118),this[_0x2c67('0x12b')][_0x2c67('0x86')](_0x62f01c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a3e20=(_0x2363a8,_0x364113)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x2f2adc=>{const {commandName:_0x59324c,commandParams:_0x4066d1=[]}=_0x364113,_0x37b046=_0x2363a8[_0x2c67('0x9f')](_0x274352=>(Mt(_0x274352)&&(_0x274352=this[_0x2c67('0x12b')]['createRange'](_0x274352[_0x2c67('0xe7')])),_0x274352))[_0x2c67('0x130')](_0x33394a=>_0x2c67('0xd3')!==_0x33394a[_0x2c67('0x42')][_0x2c67('0x111')]);if(_0x37b046['length']<0x1)return;const _0x3ccf9a=Array[_0x2c67('0xba')](this[_0x2c67('0x12b')][_0x2c67('0xde')][_0x2c67('0x4d')]['getRanges']())[_0x2c67('0x9f')](_0x443806=>_0x2a689f[_0x2c67('0x69')](_0x443806));_0x2f2adc['setSelection'](_0x37b046);for(const _0x14f4e0 of this['_editor'][_0x2c67('0xda')][_0x2c67('0xda')]())_0x14f4e0[_0x2c67('0xeb')]();_0x4066d1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x59324c,..._0x4066d1);const _0x3c2f26=_0x3ccf9a['filter'](_0x40d5f1=>_0x2c67('0xd3')!=_0x40d5f1[_0x2c67('0x42')][_0x2c67('0x111')]);_0x3c2f26['length']>0x0&&_0x2f2adc['setSelection'](_0x3c2f26);for(const _0x498c78 of _0x3ccf9a)_0x498c78[_0x2c67('0x135')]();});},_0x5de969=(_0x3a4ced,_0x34a760)=>0x1==_0x3a4ced[_0x2c67('0xb4')]&&0x1==_0x34a760[_0x2c67('0xb4')]&&_0x3a4ced[0x0][_0x2c67('0xe7')]['isEqual'](_0x34a760[0x0][_0x2c67('0x122')]),_0x5920d5=(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735)=>xt(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735,this[_0x2c67('0x12b')])?[_0x14d417,_0x4d5511]:xt(_0x4d5511,_0x14d417,_0x3a4735,_0xd09c03,this[_0x2c67('0x12b')])?[_0x4d5511,_0x14d417]:null;this['_defaultCallbacks'][_0x2c67('0x112')]('insertion:accept',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xd8'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xbf'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')]('insertion:chain',_0x5920d5),this[_0x2c67('0x34')]['set'](_0x2c67('0x37'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')]('deletion:discard',_0x472c60),this[_0x2c67('0x34')]['set'](_0x2c67('0xc'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x137'),_0x5920d5),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x129'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatInline:discard',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xc0'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xb6'),_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x84'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatBlock:discard',_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x1d'),_0x5de969),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xcc'),_0x472c60);}}function _t(_0x3a8b63,_0x4087e0,_0x2bc9c7){for(const _0x4ef511 of _0x4087e0[_0x2c67('0x80')][_0x2c67('0xe4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4ef511[_0x2c67('0x42')]==_0x4ef511)return!0x1;if(!_0x2bc9c7['containsItem'](_0x4ef511))return!0x1;if(_0x3a8b63[_0x2c67('0xa')](_0x4ef511)||_0x3a8b63[_0x2c67('0x8')](_0x4ef511))return!0x0;}return!0x1;}function Mt(_0x2e842a){return _0x2e842a[_0x2c67('0xe7')][_0x2c67('0x80')]==_0x2e842a[_0x2c67('0x122')]['nodeAfter']&&_0x2e842a[_0x2c67('0xe7')]['isAtStart'];}function $t(_0x1a05dd,_0x1178b5,_0x95fcc2,_0x57a8c5){const _0x1c86be=_0x465f11=>!_0x465f11['item']['is']('$textProxy')&&!_0x57a8c5[_0x2c67('0xa')](_0x465f11[_0x2c67('0x12d')]),_0xfee2fe=_0x1a05dd[_0x2c67('0x122')]['getLastMatchingPosition'](_0x1c86be),_0x5e0770=_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0xa5')](_0x1c86be,{'direction':'backward'});return(!_0x1a05dd['start'][_0x2c67('0x30')](_0xfee2fe)||!_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0x30')](_0x5e0770))&&(_0xfee2fe[_0x2c67('0x67')](_0x5e0770)?_0x95fcc2['updateMarker'](_0x1178b5,{'range':_0x95fcc2[_0x2c67('0x10f')](_0xfee2fe,_0x5e0770)}):_0x95fcc2['removeMarker'](_0x1178b5),!0x0);}function Nt(_0x3d6a93){return _0x26d881(_0x3d6a93);}function Rt(_0x1df46f){const _0x539c67=_0x1df46f[_0x2c67('0x122')][_0x2c67('0xd0')];return _0x539c67&&_0x539c67['is']('element');}function jt(_0x53d36c,_0x3e46d3){const _0x1ea4db=_0x3e46d3['schema'][_0x2c67('0xa')](_0x53d36c)||_0x3e46d3['schema'][_0x2c67('0x58')](_0x53d36c);return _0x3e46d3[_0x2c67('0x10f')](_0x3e46d3[_0x2c67('0xa2')](_0x53d36c,'before'),_0x1ea4db?_0x3e46d3[_0x2c67('0x119')](_0x53d36c):_0x3e46d3['createPositionAt'](_0x53d36c,_0x2c67('0xe7')));}function xt(_0x4f4ebb,_0x285c57,_0xd6b060,_0xeac180,_0x4b041b){if(!Ut(_0x4f4ebb,_0x285c57))return!0x1;if(_0xd6b060['end']['isEqual'](_0xeac180[_0x2c67('0x122')]))return!0x0;if(_0x4f4ebb['type']!=_0x285c57[_0x2c67('0x3b')])return!0x1;if(!_0xd6b060[_0x2c67('0xe7')][_0x2c67('0xf6')](_0xeac180[_0x2c67('0x122')]))return!0x1;const _0x125a15=_0x4b041b[_0x2c67('0x10f')](_0xd6b060[_0x2c67('0xe7')],_0xeac180[_0x2c67('0x122')])['getWalker']();for(const _0x17b65f of _0x125a15)if([_0x2c67('0xa3'),_0x2c67('0x96')]['includes'](_0x17b65f['type'])&&_0x4b041b['schema']['isLimit'](_0x17b65f[_0x2c67('0x12d')]))return!0x1;return!0x0;}function Ut(_0x17a7ab,_0x479ee5){return!(!_0x17a7ab[_0x2c67('0x2')]||!_0x479ee5[_0x2c67('0x2')])&&_0x5960dc(_0x17a7ab[_0x2c67('0x5')],_0x479ee5['attributes']);}function Ot(_0x122854,_0x40e9c5){const _0x2bb542=Et(_0x122854[_0x2c67('0x5')]),_0xa0a19d=Et(_0x40e9c5);if(!_0x122854['_isDataLoaded'])return!0x1;for(const _0xa3e853 of Object['keys'](_0xa0a19d))if(!_0x5960dc(_0x2bb542[_0xa3e853],_0xa0a19d[_0xa3e853]))return!0x1;return!0x0;}function Et(_0x339fc3){const _0x54b321=Object[_0x2c67('0xc5')]({},_0x339fc3);return delete _0x54b321[_0x2c67('0x74')],delete _0x54b321[_0x2c67('0x120')],_0x54b321;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21b6=['switchbutton','get','_refreshActiveMarkers','discardAllSuggestions','set','trackChanges.SuggestionThreadView','acceptAllSuggestions','comments.maxCommentsWhenCollapsed','head','plugins','_annotationViews','isDirty','_handleControllerBuffer','locale','isInContent','model','Discard\x20all\x20selected\x20suggestions','Discard\x20all\x20suggestions','comments.maxCommentCharsWhenCollapsed','destroy','commandName','getAllAdjacentSuggestions','listenTo','commentThread','getFirstRange','mainView','TrackChangesUI','buttonView','clear','suggestion-','activeAnnotations','getByInnerView','change:previous','button','add','_viewToController','SuggestionThreadView','acceptButton','registerAnnotation','separator','hasSuggestion','trackChanges','focus','innerView','some','getDescriptions','_destroyController','TrackChangesEditing','bind','descriptionParts','value','editor','CommentsRepository','suggestionUnloaded','arrowView','delete','EditorAnnotations','map','_handleSuggestionControllerDelayed','_bindAnnotationToEditors','source','values','previous','stopListening','length','config','createAnnotation','type','trackChanges.disableComments','discardButton','Accept\x20all\x20selected\x20suggestions','_disableComments','_updateController','toMany','push','has','isEnabled','componentFactory','isMultiRange','_suggestionToController','commands','_unbindEditors','init','pluginName','CommentView','editing','actionView','getMarkerNames','size','Track\x20changes','addComment','isOn','view','refreshSelectedViews','suggestionChanged','acceptSelectedSuggestions','getSuggestion','_initializeController','unbind','define','Annotations','keys','discardSelectedSuggestions','filter','CommentsUI','execute','from'];(function(_0x11e24d,_0x21b602){const _0xb78de9=function(_0x937005){while(--_0x937005){_0x11e24d['push'](_0x11e24d['shift']());}};_0xb78de9(++_0x21b602);}(_0x21b6,0xaf));const _0xb78d=function(_0x11e24d,_0x21b602){_0x11e24d=_0x11e24d-0x0;let _0xb78de9=_0x21b6[_0x11e24d];return _0xb78de9;};import{Plugin as _0xd6d446}from'ckeditor5/src/core';import{Collection as _0x255f39}from'ckeditor5/src/utils';import{Model as _0x4d1624,SplitButtonView as _0x43dca1,createDropdown as _0x248122,addListToDropdown as _0x4cf92e}from'ckeditor5/src/ui';import{Users as _0x340601,getDateTimeFormatter as _0x3dedd9,getAllMarkersDomElementsSorted as _0x134312}from'ckeditor5-collaboration/src/collaboration-core';import _0xc7eaa1 from'./trackchangesediting';import _0x37fff0 from'./ui/suggestioncontroller';import _0x3fec06 from'./ui/view/suggestionthreadview';import{getTranslation as _0x40fc71}from'./utils/common-translations';import _0x95034d from'../theme/icons/track-changes.svg';export default class d extends _0xd6d446{static get['requires'](){return[_0xc7eaa1,_0x340601,_0xb78d('0x5b'),_0xb78d('0x20'),_0xb78d('0x5f')];}static get[_0xb78d('0xf')](){return _0xb78d('0x41');}constructor(_0xd139d6){super(_0xd139d6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0xb78d('0x31')]=new Map(),this[_0xb78d('0x33')]=new Map();const _0x5e7cb7=this[_0xb78d('0x5a')][_0xb78d('0x68')];_0x5e7cb7[_0xb78d('0x1f')](_0xb78d('0x2c'),_0x3fec06),_0x5e7cb7[_0xb78d('0x1f')](_0xb78d('0x0'),!0x1),this[_0xb78d('0x3')]=_0x5e7cb7[_0xb78d('0x28')](_0xb78d('0x0'));}[_0xb78d('0x61')](_0x134294,_0x160834){0x0===this['_handleControllerBuffer'][_0xb78d('0x14')]&&setTimeout(()=>{for(const [_0x2a026a,_0x104828]of this[_0xb78d('0x33')]){const _0x5e3720=this[_0xb78d('0xb')][_0xb78d('0x7')](_0x2a026a);_0x5e3720||_0x104828?_0x5e3720&&_0x104828&&this[_0xb78d('0x55')](_0x2a026a):this[_0xb78d('0x1d')](_0x2a026a);}this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')]('EditorAnnotations')[_0xb78d('0x19')](),this[_0xb78d('0x29')](),this[_0xb78d('0x33')][_0xb78d('0x43')]();},0xa),this[_0xb78d('0x33')]['set'](_0x134294,_0x160834);}[_0xb78d('0xe')](){const _0xdd6030=this['editor'],_0x194cd1=_0xdd6030[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x56')),_0x2383f0=_0xdd6030[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x352636=_0xdd6030[_0xb78d('0x30')]['get']('EditorAnnotations'),_0x16b4df=_0xdd6030[_0xb78d('0x30')][_0xb78d('0x28')]('CommentsRepository');_0xdd6030['ui'][_0xb78d('0x9')][_0xb78d('0x49')]('trackChanges',_0x2676eb=>this['_createUIButton'](_0x2676eb)),_0x352636['addSourceCollector'](()=>{const _0x54ab60=[];for(const [_0xdcd2f9,_0x3befc3]of Array[_0xb78d('0x26')](this[_0xb78d('0xb')])){const _0x5c9785=_0xdcd2f9[_0xb78d('0x3c')](),_0x46fbf0=[];for(const _0x8430de of _0x5c9785){if(!_0x8430de['isInContent'])continue;if(_0x8430de[_0xb78d('0xa')]){_0x46fbf0['push'](..._0x8430de['getRanges']());continue;}const _0x548f84=_0x8430de[_0xb78d('0x3f')]();if(_0x46fbf0['length']>0x0){const _0x4deb88=_0x46fbf0[0x0]['getJoined'](_0x548f84);if(_0x4deb88){_0x46fbf0[0x0]=_0x4deb88;continue;}}_0x46fbf0[_0xb78d('0x6')](_0x548f84);}_0x54ab60['push']([_0x3befc3[_0xb78d('0x18')],_0x46fbf0]);}return _0x54ab60;}),this['listenTo'](_0x194cd1,'suggestionLoaded',(_0x3dace6,_0x1bf488)=>{this[_0xb78d('0x3d')](_0x1bf488,_0xb78d('0x47'),(_0x11f3aa,_0x104e3b,_0x5a1fcb,_0x5b057a)=>{_0x1bf488['isInContent']&&(null==_0x5a1fcb?(this[_0xb78d('0x4')](_0x5b057a[_0xb78d('0x2f')]),this['_handleSuggestionControllerDelayed'](_0x1bf488,!0x1)):(this[_0xb78d('0x4')](_0x5a1fcb[_0xb78d('0x2f')]),this[_0xb78d('0x61')](_0x1bf488,!0x0)));}),null===_0x1bf488[_0xb78d('0x65')]?this['_handleSuggestionControllerDelayed'](_0x1bf488,!0x1):this[_0xb78d('0x4')](_0x1bf488[_0xb78d('0x2f')]);}),this[_0xb78d('0x3d')](_0x194cd1,_0xb78d('0x5c'),(_0x11fa46,_0x43de18,_0x468e9b)=>{this[_0xb78d('0x66')](_0x43de18,_0xb78d('0x47')),this['_handleControllerBuffer'][_0xb78d('0x5e')](_0x43de18);const _0x40af8a=_0x468e9b?_0x468e9b[_0xb78d('0x2f')]:_0x43de18,_0x2032ee=this[_0xb78d('0xb')][_0xb78d('0x28')](_0x40af8a);null!==_0x468e9b&&this[_0xb78d('0x4')](_0x40af8a),null===_0x468e9b&&_0x2032ee&&this[_0xb78d('0x55')](_0x43de18);}),this['listenTo'](_0x194cd1,_0xb78d('0x1a'),(_0x12dd83,_0x5e048a)=>{this[_0xb78d('0x4')](_0x5e048a);}),this[_0xb78d('0x3d')](_0x2383f0,'change:activeAnnotations',()=>{this[_0xb78d('0x29')]();}),this[_0xb78d('0x3d')](_0x16b4df,_0xb78d('0x16'),(_0xbad108,{threadId:_0x588a35,isFromAdapter:_0x27e316})=>{if(_0x27e316||!_0x194cd1[_0xb78d('0x4f')](_0x588a35))return;const _0x13182a=_0x194cd1[_0xb78d('0x1c')](_0x588a35);this[_0xb78d('0xb')][_0xb78d('0x28')](_0x13182a)[_0xb78d('0x18')][_0xb78d('0x51')]();},{'priority':'lowest'});}[_0xb78d('0x29')](){const _0x37f53f=this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x345d47=this[_0xb78d('0x5a')][_0xb78d('0x30')]['get']('TrackChangesEditing'),_0x4c52b3=Array['from'](_0x37f53f[_0xb78d('0x45')],_0x3b4dc4=>_0x3b4dc4[_0xb78d('0x52')])[_0xb78d('0x23')](_0xe4da2a=>this[_0xb78d('0x4a')][_0xb78d('0x7')](_0xe4da2a)),_0xe22108=[];for(const _0x29ef88 of _0x4c52b3){const _0x3a5250=this['_viewToController'][_0xb78d('0x28')](_0x29ef88)[_0xb78d('0x36')]['getAllAdjacentSuggestions']();_0xe22108[_0xb78d('0x6')](..._0x3a5250['reduce']((_0xacd62d,_0x4b68f9)=>[..._0xacd62d,..._0x4b68f9[_0xb78d('0x13')]()],[]));}_0x345d47['activeMarkers']=_0xe22108;}['_createUIButton'](_0x502245){const _0x3e34cf=_0x248122(_0x502245,_0x43dca1),_0x3b4f4a=this[_0xb78d('0x5a')][_0xb78d('0xc')][_0xb78d('0x28')](_0xb78d('0x50')),_0x22f0e7=_0x40fc71(_0x502245,_0xb78d('0x15'));_0x3e34cf[_0xb78d('0x42')]['set']({'tooltip':_0x22f0e7,'label':_0x22f0e7,'icon':_0x95034d}),_0x3e34cf['buttonView'][_0xb78d('0x57')]('isOn')['to'](_0x3b4f4a,_0xb78d('0x59')),_0x3e34cf['buttonView']['on']('execute',()=>{_0x3b4f4a[_0xb78d('0x25')](),this[_0xb78d('0x5a')]['editing'][_0xb78d('0x18')]['focus']();});const _0x176168=new _0x255f39(),_0x29ab27=[{'type':_0xb78d('0x27'),'model':{'withText':!0x0,'label':_0x22f0e7,'commandName':_0xb78d('0x50')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x40fc71(_0x502245,'Accept\x20all\x20suggestions'),'commandName':_0xb78d('0x2d')}},{'type':_0xb78d('0x48'),'model':{'withText':!0x0,'label':_0x40fc71(_0x502245,_0xb78d('0x2')),'commandName':_0xb78d('0x1b')}},{'type':_0xb78d('0x48'),'model':{'withText':!0x0,'label':_0x40fc71(_0x502245,_0xb78d('0x38')),'commandName':_0xb78d('0x2a')}},{'type':_0xb78d('0x48'),'model':{'withText':!0x0,'label':_0x40fc71(_0x502245,_0xb78d('0x37')),'commandName':_0xb78d('0x22')}}];for(const _0x28113c of _0x29ab27){let _0x50da84={'type':_0xb78d('0x4e')};if(_0x28113c[_0xb78d('0x36')]){const _0x22b82d=new _0x4d1624(_0x28113c[_0xb78d('0x36')]),_0x445a9a=this['editor'][_0xb78d('0xc')]['get'](_0x22b82d['commandName']);_0x22b82d['bind'](_0xb78d('0x17'),_0xb78d('0x8'))['to'](_0x445a9a,'value','isEnabled'),_0x50da84={'type':_0x28113c[_0xb78d('0x6a')],'model':_0x22b82d};}_0x176168['add'](_0x50da84);}_0x4cf92e(_0x3e34cf,_0x176168);const _0x118bb0=_0x29ab27['filter'](_0xda5710=>null!=_0xda5710[_0xb78d('0x36')])[_0xb78d('0x60')](_0x475bff=>this[_0xb78d('0x5a')][_0xb78d('0xc')][_0xb78d('0x28')](_0x475bff[_0xb78d('0x36')][_0xb78d('0x3b')])),_0x5cb7d3=_0x3e34cf[_0xb78d('0x42')];return _0x5cb7d3[_0xb78d('0x12')][_0xb78d('0x1e')]('isEnabled'),_0x5cb7d3[_0xb78d('0x5d')][_0xb78d('0x1e')](_0xb78d('0x8')),_0x5cb7d3[_0xb78d('0x12')][_0xb78d('0x57')](_0xb78d('0x8'))['to'](_0x3b4f4a,_0xb78d('0x8')),_0x5cb7d3['arrowView'][_0xb78d('0x57')](_0xb78d('0x8'))[_0xb78d('0x5')](_0x118bb0,'isEnabled',(..._0x4d57ec)=>_0x4d57ec[_0xb78d('0x53')](_0x1ea5f2=>_0x1ea5f2)),_0x3e34cf['on'](_0xb78d('0x25'),_0x3ebdd1=>{this[_0xb78d('0x5a')][_0xb78d('0x25')](_0x3ebdd1[_0xb78d('0x63')][_0xb78d('0x3b')]),this[_0xb78d('0x5a')][_0xb78d('0x11')][_0xb78d('0x18')]['focus']();}),_0x3e34cf;}[_0xb78d('0x1d')](_0x4e3eb0){const _0x1c5690=this[_0xb78d('0x5a')],_0x29c681=_0x1c5690[_0xb78d('0x68')],_0x3a427f=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x3ee704=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x5b')),_0x5dff4d=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x5f')),_0x7059fb=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0x340601)['me'],_0x27bb83=_0x29c681['get'](_0xb78d('0x50'))[_0xb78d('0x4b')],{CommentsListView:_0x418ee9,CommentThreadInputView:_0x27b9d2}=_0x1c5690[_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x24'));let _0x2fa6cd,_0x65039a;this[_0xb78d('0x31')][_0xb78d('0x7')](_0x4e3eb0['id'])?(_0x65039a=this[_0xb78d('0x31')][_0xb78d('0x28')](_0x4e3eb0['id']),_0x2fa6cd=_0x65039a[_0xb78d('0x40')]):(_0x2fa6cd=new _0x27bb83(_0x1c5690[_0xb78d('0x34')],_0x4e3eb0,_0x7059fb,{'disableComments':this['_disableComments'],'editorConfig':_0x29c681['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x29c681[_0xb78d('0x28')](_0xb78d('0x2e')),'maxThreadTotalWeight':_0x29c681[_0xb78d('0x28')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x29c681[_0xb78d('0x28')](_0xb78d('0x39')),'formatDateTime':_0x3dedd9(_0x29c681[_0xb78d('0x28')](_0xb78d('0x34'))),'CommentView':_0x29c681[_0xb78d('0x28')]('comments')[_0xb78d('0x10')],'CommentsListView':_0x418ee9,'CommentThreadInputView':_0x27b9d2}),_0x2fa6cd[_0xb78d('0x4c')]['on'](_0xb78d('0x25'),()=>{_0x1c5690[_0xb78d('0x11')][_0xb78d('0x18')][_0xb78d('0x51')]();}),_0x2fa6cd[_0xb78d('0x1')]['on']('execute',()=>{_0x1c5690[_0xb78d('0x11')][_0xb78d('0x18')][_0xb78d('0x51')]();}),_0x65039a=_0x3a427f['createAnnotationView'](this[_0xb78d('0x5a')]['locale'],_0x2fa6cd),_0x65039a[_0xb78d('0x57')](_0xb78d('0x32'))['to'](_0x2fa6cd,_0xb78d('0x32')),_0x65039a[_0xb78d('0x57')](_0xb78d('0x67'))['to'](_0x2fa6cd),_0x65039a[_0xb78d('0x57')](_0xb78d('0x6a'))['to'](_0x2fa6cd,_0xb78d('0x6a'),_0x579aa1=>_0xb78d('0x44')+_0x579aa1),this[_0xb78d('0x31')]['set'](_0x4e3eb0['id'],_0x65039a));const _0x38c4e7=_0x3ee704['createCommentThreadController'](_0x4e3eb0[_0xb78d('0x3e')],_0x2fa6cd),_0x281661=new _0x37fff0(_0x1c5690,_0x4e3eb0,_0x2fa6cd,_0x38c4e7),_0x801820=_0x4e3eb0[_0xb78d('0x3c')]()[_0xb78d('0x23')](_0x19d13b=>_0x19d13b[_0xb78d('0x35')]);_0x2fa6cd['descriptionParts']=_0x1c5690['plugins'][_0xb78d('0x28')](_0xb78d('0x56'))['_descriptionFactory'][_0xb78d('0x54')](_0x801820),this[_0xb78d('0xb')]['set'](_0x4e3eb0,_0x281661),this[_0xb78d('0x4a')][_0xb78d('0x2b')](_0x2fa6cd,_0x281661);const _0x3c84b7=_0x3a427f[_0xb78d('0x69')]({'view':_0x65039a,'target':()=>{const _0x14b71c=[],_0x353b5d=_0x4e3eb0['getAllAdjacentSuggestions']()[_0xb78d('0x23')](_0x289f31=>_0x289f31['isInContent']);for(const _0x4de5ad of _0x353b5d)_0x14b71c['push'](..._0x4de5ad['getMarkers']());return _0x134312(_0x1c5690[_0xb78d('0x11')],_0x14b71c);},'type':()=>'suggestion-'+_0x281661['view']['type']});_0x3ee704[_0xb78d('0x62')](_0x2fa6cd,_0x3c84b7),_0x3a427f[_0xb78d('0x49')](_0x3c84b7),_0x5dff4d[_0xb78d('0x4d')](_0x3c84b7);}['_destroyController'](_0x338f4e){const _0x539499=this['editor']['plugins'][_0xb78d('0x28')]('CommentsRepository'),_0x1d0162=this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x20')),_0x419164=this[_0xb78d('0xb')]['get'](_0x338f4e),_0x547297=_0x419164['view'],_0x418bc4=_0x1d0162[_0xb78d('0x46')](_0x547297);_0x539499[_0xb78d('0xd')](_0x547297),_0x418bc4&&_0x1d0162['remove'](_0x418bc4),this[_0xb78d('0xb')][_0xb78d('0x5e')](_0x338f4e),this[_0xb78d('0x4a')][_0xb78d('0x5e')](_0x547297),_0x419164[_0xb78d('0x3a')]();}[_0xb78d('0x4')](_0x271a8e){if(!_0x271a8e[_0xb78d('0x35')]||!this['_suggestionToController']['has'](_0x271a8e))return;const _0x1672f8=this[_0xb78d('0x5a')][_0xb78d('0x30')][_0xb78d('0x28')](_0xb78d('0x56')),_0x3f558c=this[_0xb78d('0xb')][_0xb78d('0x28')](_0x271a8e),_0x44356d=_0x271a8e['getAllAdjacentSuggestions']();_0x3f558c['view'][_0xb78d('0x58')]=_0x1672f8['_descriptionFactory'][_0xb78d('0x54')](_0x44356d);}[_0xb78d('0x3a')](){for(const _0x1fd890 of this['_suggestionToController'][_0xb78d('0x21')]())this['_destroyController'](_0x1fd890);for(const _0x581b39 of this['_annotationViews'][_0xb78d('0x64')]())_0x581b39[_0xb78d('0x40')][_0xb78d('0x3a')]();super[_0xb78d('0x3a')]();}}
23
+ const _0x44c8=['length','isMultiRange','_refreshActiveMarkers','remove','registerAnnotation','trackChanges.disableComments','requires','source','acceptButton','acceptSelectedSuggestions','head','filter','reduce','_updateController','isInContent','suggestion-','componentFactory','model','getDescriptions','value','push','listenTo','getAllAdjacentSuggestions','commentThread','_handleSuggestionControllerDelayed','_annotationViews','comments.editorConfig','buttonView','getFirstRange','trackChanges.SuggestionThreadView','keys','Discard\x20all\x20selected\x20suggestions','addSourceCollector','button','_handleControllerBuffer','Discard\x20all\x20suggestions','type','getJoined','getByInnerView','trackChanges','addComment','define','_descriptionFactory','getMarkers','_destroyController','arrowView','createAnnotationView','previous','SuggestionThreadView','TrackChangesEditing','Accept\x20all\x20selected\x20suggestions','Accept\x20all\x20suggestions','change:previous','editing','_createUIButton','discardSelectedSuggestions','CommentsRepository','suggestionLoaded','suggestionUnloaded','values','descriptionParts','add','stopListening','from','change:activeAnnotations','bind','some','CommentsUI','innerView','map','size','_initializeController','hasSuggestion','get','discardAllSuggestions','commands','isOn','createAnnotation','refreshSelectedViews','switchbutton','_disableComments','view','Annotations','destroy','comments.maxCommentCharsWhenCollapsed','EditorAnnotations','mainView','set','comments.maxThreadTotalWeight','config','has','separator','init','_viewToController','discardButton','focus','_suggestionToController','_unbindEditors','isEnabled','execute','unbind','lowest','clear','commandName','locale','CommentView','getMarkerNames','editor','delete','_bindAnnotationToEditors','plugins'];(function(_0x3b9540,_0x44c83d){const _0x210ec5=function(_0x28fc6f){while(--_0x28fc6f){_0x3b9540['push'](_0x3b9540['shift']());}};_0x210ec5(++_0x44c83d);}(_0x44c8,0x15e));const _0x210e=function(_0x3b9540,_0x44c83d){_0x3b9540=_0x3b9540-0x0;let _0x210ec5=_0x44c8[_0x3b9540];return _0x210ec5;};import{Plugin as _0x2b84c5}from'ckeditor5/src/core';import{Collection as _0x3ab21}from'ckeditor5/src/utils';import{Model as _0x3c9e72,SplitButtonView as _0x51b32c,createDropdown as _0x11d8aa,addListToDropdown as _0xa10dc1}from'ckeditor5/src/ui';import{Users as _0x4d894e,getDateTimeFormatter as _0x1391a2,getAllMarkersDomElementsSorted as _0x2c19d5}from'ckeditor5-collaboration/src/collaboration-core';import _0x46037e from'./trackchangesediting';import _0x2c3360 from'./ui/suggestioncontroller';import _0x2045d6 from'./ui/view/suggestionthreadview';import{getTranslation as _0x18c610}from'./utils/common-translations';import _0x5ce200 from'../theme/icons/track-changes.svg';export default class d extends _0x2b84c5{static get[_0x210e('0x64')](){return[_0x46037e,_0x4d894e,_0x210e('0x27'),_0x210e('0x41'),_0x210e('0x44')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xdf301e){super(_0xdf301e),this[_0x210e('0x4f')]=new Map(),this[_0x210e('0x4c')]=new Map(),this['_annotationViews']=new Map(),this[_0x210e('0x11')]=new Map();const _0x54d96b=this[_0x210e('0x5a')][_0x210e('0x48')];_0x54d96b[_0x210e('0x18')](_0x210e('0xc'),_0x2045d6),_0x54d96b[_0x210e('0x18')](_0x210e('0x63'),!0x1),this[_0x210e('0x3f')]=_0x54d96b[_0x210e('0x38')](_0x210e('0x63'));}[_0x210e('0x7')](_0x1dabfc,_0xdab296){0x0===this[_0x210e('0x11')][_0x210e('0x35')]&&setTimeout(()=>{for(const [_0x2a42ff,_0x3f87ee]of this['_handleControllerBuffer']){const _0x357bd0=this[_0x210e('0x4f')]['has'](_0x2a42ff);_0x357bd0||_0x3f87ee?_0x357bd0&&_0x3f87ee&&this[_0x210e('0x1b')](_0x2a42ff):this['_initializeController'](_0x2a42ff);}this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x44'))[_0x210e('0x3d')](),this[_0x210e('0x60')](),this[_0x210e('0x11')][_0x210e('0x55')]();},0xa),this[_0x210e('0x11')][_0x210e('0x46')](_0x1dabfc,_0xdab296);}[_0x210e('0x4b')](){const _0xea8596=this[_0x210e('0x5a')],_0x559f76=_0xea8596['plugins'][_0x210e('0x38')]('TrackChangesEditing'),_0x35c7ea=_0xea8596[_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x418430=_0xea8596['plugins'][_0x210e('0x38')](_0x210e('0x44')),_0x5c8c6b=_0xea8596[_0x210e('0x5d')]['get'](_0x210e('0x27'));_0xea8596['ui'][_0x210e('0x6e')][_0x210e('0x2c')]('trackChanges',_0x24d963=>this[_0x210e('0x25')](_0x24d963)),_0x418430[_0x210e('0xf')](()=>{const _0x2950a9=[];for(const [_0x466690,_0x3fea9f]of Array[_0x210e('0x2e')](this['_suggestionToController'])){const _0xeaa9c6=_0x466690['getAllAdjacentSuggestions'](),_0x3158d7=[];for(const _0x4e1369 of _0xeaa9c6){if(!_0x4e1369[_0x210e('0x6c')])continue;if(_0x4e1369[_0x210e('0x5f')]){_0x3158d7[_0x210e('0x3')](..._0x4e1369['getRanges']());continue;}const _0x2b5519=_0x4e1369[_0x210e('0xb')]();if(_0x3158d7[_0x210e('0x5e')]>0x0){const _0x383160=_0x3158d7[0x0][_0x210e('0x14')](_0x2b5519);if(_0x383160){_0x3158d7[0x0]=_0x383160;continue;}}_0x3158d7[_0x210e('0x3')](_0x2b5519);}_0x2950a9[_0x210e('0x3')]([_0x3fea9f[_0x210e('0x40')],_0x3158d7]);}return _0x2950a9;}),this[_0x210e('0x4')](_0x559f76,_0x210e('0x28'),(_0xc0ea11,_0x153c56)=>{this['listenTo'](_0x153c56,'change:previous',(_0x3d592d,_0x555360,_0x2f09b5,_0x496304)=>{_0x153c56['isInContent']&&(null==_0x2f09b5?(this[_0x210e('0x6b')](_0x496304['head']),this[_0x210e('0x7')](_0x153c56,!0x1)):(this['_updateController'](_0x2f09b5[_0x210e('0x68')]),this[_0x210e('0x7')](_0x153c56,!0x0)));}),null===_0x153c56[_0x210e('0x1e')]?this[_0x210e('0x7')](_0x153c56,!0x1):this[_0x210e('0x6b')](_0x153c56[_0x210e('0x68')]);}),this['listenTo'](_0x559f76,_0x210e('0x29'),(_0x33806a,_0x2a8cd8,_0x33f709)=>{this[_0x210e('0x2d')](_0x2a8cd8,_0x210e('0x23')),this['_handleControllerBuffer'][_0x210e('0x5b')](_0x2a8cd8);const _0x1a9d18=_0x33f709?_0x33f709['head']:_0x2a8cd8,_0x2815b1=this[_0x210e('0x4f')][_0x210e('0x38')](_0x1a9d18);null!==_0x33f709&&this[_0x210e('0x6b')](_0x1a9d18),null===_0x33f709&&_0x2815b1&&this[_0x210e('0x1b')](_0x2a8cd8);}),this[_0x210e('0x4')](_0x559f76,'suggestionChanged',(_0x14c7f7,_0x4304e2)=>{this[_0x210e('0x6b')](_0x4304e2);}),this['listenTo'](_0x35c7ea,_0x210e('0x2f'),()=>{this[_0x210e('0x60')]();}),this['listenTo'](_0x5c8c6b,_0x210e('0x17'),(_0x49738b,{threadId:_0x13f6e4,isFromAdapter:_0x393991})=>{if(_0x393991||!_0x559f76[_0x210e('0x37')](_0x13f6e4))return;const _0x3b3571=_0x559f76['getSuggestion'](_0x13f6e4);this[_0x210e('0x4f')][_0x210e('0x38')](_0x3b3571)[_0x210e('0x40')][_0x210e('0x4e')]();},{'priority':_0x210e('0x54')});}[_0x210e('0x60')](){const _0x569724=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x81f082=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')]('TrackChangesEditing'),_0x18f4c6=Array['from'](_0x569724['activeAnnotations'],_0x1a1538=>_0x1a1538[_0x210e('0x33')])['filter'](_0x1d45bf=>this[_0x210e('0x4c')][_0x210e('0x49')](_0x1d45bf)),_0x3c4666=[];for(const _0x501acb of _0x18f4c6){const _0x1d4299=this[_0x210e('0x4c')][_0x210e('0x38')](_0x501acb)[_0x210e('0x0')][_0x210e('0x5')]();_0x3c4666['push'](..._0x1d4299[_0x210e('0x6a')]((_0x23990d,_0x4b675c)=>[..._0x23990d,..._0x4b675c[_0x210e('0x59')]()],[]));}_0x81f082['activeMarkers']=_0x3c4666;}[_0x210e('0x25')](_0x23e9fd){const _0x2dec52=_0x11d8aa(_0x23e9fd,_0x51b32c),_0x4fe715=this['editor'][_0x210e('0x3a')]['get'](_0x210e('0x16')),_0x416f6f=_0x18c610(_0x23e9fd,'Track\x20changes');_0x2dec52[_0x210e('0xa')][_0x210e('0x46')]({'tooltip':_0x416f6f,'label':_0x416f6f,'icon':_0x5ce200}),_0x2dec52[_0x210e('0xa')]['bind'](_0x210e('0x3b'))['to'](_0x4fe715,_0x210e('0x2')),_0x2dec52[_0x210e('0xa')]['on'](_0x210e('0x52'),()=>{_0x4fe715[_0x210e('0x52')](),this[_0x210e('0x5a')]['editing']['view'][_0x210e('0x4e')]();});const _0x2d0775=new _0x3ab21(),_0x110d13=[{'type':_0x210e('0x3e'),'model':{'withText':!0x0,'label':_0x416f6f,'commandName':_0x210e('0x16')}},{'type':_0x210e('0x4a')},{'type':'button','model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x22')),'commandName':'acceptAllSuggestions'}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x21')),'commandName':_0x210e('0x67')}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x12')),'commandName':_0x210e('0x39')}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0xe')),'commandName':_0x210e('0x26')}}];for(const _0x249d89 of _0x110d13){let _0x312694={'type':_0x210e('0x4a')};if(_0x249d89[_0x210e('0x0')]){const _0x5e9a74=new _0x3c9e72(_0x249d89[_0x210e('0x0')]),_0x3ead32=this['editor'][_0x210e('0x3a')][_0x210e('0x38')](_0x5e9a74[_0x210e('0x56')]);_0x5e9a74[_0x210e('0x30')](_0x210e('0x3b'),'isEnabled')['to'](_0x3ead32,_0x210e('0x2'),_0x210e('0x51')),_0x312694={'type':_0x249d89['type'],'model':_0x5e9a74};}_0x2d0775['add'](_0x312694);}_0xa10dc1(_0x2dec52,_0x2d0775);const _0x3e0c71=_0x110d13[_0x210e('0x69')](_0x30c8f9=>null!=_0x30c8f9['model'])[_0x210e('0x34')](_0x1b2da6=>this[_0x210e('0x5a')][_0x210e('0x3a')][_0x210e('0x38')](_0x1b2da6['model']['commandName'])),_0x4ad074=_0x2dec52['buttonView'];return _0x4ad074['actionView'][_0x210e('0x53')]('isEnabled'),_0x4ad074[_0x210e('0x1c')][_0x210e('0x53')](_0x210e('0x51')),_0x4ad074['actionView'][_0x210e('0x30')]('isEnabled')['to'](_0x4fe715,_0x210e('0x51')),_0x4ad074[_0x210e('0x1c')][_0x210e('0x30')]('isEnabled')['toMany'](_0x3e0c71,_0x210e('0x51'),(..._0x10e2bf)=>_0x10e2bf[_0x210e('0x31')](_0x59d7fe=>_0x59d7fe)),_0x2dec52['on'](_0x210e('0x52'),_0x6c5151=>{this[_0x210e('0x5a')][_0x210e('0x52')](_0x6c5151[_0x210e('0x65')][_0x210e('0x56')]),this[_0x210e('0x5a')][_0x210e('0x24')][_0x210e('0x40')]['focus']();}),_0x2dec52;}[_0x210e('0x36')](_0x4e8cdd){const _0x98c989=this[_0x210e('0x5a')],_0x4b1587=_0x98c989[_0x210e('0x48')],_0x2e714c=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x212e04=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')]('CommentsRepository'),_0x353d5e=_0x98c989[_0x210e('0x5d')]['get']('EditorAnnotations'),_0x9e214d=_0x98c989[_0x210e('0x5d')]['get'](_0x4d894e)['me'],_0x49be24=_0x4b1587[_0x210e('0x38')](_0x210e('0x16'))[_0x210e('0x1f')],{CommentsListView:_0x483411,CommentThreadInputView:_0x44382a}=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x32'));let _0x15b392,_0x321004;this[_0x210e('0x8')][_0x210e('0x49')](_0x4e8cdd['id'])?(_0x321004=this['_annotationViews']['get'](_0x4e8cdd['id']),_0x15b392=_0x321004[_0x210e('0x45')]):(_0x15b392=new _0x49be24(_0x98c989[_0x210e('0x57')],_0x4e8cdd,_0x9e214d,{'disableComments':this['_disableComments'],'editorConfig':_0x4b1587[_0x210e('0x38')](_0x210e('0x9')),'maxCommentsWhenCollapsed':_0x4b1587[_0x210e('0x38')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b1587[_0x210e('0x38')](_0x210e('0x47')),'maxCommentCharsWhenCollapsed':_0x4b1587[_0x210e('0x38')](_0x210e('0x43')),'formatDateTime':_0x1391a2(_0x4b1587[_0x210e('0x38')](_0x210e('0x57'))),'CommentView':_0x4b1587['get']('comments')[_0x210e('0x58')],'CommentsListView':_0x483411,'CommentThreadInputView':_0x44382a}),_0x15b392[_0x210e('0x66')]['on'](_0x210e('0x52'),()=>{_0x98c989[_0x210e('0x24')][_0x210e('0x40')]['focus']();}),_0x15b392[_0x210e('0x4d')]['on']('execute',()=>{_0x98c989[_0x210e('0x24')][_0x210e('0x40')][_0x210e('0x4e')]();}),_0x321004=_0x2e714c[_0x210e('0x1d')](this[_0x210e('0x5a')][_0x210e('0x57')],_0x15b392),_0x321004[_0x210e('0x30')]('isDirty')['to'](_0x15b392,'isDirty'),_0x321004['bind'](_0x210e('0x5e'))['to'](_0x15b392),_0x321004['bind'](_0x210e('0x13'))['to'](_0x15b392,_0x210e('0x13'),_0xa070e2=>'suggestion-'+_0xa070e2),this[_0x210e('0x8')][_0x210e('0x46')](_0x4e8cdd['id'],_0x321004));const _0x589064=_0x212e04['createCommentThreadController'](_0x4e8cdd[_0x210e('0x6')],_0x15b392),_0x5dc20e=new _0x2c3360(_0x98c989,_0x4e8cdd,_0x15b392,_0x589064),_0x50506a=_0x4e8cdd[_0x210e('0x5')]()['filter'](_0x57f999=>_0x57f999['isInContent']);_0x15b392['descriptionParts']=_0x98c989['plugins'][_0x210e('0x38')](_0x210e('0x20'))[_0x210e('0x19')][_0x210e('0x1')](_0x50506a),this[_0x210e('0x4f')][_0x210e('0x46')](_0x4e8cdd,_0x5dc20e),this[_0x210e('0x4c')]['set'](_0x15b392,_0x5dc20e);const _0x2e9797=_0x2e714c[_0x210e('0x3c')]({'view':_0x321004,'target':()=>{const _0x1f0dee=[],_0x4377cd=_0x4e8cdd[_0x210e('0x5')]()[_0x210e('0x69')](_0xd42791=>_0xd42791[_0x210e('0x6c')]);for(const _0x4e861a of _0x4377cd)_0x1f0dee[_0x210e('0x3')](..._0x4e861a[_0x210e('0x1a')]());return _0x2c19d5(_0x98c989[_0x210e('0x24')],_0x1f0dee);},'type':()=>_0x210e('0x6d')+_0x5dc20e['view'][_0x210e('0x13')]});_0x212e04[_0x210e('0x5c')](_0x15b392,_0x2e9797),_0x2e714c[_0x210e('0x2c')](_0x2e9797),_0x353d5e[_0x210e('0x62')](_0x2e9797);}[_0x210e('0x1b')](_0x5698ea){const _0x39d477=this['editor'][_0x210e('0x5d')][_0x210e('0x38')]('CommentsRepository'),_0x3df7a5=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x41')),_0x1c8e99=this[_0x210e('0x4f')][_0x210e('0x38')](_0x5698ea),_0x549921=_0x1c8e99[_0x210e('0x40')],_0x15cd76=_0x3df7a5[_0x210e('0x15')](_0x549921);_0x39d477[_0x210e('0x50')](_0x549921),_0x15cd76&&_0x3df7a5[_0x210e('0x61')](_0x15cd76),this['_suggestionToController'][_0x210e('0x5b')](_0x5698ea),this['_viewToController'][_0x210e('0x5b')](_0x549921),_0x1c8e99['destroy']();}[_0x210e('0x6b')](_0xb5f4fa){if(!_0xb5f4fa[_0x210e('0x6c')]||!this[_0x210e('0x4f')][_0x210e('0x49')](_0xb5f4fa))return;const _0x49d964=this[_0x210e('0x5a')]['plugins'][_0x210e('0x38')](_0x210e('0x20')),_0x52816c=this[_0x210e('0x4f')][_0x210e('0x38')](_0xb5f4fa),_0x341ea8=_0xb5f4fa[_0x210e('0x5')]();_0x52816c['view'][_0x210e('0x2b')]=_0x49d964[_0x210e('0x19')][_0x210e('0x1')](_0x341ea8);}[_0x210e('0x42')](){for(const _0x278931 of this[_0x210e('0x4f')][_0x210e('0xd')]())this['_destroyController'](_0x278931);for(const _0x3cc8a0 of this[_0x210e('0x8')][_0x210e('0x2a')]())_0x3cc8a0['mainView'][_0x210e('0x42')]();super[_0x210e('0x42')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x384f=['destroy','_pendingAction','PendingActions','view','canDiscard','PENDING_ACTION_SUGGESTION','locale','isEnabled','model','discardSuggestion','_discardCommand','remove','isDirty','get','_acceptCommand','_editor','commands','_setPendingAction','_removePendingAction','bind','getRanges','unbind','listenTo','commentThreadController','canAccept','plugins','canEditAt','add','execute'];(function(_0x5d71a9,_0x384fa4){const _0x4b3c79=function(_0x3c4d8c){while(--_0x3c4d8c){_0x5d71a9['push'](_0x5d71a9['shift']());}};_0x4b3c79(++_0x384fa4);}(_0x384f,0x1ec));const _0x4b3c=function(_0x5d71a9,_0x384fa4){_0x5d71a9=_0x5d71a9-0x0;let _0x4b3c79=_0x384f[_0x5d71a9];return _0x4b3c79;};import{ObservableMixin as _0x2900cc}from'ckeditor5/src/utils';import{getTranslation as _0x434af1}from'../utils/common-translations';export default class Gt extends _0x2900cc(){constructor(_0x72a8bc,_0x436dd1,_0x6a4620,_0x2397e5){super(),this[_0x4b3c('0x9')]=_0x436dd1,this[_0x4b3c('0x4')]=_0x6a4620,this[_0x4b3c('0x18')]=_0x2397e5,this[_0x4b3c('0x10')]=_0x72a8bc,this['_acceptCommand']=_0x72a8bc[_0x4b3c('0x11')][_0x4b3c('0xe')]('acceptSuggestion'),this['_discardCommand']=_0x72a8bc['commands'][_0x4b3c('0xe')](_0x4b3c('0xa')),this[_0x4b3c('0x4')][_0x4b3c('0x14')](_0x4b3c('0x8'))['to'](this[_0x4b3c('0xf')],this['_discardCommand'],(_0x539940,_0x317661)=>_0x539940||_0x317661),this[_0x4b3c('0x4')][_0x4b3c('0x14')](_0x4b3c('0x19'))['to'](this[_0x4b3c('0xf')],'isEnabled',_0x433a3f=>_0x433a3f&&this[_0x4b3c('0x10')][_0x4b3c('0x9')][_0x4b3c('0x1b')](_0x436dd1[_0x4b3c('0x15')]())),this[_0x4b3c('0x4')]['bind'](_0x4b3c('0x5'))['to'](this[_0x4b3c('0xb')],_0x4b3c('0x8'),_0x18ce66=>_0x18ce66&&this[_0x4b3c('0x10')][_0x4b3c('0x9')][_0x4b3c('0x1b')](_0x436dd1['getRanges']())),this[_0x4b3c('0x2')]=null,_0x6a4620[_0x4b3c('0xd')]&&this[_0x4b3c('0x12')](),this[_0x4b3c('0x17')](_0x6a4620,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x4b3c('0x17')](_0x6a4620,_0x4b3c('0xa'),()=>this[_0x4b3c('0xa')]()),this[_0x4b3c('0x17')](_0x6a4620,'change:isDirty',()=>{_0x6a4620[_0x4b3c('0xd')]?this[_0x4b3c('0x12')]():this[_0x4b3c('0x13')]();});}['acceptSuggestion'](){this[_0x4b3c('0xf')][_0x4b3c('0x0')](this[_0x4b3c('0x9')]['id']);}[_0x4b3c('0xa')](){this['_discardCommand']['execute'](this[_0x4b3c('0x9')]['id']);}[_0x4b3c('0x1')](){this['view'][_0x4b3c('0x16')](_0x4b3c('0x8')),this[_0x4b3c('0x4')][_0x4b3c('0x16')](_0x4b3c('0x19')),this[_0x4b3c('0x4')][_0x4b3c('0x16')](_0x4b3c('0x5')),this['stopListening'](),this[_0x4b3c('0x18')][_0x4b3c('0x1')](),this['_pendingAction']&&this[_0x4b3c('0x13')]();}['_setPendingAction'](){const _0xd9d632=_0x434af1(this[_0x4b3c('0x10')][_0x4b3c('0x7')],_0x4b3c('0x6'));this['_pendingAction']=this['_editor'][_0x4b3c('0x1a')]['get'](_0x4b3c('0x3'))[_0x4b3c('0x1c')](_0xd9d632);}[_0x4b3c('0x13')](){null!==this[_0x4b3c('0x2')]&&this[_0x4b3c('0x10')][_0x4b3c('0x1a')][_0x4b3c('0xe')](_0x4b3c('0x3'))[_0x4b3c('0xc')](this[_0x4b3c('0x2')]),this['_pendingAction']=null;}}
23
+ const _0x267b=['execute','commentThreadController','stopListening','listenTo','destroy','_editor','_discardCommand','remove','isEnabled','acceptSuggestion','canDiscard','_removePendingAction','view','canAccept','PendingActions','canEditAt','unbind','commands','getRanges','_acceptCommand','add','change:isDirty','_setPendingAction','model','locale','plugins','discardSuggestion','get','_pendingAction','PENDING_ACTION_SUGGESTION'];(function(_0x133e4e,_0x267b4f){const _0x3e63c4=function(_0x2eb41b){while(--_0x2eb41b){_0x133e4e['push'](_0x133e4e['shift']());}};_0x3e63c4(++_0x267b4f);}(_0x267b,0xb4));const _0x3e63=function(_0x133e4e,_0x267b4f){_0x133e4e=_0x133e4e-0x0;let _0x3e63c4=_0x267b[_0x133e4e];return _0x3e63c4;};import{ObservableMixin as _0x4df3cc}from'ckeditor5/src/utils';import{getTranslation as _0x1eabfe}from'../utils/common-translations';export default class Gt extends _0x4df3cc(){constructor(_0x49dea0,_0x1941b6,_0x3380e7,_0xbbde7e){super(),this[_0x3e63('0x17')]=_0x1941b6,this[_0x3e63('0xc')]=_0x3380e7,this[_0x3e63('0x1')]=_0xbbde7e,this[_0x3e63('0x5')]=_0x49dea0,this[_0x3e63('0x13')]=_0x49dea0[_0x3e63('0x11')]['get'](_0x3e63('0x9')),this[_0x3e63('0x6')]=_0x49dea0[_0x3e63('0x11')]['get']('discardSuggestion'),this[_0x3e63('0xc')]['bind'](_0x3e63('0x8'))['to'](this['_acceptCommand'],this[_0x3e63('0x6')],(_0x2ac310,_0x1bf5a3)=>_0x2ac310||_0x1bf5a3),this[_0x3e63('0xc')]['bind'](_0x3e63('0xd'))['to'](this[_0x3e63('0x13')],'isEnabled',_0x46eb36=>_0x46eb36&&this['_editor'][_0x3e63('0x17')][_0x3e63('0xf')](_0x1941b6[_0x3e63('0x12')]())),this[_0x3e63('0xc')]['bind'](_0x3e63('0xa'))['to'](this['_discardCommand'],'isEnabled',_0x757f1d=>_0x757f1d&&this[_0x3e63('0x5')][_0x3e63('0x17')][_0x3e63('0xf')](_0x1941b6['getRanges']())),this[_0x3e63('0x1c')]=null,_0x3380e7['isDirty']&&this['_setPendingAction'](),this[_0x3e63('0x3')](_0x3380e7,_0x3e63('0x9'),()=>this['acceptSuggestion']()),this['listenTo'](_0x3380e7,_0x3e63('0x1a'),()=>this[_0x3e63('0x1a')]()),this['listenTo'](_0x3380e7,_0x3e63('0x15'),()=>{_0x3380e7['isDirty']?this[_0x3e63('0x16')]():this[_0x3e63('0xb')]();});}['acceptSuggestion'](){this[_0x3e63('0x13')][_0x3e63('0x0')](this['model']['id']);}[_0x3e63('0x1a')](){this[_0x3e63('0x6')][_0x3e63('0x0')](this[_0x3e63('0x17')]['id']);}[_0x3e63('0x4')](){this[_0x3e63('0xc')][_0x3e63('0x10')](_0x3e63('0x8')),this['view'][_0x3e63('0x10')](_0x3e63('0xd')),this[_0x3e63('0xc')][_0x3e63('0x10')](_0x3e63('0xa')),this[_0x3e63('0x2')](),this[_0x3e63('0x1')][_0x3e63('0x4')](),this[_0x3e63('0x1c')]&&this[_0x3e63('0xb')]();}[_0x3e63('0x16')](){const _0x3794ae=_0x1eabfe(this[_0x3e63('0x5')][_0x3e63('0x18')],_0x3e63('0x1d'));this[_0x3e63('0x1c')]=this[_0x3e63('0x5')][_0x3e63('0x19')][_0x3e63('0x1b')](_0x3e63('0xe'))[_0x3e63('0x14')](_0x3794ae);}['_removePendingAction'](){null!==this[_0x3e63('0x1c')]&&this[_0x3e63('0x5')][_0x3e63('0x19')]['get'](_0x3e63('0xe'))[_0x3e63('0x7')](this[_0x3e63('0x1c')]),this[_0x3e63('0x1c')]=null;}}