@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230710.0 → 0.0.0-nightly-20230711.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) 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.d.ts +12 -0
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.d.ts +2 -2
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3924=['execute','for','getFirstMarker','_enabledCommands','end','getChanges','filter','removed','suggestion','_saved','_findSuggestions','nodeAfter','_createSuggestion','notReady','$marker','isBefore','formatInline:discard','deletion:','document','createdAt','addMarker','removeComment','data-suggestion','trackChanges.mergeNestedSuggestions','isAtStart','push','item','_splitMarkerName','insertion','createPositionAt','createElement','before','marker-count','targetPosition','registerPostFixer','updateSuggestion','acceptSelectedSuggestions','_removeSuggestion','insertContent','formatInline:join','normal','deletion:chain','size','move','external:','_rangeIsInLocalUserInsertion','ck-suggestion-marker','isNextTo','markers','markerToHighlight','isAtEnd','_setSuggestionData','PendingActions','_updateSuggestionData','getAllAdjacentSuggestions','containsRangeInObject','_suggestionState','insertion:discard','clone','getRange','markInsertion','enableReadOnlyMode','updateMarker','remove','getAttribute','deletion:accept','CommentsRepository','toViewElement','track-changes-suggestion-data-mismatch','addMarkerName','addComment','isObject','formatInline:accept','multipleBlocks','fetchCommentThread','deleteContent','value','insertion:','accept','author','adapter','getChangedMarkers','previous','_commentsRepository','markMultiRangeDeletion','track-changes-suggestion-not-found','getSuggestions','includes','removeMarkers','init','multi','discardSuggestion','stop','formatInline:chain','getMarkers','skipNestingCheck','sort','change:data','addMarker:suggestion:formatBlock','discard','insertion:accept','always','then','isBlock','trackChanges','start','change:activeMarkers','batch','consumable','$textProxy','ck-suggestion-marker-','default','data','enqueueChange','unbindElementFromMarkerName','addSuggestion','nodeBefore','some','name','markerReady','dataReady','_addSuggestionMarker','parent','conversion','join','mapper','_adapter','forceDefaultExecution','addSuggestionData','addHighlight','highest','isRemovable','formatBlock','add','unbind','track-changes-user-not-found','getCustomProperty','isIntersectingWithRange','range','@external','markDeletion','track-changes-command-not-found','formatBlock:','removeClass','elementToElement','config','isOwn','has','attributes','setAttribute','_defaultCallbacks','writer','getLastMatchingPosition','formatInline:','activeMarkers','_breakSuggestionMarker','trackChanges.trackFormatChanges','element','backward','_getExternalAuthor','rethrowUnexpectedError','update:suggestion','stopListening','isMultiRange','isDocumentOperation','listenTo','newRange','options','resolve','hasComments','fire','getNearestSelectionRange','buildSuggestion','commandName','track-changes-adapter-missing-getsuggestion','bindElementToMarker','subType','getUser','_mergeNestedSuggestions','schema','markMultiRangeInsertion','oldRange','_descriptionFactory','_onDiscard','removeMarker','isInContent','_setSuggestionRange','acceptAllSuggestions','markerName','isSelectable','getItems','get','ck-suggestion-marker-formatBlock','plugins','addRange','acceptSuggestion','formatGroupId','registerCustomCallback','type','clear','getSuggestion','pluginName','markBlockFormat','moveTargetPosition','reconvertMarker','formatInline','containsPosition','markerNameToElements','fromRange','change','consume','position','_isForcedDefaultExecutionBlock','dataDowncast','trackChangesCommand','PENDING_ACTION_SUGGESTION','enableCommand','upcast','change:_saved','low','never','originalSuggestionId','track-changes-adapter-already-set','elementStart','error-saving-suggestion-data-suggestion-discarded','ready','showSuggestionHighlights','TrackChangesEditing','_refreshSuggestionsChain','discardAllSuggestions','containsRange','suggestion:','addCommentThread','Users','_trackFormatChanges','getMultiRangeId','return','isExternal','_customCallbacks','getRanges','dataToMarker','map','catch','isInsideObject','addClass','from','model','chain','splitPosition','insertion:chain','getIntersection','commands','substr','rejected','fromCharCode','creator','insert','setSelection','differ','addMarker:suggestion','_suggestions','getSuggestionCallback','suggestionLoaded','getFirstRange','_suggestionFactory','elementEnd','editor','markerToData','_registerDefaultCallbacks','toJSON','authorName','authoredAt','isLocal','commentThread','howMany','addUser','formatBlock:discard','editingDowncast','insertion:join','detach','collaboration.channelId','isTouching','$graveyard','isUndo','_checkSuggestionCorrectness','high','getDifference','createPositionAfter','isLimit','selection','next','_joinWithAdjacentSuggestions','markMultiRangeBlockFormat','length','_cutOutSuggestionMarker','getShiftedBy','hasSuggestion','isEqual','split','_model','open','delete','root','deletion','_getAuthorFromId','locale','createSelection','_editor','ck-suggestion-marker--active','every','_addThreadToSuggestion','group','formatBlock:join','accepted','rootName','isCollapsed','after','createRange','_joinSuggestions','splice','set','isAfter'];(function(_0xf97f91,_0x392429){const _0x24dcb3=function(_0x5a1d14){while(--_0x5a1d14){_0xf97f91['push'](_0xf97f91['shift']());}};_0x24dcb3(++_0x392429);}(_0x3924,0xa5));const _0x24dc=function(_0xf97f91,_0x392429){_0xf97f91=_0xf97f91-0x0;let _0x24dcb3=_0x3924[_0xf97f91];return _0x24dcb3;};import{Plugin as _0x26e1e9,PendingActions as _0x1a4584}from'ckeditor5/src/core';import{LiveRange as _0x21503c}from'ckeditor5/src/engine';import{CKEditorError as _0x1cc2fb,uid as _0x1d47f5,priorities as _0x454d35,logWarning as _0x516b1e}from'ckeditor5/src/utils';import{toWidget as _0x361f99}from'ckeditor5/src/widget';import{Users as _0x4dc0cd,hashObject as _0x3a4b2e}from'ckeditor5-collaboration/src/collaboration-core';import _0x56f7bb from'./commands/trackchangescommand';import _0x48a906 from'./commands/acceptsuggestioncommand';import _0x4b54b7 from'./commands/discardsuggestioncommand';import _0x351c36 from'./commands/executeonallsuggestionscommand';import _0x570f62 from'./commands/executeonselectedsuggestionscommand';import _0xc1d4ef from'./suggestion';import _0x1320e4 from'./suggestiondescriptionfactory';import _0x4cc8a2 from'./integrations/alignment';import _0x18a863 from'./integrations/basicstyles';import _0x383923 from'./integrations/blockquote';import _0x3480f9 from'./integrations/ckbox';import _0x3cb85e from'./integrations/codeblock';import _0x465102 from'./integrations/comments';import _0x3b32bb from'./integrations/deletecommand';import _0x1ca3c5 from'./integrations/documentlist';import _0x55f938 from'./integrations/entercommand';import _0x2b8c44 from'./integrations/findandreplace';import _0x51f450 from'./integrations/font';import _0x2abe67 from'./integrations/formatpainter';import _0x2f35ff from'./integrations/heading';import _0x21d2c2 from'./integrations/highlight';import _0x4db61e from'./integrations/horizontalline';import _0x4286ba from'./integrations/htmlembed';import _0x44d5e3 from'./integrations/image';import _0x5175dd from'./integrations/imagereplace';import _0x54f50a from'./integrations/importword';import _0x5a3bf4 from'./integrations/indent';import _0x38ff8f from'./integrations/inputcommand';import _0x1b0910 from'./integrations/link';import _0x1e98ed from'./integrations/list';import _0x5f3e80 from'./integrations/listproperties';import _0x161176 from'./integrations/mediaembed';import _0x15d905 from'./integrations/mention';import _0x414cb6 from'./integrations/pagebreak';import _0x4ea145 from'./integrations/paragraph';import _0x5b4a9f from'./integrations/removeformat';import _0x3c40be from'./integrations/restrictededitingmode';import _0x5c8af9 from'./integrations/shiftentercommand';import _0xe79ef4 from'./integrations/standardeditingmode';import _0xa1b515 from'./integrations/style';import _0x19c27f from'./integrations/table';import _0x1a4457 from'./integrations/tablemergesplit';import _0x388674 from'./integrations/tableheadings';import _0x21b38b from'./integrations/tableclipboard';import _0xefaa29 from'./integrations/tablecolumnresize';import _0x43738b from'./integrations/template';import _0x561545 from'./integrations/tableofcontents';import _0x21fa89 from'./integrations/title';import _0x2d289a from'./integrations/undo';import{getTranslation as _0x53685f}from'./utils/common-translations';import _0x3515e7 from'./integrations/tablecaption';import _0x412403 from'./integrations/documentlistproperties';import _0x45f0a4 from'./integrations/tableproperties';export default class p extends _0x26e1e9{static get['requires'](){return[_0x24dc('0xdf'),_0x4dc0cd,_0x1a4584,_0x4cc8a2,_0x18a863,_0x383923,_0x3480f9,_0x3cb85e,_0x465102,_0x3b32bb,_0x1ca3c5,_0x412403,_0x55f938,_0x2b8c44,_0x51f450,_0x2abe67,_0x2f35ff,_0x21d2c2,_0x4db61e,_0x4286ba,_0x44d5e3,_0x5175dd,_0x54f50a,_0x5a3bf4,_0x38ff8f,_0x1b0910,_0x1e98ed,_0x5f3e80,_0x161176,_0x15d905,_0x414cb6,_0x4ea145,_0x5b4a9f,_0x3c40be,_0x5c8af9,_0xe79ef4,_0xa1b515,_0x19c27f,_0x1a4457,_0x388674,_0x3515e7,_0x21b38b,_0xefaa29,_0x561545,_0x45f0a4,_0x43738b,_0x21fa89,_0x2d289a];}static get[_0x24dc('0x24')](){return _0x24dc('0x3e');}constructor(_0x580a0b){function _0x55ab25(_0x5d8e7c){return _0x5d8e7c['map'](_0x1f4d01=>String[_0x24dc('0x59')](_0x1f4d01))['join']('');}super(_0x580a0b),this[_0x24dc('0x9b')](_0x24dc('0x137'),[]),this['on'](_0x24dc('0x107'),(_0x374f8b,_0x4204c8,_0x159871,_0x1141f2)=>{this[_0x24dc('0x86')][_0x24dc('0x2c')](()=>{for(const _0x40990d of[..._0x1141f2,..._0x159871])this['_model']['markers'][_0x24dc('0x130')](_0x40990d)&&_0x580a0b['editing'][_0x24dc('0x27')](_0x40990d);});}),this[_0x24dc('0x11')]=new _0x1320e4(this[_0x24dc('0x65')][_0x24dc('0x51')][_0x24dc('0xe')],this[_0x24dc('0x65')][_0x24dc('0x8c')]),this['_adapter']=null,this['_suggestionFactory']=new Dt(this[_0x24dc('0x65')]),this[_0x24dc('0x5f')]=new Map(),this['_commentsRepository']=_0x580a0b[_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0xdf')),this[_0x24dc('0xa0')]=new Set(),this[_0x24dc('0x86')]=this[_0x24dc('0x65')]['model'],this[_0x24dc('0xd5')]=new WeakMap(),this[_0x24dc('0x2f')]=!0x1,_0x580a0b[_0x24dc('0x12e')]['define']('trackChanges.trackFormatChanges',_0x24dc('0x10c')),this['_trackFormatChanges']=_0x580a0b['config'][_0x24dc('0x1a')](_0x24dc('0x139')),_0x580a0b[_0x24dc('0x12e')]['define'](_0x24dc('0xb4'),!0x0),this[_0x24dc('0xd')]=_0x580a0b[_0x24dc('0x12e')][_0x24dc('0x1a')](_0x24dc('0xb4')),this[_0x24dc('0x31')]=new _0x56f7bb(_0x580a0b,this[_0x24dc('0xa0')]),this[_0x55ab25([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55ab25([0x34,0x30,0x34,0x36,0x31,0x34,0x32,0x30]);}[_0x24dc('0xf6')](){const _0x2cb200=this[_0x24dc('0x65')];_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')]('editingDowncast')['markerToHighlight']({'model':_0x24dc('0xa5'),'view':_0x267138=>{const {id:_0x41d0f5,type:_0xead147}=this[_0x24dc('0xb8')](_0x267138[_0x24dc('0x17')]),_0x24d1a8=[_0x24dc('0xcb'),_0x24dc('0x10b')+_0xead147];let _0x220e2f=0xbb8;return this[_0x24dc('0x137')][_0x24dc('0xf4')](_0x267138[_0x24dc('0x17')])&&(_0x24d1a8['push'](_0x24dc('0x8f')),_0x220e2f=0xbc2),'deletion'==_0xead147&&(_0x220e2f+=0x5),{'classes':_0x24d1a8,'attributes':{'data-suggestion':_0x41d0f5},'priority':_0x220e2f};}}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x30'))['add'](_0x262904=>{_0x262904['on'](_0x24dc('0x5e'),(_0x5257b7,_0x5ca9b9,_0x5810cc)=>{if(!_0x5810cc[_0x24dc('0x2')][_0x24dc('0x3d')])return;const _0x2f6afa=_0x5ca9b9[_0x24dc('0xb7')];if(!_0x2f6afa)return;const _0x3c7d4d=_0x5810cc[_0x24dc('0x11a')][_0x24dc('0xe0')](_0x2f6afa);_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')][_0x24dc('0xe4')](_0x2f6afa)&&_0x3c7d4d&&!_0x3c7d4d[_0x24dc('0x125')]('widget')&&_0x3c7d4d['is']('containerElement')&&_0x361f99(_0x3c7d4d,_0x5810cc[_0x24dc('0x134')]);},{'priority':_0x24dc('0x78')});}),_0x2cb200['conversion'][_0x24dc('0x9e')](_0x24dc('0x30'))[_0x24dc('0xce')]({'model':'suggestion','view':(_0xd17f16,_0x31b9b1)=>{if(!_0x31b9b1['options'][_0x24dc('0x3d')])return null;const {type:_0x54526c}=this['_splitMarkerName'](_0xd17f16[_0x24dc('0x17')]);return{'classes':[_0x24dc('0xcb'),_0x24dc('0x10b')+_0x54526c],'priority':0xbb8};}});const _0x46ab16=({showActiveMarkers:_0x139c75=!0x0}={})=>(_0x493ce5,_0xb8a9c8,_0x39d046)=>{if(!_0xb8a9c8[_0x24dc('0xb7')])return;if(_0xb8a9c8[_0x24dc('0xb7')]['is'](_0x24dc('0x7c')))return void _0x39d046[_0x24dc('0x109')][_0x24dc('0x2d')](_0xb8a9c8[_0x24dc('0xb7')],_0x493ce5[_0x24dc('0x113')]);const _0x6c81eb=_0x39d046['mapper'][_0x24dc('0xe0')](_0xb8a9c8[_0x24dc('0xb7')]);if(!(_0xb8a9c8['item']['is'](_0x24dc('0x13a'))&&_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')][_0x24dc('0x104')](_0xb8a9c8[_0x24dc('0xb7')])&&!_0x6c81eb[_0x24dc('0x125')]('addHighlight')))return;const {id:_0x5945a8}=this['_splitMarkerName'](_0xb8a9c8[_0x24dc('0x17')]);_0x39d046[_0x24dc('0x134')][_0x24dc('0x4f')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x6c81eb),_0x39d046[_0x24dc('0x134')][_0x24dc('0x132')](_0x24dc('0xb3'),_0x5945a8,_0x6c81eb),_0x39d046[_0x24dc('0x11a')][_0x24dc('0xa')](_0x6c81eb,_0xb8a9c8['markerName']),_0x139c75&&(this[_0x24dc('0x137')]['includes'](_0xb8a9c8['markerName'])?_0x39d046['writer'][_0x24dc('0x4f')](_0x24dc('0x8f'),_0x6c81eb):_0x39d046[_0x24dc('0x134')][_0x24dc('0x12c')](_0x24dc('0x8f'),_0x6c81eb));for(const _0x421026 of _0x2cb200[_0x24dc('0x51')]['createRangeIn'](_0xb8a9c8['item'])[_0x24dc('0x19')]())_0x39d046[_0x24dc('0x109')]['consume'](_0x421026,_0x493ce5[_0x24dc('0x113')]);_0x39d046['consumable'][_0x24dc('0x2d')](_0xb8a9c8[_0x24dc('0xb7')],_0x493ce5[_0x24dc('0x113')]);};_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')]('dataDowncast')[_0x24dc('0x122')](_0x4f892b=>{_0x4f892b['on'](_0x24dc('0xff'),(_0x379671,_0x2225a2,_0x539c5c)=>{_0x539c5c['options'][_0x24dc('0x3d')]&&_0x46ab16({'showActiveMarkers':!0x1})(_0x379671,_0x2225a2,_0x539c5c);},{'priority':_0x24dc('0x11f')});}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x30'))[_0x24dc('0x66')]({'model':_0x24dc('0xa5'),'view':(_0x48df26,_0x5435d5)=>_0x5435d5['options'][_0x24dc('0x3d')]?null:{'group':'suggestion','name':_0x48df26[_0x24dc('0x57')](0xb)}}),_0x2cb200[_0x24dc('0x118')]['for']('upcast')[_0x24dc('0x12d')]({'view':{'name':_0x24dc('0xa5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ed07e,{writer:_0x31290f})=>{let _0x529533=_0x24dc('0x42')+_0x5ed07e[_0x24dc('0xdd')]('suggestion-type')+':'+_0x5ed07e[_0x24dc('0xdd')]('id');return _0x5ed07e[_0x24dc('0xdd')](_0x24dc('0xbd'))&&(_0x529533+=':'+_0x5ed07e[_0x24dc('0xdd')]('marker-count')),_0x31290f[_0x24dc('0xbb')](_0x24dc('0xab'),{'data-name':_0x529533});}}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x34'))[_0x24dc('0x4b')]({'view':_0x24dc('0xa5')}),_0x2cb200['conversion'][_0x24dc('0x9e')](_0x24dc('0x70'))[_0x24dc('0x122')](_0xf5699d=>{_0xf5699d['on'](_0x24dc('0xff'),_0x46ab16(),{'priority':'high'});}),_0x2cb200[_0x24dc('0x118')][_0x24dc('0x9e')](_0x24dc('0x70'))['add'](_0x2eedf3=>{_0x2eedf3['on']('removeMarker:suggestion:formatBlock',(_0x4c7416,_0x418ab4,_0x5e4bcf)=>{const _0x4df808=_0x5e4bcf[_0x24dc('0x11a')][_0x24dc('0x2a')](_0x418ab4[_0x24dc('0x17')]);if(_0x4df808)for(const _0x370d0a of _0x4df808)_0x370d0a['getCustomProperty'](_0x24dc('0x11e'))||(_0x5e4bcf[_0x24dc('0x134')][_0x24dc('0x12c')]([_0x24dc('0xcb'),_0x24dc('0x1b'),_0x24dc('0x8f')],_0x370d0a),_0x5e4bcf[_0x24dc('0x134')]['removeAttribute'](_0x24dc('0xb3'),_0x370d0a),_0x5e4bcf[_0x24dc('0x11a')][_0x24dc('0x10f')](_0x370d0a,_0x418ab4[_0x24dc('0x17')]));},{'priority':_0x24dc('0x78')});}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0xbf')](_0x2f39fa=>{let _0x19a128=!0x1;const _0x2ed584=Array[_0x24dc('0x50')](_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0x5d')][_0x24dc('0xee')]()),_0x2d11f5=new Set();for(const {name:_0x49448a,data:_0x302419}of _0x2ed584){const {group:_0x21e7d5,type:_0x4752f1,id:_0x1463d4}=this[_0x24dc('0xb8')](_0x49448a);if(_0x24dc('0xa5')!==_0x21e7d5)continue;const _0x21d844=this['_suggestions']['get'](_0x1463d4);if(null!=_0x302419[_0x24dc('0x1')]){_0x24dc('0x28')==_0x4752f1&&(_0x19a128=_0x19a128||Mt(_0x302419[_0x24dc('0x1')],_0x49448a,_0x2f39fa,_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')]));if(_0x302419[_0x24dc('0x1')]['isCollapsed']||_0x24dc('0x75')==_0x302419[_0x24dc('0x1')][_0x24dc('0x89')][_0x24dc('0x95')]||_0x24dc('0x121')==_0x4752f1&&!Nt(_0x302419['newRange'])||'deletion'==_0x4752f1&&!(!_t(_0x28cc94=_0x302419[_0x24dc('0x1')])&&!function(_0x39e6e6){return _0x39e6e6['start'][_0x24dc('0x117')]==_0x39e6e6[_0x24dc('0xa1')][_0x24dc('0x111')]&&_0x39e6e6['start']['isAtEnd'];}(_0x28cc94)))_0x2f39fa[_0x24dc('0x13')](_0x49448a),_0x19a128=!0x0;else{if(!_0x21d844||!_0x21d844[_0x24dc('0x14')])continue;_0x2d11f5['add'](_0x21d844);}}}var _0x28cc94;return _0x2d11f5[_0x24dc('0xc7')]>0x0&&(_0x19a128=!!this['_joinWithAdjacentSuggestions'](_0x2d11f5)||_0x19a128),_0x19a128;}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0xbf')](_0x36899b=>{let _0x73d4d=!0x1;for(const _0x6d6518 of _0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0x5d')][_0x24dc('0xa2')]()){if(_0x24dc('0x5b')!=_0x6d6518[_0x24dc('0x21')])continue;const _0x441ad3=_0x6d6518[_0x24dc('0x2e')]['getShiftedBy'](_0x6d6518['length']);if(_0x441ad3[_0x24dc('0xcf')])for(const _0x51a4ba of this[_0x24dc('0x5f')]['values']()){if(_0x51a4ba[_0x24dc('0x140')]||!_0x51a4ba[_0x24dc('0x14')])continue;if('formatBlock'!=_0x51a4ba[_0x24dc('0x21')])continue;const _0x4f21d6=_0x51a4ba[_0x24dc('0x62')]();if(_0x4f21d6['start']['parent']!=_0x4f21d6[_0x24dc('0xa1')]['parent']&&_0x4f21d6['end'][_0x24dc('0x84')](_0x6d6518[_0x24dc('0x2e')])){const _0x31310c=_0x2cb200[_0x24dc('0x51')]['createRange'](_0x4f21d6[_0x24dc('0x106')],_0x441ad3);_0x36899b[_0x24dc('0xdb')](_0x51a4ba[_0x24dc('0x9f')](),{'range':_0x31310c}),_0x73d4d=!0x0;}}}return _0x73d4d;}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xcd')]['on'](_0x24dc('0x13e'),(_0xa75b9c,_0x24b138,_0x44b085)=>{if(null==_0x44b085){const {id:_0x2dedba}=this['_splitMarkerName'](_0x24b138[_0x24dc('0x113')]),_0x338a4d=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x2dedba);_0x338a4d&&_0x338a4d['addMarkerName'](_0x24b138[_0x24dc('0x113')]);}}),_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')]['on'](_0x24dc('0xfe'),()=>{const _0x3941fc=Array['from'](_0x2cb200[_0x24dc('0x51')][_0x24dc('0xaf')][_0x24dc('0x5d')][_0x24dc('0xee')]())[_0x24dc('0xa3')](_0x7dd970=>_0x24dc('0xa5')===this[_0x24dc('0xb8')](_0x7dd970[_0x24dc('0x113')])[_0x24dc('0x92')]);if(0x0===_0x3941fc[_0x24dc('0x80')])return;_0x3941fc[_0x24dc('0xfd')]((_0x1873c1,_0x1e4a88)=>{const _0x3abb5e=_0x1873c1['data'][_0x24dc('0x10')],_0x118f07=_0x1e4a88[_0x24dc('0x10d')][_0x24dc('0x10')];return null===_0x3abb5e&&null===_0x118f07?0x0:null===_0x3abb5e&&null!==_0x118f07?-0x1:null!==_0x3abb5e&&null===_0x118f07?0x1:_0x3abb5e['start']['isBefore'](_0x118f07['start'])?-0x1:0x1;});const _0x51c154=new Set(),_0x5886fd=new Set();for(const {name:_0x166d63,data:_0x421436}of _0x3941fc){const {id:_0x357b9b}=this[_0x24dc('0xb8')](_0x166d63);if(null===_0x421436[_0x24dc('0x10')]){const _0x2c7d17=this['_handleNewSuggestionMarker'](_0x166d63);_0x5886fd[_0x24dc('0x122')](_0x2c7d17);}else{const _0x55db85=this[_0x24dc('0x5f')]['get'](_0x357b9b);null!==_0x421436[_0x24dc('0x1')]||_0x55db85[_0x24dc('0x14')]?(_0x51c154[_0x24dc('0x122')](_0x55db85['head']),_0x5886fd['add'](_0x55db85)):this[_0x24dc('0xc2')](_0x55db85);}}_0x5886fd[_0x24dc('0xc7')]>0x0&&this[_0x24dc('0x3f')](_0x5886fd);for(const _0x5665fb of _0x51c154)this['fire']('suggestionChanged',_0x5665fb);}),_0x2cb200[_0x24dc('0x51')]['on']('applyOperation',(_0x4561a1,_0x4d7f7d)=>{const _0x526059=_0x4d7f7d[0x0];if(!this[_0x24dc('0x5f')][_0x24dc('0xc7')])return;if(!_0x526059[_0x24dc('0x141')])return;if(_0x526059[_0x24dc('0x108')][_0x24dc('0x76')]||!_0x526059['batch'][_0x24dc('0x6b')])return;let _0x168b2c,_0x21f7a7;switch(_0x526059[_0x24dc('0x21')]){case'insert':_0x168b2c=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0x526059[_0x24dc('0x2e')]),_0x21f7a7=_0x168b2c[_0x24dc('0x82')](_0x526059[_0x24dc('0x6d')]);break;case _0x24dc('0x85'):_0x168b2c=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0x526059[_0x24dc('0x53')]),_0x21f7a7=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0x526059[_0x24dc('0x26')]);break;case _0x24dc('0xc8'):_0x168b2c=_0x2cb200[_0x24dc('0x51')]['createPositionAt'](_0x526059[_0x24dc('0xbe')]),_0x21f7a7=_0x168b2c['getShiftedBy'](_0x526059[_0x24dc('0x6d')]);break;default:return;}const _0x2f3adf=_0x2cb200[_0x24dc('0x51')][_0x24dc('0x98')](_0x168b2c,_0x21f7a7);_0x2cb200[_0x24dc('0x51')][_0x24dc('0x2c')](()=>{for(const {suggestion:_0x48ff58,meta:_0x2f36a0}of this[_0x24dc('0xa7')](_0x2f3adf)){if(_0x48ff58['isMultiRange'])continue;if(_0x24dc('0x28')==_0x48ff58[_0x24dc('0x21')])continue;const _0x276a5c=_0x48ff58['data']&&_0x48ff58[_0x24dc('0x10d')][_0x24dc('0xe6')];(_0x24dc('0x121')!=_0x48ff58[_0x24dc('0x21')]||_0x24dc('0x85')==_0x526059[_0x24dc('0x21')]&&!_0x276a5c)&&(_0x2f36a0['containsRangeInObject']||'insertion'==_0x48ff58[_0x24dc('0x21')]&&_0x2f36a0[_0x24dc('0x12f')]||_0x48ff58[_0x24dc('0x62')]()[_0x24dc('0x41')](_0x2f3adf)&&this[_0x24dc('0x138')](_0x48ff58,_0x168b2c,_0x21f7a7));}});},{'priority':'lowest'}),_0x2cb200[_0x24dc('0x51')]['on']('deleteContent',(_0xc394b6,_0x1f8394)=>{const _0x21d7c3=_0x1f8394[0x0],_0x3f2390=_0x1f8394[0x1];if(_0x3f2390&&_0x3f2390[_0x24dc('0x11c')])return;if(this[_0x24dc('0x2f')])return;if(!this[_0x24dc('0x31')][_0x24dc('0xe9')])return;if(_0x21d7c3['isCollapsed'])return;const _0x348616=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')],{start:_0x2c56ac,end:_0x328e05}=_0x21d7c3['getFirstRange'](),_0x499af7=_0x2c56ac[_0x24dc('0xa8')]&&_0x348616[_0x24dc('0x7b')](_0x2c56ac['nodeAfter'])?null:_0x348616[_0x24dc('0x6')](_0x2c56ac,'forward'),_0x400f27=_0x328e05[_0x24dc('0x111')]&&_0x348616[_0x24dc('0x7b')](_0x328e05['nodeBefore'])?null:_0x348616[_0x24dc('0x6')](_0x328e05,_0x24dc('0x13b')),_0x24b096=_0x2cb200[_0x24dc('0x51')][_0x24dc('0x98')](_0x499af7?_0x499af7[_0x24dc('0x106')]:_0x2c56ac,_0x400f27?_0x400f27[_0x24dc('0xa1')]:_0x328e05);_0x2cb200[_0x24dc('0x51')]['change'](_0x2d6dbd=>{this[_0x24dc('0x129')](_0x24b096);const _0x148a81=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')]['getNearestSelectionRange'](_0x24b096[_0x24dc('0x106')]);_0x21d7c3['is']('documentSelection')?_0x2d6dbd[_0x24dc('0x5c')](_0x148a81):_0x21d7c3['setTo'](_0x148a81);}),_0xc394b6[_0x24dc('0xf9')]();},{'priority':_0x454d35[_0x24dc('0xc5')]+0xa}),_0x2cb200[_0x24dc('0x51')]['on']('insertContent',(_0x174049,_0x1737c3)=>{const _0x3482c0=_0x1737c3[_0x1737c3['length']-0x1];_0x3482c0&&_0x3482c0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x24dc('0xe9')]&&(_0x2cb200[_0x24dc('0x51')][_0x24dc('0x2c')](()=>{let _0x256ca8=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xc3')](_0x1737c3[0x0],_0x1737c3[0x1],_0x1737c3[0x2],{'forceDefaultExecution':!0x0});if(!_0x256ca8)return;_0x174049[_0x24dc('0x47')]=_0x256ca8[_0x24dc('0xd7')]();const _0xcb3f7d=_0x256ca8[_0x24dc('0xa1')][_0x24dc('0x111')],_0x33ab16=_0x2cb200[_0x24dc('0x51')][_0x24dc('0xe')];_0xcb3f7d&&_0x33ab16['isBlock'](_0xcb3f7d)&&!_0x33ab16[_0x24dc('0xe4')](_0xcb3f7d)&&(_0x256ca8=_0x2cb200['model']['createRange'](_0x256ca8['start'],_0x2cb200[_0x24dc('0x51')][_0x24dc('0xba')](_0xcb3f7d,_0x24dc('0xa1')))),this[_0x24dc('0xd9')](_0x256ca8);}),_0x174049['stop']());},{'priority':_0x24dc('0x78')}),this['editor'][_0x24dc('0x56')]['add'](_0x24dc('0x105'),this[_0x24dc('0x31')]),this[_0x24dc('0x33')](_0x24dc('0x105'));const _0x30e5e9=new _0x48a906(_0x2cb200,this[_0x24dc('0x5f')]);_0x2cb200[_0x24dc('0x56')][_0x24dc('0x122')](_0x24dc('0x1e'),_0x30e5e9),this[_0x24dc('0x33')](_0x24dc('0x1e'));const _0x1e6825=new _0x4b54b7(_0x2cb200,this['_suggestions']);_0x2cb200[_0x24dc('0x56')][_0x24dc('0x122')](_0x24dc('0xf8'),_0x1e6825),this['enableCommand'](_0x24dc('0xf8')),_0x2cb200[_0x24dc('0x56')]['add']('acceptAllSuggestions',new _0x351c36(_0x2cb200,_0x30e5e9,this[_0x24dc('0x5f')])),this[_0x24dc('0x33')](_0x24dc('0x16')),_0x2cb200[_0x24dc('0x56')]['add'](_0x24dc('0x40'),new _0x351c36(_0x2cb200,_0x1e6825,this[_0x24dc('0x5f')])),this[_0x24dc('0x33')](_0x24dc('0x40')),_0x2cb200[_0x24dc('0x56')]['add'](_0x24dc('0xc1'),new _0x570f62(_0x2cb200,_0x30e5e9,this[_0x24dc('0x5f')])),this[_0x24dc('0x33')](_0x24dc('0xc1')),_0x2cb200[_0x24dc('0x56')][_0x24dc('0x122')]('discardSelectedSuggestions',new _0x570f62(_0x2cb200,_0x1e6825,this['_suggestions'])),this[_0x24dc('0x33')]('discardSelectedSuggestions');const _0xcac75c=_0x2cb200[_0x24dc('0x1c')]['get']('CommentsRepository');this[_0x24dc('0x0')](_0xcac75c,_0x24dc('0xe3'),(_0x5b8a0a,{threadId:_0x25219d})=>{const _0x1dc7c3=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x25219d);_0x1dc7c3&&_0x1dc7c3[_0x24dc('0x6c')]&&0x1===_0x1dc7c3[_0x24dc('0x6c')][_0x24dc('0x80')]&&this[_0x24dc('0xd2')](_0x25219d,{'hasComments':!0x0});},{'priority':'low'}),this[_0x24dc('0x0')](_0xcac75c,_0x24dc('0xb2'),(_0x41a81a,{threadId:_0x7c1b02})=>{const _0x2ba278=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x7c1b02);_0x2ba278&&_0x2ba278[_0x24dc('0x6c')]&&!_0x2ba278[_0x24dc('0x6c')][_0x24dc('0x80')]&&this[_0x24dc('0xd2')](_0x7c1b02,{'hasComments':!0x1});},{'priority':_0x24dc('0x36')});}set[_0x24dc('0xed')](_0x4133b9){if(this[_0x24dc('0x11b')])throw new _0x1cc2fb(_0x24dc('0x39'),this);this['_adapter']=_0x4133b9;}get[_0x24dc('0xed')](){return this['_adapter'];}[_0x24dc('0xf3')]({skipNotAttached:_0x2e66ba=!0x1,toJSON:_0x18328e=!0x1}={}){const _0x1c6315=[];for(const _0x551c95 of this['_suggestions']['values']())_0x2e66ba&&!_0x551c95['isInContent']||_0x1c6315[_0x24dc('0xb6')](_0x551c95);return _0x18328e?_0x1c6315[_0x24dc('0x4c')](_0x467c1e=>_0x467c1e[_0x24dc('0x68')]()):_0x1c6315;}['getSuggestion'](_0x334e85){const _0x21be00=this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x334e85);if(!_0x21be00)throw new _0x1cc2fb(_0x24dc('0xf2'),this);return _0x21be00;}[_0x24dc('0x83')](_0x5cea10){return this[_0x24dc('0x5f')][_0x24dc('0x130')](_0x5cea10);}['addSuggestionData'](_0x4bb200){const {authorId:_0x41ff85,id:_0x163bbc,attributes:_0x8fe42a}=_0x4bb200,[_0x9786e6,_0x172552]=_0x4bb200[_0x24dc('0x21')]['split'](':'),_0xbc476a=this['_suggestions']['get'](_0x163bbc)||this['_createSuggestion'](_0x9786e6,_0x172552,_0x163bbc,_0x41ff85,_0x8fe42a);if(this['_addThreadToSuggestion'](_0xbc476a),this[_0x24dc('0x77')](_0xbc476a,_0x9786e6,_0x172552||null,_0x41ff85),_0xbc476a[_0x24dc('0xb0')]=_0x4bb200[_0x24dc('0xb0')],_0x8fe42a&&_0x8fe42a[_0x24dc('0x128')]){const _0x2a9842=_0x8fe42a[_0x24dc('0x128')],_0x40f8fb=this[_0x24dc('0x13c')](_0x2a9842[_0x24dc('0x69')]);_0xbc476a[_0x24dc('0x6a')]=_0x2a9842[_0x24dc('0xb0')],_0xbc476a[_0x24dc('0xec')]=_0x40f8fb,_0xbc476a[_0x24dc('0x48')]=!0x0;}else _0xbc476a[_0x24dc('0x6a')]=_0x4bb200[_0x24dc('0xb0')];switch(_0x4bb200[_0x24dc('0x10d')]&&(_0xbc476a[_0x24dc('0x10d')]=_0x4bb200[_0x24dc('0x10d')]),_0x4bb200[_0x24dc('0x131')]&&(_0xbc476a[_0x24dc('0x131')]=_0x4bb200[_0x24dc('0x131')]),this[_0x24dc('0x11b')]&&this[_0x24dc('0x11b')][_0x24dc('0x110')]||(_0xbc476a[_0x24dc('0xa6')]=!0x0),this[_0x24dc('0xd5')][_0x24dc('0x1a')](_0xbc476a)){case'notReady':this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0xbc476a,_0x24dc('0x115'));break;case _0x24dc('0x114'):_0xbc476a['isInContent']?(this[_0x24dc('0xd5')]['set'](_0xbc476a,_0x24dc('0x3c')),this[_0x24dc('0x5')]('suggestionLoaded',_0xbc476a)):this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0xbc476a,_0x24dc('0xa4'));}return _0xbc476a;}[_0x24dc('0x1e')](_0x5e4ddf){this['forceDefaultExecution'](()=>{this[_0x24dc('0x65')][_0x24dc('0x51')][_0x24dc('0x2c')](()=>{for(const _0xaf53a0 of _0x5e4ddf[_0x24dc('0xd3')]())_0xaf53a0[_0x24dc('0xeb')]();});});}['discardSuggestion'](_0x5e2afc){this[_0x24dc('0x11c')](()=>{this[_0x24dc('0x65')]['model']['change'](()=>{for(const _0x1d5ddb of _0x5e2afc[_0x24dc('0xd3')]())_0x1d5ddb[_0x24dc('0x100')]();});});}[_0x24dc('0x33')](_0x13123f,_0x2c2172){const _0xef5b6b=this[_0x24dc('0x65')]['commands'][_0x24dc('0x1a')](_0x13123f);if(!_0xef5b6b)throw new _0x1cc2fb(_0x24dc('0x12a'),this,{'commandName':_0x13123f});this[_0x24dc('0xa0')][_0x24dc('0x122')](_0xef5b6b),_0x2c2172&&_0xef5b6b['on'](_0x24dc('0x9d'),(_0x484d37,_0xf1e3f2)=>{this['trackChangesCommand'][_0x24dc('0xe9')]&&(this[_0x24dc('0x2f')]||_0xf1e3f2[_0x24dc('0x80')]>0x0&&_0xf1e3f2[_0xf1e3f2[_0x24dc('0x80')]-0x1]&&_0xf1e3f2[_0xf1e3f2[_0x24dc('0x80')]-0x1][_0x24dc('0x11c')]||(_0x2c2172((..._0x268940)=>_0xef5b6b[_0x24dc('0x9d')](..._0x268940,{'forceDefaultExecution':!0x0}),..._0xf1e3f2),_0x484d37[_0x24dc('0xf9')]()));},{'priority':_0x24dc('0x78')});}[_0x24dc('0x11c')](_0x571bc3){let _0x1f1828,_0x11cd45;const _0x5648cf=this['_isForcedDefaultExecutionBlock'];this[_0x24dc('0x2f')]=!0x0;try{_0x1f1828=_0x571bc3();}catch(_0x5ca1e1){_0x11cd45=_0x5ca1e1;}return _0x5648cf||(this[_0x24dc('0x2f')]=!0x1),_0x11cd45&&_0x1cc2fb[_0x24dc('0x13d')](_0x11cd45,this),_0x1f1828;}[_0x24dc('0xd9')](_0x4fcc30,_0x12de1a=null,_0x143d8b={}){if(_0x4fcc30[_0x24dc('0x96')])return null;const _0x55d6fd=this[_0x24dc('0x65')]['plugins']['get']('Users')['me'];for(const {suggestion:_0x41238b,meta:_0x23e6bf}of this['_findSuggestions'](_0x4fcc30,_0x24dc('0xb9')))if(_0x23e6bf[_0x24dc('0x12f')]){if(!_0x23e6bf[_0x24dc('0xcc')]){if(!this[_0x24dc('0xd')]&&_0x23e6bf['containsRangeInObject'])continue;return _0x41238b;}if(_0x12de1a==_0x41238b[_0x24dc('0xb')]){const _0xe50fc9=_0x41238b['getFirstRange']();return _0xe50fc9['start']['isEqual'](_0x4fcc30[_0x24dc('0xa1')])?this[_0x24dc('0x15')](_0x41238b,this['_model'][_0x24dc('0x98')](_0x4fcc30[_0x24dc('0x106')],_0xe50fc9[_0x24dc('0xa1')])):this[_0x24dc('0x15')](_0x41238b,this['_model'][_0x24dc('0x98')](_0xe50fc9['start'],_0x4fcc30[_0x24dc('0xa1')])),_0x41238b;}}const _0x437f7e=_0x1d47f5(),_0x951368=_0x55d6fd['id'],_0x27036b=_0x12de1a?'insertion:'+_0x12de1a:_0x24dc('0xb9'),_0x1d7786=this['_setSuggestionData']({'id':_0x437f7e,'type':_0x27036b,'createdAt':new Date(),'authorId':_0x951368,'attributes':_0x143d8b});return this[_0x24dc('0x116')](_0x27036b,_0x437f7e,_0x951368,_0x4fcc30),_0x1d7786;}[_0x24dc('0xf')](_0x40b581,_0x470e42=_0x24dc('0xf7'),_0xc5ecab={}){const _0xdb17c6=this[_0x24dc('0x65')][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0x44'))['me'],_0x3f7843=this[_0x24dc('0x63')][_0x24dc('0x60')]('insertion',_0x470e42,_0x24dc('0x119'));for(const _0x5d3ec9 of this['getSuggestions']())if(_0x5d3ec9[_0x24dc('0xec')]['id']==_0xdb17c6['id']&&_0x24dc('0xb9')==_0x5d3ec9[_0x24dc('0x21')]&&_0x5d3ec9[_0x24dc('0xb')]==_0x470e42&&(_0x3f7843(_0x5d3ec9[_0x24dc('0x4a')](),_0x40b581)||_0x3f7843(_0x40b581,_0x5d3ec9['getRanges']()))){for(const _0x1a0144 of _0x40b581)_0x5d3ec9[_0x24dc('0x1d')](_0x1a0144);return _0x5d3ec9;}if(this['_mergeNestedSuggestions'])for(const _0x2ed075 of _0x40b581)for(const {suggestion:_0x5b6ac6,meta:_0x1bacba}of this[_0x24dc('0xa7')](_0x2ed075,_0x24dc('0xb9'))){if(!_0x1bacba['isOwn'])continue;let _0x4b686c=!0x0;for(const _0xf26cff of _0x5b6ac6['getRanges']())for(const _0x2d47bb of _0x40b581)if(!_0xf26cff[_0x24dc('0x41')](_0x2d47bb)){_0x4b686c=!0x1;break;}if(_0x4b686c)return _0x5b6ac6;}const _0x168497=_0x1d47f5(),_0xfc2181=_0xdb17c6['id'],_0x5e69f1=_0x24dc('0xea')+_0x470e42,_0x37ef2c=this[_0x24dc('0xd0')]({'id':_0x168497,'type':_0x5e69f1,'createdAt':new Date(),'authorId':_0xfc2181,'attributes':_0xc5ecab});for(const _0x25bbb5 of _0x40b581)this['_addSuggestionMarker'](_0x5e69f1,_0x168497,_0xfc2181,_0x25bbb5,_0xc1d4ef['getMultiRangeId']());return _0x37ef2c;}['markInlineFormat'](_0x2bceee,_0x40a6d9,_0x28eb13=null,_0x290c4a={}){if(_0x28eb13=_0x28eb13||$t(_0x40a6d9),_0x2bceee[_0x24dc('0x96')])return null;if(_0x24dc('0x37')===this[_0x24dc('0x45')]){const _0x3d8a93=this['_suggestionFactory'][_0x24dc('0x60')](_0x24dc('0x28'),_0x28eb13,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x3d8a93([_0x2bceee],_0x40a6d9,_0x290c4a)),null;}const _0x481057=this[_0x24dc('0x65')]['plugins'][_0x24dc('0x1a')](_0x24dc('0x44'))['me'],_0x2797a0=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x5b316a,meta:_0x4ae5c0}of this[_0x24dc('0xa7')](_0x2bceee,_0x24dc('0xb9')))_0x4ae5c0[_0x24dc('0x12f')]&&!_0x4ae5c0[_0x24dc('0x4e')]&&_0x2797a0[_0x24dc('0xb6')](..._0x5b316a['getRanges']());const _0x152e92=function(_0x4bb97e,_0x82cafa){const _0x566dc2=[];for(const _0x6cc6f6 of _0x82cafa){const _0x430d3e=_0x4bb97e['getIntersection'](_0x6cc6f6);_0x430d3e&&_0x566dc2['push'](_0x430d3e);}return _0x566dc2;}(_0x2bceee,_0x2797a0),_0x57457b=function(_0x2eaf39,_0x429f51){const _0x18f0ac=[_0x2eaf39];for(const _0x55efa4 of _0x429f51){let _0x2c233e=0x0;for(;_0x2c233e<_0x18f0ac[_0x24dc('0x80')];){const _0x3cda39=_0x18f0ac[_0x2c233e][_0x24dc('0x79')](_0x55efa4);_0x18f0ac[_0x24dc('0x9a')](_0x2c233e,0x1,..._0x3cda39),_0x2c233e+=_0x3cda39[_0x24dc('0x80')];}}return _0x18f0ac;}(_0x2bceee,_0x2797a0);_0x152e92[_0x24dc('0x80')]&&this[_0x24dc('0x86')][_0x24dc('0x2c')](()=>{for(const _0x4f7210 of _0x152e92){const _0x44db77=this[_0x24dc('0x63')][_0x24dc('0x60')]('formatInline',_0x28eb13,_0x24dc('0xeb'));this[_0x24dc('0x11c')](()=>_0x44db77([_0x4f7210],_0x40a6d9,_0x290c4a));}});for(const _0x38a0fa of _0x57457b){let _0x1ff200=null,_0x32658b=_0x38a0fa[_0x24dc('0x106')],_0x141538=_0x38a0fa[_0x24dc('0xa1')];for(const {suggestion:_0x50eb1c,meta:_0xc30c48}of this['_findSuggestions'](_0x38a0fa,_0x24dc('0x28'))){if(!_0xc30c48[_0x24dc('0x12f')])continue;if(_0x50eb1c[_0x24dc('0xb')]!=_0x28eb13)continue;const _0x4a1711=_0x50eb1c[_0x24dc('0x62')]();if(_0x4a1711[_0x24dc('0x41')](_0x38a0fa,!0x0))return null;_0x32658b=_0x32658b[_0x24dc('0xac')](_0x4a1711[_0x24dc('0x106')])?_0x32658b:_0x4a1711[_0x24dc('0x106')],_0x141538=_0x141538[_0x24dc('0x9c')](_0x4a1711[_0x24dc('0xa1')])?_0x141538:_0x4a1711[_0x24dc('0xa1')],_0x1ff200?_0x4a1711[_0x24dc('0x106')][_0x24dc('0xac')](_0x1ff200[_0x24dc('0x62')]()[_0x24dc('0x106')])?(_0x1ff200[_0x24dc('0xf5')](),_0x1ff200=_0x50eb1c):_0x50eb1c[_0x24dc('0xf5')]():_0x1ff200=_0x50eb1c;}const _0x23b03a=this['_model']['createRange'](_0x32658b,_0x141538);if(_0x1ff200)this[_0x24dc('0x15')](_0x1ff200,_0x23b03a);else{const _0x1a659e=_0x1d47f5(),_0x3168df=_0x481057['id'];this[_0x24dc('0xd0')]({'id':_0x1a659e,'type':_0x24dc('0x136')+_0x28eb13,'data':_0x40a6d9,'createdAt':new Date(),'authorId':_0x3168df,'attributes':_0x290c4a}),this[_0x24dc('0x116')](_0x24dc('0x136')+_0x28eb13,_0x1a659e,_0x3168df,_0x23b03a);}}return null;}[_0x24dc('0x25')](_0x564ecc,_0x2c67f0,_0x23c4f3=[],_0x4da675=null,_0x3f446a={}){_0x2c67f0[_0x24dc('0x1f')]||(_0x2c67f0['formatGroupId']=_0x2c67f0[_0x24dc('0x8')]),_0x2c67f0[_0x24dc('0xe6')]=_0x564ecc['is'](_0x24dc('0x127')),_0x4da675=_0x4da675||$t(_0x2c67f0);const _0x1c7700=_0x23c4f3[_0x24dc('0x4c')](_0x257bd8=>Rt(_0x257bd8,this['_model'])),_0x43db0b=_0x564ecc['is'](_0x24dc('0x127'))?_0x564ecc:Rt(_0x564ecc,this[_0x24dc('0x86')]);if('never'===this[_0x24dc('0x45')]){const _0x1acc0d=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x121'),_0x4da675,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x1acc0d([_0x43db0b],_0x2c67f0,_0x3f446a)),null;}_0x1c7700[_0x24dc('0xb6')](_0x43db0b);let _0x55c1f4=!0x0;for(const _0x232ffb of _0x1c7700)if(!this['_rangeIsInLocalUserInsertion'](_0x232ffb)){_0x55c1f4=!0x1;break;}if(_0x55c1f4&&_0x24dc('0x102')!==this[_0x24dc('0x45')]){const _0x355a27=this['_suggestionFactory'][_0x24dc('0x60')]('formatBlock',_0x4da675,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x355a27([_0x43db0b],_0x2c67f0,_0x3f446a)),null;}let _0x4e1b2d=null,_0x3fc982=_0x43db0b['start'],_0x74731d=_0x43db0b[_0x24dc('0xa1')];for(const {suggestion:_0x53c0e4,meta:_0x4471d9}of this[_0x24dc('0xa7')](_0x43db0b,_0x24dc('0x121'))){if(!_0x4471d9['isOwn']||_0x4471d9['isNextTo']||_0x4471d9[_0x24dc('0xd4')]||_0x4471d9[_0x24dc('0x4e')])continue;if(_0x53c0e4[_0x24dc('0x10d')][_0x24dc('0x1f')]!=_0x2c67f0[_0x24dc('0x1f')])continue;const _0x26a5aa=_0x53c0e4[_0x24dc('0x62')]();if(_0x53c0e4[_0x24dc('0xb')]==_0x4da675){if(_0x26a5aa['containsRange'](_0x43db0b,!0x0))return null;_0x3fc982=_0x3fc982[_0x24dc('0xac')](_0x26a5aa[_0x24dc('0x106')])?_0x3fc982:_0x26a5aa['start'],_0x74731d=_0x74731d['isAfter'](_0x26a5aa[_0x24dc('0xa1')])?_0x74731d:_0x26a5aa[_0x24dc('0xa1')],_0x4e1b2d?_0x26a5aa['start'][_0x24dc('0xac')](_0x4e1b2d[_0x24dc('0x62')]()[_0x24dc('0x106')])?(_0x4e1b2d['removeMarkers'](),_0x4e1b2d=_0x53c0e4):_0x53c0e4[_0x24dc('0xf5')]():_0x4e1b2d=_0x53c0e4;}else{const _0x5cb082=_0x43db0b[_0x24dc('0x55')](_0x26a5aa);this[_0x24dc('0x81')](_0x53c0e4,_0x5cb082);}}const _0x4adbaf=this[_0x24dc('0x65')][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0x44'))['me'],_0x1244ec=_0x1d47f5(),_0xdbee68=_0x4adbaf['id'];if(_0x4e1b2d)return this[_0x24dc('0x15')](_0x4e1b2d,this[_0x24dc('0x86')]['createRange'](_0x3fc982,_0x74731d)),_0x4e1b2d;{const _0x39fdbe=this[_0x24dc('0xd0')]({'id':_0x1244ec,'type':'formatBlock:'+_0x4da675,'data':_0x2c67f0,'createdAt':new Date(),'authorId':_0xdbee68,'attributes':_0x3f446a});return this['_addSuggestionMarker']('formatBlock:'+_0x4da675,_0x1244ec,_0xdbee68,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x3fc982,_0x74731d)),_0x39fdbe;}}[_0x24dc('0x7f')](_0x2436ab,_0x13ccf7,_0xd8c16f=[],_0x439f2b=null,_0x3fa818={}){_0x13ccf7[_0x24dc('0x1f')]||(_0x13ccf7['formatGroupId']=_0x13ccf7['commandName']);const _0x69c822=_0x2436ab[0x0];_0x13ccf7['multipleBlocks']=_0x69c822['is']('range'),_0x439f2b=_0x439f2b||$t(_0x13ccf7);const _0x1ea365=_0xd8c16f[_0x24dc('0x4c')](_0x16a9a6=>Rt(_0x16a9a6,this[_0x24dc('0x86')])),_0x6ea16c=_0x69c822['is'](_0x24dc('0x127'))?_0x2436ab:_0x2436ab[_0x24dc('0x4c')](_0x33c5e2=>Rt(_0x33c5e2,this['_model']));if(_0x24dc('0x37')===this[_0x24dc('0x45')]){const _0x48af80=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x121'),_0x439f2b,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x48af80(_0x6ea16c,_0x13ccf7,_0x3fa818)),null;}_0x1ea365[_0x24dc('0xb6')](..._0x6ea16c);let _0x1b3f9b=!0x0;for(const _0x46644c of _0x1ea365)if(!this[_0x24dc('0xca')](_0x46644c)){_0x1b3f9b=!0x1;break;}if(_0x1b3f9b&&_0x24dc('0x102')!==this[_0x24dc('0x45')]){const _0xbb89a3=this['_suggestionFactory'][_0x24dc('0x60')](_0x24dc('0x121'),_0x439f2b,_0x24dc('0xeb'));return this['forceDefaultExecution'](()=>_0xbb89a3(_0x6ea16c,_0x13ccf7,_0x3fa818)),null;}const _0x16be3e=this['editor'][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0x44'))['me'];for(const _0x54124b of this[_0x24dc('0xf3')]()){if(_0x54124b[_0x24dc('0xec')]['id']!=_0x16be3e['id'])continue;if(_0x24dc('0x121')!=_0x54124b[_0x24dc('0x21')]||_0x54124b[_0x24dc('0x10d')][_0x24dc('0x1f')]!=_0x13ccf7['formatGroupId'])continue;const _0x547dce=_0x54124b['subType']==_0x439f2b;for(let _0x35a47d=0x0;_0x35a47d<_0x6ea16c[_0x24dc('0x80')];_0x35a47d++){const _0x11f590=_0x6ea16c[_0x35a47d];for(const _0x45bd86 of _0x54124b[_0x24dc('0xfb')]()){const _0x1e7df9=_0x45bd86[_0x24dc('0xd8')]();if(_0x11f590[_0x24dc('0x84')](_0x1e7df9)){_0x547dce?(_0x6ea16c[_0x24dc('0x9a')](_0x35a47d,0x1),_0x35a47d--):_0x54124b['removeMarker'](_0x45bd86[_0x24dc('0x113')]);break;}}}}if(0x0==_0x6ea16c['length'])return null;const _0x239677=this['_suggestionFactory'][_0x24dc('0x60')](_0x24dc('0x121'),_0x439f2b,_0x24dc('0x119'));for(const _0x518f40 of this[_0x24dc('0xf3')]())if(_0x518f40['author']['id']==_0x16be3e['id']&&'formatBlock'==_0x518f40[_0x24dc('0x21')]&&_0x518f40[_0x24dc('0x10d')]['formatGroupId']==_0x13ccf7[_0x24dc('0x1f')]&&_0x518f40[_0x24dc('0xb')]==_0x439f2b&&(_0x239677(_0x518f40[_0x24dc('0x4a')](),_0x6ea16c)||_0x239677(_0x6ea16c,_0x518f40[_0x24dc('0x4a')]()))){for(const _0x148da8 of _0x6ea16c)_0x518f40[_0x24dc('0x1d')](_0x148da8);return _0x518f40;}const _0x1d92d5=_0x1d47f5(),_0x448ec8=_0x16be3e['id'],_0x7bf720=_0x24dc('0x12b')+_0x439f2b,_0x4ad91c=this[_0x24dc('0xd0')]({'id':_0x1d92d5,'type':_0x7bf720,'data':_0x13ccf7,'createdAt':new Date(),'authorId':_0x448ec8,'attributes':_0x3fa818});for(const _0x299fe2 of _0x6ea16c)this[_0x24dc('0x116')](_0x7bf720,_0x1d92d5,_0x448ec8,_0x299fe2,_0xc1d4ef[_0x24dc('0x46')]());return _0x4ad91c;}[_0x24dc('0x129')](_0xe32dcf,_0x5842bf=null,_0x150c9f={}){if(_0xe32dcf[_0x24dc('0x96')])return null;const _0x2f7df2=this[_0x24dc('0x65')]['plugins']['get'](_0x24dc('0x44'))['me'],_0xd59e85=new _0x21503c(_0xe32dcf[_0x24dc('0x106')],_0xe32dcf['end']);for(const {suggestion:_0x12dc45,meta:_0x1e7c9d}of this[_0x24dc('0xa7')](_0xd59e85,_0x24dc('0xb9')))if(_0x1e7c9d['isOwn']&&!_0x1e7c9d[_0x24dc('0xcc')]){if(_0x12dc45[_0x24dc('0x140')]){const _0x56a4c5=_0x12dc45[_0x24dc('0x4a')]()[_0x24dc('0xa3')](_0x32c164=>_0x24dc('0x75')!=_0x32c164[_0x24dc('0x89')][_0x24dc('0x95')]);_0x56a4c5[_0x24dc('0x90')](_0x39e1b1=>_0xd59e85[_0x24dc('0x41')](_0x39e1b1,!0x0))&&_0x12dc45['discard']();if(_0x56a4c5[_0x24dc('0x112')](_0x2b09c8=>_0x2b09c8[_0x24dc('0x41')](_0xd59e85,!0x0))){const _0x2c4c8d=this['_suggestionFactory'][_0x24dc('0x60')]('deletion',_0x5842bf,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x2c4c8d([_0xd59e85],null,_0x150c9f)),null;}}else{const _0x60c7c6=_0xd59e85['getIntersection'](_0x12dc45[_0x24dc('0x62')]());null!==_0x60c7c6&&_0x12dc45[_0x24dc('0x12')]([_0x60c7c6],null,_0x150c9f);}}if(_0xd59e85['detach'](),_0xd59e85['isCollapsed']||_0x24dc('0x75')==_0xd59e85[_0x24dc('0x89')]['rootName'])return null;let _0x5ca177=null,_0x4fb6b0=_0xd59e85['start'],_0xaab333=_0xd59e85[_0x24dc('0xa1')];for(const {suggestion:_0x385cb6,meta:_0x51f028}of this[_0x24dc('0xa7')](_0xd59e85,_0x24dc('0x8a')))if(_0x51f028['isOwn']){if(_0x385cb6[_0x24dc('0x140')]&&this[_0x24dc('0xd')]){let _0x2e64fc=!0x0;for(const _0x43326b of _0x385cb6[_0x24dc('0x4a')]()){if(_0x43326b[_0x24dc('0x41')](_0xd59e85,!0x0))return _0x385cb6;_0xd59e85[_0x24dc('0x41')](_0x43326b)||(_0x2e64fc=!0x1);}_0x2e64fc&&_0x385cb6[_0x24dc('0x100')]();}else{const _0x270267=_0x385cb6[_0x24dc('0x62')]();if(_0x270267['containsRange'](_0xd59e85,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x51f028[_0x24dc('0xd4')])continue;return _0x385cb6;}_0x4fb6b0=_0x4fb6b0[_0x24dc('0xac')](_0x270267[_0x24dc('0x106')])?_0x4fb6b0:_0x270267[_0x24dc('0x106')],_0xaab333=_0xaab333[_0x24dc('0x9c')](_0x270267[_0x24dc('0xa1')])?_0xaab333:_0x270267[_0x24dc('0xa1')],_0x5ca177?_0x270267[_0x24dc('0x106')]['isBefore'](_0x5ca177[_0x24dc('0x62')]()[_0x24dc('0x106')])?(_0x5ca177[_0x24dc('0xf5')](),_0x5ca177=_0x385cb6):_0x385cb6[_0x24dc('0xf5')]():_0x5ca177=_0x385cb6;}}if(_0x5ca177)return this['_setSuggestionRange'](_0x5ca177,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x4fb6b0,_0xaab333)),_0x5ca177;{const _0x3f9ea8=_0x1d47f5(),_0x4a150d=this[_0x24dc('0x86')][_0x24dc('0x98')](_0x4fb6b0,_0xaab333),_0x39265e=_0x2f7df2['id'],_0x195bbd=_0x5842bf?_0x24dc('0xae')+_0x5842bf:_0x24dc('0x8a'),_0x1794c6=this[_0x24dc('0xd0')]({'id':_0x3f9ea8,'type':_0x195bbd,'createdAt':new Date(),'authorId':_0x39265e,'attributes':_0x150c9f});return this['_addSuggestionMarker'](_0x195bbd,_0x3f9ea8,_0x39265e,_0x4a150d),_0x1794c6;}}[_0x24dc('0xf1')](_0x3900ed,_0x1de157=_0x24dc('0xf7'),_0x2956de={}){const _0x5d39e4=this[_0x24dc('0x65')][_0x24dc('0x1c')]['get'](_0x24dc('0x44'))['me'],_0x409a18=_0x3900ed[_0x24dc('0x4c')](_0x15318f=>new _0x21503c(_0x15318f[_0x24dc('0x106')],_0x15318f['end'])),_0x192592=new Set();for(const _0x5619ed of _0x409a18)for(const {suggestion:_0x471709,meta:_0x311332}of this[_0x24dc('0xa7')](_0x5619ed,_0x24dc('0xb9')))_0x311332[_0x24dc('0x12f')]&&!_0x311332['isNextTo']&&_0x192592['add'](_0x471709);for(const _0x21fb45 of _0x192592)if(_0x21fb45[_0x24dc('0x140')]){const _0x4edc08=_0x21fb45[_0x24dc('0x4a')]();(!_0x21fb45[_0x24dc('0x131')]||!_0x21fb45[_0x24dc('0x131')][_0x24dc('0xfc')])&&(_0x4edc08[_0x24dc('0x90')](_0x153106=>_0x409a18[_0x24dc('0x112')](_0x5dab00=>_0x5dab00[_0x24dc('0x41')](_0x153106,!0x0)))&&_0x21fb45[_0x24dc('0x100')]());if(_0x409a18[_0x24dc('0x90')](_0x5cd3cf=>_0x4edc08[_0x24dc('0x112')](_0x159aa1=>_0x159aa1[_0x24dc('0x41')](_0x5cd3cf,!0x0)))){const _0x482ae4=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x8a'),_0x1de157,_0x24dc('0xeb'));return this[_0x24dc('0x11c')](()=>_0x482ae4(_0x3900ed,null,_0x2956de)),null;}}else{const _0x8e45a1=_0x21fb45[_0x24dc('0x62')]();_0x409a18['some'](_0x8f9e68=>_0x8f9e68['containsRange'](_0x8e45a1,!0x0))&&_0x21fb45['discard']();if(_0x409a18['every'](_0x28ff78=>_0x8e45a1[_0x24dc('0x41')](_0x28ff78,!0x0))){const _0x3419d8=this['_suggestionFactory']['getSuggestionCallback'](_0x24dc('0x8a'),_0x1de157,'accept');return this['forceDefaultExecution'](()=>_0x3419d8(_0x409a18,null,_0x2956de)),null;}}const _0x29ec55=this[_0x24dc('0x63')][_0x24dc('0x60')](_0x24dc('0x8a'),_0x1de157,_0x24dc('0x119'));let _0x4874e2=null;for(const _0x4d9f28 of this[_0x24dc('0xf3')]())if(_0x4d9f28[_0x24dc('0xec')]['id']==_0x5d39e4['id']&&_0x4d9f28[_0x24dc('0x14')]&&'deletion'==_0x4d9f28[_0x24dc('0x21')]&&_0x4d9f28[_0x24dc('0xb')]==_0x1de157&&(_0x29ec55(_0x4d9f28[_0x24dc('0x4a')](),_0x409a18)||_0x29ec55(_0x409a18,_0x4d9f28[_0x24dc('0x4a')]()))){if(_0x4874e2){if(_0x4d9f28[_0x24dc('0x6c')]&&_0x4d9f28[_0x24dc('0x6c')]['length'])continue;for(const _0x2d210e of _0x4d9f28[_0x24dc('0x4a')]())_0x4874e2['isIntersectingWithRange'](_0x2d210e)||_0x4874e2[_0x24dc('0x1d')](_0x2d210e);_0x4d9f28[_0x24dc('0xf5')]();}else{_0x4874e2=_0x4d9f28;for(const _0x225614 of _0x409a18)_0x4d9f28[_0x24dc('0x126')](_0x225614)||_0x4d9f28['addRange'](_0x225614);}}if(_0x4874e2)return _0x4874e2;_0x192592[_0x24dc('0x22')]();for(const _0x49c822 of _0x409a18)for(const {suggestion:_0x3e7f63,meta:_0x6d490d}of this[_0x24dc('0xa7')](_0x49c822,_0x24dc('0x8a')))_0x6d490d['isOwn']&&_0x192592[_0x24dc('0x122')](_0x3e7f63);for(const _0x374907 of _0x192592){const _0x41ebf0=_0x374907[_0x24dc('0x4a')]();if(!_0x2956de||!_0x2956de[_0x24dc('0xfc')]){if(_0x409a18[_0x24dc('0x90')](_0x9f90a4=>_0x41ebf0[_0x24dc('0x112')](_0x4f4490=>_0x4f4490[_0x24dc('0x41')](_0x9f90a4,!0x0))))return _0x374907;}(!_0x374907['attributes']||!_0x374907[_0x24dc('0x131')][_0x24dc('0xfc')])&&(_0x41ebf0[_0x24dc('0x90')](_0x2c8a15=>_0x409a18[_0x24dc('0x112')](_0x208f84=>_0x208f84[_0x24dc('0x41')](_0x2c8a15,!0x0)))&&_0x374907[_0x24dc('0x100')]());}const _0x2d3e51=_0x1d47f5(),_0x13fb17=_0x5d39e4['id'],_0x168ce2=_0x24dc('0xae')+_0x1de157,_0x5a33ac=this[_0x24dc('0xd0')]({'id':_0x2d3e51,'type':_0x168ce2,'createdAt':new Date(),'authorId':_0x13fb17,'attributes':_0x2956de});for(const _0x13ff33 of _0x409a18)_0x13ff33['detach'](),_0x13ff33[_0x24dc('0x96')]||_0x24dc('0x75')==_0x13ff33[_0x24dc('0x89')]['rootName']||this[_0x24dc('0x116')](_0x168ce2,_0x2d3e51,_0x13fb17,_0x13ff33,_0xc1d4ef[_0x24dc('0x46')]());return _0x5a33ac;}['_setSuggestionRange'](_0x3ba6c2,_0x4e1ce3){const _0x20ecd9=_0x3ba6c2[_0x24dc('0x9f')]();this[_0x24dc('0x86')][_0x24dc('0x2c')](_0x3e7404=>{_0x3e7404[_0x24dc('0xdb')](_0x20ecd9,{'range':_0x4e1ce3});});}[_0x24dc('0x91')](_0x118f5b){const _0x59c2c9=_0x118f5b['id'],_0x16c747=this[_0x24dc('0x65')]['config'][_0x24dc('0x1a')](_0x24dc('0x73'));this['_commentsRepository']['hasCommentThread'](_0x59c2c9)||this[_0x24dc('0xf0')][_0x24dc('0x43')]({'channelId':_0x16c747,'threadId':_0x59c2c9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2b8803=this[_0x24dc('0xf0')]['getCommentThread'](_0x59c2c9);_0x2b8803[_0x24dc('0x123')](_0x24dc('0x120')),_0x2b8803[_0x24dc('0x120')]=!0x1,_0x118f5b[_0x24dc('0x6c')]=_0x2b8803;}[_0x24dc('0x77')](_0x198df6,_0x54b233,_0x564070,_0x1a31f1){if(_0x198df6[_0x24dc('0x21')]!=_0x54b233||_0x198df6[_0x24dc('0xb')]!=_0x564070||_0x198df6[_0x24dc('0x5a')]['id']!=_0x1a31f1)throw this[_0x24dc('0x65')][_0x24dc('0xda')](_0x24dc('0xe1')),new _0x1cc2fb(_0x24dc('0xe1'),this);}[_0x24dc('0x81')](_0x2c6120,_0x1d4441){const _0x30f267=_0x2c6120['getFirstRange']();if(_0x1d4441[_0x24dc('0x84')](_0x30f267))_0x2c6120[_0x24dc('0xf5')]();else{if(_0x30f267[_0x24dc('0x41')](_0x1d4441)){const _0x279c5f=this[_0x24dc('0x86')][_0x24dc('0xba')](_0x1d4441[_0x24dc('0x106')][_0x24dc('0x111')],_0x24dc('0xa1'));this[_0x24dc('0x15')](_0x2c6120,this[_0x24dc('0x86')]['createRange'](_0x30f267[_0x24dc('0x106')],_0x279c5f));const _0x1bec7b=_0x1d47f5(),_0x1c8e3b=_0x2c6120[_0x24dc('0x5a')]['id'],_0x1fb2db=_0x2c6120[_0x24dc('0x21')]+':'+_0x2c6120[_0x24dc('0xb')];this[_0x24dc('0xd0')]({'id':_0x1bec7b,'type':_0x1fb2db,'createdAt':new Date(),'authorId':_0x1c8e3b,'data':_0x2c6120['data'],'attributes':_0x2c6120[_0x24dc('0x131')]});const _0x28df4b=this[_0x24dc('0x86')]['createPositionAt'](_0x1d4441['end']['parent'],'after'),_0x3c6348=this[_0x24dc('0x86')][_0x24dc('0x98')](_0x28df4b,_0x30f267[_0x24dc('0xa1')]);this['_addSuggestionMarker'](_0x1fb2db,_0x1bec7b,_0x1c8e3b,_0x3c6348);}else{if(_0x30f267[_0x24dc('0x29')](_0x1d4441[_0x24dc('0x106')])){const _0xf7511d=this[_0x24dc('0x86')][_0x24dc('0xba')](_0x1d4441[_0x24dc('0x106')]['nodeBefore'],_0x24dc('0xa1'));this[_0x24dc('0x15')](_0x2c6120,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x30f267['start'],_0xf7511d));}else{const _0x3de802=this[_0x24dc('0x86')]['createPositionAt'](_0x1d4441[_0x24dc('0xa1')][_0x24dc('0x117')],_0x24dc('0x97'));this[_0x24dc('0x15')](_0x2c6120,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x3de802,_0x30f267[_0x24dc('0xa1')]));}}}}['_rangeIsInLocalUserInsertion'](_0x224998){for(const {suggestion:_0x4cd8be,meta:_0x2372e8}of this[_0x24dc('0xa7')](_0x224998,'insertion')){if(!_0x2372e8['isOwn'])continue;const _0x3d5671=_0x4cd8be[_0x24dc('0x4a')]();for(const _0x506864 of _0x3d5671)if(!_0x224998[_0x24dc('0x79')](_0x506864)['length'])return!0x0;}return!0x1;}[_0x24dc('0x8b')](_0x3d5553){const _0x3ff9bd=this[_0x24dc('0x65')]['plugins'][_0x24dc('0x1a')](_0x24dc('0x44'))[_0x24dc('0xc')](_0x3d5553);if(!_0x3ff9bd)throw new _0x1cc2fb(_0x24dc('0x124'),this);return _0x3ff9bd;}[_0x24dc('0x13c')](_0xade0dc){const _0x280181=this[_0x24dc('0x65')]['plugins'][_0x24dc('0x1a')](_0x24dc('0x44')),_0x152c16=_0x3a4b2e(_0x24dc('0xc9')+_0xade0dc),_0x541253=_0x280181[_0x24dc('0xc')](_0x152c16);return _0x541253||_0x280181[_0x24dc('0x6e')]({'id':_0x152c16,'name':_0xade0dc});}[_0x24dc('0xa9')](_0x506ed3,_0x220ac2,_0x4d4baa,_0x16f344,_0x1d6adf){const _0xb1dd05=this[_0x24dc('0x8b')](_0x16f344),_0x38ef59=this[_0x24dc('0x63')][_0x24dc('0x7')](_0x506ed3,_0x220ac2,_0x4d4baa,_0xb1dd05,_0x1d6adf,_0x4538f6=>this['_updateSuggestionData'](_0x4d4baa,{'attributes':_0x4538f6}));return this['listenTo'](_0x38ef59,'accept',()=>{this[_0x24dc('0xd2')](_0x4d4baa,{'state':_0x24dc('0x94')});},{'priority':_0x24dc('0x78')}),this[_0x24dc('0x0')](_0x38ef59,'discard',()=>{this[_0x24dc('0xd2')](_0x4d4baa,{'state':_0x24dc('0x58')});},{'priority':_0x24dc('0x78')}),this['_suggestions']['set'](_0x4d4baa,_0x38ef59),this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0x38ef59,_0x24dc('0xaa')),_0x38ef59;}[_0x24dc('0xb8')](_0x533db3){const _0x316905=_0x533db3[_0x24dc('0x85')](':');return{'group':_0x316905[0x0],'type':_0x316905[0x1],'subType':_0x316905[_0x24dc('0x80')]>=0x5?_0x316905[0x2]:null,'id':_0x316905['length']<0x5?_0x316905[0x2]:_0x316905[0x3],'authorId':_0x316905['length']<0x5?_0x316905[0x3]:_0x316905[0x4],'markerCount':0x6==_0x316905[_0x24dc('0x80')]?_0x316905[0x5]:null};}[_0x24dc('0x138')](_0x572dc4,_0x284816,_0x187f68){const _0x2bb43a=_0x572dc4[_0x24dc('0x62')](),_0xe44a93=_0x2bb43a[_0x24dc('0x106')],_0x4a6734=_0x2bb43a[_0x24dc('0xa1')];this[_0x24dc('0x15')](_0x572dc4,this[_0x24dc('0x86')][_0x24dc('0x98')](_0xe44a93,_0x284816));const _0x1b837a=_0x1d47f5(),_0x5b1446=_0x572dc4[_0x24dc('0x5a')]['id'],_0x283a5d=_0x572dc4[_0x24dc('0x21')]+(_0x572dc4[_0x24dc('0xb')]?':'+_0x572dc4['subType']:'');this[_0x24dc('0xd0')]({'id':_0x1b837a,'type':_0x283a5d,'createdAt':new Date(),'authorId':_0x5b1446,'originalSuggestionId':_0x572dc4['id'],'attributes':_0x572dc4[_0x24dc('0x131')],'data':_0x572dc4[_0x24dc('0x10d')]}),'formatBlock'==_0x572dc4[_0x24dc('0x21')]&&(_0x187f68=this['_model']['createPositionBefore'](_0x187f68[_0x24dc('0x117')])),this[_0x24dc('0x116')](_0x283a5d,_0x1b837a,_0x5b1446,this[_0x24dc('0x86')]['createRange'](_0x187f68,_0x4a6734));}[_0x24dc('0xa7')](_0x358c61,_0x34a5f6=null){const _0x411c9d=[],_0x1d397c=this[_0x24dc('0x86')][_0x24dc('0xe')],_0xa9954=this[_0x24dc('0x65')]['plugins']['get'](_0x24dc('0x44'))['me'];for(const _0x2c576f of this[_0x24dc('0xf3')]())if(_0x2c576f[_0x24dc('0x14')]&&(!_0x34a5f6||_0x2c576f['type']==_0x34a5f6))for(const _0x2dcd9d of _0x2c576f[_0x24dc('0x4a')]()){const _0x122748=_0x358c61['start'][_0x24dc('0x84')](_0x2dcd9d[_0x24dc('0xa1')])||_0x358c61[_0x24dc('0xa1')][_0x24dc('0x84')](_0x2dcd9d[_0x24dc('0x106')]);if(_0x122748||_0x358c61[_0x24dc('0x55')](_0x2dcd9d)){const _0x253648=_0x358c61['containsRange'](_0x2dcd9d)&&Bt(_0x1d397c,_0x2dcd9d[_0x24dc('0x106')],_0x358c61),_0x63ec61=_0x2dcd9d[_0x24dc('0x41')](_0x358c61)&&Bt(_0x1d397c,_0x358c61[_0x24dc('0x106')],_0x2dcd9d);_0x411c9d[_0x24dc('0xb6')]({'suggestion':_0x2c576f,'meta':{'isOwn':_0xa9954==_0x2c576f[_0x24dc('0xec')],'isNextTo':_0x122748,'isInsideObject':_0x253648,'containsRangeInObject':_0x63ec61}});break;}}return _0x411c9d;}[_0x24dc('0x116')](_0x18bd03,_0x243cea,_0x49575e,_0x458167,_0x590248){this[_0x24dc('0x86')][_0x24dc('0x2c')](_0xff5f1b=>{let _0x59daa3=_0x24dc('0x42')+_0x18bd03+':'+_0x243cea+':'+_0x49575e;_0x590248&&(_0x59daa3=_0x59daa3+':'+_0x590248),_0xff5f1b[_0x24dc('0xb1')](_0x59daa3,{'range':_0x458167,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x68478){const _0x3e53ba=_0x68478[_0x24dc('0xef')],_0x2c7b=_0x68478[_0x24dc('0x7d')];_0x68478['previous']=null,null!=_0x3e53ba&&(_0x3e53ba[_0x24dc('0x7d')]=null),_0x68478[_0x24dc('0x7d')]=null,null!=_0x2c7b&&(_0x2c7b[_0x24dc('0xef')]=null),_0x24dc('0x3c')==this[_0x24dc('0xd5')][_0x24dc('0x1a')](_0x68478)&&(this['_suggestionState'][_0x24dc('0x9b')](_0x68478,'removed'),this[_0x24dc('0x5')]('suggestionUnloaded',_0x68478,_0x3e53ba,_0x2c7b));}[_0x24dc('0xd0')](_0x3cafb7){const _0x3ce49f=_0x3cafb7['id'],_0xff473a=this['addSuggestionData'](_0x3cafb7);if(this['_adapter']&&this[_0x24dc('0x11b')]['addSuggestion']){const _0x5d1807=this[_0x24dc('0x65')][_0x24dc('0x1c')][_0x24dc('0x1a')](_0x24dc('0xd1')),_0xcb8b85=_0xff473a[_0x24dc('0x4')],_0x19a34c=_0xff473a[_0x24dc('0xb')]?_0xff473a['type']+':'+_0xff473a[_0x24dc('0xb')]:_0xff473a[_0x24dc('0x21')],_0x3038a3=this[_0x24dc('0x65')][_0x24dc('0x8c')],_0x171252=_0x5d1807[_0x24dc('0x122')](_0x53685f(_0x3038a3,_0x24dc('0x32'))),_0x25f9ff={'id':_0x3ce49f,'type':_0x19a34c,'hasComments':_0xcb8b85,'data':_0x3cafb7[_0x24dc('0x10d')]||null,'originalSuggestionId':_0x3cafb7[_0x24dc('0x38')]||null,'attributes':_0xff473a[_0x24dc('0x131')]};this[_0x24dc('0x11b')][_0x24dc('0x110')](_0x25f9ff)[_0x24dc('0x103')](_0x26f228=>{_0xff473a[_0x24dc('0xa6')]=!0x0,_0x5d1807[_0x24dc('0xdc')](_0x171252),_0x26f228&&_0x26f228[_0x24dc('0xb0')]&&(this[_0x24dc('0x5f')][_0x24dc('0x1a')](_0x3ce49f)[_0x24dc('0xb0')]=_0x26f228[_0x24dc('0xb0')]);})[_0x24dc('0x4d')](_0x78e277=>{throw _0x516b1e(_0x24dc('0x3b')),this[_0x24dc('0x65')][_0x24dc('0x51')][_0x24dc('0x10e')]({'isUndoable':!0x1},()=>{_0xff473a[_0x24dc('0x100')]();}),_0xff473a[_0x24dc('0x13f')](),this[_0x24dc('0x5f')][_0x24dc('0x88')](_0xff473a['id']),this[_0x24dc('0xd5')][_0x24dc('0x88')](_0xff473a),_0x78e277;});}return _0xff473a;}[_0x24dc('0xd2')](_0x4f2d86,_0x89b78f){const _0x206ff4=this['editor']['plugins'][_0x24dc('0x1a')](_0x24dc('0xd1')),_0x2c5306=this[_0x24dc('0x23')](_0x4f2d86);if(this[_0x24dc('0x11b')]&&this['_adapter'][_0x24dc('0xc0')]){if(_0x2c5306['_saved']){const _0x14ea3b=_0x206ff4[_0x24dc('0x122')](_0x53685f(this[_0x24dc('0x65')][_0x24dc('0x8c')],_0x24dc('0x32')));this[_0x24dc('0x11b')][_0x24dc('0xc0')](_0x4f2d86,_0x89b78f)[_0x24dc('0x103')](()=>{_0x206ff4['remove'](_0x14ea3b);});}else _0x2c5306['on'](_0x24dc('0x35'),()=>{this[_0x24dc('0xd2')](_0x4f2d86,_0x89b78f);});}}['_getSuggestionData'](_0x1b653d){if(!this[_0x24dc('0x11b')]||!this[_0x24dc('0x11b')][_0x24dc('0x23')])throw new _0x1cc2fb(_0x24dc('0x9'),this);return this[_0x24dc('0x11b')][_0x24dc('0x23')](_0x1b653d);}['_handleNewSuggestionMarker'](_0x2b16a1){const {id:_0x2d7abd,type:_0xf9b931,subType:_0x5f2198,authorId:_0x4fcddb}=this[_0x24dc('0xb8')](_0x2b16a1),_0x17c85a=this['_suggestions']['get'](_0x2d7abd)||this['_createSuggestion'](_0xf9b931,_0x5f2198,_0x2d7abd,_0x4fcddb,{});switch(this[_0x24dc('0x77')](_0x17c85a,_0xf9b931,_0x5f2198,_0x4fcddb),this[_0x24dc('0xd5')]['get'](_0x17c85a)){case _0x24dc('0xaa'):this['_getSuggestionData'](_0x2d7abd)['then'](_0x278200=>{let _0x139f4a=Promise[_0x24dc('0x3')]();_0x278200['hasComments']&&(_0x139f4a=this['_commentsRepository'][_0x24dc('0xe7')]({'channelId':this[_0x24dc('0x65')][_0x24dc('0x12e')][_0x24dc('0x1a')](_0x24dc('0x73')),'threadId':_0x2d7abd})),_0x139f4a[_0x24dc('0x103')](()=>{this[_0x24dc('0x11d')](_0x278200)['_saved']=!0x0;});}),this[_0x24dc('0xd5')][_0x24dc('0x9b')](_0x17c85a,'markerReady');break;case _0x24dc('0xa4'):this[_0x24dc('0xd2')](_0x2d7abd,{'state':_0x24dc('0x87')});case _0x24dc('0x115'):this['_suggestionState'][_0x24dc('0x9b')](_0x17c85a,_0x24dc('0x3c')),this[_0x24dc('0x5')](_0x24dc('0x61'),_0x17c85a);break;case'ready':this[_0x24dc('0x5')]('suggestionChanged',_0x17c85a);}return _0x17c85a[_0x24dc('0xe2')](_0x2b16a1),_0x17c85a;}[_0x24dc('0x3f')](_0x5f0dd4){const _0xa8bbf6=Array[_0x24dc('0x50')](_0x5f0dd4)[_0x24dc('0xa3')](_0x56905a=>!_0x56905a['isMultiRange']),_0x204d68=this[_0x24dc('0xf3')]({'skipNotAttached':!0x0})[_0x24dc('0xa3')](_0x187b1c=>!_0x187b1c[_0x24dc('0x140')]),_0x543648=_0x204d68[_0x24dc('0xa3')](_0x1c1a41=>!_0x5f0dd4[_0x24dc('0x130')](_0x1c1a41)),_0x5d6c41=new Map(_0x204d68[_0x24dc('0x4c')](_0x2f927f=>[_0x2f927f,this[_0x24dc('0x63')]['getSuggestionCallback'](_0x2f927f[_0x24dc('0x21')],_0x2f927f[_0x24dc('0xb')],_0x24dc('0x52'))])),_0x27a306=new Map(_0x204d68[_0x24dc('0x4c')](_0x1fd0e2=>[_0x1fd0e2,_0x1fd0e2[_0x24dc('0x62')]()])),_0x1d6e74=new Set(),_0x4be7bc=new Set();for(let _0x25088c=0x0;_0x25088c<_0xa8bbf6['length'];_0x25088c++)_0x1f20bd(_0xa8bbf6[_0x25088c],_0xa8bbf6,_0x25088c+0x1);for(let _0x9db2dc=0x0;_0x9db2dc<_0xa8bbf6[_0x24dc('0x80')];_0x9db2dc++)_0x1f20bd(_0xa8bbf6[_0x9db2dc],_0x543648,0x0);for(let _0x116370=0x0;_0x116370<_0xa8bbf6[_0x24dc('0x80')];_0x116370++){const _0x3e0923=_0xa8bbf6[_0x116370];!_0x4be7bc[_0x24dc('0x130')](_0x3e0923)&&_0x3e0923[_0x24dc('0xef')]&&(_0x3e0923[_0x24dc('0xef')][_0x24dc('0x7d')]===_0x3e0923&&(_0x3e0923[_0x24dc('0xef')][_0x24dc('0x7d')]=null),_0x3e0923[_0x24dc('0xef')]=null),!_0x1d6e74[_0x24dc('0x130')](_0x3e0923)&&_0x3e0923[_0x24dc('0x7d')]&&(_0x3e0923[_0x24dc('0x7d')]['previous']===_0x3e0923&&(_0x3e0923[_0x24dc('0x7d')][_0x24dc('0xef')]=null),_0x3e0923['next']=null);}function _0x1f20bd(_0x45f184,_0x32c579,_0xc6e3bc){for(let _0x3e23b1=_0xc6e3bc;_0x3e23b1<_0x32c579['length'];_0x3e23b1++){const _0x4e266c=_0x4fa8c3(_0x45f184,_0x32c579[_0x3e23b1]);_0x4e266c&&(_0x4e266c[0x0][_0x24dc('0x7d')]=_0x4e266c[0x1],_0x4e266c[0x1][_0x24dc('0xef')]=_0x4e266c[0x0],_0x1d6e74[_0x24dc('0x122')](_0x4e266c[0x0]),_0x4be7bc[_0x24dc('0x122')](_0x4e266c[0x1]));}}function _0x4fa8c3(_0xd6386f,_0x385f03){if(_0xd6386f['author']['id']!==_0x385f03[_0x24dc('0xec')]['id'])return null;const _0x3f52b9=_0x5d6c41['get'](_0xd6386f)(_0xd6386f,_0x385f03,_0x27a306[_0x24dc('0x1a')](_0xd6386f),_0x27a306[_0x24dc('0x1a')](_0x385f03));if(!_0x3f52b9)return null;return _0x5d6c41[_0x24dc('0x1a')](_0x385f03)(_0xd6386f,_0x385f03,_0x27a306[_0x24dc('0x1a')](_0xd6386f),_0x27a306['get'](_0x385f03))?_0x3f52b9[0x1]['commentThread']&&_0x3f52b9[0x1]['commentThread'][_0x24dc('0x80')]?null:_0x3f52b9:null;}}[_0x24dc('0x7e')](_0x41783b){const _0x35980a=Array[_0x24dc('0x50')](_0x41783b),_0x5413f1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1938a6=_0x5413f1[_0x24dc('0xa3')](_0x59e698=>!_0x41783b['has'](_0x59e698)),_0x5da6ca=new Map(_0x35980a[_0x24dc('0x4c')](_0x1b011b=>[_0x1b011b,this[_0x24dc('0x63')]['getSuggestionCallback'](_0x1b011b[_0x24dc('0x21')],_0x1b011b[_0x24dc('0xb')],_0x24dc('0x119'))])),_0x443d75=new Map(_0x5413f1[_0x24dc('0x4c')](_0x3aa825=>[_0x3aa825,_0x3aa825['getRanges']()]));for(let _0xfadae7=0x0;_0xfadae7<_0x35980a[_0x24dc('0x80')];_0xfadae7++){if(_0x48cc74(this,_0x35980a[_0xfadae7],_0x35980a,_0xfadae7+0x1))return!0x0;}for(let _0x1ba9ad=0x0;_0x1ba9ad<_0x35980a[_0x24dc('0x80')];_0x1ba9ad++){if(_0x48cc74(this,_0x35980a[_0x1ba9ad],_0x1938a6,0x0))return!0x0;}return!0x1;function _0x48cc74(_0x172333,_0xe37e7c,_0x2bb2c7,_0x308c42){for(let _0x754207=_0x308c42;_0x754207<_0x2bb2c7[_0x24dc('0x80')];_0x754207++){const _0x2d300d=_0x2bb2c7[_0x754207];if(_0x2d300d[_0x24dc('0x21')]!==_0xe37e7c[_0x24dc('0x21')]||_0x2d300d[_0x24dc('0xec')]['id']!==_0xe37e7c[_0x24dc('0xec')]['id']||_0x2d300d['subType']!==_0xe37e7c[_0x24dc('0xb')])continue;const _0x58c82b=_0x5da6ca['get'](_0xe37e7c),_0x5f56be=_0x443d75[_0x24dc('0x1a')](_0xe37e7c),_0x139ff8=_0x443d75[_0x24dc('0x1a')](_0x2d300d),_0x400b5b=_0xe37e7c[_0x24dc('0x6c')]&&_0xe37e7c[_0x24dc('0x6c')]['length'],_0x5a7ead=_0x2d300d[_0x24dc('0x6c')]&&_0x2d300d[_0x24dc('0x6c')][_0x24dc('0x80')];if(!_0x400b5b&&_0x58c82b(_0x139ff8,_0x5f56be))return _0x172333[_0x24dc('0x99')](_0x2d300d,_0xe37e7c),_0x443d75[_0x24dc('0x88')](_0xe37e7c),!0x0;if(!_0x5a7ead&&_0x58c82b(_0x5f56be,_0x139ff8))return _0x172333[_0x24dc('0x99')](_0xe37e7c,_0x2d300d),_0x443d75[_0x24dc('0x88')](_0x2d300d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x309d0c,_0x34f7c2){if(_0x309d0c[_0x24dc('0x140')])for(const _0x4ff2ba of _0x34f7c2[_0x24dc('0x4a')]())_0x309d0c[_0x24dc('0x1d')](_0x4ff2ba);else{const _0x1d3026=_0x34f7c2[_0x24dc('0x62')]()[_0x24dc('0xa1')];this[_0x24dc('0x15')](_0x309d0c,this[_0x24dc('0x86')][_0x24dc('0x98')](_0x309d0c['getFirstRange']()[_0x24dc('0x106')],_0x1d3026));}_0x34f7c2['removeMarkers']();}}class Dt{constructor(_0x359025){this[_0x24dc('0x8e')]=_0x359025,this[_0x24dc('0x86')]=_0x359025[_0x24dc('0x51')],this[_0x24dc('0x49')]=new Map(),this[_0x24dc('0x133')]=new Map(),this[_0x24dc('0x67')]();}[_0x24dc('0x7')](_0x55e82c,_0x328ff5,_0x4cb926,_0x5d9dbd,_0x185ae9,_0x59c746){return new _0xc1d4ef(this[_0x24dc('0x86')],{'type':_0x55e82c,'subType':_0x328ff5,'id':_0x4cb926,'author':_0x5d9dbd,'creator':_0x5d9dbd,'attributes':_0x185ae9,'onAttributesChange':_0x59c746,'onAccept':(..._0x3fbcbc)=>this[_0x24dc('0x60')](_0x55e82c,_0x328ff5,_0x24dc('0xeb'))(..._0x3fbcbc),'onDiscard':(..._0x4839ac)=>this[_0x24dc('0x60')](_0x55e82c,_0x328ff5,'discard')(..._0x4839ac)});}[_0x24dc('0x20')](_0x42dd9f,_0xf62540,_0x23242e,_0x8e6972){const _0x588ee5=_0x42dd9f+':'+_0xf62540+':'+_0x23242e;this[_0x24dc('0x49')][_0x24dc('0x9b')](_0x588ee5,_0x8e6972);}[_0x24dc('0x60')](_0x4ee3b9,_0x4108a5,_0x3df23e){const _0x5d8303=_0x4ee3b9+':'+_0x4108a5+':'+_0x3df23e;return this[_0x24dc('0x49')][_0x24dc('0x1a')](_0x5d8303)||this[_0x24dc('0x133')][_0x24dc('0x1a')](_0x4ee3b9+':'+_0x3df23e);}['_registerDefaultCallbacks'](){const _0x2f0e31=()=>{},_0x4343a1=_0x385d57=>{_0x385d57[_0x24dc('0xfd')]((_0x1c6610,_0x40e7f2)=>_0x1c6610[_0x24dc('0x106')][_0x24dc('0xac')](_0x40e7f2['start'])?0x1:-0x1),this['_model']['change'](_0x503e4f=>{for(const _0x17bef6 of _0x385d57){let _0x73adef;_0x73adef=_0x17bef6[_0x24dc('0xa1')][_0x24dc('0xcf')]&&_0x17bef6[_0x24dc('0xa1')][_0x24dc('0x117')]==_0x17bef6[_0x24dc('0x106')][_0x24dc('0xa8')]?_0x503e4f[_0x24dc('0x8d')](_0x17bef6['start'][_0x24dc('0xa8')],'on'):_0x503e4f[_0x24dc('0x8d')](_0x17bef6),this[_0x24dc('0x86')][_0x24dc('0xe8')](_0x73adef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x54dbbf=(_0x350f2b,_0x43c2a4)=>{this['_model'][_0x24dc('0x2c')](_0x22504c=>{const {commandName:_0x531ed3,commandParams:_0x242097=[]}=_0x43c2a4,_0x109a60=_0x350f2b[_0x24dc('0x4c')](_0x5152b2=>(_t(_0x5152b2)&&(_0x5152b2=this[_0x24dc('0x86')][_0x24dc('0x98')](_0x5152b2[_0x24dc('0xa1')])),_0x5152b2))['filter'](_0x13e958=>_0x24dc('0x75')!==_0x13e958['root']['rootName']);if(_0x109a60[_0x24dc('0x80')]<0x1)return;const _0x493475=Array[_0x24dc('0x50')](this[_0x24dc('0x86')][_0x24dc('0xaf')][_0x24dc('0x7c')][_0x24dc('0x4a')]())[_0x24dc('0x4c')](_0x23a171=>_0x21503c[_0x24dc('0x2b')](_0x23a171));_0x22504c[_0x24dc('0x5c')](_0x109a60);for(const _0x5280f4 of this['_editor']['commands'][_0x24dc('0x56')]())_0x5280f4['refresh']();_0x242097[_0x24dc('0xb6')]({'forceDefaultExecution':!0x0}),this[_0x24dc('0x8e')]['execute'](_0x531ed3,..._0x242097);const _0x4a0cfc=_0x493475[_0x24dc('0xa3')](_0x3a4d1e=>_0x24dc('0x75')!=_0x3a4d1e[_0x24dc('0x89')][_0x24dc('0x95')]);_0x4a0cfc[_0x24dc('0x80')]>0x0&&_0x22504c['setSelection'](_0x4a0cfc);for(const _0x3a7cb0 of _0x493475)_0x3a7cb0[_0x24dc('0x72')]();});},_0x1ef22d=(_0x5b6756,_0x34ae10)=>0x1==_0x5b6756[_0x24dc('0x80')]&&0x1==_0x34ae10[_0x24dc('0x80')]&&_0x5b6756[0x0]['end']['isEqual'](_0x34ae10[0x0][_0x24dc('0x106')]),_0x52a909=(_0x24825d,_0x403e08,_0x2d045f,_0x3d7b65)=>xt(_0x24825d,_0x403e08,_0x2d045f,_0x3d7b65,this[_0x24dc('0x86')])?[_0x24825d,_0x403e08]:xt(_0x403e08,_0x24825d,_0x3d7b65,_0x2d045f,this[_0x24dc('0x86')])?[_0x403e08,_0x24825d]:null;this['_defaultCallbacks']['set'](_0x24dc('0x101'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0xd6'),_0x4343a1),this[_0x24dc('0x133')]['set'](_0x24dc('0x71'),_0x1ef22d),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0x54'),_0x52a909),this['_defaultCallbacks']['set'](_0x24dc('0xde'),_0x4343a1),this[_0x24dc('0x133')][_0x24dc('0x9b')]('deletion:discard',_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')]('deletion:join',_0x1ef22d),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0xc6'),_0x52a909),this[_0x24dc('0x133')]['set'](_0x24dc('0xe5'),_0x54dbbf),this[_0x24dc('0x133')]['set'](_0x24dc('0xad'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0xc4'),_0x1ef22d),this['_defaultCallbacks']['set'](_0x24dc('0xfa'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')]('formatBlock:accept',_0x54dbbf),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0x6f'),_0x2f0e31),this[_0x24dc('0x133')][_0x24dc('0x9b')](_0x24dc('0x93'),_0x1ef22d),this[_0x24dc('0x133')]['set']('formatBlock:chain',_0x2f0e31);}}function Bt(_0x4b85c9,_0xbfa0cf,_0x38a829){for(const _0x51dc2f of _0xbfa0cf[_0x24dc('0x117')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51dc2f[_0x24dc('0x89')]==_0x51dc2f)return!0x1;if(!_0x38a829['containsItem'](_0x51dc2f))return!0x1;if(_0x4b85c9['isObject'](_0x51dc2f)||_0x4b85c9[_0x24dc('0x7b')](_0x51dc2f))return!0x0;}return!0x1;}function _t(_0x361dd3){return _0x361dd3[_0x24dc('0xa1')][_0x24dc('0x117')]==_0x361dd3[_0x24dc('0x106')][_0x24dc('0xa8')]&&_0x361dd3[_0x24dc('0xa1')][_0x24dc('0xb5')];}function Mt(_0x4e7ba7,_0x310288,_0x1be3a5,_0x54393f){const _0x5598f9=_0x284550=>!_0x284550[_0x24dc('0xb7')]['is'](_0x24dc('0x10a'))&&!_0x54393f[_0x24dc('0xe4')](_0x284550['item']),_0x14222e=_0x4e7ba7[_0x24dc('0x106')][_0x24dc('0x135')](_0x5598f9),_0x4d295e=_0x4e7ba7[_0x24dc('0xa1')][_0x24dc('0x135')](_0x5598f9,{'direction':_0x24dc('0x13b')});return(!_0x4e7ba7['start'][_0x24dc('0x84')](_0x14222e)||!_0x4e7ba7[_0x24dc('0xa1')][_0x24dc('0x84')](_0x4d295e))&&(_0x14222e['isBefore'](_0x4d295e)?_0x1be3a5[_0x24dc('0xdb')](_0x310288,{'range':_0x1be3a5['createRange'](_0x14222e,_0x4d295e)}):_0x1be3a5['removeMarker'](_0x310288),!0x0);}function $t(_0x2e8459){return _0x3a4b2e(_0x2e8459);}function Nt(_0x17faac){const _0x51ad26=_0x17faac[_0x24dc('0x106')][_0x24dc('0xa8')];return _0x51ad26&&_0x51ad26['is'](_0x24dc('0x13a'));}function Rt(_0xa1c2ca,_0x3ffc5a){const _0xe95832=_0x3ffc5a['schema'][_0x24dc('0xe4')](_0xa1c2ca)||_0x3ffc5a[_0x24dc('0xe')][_0x24dc('0x18')](_0xa1c2ca);return _0x3ffc5a[_0x24dc('0x98')](_0x3ffc5a[_0x24dc('0xba')](_0xa1c2ca,_0x24dc('0xbc')),_0xe95832?_0x3ffc5a[_0x24dc('0x7a')](_0xa1c2ca):_0x3ffc5a[_0x24dc('0xba')](_0xa1c2ca,'end'));}function xt(_0x48397f,_0x5ab2c7,_0x299f0f,_0x49e943,_0x3eb8ed){if(_0x299f0f[_0x24dc('0xa1')][_0x24dc('0x84')](_0x49e943[_0x24dc('0x106')]))return!0x0;if(_0x48397f[_0x24dc('0x21')]!=_0x5ab2c7[_0x24dc('0x21')])return!0x1;if(!_0x299f0f[_0x24dc('0xa1')][_0x24dc('0x74')](_0x49e943[_0x24dc('0x106')]))return!0x1;const _0x394d8b=_0x3eb8ed[_0x24dc('0x98')](_0x299f0f[_0x24dc('0xa1')],_0x49e943[_0x24dc('0x106')])['getWalker']();for(const _0x29fe09 of _0x394d8b)if([_0x24dc('0x3a'),_0x24dc('0x64')]['includes'](_0x29fe09[_0x24dc('0x21')])&&_0x3eb8ed[_0x24dc('0xe')]['isLimit'](_0x29fe09[_0x24dc('0xb7')]))return!0x1;return!0x0;}
23
+ const _0x4958=['dataDowncast','getSuggestion','buildSuggestion','adapter','showSuggestionHighlights','removeMarker','editor','markerReady','selection','range','nodeBefore','removed','removeMarkers','attributes','accept','markers','suggestionUnloaded','catch','track-changes-suggestion-data-mismatch','elementToElement','insertion:discard','isBefore','length','formatBlock:join','acceptAllSuggestions','getItems','rethrowUnexpectedError','elementEnd','enableReadOnlyMode','trackChangesCommand','after','change:activeMarkers','head','change:_saved','split','_addThreadToSuggestion','locale','_setSuggestionRange','formatInline:','fetchCommentThread','addSuggestion','writer','trackChanges.trackFormatChanges','addMarker','discard','_updateSuggestionData','for','getShiftedBy','trackChanges.mergeNestedSuggestions','_getSuggestionData','chain','PENDING_ACTION_SUGGESTION','ck-suggestion-marker-','isEqual','deletion:chain','getAncestors','_addSuggestionMarker','external:','addMarkerName','containerElement','markBlockFormat','elementStart','originalSuggestionId','suggestion-type','marker-count','discardAllSuggestions','detach','getWalker','markInsertion','acceptSuggestion','rootName','isRemovable','every','ready','suggestion:','subType','_isForcedDefaultExecutionBlock','substr','type','resolve','rejected','isObject','document','size','clone','move','track-changes-user-not-found','markerName','getDifference','deleteContent','track-changes-adapter-missing-getsuggestion','formatGroupId','dataToMarker','getSuggestions','containsItem','addMarker:suggestion:formatBlock','differ','_editor','createdAt','listenTo','_checkSuggestionCorrectness','_suggestions','update:suggestion','pluginName','requires','stop','addUser','getFirstMarker','unbind','item','getLastMatchingPosition','targetPosition','formatBlock','data','formatBlock:chain','_suggestionFactory','containsRangeInObject','markMultiRangeBlockFormat','markDeletion','deletion','getCommentThread','insertContent','sort','widget','low','_adapter','_trackFormatChanges','discardSelectedSuggestions','isLocal','getSuggestionCallback','isCollapsed','insertion:','markInlineFormat','_descriptionFactory','insertion','formatInline:discard','getRange','newRange','addClass','open','default','get','_splitMarkerName','registerPostFixer','_rangeIsInLocalUserInsertion','schema','nodeAfter','define','upcast','stopListening','insertion:accept','dataReady','authoredAt','clear','name','Users','applyOperation','authorName','getChangedMarkers','createSelection','_removeSuggestion','_suggestionState','execute','markerNameToElements','always','markerToHighlight','plugins','_breakSuggestionMarker','author','change:data','model','insert','_joinWithAdjacentSuggestions','splitPosition','addSuggestionData','addMarker:suggestion','isExternal','value','getFirstRange','removeComment','forceDefaultExecution','formatBlock:accept','createRange','@external','PendingActions','multipleBlocks','parent','getAllAdjacentSuggestions','ck-suggestion-marker-formatBlock','getUser','formatBlock:discard','fire','_enabledCommands','from','_handleNewSuggestionMarker','formatBlock:','position','setSelection','_saved','_setSuggestionData','discardSuggestion','push','deletion:','markMultiRangeInsertion','hasComments','consumable','multi','element','isInContent','skipNestingCheck','hasCommentThread','map','group','$graveyard','remove','getCustomProperty','_joinSuggestions','$textProxy','batch','deletion:join','updateSuggestion','end','_getAuthorFromId','lowest','addComment','filter','isUndo','commands','containsPosition','values','bindElementToMarker','getAttribute','removeAttribute','_commentsRepository','editingDowncast','isAfter','createPositionAt','isOwn','TrackChangesEditing','addHighlight','init','_createSuggestion','next','consume','commandName','oldRange','addRange','isIntersectingWithRange','enableCommand','backward','deletion:accept','reconvertMarker','high','_mergeNestedSuggestions','isAtEnd','activeMarkers','delete','isBlock','isMultiRange','data-suggestion','createRangeIn','_refreshSuggestionsChain','formatInline:join','ck-suggestion-marker--active','options','fromRange','CommentsRepository','formatInline:chain','collaboration.channelId','has','start','mapper','conversion','change','_model','commentThread','never','set','error-saving-suggestion-data-suggestion-discarded','some','containsRange','_getExternalAuthor','updateMarker','isNextTo','removeClass','markMultiRangeDeletion','_customCallbacks','isAtStart','getNearestSelectionRange','getIntersection','getRanges','isInsideObject','getMultiRangeId','return','join','_findSuggestions','formatInline','insertion:chain','add','isLimit','suggestionChanged','splice','_defaultCallbacks','creator','then','notReady','previous','setAttribute','root','suggestion','ck-suggestion-marker','config','markerToData'];(function(_0x5523b9,_0x495883){const _0x7504f4=function(_0x3d6fc8){while(--_0x3d6fc8){_0x5523b9['push'](_0x5523b9['shift']());}};_0x7504f4(++_0x495883);}(_0x4958,0x1c9));const _0x7504=function(_0x5523b9,_0x495883){_0x5523b9=_0x5523b9-0x0;let _0x7504f4=_0x4958[_0x5523b9];return _0x7504f4;};import{Plugin as _0x30b95d,PendingActions as _0x4004c4}from'ckeditor5/src/core';import{LiveRange as _0x3d2980}from'ckeditor5/src/engine';import{CKEditorError as _0x1d1de9,uid as _0x388e22,priorities as _0x1cae88,logWarning as _0x57acab}from'ckeditor5/src/utils';import{toWidget as _0x4dbb38}from'ckeditor5/src/widget';import{Users as _0xd3db26,hashObject as _0x14fa2d}from'ckeditor5-collaboration/src/collaboration-core';import _0x15bc6b from'./commands/trackchangescommand';import _0x195104 from'./commands/acceptsuggestioncommand';import _0xc8292c from'./commands/discardsuggestioncommand';import _0x4dceee from'./commands/executeonallsuggestionscommand';import _0x495356 from'./commands/executeonselectedsuggestionscommand';import _0x371c78 from'./suggestion';import _0x22902e from'./suggestiondescriptionfactory';import _0x484446 from'./integrations/alignment';import _0x2e665b from'./integrations/basicstyles';import _0x528587 from'./integrations/blockquote';import _0x97a946 from'./integrations/ckbox';import _0x3c07c9 from'./integrations/codeblock';import _0x5631fa from'./integrations/comments';import _0x541d85 from'./integrations/deletecommand';import _0x28518d from'./integrations/documentlist';import _0x4cf19c from'./integrations/entercommand';import _0x421c26 from'./integrations/findandreplace';import _0x3afda2 from'./integrations/font';import _0x216952 from'./integrations/formatpainter';import _0x3c9e7c from'./integrations/heading';import _0x130130 from'./integrations/highlight';import _0x450118 from'./integrations/horizontalline';import _0x3f1675 from'./integrations/htmlembed';import _0xa35434 from'./integrations/image';import _0x3ae5b6 from'./integrations/imagereplace';import _0x22e3bf from'./integrations/importword';import _0x59772b from'./integrations/indent';import _0x4ab31c from'./integrations/inputcommand';import _0x3a8bcd from'./integrations/link';import _0x47dfd7 from'./integrations/list';import _0x308acd from'./integrations/listproperties';import _0x23db37 from'./integrations/mediaembed';import _0x4fd7f0 from'./integrations/mention';import _0x4e5854 from'./integrations/pagebreak';import _0x364769 from'./integrations/paragraph';import _0x4897e1 from'./integrations/removeformat';import _0x445159 from'./integrations/restrictededitingmode';import _0x1bea43 from'./integrations/shiftentercommand';import _0xf132ca from'./integrations/standardeditingmode';import _0x2852e2 from'./integrations/style';import _0x3a2ed8 from'./integrations/table';import _0xa87096 from'./integrations/tablemergesplit';import _0x4542c8 from'./integrations/tableheadings';import _0x58832d from'./integrations/tableclipboard';import _0xd26503 from'./integrations/tablecolumnresize';import _0x26ac69 from'./integrations/template';import _0x3f9a9a from'./integrations/tableofcontents';import _0x4881fa from'./integrations/title';import _0x15b979 from'./integrations/undo';import{getTranslation as _0x1607e6}from'./utils/common-translations';import _0x231ca1 from'./integrations/tablecaption';import _0x49eb47 from'./integrations/documentlistproperties';import _0xa97607 from'./integrations/tableproperties';export default class p extends _0x30b95d{static get[_0x7504('0x111')](){return[_0x7504('0x7a'),_0xd3db26,_0x4004c4,_0x484446,_0x2e665b,_0x528587,_0x97a946,_0x3c07c9,_0x5631fa,_0x541d85,_0x28518d,_0x49eb47,_0x4cf19c,_0x421c26,_0x3afda2,_0x216952,_0x3c9e7c,_0x130130,_0x450118,_0x3f1675,_0xa35434,_0x3ae5b6,_0x22e3bf,_0x59772b,_0x4ab31c,_0x3a8bcd,_0x47dfd7,_0x308acd,_0x23db37,_0x4fd7f0,_0x4e5854,_0x364769,_0x4897e1,_0x445159,_0x1bea43,_0xf132ca,_0x2852e2,_0x3a2ed8,_0xa87096,_0x4542c8,_0x231ca1,_0x58832d,_0xd26503,_0x3f9a9a,_0xa97607,_0x26ac69,_0x4881fa,_0x15b979];}static get[_0x7504('0x110')](){return _0x7504('0x5e');}constructor(_0x176097){function _0x413cc0(_0x3cc423){return _0x3cc423[_0x7504('0x43')](_0x1186c8=>String['fromCharCode'](_0x1186c8))[_0x7504('0x96')]('');}super(_0x176097),this[_0x7504('0x85')](_0x7504('0x6f'),[]),this['on'](_0x7504('0xc8'),(_0x18ed36,_0x567fbd,_0x5920dc,_0x362b7f)=>{this[_0x7504('0x82')][_0x7504('0x81')](()=>{for(const _0x56492b of[..._0x362b7f,..._0x5920dc])this[_0x7504('0x82')][_0x7504('0xb8')]['has'](_0x56492b)&&_0x176097['editing'][_0x7504('0x6b')](_0x56492b);});}),this[_0x7504('0x12e')]=new _0x22902e(this[_0x7504('0xaf')]['model'][_0x7504('0x1')],this[_0x7504('0xaf')][_0x7504('0xcd')]),this[_0x7504('0x126')]=null,this[_0x7504('0x11c')]=new Dt(this['editor']),this[_0x7504('0x10e')]=new Map(),this['_commentsRepository']=_0x176097[_0x7504('0x16')][_0x7504('0x136')](_0x7504('0x7a')),this[_0x7504('0x30')]=new Set(),this['_model']=this[_0x7504('0xaf')][_0x7504('0x1a')],this[_0x7504('0x11')]=new WeakMap(),this[_0x7504('0xf5')]=!0x1,_0x176097[_0x7504('0xa7')][_0x7504('0x3')](_0x7504('0xd3'),_0x7504('0x135')),this[_0x7504('0x127')]=_0x176097[_0x7504('0xa7')][_0x7504('0x136')]('trackChanges.trackFormatChanges'),_0x176097[_0x7504('0xa7')][_0x7504('0x3')](_0x7504('0xd9'),!0x0),this[_0x7504('0x6d')]=_0x176097[_0x7504('0xa7')][_0x7504('0x136')](_0x7504('0xd9')),this[_0x7504('0xc6')]=new _0x15bc6b(_0x176097,this['_enabledCommands']),this[_0x413cc0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x413cc0([0x34,0x30,0x34,0x36,0x31,0x34,0x32,0x32]);}[_0x7504('0x60')](){const _0x3ce101=this['editor'];_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')]('editingDowncast')[_0x7504('0x15')]({'model':_0x7504('0xa5'),'view':_0x5b0b59=>{const {id:_0x3813b2,type:_0x204302}=this[_0x7504('0x137')](_0x5b0b59['markerName']),_0x2cf03a=[_0x7504('0xa6'),_0x7504('0xdd')+_0x204302];let _0x5357fc=0xbb8;return this[_0x7504('0x6f')]['includes'](_0x5b0b59[_0x7504('0x100')])&&(_0x2cf03a[_0x7504('0x39')]('ck-suggestion-marker--active'),_0x5357fc=0xbc2),_0x7504('0x120')==_0x204302&&(_0x5357fc+=0x5),{'classes':_0x2cf03a,'attributes':{'data-suggestion':_0x3813b2},'priority':_0x5357fc};}}),_0x3ce101['conversion'][_0x7504('0xd7')](_0x7504('0xa9'))[_0x7504('0x9a')](_0x345a3f=>{_0x345a3f['on'](_0x7504('0x1f'),(_0x2ad237,_0x4bd591,_0x2f22ab)=>{if(!_0x2f22ab[_0x7504('0x78')][_0x7504('0xad')])return;const _0x97bcd9=_0x4bd591[_0x7504('0x116')];if(!_0x97bcd9)return;const _0x100063=_0x2f22ab[_0x7504('0x7f')]['toViewElement'](_0x97bcd9);_0x3ce101['model']['schema']['isObject'](_0x97bcd9)&&_0x100063&&!_0x100063[_0x7504('0x47')](_0x7504('0x124'))&&_0x100063['is'](_0x7504('0xe4'))&&_0x4dbb38(_0x100063,_0x2f22ab[_0x7504('0xd2')]);},{'priority':_0x7504('0x6c')});}),_0x3ce101[_0x7504('0x80')]['for']('dataDowncast')['markerToHighlight']({'model':_0x7504('0xa5'),'view':(_0x149a3e,_0x322827)=>{if(!_0x322827[_0x7504('0x78')][_0x7504('0xad')])return null;const {type:_0x496faf}=this['_splitMarkerName'](_0x149a3e[_0x7504('0x100')]);return{'classes':[_0x7504('0xa6'),_0x7504('0xdd')+_0x496faf],'priority':0xbb8};}});const _0x40031b=({showActiveMarkers:_0x2d0607=!0x0}={})=>(_0x583781,_0x3b64e3,_0x265b02)=>{if(!_0x3b64e3['item'])return;if(_0x3b64e3[_0x7504('0x116')]['is'](_0x7504('0xb1')))return void _0x265b02['consumable'][_0x7504('0x63')](_0x3b64e3['item'],_0x583781['name']);const _0x1489aa=_0x265b02[_0x7504('0x7f')]['toViewElement'](_0x3b64e3[_0x7504('0x116')]);if(!(_0x3b64e3[_0x7504('0x116')]['is'](_0x7504('0x3f'))&&_0x3ce101[_0x7504('0x1a')][_0x7504('0x1')]['isBlock'](_0x3b64e3['item'])&&!_0x1489aa['getCustomProperty']('addHighlight')))return;const {id:_0x1f2e4b}=this['_splitMarkerName'](_0x3b64e3[_0x7504('0x100')]);_0x265b02[_0x7504('0xd2')][_0x7504('0x133')]([_0x7504('0xa6'),_0x7504('0x2c')],_0x1489aa),_0x265b02['writer'][_0x7504('0xa3')](_0x7504('0x73'),_0x1f2e4b,_0x1489aa),_0x265b02[_0x7504('0x7f')][_0x7504('0x56')](_0x1489aa,_0x3b64e3[_0x7504('0x100')]),_0x2d0607&&(this['activeMarkers']['includes'](_0x3b64e3[_0x7504('0x100')])?_0x265b02[_0x7504('0xd2')][_0x7504('0x133')](_0x7504('0x77'),_0x1489aa):_0x265b02[_0x7504('0xd2')][_0x7504('0x8c')]('ck-suggestion-marker--active',_0x1489aa));for(const _0x4520a0 of _0x3ce101[_0x7504('0x1a')][_0x7504('0x74')](_0x3b64e3[_0x7504('0x116')])[_0x7504('0xc2')]())_0x265b02[_0x7504('0x3d')][_0x7504('0x63')](_0x4520a0,_0x583781['name']);_0x265b02['consumable']['consume'](_0x3b64e3[_0x7504('0x116')],_0x583781['name']);};_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')](_0x7504('0xa9'))[_0x7504('0x9a')](_0x4d2fcb=>{_0x4d2fcb['on']('addMarker:suggestion:formatBlock',(_0x31bfca,_0x15c782,_0x16dc21)=>{_0x16dc21[_0x7504('0x78')][_0x7504('0xad')]&&_0x40031b({'showActiveMarkers':!0x1})(_0x31bfca,_0x15c782,_0x16dc21);},{'priority':'highest'});}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')]('dataDowncast')[_0x7504('0xa8')]({'model':_0x7504('0xa5'),'view':(_0x38fa5b,_0x4a5500)=>_0x4a5500[_0x7504('0x78')][_0x7504('0xad')]?null:{'group':_0x7504('0xa5'),'name':_0x38fa5b[_0x7504('0xf6')](0xb)}}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')](_0x7504('0x4'))[_0x7504('0xbc')]({'view':{'name':_0x7504('0xa5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x410877,{writer:_0x2608a4})=>{let _0x7a68d1=_0x7504('0xf3')+_0x410877['getAttribute'](_0x7504('0xe8'))+':'+_0x410877[_0x7504('0x57')]('id');return _0x410877[_0x7504('0x57')](_0x7504('0xe9'))&&(_0x7a68d1+=':'+_0x410877[_0x7504('0x57')](_0x7504('0xe9'))),_0x2608a4['createElement']('$marker',{'data-name':_0x7a68d1});}}),_0x3ce101['conversion']['for'](_0x7504('0x4'))[_0x7504('0x105')]({'view':'suggestion'}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')](_0x7504('0x5a'))[_0x7504('0x9a')](_0x19e86f=>{_0x19e86f['on'](_0x7504('0x108'),_0x40031b(),{'priority':'high'});}),_0x3ce101[_0x7504('0x80')][_0x7504('0xd7')]('editingDowncast')['add'](_0x346447=>{_0x346447['on']('removeMarker:suggestion:formatBlock',(_0x3e9376,_0x502ad2,_0x1ecf7c)=>{const _0x5831c0=_0x1ecf7c[_0x7504('0x7f')][_0x7504('0x13')](_0x502ad2[_0x7504('0x100')]);if(_0x5831c0)for(const _0x5debb0 of _0x5831c0)_0x5debb0[_0x7504('0x47')](_0x7504('0x5f'))||(_0x1ecf7c[_0x7504('0xd2')][_0x7504('0x8c')]([_0x7504('0xa6'),_0x7504('0x2c'),_0x7504('0x77')],_0x5debb0),_0x1ecf7c['writer'][_0x7504('0x58')](_0x7504('0x73'),_0x5debb0),_0x1ecf7c[_0x7504('0x7f')]['unbindElementFromMarkerName'](_0x5debb0,_0x502ad2['markerName']));},{'priority':_0x7504('0x6c')});}),_0x3ce101[_0x7504('0x1a')][_0x7504('0xfb')]['registerPostFixer'](_0x563cb8=>{let _0x4a146f=!0x1;const _0x39e75f=Array[_0x7504('0x31')](_0x3ce101[_0x7504('0x1a')]['document'][_0x7504('0x109')][_0x7504('0xe')]()),_0x3b69a2=new Set();for(const {name:_0x30848f,data:_0x2075b2}of _0x39e75f){const {group:_0x29c5e0,type:_0x33ca9f,id:_0x9e0cbe}=this['_splitMarkerName'](_0x30848f);if(_0x7504('0xa5')!==_0x29c5e0)continue;const _0x563524=this['_suggestions'][_0x7504('0x136')](_0x9e0cbe);if(null!=_0x2075b2[_0x7504('0x132')]){'formatInline'==_0x33ca9f&&(_0x4a146f=_0x4a146f||Mt(_0x2075b2[_0x7504('0x132')],_0x30848f,_0x563cb8,_0x3ce101['model'][_0x7504('0x1')]));if(_0x2075b2['newRange'][_0x7504('0x12b')]||_0x7504('0x45')==_0x2075b2[_0x7504('0x132')][_0x7504('0xa4')][_0x7504('0xef')]||'formatBlock'==_0x33ca9f&&!Nt(_0x2075b2[_0x7504('0x132')])||_0x7504('0x120')==_0x33ca9f&&!(!_t(_0x15724e=_0x2075b2[_0x7504('0x132')])&&!function(_0x5395df){return _0x5395df[_0x7504('0x7e')][_0x7504('0x2a')]==_0x5395df[_0x7504('0x4d')][_0x7504('0xb3')]&&_0x5395df[_0x7504('0x7e')][_0x7504('0x6e')];}(_0x15724e)))_0x563cb8[_0x7504('0xae')](_0x30848f),_0x4a146f=!0x0;else{if(!_0x563524||!_0x563524[_0x7504('0x40')])continue;_0x3b69a2['add'](_0x563524);}}}var _0x15724e;return _0x3b69a2[_0x7504('0xfc')]>0x0&&(_0x4a146f=!!this['_joinWithAdjacentSuggestions'](_0x3b69a2)||_0x4a146f),_0x4a146f;}),_0x3ce101[_0x7504('0x1a')][_0x7504('0xfb')][_0x7504('0x138')](_0xd3398=>{let _0x45a970=!0x1;for(const _0x45f72f of _0x3ce101[_0x7504('0x1a')]['document']['differ']['getChanges']()){if(_0x7504('0x1b')!=_0x45f72f[_0x7504('0xf7')])continue;const _0x5bcd4a=_0x45f72f['position'][_0x7504('0xd8')](_0x45f72f[_0x7504('0xbf')]);if(_0x5bcd4a[_0x7504('0x6e')])for(const _0x128830 of this[_0x7504('0x10e')]['values']()){if(_0x128830[_0x7504('0x72')]||!_0x128830[_0x7504('0x40')])continue;if(_0x7504('0x119')!=_0x128830[_0x7504('0xf7')])continue;const _0x1903f0=_0x128830[_0x7504('0x22')]();if(_0x1903f0[_0x7504('0x7e')][_0x7504('0x2a')]!=_0x1903f0['end']['parent']&&_0x1903f0[_0x7504('0x4d')][_0x7504('0xde')](_0x45f72f['position'])){const _0x565f05=_0x3ce101['model'][_0x7504('0x26')](_0x1903f0[_0x7504('0x7e')],_0x5bcd4a);_0xd3398['updateMarker'](_0x128830['getFirstMarker'](),{'range':_0x565f05}),_0x45a970=!0x0;}}}return _0x45a970;}),_0x3ce101[_0x7504('0x1a')][_0x7504('0xb8')]['on'](_0x7504('0x10f'),(_0x416770,_0x40f1e1,_0xa606c0)=>{if(null==_0xa606c0){const {id:_0x40c6e9}=this[_0x7504('0x137')](_0x40f1e1[_0x7504('0xa')]),_0x19269b=this[_0x7504('0x10e')][_0x7504('0x136')](_0x40c6e9);_0x19269b&&_0x19269b['addMarkerName'](_0x40f1e1[_0x7504('0xa')]);}}),_0x3ce101[_0x7504('0x1a')]['document']['on'](_0x7504('0x19'),()=>{const _0x2f2c1d=Array[_0x7504('0x31')](_0x3ce101[_0x7504('0x1a')][_0x7504('0xfb')][_0x7504('0x109')][_0x7504('0xe')]())['filter'](_0x361bca=>'suggestion'===this['_splitMarkerName'](_0x361bca[_0x7504('0xa')])[_0x7504('0x44')]);if(0x0===_0x2f2c1d['length'])return;_0x2f2c1d[_0x7504('0x123')]((_0x3f3176,_0x21da3d)=>{const _0x1b153f=_0x3f3176[_0x7504('0x11a')]['oldRange'],_0x292066=_0x21da3d[_0x7504('0x11a')]['oldRange'];return null===_0x1b153f&&null===_0x292066?0x0:null===_0x1b153f&&null!==_0x292066?-0x1:null!==_0x1b153f&&null===_0x292066?0x1:_0x1b153f[_0x7504('0x7e')][_0x7504('0xbe')](_0x292066[_0x7504('0x7e')])?-0x1:0x1;});const _0x461ad9=new Set(),_0x449e63=new Set();for(const {name:_0x1a3366,data:_0x176345}of _0x2f2c1d){const {id:_0x4378de}=this[_0x7504('0x137')](_0x1a3366);if(null===_0x176345[_0x7504('0x65')]){const _0x3fc132=this[_0x7504('0x32')](_0x1a3366);_0x449e63[_0x7504('0x9a')](_0x3fc132);}else{const _0x328baa=this['_suggestions'][_0x7504('0x136')](_0x4378de);null!==_0x176345[_0x7504('0x132')]||_0x328baa[_0x7504('0x40')]?(_0x461ad9[_0x7504('0x9a')](_0x328baa[_0x7504('0xc9')]),_0x449e63['add'](_0x328baa)):this[_0x7504('0x10')](_0x328baa);}}_0x449e63['size']>0x0&&this[_0x7504('0x75')](_0x449e63);for(const _0x339e3b of _0x461ad9)this['fire'](_0x7504('0x9c'),_0x339e3b);}),_0x3ce101[_0x7504('0x1a')]['on'](_0x7504('0xc'),(_0x41178a,_0x53b088)=>{const _0x1c66b3=_0x53b088[0x0];if(!this[_0x7504('0x10e')][_0x7504('0xfc')])return;if(!_0x1c66b3['isDocumentOperation'])return;if(_0x1c66b3[_0x7504('0x4a')][_0x7504('0x52')]||!_0x1c66b3[_0x7504('0x4a')][_0x7504('0x129')])return;let _0x2c6344,_0x19fe3e;switch(_0x1c66b3[_0x7504('0xf7')]){case _0x7504('0x1b'):_0x2c6344=_0x3ce101['model'][_0x7504('0x5c')](_0x1c66b3[_0x7504('0x34')]),_0x19fe3e=_0x2c6344[_0x7504('0xd8')](_0x1c66b3['howMany']);break;case _0x7504('0xcb'):_0x2c6344=_0x3ce101[_0x7504('0x1a')][_0x7504('0x5c')](_0x1c66b3[_0x7504('0x1d')]),_0x19fe3e=_0x3ce101[_0x7504('0x1a')][_0x7504('0x5c')](_0x1c66b3['moveTargetPosition']);break;case _0x7504('0xfe'):_0x2c6344=_0x3ce101[_0x7504('0x1a')]['createPositionAt'](_0x1c66b3[_0x7504('0x118')]),_0x19fe3e=_0x2c6344[_0x7504('0xd8')](_0x1c66b3['howMany']);break;default:return;}const _0x550e33=_0x3ce101[_0x7504('0x1a')][_0x7504('0x26')](_0x2c6344,_0x19fe3e);_0x3ce101[_0x7504('0x1a')]['change'](()=>{for(const {suggestion:_0x3fda46,meta:_0x2f9ed9}of this[_0x7504('0x97')](_0x550e33)){if(_0x3fda46['isMultiRange'])continue;if(_0x7504('0x98')==_0x3fda46[_0x7504('0xf7')])continue;const _0x44652a=_0x3fda46[_0x7504('0x11a')]&&_0x3fda46[_0x7504('0x11a')]['multipleBlocks'];(_0x7504('0x119')!=_0x3fda46[_0x7504('0xf7')]||'split'==_0x1c66b3[_0x7504('0xf7')]&&!_0x44652a)&&(_0x2f9ed9[_0x7504('0x11d')]||_0x7504('0x12f')==_0x3fda46[_0x7504('0xf7')]&&_0x2f9ed9[_0x7504('0x5d')]||_0x3fda46[_0x7504('0x22')]()[_0x7504('0x88')](_0x550e33)&&this[_0x7504('0x17')](_0x3fda46,_0x2c6344,_0x19fe3e));}});},{'priority':_0x7504('0x4f')}),_0x3ce101[_0x7504('0x1a')]['on'](_0x7504('0x102'),(_0x53e716,_0x4a27e1)=>{const _0x5206bb=_0x4a27e1[0x0],_0x174701=_0x4a27e1[0x1];if(_0x174701&&_0x174701[_0x7504('0x24')])return;if(this[_0x7504('0xf5')])return;if(!this['trackChangesCommand'][_0x7504('0x21')])return;if(_0x5206bb[_0x7504('0x12b')])return;const _0x1a87cb=_0x3ce101[_0x7504('0x1a')][_0x7504('0x1')],{start:_0x3ca59f,end:_0x2fcb7d}=_0x5206bb['getFirstRange'](),_0xde4bf4=_0x3ca59f[_0x7504('0x2')]&&_0x1a87cb[_0x7504('0x9b')](_0x3ca59f[_0x7504('0x2')])?null:_0x1a87cb['getNearestSelectionRange'](_0x3ca59f,'forward'),_0x28560f=_0x2fcb7d[_0x7504('0xb3')]&&_0x1a87cb[_0x7504('0x9b')](_0x2fcb7d['nodeBefore'])?null:_0x1a87cb['getNearestSelectionRange'](_0x2fcb7d,_0x7504('0x69')),_0x2eaebd=_0x3ce101[_0x7504('0x1a')][_0x7504('0x26')](_0xde4bf4?_0xde4bf4['start']:_0x3ca59f,_0x28560f?_0x28560f[_0x7504('0x4d')]:_0x2fcb7d);_0x3ce101[_0x7504('0x1a')][_0x7504('0x81')](_0x5832d2=>{this[_0x7504('0x11f')](_0x2eaebd);const _0x12b17d=_0x3ce101['model']['schema'][_0x7504('0x90')](_0x2eaebd['start']);_0x5206bb['is']('documentSelection')?_0x5832d2[_0x7504('0x35')](_0x12b17d):_0x5206bb['setTo'](_0x12b17d);}),_0x53e716['stop']();},{'priority':_0x1cae88['normal']+0xa}),_0x3ce101[_0x7504('0x1a')]['on']('insertContent',(_0x251a6b,_0xb18c20)=>{const _0x4802d4=_0xb18c20[_0xb18c20[_0x7504('0xbf')]-0x1];_0x4802d4&&_0x4802d4['forceDefaultExecution']||this[_0x7504('0xf5')]||this['trackChangesCommand']['value']&&(_0x3ce101[_0x7504('0x1a')]['change'](()=>{let _0x4d434d=_0x3ce101['model'][_0x7504('0x122')](_0xb18c20[0x0],_0xb18c20[0x1],_0xb18c20[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d434d)return;_0x251a6b[_0x7504('0x95')]=_0x4d434d[_0x7504('0xfd')]();const _0x5eb560=_0x4d434d[_0x7504('0x4d')][_0x7504('0xb3')],_0x172131=_0x3ce101[_0x7504('0x1a')][_0x7504('0x1')];_0x5eb560&&_0x172131[_0x7504('0x71')](_0x5eb560)&&!_0x172131[_0x7504('0xfa')](_0x5eb560)&&(_0x4d434d=_0x3ce101[_0x7504('0x1a')][_0x7504('0x26')](_0x4d434d[_0x7504('0x7e')],_0x3ce101[_0x7504('0x1a')][_0x7504('0x5c')](_0x5eb560,_0x7504('0x4d')))),this[_0x7504('0xed')](_0x4d434d);}),_0x251a6b[_0x7504('0x112')]());},{'priority':_0x7504('0x6c')}),this[_0x7504('0xaf')][_0x7504('0x53')]['add']('trackChanges',this[_0x7504('0xc6')]),this['enableCommand']('trackChanges');const _0x566a5b=new _0x195104(_0x3ce101,this[_0x7504('0x10e')]);_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')](_0x7504('0xee'),_0x566a5b),this[_0x7504('0x68')](_0x7504('0xee'));const _0x3029ea=new _0xc8292c(_0x3ce101,this[_0x7504('0x10e')]);_0x3ce101[_0x7504('0x53')]['add'](_0x7504('0x38'),_0x3029ea),this[_0x7504('0x68')](_0x7504('0x38')),_0x3ce101['commands'][_0x7504('0x9a')](_0x7504('0xc1'),new _0x4dceee(_0x3ce101,_0x566a5b,this[_0x7504('0x10e')])),this['enableCommand'](_0x7504('0xc1')),_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')]('discardAllSuggestions',new _0x4dceee(_0x3ce101,_0x3029ea,this[_0x7504('0x10e')])),this[_0x7504('0x68')](_0x7504('0xea')),_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')]('acceptSelectedSuggestions',new _0x495356(_0x3ce101,_0x566a5b,this[_0x7504('0x10e')])),this[_0x7504('0x68')]('acceptSelectedSuggestions'),_0x3ce101[_0x7504('0x53')][_0x7504('0x9a')](_0x7504('0x128'),new _0x495356(_0x3ce101,_0x3029ea,this[_0x7504('0x10e')])),this[_0x7504('0x68')](_0x7504('0x128'));const _0x4ec736=_0x3ce101[_0x7504('0x16')][_0x7504('0x136')]('CommentsRepository');this[_0x7504('0x10c')](_0x4ec736,_0x7504('0x50'),(_0xd40ed6,{threadId:_0x4b5fa7})=>{const _0x27b777=this[_0x7504('0x10e')]['get'](_0x4b5fa7);_0x27b777&&_0x27b777[_0x7504('0x83')]&&0x1===_0x27b777[_0x7504('0x83')][_0x7504('0xbf')]&&this[_0x7504('0xd6')](_0x4b5fa7,{'hasComments':!0x0});},{'priority':'low'}),this[_0x7504('0x10c')](_0x4ec736,_0x7504('0x23'),(_0x31611f,{threadId:_0x4db288})=>{const _0x482b8f=this[_0x7504('0x10e')][_0x7504('0x136')](_0x4db288);_0x482b8f&&_0x482b8f[_0x7504('0x83')]&&!_0x482b8f[_0x7504('0x83')][_0x7504('0xbf')]&&this['_updateSuggestionData'](_0x4db288,{'hasComments':!0x1});},{'priority':_0x7504('0x125')});}set[_0x7504('0xac')](_0x257285){if(this[_0x7504('0x126')])throw new _0x1d1de9('track-changes-adapter-already-set',this);this['_adapter']=_0x257285;}get[_0x7504('0xac')](){return this[_0x7504('0x126')];}[_0x7504('0x106')]({skipNotAttached:_0x421176=!0x1,toJSON:_0x24deaa=!0x1}={}){const _0x78f5d0=[];for(const _0x46f69b of this[_0x7504('0x10e')][_0x7504('0x55')]())_0x421176&&!_0x46f69b['isInContent']||_0x78f5d0[_0x7504('0x39')](_0x46f69b);return _0x24deaa?_0x78f5d0[_0x7504('0x43')](_0x679c3f=>_0x679c3f['toJSON']()):_0x78f5d0;}[_0x7504('0xaa')](_0x124c5c){const _0x14d9d3=this[_0x7504('0x10e')][_0x7504('0x136')](_0x124c5c);if(!_0x14d9d3)throw new _0x1d1de9('track-changes-suggestion-not-found',this);return _0x14d9d3;}['hasSuggestion'](_0x7b5eee){return this[_0x7504('0x10e')][_0x7504('0x7d')](_0x7b5eee);}[_0x7504('0x1e')](_0x437bc2){const {authorId:_0x5e365b,id:_0x46d73d,attributes:_0x2d8042}=_0x437bc2,[_0xc03f12,_0x4e033b]=_0x437bc2[_0x7504('0xf7')][_0x7504('0xcb')](':'),_0x498368=this[_0x7504('0x10e')][_0x7504('0x136')](_0x46d73d)||this['_createSuggestion'](_0xc03f12,_0x4e033b,_0x46d73d,_0x5e365b,_0x2d8042);if(this[_0x7504('0xcc')](_0x498368),this[_0x7504('0x10d')](_0x498368,_0xc03f12,_0x4e033b||null,_0x5e365b),_0x498368['createdAt']=_0x437bc2[_0x7504('0x10b')],_0x2d8042&&_0x2d8042[_0x7504('0x27')]){const _0x10dcd6=_0x2d8042[_0x7504('0x27')],_0x31277b=this[_0x7504('0x89')](_0x10dcd6[_0x7504('0xd')]);_0x498368[_0x7504('0x8')]=_0x10dcd6['createdAt'],_0x498368[_0x7504('0x18')]=_0x31277b,_0x498368[_0x7504('0x20')]=!0x0;}else _0x498368[_0x7504('0x8')]=_0x437bc2[_0x7504('0x10b')];switch(_0x437bc2[_0x7504('0x11a')]&&(_0x498368[_0x7504('0x11a')]=_0x437bc2['data']),_0x437bc2[_0x7504('0xb6')]&&(_0x498368[_0x7504('0xb6')]=_0x437bc2[_0x7504('0xb6')]),this[_0x7504('0x126')]&&this[_0x7504('0x126')][_0x7504('0xd1')]||(_0x498368[_0x7504('0x36')]=!0x0),this[_0x7504('0x11')][_0x7504('0x136')](_0x498368)){case _0x7504('0xa1'):this[_0x7504('0x11')][_0x7504('0x85')](_0x498368,_0x7504('0x7'));break;case _0x7504('0xb0'):_0x498368['isInContent']?(this[_0x7504('0x11')][_0x7504('0x85')](_0x498368,_0x7504('0xf2')),this[_0x7504('0x2f')]('suggestionLoaded',_0x498368)):this['_suggestionState'][_0x7504('0x85')](_0x498368,'removed');}return _0x498368;}['acceptSuggestion'](_0x2ae11f){this[_0x7504('0x24')](()=>{this['editor'][_0x7504('0x1a')]['change'](()=>{for(const _0x128f50 of _0x2ae11f['getAllAdjacentSuggestions']())_0x128f50['accept']();});});}['discardSuggestion'](_0x2e4b0f){this[_0x7504('0x24')](()=>{this[_0x7504('0xaf')]['model'][_0x7504('0x81')](()=>{for(const _0x5abcf8 of _0x2e4b0f[_0x7504('0x2b')]())_0x5abcf8[_0x7504('0xd5')]();});});}[_0x7504('0x68')](_0x1fea85,_0x300314){const _0x141872=this[_0x7504('0xaf')]['commands'][_0x7504('0x136')](_0x1fea85);if(!_0x141872)throw new _0x1d1de9('track-changes-command-not-found',this,{'commandName':_0x1fea85});this[_0x7504('0x30')][_0x7504('0x9a')](_0x141872),_0x300314&&_0x141872['on'](_0x7504('0x12'),(_0xe79b2d,_0x508983)=>{this[_0x7504('0xc6')][_0x7504('0x21')]&&(this['_isForcedDefaultExecutionBlock']||_0x508983[_0x7504('0xbf')]>0x0&&_0x508983[_0x508983[_0x7504('0xbf')]-0x1]&&_0x508983[_0x508983[_0x7504('0xbf')]-0x1][_0x7504('0x24')]||(_0x300314((..._0x277a26)=>_0x141872[_0x7504('0x12')](..._0x277a26,{'forceDefaultExecution':!0x0}),..._0x508983),_0xe79b2d[_0x7504('0x112')]()));},{'priority':_0x7504('0x6c')});}['forceDefaultExecution'](_0x2985ff){let _0x8c8992,_0x2f4edc;const _0x1b9452=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x8c8992=_0x2985ff();}catch(_0x2355d0){_0x2f4edc=_0x2355d0;}return _0x1b9452||(this[_0x7504('0xf5')]=!0x1),_0x2f4edc&&_0x1d1de9[_0x7504('0xc3')](_0x2f4edc,this),_0x8c8992;}[_0x7504('0xed')](_0x346024,_0x1e05c2=null,_0x1d1c94={}){if(_0x346024[_0x7504('0x12b')])return null;const _0x1a049a=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'];for(const {suggestion:_0xe109f5,meta:_0x298358}of this[_0x7504('0x97')](_0x346024,'insertion'))if(_0x298358[_0x7504('0x5d')]){if(!_0x298358['isNextTo']){if(!this[_0x7504('0x6d')]&&_0x298358['containsRangeInObject'])continue;return _0xe109f5;}if(_0x1e05c2==_0xe109f5[_0x7504('0xf4')]){const _0xe7edfc=_0xe109f5[_0x7504('0x22')]();return _0xe7edfc[_0x7504('0x7e')][_0x7504('0xde')](_0x346024[_0x7504('0x4d')])?this[_0x7504('0xce')](_0xe109f5,this[_0x7504('0x82')][_0x7504('0x26')](_0x346024[_0x7504('0x7e')],_0xe7edfc[_0x7504('0x4d')])):this[_0x7504('0xce')](_0xe109f5,this[_0x7504('0x82')]['createRange'](_0xe7edfc[_0x7504('0x7e')],_0x346024[_0x7504('0x4d')])),_0xe109f5;}}const _0x5a131b=_0x388e22(),_0x349aa4=_0x1a049a['id'],_0x59d37d=_0x1e05c2?_0x7504('0x12c')+_0x1e05c2:'insertion',_0x5c75be=this['_setSuggestionData']({'id':_0x5a131b,'type':_0x59d37d,'createdAt':new Date(),'authorId':_0x349aa4,'attributes':_0x1d1c94});return this[_0x7504('0xe1')](_0x59d37d,_0x5a131b,_0x349aa4,_0x346024),_0x5c75be;}[_0x7504('0x3b')](_0x50a726,_0x8c7149=_0x7504('0x3e'),_0x30e43a={}){const _0x4dab85=this['editor'][_0x7504('0x16')]['get'](_0x7504('0xb'))['me'],_0xb5ca18=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x12f'),_0x8c7149,_0x7504('0x96'));for(const _0x4f6cb0 of this[_0x7504('0x106')]())if(_0x4f6cb0[_0x7504('0x18')]['id']==_0x4dab85['id']&&_0x7504('0x12f')==_0x4f6cb0[_0x7504('0xf7')]&&_0x4f6cb0['subType']==_0x8c7149&&(_0xb5ca18(_0x4f6cb0[_0x7504('0x92')](),_0x50a726)||_0xb5ca18(_0x50a726,_0x4f6cb0[_0x7504('0x92')]()))){for(const _0x528571 of _0x50a726)_0x4f6cb0['addRange'](_0x528571);return _0x4f6cb0;}if(this[_0x7504('0x6d')])for(const _0x3428ce of _0x50a726)for(const {suggestion:_0x52c6cf,meta:_0x489f02}of this[_0x7504('0x97')](_0x3428ce,'insertion')){if(!_0x489f02['isOwn'])continue;let _0x353ae2=!0x0;for(const _0xfc153e of _0x52c6cf['getRanges']())for(const _0x2821f5 of _0x50a726)if(!_0xfc153e['containsRange'](_0x2821f5)){_0x353ae2=!0x1;break;}if(_0x353ae2)return _0x52c6cf;}const _0x2a22a3=_0x388e22(),_0x590b26=_0x4dab85['id'],_0x5dae95=_0x7504('0x12c')+_0x8c7149,_0x418c52=this['_setSuggestionData']({'id':_0x2a22a3,'type':_0x5dae95,'createdAt':new Date(),'authorId':_0x590b26,'attributes':_0x30e43a});for(const _0x540162 of _0x50a726)this[_0x7504('0xe1')](_0x5dae95,_0x2a22a3,_0x590b26,_0x540162,_0x371c78['getMultiRangeId']());return _0x418c52;}[_0x7504('0x12d')](_0x5b6ad4,_0x2570c1,_0x246bcc=null,_0x5d7ee6={}){if(_0x246bcc=_0x246bcc||$t(_0x2570c1),_0x5b6ad4['isCollapsed'])return null;if(_0x7504('0x84')===this[_0x7504('0x127')]){const _0x43a0cf=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x98'),_0x246bcc,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x43a0cf([_0x5b6ad4],_0x2570c1,_0x5d7ee6)),null;}const _0x59d115=this[_0x7504('0xaf')][_0x7504('0x16')]['get'](_0x7504('0xb'))['me'],_0x4f8cc9=[];if(_0x7504('0x14')!==this[_0x7504('0x127')])for(const {suggestion:_0x592594,meta:_0x462c29}of this[_0x7504('0x97')](_0x5b6ad4,'insertion'))_0x462c29[_0x7504('0x5d')]&&!_0x462c29[_0x7504('0x93')]&&_0x4f8cc9[_0x7504('0x39')](..._0x592594[_0x7504('0x92')]());const _0x362947=function(_0x1db19e,_0x1a52c8){const _0x5b15a3=[];for(const _0x1d1857 of _0x1a52c8){const _0x54f672=_0x1db19e['getIntersection'](_0x1d1857);_0x54f672&&_0x5b15a3['push'](_0x54f672);}return _0x5b15a3;}(_0x5b6ad4,_0x4f8cc9),_0x2a4ec2=function(_0x4bef03,_0x586dd6){const _0x43884e=[_0x4bef03];for(const _0x56913f of _0x586dd6){let _0x1d1f89=0x0;for(;_0x1d1f89<_0x43884e[_0x7504('0xbf')];){const _0x23f5df=_0x43884e[_0x1d1f89][_0x7504('0x101')](_0x56913f);_0x43884e[_0x7504('0x9d')](_0x1d1f89,0x1,..._0x23f5df),_0x1d1f89+=_0x23f5df[_0x7504('0xbf')];}}return _0x43884e;}(_0x5b6ad4,_0x4f8cc9);_0x362947[_0x7504('0xbf')]&&this['_model']['change'](()=>{for(const _0xb294be of _0x362947){const _0x29168e=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x98'),_0x246bcc,_0x7504('0xb7'));this[_0x7504('0x24')](()=>_0x29168e([_0xb294be],_0x2570c1,_0x5d7ee6));}});for(const _0x515de2 of _0x2a4ec2){let _0x569161=null,_0x1c7a9e=_0x515de2[_0x7504('0x7e')],_0x2e7d7e=_0x515de2['end'];for(const {suggestion:_0x2ade3a,meta:_0x18669a}of this[_0x7504('0x97')](_0x515de2,_0x7504('0x98'))){if(!_0x18669a[_0x7504('0x5d')])continue;if(_0x2ade3a[_0x7504('0xf4')]!=_0x246bcc)continue;const _0x4e8543=_0x2ade3a[_0x7504('0x22')]();if(_0x4e8543['containsRange'](_0x515de2,!0x0))return null;_0x1c7a9e=_0x1c7a9e[_0x7504('0xbe')](_0x4e8543[_0x7504('0x7e')])?_0x1c7a9e:_0x4e8543[_0x7504('0x7e')],_0x2e7d7e=_0x2e7d7e[_0x7504('0x5b')](_0x4e8543[_0x7504('0x4d')])?_0x2e7d7e:_0x4e8543['end'],_0x569161?_0x4e8543[_0x7504('0x7e')]['isBefore'](_0x569161[_0x7504('0x22')]()[_0x7504('0x7e')])?(_0x569161[_0x7504('0xb5')](),_0x569161=_0x2ade3a):_0x2ade3a[_0x7504('0xb5')]():_0x569161=_0x2ade3a;}const _0x39e168=this['_model']['createRange'](_0x1c7a9e,_0x2e7d7e);if(_0x569161)this[_0x7504('0xce')](_0x569161,_0x39e168);else{const _0x5d7029=_0x388e22(),_0x4afc64=_0x59d115['id'];this[_0x7504('0x37')]({'id':_0x5d7029,'type':'formatInline:'+_0x246bcc,'data':_0x2570c1,'createdAt':new Date(),'authorId':_0x4afc64,'attributes':_0x5d7ee6}),this[_0x7504('0xe1')](_0x7504('0xcf')+_0x246bcc,_0x5d7029,_0x4afc64,_0x39e168);}}return null;}[_0x7504('0xe5')](_0x468cfb,_0x29d58e,_0x423e09=[],_0x53eef0=null,_0x55335a={}){_0x29d58e[_0x7504('0x104')]||(_0x29d58e[_0x7504('0x104')]=_0x29d58e[_0x7504('0x64')]),_0x29d58e['multipleBlocks']=_0x468cfb['is'](_0x7504('0xb2')),_0x53eef0=_0x53eef0||$t(_0x29d58e);const _0x21a8f7=_0x423e09[_0x7504('0x43')](_0x2e4f0c=>Rt(_0x2e4f0c,this[_0x7504('0x82')])),_0x1f45d4=_0x468cfb['is'](_0x7504('0xb2'))?_0x468cfb:Rt(_0x468cfb,this[_0x7504('0x82')]);if('never'===this[_0x7504('0x127')]){const _0x2ce4c0=this[_0x7504('0x11c')][_0x7504('0x12a')]('formatBlock',_0x53eef0,_0x7504('0xb7'));return this['forceDefaultExecution'](()=>_0x2ce4c0([_0x1f45d4],_0x29d58e,_0x55335a)),null;}_0x21a8f7['push'](_0x1f45d4);let _0x58f85b=!0x0;for(const _0x33dfd4 of _0x21a8f7)if(!this[_0x7504('0x0')](_0x33dfd4)){_0x58f85b=!0x1;break;}if(_0x58f85b&&_0x7504('0x14')!==this[_0x7504('0x127')]){const _0x4266bd=this['_suggestionFactory'][_0x7504('0x12a')](_0x7504('0x119'),_0x53eef0,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x4266bd([_0x1f45d4],_0x29d58e,_0x55335a)),null;}let _0x1640aa=null,_0x5bba28=_0x1f45d4[_0x7504('0x7e')],_0x590779=_0x1f45d4[_0x7504('0x4d')];for(const {suggestion:_0x361f27,meta:_0x5e7e9f}of this['_findSuggestions'](_0x1f45d4,_0x7504('0x119'))){if(!_0x5e7e9f[_0x7504('0x5d')]||_0x5e7e9f[_0x7504('0x8b')]||_0x5e7e9f[_0x7504('0x11d')]||_0x5e7e9f[_0x7504('0x93')])continue;if(_0x361f27[_0x7504('0x11a')][_0x7504('0x104')]!=_0x29d58e[_0x7504('0x104')])continue;const _0xc4edec=_0x361f27['getFirstRange']();if(_0x361f27['subType']==_0x53eef0){if(_0xc4edec[_0x7504('0x88')](_0x1f45d4,!0x0))return null;_0x5bba28=_0x5bba28[_0x7504('0xbe')](_0xc4edec['start'])?_0x5bba28:_0xc4edec[_0x7504('0x7e')],_0x590779=_0x590779[_0x7504('0x5b')](_0xc4edec[_0x7504('0x4d')])?_0x590779:_0xc4edec[_0x7504('0x4d')],_0x1640aa?_0xc4edec['start'][_0x7504('0xbe')](_0x1640aa['getFirstRange']()['start'])?(_0x1640aa['removeMarkers'](),_0x1640aa=_0x361f27):_0x361f27[_0x7504('0xb5')]():_0x1640aa=_0x361f27;}else{const _0x4eac5d=_0x1f45d4['getIntersection'](_0xc4edec);this['_cutOutSuggestionMarker'](_0x361f27,_0x4eac5d);}}const _0x5cd13b=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')]('Users')['me'],_0x2badda=_0x388e22(),_0x3dbd2a=_0x5cd13b['id'];if(_0x1640aa)return this[_0x7504('0xce')](_0x1640aa,this[_0x7504('0x82')][_0x7504('0x26')](_0x5bba28,_0x590779)),_0x1640aa;{const _0x138dd5=this['_setSuggestionData']({'id':_0x2badda,'type':'formatBlock:'+_0x53eef0,'data':_0x29d58e,'createdAt':new Date(),'authorId':_0x3dbd2a,'attributes':_0x55335a});return this[_0x7504('0xe1')](_0x7504('0x33')+_0x53eef0,_0x2badda,_0x3dbd2a,this[_0x7504('0x82')][_0x7504('0x26')](_0x5bba28,_0x590779)),_0x138dd5;}}[_0x7504('0x11e')](_0x4af343,_0x30407b,_0x16c678=[],_0x4f9c3a=null,_0x1948f0={}){_0x30407b[_0x7504('0x104')]||(_0x30407b['formatGroupId']=_0x30407b[_0x7504('0x64')]);const _0x1676f5=_0x4af343[0x0];_0x30407b[_0x7504('0x29')]=_0x1676f5['is'](_0x7504('0xb2')),_0x4f9c3a=_0x4f9c3a||$t(_0x30407b);const _0x549dd1=_0x16c678[_0x7504('0x43')](_0x97234e=>Rt(_0x97234e,this['_model'])),_0x1c75be=_0x1676f5['is'](_0x7504('0xb2'))?_0x4af343:_0x4af343[_0x7504('0x43')](_0x139ba2=>Rt(_0x139ba2,this[_0x7504('0x82')]));if(_0x7504('0x84')===this[_0x7504('0x127')]){const _0x326f5b=this[_0x7504('0x11c')][_0x7504('0x12a')]('formatBlock',_0x4f9c3a,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x326f5b(_0x1c75be,_0x30407b,_0x1948f0)),null;}_0x549dd1[_0x7504('0x39')](..._0x1c75be);let _0x1c462c=!0x0;for(const _0x41486e of _0x549dd1)if(!this['_rangeIsInLocalUserInsertion'](_0x41486e)){_0x1c462c=!0x1;break;}if(_0x1c462c&&_0x7504('0x14')!==this[_0x7504('0x127')]){const _0xedb164=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x119'),_0x4f9c3a,'accept');return this[_0x7504('0x24')](()=>_0xedb164(_0x1c75be,_0x30407b,_0x1948f0)),null;}const _0x4366f3=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'];for(const _0x587d42 of this[_0x7504('0x106')]()){if(_0x587d42[_0x7504('0x18')]['id']!=_0x4366f3['id'])continue;if(_0x7504('0x119')!=_0x587d42['type']||_0x587d42['data'][_0x7504('0x104')]!=_0x30407b[_0x7504('0x104')])continue;const _0xd4e11e=_0x587d42[_0x7504('0xf4')]==_0x4f9c3a;for(let _0x7074d5=0x0;_0x7074d5<_0x1c75be['length'];_0x7074d5++){const _0x467bba=_0x1c75be[_0x7074d5];for(const _0x5468f4 of _0x587d42['getMarkers']()){const _0x404bf6=_0x5468f4[_0x7504('0x131')]();if(_0x467bba[_0x7504('0xde')](_0x404bf6)){_0xd4e11e?(_0x1c75be[_0x7504('0x9d')](_0x7074d5,0x1),_0x7074d5--):_0x587d42['removeMarker'](_0x5468f4[_0x7504('0xa')]);break;}}}}if(0x0==_0x1c75be[_0x7504('0xbf')])return null;const _0x3ef9ee=this[_0x7504('0x11c')][_0x7504('0x12a')]('formatBlock',_0x4f9c3a,'join');for(const _0x1a3a89 of this['getSuggestions']())if(_0x1a3a89[_0x7504('0x18')]['id']==_0x4366f3['id']&&_0x7504('0x119')==_0x1a3a89['type']&&_0x1a3a89[_0x7504('0x11a')][_0x7504('0x104')]==_0x30407b[_0x7504('0x104')]&&_0x1a3a89[_0x7504('0xf4')]==_0x4f9c3a&&(_0x3ef9ee(_0x1a3a89[_0x7504('0x92')](),_0x1c75be)||_0x3ef9ee(_0x1c75be,_0x1a3a89[_0x7504('0x92')]()))){for(const _0x151096 of _0x1c75be)_0x1a3a89[_0x7504('0x66')](_0x151096);return _0x1a3a89;}const _0x2f5ced=_0x388e22(),_0xe05032=_0x4366f3['id'],_0x5df006='formatBlock:'+_0x4f9c3a,_0x39e131=this['_setSuggestionData']({'id':_0x2f5ced,'type':_0x5df006,'data':_0x30407b,'createdAt':new Date(),'authorId':_0xe05032,'attributes':_0x1948f0});for(const _0x1db73c of _0x1c75be)this[_0x7504('0xe1')](_0x5df006,_0x2f5ced,_0xe05032,_0x1db73c,_0x371c78[_0x7504('0x94')]());return _0x39e131;}['markDeletion'](_0x167cb1,_0x34e749=null,_0x54c711={}){if(_0x167cb1[_0x7504('0x12b')])return null;const _0xefc54a=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'],_0x297a18=new _0x3d2980(_0x167cb1['start'],_0x167cb1['end']);for(const {suggestion:_0x2b3ceb,meta:_0x479c2a}of this[_0x7504('0x97')](_0x297a18,_0x7504('0x12f')))if(_0x479c2a[_0x7504('0x5d')]&&!_0x479c2a[_0x7504('0x8b')]){if(_0x2b3ceb['isMultiRange']){const _0x3ea428=_0x2b3ceb[_0x7504('0x92')]()[_0x7504('0x51')](_0x1856c9=>_0x7504('0x45')!=_0x1856c9[_0x7504('0xa4')]['rootName']);_0x3ea428[_0x7504('0xf1')](_0x3c5f07=>_0x297a18[_0x7504('0x88')](_0x3c5f07,!0x0))&&_0x2b3ceb[_0x7504('0xd5')]();if(_0x3ea428[_0x7504('0x87')](_0x371303=>_0x371303[_0x7504('0x88')](_0x297a18,!0x0))){const _0x4f273e=this['_suggestionFactory'][_0x7504('0x12a')]('deletion',_0x34e749,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x4f273e([_0x297a18],null,_0x54c711)),null;}}else{const _0x4fbdbe=_0x297a18[_0x7504('0x91')](_0x2b3ceb[_0x7504('0x22')]());null!==_0x4fbdbe&&_0x2b3ceb['_onDiscard']([_0x4fbdbe],null,_0x54c711);}}if(_0x297a18[_0x7504('0xeb')](),_0x297a18[_0x7504('0x12b')]||_0x7504('0x45')==_0x297a18[_0x7504('0xa4')][_0x7504('0xef')])return null;let _0x31beae=null,_0x177a71=_0x297a18[_0x7504('0x7e')],_0x372d4f=_0x297a18['end'];for(const {suggestion:_0x589fc2,meta:_0x45dc6f}of this[_0x7504('0x97')](_0x297a18,'deletion'))if(_0x45dc6f[_0x7504('0x5d')]){if(_0x589fc2[_0x7504('0x72')]&&this[_0x7504('0x6d')]){let _0x446246=!0x0;for(const _0x5a916a of _0x589fc2['getRanges']()){if(_0x5a916a[_0x7504('0x88')](_0x297a18,!0x0))return _0x589fc2;_0x297a18[_0x7504('0x88')](_0x5a916a)||(_0x446246=!0x1);}_0x446246&&_0x589fc2['discard']();}else{const _0x22f709=_0x589fc2[_0x7504('0x22')]();if(_0x22f709['containsRange'](_0x297a18,!0x0)){if(!this[_0x7504('0x6d')]&&_0x45dc6f['containsRangeInObject'])continue;return _0x589fc2;}_0x177a71=_0x177a71[_0x7504('0xbe')](_0x22f709[_0x7504('0x7e')])?_0x177a71:_0x22f709[_0x7504('0x7e')],_0x372d4f=_0x372d4f[_0x7504('0x5b')](_0x22f709[_0x7504('0x4d')])?_0x372d4f:_0x22f709['end'],_0x31beae?_0x22f709['start'][_0x7504('0xbe')](_0x31beae['getFirstRange']()[_0x7504('0x7e')])?(_0x31beae[_0x7504('0xb5')](),_0x31beae=_0x589fc2):_0x589fc2[_0x7504('0xb5')]():_0x31beae=_0x589fc2;}}if(_0x31beae)return this['_setSuggestionRange'](_0x31beae,this[_0x7504('0x82')][_0x7504('0x26')](_0x177a71,_0x372d4f)),_0x31beae;{const _0xae9b20=_0x388e22(),_0x4df67e=this['_model']['createRange'](_0x177a71,_0x372d4f),_0x89a006=_0xefc54a['id'],_0x598704=_0x34e749?_0x7504('0x3a')+_0x34e749:_0x7504('0x120'),_0x345fd7=this[_0x7504('0x37')]({'id':_0xae9b20,'type':_0x598704,'createdAt':new Date(),'authorId':_0x89a006,'attributes':_0x54c711});return this[_0x7504('0xe1')](_0x598704,_0xae9b20,_0x89a006,_0x4df67e),_0x345fd7;}}[_0x7504('0x8d')](_0x500b7c,_0x35990f=_0x7504('0x3e'),_0x561fec={}){const _0x3df8c9=this['editor']['plugins'][_0x7504('0x136')](_0x7504('0xb'))['me'],_0x1dfaea=_0x500b7c['map'](_0x2cb810=>new _0x3d2980(_0x2cb810['start'],_0x2cb810['end'])),_0xfaca35=new Set();for(const _0x42acbc of _0x1dfaea)for(const {suggestion:_0xe192df,meta:_0x186267}of this[_0x7504('0x97')](_0x42acbc,_0x7504('0x12f')))_0x186267[_0x7504('0x5d')]&&!_0x186267['isNextTo']&&_0xfaca35['add'](_0xe192df);for(const _0xd480e2 of _0xfaca35)if(_0xd480e2[_0x7504('0x72')]){const _0x554ff6=_0xd480e2[_0x7504('0x92')]();(!_0xd480e2['attributes']||!_0xd480e2['attributes'][_0x7504('0x41')])&&(_0x554ff6[_0x7504('0xf1')](_0x9006b4=>_0x1dfaea['some'](_0x5ee15c=>_0x5ee15c[_0x7504('0x88')](_0x9006b4,!0x0)))&&_0xd480e2['discard']());if(_0x1dfaea[_0x7504('0xf1')](_0x501f4=>_0x554ff6[_0x7504('0x87')](_0x25aa56=>_0x25aa56[_0x7504('0x88')](_0x501f4,!0x0)))){const _0x2c4e1e=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x120'),_0x35990f,_0x7504('0xb7'));return this[_0x7504('0x24')](()=>_0x2c4e1e(_0x500b7c,null,_0x561fec)),null;}}else{const _0x5c00ff=_0xd480e2[_0x7504('0x22')]();_0x1dfaea[_0x7504('0x87')](_0x419756=>_0x419756[_0x7504('0x88')](_0x5c00ff,!0x0))&&_0xd480e2[_0x7504('0xd5')]();if(_0x1dfaea[_0x7504('0xf1')](_0x505cb2=>_0x5c00ff[_0x7504('0x88')](_0x505cb2,!0x0))){const _0x1d2228=this[_0x7504('0x11c')][_0x7504('0x12a')]('deletion',_0x35990f,_0x7504('0xb7'));return this['forceDefaultExecution'](()=>_0x1d2228(_0x1dfaea,null,_0x561fec)),null;}}const _0xb29d7e=this[_0x7504('0x11c')][_0x7504('0x12a')](_0x7504('0x120'),_0x35990f,'join');let _0x1c9ace=null;for(const _0x3c7f85 of this[_0x7504('0x106')]())if(_0x3c7f85[_0x7504('0x18')]['id']==_0x3df8c9['id']&&_0x3c7f85[_0x7504('0x40')]&&'deletion'==_0x3c7f85[_0x7504('0xf7')]&&_0x3c7f85[_0x7504('0xf4')]==_0x35990f&&(_0xb29d7e(_0x3c7f85[_0x7504('0x92')](),_0x1dfaea)||_0xb29d7e(_0x1dfaea,_0x3c7f85[_0x7504('0x92')]()))){if(_0x1c9ace){if(_0x3c7f85[_0x7504('0x83')]&&_0x3c7f85['commentThread'][_0x7504('0xbf')])continue;for(const _0x5ecf1b of _0x3c7f85[_0x7504('0x92')]())_0x1c9ace[_0x7504('0x67')](_0x5ecf1b)||_0x1c9ace['addRange'](_0x5ecf1b);_0x3c7f85[_0x7504('0xb5')]();}else{_0x1c9ace=_0x3c7f85;for(const _0xa157d6 of _0x1dfaea)_0x3c7f85[_0x7504('0x67')](_0xa157d6)||_0x3c7f85[_0x7504('0x66')](_0xa157d6);}}if(_0x1c9ace)return _0x1c9ace;_0xfaca35[_0x7504('0x9')]();for(const _0xd814a9 of _0x1dfaea)for(const {suggestion:_0x51577e,meta:_0xae4839}of this['_findSuggestions'](_0xd814a9,_0x7504('0x120')))_0xae4839[_0x7504('0x5d')]&&_0xfaca35['add'](_0x51577e);for(const _0x2865e3 of _0xfaca35){const _0x3d470f=_0x2865e3[_0x7504('0x92')]();if(!_0x561fec||!_0x561fec[_0x7504('0x41')]){if(_0x1dfaea[_0x7504('0xf1')](_0x4c619a=>_0x3d470f['some'](_0x29f3cf=>_0x29f3cf[_0x7504('0x88')](_0x4c619a,!0x0))))return _0x2865e3;}(!_0x2865e3[_0x7504('0xb6')]||!_0x2865e3['attributes'][_0x7504('0x41')])&&(_0x3d470f[_0x7504('0xf1')](_0x57d418=>_0x1dfaea[_0x7504('0x87')](_0x5ac431=>_0x5ac431[_0x7504('0x88')](_0x57d418,!0x0)))&&_0x2865e3[_0x7504('0xd5')]());}const _0x3f969b=_0x388e22(),_0x5ae854=_0x3df8c9['id'],_0x2039ee=_0x7504('0x3a')+_0x35990f,_0x5b42f9=this[_0x7504('0x37')]({'id':_0x3f969b,'type':_0x2039ee,'createdAt':new Date(),'authorId':_0x5ae854,'attributes':_0x561fec});for(const _0x277b1e of _0x1dfaea)_0x277b1e[_0x7504('0xeb')](),_0x277b1e['isCollapsed']||'$graveyard'==_0x277b1e['root'][_0x7504('0xef')]||this[_0x7504('0xe1')](_0x2039ee,_0x3f969b,_0x5ae854,_0x277b1e,_0x371c78['getMultiRangeId']());return _0x5b42f9;}['_setSuggestionRange'](_0x3553c0,_0x235ced){const _0x3ba97c=_0x3553c0[_0x7504('0x114')]();this[_0x7504('0x82')][_0x7504('0x81')](_0x1de853=>{_0x1de853[_0x7504('0x8a')](_0x3ba97c,{'range':_0x235ced});});}[_0x7504('0xcc')](_0x253c8d){const _0x3d69a7=_0x253c8d['id'],_0x3c0cbd=this[_0x7504('0xaf')]['config']['get'](_0x7504('0x7c'));this[_0x7504('0x59')][_0x7504('0x42')](_0x3d69a7)||this[_0x7504('0x59')]['addCommentThread']({'channelId':_0x3c0cbd,'threadId':_0x3d69a7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x231065=this['_commentsRepository'][_0x7504('0x121')](_0x3d69a7);_0x231065[_0x7504('0x115')](_0x7504('0xf0')),_0x231065[_0x7504('0xf0')]=!0x1,_0x253c8d[_0x7504('0x83')]=_0x231065;}[_0x7504('0x10d')](_0x38d222,_0x393db2,_0x527087,_0x3cc1d3){if(_0x38d222['type']!=_0x393db2||_0x38d222[_0x7504('0xf4')]!=_0x527087||_0x38d222[_0x7504('0x9f')]['id']!=_0x3cc1d3)throw this['editor'][_0x7504('0xc5')](_0x7504('0xbb')),new _0x1d1de9(_0x7504('0xbb'),this);}['_cutOutSuggestionMarker'](_0x2187e0,_0x381ed5){const _0x5de66f=_0x2187e0[_0x7504('0x22')]();if(_0x381ed5[_0x7504('0xde')](_0x5de66f))_0x2187e0['removeMarkers']();else{if(_0x5de66f[_0x7504('0x88')](_0x381ed5)){const _0x2d1f91=this[_0x7504('0x82')][_0x7504('0x5c')](_0x381ed5[_0x7504('0x7e')][_0x7504('0xb3')],'end');this['_setSuggestionRange'](_0x2187e0,this[_0x7504('0x82')][_0x7504('0x26')](_0x5de66f[_0x7504('0x7e')],_0x2d1f91));const _0x33a755=_0x388e22(),_0x2fc633=_0x2187e0[_0x7504('0x9f')]['id'],_0xfaf781=_0x2187e0['type']+':'+_0x2187e0[_0x7504('0xf4')];this[_0x7504('0x37')]({'id':_0x33a755,'type':_0xfaf781,'createdAt':new Date(),'authorId':_0x2fc633,'data':_0x2187e0['data'],'attributes':_0x2187e0[_0x7504('0xb6')]});const _0x120c62=this['_model'][_0x7504('0x5c')](_0x381ed5[_0x7504('0x4d')][_0x7504('0x2a')],_0x7504('0xc7')),_0x50aa12=this[_0x7504('0x82')][_0x7504('0x26')](_0x120c62,_0x5de66f[_0x7504('0x4d')]);this[_0x7504('0xe1')](_0xfaf781,_0x33a755,_0x2fc633,_0x50aa12);}else{if(_0x5de66f[_0x7504('0x54')](_0x381ed5[_0x7504('0x7e')])){const _0x5f08f0=this['_model'][_0x7504('0x5c')](_0x381ed5[_0x7504('0x7e')][_0x7504('0xb3')],_0x7504('0x4d'));this[_0x7504('0xce')](_0x2187e0,this[_0x7504('0x82')][_0x7504('0x26')](_0x5de66f[_0x7504('0x7e')],_0x5f08f0));}else{const _0x4f9b61=this[_0x7504('0x82')][_0x7504('0x5c')](_0x381ed5[_0x7504('0x4d')][_0x7504('0x2a')],_0x7504('0xc7'));this[_0x7504('0xce')](_0x2187e0,this[_0x7504('0x82')][_0x7504('0x26')](_0x4f9b61,_0x5de66f[_0x7504('0x4d')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2659a9){for(const {suggestion:_0x5ba1c0,meta:_0x3c3929}of this[_0x7504('0x97')](_0x2659a9,'insertion')){if(!_0x3c3929[_0x7504('0x5d')])continue;const _0x3865d2=_0x5ba1c0['getRanges']();for(const _0x40e564 of _0x3865d2)if(!_0x2659a9['getDifference'](_0x40e564)[_0x7504('0xbf')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x58abe7){const _0x165ce6=this[_0x7504('0xaf')]['plugins'][_0x7504('0x136')]('Users')[_0x7504('0x2d')](_0x58abe7);if(!_0x165ce6)throw new _0x1d1de9(_0x7504('0xff'),this);return _0x165ce6;}[_0x7504('0x89')](_0x907a){const _0x1f9bb7=this[_0x7504('0xaf')][_0x7504('0x16')]['get'](_0x7504('0xb')),_0x3cab26=_0x14fa2d(_0x7504('0xe2')+_0x907a),_0xd2978c=_0x1f9bb7['getUser'](_0x3cab26);return _0xd2978c||_0x1f9bb7[_0x7504('0x113')]({'id':_0x3cab26,'name':_0x907a});}[_0x7504('0x61')](_0x56db7e,_0x46dd32,_0x4fb9a7,_0x5c59e3,_0x148700){const _0x96e7fb=this[_0x7504('0x4e')](_0x5c59e3),_0x3c78c6=this[_0x7504('0x11c')][_0x7504('0xab')](_0x56db7e,_0x46dd32,_0x4fb9a7,_0x96e7fb,_0x148700,_0x28cf78=>this[_0x7504('0xd6')](_0x4fb9a7,{'attributes':_0x28cf78}));return this[_0x7504('0x10c')](_0x3c78c6,_0x7504('0xb7'),()=>{this[_0x7504('0xd6')](_0x4fb9a7,{'state':'accepted'});},{'priority':'high'}),this[_0x7504('0x10c')](_0x3c78c6,_0x7504('0xd5'),()=>{this[_0x7504('0xd6')](_0x4fb9a7,{'state':_0x7504('0xf9')});},{'priority':_0x7504('0x6c')}),this[_0x7504('0x10e')][_0x7504('0x85')](_0x4fb9a7,_0x3c78c6),this[_0x7504('0x11')][_0x7504('0x85')](_0x3c78c6,_0x7504('0xa1')),_0x3c78c6;}[_0x7504('0x137')](_0x3d5557){const _0x5eade9=_0x3d5557['split'](':');return{'group':_0x5eade9[0x0],'type':_0x5eade9[0x1],'subType':_0x5eade9[_0x7504('0xbf')]>=0x5?_0x5eade9[0x2]:null,'id':_0x5eade9[_0x7504('0xbf')]<0x5?_0x5eade9[0x2]:_0x5eade9[0x3],'authorId':_0x5eade9[_0x7504('0xbf')]<0x5?_0x5eade9[0x3]:_0x5eade9[0x4],'markerCount':0x6==_0x5eade9[_0x7504('0xbf')]?_0x5eade9[0x5]:null};}[_0x7504('0x17')](_0x3d94fa,_0x33efe1,_0x29c0b8){const _0x136468=_0x3d94fa[_0x7504('0x22')](),_0x382c6b=_0x136468[_0x7504('0x7e')],_0x2446c7=_0x136468[_0x7504('0x4d')];this['_setSuggestionRange'](_0x3d94fa,this[_0x7504('0x82')][_0x7504('0x26')](_0x382c6b,_0x33efe1));const _0x593be8=_0x388e22(),_0xb3b334=_0x3d94fa[_0x7504('0x9f')]['id'],_0x37783d=_0x3d94fa[_0x7504('0xf7')]+(_0x3d94fa[_0x7504('0xf4')]?':'+_0x3d94fa[_0x7504('0xf4')]:'');this[_0x7504('0x37')]({'id':_0x593be8,'type':_0x37783d,'createdAt':new Date(),'authorId':_0xb3b334,'originalSuggestionId':_0x3d94fa['id'],'attributes':_0x3d94fa[_0x7504('0xb6')],'data':_0x3d94fa['data']}),_0x7504('0x119')==_0x3d94fa[_0x7504('0xf7')]&&(_0x29c0b8=this['_model']['createPositionBefore'](_0x29c0b8[_0x7504('0x2a')])),this[_0x7504('0xe1')](_0x37783d,_0x593be8,_0xb3b334,this[_0x7504('0x82')][_0x7504('0x26')](_0x29c0b8,_0x2446c7));}['_findSuggestions'](_0x65885a,_0x1d382e=null){const _0x5f1a4a=[],_0x3257a4=this[_0x7504('0x82')]['schema'],_0x3ebbb2=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0xb'))['me'];for(const _0x4227e9 of this['getSuggestions']())if(_0x4227e9[_0x7504('0x40')]&&(!_0x1d382e||_0x4227e9[_0x7504('0xf7')]==_0x1d382e))for(const _0x414f63 of _0x4227e9[_0x7504('0x92')]()){const _0x3b64dc=_0x65885a[_0x7504('0x7e')][_0x7504('0xde')](_0x414f63[_0x7504('0x4d')])||_0x65885a['end'][_0x7504('0xde')](_0x414f63[_0x7504('0x7e')]);if(_0x3b64dc||_0x65885a[_0x7504('0x91')](_0x414f63)){const _0x1bc5f5=_0x65885a['containsRange'](_0x414f63)&&Bt(_0x3257a4,_0x414f63[_0x7504('0x7e')],_0x65885a),_0x333191=_0x414f63[_0x7504('0x88')](_0x65885a)&&Bt(_0x3257a4,_0x65885a['start'],_0x414f63);_0x5f1a4a[_0x7504('0x39')]({'suggestion':_0x4227e9,'meta':{'isOwn':_0x3ebbb2==_0x4227e9[_0x7504('0x18')],'isNextTo':_0x3b64dc,'isInsideObject':_0x1bc5f5,'containsRangeInObject':_0x333191}});break;}}return _0x5f1a4a;}[_0x7504('0xe1')](_0x237599,_0x582bb8,_0x104258,_0x291dfb,_0x4f1124){this[_0x7504('0x82')]['change'](_0x47ea64=>{let _0xbcc225='suggestion:'+_0x237599+':'+_0x582bb8+':'+_0x104258;_0x4f1124&&(_0xbcc225=_0xbcc225+':'+_0x4f1124),_0x47ea64[_0x7504('0xd4')](_0xbcc225,{'range':_0x291dfb,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x7504('0x10')](_0xa544ea){const _0x2e1d34=_0xa544ea[_0x7504('0xa2')],_0xc6b379=_0xa544ea[_0x7504('0x62')];_0xa544ea[_0x7504('0xa2')]=null,null!=_0x2e1d34&&(_0x2e1d34[_0x7504('0x62')]=null),_0xa544ea['next']=null,null!=_0xc6b379&&(_0xc6b379[_0x7504('0xa2')]=null),'ready'==this[_0x7504('0x11')]['get'](_0xa544ea)&&(this[_0x7504('0x11')][_0x7504('0x85')](_0xa544ea,_0x7504('0xb4')),this[_0x7504('0x2f')](_0x7504('0xb9'),_0xa544ea,_0x2e1d34,_0xc6b379));}[_0x7504('0x37')](_0x204792){const _0x47bd1d=_0x204792['id'],_0x5403d9=this[_0x7504('0x1e')](_0x204792);if(this[_0x7504('0x126')]&&this[_0x7504('0x126')][_0x7504('0xd1')]){const _0x237b3e=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0x28')),_0x74605e=_0x5403d9[_0x7504('0x3c')],_0x380cbc=_0x5403d9['subType']?_0x5403d9[_0x7504('0xf7')]+':'+_0x5403d9[_0x7504('0xf4')]:_0x5403d9[_0x7504('0xf7')],_0x5a4044=this[_0x7504('0xaf')][_0x7504('0xcd')],_0x4e116b=_0x237b3e[_0x7504('0x9a')](_0x1607e6(_0x5a4044,_0x7504('0xdc'))),_0x105b3f={'id':_0x47bd1d,'type':_0x380cbc,'hasComments':_0x74605e,'data':_0x204792[_0x7504('0x11a')]||null,'originalSuggestionId':_0x204792[_0x7504('0xe7')]||null,'attributes':_0x5403d9['attributes']};this['_adapter']['addSuggestion'](_0x105b3f)['then'](_0x583300=>{_0x5403d9['_saved']=!0x0,_0x237b3e['remove'](_0x4e116b),_0x583300&&_0x583300[_0x7504('0x10b')]&&(this[_0x7504('0x10e')]['get'](_0x47bd1d)[_0x7504('0x10b')]=_0x583300[_0x7504('0x10b')]);})[_0x7504('0xba')](_0x224714=>{throw _0x57acab(_0x7504('0x86')),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5403d9[_0x7504('0xd5')]();}),_0x5403d9[_0x7504('0x5')](),this[_0x7504('0x10e')][_0x7504('0x70')](_0x5403d9['id']),this[_0x7504('0x11')][_0x7504('0x70')](_0x5403d9),_0x224714;});}return _0x5403d9;}[_0x7504('0xd6')](_0x3f6eba,_0x8b37c4){const _0x50bc06=this[_0x7504('0xaf')][_0x7504('0x16')][_0x7504('0x136')](_0x7504('0x28')),_0x232759=this['getSuggestion'](_0x3f6eba);if(this[_0x7504('0x126')]&&this[_0x7504('0x126')][_0x7504('0x4c')]){if(_0x232759[_0x7504('0x36')]){const _0x135e2c=_0x50bc06[_0x7504('0x9a')](_0x1607e6(this[_0x7504('0xaf')][_0x7504('0xcd')],_0x7504('0xdc')));this['_adapter'][_0x7504('0x4c')](_0x3f6eba,_0x8b37c4)[_0x7504('0xa0')](()=>{_0x50bc06[_0x7504('0x46')](_0x135e2c);});}else _0x232759['on'](_0x7504('0xca'),()=>{this[_0x7504('0xd6')](_0x3f6eba,_0x8b37c4);});}}[_0x7504('0xda')](_0x505065){if(!this[_0x7504('0x126')]||!this[_0x7504('0x126')][_0x7504('0xaa')])throw new _0x1d1de9(_0x7504('0x103'),this);return this[_0x7504('0x126')]['getSuggestion'](_0x505065);}[_0x7504('0x32')](_0x32b954){const {id:_0x17c1fa,type:_0x562057,subType:_0x5244db,authorId:_0x12ab9d}=this[_0x7504('0x137')](_0x32b954),_0x1ab31c=this[_0x7504('0x10e')]['get'](_0x17c1fa)||this[_0x7504('0x61')](_0x562057,_0x5244db,_0x17c1fa,_0x12ab9d,{});switch(this[_0x7504('0x10d')](_0x1ab31c,_0x562057,_0x5244db,_0x12ab9d),this['_suggestionState'][_0x7504('0x136')](_0x1ab31c)){case _0x7504('0xa1'):this[_0x7504('0xda')](_0x17c1fa)[_0x7504('0xa0')](_0x3c1ee6=>{let _0x27460b=Promise[_0x7504('0xf8')]();_0x3c1ee6[_0x7504('0x3c')]&&(_0x27460b=this['_commentsRepository'][_0x7504('0xd0')]({'channelId':this[_0x7504('0xaf')][_0x7504('0xa7')][_0x7504('0x136')](_0x7504('0x7c')),'threadId':_0x17c1fa})),_0x27460b[_0x7504('0xa0')](()=>{this['addSuggestionData'](_0x3c1ee6)[_0x7504('0x36')]=!0x0;});}),this[_0x7504('0x11')][_0x7504('0x85')](_0x1ab31c,'markerReady');break;case _0x7504('0xb4'):this[_0x7504('0xd6')](_0x17c1fa,{'state':_0x7504('0x134')});case'dataReady':this[_0x7504('0x11')][_0x7504('0x85')](_0x1ab31c,_0x7504('0xf2')),this[_0x7504('0x2f')]('suggestionLoaded',_0x1ab31c);break;case'ready':this[_0x7504('0x2f')](_0x7504('0x9c'),_0x1ab31c);}return _0x1ab31c[_0x7504('0xe3')](_0x32b954),_0x1ab31c;}[_0x7504('0x75')](_0x39df42){const _0x3c2e10=Array[_0x7504('0x31')](_0x39df42)[_0x7504('0x51')](_0x4af9cb=>!_0x4af9cb[_0x7504('0x72')]),_0x487f57=this['getSuggestions']({'skipNotAttached':!0x0})[_0x7504('0x51')](_0x5d9814=>!_0x5d9814[_0x7504('0x72')]),_0x4df97d=_0x487f57[_0x7504('0x51')](_0x35f512=>!_0x39df42['has'](_0x35f512)),_0x46a559=new Map(_0x487f57[_0x7504('0x43')](_0x65da9e=>[_0x65da9e,this['_suggestionFactory'][_0x7504('0x12a')](_0x65da9e[_0x7504('0xf7')],_0x65da9e['subType'],_0x7504('0xdb'))])),_0x13da34=new Map(_0x487f57[_0x7504('0x43')](_0x37343c=>[_0x37343c,_0x37343c[_0x7504('0x22')]()])),_0x1c7b2c=new Set(),_0x4e1185=new Set();for(let _0x1b8aa0=0x0;_0x1b8aa0<_0x3c2e10[_0x7504('0xbf')];_0x1b8aa0++)_0x135c4a(_0x3c2e10[_0x1b8aa0],_0x3c2e10,_0x1b8aa0+0x1);for(let _0x4218ed=0x0;_0x4218ed<_0x3c2e10[_0x7504('0xbf')];_0x4218ed++)_0x135c4a(_0x3c2e10[_0x4218ed],_0x4df97d,0x0);for(let _0x11d7b2=0x0;_0x11d7b2<_0x3c2e10[_0x7504('0xbf')];_0x11d7b2++){const _0x1966c0=_0x3c2e10[_0x11d7b2];!_0x4e1185['has'](_0x1966c0)&&_0x1966c0[_0x7504('0xa2')]&&(_0x1966c0[_0x7504('0xa2')]['next']===_0x1966c0&&(_0x1966c0[_0x7504('0xa2')]['next']=null),_0x1966c0[_0x7504('0xa2')]=null),!_0x1c7b2c[_0x7504('0x7d')](_0x1966c0)&&_0x1966c0[_0x7504('0x62')]&&(_0x1966c0[_0x7504('0x62')]['previous']===_0x1966c0&&(_0x1966c0['next']['previous']=null),_0x1966c0['next']=null);}function _0x135c4a(_0x3fd5c7,_0x45a2d6,_0x502fa6){for(let _0x18b8af=_0x502fa6;_0x18b8af<_0x45a2d6[_0x7504('0xbf')];_0x18b8af++){const _0x487946=_0x334f14(_0x3fd5c7,_0x45a2d6[_0x18b8af]);_0x487946&&(_0x487946[0x0]['next']=_0x487946[0x1],_0x487946[0x1][_0x7504('0xa2')]=_0x487946[0x0],_0x1c7b2c['add'](_0x487946[0x0]),_0x4e1185[_0x7504('0x9a')](_0x487946[0x1]));}}function _0x334f14(_0x466cb4,_0x1be3c1){if(_0x466cb4[_0x7504('0x18')]['id']!==_0x1be3c1[_0x7504('0x18')]['id'])return null;const _0x5e4cf6=_0x46a559[_0x7504('0x136')](_0x466cb4)(_0x466cb4,_0x1be3c1,_0x13da34[_0x7504('0x136')](_0x466cb4),_0x13da34[_0x7504('0x136')](_0x1be3c1));if(!_0x5e4cf6)return null;return _0x46a559[_0x7504('0x136')](_0x1be3c1)(_0x466cb4,_0x1be3c1,_0x13da34[_0x7504('0x136')](_0x466cb4),_0x13da34['get'](_0x1be3c1))?_0x5e4cf6[0x1][_0x7504('0x83')]&&_0x5e4cf6[0x1]['commentThread'][_0x7504('0xbf')]?null:_0x5e4cf6:null;}}[_0x7504('0x1c')](_0x10e54f){const _0x4a8043=Array['from'](_0x10e54f),_0xe81c61=this[_0x7504('0x106')]({'skipNotAttached':!0x0}),_0x11df03=_0xe81c61['filter'](_0xe22deb=>!_0x10e54f[_0x7504('0x7d')](_0xe22deb)),_0x58eab0=new Map(_0x4a8043[_0x7504('0x43')](_0x464769=>[_0x464769,this[_0x7504('0x11c')][_0x7504('0x12a')](_0x464769['type'],_0x464769[_0x7504('0xf4')],_0x7504('0x96'))])),_0x5a9903=new Map(_0xe81c61['map'](_0x30924b=>[_0x30924b,_0x30924b['getRanges']()]));for(let _0x230e52=0x0;_0x230e52<_0x4a8043[_0x7504('0xbf')];_0x230e52++){if(_0x5aaa80(this,_0x4a8043[_0x230e52],_0x4a8043,_0x230e52+0x1))return!0x0;}for(let _0x5ca00f=0x0;_0x5ca00f<_0x4a8043[_0x7504('0xbf')];_0x5ca00f++){if(_0x5aaa80(this,_0x4a8043[_0x5ca00f],_0x11df03,0x0))return!0x0;}return!0x1;function _0x5aaa80(_0x415639,_0x17710b,_0x595ad5,_0x3bd9e8){for(let _0x2d3a53=_0x3bd9e8;_0x2d3a53<_0x595ad5[_0x7504('0xbf')];_0x2d3a53++){const _0x1de88e=_0x595ad5[_0x2d3a53];if(_0x1de88e[_0x7504('0xf7')]!==_0x17710b[_0x7504('0xf7')]||_0x1de88e[_0x7504('0x18')]['id']!==_0x17710b[_0x7504('0x18')]['id']||_0x1de88e[_0x7504('0xf4')]!==_0x17710b[_0x7504('0xf4')])continue;const _0x3df639=_0x58eab0[_0x7504('0x136')](_0x17710b),_0xe79de6=_0x5a9903[_0x7504('0x136')](_0x17710b),_0x54acb0=_0x5a9903['get'](_0x1de88e),_0x1d2017=_0x17710b[_0x7504('0x83')]&&_0x17710b[_0x7504('0x83')]['length'],_0x1efa2d=_0x1de88e['commentThread']&&_0x1de88e[_0x7504('0x83')][_0x7504('0xbf')];if(!_0x1d2017&&_0x3df639(_0x54acb0,_0xe79de6))return _0x415639[_0x7504('0x48')](_0x1de88e,_0x17710b),_0x5a9903[_0x7504('0x70')](_0x17710b),!0x0;if(!_0x1efa2d&&_0x3df639(_0xe79de6,_0x54acb0))return _0x415639[_0x7504('0x48')](_0x17710b,_0x1de88e),_0x5a9903[_0x7504('0x70')](_0x1de88e),!0x0;}return!0x1;}}[_0x7504('0x48')](_0x25a86e,_0x5709ff){if(_0x25a86e[_0x7504('0x72')])for(const _0x9f8b7a of _0x5709ff['getRanges']())_0x25a86e['addRange'](_0x9f8b7a);else{const _0x357455=_0x5709ff['getFirstRange']()[_0x7504('0x4d')];this['_setSuggestionRange'](_0x25a86e,this['_model']['createRange'](_0x25a86e['getFirstRange']()[_0x7504('0x7e')],_0x357455));}_0x5709ff['removeMarkers']();}}class Dt{constructor(_0x38aca6){this[_0x7504('0x10a')]=_0x38aca6,this[_0x7504('0x82')]=_0x38aca6[_0x7504('0x1a')],this[_0x7504('0x8e')]=new Map(),this[_0x7504('0x9e')]=new Map(),this['_registerDefaultCallbacks']();}[_0x7504('0xab')](_0x2a41a0,_0x18c7ec,_0x17c992,_0x1daa2e,_0x10eae9,_0x1d7ee6){return new _0x371c78(this[_0x7504('0x82')],{'type':_0x2a41a0,'subType':_0x18c7ec,'id':_0x17c992,'author':_0x1daa2e,'creator':_0x1daa2e,'attributes':_0x10eae9,'onAttributesChange':_0x1d7ee6,'onAccept':(..._0x6fdd19)=>this['getSuggestionCallback'](_0x2a41a0,_0x18c7ec,_0x7504('0xb7'))(..._0x6fdd19),'onDiscard':(..._0x4ec520)=>this[_0x7504('0x12a')](_0x2a41a0,_0x18c7ec,_0x7504('0xd5'))(..._0x4ec520)});}['registerCustomCallback'](_0x208b3b,_0x418826,_0x28255b,_0x1615b2){const _0x369505=_0x208b3b+':'+_0x418826+':'+_0x28255b;this[_0x7504('0x8e')][_0x7504('0x85')](_0x369505,_0x1615b2);}['getSuggestionCallback'](_0xbc19c4,_0x5b2e10,_0x5cecab){const _0x3f4199=_0xbc19c4+':'+_0x5b2e10+':'+_0x5cecab;return this[_0x7504('0x8e')][_0x7504('0x136')](_0x3f4199)||this[_0x7504('0x9e')]['get'](_0xbc19c4+':'+_0x5cecab);}['_registerDefaultCallbacks'](){const _0xeb0917=()=>{},_0x5968ca=_0x472030=>{_0x472030['sort']((_0x34c151,_0x1982ac)=>_0x34c151[_0x7504('0x7e')][_0x7504('0xbe')](_0x1982ac[_0x7504('0x7e')])?0x1:-0x1),this['_model'][_0x7504('0x81')](_0x150098=>{for(const _0xfd606c of _0x472030){let _0x5d97ea;_0x5d97ea=_0xfd606c[_0x7504('0x4d')][_0x7504('0x6e')]&&_0xfd606c['end'][_0x7504('0x2a')]==_0xfd606c[_0x7504('0x7e')][_0x7504('0x2')]?_0x150098[_0x7504('0xf')](_0xfd606c[_0x7504('0x7e')][_0x7504('0x2')],'on'):_0x150098[_0x7504('0xf')](_0xfd606c),this[_0x7504('0x82')][_0x7504('0x102')](_0x5d97ea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2e421c=(_0x215635,_0x5b36c2)=>{this[_0x7504('0x82')][_0x7504('0x81')](_0x556eb8=>{const {commandName:_0x2bb0bd,commandParams:_0x5427b2=[]}=_0x5b36c2,_0x1608a4=_0x215635['map'](_0x3022c9=>(_t(_0x3022c9)&&(_0x3022c9=this[_0x7504('0x82')][_0x7504('0x26')](_0x3022c9[_0x7504('0x4d')])),_0x3022c9))[_0x7504('0x51')](_0x568b43=>_0x7504('0x45')!==_0x568b43[_0x7504('0xa4')][_0x7504('0xef')]);if(_0x1608a4[_0x7504('0xbf')]<0x1)return;const _0x3aa51d=Array[_0x7504('0x31')](this[_0x7504('0x82')][_0x7504('0xfb')]['selection']['getRanges']())[_0x7504('0x43')](_0x4c13a5=>_0x3d2980[_0x7504('0x79')](_0x4c13a5));_0x556eb8[_0x7504('0x35')](_0x1608a4);for(const _0x319e8f of this['_editor']['commands']['commands']())_0x319e8f['refresh']();_0x5427b2['push']({'forceDefaultExecution':!0x0}),this[_0x7504('0x10a')][_0x7504('0x12')](_0x2bb0bd,..._0x5427b2);const _0x4be6e1=_0x3aa51d[_0x7504('0x51')](_0x57efaa=>_0x7504('0x45')!=_0x57efaa[_0x7504('0xa4')][_0x7504('0xef')]);_0x4be6e1[_0x7504('0xbf')]>0x0&&_0x556eb8[_0x7504('0x35')](_0x4be6e1);for(const _0x21794e of _0x3aa51d)_0x21794e['detach']();});},_0x34317d=(_0x5bb7eb,_0x1f3f9a)=>0x1==_0x5bb7eb['length']&&0x1==_0x1f3f9a['length']&&_0x5bb7eb[0x0][_0x7504('0x4d')][_0x7504('0xde')](_0x1f3f9a[0x0][_0x7504('0x7e')]),_0x26f2d3=(_0x2a3d21,_0x16e934,_0x1272b0,_0x537d72)=>xt(_0x2a3d21,_0x16e934,_0x1272b0,_0x537d72,this[_0x7504('0x82')])?[_0x2a3d21,_0x16e934]:xt(_0x16e934,_0x2a3d21,_0x537d72,_0x1272b0,this['_model'])?[_0x16e934,_0x2a3d21]:null;this[_0x7504('0x9e')]['set'](_0x7504('0x6'),_0xeb0917),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0xbd'),_0x5968ca),this[_0x7504('0x9e')][_0x7504('0x85')]('insertion:join',_0x34317d),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0x99'),_0x26f2d3),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x6a'),_0x5968ca),this[_0x7504('0x9e')][_0x7504('0x85')]('deletion:discard',_0xeb0917),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x4b'),_0x34317d),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0xdf'),_0x26f2d3),this['_defaultCallbacks'][_0x7504('0x85')]('formatInline:accept',_0x2e421c),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x130'),_0xeb0917),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x76'),_0x34317d),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x7b'),_0xeb0917),this['_defaultCallbacks']['set'](_0x7504('0x25'),_0x2e421c),this['_defaultCallbacks'][_0x7504('0x85')](_0x7504('0x2e'),_0xeb0917),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0xc0'),_0x34317d),this[_0x7504('0x9e')][_0x7504('0x85')](_0x7504('0x11b'),_0xeb0917);}}function Bt(_0x3ae5ef,_0x284e68,_0x5c9055){for(const _0x325629 of _0x284e68[_0x7504('0x2a')][_0x7504('0xe0')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x325629['root']==_0x325629)return!0x1;if(!_0x5c9055[_0x7504('0x107')](_0x325629))return!0x1;if(_0x3ae5ef[_0x7504('0xfa')](_0x325629)||_0x3ae5ef[_0x7504('0x9b')](_0x325629))return!0x0;}return!0x1;}function _t(_0xd65567){return _0xd65567[_0x7504('0x4d')][_0x7504('0x2a')]==_0xd65567[_0x7504('0x7e')][_0x7504('0x2')]&&_0xd65567[_0x7504('0x4d')][_0x7504('0x8f')];}function Mt(_0x31364f,_0x1c974f,_0x731afe,_0x478adf){const _0xeca69a=_0x514e89=>!_0x514e89[_0x7504('0x116')]['is'](_0x7504('0x49'))&&!_0x478adf[_0x7504('0xfa')](_0x514e89[_0x7504('0x116')]),_0x140f9b=_0x31364f['start'][_0x7504('0x117')](_0xeca69a),_0x570921=_0x31364f[_0x7504('0x4d')][_0x7504('0x117')](_0xeca69a,{'direction':_0x7504('0x69')});return(!_0x31364f[_0x7504('0x7e')][_0x7504('0xde')](_0x140f9b)||!_0x31364f['end']['isEqual'](_0x570921))&&(_0x140f9b[_0x7504('0xbe')](_0x570921)?_0x731afe[_0x7504('0x8a')](_0x1c974f,{'range':_0x731afe[_0x7504('0x26')](_0x140f9b,_0x570921)}):_0x731afe[_0x7504('0xae')](_0x1c974f),!0x0);}function $t(_0x15b7ab){return _0x14fa2d(_0x15b7ab);}function Nt(_0x541f44){const _0x2ea2be=_0x541f44[_0x7504('0x7e')][_0x7504('0x2')];return _0x2ea2be&&_0x2ea2be['is'](_0x7504('0x3f'));}function Rt(_0x4e93d1,_0xf143d5){const _0x30a328=_0xf143d5[_0x7504('0x1')][_0x7504('0xfa')](_0x4e93d1)||_0xf143d5['schema']['isSelectable'](_0x4e93d1);return _0xf143d5[_0x7504('0x26')](_0xf143d5[_0x7504('0x5c')](_0x4e93d1,'before'),_0x30a328?_0xf143d5['createPositionAfter'](_0x4e93d1):_0xf143d5[_0x7504('0x5c')](_0x4e93d1,_0x7504('0x4d')));}function xt(_0x4f50c0,_0x2741fa,_0x211ace,_0x1221f5,_0x1822ad){if(_0x211ace[_0x7504('0x4d')]['isEqual'](_0x1221f5['start']))return!0x0;if(_0x4f50c0[_0x7504('0xf7')]!=_0x2741fa[_0x7504('0xf7')])return!0x1;if(!_0x211ace[_0x7504('0x4d')]['isTouching'](_0x1221f5['start']))return!0x1;const _0x3ef143=_0x1822ad[_0x7504('0x26')](_0x211ace[_0x7504('0x4d')],_0x1221f5[_0x7504('0x7e')])[_0x7504('0xec')]();for(const _0x379361 of _0x3ef143)if([_0x7504('0xe6'),_0x7504('0xc4')]['includes'](_0x379361[_0x7504('0xf7')])&&_0x1822ad['schema'][_0x7504('0x9b')](_0x379361[_0x7504('0x116')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e38=['commandName','model','trackChanges','EditorAnnotations','isDirty','buttonView','_initializeController','comments.editorConfig','size','remove','CommentsUI','getRanges','CommentsRepository','source','comments','head','isEnabled','has','unbind','push','from','_descriptionFactory','toMany','_annotationViews','focus','TrackChangesUI','suggestion-','pluginName','config','some','isInContent','stopListening','createAnnotation','isOn','requires','type','suggestionChanged','destroy','descriptionParts','Annotations','init','_destroyController','acceptButton','commands','TrackChangesEditing','map','_disableComments','view','getMarkers','bind','comments.maxCommentCharsWhenCollapsed','getByInnerView','change:previous','button','_updateController','acceptSelectedSuggestions','innerView','previous','execute','activeMarkers','CommentView','Accept\x20all\x20suggestions','_createUIButton','switchbutton','filter','refreshSelectedViews','createCommentThreadController','_handleSuggestionControllerDelayed','isMultiRange','componentFactory','_viewToController','actionView','Discard\x20all\x20suggestions','activeAnnotations','_handleControllerBuffer','discardButton','define','locale','set','getAllAdjacentSuggestions','delete','editing','get','length','editor','Track\x20changes','getJoined','acceptAllSuggestions','_suggestionToController','value','comments.maxCommentsWhenCollapsed','trackChanges.disableComments','change:activeAnnotations','mainView','add','separator','keys','discardSelectedSuggestions','clear','lowest','suggestionLoaded','addSourceCollector','getDescriptions','listenTo','plugins','discardAllSuggestions','suggestionUnloaded','createAnnotationView'];(function(_0x3fcd1b,_0x2e389c){const _0x259fa4=function(_0xf4f521){while(--_0xf4f521){_0x3fcd1b['push'](_0x3fcd1b['shift']());}};_0x259fa4(++_0x2e389c);}(_0x2e38,0x170));const _0x259f=function(_0x3fcd1b,_0x2e389c){_0x3fcd1b=_0x3fcd1b-0x0;let _0x259fa4=_0x2e38[_0x3fcd1b];return _0x259fa4;};import{Plugin as _0x17a3cf}from'ckeditor5/src/core';import{Collection as _0x180f4e}from'ckeditor5/src/utils';import{Model as _0x5cceef,SplitButtonView as _0x545a35,createDropdown as _0x5afe29,addListToDropdown as _0x409cd8}from'ckeditor5/src/ui';import{Users as _0x1e0091,getDateTimeFormatter as _0x28eda6,getAllMarkersDomElementsSorted as _0x242f75}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ebf71 from'./trackchangesediting';import _0x1b96bd from'./ui/suggestioncontroller';import _0x1ed5a1 from'./ui/view/suggestionthreadview';import{getTranslation as _0x1c2ad5}from'./utils/common-translations';import _0x3f705d from'../theme/icons/track-changes.svg';export default class d extends _0x17a3cf{static get[_0x259f('0x62')](){return[_0x5ebf71,_0x1e0091,_0x259f('0x4c'),_0x259f('0x67'),_0x259f('0x43')];}static get[_0x259f('0x5b')](){return _0x259f('0x59');}constructor(_0x285a00){super(_0x285a00),this[_0x259f('0x2c')]=new Map(),this['_viewToController']=new Map(),this[_0x259f('0x57')]=new Map(),this[_0x259f('0x1e')]=new Map();const _0x336227=this[_0x259f('0x28')]['config'];_0x336227[_0x259f('0x20')]('trackChanges.SuggestionThreadView',_0x1ed5a1),_0x336227[_0x259f('0x20')](_0x259f('0x2f'),!0x1),this[_0x259f('0x2')]=_0x336227[_0x259f('0x26')]('trackChanges.disableComments');}[_0x259f('0x17')](_0x4214d8,_0xc852b8){0x0===this[_0x259f('0x1e')][_0x259f('0x48')]&&setTimeout(()=>{for(const [_0x272476,_0x99898c]of this[_0x259f('0x1e')]){const _0x2c5f2b=this[_0x259f('0x2c')]['has'](_0x272476);_0x2c5f2b||_0x99898c?_0x2c5f2b&&_0x99898c&&this['_destroyController'](_0x272476):this['_initializeController'](_0x272476);}this['editor'][_0x259f('0x3c')]['get'](_0x259f('0x43'))[_0x259f('0x15')](),this['_refreshActiveMarkers'](),this[_0x259f('0x1e')][_0x259f('0x36')]();},0xa),this[_0x259f('0x1e')][_0x259f('0x22')](_0x4214d8,_0xc852b8);}[_0x259f('0x68')](){const _0x199699=this[_0x259f('0x28')],_0x13ef2d=_0x199699[_0x259f('0x3c')][_0x259f('0x26')]('TrackChangesEditing'),_0x30e908=_0x199699[_0x259f('0x3c')][_0x259f('0x26')]('Annotations'),_0xa2526d=_0x199699[_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x43')),_0x4cfad3=_0x199699[_0x259f('0x3c')][_0x259f('0x26')]('CommentsRepository');_0x199699['ui'][_0x259f('0x19')]['add'](_0x259f('0x42'),_0xcc2ccf=>this[_0x259f('0x12')](_0xcc2ccf)),_0xa2526d[_0x259f('0x39')](()=>{const _0x166368=[];for(const [_0x34dd66,_0x174c29]of Array['from'](this['_suggestionToController'])){const _0x882b27=_0x34dd66['getAllAdjacentSuggestions'](),_0x3b72fb=[];for(const _0x2dd3d3 of _0x882b27){if(!_0x2dd3d3['isInContent'])continue;if(_0x2dd3d3[_0x259f('0x18')]){_0x3b72fb['push'](..._0x2dd3d3[_0x259f('0x4b')]());continue;}const _0x3ede87=_0x2dd3d3['getFirstRange']();if(_0x3b72fb[_0x259f('0x27')]>0x0){const _0x5d65e1=_0x3b72fb[0x0][_0x259f('0x2a')](_0x3ede87);if(_0x5d65e1){_0x3b72fb[0x0]=_0x5d65e1;continue;}}_0x3b72fb['push'](_0x3ede87);}_0x166368[_0x259f('0x53')]([_0x174c29[_0x259f('0x3')],_0x3b72fb]);}return _0x166368;}),this[_0x259f('0x3b')](_0x13ef2d,_0x259f('0x38'),(_0x5db2b7,_0x2932aa)=>{this[_0x259f('0x3b')](_0x2932aa,'change:previous',(_0x5b99a9,_0x4af14a,_0x99b3a,_0x1ba155)=>{_0x2932aa['isInContent']&&(null==_0x99b3a?(this[_0x259f('0xa')](_0x1ba155[_0x259f('0x4f')]),this[_0x259f('0x17')](_0x2932aa,!0x1)):(this[_0x259f('0xa')](_0x99b3a['head']),this[_0x259f('0x17')](_0x2932aa,!0x0)));}),null===_0x2932aa[_0x259f('0xd')]?this[_0x259f('0x17')](_0x2932aa,!0x1):this['_updateController'](_0x2932aa[_0x259f('0x4f')]);}),this[_0x259f('0x3b')](_0x13ef2d,_0x259f('0x3e'),(_0x438750,_0x5ba5ff,_0x1b4841)=>{this[_0x259f('0x5f')](_0x5ba5ff,_0x259f('0x8')),this['_handleControllerBuffer'][_0x259f('0x24')](_0x5ba5ff);const _0x48f8c0=_0x1b4841?_0x1b4841[_0x259f('0x4f')]:_0x5ba5ff,_0xa8a6e5=this[_0x259f('0x2c')][_0x259f('0x26')](_0x48f8c0);null!==_0x1b4841&&this[_0x259f('0xa')](_0x48f8c0),null===_0x1b4841&&_0xa8a6e5&&this[_0x259f('0x69')](_0x5ba5ff);}),this[_0x259f('0x3b')](_0x13ef2d,_0x259f('0x64'),(_0x5f54d2,_0x45ff24)=>{this[_0x259f('0xa')](_0x45ff24);}),this[_0x259f('0x3b')](_0x30e908,_0x259f('0x30'),()=>{this['_refreshActiveMarkers']();}),this[_0x259f('0x3b')](_0x4cfad3,'addComment',(_0xe24ffb,{threadId:_0x38d938,isFromAdapter:_0xa85f4f})=>{if(_0xa85f4f||!_0x13ef2d['hasSuggestion'](_0x38d938))return;const _0x1b5e05=_0x13ef2d['getSuggestion'](_0x38d938);this[_0x259f('0x2c')][_0x259f('0x26')](_0x1b5e05)[_0x259f('0x3')]['focus']();},{'priority':_0x259f('0x37')});}['_refreshActiveMarkers'](){const _0x50775a=this['editor'][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x67')),_0x177b44=this[_0x259f('0x28')][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x0')),_0x188f54=Array[_0x259f('0x54')](_0x50775a[_0x259f('0x1d')],_0x4ca286=>_0x4ca286[_0x259f('0xc')])['filter'](_0x3b3917=>this[_0x259f('0x1a')][_0x259f('0x51')](_0x3b3917)),_0x5b753f=[];for(const _0x4d9c5b of _0x188f54){const _0x573fc4=this[_0x259f('0x1a')]['get'](_0x4d9c5b)[_0x259f('0x41')][_0x259f('0x23')]();_0x5b753f[_0x259f('0x53')](..._0x573fc4['reduce']((_0x48cba0,_0x18f853)=>[..._0x48cba0,..._0x18f853['getMarkerNames']()],[]));}_0x177b44[_0x259f('0xf')]=_0x5b753f;}['_createUIButton'](_0x45f687){const _0x58c984=_0x5afe29(_0x45f687,_0x545a35),_0x264d6f=this[_0x259f('0x28')]['commands'][_0x259f('0x26')](_0x259f('0x42')),_0x4eef64=_0x1c2ad5(_0x45f687,_0x259f('0x29'));_0x58c984[_0x259f('0x45')][_0x259f('0x22')]({'tooltip':_0x4eef64,'label':_0x4eef64,'icon':_0x3f705d}),_0x58c984[_0x259f('0x45')][_0x259f('0x5')](_0x259f('0x61'))['to'](_0x264d6f,_0x259f('0x2d')),_0x58c984[_0x259f('0x45')]['on'](_0x259f('0xe'),()=>{_0x264d6f[_0x259f('0xe')](),this['editor'][_0x259f('0x25')]['view'][_0x259f('0x58')]();});const _0x223af1=new _0x180f4e(),_0x4a4850=[{'type':_0x259f('0x13'),'model':{'withText':!0x0,'label':_0x4eef64,'commandName':_0x259f('0x42')}},{'type':'separator'},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,_0x259f('0x11')),'commandName':_0x259f('0x2b')}},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x259f('0xb')}},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,_0x259f('0x1c')),'commandName':_0x259f('0x3d')}},{'type':_0x259f('0x9'),'model':{'withText':!0x0,'label':_0x1c2ad5(_0x45f687,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x259f('0x35')}}];for(const _0x21b144 of _0x4a4850){let _0x3ecf8e={'type':_0x259f('0x33')};if(_0x21b144[_0x259f('0x41')]){const _0x282a1f=new _0x5cceef(_0x21b144[_0x259f('0x41')]),_0x279e96=this[_0x259f('0x28')]['commands'][_0x259f('0x26')](_0x282a1f[_0x259f('0x40')]);_0x282a1f[_0x259f('0x5')](_0x259f('0x61'),'isEnabled')['to'](_0x279e96,_0x259f('0x2d'),_0x259f('0x50')),_0x3ecf8e={'type':_0x21b144[_0x259f('0x63')],'model':_0x282a1f};}_0x223af1[_0x259f('0x32')](_0x3ecf8e);}_0x409cd8(_0x58c984,_0x223af1);const _0x574c4f=_0x4a4850[_0x259f('0x14')](_0x38368e=>null!=_0x38368e[_0x259f('0x41')])[_0x259f('0x1')](_0x11f001=>this[_0x259f('0x28')][_0x259f('0x6b')][_0x259f('0x26')](_0x11f001[_0x259f('0x41')]['commandName'])),_0x30d005=_0x58c984[_0x259f('0x45')];return _0x30d005[_0x259f('0x1b')][_0x259f('0x52')](_0x259f('0x50')),_0x30d005['arrowView']['unbind'](_0x259f('0x50')),_0x30d005[_0x259f('0x1b')][_0x259f('0x5')]('isEnabled')['to'](_0x264d6f,_0x259f('0x50')),_0x30d005['arrowView']['bind'](_0x259f('0x50'))[_0x259f('0x56')](_0x574c4f,_0x259f('0x50'),(..._0xbebdd0)=>_0xbebdd0[_0x259f('0x5d')](_0x19c4d3=>_0x19c4d3)),_0x58c984['on'](_0x259f('0xe'),_0x5951a9=>{this['editor']['execute'](_0x5951a9[_0x259f('0x4d')][_0x259f('0x40')]),this[_0x259f('0x28')]['editing']['view'][_0x259f('0x58')]();}),_0x58c984;}[_0x259f('0x46')](_0x145dae){const _0x5ed37a=this[_0x259f('0x28')],_0xf98972=_0x5ed37a[_0x259f('0x5c')],_0x25c5e3=_0x5ed37a[_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x67')),_0x1b49a3=_0x5ed37a[_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x4c')),_0x278c26=_0x5ed37a['plugins'][_0x259f('0x26')](_0x259f('0x43')),_0x1bc2c6=_0x5ed37a['plugins'][_0x259f('0x26')](_0x1e0091)['me'],_0x17f80d=_0xf98972[_0x259f('0x26')](_0x259f('0x42'))['SuggestionThreadView'],{CommentsListView:_0x45f446,CommentThreadInputView:_0x4a6b84}=_0x5ed37a[_0x259f('0x3c')]['get'](_0x259f('0x4a'));let _0x2d1dd3,_0x35a0d4;this[_0x259f('0x57')]['has'](_0x145dae['id'])?(_0x35a0d4=this[_0x259f('0x57')][_0x259f('0x26')](_0x145dae['id']),_0x2d1dd3=_0x35a0d4[_0x259f('0x31')]):(_0x2d1dd3=new _0x17f80d(_0x5ed37a[_0x259f('0x21')],_0x145dae,_0x1bc2c6,{'disableComments':this[_0x259f('0x2')],'editorConfig':_0xf98972[_0x259f('0x26')](_0x259f('0x47')),'maxCommentsWhenCollapsed':_0xf98972[_0x259f('0x26')](_0x259f('0x2e')),'maxThreadTotalWeight':_0xf98972[_0x259f('0x26')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf98972[_0x259f('0x26')](_0x259f('0x6')),'formatDateTime':_0x28eda6(_0xf98972[_0x259f('0x26')](_0x259f('0x21'))),'CommentView':_0xf98972[_0x259f('0x26')](_0x259f('0x4e'))[_0x259f('0x10')],'CommentsListView':_0x45f446,'CommentThreadInputView':_0x4a6b84}),_0x2d1dd3[_0x259f('0x6a')]['on'](_0x259f('0xe'),()=>{_0x5ed37a[_0x259f('0x25')][_0x259f('0x3')][_0x259f('0x58')]();}),_0x2d1dd3[_0x259f('0x1f')]['on'](_0x259f('0xe'),()=>{_0x5ed37a[_0x259f('0x25')][_0x259f('0x3')][_0x259f('0x58')]();}),_0x35a0d4=_0x25c5e3[_0x259f('0x3f')](this[_0x259f('0x28')][_0x259f('0x21')],_0x2d1dd3),_0x35a0d4[_0x259f('0x5')]('isDirty')['to'](_0x2d1dd3,_0x259f('0x44')),_0x35a0d4[_0x259f('0x5')]('length')['to'](_0x2d1dd3),_0x35a0d4[_0x259f('0x5')](_0x259f('0x63'))['to'](_0x2d1dd3,_0x259f('0x63'),_0x2883ec=>_0x259f('0x5a')+_0x2883ec),this[_0x259f('0x57')][_0x259f('0x22')](_0x145dae['id'],_0x35a0d4));const _0xde9729=_0x1b49a3[_0x259f('0x16')](_0x145dae['commentThread'],_0x2d1dd3),_0x45c773=new _0x1b96bd(_0x5ed37a,_0x145dae,_0x2d1dd3,_0xde9729),_0x59e318=_0x145dae['getAllAdjacentSuggestions']()[_0x259f('0x14')](_0x1f81d0=>_0x1f81d0[_0x259f('0x5e')]);_0x2d1dd3[_0x259f('0x66')]=_0x5ed37a['plugins'][_0x259f('0x26')](_0x259f('0x0'))[_0x259f('0x55')][_0x259f('0x3a')](_0x59e318),this[_0x259f('0x2c')][_0x259f('0x22')](_0x145dae,_0x45c773),this[_0x259f('0x1a')][_0x259f('0x22')](_0x2d1dd3,_0x45c773);const _0x2c9ded=_0x25c5e3[_0x259f('0x60')]({'view':_0x35a0d4,'target':()=>{const _0xfddfd0=[],_0x37de7b=_0x145dae[_0x259f('0x23')]()[_0x259f('0x14')](_0x356805=>_0x356805[_0x259f('0x5e')]);for(const _0x1fd500 of _0x37de7b)_0xfddfd0[_0x259f('0x53')](..._0x1fd500[_0x259f('0x4')]());return _0x242f75(_0x5ed37a[_0x259f('0x25')],_0xfddfd0);},'type':()=>_0x259f('0x5a')+_0x45c773['view']['type']});_0x25c5e3[_0x259f('0x32')](_0x2c9ded),_0x278c26['registerAnnotation'](_0x2c9ded);}[_0x259f('0x69')](_0x124782){const _0x146a9a=this[_0x259f('0x28')][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x67')),_0x14927f=this['_suggestionToController'][_0x259f('0x26')](_0x124782),_0x50ff67=_0x14927f['view'],_0x4a126d=_0x146a9a[_0x259f('0x7')](_0x50ff67);_0x4a126d&&_0x146a9a[_0x259f('0x49')](_0x4a126d),this[_0x259f('0x2c')][_0x259f('0x24')](_0x124782),this['_viewToController'][_0x259f('0x24')](_0x50ff67),_0x14927f[_0x259f('0x65')]();}[_0x259f('0xa')](_0x4d3821){if(!_0x4d3821[_0x259f('0x5e')]||!this['_suggestionToController'][_0x259f('0x51')](_0x4d3821))return;const _0x4a76f0=this[_0x259f('0x28')][_0x259f('0x3c')][_0x259f('0x26')](_0x259f('0x0')),_0x1c5b62=this[_0x259f('0x2c')][_0x259f('0x26')](_0x4d3821),_0x19aa60=_0x4d3821[_0x259f('0x23')]();_0x1c5b62[_0x259f('0x3')][_0x259f('0x66')]=_0x4a76f0['_descriptionFactory'][_0x259f('0x3a')](_0x19aa60);}[_0x259f('0x65')](){for(const _0x36fa6e of this[_0x259f('0x2c')][_0x259f('0x34')]())this['_destroyController'](_0x36fa6e);for(const _0x2863df of this['_annotationViews']['values']())_0x2863df[_0x259f('0x31')][_0x259f('0x65')]();super[_0x259f('0x65')]();}}
23
+ const _0x5e99=['addSourceCollector','_createUIButton','isMultiRange','bind','refreshSelectedViews','clear','discardSelectedSuggestions','trackChanges.SuggestionThreadView','listenTo','set','commands','activeAnnotations','TrackChangesUI','keys','CommentView','acceptSelectedSuggestions','change:activeAnnotations','push','comments','getSuggestion','comments.maxCommentsWhenCollapsed','from','length','comments.maxThreadTotalWeight','_initializeController','commentThread','suggestionChanged','getFirstRange','remove','CommentsRepository','_destroyController','add','unbind','locale','plugins','_disableComments','descriptionParts','EditorAnnotations','suggestionLoaded','toMany','activeMarkers','destroy','_handleControllerBuffer','isDirty','Discard\x20all\x20suggestions','_handleSuggestionControllerDelayed','isEnabled','isOn','has','editing','createAnnotation','componentFactory','getDescriptions','button','getMarkerNames','_refreshActiveMarkers','comments.maxCommentCharsWhenCollapsed','commandName','requires','define','createCommentThreadController','actionView','get','TrackChangesEditing','view','_suggestionToController','trackChanges.disableComments','model','acceptAllSuggestions','head','Discard\x20all\x20selected\x20suggestions','filter','isInContent','discardButton','acceptButton','trackChanges','mainView','change:previous','getAllAdjacentSuggestions','pluginName','_descriptionFactory','CommentsUI','focus','size','suggestionUnloaded','reduce','execute','type','init','getRanges','buttonView','switchbutton','addComment','suggestion-','_viewToController','_annotationViews','_updateController','comments.editorConfig','delete','registerAnnotation','getJoined','config','editor','Annotations','Track\x20changes','getMarkers','arrowView','discardAllSuggestions','innerView','createAnnotationView'];(function(_0x102dec,_0x5e9977){const _0x39cd5c=function(_0x4366db){while(--_0x4366db){_0x102dec['push'](_0x102dec['shift']());}};_0x39cd5c(++_0x5e9977);}(_0x5e99,0xa7));const _0x39cd=function(_0x102dec,_0x5e9977){_0x102dec=_0x102dec-0x0;let _0x39cd5c=_0x5e99[_0x102dec];return _0x39cd5c;};import{Plugin as _0x565697}from'ckeditor5/src/core';import{Collection as _0x4d5bcf}from'ckeditor5/src/utils';import{Model as _0x40dd2f,SplitButtonView as _0x434968,createDropdown as _0x46a4ac,addListToDropdown as _0x7d4859}from'ckeditor5/src/ui';import{Users as _0xb54a43,getDateTimeFormatter as _0x31f50f,getAllMarkersDomElementsSorted as _0x52b010}from'ckeditor5-collaboration/src/collaboration-core';import _0x40ac97 from'./trackchangesediting';import _0x52166d from'./ui/suggestioncontroller';import _0x357686 from'./ui/view/suggestionthreadview';import{getTranslation as _0x59c09f}from'./utils/common-translations';import _0x432a7c from'../theme/icons/track-changes.svg';export default class d extends _0x565697{static get[_0x39cd('0x1')](){return[_0x40ac97,_0xb54a43,_0x39cd('0x52'),_0x39cd('0x2e'),_0x39cd('0x5a')];}static get[_0x39cd('0x16')](){return _0x39cd('0x41');}constructor(_0x184fba){super(_0x184fba),this[_0x39cd('0x8')]=new Map(),this[_0x39cd('0x25')]=new Map(),this[_0x39cd('0x26')]=new Map(),this[_0x39cd('0x5f')]=new Map();const _0x794dcf=this[_0x39cd('0x2d')][_0x39cd('0x2c')];_0x794dcf[_0x39cd('0x2')](_0x39cd('0x3c'),_0x357686),_0x794dcf[_0x39cd('0x2')](_0x39cd('0x9'),!0x1),this[_0x39cd('0x58')]=_0x794dcf[_0x39cd('0x5')](_0x39cd('0x9'));}[_0x39cd('0x62')](_0x1a19de,_0x4b504c){0x0===this['_handleControllerBuffer'][_0x39cd('0x1a')]&&setTimeout(()=>{for(const [_0x6f9fe0,_0x3d30d3]of this[_0x39cd('0x5f')]){const _0x5db4e9=this['_suggestionToController'][_0x39cd('0x65')](_0x6f9fe0);_0x5db4e9||_0x3d30d3?_0x5db4e9&&_0x3d30d3&&this['_destroyController'](_0x6f9fe0):this[_0x39cd('0x4d')](_0x6f9fe0);}this[_0x39cd('0x2d')]['plugins'][_0x39cd('0x5')](_0x39cd('0x5a'))[_0x39cd('0x39')](),this[_0x39cd('0x6c')](),this[_0x39cd('0x5f')][_0x39cd('0x3a')]();},0xa),this[_0x39cd('0x5f')][_0x39cd('0x3e')](_0x1a19de,_0x4b504c);}[_0x39cd('0x1f')](){const _0x3121e1=this[_0x39cd('0x2d')],_0x30049e=_0x3121e1[_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x6')),_0x14c30d=_0x3121e1[_0x39cd('0x57')][_0x39cd('0x5')]('Annotations'),_0x30dbd7=_0x3121e1['plugins'][_0x39cd('0x5')](_0x39cd('0x5a')),_0x4cfc62=_0x3121e1[_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x52'));_0x3121e1['ui'][_0x39cd('0x68')][_0x39cd('0x54')](_0x39cd('0x12'),_0x3ca0e4=>this[_0x39cd('0x36')](_0x3ca0e4)),_0x30dbd7[_0x39cd('0x35')](()=>{const _0x2600e9=[];for(const [_0x5e4342,_0x4c4016]of Array['from'](this[_0x39cd('0x8')])){const _0x1ad722=_0x5e4342[_0x39cd('0x15')](),_0x114bc9=[];for(const _0xa5cc6 of _0x1ad722){if(!_0xa5cc6['isInContent'])continue;if(_0xa5cc6[_0x39cd('0x37')]){_0x114bc9['push'](..._0xa5cc6[_0x39cd('0x20')]());continue;}const _0x4e7e5c=_0xa5cc6[_0x39cd('0x50')]();if(_0x114bc9[_0x39cd('0x4b')]>0x0){const _0x7ad621=_0x114bc9[0x0][_0x39cd('0x2b')](_0x4e7e5c);if(_0x7ad621){_0x114bc9[0x0]=_0x7ad621;continue;}}_0x114bc9[_0x39cd('0x46')](_0x4e7e5c);}_0x2600e9[_0x39cd('0x46')]([_0x4c4016[_0x39cd('0x7')],_0x114bc9]);}return _0x2600e9;}),this[_0x39cd('0x3d')](_0x30049e,_0x39cd('0x5b'),(_0xe72bed,_0x53d87c)=>{this[_0x39cd('0x3d')](_0x53d87c,_0x39cd('0x14'),(_0x26db1c,_0x5385b6,_0x585b16,_0x4a7a97)=>{_0x53d87c[_0x39cd('0xf')]&&(null==_0x585b16?(this[_0x39cd('0x27')](_0x4a7a97[_0x39cd('0xc')]),this['_handleSuggestionControllerDelayed'](_0x53d87c,!0x1)):(this[_0x39cd('0x27')](_0x585b16['head']),this[_0x39cd('0x62')](_0x53d87c,!0x0)));}),null===_0x53d87c['previous']?this['_handleSuggestionControllerDelayed'](_0x53d87c,!0x1):this[_0x39cd('0x27')](_0x53d87c[_0x39cd('0xc')]);}),this[_0x39cd('0x3d')](_0x30049e,_0x39cd('0x1b'),(_0x4b6ba4,_0x3b8b2d,_0x3560f6)=>{this['stopListening'](_0x3b8b2d,_0x39cd('0x14')),this[_0x39cd('0x5f')]['delete'](_0x3b8b2d);const _0x32366c=_0x3560f6?_0x3560f6[_0x39cd('0xc')]:_0x3b8b2d,_0x592f13=this['_suggestionToController'][_0x39cd('0x5')](_0x32366c);null!==_0x3560f6&&this[_0x39cd('0x27')](_0x32366c),null===_0x3560f6&&_0x592f13&&this['_destroyController'](_0x3b8b2d);}),this[_0x39cd('0x3d')](_0x30049e,_0x39cd('0x4f'),(_0x30747f,_0x821a7b)=>{this['_updateController'](_0x821a7b);}),this['listenTo'](_0x14c30d,_0x39cd('0x45'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4cfc62,_0x39cd('0x23'),(_0x46d3aa,{threadId:_0x1c4c38,isFromAdapter:_0x2e8beb})=>{if(_0x2e8beb||!_0x30049e['hasSuggestion'](_0x1c4c38))return;const _0x2ba1c7=_0x30049e[_0x39cd('0x48')](_0x1c4c38);this['_suggestionToController'][_0x39cd('0x5')](_0x2ba1c7)['view'][_0x39cd('0x19')]();},{'priority':'lowest'});}[_0x39cd('0x6c')](){const _0x1ac881=this[_0x39cd('0x2d')][_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x2e')),_0x151ece=this['editor']['plugins']['get'](_0x39cd('0x6')),_0x3c50e3=Array[_0x39cd('0x4a')](_0x1ac881[_0x39cd('0x40')],_0x5724c1=>_0x5724c1[_0x39cd('0x33')])[_0x39cd('0xe')](_0xf71252=>this[_0x39cd('0x25')][_0x39cd('0x65')](_0xf71252)),_0x1c70f6=[];for(const _0x2ab51a of _0x3c50e3){const _0x238b3a=this[_0x39cd('0x25')][_0x39cd('0x5')](_0x2ab51a)[_0x39cd('0xa')]['getAllAdjacentSuggestions']();_0x1c70f6[_0x39cd('0x46')](..._0x238b3a[_0x39cd('0x1c')]((_0x113f11,_0x68b016)=>[..._0x113f11,..._0x68b016[_0x39cd('0x6b')]()],[]));}_0x151ece[_0x39cd('0x5d')]=_0x1c70f6;}[_0x39cd('0x36')](_0x28693c){const _0x525990=_0x46a4ac(_0x28693c,_0x434968),_0x30ecbc=this[_0x39cd('0x2d')]['commands'][_0x39cd('0x5')](_0x39cd('0x12')),_0x3893a7=_0x59c09f(_0x28693c,_0x39cd('0x2f'));_0x525990[_0x39cd('0x21')][_0x39cd('0x3e')]({'tooltip':_0x3893a7,'label':_0x3893a7,'icon':_0x432a7c}),_0x525990[_0x39cd('0x21')][_0x39cd('0x38')](_0x39cd('0x64'))['to'](_0x30ecbc,'value'),_0x525990[_0x39cd('0x21')]['on']('execute',()=>{_0x30ecbc[_0x39cd('0x1d')](),this['editor'][_0x39cd('0x66')][_0x39cd('0x7')]['focus']();});const _0x2141b1=new _0x4d5bcf(),_0x3ef39d=[{'type':_0x39cd('0x22'),'model':{'withText':!0x0,'label':_0x3893a7,'commandName':_0x39cd('0x12')}},{'type':'separator'},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,'Accept\x20all\x20suggestions'),'commandName':_0x39cd('0xb')}},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x39cd('0x44')}},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,_0x39cd('0x61')),'commandName':_0x39cd('0x32')}},{'type':_0x39cd('0x6a'),'model':{'withText':!0x0,'label':_0x59c09f(_0x28693c,_0x39cd('0xd')),'commandName':_0x39cd('0x3b')}}];for(const _0x43388c of _0x3ef39d){let _0x1dfa64={'type':'separator'};if(_0x43388c[_0x39cd('0xa')]){const _0x589b32=new _0x40dd2f(_0x43388c[_0x39cd('0xa')]),_0x1d341f=this[_0x39cd('0x2d')][_0x39cd('0x3f')][_0x39cd('0x5')](_0x589b32[_0x39cd('0x0')]);_0x589b32[_0x39cd('0x38')](_0x39cd('0x64'),'isEnabled')['to'](_0x1d341f,'value',_0x39cd('0x63')),_0x1dfa64={'type':_0x43388c['type'],'model':_0x589b32};}_0x2141b1[_0x39cd('0x54')](_0x1dfa64);}_0x7d4859(_0x525990,_0x2141b1);const _0x3eb1ce=_0x3ef39d[_0x39cd('0xe')](_0x2260a6=>null!=_0x2260a6[_0x39cd('0xa')])['map'](_0xbe9552=>this[_0x39cd('0x2d')]['commands'][_0x39cd('0x5')](_0xbe9552[_0x39cd('0xa')][_0x39cd('0x0')])),_0xa744cd=_0x525990[_0x39cd('0x21')];return _0xa744cd[_0x39cd('0x4')][_0x39cd('0x55')](_0x39cd('0x63')),_0xa744cd['arrowView']['unbind']('isEnabled'),_0xa744cd['actionView'][_0x39cd('0x38')](_0x39cd('0x63'))['to'](_0x30ecbc,'isEnabled'),_0xa744cd[_0x39cd('0x31')][_0x39cd('0x38')]('isEnabled')[_0x39cd('0x5c')](_0x3eb1ce,_0x39cd('0x63'),(..._0x54d646)=>_0x54d646['some'](_0x35a169=>_0x35a169)),_0x525990['on'](_0x39cd('0x1d'),_0x5d9786=>{this[_0x39cd('0x2d')][_0x39cd('0x1d')](_0x5d9786['source'][_0x39cd('0x0')]),this[_0x39cd('0x2d')][_0x39cd('0x66')]['view'][_0x39cd('0x19')]();}),_0x525990;}['_initializeController'](_0x2bb2ea){const _0x786343=this[_0x39cd('0x2d')],_0x41db48=_0x786343['config'],_0x88bbc2=_0x786343['plugins'][_0x39cd('0x5')](_0x39cd('0x2e')),_0x56c95f=_0x786343[_0x39cd('0x57')]['get']('CommentsRepository'),_0x24e229=_0x786343[_0x39cd('0x57')][_0x39cd('0x5')](_0x39cd('0x5a')),_0x718ee2=_0x786343['plugins'][_0x39cd('0x5')](_0xb54a43)['me'],_0x1d6c07=_0x41db48['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x365407,CommentThreadInputView:_0x4e1e81}=_0x786343['plugins']['get'](_0x39cd('0x18'));let _0xd35d36,_0x358bc1;this[_0x39cd('0x26')][_0x39cd('0x65')](_0x2bb2ea['id'])?(_0x358bc1=this[_0x39cd('0x26')][_0x39cd('0x5')](_0x2bb2ea['id']),_0xd35d36=_0x358bc1['mainView']):(_0xd35d36=new _0x1d6c07(_0x786343[_0x39cd('0x56')],_0x2bb2ea,_0x718ee2,{'disableComments':this[_0x39cd('0x58')],'editorConfig':_0x41db48[_0x39cd('0x5')](_0x39cd('0x28')),'maxCommentsWhenCollapsed':_0x41db48[_0x39cd('0x5')](_0x39cd('0x49')),'maxThreadTotalWeight':_0x41db48[_0x39cd('0x5')](_0x39cd('0x4c')),'maxCommentCharsWhenCollapsed':_0x41db48[_0x39cd('0x5')](_0x39cd('0x6d')),'formatDateTime':_0x31f50f(_0x41db48['get'](_0x39cd('0x56'))),'CommentView':_0x41db48['get'](_0x39cd('0x47'))[_0x39cd('0x43')],'CommentsListView':_0x365407,'CommentThreadInputView':_0x4e1e81}),_0xd35d36[_0x39cd('0x11')]['on'](_0x39cd('0x1d'),()=>{_0x786343[_0x39cd('0x66')]['view'][_0x39cd('0x19')]();}),_0xd35d36[_0x39cd('0x10')]['on'](_0x39cd('0x1d'),()=>{_0x786343[_0x39cd('0x66')][_0x39cd('0x7')][_0x39cd('0x19')]();}),_0x358bc1=_0x88bbc2[_0x39cd('0x34')](this[_0x39cd('0x2d')][_0x39cd('0x56')],_0xd35d36),_0x358bc1['bind']('isDirty')['to'](_0xd35d36,_0x39cd('0x60')),_0x358bc1[_0x39cd('0x38')](_0x39cd('0x4b'))['to'](_0xd35d36),_0x358bc1[_0x39cd('0x38')]('type')['to'](_0xd35d36,_0x39cd('0x1e'),_0x8e85c9=>_0x39cd('0x24')+_0x8e85c9),this[_0x39cd('0x26')][_0x39cd('0x3e')](_0x2bb2ea['id'],_0x358bc1));const _0x20023a=_0x56c95f[_0x39cd('0x3')](_0x2bb2ea[_0x39cd('0x4e')],_0xd35d36),_0x417c96=new _0x52166d(_0x786343,_0x2bb2ea,_0xd35d36,_0x20023a),_0x22ada8=_0x2bb2ea[_0x39cd('0x15')]()[_0x39cd('0xe')](_0x2cea48=>_0x2cea48[_0x39cd('0xf')]);_0xd35d36[_0x39cd('0x59')]=_0x786343['plugins'][_0x39cd('0x5')](_0x39cd('0x6'))[_0x39cd('0x17')][_0x39cd('0x69')](_0x22ada8),this[_0x39cd('0x8')][_0x39cd('0x3e')](_0x2bb2ea,_0x417c96),this['_viewToController'][_0x39cd('0x3e')](_0xd35d36,_0x417c96);const _0x350e12=_0x88bbc2[_0x39cd('0x67')]({'view':_0x358bc1,'target':()=>{const _0x519272=[],_0x35ac83=_0x2bb2ea[_0x39cd('0x15')]()[_0x39cd('0xe')](_0x10d94d=>_0x10d94d[_0x39cd('0xf')]);for(const _0x5639ad of _0x35ac83)_0x519272['push'](..._0x5639ad[_0x39cd('0x30')]());return _0x52b010(_0x786343[_0x39cd('0x66')],_0x519272);},'type':()=>_0x39cd('0x24')+_0x417c96['view'][_0x39cd('0x1e')]});_0x88bbc2['add'](_0x350e12),_0x24e229[_0x39cd('0x2a')](_0x350e12);}['_destroyController'](_0x45a366){const _0x3575cb=this[_0x39cd('0x2d')][_0x39cd('0x57')]['get'](_0x39cd('0x2e')),_0xd280ca=this[_0x39cd('0x8')]['get'](_0x45a366),_0x1dbf44=_0xd280ca['view'],_0x3fd9c3=_0x3575cb['getByInnerView'](_0x1dbf44);_0x3fd9c3&&_0x3575cb[_0x39cd('0x51')](_0x3fd9c3),this[_0x39cd('0x8')][_0x39cd('0x29')](_0x45a366),this[_0x39cd('0x25')]['delete'](_0x1dbf44),_0xd280ca[_0x39cd('0x5e')]();}[_0x39cd('0x27')](_0xf6f8be){if(!_0xf6f8be[_0x39cd('0xf')]||!this[_0x39cd('0x8')][_0x39cd('0x65')](_0xf6f8be))return;const _0x2096a7=this['editor']['plugins']['get'](_0x39cd('0x6')),_0x4e4ba7=this[_0x39cd('0x8')][_0x39cd('0x5')](_0xf6f8be),_0x2aab52=_0xf6f8be['getAllAdjacentSuggestions']();_0x4e4ba7[_0x39cd('0x7')]['descriptionParts']=_0x2096a7[_0x39cd('0x17')][_0x39cd('0x69')](_0x2aab52);}[_0x39cd('0x5e')](){for(const _0x1c87f5 of this[_0x39cd('0x8')][_0x39cd('0x42')]())this[_0x39cd('0x53')](_0x1c87f5);for(const _0x5e814b of this[_0x39cd('0x26')]['values']())_0x5e814b[_0x39cd('0x13')][_0x39cd('0x5e')]();super[_0x39cd('0x5e')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f07=['_editor','canEditAt','canDiscard','add','_acceptCommand','commands','destroy','isEnabled','discardSuggestion','execute','_setPendingAction','_pendingAction','stopListening','change:isDirty','_removePendingAction','get','view','commentThreadController','unbind','getRanges','bind','acceptSuggestion','model','remove','canAccept','_discardCommand','PendingActions','plugins','listenTo'];(function(_0x52fab2,_0x4f074c){const _0x382ff7=function(_0x2a7e1c){while(--_0x2a7e1c){_0x52fab2['push'](_0x52fab2['shift']());}};_0x382ff7(++_0x4f074c);}(_0x4f07,0x1c0));const _0x382f=function(_0x52fab2,_0x4f074c){_0x52fab2=_0x52fab2-0x0;let _0x382ff7=_0x4f07[_0x52fab2];return _0x382ff7;};import{ObservableMixin as _0x1da643}from'ckeditor5/src/utils';import{getTranslation as _0x2616a1}from'../utils/common-translations';export default class qt extends _0x1da643(){constructor(_0x5284e5,_0x2d3461,_0x3146ce,_0x614a55){super(),this[_0x382f('0x9')]=_0x2d3461,this[_0x382f('0x3')]=_0x3146ce,this[_0x382f('0x4')]=_0x614a55,this[_0x382f('0x10')]=_0x5284e5,this[_0x382f('0x14')]=_0x5284e5[_0x382f('0x15')][_0x382f('0x2')](_0x382f('0x8')),this[_0x382f('0xc')]=_0x5284e5['commands'][_0x382f('0x2')](_0x382f('0x18')),this[_0x382f('0x3')]['bind'](_0x382f('0x17'))['to'](this[_0x382f('0x14')],this[_0x382f('0xc')],(_0x200df4,_0x31ab9c)=>_0x200df4||_0x31ab9c),this[_0x382f('0x3')][_0x382f('0x7')](_0x382f('0xb'))['to'](this['_acceptCommand'],_0x382f('0x17'),_0x458fde=>_0x458fde&&this[_0x382f('0x10')][_0x382f('0x9')]['canEditAt'](_0x2d3461[_0x382f('0x6')]())),this[_0x382f('0x3')][_0x382f('0x7')]('canDiscard')['to'](this[_0x382f('0xc')],_0x382f('0x17'),_0x5ecbd8=>_0x5ecbd8&&this['_editor'][_0x382f('0x9')][_0x382f('0x11')](_0x2d3461[_0x382f('0x6')]())),this[_0x382f('0x1b')]=null,_0x3146ce['isDirty']&&this[_0x382f('0x1a')](),this[_0x382f('0xf')](_0x3146ce,_0x382f('0x8'),()=>this[_0x382f('0x8')]()),this[_0x382f('0xf')](_0x3146ce,_0x382f('0x18'),()=>this[_0x382f('0x18')]()),this['listenTo'](_0x3146ce,_0x382f('0x0'),()=>{_0x3146ce['isDirty']?this[_0x382f('0x1a')]():this[_0x382f('0x1')]();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this[_0x382f('0xc')][_0x382f('0x19')](this[_0x382f('0x9')]['id']);}[_0x382f('0x16')](){this['view'][_0x382f('0x5')](_0x382f('0x17')),this[_0x382f('0x3')][_0x382f('0x5')](_0x382f('0xb')),this[_0x382f('0x3')]['unbind'](_0x382f('0x12')),this[_0x382f('0x1c')](),this[_0x382f('0x4')][_0x382f('0x16')](),this[_0x382f('0x1b')]&&this[_0x382f('0x1')]();}['_setPendingAction'](){const _0x28b977=_0x2616a1(this[_0x382f('0x10')]['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this[_0x382f('0x10')]['plugins'][_0x382f('0x2')](_0x382f('0xd'))[_0x382f('0x13')](_0x28b977);}['_removePendingAction'](){null!==this[_0x382f('0x1b')]&&this['_editor'][_0x382f('0xe')][_0x382f('0x2')](_0x382f('0xd'))[_0x382f('0xa')](this['_pendingAction']),this[_0x382f('0x1b')]=null;}}
23
+ const _0x274b=['change:isDirty','model','_editor','canAccept','getRanges','listenTo','execute','add','PENDING_ACTION_SUGGESTION','commentThreadController','view','_discardCommand','_pendingAction','_setPendingAction','destroy','remove','get','_acceptCommand','canDiscard','bind','plugins','isEnabled','PendingActions','acceptSuggestion','stopListening','_removePendingAction','unbind','discardSuggestion','canEditAt','isDirty','locale'];(function(_0x1f0ebb,_0x274bb3){const _0x1f1e75=function(_0x23001d){while(--_0x23001d){_0x1f0ebb['push'](_0x1f0ebb['shift']());}};_0x1f1e75(++_0x274bb3);}(_0x274b,0xe6));const _0x1f1e=function(_0x1f0ebb,_0x274bb3){_0x1f0ebb=_0x1f0ebb-0x0;let _0x1f1e75=_0x274b[_0x1f0ebb];return _0x1f1e75;};import{ObservableMixin as _0x3575a0}from'ckeditor5/src/utils';import{getTranslation as _0x425e01}from'../utils/common-translations';export default class qt extends _0x3575a0(){constructor(_0x5c769e,_0x4ae829,_0x1b737d,_0x65646e){super(),this[_0x1f1e('0x13')]=_0x4ae829,this[_0x1f1e('0x1c')]=_0x1b737d,this[_0x1f1e('0x1b')]=_0x65646e,this[_0x1f1e('0x14')]=_0x5c769e,this['_acceptCommand']=_0x5c769e['commands'][_0x1f1e('0x3')](_0x1f1e('0xa')),this[_0x1f1e('0x1d')]=_0x5c769e['commands']['get'](_0x1f1e('0xe')),this[_0x1f1e('0x1c')]['bind']('isEnabled')['to'](this[_0x1f1e('0x4')],this[_0x1f1e('0x1d')],(_0x296abe,_0x6238f7)=>_0x296abe||_0x6238f7),this[_0x1f1e('0x1c')][_0x1f1e('0x6')]('canAccept')['to'](this[_0x1f1e('0x4')],_0x1f1e('0x8'),_0x1856a6=>_0x1856a6&&this[_0x1f1e('0x14')][_0x1f1e('0x13')][_0x1f1e('0xf')](_0x4ae829[_0x1f1e('0x16')]())),this['view']['bind'](_0x1f1e('0x5'))['to'](this['_discardCommand'],'isEnabled',_0x4f10c6=>_0x4f10c6&&this['_editor']['model']['canEditAt'](_0x4ae829[_0x1f1e('0x16')]())),this[_0x1f1e('0x1e')]=null,_0x1b737d[_0x1f1e('0x10')]&&this[_0x1f1e('0x0')](),this['listenTo'](_0x1b737d,_0x1f1e('0xa'),()=>this[_0x1f1e('0xa')]()),this[_0x1f1e('0x17')](_0x1b737d,'discardSuggestion',()=>this[_0x1f1e('0xe')]()),this['listenTo'](_0x1b737d,_0x1f1e('0x12'),()=>{_0x1b737d[_0x1f1e('0x10')]?this[_0x1f1e('0x0')]():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1f1e('0x18')](this[_0x1f1e('0x13')]['id']);}[_0x1f1e('0xe')](){this[_0x1f1e('0x1d')]['execute'](this[_0x1f1e('0x13')]['id']);}[_0x1f1e('0x1')](){this[_0x1f1e('0x1c')]['unbind'](_0x1f1e('0x8')),this[_0x1f1e('0x1c')][_0x1f1e('0xd')](_0x1f1e('0x15')),this['view']['unbind'](_0x1f1e('0x5')),this[_0x1f1e('0xb')](),this['commentThreadController'][_0x1f1e('0x1')](),this[_0x1f1e('0x1e')]&&this[_0x1f1e('0xc')]();}[_0x1f1e('0x0')](){const _0x1c1c2a=_0x425e01(this['_editor'][_0x1f1e('0x11')],_0x1f1e('0x1a'));this['_pendingAction']=this[_0x1f1e('0x14')][_0x1f1e('0x7')][_0x1f1e('0x3')](_0x1f1e('0x9'))[_0x1f1e('0x19')](_0x1c1c2a);}[_0x1f1e('0xc')](){null!==this[_0x1f1e('0x1e')]&&this[_0x1f1e('0x14')][_0x1f1e('0x7')][_0x1f1e('0x3')]('PendingActions')[_0x1f1e('0x2')](this['_pendingAction']),this[_0x1f1e('0x1e')]=null;}}