@ckeditor/ckeditor5-track-changes 39.0.0 → 39.0.1

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 _0x5ec0=['applyOperation','upcast','_addThreadToSuggestion','listenTo','addUser','insertion','forceDefaultExecution','for','start','markInlineFormat','createRange','map','insertion:','getAncestors','commands','consume','update:suggestion','markers','backward','stopListening','activeMarkers','addComment','getDifference','track-changes-command-not-found','$marker','commandName','author','_removeSuggestion','subType','clone','hasComments','_refreshSuggestionsChain','then','adapter','_cutOutSuggestionMarker','_trackFormatChanges','ck-suggestion-marker-formatBlock','plugins','commentThread','authorName','getSuggestionCallback','isLocal','discardSelectedSuggestions','isObject','authoredAt','length','define','getRanges','unbind','always','nodeBefore','conversion','discardAllSuggestions','resolve','lowest','isBefore','_customCallbacks','acceptSelectedSuggestions','rootName','suggestion-type','_createSuggestion','getFirstMarker','multi','high','registerPostFixer','markDeletion','return','getAttribute','rethrowUnexpectedError','insertContent','_model','addMarkerName','removeMarker:suggestion:formatBlock','remove','isCollapsed','getCustomProperty','collaboration.channelId','markerName','external:','moveTargetPosition','addSuggestion','elementEnd','trackChanges.mergeNestedSuggestions','howMany','formatBlock:','isIntersectingWithRange','createPositionAt','getIntersection','selection','dataReady','updateMarker','from','deletion:discard','forward','CommentsRepository','containsPosition','add','isUndo','elementToElement','pluginName','insertion:accept','_getAuthorFromId','ck-suggestion-marker','head','change','data','trackChanges','removed','type','setTo','root','isBlock','_enabledCommands','change:_saved','reconvertMarker','oldRange','end','rejected','split','_mergeNestedSuggestions','_splitMarkerName','config','dataDowncast','deletion','toJSON','formatBlock','createdAt','isLimit','highest','writer','createPositionBefore','refresh','deletion:chain','deletion:join','isNextTo','_breakSuggestionMarker','getLastMatchingPosition','addClass','_onDiscard','splitPosition','_editor','registerCustomCallback','error-saving-suggestion-data-suggestion-discarded','model','trackChanges.trackFormatChanges','splice','_adapter','notReady','batch','newRange','_suggestionState','_handleNewSuggestionMarker','value','values','PENDING_ACTION_SUGGESTION','toViewElement','creator','_commentsRepository','markMultiRangeInsertion','TrackChangesEditing','removeClass','createElement','range','getMarkers','addMarker','parent','updateSuggestion','suggestion:','PendingActions','editingDowncast','createRangeIn','widget','_isForcedDefaultExecutionBlock','getUser','_suggestionFactory','isAtStart','before','getChangedMarkers','substr','has','formatBlock:chain','_rangeIsInLocalUserInsertion','hasCommentThread','enableCommand','@external','fire','Users','isInsideObject','element','isInContent','isMultiRange','getFirstRange','differ','documentSelection','detach','markerToData','$textProxy','track-changes-suggestion-not-found','after','item','document','track-changes-user-not-found','_suggestions','every','bindElementToMarker','getNearestSelectionRange','catch','formatBlock:discard','sort','suggestion','getAllAdjacentSuggestions','some','ck-suggestion-marker--active','unbindElementFromMarkerName','_saved','ck-suggestion-marker-','acceptAllSuggestions','previous','_addSuggestionMarker','containerElement','acceptSuggestion','low','suggestionChanged','deleteContent','formatInline:chain','addHighlight','get','formatInline','size','set','setAttribute','getCommentThread','fromRange','ready','getSuggestions','multipleBlocks','removeMarker','default','attributes','markInsertion','addMarker:suggestion','schema','_findSuggestions','marker-count','getSuggestion','elementStart','removeAttribute','_getExternalAuthor','removeMarkers','addSuggestionData','_updateSuggestionData','next','formatGroupId','showSuggestionHighlights','formatInline:join','never','buildSuggestion','isEqual','_checkSuggestionCorrectness','consumable','formatInline:','getShiftedBy','_defaultCallbacks','deletion:','trackChangesCommand','addMarker:suggestion:formatBlock','getWalker','locale','mapper','skipNestingCheck','group','_getSuggestionData','position','_setSuggestionData','_joinSuggestions','chain','isDocumentOperation','$graveyard','hasSuggestion','isSelectable','createPositionAfter','join','nodeAfter','insert','execute','accept','filter','isAtEnd','discardSuggestion','editor','markerToHighlight','move','addRange','markerReady','containsItem','getItems','_registerDefaultCallbacks','push','isOwn','discard','markMultiRangeBlockFormat','suggestionLoaded','deletion:accept','name','createSelection','accepted','clear','containsRangeInObject','delete','stop','formatInline:discard','normal','includes','track-changes-suggestion-data-mismatch','setSelection','markerNameToElements','_setSuggestionRange','containsRange','_descriptionFactory','targetPosition'];(function(_0x4f287f,_0x5ec055){const _0x39af01=function(_0x10af73){while(--_0x10af73){_0x4f287f['push'](_0x4f287f['shift']());}};_0x39af01(++_0x5ec055);}(_0x5ec0,0x1b0));const _0x39af=function(_0x4f287f,_0x5ec055){_0x4f287f=_0x4f287f-0x0;let _0x39af01=_0x5ec0[_0x4f287f];return _0x39af01;};import{Plugin as _0x250295,PendingActions as _0x28ef4b}from'ckeditor5/src/core';import{LiveRange as _0x3b5b82}from'ckeditor5/src/engine';import{CKEditorError as _0x14653c,uid as _0x16cd6a,priorities as _0x511a76,logWarning as _0xd82b5d}from'ckeditor5/src/utils';import{toWidget as _0x11ace6}from'ckeditor5/src/widget';import{Users as _0x200b6e,hashObject as _0x2a29b6}from'ckeditor5-collaboration/src/collaboration-core';import _0xf78113 from'./commands/trackchangescommand';import _0x49f9ee from'./commands/acceptsuggestioncommand';import _0x3899d2 from'./commands/discardsuggestioncommand';import _0x219ed6 from'./commands/executeonallsuggestionscommand';import _0x3a708a from'./commands/executeonselectedsuggestionscommand';import _0x1760a0 from'./suggestion';import _0x3e6b2c from'./suggestiondescriptionfactory';import _0x300cf5 from'./integrations/alignment';import _0x298214 from'./integrations/basicstyles';import _0x4be9e5 from'./integrations/blockquote';import _0x32a3f7 from'./integrations/ckbox';import _0x29e731 from'./integrations/codeblock';import _0x4454ec from'./integrations/comments';import _0x914320 from'./integrations/deletecommand';import _0x1c036a from'./integrations/documentlist';import _0x2a8f12 from'./integrations/entercommand';import _0x91a114 from'./integrations/findandreplace';import _0x33af1a from'./integrations/font';import _0xf205b5 from'./integrations/formatpainter';import _0x15b8d1 from'./integrations/heading';import _0x3b2368 from'./integrations/highlight';import _0x48308 from'./integrations/horizontalline';import _0x8978fc from'./integrations/htmlembed';import _0x1e4fbd from'./integrations/image';import _0x1f6204 from'./integrations/imagereplace';import _0x2eae25 from'./integrations/importword';import _0x5e9226 from'./integrations/indent';import _0x4c2b30 from'./integrations/inputcommand';import _0x17a4e3 from'./integrations/link';import _0x393466 from'./integrations/list';import _0x3362b7 from'./integrations/listproperties';import _0xb17ae7 from'./integrations/mediaembed';import _0x29ef9a from'./integrations/mention';import _0x3472fb from'./integrations/pagebreak';import _0x458c70 from'./integrations/paragraph';import _0x104f5e from'./integrations/removeformat';import _0x973ba6 from'./integrations/restrictededitingmode';import _0x39ca8b from'./integrations/shiftentercommand';import _0x35720a from'./integrations/standardeditingmode';import _0x569738 from'./integrations/style';import _0x33e46f from'./integrations/table';import _0x1c4afa from'./integrations/tablemergesplit';import _0x1bc775 from'./integrations/tableheadings';import _0x3220a4 from'./integrations/tableclipboard';import _0x4e9dbe from'./integrations/tablecolumnresize';import _0x3d64e1 from'./integrations/template';import _0x2aed10 from'./integrations/tableofcontents';import _0x3a9470 from'./integrations/title';import _0x558a18 from'./integrations/undo';import{getTranslation as _0x13674c}from'./utils/common-translations';import _0x516be8 from'./integrations/tablecaption';import _0x4fd767 from'./integrations/documentlistproperties';import _0x736a75 from'./integrations/tableproperties';export default class p extends _0x250295{static get['requires'](){return[_0x39af('0x12e'),_0x200b6e,_0x28ef4b,_0x300cf5,_0x298214,_0x4be9e5,_0x32a3f7,_0x29e731,_0x4454ec,_0x914320,_0x1c036a,_0x4fd767,_0x2a8f12,_0x91a114,_0x33af1a,_0xf205b5,_0x15b8d1,_0x3b2368,_0x48308,_0x8978fc,_0x1e4fbd,_0x1f6204,_0x2eae25,_0x5e9226,_0x4c2b30,_0x17a4e3,_0x393466,_0x3362b7,_0xb17ae7,_0x29ef9a,_0x3472fb,_0x458c70,_0x104f5e,_0x973ba6,_0x39ca8b,_0x35720a,_0x569738,_0x33e46f,_0x1c4afa,_0x1bc775,_0x516be8,_0x3220a4,_0x4e9dbe,_0x2aed10,_0x736a75,_0x3d64e1,_0x3a9470,_0x558a18];}static get[_0x39af('0x133')](){return _0x39af('0x2f');}constructor(_0x66233c){function _0x13fadf(_0x226f76){return _0x226f76[_0x39af('0xdb')](_0x32801c=>String['fromCharCode'](_0x32801c))['join']('');}super(_0x66233c),this['set'](_0x39af('0xe4'),[]),this['on']('change:activeMarkers',(_0x2c9e42,_0x2f0f12,_0x5cda33,_0x14465e)=>{this[_0x39af('0x116')]['change'](()=>{for(const _0x474fd0 of[..._0x14465e,..._0x5cda33])this[_0x39af('0x116')][_0x39af('0xe1')][_0x39af('0x43')](_0x474fd0)&&_0x66233c['editing'][_0x39af('0x2')](_0x474fd0);});}),this[_0x39af('0xce')]=new _0x3e6b2c(this[_0x39af('0xb1')][_0x39af('0x1f')][_0x39af('0x81')],this[_0x39af('0xb1')][_0x39af('0x9b')]),this['_adapter']=null,this[_0x39af('0x3e')]=new Dt(this[_0x39af('0xb1')]),this[_0x39af('0x5a')]=new Map(),this['_commentsRepository']=_0x66233c[_0x39af('0xf5')]['get'](_0x39af('0x12e')),this['_enabledCommands']=new Set(),this[_0x39af('0x116')]=this[_0x39af('0xb1')][_0x39af('0x1f')],this[_0x39af('0x26')]=new WeakMap(),this[_0x39af('0x3c')]=!0x1,_0x66233c['config'][_0x39af('0xfe')]('trackChanges.trackFormatChanges',_0x39af('0x7d')),this['_trackFormatChanges']=_0x66233c['config'][_0x39af('0x72')](_0x39af('0x20')),_0x66233c[_0x39af('0x9')][_0x39af('0xfe')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x39af('0x7')]=_0x66233c[_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x122')),this[_0x39af('0x98')]=new _0xf78113(_0x66233c,this[_0x39af('0x0')]),this[_0x13fadf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13fadf([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x34]);}['init'](){const _0x45c449=this[_0x39af('0xb1')];_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0x39'))[_0x39af('0xb2')]({'model':_0x39af('0x61'),'view':_0x325c23=>{const {id:_0x1eb60f,type:_0x34bac9}=this[_0x39af('0x8')](_0x325c23[_0x39af('0x11d')]),_0x72e9a8=[_0x39af('0x136'),_0x39af('0x67')+_0x34bac9];let _0x3cd86c=0xbb8;return this[_0x39af('0xe4')][_0x39af('0xc8')](_0x325c23[_0x39af('0x11d')])&&(_0x72e9a8[_0x39af('0xb9')]('ck-suggestion-marker--active'),_0x3cd86c=0xbc2),_0x39af('0xb')==_0x34bac9&&(_0x3cd86c+=0x5),{'classes':_0x72e9a8,'attributes':{'data-suggestion':_0x1eb60f},'priority':_0x3cd86c};}}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0xa'))[_0x39af('0x130')](_0x4da753=>{_0x4da753['on'](_0x39af('0x80'),(_0x524164,_0x3b3b5a,_0x4bc8a1)=>{if(!_0x4bc8a1['options'][_0x39af('0x8d')])return;const _0x14733f=_0x3b3b5a[_0x39af('0x57')];if(!_0x14733f)return;const _0x2a191c=_0x4bc8a1['mapper'][_0x39af('0x2b')](_0x14733f);_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0xfb')](_0x14733f)&&_0x2a191c&&!_0x2a191c[_0x39af('0x11b')](_0x39af('0x3b'))&&_0x2a191c['is'](_0x39af('0x6b'))&&_0x11ace6(_0x2a191c,_0x4bc8a1[_0x39af('0x11')]);},{'priority':'high'});}),_0x45c449[_0x39af('0x103')]['for']('dataDowncast')[_0x39af('0xb2')]({'model':_0x39af('0x61'),'view':(_0xed88b3,_0xc5ffdb)=>{if(!_0xc5ffdb['options'][_0x39af('0x8d')])return null;const {type:_0x2fb9a5}=this['_splitMarkerName'](_0xed88b3['markerName']);return{'classes':[_0x39af('0x136'),_0x39af('0x67')+_0x2fb9a5],'priority':0xbb8};}});const _0x3e13d9=({showActiveMarkers:_0x1bbe81=!0x0}={})=>(_0x480b3e,_0x3feb63,_0x205a40)=>{if(!_0x3feb63[_0x39af('0x57')])return;if(_0x3feb63['item']['is'](_0x39af('0x128')))return void _0x205a40[_0x39af('0x93')]['consume'](_0x3feb63[_0x39af('0x57')],_0x480b3e[_0x39af('0xbf')]);const _0x22235f=_0x205a40['mapper'][_0x39af('0x2b')](_0x3feb63[_0x39af('0x57')]);if(!(_0x3feb63[_0x39af('0x57')]['is']('element')&&_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0x13f')](_0x3feb63['item'])&&!_0x22235f[_0x39af('0x11b')](_0x39af('0x71'))))return;const {id:_0xb2319f}=this[_0x39af('0x8')](_0x3feb63[_0x39af('0x11d')]);_0x205a40[_0x39af('0x11')][_0x39af('0x19')]([_0x39af('0x136'),_0x39af('0xf4')],_0x22235f),_0x205a40[_0x39af('0x11')][_0x39af('0x76')]('data-suggestion',_0xb2319f,_0x22235f),_0x205a40[_0x39af('0x9c')][_0x39af('0x5c')](_0x22235f,_0x3feb63[_0x39af('0x11d')]),_0x1bbe81&&(this[_0x39af('0xe4')][_0x39af('0xc8')](_0x3feb63['markerName'])?_0x205a40[_0x39af('0x11')][_0x39af('0x19')](_0x39af('0x64'),_0x22235f):_0x205a40['writer'][_0x39af('0x30')](_0x39af('0x64'),_0x22235f));for(const _0x4671f6 of _0x45c449[_0x39af('0x1f')][_0x39af('0x3a')](_0x3feb63[_0x39af('0x57')])[_0x39af('0xb7')]())_0x205a40['consumable'][_0x39af('0xdf')](_0x4671f6,_0x480b3e[_0x39af('0xbf')]);_0x205a40[_0x39af('0x93')][_0x39af('0xdf')](_0x3feb63['item'],_0x480b3e['name']);};_0x45c449[_0x39af('0x103')]['for']('dataDowncast')[_0x39af('0x130')](_0x1aa1b4=>{_0x1aa1b4['on'](_0x39af('0x99'),(_0x1e1f22,_0x3e65d4,_0x1a3241)=>{_0x1a3241['options'][_0x39af('0x8d')]&&_0x3e13d9({'showActiveMarkers':!0x1})(_0x1e1f22,_0x3e65d4,_0x1a3241);},{'priority':_0x39af('0x10')});}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0xa'))[_0x39af('0x53')]({'model':_0x39af('0x61'),'view':(_0x2dd97a,_0x55cf72)=>_0x55cf72['options'][_0x39af('0x8d')]?null:{'group':_0x39af('0x61'),'name':_0x2dd97a[_0x39af('0x42')](0xb)}}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')]('upcast')[_0x39af('0x132')]({'view':{'name':_0x39af('0x61'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48ed38,{writer:_0x312fb0})=>{let _0x2253ff=_0x39af('0x37')+_0x48ed38['getAttribute'](_0x39af('0x10b'))+':'+_0x48ed38['getAttribute']('id');return _0x48ed38['getAttribute'](_0x39af('0x83'))&&(_0x2253ff+=':'+_0x48ed38[_0x39af('0x113')](_0x39af('0x83'))),_0x312fb0[_0x39af('0x31')](_0x39af('0xe8'),{'data-name':_0x2253ff});}}),_0x45c449[_0x39af('0x103')]['for'](_0x39af('0xd1'))['dataToMarker']({'view':_0x39af('0x61')}),_0x45c449['conversion'][_0x39af('0xd7')](_0x39af('0x39'))['add'](_0x54cc84=>{_0x54cc84['on']('addMarker:suggestion:formatBlock',_0x3e13d9(),{'priority':_0x39af('0x10f')});}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0x39'))[_0x39af('0x130')](_0x50a220=>{_0x50a220['on'](_0x39af('0x118'),(_0x57e982,_0x1d29e8,_0x421f67)=>{const _0x4adb17=_0x421f67[_0x39af('0x9c')][_0x39af('0xcb')](_0x1d29e8['markerName']);if(_0x4adb17)for(const _0x5937ab of _0x4adb17)_0x5937ab[_0x39af('0x11b')](_0x39af('0x71'))||(_0x421f67['writer'][_0x39af('0x30')](['ck-suggestion-marker',_0x39af('0xf4'),_0x39af('0x64')],_0x5937ab),_0x421f67[_0x39af('0x11')][_0x39af('0x86')]('data-suggestion',_0x5937ab),_0x421f67[_0x39af('0x9c')][_0x39af('0x65')](_0x5937ab,_0x1d29e8[_0x39af('0x11d')]));},{'priority':_0x39af('0x10f')});}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x110')](_0x201e76=>{let _0x61c8a0=!0x1;const _0x45564d=Array[_0x39af('0x12b')](_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')][_0x39af('0x41')]()),_0xb50017=new Set();for(const {name:_0x5488da,data:_0x5b452e}of _0x45564d){const {group:_0x2f6380,type:_0x1ca931,id:_0x357044}=this['_splitMarkerName'](_0x5488da);if(_0x39af('0x61')!==_0x2f6380)continue;const _0x31cbca=this['_suggestions']['get'](_0x357044);if(null!=_0x5b452e[_0x39af('0x25')]){_0x39af('0x73')==_0x1ca931&&(_0x61c8a0=_0x61c8a0||Mt(_0x5b452e[_0x39af('0x25')],_0x5488da,_0x201e76,_0x45c449[_0x39af('0x1f')][_0x39af('0x81')]));if(_0x5b452e['newRange'][_0x39af('0x11a')]||_0x39af('0xa5')==_0x5b452e[_0x39af('0x25')][_0x39af('0x13e')][_0x39af('0x10a')]||'formatBlock'==_0x1ca931&&!Nt(_0x5b452e[_0x39af('0x25')])||'deletion'==_0x1ca931&&!(!_t(_0x48b87d=_0x5b452e[_0x39af('0x25')])&&!function(_0x5040d9){return _0x5040d9[_0x39af('0xd8')]['parent']==_0x5040d9[_0x39af('0x4')][_0x39af('0x102')]&&_0x5040d9[_0x39af('0xd8')][_0x39af('0xaf')];}(_0x48b87d)))_0x201e76[_0x39af('0x7c')](_0x5488da),_0x61c8a0=!0x0;else{if(!_0x31cbca||!_0x31cbca[_0x39af('0x4d')])continue;_0xb50017[_0x39af('0x130')](_0x31cbca);}}}var _0x48b87d;return _0xb50017['size']>0x0&&(_0x61c8a0=!!this['_joinWithAdjacentSuggestions'](_0xb50017)||_0x61c8a0),_0x61c8a0;}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x110')](_0x39614c=>{let _0x2573a1=!0x1;for(const _0x24dd7f of _0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')]['getChanges']()){if(_0x39af('0xab')!=_0x24dd7f[_0x39af('0x13c')])continue;const _0x179117=_0x24dd7f['position'][_0x39af('0x95')](_0x24dd7f['length']);if(_0x179117['isAtEnd'])for(const _0x430c64 of this['_suggestions'][_0x39af('0x29')]()){if(_0x430c64[_0x39af('0x4e')]||!_0x430c64[_0x39af('0x4d')])continue;if(_0x39af('0xd')!=_0x430c64[_0x39af('0x13c')])continue;const _0x4cda21=_0x430c64[_0x39af('0x4f')]();if(_0x4cda21[_0x39af('0xd8')][_0x39af('0x35')]!=_0x4cda21[_0x39af('0x4')][_0x39af('0x35')]&&_0x4cda21['end'][_0x39af('0x91')](_0x24dd7f[_0x39af('0xa0')])){const _0x5b91ed=_0x45c449[_0x39af('0x1f')]['createRange'](_0x4cda21[_0x39af('0xd8')],_0x179117);_0x39614c[_0x39af('0x12a')](_0x430c64[_0x39af('0x10d')](),{'range':_0x5b91ed}),_0x2573a1=!0x0;}}}return _0x2573a1;}),_0x45c449[_0x39af('0x1f')]['markers']['on'](_0x39af('0xe0'),(_0x2e039e,_0x53db32,_0x59dd0d)=>{if(null==_0x59dd0d){const {id:_0x4fa6ba}=this[_0x39af('0x8')](_0x53db32[_0x39af('0xbf')]),_0x3e3503=this[_0x39af('0x5a')][_0x39af('0x72')](_0x4fa6ba);_0x3e3503&&_0x3e3503[_0x39af('0x117')](_0x53db32['name']);}}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')]['on']('change:data',()=>{const _0x1ff9f8=Array[_0x39af('0x12b')](_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')]['getChangedMarkers']())[_0x39af('0xae')](_0x1384fa=>'suggestion'===this[_0x39af('0x8')](_0x1384fa[_0x39af('0xbf')])[_0x39af('0x9e')]);if(0x0===_0x1ff9f8[_0x39af('0xfd')])return;_0x1ff9f8[_0x39af('0x60')]((_0x5ed7a8,_0x1495fc)=>{const _0x589d83=_0x5ed7a8[_0x39af('0x139')][_0x39af('0x3')],_0x2b01a6=_0x1495fc[_0x39af('0x139')][_0x39af('0x3')];return null===_0x589d83&&null===_0x2b01a6?0x0:null===_0x589d83&&null!==_0x2b01a6?-0x1:null!==_0x589d83&&null===_0x2b01a6?0x1:_0x589d83[_0x39af('0xd8')][_0x39af('0x107')](_0x2b01a6[_0x39af('0xd8')])?-0x1:0x1;});const _0x27d53b=new Set(),_0x4bc8fa=new Set();for(const {name:_0x16443c,data:_0x1231a0}of _0x1ff9f8){const {id:_0x97be84}=this['_splitMarkerName'](_0x16443c);if(null===_0x1231a0[_0x39af('0x3')]){const _0x418f77=this[_0x39af('0x27')](_0x16443c);_0x4bc8fa[_0x39af('0x130')](_0x418f77);}else{const _0x8e0979=this['_suggestions'][_0x39af('0x72')](_0x97be84);null!==_0x1231a0[_0x39af('0x25')]||_0x8e0979[_0x39af('0x4d')]?(_0x27d53b[_0x39af('0x130')](_0x8e0979[_0x39af('0x137')]),_0x4bc8fa[_0x39af('0x130')](_0x8e0979)):this['_removeSuggestion'](_0x8e0979);}}_0x4bc8fa[_0x39af('0x74')]>0x0&&this[_0x39af('0xef')](_0x4bc8fa);for(const _0x4d179f of _0x27d53b)this[_0x39af('0x49')](_0x39af('0x6e'),_0x4d179f);}),_0x45c449['model']['on'](_0x39af('0xd0'),(_0x17854c,_0x5e39d3)=>{const _0xb088a6=_0x5e39d3[0x0];if(!this[_0x39af('0x5a')][_0x39af('0x74')])return;if(!_0xb088a6[_0x39af('0xa4')])return;if(_0xb088a6[_0x39af('0x24')][_0x39af('0x131')]||!_0xb088a6[_0x39af('0x24')][_0x39af('0xf9')])return;let _0x204ad3,_0x32c212;switch(_0xb088a6[_0x39af('0x13c')]){case _0x39af('0xab'):_0x204ad3=_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0xb088a6['position']),_0x32c212=_0x204ad3[_0x39af('0x95')](_0xb088a6[_0x39af('0x123')]);break;case _0x39af('0x6'):_0x204ad3=_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0xb088a6[_0x39af('0x1b')]),_0x32c212=_0x45c449['model'][_0x39af('0x126')](_0xb088a6[_0x39af('0x11f')]);break;case _0x39af('0xb3'):_0x204ad3=_0x45c449['model']['createPositionAt'](_0xb088a6[_0x39af('0xcf')]),_0x32c212=_0x204ad3[_0x39af('0x95')](_0xb088a6[_0x39af('0x123')]);break;default:return;}const _0x52965e=_0x45c449[_0x39af('0x1f')]['createRange'](_0x204ad3,_0x32c212);_0x45c449['model']['change'](()=>{for(const {suggestion:_0x59d73d,meta:_0x22d719}of this[_0x39af('0x82')](_0x52965e)){if(_0x59d73d[_0x39af('0x4e')])continue;if(_0x39af('0x73')==_0x59d73d[_0x39af('0x13c')])continue;const _0x1093f8=_0x59d73d['data']&&_0x59d73d['data'][_0x39af('0x7b')];(_0x39af('0xd')!=_0x59d73d['type']||'split'==_0xb088a6[_0x39af('0x13c')]&&!_0x1093f8)&&(_0x22d719[_0x39af('0xc3')]||_0x39af('0xd5')==_0x59d73d['type']&&_0x22d719[_0x39af('0xba')]||_0x59d73d[_0x39af('0x4f')]()[_0x39af('0xcd')](_0x52965e)&&this[_0x39af('0x17')](_0x59d73d,_0x204ad3,_0x32c212));}});},{'priority':_0x39af('0x106')}),_0x45c449[_0x39af('0x1f')]['on'](_0x39af('0x6f'),(_0x547550,_0x3e35a6)=>{const _0x394105=_0x3e35a6[0x0],_0x134f90=_0x3e35a6[0x1];if(_0x134f90&&_0x134f90[_0x39af('0xd6')])return;if(this[_0x39af('0x3c')])return;if(!this['trackChangesCommand'][_0x39af('0x28')])return;if(_0x394105[_0x39af('0x11a')])return;const _0x45f4ee=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')],{start:_0xb100c9,end:_0x317a9e}=_0x394105['getFirstRange'](),_0x49e5cf=_0xb100c9[_0x39af('0xaa')]&&_0x45f4ee[_0x39af('0xf')](_0xb100c9['nodeAfter'])?null:_0x45f4ee['getNearestSelectionRange'](_0xb100c9,_0x39af('0x12d')),_0x53312d=_0x317a9e[_0x39af('0x102')]&&_0x45f4ee[_0x39af('0xf')](_0x317a9e['nodeBefore'])?null:_0x45f4ee['getNearestSelectionRange'](_0x317a9e,_0x39af('0xe2')),_0x2f219e=_0x45c449[_0x39af('0x1f')][_0x39af('0xda')](_0x49e5cf?_0x49e5cf[_0x39af('0xd8')]:_0xb100c9,_0x53312d?_0x53312d[_0x39af('0x4')]:_0x317a9e);_0x45c449[_0x39af('0x1f')][_0x39af('0x138')](_0x403f91=>{this[_0x39af('0x111')](_0x2f219e);const _0x48f656=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0x5d')](_0x2f219e[_0x39af('0xd8')]);_0x394105['is'](_0x39af('0x51'))?_0x403f91[_0x39af('0xca')](_0x48f656):_0x394105[_0x39af('0x13d')](_0x48f656);}),_0x547550['stop']();},{'priority':_0x511a76[_0x39af('0xc7')]+0xa}),_0x45c449[_0x39af('0x1f')]['on'](_0x39af('0x115'),(_0x3fe30e,_0x4ff72d)=>{const _0xb3e6d7=_0x4ff72d[_0x4ff72d[_0x39af('0xfd')]-0x1];_0xb3e6d7&&_0xb3e6d7[_0x39af('0xd6')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45c449[_0x39af('0x1f')][_0x39af('0x138')](()=>{let _0x27f170=_0x45c449['model'][_0x39af('0x115')](_0x4ff72d[0x0],_0x4ff72d[0x1],_0x4ff72d[0x2],{'forceDefaultExecution':!0x0});if(!_0x27f170)return;_0x3fe30e[_0x39af('0x112')]=_0x27f170[_0x39af('0xed')]();const _0x450c10=_0x27f170[_0x39af('0x4')][_0x39af('0x102')],_0x48be72=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')];_0x450c10&&_0x48be72[_0x39af('0x13f')](_0x450c10)&&!_0x48be72['isObject'](_0x450c10)&&(_0x27f170=_0x45c449[_0x39af('0x1f')]['createRange'](_0x27f170[_0x39af('0xd8')],_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0x450c10,_0x39af('0x4')))),this['markInsertion'](_0x27f170);}),_0x3fe30e[_0x39af('0xc5')]());},{'priority':_0x39af('0x10f')}),this[_0x39af('0xb1')][_0x39af('0xde')][_0x39af('0x130')](_0x39af('0x13a'),this[_0x39af('0x98')]),this['enableCommand'](_0x39af('0x13a'));const _0x207109=new _0x49f9ee(_0x45c449,this['_suggestions']);_0x45c449[_0x39af('0xde')][_0x39af('0x130')](_0x39af('0x6c'),_0x207109),this[_0x39af('0x47')]('acceptSuggestion');const _0x20cd01=new _0x3899d2(_0x45c449,this['_suggestions']);_0x45c449[_0x39af('0xde')][_0x39af('0x130')](_0x39af('0xb0'),_0x20cd01),this[_0x39af('0x47')](_0x39af('0xb0')),_0x45c449['commands'][_0x39af('0x130')](_0x39af('0x68'),new _0x219ed6(_0x45c449,_0x207109,this['_suggestions'])),this['enableCommand'](_0x39af('0x68')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0x104'),new _0x219ed6(_0x45c449,_0x20cd01,this['_suggestions'])),this[_0x39af('0x47')](_0x39af('0x104')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0x109'),new _0x3a708a(_0x45c449,_0x207109,this['_suggestions'])),this[_0x39af('0x47')](_0x39af('0x109')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0xfa'),new _0x3a708a(_0x45c449,_0x20cd01,this[_0x39af('0x5a')])),this[_0x39af('0x47')](_0x39af('0xfa'));const _0x1ac2ed=_0x45c449[_0x39af('0xf5')]['get'](_0x39af('0x12e'));this[_0x39af('0xd3')](_0x1ac2ed,_0x39af('0xe5'),(_0x480409,{threadId:_0x32c911})=>{const _0x112196=this[_0x39af('0x5a')][_0x39af('0x72')](_0x32c911);_0x112196&&_0x112196[_0x39af('0xf6')]&&0x1===_0x112196[_0x39af('0xf6')]['length']&&this[_0x39af('0x8a')](_0x32c911,{'hasComments':!0x0});},{'priority':_0x39af('0x6d')}),this[_0x39af('0xd3')](_0x1ac2ed,'removeComment',(_0x1cfb08,{threadId:_0xfd2a7d})=>{const _0x5a9963=this[_0x39af('0x5a')]['get'](_0xfd2a7d);_0x5a9963&&_0x5a9963[_0x39af('0xf6')]&&!_0x5a9963[_0x39af('0xf6')]['length']&&this[_0x39af('0x8a')](_0xfd2a7d,{'hasComments':!0x1});},{'priority':_0x39af('0x6d')});}set[_0x39af('0xf1')](_0x2abc89){if(this[_0x39af('0x22')])throw new _0x14653c('track-changes-adapter-already-set',this);this[_0x39af('0x22')]=_0x2abc89;}get[_0x39af('0xf1')](){return this[_0x39af('0x22')];}['getSuggestions']({skipNotAttached:_0x2f8ad8=!0x1,toJSON:_0x140dbf=!0x1}={}){const _0x28e208=[];for(const _0x41a7ca of this[_0x39af('0x5a')][_0x39af('0x29')]())_0x2f8ad8&&!_0x41a7ca['isInContent']||_0x28e208[_0x39af('0xb9')](_0x41a7ca);return _0x140dbf?_0x28e208[_0x39af('0xdb')](_0x5ee26f=>_0x5ee26f[_0x39af('0xc')]()):_0x28e208;}['getSuggestion'](_0x34a4a6){const _0x42ce4e=this[_0x39af('0x5a')][_0x39af('0x72')](_0x34a4a6);if(!_0x42ce4e)throw new _0x14653c(_0x39af('0x55'),this);return _0x42ce4e;}[_0x39af('0xa6')](_0x5c4f1e){return this[_0x39af('0x5a')][_0x39af('0x43')](_0x5c4f1e);}['addSuggestionData'](_0x53e175){const {authorId:_0x49bf56,id:_0x30b4a4,attributes:_0x24a31d}=_0x53e175,[_0x3bb573,_0x4cc9af]=_0x53e175[_0x39af('0x13c')]['split'](':'),_0x59c211=this[_0x39af('0x5a')][_0x39af('0x72')](_0x30b4a4)||this[_0x39af('0x10c')](_0x3bb573,_0x4cc9af,_0x30b4a4,_0x49bf56,_0x24a31d);if(this[_0x39af('0xd2')](_0x59c211),this[_0x39af('0x92')](_0x59c211,_0x3bb573,_0x4cc9af||null,_0x49bf56),_0x59c211[_0x39af('0xe')]=_0x53e175[_0x39af('0xe')],_0x24a31d&&_0x24a31d[_0x39af('0x48')]){const _0x41726c=_0x24a31d[_0x39af('0x48')],_0x5d83ec=this['_getExternalAuthor'](_0x41726c[_0x39af('0xf7')]);_0x59c211[_0x39af('0xfc')]=_0x41726c[_0x39af('0xe')],_0x59c211['author']=_0x5d83ec,_0x59c211['isExternal']=!0x0;}else _0x59c211[_0x39af('0xfc')]=_0x53e175['createdAt'];switch(_0x53e175[_0x39af('0x139')]&&(_0x59c211[_0x39af('0x139')]=_0x53e175[_0x39af('0x139')]),_0x53e175[_0x39af('0x7e')]&&(_0x59c211[_0x39af('0x7e')]=_0x53e175[_0x39af('0x7e')]),this[_0x39af('0x22')]&&this[_0x39af('0x22')][_0x39af('0x120')]||(_0x59c211[_0x39af('0x66')]=!0x0),this['_suggestionState'][_0x39af('0x72')](_0x59c211)){case _0x39af('0x23'):this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x129'));break;case _0x39af('0xb5'):_0x59c211[_0x39af('0x4d')]?(this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x79')),this[_0x39af('0x49')](_0x39af('0xbd'),_0x59c211)):this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x13b'));}return _0x59c211;}[_0x39af('0x6c')](_0x499152){this[_0x39af('0xd6')](()=>{this['editor'][_0x39af('0x1f')][_0x39af('0x138')](()=>{for(const _0x6cf68a of _0x499152['getAllAdjacentSuggestions']())_0x6cf68a['accept']();});});}['discardSuggestion'](_0x48568d){this[_0x39af('0xd6')](()=>{this[_0x39af('0xb1')][_0x39af('0x1f')][_0x39af('0x138')](()=>{for(const _0x53a816 of _0x48568d[_0x39af('0x62')]())_0x53a816[_0x39af('0xbb')]();});});}[_0x39af('0x47')](_0x505831,_0x5bc3d5){const _0x26035d=this[_0x39af('0xb1')]['commands']['get'](_0x505831);if(!_0x26035d)throw new _0x14653c(_0x39af('0xe7'),this,{'commandName':_0x505831});this[_0x39af('0x0')][_0x39af('0x130')](_0x26035d),_0x5bc3d5&&_0x26035d['on'](_0x39af('0xac'),(_0x405b66,_0x39ecc1)=>{this['trackChangesCommand'][_0x39af('0x28')]&&(this['_isForcedDefaultExecutionBlock']||_0x39ecc1[_0x39af('0xfd')]>0x0&&_0x39ecc1[_0x39ecc1[_0x39af('0xfd')]-0x1]&&_0x39ecc1[_0x39ecc1['length']-0x1][_0x39af('0xd6')]||(_0x5bc3d5((..._0x231b7b)=>_0x26035d[_0x39af('0xac')](..._0x231b7b,{'forceDefaultExecution':!0x0}),..._0x39ecc1),_0x405b66[_0x39af('0xc5')]()));},{'priority':_0x39af('0x10f')});}[_0x39af('0xd6')](_0x21fc89){let _0x43ed0e,_0x3f63d5;const _0x5439eb=this[_0x39af('0x3c')];this[_0x39af('0x3c')]=!0x0;try{_0x43ed0e=_0x21fc89();}catch(_0x429c61){_0x3f63d5=_0x429c61;}return _0x5439eb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f63d5&&_0x14653c[_0x39af('0x114')](_0x3f63d5,this),_0x43ed0e;}[_0x39af('0x7f')](_0x1498f4,_0x1ed83a=null,_0x115cae={}){if(_0x1498f4['isCollapsed'])return null;const _0x2c95cd=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')]('Users')['me'];for(const {suggestion:_0x553f32,meta:_0x533fb8}of this['_findSuggestions'](_0x1498f4,_0x39af('0xd5')))if(_0x533fb8[_0x39af('0xba')]){if(!_0x533fb8[_0x39af('0x16')]){if(!this[_0x39af('0x7')]&&_0x533fb8[_0x39af('0xc3')])continue;return _0x553f32;}if(_0x1ed83a==_0x553f32[_0x39af('0xec')]){const _0xd8d5dc=_0x553f32[_0x39af('0x4f')]();return _0xd8d5dc[_0x39af('0xd8')][_0x39af('0x91')](_0x1498f4[_0x39af('0x4')])?this[_0x39af('0xcc')](_0x553f32,this[_0x39af('0x116')][_0x39af('0xda')](_0x1498f4[_0x39af('0xd8')],_0xd8d5dc['end'])):this['_setSuggestionRange'](_0x553f32,this[_0x39af('0x116')][_0x39af('0xda')](_0xd8d5dc[_0x39af('0xd8')],_0x1498f4[_0x39af('0x4')])),_0x553f32;}}const _0x2cb1bb=_0x16cd6a(),_0x338953=_0x2c95cd['id'],_0x500887=_0x1ed83a?_0x39af('0xdc')+_0x1ed83a:'insertion',_0x352b32=this[_0x39af('0xa1')]({'id':_0x2cb1bb,'type':_0x500887,'createdAt':new Date(),'authorId':_0x338953,'attributes':_0x115cae});return this[_0x39af('0x6a')](_0x500887,_0x2cb1bb,_0x338953,_0x1498f4),_0x352b32;}[_0x39af('0x2e')](_0x1c5839,_0xfd6dbf=_0x39af('0x10e'),_0x2f32e7={}){const _0x7e99e6=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x47c0d9=this[_0x39af('0x3e')][_0x39af('0xf8')]('insertion',_0xfd6dbf,_0x39af('0xa9'));for(const _0x5caaac of this[_0x39af('0x7a')]())if(_0x5caaac[_0x39af('0xea')]['id']==_0x7e99e6['id']&&_0x39af('0xd5')==_0x5caaac[_0x39af('0x13c')]&&_0x5caaac[_0x39af('0xec')]==_0xfd6dbf&&(_0x47c0d9(_0x5caaac[_0x39af('0xff')](),_0x1c5839)||_0x47c0d9(_0x1c5839,_0x5caaac[_0x39af('0xff')]()))){for(const _0x2ff4b1 of _0x1c5839)_0x5caaac['addRange'](_0x2ff4b1);return _0x5caaac;}if(this['_mergeNestedSuggestions'])for(const _0xc380b8 of _0x1c5839)for(const {suggestion:_0x2e91ad,meta:_0x594738}of this[_0x39af('0x82')](_0xc380b8,'insertion')){if(!_0x594738[_0x39af('0xba')])continue;let _0x5925cb=!0x0;for(const _0xdc451f of _0x2e91ad[_0x39af('0xff')]())for(const _0x47f928 of _0x1c5839)if(!_0xdc451f[_0x39af('0xcd')](_0x47f928)){_0x5925cb=!0x1;break;}if(_0x5925cb)return _0x2e91ad;}const _0x177c09=_0x16cd6a(),_0x566d36=_0x7e99e6['id'],_0x293528=_0x39af('0xdc')+_0xfd6dbf,_0x5c8719=this[_0x39af('0xa1')]({'id':_0x177c09,'type':_0x293528,'createdAt':new Date(),'authorId':_0x566d36,'attributes':_0x2f32e7});for(const _0x1d923b of _0x1c5839)this[_0x39af('0x6a')](_0x293528,_0x177c09,_0x566d36,_0x1d923b,_0x1760a0['getMultiRangeId']());return _0x5c8719;}[_0x39af('0xd9')](_0x565bef,_0x4d4df5,_0x299244=null,_0x36019e={}){if(_0x299244=_0x299244||$t(_0x4d4df5),_0x565bef[_0x39af('0x11a')])return null;if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x570f81=this[_0x39af('0x3e')][_0x39af('0xf8')]('formatInline',_0x299244,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x570f81([_0x565bef],_0x4d4df5,_0x36019e)),null;}const _0x3d2a34=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x14866f=[];if('always'!==this[_0x39af('0xf3')])for(const {suggestion:_0x40b0f7,meta:_0x4bac31}of this[_0x39af('0x82')](_0x565bef,'insertion'))_0x4bac31[_0x39af('0xba')]&&!_0x4bac31[_0x39af('0x4b')]&&_0x14866f[_0x39af('0xb9')](..._0x40b0f7[_0x39af('0xff')]());const _0x2a40c1=function(_0x215b86,_0xfa820a){const _0xc61066=[];for(const _0x5168b7 of _0xfa820a){const _0xb7b946=_0x215b86[_0x39af('0x127')](_0x5168b7);_0xb7b946&&_0xc61066[_0x39af('0xb9')](_0xb7b946);}return _0xc61066;}(_0x565bef,_0x14866f),_0x1c04dc=function(_0x1bbfaa,_0x37076d){const _0x2f99ec=[_0x1bbfaa];for(const _0x1f73fd of _0x37076d){let _0x3c0496=0x0;for(;_0x3c0496<_0x2f99ec[_0x39af('0xfd')];){const _0x46c6c4=_0x2f99ec[_0x3c0496][_0x39af('0xe6')](_0x1f73fd);_0x2f99ec[_0x39af('0x21')](_0x3c0496,0x1,..._0x46c6c4),_0x3c0496+=_0x46c6c4['length'];}}return _0x2f99ec;}(_0x565bef,_0x14866f);_0x2a40c1[_0x39af('0xfd')]&&this[_0x39af('0x116')][_0x39af('0x138')](()=>{for(const _0x1568fc of _0x2a40c1){const _0x48a87b=this[_0x39af('0x3e')]['getSuggestionCallback'](_0x39af('0x73'),_0x299244,_0x39af('0xad'));this[_0x39af('0xd6')](()=>_0x48a87b([_0x1568fc],_0x4d4df5,_0x36019e));}});for(const _0xd1908b of _0x1c04dc){let _0x5b9c6b=null,_0x290a96=_0xd1908b[_0x39af('0xd8')],_0x1db95d=_0xd1908b[_0x39af('0x4')];for(const {suggestion:_0x388d48,meta:_0x1f34cd}of this[_0x39af('0x82')](_0xd1908b,'formatInline')){if(!_0x1f34cd[_0x39af('0xba')])continue;if(_0x388d48[_0x39af('0xec')]!=_0x299244)continue;const _0x2eb0ba=_0x388d48[_0x39af('0x4f')]();if(_0x2eb0ba['containsRange'](_0xd1908b,!0x0))return null;_0x290a96=_0x290a96[_0x39af('0x107')](_0x2eb0ba[_0x39af('0xd8')])?_0x290a96:_0x2eb0ba[_0x39af('0xd8')],_0x1db95d=_0x1db95d['isAfter'](_0x2eb0ba[_0x39af('0x4')])?_0x1db95d:_0x2eb0ba[_0x39af('0x4')],_0x5b9c6b?_0x2eb0ba['start'][_0x39af('0x107')](_0x5b9c6b[_0x39af('0x4f')]()[_0x39af('0xd8')])?(_0x5b9c6b[_0x39af('0x88')](),_0x5b9c6b=_0x388d48):_0x388d48[_0x39af('0x88')]():_0x5b9c6b=_0x388d48;}const _0x155910=this['_model'][_0x39af('0xda')](_0x290a96,_0x1db95d);if(_0x5b9c6b)this[_0x39af('0xcc')](_0x5b9c6b,_0x155910);else{const _0x203224=_0x16cd6a(),_0x2901d9=_0x3d2a34['id'];this[_0x39af('0xa1')]({'id':_0x203224,'type':_0x39af('0x94')+_0x299244,'data':_0x4d4df5,'createdAt':new Date(),'authorId':_0x2901d9,'attributes':_0x36019e}),this[_0x39af('0x6a')](_0x39af('0x94')+_0x299244,_0x203224,_0x2901d9,_0x155910);}}return null;}['markBlockFormat'](_0x888f50,_0x76dab5,_0x1478b7=[],_0x1ddae0=null,_0x309011={}){_0x76dab5['formatGroupId']||(_0x76dab5[_0x39af('0x8c')]=_0x76dab5[_0x39af('0xe9')]),_0x76dab5[_0x39af('0x7b')]=_0x888f50['is'](_0x39af('0x32')),_0x1ddae0=_0x1ddae0||$t(_0x76dab5);const _0x52231b=_0x1478b7[_0x39af('0xdb')](_0x95efd=>Rt(_0x95efd,this[_0x39af('0x116')])),_0x4788b1=_0x888f50['is']('range')?_0x888f50:Rt(_0x888f50,this['_model']);if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x444f6b=this[_0x39af('0x3e')][_0x39af('0xf8')]('formatBlock',_0x1ddae0,'accept');return this[_0x39af('0xd6')](()=>_0x444f6b([_0x4788b1],_0x76dab5,_0x309011)),null;}_0x52231b[_0x39af('0xb9')](_0x4788b1);let _0x419ebb=!0x0;for(const _0x175ae6 of _0x52231b)if(!this['_rangeIsInLocalUserInsertion'](_0x175ae6)){_0x419ebb=!0x1;break;}if(_0x419ebb&&_0x39af('0x101')!==this[_0x39af('0xf3')]){const _0x23c978=this['_suggestionFactory'][_0x39af('0xf8')]('formatBlock',_0x1ddae0,'accept');return this[_0x39af('0xd6')](()=>_0x23c978([_0x4788b1],_0x76dab5,_0x309011)),null;}let _0x39ff98=null,_0x5a5fdd=_0x4788b1['start'],_0x40c628=_0x4788b1['end'];for(const {suggestion:_0x529397,meta:_0x1c3378}of this[_0x39af('0x82')](_0x4788b1,_0x39af('0xd'))){if(!_0x1c3378[_0x39af('0xba')]||_0x1c3378['isNextTo']||_0x1c3378['containsRangeInObject']||_0x1c3378[_0x39af('0x4b')])continue;if(_0x529397[_0x39af('0x139')][_0x39af('0x8c')]!=_0x76dab5[_0x39af('0x8c')])continue;const _0x4629a1=_0x529397[_0x39af('0x4f')]();if(_0x529397[_0x39af('0xec')]==_0x1ddae0){if(_0x4629a1[_0x39af('0xcd')](_0x4788b1,!0x0))return null;_0x5a5fdd=_0x5a5fdd[_0x39af('0x107')](_0x4629a1['start'])?_0x5a5fdd:_0x4629a1[_0x39af('0xd8')],_0x40c628=_0x40c628['isAfter'](_0x4629a1[_0x39af('0x4')])?_0x40c628:_0x4629a1['end'],_0x39ff98?_0x4629a1[_0x39af('0xd8')][_0x39af('0x107')](_0x39ff98['getFirstRange']()[_0x39af('0xd8')])?(_0x39ff98[_0x39af('0x88')](),_0x39ff98=_0x529397):_0x529397['removeMarkers']():_0x39ff98=_0x529397;}else{const _0x8baac6=_0x4788b1[_0x39af('0x127')](_0x4629a1);this[_0x39af('0xf2')](_0x529397,_0x8baac6);}}const _0x17a46a=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')]('Users')['me'],_0x33e61=_0x16cd6a(),_0x29d5a6=_0x17a46a['id'];if(_0x39ff98)return this[_0x39af('0xcc')](_0x39ff98,this['_model'][_0x39af('0xda')](_0x5a5fdd,_0x40c628)),_0x39ff98;{const _0x32dab0=this[_0x39af('0xa1')]({'id':_0x33e61,'type':_0x39af('0x124')+_0x1ddae0,'data':_0x76dab5,'createdAt':new Date(),'authorId':_0x29d5a6,'attributes':_0x309011});return this['_addSuggestionMarker'](_0x39af('0x124')+_0x1ddae0,_0x33e61,_0x29d5a6,this[_0x39af('0x116')][_0x39af('0xda')](_0x5a5fdd,_0x40c628)),_0x32dab0;}}[_0x39af('0xbc')](_0x33af09,_0x3b0855,_0x43f4c3=[],_0x340a7f=null,_0x165948={}){_0x3b0855[_0x39af('0x8c')]||(_0x3b0855[_0x39af('0x8c')]=_0x3b0855[_0x39af('0xe9')]);const _0x17d3ca=_0x33af09[0x0];_0x3b0855[_0x39af('0x7b')]=_0x17d3ca['is']('range'),_0x340a7f=_0x340a7f||$t(_0x3b0855);const _0x5a3af2=_0x43f4c3['map'](_0x253cf7=>Rt(_0x253cf7,this[_0x39af('0x116')])),_0x244871=_0x17d3ca['is'](_0x39af('0x32'))?_0x33af09:_0x33af09[_0x39af('0xdb')](_0x2e277a=>Rt(_0x2e277a,this[_0x39af('0x116')]));if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x33c320=this[_0x39af('0x3e')][_0x39af('0xf8')](_0x39af('0xd'),_0x340a7f,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x33c320(_0x244871,_0x3b0855,_0x165948)),null;}_0x5a3af2[_0x39af('0xb9')](..._0x244871);let _0x1e1d3b=!0x0;for(const _0x47a5da of _0x5a3af2)if(!this[_0x39af('0x45')](_0x47a5da)){_0x1e1d3b=!0x1;break;}if(_0x1e1d3b&&_0x39af('0x101')!==this['_trackFormatChanges']){const _0x30ea82=this['_suggestionFactory'][_0x39af('0xf8')](_0x39af('0xd'),_0x340a7f,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x30ea82(_0x244871,_0x3b0855,_0x165948)),null;}const _0x4ab8ab=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')]('Users')['me'];for(const _0x20a05b of this[_0x39af('0x7a')]()){if(_0x20a05b[_0x39af('0xea')]['id']!=_0x4ab8ab['id'])continue;if(_0x39af('0xd')!=_0x20a05b[_0x39af('0x13c')]||_0x20a05b[_0x39af('0x139')]['formatGroupId']!=_0x3b0855['formatGroupId'])continue;const _0x49fba6=_0x20a05b[_0x39af('0xec')]==_0x340a7f;for(let _0x78b1af=0x0;_0x78b1af<_0x244871[_0x39af('0xfd')];_0x78b1af++){const _0x529a67=_0x244871[_0x78b1af];for(const _0x2501c2 of _0x20a05b[_0x39af('0x33')]()){const _0x542462=_0x2501c2['getRange']();if(_0x529a67['isEqual'](_0x542462)){_0x49fba6?(_0x244871['splice'](_0x78b1af,0x1),_0x78b1af--):_0x20a05b[_0x39af('0x7c')](_0x2501c2[_0x39af('0xbf')]);break;}}}}if(0x0==_0x244871[_0x39af('0xfd')])return null;const _0x4865e3=this[_0x39af('0x3e')]['getSuggestionCallback'](_0x39af('0xd'),_0x340a7f,_0x39af('0xa9'));for(const _0x23726d of this['getSuggestions']())if(_0x23726d['author']['id']==_0x4ab8ab['id']&&'formatBlock'==_0x23726d['type']&&_0x23726d[_0x39af('0x139')][_0x39af('0x8c')]==_0x3b0855[_0x39af('0x8c')]&&_0x23726d[_0x39af('0xec')]==_0x340a7f&&(_0x4865e3(_0x23726d[_0x39af('0xff')](),_0x244871)||_0x4865e3(_0x244871,_0x23726d[_0x39af('0xff')]()))){for(const _0x2a1a4b of _0x244871)_0x23726d[_0x39af('0xb4')](_0x2a1a4b);return _0x23726d;}const _0x1ab32c=_0x16cd6a(),_0x5ee2e8=_0x4ab8ab['id'],_0x1059b5=_0x39af('0x124')+_0x340a7f,_0x23330d=this['_setSuggestionData']({'id':_0x1ab32c,'type':_0x1059b5,'data':_0x3b0855,'createdAt':new Date(),'authorId':_0x5ee2e8,'attributes':_0x165948});for(const _0x89ef47 of _0x244871)this[_0x39af('0x6a')](_0x1059b5,_0x1ab32c,_0x5ee2e8,_0x89ef47,_0x1760a0['getMultiRangeId']());return _0x23330d;}[_0x39af('0x111')](_0xb9b4b1,_0x40b275=null,_0x389426={}){if(_0xb9b4b1[_0x39af('0x11a')])return null;const _0x40b773=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x1b112e=new _0x3b5b82(_0xb9b4b1[_0x39af('0xd8')],_0xb9b4b1[_0x39af('0x4')]);for(const {suggestion:_0xf32362,meta:_0x24a418}of this['_findSuggestions'](_0x1b112e,'insertion'))if(_0x24a418[_0x39af('0xba')]&&!_0x24a418[_0x39af('0x16')]){if(_0xf32362[_0x39af('0x4e')]){const _0x17f425=_0xf32362[_0x39af('0xff')]()[_0x39af('0xae')](_0x27c1f8=>'$graveyard'!=_0x27c1f8[_0x39af('0x13e')][_0x39af('0x10a')]);_0x17f425['every'](_0x248e80=>_0x1b112e[_0x39af('0xcd')](_0x248e80,!0x0))&&_0xf32362[_0x39af('0xbb')]();if(_0x17f425['some'](_0x33ad19=>_0x33ad19[_0x39af('0xcd')](_0x1b112e,!0x0))){const _0x17bce6=this[_0x39af('0x3e')][_0x39af('0xf8')]('deletion',_0x40b275,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x17bce6([_0x1b112e],null,_0x389426)),null;}}else{const _0x3f626c=_0x1b112e['getIntersection'](_0xf32362[_0x39af('0x4f')]());null!==_0x3f626c&&_0xf32362[_0x39af('0x1a')]([_0x3f626c],null,_0x389426);}}if(_0x1b112e[_0x39af('0x52')](),_0x1b112e['isCollapsed']||_0x39af('0xa5')==_0x1b112e[_0x39af('0x13e')][_0x39af('0x10a')])return null;let _0x39b0a7=null,_0x3a0e98=_0x1b112e[_0x39af('0xd8')],_0x5744a5=_0x1b112e[_0x39af('0x4')];for(const {suggestion:_0x317f55,meta:_0x498647}of this[_0x39af('0x82')](_0x1b112e,'deletion'))if(_0x498647[_0x39af('0xba')]){if(_0x317f55[_0x39af('0x4e')]&&this[_0x39af('0x7')]){let _0x131849=!0x0;for(const _0x3a4f36 of _0x317f55[_0x39af('0xff')]()){if(_0x3a4f36[_0x39af('0xcd')](_0x1b112e,!0x0))return _0x317f55;_0x1b112e['containsRange'](_0x3a4f36)||(_0x131849=!0x1);}_0x131849&&_0x317f55['discard']();}else{const _0x34ad20=_0x317f55[_0x39af('0x4f')]();if(_0x34ad20['containsRange'](_0x1b112e,!0x0)){if(!this[_0x39af('0x7')]&&_0x498647[_0x39af('0xc3')])continue;return _0x317f55;}_0x3a0e98=_0x3a0e98[_0x39af('0x107')](_0x34ad20['start'])?_0x3a0e98:_0x34ad20[_0x39af('0xd8')],_0x5744a5=_0x5744a5['isAfter'](_0x34ad20['end'])?_0x5744a5:_0x34ad20['end'],_0x39b0a7?_0x34ad20[_0x39af('0xd8')][_0x39af('0x107')](_0x39b0a7[_0x39af('0x4f')]()[_0x39af('0xd8')])?(_0x39b0a7[_0x39af('0x88')](),_0x39b0a7=_0x317f55):_0x317f55[_0x39af('0x88')]():_0x39b0a7=_0x317f55;}}if(_0x39b0a7)return this[_0x39af('0xcc')](_0x39b0a7,this[_0x39af('0x116')][_0x39af('0xda')](_0x3a0e98,_0x5744a5)),_0x39b0a7;{const _0x50bd2e=_0x16cd6a(),_0x843a0d=this[_0x39af('0x116')][_0x39af('0xda')](_0x3a0e98,_0x5744a5),_0x114cfd=_0x40b773['id'],_0x2fe41b=_0x40b275?_0x39af('0x97')+_0x40b275:_0x39af('0xb'),_0x54205d=this[_0x39af('0xa1')]({'id':_0x50bd2e,'type':_0x2fe41b,'createdAt':new Date(),'authorId':_0x114cfd,'attributes':_0x389426});return this['_addSuggestionMarker'](_0x2fe41b,_0x50bd2e,_0x114cfd,_0x843a0d),_0x54205d;}}['markMultiRangeDeletion'](_0x513575,_0x2467a7=_0x39af('0x10e'),_0x586470={}){const _0x531c6d=this[_0x39af('0xb1')][_0x39af('0xf5')]['get'](_0x39af('0x4a'))['me'],_0x17c39d=_0x513575[_0x39af('0xdb')](_0x3ad43e=>new _0x3b5b82(_0x3ad43e['start'],_0x3ad43e[_0x39af('0x4')])),_0x5afdd5=new Set();for(const _0x3fbc01 of _0x17c39d)for(const {suggestion:_0x20812e,meta:_0x445e9d}of this[_0x39af('0x82')](_0x3fbc01,_0x39af('0xd5')))_0x445e9d[_0x39af('0xba')]&&!_0x445e9d[_0x39af('0x16')]&&_0x5afdd5[_0x39af('0x130')](_0x20812e);for(const _0x4903a3 of _0x5afdd5)if(_0x4903a3[_0x39af('0x4e')]){const _0x5e386a=_0x4903a3[_0x39af('0xff')]();(!_0x4903a3[_0x39af('0x7e')]||!_0x4903a3[_0x39af('0x7e')][_0x39af('0x9d')])&&(_0x5e386a[_0x39af('0x5b')](_0x1b0516=>_0x17c39d[_0x39af('0x63')](_0x4c7b00=>_0x4c7b00[_0x39af('0xcd')](_0x1b0516,!0x0)))&&_0x4903a3[_0x39af('0xbb')]());if(_0x17c39d[_0x39af('0x5b')](_0x4b240a=>_0x5e386a[_0x39af('0x63')](_0x420869=>_0x420869[_0x39af('0xcd')](_0x4b240a,!0x0)))){const _0x20b129=this[_0x39af('0x3e')][_0x39af('0xf8')]('deletion',_0x2467a7,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x20b129(_0x513575,null,_0x586470)),null;}}else{const _0x33a01d=_0x4903a3[_0x39af('0x4f')]();_0x17c39d['some'](_0x436b14=>_0x436b14[_0x39af('0xcd')](_0x33a01d,!0x0))&&_0x4903a3[_0x39af('0xbb')]();if(_0x17c39d[_0x39af('0x5b')](_0x2b07ac=>_0x33a01d[_0x39af('0xcd')](_0x2b07ac,!0x0))){const _0x644014=this['_suggestionFactory'][_0x39af('0xf8')](_0x39af('0xb'),_0x2467a7,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x644014(_0x17c39d,null,_0x586470)),null;}}const _0x303353=this[_0x39af('0x3e')][_0x39af('0xf8')](_0x39af('0xb'),_0x2467a7,_0x39af('0xa9'));let _0x241f18=null;for(const _0x4dd4cf of this[_0x39af('0x7a')]())if(_0x4dd4cf[_0x39af('0xea')]['id']==_0x531c6d['id']&&_0x4dd4cf['isInContent']&&_0x39af('0xb')==_0x4dd4cf[_0x39af('0x13c')]&&_0x4dd4cf['subType']==_0x2467a7&&(_0x303353(_0x4dd4cf[_0x39af('0xff')](),_0x17c39d)||_0x303353(_0x17c39d,_0x4dd4cf[_0x39af('0xff')]()))){if(_0x241f18){if(_0x4dd4cf[_0x39af('0xf6')]&&_0x4dd4cf[_0x39af('0xf6')][_0x39af('0xfd')])continue;for(const _0x49c239 of _0x4dd4cf[_0x39af('0xff')]())_0x241f18[_0x39af('0x125')](_0x49c239)||_0x241f18['addRange'](_0x49c239);_0x4dd4cf[_0x39af('0x88')]();}else{_0x241f18=_0x4dd4cf;for(const _0x133fb2 of _0x17c39d)_0x4dd4cf[_0x39af('0x125')](_0x133fb2)||_0x4dd4cf[_0x39af('0xb4')](_0x133fb2);}}if(_0x241f18)return _0x241f18;_0x5afdd5[_0x39af('0xc2')]();for(const _0x482403 of _0x17c39d)for(const {suggestion:_0x26e2fd,meta:_0x2ca53d}of this[_0x39af('0x82')](_0x482403,'deletion'))_0x2ca53d['isOwn']&&_0x5afdd5[_0x39af('0x130')](_0x26e2fd);for(const _0x330848 of _0x5afdd5){const _0x554f7a=_0x330848[_0x39af('0xff')]();if(!_0x586470||!_0x586470[_0x39af('0x9d')]){if(_0x17c39d[_0x39af('0x5b')](_0x594567=>_0x554f7a[_0x39af('0x63')](_0x4bc584=>_0x4bc584[_0x39af('0xcd')](_0x594567,!0x0))))return _0x330848;}(!_0x330848['attributes']||!_0x330848[_0x39af('0x7e')][_0x39af('0x9d')])&&(_0x554f7a[_0x39af('0x5b')](_0x299744=>_0x17c39d[_0x39af('0x63')](_0x2a5d52=>_0x2a5d52['containsRange'](_0x299744,!0x0)))&&_0x330848['discard']());}const _0x33dd99=_0x16cd6a(),_0x5d4b76=_0x531c6d['id'],_0x1f09cb=_0x39af('0x97')+_0x2467a7,_0x5a1024=this[_0x39af('0xa1')]({'id':_0x33dd99,'type':_0x1f09cb,'createdAt':new Date(),'authorId':_0x5d4b76,'attributes':_0x586470});for(const _0x1cd61a of _0x17c39d)_0x1cd61a[_0x39af('0x52')](),_0x1cd61a['isCollapsed']||_0x39af('0xa5')==_0x1cd61a[_0x39af('0x13e')][_0x39af('0x10a')]||this['_addSuggestionMarker'](_0x1f09cb,_0x33dd99,_0x5d4b76,_0x1cd61a,_0x1760a0['getMultiRangeId']());return _0x5a1024;}['_setSuggestionRange'](_0x2d9f1e,_0x504425){const _0x2becab=_0x2d9f1e['getFirstMarker']();this[_0x39af('0x116')]['change'](_0xb6e2fb=>{_0xb6e2fb[_0x39af('0x12a')](_0x2becab,{'range':_0x504425});});}[_0x39af('0xd2')](_0x4a309b){const _0x2229c0=_0x4a309b['id'],_0x2668ae=this[_0x39af('0xb1')][_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x11c'));this[_0x39af('0x2d')][_0x39af('0x46')](_0x2229c0)||this[_0x39af('0x2d')]['addCommentThread']({'channelId':_0x2668ae,'threadId':_0x2229c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x192e06=this['_commentsRepository'][_0x39af('0x77')](_0x2229c0);_0x192e06[_0x39af('0x100')]('isRemovable'),_0x192e06['isRemovable']=!0x1,_0x4a309b[_0x39af('0xf6')]=_0x192e06;}[_0x39af('0x92')](_0x41df4d,_0x12428d,_0x446a82,_0xf99a7c){if(_0x41df4d[_0x39af('0x13c')]!=_0x12428d||_0x41df4d[_0x39af('0xec')]!=_0x446a82||_0x41df4d['creator']['id']!=_0xf99a7c)throw this[_0x39af('0xb1')]['enableReadOnlyMode'](_0x39af('0xc9')),new _0x14653c(_0x39af('0xc9'),this);}[_0x39af('0xf2')](_0x4c6cf6,_0x140400){const _0x152a67=_0x4c6cf6[_0x39af('0x4f')]();if(_0x140400[_0x39af('0x91')](_0x152a67))_0x4c6cf6[_0x39af('0x88')]();else{if(_0x152a67[_0x39af('0xcd')](_0x140400)){const _0x14168d=this[_0x39af('0x116')][_0x39af('0x126')](_0x140400[_0x39af('0xd8')][_0x39af('0x102')],_0x39af('0x4'));this[_0x39af('0xcc')](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x152a67[_0x39af('0xd8')],_0x14168d));const _0x3bebcc=_0x16cd6a(),_0x5a7e31=_0x4c6cf6[_0x39af('0x2c')]['id'],_0x57cab0=_0x4c6cf6['type']+':'+_0x4c6cf6[_0x39af('0xec')];this[_0x39af('0xa1')]({'id':_0x3bebcc,'type':_0x57cab0,'createdAt':new Date(),'authorId':_0x5a7e31,'data':_0x4c6cf6[_0x39af('0x139')],'attributes':_0x4c6cf6[_0x39af('0x7e')]});const _0x3db828=this['_model']['createPositionAt'](_0x140400[_0x39af('0x4')][_0x39af('0x35')],'after'),_0x46b66f=this[_0x39af('0x116')]['createRange'](_0x3db828,_0x152a67['end']);this[_0x39af('0x6a')](_0x57cab0,_0x3bebcc,_0x5a7e31,_0x46b66f);}else{if(_0x152a67[_0x39af('0x12f')](_0x140400[_0x39af('0xd8')])){const _0x3df039=this[_0x39af('0x116')][_0x39af('0x126')](_0x140400[_0x39af('0xd8')][_0x39af('0x102')],'end');this[_0x39af('0xcc')](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x152a67['start'],_0x3df039));}else{const _0x2ff6d3=this[_0x39af('0x116')]['createPositionAt'](_0x140400[_0x39af('0x4')][_0x39af('0x35')],_0x39af('0x56'));this['_setSuggestionRange'](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x2ff6d3,_0x152a67[_0x39af('0x4')]));}}}}[_0x39af('0x45')](_0x5941d7){for(const {suggestion:_0x3da60c,meta:_0x5b15f1}of this[_0x39af('0x82')](_0x5941d7,_0x39af('0xd5'))){if(!_0x5b15f1[_0x39af('0xba')])continue;const _0x14f19b=_0x3da60c[_0x39af('0xff')]();for(const _0x165a98 of _0x14f19b)if(!_0x5941d7[_0x39af('0xe6')](_0x165a98)[_0x39af('0xfd')])return!0x0;}return!0x1;}[_0x39af('0x135')](_0x583d45){const _0xa2959b=this['editor']['plugins'][_0x39af('0x72')](_0x39af('0x4a'))[_0x39af('0x3d')](_0x583d45);if(!_0xa2959b)throw new _0x14653c(_0x39af('0x59'),this);return _0xa2959b;}[_0x39af('0x87')](_0x26fcb0){const _0x419ded=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a')),_0x59f84d=_0x2a29b6(_0x39af('0x11e')+_0x26fcb0),_0x382472=_0x419ded['getUser'](_0x59f84d);return _0x382472||_0x419ded[_0x39af('0xd4')]({'id':_0x59f84d,'name':_0x26fcb0});}[_0x39af('0x10c')](_0x52a5e6,_0x5cfd10,_0x59e79d,_0x8a391f,_0x37ac6f){const _0x5bc7bd=this[_0x39af('0x135')](_0x8a391f),_0x23bfa1=this[_0x39af('0x3e')][_0x39af('0x90')](_0x52a5e6,_0x5cfd10,_0x59e79d,_0x5bc7bd,_0x37ac6f,_0x56d5be=>this[_0x39af('0x8a')](_0x59e79d,{'attributes':_0x56d5be}));return this[_0x39af('0xd3')](_0x23bfa1,'accept',()=>{this[_0x39af('0x8a')](_0x59e79d,{'state':_0x39af('0xc1')});},{'priority':_0x39af('0x10f')}),this[_0x39af('0xd3')](_0x23bfa1,'discard',()=>{this['_updateSuggestionData'](_0x59e79d,{'state':_0x39af('0x5')});},{'priority':_0x39af('0x10f')}),this['_suggestions'][_0x39af('0x75')](_0x59e79d,_0x23bfa1),this[_0x39af('0x26')][_0x39af('0x75')](_0x23bfa1,_0x39af('0x23')),_0x23bfa1;}[_0x39af('0x8')](_0x194ab8){const _0x3e958e=_0x194ab8[_0x39af('0x6')](':');return{'group':_0x3e958e[0x0],'type':_0x3e958e[0x1],'subType':_0x3e958e[_0x39af('0xfd')]>=0x5?_0x3e958e[0x2]:null,'id':_0x3e958e[_0x39af('0xfd')]<0x5?_0x3e958e[0x2]:_0x3e958e[0x3],'authorId':_0x3e958e[_0x39af('0xfd')]<0x5?_0x3e958e[0x3]:_0x3e958e[0x4],'markerCount':0x6==_0x3e958e['length']?_0x3e958e[0x5]:null};}[_0x39af('0x17')](_0x384510,_0x4dbd73,_0x371b7c){const _0x2f05ce=_0x384510[_0x39af('0x4f')](),_0x5ce130=_0x2f05ce[_0x39af('0xd8')],_0x42c64e=_0x2f05ce[_0x39af('0x4')];this['_setSuggestionRange'](_0x384510,this[_0x39af('0x116')][_0x39af('0xda')](_0x5ce130,_0x4dbd73));const _0x2af80c=_0x16cd6a(),_0xfd4ba5=_0x384510[_0x39af('0x2c')]['id'],_0x47cc6e=_0x384510[_0x39af('0x13c')]+(_0x384510[_0x39af('0xec')]?':'+_0x384510[_0x39af('0xec')]:'');this[_0x39af('0xa1')]({'id':_0x2af80c,'type':_0x47cc6e,'createdAt':new Date(),'authorId':_0xfd4ba5,'originalSuggestionId':_0x384510['id'],'attributes':_0x384510[_0x39af('0x7e')],'data':_0x384510[_0x39af('0x139')]}),'formatBlock'==_0x384510[_0x39af('0x13c')]&&(_0x371b7c=this[_0x39af('0x116')][_0x39af('0x12')](_0x371b7c[_0x39af('0x35')])),this[_0x39af('0x6a')](_0x47cc6e,_0x2af80c,_0xfd4ba5,this[_0x39af('0x116')][_0x39af('0xda')](_0x371b7c,_0x42c64e));}['_findSuggestions'](_0x57d956,_0x5e449a=null){const _0x4021da=[],_0xb47df1=this['_model']['schema'],_0x2c4890=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')]('Users')['me'];for(const _0x1aa6e2 of this['getSuggestions']())if(_0x1aa6e2['isInContent']&&(!_0x5e449a||_0x1aa6e2[_0x39af('0x13c')]==_0x5e449a))for(const _0x312c48 of _0x1aa6e2['getRanges']()){const _0xe41705=_0x57d956['start']['isEqual'](_0x312c48[_0x39af('0x4')])||_0x57d956[_0x39af('0x4')]['isEqual'](_0x312c48[_0x39af('0xd8')]);if(_0xe41705||_0x57d956[_0x39af('0x127')](_0x312c48)){const _0x388072=_0x57d956['containsRange'](_0x312c48)&&Bt(_0xb47df1,_0x312c48['start'],_0x57d956),_0x1db38e=_0x312c48[_0x39af('0xcd')](_0x57d956)&&Bt(_0xb47df1,_0x57d956[_0x39af('0xd8')],_0x312c48);_0x4021da[_0x39af('0xb9')]({'suggestion':_0x1aa6e2,'meta':{'isOwn':_0x2c4890==_0x1aa6e2[_0x39af('0xea')],'isNextTo':_0xe41705,'isInsideObject':_0x388072,'containsRangeInObject':_0x1db38e}});break;}}return _0x4021da;}['_addSuggestionMarker'](_0x46cf2b,_0x118748,_0x5109a0,_0x5bcab3,_0x59798e){this[_0x39af('0x116')][_0x39af('0x138')](_0x51a14d=>{let _0x5d41f9=_0x39af('0x37')+_0x46cf2b+':'+_0x118748+':'+_0x5109a0;_0x59798e&&(_0x5d41f9=_0x5d41f9+':'+_0x59798e),_0x51a14d[_0x39af('0x34')](_0x5d41f9,{'range':_0x5bcab3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x39af('0xeb')](_0x2137ba){const _0x132f80=_0x2137ba['previous'],_0x5d764c=_0x2137ba[_0x39af('0x8b')];_0x2137ba[_0x39af('0x69')]=null,null!=_0x132f80&&(_0x132f80[_0x39af('0x8b')]=null),_0x2137ba[_0x39af('0x8b')]=null,null!=_0x5d764c&&(_0x5d764c[_0x39af('0x69')]=null),_0x39af('0x79')==this['_suggestionState']['get'](_0x2137ba)&&(this[_0x39af('0x26')][_0x39af('0x75')](_0x2137ba,'removed'),this[_0x39af('0x49')]('suggestionUnloaded',_0x2137ba,_0x132f80,_0x5d764c));}['_setSuggestionData'](_0x5a4eee){const _0x5b691f=_0x5a4eee['id'],_0x66c997=this[_0x39af('0x89')](_0x5a4eee);if(this[_0x39af('0x22')]&&this['_adapter'][_0x39af('0x120')]){const _0x221c8c=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')](_0x39af('0x38')),_0x21fc9b=_0x66c997[_0x39af('0xee')],_0x46a835=_0x66c997[_0x39af('0xec')]?_0x66c997[_0x39af('0x13c')]+':'+_0x66c997['subType']:_0x66c997[_0x39af('0x13c')],_0x288d87=this[_0x39af('0xb1')][_0x39af('0x9b')],_0x90a972=_0x221c8c[_0x39af('0x130')](_0x13674c(_0x288d87,'PENDING_ACTION_SUGGESTION')),_0x2a0d23={'id':_0x5b691f,'type':_0x46a835,'hasComments':_0x21fc9b,'data':_0x5a4eee['data']||null,'originalSuggestionId':_0x5a4eee['originalSuggestionId']||null,'attributes':_0x66c997[_0x39af('0x7e')]};this['_adapter'][_0x39af('0x120')](_0x2a0d23)[_0x39af('0xf0')](_0x3af955=>{_0x66c997[_0x39af('0x66')]=!0x0,_0x221c8c[_0x39af('0x119')](_0x90a972),_0x3af955&&_0x3af955[_0x39af('0xe')]&&(this[_0x39af('0x5a')][_0x39af('0x72')](_0x5b691f)[_0x39af('0xe')]=_0x3af955[_0x39af('0xe')]);})[_0x39af('0x5e')](_0x325c5b=>{throw _0xd82b5d(_0x39af('0x1e')),this[_0x39af('0xb1')][_0x39af('0x1f')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x66c997[_0x39af('0xbb')]();}),_0x66c997[_0x39af('0xe3')](),this['_suggestions'][_0x39af('0xc4')](_0x66c997['id']),this[_0x39af('0x26')][_0x39af('0xc4')](_0x66c997),_0x325c5b;});}return _0x66c997;}['_updateSuggestionData'](_0x7aa61a,_0x25548f){const _0x20d0e5=this['editor'][_0x39af('0xf5')][_0x39af('0x72')]('PendingActions'),_0x2c748e=this[_0x39af('0x84')](_0x7aa61a);if(this[_0x39af('0x22')]&&this[_0x39af('0x22')][_0x39af('0x36')]){if(_0x2c748e[_0x39af('0x66')]){const _0x3777f9=_0x20d0e5['add'](_0x13674c(this[_0x39af('0xb1')][_0x39af('0x9b')],_0x39af('0x2a')));this[_0x39af('0x22')]['updateSuggestion'](_0x7aa61a,_0x25548f)['then'](()=>{_0x20d0e5['remove'](_0x3777f9);});}else _0x2c748e['on'](_0x39af('0x1'),()=>{this['_updateSuggestionData'](_0x7aa61a,_0x25548f);});}}[_0x39af('0x9f')](_0x306be4){if(!this['_adapter']||!this[_0x39af('0x22')][_0x39af('0x84')])throw new _0x14653c('track-changes-adapter-missing-getsuggestion',this);return this[_0x39af('0x22')][_0x39af('0x84')](_0x306be4);}[_0x39af('0x27')](_0x23ba44){const {id:_0x30bf97,type:_0x5d8d36,subType:_0x550f90,authorId:_0x262ab0}=this[_0x39af('0x8')](_0x23ba44),_0x36e760=this[_0x39af('0x5a')]['get'](_0x30bf97)||this[_0x39af('0x10c')](_0x5d8d36,_0x550f90,_0x30bf97,_0x262ab0,{});switch(this[_0x39af('0x92')](_0x36e760,_0x5d8d36,_0x550f90,_0x262ab0),this[_0x39af('0x26')][_0x39af('0x72')](_0x36e760)){case _0x39af('0x23'):this[_0x39af('0x9f')](_0x30bf97)['then'](_0xcef32a=>{let _0x56699a=Promise[_0x39af('0x105')]();_0xcef32a[_0x39af('0xee')]&&(_0x56699a=this[_0x39af('0x2d')]['fetchCommentThread']({'channelId':this[_0x39af('0xb1')][_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x11c')),'threadId':_0x30bf97})),_0x56699a[_0x39af('0xf0')](()=>{this[_0x39af('0x89')](_0xcef32a)['_saved']=!0x0;});}),this[_0x39af('0x26')][_0x39af('0x75')](_0x36e760,_0x39af('0xb5'));break;case _0x39af('0x13b'):this[_0x39af('0x8a')](_0x30bf97,{'state':'open'});case _0x39af('0x129'):this[_0x39af('0x26')]['set'](_0x36e760,'ready'),this['fire'](_0x39af('0xbd'),_0x36e760);break;case'ready':this[_0x39af('0x49')](_0x39af('0x6e'),_0x36e760);}return _0x36e760[_0x39af('0x117')](_0x23ba44),_0x36e760;}[_0x39af('0xef')](_0x59f3fd){const _0x46761e=Array[_0x39af('0x12b')](_0x59f3fd)[_0x39af('0xae')](_0x384328=>!_0x384328[_0x39af('0x4e')]),_0x50e69d=this[_0x39af('0x7a')]({'skipNotAttached':!0x0})[_0x39af('0xae')](_0x4a75c0=>!_0x4a75c0[_0x39af('0x4e')]),_0x1691ee=_0x50e69d['filter'](_0x435bdc=>!_0x59f3fd[_0x39af('0x43')](_0x435bdc)),_0x1363f6=new Map(_0x50e69d[_0x39af('0xdb')](_0x5205bc=>[_0x5205bc,this[_0x39af('0x3e')][_0x39af('0xf8')](_0x5205bc[_0x39af('0x13c')],_0x5205bc[_0x39af('0xec')],_0x39af('0xa3'))])),_0x1499e1=new Map(_0x50e69d['map'](_0xf2df87=>[_0xf2df87,_0xf2df87[_0x39af('0x4f')]()])),_0x38523d=new Set(),_0x54a137=new Set();for(let _0x37b59d=0x0;_0x37b59d<_0x46761e[_0x39af('0xfd')];_0x37b59d++)_0x1a10ad(_0x46761e[_0x37b59d],_0x46761e,_0x37b59d+0x1);for(let _0x3a9b66=0x0;_0x3a9b66<_0x46761e[_0x39af('0xfd')];_0x3a9b66++)_0x1a10ad(_0x46761e[_0x3a9b66],_0x1691ee,0x0);for(let _0x1942b0=0x0;_0x1942b0<_0x46761e[_0x39af('0xfd')];_0x1942b0++){const _0xca937=_0x46761e[_0x1942b0];!_0x54a137['has'](_0xca937)&&_0xca937['previous']&&(_0xca937['previous'][_0x39af('0x8b')]===_0xca937&&(_0xca937[_0x39af('0x69')]['next']=null),_0xca937[_0x39af('0x69')]=null),!_0x38523d[_0x39af('0x43')](_0xca937)&&_0xca937[_0x39af('0x8b')]&&(_0xca937['next'][_0x39af('0x69')]===_0xca937&&(_0xca937['next'][_0x39af('0x69')]=null),_0xca937[_0x39af('0x8b')]=null);}function _0x1a10ad(_0x291ed9,_0x10f866,_0x1730da){for(let _0x3c04aa=_0x1730da;_0x3c04aa<_0x10f866[_0x39af('0xfd')];_0x3c04aa++){const _0x8c0a65=_0x1794f8(_0x291ed9,_0x10f866[_0x3c04aa]);_0x8c0a65&&(_0x8c0a65[0x0]['next']=_0x8c0a65[0x1],_0x8c0a65[0x1][_0x39af('0x69')]=_0x8c0a65[0x0],_0x38523d[_0x39af('0x130')](_0x8c0a65[0x0]),_0x54a137[_0x39af('0x130')](_0x8c0a65[0x1]));}}function _0x1794f8(_0x3e9335,_0x14af0c){if(_0x3e9335[_0x39af('0xea')]['id']!==_0x14af0c[_0x39af('0xea')]['id'])return null;const _0x477173=_0x1363f6[_0x39af('0x72')](_0x3e9335)(_0x3e9335,_0x14af0c,_0x1499e1[_0x39af('0x72')](_0x3e9335),_0x1499e1[_0x39af('0x72')](_0x14af0c));if(!_0x477173)return null;return _0x1363f6[_0x39af('0x72')](_0x14af0c)(_0x3e9335,_0x14af0c,_0x1499e1['get'](_0x3e9335),_0x1499e1[_0x39af('0x72')](_0x14af0c))?_0x477173[0x1][_0x39af('0xf6')]&&_0x477173[0x1][_0x39af('0xf6')][_0x39af('0xfd')]?null:_0x477173:null;}}['_joinWithAdjacentSuggestions'](_0x48da46){const _0x107c84=Array['from'](_0x48da46),_0x386027=this[_0x39af('0x7a')]({'skipNotAttached':!0x0}),_0x591482=_0x386027[_0x39af('0xae')](_0x32fa44=>!_0x48da46[_0x39af('0x43')](_0x32fa44)),_0x2aabd5=new Map(_0x107c84['map'](_0x5424f0=>[_0x5424f0,this[_0x39af('0x3e')][_0x39af('0xf8')](_0x5424f0[_0x39af('0x13c')],_0x5424f0[_0x39af('0xec')],_0x39af('0xa9'))])),_0x4eda7c=new Map(_0x386027[_0x39af('0xdb')](_0xb8264f=>[_0xb8264f,_0xb8264f[_0x39af('0xff')]()]));for(let _0x4ac36c=0x0;_0x4ac36c<_0x107c84['length'];_0x4ac36c++){if(_0x54c1ce(this,_0x107c84[_0x4ac36c],_0x107c84,_0x4ac36c+0x1))return!0x0;}for(let _0x1465c5=0x0;_0x1465c5<_0x107c84['length'];_0x1465c5++){if(_0x54c1ce(this,_0x107c84[_0x1465c5],_0x591482,0x0))return!0x0;}return!0x1;function _0x54c1ce(_0x3900e2,_0x31a0b5,_0x1f6e91,_0x335fb7){for(let _0x1fd2a2=_0x335fb7;_0x1fd2a2<_0x1f6e91['length'];_0x1fd2a2++){const _0x1bcbc0=_0x1f6e91[_0x1fd2a2];if(_0x1bcbc0[_0x39af('0x13c')]!==_0x31a0b5['type']||_0x1bcbc0[_0x39af('0xea')]['id']!==_0x31a0b5[_0x39af('0xea')]['id']||_0x1bcbc0[_0x39af('0xec')]!==_0x31a0b5[_0x39af('0xec')])continue;const _0x388610=_0x2aabd5[_0x39af('0x72')](_0x31a0b5),_0x2433e9=_0x4eda7c[_0x39af('0x72')](_0x31a0b5),_0x93077a=_0x4eda7c[_0x39af('0x72')](_0x1bcbc0),_0x33c74a=_0x31a0b5['commentThread']&&_0x31a0b5['commentThread'][_0x39af('0xfd')],_0x3d434d=_0x1bcbc0[_0x39af('0xf6')]&&_0x1bcbc0['commentThread'][_0x39af('0xfd')];if(!_0x33c74a&&_0x388610(_0x93077a,_0x2433e9))return _0x3900e2[_0x39af('0xa2')](_0x1bcbc0,_0x31a0b5),_0x4eda7c['delete'](_0x31a0b5),!0x0;if(!_0x3d434d&&_0x388610(_0x2433e9,_0x93077a))return _0x3900e2[_0x39af('0xa2')](_0x31a0b5,_0x1bcbc0),_0x4eda7c[_0x39af('0xc4')](_0x1bcbc0),!0x0;}return!0x1;}}[_0x39af('0xa2')](_0xdcd91c,_0x522132){if(_0xdcd91c[_0x39af('0x4e')])for(const _0x191e65 of _0x522132[_0x39af('0xff')]())_0xdcd91c[_0x39af('0xb4')](_0x191e65);else{const _0x4a0cd2=_0x522132[_0x39af('0x4f')]()['end'];this[_0x39af('0xcc')](_0xdcd91c,this[_0x39af('0x116')]['createRange'](_0xdcd91c[_0x39af('0x4f')]()['start'],_0x4a0cd2));}_0x522132[_0x39af('0x88')]();}}class Dt{constructor(_0x14c2c8){this[_0x39af('0x1c')]=_0x14c2c8,this[_0x39af('0x116')]=_0x14c2c8['model'],this[_0x39af('0x108')]=new Map(),this[_0x39af('0x96')]=new Map(),this[_0x39af('0xb8')]();}[_0x39af('0x90')](_0x198ae7,_0x642083,_0x33dfdc,_0x56cfbc,_0x1596cd,_0x28f452){return new _0x1760a0(this[_0x39af('0x116')],{'type':_0x198ae7,'subType':_0x642083,'id':_0x33dfdc,'author':_0x56cfbc,'creator':_0x56cfbc,'attributes':_0x1596cd,'onAttributesChange':_0x28f452,'onAccept':(..._0x15a2c6)=>this[_0x39af('0xf8')](_0x198ae7,_0x642083,_0x39af('0xad'))(..._0x15a2c6),'onDiscard':(..._0x485097)=>this[_0x39af('0xf8')](_0x198ae7,_0x642083,_0x39af('0xbb'))(..._0x485097)});}[_0x39af('0x1d')](_0x18c869,_0x57c364,_0x3b057e,_0x5cc587){const _0x4981e6=_0x18c869+':'+_0x57c364+':'+_0x3b057e;this['_customCallbacks']['set'](_0x4981e6,_0x5cc587);}[_0x39af('0xf8')](_0x3163c2,_0x57eade,_0x2b8c0b){const _0x49c5d1=_0x3163c2+':'+_0x57eade+':'+_0x2b8c0b;return this['_customCallbacks'][_0x39af('0x72')](_0x49c5d1)||this[_0x39af('0x96')]['get'](_0x3163c2+':'+_0x2b8c0b);}[_0x39af('0xb8')](){const _0x356b2a=()=>{},_0xb90d94=_0x3a73bd=>{_0x3a73bd['sort']((_0x352083,_0x15805c)=>_0x352083[_0x39af('0xd8')][_0x39af('0x107')](_0x15805c[_0x39af('0xd8')])?0x1:-0x1),this[_0x39af('0x116')][_0x39af('0x138')](_0x58c9b4=>{for(const _0x45dde2 of _0x3a73bd){let _0x303725;_0x303725=_0x45dde2[_0x39af('0x4')][_0x39af('0xaf')]&&_0x45dde2[_0x39af('0x4')][_0x39af('0x35')]==_0x45dde2[_0x39af('0xd8')][_0x39af('0xaa')]?_0x58c9b4[_0x39af('0xc0')](_0x45dde2['start'][_0x39af('0xaa')],'on'):_0x58c9b4[_0x39af('0xc0')](_0x45dde2),this[_0x39af('0x116')][_0x39af('0x6f')](_0x303725,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3214e3=(_0x35b06a,_0x59a4b0)=>{this[_0x39af('0x116')][_0x39af('0x138')](_0x2356d7=>{const {commandName:_0x3340e2,commandParams:_0x39d7b6=[]}=_0x59a4b0,_0x5ce4f0=_0x35b06a[_0x39af('0xdb')](_0x56d0dd=>(_t(_0x56d0dd)&&(_0x56d0dd=this[_0x39af('0x116')]['createRange'](_0x56d0dd[_0x39af('0x4')])),_0x56d0dd))[_0x39af('0xae')](_0x431713=>_0x39af('0xa5')!==_0x431713[_0x39af('0x13e')][_0x39af('0x10a')]);if(_0x5ce4f0[_0x39af('0xfd')]<0x1)return;const _0x32a0bc=Array[_0x39af('0x12b')](this[_0x39af('0x116')][_0x39af('0x58')][_0x39af('0x128')][_0x39af('0xff')]())[_0x39af('0xdb')](_0x5a2bbf=>_0x3b5b82[_0x39af('0x78')](_0x5a2bbf));_0x2356d7[_0x39af('0xca')](_0x5ce4f0);for(const _0xbc9e04 of this[_0x39af('0x1c')][_0x39af('0xde')]['commands']())_0xbc9e04[_0x39af('0x13')]();_0x39d7b6[_0x39af('0xb9')]({'forceDefaultExecution':!0x0}),this[_0x39af('0x1c')][_0x39af('0xac')](_0x3340e2,..._0x39d7b6);const _0x54b049=_0x32a0bc[_0x39af('0xae')](_0x251818=>'$graveyard'!=_0x251818['root'][_0x39af('0x10a')]);_0x54b049[_0x39af('0xfd')]>0x0&&_0x2356d7[_0x39af('0xca')](_0x54b049);for(const _0x22ac7f of _0x32a0bc)_0x22ac7f['detach']();});},_0x489f20=(_0x37353c,_0x1177e3)=>0x1==_0x37353c['length']&&0x1==_0x1177e3[_0x39af('0xfd')]&&_0x37353c[0x0]['end'][_0x39af('0x91')](_0x1177e3[0x0][_0x39af('0xd8')]),_0x290584=(_0x54a0fe,_0x56e241,_0x503023,_0x590a47)=>xt(_0x54a0fe,_0x56e241,_0x503023,_0x590a47,this[_0x39af('0x116')])?[_0x54a0fe,_0x56e241]:xt(_0x56e241,_0x54a0fe,_0x590a47,_0x503023,this['_model'])?[_0x56e241,_0x54a0fe]:null;this[_0x39af('0x96')]['set'](_0x39af('0x134'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('insertion:discard',_0xb90d94),this['_defaultCallbacks'][_0x39af('0x75')]('insertion:join',_0x489f20),this['_defaultCallbacks'][_0x39af('0x75')]('insertion:chain',_0x290584),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0xbe'),_0xb90d94),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x12c'),_0x356b2a),this['_defaultCallbacks'][_0x39af('0x75')](_0x39af('0x15'),_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x14'),_0x290584),this[_0x39af('0x96')][_0x39af('0x75')]('formatInline:accept',_0x3214e3),this[_0x39af('0x96')]['set'](_0x39af('0xc6'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x8e'),_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x70'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('formatBlock:accept',_0x3214e3),this['_defaultCallbacks'][_0x39af('0x75')](_0x39af('0x5f'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('formatBlock:join',_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x44'),_0x356b2a);}}function Bt(_0x1879d8,_0x305886,_0x424c8b){for(const _0x43ed4a of _0x305886[_0x39af('0x35')][_0x39af('0xdd')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ed4a[_0x39af('0x13e')]==_0x43ed4a)return!0x1;if(!_0x424c8b[_0x39af('0xb6')](_0x43ed4a))return!0x1;if(_0x1879d8['isObject'](_0x43ed4a)||_0x1879d8[_0x39af('0xf')](_0x43ed4a))return!0x0;}return!0x1;}function _t(_0xcd6760){return _0xcd6760[_0x39af('0x4')][_0x39af('0x35')]==_0xcd6760[_0x39af('0xd8')][_0x39af('0xaa')]&&_0xcd6760['end'][_0x39af('0x3f')];}function Mt(_0x19146f,_0x280b7c,_0x16c2ca,_0x5908ac){const _0x50a390=_0x551309=>!_0x551309[_0x39af('0x57')]['is'](_0x39af('0x54'))&&!_0x5908ac[_0x39af('0xfb')](_0x551309[_0x39af('0x57')]),_0x4b04c3=_0x19146f['start'][_0x39af('0x18')](_0x50a390),_0x2d5534=_0x19146f[_0x39af('0x4')][_0x39af('0x18')](_0x50a390,{'direction':_0x39af('0xe2')});return(!_0x19146f[_0x39af('0xd8')]['isEqual'](_0x4b04c3)||!_0x19146f['end'][_0x39af('0x91')](_0x2d5534))&&(_0x4b04c3[_0x39af('0x107')](_0x2d5534)?_0x16c2ca[_0x39af('0x12a')](_0x280b7c,{'range':_0x16c2ca[_0x39af('0xda')](_0x4b04c3,_0x2d5534)}):_0x16c2ca[_0x39af('0x7c')](_0x280b7c),!0x0);}function $t(_0x5ec63f){return _0x2a29b6(_0x5ec63f);}function Nt(_0x202bd4){const _0x404104=_0x202bd4[_0x39af('0xd8')]['nodeAfter'];return _0x404104&&_0x404104['is'](_0x39af('0x4c'));}function Rt(_0x1c7c2d,_0x4225c4){const _0x52c578=_0x4225c4['schema']['isObject'](_0x1c7c2d)||_0x4225c4['schema'][_0x39af('0xa7')](_0x1c7c2d);return _0x4225c4[_0x39af('0xda')](_0x4225c4[_0x39af('0x126')](_0x1c7c2d,_0x39af('0x40')),_0x52c578?_0x4225c4[_0x39af('0xa8')](_0x1c7c2d):_0x4225c4[_0x39af('0x126')](_0x1c7c2d,'end'));}function xt(_0x5676b6,_0x4c6ef5,_0x58a294,_0x40e005,_0x2f1700){if(_0x58a294['end'][_0x39af('0x91')](_0x40e005[_0x39af('0xd8')]))return!0x0;if(_0x5676b6[_0x39af('0x13c')]!=_0x4c6ef5[_0x39af('0x13c')])return!0x1;if(!_0x58a294[_0x39af('0x4')]['isTouching'](_0x40e005[_0x39af('0xd8')]))return!0x1;const _0xc8899e=_0x2f1700[_0x39af('0xda')](_0x58a294[_0x39af('0x4')],_0x40e005[_0x39af('0xd8')])[_0x39af('0x9a')]();for(const _0x16c915 of _0xc8899e)if([_0x39af('0x85'),_0x39af('0x121')][_0x39af('0xc8')](_0x16c915[_0x39af('0x13c')])&&_0x2f1700['schema'][_0x39af('0xf')](_0x16c915[_0x39af('0x57')]))return!0x1;return!0x0;}
23
+ const _0x6c41=['hasCommentThread','getSuggestionCallback','showSuggestionHighlights','_setSuggestionData','elementStart','updateSuggestion','forceDefaultExecution','isSelectable','widget','_getAuthorFromId','hasSuggestion','isLocal','markers','collaboration.channelId','editing','creator','type','_findSuggestions','accepted','formatBlock','for','toJSON','oldRange','removeComment','mapper','discard','@external','add','marker-count','insertion','authorName','_handleNewSuggestionMarker','targetPosition','backward','getNearestSelectionRange','getMultiRangeId','includes','createPositionAt','ck-suggestion-marker--active','root','createRangeIn','isNextTo','selection','trackChanges.mergeNestedSuggestions','markerToHighlight','_trackFormatChanges','discardSuggestion','setAttribute','start','push','formatBlock:discard','clear','formatInline:join','multipleBlocks','commentThread','deletion:','_saved','insertion:accept','_registerDefaultCallbacks','suggestion-type','_adapter','removed','data-suggestion','suggestion:','fetchCommentThread','acceptSelectedSuggestions','containsRangeInObject','forward','_onDiscard','schema','insertion:discard','$marker','_mergeNestedSuggestions','isAtStart','getMarkers','deleteContent','getItems','formatBlock:','deletion:accept','always','deletion:discard','default','_joinWithAdjacentSuggestions','map','buildSuggestion','addMarkerName','_rangeIsInLocalUserInsertion','_splitMarkerName','track-changes-adapter-missing-getsuggestion','formatGroupId','isAfter','change','addMarker:suggestion','_refreshSuggestionsChain','addMarker:suggestion:formatBlock','hasComments','howMany','removeMarker:suggestion:formatBlock','dataToMarker','_getExternalAuthor','return','detach','editingDowncast','formatInline:discard','reconvertMarker','isOwn','suggestionUnloaded','trackChangesCommand','ready','_removeSuggestion','discardSelectedSuggestions','registerPostFixer','discardAllSuggestions','markInsertion','addMarker','acceptAllSuggestions','attributes','trackChanges.trackFormatChanges','getRanges','getUser','external:','markDeletion','consume','get','batch','addUser','never','options','newRange','model','addSuggestion','createElement','split','PENDING_ACTION_SUGGESTION','fire','multi','skipNestingCheck','document','getCommentThread','removeMarkers','_isForcedDefaultExecutionBlock','formatInline','_suggestionFactory','author','group','_commentsRepository','differ','nodeBefore','_customCallbacks','isLimit','nodeAfter','previous','_joinSuggestions','editor','deletion:join','some','delete','insertion:','_createSuggestion','next','track-changes-adapter-already-set','updateMarker','isTouching','formatInline:accept','name','moveTargetPosition','getFirstRange','after','authoredAt','addHighlight','track-changes-suggestion-data-mismatch','stop','isEqual','low','set','markerReady','markerName','from','rethrowUnexpectedError','markerToData','_suggestions','isUndo','normal','getShiftedBy','define','_breakSuggestionMarker','fromRange','execute','init','stopListening','unbind','clone','toViewElement','containsRange','consumable','unbindElementFromMarkerName','item','pluginName','high','sort','has','_cutOutSuggestionMarker','addComment','getRange','isCollapsed','conversion','suggestion','config','removeMarker','getSuggestion','containerElement','formatInline:chain','ck-suggestion-marker-formatBlock','end','insert','upcast','isBefore','_checkSuggestionCorrectness','range','bindElementToMarker','registerCustomCallback','documentSelection','markBlockFormat','getIntersection','PendingActions','_defaultCallbacks','deletion','addSuggestionData','enableCommand','_descriptionFactory','Users','size','suggestionLoaded','element','setSelection','createRange','_model','_editor','insertion:join','getSuggestions','getAncestors','trackChanges','isAtEnd','_getSuggestionData','lowest','getChanges','formatBlock:chain','deletion:chain','containsItem','then','_addSuggestionMarker','activeMarkers','plugins','suggestionChanged','markMultiRangeDeletion','$graveyard','requires','ck-suggestion-marker','listenTo','getLastMatchingPosition','accept','commands','formatBlock:accept','acceptSuggestion','isBlock','isInContent','originalSuggestionId','adapter','position','isObject','formatInline:','writer','rootName','join','isMultiRange','_enabledCommands','refresh','highest','CommentsRepository','locale','getFirstMarker','_addThreadToSuggestion','insertContent','_suggestionState','TrackChangesEditing','markMultiRangeInsertion','length','isExternal','elementEnd','parent','_setSuggestionRange','notReady','addClass','isRemovable','splice','subType','track-changes-command-not-found','track-changes-suggestion-not-found','elementToElement','open','filter','setTo','createdAt','getCustomProperty','getAttribute','every','createPositionAfter','commandName','formatBlock:join','_updateSuggestionData','dataDowncast','isIntersectingWithRange','value','addRange','getDifference','getChangedMarkers','data'];(function(_0x5c6a60,_0x6c4125){const _0x7b1d8f=function(_0x22991a){while(--_0x22991a){_0x5c6a60['push'](_0x5c6a60['shift']());}};_0x7b1d8f(++_0x6c4125);}(_0x6c41,0x1e8));const _0x7b1d=function(_0x5c6a60,_0x6c4125){_0x5c6a60=_0x5c6a60-0x0;let _0x7b1d8f=_0x6c41[_0x5c6a60];return _0x7b1d8f;};import{Plugin as _0x418a15,PendingActions as _0x365adc}from'ckeditor5/src/core';import{LiveRange as _0x4e3075}from'ckeditor5/src/engine';import{CKEditorError as _0x39da4f,uid as _0x26317d,priorities as _0x51e1ab,logWarning as _0x4736cc}from'ckeditor5/src/utils';import{toWidget as _0x5a8685}from'ckeditor5/src/widget';import{Users as _0x544e31,hashObject as _0x1c57e1}from'ckeditor5-collaboration/src/collaboration-core';import _0x87cf19 from'./commands/trackchangescommand';import _0x5f093d from'./commands/acceptsuggestioncommand';import _0x40e317 from'./commands/discardsuggestioncommand';import _0x4ce6d9 from'./commands/executeonallsuggestionscommand';import _0x1015b7 from'./commands/executeonselectedsuggestionscommand';import _0x5731e0 from'./suggestion';import _0x7d5b19 from'./suggestiondescriptionfactory';import _0x48e375 from'./integrations/alignment';import _0x43437d from'./integrations/basicstyles';import _0xea45ec from'./integrations/blockquote';import _0x441526 from'./integrations/ckbox';import _0x3d0f8d from'./integrations/codeblock';import _0x55f928 from'./integrations/comments';import _0x59a7f8 from'./integrations/deletecommand';import _0x5a4166 from'./integrations/documentlist';import _0x307c46 from'./integrations/entercommand';import _0x500e64 from'./integrations/findandreplace';import _0x56cef8 from'./integrations/font';import _0x508ffc from'./integrations/formatpainter';import _0x317bbe from'./integrations/heading';import _0x24f2ba from'./integrations/highlight';import _0x503e9c from'./integrations/horizontalline';import _0x3e62bf from'./integrations/htmlembed';import _0x16e96f from'./integrations/image';import _0xbadbba from'./integrations/imagereplace';import _0x4eb073 from'./integrations/importword';import _0x4df470 from'./integrations/indent';import _0xc52b0d from'./integrations/inputcommand';import _0x2a79d7 from'./integrations/link';import _0x13c39a from'./integrations/list';import _0x363ef6 from'./integrations/listproperties';import _0x59df26 from'./integrations/mediaembed';import _0x3bb08d from'./integrations/mention';import _0x333bf3 from'./integrations/pagebreak';import _0x47ac9e from'./integrations/paragraph';import _0x1fb170 from'./integrations/removeformat';import _0x547022 from'./integrations/restrictededitingmode';import _0x42a415 from'./integrations/shiftentercommand';import _0x43da7c from'./integrations/standardeditingmode';import _0x122fa5 from'./integrations/style';import _0x37aa8a from'./integrations/table';import _0x55d5e8 from'./integrations/tablemergesplit';import _0x979762 from'./integrations/tableheadings';import _0x2b86a0 from'./integrations/tableclipboard';import _0x443133 from'./integrations/tablecolumnresize';import _0x19ff20 from'./integrations/template';import _0x1f2643 from'./integrations/tableofcontents';import _0xb35901 from'./integrations/title';import _0xe736d4 from'./integrations/undo';import{getTranslation as _0x327a39}from'./utils/common-translations';import _0x59123f from'./integrations/tablecaption';import _0x1abc54 from'./integrations/documentlistproperties';import _0x4288be from'./integrations/tableproperties';export default class p extends _0x418a15{static get[_0x7b1d('0x55')](){return['CommentsRepository',_0x544e31,_0x365adc,_0x48e375,_0x43437d,_0xea45ec,_0x441526,_0x3d0f8d,_0x55f928,_0x59a7f8,_0x5a4166,_0x1abc54,_0x307c46,_0x500e64,_0x56cef8,_0x508ffc,_0x317bbe,_0x24f2ba,_0x503e9c,_0x3e62bf,_0x16e96f,_0xbadbba,_0x4eb073,_0x4df470,_0xc52b0d,_0x2a79d7,_0x13c39a,_0x363ef6,_0x59df26,_0x3bb08d,_0x333bf3,_0x47ac9e,_0x1fb170,_0x547022,_0x42a415,_0x43da7c,_0x122fa5,_0x37aa8a,_0x55d5e8,_0x979762,_0x59123f,_0x2b86a0,_0x443133,_0x1f2643,_0x4288be,_0x19ff20,_0xb35901,_0xe736d4];}static get[_0x7b1d('0x1a')](){return _0x7b1d('0x71');}constructor(_0x233215){function _0x4cd3dd(_0x3f8378){return _0x3f8378[_0x7b1d('0xe5')](_0x58b455=>String['fromCharCode'](_0x58b455))[_0x7b1d('0x66')]('');}super(_0x233215),this[_0x7b1d('0x3')](_0x7b1d('0x50'),[]),this['on']('change:activeMarkers',(_0x505ad0,_0x4ea929,_0x250335,_0x1d17bc)=>{this[_0x7b1d('0x41')][_0x7b1d('0xed')](()=>{for(const _0x8a1a5b of[..._0x1d17bc,..._0x250335])this['_model']['markers'][_0x7b1d('0x1d')](_0x8a1a5b)&&_0x233215[_0x7b1d('0xa0')][_0x7b1d('0xfa')](_0x8a1a5b);});}),this[_0x7b1d('0x3a')]=new _0x7d5b19(this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xd7')],this['editor'][_0x7b1d('0x6c')]),this[_0x7b1d('0xce')]=null,this[_0x7b1d('0x120')]=new Dt(this['editor']),this['_suggestions']=new Map(),this[_0x7b1d('0x123')]=_0x233215['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x6b')),this[_0x7b1d('0x68')]=new Set(),this[_0x7b1d('0x41')]=this[_0x7b1d('0x12b')][_0x7b1d('0x113')],this[_0x7b1d('0x70')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x233215['config'][_0x7b1d('0xd')]('trackChanges.trackFormatChanges',_0x7b1d('0xe3')),this[_0x7b1d('0xbf')]=_0x233215[_0x7b1d('0x24')]['get'](_0x7b1d('0x107')),_0x233215[_0x7b1d('0x24')]['define'](_0x7b1d('0xbd'),!0x0),this[_0x7b1d('0xda')]=_0x233215[_0x7b1d('0x24')][_0x7b1d('0x10d')](_0x7b1d('0xbd')),this['trackChangesCommand']=new _0x87cf19(_0x233215,this[_0x7b1d('0x68')]),this[_0x4cd3dd([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4cd3dd([0x34,0x30,0x34,0x36,0x31,0x36,0x32,0x30]);}[_0x7b1d('0x11')](){const _0x5d0b71=this[_0x7b1d('0x12b')];_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0xf8'))[_0x7b1d('0xbe')]({'model':_0x7b1d('0x23'),'view':_0x517757=>{const {id:_0x4d0b91,type:_0x29009f}=this[_0x7b1d('0xe9')](_0x517757[_0x7b1d('0x5')]),_0x408f28=[_0x7b1d('0x56'),'ck-suggestion-marker-'+_0x29009f];let _0x438f8f=0xbb8;return this[_0x7b1d('0x50')][_0x7b1d('0xb6')](_0x517757[_0x7b1d('0x5')])&&(_0x408f28[_0x7b1d('0xc3')](_0x7b1d('0xb8')),_0x438f8f=0xbc2),_0x7b1d('0x37')==_0x29009f&&(_0x438f8f+=0x5),{'classes':_0x408f28,'attributes':{'data-suggestion':_0x4d0b91},'priority':_0x438f8f};}}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0x8b'))[_0x7b1d('0xad')](_0x5c5da0=>{_0x5c5da0['on'](_0x7b1d('0xee'),(_0x5566c5,_0xbf9fae,_0x75d9ed)=>{if(!_0x75d9ed[_0x7b1d('0x111')][_0x7b1d('0x94')])return;const _0x4e9778=_0xbf9fae[_0x7b1d('0x19')];if(!_0x4e9778)return;const _0x35cbdf=_0x75d9ed[_0x7b1d('0xaa')][_0x7b1d('0x15')](_0x4e9778);_0x5d0b71['model'][_0x7b1d('0xd7')][_0x7b1d('0x62')](_0x4e9778)&&_0x35cbdf&&!_0x35cbdf[_0x7b1d('0x84')](_0x7b1d('0x9a'))&&_0x35cbdf['is'](_0x7b1d('0x27'))&&_0x5a8685(_0x35cbdf,_0x75d9ed[_0x7b1d('0x64')]);},{'priority':'high'});}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')]('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x104220,_0x137e85)=>{if(!_0x137e85['options'][_0x7b1d('0x94')])return null;const {type:_0x30a5c6}=this['_splitMarkerName'](_0x104220['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x30a5c6],'priority':0xbb8};}});const _0x5a6701=({showActiveMarkers:_0x74fb90=!0x0}={})=>(_0x20d009,_0x336479,_0xdca6ea)=>{if(!_0x336479[_0x7b1d('0x19')])return;if(_0x336479[_0x7b1d('0x19')]['is'](_0x7b1d('0xbc')))return void _0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x336479['item'],_0x20d009[_0x7b1d('0x136')]);const _0x53a118=_0xdca6ea[_0x7b1d('0xaa')][_0x7b1d('0x15')](_0x336479[_0x7b1d('0x19')]);if(!(_0x336479[_0x7b1d('0x19')]['is'](_0x7b1d('0x3e'))&&_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')][_0x7b1d('0x5d')](_0x336479[_0x7b1d('0x19')])&&!_0x53a118[_0x7b1d('0x84')](_0x7b1d('0x13b'))))return;const {id:_0x2321da}=this[_0x7b1d('0xe9')](_0x336479[_0x7b1d('0x5')]);_0xdca6ea[_0x7b1d('0x64')][_0x7b1d('0x79')]([_0x7b1d('0x56'),_0x7b1d('0x29')],_0x53a118),_0xdca6ea[_0x7b1d('0x64')][_0x7b1d('0xc1')](_0x7b1d('0xd0'),_0x2321da,_0x53a118),_0xdca6ea[_0x7b1d('0xaa')][_0x7b1d('0x30')](_0x53a118,_0x336479[_0x7b1d('0x5')]),_0x74fb90&&(this[_0x7b1d('0x50')][_0x7b1d('0xb6')](_0x336479[_0x7b1d('0x5')])?_0xdca6ea['writer']['addClass'](_0x7b1d('0xb8'),_0x53a118):_0xdca6ea[_0x7b1d('0x64')]['removeClass'](_0x7b1d('0xb8'),_0x53a118));for(const _0x4c105b of _0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xba')](_0x336479[_0x7b1d('0x19')])[_0x7b1d('0xde')]())_0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x4c105b,_0x20d009['name']);_0xdca6ea[_0x7b1d('0x17')][_0x7b1d('0x10c')](_0x336479['item'],_0x20d009[_0x7b1d('0x136')]);};_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0x8b'))[_0x7b1d('0xad')](_0xe2a418=>{_0xe2a418['on'](_0x7b1d('0xf0'),(_0x19679b,_0x11a0be,_0x4ce4a1)=>{_0x4ce4a1[_0x7b1d('0x111')]['showSuggestionHighlights']&&_0x5a6701({'showActiveMarkers':!0x1})(_0x19679b,_0x11a0be,_0x4ce4a1);},{'priority':_0x7b1d('0x6a')});}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')]('dataDowncast')[_0x7b1d('0x8')]({'model':'suggestion','view':(_0x26eee1,_0x36fac6)=>_0x36fac6[_0x7b1d('0x111')][_0x7b1d('0x94')]?null:{'group':_0x7b1d('0x23'),'name':_0x26eee1['substr'](0xb)}}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0x2c'))[_0x7b1d('0x7f')]({'view':{'name':_0x7b1d('0x23'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x386ab9,{writer:_0x4b440b})=>{let _0x687160=_0x7b1d('0xd1')+_0x386ab9[_0x7b1d('0x85')](_0x7b1d('0xcd'))+':'+_0x386ab9[_0x7b1d('0x85')]('id');return _0x386ab9[_0x7b1d('0x85')]('marker-count')&&(_0x687160+=':'+_0x386ab9[_0x7b1d('0x85')](_0x7b1d('0xae'))),_0x4b440b[_0x7b1d('0x115')](_0x7b1d('0xd9'),{'data-name':_0x687160});}}),_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0x2c'))[_0x7b1d('0xf4')]({'view':_0x7b1d('0x23')}),_0x5d0b71[_0x7b1d('0x22')][_0x7b1d('0xa6')](_0x7b1d('0xf8'))['add'](_0x3a08ff=>{_0x3a08ff['on'](_0x7b1d('0xf0'),_0x5a6701(),{'priority':_0x7b1d('0x1b')});}),_0x5d0b71[_0x7b1d('0x22')]['for'](_0x7b1d('0xf8'))[_0x7b1d('0xad')](_0x20c3ad=>{_0x20c3ad['on'](_0x7b1d('0xf3'),(_0x4a20e6,_0x33e111,_0x17e08f)=>{const _0x265483=_0x17e08f[_0x7b1d('0xaa')]['markerNameToElements'](_0x33e111['markerName']);if(_0x265483)for(const _0x3b5706 of _0x265483)_0x3b5706[_0x7b1d('0x84')](_0x7b1d('0x13b'))||(_0x17e08f[_0x7b1d('0x64')]['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b5706),_0x17e08f[_0x7b1d('0x64')]['removeAttribute'](_0x7b1d('0xd0'),_0x3b5706),_0x17e08f['mapper'][_0x7b1d('0x18')](_0x3b5706,_0x33e111[_0x7b1d('0x5')]));},{'priority':_0x7b1d('0x1b')});}),_0x5d0b71['model'][_0x7b1d('0x11b')][_0x7b1d('0x101')](_0x3cbedf=>{let _0x475370=!0x1;const _0x271c3b=Array['from'](_0x5d0b71['model']['document'][_0x7b1d('0x124')][_0x7b1d('0x90')]()),_0x245728=new Set();for(const {name:_0x3a2ecf,data:_0x1b09bf}of _0x271c3b){const {group:_0x4eed2a,type:_0x42adbe,id:_0x118613}=this[_0x7b1d('0xe9')](_0x3a2ecf);if(_0x7b1d('0x23')!==_0x4eed2a)continue;const _0x4f9fcc=this['_suggestions']['get'](_0x118613);if(null!=_0x1b09bf[_0x7b1d('0x112')]){_0x7b1d('0x11f')==_0x42adbe&&(_0x475370=_0x475370||Mt(_0x1b09bf[_0x7b1d('0x112')],_0x3a2ecf,_0x3cbedf,_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')]));if(_0x1b09bf[_0x7b1d('0x112')][_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x1b09bf[_0x7b1d('0x112')][_0x7b1d('0xb9')][_0x7b1d('0x65')]||_0x7b1d('0xa5')==_0x42adbe&&!Nt(_0x1b09bf[_0x7b1d('0x112')])||'deletion'==_0x42adbe&&!(!_t(_0x563838=_0x1b09bf[_0x7b1d('0x112')])&&!function(_0x53d591){return _0x53d591[_0x7b1d('0xc2')][_0x7b1d('0x76')]==_0x53d591['end'][_0x7b1d('0x125')]&&_0x53d591[_0x7b1d('0xc2')][_0x7b1d('0x47')];}(_0x563838)))_0x3cbedf['removeMarker'](_0x3a2ecf),_0x475370=!0x0;else{if(!_0x4f9fcc||!_0x4f9fcc[_0x7b1d('0x5e')])continue;_0x245728[_0x7b1d('0xad')](_0x4f9fcc);}}}var _0x563838;return _0x245728[_0x7b1d('0x3c')]>0x0&&(_0x475370=!!this[_0x7b1d('0xe4')](_0x245728)||_0x475370),_0x475370;}),_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x11b')][_0x7b1d('0x101')](_0x1bd238=>{let _0x17b545=!0x1;for(const _0xef8bdd of _0x5d0b71[_0x7b1d('0x113')]['document'][_0x7b1d('0x124')][_0x7b1d('0x4a')]()){if(_0x7b1d('0x2b')!=_0xef8bdd[_0x7b1d('0xa2')])continue;const _0x3620a2=_0xef8bdd[_0x7b1d('0x61')][_0x7b1d('0xc')](_0xef8bdd[_0x7b1d('0x73')]);if(_0x3620a2[_0x7b1d('0x47')])for(const _0x24c4e7 of this[_0x7b1d('0x9')]['values']()){if(_0x24c4e7[_0x7b1d('0x67')]||!_0x24c4e7[_0x7b1d('0x5e')])continue;if(_0x7b1d('0xa5')!=_0x24c4e7['type'])continue;const _0x1cb854=_0x24c4e7[_0x7b1d('0x138')]();if(_0x1cb854[_0x7b1d('0xc2')][_0x7b1d('0x76')]!=_0x1cb854[_0x7b1d('0x2a')][_0x7b1d('0x76')]&&_0x1cb854['end'][_0x7b1d('0x1')](_0xef8bdd[_0x7b1d('0x61')])){const _0x55b4d8=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x40')](_0x1cb854['start'],_0x3620a2);_0x1bd238[_0x7b1d('0x133')](_0x24c4e7['getFirstMarker'](),{'range':_0x55b4d8}),_0x17b545=!0x0;}}}return _0x17b545;}),_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x9e')]['on']('update:suggestion',(_0x2a4b1f,_0x530e79,_0x55bc8e)=>{if(null==_0x55bc8e){const {id:_0x592524}=this['_splitMarkerName'](_0x530e79[_0x7b1d('0x136')]),_0x3dc0e6=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x592524);_0x3dc0e6&&_0x3dc0e6[_0x7b1d('0xe7')](_0x530e79[_0x7b1d('0x136')]);}}),_0x5d0b71['model'][_0x7b1d('0x11b')]['on']('change:data',()=>{const _0x4546f8=Array['from'](_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x11b')]['differ'][_0x7b1d('0x90')]())[_0x7b1d('0x81')](_0x388740=>_0x7b1d('0x23')===this[_0x7b1d('0xe9')](_0x388740[_0x7b1d('0x136')])[_0x7b1d('0x122')]);if(0x0===_0x4546f8['length'])return;_0x4546f8[_0x7b1d('0x1c')]((_0x463a75,_0x3ce219)=>{const _0x22f020=_0x463a75['data'][_0x7b1d('0xa8')],_0x382163=_0x3ce219['data'][_0x7b1d('0xa8')];return null===_0x22f020&&null===_0x382163?0x0:null===_0x22f020&&null!==_0x382163?-0x1:null!==_0x22f020&&null===_0x382163?0x1:_0x22f020[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x382163[_0x7b1d('0xc2')])?-0x1:0x1;});const _0x56a4f9=new Set(),_0x52170d=new Set();for(const {name:_0x17ba1c,data:_0x215c66}of _0x4546f8){const {id:_0xc8d99f}=this['_splitMarkerName'](_0x17ba1c);if(null===_0x215c66['oldRange']){const _0x5c075d=this[_0x7b1d('0xb1')](_0x17ba1c);_0x52170d['add'](_0x5c075d);}else{const _0xeda5b5=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0xc8d99f);null!==_0x215c66['newRange']||_0xeda5b5[_0x7b1d('0x5e')]?(_0x56a4f9['add'](_0xeda5b5['head']),_0x52170d['add'](_0xeda5b5)):this[_0x7b1d('0xff')](_0xeda5b5);}}_0x52170d[_0x7b1d('0x3c')]>0x0&&this[_0x7b1d('0xef')](_0x52170d);for(const _0x89e09e of _0x56a4f9)this[_0x7b1d('0x118')](_0x7b1d('0x52'),_0x89e09e);}),_0x5d0b71[_0x7b1d('0x113')]['on']('applyOperation',(_0x1117ef,_0xc2782e)=>{const _0x4f7fb3=_0xc2782e[0x0];if(!this['_suggestions'][_0x7b1d('0x3c')])return;if(!_0x4f7fb3['isDocumentOperation'])return;if(_0x4f7fb3['batch'][_0x7b1d('0xa')]||!_0x4f7fb3[_0x7b1d('0x10e')][_0x7b1d('0x9d')])return;let _0xcebf87,_0x548108;switch(_0x4f7fb3[_0x7b1d('0xa2')]){case _0x7b1d('0x2b'):_0xcebf87=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x4f7fb3['position']),_0x548108=_0xcebf87[_0x7b1d('0xc')](_0x4f7fb3[_0x7b1d('0xf2')]);break;case _0x7b1d('0x116'):_0xcebf87=_0x5d0b71['model'][_0x7b1d('0xb7')](_0x4f7fb3['splitPosition']),_0x548108=_0x5d0b71['model'][_0x7b1d('0xb7')](_0x4f7fb3[_0x7b1d('0x137')]);break;case'move':_0xcebf87=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x4f7fb3[_0x7b1d('0xb2')]),_0x548108=_0xcebf87[_0x7b1d('0xc')](_0x4f7fb3[_0x7b1d('0xf2')]);break;default:return;}const _0x2f283c=_0x5d0b71[_0x7b1d('0x113')]['createRange'](_0xcebf87,_0x548108);_0x5d0b71['model'][_0x7b1d('0xed')](()=>{for(const {suggestion:_0x619d85,meta:_0x267913}of this[_0x7b1d('0xa3')](_0x2f283c)){if(_0x619d85['isMultiRange'])continue;if(_0x7b1d('0x11f')==_0x619d85[_0x7b1d('0xa2')])continue;const _0x4c8d0e=_0x619d85[_0x7b1d('0x91')]&&_0x619d85[_0x7b1d('0x91')][_0x7b1d('0xc7')];('formatBlock'!=_0x619d85[_0x7b1d('0xa2')]||'split'==_0x4f7fb3[_0x7b1d('0xa2')]&&!_0x4c8d0e)&&(_0x267913['containsRangeInObject']||'insertion'==_0x619d85[_0x7b1d('0xa2')]&&_0x267913['isOwn']||_0x619d85['getFirstRange']()[_0x7b1d('0x16')](_0x2f283c)&&this[_0x7b1d('0xe')](_0x619d85,_0xcebf87,_0x548108));}});},{'priority':_0x7b1d('0x49')}),_0x5d0b71[_0x7b1d('0x113')]['on'](_0x7b1d('0xdd'),(_0x3173b2,_0x2ac952)=>{const _0x43e8db=_0x2ac952[0x0],_0x324818=_0x2ac952[0x1];if(_0x324818&&_0x324818[_0x7b1d('0x98')])return;if(this[_0x7b1d('0x11e')])return;if(!this[_0x7b1d('0xfd')][_0x7b1d('0x8d')])return;if(_0x43e8db[_0x7b1d('0x21')])return;const _0x13cd92=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')],{start:_0x57708d,end:_0x5bb989}=_0x43e8db[_0x7b1d('0x138')](),_0x17027e=_0x57708d[_0x7b1d('0x128')]&&_0x13cd92[_0x7b1d('0x127')](_0x57708d[_0x7b1d('0x128')])?null:_0x13cd92[_0x7b1d('0xb4')](_0x57708d,_0x7b1d('0xd5')),_0x4b862d=_0x5bb989[_0x7b1d('0x125')]&&_0x13cd92['isLimit'](_0x5bb989[_0x7b1d('0x125')])?null:_0x13cd92[_0x7b1d('0xb4')](_0x5bb989,'backward'),_0x197654=_0x5d0b71[_0x7b1d('0x113')]['createRange'](_0x17027e?_0x17027e[_0x7b1d('0xc2')]:_0x57708d,_0x4b862d?_0x4b862d[_0x7b1d('0x2a')]:_0x5bb989);_0x5d0b71['model'][_0x7b1d('0xed')](_0x335d27=>{this[_0x7b1d('0x10b')](_0x197654);const _0x2c9ac8=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xd7')][_0x7b1d('0xb4')](_0x197654[_0x7b1d('0xc2')]);_0x43e8db['is'](_0x7b1d('0x32'))?_0x335d27['setSelection'](_0x2c9ac8):_0x43e8db[_0x7b1d('0x82')](_0x2c9ac8);}),_0x3173b2[_0x7b1d('0x0')]();},{'priority':_0x51e1ab[_0x7b1d('0xb')]+0xa}),_0x5d0b71[_0x7b1d('0x113')]['on'](_0x7b1d('0x6f'),(_0x448b8a,_0x3aaea2)=>{const _0x4f1266=_0x3aaea2[_0x3aaea2[_0x7b1d('0x73')]-0x1];_0x4f1266&&_0x4f1266[_0x7b1d('0x98')]||this[_0x7b1d('0x11e')]||this[_0x7b1d('0xfd')]['value']&&(_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{let _0x4dcc16=_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0x6f')](_0x3aaea2[0x0],_0x3aaea2[0x1],_0x3aaea2[0x2],{'forceDefaultExecution':!0x0});if(!_0x4dcc16)return;_0x448b8a[_0x7b1d('0xf6')]=_0x4dcc16[_0x7b1d('0x14')]();const _0x2b8ac2=_0x4dcc16[_0x7b1d('0x2a')]['nodeBefore'],_0x567af3=_0x5d0b71['model'][_0x7b1d('0xd7')];_0x2b8ac2&&_0x567af3['isBlock'](_0x2b8ac2)&&!_0x567af3[_0x7b1d('0x62')](_0x2b8ac2)&&(_0x4dcc16=_0x5d0b71['model'][_0x7b1d('0x40')](_0x4dcc16['start'],_0x5d0b71[_0x7b1d('0x113')][_0x7b1d('0xb7')](_0x2b8ac2,'end'))),this[_0x7b1d('0x103')](_0x4dcc16);}),_0x448b8a['stop']());},{'priority':'high'}),this['editor'][_0x7b1d('0x5a')][_0x7b1d('0xad')](_0x7b1d('0x46'),this[_0x7b1d('0xfd')]),this[_0x7b1d('0x39')](_0x7b1d('0x46'));const _0x54f003=new _0x5f093d(_0x5d0b71,this[_0x7b1d('0x9')]);_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')]('acceptSuggestion',_0x54f003),this[_0x7b1d('0x39')](_0x7b1d('0x5c'));const _0x527924=new _0x40e317(_0x5d0b71,this[_0x7b1d('0x9')]);_0x5d0b71[_0x7b1d('0x5a')]['add'](_0x7b1d('0xc0'),_0x527924),this[_0x7b1d('0x39')](_0x7b1d('0xc0')),_0x5d0b71['commands'][_0x7b1d('0xad')]('acceptAllSuggestions',new _0x4ce6d9(_0x5d0b71,_0x54f003,this[_0x7b1d('0x9')])),this[_0x7b1d('0x39')](_0x7b1d('0x105')),_0x5d0b71[_0x7b1d('0x5a')]['add'](_0x7b1d('0x102'),new _0x4ce6d9(_0x5d0b71,_0x527924,this[_0x7b1d('0x9')])),this[_0x7b1d('0x39')](_0x7b1d('0x102')),_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')]('acceptSelectedSuggestions',new _0x1015b7(_0x5d0b71,_0x54f003,this[_0x7b1d('0x9')])),this['enableCommand'](_0x7b1d('0xd3')),_0x5d0b71[_0x7b1d('0x5a')][_0x7b1d('0xad')](_0x7b1d('0x100'),new _0x1015b7(_0x5d0b71,_0x527924,this[_0x7b1d('0x9')])),this['enableCommand'](_0x7b1d('0x100'));const _0x16dbe8=_0x5d0b71[_0x7b1d('0x51')][_0x7b1d('0x10d')](_0x7b1d('0x6b'));this[_0x7b1d('0x57')](_0x16dbe8,_0x7b1d('0x1f'),(_0x1675c7,{threadId:_0x2437e0})=>{const _0x76f16=this['_suggestions'][_0x7b1d('0x10d')](_0x2437e0);_0x76f16&&_0x76f16[_0x7b1d('0xc8')]&&0x1===_0x76f16[_0x7b1d('0xc8')][_0x7b1d('0x73')]&&this['_updateSuggestionData'](_0x2437e0,{'hasComments':!0x0});},{'priority':_0x7b1d('0x2')}),this[_0x7b1d('0x57')](_0x16dbe8,_0x7b1d('0xa9'),(_0x5b8f9e,{threadId:_0x5a9903})=>{const _0x33788b=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x5a9903);_0x33788b&&_0x33788b[_0x7b1d('0xc8')]&&!_0x33788b[_0x7b1d('0xc8')][_0x7b1d('0x73')]&&this[_0x7b1d('0x8a')](_0x5a9903,{'hasComments':!0x1});},{'priority':_0x7b1d('0x2')});}set['adapter'](_0x2f79f2){if(this[_0x7b1d('0xce')])throw new _0x39da4f(_0x7b1d('0x132'),this);this[_0x7b1d('0xce')]=_0x2f79f2;}get[_0x7b1d('0x60')](){return this[_0x7b1d('0xce')];}['getSuggestions']({skipNotAttached:_0x5b86e7=!0x1,toJSON:_0x3b7a2d=!0x1}={}){const _0x398952=[];for(const _0x47b72a of this[_0x7b1d('0x9')]['values']())_0x5b86e7&&!_0x47b72a[_0x7b1d('0x5e')]||_0x398952[_0x7b1d('0xc3')](_0x47b72a);return _0x3b7a2d?_0x398952['map'](_0x40089c=>_0x40089c[_0x7b1d('0xa7')]()):_0x398952;}[_0x7b1d('0x26')](_0xb8deda){const _0x32d47a=this[_0x7b1d('0x9')]['get'](_0xb8deda);if(!_0x32d47a)throw new _0x39da4f(_0x7b1d('0x7e'),this);return _0x32d47a;}[_0x7b1d('0x9c')](_0x942c6e){return this[_0x7b1d('0x9')]['has'](_0x942c6e);}[_0x7b1d('0x38')](_0x44de29){const {authorId:_0x40c2ac,id:_0x7530a7,attributes:_0x26e6c8}=_0x44de29,[_0x368c9c,_0x3aa6f1]=_0x44de29['type'][_0x7b1d('0x116')](':'),_0x3a8abe=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x7530a7)||this['_createSuggestion'](_0x368c9c,_0x3aa6f1,_0x7530a7,_0x40c2ac,_0x26e6c8);if(this[_0x7b1d('0x6e')](_0x3a8abe),this[_0x7b1d('0x2e')](_0x3a8abe,_0x368c9c,_0x3aa6f1||null,_0x40c2ac),_0x3a8abe[_0x7b1d('0x83')]=_0x44de29[_0x7b1d('0x83')],_0x26e6c8&&_0x26e6c8[_0x7b1d('0xac')]){const _0x555f86=_0x26e6c8[_0x7b1d('0xac')],_0x27e7f0=this[_0x7b1d('0xf5')](_0x555f86[_0x7b1d('0xb0')]);_0x3a8abe['authoredAt']=_0x555f86[_0x7b1d('0x83')],_0x3a8abe[_0x7b1d('0x121')]=_0x27e7f0,_0x3a8abe[_0x7b1d('0x74')]=!0x0;}else _0x3a8abe[_0x7b1d('0x13a')]=_0x44de29[_0x7b1d('0x83')];switch(_0x44de29['data']&&(_0x3a8abe[_0x7b1d('0x91')]=_0x44de29['data']),_0x44de29[_0x7b1d('0x106')]&&(_0x3a8abe[_0x7b1d('0x106')]=_0x44de29[_0x7b1d('0x106')]),this[_0x7b1d('0xce')]&&this['_adapter']['addSuggestion']||(_0x3a8abe[_0x7b1d('0xca')]=!0x0),this[_0x7b1d('0x70')]['get'](_0x3a8abe)){case _0x7b1d('0x78'):this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x3a8abe,'dataReady');break;case _0x7b1d('0x4'):_0x3a8abe[_0x7b1d('0x5e')]?(this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x3a8abe,_0x7b1d('0xfe')),this[_0x7b1d('0x118')](_0x7b1d('0x3d'),_0x3a8abe)):this['_suggestionState'][_0x7b1d('0x3')](_0x3a8abe,'removed');}return _0x3a8abe;}['acceptSuggestion'](_0x4125e8){this['forceDefaultExecution'](()=>{this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{for(const _0x10ec9c of _0x4125e8['getAllAdjacentSuggestions']())_0x10ec9c[_0x7b1d('0x59')]();});});}[_0x7b1d('0xc0')](_0x4e299d){this[_0x7b1d('0x98')](()=>{this[_0x7b1d('0x12b')][_0x7b1d('0x113')][_0x7b1d('0xed')](()=>{for(const _0x108bdf of _0x4e299d['getAllAdjacentSuggestions']())_0x108bdf[_0x7b1d('0xab')]();});});}[_0x7b1d('0x39')](_0x3a2f10,_0x3dc764){const _0x55f9d0=this[_0x7b1d('0x12b')][_0x7b1d('0x5a')][_0x7b1d('0x10d')](_0x3a2f10);if(!_0x55f9d0)throw new _0x39da4f(_0x7b1d('0x7d'),this,{'commandName':_0x3a2f10});this[_0x7b1d('0x68')][_0x7b1d('0xad')](_0x55f9d0),_0x3dc764&&_0x55f9d0['on'](_0x7b1d('0x10'),(_0x59d762,_0x6fe91c)=>{this[_0x7b1d('0xfd')][_0x7b1d('0x8d')]&&(this[_0x7b1d('0x11e')]||_0x6fe91c[_0x7b1d('0x73')]>0x0&&_0x6fe91c[_0x6fe91c[_0x7b1d('0x73')]-0x1]&&_0x6fe91c[_0x6fe91c['length']-0x1][_0x7b1d('0x98')]||(_0x3dc764((..._0x1b518d)=>_0x55f9d0[_0x7b1d('0x10')](..._0x1b518d,{'forceDefaultExecution':!0x0}),..._0x6fe91c),_0x59d762['stop']()));},{'priority':'high'});}[_0x7b1d('0x98')](_0x4860f9){let _0x492b40,_0x69a2a3;const _0x5ccbcf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x492b40=_0x4860f9();}catch(_0x712823){_0x69a2a3=_0x712823;}return _0x5ccbcf||(this[_0x7b1d('0x11e')]=!0x1),_0x69a2a3&&_0x39da4f[_0x7b1d('0x7')](_0x69a2a3,this),_0x492b40;}[_0x7b1d('0x103')](_0x16d7f2,_0x3592dd=null,_0x2f31b1={}){if(_0x16d7f2[_0x7b1d('0x21')])return null;const _0x1ae020=this[_0x7b1d('0x12b')]['plugins']['get'](_0x7b1d('0x3b'))['me'];for(const {suggestion:_0x7c2e54,meta:_0x42de34}of this[_0x7b1d('0xa3')](_0x16d7f2,_0x7b1d('0xaf')))if(_0x42de34[_0x7b1d('0xfb')]){if(!_0x42de34[_0x7b1d('0xbb')]){if(!this[_0x7b1d('0xda')]&&_0x42de34[_0x7b1d('0xd4')])continue;return _0x7c2e54;}if(_0x3592dd==_0x7c2e54[_0x7b1d('0x7c')]){const _0xa12a63=_0x7c2e54[_0x7b1d('0x138')]();return _0xa12a63[_0x7b1d('0xc2')]['isEqual'](_0x16d7f2[_0x7b1d('0x2a')])?this[_0x7b1d('0x77')](_0x7c2e54,this['_model'][_0x7b1d('0x40')](_0x16d7f2[_0x7b1d('0xc2')],_0xa12a63[_0x7b1d('0x2a')])):this[_0x7b1d('0x77')](_0x7c2e54,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xa12a63[_0x7b1d('0xc2')],_0x16d7f2[_0x7b1d('0x2a')])),_0x7c2e54;}}const _0x2aab88=_0x26317d(),_0x30821a=_0x1ae020['id'],_0x336664=_0x3592dd?_0x7b1d('0x12f')+_0x3592dd:_0x7b1d('0xaf'),_0x150876=this[_0x7b1d('0x95')]({'id':_0x2aab88,'type':_0x336664,'createdAt':new Date(),'authorId':_0x30821a,'attributes':_0x2f31b1});return this['_addSuggestionMarker'](_0x336664,_0x2aab88,_0x30821a,_0x16d7f2),_0x150876;}[_0x7b1d('0x72')](_0x48f3e0,_0x2ee870=_0x7b1d('0x119'),_0xb2c76a={}){const _0x52dccb=this[_0x7b1d('0x12b')]['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x3b'))['me'],_0x126327=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xaf'),_0x2ee870,_0x7b1d('0x66'));for(const _0x55037c of this[_0x7b1d('0x44')]())if(_0x55037c[_0x7b1d('0x121')]['id']==_0x52dccb['id']&&'insertion'==_0x55037c[_0x7b1d('0xa2')]&&_0x55037c[_0x7b1d('0x7c')]==_0x2ee870&&(_0x126327(_0x55037c[_0x7b1d('0x108')](),_0x48f3e0)||_0x126327(_0x48f3e0,_0x55037c['getRanges']()))){for(const _0x5ca992 of _0x48f3e0)_0x55037c[_0x7b1d('0x8e')](_0x5ca992);return _0x55037c;}if(this[_0x7b1d('0xda')])for(const _0x6916ed of _0x48f3e0)for(const {suggestion:_0x24668c,meta:_0x1ccfe2}of this[_0x7b1d('0xa3')](_0x6916ed,_0x7b1d('0xaf'))){if(!_0x1ccfe2['isOwn'])continue;let _0x3b4916=!0x0;for(const _0x4b7c75 of _0x24668c[_0x7b1d('0x108')]())for(const _0x7cee0b of _0x48f3e0)if(!_0x4b7c75[_0x7b1d('0x16')](_0x7cee0b)){_0x3b4916=!0x1;break;}if(_0x3b4916)return _0x24668c;}const _0x1ab8fe=_0x26317d(),_0x148547=_0x52dccb['id'],_0x1114bc=_0x7b1d('0x12f')+_0x2ee870,_0x566435=this['_setSuggestionData']({'id':_0x1ab8fe,'type':_0x1114bc,'createdAt':new Date(),'authorId':_0x148547,'attributes':_0xb2c76a});for(const _0x16ef94 of _0x48f3e0)this[_0x7b1d('0x4f')](_0x1114bc,_0x1ab8fe,_0x148547,_0x16ef94,_0x5731e0[_0x7b1d('0xb5')]());return _0x566435;}['markInlineFormat'](_0x2b6bf9,_0x5cfb44,_0x1899f3=null,_0x1a4de1={}){if(_0x1899f3=_0x1899f3||$t(_0x5cfb44),_0x2b6bf9[_0x7b1d('0x21')])return null;if(_0x7b1d('0x110')===this[_0x7b1d('0xbf')]){const _0x30fa65=this[_0x7b1d('0x120')][_0x7b1d('0x93')]('formatInline',_0x1899f3,_0x7b1d('0x59'));return this['forceDefaultExecution'](()=>_0x30fa65([_0x2b6bf9],_0x5cfb44,_0x1a4de1)),null;}const _0xf52e69=this['editor']['plugins']['get'](_0x7b1d('0x3b'))['me'],_0x5eaa85=[];if(_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')])for(const {suggestion:_0x5ee9f4,meta:_0x10c34a}of this[_0x7b1d('0xa3')](_0x2b6bf9,_0x7b1d('0xaf')))_0x10c34a[_0x7b1d('0xfb')]&&!_0x10c34a['isInsideObject']&&_0x5eaa85[_0x7b1d('0xc3')](..._0x5ee9f4[_0x7b1d('0x108')]());const _0x566fb6=function(_0x2bf47d,_0x1bee68){const _0x38a545=[];for(const _0x57e4bb of _0x1bee68){const _0x3973e5=_0x2bf47d['getIntersection'](_0x57e4bb);_0x3973e5&&_0x38a545[_0x7b1d('0xc3')](_0x3973e5);}return _0x38a545;}(_0x2b6bf9,_0x5eaa85),_0x4a32e9=function(_0x31f9a6,_0x333fc2){const _0x507d4e=[_0x31f9a6];for(const _0x212aec of _0x333fc2){let _0x5185eb=0x0;for(;_0x5185eb<_0x507d4e[_0x7b1d('0x73')];){const _0x4bd4ab=_0x507d4e[_0x5185eb]['getDifference'](_0x212aec);_0x507d4e['splice'](_0x5185eb,0x1,..._0x4bd4ab),_0x5185eb+=_0x4bd4ab[_0x7b1d('0x73')];}}return _0x507d4e;}(_0x2b6bf9,_0x5eaa85);_0x566fb6[_0x7b1d('0x73')]&&this[_0x7b1d('0x41')][_0x7b1d('0xed')](()=>{for(const _0x251ca6 of _0x566fb6){const _0x531128=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0x11f'),_0x1899f3,_0x7b1d('0x59'));this[_0x7b1d('0x98')](()=>_0x531128([_0x251ca6],_0x5cfb44,_0x1a4de1));}});for(const _0x39d02a of _0x4a32e9){let _0x9fd8d2=null,_0x4b948d=_0x39d02a[_0x7b1d('0xc2')],_0x382575=_0x39d02a['end'];for(const {suggestion:_0x3a2e8b,meta:_0x2902b9}of this[_0x7b1d('0xa3')](_0x39d02a,_0x7b1d('0x11f'))){if(!_0x2902b9[_0x7b1d('0xfb')])continue;if(_0x3a2e8b[_0x7b1d('0x7c')]!=_0x1899f3)continue;const _0x46fe38=_0x3a2e8b[_0x7b1d('0x138')]();if(_0x46fe38[_0x7b1d('0x16')](_0x39d02a,!0x0))return null;_0x4b948d=_0x4b948d[_0x7b1d('0x2d')](_0x46fe38[_0x7b1d('0xc2')])?_0x4b948d:_0x46fe38[_0x7b1d('0xc2')],_0x382575=_0x382575['isAfter'](_0x46fe38[_0x7b1d('0x2a')])?_0x382575:_0x46fe38[_0x7b1d('0x2a')],_0x9fd8d2?_0x46fe38[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x9fd8d2[_0x7b1d('0x138')]()['start'])?(_0x9fd8d2['removeMarkers'](),_0x9fd8d2=_0x3a2e8b):_0x3a2e8b[_0x7b1d('0x11d')]():_0x9fd8d2=_0x3a2e8b;}const _0x215d9f=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x4b948d,_0x382575);if(_0x9fd8d2)this[_0x7b1d('0x77')](_0x9fd8d2,_0x215d9f);else{const _0x433694=_0x26317d(),_0x8d37da=_0xf52e69['id'];this[_0x7b1d('0x95')]({'id':_0x433694,'type':_0x7b1d('0x63')+_0x1899f3,'data':_0x5cfb44,'createdAt':new Date(),'authorId':_0x8d37da,'attributes':_0x1a4de1}),this[_0x7b1d('0x4f')]('formatInline:'+_0x1899f3,_0x433694,_0x8d37da,_0x215d9f);}}return null;}[_0x7b1d('0x33')](_0x686f32,_0x187e3e,_0x35c17a=[],_0x13a8ee=null,_0x3cf6cb={}){_0x187e3e[_0x7b1d('0xeb')]||(_0x187e3e['formatGroupId']=_0x187e3e[_0x7b1d('0x88')]),_0x187e3e[_0x7b1d('0xc7')]=_0x686f32['is'](_0x7b1d('0x2f')),_0x13a8ee=_0x13a8ee||$t(_0x187e3e);const _0x36179a=_0x35c17a['map'](_0x475232=>Rt(_0x475232,this[_0x7b1d('0x41')])),_0x3f519b=_0x686f32['is'](_0x7b1d('0x2f'))?_0x686f32:Rt(_0x686f32,this[_0x7b1d('0x41')]);if(_0x7b1d('0x110')===this[_0x7b1d('0xbf')]){const _0x1b8e6b=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x13a8ee,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x1b8e6b([_0x3f519b],_0x187e3e,_0x3cf6cb)),null;}_0x36179a[_0x7b1d('0xc3')](_0x3f519b);let _0x2f1675=!0x0;for(const _0x450647 of _0x36179a)if(!this[_0x7b1d('0xe8')](_0x450647)){_0x2f1675=!0x1;break;}if(_0x2f1675&&_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')]){const _0x17bfab=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x13a8ee,_0x7b1d('0x59'));return this['forceDefaultExecution'](()=>_0x17bfab([_0x3f519b],_0x187e3e,_0x3cf6cb)),null;}let _0x31d05a=null,_0xcff07e=_0x3f519b[_0x7b1d('0xc2')],_0x21694f=_0x3f519b[_0x7b1d('0x2a')];for(const {suggestion:_0x1bf28d,meta:_0x459f24}of this['_findSuggestions'](_0x3f519b,'formatBlock')){if(!_0x459f24[_0x7b1d('0xfb')]||_0x459f24['isNextTo']||_0x459f24[_0x7b1d('0xd4')]||_0x459f24['isInsideObject'])continue;if(_0x1bf28d[_0x7b1d('0x91')]['formatGroupId']!=_0x187e3e['formatGroupId'])continue;const _0x5b62a9=_0x1bf28d['getFirstRange']();if(_0x1bf28d[_0x7b1d('0x7c')]==_0x13a8ee){if(_0x5b62a9[_0x7b1d('0x16')](_0x3f519b,!0x0))return null;_0xcff07e=_0xcff07e['isBefore'](_0x5b62a9['start'])?_0xcff07e:_0x5b62a9['start'],_0x21694f=_0x21694f[_0x7b1d('0xec')](_0x5b62a9[_0x7b1d('0x2a')])?_0x21694f:_0x5b62a9[_0x7b1d('0x2a')],_0x31d05a?_0x5b62a9[_0x7b1d('0xc2')]['isBefore'](_0x31d05a['getFirstRange']()['start'])?(_0x31d05a[_0x7b1d('0x11d')](),_0x31d05a=_0x1bf28d):_0x1bf28d[_0x7b1d('0x11d')]():_0x31d05a=_0x1bf28d;}else{const _0x3a79b3=_0x3f519b[_0x7b1d('0x34')](_0x5b62a9);this[_0x7b1d('0x1e')](_0x1bf28d,_0x3a79b3);}}const _0x503402=this['editor']['plugins'][_0x7b1d('0x10d')](_0x7b1d('0x3b'))['me'],_0xf3d4dd=_0x26317d(),_0x27d719=_0x503402['id'];if(_0x31d05a)return this[_0x7b1d('0x77')](_0x31d05a,this[_0x7b1d('0x41')]['createRange'](_0xcff07e,_0x21694f)),_0x31d05a;{const _0x398748=this[_0x7b1d('0x95')]({'id':_0xf3d4dd,'type':_0x7b1d('0xdf')+_0x13a8ee,'data':_0x187e3e,'createdAt':new Date(),'authorId':_0x27d719,'attributes':_0x3cf6cb});return this['_addSuggestionMarker']('formatBlock:'+_0x13a8ee,_0xf3d4dd,_0x27d719,this['_model'][_0x7b1d('0x40')](_0xcff07e,_0x21694f)),_0x398748;}}['markMultiRangeBlockFormat'](_0x359108,_0x56fa7a,_0x17f68d=[],_0x2421d5=null,_0x51d067={}){_0x56fa7a['formatGroupId']||(_0x56fa7a[_0x7b1d('0xeb')]=_0x56fa7a[_0x7b1d('0x88')]);const _0x5cf8c8=_0x359108[0x0];_0x56fa7a[_0x7b1d('0xc7')]=_0x5cf8c8['is'](_0x7b1d('0x2f')),_0x2421d5=_0x2421d5||$t(_0x56fa7a);const _0x2978c0=_0x17f68d[_0x7b1d('0xe5')](_0x18b9d0=>Rt(_0x18b9d0,this[_0x7b1d('0x41')])),_0x305b47=_0x5cf8c8['is']('range')?_0x359108:_0x359108['map'](_0x45f1da=>Rt(_0x45f1da,this[_0x7b1d('0x41')]));if('never'===this[_0x7b1d('0xbf')]){const _0x424be8=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x2421d5,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x424be8(_0x305b47,_0x56fa7a,_0x51d067)),null;}_0x2978c0['push'](..._0x305b47);let _0x3261c6=!0x0;for(const _0xc34413 of _0x2978c0)if(!this[_0x7b1d('0xe8')](_0xc34413)){_0x3261c6=!0x1;break;}if(_0x3261c6&&_0x7b1d('0xe1')!==this[_0x7b1d('0xbf')]){const _0x14b9c6=this['_suggestionFactory'][_0x7b1d('0x93')]('formatBlock',_0x2421d5,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x14b9c6(_0x305b47,_0x56fa7a,_0x51d067)),null;}const _0x147149=this[_0x7b1d('0x12b')][_0x7b1d('0x51')][_0x7b1d('0x10d')]('Users')['me'];for(const _0x28622a of this[_0x7b1d('0x44')]()){if(_0x28622a['author']['id']!=_0x147149['id'])continue;if(_0x7b1d('0xa5')!=_0x28622a['type']||_0x28622a[_0x7b1d('0x91')][_0x7b1d('0xeb')]!=_0x56fa7a[_0x7b1d('0xeb')])continue;const _0x507de8=_0x28622a[_0x7b1d('0x7c')]==_0x2421d5;for(let _0x4bf4f0=0x0;_0x4bf4f0<_0x305b47['length'];_0x4bf4f0++){const _0x4e4703=_0x305b47[_0x4bf4f0];for(const _0x113666 of _0x28622a[_0x7b1d('0xdc')]()){const _0x128cd6=_0x113666[_0x7b1d('0x20')]();if(_0x4e4703[_0x7b1d('0x1')](_0x128cd6)){_0x507de8?(_0x305b47[_0x7b1d('0x7b')](_0x4bf4f0,0x1),_0x4bf4f0--):_0x28622a['removeMarker'](_0x113666[_0x7b1d('0x136')]);break;}}}}if(0x0==_0x305b47[_0x7b1d('0x73')])return null;const _0x4ab579=this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0x7b1d('0xa5'),_0x2421d5,_0x7b1d('0x66'));for(const _0x16b8ea of this[_0x7b1d('0x44')]())if(_0x16b8ea[_0x7b1d('0x121')]['id']==_0x147149['id']&&_0x7b1d('0xa5')==_0x16b8ea['type']&&_0x16b8ea['data'][_0x7b1d('0xeb')]==_0x56fa7a[_0x7b1d('0xeb')]&&_0x16b8ea[_0x7b1d('0x7c')]==_0x2421d5&&(_0x4ab579(_0x16b8ea[_0x7b1d('0x108')](),_0x305b47)||_0x4ab579(_0x305b47,_0x16b8ea[_0x7b1d('0x108')]()))){for(const _0x571c14 of _0x305b47)_0x16b8ea['addRange'](_0x571c14);return _0x16b8ea;}const _0x3f236a=_0x26317d(),_0x472eff=_0x147149['id'],_0xe0788f=_0x7b1d('0xdf')+_0x2421d5,_0x1d7d2e=this[_0x7b1d('0x95')]({'id':_0x3f236a,'type':_0xe0788f,'data':_0x56fa7a,'createdAt':new Date(),'authorId':_0x472eff,'attributes':_0x51d067});for(const _0x53b8b3 of _0x305b47)this[_0x7b1d('0x4f')](_0xe0788f,_0x3f236a,_0x472eff,_0x53b8b3,_0x5731e0[_0x7b1d('0xb5')]());return _0x1d7d2e;}['markDeletion'](_0x4a9a07,_0x1a3ed4=null,_0x52b858={}){if(_0x4a9a07[_0x7b1d('0x21')])return null;const _0x2e917f=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get'](_0x7b1d('0x3b'))['me'],_0x2af0d8=new _0x4e3075(_0x4a9a07[_0x7b1d('0xc2')],_0x4a9a07[_0x7b1d('0x2a')]);for(const {suggestion:_0x4abc00,meta:_0xadabf8}of this[_0x7b1d('0xa3')](_0x2af0d8,_0x7b1d('0xaf')))if(_0xadabf8[_0x7b1d('0xfb')]&&!_0xadabf8['isNextTo']){if(_0x4abc00[_0x7b1d('0x67')]){const _0x12cf01=_0x4abc00[_0x7b1d('0x108')]()['filter'](_0x3108e7=>_0x7b1d('0x54')!=_0x3108e7[_0x7b1d('0xb9')][_0x7b1d('0x65')]);_0x12cf01[_0x7b1d('0x86')](_0xf98761=>_0x2af0d8[_0x7b1d('0x16')](_0xf98761,!0x0))&&_0x4abc00['discard']();if(_0x12cf01[_0x7b1d('0x12d')](_0x3fa1ba=>_0x3fa1ba[_0x7b1d('0x16')](_0x2af0d8,!0x0))){const _0x542bef=this[_0x7b1d('0x120')][_0x7b1d('0x93')]('deletion',_0x1a3ed4,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x542bef([_0x2af0d8],null,_0x52b858)),null;}}else{const _0x2753d0=_0x2af0d8['getIntersection'](_0x4abc00[_0x7b1d('0x138')]());null!==_0x2753d0&&_0x4abc00[_0x7b1d('0xd6')]([_0x2753d0],null,_0x52b858);}}if(_0x2af0d8[_0x7b1d('0xf7')](),_0x2af0d8[_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x2af0d8[_0x7b1d('0xb9')]['rootName'])return null;let _0x94cd69=null,_0xf6f2cf=_0x2af0d8[_0x7b1d('0xc2')],_0x8c22d4=_0x2af0d8[_0x7b1d('0x2a')];for(const {suggestion:_0x5a99f1,meta:_0x3010f1}of this[_0x7b1d('0xa3')](_0x2af0d8,_0x7b1d('0x37')))if(_0x3010f1['isOwn']){if(_0x5a99f1[_0x7b1d('0x67')]&&this[_0x7b1d('0xda')]){let _0xb8c35c=!0x0;for(const _0x357ee9 of _0x5a99f1[_0x7b1d('0x108')]()){if(_0x357ee9['containsRange'](_0x2af0d8,!0x0))return _0x5a99f1;_0x2af0d8[_0x7b1d('0x16')](_0x357ee9)||(_0xb8c35c=!0x1);}_0xb8c35c&&_0x5a99f1[_0x7b1d('0xab')]();}else{const _0x163c20=_0x5a99f1[_0x7b1d('0x138')]();if(_0x163c20[_0x7b1d('0x16')](_0x2af0d8,!0x0)){if(!this[_0x7b1d('0xda')]&&_0x3010f1[_0x7b1d('0xd4')])continue;return _0x5a99f1;}_0xf6f2cf=_0xf6f2cf[_0x7b1d('0x2d')](_0x163c20['start'])?_0xf6f2cf:_0x163c20[_0x7b1d('0xc2')],_0x8c22d4=_0x8c22d4['isAfter'](_0x163c20[_0x7b1d('0x2a')])?_0x8c22d4:_0x163c20[_0x7b1d('0x2a')],_0x94cd69?_0x163c20[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x94cd69[_0x7b1d('0x138')]()[_0x7b1d('0xc2')])?(_0x94cd69[_0x7b1d('0x11d')](),_0x94cd69=_0x5a99f1):_0x5a99f1['removeMarkers']():_0x94cd69=_0x5a99f1;}}if(_0x94cd69)return this['_setSuggestionRange'](_0x94cd69,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xf6f2cf,_0x8c22d4)),_0x94cd69;{const _0x1fe3b9=_0x26317d(),_0x5ada44=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0xf6f2cf,_0x8c22d4),_0x28d276=_0x2e917f['id'],_0x1688ee=_0x1a3ed4?_0x7b1d('0xc9')+_0x1a3ed4:_0x7b1d('0x37'),_0x4d4092=this['_setSuggestionData']({'id':_0x1fe3b9,'type':_0x1688ee,'createdAt':new Date(),'authorId':_0x28d276,'attributes':_0x52b858});return this[_0x7b1d('0x4f')](_0x1688ee,_0x1fe3b9,_0x28d276,_0x5ada44),_0x4d4092;}}[_0x7b1d('0x53')](_0x573a53,_0x14484a=_0x7b1d('0x119'),_0x5f20e8={}){const _0x5e7b9a=this[_0x7b1d('0x12b')][_0x7b1d('0x51')][_0x7b1d('0x10d')]('Users')['me'],_0x3ac735=_0x573a53['map'](_0x1c7424=>new _0x4e3075(_0x1c7424['start'],_0x1c7424[_0x7b1d('0x2a')])),_0x819bbc=new Set();for(const _0x2192d9 of _0x3ac735)for(const {suggestion:_0x6679c9,meta:_0x39d49c}of this[_0x7b1d('0xa3')](_0x2192d9,'insertion'))_0x39d49c['isOwn']&&!_0x39d49c['isNextTo']&&_0x819bbc[_0x7b1d('0xad')](_0x6679c9);for(const _0x323396 of _0x819bbc)if(_0x323396[_0x7b1d('0x67')]){const _0xdc2e07=_0x323396['getRanges']();(!_0x323396[_0x7b1d('0x106')]||!_0x323396[_0x7b1d('0x106')]['skipNestingCheck'])&&(_0xdc2e07['every'](_0x560a1f=>_0x3ac735['some'](_0x9e835a=>_0x9e835a['containsRange'](_0x560a1f,!0x0)))&&_0x323396[_0x7b1d('0xab')]());if(_0x3ac735[_0x7b1d('0x86')](_0x4f329c=>_0xdc2e07[_0x7b1d('0x12d')](_0x5eba39=>_0x5eba39[_0x7b1d('0x16')](_0x4f329c,!0x0)))){const _0x2a888c=this['_suggestionFactory'][_0x7b1d('0x93')](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x2a888c(_0x573a53,null,_0x5f20e8)),null;}}else{const _0x16cd7c=_0x323396[_0x7b1d('0x138')]();_0x3ac735[_0x7b1d('0x12d')](_0x50973d=>_0x50973d[_0x7b1d('0x16')](_0x16cd7c,!0x0))&&_0x323396['discard']();if(_0x3ac735['every'](_0xabf51=>_0x16cd7c['containsRange'](_0xabf51,!0x0))){const _0x5ceab1=this['_suggestionFactory']['getSuggestionCallback'](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x59'));return this[_0x7b1d('0x98')](()=>_0x5ceab1(_0x3ac735,null,_0x5f20e8)),null;}}const _0x5660bd=this[_0x7b1d('0x120')]['getSuggestionCallback'](_0x7b1d('0x37'),_0x14484a,_0x7b1d('0x66'));let _0x5b935b=null;for(const _0x5c770f of this['getSuggestions']())if(_0x5c770f[_0x7b1d('0x121')]['id']==_0x5e7b9a['id']&&_0x5c770f[_0x7b1d('0x5e')]&&_0x7b1d('0x37')==_0x5c770f[_0x7b1d('0xa2')]&&_0x5c770f[_0x7b1d('0x7c')]==_0x14484a&&(_0x5660bd(_0x5c770f['getRanges'](),_0x3ac735)||_0x5660bd(_0x3ac735,_0x5c770f[_0x7b1d('0x108')]()))){if(_0x5b935b){if(_0x5c770f[_0x7b1d('0xc8')]&&_0x5c770f[_0x7b1d('0xc8')]['length'])continue;for(const _0x5bb6f6 of _0x5c770f[_0x7b1d('0x108')]())_0x5b935b['isIntersectingWithRange'](_0x5bb6f6)||_0x5b935b[_0x7b1d('0x8e')](_0x5bb6f6);_0x5c770f[_0x7b1d('0x11d')]();}else{_0x5b935b=_0x5c770f;for(const _0x4e5ceb of _0x3ac735)_0x5c770f[_0x7b1d('0x8c')](_0x4e5ceb)||_0x5c770f[_0x7b1d('0x8e')](_0x4e5ceb);}}if(_0x5b935b)return _0x5b935b;_0x819bbc[_0x7b1d('0xc5')]();for(const _0x394702 of _0x3ac735)for(const {suggestion:_0x14903c,meta:_0x5b6552}of this[_0x7b1d('0xa3')](_0x394702,_0x7b1d('0x37')))_0x5b6552[_0x7b1d('0xfb')]&&_0x819bbc[_0x7b1d('0xad')](_0x14903c);for(const _0x432895 of _0x819bbc){const _0x4f4990=_0x432895[_0x7b1d('0x108')]();if(!_0x5f20e8||!_0x5f20e8[_0x7b1d('0x11a')]){if(_0x3ac735[_0x7b1d('0x86')](_0x3ebea2=>_0x4f4990['some'](_0x244911=>_0x244911[_0x7b1d('0x16')](_0x3ebea2,!0x0))))return _0x432895;}(!_0x432895[_0x7b1d('0x106')]||!_0x432895[_0x7b1d('0x106')][_0x7b1d('0x11a')])&&(_0x4f4990['every'](_0x3566fb=>_0x3ac735[_0x7b1d('0x12d')](_0x3b7710=>_0x3b7710[_0x7b1d('0x16')](_0x3566fb,!0x0)))&&_0x432895[_0x7b1d('0xab')]());}const _0x18b57a=_0x26317d(),_0x23fc39=_0x5e7b9a['id'],_0x28b50b=_0x7b1d('0xc9')+_0x14484a,_0x3842ee=this[_0x7b1d('0x95')]({'id':_0x18b57a,'type':_0x28b50b,'createdAt':new Date(),'authorId':_0x23fc39,'attributes':_0x5f20e8});for(const _0x489e9e of _0x3ac735)_0x489e9e[_0x7b1d('0xf7')](),_0x489e9e[_0x7b1d('0x21')]||_0x7b1d('0x54')==_0x489e9e['root'][_0x7b1d('0x65')]||this['_addSuggestionMarker'](_0x28b50b,_0x18b57a,_0x23fc39,_0x489e9e,_0x5731e0[_0x7b1d('0xb5')]());return _0x3842ee;}[_0x7b1d('0x77')](_0x5b4663,_0x2b9b77){const _0x20e2ff=_0x5b4663[_0x7b1d('0x6d')]();this[_0x7b1d('0x41')]['change'](_0x4817b8=>{_0x4817b8[_0x7b1d('0x133')](_0x20e2ff,{'range':_0x2b9b77});});}[_0x7b1d('0x6e')](_0x16f9b3){const _0x3ba3de=_0x16f9b3['id'],_0x384678=this['editor'][_0x7b1d('0x24')]['get'](_0x7b1d('0x9f'));this[_0x7b1d('0x123')][_0x7b1d('0x92')](_0x3ba3de)||this[_0x7b1d('0x123')]['addCommentThread']({'channelId':_0x384678,'threadId':_0x3ba3de,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5059f2=this[_0x7b1d('0x123')][_0x7b1d('0x11c')](_0x3ba3de);_0x5059f2[_0x7b1d('0x13')]('isRemovable'),_0x5059f2[_0x7b1d('0x7a')]=!0x1,_0x16f9b3['commentThread']=_0x5059f2;}[_0x7b1d('0x2e')](_0xc849e6,_0x20b01d,_0x474be8,_0x3da3aa){if(_0xc849e6[_0x7b1d('0xa2')]!=_0x20b01d||_0xc849e6[_0x7b1d('0x7c')]!=_0x474be8||_0xc849e6['creator']['id']!=_0x3da3aa)throw this[_0x7b1d('0x12b')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39da4f(_0x7b1d('0x13c'),this);}[_0x7b1d('0x1e')](_0x420f08,_0x2ab442){const _0x3cc895=_0x420f08[_0x7b1d('0x138')]();if(_0x2ab442[_0x7b1d('0x1')](_0x3cc895))_0x420f08[_0x7b1d('0x11d')]();else{if(_0x3cc895['containsRange'](_0x2ab442)){const _0x47e32f=this['_model'][_0x7b1d('0xb7')](_0x2ab442['start'][_0x7b1d('0x125')],_0x7b1d('0x2a'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x3cc895['start'],_0x47e32f));const _0x36263b=_0x26317d(),_0x419176=_0x420f08[_0x7b1d('0xa1')]['id'],_0x2365ef=_0x420f08[_0x7b1d('0xa2')]+':'+_0x420f08[_0x7b1d('0x7c')];this[_0x7b1d('0x95')]({'id':_0x36263b,'type':_0x2365ef,'createdAt':new Date(),'authorId':_0x419176,'data':_0x420f08['data'],'attributes':_0x420f08['attributes']});const _0x369af5=this['_model']['createPositionAt'](_0x2ab442[_0x7b1d('0x2a')][_0x7b1d('0x76')],'after'),_0x203f31=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x369af5,_0x3cc895['end']);this['_addSuggestionMarker'](_0x2365ef,_0x36263b,_0x419176,_0x203f31);}else{if(_0x3cc895['containsPosition'](_0x2ab442[_0x7b1d('0xc2')])){const _0x2bab5b=this[_0x7b1d('0x41')][_0x7b1d('0xb7')](_0x2ab442[_0x7b1d('0xc2')][_0x7b1d('0x125')],_0x7b1d('0x2a'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x3cc895['start'],_0x2bab5b));}else{const _0x334b15=this[_0x7b1d('0x41')]['createPositionAt'](_0x2ab442[_0x7b1d('0x2a')][_0x7b1d('0x76')],_0x7b1d('0x139'));this['_setSuggestionRange'](_0x420f08,this[_0x7b1d('0x41')]['createRange'](_0x334b15,_0x3cc895['end']));}}}}[_0x7b1d('0xe8')](_0x5bd3e3){for(const {suggestion:_0x75e31e,meta:_0x22ffd8}of this[_0x7b1d('0xa3')](_0x5bd3e3,_0x7b1d('0xaf'))){if(!_0x22ffd8[_0x7b1d('0xfb')])continue;const _0xb9116c=_0x75e31e[_0x7b1d('0x108')]();for(const _0x4f7066 of _0xb9116c)if(!_0x5bd3e3[_0x7b1d('0x8f')](_0x4f7066)[_0x7b1d('0x73')])return!0x0;}return!0x1;}[_0x7b1d('0x9b')](_0xbf6f5f){const _0x21653b=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get']('Users')[_0x7b1d('0x109')](_0xbf6f5f);if(!_0x21653b)throw new _0x39da4f('track-changes-user-not-found',this);return _0x21653b;}[_0x7b1d('0xf5')](_0xb76820){const _0x399ff0=this[_0x7b1d('0x12b')]['plugins']['get']('Users'),_0xbbac54=_0x1c57e1(_0x7b1d('0x10a')+_0xb76820),_0x536e8e=_0x399ff0['getUser'](_0xbbac54);return _0x536e8e||_0x399ff0[_0x7b1d('0x10f')]({'id':_0xbbac54,'name':_0xb76820});}['_createSuggestion'](_0x97bde9,_0x4bd434,_0x143793,_0xa3c5f7,_0x26db28){const _0x3270f6=this[_0x7b1d('0x9b')](_0xa3c5f7),_0x1c6155=this[_0x7b1d('0x120')][_0x7b1d('0xe6')](_0x97bde9,_0x4bd434,_0x143793,_0x3270f6,_0x26db28,_0x4ba5c5=>this['_updateSuggestionData'](_0x143793,{'attributes':_0x4ba5c5}));return this[_0x7b1d('0x57')](_0x1c6155,_0x7b1d('0x59'),()=>{this[_0x7b1d('0x8a')](_0x143793,{'state':_0x7b1d('0xa4')});},{'priority':_0x7b1d('0x1b')}),this[_0x7b1d('0x57')](_0x1c6155,'discard',()=>{this[_0x7b1d('0x8a')](_0x143793,{'state':'rejected'});},{'priority':_0x7b1d('0x1b')}),this[_0x7b1d('0x9')][_0x7b1d('0x3')](_0x143793,_0x1c6155),this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x1c6155,_0x7b1d('0x78')),_0x1c6155;}[_0x7b1d('0xe9')](_0x2407d2){const _0x1a3da7=_0x2407d2[_0x7b1d('0x116')](':');return{'group':_0x1a3da7[0x0],'type':_0x1a3da7[0x1],'subType':_0x1a3da7[_0x7b1d('0x73')]>=0x5?_0x1a3da7[0x2]:null,'id':_0x1a3da7[_0x7b1d('0x73')]<0x5?_0x1a3da7[0x2]:_0x1a3da7[0x3],'authorId':_0x1a3da7[_0x7b1d('0x73')]<0x5?_0x1a3da7[0x3]:_0x1a3da7[0x4],'markerCount':0x6==_0x1a3da7['length']?_0x1a3da7[0x5]:null};}[_0x7b1d('0xe')](_0x287f20,_0x93bbce,_0x191e1f){const _0x437510=_0x287f20[_0x7b1d('0x138')](),_0x2a7ae4=_0x437510[_0x7b1d('0xc2')],_0x4121c5=_0x437510[_0x7b1d('0x2a')];this[_0x7b1d('0x77')](_0x287f20,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x2a7ae4,_0x93bbce));const _0x48ef12=_0x26317d(),_0x321046=_0x287f20[_0x7b1d('0xa1')]['id'],_0x494dd4=_0x287f20[_0x7b1d('0xa2')]+(_0x287f20['subType']?':'+_0x287f20[_0x7b1d('0x7c')]:'');this[_0x7b1d('0x95')]({'id':_0x48ef12,'type':_0x494dd4,'createdAt':new Date(),'authorId':_0x321046,'originalSuggestionId':_0x287f20['id'],'attributes':_0x287f20[_0x7b1d('0x106')],'data':_0x287f20[_0x7b1d('0x91')]}),'formatBlock'==_0x287f20[_0x7b1d('0xa2')]&&(_0x191e1f=this['_model']['createPositionBefore'](_0x191e1f['parent'])),this[_0x7b1d('0x4f')](_0x494dd4,_0x48ef12,_0x321046,this['_model'][_0x7b1d('0x40')](_0x191e1f,_0x4121c5));}[_0x7b1d('0xa3')](_0x466ced,_0x3b2ac9=null){const _0x58fe04=[],_0x378eef=this[_0x7b1d('0x41')][_0x7b1d('0xd7')],_0x46935e=this['editor']['plugins'][_0x7b1d('0x10d')]('Users')['me'];for(const _0x5a5221 of this[_0x7b1d('0x44')]())if(_0x5a5221[_0x7b1d('0x5e')]&&(!_0x3b2ac9||_0x5a5221[_0x7b1d('0xa2')]==_0x3b2ac9))for(const _0x7709c3 of _0x5a5221['getRanges']()){const _0x25119a=_0x466ced[_0x7b1d('0xc2')][_0x7b1d('0x1')](_0x7709c3[_0x7b1d('0x2a')])||_0x466ced[_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x7709c3[_0x7b1d('0xc2')]);if(_0x25119a||_0x466ced['getIntersection'](_0x7709c3)){const _0x1565aa=_0x466ced[_0x7b1d('0x16')](_0x7709c3)&&Bt(_0x378eef,_0x7709c3[_0x7b1d('0xc2')],_0x466ced),_0xd8948e=_0x7709c3[_0x7b1d('0x16')](_0x466ced)&&Bt(_0x378eef,_0x466ced[_0x7b1d('0xc2')],_0x7709c3);_0x58fe04['push']({'suggestion':_0x5a5221,'meta':{'isOwn':_0x46935e==_0x5a5221[_0x7b1d('0x121')],'isNextTo':_0x25119a,'isInsideObject':_0x1565aa,'containsRangeInObject':_0xd8948e}});break;}}return _0x58fe04;}[_0x7b1d('0x4f')](_0x482250,_0x6291a,_0x1ddcfa,_0x347467,_0x2ea174){this[_0x7b1d('0x41')]['change'](_0x506ec6=>{let _0x12ddca='suggestion:'+_0x482250+':'+_0x6291a+':'+_0x1ddcfa;_0x2ea174&&(_0x12ddca=_0x12ddca+':'+_0x2ea174),_0x506ec6[_0x7b1d('0x104')](_0x12ddca,{'range':_0x347467,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x364c9e){const _0x6f105e=_0x364c9e['previous'],_0x4a8f73=_0x364c9e['next'];_0x364c9e[_0x7b1d('0x129')]=null,null!=_0x6f105e&&(_0x6f105e['next']=null),_0x364c9e[_0x7b1d('0x131')]=null,null!=_0x4a8f73&&(_0x4a8f73['previous']=null),_0x7b1d('0xfe')==this[_0x7b1d('0x70')][_0x7b1d('0x10d')](_0x364c9e)&&(this['_suggestionState'][_0x7b1d('0x3')](_0x364c9e,_0x7b1d('0xcf')),this[_0x7b1d('0x118')](_0x7b1d('0xfc'),_0x364c9e,_0x6f105e,_0x4a8f73));}[_0x7b1d('0x95')](_0x5767b3){const _0x253db0=_0x5767b3['id'],_0x312ef6=this['addSuggestionData'](_0x5767b3);if(this[_0x7b1d('0xce')]&&this[_0x7b1d('0xce')][_0x7b1d('0x114')]){const _0x4af59f=this[_0x7b1d('0x12b')][_0x7b1d('0x51')]['get']('PendingActions'),_0x225e2c=_0x312ef6[_0x7b1d('0xf1')],_0x391ea9=_0x312ef6[_0x7b1d('0x7c')]?_0x312ef6['type']+':'+_0x312ef6[_0x7b1d('0x7c')]:_0x312ef6[_0x7b1d('0xa2')],_0xee9b09=this['editor'][_0x7b1d('0x6c')],_0x65fed1=_0x4af59f[_0x7b1d('0xad')](_0x327a39(_0xee9b09,_0x7b1d('0x117'))),_0x373d59={'id':_0x253db0,'type':_0x391ea9,'hasComments':_0x225e2c,'data':_0x5767b3[_0x7b1d('0x91')]||null,'originalSuggestionId':_0x5767b3[_0x7b1d('0x5f')]||null,'attributes':_0x312ef6[_0x7b1d('0x106')]};this[_0x7b1d('0xce')][_0x7b1d('0x114')](_0x373d59)['then'](_0x1d46a8=>{_0x312ef6[_0x7b1d('0xca')]=!0x0,_0x4af59f['remove'](_0x65fed1),_0x1d46a8&&_0x1d46a8['createdAt']&&(this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x253db0)[_0x7b1d('0x83')]=_0x1d46a8[_0x7b1d('0x83')]);})['catch'](_0x2f9dc4=>{throw _0x4736cc('error-saving-suggestion-data-suggestion-discarded'),this[_0x7b1d('0x12b')][_0x7b1d('0x113')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x312ef6['discard']();}),_0x312ef6[_0x7b1d('0x12')](),this['_suggestions']['delete'](_0x312ef6['id']),this[_0x7b1d('0x70')][_0x7b1d('0x12e')](_0x312ef6),_0x2f9dc4;});}return _0x312ef6;}[_0x7b1d('0x8a')](_0x4d49c5,_0x24a1f3){const _0x135fd5=this['editor'][_0x7b1d('0x51')][_0x7b1d('0x10d')](_0x7b1d('0x35')),_0x58909e=this['getSuggestion'](_0x4d49c5);if(this[_0x7b1d('0xce')]&&this[_0x7b1d('0xce')]['updateSuggestion']){if(_0x58909e['_saved']){const _0x5cf052=_0x135fd5[_0x7b1d('0xad')](_0x327a39(this[_0x7b1d('0x12b')][_0x7b1d('0x6c')],_0x7b1d('0x117')));this[_0x7b1d('0xce')][_0x7b1d('0x97')](_0x4d49c5,_0x24a1f3)[_0x7b1d('0x4e')](()=>{_0x135fd5['remove'](_0x5cf052);});}else _0x58909e['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4d49c5,_0x24a1f3);});}}[_0x7b1d('0x48')](_0x5e2759){if(!this[_0x7b1d('0xce')]||!this['_adapter'][_0x7b1d('0x26')])throw new _0x39da4f(_0x7b1d('0xea'),this);return this[_0x7b1d('0xce')]['getSuggestion'](_0x5e2759);}[_0x7b1d('0xb1')](_0x569418){const {id:_0x4aaeaa,type:_0x383b1,subType:_0xa1afe1,authorId:_0x4b392e}=this[_0x7b1d('0xe9')](_0x569418),_0x59b58d=this[_0x7b1d('0x9')][_0x7b1d('0x10d')](_0x4aaeaa)||this[_0x7b1d('0x130')](_0x383b1,_0xa1afe1,_0x4aaeaa,_0x4b392e,{});switch(this[_0x7b1d('0x2e')](_0x59b58d,_0x383b1,_0xa1afe1,_0x4b392e),this[_0x7b1d('0x70')][_0x7b1d('0x10d')](_0x59b58d)){case _0x7b1d('0x78'):this[_0x7b1d('0x48')](_0x4aaeaa)[_0x7b1d('0x4e')](_0x4d7840=>{let _0x270b9e=Promise['resolve']();_0x4d7840[_0x7b1d('0xf1')]&&(_0x270b9e=this[_0x7b1d('0x123')][_0x7b1d('0xd2')]({'channelId':this[_0x7b1d('0x12b')]['config'][_0x7b1d('0x10d')](_0x7b1d('0x9f')),'threadId':_0x4aaeaa})),_0x270b9e[_0x7b1d('0x4e')](()=>{this['addSuggestionData'](_0x4d7840)[_0x7b1d('0xca')]=!0x0;});}),this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x59b58d,_0x7b1d('0x4'));break;case _0x7b1d('0xcf'):this[_0x7b1d('0x8a')](_0x4aaeaa,{'state':_0x7b1d('0x80')});case'dataReady':this[_0x7b1d('0x70')][_0x7b1d('0x3')](_0x59b58d,_0x7b1d('0xfe')),this[_0x7b1d('0x118')]('suggestionLoaded',_0x59b58d);break;case _0x7b1d('0xfe'):this['fire'](_0x7b1d('0x52'),_0x59b58d);}return _0x59b58d[_0x7b1d('0xe7')](_0x569418),_0x59b58d;}[_0x7b1d('0xef')](_0x5dc9bf){const _0x35d51d=Array[_0x7b1d('0x6')](_0x5dc9bf)[_0x7b1d('0x81')](_0x22e74a=>!_0x22e74a[_0x7b1d('0x67')]),_0x5a6de3=this[_0x7b1d('0x44')]({'skipNotAttached':!0x0})[_0x7b1d('0x81')](_0x5f2b92=>!_0x5f2b92[_0x7b1d('0x67')]),_0x36c94c=_0x5a6de3[_0x7b1d('0x81')](_0x4c24d8=>!_0x5dc9bf[_0x7b1d('0x1d')](_0x4c24d8)),_0x42e4ad=new Map(_0x5a6de3['map'](_0xa102c8=>[_0xa102c8,this['_suggestionFactory'][_0x7b1d('0x93')](_0xa102c8[_0x7b1d('0xa2')],_0xa102c8[_0x7b1d('0x7c')],'chain')])),_0x26ea89=new Map(_0x5a6de3[_0x7b1d('0xe5')](_0x131bc2=>[_0x131bc2,_0x131bc2['getFirstRange']()])),_0x452c0=new Set(),_0x850022=new Set();for(let _0x2036d2=0x0;_0x2036d2<_0x35d51d['length'];_0x2036d2++)_0x387330(_0x35d51d[_0x2036d2],_0x35d51d,_0x2036d2+0x1);for(let _0x2d51ef=0x0;_0x2d51ef<_0x35d51d[_0x7b1d('0x73')];_0x2d51ef++)_0x387330(_0x35d51d[_0x2d51ef],_0x36c94c,0x0);for(let _0x19bcd6=0x0;_0x19bcd6<_0x35d51d[_0x7b1d('0x73')];_0x19bcd6++){const _0x22f050=_0x35d51d[_0x19bcd6];!_0x850022[_0x7b1d('0x1d')](_0x22f050)&&_0x22f050['previous']&&(_0x22f050['previous'][_0x7b1d('0x131')]===_0x22f050&&(_0x22f050[_0x7b1d('0x129')][_0x7b1d('0x131')]=null),_0x22f050['previous']=null),!_0x452c0[_0x7b1d('0x1d')](_0x22f050)&&_0x22f050[_0x7b1d('0x131')]&&(_0x22f050['next'][_0x7b1d('0x129')]===_0x22f050&&(_0x22f050['next'][_0x7b1d('0x129')]=null),_0x22f050['next']=null);}function _0x387330(_0x4c12ef,_0x2300fc,_0x24634c){for(let _0x480e3d=_0x24634c;_0x480e3d<_0x2300fc[_0x7b1d('0x73')];_0x480e3d++){const _0x3452f1=_0x22e9c9(_0x4c12ef,_0x2300fc[_0x480e3d]);_0x3452f1&&(_0x3452f1[0x0][_0x7b1d('0x131')]=_0x3452f1[0x1],_0x3452f1[0x1][_0x7b1d('0x129')]=_0x3452f1[0x0],_0x452c0['add'](_0x3452f1[0x0]),_0x850022[_0x7b1d('0xad')](_0x3452f1[0x1]));}}function _0x22e9c9(_0x2299a5,_0x246672){if(_0x2299a5['author']['id']!==_0x246672[_0x7b1d('0x121')]['id'])return null;const _0xc9de34=_0x42e4ad[_0x7b1d('0x10d')](_0x2299a5)(_0x2299a5,_0x246672,_0x26ea89[_0x7b1d('0x10d')](_0x2299a5),_0x26ea89[_0x7b1d('0x10d')](_0x246672));if(!_0xc9de34)return null;return _0x42e4ad[_0x7b1d('0x10d')](_0x246672)(_0x2299a5,_0x246672,_0x26ea89[_0x7b1d('0x10d')](_0x2299a5),_0x26ea89['get'](_0x246672))?_0xc9de34[0x1]['commentThread']&&_0xc9de34[0x1][_0x7b1d('0xc8')][_0x7b1d('0x73')]?null:_0xc9de34:null;}}[_0x7b1d('0xe4')](_0xed93ab){const _0x349c24=Array[_0x7b1d('0x6')](_0xed93ab),_0x47bd60=this[_0x7b1d('0x44')]({'skipNotAttached':!0x0}),_0x1cb30c=_0x47bd60['filter'](_0x27aa9d=>!_0xed93ab[_0x7b1d('0x1d')](_0x27aa9d)),_0x3e41b9=new Map(_0x349c24[_0x7b1d('0xe5')](_0xd0a61d=>[_0xd0a61d,this[_0x7b1d('0x120')][_0x7b1d('0x93')](_0xd0a61d[_0x7b1d('0xa2')],_0xd0a61d[_0x7b1d('0x7c')],_0x7b1d('0x66'))])),_0x27a0d6=new Map(_0x47bd60[_0x7b1d('0xe5')](_0x4bc1b7=>[_0x4bc1b7,_0x4bc1b7[_0x7b1d('0x108')]()]));for(let _0x35d58e=0x0;_0x35d58e<_0x349c24[_0x7b1d('0x73')];_0x35d58e++){if(_0x28ce7d(this,_0x349c24[_0x35d58e],_0x349c24,_0x35d58e+0x1))return!0x0;}for(let _0x1b2a48=0x0;_0x1b2a48<_0x349c24[_0x7b1d('0x73')];_0x1b2a48++){if(_0x28ce7d(this,_0x349c24[_0x1b2a48],_0x1cb30c,0x0))return!0x0;}return!0x1;function _0x28ce7d(_0xd8fe29,_0x23f650,_0x4aeb79,_0xbe5da8){for(let _0x2d21ac=_0xbe5da8;_0x2d21ac<_0x4aeb79[_0x7b1d('0x73')];_0x2d21ac++){const _0x3d7d2d=_0x4aeb79[_0x2d21ac];if(_0x3d7d2d[_0x7b1d('0xa2')]!==_0x23f650['type']||_0x3d7d2d[_0x7b1d('0x121')]['id']!==_0x23f650[_0x7b1d('0x121')]['id']||_0x3d7d2d[_0x7b1d('0x7c')]!==_0x23f650[_0x7b1d('0x7c')])continue;const _0x48603b=_0x3e41b9[_0x7b1d('0x10d')](_0x23f650),_0x39e7c8=_0x27a0d6[_0x7b1d('0x10d')](_0x23f650),_0x3e1a11=_0x27a0d6[_0x7b1d('0x10d')](_0x3d7d2d),_0x5a67a3=_0x23f650['commentThread']&&_0x23f650[_0x7b1d('0xc8')]['length'],_0x111e38=_0x3d7d2d['commentThread']&&_0x3d7d2d['commentThread'][_0x7b1d('0x73')];if(!_0x5a67a3&&_0x48603b(_0x3e1a11,_0x39e7c8))return _0xd8fe29[_0x7b1d('0x12a')](_0x3d7d2d,_0x23f650),_0x27a0d6[_0x7b1d('0x12e')](_0x23f650),!0x0;if(!_0x111e38&&_0x48603b(_0x39e7c8,_0x3e1a11))return _0xd8fe29[_0x7b1d('0x12a')](_0x23f650,_0x3d7d2d),_0x27a0d6[_0x7b1d('0x12e')](_0x3d7d2d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2cab1d,_0x3eb0c8){if(_0x2cab1d['isMultiRange'])for(const _0x3fb9af of _0x3eb0c8[_0x7b1d('0x108')]())_0x2cab1d[_0x7b1d('0x8e')](_0x3fb9af);else{const _0x5e02e9=_0x3eb0c8[_0x7b1d('0x138')]()['end'];this[_0x7b1d('0x77')](_0x2cab1d,this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x2cab1d[_0x7b1d('0x138')]()[_0x7b1d('0xc2')],_0x5e02e9));}_0x3eb0c8[_0x7b1d('0x11d')]();}}class Dt{constructor(_0x15860b){this[_0x7b1d('0x42')]=_0x15860b,this['_model']=_0x15860b['model'],this[_0x7b1d('0x126')]=new Map(),this[_0x7b1d('0x36')]=new Map(),this[_0x7b1d('0xcc')]();}[_0x7b1d('0xe6')](_0x2c0ac7,_0x3e88c9,_0xaf7393,_0x58e931,_0x40446f,_0x1e6c09){return new _0x5731e0(this[_0x7b1d('0x41')],{'type':_0x2c0ac7,'subType':_0x3e88c9,'id':_0xaf7393,'author':_0x58e931,'creator':_0x58e931,'attributes':_0x40446f,'onAttributesChange':_0x1e6c09,'onAccept':(..._0xb45da3)=>this[_0x7b1d('0x93')](_0x2c0ac7,_0x3e88c9,_0x7b1d('0x59'))(..._0xb45da3),'onDiscard':(..._0xb67044)=>this[_0x7b1d('0x93')](_0x2c0ac7,_0x3e88c9,_0x7b1d('0xab'))(..._0xb67044)});}[_0x7b1d('0x31')](_0x59608d,_0x7bbe42,_0x29225f,_0x438171){const _0x3fa89e=_0x59608d+':'+_0x7bbe42+':'+_0x29225f;this[_0x7b1d('0x126')][_0x7b1d('0x3')](_0x3fa89e,_0x438171);}[_0x7b1d('0x93')](_0x3208b8,_0x49b534,_0x3a3178){const _0x531032=_0x3208b8+':'+_0x49b534+':'+_0x3a3178;return this[_0x7b1d('0x126')]['get'](_0x531032)||this['_defaultCallbacks'][_0x7b1d('0x10d')](_0x3208b8+':'+_0x3a3178);}['_registerDefaultCallbacks'](){const _0x235e67=()=>{},_0x4975c1=_0xfb64a8=>{_0xfb64a8[_0x7b1d('0x1c')]((_0x1cb678,_0x51aba9)=>_0x1cb678[_0x7b1d('0xc2')][_0x7b1d('0x2d')](_0x51aba9[_0x7b1d('0xc2')])?0x1:-0x1),this[_0x7b1d('0x41')][_0x7b1d('0xed')](_0x21b75b=>{for(const _0x24734e of _0xfb64a8){let _0x41e75c;_0x41e75c=_0x24734e[_0x7b1d('0x2a')][_0x7b1d('0x47')]&&_0x24734e[_0x7b1d('0x2a')][_0x7b1d('0x76')]==_0x24734e[_0x7b1d('0xc2')][_0x7b1d('0x128')]?_0x21b75b['createSelection'](_0x24734e[_0x7b1d('0xc2')]['nodeAfter'],'on'):_0x21b75b['createSelection'](_0x24734e),this[_0x7b1d('0x41')][_0x7b1d('0xdd')](_0x41e75c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x521021=(_0xa22aa5,_0x16f0d0)=>{this[_0x7b1d('0x41')][_0x7b1d('0xed')](_0x13b763=>{const {commandName:_0x304cd5,commandParams:_0x18c5e4=[]}=_0x16f0d0,_0x29cda3=_0xa22aa5[_0x7b1d('0xe5')](_0x136467=>(_t(_0x136467)&&(_0x136467=this[_0x7b1d('0x41')][_0x7b1d('0x40')](_0x136467[_0x7b1d('0x2a')])),_0x136467))[_0x7b1d('0x81')](_0x5e2c49=>_0x7b1d('0x54')!==_0x5e2c49[_0x7b1d('0xb9')][_0x7b1d('0x65')]);if(_0x29cda3['length']<0x1)return;const _0x4de3c6=Array[_0x7b1d('0x6')](this[_0x7b1d('0x41')][_0x7b1d('0x11b')][_0x7b1d('0xbc')][_0x7b1d('0x108')]())[_0x7b1d('0xe5')](_0x2b023b=>_0x4e3075[_0x7b1d('0xf')](_0x2b023b));_0x13b763[_0x7b1d('0x3f')](_0x29cda3);for(const _0x52a964 of this[_0x7b1d('0x42')][_0x7b1d('0x5a')][_0x7b1d('0x5a')]())_0x52a964[_0x7b1d('0x69')]();_0x18c5e4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x304cd5,..._0x18c5e4);const _0x158f70=_0x4de3c6[_0x7b1d('0x81')](_0x1274cd=>_0x7b1d('0x54')!=_0x1274cd[_0x7b1d('0xb9')][_0x7b1d('0x65')]);_0x158f70[_0x7b1d('0x73')]>0x0&&_0x13b763[_0x7b1d('0x3f')](_0x158f70);for(const _0x575b93 of _0x4de3c6)_0x575b93[_0x7b1d('0xf7')]();});},_0x6839c2=(_0x442de8,_0x5083a9)=>0x1==_0x442de8[_0x7b1d('0x73')]&&0x1==_0x5083a9[_0x7b1d('0x73')]&&_0x442de8[0x0][_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x5083a9[0x0][_0x7b1d('0xc2')]),_0x3e63ff=(_0x24e3cd,_0x3208b5,_0xe7bc5,_0x5ba2ac)=>xt(_0x24e3cd,_0x3208b5,_0xe7bc5,_0x5ba2ac,this[_0x7b1d('0x41')])?[_0x24e3cd,_0x3208b5]:xt(_0x3208b5,_0x24e3cd,_0x5ba2ac,_0xe7bc5,this[_0x7b1d('0x41')])?[_0x3208b5,_0x24e3cd]:null;this[_0x7b1d('0x36')]['set'](_0x7b1d('0xcb'),_0x235e67),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xd8'),_0x4975c1),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x43'),_0x6839c2),this[_0x7b1d('0x36')]['set']('insertion:chain',_0x3e63ff),this[_0x7b1d('0x36')]['set'](_0x7b1d('0xe0'),_0x4975c1),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xe2'),_0x235e67),this[_0x7b1d('0x36')]['set'](_0x7b1d('0x12c'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x4c'),_0x3e63ff),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x135'),_0x521021),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xf9'),_0x235e67),this['_defaultCallbacks'][_0x7b1d('0x3')](_0x7b1d('0xc6'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x28'),_0x235e67),this[_0x7b1d('0x36')]['set'](_0x7b1d('0x5b'),_0x521021),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0xc4'),_0x235e67),this['_defaultCallbacks'][_0x7b1d('0x3')](_0x7b1d('0x89'),_0x6839c2),this[_0x7b1d('0x36')][_0x7b1d('0x3')](_0x7b1d('0x4b'),_0x235e67);}}function Bt(_0x478b86,_0xd71a2e,_0x15a82e){for(const _0x5e9dab of _0xd71a2e[_0x7b1d('0x76')][_0x7b1d('0x45')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e9dab[_0x7b1d('0xb9')]==_0x5e9dab)return!0x1;if(!_0x15a82e[_0x7b1d('0x4d')](_0x5e9dab))return!0x1;if(_0x478b86[_0x7b1d('0x62')](_0x5e9dab)||_0x478b86['isLimit'](_0x5e9dab))return!0x0;}return!0x1;}function _t(_0x43f288){return _0x43f288['end'][_0x7b1d('0x76')]==_0x43f288[_0x7b1d('0xc2')][_0x7b1d('0x128')]&&_0x43f288['end'][_0x7b1d('0xdb')];}function Mt(_0x29bec1,_0x45fd6b,_0x1a8d55,_0x5289eb){const _0x286f13=_0x1198d6=>!_0x1198d6[_0x7b1d('0x19')]['is']('$textProxy')&&!_0x5289eb[_0x7b1d('0x62')](_0x1198d6[_0x7b1d('0x19')]),_0x478636=_0x29bec1['start'][_0x7b1d('0x58')](_0x286f13),_0xac7398=_0x29bec1[_0x7b1d('0x2a')][_0x7b1d('0x58')](_0x286f13,{'direction':_0x7b1d('0xb3')});return(!_0x29bec1[_0x7b1d('0xc2')][_0x7b1d('0x1')](_0x478636)||!_0x29bec1['end'][_0x7b1d('0x1')](_0xac7398))&&(_0x478636[_0x7b1d('0x2d')](_0xac7398)?_0x1a8d55[_0x7b1d('0x133')](_0x45fd6b,{'range':_0x1a8d55[_0x7b1d('0x40')](_0x478636,_0xac7398)}):_0x1a8d55[_0x7b1d('0x25')](_0x45fd6b),!0x0);}function $t(_0x40774e){return _0x1c57e1(_0x40774e);}function Nt(_0x20eaf1){const _0x25356e=_0x20eaf1[_0x7b1d('0xc2')][_0x7b1d('0x128')];return _0x25356e&&_0x25356e['is']('element');}function Rt(_0x599fb7,_0x5a0125){const _0x42a3cb=_0x5a0125[_0x7b1d('0xd7')][_0x7b1d('0x62')](_0x599fb7)||_0x5a0125[_0x7b1d('0xd7')][_0x7b1d('0x99')](_0x599fb7);return _0x5a0125['createRange'](_0x5a0125['createPositionAt'](_0x599fb7,'before'),_0x42a3cb?_0x5a0125[_0x7b1d('0x87')](_0x599fb7):_0x5a0125[_0x7b1d('0xb7')](_0x599fb7,'end'));}function xt(_0x2e0f61,_0x4f65c4,_0x5beb4c,_0x1466f5,_0x53e565){if(_0x5beb4c[_0x7b1d('0x2a')][_0x7b1d('0x1')](_0x1466f5[_0x7b1d('0xc2')]))return!0x0;if(_0x2e0f61[_0x7b1d('0xa2')]!=_0x4f65c4['type'])return!0x1;if(!_0x5beb4c['end'][_0x7b1d('0x134')](_0x1466f5[_0x7b1d('0xc2')]))return!0x1;const _0x188f66=_0x53e565[_0x7b1d('0x40')](_0x5beb4c[_0x7b1d('0x2a')],_0x1466f5[_0x7b1d('0xc2')])['getWalker']();for(const _0x526546 of _0x188f66)if([_0x7b1d('0x96'),_0x7b1d('0x75')]['includes'](_0x526546[_0x7b1d('0xa2')])&&_0x53e565[_0x7b1d('0xd7')]['isLimit'](_0x526546[_0x7b1d('0x19')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52c8=['getSuggestion','CommentsUI','separator','createCommentThreadController','registerAnnotation','getAllAdjacentSuggestions','_bindAnnotationToEditors','clear','commentThread','_descriptionFactory','map','head','plugins','filter','add','comments.maxThreadTotalWeight','comments.editorConfig','value','mainView','suggestion-','activeMarkers','Accept\x20all\x20suggestions','focus','bind','trackChanges','_handleSuggestionControllerDelayed','change:activeAnnotations','addSourceCollector','isEnabled','from','CommentView','_destroyController','size','button','isMultiRange','commands','length','comments.maxCommentCharsWhenCollapsed','execute','_createUIButton','_handleControllerBuffer','previous','isOn','EditorAnnotations','Accept\x20all\x20selected\x20suggestions','componentFactory','Discard\x20all\x20suggestions','discardSelectedSuggestions','_updateController','discardAllSuggestions','Track\x20changes','_refreshActiveMarkers','suggestionChanged','actionView','arrowView','buttonView','_disableComments','getJoined','getDescriptions','isInContent','TrackChangesEditing','editing','Discard\x20all\x20selected\x20suggestions','activeAnnotations','remove','createAnnotationView','push','getMarkerNames','unbind','_viewToController','acceptSelectedSuggestions','destroy','stopListening','lowest','trackChanges.SuggestionThreadView','pluginName','reduce','view','model','refreshSelectedViews','comments.maxCommentsWhenCollapsed','keys','listenTo','descriptionParts','source','createAnnotation','delete','commandName','CommentsRepository','toMany','get','Annotations','hasSuggestion','getRanges','innerView','config','isDirty','has','acceptButton','editor','locale','_suggestionToController','trackChanges.disableComments','_annotationViews','define','getMarkers','_initializeController','type','set','suggestionUnloaded'];(function(_0x41bbad,_0x52c86c){const _0x306685=function(_0x3d795a){while(--_0x3d795a){_0x41bbad['push'](_0x41bbad['shift']());}};_0x306685(++_0x52c86c);}(_0x52c8,0x178));const _0x3066=function(_0x41bbad,_0x52c86c){_0x41bbad=_0x41bbad-0x0;let _0x306685=_0x52c8[_0x41bbad];return _0x306685;};import{Plugin as _0x150f8e}from'ckeditor5/src/core';import{Collection as _0x105231}from'ckeditor5/src/utils';import{Model as _0x57de1c,SplitButtonView as _0x2310fa,createDropdown as _0xc09fa7,addListToDropdown as _0x488754}from'ckeditor5/src/ui';import{Users as _0x58949e,getDateTimeFormatter as _0x5c812c,getAllMarkersDomElementsSorted as _0x21dc61}from'ckeditor5-collaboration/src/collaboration-core';import _0x5eba2c from'./trackchangesediting';import _0x31106f from'./ui/suggestioncontroller';import _0x9b6e8e from'./ui/view/suggestionthreadview';import{getTranslation as _0x222207}from'./utils/common-translations';import _0x2f83d9 from'../theme/icons/track-changes.svg';export default class d extends _0x150f8e{static get['requires'](){return[_0x5eba2c,_0x58949e,'CommentsRepository','Annotations','EditorAnnotations'];}static get[_0x3066('0x1d')](){return'TrackChangesUI';}constructor(_0x42e4d6){super(_0x42e4d6),this[_0x3066('0x37')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x3066('0x68')]=new Map();const _0x5cd72e=this['editor'][_0x3066('0x31')];_0x5cd72e[_0x3066('0x3a')](_0x3066('0x1c'),_0x9b6e8e),_0x5cd72e['define']('trackChanges.disableComments',!0x1),this[_0x3066('0xa')]=_0x5cd72e[_0x3066('0x2c')](_0x3066('0x38'));}[_0x3066('0x59')](_0x25c8a5,_0x35505e){0x0===this['_handleControllerBuffer'][_0x3066('0x60')]&&setTimeout(()=>{for(const [_0x3e5db5,_0x1b509d]of this[_0x3066('0x68')]){const _0x32544a=this[_0x3066('0x37')][_0x3066('0x33')](_0x3e5db5);_0x32544a||_0x1b509d?_0x32544a&&_0x1b509d&&this[_0x3066('0x5f')](_0x3e5db5):this[_0x3066('0x3c')](_0x3e5db5);}this[_0x3066('0x35')]['plugins']['get'](_0x3066('0x6b'))[_0x3066('0x21')](),this[_0x3066('0x5')](),this['_handleControllerBuffer'][_0x3066('0x47')]();},0xa),this[_0x3066('0x68')][_0x3066('0x3e')](_0x25c8a5,_0x35505e);}['init'](){const _0x5a21e4=this[_0x3066('0x35')],_0x2831c6=_0x5a21e4['plugins'][_0x3066('0x2c')](_0x3066('0xe')),_0x1042ff=_0x5a21e4[_0x3066('0x4c')]['get']('Annotations'),_0x300203=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')]('EditorAnnotations'),_0x8a483d=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a'));_0x5a21e4['ui'][_0x3066('0x6d')][_0x3066('0x4e')]('trackChanges',_0x16a0e2=>this['_createUIButton'](_0x16a0e2)),_0x300203[_0x3066('0x5b')](()=>{const _0x471a5a=[];for(const [_0x5cbc80,_0x1db24d]of Array[_0x3066('0x5d')](this['_suggestionToController'])){const _0x4e19da=_0x5cbc80[_0x3066('0x45')](),_0x44b122=[];for(const _0x501800 of _0x4e19da){if(!_0x501800[_0x3066('0xd')])continue;if(_0x501800[_0x3066('0x62')]){_0x44b122[_0x3066('0x14')](..._0x501800[_0x3066('0x2f')]());continue;}const _0xce4225=_0x501800['getFirstRange']();if(_0x44b122['length']>0x0){const _0x3e6235=_0x44b122[0x0][_0x3066('0xb')](_0xce4225);if(_0x3e6235){_0x44b122[0x0]=_0x3e6235;continue;}}_0x44b122['push'](_0xce4225);}_0x471a5a[_0x3066('0x14')]([_0x1db24d[_0x3066('0x1f')],_0x44b122]);}return _0x471a5a;}),this[_0x3066('0x24')](_0x2831c6,'suggestionLoaded',(_0x418bbc,_0x18ee7f)=>{this[_0x3066('0x24')](_0x18ee7f,'change:previous',(_0x1f9327,_0x3c7178,_0x29399c,_0x1b1877)=>{_0x18ee7f[_0x3066('0xd')]&&(null==_0x29399c?(this[_0x3066('0x2')](_0x1b1877['head']),this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1)):(this[_0x3066('0x2')](_0x29399c['head']),this[_0x3066('0x59')](_0x18ee7f,!0x0)));}),null===_0x18ee7f[_0x3066('0x69')]?this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1):this[_0x3066('0x2')](_0x18ee7f[_0x3066('0x4b')]);}),this['listenTo'](_0x2831c6,_0x3066('0x3f'),(_0x25f1cf,_0x1e2fa4,_0x13cfbb)=>{this[_0x3066('0x1a')](_0x1e2fa4,'change:previous'),this['_handleControllerBuffer'][_0x3066('0x28')](_0x1e2fa4);const _0x69abc7=_0x13cfbb?_0x13cfbb[_0x3066('0x4b')]:_0x1e2fa4,_0x3558f0=this['_suggestionToController'][_0x3066('0x2c')](_0x69abc7);null!==_0x13cfbb&&this[_0x3066('0x2')](_0x69abc7),null===_0x13cfbb&&_0x3558f0&&this[_0x3066('0x5f')](_0x1e2fa4);}),this[_0x3066('0x24')](_0x2831c6,_0x3066('0x6'),(_0x3dba31,_0x4a5c43)=>{this[_0x3066('0x2')](_0x4a5c43);}),this[_0x3066('0x24')](_0x1042ff,_0x3066('0x5a'),()=>{this['_refreshActiveMarkers']();}),this[_0x3066('0x24')](_0x8a483d,'addComment',(_0x13d8a6,{threadId:_0x3a75ce,isFromAdapter:_0x12a120})=>{if(_0x12a120||!_0x2831c6[_0x3066('0x2e')](_0x3a75ce))return;const _0x368224=_0x2831c6[_0x3066('0x40')](_0x3a75ce);this[_0x3066('0x37')]['get'](_0x368224)['view'][_0x3066('0x56')]();},{'priority':_0x3066('0x1b')});}[_0x3066('0x5')](){const _0x3cb2c0=this[_0x3066('0x35')][_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5da5b1=this['editor']['plugins'][_0x3066('0x2c')]('TrackChangesEditing'),_0x941e10=Array['from'](_0x3cb2c0[_0x3066('0x11')],_0x6a992=>_0x6a992[_0x3066('0x30')])[_0x3066('0x4d')](_0x1d7e9f=>this[_0x3066('0x17')][_0x3066('0x33')](_0x1d7e9f)),_0x430920=[];for(const _0x3856c3 of _0x941e10){const _0x505988=this[_0x3066('0x17')][_0x3066('0x2c')](_0x3856c3)[_0x3066('0x20')][_0x3066('0x45')]();_0x430920[_0x3066('0x14')](..._0x505988[_0x3066('0x1e')]((_0x17680f,_0x132404)=>[..._0x17680f,..._0x132404[_0x3066('0x15')]()],[]));}_0x5da5b1[_0x3066('0x54')]=_0x430920;}[_0x3066('0x67')](_0x4a444f){const _0x19dbec=_0xc09fa7(_0x4a444f,_0x2310fa),_0x13d132=this['editor']['commands'][_0x3066('0x2c')]('trackChanges'),_0x4b4456=_0x222207(_0x4a444f,_0x3066('0x4'));_0x19dbec[_0x3066('0x9')][_0x3066('0x3e')]({'tooltip':_0x4b4456,'label':_0x4b4456,'icon':_0x2f83d9}),_0x19dbec[_0x3066('0x9')][_0x3066('0x57')](_0x3066('0x6a'))['to'](_0x13d132,_0x3066('0x51')),_0x19dbec[_0x3066('0x9')]['on'](_0x3066('0x66'),()=>{_0x13d132[_0x3066('0x66')](),this[_0x3066('0x35')][_0x3066('0xf')][_0x3066('0x1f')]['focus']();});const _0x35edcf=new _0x105231(),_0x26714e=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4b4456,'commandName':_0x3066('0x58')}},{'type':_0x3066('0x42')},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x55')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x6c')),'commandName':_0x3066('0x18')}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x0')),'commandName':_0x3066('0x3')}},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x10')),'commandName':_0x3066('0x1')}}];for(const _0x37c8a7 of _0x26714e){let _0x1498ab={'type':'separator'};if(_0x37c8a7[_0x3066('0x20')]){const _0x492cd9=new _0x57de1c(_0x37c8a7['model']),_0x1dccf8=this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x492cd9[_0x3066('0x29')]);_0x492cd9[_0x3066('0x57')](_0x3066('0x6a'),'isEnabled')['to'](_0x1dccf8,_0x3066('0x51'),_0x3066('0x5c')),_0x1498ab={'type':_0x37c8a7[_0x3066('0x3d')],'model':_0x492cd9};}_0x35edcf[_0x3066('0x4e')](_0x1498ab);}_0x488754(_0x19dbec,_0x35edcf);const _0xfb7c45=_0x26714e[_0x3066('0x4d')](_0x2ae6f0=>null!=_0x2ae6f0[_0x3066('0x20')])[_0x3066('0x4a')](_0x35a5f6=>this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x35a5f6[_0x3066('0x20')]['commandName'])),_0x459904=_0x19dbec[_0x3066('0x9')];return _0x459904[_0x3066('0x7')]['unbind']('isEnabled'),_0x459904['arrowView'][_0x3066('0x16')](_0x3066('0x5c')),_0x459904[_0x3066('0x7')][_0x3066('0x57')]('isEnabled')['to'](_0x13d132,_0x3066('0x5c')),_0x459904[_0x3066('0x8')]['bind'](_0x3066('0x5c'))[_0x3066('0x2b')](_0xfb7c45,_0x3066('0x5c'),(..._0x567b44)=>_0x567b44['some'](_0x2ec89f=>_0x2ec89f)),_0x19dbec['on'](_0x3066('0x66'),_0x5d9bdb=>{this[_0x3066('0x35')][_0x3066('0x66')](_0x5d9bdb[_0x3066('0x26')][_0x3066('0x29')]),this[_0x3066('0x35')]['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x19dbec;}[_0x3066('0x3c')](_0x2ca4d9){const _0x3ae8bb=this[_0x3066('0x35')],_0x361edb=_0x3ae8bb[_0x3066('0x31')],_0x99b80a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5784a1=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a')),_0x56d27a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x6b')),_0x18556c=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x58949e)['me'],_0x30d073=_0x361edb['get'](_0x3066('0x58'))['SuggestionThreadView'],{CommentsListView:_0x48f4c4,CommentThreadInputView:_0x559f8f}=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x41'));let _0x72d1a4,_0x4be4fb;this['_annotationViews'][_0x3066('0x33')](_0x2ca4d9['id'])?(_0x4be4fb=this['_annotationViews'][_0x3066('0x2c')](_0x2ca4d9['id']),_0x72d1a4=_0x4be4fb[_0x3066('0x52')]):(_0x72d1a4=new _0x30d073(_0x3ae8bb[_0x3066('0x36')],_0x2ca4d9,_0x18556c,{'disableComments':this[_0x3066('0xa')],'editorConfig':_0x361edb[_0x3066('0x2c')](_0x3066('0x50')),'maxCommentsWhenCollapsed':_0x361edb['get'](_0x3066('0x22')),'maxThreadTotalWeight':_0x361edb[_0x3066('0x2c')](_0x3066('0x4f')),'maxCommentCharsWhenCollapsed':_0x361edb[_0x3066('0x2c')](_0x3066('0x65')),'formatDateTime':_0x5c812c(_0x361edb[_0x3066('0x2c')](_0x3066('0x36'))),'CommentView':_0x361edb[_0x3066('0x2c')]('comments')[_0x3066('0x5e')],'CommentsListView':_0x48f4c4,'CommentThreadInputView':_0x559f8f}),_0x72d1a4[_0x3066('0x34')]['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x72d1a4['discardButton']['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x4be4fb=_0x99b80a[_0x3066('0x13')](this[_0x3066('0x35')][_0x3066('0x36')],_0x72d1a4),_0x4be4fb[_0x3066('0x57')](_0x3066('0x32'))['to'](_0x72d1a4,_0x3066('0x32')),_0x4be4fb[_0x3066('0x57')](_0x3066('0x64'))['to'](_0x72d1a4),_0x4be4fb[_0x3066('0x57')]('type')['to'](_0x72d1a4,'type',_0x2630af=>_0x3066('0x53')+_0x2630af),this[_0x3066('0x39')][_0x3066('0x3e')](_0x2ca4d9['id'],_0x4be4fb));const _0x5dea67=_0x5784a1[_0x3066('0x43')](_0x2ca4d9[_0x3066('0x48')],_0x72d1a4),_0x341dda=new _0x31106f(_0x3ae8bb,_0x2ca4d9,_0x72d1a4,_0x5dea67),_0x3afac1=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x3d5e91=>_0x3d5e91[_0x3066('0xd')]);_0x72d1a4[_0x3066('0x25')]=_0x3ae8bb[_0x3066('0x4c')]['get'](_0x3066('0xe'))[_0x3066('0x49')][_0x3066('0xc')](_0x3afac1),this['_suggestionToController']['set'](_0x2ca4d9,_0x341dda),this[_0x3066('0x17')][_0x3066('0x3e')](_0x72d1a4,_0x341dda);const _0x322422=_0x99b80a[_0x3066('0x27')]({'view':_0x4be4fb,'target':()=>{const _0x2deffa=[],_0x3b3b42=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x5e5b9c=>_0x5e5b9c[_0x3066('0xd')]);for(const _0x2599ff of _0x3b3b42)_0x2deffa[_0x3066('0x14')](..._0x2599ff[_0x3066('0x3b')]());return _0x21dc61(_0x3ae8bb['editing'],_0x2deffa);},'type':()=>'suggestion-'+_0x341dda[_0x3066('0x1f')][_0x3066('0x3d')]});_0x5784a1[_0x3066('0x46')](_0x72d1a4,_0x322422),_0x99b80a[_0x3066('0x4e')](_0x322422),_0x56d27a[_0x3066('0x44')](_0x322422);}[_0x3066('0x5f')](_0x11324b){const _0x33152a=this[_0x3066('0x35')]['plugins'][_0x3066('0x2c')](_0x3066('0x2d')),_0x5652d1=this[_0x3066('0x37')][_0x3066('0x2c')](_0x11324b),_0x5904e9=_0x5652d1[_0x3066('0x1f')],_0xc23a27=_0x33152a['getByInnerView'](_0x5904e9);_0xc23a27&&_0x33152a[_0x3066('0x12')](_0xc23a27),this[_0x3066('0x37')][_0x3066('0x28')](_0x11324b),this[_0x3066('0x17')][_0x3066('0x28')](_0x5904e9),_0x5652d1[_0x3066('0x19')]();}[_0x3066('0x2')](_0x4df611){if(!_0x4df611[_0x3066('0xd')]||!this[_0x3066('0x37')][_0x3066('0x33')](_0x4df611))return;const _0x1cfb40=this['editor'][_0x3066('0x4c')][_0x3066('0x2c')]('TrackChangesEditing'),_0x2b8b4e=this[_0x3066('0x37')]['get'](_0x4df611),_0x22f1f8=_0x4df611[_0x3066('0x45')]();_0x2b8b4e[_0x3066('0x1f')][_0x3066('0x25')]=_0x1cfb40['_descriptionFactory'][_0x3066('0xc')](_0x22f1f8);}[_0x3066('0x19')](){for(const _0x4d06f0 of this[_0x3066('0x37')][_0x3066('0x23')]())this['_destroyController'](_0x4d06f0);for(const _0x430378 of this[_0x3066('0x39')]['values']())_0x430378[_0x3066('0x52')][_0x3066('0x19')]();super[_0x3066('0x19')]();}}
23
+ const _0x384c=['_suggestionToController','acceptSelectedSuggestions','destroy','Track\x20changes','separator','_disableComments','TrackChangesUI','comments','_viewToController','button','SuggestionThreadView','value','clear','suggestionLoaded','listenTo','registerAnnotation','discardAllSuggestions','commandName','filter','getSuggestion','getMarkers','delete','config','commentThread','discardButton','has','innerView','model','lowest','activeAnnotations','comments.maxThreadTotalWeight','EditorAnnotations','set','keys','define','init','CommentView','add','isInContent','actionView','_initializeController','Annotations','_annotationViews','stopListening','editor','CommentsRepository','trackChanges.disableComments','switchbutton','_refreshActiveMarkers','commands','reduce','trackChanges','TrackChangesEditing','isDirty','Accept\x20all\x20selected\x20suggestions','hasSuggestion','pluginName','remove','size','requires','plugins','getJoined','view','_handleSuggestionControllerDelayed','Discard\x20all\x20selected\x20suggestions','isOn','type','length','get','descriptionParts','isEnabled','editing','acceptAllSuggestions','unbind','_handleControllerBuffer','_descriptionFactory','createAnnotation','activeMarkers','mainView','_updateController','map','refreshSelectedViews','suggestionChanged','componentFactory','getDescriptions','createCommentThreadController','_bindAnnotationToEditors','acceptButton','change:previous','previous','comments.editorConfig','Discard\x20all\x20suggestions','locale','getRanges','bind','_createUIButton','trackChanges.SuggestionThreadView','values','push','comments.maxCommentsWhenCollapsed','execute','addSourceCollector','_destroyController','toMany','head','focus','buttonView','arrowView','suggestionUnloaded','getAllAdjacentSuggestions','discardSelectedSuggestions','isMultiRange','getFirstRange','suggestion-','from','some'];(function(_0xe12b4f,_0x384ccc){const _0x2f584b=function(_0xca69c6){while(--_0xca69c6){_0xe12b4f['push'](_0xe12b4f['shift']());}};_0x2f584b(++_0x384ccc);}(_0x384c,0x9f));const _0x2f58=function(_0xe12b4f,_0x384ccc){_0xe12b4f=_0xe12b4f-0x0;let _0x2f584b=_0x384c[_0xe12b4f];return _0x2f584b;};import{Plugin as _0x352bc5}from'ckeditor5/src/core';import{Collection as _0x56b27d}from'ckeditor5/src/utils';import{Model as _0xf1cec8,SplitButtonView as _0x267fb8,createDropdown as _0x238ea0,addListToDropdown as _0x4db84a}from'ckeditor5/src/ui';import{Users as _0x32a995,getDateTimeFormatter as _0x570f7c,getAllMarkersDomElementsSorted as _0x42ea1f}from'ckeditor5-collaboration/src/collaboration-core';import _0x40c609 from'./trackchangesediting';import _0x2fd209 from'./ui/suggestioncontroller';import _0xc7883f from'./ui/view/suggestionthreadview';import{getTranslation as _0x4d7042}from'./utils/common-translations';import _0x24f261 from'../theme/icons/track-changes.svg';export default class d extends _0x352bc5{static get[_0x2f58('0x10')](){return[_0x40c609,_0x32a995,_0x2f58('0x2'),_0x2f58('0x72'),_0x2f58('0x68')];}static get[_0x2f58('0xd')](){return _0x2f58('0x4f');}constructor(_0x1d19ff){super(_0x1d19ff),this['_suggestionToController']=new Map(),this[_0x2f58('0x51')]=new Map(),this[_0x2f58('0x73')]=new Map(),this[_0x2f58('0x1f')]=new Map();const _0x10f5ac=this[_0x2f58('0x1')][_0x2f58('0x5f')];_0x10f5ac[_0x2f58('0x6b')](_0x2f58('0x35'),_0xc7883f),_0x10f5ac[_0x2f58('0x6b')](_0x2f58('0x3'),!0x1),this[_0x2f58('0x4e')]=_0x10f5ac[_0x2f58('0x19')](_0x2f58('0x3'));}['_handleSuggestionControllerDelayed'](_0x92d7a5,_0x9fcdef){0x0===this[_0x2f58('0x1f')][_0x2f58('0xf')]&&setTimeout(()=>{for(const [_0xcec82b,_0x55b5b9]of this[_0x2f58('0x1f')]){const _0x120bdd=this[_0x2f58('0x49')][_0x2f58('0x62')](_0xcec82b);_0x120bdd||_0x55b5b9?_0x120bdd&&_0x55b5b9&&this['_destroyController'](_0xcec82b):this['_initializeController'](_0xcec82b);}this[_0x2f58('0x1')]['plugins'][_0x2f58('0x19')](_0x2f58('0x68'))[_0x2f58('0x26')](),this[_0x2f58('0x5')](),this[_0x2f58('0x1f')][_0x2f58('0x55')]();},0xa),this[_0x2f58('0x1f')]['set'](_0x92d7a5,_0x9fcdef);}[_0x2f58('0x6c')](){const _0x36edf6=this['editor'],_0x1499d4=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x2aac33=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')]('Annotations'),_0x924406=_0x36edf6[_0x2f58('0x11')]['get'](_0x2f58('0x68')),_0x3b0ed9=_0x36edf6[_0x2f58('0x11')][_0x2f58('0x19')]('CommentsRepository');_0x36edf6['ui'][_0x2f58('0x28')][_0x2f58('0x6e')](_0x2f58('0x8'),_0x2feab1=>this[_0x2f58('0x34')](_0x2feab1)),_0x924406[_0x2f58('0x3a')](()=>{const _0xbf56e6=[];for(const [_0x1c2416,_0xd38811]of Array[_0x2f58('0x47')](this[_0x2f58('0x49')])){const _0x1e7cb5=_0x1c2416[_0x2f58('0x42')](),_0x4e871a=[];for(const _0x14ffd0 of _0x1e7cb5){if(!_0x14ffd0['isInContent'])continue;if(_0x14ffd0[_0x2f58('0x44')]){_0x4e871a[_0x2f58('0x37')](..._0x14ffd0[_0x2f58('0x32')]());continue;}const _0x487bfd=_0x14ffd0[_0x2f58('0x45')]();if(_0x4e871a[_0x2f58('0x18')]>0x0){const _0xf8a29=_0x4e871a[0x0][_0x2f58('0x12')](_0x487bfd);if(_0xf8a29){_0x4e871a[0x0]=_0xf8a29;continue;}}_0x4e871a[_0x2f58('0x37')](_0x487bfd);}_0xbf56e6[_0x2f58('0x37')]([_0xd38811['view'],_0x4e871a]);}return _0xbf56e6;}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x56'),(_0x400a8b,_0x220501)=>{this[_0x2f58('0x57')](_0x220501,_0x2f58('0x2d'),(_0x3143db,_0x2e22b7,_0x31c91b,_0x3fa04b)=>{_0x220501[_0x2f58('0x6f')]&&(null==_0x31c91b?(this[_0x2f58('0x24')](_0x3fa04b['head']),this[_0x2f58('0x14')](_0x220501,!0x1)):(this[_0x2f58('0x24')](_0x31c91b[_0x2f58('0x3d')]),this[_0x2f58('0x14')](_0x220501,!0x0)));}),null===_0x220501[_0x2f58('0x2e')]?this[_0x2f58('0x14')](_0x220501,!0x1):this[_0x2f58('0x24')](_0x220501[_0x2f58('0x3d')]);}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x41'),(_0x119e22,_0x53d92a,_0x1274ee)=>{this[_0x2f58('0x0')](_0x53d92a,'change:previous'),this['_handleControllerBuffer'][_0x2f58('0x5e')](_0x53d92a);const _0x4a0d46=_0x1274ee?_0x1274ee[_0x2f58('0x3d')]:_0x53d92a,_0x21baa5=this['_suggestionToController'][_0x2f58('0x19')](_0x4a0d46);null!==_0x1274ee&&this[_0x2f58('0x24')](_0x4a0d46),null===_0x1274ee&&_0x21baa5&&this[_0x2f58('0x3b')](_0x53d92a);}),this[_0x2f58('0x57')](_0x1499d4,_0x2f58('0x27'),(_0x3a36d2,_0x25b856)=>{this[_0x2f58('0x24')](_0x25b856);}),this[_0x2f58('0x57')](_0x2aac33,'change:activeAnnotations',()=>{this[_0x2f58('0x5')]();}),this[_0x2f58('0x57')](_0x3b0ed9,'addComment',(_0x392348,{threadId:_0x5e32e6,isFromAdapter:_0x7743fb})=>{if(_0x7743fb||!_0x1499d4[_0x2f58('0xc')](_0x5e32e6))return;const _0x1d4fa4=_0x1499d4[_0x2f58('0x5c')](_0x5e32e6);this['_suggestionToController']['get'](_0x1d4fa4)[_0x2f58('0x13')][_0x2f58('0x3e')]();},{'priority':_0x2f58('0x65')});}[_0x2f58('0x5')](){const _0x1cb937=this['editor'][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x72')),_0x31a986=this['editor'][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x5202ae=Array[_0x2f58('0x47')](_0x1cb937[_0x2f58('0x66')],_0xa32b67=>_0xa32b67[_0x2f58('0x63')])[_0x2f58('0x5b')](_0x3fdefb=>this['_viewToController'][_0x2f58('0x62')](_0x3fdefb)),_0x178377=[];for(const _0x6997ce of _0x5202ae){const _0x389e63=this[_0x2f58('0x51')][_0x2f58('0x19')](_0x6997ce)['model'][_0x2f58('0x42')]();_0x178377[_0x2f58('0x37')](..._0x389e63[_0x2f58('0x7')]((_0x4156fa,_0x2c8156)=>[..._0x4156fa,..._0x2c8156['getMarkerNames']()],[]));}_0x31a986[_0x2f58('0x22')]=_0x178377;}[_0x2f58('0x34')](_0x9dd5a1){const _0x508906=_0x238ea0(_0x9dd5a1,_0x267fb8),_0x4889a8=this[_0x2f58('0x1')][_0x2f58('0x6')]['get'](_0x2f58('0x8')),_0x5b5190=_0x4d7042(_0x9dd5a1,_0x2f58('0x4c'));_0x508906['buttonView'][_0x2f58('0x69')]({'tooltip':_0x5b5190,'label':_0x5b5190,'icon':_0x24f261}),_0x508906[_0x2f58('0x3f')][_0x2f58('0x33')](_0x2f58('0x16'))['to'](_0x4889a8,_0x2f58('0x54')),_0x508906[_0x2f58('0x3f')]['on'](_0x2f58('0x39'),()=>{_0x4889a8[_0x2f58('0x39')](),this[_0x2f58('0x1')][_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();});const _0x1a7883=new _0x56b27d(),_0x1cb9a6=[{'type':_0x2f58('0x4'),'model':{'withText':!0x0,'label':_0x5b5190,'commandName':_0x2f58('0x8')}},{'type':_0x2f58('0x4d')},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,'Accept\x20all\x20suggestions'),'commandName':_0x2f58('0x1d')}},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0xb')),'commandName':_0x2f58('0x4a')}},{'type':'button','model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0x30')),'commandName':_0x2f58('0x59')}},{'type':_0x2f58('0x52'),'model':{'withText':!0x0,'label':_0x4d7042(_0x9dd5a1,_0x2f58('0x15')),'commandName':_0x2f58('0x43')}}];for(const _0x1df81a of _0x1cb9a6){let _0x1ce192={'type':_0x2f58('0x4d')};if(_0x1df81a[_0x2f58('0x64')]){const _0x5e4517=new _0xf1cec8(_0x1df81a[_0x2f58('0x64')]),_0x2cca1d=this['editor'][_0x2f58('0x6')][_0x2f58('0x19')](_0x5e4517[_0x2f58('0x5a')]);_0x5e4517[_0x2f58('0x33')](_0x2f58('0x16'),_0x2f58('0x1b'))['to'](_0x2cca1d,'value',_0x2f58('0x1b')),_0x1ce192={'type':_0x1df81a[_0x2f58('0x17')],'model':_0x5e4517};}_0x1a7883['add'](_0x1ce192);}_0x4db84a(_0x508906,_0x1a7883);const _0x51eae4=_0x1cb9a6[_0x2f58('0x5b')](_0xd07a55=>null!=_0xd07a55[_0x2f58('0x64')])[_0x2f58('0x25')](_0x4e7baf=>this[_0x2f58('0x1')][_0x2f58('0x6')][_0x2f58('0x19')](_0x4e7baf[_0x2f58('0x64')]['commandName'])),_0x169135=_0x508906['buttonView'];return _0x169135['actionView'][_0x2f58('0x1e')](_0x2f58('0x1b')),_0x169135[_0x2f58('0x40')][_0x2f58('0x1e')](_0x2f58('0x1b')),_0x169135[_0x2f58('0x70')][_0x2f58('0x33')](_0x2f58('0x1b'))['to'](_0x4889a8,'isEnabled'),_0x169135[_0x2f58('0x40')]['bind'](_0x2f58('0x1b'))[_0x2f58('0x3c')](_0x51eae4,_0x2f58('0x1b'),(..._0x4cf9a0)=>_0x4cf9a0[_0x2f58('0x48')](_0x177677=>_0x177677)),_0x508906['on'](_0x2f58('0x39'),_0x27d77b=>{this[_0x2f58('0x1')][_0x2f58('0x39')](_0x27d77b['source'][_0x2f58('0x5a')]),this[_0x2f58('0x1')][_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x508906;}[_0x2f58('0x71')](_0x87eb07){const _0x469882=this[_0x2f58('0x1')],_0x6ddc1b=_0x469882[_0x2f58('0x5f')],_0x51b615=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x72')),_0x2e131e=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x2')),_0x5dd44e=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x68')),_0x5f1d70=_0x469882[_0x2f58('0x11')][_0x2f58('0x19')](_0x32a995)['me'],_0x581c50=_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x8'))[_0x2f58('0x53')],{CommentsListView:_0x37d678,CommentThreadInputView:_0x5087ce}=_0x469882[_0x2f58('0x11')]['get']('CommentsUI');let _0x1accf3,_0x874de8;this[_0x2f58('0x73')]['has'](_0x87eb07['id'])?(_0x874de8=this[_0x2f58('0x73')][_0x2f58('0x19')](_0x87eb07['id']),_0x1accf3=_0x874de8['mainView']):(_0x1accf3=new _0x581c50(_0x469882[_0x2f58('0x31')],_0x87eb07,_0x5f1d70,{'disableComments':this[_0x2f58('0x4e')],'editorConfig':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x2f')),'maxCommentsWhenCollapsed':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x38')),'maxThreadTotalWeight':_0x6ddc1b['get'](_0x2f58('0x67')),'maxCommentCharsWhenCollapsed':_0x6ddc1b[_0x2f58('0x19')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x570f7c(_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x31'))),'CommentView':_0x6ddc1b[_0x2f58('0x19')](_0x2f58('0x50'))[_0x2f58('0x6d')],'CommentsListView':_0x37d678,'CommentThreadInputView':_0x5087ce}),_0x1accf3[_0x2f58('0x2c')]['on'](_0x2f58('0x39'),()=>{_0x469882['editing'][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x1accf3[_0x2f58('0x61')]['on']('execute',()=>{_0x469882[_0x2f58('0x1c')][_0x2f58('0x13')][_0x2f58('0x3e')]();}),_0x874de8=_0x51b615['createAnnotationView'](this[_0x2f58('0x1')][_0x2f58('0x31')],_0x1accf3),_0x874de8[_0x2f58('0x33')](_0x2f58('0xa'))['to'](_0x1accf3,_0x2f58('0xa')),_0x874de8['bind']('length')['to'](_0x1accf3),_0x874de8[_0x2f58('0x33')]('type')['to'](_0x1accf3,_0x2f58('0x17'),_0x5c27a7=>_0x2f58('0x46')+_0x5c27a7),this[_0x2f58('0x73')][_0x2f58('0x69')](_0x87eb07['id'],_0x874de8));const _0x2af094=_0x2e131e[_0x2f58('0x2a')](_0x87eb07[_0x2f58('0x60')],_0x1accf3),_0x1ebfc3=new _0x2fd209(_0x469882,_0x87eb07,_0x1accf3,_0x2af094),_0x305a39=_0x87eb07[_0x2f58('0x42')]()['filter'](_0x15ecbf=>_0x15ecbf[_0x2f58('0x6f')]);_0x1accf3[_0x2f58('0x1a')]=_0x469882[_0x2f58('0x11')]['get'](_0x2f58('0x9'))['_descriptionFactory'][_0x2f58('0x29')](_0x305a39),this[_0x2f58('0x49')][_0x2f58('0x69')](_0x87eb07,_0x1ebfc3),this[_0x2f58('0x51')][_0x2f58('0x69')](_0x1accf3,_0x1ebfc3);const _0x44687c=_0x51b615[_0x2f58('0x21')]({'view':_0x874de8,'target':()=>{const _0x3c65d2=[],_0x1aa527=_0x87eb07['getAllAdjacentSuggestions']()[_0x2f58('0x5b')](_0x410500=>_0x410500[_0x2f58('0x6f')]);for(const _0x32c0c7 of _0x1aa527)_0x3c65d2['push'](..._0x32c0c7[_0x2f58('0x5d')]());return _0x42ea1f(_0x469882[_0x2f58('0x1c')],_0x3c65d2);},'type':()=>_0x2f58('0x46')+_0x1ebfc3['view'][_0x2f58('0x17')]});_0x2e131e[_0x2f58('0x2b')](_0x1accf3,_0x44687c),_0x51b615['add'](_0x44687c),_0x5dd44e[_0x2f58('0x58')](_0x44687c);}[_0x2f58('0x3b')](_0x17eb75){const _0x3f7789=this['editor']['plugins'][_0x2f58('0x19')](_0x2f58('0x72')),_0x12fe5d=this['_suggestionToController'][_0x2f58('0x19')](_0x17eb75),_0x1d6c09=_0x12fe5d[_0x2f58('0x13')],_0xebf044=_0x3f7789['getByInnerView'](_0x1d6c09);_0xebf044&&_0x3f7789[_0x2f58('0xe')](_0xebf044),this[_0x2f58('0x49')][_0x2f58('0x5e')](_0x17eb75),this['_viewToController'][_0x2f58('0x5e')](_0x1d6c09),_0x12fe5d[_0x2f58('0x4b')]();}[_0x2f58('0x24')](_0x5676f9){if(!_0x5676f9['isInContent']||!this['_suggestionToController'][_0x2f58('0x62')](_0x5676f9))return;const _0x1a8f51=this[_0x2f58('0x1')][_0x2f58('0x11')][_0x2f58('0x19')](_0x2f58('0x9')),_0x32e70d=this['_suggestionToController'][_0x2f58('0x19')](_0x5676f9),_0x114916=_0x5676f9[_0x2f58('0x42')]();_0x32e70d[_0x2f58('0x13')][_0x2f58('0x1a')]=_0x1a8f51[_0x2f58('0x20')][_0x2f58('0x29')](_0x114916);}['destroy'](){for(const _0xa72cea of this[_0x2f58('0x49')][_0x2f58('0x6a')]())this[_0x2f58('0x3b')](_0xa72cea);for(const _0x4b00fb of this[_0x2f58('0x73')][_0x2f58('0x36')]())_0x4b00fb[_0x2f58('0x23')][_0x2f58('0x4b')]();super[_0x2f58('0x4b')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3511=['plugins','isDirty','stopListening','canAccept','_acceptCommand','bind','execute','_setPendingAction','model','commands','add','isEnabled','getRanges','discardSuggestion','view','_editor','canDiscard','_removePendingAction','_discardCommand','destroy','acceptSuggestion','get','_pendingAction','unbind','locale','remove','listenTo','PendingActions','commentThreadController'];(function(_0x548194,_0x351137){const _0x3a4daa=function(_0x356ad5){while(--_0x356ad5){_0x548194['push'](_0x548194['shift']());}};_0x3a4daa(++_0x351137);}(_0x3511,0x1c7));const _0x3a4d=function(_0x548194,_0x351137){_0x548194=_0x548194-0x0;let _0x3a4daa=_0x3511[_0x548194];return _0x3a4daa;};import{ObservableMixin as _0x2f5d7a}from'ckeditor5/src/utils';import{getTranslation as _0x14d41d}from'../utils/common-translations';export default class qt extends _0x2f5d7a(){constructor(_0x3f65ff,_0x2fcf73,_0x52fe4c,_0x4195b4){super(),this[_0x3a4d('0x11')]=_0x2fcf73,this[_0x3a4d('0x17')]=_0x52fe4c,this['commentThreadController']=_0x4195b4,this['_editor']=_0x3f65ff,this['_acceptCommand']=_0x3f65ff[_0x3a4d('0x12')]['get'](_0x3a4d('0x0')),this[_0x3a4d('0x1b')]=_0x3f65ff['commands'][_0x3a4d('0x1')](_0x3a4d('0x16')),this[_0x3a4d('0x17')][_0x3a4d('0xe')](_0x3a4d('0x14'))['to'](this[_0x3a4d('0xd')],this[_0x3a4d('0x1b')],(_0x50bff1,_0x2b844b)=>_0x50bff1||_0x2b844b),this[_0x3a4d('0x17')][_0x3a4d('0xe')](_0x3a4d('0xc'))['to'](this[_0x3a4d('0xd')],_0x3a4d('0x14'),_0x4a10f0=>_0x4a10f0&&this[_0x3a4d('0x18')][_0x3a4d('0x11')]['canEditAt'](_0x2fcf73[_0x3a4d('0x15')]())),this[_0x3a4d('0x17')][_0x3a4d('0xe')](_0x3a4d('0x19'))['to'](this[_0x3a4d('0x1b')],_0x3a4d('0x14'),_0x3cf9d9=>_0x3cf9d9&&this[_0x3a4d('0x18')][_0x3a4d('0x11')]['canEditAt'](_0x2fcf73[_0x3a4d('0x15')]())),this['_pendingAction']=null,_0x52fe4c['isDirty']&&this[_0x3a4d('0x10')](),this['listenTo'](_0x52fe4c,_0x3a4d('0x0'),()=>this[_0x3a4d('0x0')]()),this[_0x3a4d('0x6')](_0x52fe4c,_0x3a4d('0x16'),()=>this['discardSuggestion']()),this['listenTo'](_0x52fe4c,'change:isDirty',()=>{_0x52fe4c[_0x3a4d('0xa')]?this[_0x3a4d('0x10')]():this[_0x3a4d('0x1a')]();});}[_0x3a4d('0x0')](){this[_0x3a4d('0xd')][_0x3a4d('0xf')](this[_0x3a4d('0x11')]['id']);}[_0x3a4d('0x16')](){this[_0x3a4d('0x1b')][_0x3a4d('0xf')](this[_0x3a4d('0x11')]['id']);}['destroy'](){this['view'][_0x3a4d('0x3')](_0x3a4d('0x14')),this[_0x3a4d('0x17')][_0x3a4d('0x3')]('canAccept'),this[_0x3a4d('0x17')][_0x3a4d('0x3')](_0x3a4d('0x19')),this[_0x3a4d('0xb')](),this[_0x3a4d('0x8')][_0x3a4d('0x1c')](),this[_0x3a4d('0x2')]&&this['_removePendingAction']();}[_0x3a4d('0x10')](){const _0x17c143=_0x14d41d(this[_0x3a4d('0x18')][_0x3a4d('0x4')],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this[_0x3a4d('0x18')]['plugins'][_0x3a4d('0x1')](_0x3a4d('0x7'))[_0x3a4d('0x13')](_0x17c143);}[_0x3a4d('0x1a')](){null!==this[_0x3a4d('0x2')]&&this['_editor'][_0x3a4d('0x9')][_0x3a4d('0x1')](_0x3a4d('0x7'))[_0x3a4d('0x5')](this[_0x3a4d('0x2')]),this['_pendingAction']=null;}}
23
+ const _0x5296=['commands','acceptSuggestion','execute','listenTo','_pendingAction','unbind','commentThreadController','model','add','remove','PendingActions','_removePendingAction','_editor','_discardCommand','canEditAt','locale','canAccept','plugins','_setPendingAction','discardSuggestion','get','change:isDirty','isDirty','destroy','canDiscard','bind','_acceptCommand','getRanges','view','isEnabled','PENDING_ACTION_SUGGESTION'];(function(_0x181e37,_0x52960c){const _0x161798=function(_0x556e26){while(--_0x556e26){_0x181e37['push'](_0x181e37['shift']());}};_0x161798(++_0x52960c);}(_0x5296,0xc9));const _0x1617=function(_0x181e37,_0x52960c){_0x181e37=_0x181e37-0x0;let _0x161798=_0x5296[_0x181e37];return _0x161798;};import{ObservableMixin as _0x52f326}from'ckeditor5/src/utils';import{getTranslation as _0x5abf55}from'../utils/common-translations';export default class qt extends _0x52f326(){constructor(_0x16c196,_0x3078e2,_0x566aba,_0x104de8){super(),this[_0x1617('0x17')]=_0x3078e2,this[_0x1617('0xd')]=_0x566aba,this[_0x1617('0x16')]=_0x104de8,this[_0x1617('0x1c')]=_0x16c196,this[_0x1617('0xb')]=_0x16c196[_0x1617('0x10')][_0x1617('0x5')](_0x1617('0x11')),this[_0x1617('0x1d')]=_0x16c196['commands'][_0x1617('0x5')]('discardSuggestion'),this[_0x1617('0xd')][_0x1617('0xa')](_0x1617('0xe'))['to'](this[_0x1617('0xb')],this[_0x1617('0x1d')],(_0x2d5aa4,_0x209423)=>_0x2d5aa4||_0x209423),this[_0x1617('0xd')][_0x1617('0xa')]('canAccept')['to'](this[_0x1617('0xb')],_0x1617('0xe'),_0x5b2e86=>_0x5b2e86&&this[_0x1617('0x1c')]['model'][_0x1617('0x1e')](_0x3078e2[_0x1617('0xc')]())),this[_0x1617('0xd')][_0x1617('0xa')]('canDiscard')['to'](this[_0x1617('0x1d')],_0x1617('0xe'),_0x4124fc=>_0x4124fc&&this[_0x1617('0x1c')]['model']['canEditAt'](_0x3078e2['getRanges']())),this['_pendingAction']=null,_0x566aba[_0x1617('0x7')]&&this[_0x1617('0x3')](),this['listenTo'](_0x566aba,_0x1617('0x11'),()=>this[_0x1617('0x11')]()),this['listenTo'](_0x566aba,_0x1617('0x4'),()=>this['discardSuggestion']()),this[_0x1617('0x13')](_0x566aba,_0x1617('0x6'),()=>{_0x566aba[_0x1617('0x7')]?this[_0x1617('0x3')]():this[_0x1617('0x1b')]();});}[_0x1617('0x11')](){this[_0x1617('0xb')][_0x1617('0x12')](this[_0x1617('0x17')]['id']);}[_0x1617('0x4')](){this[_0x1617('0x1d')][_0x1617('0x12')](this['model']['id']);}['destroy'](){this['view']['unbind'](_0x1617('0xe')),this[_0x1617('0xd')][_0x1617('0x15')](_0x1617('0x1')),this[_0x1617('0xd')][_0x1617('0x15')](_0x1617('0x9')),this['stopListening'](),this[_0x1617('0x16')][_0x1617('0x8')](),this[_0x1617('0x14')]&&this[_0x1617('0x1b')]();}[_0x1617('0x3')](){const _0x46d54b=_0x5abf55(this['_editor'][_0x1617('0x0')],_0x1617('0xf'));this['_pendingAction']=this['_editor'][_0x1617('0x2')][_0x1617('0x5')]('PendingActions')[_0x1617('0x18')](_0x46d54b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x1617('0x2')]['get'](_0x1617('0x1a'))[_0x1617('0x19')](this[_0x1617('0x14')]),this[_0x1617('0x14')]=null;}}