@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230831.0 → 0.0.0-nightly-20230902.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 +2 -2
  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 _0x2983=['data','isExternal','head','createPositionAt','never','_joinSuggestions','isOwn','sort','containsRangeInObject','createdAt','rootName','pluginName','size','addSuggestionData','change:data','catch','oldRange','deletion:','consume','requires','trackChanges.trackFormatChanges','accepted','_commentsRepository','dataDowncast','writer','formatInline:chain','$marker','ready','isIntersectingWithRange','insertion:discard','editingDowncast','_setSuggestionData','push','always','editing','fetchCommentThread','addSuggestion','suggestion:','_mergeNestedSuggestions','_updateSuggestionData','getCommentThread','markerReady','getSuggestions','move','_isDataLoaded','update:suggestion','hasComments','_getExternalAuthor','_cutOutSuggestionMarker','highest','plugins','delete','removed','length','track-changes-adapter-missing-getsuggestion','isUndo','stopListening','formatBlock:discard','markerToHighlight','updateSuggestion','set','containsRange','ck-suggestion-marker-formatBlock','_saved','accept','commentThread','track-changes-user-not-found','fromRange','_joinWithAdjacentSuggestions','isBlock','has','suggestionLoaded','value','insertion','differ','ck-suggestion-marker-','isEqual','_onDiscard','CommentsRepository','createPositionAfter','createPositionBefore','formatInline:join','getNearestSelectionRange','suggestion-type','deletion:join','change:_saved','options','suggestion','createRangeIn','consumable','addMarker:suggestion:formatBlock','isNextTo','isCollapsed','dataReady','get','mapper','type','forward','_getAuthorFromId','then','discardSuggestion','for','formatBlock:accept','open','from','assign','hasSuggestion','bindElementToMarker','author','forceDefaultExecution','addMarkerName','root','insert','markMultiRangeDeletion','getMarkers','markInsertion','deletion:accept','_defaultCallbacks','targetPosition','some','setSelection','nodeAfter','schema','addMarker','isRemovable','getLastMatchingPosition','listenTo','acceptAllSuggestions','values','getIntersection','elementStart','newRange','track-changes-adapter-already-set','getShiftedBy','locale','formatInline:accept','markInlineFormat','subType','getSuggestionCallback','suggestionChanged','_removeSuggestion','buildSuggestion','isObject','addUser','includes','@external','isInContent','collaboration.channelId','removeMarkers','track-changes-suggestion-not-found','editor','getChanges','removeComment','_suggestionState','filter','stop','previous','isAtStart','batch','external:','PENDING_ACTION_SUGGESTION','getCustomProperty','formatGroupId','toViewElement','keys','$graveyard','lowest','element','getFirstRange','_handleNewSuggestionMarker','name','addComment','removeMarker:suggestion:formatBlock','_trackFormatChanges','next','authoredAt','originalSuggestionId','attributes','containsItem','markerNameToElements','widget','clone','moveTargetPosition','default','resolve','_setSuggestionRange','trackChanges','isInsideObject','isLocal','_isForcedDefaultExecutionBlock','model','track-changes-suggestion-data-mismatch','execute','creator','getFirstMarker','_addSuggestionMarker','discard','_getSuggestionData','addRange','backward','upcast','add','remove','deletion','fire','getRanges','_rangeIsInLocalUserInsertion','multipleBlocks','item','formatBlock:join','getSuggestion','getDifference','detach','authorName','activeMarkers','end','change:activeMarkers','data-suggestion','_suggestionFactory','formatBlock','_customCallbacks','isAfter','multi','suggestionUnloaded','map','_model','updateMarker','parent','_enabledCommands','ck-suggestion-marker--active','getUser','_editor','split','before','markers','documentSelection','high','formatInline','splice','isMultiRange','conversion','getMultiRangeId','trackChangesCommand','_refreshSuggestionsChain','formatInline:discard','getAttribute','_breakSuggestionMarker','addHighlight','init','unbind','isBefore','TrackChangesEditing','markMultiRangeInsertion','rejected','insertion:','showSuggestionHighlights','_adapter','containsPosition','discardAllSuggestions','deletion:chain','low','createRange','getRange','splitPosition','hasCommentThread','registerPostFixer','_createSuggestion','isLimit','$textProxy','enableCommand','markerName','enableReadOnlyMode','unbindElementFromMarkerName','PendingActions','_addThreadToSuggestion','formatBlock:chain','Users','document','start','addClass','ck-suggestion-marker','skipNestingCheck','substr','refresh','insertContent','createSelection','_suggestions','notReady','howMany','nodeBefore','getAllAdjacentSuggestions','acceptSuggestion','join','removeAttribute','_splitMarkerName','_registerDefaultCallbacks','acceptSelectedSuggestions','marker-count','commandName','containerElement','_findSuggestions','markDeletion','range','change','insertion:join','trackChanges.mergeNestedSuggestions','chain','dataToMarker','config','createElement','_checkSuggestionCorrectness','position','every','commands','getChangedMarkers','addMarker:suggestion'];(function(_0x32f40c,_0x2983aa){const _0x3f7800=function(_0x4840ee){while(--_0x4840ee){_0x32f40c['push'](_0x32f40c['shift']());}};_0x3f7800(++_0x2983aa);}(_0x2983,0x13a));const _0x3f78=function(_0x32f40c,_0x2983aa){_0x32f40c=_0x32f40c-0x0;let _0x3f7800=_0x2983[_0x32f40c];return _0x3f7800;};import{Plugin as _0x5d2f4f,PendingActions as _0x2320a5}from'ckeditor5/src/core';import{LiveRange as _0x4b8f82}from'ckeditor5/src/engine';import{CKEditorError as _0x400b29,uid as _0x418993,priorities as _0x372a5a,logWarning as _0x46fa9c}from'ckeditor5/src/utils';import{toWidget as _0x3228a9}from'ckeditor5/src/widget';import{Users as _0x11ba72,hashObject as _0x3abb0f}from'ckeditor5-collaboration/src/collaboration-core';import _0x22766f from'./commands/trackchangescommand';import _0x14c77f from'./commands/acceptsuggestioncommand';import _0x522ba1 from'./commands/discardsuggestioncommand';import _0x5f4998 from'./commands/executeonallsuggestionscommand';import _0x1686f1 from'./commands/executeonselectedsuggestionscommand';import _0x49aee1 from'./suggestion';import _0x52f1c8 from'./suggestiondescriptionfactory';import _0x24ae3c from'./integrations/alignment';import _0x2625f9 from'./integrations/basicstyles';import _0x2b6359 from'./integrations/blockquote';import _0x598ab2 from'./integrations/ckbox';import _0x3e7f4c from'./integrations/codeblock';import _0x1494f2 from'./integrations/comments';import _0x421aaf from'./integrations/deletecommand';import _0xf0e564 from'./integrations/documentlist';import _0x3d35c6 from'./integrations/entercommand';import _0x3532db from'./integrations/findandreplace';import _0x4d2acc from'./integrations/font';import _0x3e7b86 from'./integrations/formatpainter';import _0x3a9734 from'./integrations/heading';import _0x103cee from'./integrations/highlight';import _0x40a8bb from'./integrations/horizontalline';import _0x515eac from'./integrations/htmlembed';import _0x828745 from'./integrations/image';import _0x147183 from'./integrations/imagereplace';import _0x5a0945 from'./integrations/importword';import _0x41316e from'./integrations/indent';import _0x3ab921 from'./integrations/inputcommand';import _0x9242aa from'./integrations/link';import _0x1f3be7 from'./integrations/list';import _0xd287f2 from'./integrations/listproperties';import _0x1b9a09 from'./integrations/mediaembed';import _0x5478b3 from'./integrations/mention';import _0x49a53c from'./integrations/pagebreak';import _0x4048f4 from'./integrations/paragraph';import _0x5432b5 from'./integrations/removeformat';import _0x9e98f3 from'./integrations/restrictededitingmode';import _0x29c26f from'./integrations/shiftentercommand';import _0x3ee5d9 from'./integrations/standardeditingmode';import _0xb84f99 from'./integrations/style';import _0x4c22a3 from'./integrations/table';import _0x2c5488 from'./integrations/tablemergesplit';import _0x53b72d from'./integrations/tableheadings';import _0x48a740 from'./integrations/tableclipboard';import _0x1274a3 from'./integrations/tablecolumnresize';import _0x5756fb from'./integrations/template';import _0x37faca from'./integrations/tableofcontents';import _0x4a416c from'./integrations/title';import _0x56f780 from'./integrations/undo';import{getTranslation as _0x304cd0}from'./utils/common-translations';import _0x4d9eda from'./integrations/tablecaption';import _0x548624 from'./integrations/documentlistproperties';import _0x4fcfbc from'./integrations/tableproperties';import{isEqual as _0x4b2408}from'lodash-es';export default class p extends _0x5d2f4f{static get[_0x3f78('0x15')](){return[_0x3f78('0x50'),_0x11ba72,_0x2320a5,_0x24ae3c,_0x2625f9,_0x2b6359,_0x598ab2,_0x3e7f4c,_0x1494f2,_0x421aaf,_0xf0e564,_0x548624,_0x3d35c6,_0x3532db,_0x4d2acc,_0x3e7b86,_0x3a9734,_0x103cee,_0x40a8bb,_0x515eac,_0x828745,_0x147183,_0x5a0945,_0x41316e,_0x3ab921,_0x9242aa,_0x1f3be7,_0xd287f2,_0x1b9a09,_0x5478b3,_0x49a53c,_0x4048f4,_0x5432b5,_0x9e98f3,_0x29c26f,_0x3ee5d9,_0xb84f99,_0x4c22a3,_0x2c5488,_0x53b72d,_0x4d9eda,_0x48a740,_0x1274a3,_0x37faca,_0x4fcfbc,_0x5756fb,_0x4a416c,_0x56f780];}static get[_0x3f78('0xd')](){return _0x3f78('0xfd');}constructor(_0x76f12b){function _0xec8596(_0x28c917){return _0x28c917[_0x3f78('0xe2')](_0x4c4647=>String['fromCharCode'](_0x4c4647))[_0x3f78('0x126')]('');}super(_0x76f12b),this[_0x3f78('0x3e')](_0x3f78('0xd8'),[]),this['on'](_0x3f78('0xda'),(_0x1026aa,_0x476d56,_0x2a3a02,_0x3b6e37)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](()=>{for(const _0x43c157 of[..._0x3b6e37,..._0x2a3a02])this[_0x3f78('0xe3')]['markers']['has'](_0x43c157)&&_0x76f12b[_0x3f78('0x24')]['reconvertMarker'](_0x43c157);});}),this['_descriptionFactory']=new _0x52f1c8(this[_0x3f78('0x98')][_0x3f78('0xc0')][_0x3f78('0x7c')],this[_0x3f78('0x98')][_0x3f78('0x88')]),this[_0x3f78('0x102')]=null,this[_0x3f78('0xdc')]=new Dt(this[_0x3f78('0x98')]),this[_0x3f78('0x120')]=new Map(),this[_0x3f78('0x18')]=_0x76f12b[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50')),this[_0x3f78('0xe6')]=new Set(),this['_model']=this[_0x3f78('0x98')][_0x3f78('0xc0')],this[_0x3f78('0x9b')]=new WeakMap(),this[_0x3f78('0xbf')]=!0x1,_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x16'),_0x3f78('0xb9')),this[_0x3f78('0xaf')]=_0x76f12b[_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x16')),_0x76f12b[_0x3f78('0x136')]['define'](_0x3f78('0x133'),!0x0),this[_0x3f78('0x28')]=_0x76f12b['config'][_0x3f78('0x60')](_0x3f78('0x133')),this[_0x3f78('0xf4')]=new _0x22766f(_0x76f12b,this['_enabledCommands']),this[_0xec8596([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xec8596([0x34,0x30,0x34,0x36,0x31,0x36,0x36,0x32]);}[_0x3f78('0xfa')](){const _0x48add5=this[_0x3f78('0x98')];_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))['markerToHighlight']({'model':_0x3f78('0x59'),'view':_0x1998e0=>{const {id:_0x54f821,type:_0x2009c0}=this[_0x3f78('0x128')](_0x1998e0[_0x3f78('0x110')]),_0x2f929a=[_0x3f78('0x11a'),_0x3f78('0x4d')+_0x2009c0];let _0x26093a=0xbb8;return this[_0x3f78('0xd8')]['includes'](_0x1998e0['markerName'])&&(_0x2f929a[_0x3f78('0x22')](_0x3f78('0xe7')),_0x26093a=0xbc2),_0x3f78('0xcd')==_0x2009c0&&(_0x26093a+=0x5),{'classes':_0x2f929a,'attributes':{'data-suggestion':_0x54f821},'priority':_0x26093a};}}),_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))['add'](_0x8a9f9f=>{_0x8a9f9f['on'](_0x3f78('0x1'),(_0x3be6c1,_0x2c1463,_0x5cd680)=>{if(!_0x5cd680['options'][_0x3f78('0x101')])return;const _0x195611=_0x2c1463['item'];if(!_0x195611)return;const _0xdab9ed=_0x5cd680[_0x3f78('0x61')][_0x3f78('0xa5')](_0x195611);_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')][_0x3f78('0x90')](_0x195611)&&_0xdab9ed&&!_0xdab9ed[_0x3f78('0xa3')](_0x3f78('0xb6'))&&_0xdab9ed['is'](_0x3f78('0x12d'))&&_0x3228a9(_0xdab9ed,_0x5cd680['writer']);},{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('dataDowncast')[_0x3f78('0x3c')]({'model':_0x3f78('0x59'),'view':(_0x152f69,_0xbf5be8)=>{if(!_0xbf5be8[_0x3f78('0x58')][_0x3f78('0x101')])return null;const {type:_0x53a5d7}=this[_0x3f78('0x128')](_0x152f69['markerName']);return{'classes':[_0x3f78('0x11a'),'ck-suggestion-marker-'+_0x53a5d7],'priority':0xbb8};}});const _0x151bc8=({showActiveMarkers:_0x442768=!0x0}={})=>(_0x1871b2,_0x1f49fb,_0x368a8f)=>{if(!_0x1f49fb[_0x3f78('0xd2')])return;if(_0x1f49fb['item']['is']('selection'))return void _0x368a8f['consumable']['consume'](_0x1f49fb['item'],_0x1871b2[_0x3f78('0xac')]);const _0x1a6d20=_0x368a8f[_0x3f78('0x61')][_0x3f78('0xa5')](_0x1f49fb[_0x3f78('0xd2')]);if(!(_0x1f49fb[_0x3f78('0xd2')]['is']('element')&&_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['isBlock'](_0x1f49fb['item'])&&!_0x1a6d20[_0x3f78('0xa3')](_0x3f78('0xf9'))))return;const {id:_0x3aff99}=this[_0x3f78('0x128')](_0x1f49fb['markerName']);_0x368a8f['writer'][_0x3f78('0x119')](['ck-suggestion-marker',_0x3f78('0x40')],_0x1a6d20),_0x368a8f[_0x3f78('0x1a')]['setAttribute'](_0x3f78('0xdb'),_0x3aff99,_0x1a6d20),_0x368a8f[_0x3f78('0x61')][_0x3f78('0x6d')](_0x1a6d20,_0x1f49fb[_0x3f78('0x110')]),_0x442768&&(this[_0x3f78('0xd8')][_0x3f78('0x92')](_0x1f49fb['markerName'])?_0x368a8f[_0x3f78('0x1a')][_0x3f78('0x119')](_0x3f78('0xe7'),_0x1a6d20):_0x368a8f[_0x3f78('0x1a')]['removeClass']('ck-suggestion-marker--active',_0x1a6d20));for(const _0x507db5 of _0x48add5[_0x3f78('0xc0')][_0x3f78('0x5a')](_0x1f49fb['item'])['getItems']())_0x368a8f[_0x3f78('0x5b')][_0x3f78('0x14')](_0x507db5,_0x1871b2[_0x3f78('0xac')]);_0x368a8f[_0x3f78('0x5b')]['consume'](_0x1f49fb[_0x3f78('0xd2')],_0x1871b2[_0x3f78('0xac')]);};_0x48add5['conversion'][_0x3f78('0x67')](_0x3f78('0x19'))[_0x3f78('0xcb')](_0x24ef8d=>{_0x24ef8d['on'](_0x3f78('0x5c'),(_0x5f3a89,_0x174cf8,_0x39087f)=>{_0x39087f[_0x3f78('0x58')][_0x3f78('0x101')]&&_0x151bc8({'showActiveMarkers':!0x1})(_0x5f3a89,_0x174cf8,_0x39087f);},{'priority':_0x3f78('0x33')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x19'))['markerToData']({'model':'suggestion','view':(_0x2f01ff,_0x4043a7)=>_0x4043a7[_0x3f78('0x58')][_0x3f78('0x101')]?null:{'group':'suggestion','name':_0x2f01ff[_0x3f78('0x11c')](0xb)}}),_0x48add5[_0x3f78('0xf2')]['for'](_0x3f78('0xca'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xeec12e,{writer:_0x165ae3})=>{let _0x193666=_0x3f78('0x27')+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x55'))+':'+_0xeec12e[_0x3f78('0xf7')]('id');return _0xeec12e[_0x3f78('0xf7')]('marker-count')&&(_0x193666+=':'+_0xeec12e[_0x3f78('0xf7')](_0x3f78('0x12b'))),_0x165ae3[_0x3f78('0x137')](_0x3f78('0x1c'),{'data-name':_0x193666});}}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0xca'))[_0x3f78('0x135')]({'view':'suggestion'}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')](_0x3f78('0x20'))[_0x3f78('0xcb')](_0x354c46=>{_0x354c46['on']('addMarker:suggestion:formatBlock',_0x151bc8(),{'priority':_0x3f78('0xee')});}),_0x48add5[_0x3f78('0xf2')][_0x3f78('0x67')]('editingDowncast')[_0x3f78('0xcb')](_0x4192a1=>{_0x4192a1['on'](_0x3f78('0xae'),(_0x3781de,_0x101623,_0x53cff0)=>{const _0x4a9a34=_0x53cff0['mapper'][_0x3f78('0xb5')](_0x101623[_0x3f78('0x110')]);if(_0x4a9a34)for(const _0x5e12e3 of _0x4a9a34)_0x5e12e3['getCustomProperty'](_0x3f78('0xf9'))||(_0x53cff0[_0x3f78('0x1a')]['removeClass']([_0x3f78('0x11a'),_0x3f78('0x40'),'ck-suggestion-marker--active'],_0x5e12e3),_0x53cff0[_0x3f78('0x1a')][_0x3f78('0x127')](_0x3f78('0xdb'),_0x5e12e3),_0x53cff0[_0x3f78('0x61')][_0x3f78('0x112')](_0x5e12e3,_0x101623[_0x3f78('0x110')]));},{'priority':_0x3f78('0xee')});}),_0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x10b')](_0x3887b8=>{let _0x3d0968=!0x1;const _0x3fd563=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')]['document']['differ'][_0x3f78('0x0')]()),_0xabe217=new Set();for(const {name:_0x4a5222,data:_0x33fcff}of _0x3fd563){const {group:_0xf1e615,type:_0x3ad08a,id:_0x464253}=this['_splitMarkerName'](_0x4a5222);if(_0x3f78('0x59')!==_0xf1e615)continue;const _0x34f53f=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x464253);if(null!=_0x33fcff[_0x3f78('0x85')]){_0x3f78('0xef')==_0x3ad08a&&(_0x3d0968=_0x3d0968||Mt(_0x33fcff[_0x3f78('0x85')],_0x4a5222,_0x3887b8,_0x48add5[_0x3f78('0xc0')]['schema']));if(_0x33fcff[_0x3f78('0x85')]['isCollapsed']||'$graveyard'==_0x33fcff[_0x3f78('0x85')]['root']['rootName']||'formatBlock'==_0x3ad08a&&!Nt(_0x33fcff[_0x3f78('0x85')])||_0x3f78('0xcd')==_0x3ad08a&&!(!_t(_0xf96b01=_0x33fcff[_0x3f78('0x85')])&&!function(_0x3023ad){return _0x3023ad[_0x3f78('0x118')][_0x3f78('0xe5')]==_0x3023ad[_0x3f78('0xd9')][_0x3f78('0x123')]&&_0x3023ad[_0x3f78('0x118')]['isAtEnd'];}(_0xf96b01)))_0x3887b8['removeMarker'](_0x4a5222),_0x3d0968=!0x0;else{if(!_0x34f53f||!_0x34f53f[_0x3f78('0x94')])continue;_0xabe217[_0x3f78('0xcb')](_0x34f53f);}}}var _0xf96b01;return _0xabe217[_0x3f78('0xe')]>0x0&&(_0x3d0968=!!this[_0x3f78('0x46')](_0xabe217)||_0x3d0968),_0x3d0968;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')][_0x3f78('0x10b')](_0xb4e143=>{let _0x49b52c=!0x1;for(const _0x5d1fcf of _0x48add5['model'][_0x3f78('0x117')][_0x3f78('0x4c')][_0x3f78('0x99')]()){if(_0x3f78('0x72')!=_0x5d1fcf[_0x3f78('0x62')])continue;const _0x288495=_0x5d1fcf[_0x3f78('0x139')]['getShiftedBy'](_0x5d1fcf[_0x3f78('0x37')]);if(_0x288495['isAtEnd'])for(const _0x23d958 of this['_suggestions'][_0x3f78('0x82')]()){if(_0x23d958[_0x3f78('0xf1')]||!_0x23d958[_0x3f78('0x94')])continue;if(_0x3f78('0xdd')!=_0x23d958['type'])continue;const _0x1fe70d=_0x23d958[_0x3f78('0xaa')]();if(_0x1fe70d[_0x3f78('0x118')][_0x3f78('0xe5')]!=_0x1fe70d[_0x3f78('0xd9')][_0x3f78('0xe5')]&&_0x1fe70d['end'][_0x3f78('0x4e')](_0x5d1fcf['position'])){const _0x4cf601=_0x48add5['model'][_0x3f78('0x107')](_0x1fe70d[_0x3f78('0x118')],_0x288495);_0xb4e143[_0x3f78('0xe4')](_0x23d958[_0x3f78('0xc4')](),{'range':_0x4cf601}),_0x49b52c=!0x0;}}}return _0x49b52c;}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0xec')]['on'](_0x3f78('0x2f'),(_0x20ba08,_0x18bb10,_0x112382)=>{if(null==_0x112382){const {id:_0x1a7ea7}=this['_splitMarkerName'](_0x18bb10['name']),_0x933994=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x1a7ea7);_0x933994&&_0x933994[_0x3f78('0x70')](_0x18bb10[_0x3f78('0xac')]);}}),_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['on'](_0x3f78('0x10'),()=>{const _0x482723=Array[_0x3f78('0x6a')](_0x48add5[_0x3f78('0xc0')][_0x3f78('0x117')]['differ'][_0x3f78('0x0')]())[_0x3f78('0x9c')](_0x487135=>_0x3f78('0x59')===this[_0x3f78('0x128')](_0x487135['name'])['group']);if(0x0===_0x482723['length'])return;_0x482723[_0x3f78('0x9')]((_0xdc5519,_0x53a4de)=>{const _0x1f8099=_0xdc5519[_0x3f78('0x2')][_0x3f78('0x12')],_0xd21b26=_0x53a4de['data']['oldRange'];return null===_0x1f8099&&null===_0xd21b26?0x0:null===_0x1f8099&&null!==_0xd21b26?-0x1:null!==_0x1f8099&&null===_0xd21b26?0x1:_0x1f8099[_0x3f78('0x118')]['isBefore'](_0xd21b26[_0x3f78('0x118')])?-0x1:0x1;});const _0x3230df=new Set(),_0x3e6be8=new Set();for(const {name:_0x3de78c,data:_0x134078}of _0x482723){const {id:_0x4f67e6}=this[_0x3f78('0x128')](_0x3de78c);if(null===_0x134078[_0x3f78('0x12')]){const _0x4e4923=this[_0x3f78('0xab')](_0x3de78c);_0x3e6be8[_0x3f78('0xcb')](_0x4e4923);}else{const _0x22306b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x4f67e6);null!==_0x134078[_0x3f78('0x85')]||_0x22306b[_0x3f78('0x94')]?(_0x3230df[_0x3f78('0xcb')](_0x22306b[_0x3f78('0x4')]),_0x3e6be8[_0x3f78('0xcb')](_0x22306b)):this[_0x3f78('0x8e')](_0x22306b);}}_0x3e6be8[_0x3f78('0xe')]>0x0&&this[_0x3f78('0xf5')](_0x3e6be8);for(const _0x1c69d7 of _0x3230df)this['fire']('suggestionChanged',_0x1c69d7);}),_0x48add5['model']['on']('applyOperation',(_0xa37e2e,_0x2f6e36)=>{const _0xb58e36=_0x2f6e36[0x0];if(!this[_0x3f78('0x120')][_0x3f78('0xe')])return;if(!_0xb58e36['isDocumentOperation'])return;if(_0xb58e36[_0x3f78('0xa0')][_0x3f78('0x39')]||!_0xb58e36['batch'][_0x3f78('0xbe')])return;let _0x4f7b56,_0x5281c6;switch(_0xb58e36[_0x3f78('0x62')]){case'insert':_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x139')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36[_0x3f78('0x122')]);break;case _0x3f78('0xea'):_0x4f7b56=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x109')]),_0x5281c6=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0xb8')]);break;case _0x3f78('0x2d'):_0x4f7b56=_0x48add5['model'][_0x3f78('0x5')](_0xb58e36[_0x3f78('0x78')]),_0x5281c6=_0x4f7b56[_0x3f78('0x87')](_0xb58e36['howMany']);break;default:return;}const _0x588a9e=_0x48add5['model'][_0x3f78('0x107')](_0x4f7b56,_0x5281c6);_0x48add5['model'][_0x3f78('0x131')](()=>{for(const {suggestion:_0x1f0762,meta:_0x6c07b7}of this[_0x3f78('0x12e')](_0x588a9e)){if(_0x1f0762[_0x3f78('0xf1')])continue;if(_0x3f78('0xef')==_0x1f0762[_0x3f78('0x62')])continue;const _0x2840e7=_0x1f0762[_0x3f78('0x2')]&&_0x1f0762[_0x3f78('0x2')][_0x3f78('0xd1')];(_0x3f78('0xdd')!=_0x1f0762['type']||_0x3f78('0xea')==_0xb58e36[_0x3f78('0x62')]&&!_0x2840e7)&&(_0x6c07b7[_0x3f78('0xa')]||_0x3f78('0x4b')==_0x1f0762[_0x3f78('0x62')]&&_0x6c07b7[_0x3f78('0x8')]||_0x1f0762[_0x3f78('0xaa')]()[_0x3f78('0x3f')](_0x588a9e)&&this['_breakSuggestionMarker'](_0x1f0762,_0x4f7b56,_0x5281c6));}});},{'priority':_0x3f78('0xa8')}),_0x48add5[_0x3f78('0xc0')]['on']('deleteContent',(_0x5a3f4b,_0x587955)=>{const _0x3e97b9=_0x587955[0x0],_0x3f7cae=_0x587955[0x1];if(_0x3f7cae&&_0x3f7cae[_0x3f78('0x6f')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x3f78('0x4a')])return;if(_0x3e97b9[_0x3f78('0x5e')])return;const _0x4aa9f8=_0x48add5[_0x3f78('0xc0')]['schema'],{start:_0x428226,end:_0x52ac3e}=_0x3e97b9['getFirstRange'](),_0x5d1907=_0x428226[_0x3f78('0x7b')]&&_0x4aa9f8[_0x3f78('0x10d')](_0x428226[_0x3f78('0x7b')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x428226,_0x3f78('0x63')),_0x330d49=_0x52ac3e[_0x3f78('0x123')]&&_0x4aa9f8['isLimit'](_0x52ac3e[_0x3f78('0x123')])?null:_0x4aa9f8[_0x3f78('0x54')](_0x52ac3e,_0x3f78('0xc9')),_0x40e439=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x107')](_0x5d1907?_0x5d1907['start']:_0x428226,_0x330d49?_0x330d49['end']:_0x52ac3e);_0x48add5[_0x3f78('0xc0')]['change'](_0x4e857d=>{this[_0x3f78('0x12f')](_0x40e439);const _0x335049=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')]['getNearestSelectionRange'](_0x40e439[_0x3f78('0x118')]);_0x3e97b9['is'](_0x3f78('0xed'))?_0x4e857d[_0x3f78('0x7a')](_0x335049):_0x3e97b9['setTo'](_0x335049);}),_0x5a3f4b[_0x3f78('0x9d')]();},{'priority':_0x372a5a['normal']+0xa}),_0x48add5[_0x3f78('0xc0')]['on'](_0x3f78('0x11e'),(_0x3c2084,_0x3e2ff5)=>{const _0x182567=_0x3e2ff5[_0x3e2ff5[_0x3f78('0x37')]-0x1];_0x182567&&_0x182567[_0x3f78('0x6f')]||this['_isForcedDefaultExecutionBlock']||this[_0x3f78('0xf4')][_0x3f78('0x4a')]&&(_0x48add5['model'][_0x3f78('0x131')](()=>{let _0x252b2a=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x11e')](_0x3e2ff5[0x0],_0x3e2ff5[0x1],_0x3e2ff5[0x2],{'forceDefaultExecution':!0x0});if(!_0x252b2a)return;_0x3c2084['return']=_0x252b2a[_0x3f78('0xb7')]();const _0x3b45d7=_0x252b2a[_0x3f78('0xd9')][_0x3f78('0x123')],_0x1dd888=_0x48add5[_0x3f78('0xc0')][_0x3f78('0x7c')];_0x3b45d7&&_0x1dd888[_0x3f78('0x47')](_0x3b45d7)&&!_0x1dd888[_0x3f78('0x90')](_0x3b45d7)&&(_0x252b2a=_0x48add5[_0x3f78('0xc0')]['createRange'](_0x252b2a[_0x3f78('0x118')],_0x48add5['model'][_0x3f78('0x5')](_0x3b45d7,_0x3f78('0xd9')))),this[_0x3f78('0x75')](_0x252b2a);}),_0x3c2084[_0x3f78('0x9d')]());},{'priority':'high'}),this['editor'][_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0xbc'),this[_0x3f78('0xf4')]),this[_0x3f78('0x10f')]('trackChanges');const _0x2a7225=new _0x14c77f(_0x48add5,this[_0x3f78('0x120')]);_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x125'),_0x2a7225),this[_0x3f78('0x10f')](_0x3f78('0x125'));const _0x3e1c08=new _0x522ba1(_0x48add5,this['_suggestions']);_0x48add5[_0x3f78('0x13b')]['add']('discardSuggestion',_0x3e1c08),this[_0x3f78('0x10f')]('discardSuggestion'),_0x48add5[_0x3f78('0x13b')][_0x3f78('0xcb')](_0x3f78('0x81'),new _0x5f4998(_0x48add5,_0x2a7225,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')](_0x3f78('0x81')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x104'),new _0x5f4998(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this['enableCommand'](_0x3f78('0x104')),_0x48add5['commands'][_0x3f78('0xcb')](_0x3f78('0x12a'),new _0x1686f1(_0x48add5,_0x2a7225,this['_suggestions'])),this[_0x3f78('0x10f')]('acceptSelectedSuggestions'),_0x48add5[_0x3f78('0x13b')]['add']('discardSelectedSuggestions',new _0x1686f1(_0x48add5,_0x3e1c08,this[_0x3f78('0x120')])),this[_0x3f78('0x10f')]('discardSelectedSuggestions');const _0x36c241=_0x48add5[_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x50'));this[_0x3f78('0x80')](_0x36c241,_0x3f78('0xad'),(_0x2f5e3a,{threadId:_0x3c72ad})=>{const _0x166037=this['_suggestions'][_0x3f78('0x60')](_0x3c72ad);_0x166037&&_0x166037[_0x3f78('0x43')]&&0x1===_0x166037[_0x3f78('0x43')]['length']&&this['_updateSuggestionData'](_0x3c72ad,{'hasComments':!0x0});},{'priority':_0x3f78('0x106')}),this[_0x3f78('0x80')](_0x36c241,_0x3f78('0x9a'),(_0x4ed059,{threadId:_0x2fc3dc})=>{const _0x243da3=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x2fc3dc);_0x243da3&&_0x243da3[_0x3f78('0x43')]&&!_0x243da3[_0x3f78('0x43')][_0x3f78('0x37')]&&this['_updateSuggestionData'](_0x2fc3dc,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e0b47){if(this[_0x3f78('0x102')])throw new _0x400b29(_0x3f78('0x86'),this);this[_0x3f78('0x102')]=_0x5e0b47;}get['adapter'](){return this[_0x3f78('0x102')];}[_0x3f78('0x2c')]({skipNotAttached:_0x19a845=!0x1,toJSON:_0x547551=!0x1}={}){const _0x571e59=[];for(const _0xaba4ae of this[_0x3f78('0x120')][_0x3f78('0x82')]())_0x19a845&&!_0xaba4ae[_0x3f78('0x94')]||_0x571e59[_0x3f78('0x22')](_0xaba4ae);return _0x547551?_0x571e59['map'](_0x21cac1=>_0x21cac1['toJSON']()):_0x571e59;}[_0x3f78('0xd4')](_0x318bfc){const _0xa8e94=this['_suggestions'][_0x3f78('0x60')](_0x318bfc);if(!_0xa8e94)throw new _0x400b29(_0x3f78('0x97'),this);return _0xa8e94;}[_0x3f78('0x6c')](_0x1bbae5){return this[_0x3f78('0x120')][_0x3f78('0x48')](_0x1bbae5);}[_0x3f78('0xf')](_0x3efd7d){const {authorId:_0x1b0916,id:_0x3b3842,attributes:_0x452c52}=_0x3efd7d,[_0x1c16bb,_0x328ec8]=_0x3efd7d[_0x3f78('0x62')][_0x3f78('0xea')](':'),_0x575a0b=this[_0x3f78('0x120')][_0x3f78('0x60')](_0x3b3842)||this[_0x3f78('0x10c')](_0x1c16bb,_0x328ec8,_0x3b3842,_0x1b0916,_0x452c52);if(this[_0x3f78('0x114')](_0x575a0b),this[_0x3f78('0x138')](_0x575a0b,_0x1c16bb,_0x328ec8||null,_0x1b0916),_0x575a0b[_0x3f78('0xb')]=_0x3efd7d['createdAt'],_0x575a0b['_isDataLoaded']=!0x0,_0x452c52&&_0x452c52[_0x3f78('0x93')]){const _0x567cfd=_0x452c52[_0x3f78('0x93')],_0x31020b=this[_0x3f78('0x31')](_0x567cfd[_0x3f78('0xd7')]);_0x575a0b[_0x3f78('0xb1')]=_0x567cfd[_0x3f78('0xb')],_0x575a0b['author']=_0x31020b,_0x575a0b[_0x3f78('0x3')]=!0x0;}else _0x575a0b[_0x3f78('0xb1')]=_0x3efd7d[_0x3f78('0xb')];switch(_0x3efd7d[_0x3f78('0x2')]&&(_0x575a0b[_0x3f78('0x2')]=_0x3efd7d['data']),_0x3efd7d[_0x3f78('0xb3')]&&(_0x575a0b[_0x3f78('0xb3')]=_0x3efd7d[_0x3f78('0xb3')]),this[_0x3f78('0x102')]&&this[_0x3f78('0x102')][_0x3f78('0x26')]||(_0x575a0b[_0x3f78('0x41')]=!0x0),this['_suggestionState'][_0x3f78('0x60')](_0x575a0b)){case _0x3f78('0x121'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x5f'));break;case _0x3f78('0x2b'):_0x575a0b['isInContent']?(this[_0x3f78('0xf5')](new Set([_0x575a0b])),this['_joinWithAdjacentSuggestions'](new Set([_0x575a0b])),this['_suggestionState'][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x575a0b)):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x575a0b,_0x3f78('0x36'));}return _0x575a0b;}[_0x3f78('0x125')](_0x53b904){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x78636a of _0x53b904[_0x3f78('0x124')]())_0x78636a[_0x3f78('0x42')]();});});}[_0x3f78('0x66')](_0x54950f){this[_0x3f78('0x6f')](()=>{this['editor'][_0x3f78('0xc0')]['change'](()=>{for(const _0x5dc9a5 of _0x54950f[_0x3f78('0x124')]())_0x5dc9a5[_0x3f78('0xc6')]();});});}[_0x3f78('0x10f')](_0x3e086a,_0x5643f3){const _0x274fb6=this['editor'][_0x3f78('0x13b')][_0x3f78('0x60')](_0x3e086a);if(!_0x274fb6)throw new _0x400b29('track-changes-command-not-found',this,{'commandName':_0x3e086a});this[_0x3f78('0xe6')][_0x3f78('0xcb')](_0x274fb6),_0x5643f3&&_0x274fb6['on'](_0x3f78('0xc2'),(_0x296d78,_0x49dcdd)=>{this[_0x3f78('0xf4')]['value']&&(this[_0x3f78('0xbf')]||_0x49dcdd[_0x3f78('0x37')]>0x0&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1]&&_0x49dcdd[_0x49dcdd[_0x3f78('0x37')]-0x1][_0x3f78('0x6f')]||(_0x5643f3((..._0x1930d5)=>_0x274fb6[_0x3f78('0xc2')](..._0x1930d5,{'forceDefaultExecution':!0x0}),..._0x49dcdd),_0x296d78[_0x3f78('0x9d')]()));},{'priority':_0x3f78('0xee')});}[_0x3f78('0x6f')](_0x1e9d89){let _0x111958,_0x2dd5d1;const _0x299e50=this[_0x3f78('0xbf')];this[_0x3f78('0xbf')]=!0x0;try{_0x111958=_0x1e9d89();}catch(_0x281ddf){_0x2dd5d1=_0x281ddf;}return _0x299e50||(this[_0x3f78('0xbf')]=!0x1),_0x2dd5d1&&_0x400b29['rethrowUnexpectedError'](_0x2dd5d1,this),_0x111958;}[_0x3f78('0x75')](_0x335542,_0x59d657=null,_0x581854={}){if(_0x335542[_0x3f78('0x5e')])return null;const _0x4d321b=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];for(const {suggestion:_0x422822,meta:_0x31fcee}of this['_findSuggestions'](_0x335542,_0x3f78('0x4b')))if(_0x31fcee[_0x3f78('0x8')]){if(!_0x31fcee['isNextTo']){if(_0x31fcee[_0x3f78('0xa')]){if(!this[_0x3f78('0x28')]||!Ut(_0x422822,_0x581854))continue;return _0x422822;}if(Ut(_0x422822,_0x581854))return _0x422822;this[_0x3f78('0xf8')](_0x422822,_0x335542[_0x3f78('0x118')],_0x335542['end']);break;}if(_0x59d657==_0x422822[_0x3f78('0x8b')]&&Ut(_0x422822,_0x581854)){const _0x3abe75=_0x422822[_0x3f78('0xaa')]();return _0x3abe75[_0x3f78('0x118')]['isEqual'](_0x335542[_0x3f78('0xd9')])?this[_0x3f78('0xbb')](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x335542[_0x3f78('0x118')],_0x3abe75['end'])):this['_setSuggestionRange'](_0x422822,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x3abe75['start'],_0x335542[_0x3f78('0xd9')])),_0x422822;}}const _0x1a80fe=_0x418993(),_0x5da009=_0x4d321b['id'],_0x2eb922=_0x59d657?_0x3f78('0x100')+_0x59d657:_0x3f78('0x4b'),_0x2d5a67=this[_0x3f78('0x21')]({'id':_0x1a80fe,'type':_0x2eb922,'createdAt':new Date(),'authorId':_0x5da009,'attributes':_0x581854});return this['_addSuggestionMarker'](_0x2eb922,_0x1a80fe,_0x5da009,_0x335542),_0x2d5a67;}[_0x3f78('0xfe')](_0x5d3302,_0x216a27=_0x3f78('0xe0'),_0x4c703c={}){const _0xe0905b=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x23b355=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0x4b'),_0x216a27,_0x3f78('0x126'));for(const _0x49a831 of this[_0x3f78('0x2c')]())if(_0x49a831['author']['id']==_0xe0905b['id']&&_0x3f78('0x4b')==_0x49a831[_0x3f78('0x62')]&&_0x49a831[_0x3f78('0x8b')]==_0x216a27&&Ut(_0x49a831,_0x4c703c)&&(_0x23b355(_0x49a831[_0x3f78('0xcf')](),_0x5d3302)||_0x23b355(_0x5d3302,_0x49a831[_0x3f78('0xcf')]()))){for(const _0x549fc2 of _0x5d3302)_0x49a831[_0x3f78('0xc8')](_0x549fc2);return _0x49a831;}for(const {suggestion:_0x460fe6,meta:_0x2a6f51}of this['_findSuggestions'](_0x5d3302,_0x3f78('0x4b'))){if(!_0x2a6f51[_0x3f78('0x8')])continue;if(!this[_0x3f78('0x28')]&&_0x2a6f51[_0x3f78('0xa')])continue;if(!Ut(_0x460fe6,_0x4c703c))continue;let _0x3aa11f=!0x0;for(const _0x2ca876 of _0x460fe6[_0x3f78('0xcf')]())for(const _0x5438ca of _0x5d3302)if(!_0x2ca876['containsRange'](_0x5438ca)){_0x3aa11f=!0x1;break;}if(_0x3aa11f)return _0x460fe6;}const _0xcc833a=_0x418993(),_0x412348=_0xe0905b['id'],_0x2a3b53=_0x3f78('0x100')+_0x216a27,_0x2d4d37=this[_0x3f78('0x21')]({'id':_0xcc833a,'type':_0x2a3b53,'createdAt':new Date(),'authorId':_0x412348,'attributes':_0x4c703c});for(const _0x100807 of _0x5d3302)this[_0x3f78('0xc5')](_0x2a3b53,_0xcc833a,_0x412348,_0x100807,_0x49aee1['getMultiRangeId']());return _0x2d4d37;}[_0x3f78('0x8a')](_0x4c3146,_0x363bd1,_0x4dd6c8=null,_0x2508fc={}){if(_0x4dd6c8=_0x4dd6c8||$t(_0x363bd1),_0x4c3146[_0x3f78('0x5e')])return null;if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x4f8977=this[_0x3f78('0xdc')]['getSuggestionCallback']('formatInline',_0x4dd6c8,'accept');return this[_0x3f78('0x6f')](()=>_0x4f8977([_0x4c3146],_0x363bd1,_0x2508fc)),null;}const _0x5713b4=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x43f808=[];if(_0x3f78('0x23')!==this[_0x3f78('0xaf')])for(const {suggestion:_0x12b3a3,meta:_0x509877}of this[_0x3f78('0x12e')](_0x4c3146,_0x3f78('0x4b')))_0x509877[_0x3f78('0x8')]&&!_0x509877[_0x3f78('0xbd')]&&_0x43f808['push'](..._0x12b3a3[_0x3f78('0xcf')]());const _0x1a0327=function(_0x429c7c,_0x10cde5){const _0xb03ec3=[];for(const _0x231a6d of _0x10cde5){const _0xc9c6d5=_0x429c7c[_0x3f78('0x83')](_0x231a6d);_0xc9c6d5&&_0xb03ec3[_0x3f78('0x22')](_0xc9c6d5);}return _0xb03ec3;}(_0x4c3146,_0x43f808),_0x1ed82f=function(_0x4353aa,_0x233fb5){const _0x42ce89=[_0x4353aa];for(const _0x2d8443 of _0x233fb5){let _0x49a476=0x0;for(;_0x49a476<_0x42ce89[_0x3f78('0x37')];){const _0x42e6d5=_0x42ce89[_0x49a476][_0x3f78('0xd5')](_0x2d8443);_0x42ce89[_0x3f78('0xf0')](_0x49a476,0x1,..._0x42e6d5),_0x49a476+=_0x42e6d5[_0x3f78('0x37')];}}return _0x42ce89;}(_0x4c3146,_0x43f808);_0x1a0327['length']&&this['_model'][_0x3f78('0x131')](()=>{for(const _0x13773f of _0x1a0327){const _0x3b6a6d=this['_suggestionFactory'][_0x3f78('0x8c')](_0x3f78('0xef'),_0x4dd6c8,'accept');this[_0x3f78('0x6f')](()=>_0x3b6a6d([_0x13773f],_0x363bd1,_0x2508fc));}});for(const _0x2c1f37 of _0x1ed82f){let _0x4cff7c=null,_0x4a09f2=_0x2c1f37[_0x3f78('0x118')],_0x46f7a2=_0x2c1f37[_0x3f78('0xd9')];for(const {suggestion:_0x2788a9,meta:_0x21c2c7}of this[_0x3f78('0x12e')](_0x2c1f37,_0x3f78('0xef'))){if(!_0x21c2c7[_0x3f78('0x8')])continue;if(_0x2788a9['subType']!=_0x4dd6c8)continue;if(!Ut(_0x2788a9,_0x2508fc))continue;const _0x3c8086=_0x2788a9['getFirstRange']();if(_0x3c8086[_0x3f78('0x3f')](_0x2c1f37,!0x0))return null;_0x4a09f2=_0x4a09f2['isBefore'](_0x3c8086[_0x3f78('0x118')])?_0x4a09f2:_0x3c8086[_0x3f78('0x118')],_0x46f7a2=_0x46f7a2[_0x3f78('0xdf')](_0x3c8086[_0x3f78('0xd9')])?_0x46f7a2:_0x3c8086[_0x3f78('0xd9')],_0x4cff7c?_0x3c8086[_0x3f78('0x118')][_0x3f78('0xfc')](_0x4cff7c['getFirstRange']()[_0x3f78('0x118')])?(_0x4cff7c[_0x3f78('0x96')](),_0x4cff7c=_0x2788a9):_0x2788a9[_0x3f78('0x96')]():_0x4cff7c=_0x2788a9;}const _0x34b8b2=this[_0x3f78('0xe3')]['createRange'](_0x4a09f2,_0x46f7a2);if(_0x4cff7c)this[_0x3f78('0xbb')](_0x4cff7c,_0x34b8b2);else{const _0x412a8c=_0x418993(),_0x3363b8=_0x5713b4['id'];this['_setSuggestionData']({'id':_0x412a8c,'type':'formatInline:'+_0x4dd6c8,'data':_0x363bd1,'createdAt':new Date(),'authorId':_0x3363b8,'attributes':_0x2508fc}),this[_0x3f78('0xc5')]('formatInline:'+_0x4dd6c8,_0x412a8c,_0x3363b8,_0x34b8b2);}}return null;}['markBlockFormat'](_0x3c4e60,_0x4ce830,_0x36d718=[],_0x109238=null,_0x143b1f={}){_0x4ce830[_0x3f78('0xa4')]||(_0x4ce830[_0x3f78('0xa4')]=_0x4ce830['commandName']),_0x4ce830[_0x3f78('0xd1')]=_0x3c4e60['is'](_0x3f78('0x130')),_0x109238=_0x109238||$t(_0x4ce830);const _0x29f1bb=_0x36d718[_0x3f78('0xe2')](_0x1d7e58=>Rt(_0x1d7e58,this[_0x3f78('0xe3')])),_0x35a3bf=_0x3c4e60['is']('range')?_0x3c4e60:Rt(_0x3c4e60,this['_model']);if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x568bb0=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this['forceDefaultExecution'](()=>_0x568bb0([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}_0x29f1bb['push'](_0x35a3bf);let _0x54ef25=!0x0;for(const _0x59771d of _0x29f1bb)if(!this[_0x3f78('0xd0')](_0x59771d)){_0x54ef25=!0x1;break;}if(_0x54ef25&&_0x3f78('0x23')!==this['_trackFormatChanges']){const _0x9d6da3=this['_suggestionFactory']['getSuggestionCallback'](_0x3f78('0xdd'),_0x109238,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x9d6da3([_0x35a3bf],_0x4ce830,_0x143b1f)),null;}let _0x4c67d4=null,_0x130bba=_0x35a3bf[_0x3f78('0x118')],_0x46462c=_0x35a3bf[_0x3f78('0xd9')];for(const {suggestion:_0x3545cd,meta:_0x18c58f}of this[_0x3f78('0x12e')](_0x35a3bf,_0x3f78('0xdd'))){if(!_0x18c58f[_0x3f78('0x8')])continue;if(_0x18c58f[_0x3f78('0x5d')]||_0x18c58f[_0x3f78('0xa')]||_0x18c58f['isInsideObject'])continue;if(_0x3545cd[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x4ce830[_0x3f78('0xa4')])continue;if(!Ut(_0x3545cd,_0x143b1f))continue;const _0x27be74=_0x3545cd['getFirstRange']();if(_0x3545cd['subType']==_0x109238){if(_0x27be74['containsRange'](_0x35a3bf,!0x0))return null;_0x130bba=_0x130bba[_0x3f78('0xfc')](_0x27be74[_0x3f78('0x118')])?_0x130bba:_0x27be74[_0x3f78('0x118')],_0x46462c=_0x46462c[_0x3f78('0xdf')](_0x27be74['end'])?_0x46462c:_0x27be74[_0x3f78('0xd9')],_0x4c67d4?_0x27be74['start'][_0x3f78('0xfc')](_0x4c67d4[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x4c67d4[_0x3f78('0x96')](),_0x4c67d4=_0x3545cd):_0x3545cd[_0x3f78('0x96')]():_0x4c67d4=_0x3545cd;}else{const _0x11bf5b=_0x35a3bf[_0x3f78('0x83')](_0x27be74);this[_0x3f78('0x32')](_0x3545cd,_0x11bf5b);}}const _0x510f71=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x5f5053=_0x418993(),_0x5d2651=_0x510f71['id'];if(_0x4c67d4)return this[_0x3f78('0xbb')](_0x4c67d4,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0x4c67d4;{const _0xf86234=this[_0x3f78('0x21')]({'id':_0x5f5053,'type':'formatBlock:'+_0x109238,'data':_0x4ce830,'createdAt':new Date(),'authorId':_0x5d2651,'attributes':_0x143b1f});return this[_0x3f78('0xc5')]('formatBlock:'+_0x109238,_0x5f5053,_0x5d2651,this['_model'][_0x3f78('0x107')](_0x130bba,_0x46462c)),_0xf86234;}}['markMultiRangeBlockFormat'](_0x33af54,_0x25940c,_0x9df773=[],_0x1f5f00=null,_0x30c9c5={}){_0x25940c['formatGroupId']||(_0x25940c[_0x3f78('0xa4')]=_0x25940c[_0x3f78('0x12c')]);const _0x17ea3f=_0x33af54[0x0];_0x25940c[_0x3f78('0xd1')]=_0x17ea3f['is'](_0x3f78('0x130')),_0x1f5f00=_0x1f5f00||$t(_0x25940c);const _0x18fced=_0x9df773[_0x3f78('0xe2')](_0x6b313d=>Rt(_0x6b313d,this[_0x3f78('0xe3')])),_0x17a797=_0x17ea3f['is'](_0x3f78('0x130'))?_0x33af54:_0x33af54[_0x3f78('0xe2')](_0x184f70=>Rt(_0x184f70,this['_model']));if(_0x3f78('0x6')===this[_0x3f78('0xaf')]){const _0x319f28=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x319f28(_0x17a797,_0x25940c,_0x30c9c5)),null;}_0x18fced[_0x3f78('0x22')](..._0x17a797);let _0x8903f7=!0x0;for(const _0x38f797 of _0x18fced)if(!this[_0x3f78('0xd0')](_0x38f797)){_0x8903f7=!0x1;break;}if(_0x8903f7&&_0x3f78('0x23')!==this[_0x3f78('0xaf')]){const _0x10c716=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x10c716(_0x17a797,_0x25940c,_0x30c9c5)),null;}const _0x2f3a85=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'];for(const _0x3f8a47 of this[_0x3f78('0x2c')]()){if(_0x3f8a47['author']['id']!=_0x2f3a85['id'])continue;if(_0x3f78('0xdd')!=_0x3f8a47[_0x3f78('0x62')]||_0x3f8a47[_0x3f78('0x2')][_0x3f78('0xa4')]!=_0x25940c[_0x3f78('0xa4')])continue;if(!Ut(_0x3f8a47,_0x30c9c5))continue;const _0x2e4553=_0x3f8a47[_0x3f78('0x8b')]==_0x1f5f00;for(let _0x9aad5a=0x0;_0x9aad5a<_0x17a797[_0x3f78('0x37')];_0x9aad5a++){const _0x3372dc=_0x17a797[_0x9aad5a];for(const _0x136bb8 of _0x3f8a47[_0x3f78('0x74')]()){const _0x146cb1=_0x136bb8[_0x3f78('0x108')]();if(_0x3372dc[_0x3f78('0x4e')](_0x146cb1)){_0x2e4553?(_0x17a797[_0x3f78('0xf0')](_0x9aad5a,0x1),_0x9aad5a--):_0x3f8a47['removeMarker'](_0x136bb8[_0x3f78('0xac')]);break;}}}}if(0x0==_0x17a797[_0x3f78('0x37')])return null;const _0x2913ff=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xdd'),_0x1f5f00,_0x3f78('0x126'));for(const _0xf25cac of this['getSuggestions']())if(_0xf25cac['author']['id']==_0x2f3a85['id']&&'formatBlock'==_0xf25cac['type']&&_0xf25cac[_0x3f78('0x2')][_0x3f78('0xa4')]==_0x25940c[_0x3f78('0xa4')]&&_0xf25cac[_0x3f78('0x8b')]==_0x1f5f00&&Ut(_0xf25cac,_0x30c9c5)&&(_0x2913ff(_0xf25cac[_0x3f78('0xcf')](),_0x17a797)||_0x2913ff(_0x17a797,_0xf25cac['getRanges']()))){for(const _0x101db0 of _0x17a797)_0xf25cac['addRange'](_0x101db0);return _0xf25cac;}const _0x62f1ee=_0x418993(),_0x4ebe2e=_0x2f3a85['id'],_0x3973b3='formatBlock:'+_0x1f5f00,_0x40e13b=this[_0x3f78('0x21')]({'id':_0x62f1ee,'type':_0x3973b3,'data':_0x25940c,'createdAt':new Date(),'authorId':_0x4ebe2e,'attributes':_0x30c9c5});for(const _0x1d0671 of _0x17a797)this['_addSuggestionMarker'](_0x3973b3,_0x62f1ee,_0x4ebe2e,_0x1d0671,_0x49aee1[_0x3f78('0xf3')]());return _0x40e13b;}['markDeletion'](_0x57c9db,_0x11b815=null,_0x42a425={}){if(_0x57c9db['isCollapsed'])return null;const _0x496d37=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'],_0x329d3e=new _0x4b8f82(_0x57c9db[_0x3f78('0x118')],_0x57c9db[_0x3f78('0xd9')]);for(const {suggestion:_0x428acf,meta:_0x447275}of this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0x4b')))if(_0x447275[_0x3f78('0x8')]&&!_0x447275[_0x3f78('0x5d')]){if(_0x428acf[_0x3f78('0xf1')]){const _0x20b47a=_0x428acf[_0x3f78('0xcf')]()[_0x3f78('0x9c')](_0x35487e=>_0x3f78('0xa7')!=_0x35487e[_0x3f78('0x71')]['rootName']);_0x20b47a[_0x3f78('0x13a')](_0x8684b2=>_0x329d3e[_0x3f78('0x3f')](_0x8684b2,!0x0))&&_0x428acf['discard']();if(_0x20b47a[_0x3f78('0x79')](_0x5f1efa=>_0x5f1efa[_0x3f78('0x3f')](_0x329d3e,!0x0))){const _0x102c9b=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x11b815,'accept');return this['forceDefaultExecution'](()=>_0x102c9b([_0x329d3e],null,_0x42a425)),null;}}else{const _0x216869=_0x329d3e[_0x3f78('0x83')](_0x428acf[_0x3f78('0xaa')]());null!==_0x216869&&_0x428acf[_0x3f78('0x4f')]([_0x216869],null,_0x42a425);}}if(_0x329d3e['detach'](),_0x329d3e[_0x3f78('0x5e')]||_0x3f78('0xa7')==_0x329d3e['root']['rootName'])return null;let _0x2cdd3b=null,_0xfec3d8=_0x329d3e[_0x3f78('0x118')],_0x23576e=_0x329d3e[_0x3f78('0xd9')];const _0x296106=this[_0x3f78('0x12e')](_0x329d3e,_0x3f78('0xcd'));for(const {suggestion:_0x4792a5,meta:_0x3cb365}of _0x296106){const _0x28cf7d=this['_model'][_0x3f78('0x107')](_0xfec3d8,_0x23576e);if(_0x3cb365[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x3cb365[_0x3f78('0xa')]&&!_0x3cb365[_0x3f78('0xbd')])){if(_0x4792a5['isMultiRange']){if(!Ut(_0x4792a5,_0x42a425))continue;let _0x39611c=!0x0;for(const _0xc3a7e1 of _0x4792a5[_0x3f78('0xcf')]()){if(_0xc3a7e1[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;_0x28cf7d[_0x3f78('0x3f')](_0xc3a7e1)||(_0x39611c=!0x1);}_0x39611c&&_0x4792a5[_0x3f78('0xc6')]();}else{const _0x2d05ff=_0x4792a5[_0x3f78('0xaa')]();if(_0x2d05ff[_0x3f78('0x3f')](_0x28cf7d,!0x0))return _0x4792a5;if(!Ut(_0x4792a5,_0x42a425)){_0x28cf7d[_0x3f78('0x3f')](_0x2d05ff)?_0x4792a5[_0x3f78('0x96')]():_0x2d05ff['containsPosition'](_0xfec3d8)?_0xfec3d8=_0x2d05ff[_0x3f78('0xd9')]:_0x2d05ff[_0x3f78('0x103')](_0x23576e)&&(_0x23576e=_0x2d05ff[_0x3f78('0x118')]);continue;}_0xfec3d8=_0xfec3d8[_0x3f78('0xfc')](_0x2d05ff['start'])?_0xfec3d8:_0x2d05ff[_0x3f78('0x118')],_0x23576e=_0x23576e[_0x3f78('0xdf')](_0x2d05ff[_0x3f78('0xd9')])?_0x23576e:_0x2d05ff['end'],_0x42a425=Object[_0x3f78('0x6b')]({},_0x4792a5[_0x3f78('0xb3')]),_0x2cdd3b?_0x2d05ff[_0x3f78('0x118')][_0x3f78('0xfc')](_0x2cdd3b[_0x3f78('0xaa')]()[_0x3f78('0x118')])?(_0x2cdd3b[_0x3f78('0x96')](),_0x2cdd3b=_0x4792a5):_0x4792a5[_0x3f78('0x96')]():_0x2cdd3b=_0x4792a5;}}}if(_0x2cdd3b)return this[_0x3f78('0xbb')](_0x2cdd3b,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e)),_0x2cdd3b;{const _0x8be7dd=_0x418993(),_0x4a8782=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xfec3d8,_0x23576e),_0x24d8dc=_0x496d37['id'],_0x1f72cc=_0x11b815?_0x3f78('0x13')+_0x11b815:_0x3f78('0xcd'),_0x272abc=this[_0x3f78('0x21')]({'id':_0x8be7dd,'type':_0x1f72cc,'createdAt':new Date(),'authorId':_0x24d8dc,'attributes':_0x42a425});return this[_0x3f78('0xc5')](_0x1f72cc,_0x8be7dd,_0x24d8dc,_0x4a8782),_0x272abc;}}[_0x3f78('0x73')](_0xd7244,_0x1ebd98=_0x3f78('0xe0'),_0x36ca5d={}){const _0x4674f2=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users')['me'],_0x205ea2=_0xd7244[_0x3f78('0xe2')](_0x5df00c=>new _0x4b8f82(_0x5df00c[_0x3f78('0x118')],_0x5df00c[_0x3f78('0xd9')])),_0x5bd86f=new Set();for(const {suggestion:_0x2b7201,meta:_0x28ceec}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0x4b')))_0x28ceec[_0x3f78('0x8')]&&!_0x28ceec['isNextTo']&&_0x5bd86f[_0x3f78('0xcb')](_0x2b7201);for(const _0x16dbf2 of _0x5bd86f)if(_0x16dbf2[_0x3f78('0xf1')]){const _0x78aeb=_0x16dbf2[_0x3f78('0xcf')]();(!_0x16dbf2[_0x3f78('0xb3')]||!_0x16dbf2['attributes']['skipNestingCheck'])&&(_0x78aeb[_0x3f78('0x13a')](_0x46ce90=>_0x205ea2['some'](_0x26ea9a=>_0x26ea9a['containsRange'](_0x46ce90,!0x0)))&&_0x16dbf2[_0x3f78('0xc6')]());if(_0x205ea2[_0x3f78('0x13a')](_0x4fa6fe=>_0x78aeb[_0x3f78('0x79')](_0x527ef1=>_0x527ef1[_0x3f78('0x3f')](_0x4fa6fe,!0x0)))){const _0x139c48=this[_0x3f78('0xdc')][_0x3f78('0x8c')]('deletion',_0x1ebd98,'accept');return this['forceDefaultExecution'](()=>_0x139c48(_0xd7244,null,_0x36ca5d)),null;}}else{const _0x2771f6=_0x16dbf2[_0x3f78('0xaa')]();_0x205ea2[_0x3f78('0x79')](_0x368989=>_0x368989['containsRange'](_0x2771f6,!0x0))&&_0x16dbf2[_0x3f78('0xc6')]();if(_0x205ea2['every'](_0x20a42f=>_0x2771f6[_0x3f78('0x3f')](_0x20a42f,!0x0))){const _0x8db062=this['_suggestionFactory'][_0x3f78('0x8c')]('deletion',_0x1ebd98,_0x3f78('0x42'));return this[_0x3f78('0x6f')](()=>_0x8db062(_0x205ea2,null,_0x36ca5d)),null;}}const _0x2abf22=this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x3f78('0xcd'),_0x1ebd98,'join');let _0x2051a3=null;for(const _0x56c534 of this[_0x3f78('0x2c')]())if(_0x56c534[_0x3f78('0x6e')]['id']==_0x4674f2['id']&&_0x56c534[_0x3f78('0x94')]&&_0x3f78('0xcd')==_0x56c534[_0x3f78('0x62')]&&_0x56c534[_0x3f78('0x8b')]==_0x1ebd98&&Ut(_0x56c534,_0x36ca5d)&&(_0x2abf22(_0x56c534['getRanges'](),_0x205ea2)||_0x2abf22(_0x205ea2,_0x56c534[_0x3f78('0xcf')]()))){if(_0x2051a3){if(_0x56c534[_0x3f78('0x43')]&&_0x56c534[_0x3f78('0x43')][_0x3f78('0x37')])continue;for(const _0x313404 of _0x56c534[_0x3f78('0xcf')]())_0x2051a3[_0x3f78('0x1e')](_0x313404)||_0x2051a3[_0x3f78('0xc8')](_0x313404);_0x56c534[_0x3f78('0x96')]();}else{_0x2051a3=_0x56c534;for(const _0x50c67c of _0x205ea2)_0x56c534['isIntersectingWithRange'](_0x50c67c)||_0x56c534['addRange'](_0x50c67c);}}if(_0x2051a3)return _0x2051a3;_0x5bd86f['clear']();for(const {suggestion:_0x3ae4c4,meta:_0x34257a}of this[_0x3f78('0x12e')](_0x205ea2,_0x3f78('0xcd')))_0x34257a[_0x3f78('0x8')]&&(this[_0x3f78('0x28')]||!_0x34257a['containsRangeInObject']&&!_0x34257a[_0x3f78('0xbd')])&&Ut(_0x3ae4c4,_0x36ca5d)&&_0x5bd86f[_0x3f78('0xcb')](_0x3ae4c4);for(const _0x4ae299 of _0x5bd86f){const _0x108f8e=_0x4ae299[_0x3f78('0xcf')]();if(!_0x36ca5d||!_0x36ca5d[_0x3f78('0x11b')]){if(_0x205ea2[_0x3f78('0x13a')](_0x5231f9=>_0x108f8e['some'](_0x5e3ac4=>_0x5e3ac4[_0x3f78('0x3f')](_0x5231f9,!0x0))))return _0x4ae299;}(!_0x4ae299['attributes']||!_0x4ae299['attributes'][_0x3f78('0x11b')])&&(_0x108f8e[_0x3f78('0x13a')](_0xb05d56=>_0x205ea2[_0x3f78('0x79')](_0x516ca7=>_0x516ca7[_0x3f78('0x3f')](_0xb05d56,!0x0)))&&_0x4ae299[_0x3f78('0xc6')]());}const _0x43bfbe=_0x418993(),_0x3c1503=_0x4674f2['id'],_0x4501a6=_0x3f78('0x13')+_0x1ebd98,_0x5d44b0=this[_0x3f78('0x21')]({'id':_0x43bfbe,'type':_0x4501a6,'createdAt':new Date(),'authorId':_0x3c1503,'attributes':_0x36ca5d});for(const _0x253b6b of _0x205ea2)_0x253b6b['detach'](),_0x253b6b['isCollapsed']||'$graveyard'==_0x253b6b[_0x3f78('0x71')]['rootName']||this['_addSuggestionMarker'](_0x4501a6,_0x43bfbe,_0x3c1503,_0x253b6b,_0x49aee1[_0x3f78('0xf3')]());return _0x5d44b0;}[_0x3f78('0xbb')](_0x77f6f9,_0x2e0813){const _0x29df6d=_0x77f6f9['getFirstMarker']();this[_0x3f78('0xe3')]['change'](_0x5d1821=>{_0x5d1821[_0x3f78('0xe4')](_0x29df6d,{'range':_0x2e0813});});}['_addThreadToSuggestion'](_0x4d872e){const _0xe9c359=_0x4d872e['id'],_0x373d9d=this[_0x3f78('0x98')][_0x3f78('0x136')][_0x3f78('0x60')](_0x3f78('0x95'));this[_0x3f78('0x18')][_0x3f78('0x10a')](_0xe9c359)||this['_commentsRepository']['addCommentThread']({'channelId':_0x373d9d,'threadId':_0xe9c359,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15fa5a=this[_0x3f78('0x18')][_0x3f78('0x2a')](_0xe9c359);_0x15fa5a[_0x3f78('0xfb')]('isRemovable'),_0x15fa5a[_0x3f78('0x7e')]=!0x1,_0x4d872e[_0x3f78('0x43')]=_0x15fa5a;}[_0x3f78('0x138')](_0x39d072,_0x2a7846,_0x5160ef,_0xf159cf){if(_0x39d072[_0x3f78('0x62')]!=_0x2a7846||_0x39d072[_0x3f78('0x8b')]!=_0x5160ef||_0x39d072[_0x3f78('0xc3')]['id']!=_0xf159cf)throw this['editor'][_0x3f78('0x111')](_0x3f78('0xc1')),new _0x400b29(_0x3f78('0xc1'),this);}[_0x3f78('0x32')](_0x42e82c,_0x5270ee){const _0x514634=_0x42e82c[_0x3f78('0xaa')]();if(_0x5270ee[_0x3f78('0x4e')](_0x514634))_0x42e82c[_0x3f78('0x96')]();else{if(_0x514634['containsRange'](_0x5270ee)){const _0x3be3e3=this['_model'][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x3be3e3));const _0x30250b=_0x418993(),_0x2485c5=_0x42e82c[_0x3f78('0xc3')]['id'],_0x3b8f56=_0x42e82c[_0x3f78('0x62')]+':'+_0x42e82c[_0x3f78('0x8b')];this['_setSuggestionData']({'id':_0x30250b,'type':_0x3b8f56,'createdAt':new Date(),'authorId':_0x2485c5,'data':_0x42e82c[_0x3f78('0x2')],'attributes':_0x42e82c[_0x3f78('0xb3')]});const _0x3ede23=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after'),_0x1cb952=this['_model'][_0x3f78('0x107')](_0x3ede23,_0x514634[_0x3f78('0xd9')]);this[_0x3f78('0xc5')](_0x3b8f56,_0x30250b,_0x2485c5,_0x1cb952);}else{if(_0x514634[_0x3f78('0x103')](_0x5270ee[_0x3f78('0x118')])){const _0x461ce1=this[_0x3f78('0xe3')][_0x3f78('0x5')](_0x5270ee[_0x3f78('0x118')][_0x3f78('0x123')],_0x3f78('0xd9'));this[_0x3f78('0xbb')](_0x42e82c,this[_0x3f78('0xe3')]['createRange'](_0x514634['start'],_0x461ce1));}else{const _0x1be8e3=this[_0x3f78('0xe3')]['createPositionAt'](_0x5270ee[_0x3f78('0xd9')][_0x3f78('0xe5')],'after');this[_0x3f78('0xbb')](_0x42e82c,this['_model'][_0x3f78('0x107')](_0x1be8e3,_0x514634[_0x3f78('0xd9')]));}}}}['_rangeIsInLocalUserInsertion'](_0x58f11b){for(const {suggestion:_0x26b983,meta:_0x51f48a}of this[_0x3f78('0x12e')](_0x58f11b,_0x3f78('0x4b'))){if(!_0x51f48a['isOwn'])continue;const _0x306839=_0x26b983[_0x3f78('0xcf')]();for(const _0x1953bf of _0x306839)if(!_0x58f11b[_0x3f78('0xd5')](_0x1953bf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x44c33d){const _0x57915c=this[_0x3f78('0x98')][_0x3f78('0x34')][_0x3f78('0x60')](_0x3f78('0x116'))[_0x3f78('0xe8')](_0x44c33d);if(!_0x57915c)throw new _0x400b29(_0x3f78('0x44'),this);return _0x57915c;}[_0x3f78('0x31')](_0x4f5e3d){const _0x192c08=this['editor'][_0x3f78('0x34')][_0x3f78('0x60')]('Users'),_0x10acda=_0x3abb0f(_0x3f78('0xa1')+_0x4f5e3d),_0x16b4b1=_0x192c08[_0x3f78('0xe8')](_0x10acda);return _0x16b4b1||_0x192c08[_0x3f78('0x91')]({'id':_0x10acda,'name':_0x4f5e3d});}[_0x3f78('0x10c')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x5eb878,_0x2d5b3f){const _0x54e67b=this[_0x3f78('0x64')](_0x5eb878),_0x5dd636=this[_0x3f78('0xdc')][_0x3f78('0x8f')](_0x4ab6a7,_0x2a4889,_0x1f1801,_0x54e67b,_0x2d5b3f,_0x46dcc8=>this[_0x3f78('0x29')](_0x1f1801,{'attributes':_0x46dcc8}));return this['listenTo'](_0x5dd636,'accept',()=>{this[_0x3f78('0x29')](_0x1f1801,{'state':_0x3f78('0x17')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x80')](_0x5dd636,_0x3f78('0xc6'),()=>{this['_updateSuggestionData'](_0x1f1801,{'state':_0x3f78('0xff')});},{'priority':_0x3f78('0xee')}),this[_0x3f78('0x120')][_0x3f78('0x3e')](_0x1f1801,_0x5dd636),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5dd636,'notReady'),_0x5dd636;}[_0x3f78('0x128')](_0x5ad0f1){const _0x410dc9=_0x5ad0f1[_0x3f78('0xea')](':');return{'group':_0x410dc9[0x0],'type':_0x410dc9[0x1],'subType':_0x410dc9[_0x3f78('0x37')]>=0x5?_0x410dc9[0x2]:null,'id':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x2]:_0x410dc9[0x3],'authorId':_0x410dc9[_0x3f78('0x37')]<0x5?_0x410dc9[0x3]:_0x410dc9[0x4],'markerCount':0x6==_0x410dc9[_0x3f78('0x37')]?_0x410dc9[0x5]:null};}[_0x3f78('0xf8')](_0x54b35f,_0x48e259,_0xbdcea7){const _0x31ccb8=_0x54b35f['getFirstRange'](),_0x370b7a=_0x31ccb8['start'],_0x35384f=_0x31ccb8[_0x3f78('0xd9')];this[_0x3f78('0xbb')](_0x54b35f,this[_0x3f78('0xe3')]['createRange'](_0x370b7a,_0x48e259));const _0x1d91a1=_0x418993(),_0x40eb6f=_0x54b35f[_0x3f78('0xc3')]['id'],_0x2b09d8=_0x54b35f[_0x3f78('0x62')]+(_0x54b35f['subType']?':'+_0x54b35f[_0x3f78('0x8b')]:'');this[_0x3f78('0x21')]({'id':_0x1d91a1,'type':_0x2b09d8,'createdAt':new Date(),'authorId':_0x40eb6f,'originalSuggestionId':_0x54b35f['id'],'attributes':_0x54b35f[_0x3f78('0xb3')],'data':_0x54b35f[_0x3f78('0x2')]}),_0x3f78('0xdd')==_0x54b35f[_0x3f78('0x62')]&&(_0xbdcea7=this['_model'][_0x3f78('0x52')](_0xbdcea7['parent'])),this[_0x3f78('0xc5')](_0x2b09d8,_0x1d91a1,_0x40eb6f,this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xbdcea7,_0x35384f));}[_0x3f78('0x12e')](_0x5b6057,_0x25e0e8=null){const _0x306b95=[],_0x1cc226=this[_0x3f78('0x98')]['plugins'][_0x3f78('0x60')](_0x3f78('0x116'))['me'];Array['isArray'](_0x5b6057)||(_0x5b6057=[_0x5b6057]);for(const _0x44c347 of this[_0x3f78('0x2c')]()){if(!_0x44c347['isInContent'])continue;if(_0x25e0e8&&_0x44c347[_0x3f78('0x62')]!=_0x25e0e8)continue;let _0x10680a=!0x1;for(const _0x4a6187 of _0x44c347['getRanges']()){for(const _0x204891 of _0x5b6057){const _0x5a66ff=_0x204891[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4a6187[_0x3f78('0xd9')])||_0x204891[_0x3f78('0xd9')][_0x3f78('0x4e')](_0x4a6187['start']);if(_0x5a66ff||_0x204891[_0x3f78('0x83')](_0x4a6187)){const _0x1b8a1d=_0x204891[_0x3f78('0x3f')](_0x4a6187)&&Bt(this['_model'][_0x3f78('0x7c')],_0x4a6187[_0x3f78('0x118')],_0x204891),_0x424719=_0x4a6187[_0x3f78('0x3f')](_0x204891)&&Bt(this[_0x3f78('0xe3')][_0x3f78('0x7c')],_0x204891[_0x3f78('0x118')],_0x4a6187);_0x306b95[_0x3f78('0x22')]({'suggestion':_0x44c347,'meta':{'isOwn':_0x1cc226==_0x44c347[_0x3f78('0x6e')],'isNextTo':_0x5a66ff,'isInsideObject':_0x1b8a1d,'containsRangeInObject':_0x424719}}),_0x10680a=!0x0;break;}}if(_0x10680a)break;}}return _0x306b95;}['_addSuggestionMarker'](_0x179ed6,_0x3da8a5,_0x3dc42c,_0x55424,_0x213d4b){this[_0x3f78('0xe3')]['change'](_0x4a0da7=>{let _0x367f6c=_0x3f78('0x27')+_0x179ed6+':'+_0x3da8a5+':'+_0x3dc42c;_0x213d4b&&(_0x367f6c=_0x367f6c+':'+_0x213d4b),_0x4a0da7[_0x3f78('0x7d')](_0x367f6c,{'range':_0x55424,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3f78('0x8e')](_0x18a893){const _0xdf386b=_0x18a893['previous'],_0xa6caba=_0x18a893[_0x3f78('0xb0')];_0x18a893[_0x3f78('0x9e')]=null,null!=_0xdf386b&&(_0xdf386b[_0x3f78('0xb0')]=null),_0x18a893['next']=null,null!=_0xa6caba&&(_0xa6caba[_0x3f78('0x9e')]=null),'ready'==this[_0x3f78('0x9b')][_0x3f78('0x60')](_0x18a893)&&(this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x18a893,_0x3f78('0x36')),this['fire'](_0x3f78('0xe1'),_0x18a893,_0xdf386b,_0xa6caba));}[_0x3f78('0x21')](_0x2822f9){const _0x12c42a=_0x2822f9['id'],_0x498d07=this[_0x3f78('0xf')](_0x2822f9);if(this['_adapter']&&this[_0x3f78('0x102')][_0x3f78('0x26')]){const _0xeb7cc9=this['editor']['plugins'][_0x3f78('0x60')](_0x3f78('0x113')),_0x36bd38=_0x498d07['hasComments'],_0x590047=_0x498d07['subType']?_0x498d07['type']+':'+_0x498d07[_0x3f78('0x8b')]:_0x498d07[_0x3f78('0x62')],_0xccff6f=this[_0x3f78('0x98')][_0x3f78('0x88')],_0x435965=_0xeb7cc9[_0x3f78('0xcb')](_0x304cd0(_0xccff6f,'PENDING_ACTION_SUGGESTION')),_0x45fa87={'id':_0x12c42a,'type':_0x590047,'hasComments':_0x36bd38,'data':_0x2822f9['data']||null,'originalSuggestionId':_0x2822f9[_0x3f78('0xb2')]||null,'attributes':_0x498d07[_0x3f78('0xb3')]};this[_0x3f78('0x102')]['addSuggestion'](_0x45fa87)[_0x3f78('0x65')](_0x4006b5=>{_0x498d07['_saved']=!0x0,_0xeb7cc9[_0x3f78('0xcc')](_0x435965),_0x4006b5&&_0x4006b5[_0x3f78('0xb')]&&(this['_suggestions'][_0x3f78('0x60')](_0x12c42a)[_0x3f78('0xb')]=_0x4006b5[_0x3f78('0xb')]);})[_0x3f78('0x11')](_0x598398=>{throw _0x46fa9c('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x3f78('0xc0')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x498d07[_0x3f78('0xc6')]();}),_0x498d07[_0x3f78('0x3a')](),this['_suggestions']['delete'](_0x498d07['id']),this[_0x3f78('0x9b')][_0x3f78('0x35')](_0x498d07),_0x598398;});}return _0x498d07;}[_0x3f78('0x29')](_0xf3ba2e,_0x1d0fe9){const _0x1e57b0=this[_0x3f78('0x98')]['plugins']['get']('PendingActions'),_0x21f104=this['getSuggestion'](_0xf3ba2e);if(this[_0x3f78('0x102')]&&this['_adapter'][_0x3f78('0x3d')]){if(_0x21f104[_0x3f78('0x41')]){const _0x40937f=_0x1e57b0[_0x3f78('0xcb')](_0x304cd0(this['editor'][_0x3f78('0x88')],_0x3f78('0xa2')));this[_0x3f78('0x102')][_0x3f78('0x3d')](_0xf3ba2e,_0x1d0fe9)['then'](()=>{_0x1e57b0[_0x3f78('0xcc')](_0x40937f);});}else _0x21f104['on'](_0x3f78('0x57'),()=>{this['_updateSuggestionData'](_0xf3ba2e,_0x1d0fe9);});}}['_getSuggestionData'](_0x28f1ba){if(!this['_adapter']||!this[_0x3f78('0x102')][_0x3f78('0xd4')])throw new _0x400b29(_0x3f78('0x38'),this);return this[_0x3f78('0x102')][_0x3f78('0xd4')](_0x28f1ba);}[_0x3f78('0xab')](_0x220d07){const {id:_0x289923,type:_0x4c8b32,subType:_0xc2b56a,authorId:_0x4958bb}=this[_0x3f78('0x128')](_0x220d07),_0x5b0a37=this[_0x3f78('0x120')]['get'](_0x289923)||this[_0x3f78('0x10c')](_0x4c8b32,_0xc2b56a,_0x289923,_0x4958bb,{});switch(this['_checkSuggestionCorrectness'](_0x5b0a37,_0x4c8b32,_0xc2b56a,_0x4958bb),this['_suggestionState']['get'](_0x5b0a37)){case _0x3f78('0x121'):this[_0x3f78('0xc7')](_0x289923)[_0x3f78('0x65')](_0x23349a=>{let _0x442cb2=Promise[_0x3f78('0xba')]();_0x23349a[_0x3f78('0x30')]&&(_0x442cb2=this[_0x3f78('0x18')][_0x3f78('0x25')]({'channelId':this['editor'][_0x3f78('0x136')]['get'](_0x3f78('0x95')),'threadId':_0x289923})),_0x442cb2[_0x3f78('0x65')](()=>{this[_0x3f78('0xf')](_0x23349a)[_0x3f78('0x41')]=!0x0;});}),this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x2b'));break;case'removed':this['_updateSuggestionData'](_0x289923,{'state':_0x3f78('0x69')});case _0x3f78('0x5f'):this[_0x3f78('0x9b')][_0x3f78('0x3e')](_0x5b0a37,_0x3f78('0x1d')),this['fire'](_0x3f78('0x49'),_0x5b0a37);break;case _0x3f78('0x1d'):this[_0x3f78('0xce')](_0x3f78('0x8d'),_0x5b0a37);}return _0x5b0a37[_0x3f78('0x70')](_0x220d07),_0x5b0a37;}[_0x3f78('0xf5')](_0x11c698){const _0x4d28a1=Array[_0x3f78('0x6a')](_0x11c698)[_0x3f78('0x9c')](_0x578933=>!_0x578933[_0x3f78('0xf1')]),_0x1d16b9=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0})['filter'](_0x4b1dfd=>!_0x4b1dfd['isMultiRange']),_0x20d5d0=_0x1d16b9['filter'](_0x345553=>!_0x11c698[_0x3f78('0x48')](_0x345553)),_0x1a455e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x5a46b1=>[_0x5a46b1,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x5a46b1['type'],_0x5a46b1['subType'],_0x3f78('0x134'))])),_0x4a423e=new Map(_0x1d16b9[_0x3f78('0xe2')](_0x432264=>[_0x432264,_0x432264[_0x3f78('0xaa')]()])),_0x1c9b48=new Set(),_0x25fd43=new Set();for(let _0x4d7529=0x0;_0x4d7529<_0x4d28a1[_0x3f78('0x37')];_0x4d7529++)_0x21fd4d(_0x4d28a1[_0x4d7529],_0x4d28a1,_0x4d7529+0x1);for(let _0x1b86f1=0x0;_0x1b86f1<_0x4d28a1['length'];_0x1b86f1++)_0x21fd4d(_0x4d28a1[_0x1b86f1],_0x20d5d0,0x0);for(let _0x1b5140=0x0;_0x1b5140<_0x4d28a1[_0x3f78('0x37')];_0x1b5140++){const _0x3a929b=_0x4d28a1[_0x1b5140];!_0x25fd43[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0x9e')]&&(_0x3a929b[_0x3f78('0x9e')]['next']===_0x3a929b&&(_0x3a929b[_0x3f78('0x9e')][_0x3f78('0xb0')]=null),_0x3a929b['previous']=null),!_0x1c9b48[_0x3f78('0x48')](_0x3a929b)&&_0x3a929b[_0x3f78('0xb0')]&&(_0x3a929b['next'][_0x3f78('0x9e')]===_0x3a929b&&(_0x3a929b['next'][_0x3f78('0x9e')]=null),_0x3a929b['next']=null);}function _0x21fd4d(_0x2f98be,_0x2b58aa,_0x2d6c0e){for(let _0x42c234=_0x2d6c0e;_0x42c234<_0x2b58aa[_0x3f78('0x37')];_0x42c234++){const _0x575093=_0x345040(_0x2f98be,_0x2b58aa[_0x42c234]);_0x575093&&(_0x575093[0x0][_0x3f78('0xb0')]=_0x575093[0x1],_0x575093[0x1][_0x3f78('0x9e')]=_0x575093[0x0],_0x1c9b48[_0x3f78('0xcb')](_0x575093[0x0]),_0x25fd43[_0x3f78('0xcb')](_0x575093[0x1]));}}function _0x345040(_0x101541,_0x5f517f){if(_0x101541[_0x3f78('0x6e')]['id']!==_0x5f517f[_0x3f78('0x6e')]['id'])return null;const _0x2a34a3=_0x1a455e[_0x3f78('0x60')](_0x101541)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f));if(!_0x2a34a3)return null;return _0x1a455e[_0x3f78('0x60')](_0x5f517f)(_0x101541,_0x5f517f,_0x4a423e[_0x3f78('0x60')](_0x101541),_0x4a423e[_0x3f78('0x60')](_0x5f517f))?_0x2a34a3[0x1][_0x3f78('0x43')]&&_0x2a34a3[0x1][_0x3f78('0x43')][_0x3f78('0x37')]?null:_0x2a34a3:null;}}[_0x3f78('0x46')](_0x5da3c8){const _0x582bb8=Array[_0x3f78('0x6a')](_0x5da3c8),_0x555ef3=this[_0x3f78('0x2c')]({'skipNotAttached':!0x0}),_0x1a479e=_0x555ef3[_0x3f78('0x9c')](_0x3043c0=>!_0x5da3c8[_0x3f78('0x48')](_0x3043c0)),_0x38c053=new Map(_0x582bb8['map'](_0x25814a=>[_0x25814a,this[_0x3f78('0xdc')][_0x3f78('0x8c')](_0x25814a[_0x3f78('0x62')],_0x25814a[_0x3f78('0x8b')],_0x3f78('0x126'))])),_0x57e407=new Map(_0x555ef3[_0x3f78('0xe2')](_0x742cf0=>[_0x742cf0,_0x742cf0[_0x3f78('0xcf')]()]));for(let _0x15bf0c=0x0;_0x15bf0c<_0x582bb8['length'];_0x15bf0c++){if(_0x51d5f3(this,_0x582bb8[_0x15bf0c],_0x582bb8,_0x15bf0c+0x1))return!0x0;}for(let _0x29556a=0x0;_0x29556a<_0x582bb8[_0x3f78('0x37')];_0x29556a++){if(_0x51d5f3(this,_0x582bb8[_0x29556a],_0x1a479e,0x0))return!0x0;}return!0x1;function _0x51d5f3(_0x3fd78f,_0x3691ab,_0x3d12fe,_0x29f7dd){for(let _0x402cf1=_0x29f7dd;_0x402cf1<_0x3d12fe[_0x3f78('0x37')];_0x402cf1++){const _0x25164e=_0x3d12fe[_0x402cf1];if(_0x25164e[_0x3f78('0x62')]!==_0x3691ab[_0x3f78('0x62')]||_0x25164e['author']['id']!==_0x3691ab['author']['id']||_0x25164e[_0x3f78('0x8b')]!==_0x3691ab[_0x3f78('0x8b')])continue;if(!xt(_0x3691ab,_0x25164e))continue;const _0x2323a2=_0x38c053[_0x3f78('0x60')](_0x3691ab),_0x2553fa=_0x57e407[_0x3f78('0x60')](_0x3691ab),_0x9c9e99=_0x57e407[_0x3f78('0x60')](_0x25164e),_0x18d3fa=_0x3691ab[_0x3f78('0x43')]&&_0x3691ab[_0x3f78('0x43')][_0x3f78('0x37')],_0x324b1f=_0x25164e['commentThread']&&_0x25164e[_0x3f78('0x43')][_0x3f78('0x37')];if(!_0x18d3fa&&_0x2323a2(_0x9c9e99,_0x2553fa))return _0x3fd78f[_0x3f78('0x7')](_0x25164e,_0x3691ab),_0x57e407['delete'](_0x3691ab),!0x0;if(!_0x324b1f&&_0x2323a2(_0x2553fa,_0x9c9e99))return _0x3fd78f[_0x3f78('0x7')](_0x3691ab,_0x25164e),_0x57e407[_0x3f78('0x35')](_0x25164e),!0x0;}return!0x1;}}[_0x3f78('0x7')](_0xc0a22c,_0x1ba28c){if(_0xc0a22c[_0x3f78('0xf1')])for(const _0x2e83e2 of _0x1ba28c[_0x3f78('0xcf')]())_0xc0a22c['addRange'](_0x2e83e2);else{const _0x480801=_0x1ba28c['getFirstRange']()['end'];this[_0x3f78('0xbb')](_0xc0a22c,this[_0x3f78('0xe3')]['createRange'](_0xc0a22c['getFirstRange']()[_0x3f78('0x118')],_0x480801));}_0x1ba28c[_0x3f78('0x96')]();}}class Dt{constructor(_0x528fea){this['_editor']=_0x528fea,this[_0x3f78('0xe3')]=_0x528fea[_0x3f78('0xc0')],this[_0x3f78('0xde')]=new Map(),this[_0x3f78('0x77')]=new Map(),this[_0x3f78('0x129')]();}[_0x3f78('0x8f')](_0x3c5efa,_0x20dec6,_0x330eb5,_0x71fe91,_0x117515,_0xb9b740){return new _0x49aee1(this[_0x3f78('0xe3')],{'type':_0x3c5efa,'subType':_0x20dec6,'id':_0x330eb5,'author':_0x71fe91,'creator':_0x71fe91,'attributes':_0x117515,'onAttributesChange':_0xb9b740,'onAccept':(..._0x108fd8)=>this[_0x3f78('0x8c')](_0x3c5efa,_0x20dec6,'accept')(..._0x108fd8),'onDiscard':(..._0x3a6fe5)=>this['getSuggestionCallback'](_0x3c5efa,_0x20dec6,'discard')(..._0x3a6fe5)});}['registerCustomCallback'](_0x153479,_0x40f9a5,_0x5ebcee,_0x315469){const _0x10fa4f=_0x153479+':'+_0x40f9a5+':'+_0x5ebcee;this['_customCallbacks']['set'](_0x10fa4f,_0x315469);}[_0x3f78('0x8c')](_0x4e4706,_0x472852,_0x44175b){const _0xc24567=_0x4e4706+':'+_0x472852+':'+_0x44175b;return this[_0x3f78('0xde')]['get'](_0xc24567)||this[_0x3f78('0x77')]['get'](_0x4e4706+':'+_0x44175b);}[_0x3f78('0x129')](){const _0x36d9bd=()=>!0x1,_0x446313=_0x31f30b=>{_0x31f30b['sort']((_0x38e636,_0x3e6166)=>_0x38e636['start']['isBefore'](_0x3e6166[_0x3f78('0x118')])?0x1:-0x1),this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x1ee8ad=>{for(const _0x46f333 of _0x31f30b){let _0x2a4947;_0x2a4947=_0x46f333[_0x3f78('0xd9')]['isAtEnd']&&_0x46f333[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x46f333['start'][_0x3f78('0x7b')]?_0x1ee8ad[_0x3f78('0x11f')](_0x46f333[_0x3f78('0x118')][_0x3f78('0x7b')],'on'):_0x1ee8ad['createSelection'](_0x46f333),this['_model']['deleteContent'](_0x2a4947,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5cdfee=(_0x3f5ac1,_0x36642b)=>{this[_0x3f78('0xe3')][_0x3f78('0x131')](_0x2133ee=>{const {commandName:_0x40fbee,commandParams:_0x5a580=[]}=_0x36642b,_0x2628e0=_0x3f5ac1[_0x3f78('0xe2')](_0xe0c9da=>(_t(_0xe0c9da)&&(_0xe0c9da=this[_0x3f78('0xe3')][_0x3f78('0x107')](_0xe0c9da['end'])),_0xe0c9da))[_0x3f78('0x9c')](_0x46f9bc=>_0x3f78('0xa7')!==_0x46f9bc[_0x3f78('0x71')][_0x3f78('0xc')]);if(_0x2628e0['length']<0x1)return;const _0x214087=Array[_0x3f78('0x6a')](this[_0x3f78('0xe3')]['document']['selection']['getRanges']())[_0x3f78('0xe2')](_0x2fb243=>_0x4b8f82[_0x3f78('0x45')](_0x2fb243));_0x2133ee['setSelection'](_0x2628e0);for(const _0x2590fe of this[_0x3f78('0xe9')]['commands'][_0x3f78('0x13b')]())_0x2590fe[_0x3f78('0x11d')]();_0x5a580['push']({'forceDefaultExecution':!0x0}),this[_0x3f78('0xe9')]['execute'](_0x40fbee,..._0x5a580);const _0x3f74c0=_0x214087[_0x3f78('0x9c')](_0xe24fa3=>_0x3f78('0xa7')!=_0xe24fa3[_0x3f78('0x71')][_0x3f78('0xc')]);_0x3f74c0[_0x3f78('0x37')]>0x0&&_0x2133ee[_0x3f78('0x7a')](_0x3f74c0);for(const _0x1f9a4f of _0x214087)_0x1f9a4f[_0x3f78('0xd6')]();});},_0x357c00=(_0x212404,_0x21acf3)=>0x1==_0x212404[_0x3f78('0x37')]&&0x1==_0x21acf3['length']&&_0x212404[0x0]['end'][_0x3f78('0x4e')](_0x21acf3[0x0][_0x3f78('0x118')]),_0x31ad18=(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d)=>jt(_0x2ba0ee,_0x21cd34,_0x1d074a,_0xcfe02d,this[_0x3f78('0xe3')])?[_0x2ba0ee,_0x21cd34]:jt(_0x21cd34,_0x2ba0ee,_0xcfe02d,_0x1d074a,this['_model'])?[_0x21cd34,_0x2ba0ee]:null;this[_0x3f78('0x77')][_0x3f78('0x3e')]('insertion:accept',_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x1f'),_0x446313),this[_0x3f78('0x77')]['set'](_0x3f78('0x132'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')]('insertion:chain',_0x31ad18),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x76'),_0x446313),this[_0x3f78('0x77')]['set']('deletion:discard',_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x56'),_0x357c00),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x105'),_0x31ad18),this[_0x3f78('0x77')]['set'](_0x3f78('0x89'),_0x5cdfee),this[_0x3f78('0x77')]['set'](_0x3f78('0xf6'),_0x36d9bd),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x53'),_0x357c00),this[_0x3f78('0x77')]['set'](_0x3f78('0x1b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0x68'),_0x5cdfee),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x3b'),_0x36d9bd),this[_0x3f78('0x77')][_0x3f78('0x3e')](_0x3f78('0xd3'),_0x357c00),this['_defaultCallbacks'][_0x3f78('0x3e')](_0x3f78('0x115'),_0x36d9bd);}}function Bt(_0x22ff8e,_0x3feb97,_0x1572f4){for(const _0x52c3bc of _0x3feb97[_0x3f78('0xe5')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52c3bc[_0x3f78('0x71')]==_0x52c3bc)return!0x1;if(!_0x1572f4[_0x3f78('0xb4')](_0x52c3bc))return!0x1;if(_0x22ff8e[_0x3f78('0x90')](_0x52c3bc)||_0x22ff8e[_0x3f78('0x10d')](_0x52c3bc))return!0x0;}return!0x1;}function _t(_0x188a7b){return _0x188a7b[_0x3f78('0xd9')][_0x3f78('0xe5')]==_0x188a7b[_0x3f78('0x118')][_0x3f78('0x7b')]&&_0x188a7b['end'][_0x3f78('0x9f')];}function Mt(_0x439e71,_0x17b806,_0x404635,_0x100f10){const _0x33fb9c=_0x1c5879=>!_0x1c5879[_0x3f78('0xd2')]['is'](_0x3f78('0x10e'))&&!_0x100f10[_0x3f78('0x90')](_0x1c5879[_0x3f78('0xd2')]),_0x4af227=_0x439e71['start'][_0x3f78('0x7f')](_0x33fb9c),_0x3609f1=_0x439e71['end'][_0x3f78('0x7f')](_0x33fb9c,{'direction':_0x3f78('0xc9')});return(!_0x439e71[_0x3f78('0x118')][_0x3f78('0x4e')](_0x4af227)||!_0x439e71[_0x3f78('0xd9')]['isEqual'](_0x3609f1))&&(_0x4af227[_0x3f78('0xfc')](_0x3609f1)?_0x404635[_0x3f78('0xe4')](_0x17b806,{'range':_0x404635[_0x3f78('0x107')](_0x4af227,_0x3609f1)}):_0x404635['removeMarker'](_0x17b806),!0x0);}function $t(_0xcdb461){return _0x3abb0f(_0xcdb461);}function Nt(_0x5d29c9){const _0xc044b2=_0x5d29c9[_0x3f78('0x118')][_0x3f78('0x7b')];return _0xc044b2&&_0xc044b2['is'](_0x3f78('0xa9'));}function Rt(_0x14ca12,_0x589dad){const _0x109dcb=_0x589dad[_0x3f78('0x7c')][_0x3f78('0x90')](_0x14ca12)||_0x589dad['schema']['isSelectable'](_0x14ca12);return _0x589dad[_0x3f78('0x107')](_0x589dad['createPositionAt'](_0x14ca12,_0x3f78('0xeb')),_0x109dcb?_0x589dad[_0x3f78('0x51')](_0x14ca12):_0x589dad[_0x3f78('0x5')](_0x14ca12,_0x3f78('0xd9')));}function jt(_0x3597d8,_0x31dd78,_0x4b39b8,_0x4f465a,_0xf2ef83){if(!xt(_0x3597d8,_0x31dd78))return!0x1;if(_0x4b39b8['end'][_0x3f78('0x4e')](_0x4f465a['start']))return!0x0;if(_0x3597d8['type']!=_0x31dd78[_0x3f78('0x62')])return!0x1;if(!_0x4b39b8[_0x3f78('0xd9')]['isTouching'](_0x4f465a[_0x3f78('0x118')]))return!0x1;const _0x320cde=_0xf2ef83['createRange'](_0x4b39b8[_0x3f78('0xd9')],_0x4f465a['start'])['getWalker']();for(const _0x51c56c of _0x320cde)if([_0x3f78('0x84'),'elementEnd'][_0x3f78('0x92')](_0x51c56c[_0x3f78('0x62')])&&_0xf2ef83[_0x3f78('0x7c')][_0x3f78('0x10d')](_0x51c56c['item']))return!0x1;return!0x0;}function xt(_0x59e6f1,_0x390e2f){return!(!_0x59e6f1[_0x3f78('0x2e')]||!_0x390e2f[_0x3f78('0x2e')])&&_0x4b2408(_0x59e6f1[_0x3f78('0xb3')],_0x390e2f['attributes']);}function Ut(_0x1d68b1,_0x466d9e){const _0x1c1259=Ot(_0x1d68b1[_0x3f78('0xb3')]),_0x1fe3d0=Ot(_0x466d9e);if(!_0x1d68b1[_0x3f78('0x2e')])return!0x1;for(const _0x22ad86 of Object[_0x3f78('0xa6')](_0x1fe3d0))if(!_0x4b2408(_0x1c1259[_0x22ad86],_0x1fe3d0[_0x22ad86]))return!0x1;return!0x0;}function Ot(_0x4928d8){const _0xdbf634=Object[_0x3f78('0x6b')]({},_0x4928d8);return delete _0xdbf634[_0x3f78('0x11b')],delete _0xdbf634['tablePasteChainId'],_0xdbf634;}
23
+ const _0x311e=['createPositionBefore','move','widget','rethrowUnexpectedError','addMarker:suggestion:formatBlock','_saved','ck-suggestion-marker','formatBlock:','_setSuggestionRange','assign','locale','add','Users','collaboration.channelId','addRange','return','discard','isAtStart','getAncestors','never','getItems','nodeBefore','parent','name','markDeletion','start','consumable','schema','enableReadOnlyMode','clear','_setSuggestionData','getAllAdjacentSuggestions','track-changes-user-not-found','formatInline:accept','type','isNextTo','_commentsRepository','_getAuthorFromId','_defaultCallbacks','acceptSelectedSuggestions','oldRange','_getExternalAuthor','getMultiRangeId','markMultiRangeInsertion','substr','document','lowest','toViewElement','isEqual','batch','sort','track-changes-adapter-missing-getsuggestion','highest','change:activeMarkers','formatInline:chain','_refreshSuggestionsChain','removed','getAttribute','writer','isBefore','init','createRange','_rangeIsInLocalUserInsertion','updateSuggestion','registerCustomCallback','CommentsRepository','splice','_joinWithAdjacentSuggestions','createRangeIn','filter','change','_trackFormatChanges','createdAt','plugins','@external','group','open','join','stop','_checkSuggestionCorrectness','markerReady','multi','editing','_addThreadToSuggestion','documentSelection','isAfter','formatInline','author','_onDiscard','deleteContent','deletion:','isSelectable','accept','removeMarker:suggestion:formatBlock','keys','_handleNewSuggestionMarker','ck-suggestion-marker-','dataReady','map','insertion:','has','registerPostFixer','buildSuggestion','markerNameToElements','change:data','isArray','_editor','addSuggestion','options','set','trackChangesCommand','deletion','deletion:join','insert','listenTo','execute','consume','getWalker','isObject','createSelection','suggestionLoaded','activeMarkers','track-changes-suggestion-data-mismatch','fromCharCode','getChangedMarkers','containsRangeInObject','containerElement','getIntersection','formatInline:join','conversion','values','unbind','createPositionAfter','range','detach','isUndo','showSuggestionHighlights','discardAllSuggestions','removeMarker','removeMarkers','discardSelectedSuggestions','updateMarker','elementToElement','ready','setAttribute','_joinSuggestions','track-changes-adapter-already-set','suggestion:','_removeSuggestion','notReady','getSuggestionCallback','markerName','suggestion-type','formatBlock:chain','markers','commentThread','_cutOutSuggestionMarker','getShiftedBy','adapter','from','selection','high','markInsertion','position','_adapter','ck-suggestion-marker--active','insertion:chain','end','addClass','size','suggestion','isCollapsed','suggestionChanged','split','isAtEnd','_suggestions','nodeAfter','formatGroupId','next','isRemovable','PENDING_ACTION_SUGGESTION','createPositionAt','setSelection','trackChanges.trackFormatChanges','define','$marker','isDocumentOperation','bindElementToMarker','_breakSuggestionMarker','getUser','low','config','applyOperation','_addSuggestionMarker','get','pluginName','before','acceptSuggestion','_model','reconvertMarker','_getSuggestionData','getRanges','_suggestionState','previous','fromRange','rootName','some','authoredAt','isMultiRange','acceptAllSuggestions','every','addMarkerName','getCommentThread','isInsideObject','stopListening','removeComment','PendingActions','creator','getCustomProperty','_mergeNestedSuggestions','enableCommand','forceDefaultExecution','enqueueChange','markMultiRangeBlockFormat','getLastMatchingPosition','removeClass','rejected','delete','commands','remove','data','length','multipleBlocks','isBlock','setTo','addUser','unbindElementFromMarkerName','_isDataLoaded','elementStart','createElement','_customCallbacks','_enabledCommands','insertion:join','isInContent','skipNestingCheck','containsPosition','item','for','discardSuggestion','mapper','_splitMarkerName','containsRange','catch','addHighlight','_isForcedDefaultExecutionBlock','getFirstMarker','insertContent','_updateSuggestionData','addCommentThread','containsItem','upcast','subType','_findSuggestions','isExternal','hasComments','insertion','newRange','addMarker','markInlineFormat','getSuggestion','then','hasCommentThread','TrackChangesEditing','includes','root','element','isTouching','getNearestSelectionRange','deletion:accept','$graveyard','addComment','editor','markerToHighlight','formatBlock:discard','markerToData','backward','isLimit','deletion:discard','elementEnd','fire','_suggestionFactory','trackChanges','editingDowncast','attributes','hasSuggestion','data-suggestion','formatBlock:join','external:','getRange','getDifference','model','formatBlock','addSuggestionData','push','isIntersectingWithRange','getSuggestions','trackChanges.mergeNestedSuggestions','always','_registerDefaultCallbacks','forward','isOwn','value','dataDowncast','$textProxy','getFirstRange'];(function(_0x4d5881,_0x311e65){const _0x4070c4=function(_0x208a68){while(--_0x208a68){_0x4d5881['push'](_0x4d5881['shift']());}};_0x4070c4(++_0x311e65);}(_0x311e,0x1a9));const _0x4070=function(_0x4d5881,_0x311e65){_0x4d5881=_0x4d5881-0x0;let _0x4070c4=_0x311e[_0x4d5881];return _0x4070c4;};import{Plugin as _0x22862a,PendingActions as _0x5c13f4}from'ckeditor5/src/core';import{LiveRange as _0xa146d2}from'ckeditor5/src/engine';import{CKEditorError as _0xe2c45,uid as _0x2cecee,priorities as _0x85390b,logWarning as _0x2f3731}from'ckeditor5/src/utils';import{toWidget as _0x2bcb74}from'ckeditor5/src/widget';import{Users as _0x43e427,hashObject as _0x211e1a}from'ckeditor5-collaboration/src/collaboration-core';import _0x20086b from'./commands/trackchangescommand';import _0x26ccd9 from'./commands/acceptsuggestioncommand';import _0x46116c from'./commands/discardsuggestioncommand';import _0x4ca370 from'./commands/executeonallsuggestionscommand';import _0x1d2d56 from'./commands/executeonselectedsuggestionscommand';import _0x4062b9 from'./suggestion';import _0x5af0fc from'./suggestiondescriptionfactory';import _0x37e5f3 from'./integrations/alignment';import _0x3da68d from'./integrations/basicstyles';import _0x57df06 from'./integrations/blockquote';import _0x1e4138 from'./integrations/ckbox';import _0x255208 from'./integrations/codeblock';import _0x13f3d7 from'./integrations/comments';import _0x12285a from'./integrations/deletecommand';import _0x4b6d2a from'./integrations/documentlist';import _0x4b940d from'./integrations/entercommand';import _0x369715 from'./integrations/findandreplace';import _0x27d556 from'./integrations/font';import _0x40e2be from'./integrations/formatpainter';import _0x3b44d9 from'./integrations/heading';import _0x22bd19 from'./integrations/highlight';import _0x17bbc8 from'./integrations/horizontalline';import _0x43a687 from'./integrations/htmlembed';import _0x4ee8d9 from'./integrations/image';import _0x71723d from'./integrations/imagereplace';import _0x3fd773 from'./integrations/importword';import _0x5cabe0 from'./integrations/indent';import _0x42309b from'./integrations/inputcommand';import _0x2ade67 from'./integrations/link';import _0x441e74 from'./integrations/list';import _0x358c0e from'./integrations/listproperties';import _0x314561 from'./integrations/mediaembed';import _0x509f34 from'./integrations/mention';import _0x377b23 from'./integrations/pagebreak';import _0x557e37 from'./integrations/paragraph';import _0x2d7f60 from'./integrations/removeformat';import _0x34bde7 from'./integrations/restrictededitingmode';import _0x2db81e from'./integrations/shiftentercommand';import _0x2821aa from'./integrations/standardeditingmode';import _0x3707b4 from'./integrations/style';import _0x500983 from'./integrations/table';import _0xa76141 from'./integrations/tablemergesplit';import _0x348f2c from'./integrations/tableheadings';import _0x4eccb7 from'./integrations/tableclipboard';import _0x268766 from'./integrations/tablecolumnresize';import _0x2c7ccb from'./integrations/template';import _0x40222e from'./integrations/tableofcontents';import _0x15ad92 from'./integrations/title';import _0xc43837 from'./integrations/undo';import{getTranslation as _0xa532f}from'./utils/common-translations';import _0x59ddcb from'./integrations/tablecaption';import _0x1972e4 from'./integrations/documentlistproperties';import _0x53b3e4 from'./integrations/tableproperties';import{isEqual as _0x52583c}from'lodash-es';export default class p extends _0x22862a{static get['requires'](){return[_0x4070('0x10e'),_0x43e427,_0x5c13f4,_0x37e5f3,_0x3da68d,_0x57df06,_0x1e4138,_0x255208,_0x13f3d7,_0x12285a,_0x4b6d2a,_0x1972e4,_0x4b940d,_0x369715,_0x27d556,_0x40e2be,_0x3b44d9,_0x22bd19,_0x17bbc8,_0x43a687,_0x4ee8d9,_0x71723d,_0x3fd773,_0x5cabe0,_0x42309b,_0x2ade67,_0x441e74,_0x358c0e,_0x314561,_0x509f34,_0x377b23,_0x557e37,_0x2d7f60,_0x34bde7,_0x2db81e,_0x2821aa,_0x3707b4,_0x500983,_0xa76141,_0x348f2c,_0x59ddcb,_0x4eccb7,_0x268766,_0x40222e,_0x53b3e4,_0x2c7ccb,_0x15ad92,_0xc43837];}static get[_0x4070('0x55')](){return _0x4070('0xa2');}constructor(_0x5af43f){function _0x3a4c2d(_0x47ce41){return _0x47ce41[_0x4070('0x12f')](_0x388afb=>String[_0x4070('0xd')](_0x388afb))[_0x4070('0x11a')]('');}super(_0x5af43f),this[_0x4070('0x13a')]('activeMarkers',[]),this['on'](_0x4070('0x102'),(_0x513c88,_0x468721,_0x3abfe4,_0x57ee4b)=>{this[_0x4070('0x58')][_0x4070('0x113')](()=>{for(const _0x5ebd7b of[..._0x57ee4b,..._0x3abfe4])this[_0x4070('0x58')][_0x4070('0x2c')][_0x4070('0x131')](_0x5ebd7b)&&_0x5af43f[_0x4070('0x11f')][_0x4070('0x59')](_0x5ebd7b);});}),this['_descriptionFactory']=new _0x5af0fc(this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0xe8')],this['editor'][_0x4070('0xd7')]),this[_0x4070('0x36')]=null,this[_0x4070('0xb4')]=new Dt(this[_0x4070('0xab')]),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5af43f[_0x4070('0x116')][_0x4070('0x54')]('CommentsRepository'),this[_0x4070('0x83')]=new Set(),this[_0x4070('0x58')]=this[_0x4070('0xab')]['model'],this[_0x4070('0x5c')]=new WeakMap(),this[_0x4070('0x90')]=!0x1,_0x5af43f[_0x4070('0x51')][_0x4070('0x4a')](_0x4070('0x49'),'default'),this[_0x4070('0x114')]=_0x5af43f[_0x4070('0x51')]['get'](_0x4070('0x49')),_0x5af43f[_0x4070('0x51')][_0x4070('0x4a')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4070('0x6d')]=_0x5af43f[_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xc4')),this['trackChangesCommand']=new _0x20086b(_0x5af43f,this['_enabledCommands']),this[_0x3a4c2d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a4c2d([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x34]);}[_0x4070('0x109')](){const _0x25cbba=this[_0x4070('0xab')];_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xb6'))['markerToHighlight']({'model':'suggestion','view':_0xd7045c=>{const {id:_0x5e4ce3,type:_0x2e0f7a}=this[_0x4070('0x8c')](_0xd7045c['markerName']),_0xe17524=[_0x4070('0xd3'),'ck-suggestion-marker-'+_0x2e0f7a];let _0x5d64d8=0xbb8;return this[_0x4070('0xb')][_0x4070('0xa3')](_0xd7045c['markerName'])&&(_0xe17524[_0x4070('0xc1')](_0x4070('0x37')),_0x5d64d8=0xbc2),_0x4070('0x1')==_0x2e0f7a&&(_0x5d64d8+=0x5),{'classes':_0xe17524,'attributes':{'data-suggestion':_0x5e4ce3},'priority':_0x5d64d8};}}),_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xca'))['add'](_0x22ddbe=>{_0x22ddbe['on']('addMarker:suggestion',(_0x1d3f69,_0x18c541,_0x4a7dda)=>{if(!_0x4a7dda['options'][_0x4070('0x1a')])return;const _0x48ee58=_0x18c541[_0x4070('0x88')];if(!_0x48ee58)return;const _0x2acdc9=_0x4a7dda[_0x4070('0x8b')][_0x4070('0xfc')](_0x48ee58);_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0x8')](_0x48ee58)&&_0x2acdc9&&!_0x2acdc9[_0x4070('0x6c')](_0x4070('0xcf'))&&_0x2acdc9['is'](_0x4070('0x10'))&&_0x2bcb74(_0x2acdc9,_0x4a7dda[_0x4070('0x107')]);},{'priority':_0x4070('0x33')});}),_0x25cbba['conversion'][_0x4070('0x89')](_0x4070('0xca'))[_0x4070('0xac')]({'model':_0x4070('0x3c'),'view':(_0x1f5fad,_0x392a0b)=>{if(!_0x392a0b['options'][_0x4070('0x1a')])return null;const {type:_0xa20583}=this[_0x4070('0x8c')](_0x1f5fad[_0x4070('0x29')]);return{'classes':[_0x4070('0xd3'),_0x4070('0x12d')+_0xa20583],'priority':0xbb8};}});const _0x36d6bb=({showActiveMarkers:_0x54861e=!0x0}={})=>(_0xecc281,_0x18f7d5,_0x4faebf)=>{if(!_0x18f7d5[_0x4070('0x88')])return;if(_0x18f7d5['item']['is'](_0x4070('0x32')))return void _0x4faebf[_0x4070('0xe7')][_0x4070('0x6')](_0x18f7d5[_0x4070('0x88')],_0xecc281[_0x4070('0xe4')]);const _0xdfbc8d=_0x4faebf[_0x4070('0x8b')]['toViewElement'](_0x18f7d5[_0x4070('0x88')]);if(!(_0x18f7d5[_0x4070('0x88')]['is'](_0x4070('0xa5'))&&_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0x7b')](_0x18f7d5[_0x4070('0x88')])&&!_0xdfbc8d[_0x4070('0x6c')](_0x4070('0x8f'))))return;const {id:_0x38f65f}=this[_0x4070('0x8c')](_0x18f7d5[_0x4070('0x29')]);_0x4faebf[_0x4070('0x107')][_0x4070('0x3a')]([_0x4070('0xd3'),'ck-suggestion-marker-formatBlock'],_0xdfbc8d),_0x4faebf[_0x4070('0x107')][_0x4070('0x22')](_0x4070('0xb9'),_0x38f65f,_0xdfbc8d),_0x4faebf[_0x4070('0x8b')][_0x4070('0x4d')](_0xdfbc8d,_0x18f7d5[_0x4070('0x29')]),_0x54861e&&(this[_0x4070('0xb')][_0x4070('0xa3')](_0x18f7d5[_0x4070('0x29')])?_0x4faebf['writer']['addClass'](_0x4070('0x37'),_0xdfbc8d):_0x4faebf[_0x4070('0x107')]['removeClass'](_0x4070('0x37'),_0xdfbc8d));for(const _0x56a13 of _0x25cbba[_0x4070('0xbe')][_0x4070('0x111')](_0x18f7d5['item'])[_0x4070('0xe1')]())_0x4faebf[_0x4070('0xe7')][_0x4070('0x6')](_0x56a13,_0xecc281[_0x4070('0xe4')]);_0x4faebf['consumable'][_0x4070('0x6')](_0x18f7d5[_0x4070('0x88')],_0xecc281[_0x4070('0xe4')]);};_0x25cbba[_0x4070('0x13')]['for']('dataDowncast')[_0x4070('0xd8')](_0xda4899=>{_0xda4899['on'](_0x4070('0xd1'),(_0xd3b99,_0x3a4fe0,_0xe768d1)=>{_0xe768d1[_0x4070('0x139')][_0x4070('0x1a')]&&_0x36d6bb({'showActiveMarkers':!0x1})(_0xd3b99,_0x3a4fe0,_0xe768d1);},{'priority':_0x4070('0x101')});}),_0x25cbba[_0x4070('0x13')][_0x4070('0x89')](_0x4070('0xca'))[_0x4070('0xae')]({'model':_0x4070('0x3c'),'view':(_0xd92e02,_0x3943d1)=>_0x3943d1[_0x4070('0x139')][_0x4070('0x1a')]?null:{'group':_0x4070('0x3c'),'name':_0xd92e02[_0x4070('0xf9')](0xb)}}),_0x25cbba['conversion'][_0x4070('0x89')]('upcast')[_0x4070('0x20')]({'view':{'name':_0x4070('0x3c'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xad0924,{writer:_0x194b5b})=>{let _0x5a9bcf=_0x4070('0x25')+_0xad0924[_0x4070('0x106')](_0x4070('0x2a'))+':'+_0xad0924[_0x4070('0x106')]('id');return _0xad0924['getAttribute']('marker-count')&&(_0x5a9bcf+=':'+_0xad0924['getAttribute']('marker-count')),_0x194b5b[_0x4070('0x81')](_0x4070('0x4b'),{'data-name':_0x5a9bcf});}}),_0x25cbba['conversion']['for'](_0x4070('0x96'))['dataToMarker']({'view':_0x4070('0x3c')}),_0x25cbba[_0x4070('0x13')][_0x4070('0x89')](_0x4070('0xb6'))[_0x4070('0xd8')](_0x1f8d2a=>{_0x1f8d2a['on'](_0x4070('0xd1'),_0x36d6bb(),{'priority':_0x4070('0x33')});}),_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xb6'))[_0x4070('0xd8')](_0x11e1d0=>{_0x11e1d0['on'](_0x4070('0x12a'),(_0x5b7650,_0x481577,_0xe9cea7)=>{const _0x26edb1=_0xe9cea7[_0x4070('0x8b')][_0x4070('0x134')](_0x481577[_0x4070('0x29')]);if(_0x26edb1)for(const _0x260e36 of _0x26edb1)_0x260e36[_0x4070('0x6c')](_0x4070('0x8f'))||(_0xe9cea7[_0x4070('0x107')][_0x4070('0x73')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x4070('0x37')],_0x260e36),_0xe9cea7[_0x4070('0x107')]['removeAttribute'](_0x4070('0xb9'),_0x260e36),_0xe9cea7[_0x4070('0x8b')][_0x4070('0x7e')](_0x260e36,_0x481577[_0x4070('0x29')]));},{'priority':_0x4070('0x33')});}),_0x25cbba[_0x4070('0xbe')][_0x4070('0xfa')][_0x4070('0x132')](_0x532e2b=>{let _0x26bd07=!0x1;const _0x1140f5=Array['from'](_0x25cbba['model'][_0x4070('0xfa')]['differ'][_0x4070('0xe')]()),_0xf8588=new Set();for(const {name:_0xac7470,data:_0x2ec0a8}of _0x1140f5){const {group:_0x8a015,type:_0x213f0b,id:_0x2e245e}=this['_splitMarkerName'](_0xac7470);if(_0x4070('0x3c')!==_0x8a015)continue;const _0x260553=this[_0x4070('0x41')][_0x4070('0x54')](_0x2e245e);if(null!=_0x2ec0a8[_0x4070('0x9c')]){'formatInline'==_0x213f0b&&(_0x26bd07=_0x26bd07||Mt(_0x2ec0a8['newRange'],_0xac7470,_0x532e2b,_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')]));if(_0x2ec0a8['newRange'][_0x4070('0x3d')]||_0x4070('0xa9')==_0x2ec0a8[_0x4070('0x9c')]['root'][_0x4070('0x5f')]||_0x4070('0xbf')==_0x213f0b&&!Nt(_0x2ec0a8[_0x4070('0x9c')])||_0x4070('0x1')==_0x213f0b&&!(!_t(_0x1d1018=_0x2ec0a8[_0x4070('0x9c')])&&!function(_0x3eff34){return _0x3eff34[_0x4070('0xe6')][_0x4070('0xe3')]==_0x3eff34[_0x4070('0x39')]['nodeBefore']&&_0x3eff34[_0x4070('0xe6')]['isAtEnd'];}(_0x1d1018)))_0x532e2b[_0x4070('0x1c')](_0xac7470),_0x26bd07=!0x0;else{if(!_0x260553||!_0x260553[_0x4070('0x85')])continue;_0xf8588['add'](_0x260553);}}}var _0x1d1018;return _0xf8588[_0x4070('0x3b')]>0x0&&(_0x26bd07=!!this[_0x4070('0x110')](_0xf8588)||_0x26bd07),_0x26bd07;}),_0x25cbba[_0x4070('0xbe')]['document'][_0x4070('0x132')](_0x4ddae3=>{let _0x7117c3=!0x1;for(const _0x1e9cc8 of _0x25cbba['model'][_0x4070('0xfa')]['differ']['getChanges']()){if(_0x4070('0x3')!=_0x1e9cc8[_0x4070('0xef')])continue;const _0x4b3d16=_0x1e9cc8[_0x4070('0x35')][_0x4070('0x2f')](_0x1e9cc8[_0x4070('0x79')]);if(_0x4b3d16[_0x4070('0x40')])for(const _0x493a61 of this[_0x4070('0x41')]['values']()){if(_0x493a61[_0x4070('0x62')]||!_0x493a61[_0x4070('0x85')])continue;if(_0x4070('0xbf')!=_0x493a61[_0x4070('0xef')])continue;const _0x2f40a3=_0x493a61['getFirstRange']();if(_0x2f40a3[_0x4070('0xe6')]['parent']!=_0x2f40a3[_0x4070('0x39')][_0x4070('0xe3')]&&_0x2f40a3[_0x4070('0x39')][_0x4070('0xfd')](_0x1e9cc8[_0x4070('0x35')])){const _0x18a8cf=_0x25cbba[_0x4070('0xbe')]['createRange'](_0x2f40a3[_0x4070('0xe6')],_0x4b3d16);_0x4ddae3['updateMarker'](_0x493a61[_0x4070('0x91')](),{'range':_0x18a8cf}),_0x7117c3=!0x0;}}}return _0x7117c3;}),_0x25cbba[_0x4070('0xbe')]['markers']['on']('update:suggestion',(_0x47bf97,_0x3d0b0c,_0x2df2b4)=>{if(null==_0x2df2b4){const {id:_0x472f09}=this[_0x4070('0x8c')](_0x3d0b0c[_0x4070('0xe4')]),_0x3d3cb4=this[_0x4070('0x41')][_0x4070('0x54')](_0x472f09);_0x3d3cb4&&_0x3d3cb4['addMarkerName'](_0x3d0b0c[_0x4070('0xe4')]);}}),_0x25cbba[_0x4070('0xbe')][_0x4070('0xfa')]['on'](_0x4070('0x135'),()=>{const _0x42cf83=Array[_0x4070('0x31')](_0x25cbba[_0x4070('0xbe')]['document']['differ']['getChangedMarkers']())[_0x4070('0x112')](_0x441f52=>_0x4070('0x3c')===this['_splitMarkerName'](_0x441f52[_0x4070('0xe4')])[_0x4070('0x118')]);if(0x0===_0x42cf83['length'])return;_0x42cf83[_0x4070('0xff')]((_0x15c358,_0xc04040)=>{const _0x5514d0=_0x15c358[_0x4070('0x78')][_0x4070('0xf5')],_0x398af0=_0xc04040[_0x4070('0x78')][_0x4070('0xf5')];return null===_0x5514d0&&null===_0x398af0?0x0:null===_0x5514d0&&null!==_0x398af0?-0x1:null!==_0x5514d0&&null===_0x398af0?0x1:_0x5514d0[_0x4070('0xe6')][_0x4070('0x108')](_0x398af0[_0x4070('0xe6')])?-0x1:0x1;});const _0x543e5d=new Set(),_0x464bda=new Set();for(const {name:_0x281517,data:_0x14c881}of _0x42cf83){const {id:_0x12112c}=this['_splitMarkerName'](_0x281517);if(null===_0x14c881[_0x4070('0xf5')]){const _0x428bd9=this['_handleNewSuggestionMarker'](_0x281517);_0x464bda[_0x4070('0xd8')](_0x428bd9);}else{const _0x302e32=this[_0x4070('0x41')][_0x4070('0x54')](_0x12112c);null!==_0x14c881[_0x4070('0x9c')]||_0x302e32['isInContent']?(_0x543e5d[_0x4070('0xd8')](_0x302e32['head']),_0x464bda[_0x4070('0xd8')](_0x302e32)):this[_0x4070('0x26')](_0x302e32);}}_0x464bda[_0x4070('0x3b')]>0x0&&this['_refreshSuggestionsChain'](_0x464bda);for(const _0x50bf27 of _0x543e5d)this['fire'](_0x4070('0x3e'),_0x50bf27);}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x52'),(_0x5c42cd,_0x5c08cc)=>{const _0x81c79e=_0x5c08cc[0x0];if(!this['_suggestions'][_0x4070('0x3b')])return;if(!_0x81c79e[_0x4070('0x4c')])return;if(_0x81c79e[_0x4070('0xfe')][_0x4070('0x19')]||!_0x81c79e[_0x4070('0xfe')]['isLocal'])return;let _0x32dd03,_0x5d9a7f;switch(_0x81c79e[_0x4070('0xef')]){case _0x4070('0x3'):_0x32dd03=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e[_0x4070('0x35')]),_0x5d9a7f=_0x32dd03['getShiftedBy'](_0x81c79e['howMany']);break;case'split':_0x32dd03=_0x25cbba['model']['createPositionAt'](_0x81c79e['splitPosition']),_0x5d9a7f=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e['moveTargetPosition']);break;case _0x4070('0xce'):_0x32dd03=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e['targetPosition']),_0x5d9a7f=_0x32dd03[_0x4070('0x2f')](_0x81c79e['howMany']);break;default:return;}const _0x486b5f=_0x25cbba[_0x4070('0xbe')]['createRange'](_0x32dd03,_0x5d9a7f);_0x25cbba[_0x4070('0xbe')]['change'](()=>{for(const {suggestion:_0x5c7a9b,meta:_0x4f7ac7}of this[_0x4070('0x98')](_0x486b5f)){if(_0x5c7a9b['isMultiRange'])continue;if('formatInline'==_0x5c7a9b['type'])continue;const _0x1d8283=_0x5c7a9b[_0x4070('0x78')]&&_0x5c7a9b['data'][_0x4070('0x7a')];(_0x4070('0xbf')!=_0x5c7a9b['type']||_0x4070('0x3f')==_0x81c79e[_0x4070('0xef')]&&!_0x1d8283)&&(_0x4f7ac7['containsRangeInObject']||_0x4070('0x9b')==_0x5c7a9b[_0x4070('0xef')]&&_0x4f7ac7[_0x4070('0xc8')]||_0x5c7a9b['getFirstRange']()[_0x4070('0x8d')](_0x486b5f)&&this[_0x4070('0x4e')](_0x5c7a9b,_0x32dd03,_0x5d9a7f));}});},{'priority':_0x4070('0xfb')}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x126'),(_0x89d442,_0x4761e3)=>{const _0x2b8279=_0x4761e3[0x0],_0x364c64=_0x4761e3[0x1];if(_0x364c64&&_0x364c64[_0x4070('0x6f')])return;if(this[_0x4070('0x90')])return;if(!this[_0x4070('0x0')][_0x4070('0xc9')])return;if(_0x2b8279[_0x4070('0x3d')])return;const _0x4d906c=_0x25cbba['model'][_0x4070('0xe8')],{start:_0x45c1a4,end:_0x186fa0}=_0x2b8279[_0x4070('0xcc')](),_0x59537d=_0x45c1a4[_0x4070('0x42')]&&_0x4d906c[_0x4070('0xb0')](_0x45c1a4['nodeAfter'])?null:_0x4d906c[_0x4070('0xa7')](_0x45c1a4,_0x4070('0xc7')),_0x4112a0=_0x186fa0[_0x4070('0xe2')]&&_0x4d906c[_0x4070('0xb0')](_0x186fa0[_0x4070('0xe2')])?null:_0x4d906c[_0x4070('0xa7')](_0x186fa0,_0x4070('0xaf')),_0x107c9b=_0x25cbba[_0x4070('0xbe')][_0x4070('0x10a')](_0x59537d?_0x59537d[_0x4070('0xe6')]:_0x45c1a4,_0x4112a0?_0x4112a0['end']:_0x186fa0);_0x25cbba['model']['change'](_0x138e2f=>{this[_0x4070('0xe5')](_0x107c9b);const _0x3e38f7=_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0xa7')](_0x107c9b[_0x4070('0xe6')]);_0x2b8279['is'](_0x4070('0x121'))?_0x138e2f[_0x4070('0x48')](_0x3e38f7):_0x2b8279[_0x4070('0x7c')](_0x3e38f7);}),_0x89d442['stop']();},{'priority':_0x85390b['normal']+0xa}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x92'),(_0x59cd18,_0x4891fa)=>{const _0x4ecb77=_0x4891fa[_0x4891fa['length']-0x1];_0x4ecb77&&_0x4ecb77[_0x4070('0x6f')]||this[_0x4070('0x90')]||this[_0x4070('0x0')]['value']&&(_0x25cbba[_0x4070('0xbe')][_0x4070('0x113')](()=>{let _0xa67eb7=_0x25cbba['model'][_0x4070('0x92')](_0x4891fa[0x0],_0x4891fa[0x1],_0x4891fa[0x2],{'forceDefaultExecution':!0x0});if(!_0xa67eb7)return;_0x59cd18[_0x4070('0xdc')]=_0xa67eb7['clone']();const _0x17dd2d=_0xa67eb7['end'][_0x4070('0xe2')],_0x1080ca=_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')];_0x17dd2d&&_0x1080ca['isBlock'](_0x17dd2d)&&!_0x1080ca[_0x4070('0x8')](_0x17dd2d)&&(_0xa67eb7=_0x25cbba[_0x4070('0xbe')]['createRange'](_0xa67eb7[_0x4070('0xe6')],_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x17dd2d,_0x4070('0x39')))),this[_0x4070('0x34')](_0xa67eb7);}),_0x59cd18['stop']());},{'priority':_0x4070('0x33')}),this[_0x4070('0xab')]['commands']['add'](_0x4070('0xb5'),this[_0x4070('0x0')]),this['enableCommand'](_0x4070('0xb5'));const _0x3a6308=new _0x26ccd9(_0x25cbba,this[_0x4070('0x41')]);_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x57'),_0x3a6308),this[_0x4070('0x6e')](_0x4070('0x57'));const _0x3487a4=new _0x46116c(_0x25cbba,this[_0x4070('0x41')]);_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x8a'),_0x3487a4),this[_0x4070('0x6e')](_0x4070('0x8a')),_0x25cbba[_0x4070('0x76')]['add']('acceptAllSuggestions',new _0x4ca370(_0x25cbba,_0x3a6308,this[_0x4070('0x41')])),this[_0x4070('0x6e')](_0x4070('0x63')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x1b'),new _0x4ca370(_0x25cbba,_0x3487a4,this[_0x4070('0x41')])),this[_0x4070('0x6e')](_0x4070('0x1b')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')]('acceptSelectedSuggestions',new _0x1d2d56(_0x25cbba,_0x3a6308,this[_0x4070('0x41')])),this['enableCommand'](_0x4070('0xf4')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')]('discardSelectedSuggestions',new _0x1d2d56(_0x25cbba,_0x3487a4,this['_suggestions'])),this['enableCommand'](_0x4070('0x1e'));const _0x3b784a=_0x25cbba[_0x4070('0x116')]['get'](_0x4070('0x10e'));this['listenTo'](_0x3b784a,_0x4070('0xaa'),(_0xee8716,{threadId:_0x5b4871})=>{const _0x57695b=this[_0x4070('0x41')][_0x4070('0x54')](_0x5b4871);_0x57695b&&_0x57695b[_0x4070('0x2d')]&&0x1===_0x57695b[_0x4070('0x2d')][_0x4070('0x79')]&&this['_updateSuggestionData'](_0x5b4871,{'hasComments':!0x0});},{'priority':'low'}),this[_0x4070('0x4')](_0x3b784a,_0x4070('0x69'),(_0x1e7add,{threadId:_0x2587f7})=>{const _0x37e3cb=this[_0x4070('0x41')]['get'](_0x2587f7);_0x37e3cb&&_0x37e3cb[_0x4070('0x2d')]&&!_0x37e3cb[_0x4070('0x2d')][_0x4070('0x79')]&&this[_0x4070('0x93')](_0x2587f7,{'hasComments':!0x1});},{'priority':_0x4070('0x50')});}set[_0x4070('0x30')](_0x3f6c30){if(this[_0x4070('0x36')])throw new _0xe2c45(_0x4070('0x24'),this);this[_0x4070('0x36')]=_0x3f6c30;}get[_0x4070('0x30')](){return this[_0x4070('0x36')];}[_0x4070('0xc3')]({skipNotAttached:_0x4411e1=!0x1,toJSON:_0x30007c=!0x1}={}){const _0x526068=[];for(const _0x14abba of this[_0x4070('0x41')][_0x4070('0x14')]())_0x4411e1&&!_0x14abba[_0x4070('0x85')]||_0x526068[_0x4070('0xc1')](_0x14abba);return _0x30007c?_0x526068[_0x4070('0x12f')](_0x26e0ea=>_0x26e0ea['toJSON']()):_0x526068;}[_0x4070('0x9f')](_0x40f267){const _0x148980=this['_suggestions']['get'](_0x40f267);if(!_0x148980)throw new _0xe2c45('track-changes-suggestion-not-found',this);return _0x148980;}[_0x4070('0xb8')](_0x4da302){return this['_suggestions'][_0x4070('0x131')](_0x4da302);}[_0x4070('0xc0')](_0x5a3ba2){const {authorId:_0xe8e633,id:_0xe8e69,attributes:_0xc56e92}=_0x5a3ba2,[_0x14f689,_0x464703]=_0x5a3ba2[_0x4070('0xef')][_0x4070('0x3f')](':'),_0x295590=this[_0x4070('0x41')][_0x4070('0x54')](_0xe8e69)||this['_createSuggestion'](_0x14f689,_0x464703,_0xe8e69,_0xe8e633,_0xc56e92);if(this[_0x4070('0x120')](_0x295590),this['_checkSuggestionCorrectness'](_0x295590,_0x14f689,_0x464703||null,_0xe8e633),_0x295590['createdAt']=_0x5a3ba2['createdAt'],_0x295590[_0x4070('0x7f')]=!0x0,_0xc56e92&&_0xc56e92[_0x4070('0x117')]){const _0x27adc8=_0xc56e92[_0x4070('0x117')],_0x402770=this['_getExternalAuthor'](_0x27adc8['authorName']);_0x295590[_0x4070('0x61')]=_0x27adc8[_0x4070('0x115')],_0x295590[_0x4070('0x124')]=_0x402770,_0x295590[_0x4070('0x99')]=!0x0;}else _0x295590[_0x4070('0x61')]=_0x5a3ba2[_0x4070('0x115')];switch(_0x5a3ba2[_0x4070('0x78')]&&(_0x295590[_0x4070('0x78')]=_0x5a3ba2['data']),_0x5a3ba2['attributes']&&(_0x295590[_0x4070('0xb7')]=_0x5a3ba2[_0x4070('0xb7')]),this[_0x4070('0x36')]&&this[_0x4070('0x36')]['addSuggestion']||(_0x295590[_0x4070('0xd2')]=!0x0),this[_0x4070('0x5c')][_0x4070('0x54')](_0x295590)){case'notReady':this[_0x4070('0x5c')]['set'](_0x295590,_0x4070('0x12e'));break;case _0x4070('0x11d'):_0x295590[_0x4070('0x85')]?(this['_refreshSuggestionsChain'](new Set([_0x295590])),this[_0x4070('0x110')](new Set([_0x295590])),this[_0x4070('0x5c')]['set'](_0x295590,_0x4070('0x21')),this[_0x4070('0xb3')]('suggestionLoaded',_0x295590)):this[_0x4070('0x5c')][_0x4070('0x13a')](_0x295590,_0x4070('0x105'));}return _0x295590;}[_0x4070('0x57')](_0x2fb97a){this[_0x4070('0x6f')](()=>{this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0x113')](()=>{for(const _0x4fbdab of _0x2fb97a[_0x4070('0xec')]())_0x4fbdab[_0x4070('0x129')]();});});}[_0x4070('0x8a')](_0x3ff379){this[_0x4070('0x6f')](()=>{this['editor'][_0x4070('0xbe')]['change'](()=>{for(const _0x3ad29b of _0x3ff379[_0x4070('0xec')]())_0x3ad29b[_0x4070('0xdd')]();});});}['enableCommand'](_0x4d574c,_0x2068c2){const _0x2c21bb=this[_0x4070('0xab')][_0x4070('0x76')][_0x4070('0x54')](_0x4d574c);if(!_0x2c21bb)throw new _0xe2c45('track-changes-command-not-found',this,{'commandName':_0x4d574c});this[_0x4070('0x83')][_0x4070('0xd8')](_0x2c21bb),_0x2068c2&&_0x2c21bb['on'](_0x4070('0x5'),(_0x4e31d1,_0x220c51)=>{this[_0x4070('0x0')][_0x4070('0xc9')]&&(this[_0x4070('0x90')]||_0x220c51[_0x4070('0x79')]>0x0&&_0x220c51[_0x220c51['length']-0x1]&&_0x220c51[_0x220c51['length']-0x1][_0x4070('0x6f')]||(_0x2068c2((..._0x4d7be8)=>_0x2c21bb[_0x4070('0x5')](..._0x4d7be8,{'forceDefaultExecution':!0x0}),..._0x220c51),_0x4e31d1[_0x4070('0x11b')]()));},{'priority':_0x4070('0x33')});}['forceDefaultExecution'](_0x4fe1d8){let _0x48db2c,_0x156c1f;const _0x13308d=this[_0x4070('0x90')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x48db2c=_0x4fe1d8();}catch(_0xa34a7){_0x156c1f=_0xa34a7;}return _0x13308d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x156c1f&&_0xe2c45[_0x4070('0xd0')](_0x156c1f,this),_0x48db2c;}[_0x4070('0x34')](_0x366506,_0x1f552f=null,_0x5f27db={}){if(_0x366506[_0x4070('0x3d')])return null;const _0x31f091=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'];for(const {suggestion:_0x3236e7,meta:_0x34f5cf}of this[_0x4070('0x98')](_0x366506,_0x4070('0x9b')))if(_0x34f5cf[_0x4070('0xc8')]){if(!_0x34f5cf[_0x4070('0xf0')]){if(_0x34f5cf['containsRangeInObject']){if(!this[_0x4070('0x6d')]||!Ut(_0x3236e7,_0x5f27db))continue;return _0x3236e7;}if(Ut(_0x3236e7,_0x5f27db))return _0x3236e7;this[_0x4070('0x4e')](_0x3236e7,_0x366506[_0x4070('0xe6')],_0x366506['end']);break;}if(_0x1f552f==_0x3236e7['subType']&&Ut(_0x3236e7,_0x5f27db)){const _0x58a8ac=_0x3236e7['getFirstRange']();return _0x58a8ac[_0x4070('0xe6')]['isEqual'](_0x366506[_0x4070('0x39')])?this[_0x4070('0xd5')](_0x3236e7,this[_0x4070('0x58')]['createRange'](_0x366506[_0x4070('0xe6')],_0x58a8ac[_0x4070('0x39')])):this['_setSuggestionRange'](_0x3236e7,this['_model'][_0x4070('0x10a')](_0x58a8ac[_0x4070('0xe6')],_0x366506[_0x4070('0x39')])),_0x3236e7;}}const _0x508e1f=_0x2cecee(),_0x174561=_0x31f091['id'],_0x211097=_0x1f552f?_0x4070('0x130')+_0x1f552f:_0x4070('0x9b'),_0x3cab65=this[_0x4070('0xeb')]({'id':_0x508e1f,'type':_0x211097,'createdAt':new Date(),'authorId':_0x174561,'attributes':_0x5f27db});return this['_addSuggestionMarker'](_0x211097,_0x508e1f,_0x174561,_0x366506),_0x3cab65;}[_0x4070('0xf8')](_0x10f0c1,_0xc9daee=_0x4070('0x11e'),_0x39aee3={}){const _0x1e9317=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x1623bf=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x9b'),_0xc9daee,_0x4070('0x11a'));for(const _0x845c6b of this[_0x4070('0xc3')]())if(_0x845c6b[_0x4070('0x124')]['id']==_0x1e9317['id']&&_0x4070('0x9b')==_0x845c6b[_0x4070('0xef')]&&_0x845c6b['subType']==_0xc9daee&&Ut(_0x845c6b,_0x39aee3)&&(_0x1623bf(_0x845c6b[_0x4070('0x5b')](),_0x10f0c1)||_0x1623bf(_0x10f0c1,_0x845c6b[_0x4070('0x5b')]()))){for(const _0x2521db of _0x10f0c1)_0x845c6b['addRange'](_0x2521db);return _0x845c6b;}for(const {suggestion:_0x62ff15,meta:_0x3a770d}of this['_findSuggestions'](_0x10f0c1,'insertion')){if(!_0x3a770d[_0x4070('0xc8')])continue;if(!this[_0x4070('0x6d')]&&_0x3a770d[_0x4070('0xf')])continue;if(!Ut(_0x62ff15,_0x39aee3))continue;let _0x492700=!0x0;for(const _0xc0a056 of _0x62ff15['getRanges']())for(const _0x5559ec of _0x10f0c1)if(!_0xc0a056[_0x4070('0x8d')](_0x5559ec)){_0x492700=!0x1;break;}if(_0x492700)return _0x62ff15;}const _0x2ecb7a=_0x2cecee(),_0x595515=_0x1e9317['id'],_0x4e0fad=_0x4070('0x130')+_0xc9daee,_0x5d9589=this[_0x4070('0xeb')]({'id':_0x2ecb7a,'type':_0x4e0fad,'createdAt':new Date(),'authorId':_0x595515,'attributes':_0x39aee3});for(const _0x59946a of _0x10f0c1)this[_0x4070('0x53')](_0x4e0fad,_0x2ecb7a,_0x595515,_0x59946a,_0x4062b9[_0x4070('0xf7')]());return _0x5d9589;}[_0x4070('0x9e')](_0x51c426,_0xfc33e3,_0x297829=null,_0x2df5e8={}){if(_0x297829=_0x297829||$t(_0xfc33e3),_0x51c426[_0x4070('0x3d')])return null;if(_0x4070('0xe0')===this['_trackFormatChanges']){const _0x265527=this[_0x4070('0xb4')][_0x4070('0x28')]('formatInline',_0x297829,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x265527([_0x51c426],_0xfc33e3,_0x2df5e8)),null;}const _0x156e16=this['editor'][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x401701=[];if(_0x4070('0xc5')!==this[_0x4070('0x114')])for(const {suggestion:_0xa9378d,meta:_0x433f26}of this[_0x4070('0x98')](_0x51c426,_0x4070('0x9b')))_0x433f26[_0x4070('0xc8')]&&!_0x433f26['isInsideObject']&&_0x401701[_0x4070('0xc1')](..._0xa9378d[_0x4070('0x5b')]());const _0x5c4f50=function(_0x59ec1a,_0x4fda0b){const _0x152629=[];for(const _0xffc811 of _0x4fda0b){const _0x48d3ac=_0x59ec1a['getIntersection'](_0xffc811);_0x48d3ac&&_0x152629['push'](_0x48d3ac);}return _0x152629;}(_0x51c426,_0x401701),_0x4af59d=function(_0x5dfab9,_0x31c0de){const _0x1e6111=[_0x5dfab9];for(const _0x409191 of _0x31c0de){let _0x239128=0x0;for(;_0x239128<_0x1e6111[_0x4070('0x79')];){const _0x1497a3=_0x1e6111[_0x239128][_0x4070('0xbd')](_0x409191);_0x1e6111[_0x4070('0x10f')](_0x239128,0x1,..._0x1497a3),_0x239128+=_0x1497a3[_0x4070('0x79')];}}return _0x1e6111;}(_0x51c426,_0x401701);_0x5c4f50['length']&&this['_model'][_0x4070('0x113')](()=>{for(const _0x9aa1d5 of _0x5c4f50){const _0x3306fd=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x123'),_0x297829,_0x4070('0x129'));this[_0x4070('0x6f')](()=>_0x3306fd([_0x9aa1d5],_0xfc33e3,_0x2df5e8));}});for(const _0x4fcc37 of _0x4af59d){let _0x30c8fe=null,_0x1caa73=_0x4fcc37[_0x4070('0xe6')],_0x1b7034=_0x4fcc37[_0x4070('0x39')];for(const {suggestion:_0x19de29,meta:_0x54f427}of this[_0x4070('0x98')](_0x4fcc37,_0x4070('0x123'))){if(!_0x54f427[_0x4070('0xc8')])continue;if(_0x19de29[_0x4070('0x97')]!=_0x297829)continue;if(!Ut(_0x19de29,_0x2df5e8))continue;const _0x3c41e7=_0x19de29[_0x4070('0xcc')]();if(_0x3c41e7['containsRange'](_0x4fcc37,!0x0))return null;_0x1caa73=_0x1caa73[_0x4070('0x108')](_0x3c41e7[_0x4070('0xe6')])?_0x1caa73:_0x3c41e7[_0x4070('0xe6')],_0x1b7034=_0x1b7034['isAfter'](_0x3c41e7[_0x4070('0x39')])?_0x1b7034:_0x3c41e7[_0x4070('0x39')],_0x30c8fe?_0x3c41e7[_0x4070('0xe6')][_0x4070('0x108')](_0x30c8fe['getFirstRange']()[_0x4070('0xe6')])?(_0x30c8fe[_0x4070('0x1d')](),_0x30c8fe=_0x19de29):_0x19de29[_0x4070('0x1d')]():_0x30c8fe=_0x19de29;}const _0x5043cd=this['_model'][_0x4070('0x10a')](_0x1caa73,_0x1b7034);if(_0x30c8fe)this[_0x4070('0xd5')](_0x30c8fe,_0x5043cd);else{const _0x1f044a=_0x2cecee(),_0x309c75=_0x156e16['id'];this[_0x4070('0xeb')]({'id':_0x1f044a,'type':'formatInline:'+_0x297829,'data':_0xfc33e3,'createdAt':new Date(),'authorId':_0x309c75,'attributes':_0x2df5e8}),this[_0x4070('0x53')]('formatInline:'+_0x297829,_0x1f044a,_0x309c75,_0x5043cd);}}return null;}['markBlockFormat'](_0x4b2395,_0x528739,_0x4e020b=[],_0x238f3d=null,_0x2b4bf7={}){_0x528739[_0x4070('0x43')]||(_0x528739[_0x4070('0x43')]=_0x528739['commandName']),_0x528739['multipleBlocks']=_0x4b2395['is']('range'),_0x238f3d=_0x238f3d||$t(_0x528739);const _0x125239=_0x4e020b[_0x4070('0x12f')](_0x8fc462=>Rt(_0x8fc462,this[_0x4070('0x58')])),_0x21ba3d=_0x4b2395['is'](_0x4070('0x17'))?_0x4b2395:Rt(_0x4b2395,this[_0x4070('0x58')]);if(_0x4070('0xe0')===this[_0x4070('0x114')]){const _0xcc5d07=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0xbf'),_0x238f3d,_0x4070('0x129'));return this['forceDefaultExecution'](()=>_0xcc5d07([_0x21ba3d],_0x528739,_0x2b4bf7)),null;}_0x125239[_0x4070('0xc1')](_0x21ba3d);let _0x430044=!0x0;for(const _0x4c98a0 of _0x125239)if(!this['_rangeIsInLocalUserInsertion'](_0x4c98a0)){_0x430044=!0x1;break;}if(_0x430044&&'always'!==this[_0x4070('0x114')]){const _0x3783bd=this['_suggestionFactory']['getSuggestionCallback'](_0x4070('0xbf'),_0x238f3d,'accept');return this['forceDefaultExecution'](()=>_0x3783bd([_0x21ba3d],_0x528739,_0x2b4bf7)),null;}let _0x176a39=null,_0x14fac7=_0x21ba3d[_0x4070('0xe6')],_0x184846=_0x21ba3d[_0x4070('0x39')];for(const {suggestion:_0x14897f,meta:_0x122750}of this[_0x4070('0x98')](_0x21ba3d,_0x4070('0xbf'))){if(!_0x122750[_0x4070('0xc8')])continue;if(_0x122750[_0x4070('0xf0')]||_0x122750[_0x4070('0xf')]||_0x122750[_0x4070('0x67')])continue;if(_0x14897f['data'][_0x4070('0x43')]!=_0x528739[_0x4070('0x43')])continue;if(!Ut(_0x14897f,_0x2b4bf7))continue;const _0x49f726=_0x14897f[_0x4070('0xcc')]();if(_0x14897f[_0x4070('0x97')]==_0x238f3d){if(_0x49f726[_0x4070('0x8d')](_0x21ba3d,!0x0))return null;_0x14fac7=_0x14fac7[_0x4070('0x108')](_0x49f726[_0x4070('0xe6')])?_0x14fac7:_0x49f726[_0x4070('0xe6')],_0x184846=_0x184846[_0x4070('0x122')](_0x49f726[_0x4070('0x39')])?_0x184846:_0x49f726[_0x4070('0x39')],_0x176a39?_0x49f726[_0x4070('0xe6')][_0x4070('0x108')](_0x176a39[_0x4070('0xcc')]()[_0x4070('0xe6')])?(_0x176a39[_0x4070('0x1d')](),_0x176a39=_0x14897f):_0x14897f[_0x4070('0x1d')]():_0x176a39=_0x14897f;}else{const _0x2884c6=_0x21ba3d[_0x4070('0x11')](_0x49f726);this[_0x4070('0x2e')](_0x14897f,_0x2884c6);}}const _0xb00479=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x54e60c=_0x2cecee(),_0xcf5f1e=_0xb00479['id'];if(_0x176a39)return this['_setSuggestionRange'](_0x176a39,this[_0x4070('0x58')]['createRange'](_0x14fac7,_0x184846)),_0x176a39;{const _0x23a781=this[_0x4070('0xeb')]({'id':_0x54e60c,'type':'formatBlock:'+_0x238f3d,'data':_0x528739,'createdAt':new Date(),'authorId':_0xcf5f1e,'attributes':_0x2b4bf7});return this[_0x4070('0x53')]('formatBlock:'+_0x238f3d,_0x54e60c,_0xcf5f1e,this[_0x4070('0x58')][_0x4070('0x10a')](_0x14fac7,_0x184846)),_0x23a781;}}[_0x4070('0x71')](_0x4e3b67,_0x1852d1,_0x8fa20d=[],_0x38d0f8=null,_0x7bfc70={}){_0x1852d1[_0x4070('0x43')]||(_0x1852d1[_0x4070('0x43')]=_0x1852d1['commandName']);const _0x593ae2=_0x4e3b67[0x0];_0x1852d1['multipleBlocks']=_0x593ae2['is'](_0x4070('0x17')),_0x38d0f8=_0x38d0f8||$t(_0x1852d1);const _0x5f55ae=_0x8fa20d[_0x4070('0x12f')](_0x4e80ba=>Rt(_0x4e80ba,this[_0x4070('0x58')])),_0x25f0f1=_0x593ae2['is'](_0x4070('0x17'))?_0x4e3b67:_0x4e3b67[_0x4070('0x12f')](_0x54aaed=>Rt(_0x54aaed,this[_0x4070('0x58')]));if(_0x4070('0xe0')===this[_0x4070('0x114')]){const _0x2104e7=this[_0x4070('0xb4')][_0x4070('0x28')]('formatBlock',_0x38d0f8,_0x4070('0x129'));return this['forceDefaultExecution'](()=>_0x2104e7(_0x25f0f1,_0x1852d1,_0x7bfc70)),null;}_0x5f55ae[_0x4070('0xc1')](..._0x25f0f1);let _0x37622e=!0x0;for(const _0x335c29 of _0x5f55ae)if(!this[_0x4070('0x10b')](_0x335c29)){_0x37622e=!0x1;break;}if(_0x37622e&&_0x4070('0xc5')!==this['_trackFormatChanges']){const _0x99a3f=this['_suggestionFactory'][_0x4070('0x28')](_0x4070('0xbf'),_0x38d0f8,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x99a3f(_0x25f0f1,_0x1852d1,_0x7bfc70)),null;}const _0xabf3d5=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'];for(const _0x25f6e6 of this[_0x4070('0xc3')]()){if(_0x25f6e6[_0x4070('0x124')]['id']!=_0xabf3d5['id'])continue;if(_0x4070('0xbf')!=_0x25f6e6[_0x4070('0xef')]||_0x25f6e6[_0x4070('0x78')][_0x4070('0x43')]!=_0x1852d1['formatGroupId'])continue;if(!Ut(_0x25f6e6,_0x7bfc70))continue;const _0x49a375=_0x25f6e6[_0x4070('0x97')]==_0x38d0f8;for(let _0x282146=0x0;_0x282146<_0x25f0f1[_0x4070('0x79')];_0x282146++){const _0x32132e=_0x25f0f1[_0x282146];for(const _0x4f4c2b of _0x25f6e6['getMarkers']()){const _0x4d439b=_0x4f4c2b[_0x4070('0xbc')]();if(_0x32132e['isEqual'](_0x4d439b)){_0x49a375?(_0x25f0f1[_0x4070('0x10f')](_0x282146,0x1),_0x282146--):_0x25f6e6[_0x4070('0x1c')](_0x4f4c2b[_0x4070('0xe4')]);break;}}}}if(0x0==_0x25f0f1[_0x4070('0x79')])return null;const _0x4f7de8=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0xbf'),_0x38d0f8,_0x4070('0x11a'));for(const _0x186e62 of this[_0x4070('0xc3')]())if(_0x186e62[_0x4070('0x124')]['id']==_0xabf3d5['id']&&_0x4070('0xbf')==_0x186e62['type']&&_0x186e62[_0x4070('0x78')][_0x4070('0x43')]==_0x1852d1[_0x4070('0x43')]&&_0x186e62[_0x4070('0x97')]==_0x38d0f8&&Ut(_0x186e62,_0x7bfc70)&&(_0x4f7de8(_0x186e62[_0x4070('0x5b')](),_0x25f0f1)||_0x4f7de8(_0x25f0f1,_0x186e62[_0x4070('0x5b')]()))){for(const _0x58498c of _0x25f0f1)_0x186e62[_0x4070('0xdb')](_0x58498c);return _0x186e62;}const _0x3bb946=_0x2cecee(),_0x4b3c4c=_0xabf3d5['id'],_0xb63def=_0x4070('0xd4')+_0x38d0f8,_0x480165=this[_0x4070('0xeb')]({'id':_0x3bb946,'type':_0xb63def,'data':_0x1852d1,'createdAt':new Date(),'authorId':_0x4b3c4c,'attributes':_0x7bfc70});for(const _0x21ed19 of _0x25f0f1)this[_0x4070('0x53')](_0xb63def,_0x3bb946,_0x4b3c4c,_0x21ed19,_0x4062b9[_0x4070('0xf7')]());return _0x480165;}[_0x4070('0xe5')](_0x1bef51,_0x349ed4=null,_0x1680d1={}){if(_0x1bef51[_0x4070('0x3d')])return null;const _0x1434fb=this[_0x4070('0xab')]['plugins'][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x4d5cc2=new _0xa146d2(_0x1bef51['start'],_0x1bef51[_0x4070('0x39')]);for(const {suggestion:_0x46e1b2,meta:_0x5038fb}of this[_0x4070('0x98')](_0x4d5cc2,_0x4070('0x9b')))if(_0x5038fb[_0x4070('0xc8')]&&!_0x5038fb[_0x4070('0xf0')]){if(_0x46e1b2[_0x4070('0x62')]){const _0x4dcfc3=_0x46e1b2[_0x4070('0x5b')]()[_0x4070('0x112')](_0x5a4078=>_0x4070('0xa9')!=_0x5a4078[_0x4070('0xa4')][_0x4070('0x5f')]);_0x4dcfc3[_0x4070('0x64')](_0x15582c=>_0x4d5cc2['containsRange'](_0x15582c,!0x0))&&_0x46e1b2['discard']();if(_0x4dcfc3[_0x4070('0x60')](_0x49ac48=>_0x49ac48[_0x4070('0x8d')](_0x4d5cc2,!0x0))){const _0x1bb99e=this['_suggestionFactory']['getSuggestionCallback'](_0x4070('0x1'),_0x349ed4,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x1bb99e([_0x4d5cc2],null,_0x1680d1)),null;}}else{const _0x54511d=_0x4d5cc2['getIntersection'](_0x46e1b2['getFirstRange']());null!==_0x54511d&&_0x46e1b2[_0x4070('0x125')]([_0x54511d],null,_0x1680d1);}}if(_0x4d5cc2[_0x4070('0x18')](),_0x4d5cc2[_0x4070('0x3d')]||_0x4070('0xa9')==_0x4d5cc2[_0x4070('0xa4')][_0x4070('0x5f')])return null;let _0x2a17fe=null,_0x1d4862=_0x4d5cc2[_0x4070('0xe6')],_0x382eb5=_0x4d5cc2['end'];const _0x216bdb=this[_0x4070('0x98')](_0x4d5cc2,_0x4070('0x1'));for(const {suggestion:_0xa5727,meta:_0x1b4417}of _0x216bdb){const _0x405cdf=this[_0x4070('0x58')][_0x4070('0x10a')](_0x1d4862,_0x382eb5);if(_0x1b4417[_0x4070('0xc8')]&&(this[_0x4070('0x6d')]||!_0x1b4417[_0x4070('0xf')]&&!_0x1b4417[_0x4070('0x67')])){if(_0xa5727[_0x4070('0x62')]){if(!Ut(_0xa5727,_0x1680d1))continue;let _0x164328=!0x0;for(const _0x903cd1 of _0xa5727[_0x4070('0x5b')]()){if(_0x903cd1[_0x4070('0x8d')](_0x405cdf,!0x0))return _0xa5727;_0x405cdf[_0x4070('0x8d')](_0x903cd1)||(_0x164328=!0x1);}_0x164328&&_0xa5727[_0x4070('0xdd')]();}else{const _0x45567c=_0xa5727['getFirstRange']();if(_0x45567c[_0x4070('0x8d')](_0x405cdf,!0x0))return _0xa5727;if(!Ut(_0xa5727,_0x1680d1)){_0x405cdf[_0x4070('0x8d')](_0x45567c)?_0xa5727[_0x4070('0x1d')]():_0x45567c[_0x4070('0x87')](_0x1d4862)?_0x1d4862=_0x45567c[_0x4070('0x39')]:_0x45567c[_0x4070('0x87')](_0x382eb5)&&(_0x382eb5=_0x45567c[_0x4070('0xe6')]);continue;}_0x1d4862=_0x1d4862['isBefore'](_0x45567c['start'])?_0x1d4862:_0x45567c[_0x4070('0xe6')],_0x382eb5=_0x382eb5[_0x4070('0x122')](_0x45567c[_0x4070('0x39')])?_0x382eb5:_0x45567c[_0x4070('0x39')],_0x1680d1=Object[_0x4070('0xd6')]({},_0xa5727[_0x4070('0xb7')]),_0x2a17fe?_0x45567c[_0x4070('0xe6')][_0x4070('0x108')](_0x2a17fe[_0x4070('0xcc')]()[_0x4070('0xe6')])?(_0x2a17fe['removeMarkers'](),_0x2a17fe=_0xa5727):_0xa5727[_0x4070('0x1d')]():_0x2a17fe=_0xa5727;}}}if(_0x2a17fe)return this[_0x4070('0xd5')](_0x2a17fe,this[_0x4070('0x58')]['createRange'](_0x1d4862,_0x382eb5)),_0x2a17fe;{const _0x3380fe=_0x2cecee(),_0x5d4d18=this[_0x4070('0x58')]['createRange'](_0x1d4862,_0x382eb5),_0x45a734=_0x1434fb['id'],_0x2245c8=_0x349ed4?'deletion:'+_0x349ed4:'deletion',_0x48626c=this[_0x4070('0xeb')]({'id':_0x3380fe,'type':_0x2245c8,'createdAt':new Date(),'authorId':_0x45a734,'attributes':_0x1680d1});return this[_0x4070('0x53')](_0x2245c8,_0x3380fe,_0x45a734,_0x5d4d18),_0x48626c;}}['markMultiRangeDeletion'](_0x4ad8b3,_0x439243=_0x4070('0x11e'),_0x58e5c2={}){const _0x35934d=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')]('Users')['me'],_0x31163f=_0x4ad8b3[_0x4070('0x12f')](_0x13362d=>new _0xa146d2(_0x13362d[_0x4070('0xe6')],_0x13362d[_0x4070('0x39')])),_0x763d1f=new Set();for(const {suggestion:_0x2c0826,meta:_0xcff323}of this[_0x4070('0x98')](_0x31163f,_0x4070('0x9b')))_0xcff323[_0x4070('0xc8')]&&!_0xcff323['isNextTo']&&_0x763d1f[_0x4070('0xd8')](_0x2c0826);for(const _0x5900d3 of _0x763d1f)if(_0x5900d3[_0x4070('0x62')]){const _0x1ec2ca=_0x5900d3[_0x4070('0x5b')]();(!_0x5900d3[_0x4070('0xb7')]||!_0x5900d3[_0x4070('0xb7')][_0x4070('0x86')])&&(_0x1ec2ca[_0x4070('0x64')](_0x339c3e=>_0x31163f[_0x4070('0x60')](_0x27260d=>_0x27260d[_0x4070('0x8d')](_0x339c3e,!0x0)))&&_0x5900d3['discard']());if(_0x31163f[_0x4070('0x64')](_0x28fa95=>_0x1ec2ca['some'](_0x226a76=>_0x226a76[_0x4070('0x8d')](_0x28fa95,!0x0)))){const _0x121d93=this['_suggestionFactory'][_0x4070('0x28')](_0x4070('0x1'),_0x439243,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x121d93(_0x4ad8b3,null,_0x58e5c2)),null;}}else{const _0x135bc1=_0x5900d3['getFirstRange']();_0x31163f[_0x4070('0x60')](_0x244b8c=>_0x244b8c[_0x4070('0x8d')](_0x135bc1,!0x0))&&_0x5900d3['discard']();if(_0x31163f[_0x4070('0x64')](_0x2c372a=>_0x135bc1[_0x4070('0x8d')](_0x2c372a,!0x0))){const _0x14f8b5=this['_suggestionFactory'][_0x4070('0x28')]('deletion',_0x439243,'accept');return this['forceDefaultExecution'](()=>_0x14f8b5(_0x31163f,null,_0x58e5c2)),null;}}const _0x592e1c=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x1'),_0x439243,_0x4070('0x11a'));let _0x1fb6f6=null;for(const _0x1bfcdc of this['getSuggestions']())if(_0x1bfcdc['author']['id']==_0x35934d['id']&&_0x1bfcdc['isInContent']&&'deletion'==_0x1bfcdc[_0x4070('0xef')]&&_0x1bfcdc[_0x4070('0x97')]==_0x439243&&Ut(_0x1bfcdc,_0x58e5c2)&&(_0x592e1c(_0x1bfcdc[_0x4070('0x5b')](),_0x31163f)||_0x592e1c(_0x31163f,_0x1bfcdc['getRanges']()))){if(_0x1fb6f6){if(_0x1bfcdc[_0x4070('0x2d')]&&_0x1bfcdc[_0x4070('0x2d')]['length'])continue;for(const _0x361dee of _0x1bfcdc[_0x4070('0x5b')]())_0x1fb6f6[_0x4070('0xc2')](_0x361dee)||_0x1fb6f6[_0x4070('0xdb')](_0x361dee);_0x1bfcdc['removeMarkers']();}else{_0x1fb6f6=_0x1bfcdc;for(const _0x3d4874 of _0x31163f)_0x1bfcdc[_0x4070('0xc2')](_0x3d4874)||_0x1bfcdc[_0x4070('0xdb')](_0x3d4874);}}if(_0x1fb6f6)return _0x1fb6f6;_0x763d1f[_0x4070('0xea')]();for(const {suggestion:_0x54c0f8,meta:_0x4dbc24}of this[_0x4070('0x98')](_0x31163f,_0x4070('0x1')))_0x4dbc24[_0x4070('0xc8')]&&(this[_0x4070('0x6d')]||!_0x4dbc24[_0x4070('0xf')]&&!_0x4dbc24[_0x4070('0x67')])&&Ut(_0x54c0f8,_0x58e5c2)&&_0x763d1f[_0x4070('0xd8')](_0x54c0f8);for(const _0x469af5 of _0x763d1f){const _0x1cb97a=_0x469af5[_0x4070('0x5b')]();if(!_0x58e5c2||!_0x58e5c2[_0x4070('0x86')]){if(_0x31163f['every'](_0x152370=>_0x1cb97a[_0x4070('0x60')](_0x13fe71=>_0x13fe71[_0x4070('0x8d')](_0x152370,!0x0))))return _0x469af5;}(!_0x469af5['attributes']||!_0x469af5[_0x4070('0xb7')][_0x4070('0x86')])&&(_0x1cb97a[_0x4070('0x64')](_0x26ae91=>_0x31163f['some'](_0x15b7e6=>_0x15b7e6[_0x4070('0x8d')](_0x26ae91,!0x0)))&&_0x469af5[_0x4070('0xdd')]());}const _0x3c97dd=_0x2cecee(),_0x1b1aff=_0x35934d['id'],_0x101bb5=_0x4070('0x127')+_0x439243,_0x25c076=this[_0x4070('0xeb')]({'id':_0x3c97dd,'type':_0x101bb5,'createdAt':new Date(),'authorId':_0x1b1aff,'attributes':_0x58e5c2});for(const _0x3021aa of _0x31163f)_0x3021aa['detach'](),_0x3021aa[_0x4070('0x3d')]||_0x4070('0xa9')==_0x3021aa['root']['rootName']||this[_0x4070('0x53')](_0x101bb5,_0x3c97dd,_0x1b1aff,_0x3021aa,_0x4062b9[_0x4070('0xf7')]());return _0x25c076;}[_0x4070('0xd5')](_0x206483,_0x1c6919){const _0x84ed7b=_0x206483[_0x4070('0x91')]();this['_model'][_0x4070('0x113')](_0x3de92b=>{_0x3de92b[_0x4070('0x1f')](_0x84ed7b,{'range':_0x1c6919});});}[_0x4070('0x120')](_0x81f66a){const _0x3178a2=_0x81f66a['id'],_0x53df76=this['editor'][_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xda'));this[_0x4070('0xf1')][_0x4070('0xa1')](_0x3178a2)||this[_0x4070('0xf1')][_0x4070('0x94')]({'channelId':_0x53df76,'threadId':_0x3178a2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x111af4=this[_0x4070('0xf1')][_0x4070('0x66')](_0x3178a2);_0x111af4[_0x4070('0x15')](_0x4070('0x45')),_0x111af4['isRemovable']=!0x1,_0x81f66a[_0x4070('0x2d')]=_0x111af4;}['_checkSuggestionCorrectness'](_0x738736,_0x1c5b4f,_0x264186,_0x19f27a){if(_0x738736[_0x4070('0xef')]!=_0x1c5b4f||_0x738736[_0x4070('0x97')]!=_0x264186||_0x738736[_0x4070('0x6b')]['id']!=_0x19f27a)throw this[_0x4070('0xab')][_0x4070('0xe9')]('track-changes-suggestion-data-mismatch'),new _0xe2c45(_0x4070('0xc'),this);}[_0x4070('0x2e')](_0x4a3551,_0x2ea9a2){const _0x5e6966=_0x4a3551['getFirstRange']();if(_0x2ea9a2[_0x4070('0xfd')](_0x5e6966))_0x4a3551['removeMarkers']();else{if(_0x5e6966[_0x4070('0x8d')](_0x2ea9a2)){const _0xe87acc=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0xe6')][_0x4070('0xe2')],_0x4070('0x39'));this[_0x4070('0xd5')](_0x4a3551,this['_model']['createRange'](_0x5e6966[_0x4070('0xe6')],_0xe87acc));const _0x5117bf=_0x2cecee(),_0x33dd20=_0x4a3551[_0x4070('0x6b')]['id'],_0x4b1f89=_0x4a3551[_0x4070('0xef')]+':'+_0x4a3551[_0x4070('0x97')];this[_0x4070('0xeb')]({'id':_0x5117bf,'type':_0x4b1f89,'createdAt':new Date(),'authorId':_0x33dd20,'data':_0x4a3551['data'],'attributes':_0x4a3551[_0x4070('0xb7')]});const _0x5e0228=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0x39')]['parent'],'after'),_0x567fb2=this[_0x4070('0x58')][_0x4070('0x10a')](_0x5e0228,_0x5e6966[_0x4070('0x39')]);this[_0x4070('0x53')](_0x4b1f89,_0x5117bf,_0x33dd20,_0x567fb2);}else{if(_0x5e6966[_0x4070('0x87')](_0x2ea9a2[_0x4070('0xe6')])){const _0x22015c=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0xe6')]['nodeBefore'],'end');this[_0x4070('0xd5')](_0x4a3551,this[_0x4070('0x58')][_0x4070('0x10a')](_0x5e6966[_0x4070('0xe6')],_0x22015c));}else{const _0x5e5a2f=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0x39')][_0x4070('0xe3')],'after');this[_0x4070('0xd5')](_0x4a3551,this[_0x4070('0x58')]['createRange'](_0x5e5a2f,_0x5e6966[_0x4070('0x39')]));}}}}[_0x4070('0x10b')](_0x39f460){for(const {suggestion:_0x1586eb,meta:_0x57bc54}of this[_0x4070('0x98')](_0x39f460,_0x4070('0x9b'))){if(!_0x57bc54[_0x4070('0xc8')])continue;const _0x3ac7b2=_0x1586eb[_0x4070('0x5b')]();for(const _0x2e3891 of _0x3ac7b2)if(!_0x39f460[_0x4070('0xbd')](_0x2e3891)[_0x4070('0x79')])return!0x0;}return!0x1;}[_0x4070('0xf2')](_0x51bd8e){const _0x5ef549=this[_0x4070('0xab')][_0x4070('0x116')]['get'](_0x4070('0xd9'))[_0x4070('0x4f')](_0x51bd8e);if(!_0x5ef549)throw new _0xe2c45(_0x4070('0xed'),this);return _0x5ef549;}[_0x4070('0xf6')](_0x1560f1){const _0xbf8696=this['editor'][_0x4070('0x116')][_0x4070('0x54')]('Users'),_0x23a21b=_0x211e1a(_0x4070('0xbb')+_0x1560f1),_0x5ddaa0=_0xbf8696[_0x4070('0x4f')](_0x23a21b);return _0x5ddaa0||_0xbf8696[_0x4070('0x7d')]({'id':_0x23a21b,'name':_0x1560f1});}['_createSuggestion'](_0x9fe8d,_0x5785f1,_0x535874,_0x4edaa1,_0x32c654){const _0x3275ac=this[_0x4070('0xf2')](_0x4edaa1),_0x24da9f=this[_0x4070('0xb4')][_0x4070('0x133')](_0x9fe8d,_0x5785f1,_0x535874,_0x3275ac,_0x32c654,_0x4e26e2=>this[_0x4070('0x93')](_0x535874,{'attributes':_0x4e26e2}));return this[_0x4070('0x4')](_0x24da9f,'accept',()=>{this['_updateSuggestionData'](_0x535874,{'state':'accepted'});},{'priority':'high'}),this[_0x4070('0x4')](_0x24da9f,_0x4070('0xdd'),()=>{this['_updateSuggestionData'](_0x535874,{'state':_0x4070('0x74')});},{'priority':'high'}),this[_0x4070('0x41')]['set'](_0x535874,_0x24da9f),this[_0x4070('0x5c')][_0x4070('0x13a')](_0x24da9f,'notReady'),_0x24da9f;}[_0x4070('0x8c')](_0x263b73){const _0x1b0500=_0x263b73[_0x4070('0x3f')](':');return{'group':_0x1b0500[0x0],'type':_0x1b0500[0x1],'subType':_0x1b0500[_0x4070('0x79')]>=0x5?_0x1b0500[0x2]:null,'id':_0x1b0500[_0x4070('0x79')]<0x5?_0x1b0500[0x2]:_0x1b0500[0x3],'authorId':_0x1b0500['length']<0x5?_0x1b0500[0x3]:_0x1b0500[0x4],'markerCount':0x6==_0x1b0500[_0x4070('0x79')]?_0x1b0500[0x5]:null};}[_0x4070('0x4e')](_0x537905,_0x5efc8d,_0x3175ed){const _0x4e02f6=_0x537905[_0x4070('0xcc')](),_0x2a9436=_0x4e02f6[_0x4070('0xe6')],_0x449b55=_0x4e02f6[_0x4070('0x39')];this['_setSuggestionRange'](_0x537905,this[_0x4070('0x58')]['createRange'](_0x2a9436,_0x5efc8d));const _0x494e41=_0x2cecee(),_0x2e8b78=_0x537905[_0x4070('0x6b')]['id'],_0x56b9f0=_0x537905[_0x4070('0xef')]+(_0x537905[_0x4070('0x97')]?':'+_0x537905[_0x4070('0x97')]:'');this[_0x4070('0xeb')]({'id':_0x494e41,'type':_0x56b9f0,'createdAt':new Date(),'authorId':_0x2e8b78,'originalSuggestionId':_0x537905['id'],'attributes':_0x537905[_0x4070('0xb7')],'data':_0x537905[_0x4070('0x78')]}),'formatBlock'==_0x537905[_0x4070('0xef')]&&(_0x3175ed=this[_0x4070('0x58')][_0x4070('0xcd')](_0x3175ed[_0x4070('0xe3')])),this[_0x4070('0x53')](_0x56b9f0,_0x494e41,_0x2e8b78,this[_0x4070('0x58')][_0x4070('0x10a')](_0x3175ed,_0x449b55));}[_0x4070('0x98')](_0x16f099,_0x1e7536=null){const _0x33da88=[],_0x377c76=this['editor'][_0x4070('0x116')][_0x4070('0x54')]('Users')['me'];Array[_0x4070('0x136')](_0x16f099)||(_0x16f099=[_0x16f099]);for(const _0x31824f of this['getSuggestions']()){if(!_0x31824f['isInContent'])continue;if(_0x1e7536&&_0x31824f[_0x4070('0xef')]!=_0x1e7536)continue;let _0x2ad4bb=!0x1;for(const _0x435710 of _0x31824f[_0x4070('0x5b')]()){for(const _0x30c338 of _0x16f099){const _0x1f05c7=_0x30c338['start'][_0x4070('0xfd')](_0x435710[_0x4070('0x39')])||_0x30c338[_0x4070('0x39')][_0x4070('0xfd')](_0x435710[_0x4070('0xe6')]);if(_0x1f05c7||_0x30c338['getIntersection'](_0x435710)){const _0x41028a=_0x30c338['containsRange'](_0x435710)&&Bt(this[_0x4070('0x58')][_0x4070('0xe8')],_0x435710[_0x4070('0xe6')],_0x30c338),_0x104bf2=_0x435710[_0x4070('0x8d')](_0x30c338)&&Bt(this[_0x4070('0x58')][_0x4070('0xe8')],_0x30c338[_0x4070('0xe6')],_0x435710);_0x33da88['push']({'suggestion':_0x31824f,'meta':{'isOwn':_0x377c76==_0x31824f[_0x4070('0x124')],'isNextTo':_0x1f05c7,'isInsideObject':_0x41028a,'containsRangeInObject':_0x104bf2}}),_0x2ad4bb=!0x0;break;}}if(_0x2ad4bb)break;}}return _0x33da88;}[_0x4070('0x53')](_0x2959ba,_0x2f6f12,_0x16bdd4,_0x1b8d30,_0x36ed13){this[_0x4070('0x58')]['change'](_0x21b6f1=>{let _0x2543f7=_0x4070('0x25')+_0x2959ba+':'+_0x2f6f12+':'+_0x16bdd4;_0x36ed13&&(_0x2543f7=_0x2543f7+':'+_0x36ed13),_0x21b6f1[_0x4070('0x9d')](_0x2543f7,{'range':_0x1b8d30,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4070('0x26')](_0x34940e){const _0x5b7081=_0x34940e[_0x4070('0x5d')],_0x663026=_0x34940e[_0x4070('0x44')];_0x34940e[_0x4070('0x5d')]=null,null!=_0x5b7081&&(_0x5b7081[_0x4070('0x44')]=null),_0x34940e['next']=null,null!=_0x663026&&(_0x663026[_0x4070('0x5d')]=null),_0x4070('0x21')==this[_0x4070('0x5c')]['get'](_0x34940e)&&(this[_0x4070('0x5c')][_0x4070('0x13a')](_0x34940e,'removed'),this[_0x4070('0xb3')]('suggestionUnloaded',_0x34940e,_0x5b7081,_0x663026));}[_0x4070('0xeb')](_0x4b657a){const _0x20a1fc=_0x4b657a['id'],_0x397978=this[_0x4070('0xc0')](_0x4b657a);if(this[_0x4070('0x36')]&&this['_adapter'][_0x4070('0x138')]){const _0x51b378=this['editor'][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0x6a')),_0x2bcd5d=_0x397978[_0x4070('0x9a')],_0x3c00f4=_0x397978['subType']?_0x397978[_0x4070('0xef')]+':'+_0x397978['subType']:_0x397978['type'],_0xce573f=this[_0x4070('0xab')][_0x4070('0xd7')],_0x38d2f1=_0x51b378[_0x4070('0xd8')](_0xa532f(_0xce573f,_0x4070('0x46'))),_0x3944ec={'id':_0x20a1fc,'type':_0x3c00f4,'hasComments':_0x2bcd5d,'data':_0x4b657a['data']||null,'originalSuggestionId':_0x4b657a['originalSuggestionId']||null,'attributes':_0x397978[_0x4070('0xb7')]};this[_0x4070('0x36')][_0x4070('0x138')](_0x3944ec)[_0x4070('0xa0')](_0x562408=>{_0x397978[_0x4070('0xd2')]=!0x0,_0x51b378[_0x4070('0x77')](_0x38d2f1),_0x562408&&_0x562408[_0x4070('0x115')]&&(this['_suggestions'][_0x4070('0x54')](_0x20a1fc)[_0x4070('0x115')]=_0x562408[_0x4070('0x115')]);})[_0x4070('0x8e')](_0x582959=>{throw _0x2f3731('error-saving-suggestion-data-suggestion-discarded'),this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0x70')]({'isUndoable':!0x1},()=>{_0x397978[_0x4070('0xdd')]();}),_0x397978[_0x4070('0x68')](),this[_0x4070('0x41')][_0x4070('0x75')](_0x397978['id']),this[_0x4070('0x5c')][_0x4070('0x75')](_0x397978),_0x582959;});}return _0x397978;}[_0x4070('0x93')](_0x779e7b,_0x4c0234){const _0x4fe699=this['editor']['plugins'][_0x4070('0x54')](_0x4070('0x6a')),_0x4abbdc=this[_0x4070('0x9f')](_0x779e7b);if(this['_adapter']&&this[_0x4070('0x36')][_0x4070('0x10c')]){if(_0x4abbdc[_0x4070('0xd2')]){const _0x430dca=_0x4fe699['add'](_0xa532f(this['editor'][_0x4070('0xd7')],'PENDING_ACTION_SUGGESTION'));this[_0x4070('0x36')][_0x4070('0x10c')](_0x779e7b,_0x4c0234)['then'](()=>{_0x4fe699[_0x4070('0x77')](_0x430dca);});}else _0x4abbdc['on']('change:_saved',()=>{this[_0x4070('0x93')](_0x779e7b,_0x4c0234);});}}[_0x4070('0x5a')](_0x188f70){if(!this['_adapter']||!this[_0x4070('0x36')][_0x4070('0x9f')])throw new _0xe2c45(_0x4070('0x100'),this);return this['_adapter'][_0x4070('0x9f')](_0x188f70);}[_0x4070('0x12c')](_0xb6ed49){const {id:_0x361235,type:_0x540b95,subType:_0x42110e,authorId:_0x235023}=this[_0x4070('0x8c')](_0xb6ed49),_0x19df79=this[_0x4070('0x41')][_0x4070('0x54')](_0x361235)||this['_createSuggestion'](_0x540b95,_0x42110e,_0x361235,_0x235023,{});switch(this[_0x4070('0x11c')](_0x19df79,_0x540b95,_0x42110e,_0x235023),this[_0x4070('0x5c')][_0x4070('0x54')](_0x19df79)){case _0x4070('0x27'):this[_0x4070('0x5a')](_0x361235)[_0x4070('0xa0')](_0x2e9399=>{let _0x22b4b2=Promise['resolve']();_0x2e9399['hasComments']&&(_0x22b4b2=this[_0x4070('0xf1')]['fetchCommentThread']({'channelId':this[_0x4070('0xab')][_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xda')),'threadId':_0x361235})),_0x22b4b2[_0x4070('0xa0')](()=>{this[_0x4070('0xc0')](_0x2e9399)[_0x4070('0xd2')]=!0x0;});}),this[_0x4070('0x5c')][_0x4070('0x13a')](_0x19df79,_0x4070('0x11d'));break;case _0x4070('0x105'):this[_0x4070('0x93')](_0x361235,{'state':_0x4070('0x119')});case'dataReady':this[_0x4070('0x5c')][_0x4070('0x13a')](_0x19df79,_0x4070('0x21')),this[_0x4070('0xb3')](_0x4070('0xa'),_0x19df79);break;case'ready':this[_0x4070('0xb3')]('suggestionChanged',_0x19df79);}return _0x19df79[_0x4070('0x65')](_0xb6ed49),_0x19df79;}[_0x4070('0x104')](_0x133811){const _0x10f5a1=Array[_0x4070('0x31')](_0x133811)['filter'](_0x31d94f=>!_0x31d94f[_0x4070('0x62')]),_0x1ccf02=this[_0x4070('0xc3')]({'skipNotAttached':!0x0})[_0x4070('0x112')](_0x4dba69=>!_0x4dba69['isMultiRange']),_0x3cfdc3=_0x1ccf02['filter'](_0x1d564a=>!_0x133811['has'](_0x1d564a)),_0x12b3ec=new Map(_0x1ccf02['map'](_0x1255b1=>[_0x1255b1,this[_0x4070('0xb4')][_0x4070('0x28')](_0x1255b1[_0x4070('0xef')],_0x1255b1[_0x4070('0x97')],'chain')])),_0x17367b=new Map(_0x1ccf02['map'](_0x18444e=>[_0x18444e,_0x18444e[_0x4070('0xcc')]()])),_0xc3b27f=new Set(),_0x3fe609=new Set();for(let _0x506a38=0x0;_0x506a38<_0x10f5a1[_0x4070('0x79')];_0x506a38++)_0x2962ab(_0x10f5a1[_0x506a38],_0x10f5a1,_0x506a38+0x1);for(let _0x2be0c3=0x0;_0x2be0c3<_0x10f5a1[_0x4070('0x79')];_0x2be0c3++)_0x2962ab(_0x10f5a1[_0x2be0c3],_0x3cfdc3,0x0);for(let _0x5e32bf=0x0;_0x5e32bf<_0x10f5a1['length'];_0x5e32bf++){const _0x349138=_0x10f5a1[_0x5e32bf];!_0x3fe609['has'](_0x349138)&&_0x349138[_0x4070('0x5d')]&&(_0x349138['previous'][_0x4070('0x44')]===_0x349138&&(_0x349138[_0x4070('0x5d')][_0x4070('0x44')]=null),_0x349138[_0x4070('0x5d')]=null),!_0xc3b27f['has'](_0x349138)&&_0x349138[_0x4070('0x44')]&&(_0x349138['next']['previous']===_0x349138&&(_0x349138[_0x4070('0x44')][_0x4070('0x5d')]=null),_0x349138[_0x4070('0x44')]=null);}function _0x2962ab(_0x17c9e9,_0x3ea4b4,_0x2dd633){for(let _0x1b13e9=_0x2dd633;_0x1b13e9<_0x3ea4b4[_0x4070('0x79')];_0x1b13e9++){const _0x2bee26=_0x37cf47(_0x17c9e9,_0x3ea4b4[_0x1b13e9]);_0x2bee26&&(_0x2bee26[0x0]['next']=_0x2bee26[0x1],_0x2bee26[0x1][_0x4070('0x5d')]=_0x2bee26[0x0],_0xc3b27f[_0x4070('0xd8')](_0x2bee26[0x0]),_0x3fe609[_0x4070('0xd8')](_0x2bee26[0x1]));}}function _0x37cf47(_0x30d990,_0x51fae2){if(_0x30d990[_0x4070('0x124')]['id']!==_0x51fae2[_0x4070('0x124')]['id'])return null;const _0x10c494=_0x12b3ec[_0x4070('0x54')](_0x30d990)(_0x30d990,_0x51fae2,_0x17367b['get'](_0x30d990),_0x17367b[_0x4070('0x54')](_0x51fae2));if(!_0x10c494)return null;return _0x12b3ec['get'](_0x51fae2)(_0x30d990,_0x51fae2,_0x17367b[_0x4070('0x54')](_0x30d990),_0x17367b[_0x4070('0x54')](_0x51fae2))?_0x10c494[0x1][_0x4070('0x2d')]&&_0x10c494[0x1][_0x4070('0x2d')]['length']?null:_0x10c494:null;}}[_0x4070('0x110')](_0x532c0c){const _0x4cf27f=Array['from'](_0x532c0c),_0x5ebfad=this[_0x4070('0xc3')]({'skipNotAttached':!0x0}),_0x1e19a2=_0x5ebfad[_0x4070('0x112')](_0x15ba58=>!_0x532c0c[_0x4070('0x131')](_0x15ba58)),_0x1018fa=new Map(_0x4cf27f['map'](_0x350a84=>[_0x350a84,this[_0x4070('0xb4')][_0x4070('0x28')](_0x350a84[_0x4070('0xef')],_0x350a84[_0x4070('0x97')],_0x4070('0x11a'))])),_0x27ec52=new Map(_0x5ebfad[_0x4070('0x12f')](_0x2eecf9=>[_0x2eecf9,_0x2eecf9[_0x4070('0x5b')]()]));for(let _0x32a209=0x0;_0x32a209<_0x4cf27f[_0x4070('0x79')];_0x32a209++){if(_0x351558(this,_0x4cf27f[_0x32a209],_0x4cf27f,_0x32a209+0x1))return!0x0;}for(let _0x4f002f=0x0;_0x4f002f<_0x4cf27f[_0x4070('0x79')];_0x4f002f++){if(_0x351558(this,_0x4cf27f[_0x4f002f],_0x1e19a2,0x0))return!0x0;}return!0x1;function _0x351558(_0x3c9b7e,_0x183af7,_0x3937e7,_0x16be0b){for(let _0x2b0b72=_0x16be0b;_0x2b0b72<_0x3937e7[_0x4070('0x79')];_0x2b0b72++){const _0x4d491e=_0x3937e7[_0x2b0b72];if(_0x4d491e['type']!==_0x183af7['type']||_0x4d491e[_0x4070('0x124')]['id']!==_0x183af7['author']['id']||_0x4d491e[_0x4070('0x97')]!==_0x183af7[_0x4070('0x97')])continue;if(!xt(_0x183af7,_0x4d491e))continue;const _0x340b81=_0x1018fa[_0x4070('0x54')](_0x183af7),_0x9e5eb=_0x27ec52[_0x4070('0x54')](_0x183af7),_0x56bc44=_0x27ec52['get'](_0x4d491e),_0x211ce4=_0x183af7[_0x4070('0x2d')]&&_0x183af7['commentThread'][_0x4070('0x79')],_0x5f1b61=_0x4d491e[_0x4070('0x2d')]&&_0x4d491e['commentThread']['length'];if(!_0x211ce4&&_0x340b81(_0x56bc44,_0x9e5eb))return _0x3c9b7e[_0x4070('0x23')](_0x4d491e,_0x183af7),_0x27ec52['delete'](_0x183af7),!0x0;if(!_0x5f1b61&&_0x340b81(_0x9e5eb,_0x56bc44))return _0x3c9b7e['_joinSuggestions'](_0x183af7,_0x4d491e),_0x27ec52[_0x4070('0x75')](_0x4d491e),!0x0;}return!0x1;}}[_0x4070('0x23')](_0x570881,_0x4c4f6e){if(_0x570881['isMultiRange'])for(const _0x455fe0 of _0x4c4f6e[_0x4070('0x5b')]())_0x570881[_0x4070('0xdb')](_0x455fe0);else{const _0x2305c8=_0x4c4f6e[_0x4070('0xcc')]()[_0x4070('0x39')];this[_0x4070('0xd5')](_0x570881,this[_0x4070('0x58')][_0x4070('0x10a')](_0x570881['getFirstRange']()[_0x4070('0xe6')],_0x2305c8));}_0x4c4f6e[_0x4070('0x1d')]();}}class Dt{constructor(_0xe8c426){this[_0x4070('0x137')]=_0xe8c426,this[_0x4070('0x58')]=_0xe8c426[_0x4070('0xbe')],this[_0x4070('0x82')]=new Map(),this[_0x4070('0xf3')]=new Map(),this[_0x4070('0xc6')]();}[_0x4070('0x133')](_0x2bfd14,_0x2759f2,_0x4f446a,_0x4121be,_0x2196b8,_0x5b9b27){return new _0x4062b9(this[_0x4070('0x58')],{'type':_0x2bfd14,'subType':_0x2759f2,'id':_0x4f446a,'author':_0x4121be,'creator':_0x4121be,'attributes':_0x2196b8,'onAttributesChange':_0x5b9b27,'onAccept':(..._0x37a6b9)=>this[_0x4070('0x28')](_0x2bfd14,_0x2759f2,_0x4070('0x129'))(..._0x37a6b9),'onDiscard':(..._0xed1abf)=>this[_0x4070('0x28')](_0x2bfd14,_0x2759f2,'discard')(..._0xed1abf)});}[_0x4070('0x10d')](_0x3505b1,_0x4b0598,_0x1e80b8,_0x15e0e8){const _0x4d7f5c=_0x3505b1+':'+_0x4b0598+':'+_0x1e80b8;this['_customCallbacks']['set'](_0x4d7f5c,_0x15e0e8);}['getSuggestionCallback'](_0x1e04ec,_0x1638b8,_0x9bd225){const _0x11e23d=_0x1e04ec+':'+_0x1638b8+':'+_0x9bd225;return this[_0x4070('0x82')][_0x4070('0x54')](_0x11e23d)||this[_0x4070('0xf3')][_0x4070('0x54')](_0x1e04ec+':'+_0x9bd225);}[_0x4070('0xc6')](){const _0x365ce0=()=>!0x1,_0x3312e8=_0xec210b=>{_0xec210b[_0x4070('0xff')]((_0x5eda87,_0x5154a1)=>_0x5eda87[_0x4070('0xe6')]['isBefore'](_0x5154a1['start'])?0x1:-0x1),this[_0x4070('0x58')]['change'](_0x40f5ab=>{for(const _0x50a327 of _0xec210b){let _0x25049e;_0x25049e=_0x50a327['end'][_0x4070('0x40')]&&_0x50a327['end']['parent']==_0x50a327[_0x4070('0xe6')][_0x4070('0x42')]?_0x40f5ab[_0x4070('0x9')](_0x50a327['start'][_0x4070('0x42')],'on'):_0x40f5ab[_0x4070('0x9')](_0x50a327),this['_model'][_0x4070('0x126')](_0x25049e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b52bc=(_0x283b45,_0x2c6444)=>{this[_0x4070('0x58')]['change'](_0x4f6477=>{const {commandName:_0x20e1ae,commandParams:_0x1a3aa4=[]}=_0x2c6444,_0x10624f=_0x283b45[_0x4070('0x12f')](_0x3f5647=>(_t(_0x3f5647)&&(_0x3f5647=this['_model']['createRange'](_0x3f5647['end'])),_0x3f5647))[_0x4070('0x112')](_0x5d0b92=>_0x4070('0xa9')!==_0x5d0b92[_0x4070('0xa4')]['rootName']);if(_0x10624f[_0x4070('0x79')]<0x1)return;const _0x37f031=Array[_0x4070('0x31')](this['_model'][_0x4070('0xfa')][_0x4070('0x32')][_0x4070('0x5b')]())['map'](_0x284dbe=>_0xa146d2[_0x4070('0x5e')](_0x284dbe));_0x4f6477[_0x4070('0x48')](_0x10624f);for(const _0x446dfd of this[_0x4070('0x137')][_0x4070('0x76')][_0x4070('0x76')]())_0x446dfd['refresh']();_0x1a3aa4[_0x4070('0xc1')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4070('0x5')](_0x20e1ae,..._0x1a3aa4);const _0x24e765=_0x37f031['filter'](_0x667a97=>'$graveyard'!=_0x667a97[_0x4070('0xa4')]['rootName']);_0x24e765[_0x4070('0x79')]>0x0&&_0x4f6477[_0x4070('0x48')](_0x24e765);for(const _0x44b025 of _0x37f031)_0x44b025[_0x4070('0x18')]();});},_0x561ce0=(_0x4c88a9,_0x174745)=>0x1==_0x4c88a9[_0x4070('0x79')]&&0x1==_0x174745[_0x4070('0x79')]&&_0x4c88a9[0x0]['end'][_0x4070('0xfd')](_0x174745[0x0][_0x4070('0xe6')]),_0x12c53d=(_0x3e81f1,_0x103dca,_0x1a5862,_0xaf2d92)=>jt(_0x3e81f1,_0x103dca,_0x1a5862,_0xaf2d92,this[_0x4070('0x58')])?[_0x3e81f1,_0x103dca]:jt(_0x103dca,_0x3e81f1,_0xaf2d92,_0x1a5862,this[_0x4070('0x58')])?[_0x103dca,_0x3e81f1]:null;this[_0x4070('0xf3')][_0x4070('0x13a')]('insertion:accept',_0x365ce0),this['_defaultCallbacks']['set']('insertion:discard',_0x3312e8),this['_defaultCallbacks']['set'](_0x4070('0x84'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x38'),_0x12c53d),this[_0x4070('0xf3')]['set'](_0x4070('0xa8'),_0x3312e8),this[_0x4070('0xf3')]['set'](_0x4070('0xb1'),_0x365ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x2'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')]('deletion:chain',_0x12c53d),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0xee'),_0x3b52bc),this[_0x4070('0xf3')][_0x4070('0x13a')]('formatInline:discard',_0x365ce0),this['_defaultCallbacks'][_0x4070('0x13a')](_0x4070('0x12'),_0x561ce0),this[_0x4070('0xf3')]['set'](_0x4070('0x103'),_0x365ce0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b52bc),this[_0x4070('0xf3')]['set'](_0x4070('0xad'),_0x365ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0xba'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x2b'),_0x365ce0);}}function Bt(_0x9820a1,_0x1322b6,_0x303593){for(const _0x71b712 of _0x1322b6['parent'][_0x4070('0xdf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x71b712['root']==_0x71b712)return!0x1;if(!_0x303593[_0x4070('0x95')](_0x71b712))return!0x1;if(_0x9820a1[_0x4070('0x8')](_0x71b712)||_0x9820a1['isLimit'](_0x71b712))return!0x0;}return!0x1;}function _t(_0x22b90d){return _0x22b90d[_0x4070('0x39')][_0x4070('0xe3')]==_0x22b90d[_0x4070('0xe6')]['nodeAfter']&&_0x22b90d['end'][_0x4070('0xde')];}function Mt(_0x59e324,_0xda6e9d,_0x4600a0,_0x1820a4){const _0x42e7e1=_0x43efd7=>!_0x43efd7[_0x4070('0x88')]['is'](_0x4070('0xcb'))&&!_0x1820a4['isObject'](_0x43efd7[_0x4070('0x88')]),_0x40fcff=_0x59e324[_0x4070('0xe6')][_0x4070('0x72')](_0x42e7e1),_0x12f019=_0x59e324['end'][_0x4070('0x72')](_0x42e7e1,{'direction':_0x4070('0xaf')});return(!_0x59e324[_0x4070('0xe6')]['isEqual'](_0x40fcff)||!_0x59e324[_0x4070('0x39')][_0x4070('0xfd')](_0x12f019))&&(_0x40fcff[_0x4070('0x108')](_0x12f019)?_0x4600a0[_0x4070('0x1f')](_0xda6e9d,{'range':_0x4600a0['createRange'](_0x40fcff,_0x12f019)}):_0x4600a0[_0x4070('0x1c')](_0xda6e9d),!0x0);}function $t(_0x13a583){return _0x211e1a(_0x13a583);}function Nt(_0x2adc09){const _0x45d578=_0x2adc09['start'][_0x4070('0x42')];return _0x45d578&&_0x45d578['is'](_0x4070('0xa5'));}function Rt(_0x1f331e,_0x3340f0){const _0x24ca19=_0x3340f0['schema'][_0x4070('0x8')](_0x1f331e)||_0x3340f0[_0x4070('0xe8')][_0x4070('0x128')](_0x1f331e);return _0x3340f0['createRange'](_0x3340f0['createPositionAt'](_0x1f331e,_0x4070('0x56')),_0x24ca19?_0x3340f0[_0x4070('0x16')](_0x1f331e):_0x3340f0[_0x4070('0x47')](_0x1f331e,_0x4070('0x39')));}function jt(_0x110926,_0x247536,_0x71481d,_0x341f62,_0x52b068){if(!xt(_0x110926,_0x247536))return!0x1;if(_0x71481d['end']['isEqual'](_0x341f62[_0x4070('0xe6')]))return!0x0;if(_0x110926[_0x4070('0xef')]!=_0x247536[_0x4070('0xef')])return!0x1;if(!_0x71481d[_0x4070('0x39')][_0x4070('0xa6')](_0x341f62[_0x4070('0xe6')]))return!0x1;const _0x26c7d4=_0x52b068['createRange'](_0x71481d['end'],_0x341f62[_0x4070('0xe6')])[_0x4070('0x7')]();for(const _0x2da79f of _0x26c7d4)if([_0x4070('0x80'),_0x4070('0xb2')][_0x4070('0xa3')](_0x2da79f['type'])&&_0x52b068[_0x4070('0xe8')][_0x4070('0xb0')](_0x2da79f[_0x4070('0x88')]))return!0x1;return!0x0;}function xt(_0x104af1,_0x5df175){return!(!_0x104af1['_isDataLoaded']||!_0x5df175[_0x4070('0x7f')])&&_0x52583c(_0x104af1[_0x4070('0xb7')],_0x5df175[_0x4070('0xb7')]);}function Ut(_0x36c4f1,_0x5e3ca8){const _0x3a885d=Ot(_0x36c4f1['attributes']),_0x141c80=Ot(_0x5e3ca8);if(!_0x36c4f1[_0x4070('0x7f')])return!0x1;for(const _0x25a508 of Object[_0x4070('0x12b')](_0x141c80))if(!_0x52583c(_0x3a885d[_0x25a508],_0x141c80[_0x25a508]))return!0x1;return!0x0;}function Ot(_0x335fd3){const _0x5bf282=Object[_0x4070('0xd6')]({},_0x335fd3);return delete _0x5bf282[_0x4070('0x86')],delete _0x5bf282['tablePasteChainId'],_0x5bf282;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dfe=['CommentsUI','innerView','length','set','execute','Annotations','isDirty','locale','actionView','from','addSourceCollector','_bindAnnotationToEditors','previous','isInContent','model','change:previous','commands','acceptSelectedSuggestions','add','_annotationViews','comments','CommentView','Accept\x20all\x20selected\x20suggestions','head','suggestionLoaded','_suggestionToController','_descriptionFactory','type','bind','activeAnnotations','_updateController','toMany','createAnnotation','Accept\x20all\x20suggestions','remove','createCommentThreadController','arrowView','pluginName','acceptAllSuggestions','separator','switchbutton','view','init','suggestionChanged','define','getAllAdjacentSuggestions','Track\x20changes','_handleControllerBuffer','plugins','CommentsRepository','trackChanges.disableComments','isMultiRange','activeMarkers','comments.maxThreadTotalWeight','getByInnerView','_viewToController','commandName','editor','buttonView','keys','Discard\x20all\x20suggestions','discardSelectedSuggestions','stopListening','destroy','editing','suggestion-','trackChanges','unbind','get','getSuggestion','getDescriptions','delete','_disableComments','focus','button','getMarkers','mainView','EditorAnnotations','Discard\x20all\x20selected\x20suggestions','reduce','isOn','lowest','refreshSelectedViews','comments.editorConfig','listenTo','_destroyController','push','isEnabled','source','_refreshActiveMarkers','filter','trackChanges.SuggestionThreadView','value','TrackChangesEditing','_createUIButton','comments.maxCommentsWhenCollapsed','acceptButton','has','getFirstRange','change:activeAnnotations','requires','hasSuggestion','_handleSuggestionControllerDelayed','componentFactory','descriptionParts','size'];(function(_0x5c644f,_0x3dfecd){const _0x5d01aa=function(_0x510228){while(--_0x510228){_0x5c644f['push'](_0x5c644f['shift']());}};_0x5d01aa(++_0x3dfecd);}(_0x3dfe,0x1e8));const _0x5d01=function(_0x5c644f,_0x3dfecd){_0x5c644f=_0x5c644f-0x0;let _0x5d01aa=_0x3dfe[_0x5c644f];return _0x5d01aa;};import{Plugin as _0xa84909}from'ckeditor5/src/core';import{Collection as _0x199267}from'ckeditor5/src/utils';import{Model as _0x31fa69,SplitButtonView as _0x2ede9c,createDropdown as _0x500b77,addListToDropdown as _0x4dc9b1}from'ckeditor5/src/ui';import{Users as _0x212378,getDateTimeFormatter as _0x26d530,getAllMarkersDomElementsSorted as _0x2e1fc5}from'ckeditor5-collaboration/src/collaboration-core';import _0x313b0a from'./trackchangesediting';import _0x4bf90f from'./ui/suggestioncontroller';import _0x107e2a from'./ui/view/suggestionthreadview';import{getTranslation as _0x22c608}from'./utils/common-translations';import _0x188be6 from'../theme/icons/track-changes.svg';export default class d extends _0xa84909{static get[_0x5d01('0x24')](){return[_0x313b0a,_0x212378,_0x5d01('0x5b'),_0x5d01('0x2f'),_0x5d01('0xd')];}static get[_0x5d01('0x4f')](){return'TrackChangesUI';}constructor(_0x144d09){super(_0x144d09),this[_0x5d01('0x43')]=new Map(),this[_0x5d01('0x61')]=new Map(),this[_0x5d01('0x3d')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x31252f=this[_0x5d01('0x63')]['config'];_0x31252f['define'](_0x5d01('0x1b'),_0x107e2a),_0x31252f[_0x5d01('0x56')](_0x5d01('0x5c'),!0x1),this[_0x5d01('0x8')]=_0x31252f[_0x5d01('0x4')]('trackChanges.disableComments');}[_0x5d01('0x26')](_0x4950e8,_0x49848a){0x0===this[_0x5d01('0x59')][_0x5d01('0x29')]&&setTimeout(()=>{for(const [_0x1e7f86,_0x200404]of this['_handleControllerBuffer']){const _0x198b4f=this[_0x5d01('0x43')][_0x5d01('0x21')](_0x1e7f86);_0x198b4f||_0x200404?_0x198b4f&&_0x200404&&this[_0x5d01('0x15')](_0x1e7f86):this['_initializeController'](_0x1e7f86);}this[_0x5d01('0x63')]['plugins'][_0x5d01('0x4')](_0x5d01('0xd'))[_0x5d01('0x12')](),this[_0x5d01('0x19')](),this[_0x5d01('0x59')]['clear']();},0xa),this[_0x5d01('0x59')]['set'](_0x4950e8,_0x49848a);}[_0x5d01('0x54')](){const _0x3b6fec=this[_0x5d01('0x63')],_0x12d2f6=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x1d')),_0x1117c4=_0x3b6fec['plugins']['get'](_0x5d01('0x2f')),_0x168f68=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0xd')),_0xc6c41f=_0x3b6fec[_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x5b'));_0x3b6fec['ui'][_0x5d01('0x27')]['add'](_0x5d01('0x2'),_0x286700=>this[_0x5d01('0x1e')](_0x286700)),_0x168f68[_0x5d01('0x34')](()=>{const _0x2b2a2=[];for(const [_0x2a28dc,_0x3edc2e]of Array[_0x5d01('0x33')](this['_suggestionToController'])){const _0x32ed1d=_0x2a28dc[_0x5d01('0x57')](),_0x287ba3=[];for(const _0x4732cc of _0x32ed1d){if(!_0x4732cc['isInContent'])continue;if(_0x4732cc[_0x5d01('0x5d')]){_0x287ba3[_0x5d01('0x16')](..._0x4732cc['getRanges']());continue;}const _0x24259c=_0x4732cc[_0x5d01('0x22')]();if(_0x287ba3[_0x5d01('0x2c')]>0x0){const _0x1dfee7=_0x287ba3[0x0]['getJoined'](_0x24259c);if(_0x1dfee7){_0x287ba3[0x0]=_0x1dfee7;continue;}}_0x287ba3['push'](_0x24259c);}_0x2b2a2[_0x5d01('0x16')]([_0x3edc2e['view'],_0x287ba3]);}return _0x2b2a2;}),this[_0x5d01('0x14')](_0x12d2f6,_0x5d01('0x42'),(_0x26ff5c,_0x2cf2f4)=>{this[_0x5d01('0x14')](_0x2cf2f4,_0x5d01('0x39'),(_0x5971e7,_0x8b5268,_0x51cddb,_0x2618bf)=>{_0x2cf2f4['isInContent']&&(null==_0x51cddb?(this[_0x5d01('0x48')](_0x2618bf['head']),this[_0x5d01('0x26')](_0x2cf2f4,!0x1)):(this[_0x5d01('0x48')](_0x51cddb[_0x5d01('0x41')]),this[_0x5d01('0x26')](_0x2cf2f4,!0x0)));}),null===_0x2cf2f4[_0x5d01('0x36')]?this['_handleSuggestionControllerDelayed'](_0x2cf2f4,!0x1):this['_updateController'](_0x2cf2f4[_0x5d01('0x41')]);}),this[_0x5d01('0x14')](_0x12d2f6,'suggestionUnloaded',(_0x15b28c,_0x339544,_0x2e3239)=>{this[_0x5d01('0x68')](_0x339544,_0x5d01('0x39')),this[_0x5d01('0x59')][_0x5d01('0x7')](_0x339544);const _0x27cddc=_0x2e3239?_0x2e3239[_0x5d01('0x41')]:_0x339544,_0x5a6829=this[_0x5d01('0x43')][_0x5d01('0x4')](_0x27cddc);null!==_0x2e3239&&this['_updateController'](_0x27cddc),null===_0x2e3239&&_0x5a6829&&this[_0x5d01('0x15')](_0x339544);}),this['listenTo'](_0x12d2f6,_0x5d01('0x55'),(_0x56780c,_0xb29059)=>{this[_0x5d01('0x48')](_0xb29059);}),this[_0x5d01('0x14')](_0x1117c4,_0x5d01('0x23'),()=>{this['_refreshActiveMarkers']();}),this[_0x5d01('0x14')](_0xc6c41f,'addComment',(_0x10a034,{threadId:_0x56c1f0,isFromAdapter:_0x1c3496})=>{if(_0x1c3496||!_0x12d2f6[_0x5d01('0x25')](_0x56c1f0))return;const _0x44f2ee=_0x12d2f6[_0x5d01('0x5')](_0x56c1f0);this[_0x5d01('0x43')][_0x5d01('0x4')](_0x44f2ee)['view']['focus']();},{'priority':_0x5d01('0x11')});}[_0x5d01('0x19')](){const _0x715cbe=this['editor'][_0x5d01('0x5a')][_0x5d01('0x4')](_0x5d01('0x2f')),_0x1d467b=this[_0x5d01('0x63')][_0x5d01('0x5a')][_0x5d01('0x4')]('TrackChangesEditing'),_0x3d3c7f=Array[_0x5d01('0x33')](_0x715cbe[_0x5d01('0x47')],_0x202ee6=>_0x202ee6[_0x5d01('0x2b')])[_0x5d01('0x1a')](_0x4d54d5=>this[_0x5d01('0x61')][_0x5d01('0x21')](_0x4d54d5)),_0x182f88=[];for(const _0x15ac73 of _0x3d3c7f){const _0x5f37d1=this[_0x5d01('0x61')][_0x5d01('0x4')](_0x15ac73)[_0x5d01('0x38')][_0x5d01('0x57')]();_0x182f88[_0x5d01('0x16')](..._0x5f37d1[_0x5d01('0xf')]((_0x384614,_0x1ad9e4)=>[..._0x384614,..._0x1ad9e4['getMarkerNames']()],[]));}_0x1d467b[_0x5d01('0x5e')]=_0x182f88;}[_0x5d01('0x1e')](_0x1d693b){const _0x11e7c9=_0x500b77(_0x1d693b,_0x2ede9c),_0xd77e98=this['editor'][_0x5d01('0x3a')][_0x5d01('0x4')]('trackChanges'),_0x443497=_0x22c608(_0x1d693b,_0x5d01('0x58'));_0x11e7c9[_0x5d01('0x64')][_0x5d01('0x2d')]({'tooltip':_0x443497,'label':_0x443497,'icon':_0x188be6}),_0x11e7c9[_0x5d01('0x64')]['bind'](_0x5d01('0x10'))['to'](_0xd77e98,_0x5d01('0x1c')),_0x11e7c9['buttonView']['on'](_0x5d01('0x2e'),()=>{_0xd77e98['execute'](),this['editor'][_0x5d01('0x0')][_0x5d01('0x53')][_0x5d01('0x9')]();});const _0xc7ac6f=new _0x199267(),_0x2d8446=[{'type':_0x5d01('0x52'),'model':{'withText':!0x0,'label':_0x443497,'commandName':_0x5d01('0x2')}},{'type':_0x5d01('0x51')},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x4b')),'commandName':_0x5d01('0x50')}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x40')),'commandName':_0x5d01('0x3b')}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0x66')),'commandName':'discardAllSuggestions'}},{'type':_0x5d01('0xa'),'model':{'withText':!0x0,'label':_0x22c608(_0x1d693b,_0x5d01('0xe')),'commandName':_0x5d01('0x67')}}];for(const _0x1aec46 of _0x2d8446){let _0x5e1203={'type':'separator'};if(_0x1aec46[_0x5d01('0x38')]){const _0x1a5359=new _0x31fa69(_0x1aec46['model']),_0x2fbdfb=this[_0x5d01('0x63')][_0x5d01('0x3a')]['get'](_0x1a5359[_0x5d01('0x62')]);_0x1a5359['bind'](_0x5d01('0x10'),_0x5d01('0x17'))['to'](_0x2fbdfb,_0x5d01('0x1c'),'isEnabled'),_0x5e1203={'type':_0x1aec46[_0x5d01('0x45')],'model':_0x1a5359};}_0xc7ac6f['add'](_0x5e1203);}_0x4dc9b1(_0x11e7c9,_0xc7ac6f);const _0x46a172=_0x2d8446['filter'](_0x166051=>null!=_0x166051[_0x5d01('0x38')])['map'](_0x313c88=>this[_0x5d01('0x63')][_0x5d01('0x3a')]['get'](_0x313c88[_0x5d01('0x38')][_0x5d01('0x62')])),_0x7fa68=_0x11e7c9[_0x5d01('0x64')];return _0x7fa68[_0x5d01('0x32')][_0x5d01('0x3')](_0x5d01('0x17')),_0x7fa68[_0x5d01('0x4e')][_0x5d01('0x3')](_0x5d01('0x17')),_0x7fa68[_0x5d01('0x32')]['bind']('isEnabled')['to'](_0xd77e98,_0x5d01('0x17')),_0x7fa68[_0x5d01('0x4e')][_0x5d01('0x46')](_0x5d01('0x17'))[_0x5d01('0x49')](_0x46a172,_0x5d01('0x17'),(..._0x2b36c5)=>_0x2b36c5['some'](_0xd34a97=>_0xd34a97)),_0x11e7c9['on'](_0x5d01('0x2e'),_0x4d8a83=>{this[_0x5d01('0x63')][_0x5d01('0x2e')](_0x4d8a83[_0x5d01('0x18')]['commandName']),this[_0x5d01('0x63')][_0x5d01('0x0')][_0x5d01('0x53')]['focus']();}),_0x11e7c9;}['_initializeController'](_0x5eafae){const _0x3e71b4=this[_0x5d01('0x63')],_0xf3d7f1=_0x3e71b4['config'],_0x155f5b=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x2f')),_0x17ce0d=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x5b')),_0xe99a43=_0x3e71b4[_0x5d01('0x5a')][_0x5d01('0x4')]('EditorAnnotations'),_0x50f35c=_0x3e71b4[_0x5d01('0x5a')][_0x5d01('0x4')](_0x212378)['me'],_0x2f4cfe=_0xf3d7f1['get'](_0x5d01('0x2'))['SuggestionThreadView'],{CommentsListView:_0x22abf5,CommentThreadInputView:_0x1873ba}=_0x3e71b4[_0x5d01('0x5a')]['get'](_0x5d01('0x2a'));let _0x1d8276,_0x517d0d;this[_0x5d01('0x3d')][_0x5d01('0x21')](_0x5eafae['id'])?(_0x517d0d=this['_annotationViews']['get'](_0x5eafae['id']),_0x1d8276=_0x517d0d[_0x5d01('0xc')]):(_0x1d8276=new _0x2f4cfe(_0x3e71b4[_0x5d01('0x31')],_0x5eafae,_0x50f35c,{'disableComments':this[_0x5d01('0x8')],'editorConfig':_0xf3d7f1['get'](_0x5d01('0x13')),'maxCommentsWhenCollapsed':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x1f')),'maxThreadTotalWeight':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x5f')),'maxCommentCharsWhenCollapsed':_0xf3d7f1[_0x5d01('0x4')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x26d530(_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x31'))),'CommentView':_0xf3d7f1[_0x5d01('0x4')](_0x5d01('0x3e'))[_0x5d01('0x3f')],'CommentsListView':_0x22abf5,'CommentThreadInputView':_0x1873ba}),_0x1d8276[_0x5d01('0x20')]['on'](_0x5d01('0x2e'),()=>{_0x3e71b4[_0x5d01('0x0')]['view'][_0x5d01('0x9')]();}),_0x1d8276['discardButton']['on'](_0x5d01('0x2e'),()=>{_0x3e71b4['editing'][_0x5d01('0x53')]['focus']();}),_0x517d0d=_0x155f5b['createAnnotationView'](this[_0x5d01('0x63')]['locale'],_0x1d8276),_0x517d0d['bind'](_0x5d01('0x30'))['to'](_0x1d8276,_0x5d01('0x30')),_0x517d0d['bind'](_0x5d01('0x2c'))['to'](_0x1d8276),_0x517d0d[_0x5d01('0x46')](_0x5d01('0x45'))['to'](_0x1d8276,_0x5d01('0x45'),_0x2940e5=>_0x5d01('0x1')+_0x2940e5),this['_annotationViews'][_0x5d01('0x2d')](_0x5eafae['id'],_0x517d0d));const _0x4c1c4c=_0x17ce0d[_0x5d01('0x4d')](_0x5eafae['commentThread'],_0x1d8276),_0x2d395f=new _0x4bf90f(_0x3e71b4,_0x5eafae,_0x1d8276,_0x4c1c4c),_0x3ca3e7=_0x5eafae[_0x5d01('0x57')]()[_0x5d01('0x1a')](_0x40e83f=>_0x40e83f[_0x5d01('0x37')]);_0x1d8276[_0x5d01('0x28')]=_0x3e71b4['plugins'][_0x5d01('0x4')](_0x5d01('0x1d'))[_0x5d01('0x44')]['getDescriptions'](_0x3ca3e7),this[_0x5d01('0x43')][_0x5d01('0x2d')](_0x5eafae,_0x2d395f),this[_0x5d01('0x61')][_0x5d01('0x2d')](_0x1d8276,_0x2d395f);const _0x3b68a7=_0x155f5b[_0x5d01('0x4a')]({'view':_0x517d0d,'target':()=>{const _0x11cd9c=[],_0x12b3ba=_0x5eafae[_0x5d01('0x57')]()[_0x5d01('0x1a')](_0x20e528=>_0x20e528['isInContent']);for(const _0x5cda34 of _0x12b3ba)_0x11cd9c['push'](..._0x5cda34[_0x5d01('0xb')]());return _0x2e1fc5(_0x3e71b4['editing'],_0x11cd9c);},'type':()=>_0x5d01('0x1')+_0x2d395f[_0x5d01('0x53')][_0x5d01('0x45')]});_0x17ce0d[_0x5d01('0x35')](_0x1d8276,_0x3b68a7),_0x155f5b[_0x5d01('0x3c')](_0x3b68a7),_0xe99a43['registerAnnotation'](_0x3b68a7);}['_destroyController'](_0x455df0){const _0x14d2d5=this[_0x5d01('0x63')][_0x5d01('0x5a')]['get'](_0x5d01('0x2f')),_0x1bdeb5=this['_suggestionToController'][_0x5d01('0x4')](_0x455df0),_0x5d3148=_0x1bdeb5[_0x5d01('0x53')],_0x1e3c9e=_0x14d2d5[_0x5d01('0x60')](_0x5d3148);_0x1e3c9e&&_0x14d2d5[_0x5d01('0x4c')](_0x1e3c9e),this[_0x5d01('0x43')][_0x5d01('0x7')](_0x455df0),this[_0x5d01('0x61')]['delete'](_0x5d3148),_0x1bdeb5[_0x5d01('0x69')]();}[_0x5d01('0x48')](_0x59bcdd){if(!_0x59bcdd['isInContent']||!this[_0x5d01('0x43')][_0x5d01('0x21')](_0x59bcdd))return;const _0x4508a3=this[_0x5d01('0x63')]['plugins']['get'](_0x5d01('0x1d')),_0x55a6f7=this[_0x5d01('0x43')]['get'](_0x59bcdd),_0x514a51=_0x59bcdd['getAllAdjacentSuggestions']();_0x55a6f7[_0x5d01('0x53')]['descriptionParts']=_0x4508a3[_0x5d01('0x44')][_0x5d01('0x6')](_0x514a51);}[_0x5d01('0x69')](){for(const _0x1f3d4e of this[_0x5d01('0x43')][_0x5d01('0x65')]())this[_0x5d01('0x15')](_0x1f3d4e);for(const _0x229e66 of this[_0x5d01('0x3d')]['values']())_0x229e66[_0x5d01('0xc')]['destroy']();super[_0x5d01('0x69')]();}}
23
+ const _0x5d5d=['getFirstRange','get','arrowView','comments.maxCommentCharsWhenCollapsed','createAnnotationView','getDescriptions','unbind','switchbutton','EditorAnnotations','locale','change:activeAnnotations','reduce','view','_annotationViews','suggestionLoaded','_updateController','change:previous','CommentsRepository','init','refreshSelectedViews','lowest','innerView','comments.editorConfig','delete','focus','_createUIButton','size','commentThread','type','TrackChangesUI','previous','from','getSuggestion','values','_descriptionFactory','actionView','suggestion-','config','getMarkerNames','button','trackChanges.disableComments','isEnabled','add','SuggestionThreadView','listenTo','_initializeController','keys','trackChanges','acceptAllSuggestions','trackChanges.SuggestionThreadView','discardButton','TrackChangesEditing','getMarkers','commands','filter','some','isOn','isMultiRange','getRanges','Annotations','commandName','push','_viewToController','getByInnerView','CommentView','requires','has','destroy','_handleSuggestionControllerDelayed','value','suggestionChanged','isInContent','_disableComments','_bindAnnotationToEditors','_destroyController','head','define','_suggestionToController','_refreshActiveMarkers','getJoined','clear','editor','CommentsUI','getAllAdjacentSuggestions','addComment','Track\x20changes','buttonView','componentFactory','plugins','acceptButton','Discard\x20all\x20suggestions','model','descriptionParts','_handleControllerBuffer','createAnnotation','addSourceCollector','isDirty','set','length','bind','separator','execute','pluginName','editing','acceptSelectedSuggestions','source','mainView'];(function(_0x3ef766,_0x5d5d2d){const _0x3b5a02=function(_0x3bcedb){while(--_0x3bcedb){_0x3ef766['push'](_0x3ef766['shift']());}};_0x3b5a02(++_0x5d5d2d);}(_0x5d5d,0x16c));const _0x3b5a=function(_0x3ef766,_0x5d5d2d){_0x3ef766=_0x3ef766-0x0;let _0x3b5a02=_0x5d5d[_0x3ef766];return _0x3b5a02;};import{Plugin as _0x5cae29}from'ckeditor5/src/core';import{Collection as _0x4c9845}from'ckeditor5/src/utils';import{Model as _0x3ae574,SplitButtonView as _0x5948dd,createDropdown as _0x5f25cc,addListToDropdown as _0x14be52}from'ckeditor5/src/ui';import{Users as _0x475d9e,getDateTimeFormatter as _0x2ff6ed,getAllMarkersDomElementsSorted as _0x302601}from'ckeditor5-collaboration/src/collaboration-core';import _0x26a636 from'./trackchangesediting';import _0xe3e04e from'./ui/suggestioncontroller';import _0x36c549 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1cf1e0}from'./utils/common-translations';import _0xcace68 from'../theme/icons/track-changes.svg';export default class d extends _0x5cae29{static get[_0x3b5a('0x16')](){return[_0x26a636,_0x475d9e,_0x3b5a('0x51'),_0x3b5a('0x10'),_0x3b5a('0x48')];}static get[_0x3b5a('0x3b')](){return _0x3b5a('0x5d');}constructor(_0x54bb91){super(_0x54bb91),this['_suggestionToController']=new Map(),this[_0x3b5a('0x13')]=new Map(),this[_0x3b5a('0x4d')]=new Map(),this[_0x3b5a('0x32')]=new Map();const _0x3c3577=this['editor'][_0x3b5a('0x65')];_0x3c3577['define'](_0x3b5a('0x6'),_0x36c549),_0x3c3577[_0x3b5a('0x21')](_0x3b5a('0x68'),!0x1),this[_0x3b5a('0x1d')]=_0x3c3577[_0x3b5a('0x41')]('trackChanges.disableComments');}[_0x3b5a('0x19')](_0x3d22df,_0x79a0de){0x0===this['_handleControllerBuffer'][_0x3b5a('0x5a')]&&setTimeout(()=>{for(const [_0x59a3dd,_0x599bdf]of this[_0x3b5a('0x32')]){const _0x310207=this[_0x3b5a('0x22')]['has'](_0x59a3dd);_0x310207||_0x599bdf?_0x310207&&_0x599bdf&&this[_0x3b5a('0x1f')](_0x59a3dd):this[_0x3b5a('0x2')](_0x59a3dd);}this['editor'][_0x3b5a('0x2d')][_0x3b5a('0x41')]('EditorAnnotations')[_0x3b5a('0x53')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x3b5a('0x25')]();},0xa),this[_0x3b5a('0x32')][_0x3b5a('0x36')](_0x3d22df,_0x79a0de);}[_0x3b5a('0x52')](){const _0x9ad87a=this['editor'],_0x3805f8=_0x9ad87a[_0x3b5a('0x2d')]['get'](_0x3b5a('0x8')),_0x7ed14e=_0x9ad87a[_0x3b5a('0x2d')]['get']('Annotations'),_0x30effb=_0x9ad87a['plugins'][_0x3b5a('0x41')](_0x3b5a('0x48')),_0x37f980=_0x9ad87a[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x51'));_0x9ad87a['ui'][_0x3b5a('0x2c')]['add'](_0x3b5a('0x4'),_0x181a20=>this[_0x3b5a('0x59')](_0x181a20)),_0x30effb[_0x3b5a('0x34')](()=>{const _0x2966f0=[];for(const [_0xff827e,_0x4d9be1]of Array['from'](this['_suggestionToController'])){const _0x5ccd41=_0xff827e[_0x3b5a('0x28')](),_0x352408=[];for(const _0x3c81d1 of _0x5ccd41){if(!_0x3c81d1[_0x3b5a('0x1c')])continue;if(_0x3c81d1[_0x3b5a('0xe')]){_0x352408[_0x3b5a('0x12')](..._0x3c81d1[_0x3b5a('0xf')]());continue;}const _0x502216=_0x3c81d1[_0x3b5a('0x40')]();if(_0x352408['length']>0x0){const _0x241e96=_0x352408[0x0][_0x3b5a('0x24')](_0x502216);if(_0x241e96){_0x352408[0x0]=_0x241e96;continue;}}_0x352408[_0x3b5a('0x12')](_0x502216);}_0x2966f0[_0x3b5a('0x12')]([_0x4d9be1[_0x3b5a('0x4c')],_0x352408]);}return _0x2966f0;}),this[_0x3b5a('0x1')](_0x3805f8,_0x3b5a('0x4e'),(_0x4bb322,_0x33a929)=>{this[_0x3b5a('0x1')](_0x33a929,_0x3b5a('0x50'),(_0x5b7932,_0x4d7276,_0x70690c,_0x28cd48)=>{_0x33a929['isInContent']&&(null==_0x70690c?(this[_0x3b5a('0x4f')](_0x28cd48['head']),this['_handleSuggestionControllerDelayed'](_0x33a929,!0x1)):(this[_0x3b5a('0x4f')](_0x70690c[_0x3b5a('0x20')]),this[_0x3b5a('0x19')](_0x33a929,!0x0)));}),null===_0x33a929[_0x3b5a('0x5e')]?this['_handleSuggestionControllerDelayed'](_0x33a929,!0x1):this[_0x3b5a('0x4f')](_0x33a929[_0x3b5a('0x20')]);}),this[_0x3b5a('0x1')](_0x3805f8,'suggestionUnloaded',(_0x245aa6,_0xc26594,_0x2a86e7)=>{this['stopListening'](_0xc26594,_0x3b5a('0x50')),this[_0x3b5a('0x32')][_0x3b5a('0x57')](_0xc26594);const _0x437d06=_0x2a86e7?_0x2a86e7[_0x3b5a('0x20')]:_0xc26594,_0x1be240=this[_0x3b5a('0x22')]['get'](_0x437d06);null!==_0x2a86e7&&this[_0x3b5a('0x4f')](_0x437d06),null===_0x2a86e7&&_0x1be240&&this['_destroyController'](_0xc26594);}),this[_0x3b5a('0x1')](_0x3805f8,_0x3b5a('0x1b'),(_0x5d99ca,_0x2c2019)=>{this[_0x3b5a('0x4f')](_0x2c2019);}),this['listenTo'](_0x7ed14e,_0x3b5a('0x4a'),()=>{this[_0x3b5a('0x23')]();}),this[_0x3b5a('0x1')](_0x37f980,_0x3b5a('0x29'),(_0x1b619e,{threadId:_0x27d3ba,isFromAdapter:_0x3dff5e})=>{if(_0x3dff5e||!_0x3805f8['hasSuggestion'](_0x27d3ba))return;const _0x1832ae=_0x3805f8[_0x3b5a('0x60')](_0x27d3ba);this[_0x3b5a('0x22')][_0x3b5a('0x41')](_0x1832ae)['view'][_0x3b5a('0x58')]();},{'priority':_0x3b5a('0x54')});}['_refreshActiveMarkers'](){const _0x4b166c=this[_0x3b5a('0x26')]['plugins'][_0x3b5a('0x41')](_0x3b5a('0x10')),_0xcf4585=this['editor'][_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x8')),_0x4ffb11=Array[_0x3b5a('0x5f')](_0x4b166c['activeAnnotations'],_0x473d75=>_0x473d75[_0x3b5a('0x55')])[_0x3b5a('0xb')](_0x4020b6=>this['_viewToController'][_0x3b5a('0x17')](_0x4020b6)),_0x364eb4=[];for(const _0x51a16d of _0x4ffb11){const _0x4431cc=this['_viewToController']['get'](_0x51a16d)[_0x3b5a('0x30')][_0x3b5a('0x28')]();_0x364eb4[_0x3b5a('0x12')](..._0x4431cc[_0x3b5a('0x4b')]((_0x22f2b0,_0x1abaf5)=>[..._0x22f2b0,..._0x1abaf5[_0x3b5a('0x66')]()],[]));}_0xcf4585['activeMarkers']=_0x364eb4;}[_0x3b5a('0x59')](_0x104aab){const _0x42dbb1=_0x5f25cc(_0x104aab,_0x5948dd),_0x5b9f9e=this['editor'][_0x3b5a('0xa')][_0x3b5a('0x41')]('trackChanges'),_0x24f4f7=_0x1cf1e0(_0x104aab,_0x3b5a('0x2a'));_0x42dbb1[_0x3b5a('0x2b')]['set']({'tooltip':_0x24f4f7,'label':_0x24f4f7,'icon':_0xcace68}),_0x42dbb1[_0x3b5a('0x2b')][_0x3b5a('0x38')](_0x3b5a('0xd'))['to'](_0x5b9f9e,_0x3b5a('0x1a')),_0x42dbb1[_0x3b5a('0x2b')]['on'](_0x3b5a('0x3a'),()=>{_0x5b9f9e[_0x3b5a('0x3a')](),this[_0x3b5a('0x26')][_0x3b5a('0x3c')][_0x3b5a('0x4c')]['focus']();});const _0x3edfa5=new _0x4c9845(),_0x22a876=[{'type':_0x3b5a('0x47'),'model':{'withText':!0x0,'label':_0x24f4f7,'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Accept\x20all\x20suggestions'),'commandName':_0x3b5a('0x5')}},{'type':_0x3b5a('0x67'),'model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x3b5a('0x3d')}},{'type':'button','model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,_0x3b5a('0x2f')),'commandName':'discardAllSuggestions'}},{'type':_0x3b5a('0x67'),'model':{'withText':!0x0,'label':_0x1cf1e0(_0x104aab,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0xa62040 of _0x22a876){let _0x3b8e29={'type':_0x3b5a('0x39')};if(_0xa62040['model']){const _0x4f1009=new _0x3ae574(_0xa62040['model']),_0x264003=this['editor'][_0x3b5a('0xa')]['get'](_0x4f1009[_0x3b5a('0x11')]);_0x4f1009[_0x3b5a('0x38')](_0x3b5a('0xd'),_0x3b5a('0x69'))['to'](_0x264003,_0x3b5a('0x1a'),'isEnabled'),_0x3b8e29={'type':_0xa62040[_0x3b5a('0x5c')],'model':_0x4f1009};}_0x3edfa5[_0x3b5a('0x6a')](_0x3b8e29);}_0x14be52(_0x42dbb1,_0x3edfa5);const _0x528b84=_0x22a876[_0x3b5a('0xb')](_0x19e1e9=>null!=_0x19e1e9[_0x3b5a('0x30')])['map'](_0x431ba2=>this[_0x3b5a('0x26')][_0x3b5a('0xa')]['get'](_0x431ba2[_0x3b5a('0x30')][_0x3b5a('0x11')])),_0x37877b=_0x42dbb1[_0x3b5a('0x2b')];return _0x37877b[_0x3b5a('0x63')][_0x3b5a('0x46')](_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x42')][_0x3b5a('0x46')](_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x63')]['bind'](_0x3b5a('0x69'))['to'](_0x5b9f9e,_0x3b5a('0x69')),_0x37877b[_0x3b5a('0x42')][_0x3b5a('0x38')](_0x3b5a('0x69'))['toMany'](_0x528b84,_0x3b5a('0x69'),(..._0x5c6dc0)=>_0x5c6dc0[_0x3b5a('0xc')](_0x1a3cc9=>_0x1a3cc9)),_0x42dbb1['on'](_0x3b5a('0x3a'),_0x358483=>{this[_0x3b5a('0x26')][_0x3b5a('0x3a')](_0x358483[_0x3b5a('0x3e')][_0x3b5a('0x11')]),this[_0x3b5a('0x26')][_0x3b5a('0x3c')][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x42dbb1;}[_0x3b5a('0x2')](_0x5df0d0){const _0x5c87f1=this['editor'],_0x145199=_0x5c87f1['config'],_0x560239=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x10')),_0x139469=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x51')),_0x1027d7=_0x5c87f1[_0x3b5a('0x2d')]['get'](_0x3b5a('0x48')),_0x310311=_0x5c87f1['plugins'][_0x3b5a('0x41')](_0x475d9e)['me'],_0xbfe373=_0x145199[_0x3b5a('0x41')]('trackChanges')[_0x3b5a('0x0')],{CommentsListView:_0x2dff7b,CommentThreadInputView:_0x14b8e2}=_0x5c87f1['plugins']['get'](_0x3b5a('0x27'));let _0x129055,_0x41ed97;this[_0x3b5a('0x4d')][_0x3b5a('0x17')](_0x5df0d0['id'])?(_0x41ed97=this[_0x3b5a('0x4d')]['get'](_0x5df0d0['id']),_0x129055=_0x41ed97[_0x3b5a('0x3f')]):(_0x129055=new _0xbfe373(_0x5c87f1[_0x3b5a('0x49')],_0x5df0d0,_0x310311,{'disableComments':this['_disableComments'],'editorConfig':_0x145199[_0x3b5a('0x41')](_0x3b5a('0x56')),'maxCommentsWhenCollapsed':_0x145199[_0x3b5a('0x41')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x145199['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x145199[_0x3b5a('0x41')](_0x3b5a('0x43')),'formatDateTime':_0x2ff6ed(_0x145199[_0x3b5a('0x41')](_0x3b5a('0x49'))),'CommentView':_0x145199[_0x3b5a('0x41')]('comments')[_0x3b5a('0x15')],'CommentsListView':_0x2dff7b,'CommentThreadInputView':_0x14b8e2}),_0x129055[_0x3b5a('0x2e')]['on'](_0x3b5a('0x3a'),()=>{_0x5c87f1[_0x3b5a('0x3c')][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x129055[_0x3b5a('0x7')]['on'](_0x3b5a('0x3a'),()=>{_0x5c87f1['editing'][_0x3b5a('0x4c')][_0x3b5a('0x58')]();}),_0x41ed97=_0x560239[_0x3b5a('0x44')](this['editor'][_0x3b5a('0x49')],_0x129055),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x35'))['to'](_0x129055,_0x3b5a('0x35')),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x37'))['to'](_0x129055),_0x41ed97[_0x3b5a('0x38')](_0x3b5a('0x5c'))['to'](_0x129055,_0x3b5a('0x5c'),_0x3817f7=>_0x3b5a('0x64')+_0x3817f7),this[_0x3b5a('0x4d')][_0x3b5a('0x36')](_0x5df0d0['id'],_0x41ed97));const _0x4f1f37=_0x139469['createCommentThreadController'](_0x5df0d0[_0x3b5a('0x5b')],_0x129055),_0x1075ad=new _0xe3e04e(_0x5c87f1,_0x5df0d0,_0x129055,_0x4f1f37),_0x48ff35=_0x5df0d0[_0x3b5a('0x28')]()['filter'](_0x205fac=>_0x205fac['isInContent']);_0x129055['descriptionParts']=_0x5c87f1[_0x3b5a('0x2d')][_0x3b5a('0x41')](_0x3b5a('0x8'))['_descriptionFactory'][_0x3b5a('0x45')](_0x48ff35),this[_0x3b5a('0x22')][_0x3b5a('0x36')](_0x5df0d0,_0x1075ad),this[_0x3b5a('0x13')]['set'](_0x129055,_0x1075ad);const _0x1f38c1=_0x560239[_0x3b5a('0x33')]({'view':_0x41ed97,'target':()=>{const _0x388474=[],_0x2bdefb=_0x5df0d0[_0x3b5a('0x28')]()[_0x3b5a('0xb')](_0x554821=>_0x554821['isInContent']);for(const _0x51d6a0 of _0x2bdefb)_0x388474[_0x3b5a('0x12')](..._0x51d6a0[_0x3b5a('0x9')]());return _0x302601(_0x5c87f1[_0x3b5a('0x3c')],_0x388474);},'type':()=>_0x3b5a('0x64')+_0x1075ad['view'][_0x3b5a('0x5c')]});_0x139469[_0x3b5a('0x1e')](_0x129055,_0x1f38c1),_0x560239[_0x3b5a('0x6a')](_0x1f38c1),_0x1027d7['registerAnnotation'](_0x1f38c1);}[_0x3b5a('0x1f')](_0x4fed35){const _0x1f470b=this[_0x3b5a('0x26')]['plugins'][_0x3b5a('0x41')]('Annotations'),_0x5b908c=this['_suggestionToController'][_0x3b5a('0x41')](_0x4fed35),_0x4e0a15=_0x5b908c[_0x3b5a('0x4c')],_0x25700b=_0x1f470b[_0x3b5a('0x14')](_0x4e0a15);_0x25700b&&_0x1f470b['remove'](_0x25700b),this['_suggestionToController'][_0x3b5a('0x57')](_0x4fed35),this[_0x3b5a('0x13')][_0x3b5a('0x57')](_0x4e0a15),_0x5b908c[_0x3b5a('0x18')]();}[_0x3b5a('0x4f')](_0x189575){if(!_0x189575[_0x3b5a('0x1c')]||!this['_suggestionToController']['has'](_0x189575))return;const _0x547c23=this[_0x3b5a('0x26')]['plugins']['get']('TrackChangesEditing'),_0x3861b9=this['_suggestionToController'][_0x3b5a('0x41')](_0x189575),_0x103434=_0x189575[_0x3b5a('0x28')]();_0x3861b9['view'][_0x3b5a('0x31')]=_0x547c23[_0x3b5a('0x62')]['getDescriptions'](_0x103434);}[_0x3b5a('0x18')](){for(const _0x1f89d0 of this[_0x3b5a('0x22')][_0x3b5a('0x3')]())this[_0x3b5a('0x1f')](_0x1f89d0);for(const _0x49dadc of this[_0x3b5a('0x4d')][_0x3b5a('0x61')]())_0x49dadc[_0x3b5a('0x3f')][_0x3b5a('0x18')]();super[_0x3b5a('0x18')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc712=['commands','_setPendingAction','stopListening','listenTo','acceptSuggestion','unbind','isDirty','bind','getRanges','view','get','discardSuggestion','model','_discardCommand','_removePendingAction','canAccept','execute','_pendingAction','_acceptCommand','canDiscard','isEnabled','locale','plugins','PendingActions','canEditAt','_editor','destroy','commentThreadController'];(function(_0x11c311,_0xc712c8){const _0x409ce7=function(_0x7ff658){while(--_0x7ff658){_0x11c311['push'](_0x11c311['shift']());}};_0x409ce7(++_0xc712c8);}(_0xc712,0xae));const _0x409c=function(_0x11c311,_0xc712c8){_0x11c311=_0x11c311-0x0;let _0x409ce7=_0xc712[_0x11c311];return _0x409ce7;};import{ObservableMixin as _0x3311b3}from'ckeditor5/src/utils';import{getTranslation as _0x546045}from'../utils/common-translations';export default class Ft extends _0x3311b3(){constructor(_0x319567,_0x5ba8a2,_0xd1d871,_0x1ffe71){super(),this[_0x409c('0x6')]=_0x5ba8a2,this[_0x409c('0x3')]=_0xd1d871,this[_0x409c('0x15')]=_0x1ffe71,this[_0x409c('0x13')]=_0x319567,this[_0x409c('0xc')]=_0x319567[_0x409c('0x16')][_0x409c('0x4')]('acceptSuggestion'),this[_0x409c('0x7')]=_0x319567['commands'][_0x409c('0x4')](_0x409c('0x5')),this[_0x409c('0x3')]['bind'](_0x409c('0xe'))['to'](this[_0x409c('0xc')],this[_0x409c('0x7')],(_0x238b3a,_0x842a4a)=>_0x238b3a||_0x842a4a),this[_0x409c('0x3')][_0x409c('0x1')](_0x409c('0x9'))['to'](this[_0x409c('0xc')],_0x409c('0xe'),_0x5232c1=>_0x5232c1&&this[_0x409c('0x13')][_0x409c('0x6')][_0x409c('0x12')](_0x5ba8a2[_0x409c('0x2')]())),this[_0x409c('0x3')]['bind'](_0x409c('0xd'))['to'](this['_discardCommand'],_0x409c('0xe'),_0x2e4e79=>_0x2e4e79&&this[_0x409c('0x13')]['model'][_0x409c('0x12')](_0x5ba8a2[_0x409c('0x2')]())),this[_0x409c('0xb')]=null,_0xd1d871['isDirty']&&this[_0x409c('0x17')](),this[_0x409c('0x19')](_0xd1d871,'acceptSuggestion',()=>this[_0x409c('0x1a')]()),this[_0x409c('0x19')](_0xd1d871,_0x409c('0x5'),()=>this[_0x409c('0x5')]()),this[_0x409c('0x19')](_0xd1d871,'change:isDirty',()=>{_0xd1d871[_0x409c('0x0')]?this[_0x409c('0x17')]():this['_removePendingAction']();});}[_0x409c('0x1a')](){this[_0x409c('0xc')][_0x409c('0xa')](this['model']['id']);}['discardSuggestion'](){this[_0x409c('0x7')][_0x409c('0xa')](this[_0x409c('0x6')]['id']);}['destroy'](){this[_0x409c('0x3')][_0x409c('0x1b')](_0x409c('0xe')),this[_0x409c('0x3')]['unbind']('canAccept'),this[_0x409c('0x3')][_0x409c('0x1b')](_0x409c('0xd')),this[_0x409c('0x18')](),this[_0x409c('0x15')][_0x409c('0x14')](),this[_0x409c('0xb')]&&this[_0x409c('0x8')]();}[_0x409c('0x17')](){const _0x5dba2e=_0x546045(this['_editor'][_0x409c('0xf')],'PENDING_ACTION_SUGGESTION');this[_0x409c('0xb')]=this[_0x409c('0x13')][_0x409c('0x10')][_0x409c('0x4')](_0x409c('0x11'))['add'](_0x5dba2e);}[_0x409c('0x8')](){null!==this[_0x409c('0xb')]&&this[_0x409c('0x13')][_0x409c('0x10')][_0x409c('0x4')]('PendingActions')['remove'](this['_pendingAction']),this[_0x409c('0xb')]=null;}}
23
+ const _0x2900=['_setPendingAction','add','locale','canDiscard','bind','_acceptCommand','isEnabled','canAccept','listenTo','model','acceptSuggestion','_removePendingAction','commentThreadController','_pendingAction','execute','get','remove','view','commands','_editor','getRanges','destroy','plugins','discardSuggestion','change:isDirty','PendingActions','unbind','_discardCommand','stopListening','canEditAt'];(function(_0x3c60ce,_0x29006e){const _0x2329b3=function(_0x3edbbb){while(--_0x3edbbb){_0x3c60ce['push'](_0x3c60ce['shift']());}};_0x2329b3(++_0x29006e);}(_0x2900,0x161));const _0x2329=function(_0x3c60ce,_0x29006e){_0x3c60ce=_0x3c60ce-0x0;let _0x2329b3=_0x2900[_0x3c60ce];return _0x2329b3;};import{ObservableMixin as _0x33cff4}from'ckeditor5/src/utils';import{getTranslation as _0x1a6c16}from'../utils/common-translations';export default class Ft extends _0x33cff4(){constructor(_0x27a0c5,_0x2fb6ec,_0x4fe062,_0x33c4db){super(),this[_0x2329('0x10')]=_0x2fb6ec,this[_0x2329('0x18')]=_0x4fe062,this['commentThreadController']=_0x33c4db,this[_0x2329('0x1a')]=_0x27a0c5,this[_0x2329('0xc')]=_0x27a0c5[_0x2329('0x19')]['get'](_0x2329('0x11')),this[_0x2329('0x4')]=_0x27a0c5[_0x2329('0x19')][_0x2329('0x16')](_0x2329('0x0')),this[_0x2329('0x18')]['bind']('isEnabled')['to'](this[_0x2329('0xc')],this[_0x2329('0x4')],(_0x418362,_0x5b41de)=>_0x418362||_0x5b41de),this[_0x2329('0x18')]['bind'](_0x2329('0xe'))['to'](this[_0x2329('0xc')],_0x2329('0xd'),_0x9ea01e=>_0x9ea01e&&this[_0x2329('0x1a')]['model'][_0x2329('0x6')](_0x2fb6ec[_0x2329('0x1b')]())),this[_0x2329('0x18')][_0x2329('0xb')](_0x2329('0xa'))['to'](this[_0x2329('0x4')],_0x2329('0xd'),_0x38ea0c=>_0x38ea0c&&this[_0x2329('0x1a')][_0x2329('0x10')][_0x2329('0x6')](_0x2fb6ec[_0x2329('0x1b')]())),this[_0x2329('0x14')]=null,_0x4fe062['isDirty']&&this[_0x2329('0x7')](),this[_0x2329('0xf')](_0x4fe062,'acceptSuggestion',()=>this[_0x2329('0x11')]()),this[_0x2329('0xf')](_0x4fe062,_0x2329('0x0'),()=>this[_0x2329('0x0')]()),this[_0x2329('0xf')](_0x4fe062,_0x2329('0x1'),()=>{_0x4fe062['isDirty']?this[_0x2329('0x7')]():this['_removePendingAction']();});}[_0x2329('0x11')](){this[_0x2329('0xc')][_0x2329('0x15')](this[_0x2329('0x10')]['id']);}[_0x2329('0x0')](){this[_0x2329('0x4')][_0x2329('0x15')](this[_0x2329('0x10')]['id']);}[_0x2329('0x1c')](){this[_0x2329('0x18')][_0x2329('0x3')](_0x2329('0xd')),this[_0x2329('0x18')][_0x2329('0x3')](_0x2329('0xe')),this[_0x2329('0x18')][_0x2329('0x3')](_0x2329('0xa')),this[_0x2329('0x5')](),this[_0x2329('0x13')][_0x2329('0x1c')](),this[_0x2329('0x14')]&&this[_0x2329('0x12')]();}[_0x2329('0x7')](){const _0x4f2bc8=_0x1a6c16(this['_editor'][_0x2329('0x9')],'PENDING_ACTION_SUGGESTION');this[_0x2329('0x14')]=this[_0x2329('0x1a')][_0x2329('0x1d')][_0x2329('0x16')](_0x2329('0x2'))[_0x2329('0x8')](_0x4f2bc8);}[_0x2329('0x12')](){null!==this[_0x2329('0x14')]&&this[_0x2329('0x1a')][_0x2329('0x1d')][_0x2329('0x16')]('PendingActions')[_0x2329('0x17')](this[_0x2329('0x14')]),this[_0x2329('0x14')]=null;}}