@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230811.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 _0x57b9=['ck-suggestion-marker','getLastMatchingPosition','createSelection','formatInline:chain','authoredAt','_handleNewSuggestionMarker','addMarkerName','formatInline:','_mergeNestedSuggestions','_updateSuggestionData','start','track-changes-suggestion-data-mismatch','head','isObject','getCommentThread','editingDowncast','acceptSuggestion','_suggestionState','attributes','updateSuggestion','_getSuggestionData','some','widget','model','insertion:discard','length','getAllAdjacentSuggestions','insertion:chain','default','buildSuggestion','markerName','parent','isBefore','hasSuggestion','suggestion-type','_isForcedDefaultExecutionBlock','_refreshSuggestionsChain','deletion:join','_suggestionFactory','type','markMultiRangeDeletion','change:data','rootName','PendingActions','commands','_suggestions','batch','substr','insertion:join','change:activeMarkers','registerCustomCallback','size','getCustomProperty','trackChangesCommand','suggestion:','trackChanges.trackFormatChanges','containsPosition','getMultiRangeId','_editor','deleteContent','howMany','_model','containsRange','name','has','listenTo','_findSuggestions','formatGroupId','isNextTo','data-suggestion','discardAllSuggestions','selection','markerToHighlight','pluginName','applyOperation','getMarkers','elementEnd','setAttribute','external:','isCollapsed','_adapter','value','_getAuthorFromId','position','addClass','init','_breakSuggestionMarker','return','set','data','elementStart','@external','detach','_enabledCommands','insertContent','join','isEqual','toViewElement','root','skipNestingCheck','creator','commentThread','isInsideObject','hasCommentThread','_splitMarkerName','before','_getExternalAuthor','_joinSuggestions','markerReady','execute','addHighlight','trackChanges','open','formatInline','isSelectable','isLocal','trackChanges.mergeNestedSuggestions','isRemovable','addComment','multipleBlocks','_saved','sort','end','addSuggestionData','_removeSuggestion','_customCallbacks','editor','fire','addUser','unbind','getAttribute','high','formatBlock:discard','markDeletion','getIntersection','removeComment','_setSuggestionData','lowest','markers','formatInline:accept','from','includes','setSelection','deletion','remove','track-changes-command-not-found','getSuggestions','multi','isOwn','clear','isBlock','suggestionLoaded','ck-suggestion-marker--active','isMultiRange','config','nodeBefore','createPositionAt','range','isIntersectingWithRange','insertion:','acceptAllSuggestions','newRange','_cutOutSuggestionMarker','item','suggestion','update:suggestion','element','getItems','insertion:accept','markMultiRangeInsertion','getChangedMarkers','_checkSuggestionCorrectness','marker-count','containsItem','ck-suggestion-marker-formatBlock','ready','deletion:accept','after','isUndo','adapter','removeMarkers','formatBlock:chain','rejected','plugins','markInsertion','PENDING_ACTION_SUGGESTION','schema','authorName','_rangeIsInLocalUserInsertion','isInContent','moveTargetPosition','values','createRangeIn','CommentsRepository','nodeAfter','addRange','isLimit','track-changes-adapter-missing-getsuggestion','_defaultCallbacks','insertion','getRange','always','createPositionBefore','getChanges','insert','$marker','author','elementToElement','formatBlock','getNearestSelectionRange','removeAttribute','getRanges','catch','discardSelectedSuggestions','mapper','getDifference','createdAt','addSuggestion','getWalker','Users','for','consumable','push','formatBlock:','consume','showSuggestionHighlights','get','fetchCommentThread','isExternal','subType','containsRangeInObject','discardSuggestion','getSuggestion','_addSuggestionMarker','dataDowncast','stop','suggestionChanged','change','getFirstRange','$graveyard','removed','discard','forceDefaultExecution','updateMarker','addCommentThread','oldRange','rethrowUnexpectedError','deletion:discard','getUser','acceptSelectedSuggestions','ck-suggestion-marker-','suggestionUnloaded','split','track-changes-user-not-found','formatBlock:accept','getSuggestionCallback','isAfter','options','writer','define','collaboration.channelId','activeMarkers','splice','enqueueChange','_commentsRepository','createRange','getShiftedBy','splitPosition','then','fromRange','accept','resolve','change:_saved','_trackFormatChanges','track-changes-adapter-already-set','map','never','previous','differ','isAtEnd','isAtStart','backward','filter','stopListening','requires','documentSelection','formatBlock:join','every','isDocumentOperation','next','add','conversion','removeMarker:suggestion:formatBlock','_setSuggestionRange','_addThreadToSuggestion','registerPostFixer','markerNameToElements','_registerDefaultCallbacks','low','dataReady','removeMarker','track-changes-suggestion-not-found','notReady','deletion:','hasComments','originalSuggestionId','normal','locale','_createSuggestion','clone','markInlineFormat','commandName','delete','_joinWithAdjacentSuggestions','enableCommand','document','upcast','error-saving-suggestion-data-suggestion-discarded'];(function(_0x899cc7,_0x57b961){const _0x2633e1=function(_0x2a54af){while(--_0x2a54af){_0x899cc7['push'](_0x899cc7['shift']());}};_0x2633e1(++_0x57b961);}(_0x57b9,0x88));const _0x2633=function(_0x899cc7,_0x57b961){_0x899cc7=_0x899cc7-0x0;let _0x2633e1=_0x57b9[_0x899cc7];return _0x2633e1;};import{Plugin as _0x1a89a0,PendingActions as _0x52501e}from'ckeditor5/src/core';import{LiveRange as _0x3ad8e1}from'ckeditor5/src/engine';import{CKEditorError as _0x44858c,uid as _0x482438,priorities as _0x5c5177,logWarning as _0x34826f}from'ckeditor5/src/utils';import{toWidget as _0x25cc01}from'ckeditor5/src/widget';import{Users as _0x52a343,hashObject as _0x221542}from'ckeditor5-collaboration/src/collaboration-core';import _0x4263 from'./commands/trackchangescommand';import _0x4a7117 from'./commands/acceptsuggestioncommand';import _0x4f3240 from'./commands/discardsuggestioncommand';import _0x44dabe from'./commands/executeonallsuggestionscommand';import _0xe734d7 from'./commands/executeonselectedsuggestionscommand';import _0x33877d from'./suggestion';import _0x4590c0 from'./suggestiondescriptionfactory';import _0x3402aa from'./integrations/alignment';import _0x959dc9 from'./integrations/basicstyles';import _0x1c056e from'./integrations/blockquote';import _0x1c02d1 from'./integrations/ckbox';import _0x1ee684 from'./integrations/codeblock';import _0x4ec615 from'./integrations/comments';import _0x2a3e7d from'./integrations/deletecommand';import _0x22fd60 from'./integrations/documentlist';import _0x30aa1a from'./integrations/entercommand';import _0x4ccdac from'./integrations/findandreplace';import _0x3d41df from'./integrations/font';import _0x492b8a from'./integrations/formatpainter';import _0x4b3091 from'./integrations/heading';import _0x53f5a5 from'./integrations/highlight';import _0x4970bc from'./integrations/horizontalline';import _0x95db59 from'./integrations/htmlembed';import _0x3b432e from'./integrations/image';import _0x326b45 from'./integrations/imagereplace';import _0x2c9388 from'./integrations/importword';import _0x513485 from'./integrations/indent';import _0x246309 from'./integrations/inputcommand';import _0x5c30a8 from'./integrations/link';import _0x4f46d9 from'./integrations/list';import _0x2a412b from'./integrations/listproperties';import _0x1f2c4d from'./integrations/mediaembed';import _0x1e11f9 from'./integrations/mention';import _0x2cfc08 from'./integrations/pagebreak';import _0xfbea1 from'./integrations/paragraph';import _0x180466 from'./integrations/removeformat';import _0x58f30c from'./integrations/restrictededitingmode';import _0x19b129 from'./integrations/shiftentercommand';import _0x40efae from'./integrations/standardeditingmode';import _0x1740ea from'./integrations/style';import _0x31a414 from'./integrations/table';import _0x4a8adf from'./integrations/tablemergesplit';import _0x41464b from'./integrations/tableheadings';import _0x148bbe from'./integrations/tableclipboard';import _0x5d3b92 from'./integrations/tablecolumnresize';import _0x3ca947 from'./integrations/template';import _0x569baa from'./integrations/tableofcontents';import _0x56d9fb from'./integrations/title';import _0x88725a from'./integrations/undo';import{getTranslation as _0x39c557}from'./utils/common-translations';import _0x4a4f67 from'./integrations/tablecaption';import _0x2a25e7 from'./integrations/documentlistproperties';import _0x371ea9 from'./integrations/tableproperties';export default class p extends _0x1a89a0{static get[_0x2633('0x94')](){return['CommentsRepository',_0x52a343,_0x52501e,_0x3402aa,_0x959dc9,_0x1c056e,_0x1c02d1,_0x1ee684,_0x4ec615,_0x2a3e7d,_0x22fd60,_0x2a25e7,_0x30aa1a,_0x4ccdac,_0x3d41df,_0x492b8a,_0x4b3091,_0x53f5a5,_0x4970bc,_0x95db59,_0x3b432e,_0x326b45,_0x2c9388,_0x513485,_0x246309,_0x5c30a8,_0x4f46d9,_0x2a412b,_0x1f2c4d,_0x1e11f9,_0x2cfc08,_0xfbea1,_0x180466,_0x58f30c,_0x19b129,_0x40efae,_0x1740ea,_0x31a414,_0x4a8adf,_0x41464b,_0x4a4f67,_0x148bbe,_0x5d3b92,_0x569baa,_0x371ea9,_0x3ca947,_0x56d9fb,_0x88725a];}static get[_0x2633('0xff')](){return'TrackChangesEditing';}constructor(_0x12b0fa){function _0x144ef8(_0x8f71df){return _0x8f71df['map'](_0x1fa690=>String['fromCharCode'](_0x1fa690))[_0x2633('0x115')]('');}super(_0x12b0fa),this['set'](_0x2633('0x7d'),[]),this['on'](_0x2633('0xe7'),(_0x2c0505,_0x400cb5,_0x3a0b31,_0x2efc1b)=>{this[_0x2633('0xf3')][_0x2633('0x65')](()=>{for(const _0xb16231 of[..._0x2efc1b,..._0x3a0b31])this['_model'][_0x2633('0x2')][_0x2633('0xf6')](_0xb16231)&&_0x12b0fa['editing']['reconvertMarker'](_0xb16231);});}),this['_descriptionFactory']=new _0x4590c0(this[_0x2633('0x134')][_0x2633('0xcd')][_0x2633('0x32')],this[_0x2633('0x134')][_0x2633('0xab')]),this[_0x2633('0x106')]=null,this[_0x2633('0xdc')]=new Dt(this[_0x2633('0x134')]),this[_0x2633('0xe3')]=new Map(),this[_0x2633('0x80')]=_0x12b0fa[_0x2633('0x2f')]['get']('CommentsRepository'),this[_0x2633('0x113')]=new Set(),this[_0x2633('0xf3')]=this[_0x2633('0x134')][_0x2633('0xcd')],this['_suggestionState']=new WeakMap(),this[_0x2633('0xd9')]=!0x1,_0x12b0fa[_0x2633('0x12')][_0x2633('0x7b')](_0x2633('0xed'),_0x2633('0xd2')),this[_0x2633('0x89')]=_0x12b0fa[_0x2633('0x12')][_0x2633('0x5a')]('trackChanges.trackFormatChanges'),_0x12b0fa[_0x2633('0x12')][_0x2633('0x7b')](_0x2633('0x12a'),!0x0),this['_mergeNestedSuggestions']=_0x12b0fa['config']['get'](_0x2633('0x12a')),this[_0x2633('0xeb')]=new _0x4263(_0x12b0fa,this[_0x2633('0x113')]),this[_0x144ef8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x144ef8([0x34,0x30,0x34,0x36,0x31,0x36,0x32,0x30]);}[_0x2633('0x10b')](){const _0x1e40b7=this[_0x2633('0x134')];_0x1e40b7[_0x2633('0x9b')]['for'](_0x2633('0xc5'))['markerToHighlight']({'model':_0x2633('0x1c'),'view':_0x28afee=>{const {id:_0x465d32,type:_0x46c7f9}=this['_splitMarkerName'](_0x28afee[_0x2633('0xd4')]),_0x1573ef=[_0x2633('0xb6'),_0x2633('0x72')+_0x46c7f9];let _0x379658=0xbb8;return this[_0x2633('0x7d')][_0x2633('0x5')](_0x28afee['markerName'])&&(_0x1573ef[_0x2633('0x56')](_0x2633('0x10')),_0x379658=0xbc2),_0x2633('0x7')==_0x46c7f9&&(_0x379658+=0x5),{'classes':_0x1573ef,'attributes':{'data-suggestion':_0x465d32},'priority':_0x379658};}}),_0x1e40b7[_0x2633('0x9b')][_0x2633('0x54')](_0x2633('0x62'))['add'](_0x3918d0=>{_0x3918d0['on']('addMarker:suggestion',(_0x301169,_0x11fa22,_0x36c5f8)=>{if(!_0x36c5f8[_0x2633('0x79')][_0x2633('0x59')])return;const _0x2b8838=_0x11fa22[_0x2633('0x1b')];if(!_0x2b8838)return;const _0x221a14=_0x36c5f8['mapper']['toViewElement'](_0x2b8838);_0x1e40b7['model']['schema'][_0x2633('0xc3')](_0x2b8838)&&_0x221a14&&!_0x221a14[_0x2633('0xea')](_0x2633('0xcc'))&&_0x221a14['is']('containerElement')&&_0x25cc01(_0x221a14,_0x36c5f8[_0x2633('0x7a')]);},{'priority':'high'});}),_0x1e40b7[_0x2633('0x9b')]['for'](_0x2633('0x62'))[_0x2633('0xfe')]({'model':_0x2633('0x1c'),'view':(_0x7baa80,_0x1bc310)=>{if(!_0x1bc310[_0x2633('0x79')][_0x2633('0x59')])return null;const {type:_0x552d59}=this[_0x2633('0x11e')](_0x7baa80[_0x2633('0xd4')]);return{'classes':[_0x2633('0xb6'),_0x2633('0x72')+_0x552d59],'priority':0xbb8};}});const _0x75f875=({showActiveMarkers:_0x8d7fe9=!0x0}={})=>(_0x5c7553,_0x4addee,_0xaa3f84)=>{if(!_0x4addee[_0x2633('0x1b')])return;if(_0x4addee[_0x2633('0x1b')]['is'](_0x2633('0xfd')))return void _0xaa3f84[_0x2633('0x55')][_0x2633('0x58')](_0x4addee[_0x2633('0x1b')],_0x5c7553['name']);const _0x344d2d=_0xaa3f84[_0x2633('0x4e')][_0x2633('0x117')](_0x4addee[_0x2633('0x1b')]);if(!(_0x4addee[_0x2633('0x1b')]['is'](_0x2633('0x1e'))&&_0x1e40b7['model'][_0x2633('0x32')][_0x2633('0xe')](_0x4addee[_0x2633('0x1b')])&&!_0x344d2d['getCustomProperty'](_0x2633('0x124'))))return;const {id:_0x3823be}=this[_0x2633('0x11e')](_0x4addee['markerName']);_0xaa3f84[_0x2633('0x7a')][_0x2633('0x10a')]([_0x2633('0xb6'),_0x2633('0x26')],_0x344d2d),_0xaa3f84[_0x2633('0x7a')][_0x2633('0x103')](_0x2633('0xfb'),_0x3823be,_0x344d2d),_0xaa3f84['mapper']['bindElementToMarker'](_0x344d2d,_0x4addee['markerName']),_0x8d7fe9&&(this[_0x2633('0x7d')][_0x2633('0x5')](_0x4addee['markerName'])?_0xaa3f84[_0x2633('0x7a')][_0x2633('0x10a')](_0x2633('0x10'),_0x344d2d):_0xaa3f84[_0x2633('0x7a')]['removeClass'](_0x2633('0x10'),_0x344d2d));for(const _0x591a03 of _0x1e40b7[_0x2633('0xcd')][_0x2633('0x38')](_0x4addee[_0x2633('0x1b')])[_0x2633('0x1f')]())_0xaa3f84[_0x2633('0x55')][_0x2633('0x58')](_0x591a03,_0x5c7553['name']);_0xaa3f84[_0x2633('0x55')][_0x2633('0x58')](_0x4addee['item'],_0x5c7553[_0x2633('0xf5')]);};_0x1e40b7[_0x2633('0x9b')]['for']('dataDowncast')[_0x2633('0x9a')](_0x585e29=>{_0x585e29['on']('addMarker:suggestion:formatBlock',(_0x4078bc,_0x33d536,_0x19c5d5)=>{_0x19c5d5[_0x2633('0x79')][_0x2633('0x59')]&&_0x75f875({'showActiveMarkers':!0x1})(_0x4078bc,_0x33d536,_0x19c5d5);},{'priority':'highest'});}),_0x1e40b7[_0x2633('0x9b')][_0x2633('0x54')]('dataDowncast')['markerToData']({'model':_0x2633('0x1c'),'view':(_0x144b57,_0x2b714b)=>_0x2b714b[_0x2633('0x79')]['showSuggestionHighlights']?null:{'group':_0x2633('0x1c'),'name':_0x144b57[_0x2633('0xe5')](0xb)}}),_0x1e40b7[_0x2633('0x9b')][_0x2633('0x54')](_0x2633('0xb4'))[_0x2633('0x47')]({'view':{'name':_0x2633('0x1c'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4568fe,{writer:_0x38b5bd})=>{let _0x30bafa='suggestion:'+_0x4568fe[_0x2633('0x138')](_0x2633('0xd8'))+':'+_0x4568fe[_0x2633('0x138')]('id');return _0x4568fe[_0x2633('0x138')](_0x2633('0x24'))&&(_0x30bafa+=':'+_0x4568fe[_0x2633('0x138')](_0x2633('0x24'))),_0x38b5bd['createElement'](_0x2633('0x45'),{'data-name':_0x30bafa});}}),_0x1e40b7['conversion'][_0x2633('0x54')]('upcast')['dataToMarker']({'view':_0x2633('0x1c')}),_0x1e40b7[_0x2633('0x9b')]['for']('editingDowncast')['add'](_0x5ea249=>{_0x5ea249['on']('addMarker:suggestion:formatBlock',_0x75f875(),{'priority':_0x2633('0x139')});}),_0x1e40b7[_0x2633('0x9b')][_0x2633('0x54')]('editingDowncast')[_0x2633('0x9a')](_0x4d4691=>{_0x4d4691['on'](_0x2633('0x9c'),(_0x4aac22,_0x538094,_0x4badd4)=>{const _0x4bba2e=_0x4badd4[_0x2633('0x4e')][_0x2633('0xa0')](_0x538094[_0x2633('0xd4')]);if(_0x4bba2e)for(const _0x47c412 of _0x4bba2e)_0x47c412[_0x2633('0xea')](_0x2633('0x124'))||(_0x4badd4[_0x2633('0x7a')]['removeClass']([_0x2633('0xb6'),_0x2633('0x26'),'ck-suggestion-marker--active'],_0x47c412),_0x4badd4[_0x2633('0x7a')][_0x2633('0x4a')]('data-suggestion',_0x47c412),_0x4badd4['mapper']['unbindElementFromMarkerName'](_0x47c412,_0x538094[_0x2633('0xd4')]));},{'priority':_0x2633('0x139')});}),_0x1e40b7[_0x2633('0xcd')][_0x2633('0xb3')][_0x2633('0x9f')](_0x136178=>{let _0x58949c=!0x1;const _0x47b149=Array[_0x2633('0x4')](_0x1e40b7[_0x2633('0xcd')][_0x2633('0xb3')]['differ'][_0x2633('0x22')]()),_0x32419e=new Set();for(const {name:_0x47e370,data:_0x50abde}of _0x47b149){const {group:_0x254876,type:_0x55ca56,id:_0x3f3bbf}=this[_0x2633('0x11e')](_0x47e370);if(_0x2633('0x1c')!==_0x254876)continue;const _0x3e6571=this[_0x2633('0xe3')][_0x2633('0x5a')](_0x3f3bbf);if(null!=_0x50abde[_0x2633('0x19')]){_0x2633('0x127')==_0x55ca56&&(_0x58949c=_0x58949c||Mt(_0x50abde[_0x2633('0x19')],_0x47e370,_0x136178,_0x1e40b7[_0x2633('0xcd')][_0x2633('0x32')]));if(_0x50abde[_0x2633('0x19')]['isCollapsed']||'$graveyard'==_0x50abde[_0x2633('0x19')]['root']['rootName']||_0x2633('0x48')==_0x55ca56&&!Nt(_0x50abde[_0x2633('0x19')])||'deletion'==_0x55ca56&&!(!_t(_0x5d670a=_0x50abde['newRange'])&&!function(_0x506e8e){return _0x506e8e[_0x2633('0xc0')][_0x2633('0xd5')]==_0x506e8e[_0x2633('0x130')][_0x2633('0x13')]&&_0x506e8e[_0x2633('0xc0')][_0x2633('0x8f')];}(_0x5d670a)))_0x136178[_0x2633('0xa4')](_0x47e370),_0x58949c=!0x0;else{if(!_0x3e6571||!_0x3e6571['isInContent'])continue;_0x32419e[_0x2633('0x9a')](_0x3e6571);}}}var _0x5d670a;return _0x32419e['size']>0x0&&(_0x58949c=!!this[_0x2633('0xb1')](_0x32419e)||_0x58949c),_0x58949c;}),_0x1e40b7[_0x2633('0xcd')][_0x2633('0xb3')][_0x2633('0x9f')](_0x26703a=>{let _0xa6d0d8=!0x1;for(const _0x5b59dd of _0x1e40b7[_0x2633('0xcd')][_0x2633('0xb3')][_0x2633('0x8e')][_0x2633('0x43')]()){if(_0x2633('0x44')!=_0x5b59dd[_0x2633('0xdd')])continue;const _0x4b23ea=_0x5b59dd[_0x2633('0x109')][_0x2633('0x82')](_0x5b59dd[_0x2633('0xcf')]);if(_0x4b23ea['isAtEnd'])for(const _0x369b2d of this[_0x2633('0xe3')][_0x2633('0x37')]()){if(_0x369b2d[_0x2633('0x11')]||!_0x369b2d[_0x2633('0x35')])continue;if(_0x2633('0x48')!=_0x369b2d['type'])continue;const _0x956b1b=_0x369b2d[_0x2633('0x66')]();if(_0x956b1b[_0x2633('0xc0')][_0x2633('0xd5')]!=_0x956b1b[_0x2633('0x130')][_0x2633('0xd5')]&&_0x956b1b['end']['isEqual'](_0x5b59dd['position'])){const _0x27c3bc=_0x1e40b7[_0x2633('0xcd')][_0x2633('0x81')](_0x956b1b[_0x2633('0xc0')],_0x4b23ea);_0x26703a['updateMarker'](_0x369b2d['getFirstMarker'](),{'range':_0x27c3bc}),_0xa6d0d8=!0x0;}}}return _0xa6d0d8;}),_0x1e40b7[_0x2633('0xcd')]['markers']['on'](_0x2633('0x1d'),(_0x29c960,_0x1db84f,_0x465d0c)=>{if(null==_0x465d0c){const {id:_0x481b22}=this[_0x2633('0x11e')](_0x1db84f[_0x2633('0xf5')]),_0x17d5d0=this['_suggestions'][_0x2633('0x5a')](_0x481b22);_0x17d5d0&&_0x17d5d0[_0x2633('0xbc')](_0x1db84f[_0x2633('0xf5')]);}}),_0x1e40b7[_0x2633('0xcd')][_0x2633('0xb3')]['on'](_0x2633('0xdf'),()=>{const _0x11d1a2=Array['from'](_0x1e40b7[_0x2633('0xcd')][_0x2633('0xb3')][_0x2633('0x8e')][_0x2633('0x22')]())['filter'](_0x54924a=>_0x2633('0x1c')===this['_splitMarkerName'](_0x54924a['name'])['group']);if(0x0===_0x11d1a2[_0x2633('0xcf')])return;_0x11d1a2[_0x2633('0x12f')]((_0x8a42ff,_0x35c20f)=>{const _0x59c373=_0x8a42ff['data'][_0x2633('0x6d')],_0x3090f9=_0x35c20f[_0x2633('0x10f')][_0x2633('0x6d')];return null===_0x59c373&&null===_0x3090f9?0x0:null===_0x59c373&&null!==_0x3090f9?-0x1:null!==_0x59c373&&null===_0x3090f9?0x1:_0x59c373[_0x2633('0xc0')][_0x2633('0xd6')](_0x3090f9[_0x2633('0xc0')])?-0x1:0x1;});const _0xed9543=new Set(),_0x2f00b2=new Set();for(const {name:_0x1ff228,data:_0x3aa4fc}of _0x11d1a2){const {id:_0x41fe2b}=this[_0x2633('0x11e')](_0x1ff228);if(null===_0x3aa4fc[_0x2633('0x6d')]){const _0x3cae6f=this[_0x2633('0xbb')](_0x1ff228);_0x2f00b2[_0x2633('0x9a')](_0x3cae6f);}else{const _0x4ec3b7=this['_suggestions'][_0x2633('0x5a')](_0x41fe2b);null!==_0x3aa4fc[_0x2633('0x19')]||_0x4ec3b7[_0x2633('0x35')]?(_0xed9543['add'](_0x4ec3b7[_0x2633('0xc2')]),_0x2f00b2['add'](_0x4ec3b7)):this['_removeSuggestion'](_0x4ec3b7);}}_0x2f00b2[_0x2633('0xe9')]>0x0&&this[_0x2633('0xda')](_0x2f00b2);for(const _0xbdfc58 of _0xed9543)this[_0x2633('0x135')](_0x2633('0x64'),_0xbdfc58);}),_0x1e40b7[_0x2633('0xcd')]['on'](_0x2633('0x100'),(_0x18acf7,_0x29078d)=>{const _0x22fcd6=_0x29078d[0x0];if(!this[_0x2633('0xe3')][_0x2633('0xe9')])return;if(!_0x22fcd6[_0x2633('0x98')])return;if(_0x22fcd6[_0x2633('0xe4')][_0x2633('0x2a')]||!_0x22fcd6[_0x2633('0xe4')][_0x2633('0x129')])return;let _0x459a87,_0x795dde;switch(_0x22fcd6[_0x2633('0xdd')]){case _0x2633('0x44'):_0x459a87=_0x1e40b7[_0x2633('0xcd')][_0x2633('0x14')](_0x22fcd6[_0x2633('0x109')]),_0x795dde=_0x459a87['getShiftedBy'](_0x22fcd6[_0x2633('0xf2')]);break;case'split':_0x459a87=_0x1e40b7[_0x2633('0xcd')][_0x2633('0x14')](_0x22fcd6[_0x2633('0x83')]),_0x795dde=_0x1e40b7[_0x2633('0xcd')][_0x2633('0x14')](_0x22fcd6[_0x2633('0x36')]);break;case'move':_0x459a87=_0x1e40b7['model'][_0x2633('0x14')](_0x22fcd6['targetPosition']),_0x795dde=_0x459a87[_0x2633('0x82')](_0x22fcd6['howMany']);break;default:return;}const _0x5bc37f=_0x1e40b7[_0x2633('0xcd')]['createRange'](_0x459a87,_0x795dde);_0x1e40b7['model']['change'](()=>{for(const {suggestion:_0x24644c,meta:_0x1f7a9f}of this[_0x2633('0xf8')](_0x5bc37f)){if(_0x24644c[_0x2633('0x11')])continue;if('formatInline'==_0x24644c[_0x2633('0xdd')])continue;const _0x7187c6=_0x24644c[_0x2633('0x10f')]&&_0x24644c['data'][_0x2633('0x12d')];('formatBlock'!=_0x24644c[_0x2633('0xdd')]||_0x2633('0x74')==_0x22fcd6[_0x2633('0xdd')]&&!_0x7187c6)&&(_0x1f7a9f[_0x2633('0x5e')]||_0x2633('0x3f')==_0x24644c[_0x2633('0xdd')]&&_0x1f7a9f[_0x2633('0xc')]||_0x24644c['getFirstRange']()[_0x2633('0xf4')](_0x5bc37f)&&this[_0x2633('0x10c')](_0x24644c,_0x459a87,_0x795dde));}});},{'priority':_0x2633('0x1')}),_0x1e40b7['model']['on'](_0x2633('0xf1'),(_0x5bec02,_0x58529b)=>{const _0xb1253e=_0x58529b[0x0],_0x2a26f2=_0x58529b[0x1];if(_0x2a26f2&&_0x2a26f2[_0x2633('0x6a')])return;if(this[_0x2633('0xd9')])return;if(!this[_0x2633('0xeb')][_0x2633('0x107')])return;if(_0xb1253e[_0x2633('0x105')])return;const _0x4f4c70=_0x1e40b7[_0x2633('0xcd')][_0x2633('0x32')],{start:_0x3531e0,end:_0x14c343}=_0xb1253e[_0x2633('0x66')](),_0x4b3482=_0x3531e0[_0x2633('0x3a')]&&_0x4f4c70[_0x2633('0x3c')](_0x3531e0[_0x2633('0x3a')])?null:_0x4f4c70['getNearestSelectionRange'](_0x3531e0,'forward'),_0x326b28=_0x14c343[_0x2633('0x13')]&&_0x4f4c70[_0x2633('0x3c')](_0x14c343[_0x2633('0x13')])?null:_0x4f4c70[_0x2633('0x49')](_0x14c343,_0x2633('0x91')),_0x483cac=_0x1e40b7['model']['createRange'](_0x4b3482?_0x4b3482[_0x2633('0xc0')]:_0x3531e0,_0x326b28?_0x326b28['end']:_0x14c343);_0x1e40b7['model'][_0x2633('0x65')](_0x18e6a5=>{this[_0x2633('0x13b')](_0x483cac);const _0x539c83=_0x1e40b7[_0x2633('0xcd')][_0x2633('0x32')]['getNearestSelectionRange'](_0x483cac[_0x2633('0xc0')]);_0xb1253e['is'](_0x2633('0x95'))?_0x18e6a5[_0x2633('0x6')](_0x539c83):_0xb1253e['setTo'](_0x539c83);}),_0x5bec02[_0x2633('0x63')]();},{'priority':_0x5c5177[_0x2633('0xaa')]+0xa}),_0x1e40b7[_0x2633('0xcd')]['on'](_0x2633('0x114'),(_0x40776f,_0x12cfab)=>{const _0x562952=_0x12cfab[_0x12cfab[_0x2633('0xcf')]-0x1];_0x562952&&_0x562952[_0x2633('0x6a')]||this[_0x2633('0xd9')]||this[_0x2633('0xeb')][_0x2633('0x107')]&&(_0x1e40b7[_0x2633('0xcd')][_0x2633('0x65')](()=>{let _0x189d4e=_0x1e40b7['model'][_0x2633('0x114')](_0x12cfab[0x0],_0x12cfab[0x1],_0x12cfab[0x2],{'forceDefaultExecution':!0x0});if(!_0x189d4e)return;_0x40776f[_0x2633('0x10d')]=_0x189d4e[_0x2633('0xad')]();const _0x14bdf2=_0x189d4e[_0x2633('0x130')][_0x2633('0x13')],_0x457f3b=_0x1e40b7[_0x2633('0xcd')][_0x2633('0x32')];_0x14bdf2&&_0x457f3b[_0x2633('0xe')](_0x14bdf2)&&!_0x457f3b[_0x2633('0xc3')](_0x14bdf2)&&(_0x189d4e=_0x1e40b7['model']['createRange'](_0x189d4e[_0x2633('0xc0')],_0x1e40b7[_0x2633('0xcd')][_0x2633('0x14')](_0x14bdf2,_0x2633('0x130')))),this[_0x2633('0x30')](_0x189d4e);}),_0x40776f[_0x2633('0x63')]());},{'priority':'high'}),this[_0x2633('0x134')][_0x2633('0xe2')]['add'](_0x2633('0x125'),this[_0x2633('0xeb')]),this[_0x2633('0xb2')](_0x2633('0x125'));const _0x13b687=new _0x4a7117(_0x1e40b7,this[_0x2633('0xe3')]);_0x1e40b7['commands'][_0x2633('0x9a')](_0x2633('0xc6'),_0x13b687),this['enableCommand'](_0x2633('0xc6'));const _0x1e7f36=new _0x4f3240(_0x1e40b7,this[_0x2633('0xe3')]);_0x1e40b7['commands'][_0x2633('0x9a')](_0x2633('0x5f'),_0x1e7f36),this['enableCommand'](_0x2633('0x5f')),_0x1e40b7['commands'][_0x2633('0x9a')](_0x2633('0x18'),new _0x44dabe(_0x1e40b7,_0x13b687,this[_0x2633('0xe3')])),this[_0x2633('0xb2')](_0x2633('0x18')),_0x1e40b7[_0x2633('0xe2')][_0x2633('0x9a')]('discardAllSuggestions',new _0x44dabe(_0x1e40b7,_0x1e7f36,this[_0x2633('0xe3')])),this[_0x2633('0xb2')](_0x2633('0xfc')),_0x1e40b7['commands'][_0x2633('0x9a')]('acceptSelectedSuggestions',new _0xe734d7(_0x1e40b7,_0x13b687,this[_0x2633('0xe3')])),this[_0x2633('0xb2')](_0x2633('0x71')),_0x1e40b7['commands']['add'](_0x2633('0x4d'),new _0xe734d7(_0x1e40b7,_0x1e7f36,this[_0x2633('0xe3')])),this[_0x2633('0xb2')](_0x2633('0x4d'));const _0x341c37=_0x1e40b7[_0x2633('0x2f')][_0x2633('0x5a')](_0x2633('0x39'));this[_0x2633('0xf7')](_0x341c37,_0x2633('0x12c'),(_0x26c080,{threadId:_0x180978})=>{const _0x2b714e=this[_0x2633('0xe3')][_0x2633('0x5a')](_0x180978);_0x2b714e&&_0x2b714e[_0x2633('0x11b')]&&0x1===_0x2b714e['commentThread'][_0x2633('0xcf')]&&this[_0x2633('0xbf')](_0x180978,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2633('0xf7')](_0x341c37,_0x2633('0x13d'),(_0x5b5c21,{threadId:_0x523965})=>{const _0x4b1d73=this['_suggestions'][_0x2633('0x5a')](_0x523965);_0x4b1d73&&_0x4b1d73[_0x2633('0x11b')]&&!_0x4b1d73['commentThread'][_0x2633('0xcf')]&&this[_0x2633('0xbf')](_0x523965,{'hasComments':!0x1});},{'priority':_0x2633('0xa2')});}set[_0x2633('0x2b')](_0x18928e){if(this[_0x2633('0x106')])throw new _0x44858c(_0x2633('0x8a'),this);this[_0x2633('0x106')]=_0x18928e;}get[_0x2633('0x2b')](){return this[_0x2633('0x106')];}['getSuggestions']({skipNotAttached:_0x1319d4=!0x1,toJSON:_0x147d18=!0x1}={}){const _0x2fb4aa=[];for(const _0x5eb814 of this[_0x2633('0xe3')]['values']())_0x1319d4&&!_0x5eb814[_0x2633('0x35')]||_0x2fb4aa[_0x2633('0x56')](_0x5eb814);return _0x147d18?_0x2fb4aa[_0x2633('0x8b')](_0x323518=>_0x323518['toJSON']()):_0x2fb4aa;}['getSuggestion'](_0x544618){const _0x204ac4=this['_suggestions'][_0x2633('0x5a')](_0x544618);if(!_0x204ac4)throw new _0x44858c(_0x2633('0xa5'),this);return _0x204ac4;}[_0x2633('0xd7')](_0x18ecbe){return this[_0x2633('0xe3')][_0x2633('0xf6')](_0x18ecbe);}[_0x2633('0x131')](_0xe66c39){const {authorId:_0x957ca2,id:_0x5130d4,attributes:_0x18bb66}=_0xe66c39,[_0x3e5ce3,_0x5437bc]=_0xe66c39[_0x2633('0xdd')][_0x2633('0x74')](':'),_0x3df6b8=this[_0x2633('0xe3')]['get'](_0x5130d4)||this[_0x2633('0xac')](_0x3e5ce3,_0x5437bc,_0x5130d4,_0x957ca2,_0x18bb66);if(this[_0x2633('0x9e')](_0x3df6b8),this[_0x2633('0x23')](_0x3df6b8,_0x3e5ce3,_0x5437bc||null,_0x957ca2),_0x3df6b8['createdAt']=_0xe66c39['createdAt'],_0x18bb66&&_0x18bb66[_0x2633('0x111')]){const _0x57b5a1=_0x18bb66[_0x2633('0x111')],_0x1f416a=this['_getExternalAuthor'](_0x57b5a1[_0x2633('0x33')]);_0x3df6b8['authoredAt']=_0x57b5a1['createdAt'],_0x3df6b8[_0x2633('0x46')]=_0x1f416a,_0x3df6b8[_0x2633('0x5c')]=!0x0;}else _0x3df6b8[_0x2633('0xba')]=_0xe66c39[_0x2633('0x50')];switch(_0xe66c39['data']&&(_0x3df6b8[_0x2633('0x10f')]=_0xe66c39[_0x2633('0x10f')]),_0xe66c39['attributes']&&(_0x3df6b8[_0x2633('0xc8')]=_0xe66c39['attributes']),this[_0x2633('0x106')]&&this[_0x2633('0x106')][_0x2633('0x51')]||(_0x3df6b8[_0x2633('0x12e')]=!0x0),this[_0x2633('0xc7')][_0x2633('0x5a')](_0x3df6b8)){case _0x2633('0xa6'):this['_suggestionState']['set'](_0x3df6b8,'dataReady');break;case _0x2633('0x122'):_0x3df6b8[_0x2633('0x35')]?(this[_0x2633('0xc7')]['set'](_0x3df6b8,_0x2633('0x27')),this[_0x2633('0x135')](_0x2633('0xf'),_0x3df6b8)):this['_suggestionState']['set'](_0x3df6b8,_0x2633('0x68'));}return _0x3df6b8;}['acceptSuggestion'](_0x49dbf3){this[_0x2633('0x6a')](()=>{this[_0x2633('0x134')][_0x2633('0xcd')][_0x2633('0x65')](()=>{for(const _0x54902d of _0x49dbf3[_0x2633('0xd0')]())_0x54902d[_0x2633('0x86')]();});});}[_0x2633('0x5f')](_0x1a0018){this[_0x2633('0x6a')](()=>{this[_0x2633('0x134')][_0x2633('0xcd')][_0x2633('0x65')](()=>{for(const _0x3acc48 of _0x1a0018[_0x2633('0xd0')]())_0x3acc48[_0x2633('0x69')]();});});}['enableCommand'](_0xec3797,_0x4c34ad){const _0x50c36e=this[_0x2633('0x134')][_0x2633('0xe2')]['get'](_0xec3797);if(!_0x50c36e)throw new _0x44858c(_0x2633('0x9'),this,{'commandName':_0xec3797});this[_0x2633('0x113')][_0x2633('0x9a')](_0x50c36e),_0x4c34ad&&_0x50c36e['on'](_0x2633('0x123'),(_0x34e20a,_0x2ce135)=>{this['trackChangesCommand']['value']&&(this[_0x2633('0xd9')]||_0x2ce135[_0x2633('0xcf')]>0x0&&_0x2ce135[_0x2ce135[_0x2633('0xcf')]-0x1]&&_0x2ce135[_0x2ce135['length']-0x1]['forceDefaultExecution']||(_0x4c34ad((..._0x5cc0fa)=>_0x50c36e['execute'](..._0x5cc0fa,{'forceDefaultExecution':!0x0}),..._0x2ce135),_0x34e20a[_0x2633('0x63')]()));},{'priority':_0x2633('0x139')});}[_0x2633('0x6a')](_0x1a48f8){let _0x36bffb,_0x2c3bc0;const _0x99ad6e=this['_isForcedDefaultExecutionBlock'];this[_0x2633('0xd9')]=!0x0;try{_0x36bffb=_0x1a48f8();}catch(_0x524157){_0x2c3bc0=_0x524157;}return _0x99ad6e||(this[_0x2633('0xd9')]=!0x1),_0x2c3bc0&&_0x44858c[_0x2633('0x6e')](_0x2c3bc0,this),_0x36bffb;}[_0x2633('0x30')](_0x3a1880,_0x15945a=null,_0x572a3f={}){if(_0x3a1880[_0x2633('0x105')])return null;const _0x184bb8=this[_0x2633('0x134')][_0x2633('0x2f')][_0x2633('0x5a')]('Users')['me'];for(const {suggestion:_0x113c77,meta:_0x5a3b09}of this[_0x2633('0xf8')](_0x3a1880,'insertion'))if(_0x5a3b09[_0x2633('0xc')]){if(!_0x5a3b09[_0x2633('0xfa')]){if(!this[_0x2633('0xbe')]&&_0x5a3b09[_0x2633('0x5e')])continue;return _0x113c77;}if(_0x15945a==_0x113c77['subType']){const _0x1a7842=_0x113c77['getFirstRange']();return _0x1a7842[_0x2633('0xc0')][_0x2633('0x116')](_0x3a1880['end'])?this[_0x2633('0x9d')](_0x113c77,this['_model']['createRange'](_0x3a1880[_0x2633('0xc0')],_0x1a7842[_0x2633('0x130')])):this[_0x2633('0x9d')](_0x113c77,this[_0x2633('0xf3')][_0x2633('0x81')](_0x1a7842[_0x2633('0xc0')],_0x3a1880['end'])),_0x113c77;}}const _0x3225c9=_0x482438(),_0x2627b2=_0x184bb8['id'],_0x1ef71e=_0x15945a?_0x2633('0x17')+_0x15945a:_0x2633('0x3f'),_0x2310f2=this[_0x2633('0x0')]({'id':_0x3225c9,'type':_0x1ef71e,'createdAt':new Date(),'authorId':_0x2627b2,'attributes':_0x572a3f});return this['_addSuggestionMarker'](_0x1ef71e,_0x3225c9,_0x2627b2,_0x3a1880),_0x2310f2;}[_0x2633('0x21')](_0x33714b,_0x31f82a=_0x2633('0xb'),_0x19cb42={}){const _0x4227cc=this[_0x2633('0x134')][_0x2633('0x2f')][_0x2633('0x5a')](_0x2633('0x53'))['me'],_0x2b566e=this[_0x2633('0xdc')]['getSuggestionCallback'](_0x2633('0x3f'),_0x31f82a,_0x2633('0x115'));for(const _0x1191bc of this[_0x2633('0xa')]())if(_0x1191bc['author']['id']==_0x4227cc['id']&&_0x2633('0x3f')==_0x1191bc[_0x2633('0xdd')]&&_0x1191bc[_0x2633('0x5d')]==_0x31f82a&&(_0x2b566e(_0x1191bc['getRanges'](),_0x33714b)||_0x2b566e(_0x33714b,_0x1191bc[_0x2633('0x4b')]()))){for(const _0x158c35 of _0x33714b)_0x1191bc[_0x2633('0x3b')](_0x158c35);return _0x1191bc;}if(this[_0x2633('0xbe')])for(const _0x3ff2f8 of _0x33714b)for(const {suggestion:_0x411d98,meta:_0x2a74de}of this[_0x2633('0xf8')](_0x3ff2f8,'insertion')){if(!_0x2a74de[_0x2633('0xc')])continue;let _0x2d1fef=!0x0;for(const _0x1808a8 of _0x411d98[_0x2633('0x4b')]())for(const _0xef6027 of _0x33714b)if(!_0x1808a8[_0x2633('0xf4')](_0xef6027)){_0x2d1fef=!0x1;break;}if(_0x2d1fef)return _0x411d98;}const _0x4443b9=_0x482438(),_0x3ddb36=_0x4227cc['id'],_0x443e51=_0x2633('0x17')+_0x31f82a,_0x4bd6c4=this[_0x2633('0x0')]({'id':_0x4443b9,'type':_0x443e51,'createdAt':new Date(),'authorId':_0x3ddb36,'attributes':_0x19cb42});for(const _0x4aecee of _0x33714b)this[_0x2633('0x61')](_0x443e51,_0x4443b9,_0x3ddb36,_0x4aecee,_0x33877d['getMultiRangeId']());return _0x4bd6c4;}[_0x2633('0xae')](_0x17f5b4,_0x4cd00f,_0x6d3295=null,_0x407886={}){if(_0x6d3295=_0x6d3295||$t(_0x4cd00f),_0x17f5b4[_0x2633('0x105')])return null;if('never'===this[_0x2633('0x89')]){const _0x85698e=this[_0x2633('0xdc')][_0x2633('0x77')](_0x2633('0x127'),_0x6d3295,_0x2633('0x86'));return this['forceDefaultExecution'](()=>_0x85698e([_0x17f5b4],_0x4cd00f,_0x407886)),null;}const _0x1cbeca=this[_0x2633('0x134')][_0x2633('0x2f')][_0x2633('0x5a')](_0x2633('0x53'))['me'],_0x7b2ccb=[];if(_0x2633('0x41')!==this[_0x2633('0x89')])for(const {suggestion:_0x26b904,meta:_0x330007}of this['_findSuggestions'](_0x17f5b4,_0x2633('0x3f')))_0x330007[_0x2633('0xc')]&&!_0x330007['isInsideObject']&&_0x7b2ccb[_0x2633('0x56')](..._0x26b904['getRanges']());const _0x27f04e=function(_0x451916,_0x4b9261){const _0x59a566=[];for(const _0x5a15b2 of _0x4b9261){const _0x261ffa=_0x451916[_0x2633('0x13c')](_0x5a15b2);_0x261ffa&&_0x59a566[_0x2633('0x56')](_0x261ffa);}return _0x59a566;}(_0x17f5b4,_0x7b2ccb),_0x5c96f7=function(_0x449997,_0x3d8092){const _0x3d3610=[_0x449997];for(const _0x3a43be of _0x3d8092){let _0x1b8db3=0x0;for(;_0x1b8db3<_0x3d3610['length'];){const _0x3fbdd5=_0x3d3610[_0x1b8db3]['getDifference'](_0x3a43be);_0x3d3610[_0x2633('0x7e')](_0x1b8db3,0x1,..._0x3fbdd5),_0x1b8db3+=_0x3fbdd5[_0x2633('0xcf')];}}return _0x3d3610;}(_0x17f5b4,_0x7b2ccb);_0x27f04e[_0x2633('0xcf')]&&this['_model'][_0x2633('0x65')](()=>{for(const _0x1c0ea2 of _0x27f04e){const _0x4e64b8=this['_suggestionFactory'][_0x2633('0x77')]('formatInline',_0x6d3295,_0x2633('0x86'));this[_0x2633('0x6a')](()=>_0x4e64b8([_0x1c0ea2],_0x4cd00f,_0x407886));}});for(const _0x11a0c1 of _0x5c96f7){let _0x39eda6=null,_0x3a2a40=_0x11a0c1['start'],_0x4f383b=_0x11a0c1[_0x2633('0x130')];for(const {suggestion:_0xbc22cc,meta:_0x2655c1}of this['_findSuggestions'](_0x11a0c1,_0x2633('0x127'))){if(!_0x2655c1['isOwn'])continue;if(_0xbc22cc[_0x2633('0x5d')]!=_0x6d3295)continue;const _0x2731af=_0xbc22cc[_0x2633('0x66')]();if(_0x2731af[_0x2633('0xf4')](_0x11a0c1,!0x0))return null;_0x3a2a40=_0x3a2a40[_0x2633('0xd6')](_0x2731af[_0x2633('0xc0')])?_0x3a2a40:_0x2731af[_0x2633('0xc0')],_0x4f383b=_0x4f383b[_0x2633('0x78')](_0x2731af[_0x2633('0x130')])?_0x4f383b:_0x2731af[_0x2633('0x130')],_0x39eda6?_0x2731af['start'][_0x2633('0xd6')](_0x39eda6[_0x2633('0x66')]()[_0x2633('0xc0')])?(_0x39eda6[_0x2633('0x2c')](),_0x39eda6=_0xbc22cc):_0xbc22cc[_0x2633('0x2c')]():_0x39eda6=_0xbc22cc;}const _0x41be7e=this['_model']['createRange'](_0x3a2a40,_0x4f383b);if(_0x39eda6)this[_0x2633('0x9d')](_0x39eda6,_0x41be7e);else{const _0x5a70f6=_0x482438(),_0x1d5b41=_0x1cbeca['id'];this[_0x2633('0x0')]({'id':_0x5a70f6,'type':_0x2633('0xbd')+_0x6d3295,'data':_0x4cd00f,'createdAt':new Date(),'authorId':_0x1d5b41,'attributes':_0x407886}),this[_0x2633('0x61')](_0x2633('0xbd')+_0x6d3295,_0x5a70f6,_0x1d5b41,_0x41be7e);}}return null;}['markBlockFormat'](_0x67319a,_0x342b17,_0x3b0045=[],_0x170fc2=null,_0x5b411b={}){_0x342b17[_0x2633('0xf9')]||(_0x342b17[_0x2633('0xf9')]=_0x342b17[_0x2633('0xaf')]),_0x342b17[_0x2633('0x12d')]=_0x67319a['is']('range'),_0x170fc2=_0x170fc2||$t(_0x342b17);const _0xe59540=_0x3b0045[_0x2633('0x8b')](_0x3ac931=>Rt(_0x3ac931,this['_model'])),_0x129ae4=_0x67319a['is'](_0x2633('0x15'))?_0x67319a:Rt(_0x67319a,this[_0x2633('0xf3')]);if('never'===this[_0x2633('0x89')]){const _0x5ae364=this[_0x2633('0xdc')][_0x2633('0x77')](_0x2633('0x48'),_0x170fc2,_0x2633('0x86'));return this[_0x2633('0x6a')](()=>_0x5ae364([_0x129ae4],_0x342b17,_0x5b411b)),null;}_0xe59540[_0x2633('0x56')](_0x129ae4);let _0xffda2e=!0x0;for(const _0x231851 of _0xe59540)if(!this[_0x2633('0x34')](_0x231851)){_0xffda2e=!0x1;break;}if(_0xffda2e&&_0x2633('0x41')!==this[_0x2633('0x89')]){const _0x4a2a24=this[_0x2633('0xdc')]['getSuggestionCallback'](_0x2633('0x48'),_0x170fc2,_0x2633('0x86'));return this[_0x2633('0x6a')](()=>_0x4a2a24([_0x129ae4],_0x342b17,_0x5b411b)),null;}let _0x2fa241=null,_0x583ab7=_0x129ae4[_0x2633('0xc0')],_0x23375c=_0x129ae4[_0x2633('0x130')];for(const {suggestion:_0x589201,meta:_0x2401fa}of this[_0x2633('0xf8')](_0x129ae4,_0x2633('0x48'))){if(!_0x2401fa[_0x2633('0xc')]||_0x2401fa[_0x2633('0xfa')]||_0x2401fa[_0x2633('0x5e')]||_0x2401fa[_0x2633('0x11c')])continue;if(_0x589201[_0x2633('0x10f')][_0x2633('0xf9')]!=_0x342b17['formatGroupId'])continue;const _0x3a0517=_0x589201[_0x2633('0x66')]();if(_0x589201[_0x2633('0x5d')]==_0x170fc2){if(_0x3a0517[_0x2633('0xf4')](_0x129ae4,!0x0))return null;_0x583ab7=_0x583ab7['isBefore'](_0x3a0517[_0x2633('0xc0')])?_0x583ab7:_0x3a0517[_0x2633('0xc0')],_0x23375c=_0x23375c[_0x2633('0x78')](_0x3a0517[_0x2633('0x130')])?_0x23375c:_0x3a0517['end'],_0x2fa241?_0x3a0517[_0x2633('0xc0')][_0x2633('0xd6')](_0x2fa241[_0x2633('0x66')]()['start'])?(_0x2fa241['removeMarkers'](),_0x2fa241=_0x589201):_0x589201['removeMarkers']():_0x2fa241=_0x589201;}else{const _0x2a7438=_0x129ae4[_0x2633('0x13c')](_0x3a0517);this[_0x2633('0x1a')](_0x589201,_0x2a7438);}}const _0x53f3af=this['editor'][_0x2633('0x2f')][_0x2633('0x5a')]('Users')['me'],_0xc82390=_0x482438(),_0x40f8ea=_0x53f3af['id'];if(_0x2fa241)return this[_0x2633('0x9d')](_0x2fa241,this[_0x2633('0xf3')][_0x2633('0x81')](_0x583ab7,_0x23375c)),_0x2fa241;{const _0x42a837=this[_0x2633('0x0')]({'id':_0xc82390,'type':_0x2633('0x57')+_0x170fc2,'data':_0x342b17,'createdAt':new Date(),'authorId':_0x40f8ea,'attributes':_0x5b411b});return this[_0x2633('0x61')](_0x2633('0x57')+_0x170fc2,_0xc82390,_0x40f8ea,this[_0x2633('0xf3')][_0x2633('0x81')](_0x583ab7,_0x23375c)),_0x42a837;}}['markMultiRangeBlockFormat'](_0x52ab22,_0x19908d,_0x5df608=[],_0x238b50=null,_0x3d518b={}){_0x19908d[_0x2633('0xf9')]||(_0x19908d['formatGroupId']=_0x19908d['commandName']);const _0x5a3add=_0x52ab22[0x0];_0x19908d[_0x2633('0x12d')]=_0x5a3add['is']('range'),_0x238b50=_0x238b50||$t(_0x19908d);const _0x494fbe=_0x5df608['map'](_0x5764c7=>Rt(_0x5764c7,this['_model'])),_0x3c3a50=_0x5a3add['is'](_0x2633('0x15'))?_0x52ab22:_0x52ab22['map'](_0x261fc6=>Rt(_0x261fc6,this[_0x2633('0xf3')]));if(_0x2633('0x8c')===this[_0x2633('0x89')]){const _0x4b3b36=this[_0x2633('0xdc')][_0x2633('0x77')]('formatBlock',_0x238b50,_0x2633('0x86'));return this[_0x2633('0x6a')](()=>_0x4b3b36(_0x3c3a50,_0x19908d,_0x3d518b)),null;}_0x494fbe[_0x2633('0x56')](..._0x3c3a50);let _0x4a8f1a=!0x0;for(const _0x2179fa of _0x494fbe)if(!this['_rangeIsInLocalUserInsertion'](_0x2179fa)){_0x4a8f1a=!0x1;break;}if(_0x4a8f1a&&_0x2633('0x41')!==this[_0x2633('0x89')]){const _0x4bb0ab=this[_0x2633('0xdc')][_0x2633('0x77')]('formatBlock',_0x238b50,_0x2633('0x86'));return this[_0x2633('0x6a')](()=>_0x4bb0ab(_0x3c3a50,_0x19908d,_0x3d518b)),null;}const _0x136fdb=this['editor'][_0x2633('0x2f')]['get']('Users')['me'];for(const _0x772527 of this['getSuggestions']()){if(_0x772527['author']['id']!=_0x136fdb['id'])continue;if(_0x2633('0x48')!=_0x772527[_0x2633('0xdd')]||_0x772527[_0x2633('0x10f')][_0x2633('0xf9')]!=_0x19908d['formatGroupId'])continue;const _0x629656=_0x772527[_0x2633('0x5d')]==_0x238b50;for(let _0x2ce214=0x0;_0x2ce214<_0x3c3a50['length'];_0x2ce214++){const _0x511f5a=_0x3c3a50[_0x2ce214];for(const _0x51c511 of _0x772527[_0x2633('0x101')]()){const _0x5d64db=_0x51c511[_0x2633('0x40')]();if(_0x511f5a['isEqual'](_0x5d64db)){_0x629656?(_0x3c3a50[_0x2633('0x7e')](_0x2ce214,0x1),_0x2ce214--):_0x772527[_0x2633('0xa4')](_0x51c511[_0x2633('0xf5')]);break;}}}}if(0x0==_0x3c3a50['length'])return null;const _0x2b5949=this[_0x2633('0xdc')]['getSuggestionCallback'](_0x2633('0x48'),_0x238b50,_0x2633('0x115'));for(const _0x58d039 of this[_0x2633('0xa')]())if(_0x58d039[_0x2633('0x46')]['id']==_0x136fdb['id']&&_0x2633('0x48')==_0x58d039[_0x2633('0xdd')]&&_0x58d039[_0x2633('0x10f')][_0x2633('0xf9')]==_0x19908d[_0x2633('0xf9')]&&_0x58d039[_0x2633('0x5d')]==_0x238b50&&(_0x2b5949(_0x58d039['getRanges'](),_0x3c3a50)||_0x2b5949(_0x3c3a50,_0x58d039[_0x2633('0x4b')]()))){for(const _0x401e14 of _0x3c3a50)_0x58d039['addRange'](_0x401e14);return _0x58d039;}const _0x3c4037=_0x482438(),_0x13b4c3=_0x136fdb['id'],_0x48906b=_0x2633('0x57')+_0x238b50,_0x4e9593=this['_setSuggestionData']({'id':_0x3c4037,'type':_0x48906b,'data':_0x19908d,'createdAt':new Date(),'authorId':_0x13b4c3,'attributes':_0x3d518b});for(const _0x4a8dbc of _0x3c3a50)this[_0x2633('0x61')](_0x48906b,_0x3c4037,_0x13b4c3,_0x4a8dbc,_0x33877d[_0x2633('0xef')]());return _0x4e9593;}[_0x2633('0x13b')](_0x48dd01,_0x457953=null,_0x1881d4={}){if(_0x48dd01[_0x2633('0x105')])return null;const _0x109099=this[_0x2633('0x134')][_0x2633('0x2f')][_0x2633('0x5a')](_0x2633('0x53'))['me'],_0x41f621=new _0x3ad8e1(_0x48dd01[_0x2633('0xc0')],_0x48dd01[_0x2633('0x130')]);for(const {suggestion:_0x4a24b8,meta:_0x579739}of this[_0x2633('0xf8')](_0x41f621,'insertion'))if(_0x579739[_0x2633('0xc')]&&!_0x579739[_0x2633('0xfa')]){if(_0x4a24b8[_0x2633('0x11')]){const _0x201b61=_0x4a24b8[_0x2633('0x4b')]()[_0x2633('0x92')](_0x11131f=>'$graveyard'!=_0x11131f[_0x2633('0x118')][_0x2633('0xe0')]);_0x201b61[_0x2633('0x97')](_0x38f7f8=>_0x41f621[_0x2633('0xf4')](_0x38f7f8,!0x0))&&_0x4a24b8[_0x2633('0x69')]();if(_0x201b61[_0x2633('0xcb')](_0x4a1859=>_0x4a1859[_0x2633('0xf4')](_0x41f621,!0x0))){const _0x27cd70=this[_0x2633('0xdc')][_0x2633('0x77')](_0x2633('0x7'),_0x457953,_0x2633('0x86'));return this['forceDefaultExecution'](()=>_0x27cd70([_0x41f621],null,_0x1881d4)),null;}}else{const _0x30cbc8=_0x41f621[_0x2633('0x13c')](_0x4a24b8[_0x2633('0x66')]());null!==_0x30cbc8&&_0x4a24b8['_onDiscard']([_0x30cbc8],null,_0x1881d4);}}if(_0x41f621[_0x2633('0x112')](),_0x41f621[_0x2633('0x105')]||_0x2633('0x67')==_0x41f621['root'][_0x2633('0xe0')])return null;let _0x1c66c0=null,_0x521398=_0x41f621[_0x2633('0xc0')],_0x53d0d7=_0x41f621['end'];for(const {suggestion:_0x365f41,meta:_0x4fbb73}of this['_findSuggestions'](_0x41f621,'deletion'))if(_0x4fbb73[_0x2633('0xc')]){if(_0x365f41['isMultiRange']&&this[_0x2633('0xbe')]){let _0x88e68c=!0x0;for(const _0xee7043 of _0x365f41['getRanges']()){if(_0xee7043[_0x2633('0xf4')](_0x41f621,!0x0))return _0x365f41;_0x41f621[_0x2633('0xf4')](_0xee7043)||(_0x88e68c=!0x1);}_0x88e68c&&_0x365f41[_0x2633('0x69')]();}else{const _0x4fec5f=_0x365f41['getFirstRange']();if(_0x4fec5f[_0x2633('0xf4')](_0x41f621,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4fbb73[_0x2633('0x5e')])continue;return _0x365f41;}_0x521398=_0x521398[_0x2633('0xd6')](_0x4fec5f[_0x2633('0xc0')])?_0x521398:_0x4fec5f[_0x2633('0xc0')],_0x53d0d7=_0x53d0d7[_0x2633('0x78')](_0x4fec5f[_0x2633('0x130')])?_0x53d0d7:_0x4fec5f[_0x2633('0x130')],_0x1c66c0?_0x4fec5f[_0x2633('0xc0')][_0x2633('0xd6')](_0x1c66c0[_0x2633('0x66')]()['start'])?(_0x1c66c0[_0x2633('0x2c')](),_0x1c66c0=_0x365f41):_0x365f41['removeMarkers']():_0x1c66c0=_0x365f41;}}if(_0x1c66c0)return this[_0x2633('0x9d')](_0x1c66c0,this[_0x2633('0xf3')]['createRange'](_0x521398,_0x53d0d7)),_0x1c66c0;{const _0x5b4765=_0x482438(),_0x2caf6c=this[_0x2633('0xf3')][_0x2633('0x81')](_0x521398,_0x53d0d7),_0x52a37d=_0x109099['id'],_0x4b864a=_0x457953?_0x2633('0xa7')+_0x457953:_0x2633('0x7'),_0x20d306=this[_0x2633('0x0')]({'id':_0x5b4765,'type':_0x4b864a,'createdAt':new Date(),'authorId':_0x52a37d,'attributes':_0x1881d4});return this['_addSuggestionMarker'](_0x4b864a,_0x5b4765,_0x52a37d,_0x2caf6c),_0x20d306;}}[_0x2633('0xde')](_0x58afa1,_0x542233=_0x2633('0xb'),_0x17b499={}){const _0x2c1b25=this[_0x2633('0x134')]['plugins'][_0x2633('0x5a')](_0x2633('0x53'))['me'],_0x3a1af1=_0x58afa1[_0x2633('0x8b')](_0x27a044=>new _0x3ad8e1(_0x27a044['start'],_0x27a044[_0x2633('0x130')])),_0x1d8d04=new Set();for(const _0x520234 of _0x3a1af1)for(const {suggestion:_0x3d0697,meta:_0x38a9fd}of this[_0x2633('0xf8')](_0x520234,_0x2633('0x3f')))_0x38a9fd[_0x2633('0xc')]&&!_0x38a9fd['isNextTo']&&_0x1d8d04[_0x2633('0x9a')](_0x3d0697);for(const _0x473ef9 of _0x1d8d04)if(_0x473ef9['isMultiRange']){const _0x404027=_0x473ef9[_0x2633('0x4b')]();(!_0x473ef9['attributes']||!_0x473ef9[_0x2633('0xc8')]['skipNestingCheck'])&&(_0x404027[_0x2633('0x97')](_0x12e62b=>_0x3a1af1['some'](_0x39bc70=>_0x39bc70[_0x2633('0xf4')](_0x12e62b,!0x0)))&&_0x473ef9[_0x2633('0x69')]());if(_0x3a1af1[_0x2633('0x97')](_0x4ee8ed=>_0x404027[_0x2633('0xcb')](_0x55a2bd=>_0x55a2bd[_0x2633('0xf4')](_0x4ee8ed,!0x0)))){const _0x3bed8d=this['_suggestionFactory'][_0x2633('0x77')](_0x2633('0x7'),_0x542233,_0x2633('0x86'));return this['forceDefaultExecution'](()=>_0x3bed8d(_0x58afa1,null,_0x17b499)),null;}}else{const _0x5eb113=_0x473ef9[_0x2633('0x66')]();_0x3a1af1[_0x2633('0xcb')](_0x5d313a=>_0x5d313a['containsRange'](_0x5eb113,!0x0))&&_0x473ef9['discard']();if(_0x3a1af1[_0x2633('0x97')](_0x367481=>_0x5eb113[_0x2633('0xf4')](_0x367481,!0x0))){const _0x1c837f=this[_0x2633('0xdc')][_0x2633('0x77')]('deletion',_0x542233,_0x2633('0x86'));return this[_0x2633('0x6a')](()=>_0x1c837f(_0x3a1af1,null,_0x17b499)),null;}}const _0x39f93b=this['_suggestionFactory']['getSuggestionCallback'](_0x2633('0x7'),_0x542233,_0x2633('0x115'));let _0x3b219b=null;for(const _0x2fa788 of this[_0x2633('0xa')]())if(_0x2fa788['author']['id']==_0x2c1b25['id']&&_0x2fa788[_0x2633('0x35')]&&_0x2633('0x7')==_0x2fa788['type']&&_0x2fa788[_0x2633('0x5d')]==_0x542233&&(_0x39f93b(_0x2fa788[_0x2633('0x4b')](),_0x3a1af1)||_0x39f93b(_0x3a1af1,_0x2fa788[_0x2633('0x4b')]()))){if(_0x3b219b){if(_0x2fa788[_0x2633('0x11b')]&&_0x2fa788[_0x2633('0x11b')][_0x2633('0xcf')])continue;for(const _0x4c5a01 of _0x2fa788[_0x2633('0x4b')]())_0x3b219b[_0x2633('0x16')](_0x4c5a01)||_0x3b219b[_0x2633('0x3b')](_0x4c5a01);_0x2fa788[_0x2633('0x2c')]();}else{_0x3b219b=_0x2fa788;for(const _0x28d5fc of _0x3a1af1)_0x2fa788['isIntersectingWithRange'](_0x28d5fc)||_0x2fa788[_0x2633('0x3b')](_0x28d5fc);}}if(_0x3b219b)return _0x3b219b;_0x1d8d04[_0x2633('0xd')]();for(const _0x2dbd3d of _0x3a1af1)for(const {suggestion:_0x422bb1,meta:_0x15651e}of this[_0x2633('0xf8')](_0x2dbd3d,_0x2633('0x7')))_0x15651e[_0x2633('0xc')]&&_0x1d8d04[_0x2633('0x9a')](_0x422bb1);for(const _0x4d0c8d of _0x1d8d04){const _0x3c0ded=_0x4d0c8d[_0x2633('0x4b')]();if(!_0x17b499||!_0x17b499[_0x2633('0x119')]){if(_0x3a1af1[_0x2633('0x97')](_0x532c58=>_0x3c0ded[_0x2633('0xcb')](_0x3d0d2a=>_0x3d0d2a['containsRange'](_0x532c58,!0x0))))return _0x4d0c8d;}(!_0x4d0c8d['attributes']||!_0x4d0c8d[_0x2633('0xc8')]['skipNestingCheck'])&&(_0x3c0ded[_0x2633('0x97')](_0x5e5e11=>_0x3a1af1['some'](_0x1c004b=>_0x1c004b[_0x2633('0xf4')](_0x5e5e11,!0x0)))&&_0x4d0c8d['discard']());}const _0xe368ac=_0x482438(),_0x3bfb1e=_0x2c1b25['id'],_0x71291d=_0x2633('0xa7')+_0x542233,_0x273e72=this[_0x2633('0x0')]({'id':_0xe368ac,'type':_0x71291d,'createdAt':new Date(),'authorId':_0x3bfb1e,'attributes':_0x17b499});for(const _0x5620e1 of _0x3a1af1)_0x5620e1[_0x2633('0x112')](),_0x5620e1[_0x2633('0x105')]||_0x2633('0x67')==_0x5620e1[_0x2633('0x118')][_0x2633('0xe0')]||this[_0x2633('0x61')](_0x71291d,_0xe368ac,_0x3bfb1e,_0x5620e1,_0x33877d[_0x2633('0xef')]());return _0x273e72;}[_0x2633('0x9d')](_0x16dc9c,_0xa349f6){const _0x27a76f=_0x16dc9c['getFirstMarker']();this['_model'][_0x2633('0x65')](_0x2346d2=>{_0x2346d2['updateMarker'](_0x27a76f,{'range':_0xa349f6});});}[_0x2633('0x9e')](_0x41e743){const _0x2c8797=_0x41e743['id'],_0x476aab=this[_0x2633('0x134')][_0x2633('0x12')]['get'](_0x2633('0x7c'));this[_0x2633('0x80')][_0x2633('0x11d')](_0x2c8797)||this[_0x2633('0x80')][_0x2633('0x6c')]({'channelId':_0x476aab,'threadId':_0x2c8797,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15cac2=this[_0x2633('0x80')][_0x2633('0xc4')](_0x2c8797);_0x15cac2[_0x2633('0x137')](_0x2633('0x12b')),_0x15cac2['isRemovable']=!0x1,_0x41e743['commentThread']=_0x15cac2;}[_0x2633('0x23')](_0x2cd153,_0x2bab0b,_0x3be2ca,_0x560521){if(_0x2cd153['type']!=_0x2bab0b||_0x2cd153[_0x2633('0x5d')]!=_0x3be2ca||_0x2cd153['creator']['id']!=_0x560521)throw this[_0x2633('0x134')]['enableReadOnlyMode'](_0x2633('0xc1')),new _0x44858c(_0x2633('0xc1'),this);}[_0x2633('0x1a')](_0x410bd9,_0x4747dd){const _0x5b8641=_0x410bd9[_0x2633('0x66')]();if(_0x4747dd[_0x2633('0x116')](_0x5b8641))_0x410bd9[_0x2633('0x2c')]();else{if(_0x5b8641[_0x2633('0xf4')](_0x4747dd)){const _0x56cbcb=this[_0x2633('0xf3')][_0x2633('0x14')](_0x4747dd[_0x2633('0xc0')][_0x2633('0x13')],_0x2633('0x130'));this[_0x2633('0x9d')](_0x410bd9,this[_0x2633('0xf3')][_0x2633('0x81')](_0x5b8641['start'],_0x56cbcb));const _0x162705=_0x482438(),_0x36dcb9=_0x410bd9['creator']['id'],_0x5973e1=_0x410bd9['type']+':'+_0x410bd9[_0x2633('0x5d')];this[_0x2633('0x0')]({'id':_0x162705,'type':_0x5973e1,'createdAt':new Date(),'authorId':_0x36dcb9,'data':_0x410bd9[_0x2633('0x10f')],'attributes':_0x410bd9[_0x2633('0xc8')]});const _0x1cff32=this[_0x2633('0xf3')][_0x2633('0x14')](_0x4747dd[_0x2633('0x130')][_0x2633('0xd5')],_0x2633('0x29')),_0x221907=this[_0x2633('0xf3')][_0x2633('0x81')](_0x1cff32,_0x5b8641['end']);this[_0x2633('0x61')](_0x5973e1,_0x162705,_0x36dcb9,_0x221907);}else{if(_0x5b8641[_0x2633('0xee')](_0x4747dd[_0x2633('0xc0')])){const _0x18c83f=this[_0x2633('0xf3')]['createPositionAt'](_0x4747dd[_0x2633('0xc0')][_0x2633('0x13')],_0x2633('0x130'));this[_0x2633('0x9d')](_0x410bd9,this['_model']['createRange'](_0x5b8641[_0x2633('0xc0')],_0x18c83f));}else{const _0x240c34=this[_0x2633('0xf3')][_0x2633('0x14')](_0x4747dd[_0x2633('0x130')]['parent'],_0x2633('0x29'));this[_0x2633('0x9d')](_0x410bd9,this['_model'][_0x2633('0x81')](_0x240c34,_0x5b8641['end']));}}}}[_0x2633('0x34')](_0x33f5ce){for(const {suggestion:_0x59e50a,meta:_0x10f985}of this[_0x2633('0xf8')](_0x33f5ce,_0x2633('0x3f'))){if(!_0x10f985[_0x2633('0xc')])continue;const _0x54bb11=_0x59e50a[_0x2633('0x4b')]();for(const _0x156e1c of _0x54bb11)if(!_0x33f5ce[_0x2633('0x4f')](_0x156e1c)['length'])return!0x0;}return!0x1;}[_0x2633('0x108')](_0x18a0fd){const _0x589ebb=this[_0x2633('0x134')][_0x2633('0x2f')]['get'](_0x2633('0x53'))[_0x2633('0x70')](_0x18a0fd);if(!_0x589ebb)throw new _0x44858c(_0x2633('0x75'),this);return _0x589ebb;}[_0x2633('0x120')](_0x5ddd29){const _0x4fb0d7=this[_0x2633('0x134')][_0x2633('0x2f')][_0x2633('0x5a')]('Users'),_0x54522c=_0x221542(_0x2633('0x104')+_0x5ddd29),_0x20265b=_0x4fb0d7[_0x2633('0x70')](_0x54522c);return _0x20265b||_0x4fb0d7[_0x2633('0x136')]({'id':_0x54522c,'name':_0x5ddd29});}['_createSuggestion'](_0x5cebc2,_0x121110,_0x398cbe,_0x4e8c5d,_0x1279d6){const _0x370d8=this[_0x2633('0x108')](_0x4e8c5d),_0x2e9fc2=this[_0x2633('0xdc')][_0x2633('0xd3')](_0x5cebc2,_0x121110,_0x398cbe,_0x370d8,_0x1279d6,_0x46791f=>this[_0x2633('0xbf')](_0x398cbe,{'attributes':_0x46791f}));return this[_0x2633('0xf7')](_0x2e9fc2,_0x2633('0x86'),()=>{this[_0x2633('0xbf')](_0x398cbe,{'state':'accepted'});},{'priority':_0x2633('0x139')}),this[_0x2633('0xf7')](_0x2e9fc2,_0x2633('0x69'),()=>{this['_updateSuggestionData'](_0x398cbe,{'state':_0x2633('0x2e')});},{'priority':_0x2633('0x139')}),this['_suggestions'][_0x2633('0x10e')](_0x398cbe,_0x2e9fc2),this[_0x2633('0xc7')]['set'](_0x2e9fc2,'notReady'),_0x2e9fc2;}[_0x2633('0x11e')](_0x2ff859){const _0x30db57=_0x2ff859[_0x2633('0x74')](':');return{'group':_0x30db57[0x0],'type':_0x30db57[0x1],'subType':_0x30db57['length']>=0x5?_0x30db57[0x2]:null,'id':_0x30db57[_0x2633('0xcf')]<0x5?_0x30db57[0x2]:_0x30db57[0x3],'authorId':_0x30db57[_0x2633('0xcf')]<0x5?_0x30db57[0x3]:_0x30db57[0x4],'markerCount':0x6==_0x30db57[_0x2633('0xcf')]?_0x30db57[0x5]:null};}[_0x2633('0x10c')](_0x5cdaca,_0x5776bc,_0x77cd31){const _0x19a074=_0x5cdaca[_0x2633('0x66')](),_0x59a921=_0x19a074[_0x2633('0xc0')],_0x5064bc=_0x19a074['end'];this['_setSuggestionRange'](_0x5cdaca,this['_model'][_0x2633('0x81')](_0x59a921,_0x5776bc));const _0x104499=_0x482438(),_0x14432f=_0x5cdaca[_0x2633('0x11a')]['id'],_0x804f9a=_0x5cdaca[_0x2633('0xdd')]+(_0x5cdaca[_0x2633('0x5d')]?':'+_0x5cdaca[_0x2633('0x5d')]:'');this[_0x2633('0x0')]({'id':_0x104499,'type':_0x804f9a,'createdAt':new Date(),'authorId':_0x14432f,'originalSuggestionId':_0x5cdaca['id'],'attributes':_0x5cdaca[_0x2633('0xc8')],'data':_0x5cdaca[_0x2633('0x10f')]}),_0x2633('0x48')==_0x5cdaca[_0x2633('0xdd')]&&(_0x77cd31=this['_model'][_0x2633('0x42')](_0x77cd31[_0x2633('0xd5')])),this['_addSuggestionMarker'](_0x804f9a,_0x104499,_0x14432f,this[_0x2633('0xf3')][_0x2633('0x81')](_0x77cd31,_0x5064bc));}[_0x2633('0xf8')](_0xc7221d,_0x392171=null){const _0x2d3ab6=[],_0x40b76b=this[_0x2633('0xf3')]['schema'],_0x2ec042=this[_0x2633('0x134')]['plugins']['get'](_0x2633('0x53'))['me'];for(const _0xf44de7 of this[_0x2633('0xa')]())if(_0xf44de7['isInContent']&&(!_0x392171||_0xf44de7['type']==_0x392171))for(const _0x1ae34c of _0xf44de7['getRanges']()){const _0x19b826=_0xc7221d[_0x2633('0xc0')][_0x2633('0x116')](_0x1ae34c[_0x2633('0x130')])||_0xc7221d['end'][_0x2633('0x116')](_0x1ae34c['start']);if(_0x19b826||_0xc7221d[_0x2633('0x13c')](_0x1ae34c)){const _0x344f7d=_0xc7221d['containsRange'](_0x1ae34c)&&Bt(_0x40b76b,_0x1ae34c[_0x2633('0xc0')],_0xc7221d),_0x63798f=_0x1ae34c[_0x2633('0xf4')](_0xc7221d)&&Bt(_0x40b76b,_0xc7221d[_0x2633('0xc0')],_0x1ae34c);_0x2d3ab6['push']({'suggestion':_0xf44de7,'meta':{'isOwn':_0x2ec042==_0xf44de7[_0x2633('0x46')],'isNextTo':_0x19b826,'isInsideObject':_0x344f7d,'containsRangeInObject':_0x63798f}});break;}}return _0x2d3ab6;}[_0x2633('0x61')](_0x53c955,_0x531322,_0x29b2e2,_0x36bc1f,_0x4d316a){this[_0x2633('0xf3')][_0x2633('0x65')](_0x3e809f=>{let _0x52282d=_0x2633('0xec')+_0x53c955+':'+_0x531322+':'+_0x29b2e2;_0x4d316a&&(_0x52282d=_0x52282d+':'+_0x4d316a),_0x3e809f['addMarker'](_0x52282d,{'range':_0x36bc1f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2633('0x132')](_0x39661f){const _0x46317a=_0x39661f[_0x2633('0x8d')],_0x55579f=_0x39661f['next'];_0x39661f['previous']=null,null!=_0x46317a&&(_0x46317a[_0x2633('0x99')]=null),_0x39661f[_0x2633('0x99')]=null,null!=_0x55579f&&(_0x55579f[_0x2633('0x8d')]=null),_0x2633('0x27')==this[_0x2633('0xc7')]['get'](_0x39661f)&&(this[_0x2633('0xc7')][_0x2633('0x10e')](_0x39661f,_0x2633('0x68')),this[_0x2633('0x135')](_0x2633('0x73'),_0x39661f,_0x46317a,_0x55579f));}[_0x2633('0x0')](_0x137ead){const _0x55efa5=_0x137ead['id'],_0x5308ac=this[_0x2633('0x131')](_0x137ead);if(this['_adapter']&&this['_adapter'][_0x2633('0x51')]){const _0x42ec9e=this[_0x2633('0x134')][_0x2633('0x2f')][_0x2633('0x5a')](_0x2633('0xe1')),_0x1ae1ce=_0x5308ac[_0x2633('0xa8')],_0x4b9a21=_0x5308ac[_0x2633('0x5d')]?_0x5308ac[_0x2633('0xdd')]+':'+_0x5308ac[_0x2633('0x5d')]:_0x5308ac[_0x2633('0xdd')],_0x1a2b30=this[_0x2633('0x134')][_0x2633('0xab')],_0x2823c8=_0x42ec9e['add'](_0x39c557(_0x1a2b30,_0x2633('0x31'))),_0x146269={'id':_0x55efa5,'type':_0x4b9a21,'hasComments':_0x1ae1ce,'data':_0x137ead[_0x2633('0x10f')]||null,'originalSuggestionId':_0x137ead[_0x2633('0xa9')]||null,'attributes':_0x5308ac[_0x2633('0xc8')]};this[_0x2633('0x106')][_0x2633('0x51')](_0x146269)['then'](_0x580ff1=>{_0x5308ac[_0x2633('0x12e')]=!0x0,_0x42ec9e['remove'](_0x2823c8),_0x580ff1&&_0x580ff1['createdAt']&&(this['_suggestions'][_0x2633('0x5a')](_0x55efa5)[_0x2633('0x50')]=_0x580ff1[_0x2633('0x50')]);})[_0x2633('0x4c')](_0x5c55d0=>{throw _0x34826f(_0x2633('0xb5')),this[_0x2633('0x134')][_0x2633('0xcd')][_0x2633('0x7f')]({'isUndoable':!0x1},()=>{_0x5308ac['discard']();}),_0x5308ac[_0x2633('0x93')](),this[_0x2633('0xe3')][_0x2633('0xb0')](_0x5308ac['id']),this[_0x2633('0xc7')][_0x2633('0xb0')](_0x5308ac),_0x5c55d0;});}return _0x5308ac;}[_0x2633('0xbf')](_0x2a9a9a,_0x23a2a8){const _0x48ce2e=this[_0x2633('0x134')][_0x2633('0x2f')]['get'](_0x2633('0xe1')),_0x32ed3f=this[_0x2633('0x60')](_0x2a9a9a);if(this['_adapter']&&this[_0x2633('0x106')][_0x2633('0xc9')]){if(_0x32ed3f[_0x2633('0x12e')]){const _0x1eaba1=_0x48ce2e[_0x2633('0x9a')](_0x39c557(this[_0x2633('0x134')]['locale'],_0x2633('0x31')));this['_adapter'][_0x2633('0xc9')](_0x2a9a9a,_0x23a2a8)[_0x2633('0x84')](()=>{_0x48ce2e[_0x2633('0x8')](_0x1eaba1);});}else _0x32ed3f['on'](_0x2633('0x88'),()=>{this[_0x2633('0xbf')](_0x2a9a9a,_0x23a2a8);});}}[_0x2633('0xca')](_0x315817){if(!this[_0x2633('0x106')]||!this[_0x2633('0x106')][_0x2633('0x60')])throw new _0x44858c(_0x2633('0x3d'),this);return this['_adapter']['getSuggestion'](_0x315817);}['_handleNewSuggestionMarker'](_0x41f78f){const {id:_0x42ee75,type:_0x2632ce,subType:_0x1aabcc,authorId:_0x205437}=this[_0x2633('0x11e')](_0x41f78f),_0x580b1f=this[_0x2633('0xe3')][_0x2633('0x5a')](_0x42ee75)||this['_createSuggestion'](_0x2632ce,_0x1aabcc,_0x42ee75,_0x205437,{});switch(this['_checkSuggestionCorrectness'](_0x580b1f,_0x2632ce,_0x1aabcc,_0x205437),this[_0x2633('0xc7')]['get'](_0x580b1f)){case _0x2633('0xa6'):this[_0x2633('0xca')](_0x42ee75)[_0x2633('0x84')](_0xe2be78=>{let _0x4e2cda=Promise[_0x2633('0x87')]();_0xe2be78[_0x2633('0xa8')]&&(_0x4e2cda=this['_commentsRepository'][_0x2633('0x5b')]({'channelId':this[_0x2633('0x134')][_0x2633('0x12')][_0x2633('0x5a')]('collaboration.channelId'),'threadId':_0x42ee75})),_0x4e2cda[_0x2633('0x84')](()=>{this[_0x2633('0x131')](_0xe2be78)[_0x2633('0x12e')]=!0x0;});}),this[_0x2633('0xc7')][_0x2633('0x10e')](_0x580b1f,_0x2633('0x122'));break;case'removed':this[_0x2633('0xbf')](_0x42ee75,{'state':_0x2633('0x126')});case _0x2633('0xa3'):this['_suggestionState'][_0x2633('0x10e')](_0x580b1f,'ready'),this[_0x2633('0x135')](_0x2633('0xf'),_0x580b1f);break;case _0x2633('0x27'):this[_0x2633('0x135')](_0x2633('0x64'),_0x580b1f);}return _0x580b1f[_0x2633('0xbc')](_0x41f78f),_0x580b1f;}['_refreshSuggestionsChain'](_0x755c9a){const _0x5de143=Array['from'](_0x755c9a)['filter'](_0x169a08=>!_0x169a08[_0x2633('0x11')]),_0x3641c6=this[_0x2633('0xa')]({'skipNotAttached':!0x0})[_0x2633('0x92')](_0x4e67ec=>!_0x4e67ec['isMultiRange']),_0x41110f=_0x3641c6[_0x2633('0x92')](_0x44cd27=>!_0x755c9a[_0x2633('0xf6')](_0x44cd27)),_0x11d679=new Map(_0x3641c6['map'](_0x397a00=>[_0x397a00,this['_suggestionFactory']['getSuggestionCallback'](_0x397a00[_0x2633('0xdd')],_0x397a00['subType'],'chain')])),_0x154ce8=new Map(_0x3641c6[_0x2633('0x8b')](_0x1f95f1=>[_0x1f95f1,_0x1f95f1[_0x2633('0x66')]()])),_0x3f2170=new Set(),_0x20490a=new Set();for(let _0x6a1c7e=0x0;_0x6a1c7e<_0x5de143[_0x2633('0xcf')];_0x6a1c7e++)_0x316b5c(_0x5de143[_0x6a1c7e],_0x5de143,_0x6a1c7e+0x1);for(let _0x2ff28b=0x0;_0x2ff28b<_0x5de143[_0x2633('0xcf')];_0x2ff28b++)_0x316b5c(_0x5de143[_0x2ff28b],_0x41110f,0x0);for(let _0x5332eb=0x0;_0x5332eb<_0x5de143['length'];_0x5332eb++){const _0x2da27e=_0x5de143[_0x5332eb];!_0x20490a[_0x2633('0xf6')](_0x2da27e)&&_0x2da27e[_0x2633('0x8d')]&&(_0x2da27e[_0x2633('0x8d')]['next']===_0x2da27e&&(_0x2da27e[_0x2633('0x8d')]['next']=null),_0x2da27e['previous']=null),!_0x3f2170[_0x2633('0xf6')](_0x2da27e)&&_0x2da27e['next']&&(_0x2da27e[_0x2633('0x99')][_0x2633('0x8d')]===_0x2da27e&&(_0x2da27e[_0x2633('0x99')][_0x2633('0x8d')]=null),_0x2da27e[_0x2633('0x99')]=null);}function _0x316b5c(_0x4daa90,_0x1e1093,_0x54a45b){for(let _0x574a85=_0x54a45b;_0x574a85<_0x1e1093[_0x2633('0xcf')];_0x574a85++){const _0x1abfb8=_0x20d16b(_0x4daa90,_0x1e1093[_0x574a85]);_0x1abfb8&&(_0x1abfb8[0x0][_0x2633('0x99')]=_0x1abfb8[0x1],_0x1abfb8[0x1]['previous']=_0x1abfb8[0x0],_0x3f2170[_0x2633('0x9a')](_0x1abfb8[0x0]),_0x20490a['add'](_0x1abfb8[0x1]));}}function _0x20d16b(_0x3d1894,_0x3018b4){if(_0x3d1894['author']['id']!==_0x3018b4[_0x2633('0x46')]['id'])return null;const _0x2767a8=_0x11d679[_0x2633('0x5a')](_0x3d1894)(_0x3d1894,_0x3018b4,_0x154ce8['get'](_0x3d1894),_0x154ce8[_0x2633('0x5a')](_0x3018b4));if(!_0x2767a8)return null;return _0x11d679[_0x2633('0x5a')](_0x3018b4)(_0x3d1894,_0x3018b4,_0x154ce8['get'](_0x3d1894),_0x154ce8[_0x2633('0x5a')](_0x3018b4))?_0x2767a8[0x1]['commentThread']&&_0x2767a8[0x1][_0x2633('0x11b')][_0x2633('0xcf')]?null:_0x2767a8:null;}}[_0x2633('0xb1')](_0x523b27){const _0x2c2b04=Array['from'](_0x523b27),_0x5a542f=this[_0x2633('0xa')]({'skipNotAttached':!0x0}),_0x252e2a=_0x5a542f[_0x2633('0x92')](_0x598d49=>!_0x523b27[_0x2633('0xf6')](_0x598d49)),_0xc6dcd1=new Map(_0x2c2b04[_0x2633('0x8b')](_0x101ce9=>[_0x101ce9,this['_suggestionFactory'][_0x2633('0x77')](_0x101ce9['type'],_0x101ce9[_0x2633('0x5d')],_0x2633('0x115'))])),_0x3c3e7b=new Map(_0x5a542f[_0x2633('0x8b')](_0x10beda=>[_0x10beda,_0x10beda['getRanges']()]));for(let _0x10c2e1=0x0;_0x10c2e1<_0x2c2b04[_0x2633('0xcf')];_0x10c2e1++){if(_0x5d66ba(this,_0x2c2b04[_0x10c2e1],_0x2c2b04,_0x10c2e1+0x1))return!0x0;}for(let _0x5cbfd3=0x0;_0x5cbfd3<_0x2c2b04['length'];_0x5cbfd3++){if(_0x5d66ba(this,_0x2c2b04[_0x5cbfd3],_0x252e2a,0x0))return!0x0;}return!0x1;function _0x5d66ba(_0x26b9aa,_0x52666c,_0x5d2f85,_0x288011){for(let _0x3c8609=_0x288011;_0x3c8609<_0x5d2f85[_0x2633('0xcf')];_0x3c8609++){const _0xa84ac9=_0x5d2f85[_0x3c8609];if(_0xa84ac9[_0x2633('0xdd')]!==_0x52666c[_0x2633('0xdd')]||_0xa84ac9[_0x2633('0x46')]['id']!==_0x52666c[_0x2633('0x46')]['id']||_0xa84ac9[_0x2633('0x5d')]!==_0x52666c['subType'])continue;const _0x3f33fe=_0xc6dcd1[_0x2633('0x5a')](_0x52666c),_0x37f11c=_0x3c3e7b[_0x2633('0x5a')](_0x52666c),_0x5ee5fd=_0x3c3e7b[_0x2633('0x5a')](_0xa84ac9),_0x48cf02=_0x52666c['commentThread']&&_0x52666c[_0x2633('0x11b')]['length'],_0x24d63c=_0xa84ac9[_0x2633('0x11b')]&&_0xa84ac9[_0x2633('0x11b')][_0x2633('0xcf')];if(!_0x48cf02&&_0x3f33fe(_0x5ee5fd,_0x37f11c))return _0x26b9aa['_joinSuggestions'](_0xa84ac9,_0x52666c),_0x3c3e7b['delete'](_0x52666c),!0x0;if(!_0x24d63c&&_0x3f33fe(_0x37f11c,_0x5ee5fd))return _0x26b9aa['_joinSuggestions'](_0x52666c,_0xa84ac9),_0x3c3e7b[_0x2633('0xb0')](_0xa84ac9),!0x0;}return!0x1;}}[_0x2633('0x121')](_0x3c177e,_0x78ffd1){if(_0x3c177e[_0x2633('0x11')])for(const _0x2540b4 of _0x78ffd1[_0x2633('0x4b')]())_0x3c177e[_0x2633('0x3b')](_0x2540b4);else{const _0x131d73=_0x78ffd1[_0x2633('0x66')]()[_0x2633('0x130')];this[_0x2633('0x9d')](_0x3c177e,this[_0x2633('0xf3')][_0x2633('0x81')](_0x3c177e[_0x2633('0x66')]()[_0x2633('0xc0')],_0x131d73));}_0x78ffd1['removeMarkers']();}}class Dt{constructor(_0x4ffe62){this['_editor']=_0x4ffe62,this[_0x2633('0xf3')]=_0x4ffe62[_0x2633('0xcd')],this[_0x2633('0x133')]=new Map(),this[_0x2633('0x3e')]=new Map(),this['_registerDefaultCallbacks']();}[_0x2633('0xd3')](_0x31747c,_0x54aa9b,_0x3dfa85,_0x5cd9c2,_0x4dbd06,_0x2997fc){return new _0x33877d(this[_0x2633('0xf3')],{'type':_0x31747c,'subType':_0x54aa9b,'id':_0x3dfa85,'author':_0x5cd9c2,'creator':_0x5cd9c2,'attributes':_0x4dbd06,'onAttributesChange':_0x2997fc,'onAccept':(..._0x398e3d)=>this[_0x2633('0x77')](_0x31747c,_0x54aa9b,_0x2633('0x86'))(..._0x398e3d),'onDiscard':(..._0x182340)=>this['getSuggestionCallback'](_0x31747c,_0x54aa9b,_0x2633('0x69'))(..._0x182340)});}[_0x2633('0xe8')](_0x153ca7,_0xc36a9e,_0x470b7b,_0x2cca6b){const _0x406d36=_0x153ca7+':'+_0xc36a9e+':'+_0x470b7b;this[_0x2633('0x133')][_0x2633('0x10e')](_0x406d36,_0x2cca6b);}[_0x2633('0x77')](_0x588fef,_0x5577c5,_0x29da78){const _0x41b9f3=_0x588fef+':'+_0x5577c5+':'+_0x29da78;return this[_0x2633('0x133')][_0x2633('0x5a')](_0x41b9f3)||this[_0x2633('0x3e')][_0x2633('0x5a')](_0x588fef+':'+_0x29da78);}[_0x2633('0xa1')](){const _0x1222a2=()=>{},_0x431d93=_0x42490c=>{_0x42490c[_0x2633('0x12f')]((_0x3f7c3,_0xf1c8b2)=>_0x3f7c3[_0x2633('0xc0')]['isBefore'](_0xf1c8b2[_0x2633('0xc0')])?0x1:-0x1),this['_model'][_0x2633('0x65')](_0x11ea86=>{for(const _0x49cbf3 of _0x42490c){let _0x4a8cb6;_0x4a8cb6=_0x49cbf3[_0x2633('0x130')]['isAtEnd']&&_0x49cbf3['end']['parent']==_0x49cbf3[_0x2633('0xc0')][_0x2633('0x3a')]?_0x11ea86[_0x2633('0xb8')](_0x49cbf3['start'][_0x2633('0x3a')],'on'):_0x11ea86[_0x2633('0xb8')](_0x49cbf3),this[_0x2633('0xf3')][_0x2633('0xf1')](_0x4a8cb6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x510840=(_0x32854c,_0x46b9b1)=>{this['_model'][_0x2633('0x65')](_0x383fd9=>{const {commandName:_0xc94787,commandParams:_0x15370d=[]}=_0x46b9b1,_0x43752a=_0x32854c[_0x2633('0x8b')](_0x2c6c8a=>(_t(_0x2c6c8a)&&(_0x2c6c8a=this[_0x2633('0xf3')][_0x2633('0x81')](_0x2c6c8a[_0x2633('0x130')])),_0x2c6c8a))['filter'](_0x365fb2=>_0x2633('0x67')!==_0x365fb2['root'][_0x2633('0xe0')]);if(_0x43752a['length']<0x1)return;const _0x2b78c5=Array[_0x2633('0x4')](this[_0x2633('0xf3')]['document'][_0x2633('0xfd')]['getRanges']())[_0x2633('0x8b')](_0x16afc7=>_0x3ad8e1[_0x2633('0x85')](_0x16afc7));_0x383fd9[_0x2633('0x6')](_0x43752a);for(const _0x421bff of this[_0x2633('0xf0')][_0x2633('0xe2')]['commands']())_0x421bff['refresh']();_0x15370d['push']({'forceDefaultExecution':!0x0}),this[_0x2633('0xf0')][_0x2633('0x123')](_0xc94787,..._0x15370d);const _0x263443=_0x2b78c5[_0x2633('0x92')](_0x2547e8=>_0x2633('0x67')!=_0x2547e8['root'][_0x2633('0xe0')]);_0x263443[_0x2633('0xcf')]>0x0&&_0x383fd9[_0x2633('0x6')](_0x263443);for(const _0x592fed of _0x2b78c5)_0x592fed[_0x2633('0x112')]();});},_0x4bb086=(_0x47decd,_0x2d48bf)=>0x1==_0x47decd[_0x2633('0xcf')]&&0x1==_0x2d48bf['length']&&_0x47decd[0x0]['end'][_0x2633('0x116')](_0x2d48bf[0x0][_0x2633('0xc0')]),_0x1492f9=(_0xb08773,_0x4353db,_0x25387a,_0xccb197)=>xt(_0xb08773,_0x4353db,_0x25387a,_0xccb197,this[_0x2633('0xf3')])?[_0xb08773,_0x4353db]:xt(_0x4353db,_0xb08773,_0xccb197,_0x25387a,this['_model'])?[_0x4353db,_0xb08773]:null;this[_0x2633('0x3e')][_0x2633('0x10e')](_0x2633('0x20'),_0x1222a2),this[_0x2633('0x3e')]['set'](_0x2633('0xce'),_0x431d93),this[_0x2633('0x3e')][_0x2633('0x10e')](_0x2633('0xe6'),_0x4bb086),this[_0x2633('0x3e')][_0x2633('0x10e')](_0x2633('0xd1'),_0x1492f9),this[_0x2633('0x3e')]['set'](_0x2633('0x28'),_0x431d93),this['_defaultCallbacks']['set'](_0x2633('0x6f'),_0x1222a2),this[_0x2633('0x3e')][_0x2633('0x10e')](_0x2633('0xdb'),_0x4bb086),this[_0x2633('0x3e')][_0x2633('0x10e')]('deletion:chain',_0x1492f9),this['_defaultCallbacks'][_0x2633('0x10e')](_0x2633('0x3'),_0x510840),this[_0x2633('0x3e')]['set']('formatInline:discard',_0x1222a2),this[_0x2633('0x3e')][_0x2633('0x10e')]('formatInline:join',_0x4bb086),this[_0x2633('0x3e')][_0x2633('0x10e')](_0x2633('0xb9'),_0x1222a2),this['_defaultCallbacks'][_0x2633('0x10e')](_0x2633('0x76'),_0x510840),this[_0x2633('0x3e')][_0x2633('0x10e')](_0x2633('0x13a'),_0x1222a2),this[_0x2633('0x3e')][_0x2633('0x10e')](_0x2633('0x96'),_0x4bb086),this['_defaultCallbacks'][_0x2633('0x10e')](_0x2633('0x2d'),_0x1222a2);}}function Bt(_0x14d064,_0x1fa086,_0x704fef){for(const _0x546883 of _0x1fa086[_0x2633('0xd5')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x546883[_0x2633('0x118')]==_0x546883)return!0x1;if(!_0x704fef[_0x2633('0x25')](_0x546883))return!0x1;if(_0x14d064[_0x2633('0xc3')](_0x546883)||_0x14d064[_0x2633('0x3c')](_0x546883))return!0x0;}return!0x1;}function _t(_0x428999){return _0x428999[_0x2633('0x130')][_0x2633('0xd5')]==_0x428999['start']['nodeAfter']&&_0x428999[_0x2633('0x130')][_0x2633('0x90')];}function Mt(_0x2217cd,_0x24d6ad,_0x28ed5a,_0x16381a){const _0x4e4402=_0x44ba01=>!_0x44ba01[_0x2633('0x1b')]['is']('$textProxy')&&!_0x16381a[_0x2633('0xc3')](_0x44ba01[_0x2633('0x1b')]),_0x5bf33a=_0x2217cd['start']['getLastMatchingPosition'](_0x4e4402),_0x32fcf9=_0x2217cd['end'][_0x2633('0xb7')](_0x4e4402,{'direction':_0x2633('0x91')});return(!_0x2217cd[_0x2633('0xc0')][_0x2633('0x116')](_0x5bf33a)||!_0x2217cd[_0x2633('0x130')]['isEqual'](_0x32fcf9))&&(_0x5bf33a[_0x2633('0xd6')](_0x32fcf9)?_0x28ed5a[_0x2633('0x6b')](_0x24d6ad,{'range':_0x28ed5a[_0x2633('0x81')](_0x5bf33a,_0x32fcf9)}):_0x28ed5a[_0x2633('0xa4')](_0x24d6ad),!0x0);}function $t(_0x384838){return _0x221542(_0x384838);}function Nt(_0x390ecf){const _0x43e2de=_0x390ecf[_0x2633('0xc0')][_0x2633('0x3a')];return _0x43e2de&&_0x43e2de['is'](_0x2633('0x1e'));}function Rt(_0x16a50a,_0x2d9c9c){const _0x11460d=_0x2d9c9c[_0x2633('0x32')]['isObject'](_0x16a50a)||_0x2d9c9c[_0x2633('0x32')][_0x2633('0x128')](_0x16a50a);return _0x2d9c9c[_0x2633('0x81')](_0x2d9c9c[_0x2633('0x14')](_0x16a50a,_0x2633('0x11f')),_0x11460d?_0x2d9c9c['createPositionAfter'](_0x16a50a):_0x2d9c9c['createPositionAt'](_0x16a50a,_0x2633('0x130')));}function xt(_0x4625a3,_0x40899e,_0x495896,_0x263f8f,_0x450a60){if(_0x495896['end'][_0x2633('0x116')](_0x263f8f[_0x2633('0xc0')]))return!0x0;if(_0x4625a3['type']!=_0x40899e[_0x2633('0xdd')])return!0x1;if(!_0x495896[_0x2633('0x130')]['isTouching'](_0x263f8f['start']))return!0x1;const _0x30210a=_0x450a60[_0x2633('0x81')](_0x495896[_0x2633('0x130')],_0x263f8f[_0x2633('0xc0')])[_0x2633('0x52')]();for(const _0x29d5b1 of _0x30210a)if([_0x2633('0x110'),_0x2633('0x102')][_0x2633('0x5')](_0x29d5b1[_0x2633('0xdd')])&&_0x450a60[_0x2633('0x32')][_0x2633('0x3c')](_0x29d5b1[_0x2633('0x1b')]))return!0x1;return!0x0;}
23
+ const _0x204a=['formatInline:chain','containsPosition','upcast','for','isObject','trackChangesCommand','markerToHighlight','getSuggestionCallback','isInsideObject','formatBlock:accept','removeComment','getRange','deletion','batch','containsRange','track-changes-user-not-found','nodeBefore','stop','type','markMultiRangeDeletion','some','_defaultCallbacks','ready','rethrowUnexpectedError','notReady','editing','delete','authoredAt','accepted','hasCommentThread','createPositionAt','clone','track-changes-command-not-found','_getAuthorFromId','has','getAllAdjacentSuggestions','getItems','options','_breakSuggestionMarker','discardAllSuggestions','pluginName','push','attributes','elementStart','default','_getSuggestionData','insertion','always','high','activeMarkers','listenTo','_splitMarkerName','parent','subType','enableCommand','_enabledCommands','every','newRange','formatInline','differ','plugins','createSelection','isMultiRange','Users','deletion:chain','addMarkerName','catch','enqueueChange','markDeletion','containsItem','_suggestions','formatBlock:chain','setSelection','getShiftedBy','removeMarker','deletion:','highest','isEqual','oldRange','addMarker','formatInline:discard','change:data','marker-count','acceptSuggestion','howMany','_createSuggestion','mapper','@external','split','authorName','accept','track-changes-suggestion-data-mismatch','define','_commentsRepository','CommentsRepository','fetchCommentThread','markerToData','rootName','open','track-changes-suggestion-not-found','containsRangeInObject','_onDiscard','getIntersection','group','commentThread','commands','config','suggestion-type','addClass','removeClass','previous','getNearestSelectionRange','resolve','get','unbind','getDifference','detach','getFirstMarker','suggestionLoaded','setAttribute','author','formatBlock:','ck-suggestion-marker--active','length','insertion:','update:suggestion','_adapter','suggestionChanged','join','values','elementEnd','elementToElement','_editor','init','consume','change','buildSuggestion','start','isAfter','isRemovable','locale','execute','multipleBlocks','suggestion:','removeMarker:suggestion:formatBlock','map','isNextTo','addSuggestion','moveTargetPosition','containerElement','getRanges','move','schema','fromRange','_refreshSuggestionsChain','_addThreadToSuggestion','bindElementToMarker','formatInline:','formatBlock:join','_checkSuggestionCorrectness','suggestionUnloaded','fire','hasSuggestion','addHighlight','_joinWithAdjacentSuggestions','deleteContent','registerPostFixer','isBlock','normal','markers','getMarkers','root','acceptSelectedSuggestions','stopListening','_getExternalAuthor','$graveyard','commandName','getSuggestion','enableReadOnlyMode','createdAt','acceptAllSuggestions','createPositionBefore','clear','sort','collaboration.channelId','insertion:join','change:_saved','unbindElementFromMarkerName','isDocumentOperation','formatBlock','editor','addUser','markMultiRangeBlockFormat','createRange','_removeSuggestion','nodeAfter','dataReady','isInContent','trackChanges','getLastMatchingPosition','forward','getCustomProperty','position','_rangeIsInLocalUserInsertion','targetPosition','track-changes-adapter-already-set','_handleNewSuggestionMarker','trackChanges.trackFormatChanges','ck-suggestion-marker-formatBlock','backward','includes','_setSuggestionRange','isSelectable','data','from','conversion','consumable','never','isTouching','addRange','_mergeNestedSuggestions','filter','insertion:accept','deletion:accept','item','markerName','isCollapsed','head','deletion:discard','creator','formatGroupId','_isForcedDefaultExecutionBlock','suggestion','_joinSuggestions','_saved','document','addCommentThread','model','_model','isUndo','$textProxy','applyOperation','widget','next','name','rejected','_findSuggestions','addSuggestionData','end','getAttribute','range','refresh','ck-suggestion-marker-','markBlockFormat','getAncestors','multi','set','getSuggestions','_updateSuggestionData','_setSuggestionData','selection','PendingActions','discardSelectedSuggestions','isAtStart','isLocal','originalSuggestionId','ck-suggestion-marker','discardSuggestion','getChangedMarkers','isBefore','_suggestionFactory','toJSON','removeAttribute','size','setTo','updateMarker','_cutOutSuggestionMarker','element','before','track-changes-adapter-missing-getsuggestion','writer','showSuggestionHighlights','updateSuggestion','getMultiRangeId','markMultiRangeInsertion','isOwn','low','skipNestingCheck','value','splice','hasComments','getUser','registerCustomCallback','splitPosition','forceDefaultExecution','PENDING_ACTION_SUGGESTION','_suggestionState','removed','after','change:activeMarkers','getFirstRange','add','data-suggestion','_registerDefaultCallbacks','requires','dataDowncast','addMarker:suggestion:formatBlock','markerReady','isAtEnd','_customCallbacks','_addSuggestionMarker','getChanges','discard','isIntersectingWithRange','trackChanges.mergeNestedSuggestions','markInsertion','isLimit','_trackFormatChanges','then','removeMarkers','remove','substr','$marker'];(function(_0x183779,_0x204a3f){const _0x2cad78=function(_0xbb65c9){while(--_0xbb65c9){_0x183779['push'](_0x183779['shift']());}};_0x2cad78(++_0x204a3f);}(_0x204a,0xc9));const _0x2cad=function(_0x183779,_0x204a3f){_0x183779=_0x183779-0x0;let _0x2cad78=_0x204a[_0x183779];return _0x2cad78;};import{Plugin as _0x259d16,PendingActions as _0x2f5c33}from'ckeditor5/src/core';import{LiveRange as _0x52da85}from'ckeditor5/src/engine';import{CKEditorError as _0x312a50,uid as _0x103e67,priorities as _0x1cdb03,logWarning as _0x23e72b}from'ckeditor5/src/utils';import{toWidget as _0x49f232}from'ckeditor5/src/widget';import{Users as _0x9107f0,hashObject as _0x1ad6c7}from'ckeditor5-collaboration/src/collaboration-core';import _0x5a755f from'./commands/trackchangescommand';import _0x511a8f from'./commands/acceptsuggestioncommand';import _0x57624d from'./commands/discardsuggestioncommand';import _0x18e28a from'./commands/executeonallsuggestionscommand';import _0x31fd69 from'./commands/executeonselectedsuggestionscommand';import _0x519345 from'./suggestion';import _0x3f1256 from'./suggestiondescriptionfactory';import _0x46241f from'./integrations/alignment';import _0x41fdd4 from'./integrations/basicstyles';import _0x554ee5 from'./integrations/blockquote';import _0x4abf7a from'./integrations/ckbox';import _0x4304b7 from'./integrations/codeblock';import _0x5f32e9 from'./integrations/comments';import _0x37f13c from'./integrations/deletecommand';import _0x324495 from'./integrations/documentlist';import _0x1b1566 from'./integrations/entercommand';import _0xef73d3 from'./integrations/findandreplace';import _0xc27d97 from'./integrations/font';import _0x535ddb from'./integrations/formatpainter';import _0x35eb5e from'./integrations/heading';import _0x378194 from'./integrations/highlight';import _0x35b419 from'./integrations/horizontalline';import _0x51350e from'./integrations/htmlembed';import _0x1bc65e from'./integrations/image';import _0x12b977 from'./integrations/imagereplace';import _0x1269aa from'./integrations/importword';import _0x510c9a from'./integrations/indent';import _0x76aaf6 from'./integrations/inputcommand';import _0x1f66bc from'./integrations/link';import _0x3c12bf from'./integrations/list';import _0x57b9ba from'./integrations/listproperties';import _0x12bdb4 from'./integrations/mediaembed';import _0x198dec from'./integrations/mention';import _0x5cd922 from'./integrations/pagebreak';import _0x2367ca from'./integrations/paragraph';import _0x202fdb from'./integrations/removeformat';import _0x1082dc from'./integrations/restrictededitingmode';import _0x4253a0 from'./integrations/shiftentercommand';import _0x352e0d from'./integrations/standardeditingmode';import _0x11fa93 from'./integrations/style';import _0x14f73a from'./integrations/table';import _0xf3dd99 from'./integrations/tablemergesplit';import _0x3a05a8 from'./integrations/tableheadings';import _0x196887 from'./integrations/tableclipboard';import _0x585d0c from'./integrations/tablecolumnresize';import _0x3082ff from'./integrations/template';import _0x34d125 from'./integrations/tableofcontents';import _0x31c368 from'./integrations/title';import _0x4c6359 from'./integrations/undo';import{getTranslation as _0x2c44d2}from'./utils/common-translations';import _0x5e890d from'./integrations/tablecaption';import _0x1f47c9 from'./integrations/documentlistproperties';import _0x4b5287 from'./integrations/tableproperties';export default class p extends _0x259d16{static get[_0x2cad('0x67')](){return[_0x2cad('0xd8'),_0x9107f0,_0x2f5c33,_0x46241f,_0x41fdd4,_0x554ee5,_0x4abf7a,_0x4304b7,_0x5f32e9,_0x37f13c,_0x324495,_0x1f47c9,_0x1b1566,_0xef73d3,_0xc27d97,_0x535ddb,_0x35eb5e,_0x378194,_0x35b419,_0x51350e,_0x1bc65e,_0x12b977,_0x1269aa,_0x510c9a,_0x76aaf6,_0x1f66bc,_0x3c12bf,_0x57b9ba,_0x12bdb4,_0x198dec,_0x5cd922,_0x2367ca,_0x202fdb,_0x1082dc,_0x4253a0,_0x352e0d,_0x11fa93,_0x14f73a,_0xf3dd99,_0x3a05a8,_0x5e890d,_0x196887,_0x585d0c,_0x34d125,_0x4b5287,_0x3082ff,_0x31c368,_0x4c6359];}static get[_0x2cad('0xa2')](){return'TrackChangesEditing';}constructor(_0x122052){function _0xa21bbf(_0x4bceef){return _0x4bceef['map'](_0x56f774=>String['fromCharCode'](_0x56f774))[_0x2cad('0xfa')]('');}super(_0x122052),this[_0x2cad('0x37')]('activeMarkers',[]),this['on'](_0x2cad('0x62'),(_0x35e9be,_0x293d2d,_0x10767c,_0x208036)=>{this[_0x2cad('0x25')][_0x2cad('0x101')](()=>{for(const _0x7a8476 of[..._0x208036,..._0x10767c])this[_0x2cad('0x25')]['markers'][_0x2cad('0x9c')](_0x7a8476)&&_0x122052[_0x2cad('0x93')]['reconvertMarker'](_0x7a8476);});}),this['_descriptionFactory']=new _0x3f1256(this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0x112')],this[_0x2cad('0x138')][_0x2cad('0x106')]),this[_0x2cad('0xf8')]=null,this[_0x2cad('0x45')]=new Dt(this[_0x2cad('0x138')]),this[_0x2cad('0xc0')]=new Map(),this[_0x2cad('0xd7')]=_0x122052[_0x2cad('0xb6')]['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this[_0x2cad('0x138')][_0x2cad('0x24')],this[_0x2cad('0x5f')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x122052['config'][_0x2cad('0xd6')]('trackChanges.trackFormatChanges',_0x2cad('0xa6')),this[_0x2cad('0x74')]=_0x122052[_0x2cad('0xe4')][_0x2cad('0xeb')](_0x2cad('0x6')),_0x122052[_0x2cad('0xe4')][_0x2cad('0xd6')](_0x2cad('0x71'),!0x0),this[_0x2cad('0x13')]=_0x122052['config'][_0x2cad('0xeb')](_0x2cad('0x71')),this[_0x2cad('0x7f')]=new _0x5a755f(_0x122052,this[_0x2cad('0xb1')]),this[_0xa21bbf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xa21bbf([0x34,0x30,0x34,0x36,0x31,0x36,0x32,0x32]);}[_0x2cad('0xff')](){const _0x8cba0f=this[_0x2cad('0x138')];_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')]('editingDowncast')[_0x2cad('0x80')]({'model':_0x2cad('0x1f'),'view':_0x22eb70=>{const {id:_0x163b4b,type:_0x4e6ea3}=this[_0x2cad('0xad')](_0x22eb70['markerName']),_0x14f2e7=[_0x2cad('0x41'),_0x2cad('0x33')+_0x4e6ea3];let _0xc7aa7f=0xbb8;return this[_0x2cad('0xab')][_0x2cad('0x9')](_0x22eb70[_0x2cad('0x18')])&&(_0x14f2e7[_0x2cad('0xa3')](_0x2cad('0xf4')),_0xc7aa7f=0xbc2),'deletion'==_0x4e6ea3&&(_0xc7aa7f+=0x5),{'classes':_0x14f2e7,'attributes':{'data-suggestion':_0x163b4b},'priority':_0xc7aa7f};}}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x68'))['add'](_0x4bbcfb=>{_0x4bbcfb['on']('addMarker:suggestion',(_0x3091a0,_0x4fc8ff,_0x918115)=>{if(!_0x918115[_0x2cad('0x9f')][_0x2cad('0x50')])return;const _0x25fd2b=_0x4fc8ff[_0x2cad('0x17')];if(!_0x25fd2b)return;const _0x32fe17=_0x918115[_0x2cad('0xd0')]['toViewElement'](_0x25fd2b);_0x8cba0f['model'][_0x2cad('0x112')][_0x2cad('0x7e')](_0x25fd2b)&&_0x32fe17&&!_0x32fe17[_0x2cad('0x0')](_0x2cad('0x29'))&&_0x32fe17['is'](_0x2cad('0x10f'))&&_0x49f232(_0x32fe17,_0x918115[_0x2cad('0x4f')]);},{'priority':_0x2cad('0xaa')});}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x68'))[_0x2cad('0x80')]({'model':_0x2cad('0x1f'),'view':(_0x37c4e5,_0x32bfa3)=>{if(!_0x32bfa3[_0x2cad('0x9f')]['showSuggestionHighlights'])return null;const {type:_0x3fed0d}=this[_0x2cad('0xad')](_0x37c4e5[_0x2cad('0x18')]);return{'classes':[_0x2cad('0x41'),_0x2cad('0x33')+_0x3fed0d],'priority':0xbb8};}});const _0x1fa2a7=({showActiveMarkers:_0x590d53=!0x0}={})=>(_0x2e580c,_0x1ff7bb,_0x3070cf)=>{if(!_0x1ff7bb['item'])return;if(_0x1ff7bb[_0x2cad('0x17')]['is'](_0x2cad('0x3b')))return void _0x3070cf[_0x2cad('0xf')][_0x2cad('0x100')](_0x1ff7bb[_0x2cad('0x17')],_0x2e580c[_0x2cad('0x2b')]);const _0x544c0c=_0x3070cf[_0x2cad('0xd0')]['toViewElement'](_0x1ff7bb[_0x2cad('0x17')]);if(!(_0x1ff7bb[_0x2cad('0x17')]['is'](_0x2cad('0x4c'))&&_0x8cba0f[_0x2cad('0x24')]['schema']['isBlock'](_0x1ff7bb[_0x2cad('0x17')])&&!_0x544c0c['getCustomProperty'](_0x2cad('0x11d'))))return;const {id:_0x291ac1}=this['_splitMarkerName'](_0x1ff7bb[_0x2cad('0x18')]);_0x3070cf[_0x2cad('0x4f')][_0x2cad('0xe6')]([_0x2cad('0x41'),_0x2cad('0x7')],_0x544c0c),_0x3070cf['writer'][_0x2cad('0xf1')](_0x2cad('0x65'),_0x291ac1,_0x544c0c),_0x3070cf[_0x2cad('0xd0')][_0x2cad('0x116')](_0x544c0c,_0x1ff7bb[_0x2cad('0x18')]),_0x590d53&&(this[_0x2cad('0xab')][_0x2cad('0x9')](_0x1ff7bb[_0x2cad('0x18')])?_0x3070cf['writer'][_0x2cad('0xe6')](_0x2cad('0xf4'),_0x544c0c):_0x3070cf[_0x2cad('0x4f')][_0x2cad('0xe7')](_0x2cad('0xf4'),_0x544c0c));for(const _0x2e439c of _0x8cba0f[_0x2cad('0x24')]['createRangeIn'](_0x1ff7bb[_0x2cad('0x17')])[_0x2cad('0x9e')]())_0x3070cf[_0x2cad('0xf')]['consume'](_0x2e439c,_0x2e580c[_0x2cad('0x2b')]);_0x3070cf[_0x2cad('0xf')][_0x2cad('0x100')](_0x1ff7bb[_0x2cad('0x17')],_0x2e580c[_0x2cad('0x2b')]);};_0x8cba0f[_0x2cad('0xe')]['for'](_0x2cad('0x68'))[_0x2cad('0x64')](_0x2c53e9=>{_0x2c53e9['on'](_0x2cad('0x69'),(_0x5e1153,_0x2186a8,_0x1a403b)=>{_0x1a403b['options']['showSuggestionHighlights']&&_0x1fa2a7({'showActiveMarkers':!0x1})(_0x5e1153,_0x2186a8,_0x1a403b);},{'priority':_0x2cad('0xc6')});}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x68'))[_0x2cad('0xda')]({'model':'suggestion','view':(_0x2d3dc7,_0x1ea043)=>_0x1ea043[_0x2cad('0x9f')][_0x2cad('0x50')]?null:{'group':_0x2cad('0x1f'),'name':_0x2d3dc7[_0x2cad('0x78')](0xb)}}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')](_0x2cad('0x7c'))[_0x2cad('0xfd')]({'view':{'name':_0x2cad('0x1f'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23a7df,{writer:_0x1faf2a})=>{let _0x2d1f4e=_0x2cad('0x109')+_0x23a7df['getAttribute'](_0x2cad('0xe5'))+':'+_0x23a7df['getAttribute']('id');return _0x23a7df[_0x2cad('0x30')]('marker-count')&&(_0x2d1f4e+=':'+_0x23a7df[_0x2cad('0x30')](_0x2cad('0xcc'))),_0x1faf2a['createElement'](_0x2cad('0x79'),{'data-name':_0x2d1f4e});}}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')]('upcast')['dataToMarker']({'view':'suggestion'}),_0x8cba0f[_0x2cad('0xe')]['for']('editingDowncast')['add'](_0x5a9d0b=>{_0x5a9d0b['on'](_0x2cad('0x69'),_0x1fa2a7(),{'priority':_0x2cad('0xaa')});}),_0x8cba0f[_0x2cad('0xe')][_0x2cad('0x7d')]('editingDowncast')[_0x2cad('0x64')](_0x37e058=>{_0x37e058['on'](_0x2cad('0x10a'),(_0x90fae4,_0x1c6272,_0x1ee675)=>{const _0x30513d=_0x1ee675[_0x2cad('0xd0')]['markerNameToElements'](_0x1c6272[_0x2cad('0x18')]);if(_0x30513d)for(const _0x1b7894 of _0x30513d)_0x1b7894['getCustomProperty']('addHighlight')||(_0x1ee675['writer'][_0x2cad('0xe7')]([_0x2cad('0x41'),_0x2cad('0x7'),_0x2cad('0xf4')],_0x1b7894),_0x1ee675[_0x2cad('0x4f')][_0x2cad('0x47')](_0x2cad('0x65'),_0x1b7894),_0x1ee675['mapper'][_0x2cad('0x135')](_0x1b7894,_0x1c6272[_0x2cad('0x18')]));},{'priority':_0x2cad('0xaa')});}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')][_0x2cad('0x120')](_0x5a4ac6=>{let _0x21109f=!0x1;const _0xd274cd=Array[_0x2cad('0xd')](_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')][_0x2cad('0xb5')][_0x2cad('0x43')]()),_0x1a93a2=new Set();for(const {name:_0x44b444,data:_0x124633}of _0xd274cd){const {group:_0x307a4d,type:_0x1e4e32,id:_0x3aed85}=this[_0x2cad('0xad')](_0x44b444);if('suggestion'!==_0x307a4d)continue;const _0x2afb36=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x3aed85);if(null!=_0x124633[_0x2cad('0xb3')]){_0x2cad('0xb4')==_0x1e4e32&&(_0x21109f=_0x21109f||Mt(_0x124633[_0x2cad('0xb3')],_0x44b444,_0x5a4ac6,_0x8cba0f[_0x2cad('0x24')]['schema']));if(_0x124633[_0x2cad('0xb3')][_0x2cad('0x19')]||_0x2cad('0x129')==_0x124633[_0x2cad('0xb3')][_0x2cad('0x125')][_0x2cad('0xdb')]||'formatBlock'==_0x1e4e32&&!Nt(_0x124633[_0x2cad('0xb3')])||_0x2cad('0x86')==_0x1e4e32&&!(!_t(_0x2e4c46=_0x124633[_0x2cad('0xb3')])&&!function(_0x1e991d){return _0x1e991d[_0x2cad('0x103')]['parent']==_0x1e991d[_0x2cad('0x2f')][_0x2cad('0x8a')]&&_0x1e991d[_0x2cad('0x103')][_0x2cad('0x6b')];}(_0x2e4c46)))_0x5a4ac6[_0x2cad('0xc4')](_0x44b444),_0x21109f=!0x0;else{if(!_0x2afb36||!_0x2afb36[_0x2cad('0x13f')])continue;_0x1a93a2[_0x2cad('0x64')](_0x2afb36);}}}var _0x2e4c46;return _0x1a93a2[_0x2cad('0x48')]>0x0&&(_0x21109f=!!this[_0x2cad('0x11e')](_0x1a93a2)||_0x21109f),_0x21109f;}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')]['registerPostFixer'](_0x400c51=>{let _0x631628=!0x1;for(const _0x528e5b of _0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')][_0x2cad('0xb5')][_0x2cad('0x6e')]()){if('insert'!=_0x528e5b[_0x2cad('0x8c')])continue;const _0x16af9a=_0x528e5b[_0x2cad('0x1')][_0x2cad('0xc3')](_0x528e5b[_0x2cad('0xf5')]);if(_0x16af9a[_0x2cad('0x6b')])for(const _0x46bda9 of this[_0x2cad('0xc0')][_0x2cad('0xfb')]()){if(_0x46bda9[_0x2cad('0xb8')]||!_0x46bda9[_0x2cad('0x13f')])continue;if(_0x2cad('0x137')!=_0x46bda9[_0x2cad('0x8c')])continue;const _0x5dbebd=_0x46bda9['getFirstRange']();if(_0x5dbebd[_0x2cad('0x103')]['parent']!=_0x5dbebd[_0x2cad('0x2f')][_0x2cad('0xae')]&&_0x5dbebd[_0x2cad('0x2f')][_0x2cad('0xc7')](_0x528e5b[_0x2cad('0x1')])){const _0x43e1f3=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x13b')](_0x5dbebd['start'],_0x16af9a);_0x400c51[_0x2cad('0x4a')](_0x46bda9['getFirstMarker'](),{'range':_0x43e1f3}),_0x631628=!0x0;}}}return _0x631628;}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x123')]['on'](_0x2cad('0xf7'),(_0x114473,_0x27df5d,_0x13aeeb)=>{if(null==_0x13aeeb){const {id:_0x58e178}=this[_0x2cad('0xad')](_0x27df5d[_0x2cad('0x2b')]),_0x202fae=this[_0x2cad('0xc0')]['get'](_0x58e178);_0x202fae&&_0x202fae[_0x2cad('0xbb')](_0x27df5d[_0x2cad('0x2b')]);}}),_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x22')]['on'](_0x2cad('0xcb'),()=>{const _0x238dea=Array['from'](_0x8cba0f['model']['document'][_0x2cad('0xb5')]['getChangedMarkers']())['filter'](_0x5568d9=>_0x2cad('0x1f')===this[_0x2cad('0xad')](_0x5568d9[_0x2cad('0x2b')])[_0x2cad('0xe1')]);if(0x0===_0x238dea[_0x2cad('0xf5')])return;_0x238dea[_0x2cad('0x131')]((_0x4d67a0,_0x88c360)=>{const _0x4b078f=_0x4d67a0[_0x2cad('0xc')]['oldRange'],_0x4d1745=_0x88c360[_0x2cad('0xc')][_0x2cad('0xc8')];return null===_0x4b078f&&null===_0x4d1745?0x0:null===_0x4b078f&&null!==_0x4d1745?-0x1:null!==_0x4b078f&&null===_0x4d1745?0x1:_0x4b078f[_0x2cad('0x103')][_0x2cad('0x44')](_0x4d1745[_0x2cad('0x103')])?-0x1:0x1;});const _0x24c12e=new Set(),_0x17cdc8=new Set();for(const {name:_0x58555a,data:_0xc656fa}of _0x238dea){const {id:_0x2bb2fe}=this[_0x2cad('0xad')](_0x58555a);if(null===_0xc656fa[_0x2cad('0xc8')]){const _0x3e38b6=this[_0x2cad('0x5')](_0x58555a);_0x17cdc8[_0x2cad('0x64')](_0x3e38b6);}else{const _0x550881=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x2bb2fe);null!==_0xc656fa['newRange']||_0x550881['isInContent']?(_0x24c12e['add'](_0x550881[_0x2cad('0x1a')]),_0x17cdc8['add'](_0x550881)):this['_removeSuggestion'](_0x550881);}}_0x17cdc8[_0x2cad('0x48')]>0x0&&this[_0x2cad('0x114')](_0x17cdc8);for(const _0x443c5d of _0x24c12e)this[_0x2cad('0x11b')](_0x2cad('0xf9'),_0x443c5d);}),_0x8cba0f[_0x2cad('0x24')]['on'](_0x2cad('0x28'),(_0x5623df,_0x14633f)=>{const _0x1b14ff=_0x14633f[0x0];if(!this[_0x2cad('0xc0')]['size'])return;if(!_0x1b14ff[_0x2cad('0x136')])return;if(_0x1b14ff[_0x2cad('0x87')][_0x2cad('0x26')]||!_0x1b14ff['batch'][_0x2cad('0x3f')])return;let _0x545084,_0x17df41;switch(_0x1b14ff[_0x2cad('0x8c')]){case'insert':_0x545084=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff['position']),_0x17df41=_0x545084[_0x2cad('0xc3')](_0x1b14ff['howMany']);break;case _0x2cad('0xd2'):_0x545084=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff[_0x2cad('0x5c')]),_0x17df41=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff[_0x2cad('0x10e')]);break;case _0x2cad('0x111'):_0x545084=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x1b14ff[_0x2cad('0x3')]),_0x17df41=_0x545084['getShiftedBy'](_0x1b14ff[_0x2cad('0xce')]);break;default:return;}const _0xd6ae73=_0x8cba0f[_0x2cad('0x24')]['createRange'](_0x545084,_0x17df41);_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x101')](()=>{for(const {suggestion:_0x516beb,meta:_0x300b3a}of this[_0x2cad('0x2d')](_0xd6ae73)){if(_0x516beb['isMultiRange'])continue;if('formatInline'==_0x516beb[_0x2cad('0x8c')])continue;const _0x1d3217=_0x516beb[_0x2cad('0xc')]&&_0x516beb[_0x2cad('0xc')]['multipleBlocks'];('formatBlock'!=_0x516beb['type']||_0x2cad('0xd2')==_0x1b14ff[_0x2cad('0x8c')]&&!_0x1d3217)&&(_0x300b3a[_0x2cad('0xde')]||_0x2cad('0xa8')==_0x516beb[_0x2cad('0x8c')]&&_0x300b3a[_0x2cad('0x54')]||_0x516beb[_0x2cad('0x63')]()['containsRange'](_0xd6ae73)&&this[_0x2cad('0xa0')](_0x516beb,_0x545084,_0x17df41));}});},{'priority':'lowest'}),_0x8cba0f[_0x2cad('0x24')]['on']('deleteContent',(_0x1d38f5,_0x319132)=>{const _0x2789d3=_0x319132[0x0],_0x2c0d0d=_0x319132[0x1];if(_0x2c0d0d&&_0x2c0d0d['forceDefaultExecution'])return;if(this[_0x2cad('0x1e')])return;if(!this[_0x2cad('0x7f')][_0x2cad('0x57')])return;if(_0x2789d3[_0x2cad('0x19')])return;const _0x5576c3=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x112')],{start:_0x29df68,end:_0x1131a8}=_0x2789d3[_0x2cad('0x63')](),_0x11fcc4=_0x29df68[_0x2cad('0x13d')]&&_0x5576c3['isLimit'](_0x29df68[_0x2cad('0x13d')])?null:_0x5576c3['getNearestSelectionRange'](_0x29df68,_0x2cad('0x142')),_0x5449ff=_0x1131a8[_0x2cad('0x8a')]&&_0x5576c3[_0x2cad('0x73')](_0x1131a8[_0x2cad('0x8a')])?null:_0x5576c3[_0x2cad('0xe9')](_0x1131a8,'backward'),_0x1608f3=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x13b')](_0x11fcc4?_0x11fcc4[_0x2cad('0x103')]:_0x29df68,_0x5449ff?_0x5449ff[_0x2cad('0x2f')]:_0x1131a8);_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x101')](_0xe6dbd=>{this[_0x2cad('0xbe')](_0x1608f3);const _0x2325da=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x112')][_0x2cad('0xe9')](_0x1608f3['start']);_0x2789d3['is']('documentSelection')?_0xe6dbd[_0x2cad('0xc2')](_0x2325da):_0x2789d3[_0x2cad('0x49')](_0x2325da);}),_0x1d38f5[_0x2cad('0x8b')]();},{'priority':_0x1cdb03[_0x2cad('0x122')]+0xa}),_0x8cba0f[_0x2cad('0x24')]['on']('insertContent',(_0x12a427,_0x1bcd5c)=>{const _0x2f4e78=_0x1bcd5c[_0x1bcd5c[_0x2cad('0xf5')]-0x1];_0x2f4e78&&_0x2f4e78[_0x2cad('0x5d')]||this[_0x2cad('0x1e')]||this[_0x2cad('0x7f')]['value']&&(_0x8cba0f['model'][_0x2cad('0x101')](()=>{let _0x4f211a=_0x8cba0f[_0x2cad('0x24')]['insertContent'](_0x1bcd5c[0x0],_0x1bcd5c[0x1],_0x1bcd5c[0x2],{'forceDefaultExecution':!0x0});if(!_0x4f211a)return;_0x12a427['return']=_0x4f211a[_0x2cad('0x99')]();const _0x4fce80=_0x4f211a[_0x2cad('0x2f')][_0x2cad('0x8a')],_0x2bfa17=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x112')];_0x4fce80&&_0x2bfa17[_0x2cad('0x121')](_0x4fce80)&&!_0x2bfa17[_0x2cad('0x7e')](_0x4fce80)&&(_0x4f211a=_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x13b')](_0x4f211a[_0x2cad('0x103')],_0x8cba0f[_0x2cad('0x24')][_0x2cad('0x98')](_0x4fce80,_0x2cad('0x2f')))),this['markInsertion'](_0x4f211a);}),_0x12a427[_0x2cad('0x8b')]());},{'priority':_0x2cad('0xaa')}),this[_0x2cad('0x138')][_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x140'),this[_0x2cad('0x7f')]),this[_0x2cad('0xb0')](_0x2cad('0x140'));const _0x470a2a=new _0x511a8f(_0x8cba0f,this[_0x2cad('0xc0')]);_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0xcd'),_0x470a2a),this[_0x2cad('0xb0')](_0x2cad('0xcd'));const _0x1b6772=new _0x57624d(_0x8cba0f,this[_0x2cad('0xc0')]);_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x42'),_0x1b6772),this[_0x2cad('0xb0')]('discardSuggestion'),_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x12e'),new _0x18e28a(_0x8cba0f,_0x470a2a,this['_suggestions'])),this[_0x2cad('0xb0')]('acceptAllSuggestions'),_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0xa1'),new _0x18e28a(_0x8cba0f,_0x1b6772,this[_0x2cad('0xc0')])),this[_0x2cad('0xb0')](_0x2cad('0xa1')),_0x8cba0f['commands'][_0x2cad('0x64')](_0x2cad('0x126'),new _0x31fd69(_0x8cba0f,_0x470a2a,this[_0x2cad('0xc0')])),this[_0x2cad('0xb0')]('acceptSelectedSuggestions'),_0x8cba0f[_0x2cad('0xe3')][_0x2cad('0x64')](_0x2cad('0x3d'),new _0x31fd69(_0x8cba0f,_0x1b6772,this[_0x2cad('0xc0')])),this[_0x2cad('0xb0')](_0x2cad('0x3d'));const _0x467781=_0x8cba0f['plugins'][_0x2cad('0xeb')](_0x2cad('0xd8'));this['listenTo'](_0x467781,'addComment',(_0x474eca,{threadId:_0x4f58df})=>{const _0x48c9db=this['_suggestions']['get'](_0x4f58df);_0x48c9db&&_0x48c9db[_0x2cad('0xe2')]&&0x1===_0x48c9db[_0x2cad('0xe2')][_0x2cad('0xf5')]&&this[_0x2cad('0x39')](_0x4f58df,{'hasComments':!0x0});},{'priority':_0x2cad('0x55')}),this[_0x2cad('0xac')](_0x467781,_0x2cad('0x84'),(_0x499887,{threadId:_0x1fcf46})=>{const _0x17e00e=this['_suggestions'][_0x2cad('0xeb')](_0x1fcf46);_0x17e00e&&_0x17e00e['commentThread']&&!_0x17e00e[_0x2cad('0xe2')][_0x2cad('0xf5')]&&this['_updateSuggestionData'](_0x1fcf46,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x10ba7e){if(this[_0x2cad('0xf8')])throw new _0x312a50(_0x2cad('0x4'),this);this[_0x2cad('0xf8')]=_0x10ba7e;}get['adapter'](){return this[_0x2cad('0xf8')];}[_0x2cad('0x38')]({skipNotAttached:_0x21e9d0=!0x1,toJSON:_0xb99eda=!0x1}={}){const _0x44a50a=[];for(const _0x332e22 of this['_suggestions']['values']())_0x21e9d0&&!_0x332e22[_0x2cad('0x13f')]||_0x44a50a[_0x2cad('0xa3')](_0x332e22);return _0xb99eda?_0x44a50a[_0x2cad('0x10b')](_0x5e8f8e=>_0x5e8f8e[_0x2cad('0x46')]()):_0x44a50a;}[_0x2cad('0x12b')](_0x385298){const _0x326ec1=this['_suggestions'][_0x2cad('0xeb')](_0x385298);if(!_0x326ec1)throw new _0x312a50(_0x2cad('0xdd'),this);return _0x326ec1;}[_0x2cad('0x11c')](_0x5c694b){return this['_suggestions'][_0x2cad('0x9c')](_0x5c694b);}[_0x2cad('0x2e')](_0x1adf7d){const {authorId:_0x150bce,id:_0x5c6e43,attributes:_0x10f010}=_0x1adf7d,[_0x1b6fc2,_0x1d7d0c]=_0x1adf7d[_0x2cad('0x8c')][_0x2cad('0xd2')](':'),_0x4e82c4=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x5c6e43)||this[_0x2cad('0xcf')](_0x1b6fc2,_0x1d7d0c,_0x5c6e43,_0x150bce,_0x10f010);if(this[_0x2cad('0x115')](_0x4e82c4),this[_0x2cad('0x119')](_0x4e82c4,_0x1b6fc2,_0x1d7d0c||null,_0x150bce),_0x4e82c4[_0x2cad('0x12d')]=_0x1adf7d[_0x2cad('0x12d')],_0x10f010&&_0x10f010['@external']){const _0xa0cdb4=_0x10f010[_0x2cad('0xd1')],_0x3d663a=this[_0x2cad('0x128')](_0xa0cdb4[_0x2cad('0xd3')]);_0x4e82c4[_0x2cad('0x95')]=_0xa0cdb4['createdAt'],_0x4e82c4[_0x2cad('0xf2')]=_0x3d663a,_0x4e82c4['isExternal']=!0x0;}else _0x4e82c4['authoredAt']=_0x1adf7d[_0x2cad('0x12d')];switch(_0x1adf7d[_0x2cad('0xc')]&&(_0x4e82c4[_0x2cad('0xc')]=_0x1adf7d[_0x2cad('0xc')]),_0x1adf7d[_0x2cad('0xa4')]&&(_0x4e82c4[_0x2cad('0xa4')]=_0x1adf7d['attributes']),this[_0x2cad('0xf8')]&&this[_0x2cad('0xf8')][_0x2cad('0x10d')]||(_0x4e82c4['_saved']=!0x0),this[_0x2cad('0x5f')]['get'](_0x4e82c4)){case _0x2cad('0x92'):this[_0x2cad('0x5f')][_0x2cad('0x37')](_0x4e82c4,_0x2cad('0x13e'));break;case _0x2cad('0x6a'):_0x4e82c4['isInContent']?(this['_suggestionState']['set'](_0x4e82c4,_0x2cad('0x90')),this[_0x2cad('0x11b')](_0x2cad('0xf0'),_0x4e82c4)):this[_0x2cad('0x5f')]['set'](_0x4e82c4,_0x2cad('0x60'));}return _0x4e82c4;}[_0x2cad('0xcd')](_0x58c1f9){this[_0x2cad('0x5d')](()=>{this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0x101')](()=>{for(const _0x57a619 of _0x58c1f9[_0x2cad('0x9d')]())_0x57a619[_0x2cad('0xd4')]();});});}[_0x2cad('0x42')](_0x95a551){this[_0x2cad('0x5d')](()=>{this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0x101')](()=>{for(const _0x16b686 of _0x95a551[_0x2cad('0x9d')]())_0x16b686[_0x2cad('0x6f')]();});});}[_0x2cad('0xb0')](_0x2d5eb8,_0x2cc748){const _0x282ca8=this[_0x2cad('0x138')][_0x2cad('0xe3')][_0x2cad('0xeb')](_0x2d5eb8);if(!_0x282ca8)throw new _0x312a50(_0x2cad('0x9a'),this,{'commandName':_0x2d5eb8});this[_0x2cad('0xb1')][_0x2cad('0x64')](_0x282ca8),_0x2cc748&&_0x282ca8['on']('execute',(_0x4f7363,_0x39e53c)=>{this[_0x2cad('0x7f')][_0x2cad('0x57')]&&(this[_0x2cad('0x1e')]||_0x39e53c[_0x2cad('0xf5')]>0x0&&_0x39e53c[_0x39e53c[_0x2cad('0xf5')]-0x1]&&_0x39e53c[_0x39e53c['length']-0x1][_0x2cad('0x5d')]||(_0x2cc748((..._0x52401e)=>_0x282ca8[_0x2cad('0x107')](..._0x52401e,{'forceDefaultExecution':!0x0}),..._0x39e53c),_0x4f7363[_0x2cad('0x8b')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x1c90f3){let _0x1b291f,_0x514150;const _0x296342=this[_0x2cad('0x1e')];this[_0x2cad('0x1e')]=!0x0;try{_0x1b291f=_0x1c90f3();}catch(_0x1eae45){_0x514150=_0x1eae45;}return _0x296342||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x514150&&_0x312a50[_0x2cad('0x91')](_0x514150,this),_0x1b291f;}[_0x2cad('0x72')](_0x4dc905,_0x41c16a=null,_0x47c4af={}){if(_0x4dc905[_0x2cad('0x19')])return null;const _0x1d5f51=this['editor'][_0x2cad('0xb6')][_0x2cad('0xeb')]('Users')['me'];for(const {suggestion:_0x2fd7c9,meta:_0x1e1c3c}of this['_findSuggestions'](_0x4dc905,_0x2cad('0xa8')))if(_0x1e1c3c[_0x2cad('0x54')]){if(!_0x1e1c3c[_0x2cad('0x10c')]){if(!this[_0x2cad('0x13')]&&_0x1e1c3c[_0x2cad('0xde')])continue;return _0x2fd7c9;}if(_0x41c16a==_0x2fd7c9[_0x2cad('0xaf')]){const _0x2e2ef8=_0x2fd7c9['getFirstRange']();return _0x2e2ef8[_0x2cad('0x103')]['isEqual'](_0x4dc905['end'])?this[_0x2cad('0xa')](_0x2fd7c9,this[_0x2cad('0x25')]['createRange'](_0x4dc905[_0x2cad('0x103')],_0x2e2ef8['end'])):this['_setSuggestionRange'](_0x2fd7c9,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x2e2ef8['start'],_0x4dc905[_0x2cad('0x2f')])),_0x2fd7c9;}}const _0x3876e7=_0x103e67(),_0x3b3102=_0x1d5f51['id'],_0x132465=_0x41c16a?_0x2cad('0xf6')+_0x41c16a:_0x2cad('0xa8'),_0x1b13d1=this[_0x2cad('0x3a')]({'id':_0x3876e7,'type':_0x132465,'createdAt':new Date(),'authorId':_0x3b3102,'attributes':_0x47c4af});return this['_addSuggestionMarker'](_0x132465,_0x3876e7,_0x3b3102,_0x4dc905),_0x1b13d1;}[_0x2cad('0x53')](_0x349088,_0x5e50e8=_0x2cad('0x36'),_0x46e423={}){const _0x2b5624=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')]('Users')['me'],_0x25256c=this[_0x2cad('0x45')]['getSuggestionCallback']('insertion',_0x5e50e8,_0x2cad('0xfa'));for(const _0xdaf126 of this[_0x2cad('0x38')]())if(_0xdaf126[_0x2cad('0xf2')]['id']==_0x2b5624['id']&&'insertion'==_0xdaf126[_0x2cad('0x8c')]&&_0xdaf126[_0x2cad('0xaf')]==_0x5e50e8&&(_0x25256c(_0xdaf126['getRanges'](),_0x349088)||_0x25256c(_0x349088,_0xdaf126['getRanges']()))){for(const _0x2cd9ce of _0x349088)_0xdaf126['addRange'](_0x2cd9ce);return _0xdaf126;}if(this[_0x2cad('0x13')])for(const _0x353f54 of _0x349088)for(const {suggestion:_0x487efb,meta:_0x4819fd}of this[_0x2cad('0x2d')](_0x353f54,_0x2cad('0xa8'))){if(!_0x4819fd[_0x2cad('0x54')])continue;let _0x4ada52=!0x0;for(const _0x3c7a72 of _0x487efb[_0x2cad('0x110')]())for(const _0x2303b6 of _0x349088)if(!_0x3c7a72[_0x2cad('0x88')](_0x2303b6)){_0x4ada52=!0x1;break;}if(_0x4ada52)return _0x487efb;}const _0x33b12b=_0x103e67(),_0x31012f=_0x2b5624['id'],_0x3a6f90=_0x2cad('0xf6')+_0x5e50e8,_0x27bad0=this['_setSuggestionData']({'id':_0x33b12b,'type':_0x3a6f90,'createdAt':new Date(),'authorId':_0x31012f,'attributes':_0x46e423});for(const _0x2079f9 of _0x349088)this[_0x2cad('0x6d')](_0x3a6f90,_0x33b12b,_0x31012f,_0x2079f9,_0x519345['getMultiRangeId']());return _0x27bad0;}['markInlineFormat'](_0x2ded73,_0xa2b2ea,_0x587b7c=null,_0x478f00={}){if(_0x587b7c=_0x587b7c||$t(_0xa2b2ea),_0x2ded73['isCollapsed'])return null;if(_0x2cad('0x10')===this[_0x2cad('0x74')]){const _0x30db27=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0xb4'),_0x587b7c,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0x30db27([_0x2ded73],_0xa2b2ea,_0x478f00)),null;}const _0x3f9fd3=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'],_0x53fe26=[];if(_0x2cad('0xa9')!==this[_0x2cad('0x74')])for(const {suggestion:_0xaa4251,meta:_0x330e72}of this[_0x2cad('0x2d')](_0x2ded73,'insertion'))_0x330e72[_0x2cad('0x54')]&&!_0x330e72[_0x2cad('0x82')]&&_0x53fe26[_0x2cad('0xa3')](..._0xaa4251[_0x2cad('0x110')]());const _0x517353=function(_0x49e6b5,_0x3b0122){const _0x23c56c=[];for(const _0x4aa7f4 of _0x3b0122){const _0x552786=_0x49e6b5[_0x2cad('0xe0')](_0x4aa7f4);_0x552786&&_0x23c56c[_0x2cad('0xa3')](_0x552786);}return _0x23c56c;}(_0x2ded73,_0x53fe26),_0x4339a6=function(_0x341b2d,_0x10ec2f){const _0x2b1d78=[_0x341b2d];for(const _0x18e1dc of _0x10ec2f){let _0x574928=0x0;for(;_0x574928<_0x2b1d78[_0x2cad('0xf5')];){const _0x58c18b=_0x2b1d78[_0x574928][_0x2cad('0xed')](_0x18e1dc);_0x2b1d78['splice'](_0x574928,0x1,..._0x58c18b),_0x574928+=_0x58c18b['length'];}}return _0x2b1d78;}(_0x2ded73,_0x53fe26);_0x517353[_0x2cad('0xf5')]&&this[_0x2cad('0x25')][_0x2cad('0x101')](()=>{for(const _0x583103 of _0x517353){const _0x5ecb88=this['_suggestionFactory'][_0x2cad('0x81')](_0x2cad('0xb4'),_0x587b7c,_0x2cad('0xd4'));this['forceDefaultExecution'](()=>_0x5ecb88([_0x583103],_0xa2b2ea,_0x478f00));}});for(const _0x59dfc5 of _0x4339a6){let _0x50da7e=null,_0x26b165=_0x59dfc5['start'],_0x13b8fd=_0x59dfc5['end'];for(const {suggestion:_0x52342b,meta:_0x3a2244}of this[_0x2cad('0x2d')](_0x59dfc5,_0x2cad('0xb4'))){if(!_0x3a2244['isOwn'])continue;if(_0x52342b[_0x2cad('0xaf')]!=_0x587b7c)continue;const _0x5a2961=_0x52342b[_0x2cad('0x63')]();if(_0x5a2961[_0x2cad('0x88')](_0x59dfc5,!0x0))return null;_0x26b165=_0x26b165[_0x2cad('0x44')](_0x5a2961[_0x2cad('0x103')])?_0x26b165:_0x5a2961['start'],_0x13b8fd=_0x13b8fd['isAfter'](_0x5a2961[_0x2cad('0x2f')])?_0x13b8fd:_0x5a2961[_0x2cad('0x2f')],_0x50da7e?_0x5a2961[_0x2cad('0x103')][_0x2cad('0x44')](_0x50da7e[_0x2cad('0x63')]()[_0x2cad('0x103')])?(_0x50da7e['removeMarkers'](),_0x50da7e=_0x52342b):_0x52342b[_0x2cad('0x76')]():_0x50da7e=_0x52342b;}const _0x1a5bce=this[_0x2cad('0x25')]['createRange'](_0x26b165,_0x13b8fd);if(_0x50da7e)this[_0x2cad('0xa')](_0x50da7e,_0x1a5bce);else{const _0x25c90d=_0x103e67(),_0x4bdafa=_0x3f9fd3['id'];this[_0x2cad('0x3a')]({'id':_0x25c90d,'type':_0x2cad('0x117')+_0x587b7c,'data':_0xa2b2ea,'createdAt':new Date(),'authorId':_0x4bdafa,'attributes':_0x478f00}),this['_addSuggestionMarker'](_0x2cad('0x117')+_0x587b7c,_0x25c90d,_0x4bdafa,_0x1a5bce);}}return null;}[_0x2cad('0x34')](_0x224f7e,_0x463fcd,_0x4fa7da=[],_0x4b3318=null,_0x2f553b={}){_0x463fcd['formatGroupId']||(_0x463fcd[_0x2cad('0x1d')]=_0x463fcd[_0x2cad('0x12a')]),_0x463fcd[_0x2cad('0x108')]=_0x224f7e['is'](_0x2cad('0x31')),_0x4b3318=_0x4b3318||$t(_0x463fcd);const _0x5bdc95=_0x4fa7da['map'](_0x53f2c1=>Rt(_0x53f2c1,this[_0x2cad('0x25')])),_0x5a2c51=_0x224f7e['is'](_0x2cad('0x31'))?_0x224f7e:Rt(_0x224f7e,this[_0x2cad('0x25')]);if('never'===this['_trackFormatChanges']){const _0x1243ac=this[_0x2cad('0x45')]['getSuggestionCallback'](_0x2cad('0x137'),_0x4b3318,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0x1243ac([_0x5a2c51],_0x463fcd,_0x2f553b)),null;}_0x5bdc95[_0x2cad('0xa3')](_0x5a2c51);let _0x6ea91f=!0x0;for(const _0x4c1768 of _0x5bdc95)if(!this['_rangeIsInLocalUserInsertion'](_0x4c1768)){_0x6ea91f=!0x1;break;}if(_0x6ea91f&&_0x2cad('0xa9')!==this[_0x2cad('0x74')]){const _0x49c6a7=this['_suggestionFactory']['getSuggestionCallback'](_0x2cad('0x137'),_0x4b3318,'accept');return this[_0x2cad('0x5d')](()=>_0x49c6a7([_0x5a2c51],_0x463fcd,_0x2f553b)),null;}let _0xd2616c=null,_0x37adba=_0x5a2c51[_0x2cad('0x103')],_0x3110a3=_0x5a2c51[_0x2cad('0x2f')];for(const {suggestion:_0x5e72fe,meta:_0xf7ec5c}of this[_0x2cad('0x2d')](_0x5a2c51,_0x2cad('0x137'))){if(!_0xf7ec5c[_0x2cad('0x54')]||_0xf7ec5c[_0x2cad('0x10c')]||_0xf7ec5c[_0x2cad('0xde')]||_0xf7ec5c['isInsideObject'])continue;if(_0x5e72fe[_0x2cad('0xc')]['formatGroupId']!=_0x463fcd['formatGroupId'])continue;const _0x342d31=_0x5e72fe[_0x2cad('0x63')]();if(_0x5e72fe['subType']==_0x4b3318){if(_0x342d31[_0x2cad('0x88')](_0x5a2c51,!0x0))return null;_0x37adba=_0x37adba[_0x2cad('0x44')](_0x342d31[_0x2cad('0x103')])?_0x37adba:_0x342d31[_0x2cad('0x103')],_0x3110a3=_0x3110a3[_0x2cad('0x104')](_0x342d31['end'])?_0x3110a3:_0x342d31['end'],_0xd2616c?_0x342d31[_0x2cad('0x103')]['isBefore'](_0xd2616c['getFirstRange']()['start'])?(_0xd2616c[_0x2cad('0x76')](),_0xd2616c=_0x5e72fe):_0x5e72fe[_0x2cad('0x76')]():_0xd2616c=_0x5e72fe;}else{const _0x2c6a07=_0x5a2c51[_0x2cad('0xe0')](_0x342d31);this['_cutOutSuggestionMarker'](_0x5e72fe,_0x2c6a07);}}const _0x29ace2=this['editor'][_0x2cad('0xb6')]['get'](_0x2cad('0xb9'))['me'],_0x376d3e=_0x103e67(),_0x5743d5=_0x29ace2['id'];if(_0xd2616c)return this[_0x2cad('0xa')](_0xd2616c,this['_model']['createRange'](_0x37adba,_0x3110a3)),_0xd2616c;{const _0xa7092b=this[_0x2cad('0x3a')]({'id':_0x376d3e,'type':_0x2cad('0xf3')+_0x4b3318,'data':_0x463fcd,'createdAt':new Date(),'authorId':_0x5743d5,'attributes':_0x2f553b});return this['_addSuggestionMarker'](_0x2cad('0xf3')+_0x4b3318,_0x376d3e,_0x5743d5,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x37adba,_0x3110a3)),_0xa7092b;}}[_0x2cad('0x13a')](_0x2b6f5a,_0x10660e,_0x588eb4=[],_0x427763=null,_0x32aa7b={}){_0x10660e[_0x2cad('0x1d')]||(_0x10660e[_0x2cad('0x1d')]=_0x10660e[_0x2cad('0x12a')]);const _0x2694d3=_0x2b6f5a[0x0];_0x10660e[_0x2cad('0x108')]=_0x2694d3['is'](_0x2cad('0x31')),_0x427763=_0x427763||$t(_0x10660e);const _0x1f92e1=_0x588eb4[_0x2cad('0x10b')](_0x329f97=>Rt(_0x329f97,this[_0x2cad('0x25')])),_0x354b3d=_0x2694d3['is'](_0x2cad('0x31'))?_0x2b6f5a:_0x2b6f5a[_0x2cad('0x10b')](_0x203ef6=>Rt(_0x203ef6,this[_0x2cad('0x25')]));if(_0x2cad('0x10')===this[_0x2cad('0x74')]){const _0xc3d982=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0x137'),_0x427763,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0xc3d982(_0x354b3d,_0x10660e,_0x32aa7b)),null;}_0x1f92e1[_0x2cad('0xa3')](..._0x354b3d);let _0x8d07a6=!0x0;for(const _0xcbac6b of _0x1f92e1)if(!this[_0x2cad('0x2')](_0xcbac6b)){_0x8d07a6=!0x1;break;}if(_0x8d07a6&&_0x2cad('0xa9')!==this['_trackFormatChanges']){const _0x4c7f53=this[_0x2cad('0x45')]['getSuggestionCallback'](_0x2cad('0x137'),_0x427763,_0x2cad('0xd4'));return this['forceDefaultExecution'](()=>_0x4c7f53(_0x354b3d,_0x10660e,_0x32aa7b)),null;}const _0x116e76=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'];for(const _0x24af8a of this[_0x2cad('0x38')]()){if(_0x24af8a[_0x2cad('0xf2')]['id']!=_0x116e76['id'])continue;if('formatBlock'!=_0x24af8a[_0x2cad('0x8c')]||_0x24af8a['data'][_0x2cad('0x1d')]!=_0x10660e[_0x2cad('0x1d')])continue;const _0x1769c9=_0x24af8a['subType']==_0x427763;for(let _0x22968e=0x0;_0x22968e<_0x354b3d[_0x2cad('0xf5')];_0x22968e++){const _0xae0785=_0x354b3d[_0x22968e];for(const _0x352170 of _0x24af8a[_0x2cad('0x124')]()){const _0x28368f=_0x352170[_0x2cad('0x85')]();if(_0xae0785[_0x2cad('0xc7')](_0x28368f)){_0x1769c9?(_0x354b3d[_0x2cad('0x58')](_0x22968e,0x1),_0x22968e--):_0x24af8a[_0x2cad('0xc4')](_0x352170[_0x2cad('0x2b')]);break;}}}}if(0x0==_0x354b3d[_0x2cad('0xf5')])return null;const _0x43544d=this[_0x2cad('0x45')][_0x2cad('0x81')]('formatBlock',_0x427763,'join');for(const _0x552496 of this[_0x2cad('0x38')]())if(_0x552496[_0x2cad('0xf2')]['id']==_0x116e76['id']&&'formatBlock'==_0x552496[_0x2cad('0x8c')]&&_0x552496[_0x2cad('0xc')][_0x2cad('0x1d')]==_0x10660e['formatGroupId']&&_0x552496['subType']==_0x427763&&(_0x43544d(_0x552496[_0x2cad('0x110')](),_0x354b3d)||_0x43544d(_0x354b3d,_0x552496[_0x2cad('0x110')]()))){for(const _0x24da6a of _0x354b3d)_0x552496['addRange'](_0x24da6a);return _0x552496;}const _0x13832c=_0x103e67(),_0x120ae1=_0x116e76['id'],_0xffa951='formatBlock:'+_0x427763,_0x32cb7f=this[_0x2cad('0x3a')]({'id':_0x13832c,'type':_0xffa951,'data':_0x10660e,'createdAt':new Date(),'authorId':_0x120ae1,'attributes':_0x32aa7b});for(const _0xe75fab of _0x354b3d)this[_0x2cad('0x6d')](_0xffa951,_0x13832c,_0x120ae1,_0xe75fab,_0x519345[_0x2cad('0x52')]());return _0x32cb7f;}[_0x2cad('0xbe')](_0x3903c9,_0x2e3c7b=null,_0x2827b1={}){if(_0x3903c9[_0x2cad('0x19')])return null;const _0x645765=this['editor'][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'],_0x692ff=new _0x52da85(_0x3903c9[_0x2cad('0x103')],_0x3903c9[_0x2cad('0x2f')]);for(const {suggestion:_0x447c48,meta:_0x1b4103}of this[_0x2cad('0x2d')](_0x692ff,_0x2cad('0xa8')))if(_0x1b4103[_0x2cad('0x54')]&&!_0x1b4103['isNextTo']){if(_0x447c48[_0x2cad('0xb8')]){const _0x547b05=_0x447c48[_0x2cad('0x110')]()[_0x2cad('0x14')](_0x5ec524=>_0x2cad('0x129')!=_0x5ec524[_0x2cad('0x125')][_0x2cad('0xdb')]);_0x547b05[_0x2cad('0xb2')](_0x5e15ae=>_0x692ff[_0x2cad('0x88')](_0x5e15ae,!0x0))&&_0x447c48['discard']();if(_0x547b05[_0x2cad('0x8e')](_0x4a7105=>_0x4a7105[_0x2cad('0x88')](_0x692ff,!0x0))){const _0x5b17b6=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0x86'),_0x2e3c7b,_0x2cad('0xd4'));return this[_0x2cad('0x5d')](()=>_0x5b17b6([_0x692ff],null,_0x2827b1)),null;}}else{const _0x10890c=_0x692ff['getIntersection'](_0x447c48[_0x2cad('0x63')]());null!==_0x10890c&&_0x447c48[_0x2cad('0xdf')]([_0x10890c],null,_0x2827b1);}}if(_0x692ff['detach'](),_0x692ff['isCollapsed']||'$graveyard'==_0x692ff[_0x2cad('0x125')][_0x2cad('0xdb')])return null;let _0x3bed42=null,_0x176186=_0x692ff[_0x2cad('0x103')],_0x266c86=_0x692ff[_0x2cad('0x2f')];for(const {suggestion:_0x12d422,meta:_0x4e4078}of this[_0x2cad('0x2d')](_0x692ff,_0x2cad('0x86')))if(_0x4e4078[_0x2cad('0x54')]){if(_0x12d422[_0x2cad('0xb8')]&&this[_0x2cad('0x13')]){let _0x444af3=!0x0;for(const _0x326ea4 of _0x12d422[_0x2cad('0x110')]()){if(_0x326ea4[_0x2cad('0x88')](_0x692ff,!0x0))return _0x12d422;_0x692ff[_0x2cad('0x88')](_0x326ea4)||(_0x444af3=!0x1);}_0x444af3&&_0x12d422['discard']();}else{const _0x380870=_0x12d422['getFirstRange']();if(_0x380870[_0x2cad('0x88')](_0x692ff,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4e4078['containsRangeInObject'])continue;return _0x12d422;}_0x176186=_0x176186[_0x2cad('0x44')](_0x380870['start'])?_0x176186:_0x380870[_0x2cad('0x103')],_0x266c86=_0x266c86[_0x2cad('0x104')](_0x380870[_0x2cad('0x2f')])?_0x266c86:_0x380870[_0x2cad('0x2f')],_0x3bed42?_0x380870[_0x2cad('0x103')][_0x2cad('0x44')](_0x3bed42['getFirstRange']()[_0x2cad('0x103')])?(_0x3bed42[_0x2cad('0x76')](),_0x3bed42=_0x12d422):_0x12d422['removeMarkers']():_0x3bed42=_0x12d422;}}if(_0x3bed42)return this['_setSuggestionRange'](_0x3bed42,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x176186,_0x266c86)),_0x3bed42;{const _0xe10654=_0x103e67(),_0x269015=this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x176186,_0x266c86),_0x1eefab=_0x645765['id'],_0x4c0995=_0x2e3c7b?_0x2cad('0xc5')+_0x2e3c7b:_0x2cad('0x86'),_0x3ca4a7=this['_setSuggestionData']({'id':_0xe10654,'type':_0x4c0995,'createdAt':new Date(),'authorId':_0x1eefab,'attributes':_0x2827b1});return this[_0x2cad('0x6d')](_0x4c0995,_0xe10654,_0x1eefab,_0x269015),_0x3ca4a7;}}[_0x2cad('0x8d')](_0x2c28ee,_0x31f2b6=_0x2cad('0x36'),_0x4482f8={}){const _0x1ba7d3=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0xb9'))['me'],_0x299937=_0x2c28ee[_0x2cad('0x10b')](_0x494cd4=>new _0x52da85(_0x494cd4[_0x2cad('0x103')],_0x494cd4[_0x2cad('0x2f')])),_0x20812a=new Set();for(const _0x1ea947 of _0x299937)for(const {suggestion:_0x5b758d,meta:_0x428ebb}of this[_0x2cad('0x2d')](_0x1ea947,'insertion'))_0x428ebb[_0x2cad('0x54')]&&!_0x428ebb[_0x2cad('0x10c')]&&_0x20812a[_0x2cad('0x64')](_0x5b758d);for(const _0x5245f2 of _0x20812a)if(_0x5245f2[_0x2cad('0xb8')]){const _0x47d2d2=_0x5245f2['getRanges']();(!_0x5245f2[_0x2cad('0xa4')]||!_0x5245f2[_0x2cad('0xa4')][_0x2cad('0x56')])&&(_0x47d2d2[_0x2cad('0xb2')](_0x2737f5=>_0x299937[_0x2cad('0x8e')](_0x35e6b9=>_0x35e6b9['containsRange'](_0x2737f5,!0x0)))&&_0x5245f2[_0x2cad('0x6f')]());if(_0x299937['every'](_0x32bfbc=>_0x47d2d2[_0x2cad('0x8e')](_0x5b5d15=>_0x5b5d15[_0x2cad('0x88')](_0x32bfbc,!0x0)))){const _0x1714a4=this[_0x2cad('0x45')][_0x2cad('0x81')](_0x2cad('0x86'),_0x31f2b6,_0x2cad('0xd4'));return this['forceDefaultExecution'](()=>_0x1714a4(_0x2c28ee,null,_0x4482f8)),null;}}else{const _0x3336f9=_0x5245f2[_0x2cad('0x63')]();_0x299937['some'](_0x1a7535=>_0x1a7535['containsRange'](_0x3336f9,!0x0))&&_0x5245f2[_0x2cad('0x6f')]();if(_0x299937['every'](_0x5758fc=>_0x3336f9[_0x2cad('0x88')](_0x5758fc,!0x0))){const _0x81a6d6=this['_suggestionFactory'][_0x2cad('0x81')](_0x2cad('0x86'),_0x31f2b6,'accept');return this['forceDefaultExecution'](()=>_0x81a6d6(_0x299937,null,_0x4482f8)),null;}}const _0x408c98=this['_suggestionFactory'][_0x2cad('0x81')](_0x2cad('0x86'),_0x31f2b6,_0x2cad('0xfa'));let _0x5cac77=null;for(const _0x3889cc of this[_0x2cad('0x38')]())if(_0x3889cc['author']['id']==_0x1ba7d3['id']&&_0x3889cc[_0x2cad('0x13f')]&&_0x2cad('0x86')==_0x3889cc[_0x2cad('0x8c')]&&_0x3889cc[_0x2cad('0xaf')]==_0x31f2b6&&(_0x408c98(_0x3889cc[_0x2cad('0x110')](),_0x299937)||_0x408c98(_0x299937,_0x3889cc[_0x2cad('0x110')]()))){if(_0x5cac77){if(_0x3889cc[_0x2cad('0xe2')]&&_0x3889cc[_0x2cad('0xe2')][_0x2cad('0xf5')])continue;for(const _0x3b5400 of _0x3889cc[_0x2cad('0x110')]())_0x5cac77[_0x2cad('0x70')](_0x3b5400)||_0x5cac77[_0x2cad('0x12')](_0x3b5400);_0x3889cc[_0x2cad('0x76')]();}else{_0x5cac77=_0x3889cc;for(const _0x49d3b7 of _0x299937)_0x3889cc[_0x2cad('0x70')](_0x49d3b7)||_0x3889cc[_0x2cad('0x12')](_0x49d3b7);}}if(_0x5cac77)return _0x5cac77;_0x20812a[_0x2cad('0x130')]();for(const _0x24945f of _0x299937)for(const {suggestion:_0x2af473,meta:_0x324c33}of this[_0x2cad('0x2d')](_0x24945f,_0x2cad('0x86')))_0x324c33[_0x2cad('0x54')]&&_0x20812a[_0x2cad('0x64')](_0x2af473);for(const _0x43ee20 of _0x20812a){const _0x21bc79=_0x43ee20['getRanges']();if(!_0x4482f8||!_0x4482f8[_0x2cad('0x56')]){if(_0x299937['every'](_0xd21fd3=>_0x21bc79[_0x2cad('0x8e')](_0x260cde=>_0x260cde[_0x2cad('0x88')](_0xd21fd3,!0x0))))return _0x43ee20;}(!_0x43ee20[_0x2cad('0xa4')]||!_0x43ee20[_0x2cad('0xa4')]['skipNestingCheck'])&&(_0x21bc79[_0x2cad('0xb2')](_0x2ca21c=>_0x299937[_0x2cad('0x8e')](_0x25173d=>_0x25173d['containsRange'](_0x2ca21c,!0x0)))&&_0x43ee20[_0x2cad('0x6f')]());}const _0x19ccd0=_0x103e67(),_0x44e398=_0x1ba7d3['id'],_0x4eda0b='deletion:'+_0x31f2b6,_0x36f6fb=this[_0x2cad('0x3a')]({'id':_0x19ccd0,'type':_0x4eda0b,'createdAt':new Date(),'authorId':_0x44e398,'attributes':_0x4482f8});for(const _0x3a0863 of _0x299937)_0x3a0863[_0x2cad('0xee')](),_0x3a0863[_0x2cad('0x19')]||_0x2cad('0x129')==_0x3a0863['root'][_0x2cad('0xdb')]||this['_addSuggestionMarker'](_0x4eda0b,_0x19ccd0,_0x44e398,_0x3a0863,_0x519345['getMultiRangeId']());return _0x36f6fb;}[_0x2cad('0xa')](_0x2ca3c2,_0x312906){const _0x152e81=_0x2ca3c2[_0x2cad('0xef')]();this[_0x2cad('0x25')][_0x2cad('0x101')](_0x34555f=>{_0x34555f[_0x2cad('0x4a')](_0x152e81,{'range':_0x312906});});}[_0x2cad('0x115')](_0x1c0075){const _0x5189c6=_0x1c0075['id'],_0x4cf0a2=this['editor'][_0x2cad('0xe4')][_0x2cad('0xeb')](_0x2cad('0x132'));this['_commentsRepository'][_0x2cad('0x97')](_0x5189c6)||this['_commentsRepository'][_0x2cad('0x23')]({'channelId':_0x4cf0a2,'threadId':_0x5189c6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4b9e5e=this[_0x2cad('0xd7')]['getCommentThread'](_0x5189c6);_0x4b9e5e[_0x2cad('0xec')](_0x2cad('0x105')),_0x4b9e5e[_0x2cad('0x105')]=!0x1,_0x1c0075[_0x2cad('0xe2')]=_0x4b9e5e;}[_0x2cad('0x119')](_0x4770dc,_0x1c86e9,_0xab437b,_0x41f48e){if(_0x4770dc[_0x2cad('0x8c')]!=_0x1c86e9||_0x4770dc['subType']!=_0xab437b||_0x4770dc[_0x2cad('0x1c')]['id']!=_0x41f48e)throw this[_0x2cad('0x138')][_0x2cad('0x12c')]('track-changes-suggestion-data-mismatch'),new _0x312a50(_0x2cad('0xd5'),this);}[_0x2cad('0x4b')](_0x568a97,_0x44dcb4){const _0x26186f=_0x568a97[_0x2cad('0x63')]();if(_0x44dcb4[_0x2cad('0xc7')](_0x26186f))_0x568a97[_0x2cad('0x76')]();else{if(_0x26186f[_0x2cad('0x88')](_0x44dcb4)){const _0x5032da=this['_model']['createPositionAt'](_0x44dcb4[_0x2cad('0x103')]['nodeBefore'],_0x2cad('0x2f'));this[_0x2cad('0xa')](_0x568a97,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x26186f['start'],_0x5032da));const _0x7361a2=_0x103e67(),_0x4c573b=_0x568a97[_0x2cad('0x1c')]['id'],_0x26d3a8=_0x568a97[_0x2cad('0x8c')]+':'+_0x568a97[_0x2cad('0xaf')];this[_0x2cad('0x3a')]({'id':_0x7361a2,'type':_0x26d3a8,'createdAt':new Date(),'authorId':_0x4c573b,'data':_0x568a97[_0x2cad('0xc')],'attributes':_0x568a97[_0x2cad('0xa4')]});const _0x220cb2=this[_0x2cad('0x25')][_0x2cad('0x98')](_0x44dcb4[_0x2cad('0x2f')]['parent'],_0x2cad('0x61')),_0x4bf761=this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x220cb2,_0x26186f['end']);this[_0x2cad('0x6d')](_0x26d3a8,_0x7361a2,_0x4c573b,_0x4bf761);}else{if(_0x26186f[_0x2cad('0x7b')](_0x44dcb4[_0x2cad('0x103')])){const _0x2b98be=this[_0x2cad('0x25')][_0x2cad('0x98')](_0x44dcb4['start']['nodeBefore'],_0x2cad('0x2f'));this['_setSuggestionRange'](_0x568a97,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x26186f['start'],_0x2b98be));}else{const _0x10f548=this['_model'][_0x2cad('0x98')](_0x44dcb4[_0x2cad('0x2f')]['parent'],'after');this['_setSuggestionRange'](_0x568a97,this['_model'][_0x2cad('0x13b')](_0x10f548,_0x26186f[_0x2cad('0x2f')]));}}}}[_0x2cad('0x2')](_0x2263eb){for(const {suggestion:_0x468fbc,meta:_0x1b30a8}of this[_0x2cad('0x2d')](_0x2263eb,_0x2cad('0xa8'))){if(!_0x1b30a8[_0x2cad('0x54')])continue;const _0x185a74=_0x468fbc[_0x2cad('0x110')]();for(const _0x41d024 of _0x185a74)if(!_0x2263eb['getDifference'](_0x41d024)[_0x2cad('0xf5')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2ba749){const _0x48cd86=this['editor'][_0x2cad('0xb6')]['get'](_0x2cad('0xb9'))[_0x2cad('0x5a')](_0x2ba749);if(!_0x48cd86)throw new _0x312a50(_0x2cad('0x89'),this);return _0x48cd86;}['_getExternalAuthor'](_0x2fb261){const _0x50e547=this[_0x2cad('0x138')]['plugins'][_0x2cad('0xeb')](_0x2cad('0xb9')),_0x3fbefc=_0x1ad6c7('external:'+_0x2fb261),_0x1d471b=_0x50e547[_0x2cad('0x5a')](_0x3fbefc);return _0x1d471b||_0x50e547[_0x2cad('0x139')]({'id':_0x3fbefc,'name':_0x2fb261});}[_0x2cad('0xcf')](_0x1a337a,_0xf1ad9e,_0x206999,_0x36717b,_0x429910){const _0x22eb54=this[_0x2cad('0x9b')](_0x36717b),_0x41e366=this[_0x2cad('0x45')][_0x2cad('0x102')](_0x1a337a,_0xf1ad9e,_0x206999,_0x22eb54,_0x429910,_0x11d575=>this['_updateSuggestionData'](_0x206999,{'attributes':_0x11d575}));return this['listenTo'](_0x41e366,_0x2cad('0xd4'),()=>{this[_0x2cad('0x39')](_0x206999,{'state':_0x2cad('0x96')});},{'priority':_0x2cad('0xaa')}),this[_0x2cad('0xac')](_0x41e366,_0x2cad('0x6f'),()=>{this[_0x2cad('0x39')](_0x206999,{'state':_0x2cad('0x2c')});},{'priority':'high'}),this[_0x2cad('0xc0')][_0x2cad('0x37')](_0x206999,_0x41e366),this[_0x2cad('0x5f')][_0x2cad('0x37')](_0x41e366,_0x2cad('0x92')),_0x41e366;}[_0x2cad('0xad')](_0x3526dd){const _0x4b0fb3=_0x3526dd[_0x2cad('0xd2')](':');return{'group':_0x4b0fb3[0x0],'type':_0x4b0fb3[0x1],'subType':_0x4b0fb3[_0x2cad('0xf5')]>=0x5?_0x4b0fb3[0x2]:null,'id':_0x4b0fb3[_0x2cad('0xf5')]<0x5?_0x4b0fb3[0x2]:_0x4b0fb3[0x3],'authorId':_0x4b0fb3[_0x2cad('0xf5')]<0x5?_0x4b0fb3[0x3]:_0x4b0fb3[0x4],'markerCount':0x6==_0x4b0fb3['length']?_0x4b0fb3[0x5]:null};}['_breakSuggestionMarker'](_0x5c0b00,_0xe61c41,_0x202745){const _0x19768a=_0x5c0b00[_0x2cad('0x63')](),_0x1c564d=_0x19768a[_0x2cad('0x103')],_0x198a05=_0x19768a[_0x2cad('0x2f')];this[_0x2cad('0xa')](_0x5c0b00,this['_model'][_0x2cad('0x13b')](_0x1c564d,_0xe61c41));const _0x3534c3=_0x103e67(),_0x4a7402=_0x5c0b00[_0x2cad('0x1c')]['id'],_0x3de8d7=_0x5c0b00['type']+(_0x5c0b00[_0x2cad('0xaf')]?':'+_0x5c0b00['subType']:'');this[_0x2cad('0x3a')]({'id':_0x3534c3,'type':_0x3de8d7,'createdAt':new Date(),'authorId':_0x4a7402,'originalSuggestionId':_0x5c0b00['id'],'attributes':_0x5c0b00[_0x2cad('0xa4')],'data':_0x5c0b00[_0x2cad('0xc')]}),'formatBlock'==_0x5c0b00['type']&&(_0x202745=this[_0x2cad('0x25')][_0x2cad('0x12f')](_0x202745['parent'])),this['_addSuggestionMarker'](_0x3de8d7,_0x3534c3,_0x4a7402,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0x202745,_0x198a05));}[_0x2cad('0x2d')](_0x212b72,_0x5c27e3=null){const _0x1b816e=[],_0x4d2b95=this['_model'][_0x2cad('0x112')],_0x3647ad=this[_0x2cad('0x138')][_0x2cad('0xb6')]['get'](_0x2cad('0xb9'))['me'];for(const _0xfd4a55 of this[_0x2cad('0x38')]())if(_0xfd4a55[_0x2cad('0x13f')]&&(!_0x5c27e3||_0xfd4a55[_0x2cad('0x8c')]==_0x5c27e3))for(const _0x25750a of _0xfd4a55[_0x2cad('0x110')]()){const _0x109935=_0x212b72[_0x2cad('0x103')][_0x2cad('0xc7')](_0x25750a['end'])||_0x212b72['end'][_0x2cad('0xc7')](_0x25750a[_0x2cad('0x103')]);if(_0x109935||_0x212b72['getIntersection'](_0x25750a)){const _0x5bc758=_0x212b72[_0x2cad('0x88')](_0x25750a)&&Bt(_0x4d2b95,_0x25750a['start'],_0x212b72),_0x5558d0=_0x25750a[_0x2cad('0x88')](_0x212b72)&&Bt(_0x4d2b95,_0x212b72[_0x2cad('0x103')],_0x25750a);_0x1b816e[_0x2cad('0xa3')]({'suggestion':_0xfd4a55,'meta':{'isOwn':_0x3647ad==_0xfd4a55[_0x2cad('0xf2')],'isNextTo':_0x109935,'isInsideObject':_0x5bc758,'containsRangeInObject':_0x5558d0}});break;}}return _0x1b816e;}[_0x2cad('0x6d')](_0x5d94d3,_0x1bb7cf,_0x17929e,_0x4ba84a,_0xd04f8d){this[_0x2cad('0x25')]['change'](_0x735c67=>{let _0xd9060e=_0x2cad('0x109')+_0x5d94d3+':'+_0x1bb7cf+':'+_0x17929e;_0xd04f8d&&(_0xd9060e=_0xd9060e+':'+_0xd04f8d),_0x735c67[_0x2cad('0xc9')](_0xd9060e,{'range':_0x4ba84a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2cad('0x13c')](_0x1e83dc){const _0x199e19=_0x1e83dc[_0x2cad('0xe8')],_0x5082f7=_0x1e83dc[_0x2cad('0x2a')];_0x1e83dc[_0x2cad('0xe8')]=null,null!=_0x199e19&&(_0x199e19[_0x2cad('0x2a')]=null),_0x1e83dc['next']=null,null!=_0x5082f7&&(_0x5082f7[_0x2cad('0xe8')]=null),_0x2cad('0x90')==this[_0x2cad('0x5f')]['get'](_0x1e83dc)&&(this[_0x2cad('0x5f')]['set'](_0x1e83dc,_0x2cad('0x60')),this[_0x2cad('0x11b')](_0x2cad('0x11a'),_0x1e83dc,_0x199e19,_0x5082f7));}[_0x2cad('0x3a')](_0x33fa90){const _0x3eb057=_0x33fa90['id'],_0x3c6789=this[_0x2cad('0x2e')](_0x33fa90);if(this[_0x2cad('0xf8')]&&this[_0x2cad('0xf8')]['addSuggestion']){const _0x3671e1=this[_0x2cad('0x138')][_0x2cad('0xb6')]['get'](_0x2cad('0x3c')),_0x41d025=_0x3c6789[_0x2cad('0x59')],_0x268dd6=_0x3c6789['subType']?_0x3c6789['type']+':'+_0x3c6789['subType']:_0x3c6789[_0x2cad('0x8c')],_0x4abcd6=this[_0x2cad('0x138')][_0x2cad('0x106')],_0x1c4b40=_0x3671e1[_0x2cad('0x64')](_0x2c44d2(_0x4abcd6,_0x2cad('0x5e'))),_0x218ce4={'id':_0x3eb057,'type':_0x268dd6,'hasComments':_0x41d025,'data':_0x33fa90[_0x2cad('0xc')]||null,'originalSuggestionId':_0x33fa90[_0x2cad('0x40')]||null,'attributes':_0x3c6789[_0x2cad('0xa4')]};this['_adapter'][_0x2cad('0x10d')](_0x218ce4)[_0x2cad('0x75')](_0x5ea3c6=>{_0x3c6789[_0x2cad('0x21')]=!0x0,_0x3671e1[_0x2cad('0x77')](_0x1c4b40),_0x5ea3c6&&_0x5ea3c6[_0x2cad('0x12d')]&&(this['_suggestions'][_0x2cad('0xeb')](_0x3eb057)['createdAt']=_0x5ea3c6['createdAt']);})[_0x2cad('0xbc')](_0x563a7c=>{throw _0x23e72b('error-saving-suggestion-data-suggestion-discarded'),this[_0x2cad('0x138')][_0x2cad('0x24')][_0x2cad('0xbd')]({'isUndoable':!0x1},()=>{_0x3c6789['discard']();}),_0x3c6789[_0x2cad('0x127')](),this['_suggestions'][_0x2cad('0x94')](_0x3c6789['id']),this['_suggestionState']['delete'](_0x3c6789),_0x563a7c;});}return _0x3c6789;}[_0x2cad('0x39')](_0x33b370,_0x8a4345){const _0x242663=this[_0x2cad('0x138')][_0x2cad('0xb6')][_0x2cad('0xeb')](_0x2cad('0x3c')),_0x40495d=this[_0x2cad('0x12b')](_0x33b370);if(this[_0x2cad('0xf8')]&&this[_0x2cad('0xf8')][_0x2cad('0x51')]){if(_0x40495d['_saved']){const _0x26f2a5=_0x242663['add'](_0x2c44d2(this[_0x2cad('0x138')][_0x2cad('0x106')],_0x2cad('0x5e')));this['_adapter']['updateSuggestion'](_0x33b370,_0x8a4345)[_0x2cad('0x75')](()=>{_0x242663['remove'](_0x26f2a5);});}else _0x40495d['on'](_0x2cad('0x134'),()=>{this[_0x2cad('0x39')](_0x33b370,_0x8a4345);});}}[_0x2cad('0xa7')](_0x1104a7){if(!this[_0x2cad('0xf8')]||!this[_0x2cad('0xf8')][_0x2cad('0x12b')])throw new _0x312a50(_0x2cad('0x4e'),this);return this[_0x2cad('0xf8')][_0x2cad('0x12b')](_0x1104a7);}[_0x2cad('0x5')](_0x431c7a){const {id:_0x3b6a1d,type:_0x51c6b3,subType:_0x40ecb8,authorId:_0x4c4f97}=this[_0x2cad('0xad')](_0x431c7a),_0x5c9426=this[_0x2cad('0xc0')][_0x2cad('0xeb')](_0x3b6a1d)||this[_0x2cad('0xcf')](_0x51c6b3,_0x40ecb8,_0x3b6a1d,_0x4c4f97,{});switch(this[_0x2cad('0x119')](_0x5c9426,_0x51c6b3,_0x40ecb8,_0x4c4f97),this['_suggestionState'][_0x2cad('0xeb')](_0x5c9426)){case _0x2cad('0x92'):this[_0x2cad('0xa7')](_0x3b6a1d)['then'](_0x546522=>{let _0x4ef7a6=Promise[_0x2cad('0xea')]();_0x546522['hasComments']&&(_0x4ef7a6=this['_commentsRepository'][_0x2cad('0xd9')]({'channelId':this[_0x2cad('0x138')][_0x2cad('0xe4')][_0x2cad('0xeb')]('collaboration.channelId'),'threadId':_0x3b6a1d})),_0x4ef7a6['then'](()=>{this[_0x2cad('0x2e')](_0x546522)[_0x2cad('0x21')]=!0x0;});}),this[_0x2cad('0x5f')][_0x2cad('0x37')](_0x5c9426,_0x2cad('0x6a'));break;case _0x2cad('0x60'):this[_0x2cad('0x39')](_0x3b6a1d,{'state':_0x2cad('0xdc')});case _0x2cad('0x13e'):this[_0x2cad('0x5f')]['set'](_0x5c9426,_0x2cad('0x90')),this[_0x2cad('0x11b')](_0x2cad('0xf0'),_0x5c9426);break;case'ready':this['fire']('suggestionChanged',_0x5c9426);}return _0x5c9426[_0x2cad('0xbb')](_0x431c7a),_0x5c9426;}[_0x2cad('0x114')](_0x30803b){const _0x475c2b=Array['from'](_0x30803b)['filter'](_0x31343e=>!_0x31343e['isMultiRange']),_0x3c0c09=this[_0x2cad('0x38')]({'skipNotAttached':!0x0})[_0x2cad('0x14')](_0x31f274=>!_0x31f274[_0x2cad('0xb8')]),_0xe84dcf=_0x3c0c09[_0x2cad('0x14')](_0x187df9=>!_0x30803b[_0x2cad('0x9c')](_0x187df9)),_0x19207e=new Map(_0x3c0c09[_0x2cad('0x10b')](_0xea41dd=>[_0xea41dd,this[_0x2cad('0x45')][_0x2cad('0x81')](_0xea41dd[_0x2cad('0x8c')],_0xea41dd[_0x2cad('0xaf')],'chain')])),_0x584e42=new Map(_0x3c0c09[_0x2cad('0x10b')](_0x264ddd=>[_0x264ddd,_0x264ddd[_0x2cad('0x63')]()])),_0x3640ca=new Set(),_0x28129e=new Set();for(let _0x1445fe=0x0;_0x1445fe<_0x475c2b[_0x2cad('0xf5')];_0x1445fe++)_0x1dd02d(_0x475c2b[_0x1445fe],_0x475c2b,_0x1445fe+0x1);for(let _0x4fe9eb=0x0;_0x4fe9eb<_0x475c2b[_0x2cad('0xf5')];_0x4fe9eb++)_0x1dd02d(_0x475c2b[_0x4fe9eb],_0xe84dcf,0x0);for(let _0x27a8b7=0x0;_0x27a8b7<_0x475c2b[_0x2cad('0xf5')];_0x27a8b7++){const _0x153a04=_0x475c2b[_0x27a8b7];!_0x28129e[_0x2cad('0x9c')](_0x153a04)&&_0x153a04['previous']&&(_0x153a04[_0x2cad('0xe8')][_0x2cad('0x2a')]===_0x153a04&&(_0x153a04[_0x2cad('0xe8')][_0x2cad('0x2a')]=null),_0x153a04[_0x2cad('0xe8')]=null),!_0x3640ca['has'](_0x153a04)&&_0x153a04[_0x2cad('0x2a')]&&(_0x153a04[_0x2cad('0x2a')][_0x2cad('0xe8')]===_0x153a04&&(_0x153a04[_0x2cad('0x2a')]['previous']=null),_0x153a04['next']=null);}function _0x1dd02d(_0x30fce9,_0x2f32da,_0xd5dcad){for(let _0x26aef2=_0xd5dcad;_0x26aef2<_0x2f32da[_0x2cad('0xf5')];_0x26aef2++){const _0x79469e=_0x2d7200(_0x30fce9,_0x2f32da[_0x26aef2]);_0x79469e&&(_0x79469e[0x0][_0x2cad('0x2a')]=_0x79469e[0x1],_0x79469e[0x1][_0x2cad('0xe8')]=_0x79469e[0x0],_0x3640ca[_0x2cad('0x64')](_0x79469e[0x0]),_0x28129e[_0x2cad('0x64')](_0x79469e[0x1]));}}function _0x2d7200(_0x1f82d0,_0x36cda3){if(_0x1f82d0[_0x2cad('0xf2')]['id']!==_0x36cda3[_0x2cad('0xf2')]['id'])return null;const _0x452df1=_0x19207e[_0x2cad('0xeb')](_0x1f82d0)(_0x1f82d0,_0x36cda3,_0x584e42[_0x2cad('0xeb')](_0x1f82d0),_0x584e42[_0x2cad('0xeb')](_0x36cda3));if(!_0x452df1)return null;return _0x19207e[_0x2cad('0xeb')](_0x36cda3)(_0x1f82d0,_0x36cda3,_0x584e42[_0x2cad('0xeb')](_0x1f82d0),_0x584e42[_0x2cad('0xeb')](_0x36cda3))?_0x452df1[0x1][_0x2cad('0xe2')]&&_0x452df1[0x1][_0x2cad('0xe2')][_0x2cad('0xf5')]?null:_0x452df1:null;}}[_0x2cad('0x11e')](_0x4c457f){const _0xd89a11=Array['from'](_0x4c457f),_0x56bd2b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x46d4c0=_0x56bd2b[_0x2cad('0x14')](_0x51d978=>!_0x4c457f[_0x2cad('0x9c')](_0x51d978)),_0x30d416=new Map(_0xd89a11[_0x2cad('0x10b')](_0x56c11f=>[_0x56c11f,this[_0x2cad('0x45')][_0x2cad('0x81')](_0x56c11f[_0x2cad('0x8c')],_0x56c11f['subType'],'join')])),_0x12b2ef=new Map(_0x56bd2b[_0x2cad('0x10b')](_0x5180a5=>[_0x5180a5,_0x5180a5[_0x2cad('0x110')]()]));for(let _0x411895=0x0;_0x411895<_0xd89a11['length'];_0x411895++){if(_0x4c25c2(this,_0xd89a11[_0x411895],_0xd89a11,_0x411895+0x1))return!0x0;}for(let _0x5b52e0=0x0;_0x5b52e0<_0xd89a11['length'];_0x5b52e0++){if(_0x4c25c2(this,_0xd89a11[_0x5b52e0],_0x46d4c0,0x0))return!0x0;}return!0x1;function _0x4c25c2(_0x4ef4d9,_0x4a2e28,_0x16ad28,_0x31b9d7){for(let _0x19e4a3=_0x31b9d7;_0x19e4a3<_0x16ad28[_0x2cad('0xf5')];_0x19e4a3++){const _0x49ae36=_0x16ad28[_0x19e4a3];if(_0x49ae36[_0x2cad('0x8c')]!==_0x4a2e28[_0x2cad('0x8c')]||_0x49ae36['author']['id']!==_0x4a2e28[_0x2cad('0xf2')]['id']||_0x49ae36[_0x2cad('0xaf')]!==_0x4a2e28[_0x2cad('0xaf')])continue;const _0x1f3dff=_0x30d416[_0x2cad('0xeb')](_0x4a2e28),_0x5d9f4b=_0x12b2ef[_0x2cad('0xeb')](_0x4a2e28),_0x3e01ad=_0x12b2ef[_0x2cad('0xeb')](_0x49ae36),_0x102c56=_0x4a2e28[_0x2cad('0xe2')]&&_0x4a2e28['commentThread'][_0x2cad('0xf5')],_0x140807=_0x49ae36['commentThread']&&_0x49ae36['commentThread'][_0x2cad('0xf5')];if(!_0x102c56&&_0x1f3dff(_0x3e01ad,_0x5d9f4b))return _0x4ef4d9[_0x2cad('0x20')](_0x49ae36,_0x4a2e28),_0x12b2ef['delete'](_0x4a2e28),!0x0;if(!_0x140807&&_0x1f3dff(_0x5d9f4b,_0x3e01ad))return _0x4ef4d9[_0x2cad('0x20')](_0x4a2e28,_0x49ae36),_0x12b2ef['delete'](_0x49ae36),!0x0;}return!0x1;}}[_0x2cad('0x20')](_0xa6862a,_0x2813a5){if(_0xa6862a['isMultiRange'])for(const _0x187f30 of _0x2813a5[_0x2cad('0x110')]())_0xa6862a[_0x2cad('0x12')](_0x187f30);else{const _0x1ec15a=_0x2813a5[_0x2cad('0x63')]()['end'];this['_setSuggestionRange'](_0xa6862a,this[_0x2cad('0x25')][_0x2cad('0x13b')](_0xa6862a[_0x2cad('0x63')]()[_0x2cad('0x103')],_0x1ec15a));}_0x2813a5['removeMarkers']();}}class Dt{constructor(_0x422816){this[_0x2cad('0xfe')]=_0x422816,this[_0x2cad('0x25')]=_0x422816[_0x2cad('0x24')],this[_0x2cad('0x6c')]=new Map(),this[_0x2cad('0x8f')]=new Map(),this[_0x2cad('0x66')]();}[_0x2cad('0x102')](_0x793889,_0x362abc,_0x198587,_0xdccf9,_0x240f10,_0x54cdfa){return new _0x519345(this[_0x2cad('0x25')],{'type':_0x793889,'subType':_0x362abc,'id':_0x198587,'author':_0xdccf9,'creator':_0xdccf9,'attributes':_0x240f10,'onAttributesChange':_0x54cdfa,'onAccept':(..._0x36c4cd)=>this[_0x2cad('0x81')](_0x793889,_0x362abc,'accept')(..._0x36c4cd),'onDiscard':(..._0x603f84)=>this[_0x2cad('0x81')](_0x793889,_0x362abc,'discard')(..._0x603f84)});}[_0x2cad('0x5b')](_0x507039,_0x55dd7b,_0x110051,_0x274e9f){const _0x2f6d6b=_0x507039+':'+_0x55dd7b+':'+_0x110051;this[_0x2cad('0x6c')][_0x2cad('0x37')](_0x2f6d6b,_0x274e9f);}['getSuggestionCallback'](_0x4a8fb9,_0xed3054,_0x3f3330){const _0x1ed264=_0x4a8fb9+':'+_0xed3054+':'+_0x3f3330;return this[_0x2cad('0x6c')][_0x2cad('0xeb')](_0x1ed264)||this['_defaultCallbacks'][_0x2cad('0xeb')](_0x4a8fb9+':'+_0x3f3330);}[_0x2cad('0x66')](){const _0xea25d7=()=>{},_0x279498=_0x3cca40=>{_0x3cca40[_0x2cad('0x131')]((_0x10089b,_0x13bcc1)=>_0x10089b[_0x2cad('0x103')][_0x2cad('0x44')](_0x13bcc1[_0x2cad('0x103')])?0x1:-0x1),this[_0x2cad('0x25')]['change'](_0x34420b=>{for(const _0x35dbb4 of _0x3cca40){let _0x18549c;_0x18549c=_0x35dbb4[_0x2cad('0x2f')][_0x2cad('0x6b')]&&_0x35dbb4[_0x2cad('0x2f')][_0x2cad('0xae')]==_0x35dbb4[_0x2cad('0x103')][_0x2cad('0x13d')]?_0x34420b['createSelection'](_0x35dbb4[_0x2cad('0x103')][_0x2cad('0x13d')],'on'):_0x34420b[_0x2cad('0xb7')](_0x35dbb4),this[_0x2cad('0x25')][_0x2cad('0x11f')](_0x18549c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x416101=(_0xd3e857,_0x25100b)=>{this[_0x2cad('0x25')][_0x2cad('0x101')](_0xb9feb8=>{const {commandName:_0x13c9fc,commandParams:_0x16e5d8=[]}=_0x25100b,_0x178e0a=_0xd3e857[_0x2cad('0x10b')](_0x16dde3=>(_t(_0x16dde3)&&(_0x16dde3=this[_0x2cad('0x25')]['createRange'](_0x16dde3[_0x2cad('0x2f')])),_0x16dde3))[_0x2cad('0x14')](_0x1071a4=>'$graveyard'!==_0x1071a4[_0x2cad('0x125')][_0x2cad('0xdb')]);if(_0x178e0a[_0x2cad('0xf5')]<0x1)return;const _0x12edab=Array[_0x2cad('0xd')](this['_model'][_0x2cad('0x22')]['selection'][_0x2cad('0x110')]())[_0x2cad('0x10b')](_0x3c541f=>_0x52da85[_0x2cad('0x113')](_0x3c541f));_0xb9feb8[_0x2cad('0xc2')](_0x178e0a);for(const _0x54cffd of this[_0x2cad('0xfe')][_0x2cad('0xe3')]['commands']())_0x54cffd[_0x2cad('0x32')]();_0x16e5d8[_0x2cad('0xa3')]({'forceDefaultExecution':!0x0}),this[_0x2cad('0xfe')][_0x2cad('0x107')](_0x13c9fc,..._0x16e5d8);const _0x9440df=_0x12edab[_0x2cad('0x14')](_0x4d0d4b=>_0x2cad('0x129')!=_0x4d0d4b[_0x2cad('0x125')][_0x2cad('0xdb')]);_0x9440df[_0x2cad('0xf5')]>0x0&&_0xb9feb8[_0x2cad('0xc2')](_0x9440df);for(const _0x4cd9fd of _0x12edab)_0x4cd9fd[_0x2cad('0xee')]();});},_0x427e72=(_0x598474,_0x3d74ee)=>0x1==_0x598474[_0x2cad('0xf5')]&&0x1==_0x3d74ee[_0x2cad('0xf5')]&&_0x598474[0x0][_0x2cad('0x2f')]['isEqual'](_0x3d74ee[0x0]['start']),_0x467ff1=(_0x269774,_0x1d692b,_0x1a33e6,_0x4acaa3)=>xt(_0x269774,_0x1d692b,_0x1a33e6,_0x4acaa3,this[_0x2cad('0x25')])?[_0x269774,_0x1d692b]:xt(_0x1d692b,_0x269774,_0x4acaa3,_0x1a33e6,this[_0x2cad('0x25')])?[_0x1d692b,_0x269774]:null;this[_0x2cad('0x8f')]['set'](_0x2cad('0x15'),_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')]('insertion:discard',_0x279498),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x133'),_0x427e72),this[_0x2cad('0x8f')][_0x2cad('0x37')]('insertion:chain',_0x467ff1),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x16'),_0x279498),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x1b'),_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')]('deletion:join',_0x427e72),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0xba'),_0x467ff1),this[_0x2cad('0x8f')][_0x2cad('0x37')]('formatInline:accept',_0x416101),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0xca'),_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')]('formatInline:join',_0x427e72),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x7a'),_0xea25d7),this['_defaultCallbacks'][_0x2cad('0x37')](_0x2cad('0x83'),_0x416101),this[_0x2cad('0x8f')][_0x2cad('0x37')]('formatBlock:discard',_0xea25d7),this[_0x2cad('0x8f')][_0x2cad('0x37')](_0x2cad('0x118'),_0x427e72),this['_defaultCallbacks'][_0x2cad('0x37')](_0x2cad('0xc1'),_0xea25d7);}}function Bt(_0x25375d,_0x10816f,_0x17af33){for(const _0x4077a5 of _0x10816f[_0x2cad('0xae')][_0x2cad('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4077a5['root']==_0x4077a5)return!0x1;if(!_0x17af33[_0x2cad('0xbf')](_0x4077a5))return!0x1;if(_0x25375d['isObject'](_0x4077a5)||_0x25375d[_0x2cad('0x73')](_0x4077a5))return!0x0;}return!0x1;}function _t(_0xc7b223){return _0xc7b223[_0x2cad('0x2f')]['parent']==_0xc7b223[_0x2cad('0x103')]['nodeAfter']&&_0xc7b223['end'][_0x2cad('0x3e')];}function Mt(_0x172e7d,_0x3c7ac4,_0x3c85c9,_0x1b6984){const _0x416df9=_0x548253=>!_0x548253[_0x2cad('0x17')]['is'](_0x2cad('0x27'))&&!_0x1b6984['isObject'](_0x548253[_0x2cad('0x17')]),_0x591e7c=_0x172e7d[_0x2cad('0x103')][_0x2cad('0x141')](_0x416df9),_0x58dfca=_0x172e7d['end'][_0x2cad('0x141')](_0x416df9,{'direction':_0x2cad('0x8')});return(!_0x172e7d[_0x2cad('0x103')][_0x2cad('0xc7')](_0x591e7c)||!_0x172e7d[_0x2cad('0x2f')][_0x2cad('0xc7')](_0x58dfca))&&(_0x591e7c['isBefore'](_0x58dfca)?_0x3c85c9[_0x2cad('0x4a')](_0x3c7ac4,{'range':_0x3c85c9[_0x2cad('0x13b')](_0x591e7c,_0x58dfca)}):_0x3c85c9[_0x2cad('0xc4')](_0x3c7ac4),!0x0);}function $t(_0x3ca507){return _0x1ad6c7(_0x3ca507);}function Nt(_0x53aff8){const _0x5b2744=_0x53aff8[_0x2cad('0x103')][_0x2cad('0x13d')];return _0x5b2744&&_0x5b2744['is'](_0x2cad('0x4c'));}function Rt(_0x1280a2,_0x1515a9){const _0x1cc7b7=_0x1515a9['schema'][_0x2cad('0x7e')](_0x1280a2)||_0x1515a9[_0x2cad('0x112')][_0x2cad('0xb')](_0x1280a2);return _0x1515a9[_0x2cad('0x13b')](_0x1515a9['createPositionAt'](_0x1280a2,_0x2cad('0x4d')),_0x1cc7b7?_0x1515a9['createPositionAfter'](_0x1280a2):_0x1515a9['createPositionAt'](_0x1280a2,_0x2cad('0x2f')));}function xt(_0x10fee5,_0x49477e,_0x405dab,_0x5dc494,_0x393a0d){if(_0x405dab[_0x2cad('0x2f')][_0x2cad('0xc7')](_0x5dc494[_0x2cad('0x103')]))return!0x0;if(_0x10fee5[_0x2cad('0x8c')]!=_0x49477e[_0x2cad('0x8c')])return!0x1;if(!_0x405dab['end'][_0x2cad('0x11')](_0x5dc494[_0x2cad('0x103')]))return!0x1;const _0xa93ba7=_0x393a0d[_0x2cad('0x13b')](_0x405dab[_0x2cad('0x2f')],_0x5dc494[_0x2cad('0x103')])['getWalker']();for(const _0x2647e0 of _0xa93ba7)if([_0x2cad('0xa5'),_0x2cad('0xfc')][_0x2cad('0x9')](_0x2647e0[_0x2cad('0x8c')])&&_0x393a0d[_0x2cad('0x112')]['isLimit'](_0x2647e0['item']))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e26=['hasSuggestion','EditorAnnotations','registerAnnotation','toMany','commandName','get','descriptionParts','commentThread','getAllAdjacentSuggestions','button','bind','suggestionUnloaded','filter','trackChanges','_refreshActiveMarkers','refreshSelectedViews','CommentView','separator','_viewToController','pluginName','config','suggestionChanged','listenTo','isDirty','lowest','focus','arrowView','change:activeAnnotations','size','Discard\x20all\x20suggestions','isMultiRange','_disableComments','model','commands','isEnabled','previous','change:previous','TrackChangesUI','delete','getMarkers','type','_createUIButton','stopListening','activeAnnotations','CommentsRepository','_annotationViews','innerView','acceptAllSuggestions','SuggestionThreadView','push','add','Annotations','buttonView','actionView','locale','comments.maxCommentsWhenCollapsed','define','_updateController','acceptButton','comments.maxThreadTotalWeight','trackChanges.SuggestionThreadView','_initializeController','suggestion-','comments.maxCommentCharsWhenCollapsed','destroy','clear','remove','some','_handleSuggestionControllerDelayed','_handleControllerBuffer','execute','getFirstRange','isInContent','isOn','discardButton','TrackChangesEditing','getByInnerView','Accept\x20all\x20suggestions','editor','head','getDescriptions','view','mainView','has','value','length','addSourceCollector','_destroyController','plugins','source','from','discardAllSuggestions','discardSelectedSuggestions','set','_suggestionToController','trackChanges.disableComments','createCommentThreadController','getRanges','unbind','acceptSelectedSuggestions','CommentsUI','editing','values','getSuggestion','Discard\x20all\x20selected\x20suggestions','componentFactory'];(function(_0x54b2d6,_0x3e266c){const _0x4ec2ca=function(_0x3a147a){while(--_0x3a147a){_0x54b2d6['push'](_0x54b2d6['shift']());}};_0x4ec2ca(++_0x3e266c);}(_0x3e26,0x1c8));const _0x4ec2=function(_0x54b2d6,_0x3e266c){_0x54b2d6=_0x54b2d6-0x0;let _0x4ec2ca=_0x3e26[_0x54b2d6];return _0x4ec2ca;};import{Plugin as _0x58a391}from'ckeditor5/src/core';import{Collection as _0x4b3cbf}from'ckeditor5/src/utils';import{Model as _0x193761,SplitButtonView as _0xaa408d,createDropdown as _0x16d09e,addListToDropdown as _0x33c290}from'ckeditor5/src/ui';import{Users as _0x2605cb,getDateTimeFormatter as _0x6ede13,getAllMarkersDomElementsSorted as _0x489a73}from'ckeditor5-collaboration/src/collaboration-core';import _0x59960a from'./trackchangesediting';import _0x34f580 from'./ui/suggestioncontroller';import _0x35fac8 from'./ui/view/suggestionthreadview';import{getTranslation as _0xc67f43}from'./utils/common-translations';import _0x280f88 from'../theme/icons/track-changes.svg';export default class d extends _0x58a391{static get['requires'](){return[_0x59960a,_0x2605cb,'CommentsRepository',_0x4ec2('0x13'),'EditorAnnotations'];}static get[_0x4ec2('0x5d')](){return _0x4ec2('0x5');}constructor(_0x16be1a){super(_0x16be1a),this[_0x4ec2('0x3e')]=new Map(),this['_viewToController']=new Map(),this[_0x4ec2('0xd')]=new Map(),this[_0x4ec2('0x25')]=new Map();const _0x1f5a0b=this[_0x4ec2('0x2e')][_0x4ec2('0x5e')];_0x1f5a0b[_0x4ec2('0x18')](_0x4ec2('0x1c'),_0x35fac8),_0x1f5a0b[_0x4ec2('0x18')](_0x4ec2('0x3f'),!0x1),this['_disableComments']=_0x1f5a0b[_0x4ec2('0x4f')](_0x4ec2('0x3f'));}[_0x4ec2('0x24')](_0x295bc6,_0x63a8f0){0x0===this['_handleControllerBuffer'][_0x4ec2('0x66')]&&setTimeout(()=>{for(const [_0x2701d3,_0x2d30d4]of this[_0x4ec2('0x25')]){const _0x46974b=this[_0x4ec2('0x3e')][_0x4ec2('0x33')](_0x2701d3);_0x46974b||_0x2d30d4?_0x46974b&&_0x2d30d4&&this[_0x4ec2('0x37')](_0x2701d3):this[_0x4ec2('0x1d')](_0x2701d3);}this[_0x4ec2('0x2e')][_0x4ec2('0x38')][_0x4ec2('0x4f')](_0x4ec2('0x4b'))[_0x4ec2('0x59')](),this['_refreshActiveMarkers'](),this[_0x4ec2('0x25')][_0x4ec2('0x21')]();},0xa),this[_0x4ec2('0x25')][_0x4ec2('0x3d')](_0x295bc6,_0x63a8f0);}['init'](){const _0x48904b=this[_0x4ec2('0x2e')],_0x54ac4c=_0x48904b['plugins'][_0x4ec2('0x4f')]('TrackChangesEditing'),_0x868d00=_0x48904b[_0x4ec2('0x38')][_0x4ec2('0x4f')](_0x4ec2('0x13')),_0x73244a=_0x48904b[_0x4ec2('0x38')]['get'](_0x4ec2('0x4b')),_0x2f8d19=_0x48904b[_0x4ec2('0x38')]['get'](_0x4ec2('0xc'));_0x48904b['ui'][_0x4ec2('0x49')][_0x4ec2('0x12')](_0x4ec2('0x57'),_0x442eee=>this['_createUIButton'](_0x442eee)),_0x73244a[_0x4ec2('0x36')](()=>{const _0x1d888b=[];for(const [_0xe457b4,_0x5dd236]of Array[_0x4ec2('0x3a')](this[_0x4ec2('0x3e')])){const _0x2472f1=_0xe457b4[_0x4ec2('0x52')](),_0x5774c8=[];for(const _0x3bf964 of _0x2472f1){if(!_0x3bf964[_0x4ec2('0x28')])continue;if(_0x3bf964[_0x4ec2('0x68')]){_0x5774c8['push'](..._0x3bf964[_0x4ec2('0x41')]());continue;}const _0x2b7f29=_0x3bf964[_0x4ec2('0x27')]();if(_0x5774c8[_0x4ec2('0x35')]>0x0){const _0x35e1cc=_0x5774c8[0x0]['getJoined'](_0x2b7f29);if(_0x35e1cc){_0x5774c8[0x0]=_0x35e1cc;continue;}}_0x5774c8[_0x4ec2('0x11')](_0x2b7f29);}_0x1d888b[_0x4ec2('0x11')]([_0x5dd236['view'],_0x5774c8]);}return _0x1d888b;}),this['listenTo'](_0x54ac4c,'suggestionLoaded',(_0xda2ca,_0x4c2643)=>{this[_0x4ec2('0x60')](_0x4c2643,_0x4ec2('0x4'),(_0x57ba54,_0x545cdb,_0x10af2d,_0x40454e)=>{_0x4c2643[_0x4ec2('0x28')]&&(null==_0x10af2d?(this[_0x4ec2('0x19')](_0x40454e[_0x4ec2('0x2f')]),this[_0x4ec2('0x24')](_0x4c2643,!0x1)):(this[_0x4ec2('0x19')](_0x10af2d[_0x4ec2('0x2f')]),this[_0x4ec2('0x24')](_0x4c2643,!0x0)));}),null===_0x4c2643[_0x4ec2('0x3')]?this[_0x4ec2('0x24')](_0x4c2643,!0x1):this['_updateController'](_0x4c2643['head']);}),this['listenTo'](_0x54ac4c,_0x4ec2('0x55'),(_0x477954,_0x3d72a4,_0xc0a1a5)=>{this[_0x4ec2('0xa')](_0x3d72a4,_0x4ec2('0x4')),this['_handleControllerBuffer'][_0x4ec2('0x6')](_0x3d72a4);const _0x44ca7e=_0xc0a1a5?_0xc0a1a5[_0x4ec2('0x2f')]:_0x3d72a4,_0x429848=this[_0x4ec2('0x3e')][_0x4ec2('0x4f')](_0x44ca7e);null!==_0xc0a1a5&&this[_0x4ec2('0x19')](_0x44ca7e),null===_0xc0a1a5&&_0x429848&&this['_destroyController'](_0x3d72a4);}),this['listenTo'](_0x54ac4c,_0x4ec2('0x5f'),(_0x27d082,_0x180761)=>{this[_0x4ec2('0x19')](_0x180761);}),this[_0x4ec2('0x60')](_0x868d00,_0x4ec2('0x65'),()=>{this[_0x4ec2('0x58')]();}),this['listenTo'](_0x2f8d19,'addComment',(_0x4aa4a2,{threadId:_0x51e6e9,isFromAdapter:_0x24d2f0})=>{if(_0x24d2f0||!_0x54ac4c[_0x4ec2('0x4a')](_0x51e6e9))return;const _0x3f6383=_0x54ac4c[_0x4ec2('0x47')](_0x51e6e9);this[_0x4ec2('0x3e')][_0x4ec2('0x4f')](_0x3f6383)[_0x4ec2('0x31')]['focus']();},{'priority':_0x4ec2('0x62')});}[_0x4ec2('0x58')](){const _0x3aefb0=this[_0x4ec2('0x2e')][_0x4ec2('0x38')][_0x4ec2('0x4f')]('Annotations'),_0x50272e=this['editor'][_0x4ec2('0x38')][_0x4ec2('0x4f')](_0x4ec2('0x2b')),_0x955e7c=Array['from'](_0x3aefb0[_0x4ec2('0xb')],_0x520eba=>_0x520eba[_0x4ec2('0xe')])[_0x4ec2('0x56')](_0x2c6f06=>this[_0x4ec2('0x5c')][_0x4ec2('0x33')](_0x2c6f06)),_0x2c0686=[];for(const _0x340ce7 of _0x955e7c){const _0x599438=this[_0x4ec2('0x5c')][_0x4ec2('0x4f')](_0x340ce7)[_0x4ec2('0x0')][_0x4ec2('0x52')]();_0x2c0686[_0x4ec2('0x11')](..._0x599438['reduce']((_0x3306a4,_0x3568ca)=>[..._0x3306a4,..._0x3568ca['getMarkerNames']()],[]));}_0x50272e['activeMarkers']=_0x2c0686;}[_0x4ec2('0x9')](_0x35a42d){const _0x6df9d2=_0x16d09e(_0x35a42d,_0xaa408d),_0x495a02=this[_0x4ec2('0x2e')][_0x4ec2('0x1')]['get'](_0x4ec2('0x57')),_0x5a63d9=_0xc67f43(_0x35a42d,'Track\x20changes');_0x6df9d2['buttonView'][_0x4ec2('0x3d')]({'tooltip':_0x5a63d9,'label':_0x5a63d9,'icon':_0x280f88}),_0x6df9d2[_0x4ec2('0x14')][_0x4ec2('0x54')](_0x4ec2('0x29'))['to'](_0x495a02,_0x4ec2('0x34')),_0x6df9d2[_0x4ec2('0x14')]['on'](_0x4ec2('0x26'),()=>{_0x495a02[_0x4ec2('0x26')](),this[_0x4ec2('0x2e')][_0x4ec2('0x45')][_0x4ec2('0x31')][_0x4ec2('0x63')]();});const _0x277fa0=new _0x4b3cbf(),_0xa77387=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x5a63d9,'commandName':_0x4ec2('0x57')}},{'type':_0x4ec2('0x5b')},{'type':_0x4ec2('0x53'),'model':{'withText':!0x0,'label':_0xc67f43(_0x35a42d,_0x4ec2('0x2d')),'commandName':_0x4ec2('0xf')}},{'type':_0x4ec2('0x53'),'model':{'withText':!0x0,'label':_0xc67f43(_0x35a42d,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x4ec2('0x43')}},{'type':'button','model':{'withText':!0x0,'label':_0xc67f43(_0x35a42d,_0x4ec2('0x67')),'commandName':_0x4ec2('0x3b')}},{'type':_0x4ec2('0x53'),'model':{'withText':!0x0,'label':_0xc67f43(_0x35a42d,_0x4ec2('0x48')),'commandName':_0x4ec2('0x3c')}}];for(const _0xa3cdfa of _0xa77387){let _0x3551ad={'type':_0x4ec2('0x5b')};if(_0xa3cdfa[_0x4ec2('0x0')]){const _0x51aac7=new _0x193761(_0xa3cdfa[_0x4ec2('0x0')]),_0x226d3f=this[_0x4ec2('0x2e')]['commands']['get'](_0x51aac7[_0x4ec2('0x4e')]);_0x51aac7[_0x4ec2('0x54')](_0x4ec2('0x29'),_0x4ec2('0x2'))['to'](_0x226d3f,'value',_0x4ec2('0x2')),_0x3551ad={'type':_0xa3cdfa['type'],'model':_0x51aac7};}_0x277fa0[_0x4ec2('0x12')](_0x3551ad);}_0x33c290(_0x6df9d2,_0x277fa0);const _0x337a2b=_0xa77387['filter'](_0x3535d6=>null!=_0x3535d6[_0x4ec2('0x0')])['map'](_0x30d87e=>this[_0x4ec2('0x2e')][_0x4ec2('0x1')][_0x4ec2('0x4f')](_0x30d87e[_0x4ec2('0x0')][_0x4ec2('0x4e')])),_0xa0121=_0x6df9d2[_0x4ec2('0x14')];return _0xa0121[_0x4ec2('0x15')]['unbind']('isEnabled'),_0xa0121[_0x4ec2('0x64')][_0x4ec2('0x42')](_0x4ec2('0x2')),_0xa0121[_0x4ec2('0x15')][_0x4ec2('0x54')]('isEnabled')['to'](_0x495a02,_0x4ec2('0x2')),_0xa0121[_0x4ec2('0x64')]['bind']('isEnabled')[_0x4ec2('0x4d')](_0x337a2b,_0x4ec2('0x2'),(..._0x2c114e)=>_0x2c114e[_0x4ec2('0x23')](_0x3796b9=>_0x3796b9)),_0x6df9d2['on'](_0x4ec2('0x26'),_0x48faac=>{this[_0x4ec2('0x2e')][_0x4ec2('0x26')](_0x48faac[_0x4ec2('0x39')]['commandName']),this[_0x4ec2('0x2e')][_0x4ec2('0x45')][_0x4ec2('0x31')]['focus']();}),_0x6df9d2;}[_0x4ec2('0x1d')](_0x214d95){const _0x4ae09c=this['editor'],_0x20d2ac=_0x4ae09c[_0x4ec2('0x5e')],_0x547c49=_0x4ae09c['plugins'][_0x4ec2('0x4f')]('Annotations'),_0x212cfe=_0x4ae09c[_0x4ec2('0x38')][_0x4ec2('0x4f')](_0x4ec2('0xc')),_0xc033cc=_0x4ae09c['plugins'][_0x4ec2('0x4f')](_0x4ec2('0x4b')),_0x3b53e6=_0x4ae09c[_0x4ec2('0x38')][_0x4ec2('0x4f')](_0x2605cb)['me'],_0x4c42c1=_0x20d2ac[_0x4ec2('0x4f')](_0x4ec2('0x57'))[_0x4ec2('0x10')],{CommentsListView:_0x5cfe8c,CommentThreadInputView:_0x5232e7}=_0x4ae09c[_0x4ec2('0x38')]['get'](_0x4ec2('0x44'));let _0x2dff74,_0x880536;this[_0x4ec2('0xd')][_0x4ec2('0x33')](_0x214d95['id'])?(_0x880536=this[_0x4ec2('0xd')][_0x4ec2('0x4f')](_0x214d95['id']),_0x2dff74=_0x880536['mainView']):(_0x2dff74=new _0x4c42c1(_0x4ae09c[_0x4ec2('0x16')],_0x214d95,_0x3b53e6,{'disableComments':this[_0x4ec2('0x69')],'editorConfig':_0x20d2ac[_0x4ec2('0x4f')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x20d2ac[_0x4ec2('0x4f')](_0x4ec2('0x17')),'maxThreadTotalWeight':_0x20d2ac[_0x4ec2('0x4f')](_0x4ec2('0x1b')),'maxCommentCharsWhenCollapsed':_0x20d2ac[_0x4ec2('0x4f')](_0x4ec2('0x1f')),'formatDateTime':_0x6ede13(_0x20d2ac['get']('locale')),'CommentView':_0x20d2ac[_0x4ec2('0x4f')]('comments')[_0x4ec2('0x5a')],'CommentsListView':_0x5cfe8c,'CommentThreadInputView':_0x5232e7}),_0x2dff74[_0x4ec2('0x1a')]['on'](_0x4ec2('0x26'),()=>{_0x4ae09c[_0x4ec2('0x45')][_0x4ec2('0x31')][_0x4ec2('0x63')]();}),_0x2dff74[_0x4ec2('0x2a')]['on'](_0x4ec2('0x26'),()=>{_0x4ae09c['editing'][_0x4ec2('0x31')][_0x4ec2('0x63')]();}),_0x880536=_0x547c49['createAnnotationView'](this[_0x4ec2('0x2e')]['locale'],_0x2dff74),_0x880536[_0x4ec2('0x54')](_0x4ec2('0x61'))['to'](_0x2dff74,_0x4ec2('0x61')),_0x880536[_0x4ec2('0x54')]('length')['to'](_0x2dff74),_0x880536[_0x4ec2('0x54')](_0x4ec2('0x8'))['to'](_0x2dff74,'type',_0x375175=>_0x4ec2('0x1e')+_0x375175),this[_0x4ec2('0xd')]['set'](_0x214d95['id'],_0x880536));const _0x59c775=_0x212cfe[_0x4ec2('0x40')](_0x214d95[_0x4ec2('0x51')],_0x2dff74),_0x352d57=new _0x34f580(_0x4ae09c,_0x214d95,_0x2dff74,_0x59c775),_0x2383ef=_0x214d95[_0x4ec2('0x52')]()[_0x4ec2('0x56')](_0x361d12=>_0x361d12['isInContent']);_0x2dff74[_0x4ec2('0x50')]=_0x4ae09c['plugins'][_0x4ec2('0x4f')]('TrackChangesEditing')['_descriptionFactory'][_0x4ec2('0x30')](_0x2383ef),this['_suggestionToController'][_0x4ec2('0x3d')](_0x214d95,_0x352d57),this[_0x4ec2('0x5c')]['set'](_0x2dff74,_0x352d57);const _0x1116c6=_0x547c49['createAnnotation']({'view':_0x880536,'target':()=>{const _0x25c97d=[],_0x168fb4=_0x214d95[_0x4ec2('0x52')]()[_0x4ec2('0x56')](_0x101578=>_0x101578['isInContent']);for(const _0x13d0a1 of _0x168fb4)_0x25c97d[_0x4ec2('0x11')](..._0x13d0a1[_0x4ec2('0x7')]());return _0x489a73(_0x4ae09c[_0x4ec2('0x45')],_0x25c97d);},'type':()=>_0x4ec2('0x1e')+_0x352d57[_0x4ec2('0x31')][_0x4ec2('0x8')]});_0x212cfe['_bindAnnotationToEditors'](_0x2dff74,_0x1116c6),_0x547c49[_0x4ec2('0x12')](_0x1116c6),_0xc033cc[_0x4ec2('0x4c')](_0x1116c6);}['_destroyController'](_0x83eab6){const _0xd0ded=this[_0x4ec2('0x2e')][_0x4ec2('0x38')][_0x4ec2('0x4f')](_0x4ec2('0x13')),_0xa6f2ad=this[_0x4ec2('0x3e')][_0x4ec2('0x4f')](_0x83eab6),_0xee6993=_0xa6f2ad['view'],_0x54ed46=_0xd0ded[_0x4ec2('0x2c')](_0xee6993);_0x54ed46&&_0xd0ded[_0x4ec2('0x22')](_0x54ed46),this[_0x4ec2('0x3e')][_0x4ec2('0x6')](_0x83eab6),this['_viewToController'][_0x4ec2('0x6')](_0xee6993),_0xa6f2ad[_0x4ec2('0x20')]();}[_0x4ec2('0x19')](_0x209fd2){if(!_0x209fd2[_0x4ec2('0x28')]||!this[_0x4ec2('0x3e')]['has'](_0x209fd2))return;const _0x3dbf5d=this[_0x4ec2('0x2e')][_0x4ec2('0x38')][_0x4ec2('0x4f')](_0x4ec2('0x2b')),_0x23076c=this[_0x4ec2('0x3e')][_0x4ec2('0x4f')](_0x209fd2),_0x2f86b7=_0x209fd2[_0x4ec2('0x52')]();_0x23076c[_0x4ec2('0x31')]['descriptionParts']=_0x3dbf5d['_descriptionFactory'][_0x4ec2('0x30')](_0x2f86b7);}[_0x4ec2('0x20')](){for(const _0x45ef6f of this[_0x4ec2('0x3e')]['keys']())this[_0x4ec2('0x37')](_0x45ef6f);for(const _0x3f89bb of this[_0x4ec2('0xd')][_0x4ec2('0x46')]())_0x3f89bb[_0x4ec2('0x32')]['destroy']();super[_0x4ec2('0x20')]();}}
23
+ const _0x8375=['comments.maxThreadTotalWeight','value','isMultiRange','change:activeAnnotations','getSuggestion','createAnnotationView','trackChanges.disableComments','toMany','getFirstRange','getByInnerView','commandName','requires','model','head','_refreshActiveMarkers','listenTo','_descriptionFactory','getMarkers','commentThread','execute','_destroyController','descriptionParts','from','_handleSuggestionControllerDelayed','switchbutton','has','view','getJoined','get','comments.maxCommentsWhenCollapsed','TrackChangesEditing','comments.editorConfig','suggestionLoaded','createAnnotation','innerView','isOn','focus','stopListening','plugins','discardAllSuggestions','arrowView','addSourceCollector','editing','separator','size','define','comments.maxCommentCharsWhenCollapsed','EditorAnnotations','registerAnnotation','commands','acceptAllSuggestions','pluginName','_viewToController','reduce','hasSuggestion','destroy','getDescriptions','isInContent','trackChanges','source','acceptSelectedSuggestions','CommentsUI','suggestion-','keys','isDirty','delete','buttonView','CommentsRepository','filter','add','getMarkerNames','_annotationViews','_handleControllerBuffer','locale','actionView','_bindAnnotationToEditors','getRanges','isEnabled','_updateController','getAllAdjacentSuggestions','set','editor','lowest','TrackChangesUI','Discard\x20all\x20suggestions','discardSelectedSuggestions','mainView','unbind','addComment','change:previous','_suggestionToController','_disableComments','refreshSelectedViews','_createUIButton','activeMarkers','acceptButton','button','Annotations','type','bind','comments','suggestionUnloaded','push'];(function(_0x76190a,_0x83758b){const _0x32e126=function(_0x333717){while(--_0x333717){_0x76190a['push'](_0x76190a['shift']());}};_0x32e126(++_0x83758b);}(_0x8375,0x82));const _0x32e1=function(_0x76190a,_0x83758b){_0x76190a=_0x76190a-0x0;let _0x32e126=_0x8375[_0x76190a];return _0x32e126;};import{Plugin as _0x4fb7b6}from'ckeditor5/src/core';import{Collection as _0xa15f01}from'ckeditor5/src/utils';import{Model as _0x474bd1,SplitButtonView as _0x5cc4bb,createDropdown as _0x1ba54c,addListToDropdown as _0x174f0c}from'ckeditor5/src/ui';import{Users as _0x39e248,getDateTimeFormatter as _0x4a3a48,getAllMarkersDomElementsSorted as _0x3c984a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dc9d8 from'./trackchangesediting';import _0x37585b from'./ui/suggestioncontroller';import _0x68a8b4 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1b7eeb}from'./utils/common-translations';import _0x140383 from'../theme/icons/track-changes.svg';export default class d extends _0x4fb7b6{static get[_0x32e1('0x57')](){return[_0x2dc9d8,_0x39e248,'CommentsRepository',_0x32e1('0x46'),_0x32e1('0x14')];}static get[_0x32e1('0x18')](){return _0x32e1('0x38');}constructor(_0x596890){super(_0x596890),this['_suggestionToController']=new Map(),this[_0x32e1('0x19')]=new Map(),this[_0x32e1('0x2c')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x2d9e21=this[_0x32e1('0x36')]['config'];_0x2d9e21[_0x32e1('0x12')]('trackChanges.SuggestionThreadView',_0x68a8b4),_0x2d9e21[_0x32e1('0x12')](_0x32e1('0x52'),!0x1),this['_disableComments']=_0x2d9e21[_0x32e1('0x1')](_0x32e1('0x52'));}['_handleSuggestionControllerDelayed'](_0x2256dc,_0x248ece){0x0===this[_0x32e1('0x2d')][_0x32e1('0x11')]&&setTimeout(()=>{for(const [_0x45d33c,_0x203675]of this[_0x32e1('0x2d')]){const _0x42ed0d=this['_suggestionToController'][_0x32e1('0x65')](_0x45d33c);_0x42ed0d||_0x203675?_0x42ed0d&&_0x203675&&this[_0x32e1('0x60')](_0x45d33c):this['_initializeController'](_0x45d33c);}this['editor'][_0x32e1('0xb')][_0x32e1('0x1')]('EditorAnnotations')[_0x32e1('0x41')](),this[_0x32e1('0x5a')](),this['_handleControllerBuffer']['clear']();},0xa),this['_handleControllerBuffer'][_0x32e1('0x35')](_0x2256dc,_0x248ece);}['init'](){const _0x2524b9=this['editor'],_0xddce97=_0x2524b9[_0x32e1('0xb')]['get'](_0x32e1('0x3')),_0x130d04=_0x2524b9[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x46')),_0x2a5672=_0x2524b9[_0x32e1('0xb')][_0x32e1('0x1')]('EditorAnnotations'),_0x5f1105=_0x2524b9[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x28'));_0x2524b9['ui']['componentFactory'][_0x32e1('0x2a')]('trackChanges',_0x5c0f37=>this[_0x32e1('0x42')](_0x5c0f37)),_0x2a5672[_0x32e1('0xe')](()=>{const _0x42910a=[];for(const [_0x8d8828,_0x2c31e7]of Array[_0x32e1('0x62')](this['_suggestionToController'])){const _0x285520=_0x8d8828[_0x32e1('0x34')](),_0x4badd0=[];for(const _0x23e1ca of _0x285520){if(!_0x23e1ca[_0x32e1('0x1e')])continue;if(_0x23e1ca[_0x32e1('0x4e')]){_0x4badd0[_0x32e1('0x4b')](..._0x23e1ca[_0x32e1('0x31')]());continue;}const _0x4c1d06=_0x23e1ca[_0x32e1('0x54')]();if(_0x4badd0['length']>0x0){const _0x16b079=_0x4badd0[0x0][_0x32e1('0x0')](_0x4c1d06);if(_0x16b079){_0x4badd0[0x0]=_0x16b079;continue;}}_0x4badd0[_0x32e1('0x4b')](_0x4c1d06);}_0x42910a[_0x32e1('0x4b')]([_0x2c31e7[_0x32e1('0x66')],_0x4badd0]);}return _0x42910a;}),this[_0x32e1('0x5b')](_0xddce97,_0x32e1('0x5'),(_0xc55529,_0x135e80)=>{this[_0x32e1('0x5b')](_0x135e80,_0x32e1('0x3e'),(_0x138cea,_0x38a703,_0x4a970a,_0x4a0895)=>{_0x135e80[_0x32e1('0x1e')]&&(null==_0x4a970a?(this[_0x32e1('0x33')](_0x4a0895[_0x32e1('0x59')]),this[_0x32e1('0x63')](_0x135e80,!0x1)):(this[_0x32e1('0x33')](_0x4a970a[_0x32e1('0x59')]),this[_0x32e1('0x63')](_0x135e80,!0x0)));}),null===_0x135e80['previous']?this[_0x32e1('0x63')](_0x135e80,!0x1):this[_0x32e1('0x33')](_0x135e80[_0x32e1('0x59')]);}),this['listenTo'](_0xddce97,_0x32e1('0x4a'),(_0x51133a,_0x1c3045,_0x1852e5)=>{this[_0x32e1('0xa')](_0x1c3045,_0x32e1('0x3e')),this[_0x32e1('0x2d')]['delete'](_0x1c3045);const _0x35d3e2=_0x1852e5?_0x1852e5[_0x32e1('0x59')]:_0x1c3045,_0x201d64=this[_0x32e1('0x3f')][_0x32e1('0x1')](_0x35d3e2);null!==_0x1852e5&&this[_0x32e1('0x33')](_0x35d3e2),null===_0x1852e5&&_0x201d64&&this[_0x32e1('0x60')](_0x1c3045);}),this['listenTo'](_0xddce97,'suggestionChanged',(_0x1555f1,_0x1b14a7)=>{this[_0x32e1('0x33')](_0x1b14a7);}),this[_0x32e1('0x5b')](_0x130d04,_0x32e1('0x4f'),()=>{this[_0x32e1('0x5a')]();}),this[_0x32e1('0x5b')](_0x5f1105,_0x32e1('0x3d'),(_0x7d5ea,{threadId:_0x400bbf,isFromAdapter:_0x40e98e})=>{if(_0x40e98e||!_0xddce97[_0x32e1('0x1b')](_0x400bbf))return;const _0x1c316c=_0xddce97[_0x32e1('0x50')](_0x400bbf);this[_0x32e1('0x3f')][_0x32e1('0x1')](_0x1c316c)['view'][_0x32e1('0x9')]();},{'priority':_0x32e1('0x37')});}[_0x32e1('0x5a')](){const _0x34f8b5=this['editor'][_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x46')),_0x12172c=this[_0x32e1('0x36')][_0x32e1('0xb')]['get'](_0x32e1('0x3')),_0x1ce5cf=Array[_0x32e1('0x62')](_0x34f8b5['activeAnnotations'],_0xacecfd=>_0xacecfd[_0x32e1('0x7')])[_0x32e1('0x29')](_0x48d4ac=>this[_0x32e1('0x19')][_0x32e1('0x65')](_0x48d4ac)),_0x118f08=[];for(const _0x395ee5 of _0x1ce5cf){const _0x1ef537=this[_0x32e1('0x19')][_0x32e1('0x1')](_0x395ee5)[_0x32e1('0x58')][_0x32e1('0x34')]();_0x118f08[_0x32e1('0x4b')](..._0x1ef537[_0x32e1('0x1a')]((_0x100822,_0x8c2c17)=>[..._0x100822,..._0x8c2c17[_0x32e1('0x2b')]()],[]));}_0x12172c[_0x32e1('0x43')]=_0x118f08;}[_0x32e1('0x42')](_0x3644e0){const _0x16fb50=_0x1ba54c(_0x3644e0,_0x5cc4bb),_0x57811c=this[_0x32e1('0x36')]['commands'][_0x32e1('0x1')](_0x32e1('0x1f')),_0x898d84=_0x1b7eeb(_0x3644e0,'Track\x20changes');_0x16fb50[_0x32e1('0x27')][_0x32e1('0x35')]({'tooltip':_0x898d84,'label':_0x898d84,'icon':_0x140383}),_0x16fb50['buttonView'][_0x32e1('0x48')](_0x32e1('0x8'))['to'](_0x57811c,'value'),_0x16fb50[_0x32e1('0x27')]['on'](_0x32e1('0x5f'),()=>{_0x57811c[_0x32e1('0x5f')](),this[_0x32e1('0x36')][_0x32e1('0xf')][_0x32e1('0x66')][_0x32e1('0x9')]();});const _0x113155=new _0xa15f01(),_0x17a88d=[{'type':_0x32e1('0x64'),'model':{'withText':!0x0,'label':_0x898d84,'commandName':_0x32e1('0x1f')}},{'type':_0x32e1('0x10')},{'type':'button','model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,'Accept\x20all\x20suggestions'),'commandName':_0x32e1('0x17')}},{'type':_0x32e1('0x45'),'model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x32e1('0x21')}},{'type':_0x32e1('0x45'),'model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,_0x32e1('0x39')),'commandName':_0x32e1('0xc')}},{'type':_0x32e1('0x45'),'model':{'withText':!0x0,'label':_0x1b7eeb(_0x3644e0,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x32e1('0x3a')}}];for(const _0x282e23 of _0x17a88d){let _0x1aabd1={'type':_0x32e1('0x10')};if(_0x282e23[_0x32e1('0x58')]){const _0x5cbdf2=new _0x474bd1(_0x282e23['model']),_0x568262=this[_0x32e1('0x36')][_0x32e1('0x16')][_0x32e1('0x1')](_0x5cbdf2['commandName']);_0x5cbdf2[_0x32e1('0x48')](_0x32e1('0x8'),_0x32e1('0x32'))['to'](_0x568262,_0x32e1('0x4d'),'isEnabled'),_0x1aabd1={'type':_0x282e23[_0x32e1('0x47')],'model':_0x5cbdf2};}_0x113155[_0x32e1('0x2a')](_0x1aabd1);}_0x174f0c(_0x16fb50,_0x113155);const _0x511b73=_0x17a88d[_0x32e1('0x29')](_0x389dd5=>null!=_0x389dd5[_0x32e1('0x58')])['map'](_0x2443cd=>this[_0x32e1('0x36')]['commands'][_0x32e1('0x1')](_0x2443cd['model'][_0x32e1('0x56')])),_0x3dea5f=_0x16fb50['buttonView'];return _0x3dea5f['actionView'][_0x32e1('0x3c')](_0x32e1('0x32')),_0x3dea5f[_0x32e1('0xd')]['unbind'](_0x32e1('0x32')),_0x3dea5f[_0x32e1('0x2f')][_0x32e1('0x48')](_0x32e1('0x32'))['to'](_0x57811c,_0x32e1('0x32')),_0x3dea5f['arrowView'][_0x32e1('0x48')](_0x32e1('0x32'))[_0x32e1('0x53')](_0x511b73,'isEnabled',(..._0x5ef7cf)=>_0x5ef7cf['some'](_0x514b99=>_0x514b99)),_0x16fb50['on'](_0x32e1('0x5f'),_0x2e7a38=>{this[_0x32e1('0x36')][_0x32e1('0x5f')](_0x2e7a38[_0x32e1('0x20')][_0x32e1('0x56')]),this[_0x32e1('0x36')][_0x32e1('0xf')][_0x32e1('0x66')][_0x32e1('0x9')]();}),_0x16fb50;}['_initializeController'](_0x1157de){const _0x1d10be=this[_0x32e1('0x36')],_0x5621bb=_0x1d10be['config'],_0x1f2c63=_0x1d10be[_0x32e1('0xb')]['get'](_0x32e1('0x46')),_0xf71d74=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')]('CommentsRepository'),_0x201ff5=_0x1d10be[_0x32e1('0xb')]['get'](_0x32e1('0x14')),_0x4dc4bb=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')](_0x39e248)['me'],_0xe029cf=_0x5621bb['get'](_0x32e1('0x1f'))['SuggestionThreadView'],{CommentsListView:_0x251fca,CommentThreadInputView:_0x41af2e}=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x22'));let _0x337ef6,_0x34fc3c;this[_0x32e1('0x2c')][_0x32e1('0x65')](_0x1157de['id'])?(_0x34fc3c=this['_annotationViews'][_0x32e1('0x1')](_0x1157de['id']),_0x337ef6=_0x34fc3c['mainView']):(_0x337ef6=new _0xe029cf(_0x1d10be[_0x32e1('0x2e')],_0x1157de,_0x4dc4bb,{'disableComments':this[_0x32e1('0x40')],'editorConfig':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x4')),'maxCommentsWhenCollapsed':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x2')),'maxThreadTotalWeight':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x4c')),'maxCommentCharsWhenCollapsed':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x13')),'formatDateTime':_0x4a3a48(_0x5621bb[_0x32e1('0x1')](_0x32e1('0x2e'))),'CommentView':_0x5621bb[_0x32e1('0x1')](_0x32e1('0x49'))['CommentView'],'CommentsListView':_0x251fca,'CommentThreadInputView':_0x41af2e}),_0x337ef6[_0x32e1('0x44')]['on'](_0x32e1('0x5f'),()=>{_0x1d10be[_0x32e1('0xf')][_0x32e1('0x66')][_0x32e1('0x9')]();}),_0x337ef6['discardButton']['on'](_0x32e1('0x5f'),()=>{_0x1d10be['editing'][_0x32e1('0x66')][_0x32e1('0x9')]();}),_0x34fc3c=_0x1f2c63[_0x32e1('0x51')](this[_0x32e1('0x36')]['locale'],_0x337ef6),_0x34fc3c[_0x32e1('0x48')]('isDirty')['to'](_0x337ef6,_0x32e1('0x25')),_0x34fc3c['bind']('length')['to'](_0x337ef6),_0x34fc3c[_0x32e1('0x48')](_0x32e1('0x47'))['to'](_0x337ef6,_0x32e1('0x47'),_0x4a9550=>_0x32e1('0x23')+_0x4a9550),this[_0x32e1('0x2c')][_0x32e1('0x35')](_0x1157de['id'],_0x34fc3c));const _0x26a776=_0xf71d74['createCommentThreadController'](_0x1157de[_0x32e1('0x5e')],_0x337ef6),_0x4ccd8b=new _0x37585b(_0x1d10be,_0x1157de,_0x337ef6,_0x26a776),_0x252771=_0x1157de['getAllAdjacentSuggestions']()[_0x32e1('0x29')](_0x432a6b=>_0x432a6b['isInContent']);_0x337ef6[_0x32e1('0x61')]=_0x1d10be[_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x3'))[_0x32e1('0x5c')][_0x32e1('0x1d')](_0x252771),this[_0x32e1('0x3f')]['set'](_0x1157de,_0x4ccd8b),this[_0x32e1('0x19')]['set'](_0x337ef6,_0x4ccd8b);const _0x508925=_0x1f2c63[_0x32e1('0x6')]({'view':_0x34fc3c,'target':()=>{const _0x28521c=[],_0xdace3d=_0x1157de[_0x32e1('0x34')]()['filter'](_0x3133a9=>_0x3133a9[_0x32e1('0x1e')]);for(const _0x3c32d7 of _0xdace3d)_0x28521c[_0x32e1('0x4b')](..._0x3c32d7[_0x32e1('0x5d')]());return _0x3c984a(_0x1d10be[_0x32e1('0xf')],_0x28521c);},'type':()=>_0x32e1('0x23')+_0x4ccd8b[_0x32e1('0x66')][_0x32e1('0x47')]});_0xf71d74[_0x32e1('0x30')](_0x337ef6,_0x508925),_0x1f2c63[_0x32e1('0x2a')](_0x508925),_0x201ff5[_0x32e1('0x15')](_0x508925);}[_0x32e1('0x60')](_0x106f86){const _0x2fcbeb=this['editor'][_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x46')),_0x25c3ef=this[_0x32e1('0x3f')]['get'](_0x106f86),_0x5c8e7a=_0x25c3ef['view'],_0x57f853=_0x2fcbeb[_0x32e1('0x55')](_0x5c8e7a);_0x57f853&&_0x2fcbeb['remove'](_0x57f853),this[_0x32e1('0x3f')][_0x32e1('0x26')](_0x106f86),this[_0x32e1('0x19')][_0x32e1('0x26')](_0x5c8e7a),_0x25c3ef[_0x32e1('0x1c')]();}['_updateController'](_0x40b021){if(!_0x40b021[_0x32e1('0x1e')]||!this[_0x32e1('0x3f')][_0x32e1('0x65')](_0x40b021))return;const _0xa887ef=this[_0x32e1('0x36')][_0x32e1('0xb')][_0x32e1('0x1')](_0x32e1('0x3')),_0x27e486=this[_0x32e1('0x3f')][_0x32e1('0x1')](_0x40b021),_0x2bdfb6=_0x40b021['getAllAdjacentSuggestions']();_0x27e486[_0x32e1('0x66')][_0x32e1('0x61')]=_0xa887ef['_descriptionFactory'][_0x32e1('0x1d')](_0x2bdfb6);}[_0x32e1('0x1c')](){for(const _0x46aac7 of this[_0x32e1('0x3f')][_0x32e1('0x24')]())this[_0x32e1('0x60')](_0x46aac7);for(const _0x1b334 of this[_0x32e1('0x2c')]['values']())_0x1b334[_0x32e1('0x3b')][_0x32e1('0x1c')]();super[_0x32e1('0x1c')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ab0=['commands','destroy','_setPendingAction','bind','commentThreadController','listenTo','canAccept','get','isDirty','plugins','locale','_removePendingAction','change:isDirty','getRanges','_pendingAction','add','execute','_acceptCommand','remove','model','stopListening','canDiscard','_discardCommand','acceptSuggestion','view','discardSuggestion','_editor','PENDING_ACTION_SUGGESTION','PendingActions','isEnabled'];(function(_0x30d9cd,_0x5ab0a0){const _0x129e09=function(_0x403fc4){while(--_0x403fc4){_0x30d9cd['push'](_0x30d9cd['shift']());}};_0x129e09(++_0x5ab0a0);}(_0x5ab0,0x70));const _0x129e=function(_0x30d9cd,_0x5ab0a0){_0x30d9cd=_0x30d9cd-0x0;let _0x129e09=_0x5ab0[_0x30d9cd];return _0x129e09;};import{ObservableMixin as _0x526f18}from'ckeditor5/src/utils';import{getTranslation as _0x23e9e5}from'../utils/common-translations';export default class qt extends _0x526f18(){constructor(_0x55998c,_0x1f2e5f,_0x5ed2c8,_0x42b0c4){super(),this['model']=_0x1f2e5f,this[_0x129e('0x2')]=_0x5ed2c8,this[_0x129e('0xc')]=_0x42b0c4,this[_0x129e('0x4')]=_0x55998c,this[_0x129e('0x19')]=_0x55998c[_0x129e('0x8')][_0x129e('0xf')](_0x129e('0x1')),this[_0x129e('0x0')]=_0x55998c[_0x129e('0x8')][_0x129e('0xf')](_0x129e('0x3')),this[_0x129e('0x2')][_0x129e('0xb')](_0x129e('0x7'))['to'](this[_0x129e('0x19')],this['_discardCommand'],(_0x47b372,_0x141e45)=>_0x47b372||_0x141e45),this[_0x129e('0x2')]['bind']('canAccept')['to'](this[_0x129e('0x19')],_0x129e('0x7'),_0x1e44cd=>_0x1e44cd&&this[_0x129e('0x4')][_0x129e('0x1b')]['canEditAt'](_0x1f2e5f[_0x129e('0x15')]())),this['view'][_0x129e('0xb')](_0x129e('0x1d'))['to'](this[_0x129e('0x0')],_0x129e('0x7'),_0x10b43c=>_0x10b43c&&this[_0x129e('0x4')][_0x129e('0x1b')]['canEditAt'](_0x1f2e5f[_0x129e('0x15')]())),this[_0x129e('0x16')]=null,_0x5ed2c8[_0x129e('0x10')]&&this['_setPendingAction'](),this['listenTo'](_0x5ed2c8,'acceptSuggestion',()=>this[_0x129e('0x1')]()),this[_0x129e('0xd')](_0x5ed2c8,_0x129e('0x3'),()=>this['discardSuggestion']()),this[_0x129e('0xd')](_0x5ed2c8,_0x129e('0x14'),()=>{_0x5ed2c8[_0x129e('0x10')]?this[_0x129e('0xa')]():this[_0x129e('0x13')]();});}[_0x129e('0x1')](){this['_acceptCommand']['execute'](this[_0x129e('0x1b')]['id']);}[_0x129e('0x3')](){this[_0x129e('0x0')][_0x129e('0x18')](this[_0x129e('0x1b')]['id']);}[_0x129e('0x9')](){this[_0x129e('0x2')]['unbind'](_0x129e('0x7')),this[_0x129e('0x2')]['unbind'](_0x129e('0xe')),this[_0x129e('0x2')]['unbind'](_0x129e('0x1d')),this[_0x129e('0x1c')](),this[_0x129e('0xc')]['destroy'](),this[_0x129e('0x16')]&&this['_removePendingAction']();}['_setPendingAction'](){const _0x38c729=_0x23e9e5(this[_0x129e('0x4')][_0x129e('0x12')],_0x129e('0x5'));this[_0x129e('0x16')]=this['_editor'][_0x129e('0x11')][_0x129e('0xf')]('PendingActions')[_0x129e('0x17')](_0x38c729);}[_0x129e('0x13')](){null!==this['_pendingAction']&&this['_editor'][_0x129e('0x11')][_0x129e('0xf')](_0x129e('0x6'))[_0x129e('0x1a')](this[_0x129e('0x16')]),this[_0x129e('0x16')]=null;}}
23
+ const _0x5cb5=['canEditAt','_pendingAction','PendingActions','add','_discardCommand','destroy','getRanges','listenTo','remove','plugins','isEnabled','model','_removePendingAction','_setPendingAction','canAccept','get','commentThreadController','unbind','bind','PENDING_ACTION_SUGGESTION','discardSuggestion','isDirty','locale','canDiscard','_editor','commands','execute','view','acceptSuggestion','_acceptCommand'];(function(_0x38a434,_0x5cb50e){const _0x4a84aa=function(_0x19a857){while(--_0x19a857){_0x38a434['push'](_0x38a434['shift']());}};_0x4a84aa(++_0x5cb50e);}(_0x5cb5,0x152));const _0x4a84=function(_0x38a434,_0x5cb50e){_0x38a434=_0x38a434-0x0;let _0x4a84aa=_0x5cb5[_0x38a434];return _0x4a84aa;};import{ObservableMixin as _0x356c77}from'ckeditor5/src/utils';import{getTranslation as _0x4b753a}from'../utils/common-translations';export default class qt extends _0x356c77(){constructor(_0x22d7c0,_0x377890,_0x1fe51f,_0x55e290){super(),this[_0x4a84('0x3')]=_0x377890,this[_0x4a84('0x13')]=_0x1fe51f,this[_0x4a84('0x8')]=_0x55e290,this[_0x4a84('0x10')]=_0x22d7c0,this[_0x4a84('0x15')]=_0x22d7c0[_0x4a84('0x11')][_0x4a84('0x7')](_0x4a84('0x14')),this[_0x4a84('0x1a')]=_0x22d7c0[_0x4a84('0x11')][_0x4a84('0x7')](_0x4a84('0xc')),this[_0x4a84('0x13')][_0x4a84('0xa')](_0x4a84('0x2'))['to'](this[_0x4a84('0x15')],this['_discardCommand'],(_0x29f95e,_0x530077)=>_0x29f95e||_0x530077),this[_0x4a84('0x13')][_0x4a84('0xa')](_0x4a84('0x6'))['to'](this['_acceptCommand'],_0x4a84('0x2'),_0x18edf7=>_0x18edf7&&this[_0x4a84('0x10')][_0x4a84('0x3')][_0x4a84('0x16')](_0x377890['getRanges']())),this[_0x4a84('0x13')][_0x4a84('0xa')](_0x4a84('0xf'))['to'](this[_0x4a84('0x1a')],_0x4a84('0x2'),_0x38ac26=>_0x38ac26&&this[_0x4a84('0x10')]['model'][_0x4a84('0x16')](_0x377890[_0x4a84('0x1c')]())),this['_pendingAction']=null,_0x1fe51f[_0x4a84('0xd')]&&this[_0x4a84('0x5')](),this[_0x4a84('0x1d')](_0x1fe51f,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x4a84('0x1d')](_0x1fe51f,_0x4a84('0xc'),()=>this[_0x4a84('0xc')]()),this[_0x4a84('0x1d')](_0x1fe51f,'change:isDirty',()=>{_0x1fe51f[_0x4a84('0xd')]?this[_0x4a84('0x5')]():this[_0x4a84('0x4')]();});}[_0x4a84('0x14')](){this[_0x4a84('0x15')][_0x4a84('0x12')](this[_0x4a84('0x3')]['id']);}[_0x4a84('0xc')](){this[_0x4a84('0x1a')][_0x4a84('0x12')](this[_0x4a84('0x3')]['id']);}['destroy'](){this[_0x4a84('0x13')]['unbind'](_0x4a84('0x2')),this[_0x4a84('0x13')][_0x4a84('0x9')](_0x4a84('0x6')),this['view']['unbind'](_0x4a84('0xf')),this['stopListening'](),this['commentThreadController'][_0x4a84('0x1b')](),this[_0x4a84('0x17')]&&this[_0x4a84('0x4')]();}['_setPendingAction'](){const _0x2d8b44=_0x4b753a(this[_0x4a84('0x10')][_0x4a84('0xe')],_0x4a84('0xb'));this[_0x4a84('0x17')]=this[_0x4a84('0x10')][_0x4a84('0x1')][_0x4a84('0x7')](_0x4a84('0x18'))[_0x4a84('0x19')](_0x2d8b44);}[_0x4a84('0x4')](){null!==this[_0x4a84('0x17')]&&this[_0x4a84('0x10')][_0x4a84('0x1')][_0x4a84('0x7')](_0x4a84('0x18'))[_0x4a84('0x0')](this[_0x4a84('0x17')]),this[_0x4a84('0x17')]=null;}}