@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230705.0 → 0.0.0-nightly-20230707.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d21=['isInsideObject','isSelectable','createElement','range','_getAuthorFromId','deletion:discard','_handleNewSuggestionMarker','track-changes-adapter-already-set','_findSuggestions','enqueueChange','discard','getRanges','change','isRemovable','batch','before','_createSuggestion','getSuggestion','getFirstMarker','dataToMarker','previous','options','oldRange','add','map','getItems','trackChangesCommand','isNextTo','always','addHighlight','model','getShiftedBy','newRange','includes','targetPosition','some','registerCustomCallback','clear','trackChanges.mergeNestedSuggestions','setSelection','after','insertion:accept','containsRangeInObject','end','formatInline:discard','_joinSuggestions','low','createPositionAfter','setAttribute','removed','type','isLocal','ck-suggestion-marker-','commands','change:_saved','removeAttribute','containsItem','track-changes-suggestion-data-mismatch','isCollapsed','elementEnd','PENDING_ACTION_SUGGESTION','parent','authoredAt','consume','suggestionChanged','formatBlock:accept','insertion:discard','hasComments','suggestionLoaded','default','push','remove','getDifference','isBefore','_isForcedDefaultExecutionBlock','rejected','external:','substr','getChanges','markerToData','next','locale','updateSuggestion','formatBlock:join','join','showSuggestionHighlights','discardSelectedSuggestions','value','_mergeNestedSuggestions','_suggestions','high','rootName','acceptSuggestion','createdAt','addUser','getNearestSelectionRange','detach','discardAllSuggestions','isInContent','_trackFormatChanges','fetchCommentThread','splitPosition','upcast','_removeSuggestion','elementToElement','track-changes-user-not-found','getIntersection','size','removeMarkers','markInlineFormat','fromRange','forward','formatInline:accept','item','multipleBlocks','isAtStart','getMultiRangeId','hasSuggestion','CommentsRepository','resolve','createPositionAt','markMultiRangeBlockFormat','addMarker:suggestion:formatBlock','subType','_saved','isObject','applyOperation','markInsertion','mapper','never','getMarkers','schema','trackChanges.trackFormatChanges','howMany','isAfter','data','accept','reconvertMarker','dataDowncast','unbind','$textProxy','toViewElement','getUser','getRange','length','position','_refreshSuggestionsChain','dataReady','formatBlock','hasCommentThread','getChangedMarkers','isExternal','isDocumentOperation','formatBlock:','config','_getSuggestionData','for','markerReady','multi','_rangeIsInLocalUserInsertion','createRange','enableReadOnlyMode','addMarker','ck-suggestion-marker','clone','_customCallbacks','getAllAdjacentSuggestions','formatBlock:discard','createPositionBefore','formatBlock:chain','_commentsRepository','marker-count','values','deleteContent','createSelection','_updateSuggestionData','normal','containsRange','insert','sort','toJSON','markerName','containsPosition','_joinWithAdjacentSuggestions','every','creator','acceptSelectedSuggestions','@external','nodeBefore','getSuggestionCallback','then','_editor','conversion','author','editingDowncast','setTo','change:activeMarkers','discardSuggestion','editor','skipNestingCheck','collaboration.channelId','elementStart','adapter','buildSuggestion','filter','root','differ','markMultiRangeDeletion','addCommentThread','addComment','suggestion:','split','addRange','forceDefaultExecution','isMultiRange','removeComment','_adapter','commandName','getFirstRange','addMarkerName','formatInline:','stop','isAtEnd','isLimit','_splitMarkerName','_setSuggestionRange','element','addMarker:suggestion','updateMarker','deletion:','isEqual','name','commentThread','widget','createRangeIn','getSuggestions','writer','getWalker','PendingActions','start','_defaultCallbacks','formatInline','getCustomProperty','_addThreadToSuggestion','formatInline:chain','deletion:chain','_cutOutSuggestionMarker','TrackChangesEditing','deletion:accept','attributes','has','isUndo','ck-suggestion-marker--active','_checkSuggestionCorrectness','addClass','isIntersectingWithRange','nodeAfter','_breakSuggestionMarker','init','addSuggestion','_model','markDeletion','isTouching','getAncestors','originalSuggestionId','update:suggestion','catch','get','_suggestionState','addSuggestionData','_addSuggestionMarker','notReady','from','removeMarker','moveTargetPosition','getAttribute','_getExternalAuthor','authorName','markerToHighlight','error-saving-suggestion-data-suggestion-discarded','track-changes-adapter-missing-getsuggestion','stopListening','$marker','_enabledCommands','deletion','suggestion','ck-suggestion-marker-formatBlock','suggestion-type','highest','markers','insertion:','set','ready','bindElementToMarker','selection','splice','insertion','_suggestionFactory','removeClass','define','listenTo','plugins','insertContent','isOwn','Users','backward','activeMarkers','getLastMatchingPosition','fire','_setSuggestionData','formatGroupId','execute','delete','rethrowUnexpectedError','trackChanges','enableCommand','insertion:join','group','document','removeMarker:suggestion:formatBlock','change:data','acceptAllSuggestions','_onDiscard','data-suggestion','$graveyard','track-changes-command-not-found'];(function(_0x4cf64a,_0x1d21c5){const _0x26bd26=function(_0x269efc){while(--_0x269efc){_0x4cf64a['push'](_0x4cf64a['shift']());}};_0x26bd26(++_0x1d21c5);}(_0x1d21,0x78));const _0x26bd=function(_0x4cf64a,_0x1d21c5){_0x4cf64a=_0x4cf64a-0x0;let _0x26bd26=_0x1d21[_0x4cf64a];return _0x26bd26;};import{Plugin as _0x10f1a0,PendingActions as _0x14901a}from'ckeditor5/src/core';import{LiveRange as _0x597006}from'ckeditor5/src/engine';import{CKEditorError as _0x1d5d2f,uid as _0x4b465a,priorities as _0x30fdd9,logWarning as _0x558002}from'ckeditor5/src/utils';import{toWidget as _0x27696b}from'ckeditor5/src/widget';import{Users as _0x506291,hashObject as _0x56cfb1}from'ckeditor5-collaboration/src/collaboration-core';import _0x6a2f3d from'./commands/trackchangescommand';import _0x4fad80 from'./commands/acceptsuggestioncommand';import _0x1ad3b3 from'./commands/discardsuggestioncommand';import _0x477f91 from'./commands/executeonallsuggestionscommand';import _0x53c874 from'./commands/executeonselectedsuggestionscommand';import _0x4f7e69 from'./suggestion';import _0x5d4d04 from'./suggestiondescriptionfactory';import _0x33b890 from'./integrations/alignment';import _0x163bea from'./integrations/basicstyles';import _0x3ad901 from'./integrations/blockquote';import _0x53d841 from'./integrations/ckbox';import _0x2fe6a9 from'./integrations/codeblock';import _0x5883ce from'./integrations/comments';import _0x1a4ab4 from'./integrations/deletecommand';import _0x3f124d from'./integrations/documentlist';import _0x23da42 from'./integrations/entercommand';import _0x2dab63 from'./integrations/findandreplace';import _0x44f717 from'./integrations/font';import _0x5272db from'./integrations/formatpainter';import _0x964991 from'./integrations/heading';import _0x59f310 from'./integrations/highlight';import _0x13f54e from'./integrations/horizontalline';import _0x33c4cf from'./integrations/htmlembed';import _0x4d3044 from'./integrations/image';import _0x41e32a from'./integrations/imagereplace';import _0x56e3df from'./integrations/importword';import _0xbe5af9 from'./integrations/indent';import _0x46ae6c from'./integrations/inputcommand';import _0x5c749f from'./integrations/link';import _0x504004 from'./integrations/list';import _0x1bbc29 from'./integrations/listproperties';import _0x46322c from'./integrations/mediaembed';import _0x2fd4bd from'./integrations/mention';import _0x35de16 from'./integrations/pagebreak';import _0x3765f4 from'./integrations/paragraph';import _0x49f33a from'./integrations/removeformat';import _0x299683 from'./integrations/restrictededitingmode';import _0x4dadd9 from'./integrations/shiftentercommand';import _0x31bf8a from'./integrations/standardeditingmode';import _0x2f75f5 from'./integrations/style';import _0x2f8cc0 from'./integrations/table';import _0x17248c from'./integrations/tablemergesplit';import _0x396ff7 from'./integrations/tableheadings';import _0x180d57 from'./integrations/tableclipboard';import _0x224305 from'./integrations/tablecolumnresize';import _0x16daa4 from'./integrations/template';import _0x5af8ef from'./integrations/tableofcontents';import _0x37b55b from'./integrations/title';import _0x533a06 from'./integrations/undo';import{getTranslation as _0x5cdd8b}from'./utils/common-translations';import _0x1916d8 from'./integrations/tablecaption';import _0x1d38fc from'./integrations/documentlistproperties';import _0xea144 from'./integrations/tableproperties';export default class p extends _0x10f1a0{static get['requires'](){return[_0x26bd('0x144'),_0x506291,_0x14901a,_0x33b890,_0x163bea,_0x3ad901,_0x53d841,_0x2fe6a9,_0x5883ce,_0x1a4ab4,_0x3f124d,_0x1d38fc,_0x23da42,_0x2dab63,_0x44f717,_0x5272db,_0x964991,_0x59f310,_0x13f54e,_0x33c4cf,_0x4d3044,_0x41e32a,_0x56e3df,_0xbe5af9,_0x46ae6c,_0x5c749f,_0x504004,_0x1bbc29,_0x46322c,_0x2fd4bd,_0x35de16,_0x3765f4,_0x49f33a,_0x299683,_0x4dadd9,_0x31bf8a,_0x2f75f5,_0x2f8cc0,_0x17248c,_0x396ff7,_0x1916d8,_0x180d57,_0x224305,_0x5af8ef,_0xea144,_0x16daa4,_0x37b55b,_0x533a06];}static get['pluginName'](){return _0x26bd('0x7f');}constructor(_0x3f0468){function _0xc940a8(_0xfc76c){return _0xfc76c[_0x26bd('0xe6')](_0xfad3be=>String['fromCharCode'](_0xfad3be))[_0x26bd('0x122')]('');}super(_0x3f0468),this[_0x26bd('0xab')](_0x26bd('0xba'),[]),this['on'](_0x26bd('0x4c'),(_0x1c715b,_0x4037ce,_0x215ae5,_0x1ee64d)=>{this['_model'][_0x26bd('0xda')](()=>{for(const _0x4416cd of[..._0x1ee64d,..._0x215ae5])this['_model']['markers']['has'](_0x4416cd)&&_0x3f0468['editing'][_0x26bd('0x11')](_0x4416cd);});}),this['_descriptionFactory']=new _0x5d4d04(this[_0x26bd('0x4e')][_0x26bd('0xec')][_0x26bd('0xb')],this['editor'][_0x26bd('0x11f')]),this[_0x26bd('0x60')]=null,this['_suggestionFactory']=new Dt(this[_0x26bd('0x4e')]),this[_0x26bd('0x127')]=new Map(),this[_0x26bd('0x32')]=_0x3f0468[_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0x144')),this[_0x26bd('0xa3')]=new Set(),this['_model']=this[_0x26bd('0x4e')]['model'],this[_0x26bd('0x94')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3f0468['config'][_0x26bd('0xb3')](_0x26bd('0xc'),_0x26bd('0x113')),this[_0x26bd('0x131')]=_0x3f0468['config'][_0x26bd('0x93')]('trackChanges.trackFormatChanges'),_0x3f0468[_0x26bd('0x22')][_0x26bd('0xb3')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x26bd('0x126')]=_0x3f0468[_0x26bd('0x22')]['get'](_0x26bd('0xf4')),this[_0x26bd('0xe8')]=new _0x6a2f3d(_0x3f0468,this[_0x26bd('0xa3')]),this[_0xc940a8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xc940a8([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x30]);}[_0x26bd('0x8a')](){const _0x87f25d=this[_0x26bd('0x4e')];_0x87f25d[_0x26bd('0x48')]['for'](_0x26bd('0x4a'))[_0x26bd('0x9e')]({'model':_0x26bd('0xa5'),'view':_0x98074b=>{const {id:_0x5ca6a6,type:_0x244a34}=this[_0x26bd('0x68')](_0x98074b[_0x26bd('0x3d')]),_0xa21767=['ck-suggestion-marker',_0x26bd('0x102')+_0x244a34];let _0x351ff1=0xbb8;return this[_0x26bd('0xba')][_0x26bd('0xef')](_0x98074b['markerName'])&&(_0xa21767[_0x26bd('0x114')]('ck-suggestion-marker--active'),_0x351ff1=0xbc2),_0x26bd('0xa4')==_0x244a34&&(_0x351ff1+=0x5),{'classes':_0xa21767,'attributes':{'data-suggestion':_0x5ca6a6},'priority':_0x351ff1};}}),_0x87f25d['conversion']['for'](_0x26bd('0x12'))['add'](_0x4d8362=>{_0x4d8362['on'](_0x26bd('0x6b'),(_0x1327c4,_0x5be35d,_0x4b31ef)=>{if(!_0x4b31ef[_0x26bd('0xe3')][_0x26bd('0x123')])return;const _0x8b5ff6=_0x5be35d['item'];if(!_0x8b5ff6)return;const _0x38e47a=_0x4b31ef[_0x26bd('0x8')][_0x26bd('0x15')](_0x8b5ff6);_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')][_0x26bd('0x5')](_0x8b5ff6)&&_0x38e47a&&!_0x38e47a[_0x26bd('0x7a')](_0x26bd('0x71'))&&_0x38e47a['is']('containerElement')&&_0x27696b(_0x38e47a,_0x4b31ef[_0x26bd('0x74')]);},{'priority':_0x26bd('0x128')});}),_0x87f25d['conversion'][_0x26bd('0x24')](_0x26bd('0x12'))[_0x26bd('0x9e')]({'model':'suggestion','view':(_0x3b4b71,_0x417dfe)=>{if(!_0x417dfe[_0x26bd('0xe3')][_0x26bd('0x123')])return null;const {type:_0x316bb8}=this[_0x26bd('0x68')](_0x3b4b71[_0x26bd('0x3d')]);return{'classes':[_0x26bd('0x2b'),'ck-suggestion-marker-'+_0x316bb8],'priority':0xbb8};}});const _0x248a58=({showActiveMarkers:_0x358e97=!0x0}={})=>(_0x1602dd,_0x2f658c,_0x4f7126)=>{if(!_0x2f658c[_0x26bd('0x13f')])return;if(_0x2f658c[_0x26bd('0x13f')]['is'](_0x26bd('0xae')))return void _0x4f7126['consumable'][_0x26bd('0x10d')](_0x2f658c[_0x26bd('0x13f')],_0x1602dd[_0x26bd('0x6f')]);const _0x4b4307=_0x4f7126[_0x26bd('0x8')][_0x26bd('0x15')](_0x2f658c[_0x26bd('0x13f')]);if(!(_0x2f658c['item']['is'](_0x26bd('0x6a'))&&_0x87f25d[_0x26bd('0xec')]['schema']['isBlock'](_0x2f658c[_0x26bd('0x13f')])&&!_0x4b4307[_0x26bd('0x7a')](_0x26bd('0xeb'))))return;const {id:_0x1826f5}=this[_0x26bd('0x68')](_0x2f658c[_0x26bd('0x3d')]);_0x4f7126[_0x26bd('0x74')][_0x26bd('0x86')]([_0x26bd('0x2b'),_0x26bd('0xa6')],_0x4b4307),_0x4f7126[_0x26bd('0x74')][_0x26bd('0xfe')](_0x26bd('0xcb'),_0x1826f5,_0x4b4307),_0x4f7126['mapper'][_0x26bd('0xad')](_0x4b4307,_0x2f658c['markerName']),_0x358e97&&(this[_0x26bd('0xba')][_0x26bd('0xef')](_0x2f658c[_0x26bd('0x3d')])?_0x4f7126[_0x26bd('0x74')][_0x26bd('0x86')](_0x26bd('0x84'),_0x4b4307):_0x4f7126[_0x26bd('0x74')]['removeClass']('ck-suggestion-marker--active',_0x4b4307));for(const _0x1eb29c of _0x87f25d['model'][_0x26bd('0x72')](_0x2f658c[_0x26bd('0x13f')])[_0x26bd('0xe7')]())_0x4f7126['consumable'][_0x26bd('0x10d')](_0x1eb29c,_0x1602dd['name']);_0x4f7126['consumable'][_0x26bd('0x10d')](_0x2f658c[_0x26bd('0x13f')],_0x1602dd[_0x26bd('0x6f')]);};_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')]('dataDowncast')['add'](_0x4ed496=>{_0x4ed496['on'](_0x26bd('0x2'),(_0x40156c,_0x1bfabd,_0x5cb987)=>{_0x5cb987[_0x26bd('0xe3')][_0x26bd('0x123')]&&_0x248a58({'showActiveMarkers':!0x1})(_0x40156c,_0x1bfabd,_0x5cb987);},{'priority':_0x26bd('0xa8')});}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')](_0x26bd('0x12'))[_0x26bd('0x11d')]({'model':_0x26bd('0xa5'),'view':(_0x57e27b,_0x3e4fd0)=>_0x3e4fd0[_0x26bd('0xe3')][_0x26bd('0x123')]?null:{'group':_0x26bd('0xa5'),'name':_0x57e27b[_0x26bd('0x11b')](0xb)}}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')]('upcast')[_0x26bd('0x136')]({'view':{'name':_0x26bd('0xa5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x576ac3,{writer:_0x54a4eb})=>{let _0x33bdd0=_0x26bd('0x5a')+_0x576ac3['getAttribute'](_0x26bd('0xa7'))+':'+_0x576ac3[_0x26bd('0x9b')]('id');return _0x576ac3[_0x26bd('0x9b')]('marker-count')&&(_0x33bdd0+=':'+_0x576ac3['getAttribute'](_0x26bd('0x33'))),_0x54a4eb[_0x26bd('0xd0')](_0x26bd('0xa2'),{'data-name':_0x33bdd0});}}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')](_0x26bd('0x134'))[_0x26bd('0xe1')]({'view':_0x26bd('0xa5')}),_0x87f25d[_0x26bd('0x48')][_0x26bd('0x24')](_0x26bd('0x4a'))[_0x26bd('0xe5')](_0x54e607=>{_0x54e607['on'](_0x26bd('0x2'),_0x248a58(),{'priority':_0x26bd('0x128')});}),_0x87f25d[_0x26bd('0x48')]['for'](_0x26bd('0x4a'))[_0x26bd('0xe5')](_0x45c2f2=>{_0x45c2f2['on'](_0x26bd('0xc7'),(_0x38f97d,_0x349a15,_0x39200c)=>{const _0x90c967=_0x39200c['mapper']['markerNameToElements'](_0x349a15[_0x26bd('0x3d')]);if(_0x90c967)for(const _0x3dd94d of _0x90c967)_0x3dd94d[_0x26bd('0x7a')](_0x26bd('0xeb'))||(_0x39200c[_0x26bd('0x74')][_0x26bd('0xb2')]([_0x26bd('0x2b'),_0x26bd('0xa6'),_0x26bd('0x84')],_0x3dd94d),_0x39200c[_0x26bd('0x74')][_0x26bd('0x105')](_0x26bd('0xcb'),_0x3dd94d),_0x39200c['mapper']['unbindElementFromMarkerName'](_0x3dd94d,_0x349a15['markerName']));},{'priority':'high'});}),_0x87f25d[_0x26bd('0xec')][_0x26bd('0xc6')]['registerPostFixer'](_0x418189=>{let _0x1c1121=!0x1;const _0x18a8d7=Array[_0x26bd('0x98')](_0x87f25d[_0x26bd('0xec')][_0x26bd('0xc6')][_0x26bd('0x56')][_0x26bd('0x1e')]()),_0x179661=new Set();for(const {name:_0x308de3,data:_0x4e13c4}of _0x18a8d7){const {group:_0x1bff00,type:_0x83a6f0,id:_0x314e5e}=this['_splitMarkerName'](_0x308de3);if(_0x26bd('0xa5')!==_0x1bff00)continue;const _0x3e025f=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x314e5e);if(null!=_0x4e13c4['newRange']){_0x26bd('0x79')==_0x83a6f0&&(_0x1c1121=_0x1c1121||Mt(_0x4e13c4[_0x26bd('0xee')],_0x308de3,_0x418189,_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')]));if(_0x4e13c4[_0x26bd('0xee')][_0x26bd('0x108')]||_0x26bd('0xcc')==_0x4e13c4[_0x26bd('0xee')]['root'][_0x26bd('0x129')]||'formatBlock'==_0x83a6f0&&!Nt(_0x4e13c4['newRange'])||_0x26bd('0xa4')==_0x83a6f0&&!(!_t(_0x58585a=_0x4e13c4[_0x26bd('0xee')])&&!function(_0x32c994){return _0x32c994[_0x26bd('0x77')][_0x26bd('0x10b')]==_0x32c994[_0x26bd('0xf9')][_0x26bd('0x44')]&&_0x32c994[_0x26bd('0x77')][_0x26bd('0x66')];}(_0x58585a)))_0x418189[_0x26bd('0x99')](_0x308de3),_0x1c1121=!0x0;else{if(!_0x3e025f||!_0x3e025f[_0x26bd('0x130')])continue;_0x179661[_0x26bd('0xe5')](_0x3e025f);}}}var _0x58585a;return _0x179661[_0x26bd('0x139')]>0x0&&(_0x1c1121=!!this['_joinWithAdjacentSuggestions'](_0x179661)||_0x1c1121),_0x1c1121;}),_0x87f25d['model'][_0x26bd('0xc6')]['registerPostFixer'](_0x1fc32b=>{let _0x42d1d8=!0x1;for(const _0x381afd of _0x87f25d['model'][_0x26bd('0xc6')][_0x26bd('0x56')][_0x26bd('0x11c')]()){if('insert'!=_0x381afd['type'])continue;const _0x572816=_0x381afd[_0x26bd('0x19')][_0x26bd('0xed')](_0x381afd['length']);if(_0x572816[_0x26bd('0x66')])for(const _0x310f60 of this[_0x26bd('0x127')][_0x26bd('0x34')]()){if(_0x310f60[_0x26bd('0x5e')]||!_0x310f60[_0x26bd('0x130')])continue;if(_0x26bd('0x1c')!=_0x310f60[_0x26bd('0x100')])continue;const _0x5ec315=_0x310f60['getFirstRange']();if(_0x5ec315['start'][_0x26bd('0x10b')]!=_0x5ec315['end'][_0x26bd('0x10b')]&&_0x5ec315[_0x26bd('0xf9')][_0x26bd('0x6e')](_0x381afd[_0x26bd('0x19')])){const _0x4cd490=_0x87f25d['model'][_0x26bd('0x28')](_0x5ec315[_0x26bd('0x77')],_0x572816);_0x1fc32b[_0x26bd('0x6c')](_0x310f60[_0x26bd('0xe0')](),{'range':_0x4cd490}),_0x42d1d8=!0x0;}}}return _0x42d1d8;}),_0x87f25d[_0x26bd('0xec')][_0x26bd('0xa9')]['on'](_0x26bd('0x91'),(_0x4315c8,_0x2f2e80,_0x1240f8)=>{if(null==_0x1240f8){const {id:_0x507005}=this[_0x26bd('0x68')](_0x2f2e80[_0x26bd('0x6f')]),_0x3bc8e=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x507005);_0x3bc8e&&_0x3bc8e[_0x26bd('0x63')](_0x2f2e80['name']);}}),_0x87f25d[_0x26bd('0xec')][_0x26bd('0xc6')]['on'](_0x26bd('0xc8'),()=>{const _0x3b8b1e=Array[_0x26bd('0x98')](_0x87f25d['model'][_0x26bd('0xc6')]['differ'][_0x26bd('0x1e')]())['filter'](_0x1fd898=>'suggestion'===this[_0x26bd('0x68')](_0x1fd898[_0x26bd('0x6f')])[_0x26bd('0xc5')]);if(0x0===_0x3b8b1e[_0x26bd('0x18')])return;_0x3b8b1e[_0x26bd('0x3b')]((_0x243258,_0xbbd26c)=>{const _0xf92982=_0x243258[_0x26bd('0xf')][_0x26bd('0xe4')],_0x5d7651=_0xbbd26c[_0x26bd('0xf')][_0x26bd('0xe4')];return null===_0xf92982&&null===_0x5d7651?0x0:null===_0xf92982&&null!==_0x5d7651?-0x1:null!==_0xf92982&&null===_0x5d7651?0x1:_0xf92982['start'][_0x26bd('0x117')](_0x5d7651['start'])?-0x1:0x1;});const _0xf091d7=new Set(),_0x539649=new Set();for(const {name:_0x403c35,data:_0x2aba49}of _0x3b8b1e){const {id:_0x4f8ede}=this[_0x26bd('0x68')](_0x403c35);if(null===_0x2aba49[_0x26bd('0xe4')]){const _0x1a8ecd=this[_0x26bd('0xd4')](_0x403c35);_0x539649['add'](_0x1a8ecd);}else{const _0x573578=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x4f8ede);null!==_0x2aba49[_0x26bd('0xee')]||_0x573578[_0x26bd('0x130')]?(_0xf091d7['add'](_0x573578['head']),_0x539649[_0x26bd('0xe5')](_0x573578)):this[_0x26bd('0x135')](_0x573578);}}_0x539649[_0x26bd('0x139')]>0x0&&this['_refreshSuggestionsChain'](_0x539649);for(const _0x2d8daa of _0xf091d7)this[_0x26bd('0xbc')](_0x26bd('0x10e'),_0x2d8daa);}),_0x87f25d[_0x26bd('0xec')]['on'](_0x26bd('0x6'),(_0x38d351,_0x4c0a04)=>{const _0x1e0b61=_0x4c0a04[0x0];if(!this[_0x26bd('0x127')]['size'])return;if(!_0x1e0b61[_0x26bd('0x20')])return;if(_0x1e0b61[_0x26bd('0xdc')][_0x26bd('0x83')]||!_0x1e0b61[_0x26bd('0xdc')][_0x26bd('0x101')])return;let _0x37b5c3,_0x157637;switch(_0x1e0b61[_0x26bd('0x100')]){case _0x26bd('0x3a'):_0x37b5c3=_0x87f25d[_0x26bd('0xec')]['createPositionAt'](_0x1e0b61[_0x26bd('0x19')]),_0x157637=_0x37b5c3[_0x26bd('0xed')](_0x1e0b61['howMany']);break;case _0x26bd('0x5b'):_0x37b5c3=_0x87f25d[_0x26bd('0xec')][_0x26bd('0x0')](_0x1e0b61[_0x26bd('0x133')]),_0x157637=_0x87f25d[_0x26bd('0xec')]['createPositionAt'](_0x1e0b61[_0x26bd('0x9a')]);break;case'move':_0x37b5c3=_0x87f25d['model'][_0x26bd('0x0')](_0x1e0b61[_0x26bd('0xf0')]),_0x157637=_0x37b5c3['getShiftedBy'](_0x1e0b61[_0x26bd('0xd')]);break;default:return;}const _0x1d0a21=_0x87f25d[_0x26bd('0xec')][_0x26bd('0x28')](_0x37b5c3,_0x157637);_0x87f25d[_0x26bd('0xec')][_0x26bd('0xda')](()=>{for(const {suggestion:_0x3f76aa,meta:_0xd4d8ea}of this[_0x26bd('0xd6')](_0x1d0a21)){if(_0x3f76aa['isMultiRange'])continue;if(_0x26bd('0x79')==_0x3f76aa[_0x26bd('0x100')])continue;const _0x40f70c=_0x3f76aa[_0x26bd('0xf')]&&_0x3f76aa[_0x26bd('0xf')]['multipleBlocks'];(_0x26bd('0x1c')!=_0x3f76aa[_0x26bd('0x100')]||_0x26bd('0x5b')==_0x1e0b61[_0x26bd('0x100')]&&!_0x40f70c)&&(_0xd4d8ea[_0x26bd('0xf8')]||_0x26bd('0xb0')==_0x3f76aa[_0x26bd('0x100')]&&_0xd4d8ea['isOwn']||_0x3f76aa['getFirstRange']()[_0x26bd('0x39')](_0x1d0a21)&&this[_0x26bd('0x89')](_0x3f76aa,_0x37b5c3,_0x157637));}});},{'priority':'lowest'}),_0x87f25d['model']['on']('deleteContent',(_0x198dff,_0x2761b5)=>{const _0x34d8c5=_0x2761b5[0x0],_0x238dbd=_0x2761b5[0x1];if(_0x238dbd&&_0x238dbd[_0x26bd('0x5d')])return;if(this[_0x26bd('0x118')])return;if(!this[_0x26bd('0xe8')][_0x26bd('0x125')])return;if(_0x34d8c5['isCollapsed'])return;const _0x35fad9=_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')],{start:_0x172fd3,end:_0xa43642}=_0x34d8c5[_0x26bd('0x62')](),_0x1a31d7=_0x172fd3[_0x26bd('0x88')]&&_0x35fad9[_0x26bd('0x67')](_0x172fd3[_0x26bd('0x88')])?null:_0x35fad9['getNearestSelectionRange'](_0x172fd3,_0x26bd('0x13d')),_0x27a7a1=_0xa43642[_0x26bd('0x44')]&&_0x35fad9['isLimit'](_0xa43642[_0x26bd('0x44')])?null:_0x35fad9[_0x26bd('0x12d')](_0xa43642,_0x26bd('0xb9')),_0x542151=_0x87f25d[_0x26bd('0xec')][_0x26bd('0x28')](_0x1a31d7?_0x1a31d7[_0x26bd('0x77')]:_0x172fd3,_0x27a7a1?_0x27a7a1[_0x26bd('0xf9')]:_0xa43642);_0x87f25d[_0x26bd('0xec')][_0x26bd('0xda')](_0x58c512=>{this[_0x26bd('0x8d')](_0x542151);const _0x181457=_0x87f25d[_0x26bd('0xec')][_0x26bd('0xb')]['getNearestSelectionRange'](_0x542151[_0x26bd('0x77')]);_0x34d8c5['is']('documentSelection')?_0x58c512['setSelection'](_0x181457):_0x34d8c5[_0x26bd('0x4b')](_0x181457);}),_0x198dff[_0x26bd('0x65')]();},{'priority':_0x30fdd9[_0x26bd('0x38')]+0xa}),_0x87f25d[_0x26bd('0xec')]['on'](_0x26bd('0xb6'),(_0x43d201,_0x3e41c2)=>{const _0x23118e=_0x3e41c2[_0x3e41c2[_0x26bd('0x18')]-0x1];_0x23118e&&_0x23118e['forceDefaultExecution']||this[_0x26bd('0x118')]||this[_0x26bd('0xe8')][_0x26bd('0x125')]&&(_0x87f25d['model']['change'](()=>{let _0x5df682=_0x87f25d['model']['insertContent'](_0x3e41c2[0x0],_0x3e41c2[0x1],_0x3e41c2[0x2],{'forceDefaultExecution':!0x0});if(!_0x5df682)return;_0x43d201['return']=_0x5df682[_0x26bd('0x2c')]();const _0x1cd8a5=_0x5df682[_0x26bd('0xf9')]['nodeBefore'],_0x3fdd2e=_0x87f25d[_0x26bd('0xec')]['schema'];_0x1cd8a5&&_0x3fdd2e['isBlock'](_0x1cd8a5)&&!_0x3fdd2e[_0x26bd('0x5')](_0x1cd8a5)&&(_0x5df682=_0x87f25d[_0x26bd('0xec')]['createRange'](_0x5df682['start'],_0x87f25d['model'][_0x26bd('0x0')](_0x1cd8a5,_0x26bd('0xf9')))),this['markInsertion'](_0x5df682);}),_0x43d201['stop']());},{'priority':_0x26bd('0x128')}),this[_0x26bd('0x4e')]['commands'][_0x26bd('0xe5')](_0x26bd('0xc2'),this[_0x26bd('0xe8')]),this[_0x26bd('0xc3')](_0x26bd('0xc2'));const _0x58519b=new _0x4fad80(_0x87f25d,this['_suggestions']);_0x87f25d[_0x26bd('0x103')]['add'](_0x26bd('0x12a'),_0x58519b),this[_0x26bd('0xc3')](_0x26bd('0x12a'));const _0x17f5d1=new _0x1ad3b3(_0x87f25d,this[_0x26bd('0x127')]);_0x87f25d[_0x26bd('0x103')][_0x26bd('0xe5')](_0x26bd('0x4d'),_0x17f5d1),this[_0x26bd('0xc3')]('discardSuggestion'),_0x87f25d[_0x26bd('0x103')]['add']('acceptAllSuggestions',new _0x477f91(_0x87f25d,_0x58519b,this['_suggestions'])),this['enableCommand'](_0x26bd('0xc9')),_0x87f25d['commands'][_0x26bd('0xe5')](_0x26bd('0x12f'),new _0x477f91(_0x87f25d,_0x17f5d1,this[_0x26bd('0x127')])),this[_0x26bd('0xc3')](_0x26bd('0x12f')),_0x87f25d['commands'][_0x26bd('0xe5')](_0x26bd('0x42'),new _0x53c874(_0x87f25d,_0x58519b,this[_0x26bd('0x127')])),this[_0x26bd('0xc3')](_0x26bd('0x42')),_0x87f25d[_0x26bd('0x103')][_0x26bd('0xe5')](_0x26bd('0x124'),new _0x53c874(_0x87f25d,_0x17f5d1,this[_0x26bd('0x127')])),this[_0x26bd('0xc3')](_0x26bd('0x124'));const _0xa33b9=_0x87f25d[_0x26bd('0xb5')][_0x26bd('0x93')]('CommentsRepository');this[_0x26bd('0xb4')](_0xa33b9,_0x26bd('0x59'),(_0xfafaf4,{threadId:_0x5d2729})=>{const _0x525cda=this[_0x26bd('0x127')]['get'](_0x5d2729);_0x525cda&&_0x525cda[_0x26bd('0x70')]&&0x1===_0x525cda['commentThread'][_0x26bd('0x18')]&&this[_0x26bd('0x37')](_0x5d2729,{'hasComments':!0x0});},{'priority':_0x26bd('0xfc')}),this[_0x26bd('0xb4')](_0xa33b9,_0x26bd('0x5f'),(_0x49b413,{threadId:_0x4493bb})=>{const _0x526d37=this['_suggestions'][_0x26bd('0x93')](_0x4493bb);_0x526d37&&_0x526d37[_0x26bd('0x70')]&&!_0x526d37[_0x26bd('0x70')]['length']&&this[_0x26bd('0x37')](_0x4493bb,{'hasComments':!0x1});},{'priority':'low'});}set[_0x26bd('0x52')](_0xf5ce29){if(this[_0x26bd('0x60')])throw new _0x1d5d2f(_0x26bd('0xd5'),this);this['_adapter']=_0xf5ce29;}get[_0x26bd('0x52')](){return this[_0x26bd('0x60')];}[_0x26bd('0x73')]({skipNotAttached:_0x3736e7=!0x1,toJSON:_0x301743=!0x1}={}){const _0x26a5de=[];for(const _0x409167 of this[_0x26bd('0x127')][_0x26bd('0x34')]())_0x3736e7&&!_0x409167[_0x26bd('0x130')]||_0x26a5de[_0x26bd('0x114')](_0x409167);return _0x301743?_0x26a5de[_0x26bd('0xe6')](_0x130411=>_0x130411[_0x26bd('0x3c')]()):_0x26a5de;}[_0x26bd('0xdf')](_0x4a7eb3){const _0x1b2692=this['_suggestions']['get'](_0x4a7eb3);if(!_0x1b2692)throw new _0x1d5d2f('track-changes-suggestion-not-found',this);return _0x1b2692;}[_0x26bd('0x143')](_0x4c9cb5){return this[_0x26bd('0x127')]['has'](_0x4c9cb5);}[_0x26bd('0x95')](_0x58cefd){const {authorId:_0x179957,id:_0x1760c4,attributes:_0x531cc8}=_0x58cefd,[_0x5acfdc,_0x66ea3a]=_0x58cefd[_0x26bd('0x100')][_0x26bd('0x5b')](':'),_0x54901f=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x1760c4)||this['_createSuggestion'](_0x5acfdc,_0x66ea3a,_0x1760c4,_0x179957,_0x531cc8);if(this[_0x26bd('0x7b')](_0x54901f),this['_checkSuggestionCorrectness'](_0x54901f,_0x5acfdc,_0x66ea3a||null,_0x179957),_0x54901f[_0x26bd('0x12b')]=_0x58cefd['createdAt'],_0x531cc8&&_0x531cc8['@external']){const _0xc97358=_0x531cc8[_0x26bd('0x43')],_0x4fa119=this['_getExternalAuthor'](_0xc97358[_0x26bd('0x9d')]);_0x54901f[_0x26bd('0x10c')]=_0xc97358[_0x26bd('0x12b')],_0x54901f[_0x26bd('0x49')]=_0x4fa119,_0x54901f[_0x26bd('0x1f')]=!0x0;}else _0x54901f[_0x26bd('0x10c')]=_0x58cefd[_0x26bd('0x12b')];switch(_0x58cefd[_0x26bd('0xf')]&&(_0x54901f['data']=_0x58cefd[_0x26bd('0xf')]),_0x58cefd[_0x26bd('0x81')]&&(_0x54901f[_0x26bd('0x81')]=_0x58cefd['attributes']),this[_0x26bd('0x60')]&&this[_0x26bd('0x60')][_0x26bd('0x8b')]||(_0x54901f[_0x26bd('0x4')]=!0x0),this[_0x26bd('0x94')][_0x26bd('0x93')](_0x54901f)){case'notReady':this[_0x26bd('0x94')][_0x26bd('0xab')](_0x54901f,_0x26bd('0x1b'));break;case _0x26bd('0x25'):_0x54901f[_0x26bd('0x130')]?(this[_0x26bd('0x94')][_0x26bd('0xab')](_0x54901f,_0x26bd('0xac')),this[_0x26bd('0xbc')](_0x26bd('0x112'),_0x54901f)):this[_0x26bd('0x94')][_0x26bd('0xab')](_0x54901f,_0x26bd('0xff'));}return _0x54901f;}[_0x26bd('0x12a')](_0x45a97e){this[_0x26bd('0x5d')](()=>{this[_0x26bd('0x4e')][_0x26bd('0xec')][_0x26bd('0xda')](()=>{for(const _0x43085d of _0x45a97e[_0x26bd('0x2e')]())_0x43085d['accept']();});});}[_0x26bd('0x4d')](_0x4be832){this[_0x26bd('0x5d')](()=>{this[_0x26bd('0x4e')][_0x26bd('0xec')][_0x26bd('0xda')](()=>{for(const _0x59929f of _0x4be832['getAllAdjacentSuggestions']())_0x59929f[_0x26bd('0xd8')]();});});}[_0x26bd('0xc3')](_0x37102f,_0x54a38f){const _0x300e7e=this['editor'][_0x26bd('0x103')][_0x26bd('0x93')](_0x37102f);if(!_0x300e7e)throw new _0x1d5d2f(_0x26bd('0xcd'),this,{'commandName':_0x37102f});this[_0x26bd('0xa3')]['add'](_0x300e7e),_0x54a38f&&_0x300e7e['on'](_0x26bd('0xbf'),(_0xe86c4f,_0x1450c2)=>{this['trackChangesCommand'][_0x26bd('0x125')]&&(this['_isForcedDefaultExecutionBlock']||_0x1450c2[_0x26bd('0x18')]>0x0&&_0x1450c2[_0x1450c2['length']-0x1]&&_0x1450c2[_0x1450c2['length']-0x1][_0x26bd('0x5d')]||(_0x54a38f((..._0x52e3a3)=>_0x300e7e[_0x26bd('0xbf')](..._0x52e3a3,{'forceDefaultExecution':!0x0}),..._0x1450c2),_0xe86c4f[_0x26bd('0x65')]()));},{'priority':_0x26bd('0x128')});}['forceDefaultExecution'](_0x2e3add){let _0x3520f9,_0x238b73;const _0x2c9714=this[_0x26bd('0x118')];this[_0x26bd('0x118')]=!0x0;try{_0x3520f9=_0x2e3add();}catch(_0xe042db){_0x238b73=_0xe042db;}return _0x2c9714||(this[_0x26bd('0x118')]=!0x1),_0x238b73&&_0x1d5d2f[_0x26bd('0xc1')](_0x238b73,this),_0x3520f9;}[_0x26bd('0x7')](_0x3d0ccc,_0x286f82=null,_0x43c52b={}){if(_0x3d0ccc[_0x26bd('0x108')])return null;const _0x1b0ed1=this[_0x26bd('0x4e')][_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0xb8'))['me'];for(const {suggestion:_0x475a0a,meta:_0x50c887}of this['_findSuggestions'](_0x3d0ccc,_0x26bd('0xb0')))if(_0x50c887['isOwn']){if(!_0x50c887[_0x26bd('0xe9')]){if(!this['_mergeNestedSuggestions']&&_0x50c887[_0x26bd('0xf8')])continue;return _0x475a0a;}if(_0x286f82==_0x475a0a[_0x26bd('0x3')]){const _0x4aa94e=_0x475a0a[_0x26bd('0x62')]();return _0x4aa94e['start'][_0x26bd('0x6e')](_0x3d0ccc['end'])?this[_0x26bd('0x69')](_0x475a0a,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x3d0ccc[_0x26bd('0x77')],_0x4aa94e[_0x26bd('0xf9')])):this[_0x26bd('0x69')](_0x475a0a,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x4aa94e[_0x26bd('0x77')],_0x3d0ccc['end'])),_0x475a0a;}}const _0x3b0631=_0x4b465a(),_0x294177=_0x1b0ed1['id'],_0x30b7bc=_0x286f82?_0x26bd('0xaa')+_0x286f82:_0x26bd('0xb0'),_0x4dd807=this[_0x26bd('0xbd')]({'id':_0x3b0631,'type':_0x30b7bc,'createdAt':new Date(),'authorId':_0x294177,'attributes':_0x43c52b});return this[_0x26bd('0x96')](_0x30b7bc,_0x3b0631,_0x294177,_0x3d0ccc),_0x4dd807;}['markMultiRangeInsertion'](_0x4d517e,_0x473082=_0x26bd('0x26'),_0x378f9e={}){const _0x5075df=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')](_0x26bd('0xb8'))['me'],_0x2439a4=this['_suggestionFactory'][_0x26bd('0x45')](_0x26bd('0xb0'),_0x473082,'join');for(const _0x1472cf of this[_0x26bd('0x73')]())if(_0x1472cf[_0x26bd('0x49')]['id']==_0x5075df['id']&&_0x26bd('0xb0')==_0x1472cf['type']&&_0x1472cf['subType']==_0x473082&&(_0x2439a4(_0x1472cf[_0x26bd('0xd9')](),_0x4d517e)||_0x2439a4(_0x4d517e,_0x1472cf[_0x26bd('0xd9')]()))){for(const _0x2e6e4d of _0x4d517e)_0x1472cf[_0x26bd('0x5c')](_0x2e6e4d);return _0x1472cf;}if(this['_mergeNestedSuggestions'])for(const _0x2dcd88 of _0x4d517e)for(const {suggestion:_0x1c05d1,meta:_0x573b5f}of this['_findSuggestions'](_0x2dcd88,_0x26bd('0xb0'))){if(!_0x573b5f[_0x26bd('0xb7')])continue;let _0x2e8ace=!0x0;for(const _0x2960c9 of _0x1c05d1[_0x26bd('0xd9')]())for(const _0x7e93cf of _0x4d517e)if(!_0x2960c9['containsRange'](_0x7e93cf)){_0x2e8ace=!0x1;break;}if(_0x2e8ace)return _0x1c05d1;}const _0x23b46d=_0x4b465a(),_0x2d16cd=_0x5075df['id'],_0x4f225e=_0x26bd('0xaa')+_0x473082,_0x359e3b=this[_0x26bd('0xbd')]({'id':_0x23b46d,'type':_0x4f225e,'createdAt':new Date(),'authorId':_0x2d16cd,'attributes':_0x378f9e});for(const _0x3880ae of _0x4d517e)this['_addSuggestionMarker'](_0x4f225e,_0x23b46d,_0x2d16cd,_0x3880ae,_0x4f7e69[_0x26bd('0x142')]());return _0x359e3b;}[_0x26bd('0x13b')](_0x3b8eca,_0x202b94,_0x4d8943=null,_0x55ad08={}){if(_0x4d8943=_0x4d8943||$t(_0x202b94),_0x3b8eca[_0x26bd('0x108')])return null;if(_0x26bd('0x9')===this[_0x26bd('0x131')]){const _0x3db1d7=this['_suggestionFactory'][_0x26bd('0x45')]('formatInline',_0x4d8943,'accept');return this[_0x26bd('0x5d')](()=>_0x3db1d7([_0x3b8eca],_0x202b94,_0x55ad08)),null;}const _0x5af973=this['editor'][_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0xb8'))['me'],_0x387bee=[];if(_0x26bd('0xea')!==this[_0x26bd('0x131')])for(const {suggestion:_0xea4ef4,meta:_0x28c0c4}of this[_0x26bd('0xd6')](_0x3b8eca,_0x26bd('0xb0')))_0x28c0c4['isOwn']&&!_0x28c0c4[_0x26bd('0xce')]&&_0x387bee[_0x26bd('0x114')](..._0xea4ef4['getRanges']());const _0x1f7085=function(_0x44beaf,_0x3cda57){const _0x285b2c=[];for(const _0x25a4ae of _0x3cda57){const _0x2e0c8d=_0x44beaf[_0x26bd('0x138')](_0x25a4ae);_0x2e0c8d&&_0x285b2c[_0x26bd('0x114')](_0x2e0c8d);}return _0x285b2c;}(_0x3b8eca,_0x387bee),_0x2a5140=function(_0x44caf8,_0x49756f){const _0x2b1063=[_0x44caf8];for(const _0x38341d of _0x49756f){let _0x471c4c=0x0;for(;_0x471c4c<_0x2b1063['length'];){const _0x5df968=_0x2b1063[_0x471c4c][_0x26bd('0x116')](_0x38341d);_0x2b1063[_0x26bd('0xaf')](_0x471c4c,0x1,..._0x5df968),_0x471c4c+=_0x5df968['length'];}}return _0x2b1063;}(_0x3b8eca,_0x387bee);_0x1f7085[_0x26bd('0x18')]&&this[_0x26bd('0x8c')][_0x26bd('0xda')](()=>{for(const _0x446c04 of _0x1f7085){const _0x4212a8=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0x79'),_0x4d8943,'accept');this[_0x26bd('0x5d')](()=>_0x4212a8([_0x446c04],_0x202b94,_0x55ad08));}});for(const _0x4661d5 of _0x2a5140){let _0x2a2e87=null,_0x212141=_0x4661d5[_0x26bd('0x77')],_0xa3be09=_0x4661d5['end'];for(const {suggestion:_0x2aabb7,meta:_0x4af8fe}of this[_0x26bd('0xd6')](_0x4661d5,_0x26bd('0x79'))){if(!_0x4af8fe['isOwn'])continue;if(_0x2aabb7[_0x26bd('0x3')]!=_0x4d8943)continue;const _0x1a3c81=_0x2aabb7[_0x26bd('0x62')]();if(_0x1a3c81[_0x26bd('0x39')](_0x4661d5,!0x0))return null;_0x212141=_0x212141[_0x26bd('0x117')](_0x1a3c81[_0x26bd('0x77')])?_0x212141:_0x1a3c81[_0x26bd('0x77')],_0xa3be09=_0xa3be09[_0x26bd('0xe')](_0x1a3c81[_0x26bd('0xf9')])?_0xa3be09:_0x1a3c81['end'],_0x2a2e87?_0x1a3c81[_0x26bd('0x77')][_0x26bd('0x117')](_0x2a2e87[_0x26bd('0x62')]()[_0x26bd('0x77')])?(_0x2a2e87[_0x26bd('0x13a')](),_0x2a2e87=_0x2aabb7):_0x2aabb7[_0x26bd('0x13a')]():_0x2a2e87=_0x2aabb7;}const _0x5676c4=this['_model'][_0x26bd('0x28')](_0x212141,_0xa3be09);if(_0x2a2e87)this[_0x26bd('0x69')](_0x2a2e87,_0x5676c4);else{const _0x4c5ebe=_0x4b465a(),_0x257231=_0x5af973['id'];this['_setSuggestionData']({'id':_0x4c5ebe,'type':_0x26bd('0x64')+_0x4d8943,'data':_0x202b94,'createdAt':new Date(),'authorId':_0x257231,'attributes':_0x55ad08}),this[_0x26bd('0x96')]('formatInline:'+_0x4d8943,_0x4c5ebe,_0x257231,_0x5676c4);}}return null;}['markBlockFormat'](_0x23373c,_0x48ece9,_0x3770d8=[],_0x3b8a87=null,_0x171e9d={}){_0x48ece9[_0x26bd('0xbe')]||(_0x48ece9['formatGroupId']=_0x48ece9[_0x26bd('0x61')]),_0x48ece9[_0x26bd('0x140')]=_0x23373c['is'](_0x26bd('0xd1')),_0x3b8a87=_0x3b8a87||$t(_0x48ece9);const _0x52b3aa=_0x3770d8[_0x26bd('0xe6')](_0x3c958e=>Rt(_0x3c958e,this['_model'])),_0x3afc63=_0x23373c['is'](_0x26bd('0xd1'))?_0x23373c:Rt(_0x23373c,this['_model']);if('never'===this[_0x26bd('0x131')]){const _0x257d8e=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0x1c'),_0x3b8a87,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x257d8e([_0x3afc63],_0x48ece9,_0x171e9d)),null;}_0x52b3aa[_0x26bd('0x114')](_0x3afc63);let _0x2785b2=!0x0;for(const _0x15dc2a of _0x52b3aa)if(!this[_0x26bd('0x27')](_0x15dc2a)){_0x2785b2=!0x1;break;}if(_0x2785b2&&_0x26bd('0xea')!==this[_0x26bd('0x131')]){const _0x218b3a=this[_0x26bd('0xb1')][_0x26bd('0x45')]('formatBlock',_0x3b8a87,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x218b3a([_0x3afc63],_0x48ece9,_0x171e9d)),null;}let _0x4cef61=null,_0xb62e48=_0x3afc63[_0x26bd('0x77')],_0x4f0e60=_0x3afc63['end'];for(const {suggestion:_0xcc6635,meta:_0x4d4293}of this[_0x26bd('0xd6')](_0x3afc63,_0x26bd('0x1c'))){if(!_0x4d4293['isOwn']||_0x4d4293[_0x26bd('0xe9')]||_0x4d4293['containsRangeInObject']||_0x4d4293['isInsideObject'])continue;if(_0xcc6635[_0x26bd('0xf')]['formatGroupId']!=_0x48ece9[_0x26bd('0xbe')])continue;const _0x5dffa8=_0xcc6635[_0x26bd('0x62')]();if(_0xcc6635[_0x26bd('0x3')]==_0x3b8a87){if(_0x5dffa8[_0x26bd('0x39')](_0x3afc63,!0x0))return null;_0xb62e48=_0xb62e48[_0x26bd('0x117')](_0x5dffa8[_0x26bd('0x77')])?_0xb62e48:_0x5dffa8[_0x26bd('0x77')],_0x4f0e60=_0x4f0e60[_0x26bd('0xe')](_0x5dffa8[_0x26bd('0xf9')])?_0x4f0e60:_0x5dffa8[_0x26bd('0xf9')],_0x4cef61?_0x5dffa8[_0x26bd('0x77')][_0x26bd('0x117')](_0x4cef61['getFirstRange']()[_0x26bd('0x77')])?(_0x4cef61[_0x26bd('0x13a')](),_0x4cef61=_0xcc6635):_0xcc6635[_0x26bd('0x13a')]():_0x4cef61=_0xcc6635;}else{const _0x268927=_0x3afc63[_0x26bd('0x138')](_0x5dffa8);this[_0x26bd('0x7e')](_0xcc6635,_0x268927);}}const _0x492c8c=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')]('Users')['me'],_0x238955=_0x4b465a(),_0x3e29db=_0x492c8c['id'];if(_0x4cef61)return this[_0x26bd('0x69')](_0x4cef61,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0xb62e48,_0x4f0e60)),_0x4cef61;{const _0x25eee5=this[_0x26bd('0xbd')]({'id':_0x238955,'type':_0x26bd('0x21')+_0x3b8a87,'data':_0x48ece9,'createdAt':new Date(),'authorId':_0x3e29db,'attributes':_0x171e9d});return this['_addSuggestionMarker'](_0x26bd('0x21')+_0x3b8a87,_0x238955,_0x3e29db,this['_model'][_0x26bd('0x28')](_0xb62e48,_0x4f0e60)),_0x25eee5;}}[_0x26bd('0x1')](_0x57b11c,_0x4c9b66,_0x48a343=[],_0x8c7647=null,_0x1c121a={}){_0x4c9b66['formatGroupId']||(_0x4c9b66[_0x26bd('0xbe')]=_0x4c9b66['commandName']);const _0x2afc30=_0x57b11c[0x0];_0x4c9b66['multipleBlocks']=_0x2afc30['is'](_0x26bd('0xd1')),_0x8c7647=_0x8c7647||$t(_0x4c9b66);const _0x2747e0=_0x48a343[_0x26bd('0xe6')](_0x219869=>Rt(_0x219869,this[_0x26bd('0x8c')])),_0x2857b9=_0x2afc30['is']('range')?_0x57b11c:_0x57b11c[_0x26bd('0xe6')](_0x5c2e7f=>Rt(_0x5c2e7f,this[_0x26bd('0x8c')]));if(_0x26bd('0x9')===this[_0x26bd('0x131')]){const _0x4bcd08=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0x1c'),_0x8c7647,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x4bcd08(_0x2857b9,_0x4c9b66,_0x1c121a)),null;}_0x2747e0[_0x26bd('0x114')](..._0x2857b9);let _0x2e28e5=!0x0;for(const _0x1d6d3d of _0x2747e0)if(!this['_rangeIsInLocalUserInsertion'](_0x1d6d3d)){_0x2e28e5=!0x1;break;}if(_0x2e28e5&&_0x26bd('0xea')!==this[_0x26bd('0x131')]){const _0x284528=this['_suggestionFactory'][_0x26bd('0x45')](_0x26bd('0x1c'),_0x8c7647,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x284528(_0x2857b9,_0x4c9b66,_0x1c121a)),null;}const _0x38d9af=this['editor']['plugins'][_0x26bd('0x93')]('Users')['me'];for(const _0x37d6a8 of this[_0x26bd('0x73')]()){if(_0x37d6a8['author']['id']!=_0x38d9af['id'])continue;if(_0x26bd('0x1c')!=_0x37d6a8['type']||_0x37d6a8[_0x26bd('0xf')][_0x26bd('0xbe')]!=_0x4c9b66[_0x26bd('0xbe')])continue;const _0x2a2cd0=_0x37d6a8[_0x26bd('0x3')]==_0x8c7647;for(let _0x5b751b=0x0;_0x5b751b<_0x2857b9['length'];_0x5b751b++){const _0x1fad53=_0x2857b9[_0x5b751b];for(const _0x526581 of _0x37d6a8[_0x26bd('0xa')]()){const _0x4bdb2c=_0x526581[_0x26bd('0x17')]();if(_0x1fad53[_0x26bd('0x6e')](_0x4bdb2c)){_0x2a2cd0?(_0x2857b9[_0x26bd('0xaf')](_0x5b751b,0x1),_0x5b751b--):_0x37d6a8[_0x26bd('0x99')](_0x526581[_0x26bd('0x6f')]);break;}}}}if(0x0==_0x2857b9[_0x26bd('0x18')])return null;const _0xd63634=this[_0x26bd('0xb1')]['getSuggestionCallback'](_0x26bd('0x1c'),_0x8c7647,_0x26bd('0x122'));for(const _0x5700ef of this[_0x26bd('0x73')]())if(_0x5700ef[_0x26bd('0x49')]['id']==_0x38d9af['id']&&_0x26bd('0x1c')==_0x5700ef[_0x26bd('0x100')]&&_0x5700ef['data'][_0x26bd('0xbe')]==_0x4c9b66[_0x26bd('0xbe')]&&_0x5700ef['subType']==_0x8c7647&&(_0xd63634(_0x5700ef[_0x26bd('0xd9')](),_0x2857b9)||_0xd63634(_0x2857b9,_0x5700ef[_0x26bd('0xd9')]()))){for(const _0x928774 of _0x2857b9)_0x5700ef[_0x26bd('0x5c')](_0x928774);return _0x5700ef;}const _0x1f6639=_0x4b465a(),_0x4cd34b=_0x38d9af['id'],_0x1bceb6=_0x26bd('0x21')+_0x8c7647,_0x39cdfe=this[_0x26bd('0xbd')]({'id':_0x1f6639,'type':_0x1bceb6,'data':_0x4c9b66,'createdAt':new Date(),'authorId':_0x4cd34b,'attributes':_0x1c121a});for(const _0x159cb5 of _0x2857b9)this[_0x26bd('0x96')](_0x1bceb6,_0x1f6639,_0x4cd34b,_0x159cb5,_0x4f7e69[_0x26bd('0x142')]());return _0x39cdfe;}[_0x26bd('0x8d')](_0x93168d,_0x24afea=null,_0x1443ed={}){if(_0x93168d[_0x26bd('0x108')])return null;const _0x4e6c42=this[_0x26bd('0x4e')][_0x26bd('0xb5')][_0x26bd('0x93')]('Users')['me'],_0x3703ee=new _0x597006(_0x93168d[_0x26bd('0x77')],_0x93168d[_0x26bd('0xf9')]);for(const {suggestion:_0x4e25d2,meta:_0x48e8f8}of this[_0x26bd('0xd6')](_0x3703ee,_0x26bd('0xb0')))if(_0x48e8f8[_0x26bd('0xb7')]&&!_0x48e8f8[_0x26bd('0xe9')]){if(_0x4e25d2[_0x26bd('0x5e')]){const _0x2e39d4=_0x4e25d2[_0x26bd('0xd9')]()[_0x26bd('0x54')](_0x2d7275=>_0x26bd('0xcc')!=_0x2d7275[_0x26bd('0x55')][_0x26bd('0x129')]);_0x2e39d4['every'](_0x27b2aa=>_0x3703ee['containsRange'](_0x27b2aa,!0x0))&&_0x4e25d2[_0x26bd('0xd8')]();if(_0x2e39d4[_0x26bd('0xf1')](_0x4054ec=>_0x4054ec['containsRange'](_0x3703ee,!0x0))){const _0x5bae81=this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x26bd('0xa4'),_0x24afea,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x5bae81([_0x3703ee],null,_0x1443ed)),null;}}else{const _0x313484=_0x3703ee[_0x26bd('0x138')](_0x4e25d2['getFirstRange']());null!==_0x313484&&_0x4e25d2[_0x26bd('0xca')]([_0x313484],null,_0x1443ed);}}if(_0x3703ee[_0x26bd('0x12e')](),_0x3703ee['isCollapsed']||_0x26bd('0xcc')==_0x3703ee['root'][_0x26bd('0x129')])return null;let _0x351ff6=null,_0x3b1645=_0x3703ee[_0x26bd('0x77')],_0x4e0753=_0x3703ee[_0x26bd('0xf9')];for(const {suggestion:_0x124fb7,meta:_0x31dd61}of this['_findSuggestions'](_0x3703ee,_0x26bd('0xa4')))if(_0x31dd61['isOwn']){if(_0x124fb7[_0x26bd('0x5e')]&&this[_0x26bd('0x126')]){let _0x17d277=!0x0;for(const _0xc9076c of _0x124fb7[_0x26bd('0xd9')]()){if(_0xc9076c[_0x26bd('0x39')](_0x3703ee,!0x0))return _0x124fb7;_0x3703ee[_0x26bd('0x39')](_0xc9076c)||(_0x17d277=!0x1);}_0x17d277&&_0x124fb7[_0x26bd('0xd8')]();}else{const _0xf02267=_0x124fb7[_0x26bd('0x62')]();if(_0xf02267[_0x26bd('0x39')](_0x3703ee,!0x0)){if(!this[_0x26bd('0x126')]&&_0x31dd61['containsRangeInObject'])continue;return _0x124fb7;}_0x3b1645=_0x3b1645[_0x26bd('0x117')](_0xf02267[_0x26bd('0x77')])?_0x3b1645:_0xf02267['start'],_0x4e0753=_0x4e0753[_0x26bd('0xe')](_0xf02267[_0x26bd('0xf9')])?_0x4e0753:_0xf02267['end'],_0x351ff6?_0xf02267[_0x26bd('0x77')]['isBefore'](_0x351ff6['getFirstRange']()['start'])?(_0x351ff6[_0x26bd('0x13a')](),_0x351ff6=_0x124fb7):_0x124fb7['removeMarkers']():_0x351ff6=_0x124fb7;}}if(_0x351ff6)return this[_0x26bd('0x69')](_0x351ff6,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x3b1645,_0x4e0753)),_0x351ff6;{const _0x524595=_0x4b465a(),_0x43ee0a=this[_0x26bd('0x8c')]['createRange'](_0x3b1645,_0x4e0753),_0x4d44c8=_0x4e6c42['id'],_0x4f26e7=_0x24afea?_0x26bd('0x6d')+_0x24afea:_0x26bd('0xa4'),_0x21d481=this[_0x26bd('0xbd')]({'id':_0x524595,'type':_0x4f26e7,'createdAt':new Date(),'authorId':_0x4d44c8,'attributes':_0x1443ed});return this[_0x26bd('0x96')](_0x4f26e7,_0x524595,_0x4d44c8,_0x43ee0a),_0x21d481;}}[_0x26bd('0x57')](_0x2792cb,_0x11d80e=_0x26bd('0x26'),_0x1707eb={}){const _0xaff242=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')](_0x26bd('0xb8'))['me'],_0x13c2b6=_0x2792cb[_0x26bd('0xe6')](_0x5124f5=>new _0x597006(_0x5124f5['start'],_0x5124f5['end'])),_0x58f3f9=new Set();for(const _0x2b341a of _0x13c2b6)for(const {suggestion:_0x232adf,meta:_0x4f4f1c}of this[_0x26bd('0xd6')](_0x2b341a,_0x26bd('0xb0')))_0x4f4f1c[_0x26bd('0xb7')]&&!_0x4f4f1c[_0x26bd('0xe9')]&&_0x58f3f9[_0x26bd('0xe5')](_0x232adf);for(const _0x3584b1 of _0x58f3f9)if(_0x3584b1[_0x26bd('0x5e')]){const _0x24fad2=_0x3584b1[_0x26bd('0xd9')]();(!_0x3584b1[_0x26bd('0x81')]||!_0x3584b1[_0x26bd('0x81')][_0x26bd('0x4f')])&&(_0x24fad2['every'](_0x518c56=>_0x13c2b6[_0x26bd('0xf1')](_0x484a7c=>_0x484a7c[_0x26bd('0x39')](_0x518c56,!0x0)))&&_0x3584b1[_0x26bd('0xd8')]());if(_0x13c2b6[_0x26bd('0x40')](_0x19df8d=>_0x24fad2[_0x26bd('0xf1')](_0x32488b=>_0x32488b[_0x26bd('0x39')](_0x19df8d,!0x0)))){const _0x1f9cd8=this[_0x26bd('0xb1')][_0x26bd('0x45')]('deletion',_0x11d80e,_0x26bd('0x10'));return this['forceDefaultExecution'](()=>_0x1f9cd8(_0x2792cb,null,_0x1707eb)),null;}}else{const _0x1590a8=_0x3584b1[_0x26bd('0x62')]();_0x13c2b6['some'](_0x25c19f=>_0x25c19f[_0x26bd('0x39')](_0x1590a8,!0x0))&&_0x3584b1[_0x26bd('0xd8')]();if(_0x13c2b6['every'](_0x501f94=>_0x1590a8[_0x26bd('0x39')](_0x501f94,!0x0))){const _0x43f908=this['_suggestionFactory'][_0x26bd('0x45')]('deletion',_0x11d80e,_0x26bd('0x10'));return this[_0x26bd('0x5d')](()=>_0x43f908(_0x13c2b6,null,_0x1707eb)),null;}}const _0x38447e=this['_suggestionFactory'][_0x26bd('0x45')](_0x26bd('0xa4'),_0x11d80e,'join');let _0x1c465c=null;for(const _0x508b82 of this[_0x26bd('0x73')]())if(_0x508b82[_0x26bd('0x49')]['id']==_0xaff242['id']&&_0x508b82[_0x26bd('0x130')]&&_0x26bd('0xa4')==_0x508b82[_0x26bd('0x100')]&&_0x508b82[_0x26bd('0x3')]==_0x11d80e&&(_0x38447e(_0x508b82[_0x26bd('0xd9')](),_0x13c2b6)||_0x38447e(_0x13c2b6,_0x508b82[_0x26bd('0xd9')]()))){if(_0x1c465c){if(_0x508b82[_0x26bd('0x70')]&&_0x508b82[_0x26bd('0x70')][_0x26bd('0x18')])continue;for(const _0x367665 of _0x508b82['getRanges']())_0x1c465c[_0x26bd('0x87')](_0x367665)||_0x1c465c[_0x26bd('0x5c')](_0x367665);_0x508b82[_0x26bd('0x13a')]();}else{_0x1c465c=_0x508b82;for(const _0x575c82 of _0x13c2b6)_0x508b82[_0x26bd('0x87')](_0x575c82)||_0x508b82[_0x26bd('0x5c')](_0x575c82);}}if(_0x1c465c)return _0x1c465c;_0x58f3f9[_0x26bd('0xf3')]();for(const _0x1f65b0 of _0x13c2b6)for(const {suggestion:_0x3099e0,meta:_0x979a35}of this[_0x26bd('0xd6')](_0x1f65b0,_0x26bd('0xa4')))_0x979a35['isOwn']&&_0x58f3f9[_0x26bd('0xe5')](_0x3099e0);for(const _0x24e000 of _0x58f3f9){const _0x11a415=_0x24e000[_0x26bd('0xd9')]();if(!_0x1707eb||!_0x1707eb[_0x26bd('0x4f')]){if(_0x13c2b6[_0x26bd('0x40')](_0x320ccd=>_0x11a415[_0x26bd('0xf1')](_0x3ec763=>_0x3ec763[_0x26bd('0x39')](_0x320ccd,!0x0))))return _0x24e000;}(!_0x24e000[_0x26bd('0x81')]||!_0x24e000[_0x26bd('0x81')][_0x26bd('0x4f')])&&(_0x11a415['every'](_0x1b3549=>_0x13c2b6[_0x26bd('0xf1')](_0x3c5930=>_0x3c5930[_0x26bd('0x39')](_0x1b3549,!0x0)))&&_0x24e000[_0x26bd('0xd8')]());}const _0x25357f=_0x4b465a(),_0x4d1395=_0xaff242['id'],_0x4d5997=_0x26bd('0x6d')+_0x11d80e,_0x18297d=this[_0x26bd('0xbd')]({'id':_0x25357f,'type':_0x4d5997,'createdAt':new Date(),'authorId':_0x4d1395,'attributes':_0x1707eb});for(const _0x3ed568 of _0x13c2b6)_0x3ed568[_0x26bd('0x12e')](),_0x3ed568['isCollapsed']||_0x26bd('0xcc')==_0x3ed568[_0x26bd('0x55')][_0x26bd('0x129')]||this[_0x26bd('0x96')](_0x4d5997,_0x25357f,_0x4d1395,_0x3ed568,_0x4f7e69['getMultiRangeId']());return _0x18297d;}[_0x26bd('0x69')](_0x24815e,_0x5ef6b7){const _0x587744=_0x24815e['getFirstMarker']();this[_0x26bd('0x8c')][_0x26bd('0xda')](_0x3fe105=>{_0x3fe105[_0x26bd('0x6c')](_0x587744,{'range':_0x5ef6b7});});}[_0x26bd('0x7b')](_0x50dd4d){const _0x330561=_0x50dd4d['id'],_0x129a84=this[_0x26bd('0x4e')][_0x26bd('0x22')][_0x26bd('0x93')](_0x26bd('0x50'));this[_0x26bd('0x32')][_0x26bd('0x1d')](_0x330561)||this[_0x26bd('0x32')][_0x26bd('0x58')]({'channelId':_0x129a84,'threadId':_0x330561,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x556d10=this[_0x26bd('0x32')]['getCommentThread'](_0x330561);_0x556d10[_0x26bd('0x13')](_0x26bd('0xdb')),_0x556d10[_0x26bd('0xdb')]=!0x1,_0x50dd4d[_0x26bd('0x70')]=_0x556d10;}[_0x26bd('0x85')](_0x4065e1,_0x29fb42,_0x1e6411,_0x2655cc){if(_0x4065e1[_0x26bd('0x100')]!=_0x29fb42||_0x4065e1['subType']!=_0x1e6411||_0x4065e1[_0x26bd('0x41')]['id']!=_0x2655cc)throw this[_0x26bd('0x4e')][_0x26bd('0x29')](_0x26bd('0x107')),new _0x1d5d2f(_0x26bd('0x107'),this);}[_0x26bd('0x7e')](_0x39d548,_0x4e7195){const _0x1a753a=_0x39d548[_0x26bd('0x62')]();if(_0x4e7195[_0x26bd('0x6e')](_0x1a753a))_0x39d548['removeMarkers']();else{if(_0x1a753a[_0x26bd('0x39')](_0x4e7195)){const _0x3abcae=this['_model'][_0x26bd('0x0')](_0x4e7195[_0x26bd('0x77')][_0x26bd('0x44')],_0x26bd('0xf9'));this['_setSuggestionRange'](_0x39d548,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x1a753a[_0x26bd('0x77')],_0x3abcae));const _0x47d345=_0x4b465a(),_0x234d88=_0x39d548[_0x26bd('0x41')]['id'],_0xddce46=_0x39d548['type']+':'+_0x39d548[_0x26bd('0x3')];this[_0x26bd('0xbd')]({'id':_0x47d345,'type':_0xddce46,'createdAt':new Date(),'authorId':_0x234d88,'data':_0x39d548[_0x26bd('0xf')],'attributes':_0x39d548[_0x26bd('0x81')]});const _0x3f8d47=this[_0x26bd('0x8c')][_0x26bd('0x0')](_0x4e7195[_0x26bd('0xf9')][_0x26bd('0x10b')],_0x26bd('0xf6')),_0x45c52e=this['_model'][_0x26bd('0x28')](_0x3f8d47,_0x1a753a[_0x26bd('0xf9')]);this['_addSuggestionMarker'](_0xddce46,_0x47d345,_0x234d88,_0x45c52e);}else{if(_0x1a753a[_0x26bd('0x3e')](_0x4e7195[_0x26bd('0x77')])){const _0x4bd1c8=this[_0x26bd('0x8c')][_0x26bd('0x0')](_0x4e7195[_0x26bd('0x77')]['nodeBefore'],_0x26bd('0xf9'));this[_0x26bd('0x69')](_0x39d548,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x1a753a[_0x26bd('0x77')],_0x4bd1c8));}else{const _0x299498=this[_0x26bd('0x8c')][_0x26bd('0x0')](_0x4e7195['end']['parent'],_0x26bd('0xf6'));this[_0x26bd('0x69')](_0x39d548,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x299498,_0x1a753a[_0x26bd('0xf9')]));}}}}[_0x26bd('0x27')](_0x550a47){for(const {suggestion:_0x14f94,meta:_0x4c56fe}of this[_0x26bd('0xd6')](_0x550a47,_0x26bd('0xb0'))){if(!_0x4c56fe['isOwn'])continue;const _0x520960=_0x14f94[_0x26bd('0xd9')]();for(const _0x5d51a8 of _0x520960)if(!_0x550a47[_0x26bd('0x116')](_0x5d51a8)[_0x26bd('0x18')])return!0x0;}return!0x1;}[_0x26bd('0xd2')](_0x507b99){const _0x3ba49f=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')](_0x26bd('0xb8'))[_0x26bd('0x16')](_0x507b99);if(!_0x3ba49f)throw new _0x1d5d2f(_0x26bd('0x137'),this);return _0x3ba49f;}[_0x26bd('0x9c')](_0x1265aa){const _0x21d11c=this['editor'][_0x26bd('0xb5')][_0x26bd('0x93')](_0x26bd('0xb8')),_0xb4cf84=_0x56cfb1(_0x26bd('0x11a')+_0x1265aa),_0x3ced70=_0x21d11c[_0x26bd('0x16')](_0xb4cf84);return _0x3ced70||_0x21d11c[_0x26bd('0x12c')]({'id':_0xb4cf84,'name':_0x1265aa});}[_0x26bd('0xde')](_0x1060fe,_0x31fc49,_0x4f65da,_0x34c162,_0x414861){const _0x5d5667=this[_0x26bd('0xd2')](_0x34c162),_0x2ad855=this[_0x26bd('0xb1')][_0x26bd('0x53')](_0x1060fe,_0x31fc49,_0x4f65da,_0x5d5667,_0x414861,_0x4e6c21=>this['_updateSuggestionData'](_0x4f65da,{'attributes':_0x4e6c21}));return this['listenTo'](_0x2ad855,_0x26bd('0x10'),()=>{this[_0x26bd('0x37')](_0x4f65da,{'state':'accepted'});},{'priority':_0x26bd('0x128')}),this[_0x26bd('0xb4')](_0x2ad855,_0x26bd('0xd8'),()=>{this['_updateSuggestionData'](_0x4f65da,{'state':_0x26bd('0x119')});},{'priority':'high'}),this[_0x26bd('0x127')]['set'](_0x4f65da,_0x2ad855),this[_0x26bd('0x94')][_0x26bd('0xab')](_0x2ad855,'notReady'),_0x2ad855;}[_0x26bd('0x68')](_0x297696){const _0x2612fa=_0x297696[_0x26bd('0x5b')](':');return{'group':_0x2612fa[0x0],'type':_0x2612fa[0x1],'subType':_0x2612fa['length']>=0x5?_0x2612fa[0x2]:null,'id':_0x2612fa[_0x26bd('0x18')]<0x5?_0x2612fa[0x2]:_0x2612fa[0x3],'authorId':_0x2612fa[_0x26bd('0x18')]<0x5?_0x2612fa[0x3]:_0x2612fa[0x4],'markerCount':0x6==_0x2612fa[_0x26bd('0x18')]?_0x2612fa[0x5]:null};}[_0x26bd('0x89')](_0x2e9a5c,_0x21b17d,_0x16310a){const _0x39c6fb=_0x2e9a5c[_0x26bd('0x62')](),_0x36fed1=_0x39c6fb[_0x26bd('0x77')],_0x5f140b=_0x39c6fb[_0x26bd('0xf9')];this['_setSuggestionRange'](_0x2e9a5c,this['_model'][_0x26bd('0x28')](_0x36fed1,_0x21b17d));const _0x48d72a=_0x4b465a(),_0x572f3d=_0x2e9a5c[_0x26bd('0x41')]['id'],_0x41602f=_0x2e9a5c[_0x26bd('0x100')]+(_0x2e9a5c['subType']?':'+_0x2e9a5c['subType']:'');this['_setSuggestionData']({'id':_0x48d72a,'type':_0x41602f,'createdAt':new Date(),'authorId':_0x572f3d,'originalSuggestionId':_0x2e9a5c['id'],'attributes':_0x2e9a5c['attributes'],'data':_0x2e9a5c['data']}),_0x26bd('0x1c')==_0x2e9a5c['type']&&(_0x16310a=this['_model'][_0x26bd('0x30')](_0x16310a[_0x26bd('0x10b')])),this[_0x26bd('0x96')](_0x41602f,_0x48d72a,_0x572f3d,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x16310a,_0x5f140b));}[_0x26bd('0xd6')](_0xa090a0,_0x400859=null){const _0x144887=[],_0x421d04=this[_0x26bd('0x8c')]['schema'],_0x1e2fc1=this[_0x26bd('0x4e')][_0x26bd('0xb5')][_0x26bd('0x93')]('Users')['me'];for(const _0x1a3485 of this[_0x26bd('0x73')]())if(_0x1a3485['isInContent']&&(!_0x400859||_0x1a3485['type']==_0x400859))for(const _0x32aeb1 of _0x1a3485[_0x26bd('0xd9')]()){const _0x2445ca=_0xa090a0[_0x26bd('0x77')]['isEqual'](_0x32aeb1[_0x26bd('0xf9')])||_0xa090a0[_0x26bd('0xf9')][_0x26bd('0x6e')](_0x32aeb1[_0x26bd('0x77')]);if(_0x2445ca||_0xa090a0[_0x26bd('0x138')](_0x32aeb1)){const _0x4eaf58=_0xa090a0['containsRange'](_0x32aeb1)&&Bt(_0x421d04,_0x32aeb1[_0x26bd('0x77')],_0xa090a0),_0x541219=_0x32aeb1[_0x26bd('0x39')](_0xa090a0)&&Bt(_0x421d04,_0xa090a0[_0x26bd('0x77')],_0x32aeb1);_0x144887['push']({'suggestion':_0x1a3485,'meta':{'isOwn':_0x1e2fc1==_0x1a3485['author'],'isNextTo':_0x2445ca,'isInsideObject':_0x4eaf58,'containsRangeInObject':_0x541219}});break;}}return _0x144887;}[_0x26bd('0x96')](_0x1fb300,_0x16dfdf,_0x3e6b86,_0x22eaa1,_0x56707e){this['_model'][_0x26bd('0xda')](_0x28d50e=>{let _0x3c6170=_0x26bd('0x5a')+_0x1fb300+':'+_0x16dfdf+':'+_0x3e6b86;_0x56707e&&(_0x3c6170=_0x3c6170+':'+_0x56707e),_0x28d50e[_0x26bd('0x2a')](_0x3c6170,{'range':_0x22eaa1,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x26bd('0x135')](_0x35a3d2){const _0x56ecee=_0x35a3d2[_0x26bd('0xe2')],_0x3eb1c1=_0x35a3d2['next'];_0x35a3d2[_0x26bd('0xe2')]=null,null!=_0x56ecee&&(_0x56ecee['next']=null),_0x35a3d2[_0x26bd('0x11e')]=null,null!=_0x3eb1c1&&(_0x3eb1c1['previous']=null),_0x26bd('0xac')==this[_0x26bd('0x94')][_0x26bd('0x93')](_0x35a3d2)&&(this[_0x26bd('0x94')][_0x26bd('0xab')](_0x35a3d2,_0x26bd('0xff')),this[_0x26bd('0xbc')]('suggestionUnloaded',_0x35a3d2,_0x56ecee,_0x3eb1c1));}[_0x26bd('0xbd')](_0x68a81e){const _0xc2e484=_0x68a81e['id'],_0x360c5d=this[_0x26bd('0x95')](_0x68a81e);if(this[_0x26bd('0x60')]&&this[_0x26bd('0x60')][_0x26bd('0x8b')]){const _0x454e7e=this[_0x26bd('0x4e')]['plugins'][_0x26bd('0x93')]('PendingActions'),_0x1b7ac7=_0x360c5d[_0x26bd('0x111')],_0x363c82=_0x360c5d[_0x26bd('0x3')]?_0x360c5d[_0x26bd('0x100')]+':'+_0x360c5d['subType']:_0x360c5d[_0x26bd('0x100')],_0x35fa35=this[_0x26bd('0x4e')]['locale'],_0x3fe42e=_0x454e7e[_0x26bd('0xe5')](_0x5cdd8b(_0x35fa35,_0x26bd('0x10a'))),_0x3fe7d3={'id':_0xc2e484,'type':_0x363c82,'hasComments':_0x1b7ac7,'data':_0x68a81e[_0x26bd('0xf')]||null,'originalSuggestionId':_0x68a81e[_0x26bd('0x90')]||null,'attributes':_0x360c5d[_0x26bd('0x81')]};this[_0x26bd('0x60')][_0x26bd('0x8b')](_0x3fe7d3)['then'](_0x173cb6=>{_0x360c5d[_0x26bd('0x4')]=!0x0,_0x454e7e['remove'](_0x3fe42e),_0x173cb6&&_0x173cb6['createdAt']&&(this[_0x26bd('0x127')][_0x26bd('0x93')](_0xc2e484)[_0x26bd('0x12b')]=_0x173cb6['createdAt']);})[_0x26bd('0x92')](_0x3f3b10=>{throw _0x558002(_0x26bd('0x9f')),this['editor'][_0x26bd('0xec')][_0x26bd('0xd7')]({'isUndoable':!0x1},()=>{_0x360c5d[_0x26bd('0xd8')]();}),_0x360c5d[_0x26bd('0xa1')](),this['_suggestions'][_0x26bd('0xc0')](_0x360c5d['id']),this[_0x26bd('0x94')][_0x26bd('0xc0')](_0x360c5d),_0x3f3b10;});}return _0x360c5d;}[_0x26bd('0x37')](_0x599a80,_0x4aa3a9){const _0x3bc83d=this[_0x26bd('0x4e')][_0x26bd('0xb5')]['get'](_0x26bd('0x76')),_0x150acd=this[_0x26bd('0xdf')](_0x599a80);if(this[_0x26bd('0x60')]&&this[_0x26bd('0x60')][_0x26bd('0x120')]){if(_0x150acd[_0x26bd('0x4')]){const _0x50d5b4=_0x3bc83d[_0x26bd('0xe5')](_0x5cdd8b(this[_0x26bd('0x4e')][_0x26bd('0x11f')],_0x26bd('0x10a')));this[_0x26bd('0x60')][_0x26bd('0x120')](_0x599a80,_0x4aa3a9)['then'](()=>{_0x3bc83d[_0x26bd('0x115')](_0x50d5b4);});}else _0x150acd['on'](_0x26bd('0x104'),()=>{this[_0x26bd('0x37')](_0x599a80,_0x4aa3a9);});}}[_0x26bd('0x23')](_0x3eca07){if(!this['_adapter']||!this[_0x26bd('0x60')][_0x26bd('0xdf')])throw new _0x1d5d2f(_0x26bd('0xa0'),this);return this[_0x26bd('0x60')][_0x26bd('0xdf')](_0x3eca07);}[_0x26bd('0xd4')](_0x34524c){const {id:_0x23450a,type:_0x1c8aa3,subType:_0x10d1b3,authorId:_0x4d0722}=this[_0x26bd('0x68')](_0x34524c),_0x56f965=this[_0x26bd('0x127')][_0x26bd('0x93')](_0x23450a)||this['_createSuggestion'](_0x1c8aa3,_0x10d1b3,_0x23450a,_0x4d0722,{});switch(this['_checkSuggestionCorrectness'](_0x56f965,_0x1c8aa3,_0x10d1b3,_0x4d0722),this[_0x26bd('0x94')][_0x26bd('0x93')](_0x56f965)){case _0x26bd('0x97'):this[_0x26bd('0x23')](_0x23450a)['then'](_0x199cd6=>{let _0x8d691d=Promise[_0x26bd('0x145')]();_0x199cd6[_0x26bd('0x111')]&&(_0x8d691d=this[_0x26bd('0x32')][_0x26bd('0x132')]({'channelId':this['editor'][_0x26bd('0x22')][_0x26bd('0x93')](_0x26bd('0x50')),'threadId':_0x23450a})),_0x8d691d[_0x26bd('0x46')](()=>{this[_0x26bd('0x95')](_0x199cd6)['_saved']=!0x0;});}),this[_0x26bd('0x94')][_0x26bd('0xab')](_0x56f965,'markerReady');break;case _0x26bd('0xff'):this['_updateSuggestionData'](_0x23450a,{'state':'open'});case _0x26bd('0x1b'):this[_0x26bd('0x94')][_0x26bd('0xab')](_0x56f965,'ready'),this[_0x26bd('0xbc')](_0x26bd('0x112'),_0x56f965);break;case _0x26bd('0xac'):this[_0x26bd('0xbc')](_0x26bd('0x10e'),_0x56f965);}return _0x56f965['addMarkerName'](_0x34524c),_0x56f965;}[_0x26bd('0x1a')](_0x1009ce){const _0x41248b=Array[_0x26bd('0x98')](_0x1009ce)['filter'](_0x25d824=>!_0x25d824[_0x26bd('0x5e')]),_0x53f41a=this[_0x26bd('0x73')]({'skipNotAttached':!0x0})[_0x26bd('0x54')](_0x222b92=>!_0x222b92[_0x26bd('0x5e')]),_0x1c22de=_0x53f41a[_0x26bd('0x54')](_0x2bf7ff=>!_0x1009ce[_0x26bd('0x82')](_0x2bf7ff)),_0x443ca8=new Map(_0x53f41a[_0x26bd('0xe6')](_0x2e1811=>[_0x2e1811,this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x2e1811['type'],_0x2e1811['subType'],'chain')])),_0x212866=new Map(_0x53f41a['map'](_0x5d51c1=>[_0x5d51c1,_0x5d51c1[_0x26bd('0x62')]()])),_0x38a23e=new Set(),_0x4ff7ef=new Set();for(let _0x3dded4=0x0;_0x3dded4<_0x41248b[_0x26bd('0x18')];_0x3dded4++)_0x833d9e(_0x41248b[_0x3dded4],_0x41248b,_0x3dded4+0x1);for(let _0x5ad83e=0x0;_0x5ad83e<_0x41248b['length'];_0x5ad83e++)_0x833d9e(_0x41248b[_0x5ad83e],_0x1c22de,0x0);for(let _0x1303ae=0x0;_0x1303ae<_0x41248b[_0x26bd('0x18')];_0x1303ae++){const _0x5ada0c=_0x41248b[_0x1303ae];!_0x4ff7ef['has'](_0x5ada0c)&&_0x5ada0c[_0x26bd('0xe2')]&&(_0x5ada0c[_0x26bd('0xe2')][_0x26bd('0x11e')]===_0x5ada0c&&(_0x5ada0c[_0x26bd('0xe2')][_0x26bd('0x11e')]=null),_0x5ada0c[_0x26bd('0xe2')]=null),!_0x38a23e[_0x26bd('0x82')](_0x5ada0c)&&_0x5ada0c['next']&&(_0x5ada0c[_0x26bd('0x11e')]['previous']===_0x5ada0c&&(_0x5ada0c[_0x26bd('0x11e')][_0x26bd('0xe2')]=null),_0x5ada0c[_0x26bd('0x11e')]=null);}function _0x833d9e(_0x184189,_0x4c4652,_0x213cfa){for(let _0x13aac4=_0x213cfa;_0x13aac4<_0x4c4652['length'];_0x13aac4++){const _0x7fd493=_0x1bc3da(_0x184189,_0x4c4652[_0x13aac4]);_0x7fd493&&(_0x7fd493[0x0][_0x26bd('0x11e')]=_0x7fd493[0x1],_0x7fd493[0x1][_0x26bd('0xe2')]=_0x7fd493[0x0],_0x38a23e['add'](_0x7fd493[0x0]),_0x4ff7ef[_0x26bd('0xe5')](_0x7fd493[0x1]));}}function _0x1bc3da(_0xef53ad,_0x446fbe){if(_0xef53ad['author']['id']!==_0x446fbe['author']['id'])return null;const _0x4cf84b=_0x443ca8[_0x26bd('0x93')](_0xef53ad)(_0xef53ad,_0x446fbe,_0x212866['get'](_0xef53ad),_0x212866['get'](_0x446fbe));if(!_0x4cf84b)return null;return _0x443ca8[_0x26bd('0x93')](_0x446fbe)(_0xef53ad,_0x446fbe,_0x212866[_0x26bd('0x93')](_0xef53ad),_0x212866[_0x26bd('0x93')](_0x446fbe))?_0x4cf84b[0x1]['commentThread']&&_0x4cf84b[0x1][_0x26bd('0x70')][_0x26bd('0x18')]?null:_0x4cf84b:null;}}[_0x26bd('0x3f')](_0x532f3d){const _0x173180=Array[_0x26bd('0x98')](_0x532f3d),_0x420976=this[_0x26bd('0x73')]({'skipNotAttached':!0x0}),_0x6504b6=_0x420976['filter'](_0x5d2c89=>!_0x532f3d[_0x26bd('0x82')](_0x5d2c89)),_0x4b68e3=new Map(_0x173180[_0x26bd('0xe6')](_0x15101f=>[_0x15101f,this[_0x26bd('0xb1')][_0x26bd('0x45')](_0x15101f['type'],_0x15101f[_0x26bd('0x3')],_0x26bd('0x122'))])),_0x4ce54e=new Map(_0x420976[_0x26bd('0xe6')](_0x1ace04=>[_0x1ace04,_0x1ace04[_0x26bd('0xd9')]()]));for(let _0x5590e1=0x0;_0x5590e1<_0x173180[_0x26bd('0x18')];_0x5590e1++){if(_0x2d9c78(this,_0x173180[_0x5590e1],_0x173180,_0x5590e1+0x1))return!0x0;}for(let _0xc6b7f9=0x0;_0xc6b7f9<_0x173180['length'];_0xc6b7f9++){if(_0x2d9c78(this,_0x173180[_0xc6b7f9],_0x6504b6,0x0))return!0x0;}return!0x1;function _0x2d9c78(_0x177f02,_0x553461,_0x4fb244,_0x317793){for(let _0x40c214=_0x317793;_0x40c214<_0x4fb244['length'];_0x40c214++){const _0x58ca50=_0x4fb244[_0x40c214];if(_0x58ca50['type']!==_0x553461['type']||_0x58ca50[_0x26bd('0x49')]['id']!==_0x553461['author']['id']||_0x58ca50[_0x26bd('0x3')]!==_0x553461[_0x26bd('0x3')])continue;const _0x945ea8=_0x4b68e3[_0x26bd('0x93')](_0x553461),_0x5148c4=_0x4ce54e[_0x26bd('0x93')](_0x553461),_0x309557=_0x4ce54e[_0x26bd('0x93')](_0x58ca50),_0x39d98d=_0x553461[_0x26bd('0x70')]&&_0x553461[_0x26bd('0x70')][_0x26bd('0x18')],_0x2761ef=_0x58ca50[_0x26bd('0x70')]&&_0x58ca50[_0x26bd('0x70')]['length'];if(!_0x39d98d&&_0x945ea8(_0x309557,_0x5148c4))return _0x177f02[_0x26bd('0xfb')](_0x58ca50,_0x553461),_0x4ce54e[_0x26bd('0xc0')](_0x553461),!0x0;if(!_0x2761ef&&_0x945ea8(_0x5148c4,_0x309557))return _0x177f02[_0x26bd('0xfb')](_0x553461,_0x58ca50),_0x4ce54e[_0x26bd('0xc0')](_0x58ca50),!0x0;}return!0x1;}}[_0x26bd('0xfb')](_0x586dad,_0x458bce){if(_0x586dad['isMultiRange'])for(const _0x2c8bc5 of _0x458bce[_0x26bd('0xd9')]())_0x586dad[_0x26bd('0x5c')](_0x2c8bc5);else{const _0xc26c7b=_0x458bce[_0x26bd('0x62')]()[_0x26bd('0xf9')];this[_0x26bd('0x69')](_0x586dad,this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x586dad[_0x26bd('0x62')]()[_0x26bd('0x77')],_0xc26c7b));}_0x458bce['removeMarkers']();}}class Dt{constructor(_0x151b20){this[_0x26bd('0x47')]=_0x151b20,this['_model']=_0x151b20[_0x26bd('0xec')],this['_customCallbacks']=new Map(),this[_0x26bd('0x78')]=new Map(),this['_registerDefaultCallbacks']();}[_0x26bd('0x53')](_0x1042a1,_0x1c2a22,_0x3f2824,_0x17baa0,_0x79c6ef,_0xd78a91){return new _0x4f7e69(this[_0x26bd('0x8c')],{'type':_0x1042a1,'subType':_0x1c2a22,'id':_0x3f2824,'author':_0x17baa0,'creator':_0x17baa0,'attributes':_0x79c6ef,'onAttributesChange':_0xd78a91,'onAccept':(..._0x594e6c)=>this[_0x26bd('0x45')](_0x1042a1,_0x1c2a22,_0x26bd('0x10'))(..._0x594e6c),'onDiscard':(..._0x16c0d9)=>this[_0x26bd('0x45')](_0x1042a1,_0x1c2a22,_0x26bd('0xd8'))(..._0x16c0d9)});}[_0x26bd('0xf2')](_0x1ce86c,_0x443e5f,_0x31c521,_0x2140a3){const _0x1122f0=_0x1ce86c+':'+_0x443e5f+':'+_0x31c521;this[_0x26bd('0x2d')][_0x26bd('0xab')](_0x1122f0,_0x2140a3);}[_0x26bd('0x45')](_0x534ffc,_0x2814e1,_0x2a5937){const _0x592206=_0x534ffc+':'+_0x2814e1+':'+_0x2a5937;return this[_0x26bd('0x2d')]['get'](_0x592206)||this['_defaultCallbacks'][_0x26bd('0x93')](_0x534ffc+':'+_0x2a5937);}['_registerDefaultCallbacks'](){const _0x128726=()=>{},_0x791fb2=_0x21c812=>{_0x21c812[_0x26bd('0x3b')]((_0xa414d9,_0x2e00f6)=>_0xa414d9['start'][_0x26bd('0x117')](_0x2e00f6[_0x26bd('0x77')])?0x1:-0x1),this[_0x26bd('0x8c')][_0x26bd('0xda')](_0x1b7be3=>{for(const _0x1d5b7f of _0x21c812){let _0x11faac;_0x11faac=_0x1d5b7f[_0x26bd('0xf9')]['isAtEnd']&&_0x1d5b7f[_0x26bd('0xf9')]['parent']==_0x1d5b7f['start']['nodeAfter']?_0x1b7be3[_0x26bd('0x36')](_0x1d5b7f[_0x26bd('0x77')][_0x26bd('0x88')],'on'):_0x1b7be3[_0x26bd('0x36')](_0x1d5b7f),this[_0x26bd('0x8c')][_0x26bd('0x35')](_0x11faac,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1090b3=(_0x3cfe62,_0x32875e)=>{this[_0x26bd('0x8c')][_0x26bd('0xda')](_0xa1364e=>{const {commandName:_0x3eca73,commandParams:_0x3d2edb=[]}=_0x32875e,_0x501b9b=_0x3cfe62['map'](_0x5684b2=>(_t(_0x5684b2)&&(_0x5684b2=this[_0x26bd('0x8c')][_0x26bd('0x28')](_0x5684b2[_0x26bd('0xf9')])),_0x5684b2))[_0x26bd('0x54')](_0x915249=>_0x26bd('0xcc')!==_0x915249['root'][_0x26bd('0x129')]);if(_0x501b9b['length']<0x1)return;const _0x12551f=Array[_0x26bd('0x98')](this['_model'][_0x26bd('0xc6')][_0x26bd('0xae')][_0x26bd('0xd9')]())[_0x26bd('0xe6')](_0x2e0f3b=>_0x597006[_0x26bd('0x13c')](_0x2e0f3b));_0xa1364e['setSelection'](_0x501b9b);for(const _0x751fb5 of this[_0x26bd('0x47')][_0x26bd('0x103')][_0x26bd('0x103')]())_0x751fb5['refresh']();_0x3d2edb[_0x26bd('0x114')]({'forceDefaultExecution':!0x0}),this[_0x26bd('0x47')]['execute'](_0x3eca73,..._0x3d2edb);const _0x590809=_0x12551f[_0x26bd('0x54')](_0x55289e=>_0x26bd('0xcc')!=_0x55289e['root'][_0x26bd('0x129')]);_0x590809[_0x26bd('0x18')]>0x0&&_0xa1364e[_0x26bd('0xf5')](_0x590809);for(const _0x1e7b25 of _0x12551f)_0x1e7b25['detach']();});},_0x4760c1=(_0x55054a,_0x4d9c3b)=>0x1==_0x55054a[_0x26bd('0x18')]&&0x1==_0x4d9c3b[_0x26bd('0x18')]&&_0x55054a[0x0][_0x26bd('0xf9')][_0x26bd('0x6e')](_0x4d9c3b[0x0][_0x26bd('0x77')]),_0x53d7cb=(_0xa4d4e1,_0x19921a,_0x2f44ec,_0x4a6124)=>xt(_0xa4d4e1,_0x19921a,_0x2f44ec,_0x4a6124,this['_model'])?[_0xa4d4e1,_0x19921a]:xt(_0x19921a,_0xa4d4e1,_0x4a6124,_0x2f44ec,this['_model'])?[_0x19921a,_0xa4d4e1]:null;this[_0x26bd('0x78')]['set'](_0x26bd('0xf7'),_0x128726),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0x110'),_0x791fb2),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0xc4'),_0x4760c1),this[_0x26bd('0x78')][_0x26bd('0xab')]('insertion:chain',_0x53d7cb),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x80'),_0x791fb2),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0xd3'),_0x128726),this['_defaultCallbacks'][_0x26bd('0xab')]('deletion:join',_0x4760c1),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x7d'),_0x53d7cb),this[_0x26bd('0x78')]['set'](_0x26bd('0x13e'),_0x1090b3),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0xfa'),_0x128726),this[_0x26bd('0x78')][_0x26bd('0xab')]('formatInline:join',_0x4760c1),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0x7c'),_0x128726),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x10f'),_0x1090b3),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x2f'),_0x128726),this[_0x26bd('0x78')][_0x26bd('0xab')](_0x26bd('0x121'),_0x4760c1),this['_defaultCallbacks'][_0x26bd('0xab')](_0x26bd('0x31'),_0x128726);}}function Bt(_0x3e031b,_0x3f34e6,_0x2976ce){for(const _0x1e73b2 of _0x3f34e6[_0x26bd('0x10b')][_0x26bd('0x8f')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e73b2[_0x26bd('0x55')]==_0x1e73b2)return!0x1;if(!_0x2976ce[_0x26bd('0x106')](_0x1e73b2))return!0x1;if(_0x3e031b['isObject'](_0x1e73b2)||_0x3e031b[_0x26bd('0x67')](_0x1e73b2))return!0x0;}return!0x1;}function _t(_0x4b7d7c){return _0x4b7d7c['end'][_0x26bd('0x10b')]==_0x4b7d7c[_0x26bd('0x77')][_0x26bd('0x88')]&&_0x4b7d7c[_0x26bd('0xf9')][_0x26bd('0x141')];}function Mt(_0x14e8ed,_0x29799a,_0x742acc,_0x105461){const _0xe4b572=_0x1f32a3=>!_0x1f32a3[_0x26bd('0x13f')]['is'](_0x26bd('0x14'))&&!_0x105461[_0x26bd('0x5')](_0x1f32a3[_0x26bd('0x13f')]),_0x4a9eea=_0x14e8ed[_0x26bd('0x77')][_0x26bd('0xbb')](_0xe4b572),_0x3676b6=_0x14e8ed[_0x26bd('0xf9')][_0x26bd('0xbb')](_0xe4b572,{'direction':_0x26bd('0xb9')});return(!_0x14e8ed[_0x26bd('0x77')][_0x26bd('0x6e')](_0x4a9eea)||!_0x14e8ed[_0x26bd('0xf9')]['isEqual'](_0x3676b6))&&(_0x4a9eea[_0x26bd('0x117')](_0x3676b6)?_0x742acc[_0x26bd('0x6c')](_0x29799a,{'range':_0x742acc['createRange'](_0x4a9eea,_0x3676b6)}):_0x742acc['removeMarker'](_0x29799a),!0x0);}function $t(_0x325292){return _0x56cfb1(_0x325292);}function Nt(_0x457812){const _0x55afb3=_0x457812[_0x26bd('0x77')][_0x26bd('0x88')];return _0x55afb3&&_0x55afb3['is'](_0x26bd('0x6a'));}function Rt(_0x55553f,_0xd4796f){const _0x437e67=_0xd4796f[_0x26bd('0xb')][_0x26bd('0x5')](_0x55553f)||_0xd4796f['schema'][_0x26bd('0xcf')](_0x55553f);return _0xd4796f[_0x26bd('0x28')](_0xd4796f[_0x26bd('0x0')](_0x55553f,_0x26bd('0xdd')),_0x437e67?_0xd4796f[_0x26bd('0xfd')](_0x55553f):_0xd4796f[_0x26bd('0x0')](_0x55553f,_0x26bd('0xf9')));}function xt(_0x3311b7,_0x4b8f32,_0x8b468a,_0x581177,_0x73aa20){if(_0x8b468a['end'][_0x26bd('0x6e')](_0x581177[_0x26bd('0x77')]))return!0x0;if(_0x3311b7[_0x26bd('0x100')]!=_0x4b8f32['type'])return!0x1;if(!_0x8b468a[_0x26bd('0xf9')][_0x26bd('0x8e')](_0x581177[_0x26bd('0x77')]))return!0x1;const _0x235f97=_0x73aa20[_0x26bd('0x28')](_0x8b468a[_0x26bd('0xf9')],_0x581177[_0x26bd('0x77')])[_0x26bd('0x75')]();for(const _0x128d79 of _0x235f97)if([_0x26bd('0x51'),_0x26bd('0x109')][_0x26bd('0xef')](_0x128d79[_0x26bd('0x100')])&&_0x73aa20[_0x26bd('0xb')][_0x26bd('0x67')](_0x128d79[_0x26bd('0x13f')]))return!0x1;return!0x0;}
23
+ const _0x24b2=['isAfter','batch','remove','addSuggestionData','getAllAdjacentSuggestions','addMarkerName','trackChanges.mergeNestedSuggestions','isInContent','fetchCommentThread','join','formatInline','hasComments','getFirstRange','isNextTo','elementToElement','delete','refresh','getRange','rethrowUnexpectedError','previous','values','formatBlock:','addMarker:suggestion','nodeAfter','commentThread','isDocumentOperation','activeMarkers','fromCharCode','getSuggestionCallback','markerToHighlight','options','default','range','registerPostFixer','acceptSelectedSuggestions','_defaultCallbacks','containerElement','setAttribute','PENDING_ACTION_SUGGESTION','substr','_registerDefaultCallbacks','track-changes-adapter-already-set','root','getMultiRangeId','updateMarker','bindElementToMarker','_getAuthorFromId','removed','isBefore','move','element','deletion','pluginName','accept','ck-suggestion-marker-formatBlock','catch','formatInline:discard','removeClass','item','addRange','_suggestionFactory','requires','isIntersectingWithRange','upcast','_enabledCommands','enableReadOnlyMode','chain','addSuggestion','newRange','acceptSuggestion','set','isEqual','fromRange','isLocal','end','deletion:','_refreshSuggestionsChain','split','addClass','getChangedMarkers','detach','value','Users','_adapter','_mergeNestedSuggestions','insertion:accept','_customCallbacks','createRangeIn','containsRangeInObject','skipNestingCheck','oldRange','CommentsRepository','data','change','position','accepted','_commentsRepository','stop','removeMarker','containsRange','error-saving-suggestion-data-suggestion-discarded','acceptAllSuggestions','attributes','forceDefaultExecution','addHighlight','fire','ready','sort','_rangeIsInLocalUserInsertion','formatInline:','suggestion:','createRange','change:_saved','_checkSuggestionCorrectness','_suggestionState','suggestionUnloaded','formatGroupId','define','name','isAtEnd','consumable','_onDiscard','has','_descriptionFactory','_addSuggestionMarker','getLastMatchingPosition','_isForcedDefaultExecutionBlock','removeComment','_updateSuggestionData','markBlockFormat','track-changes-suggestion-not-found','isRemovable','markerReady','formatBlock:accept','notReady','updateSuggestion','_trackFormatChanges','get','insertion','createSelection','getUser','isTouching','createPositionAfter','getFirstMarker','getRanges','createPositionBefore','getAttribute','formatBlock:join','consume','document','removeMarkers','isExternal','discardAllSuggestions','backward','_editor','from','authorName','model','@external','update:suggestion','suggestionLoaded','deletion:accept','howMany','plugins','never','selection','isCollapsed','markInsertion','differ','_breakSuggestionMarker','some','formatInline:chain','change:activeMarkers','_setSuggestionData','locale','multi','high','getAncestors','$marker','insertContent','getCustomProperty','markDeletion','collaboration.channelId','stopListening','parent','writer','every','dataToMarker','_addThreadToSuggestion','always','ck-suggestion-marker','_cutOutSuggestionMarker','showSuggestionHighlights','deletion:join','dataReady','suggestion-type','originalSuggestionId','_joinSuggestions','_findSuggestions','moveTargetPosition','subType','getMarkers','$graveyard','trackChanges.trackFormatChanges','_setSuggestionRange','isBlock','track-changes-suggestion-data-mismatch','formatInline:join','markMultiRangeBlockFormat','elementEnd','deleteContent','isUndo','isOwn','_createSuggestion','adapter','after','size','insertion:chain','schema','formatBlock','data-suggestion','ck-suggestion-marker-','_handleNewSuggestionMarker','splice','addUser','add','applyOperation','getSuggestion','normal','markerNameToElements','_model','getShiftedBy','registerCustomCallback','author','discardSuggestion','creator','for','group','open','length','insert','_joinWithAdjacentSuggestions','createPositionAt','getDifference','buildSuggestion','getSuggestions','marker-count','setSelection','conversion','mapper','suggestionChanged','discardSelectedSuggestions','addCommentThread','markers','push','filter','return','then','isMultiRange','enableCommand','listenTo','PendingActions','multipleBlocks','_getExternalAuthor','ck-suggestion-marker--active','removeMarker:suggestion:formatBlock','widget','$textProxy','setTo','head','containsItem','low','rootName','toViewElement','getIntersection','isInsideObject','type','commands','isLimit','dataDowncast','addMarker','isObject','hasSuggestion','_saved','authoredAt','trackChanges','map','markerName','nodeBefore','commandName','editingDowncast','_suggestions','createElement','lowest','unbind','config','rejected','insertion:join','documentSelection','_splitMarkerName','getChanges','getNearestSelectionRange','includes','suggestion','start','formatBlock:chain','formatBlock:discard','unbindElementFromMarkerName','forward','discard','editor','trackChangesCommand','next','_removeSuggestion','isAtStart','_getSuggestionData','markMultiRangeDeletion','createdAt'];(function(_0x411d17,_0x24b2ca){const _0x38669f=function(_0xd6b13a){while(--_0xd6b13a){_0x411d17['push'](_0x411d17['shift']());}};_0x38669f(++_0x24b2ca);}(_0x24b2,0x175));const _0x3866=function(_0x411d17,_0x24b2ca){_0x411d17=_0x411d17-0x0;let _0x38669f=_0x24b2[_0x411d17];return _0x38669f;};import{Plugin as _0xfd98c0,PendingActions as _0x3a68de}from'ckeditor5/src/core';import{LiveRange as _0x10ff46}from'ckeditor5/src/engine';import{CKEditorError as _0x217484,uid as _0x2760d2,priorities as _0x5a7cbd,logWarning as _0x394639}from'ckeditor5/src/utils';import{toWidget as _0x1700a1}from'ckeditor5/src/widget';import{Users as _0x2a2bae,hashObject as _0x1e68fd}from'ckeditor5-collaboration/src/collaboration-core';import _0x491a90 from'./commands/trackchangescommand';import _0x4d7ced from'./commands/acceptsuggestioncommand';import _0x2a2caf from'./commands/discardsuggestioncommand';import _0x4b9b1f from'./commands/executeonallsuggestionscommand';import _0x1e58db from'./commands/executeonselectedsuggestionscommand';import _0x3a1096 from'./suggestion';import _0x396d25 from'./suggestiondescriptionfactory';import _0x15203a from'./integrations/alignment';import _0x364ef4 from'./integrations/basicstyles';import _0x53850e from'./integrations/blockquote';import _0x3d614c from'./integrations/ckbox';import _0x3f1a76 from'./integrations/codeblock';import _0x26fdd2 from'./integrations/comments';import _0x40ed5d from'./integrations/deletecommand';import _0x1d5017 from'./integrations/documentlist';import _0x1b0b3b from'./integrations/entercommand';import _0x60b039 from'./integrations/findandreplace';import _0x3123cf from'./integrations/font';import _0x56026c from'./integrations/formatpainter';import _0xd31d0f from'./integrations/heading';import _0x4725e8 from'./integrations/highlight';import _0x124712 from'./integrations/horizontalline';import _0x20998c from'./integrations/htmlembed';import _0x448d77 from'./integrations/image';import _0x27da03 from'./integrations/imagereplace';import _0x1ffe09 from'./integrations/importword';import _0x5cdab6 from'./integrations/indent';import _0x310a3a from'./integrations/inputcommand';import _0x1cfe62 from'./integrations/link';import _0xebea54 from'./integrations/list';import _0x31da56 from'./integrations/listproperties';import _0x51835c from'./integrations/mediaembed';import _0x3b77d0 from'./integrations/mention';import _0x470494 from'./integrations/pagebreak';import _0x29d4b7 from'./integrations/paragraph';import _0x81daa0 from'./integrations/removeformat';import _0x11b69b from'./integrations/restrictededitingmode';import _0xa3f387 from'./integrations/shiftentercommand';import _0x15a35c from'./integrations/standardeditingmode';import _0x26eca3 from'./integrations/style';import _0x29dfec from'./integrations/table';import _0x14a6fc from'./integrations/tablemergesplit';import _0x2a997a from'./integrations/tableheadings';import _0x43d031 from'./integrations/tableclipboard';import _0xc0322c from'./integrations/tablecolumnresize';import _0x35cc79 from'./integrations/template';import _0x25136f from'./integrations/tableofcontents';import _0x31e5eb from'./integrations/title';import _0x86a226 from'./integrations/undo';import{getTranslation as _0x2cae61}from'./utils/common-translations';import _0x2e21f7 from'./integrations/tablecaption';import _0x4536ec from'./integrations/documentlistproperties';import _0x113d30 from'./integrations/tableproperties';export default class p extends _0xfd98c0{static get[_0x3866('0x6')](){return[_0x3866('0x24'),_0x2a2bae,_0x3a68de,_0x15203a,_0x364ef4,_0x53850e,_0x3d614c,_0x3f1a76,_0x26fdd2,_0x40ed5d,_0x1d5017,_0x4536ec,_0x1b0b3b,_0x60b039,_0x3123cf,_0x56026c,_0xd31d0f,_0x4725e8,_0x124712,_0x20998c,_0x448d77,_0x27da03,_0x1ffe09,_0x5cdab6,_0x310a3a,_0x1cfe62,_0xebea54,_0x31da56,_0x51835c,_0x3b77d0,_0x470494,_0x29d4b7,_0x81daa0,_0x11b69b,_0xa3f387,_0x15a35c,_0x26eca3,_0x29dfec,_0x14a6fc,_0x2a997a,_0x2e21f7,_0x43d031,_0xc0322c,_0x25136f,_0x113d30,_0x35cc79,_0x31e5eb,_0x86a226];}static get[_0x3866('0x13b')](){return'TrackChangesEditing';}constructor(_0x46f0d6){function _0x306a27(_0x3a793a){return _0x3a793a[_0x3866('0xe7')](_0x2a5b7b=>String[_0x3866('0x122')](_0x2a5b7b))[_0x3866('0x110')]('');}super(_0x46f0d6),this[_0x3866('0xf')](_0x3866('0x121'),[]),this['on'](_0x3866('0x75'),(_0x41724d,_0x289d26,_0x1cd66e,_0x134178)=>{this[_0x3866('0xaf')][_0x3866('0x26')](()=>{for(const _0x2b690e of[..._0x134178,..._0x1cd66e])this[_0x3866('0xaf')][_0x3866('0xc6')]['has'](_0x2b690e)&&_0x46f0d6['editing']['reconvertMarker'](_0x2b690e);});}),this[_0x3866('0x44')]=new _0x396d25(this[_0x3866('0xff')]['model'][_0x3866('0xa3')],this[_0x3866('0xff')][_0x3866('0x77')]),this[_0x3866('0x1c')]=null,this[_0x3866('0x5')]=new Dt(this[_0x3866('0xff')]),this['_suggestions']=new Map(),this[_0x3866('0x29')]=_0x46f0d6['plugins']['get']('CommentsRepository'),this[_0x3866('0x9')]=new Set(),this[_0x3866('0xaf')]=this[_0x3866('0xff')][_0x3866('0x66')],this['_suggestionState']=new WeakMap(),this[_0x3866('0x47')]=!0x1,_0x46f0d6[_0x3866('0xf0')]['define'](_0x3866('0x94'),_0x3866('0x126')),this['_trackFormatChanges']=_0x46f0d6['config'][_0x3866('0x52')](_0x3866('0x94')),_0x46f0d6[_0x3866('0xf0')][_0x3866('0x3e')](_0x3866('0x10d'),!0x0),this['_mergeNestedSuggestions']=_0x46f0d6[_0x3866('0xf0')][_0x3866('0x52')](_0x3866('0x10d')),this[_0x3866('0x100')]=new _0x491a90(_0x46f0d6,this[_0x3866('0x9')]),this[_0x306a27([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x306a27([0x34,0x30,0x34,0x36,0x31,0x34,0x31,0x34]);}['init'](){const _0x326423=this[_0x3866('0xff')];_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xeb'))[_0x3866('0x124')]({'model':_0x3866('0xf8'),'view':_0x3b8a15=>{const {id:_0x36427c,type:_0x21aa2a}=this[_0x3866('0xf4')](_0x3b8a15[_0x3866('0xe8')]),_0xcd9573=[_0x3866('0x87'),_0x3866('0xa6')+_0x21aa2a];let _0x1e233e=0xbb8;return this[_0x3866('0x121')][_0x3866('0xf7')](_0x3b8a15['markerName'])&&(_0xcd9573[_0x3866('0xc7')]('ck-suggestion-marker--active'),_0x1e233e=0xbc2),_0x3866('0x13a')==_0x21aa2a&&(_0x1e233e+=0x5),{'classes':_0xcd9573,'attributes':{'data-suggestion':_0x36427c},'priority':_0x1e233e};}}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xe0'))['add'](_0x5576b1=>{_0x5576b1['on'](_0x3866('0x11d'),(_0x28b511,_0x2ac3e8,_0x5e3443)=>{if(!_0x5e3443[_0x3866('0x125')][_0x3866('0x89')])return;const _0x22d8df=_0x2ac3e8[_0x3866('0x3')];if(!_0x22d8df)return;const _0x5cae6e=_0x5e3443['mapper']['toViewElement'](_0x22d8df);_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0xe2')](_0x22d8df)&&_0x5cae6e&&!_0x5cae6e['getCustomProperty'](_0x3866('0xd3'))&&_0x5cae6e['is'](_0x3866('0x12b'))&&_0x1700a1(_0x5cae6e,_0x5e3443[_0x3866('0x82')]);},{'priority':_0x3866('0x79')});}),_0x326423['conversion'][_0x3866('0xb5')](_0x3866('0xe0'))[_0x3866('0x124')]({'model':_0x3866('0xf8'),'view':(_0x47bf3c,_0x1ea799)=>{if(!_0x1ea799['options'][_0x3866('0x89')])return null;const {type:_0x5b638d}=this[_0x3866('0xf4')](_0x47bf3c[_0x3866('0xe8')]);return{'classes':[_0x3866('0x87'),_0x3866('0xa6')+_0x5b638d],'priority':0xbb8};}});const _0x15371a=({showActiveMarkers:_0x30ad51=!0x0}={})=>(_0x25cd8e,_0x5429c4,_0x5b261b)=>{if(!_0x5429c4['item'])return;if(_0x5429c4[_0x3866('0x3')]['is'](_0x3866('0x6e')))return void _0x5b261b[_0x3866('0x41')]['consume'](_0x5429c4[_0x3866('0x3')],_0x25cd8e['name']);const _0x2fc647=_0x5b261b['mapper'][_0x3866('0xda')](_0x5429c4[_0x3866('0x3')]);if(!(_0x5429c4[_0x3866('0x3')]['is'](_0x3866('0x139'))&&_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0x96')](_0x5429c4['item'])&&!_0x2fc647['getCustomProperty']('addHighlight')))return;const {id:_0x1432aa}=this['_splitMarkerName'](_0x5429c4[_0x3866('0xe8')]);_0x5b261b['writer'][_0x3866('0x17')]([_0x3866('0x87'),_0x3866('0x13d')],_0x2fc647),_0x5b261b['writer'][_0x3866('0x12c')]('data-suggestion',_0x1432aa,_0x2fc647),_0x5b261b[_0x3866('0xc2')][_0x3866('0x134')](_0x2fc647,_0x5429c4['markerName']),_0x30ad51&&(this[_0x3866('0x121')]['includes'](_0x5429c4[_0x3866('0xe8')])?_0x5b261b[_0x3866('0x82')][_0x3866('0x17')](_0x3866('0xd1'),_0x2fc647):_0x5b261b[_0x3866('0x82')][_0x3866('0x2')](_0x3866('0xd1'),_0x2fc647));for(const _0x2f5135 of _0x326423[_0x3866('0x66')][_0x3866('0x20')](_0x5429c4[_0x3866('0x3')])['getItems']())_0x5b261b['consumable'][_0x3866('0x5d')](_0x2f5135,_0x25cd8e[_0x3866('0x3f')]);_0x5b261b[_0x3866('0x41')][_0x3866('0x5d')](_0x5429c4[_0x3866('0x3')],_0x25cd8e['name']);};_0x326423[_0x3866('0xc1')][_0x3866('0xb5')]('dataDowncast')[_0x3866('0xaa')](_0x112e34=>{_0x112e34['on']('addMarker:suggestion:formatBlock',(_0x18d147,_0x35ed8c,_0x505760)=>{_0x505760[_0x3866('0x125')][_0x3866('0x89')]&&_0x15371a({'showActiveMarkers':!0x1})(_0x18d147,_0x35ed8c,_0x505760);},{'priority':'highest'});}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xe0'))['markerToData']({'model':_0x3866('0xf8'),'view':(_0x3eec87,_0x465919)=>_0x465919[_0x3866('0x125')][_0x3866('0x89')]?null:{'group':'suggestion','name':_0x3eec87[_0x3866('0x12e')](0xb)}}),_0x326423[_0x3866('0xc1')]['for']('upcast')[_0x3866('0x115')]({'view':{'name':_0x3866('0xf8'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42897c,{writer:_0x42c7a0})=>{let _0x3cc76b=_0x3866('0x37')+_0x42897c[_0x3866('0x5b')](_0x3866('0x8c'))+':'+_0x42897c[_0x3866('0x5b')]('id');return _0x42897c['getAttribute'](_0x3866('0xbf'))&&(_0x3cc76b+=':'+_0x42897c[_0x3866('0x5b')](_0x3866('0xbf'))),_0x42c7a0[_0x3866('0xed')](_0x3866('0x7b'),{'data-name':_0x3cc76b});}}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0x8'))[_0x3866('0x84')]({'view':_0x3866('0xf8')}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')]('editingDowncast')['add'](_0x450988=>{_0x450988['on']('addMarker:suggestion:formatBlock',_0x15371a(),{'priority':_0x3866('0x79')});}),_0x326423[_0x3866('0xc1')][_0x3866('0xb5')](_0x3866('0xeb'))[_0x3866('0xaa')](_0x23a543=>{_0x23a543['on'](_0x3866('0xd2'),(_0x4833fe,_0x41ac15,_0x2d6889)=>{const _0x36b309=_0x2d6889[_0x3866('0xc2')][_0x3866('0xae')](_0x41ac15[_0x3866('0xe8')]);if(_0x36b309)for(const _0x464b50 of _0x36b309)_0x464b50[_0x3866('0x7d')](_0x3866('0x31'))||(_0x2d6889[_0x3866('0x82')][_0x3866('0x2')]([_0x3866('0x87'),_0x3866('0x13d'),'ck-suggestion-marker--active'],_0x464b50),_0x2d6889[_0x3866('0x82')]['removeAttribute'](_0x3866('0xa5'),_0x464b50),_0x2d6889['mapper'][_0x3866('0xfc')](_0x464b50,_0x41ac15['markerName']));},{'priority':_0x3866('0x79')});}),_0x326423[_0x3866('0x66')]['document']['registerPostFixer'](_0x2db07c=>{let _0xd594ea=!0x1;const _0x28d872=Array[_0x3866('0x64')](_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x71')][_0x3866('0x18')]()),_0x1dd2e6=new Set();for(const {name:_0x20c345,data:_0x13b2e2}of _0x28d872){const {group:_0x5651b3,type:_0x570831,id:_0x1bc266}=this[_0x3866('0xf4')](_0x20c345);if(_0x3866('0xf8')!==_0x5651b3)continue;const _0x3e5d4a=this[_0x3866('0xec')][_0x3866('0x52')](_0x1bc266);if(null!=_0x13b2e2[_0x3866('0xd')]){_0x3866('0x111')==_0x570831&&(_0xd594ea=_0xd594ea||Mt(_0x13b2e2[_0x3866('0xd')],_0x20c345,_0x2db07c,_0x326423['model']['schema']));if(_0x13b2e2['newRange']['isCollapsed']||_0x3866('0x93')==_0x13b2e2[_0x3866('0xd')][_0x3866('0x131')][_0x3866('0xd9')]||'formatBlock'==_0x570831&&!Nt(_0x13b2e2['newRange'])||_0x3866('0x13a')==_0x570831&&!(!_t(_0x44cb62=_0x13b2e2[_0x3866('0xd')])&&!function(_0x2b218b){return _0x2b218b[_0x3866('0xf9')]['parent']==_0x2b218b[_0x3866('0x13')][_0x3866('0xe9')]&&_0x2b218b[_0x3866('0xf9')]['isAtEnd'];}(_0x44cb62)))_0x2db07c[_0x3866('0x2b')](_0x20c345),_0xd594ea=!0x0;else{if(!_0x3e5d4a||!_0x3e5d4a[_0x3866('0x10e')])continue;_0x1dd2e6[_0x3866('0xaa')](_0x3e5d4a);}}}var _0x44cb62;return _0x1dd2e6[_0x3866('0xa1')]>0x0&&(_0xd594ea=!!this[_0x3866('0xba')](_0x1dd2e6)||_0xd594ea),_0xd594ea;}),_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x128')](_0x452b9d=>{let _0x3bdfef=!0x1;for(const _0x21e9ce of _0x326423[_0x3866('0x66')][_0x3866('0x5e')]['differ'][_0x3866('0xf5')]()){if(_0x3866('0xb9')!=_0x21e9ce[_0x3866('0xdd')])continue;const _0x2376a0=_0x21e9ce[_0x3866('0x27')][_0x3866('0xb0')](_0x21e9ce[_0x3866('0xb8')]);if(_0x2376a0[_0x3866('0x40')])for(const _0x2c05e6 of this[_0x3866('0xec')][_0x3866('0x11b')]()){if(_0x2c05e6[_0x3866('0xcb')]||!_0x2c05e6['isInContent'])continue;if(_0x3866('0xa4')!=_0x2c05e6[_0x3866('0xdd')])continue;const _0xa1b7e7=_0x2c05e6[_0x3866('0x113')]();if(_0xa1b7e7[_0x3866('0xf9')][_0x3866('0x81')]!=_0xa1b7e7[_0x3866('0x13')][_0x3866('0x81')]&&_0xa1b7e7['end'][_0x3866('0x10')](_0x21e9ce[_0x3866('0x27')])){const _0x20282d=_0x326423['model'][_0x3866('0x38')](_0xa1b7e7[_0x3866('0xf9')],_0x2376a0);_0x452b9d[_0x3866('0x133')](_0x2c05e6[_0x3866('0x58')](),{'range':_0x20282d}),_0x3bdfef=!0x0;}}}return _0x3bdfef;}),_0x326423[_0x3866('0x66')][_0x3866('0xc6')]['on'](_0x3866('0x68'),(_0x20f900,_0x3fbac0,_0x17475a)=>{if(null==_0x17475a){const {id:_0x2cc7d5}=this[_0x3866('0xf4')](_0x3fbac0[_0x3866('0x3f')]),_0x43f331=this['_suggestions'][_0x3866('0x52')](_0x2cc7d5);_0x43f331&&_0x43f331['addMarkerName'](_0x3fbac0[_0x3866('0x3f')]);}}),_0x326423[_0x3866('0x66')][_0x3866('0x5e')]['on']('change:data',()=>{const _0x3b5f3e=Array[_0x3866('0x64')](_0x326423[_0x3866('0x66')][_0x3866('0x5e')][_0x3866('0x71')]['getChangedMarkers']())['filter'](_0x2de3ad=>_0x3866('0xf8')===this[_0x3866('0xf4')](_0x2de3ad[_0x3866('0x3f')])[_0x3866('0xb6')]);if(0x0===_0x3b5f3e[_0x3866('0xb8')])return;_0x3b5f3e[_0x3866('0x34')]((_0x2fd43d,_0x3db44a)=>{const _0x5b7776=_0x2fd43d[_0x3866('0x25')][_0x3866('0x23')],_0x287d77=_0x3db44a[_0x3866('0x25')]['oldRange'];return null===_0x5b7776&&null===_0x287d77?0x0:null===_0x5b7776&&null!==_0x287d77?-0x1:null!==_0x5b7776&&null===_0x287d77?0x1:_0x5b7776[_0x3866('0xf9')][_0x3866('0x137')](_0x287d77['start'])?-0x1:0x1;});const _0x22f102=new Set(),_0x58e840=new Set();for(const {name:_0x36c828,data:_0x38295e}of _0x3b5f3e){const {id:_0x5150f5}=this['_splitMarkerName'](_0x36c828);if(null===_0x38295e[_0x3866('0x23')]){const _0x43ee3c=this[_0x3866('0xa7')](_0x36c828);_0x58e840['add'](_0x43ee3c);}else{const _0x527564=this[_0x3866('0xec')]['get'](_0x5150f5);null!==_0x38295e[_0x3866('0xd')]||_0x527564[_0x3866('0x10e')]?(_0x22f102[_0x3866('0xaa')](_0x527564[_0x3866('0xd6')]),_0x58e840[_0x3866('0xaa')](_0x527564)):this[_0x3866('0x102')](_0x527564);}}_0x58e840[_0x3866('0xa1')]>0x0&&this[_0x3866('0x15')](_0x58e840);for(const _0x24721e of _0x22f102)this['fire'](_0x3866('0xc3'),_0x24721e);}),_0x326423['model']['on'](_0x3866('0xab'),(_0x8b48f4,_0x3f6e44)=>{const _0x2ef1a6=_0x3f6e44[0x0];if(!this[_0x3866('0xec')]['size'])return;if(!_0x2ef1a6[_0x3866('0x120')])return;if(_0x2ef1a6[_0x3866('0x108')][_0x3866('0x9c')]||!_0x2ef1a6[_0x3866('0x108')][_0x3866('0x12')])return;let _0x1f2671,_0x755187;switch(_0x2ef1a6['type']){case _0x3866('0xb9'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['position']),_0x755187=_0x1f2671[_0x3866('0xb0')](_0x2ef1a6[_0x3866('0x6b')]);break;case _0x3866('0x16'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['splitPosition']),_0x755187=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6[_0x3866('0x90')]);break;case _0x3866('0x138'):_0x1f2671=_0x326423[_0x3866('0x66')][_0x3866('0xbb')](_0x2ef1a6['targetPosition']),_0x755187=_0x1f2671[_0x3866('0xb0')](_0x2ef1a6[_0x3866('0x6b')]);break;default:return;}const _0x56915d=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x1f2671,_0x755187);_0x326423[_0x3866('0x66')][_0x3866('0x26')](()=>{for(const {suggestion:_0x110751,meta:_0x2f528a}of this[_0x3866('0x8f')](_0x56915d)){if(_0x110751[_0x3866('0xcb')])continue;if(_0x3866('0x111')==_0x110751[_0x3866('0xdd')])continue;const _0x4e8185=_0x110751[_0x3866('0x25')]&&_0x110751[_0x3866('0x25')][_0x3866('0xcf')];(_0x3866('0xa4')!=_0x110751['type']||_0x3866('0x16')==_0x2ef1a6[_0x3866('0xdd')]&&!_0x4e8185)&&(_0x2f528a[_0x3866('0x21')]||_0x3866('0x53')==_0x110751[_0x3866('0xdd')]&&_0x2f528a['isOwn']||_0x110751[_0x3866('0x113')]()[_0x3866('0x2c')](_0x56915d)&&this[_0x3866('0x72')](_0x110751,_0x1f2671,_0x755187));}});},{'priority':_0x3866('0xee')}),_0x326423[_0x3866('0x66')]['on'](_0x3866('0x9b'),(_0x11736d,_0x33ab2b)=>{const _0x1f6b61=_0x33ab2b[0x0],_0x3595a2=_0x33ab2b[0x1];if(_0x3595a2&&_0x3595a2[_0x3866('0x30')])return;if(this[_0x3866('0x47')])return;if(!this[_0x3866('0x100')][_0x3866('0x1a')])return;if(_0x1f6b61[_0x3866('0x6f')])return;const _0x544a9b=_0x326423[_0x3866('0x66')][_0x3866('0xa3')],{start:_0x4be2e8,end:_0x407505}=_0x1f6b61[_0x3866('0x113')](),_0x1c6f91=_0x4be2e8[_0x3866('0x11e')]&&_0x544a9b[_0x3866('0xdf')](_0x4be2e8[_0x3866('0x11e')])?null:_0x544a9b['getNearestSelectionRange'](_0x4be2e8,_0x3866('0xfd')),_0x320efb=_0x407505[_0x3866('0xe9')]&&_0x544a9b[_0x3866('0xdf')](_0x407505[_0x3866('0xe9')])?null:_0x544a9b[_0x3866('0xf6')](_0x407505,_0x3866('0x62')),_0x3ac091=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x1c6f91?_0x1c6f91[_0x3866('0xf9')]:_0x4be2e8,_0x320efb?_0x320efb[_0x3866('0x13')]:_0x407505);_0x326423[_0x3866('0x66')][_0x3866('0x26')](_0x1a827b=>{this[_0x3866('0x7e')](_0x3ac091);const _0xa254de=_0x326423[_0x3866('0x66')][_0x3866('0xa3')][_0x3866('0xf6')](_0x3ac091['start']);_0x1f6b61['is'](_0x3866('0xf3'))?_0x1a827b[_0x3866('0xc0')](_0xa254de):_0x1f6b61[_0x3866('0xd5')](_0xa254de);}),_0x11736d['stop']();},{'priority':_0x5a7cbd[_0x3866('0xad')]+0xa}),_0x326423[_0x3866('0x66')]['on'](_0x3866('0x7c'),(_0x483476,_0x3537db)=>{const _0x16cf29=_0x3537db[_0x3537db[_0x3866('0xb8')]-0x1];_0x16cf29&&_0x16cf29['forceDefaultExecution']||this[_0x3866('0x47')]||this[_0x3866('0x100')]['value']&&(_0x326423[_0x3866('0x66')][_0x3866('0x26')](()=>{let _0x573872=_0x326423[_0x3866('0x66')][_0x3866('0x7c')](_0x3537db[0x0],_0x3537db[0x1],_0x3537db[0x2],{'forceDefaultExecution':!0x0});if(!_0x573872)return;_0x483476[_0x3866('0xc9')]=_0x573872['clone']();const _0x128d41=_0x573872[_0x3866('0x13')][_0x3866('0xe9')],_0x15220b=_0x326423[_0x3866('0x66')]['schema'];_0x128d41&&_0x15220b[_0x3866('0x96')](_0x128d41)&&!_0x15220b['isObject'](_0x128d41)&&(_0x573872=_0x326423[_0x3866('0x66')][_0x3866('0x38')](_0x573872[_0x3866('0xf9')],_0x326423[_0x3866('0x66')]['createPositionAt'](_0x128d41,_0x3866('0x13')))),this[_0x3866('0x70')](_0x573872);}),_0x483476[_0x3866('0x2a')]());},{'priority':'high'}),this[_0x3866('0xff')][_0x3866('0xde')][_0x3866('0xaa')](_0x3866('0xe6'),this[_0x3866('0x100')]),this[_0x3866('0xcc')](_0x3866('0xe6'));const _0x45ef8a=new _0x4d7ced(_0x326423,this['_suggestions']);_0x326423[_0x3866('0xde')][_0x3866('0xaa')]('acceptSuggestion',_0x45ef8a),this[_0x3866('0xcc')]('acceptSuggestion');const _0x52fc14=new _0x2a2caf(_0x326423,this[_0x3866('0xec')]);_0x326423['commands'][_0x3866('0xaa')](_0x3866('0xb3'),_0x52fc14),this[_0x3866('0xcc')](_0x3866('0xb3')),_0x326423['commands']['add'](_0x3866('0x2e'),new _0x4b9b1f(_0x326423,_0x45ef8a,this[_0x3866('0xec')])),this[_0x3866('0xcc')](_0x3866('0x2e')),_0x326423['commands'][_0x3866('0xaa')](_0x3866('0x61'),new _0x4b9b1f(_0x326423,_0x52fc14,this[_0x3866('0xec')])),this[_0x3866('0xcc')](_0x3866('0x61')),_0x326423[_0x3866('0xde')][_0x3866('0xaa')](_0x3866('0x129'),new _0x1e58db(_0x326423,_0x45ef8a,this[_0x3866('0xec')])),this['enableCommand']('acceptSelectedSuggestions'),_0x326423['commands'][_0x3866('0xaa')](_0x3866('0xc4'),new _0x1e58db(_0x326423,_0x52fc14,this['_suggestions'])),this[_0x3866('0xcc')](_0x3866('0xc4'));const _0x436770=_0x326423[_0x3866('0x6c')][_0x3866('0x52')]('CommentsRepository');this[_0x3866('0xcd')](_0x436770,'addComment',(_0x1081e4,{threadId:_0x488dc7})=>{const _0x15a717=this[_0x3866('0xec')][_0x3866('0x52')](_0x488dc7);_0x15a717&&_0x15a717[_0x3866('0x11f')]&&0x1===_0x15a717['commentThread']['length']&&this[_0x3866('0x49')](_0x488dc7,{'hasComments':!0x0});},{'priority':_0x3866('0xd8')}),this['listenTo'](_0x436770,_0x3866('0x48'),(_0x19131d,{threadId:_0x154d4a})=>{const _0x756fa0=this[_0x3866('0xec')][_0x3866('0x52')](_0x154d4a);_0x756fa0&&_0x756fa0[_0x3866('0x11f')]&&!_0x756fa0[_0x3866('0x11f')]['length']&&this['_updateSuggestionData'](_0x154d4a,{'hasComments':!0x1});},{'priority':_0x3866('0xd8')});}set[_0x3866('0x9f')](_0x15f9d0){if(this[_0x3866('0x1c')])throw new _0x217484(_0x3866('0x130'),this);this['_adapter']=_0x15f9d0;}get[_0x3866('0x9f')](){return this[_0x3866('0x1c')];}[_0x3866('0xbe')]({skipNotAttached:_0xb93673=!0x1,toJSON:_0x455b50=!0x1}={}){const _0x37b6e7=[];for(const _0x5583a1 of this['_suggestions'][_0x3866('0x11b')]())_0xb93673&&!_0x5583a1['isInContent']||_0x37b6e7[_0x3866('0xc7')](_0x5583a1);return _0x455b50?_0x37b6e7[_0x3866('0xe7')](_0x5220c3=>_0x5220c3['toJSON']()):_0x37b6e7;}['getSuggestion'](_0x4d3b50){const _0x44caf4=this[_0x3866('0xec')][_0x3866('0x52')](_0x4d3b50);if(!_0x44caf4)throw new _0x217484(_0x3866('0x4b'),this);return _0x44caf4;}[_0x3866('0xe3')](_0x3a2307){return this[_0x3866('0xec')][_0x3866('0x43')](_0x3a2307);}[_0x3866('0x10a')](_0x514484){const {authorId:_0x402cbe,id:_0x2fff23,attributes:_0x2cd933}=_0x514484,[_0x2b1f94,_0x63bc41]=_0x514484['type'][_0x3866('0x16')](':'),_0xd0a2a3=this['_suggestions'][_0x3866('0x52')](_0x2fff23)||this[_0x3866('0x9e')](_0x2b1f94,_0x63bc41,_0x2fff23,_0x402cbe,_0x2cd933);if(this[_0x3866('0x85')](_0xd0a2a3),this[_0x3866('0x3a')](_0xd0a2a3,_0x2b1f94,_0x63bc41||null,_0x402cbe),_0xd0a2a3['createdAt']=_0x514484[_0x3866('0x106')],_0x2cd933&&_0x2cd933[_0x3866('0x67')]){const _0x4017a4=_0x2cd933['@external'],_0x270d71=this[_0x3866('0xd0')](_0x4017a4[_0x3866('0x65')]);_0xd0a2a3[_0x3866('0xe5')]=_0x4017a4['createdAt'],_0xd0a2a3[_0x3866('0xb2')]=_0x270d71,_0xd0a2a3[_0x3866('0x60')]=!0x0;}else _0xd0a2a3[_0x3866('0xe5')]=_0x514484[_0x3866('0x106')];switch(_0x514484['data']&&(_0xd0a2a3[_0x3866('0x25')]=_0x514484['data']),_0x514484['attributes']&&(_0xd0a2a3[_0x3866('0x2f')]=_0x514484[_0x3866('0x2f')]),this[_0x3866('0x1c')]&&this['_adapter'][_0x3866('0xc')]||(_0xd0a2a3[_0x3866('0xe4')]=!0x0),this[_0x3866('0x3b')][_0x3866('0x52')](_0xd0a2a3)){case _0x3866('0x4f'):this[_0x3866('0x3b')]['set'](_0xd0a2a3,_0x3866('0x8b'));break;case _0x3866('0x4d'):_0xd0a2a3[_0x3866('0x10e')]?(this['_suggestionState']['set'](_0xd0a2a3,_0x3866('0x33')),this[_0x3866('0x32')](_0x3866('0x69'),_0xd0a2a3)):this['_suggestionState'][_0x3866('0xf')](_0xd0a2a3,_0x3866('0x136'));}return _0xd0a2a3;}[_0x3866('0xe')](_0x3baf39){this[_0x3866('0x30')](()=>{this['editor'][_0x3866('0x66')][_0x3866('0x26')](()=>{for(const _0xb2425 of _0x3baf39[_0x3866('0x10b')]())_0xb2425['accept']();});});}[_0x3866('0xb3')](_0x502e30){this['forceDefaultExecution'](()=>{this[_0x3866('0xff')][_0x3866('0x66')][_0x3866('0x26')](()=>{for(const _0x42f5b8 of _0x502e30[_0x3866('0x10b')]())_0x42f5b8['discard']();});});}['enableCommand'](_0x16f2d2,_0x294606){const _0x30e860=this['editor']['commands'][_0x3866('0x52')](_0x16f2d2);if(!_0x30e860)throw new _0x217484('track-changes-command-not-found',this,{'commandName':_0x16f2d2});this['_enabledCommands'][_0x3866('0xaa')](_0x30e860),_0x294606&&_0x30e860['on']('execute',(_0x581904,_0x29ffcc)=>{this[_0x3866('0x100')][_0x3866('0x1a')]&&(this[_0x3866('0x47')]||_0x29ffcc['length']>0x0&&_0x29ffcc[_0x29ffcc['length']-0x1]&&_0x29ffcc[_0x29ffcc['length']-0x1][_0x3866('0x30')]||(_0x294606((..._0x4162ad)=>_0x30e860['execute'](..._0x4162ad,{'forceDefaultExecution':!0x0}),..._0x29ffcc),_0x581904[_0x3866('0x2a')]()));},{'priority':_0x3866('0x79')});}[_0x3866('0x30')](_0xda0f5f){let _0x3ba60d,_0x1c032a;const _0x252308=this[_0x3866('0x47')];this[_0x3866('0x47')]=!0x0;try{_0x3ba60d=_0xda0f5f();}catch(_0x305278){_0x1c032a=_0x305278;}return _0x252308||(this[_0x3866('0x47')]=!0x1),_0x1c032a&&_0x217484[_0x3866('0x119')](_0x1c032a,this),_0x3ba60d;}[_0x3866('0x70')](_0x280798,_0x5f437f=null,_0x15c2de={}){if(_0x280798[_0x3866('0x6f')])return null;const _0x32aa71=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const {suggestion:_0x212a90,meta:_0x3ac0c2}of this[_0x3866('0x8f')](_0x280798,_0x3866('0x53')))if(_0x3ac0c2[_0x3866('0x9d')]){if(!_0x3ac0c2[_0x3866('0x114')]){if(!this['_mergeNestedSuggestions']&&_0x3ac0c2[_0x3866('0x21')])continue;return _0x212a90;}if(_0x5f437f==_0x212a90[_0x3866('0x91')]){const _0x1c2164=_0x212a90['getFirstRange']();return _0x1c2164['start']['isEqual'](_0x280798[_0x3866('0x13')])?this[_0x3866('0x95')](_0x212a90,this[_0x3866('0xaf')][_0x3866('0x38')](_0x280798[_0x3866('0xf9')],_0x1c2164[_0x3866('0x13')])):this[_0x3866('0x95')](_0x212a90,this[_0x3866('0xaf')][_0x3866('0x38')](_0x1c2164[_0x3866('0xf9')],_0x280798[_0x3866('0x13')])),_0x212a90;}}const _0x17f8c4=_0x2760d2(),_0x53433c=_0x32aa71['id'],_0x1d9734=_0x5f437f?'insertion:'+_0x5f437f:'insertion',_0x41ed92=this['_setSuggestionData']({'id':_0x17f8c4,'type':_0x1d9734,'createdAt':new Date(),'authorId':_0x53433c,'attributes':_0x15c2de});return this[_0x3866('0x45')](_0x1d9734,_0x17f8c4,_0x53433c,_0x280798),_0x41ed92;}['markMultiRangeInsertion'](_0x9c7eff,_0x8afe1d=_0x3866('0x78'),_0x206c39={}){const _0x614cc9=this[_0x3866('0xff')][_0x3866('0x6c')]['get']('Users')['me'],_0x1e6b98=this[_0x3866('0x5')][_0x3866('0x123')](_0x3866('0x53'),_0x8afe1d,_0x3866('0x110'));for(const _0x4dbbf2 of this[_0x3866('0xbe')]())if(_0x4dbbf2[_0x3866('0xb2')]['id']==_0x614cc9['id']&&_0x3866('0x53')==_0x4dbbf2[_0x3866('0xdd')]&&_0x4dbbf2[_0x3866('0x91')]==_0x8afe1d&&(_0x1e6b98(_0x4dbbf2['getRanges'](),_0x9c7eff)||_0x1e6b98(_0x9c7eff,_0x4dbbf2[_0x3866('0x59')]()))){for(const _0x441d56 of _0x9c7eff)_0x4dbbf2[_0x3866('0x4')](_0x441d56);return _0x4dbbf2;}if(this[_0x3866('0x1d')])for(const _0x315594 of _0x9c7eff)for(const {suggestion:_0x38a577,meta:_0x30c121}of this[_0x3866('0x8f')](_0x315594,_0x3866('0x53'))){if(!_0x30c121[_0x3866('0x9d')])continue;let _0x5d0e2a=!0x0;for(const _0x5e2742 of _0x38a577[_0x3866('0x59')]())for(const _0x3ba542 of _0x9c7eff)if(!_0x5e2742[_0x3866('0x2c')](_0x3ba542)){_0x5d0e2a=!0x1;break;}if(_0x5d0e2a)return _0x38a577;}const _0x5364d0=_0x2760d2(),_0x37fde0=_0x614cc9['id'],_0xc288bb='insertion:'+_0x8afe1d,_0x3eab1e=this[_0x3866('0x76')]({'id':_0x5364d0,'type':_0xc288bb,'createdAt':new Date(),'authorId':_0x37fde0,'attributes':_0x206c39});for(const _0x511029 of _0x9c7eff)this[_0x3866('0x45')](_0xc288bb,_0x5364d0,_0x37fde0,_0x511029,_0x3a1096[_0x3866('0x132')]());return _0x3eab1e;}['markInlineFormat'](_0x4dc512,_0xa95374,_0x25bf67=null,_0x26125f={}){if(_0x25bf67=_0x25bf67||$t(_0xa95374),_0x4dc512[_0x3866('0x6f')])return null;if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0xcec9d7=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x111'),_0x25bf67,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0xcec9d7([_0x4dc512],_0xa95374,_0x26125f)),null;}const _0x3ed42c=this[_0x3866('0xff')]['plugins'][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x42b00b=[];if(_0x3866('0x86')!==this[_0x3866('0x51')])for(const {suggestion:_0x244015,meta:_0x19fc69}of this[_0x3866('0x8f')](_0x4dc512,_0x3866('0x53')))_0x19fc69[_0x3866('0x9d')]&&!_0x19fc69[_0x3866('0xdc')]&&_0x42b00b[_0x3866('0xc7')](..._0x244015[_0x3866('0x59')]());const _0x41ed61=function(_0x57bcda,_0x1c04bf){const _0xfa955a=[];for(const _0x385dc4 of _0x1c04bf){const _0x28380e=_0x57bcda[_0x3866('0xdb')](_0x385dc4);_0x28380e&&_0xfa955a[_0x3866('0xc7')](_0x28380e);}return _0xfa955a;}(_0x4dc512,_0x42b00b),_0x35d491=function(_0x1c6b6d,_0x235477){const _0x2fe698=[_0x1c6b6d];for(const _0x111def of _0x235477){let _0x4609ed=0x0;for(;_0x4609ed<_0x2fe698[_0x3866('0xb8')];){const _0x4cf401=_0x2fe698[_0x4609ed][_0x3866('0xbc')](_0x111def);_0x2fe698[_0x3866('0xa8')](_0x4609ed,0x1,..._0x4cf401),_0x4609ed+=_0x4cf401[_0x3866('0xb8')];}}return _0x2fe698;}(_0x4dc512,_0x42b00b);_0x41ed61[_0x3866('0xb8')]&&this[_0x3866('0xaf')][_0x3866('0x26')](()=>{for(const _0x3ae5b8 of _0x41ed61){const _0x5685e9=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x111'),_0x25bf67,'accept');this[_0x3866('0x30')](()=>_0x5685e9([_0x3ae5b8],_0xa95374,_0x26125f));}});for(const _0x2b162e of _0x35d491){let _0x1cbdcb=null,_0x2b2dcc=_0x2b162e['start'],_0x174ff1=_0x2b162e[_0x3866('0x13')];for(const {suggestion:_0x4c7099,meta:_0x529fcd}of this[_0x3866('0x8f')](_0x2b162e,_0x3866('0x111'))){if(!_0x529fcd['isOwn'])continue;if(_0x4c7099[_0x3866('0x91')]!=_0x25bf67)continue;const _0x305f11=_0x4c7099['getFirstRange']();if(_0x305f11[_0x3866('0x2c')](_0x2b162e,!0x0))return null;_0x2b2dcc=_0x2b2dcc[_0x3866('0x137')](_0x305f11[_0x3866('0xf9')])?_0x2b2dcc:_0x305f11[_0x3866('0xf9')],_0x174ff1=_0x174ff1[_0x3866('0x107')](_0x305f11[_0x3866('0x13')])?_0x174ff1:_0x305f11['end'],_0x1cbdcb?_0x305f11[_0x3866('0xf9')][_0x3866('0x137')](_0x1cbdcb[_0x3866('0x113')]()[_0x3866('0xf9')])?(_0x1cbdcb[_0x3866('0x5f')](),_0x1cbdcb=_0x4c7099):_0x4c7099[_0x3866('0x5f')]():_0x1cbdcb=_0x4c7099;}const _0x3f342d=this[_0x3866('0xaf')]['createRange'](_0x2b2dcc,_0x174ff1);if(_0x1cbdcb)this[_0x3866('0x95')](_0x1cbdcb,_0x3f342d);else{const _0x54623e=_0x2760d2(),_0x484f29=_0x3ed42c['id'];this[_0x3866('0x76')]({'id':_0x54623e,'type':_0x3866('0x36')+_0x25bf67,'data':_0xa95374,'createdAt':new Date(),'authorId':_0x484f29,'attributes':_0x26125f}),this[_0x3866('0x45')]('formatInline:'+_0x25bf67,_0x54623e,_0x484f29,_0x3f342d);}}return null;}[_0x3866('0x4a')](_0x156be8,_0x4f924e,_0x52ba38=[],_0x391810=null,_0x786f72={}){_0x4f924e[_0x3866('0x3d')]||(_0x4f924e[_0x3866('0x3d')]=_0x4f924e[_0x3866('0xea')]),_0x4f924e[_0x3866('0xcf')]=_0x156be8['is'](_0x3866('0x127')),_0x391810=_0x391810||$t(_0x4f924e);const _0x258449=_0x52ba38[_0x3866('0xe7')](_0x13ccc5=>Rt(_0x13ccc5,this[_0x3866('0xaf')])),_0x12275f=_0x156be8['is']('range')?_0x156be8:Rt(_0x156be8,this['_model']);if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0x59c09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391810,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x59c09a([_0x12275f],_0x4f924e,_0x786f72)),null;}_0x258449['push'](_0x12275f);let _0x4e67b1=!0x0;for(const _0x3948e8 of _0x258449)if(!this['_rangeIsInLocalUserInsertion'](_0x3948e8)){_0x4e67b1=!0x1;break;}if(_0x4e67b1&&'always'!==this[_0x3866('0x51')]){const _0x552ffb=this['_suggestionFactory'][_0x3866('0x123')]('formatBlock',_0x391810,'accept');return this[_0x3866('0x30')](()=>_0x552ffb([_0x12275f],_0x4f924e,_0x786f72)),null;}let _0x4d3a9e=null,_0x1e57ed=_0x12275f[_0x3866('0xf9')],_0x21cfa7=_0x12275f[_0x3866('0x13')];for(const {suggestion:_0xbc46b8,meta:_0x676c82}of this[_0x3866('0x8f')](_0x12275f,_0x3866('0xa4'))){if(!_0x676c82[_0x3866('0x9d')]||_0x676c82['isNextTo']||_0x676c82[_0x3866('0x21')]||_0x676c82[_0x3866('0xdc')])continue;if(_0xbc46b8[_0x3866('0x25')][_0x3866('0x3d')]!=_0x4f924e[_0x3866('0x3d')])continue;const _0xcf09cd=_0xbc46b8['getFirstRange']();if(_0xbc46b8[_0x3866('0x91')]==_0x391810){if(_0xcf09cd[_0x3866('0x2c')](_0x12275f,!0x0))return null;_0x1e57ed=_0x1e57ed[_0x3866('0x137')](_0xcf09cd['start'])?_0x1e57ed:_0xcf09cd[_0x3866('0xf9')],_0x21cfa7=_0x21cfa7[_0x3866('0x107')](_0xcf09cd['end'])?_0x21cfa7:_0xcf09cd[_0x3866('0x13')],_0x4d3a9e?_0xcf09cd[_0x3866('0xf9')][_0x3866('0x137')](_0x4d3a9e[_0x3866('0x113')]()[_0x3866('0xf9')])?(_0x4d3a9e['removeMarkers'](),_0x4d3a9e=_0xbc46b8):_0xbc46b8[_0x3866('0x5f')]():_0x4d3a9e=_0xbc46b8;}else{const _0x178211=_0x12275f[_0x3866('0xdb')](_0xcf09cd);this[_0x3866('0x88')](_0xbc46b8,_0x178211);}}const _0x125165=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x4957bb=_0x2760d2(),_0x4ac80a=_0x125165['id'];if(_0x4d3a9e)return this['_setSuggestionRange'](_0x4d3a9e,this['_model'][_0x3866('0x38')](_0x1e57ed,_0x21cfa7)),_0x4d3a9e;{const _0x13474a=this[_0x3866('0x76')]({'id':_0x4957bb,'type':_0x3866('0x11c')+_0x391810,'data':_0x4f924e,'createdAt':new Date(),'authorId':_0x4ac80a,'attributes':_0x786f72});return this[_0x3866('0x45')]('formatBlock:'+_0x391810,_0x4957bb,_0x4ac80a,this['_model'][_0x3866('0x38')](_0x1e57ed,_0x21cfa7)),_0x13474a;}}[_0x3866('0x99')](_0x14c62e,_0x21cf5e,_0x2839b3=[],_0x45b143=null,_0x3bdd54={}){_0x21cf5e[_0x3866('0x3d')]||(_0x21cf5e[_0x3866('0x3d')]=_0x21cf5e[_0x3866('0xea')]);const _0x21bcee=_0x14c62e[0x0];_0x21cf5e['multipleBlocks']=_0x21bcee['is'](_0x3866('0x127')),_0x45b143=_0x45b143||$t(_0x21cf5e);const _0x5c5441=_0x2839b3['map'](_0x2e517e=>Rt(_0x2e517e,this[_0x3866('0xaf')])),_0x1d9035=_0x21bcee['is']('range')?_0x14c62e:_0x14c62e[_0x3866('0xe7')](_0x22ea4f=>Rt(_0x22ea4f,this[_0x3866('0xaf')]));if(_0x3866('0x6d')===this[_0x3866('0x51')]){const _0x3403e3=this[_0x3866('0x5')][_0x3866('0x123')]('formatBlock',_0x45b143,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x3403e3(_0x1d9035,_0x21cf5e,_0x3bdd54)),null;}_0x5c5441['push'](..._0x1d9035);let _0x4ca72e=!0x0;for(const _0x2f4233 of _0x5c5441)if(!this[_0x3866('0x35')](_0x2f4233)){_0x4ca72e=!0x1;break;}if(_0x4ca72e&&'always'!==this[_0x3866('0x51')]){const _0x5be0e6=this[_0x3866('0x5')]['getSuggestionCallback'](_0x3866('0xa4'),_0x45b143,_0x3866('0x13c'));return this['forceDefaultExecution'](()=>_0x5be0e6(_0x1d9035,_0x21cf5e,_0x3bdd54)),null;}const _0x5330b1=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const _0x17f260 of this[_0x3866('0xbe')]()){if(_0x17f260[_0x3866('0xb2')]['id']!=_0x5330b1['id'])continue;if(_0x3866('0xa4')!=_0x17f260[_0x3866('0xdd')]||_0x17f260['data']['formatGroupId']!=_0x21cf5e[_0x3866('0x3d')])continue;const _0x536787=_0x17f260[_0x3866('0x91')]==_0x45b143;for(let _0x3a1710=0x0;_0x3a1710<_0x1d9035[_0x3866('0xb8')];_0x3a1710++){const _0x478579=_0x1d9035[_0x3a1710];for(const _0x8d0fcd of _0x17f260[_0x3866('0x92')]()){const _0x64580c=_0x8d0fcd[_0x3866('0x118')]();if(_0x478579['isEqual'](_0x64580c)){_0x536787?(_0x1d9035[_0x3866('0xa8')](_0x3a1710,0x1),_0x3a1710--):_0x17f260[_0x3866('0x2b')](_0x8d0fcd[_0x3866('0x3f')]);break;}}}}if(0x0==_0x1d9035[_0x3866('0xb8')])return null;const _0x570478=this[_0x3866('0x5')]['getSuggestionCallback'](_0x3866('0xa4'),_0x45b143,_0x3866('0x110'));for(const _0x3a9b6a of this[_0x3866('0xbe')]())if(_0x3a9b6a[_0x3866('0xb2')]['id']==_0x5330b1['id']&&_0x3866('0xa4')==_0x3a9b6a['type']&&_0x3a9b6a['data'][_0x3866('0x3d')]==_0x21cf5e[_0x3866('0x3d')]&&_0x3a9b6a[_0x3866('0x91')]==_0x45b143&&(_0x570478(_0x3a9b6a[_0x3866('0x59')](),_0x1d9035)||_0x570478(_0x1d9035,_0x3a9b6a[_0x3866('0x59')]()))){for(const _0xa5c5b6 of _0x1d9035)_0x3a9b6a[_0x3866('0x4')](_0xa5c5b6);return _0x3a9b6a;}const _0x4ece87=_0x2760d2(),_0x53cc55=_0x5330b1['id'],_0x243810='formatBlock:'+_0x45b143,_0x38dfe3=this[_0x3866('0x76')]({'id':_0x4ece87,'type':_0x243810,'data':_0x21cf5e,'createdAt':new Date(),'authorId':_0x53cc55,'attributes':_0x3bdd54});for(const _0x22acd5 of _0x1d9035)this[_0x3866('0x45')](_0x243810,_0x4ece87,_0x53cc55,_0x22acd5,_0x3a1096['getMultiRangeId']());return _0x38dfe3;}[_0x3866('0x7e')](_0x36a7e9,_0x8024fc=null,_0x37f9a7={}){if(_0x36a7e9['isCollapsed'])return null;const _0x5bbdfd=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))['me'],_0x47197a=new _0x10ff46(_0x36a7e9['start'],_0x36a7e9[_0x3866('0x13')]);for(const {suggestion:_0x120a6f,meta:_0x4aabeb}of this[_0x3866('0x8f')](_0x47197a,_0x3866('0x53')))if(_0x4aabeb['isOwn']&&!_0x4aabeb[_0x3866('0x114')]){if(_0x120a6f[_0x3866('0xcb')]){const _0x47464c=_0x120a6f['getRanges']()[_0x3866('0xc8')](_0x5aa9b1=>_0x3866('0x93')!=_0x5aa9b1[_0x3866('0x131')][_0x3866('0xd9')]);_0x47464c[_0x3866('0x83')](_0x467473=>_0x47197a[_0x3866('0x2c')](_0x467473,!0x0))&&_0x120a6f[_0x3866('0xfe')]();if(_0x47464c['some'](_0x5e0bb3=>_0x5e0bb3['containsRange'](_0x47197a,!0x0))){const _0x1895bd=this[_0x3866('0x5')][_0x3866('0x123')](_0x3866('0x13a'),_0x8024fc,'accept');return this[_0x3866('0x30')](()=>_0x1895bd([_0x47197a],null,_0x37f9a7)),null;}}else{const _0x4fbca6=_0x47197a['getIntersection'](_0x120a6f[_0x3866('0x113')]());null!==_0x4fbca6&&_0x120a6f[_0x3866('0x42')]([_0x4fbca6],null,_0x37f9a7);}}if(_0x47197a[_0x3866('0x19')](),_0x47197a[_0x3866('0x6f')]||_0x3866('0x93')==_0x47197a[_0x3866('0x131')][_0x3866('0xd9')])return null;let _0x461953=null,_0x12df6d=_0x47197a[_0x3866('0xf9')],_0x410a52=_0x47197a['end'];for(const {suggestion:_0x8663,meta:_0x1c3e5e}of this[_0x3866('0x8f')](_0x47197a,'deletion'))if(_0x1c3e5e[_0x3866('0x9d')]){if(_0x8663[_0x3866('0xcb')]&&this['_mergeNestedSuggestions']){let _0x27f942=!0x0;for(const _0x67bed1 of _0x8663[_0x3866('0x59')]()){if(_0x67bed1[_0x3866('0x2c')](_0x47197a,!0x0))return _0x8663;_0x47197a['containsRange'](_0x67bed1)||(_0x27f942=!0x1);}_0x27f942&&_0x8663[_0x3866('0xfe')]();}else{const _0x2bee5b=_0x8663[_0x3866('0x113')]();if(_0x2bee5b[_0x3866('0x2c')](_0x47197a,!0x0)){if(!this[_0x3866('0x1d')]&&_0x1c3e5e['containsRangeInObject'])continue;return _0x8663;}_0x12df6d=_0x12df6d[_0x3866('0x137')](_0x2bee5b[_0x3866('0xf9')])?_0x12df6d:_0x2bee5b['start'],_0x410a52=_0x410a52[_0x3866('0x107')](_0x2bee5b['end'])?_0x410a52:_0x2bee5b[_0x3866('0x13')],_0x461953?_0x2bee5b[_0x3866('0xf9')]['isBefore'](_0x461953['getFirstRange']()[_0x3866('0xf9')])?(_0x461953[_0x3866('0x5f')](),_0x461953=_0x8663):_0x8663[_0x3866('0x5f')]():_0x461953=_0x8663;}}if(_0x461953)return this['_setSuggestionRange'](_0x461953,this[_0x3866('0xaf')][_0x3866('0x38')](_0x12df6d,_0x410a52)),_0x461953;{const _0x41386d=_0x2760d2(),_0x2168b8=this[_0x3866('0xaf')][_0x3866('0x38')](_0x12df6d,_0x410a52),_0x1be748=_0x5bbdfd['id'],_0x521470=_0x8024fc?_0x3866('0x14')+_0x8024fc:'deletion',_0x45a1c0=this['_setSuggestionData']({'id':_0x41386d,'type':_0x521470,'createdAt':new Date(),'authorId':_0x1be748,'attributes':_0x37f9a7});return this[_0x3866('0x45')](_0x521470,_0x41386d,_0x1be748,_0x2168b8),_0x45a1c0;}}[_0x3866('0x105')](_0x1d0e61,_0x2e3331=_0x3866('0x78'),_0x424af8={}){const _0x48d078=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'],_0x1beac2=_0x1d0e61[_0x3866('0xe7')](_0x186319=>new _0x10ff46(_0x186319[_0x3866('0xf9')],_0x186319[_0x3866('0x13')])),_0x2187d9=new Set();for(const _0x43f7b7 of _0x1beac2)for(const {suggestion:_0x13f305,meta:_0x5b3e1a}of this['_findSuggestions'](_0x43f7b7,'insertion'))_0x5b3e1a[_0x3866('0x9d')]&&!_0x5b3e1a[_0x3866('0x114')]&&_0x2187d9[_0x3866('0xaa')](_0x13f305);for(const _0x4189b9 of _0x2187d9)if(_0x4189b9[_0x3866('0xcb')]){const _0x1f462d=_0x4189b9[_0x3866('0x59')]();(!_0x4189b9['attributes']||!_0x4189b9[_0x3866('0x2f')][_0x3866('0x22')])&&(_0x1f462d['every'](_0x3da533=>_0x1beac2[_0x3866('0x73')](_0x5d5421=>_0x5d5421[_0x3866('0x2c')](_0x3da533,!0x0)))&&_0x4189b9[_0x3866('0xfe')]());if(_0x1beac2[_0x3866('0x83')](_0x9303d0=>_0x1f462d[_0x3866('0x73')](_0x3bf16c=>_0x3bf16c['containsRange'](_0x9303d0,!0x0)))){const _0x1bb95d=this['_suggestionFactory'][_0x3866('0x123')](_0x3866('0x13a'),_0x2e3331,'accept');return this['forceDefaultExecution'](()=>_0x1bb95d(_0x1d0e61,null,_0x424af8)),null;}}else{const _0xa78b3f=_0x4189b9['getFirstRange']();_0x1beac2[_0x3866('0x73')](_0x36966b=>_0x36966b[_0x3866('0x2c')](_0xa78b3f,!0x0))&&_0x4189b9[_0x3866('0xfe')]();if(_0x1beac2[_0x3866('0x83')](_0x2c187e=>_0xa78b3f['containsRange'](_0x2c187e,!0x0))){const _0x56ab9c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e3331,_0x3866('0x13c'));return this[_0x3866('0x30')](()=>_0x56ab9c(_0x1beac2,null,_0x424af8)),null;}}const _0x11d56d=this['_suggestionFactory']['getSuggestionCallback'](_0x3866('0x13a'),_0x2e3331,_0x3866('0x110'));let _0x40911c=null;for(const _0x4bf4b9 of this[_0x3866('0xbe')]())if(_0x4bf4b9['author']['id']==_0x48d078['id']&&_0x4bf4b9[_0x3866('0x10e')]&&_0x3866('0x13a')==_0x4bf4b9[_0x3866('0xdd')]&&_0x4bf4b9['subType']==_0x2e3331&&(_0x11d56d(_0x4bf4b9[_0x3866('0x59')](),_0x1beac2)||_0x11d56d(_0x1beac2,_0x4bf4b9[_0x3866('0x59')]()))){if(_0x40911c){if(_0x4bf4b9['commentThread']&&_0x4bf4b9['commentThread'][_0x3866('0xb8')])continue;for(const _0x103079 of _0x4bf4b9[_0x3866('0x59')]())_0x40911c[_0x3866('0x7')](_0x103079)||_0x40911c['addRange'](_0x103079);_0x4bf4b9[_0x3866('0x5f')]();}else{_0x40911c=_0x4bf4b9;for(const _0x1cce0d of _0x1beac2)_0x4bf4b9[_0x3866('0x7')](_0x1cce0d)||_0x4bf4b9['addRange'](_0x1cce0d);}}if(_0x40911c)return _0x40911c;_0x2187d9['clear']();for(const _0x3d3754 of _0x1beac2)for(const {suggestion:_0x39f255,meta:_0x5db502}of this[_0x3866('0x8f')](_0x3d3754,'deletion'))_0x5db502[_0x3866('0x9d')]&&_0x2187d9['add'](_0x39f255);for(const _0x350dd3 of _0x2187d9){const _0x41d808=_0x350dd3[_0x3866('0x59')]();if(!_0x424af8||!_0x424af8['skipNestingCheck']){if(_0x1beac2[_0x3866('0x83')](_0x58618a=>_0x41d808[_0x3866('0x73')](_0x461dc6=>_0x461dc6[_0x3866('0x2c')](_0x58618a,!0x0))))return _0x350dd3;}(!_0x350dd3[_0x3866('0x2f')]||!_0x350dd3['attributes'][_0x3866('0x22')])&&(_0x41d808[_0x3866('0x83')](_0x525685=>_0x1beac2['some'](_0x1276ef=>_0x1276ef[_0x3866('0x2c')](_0x525685,!0x0)))&&_0x350dd3[_0x3866('0xfe')]());}const _0x217d0e=_0x2760d2(),_0x53fc02=_0x48d078['id'],_0x58a325=_0x3866('0x14')+_0x2e3331,_0x6e3a88=this[_0x3866('0x76')]({'id':_0x217d0e,'type':_0x58a325,'createdAt':new Date(),'authorId':_0x53fc02,'attributes':_0x424af8});for(const _0x27e4ed of _0x1beac2)_0x27e4ed[_0x3866('0x19')](),_0x27e4ed['isCollapsed']||_0x3866('0x93')==_0x27e4ed['root'][_0x3866('0xd9')]||this[_0x3866('0x45')](_0x58a325,_0x217d0e,_0x53fc02,_0x27e4ed,_0x3a1096[_0x3866('0x132')]());return _0x6e3a88;}[_0x3866('0x95')](_0x311e8e,_0x14fe18){const _0x27c033=_0x311e8e[_0x3866('0x58')]();this[_0x3866('0xaf')][_0x3866('0x26')](_0x5a708a=>{_0x5a708a[_0x3866('0x133')](_0x27c033,{'range':_0x14fe18});});}['_addThreadToSuggestion'](_0xe66fac){const _0x11915a=_0xe66fac['id'],_0x141713=this[_0x3866('0xff')][_0x3866('0xf0')]['get'](_0x3866('0x7f'));this[_0x3866('0x29')]['hasCommentThread'](_0x11915a)||this[_0x3866('0x29')][_0x3866('0xc5')]({'channelId':_0x141713,'threadId':_0x11915a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x219406=this[_0x3866('0x29')]['getCommentThread'](_0x11915a);_0x219406[_0x3866('0xef')](_0x3866('0x4c')),_0x219406[_0x3866('0x4c')]=!0x1,_0xe66fac[_0x3866('0x11f')]=_0x219406;}[_0x3866('0x3a')](_0x55fe7e,_0x5987df,_0x353274,_0x95e254){if(_0x55fe7e[_0x3866('0xdd')]!=_0x5987df||_0x55fe7e[_0x3866('0x91')]!=_0x353274||_0x55fe7e[_0x3866('0xb4')]['id']!=_0x95e254)throw this[_0x3866('0xff')][_0x3866('0xa')](_0x3866('0x97')),new _0x217484(_0x3866('0x97'),this);}[_0x3866('0x88')](_0x12fb3a,_0x3bc910){const _0x29689=_0x12fb3a[_0x3866('0x113')]();if(_0x3bc910['isEqual'](_0x29689))_0x12fb3a['removeMarkers']();else{if(_0x29689[_0x3866('0x2c')](_0x3bc910)){const _0xc47b74=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910[_0x3866('0xf9')][_0x3866('0xe9')],'end');this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')][_0x3866('0x38')](_0x29689['start'],_0xc47b74));const _0x3af4ed=_0x2760d2(),_0xa614c4=_0x12fb3a[_0x3866('0xb4')]['id'],_0x1e2750=_0x12fb3a[_0x3866('0xdd')]+':'+_0x12fb3a[_0x3866('0x91')];this[_0x3866('0x76')]({'id':_0x3af4ed,'type':_0x1e2750,'createdAt':new Date(),'authorId':_0xa614c4,'data':_0x12fb3a['data'],'attributes':_0x12fb3a[_0x3866('0x2f')]});const _0x5db63b=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910[_0x3866('0x13')][_0x3866('0x81')],_0x3866('0xa0')),_0xaf2bd7=this[_0x3866('0xaf')][_0x3866('0x38')](_0x5db63b,_0x29689[_0x3866('0x13')]);this[_0x3866('0x45')](_0x1e2750,_0x3af4ed,_0xa614c4,_0xaf2bd7);}else{if(_0x29689['containsPosition'](_0x3bc910[_0x3866('0xf9')])){const _0xb4dbb3=this[_0x3866('0xaf')]['createPositionAt'](_0x3bc910[_0x3866('0xf9')]['nodeBefore'],_0x3866('0x13'));this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')][_0x3866('0x38')](_0x29689['start'],_0xb4dbb3));}else{const _0x510014=this[_0x3866('0xaf')][_0x3866('0xbb')](_0x3bc910['end'][_0x3866('0x81')],_0x3866('0xa0'));this[_0x3866('0x95')](_0x12fb3a,this[_0x3866('0xaf')]['createRange'](_0x510014,_0x29689[_0x3866('0x13')]));}}}}[_0x3866('0x35')](_0x366658){for(const {suggestion:_0x326991,meta:_0x2b644a}of this[_0x3866('0x8f')](_0x366658,_0x3866('0x53'))){if(!_0x2b644a[_0x3866('0x9d')])continue;const _0x49fe0f=_0x326991['getRanges']();for(const _0x1e4060 of _0x49fe0f)if(!_0x366658[_0x3866('0xbc')](_0x1e4060)[_0x3866('0xb8')])return!0x0;}return!0x1;}[_0x3866('0x135')](_0x4c13cb){const _0x19e73a=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b'))[_0x3866('0x55')](_0x4c13cb);if(!_0x19e73a)throw new _0x217484('track-changes-user-not-found',this);return _0x19e73a;}[_0x3866('0xd0')](_0x5206d9){const _0x55ae97=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0x1b')),_0x42a34c=_0x1e68fd('external:'+_0x5206d9),_0x538ee9=_0x55ae97[_0x3866('0x55')](_0x42a34c);return _0x538ee9||_0x55ae97[_0x3866('0xa9')]({'id':_0x42a34c,'name':_0x5206d9});}[_0x3866('0x9e')](_0x1dd371,_0x319e13,_0x23cea9,_0x34c027,_0x4bbf43){const _0x486769=this['_getAuthorFromId'](_0x34c027),_0x5743a1=this['_suggestionFactory'][_0x3866('0xbd')](_0x1dd371,_0x319e13,_0x23cea9,_0x486769,_0x4bbf43,_0x1838a4=>this[_0x3866('0x49')](_0x23cea9,{'attributes':_0x1838a4}));return this[_0x3866('0xcd')](_0x5743a1,_0x3866('0x13c'),()=>{this[_0x3866('0x49')](_0x23cea9,{'state':_0x3866('0x28')});},{'priority':_0x3866('0x79')}),this[_0x3866('0xcd')](_0x5743a1,_0x3866('0xfe'),()=>{this[_0x3866('0x49')](_0x23cea9,{'state':_0x3866('0xf1')});},{'priority':_0x3866('0x79')}),this[_0x3866('0xec')][_0x3866('0xf')](_0x23cea9,_0x5743a1),this[_0x3866('0x3b')]['set'](_0x5743a1,_0x3866('0x4f')),_0x5743a1;}[_0x3866('0xf4')](_0x46cd85){const _0x1c5c6c=_0x46cd85['split'](':');return{'group':_0x1c5c6c[0x0],'type':_0x1c5c6c[0x1],'subType':_0x1c5c6c[_0x3866('0xb8')]>=0x5?_0x1c5c6c[0x2]:null,'id':_0x1c5c6c['length']<0x5?_0x1c5c6c[0x2]:_0x1c5c6c[0x3],'authorId':_0x1c5c6c[_0x3866('0xb8')]<0x5?_0x1c5c6c[0x3]:_0x1c5c6c[0x4],'markerCount':0x6==_0x1c5c6c[_0x3866('0xb8')]?_0x1c5c6c[0x5]:null};}[_0x3866('0x72')](_0x5040d2,_0x95e0eb,_0x786d33){const _0x300495=_0x5040d2[_0x3866('0x113')](),_0x586bae=_0x300495[_0x3866('0xf9')],_0x27287b=_0x300495['end'];this[_0x3866('0x95')](_0x5040d2,this[_0x3866('0xaf')][_0x3866('0x38')](_0x586bae,_0x95e0eb));const _0x1ccab1=_0x2760d2(),_0x5800b4=_0x5040d2[_0x3866('0xb4')]['id'],_0x3de26d=_0x5040d2['type']+(_0x5040d2['subType']?':'+_0x5040d2[_0x3866('0x91')]:'');this['_setSuggestionData']({'id':_0x1ccab1,'type':_0x3de26d,'createdAt':new Date(),'authorId':_0x5800b4,'originalSuggestionId':_0x5040d2['id'],'attributes':_0x5040d2['attributes'],'data':_0x5040d2[_0x3866('0x25')]}),_0x3866('0xa4')==_0x5040d2[_0x3866('0xdd')]&&(_0x786d33=this['_model'][_0x3866('0x5a')](_0x786d33[_0x3866('0x81')])),this[_0x3866('0x45')](_0x3de26d,_0x1ccab1,_0x5800b4,this[_0x3866('0xaf')][_0x3866('0x38')](_0x786d33,_0x27287b));}[_0x3866('0x8f')](_0x25c858,_0x267776=null){const _0x4b23ab=[],_0x308e5f=this[_0x3866('0xaf')]['schema'],_0x44f57f=this[_0x3866('0xff')][_0x3866('0x6c')]['get'](_0x3866('0x1b'))['me'];for(const _0x31e87d of this['getSuggestions']())if(_0x31e87d[_0x3866('0x10e')]&&(!_0x267776||_0x31e87d[_0x3866('0xdd')]==_0x267776))for(const _0x58385d of _0x31e87d['getRanges']()){const _0x1be7c8=_0x25c858[_0x3866('0xf9')][_0x3866('0x10')](_0x58385d['end'])||_0x25c858[_0x3866('0x13')][_0x3866('0x10')](_0x58385d[_0x3866('0xf9')]);if(_0x1be7c8||_0x25c858['getIntersection'](_0x58385d)){const _0x48a615=_0x25c858[_0x3866('0x2c')](_0x58385d)&&Bt(_0x308e5f,_0x58385d[_0x3866('0xf9')],_0x25c858),_0x2b2904=_0x58385d[_0x3866('0x2c')](_0x25c858)&&Bt(_0x308e5f,_0x25c858[_0x3866('0xf9')],_0x58385d);_0x4b23ab[_0x3866('0xc7')]({'suggestion':_0x31e87d,'meta':{'isOwn':_0x44f57f==_0x31e87d[_0x3866('0xb2')],'isNextTo':_0x1be7c8,'isInsideObject':_0x48a615,'containsRangeInObject':_0x2b2904}});break;}}return _0x4b23ab;}[_0x3866('0x45')](_0x183d66,_0x252da0,_0x4c528c,_0x4802ce,_0x244e3a){this[_0x3866('0xaf')]['change'](_0xb0d787=>{let _0x4a0a1d='suggestion:'+_0x183d66+':'+_0x252da0+':'+_0x4c528c;_0x244e3a&&(_0x4a0a1d=_0x4a0a1d+':'+_0x244e3a),_0xb0d787[_0x3866('0xe1')](_0x4a0a1d,{'range':_0x4802ce,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3866('0x102')](_0x47325f){const _0x16aedf=_0x47325f[_0x3866('0x11a')],_0xed081f=_0x47325f['next'];_0x47325f['previous']=null,null!=_0x16aedf&&(_0x16aedf[_0x3866('0x101')]=null),_0x47325f['next']=null,null!=_0xed081f&&(_0xed081f[_0x3866('0x11a')]=null),_0x3866('0x33')==this[_0x3866('0x3b')][_0x3866('0x52')](_0x47325f)&&(this[_0x3866('0x3b')][_0x3866('0xf')](_0x47325f,_0x3866('0x136')),this['fire'](_0x3866('0x3c'),_0x47325f,_0x16aedf,_0xed081f));}[_0x3866('0x76')](_0x5f3b36){const _0x1a754c=_0x5f3b36['id'],_0x3ad758=this['addSuggestionData'](_0x5f3b36);if(this[_0x3866('0x1c')]&&this[_0x3866('0x1c')][_0x3866('0xc')]){const _0x18907b=this[_0x3866('0xff')][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0xce')),_0x46922a=_0x3ad758[_0x3866('0x112')],_0x42beda=_0x3ad758['subType']?_0x3ad758['type']+':'+_0x3ad758[_0x3866('0x91')]:_0x3ad758[_0x3866('0xdd')],_0x2d4191=this[_0x3866('0xff')]['locale'],_0x53c98e=_0x18907b['add'](_0x2cae61(_0x2d4191,_0x3866('0x12d'))),_0x1f41cf={'id':_0x1a754c,'type':_0x42beda,'hasComments':_0x46922a,'data':_0x5f3b36['data']||null,'originalSuggestionId':_0x5f3b36[_0x3866('0x8d')]||null,'attributes':_0x3ad758['attributes']};this['_adapter'][_0x3866('0xc')](_0x1f41cf)[_0x3866('0xca')](_0x1d6961=>{_0x3ad758[_0x3866('0xe4')]=!0x0,_0x18907b[_0x3866('0x109')](_0x53c98e),_0x1d6961&&_0x1d6961['createdAt']&&(this[_0x3866('0xec')][_0x3866('0x52')](_0x1a754c)['createdAt']=_0x1d6961[_0x3866('0x106')]);})[_0x3866('0x0')](_0x15ad46=>{throw _0x394639(_0x3866('0x2d')),this[_0x3866('0xff')][_0x3866('0x66')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ad758[_0x3866('0xfe')]();}),_0x3ad758[_0x3866('0x80')](),this[_0x3866('0xec')][_0x3866('0x116')](_0x3ad758['id']),this['_suggestionState'][_0x3866('0x116')](_0x3ad758),_0x15ad46;});}return _0x3ad758;}[_0x3866('0x49')](_0x108f56,_0x119373){const _0x32d8be=this['editor'][_0x3866('0x6c')][_0x3866('0x52')](_0x3866('0xce')),_0x2f0743=this[_0x3866('0xac')](_0x108f56);if(this[_0x3866('0x1c')]&&this[_0x3866('0x1c')]['updateSuggestion']){if(_0x2f0743['_saved']){const _0x28761b=_0x32d8be[_0x3866('0xaa')](_0x2cae61(this[_0x3866('0xff')]['locale'],_0x3866('0x12d')));this[_0x3866('0x1c')][_0x3866('0x50')](_0x108f56,_0x119373)[_0x3866('0xca')](()=>{_0x32d8be[_0x3866('0x109')](_0x28761b);});}else _0x2f0743['on'](_0x3866('0x39'),()=>{this[_0x3866('0x49')](_0x108f56,_0x119373);});}}[_0x3866('0x104')](_0x381e86){if(!this[_0x3866('0x1c')]||!this['_adapter'][_0x3866('0xac')])throw new _0x217484('track-changes-adapter-missing-getsuggestion',this);return this[_0x3866('0x1c')]['getSuggestion'](_0x381e86);}[_0x3866('0xa7')](_0x86e3f2){const {id:_0xf4bfd,type:_0xb3ab14,subType:_0x1e3bf0,authorId:_0x2a0153}=this['_splitMarkerName'](_0x86e3f2),_0x1d62a2=this[_0x3866('0xec')][_0x3866('0x52')](_0xf4bfd)||this[_0x3866('0x9e')](_0xb3ab14,_0x1e3bf0,_0xf4bfd,_0x2a0153,{});switch(this['_checkSuggestionCorrectness'](_0x1d62a2,_0xb3ab14,_0x1e3bf0,_0x2a0153),this[_0x3866('0x3b')][_0x3866('0x52')](_0x1d62a2)){case _0x3866('0x4f'):this[_0x3866('0x104')](_0xf4bfd)['then'](_0x38333b=>{let _0x5f64b0=Promise['resolve']();_0x38333b[_0x3866('0x112')]&&(_0x5f64b0=this[_0x3866('0x29')][_0x3866('0x10f')]({'channelId':this[_0x3866('0xff')]['config'][_0x3866('0x52')](_0x3866('0x7f')),'threadId':_0xf4bfd})),_0x5f64b0['then'](()=>{this[_0x3866('0x10a')](_0x38333b)['_saved']=!0x0;});}),this[_0x3866('0x3b')][_0x3866('0xf')](_0x1d62a2,_0x3866('0x4d'));break;case _0x3866('0x136'):this[_0x3866('0x49')](_0xf4bfd,{'state':_0x3866('0xb7')});case _0x3866('0x8b'):this[_0x3866('0x3b')][_0x3866('0xf')](_0x1d62a2,_0x3866('0x33')),this['fire'](_0x3866('0x69'),_0x1d62a2);break;case _0x3866('0x33'):this[_0x3866('0x32')](_0x3866('0xc3'),_0x1d62a2);}return _0x1d62a2[_0x3866('0x10c')](_0x86e3f2),_0x1d62a2;}[_0x3866('0x15')](_0x3f21eb){const _0x677205=Array[_0x3866('0x64')](_0x3f21eb)[_0x3866('0xc8')](_0x2aaa2d=>!_0x2aaa2d[_0x3866('0xcb')]),_0x209cdd=this[_0x3866('0xbe')]({'skipNotAttached':!0x0})[_0x3866('0xc8')](_0x169932=>!_0x169932[_0x3866('0xcb')]),_0x4a568f=_0x209cdd[_0x3866('0xc8')](_0x2fc81e=>!_0x3f21eb['has'](_0x2fc81e)),_0x4c282d=new Map(_0x209cdd[_0x3866('0xe7')](_0x52f989=>[_0x52f989,this['_suggestionFactory']['getSuggestionCallback'](_0x52f989[_0x3866('0xdd')],_0x52f989[_0x3866('0x91')],_0x3866('0xb'))])),_0x1b6930=new Map(_0x209cdd[_0x3866('0xe7')](_0x10d61c=>[_0x10d61c,_0x10d61c[_0x3866('0x113')]()])),_0x5c33a4=new Set(),_0x234d7e=new Set();for(let _0xc56daa=0x0;_0xc56daa<_0x677205['length'];_0xc56daa++)_0x8b0cb5(_0x677205[_0xc56daa],_0x677205,_0xc56daa+0x1);for(let _0x4e3a6d=0x0;_0x4e3a6d<_0x677205['length'];_0x4e3a6d++)_0x8b0cb5(_0x677205[_0x4e3a6d],_0x4a568f,0x0);for(let _0x5a1fb4=0x0;_0x5a1fb4<_0x677205[_0x3866('0xb8')];_0x5a1fb4++){const _0x1cd5bc=_0x677205[_0x5a1fb4];!_0x234d7e[_0x3866('0x43')](_0x1cd5bc)&&_0x1cd5bc['previous']&&(_0x1cd5bc[_0x3866('0x11a')]['next']===_0x1cd5bc&&(_0x1cd5bc[_0x3866('0x11a')][_0x3866('0x101')]=null),_0x1cd5bc[_0x3866('0x11a')]=null),!_0x5c33a4[_0x3866('0x43')](_0x1cd5bc)&&_0x1cd5bc[_0x3866('0x101')]&&(_0x1cd5bc[_0x3866('0x101')][_0x3866('0x11a')]===_0x1cd5bc&&(_0x1cd5bc[_0x3866('0x101')]['previous']=null),_0x1cd5bc[_0x3866('0x101')]=null);}function _0x8b0cb5(_0x4a17c2,_0x5396d7,_0x483a5c){for(let _0x2efef0=_0x483a5c;_0x2efef0<_0x5396d7[_0x3866('0xb8')];_0x2efef0++){const _0x5e5850=_0x15abbf(_0x4a17c2,_0x5396d7[_0x2efef0]);_0x5e5850&&(_0x5e5850[0x0][_0x3866('0x101')]=_0x5e5850[0x1],_0x5e5850[0x1]['previous']=_0x5e5850[0x0],_0x5c33a4[_0x3866('0xaa')](_0x5e5850[0x0]),_0x234d7e[_0x3866('0xaa')](_0x5e5850[0x1]));}}function _0x15abbf(_0x549271,_0x59a554){if(_0x549271[_0x3866('0xb2')]['id']!==_0x59a554[_0x3866('0xb2')]['id'])return null;const _0x57a1b5=_0x4c282d[_0x3866('0x52')](_0x549271)(_0x549271,_0x59a554,_0x1b6930[_0x3866('0x52')](_0x549271),_0x1b6930[_0x3866('0x52')](_0x59a554));if(!_0x57a1b5)return null;return _0x4c282d[_0x3866('0x52')](_0x59a554)(_0x549271,_0x59a554,_0x1b6930[_0x3866('0x52')](_0x549271),_0x1b6930[_0x3866('0x52')](_0x59a554))?_0x57a1b5[0x1]['commentThread']&&_0x57a1b5[0x1][_0x3866('0x11f')][_0x3866('0xb8')]?null:_0x57a1b5:null;}}[_0x3866('0xba')](_0xa464a5){const _0x530976=Array[_0x3866('0x64')](_0xa464a5),_0x2f9dc1=this[_0x3866('0xbe')]({'skipNotAttached':!0x0}),_0x53a818=_0x2f9dc1[_0x3866('0xc8')](_0x22f2c8=>!_0xa464a5[_0x3866('0x43')](_0x22f2c8)),_0x207d1e=new Map(_0x530976[_0x3866('0xe7')](_0x4238c1=>[_0x4238c1,this[_0x3866('0x5')][_0x3866('0x123')](_0x4238c1['type'],_0x4238c1[_0x3866('0x91')],_0x3866('0x110'))])),_0x2b91c3=new Map(_0x2f9dc1['map'](_0x1ed31b=>[_0x1ed31b,_0x1ed31b[_0x3866('0x59')]()]));for(let _0x3362ed=0x0;_0x3362ed<_0x530976['length'];_0x3362ed++){if(_0x4345f7(this,_0x530976[_0x3362ed],_0x530976,_0x3362ed+0x1))return!0x0;}for(let _0x38c322=0x0;_0x38c322<_0x530976[_0x3866('0xb8')];_0x38c322++){if(_0x4345f7(this,_0x530976[_0x38c322],_0x53a818,0x0))return!0x0;}return!0x1;function _0x4345f7(_0x1b4d45,_0xb8d64b,_0x3e191d,_0x388a4a){for(let _0x38d609=_0x388a4a;_0x38d609<_0x3e191d['length'];_0x38d609++){const _0x954df9=_0x3e191d[_0x38d609];if(_0x954df9['type']!==_0xb8d64b[_0x3866('0xdd')]||_0x954df9[_0x3866('0xb2')]['id']!==_0xb8d64b[_0x3866('0xb2')]['id']||_0x954df9['subType']!==_0xb8d64b[_0x3866('0x91')])continue;const _0x1d6db5=_0x207d1e[_0x3866('0x52')](_0xb8d64b),_0x319fba=_0x2b91c3[_0x3866('0x52')](_0xb8d64b),_0x49000e=_0x2b91c3['get'](_0x954df9),_0x50da2a=_0xb8d64b[_0x3866('0x11f')]&&_0xb8d64b[_0x3866('0x11f')]['length'],_0x45938f=_0x954df9[_0x3866('0x11f')]&&_0x954df9['commentThread'][_0x3866('0xb8')];if(!_0x50da2a&&_0x1d6db5(_0x49000e,_0x319fba))return _0x1b4d45[_0x3866('0x8e')](_0x954df9,_0xb8d64b),_0x2b91c3[_0x3866('0x116')](_0xb8d64b),!0x0;if(!_0x45938f&&_0x1d6db5(_0x319fba,_0x49000e))return _0x1b4d45[_0x3866('0x8e')](_0xb8d64b,_0x954df9),_0x2b91c3['delete'](_0x954df9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1e28ad,_0x396e48){if(_0x1e28ad['isMultiRange'])for(const _0x594129 of _0x396e48[_0x3866('0x59')]())_0x1e28ad[_0x3866('0x4')](_0x594129);else{const _0x81e22c=_0x396e48[_0x3866('0x113')]()[_0x3866('0x13')];this[_0x3866('0x95')](_0x1e28ad,this[_0x3866('0xaf')]['createRange'](_0x1e28ad[_0x3866('0x113')]()[_0x3866('0xf9')],_0x81e22c));}_0x396e48[_0x3866('0x5f')]();}}class Dt{constructor(_0x3737b6){this[_0x3866('0x63')]=_0x3737b6,this['_model']=_0x3737b6[_0x3866('0x66')],this[_0x3866('0x1f')]=new Map(),this[_0x3866('0x12a')]=new Map(),this[_0x3866('0x12f')]();}['buildSuggestion'](_0x2ede17,_0x4437dc,_0xf9a5e4,_0x4bbf45,_0x1fc8ac,_0x1ad65a){return new _0x3a1096(this[_0x3866('0xaf')],{'type':_0x2ede17,'subType':_0x4437dc,'id':_0xf9a5e4,'author':_0x4bbf45,'creator':_0x4bbf45,'attributes':_0x1fc8ac,'onAttributesChange':_0x1ad65a,'onAccept':(..._0x2e3401)=>this[_0x3866('0x123')](_0x2ede17,_0x4437dc,'accept')(..._0x2e3401),'onDiscard':(..._0x164608)=>this[_0x3866('0x123')](_0x2ede17,_0x4437dc,_0x3866('0xfe'))(..._0x164608)});}[_0x3866('0xb1')](_0x4b31e8,_0x172af1,_0x3de91d,_0x1ddbb8){const _0x3c3349=_0x4b31e8+':'+_0x172af1+':'+_0x3de91d;this[_0x3866('0x1f')]['set'](_0x3c3349,_0x1ddbb8);}[_0x3866('0x123')](_0x375c66,_0xde4df9,_0x197ae2){const _0x40a070=_0x375c66+':'+_0xde4df9+':'+_0x197ae2;return this[_0x3866('0x1f')][_0x3866('0x52')](_0x40a070)||this[_0x3866('0x12a')]['get'](_0x375c66+':'+_0x197ae2);}[_0x3866('0x12f')](){const _0x4ff2e0=()=>{},_0x341a60=_0x36ace3=>{_0x36ace3[_0x3866('0x34')]((_0x1b8c45,_0x3e440e)=>_0x1b8c45['start'][_0x3866('0x137')](_0x3e440e[_0x3866('0xf9')])?0x1:-0x1),this[_0x3866('0xaf')][_0x3866('0x26')](_0x9bf9c8=>{for(const _0x2cf6eb of _0x36ace3){let _0x459375;_0x459375=_0x2cf6eb['end'][_0x3866('0x40')]&&_0x2cf6eb['end'][_0x3866('0x81')]==_0x2cf6eb[_0x3866('0xf9')]['nodeAfter']?_0x9bf9c8[_0x3866('0x54')](_0x2cf6eb['start'][_0x3866('0x11e')],'on'):_0x9bf9c8[_0x3866('0x54')](_0x2cf6eb),this['_model'][_0x3866('0x9b')](_0x459375,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf44714=(_0x20ebb8,_0xb7ef6d)=>{this['_model'][_0x3866('0x26')](_0x375efd=>{const {commandName:_0x449393,commandParams:_0x813899=[]}=_0xb7ef6d,_0x56e621=_0x20ebb8[_0x3866('0xe7')](_0x53e127=>(_t(_0x53e127)&&(_0x53e127=this['_model'][_0x3866('0x38')](_0x53e127[_0x3866('0x13')])),_0x53e127))['filter'](_0xc9c5b9=>_0x3866('0x93')!==_0xc9c5b9[_0x3866('0x131')][_0x3866('0xd9')]);if(_0x56e621[_0x3866('0xb8')]<0x1)return;const _0x48316f=Array['from'](this[_0x3866('0xaf')][_0x3866('0x5e')][_0x3866('0x6e')][_0x3866('0x59')]())[_0x3866('0xe7')](_0x449363=>_0x10ff46[_0x3866('0x11')](_0x449363));_0x375efd[_0x3866('0xc0')](_0x56e621);for(const _0x55214a of this['_editor'][_0x3866('0xde')][_0x3866('0xde')]())_0x55214a[_0x3866('0x117')]();_0x813899[_0x3866('0xc7')]({'forceDefaultExecution':!0x0}),this[_0x3866('0x63')]['execute'](_0x449393,..._0x813899);const _0x396a07=_0x48316f[_0x3866('0xc8')](_0x5802b9=>'$graveyard'!=_0x5802b9['root'][_0x3866('0xd9')]);_0x396a07[_0x3866('0xb8')]>0x0&&_0x375efd[_0x3866('0xc0')](_0x396a07);for(const _0x3067bb of _0x48316f)_0x3067bb[_0x3866('0x19')]();});},_0x4d4394=(_0x1957b6,_0x326bf5)=>0x1==_0x1957b6[_0x3866('0xb8')]&&0x1==_0x326bf5[_0x3866('0xb8')]&&_0x1957b6[0x0]['end'][_0x3866('0x10')](_0x326bf5[0x0]['start']),_0x149a21=(_0x51d72b,_0x2fb1c5,_0x12fddd,_0x53d578)=>xt(_0x51d72b,_0x2fb1c5,_0x12fddd,_0x53d578,this['_model'])?[_0x51d72b,_0x2fb1c5]:xt(_0x2fb1c5,_0x51d72b,_0x53d578,_0x12fddd,this['_model'])?[_0x2fb1c5,_0x51d72b]:null;this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x1e'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')]('insertion:discard',_0x341a60),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xf2'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xa2'),_0x149a21),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x6a'),_0x341a60),this[_0x3866('0x12a')][_0x3866('0xf')]('deletion:discard',_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x8a'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')]('deletion:chain',_0x149a21),this[_0x3866('0x12a')][_0x3866('0xf')]('formatInline:accept',_0xf44714),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x1'),_0x4ff2e0),this['_defaultCallbacks'][_0x3866('0xf')](_0x3866('0x98'),_0x4d4394),this[_0x3866('0x12a')]['set'](_0x3866('0x74'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x4e'),_0xf44714),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xfb'),_0x4ff2e0),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0x5c'),_0x4d4394),this[_0x3866('0x12a')][_0x3866('0xf')](_0x3866('0xfa'),_0x4ff2e0);}}function Bt(_0x519764,_0x174380,_0x51785e){for(const _0x481bda of _0x174380['parent'][_0x3866('0x7a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x481bda[_0x3866('0x131')]==_0x481bda)return!0x1;if(!_0x51785e[_0x3866('0xd7')](_0x481bda))return!0x1;if(_0x519764[_0x3866('0xe2')](_0x481bda)||_0x519764[_0x3866('0xdf')](_0x481bda))return!0x0;}return!0x1;}function _t(_0x2175aa){return _0x2175aa[_0x3866('0x13')][_0x3866('0x81')]==_0x2175aa[_0x3866('0xf9')][_0x3866('0x11e')]&&_0x2175aa['end'][_0x3866('0x103')];}function Mt(_0x2cf431,_0x57ede7,_0x3bd6bc,_0x43eead){const _0x3fe766=_0x2d44ac=>!_0x2d44ac[_0x3866('0x3')]['is'](_0x3866('0xd4'))&&!_0x43eead[_0x3866('0xe2')](_0x2d44ac[_0x3866('0x3')]),_0x4317b6=_0x2cf431[_0x3866('0xf9')][_0x3866('0x46')](_0x3fe766),_0x3bd2ba=_0x2cf431[_0x3866('0x13')][_0x3866('0x46')](_0x3fe766,{'direction':_0x3866('0x62')});return(!_0x2cf431[_0x3866('0xf9')][_0x3866('0x10')](_0x4317b6)||!_0x2cf431[_0x3866('0x13')][_0x3866('0x10')](_0x3bd2ba))&&(_0x4317b6[_0x3866('0x137')](_0x3bd2ba)?_0x3bd6bc[_0x3866('0x133')](_0x57ede7,{'range':_0x3bd6bc[_0x3866('0x38')](_0x4317b6,_0x3bd2ba)}):_0x3bd6bc[_0x3866('0x2b')](_0x57ede7),!0x0);}function $t(_0x412b4d){return _0x1e68fd(_0x412b4d);}function Nt(_0x5e55d9){const _0x504491=_0x5e55d9['start'][_0x3866('0x11e')];return _0x504491&&_0x504491['is']('element');}function Rt(_0x16ff98,_0x4bf606){const _0x2e0424=_0x4bf606[_0x3866('0xa3')][_0x3866('0xe2')](_0x16ff98)||_0x4bf606['schema']['isSelectable'](_0x16ff98);return _0x4bf606[_0x3866('0x38')](_0x4bf606[_0x3866('0xbb')](_0x16ff98,'before'),_0x2e0424?_0x4bf606[_0x3866('0x57')](_0x16ff98):_0x4bf606['createPositionAt'](_0x16ff98,_0x3866('0x13')));}function xt(_0x3d53a5,_0x4e6b3d,_0x3ebae0,_0x30db8d,_0x181bc3){if(_0x3ebae0[_0x3866('0x13')]['isEqual'](_0x30db8d[_0x3866('0xf9')]))return!0x0;if(_0x3d53a5[_0x3866('0xdd')]!=_0x4e6b3d[_0x3866('0xdd')])return!0x1;if(!_0x3ebae0[_0x3866('0x13')][_0x3866('0x56')](_0x30db8d['start']))return!0x1;const _0x3c2222=_0x181bc3[_0x3866('0x38')](_0x3ebae0[_0x3866('0x13')],_0x30db8d['start'])['getWalker']();for(const _0x175850 of _0x3c2222)if(['elementStart',_0x3866('0x9a')][_0x3866('0xf7')](_0x175850[_0x3866('0xdd')])&&_0x181bc3[_0x3866('0xa3')][_0x3866('0xdf')](_0x175850[_0x3866('0x3')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3fd0=['getMarkers','stopListening','getMarkerNames','discardAllSuggestions','_updateController','CommentView','change:previous','getFirstRange','trackChanges.SuggestionThreadView','buttonView','filter','delete','mainView','_initializeController','discardButton','_suggestionToController','keys','discardSelectedSuggestions','plugins','Accept\x20all\x20selected\x20suggestions','length','createCommentThreadController','some','arrowView','button','model','Accept\x20all\x20suggestions','add','_descriptionFactory','comments.maxCommentsWhenCollapsed','isDirty','activeAnnotations','pluginName','innerView','actionView','_refreshActiveMarkers','change:activeAnnotations','acceptAllSuggestions','destroy','map','clear','_createUIButton','init','suggestion-','lowest','_viewToController','isEnabled','previous','view','getByInnerView','unbind','config','isOn','_handleControllerBuffer','separator','source','getJoined','from','_disableComments','SuggestionThreadView','_annotationViews','commandName','acceptButton','Track\x20changes','get','comments','value','toMany','TrackChangesUI','suggestionLoaded','getDescriptions','trackChanges','suggestionChanged','editing','head','commentThread','comments.maxThreadTotalWeight','locale','focus','commands','getAllAdjacentSuggestions','suggestionUnloaded','type','bind','_handleSuggestionControllerDelayed','activeMarkers','componentFactory','listenTo','editor','set','isInContent','descriptionParts','Discard\x20all\x20suggestions','remove','EditorAnnotations','push','_destroyController','Annotations','comments.maxCommentCharsWhenCollapsed','has','size','execute','TrackChangesEditing','createAnnotation'];(function(_0x1f0caa,_0x3fd03d){const _0x3f32e1=function(_0xb7b217){while(--_0xb7b217){_0x1f0caa['push'](_0x1f0caa['shift']());}};_0x3f32e1(++_0x3fd03d);}(_0x3fd0,0xe6));const _0x3f32=function(_0x1f0caa,_0x3fd03d){_0x1f0caa=_0x1f0caa-0x0;let _0x3f32e1=_0x3fd0[_0x1f0caa];return _0x3f32e1;};import{Plugin as _0x4c46c1}from'ckeditor5/src/core';import{Collection as _0xa93931}from'ckeditor5/src/utils';import{Model as _0x28a0ed,SplitButtonView as _0x4fba7f,createDropdown as _0x201c4d,addListToDropdown as _0x254a26}from'ckeditor5/src/ui';import{Users as _0x985b26,getDateTimeFormatter as _0x3ca02a,getAllMarkersDomElementsSorted as _0x4fdfcd}from'ckeditor5-collaboration/src/collaboration-core';import _0x17ee29 from'./trackchangesediting';import _0xbc8ca4 from'./ui/suggestioncontroller';import _0x2a4090 from'./ui/view/suggestionthreadview';import{getTranslation as _0x2cff71}from'./utils/common-translations';import _0x1699fb from'../theme/icons/track-changes.svg';export default class d extends _0x4c46c1{static get['requires'](){return[_0x17ee29,_0x985b26,'CommentsRepository',_0x3f32('0x4b'),_0x3f32('0x48')];}static get[_0x3f32('0xa')](){return _0x3f32('0x2e');}constructor(_0x3eb8de){super(_0x3eb8de),this[_0x3f32('0x61')]=new Map(),this[_0x3f32('0x17')]=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x91f942=this[_0x3f32('0x42')][_0x3f32('0x1d')];_0x91f942['define'](_0x3f32('0x5a'),_0x2a4090),_0x91f942['define']('trackChanges.disableComments',!0x1),this[_0x3f32('0x24')]=_0x91f942['get']('trackChanges.disableComments');}[_0x3f32('0x3e')](_0xe1e8ea,_0x464686){0x0===this[_0x3f32('0x1f')][_0x3f32('0x4e')]&&setTimeout(()=>{for(const [_0x1a479a,_0x1c2171]of this[_0x3f32('0x1f')]){const _0x38f6f1=this[_0x3f32('0x61')][_0x3f32('0x4d')](_0x1a479a);_0x38f6f1||_0x1c2171?_0x38f6f1&&_0x1c2171&&this['_destroyController'](_0x1a479a):this[_0x3f32('0x5f')](_0x1a479a);}this[_0x3f32('0x42')][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x48'))['refreshSelectedViews'](),this[_0x3f32('0xd')](),this['_handleControllerBuffer'][_0x3f32('0x12')]();},0xa),this['_handleControllerBuffer'][_0x3f32('0x43')](_0xe1e8ea,_0x464686);}[_0x3f32('0x14')](){const _0x2dfd3e=this['editor'],_0x99c9fc=_0x2dfd3e[_0x3f32('0x64')]['get']('TrackChangesEditing'),_0x1a6ebf=_0x2dfd3e[_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x4b')),_0x36d56f=_0x2dfd3e[_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x48')),_0x5efcc2=_0x2dfd3e[_0x3f32('0x64')]['get']('CommentsRepository');_0x2dfd3e['ui'][_0x3f32('0x40')]['add'](_0x3f32('0x31'),_0x37eef6=>this[_0x3f32('0x13')](_0x37eef6)),_0x36d56f['addSourceCollector'](()=>{const _0x59dedc=[];for(const [_0x9bb46a,_0x5c0604]of Array['from'](this[_0x3f32('0x61')])){const _0xfd4d57=_0x9bb46a['getAllAdjacentSuggestions'](),_0x127163=[];for(const _0x29a0e9 of _0xfd4d57){if(!_0x29a0e9[_0x3f32('0x44')])continue;if(_0x29a0e9['isMultiRange']){_0x127163['push'](..._0x29a0e9['getRanges']());continue;}const _0x424051=_0x29a0e9[_0x3f32('0x59')]();if(_0x127163['length']>0x0){const _0x2a6901=_0x127163[0x0][_0x3f32('0x22')](_0x424051);if(_0x2a6901){_0x127163[0x0]=_0x2a6901;continue;}}_0x127163['push'](_0x424051);}_0x59dedc['push']([_0x5c0604[_0x3f32('0x1a')],_0x127163]);}return _0x59dedc;}),this[_0x3f32('0x41')](_0x99c9fc,_0x3f32('0x2f'),(_0x43b861,_0x496597)=>{this[_0x3f32('0x41')](_0x496597,_0x3f32('0x58'),(_0x18a489,_0x42085e,_0x1ed024,_0x264fac)=>{_0x496597[_0x3f32('0x44')]&&(null==_0x1ed024?(this[_0x3f32('0x56')](_0x264fac[_0x3f32('0x34')]),this[_0x3f32('0x3e')](_0x496597,!0x1)):(this[_0x3f32('0x56')](_0x1ed024[_0x3f32('0x34')]),this[_0x3f32('0x3e')](_0x496597,!0x0)));}),null===_0x496597[_0x3f32('0x19')]?this[_0x3f32('0x3e')](_0x496597,!0x1):this[_0x3f32('0x56')](_0x496597[_0x3f32('0x34')]);}),this[_0x3f32('0x41')](_0x99c9fc,_0x3f32('0x3b'),(_0x113eb5,_0x4d9f57,_0x4a3dce)=>{this[_0x3f32('0x53')](_0x4d9f57,'change:previous'),this[_0x3f32('0x1f')][_0x3f32('0x5d')](_0x4d9f57);const _0x388860=_0x4a3dce?_0x4a3dce['head']:_0x4d9f57,_0x1486c4=this['_suggestionToController'][_0x3f32('0x2a')](_0x388860);null!==_0x4a3dce&&this[_0x3f32('0x56')](_0x388860),null===_0x4a3dce&&_0x1486c4&&this[_0x3f32('0x4a')](_0x4d9f57);}),this['listenTo'](_0x99c9fc,_0x3f32('0x32'),(_0x119f3b,_0xee215f)=>{this[_0x3f32('0x56')](_0xee215f);}),this[_0x3f32('0x41')](_0x1a6ebf,_0x3f32('0xe'),()=>{this[_0x3f32('0xd')]();}),this['listenTo'](_0x5efcc2,'addComment',(_0x5c7c84,{threadId:_0x532082,isFromAdapter:_0x5ad6d9})=>{if(_0x5ad6d9||!_0x99c9fc['hasSuggestion'](_0x532082))return;const _0x51cf7d=_0x99c9fc['getSuggestion'](_0x532082);this[_0x3f32('0x61')][_0x3f32('0x2a')](_0x51cf7d)[_0x3f32('0x1a')][_0x3f32('0x38')]();},{'priority':_0x3f32('0x16')});}[_0x3f32('0xd')](){const _0xefbcaf=this[_0x3f32('0x42')]['plugins'][_0x3f32('0x2a')](_0x3f32('0x4b')),_0x45c07a=this['editor'][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x50')),_0x333641=Array[_0x3f32('0x23')](_0xefbcaf[_0x3f32('0x9')],_0x3ad02f=>_0x3ad02f[_0x3f32('0xb')])[_0x3f32('0x5c')](_0x168357=>this['_viewToController']['has'](_0x168357)),_0x3790d0=[];for(const _0x163923 of _0x333641){const _0x6451b8=this[_0x3f32('0x17')][_0x3f32('0x2a')](_0x163923)['model'][_0x3f32('0x3a')]();_0x3790d0[_0x3f32('0x49')](..._0x6451b8['reduce']((_0x350b88,_0x430f08)=>[..._0x350b88,..._0x430f08[_0x3f32('0x54')]()],[]));}_0x45c07a[_0x3f32('0x3f')]=_0x3790d0;}[_0x3f32('0x13')](_0xc5ab1e){const _0x5153c2=_0x201c4d(_0xc5ab1e,_0x4fba7f),_0x5e3dc4=this[_0x3f32('0x42')][_0x3f32('0x39')][_0x3f32('0x2a')](_0x3f32('0x31')),_0x20e56b=_0x2cff71(_0xc5ab1e,_0x3f32('0x29'));_0x5153c2['buttonView'][_0x3f32('0x43')]({'tooltip':_0x20e56b,'label':_0x20e56b,'icon':_0x1699fb}),_0x5153c2[_0x3f32('0x5b')]['bind'](_0x3f32('0x1e'))['to'](_0x5e3dc4,_0x3f32('0x2c')),_0x5153c2[_0x3f32('0x5b')]['on'](_0x3f32('0x4f'),()=>{_0x5e3dc4[_0x3f32('0x4f')](),this[_0x3f32('0x42')][_0x3f32('0x33')][_0x3f32('0x1a')][_0x3f32('0x38')]();});const _0x3806ae=new _0xa93931(),_0x37d9cd=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x20e56b,'commandName':_0x3f32('0x31')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,_0x3f32('0x4')),'commandName':_0x3f32('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,_0x3f32('0x65')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,_0x3f32('0x46')),'commandName':_0x3f32('0x55')}},{'type':_0x3f32('0x2'),'model':{'withText':!0x0,'label':_0x2cff71(_0xc5ab1e,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3f32('0x63')}}];for(const _0x5030ab of _0x37d9cd){let _0x4d702e={'type':_0x3f32('0x20')};if(_0x5030ab['model']){const _0x32db07=new _0x28a0ed(_0x5030ab[_0x3f32('0x3')]),_0x176b1f=this[_0x3f32('0x42')][_0x3f32('0x39')]['get'](_0x32db07[_0x3f32('0x27')]);_0x32db07[_0x3f32('0x3d')]('isOn',_0x3f32('0x18'))['to'](_0x176b1f,_0x3f32('0x2c'),_0x3f32('0x18')),_0x4d702e={'type':_0x5030ab[_0x3f32('0x3c')],'model':_0x32db07};}_0x3806ae[_0x3f32('0x5')](_0x4d702e);}_0x254a26(_0x5153c2,_0x3806ae);const _0x46af18=_0x37d9cd[_0x3f32('0x5c')](_0x14a97d=>null!=_0x14a97d[_0x3f32('0x3')])[_0x3f32('0x11')](_0x3dfa70=>this[_0x3f32('0x42')][_0x3f32('0x39')][_0x3f32('0x2a')](_0x3dfa70[_0x3f32('0x3')][_0x3f32('0x27')])),_0x5dfc2c=_0x5153c2[_0x3f32('0x5b')];return _0x5dfc2c[_0x3f32('0xc')][_0x3f32('0x1c')](_0x3f32('0x18')),_0x5dfc2c[_0x3f32('0x1')][_0x3f32('0x1c')](_0x3f32('0x18')),_0x5dfc2c[_0x3f32('0xc')][_0x3f32('0x3d')](_0x3f32('0x18'))['to'](_0x5e3dc4,_0x3f32('0x18')),_0x5dfc2c[_0x3f32('0x1')][_0x3f32('0x3d')](_0x3f32('0x18'))[_0x3f32('0x2d')](_0x46af18,_0x3f32('0x18'),(..._0x411fb5)=>_0x411fb5[_0x3f32('0x0')](_0x119b18=>_0x119b18)),_0x5153c2['on'](_0x3f32('0x4f'),_0x4a3f99=>{this[_0x3f32('0x42')][_0x3f32('0x4f')](_0x4a3f99[_0x3f32('0x21')]['commandName']),this[_0x3f32('0x42')][_0x3f32('0x33')][_0x3f32('0x1a')][_0x3f32('0x38')]();}),_0x5153c2;}['_initializeController'](_0x41adbf){const _0x1fe8e4=this[_0x3f32('0x42')],_0x30df6=_0x1fe8e4['config'],_0x2ab8b9=_0x1fe8e4['plugins']['get'](_0x3f32('0x4b')),_0x1eed7e=_0x1fe8e4[_0x3f32('0x64')]['get']('CommentsRepository'),_0x466214=_0x1fe8e4[_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x48')),_0x3e2784=_0x1fe8e4['plugins'][_0x3f32('0x2a')](_0x985b26)['me'],_0x50262a=_0x30df6[_0x3f32('0x2a')]('trackChanges')[_0x3f32('0x25')],{CommentsListView:_0x5089b5,CommentThreadInputView:_0x41c2ef}=_0x1fe8e4[_0x3f32('0x64')]['get']('CommentsUI');let _0x43dca9,_0x43eff1;this[_0x3f32('0x26')]['has'](_0x41adbf['id'])?(_0x43eff1=this['_annotationViews'][_0x3f32('0x2a')](_0x41adbf['id']),_0x43dca9=_0x43eff1[_0x3f32('0x5e')]):(_0x43dca9=new _0x50262a(_0x1fe8e4[_0x3f32('0x37')],_0x41adbf,_0x3e2784,{'disableComments':this[_0x3f32('0x24')],'editorConfig':_0x30df6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x30df6[_0x3f32('0x2a')](_0x3f32('0x7')),'maxThreadTotalWeight':_0x30df6['get'](_0x3f32('0x36')),'maxCommentCharsWhenCollapsed':_0x30df6['get'](_0x3f32('0x4c')),'formatDateTime':_0x3ca02a(_0x30df6[_0x3f32('0x2a')](_0x3f32('0x37'))),'CommentView':_0x30df6[_0x3f32('0x2a')](_0x3f32('0x2b'))[_0x3f32('0x57')],'CommentsListView':_0x5089b5,'CommentThreadInputView':_0x41c2ef}),_0x43dca9[_0x3f32('0x28')]['on'](_0x3f32('0x4f'),()=>{_0x1fe8e4[_0x3f32('0x33')]['view'][_0x3f32('0x38')]();}),_0x43dca9[_0x3f32('0x60')]['on'](_0x3f32('0x4f'),()=>{_0x1fe8e4[_0x3f32('0x33')][_0x3f32('0x1a')]['focus']();}),_0x43eff1=_0x2ab8b9['createAnnotationView'](this[_0x3f32('0x42')]['locale'],_0x43dca9),_0x43eff1[_0x3f32('0x3d')]('isDirty')['to'](_0x43dca9,_0x3f32('0x8')),_0x43eff1[_0x3f32('0x3d')](_0x3f32('0x66'))['to'](_0x43dca9),_0x43eff1[_0x3f32('0x3d')]('type')['to'](_0x43dca9,_0x3f32('0x3c'),_0x4af1f7=>_0x3f32('0x15')+_0x4af1f7),this['_annotationViews'][_0x3f32('0x43')](_0x41adbf['id'],_0x43eff1));const _0x5a3732=_0x1eed7e[_0x3f32('0x67')](_0x41adbf[_0x3f32('0x35')],_0x43dca9),_0x46a847=new _0xbc8ca4(_0x1fe8e4,_0x41adbf,_0x43dca9,_0x5a3732),_0x213367=_0x41adbf[_0x3f32('0x3a')]()['filter'](_0x5bdb6c=>_0x5bdb6c[_0x3f32('0x44')]);_0x43dca9[_0x3f32('0x45')]=_0x1fe8e4['plugins'][_0x3f32('0x2a')]('TrackChangesEditing')['_descriptionFactory'][_0x3f32('0x30')](_0x213367),this[_0x3f32('0x61')][_0x3f32('0x43')](_0x41adbf,_0x46a847),this[_0x3f32('0x17')][_0x3f32('0x43')](_0x43dca9,_0x46a847);const _0xe93918=_0x2ab8b9[_0x3f32('0x51')]({'view':_0x43eff1,'target':()=>{const _0x54152d=[],_0x38952e=_0x41adbf[_0x3f32('0x3a')]()[_0x3f32('0x5c')](_0x54e3cf=>_0x54e3cf['isInContent']);for(const _0x108a3f of _0x38952e)_0x54152d[_0x3f32('0x49')](..._0x108a3f[_0x3f32('0x52')]());return _0x4fdfcd(_0x1fe8e4['editing'],_0x54152d);},'type':()=>_0x3f32('0x15')+_0x46a847['view'][_0x3f32('0x3c')]});_0x2ab8b9[_0x3f32('0x5')](_0xe93918),_0x466214['registerAnnotation'](_0xe93918);}[_0x3f32('0x4a')](_0x1ee86b){const _0x31fd03=this[_0x3f32('0x42')][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x4b')),_0x36b65c=this[_0x3f32('0x61')][_0x3f32('0x2a')](_0x1ee86b),_0x1e58e4=_0x36b65c[_0x3f32('0x1a')],_0x4402f5=_0x31fd03[_0x3f32('0x1b')](_0x1e58e4);_0x4402f5&&_0x31fd03[_0x3f32('0x47')](_0x4402f5),this['_suggestionToController'][_0x3f32('0x5d')](_0x1ee86b),this['_viewToController'][_0x3f32('0x5d')](_0x1e58e4),_0x36b65c[_0x3f32('0x10')]();}[_0x3f32('0x56')](_0x10975){if(!_0x10975[_0x3f32('0x44')]||!this['_suggestionToController'][_0x3f32('0x4d')](_0x10975))return;const _0x15673b=this['editor'][_0x3f32('0x64')][_0x3f32('0x2a')](_0x3f32('0x50')),_0x3a2dc1=this[_0x3f32('0x61')][_0x3f32('0x2a')](_0x10975),_0x218737=_0x10975[_0x3f32('0x3a')]();_0x3a2dc1[_0x3f32('0x1a')][_0x3f32('0x45')]=_0x15673b[_0x3f32('0x6')]['getDescriptions'](_0x218737);}[_0x3f32('0x10')](){for(const _0x216949 of this['_suggestionToController'][_0x3f32('0x62')]())this[_0x3f32('0x4a')](_0x216949);for(const _0x2ce163 of this[_0x3f32('0x26')]['values']())_0x2ce163[_0x3f32('0x5e')][_0x3f32('0x10')]();super[_0x3f32('0x10')]();}}
23
+ const _0x4ba1=['isDirty','descriptionParts','SuggestionThreadView','map','switchbutton','createCommentThreadController','acceptSelectedSuggestions','requires','comments.maxCommentsWhenCollapsed','getByInnerView','execute','getAllAdjacentSuggestions','Annotations','TrackChangesUI','init','componentFactory','_updateController','discardSelectedSuggestions','change:activeAnnotations','add','mainView','registerAnnotation','TrackChangesEditing','commandName','getDescriptions','get','commands','button','lowest','comments.maxCommentCharsWhenCollapsed','from','commentThread','activeAnnotations','length','push','config','filter','source','trackChanges','_createUIButton','getSuggestion','_disableComments','createAnnotation','_handleControllerBuffer','model','bind','type','isEnabled','separator','unbind','activeMarkers','focus','remove','plugins','CommentsUI','Accept\x20all\x20selected\x20suggestions','_suggestionToController','actionView','listenTo','comments.editorConfig','getMarkerNames','_annotationViews','addComment','getFirstRange','Discard\x20all\x20suggestions','values','locale','editing','CommentsRepository','view','buttonView','define','acceptAllSuggestions','clear','trackChanges.disableComments','arrowView','suggestion-','getJoined','acceptButton','innerView','size','change:previous','_destroyController','isMultiRange','destroy','_refreshActiveMarkers','delete','_descriptionFactory','_initializeController','head','set','isOn','has','discardAllSuggestions','_handleSuggestionControllerDelayed','previous','trackChanges.SuggestionThreadView','Discard\x20all\x20selected\x20suggestions','_viewToController','CommentView','editor','isInContent','value','EditorAnnotations','suggestionLoaded','suggestionChanged'];(function(_0xb3698f,_0x4ba119){const _0x345a85=function(_0x31fdda){while(--_0x31fdda){_0xb3698f['push'](_0xb3698f['shift']());}};_0x345a85(++_0x4ba119);}(_0x4ba1,0x93));const _0x345a=function(_0xb3698f,_0x4ba119){_0xb3698f=_0xb3698f-0x0;let _0x345a85=_0x4ba1[_0xb3698f];return _0x345a85;};import{Plugin as _0x188373}from'ckeditor5/src/core';import{Collection as _0xc7327b}from'ckeditor5/src/utils';import{Model as _0x4e3dfd,SplitButtonView as _0x358107,createDropdown as _0x2d9f64,addListToDropdown as _0x35a39f}from'ckeditor5/src/ui';import{Users as _0x16578d,getDateTimeFormatter as _0xce73b7,getAllMarkersDomElementsSorted as _0x38f1bb}from'ckeditor5-collaboration/src/collaboration-core';import _0x3fba2b from'./trackchangesediting';import _0x3c8b89 from'./ui/suggestioncontroller';import _0x333803 from'./ui/view/suggestionthreadview';import{getTranslation as _0x57d1ff}from'./utils/common-translations';import _0x1abfc8 from'../theme/icons/track-changes.svg';export default class d extends _0x188373{static get[_0x345a('0x48')](){return[_0x3fba2b,_0x16578d,_0x345a('0x1b'),_0x345a('0x4d'),_0x345a('0x3e')];}static get['pluginName'](){return _0x345a('0x4e');}constructor(_0x39bcd6){super(_0x39bcd6),this[_0x345a('0xf')]=new Map(),this[_0x345a('0x39')]=new Map(),this[_0x345a('0x14')]=new Map(),this[_0x345a('0x2')]=new Map();const _0x2563d9=this[_0x345a('0x3b')][_0x345a('0x64')];_0x2563d9[_0x345a('0x1e')](_0x345a('0x37'),_0x333803),_0x2563d9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2563d9[_0x345a('0x5a')](_0x345a('0x21'));}[_0x345a('0x35')](_0x20b7f6,_0x599025){0x0===this['_handleControllerBuffer'][_0x345a('0x27')]&&setTimeout(()=>{for(const [_0x50feb6,_0x4e772a]of this[_0x345a('0x2')]){const _0x33aa94=this[_0x345a('0xf')][_0x345a('0x33')](_0x50feb6);_0x33aa94||_0x4e772a?_0x33aa94&&_0x4e772a&&this['_destroyController'](_0x50feb6):this['_initializeController'](_0x50feb6);}this['editor']['plugins']['get'](_0x345a('0x3e'))['refreshSelectedViews'](),this[_0x345a('0x2c')](),this[_0x345a('0x2')][_0x345a('0x20')]();},0xa),this[_0x345a('0x2')]['set'](_0x20b7f6,_0x599025);}[_0x345a('0x4f')](){const _0x1e44a4=this[_0x345a('0x3b')],_0x5835e7=_0x1e44a4[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57')),_0x261719=_0x1e44a4[_0x345a('0xc')]['get']('Annotations'),_0x524be8=_0x1e44a4[_0x345a('0xc')]['get'](_0x345a('0x3e')),_0x53e05e=_0x1e44a4[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x1b'));_0x1e44a4['ui'][_0x345a('0x50')][_0x345a('0x54')]('trackChanges',_0x5ab7a4=>this[_0x345a('0x68')](_0x5ab7a4)),_0x524be8['addSourceCollector'](()=>{const _0x390ee8=[];for(const [_0x2038c3,_0x3a241b]of Array[_0x345a('0x5f')](this[_0x345a('0xf')])){const _0x3e40df=_0x2038c3[_0x345a('0x4c')](),_0xf8d778=[];for(const _0x4b9da0 of _0x3e40df){if(!_0x4b9da0[_0x345a('0x3c')])continue;if(_0x4b9da0[_0x345a('0x2a')]){_0xf8d778['push'](..._0x4b9da0['getRanges']());continue;}const _0x424778=_0x4b9da0[_0x345a('0x16')]();if(_0xf8d778[_0x345a('0x62')]>0x0){const _0x34e6a7=_0xf8d778[0x0][_0x345a('0x24')](_0x424778);if(_0x34e6a7){_0xf8d778[0x0]=_0x34e6a7;continue;}}_0xf8d778[_0x345a('0x63')](_0x424778);}_0x390ee8[_0x345a('0x63')]([_0x3a241b[_0x345a('0x1c')],_0xf8d778]);}return _0x390ee8;}),this[_0x345a('0x11')](_0x5835e7,_0x345a('0x3f'),(_0x1660b3,_0x3c7b13)=>{this['listenTo'](_0x3c7b13,_0x345a('0x28'),(_0x2b4810,_0x3e002a,_0x157da5,_0x19223f)=>{_0x3c7b13['isInContent']&&(null==_0x157da5?(this[_0x345a('0x51')](_0x19223f[_0x345a('0x30')]),this[_0x345a('0x35')](_0x3c7b13,!0x1)):(this['_updateController'](_0x157da5[_0x345a('0x30')]),this[_0x345a('0x35')](_0x3c7b13,!0x0)));}),null===_0x3c7b13[_0x345a('0x36')]?this[_0x345a('0x35')](_0x3c7b13,!0x1):this['_updateController'](_0x3c7b13[_0x345a('0x30')]);}),this[_0x345a('0x11')](_0x5835e7,'suggestionUnloaded',(_0x2b8988,_0x3838f8,_0x4a0452)=>{this['stopListening'](_0x3838f8,_0x345a('0x28')),this[_0x345a('0x2')][_0x345a('0x2d')](_0x3838f8);const _0x4ede02=_0x4a0452?_0x4a0452[_0x345a('0x30')]:_0x3838f8,_0x2739c8=this[_0x345a('0xf')][_0x345a('0x5a')](_0x4ede02);null!==_0x4a0452&&this[_0x345a('0x51')](_0x4ede02),null===_0x4a0452&&_0x2739c8&&this['_destroyController'](_0x3838f8);}),this[_0x345a('0x11')](_0x5835e7,_0x345a('0x40'),(_0x21c133,_0x341e1c)=>{this[_0x345a('0x51')](_0x341e1c);}),this['listenTo'](_0x261719,_0x345a('0x53'),()=>{this[_0x345a('0x2c')]();}),this[_0x345a('0x11')](_0x53e05e,_0x345a('0x15'),(_0x557475,{threadId:_0x483580,isFromAdapter:_0x5f1cf4})=>{if(_0x5f1cf4||!_0x5835e7['hasSuggestion'](_0x483580))return;const _0x4ee37c=_0x5835e7[_0x345a('0x69')](_0x483580);this[_0x345a('0xf')]['get'](_0x4ee37c)[_0x345a('0x1c')][_0x345a('0xa')]();},{'priority':_0x345a('0x5d')});}['_refreshActiveMarkers'](){const _0x3b5ba3=this[_0x345a('0x3b')][_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x4d')),_0x57ecfe=this[_0x345a('0x3b')][_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57')),_0x22fb29=Array[_0x345a('0x5f')](_0x3b5ba3[_0x345a('0x61')],_0x32ca13=>_0x32ca13[_0x345a('0x26')])['filter'](_0x220ba8=>this['_viewToController'][_0x345a('0x33')](_0x220ba8)),_0x36ea4c=[];for(const _0x4e4bdb of _0x22fb29){const _0x2e57ba=this[_0x345a('0x39')][_0x345a('0x5a')](_0x4e4bdb)[_0x345a('0x3')]['getAllAdjacentSuggestions']();_0x36ea4c[_0x345a('0x63')](..._0x2e57ba['reduce']((_0x24fe6a,_0x56473b)=>[..._0x24fe6a,..._0x56473b[_0x345a('0x13')]()],[]));}_0x57ecfe[_0x345a('0x9')]=_0x36ea4c;}[_0x345a('0x68')](_0x5986f7){const _0x1cc97f=_0x2d9f64(_0x5986f7,_0x358107),_0x50f8c9=this['editor'][_0x345a('0x5b')][_0x345a('0x5a')](_0x345a('0x67')),_0x2bbc1b=_0x57d1ff(_0x5986f7,'Track\x20changes');_0x1cc97f[_0x345a('0x1d')][_0x345a('0x31')]({'tooltip':_0x2bbc1b,'label':_0x2bbc1b,'icon':_0x1abfc8}),_0x1cc97f['buttonView']['bind'](_0x345a('0x32'))['to'](_0x50f8c9,_0x345a('0x3d')),_0x1cc97f[_0x345a('0x1d')]['on'](_0x345a('0x4b'),()=>{_0x50f8c9['execute'](),this[_0x345a('0x3b')][_0x345a('0x1a')][_0x345a('0x1c')][_0x345a('0xa')]();});const _0x39e678=new _0xc7327b(),_0x2bad44=[{'type':_0x345a('0x45'),'model':{'withText':!0x0,'label':_0x2bbc1b,'commandName':_0x345a('0x67')}},{'type':_0x345a('0x7')},{'type':'button','model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,'Accept\x20all\x20suggestions'),'commandName':_0x345a('0x1f')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0xe')),'commandName':_0x345a('0x47')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0x17')),'commandName':_0x345a('0x34')}},{'type':_0x345a('0x5c'),'model':{'withText':!0x0,'label':_0x57d1ff(_0x5986f7,_0x345a('0x38')),'commandName':_0x345a('0x52')}}];for(const _0xc87c81 of _0x2bad44){let _0x13582b={'type':_0x345a('0x7')};if(_0xc87c81[_0x345a('0x3')]){const _0x407ab8=new _0x4e3dfd(_0xc87c81[_0x345a('0x3')]),_0x4c962f=this[_0x345a('0x3b')][_0x345a('0x5b')][_0x345a('0x5a')](_0x407ab8[_0x345a('0x58')]);_0x407ab8[_0x345a('0x4')](_0x345a('0x32'),_0x345a('0x6'))['to'](_0x4c962f,'value',_0x345a('0x6')),_0x13582b={'type':_0xc87c81[_0x345a('0x5')],'model':_0x407ab8};}_0x39e678[_0x345a('0x54')](_0x13582b);}_0x35a39f(_0x1cc97f,_0x39e678);const _0x52118d=_0x2bad44[_0x345a('0x65')](_0x500955=>null!=_0x500955[_0x345a('0x3')])[_0x345a('0x44')](_0xce767b=>this[_0x345a('0x3b')][_0x345a('0x5b')][_0x345a('0x5a')](_0xce767b[_0x345a('0x3')]['commandName'])),_0xdc2398=_0x1cc97f['buttonView'];return _0xdc2398[_0x345a('0x10')][_0x345a('0x8')](_0x345a('0x6')),_0xdc2398[_0x345a('0x22')][_0x345a('0x8')](_0x345a('0x6')),_0xdc2398[_0x345a('0x10')][_0x345a('0x4')](_0x345a('0x6'))['to'](_0x50f8c9,_0x345a('0x6')),_0xdc2398[_0x345a('0x22')][_0x345a('0x4')]('isEnabled')['toMany'](_0x52118d,_0x345a('0x6'),(..._0x12b596)=>_0x12b596['some'](_0x27db69=>_0x27db69)),_0x1cc97f['on'](_0x345a('0x4b'),_0x3f6ece=>{this[_0x345a('0x3b')][_0x345a('0x4b')](_0x3f6ece[_0x345a('0x66')]['commandName']),this['editor'][_0x345a('0x1a')]['view'][_0x345a('0xa')]();}),_0x1cc97f;}[_0x345a('0x2f')](_0x549e5){const _0x3d8ffd=this[_0x345a('0x3b')],_0x4b81fe=_0x3d8ffd[_0x345a('0x64')],_0x9060cd=_0x3d8ffd['plugins'][_0x345a('0x5a')](_0x345a('0x4d')),_0x57bcb9=_0x3d8ffd[_0x345a('0xc')]['get'](_0x345a('0x1b')),_0x33d404=_0x3d8ffd[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x3e')),_0x14bedc=_0x3d8ffd[_0x345a('0xc')]['get'](_0x16578d)['me'],_0x19b103=_0x4b81fe[_0x345a('0x5a')](_0x345a('0x67'))[_0x345a('0x43')],{CommentsListView:_0x29110c,CommentThreadInputView:_0x3444cc}=_0x3d8ffd[_0x345a('0xc')]['get'](_0x345a('0xd'));let _0x3e6233,_0x391408;this[_0x345a('0x14')][_0x345a('0x33')](_0x549e5['id'])?(_0x391408=this[_0x345a('0x14')][_0x345a('0x5a')](_0x549e5['id']),_0x3e6233=_0x391408['mainView']):(_0x3e6233=new _0x19b103(_0x3d8ffd['locale'],_0x549e5,_0x14bedc,{'disableComments':this[_0x345a('0x0')],'editorConfig':_0x4b81fe[_0x345a('0x5a')](_0x345a('0x12')),'maxCommentsWhenCollapsed':_0x4b81fe['get'](_0x345a('0x49')),'maxThreadTotalWeight':_0x4b81fe[_0x345a('0x5a')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4b81fe[_0x345a('0x5a')](_0x345a('0x5e')),'formatDateTime':_0xce73b7(_0x4b81fe[_0x345a('0x5a')](_0x345a('0x19'))),'CommentView':_0x4b81fe[_0x345a('0x5a')]('comments')[_0x345a('0x3a')],'CommentsListView':_0x29110c,'CommentThreadInputView':_0x3444cc}),_0x3e6233[_0x345a('0x25')]['on']('execute',()=>{_0x3d8ffd['editing'][_0x345a('0x1c')][_0x345a('0xa')]();}),_0x3e6233['discardButton']['on']('execute',()=>{_0x3d8ffd[_0x345a('0x1a')][_0x345a('0x1c')]['focus']();}),_0x391408=_0x9060cd['createAnnotationView'](this[_0x345a('0x3b')]['locale'],_0x3e6233),_0x391408[_0x345a('0x4')]('isDirty')['to'](_0x3e6233,_0x345a('0x41')),_0x391408[_0x345a('0x4')]('length')['to'](_0x3e6233),_0x391408[_0x345a('0x4')](_0x345a('0x5'))['to'](_0x3e6233,_0x345a('0x5'),_0x22613e=>_0x345a('0x23')+_0x22613e),this[_0x345a('0x14')][_0x345a('0x31')](_0x549e5['id'],_0x391408));const _0xcd64c1=_0x57bcb9[_0x345a('0x46')](_0x549e5[_0x345a('0x60')],_0x3e6233),_0x1b2c08=new _0x3c8b89(_0x3d8ffd,_0x549e5,_0x3e6233,_0xcd64c1),_0x375129=_0x549e5[_0x345a('0x4c')]()[_0x345a('0x65')](_0x27bb52=>_0x27bb52[_0x345a('0x3c')]);_0x3e6233[_0x345a('0x42')]=_0x3d8ffd[_0x345a('0xc')][_0x345a('0x5a')](_0x345a('0x57'))[_0x345a('0x2e')]['getDescriptions'](_0x375129),this[_0x345a('0xf')]['set'](_0x549e5,_0x1b2c08),this['_viewToController']['set'](_0x3e6233,_0x1b2c08);const _0x573cb5=_0x9060cd[_0x345a('0x1')]({'view':_0x391408,'target':()=>{const _0x1c029d=[],_0x3e7fce=_0x549e5[_0x345a('0x4c')]()[_0x345a('0x65')](_0x2deda3=>_0x2deda3['isInContent']);for(const _0x1fdae9 of _0x3e7fce)_0x1c029d[_0x345a('0x63')](..._0x1fdae9['getMarkers']());return _0x38f1bb(_0x3d8ffd['editing'],_0x1c029d);},'type':()=>_0x345a('0x23')+_0x1b2c08['view'][_0x345a('0x5')]});_0x9060cd[_0x345a('0x54')](_0x573cb5),_0x33d404[_0x345a('0x56')](_0x573cb5);}[_0x345a('0x29')](_0x3a32b8){const _0xc53668=this[_0x345a('0x3b')]['plugins'][_0x345a('0x5a')](_0x345a('0x4d')),_0x168619=this[_0x345a('0xf')][_0x345a('0x5a')](_0x3a32b8),_0x231018=_0x168619[_0x345a('0x1c')],_0x4f878f=_0xc53668[_0x345a('0x4a')](_0x231018);_0x4f878f&&_0xc53668[_0x345a('0xb')](_0x4f878f),this[_0x345a('0xf')][_0x345a('0x2d')](_0x3a32b8),this[_0x345a('0x39')][_0x345a('0x2d')](_0x231018),_0x168619['destroy']();}[_0x345a('0x51')](_0x57afe2){if(!_0x57afe2[_0x345a('0x3c')]||!this['_suggestionToController']['has'](_0x57afe2))return;const _0x3dbb95=this[_0x345a('0x3b')][_0x345a('0xc')]['get'](_0x345a('0x57')),_0x2b014b=this[_0x345a('0xf')]['get'](_0x57afe2),_0x1fddae=_0x57afe2['getAllAdjacentSuggestions']();_0x2b014b[_0x345a('0x1c')][_0x345a('0x42')]=_0x3dbb95[_0x345a('0x2e')][_0x345a('0x59')](_0x1fddae);}['destroy'](){for(const _0x2aacab of this['_suggestionToController']['keys']())this[_0x345a('0x29')](_0x2aacab);for(const _0x5eb560 of this[_0x345a('0x14')][_0x345a('0x18')]())_0x5eb560[_0x345a('0x55')]['destroy']();super[_0x345a('0x2b')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b4d=['acceptSuggestion','_pendingAction','model','commentThreadController','canEditAt','discardSuggestion','remove','_removePendingAction','_discardCommand','getRanges','listenTo','isDirty','change:isDirty','PENDING_ACTION_SUGGESTION','_acceptCommand','commands','_editor','destroy','locale','execute','canDiscard','add','_setPendingAction','unbind','canAccept','get','plugins','bind','view','isEnabled','PendingActions'];(function(_0x2b844d,_0x5b4d3a){const _0x506913=function(_0x468426){while(--_0x468426){_0x2b844d['push'](_0x2b844d['shift']());}};_0x506913(++_0x5b4d3a);}(_0x5b4d,0x11a));const _0x5069=function(_0x2b844d,_0x5b4d3a){_0x2b844d=_0x2b844d-0x0;let _0x506913=_0x5b4d[_0x2b844d];return _0x506913;};import{ObservableMixin as _0x24070e}from'ckeditor5/src/utils';import{getTranslation as _0x582850}from'../utils/common-translations';export default class qt extends _0x24070e(){constructor(_0x4df416,_0x1e5cad,_0x305af7,_0x404d5e){super(),this[_0x5069('0x1e')]=_0x1e5cad,this[_0x5069('0x19')]=_0x305af7,this[_0x5069('0x0')]=_0x404d5e,this['_editor']=_0x4df416,this['_acceptCommand']=_0x4df416[_0x5069('0xc')][_0x5069('0x16')](_0x5069('0x1c')),this['_discardCommand']=_0x4df416[_0x5069('0xc')]['get'](_0x5069('0x2')),this[_0x5069('0x19')][_0x5069('0x18')]('isEnabled')['to'](this[_0x5069('0xb')],this[_0x5069('0x5')],(_0x561fb3,_0x55595b)=>_0x561fb3||_0x55595b),this[_0x5069('0x19')]['bind']('canAccept')['to'](this[_0x5069('0xb')],'isEnabled',_0x5c9b42=>_0x5c9b42&&this['_editor'][_0x5069('0x1e')][_0x5069('0x1')](_0x1e5cad[_0x5069('0x6')]())),this['view'][_0x5069('0x18')](_0x5069('0x11'))['to'](this[_0x5069('0x5')],'isEnabled',_0x11e0c5=>_0x11e0c5&&this['_editor'][_0x5069('0x1e')][_0x5069('0x1')](_0x1e5cad['getRanges']())),this[_0x5069('0x1d')]=null,_0x305af7[_0x5069('0x8')]&&this['_setPendingAction'](),this[_0x5069('0x7')](_0x305af7,_0x5069('0x1c'),()=>this['acceptSuggestion']()),this[_0x5069('0x7')](_0x305af7,'discardSuggestion',()=>this[_0x5069('0x2')]()),this['listenTo'](_0x305af7,_0x5069('0x9'),()=>{_0x305af7[_0x5069('0x8')]?this[_0x5069('0x13')]():this[_0x5069('0x4')]();});}[_0x5069('0x1c')](){this[_0x5069('0xb')][_0x5069('0x10')](this['model']['id']);}['discardSuggestion'](){this[_0x5069('0x5')][_0x5069('0x10')](this['model']['id']);}[_0x5069('0xe')](){this[_0x5069('0x19')][_0x5069('0x14')](_0x5069('0x1a')),this[_0x5069('0x19')]['unbind'](_0x5069('0x15')),this[_0x5069('0x19')][_0x5069('0x14')]('canDiscard'),this['stopListening'](),this['commentThreadController'][_0x5069('0xe')](),this[_0x5069('0x1d')]&&this[_0x5069('0x4')]();}[_0x5069('0x13')](){const _0xa79019=_0x582850(this[_0x5069('0xd')][_0x5069('0xf')],_0x5069('0xa'));this[_0x5069('0x1d')]=this[_0x5069('0xd')][_0x5069('0x17')]['get'](_0x5069('0x1b'))[_0x5069('0x12')](_0xa79019);}['_removePendingAction'](){null!==this[_0x5069('0x1d')]&&this['_editor'][_0x5069('0x17')][_0x5069('0x16')]('PendingActions')[_0x5069('0x3')](this[_0x5069('0x1d')]),this[_0x5069('0x1d')]=null;}}
23
+ const _0xf6bc=['_removePendingAction','canEditAt','canAccept','add','discardSuggestion','view','plugins','isDirty','destroy','_pendingAction','acceptSuggestion','bind','stopListening','commands','isEnabled','unbind','locale','_discardCommand','canDiscard','listenTo','get','_editor','_setPendingAction','PendingActions','commentThreadController','getRanges','_acceptCommand','remove','model'];(function(_0x2d255c,_0xf6bca4){const _0x5e8055=function(_0x16ee77){while(--_0x16ee77){_0x2d255c['push'](_0x2d255c['shift']());}};_0x5e8055(++_0xf6bca4);}(_0xf6bc,0x121));const _0x5e80=function(_0x2d255c,_0xf6bca4){_0x2d255c=_0x2d255c-0x0;let _0x5e8055=_0xf6bc[_0x2d255c];return _0x5e8055;};import{ObservableMixin as _0x3f66ed}from'ckeditor5/src/utils';import{getTranslation as _0xd58529}from'../utils/common-translations';export default class qt extends _0x3f66ed(){constructor(_0x2249a4,_0x8ff790,_0x2d2184,_0x5f0833){super(),this[_0x5e80('0x0')]=_0x8ff790,this[_0x5e80('0x6')]=_0x2d2184,this[_0x5e80('0x19')]=_0x5f0833,this[_0x5e80('0x16')]=_0x2249a4,this[_0x5e80('0x1b')]=_0x2249a4[_0x5e80('0xe')][_0x5e80('0x15')](_0x5e80('0xb')),this['_discardCommand']=_0x2249a4['commands'][_0x5e80('0x15')](_0x5e80('0x5')),this['view']['bind'](_0x5e80('0xf'))['to'](this[_0x5e80('0x1b')],this[_0x5e80('0x12')],(_0xc484d1,_0x65fbc8)=>_0xc484d1||_0x65fbc8),this[_0x5e80('0x6')][_0x5e80('0xc')](_0x5e80('0x3'))['to'](this[_0x5e80('0x1b')],_0x5e80('0xf'),_0x15e259=>_0x15e259&&this[_0x5e80('0x16')]['model'][_0x5e80('0x2')](_0x8ff790[_0x5e80('0x1a')]())),this[_0x5e80('0x6')][_0x5e80('0xc')](_0x5e80('0x13'))['to'](this[_0x5e80('0x12')],_0x5e80('0xf'),_0x1c5cea=>_0x1c5cea&&this[_0x5e80('0x16')][_0x5e80('0x0')][_0x5e80('0x2')](_0x8ff790[_0x5e80('0x1a')]())),this[_0x5e80('0xa')]=null,_0x2d2184[_0x5e80('0x8')]&&this[_0x5e80('0x17')](),this[_0x5e80('0x14')](_0x2d2184,'acceptSuggestion',()=>this[_0x5e80('0xb')]()),this[_0x5e80('0x14')](_0x2d2184,_0x5e80('0x5'),()=>this['discardSuggestion']()),this[_0x5e80('0x14')](_0x2d2184,'change:isDirty',()=>{_0x2d2184[_0x5e80('0x8')]?this[_0x5e80('0x17')]():this[_0x5e80('0x1')]();});}['acceptSuggestion'](){this[_0x5e80('0x1b')]['execute'](this[_0x5e80('0x0')]['id']);}[_0x5e80('0x5')](){this[_0x5e80('0x12')]['execute'](this[_0x5e80('0x0')]['id']);}[_0x5e80('0x9')](){this[_0x5e80('0x6')][_0x5e80('0x10')](_0x5e80('0xf')),this['view'][_0x5e80('0x10')]('canAccept'),this[_0x5e80('0x6')][_0x5e80('0x10')]('canDiscard'),this[_0x5e80('0xd')](),this[_0x5e80('0x19')][_0x5e80('0x9')](),this[_0x5e80('0xa')]&&this[_0x5e80('0x1')]();}['_setPendingAction'](){const _0x1709bf=_0xd58529(this[_0x5e80('0x16')][_0x5e80('0x11')],'PENDING_ACTION_SUGGESTION');this[_0x5e80('0xa')]=this[_0x5e80('0x16')][_0x5e80('0x7')][_0x5e80('0x15')](_0x5e80('0x18'))[_0x5e80('0x4')](_0x1709bf);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x5e80('0x16')][_0x5e80('0x7')][_0x5e80('0x15')](_0x5e80('0x18'))[_0x5e80('0x1c')](this[_0x5e80('0xa')]),this[_0x5e80('0xa')]=null;}}