@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230827.0 → 0.0.0-nightly-20230829.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/importword.js +1 -1
  28. package/src/integrations/indent.js +1 -1
  29. package/src/integrations/inputcommand.js +1 -1
  30. package/src/integrations/link.js +1 -1
  31. package/src/integrations/list.js +1 -1
  32. package/src/integrations/listproperties.js +1 -1
  33. package/src/integrations/mediaembed.js +1 -1
  34. package/src/integrations/mention.js +1 -1
  35. package/src/integrations/pagebreak.js +1 -1
  36. package/src/integrations/paragraph.js +1 -1
  37. package/src/integrations/removeformat.js +1 -1
  38. package/src/integrations/restrictededitingmode.js +1 -1
  39. package/src/integrations/shiftentercommand.js +1 -1
  40. package/src/integrations/standardeditingmode.js +1 -1
  41. package/src/integrations/style.js +1 -1
  42. package/src/integrations/table.js +1 -1
  43. package/src/integrations/tablecaption.js +1 -1
  44. package/src/integrations/tableclipboard.js +1 -1
  45. package/src/integrations/tablecolumnresize.js +1 -1
  46. package/src/integrations/tableheadings.js +1 -1
  47. package/src/integrations/tablemergesplit.js +1 -1
  48. package/src/integrations/tableofcontents.js +1 -1
  49. package/src/integrations/tableproperties.js +1 -1
  50. package/src/integrations/template.js +1 -1
  51. package/src/integrations/title.js +1 -1
  52. package/src/integrations/undo.js +1 -1
  53. package/src/integrations/utils.js +1 -1
  54. package/src/suggestion.js +1 -1
  55. package/src/suggestiondescriptionfactory.js +1 -1
  56. package/src/trackchanges.js +1 -1
  57. package/src/trackchangesdata.js +1 -1
  58. package/src/trackchangesediting.js +1 -1
  59. package/src/trackchangesui.js +1 -1
  60. package/src/ui/suggestioncontroller.js +1 -1
  61. package/src/ui/view/basesuggestionthreadview.js +1 -1
  62. package/src/ui/view/suggestionthreadview.js +1 -1
  63. package/src/utils/common-translations.js +1 -1
  64. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4edf=['getAllAdjacentSuggestions','updateSuggestion','CommentsRepository','_findSuggestions','markerToHighlight','backward','markMultiRangeBlockFormat','set','getAncestors','group','formatInline:','Users','insertion:join','fire','commands','next','conversion','insertion:discard','nodeBefore','mapper','dataReady','insertion:accept','change:_saved','split','subType','containerElement','data-suggestion','trackChanges.trackFormatChanges','removeMarkers','activeMarkers','getRanges','acceptAllSuggestions','stop','chain','for','isInContent','_model','_refreshSuggestionsChain','suggestionChanged','getMarkers','getShiftedBy','unbind','getItems','never','creator','insertion','deletion:','consume','ready','isTouching','document','_splitMarkerName','_enabledCommands','start','track-changes-user-not-found','stopListening','_getSuggestionData','formatInline','addUser','buildSuggestion','getMultiRangeId','catch','default','name','containsRangeInObject','documentSelection','_isForcedDefaultExecutionBlock','markMultiRangeDeletion','value','applyOperation','markerReady','getWalker','join','schema','markerToData','getIntersection','getSuggestionCallback','markerName','PENDING_ACTION_SUGGESTION','moveTargetPosition','adapter','deletion:discard','range','removeClass','newRange','sort','containsRange','upcast','has','addClass','_saved','options','elementToElement','_createSuggestion','editing','addMarker:suggestion','TrackChangesEditing','markDeletion','deleteContent','formatBlock:chain','multipleBlocks','addMarker','formatInline:join','high','type','_customCallbacks','always','deletion:join','createdAt','isNextTo','includes','change:data','isMultiRange','size','deletion','low','ck-suggestion-marker-','addMarker:suggestion:formatBlock','createRange','author','getFirstRange','rootName','@external','_suggestionState','dataToMarker','formatBlock:accept','root','_descriptionFactory','PendingActions','commentThread','formatBlock:discard','addSuggestionData','getChangedMarkers','isOwn','createElement','isSelectable','originalSuggestionId','suggestion:','markMultiRangeInsertion','getUser','substr','getNearestSelectionRange','track-changes-adapter-missing-getsuggestion','accept','toViewElement','reconvertMarker','unbindElementFromMarkerName','createRangeIn','config','insertion:','insert','init','isLimit','removeMarker','removeComment','notReady','selection','isBlock','enableCommand','splice','dataDowncast','locale','track-changes-suggestion-not-found','createPositionBefore','normal','discard','data','$graveyard','add','previous','item','highest','discardSelectedSuggestions','external:','fromRange','differ','skipNestingCheck','createSelection','nodeAfter','isIntersectingWithRange','acceptSelectedSuggestions','after','model','_removeSuggestion','trackChangesCommand','change','_editor','isExternal','listenTo','getChanges','_rangeIsInLocalUserInsertion','getLastMatchingPosition','containsPosition','values','isBefore','_joinSuggestions','editingDowncast','registerPostFixer','delete','some','then','targetPosition','isEqual','_checkSuggestionCorrectness','filter','addComment','editor','markInsertion','isInsideObject','removeAttribute','_getExternalAuthor','createPositionAt','get','formatGroupId','isCollapsed','addMarkerName','ck-suggestion-marker--active','position','suggestionUnloaded','_registerDefaultCallbacks','_adapter','execute','formatBlock','deletion:accept','_addThreadToSuggestion','ck-suggestion-marker-formatBlock','plugins','fetchCommentThread','enqueueChange','suggestion','isRemovable','before','end','multi','head','bindElementToMarker','detach','isLocal','_breakSuggestionMarker','_mergeNestedSuggestions','return','showSuggestionHighlights','getDifference','parent','isUndo','hasCommentThread','define','track-changes-adapter-already-set','forceDefaultExecution','requires','_suggestions','addCommentThread','_setSuggestionRange','_joinWithAdjacentSuggestions','_updateSuggestionData','updateMarker','collaboration.channelId','getSuggestions','_suggestionFactory','toJSON','acceptSuggestion','formatBlock:join','from','push','discardSuggestion','update:suggestion','_cutOutSuggestionMarker','setSelection','addRange','getCustomProperty','forward','formatBlock:','_trackFormatChanges','pluginName','getFirstMarker','isAtEnd','authoredAt','_getAuthorFromId','trackChanges','_commentsRepository','getSuggestion','getAttribute','marker-count','ck-suggestion-marker','trackChanges.mergeNestedSuggestions','_defaultCallbacks','registerCustomCallback','hasComments','markBlockFormat','_handleNewSuggestionMarker','_setSuggestionData','markers','writer','hasSuggestion','suggestionLoaded','move','isAfter','getRange','howMany','track-changes-suggestion-data-mismatch','setAttribute','element','attributes','formatInline:chain','map','getCommentThread','length','consumable','_addSuggestionMarker','removed','elementStart','insertContent','commandName','addHighlight','every','addSuggestion','open','splitPosition','remove','isObject'];(function(_0x2c4b48,_0x4edf1e){const _0x90f5f8=function(_0x2d4ffc){while(--_0x2d4ffc){_0x2c4b48['push'](_0x2c4b48['shift']());}};_0x90f5f8(++_0x4edf1e);}(_0x4edf,0x11e));const _0x90f5=function(_0x2c4b48,_0x4edf1e){_0x2c4b48=_0x2c4b48-0x0;let _0x90f5f8=_0x4edf[_0x2c4b48];return _0x90f5f8;};import{Plugin as _0x18e92b,PendingActions as _0x30f394}from'ckeditor5/src/core';import{LiveRange as _0x1bb84e}from'ckeditor5/src/engine';import{CKEditorError as _0x2719f8,uid as _0x4c2669,priorities as _0x4da110,logWarning as _0x3cb7c3}from'ckeditor5/src/utils';import{toWidget as _0x51d751}from'ckeditor5/src/widget';import{Users as _0x235fe0,hashObject as _0x1db92d}from'ckeditor5-collaboration/src/collaboration-core';import _0xf624f4 from'./commands/trackchangescommand';import _0x47ff04 from'./commands/acceptsuggestioncommand';import _0xf961ee from'./commands/discardsuggestioncommand';import _0x45267e from'./commands/executeonallsuggestionscommand';import _0x4fe056 from'./commands/executeonselectedsuggestionscommand';import _0x1600fa from'./suggestion';import _0x563414 from'./suggestiondescriptionfactory';import _0x2e39f4 from'./integrations/alignment';import _0x315ff0 from'./integrations/basicstyles';import _0x3f04b1 from'./integrations/blockquote';import _0x3c302f from'./integrations/ckbox';import _0x5d34f6 from'./integrations/codeblock';import _0x591e22 from'./integrations/comments';import _0x5d28f1 from'./integrations/deletecommand';import _0x112e62 from'./integrations/documentlist';import _0x1a5bdd from'./integrations/entercommand';import _0x3482c9 from'./integrations/findandreplace';import _0x3ee5e0 from'./integrations/font';import _0x1f8d6d from'./integrations/formatpainter';import _0x58b8bc from'./integrations/heading';import _0xcda1b7 from'./integrations/highlight';import _0x4ed8a1 from'./integrations/horizontalline';import _0x2bd5e7 from'./integrations/htmlembed';import _0x3131a1 from'./integrations/image';import _0x43d3af from'./integrations/imagereplace';import _0x2a0583 from'./integrations/importword';import _0x3b3886 from'./integrations/indent';import _0x7b92dd from'./integrations/inputcommand';import _0x389f9f from'./integrations/link';import _0x7ee307 from'./integrations/list';import _0x3bceea from'./integrations/listproperties';import _0x579247 from'./integrations/mediaembed';import _0x418491 from'./integrations/mention';import _0x4d0c0f from'./integrations/pagebreak';import _0x271eb2 from'./integrations/paragraph';import _0x5993f1 from'./integrations/removeformat';import _0xfe14dd from'./integrations/restrictededitingmode';import _0x5099bf from'./integrations/shiftentercommand';import _0x10886c from'./integrations/standardeditingmode';import _0x3793c3 from'./integrations/style';import _0x165ae0 from'./integrations/table';import _0x171622 from'./integrations/tablemergesplit';import _0x227338 from'./integrations/tableheadings';import _0x1aeb8c from'./integrations/tableclipboard';import _0x5c8715 from'./integrations/tablecolumnresize';import _0x295988 from'./integrations/template';import _0x4ee9cc from'./integrations/tableofcontents';import _0x1ac9d1 from'./integrations/title';import _0x307f67 from'./integrations/undo';import{getTranslation as _0x3485ff}from'./utils/common-translations';import _0x15a84a from'./integrations/tablecaption';import _0x297711 from'./integrations/documentlistproperties';import _0x1239e7 from'./integrations/tableproperties';export default class p extends _0x18e92b{static get[_0x90f5('0x11b')](){return[_0x90f5('0x24'),_0x235fe0,_0x30f394,_0x2e39f4,_0x315ff0,_0x3f04b1,_0x3c302f,_0x5d34f6,_0x591e22,_0x5d28f1,_0x112e62,_0x297711,_0x1a5bdd,_0x3482c9,_0x3ee5e0,_0x1f8d6d,_0x58b8bc,_0xcda1b7,_0x4ed8a1,_0x2bd5e7,_0x3131a1,_0x43d3af,_0x2a0583,_0x3b3886,_0x7b92dd,_0x389f9f,_0x7ee307,_0x3bceea,_0x579247,_0x418491,_0x4d0c0f,_0x271eb2,_0x5993f1,_0xfe14dd,_0x5099bf,_0x10886c,_0x3793c3,_0x165ae0,_0x171622,_0x227338,_0x15a84a,_0x1aeb8c,_0x5c8715,_0x4ee9cc,_0x1239e7,_0x295988,_0x1ac9d1,_0x307f67];}static get[_0x90f5('0x133')](){return _0x90f5('0x82');}constructor(_0x34f824){function _0x16c92f(_0x347d15){return _0x347d15[_0x90f5('0x12')](_0x45ee3c=>String['fromCharCode'](_0x45ee3c))[_0x90f5('0x6a')]('');}super(_0x34f824),this['set'](_0x90f5('0x3f'),[]),this['on']('change:activeMarkers',(_0x7bc162,_0x30e4ec,_0x29799d,_0x11ef02)=>{this[_0x90f5('0x46')]['change'](()=>{for(const _0x557961 of[..._0x11ef02,..._0x29799d])this['_model'][_0x90f5('0x5')]['has'](_0x557961)&&_0x34f824[_0x90f5('0x80')][_0x90f5('0xb3')](_0x557961);});}),this[_0x90f5('0xa1')]=new _0x563414(this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0x6b')],this[_0x90f5('0xf0')][_0x90f5('0xc3')]),this['_adapter']=null,this[_0x90f5('0x124')]=new Dt(this[_0x90f5('0xf0')]),this['_suggestions']=new Map(),this[_0x90f5('0x139')]=_0x34f824[_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x24')),this[_0x90f5('0x56')]=new Set(),this[_0x90f5('0x46')]=this[_0x90f5('0xf0')][_0x90f5('0xd8')],this['_suggestionState']=new WeakMap(),this[_0x90f5('0x64')]=!0x1,_0x34f824['config']['define'](_0x90f5('0x3d'),_0x90f5('0x60')),this[_0x90f5('0x132')]=_0x34f824[_0x90f5('0xb6')][_0x90f5('0xf6')]('trackChanges.trackFormatChanges'),_0x34f824[_0x90f5('0xb6')][_0x90f5('0x118')](_0x90f5('0x13e'),!0x0),this[_0x90f5('0x111')]=_0x34f824['config'][_0x90f5('0xf6')](_0x90f5('0x13e')),this['trackChangesCommand']=new _0xf624f4(_0x34f824,this[_0x90f5('0x56')]),this[_0x16c92f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x16c92f([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x34]);}[_0x90f5('0xb9')](){const _0x5be522=this[_0x90f5('0xf0')];_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xe6'))[_0x90f5('0x26')]({'model':'suggestion','view':_0x4f4340=>{const {id:_0x279b2b,type:_0x42310b}=this[_0x90f5('0x55')](_0x4f4340[_0x90f5('0x6f')]),_0x1b81da=[_0x90f5('0x13d'),_0x90f5('0x96')+_0x42310b];let _0x582035=0xbb8;return this[_0x90f5('0x3f')][_0x90f5('0x90')](_0x4f4340['markerName'])&&(_0x1b81da['push'](_0x90f5('0xfa')),_0x582035=0xbc2),_0x90f5('0x94')==_0x42310b&&(_0x582035+=0x5),{'classes':_0x1b81da,'attributes':{'data-suggestion':_0x279b2b},'priority':_0x582035};}}),_0x5be522['conversion'][_0x90f5('0x44')](_0x90f5('0xc2'))[_0x90f5('0xca')](_0x4fa6fd=>{_0x4fa6fd['on'](_0x90f5('0x81'),(_0x52d5d3,_0x55fa08,_0x4f1109)=>{if(!_0x4f1109[_0x90f5('0x7d')]['showSuggestionHighlights'])return;const _0x3221f9=_0x55fa08[_0x90f5('0xcc')];if(!_0x3221f9)return;const _0x1b4c69=_0x4f1109[_0x90f5('0x35')][_0x90f5('0xb2')](_0x3221f9);_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')][_0x90f5('0x21')](_0x3221f9)&&_0x1b4c69&&!_0x1b4c69['getCustomProperty']('widget')&&_0x1b4c69['is'](_0x90f5('0x3b'))&&_0x51d751(_0x1b4c69,_0x4f1109[_0x90f5('0x6')]);},{'priority':'high'});}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xc2'))['markerToHighlight']({'model':_0x90f5('0x107'),'view':(_0x306905,_0x10f510)=>{if(!_0x10f510[_0x90f5('0x7d')][_0x90f5('0x113')])return null;const {type:_0x29a26f}=this['_splitMarkerName'](_0x306905['markerName']);return{'classes':[_0x90f5('0x13d'),_0x90f5('0x96')+_0x29a26f],'priority':0xbb8};}});const _0x1b24a5=({showActiveMarkers:_0x216e75=!0x0}={})=>(_0x37928b,_0x477b24,_0x36f076)=>{if(!_0x477b24[_0x90f5('0xcc')])return;if(_0x477b24[_0x90f5('0xcc')]['is'](_0x90f5('0xbe')))return void _0x36f076['consumable'][_0x90f5('0x51')](_0x477b24['item'],_0x37928b[_0x90f5('0x61')]);const _0x4b55f8=_0x36f076[_0x90f5('0x35')][_0x90f5('0xb2')](_0x477b24[_0x90f5('0xcc')]);if(!(_0x477b24['item']['is']('element')&&_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')]['isBlock'](_0x477b24['item'])&&!_0x4b55f8['getCustomProperty']('addHighlight')))return;const {id:_0x560642}=this[_0x90f5('0x55')](_0x477b24[_0x90f5('0x6f')]);_0x36f076[_0x90f5('0x6')][_0x90f5('0x7b')](['ck-suggestion-marker',_0x90f5('0x103')],_0x4b55f8),_0x36f076[_0x90f5('0x6')][_0x90f5('0xe')](_0x90f5('0x3c'),_0x560642,_0x4b55f8),_0x36f076['mapper'][_0x90f5('0x10d')](_0x4b55f8,_0x477b24[_0x90f5('0x6f')]),_0x216e75&&(this[_0x90f5('0x3f')][_0x90f5('0x90')](_0x477b24['markerName'])?_0x36f076[_0x90f5('0x6')][_0x90f5('0x7b')](_0x90f5('0xfa'),_0x4b55f8):_0x36f076[_0x90f5('0x6')]['removeClass'](_0x90f5('0xfa'),_0x4b55f8));for(const _0x4eb4ec of _0x5be522[_0x90f5('0xd8')][_0x90f5('0xb5')](_0x477b24['item'])[_0x90f5('0x4c')]())_0x36f076[_0x90f5('0x15')]['consume'](_0x4eb4ec,_0x37928b[_0x90f5('0x61')]);_0x36f076[_0x90f5('0x15')][_0x90f5('0x51')](_0x477b24['item'],_0x37928b[_0x90f5('0x61')]);};_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xc2'))['add'](_0x34ce7d=>{_0x34ce7d['on'](_0x90f5('0x97'),(_0x4702d,_0x91e004,_0x13f5be)=>{_0x13f5be[_0x90f5('0x7d')][_0x90f5('0x113')]&&_0x1b24a5({'showActiveMarkers':!0x1})(_0x4702d,_0x91e004,_0x13f5be);},{'priority':_0x90f5('0xcd')});}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')]('dataDowncast')[_0x90f5('0x6c')]({'model':_0x90f5('0x107'),'view':(_0x27456f,_0x443813)=>_0x443813[_0x90f5('0x7d')][_0x90f5('0x113')]?null:{'group':'suggestion','name':_0x27456f[_0x90f5('0xae')](0xb)}}),_0x5be522['conversion'][_0x90f5('0x44')](_0x90f5('0x79'))[_0x90f5('0x7e')]({'view':{'name':_0x90f5('0x107'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x324bb0,{writer:_0x165376})=>{let _0x3c5a15=_0x90f5('0xab')+_0x324bb0[_0x90f5('0x13b')]('suggestion-type')+':'+_0x324bb0['getAttribute']('id');return _0x324bb0[_0x90f5('0x13b')](_0x90f5('0x13c'))&&(_0x3c5a15+=':'+_0x324bb0[_0x90f5('0x13b')](_0x90f5('0x13c'))),_0x165376[_0x90f5('0xa8')]('$marker',{'data-name':_0x3c5a15});}}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0x79'))[_0x90f5('0x9e')]({'view':'suggestion'}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xe6'))[_0x90f5('0xca')](_0x8fa72d=>{_0x8fa72d['on'](_0x90f5('0x97'),_0x1b24a5(),{'priority':'high'});}),_0x5be522[_0x90f5('0x32')]['for'](_0x90f5('0xe6'))[_0x90f5('0xca')](_0x16c551=>{_0x16c551['on']('removeMarker:suggestion:formatBlock',(_0x19b4d7,_0x4fd612,_0x31a0e7)=>{const _0xd7114c=_0x31a0e7[_0x90f5('0x35')]['markerNameToElements'](_0x4fd612[_0x90f5('0x6f')]);if(_0xd7114c)for(const _0x398562 of _0xd7114c)_0x398562[_0x90f5('0x12f')](_0x90f5('0x1b'))||(_0x31a0e7[_0x90f5('0x6')][_0x90f5('0x75')]([_0x90f5('0x13d'),_0x90f5('0x103'),_0x90f5('0xfa')],_0x398562),_0x31a0e7['writer'][_0x90f5('0xf3')]('data-suggestion',_0x398562),_0x31a0e7['mapper'][_0x90f5('0xb4')](_0x398562,_0x4fd612[_0x90f5('0x6f')]));},{'priority':'high'});}),_0x5be522['model'][_0x90f5('0x54')]['registerPostFixer'](_0x599f38=>{let _0x20ec5f=!0x1;const _0x4a343e=Array[_0x90f5('0x128')](_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')][_0x90f5('0xa6')]()),_0x253364=new Set();for(const {name:_0x26c958,data:_0x27ca40}of _0x4a343e){const {group:_0x2a04fb,type:_0x2068ad,id:_0x21a7bf}=this[_0x90f5('0x55')](_0x26c958);if(_0x90f5('0x107')!==_0x2a04fb)continue;const _0x2abd4f=this[_0x90f5('0x11c')]['get'](_0x21a7bf);if(null!=_0x27ca40['newRange']){'formatInline'==_0x2068ad&&(_0x20ec5f=_0x20ec5f||Mt(_0x27ca40[_0x90f5('0x76')],_0x26c958,_0x599f38,_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')]));if(_0x27ca40['newRange'][_0x90f5('0xf8')]||'$graveyard'==_0x27ca40['newRange'][_0x90f5('0xa0')][_0x90f5('0x9b')]||_0x90f5('0x100')==_0x2068ad&&!Nt(_0x27ca40['newRange'])||_0x90f5('0x94')==_0x2068ad&&!(!_t(_0x22a875=_0x27ca40[_0x90f5('0x76')])&&!function(_0x57c300){return _0x57c300[_0x90f5('0x57')]['parent']==_0x57c300['end']['nodeBefore']&&_0x57c300[_0x90f5('0x57')][_0x90f5('0x135')];}(_0x22a875)))_0x599f38[_0x90f5('0xbb')](_0x26c958),_0x20ec5f=!0x0;else{if(!_0x2abd4f||!_0x2abd4f['isInContent'])continue;_0x253364[_0x90f5('0xca')](_0x2abd4f);}}}var _0x22a875;return _0x253364['size']>0x0&&(_0x20ec5f=!!this[_0x90f5('0x11f')](_0x253364)||_0x20ec5f),_0x20ec5f;}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xe7')](_0x1ae68a=>{let _0x5144a3=!0x1;for(const _0x43e549 of _0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')][_0x90f5('0xdf')]()){if(_0x90f5('0xb8')!=_0x43e549[_0x90f5('0x8a')])continue;const _0x4c957f=_0x43e549[_0x90f5('0xfb')]['getShiftedBy'](_0x43e549[_0x90f5('0x14')]);if(_0x4c957f[_0x90f5('0x135')])for(const _0x47c513 of this['_suggestions'][_0x90f5('0xe3')]()){if(_0x47c513[_0x90f5('0x92')]||!_0x47c513['isInContent'])continue;if(_0x90f5('0x100')!=_0x47c513['type'])continue;const _0x31bdca=_0x47c513[_0x90f5('0x9a')]();if(_0x31bdca[_0x90f5('0x57')][_0x90f5('0x115')]!=_0x31bdca[_0x90f5('0x10a')][_0x90f5('0x115')]&&_0x31bdca[_0x90f5('0x10a')][_0x90f5('0xec')](_0x43e549[_0x90f5('0xfb')])){const _0x18c0a2=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x98')](_0x31bdca[_0x90f5('0x57')],_0x4c957f);_0x1ae68a[_0x90f5('0x121')](_0x47c513[_0x90f5('0x134')](),{'range':_0x18c0a2}),_0x5144a3=!0x0;}}}return _0x5144a3;}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x5')]['on'](_0x90f5('0x12b'),(_0x1e64fd,_0x111058,_0x3e6fcd)=>{if(null==_0x3e6fcd){const {id:_0x586fe2}=this[_0x90f5('0x55')](_0x111058['name']),_0x1a1647=this['_suggestions']['get'](_0x586fe2);_0x1a1647&&_0x1a1647['addMarkerName'](_0x111058[_0x90f5('0x61')]);}}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')]['on'](_0x90f5('0x91'),()=>{const _0x2938a3=Array[_0x90f5('0x128')](_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')]['getChangedMarkers']())[_0x90f5('0xee')](_0x3dcb87=>_0x90f5('0x107')===this['_splitMarkerName'](_0x3dcb87['name'])[_0x90f5('0x2b')]);if(0x0===_0x2938a3['length'])return;_0x2938a3[_0x90f5('0x77')]((_0x5d5335,_0x3ab1a5)=>{const _0x141fb1=_0x5d5335[_0x90f5('0xc8')]['oldRange'],_0x22dedd=_0x3ab1a5[_0x90f5('0xc8')]['oldRange'];return null===_0x141fb1&&null===_0x22dedd?0x0:null===_0x141fb1&&null!==_0x22dedd?-0x1:null!==_0x141fb1&&null===_0x22dedd?0x1:_0x141fb1['start']['isBefore'](_0x22dedd[_0x90f5('0x57')])?-0x1:0x1;});const _0x1ae664=new Set(),_0x5dd479=new Set();for(const {name:_0x1dba5f,data:_0x15af71}of _0x2938a3){const {id:_0x26fa96}=this[_0x90f5('0x55')](_0x1dba5f);if(null===_0x15af71['oldRange']){const _0x3c637d=this[_0x90f5('0x3')](_0x1dba5f);_0x5dd479[_0x90f5('0xca')](_0x3c637d);}else{const _0x504a3=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x26fa96);null!==_0x15af71[_0x90f5('0x76')]||_0x504a3[_0x90f5('0x45')]?(_0x1ae664[_0x90f5('0xca')](_0x504a3[_0x90f5('0x10c')]),_0x5dd479[_0x90f5('0xca')](_0x504a3)):this[_0x90f5('0xd9')](_0x504a3);}}_0x5dd479[_0x90f5('0x93')]>0x0&&this[_0x90f5('0x47')](_0x5dd479);for(const _0x360ec3 of _0x1ae664)this[_0x90f5('0x2f')](_0x90f5('0x48'),_0x360ec3);}),_0x5be522[_0x90f5('0xd8')]['on'](_0x90f5('0x67'),(_0xadd0a8,_0x529552)=>{const _0x2c6cc4=_0x529552[0x0];if(!this[_0x90f5('0x11c')][_0x90f5('0x93')])return;if(!_0x2c6cc4['isDocumentOperation'])return;if(_0x2c6cc4['batch'][_0x90f5('0x116')]||!_0x2c6cc4['batch'][_0x90f5('0x10f')])return;let _0x5646f5,_0x330874;switch(_0x2c6cc4['type']){case'insert':_0x5646f5=_0x5be522['model'][_0x90f5('0xf5')](_0x2c6cc4['position']),_0x330874=_0x5646f5[_0x90f5('0x4a')](_0x2c6cc4[_0x90f5('0xc')]);break;case _0x90f5('0x39'):_0x5646f5=_0x5be522[_0x90f5('0xd8')]['createPositionAt'](_0x2c6cc4[_0x90f5('0x1f')]),_0x330874=_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x2c6cc4[_0x90f5('0x71')]);break;case _0x90f5('0x9'):_0x5646f5=_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x2c6cc4[_0x90f5('0xeb')]),_0x330874=_0x5646f5[_0x90f5('0x4a')](_0x2c6cc4['howMany']);break;default:return;}const _0x280a94=_0x5be522['model']['createRange'](_0x5646f5,_0x330874);_0x5be522[_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{for(const {suggestion:_0x29ffc1,meta:_0x215278}of this['_findSuggestions'](_0x280a94)){if(_0x29ffc1[_0x90f5('0x92')])continue;if(_0x90f5('0x5b')==_0x29ffc1['type'])continue;const _0x37db7e=_0x29ffc1[_0x90f5('0xc8')]&&_0x29ffc1[_0x90f5('0xc8')][_0x90f5('0x86')];(_0x90f5('0x100')!=_0x29ffc1[_0x90f5('0x8a')]||'split'==_0x2c6cc4['type']&&!_0x37db7e)&&(_0x215278[_0x90f5('0x62')]||_0x90f5('0x4f')==_0x29ffc1[_0x90f5('0x8a')]&&_0x215278[_0x90f5('0xa7')]||_0x29ffc1[_0x90f5('0x9a')]()['containsRange'](_0x280a94)&&this['_breakSuggestionMarker'](_0x29ffc1,_0x5646f5,_0x330874));}});},{'priority':'lowest'}),_0x5be522[_0x90f5('0xd8')]['on'](_0x90f5('0x84'),(_0x57b6cc,_0xb2ecd8)=>{const _0x2e902b=_0xb2ecd8[0x0],_0x4d3d41=_0xb2ecd8[0x1];if(_0x4d3d41&&_0x4d3d41['forceDefaultExecution'])return;if(this[_0x90f5('0x64')])return;if(!this[_0x90f5('0xda')][_0x90f5('0x66')])return;if(_0x2e902b[_0x90f5('0xf8')])return;const _0x1939c7=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')],{start:_0x1a7d4e,end:_0x4b1884}=_0x2e902b[_0x90f5('0x9a')](),_0x18f983=_0x1a7d4e['nodeAfter']&&_0x1939c7[_0x90f5('0xba')](_0x1a7d4e['nodeAfter'])?null:_0x1939c7[_0x90f5('0xaf')](_0x1a7d4e,_0x90f5('0x130')),_0x153d0c=_0x4b1884[_0x90f5('0x34')]&&_0x1939c7[_0x90f5('0xba')](_0x4b1884[_0x90f5('0x34')])?null:_0x1939c7[_0x90f5('0xaf')](_0x4b1884,_0x90f5('0x27')),_0x54b76b=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x98')](_0x18f983?_0x18f983[_0x90f5('0x57')]:_0x1a7d4e,_0x153d0c?_0x153d0c[_0x90f5('0x10a')]:_0x4b1884);_0x5be522[_0x90f5('0xd8')]['change'](_0x348766=>{this[_0x90f5('0x83')](_0x54b76b);const _0x18ac25=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')][_0x90f5('0xaf')](_0x54b76b['start']);_0x2e902b['is'](_0x90f5('0x63'))?_0x348766[_0x90f5('0x12d')](_0x18ac25):_0x2e902b['setTo'](_0x18ac25);}),_0x57b6cc[_0x90f5('0x42')]();},{'priority':_0x4da110[_0x90f5('0xc6')]+0xa}),_0x5be522['model']['on']('insertContent',(_0x2410e8,_0x44b1e8)=>{const _0x3356cb=_0x44b1e8[_0x44b1e8[_0x90f5('0x14')]-0x1];_0x3356cb&&_0x3356cb[_0x90f5('0x11a')]||this['_isForcedDefaultExecutionBlock']||this[_0x90f5('0xda')][_0x90f5('0x66')]&&(_0x5be522[_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{let _0x5edcc8=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x19')](_0x44b1e8[0x0],_0x44b1e8[0x1],_0x44b1e8[0x2],{'forceDefaultExecution':!0x0});if(!_0x5edcc8)return;_0x2410e8[_0x90f5('0x112')]=_0x5edcc8['clone']();const _0x27e122=_0x5edcc8['end'][_0x90f5('0x34')],_0x5dcba7=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')];_0x27e122&&_0x5dcba7[_0x90f5('0xbf')](_0x27e122)&&!_0x5dcba7['isObject'](_0x27e122)&&(_0x5edcc8=_0x5be522['model'][_0x90f5('0x98')](_0x5edcc8[_0x90f5('0x57')],_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x27e122,_0x90f5('0x10a')))),this[_0x90f5('0xf1')](_0x5edcc8);}),_0x2410e8[_0x90f5('0x42')]());},{'priority':'high'}),this[_0x90f5('0xf0')][_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0x138'),this[_0x90f5('0xda')]),this[_0x90f5('0xc0')](_0x90f5('0x138'));const _0x41a626=new _0x47ff04(_0x5be522,this[_0x90f5('0x11c')]);_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0x126'),_0x41a626),this[_0x90f5('0xc0')]('acceptSuggestion');const _0x3531aa=new _0xf961ee(_0x5be522,this[_0x90f5('0x11c')]);_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('discardSuggestion',_0x3531aa),this[_0x90f5('0xc0')](_0x90f5('0x12a')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('acceptAllSuggestions',new _0x45267e(_0x5be522,_0x41a626,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')](_0x90f5('0x41')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('discardAllSuggestions',new _0x45267e(_0x5be522,_0x3531aa,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')]('discardAllSuggestions'),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0xd6'),new _0x4fe056(_0x5be522,_0x41a626,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')](_0x90f5('0xd6')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0xce'),new _0x4fe056(_0x5be522,_0x3531aa,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')]('discardSelectedSuggestions');const _0x2b568f=_0x5be522[_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x24'));this['listenTo'](_0x2b568f,_0x90f5('0xef'),(_0x2f3040,{threadId:_0x4cb645})=>{const _0x31678e=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x4cb645);_0x31678e&&_0x31678e[_0x90f5('0xa3')]&&0x1===_0x31678e[_0x90f5('0xa3')]['length']&&this[_0x90f5('0x120')](_0x4cb645,{'hasComments':!0x0});},{'priority':_0x90f5('0x95')}),this[_0x90f5('0xde')](_0x2b568f,_0x90f5('0xbc'),(_0x1e9856,{threadId:_0x1f88f0})=>{const _0x2904bb=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x1f88f0);_0x2904bb&&_0x2904bb[_0x90f5('0xa3')]&&!_0x2904bb[_0x90f5('0xa3')][_0x90f5('0x14')]&&this[_0x90f5('0x120')](_0x1f88f0,{'hasComments':!0x1});},{'priority':_0x90f5('0x95')});}set[_0x90f5('0x72')](_0x3a6d08){if(this['_adapter'])throw new _0x2719f8(_0x90f5('0x119'),this);this['_adapter']=_0x3a6d08;}get[_0x90f5('0x72')](){return this[_0x90f5('0xfe')];}['getSuggestions']({skipNotAttached:_0x24a556=!0x1,toJSON:_0x1e327a=!0x1}={}){const _0x59ff64=[];for(const _0xd3810b of this[_0x90f5('0x11c')]['values']())_0x24a556&&!_0xd3810b[_0x90f5('0x45')]||_0x59ff64[_0x90f5('0x129')](_0xd3810b);return _0x1e327a?_0x59ff64[_0x90f5('0x12')](_0x192d0c=>_0x192d0c[_0x90f5('0x125')]()):_0x59ff64;}[_0x90f5('0x13a')](_0x501c27){const _0x30172f=this['_suggestions'][_0x90f5('0xf6')](_0x501c27);if(!_0x30172f)throw new _0x2719f8(_0x90f5('0xc4'),this);return _0x30172f;}[_0x90f5('0x7')](_0x1d7dfe){return this['_suggestions'][_0x90f5('0x7a')](_0x1d7dfe);}['addSuggestionData'](_0x21208e){const {authorId:_0x58cdfc,id:_0x3332ce,attributes:_0x31482e}=_0x21208e,[_0x43284e,_0x1ac5b2]=_0x21208e[_0x90f5('0x8a')][_0x90f5('0x39')](':'),_0xf1149f=this[_0x90f5('0x11c')]['get'](_0x3332ce)||this[_0x90f5('0x7f')](_0x43284e,_0x1ac5b2,_0x3332ce,_0x58cdfc,_0x31482e);if(this[_0x90f5('0x102')](_0xf1149f),this[_0x90f5('0xed')](_0xf1149f,_0x43284e,_0x1ac5b2||null,_0x58cdfc),_0xf1149f['createdAt']=_0x21208e['createdAt'],_0x31482e&&_0x31482e['@external']){const _0x383a84=_0x31482e[_0x90f5('0x9c')],_0x37d94d=this[_0x90f5('0xf4')](_0x383a84['authorName']);_0xf1149f[_0x90f5('0x136')]=_0x383a84[_0x90f5('0x8e')],_0xf1149f['author']=_0x37d94d,_0xf1149f[_0x90f5('0xdd')]=!0x0;}else _0xf1149f[_0x90f5('0x136')]=_0x21208e[_0x90f5('0x8e')];switch(_0x21208e[_0x90f5('0xc8')]&&(_0xf1149f[_0x90f5('0xc8')]=_0x21208e[_0x90f5('0xc8')]),_0x21208e[_0x90f5('0x10')]&&(_0xf1149f['attributes']=_0x21208e[_0x90f5('0x10')]),this[_0x90f5('0xfe')]&&this[_0x90f5('0xfe')]['addSuggestion']||(_0xf1149f[_0x90f5('0x7c')]=!0x0),this[_0x90f5('0x9d')][_0x90f5('0xf6')](_0xf1149f)){case'notReady':this[_0x90f5('0x9d')]['set'](_0xf1149f,_0x90f5('0x36'));break;case _0x90f5('0x68'):_0xf1149f[_0x90f5('0x45')]?(this['_suggestionState'][_0x90f5('0x29')](_0xf1149f,_0x90f5('0x52')),this[_0x90f5('0x2f')](_0x90f5('0x8'),_0xf1149f)):this[_0x90f5('0x9d')][_0x90f5('0x29')](_0xf1149f,'removed');}return _0xf1149f;}[_0x90f5('0x126')](_0xaee483){this[_0x90f5('0x11a')](()=>{this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{for(const _0x29345d of _0xaee483[_0x90f5('0x22')]())_0x29345d['accept']();});});}[_0x90f5('0x12a')](_0x3cbfc4){this[_0x90f5('0x11a')](()=>{this[_0x90f5('0xf0')]['model'][_0x90f5('0xdb')](()=>{for(const _0x3d7df2 of _0x3cbfc4[_0x90f5('0x22')]())_0x3d7df2[_0x90f5('0xc7')]();});});}[_0x90f5('0xc0')](_0x55840e,_0x119b2c){const _0x54db49=this[_0x90f5('0xf0')][_0x90f5('0x30')]['get'](_0x55840e);if(!_0x54db49)throw new _0x2719f8('track-changes-command-not-found',this,{'commandName':_0x55840e});this['_enabledCommands'][_0x90f5('0xca')](_0x54db49),_0x119b2c&&_0x54db49['on'](_0x90f5('0xff'),(_0x554af5,_0x4d7b7f)=>{this[_0x90f5('0xda')][_0x90f5('0x66')]&&(this[_0x90f5('0x64')]||_0x4d7b7f[_0x90f5('0x14')]>0x0&&_0x4d7b7f[_0x4d7b7f[_0x90f5('0x14')]-0x1]&&_0x4d7b7f[_0x4d7b7f[_0x90f5('0x14')]-0x1][_0x90f5('0x11a')]||(_0x119b2c((..._0x3cec76)=>_0x54db49[_0x90f5('0xff')](..._0x3cec76,{'forceDefaultExecution':!0x0}),..._0x4d7b7f),_0x554af5[_0x90f5('0x42')]()));},{'priority':_0x90f5('0x89')});}[_0x90f5('0x11a')](_0x10a2d3){let _0x4d208d,_0xcad224;const _0x56db93=this[_0x90f5('0x64')];this[_0x90f5('0x64')]=!0x0;try{_0x4d208d=_0x10a2d3();}catch(_0x208c4d){_0xcad224=_0x208c4d;}return _0x56db93||(this[_0x90f5('0x64')]=!0x1),_0xcad224&&_0x2719f8['rethrowUnexpectedError'](_0xcad224,this),_0x4d208d;}['markInsertion'](_0x5282e7,_0xcb2273=null,_0x177619={}){if(_0x5282e7['isCollapsed'])return null;const _0xb9174c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const {suggestion:_0x24d2cf,meta:_0x377605}of this[_0x90f5('0x25')](_0x5282e7,_0x90f5('0x4f')))if(_0x377605[_0x90f5('0xa7')]){if(!_0x377605[_0x90f5('0x8f')]){if(!this[_0x90f5('0x111')]&&_0x377605['containsRangeInObject'])continue;return _0x24d2cf;}if(_0xcb2273==_0x24d2cf[_0x90f5('0x3a')]){const _0x3ed23e=_0x24d2cf[_0x90f5('0x9a')]();return _0x3ed23e[_0x90f5('0x57')][_0x90f5('0xec')](_0x5282e7['end'])?this[_0x90f5('0x11e')](_0x24d2cf,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x5282e7['start'],_0x3ed23e[_0x90f5('0x10a')])):this[_0x90f5('0x11e')](_0x24d2cf,this['_model'][_0x90f5('0x98')](_0x3ed23e[_0x90f5('0x57')],_0x5282e7[_0x90f5('0x10a')])),_0x24d2cf;}}const _0x42c979=_0x4c2669(),_0xf09b16=_0xb9174c['id'],_0x1a6535=_0xcb2273?_0x90f5('0xb7')+_0xcb2273:_0x90f5('0x4f'),_0x2635b4=this['_setSuggestionData']({'id':_0x42c979,'type':_0x1a6535,'createdAt':new Date(),'authorId':_0xf09b16,'attributes':_0x177619});return this[_0x90f5('0x16')](_0x1a6535,_0x42c979,_0xf09b16,_0x5282e7),_0x2635b4;}[_0x90f5('0xac')](_0x28cb14,_0x4459f3='multi',_0x27b696={}){const _0x140a91=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x1db2e8=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x4f'),_0x4459f3,_0x90f5('0x6a'));for(const _0x6ddb7c of this[_0x90f5('0x123')]())if(_0x6ddb7c[_0x90f5('0x99')]['id']==_0x140a91['id']&&_0x90f5('0x4f')==_0x6ddb7c[_0x90f5('0x8a')]&&_0x6ddb7c[_0x90f5('0x3a')]==_0x4459f3&&(_0x1db2e8(_0x6ddb7c[_0x90f5('0x40')](),_0x28cb14)||_0x1db2e8(_0x28cb14,_0x6ddb7c[_0x90f5('0x40')]()))){for(const _0x43375b of _0x28cb14)_0x6ddb7c[_0x90f5('0x12e')](_0x43375b);return _0x6ddb7c;}if(this['_mergeNestedSuggestions'])for(const _0x3ee394 of _0x28cb14)for(const {suggestion:_0x447288,meta:_0x49aa86}of this[_0x90f5('0x25')](_0x3ee394,'insertion')){if(!_0x49aa86[_0x90f5('0xa7')])continue;let _0x3cc15d=!0x0;for(const _0x2a94c6 of _0x447288[_0x90f5('0x40')]())for(const _0x5c8be6 of _0x28cb14)if(!_0x2a94c6[_0x90f5('0x78')](_0x5c8be6)){_0x3cc15d=!0x1;break;}if(_0x3cc15d)return _0x447288;}const _0x31164f=_0x4c2669(),_0x26a797=_0x140a91['id'],_0x1a17a3=_0x90f5('0xb7')+_0x4459f3,_0x293795=this[_0x90f5('0x4')]({'id':_0x31164f,'type':_0x1a17a3,'createdAt':new Date(),'authorId':_0x26a797,'attributes':_0x27b696});for(const _0x11e00b of _0x28cb14)this[_0x90f5('0x16')](_0x1a17a3,_0x31164f,_0x26a797,_0x11e00b,_0x1600fa[_0x90f5('0x5e')]());return _0x293795;}['markInlineFormat'](_0x3b6abd,_0x40dc78,_0x53e0d0=null,_0x44027b={}){if(_0x53e0d0=_0x53e0d0||$t(_0x40dc78),_0x3b6abd[_0x90f5('0xf8')])return null;if(_0x90f5('0x4d')===this['_trackFormatChanges']){const _0x7019ef=this[_0x90f5('0x124')][_0x90f5('0x6e')]('formatInline',_0x53e0d0,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x7019ef([_0x3b6abd],_0x40dc78,_0x44027b)),null;}const _0x4ced05=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x24d497=[];if(_0x90f5('0x8c')!==this[_0x90f5('0x132')])for(const {suggestion:_0x141022,meta:_0x291281}of this[_0x90f5('0x25')](_0x3b6abd,_0x90f5('0x4f')))_0x291281[_0x90f5('0xa7')]&&!_0x291281[_0x90f5('0xf2')]&&_0x24d497[_0x90f5('0x129')](..._0x141022[_0x90f5('0x40')]());const _0x2431f6=function(_0x45f67b,_0x4d6d80){const _0x5a3ebb=[];for(const _0x280d5e of _0x4d6d80){const _0x103810=_0x45f67b[_0x90f5('0x6d')](_0x280d5e);_0x103810&&_0x5a3ebb[_0x90f5('0x129')](_0x103810);}return _0x5a3ebb;}(_0x3b6abd,_0x24d497),_0x63b616=function(_0x5a63da,_0x381b56){const _0x2566e9=[_0x5a63da];for(const _0x5c9166 of _0x381b56){let _0x234466=0x0;for(;_0x234466<_0x2566e9['length'];){const _0x1206db=_0x2566e9[_0x234466][_0x90f5('0x114')](_0x5c9166);_0x2566e9[_0x90f5('0xc1')](_0x234466,0x1,..._0x1206db),_0x234466+=_0x1206db[_0x90f5('0x14')];}}return _0x2566e9;}(_0x3b6abd,_0x24d497);_0x2431f6['length']&&this[_0x90f5('0x46')][_0x90f5('0xdb')](()=>{for(const _0x535611 of _0x2431f6){const _0x3281fb=this[_0x90f5('0x124')]['getSuggestionCallback'](_0x90f5('0x5b'),_0x53e0d0,_0x90f5('0xb1'));this['forceDefaultExecution'](()=>_0x3281fb([_0x535611],_0x40dc78,_0x44027b));}});for(const _0x3fff84 of _0x63b616){let _0x31b2f9=null,_0x7d94de=_0x3fff84[_0x90f5('0x57')],_0x2881e9=_0x3fff84[_0x90f5('0x10a')];for(const {suggestion:_0x30b937,meta:_0x1e9d14}of this['_findSuggestions'](_0x3fff84,_0x90f5('0x5b'))){if(!_0x1e9d14[_0x90f5('0xa7')])continue;if(_0x30b937['subType']!=_0x53e0d0)continue;const _0x344590=_0x30b937['getFirstRange']();if(_0x344590[_0x90f5('0x78')](_0x3fff84,!0x0))return null;_0x7d94de=_0x7d94de[_0x90f5('0xe4')](_0x344590[_0x90f5('0x57')])?_0x7d94de:_0x344590[_0x90f5('0x57')],_0x2881e9=_0x2881e9[_0x90f5('0xa')](_0x344590['end'])?_0x2881e9:_0x344590[_0x90f5('0x10a')],_0x31b2f9?_0x344590[_0x90f5('0x57')][_0x90f5('0xe4')](_0x31b2f9['getFirstRange']()[_0x90f5('0x57')])?(_0x31b2f9[_0x90f5('0x3e')](),_0x31b2f9=_0x30b937):_0x30b937[_0x90f5('0x3e')]():_0x31b2f9=_0x30b937;}const _0x23476f=this['_model'][_0x90f5('0x98')](_0x7d94de,_0x2881e9);if(_0x31b2f9)this[_0x90f5('0x11e')](_0x31b2f9,_0x23476f);else{const _0x62339a=_0x4c2669(),_0x43f270=_0x4ced05['id'];this[_0x90f5('0x4')]({'id':_0x62339a,'type':_0x90f5('0x2c')+_0x53e0d0,'data':_0x40dc78,'createdAt':new Date(),'authorId':_0x43f270,'attributes':_0x44027b}),this[_0x90f5('0x16')]('formatInline:'+_0x53e0d0,_0x62339a,_0x43f270,_0x23476f);}}return null;}[_0x90f5('0x2')](_0x1070ac,_0x8114b,_0x316017=[],_0x5808b5=null,_0x109a6d={}){_0x8114b[_0x90f5('0xf7')]||(_0x8114b[_0x90f5('0xf7')]=_0x8114b[_0x90f5('0x1a')]),_0x8114b[_0x90f5('0x86')]=_0x1070ac['is'](_0x90f5('0x74')),_0x5808b5=_0x5808b5||$t(_0x8114b);const _0x4e5fb8=_0x316017[_0x90f5('0x12')](_0x22280a=>Rt(_0x22280a,this[_0x90f5('0x46')])),_0x5d69e4=_0x1070ac['is']('range')?_0x1070ac:Rt(_0x1070ac,this[_0x90f5('0x46')]);if('never'===this[_0x90f5('0x132')]){const _0x5497e7=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x100'),_0x5808b5,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x5497e7([_0x5d69e4],_0x8114b,_0x109a6d)),null;}_0x4e5fb8[_0x90f5('0x129')](_0x5d69e4);let _0x2e77ba=!0x0;for(const _0x505040 of _0x4e5fb8)if(!this[_0x90f5('0xe0')](_0x505040)){_0x2e77ba=!0x1;break;}if(_0x2e77ba&&_0x90f5('0x8c')!==this[_0x90f5('0x132')]){const _0x49543f=this['_suggestionFactory'][_0x90f5('0x6e')]('formatBlock',_0x5808b5,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x49543f([_0x5d69e4],_0x8114b,_0x109a6d)),null;}let _0x141403=null,_0x431f52=_0x5d69e4[_0x90f5('0x57')],_0x2bf14c=_0x5d69e4[_0x90f5('0x10a')];for(const {suggestion:_0x4a1fea,meta:_0x29e453}of this['_findSuggestions'](_0x5d69e4,_0x90f5('0x100'))){if(!_0x29e453[_0x90f5('0xa7')]||_0x29e453[_0x90f5('0x8f')]||_0x29e453['containsRangeInObject']||_0x29e453[_0x90f5('0xf2')])continue;if(_0x4a1fea['data'][_0x90f5('0xf7')]!=_0x8114b[_0x90f5('0xf7')])continue;const _0x9f1673=_0x4a1fea['getFirstRange']();if(_0x4a1fea['subType']==_0x5808b5){if(_0x9f1673[_0x90f5('0x78')](_0x5d69e4,!0x0))return null;_0x431f52=_0x431f52[_0x90f5('0xe4')](_0x9f1673['start'])?_0x431f52:_0x9f1673[_0x90f5('0x57')],_0x2bf14c=_0x2bf14c['isAfter'](_0x9f1673['end'])?_0x2bf14c:_0x9f1673[_0x90f5('0x10a')],_0x141403?_0x9f1673['start']['isBefore'](_0x141403['getFirstRange']()[_0x90f5('0x57')])?(_0x141403[_0x90f5('0x3e')](),_0x141403=_0x4a1fea):_0x4a1fea[_0x90f5('0x3e')]():_0x141403=_0x4a1fea;}else{const _0x42ca11=_0x5d69e4['getIntersection'](_0x9f1673);this[_0x90f5('0x12c')](_0x4a1fea,_0x42ca11);}}const _0x337a00=this[_0x90f5('0xf0')]['plugins']['get'](_0x90f5('0x2d'))['me'],_0x28bfcf=_0x4c2669(),_0x14f7db=_0x337a00['id'];if(_0x141403)return this[_0x90f5('0x11e')](_0x141403,this['_model'][_0x90f5('0x98')](_0x431f52,_0x2bf14c)),_0x141403;{const _0x19c6ce=this[_0x90f5('0x4')]({'id':_0x28bfcf,'type':_0x90f5('0x131')+_0x5808b5,'data':_0x8114b,'createdAt':new Date(),'authorId':_0x14f7db,'attributes':_0x109a6d});return this[_0x90f5('0x16')](_0x90f5('0x131')+_0x5808b5,_0x28bfcf,_0x14f7db,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x431f52,_0x2bf14c)),_0x19c6ce;}}[_0x90f5('0x28')](_0x4640e2,_0x4df877,_0x2addb6=[],_0x1f13c6=null,_0x360200={}){_0x4df877['formatGroupId']||(_0x4df877['formatGroupId']=_0x4df877[_0x90f5('0x1a')]);const _0x285c30=_0x4640e2[0x0];_0x4df877[_0x90f5('0x86')]=_0x285c30['is'](_0x90f5('0x74')),_0x1f13c6=_0x1f13c6||$t(_0x4df877);const _0x578f40=_0x2addb6[_0x90f5('0x12')](_0x352f36=>Rt(_0x352f36,this[_0x90f5('0x46')])),_0x346bb0=_0x285c30['is'](_0x90f5('0x74'))?_0x4640e2:_0x4640e2[_0x90f5('0x12')](_0x21f500=>Rt(_0x21f500,this[_0x90f5('0x46')]));if(_0x90f5('0x4d')===this[_0x90f5('0x132')]){const _0x56fd63=this['_suggestionFactory'][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x56fd63(_0x346bb0,_0x4df877,_0x360200)),null;}_0x578f40[_0x90f5('0x129')](..._0x346bb0);let _0xf59097=!0x0;for(const _0x26e3e1 of _0x578f40)if(!this[_0x90f5('0xe0')](_0x26e3e1)){_0xf59097=!0x1;break;}if(_0xf59097&&_0x90f5('0x8c')!==this[_0x90f5('0x132')]){const _0x4b4d03=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x4b4d03(_0x346bb0,_0x4df877,_0x360200)),null;}const _0x34a637=this['editor'][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const _0x4dca5e of this['getSuggestions']()){if(_0x4dca5e[_0x90f5('0x99')]['id']!=_0x34a637['id'])continue;if('formatBlock'!=_0x4dca5e[_0x90f5('0x8a')]||_0x4dca5e['data']['formatGroupId']!=_0x4df877['formatGroupId'])continue;const _0x5cbbba=_0x4dca5e[_0x90f5('0x3a')]==_0x1f13c6;for(let _0x3fdf28=0x0;_0x3fdf28<_0x346bb0[_0x90f5('0x14')];_0x3fdf28++){const _0x2b6309=_0x346bb0[_0x3fdf28];for(const _0x2595fe of _0x4dca5e[_0x90f5('0x49')]()){const _0x3bb97a=_0x2595fe[_0x90f5('0xb')]();if(_0x2b6309['isEqual'](_0x3bb97a)){_0x5cbbba?(_0x346bb0[_0x90f5('0xc1')](_0x3fdf28,0x1),_0x3fdf28--):_0x4dca5e[_0x90f5('0xbb')](_0x2595fe[_0x90f5('0x61')]);break;}}}}if(0x0==_0x346bb0['length'])return null;const _0x2bb898=this['_suggestionFactory'][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0x6a'));for(const _0x2cfb38 of this[_0x90f5('0x123')]())if(_0x2cfb38['author']['id']==_0x34a637['id']&&_0x90f5('0x100')==_0x2cfb38[_0x90f5('0x8a')]&&_0x2cfb38[_0x90f5('0xc8')][_0x90f5('0xf7')]==_0x4df877['formatGroupId']&&_0x2cfb38[_0x90f5('0x3a')]==_0x1f13c6&&(_0x2bb898(_0x2cfb38['getRanges'](),_0x346bb0)||_0x2bb898(_0x346bb0,_0x2cfb38[_0x90f5('0x40')]()))){for(const _0x523a85 of _0x346bb0)_0x2cfb38[_0x90f5('0x12e')](_0x523a85);return _0x2cfb38;}const _0xd77436=_0x4c2669(),_0x25c99a=_0x34a637['id'],_0x7d60c6=_0x90f5('0x131')+_0x1f13c6,_0x348a24=this[_0x90f5('0x4')]({'id':_0xd77436,'type':_0x7d60c6,'data':_0x4df877,'createdAt':new Date(),'authorId':_0x25c99a,'attributes':_0x360200});for(const _0x445a08 of _0x346bb0)this[_0x90f5('0x16')](_0x7d60c6,_0xd77436,_0x25c99a,_0x445a08,_0x1600fa[_0x90f5('0x5e')]());return _0x348a24;}[_0x90f5('0x83')](_0x7a2746,_0x12a3ff=null,_0x3dda72={}){if(_0x7a2746[_0x90f5('0xf8')])return null;const _0x21d3dd=this[_0x90f5('0xf0')]['plugins'][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0xd0dd7=new _0x1bb84e(_0x7a2746[_0x90f5('0x57')],_0x7a2746[_0x90f5('0x10a')]);for(const {suggestion:_0x41517a,meta:_0x1fa13f}of this['_findSuggestions'](_0xd0dd7,_0x90f5('0x4f')))if(_0x1fa13f[_0x90f5('0xa7')]&&!_0x1fa13f[_0x90f5('0x8f')]){if(_0x41517a[_0x90f5('0x92')]){const _0x307af3=_0x41517a['getRanges']()[_0x90f5('0xee')](_0x55d863=>_0x90f5('0xc9')!=_0x55d863[_0x90f5('0xa0')][_0x90f5('0x9b')]);_0x307af3[_0x90f5('0x1c')](_0x12d1e4=>_0xd0dd7[_0x90f5('0x78')](_0x12d1e4,!0x0))&&_0x41517a[_0x90f5('0xc7')]();if(_0x307af3[_0x90f5('0xe9')](_0x387093=>_0x387093['containsRange'](_0xd0dd7,!0x0))){const _0x47e99b=this[_0x90f5('0x124')]['getSuggestionCallback'](_0x90f5('0x94'),_0x12a3ff,'accept');return this[_0x90f5('0x11a')](()=>_0x47e99b([_0xd0dd7],null,_0x3dda72)),null;}}else{const _0x3c1af9=_0xd0dd7[_0x90f5('0x6d')](_0x41517a[_0x90f5('0x9a')]());null!==_0x3c1af9&&_0x41517a['_onDiscard']([_0x3c1af9],null,_0x3dda72);}}if(_0xd0dd7['detach'](),_0xd0dd7[_0x90f5('0xf8')]||_0x90f5('0xc9')==_0xd0dd7[_0x90f5('0xa0')][_0x90f5('0x9b')])return null;let _0x459d63=null,_0xaf974d=_0xd0dd7[_0x90f5('0x57')],_0x492003=_0xd0dd7['end'];for(const {suggestion:_0x176f30,meta:_0x1e7023}of this[_0x90f5('0x25')](_0xd0dd7,_0x90f5('0x94')))if(_0x1e7023['isOwn']){if(_0x176f30[_0x90f5('0x92')]&&this[_0x90f5('0x111')]){let _0x583e92=!0x0;for(const _0x11c2db of _0x176f30[_0x90f5('0x40')]()){if(_0x11c2db[_0x90f5('0x78')](_0xd0dd7,!0x0))return _0x176f30;_0xd0dd7[_0x90f5('0x78')](_0x11c2db)||(_0x583e92=!0x1);}_0x583e92&&_0x176f30[_0x90f5('0xc7')]();}else{const _0x4f1195=_0x176f30[_0x90f5('0x9a')]();if(_0x4f1195[_0x90f5('0x78')](_0xd0dd7,!0x0)){if(!this[_0x90f5('0x111')]&&_0x1e7023[_0x90f5('0x62')])continue;return _0x176f30;}_0xaf974d=_0xaf974d[_0x90f5('0xe4')](_0x4f1195['start'])?_0xaf974d:_0x4f1195[_0x90f5('0x57')],_0x492003=_0x492003[_0x90f5('0xa')](_0x4f1195[_0x90f5('0x10a')])?_0x492003:_0x4f1195['end'],_0x459d63?_0x4f1195['start']['isBefore'](_0x459d63[_0x90f5('0x9a')]()[_0x90f5('0x57')])?(_0x459d63[_0x90f5('0x3e')](),_0x459d63=_0x176f30):_0x176f30[_0x90f5('0x3e')]():_0x459d63=_0x176f30;}}if(_0x459d63)return this[_0x90f5('0x11e')](_0x459d63,this[_0x90f5('0x46')][_0x90f5('0x98')](_0xaf974d,_0x492003)),_0x459d63;{const _0x327e95=_0x4c2669(),_0x48ce13=this[_0x90f5('0x46')]['createRange'](_0xaf974d,_0x492003),_0x294fa7=_0x21d3dd['id'],_0x1cbf21=_0x12a3ff?_0x90f5('0x50')+_0x12a3ff:_0x90f5('0x94'),_0x31b396=this[_0x90f5('0x4')]({'id':_0x327e95,'type':_0x1cbf21,'createdAt':new Date(),'authorId':_0x294fa7,'attributes':_0x3dda72});return this[_0x90f5('0x16')](_0x1cbf21,_0x327e95,_0x294fa7,_0x48ce13),_0x31b396;}}[_0x90f5('0x65')](_0x20c509,_0x37b907=_0x90f5('0x10b'),_0x253fea={}){const _0x4a0530=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x37bf53=_0x20c509[_0x90f5('0x12')](_0x4648ac=>new _0x1bb84e(_0x4648ac[_0x90f5('0x57')],_0x4648ac[_0x90f5('0x10a')])),_0x38e127=new Set();for(const _0xf2bdda of _0x37bf53)for(const {suggestion:_0x4964b0,meta:_0x34eaa9}of this[_0x90f5('0x25')](_0xf2bdda,'insertion'))_0x34eaa9[_0x90f5('0xa7')]&&!_0x34eaa9[_0x90f5('0x8f')]&&_0x38e127[_0x90f5('0xca')](_0x4964b0);for(const _0x581c76 of _0x38e127)if(_0x581c76[_0x90f5('0x92')]){const _0x4f6926=_0x581c76[_0x90f5('0x40')]();(!_0x581c76[_0x90f5('0x10')]||!_0x581c76['attributes'][_0x90f5('0xd2')])&&(_0x4f6926[_0x90f5('0x1c')](_0x1ba5c8=>_0x37bf53['some'](_0x5a1cb3=>_0x5a1cb3['containsRange'](_0x1ba5c8,!0x0)))&&_0x581c76[_0x90f5('0xc7')]());if(_0x37bf53[_0x90f5('0x1c')](_0x4ac5de=>_0x4f6926[_0x90f5('0xe9')](_0x494ae7=>_0x494ae7[_0x90f5('0x78')](_0x4ac5de,!0x0)))){const _0x5a0c11=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,'accept');return this['forceDefaultExecution'](()=>_0x5a0c11(_0x20c509,null,_0x253fea)),null;}}else{const _0x2bbca0=_0x581c76[_0x90f5('0x9a')]();_0x37bf53[_0x90f5('0xe9')](_0x4a4aa9=>_0x4a4aa9[_0x90f5('0x78')](_0x2bbca0,!0x0))&&_0x581c76[_0x90f5('0xc7')]();if(_0x37bf53[_0x90f5('0x1c')](_0x244e2b=>_0x2bbca0[_0x90f5('0x78')](_0x244e2b,!0x0))){const _0x483b74=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x483b74(_0x37bf53,null,_0x253fea)),null;}}const _0x23d726=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,'join');let _0x2546ed=null;for(const _0x4f5ee5 of this[_0x90f5('0x123')]())if(_0x4f5ee5['author']['id']==_0x4a0530['id']&&_0x4f5ee5[_0x90f5('0x45')]&&'deletion'==_0x4f5ee5[_0x90f5('0x8a')]&&_0x4f5ee5['subType']==_0x37b907&&(_0x23d726(_0x4f5ee5['getRanges'](),_0x37bf53)||_0x23d726(_0x37bf53,_0x4f5ee5[_0x90f5('0x40')]()))){if(_0x2546ed){if(_0x4f5ee5[_0x90f5('0xa3')]&&_0x4f5ee5[_0x90f5('0xa3')]['length'])continue;for(const _0x3108aa of _0x4f5ee5[_0x90f5('0x40')]())_0x2546ed[_0x90f5('0xd5')](_0x3108aa)||_0x2546ed[_0x90f5('0x12e')](_0x3108aa);_0x4f5ee5[_0x90f5('0x3e')]();}else{_0x2546ed=_0x4f5ee5;for(const _0x36f445 of _0x37bf53)_0x4f5ee5[_0x90f5('0xd5')](_0x36f445)||_0x4f5ee5[_0x90f5('0x12e')](_0x36f445);}}if(_0x2546ed)return _0x2546ed;_0x38e127['clear']();for(const _0x28c641 of _0x37bf53)for(const {suggestion:_0x3a0613,meta:_0x3de4d2}of this['_findSuggestions'](_0x28c641,_0x90f5('0x94')))_0x3de4d2[_0x90f5('0xa7')]&&_0x38e127['add'](_0x3a0613);for(const _0x4ebc3d of _0x38e127){const _0x200c6f=_0x4ebc3d[_0x90f5('0x40')]();if(!_0x253fea||!_0x253fea[_0x90f5('0xd2')]){if(_0x37bf53[_0x90f5('0x1c')](_0x46d3ca=>_0x200c6f[_0x90f5('0xe9')](_0x4a81de=>_0x4a81de['containsRange'](_0x46d3ca,!0x0))))return _0x4ebc3d;}(!_0x4ebc3d[_0x90f5('0x10')]||!_0x4ebc3d[_0x90f5('0x10')][_0x90f5('0xd2')])&&(_0x200c6f['every'](_0x5c6b2a=>_0x37bf53[_0x90f5('0xe9')](_0x2c208a=>_0x2c208a[_0x90f5('0x78')](_0x5c6b2a,!0x0)))&&_0x4ebc3d[_0x90f5('0xc7')]());}const _0x5ca645=_0x4c2669(),_0x260386=_0x4a0530['id'],_0x48cbf5=_0x90f5('0x50')+_0x37b907,_0x6bcbdb=this[_0x90f5('0x4')]({'id':_0x5ca645,'type':_0x48cbf5,'createdAt':new Date(),'authorId':_0x260386,'attributes':_0x253fea});for(const _0x403b15 of _0x37bf53)_0x403b15[_0x90f5('0x10e')](),_0x403b15[_0x90f5('0xf8')]||_0x90f5('0xc9')==_0x403b15[_0x90f5('0xa0')][_0x90f5('0x9b')]||this[_0x90f5('0x16')](_0x48cbf5,_0x5ca645,_0x260386,_0x403b15,_0x1600fa[_0x90f5('0x5e')]());return _0x6bcbdb;}[_0x90f5('0x11e')](_0x1c4e47,_0x357a45){const _0xd2ce03=_0x1c4e47[_0x90f5('0x134')]();this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x293e9d=>{_0x293e9d[_0x90f5('0x121')](_0xd2ce03,{'range':_0x357a45});});}[_0x90f5('0x102')](_0x2e6930){const _0x5b5e5=_0x2e6930['id'],_0x5ef03a=this[_0x90f5('0xf0')][_0x90f5('0xb6')][_0x90f5('0xf6')](_0x90f5('0x122'));this['_commentsRepository'][_0x90f5('0x117')](_0x5b5e5)||this['_commentsRepository'][_0x90f5('0x11d')]({'channelId':_0x5ef03a,'threadId':_0x5b5e5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cadd6=this[_0x90f5('0x139')][_0x90f5('0x13')](_0x5b5e5);_0x1cadd6[_0x90f5('0x4b')]('isRemovable'),_0x1cadd6[_0x90f5('0x108')]=!0x1,_0x2e6930[_0x90f5('0xa3')]=_0x1cadd6;}[_0x90f5('0xed')](_0xf5d35c,_0x43642c,_0xecd80b,_0x449b87){if(_0xf5d35c['type']!=_0x43642c||_0xf5d35c[_0x90f5('0x3a')]!=_0xecd80b||_0xf5d35c[_0x90f5('0x4e')]['id']!=_0x449b87)throw this[_0x90f5('0xf0')]['enableReadOnlyMode'](_0x90f5('0xd')),new _0x2719f8(_0x90f5('0xd'),this);}[_0x90f5('0x12c')](_0x29965e,_0x13241f){const _0x4d44c2=_0x29965e[_0x90f5('0x9a')]();if(_0x13241f[_0x90f5('0xec')](_0x4d44c2))_0x29965e['removeMarkers']();else{if(_0x4d44c2['containsRange'](_0x13241f)){const _0xf2828b=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x57')][_0x90f5('0x34')],_0x90f5('0x10a'));this[_0x90f5('0x11e')](_0x29965e,this['_model'][_0x90f5('0x98')](_0x4d44c2[_0x90f5('0x57')],_0xf2828b));const _0x1ecd37=_0x4c2669(),_0x920af1=_0x29965e['creator']['id'],_0x2fab8c=_0x29965e[_0x90f5('0x8a')]+':'+_0x29965e[_0x90f5('0x3a')];this['_setSuggestionData']({'id':_0x1ecd37,'type':_0x2fab8c,'createdAt':new Date(),'authorId':_0x920af1,'data':_0x29965e[_0x90f5('0xc8')],'attributes':_0x29965e[_0x90f5('0x10')]});const _0xb2a237=this[_0x90f5('0x46')]['createPositionAt'](_0x13241f[_0x90f5('0x10a')][_0x90f5('0x115')],_0x90f5('0xd7')),_0x1f8afd=this[_0x90f5('0x46')][_0x90f5('0x98')](_0xb2a237,_0x4d44c2[_0x90f5('0x10a')]);this['_addSuggestionMarker'](_0x2fab8c,_0x1ecd37,_0x920af1,_0x1f8afd);}else{if(_0x4d44c2[_0x90f5('0xe2')](_0x13241f['start'])){const _0x143aa8=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x57')][_0x90f5('0x34')],'end');this[_0x90f5('0x11e')](_0x29965e,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4d44c2[_0x90f5('0x57')],_0x143aa8));}else{const _0x4b2525=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x10a')][_0x90f5('0x115')],_0x90f5('0xd7'));this[_0x90f5('0x11e')](_0x29965e,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4b2525,_0x4d44c2[_0x90f5('0x10a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3870ab){for(const {suggestion:_0x1555f5,meta:_0x479434}of this[_0x90f5('0x25')](_0x3870ab,_0x90f5('0x4f'))){if(!_0x479434[_0x90f5('0xa7')])continue;const _0x446d0e=_0x1555f5[_0x90f5('0x40')]();for(const _0x10a282 of _0x446d0e)if(!_0x3870ab[_0x90f5('0x114')](_0x10a282)[_0x90f5('0x14')])return!0x0;}return!0x1;}[_0x90f5('0x137')](_0x348469){const _0x1c7564=this[_0x90f5('0xf0')][_0x90f5('0x104')]['get'](_0x90f5('0x2d'))[_0x90f5('0xad')](_0x348469);if(!_0x1c7564)throw new _0x2719f8(_0x90f5('0x58'),this);return _0x1c7564;}[_0x90f5('0xf4')](_0x549bc5){const _0x22ee39=this['editor'][_0x90f5('0x104')]['get'](_0x90f5('0x2d')),_0x13cd05=_0x1db92d(_0x90f5('0xcf')+_0x549bc5),_0x2d94ac=_0x22ee39['getUser'](_0x13cd05);return _0x2d94ac||_0x22ee39[_0x90f5('0x5c')]({'id':_0x13cd05,'name':_0x549bc5});}[_0x90f5('0x7f')](_0x23edb9,_0x4abbd4,_0x5d273e,_0x21f57e,_0x4af571){const _0x5ea82d=this[_0x90f5('0x137')](_0x21f57e),_0x1229ec=this[_0x90f5('0x124')][_0x90f5('0x5d')](_0x23edb9,_0x4abbd4,_0x5d273e,_0x5ea82d,_0x4af571,_0x3585a4=>this[_0x90f5('0x120')](_0x5d273e,{'attributes':_0x3585a4}));return this[_0x90f5('0xde')](_0x1229ec,_0x90f5('0xb1'),()=>{this[_0x90f5('0x120')](_0x5d273e,{'state':'accepted'});},{'priority':'high'}),this[_0x90f5('0xde')](_0x1229ec,_0x90f5('0xc7'),()=>{this[_0x90f5('0x120')](_0x5d273e,{'state':'rejected'});},{'priority':_0x90f5('0x89')}),this[_0x90f5('0x11c')][_0x90f5('0x29')](_0x5d273e,_0x1229ec),this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x1229ec,_0x90f5('0xbd')),_0x1229ec;}[_0x90f5('0x55')](_0x578311){const _0x345034=_0x578311[_0x90f5('0x39')](':');return{'group':_0x345034[0x0],'type':_0x345034[0x1],'subType':_0x345034[_0x90f5('0x14')]>=0x5?_0x345034[0x2]:null,'id':_0x345034[_0x90f5('0x14')]<0x5?_0x345034[0x2]:_0x345034[0x3],'authorId':_0x345034[_0x90f5('0x14')]<0x5?_0x345034[0x3]:_0x345034[0x4],'markerCount':0x6==_0x345034[_0x90f5('0x14')]?_0x345034[0x5]:null};}[_0x90f5('0x110')](_0x5eabd6,_0x2bac49,_0x552a5e){const _0x4c0161=_0x5eabd6['getFirstRange'](),_0xb6d74d=_0x4c0161[_0x90f5('0x57')],_0x4cca4a=_0x4c0161[_0x90f5('0x10a')];this[_0x90f5('0x11e')](_0x5eabd6,this[_0x90f5('0x46')][_0x90f5('0x98')](_0xb6d74d,_0x2bac49));const _0x1766ee=_0x4c2669(),_0x5cce90=_0x5eabd6[_0x90f5('0x4e')]['id'],_0x1d231c=_0x5eabd6[_0x90f5('0x8a')]+(_0x5eabd6['subType']?':'+_0x5eabd6['subType']:'');this[_0x90f5('0x4')]({'id':_0x1766ee,'type':_0x1d231c,'createdAt':new Date(),'authorId':_0x5cce90,'originalSuggestionId':_0x5eabd6['id'],'attributes':_0x5eabd6[_0x90f5('0x10')],'data':_0x5eabd6[_0x90f5('0xc8')]}),_0x90f5('0x100')==_0x5eabd6[_0x90f5('0x8a')]&&(_0x552a5e=this[_0x90f5('0x46')][_0x90f5('0xc5')](_0x552a5e['parent'])),this[_0x90f5('0x16')](_0x1d231c,_0x1766ee,_0x5cce90,this[_0x90f5('0x46')]['createRange'](_0x552a5e,_0x4cca4a));}[_0x90f5('0x25')](_0x58b543,_0x56d15a=null){const _0x16605e=[],_0x9425b1=this[_0x90f5('0x46')][_0x90f5('0x6b')],_0x59564c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const _0xabc02b of this[_0x90f5('0x123')]())if(_0xabc02b[_0x90f5('0x45')]&&(!_0x56d15a||_0xabc02b[_0x90f5('0x8a')]==_0x56d15a))for(const _0x351ce0 of _0xabc02b['getRanges']()){const _0x3a22b4=_0x58b543['start'][_0x90f5('0xec')](_0x351ce0[_0x90f5('0x10a')])||_0x58b543[_0x90f5('0x10a')][_0x90f5('0xec')](_0x351ce0[_0x90f5('0x57')]);if(_0x3a22b4||_0x58b543['getIntersection'](_0x351ce0)){const _0x2e73ec=_0x58b543[_0x90f5('0x78')](_0x351ce0)&&Bt(_0x9425b1,_0x351ce0['start'],_0x58b543),_0x5d93bd=_0x351ce0[_0x90f5('0x78')](_0x58b543)&&Bt(_0x9425b1,_0x58b543[_0x90f5('0x57')],_0x351ce0);_0x16605e['push']({'suggestion':_0xabc02b,'meta':{'isOwn':_0x59564c==_0xabc02b[_0x90f5('0x99')],'isNextTo':_0x3a22b4,'isInsideObject':_0x2e73ec,'containsRangeInObject':_0x5d93bd}});break;}}return _0x16605e;}[_0x90f5('0x16')](_0x53007f,_0x9cdc4d,_0x2ad285,_0x4489a,_0xa58f75){this[_0x90f5('0x46')]['change'](_0x391cb3=>{let _0x64cc6a=_0x90f5('0xab')+_0x53007f+':'+_0x9cdc4d+':'+_0x2ad285;_0xa58f75&&(_0x64cc6a=_0x64cc6a+':'+_0xa58f75),_0x391cb3[_0x90f5('0x87')](_0x64cc6a,{'range':_0x4489a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x90f5('0xd9')](_0x2e000d){const _0x65b22c=_0x2e000d[_0x90f5('0xcb')],_0x1590e4=_0x2e000d[_0x90f5('0x31')];_0x2e000d[_0x90f5('0xcb')]=null,null!=_0x65b22c&&(_0x65b22c[_0x90f5('0x31')]=null),_0x2e000d[_0x90f5('0x31')]=null,null!=_0x1590e4&&(_0x1590e4['previous']=null),_0x90f5('0x52')==this['_suggestionState'][_0x90f5('0xf6')](_0x2e000d)&&(this[_0x90f5('0x9d')]['set'](_0x2e000d,_0x90f5('0x17')),this[_0x90f5('0x2f')](_0x90f5('0xfc'),_0x2e000d,_0x65b22c,_0x1590e4));}[_0x90f5('0x4')](_0x202568){const _0x3de681=_0x202568['id'],_0x2c70c9=this[_0x90f5('0xa5')](_0x202568);if(this[_0x90f5('0xfe')]&&this['_adapter']['addSuggestion']){const _0x42452c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0xa2')),_0x4dd0e5=_0x2c70c9[_0x90f5('0x1')],_0x43a7ac=_0x2c70c9[_0x90f5('0x3a')]?_0x2c70c9[_0x90f5('0x8a')]+':'+_0x2c70c9[_0x90f5('0x3a')]:_0x2c70c9['type'],_0x2e625b=this[_0x90f5('0xf0')][_0x90f5('0xc3')],_0x1b1122=_0x42452c[_0x90f5('0xca')](_0x3485ff(_0x2e625b,'PENDING_ACTION_SUGGESTION')),_0x494125={'id':_0x3de681,'type':_0x43a7ac,'hasComments':_0x4dd0e5,'data':_0x202568['data']||null,'originalSuggestionId':_0x202568[_0x90f5('0xaa')]||null,'attributes':_0x2c70c9[_0x90f5('0x10')]};this[_0x90f5('0xfe')][_0x90f5('0x1d')](_0x494125)[_0x90f5('0xea')](_0x583cde=>{_0x2c70c9[_0x90f5('0x7c')]=!0x0,_0x42452c[_0x90f5('0x20')](_0x1b1122),_0x583cde&&_0x583cde[_0x90f5('0x8e')]&&(this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x3de681)['createdAt']=_0x583cde[_0x90f5('0x8e')]);})[_0x90f5('0x5f')](_0x3c41c9=>{throw _0x3cb7c3('error-saving-suggestion-data-suggestion-discarded'),this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0x106')]({'isUndoable':!0x1},()=>{_0x2c70c9['discard']();}),_0x2c70c9[_0x90f5('0x59')](),this[_0x90f5('0x11c')]['delete'](_0x2c70c9['id']),this['_suggestionState'][_0x90f5('0xe8')](_0x2c70c9),_0x3c41c9;});}return _0x2c70c9;}['_updateSuggestionData'](_0x24b40f,_0x3db856){const _0x209c2c=this[_0x90f5('0xf0')]['plugins'][_0x90f5('0xf6')](_0x90f5('0xa2')),_0x312e52=this[_0x90f5('0x13a')](_0x24b40f);if(this[_0x90f5('0xfe')]&&this[_0x90f5('0xfe')][_0x90f5('0x23')]){if(_0x312e52[_0x90f5('0x7c')]){const _0x405b8b=_0x209c2c['add'](_0x3485ff(this['editor'][_0x90f5('0xc3')],_0x90f5('0x70')));this['_adapter'][_0x90f5('0x23')](_0x24b40f,_0x3db856)['then'](()=>{_0x209c2c[_0x90f5('0x20')](_0x405b8b);});}else _0x312e52['on'](_0x90f5('0x38'),()=>{this[_0x90f5('0x120')](_0x24b40f,_0x3db856);});}}[_0x90f5('0x5a')](_0x452b56){if(!this[_0x90f5('0xfe')]||!this[_0x90f5('0xfe')][_0x90f5('0x13a')])throw new _0x2719f8(_0x90f5('0xb0'),this);return this[_0x90f5('0xfe')]['getSuggestion'](_0x452b56);}[_0x90f5('0x3')](_0x1a0190){const {id:_0xfb3cee,type:_0x3cabb5,subType:_0x3088d3,authorId:_0x15585f}=this[_0x90f5('0x55')](_0x1a0190),_0x41dde6=this[_0x90f5('0x11c')]['get'](_0xfb3cee)||this['_createSuggestion'](_0x3cabb5,_0x3088d3,_0xfb3cee,_0x15585f,{});switch(this['_checkSuggestionCorrectness'](_0x41dde6,_0x3cabb5,_0x3088d3,_0x15585f),this[_0x90f5('0x9d')][_0x90f5('0xf6')](_0x41dde6)){case _0x90f5('0xbd'):this[_0x90f5('0x5a')](_0xfb3cee)[_0x90f5('0xea')](_0x501a56=>{let _0x34f04f=Promise['resolve']();_0x501a56[_0x90f5('0x1')]&&(_0x34f04f=this[_0x90f5('0x139')][_0x90f5('0x105')]({'channelId':this[_0x90f5('0xf0')]['config'][_0x90f5('0xf6')](_0x90f5('0x122')),'threadId':_0xfb3cee})),_0x34f04f[_0x90f5('0xea')](()=>{this['addSuggestionData'](_0x501a56)[_0x90f5('0x7c')]=!0x0;});}),this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x41dde6,_0x90f5('0x68'));break;case _0x90f5('0x17'):this[_0x90f5('0x120')](_0xfb3cee,{'state':_0x90f5('0x1e')});case _0x90f5('0x36'):this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x41dde6,_0x90f5('0x52')),this[_0x90f5('0x2f')]('suggestionLoaded',_0x41dde6);break;case _0x90f5('0x52'):this[_0x90f5('0x2f')](_0x90f5('0x48'),_0x41dde6);}return _0x41dde6[_0x90f5('0xf9')](_0x1a0190),_0x41dde6;}[_0x90f5('0x47')](_0x2ff6ae){const _0x1764fb=Array[_0x90f5('0x128')](_0x2ff6ae)[_0x90f5('0xee')](_0x3346f9=>!_0x3346f9[_0x90f5('0x92')]),_0x1c4cfb=this[_0x90f5('0x123')]({'skipNotAttached':!0x0})['filter'](_0x44b5d4=>!_0x44b5d4[_0x90f5('0x92')]),_0x361c3b=_0x1c4cfb['filter'](_0x32ed99=>!_0x2ff6ae['has'](_0x32ed99)),_0xc2e786=new Map(_0x1c4cfb[_0x90f5('0x12')](_0x2f5473=>[_0x2f5473,this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x2f5473[_0x90f5('0x8a')],_0x2f5473[_0x90f5('0x3a')],_0x90f5('0x43'))])),_0x2ad398=new Map(_0x1c4cfb[_0x90f5('0x12')](_0x3fac64=>[_0x3fac64,_0x3fac64[_0x90f5('0x9a')]()])),_0x47e4dd=new Set(),_0x261bd2=new Set();for(let _0x23e1e7=0x0;_0x23e1e7<_0x1764fb[_0x90f5('0x14')];_0x23e1e7++)_0x7be526(_0x1764fb[_0x23e1e7],_0x1764fb,_0x23e1e7+0x1);for(let _0x12735b=0x0;_0x12735b<_0x1764fb['length'];_0x12735b++)_0x7be526(_0x1764fb[_0x12735b],_0x361c3b,0x0);for(let _0x553299=0x0;_0x553299<_0x1764fb[_0x90f5('0x14')];_0x553299++){const _0x1716e=_0x1764fb[_0x553299];!_0x261bd2[_0x90f5('0x7a')](_0x1716e)&&_0x1716e['previous']&&(_0x1716e[_0x90f5('0xcb')][_0x90f5('0x31')]===_0x1716e&&(_0x1716e[_0x90f5('0xcb')][_0x90f5('0x31')]=null),_0x1716e[_0x90f5('0xcb')]=null),!_0x47e4dd['has'](_0x1716e)&&_0x1716e[_0x90f5('0x31')]&&(_0x1716e[_0x90f5('0x31')][_0x90f5('0xcb')]===_0x1716e&&(_0x1716e[_0x90f5('0x31')][_0x90f5('0xcb')]=null),_0x1716e['next']=null);}function _0x7be526(_0x112b71,_0x3eb390,_0x14be6a){for(let _0x358750=_0x14be6a;_0x358750<_0x3eb390[_0x90f5('0x14')];_0x358750++){const _0x4de3e3=_0x1f3d74(_0x112b71,_0x3eb390[_0x358750]);_0x4de3e3&&(_0x4de3e3[0x0][_0x90f5('0x31')]=_0x4de3e3[0x1],_0x4de3e3[0x1]['previous']=_0x4de3e3[0x0],_0x47e4dd[_0x90f5('0xca')](_0x4de3e3[0x0]),_0x261bd2[_0x90f5('0xca')](_0x4de3e3[0x1]));}}function _0x1f3d74(_0x3330fb,_0x357bac){if(_0x3330fb[_0x90f5('0x99')]['id']!==_0x357bac['author']['id'])return null;const _0x172130=_0xc2e786[_0x90f5('0xf6')](_0x3330fb)(_0x3330fb,_0x357bac,_0x2ad398[_0x90f5('0xf6')](_0x3330fb),_0x2ad398[_0x90f5('0xf6')](_0x357bac));if(!_0x172130)return null;return _0xc2e786['get'](_0x357bac)(_0x3330fb,_0x357bac,_0x2ad398['get'](_0x3330fb),_0x2ad398[_0x90f5('0xf6')](_0x357bac))?_0x172130[0x1][_0x90f5('0xa3')]&&_0x172130[0x1][_0x90f5('0xa3')]['length']?null:_0x172130:null;}}[_0x90f5('0x11f')](_0x33bfca){const _0x10b23c=Array[_0x90f5('0x128')](_0x33bfca),_0x2200f1=this[_0x90f5('0x123')]({'skipNotAttached':!0x0}),_0x8120a3=_0x2200f1['filter'](_0xb7d38a=>!_0x33bfca[_0x90f5('0x7a')](_0xb7d38a)),_0x2277d8=new Map(_0x10b23c[_0x90f5('0x12')](_0x315e3b=>[_0x315e3b,this['_suggestionFactory'][_0x90f5('0x6e')](_0x315e3b[_0x90f5('0x8a')],_0x315e3b[_0x90f5('0x3a')],_0x90f5('0x6a'))])),_0xcd0d8c=new Map(_0x2200f1[_0x90f5('0x12')](_0x4e21e1=>[_0x4e21e1,_0x4e21e1[_0x90f5('0x40')]()]));for(let _0x586fc9=0x0;_0x586fc9<_0x10b23c['length'];_0x586fc9++){if(_0x4609f8(this,_0x10b23c[_0x586fc9],_0x10b23c,_0x586fc9+0x1))return!0x0;}for(let _0x4ce348=0x0;_0x4ce348<_0x10b23c[_0x90f5('0x14')];_0x4ce348++){if(_0x4609f8(this,_0x10b23c[_0x4ce348],_0x8120a3,0x0))return!0x0;}return!0x1;function _0x4609f8(_0x12bb9c,_0x4b8abf,_0x967e5c,_0x1e60e3){for(let _0x11b944=_0x1e60e3;_0x11b944<_0x967e5c['length'];_0x11b944++){const _0x4866fc=_0x967e5c[_0x11b944];if(_0x4866fc[_0x90f5('0x8a')]!==_0x4b8abf[_0x90f5('0x8a')]||_0x4866fc[_0x90f5('0x99')]['id']!==_0x4b8abf['author']['id']||_0x4866fc['subType']!==_0x4b8abf['subType'])continue;const _0x4a3d9f=_0x2277d8['get'](_0x4b8abf),_0x5a5dbd=_0xcd0d8c[_0x90f5('0xf6')](_0x4b8abf),_0x54d642=_0xcd0d8c[_0x90f5('0xf6')](_0x4866fc),_0x21665c=_0x4b8abf['commentThread']&&_0x4b8abf['commentThread'][_0x90f5('0x14')],_0x318334=_0x4866fc[_0x90f5('0xa3')]&&_0x4866fc['commentThread'][_0x90f5('0x14')];if(!_0x21665c&&_0x4a3d9f(_0x54d642,_0x5a5dbd))return _0x12bb9c[_0x90f5('0xe5')](_0x4866fc,_0x4b8abf),_0xcd0d8c[_0x90f5('0xe8')](_0x4b8abf),!0x0;if(!_0x318334&&_0x4a3d9f(_0x5a5dbd,_0x54d642))return _0x12bb9c[_0x90f5('0xe5')](_0x4b8abf,_0x4866fc),_0xcd0d8c['delete'](_0x4866fc),!0x0;}return!0x1;}}[_0x90f5('0xe5')](_0x46fc78,_0x5087c6){if(_0x46fc78[_0x90f5('0x92')])for(const _0x52c428 of _0x5087c6[_0x90f5('0x40')]())_0x46fc78[_0x90f5('0x12e')](_0x52c428);else{const _0x4dde6c=_0x5087c6[_0x90f5('0x9a')]()[_0x90f5('0x10a')];this[_0x90f5('0x11e')](_0x46fc78,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x46fc78[_0x90f5('0x9a')]()[_0x90f5('0x57')],_0x4dde6c));}_0x5087c6[_0x90f5('0x3e')]();}}class Dt{constructor(_0x3e261a){this[_0x90f5('0xdc')]=_0x3e261a,this[_0x90f5('0x46')]=_0x3e261a[_0x90f5('0xd8')],this[_0x90f5('0x8b')]=new Map(),this[_0x90f5('0x13f')]=new Map(),this[_0x90f5('0xfd')]();}['buildSuggestion'](_0x4e2a18,_0x5b313d,_0xdd1cf9,_0x1b8ee5,_0x247243,_0x2e0da4){return new _0x1600fa(this[_0x90f5('0x46')],{'type':_0x4e2a18,'subType':_0x5b313d,'id':_0xdd1cf9,'author':_0x1b8ee5,'creator':_0x1b8ee5,'attributes':_0x247243,'onAttributesChange':_0x2e0da4,'onAccept':(..._0x28a5ff)=>this[_0x90f5('0x6e')](_0x4e2a18,_0x5b313d,'accept')(..._0x28a5ff),'onDiscard':(..._0x22bd6d)=>this[_0x90f5('0x6e')](_0x4e2a18,_0x5b313d,_0x90f5('0xc7'))(..._0x22bd6d)});}[_0x90f5('0x0')](_0x5d41f4,_0x5668ff,_0x207b95,_0x19d309){const _0xf117e1=_0x5d41f4+':'+_0x5668ff+':'+_0x207b95;this[_0x90f5('0x8b')][_0x90f5('0x29')](_0xf117e1,_0x19d309);}['getSuggestionCallback'](_0x2d4ccc,_0x2520a5,_0x53f103){const _0x3694c1=_0x2d4ccc+':'+_0x2520a5+':'+_0x53f103;return this[_0x90f5('0x8b')]['get'](_0x3694c1)||this['_defaultCallbacks'][_0x90f5('0xf6')](_0x2d4ccc+':'+_0x53f103);}[_0x90f5('0xfd')](){const _0x4575d9=()=>{},_0x3cd589=_0x4511cc=>{_0x4511cc[_0x90f5('0x77')]((_0x515a6a,_0x3454b5)=>_0x515a6a[_0x90f5('0x57')][_0x90f5('0xe4')](_0x3454b5[_0x90f5('0x57')])?0x1:-0x1),this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x27db17=>{for(const _0xa0ee13 of _0x4511cc){let _0x1f31d2;_0x1f31d2=_0xa0ee13['end'][_0x90f5('0x135')]&&_0xa0ee13['end']['parent']==_0xa0ee13[_0x90f5('0x57')]['nodeAfter']?_0x27db17['createSelection'](_0xa0ee13[_0x90f5('0x57')]['nodeAfter'],'on'):_0x27db17[_0x90f5('0xd3')](_0xa0ee13),this[_0x90f5('0x46')][_0x90f5('0x84')](_0x1f31d2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x31162a=(_0x16cc7f,_0x4298fa)=>{this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x39a1cc=>{const {commandName:_0x5530a7,commandParams:_0x5cf8e9=[]}=_0x4298fa,_0x1e8569=_0x16cc7f[_0x90f5('0x12')](_0x4dff00=>(_t(_0x4dff00)&&(_0x4dff00=this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4dff00[_0x90f5('0x10a')])),_0x4dff00))[_0x90f5('0xee')](_0x23e5f9=>'$graveyard'!==_0x23e5f9[_0x90f5('0xa0')][_0x90f5('0x9b')]);if(_0x1e8569[_0x90f5('0x14')]<0x1)return;const _0x147189=Array[_0x90f5('0x128')](this[_0x90f5('0x46')][_0x90f5('0x54')][_0x90f5('0xbe')]['getRanges']())[_0x90f5('0x12')](_0x56943d=>_0x1bb84e[_0x90f5('0xd0')](_0x56943d));_0x39a1cc[_0x90f5('0x12d')](_0x1e8569);for(const _0x8fd6ef of this['_editor'][_0x90f5('0x30')][_0x90f5('0x30')]())_0x8fd6ef['refresh']();_0x5cf8e9[_0x90f5('0x129')]({'forceDefaultExecution':!0x0}),this[_0x90f5('0xdc')]['execute'](_0x5530a7,..._0x5cf8e9);const _0x277d5a=_0x147189['filter'](_0x1381e5=>_0x90f5('0xc9')!=_0x1381e5['root'][_0x90f5('0x9b')]);_0x277d5a[_0x90f5('0x14')]>0x0&&_0x39a1cc[_0x90f5('0x12d')](_0x277d5a);for(const _0x5333ba of _0x147189)_0x5333ba['detach']();});},_0xc1d288=(_0xe03e8d,_0x3a0f5e)=>0x1==_0xe03e8d[_0x90f5('0x14')]&&0x1==_0x3a0f5e['length']&&_0xe03e8d[0x0]['end']['isEqual'](_0x3a0f5e[0x0][_0x90f5('0x57')]),_0x1ec71b=(_0x1409e6,_0x4ff085,_0x200ff7,_0x15a99d)=>xt(_0x1409e6,_0x4ff085,_0x200ff7,_0x15a99d,this[_0x90f5('0x46')])?[_0x1409e6,_0x4ff085]:xt(_0x4ff085,_0x1409e6,_0x15a99d,_0x200ff7,this[_0x90f5('0x46')])?[_0x4ff085,_0x1409e6]:null;this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x37'),_0x4575d9),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x33'),_0x3cd589),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x2e'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')]('insertion:chain',_0x1ec71b),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x101'),_0x3cd589),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x73'),_0x4575d9),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x8d'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')]('deletion:chain',_0x1ec71b),this[_0x90f5('0x13f')][_0x90f5('0x29')]('formatInline:accept',_0x31162a),this['_defaultCallbacks'][_0x90f5('0x29')]('formatInline:discard',_0x4575d9),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x88'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x11'),_0x4575d9),this[_0x90f5('0x13f')]['set'](_0x90f5('0x9f'),_0x31162a),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0xa4'),_0x4575d9),this[_0x90f5('0x13f')]['set'](_0x90f5('0x127'),_0xc1d288),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x85'),_0x4575d9);}}function Bt(_0x3d6326,_0x36cd1c,_0x51526f){for(const _0x16c6a4 of _0x36cd1c[_0x90f5('0x115')][_0x90f5('0x2a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x16c6a4[_0x90f5('0xa0')]==_0x16c6a4)return!0x1;if(!_0x51526f['containsItem'](_0x16c6a4))return!0x1;if(_0x3d6326[_0x90f5('0x21')](_0x16c6a4)||_0x3d6326[_0x90f5('0xba')](_0x16c6a4))return!0x0;}return!0x1;}function _t(_0x2ab04f){return _0x2ab04f[_0x90f5('0x10a')][_0x90f5('0x115')]==_0x2ab04f['start']['nodeAfter']&&_0x2ab04f[_0x90f5('0x10a')]['isAtStart'];}function Mt(_0x444d5e,_0x5ab1c7,_0x14ef7d,_0x1d7533){const _0x2084e1=_0x15fec1=>!_0x15fec1[_0x90f5('0xcc')]['is']('$textProxy')&&!_0x1d7533[_0x90f5('0x21')](_0x15fec1[_0x90f5('0xcc')]),_0x49e63a=_0x444d5e[_0x90f5('0x57')][_0x90f5('0xe1')](_0x2084e1),_0x2a5dfb=_0x444d5e[_0x90f5('0x10a')][_0x90f5('0xe1')](_0x2084e1,{'direction':_0x90f5('0x27')});return(!_0x444d5e['start'][_0x90f5('0xec')](_0x49e63a)||!_0x444d5e[_0x90f5('0x10a')][_0x90f5('0xec')](_0x2a5dfb))&&(_0x49e63a['isBefore'](_0x2a5dfb)?_0x14ef7d['updateMarker'](_0x5ab1c7,{'range':_0x14ef7d[_0x90f5('0x98')](_0x49e63a,_0x2a5dfb)}):_0x14ef7d[_0x90f5('0xbb')](_0x5ab1c7),!0x0);}function $t(_0x2300a6){return _0x1db92d(_0x2300a6);}function Nt(_0x192be0){const _0x1d91f2=_0x192be0[_0x90f5('0x57')][_0x90f5('0xd4')];return _0x1d91f2&&_0x1d91f2['is'](_0x90f5('0xf'));}function Rt(_0x5a9eb3,_0xd8a3f9){const _0x2e9e7e=_0xd8a3f9[_0x90f5('0x6b')]['isObject'](_0x5a9eb3)||_0xd8a3f9[_0x90f5('0x6b')][_0x90f5('0xa9')](_0x5a9eb3);return _0xd8a3f9[_0x90f5('0x98')](_0xd8a3f9[_0x90f5('0xf5')](_0x5a9eb3,_0x90f5('0x109')),_0x2e9e7e?_0xd8a3f9['createPositionAfter'](_0x5a9eb3):_0xd8a3f9[_0x90f5('0xf5')](_0x5a9eb3,_0x90f5('0x10a')));}function xt(_0x531f57,_0x195460,_0x5d6f89,_0x541859,_0x999caf){if(_0x5d6f89[_0x90f5('0x10a')][_0x90f5('0xec')](_0x541859['start']))return!0x0;if(_0x531f57[_0x90f5('0x8a')]!=_0x195460[_0x90f5('0x8a')])return!0x1;if(!_0x5d6f89['end'][_0x90f5('0x53')](_0x541859[_0x90f5('0x57')]))return!0x1;const _0x1f93aa=_0x999caf[_0x90f5('0x98')](_0x5d6f89['end'],_0x541859[_0x90f5('0x57')])[_0x90f5('0x69')]();for(const _0x1082bd of _0x1f93aa)if([_0x90f5('0x18'),'elementEnd'][_0x90f5('0x90')](_0x1082bd['type'])&&_0x999caf[_0x90f5('0x6b')][_0x90f5('0xba')](_0x1082bd['item']))return!0x1;return!0x0;}
23
+ const _0x5b30=['trackChanges.mergeNestedSuggestions','isSelectable','$graveyard','editingDowncast','add','isAtStart','getMultiRangeId','suggestion-type','getCommentThread','removed','getSuggestionCallback','newRange','createPositionAt','track-changes-command-not-found','isCollapsed','authoredAt','markers','commandName','formatBlock','get','fetchCommentThread','forward','stop','deletion:join','change:activeMarkers','from','_isForcedDefaultExecutionBlock','registerCustomCallback','deleteContent','plugins','addCommentThread','group','markerNameToElements','containsRange','change:_saved','fire','previous','discardSuggestion','unbindElementFromMarkerName','map','type','formatInline:','_splitMarkerName','consume','formatGroupId','track-changes-suggestion-data-mismatch','removeAttribute','markMultiRangeInsertion','formatBlock:join','mapper','createRange','_setSuggestionRange','insertContent','nodeBefore','change','getAncestors','ready','_createSuggestion','substr','start','error-saving-suggestion-data-suggestion-discarded','markDeletion','delete','insertion:','isLimit','isEqual','high','removeClass','trackChangesCommand','split','pluginName','catch','some','track-changes-suggestion-not-found','createElement','editor','deletion','addMarkerName','isExternal','_rangeIsInLocalUserInsertion','$marker','getSuggestion','toViewElement','isObject','commentThread','getLastMatchingPosition','batch','ck-suggestion-marker--active','_commentsRepository','_suggestionFactory','change:data','getAllAdjacentSuggestions','commands','forceDefaultExecution','acceptSelectedSuggestions','_getSuggestionData','_saved','TrackChangesEditing','ck-suggestion-marker','isBlock','markInsertion','containsItem','addMarker:suggestion','isOwn','enableReadOnlyMode','end','push','track-changes-adapter-missing-getsuggestion','fromRange','selection','suggestion:','_checkSuggestionCorrectness','markBlockFormat','differ','return','_defaultCallbacks','getRange','join','createSelection','getRanges','isMultiRange','getItems','CommentsRepository','isNextTo','editing','after','data','rejected','howMany','suggestion','_customCallbacks','init','_adapter','getCustomProperty','getShiftedBy','element','parent','getWalker','insertion:discard','multipleBlocks','ck-suggestion-marker-formatBlock','skipNestingCheck','_registerDefaultCallbacks','consumable','containsRangeInObject','_model','markerToHighlight','schema','bindElementToMarker','markerName','@external','_suggestions','insertion:join','toJSON','_onDiscard','accept','markInlineFormat','isLocal','addHighlight','range','length','discardAllSuggestions','config','_trackFormatChanges','formatBlock:accept','dataDowncast','markMultiRangeDeletion','collaboration.channelId','stopListening','deletion:chain','_addSuggestionMarker','containsPosition','isAfter','locale','_addThreadToSuggestion','detach','isInsideObject','_descriptionFactory','addSuggestion','suggestionLoaded','discardSelectedSuggestions','suggestionChanged','addSuggestionData','then','authorName','removeComment','lowest','document','markMultiRangeBlockFormat','enableCommand','Users','creator','getFirstRange','default','_editor','formatBlock:chain','activeMarkers','PendingActions','_removeSuggestion','every','getAttribute','value','addRange','addClass','getChanges','addUser','updateSuggestion','createPositionBefore','dataToMarker','data-suggestion','accepted','formatInline:chain','root','acceptAllSuggestions','adapter','_cutOutSuggestionMarker','size','_joinSuggestions','removeMarker:suggestion:formatBlock','formatInline:join','track-changes-user-not-found','_findSuggestions','getIntersection','attributes','PENDING_ACTION_SUGGESTION','trackChanges.trackFormatChanges','upcast','update:suggestion','author','originalSuggestionId','formatBlock:discard','getChangedMarkers','_suggestionState','position','nodeAfter','oldRange','execute','getFirstMarker','createdAt','createPositionAfter','highest','isDocumentOperation','isIntersectingWithRange','listenTo','formatInline','addMarker:suggestion:formatBlock','updateMarker','isTouching','item','suggestionUnloaded','setTo','values','_enabledCommands','name','_joinWithAdjacentSuggestions','getUser','_getExternalAuthor','hasComments','buildSuggestion','notReady','filter','insertion','set','multi','move','next','isUndo','setAttribute','elementToElement','showSuggestionHighlights','getNearestSelectionRange','splitPosition','for','elementEnd','subType','markerReady','documentSelection','never','formatBlock:','options','define','isAtEnd','formatInline:accept','has','_handleNewSuggestionMarker','rootName','conversion','writer','deletion:discard','model','acceptSuggestion','dataReady','applyOperation','addComment','_refreshSuggestionsChain','isRemovable','insert','backward','ck-suggestion-marker-','discard','removeMarkers','low','_setSuggestionData','$textProxy','removeMarker','isInContent','marker-count','isBefore','_getAuthorFromId','fromCharCode','_mergeNestedSuggestions','external:','_updateSuggestionData','insertion:chain','getDifference','includes','clone','markerToData','getSuggestions','trackChanges','normal','head','unbind'];(function(_0x3bc1d1,_0x5b30cc){const _0x3b3a16=function(_0x2df66f){while(--_0x2df66f){_0x3bc1d1['push'](_0x3bc1d1['shift']());}};_0x3b3a16(++_0x5b30cc);}(_0x5b30,0x15f));const _0x3b3a=function(_0x3bc1d1,_0x5b30cc){_0x3bc1d1=_0x3bc1d1-0x0;let _0x3b3a16=_0x5b30[_0x3bc1d1];return _0x3b3a16;};import{Plugin as _0x5a8a15,PendingActions as _0x5d29cd}from'ckeditor5/src/core';import{LiveRange as _0x541e31}from'ckeditor5/src/engine';import{CKEditorError as _0x351a30,uid as _0x562252,priorities as _0x4c7313,logWarning as _0x57dcef}from'ckeditor5/src/utils';import{toWidget as _0x3caca7}from'ckeditor5/src/widget';import{Users as _0x7cca0d,hashObject as _0xe552ec}from'ckeditor5-collaboration/src/collaboration-core';import _0x41bdf1 from'./commands/trackchangescommand';import _0x1b56cc from'./commands/acceptsuggestioncommand';import _0x5df727 from'./commands/discardsuggestioncommand';import _0x8f7995 from'./commands/executeonallsuggestionscommand';import _0x5229a3 from'./commands/executeonselectedsuggestionscommand';import _0x38aeef from'./suggestion';import _0x1c62f3 from'./suggestiondescriptionfactory';import _0x59a691 from'./integrations/alignment';import _0xd715fd from'./integrations/basicstyles';import _0x623f1b from'./integrations/blockquote';import _0x383b8c from'./integrations/ckbox';import _0x574c61 from'./integrations/codeblock';import _0xa4143 from'./integrations/comments';import _0x54d6e4 from'./integrations/deletecommand';import _0x155c2b from'./integrations/documentlist';import _0x5523b3 from'./integrations/entercommand';import _0xd4bc03 from'./integrations/findandreplace';import _0x1792b6 from'./integrations/font';import _0x226d43 from'./integrations/formatpainter';import _0x2bfde8 from'./integrations/heading';import _0x5d8156 from'./integrations/highlight';import _0x46406d from'./integrations/horizontalline';import _0x1040dc from'./integrations/htmlembed';import _0x233ce3 from'./integrations/image';import _0x975268 from'./integrations/imagereplace';import _0x20fd50 from'./integrations/importword';import _0x298950 from'./integrations/indent';import _0x3656a9 from'./integrations/inputcommand';import _0x4946df from'./integrations/link';import _0x247e30 from'./integrations/list';import _0x4df5dd from'./integrations/listproperties';import _0x2753a6 from'./integrations/mediaembed';import _0x1ee22b from'./integrations/mention';import _0x59a3bc from'./integrations/pagebreak';import _0x52d947 from'./integrations/paragraph';import _0x4e27ac from'./integrations/removeformat';import _0x5158f0 from'./integrations/restrictededitingmode';import _0x5eea33 from'./integrations/shiftentercommand';import _0x55b104 from'./integrations/standardeditingmode';import _0x534305 from'./integrations/style';import _0x24e5ae from'./integrations/table';import _0x4a5b1b from'./integrations/tablemergesplit';import _0x5505f4 from'./integrations/tableheadings';import _0x476fb3 from'./integrations/tableclipboard';import _0x282a41 from'./integrations/tablecolumnresize';import _0x5f4397 from'./integrations/template';import _0x2fc20e from'./integrations/tableofcontents';import _0x4bf7cf from'./integrations/title';import _0x53f492 from'./integrations/undo';import{getTranslation as _0x1c5b1c}from'./utils/common-translations';import _0x3fc06a from'./integrations/tablecaption';import _0x284672 from'./integrations/documentlistproperties';import _0x466b74 from'./integrations/tableproperties';export default class p extends _0x5a8a15{static get['requires'](){return[_0x3b3a('0x5e'),_0x7cca0d,_0x5d29cd,_0x59a691,_0xd715fd,_0x623f1b,_0x383b8c,_0x574c61,_0xa4143,_0x54d6e4,_0x155c2b,_0x284672,_0x5523b3,_0xd4bc03,_0x1792b6,_0x226d43,_0x2bfde8,_0x5d8156,_0x46406d,_0x1040dc,_0x233ce3,_0x975268,_0x20fd50,_0x298950,_0x3656a9,_0x4946df,_0x247e30,_0x4df5dd,_0x2753a6,_0x1ee22b,_0x59a3bc,_0x52d947,_0x4e27ac,_0x5158f0,_0x5eea33,_0x55b104,_0x534305,_0x24e5ae,_0x4a5b1b,_0x5505f4,_0x3fc06a,_0x476fb3,_0x282a41,_0x2fc20e,_0x466b74,_0x5f4397,_0x4bf7cf,_0x53f492];}static get[_0x3b3a('0x2a')](){return _0x3b3a('0x45');}constructor(_0x10855e){function _0x565a77(_0xb8f1db){return _0xb8f1db[_0x3b3a('0xb')](_0x154061=>String[_0x3b3a('0x119')](_0x154061))['join']('');}super(_0x10855e),this[_0x3b3a('0xea')](_0x3b3a('0xa8'),[]),this['on'](_0x3b3a('0x13f'),(_0x1adf8b,_0x31ce92,_0x293071,_0x4238e6)=>{this[_0x3b3a('0x75')][_0x3b3a('0x1a')](()=>{for(const _0x7e48ad of[..._0x4238e6,..._0x293071])this['_model'][_0x3b3a('0x137')]['has'](_0x7e48ad)&&_0x10855e[_0x3b3a('0x60')]['reconvertMarker'](_0x7e48ad);});}),this[_0x3b3a('0x95')]=new _0x1c62f3(this[_0x3b3a('0x2f')][_0x3b3a('0x105')][_0x3b3a('0x77')],this[_0x3b3a('0x2f')][_0x3b3a('0x91')]),this['_adapter']=null,this[_0x3b3a('0x3d')]=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x3b3a('0x3c')]=_0x10855e[_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0x5e')),this[_0x3b3a('0xe0')]=new Set(),this[_0x3b3a('0x75')]=this[_0x3b3a('0x2f')][_0x3b3a('0x105')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x10855e[_0x3b3a('0x86')][_0x3b3a('0xfc')](_0x3b3a('0xc5'),_0x3b3a('0xa5')),this[_0x3b3a('0x87')]=_0x10855e[_0x3b3a('0x86')][_0x3b3a('0x13a')](_0x3b3a('0xc5')),_0x10855e[_0x3b3a('0x86')][_0x3b3a('0xfc')](_0x3b3a('0x127'),!0x0),this[_0x3b3a('0x11a')]=_0x10855e['config'][_0x3b3a('0x13a')]('trackChanges.mergeNestedSuggestions'),this[_0x3b3a('0x28')]=new _0x41bdf1(_0x10855e,this[_0x3b3a('0xe0')]),this[_0x565a77([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x565a77([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x38]);}[_0x3b3a('0x67')](){const _0x2c0938=this[_0x3b3a('0x2f')];_0x2c0938['conversion']['for'](_0x3b3a('0x12a'))['markerToHighlight']({'model':_0x3b3a('0x65'),'view':_0x3da648=>{const {id:_0x3f4db9,type:_0xe2be87}=this[_0x3b3a('0xe')](_0x3da648[_0x3b3a('0x79')]),_0x807f5a=['ck-suggestion-marker',_0x3b3a('0x10e')+_0xe2be87];let _0x2bc137=0xbb8;return this[_0x3b3a('0xa8')][_0x3b3a('0x11f')](_0x3da648[_0x3b3a('0x79')])&&(_0x807f5a[_0x3b3a('0x4e')](_0x3b3a('0x3b')),_0x2bc137=0xbc2),_0x3b3a('0x30')==_0xe2be87&&(_0x2bc137+=0x5),{'classes':_0x807f5a,'attributes':{'data-suggestion':_0x3f4db9},'priority':_0x2bc137};}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))['add'](_0xe45712=>{_0xe45712['on'](_0x3b3a('0x4a'),(_0x2fc242,_0x7039e8,_0x1c3155)=>{if(!_0x1c3155['options'][_0x3b3a('0xf1')])return;const _0x5070ed=_0x7039e8['item'];if(!_0x5070ed)return;const _0x59ce2b=_0x1c3155[_0x3b3a('0x15')][_0x3b3a('0x36')](_0x5070ed);_0x2c0938['model']['schema'][_0x3b3a('0x37')](_0x5070ed)&&_0x59ce2b&&!_0x59ce2b[_0x3b3a('0x69')]('widget')&&_0x59ce2b['is']('containerElement')&&_0x3caca7(_0x59ce2b,_0x1c3155['writer']);},{'priority':'high'});}),_0x2c0938[_0x3b3a('0x102')]['for']('dataDowncast')[_0x3b3a('0x76')]({'model':_0x3b3a('0x65'),'view':(_0x4fc3bd,_0x5004b2)=>{if(!_0x5004b2[_0x3b3a('0xfb')][_0x3b3a('0xf1')])return null;const {type:_0x9567a}=this[_0x3b3a('0xe')](_0x4fc3bd['markerName']);return{'classes':[_0x3b3a('0x46'),_0x3b3a('0x10e')+_0x9567a],'priority':0xbb8};}});const _0x1e244c=({showActiveMarkers:_0x40e916=!0x0}={})=>(_0xf28b4e,_0x3c82c0,_0x2234a2)=>{if(!_0x3c82c0[_0x3b3a('0xdc')])return;if(_0x3c82c0[_0x3b3a('0xdc')]['is'](_0x3b3a('0x51')))return void _0x2234a2['consumable'][_0x3b3a('0xf')](_0x3c82c0[_0x3b3a('0xdc')],_0xf28b4e[_0x3b3a('0xe1')]);const _0x57c2b8=_0x2234a2[_0x3b3a('0x15')][_0x3b3a('0x36')](_0x3c82c0['item']);if(!(_0x3c82c0[_0x3b3a('0xdc')]['is']('element')&&_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')][_0x3b3a('0x47')](_0x3c82c0['item'])&&!_0x57c2b8[_0x3b3a('0x69')](_0x3b3a('0x82'))))return;const {id:_0x5f45a3}=this[_0x3b3a('0xe')](_0x3c82c0['markerName']);_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xaf')]([_0x3b3a('0x46'),_0x3b3a('0x70')],_0x57c2b8),_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xef')](_0x3b3a('0xb5'),_0x5f45a3,_0x57c2b8),_0x2234a2['mapper'][_0x3b3a('0x78')](_0x57c2b8,_0x3c82c0[_0x3b3a('0x79')]),_0x40e916&&(this[_0x3b3a('0xa8')]['includes'](_0x3c82c0['markerName'])?_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0xaf')](_0x3b3a('0x3b'),_0x57c2b8):_0x2234a2[_0x3b3a('0x103')][_0x3b3a('0x27')](_0x3b3a('0x3b'),_0x57c2b8));for(const _0x309021 of _0x2c0938[_0x3b3a('0x105')]['createRangeIn'](_0x3c82c0[_0x3b3a('0xdc')])[_0x3b3a('0x5d')]())_0x2234a2[_0x3b3a('0x73')]['consume'](_0x309021,_0xf28b4e['name']);_0x2234a2[_0x3b3a('0x73')][_0x3b3a('0xf')](_0x3c82c0[_0x3b3a('0xdc')],_0xf28b4e[_0x3b3a('0xe1')]);};_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))[_0x3b3a('0x12b')](_0x11ad6f=>{_0x11ad6f['on'](_0x3b3a('0xd9'),(_0x39ae84,_0x557e36,_0x22bc36)=>{_0x22bc36[_0x3b3a('0xfb')][_0x3b3a('0xf1')]&&_0x1e244c({'showActiveMarkers':!0x1})(_0x39ae84,_0x557e36,_0x22bc36);},{'priority':_0x3b3a('0xd4')});}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x89'))[_0x3b3a('0x121')]({'model':_0x3b3a('0x65'),'view':(_0xd1c904,_0x43b9a2)=>_0x43b9a2[_0x3b3a('0xfb')]['showSuggestionHighlights']?null:{'group':_0x3b3a('0x65'),'name':_0xd1c904[_0x3b3a('0x1e')](0xb)}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0xc6'))[_0x3b3a('0xf0')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x26dbc1,{writer:_0x5881b5})=>{let _0x325d85=_0x3b3a('0x52')+_0x26dbc1[_0x3b3a('0xac')](_0x3b3a('0x12e'))+':'+_0x26dbc1[_0x3b3a('0xac')]('id');return _0x26dbc1[_0x3b3a('0xac')](_0x3b3a('0x116'))&&(_0x325d85+=':'+_0x26dbc1['getAttribute'](_0x3b3a('0x116'))),_0x5881b5[_0x3b3a('0x2e')](_0x3b3a('0x34'),{'data-name':_0x325d85});}}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')]('upcast')[_0x3b3a('0xb4')]({'view':_0x3b3a('0x65')}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x12a'))[_0x3b3a('0x12b')](_0x2e91a3=>{_0x2e91a3['on']('addMarker:suggestion:formatBlock',_0x1e244c(),{'priority':_0x3b3a('0x26')});}),_0x2c0938[_0x3b3a('0x102')][_0x3b3a('0xf4')](_0x3b3a('0x12a'))[_0x3b3a('0x12b')](_0x36ff6b=>{_0x36ff6b['on'](_0x3b3a('0xbe'),(_0xbee629,_0x34d702,_0x3d434c)=>{const _0x325caa=_0x3d434c[_0x3b3a('0x15')][_0x3b3a('0x4')](_0x34d702['markerName']);if(_0x325caa)for(const _0xca140f of _0x325caa)_0xca140f[_0x3b3a('0x69')](_0x3b3a('0x82'))||(_0x3d434c[_0x3b3a('0x103')]['removeClass']([_0x3b3a('0x46'),_0x3b3a('0x70'),_0x3b3a('0x3b')],_0xca140f),_0x3d434c[_0x3b3a('0x103')][_0x3b3a('0x12')](_0x3b3a('0xb5'),_0xca140f),_0x3d434c[_0x3b3a('0x15')][_0x3b3a('0xa')](_0xca140f,_0x34d702[_0x3b3a('0x79')]));},{'priority':_0x3b3a('0x26')});}),_0x2c0938['model']['document']['registerPostFixer'](_0x2b8b77=>{let _0x3d71af=!0x1;const _0x1d7147=Array[_0x3b3a('0x140')](_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')]['getChangedMarkers']()),_0x4d24e1=new Set();for(const {name:_0x75b5ad,data:_0x5e8e6f}of _0x1d7147){const {group:_0x27aa23,type:_0x5798b3,id:_0x366675}=this['_splitMarkerName'](_0x75b5ad);if('suggestion'!==_0x27aa23)continue;const _0x542821=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x366675);if(null!=_0x5e8e6f[_0x3b3a('0x132')]){'formatInline'==_0x5798b3&&(_0x3d71af=_0x3d71af||Mt(_0x5e8e6f[_0x3b3a('0x132')],_0x75b5ad,_0x2b8b77,_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')]));if(_0x5e8e6f[_0x3b3a('0x132')]['isCollapsed']||_0x3b3a('0x129')==_0x5e8e6f['newRange'][_0x3b3a('0xb8')][_0x3b3a('0x101')]||_0x3b3a('0x139')==_0x5798b3&&!Nt(_0x5e8e6f[_0x3b3a('0x132')])||_0x3b3a('0x30')==_0x5798b3&&!(!_t(_0x197f9d=_0x5e8e6f[_0x3b3a('0x132')])&&!function(_0x5d82fc){return _0x5d82fc[_0x3b3a('0x1f')][_0x3b3a('0x6c')]==_0x5d82fc['end'][_0x3b3a('0x19')]&&_0x5d82fc[_0x3b3a('0x1f')][_0x3b3a('0xfd')];}(_0x197f9d)))_0x2b8b77['removeMarker'](_0x75b5ad),_0x3d71af=!0x0;else{if(!_0x542821||!_0x542821[_0x3b3a('0x115')])continue;_0x4d24e1[_0x3b3a('0x12b')](_0x542821);}}}var _0x197f9d;return _0x4d24e1[_0x3b3a('0xbc')]>0x0&&(_0x3d71af=!!this['_joinWithAdjacentSuggestions'](_0x4d24e1)||_0x3d71af),_0x3d71af;}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')]['registerPostFixer'](_0x572d95=>{let _0x11afdb=!0x1;for(const _0x475ce1 of _0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')][_0x3b3a('0xb0')]()){if(_0x3b3a('0x10c')!=_0x475ce1[_0x3b3a('0xc')])continue;const _0x58b4f5=_0x475ce1[_0x3b3a('0xcd')][_0x3b3a('0x6a')](_0x475ce1['length']);if(_0x58b4f5['isAtEnd'])for(const _0x255ea7 of this['_suggestions'][_0x3b3a('0xdf')]()){if(_0x255ea7[_0x3b3a('0x5c')]||!_0x255ea7[_0x3b3a('0x115')])continue;if(_0x3b3a('0x139')!=_0x255ea7[_0x3b3a('0xc')])continue;const _0x3a2775=_0x255ea7[_0x3b3a('0xa4')]();if(_0x3a2775[_0x3b3a('0x1f')][_0x3b3a('0x6c')]!=_0x3a2775[_0x3b3a('0x4d')][_0x3b3a('0x6c')]&&_0x3a2775[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x475ce1[_0x3b3a('0xcd')])){const _0x42d65c=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x3a2775[_0x3b3a('0x1f')],_0x58b4f5);_0x572d95[_0x3b3a('0xda')](_0x255ea7[_0x3b3a('0xd1')](),{'range':_0x42d65c}),_0x11afdb=!0x0;}}}return _0x11afdb;}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x137')]['on'](_0x3b3a('0xc7'),(_0x1a0466,_0x55a179,_0x2f7de6)=>{if(null==_0x2f7de6){const {id:_0x5d9987}=this[_0x3b3a('0xe')](_0x55a179[_0x3b3a('0xe1')]),_0x199761=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x5d9987);_0x199761&&_0x199761[_0x3b3a('0x31')](_0x55a179['name']);}}),_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')]['on'](_0x3b3a('0x3e'),()=>{const _0x5858e6=Array[_0x3b3a('0x140')](_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x9f')][_0x3b3a('0x55')][_0x3b3a('0xcb')]())[_0x3b3a('0xe8')](_0x279644=>_0x3b3a('0x65')===this[_0x3b3a('0xe')](_0x279644[_0x3b3a('0xe1')])[_0x3b3a('0x3')]);if(0x0===_0x5858e6[_0x3b3a('0x84')])return;_0x5858e6['sort']((_0x141538,_0x21cc8c)=>{const _0x1f1fc1=_0x141538[_0x3b3a('0x62')]['oldRange'],_0x4cc9b0=_0x21cc8c[_0x3b3a('0x62')]['oldRange'];return null===_0x1f1fc1&&null===_0x4cc9b0?0x0:null===_0x1f1fc1&&null!==_0x4cc9b0?-0x1:null!==_0x1f1fc1&&null===_0x4cc9b0?0x1:_0x1f1fc1['start'][_0x3b3a('0x117')](_0x4cc9b0['start'])?-0x1:0x1;});const _0xdae2b2=new Set(),_0x31f47b=new Set();for(const {name:_0x4520fd,data:_0x38e36e}of _0x5858e6){const {id:_0x9deda7}=this['_splitMarkerName'](_0x4520fd);if(null===_0x38e36e[_0x3b3a('0xcf')]){const _0x4ba167=this[_0x3b3a('0x100')](_0x4520fd);_0x31f47b[_0x3b3a('0x12b')](_0x4ba167);}else{const _0x536086=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x9deda7);null!==_0x38e36e[_0x3b3a('0x132')]||_0x536086[_0x3b3a('0x115')]?(_0xdae2b2['add'](_0x536086[_0x3b3a('0x125')]),_0x31f47b['add'](_0x536086)):this[_0x3b3a('0xaa')](_0x536086);}}_0x31f47b[_0x3b3a('0xbc')]>0x0&&this[_0x3b3a('0x10a')](_0x31f47b);for(const _0x4b8cbd of _0xdae2b2)this[_0x3b3a('0x7')](_0x3b3a('0x99'),_0x4b8cbd);}),_0x2c0938[_0x3b3a('0x105')]['on'](_0x3b3a('0x108'),(_0x1adbd1,_0x4b83a2)=>{const _0x339e59=_0x4b83a2[0x0];if(!this[_0x3b3a('0x7b')][_0x3b3a('0xbc')])return;if(!_0x339e59[_0x3b3a('0xd5')])return;if(_0x339e59[_0x3b3a('0x3a')][_0x3b3a('0xee')]||!_0x339e59[_0x3b3a('0x3a')][_0x3b3a('0x81')])return;let _0x582883,_0x1cddc0;switch(_0x339e59[_0x3b3a('0xc')]){case'insert':_0x582883=_0x2c0938[_0x3b3a('0x105')]['createPositionAt'](_0x339e59[_0x3b3a('0xcd')]),_0x1cddc0=_0x582883[_0x3b3a('0x6a')](_0x339e59[_0x3b3a('0x64')]);break;case _0x3b3a('0x29'):_0x582883=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59[_0x3b3a('0xf3')]),_0x1cddc0=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59['moveTargetPosition']);break;case _0x3b3a('0xec'):_0x582883=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x339e59['targetPosition']),_0x1cddc0=_0x582883['getShiftedBy'](_0x339e59[_0x3b3a('0x64')]);break;default:return;}const _0x26fa5a=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x582883,_0x1cddc0);_0x2c0938['model'][_0x3b3a('0x1a')](()=>{for(const {suggestion:_0x547120,meta:_0xb711f6}of this[_0x3b3a('0xc1')](_0x26fa5a)){if(_0x547120[_0x3b3a('0x5c')])continue;if(_0x3b3a('0xd8')==_0x547120[_0x3b3a('0xc')])continue;const _0x3324f1=_0x547120[_0x3b3a('0x62')]&&_0x547120['data'][_0x3b3a('0x6f')];(_0x3b3a('0x139')!=_0x547120[_0x3b3a('0xc')]||_0x3b3a('0x29')==_0x339e59['type']&&!_0x3324f1)&&(_0xb711f6['containsRangeInObject']||_0x3b3a('0xe9')==_0x547120[_0x3b3a('0xc')]&&_0xb711f6[_0x3b3a('0x4b')]||_0x547120['getFirstRange']()[_0x3b3a('0x5')](_0x26fa5a)&&this['_breakSuggestionMarker'](_0x547120,_0x582883,_0x1cddc0));}});},{'priority':_0x3b3a('0x9e')}),_0x2c0938['model']['on'](_0x3b3a('0x0'),(_0x51e84c,_0x2bd6e2)=>{const _0x29b5b4=_0x2bd6e2[0x0],_0x2021f2=_0x2bd6e2[0x1];if(_0x2021f2&&_0x2021f2[_0x3b3a('0x41')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3b3a('0x28')]['value'])return;if(_0x29b5b4[_0x3b3a('0x135')])return;const _0x3381db=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')],{start:_0x45f245,end:_0x47db8e}=_0x29b5b4[_0x3b3a('0xa4')](),_0xe7fb0c=_0x45f245[_0x3b3a('0xce')]&&_0x3381db['isLimit'](_0x45f245[_0x3b3a('0xce')])?null:_0x3381db[_0x3b3a('0xf2')](_0x45f245,_0x3b3a('0x13c')),_0x2884d8=_0x47db8e[_0x3b3a('0x19')]&&_0x3381db[_0x3b3a('0x24')](_0x47db8e[_0x3b3a('0x19')])?null:_0x3381db['getNearestSelectionRange'](_0x47db8e,_0x3b3a('0x10d')),_0x28b94e=_0x2c0938['model']['createRange'](_0xe7fb0c?_0xe7fb0c[_0x3b3a('0x1f')]:_0x45f245,_0x2884d8?_0x2884d8[_0x3b3a('0x4d')]:_0x47db8e);_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x1a')](_0x5142c3=>{this['markDeletion'](_0x28b94e);const _0x142af1=_0x2c0938['model'][_0x3b3a('0x77')]['getNearestSelectionRange'](_0x28b94e['start']);_0x29b5b4['is'](_0x3b3a('0xf8'))?_0x5142c3['setSelection'](_0x142af1):_0x29b5b4[_0x3b3a('0xde')](_0x142af1);}),_0x51e84c['stop']();},{'priority':_0x4c7313[_0x3b3a('0x124')]+0xa}),_0x2c0938[_0x3b3a('0x105')]['on'](_0x3b3a('0x18'),(_0x12368b,_0x3eaa72)=>{const _0x273309=_0x3eaa72[_0x3eaa72[_0x3b3a('0x84')]-0x1];_0x273309&&_0x273309[_0x3b3a('0x41')]||this['_isForcedDefaultExecutionBlock']||this[_0x3b3a('0x28')][_0x3b3a('0xad')]&&(_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x1a')](()=>{let _0x41f23f=_0x2c0938['model'][_0x3b3a('0x18')](_0x3eaa72[0x0],_0x3eaa72[0x1],_0x3eaa72[0x2],{'forceDefaultExecution':!0x0});if(!_0x41f23f)return;_0x12368b[_0x3b3a('0x56')]=_0x41f23f[_0x3b3a('0x120')]();const _0x54cab8=_0x41f23f[_0x3b3a('0x4d')][_0x3b3a('0x19')],_0x40e277=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x77')];_0x54cab8&&_0x40e277[_0x3b3a('0x47')](_0x54cab8)&&!_0x40e277['isObject'](_0x54cab8)&&(_0x41f23f=_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x16')](_0x41f23f[_0x3b3a('0x1f')],_0x2c0938[_0x3b3a('0x105')][_0x3b3a('0x133')](_0x54cab8,'end'))),this[_0x3b3a('0x48')](_0x41f23f);}),_0x12368b['stop']());},{'priority':_0x3b3a('0x26')}),this[_0x3b3a('0x2f')][_0x3b3a('0x40')]['add'](_0x3b3a('0x123'),this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a4337=new _0x1b56cc(_0x2c0938,this[_0x3b3a('0x7b')]);_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0x106'),_0x5a4337),this[_0x3b3a('0xa1')](_0x3b3a('0x106'));const _0x18bb06=new _0x5df727(_0x2c0938,this[_0x3b3a('0x7b')]);_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')]('discardSuggestion',_0x18bb06),this[_0x3b3a('0xa1')]('discardSuggestion'),_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0xb9'),new _0x8f7995(_0x2c0938,_0x5a4337,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0xb9')),_0x2c0938[_0x3b3a('0x40')][_0x3b3a('0x12b')](_0x3b3a('0x85'),new _0x8f7995(_0x2c0938,_0x18bb06,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x85')),_0x2c0938['commands'][_0x3b3a('0x12b')]('acceptSelectedSuggestions',new _0x5229a3(_0x2c0938,_0x5a4337,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x42')),_0x2c0938['commands'][_0x3b3a('0x12b')](_0x3b3a('0x98'),new _0x5229a3(_0x2c0938,_0x18bb06,this[_0x3b3a('0x7b')])),this[_0x3b3a('0xa1')](_0x3b3a('0x98'));const _0x5b5fcb=_0x2c0938[_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0x5e'));this[_0x3b3a('0xd7')](_0x5b5fcb,_0x3b3a('0x109'),(_0x4f77be,{threadId:_0x30835b})=>{const _0x30dc19=this['_suggestions'][_0x3b3a('0x13a')](_0x30835b);_0x30dc19&&_0x30dc19[_0x3b3a('0x38')]&&0x1===_0x30dc19[_0x3b3a('0x38')][_0x3b3a('0x84')]&&this[_0x3b3a('0x11c')](_0x30835b,{'hasComments':!0x0});},{'priority':'low'}),this[_0x3b3a('0xd7')](_0x5b5fcb,_0x3b3a('0x9d'),(_0x157ca7,{threadId:_0x2da3be})=>{const _0x451d36=this['_suggestions'][_0x3b3a('0x13a')](_0x2da3be);_0x451d36&&_0x451d36['commentThread']&&!_0x451d36[_0x3b3a('0x38')][_0x3b3a('0x84')]&&this['_updateSuggestionData'](_0x2da3be,{'hasComments':!0x1});},{'priority':_0x3b3a('0x111')});}set['adapter'](_0x4184cb){if(this['_adapter'])throw new _0x351a30('track-changes-adapter-already-set',this);this['_adapter']=_0x4184cb;}get[_0x3b3a('0xba')](){return this[_0x3b3a('0x68')];}[_0x3b3a('0x122')]({skipNotAttached:_0x4405b0=!0x1,toJSON:_0x2bb5af=!0x1}={}){const _0x479e21=[];for(const _0x5b33ad of this[_0x3b3a('0x7b')][_0x3b3a('0xdf')]())_0x4405b0&&!_0x5b33ad[_0x3b3a('0x115')]||_0x479e21[_0x3b3a('0x4e')](_0x5b33ad);return _0x2bb5af?_0x479e21[_0x3b3a('0xb')](_0x563689=>_0x563689[_0x3b3a('0x7d')]()):_0x479e21;}[_0x3b3a('0x35')](_0x3d1f5b){const _0x30f087=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x3d1f5b);if(!_0x30f087)throw new _0x351a30(_0x3b3a('0x2d'),this);return _0x30f087;}['hasSuggestion'](_0x146cb2){return this[_0x3b3a('0x7b')][_0x3b3a('0xff')](_0x146cb2);}[_0x3b3a('0x9a')](_0x325ede){const {authorId:_0x3380ed,id:_0x16dc36,attributes:_0x33cfdf}=_0x325ede,[_0x234cb9,_0x2b8896]=_0x325ede['type']['split'](':'),_0x33c2ed=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x16dc36)||this['_createSuggestion'](_0x234cb9,_0x2b8896,_0x16dc36,_0x3380ed,_0x33cfdf);if(this['_addThreadToSuggestion'](_0x33c2ed),this[_0x3b3a('0x53')](_0x33c2ed,_0x234cb9,_0x2b8896||null,_0x3380ed),_0x33c2ed['createdAt']=_0x325ede['createdAt'],_0x33cfdf&&_0x33cfdf[_0x3b3a('0x7a')]){const _0xcd008=_0x33cfdf[_0x3b3a('0x7a')],_0x2bfe01=this['_getExternalAuthor'](_0xcd008[_0x3b3a('0x9c')]);_0x33c2ed['authoredAt']=_0xcd008['createdAt'],_0x33c2ed[_0x3b3a('0xc8')]=_0x2bfe01,_0x33c2ed[_0x3b3a('0x32')]=!0x0;}else _0x33c2ed[_0x3b3a('0x136')]=_0x325ede[_0x3b3a('0xd2')];switch(_0x325ede[_0x3b3a('0x62')]&&(_0x33c2ed[_0x3b3a('0x62')]=_0x325ede[_0x3b3a('0x62')]),_0x325ede['attributes']&&(_0x33c2ed[_0x3b3a('0xc3')]=_0x325ede[_0x3b3a('0xc3')]),this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0x96')]||(_0x33c2ed[_0x3b3a('0x44')]=!0x0),this[_0x3b3a('0xcc')]['get'](_0x33c2ed)){case _0x3b3a('0xe7'):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,'dataReady');break;case _0x3b3a('0xf7'):_0x33c2ed[_0x3b3a('0x115')]?(this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,_0x3b3a('0x1c')),this['fire']('suggestionLoaded',_0x33c2ed)):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x33c2ed,_0x3b3a('0x130'));}return _0x33c2ed;}[_0x3b3a('0x106')](_0x5dbe42){this[_0x3b3a('0x41')](()=>{this['editor'][_0x3b3a('0x105')]['change'](()=>{for(const _0x21bc40 of _0x5dbe42[_0x3b3a('0x3f')]())_0x21bc40[_0x3b3a('0x7f')]();});});}[_0x3b3a('0x9')](_0x278e82){this[_0x3b3a('0x41')](()=>{this['editor'][_0x3b3a('0x105')][_0x3b3a('0x1a')](()=>{for(const _0xdc0525 of _0x278e82['getAllAdjacentSuggestions']())_0xdc0525['discard']();});});}[_0x3b3a('0xa1')](_0x597127,_0x4c8357){const _0x1d1033=this[_0x3b3a('0x2f')][_0x3b3a('0x40')][_0x3b3a('0x13a')](_0x597127);if(!_0x1d1033)throw new _0x351a30(_0x3b3a('0x134'),this,{'commandName':_0x597127});this[_0x3b3a('0xe0')]['add'](_0x1d1033),_0x4c8357&&_0x1d1033['on'](_0x3b3a('0xd0'),(_0x4160d4,_0x1c9441)=>{this[_0x3b3a('0x28')][_0x3b3a('0xad')]&&(this[_0x3b3a('0x141')]||_0x1c9441[_0x3b3a('0x84')]>0x0&&_0x1c9441[_0x1c9441[_0x3b3a('0x84')]-0x1]&&_0x1c9441[_0x1c9441[_0x3b3a('0x84')]-0x1][_0x3b3a('0x41')]||(_0x4c8357((..._0x299ad7)=>_0x1d1033[_0x3b3a('0xd0')](..._0x299ad7,{'forceDefaultExecution':!0x0}),..._0x1c9441),_0x4160d4[_0x3b3a('0x13d')]()));},{'priority':'high'});}[_0x3b3a('0x41')](_0x2b5e5d){let _0x9c3cff,_0x5de211;const _0x42a813=this[_0x3b3a('0x141')];this[_0x3b3a('0x141')]=!0x0;try{_0x9c3cff=_0x2b5e5d();}catch(_0x22c178){_0x5de211=_0x22c178;}return _0x42a813||(this[_0x3b3a('0x141')]=!0x1),_0x5de211&&_0x351a30['rethrowUnexpectedError'](_0x5de211,this),_0x9c3cff;}['markInsertion'](_0x90ebf9,_0x429369=null,_0x1e7bde={}){if(_0x90ebf9[_0x3b3a('0x135')])return null;const _0x28b9da=this['editor'][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'];for(const {suggestion:_0x57d8c7,meta:_0xb8fabd}of this[_0x3b3a('0xc1')](_0x90ebf9,_0x3b3a('0xe9')))if(_0xb8fabd[_0x3b3a('0x4b')]){if(!_0xb8fabd[_0x3b3a('0x5f')]){if(!this[_0x3b3a('0x11a')]&&_0xb8fabd[_0x3b3a('0x74')])continue;return _0x57d8c7;}if(_0x429369==_0x57d8c7[_0x3b3a('0xf6')]){const _0x4acceb=_0x57d8c7[_0x3b3a('0xa4')]();return _0x4acceb['start'][_0x3b3a('0x25')](_0x90ebf9[_0x3b3a('0x4d')])?this[_0x3b3a('0x17')](_0x57d8c7,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x90ebf9['start'],_0x4acceb[_0x3b3a('0x4d')])):this[_0x3b3a('0x17')](_0x57d8c7,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x4acceb[_0x3b3a('0x1f')],_0x90ebf9[_0x3b3a('0x4d')])),_0x57d8c7;}}const _0x485e9c=_0x562252(),_0x3de3b7=_0x28b9da['id'],_0x4378aa=_0x429369?_0x3b3a('0x23')+_0x429369:_0x3b3a('0xe9'),_0x34fe58=this[_0x3b3a('0x112')]({'id':_0x485e9c,'type':_0x4378aa,'createdAt':new Date(),'authorId':_0x3de3b7,'attributes':_0x1e7bde});return this[_0x3b3a('0x8e')](_0x4378aa,_0x485e9c,_0x3de3b7,_0x90ebf9),_0x34fe58;}[_0x3b3a('0x13')](_0x1478c6,_0x300ac4=_0x3b3a('0xeb'),_0x50398b={}){const _0x2e0171=this[_0x3b3a('0x2f')]['plugins'][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x3869ac=this[_0x3b3a('0x3d')]['getSuggestionCallback'](_0x3b3a('0xe9'),_0x300ac4,_0x3b3a('0x59'));for(const _0x48953f of this['getSuggestions']())if(_0x48953f[_0x3b3a('0xc8')]['id']==_0x2e0171['id']&&_0x3b3a('0xe9')==_0x48953f[_0x3b3a('0xc')]&&_0x48953f['subType']==_0x300ac4&&(_0x3869ac(_0x48953f['getRanges'](),_0x1478c6)||_0x3869ac(_0x1478c6,_0x48953f['getRanges']()))){for(const _0x4e3c7a of _0x1478c6)_0x48953f['addRange'](_0x4e3c7a);return _0x48953f;}if(this[_0x3b3a('0x11a')])for(const _0x1a3198 of _0x1478c6)for(const {suggestion:_0xf75895,meta:_0x555747}of this[_0x3b3a('0xc1')](_0x1a3198,_0x3b3a('0xe9'))){if(!_0x555747[_0x3b3a('0x4b')])continue;let _0x3163e4=!0x0;for(const _0x241e1c of _0xf75895[_0x3b3a('0x5b')]())for(const _0x3f3911 of _0x1478c6)if(!_0x241e1c['containsRange'](_0x3f3911)){_0x3163e4=!0x1;break;}if(_0x3163e4)return _0xf75895;}const _0x25529b=_0x562252(),_0x2fde60=_0x2e0171['id'],_0x2c78d6='insertion:'+_0x300ac4,_0x1dd0a5=this[_0x3b3a('0x112')]({'id':_0x25529b,'type':_0x2c78d6,'createdAt':new Date(),'authorId':_0x2fde60,'attributes':_0x50398b});for(const _0x95f008 of _0x1478c6)this[_0x3b3a('0x8e')](_0x2c78d6,_0x25529b,_0x2fde60,_0x95f008,_0x38aeef[_0x3b3a('0x12d')]());return _0x1dd0a5;}[_0x3b3a('0x80')](_0xb355b2,_0xe1aa8b,_0x408933=null,_0x269aac={}){if(_0x408933=_0x408933||$t(_0xe1aa8b),_0xb355b2[_0x3b3a('0x135')])return null;if('never'===this[_0x3b3a('0x87')]){const _0x4e917a=this['_suggestionFactory'][_0x3b3a('0x131')](_0x3b3a('0xd8'),_0x408933,'accept');return this['forceDefaultExecution'](()=>_0x4e917a([_0xb355b2],_0xe1aa8b,_0x269aac)),null;}const _0x236019=this['editor'][_0x3b3a('0x1')][_0x3b3a('0x13a')]('Users')['me'],_0x8566d3=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x2867b7,meta:_0x337d60}of this[_0x3b3a('0xc1')](_0xb355b2,_0x3b3a('0xe9')))_0x337d60['isOwn']&&!_0x337d60[_0x3b3a('0x94')]&&_0x8566d3['push'](..._0x2867b7[_0x3b3a('0x5b')]());const _0x368fb3=function(_0x1d8b13,_0x1872e4){const _0x3eb42c=[];for(const _0x22406a of _0x1872e4){const _0x5ae381=_0x1d8b13[_0x3b3a('0xc2')](_0x22406a);_0x5ae381&&_0x3eb42c['push'](_0x5ae381);}return _0x3eb42c;}(_0xb355b2,_0x8566d3),_0x34a7da=function(_0x4d3817,_0x4158f9){const _0xd80c71=[_0x4d3817];for(const _0x181a6c of _0x4158f9){let _0x2ff8a2=0x0;for(;_0x2ff8a2<_0xd80c71['length'];){const _0xab17bb=_0xd80c71[_0x2ff8a2][_0x3b3a('0x11e')](_0x181a6c);_0xd80c71['splice'](_0x2ff8a2,0x1,..._0xab17bb),_0x2ff8a2+=_0xab17bb['length'];}}return _0xd80c71;}(_0xb355b2,_0x8566d3);_0x368fb3[_0x3b3a('0x84')]&&this[_0x3b3a('0x75')][_0x3b3a('0x1a')](()=>{for(const _0x17daf8 of _0x368fb3){const _0x47e691=this['_suggestionFactory']['getSuggestionCallback'](_0x3b3a('0xd8'),_0x408933,_0x3b3a('0x7f'));this[_0x3b3a('0x41')](()=>_0x47e691([_0x17daf8],_0xe1aa8b,_0x269aac));}});for(const _0x17e069 of _0x34a7da){let _0x64bd9f=null,_0x141334=_0x17e069['start'],_0x1e56b3=_0x17e069[_0x3b3a('0x4d')];for(const {suggestion:_0x3d015c,meta:_0x395ac7}of this['_findSuggestions'](_0x17e069,_0x3b3a('0xd8'))){if(!_0x395ac7[_0x3b3a('0x4b')])continue;if(_0x3d015c[_0x3b3a('0xf6')]!=_0x408933)continue;const _0x32509f=_0x3d015c['getFirstRange']();if(_0x32509f[_0x3b3a('0x5')](_0x17e069,!0x0))return null;_0x141334=_0x141334[_0x3b3a('0x117')](_0x32509f[_0x3b3a('0x1f')])?_0x141334:_0x32509f[_0x3b3a('0x1f')],_0x1e56b3=_0x1e56b3[_0x3b3a('0x90')](_0x32509f[_0x3b3a('0x4d')])?_0x1e56b3:_0x32509f[_0x3b3a('0x4d')],_0x64bd9f?_0x32509f[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x64bd9f[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x64bd9f['removeMarkers'](),_0x64bd9f=_0x3d015c):_0x3d015c[_0x3b3a('0x110')]():_0x64bd9f=_0x3d015c;}const _0x182a14=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x141334,_0x1e56b3);if(_0x64bd9f)this[_0x3b3a('0x17')](_0x64bd9f,_0x182a14);else{const _0x114a03=_0x562252(),_0x2e267c=_0x236019['id'];this[_0x3b3a('0x112')]({'id':_0x114a03,'type':'formatInline:'+_0x408933,'data':_0xe1aa8b,'createdAt':new Date(),'authorId':_0x2e267c,'attributes':_0x269aac}),this['_addSuggestionMarker'](_0x3b3a('0xd')+_0x408933,_0x114a03,_0x2e267c,_0x182a14);}}return null;}[_0x3b3a('0x54')](_0x17deb8,_0xebecf3,_0x4b42ef=[],_0x18a27f=null,_0xac7ded={}){_0xebecf3['formatGroupId']||(_0xebecf3[_0x3b3a('0x10')]=_0xebecf3[_0x3b3a('0x138')]),_0xebecf3[_0x3b3a('0x6f')]=_0x17deb8['is'](_0x3b3a('0x83')),_0x18a27f=_0x18a27f||$t(_0xebecf3);const _0x2b8f7b=_0x4b42ef[_0x3b3a('0xb')](_0x48f7f6=>Rt(_0x48f7f6,this['_model'])),_0x1a0183=_0x17deb8['is']('range')?_0x17deb8:Rt(_0x17deb8,this[_0x3b3a('0x75')]);if(_0x3b3a('0xf9')===this['_trackFormatChanges']){const _0x361087=this['_suggestionFactory'][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x18a27f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x361087([_0x1a0183],_0xebecf3,_0xac7ded)),null;}_0x2b8f7b[_0x3b3a('0x4e')](_0x1a0183);let _0x169ccb=!0x0;for(const _0x1e9e40 of _0x2b8f7b)if(!this[_0x3b3a('0x33')](_0x1e9e40)){_0x169ccb=!0x1;break;}if(_0x169ccb&&'always'!==this['_trackFormatChanges']){const _0xe5929e=this['_suggestionFactory'][_0x3b3a('0x131')]('formatBlock',_0x18a27f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0xe5929e([_0x1a0183],_0xebecf3,_0xac7ded)),null;}let _0x49e905=null,_0x10cb77=_0x1a0183['start'],_0x30cddd=_0x1a0183[_0x3b3a('0x4d')];for(const {suggestion:_0x147c51,meta:_0xd8b1a4}of this['_findSuggestions'](_0x1a0183,_0x3b3a('0x139'))){if(!_0xd8b1a4['isOwn']||_0xd8b1a4[_0x3b3a('0x5f')]||_0xd8b1a4[_0x3b3a('0x74')]||_0xd8b1a4[_0x3b3a('0x94')])continue;if(_0x147c51[_0x3b3a('0x62')][_0x3b3a('0x10')]!=_0xebecf3[_0x3b3a('0x10')])continue;const _0xa7508=_0x147c51[_0x3b3a('0xa4')]();if(_0x147c51[_0x3b3a('0xf6')]==_0x18a27f){if(_0xa7508[_0x3b3a('0x5')](_0x1a0183,!0x0))return null;_0x10cb77=_0x10cb77[_0x3b3a('0x117')](_0xa7508[_0x3b3a('0x1f')])?_0x10cb77:_0xa7508[_0x3b3a('0x1f')],_0x30cddd=_0x30cddd[_0x3b3a('0x90')](_0xa7508[_0x3b3a('0x4d')])?_0x30cddd:_0xa7508[_0x3b3a('0x4d')],_0x49e905?_0xa7508[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x49e905[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x49e905['removeMarkers'](),_0x49e905=_0x147c51):_0x147c51[_0x3b3a('0x110')]():_0x49e905=_0x147c51;}else{const _0x476e8d=_0x1a0183[_0x3b3a('0xc2')](_0xa7508);this[_0x3b3a('0xbb')](_0x147c51,_0x476e8d);}}const _0x2c772e=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x55dd93=_0x562252(),_0x3c579b=_0x2c772e['id'];if(_0x49e905)return this[_0x3b3a('0x17')](_0x49e905,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x10cb77,_0x30cddd)),_0x49e905;{const _0x376503=this[_0x3b3a('0x112')]({'id':_0x55dd93,'type':'formatBlock:'+_0x18a27f,'data':_0xebecf3,'createdAt':new Date(),'authorId':_0x3c579b,'attributes':_0xac7ded});return this[_0x3b3a('0x8e')]('formatBlock:'+_0x18a27f,_0x55dd93,_0x3c579b,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x10cb77,_0x30cddd)),_0x376503;}}[_0x3b3a('0xa0')](_0x56b0c1,_0x5c583a,_0x3ff59d=[],_0x56e023=null,_0x413dbb={}){_0x5c583a['formatGroupId']||(_0x5c583a[_0x3b3a('0x10')]=_0x5c583a['commandName']);const _0x4adc0c=_0x56b0c1[0x0];_0x5c583a[_0x3b3a('0x6f')]=_0x4adc0c['is'](_0x3b3a('0x83')),_0x56e023=_0x56e023||$t(_0x5c583a);const _0xf6ec9c=_0x3ff59d['map'](_0x101c91=>Rt(_0x101c91,this[_0x3b3a('0x75')])),_0x1f6f44=_0x4adc0c['is'](_0x3b3a('0x83'))?_0x56b0c1:_0x56b0c1[_0x3b3a('0xb')](_0x4d1bc0=>Rt(_0x4d1bc0,this['_model']));if(_0x3b3a('0xf9')===this[_0x3b3a('0x87')]){const _0x4cd059=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x56e023,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x4cd059(_0x1f6f44,_0x5c583a,_0x413dbb)),null;}_0xf6ec9c[_0x3b3a('0x4e')](..._0x1f6f44);let _0x25b697=!0x0;for(const _0x4605b3 of _0xf6ec9c)if(!this[_0x3b3a('0x33')](_0x4605b3)){_0x25b697=!0x1;break;}if(_0x25b697&&'always'!==this['_trackFormatChanges']){const _0x3525b2=this['_suggestionFactory'][_0x3b3a('0x131')]('formatBlock',_0x56e023,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x3525b2(_0x1f6f44,_0x5c583a,_0x413dbb)),null;}const _0x18290b=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'];for(const _0x3faa6e of this[_0x3b3a('0x122')]()){if(_0x3faa6e[_0x3b3a('0xc8')]['id']!=_0x18290b['id'])continue;if('formatBlock'!=_0x3faa6e[_0x3b3a('0xc')]||_0x3faa6e[_0x3b3a('0x62')][_0x3b3a('0x10')]!=_0x5c583a[_0x3b3a('0x10')])continue;const _0x3a5f75=_0x3faa6e['subType']==_0x56e023;for(let _0xf9e2d3=0x0;_0xf9e2d3<_0x1f6f44[_0x3b3a('0x84')];_0xf9e2d3++){const _0x4a045a=_0x1f6f44[_0xf9e2d3];for(const _0x175401 of _0x3faa6e['getMarkers']()){const _0x37d475=_0x175401[_0x3b3a('0x58')]();if(_0x4a045a[_0x3b3a('0x25')](_0x37d475)){_0x3a5f75?(_0x1f6f44['splice'](_0xf9e2d3,0x1),_0xf9e2d3--):_0x3faa6e[_0x3b3a('0x114')](_0x175401[_0x3b3a('0xe1')]);break;}}}}if(0x0==_0x1f6f44[_0x3b3a('0x84')])return null;const _0x17489a=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x139'),_0x56e023,'join');for(const _0x34d53f of this['getSuggestions']())if(_0x34d53f[_0x3b3a('0xc8')]['id']==_0x18290b['id']&&_0x3b3a('0x139')==_0x34d53f[_0x3b3a('0xc')]&&_0x34d53f[_0x3b3a('0x62')][_0x3b3a('0x10')]==_0x5c583a['formatGroupId']&&_0x34d53f['subType']==_0x56e023&&(_0x17489a(_0x34d53f[_0x3b3a('0x5b')](),_0x1f6f44)||_0x17489a(_0x1f6f44,_0x34d53f[_0x3b3a('0x5b')]()))){for(const _0x4eebc1 of _0x1f6f44)_0x34d53f['addRange'](_0x4eebc1);return _0x34d53f;}const _0x42988c=_0x562252(),_0x5d6ca5=_0x18290b['id'],_0x329b64=_0x3b3a('0xfa')+_0x56e023,_0x477e2d=this[_0x3b3a('0x112')]({'id':_0x42988c,'type':_0x329b64,'data':_0x5c583a,'createdAt':new Date(),'authorId':_0x5d6ca5,'attributes':_0x413dbb});for(const _0x4b9eb0 of _0x1f6f44)this[_0x3b3a('0x8e')](_0x329b64,_0x42988c,_0x5d6ca5,_0x4b9eb0,_0x38aeef[_0x3b3a('0x12d')]());return _0x477e2d;}[_0x3b3a('0x21')](_0x5e380d,_0x1e717f=null,_0x19bbc6={}){if(_0x5e380d[_0x3b3a('0x135')])return null;const _0x2ce221=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0xcb9d36=new _0x541e31(_0x5e380d[_0x3b3a('0x1f')],_0x5e380d[_0x3b3a('0x4d')]);for(const {suggestion:_0x188faa,meta:_0x46f0ff}of this[_0x3b3a('0xc1')](_0xcb9d36,_0x3b3a('0xe9')))if(_0x46f0ff['isOwn']&&!_0x46f0ff[_0x3b3a('0x5f')]){if(_0x188faa['isMultiRange']){const _0x2de961=_0x188faa[_0x3b3a('0x5b')]()[_0x3b3a('0xe8')](_0x3ddef3=>_0x3b3a('0x129')!=_0x3ddef3[_0x3b3a('0xb8')][_0x3b3a('0x101')]);_0x2de961[_0x3b3a('0xab')](_0x5c990f=>_0xcb9d36[_0x3b3a('0x5')](_0x5c990f,!0x0))&&_0x188faa[_0x3b3a('0x10f')]();if(_0x2de961['some'](_0x19d4b5=>_0x19d4b5[_0x3b3a('0x5')](_0xcb9d36,!0x0))){const _0x6b9f66=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x1e717f,_0x3b3a('0x7f'));return this[_0x3b3a('0x41')](()=>_0x6b9f66([_0xcb9d36],null,_0x19bbc6)),null;}}else{const _0x112e60=_0xcb9d36[_0x3b3a('0xc2')](_0x188faa[_0x3b3a('0xa4')]());null!==_0x112e60&&_0x188faa[_0x3b3a('0x7e')]([_0x112e60],null,_0x19bbc6);}}if(_0xcb9d36[_0x3b3a('0x93')](),_0xcb9d36[_0x3b3a('0x135')]||_0x3b3a('0x129')==_0xcb9d36[_0x3b3a('0xb8')][_0x3b3a('0x101')])return null;let _0x39284c=null,_0x5bc77d=_0xcb9d36['start'],_0x837cef=_0xcb9d36[_0x3b3a('0x4d')];for(const {suggestion:_0x58bcce,meta:_0x4b3d90}of this['_findSuggestions'](_0xcb9d36,_0x3b3a('0x30')))if(_0x4b3d90[_0x3b3a('0x4b')]){if(_0x58bcce[_0x3b3a('0x5c')]&&this[_0x3b3a('0x11a')]){let _0x3b712c=!0x0;for(const _0x4c7d70 of _0x58bcce[_0x3b3a('0x5b')]()){if(_0x4c7d70[_0x3b3a('0x5')](_0xcb9d36,!0x0))return _0x58bcce;_0xcb9d36[_0x3b3a('0x5')](_0x4c7d70)||(_0x3b712c=!0x1);}_0x3b712c&&_0x58bcce[_0x3b3a('0x10f')]();}else{const _0x2f2ce1=_0x58bcce[_0x3b3a('0xa4')]();if(_0x2f2ce1[_0x3b3a('0x5')](_0xcb9d36,!0x0)){if(!this[_0x3b3a('0x11a')]&&_0x4b3d90['containsRangeInObject'])continue;return _0x58bcce;}_0x5bc77d=_0x5bc77d[_0x3b3a('0x117')](_0x2f2ce1[_0x3b3a('0x1f')])?_0x5bc77d:_0x2f2ce1[_0x3b3a('0x1f')],_0x837cef=_0x837cef[_0x3b3a('0x90')](_0x2f2ce1[_0x3b3a('0x4d')])?_0x837cef:_0x2f2ce1[_0x3b3a('0x4d')],_0x39284c?_0x2f2ce1[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x39284c[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')])?(_0x39284c[_0x3b3a('0x110')](),_0x39284c=_0x58bcce):_0x58bcce['removeMarkers']():_0x39284c=_0x58bcce;}}if(_0x39284c)return this['_setSuggestionRange'](_0x39284c,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5bc77d,_0x837cef)),_0x39284c;{const _0x42df0c=_0x562252(),_0x5faca7=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5bc77d,_0x837cef),_0x25320e=_0x2ce221['id'],_0x2e4d5c=_0x1e717f?'deletion:'+_0x1e717f:'deletion',_0x8d4fb5=this['_setSuggestionData']({'id':_0x42df0c,'type':_0x2e4d5c,'createdAt':new Date(),'authorId':_0x25320e,'attributes':_0x19bbc6});return this[_0x3b3a('0x8e')](_0x2e4d5c,_0x42df0c,_0x25320e,_0x5faca7),_0x8d4fb5;}}[_0x3b3a('0x8a')](_0x1c668b,_0x52c705=_0x3b3a('0xeb'),_0x31e71a={}){const _0x337689=this[_0x3b3a('0x2f')][_0x3b3a('0x1')][_0x3b3a('0x13a')](_0x3b3a('0xa2'))['me'],_0x4cb46e=_0x1c668b[_0x3b3a('0xb')](_0x6f7756=>new _0x541e31(_0x6f7756['start'],_0x6f7756['end'])),_0x1c3756=new Set();for(const _0x55ab36 of _0x4cb46e)for(const {suggestion:_0x3bf6eb,meta:_0x53f103}of this['_findSuggestions'](_0x55ab36,_0x3b3a('0xe9')))_0x53f103[_0x3b3a('0x4b')]&&!_0x53f103['isNextTo']&&_0x1c3756[_0x3b3a('0x12b')](_0x3bf6eb);for(const _0x4303b1 of _0x1c3756)if(_0x4303b1[_0x3b3a('0x5c')]){const _0x3858c2=_0x4303b1[_0x3b3a('0x5b')]();(!_0x4303b1[_0x3b3a('0xc3')]||!_0x4303b1[_0x3b3a('0xc3')]['skipNestingCheck'])&&(_0x3858c2['every'](_0x29230e=>_0x4cb46e[_0x3b3a('0x2c')](_0x104749=>_0x104749[_0x3b3a('0x5')](_0x29230e,!0x0)))&&_0x4303b1[_0x3b3a('0x10f')]());if(_0x4cb46e[_0x3b3a('0xab')](_0x2a919c=>_0x3858c2['some'](_0x558d73=>_0x558d73[_0x3b3a('0x5')](_0x2a919c,!0x0)))){const _0x4050a0=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x52c705,'accept');return this[_0x3b3a('0x41')](()=>_0x4050a0(_0x1c668b,null,_0x31e71a)),null;}}else{const _0x2e9505=_0x4303b1[_0x3b3a('0xa4')]();_0x4cb46e[_0x3b3a('0x2c')](_0x22e65f=>_0x22e65f['containsRange'](_0x2e9505,!0x0))&&_0x4303b1[_0x3b3a('0x10f')]();if(_0x4cb46e[_0x3b3a('0xab')](_0x59f8aa=>_0x2e9505[_0x3b3a('0x5')](_0x59f8aa,!0x0))){const _0x4606ff=this['_suggestionFactory'][_0x3b3a('0x131')]('deletion',_0x52c705,'accept');return this['forceDefaultExecution'](()=>_0x4606ff(_0x4cb46e,null,_0x31e71a)),null;}}const _0x35eb43=this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0x3b3a('0x30'),_0x52c705,_0x3b3a('0x59'));let _0x2a2175=null;for(const _0x8c1557 of this[_0x3b3a('0x122')]())if(_0x8c1557[_0x3b3a('0xc8')]['id']==_0x337689['id']&&_0x8c1557[_0x3b3a('0x115')]&&'deletion'==_0x8c1557[_0x3b3a('0xc')]&&_0x8c1557[_0x3b3a('0xf6')]==_0x52c705&&(_0x35eb43(_0x8c1557[_0x3b3a('0x5b')](),_0x4cb46e)||_0x35eb43(_0x4cb46e,_0x8c1557[_0x3b3a('0x5b')]()))){if(_0x2a2175){if(_0x8c1557['commentThread']&&_0x8c1557[_0x3b3a('0x38')][_0x3b3a('0x84')])continue;for(const _0x3ab0cc of _0x8c1557[_0x3b3a('0x5b')]())_0x2a2175[_0x3b3a('0xd6')](_0x3ab0cc)||_0x2a2175[_0x3b3a('0xae')](_0x3ab0cc);_0x8c1557[_0x3b3a('0x110')]();}else{_0x2a2175=_0x8c1557;for(const _0x462d1a of _0x4cb46e)_0x8c1557[_0x3b3a('0xd6')](_0x462d1a)||_0x8c1557['addRange'](_0x462d1a);}}if(_0x2a2175)return _0x2a2175;_0x1c3756['clear']();for(const _0x11f57f of _0x4cb46e)for(const {suggestion:_0x4dc857,meta:_0x1f207b}of this['_findSuggestions'](_0x11f57f,_0x3b3a('0x30')))_0x1f207b[_0x3b3a('0x4b')]&&_0x1c3756[_0x3b3a('0x12b')](_0x4dc857);for(const _0x577b20 of _0x1c3756){const _0x212eeb=_0x577b20[_0x3b3a('0x5b')]();if(!_0x31e71a||!_0x31e71a[_0x3b3a('0x71')]){if(_0x4cb46e[_0x3b3a('0xab')](_0x50af73=>_0x212eeb[_0x3b3a('0x2c')](_0x41173b=>_0x41173b[_0x3b3a('0x5')](_0x50af73,!0x0))))return _0x577b20;}(!_0x577b20[_0x3b3a('0xc3')]||!_0x577b20[_0x3b3a('0xc3')][_0x3b3a('0x71')])&&(_0x212eeb[_0x3b3a('0xab')](_0x3c4bb9=>_0x4cb46e['some'](_0x1ea122=>_0x1ea122['containsRange'](_0x3c4bb9,!0x0)))&&_0x577b20[_0x3b3a('0x10f')]());}const _0x1daf89=_0x562252(),_0x268a92=_0x337689['id'],_0x3ac014='deletion:'+_0x52c705,_0x11f773=this[_0x3b3a('0x112')]({'id':_0x1daf89,'type':_0x3ac014,'createdAt':new Date(),'authorId':_0x268a92,'attributes':_0x31e71a});for(const _0x512d69 of _0x4cb46e)_0x512d69['detach'](),_0x512d69[_0x3b3a('0x135')]||_0x3b3a('0x129')==_0x512d69[_0x3b3a('0xb8')][_0x3b3a('0x101')]||this[_0x3b3a('0x8e')](_0x3ac014,_0x1daf89,_0x268a92,_0x512d69,_0x38aeef[_0x3b3a('0x12d')]());return _0x11f773;}['_setSuggestionRange'](_0x5c7d64,_0x433ad7){const _0x4ef94a=_0x5c7d64[_0x3b3a('0xd1')]();this[_0x3b3a('0x75')][_0x3b3a('0x1a')](_0x2b123f=>{_0x2b123f[_0x3b3a('0xda')](_0x4ef94a,{'range':_0x433ad7});});}[_0x3b3a('0x92')](_0x180683){const _0x1d886a=_0x180683['id'],_0x253900=this[_0x3b3a('0x2f')][_0x3b3a('0x86')]['get'](_0x3b3a('0x8b'));this[_0x3b3a('0x3c')]['hasCommentThread'](_0x1d886a)||this[_0x3b3a('0x3c')][_0x3b3a('0x2')]({'channelId':_0x253900,'threadId':_0x1d886a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f27bf=this[_0x3b3a('0x3c')][_0x3b3a('0x12f')](_0x1d886a);_0x3f27bf[_0x3b3a('0x126')](_0x3b3a('0x10b')),_0x3f27bf[_0x3b3a('0x10b')]=!0x1,_0x180683[_0x3b3a('0x38')]=_0x3f27bf;}['_checkSuggestionCorrectness'](_0x14cf84,_0x10de1b,_0x15e08a,_0x3021bf){if(_0x14cf84[_0x3b3a('0xc')]!=_0x10de1b||_0x14cf84[_0x3b3a('0xf6')]!=_0x15e08a||_0x14cf84[_0x3b3a('0xa3')]['id']!=_0x3021bf)throw this[_0x3b3a('0x2f')][_0x3b3a('0x4c')](_0x3b3a('0x11')),new _0x351a30(_0x3b3a('0x11'),this);}['_cutOutSuggestionMarker'](_0x336370,_0x9e276c){const _0x5ce4c4=_0x336370['getFirstRange']();if(_0x9e276c['isEqual'](_0x5ce4c4))_0x336370['removeMarkers']();else{if(_0x5ce4c4[_0x3b3a('0x5')](_0x9e276c)){const _0x213c14=this['_model']['createPositionAt'](_0x9e276c['start'][_0x3b3a('0x19')],_0x3b3a('0x4d'));this[_0x3b3a('0x17')](_0x336370,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5ce4c4[_0x3b3a('0x1f')],_0x213c14));const _0xcaa11=_0x562252(),_0x470161=_0x336370[_0x3b3a('0xa3')]['id'],_0x3aea8a=_0x336370[_0x3b3a('0xc')]+':'+_0x336370[_0x3b3a('0xf6')];this[_0x3b3a('0x112')]({'id':_0xcaa11,'type':_0x3aea8a,'createdAt':new Date(),'authorId':_0x470161,'data':_0x336370[_0x3b3a('0x62')],'attributes':_0x336370['attributes']});const _0x47bd77=this['_model'][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x4d')][_0x3b3a('0x6c')],_0x3b3a('0x61')),_0xc536a0=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x47bd77,_0x5ce4c4[_0x3b3a('0x4d')]);this['_addSuggestionMarker'](_0x3aea8a,_0xcaa11,_0x470161,_0xc536a0);}else{if(_0x5ce4c4[_0x3b3a('0x8f')](_0x9e276c[_0x3b3a('0x1f')])){const _0x41b65d=this[_0x3b3a('0x75')][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x1f')]['nodeBefore'],_0x3b3a('0x4d'));this[_0x3b3a('0x17')](_0x336370,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x5ce4c4['start'],_0x41b65d));}else{const _0x195b71=this['_model'][_0x3b3a('0x133')](_0x9e276c[_0x3b3a('0x4d')][_0x3b3a('0x6c')],_0x3b3a('0x61'));this[_0x3b3a('0x17')](_0x336370,this['_model']['createRange'](_0x195b71,_0x5ce4c4['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x158d71){for(const {suggestion:_0x5246a5,meta:_0x2adead}of this['_findSuggestions'](_0x158d71,_0x3b3a('0xe9'))){if(!_0x2adead[_0x3b3a('0x4b')])continue;const _0x46b3d9=_0x5246a5[_0x3b3a('0x5b')]();for(const _0x1cbe73 of _0x46b3d9)if(!_0x158d71[_0x3b3a('0x11e')](_0x1cbe73)[_0x3b3a('0x84')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x534527){const _0x2fd311=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get'](_0x3b3a('0xa2'))['getUser'](_0x534527);if(!_0x2fd311)throw new _0x351a30(_0x3b3a('0xc0'),this);return _0x2fd311;}[_0x3b3a('0xe4')](_0x35d3fe){const _0x48db0c=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get']('Users'),_0x45d8d4=_0xe552ec(_0x3b3a('0x11b')+_0x35d3fe),_0xd11b1=_0x48db0c[_0x3b3a('0xe3')](_0x45d8d4);return _0xd11b1||_0x48db0c[_0x3b3a('0xb1')]({'id':_0x45d8d4,'name':_0x35d3fe});}['_createSuggestion'](_0xbd71f2,_0x5602d4,_0x4a9b26,_0x10f84b,_0x367cba){const _0x3d6390=this[_0x3b3a('0x118')](_0x10f84b),_0x2c6dcd=this[_0x3b3a('0x3d')][_0x3b3a('0xe6')](_0xbd71f2,_0x5602d4,_0x4a9b26,_0x3d6390,_0x367cba,_0x5a20bb=>this[_0x3b3a('0x11c')](_0x4a9b26,{'attributes':_0x5a20bb}));return this[_0x3b3a('0xd7')](_0x2c6dcd,'accept',()=>{this['_updateSuggestionData'](_0x4a9b26,{'state':_0x3b3a('0xb6')});},{'priority':'high'}),this[_0x3b3a('0xd7')](_0x2c6dcd,_0x3b3a('0x10f'),()=>{this[_0x3b3a('0x11c')](_0x4a9b26,{'state':_0x3b3a('0x63')});},{'priority':_0x3b3a('0x26')}),this['_suggestions'][_0x3b3a('0xea')](_0x4a9b26,_0x2c6dcd),this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x2c6dcd,_0x3b3a('0xe7')),_0x2c6dcd;}[_0x3b3a('0xe')](_0x56d791){const _0x52ea19=_0x56d791[_0x3b3a('0x29')](':');return{'group':_0x52ea19[0x0],'type':_0x52ea19[0x1],'subType':_0x52ea19[_0x3b3a('0x84')]>=0x5?_0x52ea19[0x2]:null,'id':_0x52ea19['length']<0x5?_0x52ea19[0x2]:_0x52ea19[0x3],'authorId':_0x52ea19['length']<0x5?_0x52ea19[0x3]:_0x52ea19[0x4],'markerCount':0x6==_0x52ea19[_0x3b3a('0x84')]?_0x52ea19[0x5]:null};}['_breakSuggestionMarker'](_0xa7a0b9,_0x376133,_0x11da16){const _0x19c572=_0xa7a0b9['getFirstRange'](),_0x5e71f9=_0x19c572[_0x3b3a('0x1f')],_0x34b882=_0x19c572['end'];this[_0x3b3a('0x17')](_0xa7a0b9,this['_model'][_0x3b3a('0x16')](_0x5e71f9,_0x376133));const _0x4877a0=_0x562252(),_0xc4e427=_0xa7a0b9[_0x3b3a('0xa3')]['id'],_0x4ebd64=_0xa7a0b9[_0x3b3a('0xc')]+(_0xa7a0b9[_0x3b3a('0xf6')]?':'+_0xa7a0b9[_0x3b3a('0xf6')]:'');this[_0x3b3a('0x112')]({'id':_0x4877a0,'type':_0x4ebd64,'createdAt':new Date(),'authorId':_0xc4e427,'originalSuggestionId':_0xa7a0b9['id'],'attributes':_0xa7a0b9[_0x3b3a('0xc3')],'data':_0xa7a0b9[_0x3b3a('0x62')]}),_0x3b3a('0x139')==_0xa7a0b9[_0x3b3a('0xc')]&&(_0x11da16=this[_0x3b3a('0x75')][_0x3b3a('0xb3')](_0x11da16[_0x3b3a('0x6c')])),this[_0x3b3a('0x8e')](_0x4ebd64,_0x4877a0,_0xc4e427,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x11da16,_0x34b882));}[_0x3b3a('0xc1')](_0x1c8a1e,_0x2cfdc5=null){const _0x273974=[],_0x2460d3=this['_model']['schema'],_0x4839da=this[_0x3b3a('0x2f')][_0x3b3a('0x1')]['get']('Users')['me'];for(const _0x280b38 of this['getSuggestions']())if(_0x280b38[_0x3b3a('0x115')]&&(!_0x2cfdc5||_0x280b38[_0x3b3a('0xc')]==_0x2cfdc5))for(const _0x29068b of _0x280b38[_0x3b3a('0x5b')]()){const _0x5ba589=_0x1c8a1e[_0x3b3a('0x1f')]['isEqual'](_0x29068b[_0x3b3a('0x4d')])||_0x1c8a1e[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x29068b['start']);if(_0x5ba589||_0x1c8a1e['getIntersection'](_0x29068b)){const _0x5b1ecd=_0x1c8a1e[_0x3b3a('0x5')](_0x29068b)&&Bt(_0x2460d3,_0x29068b[_0x3b3a('0x1f')],_0x1c8a1e),_0x32a0fb=_0x29068b[_0x3b3a('0x5')](_0x1c8a1e)&&Bt(_0x2460d3,_0x1c8a1e[_0x3b3a('0x1f')],_0x29068b);_0x273974['push']({'suggestion':_0x280b38,'meta':{'isOwn':_0x4839da==_0x280b38[_0x3b3a('0xc8')],'isNextTo':_0x5ba589,'isInsideObject':_0x5b1ecd,'containsRangeInObject':_0x32a0fb}});break;}}return _0x273974;}[_0x3b3a('0x8e')](_0x38c650,_0x31a996,_0x5e5de8,_0x46207b,_0x49e7ab){this[_0x3b3a('0x75')][_0x3b3a('0x1a')](_0x4290b9=>{let _0x35d260=_0x3b3a('0x52')+_0x38c650+':'+_0x31a996+':'+_0x5e5de8;_0x49e7ab&&(_0x35d260=_0x35d260+':'+_0x49e7ab),_0x4290b9['addMarker'](_0x35d260,{'range':_0x46207b,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3b3a('0xaa')](_0x2dc72a){const _0xa24fb1=_0x2dc72a[_0x3b3a('0x8')],_0x30e351=_0x2dc72a['next'];_0x2dc72a[_0x3b3a('0x8')]=null,null!=_0xa24fb1&&(_0xa24fb1[_0x3b3a('0xed')]=null),_0x2dc72a[_0x3b3a('0xed')]=null,null!=_0x30e351&&(_0x30e351[_0x3b3a('0x8')]=null),'ready'==this['_suggestionState'][_0x3b3a('0x13a')](_0x2dc72a)&&(this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x2dc72a,_0x3b3a('0x130')),this['fire'](_0x3b3a('0xdd'),_0x2dc72a,_0xa24fb1,_0x30e351));}[_0x3b3a('0x112')](_0x2247de){const _0x2f736a=_0x2247de['id'],_0x55f675=this[_0x3b3a('0x9a')](_0x2247de);if(this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0x96')]){const _0x4f510c=this['editor'][_0x3b3a('0x1')]['get'](_0x3b3a('0xa9')),_0x28c815=_0x55f675['hasComments'],_0x57ab2c=_0x55f675['subType']?_0x55f675[_0x3b3a('0xc')]+':'+_0x55f675[_0x3b3a('0xf6')]:_0x55f675[_0x3b3a('0xc')],_0x581674=this[_0x3b3a('0x2f')]['locale'],_0x245345=_0x4f510c[_0x3b3a('0x12b')](_0x1c5b1c(_0x581674,_0x3b3a('0xc4'))),_0x5c3f70={'id':_0x2f736a,'type':_0x57ab2c,'hasComments':_0x28c815,'data':_0x2247de[_0x3b3a('0x62')]||null,'originalSuggestionId':_0x2247de[_0x3b3a('0xc9')]||null,'attributes':_0x55f675[_0x3b3a('0xc3')]};this[_0x3b3a('0x68')][_0x3b3a('0x96')](_0x5c3f70)[_0x3b3a('0x9b')](_0x10d935=>{_0x55f675[_0x3b3a('0x44')]=!0x0,_0x4f510c['remove'](_0x245345),_0x10d935&&_0x10d935[_0x3b3a('0xd2')]&&(this[_0x3b3a('0x7b')]['get'](_0x2f736a)['createdAt']=_0x10d935[_0x3b3a('0xd2')]);})[_0x3b3a('0x2b')](_0x35b57c=>{throw _0x57dcef(_0x3b3a('0x20')),this[_0x3b3a('0x2f')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x55f675[_0x3b3a('0x10f')]();}),_0x55f675[_0x3b3a('0x8c')](),this[_0x3b3a('0x7b')]['delete'](_0x55f675['id']),this[_0x3b3a('0xcc')]['delete'](_0x55f675),_0x35b57c;});}return _0x55f675;}[_0x3b3a('0x11c')](_0x49d68d,_0x457520){const _0x2ada42=this['editor'][_0x3b3a('0x1')]['get']('PendingActions'),_0x1b95b3=this[_0x3b3a('0x35')](_0x49d68d);if(this[_0x3b3a('0x68')]&&this[_0x3b3a('0x68')][_0x3b3a('0xb2')]){if(_0x1b95b3[_0x3b3a('0x44')]){const _0xbcee9e=_0x2ada42[_0x3b3a('0x12b')](_0x1c5b1c(this[_0x3b3a('0x2f')][_0x3b3a('0x91')],_0x3b3a('0xc4')));this[_0x3b3a('0x68')][_0x3b3a('0xb2')](_0x49d68d,_0x457520)[_0x3b3a('0x9b')](()=>{_0x2ada42['remove'](_0xbcee9e);});}else _0x1b95b3['on'](_0x3b3a('0x6'),()=>{this[_0x3b3a('0x11c')](_0x49d68d,_0x457520);});}}['_getSuggestionData'](_0x371536){if(!this[_0x3b3a('0x68')]||!this['_adapter'][_0x3b3a('0x35')])throw new _0x351a30(_0x3b3a('0x4f'),this);return this[_0x3b3a('0x68')][_0x3b3a('0x35')](_0x371536);}['_handleNewSuggestionMarker'](_0x4db7b0){const {id:_0x316e72,type:_0x25f88d,subType:_0x5b03f8,authorId:_0x36cc89}=this['_splitMarkerName'](_0x4db7b0),_0x49b4cf=this[_0x3b3a('0x7b')][_0x3b3a('0x13a')](_0x316e72)||this[_0x3b3a('0x1d')](_0x25f88d,_0x5b03f8,_0x316e72,_0x36cc89,{});switch(this[_0x3b3a('0x53')](_0x49b4cf,_0x25f88d,_0x5b03f8,_0x36cc89),this[_0x3b3a('0xcc')][_0x3b3a('0x13a')](_0x49b4cf)){case _0x3b3a('0xe7'):this[_0x3b3a('0x43')](_0x316e72)[_0x3b3a('0x9b')](_0xa58e9f=>{let _0x4ca9f9=Promise['resolve']();_0xa58e9f[_0x3b3a('0xe5')]&&(_0x4ca9f9=this[_0x3b3a('0x3c')][_0x3b3a('0x13b')]({'channelId':this[_0x3b3a('0x2f')][_0x3b3a('0x86')][_0x3b3a('0x13a')](_0x3b3a('0x8b')),'threadId':_0x316e72})),_0x4ca9f9[_0x3b3a('0x9b')](()=>{this[_0x3b3a('0x9a')](_0xa58e9f)[_0x3b3a('0x44')]=!0x0;});}),this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x49b4cf,_0x3b3a('0xf7'));break;case _0x3b3a('0x130'):this['_updateSuggestionData'](_0x316e72,{'state':'open'});case _0x3b3a('0x107'):this[_0x3b3a('0xcc')][_0x3b3a('0xea')](_0x49b4cf,_0x3b3a('0x1c')),this[_0x3b3a('0x7')](_0x3b3a('0x97'),_0x49b4cf);break;case _0x3b3a('0x1c'):this['fire'](_0x3b3a('0x99'),_0x49b4cf);}return _0x49b4cf[_0x3b3a('0x31')](_0x4db7b0),_0x49b4cf;}['_refreshSuggestionsChain'](_0x4b1313){const _0x1ccc0b=Array['from'](_0x4b1313)[_0x3b3a('0xe8')](_0x615f9a=>!_0x615f9a[_0x3b3a('0x5c')]),_0x461a70=this[_0x3b3a('0x122')]({'skipNotAttached':!0x0})[_0x3b3a('0xe8')](_0x67cdde=>!_0x67cdde[_0x3b3a('0x5c')]),_0x363f94=_0x461a70[_0x3b3a('0xe8')](_0xcd5a0e=>!_0x4b1313['has'](_0xcd5a0e)),_0x45cbfd=new Map(_0x461a70[_0x3b3a('0xb')](_0xd64950=>[_0xd64950,this[_0x3b3a('0x3d')][_0x3b3a('0x131')](_0xd64950[_0x3b3a('0xc')],_0xd64950[_0x3b3a('0xf6')],'chain')])),_0x587239=new Map(_0x461a70[_0x3b3a('0xb')](_0x133543=>[_0x133543,_0x133543[_0x3b3a('0xa4')]()])),_0x183187=new Set(),_0x56f0d2=new Set();for(let _0x3bc8aa=0x0;_0x3bc8aa<_0x1ccc0b['length'];_0x3bc8aa++)_0x5d781c(_0x1ccc0b[_0x3bc8aa],_0x1ccc0b,_0x3bc8aa+0x1);for(let _0x3b3704=0x0;_0x3b3704<_0x1ccc0b[_0x3b3a('0x84')];_0x3b3704++)_0x5d781c(_0x1ccc0b[_0x3b3704],_0x363f94,0x0);for(let _0x23d587=0x0;_0x23d587<_0x1ccc0b['length'];_0x23d587++){const _0xfc1f11=_0x1ccc0b[_0x23d587];!_0x56f0d2[_0x3b3a('0xff')](_0xfc1f11)&&_0xfc1f11['previous']&&(_0xfc1f11[_0x3b3a('0x8')][_0x3b3a('0xed')]===_0xfc1f11&&(_0xfc1f11[_0x3b3a('0x8')][_0x3b3a('0xed')]=null),_0xfc1f11[_0x3b3a('0x8')]=null),!_0x183187[_0x3b3a('0xff')](_0xfc1f11)&&_0xfc1f11[_0x3b3a('0xed')]&&(_0xfc1f11[_0x3b3a('0xed')][_0x3b3a('0x8')]===_0xfc1f11&&(_0xfc1f11[_0x3b3a('0xed')][_0x3b3a('0x8')]=null),_0xfc1f11[_0x3b3a('0xed')]=null);}function _0x5d781c(_0x28f841,_0x5bd869,_0x6df87){for(let _0x4d032f=_0x6df87;_0x4d032f<_0x5bd869[_0x3b3a('0x84')];_0x4d032f++){const _0xe25653=_0x473b23(_0x28f841,_0x5bd869[_0x4d032f]);_0xe25653&&(_0xe25653[0x0]['next']=_0xe25653[0x1],_0xe25653[0x1][_0x3b3a('0x8')]=_0xe25653[0x0],_0x183187[_0x3b3a('0x12b')](_0xe25653[0x0]),_0x56f0d2[_0x3b3a('0x12b')](_0xe25653[0x1]));}}function _0x473b23(_0x1bbd10,_0x247ad9){if(_0x1bbd10[_0x3b3a('0xc8')]['id']!==_0x247ad9[_0x3b3a('0xc8')]['id'])return null;const _0x13dbf6=_0x45cbfd[_0x3b3a('0x13a')](_0x1bbd10)(_0x1bbd10,_0x247ad9,_0x587239[_0x3b3a('0x13a')](_0x1bbd10),_0x587239['get'](_0x247ad9));if(!_0x13dbf6)return null;return _0x45cbfd['get'](_0x247ad9)(_0x1bbd10,_0x247ad9,_0x587239[_0x3b3a('0x13a')](_0x1bbd10),_0x587239[_0x3b3a('0x13a')](_0x247ad9))?_0x13dbf6[0x1]['commentThread']&&_0x13dbf6[0x1]['commentThread'][_0x3b3a('0x84')]?null:_0x13dbf6:null;}}[_0x3b3a('0xe2')](_0x16c929){const _0x4b39a=Array[_0x3b3a('0x140')](_0x16c929),_0x3c1379=this[_0x3b3a('0x122')]({'skipNotAttached':!0x0}),_0x374785=_0x3c1379[_0x3b3a('0xe8')](_0x6aa43c=>!_0x16c929[_0x3b3a('0xff')](_0x6aa43c)),_0x4d9618=new Map(_0x4b39a['map'](_0xa6455b=>[_0xa6455b,this['_suggestionFactory'][_0x3b3a('0x131')](_0xa6455b[_0x3b3a('0xc')],_0xa6455b[_0x3b3a('0xf6')],_0x3b3a('0x59'))])),_0xca58df=new Map(_0x3c1379[_0x3b3a('0xb')](_0x33cab1=>[_0x33cab1,_0x33cab1[_0x3b3a('0x5b')]()]));for(let _0xbdcc70=0x0;_0xbdcc70<_0x4b39a[_0x3b3a('0x84')];_0xbdcc70++){if(_0xd1cc7d(this,_0x4b39a[_0xbdcc70],_0x4b39a,_0xbdcc70+0x1))return!0x0;}for(let _0x32d8ea=0x0;_0x32d8ea<_0x4b39a['length'];_0x32d8ea++){if(_0xd1cc7d(this,_0x4b39a[_0x32d8ea],_0x374785,0x0))return!0x0;}return!0x1;function _0xd1cc7d(_0x13510a,_0x1b9806,_0x3a1658,_0x1fafbb){for(let _0x1932a9=_0x1fafbb;_0x1932a9<_0x3a1658[_0x3b3a('0x84')];_0x1932a9++){const _0x4085d8=_0x3a1658[_0x1932a9];if(_0x4085d8[_0x3b3a('0xc')]!==_0x1b9806[_0x3b3a('0xc')]||_0x4085d8[_0x3b3a('0xc8')]['id']!==_0x1b9806[_0x3b3a('0xc8')]['id']||_0x4085d8[_0x3b3a('0xf6')]!==_0x1b9806[_0x3b3a('0xf6')])continue;const _0x3b5c44=_0x4d9618['get'](_0x1b9806),_0x385e37=_0xca58df[_0x3b3a('0x13a')](_0x1b9806),_0x3a96d0=_0xca58df['get'](_0x4085d8),_0x4ce5b3=_0x1b9806[_0x3b3a('0x38')]&&_0x1b9806['commentThread'][_0x3b3a('0x84')],_0x4a6b4b=_0x4085d8[_0x3b3a('0x38')]&&_0x4085d8[_0x3b3a('0x38')][_0x3b3a('0x84')];if(!_0x4ce5b3&&_0x3b5c44(_0x3a96d0,_0x385e37))return _0x13510a[_0x3b3a('0xbd')](_0x4085d8,_0x1b9806),_0xca58df[_0x3b3a('0x22')](_0x1b9806),!0x0;if(!_0x4a6b4b&&_0x3b5c44(_0x385e37,_0x3a96d0))return _0x13510a[_0x3b3a('0xbd')](_0x1b9806,_0x4085d8),_0xca58df[_0x3b3a('0x22')](_0x4085d8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1da892,_0x1c65d1){if(_0x1da892[_0x3b3a('0x5c')])for(const _0x3afbdc of _0x1c65d1['getRanges']())_0x1da892[_0x3b3a('0xae')](_0x3afbdc);else{const _0x1b1367=_0x1c65d1[_0x3b3a('0xa4')]()[_0x3b3a('0x4d')];this['_setSuggestionRange'](_0x1da892,this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x1da892[_0x3b3a('0xa4')]()[_0x3b3a('0x1f')],_0x1b1367));}_0x1c65d1[_0x3b3a('0x110')]();}}class Dt{constructor(_0x49ea12){this[_0x3b3a('0xa6')]=_0x49ea12,this[_0x3b3a('0x75')]=_0x49ea12[_0x3b3a('0x105')],this[_0x3b3a('0x66')]=new Map(),this[_0x3b3a('0x57')]=new Map(),this[_0x3b3a('0x72')]();}['buildSuggestion'](_0x4e33cb,_0x1eb2e8,_0x576265,_0xdefa87,_0xeba648,_0x151086){return new _0x38aeef(this[_0x3b3a('0x75')],{'type':_0x4e33cb,'subType':_0x1eb2e8,'id':_0x576265,'author':_0xdefa87,'creator':_0xdefa87,'attributes':_0xeba648,'onAttributesChange':_0x151086,'onAccept':(..._0x5464b8)=>this['getSuggestionCallback'](_0x4e33cb,_0x1eb2e8,_0x3b3a('0x7f'))(..._0x5464b8),'onDiscard':(..._0x3ea9cd)=>this[_0x3b3a('0x131')](_0x4e33cb,_0x1eb2e8,_0x3b3a('0x10f'))(..._0x3ea9cd)});}[_0x3b3a('0x142')](_0x32a7ce,_0x582b31,_0x58131d,_0x2cd944){const _0x5b7c09=_0x32a7ce+':'+_0x582b31+':'+_0x58131d;this[_0x3b3a('0x66')][_0x3b3a('0xea')](_0x5b7c09,_0x2cd944);}['getSuggestionCallback'](_0x39956f,_0x42e1bd,_0x3af7bb){const _0x372dce=_0x39956f+':'+_0x42e1bd+':'+_0x3af7bb;return this['_customCallbacks'][_0x3b3a('0x13a')](_0x372dce)||this['_defaultCallbacks'][_0x3b3a('0x13a')](_0x39956f+':'+_0x3af7bb);}['_registerDefaultCallbacks'](){const _0x14fdfa=()=>{},_0x871637=_0x227210=>{_0x227210['sort']((_0x444011,_0x209e17)=>_0x444011[_0x3b3a('0x1f')][_0x3b3a('0x117')](_0x209e17[_0x3b3a('0x1f')])?0x1:-0x1),this[_0x3b3a('0x75')]['change'](_0x37658c=>{for(const _0x1575f4 of _0x227210){let _0x23938a;_0x23938a=_0x1575f4['end'][_0x3b3a('0xfd')]&&_0x1575f4['end']['parent']==_0x1575f4[_0x3b3a('0x1f')][_0x3b3a('0xce')]?_0x37658c[_0x3b3a('0x5a')](_0x1575f4['start'][_0x3b3a('0xce')],'on'):_0x37658c[_0x3b3a('0x5a')](_0x1575f4),this['_model']['deleteContent'](_0x23938a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x53dfaa=(_0x3cabf7,_0x2dab3c)=>{this[_0x3b3a('0x75')]['change'](_0x2640c1=>{const {commandName:_0x1c603e,commandParams:_0x14d772=[]}=_0x2dab3c,_0xc25908=_0x3cabf7[_0x3b3a('0xb')](_0x3493c8=>(_t(_0x3493c8)&&(_0x3493c8=this[_0x3b3a('0x75')][_0x3b3a('0x16')](_0x3493c8['end'])),_0x3493c8))[_0x3b3a('0xe8')](_0x1df85e=>_0x3b3a('0x129')!==_0x1df85e[_0x3b3a('0xb8')][_0x3b3a('0x101')]);if(_0xc25908[_0x3b3a('0x84')]<0x1)return;const _0x127989=Array[_0x3b3a('0x140')](this[_0x3b3a('0x75')]['document'][_0x3b3a('0x51')][_0x3b3a('0x5b')]())[_0x3b3a('0xb')](_0x39ecdb=>_0x541e31[_0x3b3a('0x50')](_0x39ecdb));_0x2640c1['setSelection'](_0xc25908);for(const _0x574c7b of this[_0x3b3a('0xa6')][_0x3b3a('0x40')][_0x3b3a('0x40')]())_0x574c7b['refresh']();_0x14d772[_0x3b3a('0x4e')]({'forceDefaultExecution':!0x0}),this[_0x3b3a('0xa6')][_0x3b3a('0xd0')](_0x1c603e,..._0x14d772);const _0x6819d4=_0x127989['filter'](_0x598da4=>_0x3b3a('0x129')!=_0x598da4[_0x3b3a('0xb8')][_0x3b3a('0x101')]);_0x6819d4[_0x3b3a('0x84')]>0x0&&_0x2640c1['setSelection'](_0x6819d4);for(const _0x2f6353 of _0x127989)_0x2f6353[_0x3b3a('0x93')]();});},_0x25dad6=(_0x150f8a,_0x289abc)=>0x1==_0x150f8a[_0x3b3a('0x84')]&&0x1==_0x289abc[_0x3b3a('0x84')]&&_0x150f8a[0x0][_0x3b3a('0x4d')]['isEqual'](_0x289abc[0x0][_0x3b3a('0x1f')]),_0x4b0bb3=(_0x32332b,_0x4ce730,_0x52034b,_0x4714b4)=>xt(_0x32332b,_0x4ce730,_0x52034b,_0x4714b4,this[_0x3b3a('0x75')])?[_0x32332b,_0x4ce730]:xt(_0x4ce730,_0x32332b,_0x4714b4,_0x52034b,this[_0x3b3a('0x75')])?[_0x4ce730,_0x32332b]:null;this[_0x3b3a('0x57')][_0x3b3a('0xea')]('insertion:accept',_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x6e'),_0x871637),this['_defaultCallbacks']['set'](_0x3b3a('0x7c'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x11d'),_0x4b0bb3),this[_0x3b3a('0x57')][_0x3b3a('0xea')]('deletion:accept',_0x871637),this[_0x3b3a('0x57')]['set'](_0x3b3a('0x104'),_0x14fdfa),this['_defaultCallbacks'][_0x3b3a('0xea')](_0x3b3a('0x13e'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x8d'),_0x4b0bb3),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xfe'),_0x53dfaa),this[_0x3b3a('0x57')][_0x3b3a('0xea')]('formatInline:discard',_0x14fdfa),this[_0x3b3a('0x57')]['set'](_0x3b3a('0xbf'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xb7'),_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x88'),_0x53dfaa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xca'),_0x14fdfa),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0x14'),_0x25dad6),this[_0x3b3a('0x57')][_0x3b3a('0xea')](_0x3b3a('0xa7'),_0x14fdfa);}}function Bt(_0x1664d0,_0x5d1a1a,_0x175550){for(const _0x28a7b of _0x5d1a1a[_0x3b3a('0x6c')][_0x3b3a('0x1b')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28a7b[_0x3b3a('0xb8')]==_0x28a7b)return!0x1;if(!_0x175550[_0x3b3a('0x49')](_0x28a7b))return!0x1;if(_0x1664d0['isObject'](_0x28a7b)||_0x1664d0[_0x3b3a('0x24')](_0x28a7b))return!0x0;}return!0x1;}function _t(_0x5f0810){return _0x5f0810[_0x3b3a('0x4d')][_0x3b3a('0x6c')]==_0x5f0810[_0x3b3a('0x1f')][_0x3b3a('0xce')]&&_0x5f0810['end'][_0x3b3a('0x12c')];}function Mt(_0x3601e0,_0x127650,_0x580618,_0x221154){const _0x21cd9f=_0x2780d4=>!_0x2780d4[_0x3b3a('0xdc')]['is'](_0x3b3a('0x113'))&&!_0x221154[_0x3b3a('0x37')](_0x2780d4['item']),_0x35f8c7=_0x3601e0[_0x3b3a('0x1f')][_0x3b3a('0x39')](_0x21cd9f),_0x58d451=_0x3601e0[_0x3b3a('0x4d')][_0x3b3a('0x39')](_0x21cd9f,{'direction':_0x3b3a('0x10d')});return(!_0x3601e0[_0x3b3a('0x1f')][_0x3b3a('0x25')](_0x35f8c7)||!_0x3601e0[_0x3b3a('0x4d')][_0x3b3a('0x25')](_0x58d451))&&(_0x35f8c7[_0x3b3a('0x117')](_0x58d451)?_0x580618['updateMarker'](_0x127650,{'range':_0x580618[_0x3b3a('0x16')](_0x35f8c7,_0x58d451)}):_0x580618[_0x3b3a('0x114')](_0x127650),!0x0);}function $t(_0x5a7fc3){return _0xe552ec(_0x5a7fc3);}function Nt(_0x757664){const _0x3f2bc6=_0x757664[_0x3b3a('0x1f')][_0x3b3a('0xce')];return _0x3f2bc6&&_0x3f2bc6['is'](_0x3b3a('0x6b'));}function Rt(_0x2704c6,_0x199b8c){const _0x44beaa=_0x199b8c[_0x3b3a('0x77')][_0x3b3a('0x37')](_0x2704c6)||_0x199b8c['schema'][_0x3b3a('0x128')](_0x2704c6);return _0x199b8c['createRange'](_0x199b8c['createPositionAt'](_0x2704c6,'before'),_0x44beaa?_0x199b8c[_0x3b3a('0xd3')](_0x2704c6):_0x199b8c['createPositionAt'](_0x2704c6,_0x3b3a('0x4d')));}function xt(_0x958436,_0x4a870b,_0x2d2a6b,_0x3b3706,_0x717dba){if(_0x2d2a6b['end']['isEqual'](_0x3b3706[_0x3b3a('0x1f')]))return!0x0;if(_0x958436['type']!=_0x4a870b[_0x3b3a('0xc')])return!0x1;if(!_0x2d2a6b[_0x3b3a('0x4d')][_0x3b3a('0xdb')](_0x3b3706[_0x3b3a('0x1f')]))return!0x1;const _0x159ba9=_0x717dba['createRange'](_0x2d2a6b['end'],_0x3b3706[_0x3b3a('0x1f')])[_0x3b3a('0x6d')]();for(const _0x506344 of _0x159ba9)if(['elementStart',_0x3b3a('0xf5')][_0x3b3a('0x11f')](_0x506344[_0x3b3a('0xc')])&&_0x717dba['schema']['isLimit'](_0x506344[_0x3b3a('0xdc')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5adc=['_destroyController','from','_refreshActiveMarkers','comments.maxThreadTotalWeight','value','acceptButton','componentFactory','clear','arrowView','acceptSelectedSuggestions','createCommentThreadController','CommentsRepository','Track\x20changes','map','suggestionUnloaded','_handleSuggestionControllerDelayed','plugins','_descriptionFactory','activeMarkers','registerAnnotation','suggestionChanged','Annotations','delete','CommentsUI','addSourceCollector','Accept\x20all\x20suggestions','filter','values','previous','commands','activeAnnotations','refreshSelectedViews','hasSuggestion','destroy','trackChanges','_suggestionToController','_viewToController','requires','length','head','isInContent','comments.maxCommentsWhenCollapsed','get','mainView','discardAllSuggestions','_updateController','separator','editor','keys','model','type','has','unbind','set','_initializeController','isOn','descriptionParts','source','discardSelectedSuggestions','size','define','createAnnotationView','isDirty','getJoined','buttonView','discardButton','view','comments.maxCommentCharsWhenCollapsed','change:previous','actionView','reduce','push','config','isEnabled','_disableComments','focus','commandName','getDescriptions','Discard\x20all\x20selected\x20suggestions','_annotationViews','SuggestionThreadView','switchbutton','suggestion-','getMarkers','_createUIButton','trackChanges.disableComments','listenTo','trackChanges.SuggestionThreadView','button','locale','Accept\x20all\x20selected\x20suggestions','add','remove','bind','_handleControllerBuffer','getByInnerView','_bindAnnotationToEditors','Discard\x20all\x20suggestions','EditorAnnotations','isMultiRange','getAllAdjacentSuggestions','editing','TrackChangesEditing','execute'];(function(_0x1d5200,_0x5adcdf){const _0x340342=function(_0x5005e4){while(--_0x5005e4){_0x1d5200['push'](_0x1d5200['shift']());}};_0x340342(++_0x5adcdf);}(_0x5adc,0x6b));const _0x3403=function(_0x1d5200,_0x5adcdf){_0x1d5200=_0x1d5200-0x0;let _0x340342=_0x5adc[_0x1d5200];return _0x340342;};import{Plugin as _0x45eda9}from'ckeditor5/src/core';import{Collection as _0x4ce46f}from'ckeditor5/src/utils';import{Model as _0x1307b7,SplitButtonView as _0x4e0227,createDropdown as _0x4df4b7,addListToDropdown as _0x497d52}from'ckeditor5/src/ui';import{Users as _0x32ec2d,getDateTimeFormatter as _0x23a44b,getAllMarkersDomElementsSorted as _0x47bb35}from'ckeditor5-collaboration/src/collaboration-core';import _0x103adb from'./trackchangesediting';import _0x2d06c2 from'./ui/suggestioncontroller';import _0x2de3b5 from'./ui/view/suggestionthreadview';import{getTranslation as _0xac2841}from'./utils/common-translations';import _0x4969d2 from'../theme/icons/track-changes.svg';export default class d extends _0x45eda9{static get[_0x3403('0x22')](){return[_0x103adb,_0x32ec2d,_0x3403('0x8'),_0x3403('0x12'),'EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4c91f4){super(_0x4c91f4),this[_0x3403('0x20')]=new Map(),this[_0x3403('0x21')]=new Map(),this[_0x3403('0x4c')]=new Map(),this[_0x3403('0x5b')]=new Map();const _0x137dec=this[_0x3403('0x2c')][_0x3403('0x45')];_0x137dec[_0x3403('0x39')](_0x3403('0x54'),_0x2de3b5),_0x137dec[_0x3403('0x39')](_0x3403('0x52'),!0x1),this[_0x3403('0x47')]=_0x137dec['get'](_0x3403('0x52'));}[_0x3403('0xc')](_0x519d52,_0x8fa657){0x0===this[_0x3403('0x5b')][_0x3403('0x38')]&&setTimeout(()=>{for(const [_0x579bd5,_0x2db64d]of this[_0x3403('0x5b')]){const _0x1b83ce=this[_0x3403('0x20')][_0x3403('0x30')](_0x579bd5);_0x1b83ce||_0x2db64d?_0x1b83ce&&_0x2db64d&&this[_0x3403('0x65')](_0x579bd5):this[_0x3403('0x33')](_0x579bd5);}this[_0x3403('0x2c')][_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x5f'))[_0x3403('0x1c')](),this['_refreshActiveMarkers'](),this[_0x3403('0x5b')][_0x3403('0x4')]();},0xa),this[_0x3403('0x5b')][_0x3403('0x32')](_0x519d52,_0x8fa657);}['init'](){const _0x18a4e5=this[_0x3403('0x2c')],_0x21b258=_0x18a4e5['plugins']['get'](_0x3403('0x63')),_0x27b120=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x12')),_0x514be6=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x5f')),_0x3572e1=_0x18a4e5[_0x3403('0xd')][_0x3403('0x27')]('CommentsRepository');_0x18a4e5['ui'][_0x3403('0x3')]['add']('trackChanges',_0x36e22b=>this[_0x3403('0x51')](_0x36e22b)),_0x514be6[_0x3403('0x15')](()=>{const _0x53be01=[];for(const [_0x308d6a,_0x5c96de]of Array['from'](this['_suggestionToController'])){const _0x1dfb32=_0x308d6a[_0x3403('0x61')](),_0x5bb333=[];for(const _0xa5084d of _0x1dfb32){if(!_0xa5084d[_0x3403('0x25')])continue;if(_0xa5084d[_0x3403('0x60')]){_0x5bb333[_0x3403('0x44')](..._0xa5084d['getRanges']());continue;}const _0x399550=_0xa5084d['getFirstRange']();if(_0x5bb333[_0x3403('0x23')]>0x0){const _0x46da85=_0x5bb333[0x0][_0x3403('0x3c')](_0x399550);if(_0x46da85){_0x5bb333[0x0]=_0x46da85;continue;}}_0x5bb333[_0x3403('0x44')](_0x399550);}_0x53be01['push']([_0x5c96de[_0x3403('0x3f')],_0x5bb333]);}return _0x53be01;}),this[_0x3403('0x53')](_0x21b258,'suggestionLoaded',(_0x3817a9,_0x2331fc)=>{this['listenTo'](_0x2331fc,'change:previous',(_0x5d82fb,_0x57050a,_0x291beb,_0x310204)=>{_0x2331fc['isInContent']&&(null==_0x291beb?(this[_0x3403('0x2a')](_0x310204['head']),this['_handleSuggestionControllerDelayed'](_0x2331fc,!0x1)):(this[_0x3403('0x2a')](_0x291beb[_0x3403('0x24')]),this[_0x3403('0xc')](_0x2331fc,!0x0)));}),null===_0x2331fc[_0x3403('0x19')]?this[_0x3403('0xc')](_0x2331fc,!0x1):this[_0x3403('0x2a')](_0x2331fc[_0x3403('0x24')]);}),this[_0x3403('0x53')](_0x21b258,_0x3403('0xb'),(_0x14fe16,_0x50cb9e,_0x18a5e5)=>{this['stopListening'](_0x50cb9e,_0x3403('0x41')),this[_0x3403('0x5b')][_0x3403('0x13')](_0x50cb9e);const _0x242c44=_0x18a5e5?_0x18a5e5[_0x3403('0x24')]:_0x50cb9e,_0x4e0e65=this[_0x3403('0x20')]['get'](_0x242c44);null!==_0x18a5e5&&this[_0x3403('0x2a')](_0x242c44),null===_0x18a5e5&&_0x4e0e65&&this['_destroyController'](_0x50cb9e);}),this[_0x3403('0x53')](_0x21b258,_0x3403('0x11'),(_0x30b3f8,_0x460f94)=>{this[_0x3403('0x2a')](_0x460f94);}),this[_0x3403('0x53')](_0x27b120,'change:activeAnnotations',()=>{this[_0x3403('0x67')]();}),this[_0x3403('0x53')](_0x3572e1,'addComment',(_0xcbb552,{threadId:_0x2cbb77,isFromAdapter:_0x102f44})=>{if(_0x102f44||!_0x21b258[_0x3403('0x1d')](_0x2cbb77))return;const _0x239fff=_0x21b258['getSuggestion'](_0x2cbb77);this[_0x3403('0x20')][_0x3403('0x27')](_0x239fff)[_0x3403('0x3f')][_0x3403('0x48')]();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x7699b8=this[_0x3403('0x2c')]['plugins'][_0x3403('0x27')](_0x3403('0x12')),_0x3f4307=this['editor'][_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x63')),_0x455089=Array[_0x3403('0x66')](_0x7699b8[_0x3403('0x1b')],_0x19beff=>_0x19beff['innerView'])['filter'](_0x4555f6=>this[_0x3403('0x21')][_0x3403('0x30')](_0x4555f6)),_0x5b5952=[];for(const _0x4fc67e of _0x455089){const _0x21e23a=this[_0x3403('0x21')][_0x3403('0x27')](_0x4fc67e)[_0x3403('0x2e')]['getAllAdjacentSuggestions']();_0x5b5952[_0x3403('0x44')](..._0x21e23a[_0x3403('0x43')]((_0x11ca52,_0x1b7801)=>[..._0x11ca52,..._0x1b7801['getMarkerNames']()],[]));}_0x3f4307[_0x3403('0xf')]=_0x5b5952;}[_0x3403('0x51')](_0x5ab647){const _0x55a99d=_0x4df4b7(_0x5ab647,_0x4e0227),_0x9ac0a3=this[_0x3403('0x2c')][_0x3403('0x1a')][_0x3403('0x27')](_0x3403('0x1f')),_0x515e75=_0xac2841(_0x5ab647,_0x3403('0x9'));_0x55a99d['buttonView'][_0x3403('0x32')]({'tooltip':_0x515e75,'label':_0x515e75,'icon':_0x4969d2}),_0x55a99d['buttonView'][_0x3403('0x5a')](_0x3403('0x34'))['to'](_0x9ac0a3,_0x3403('0x1')),_0x55a99d[_0x3403('0x3d')]['on'](_0x3403('0x64'),()=>{_0x9ac0a3[_0x3403('0x64')](),this[_0x3403('0x2c')][_0x3403('0x62')][_0x3403('0x3f')][_0x3403('0x48')]();});const _0x4537c0=new _0x4ce46f(),_0x52fac5=[{'type':_0x3403('0x4e'),'model':{'withText':!0x0,'label':_0x515e75,'commandName':_0x3403('0x1f')}},{'type':_0x3403('0x2b')},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x16')),'commandName':'acceptAllSuggestions'}},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x57')),'commandName':_0x3403('0x6')}},{'type':_0x3403('0x55'),'model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x5e')),'commandName':_0x3403('0x29')}},{'type':'button','model':{'withText':!0x0,'label':_0xac2841(_0x5ab647,_0x3403('0x4b')),'commandName':_0x3403('0x37')}}];for(const _0x329ad7 of _0x52fac5){let _0x2e6c46={'type':_0x3403('0x2b')};if(_0x329ad7[_0x3403('0x2e')]){const _0x1a2674=new _0x1307b7(_0x329ad7[_0x3403('0x2e')]),_0x19e671=this['editor'][_0x3403('0x1a')][_0x3403('0x27')](_0x1a2674[_0x3403('0x49')]);_0x1a2674['bind'](_0x3403('0x34'),_0x3403('0x46'))['to'](_0x19e671,_0x3403('0x1'),_0x3403('0x46')),_0x2e6c46={'type':_0x329ad7[_0x3403('0x2f')],'model':_0x1a2674};}_0x4537c0[_0x3403('0x58')](_0x2e6c46);}_0x497d52(_0x55a99d,_0x4537c0);const _0x197410=_0x52fac5[_0x3403('0x17')](_0x4d3c6b=>null!=_0x4d3c6b['model'])[_0x3403('0xa')](_0x40b512=>this[_0x3403('0x2c')][_0x3403('0x1a')]['get'](_0x40b512['model'][_0x3403('0x49')])),_0x3fdb73=_0x55a99d[_0x3403('0x3d')];return _0x3fdb73[_0x3403('0x42')][_0x3403('0x31')](_0x3403('0x46')),_0x3fdb73[_0x3403('0x5')][_0x3403('0x31')](_0x3403('0x46')),_0x3fdb73[_0x3403('0x42')][_0x3403('0x5a')](_0x3403('0x46'))['to'](_0x9ac0a3,_0x3403('0x46')),_0x3fdb73[_0x3403('0x5')][_0x3403('0x5a')](_0x3403('0x46'))['toMany'](_0x197410,_0x3403('0x46'),(..._0x920b6a)=>_0x920b6a['some'](_0x2cd0ad=>_0x2cd0ad)),_0x55a99d['on']('execute',_0x688d03=>{this[_0x3403('0x2c')]['execute'](_0x688d03[_0x3403('0x36')][_0x3403('0x49')]),this[_0x3403('0x2c')]['editing']['view']['focus']();}),_0x55a99d;}['_initializeController'](_0x21106a){const _0x397904=this[_0x3403('0x2c')],_0x3565fb=_0x397904[_0x3403('0x45')],_0x26dc59=_0x397904[_0x3403('0xd')][_0x3403('0x27')]('Annotations'),_0x309dfa=_0x397904['plugins'][_0x3403('0x27')](_0x3403('0x8')),_0x249636=_0x397904[_0x3403('0xd')][_0x3403('0x27')]('EditorAnnotations'),_0x12d30b=_0x397904[_0x3403('0xd')]['get'](_0x32ec2d)['me'],_0x37db38=_0x3565fb[_0x3403('0x27')](_0x3403('0x1f'))[_0x3403('0x4d')],{CommentsListView:_0xa6acc4,CommentThreadInputView:_0x5efd2f}=_0x397904[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x14'));let _0x11f054,_0x3821e3;this[_0x3403('0x4c')][_0x3403('0x30')](_0x21106a['id'])?(_0x3821e3=this[_0x3403('0x4c')][_0x3403('0x27')](_0x21106a['id']),_0x11f054=_0x3821e3[_0x3403('0x28')]):(_0x11f054=new _0x37db38(_0x397904[_0x3403('0x56')],_0x21106a,_0x12d30b,{'disableComments':this[_0x3403('0x47')],'editorConfig':_0x3565fb['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3565fb[_0x3403('0x27')](_0x3403('0x26')),'maxThreadTotalWeight':_0x3565fb[_0x3403('0x27')](_0x3403('0x0')),'maxCommentCharsWhenCollapsed':_0x3565fb['get'](_0x3403('0x40')),'formatDateTime':_0x23a44b(_0x3565fb[_0x3403('0x27')](_0x3403('0x56'))),'CommentView':_0x3565fb[_0x3403('0x27')]('comments')['CommentView'],'CommentsListView':_0xa6acc4,'CommentThreadInputView':_0x5efd2f}),_0x11f054[_0x3403('0x2')]['on']('execute',()=>{_0x397904[_0x3403('0x62')][_0x3403('0x3f')][_0x3403('0x48')]();}),_0x11f054[_0x3403('0x3e')]['on'](_0x3403('0x64'),()=>{_0x397904[_0x3403('0x62')]['view'][_0x3403('0x48')]();}),_0x3821e3=_0x26dc59[_0x3403('0x3a')](this[_0x3403('0x2c')][_0x3403('0x56')],_0x11f054),_0x3821e3[_0x3403('0x5a')](_0x3403('0x3b'))['to'](_0x11f054,_0x3403('0x3b')),_0x3821e3['bind'](_0x3403('0x23'))['to'](_0x11f054),_0x3821e3[_0x3403('0x5a')](_0x3403('0x2f'))['to'](_0x11f054,_0x3403('0x2f'),_0x98f3fe=>_0x3403('0x4f')+_0x98f3fe),this[_0x3403('0x4c')][_0x3403('0x32')](_0x21106a['id'],_0x3821e3));const _0x441117=_0x309dfa[_0x3403('0x7')](_0x21106a['commentThread'],_0x11f054),_0x22f0fe=new _0x2d06c2(_0x397904,_0x21106a,_0x11f054,_0x441117),_0x4e0139=_0x21106a['getAllAdjacentSuggestions']()[_0x3403('0x17')](_0x19f067=>_0x19f067[_0x3403('0x25')]);_0x11f054[_0x3403('0x35')]=_0x397904[_0x3403('0xd')][_0x3403('0x27')](_0x3403('0x63'))['_descriptionFactory'][_0x3403('0x4a')](_0x4e0139),this[_0x3403('0x20')]['set'](_0x21106a,_0x22f0fe),this['_viewToController']['set'](_0x11f054,_0x22f0fe);const _0x43611b=_0x26dc59['createAnnotation']({'view':_0x3821e3,'target':()=>{const _0x116101=[],_0x58265f=_0x21106a[_0x3403('0x61')]()[_0x3403('0x17')](_0x2b4cf2=>_0x2b4cf2['isInContent']);for(const _0x1faa86 of _0x58265f)_0x116101[_0x3403('0x44')](..._0x1faa86[_0x3403('0x50')]());return _0x47bb35(_0x397904[_0x3403('0x62')],_0x116101);},'type':()=>_0x3403('0x4f')+_0x22f0fe['view'][_0x3403('0x2f')]});_0x309dfa[_0x3403('0x5d')](_0x11f054,_0x43611b),_0x26dc59[_0x3403('0x58')](_0x43611b),_0x249636[_0x3403('0x10')](_0x43611b);}[_0x3403('0x65')](_0x7cb7a){const _0x3bc065=this[_0x3403('0x2c')]['plugins'][_0x3403('0x27')](_0x3403('0x12')),_0x1efa2c=this[_0x3403('0x20')][_0x3403('0x27')](_0x7cb7a),_0x532128=_0x1efa2c[_0x3403('0x3f')],_0x28165=_0x3bc065[_0x3403('0x5c')](_0x532128);_0x28165&&_0x3bc065[_0x3403('0x59')](_0x28165),this[_0x3403('0x20')]['delete'](_0x7cb7a),this['_viewToController'][_0x3403('0x13')](_0x532128),_0x1efa2c[_0x3403('0x1e')]();}[_0x3403('0x2a')](_0x4645c1){if(!_0x4645c1[_0x3403('0x25')]||!this[_0x3403('0x20')][_0x3403('0x30')](_0x4645c1))return;const _0x176bf5=this[_0x3403('0x2c')][_0x3403('0xd')]['get'](_0x3403('0x63')),_0x3ecb19=this[_0x3403('0x20')][_0x3403('0x27')](_0x4645c1),_0x5497f6=_0x4645c1[_0x3403('0x61')]();_0x3ecb19['view']['descriptionParts']=_0x176bf5[_0x3403('0xe')][_0x3403('0x4a')](_0x5497f6);}['destroy'](){for(const _0x19d990 of this[_0x3403('0x20')][_0x3403('0x2d')]())this[_0x3403('0x65')](_0x19d990);for(const _0x896d39 of this[_0x3403('0x4c')][_0x3403('0x18')]())_0x896d39[_0x3403('0x28')][_0x3403('0x1e')]();super[_0x3403('0x1e')]();}}
23
+ const _0x4ae6=['button','createAnnotationView','CommentsRepository','change:activeAnnotations','init','_descriptionFactory','_createUIButton','buttonView','_disableComments','registerAnnotation','head','bind','trackChanges.disableComments','set','_viewToController','push','unbind','activeMarkers','actionView','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','editor','getMarkers','activeAnnotations','isDirty','_handleControllerBuffer','values','requires','createCommentThreadController','separator','config','change:previous','_refreshActiveMarkers','suggestionUnloaded','getJoined','get','commentThread','isOn','comments.maxCommentCharsWhenCollapsed','locale','suggestionLoaded','Accept\x20all\x20selected\x20suggestions','descriptionParts','delete','CommentView','toMany','_annotationViews','add','filter','discardButton','from','map','commands','TrackChangesEditing','Accept\x20all\x20suggestions','size','value','Track\x20changes','view','acceptAllSuggestions','comments.editorConfig','reduce','Discard\x20all\x20suggestions','source','Annotations','destroy','length','suggestion-','acceptButton','_destroyController','suggestionChanged','comments','EditorAnnotations','execute','trackChanges.SuggestionThreadView','plugins','_bindAnnotationToEditors','_handleSuggestionControllerDelayed','remove','arrowView','isInContent','refreshSelectedViews','comments.maxCommentsWhenCollapsed','_initializeController','model','_updateController','trackChanges','getFirstRange','previous','switchbutton','clear','getAllAdjacentSuggestions','acceptSelectedSuggestions','define','getSuggestion','discardAllSuggestions','focus','lowest','type','mainView','editing','has','keys','_suggestionToController','innerView','CommentsUI','commandName','listenTo','componentFactory','getMarkerNames','isEnabled'];(function(_0x34d9a5,_0x4ae6f6){const _0x39eed5=function(_0x4daa1b){while(--_0x4daa1b){_0x34d9a5['push'](_0x34d9a5['shift']());}};_0x39eed5(++_0x4ae6f6);}(_0x4ae6,0x142));const _0x39ee=function(_0x34d9a5,_0x4ae6f6){_0x34d9a5=_0x34d9a5-0x0;let _0x39eed5=_0x4ae6[_0x34d9a5];return _0x39eed5;};import{Plugin as _0x3b50cf}from'ckeditor5/src/core';import{Collection as _0x2c5c98}from'ckeditor5/src/utils';import{Model as _0x4b52de,SplitButtonView as _0x344626,createDropdown as _0x4220ef,addListToDropdown as _0x272ddf}from'ckeditor5/src/ui';import{Users as _0x13e270,getDateTimeFormatter as _0x317fdb,getAllMarkersDomElementsSorted as _0x1a882d}from'ckeditor5-collaboration/src/collaboration-core';import _0x128a46 from'./trackchangesediting';import _0x3f9a11 from'./ui/suggestioncontroller';import _0x241d9c from'./ui/view/suggestionthreadview';import{getTranslation as _0x2ac648}from'./utils/common-translations';import _0x49ff55 from'../theme/icons/track-changes.svg';export default class d extends _0x3b50cf{static get[_0x39ee('0x26')](){return[_0x128a46,_0x13e270,_0x39ee('0xd'),_0x39ee('0x4b'),_0x39ee('0x53')];}static get['pluginName'](){return _0x39ee('0x1e');}constructor(_0x5cc2e1){super(_0x5cc2e1),this[_0x39ee('0x3')]=new Map(),this[_0x39ee('0x19')]=new Map(),this[_0x39ee('0x39')]=new Map(),this[_0x39ee('0x24')]=new Map();const _0x3804b8=this['editor'][_0x39ee('0x29')];_0x3804b8[_0x39ee('0x68')](_0x39ee('0x55'),_0x241d9c),_0x3804b8['define'](_0x39ee('0x17'),!0x1),this[_0x39ee('0x13')]=_0x3804b8[_0x39ee('0x2e')]('trackChanges.disableComments');}[_0x39ee('0x58')](_0x5b6586,_0x5358fc){0x0===this[_0x39ee('0x24')][_0x39ee('0x42')]&&setTimeout(()=>{for(const [_0x575ae2,_0x3731f0]of this[_0x39ee('0x24')]){const _0x31885c=this[_0x39ee('0x3')]['has'](_0x575ae2);_0x31885c||_0x3731f0?_0x31885c&&_0x3731f0&&this[_0x39ee('0x50')](_0x575ae2):this[_0x39ee('0x5e')](_0x575ae2);}this[_0x39ee('0x20')]['plugins'][_0x39ee('0x2e')](_0x39ee('0x53'))[_0x39ee('0x5c')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x39ee('0x65')]();},0xa),this[_0x39ee('0x24')][_0x39ee('0x18')](_0x5b6586,_0x5358fc);}[_0x39ee('0xf')](){const _0xa4a85a=this['editor'],_0x2fa0ec=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x40')),_0x15f7a6=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')]('Annotations'),_0x26a738=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x53')),_0x159913=_0xa4a85a[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0xd'));_0xa4a85a['ui'][_0x39ee('0x8')][_0x39ee('0x3a')](_0x39ee('0x61'),_0x2f8129=>this[_0x39ee('0x11')](_0x2f8129)),_0x26a738['addSourceCollector'](()=>{const _0x260756=[];for(const [_0x2d191c,_0x2bdf8b]of Array[_0x39ee('0x3d')](this['_suggestionToController'])){const _0xe18db7=_0x2d191c[_0x39ee('0x66')](),_0x4a4315=[];for(const _0x15930a of _0xe18db7){if(!_0x15930a[_0x39ee('0x5b')])continue;if(_0x15930a['isMultiRange']){_0x4a4315['push'](..._0x15930a['getRanges']());continue;}const _0x3e55fd=_0x15930a[_0x39ee('0x62')]();if(_0x4a4315[_0x39ee('0x4d')]>0x0){const _0x53d1da=_0x4a4315[0x0][_0x39ee('0x2d')](_0x3e55fd);if(_0x53d1da){_0x4a4315[0x0]=_0x53d1da;continue;}}_0x4a4315['push'](_0x3e55fd);}_0x260756[_0x39ee('0x1a')]([_0x2bdf8b[_0x39ee('0x45')],_0x4a4315]);}return _0x260756;}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x33'),(_0x18bde1,_0x2f9404)=>{this['listenTo'](_0x2f9404,_0x39ee('0x2a'),(_0xe16ec0,_0x367bc3,_0x3402e0,_0x30695e)=>{_0x2f9404['isInContent']&&(null==_0x3402e0?(this[_0x39ee('0x60')](_0x30695e[_0x39ee('0x15')]),this[_0x39ee('0x58')](_0x2f9404,!0x1)):(this[_0x39ee('0x60')](_0x3402e0[_0x39ee('0x15')]),this[_0x39ee('0x58')](_0x2f9404,!0x0)));}),null===_0x2f9404[_0x39ee('0x63')]?this['_handleSuggestionControllerDelayed'](_0x2f9404,!0x1):this[_0x39ee('0x60')](_0x2f9404[_0x39ee('0x15')]);}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x2c'),(_0x68aee4,_0x41f42e,_0x163e5b)=>{this['stopListening'](_0x41f42e,_0x39ee('0x2a')),this['_handleControllerBuffer'][_0x39ee('0x36')](_0x41f42e);const _0x4a459e=_0x163e5b?_0x163e5b['head']:_0x41f42e,_0x4dbdb7=this['_suggestionToController'][_0x39ee('0x2e')](_0x4a459e);null!==_0x163e5b&&this[_0x39ee('0x60')](_0x4a459e),null===_0x163e5b&&_0x4dbdb7&&this[_0x39ee('0x50')](_0x41f42e);}),this[_0x39ee('0x7')](_0x2fa0ec,_0x39ee('0x51'),(_0x147c40,_0x2672b8)=>{this['_updateController'](_0x2672b8);}),this[_0x39ee('0x7')](_0x15f7a6,_0x39ee('0xe'),()=>{this['_refreshActiveMarkers']();}),this[_0x39ee('0x7')](_0x159913,'addComment',(_0x5f0dce,{threadId:_0x4d00fd,isFromAdapter:_0x3dd5f4})=>{if(_0x3dd5f4||!_0x2fa0ec['hasSuggestion'](_0x4d00fd))return;const _0x4d6b58=_0x2fa0ec[_0x39ee('0x69')](_0x4d00fd);this[_0x39ee('0x3')][_0x39ee('0x2e')](_0x4d6b58)[_0x39ee('0x45')][_0x39ee('0x6b')]();},{'priority':_0x39ee('0x6c')});}[_0x39ee('0x2b')](){const _0x56722a=this[_0x39ee('0x20')][_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x4b')),_0x22c037=this[_0x39ee('0x20')]['plugins'][_0x39ee('0x2e')]('TrackChangesEditing'),_0x345ba6=Array[_0x39ee('0x3d')](_0x56722a[_0x39ee('0x22')],_0x45b6a8=>_0x45b6a8[_0x39ee('0x4')])['filter'](_0x19eeef=>this[_0x39ee('0x19')][_0x39ee('0x1')](_0x19eeef)),_0x5a555d=[];for(const _0x2d4d52 of _0x345ba6){const _0x107c06=this[_0x39ee('0x19')][_0x39ee('0x2e')](_0x2d4d52)[_0x39ee('0x5f')]['getAllAdjacentSuggestions']();_0x5a555d['push'](..._0x107c06[_0x39ee('0x48')]((_0x1af418,_0x1d4b77)=>[..._0x1af418,..._0x1d4b77[_0x39ee('0x9')]()],[]));}_0x22c037[_0x39ee('0x1c')]=_0x5a555d;}[_0x39ee('0x11')](_0x2ff9a6){const _0x139dfd=_0x4220ef(_0x2ff9a6,_0x344626),_0x28c9ca=this[_0x39ee('0x20')][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x39ee('0x61')),_0x43a850=_0x2ac648(_0x2ff9a6,_0x39ee('0x44'));_0x139dfd[_0x39ee('0x12')][_0x39ee('0x18')]({'tooltip':_0x43a850,'label':_0x43a850,'icon':_0x49ff55}),_0x139dfd[_0x39ee('0x12')][_0x39ee('0x16')](_0x39ee('0x30'))['to'](_0x28c9ca,_0x39ee('0x43')),_0x139dfd[_0x39ee('0x12')]['on'](_0x39ee('0x54'),()=>{_0x28c9ca['execute'](),this[_0x39ee('0x20')][_0x39ee('0x0')][_0x39ee('0x45')]['focus']();});const _0x24b477=new _0x2c5c98(),_0x35b674=[{'type':_0x39ee('0x64'),'model':{'withText':!0x0,'label':_0x43a850,'commandName':_0x39ee('0x61')}},{'type':_0x39ee('0x28')},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x41')),'commandName':_0x39ee('0x46')}},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x34')),'commandName':_0x39ee('0x67')}},{'type':_0x39ee('0xb'),'model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x49')),'commandName':_0x39ee('0x6a')}},{'type':'button','model':{'withText':!0x0,'label':_0x2ac648(_0x2ff9a6,_0x39ee('0x1f')),'commandName':'discardSelectedSuggestions'}}];for(const _0x219de7 of _0x35b674){let _0x5c11c7={'type':_0x39ee('0x28')};if(_0x219de7[_0x39ee('0x5f')]){const _0x10ed13=new _0x4b52de(_0x219de7[_0x39ee('0x5f')]),_0x4b3740=this[_0x39ee('0x20')][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x10ed13[_0x39ee('0x6')]);_0x10ed13['bind']('isOn','isEnabled')['to'](_0x4b3740,_0x39ee('0x43'),_0x39ee('0xa')),_0x5c11c7={'type':_0x219de7[_0x39ee('0x6d')],'model':_0x10ed13};}_0x24b477['add'](_0x5c11c7);}_0x272ddf(_0x139dfd,_0x24b477);const _0x3bfb09=_0x35b674[_0x39ee('0x3b')](_0x4a9c2b=>null!=_0x4a9c2b[_0x39ee('0x5f')])[_0x39ee('0x3e')](_0x5c36c7=>this['editor'][_0x39ee('0x3f')][_0x39ee('0x2e')](_0x5c36c7['model'][_0x39ee('0x6')])),_0x5a7d17=_0x139dfd[_0x39ee('0x12')];return _0x5a7d17[_0x39ee('0x1d')][_0x39ee('0x1b')]('isEnabled'),_0x5a7d17[_0x39ee('0x5a')][_0x39ee('0x1b')](_0x39ee('0xa')),_0x5a7d17['actionView']['bind']('isEnabled')['to'](_0x28c9ca,_0x39ee('0xa')),_0x5a7d17[_0x39ee('0x5a')][_0x39ee('0x16')](_0x39ee('0xa'))[_0x39ee('0x38')](_0x3bfb09,_0x39ee('0xa'),(..._0x17606b)=>_0x17606b['some'](_0x544be2=>_0x544be2)),_0x139dfd['on']('execute',_0x5796fe=>{this[_0x39ee('0x20')][_0x39ee('0x54')](_0x5796fe[_0x39ee('0x4a')]['commandName']),this[_0x39ee('0x20')][_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0x139dfd;}['_initializeController'](_0x121b1c){const _0x585e8f=this[_0x39ee('0x20')],_0x5f49b4=_0x585e8f[_0x39ee('0x29')],_0x11090e=_0x585e8f[_0x39ee('0x56')][_0x39ee('0x2e')]('Annotations'),_0x39b16a=_0x585e8f['plugins'][_0x39ee('0x2e')](_0x39ee('0xd')),_0x226814=_0x585e8f[_0x39ee('0x56')]['get'](_0x39ee('0x53')),_0x1edee1=_0x585e8f[_0x39ee('0x56')]['get'](_0x13e270)['me'],_0x499a36=_0x5f49b4['get'](_0x39ee('0x61'))['SuggestionThreadView'],{CommentsListView:_0xb24366,CommentThreadInputView:_0x5bc51d}=_0x585e8f[_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x5'));let _0x12cd29,_0xbbe3e9;this['_annotationViews']['has'](_0x121b1c['id'])?(_0xbbe3e9=this[_0x39ee('0x39')][_0x39ee('0x2e')](_0x121b1c['id']),_0x12cd29=_0xbbe3e9[_0x39ee('0x6e')]):(_0x12cd29=new _0x499a36(_0x585e8f[_0x39ee('0x32')],_0x121b1c,_0x1edee1,{'disableComments':this[_0x39ee('0x13')],'editorConfig':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x47')),'maxCommentsWhenCollapsed':_0x5f49b4['get'](_0x39ee('0x5d')),'maxThreadTotalWeight':_0x5f49b4[_0x39ee('0x2e')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x31')),'formatDateTime':_0x317fdb(_0x5f49b4['get'](_0x39ee('0x32'))),'CommentView':_0x5f49b4[_0x39ee('0x2e')](_0x39ee('0x52'))[_0x39ee('0x37')],'CommentsListView':_0xb24366,'CommentThreadInputView':_0x5bc51d}),_0x12cd29[_0x39ee('0x4f')]['on'](_0x39ee('0x54'),()=>{_0x585e8f[_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0x12cd29[_0x39ee('0x3c')]['on']('execute',()=>{_0x585e8f[_0x39ee('0x0')][_0x39ee('0x45')][_0x39ee('0x6b')]();}),_0xbbe3e9=_0x11090e[_0x39ee('0xc')](this[_0x39ee('0x20')][_0x39ee('0x32')],_0x12cd29),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x23'))['to'](_0x12cd29,'isDirty'),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x4d'))['to'](_0x12cd29),_0xbbe3e9[_0x39ee('0x16')](_0x39ee('0x6d'))['to'](_0x12cd29,'type',_0x336d8f=>_0x39ee('0x4e')+_0x336d8f),this[_0x39ee('0x39')][_0x39ee('0x18')](_0x121b1c['id'],_0xbbe3e9));const _0x1af3c6=_0x39b16a[_0x39ee('0x27')](_0x121b1c[_0x39ee('0x2f')],_0x12cd29),_0x5ef201=new _0x3f9a11(_0x585e8f,_0x121b1c,_0x12cd29,_0x1af3c6),_0x131699=_0x121b1c['getAllAdjacentSuggestions']()[_0x39ee('0x3b')](_0x5921c9=>_0x5921c9[_0x39ee('0x5b')]);_0x12cd29['descriptionParts']=_0x585e8f[_0x39ee('0x56')]['get'](_0x39ee('0x40'))[_0x39ee('0x10')]['getDescriptions'](_0x131699),this[_0x39ee('0x3')]['set'](_0x121b1c,_0x5ef201),this[_0x39ee('0x19')]['set'](_0x12cd29,_0x5ef201);const _0x50ef7a=_0x11090e['createAnnotation']({'view':_0xbbe3e9,'target':()=>{const _0x5b4015=[],_0x3e624c=_0x121b1c['getAllAdjacentSuggestions']()[_0x39ee('0x3b')](_0x692759=>_0x692759['isInContent']);for(const _0x3fa12c of _0x3e624c)_0x5b4015[_0x39ee('0x1a')](..._0x3fa12c[_0x39ee('0x21')]());return _0x1a882d(_0x585e8f[_0x39ee('0x0')],_0x5b4015);},'type':()=>'suggestion-'+_0x5ef201[_0x39ee('0x45')]['type']});_0x39b16a[_0x39ee('0x57')](_0x12cd29,_0x50ef7a),_0x11090e[_0x39ee('0x3a')](_0x50ef7a),_0x226814[_0x39ee('0x14')](_0x50ef7a);}[_0x39ee('0x50')](_0x162d64){const _0x48d820=this['editor'][_0x39ee('0x56')][_0x39ee('0x2e')](_0x39ee('0x4b')),_0x401a52=this[_0x39ee('0x3')][_0x39ee('0x2e')](_0x162d64),_0x514b54=_0x401a52['view'],_0x179ef6=_0x48d820['getByInnerView'](_0x514b54);_0x179ef6&&_0x48d820[_0x39ee('0x59')](_0x179ef6),this[_0x39ee('0x3')][_0x39ee('0x36')](_0x162d64),this[_0x39ee('0x19')]['delete'](_0x514b54),_0x401a52[_0x39ee('0x4c')]();}[_0x39ee('0x60')](_0x4d4d60){if(!_0x4d4d60[_0x39ee('0x5b')]||!this[_0x39ee('0x3')]['has'](_0x4d4d60))return;const _0xec84c1=this[_0x39ee('0x20')][_0x39ee('0x56')]['get']('TrackChangesEditing'),_0x2aba3f=this['_suggestionToController'][_0x39ee('0x2e')](_0x4d4d60),_0x915fcc=_0x4d4d60[_0x39ee('0x66')]();_0x2aba3f[_0x39ee('0x45')][_0x39ee('0x35')]=_0xec84c1[_0x39ee('0x10')]['getDescriptions'](_0x915fcc);}[_0x39ee('0x4c')](){for(const _0x5e9bb9 of this[_0x39ee('0x3')][_0x39ee('0x2')]())this['_destroyController'](_0x5e9bb9);for(const _0x1c0e17 of this[_0x39ee('0x39')][_0x39ee('0x25')]())_0x1c0e17[_0x39ee('0x6e')][_0x39ee('0x4c')]();super[_0x39ee('0x4c')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e99=['getRanges','acceptSuggestion','_pendingAction','PENDING_ACTION_SUGGESTION','_removePendingAction','isEnabled','canDiscard','unbind','commentThreadController','locale','add','_acceptCommand','discardSuggestion','execute','_discardCommand','commands','destroy','model','canAccept','get','canEditAt','plugins','view','_editor','_setPendingAction','isDirty','listenTo','PendingActions','bind'];(function(_0x1a3cdf,_0x1e9920){const _0x11651e=function(_0x523105){while(--_0x523105){_0x1a3cdf['push'](_0x1a3cdf['shift']());}};_0x11651e(++_0x1e9920);}(_0x1e99,0xd2));const _0x1165=function(_0x1a3cdf,_0x1e9920){_0x1a3cdf=_0x1a3cdf-0x0;let _0x11651e=_0x1e99[_0x1a3cdf];return _0x11651e;};import{ObservableMixin as _0x286cb9}from'ckeditor5/src/utils';import{getTranslation as _0x4e8f9c}from'../utils/common-translations';export default class qt extends _0x286cb9(){constructor(_0x2622a4,_0x51deab,_0x541e80,_0x4e1e75){super(),this[_0x1165('0xa')]=_0x51deab,this[_0x1165('0xf')]=_0x541e80,this[_0x1165('0x1')]=_0x4e1e75,this[_0x1165('0x10')]=_0x2622a4,this['_acceptCommand']=_0x2622a4[_0x1165('0x8')][_0x1165('0xc')]('acceptSuggestion'),this['_discardCommand']=_0x2622a4['commands']['get']('discardSuggestion'),this[_0x1165('0xf')]['bind'](_0x1165('0x1b'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x146ff4,_0x224664)=>_0x146ff4||_0x224664),this[_0x1165('0xf')][_0x1165('0x15')]('canAccept')['to'](this['_acceptCommand'],_0x1165('0x1b'),_0x5057c2=>_0x5057c2&&this[_0x1165('0x10')]['model'][_0x1165('0xd')](_0x51deab[_0x1165('0x16')]())),this['view'][_0x1165('0x15')](_0x1165('0x1c'))['to'](this['_discardCommand'],_0x1165('0x1b'),_0x96ede=>_0x96ede&&this[_0x1165('0x10')]['model']['canEditAt'](_0x51deab[_0x1165('0x16')]())),this[_0x1165('0x18')]=null,_0x541e80[_0x1165('0x12')]&&this[_0x1165('0x11')](),this[_0x1165('0x13')](_0x541e80,_0x1165('0x17'),()=>this[_0x1165('0x17')]()),this[_0x1165('0x13')](_0x541e80,_0x1165('0x5'),()=>this[_0x1165('0x5')]()),this[_0x1165('0x13')](_0x541e80,'change:isDirty',()=>{_0x541e80[_0x1165('0x12')]?this[_0x1165('0x11')]():this['_removePendingAction']();});}[_0x1165('0x17')](){this[_0x1165('0x4')][_0x1165('0x6')](this[_0x1165('0xa')]['id']);}[_0x1165('0x5')](){this[_0x1165('0x7')][_0x1165('0x6')](this[_0x1165('0xa')]['id']);}[_0x1165('0x9')](){this['view'][_0x1165('0x0')]('isEnabled'),this[_0x1165('0xf')][_0x1165('0x0')](_0x1165('0xb')),this['view'][_0x1165('0x0')](_0x1165('0x1c')),this['stopListening'](),this[_0x1165('0x1')]['destroy'](),this[_0x1165('0x18')]&&this[_0x1165('0x1a')]();}['_setPendingAction'](){const _0x185b13=_0x4e8f9c(this[_0x1165('0x10')][_0x1165('0x2')],_0x1165('0x19'));this[_0x1165('0x18')]=this[_0x1165('0x10')]['plugins'][_0x1165('0xc')](_0x1165('0x14'))[_0x1165('0x3')](_0x185b13);}['_removePendingAction'](){null!==this[_0x1165('0x18')]&&this[_0x1165('0x10')][_0x1165('0xe')]['get'](_0x1165('0x14'))['remove'](this[_0x1165('0x18')]),this['_pendingAction']=null;}}
23
+ const _0x3080=['_pendingAction','canAccept','stopListening','PENDING_ACTION_SUGGESTION','get','model','getRanges','bind','canEditAt','isDirty','isEnabled','_discardCommand','commentThreadController','discardSuggestion','canDiscard','commands','unbind','_acceptCommand','PendingActions','listenTo','destroy','plugins','_removePendingAction','execute','add','locale','acceptSuggestion','remove','view','_editor','_setPendingAction'];(function(_0x25737e,_0x30803d){const _0x2cc0c3=function(_0x1663f2){while(--_0x1663f2){_0x25737e['push'](_0x25737e['shift']());}};_0x2cc0c3(++_0x30803d);}(_0x3080,0x101));const _0x2cc0=function(_0x25737e,_0x30803d){_0x25737e=_0x25737e-0x0;let _0x2cc0c3=_0x3080[_0x25737e];return _0x2cc0c3;};import{ObservableMixin as _0x3ff8cc}from'ckeditor5/src/utils';import{getTranslation as _0x1e699f}from'../utils/common-translations';export default class qt extends _0x3ff8cc(){constructor(_0x14b9a0,_0x26ac70,_0x5b72be,_0xb08f1a){super(),this['model']=_0x26ac70,this[_0x2cc0('0x13')]=_0x5b72be,this[_0x2cc0('0x3')]=_0xb08f1a,this['_editor']=_0x14b9a0,this[_0x2cc0('0x8')]=_0x14b9a0[_0x2cc0('0x6')][_0x2cc0('0x1a')](_0x2cc0('0x11')),this['_discardCommand']=_0x14b9a0[_0x2cc0('0x6')][_0x2cc0('0x1a')](_0x2cc0('0x4')),this[_0x2cc0('0x13')][_0x2cc0('0x1d')]('isEnabled')['to'](this['_acceptCommand'],this[_0x2cc0('0x2')],(_0x43c87f,_0x4ec340)=>_0x43c87f||_0x4ec340),this[_0x2cc0('0x13')][_0x2cc0('0x1d')]('canAccept')['to'](this[_0x2cc0('0x8')],_0x2cc0('0x1'),_0x233fb6=>_0x233fb6&&this['_editor']['model'][_0x2cc0('0x1e')](_0x26ac70[_0x2cc0('0x1c')]())),this[_0x2cc0('0x13')][_0x2cc0('0x1d')](_0x2cc0('0x5'))['to'](this[_0x2cc0('0x2')],'isEnabled',_0x2a0f5b=>_0x2a0f5b&&this[_0x2cc0('0x14')][_0x2cc0('0x1b')][_0x2cc0('0x1e')](_0x26ac70[_0x2cc0('0x1c')]())),this['_pendingAction']=null,_0x5b72be[_0x2cc0('0x0')]&&this[_0x2cc0('0x15')](),this[_0x2cc0('0xa')](_0x5b72be,_0x2cc0('0x11'),()=>this[_0x2cc0('0x11')]()),this['listenTo'](_0x5b72be,_0x2cc0('0x4'),()=>this['discardSuggestion']()),this[_0x2cc0('0xa')](_0x5b72be,'change:isDirty',()=>{_0x5b72be[_0x2cc0('0x0')]?this[_0x2cc0('0x15')]():this['_removePendingAction']();});}[_0x2cc0('0x11')](){this[_0x2cc0('0x8')]['execute'](this[_0x2cc0('0x1b')]['id']);}[_0x2cc0('0x4')](){this['_discardCommand'][_0x2cc0('0xe')](this[_0x2cc0('0x1b')]['id']);}[_0x2cc0('0xb')](){this['view'][_0x2cc0('0x7')](_0x2cc0('0x1')),this['view']['unbind'](_0x2cc0('0x17')),this[_0x2cc0('0x13')][_0x2cc0('0x7')](_0x2cc0('0x5')),this[_0x2cc0('0x18')](),this[_0x2cc0('0x3')][_0x2cc0('0xb')](),this['_pendingAction']&&this[_0x2cc0('0xd')]();}[_0x2cc0('0x15')](){const _0x2667de=_0x1e699f(this['_editor'][_0x2cc0('0x10')],_0x2cc0('0x19'));this[_0x2cc0('0x16')]=this[_0x2cc0('0x14')][_0x2cc0('0xc')][_0x2cc0('0x1a')](_0x2cc0('0x9'))[_0x2cc0('0xf')](_0x2667de);}[_0x2cc0('0xd')](){null!==this[_0x2cc0('0x16')]&&this[_0x2cc0('0x14')][_0x2cc0('0xc')]['get'](_0x2cc0('0x9'))[_0x2cc0('0x12')](this[_0x2cc0('0x16')]),this[_0x2cc0('0x16')]=null;}}