@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230822.0 → 0.0.0-nightly-20230823.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 _0x29a0=['createSelection','_descriptionFactory','_addThreadToSuggestion','collaboration.channelId','low','_checkSuggestionCorrectness','discard','formatInline:discard','isInsideObject','schema','$graveyard','length','getShiftedBy','fetchCommentThread','editing','for','add','_setSuggestionRange','markDeletion','markMultiRangeInsertion','adapter','ck-suggestion-marker','isAtEnd','_suggestionState','getCommentThread','init','_getExternalAuthor','containerElement','clone','getRanges','_mergeNestedSuggestions','consume','isEqual','@external','_defaultCallbacks','element','notReady','discardSelectedSuggestions','from','ck-suggestion-marker--active','removeMarker','execute','nodeBefore','isInContent','track-changes-adapter-missing-getsuggestion','formatBlock','detach','root','addComment','formatInline:','setSelection','deletion:chain','commentThread','end','_breakSuggestionMarker','data','unbind','applyOperation','_joinSuggestions','size','getFirstMarker','_editor','_registerDefaultCallbacks','insertion','formatBlock:join','after','isAtStart','some','removeMarkers','setTo','getSuggestions','createdAt','authoredAt','suggestion-type','config','formatBlock:chain','clear','_enabledCommands','_createSuggestion','_commentsRepository','commandName','buildSuggestion','TrackChangesEditing','suggestion','commands','catch','_trackFormatChanges','$textProxy','getIntersection','isSelectable','listenTo','isIntersectingWithRange','always','deletion:join','registerCustomCallback','originalSuggestionId','markMultiRangeBlockFormat','_findSuggestions','track-changes-suggestion-not-found','rejected','getLastMatchingPosition','batch','writer','_cutOutSuggestionMarker','updateSuggestion','trackChangesCommand','ck-suggestion-marker-formatBlock','acceptSelectedSuggestions','addCommentThread','high','previous','lowest','skipNestingCheck','data-suggestion','enableReadOnlyMode','insertion:join','deletion','enqueueChange','_suggestions','deletion:accept','createPositionBefore','error-saving-suggestion-data-suggestion-discarded','acceptSuggestion','document','external:','insertion:accept','trackChanges.trackFormatChanges','change','track-changes-suggestion-data-mismatch','markBlockFormat','enableCommand','CommentsRepository','then','_handleNewSuggestionMarker','mapper','consumable','parent','insertion:chain','suggestion:','getMarkers','head','removeAttribute','_model','refresh','_updateSuggestionData','createPositionAt','authorName','getAncestors','plugins','_setSuggestionData','_joinWithAdjacentSuggestions','setAttribute','getMultiRangeId','createRange','dataDowncast','ready','splitPosition','track-changes-command-not-found','toJSON','showSuggestionHighlights','insert','getRange','value','position','accept','values','deletion:','$marker','isRemovable','nodeAfter','howMany','acceptAllSuggestions','forceDefaultExecution','includes','activeMarkers','multi','_removeSuggestion','_isForcedDefaultExecutionBlock','rethrowUnexpectedError','never','fromCharCode','get','options','_getSuggestionData','insertion:discard','targetPosition','formatBlock:discard','_splitMarkerName','markerToHighlight','getWalker','formatGroupId','formatBlock:accept','addSuggestion','split','containsRange','markerReady','subType','isBlock','trackChanges','_rangeIsInLocalUserInsertion','_customCallbacks','filter','rootName','change:_saved','push','_adapter','isLocal','item','getDifference','hasSuggestion','model','getSuggestion','moveTargetPosition','attributes','addRange','markerName','isNextTo','toViewElement','define','createRangeIn','Users','_saved','return','start','delete','editor','getItems','dataToMarker','map','discardSuggestion','_refreshSuggestionsChain','type','creator','remove','isAfter','getSuggestionCallback','selection','join','newRange','containsRangeInObject','name','markerToData','isMultiRange','removeClass','trackChanges.mergeNestedSuggestions','markInsertion','getAttribute','getCustomProperty','formatInline:accept','formatBlock:','isOwn','isCollapsed','removeMarker:suggestion:formatBlock','removeComment','PENDING_ACTION_SUGGESTION','marker-count','default','addHighlight','_suggestionFactory','addMarker:suggestion','deletion:discard','next','discardAllSuggestions','_getAuthorFromId','track-changes-user-not-found','formatInline:chain','upcast','PendingActions','open','stop','splice','createPositionAfter','removed','requires','bindElementToMarker','isBefore','pluginName','_addSuggestionMarker','has','normal','backward','every','range','group','formatInline','locale','insertion:','reconvertMarker','isLimit','registerPostFixer','addMarker:suggestion:formatBlock','addMarkerName','editingDowncast','_onDiscard','multipleBlocks','fire','getFirstRange','ck-suggestion-marker-','updateMarker','hasComments','markerNameToElements','sort','move','differ','markers','deleteContent','addUser','suggestionChanged','getAllAdjacentSuggestions','isObject','set','hasCommentThread','isDocumentOperation','dataReady','change:activeMarkers','conversion','addSuggestionData','author','addClass','getChangedMarkers','insertContent'];(function(_0x2c70d6,_0x29a0ba){const _0x49759c=function(_0x33fe88){while(--_0x33fe88){_0x2c70d6['push'](_0x2c70d6['shift']());}};_0x49759c(++_0x29a0ba);}(_0x29a0,0x11e));const _0x4975=function(_0x2c70d6,_0x29a0ba){_0x2c70d6=_0x2c70d6-0x0;let _0x49759c=_0x29a0[_0x2c70d6];return _0x49759c;};import{Plugin as _0x226ea4,PendingActions as _0x4b9239}from'ckeditor5/src/core';import{LiveRange as _0x199bb8}from'ckeditor5/src/engine';import{CKEditorError as _0x381070,uid as _0x47339f,priorities as _0x27a664,logWarning as _0x7d2362}from'ckeditor5/src/utils';import{toWidget as _0x282bff}from'ckeditor5/src/widget';import{Users as _0x5d2382,hashObject as _0x4f2d4a}from'ckeditor5-collaboration/src/collaboration-core';import _0x24b1b8 from'./commands/trackchangescommand';import _0x192021 from'./commands/acceptsuggestioncommand';import _0x1f6262 from'./commands/discardsuggestioncommand';import _0x2f831b from'./commands/executeonallsuggestionscommand';import _0x2aaa79 from'./commands/executeonselectedsuggestionscommand';import _0x2568d3 from'./suggestion';import _0x5adb8f from'./suggestiondescriptionfactory';import _0x5b3b85 from'./integrations/alignment';import _0x22138a from'./integrations/basicstyles';import _0x3bf000 from'./integrations/blockquote';import _0x61738b from'./integrations/ckbox';import _0x577824 from'./integrations/codeblock';import _0x37db81 from'./integrations/comments';import _0x9985ac from'./integrations/deletecommand';import _0x3530ba from'./integrations/documentlist';import _0x46e1d2 from'./integrations/entercommand';import _0x47c606 from'./integrations/findandreplace';import _0x456e7c from'./integrations/font';import _0x3e316a from'./integrations/formatpainter';import _0xb91fca from'./integrations/heading';import _0x5b322a from'./integrations/highlight';import _0x6bd7ec from'./integrations/horizontalline';import _0x5b5a17 from'./integrations/htmlembed';import _0x4eff74 from'./integrations/image';import _0x2762e7 from'./integrations/imagereplace';import _0x103d97 from'./integrations/importword';import _0x22b1c3 from'./integrations/indent';import _0x43209f from'./integrations/inputcommand';import _0x4d6876 from'./integrations/link';import _0x51f7aa from'./integrations/list';import _0x106709 from'./integrations/listproperties';import _0x1ebac1 from'./integrations/mediaembed';import _0x32c826 from'./integrations/mention';import _0x2f040 from'./integrations/pagebreak';import _0x37dece from'./integrations/paragraph';import _0x3ae7cc from'./integrations/removeformat';import _0x1c8cc9 from'./integrations/restrictededitingmode';import _0x108bbf from'./integrations/shiftentercommand';import _0xe45e5c from'./integrations/standardeditingmode';import _0x51d16e from'./integrations/style';import _0x170e1f from'./integrations/table';import _0xc6eac8 from'./integrations/tablemergesplit';import _0x100d84 from'./integrations/tableheadings';import _0x5408cf from'./integrations/tableclipboard';import _0x4f4de4 from'./integrations/tablecolumnresize';import _0x4fde55 from'./integrations/template';import _0x11aef8 from'./integrations/tableofcontents';import _0x25dedb from'./integrations/title';import _0x1a64bd from'./integrations/undo';import{getTranslation as _0x41f906}from'./utils/common-translations';import _0x2acc09 from'./integrations/tablecaption';import _0x1a1710 from'./integrations/documentlistproperties';import _0x1222e2 from'./integrations/tableproperties';export default class p extends _0x226ea4{static get[_0x4975('0x134')](){return[_0x4975('0xa6'),_0x5d2382,_0x4b9239,_0x5b3b85,_0x22138a,_0x3bf000,_0x61738b,_0x577824,_0x37db81,_0x9985ac,_0x3530ba,_0x1a1710,_0x46e1d2,_0x47c606,_0x456e7c,_0x3e316a,_0xb91fca,_0x5b322a,_0x6bd7ec,_0x5b5a17,_0x4eff74,_0x2762e7,_0x103d97,_0x22b1c3,_0x43209f,_0x4d6876,_0x51f7aa,_0x106709,_0x1ebac1,_0x32c826,_0x2f040,_0x37dece,_0x3ae7cc,_0x1c8cc9,_0x108bbf,_0xe45e5c,_0x51d16e,_0x170e1f,_0xc6eac8,_0x100d84,_0x2acc09,_0x5408cf,_0x4f4de4,_0x11aef8,_0x1222e2,_0x4fde55,_0x25dedb,_0x1a64bd];}static get[_0x4975('0x137')](){return _0x4975('0x75');}constructor(_0xd47eaf){function _0x421a2f(_0x157ddc){return _0x157ddc[_0x4975('0x107')](_0xbd6287=>String[_0x4975('0xd7')](_0xbd6287))[_0x4975('0x110')]('');}super(_0xd47eaf),this[_0x4975('0x18')](_0x4975('0xd1'),[]),this['on'](_0x4975('0x1c'),(_0x325206,_0x151c1e,_0x407b75,_0x50724b)=>{this[_0x4975('0xb1')][_0x4975('0xa2')](()=>{for(const _0x2447a0 of[..._0x50724b,..._0x407b75])this[_0x4975('0xb1')][_0x4975('0x12')][_0x4975('0x139')](_0x2447a0)&&_0xd47eaf[_0x4975('0x31')][_0x4975('0x1')](_0x2447a0);});}),this[_0x4975('0x24')]=new _0x5adb8f(this['editor'][_0x4975('0xf5')][_0x4975('0x2c')],this[_0x4975('0x104')][_0x4975('0x140')]),this['_adapter']=null,this[_0x4975('0x125')]=new Dt(this['editor']),this[_0x4975('0x99')]=new Map(),this['_commentsRepository']=_0xd47eaf[_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0xa6')),this['_enabledCommands']=new Set(),this[_0x4975('0xb1')]=this[_0x4975('0x104')]['model'],this[_0x4975('0x3a')]=new WeakMap(),this[_0x4975('0xd4')]=!0x1,_0xd47eaf[_0x4975('0x6d')]['define'](_0x4975('0xa1'),_0x4975('0x123')),this['_trackFormatChanges']=_0xd47eaf[_0x4975('0x6d')][_0x4975('0xd8')](_0x4975('0xa1')),_0xd47eaf['config'][_0x4975('0xfd')](_0x4975('0x117'),!0x0),this[_0x4975('0x41')]=_0xd47eaf[_0x4975('0x6d')][_0x4975('0xd8')]('trackChanges.mergeNestedSuggestions'),this[_0x4975('0x8c')]=new _0x24b1b8(_0xd47eaf,this[_0x4975('0x70')]),this[_0x421a2f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x421a2f([0x34,0x30,0x34,0x36,0x31,0x36,0x34,0x34]);}[_0x4975('0x3c')](){const _0x193738=this['editor'];_0x193738[_0x4975('0x1d')][_0x4975('0x32')](_0x4975('0x6'))[_0x4975('0xdf')]({'model':_0x4975('0x76'),'view':_0x1767df=>{const {id:_0x281828,type:_0x531c56}=this[_0x4975('0xde')](_0x1767df[_0x4975('0xfa')]),_0xa22466=[_0x4975('0x38'),_0x4975('0xb')+_0x531c56];let _0x20fd53=0xbb8;return this['activeMarkers'][_0x4975('0xd0')](_0x1767df[_0x4975('0xfa')])&&(_0xa22466[_0x4975('0xef')](_0x4975('0x4a')),_0x20fd53=0xbc2),_0x4975('0x97')==_0x531c56&&(_0x20fd53+=0x5),{'classes':_0xa22466,'attributes':{'data-suggestion':_0x281828},'priority':_0x20fd53};}}),_0x193738['conversion']['for'](_0x4975('0xbd'))[_0x4975('0x33')](_0x5890d3=>{_0x5890d3['on'](_0x4975('0x126'),(_0x34f3e4,_0x2e6c67,_0x303a4c)=>{if(!_0x303a4c[_0x4975('0xd9')][_0x4975('0xc2')])return;const _0x567069=_0x2e6c67[_0x4975('0xf2')];if(!_0x567069)return;const _0x4de1e0=_0x303a4c[_0x4975('0xa9')][_0x4975('0xfc')](_0x567069);_0x193738[_0x4975('0xf5')][_0x4975('0x2c')][_0x4975('0x17')](_0x567069)&&_0x4de1e0&&!_0x4de1e0[_0x4975('0x11a')]('widget')&&_0x4de1e0['is'](_0x4975('0x3e'))&&_0x282bff(_0x4de1e0,_0x303a4c[_0x4975('0x89')]);},{'priority':'high'});}),_0x193738[_0x4975('0x1d')][_0x4975('0x32')](_0x4975('0xbd'))[_0x4975('0xdf')]({'model':'suggestion','view':(_0x42517e,_0x233c9c)=>{if(!_0x233c9c['options']['showSuggestionHighlights'])return null;const {type:_0x1000c9}=this['_splitMarkerName'](_0x42517e[_0x4975('0xfa')]);return{'classes':[_0x4975('0x38'),'ck-suggestion-marker-'+_0x1000c9],'priority':0xbb8};}});const _0x37d881=({showActiveMarkers:_0x3e8f8b=!0x0}={})=>(_0x231fce,_0x449ade,_0x2f09f5)=>{if(!_0x449ade[_0x4975('0xf2')])return;if(_0x449ade[_0x4975('0xf2')]['is'](_0x4975('0x10f')))return void _0x2f09f5[_0x4975('0xaa')]['consume'](_0x449ade[_0x4975('0xf2')],_0x231fce[_0x4975('0x113')]);const _0x5232bc=_0x2f09f5[_0x4975('0xa9')][_0x4975('0xfc')](_0x449ade[_0x4975('0xf2')]);if(!(_0x449ade['item']['is'](_0x4975('0x46'))&&_0x193738[_0x4975('0xf5')][_0x4975('0x2c')][_0x4975('0xe8')](_0x449ade[_0x4975('0xf2')])&&!_0x5232bc[_0x4975('0x11a')](_0x4975('0x124'))))return;const {id:_0x40b580}=this[_0x4975('0xde')](_0x449ade[_0x4975('0xfa')]);_0x2f09f5[_0x4975('0x89')][_0x4975('0x20')]([_0x4975('0x38'),'ck-suggestion-marker-formatBlock'],_0x5232bc),_0x2f09f5[_0x4975('0x89')][_0x4975('0xba')](_0x4975('0x94'),_0x40b580,_0x5232bc),_0x2f09f5[_0x4975('0xa9')][_0x4975('0x135')](_0x5232bc,_0x449ade[_0x4975('0xfa')]),_0x3e8f8b&&(this[_0x4975('0xd1')][_0x4975('0xd0')](_0x449ade[_0x4975('0xfa')])?_0x2f09f5['writer'][_0x4975('0x20')](_0x4975('0x4a'),_0x5232bc):_0x2f09f5[_0x4975('0x89')][_0x4975('0x116')](_0x4975('0x4a'),_0x5232bc));for(const _0x4a0c1e of _0x193738[_0x4975('0xf5')][_0x4975('0xfe')](_0x449ade[_0x4975('0xf2')])[_0x4975('0x105')]())_0x2f09f5[_0x4975('0xaa')][_0x4975('0x42')](_0x4a0c1e,_0x231fce[_0x4975('0x113')]);_0x2f09f5[_0x4975('0xaa')][_0x4975('0x42')](_0x449ade[_0x4975('0xf2')],_0x231fce['name']);};_0x193738[_0x4975('0x1d')]['for'](_0x4975('0xbd'))[_0x4975('0x33')](_0x28b71b=>{_0x28b71b['on'](_0x4975('0x4'),(_0x338cea,_0x39dbef,_0x275d6a)=>{_0x275d6a[_0x4975('0xd9')][_0x4975('0xc2')]&&_0x37d881({'showActiveMarkers':!0x1})(_0x338cea,_0x39dbef,_0x275d6a);},{'priority':'highest'});}),_0x193738[_0x4975('0x1d')][_0x4975('0x32')](_0x4975('0xbd'))[_0x4975('0x114')]({'model':_0x4975('0x76'),'view':(_0x410210,_0x2fa48c)=>_0x2fa48c['options']['showSuggestionHighlights']?null:{'group':_0x4975('0x76'),'name':_0x410210['substr'](0xb)}}),_0x193738[_0x4975('0x1d')][_0x4975('0x32')](_0x4975('0x12d'))['elementToElement']({'view':{'name':_0x4975('0x76'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3aa69d,{writer:_0x2a71be})=>{let _0x54ae54=_0x4975('0xad')+_0x3aa69d['getAttribute'](_0x4975('0x6c'))+':'+_0x3aa69d[_0x4975('0x119')]('id');return _0x3aa69d[_0x4975('0x119')](_0x4975('0x122'))&&(_0x54ae54+=':'+_0x3aa69d['getAttribute']('marker-count')),_0x2a71be['createElement'](_0x4975('0xca'),{'data-name':_0x54ae54});}}),_0x193738[_0x4975('0x1d')]['for'](_0x4975('0x12d'))[_0x4975('0x106')]({'view':'suggestion'}),_0x193738['conversion'][_0x4975('0x32')](_0x4975('0x6'))[_0x4975('0x33')](_0x376711=>{_0x376711['on'](_0x4975('0x4'),_0x37d881(),{'priority':_0x4975('0x90')});}),_0x193738[_0x4975('0x1d')][_0x4975('0x32')](_0x4975('0x6'))['add'](_0x1456c9=>{_0x1456c9['on'](_0x4975('0x11f'),(_0xad672f,_0x20a97c,_0x258d07)=>{const _0x8878c9=_0x258d07['mapper'][_0x4975('0xe')](_0x20a97c[_0x4975('0xfa')]);if(_0x8878c9)for(const _0x5ce29c of _0x8878c9)_0x5ce29c[_0x4975('0x11a')](_0x4975('0x124'))||(_0x258d07[_0x4975('0x89')][_0x4975('0x116')](['ck-suggestion-marker',_0x4975('0x8d'),_0x4975('0x4a')],_0x5ce29c),_0x258d07[_0x4975('0x89')][_0x4975('0xb0')]('data-suggestion',_0x5ce29c),_0x258d07['mapper']['unbindElementFromMarkerName'](_0x5ce29c,_0x20a97c[_0x4975('0xfa')]));},{'priority':_0x4975('0x90')});}),_0x193738['model'][_0x4975('0x9e')][_0x4975('0x3')](_0x1c610b=>{let _0x154930=!0x1;const _0x4ba931=Array[_0x4975('0x49')](_0x193738[_0x4975('0xf5')][_0x4975('0x9e')][_0x4975('0x11')][_0x4975('0x21')]()),_0x389572=new Set();for(const {name:_0x156897,data:_0x1d4814}of _0x4ba931){const {group:_0x1f8ea9,type:_0x24f548,id:_0x4ceb5c}=this[_0x4975('0xde')](_0x156897);if(_0x4975('0x76')!==_0x1f8ea9)continue;const _0x2cf65c=this['_suggestions'][_0x4975('0xd8')](_0x4ceb5c);if(null!=_0x1d4814[_0x4975('0x111')]){_0x4975('0x13f')==_0x24f548&&(_0x154930=_0x154930||Mt(_0x1d4814[_0x4975('0x111')],_0x156897,_0x1c610b,_0x193738[_0x4975('0xf5')][_0x4975('0x2c')]));if(_0x1d4814[_0x4975('0x111')]['isCollapsed']||_0x4975('0x2d')==_0x1d4814[_0x4975('0x111')][_0x4975('0x52')][_0x4975('0xed')]||_0x4975('0x50')==_0x24f548&&!Nt(_0x1d4814['newRange'])||'deletion'==_0x24f548&&!(!_t(_0x49d1c5=_0x1d4814[_0x4975('0x111')])&&!function(_0x7a1792){return _0x7a1792[_0x4975('0x102')][_0x4975('0xab')]==_0x7a1792[_0x4975('0x58')][_0x4975('0x4d')]&&_0x7a1792[_0x4975('0x102')][_0x4975('0x39')];}(_0x49d1c5)))_0x1c610b[_0x4975('0x4b')](_0x156897),_0x154930=!0x0;else{if(!_0x2cf65c||!_0x2cf65c[_0x4975('0x4e')])continue;_0x389572['add'](_0x2cf65c);}}}var _0x49d1c5;return _0x389572[_0x4975('0x5e')]>0x0&&(_0x154930=!!this[_0x4975('0xb9')](_0x389572)||_0x154930),_0x154930;}),_0x193738[_0x4975('0xf5')]['document'][_0x4975('0x3')](_0x5c46a7=>{let _0x1e4416=!0x1;for(const _0x133a61 of _0x193738['model'][_0x4975('0x9e')]['differ']['getChanges']()){if(_0x4975('0xc3')!=_0x133a61[_0x4975('0x10a')])continue;const _0x238b96=_0x133a61[_0x4975('0xc6')]['getShiftedBy'](_0x133a61[_0x4975('0x2e')]);if(_0x238b96[_0x4975('0x39')])for(const _0x497849 of this[_0x4975('0x99')][_0x4975('0xc8')]()){if(_0x497849[_0x4975('0x115')]||!_0x497849[_0x4975('0x4e')])continue;if(_0x4975('0x50')!=_0x497849[_0x4975('0x10a')])continue;const _0x2226d3=_0x497849[_0x4975('0xa')]();if(_0x2226d3[_0x4975('0x102')][_0x4975('0xab')]!=_0x2226d3[_0x4975('0x58')][_0x4975('0xab')]&&_0x2226d3['end'][_0x4975('0x43')](_0x133a61['position'])){const _0x4ec1e3=_0x193738[_0x4975('0xf5')]['createRange'](_0x2226d3[_0x4975('0x102')],_0x238b96);_0x5c46a7[_0x4975('0xc')](_0x497849['getFirstMarker'](),{'range':_0x4ec1e3}),_0x1e4416=!0x0;}}}return _0x1e4416;}),_0x193738[_0x4975('0xf5')][_0x4975('0x12')]['on']('update:suggestion',(_0x2d5323,_0x411336,_0x252f3f)=>{if(null==_0x252f3f){const {id:_0x1eae95}=this[_0x4975('0xde')](_0x411336['name']),_0xaad8ec=this['_suggestions'][_0x4975('0xd8')](_0x1eae95);_0xaad8ec&&_0xaad8ec[_0x4975('0x5')](_0x411336[_0x4975('0x113')]);}}),_0x193738['model'][_0x4975('0x9e')]['on']('change:data',()=>{const _0x2f6c21=Array[_0x4975('0x49')](_0x193738[_0x4975('0xf5')]['document'][_0x4975('0x11')]['getChangedMarkers']())[_0x4975('0xec')](_0x182dbd=>_0x4975('0x76')===this[_0x4975('0xde')](_0x182dbd['name'])[_0x4975('0x13e')]);if(0x0===_0x2f6c21[_0x4975('0x2e')])return;_0x2f6c21[_0x4975('0xf')]((_0x561c1d,_0x1017b1)=>{const _0x3e88b6=_0x561c1d[_0x4975('0x5a')]['oldRange'],_0x3ce9e5=_0x1017b1['data']['oldRange'];return null===_0x3e88b6&&null===_0x3ce9e5?0x0:null===_0x3e88b6&&null!==_0x3ce9e5?-0x1:null!==_0x3e88b6&&null===_0x3ce9e5?0x1:_0x3e88b6[_0x4975('0x102')][_0x4975('0x136')](_0x3ce9e5[_0x4975('0x102')])?-0x1:0x1;});const _0x1d387d=new Set(),_0x1891c3=new Set();for(const {name:_0x5494f0,data:_0x3a155f}of _0x2f6c21){const {id:_0x5785b3}=this['_splitMarkerName'](_0x5494f0);if(null===_0x3a155f['oldRange']){const _0x5930c6=this['_handleNewSuggestionMarker'](_0x5494f0);_0x1891c3[_0x4975('0x33')](_0x5930c6);}else{const _0x47be73=this[_0x4975('0x99')]['get'](_0x5785b3);null!==_0x3a155f['newRange']||_0x47be73['isInContent']?(_0x1d387d[_0x4975('0x33')](_0x47be73[_0x4975('0xaf')]),_0x1891c3[_0x4975('0x33')](_0x47be73)):this['_removeSuggestion'](_0x47be73);}}_0x1891c3[_0x4975('0x5e')]>0x0&&this['_refreshSuggestionsChain'](_0x1891c3);for(const _0x57d2ba of _0x1d387d)this[_0x4975('0x9')](_0x4975('0x15'),_0x57d2ba);}),_0x193738[_0x4975('0xf5')]['on'](_0x4975('0x5c'),(_0x3bd3ca,_0x3c0de5)=>{const _0x27c863=_0x3c0de5[0x0];if(!this[_0x4975('0x99')][_0x4975('0x5e')])return;if(!_0x27c863[_0x4975('0x1a')])return;if(_0x27c863[_0x4975('0x88')]['isUndo']||!_0x27c863[_0x4975('0x88')][_0x4975('0xf1')])return;let _0x156413,_0xc86ea1;switch(_0x27c863['type']){case _0x4975('0xc3'):_0x156413=_0x193738['model'][_0x4975('0xb4')](_0x27c863[_0x4975('0xc6')]),_0xc86ea1=_0x156413[_0x4975('0x2f')](_0x27c863[_0x4975('0xcd')]);break;case _0x4975('0xe4'):_0x156413=_0x193738[_0x4975('0xf5')][_0x4975('0xb4')](_0x27c863[_0x4975('0xbf')]),_0xc86ea1=_0x193738['model'][_0x4975('0xb4')](_0x27c863[_0x4975('0xf7')]);break;case _0x4975('0x10'):_0x156413=_0x193738[_0x4975('0xf5')][_0x4975('0xb4')](_0x27c863[_0x4975('0xdc')]),_0xc86ea1=_0x156413['getShiftedBy'](_0x27c863[_0x4975('0xcd')]);break;default:return;}const _0x1eaa67=_0x193738['model'][_0x4975('0xbc')](_0x156413,_0xc86ea1);_0x193738[_0x4975('0xf5')][_0x4975('0xa2')](()=>{for(const {suggestion:_0x53739b,meta:_0x4cf6c0}of this[_0x4975('0x84')](_0x1eaa67)){if(_0x53739b[_0x4975('0x115')])continue;if('formatInline'==_0x53739b[_0x4975('0x10a')])continue;const _0x79b870=_0x53739b[_0x4975('0x5a')]&&_0x53739b['data'][_0x4975('0x8')];(_0x4975('0x50')!=_0x53739b['type']||_0x4975('0xe4')==_0x27c863[_0x4975('0x10a')]&&!_0x79b870)&&(_0x4cf6c0[_0x4975('0x112')]||_0x4975('0x62')==_0x53739b[_0x4975('0x10a')]&&_0x4cf6c0[_0x4975('0x11d')]||_0x53739b[_0x4975('0xa')]()['containsRange'](_0x1eaa67)&&this[_0x4975('0x59')](_0x53739b,_0x156413,_0xc86ea1));}});},{'priority':_0x4975('0x92')}),_0x193738[_0x4975('0xf5')]['on'](_0x4975('0x13'),(_0xf1a09a,_0x565789)=>{const _0x5d144e=_0x565789[0x0],_0x16247f=_0x565789[0x1];if(_0x16247f&&_0x16247f[_0x4975('0xcf')])return;if(this[_0x4975('0xd4')])return;if(!this[_0x4975('0x8c')][_0x4975('0xc5')])return;if(_0x5d144e[_0x4975('0x11e')])return;const _0x942477=_0x193738[_0x4975('0xf5')]['schema'],{start:_0x4831fb,end:_0x37ca3b}=_0x5d144e[_0x4975('0xa')](),_0x5c9b2d=_0x4831fb['nodeAfter']&&_0x942477[_0x4975('0x2')](_0x4831fb[_0x4975('0xcc')])?null:_0x942477['getNearestSelectionRange'](_0x4831fb,'forward'),_0x5aac32=_0x37ca3b[_0x4975('0x4d')]&&_0x942477[_0x4975('0x2')](_0x37ca3b[_0x4975('0x4d')])?null:_0x942477['getNearestSelectionRange'](_0x37ca3b,'backward'),_0x2d5aae=_0x193738[_0x4975('0xf5')]['createRange'](_0x5c9b2d?_0x5c9b2d[_0x4975('0x102')]:_0x4831fb,_0x5aac32?_0x5aac32[_0x4975('0x58')]:_0x37ca3b);_0x193738[_0x4975('0xf5')][_0x4975('0xa2')](_0xbe08e9=>{this[_0x4975('0x35')](_0x2d5aae);const _0xdb83f9=_0x193738[_0x4975('0xf5')][_0x4975('0x2c')]['getNearestSelectionRange'](_0x2d5aae[_0x4975('0x102')]);_0x5d144e['is']('documentSelection')?_0xbe08e9[_0x4975('0x55')](_0xdb83f9):_0x5d144e[_0x4975('0x68')](_0xdb83f9);}),_0xf1a09a['stop']();},{'priority':_0x27a664[_0x4975('0x13a')]+0xa}),_0x193738[_0x4975('0xf5')]['on'](_0x4975('0x22'),(_0xb7c43,_0x2b76db)=>{const _0x104124=_0x2b76db[_0x2b76db[_0x4975('0x2e')]-0x1];_0x104124&&_0x104124[_0x4975('0xcf')]||this[_0x4975('0xd4')]||this[_0x4975('0x8c')][_0x4975('0xc5')]&&(_0x193738['model'][_0x4975('0xa2')](()=>{let _0x44ee24=_0x193738[_0x4975('0xf5')][_0x4975('0x22')](_0x2b76db[0x0],_0x2b76db[0x1],_0x2b76db[0x2],{'forceDefaultExecution':!0x0});if(!_0x44ee24)return;_0xb7c43[_0x4975('0x101')]=_0x44ee24[_0x4975('0x3f')]();const _0x1c8652=_0x44ee24[_0x4975('0x58')][_0x4975('0x4d')],_0x89945e=_0x193738[_0x4975('0xf5')][_0x4975('0x2c')];_0x1c8652&&_0x89945e[_0x4975('0xe8')](_0x1c8652)&&!_0x89945e[_0x4975('0x17')](_0x1c8652)&&(_0x44ee24=_0x193738[_0x4975('0xf5')][_0x4975('0xbc')](_0x44ee24[_0x4975('0x102')],_0x193738['model'][_0x4975('0xb4')](_0x1c8652,_0x4975('0x58')))),this[_0x4975('0x118')](_0x44ee24);}),_0xb7c43[_0x4975('0x130')]());},{'priority':_0x4975('0x90')}),this[_0x4975('0x104')][_0x4975('0x77')]['add']('trackChanges',this[_0x4975('0x8c')]),this[_0x4975('0xa5')](_0x4975('0xe9'));const _0x4c1bb6=new _0x192021(_0x193738,this[_0x4975('0x99')]);_0x193738['commands'][_0x4975('0x33')]('acceptSuggestion',_0x4c1bb6),this['enableCommand']('acceptSuggestion');const _0x312afb=new _0x1f6262(_0x193738,this['_suggestions']);_0x193738['commands']['add']('discardSuggestion',_0x312afb),this['enableCommand'](_0x4975('0x108')),_0x193738['commands'][_0x4975('0x33')](_0x4975('0xce'),new _0x2f831b(_0x193738,_0x4c1bb6,this[_0x4975('0x99')])),this[_0x4975('0xa5')](_0x4975('0xce')),_0x193738[_0x4975('0x77')][_0x4975('0x33')](_0x4975('0x129'),new _0x2f831b(_0x193738,_0x312afb,this[_0x4975('0x99')])),this[_0x4975('0xa5')]('discardAllSuggestions'),_0x193738[_0x4975('0x77')]['add'](_0x4975('0x8e'),new _0x2aaa79(_0x193738,_0x4c1bb6,this[_0x4975('0x99')])),this[_0x4975('0xa5')](_0x4975('0x8e')),_0x193738['commands'][_0x4975('0x33')](_0x4975('0x48'),new _0x2aaa79(_0x193738,_0x312afb,this[_0x4975('0x99')])),this[_0x4975('0xa5')](_0x4975('0x48'));const _0x54df73=_0x193738[_0x4975('0xb7')]['get'](_0x4975('0xa6'));this[_0x4975('0x7d')](_0x54df73,_0x4975('0x53'),(_0x31a26c,{threadId:_0x26820f})=>{const _0x1da5b0=this[_0x4975('0x99')][_0x4975('0xd8')](_0x26820f);_0x1da5b0&&_0x1da5b0[_0x4975('0x57')]&&0x1===_0x1da5b0[_0x4975('0x57')]['length']&&this[_0x4975('0xb3')](_0x26820f,{'hasComments':!0x0});},{'priority':_0x4975('0x27')}),this[_0x4975('0x7d')](_0x54df73,_0x4975('0x120'),(_0x46c83c,{threadId:_0x194ced})=>{const _0x3bb659=this[_0x4975('0x99')]['get'](_0x194ced);_0x3bb659&&_0x3bb659['commentThread']&&!_0x3bb659[_0x4975('0x57')][_0x4975('0x2e')]&&this[_0x4975('0xb3')](_0x194ced,{'hasComments':!0x1});},{'priority':_0x4975('0x27')});}set[_0x4975('0x37')](_0x7d3ee9){if(this[_0x4975('0xf0')])throw new _0x381070('track-changes-adapter-already-set',this);this[_0x4975('0xf0')]=_0x7d3ee9;}get['adapter'](){return this['_adapter'];}[_0x4975('0x69')]({skipNotAttached:_0xeb6c19=!0x1,toJSON:_0x5d1935=!0x1}={}){const _0xb0e3f1=[];for(const _0x437904 of this[_0x4975('0x99')][_0x4975('0xc8')]())_0xeb6c19&&!_0x437904['isInContent']||_0xb0e3f1[_0x4975('0xef')](_0x437904);return _0x5d1935?_0xb0e3f1[_0x4975('0x107')](_0x5caed6=>_0x5caed6[_0x4975('0xc1')]()):_0xb0e3f1;}[_0x4975('0xf6')](_0x28a70f){const _0x4fb5b3=this[_0x4975('0x99')]['get'](_0x28a70f);if(!_0x4fb5b3)throw new _0x381070(_0x4975('0x85'),this);return _0x4fb5b3;}[_0x4975('0xf4')](_0x1c0490){return this[_0x4975('0x99')][_0x4975('0x139')](_0x1c0490);}[_0x4975('0x1e')](_0x92b1ce){const {authorId:_0x225e40,id:_0x1b3953,attributes:_0x587a4f}=_0x92b1ce,[_0x30bbc3,_0x552509]=_0x92b1ce['type'][_0x4975('0xe4')](':'),_0x4f045b=this[_0x4975('0x99')]['get'](_0x1b3953)||this['_createSuggestion'](_0x30bbc3,_0x552509,_0x1b3953,_0x225e40,_0x587a4f);if(this[_0x4975('0x25')](_0x4f045b),this[_0x4975('0x28')](_0x4f045b,_0x30bbc3,_0x552509||null,_0x225e40),_0x4f045b[_0x4975('0x6a')]=_0x92b1ce[_0x4975('0x6a')],_0x587a4f&&_0x587a4f[_0x4975('0x44')]){const _0x52dab3=_0x587a4f[_0x4975('0x44')],_0x24ce83=this[_0x4975('0x3d')](_0x52dab3[_0x4975('0xb5')]);_0x4f045b[_0x4975('0x6b')]=_0x52dab3[_0x4975('0x6a')],_0x4f045b[_0x4975('0x1f')]=_0x24ce83,_0x4f045b['isExternal']=!0x0;}else _0x4f045b[_0x4975('0x6b')]=_0x92b1ce[_0x4975('0x6a')];switch(_0x92b1ce[_0x4975('0x5a')]&&(_0x4f045b[_0x4975('0x5a')]=_0x92b1ce[_0x4975('0x5a')]),_0x92b1ce[_0x4975('0xf8')]&&(_0x4f045b[_0x4975('0xf8')]=_0x92b1ce[_0x4975('0xf8')]),this[_0x4975('0xf0')]&&this[_0x4975('0xf0')][_0x4975('0xe3')]||(_0x4f045b['_saved']=!0x0),this[_0x4975('0x3a')][_0x4975('0xd8')](_0x4f045b)){case _0x4975('0x47'):this['_suggestionState']['set'](_0x4f045b,'dataReady');break;case _0x4975('0xe6'):_0x4f045b['isInContent']?(this[_0x4975('0x3a')][_0x4975('0x18')](_0x4f045b,_0x4975('0xbe')),this[_0x4975('0x9')]('suggestionLoaded',_0x4f045b)):this[_0x4975('0x3a')][_0x4975('0x18')](_0x4f045b,_0x4975('0x133'));}return _0x4f045b;}[_0x4975('0x9d')](_0x1180d7){this['forceDefaultExecution'](()=>{this[_0x4975('0x104')][_0x4975('0xf5')][_0x4975('0xa2')](()=>{for(const _0x5c2b7a of _0x1180d7[_0x4975('0x16')]())_0x5c2b7a['accept']();});});}['discardSuggestion'](_0xa4e3b4){this['forceDefaultExecution'](()=>{this[_0x4975('0x104')][_0x4975('0xf5')][_0x4975('0xa2')](()=>{for(const _0x504702 of _0xa4e3b4[_0x4975('0x16')]())_0x504702[_0x4975('0x29')]();});});}[_0x4975('0xa5')](_0x15d64a,_0x2cfc38){const _0x819ce3=this[_0x4975('0x104')][_0x4975('0x77')][_0x4975('0xd8')](_0x15d64a);if(!_0x819ce3)throw new _0x381070(_0x4975('0xc0'),this,{'commandName':_0x15d64a});this[_0x4975('0x70')][_0x4975('0x33')](_0x819ce3),_0x2cfc38&&_0x819ce3['on']('execute',(_0xb52b2,_0x427592)=>{this[_0x4975('0x8c')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x427592[_0x4975('0x2e')]>0x0&&_0x427592[_0x427592[_0x4975('0x2e')]-0x1]&&_0x427592[_0x427592['length']-0x1]['forceDefaultExecution']||(_0x2cfc38((..._0x179291)=>_0x819ce3['execute'](..._0x179291,{'forceDefaultExecution':!0x0}),..._0x427592),_0xb52b2[_0x4975('0x130')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x10acc3){let _0x16b93f,_0x1820ad;const _0x1f61a5=this[_0x4975('0xd4')];this[_0x4975('0xd4')]=!0x0;try{_0x16b93f=_0x10acc3();}catch(_0x51b8a0){_0x1820ad=_0x51b8a0;}return _0x1f61a5||(this[_0x4975('0xd4')]=!0x1),_0x1820ad&&_0x381070[_0x4975('0xd5')](_0x1820ad,this),_0x16b93f;}['markInsertion'](_0xf4b149,_0x5ac7ca=null,_0x54e6bf={}){if(_0xf4b149[_0x4975('0x11e')])return null;const _0x3ad952=this[_0x4975('0x104')][_0x4975('0xb7')]['get']('Users')['me'];for(const {suggestion:_0x3a988b,meta:_0x4df240}of this[_0x4975('0x84')](_0xf4b149,_0x4975('0x62')))if(_0x4df240[_0x4975('0x11d')]){if(!_0x4df240['isNextTo']){if(!this[_0x4975('0x41')]&&_0x4df240[_0x4975('0x112')])continue;return _0x3a988b;}if(_0x5ac7ca==_0x3a988b[_0x4975('0xe7')]){const _0x5a5d93=_0x3a988b[_0x4975('0xa')]();return _0x5a5d93[_0x4975('0x102')][_0x4975('0x43')](_0xf4b149[_0x4975('0x58')])?this[_0x4975('0x34')](_0x3a988b,this['_model']['createRange'](_0xf4b149['start'],_0x5a5d93[_0x4975('0x58')])):this['_setSuggestionRange'](_0x3a988b,this[_0x4975('0xb1')]['createRange'](_0x5a5d93[_0x4975('0x102')],_0xf4b149['end'])),_0x3a988b;}}const _0x471cea=_0x47339f(),_0x4372ff=_0x3ad952['id'],_0x2feef0=_0x5ac7ca?_0x4975('0x0')+_0x5ac7ca:_0x4975('0x62'),_0x48fc4f=this['_setSuggestionData']({'id':_0x471cea,'type':_0x2feef0,'createdAt':new Date(),'authorId':_0x4372ff,'attributes':_0x54e6bf});return this[_0x4975('0x138')](_0x2feef0,_0x471cea,_0x4372ff,_0xf4b149),_0x48fc4f;}[_0x4975('0x36')](_0x5bce00,_0x52e047='multi',_0x39925f={}){const _0x45b0ce=this[_0x4975('0x104')][_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0xff'))['me'],_0x364718=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x62'),_0x52e047,'join');for(const _0x4a7d2c of this[_0x4975('0x69')]())if(_0x4a7d2c[_0x4975('0x1f')]['id']==_0x45b0ce['id']&&_0x4975('0x62')==_0x4a7d2c[_0x4975('0x10a')]&&_0x4a7d2c[_0x4975('0xe7')]==_0x52e047&&(_0x364718(_0x4a7d2c[_0x4975('0x40')](),_0x5bce00)||_0x364718(_0x5bce00,_0x4a7d2c[_0x4975('0x40')]()))){for(const _0x4d0e0d of _0x5bce00)_0x4a7d2c['addRange'](_0x4d0e0d);return _0x4a7d2c;}if(this[_0x4975('0x41')])for(const _0x7a6ace of _0x5bce00)for(const {suggestion:_0xc37f83,meta:_0x33d10a}of this['_findSuggestions'](_0x7a6ace,'insertion')){if(!_0x33d10a[_0x4975('0x11d')])continue;let _0xf840=!0x0;for(const _0x22ca88 of _0xc37f83[_0x4975('0x40')]())for(const _0x3de2f1 of _0x5bce00)if(!_0x22ca88[_0x4975('0xe5')](_0x3de2f1)){_0xf840=!0x1;break;}if(_0xf840)return _0xc37f83;}const _0xfa10d6=_0x47339f(),_0x459ae4=_0x45b0ce['id'],_0x4f664d='insertion:'+_0x52e047,_0x30d033=this[_0x4975('0xb8')]({'id':_0xfa10d6,'type':_0x4f664d,'createdAt':new Date(),'authorId':_0x459ae4,'attributes':_0x39925f});for(const _0x2b620b of _0x5bce00)this[_0x4975('0x138')](_0x4f664d,_0xfa10d6,_0x459ae4,_0x2b620b,_0x2568d3[_0x4975('0xbb')]());return _0x30d033;}['markInlineFormat'](_0x5f4347,_0x45c6c1,_0x590aa4=null,_0x4c30e3={}){if(_0x590aa4=_0x590aa4||$t(_0x45c6c1),_0x5f4347['isCollapsed'])return null;if(_0x4975('0xd6')===this[_0x4975('0x79')]){const _0x4fd63b=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x13f'),_0x590aa4,_0x4975('0xc7'));return this[_0x4975('0xcf')](()=>_0x4fd63b([_0x5f4347],_0x45c6c1,_0x4c30e3)),null;}const _0x3ae9cd=this['editor'][_0x4975('0xb7')]['get']('Users')['me'],_0x22c8f9=[];if(_0x4975('0x7f')!==this[_0x4975('0x79')])for(const {suggestion:_0x24ba17,meta:_0x5e5a32}of this['_findSuggestions'](_0x5f4347,_0x4975('0x62')))_0x5e5a32[_0x4975('0x11d')]&&!_0x5e5a32[_0x4975('0x2b')]&&_0x22c8f9[_0x4975('0xef')](..._0x24ba17[_0x4975('0x40')]());const _0x4ae645=function(_0xc10a14,_0x27b132){const _0x20e7d8=[];for(const _0x41ce19 of _0x27b132){const _0x1e017f=_0xc10a14[_0x4975('0x7b')](_0x41ce19);_0x1e017f&&_0x20e7d8['push'](_0x1e017f);}return _0x20e7d8;}(_0x5f4347,_0x22c8f9),_0x5edf98=function(_0x477aba,_0x426753){const _0x407c5f=[_0x477aba];for(const _0x152e9b of _0x426753){let _0x3ec127=0x0;for(;_0x3ec127<_0x407c5f[_0x4975('0x2e')];){const _0x33afbc=_0x407c5f[_0x3ec127][_0x4975('0xf3')](_0x152e9b);_0x407c5f[_0x4975('0x131')](_0x3ec127,0x1,..._0x33afbc),_0x3ec127+=_0x33afbc[_0x4975('0x2e')];}}return _0x407c5f;}(_0x5f4347,_0x22c8f9);_0x4ae645[_0x4975('0x2e')]&&this[_0x4975('0xb1')][_0x4975('0xa2')](()=>{for(const _0x5319ed of _0x4ae645){const _0x211580=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x13f'),_0x590aa4,'accept');this[_0x4975('0xcf')](()=>_0x211580([_0x5319ed],_0x45c6c1,_0x4c30e3));}});for(const _0x5b9263 of _0x5edf98){let _0x3e6e8e=null,_0x53535a=_0x5b9263[_0x4975('0x102')],_0x196ccf=_0x5b9263[_0x4975('0x58')];for(const {suggestion:_0x378e1d,meta:_0x5796dc}of this['_findSuggestions'](_0x5b9263,_0x4975('0x13f'))){if(!_0x5796dc[_0x4975('0x11d')])continue;if(_0x378e1d[_0x4975('0xe7')]!=_0x590aa4)continue;const _0x4d49bf=_0x378e1d[_0x4975('0xa')]();if(_0x4d49bf[_0x4975('0xe5')](_0x5b9263,!0x0))return null;_0x53535a=_0x53535a[_0x4975('0x136')](_0x4d49bf['start'])?_0x53535a:_0x4d49bf[_0x4975('0x102')],_0x196ccf=_0x196ccf[_0x4975('0x10d')](_0x4d49bf[_0x4975('0x58')])?_0x196ccf:_0x4d49bf[_0x4975('0x58')],_0x3e6e8e?_0x4d49bf[_0x4975('0x102')][_0x4975('0x136')](_0x3e6e8e[_0x4975('0xa')]()[_0x4975('0x102')])?(_0x3e6e8e[_0x4975('0x67')](),_0x3e6e8e=_0x378e1d):_0x378e1d[_0x4975('0x67')]():_0x3e6e8e=_0x378e1d;}const _0x291d22=this[_0x4975('0xb1')]['createRange'](_0x53535a,_0x196ccf);if(_0x3e6e8e)this[_0x4975('0x34')](_0x3e6e8e,_0x291d22);else{const _0x128b10=_0x47339f(),_0x409790=_0x3ae9cd['id'];this['_setSuggestionData']({'id':_0x128b10,'type':'formatInline:'+_0x590aa4,'data':_0x45c6c1,'createdAt':new Date(),'authorId':_0x409790,'attributes':_0x4c30e3}),this[_0x4975('0x138')](_0x4975('0x54')+_0x590aa4,_0x128b10,_0x409790,_0x291d22);}}return null;}[_0x4975('0xa4')](_0x37a1c3,_0x35a088,_0x172f29=[],_0x15a3dc=null,_0xce6ac1={}){_0x35a088[_0x4975('0xe1')]||(_0x35a088[_0x4975('0xe1')]=_0x35a088[_0x4975('0x73')]),_0x35a088['multipleBlocks']=_0x37a1c3['is'](_0x4975('0x13d')),_0x15a3dc=_0x15a3dc||$t(_0x35a088);const _0x314707=_0x172f29[_0x4975('0x107')](_0x57f616=>Rt(_0x57f616,this[_0x4975('0xb1')])),_0x5037fa=_0x37a1c3['is'](_0x4975('0x13d'))?_0x37a1c3:Rt(_0x37a1c3,this['_model']);if(_0x4975('0xd6')===this[_0x4975('0x79')]){const _0xa85b1c=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x50'),_0x15a3dc,_0x4975('0xc7'));return this['forceDefaultExecution'](()=>_0xa85b1c([_0x5037fa],_0x35a088,_0xce6ac1)),null;}_0x314707[_0x4975('0xef')](_0x5037fa);let _0x602350=!0x0;for(const _0xe841d9 of _0x314707)if(!this[_0x4975('0xea')](_0xe841d9)){_0x602350=!0x1;break;}if(_0x602350&&_0x4975('0x7f')!==this[_0x4975('0x79')]){const _0x4f3192=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x50'),_0x15a3dc,_0x4975('0xc7'));return this[_0x4975('0xcf')](()=>_0x4f3192([_0x5037fa],_0x35a088,_0xce6ac1)),null;}let _0x2d329e=null,_0x5d57dc=_0x5037fa[_0x4975('0x102')],_0x4b1928=_0x5037fa[_0x4975('0x58')];for(const {suggestion:_0x2844cd,meta:_0x1060ba}of this[_0x4975('0x84')](_0x5037fa,_0x4975('0x50'))){if(!_0x1060ba['isOwn']||_0x1060ba[_0x4975('0xfb')]||_0x1060ba[_0x4975('0x112')]||_0x1060ba[_0x4975('0x2b')])continue;if(_0x2844cd[_0x4975('0x5a')][_0x4975('0xe1')]!=_0x35a088['formatGroupId'])continue;const _0x20f5a7=_0x2844cd[_0x4975('0xa')]();if(_0x2844cd[_0x4975('0xe7')]==_0x15a3dc){if(_0x20f5a7[_0x4975('0xe5')](_0x5037fa,!0x0))return null;_0x5d57dc=_0x5d57dc['isBefore'](_0x20f5a7[_0x4975('0x102')])?_0x5d57dc:_0x20f5a7[_0x4975('0x102')],_0x4b1928=_0x4b1928[_0x4975('0x10d')](_0x20f5a7[_0x4975('0x58')])?_0x4b1928:_0x20f5a7[_0x4975('0x58')],_0x2d329e?_0x20f5a7[_0x4975('0x102')][_0x4975('0x136')](_0x2d329e[_0x4975('0xa')]()[_0x4975('0x102')])?(_0x2d329e[_0x4975('0x67')](),_0x2d329e=_0x2844cd):_0x2844cd[_0x4975('0x67')]():_0x2d329e=_0x2844cd;}else{const _0x3e6d7c=_0x5037fa['getIntersection'](_0x20f5a7);this['_cutOutSuggestionMarker'](_0x2844cd,_0x3e6d7c);}}const _0x354cfb=this[_0x4975('0x104')][_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0xff'))['me'],_0x237614=_0x47339f(),_0x3d3165=_0x354cfb['id'];if(_0x2d329e)return this['_setSuggestionRange'](_0x2d329e,this['_model'][_0x4975('0xbc')](_0x5d57dc,_0x4b1928)),_0x2d329e;{const _0x430bc0=this[_0x4975('0xb8')]({'id':_0x237614,'type':_0x4975('0x11c')+_0x15a3dc,'data':_0x35a088,'createdAt':new Date(),'authorId':_0x3d3165,'attributes':_0xce6ac1});return this[_0x4975('0x138')]('formatBlock:'+_0x15a3dc,_0x237614,_0x3d3165,this[_0x4975('0xb1')][_0x4975('0xbc')](_0x5d57dc,_0x4b1928)),_0x430bc0;}}[_0x4975('0x83')](_0xeecd31,_0xd88804,_0x1a0bff=[],_0x4f3b94=null,_0x47f9e1={}){_0xd88804[_0x4975('0xe1')]||(_0xd88804[_0x4975('0xe1')]=_0xd88804[_0x4975('0x73')]);const _0x1fbaa5=_0xeecd31[0x0];_0xd88804[_0x4975('0x8')]=_0x1fbaa5['is'](_0x4975('0x13d')),_0x4f3b94=_0x4f3b94||$t(_0xd88804);const _0x59ff94=_0x1a0bff[_0x4975('0x107')](_0x17a0fd=>Rt(_0x17a0fd,this[_0x4975('0xb1')])),_0xfc45bf=_0x1fbaa5['is']('range')?_0xeecd31:_0xeecd31['map'](_0x43d1c2=>Rt(_0x43d1c2,this[_0x4975('0xb1')]));if(_0x4975('0xd6')===this[_0x4975('0x79')]){const _0x16ea99=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x50'),_0x4f3b94,_0x4975('0xc7'));return this[_0x4975('0xcf')](()=>_0x16ea99(_0xfc45bf,_0xd88804,_0x47f9e1)),null;}_0x59ff94[_0x4975('0xef')](..._0xfc45bf);let _0x2c4af9=!0x0;for(const _0x402449 of _0x59ff94)if(!this['_rangeIsInLocalUserInsertion'](_0x402449)){_0x2c4af9=!0x1;break;}if(_0x2c4af9&&_0x4975('0x7f')!==this[_0x4975('0x79')]){const _0x160718=this['_suggestionFactory'][_0x4975('0x10e')](_0x4975('0x50'),_0x4f3b94,_0x4975('0xc7'));return this[_0x4975('0xcf')](()=>_0x160718(_0xfc45bf,_0xd88804,_0x47f9e1)),null;}const _0x3b4f71=this[_0x4975('0x104')][_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0xff'))['me'];for(const _0x4f3a0d of this[_0x4975('0x69')]()){if(_0x4f3a0d[_0x4975('0x1f')]['id']!=_0x3b4f71['id'])continue;if(_0x4975('0x50')!=_0x4f3a0d['type']||_0x4f3a0d[_0x4975('0x5a')][_0x4975('0xe1')]!=_0xd88804[_0x4975('0xe1')])continue;const _0x4fc772=_0x4f3a0d[_0x4975('0xe7')]==_0x4f3b94;for(let _0x1b9719=0x0;_0x1b9719<_0xfc45bf['length'];_0x1b9719++){const _0x301246=_0xfc45bf[_0x1b9719];for(const _0x5535b7 of _0x4f3a0d[_0x4975('0xae')]()){const _0xda2951=_0x5535b7[_0x4975('0xc4')]();if(_0x301246[_0x4975('0x43')](_0xda2951)){_0x4fc772?(_0xfc45bf[_0x4975('0x131')](_0x1b9719,0x1),_0x1b9719--):_0x4f3a0d[_0x4975('0x4b')](_0x5535b7[_0x4975('0x113')]);break;}}}}if(0x0==_0xfc45bf[_0x4975('0x2e')])return null;const _0x597359=this['_suggestionFactory']['getSuggestionCallback'](_0x4975('0x50'),_0x4f3b94,'join');for(const _0x571423 of this[_0x4975('0x69')]())if(_0x571423[_0x4975('0x1f')]['id']==_0x3b4f71['id']&&_0x4975('0x50')==_0x571423[_0x4975('0x10a')]&&_0x571423[_0x4975('0x5a')][_0x4975('0xe1')]==_0xd88804[_0x4975('0xe1')]&&_0x571423[_0x4975('0xe7')]==_0x4f3b94&&(_0x597359(_0x571423[_0x4975('0x40')](),_0xfc45bf)||_0x597359(_0xfc45bf,_0x571423[_0x4975('0x40')]()))){for(const _0xe732d7 of _0xfc45bf)_0x571423[_0x4975('0xf9')](_0xe732d7);return _0x571423;}const _0x55b883=_0x47339f(),_0x3d8a23=_0x3b4f71['id'],_0x566d99=_0x4975('0x11c')+_0x4f3b94,_0x287255=this[_0x4975('0xb8')]({'id':_0x55b883,'type':_0x566d99,'data':_0xd88804,'createdAt':new Date(),'authorId':_0x3d8a23,'attributes':_0x47f9e1});for(const _0x4ceacb of _0xfc45bf)this[_0x4975('0x138')](_0x566d99,_0x55b883,_0x3d8a23,_0x4ceacb,_0x2568d3['getMultiRangeId']());return _0x287255;}[_0x4975('0x35')](_0x351ed2,_0x15b63a=null,_0x46e079={}){if(_0x351ed2[_0x4975('0x11e')])return null;const _0x217008=this['editor']['plugins'][_0x4975('0xd8')]('Users')['me'],_0x25605f=new _0x199bb8(_0x351ed2[_0x4975('0x102')],_0x351ed2[_0x4975('0x58')]);for(const {suggestion:_0x3a7e4c,meta:_0x2ee936}of this['_findSuggestions'](_0x25605f,_0x4975('0x62')))if(_0x2ee936['isOwn']&&!_0x2ee936[_0x4975('0xfb')]){if(_0x3a7e4c[_0x4975('0x115')]){const _0x2f8ad8=_0x3a7e4c[_0x4975('0x40')]()[_0x4975('0xec')](_0xf05268=>_0x4975('0x2d')!=_0xf05268['root'][_0x4975('0xed')]);_0x2f8ad8['every'](_0x2ea93f=>_0x25605f[_0x4975('0xe5')](_0x2ea93f,!0x0))&&_0x3a7e4c[_0x4975('0x29')]();if(_0x2f8ad8[_0x4975('0x66')](_0x3351dc=>_0x3351dc[_0x4975('0xe5')](_0x25605f,!0x0))){const _0x3fd680=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x97'),_0x15b63a,'accept');return this['forceDefaultExecution'](()=>_0x3fd680([_0x25605f],null,_0x46e079)),null;}}else{const _0x3dc8ba=_0x25605f[_0x4975('0x7b')](_0x3a7e4c[_0x4975('0xa')]());null!==_0x3dc8ba&&_0x3a7e4c[_0x4975('0x7')]([_0x3dc8ba],null,_0x46e079);}}if(_0x25605f[_0x4975('0x51')](),_0x25605f[_0x4975('0x11e')]||'$graveyard'==_0x25605f[_0x4975('0x52')][_0x4975('0xed')])return null;let _0x46de35=null,_0x4ad1e0=_0x25605f[_0x4975('0x102')],_0x5d1d54=_0x25605f['end'];for(const {suggestion:_0x21bd67,meta:_0x2b0ebe}of this[_0x4975('0x84')](_0x25605f,_0x4975('0x97')))if(_0x2b0ebe[_0x4975('0x11d')]){if(_0x21bd67['isMultiRange']&&this[_0x4975('0x41')]){let _0x4f1bea=!0x0;for(const _0x2a36fa of _0x21bd67['getRanges']()){if(_0x2a36fa[_0x4975('0xe5')](_0x25605f,!0x0))return _0x21bd67;_0x25605f[_0x4975('0xe5')](_0x2a36fa)||(_0x4f1bea=!0x1);}_0x4f1bea&&_0x21bd67[_0x4975('0x29')]();}else{const _0x42547e=_0x21bd67[_0x4975('0xa')]();if(_0x42547e[_0x4975('0xe5')](_0x25605f,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x2b0ebe['containsRangeInObject'])continue;return _0x21bd67;}_0x4ad1e0=_0x4ad1e0['isBefore'](_0x42547e[_0x4975('0x102')])?_0x4ad1e0:_0x42547e[_0x4975('0x102')],_0x5d1d54=_0x5d1d54[_0x4975('0x10d')](_0x42547e[_0x4975('0x58')])?_0x5d1d54:_0x42547e[_0x4975('0x58')],_0x46de35?_0x42547e['start'][_0x4975('0x136')](_0x46de35[_0x4975('0xa')]()[_0x4975('0x102')])?(_0x46de35[_0x4975('0x67')](),_0x46de35=_0x21bd67):_0x21bd67[_0x4975('0x67')]():_0x46de35=_0x21bd67;}}if(_0x46de35)return this[_0x4975('0x34')](_0x46de35,this[_0x4975('0xb1')]['createRange'](_0x4ad1e0,_0x5d1d54)),_0x46de35;{const _0x2ff442=_0x47339f(),_0x53ff1f=this[_0x4975('0xb1')][_0x4975('0xbc')](_0x4ad1e0,_0x5d1d54),_0x591982=_0x217008['id'],_0x37804c=_0x15b63a?_0x4975('0xc9')+_0x15b63a:'deletion',_0x35b608=this[_0x4975('0xb8')]({'id':_0x2ff442,'type':_0x37804c,'createdAt':new Date(),'authorId':_0x591982,'attributes':_0x46e079});return this[_0x4975('0x138')](_0x37804c,_0x2ff442,_0x591982,_0x53ff1f),_0x35b608;}}['markMultiRangeDeletion'](_0xb19ab,_0xb5b394=_0x4975('0xd2'),_0x43c842={}){const _0x287ff0=this[_0x4975('0x104')][_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0xff'))['me'],_0x27c0c1=_0xb19ab[_0x4975('0x107')](_0x34e767=>new _0x199bb8(_0x34e767[_0x4975('0x102')],_0x34e767['end'])),_0xda5146=new Set();for(const _0x38dcf9 of _0x27c0c1)for(const {suggestion:_0x594b7d,meta:_0x4ef21d}of this[_0x4975('0x84')](_0x38dcf9,_0x4975('0x62')))_0x4ef21d[_0x4975('0x11d')]&&!_0x4ef21d[_0x4975('0xfb')]&&_0xda5146[_0x4975('0x33')](_0x594b7d);for(const _0x1c00f8 of _0xda5146)if(_0x1c00f8['isMultiRange']){const _0x29db42=_0x1c00f8[_0x4975('0x40')]();(!_0x1c00f8[_0x4975('0xf8')]||!_0x1c00f8[_0x4975('0xf8')][_0x4975('0x93')])&&(_0x29db42['every'](_0x2ef05a=>_0x27c0c1[_0x4975('0x66')](_0x4d3059=>_0x4d3059['containsRange'](_0x2ef05a,!0x0)))&&_0x1c00f8[_0x4975('0x29')]());if(_0x27c0c1['every'](_0x33a0d4=>_0x29db42[_0x4975('0x66')](_0x5780fb=>_0x5780fb[_0x4975('0xe5')](_0x33a0d4,!0x0)))){const _0x400a6e=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x97'),_0xb5b394,_0x4975('0xc7'));return this[_0x4975('0xcf')](()=>_0x400a6e(_0xb19ab,null,_0x43c842)),null;}}else{const _0x4fd87c=_0x1c00f8[_0x4975('0xa')]();_0x27c0c1[_0x4975('0x66')](_0x18c13f=>_0x18c13f[_0x4975('0xe5')](_0x4fd87c,!0x0))&&_0x1c00f8['discard']();if(_0x27c0c1[_0x4975('0x13c')](_0x3af9d0=>_0x4fd87c[_0x4975('0xe5')](_0x3af9d0,!0x0))){const _0x5bb9fc=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x97'),_0xb5b394,_0x4975('0xc7'));return this[_0x4975('0xcf')](()=>_0x5bb9fc(_0x27c0c1,null,_0x43c842)),null;}}const _0x8c5c5c=this[_0x4975('0x125')][_0x4975('0x10e')](_0x4975('0x97'),_0xb5b394,'join');let _0x2914ef=null;for(const _0x14d8e1 of this[_0x4975('0x69')]())if(_0x14d8e1['author']['id']==_0x287ff0['id']&&_0x14d8e1[_0x4975('0x4e')]&&_0x4975('0x97')==_0x14d8e1['type']&&_0x14d8e1['subType']==_0xb5b394&&(_0x8c5c5c(_0x14d8e1[_0x4975('0x40')](),_0x27c0c1)||_0x8c5c5c(_0x27c0c1,_0x14d8e1[_0x4975('0x40')]()))){if(_0x2914ef){if(_0x14d8e1[_0x4975('0x57')]&&_0x14d8e1[_0x4975('0x57')][_0x4975('0x2e')])continue;for(const _0x1d36de of _0x14d8e1[_0x4975('0x40')]())_0x2914ef[_0x4975('0x7e')](_0x1d36de)||_0x2914ef[_0x4975('0xf9')](_0x1d36de);_0x14d8e1[_0x4975('0x67')]();}else{_0x2914ef=_0x14d8e1;for(const _0x1c83a0 of _0x27c0c1)_0x14d8e1[_0x4975('0x7e')](_0x1c83a0)||_0x14d8e1[_0x4975('0xf9')](_0x1c83a0);}}if(_0x2914ef)return _0x2914ef;_0xda5146[_0x4975('0x6f')]();for(const _0x273940 of _0x27c0c1)for(const {suggestion:_0x130eca,meta:_0x1c7ac9}of this['_findSuggestions'](_0x273940,_0x4975('0x97')))_0x1c7ac9['isOwn']&&_0xda5146['add'](_0x130eca);for(const _0x299b5d of _0xda5146){const _0x250cb1=_0x299b5d[_0x4975('0x40')]();if(!_0x43c842||!_0x43c842[_0x4975('0x93')]){if(_0x27c0c1[_0x4975('0x13c')](_0x3b6be3=>_0x250cb1[_0x4975('0x66')](_0x388e2a=>_0x388e2a['containsRange'](_0x3b6be3,!0x0))))return _0x299b5d;}(!_0x299b5d[_0x4975('0xf8')]||!_0x299b5d[_0x4975('0xf8')]['skipNestingCheck'])&&(_0x250cb1[_0x4975('0x13c')](_0x41e8fb=>_0x27c0c1['some'](_0x5720ef=>_0x5720ef['containsRange'](_0x41e8fb,!0x0)))&&_0x299b5d[_0x4975('0x29')]());}const _0x49e9af=_0x47339f(),_0x22cdd8=_0x287ff0['id'],_0x35f4e3=_0x4975('0xc9')+_0xb5b394,_0x55793d=this[_0x4975('0xb8')]({'id':_0x49e9af,'type':_0x35f4e3,'createdAt':new Date(),'authorId':_0x22cdd8,'attributes':_0x43c842});for(const _0x319d46 of _0x27c0c1)_0x319d46['detach'](),_0x319d46[_0x4975('0x11e')]||_0x4975('0x2d')==_0x319d46[_0x4975('0x52')][_0x4975('0xed')]||this[_0x4975('0x138')](_0x35f4e3,_0x49e9af,_0x22cdd8,_0x319d46,_0x2568d3[_0x4975('0xbb')]());return _0x55793d;}['_setSuggestionRange'](_0xea9ff7,_0x10b0c2){const _0x3ffd0b=_0xea9ff7[_0x4975('0x5f')]();this[_0x4975('0xb1')][_0x4975('0xa2')](_0x115b29=>{_0x115b29[_0x4975('0xc')](_0x3ffd0b,{'range':_0x10b0c2});});}['_addThreadToSuggestion'](_0x527bc4){const _0xa4eed4=_0x527bc4['id'],_0x8c502f=this['editor']['config'][_0x4975('0xd8')](_0x4975('0x26'));this[_0x4975('0x72')][_0x4975('0x19')](_0xa4eed4)||this[_0x4975('0x72')][_0x4975('0x8f')]({'channelId':_0x8c502f,'threadId':_0xa4eed4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5f10eb=this[_0x4975('0x72')][_0x4975('0x3b')](_0xa4eed4);_0x5f10eb[_0x4975('0x5b')]('isRemovable'),_0x5f10eb[_0x4975('0xcb')]=!0x1,_0x527bc4[_0x4975('0x57')]=_0x5f10eb;}['_checkSuggestionCorrectness'](_0x25805b,_0x4a91a7,_0xcd7022,_0x25a9e9){if(_0x25805b[_0x4975('0x10a')]!=_0x4a91a7||_0x25805b[_0x4975('0xe7')]!=_0xcd7022||_0x25805b[_0x4975('0x10b')]['id']!=_0x25a9e9)throw this[_0x4975('0x104')][_0x4975('0x95')](_0x4975('0xa3')),new _0x381070(_0x4975('0xa3'),this);}[_0x4975('0x8a')](_0x1f82da,_0x36d5bc){const _0x3c568e=_0x1f82da[_0x4975('0xa')]();if(_0x36d5bc['isEqual'](_0x3c568e))_0x1f82da[_0x4975('0x67')]();else{if(_0x3c568e[_0x4975('0xe5')](_0x36d5bc)){const _0x389042=this[_0x4975('0xb1')]['createPositionAt'](_0x36d5bc[_0x4975('0x102')][_0x4975('0x4d')],'end');this[_0x4975('0x34')](_0x1f82da,this['_model'][_0x4975('0xbc')](_0x3c568e[_0x4975('0x102')],_0x389042));const _0x3e267b=_0x47339f(),_0x4e5228=_0x1f82da['creator']['id'],_0x11ab39=_0x1f82da['type']+':'+_0x1f82da[_0x4975('0xe7')];this[_0x4975('0xb8')]({'id':_0x3e267b,'type':_0x11ab39,'createdAt':new Date(),'authorId':_0x4e5228,'data':_0x1f82da['data'],'attributes':_0x1f82da[_0x4975('0xf8')]});const _0xfba268=this['_model'][_0x4975('0xb4')](_0x36d5bc[_0x4975('0x58')]['parent'],_0x4975('0x64')),_0x4fa7d8=this['_model'][_0x4975('0xbc')](_0xfba268,_0x3c568e[_0x4975('0x58')]);this[_0x4975('0x138')](_0x11ab39,_0x3e267b,_0x4e5228,_0x4fa7d8);}else{if(_0x3c568e['containsPosition'](_0x36d5bc[_0x4975('0x102')])){const _0xc125c9=this[_0x4975('0xb1')]['createPositionAt'](_0x36d5bc[_0x4975('0x102')][_0x4975('0x4d')],_0x4975('0x58'));this['_setSuggestionRange'](_0x1f82da,this[_0x4975('0xb1')][_0x4975('0xbc')](_0x3c568e[_0x4975('0x102')],_0xc125c9));}else{const _0x3607f6=this[_0x4975('0xb1')][_0x4975('0xb4')](_0x36d5bc['end'][_0x4975('0xab')],_0x4975('0x64'));this[_0x4975('0x34')](_0x1f82da,this['_model'][_0x4975('0xbc')](_0x3607f6,_0x3c568e['end']));}}}}[_0x4975('0xea')](_0x5bf31f){for(const {suggestion:_0x12e3cd,meta:_0x12aea9}of this[_0x4975('0x84')](_0x5bf31f,'insertion')){if(!_0x12aea9[_0x4975('0x11d')])continue;const _0x4e675a=_0x12e3cd['getRanges']();for(const _0x4b5476 of _0x4e675a)if(!_0x5bf31f['getDifference'](_0x4b5476)[_0x4975('0x2e')])return!0x0;}return!0x1;}[_0x4975('0x12a')](_0x362410){const _0x23e3a3=this['editor'][_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0xff'))['getUser'](_0x362410);if(!_0x23e3a3)throw new _0x381070(_0x4975('0x12b'),this);return _0x23e3a3;}['_getExternalAuthor'](_0x13cedd){const _0x23069a=this[_0x4975('0x104')]['plugins'][_0x4975('0xd8')](_0x4975('0xff')),_0x12f143=_0x4f2d4a(_0x4975('0x9f')+_0x13cedd),_0x30fa5e=_0x23069a['getUser'](_0x12f143);return _0x30fa5e||_0x23069a[_0x4975('0x14')]({'id':_0x12f143,'name':_0x13cedd});}[_0x4975('0x71')](_0x53b614,_0x534030,_0x38a41a,_0x3b498a,_0x34845f){const _0x4ab24d=this[_0x4975('0x12a')](_0x3b498a),_0x3bf604=this[_0x4975('0x125')]['buildSuggestion'](_0x53b614,_0x534030,_0x38a41a,_0x4ab24d,_0x34845f,_0x1b2ed0=>this[_0x4975('0xb3')](_0x38a41a,{'attributes':_0x1b2ed0}));return this['listenTo'](_0x3bf604,_0x4975('0xc7'),()=>{this[_0x4975('0xb3')](_0x38a41a,{'state':'accepted'});},{'priority':_0x4975('0x90')}),this[_0x4975('0x7d')](_0x3bf604,'discard',()=>{this[_0x4975('0xb3')](_0x38a41a,{'state':_0x4975('0x86')});},{'priority':_0x4975('0x90')}),this[_0x4975('0x99')][_0x4975('0x18')](_0x38a41a,_0x3bf604),this[_0x4975('0x3a')]['set'](_0x3bf604,_0x4975('0x47')),_0x3bf604;}[_0x4975('0xde')](_0x45186e){const _0x3fc844=_0x45186e[_0x4975('0xe4')](':');return{'group':_0x3fc844[0x0],'type':_0x3fc844[0x1],'subType':_0x3fc844[_0x4975('0x2e')]>=0x5?_0x3fc844[0x2]:null,'id':_0x3fc844['length']<0x5?_0x3fc844[0x2]:_0x3fc844[0x3],'authorId':_0x3fc844['length']<0x5?_0x3fc844[0x3]:_0x3fc844[0x4],'markerCount':0x6==_0x3fc844[_0x4975('0x2e')]?_0x3fc844[0x5]:null};}[_0x4975('0x59')](_0x15a414,_0x371ec2,_0x326cd1){const _0x146f50=_0x15a414[_0x4975('0xa')](),_0x47c53f=_0x146f50[_0x4975('0x102')],_0x44bb3c=_0x146f50['end'];this[_0x4975('0x34')](_0x15a414,this['_model']['createRange'](_0x47c53f,_0x371ec2));const _0x1061b0=_0x47339f(),_0x4ddf4b=_0x15a414[_0x4975('0x10b')]['id'],_0x54cf19=_0x15a414[_0x4975('0x10a')]+(_0x15a414['subType']?':'+_0x15a414[_0x4975('0xe7')]:'');this['_setSuggestionData']({'id':_0x1061b0,'type':_0x54cf19,'createdAt':new Date(),'authorId':_0x4ddf4b,'originalSuggestionId':_0x15a414['id'],'attributes':_0x15a414['attributes'],'data':_0x15a414[_0x4975('0x5a')]}),_0x4975('0x50')==_0x15a414['type']&&(_0x326cd1=this[_0x4975('0xb1')][_0x4975('0x9b')](_0x326cd1['parent'])),this[_0x4975('0x138')](_0x54cf19,_0x1061b0,_0x4ddf4b,this[_0x4975('0xb1')][_0x4975('0xbc')](_0x326cd1,_0x44bb3c));}[_0x4975('0x84')](_0x60687d,_0xa03bc2=null){const _0xc3ae35=[],_0x2a2f39=this[_0x4975('0xb1')][_0x4975('0x2c')],_0x32268c=this[_0x4975('0x104')][_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0xff'))['me'];for(const _0x190060 of this[_0x4975('0x69')]())if(_0x190060[_0x4975('0x4e')]&&(!_0xa03bc2||_0x190060[_0x4975('0x10a')]==_0xa03bc2))for(const _0x38c070 of _0x190060['getRanges']()){const _0x134cd7=_0x60687d[_0x4975('0x102')][_0x4975('0x43')](_0x38c070[_0x4975('0x58')])||_0x60687d[_0x4975('0x58')][_0x4975('0x43')](_0x38c070['start']);if(_0x134cd7||_0x60687d[_0x4975('0x7b')](_0x38c070)){const _0x34dac0=_0x60687d[_0x4975('0xe5')](_0x38c070)&&Bt(_0x2a2f39,_0x38c070[_0x4975('0x102')],_0x60687d),_0x52053e=_0x38c070[_0x4975('0xe5')](_0x60687d)&&Bt(_0x2a2f39,_0x60687d[_0x4975('0x102')],_0x38c070);_0xc3ae35[_0x4975('0xef')]({'suggestion':_0x190060,'meta':{'isOwn':_0x32268c==_0x190060[_0x4975('0x1f')],'isNextTo':_0x134cd7,'isInsideObject':_0x34dac0,'containsRangeInObject':_0x52053e}});break;}}return _0xc3ae35;}[_0x4975('0x138')](_0x97b97d,_0x323cc1,_0x1f2900,_0x49928c,_0x2320cd){this[_0x4975('0xb1')][_0x4975('0xa2')](_0x19c0b2=>{let _0x423db0=_0x4975('0xad')+_0x97b97d+':'+_0x323cc1+':'+_0x1f2900;_0x2320cd&&(_0x423db0=_0x423db0+':'+_0x2320cd),_0x19c0b2['addMarker'](_0x423db0,{'range':_0x49928c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4975('0xd3')](_0x1a2ddf){const _0x579b3e=_0x1a2ddf[_0x4975('0x91')],_0x357ddb=_0x1a2ddf[_0x4975('0x128')];_0x1a2ddf['previous']=null,null!=_0x579b3e&&(_0x579b3e['next']=null),_0x1a2ddf[_0x4975('0x128')]=null,null!=_0x357ddb&&(_0x357ddb[_0x4975('0x91')]=null),_0x4975('0xbe')==this[_0x4975('0x3a')][_0x4975('0xd8')](_0x1a2ddf)&&(this[_0x4975('0x3a')]['set'](_0x1a2ddf,_0x4975('0x133')),this[_0x4975('0x9')]('suggestionUnloaded',_0x1a2ddf,_0x579b3e,_0x357ddb));}[_0x4975('0xb8')](_0x25982d){const _0xab3fc1=_0x25982d['id'],_0xabb430=this[_0x4975('0x1e')](_0x25982d);if(this[_0x4975('0xf0')]&&this[_0x4975('0xf0')][_0x4975('0xe3')]){const _0x433728=this[_0x4975('0x104')][_0x4975('0xb7')][_0x4975('0xd8')](_0x4975('0x12e')),_0x43f994=_0xabb430[_0x4975('0xd')],_0x4e2c90=_0xabb430['subType']?_0xabb430[_0x4975('0x10a')]+':'+_0xabb430[_0x4975('0xe7')]:_0xabb430[_0x4975('0x10a')],_0x37a9ee=this[_0x4975('0x104')]['locale'],_0x3f1dd3=_0x433728[_0x4975('0x33')](_0x41f906(_0x37a9ee,_0x4975('0x121'))),_0x1cdaff={'id':_0xab3fc1,'type':_0x4e2c90,'hasComments':_0x43f994,'data':_0x25982d['data']||null,'originalSuggestionId':_0x25982d[_0x4975('0x82')]||null,'attributes':_0xabb430['attributes']};this[_0x4975('0xf0')][_0x4975('0xe3')](_0x1cdaff)[_0x4975('0xa7')](_0x1b34f6=>{_0xabb430['_saved']=!0x0,_0x433728[_0x4975('0x10c')](_0x3f1dd3),_0x1b34f6&&_0x1b34f6[_0x4975('0x6a')]&&(this['_suggestions'][_0x4975('0xd8')](_0xab3fc1)['createdAt']=_0x1b34f6[_0x4975('0x6a')]);})[_0x4975('0x78')](_0x6f58f8=>{throw _0x7d2362(_0x4975('0x9c')),this['editor'][_0x4975('0xf5')][_0x4975('0x98')]({'isUndoable':!0x1},()=>{_0xabb430[_0x4975('0x29')]();}),_0xabb430['stopListening'](),this[_0x4975('0x99')]['delete'](_0xabb430['id']),this['_suggestionState'][_0x4975('0x103')](_0xabb430),_0x6f58f8;});}return _0xabb430;}['_updateSuggestionData'](_0x1a6d77,_0x20dca1){const _0x52923d=this['editor']['plugins']['get'](_0x4975('0x12e')),_0x1f71e4=this[_0x4975('0xf6')](_0x1a6d77);if(this[_0x4975('0xf0')]&&this[_0x4975('0xf0')]['updateSuggestion']){if(_0x1f71e4[_0x4975('0x100')]){const _0x149427=_0x52923d['add'](_0x41f906(this['editor'][_0x4975('0x140')],_0x4975('0x121')));this[_0x4975('0xf0')][_0x4975('0x8b')](_0x1a6d77,_0x20dca1)[_0x4975('0xa7')](()=>{_0x52923d[_0x4975('0x10c')](_0x149427);});}else _0x1f71e4['on'](_0x4975('0xee'),()=>{this['_updateSuggestionData'](_0x1a6d77,_0x20dca1);});}}[_0x4975('0xda')](_0x5f383f){if(!this[_0x4975('0xf0')]||!this[_0x4975('0xf0')]['getSuggestion'])throw new _0x381070(_0x4975('0x4f'),this);return this['_adapter'][_0x4975('0xf6')](_0x5f383f);}[_0x4975('0xa8')](_0x3dd362){const {id:_0x38ed35,type:_0x1ad1a6,subType:_0x1d7d94,authorId:_0x31c7e4}=this[_0x4975('0xde')](_0x3dd362),_0x174e74=this[_0x4975('0x99')][_0x4975('0xd8')](_0x38ed35)||this[_0x4975('0x71')](_0x1ad1a6,_0x1d7d94,_0x38ed35,_0x31c7e4,{});switch(this[_0x4975('0x28')](_0x174e74,_0x1ad1a6,_0x1d7d94,_0x31c7e4),this[_0x4975('0x3a')][_0x4975('0xd8')](_0x174e74)){case _0x4975('0x47'):this[_0x4975('0xda')](_0x38ed35)['then'](_0x5ab292=>{let _0x46fc33=Promise['resolve']();_0x5ab292[_0x4975('0xd')]&&(_0x46fc33=this[_0x4975('0x72')][_0x4975('0x30')]({'channelId':this['editor'][_0x4975('0x6d')][_0x4975('0xd8')](_0x4975('0x26')),'threadId':_0x38ed35})),_0x46fc33[_0x4975('0xa7')](()=>{this[_0x4975('0x1e')](_0x5ab292)[_0x4975('0x100')]=!0x0;});}),this[_0x4975('0x3a')]['set'](_0x174e74,_0x4975('0xe6'));break;case _0x4975('0x133'):this[_0x4975('0xb3')](_0x38ed35,{'state':_0x4975('0x12f')});case _0x4975('0x1b'):this[_0x4975('0x3a')][_0x4975('0x18')](_0x174e74,_0x4975('0xbe')),this[_0x4975('0x9')]('suggestionLoaded',_0x174e74);break;case'ready':this['fire'](_0x4975('0x15'),_0x174e74);}return _0x174e74['addMarkerName'](_0x3dd362),_0x174e74;}[_0x4975('0x109')](_0x5cba3c){const _0xaac523=Array[_0x4975('0x49')](_0x5cba3c)[_0x4975('0xec')](_0x38b5ab=>!_0x38b5ab[_0x4975('0x115')]),_0x3a8c8f=this[_0x4975('0x69')]({'skipNotAttached':!0x0})[_0x4975('0xec')](_0x2126f8=>!_0x2126f8[_0x4975('0x115')]),_0x447cb1=_0x3a8c8f['filter'](_0x39f153=>!_0x5cba3c[_0x4975('0x139')](_0x39f153)),_0x395f41=new Map(_0x3a8c8f[_0x4975('0x107')](_0x5d8d61=>[_0x5d8d61,this[_0x4975('0x125')]['getSuggestionCallback'](_0x5d8d61['type'],_0x5d8d61['subType'],'chain')])),_0x456adc=new Map(_0x3a8c8f[_0x4975('0x107')](_0x3ccb2f=>[_0x3ccb2f,_0x3ccb2f[_0x4975('0xa')]()])),_0x1e2991=new Set(),_0x5776d3=new Set();for(let _0x43aea3=0x0;_0x43aea3<_0xaac523[_0x4975('0x2e')];_0x43aea3++)_0x14b63d(_0xaac523[_0x43aea3],_0xaac523,_0x43aea3+0x1);for(let _0x267d4a=0x0;_0x267d4a<_0xaac523[_0x4975('0x2e')];_0x267d4a++)_0x14b63d(_0xaac523[_0x267d4a],_0x447cb1,0x0);for(let _0x8fe37d=0x0;_0x8fe37d<_0xaac523['length'];_0x8fe37d++){const _0x1dedd1=_0xaac523[_0x8fe37d];!_0x5776d3[_0x4975('0x139')](_0x1dedd1)&&_0x1dedd1['previous']&&(_0x1dedd1[_0x4975('0x91')][_0x4975('0x128')]===_0x1dedd1&&(_0x1dedd1[_0x4975('0x91')]['next']=null),_0x1dedd1[_0x4975('0x91')]=null),!_0x1e2991[_0x4975('0x139')](_0x1dedd1)&&_0x1dedd1[_0x4975('0x128')]&&(_0x1dedd1[_0x4975('0x128')][_0x4975('0x91')]===_0x1dedd1&&(_0x1dedd1[_0x4975('0x128')][_0x4975('0x91')]=null),_0x1dedd1[_0x4975('0x128')]=null);}function _0x14b63d(_0x256b03,_0x25d75b,_0x35b5f2){for(let _0xac23ce=_0x35b5f2;_0xac23ce<_0x25d75b['length'];_0xac23ce++){const _0x6de7a6=_0x14a4b4(_0x256b03,_0x25d75b[_0xac23ce]);_0x6de7a6&&(_0x6de7a6[0x0]['next']=_0x6de7a6[0x1],_0x6de7a6[0x1][_0x4975('0x91')]=_0x6de7a6[0x0],_0x1e2991[_0x4975('0x33')](_0x6de7a6[0x0]),_0x5776d3[_0x4975('0x33')](_0x6de7a6[0x1]));}}function _0x14a4b4(_0x252a7d,_0x4d00a9){if(_0x252a7d['author']['id']!==_0x4d00a9['author']['id'])return null;const _0x28936a=_0x395f41[_0x4975('0xd8')](_0x252a7d)(_0x252a7d,_0x4d00a9,_0x456adc[_0x4975('0xd8')](_0x252a7d),_0x456adc[_0x4975('0xd8')](_0x4d00a9));if(!_0x28936a)return null;return _0x395f41['get'](_0x4d00a9)(_0x252a7d,_0x4d00a9,_0x456adc[_0x4975('0xd8')](_0x252a7d),_0x456adc[_0x4975('0xd8')](_0x4d00a9))?_0x28936a[0x1][_0x4975('0x57')]&&_0x28936a[0x1][_0x4975('0x57')][_0x4975('0x2e')]?null:_0x28936a:null;}}[_0x4975('0xb9')](_0xe215e6){const _0x42d997=Array['from'](_0xe215e6),_0x5dcafb=this[_0x4975('0x69')]({'skipNotAttached':!0x0}),_0x488fca=_0x5dcafb[_0x4975('0xec')](_0x2af3d6=>!_0xe215e6[_0x4975('0x139')](_0x2af3d6)),_0x59c052=new Map(_0x42d997[_0x4975('0x107')](_0x3a7906=>[_0x3a7906,this['_suggestionFactory']['getSuggestionCallback'](_0x3a7906[_0x4975('0x10a')],_0x3a7906['subType'],_0x4975('0x110'))])),_0x354a2f=new Map(_0x5dcafb[_0x4975('0x107')](_0x28f82e=>[_0x28f82e,_0x28f82e[_0x4975('0x40')]()]));for(let _0x521453=0x0;_0x521453<_0x42d997[_0x4975('0x2e')];_0x521453++){if(_0x4ebeef(this,_0x42d997[_0x521453],_0x42d997,_0x521453+0x1))return!0x0;}for(let _0x1a20fb=0x0;_0x1a20fb<_0x42d997[_0x4975('0x2e')];_0x1a20fb++){if(_0x4ebeef(this,_0x42d997[_0x1a20fb],_0x488fca,0x0))return!0x0;}return!0x1;function _0x4ebeef(_0x14b6a5,_0x152c6d,_0x565815,_0x2146c2){for(let _0x46a7f2=_0x2146c2;_0x46a7f2<_0x565815[_0x4975('0x2e')];_0x46a7f2++){const _0x1c243d=_0x565815[_0x46a7f2];if(_0x1c243d[_0x4975('0x10a')]!==_0x152c6d[_0x4975('0x10a')]||_0x1c243d['author']['id']!==_0x152c6d['author']['id']||_0x1c243d['subType']!==_0x152c6d[_0x4975('0xe7')])continue;const _0x45f01f=_0x59c052[_0x4975('0xd8')](_0x152c6d),_0x4d6355=_0x354a2f[_0x4975('0xd8')](_0x152c6d),_0x40c665=_0x354a2f[_0x4975('0xd8')](_0x1c243d),_0x58f4f2=_0x152c6d[_0x4975('0x57')]&&_0x152c6d['commentThread'][_0x4975('0x2e')],_0x49d6d5=_0x1c243d[_0x4975('0x57')]&&_0x1c243d[_0x4975('0x57')][_0x4975('0x2e')];if(!_0x58f4f2&&_0x45f01f(_0x40c665,_0x4d6355))return _0x14b6a5[_0x4975('0x5d')](_0x1c243d,_0x152c6d),_0x354a2f[_0x4975('0x103')](_0x152c6d),!0x0;if(!_0x49d6d5&&_0x45f01f(_0x4d6355,_0x40c665))return _0x14b6a5[_0x4975('0x5d')](_0x152c6d,_0x1c243d),_0x354a2f['delete'](_0x1c243d),!0x0;}return!0x1;}}[_0x4975('0x5d')](_0x1a2faa,_0x29dba6){if(_0x1a2faa[_0x4975('0x115')])for(const _0x127a61 of _0x29dba6[_0x4975('0x40')]())_0x1a2faa[_0x4975('0xf9')](_0x127a61);else{const _0x231b21=_0x29dba6[_0x4975('0xa')]()[_0x4975('0x58')];this[_0x4975('0x34')](_0x1a2faa,this[_0x4975('0xb1')]['createRange'](_0x1a2faa[_0x4975('0xa')]()[_0x4975('0x102')],_0x231b21));}_0x29dba6[_0x4975('0x67')]();}}class Dt{constructor(_0x25ff6e){this['_editor']=_0x25ff6e,this[_0x4975('0xb1')]=_0x25ff6e['model'],this[_0x4975('0xeb')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x4975('0x61')]();}[_0x4975('0x74')](_0x2ec361,_0x4ec81e,_0x44c454,_0x561abf,_0x1c2736,_0x4ed82a){return new _0x2568d3(this[_0x4975('0xb1')],{'type':_0x2ec361,'subType':_0x4ec81e,'id':_0x44c454,'author':_0x561abf,'creator':_0x561abf,'attributes':_0x1c2736,'onAttributesChange':_0x4ed82a,'onAccept':(..._0x1a7c8f)=>this[_0x4975('0x10e')](_0x2ec361,_0x4ec81e,_0x4975('0xc7'))(..._0x1a7c8f),'onDiscard':(..._0x4664a1)=>this['getSuggestionCallback'](_0x2ec361,_0x4ec81e,_0x4975('0x29'))(..._0x4664a1)});}[_0x4975('0x81')](_0x1e6c13,_0x13e58d,_0x4f5d6b,_0x135d11){const _0x53c837=_0x1e6c13+':'+_0x13e58d+':'+_0x4f5d6b;this[_0x4975('0xeb')][_0x4975('0x18')](_0x53c837,_0x135d11);}[_0x4975('0x10e')](_0x45f7d5,_0x4e5319,_0x41f8ce){const _0x1ee8c9=_0x45f7d5+':'+_0x4e5319+':'+_0x41f8ce;return this[_0x4975('0xeb')][_0x4975('0xd8')](_0x1ee8c9)||this[_0x4975('0x45')][_0x4975('0xd8')](_0x45f7d5+':'+_0x41f8ce);}[_0x4975('0x61')](){const _0x38e0d4=()=>{},_0x28a1fa=_0x5120e5=>{_0x5120e5['sort']((_0x3b39ae,_0x549819)=>_0x3b39ae[_0x4975('0x102')]['isBefore'](_0x549819[_0x4975('0x102')])?0x1:-0x1),this[_0x4975('0xb1')]['change'](_0x1425c7=>{for(const _0x1f18e6 of _0x5120e5){let _0x5d7d5d;_0x5d7d5d=_0x1f18e6[_0x4975('0x58')]['isAtEnd']&&_0x1f18e6[_0x4975('0x58')][_0x4975('0xab')]==_0x1f18e6[_0x4975('0x102')][_0x4975('0xcc')]?_0x1425c7[_0x4975('0x23')](_0x1f18e6[_0x4975('0x102')]['nodeAfter'],'on'):_0x1425c7[_0x4975('0x23')](_0x1f18e6),this[_0x4975('0xb1')]['deleteContent'](_0x5d7d5d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xc025fe=(_0x22ec67,_0x5b008c)=>{this[_0x4975('0xb1')]['change'](_0x1c66f0=>{const {commandName:_0x43daa1,commandParams:_0x50d23c=[]}=_0x5b008c,_0x55ca8a=_0x22ec67[_0x4975('0x107')](_0x56c339=>(_t(_0x56c339)&&(_0x56c339=this['_model'][_0x4975('0xbc')](_0x56c339[_0x4975('0x58')])),_0x56c339))['filter'](_0x5d719=>_0x4975('0x2d')!==_0x5d719[_0x4975('0x52')][_0x4975('0xed')]);if(_0x55ca8a[_0x4975('0x2e')]<0x1)return;const _0x53ba61=Array['from'](this[_0x4975('0xb1')][_0x4975('0x9e')]['selection'][_0x4975('0x40')]())[_0x4975('0x107')](_0x4a045d=>_0x199bb8['fromRange'](_0x4a045d));_0x1c66f0[_0x4975('0x55')](_0x55ca8a);for(const _0xad299c of this[_0x4975('0x60')][_0x4975('0x77')][_0x4975('0x77')]())_0xad299c[_0x4975('0xb2')]();_0x50d23c[_0x4975('0xef')]({'forceDefaultExecution':!0x0}),this[_0x4975('0x60')][_0x4975('0x4c')](_0x43daa1,..._0x50d23c);const _0x920604=_0x53ba61[_0x4975('0xec')](_0x4e522b=>'$graveyard'!=_0x4e522b[_0x4975('0x52')][_0x4975('0xed')]);_0x920604[_0x4975('0x2e')]>0x0&&_0x1c66f0['setSelection'](_0x920604);for(const _0x3572fa of _0x53ba61)_0x3572fa[_0x4975('0x51')]();});},_0x3bff51=(_0x454bca,_0x17cc9b)=>0x1==_0x454bca['length']&&0x1==_0x17cc9b[_0x4975('0x2e')]&&_0x454bca[0x0]['end'][_0x4975('0x43')](_0x17cc9b[0x0][_0x4975('0x102')]),_0x9b424f=(_0x46e850,_0x5ec894,_0x11f57c,_0x4df51a)=>xt(_0x46e850,_0x5ec894,_0x11f57c,_0x4df51a,this['_model'])?[_0x46e850,_0x5ec894]:xt(_0x5ec894,_0x46e850,_0x4df51a,_0x11f57c,this['_model'])?[_0x5ec894,_0x46e850]:null;this['_defaultCallbacks']['set'](_0x4975('0xa0'),_0x38e0d4),this['_defaultCallbacks'][_0x4975('0x18')](_0x4975('0xdb'),_0x28a1fa),this['_defaultCallbacks']['set'](_0x4975('0x96'),_0x3bff51),this[_0x4975('0x45')]['set'](_0x4975('0xac'),_0x9b424f),this[_0x4975('0x45')][_0x4975('0x18')](_0x4975('0x9a'),_0x28a1fa),this[_0x4975('0x45')]['set'](_0x4975('0x127'),_0x38e0d4),this['_defaultCallbacks']['set'](_0x4975('0x80'),_0x3bff51),this[_0x4975('0x45')]['set'](_0x4975('0x56'),_0x9b424f),this[_0x4975('0x45')][_0x4975('0x18')](_0x4975('0x11b'),_0xc025fe),this[_0x4975('0x45')][_0x4975('0x18')](_0x4975('0x2a'),_0x38e0d4),this[_0x4975('0x45')][_0x4975('0x18')]('formatInline:join',_0x3bff51),this[_0x4975('0x45')]['set'](_0x4975('0x12c'),_0x38e0d4),this['_defaultCallbacks'][_0x4975('0x18')](_0x4975('0xe2'),_0xc025fe),this['_defaultCallbacks']['set'](_0x4975('0xdd'),_0x38e0d4),this['_defaultCallbacks']['set'](_0x4975('0x63'),_0x3bff51),this[_0x4975('0x45')][_0x4975('0x18')](_0x4975('0x6e'),_0x38e0d4);}}function Bt(_0x4a0a4a,_0x4fcb2b,_0x3dc506){for(const _0x2a6abe of _0x4fcb2b[_0x4975('0xab')][_0x4975('0xb6')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2a6abe['root']==_0x2a6abe)return!0x1;if(!_0x3dc506['containsItem'](_0x2a6abe))return!0x1;if(_0x4a0a4a[_0x4975('0x17')](_0x2a6abe)||_0x4a0a4a['isLimit'](_0x2a6abe))return!0x0;}return!0x1;}function _t(_0x114586){return _0x114586[_0x4975('0x58')][_0x4975('0xab')]==_0x114586[_0x4975('0x102')][_0x4975('0xcc')]&&_0x114586[_0x4975('0x58')][_0x4975('0x65')];}function Mt(_0x38bd10,_0x4c4db5,_0x3bced1,_0x71c6bf){const _0x5d8412=_0x276bcb=>!_0x276bcb[_0x4975('0xf2')]['is'](_0x4975('0x7a'))&&!_0x71c6bf[_0x4975('0x17')](_0x276bcb[_0x4975('0xf2')]),_0x33d9dc=_0x38bd10[_0x4975('0x102')]['getLastMatchingPosition'](_0x5d8412),_0x393154=_0x38bd10[_0x4975('0x58')][_0x4975('0x87')](_0x5d8412,{'direction':_0x4975('0x13b')});return(!_0x38bd10[_0x4975('0x102')][_0x4975('0x43')](_0x33d9dc)||!_0x38bd10[_0x4975('0x58')]['isEqual'](_0x393154))&&(_0x33d9dc[_0x4975('0x136')](_0x393154)?_0x3bced1[_0x4975('0xc')](_0x4c4db5,{'range':_0x3bced1['createRange'](_0x33d9dc,_0x393154)}):_0x3bced1[_0x4975('0x4b')](_0x4c4db5),!0x0);}function $t(_0x38a387){return _0x4f2d4a(_0x38a387);}function Nt(_0x57fa44){const _0x134725=_0x57fa44[_0x4975('0x102')][_0x4975('0xcc')];return _0x134725&&_0x134725['is'](_0x4975('0x46'));}function Rt(_0x1aaf74,_0x2766af){const _0xfad590=_0x2766af[_0x4975('0x2c')]['isObject'](_0x1aaf74)||_0x2766af['schema'][_0x4975('0x7c')](_0x1aaf74);return _0x2766af['createRange'](_0x2766af[_0x4975('0xb4')](_0x1aaf74,'before'),_0xfad590?_0x2766af[_0x4975('0x132')](_0x1aaf74):_0x2766af[_0x4975('0xb4')](_0x1aaf74,_0x4975('0x58')));}function xt(_0x1b2470,_0x1576fe,_0x50f20f,_0x25f8f0,_0x4ac13f){if(_0x50f20f[_0x4975('0x58')][_0x4975('0x43')](_0x25f8f0[_0x4975('0x102')]))return!0x0;if(_0x1b2470[_0x4975('0x10a')]!=_0x1576fe[_0x4975('0x10a')])return!0x1;if(!_0x50f20f[_0x4975('0x58')]['isTouching'](_0x25f8f0[_0x4975('0x102')]))return!0x1;const _0x171b5a=_0x4ac13f[_0x4975('0xbc')](_0x50f20f[_0x4975('0x58')],_0x25f8f0[_0x4975('0x102')])[_0x4975('0xe0')]();for(const _0x61bb8e of _0x171b5a)if(['elementStart','elementEnd'][_0x4975('0xd0')](_0x61bb8e[_0x4975('0x10a')])&&_0x4ac13f[_0x4975('0x2c')][_0x4975('0x2')](_0x61bb8e['item']))return!0x1;return!0x0;}
23
+ const _0x2198=['PENDING_ACTION_SUGGESTION','createRange','conversion','dataReady','from','isNextTo','CommentsRepository','skipNestingCheck','_createSuggestion','suggestionUnloaded','_isForcedDefaultExecutionBlock','_suggestionState','config','getLastMatchingPosition','buildSuggestion','parent','track-changes-command-not-found','addSuggestionData','_adapter','for','_cutOutSuggestionMarker','_saved','TrackChangesEditing','next','catch','isCollapsed','detach','locale','elementStart','accept','removeAttribute','insertion:','consumable','targetPosition','editor','always','push','isInsideObject','newRange','containsRange','isIntersectingWithRange','_getAuthorFromId','_splitMarkerName','refresh','range','_registerDefaultCallbacks','splitPosition','group','suggestionChanged','requires','root','some','removed','discardSelectedSuggestions','change:data','adapter','markInsertion','ck-suggestion-marker-','_setSuggestionRange','change:_saved','suggestion','stop','substr','addRange','createElement','isObject','_enabledCommands','authorName','move','get','applyOperation','head','track-changes-suggestion-data-mismatch','PendingActions','setTo','setAttribute','suggestion-type','getChanges','notReady','discard','deleteContent','_getSuggestionData','$graveyard','end','mapper','differ','suggestionLoaded','getItems','marker-count','nodeAfter','registerCustomCallback','deletion:join','addMarker:suggestion:formatBlock','createSelection','change:activeMarkers','data-suggestion','insertion:join','splice','_joinWithAdjacentSuggestions','formatInline:discard','containsPosition','execute','clone','markerToData','set','formatBlock:chain','addSuggestion','@external','clear','formatInline:accept','sort','isRemovable','value','normal','acceptSuggestion','acceptAllSuggestions','item','_mergeNestedSuggestions','model','isSelectable','options','deletion:discard','isInContent','update:suggestion','updateSuggestion','markInlineFormat','_commentsRepository','resolve','ck-suggestion-marker-formatBlock','toViewElement','reconvertMarker','getSuggestionCallback','isLocal','fromRange','insertion:chain','init','isExternal','addHighlight','consume','getAllAdjacentSuggestions','backward','getRanges','return','getRange','plugins','containsRangeInObject','setSelection','getFirstMarker','creator','writer','fetchCommentThread','forceDefaultExecution','getAncestors','createPositionAt','formatInline:join','default','filter','_rangeIsInLocalUserInsertion','hasComments','insert','getMarkers','rootName','authoredAt','markers','getNearestSelectionRange','multipleBlocks','addUser','change','_updateSuggestionData','formatGroupId','discardSuggestion','isDocumentOperation','addMarkerName','editingDowncast','high','moveTargetPosition','formatBlock:discard','getChangedMarkers','isOwn','type','enableCommand','join','activeMarkers','getFirstRange','getSuggestions','fire','createPositionBefore','commandName','hasCommentThread','_removeSuggestion','start','formatInline','delete','bindElementToMarker','upcast','$marker','rethrowUnexpectedError','getShiftedBy','deletion:','_findSuggestions','never','showSuggestionHighlights','documentSelection','isAtEnd','originalSuggestionId','getDifference','_getExternalAuthor','updateMarker','isBefore','chain','suggestion:','markDeletion','remove','_onDiscard','acceptSelectedSuggestions','addMarker:suggestion','nodeBefore','schema','insertion:accept','isAtStart','howMany','fromCharCode','getSuggestion','formatInline:','_handleNewSuggestionMarker','dataToMarker','getMultiRangeId','registerPostFixer','ck-suggestion-marker','insertContent','getWalker','_descriptionFactory','enableReadOnlyMode','subType','lowest','createdAt','_editor','listenTo','trackChangesCommand','_defaultCallbacks','addComment','removeMarker','commands','containerElement','isEqual','isBlock','position','formatBlock','every','_model','deletion','attributes','_addSuggestionMarker','has','_setSuggestionData','removeMarkers','_customCallbacks','removeClass','external:','stopListening','isTouching','define','then','_addThreadToSuggestion','split','error-saving-suggestion-data-suggestion-discarded','_suggestions','discardAllSuggestions','deletion:chain','isLimit','low','batch','_suggestionFactory','unbindElementFromMarkerName','markerName','ck-suggestion-marker--active','isAfter','hasSuggestion','track-changes-adapter-already-set','Users','oldRange','markMultiRangeInsertion','markerToHighlight','trackChanges.mergeNestedSuggestions','element','previous','name','_refreshSuggestionsChain','markerReady','document','forward','multi','unbind','isUndo','size','length','formatInline:chain','getCustomProperty','_checkSuggestionCorrectness','formatBlock:','pluginName','getAttribute','commentThread','open','elementEnd','values','insertion','dataDowncast','toJSON','author','data','enqueueChange','includes','add','createPositionAfter','collaboration.channelId','map','getIntersection','widget','_trackFormatChanges','isMultiRange','ready','_joinSuggestions','rejected','_breakSuggestionMarker','deletion:accept'];(function(_0x289879,_0x219876){const _0x2ceddb=function(_0x230f35){while(--_0x230f35){_0x289879['push'](_0x289879['shift']());}};_0x2ceddb(++_0x219876);}(_0x2198,0x6e));const _0x2ced=function(_0x289879,_0x219876){_0x289879=_0x289879-0x0;let _0x2ceddb=_0x2198[_0x289879];return _0x2ceddb;};import{Plugin as _0x39d667,PendingActions as _0x44ad8d}from'ckeditor5/src/core';import{LiveRange as _0x4e6ae0}from'ckeditor5/src/engine';import{CKEditorError as _0x4ab477,uid as _0x13a79c,priorities as _0x43c285,logWarning as _0x2b06d5}from'ckeditor5/src/utils';import{toWidget as _0x2155bb}from'ckeditor5/src/widget';import{Users as _0x4d11b2,hashObject as _0x33027b}from'ckeditor5-collaboration/src/collaboration-core';import _0x5afa89 from'./commands/trackchangescommand';import _0x29b7ae from'./commands/acceptsuggestioncommand';import _0x123fa7 from'./commands/discardsuggestioncommand';import _0x274d4a from'./commands/executeonallsuggestionscommand';import _0x304799 from'./commands/executeonselectedsuggestionscommand';import _0x2fb142 from'./suggestion';import _0x45fd7e from'./suggestiondescriptionfactory';import _0x1b0039 from'./integrations/alignment';import _0x483675 from'./integrations/basicstyles';import _0x33f57e from'./integrations/blockquote';import _0x260320 from'./integrations/ckbox';import _0x358abc from'./integrations/codeblock';import _0x42e92f from'./integrations/comments';import _0x305741 from'./integrations/deletecommand';import _0x5f5093 from'./integrations/documentlist';import _0x3306a5 from'./integrations/entercommand';import _0x2f593b from'./integrations/findandreplace';import _0x118e8d from'./integrations/font';import _0x11797b from'./integrations/formatpainter';import _0x442755 from'./integrations/heading';import _0xb0931a from'./integrations/highlight';import _0x298945 from'./integrations/horizontalline';import _0x1c651e from'./integrations/htmlembed';import _0x56d75f from'./integrations/image';import _0xae265d from'./integrations/imagereplace';import _0x14b798 from'./integrations/importword';import _0x263d67 from'./integrations/indent';import _0x35c7b2 from'./integrations/inputcommand';import _0x55a872 from'./integrations/link';import _0x3c9cce from'./integrations/list';import _0x2dec60 from'./integrations/listproperties';import _0x522401 from'./integrations/mediaembed';import _0x5bf893 from'./integrations/mention';import _0x820b3a from'./integrations/pagebreak';import _0x1d4230 from'./integrations/paragraph';import _0x28d68e from'./integrations/removeformat';import _0x1b20b9 from'./integrations/restrictededitingmode';import _0x315bb6 from'./integrations/shiftentercommand';import _0x29898f from'./integrations/standardeditingmode';import _0xcb9754 from'./integrations/style';import _0xc6ac50 from'./integrations/table';import _0x5def14 from'./integrations/tablemergesplit';import _0x185754 from'./integrations/tableheadings';import _0xbf2710 from'./integrations/tableclipboard';import _0xd77457 from'./integrations/tablecolumnresize';import _0x197deb from'./integrations/template';import _0x26bcc7 from'./integrations/tableofcontents';import _0x50fbec from'./integrations/title';import _0x2696f9 from'./integrations/undo';import{getTranslation as _0x40a7e5}from'./utils/common-translations';import _0x227c35 from'./integrations/tablecaption';import _0x2f056b from'./integrations/documentlistproperties';import _0x365c9d from'./integrations/tableproperties';export default class p extends _0x39d667{static get[_0x2ced('0x109')](){return[_0x2ced('0xde'),_0x4d11b2,_0x44ad8d,_0x1b0039,_0x483675,_0x33f57e,_0x260320,_0x358abc,_0x42e92f,_0x305741,_0x5f5093,_0x2f056b,_0x3306a5,_0x2f593b,_0x118e8d,_0x11797b,_0x442755,_0xb0931a,_0x298945,_0x1c651e,_0x56d75f,_0xae265d,_0x14b798,_0x263d67,_0x35c7b2,_0x55a872,_0x3c9cce,_0x2dec60,_0x522401,_0x5bf893,_0x820b3a,_0x1d4230,_0x28d68e,_0x1b20b9,_0x315bb6,_0x29898f,_0xcb9754,_0xc6ac50,_0x5def14,_0x185754,_0x227c35,_0xbf2710,_0xd77457,_0x26bcc7,_0x365c9d,_0x197deb,_0x50fbec,_0x2696f9];}static get[_0x2ced('0xbe')](){return _0x2ced('0xee');}constructor(_0x123631){function _0x37fb88(_0x174170){return _0x174170[_0x2ced('0xce')](_0x20158c=>String[_0x2ced('0x6f')](_0x20158c))[_0x2ced('0x47')]('');}super(_0x123631),this['set'](_0x2ced('0x48'),[]),this['on'](_0x2ced('0x136'),(_0x3a304a,_0xe761d4,_0x2871fc,_0x12ca89)=>{this[_0x2ced('0x8b')][_0x2ced('0x39')](()=>{for(const _0x3a240b of[..._0x12ca89,..._0x2871fc])this['_model']['markers'][_0x2ced('0x8f')](_0x3a240b)&&_0x123631['editing'][_0x2ced('0x14')](_0x3a240b);});}),this[_0x2ced('0x79')]=new _0x45fd7e(this[_0x2ced('0xfa')]['model'][_0x2ced('0x6b')],this[_0x2ced('0xfa')][_0x2ced('0xf3')]),this['_adapter']=null,this['_suggestionFactory']=new Dt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x123631['plugins'][_0x2ced('0x11d')](_0x2ced('0xde')),this['_enabledCommands']=new Set(),this['_model']=this[_0x2ced('0xfa')][_0x2ced('0x8')],this[_0x2ced('0xe3')]=new WeakMap(),this[_0x2ced('0xe2')]=!0x1,_0x123631[_0x2ced('0xe4')][_0x2ced('0x97')]('trackChanges.trackFormatChanges',_0x2ced('0x2d')),this['_trackFormatChanges']=_0x123631[_0x2ced('0xe4')]['get']('trackChanges.trackFormatChanges'),_0x123631[_0x2ced('0xe4')][_0x2ced('0x97')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x2ced('0x7')]=_0x123631[_0x2ced('0xe4')][_0x2ced('0x11d')](_0x2ced('0xad')),this['trackChangesCommand']=new _0x5afa89(_0x123631,this[_0x2ced('0x11a')]),this[_0x37fb88([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x37fb88([0x34,0x30,0x34,0x36,0x31,0x36,0x34,0x36]);}[_0x2ced('0x19')](){const _0xd6fb6a=this['editor'];_0xd6fb6a['conversion'][_0x2ced('0xeb')](_0x2ced('0x3f'))[_0x2ced('0xac')]({'model':_0x2ced('0x114'),'view':_0x2764f3=>{const {id:_0x578399,type:_0x5e6812}=this['_splitMarkerName'](_0x2764f3['markerName']),_0x13330c=[_0x2ced('0x76'),_0x2ced('0x111')+_0x5e6812];let _0x379372=0xbb8;return this[_0x2ced('0x48')][_0x2ced('0xca')](_0x2764f3[_0x2ced('0xa4')])&&(_0x13330c[_0x2ced('0xfc')](_0x2ced('0xa5')),_0x379372=0xbc2),_0x2ced('0x8c')==_0x5e6812&&(_0x379372+=0x5),{'classes':_0x13330c,'attributes':{'data-suggestion':_0x578399},'priority':_0x379372};}}),_0xd6fb6a[_0x2ced('0xda')][_0x2ced('0xeb')](_0x2ced('0xc5'))[_0x2ced('0xcb')](_0x8e2bbc=>{_0x8e2bbc['on'](_0x2ced('0x69'),(_0x233dfa,_0x1888ed,_0x466020)=>{if(!_0x466020[_0x2ced('0xa')][_0x2ced('0x5b')])return;const _0x1930e5=_0x1888ed['item'];if(!_0x1930e5)return;const _0x175f23=_0x466020['mapper'][_0x2ced('0x13')](_0x1930e5);_0xd6fb6a['model'][_0x2ced('0x6b')][_0x2ced('0x119')](_0x1930e5)&&_0x175f23&&!_0x175f23[_0x2ced('0xbb')](_0x2ced('0xd0'))&&_0x175f23['is'](_0x2ced('0x85'))&&_0x2155bb(_0x175f23,_0x466020['writer']);},{'priority':_0x2ced('0x40')});}),_0xd6fb6a[_0x2ced('0xda')][_0x2ced('0xeb')](_0x2ced('0xc5'))[_0x2ced('0xac')]({'model':_0x2ced('0x114'),'view':(_0x342186,_0x5ecc88)=>{if(!_0x5ecc88[_0x2ced('0xa')][_0x2ced('0x5b')])return null;const {type:_0x26cf8b}=this[_0x2ced('0x102')](_0x342186[_0x2ced('0xa4')]);return{'classes':[_0x2ced('0x76'),_0x2ced('0x111')+_0x26cf8b],'priority':0xbb8};}});const _0x18a455=({showActiveMarkers:_0xeb3b9d=!0x0}={})=>(_0x2698c7,_0xa7c883,_0x3f6b9d)=>{if(!_0xa7c883['item'])return;if(_0xa7c883[_0x2ced('0x6')]['is']('selection'))return void _0x3f6b9d['consumable']['consume'](_0xa7c883[_0x2ced('0x6')],_0x2698c7[_0x2ced('0xb0')]);const _0x16af6e=_0x3f6b9d[_0x2ced('0x12c')][_0x2ced('0x13')](_0xa7c883[_0x2ced('0x6')]);if(!(_0xa7c883[_0x2ced('0x6')]['is'](_0x2ced('0xae'))&&_0xd6fb6a['model'][_0x2ced('0x6b')][_0x2ced('0x87')](_0xa7c883[_0x2ced('0x6')])&&!_0x16af6e['getCustomProperty'](_0x2ced('0x1b'))))return;const {id:_0x1f20e6}=this['_splitMarkerName'](_0xa7c883[_0x2ced('0xa4')]);_0x3f6b9d['writer']['addClass'](['ck-suggestion-marker',_0x2ced('0x12')],_0x16af6e),_0x3f6b9d[_0x2ced('0x27')][_0x2ced('0x123')]('data-suggestion',_0x1f20e6,_0x16af6e),_0x3f6b9d[_0x2ced('0x12c')][_0x2ced('0x53')](_0x16af6e,_0xa7c883[_0x2ced('0xa4')]),_0xeb3b9d&&(this[_0x2ced('0x48')]['includes'](_0xa7c883[_0x2ced('0xa4')])?_0x3f6b9d[_0x2ced('0x27')]['addClass']('ck-suggestion-marker--active',_0x16af6e):_0x3f6b9d[_0x2ced('0x27')][_0x2ced('0x93')](_0x2ced('0xa5'),_0x16af6e));for(const _0x357b86 of _0xd6fb6a[_0x2ced('0x8')]['createRangeIn'](_0xa7c883[_0x2ced('0x6')])[_0x2ced('0x12f')]())_0x3f6b9d[_0x2ced('0xf8')][_0x2ced('0x1c')](_0x357b86,_0x2698c7['name']);_0x3f6b9d[_0x2ced('0xf8')][_0x2ced('0x1c')](_0xa7c883['item'],_0x2698c7[_0x2ced('0xb0')]);};_0xd6fb6a[_0x2ced('0xda')]['for'](_0x2ced('0xc5'))[_0x2ced('0xcb')](_0x381cc8=>{_0x381cc8['on'](_0x2ced('0x134'),(_0x572db0,_0x1fbcc1,_0x717a41)=>{_0x717a41['options'][_0x2ced('0x5b')]&&_0x18a455({'showActiveMarkers':!0x1})(_0x572db0,_0x1fbcc1,_0x717a41);},{'priority':'highest'});}),_0xd6fb6a[_0x2ced('0xda')][_0x2ced('0xeb')](_0x2ced('0xc5'))[_0x2ced('0x13f')]({'model':_0x2ced('0x114'),'view':(_0x354f25,_0x9d3e59)=>_0x9d3e59[_0x2ced('0xa')][_0x2ced('0x5b')]?null:{'group':'suggestion','name':_0x354f25[_0x2ced('0x116')](0xb)}}),_0xd6fb6a[_0x2ced('0xda')]['for'](_0x2ced('0x54'))['elementToElement']({'view':{'name':_0x2ced('0x114'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x28a6a7,{writer:_0x3d0ad5})=>{let _0x54baf8=_0x2ced('0x64')+_0x28a6a7[_0x2ced('0xbf')](_0x2ced('0x124'))+':'+_0x28a6a7[_0x2ced('0xbf')]('id');return _0x28a6a7['getAttribute'](_0x2ced('0x130'))&&(_0x54baf8+=':'+_0x28a6a7['getAttribute'](_0x2ced('0x130'))),_0x3d0ad5[_0x2ced('0x118')](_0x2ced('0x55'),{'data-name':_0x54baf8});}}),_0xd6fb6a[_0x2ced('0xda')][_0x2ced('0xeb')]('upcast')[_0x2ced('0x73')]({'view':'suggestion'}),_0xd6fb6a[_0x2ced('0xda')][_0x2ced('0xeb')](_0x2ced('0x3f'))['add'](_0x120d2a=>{_0x120d2a['on'](_0x2ced('0x134'),_0x18a455(),{'priority':_0x2ced('0x40')});}),_0xd6fb6a[_0x2ced('0xda')]['for'](_0x2ced('0x3f'))[_0x2ced('0xcb')](_0x24c0af=>{_0x24c0af['on']('removeMarker:suggestion:formatBlock',(_0x3542f2,_0x5a2bac,_0x7bedf6)=>{const _0x59754d=_0x7bedf6[_0x2ced('0x12c')]['markerNameToElements'](_0x5a2bac[_0x2ced('0xa4')]);if(_0x59754d)for(const _0x363ae5 of _0x59754d)_0x363ae5[_0x2ced('0xbb')](_0x2ced('0x1b'))||(_0x7bedf6['writer'][_0x2ced('0x93')](['ck-suggestion-marker',_0x2ced('0x12'),_0x2ced('0xa5')],_0x363ae5),_0x7bedf6['writer'][_0x2ced('0xf6')](_0x2ced('0x137'),_0x363ae5),_0x7bedf6[_0x2ced('0x12c')][_0x2ced('0xa3')](_0x363ae5,_0x5a2bac[_0x2ced('0xa4')]));},{'priority':'high'});}),_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0xb3')][_0x2ced('0x75')](_0x3a6fc2=>{let _0x46e578=!0x1;const _0x55e5d5=Array[_0x2ced('0xdc')](_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0xb3')]['differ'][_0x2ced('0x43')]()),_0xc0d6b5=new Set();for(const {name:_0x18757b,data:_0x4c46d9}of _0x55e5d5){const {group:_0xfcf60f,type:_0x5b09c0,id:_0x5269fe}=this[_0x2ced('0x102')](_0x18757b);if(_0x2ced('0x114')!==_0xfcf60f)continue;const _0x2a2dc5=this[_0x2ced('0x9c')][_0x2ced('0x11d')](_0x5269fe);if(null!=_0x4c46d9[_0x2ced('0xfe')]){_0x2ced('0x51')==_0x5b09c0&&(_0x46e578=_0x46e578||Mt(_0x4c46d9[_0x2ced('0xfe')],_0x18757b,_0x3a6fc2,_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x6b')]));if(_0x4c46d9[_0x2ced('0xfe')]['isCollapsed']||_0x2ced('0x12a')==_0x4c46d9[_0x2ced('0xfe')][_0x2ced('0x10a')][_0x2ced('0x33')]||'formatBlock'==_0x5b09c0&&!Nt(_0x4c46d9[_0x2ced('0xfe')])||_0x2ced('0x8c')==_0x5b09c0&&!(!_t(_0x2b996a=_0x4c46d9[_0x2ced('0xfe')])&&!function(_0x860758){return _0x860758[_0x2ced('0x50')]['parent']==_0x860758[_0x2ced('0x12b')][_0x2ced('0x6a')]&&_0x860758[_0x2ced('0x50')][_0x2ced('0x5d')];}(_0x2b996a)))_0x3a6fc2[_0x2ced('0x83')](_0x18757b),_0x46e578=!0x0;else{if(!_0x2a2dc5||!_0x2a2dc5[_0x2ced('0xc')])continue;_0xc0d6b5[_0x2ced('0xcb')](_0x2a2dc5);}}}var _0x2b996a;return _0xc0d6b5['size']>0x0&&(_0x46e578=!!this[_0x2ced('0x13a')](_0xc0d6b5)||_0x46e578),_0x46e578;}),_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0xb3')][_0x2ced('0x75')](_0x2a8a70=>{let _0x30c5cc=!0x1;for(const _0x4a8748 of _0xd6fb6a[_0x2ced('0x8')][_0x2ced('0xb3')][_0x2ced('0x12d')][_0x2ced('0x125')]()){if('insert'!=_0x4a8748[_0x2ced('0x45')])continue;const _0x4a83f6=_0x4a8748[_0x2ced('0x88')][_0x2ced('0x57')](_0x4a8748[_0x2ced('0xb9')]);if(_0x4a83f6[_0x2ced('0x5d')])for(const _0x1d16d6 of this['_suggestions'][_0x2ced('0xc3')]()){if(_0x1d16d6[_0x2ced('0xd2')]||!_0x1d16d6[_0x2ced('0xc')])continue;if(_0x2ced('0x89')!=_0x1d16d6[_0x2ced('0x45')])continue;const _0xf435c1=_0x1d16d6[_0x2ced('0x49')]();if(_0xf435c1[_0x2ced('0x50')][_0x2ced('0xe7')]!=_0xf435c1[_0x2ced('0x12b')][_0x2ced('0xe7')]&&_0xf435c1[_0x2ced('0x12b')]['isEqual'](_0x4a8748[_0x2ced('0x88')])){const _0x3e50ee=_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0xd9')](_0xf435c1[_0x2ced('0x50')],_0x4a83f6);_0x2a8a70[_0x2ced('0x61')](_0x1d16d6[_0x2ced('0x25')](),{'range':_0x3e50ee}),_0x30c5cc=!0x0;}}}return _0x30c5cc;}),_0xd6fb6a['model'][_0x2ced('0x35')]['on'](_0x2ced('0xd'),(_0x3308fb,_0x31f8d4,_0x1dd1d8)=>{if(null==_0x1dd1d8){const {id:_0x3792d6}=this['_splitMarkerName'](_0x31f8d4[_0x2ced('0xb0')]),_0x2e6dbd=this[_0x2ced('0x9c')][_0x2ced('0x11d')](_0x3792d6);_0x2e6dbd&&_0x2e6dbd[_0x2ced('0x3e')](_0x31f8d4['name']);}}),_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0xb3')]['on'](_0x2ced('0x10e'),()=>{const _0x1f84c9=Array[_0x2ced('0xdc')](_0xd6fb6a['model']['document'][_0x2ced('0x12d')]['getChangedMarkers']())[_0x2ced('0x2e')](_0x44ec47=>_0x2ced('0x114')===this[_0x2ced('0x102')](_0x44ec47[_0x2ced('0xb0')])[_0x2ced('0x107')]);if(0x0===_0x1f84c9[_0x2ced('0xb9')])return;_0x1f84c9[_0x2ced('0x0')]((_0x480eeb,_0x239b99)=>{const _0x284056=_0x480eeb[_0x2ced('0xc8')]['oldRange'],_0x510ea6=_0x239b99['data'][_0x2ced('0xaa')];return null===_0x284056&&null===_0x510ea6?0x0:null===_0x284056&&null!==_0x510ea6?-0x1:null!==_0x284056&&null===_0x510ea6?0x1:_0x284056[_0x2ced('0x50')][_0x2ced('0x62')](_0x510ea6[_0x2ced('0x50')])?-0x1:0x1;});const _0x2bbd12=new Set(),_0x4ac5f2=new Set();for(const {name:_0x594fab,data:_0x291260}of _0x1f84c9){const {id:_0x878648}=this[_0x2ced('0x102')](_0x594fab);if(null===_0x291260[_0x2ced('0xaa')]){const _0x39ad35=this[_0x2ced('0x72')](_0x594fab);_0x4ac5f2[_0x2ced('0xcb')](_0x39ad35);}else{const _0x42f647=this[_0x2ced('0x9c')][_0x2ced('0x11d')](_0x878648);null!==_0x291260[_0x2ced('0xfe')]||_0x42f647[_0x2ced('0xc')]?(_0x2bbd12['add'](_0x42f647[_0x2ced('0x11f')]),_0x4ac5f2[_0x2ced('0xcb')](_0x42f647)):this[_0x2ced('0x4f')](_0x42f647);}}_0x4ac5f2[_0x2ced('0xb8')]>0x0&&this[_0x2ced('0xb1')](_0x4ac5f2);for(const _0x478d2e of _0x2bbd12)this['fire'](_0x2ced('0x108'),_0x478d2e);}),_0xd6fb6a['model']['on'](_0x2ced('0x11e'),(_0x21c13c,_0x5b92ab)=>{const _0x14ac3b=_0x5b92ab[0x0];if(!this[_0x2ced('0x9c')][_0x2ced('0xb8')])return;if(!_0x14ac3b[_0x2ced('0x3d')])return;if(_0x14ac3b[_0x2ced('0xa1')][_0x2ced('0xb7')]||!_0x14ac3b[_0x2ced('0xa1')][_0x2ced('0x16')])return;let _0x1d650e,_0xa73f7e;switch(_0x14ac3b[_0x2ced('0x45')]){case _0x2ced('0x31'):_0x1d650e=_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x2b')](_0x14ac3b['position']),_0xa73f7e=_0x1d650e['getShiftedBy'](_0x14ac3b[_0x2ced('0x6e')]);break;case _0x2ced('0x9a'):_0x1d650e=_0xd6fb6a[_0x2ced('0x8')]['createPositionAt'](_0x14ac3b[_0x2ced('0x106')]),_0xa73f7e=_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x2b')](_0x14ac3b[_0x2ced('0x41')]);break;case _0x2ced('0x11c'):_0x1d650e=_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x2b')](_0x14ac3b[_0x2ced('0xf9')]),_0xa73f7e=_0x1d650e[_0x2ced('0x57')](_0x14ac3b[_0x2ced('0x6e')]);break;default:return;}const _0x2aca6a=_0xd6fb6a['model'][_0x2ced('0xd9')](_0x1d650e,_0xa73f7e);_0xd6fb6a[_0x2ced('0x8')]['change'](()=>{for(const {suggestion:_0x482990,meta:_0x5c5cef}of this[_0x2ced('0x59')](_0x2aca6a)){if(_0x482990[_0x2ced('0xd2')])continue;if(_0x2ced('0x51')==_0x482990[_0x2ced('0x45')])continue;const _0x1a8b6c=_0x482990[_0x2ced('0xc8')]&&_0x482990['data'][_0x2ced('0x37')];('formatBlock'!=_0x482990[_0x2ced('0x45')]||_0x2ced('0x9a')==_0x14ac3b['type']&&!_0x1a8b6c)&&(_0x5c5cef[_0x2ced('0x23')]||_0x2ced('0xc4')==_0x482990[_0x2ced('0x45')]&&_0x5c5cef[_0x2ced('0x44')]||_0x482990[_0x2ced('0x49')]()[_0x2ced('0xff')](_0x2aca6a)&&this[_0x2ced('0xd6')](_0x482990,_0x1d650e,_0xa73f7e));}});},{'priority':_0x2ced('0x7c')}),_0xd6fb6a[_0x2ced('0x8')]['on'](_0x2ced('0x128'),(_0x5c0122,_0xad5734)=>{const _0x37eb12=_0xad5734[0x0],_0x4aab06=_0xad5734[0x1];if(_0x4aab06&&_0x4aab06['forceDefaultExecution'])return;if(this[_0x2ced('0xe2')])return;if(!this[_0x2ced('0x80')][_0x2ced('0x2')])return;if(_0x37eb12['isCollapsed'])return;const _0x1df125=_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x6b')],{start:_0x34d6cc,end:_0x53728f}=_0x37eb12['getFirstRange'](),_0x4062a4=_0x34d6cc[_0x2ced('0x131')]&&_0x1df125[_0x2ced('0x9f')](_0x34d6cc[_0x2ced('0x131')])?null:_0x1df125['getNearestSelectionRange'](_0x34d6cc,_0x2ced('0xb4')),_0x5abc54=_0x53728f[_0x2ced('0x6a')]&&_0x1df125['isLimit'](_0x53728f[_0x2ced('0x6a')])?null:_0x1df125[_0x2ced('0x36')](_0x53728f,_0x2ced('0x1e')),_0x426475=_0xd6fb6a[_0x2ced('0x8')]['createRange'](_0x4062a4?_0x4062a4[_0x2ced('0x50')]:_0x34d6cc,_0x5abc54?_0x5abc54[_0x2ced('0x12b')]:_0x53728f);_0xd6fb6a['model']['change'](_0xef8842=>{this[_0x2ced('0x65')](_0x426475);const _0x4382a1=_0xd6fb6a[_0x2ced('0x8')]['schema'][_0x2ced('0x36')](_0x426475[_0x2ced('0x50')]);_0x37eb12['is'](_0x2ced('0x5c'))?_0xef8842[_0x2ced('0x24')](_0x4382a1):_0x37eb12[_0x2ced('0x122')](_0x4382a1);}),_0x5c0122[_0x2ced('0x115')]();},{'priority':_0x43c285[_0x2ced('0x3')]+0xa}),_0xd6fb6a[_0x2ced('0x8')]['on']('insertContent',(_0x5ab19d,_0x4f4d04)=>{const _0xf95b1c=_0x4f4d04[_0x4f4d04[_0x2ced('0xb9')]-0x1];_0xf95b1c&&_0xf95b1c[_0x2ced('0x29')]||this[_0x2ced('0xe2')]||this['trackChangesCommand'][_0x2ced('0x2')]&&(_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x39')](()=>{let _0x482044=_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x77')](_0x4f4d04[0x0],_0x4f4d04[0x1],_0x4f4d04[0x2],{'forceDefaultExecution':!0x0});if(!_0x482044)return;_0x5ab19d[_0x2ced('0x20')]=_0x482044[_0x2ced('0x13e')]();const _0x6e1293=_0x482044[_0x2ced('0x12b')][_0x2ced('0x6a')],_0x284089=_0xd6fb6a['model'][_0x2ced('0x6b')];_0x6e1293&&_0x284089[_0x2ced('0x87')](_0x6e1293)&&!_0x284089['isObject'](_0x6e1293)&&(_0x482044=_0xd6fb6a[_0x2ced('0x8')]['createRange'](_0x482044[_0x2ced('0x50')],_0xd6fb6a[_0x2ced('0x8')][_0x2ced('0x2b')](_0x6e1293,_0x2ced('0x12b')))),this[_0x2ced('0x110')](_0x482044);}),_0x5ab19d[_0x2ced('0x115')]());},{'priority':_0x2ced('0x40')}),this[_0x2ced('0xfa')][_0x2ced('0x84')][_0x2ced('0xcb')]('trackChanges',this[_0x2ced('0x80')]),this[_0x2ced('0x46')]('trackChanges');const _0x30b997=new _0x29b7ae(_0xd6fb6a,this[_0x2ced('0x9c')]);_0xd6fb6a['commands'][_0x2ced('0xcb')](_0x2ced('0x4'),_0x30b997),this[_0x2ced('0x46')](_0x2ced('0x4'));const _0x501e83=new _0x123fa7(_0xd6fb6a,this['_suggestions']);_0xd6fb6a[_0x2ced('0x84')][_0x2ced('0xcb')]('discardSuggestion',_0x501e83),this[_0x2ced('0x46')](_0x2ced('0x3c')),_0xd6fb6a[_0x2ced('0x84')][_0x2ced('0xcb')](_0x2ced('0x5'),new _0x274d4a(_0xd6fb6a,_0x30b997,this[_0x2ced('0x9c')])),this[_0x2ced('0x46')](_0x2ced('0x5')),_0xd6fb6a[_0x2ced('0x84')][_0x2ced('0xcb')](_0x2ced('0x9d'),new _0x274d4a(_0xd6fb6a,_0x501e83,this[_0x2ced('0x9c')])),this[_0x2ced('0x46')](_0x2ced('0x9d')),_0xd6fb6a[_0x2ced('0x84')]['add'](_0x2ced('0x68'),new _0x304799(_0xd6fb6a,_0x30b997,this['_suggestions'])),this[_0x2ced('0x46')]('acceptSelectedSuggestions'),_0xd6fb6a['commands']['add'](_0x2ced('0x10d'),new _0x304799(_0xd6fb6a,_0x501e83,this[_0x2ced('0x9c')])),this[_0x2ced('0x46')](_0x2ced('0x10d'));const _0xc46c75=_0xd6fb6a[_0x2ced('0x22')][_0x2ced('0x11d')](_0x2ced('0xde'));this[_0x2ced('0x7f')](_0xc46c75,_0x2ced('0x82'),(_0x4b9c6a,{threadId:_0x446e01})=>{const _0x5d989b=this[_0x2ced('0x9c')]['get'](_0x446e01);_0x5d989b&&_0x5d989b[_0x2ced('0xc0')]&&0x1===_0x5d989b['commentThread']['length']&&this[_0x2ced('0x3a')](_0x446e01,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xc46c75,'removeComment',(_0x3e0d62,{threadId:_0x953338})=>{const _0x4bc4c8=this['_suggestions'][_0x2ced('0x11d')](_0x953338);_0x4bc4c8&&_0x4bc4c8['commentThread']&&!_0x4bc4c8[_0x2ced('0xc0')][_0x2ced('0xb9')]&&this[_0x2ced('0x3a')](_0x953338,{'hasComments':!0x1});},{'priority':_0x2ced('0xa0')});}set[_0x2ced('0x10f')](_0x3c41af){if(this['_adapter'])throw new _0x4ab477(_0x2ced('0xa8'),this);this[_0x2ced('0xea')]=_0x3c41af;}get[_0x2ced('0x10f')](){return this[_0x2ced('0xea')];}[_0x2ced('0x4a')]({skipNotAttached:_0x321759=!0x1,toJSON:_0x59be71=!0x1}={}){const _0x59312a=[];for(const _0x40e10e of this[_0x2ced('0x9c')][_0x2ced('0xc3')]())_0x321759&&!_0x40e10e['isInContent']||_0x59312a[_0x2ced('0xfc')](_0x40e10e);return _0x59be71?_0x59312a[_0x2ced('0xce')](_0x265ae9=>_0x265ae9[_0x2ced('0xc6')]()):_0x59312a;}[_0x2ced('0x70')](_0x5599cc){const _0x3c9deb=this[_0x2ced('0x9c')][_0x2ced('0x11d')](_0x5599cc);if(!_0x3c9deb)throw new _0x4ab477('track-changes-suggestion-not-found',this);return _0x3c9deb;}[_0x2ced('0xa7')](_0xb1fa40){return this[_0x2ced('0x9c')][_0x2ced('0x8f')](_0xb1fa40);}[_0x2ced('0xe9')](_0x304e20){const {authorId:_0x413318,id:_0x3e35cf,attributes:_0x349280}=_0x304e20,[_0xa2679c,_0xec8437]=_0x304e20[_0x2ced('0x45')]['split'](':'),_0x1d9def=this[_0x2ced('0x9c')]['get'](_0x3e35cf)||this[_0x2ced('0xe0')](_0xa2679c,_0xec8437,_0x3e35cf,_0x413318,_0x349280);if(this['_addThreadToSuggestion'](_0x1d9def),this['_checkSuggestionCorrectness'](_0x1d9def,_0xa2679c,_0xec8437||null,_0x413318),_0x1d9def[_0x2ced('0x7d')]=_0x304e20[_0x2ced('0x7d')],_0x349280&&_0x349280[_0x2ced('0x143')]){const _0x23592e=_0x349280[_0x2ced('0x143')],_0xe461b5=this[_0x2ced('0x60')](_0x23592e[_0x2ced('0x11b')]);_0x1d9def[_0x2ced('0x34')]=_0x23592e[_0x2ced('0x7d')],_0x1d9def[_0x2ced('0xc7')]=_0xe461b5,_0x1d9def[_0x2ced('0x1a')]=!0x0;}else _0x1d9def[_0x2ced('0x34')]=_0x304e20[_0x2ced('0x7d')];switch(_0x304e20['data']&&(_0x1d9def[_0x2ced('0xc8')]=_0x304e20['data']),_0x304e20['attributes']&&(_0x1d9def[_0x2ced('0x8d')]=_0x304e20[_0x2ced('0x8d')]),this[_0x2ced('0xea')]&&this['_adapter'][_0x2ced('0x142')]||(_0x1d9def[_0x2ced('0xed')]=!0x0),this['_suggestionState'][_0x2ced('0x11d')](_0x1d9def)){case _0x2ced('0x126'):this[_0x2ced('0xe3')][_0x2ced('0x140')](_0x1d9def,_0x2ced('0xdb'));break;case _0x2ced('0xb2'):_0x1d9def[_0x2ced('0xc')]?(this[_0x2ced('0xe3')][_0x2ced('0x140')](_0x1d9def,_0x2ced('0xd3')),this[_0x2ced('0x4b')](_0x2ced('0x12e'),_0x1d9def)):this[_0x2ced('0xe3')][_0x2ced('0x140')](_0x1d9def,_0x2ced('0x10c'));}return _0x1d9def;}[_0x2ced('0x4')](_0x1fb315){this['forceDefaultExecution'](()=>{this[_0x2ced('0xfa')][_0x2ced('0x8')][_0x2ced('0x39')](()=>{for(const _0x4cc190 of _0x1fb315[_0x2ced('0x1d')]())_0x4cc190['accept']();});});}[_0x2ced('0x3c')](_0x30bb82){this[_0x2ced('0x29')](()=>{this[_0x2ced('0xfa')][_0x2ced('0x8')][_0x2ced('0x39')](()=>{for(const _0x34db14 of _0x30bb82[_0x2ced('0x1d')]())_0x34db14[_0x2ced('0x127')]();});});}[_0x2ced('0x46')](_0x4ae7a3,_0x18dc0f){const _0x5399f8=this['editor'][_0x2ced('0x84')][_0x2ced('0x11d')](_0x4ae7a3);if(!_0x5399f8)throw new _0x4ab477(_0x2ced('0xe8'),this,{'commandName':_0x4ae7a3});this[_0x2ced('0x11a')][_0x2ced('0xcb')](_0x5399f8),_0x18dc0f&&_0x5399f8['on']('execute',(_0x21052b,_0x6379dc)=>{this[_0x2ced('0x80')][_0x2ced('0x2')]&&(this['_isForcedDefaultExecutionBlock']||_0x6379dc[_0x2ced('0xb9')]>0x0&&_0x6379dc[_0x6379dc[_0x2ced('0xb9')]-0x1]&&_0x6379dc[_0x6379dc[_0x2ced('0xb9')]-0x1]['forceDefaultExecution']||(_0x18dc0f((..._0x20ca82)=>_0x5399f8[_0x2ced('0x13d')](..._0x20ca82,{'forceDefaultExecution':!0x0}),..._0x6379dc),_0x21052b[_0x2ced('0x115')]()));},{'priority':_0x2ced('0x40')});}[_0x2ced('0x29')](_0x14471b){let _0x432822,_0x46119a;const _0x353702=this[_0x2ced('0xe2')];this[_0x2ced('0xe2')]=!0x0;try{_0x432822=_0x14471b();}catch(_0xf0ab3){_0x46119a=_0xf0ab3;}return _0x353702||(this[_0x2ced('0xe2')]=!0x1),_0x46119a&&_0x4ab477[_0x2ced('0x56')](_0x46119a,this),_0x432822;}['markInsertion'](_0x6cd593,_0x591cba=null,_0x4f40a3={}){if(_0x6cd593[_0x2ced('0xf1')])return null;const _0x225daa=this[_0x2ced('0xfa')][_0x2ced('0x22')][_0x2ced('0x11d')](_0x2ced('0xa9'))['me'];for(const {suggestion:_0x44cbc7,meta:_0xe1a2bc}of this[_0x2ced('0x59')](_0x6cd593,'insertion'))if(_0xe1a2bc[_0x2ced('0x44')]){if(!_0xe1a2bc['isNextTo']){if(!this['_mergeNestedSuggestions']&&_0xe1a2bc[_0x2ced('0x23')])continue;return _0x44cbc7;}if(_0x591cba==_0x44cbc7['subType']){const _0x74f9dd=_0x44cbc7[_0x2ced('0x49')]();return _0x74f9dd[_0x2ced('0x50')][_0x2ced('0x86')](_0x6cd593['end'])?this[_0x2ced('0x112')](_0x44cbc7,this[_0x2ced('0x8b')][_0x2ced('0xd9')](_0x6cd593[_0x2ced('0x50')],_0x74f9dd[_0x2ced('0x12b')])):this['_setSuggestionRange'](_0x44cbc7,this['_model'][_0x2ced('0xd9')](_0x74f9dd[_0x2ced('0x50')],_0x6cd593[_0x2ced('0x12b')])),_0x44cbc7;}}const _0x442aef=_0x13a79c(),_0x431c36=_0x225daa['id'],_0x489db6=_0x591cba?_0x2ced('0xf7')+_0x591cba:_0x2ced('0xc4'),_0x36f895=this[_0x2ced('0x90')]({'id':_0x442aef,'type':_0x489db6,'createdAt':new Date(),'authorId':_0x431c36,'attributes':_0x4f40a3});return this[_0x2ced('0x8e')](_0x489db6,_0x442aef,_0x431c36,_0x6cd593),_0x36f895;}[_0x2ced('0xab')](_0x47a4a7,_0x5a73bd=_0x2ced('0xb5'),_0x42d003={}){const _0x324bd8=this[_0x2ced('0xfa')][_0x2ced('0x22')][_0x2ced('0x11d')](_0x2ced('0xa9'))['me'],_0x2f06ef=this[_0x2ced('0xa2')][_0x2ced('0x15')]('insertion',_0x5a73bd,_0x2ced('0x47'));for(const _0x3b07bb of this[_0x2ced('0x4a')]())if(_0x3b07bb[_0x2ced('0xc7')]['id']==_0x324bd8['id']&&'insertion'==_0x3b07bb[_0x2ced('0x45')]&&_0x3b07bb[_0x2ced('0x7b')]==_0x5a73bd&&(_0x2f06ef(_0x3b07bb[_0x2ced('0x1f')](),_0x47a4a7)||_0x2f06ef(_0x47a4a7,_0x3b07bb['getRanges']()))){for(const _0x77902c of _0x47a4a7)_0x3b07bb[_0x2ced('0x117')](_0x77902c);return _0x3b07bb;}if(this[_0x2ced('0x7')])for(const _0x43690d of _0x47a4a7)for(const {suggestion:_0x5624f4,meta:_0x498c7a}of this[_0x2ced('0x59')](_0x43690d,'insertion')){if(!_0x498c7a['isOwn'])continue;let _0x1c26db=!0x0;for(const _0x9fc3e9 of _0x5624f4[_0x2ced('0x1f')]())for(const _0xa60833 of _0x47a4a7)if(!_0x9fc3e9['containsRange'](_0xa60833)){_0x1c26db=!0x1;break;}if(_0x1c26db)return _0x5624f4;}const _0x4360f9=_0x13a79c(),_0x56b0cb=_0x324bd8['id'],_0x44ad75=_0x2ced('0xf7')+_0x5a73bd,_0x2b02fc=this['_setSuggestionData']({'id':_0x4360f9,'type':_0x44ad75,'createdAt':new Date(),'authorId':_0x56b0cb,'attributes':_0x42d003});for(const _0x5280e3 of _0x47a4a7)this[_0x2ced('0x8e')](_0x44ad75,_0x4360f9,_0x56b0cb,_0x5280e3,_0x2fb142[_0x2ced('0x74')]());return _0x2b02fc;}[_0x2ced('0xf')](_0x5ba5d9,_0x4d5d13,_0x1b5422=null,_0x204c01={}){if(_0x1b5422=_0x1b5422||$t(_0x4d5d13),_0x5ba5d9['isCollapsed'])return null;if(_0x2ced('0x5a')===this[_0x2ced('0xd1')]){const _0x4eb044=this[_0x2ced('0xa2')][_0x2ced('0x15')](_0x2ced('0x51'),_0x1b5422,'accept');return this[_0x2ced('0x29')](()=>_0x4eb044([_0x5ba5d9],_0x4d5d13,_0x204c01)),null;}const _0x2a860e=this[_0x2ced('0xfa')][_0x2ced('0x22')][_0x2ced('0x11d')](_0x2ced('0xa9'))['me'],_0x33805e=[];if(_0x2ced('0xfb')!==this[_0x2ced('0xd1')])for(const {suggestion:_0x313669,meta:_0x4a6dd7}of this['_findSuggestions'](_0x5ba5d9,'insertion'))_0x4a6dd7[_0x2ced('0x44')]&&!_0x4a6dd7[_0x2ced('0xfd')]&&_0x33805e[_0x2ced('0xfc')](..._0x313669[_0x2ced('0x1f')]());const _0x20f73c=function(_0x157506,_0x4460c2){const _0xa5e77c=[];for(const _0x560647 of _0x4460c2){const _0x4eb285=_0x157506[_0x2ced('0xcf')](_0x560647);_0x4eb285&&_0xa5e77c[_0x2ced('0xfc')](_0x4eb285);}return _0xa5e77c;}(_0x5ba5d9,_0x33805e),_0x5ead70=function(_0x3cee6a,_0x5a403d){const _0x402752=[_0x3cee6a];for(const _0x251d7b of _0x5a403d){let _0xa35a8a=0x0;for(;_0xa35a8a<_0x402752[_0x2ced('0xb9')];){const _0x2c30c8=_0x402752[_0xa35a8a][_0x2ced('0x5f')](_0x251d7b);_0x402752[_0x2ced('0x139')](_0xa35a8a,0x1,..._0x2c30c8),_0xa35a8a+=_0x2c30c8[_0x2ced('0xb9')];}}return _0x402752;}(_0x5ba5d9,_0x33805e);_0x20f73c[_0x2ced('0xb9')]&&this['_model'][_0x2ced('0x39')](()=>{for(const _0x3baf7a of _0x20f73c){const _0x1e7b33=this[_0x2ced('0xa2')][_0x2ced('0x15')](_0x2ced('0x51'),_0x1b5422,_0x2ced('0xf5'));this['forceDefaultExecution'](()=>_0x1e7b33([_0x3baf7a],_0x4d5d13,_0x204c01));}});for(const _0x1abacf of _0x5ead70){let _0x422287=null,_0x28c580=_0x1abacf['start'],_0x483249=_0x1abacf[_0x2ced('0x12b')];for(const {suggestion:_0x841aea,meta:_0x1b1ca4}of this[_0x2ced('0x59')](_0x1abacf,_0x2ced('0x51'))){if(!_0x1b1ca4[_0x2ced('0x44')])continue;if(_0x841aea[_0x2ced('0x7b')]!=_0x1b5422)continue;const _0xf9953d=_0x841aea[_0x2ced('0x49')]();if(_0xf9953d[_0x2ced('0xff')](_0x1abacf,!0x0))return null;_0x28c580=_0x28c580[_0x2ced('0x62')](_0xf9953d['start'])?_0x28c580:_0xf9953d[_0x2ced('0x50')],_0x483249=_0x483249['isAfter'](_0xf9953d[_0x2ced('0x12b')])?_0x483249:_0xf9953d[_0x2ced('0x12b')],_0x422287?_0xf9953d['start'][_0x2ced('0x62')](_0x422287['getFirstRange']()['start'])?(_0x422287['removeMarkers'](),_0x422287=_0x841aea):_0x841aea['removeMarkers']():_0x422287=_0x841aea;}const _0x589d0c=this['_model']['createRange'](_0x28c580,_0x483249);if(_0x422287)this[_0x2ced('0x112')](_0x422287,_0x589d0c);else{const _0x3e8f12=_0x13a79c(),_0x2e89bd=_0x2a860e['id'];this['_setSuggestionData']({'id':_0x3e8f12,'type':_0x2ced('0x71')+_0x1b5422,'data':_0x4d5d13,'createdAt':new Date(),'authorId':_0x2e89bd,'attributes':_0x204c01}),this[_0x2ced('0x8e')]('formatInline:'+_0x1b5422,_0x3e8f12,_0x2e89bd,_0x589d0c);}}return null;}['markBlockFormat'](_0x2f6a9c,_0x4eeb11,_0x3e4f0d=[],_0x5fc40b=null,_0x2b4b9a={}){_0x4eeb11['formatGroupId']||(_0x4eeb11['formatGroupId']=_0x4eeb11['commandName']),_0x4eeb11['multipleBlocks']=_0x2f6a9c['is'](_0x2ced('0x104')),_0x5fc40b=_0x5fc40b||$t(_0x4eeb11);const _0x5893c3=_0x3e4f0d[_0x2ced('0xce')](_0x5d0cd5=>Rt(_0x5d0cd5,this['_model'])),_0x252e0a=_0x2f6a9c['is'](_0x2ced('0x104'))?_0x2f6a9c:Rt(_0x2f6a9c,this[_0x2ced('0x8b')]);if(_0x2ced('0x5a')===this['_trackFormatChanges']){const _0x107f53=this[_0x2ced('0xa2')][_0x2ced('0x15')](_0x2ced('0x89'),_0x5fc40b,'accept');return this[_0x2ced('0x29')](()=>_0x107f53([_0x252e0a],_0x4eeb11,_0x2b4b9a)),null;}_0x5893c3[_0x2ced('0xfc')](_0x252e0a);let _0x44903c=!0x0;for(const _0x4084b4 of _0x5893c3)if(!this[_0x2ced('0x2f')](_0x4084b4)){_0x44903c=!0x1;break;}if(_0x44903c&&_0x2ced('0xfb')!==this[_0x2ced('0xd1')]){const _0x3e7d87=this['_suggestionFactory'][_0x2ced('0x15')]('formatBlock',_0x5fc40b,'accept');return this[_0x2ced('0x29')](()=>_0x3e7d87([_0x252e0a],_0x4eeb11,_0x2b4b9a)),null;}let _0x1a4203=null,_0x7421fe=_0x252e0a[_0x2ced('0x50')],_0x1da607=_0x252e0a[_0x2ced('0x12b')];for(const {suggestion:_0x2e80cf,meta:_0x2db39f}of this[_0x2ced('0x59')](_0x252e0a,_0x2ced('0x89'))){if(!_0x2db39f[_0x2ced('0x44')]||_0x2db39f[_0x2ced('0xdd')]||_0x2db39f[_0x2ced('0x23')]||_0x2db39f['isInsideObject'])continue;if(_0x2e80cf[_0x2ced('0xc8')][_0x2ced('0x3b')]!=_0x4eeb11[_0x2ced('0x3b')])continue;const _0x3a13e5=_0x2e80cf[_0x2ced('0x49')]();if(_0x2e80cf[_0x2ced('0x7b')]==_0x5fc40b){if(_0x3a13e5[_0x2ced('0xff')](_0x252e0a,!0x0))return null;_0x7421fe=_0x7421fe['isBefore'](_0x3a13e5[_0x2ced('0x50')])?_0x7421fe:_0x3a13e5['start'],_0x1da607=_0x1da607[_0x2ced('0xa6')](_0x3a13e5['end'])?_0x1da607:_0x3a13e5[_0x2ced('0x12b')],_0x1a4203?_0x3a13e5['start']['isBefore'](_0x1a4203[_0x2ced('0x49')]()[_0x2ced('0x50')])?(_0x1a4203[_0x2ced('0x91')](),_0x1a4203=_0x2e80cf):_0x2e80cf['removeMarkers']():_0x1a4203=_0x2e80cf;}else{const _0x128378=_0x252e0a[_0x2ced('0xcf')](_0x3a13e5);this[_0x2ced('0xec')](_0x2e80cf,_0x128378);}}const _0x1cac52=this[_0x2ced('0xfa')]['plugins'][_0x2ced('0x11d')](_0x2ced('0xa9'))['me'],_0x45a6ac=_0x13a79c(),_0x517a9a=_0x1cac52['id'];if(_0x1a4203)return this['_setSuggestionRange'](_0x1a4203,this[_0x2ced('0x8b')][_0x2ced('0xd9')](_0x7421fe,_0x1da607)),_0x1a4203;{const _0x442ca5=this[_0x2ced('0x90')]({'id':_0x45a6ac,'type':_0x2ced('0xbd')+_0x5fc40b,'data':_0x4eeb11,'createdAt':new Date(),'authorId':_0x517a9a,'attributes':_0x2b4b9a});return this[_0x2ced('0x8e')](_0x2ced('0xbd')+_0x5fc40b,_0x45a6ac,_0x517a9a,this[_0x2ced('0x8b')][_0x2ced('0xd9')](_0x7421fe,_0x1da607)),_0x442ca5;}}['markMultiRangeBlockFormat'](_0x3e3bce,_0xab118d,_0x1f6a78=[],_0x524f98=null,_0x595eca={}){_0xab118d['formatGroupId']||(_0xab118d[_0x2ced('0x3b')]=_0xab118d[_0x2ced('0x4d')]);const _0x59fcc9=_0x3e3bce[0x0];_0xab118d[_0x2ced('0x37')]=_0x59fcc9['is'](_0x2ced('0x104')),_0x524f98=_0x524f98||$t(_0xab118d);const _0xb5bde=_0x1f6a78['map'](_0x389dae=>Rt(_0x389dae,this[_0x2ced('0x8b')])),_0x5201a0=_0x59fcc9['is']('range')?_0x3e3bce:_0x3e3bce[_0x2ced('0xce')](_0x10d168=>Rt(_0x10d168,this[_0x2ced('0x8b')]));if(_0x2ced('0x5a')===this[_0x2ced('0xd1')]){const _0x15e0ad=this[_0x2ced('0xa2')][_0x2ced('0x15')](_0x2ced('0x89'),_0x524f98,_0x2ced('0xf5'));return this[_0x2ced('0x29')](()=>_0x15e0ad(_0x5201a0,_0xab118d,_0x595eca)),null;}_0xb5bde['push'](..._0x5201a0);let _0x40babc=!0x0;for(const _0x1bca60 of _0xb5bde)if(!this[_0x2ced('0x2f')](_0x1bca60)){_0x40babc=!0x1;break;}if(_0x40babc&&'always'!==this[_0x2ced('0xd1')]){const _0x3d14f0=this[_0x2ced('0xa2')][_0x2ced('0x15')](_0x2ced('0x89'),_0x524f98,'accept');return this[_0x2ced('0x29')](()=>_0x3d14f0(_0x5201a0,_0xab118d,_0x595eca)),null;}const _0x5e7423=this['editor'][_0x2ced('0x22')][_0x2ced('0x11d')](_0x2ced('0xa9'))['me'];for(const _0x268fad of this[_0x2ced('0x4a')]()){if(_0x268fad[_0x2ced('0xc7')]['id']!=_0x5e7423['id'])continue;if(_0x2ced('0x89')!=_0x268fad['type']||_0x268fad[_0x2ced('0xc8')][_0x2ced('0x3b')]!=_0xab118d[_0x2ced('0x3b')])continue;const _0x5cfb9b=_0x268fad[_0x2ced('0x7b')]==_0x524f98;for(let _0x17daea=0x0;_0x17daea<_0x5201a0[_0x2ced('0xb9')];_0x17daea++){const _0x1c4998=_0x5201a0[_0x17daea];for(const _0x3296d2 of _0x268fad[_0x2ced('0x32')]()){const _0xc9a76b=_0x3296d2[_0x2ced('0x21')]();if(_0x1c4998['isEqual'](_0xc9a76b)){_0x5cfb9b?(_0x5201a0[_0x2ced('0x139')](_0x17daea,0x1),_0x17daea--):_0x268fad['removeMarker'](_0x3296d2[_0x2ced('0xb0')]);break;}}}}if(0x0==_0x5201a0[_0x2ced('0xb9')])return null;const _0x2b374c=this['_suggestionFactory'][_0x2ced('0x15')](_0x2ced('0x89'),_0x524f98,_0x2ced('0x47'));for(const _0x419553 of this[_0x2ced('0x4a')]())if(_0x419553[_0x2ced('0xc7')]['id']==_0x5e7423['id']&&_0x2ced('0x89')==_0x419553[_0x2ced('0x45')]&&_0x419553['data'][_0x2ced('0x3b')]==_0xab118d[_0x2ced('0x3b')]&&_0x419553['subType']==_0x524f98&&(_0x2b374c(_0x419553[_0x2ced('0x1f')](),_0x5201a0)||_0x2b374c(_0x5201a0,_0x419553['getRanges']()))){for(const _0x36fad2 of _0x5201a0)_0x419553[_0x2ced('0x117')](_0x36fad2);return _0x419553;}const _0x2bdc74=_0x13a79c(),_0x24d8fa=_0x5e7423['id'],_0xd2c610=_0x2ced('0xbd')+_0x524f98,_0x2619a1=this[_0x2ced('0x90')]({'id':_0x2bdc74,'type':_0xd2c610,'data':_0xab118d,'createdAt':new Date(),'authorId':_0x24d8fa,'attributes':_0x595eca});for(const _0x5ebc4a of _0x5201a0)this['_addSuggestionMarker'](_0xd2c610,_0x2bdc74,_0x24d8fa,_0x5ebc4a,_0x2fb142[_0x2ced('0x74')]());return _0x2619a1;}['markDeletion'](_0x10ab51,_0x1b09c4=null,_0x275797={}){if(_0x10ab51[_0x2ced('0xf1')])return null;const _0xaf7c58=this[_0x2ced('0xfa')][_0x2ced('0x22')]['get'](_0x2ced('0xa9'))['me'],_0xfcdf03=new _0x4e6ae0(_0x10ab51[_0x2ced('0x50')],_0x10ab51[_0x2ced('0x12b')]);for(const {suggestion:_0x3f4788,meta:_0x31d1c7}of this[_0x2ced('0x59')](_0xfcdf03,_0x2ced('0xc4')))if(_0x31d1c7[_0x2ced('0x44')]&&!_0x31d1c7[_0x2ced('0xdd')]){if(_0x3f4788[_0x2ced('0xd2')]){const _0x4c4f41=_0x3f4788['getRanges']()[_0x2ced('0x2e')](_0x243b93=>_0x2ced('0x12a')!=_0x243b93[_0x2ced('0x10a')]['rootName']);_0x4c4f41['every'](_0x881ae8=>_0xfcdf03[_0x2ced('0xff')](_0x881ae8,!0x0))&&_0x3f4788[_0x2ced('0x127')]();if(_0x4c4f41['some'](_0x303ee8=>_0x303ee8[_0x2ced('0xff')](_0xfcdf03,!0x0))){const _0x467bdf=this[_0x2ced('0xa2')][_0x2ced('0x15')]('deletion',_0x1b09c4,_0x2ced('0xf5'));return this[_0x2ced('0x29')](()=>_0x467bdf([_0xfcdf03],null,_0x275797)),null;}}else{const _0xf367b8=_0xfcdf03[_0x2ced('0xcf')](_0x3f4788['getFirstRange']());null!==_0xf367b8&&_0x3f4788[_0x2ced('0x67')]([_0xf367b8],null,_0x275797);}}if(_0xfcdf03[_0x2ced('0xf2')](),_0xfcdf03[_0x2ced('0xf1')]||_0x2ced('0x12a')==_0xfcdf03[_0x2ced('0x10a')][_0x2ced('0x33')])return null;let _0x23f6d5=null,_0x2c2573=_0xfcdf03['start'],_0x2d6cab=_0xfcdf03['end'];for(const {suggestion:_0x416da3,meta:_0x4b3a17}of this[_0x2ced('0x59')](_0xfcdf03,_0x2ced('0x8c')))if(_0x4b3a17['isOwn']){if(_0x416da3['isMultiRange']&&this[_0x2ced('0x7')]){let _0x3718f4=!0x0;for(const _0x4fc158 of _0x416da3[_0x2ced('0x1f')]()){if(_0x4fc158[_0x2ced('0xff')](_0xfcdf03,!0x0))return _0x416da3;_0xfcdf03[_0x2ced('0xff')](_0x4fc158)||(_0x3718f4=!0x1);}_0x3718f4&&_0x416da3[_0x2ced('0x127')]();}else{const _0x1d265d=_0x416da3[_0x2ced('0x49')]();if(_0x1d265d['containsRange'](_0xfcdf03,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4b3a17['containsRangeInObject'])continue;return _0x416da3;}_0x2c2573=_0x2c2573[_0x2ced('0x62')](_0x1d265d['start'])?_0x2c2573:_0x1d265d[_0x2ced('0x50')],_0x2d6cab=_0x2d6cab['isAfter'](_0x1d265d[_0x2ced('0x12b')])?_0x2d6cab:_0x1d265d['end'],_0x23f6d5?_0x1d265d[_0x2ced('0x50')][_0x2ced('0x62')](_0x23f6d5[_0x2ced('0x49')]()[_0x2ced('0x50')])?(_0x23f6d5[_0x2ced('0x91')](),_0x23f6d5=_0x416da3):_0x416da3[_0x2ced('0x91')]():_0x23f6d5=_0x416da3;}}if(_0x23f6d5)return this[_0x2ced('0x112')](_0x23f6d5,this['_model'][_0x2ced('0xd9')](_0x2c2573,_0x2d6cab)),_0x23f6d5;{const _0x5e39a8=_0x13a79c(),_0x1cb8bf=this[_0x2ced('0x8b')][_0x2ced('0xd9')](_0x2c2573,_0x2d6cab),_0x4795ee=_0xaf7c58['id'],_0x14ebe5=_0x1b09c4?_0x2ced('0x58')+_0x1b09c4:'deletion',_0xb73cc4=this[_0x2ced('0x90')]({'id':_0x5e39a8,'type':_0x14ebe5,'createdAt':new Date(),'authorId':_0x4795ee,'attributes':_0x275797});return this[_0x2ced('0x8e')](_0x14ebe5,_0x5e39a8,_0x4795ee,_0x1cb8bf),_0xb73cc4;}}['markMultiRangeDeletion'](_0x1e5809,_0x2e5dc2='multi',_0x91cda1={}){const _0x166a9d=this[_0x2ced('0xfa')][_0x2ced('0x22')][_0x2ced('0x11d')](_0x2ced('0xa9'))['me'],_0x48e84a=_0x1e5809[_0x2ced('0xce')](_0x16ffb0=>new _0x4e6ae0(_0x16ffb0[_0x2ced('0x50')],_0x16ffb0[_0x2ced('0x12b')])),_0x537ca0=new Set();for(const _0x312333 of _0x48e84a)for(const {suggestion:_0x64d435,meta:_0x2b729b}of this[_0x2ced('0x59')](_0x312333,_0x2ced('0xc4')))_0x2b729b[_0x2ced('0x44')]&&!_0x2b729b[_0x2ced('0xdd')]&&_0x537ca0[_0x2ced('0xcb')](_0x64d435);for(const _0x3c0a9c of _0x537ca0)if(_0x3c0a9c['isMultiRange']){const _0x1ee347=_0x3c0a9c[_0x2ced('0x1f')]();(!_0x3c0a9c[_0x2ced('0x8d')]||!_0x3c0a9c[_0x2ced('0x8d')][_0x2ced('0xdf')])&&(_0x1ee347[_0x2ced('0x8a')](_0x47badb=>_0x48e84a[_0x2ced('0x10b')](_0x5aa384=>_0x5aa384['containsRange'](_0x47badb,!0x0)))&&_0x3c0a9c[_0x2ced('0x127')]());if(_0x48e84a[_0x2ced('0x8a')](_0x18ecb5=>_0x1ee347['some'](_0x55fc92=>_0x55fc92[_0x2ced('0xff')](_0x18ecb5,!0x0)))){const _0x143dd1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e5dc2,_0x2ced('0xf5'));return this[_0x2ced('0x29')](()=>_0x143dd1(_0x1e5809,null,_0x91cda1)),null;}}else{const _0x4fae9e=_0x3c0a9c[_0x2ced('0x49')]();_0x48e84a['some'](_0x258a07=>_0x258a07['containsRange'](_0x4fae9e,!0x0))&&_0x3c0a9c[_0x2ced('0x127')]();if(_0x48e84a['every'](_0x393594=>_0x4fae9e['containsRange'](_0x393594,!0x0))){const _0x47c0a5=this[_0x2ced('0xa2')][_0x2ced('0x15')](_0x2ced('0x8c'),_0x2e5dc2,'accept');return this[_0x2ced('0x29')](()=>_0x47c0a5(_0x48e84a,null,_0x91cda1)),null;}}const _0x20d931=this[_0x2ced('0xa2')][_0x2ced('0x15')]('deletion',_0x2e5dc2,_0x2ced('0x47'));let _0x142cc0=null;for(const _0x398ad5 of this['getSuggestions']())if(_0x398ad5[_0x2ced('0xc7')]['id']==_0x166a9d['id']&&_0x398ad5['isInContent']&&_0x2ced('0x8c')==_0x398ad5[_0x2ced('0x45')]&&_0x398ad5[_0x2ced('0x7b')]==_0x2e5dc2&&(_0x20d931(_0x398ad5[_0x2ced('0x1f')](),_0x48e84a)||_0x20d931(_0x48e84a,_0x398ad5[_0x2ced('0x1f')]()))){if(_0x142cc0){if(_0x398ad5['commentThread']&&_0x398ad5[_0x2ced('0xc0')]['length'])continue;for(const _0x35c4ab of _0x398ad5[_0x2ced('0x1f')]())_0x142cc0[_0x2ced('0x100')](_0x35c4ab)||_0x142cc0[_0x2ced('0x117')](_0x35c4ab);_0x398ad5['removeMarkers']();}else{_0x142cc0=_0x398ad5;for(const _0x420547 of _0x48e84a)_0x398ad5[_0x2ced('0x100')](_0x420547)||_0x398ad5[_0x2ced('0x117')](_0x420547);}}if(_0x142cc0)return _0x142cc0;_0x537ca0[_0x2ced('0x144')]();for(const _0x284b69 of _0x48e84a)for(const {suggestion:_0x4715c3,meta:_0x4d393e}of this[_0x2ced('0x59')](_0x284b69,_0x2ced('0x8c')))_0x4d393e[_0x2ced('0x44')]&&_0x537ca0[_0x2ced('0xcb')](_0x4715c3);for(const _0x1ada69 of _0x537ca0){const _0x27c341=_0x1ada69[_0x2ced('0x1f')]();if(!_0x91cda1||!_0x91cda1[_0x2ced('0xdf')]){if(_0x48e84a[_0x2ced('0x8a')](_0x367555=>_0x27c341['some'](_0x5529a0=>_0x5529a0[_0x2ced('0xff')](_0x367555,!0x0))))return _0x1ada69;}(!_0x1ada69[_0x2ced('0x8d')]||!_0x1ada69[_0x2ced('0x8d')][_0x2ced('0xdf')])&&(_0x27c341[_0x2ced('0x8a')](_0x249c77=>_0x48e84a['some'](_0x4ce0c3=>_0x4ce0c3['containsRange'](_0x249c77,!0x0)))&&_0x1ada69[_0x2ced('0x127')]());}const _0x175739=_0x13a79c(),_0x350bb9=_0x166a9d['id'],_0x2017f1=_0x2ced('0x58')+_0x2e5dc2,_0x2a0413=this[_0x2ced('0x90')]({'id':_0x175739,'type':_0x2017f1,'createdAt':new Date(),'authorId':_0x350bb9,'attributes':_0x91cda1});for(const _0x5b290e of _0x48e84a)_0x5b290e[_0x2ced('0xf2')](),_0x5b290e['isCollapsed']||_0x2ced('0x12a')==_0x5b290e[_0x2ced('0x10a')][_0x2ced('0x33')]||this[_0x2ced('0x8e')](_0x2017f1,_0x175739,_0x350bb9,_0x5b290e,_0x2fb142[_0x2ced('0x74')]());return _0x2a0413;}[_0x2ced('0x112')](_0x264748,_0x4ca64a){const _0x284811=_0x264748[_0x2ced('0x25')]();this[_0x2ced('0x8b')][_0x2ced('0x39')](_0x19850e=>{_0x19850e[_0x2ced('0x61')](_0x284811,{'range':_0x4ca64a});});}[_0x2ced('0x99')](_0x5d72f8){const _0xd31e77=_0x5d72f8['id'],_0x32c4a1=this[_0x2ced('0xfa')]['config'][_0x2ced('0x11d')](_0x2ced('0xcd'));this['_commentsRepository'][_0x2ced('0x4e')](_0xd31e77)||this[_0x2ced('0x10')]['addCommentThread']({'channelId':_0x32c4a1,'threadId':_0xd31e77,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x52757a=this['_commentsRepository']['getCommentThread'](_0xd31e77);_0x52757a[_0x2ced('0xb6')](_0x2ced('0x1')),_0x52757a[_0x2ced('0x1')]=!0x1,_0x5d72f8[_0x2ced('0xc0')]=_0x52757a;}[_0x2ced('0xbc')](_0x547529,_0x11026b,_0x1352d9,_0x352aef){if(_0x547529[_0x2ced('0x45')]!=_0x11026b||_0x547529[_0x2ced('0x7b')]!=_0x1352d9||_0x547529['creator']['id']!=_0x352aef)throw this[_0x2ced('0xfa')][_0x2ced('0x7a')](_0x2ced('0x120')),new _0x4ab477(_0x2ced('0x120'),this);}[_0x2ced('0xec')](_0xe678f0,_0xa77a87){const _0x527bfc=_0xe678f0[_0x2ced('0x49')]();if(_0xa77a87[_0x2ced('0x86')](_0x527bfc))_0xe678f0[_0x2ced('0x91')]();else{if(_0x527bfc[_0x2ced('0xff')](_0xa77a87)){const _0xd789d0=this[_0x2ced('0x8b')][_0x2ced('0x2b')](_0xa77a87[_0x2ced('0x50')][_0x2ced('0x6a')],_0x2ced('0x12b'));this[_0x2ced('0x112')](_0xe678f0,this['_model']['createRange'](_0x527bfc[_0x2ced('0x50')],_0xd789d0));const _0x3b269c=_0x13a79c(),_0xb64ada=_0xe678f0['creator']['id'],_0x2840db=_0xe678f0['type']+':'+_0xe678f0['subType'];this[_0x2ced('0x90')]({'id':_0x3b269c,'type':_0x2840db,'createdAt':new Date(),'authorId':_0xb64ada,'data':_0xe678f0[_0x2ced('0xc8')],'attributes':_0xe678f0[_0x2ced('0x8d')]});const _0x233434=this[_0x2ced('0x8b')]['createPositionAt'](_0xa77a87[_0x2ced('0x12b')][_0x2ced('0xe7')],'after'),_0x3fa974=this['_model'][_0x2ced('0xd9')](_0x233434,_0x527bfc['end']);this['_addSuggestionMarker'](_0x2840db,_0x3b269c,_0xb64ada,_0x3fa974);}else{if(_0x527bfc[_0x2ced('0x13c')](_0xa77a87[_0x2ced('0x50')])){const _0x53c904=this['_model'][_0x2ced('0x2b')](_0xa77a87[_0x2ced('0x50')][_0x2ced('0x6a')],'end');this[_0x2ced('0x112')](_0xe678f0,this['_model'][_0x2ced('0xd9')](_0x527bfc[_0x2ced('0x50')],_0x53c904));}else{const _0x390225=this[_0x2ced('0x8b')][_0x2ced('0x2b')](_0xa77a87[_0x2ced('0x12b')][_0x2ced('0xe7')],'after');this[_0x2ced('0x112')](_0xe678f0,this['_model'][_0x2ced('0xd9')](_0x390225,_0x527bfc['end']));}}}}[_0x2ced('0x2f')](_0x20924b){for(const {suggestion:_0x57055c,meta:_0x507f6f}of this[_0x2ced('0x59')](_0x20924b,_0x2ced('0xc4'))){if(!_0x507f6f['isOwn'])continue;const _0x32d0e6=_0x57055c[_0x2ced('0x1f')]();for(const _0x2b2858 of _0x32d0e6)if(!_0x20924b[_0x2ced('0x5f')](_0x2b2858)[_0x2ced('0xb9')])return!0x0;}return!0x1;}[_0x2ced('0x101')](_0x9ece2d){const _0x27d9a7=this[_0x2ced('0xfa')][_0x2ced('0x22')][_0x2ced('0x11d')](_0x2ced('0xa9'))['getUser'](_0x9ece2d);if(!_0x27d9a7)throw new _0x4ab477('track-changes-user-not-found',this);return _0x27d9a7;}['_getExternalAuthor'](_0x253f82){const _0x560d95=this['editor'][_0x2ced('0x22')]['get'](_0x2ced('0xa9')),_0x9e889e=_0x33027b(_0x2ced('0x94')+_0x253f82),_0x1c4e4c=_0x560d95['getUser'](_0x9e889e);return _0x1c4e4c||_0x560d95[_0x2ced('0x38')]({'id':_0x9e889e,'name':_0x253f82});}['_createSuggestion'](_0x13ea61,_0x2f25cc,_0x4da343,_0x4b9a93,_0x48e06c){const _0x245760=this[_0x2ced('0x101')](_0x4b9a93),_0xe0c59c=this[_0x2ced('0xa2')][_0x2ced('0xe6')](_0x13ea61,_0x2f25cc,_0x4da343,_0x245760,_0x48e06c,_0x4fe3b3=>this[_0x2ced('0x3a')](_0x4da343,{'attributes':_0x4fe3b3}));return this[_0x2ced('0x7f')](_0xe0c59c,'accept',()=>{this[_0x2ced('0x3a')](_0x4da343,{'state':'accepted'});},{'priority':_0x2ced('0x40')}),this[_0x2ced('0x7f')](_0xe0c59c,'discard',()=>{this[_0x2ced('0x3a')](_0x4da343,{'state':_0x2ced('0xd5')});},{'priority':_0x2ced('0x40')}),this[_0x2ced('0x9c')][_0x2ced('0x140')](_0x4da343,_0xe0c59c),this[_0x2ced('0xe3')][_0x2ced('0x140')](_0xe0c59c,'notReady'),_0xe0c59c;}[_0x2ced('0x102')](_0x18660f){const _0x2e2302=_0x18660f[_0x2ced('0x9a')](':');return{'group':_0x2e2302[0x0],'type':_0x2e2302[0x1],'subType':_0x2e2302['length']>=0x5?_0x2e2302[0x2]:null,'id':_0x2e2302[_0x2ced('0xb9')]<0x5?_0x2e2302[0x2]:_0x2e2302[0x3],'authorId':_0x2e2302[_0x2ced('0xb9')]<0x5?_0x2e2302[0x3]:_0x2e2302[0x4],'markerCount':0x6==_0x2e2302[_0x2ced('0xb9')]?_0x2e2302[0x5]:null};}[_0x2ced('0xd6')](_0x495aa9,_0x4276df,_0x558e4c){const _0x54bb04=_0x495aa9['getFirstRange'](),_0x4de607=_0x54bb04['start'],_0x4f4498=_0x54bb04['end'];this[_0x2ced('0x112')](_0x495aa9,this[_0x2ced('0x8b')][_0x2ced('0xd9')](_0x4de607,_0x4276df));const _0x16ef5f=_0x13a79c(),_0x1f7cb5=_0x495aa9[_0x2ced('0x26')]['id'],_0x2907d4=_0x495aa9[_0x2ced('0x45')]+(_0x495aa9[_0x2ced('0x7b')]?':'+_0x495aa9[_0x2ced('0x7b')]:'');this[_0x2ced('0x90')]({'id':_0x16ef5f,'type':_0x2907d4,'createdAt':new Date(),'authorId':_0x1f7cb5,'originalSuggestionId':_0x495aa9['id'],'attributes':_0x495aa9['attributes'],'data':_0x495aa9[_0x2ced('0xc8')]}),_0x2ced('0x89')==_0x495aa9['type']&&(_0x558e4c=this[_0x2ced('0x8b')][_0x2ced('0x4c')](_0x558e4c[_0x2ced('0xe7')])),this[_0x2ced('0x8e')](_0x2907d4,_0x16ef5f,_0x1f7cb5,this[_0x2ced('0x8b')][_0x2ced('0xd9')](_0x558e4c,_0x4f4498));}[_0x2ced('0x59')](_0x2b4696,_0x37bd0c=null){const _0x559e4c=[],_0x1e9611=this['_model'][_0x2ced('0x6b')],_0x41e030=this[_0x2ced('0xfa')][_0x2ced('0x22')][_0x2ced('0x11d')]('Users')['me'];for(const _0x4c383d of this[_0x2ced('0x4a')]())if(_0x4c383d[_0x2ced('0xc')]&&(!_0x37bd0c||_0x4c383d[_0x2ced('0x45')]==_0x37bd0c))for(const _0x311f38 of _0x4c383d[_0x2ced('0x1f')]()){const _0x1a9239=_0x2b4696[_0x2ced('0x50')]['isEqual'](_0x311f38[_0x2ced('0x12b')])||_0x2b4696['end'][_0x2ced('0x86')](_0x311f38[_0x2ced('0x50')]);if(_0x1a9239||_0x2b4696[_0x2ced('0xcf')](_0x311f38)){const _0xaca157=_0x2b4696[_0x2ced('0xff')](_0x311f38)&&Bt(_0x1e9611,_0x311f38[_0x2ced('0x50')],_0x2b4696),_0xb3b3d9=_0x311f38[_0x2ced('0xff')](_0x2b4696)&&Bt(_0x1e9611,_0x2b4696[_0x2ced('0x50')],_0x311f38);_0x559e4c['push']({'suggestion':_0x4c383d,'meta':{'isOwn':_0x41e030==_0x4c383d[_0x2ced('0xc7')],'isNextTo':_0x1a9239,'isInsideObject':_0xaca157,'containsRangeInObject':_0xb3b3d9}});break;}}return _0x559e4c;}[_0x2ced('0x8e')](_0xf7f841,_0x41b547,_0x2590cf,_0x80fa5a,_0x3d1328){this[_0x2ced('0x8b')][_0x2ced('0x39')](_0x4bba19=>{let _0x537b57=_0x2ced('0x64')+_0xf7f841+':'+_0x41b547+':'+_0x2590cf;_0x3d1328&&(_0x537b57=_0x537b57+':'+_0x3d1328),_0x4bba19['addMarker'](_0x537b57,{'range':_0x80fa5a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5031b3){const _0x1b92a1=_0x5031b3[_0x2ced('0xaf')],_0x558e2a=_0x5031b3[_0x2ced('0xef')];_0x5031b3[_0x2ced('0xaf')]=null,null!=_0x1b92a1&&(_0x1b92a1[_0x2ced('0xef')]=null),_0x5031b3[_0x2ced('0xef')]=null,null!=_0x558e2a&&(_0x558e2a[_0x2ced('0xaf')]=null),_0x2ced('0xd3')==this[_0x2ced('0xe3')]['get'](_0x5031b3)&&(this['_suggestionState'][_0x2ced('0x140')](_0x5031b3,_0x2ced('0x10c')),this['fire'](_0x2ced('0xe1'),_0x5031b3,_0x1b92a1,_0x558e2a));}[_0x2ced('0x90')](_0x304eed){const _0x5ac92b=_0x304eed['id'],_0x1ca4e8=this['addSuggestionData'](_0x304eed);if(this[_0x2ced('0xea')]&&this[_0x2ced('0xea')]['addSuggestion']){const _0x37e7d5=this['editor']['plugins']['get'](_0x2ced('0x121')),_0x3888fe=_0x1ca4e8[_0x2ced('0x30')],_0x555099=_0x1ca4e8[_0x2ced('0x7b')]?_0x1ca4e8['type']+':'+_0x1ca4e8[_0x2ced('0x7b')]:_0x1ca4e8[_0x2ced('0x45')],_0x4162d1=this[_0x2ced('0xfa')][_0x2ced('0xf3')],_0x54b6d4=_0x37e7d5[_0x2ced('0xcb')](_0x40a7e5(_0x4162d1,_0x2ced('0xd8'))),_0x153e24={'id':_0x5ac92b,'type':_0x555099,'hasComments':_0x3888fe,'data':_0x304eed['data']||null,'originalSuggestionId':_0x304eed[_0x2ced('0x5e')]||null,'attributes':_0x1ca4e8[_0x2ced('0x8d')]};this['_adapter'][_0x2ced('0x142')](_0x153e24)['then'](_0x26fe1c=>{_0x1ca4e8[_0x2ced('0xed')]=!0x0,_0x37e7d5[_0x2ced('0x66')](_0x54b6d4),_0x26fe1c&&_0x26fe1c[_0x2ced('0x7d')]&&(this[_0x2ced('0x9c')]['get'](_0x5ac92b)[_0x2ced('0x7d')]=_0x26fe1c['createdAt']);})[_0x2ced('0xf0')](_0x2e91be=>{throw _0x2b06d5(_0x2ced('0x9b')),this[_0x2ced('0xfa')][_0x2ced('0x8')][_0x2ced('0xc9')]({'isUndoable':!0x1},()=>{_0x1ca4e8['discard']();}),_0x1ca4e8[_0x2ced('0x95')](),this['_suggestions']['delete'](_0x1ca4e8['id']),this[_0x2ced('0xe3')][_0x2ced('0x52')](_0x1ca4e8),_0x2e91be;});}return _0x1ca4e8;}[_0x2ced('0x3a')](_0x1085d1,_0x8e43fc){const _0x39680b=this[_0x2ced('0xfa')][_0x2ced('0x22')]['get'](_0x2ced('0x121')),_0xab0e34=this['getSuggestion'](_0x1085d1);if(this[_0x2ced('0xea')]&&this[_0x2ced('0xea')][_0x2ced('0xe')]){if(_0xab0e34[_0x2ced('0xed')]){const _0x1e25c6=_0x39680b[_0x2ced('0xcb')](_0x40a7e5(this[_0x2ced('0xfa')][_0x2ced('0xf3')],_0x2ced('0xd8')));this['_adapter']['updateSuggestion'](_0x1085d1,_0x8e43fc)[_0x2ced('0x98')](()=>{_0x39680b['remove'](_0x1e25c6);});}else _0xab0e34['on'](_0x2ced('0x113'),()=>{this['_updateSuggestionData'](_0x1085d1,_0x8e43fc);});}}[_0x2ced('0x129')](_0x2cc63d){if(!this[_0x2ced('0xea')]||!this[_0x2ced('0xea')][_0x2ced('0x70')])throw new _0x4ab477('track-changes-adapter-missing-getsuggestion',this);return this[_0x2ced('0xea')][_0x2ced('0x70')](_0x2cc63d);}[_0x2ced('0x72')](_0x28c468){const {id:_0x4eef5a,type:_0x5f1ed0,subType:_0x33d4e8,authorId:_0x495bf2}=this['_splitMarkerName'](_0x28c468),_0xc68120=this[_0x2ced('0x9c')][_0x2ced('0x11d')](_0x4eef5a)||this[_0x2ced('0xe0')](_0x5f1ed0,_0x33d4e8,_0x4eef5a,_0x495bf2,{});switch(this['_checkSuggestionCorrectness'](_0xc68120,_0x5f1ed0,_0x33d4e8,_0x495bf2),this[_0x2ced('0xe3')][_0x2ced('0x11d')](_0xc68120)){case _0x2ced('0x126'):this[_0x2ced('0x129')](_0x4eef5a)[_0x2ced('0x98')](_0x394456=>{let _0x16a013=Promise[_0x2ced('0x11')]();_0x394456[_0x2ced('0x30')]&&(_0x16a013=this['_commentsRepository'][_0x2ced('0x28')]({'channelId':this[_0x2ced('0xfa')]['config'][_0x2ced('0x11d')]('collaboration.channelId'),'threadId':_0x4eef5a})),_0x16a013[_0x2ced('0x98')](()=>{this[_0x2ced('0xe9')](_0x394456)[_0x2ced('0xed')]=!0x0;});}),this[_0x2ced('0xe3')][_0x2ced('0x140')](_0xc68120,_0x2ced('0xb2'));break;case _0x2ced('0x10c'):this['_updateSuggestionData'](_0x4eef5a,{'state':_0x2ced('0xc1')});case _0x2ced('0xdb'):this[_0x2ced('0xe3')][_0x2ced('0x140')](_0xc68120,_0x2ced('0xd3')),this[_0x2ced('0x4b')](_0x2ced('0x12e'),_0xc68120);break;case _0x2ced('0xd3'):this[_0x2ced('0x4b')](_0x2ced('0x108'),_0xc68120);}return _0xc68120['addMarkerName'](_0x28c468),_0xc68120;}['_refreshSuggestionsChain'](_0x27a3d4){const _0x1b2abd=Array['from'](_0x27a3d4)['filter'](_0x5daf3b=>!_0x5daf3b[_0x2ced('0xd2')]),_0x1e12fd=this[_0x2ced('0x4a')]({'skipNotAttached':!0x0})[_0x2ced('0x2e')](_0x38206e=>!_0x38206e['isMultiRange']),_0x14b880=_0x1e12fd['filter'](_0x4eeaa7=>!_0x27a3d4[_0x2ced('0x8f')](_0x4eeaa7)),_0x116a5a=new Map(_0x1e12fd[_0x2ced('0xce')](_0xe05c6b=>[_0xe05c6b,this[_0x2ced('0xa2')][_0x2ced('0x15')](_0xe05c6b[_0x2ced('0x45')],_0xe05c6b['subType'],_0x2ced('0x63'))])),_0x4a83c1=new Map(_0x1e12fd[_0x2ced('0xce')](_0x4d79d2=>[_0x4d79d2,_0x4d79d2[_0x2ced('0x49')]()])),_0xfa54c4=new Set(),_0x4a8245=new Set();for(let _0x1fcfbe=0x0;_0x1fcfbe<_0x1b2abd[_0x2ced('0xb9')];_0x1fcfbe++)_0xf43186(_0x1b2abd[_0x1fcfbe],_0x1b2abd,_0x1fcfbe+0x1);for(let _0x3371ca=0x0;_0x3371ca<_0x1b2abd[_0x2ced('0xb9')];_0x3371ca++)_0xf43186(_0x1b2abd[_0x3371ca],_0x14b880,0x0);for(let _0x2276aa=0x0;_0x2276aa<_0x1b2abd[_0x2ced('0xb9')];_0x2276aa++){const _0x2656eb=_0x1b2abd[_0x2276aa];!_0x4a8245[_0x2ced('0x8f')](_0x2656eb)&&_0x2656eb[_0x2ced('0xaf')]&&(_0x2656eb['previous']['next']===_0x2656eb&&(_0x2656eb[_0x2ced('0xaf')][_0x2ced('0xef')]=null),_0x2656eb[_0x2ced('0xaf')]=null),!_0xfa54c4[_0x2ced('0x8f')](_0x2656eb)&&_0x2656eb[_0x2ced('0xef')]&&(_0x2656eb['next'][_0x2ced('0xaf')]===_0x2656eb&&(_0x2656eb[_0x2ced('0xef')][_0x2ced('0xaf')]=null),_0x2656eb['next']=null);}function _0xf43186(_0x7dd458,_0x20f0f8,_0x1b06b5){for(let _0x3b149a=_0x1b06b5;_0x3b149a<_0x20f0f8[_0x2ced('0xb9')];_0x3b149a++){const _0x454244=_0x463bb5(_0x7dd458,_0x20f0f8[_0x3b149a]);_0x454244&&(_0x454244[0x0][_0x2ced('0xef')]=_0x454244[0x1],_0x454244[0x1][_0x2ced('0xaf')]=_0x454244[0x0],_0xfa54c4[_0x2ced('0xcb')](_0x454244[0x0]),_0x4a8245[_0x2ced('0xcb')](_0x454244[0x1]));}}function _0x463bb5(_0x29e0e0,_0x5484a8){if(_0x29e0e0['author']['id']!==_0x5484a8[_0x2ced('0xc7')]['id'])return null;const _0x53e86c=_0x116a5a[_0x2ced('0x11d')](_0x29e0e0)(_0x29e0e0,_0x5484a8,_0x4a83c1[_0x2ced('0x11d')](_0x29e0e0),_0x4a83c1[_0x2ced('0x11d')](_0x5484a8));if(!_0x53e86c)return null;return _0x116a5a[_0x2ced('0x11d')](_0x5484a8)(_0x29e0e0,_0x5484a8,_0x4a83c1[_0x2ced('0x11d')](_0x29e0e0),_0x4a83c1['get'](_0x5484a8))?_0x53e86c[0x1]['commentThread']&&_0x53e86c[0x1][_0x2ced('0xc0')][_0x2ced('0xb9')]?null:_0x53e86c:null;}}[_0x2ced('0x13a')](_0x4df108){const _0x29bc57=Array[_0x2ced('0xdc')](_0x4df108),_0x2cb486=this[_0x2ced('0x4a')]({'skipNotAttached':!0x0}),_0x44a1ef=_0x2cb486[_0x2ced('0x2e')](_0x135ffb=>!_0x4df108[_0x2ced('0x8f')](_0x135ffb)),_0x4c6936=new Map(_0x29bc57[_0x2ced('0xce')](_0x556c45=>[_0x556c45,this['_suggestionFactory'][_0x2ced('0x15')](_0x556c45[_0x2ced('0x45')],_0x556c45[_0x2ced('0x7b')],'join')])),_0x4ca936=new Map(_0x2cb486['map'](_0x3c73db=>[_0x3c73db,_0x3c73db[_0x2ced('0x1f')]()]));for(let _0x15be56=0x0;_0x15be56<_0x29bc57[_0x2ced('0xb9')];_0x15be56++){if(_0x17d3bc(this,_0x29bc57[_0x15be56],_0x29bc57,_0x15be56+0x1))return!0x0;}for(let _0x415e77=0x0;_0x415e77<_0x29bc57[_0x2ced('0xb9')];_0x415e77++){if(_0x17d3bc(this,_0x29bc57[_0x415e77],_0x44a1ef,0x0))return!0x0;}return!0x1;function _0x17d3bc(_0x3a73ce,_0x8d151,_0x4fa354,_0x145ad1){for(let _0x1a5774=_0x145ad1;_0x1a5774<_0x4fa354[_0x2ced('0xb9')];_0x1a5774++){const _0x408dcf=_0x4fa354[_0x1a5774];if(_0x408dcf[_0x2ced('0x45')]!==_0x8d151[_0x2ced('0x45')]||_0x408dcf[_0x2ced('0xc7')]['id']!==_0x8d151[_0x2ced('0xc7')]['id']||_0x408dcf['subType']!==_0x8d151[_0x2ced('0x7b')])continue;const _0x585811=_0x4c6936[_0x2ced('0x11d')](_0x8d151),_0x5ccea5=_0x4ca936[_0x2ced('0x11d')](_0x8d151),_0x17ed4f=_0x4ca936[_0x2ced('0x11d')](_0x408dcf),_0x4f8a6d=_0x8d151[_0x2ced('0xc0')]&&_0x8d151[_0x2ced('0xc0')]['length'],_0x66f73e=_0x408dcf[_0x2ced('0xc0')]&&_0x408dcf[_0x2ced('0xc0')][_0x2ced('0xb9')];if(!_0x4f8a6d&&_0x585811(_0x17ed4f,_0x5ccea5))return _0x3a73ce[_0x2ced('0xd4')](_0x408dcf,_0x8d151),_0x4ca936['delete'](_0x8d151),!0x0;if(!_0x66f73e&&_0x585811(_0x5ccea5,_0x17ed4f))return _0x3a73ce[_0x2ced('0xd4')](_0x8d151,_0x408dcf),_0x4ca936[_0x2ced('0x52')](_0x408dcf),!0x0;}return!0x1;}}[_0x2ced('0xd4')](_0x211798,_0x3f8601){if(_0x211798[_0x2ced('0xd2')])for(const _0x50ef64 of _0x3f8601[_0x2ced('0x1f')]())_0x211798[_0x2ced('0x117')](_0x50ef64);else{const _0x5ce292=_0x3f8601[_0x2ced('0x49')]()[_0x2ced('0x12b')];this[_0x2ced('0x112')](_0x211798,this[_0x2ced('0x8b')][_0x2ced('0xd9')](_0x211798[_0x2ced('0x49')]()[_0x2ced('0x50')],_0x5ce292));}_0x3f8601[_0x2ced('0x91')]();}}class Dt{constructor(_0x53fe73){this[_0x2ced('0x7e')]=_0x53fe73,this[_0x2ced('0x8b')]=_0x53fe73[_0x2ced('0x8')],this['_customCallbacks']=new Map(),this[_0x2ced('0x81')]=new Map(),this[_0x2ced('0x105')]();}[_0x2ced('0xe6')](_0xa97e8d,_0x31d4b1,_0xebd89d,_0x4cac55,_0x272f91,_0x1530a4){return new _0x2fb142(this[_0x2ced('0x8b')],{'type':_0xa97e8d,'subType':_0x31d4b1,'id':_0xebd89d,'author':_0x4cac55,'creator':_0x4cac55,'attributes':_0x272f91,'onAttributesChange':_0x1530a4,'onAccept':(..._0x8acaca)=>this[_0x2ced('0x15')](_0xa97e8d,_0x31d4b1,_0x2ced('0xf5'))(..._0x8acaca),'onDiscard':(..._0x191611)=>this[_0x2ced('0x15')](_0xa97e8d,_0x31d4b1,'discard')(..._0x191611)});}[_0x2ced('0x132')](_0x3e0e28,_0x5acec7,_0x511e33,_0xa7f38f){const _0x5841f5=_0x3e0e28+':'+_0x5acec7+':'+_0x511e33;this['_customCallbacks'][_0x2ced('0x140')](_0x5841f5,_0xa7f38f);}[_0x2ced('0x15')](_0x1ddb1f,_0x5f2cba,_0x2eaca7){const _0x1e2aa8=_0x1ddb1f+':'+_0x5f2cba+':'+_0x2eaca7;return this[_0x2ced('0x92')][_0x2ced('0x11d')](_0x1e2aa8)||this[_0x2ced('0x81')][_0x2ced('0x11d')](_0x1ddb1f+':'+_0x2eaca7);}[_0x2ced('0x105')](){const _0x740268=()=>{},_0x19eea3=_0x2b5d08=>{_0x2b5d08[_0x2ced('0x0')]((_0x2ceede,_0x500359)=>_0x2ceede['start'][_0x2ced('0x62')](_0x500359[_0x2ced('0x50')])?0x1:-0x1),this[_0x2ced('0x8b')][_0x2ced('0x39')](_0x398558=>{for(const _0x54b350 of _0x2b5d08){let _0x4df419;_0x4df419=_0x54b350['end'][_0x2ced('0x5d')]&&_0x54b350['end']['parent']==_0x54b350['start'][_0x2ced('0x131')]?_0x398558['createSelection'](_0x54b350[_0x2ced('0x50')]['nodeAfter'],'on'):_0x398558[_0x2ced('0x135')](_0x54b350),this[_0x2ced('0x8b')][_0x2ced('0x128')](_0x4df419,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xba2742=(_0x29d28e,_0x5f2d5b)=>{this[_0x2ced('0x8b')][_0x2ced('0x39')](_0x2459ec=>{const {commandName:_0x34cbb4,commandParams:_0x7db42a=[]}=_0x5f2d5b,_0x427cbf=_0x29d28e[_0x2ced('0xce')](_0x47f31e=>(_t(_0x47f31e)&&(_0x47f31e=this[_0x2ced('0x8b')]['createRange'](_0x47f31e[_0x2ced('0x12b')])),_0x47f31e))['filter'](_0x23f655=>'$graveyard'!==_0x23f655['root'][_0x2ced('0x33')]);if(_0x427cbf[_0x2ced('0xb9')]<0x1)return;const _0x56805e=Array[_0x2ced('0xdc')](this['_model'][_0x2ced('0xb3')]['selection'][_0x2ced('0x1f')]())[_0x2ced('0xce')](_0x4f9dc8=>_0x4e6ae0[_0x2ced('0x17')](_0x4f9dc8));_0x2459ec[_0x2ced('0x24')](_0x427cbf);for(const _0x356fd4 of this[_0x2ced('0x7e')][_0x2ced('0x84')][_0x2ced('0x84')]())_0x356fd4[_0x2ced('0x103')]();_0x7db42a[_0x2ced('0xfc')]({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x34cbb4,..._0x7db42a);const _0x12db10=_0x56805e[_0x2ced('0x2e')](_0xc61041=>_0x2ced('0x12a')!=_0xc61041[_0x2ced('0x10a')]['rootName']);_0x12db10[_0x2ced('0xb9')]>0x0&&_0x2459ec[_0x2ced('0x24')](_0x12db10);for(const _0x146b55 of _0x56805e)_0x146b55[_0x2ced('0xf2')]();});},_0x4357a0=(_0x2687f3,_0x46e409)=>0x1==_0x2687f3[_0x2ced('0xb9')]&&0x1==_0x46e409[_0x2ced('0xb9')]&&_0x2687f3[0x0]['end']['isEqual'](_0x46e409[0x0][_0x2ced('0x50')]),_0xa6278e=(_0x274226,_0x18f2d7,_0x31d3fb,_0x3b44cb)=>xt(_0x274226,_0x18f2d7,_0x31d3fb,_0x3b44cb,this[_0x2ced('0x8b')])?[_0x274226,_0x18f2d7]:xt(_0x18f2d7,_0x274226,_0x3b44cb,_0x31d3fb,this[_0x2ced('0x8b')])?[_0x18f2d7,_0x274226]:null;this[_0x2ced('0x81')][_0x2ced('0x140')](_0x2ced('0x6c'),_0x740268),this[_0x2ced('0x81')][_0x2ced('0x140')]('insertion:discard',_0x19eea3),this['_defaultCallbacks'][_0x2ced('0x140')](_0x2ced('0x138'),_0x4357a0),this[_0x2ced('0x81')]['set'](_0x2ced('0x18'),_0xa6278e),this[_0x2ced('0x81')]['set'](_0x2ced('0xd7'),_0x19eea3),this[_0x2ced('0x81')][_0x2ced('0x140')](_0x2ced('0xb'),_0x740268),this[_0x2ced('0x81')][_0x2ced('0x140')](_0x2ced('0x133'),_0x4357a0),this[_0x2ced('0x81')][_0x2ced('0x140')](_0x2ced('0x9e'),_0xa6278e),this[_0x2ced('0x81')][_0x2ced('0x140')](_0x2ced('0x145'),_0xba2742),this[_0x2ced('0x81')]['set'](_0x2ced('0x13b'),_0x740268),this[_0x2ced('0x81')]['set'](_0x2ced('0x2c'),_0x4357a0),this[_0x2ced('0x81')]['set'](_0x2ced('0xba'),_0x740268),this['_defaultCallbacks'][_0x2ced('0x140')]('formatBlock:accept',_0xba2742),this['_defaultCallbacks'][_0x2ced('0x140')](_0x2ced('0x42'),_0x740268),this[_0x2ced('0x81')][_0x2ced('0x140')]('formatBlock:join',_0x4357a0),this[_0x2ced('0x81')][_0x2ced('0x140')](_0x2ced('0x141'),_0x740268);}}function Bt(_0xb938f1,_0x1ad103,_0x1ef7c8){for(const _0x48c74d of _0x1ad103[_0x2ced('0xe7')][_0x2ced('0x2a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x48c74d[_0x2ced('0x10a')]==_0x48c74d)return!0x1;if(!_0x1ef7c8['containsItem'](_0x48c74d))return!0x1;if(_0xb938f1[_0x2ced('0x119')](_0x48c74d)||_0xb938f1[_0x2ced('0x9f')](_0x48c74d))return!0x0;}return!0x1;}function _t(_0x19b15f){return _0x19b15f[_0x2ced('0x12b')][_0x2ced('0xe7')]==_0x19b15f[_0x2ced('0x50')][_0x2ced('0x131')]&&_0x19b15f[_0x2ced('0x12b')][_0x2ced('0x6d')];}function Mt(_0x16bf90,_0x3339db,_0x21fc99,_0x5d06de){const _0x880210=_0x53594f=>!_0x53594f[_0x2ced('0x6')]['is']('$textProxy')&&!_0x5d06de['isObject'](_0x53594f[_0x2ced('0x6')]),_0x994482=_0x16bf90['start']['getLastMatchingPosition'](_0x880210),_0x54effe=_0x16bf90[_0x2ced('0x12b')][_0x2ced('0xe5')](_0x880210,{'direction':_0x2ced('0x1e')});return(!_0x16bf90['start'][_0x2ced('0x86')](_0x994482)||!_0x16bf90[_0x2ced('0x12b')][_0x2ced('0x86')](_0x54effe))&&(_0x994482['isBefore'](_0x54effe)?_0x21fc99[_0x2ced('0x61')](_0x3339db,{'range':_0x21fc99[_0x2ced('0xd9')](_0x994482,_0x54effe)}):_0x21fc99[_0x2ced('0x83')](_0x3339db),!0x0);}function $t(_0x22ac71){return _0x33027b(_0x22ac71);}function Nt(_0x44a6f8){const _0x116a4a=_0x44a6f8[_0x2ced('0x50')][_0x2ced('0x131')];return _0x116a4a&&_0x116a4a['is'](_0x2ced('0xae'));}function Rt(_0x36f572,_0x25d375){const _0x4d7595=_0x25d375[_0x2ced('0x6b')][_0x2ced('0x119')](_0x36f572)||_0x25d375['schema'][_0x2ced('0x9')](_0x36f572);return _0x25d375[_0x2ced('0xd9')](_0x25d375['createPositionAt'](_0x36f572,'before'),_0x4d7595?_0x25d375[_0x2ced('0xcc')](_0x36f572):_0x25d375[_0x2ced('0x2b')](_0x36f572,_0x2ced('0x12b')));}function xt(_0x50c0ed,_0x474e68,_0x156a8e,_0x2c4fa8,_0x459747){if(_0x156a8e[_0x2ced('0x12b')]['isEqual'](_0x2c4fa8[_0x2ced('0x50')]))return!0x0;if(_0x50c0ed['type']!=_0x474e68[_0x2ced('0x45')])return!0x1;if(!_0x156a8e[_0x2ced('0x12b')][_0x2ced('0x96')](_0x2c4fa8['start']))return!0x1;const _0x29f59d=_0x459747[_0x2ced('0xd9')](_0x156a8e[_0x2ced('0x12b')],_0x2c4fa8[_0x2ced('0x50')])[_0x2ced('0x78')]();for(const _0xc4b09c of _0x29f59d)if([_0x2ced('0xf4'),_0x2ced('0xc2')]['includes'](_0xc4b09c[_0x2ced('0x45')])&&_0x459747[_0x2ced('0x6b')][_0x2ced('0x9f')](_0xc4b09c['item']))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb2ab=['activeMarkers','previous','lowest','source','createCommentThreadController','_descriptionFactory','getMarkerNames','refreshSelectedViews','hasSuggestion','plugins','from','acceptAllSuggestions','head','buttonView','suggestionLoaded','getFirstRange','getRanges','Accept\x20all\x20selected\x20suggestions','actionView','registerAnnotation','comments.editorConfig','_disableComments','separator','_updateController','componentFactory','values','comments.maxCommentCharsWhenCollapsed','comments.maxThreadTotalWeight','_destroyController','editing','execute','SuggestionThreadView','CommentView','set','clear','getDescriptions','discardButton','get','model','reduce','requires','Discard\x20all\x20suggestions','listenTo','discardSelectedSuggestions','suggestionUnloaded','trackChanges.disableComments','pluginName','isInContent','commandName','_handleSuggestionControllerDelayed','add','locale','map','comments.maxCommentsWhenCollapsed','_handleControllerBuffer','keys','TrackChangesEditing','addSourceCollector','Discard\x20all\x20selected\x20suggestions','destroy','switchbutton','Track\x20changes','getMarkers','filter','Annotations','innerView','view','type','isDirty','focus','_refreshActiveMarkers','stopListening','define','addComment','_initializeController','isMultiRange','size','_createUIButton','acceptSelectedSuggestions','trackChanges','acceptButton','_viewToController','_annotationViews','isEnabled','getAllAdjacentSuggestions','getSuggestion','descriptionParts','has','discardAllSuggestions','button','isOn','CommentsRepository','unbind','editor','length','Accept\x20all\x20suggestions','createAnnotationView','config','value','change:previous','commands','arrowView','toMany','delete','push','suggestion-','bind','_suggestionToController','getJoined'];(function(_0x2e9b98,_0xb2abd7){const _0x5a96ac=function(_0x982f){while(--_0x982f){_0x2e9b98['push'](_0x2e9b98['shift']());}};_0x5a96ac(++_0xb2abd7);}(_0xb2ab,0x127));const _0x5a96=function(_0x2e9b98,_0xb2abd7){_0x2e9b98=_0x2e9b98-0x0;let _0x5a96ac=_0xb2ab[_0x2e9b98];return _0x5a96ac;};import{Plugin as _0x108a2f}from'ckeditor5/src/core';import{Collection as _0x4661a1}from'ckeditor5/src/utils';import{Model as _0x37c834,SplitButtonView as _0x52568e,createDropdown as _0x49dd1f,addListToDropdown as _0x15dea1}from'ckeditor5/src/ui';import{Users as _0x25528a,getDateTimeFormatter as _0x538b7d,getAllMarkersDomElementsSorted as _0x3e8d3d}from'ckeditor5-collaboration/src/collaboration-core';import _0x55c69f from'./trackchangesediting';import _0x158515 from'./ui/suggestioncontroller';import _0x5bbba5 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5939aa}from'./utils/common-translations';import _0xe992c from'../theme/icons/track-changes.svg';export default class d extends _0x108a2f{static get[_0x5a96('0x48')](){return[_0x55c69f,_0x25528a,_0x5a96('0xe'),_0x5a96('0x60'),'EditorAnnotations'];}static get[_0x5a96('0x4e')](){return'TrackChangesUI';}constructor(_0x465f72){super(_0x465f72),this[_0x5a96('0x1e')]=new Map(),this[_0x5a96('0x4')]=new Map(),this['_annotationViews']=new Map(),this[_0x5a96('0x56')]=new Map();const _0x603482=this[_0x5a96('0x10')]['config'];_0x603482[_0x5a96('0x68')]('trackChanges.SuggestionThreadView',_0x5bbba5),_0x603482[_0x5a96('0x68')](_0x5a96('0x4d'),!0x1),this[_0x5a96('0x35')]=_0x603482[_0x5a96('0x45')](_0x5a96('0x4d'));}[_0x5a96('0x51')](_0x1233c3,_0x40b2e6){0x0===this[_0x5a96('0x56')][_0x5a96('0x6c')]&&setTimeout(()=>{for(const [_0x55cb1b,_0x4e9d68]of this[_0x5a96('0x56')]){const _0x478a84=this[_0x5a96('0x1e')]['has'](_0x55cb1b);_0x478a84||_0x4e9d68?_0x478a84&&_0x4e9d68&&this[_0x5a96('0x3c')](_0x55cb1b):this[_0x5a96('0x6a')](_0x55cb1b);}this['editor'][_0x5a96('0x29')][_0x5a96('0x45')]('EditorAnnotations')[_0x5a96('0x27')](),this[_0x5a96('0x66')](),this['_handleControllerBuffer'][_0x5a96('0x42')]();},0xa),this[_0x5a96('0x56')][_0x5a96('0x41')](_0x1233c3,_0x40b2e6);}['init'](){const _0x15646f=this['editor'],_0x1b54a1=_0x15646f[_0x5a96('0x29')][_0x5a96('0x45')](_0x5a96('0x58')),_0x3b0809=_0x15646f[_0x5a96('0x29')][_0x5a96('0x45')](_0x5a96('0x60')),_0x3bb2da=_0x15646f['plugins'][_0x5a96('0x45')]('EditorAnnotations'),_0x4753f1=_0x15646f[_0x5a96('0x29')]['get'](_0x5a96('0xe'));_0x15646f['ui'][_0x5a96('0x38')][_0x5a96('0x52')](_0x5a96('0x2'),_0x3ef4c4=>this['_createUIButton'](_0x3ef4c4)),_0x3bb2da[_0x5a96('0x59')](()=>{const _0x3f76e6=[];for(const [_0x49217b,_0x374817]of Array[_0x5a96('0x2a')](this[_0x5a96('0x1e')])){const _0x51c69e=_0x49217b[_0x5a96('0x7')](),_0x284c1d=[];for(const _0xda8554 of _0x51c69e){if(!_0xda8554[_0x5a96('0x4f')])continue;if(_0xda8554[_0x5a96('0x6b')]){_0x284c1d['push'](..._0xda8554[_0x5a96('0x30')]());continue;}const _0x1b3b30=_0xda8554[_0x5a96('0x2f')]();if(_0x284c1d[_0x5a96('0x11')]>0x0){const _0x44c6f1=_0x284c1d[0x0][_0x5a96('0x1f')](_0x1b3b30);if(_0x44c6f1){_0x284c1d[0x0]=_0x44c6f1;continue;}}_0x284c1d['push'](_0x1b3b30);}_0x3f76e6[_0x5a96('0x1b')]([_0x374817[_0x5a96('0x62')],_0x284c1d]);}return _0x3f76e6;}),this['listenTo'](_0x1b54a1,_0x5a96('0x2e'),(_0x46af11,_0x15f029)=>{this[_0x5a96('0x4a')](_0x15f029,_0x5a96('0x16'),(_0x3e452d,_0x49a176,_0x42b4ff,_0x2cb9c1)=>{_0x15f029['isInContent']&&(null==_0x42b4ff?(this[_0x5a96('0x37')](_0x2cb9c1[_0x5a96('0x2c')]),this[_0x5a96('0x51')](_0x15f029,!0x1)):(this[_0x5a96('0x37')](_0x42b4ff[_0x5a96('0x2c')]),this['_handleSuggestionControllerDelayed'](_0x15f029,!0x0)));}),null===_0x15f029[_0x5a96('0x21')]?this[_0x5a96('0x51')](_0x15f029,!0x1):this[_0x5a96('0x37')](_0x15f029['head']);}),this[_0x5a96('0x4a')](_0x1b54a1,_0x5a96('0x4c'),(_0x454cc6,_0x360d5f,_0x4ccfe3)=>{this[_0x5a96('0x67')](_0x360d5f,_0x5a96('0x16')),this[_0x5a96('0x56')][_0x5a96('0x1a')](_0x360d5f);const _0x2411a3=_0x4ccfe3?_0x4ccfe3[_0x5a96('0x2c')]:_0x360d5f,_0x33a70c=this[_0x5a96('0x1e')][_0x5a96('0x45')](_0x2411a3);null!==_0x4ccfe3&&this[_0x5a96('0x37')](_0x2411a3),null===_0x4ccfe3&&_0x33a70c&&this[_0x5a96('0x3c')](_0x360d5f);}),this[_0x5a96('0x4a')](_0x1b54a1,'suggestionChanged',(_0x43cc58,_0x5f346f)=>{this[_0x5a96('0x37')](_0x5f346f);}),this[_0x5a96('0x4a')](_0x3b0809,'change:activeAnnotations',()=>{this[_0x5a96('0x66')]();}),this[_0x5a96('0x4a')](_0x4753f1,_0x5a96('0x69'),(_0x454447,{threadId:_0x511efa,isFromAdapter:_0x595683})=>{if(_0x595683||!_0x1b54a1[_0x5a96('0x28')](_0x511efa))return;const _0x540664=_0x1b54a1[_0x5a96('0x8')](_0x511efa);this['_suggestionToController'][_0x5a96('0x45')](_0x540664)[_0x5a96('0x62')]['focus']();},{'priority':_0x5a96('0x22')});}[_0x5a96('0x66')](){const _0xa77bf7=this['editor']['plugins'][_0x5a96('0x45')](_0x5a96('0x60')),_0x563613=this[_0x5a96('0x10')][_0x5a96('0x29')][_0x5a96('0x45')](_0x5a96('0x58')),_0xe01a85=Array['from'](_0xa77bf7['activeAnnotations'],_0x3f74d6=>_0x3f74d6[_0x5a96('0x61')])[_0x5a96('0x5f')](_0x8ba9ef=>this['_viewToController'][_0x5a96('0xa')](_0x8ba9ef)),_0x42c4df=[];for(const _0x486ca8 of _0xe01a85){const _0xd2f01a=this['_viewToController'][_0x5a96('0x45')](_0x486ca8)[_0x5a96('0x46')][_0x5a96('0x7')]();_0x42c4df[_0x5a96('0x1b')](..._0xd2f01a[_0x5a96('0x47')]((_0x327718,_0x16f50e)=>[..._0x327718,..._0x16f50e[_0x5a96('0x26')]()],[]));}_0x563613[_0x5a96('0x20')]=_0x42c4df;}[_0x5a96('0x0')](_0x4216ac){const _0x57f99c=_0x49dd1f(_0x4216ac,_0x52568e),_0x171777=this[_0x5a96('0x10')][_0x5a96('0x17')][_0x5a96('0x45')]('trackChanges'),_0x2e547f=_0x5939aa(_0x4216ac,_0x5a96('0x5d'));_0x57f99c[_0x5a96('0x2d')]['set']({'tooltip':_0x2e547f,'label':_0x2e547f,'icon':_0xe992c}),_0x57f99c['buttonView'][_0x5a96('0x1d')]('isOn')['to'](_0x171777,'value'),_0x57f99c[_0x5a96('0x2d')]['on'](_0x5a96('0x3e'),()=>{_0x171777['execute'](),this[_0x5a96('0x10')][_0x5a96('0x3d')]['view']['focus']();});const _0x257455=new _0x4661a1(),_0x5df4c5=[{'type':_0x5a96('0x5c'),'model':{'withText':!0x0,'label':_0x2e547f,'commandName':_0x5a96('0x2')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x5939aa(_0x4216ac,_0x5a96('0x12')),'commandName':_0x5a96('0x2b')}},{'type':_0x5a96('0xc'),'model':{'withText':!0x0,'label':_0x5939aa(_0x4216ac,_0x5a96('0x31')),'commandName':_0x5a96('0x1')}},{'type':_0x5a96('0xc'),'model':{'withText':!0x0,'label':_0x5939aa(_0x4216ac,_0x5a96('0x49')),'commandName':_0x5a96('0xb')}},{'type':_0x5a96('0xc'),'model':{'withText':!0x0,'label':_0x5939aa(_0x4216ac,_0x5a96('0x5a')),'commandName':_0x5a96('0x4b')}}];for(const _0x9378c9 of _0x5df4c5){let _0x221153={'type':_0x5a96('0x36')};if(_0x9378c9[_0x5a96('0x46')]){const _0x2b124e=new _0x37c834(_0x9378c9[_0x5a96('0x46')]),_0x5def8c=this[_0x5a96('0x10')][_0x5a96('0x17')][_0x5a96('0x45')](_0x2b124e[_0x5a96('0x50')]);_0x2b124e['bind'](_0x5a96('0xd'),_0x5a96('0x6'))['to'](_0x5def8c,_0x5a96('0x15'),_0x5a96('0x6')),_0x221153={'type':_0x9378c9[_0x5a96('0x63')],'model':_0x2b124e};}_0x257455['add'](_0x221153);}_0x15dea1(_0x57f99c,_0x257455);const _0x5b3072=_0x5df4c5[_0x5a96('0x5f')](_0x162add=>null!=_0x162add[_0x5a96('0x46')])[_0x5a96('0x54')](_0x276c9c=>this[_0x5a96('0x10')][_0x5a96('0x17')]['get'](_0x276c9c['model'][_0x5a96('0x50')])),_0x235b1e=_0x57f99c[_0x5a96('0x2d')];return _0x235b1e[_0x5a96('0x32')]['unbind']('isEnabled'),_0x235b1e['arrowView'][_0x5a96('0xf')]('isEnabled'),_0x235b1e['actionView'][_0x5a96('0x1d')]('isEnabled')['to'](_0x171777,'isEnabled'),_0x235b1e[_0x5a96('0x18')][_0x5a96('0x1d')]('isEnabled')[_0x5a96('0x19')](_0x5b3072,'isEnabled',(..._0x2bde62)=>_0x2bde62['some'](_0x1507ee=>_0x1507ee)),_0x57f99c['on'](_0x5a96('0x3e'),_0x5d9a16=>{this[_0x5a96('0x10')][_0x5a96('0x3e')](_0x5d9a16[_0x5a96('0x23')]['commandName']),this[_0x5a96('0x10')][_0x5a96('0x3d')]['view'][_0x5a96('0x65')]();}),_0x57f99c;}[_0x5a96('0x6a')](_0xd16a2c){const _0x86d45e=this[_0x5a96('0x10')],_0x3b7a9d=_0x86d45e[_0x5a96('0x14')],_0x33e4d1=_0x86d45e[_0x5a96('0x29')][_0x5a96('0x45')]('Annotations'),_0x41d3de=_0x86d45e[_0x5a96('0x29')]['get'](_0x5a96('0xe')),_0x397a83=_0x86d45e[_0x5a96('0x29')][_0x5a96('0x45')]('EditorAnnotations'),_0x1efa6f=_0x86d45e[_0x5a96('0x29')][_0x5a96('0x45')](_0x25528a)['me'],_0x642411=_0x3b7a9d[_0x5a96('0x45')](_0x5a96('0x2'))[_0x5a96('0x3f')],{CommentsListView:_0x4fcf16,CommentThreadInputView:_0x405357}=_0x86d45e[_0x5a96('0x29')][_0x5a96('0x45')]('CommentsUI');let _0x249f03,_0x12ed13;this[_0x5a96('0x5')][_0x5a96('0xa')](_0xd16a2c['id'])?(_0x12ed13=this[_0x5a96('0x5')][_0x5a96('0x45')](_0xd16a2c['id']),_0x249f03=_0x12ed13['mainView']):(_0x249f03=new _0x642411(_0x86d45e[_0x5a96('0x53')],_0xd16a2c,_0x1efa6f,{'disableComments':this['_disableComments'],'editorConfig':_0x3b7a9d['get'](_0x5a96('0x34')),'maxCommentsWhenCollapsed':_0x3b7a9d[_0x5a96('0x45')](_0x5a96('0x55')),'maxThreadTotalWeight':_0x3b7a9d['get'](_0x5a96('0x3b')),'maxCommentCharsWhenCollapsed':_0x3b7a9d['get'](_0x5a96('0x3a')),'formatDateTime':_0x538b7d(_0x3b7a9d[_0x5a96('0x45')](_0x5a96('0x53'))),'CommentView':_0x3b7a9d[_0x5a96('0x45')]('comments')[_0x5a96('0x40')],'CommentsListView':_0x4fcf16,'CommentThreadInputView':_0x405357}),_0x249f03[_0x5a96('0x3')]['on']('execute',()=>{_0x86d45e[_0x5a96('0x3d')][_0x5a96('0x62')]['focus']();}),_0x249f03[_0x5a96('0x44')]['on'](_0x5a96('0x3e'),()=>{_0x86d45e['editing']['view'][_0x5a96('0x65')]();}),_0x12ed13=_0x33e4d1[_0x5a96('0x13')](this['editor'][_0x5a96('0x53')],_0x249f03),_0x12ed13[_0x5a96('0x1d')](_0x5a96('0x64'))['to'](_0x249f03,_0x5a96('0x64')),_0x12ed13[_0x5a96('0x1d')](_0x5a96('0x11'))['to'](_0x249f03),_0x12ed13[_0x5a96('0x1d')](_0x5a96('0x63'))['to'](_0x249f03,_0x5a96('0x63'),_0x5a009d=>_0x5a96('0x1c')+_0x5a009d),this['_annotationViews'][_0x5a96('0x41')](_0xd16a2c['id'],_0x12ed13));const _0x36de8d=_0x41d3de[_0x5a96('0x24')](_0xd16a2c['commentThread'],_0x249f03),_0x5660d7=new _0x158515(_0x86d45e,_0xd16a2c,_0x249f03,_0x36de8d),_0xc0ff8=_0xd16a2c[_0x5a96('0x7')]()[_0x5a96('0x5f')](_0x3d921d=>_0x3d921d[_0x5a96('0x4f')]);_0x249f03[_0x5a96('0x9')]=_0x86d45e['plugins']['get']('TrackChangesEditing')[_0x5a96('0x25')][_0x5a96('0x43')](_0xc0ff8),this[_0x5a96('0x1e')][_0x5a96('0x41')](_0xd16a2c,_0x5660d7),this[_0x5a96('0x4')][_0x5a96('0x41')](_0x249f03,_0x5660d7);const _0x54992e=_0x33e4d1['createAnnotation']({'view':_0x12ed13,'target':()=>{const _0x3d8594=[],_0x2159ba=_0xd16a2c[_0x5a96('0x7')]()[_0x5a96('0x5f')](_0x397dcb=>_0x397dcb['isInContent']);for(const _0x4ccdb3 of _0x2159ba)_0x3d8594['push'](..._0x4ccdb3[_0x5a96('0x5e')]());return _0x3e8d3d(_0x86d45e[_0x5a96('0x3d')],_0x3d8594);},'type':()=>_0x5a96('0x1c')+_0x5660d7[_0x5a96('0x62')][_0x5a96('0x63')]});_0x41d3de['_bindAnnotationToEditors'](_0x249f03,_0x54992e),_0x33e4d1[_0x5a96('0x52')](_0x54992e),_0x397a83[_0x5a96('0x33')](_0x54992e);}[_0x5a96('0x3c')](_0x37acbd){const _0x499cd7=this[_0x5a96('0x10')][_0x5a96('0x29')][_0x5a96('0x45')](_0x5a96('0x60')),_0x5d30c8=this[_0x5a96('0x1e')][_0x5a96('0x45')](_0x37acbd),_0x371c74=_0x5d30c8['view'],_0x543576=_0x499cd7['getByInnerView'](_0x371c74);_0x543576&&_0x499cd7['remove'](_0x543576),this[_0x5a96('0x1e')][_0x5a96('0x1a')](_0x37acbd),this[_0x5a96('0x4')][_0x5a96('0x1a')](_0x371c74),_0x5d30c8[_0x5a96('0x5b')]();}[_0x5a96('0x37')](_0x107cce){if(!_0x107cce[_0x5a96('0x4f')]||!this[_0x5a96('0x1e')][_0x5a96('0xa')](_0x107cce))return;const _0x3387fc=this['editor']['plugins'][_0x5a96('0x45')]('TrackChangesEditing'),_0x59a8be=this[_0x5a96('0x1e')][_0x5a96('0x45')](_0x107cce),_0x5d3424=_0x107cce[_0x5a96('0x7')]();_0x59a8be[_0x5a96('0x62')][_0x5a96('0x9')]=_0x3387fc[_0x5a96('0x25')][_0x5a96('0x43')](_0x5d3424);}[_0x5a96('0x5b')](){for(const _0x2dfe4c of this[_0x5a96('0x1e')][_0x5a96('0x57')]())this['_destroyController'](_0x2dfe4c);for(const _0x5a802f of this[_0x5a96('0x5')][_0x5a96('0x39')]())_0x5a802f['mainView'][_0x5a96('0x5b')]();super['destroy']();}}
23
+ const _0x53fd=['Annotations','commentThread','destroy','discardSelectedSuggestions','_refreshActiveMarkers','type','_annotationViews','comments.maxThreadTotalWeight','define','push','Accept\x20all\x20selected\x20suggestions','getFirstRange','editor','registerAnnotation','refreshSelectedViews','addComment','filter','editing','isInContent','from','button','Discard\x20all\x20selected\x20suggestions','descriptionParts','isMultiRange','mainView','_viewToController','_handleControllerBuffer','isEnabled','_descriptionFactory','lowest','reduce','comments.editorConfig','TrackChangesUI','switchbutton','getAllAdjacentSuggestions','unbind','value','EditorAnnotations','createCommentThreadController','comments','set','requires','change:activeAnnotations','init','_disableComments','add','CommentsRepository','_createUIButton','size','getJoined','bind','has','arrowView','TrackChangesEditing','isDirty','execute','keys','comments.maxCommentsWhenCollapsed','suggestionLoaded','Discard\x20all\x20suggestions','innerView','SuggestionThreadView','CommentsUI','pluginName','_destroyController','_initializeController','trackChanges.disableComments','model','_handleSuggestionControllerDelayed','comments.maxCommentCharsWhenCollapsed','Accept\x20all\x20suggestions','toMany','view','acceptButton','Track\x20changes','listenTo','commandName','addSourceCollector','getRanges','trackChanges.SuggestionThreadView','_updateController','change:previous','_suggestionToController','plugins','commands','focus','suggestion-','suggestionChanged','locale','length','delete','trackChanges','hasSuggestion','getByInnerView','CommentView','separator','remove','values','getMarkerNames','acceptSelectedSuggestions','getDescriptions','get','activeMarkers','config','buttonView','head','getMarkers','suggestionUnloaded'];(function(_0x573c9c,_0x53fd31){const _0x56d840=function(_0x43f7c4){while(--_0x43f7c4){_0x573c9c['push'](_0x573c9c['shift']());}};_0x56d840(++_0x53fd31);}(_0x53fd,0x1d2));const _0x56d8=function(_0x573c9c,_0x53fd31){_0x573c9c=_0x573c9c-0x0;let _0x56d840=_0x53fd[_0x573c9c];return _0x56d840;};import{Plugin as _0x19c0c7}from'ckeditor5/src/core';import{Collection as _0x60dd31}from'ckeditor5/src/utils';import{Model as _0x4dde8a,SplitButtonView as _0x991a,createDropdown as _0x23d8a5,addListToDropdown as _0x2455cc}from'ckeditor5/src/ui';import{Users as _0x521fe9,getDateTimeFormatter as _0x690919,getAllMarkersDomElementsSorted as _0x3ed34d}from'ckeditor5-collaboration/src/collaboration-core';import _0x5c1778 from'./trackchangesediting';import _0x122c6a from'./ui/suggestioncontroller';import _0x11380a from'./ui/view/suggestionthreadview';import{getTranslation as _0x31b353}from'./utils/common-translations';import _0x2d3a24 from'../theme/icons/track-changes.svg';export default class d extends _0x19c0c7{static get[_0x56d8('0x7')](){return[_0x5c1778,_0x521fe9,_0x56d8('0xc'),_0x56d8('0x4a'),_0x56d8('0x3')];}static get[_0x56d8('0x1d')](){return _0x56d8('0x6a');}constructor(_0x3cdbde){super(_0x3cdbde),this[_0x56d8('0x30')]=new Map(),this[_0x56d8('0x63')]=new Map(),this['_annotationViews']=new Map(),this[_0x56d8('0x64')]=new Map();const _0x397c63=this[_0x56d8('0x56')]['config'];_0x397c63['define'](_0x56d8('0x2d'),_0x11380a),_0x397c63[_0x56d8('0x52')](_0x56d8('0x20'),!0x1),this[_0x56d8('0xa')]=_0x397c63[_0x56d8('0x43')](_0x56d8('0x20'));}[_0x56d8('0x22')](_0xf02ad8,_0x10da92){0x0===this[_0x56d8('0x64')][_0x56d8('0xe')]&&setTimeout(()=>{for(const [_0x1f2774,_0x50e909]of this['_handleControllerBuffer']){const _0x35b7d2=this[_0x56d8('0x30')][_0x56d8('0x11')](_0x1f2774);_0x35b7d2||_0x50e909?_0x35b7d2&&_0x50e909&&this[_0x56d8('0x1e')](_0x1f2774):this[_0x56d8('0x1f')](_0x1f2774);}this[_0x56d8('0x56')]['plugins'][_0x56d8('0x43')](_0x56d8('0x3'))[_0x56d8('0x58')](),this[_0x56d8('0x4e')](),this[_0x56d8('0x64')]['clear']();},0xa),this['_handleControllerBuffer'][_0x56d8('0x6')](_0xf02ad8,_0x10da92);}[_0x56d8('0x9')](){const _0x5a6f73=this['editor'],_0xcdd445=_0x5a6f73['plugins']['get']('TrackChangesEditing'),_0x26f357=_0x5a6f73[_0x56d8('0x31')]['get'](_0x56d8('0x4a')),_0x47eee8=_0x5a6f73[_0x56d8('0x31')][_0x56d8('0x43')](_0x56d8('0x3')),_0x487454=_0x5a6f73[_0x56d8('0x31')][_0x56d8('0x43')]('CommentsRepository');_0x5a6f73['ui']['componentFactory'][_0x56d8('0xb')](_0x56d8('0x39'),_0x16ba0c=>this['_createUIButton'](_0x16ba0c)),_0x47eee8[_0x56d8('0x2b')](()=>{const _0x5385ae=[];for(const [_0x542c26,_0x1b2d17]of Array[_0x56d8('0x5d')](this[_0x56d8('0x30')])){const _0x59352d=_0x542c26[_0x56d8('0x0')](),_0x258fd0=[];for(const _0x51a678 of _0x59352d){if(!_0x51a678[_0x56d8('0x5c')])continue;if(_0x51a678[_0x56d8('0x61')]){_0x258fd0['push'](..._0x51a678[_0x56d8('0x2c')]());continue;}const _0x54f405=_0x51a678[_0x56d8('0x55')]();if(_0x258fd0['length']>0x0){const _0xfffc06=_0x258fd0[0x0][_0x56d8('0xf')](_0x54f405);if(_0xfffc06){_0x258fd0[0x0]=_0xfffc06;continue;}}_0x258fd0['push'](_0x54f405);}_0x5385ae['push']([_0x1b2d17[_0x56d8('0x26')],_0x258fd0]);}return _0x5385ae;}),this[_0x56d8('0x29')](_0xcdd445,_0x56d8('0x18'),(_0x2dc7e9,_0x37c2e7)=>{this['listenTo'](_0x37c2e7,_0x56d8('0x2f'),(_0x376ac8,_0x5589cb,_0x439ccd,_0x542277)=>{_0x37c2e7[_0x56d8('0x5c')]&&(null==_0x439ccd?(this[_0x56d8('0x2e')](_0x542277['head']),this[_0x56d8('0x22')](_0x37c2e7,!0x1)):(this[_0x56d8('0x2e')](_0x439ccd[_0x56d8('0x47')]),this['_handleSuggestionControllerDelayed'](_0x37c2e7,!0x0)));}),null===_0x37c2e7['previous']?this[_0x56d8('0x22')](_0x37c2e7,!0x1):this[_0x56d8('0x2e')](_0x37c2e7['head']);}),this[_0x56d8('0x29')](_0xcdd445,_0x56d8('0x49'),(_0x596af0,_0x5b384f,_0x5a5df0)=>{this['stopListening'](_0x5b384f,_0x56d8('0x2f')),this[_0x56d8('0x64')][_0x56d8('0x38')](_0x5b384f);const _0x397309=_0x5a5df0?_0x5a5df0[_0x56d8('0x47')]:_0x5b384f,_0x3a1a51=this[_0x56d8('0x30')][_0x56d8('0x43')](_0x397309);null!==_0x5a5df0&&this[_0x56d8('0x2e')](_0x397309),null===_0x5a5df0&&_0x3a1a51&&this['_destroyController'](_0x5b384f);}),this[_0x56d8('0x29')](_0xcdd445,_0x56d8('0x35'),(_0x4eb325,_0x5f5dd8)=>{this[_0x56d8('0x2e')](_0x5f5dd8);}),this['listenTo'](_0x26f357,_0x56d8('0x8'),()=>{this['_refreshActiveMarkers']();}),this[_0x56d8('0x29')](_0x487454,_0x56d8('0x59'),(_0x50362c,{threadId:_0x4b4020,isFromAdapter:_0x44328b})=>{if(_0x44328b||!_0xcdd445[_0x56d8('0x3a')](_0x4b4020))return;const _0x556b68=_0xcdd445['getSuggestion'](_0x4b4020);this[_0x56d8('0x30')][_0x56d8('0x43')](_0x556b68)[_0x56d8('0x26')]['focus']();},{'priority':_0x56d8('0x67')});}[_0x56d8('0x4e')](){const _0x27a8a4=this[_0x56d8('0x56')][_0x56d8('0x31')][_0x56d8('0x43')](_0x56d8('0x4a')),_0x339349=this[_0x56d8('0x56')][_0x56d8('0x31')][_0x56d8('0x43')]('TrackChangesEditing'),_0x20e70e=Array['from'](_0x27a8a4['activeAnnotations'],_0x44239b=>_0x44239b[_0x56d8('0x1a')])[_0x56d8('0x5a')](_0x1e1b5d=>this[_0x56d8('0x63')][_0x56d8('0x11')](_0x1e1b5d)),_0x417bbb=[];for(const _0x56b8d4 of _0x20e70e){const _0x1e09fa=this[_0x56d8('0x63')][_0x56d8('0x43')](_0x56b8d4)[_0x56d8('0x21')][_0x56d8('0x0')]();_0x417bbb[_0x56d8('0x53')](..._0x1e09fa[_0x56d8('0x68')]((_0x5e22e6,_0x2f8a7d)=>[..._0x5e22e6,..._0x2f8a7d[_0x56d8('0x40')]()],[]));}_0x339349[_0x56d8('0x44')]=_0x417bbb;}[_0x56d8('0xd')](_0x59ee53){const _0x3ee381=_0x23d8a5(_0x59ee53,_0x991a),_0x323e02=this[_0x56d8('0x56')][_0x56d8('0x32')][_0x56d8('0x43')]('trackChanges'),_0x4bfa5b=_0x31b353(_0x59ee53,_0x56d8('0x28'));_0x3ee381[_0x56d8('0x46')][_0x56d8('0x6')]({'tooltip':_0x4bfa5b,'label':_0x4bfa5b,'icon':_0x2d3a24}),_0x3ee381[_0x56d8('0x46')]['bind']('isOn')['to'](_0x323e02,_0x56d8('0x2')),_0x3ee381[_0x56d8('0x46')]['on'](_0x56d8('0x15'),()=>{_0x323e02[_0x56d8('0x15')](),this[_0x56d8('0x56')][_0x56d8('0x5b')]['view'][_0x56d8('0x33')]();});const _0x256b4e=new _0x60dd31(),_0x422d75=[{'type':_0x56d8('0x6b'),'model':{'withText':!0x0,'label':_0x4bfa5b,'commandName':'trackChanges'}},{'type':_0x56d8('0x3d')},{'type':_0x56d8('0x5e'),'model':{'withText':!0x0,'label':_0x31b353(_0x59ee53,_0x56d8('0x24')),'commandName':'acceptAllSuggestions'}},{'type':_0x56d8('0x5e'),'model':{'withText':!0x0,'label':_0x31b353(_0x59ee53,_0x56d8('0x54')),'commandName':_0x56d8('0x41')}},{'type':_0x56d8('0x5e'),'model':{'withText':!0x0,'label':_0x31b353(_0x59ee53,_0x56d8('0x19')),'commandName':'discardAllSuggestions'}},{'type':_0x56d8('0x5e'),'model':{'withText':!0x0,'label':_0x31b353(_0x59ee53,_0x56d8('0x5f')),'commandName':_0x56d8('0x4d')}}];for(const _0x2a4a3a of _0x422d75){let _0x3f2db4={'type':_0x56d8('0x3d')};if(_0x2a4a3a['model']){const _0x3b3eac=new _0x4dde8a(_0x2a4a3a['model']),_0x400d5d=this[_0x56d8('0x56')][_0x56d8('0x32')][_0x56d8('0x43')](_0x3b3eac[_0x56d8('0x2a')]);_0x3b3eac['bind']('isOn','isEnabled')['to'](_0x400d5d,_0x56d8('0x2'),_0x56d8('0x65')),_0x3f2db4={'type':_0x2a4a3a['type'],'model':_0x3b3eac};}_0x256b4e[_0x56d8('0xb')](_0x3f2db4);}_0x2455cc(_0x3ee381,_0x256b4e);const _0x15c5cf=_0x422d75['filter'](_0x5ec39e=>null!=_0x5ec39e[_0x56d8('0x21')])['map'](_0x326abf=>this[_0x56d8('0x56')][_0x56d8('0x32')][_0x56d8('0x43')](_0x326abf['model'][_0x56d8('0x2a')])),_0x10a055=_0x3ee381['buttonView'];return _0x10a055['actionView'][_0x56d8('0x1')]('isEnabled'),_0x10a055[_0x56d8('0x12')][_0x56d8('0x1')](_0x56d8('0x65')),_0x10a055['actionView'][_0x56d8('0x10')](_0x56d8('0x65'))['to'](_0x323e02,_0x56d8('0x65')),_0x10a055['arrowView'][_0x56d8('0x10')](_0x56d8('0x65'))[_0x56d8('0x25')](_0x15c5cf,'isEnabled',(..._0x54ec76)=>_0x54ec76['some'](_0x33b22f=>_0x33b22f)),_0x3ee381['on']('execute',_0x1452d8=>{this[_0x56d8('0x56')][_0x56d8('0x15')](_0x1452d8['source'][_0x56d8('0x2a')]),this[_0x56d8('0x56')]['editing'][_0x56d8('0x26')]['focus']();}),_0x3ee381;}[_0x56d8('0x1f')](_0x248593){const _0x5af099=this[_0x56d8('0x56')],_0x5d4c4d=_0x5af099[_0x56d8('0x45')],_0x3f0e92=_0x5af099[_0x56d8('0x31')]['get'](_0x56d8('0x4a')),_0x464bf2=_0x5af099[_0x56d8('0x31')]['get'](_0x56d8('0xc')),_0x43b3cc=_0x5af099[_0x56d8('0x31')][_0x56d8('0x43')]('EditorAnnotations'),_0x4e24a2=_0x5af099[_0x56d8('0x31')][_0x56d8('0x43')](_0x521fe9)['me'],_0x4b7202=_0x5d4c4d[_0x56d8('0x43')]('trackChanges')[_0x56d8('0x1b')],{CommentsListView:_0x308c96,CommentThreadInputView:_0x1c75f9}=_0x5af099['plugins'][_0x56d8('0x43')](_0x56d8('0x1c'));let _0x68257d,_0x1f501b;this[_0x56d8('0x50')]['has'](_0x248593['id'])?(_0x1f501b=this['_annotationViews']['get'](_0x248593['id']),_0x68257d=_0x1f501b[_0x56d8('0x62')]):(_0x68257d=new _0x4b7202(_0x5af099[_0x56d8('0x36')],_0x248593,_0x4e24a2,{'disableComments':this[_0x56d8('0xa')],'editorConfig':_0x5d4c4d['get'](_0x56d8('0x69')),'maxCommentsWhenCollapsed':_0x5d4c4d['get'](_0x56d8('0x17')),'maxThreadTotalWeight':_0x5d4c4d[_0x56d8('0x43')](_0x56d8('0x51')),'maxCommentCharsWhenCollapsed':_0x5d4c4d[_0x56d8('0x43')](_0x56d8('0x23')),'formatDateTime':_0x690919(_0x5d4c4d[_0x56d8('0x43')](_0x56d8('0x36'))),'CommentView':_0x5d4c4d[_0x56d8('0x43')](_0x56d8('0x5'))[_0x56d8('0x3c')],'CommentsListView':_0x308c96,'CommentThreadInputView':_0x1c75f9}),_0x68257d[_0x56d8('0x27')]['on']('execute',()=>{_0x5af099['editing'][_0x56d8('0x26')][_0x56d8('0x33')]();}),_0x68257d['discardButton']['on']('execute',()=>{_0x5af099[_0x56d8('0x5b')]['view']['focus']();}),_0x1f501b=_0x3f0e92['createAnnotationView'](this[_0x56d8('0x56')]['locale'],_0x68257d),_0x1f501b[_0x56d8('0x10')](_0x56d8('0x14'))['to'](_0x68257d,_0x56d8('0x14')),_0x1f501b[_0x56d8('0x10')](_0x56d8('0x37'))['to'](_0x68257d),_0x1f501b[_0x56d8('0x10')](_0x56d8('0x4f'))['to'](_0x68257d,_0x56d8('0x4f'),_0x8383f4=>_0x56d8('0x34')+_0x8383f4),this[_0x56d8('0x50')]['set'](_0x248593['id'],_0x1f501b));const _0x26bfd4=_0x464bf2[_0x56d8('0x4')](_0x248593[_0x56d8('0x4b')],_0x68257d),_0x331f59=new _0x122c6a(_0x5af099,_0x248593,_0x68257d,_0x26bfd4),_0x27640d=_0x248593[_0x56d8('0x0')]()[_0x56d8('0x5a')](_0x2eb6d8=>_0x2eb6d8[_0x56d8('0x5c')]);_0x68257d[_0x56d8('0x60')]=_0x5af099['plugins'][_0x56d8('0x43')](_0x56d8('0x13'))['_descriptionFactory'][_0x56d8('0x42')](_0x27640d),this[_0x56d8('0x30')]['set'](_0x248593,_0x331f59),this[_0x56d8('0x63')]['set'](_0x68257d,_0x331f59);const _0x4c6f67=_0x3f0e92['createAnnotation']({'view':_0x1f501b,'target':()=>{const _0x588e2b=[],_0x4b89ff=_0x248593[_0x56d8('0x0')]()[_0x56d8('0x5a')](_0x3a607f=>_0x3a607f['isInContent']);for(const _0xa38d46 of _0x4b89ff)_0x588e2b[_0x56d8('0x53')](..._0xa38d46[_0x56d8('0x48')]());return _0x3ed34d(_0x5af099[_0x56d8('0x5b')],_0x588e2b);},'type':()=>_0x56d8('0x34')+_0x331f59[_0x56d8('0x26')][_0x56d8('0x4f')]});_0x464bf2['_bindAnnotationToEditors'](_0x68257d,_0x4c6f67),_0x3f0e92[_0x56d8('0xb')](_0x4c6f67),_0x43b3cc[_0x56d8('0x57')](_0x4c6f67);}[_0x56d8('0x1e')](_0x430b00){const _0xea0b9c=this[_0x56d8('0x56')]['plugins'][_0x56d8('0x43')]('Annotations'),_0x25b8ea=this[_0x56d8('0x30')][_0x56d8('0x43')](_0x430b00),_0x41776b=_0x25b8ea[_0x56d8('0x26')],_0x22ce06=_0xea0b9c[_0x56d8('0x3b')](_0x41776b);_0x22ce06&&_0xea0b9c[_0x56d8('0x3e')](_0x22ce06),this[_0x56d8('0x30')][_0x56d8('0x38')](_0x430b00),this[_0x56d8('0x63')][_0x56d8('0x38')](_0x41776b),_0x25b8ea[_0x56d8('0x4c')]();}['_updateController'](_0x546614){if(!_0x546614[_0x56d8('0x5c')]||!this[_0x56d8('0x30')][_0x56d8('0x11')](_0x546614))return;const _0x447c1c=this['editor'][_0x56d8('0x31')]['get']('TrackChangesEditing'),_0x6090ca=this[_0x56d8('0x30')][_0x56d8('0x43')](_0x546614),_0x1605f7=_0x546614[_0x56d8('0x0')]();_0x6090ca[_0x56d8('0x26')][_0x56d8('0x60')]=_0x447c1c[_0x56d8('0x66')][_0x56d8('0x42')](_0x1605f7);}[_0x56d8('0x4c')](){for(const _0x2c46fa of this[_0x56d8('0x30')][_0x56d8('0x16')]())this[_0x56d8('0x1e')](_0x2c46fa);for(const _0x1253db of this['_annotationViews'][_0x56d8('0x3f')]())_0x1253db['mainView'][_0x56d8('0x4c')]();super[_0x56d8('0x4c')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb0d6=['getRanges','bind','_discardCommand','add','stopListening','commentThreadController','canAccept','_setPendingAction','commands','get','change:isDirty','PendingActions','execute','discardSuggestion','model','listenTo','remove','_acceptCommand','destroy','_removePendingAction','_editor','acceptSuggestion','_pendingAction','isDirty','plugins','view','unbind','canEditAt','isEnabled'];(function(_0x2551a1,_0xb0d602){const _0xbb90fd=function(_0x144a6d){while(--_0x144a6d){_0x2551a1['push'](_0x2551a1['shift']());}};_0xbb90fd(++_0xb0d602);}(_0xb0d6,0x100));const _0xbb90=function(_0x2551a1,_0xb0d602){_0x2551a1=_0x2551a1-0x0;let _0xbb90fd=_0xb0d6[_0x2551a1];return _0xbb90fd;};import{ObservableMixin as _0x208ff9}from'ckeditor5/src/utils';import{getTranslation as _0x5c019f}from'../utils/common-translations';export default class qt extends _0x208ff9(){constructor(_0x5380c3,_0x222a9e,_0x5ba470,_0x9c6d61){super(),this[_0xbb90('0x13')]=_0x222a9e,this[_0xbb90('0x1')]=_0x5ba470,this['commentThreadController']=_0x9c6d61,this[_0xbb90('0x19')]=_0x5380c3,this[_0xbb90('0x16')]=_0x5380c3[_0xbb90('0xd')][_0xbb90('0xe')](_0xbb90('0x1a')),this[_0xbb90('0x7')]=_0x5380c3[_0xbb90('0xd')][_0xbb90('0xe')](_0xbb90('0x12')),this[_0xbb90('0x1')][_0xbb90('0x6')](_0xbb90('0x4'))['to'](this[_0xbb90('0x16')],this[_0xbb90('0x7')],(_0x4f533b,_0x2cf068)=>_0x4f533b||_0x2cf068),this[_0xbb90('0x1')][_0xbb90('0x6')](_0xbb90('0xb'))['to'](this[_0xbb90('0x16')],_0xbb90('0x4'),_0xcd59de=>_0xcd59de&&this[_0xbb90('0x19')][_0xbb90('0x13')]['canEditAt'](_0x222a9e[_0xbb90('0x5')]())),this['view'][_0xbb90('0x6')]('canDiscard')['to'](this[_0xbb90('0x7')],_0xbb90('0x4'),_0x271b07=>_0x271b07&&this[_0xbb90('0x19')][_0xbb90('0x13')][_0xbb90('0x3')](_0x222a9e[_0xbb90('0x5')]())),this['_pendingAction']=null,_0x5ba470[_0xbb90('0x1c')]&&this[_0xbb90('0xc')](),this[_0xbb90('0x14')](_0x5ba470,'acceptSuggestion',()=>this[_0xbb90('0x1a')]()),this[_0xbb90('0x14')](_0x5ba470,_0xbb90('0x12'),()=>this[_0xbb90('0x12')]()),this['listenTo'](_0x5ba470,_0xbb90('0xf'),()=>{_0x5ba470[_0xbb90('0x1c')]?this[_0xbb90('0xc')]():this[_0xbb90('0x18')]();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this[_0xbb90('0x13')]['id']);}[_0xbb90('0x12')](){this[_0xbb90('0x7')][_0xbb90('0x11')](this[_0xbb90('0x13')]['id']);}[_0xbb90('0x17')](){this[_0xbb90('0x1')][_0xbb90('0x2')](_0xbb90('0x4')),this[_0xbb90('0x1')][_0xbb90('0x2')]('canAccept'),this[_0xbb90('0x1')][_0xbb90('0x2')]('canDiscard'),this[_0xbb90('0x9')](),this[_0xbb90('0xa')][_0xbb90('0x17')](),this[_0xbb90('0x1b')]&&this[_0xbb90('0x18')]();}[_0xbb90('0xc')](){const _0x51dea3=_0x5c019f(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this[_0xbb90('0x1b')]=this['_editor'][_0xbb90('0x0')][_0xbb90('0xe')](_0xbb90('0x10'))[_0xbb90('0x8')](_0x51dea3);}[_0xbb90('0x18')](){null!==this['_pendingAction']&&this[_0xbb90('0x19')][_0xbb90('0x0')][_0xbb90('0xe')](_0xbb90('0x10'))[_0xbb90('0x15')](this[_0xbb90('0x1b')]),this[_0xbb90('0x1b')]=null;}}
23
+ const _0x27fe=['bind','_setPendingAction','_editor','get','model','isEnabled','_removePendingAction','commands','add','PendingActions','destroy','remove','_acceptCommand','unbind','_pendingAction','execute','locale','commentThreadController','isDirty','acceptSuggestion','PENDING_ACTION_SUGGESTION','canEditAt','view','discardSuggestion','canAccept','canDiscard','_discardCommand','getRanges','plugins'];(function(_0x3b22ab,_0x27fe90){const _0x212d1f=function(_0x83742b){while(--_0x83742b){_0x3b22ab['push'](_0x3b22ab['shift']());}};_0x212d1f(++_0x27fe90);}(_0x27fe,0x15c));const _0x212d=function(_0x3b22ab,_0x27fe90){_0x3b22ab=_0x3b22ab-0x0;let _0x212d1f=_0x27fe[_0x3b22ab];return _0x212d1f;};import{ObservableMixin as _0x9767cf}from'ckeditor5/src/utils';import{getTranslation as _0x2acec8}from'../utils/common-translations';export default class qt extends _0x9767cf(){constructor(_0x2840ae,_0x41715a,_0x19440d,_0x282128){super(),this[_0x212d('0x4')]=_0x41715a,this[_0x212d('0x16')]=_0x19440d,this[_0x212d('0x11')]=_0x282128,this[_0x212d('0x2')]=_0x2840ae,this['_acceptCommand']=_0x2840ae[_0x212d('0x7')][_0x212d('0x3')]('acceptSuggestion'),this[_0x212d('0x1a')]=_0x2840ae[_0x212d('0x7')][_0x212d('0x3')](_0x212d('0x17')),this[_0x212d('0x16')]['bind'](_0x212d('0x5'))['to'](this['_acceptCommand'],this[_0x212d('0x1a')],(_0x4a74b0,_0x139430)=>_0x4a74b0||_0x139430),this[_0x212d('0x16')][_0x212d('0x0')](_0x212d('0x18'))['to'](this[_0x212d('0xc')],'isEnabled',_0x5a59ee=>_0x5a59ee&&this[_0x212d('0x2')][_0x212d('0x4')][_0x212d('0x15')](_0x41715a[_0x212d('0x1b')]())),this['view']['bind'](_0x212d('0x19'))['to'](this[_0x212d('0x1a')],_0x212d('0x5'),_0x54787c=>_0x54787c&&this[_0x212d('0x2')][_0x212d('0x4')][_0x212d('0x15')](_0x41715a[_0x212d('0x1b')]())),this[_0x212d('0xe')]=null,_0x19440d['isDirty']&&this[_0x212d('0x1')](),this['listenTo'](_0x19440d,_0x212d('0x13'),()=>this['acceptSuggestion']()),this['listenTo'](_0x19440d,_0x212d('0x17'),()=>this[_0x212d('0x17')]()),this['listenTo'](_0x19440d,'change:isDirty',()=>{_0x19440d[_0x212d('0x12')]?this[_0x212d('0x1')]():this['_removePendingAction']();});}[_0x212d('0x13')](){this[_0x212d('0xc')][_0x212d('0xf')](this['model']['id']);}[_0x212d('0x17')](){this['_discardCommand'][_0x212d('0xf')](this['model']['id']);}[_0x212d('0xa')](){this[_0x212d('0x16')]['unbind'](_0x212d('0x5')),this[_0x212d('0x16')][_0x212d('0xd')]('canAccept'),this[_0x212d('0x16')][_0x212d('0xd')](_0x212d('0x19')),this['stopListening'](),this['commentThreadController'][_0x212d('0xa')](),this[_0x212d('0xe')]&&this[_0x212d('0x6')]();}['_setPendingAction'](){const _0x5708f0=_0x2acec8(this[_0x212d('0x2')][_0x212d('0x10')],_0x212d('0x14'));this[_0x212d('0xe')]=this[_0x212d('0x2')][_0x212d('0x1c')]['get'](_0x212d('0x9'))[_0x212d('0x8')](_0x5708f0);}[_0x212d('0x6')](){null!==this[_0x212d('0xe')]&&this[_0x212d('0x2')][_0x212d('0x1c')][_0x212d('0x3')]('PendingActions')[_0x212d('0xb')](this[_0x212d('0xe')]),this[_0x212d('0xe')]=null;}}