@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231004.0 → 0.0.0-nightly-20231005.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 (65) 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/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.js +1 -1
  20. package/src/integrations/font.js +1 -1
  21. package/src/integrations/formatpainter.js +1 -1
  22. package/src/integrations/heading.js +1 -1
  23. package/src/integrations/highlight.js +1 -1
  24. package/src/integrations/horizontalline.js +1 -1
  25. package/src/integrations/htmlembed.js +1 -1
  26. package/src/integrations/image.js +1 -1
  27. package/src/integrations/imagereplace.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/link.js +1 -1
  32. package/src/integrations/list.js +1 -1
  33. package/src/integrations/listproperties.js +1 -1
  34. package/src/integrations/mediaembed.js +1 -1
  35. package/src/integrations/mention.js +1 -1
  36. package/src/integrations/pagebreak.js +1 -1
  37. package/src/integrations/paragraph.js +1 -1
  38. package/src/integrations/removeformat.js +1 -1
  39. package/src/integrations/restrictededitingmode.js +1 -1
  40. package/src/integrations/shiftentercommand.js +1 -1
  41. package/src/integrations/standardeditingmode.js +1 -1
  42. package/src/integrations/style.js +1 -1
  43. package/src/integrations/table.js +1 -1
  44. package/src/integrations/tablecaption.js +1 -1
  45. package/src/integrations/tableclipboard.js +1 -1
  46. package/src/integrations/tablecolumnresize.js +1 -1
  47. package/src/integrations/tableheadings.js +1 -1
  48. package/src/integrations/tablemergesplit.js +1 -1
  49. package/src/integrations/tableofcontents.js +1 -1
  50. package/src/integrations/tableproperties.js +1 -1
  51. package/src/integrations/template.js +1 -1
  52. package/src/integrations/title.js +1 -1
  53. package/src/integrations/undo.js +1 -1
  54. package/src/integrations/utils.js +1 -1
  55. package/src/suggestion.js +1 -1
  56. package/src/suggestiondescriptionfactory.js +1 -1
  57. package/src/trackchanges.js +1 -1
  58. package/src/trackchangesdata.js +1 -1
  59. package/src/trackchangesediting.js +1 -1
  60. package/src/trackchangesui.js +1 -1
  61. package/src/ui/suggestioncontroller.js +1 -1
  62. package/src/ui/view/basesuggestionthreadview.js +1 -1
  63. package/src/ui/view/suggestionthreadview.js +1 -1
  64. package/src/utils/common-translations.js +1 -1
  65. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4904=['parent','getFirstMarker','createdAt','createRange','update:suggestion','moveTargetPosition','$textProxy','createPositionAt','$graveyard','containerElement','discard','formatInline:join','isBefore','isAfter','map','deletion:','getIntersection','unbindElementFromMarkerName','name','isCollapsed','ck-suggestion-marker','skipNestingCheck','getNearestSelectionRange','getCustomProperty','insert','createElement','schema','sort','markerReady','isBlock','getFirstRange','error-saving-suggestion-data-suggestion-discarded','formatInline:accept','rethrowUnexpectedError','batch','_suggestionFactory','marker-count','_isForcedDefaultExecutionBlock','multipleBlocks','elementStart','backward','plugins','CommentsRepository','insertion:','createPositionBefore','trackChanges','formatInline','locale','ck-suggestion-marker-','getItems','getChangedMarkers','formatInline:','_addSuggestionMarker','ready','markBlockFormat','trackChanges.mergeNestedSuggestions','isOwn','external:','_setSuggestionRange','consume','stopListening','containsRangeInObject','toJSON','reconvertMarker','addSuggestion','_createSuggestion','isAtEnd','formatInline:discard','insertion','_splitMarkerName','remove','_descriptionFactory','formatBlock:join','accepted','track-changes-suggestion-data-mismatch','acceptSuggestion','isAtStart','requires','dataDowncast','applyOperation','deletion:join','push','nodeAfter','_setSuggestionData','targetPosition','options','getLastMatchingPosition','isInContent','addSuggestionData','acceptSelectedSuggestions','registerPostFixer','before','position','addMarker','trackChangesCommand','widget','hasCommentThread','ck-suggestion-marker--active','rootName','markMultiRangeInsertion','lowest','removeMarker','attributes','_editor','formatBlock','isSelectable','showSuggestionHighlights','splitPosition','newRange','always','forceDefaultExecution','_rangeIsInLocalUserInsertion','markDeletion','addMarker:suggestion:formatBlock','insertContent','removed','default','_defaultCallbacks','start','fire','end','isExternal','_model','markInsertion','creator','createPositionAfter','toViewElement','resolve','pluginName','selection','_joinSuggestions','deletion','isTouching','keys','suggestionLoaded','document','then','getMarkers','getChanges','originalSuggestionId','collaboration.channelId','editingDowncast','rejected','isObject','add','suggestionChanged','discardSelectedSuggestions','removeClass','hasSuggestion','every','oldRange','isInsideObject','stop','suggestion:','getSuggestion','after','acceptAllSuggestions','enqueueChange','subType','_mergeNestedSuggestions','move','deletion:chain','fetchCommentThread','has','containsItem','formatBlock:accept','config','delete','getAttribute','_updateSuggestionData','_handleNewSuggestionMarker','getDifference','get','isIntersectingWithRange','removeAttribute','refresh','setSelection','addMarker:suggestion','activeMarkers','createSelection','type','clone','addClass','updateSuggestion','author','_suggestions','split','_suggestionState','assign','mapper','track-changes-suggestion-not-found','accept','head','_checkSuggestionCorrectness','suggestion-type','getCommentThread','containsPosition','next','fromCharCode','getShiftedBy','splice','enableCommand','$marker','markerName','formatInline:chain','bindElementToMarker','addRange','some','_removeSuggestion','clear','TrackChangesEditing','isRemovable','nodeBefore','PendingActions','getMultiRangeId','includes','normal','isUndo','open','execute','change','editor','howMany','chain','_adapter','suggestion','init','documentSelection','hasComments','removeComment','model','_commentsRepository','_breakSuggestionMarker','enableReadOnlyMode','commands','getUser','join','dataReady','low','writer','_isDataLoaded','previous','_registerDefaultCallbacks','formatGroupId','markerToHighlight','_joinWithAdjacentSuggestions','group','registerCustomCallback','value','buildSuggestion','insertion:join','removeMarker:suggestion:formatBlock','isMultiRange','detach','root','data','_trackFormatChanges','Users','define','_getSuggestionData','dataToMarker','PENDING_ACTION_SUGGESTION','set','upcast','_customCallbacks','getSuggestions','track-changes-adapter-already-set','commandName','markerToData','conversion','deleteContent','_findSuggestions','fromRange','size','markers','tablePasteChainId','isDocumentOperation','_refreshSuggestionsChain','length','createRangeIn','deletion:discard','track-changes-command-not-found','adapter','for','_getAuthorFromId','change:activeMarkers','elementEnd','_enabledCommands','markInlineFormat','isNextTo','trackChanges.trackFormatChanges','return','_onDiscard','forward','authoredAt','getAncestors','commentThread','getRanges','range','removeMarkers','deletion:accept','formatBlock:chain','addCommentThread','updateMarker','_saved','filter','formatBlock:discard','high','never','item','differ','getWalker','getRange','multi','authorName','getSuggestionCallback','discardSuggestion','listenTo','formatBlock:','from','addHighlight','isLimit','_cutOutSuggestionMarker','containsRange','isEqual','discardAllSuggestions','setTo'];(function(_0x4270ce,_0x49045d){const _0x42a72c=function(_0x16aedd){while(--_0x16aedd){_0x4270ce['push'](_0x4270ce['shift']());}};_0x42a72c(++_0x49045d);}(_0x4904,0x17b));const _0x42a7=function(_0x4270ce,_0x49045d){_0x4270ce=_0x4270ce-0x0;let _0x42a72c=_0x4904[_0x4270ce];return _0x42a72c;};import{Plugin as _0x41d759,PendingActions as _0x4545f7}from'ckeditor5/src/core';import{LiveRange as _0x10c0ff}from'ckeditor5/src/engine';import{CKEditorError as _0x571106,uid as _0x3347ed,priorities as _0x1747e1,logWarning as _0x5e7b21}from'ckeditor5/src/utils';import{toWidget as _0x32c80f}from'ckeditor5/src/widget';import{Users as _0x4083ab,hashObject as _0x1bee3c}from'ckeditor5-collaboration/src/collaboration-core';import _0x8fc183 from'./commands/trackchangescommand';import _0x76ff22 from'./commands/acceptsuggestioncommand';import _0x45e406 from'./commands/discardsuggestioncommand';import _0x5d751d from'./commands/executeonallsuggestionscommand';import _0x106027 from'./commands/executeonselectedsuggestionscommand';import _0x90b3a8 from'./suggestion';import _0x39472c from'./suggestiondescriptionfactory';import _0x2a773f from'./integrations/aiassistant';import _0x13d664 from'./integrations/alignment';import _0x397e12 from'./integrations/basicstyles';import _0x473b24 from'./integrations/blockquote';import _0xc5e3e7 from'./integrations/ckbox';import _0x439ffe from'./integrations/codeblock';import _0x6320dd from'./integrations/comments';import _0x362c4f from'./integrations/deletecommand';import _0x3339a0 from'./integrations/documentlist';import _0x4d9ac2 from'./integrations/entercommand';import _0x2ffa3b from'./integrations/findandreplace';import _0x7587d3 from'./integrations/font';import _0x1dc107 from'./integrations/formatpainter';import _0x460823 from'./integrations/heading';import _0x525d47 from'./integrations/highlight';import _0x41f903 from'./integrations/horizontalline';import _0x1e8ff1 from'./integrations/htmlembed';import _0x3331b7 from'./integrations/image';import _0x29147c from'./integrations/imagereplace';import _0x39f681 from'./integrations/importword';import _0x322836 from'./integrations/indent';import _0x5e947d from'./integrations/inputcommand';import _0x263250 from'./integrations/link';import _0x4039d5 from'./integrations/list';import _0x18b4dc from'./integrations/listproperties';import _0x5639de from'./integrations/mediaembed';import _0xf8fc53 from'./integrations/mention';import _0x45e6ca from'./integrations/pagebreak';import _0x114617 from'./integrations/paragraph';import _0x446a58 from'./integrations/removeformat';import _0x8c02eb from'./integrations/restrictededitingmode';import _0x366c92 from'./integrations/shiftentercommand';import _0x215baa from'./integrations/standardeditingmode';import _0x18638c from'./integrations/style';import _0x3ee506 from'./integrations/table';import _0x13a099 from'./integrations/tablemergesplit';import _0x1989d9 from'./integrations/tableheadings';import _0x4f6725 from'./integrations/tableclipboard';import _0x484e04 from'./integrations/tablecolumnresize';import _0x364edd from'./integrations/template';import _0x795d4b from'./integrations/tableofcontents';import _0x934ffe from'./integrations/title';import _0x29c2ae from'./integrations/undo';import{getTranslation as _0x2313c1}from'./utils/common-translations';import _0x4347b6 from'./integrations/tablecaption';import _0x197132 from'./integrations/documentlistproperties';import _0x10fd98 from'./integrations/tableproperties';import{isEqual as _0x31b012}from'lodash-es';export default class p extends _0x41d759{static get[_0x42a7('0x19')](){return[_0x42a7('0x13d'),_0x4083ab,_0x4545f7,_0x2a773f,_0x13d664,_0x397e12,_0x473b24,_0xc5e3e7,_0x439ffe,_0x6320dd,_0x362c4f,_0x3339a0,_0x197132,_0x4d9ac2,_0x2ffa3b,_0x7587d3,_0x1dc107,_0x460823,_0x525d47,_0x41f903,_0x1e8ff1,_0x3331b7,_0x29147c,_0x39f681,_0x322836,_0x5e947d,_0x263250,_0x4039d5,_0x18b4dc,_0x5639de,_0xf8fc53,_0x45e6ca,_0x114617,_0x446a58,_0x8c02eb,_0x366c92,_0x215baa,_0x18638c,_0x3ee506,_0x13a099,_0x1989d9,_0x4347b6,_0x4f6725,_0x484e04,_0x795d4b,_0x10fd98,_0x364edd,_0x934ffe,_0x29c2ae];}static get[_0x42a7('0x4c')](){return _0x42a7('0x9e');}constructor(_0x1529d4){function _0x48fafc(_0x316866){return _0x316866[_0x42a7('0x121')](_0x509c55=>String[_0x42a7('0x92')](_0x509c55))[_0x42a7('0xb8')]('');}super(_0x1529d4),this[_0x42a7('0xd2')](_0x42a7('0x7e'),[]),this['on'](_0x42a7('0xe9'),(_0x2ebd61,_0x4628c3,_0x5daf9d,_0x20184d)=>{this[_0x42a7('0x46')][_0x42a7('0xa8')](()=>{for(const _0x33b3ef of[..._0x20184d,..._0x5daf9d])this['_model'][_0x42a7('0xde')][_0x42a7('0x6f')](_0x33b3ef)&&_0x1529d4['editing'][_0x42a7('0xb')](_0x33b3ef);});}),this[_0x42a7('0x13')]=new _0x39472c(this[_0x42a7('0xa9')][_0x42a7('0xb2')][_0x42a7('0x12d')],this['editor'][_0x42a7('0x142')]),this[_0x42a7('0xac')]=null,this[_0x42a7('0x136')]=new Bt(this[_0x42a7('0xa9')]),this[_0x42a7('0x85')]=new Map(),this[_0x42a7('0xb3')]=_0x1529d4['plugins'][_0x42a7('0x78')]('CommentsRepository'),this[_0x42a7('0xeb')]=new Set(),this[_0x42a7('0x46')]=this[_0x42a7('0xa9')][_0x42a7('0xb2')],this[_0x42a7('0x87')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1529d4[_0x42a7('0x72')][_0x42a7('0xce')]('trackChanges.trackFormatChanges',_0x42a7('0x40')),this[_0x42a7('0xcc')]=_0x1529d4[_0x42a7('0x72')][_0x42a7('0x78')](_0x42a7('0xee')),_0x1529d4[_0x42a7('0x72')]['define'](_0x42a7('0x3'),!0x0),this[_0x42a7('0x6b')]=_0x1529d4[_0x42a7('0x72')][_0x42a7('0x78')](_0x42a7('0x3')),this[_0x42a7('0x2a')]=new _0x8fc183(_0x1529d4,this[_0x42a7('0xeb')]),this[_0x48fafc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x48fafc([0x34,0x30,0x34,0x36,0x32,0x30,0x30,0x38]);}[_0x42a7('0xae')](){const _0x46045f=this[_0x42a7('0xa9')];_0x46045f[_0x42a7('0xd9')][_0x42a7('0xe7')]('editingDowncast')['markerToHighlight']({'model':_0x42a7('0xad'),'view':_0xba44fb=>{const {id:_0x6316c4,type:_0x4752b8}=this[_0x42a7('0x11')](_0xba44fb[_0x42a7('0x97')]),_0x47238a=[_0x42a7('0x127'),_0x42a7('0x143')+_0x4752b8];let _0x5d0ca8=0xbb8;return this['activeMarkers'][_0x42a7('0xa3')](_0xba44fb[_0x42a7('0x97')])&&(_0x47238a['push'](_0x42a7('0x2d')),_0x5d0ca8=0xbc2),'deletion'==_0x4752b8&&(_0x5d0ca8+=0x5),{'classes':_0x47238a,'attributes':{'data-suggestion':_0x6316c4},'priority':_0x5d0ca8};}}),_0x46045f[_0x42a7('0xd9')][_0x42a7('0xe7')](_0x42a7('0x1a'))[_0x42a7('0x5c')](_0x389fd5=>{_0x389fd5['on'](_0x42a7('0x7d'),(_0x1d0c10,_0x48991b,_0x5898df)=>{if(!_0x5898df[_0x42a7('0x21')]['showSuggestionHighlights'])return;const _0xb8add1=_0x48991b['item'];if(!_0xb8add1)return;const _0x372fcd=_0x5898df[_0x42a7('0x89')][_0x42a7('0x4a')](_0xb8add1);_0x46045f[_0x42a7('0xb2')]['schema'][_0x42a7('0x5b')](_0xb8add1)&&_0x372fcd&&!_0x372fcd[_0x42a7('0x12a')](_0x42a7('0x2b'))&&_0x372fcd['is'](_0x42a7('0x11c'))&&_0x32c80f(_0x372fcd,_0x5898df[_0x42a7('0xbb')]);},{'priority':_0x42a7('0xff')});}),_0x46045f[_0x42a7('0xd9')][_0x42a7('0xe7')](_0x42a7('0x1a'))[_0x42a7('0xc0')]({'model':_0x42a7('0xad'),'view':(_0x32625e,_0x5bb26a)=>{if(!_0x5bb26a['options'][_0x42a7('0x36')])return null;const {type:_0x195f64}=this[_0x42a7('0x11')](_0x32625e[_0x42a7('0x97')]);return{'classes':['ck-suggestion-marker',_0x42a7('0x143')+_0x195f64],'priority':0xbb8};}});const _0x368da5=({showActiveMarkers:_0x30cae2=!0x0}={})=>(_0x43f693,_0x4dadb6,_0x2823fc)=>{if(!_0x4dadb6['item'])return;if(_0x4dadb6[_0x42a7('0x101')]['is'](_0x42a7('0x4d')))return void _0x2823fc['consumable']['consume'](_0x4dadb6[_0x42a7('0x101')],_0x43f693[_0x42a7('0x125')]);const _0x6b18d7=_0x2823fc[_0x42a7('0x89')]['toViewElement'](_0x4dadb6[_0x42a7('0x101')]);if(!(_0x4dadb6[_0x42a7('0x101')]['is']('element')&&_0x46045f['model']['schema'][_0x42a7('0x130')](_0x4dadb6[_0x42a7('0x101')])&&!_0x6b18d7['getCustomProperty'](_0x42a7('0x10c'))))return;const {id:_0x1dc3b7}=this[_0x42a7('0x11')](_0x4dadb6[_0x42a7('0x97')]);_0x2823fc[_0x42a7('0xbb')][_0x42a7('0x82')]([_0x42a7('0x127'),'ck-suggestion-marker-formatBlock'],_0x6b18d7),_0x2823fc['writer']['setAttribute']('data-suggestion',_0x1dc3b7,_0x6b18d7),_0x2823fc['mapper'][_0x42a7('0x99')](_0x6b18d7,_0x4dadb6['markerName']),_0x30cae2&&(this[_0x42a7('0x7e')][_0x42a7('0xa3')](_0x4dadb6[_0x42a7('0x97')])?_0x2823fc[_0x42a7('0xbb')][_0x42a7('0x82')](_0x42a7('0x2d'),_0x6b18d7):_0x2823fc['writer'][_0x42a7('0x5f')](_0x42a7('0x2d'),_0x6b18d7));for(const _0x1c7849 of _0x46045f[_0x42a7('0xb2')][_0x42a7('0xe3')](_0x4dadb6['item'])[_0x42a7('0x144')]())_0x2823fc['consumable'][_0x42a7('0x7')](_0x1c7849,_0x43f693[_0x42a7('0x125')]);_0x2823fc['consumable'][_0x42a7('0x7')](_0x4dadb6[_0x42a7('0x101')],_0x43f693[_0x42a7('0x125')]);};_0x46045f[_0x42a7('0xd9')][_0x42a7('0xe7')](_0x42a7('0x1a'))[_0x42a7('0x5c')](_0x2f0af8=>{_0x2f0af8['on']('addMarker:suggestion:formatBlock',(_0x3122b7,_0x1f6762,_0x264f9e)=>{_0x264f9e['options'][_0x42a7('0x36')]&&_0x368da5({'showActiveMarkers':!0x1})(_0x3122b7,_0x1f6762,_0x264f9e);},{'priority':'highest'});}),_0x46045f[_0x42a7('0xd9')]['for'](_0x42a7('0x1a'))[_0x42a7('0xd8')]({'model':'suggestion','view':(_0x75a92e,_0x2bb633)=>_0x2bb633['options'][_0x42a7('0x36')]?null:{'group':_0x42a7('0xad'),'name':_0x75a92e['substr'](0xb)}}),_0x46045f[_0x42a7('0xd9')][_0x42a7('0xe7')](_0x42a7('0xd3'))['elementToElement']({'view':{'name':_0x42a7('0xad'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c24b0,{writer:_0x37d9a0})=>{let _0x96a34=_0x42a7('0x65')+_0x5c24b0[_0x42a7('0x74')](_0x42a7('0x8e'))+':'+_0x5c24b0[_0x42a7('0x74')]('id');return _0x5c24b0[_0x42a7('0x74')](_0x42a7('0x137'))&&(_0x96a34+=':'+_0x5c24b0[_0x42a7('0x74')](_0x42a7('0x137'))),_0x37d9a0[_0x42a7('0x12c')](_0x42a7('0x96'),{'data-name':_0x96a34});}}),_0x46045f[_0x42a7('0xd9')][_0x42a7('0xe7')](_0x42a7('0xd3'))[_0x42a7('0xd0')]({'view':_0x42a7('0xad')}),_0x46045f[_0x42a7('0xd9')]['for']('editingDowncast')[_0x42a7('0x5c')](_0x103f94=>{_0x103f94['on'](_0x42a7('0x3d'),_0x368da5(),{'priority':_0x42a7('0xff')});}),_0x46045f['conversion'][_0x42a7('0xe7')](_0x42a7('0x59'))[_0x42a7('0x5c')](_0x1a5929=>{_0x1a5929['on'](_0x42a7('0xc7'),(_0x521545,_0x514c1f,_0x226ed7)=>{const _0x3f729a=_0x226ed7[_0x42a7('0x89')]['markerNameToElements'](_0x514c1f['markerName']);if(_0x3f729a)for(const _0x45257c of _0x3f729a)_0x45257c[_0x42a7('0x12a')](_0x42a7('0x10c'))||(_0x226ed7[_0x42a7('0xbb')][_0x42a7('0x5f')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x42a7('0x2d')],_0x45257c),_0x226ed7[_0x42a7('0xbb')][_0x42a7('0x7a')]('data-suggestion',_0x45257c),_0x226ed7['mapper'][_0x42a7('0x124')](_0x45257c,_0x514c1f[_0x42a7('0x97')]));},{'priority':_0x42a7('0xff')});}),_0x46045f[_0x42a7('0xb2')]['document'][_0x42a7('0x26')](_0x134ea7=>{let _0x26d99f=!0x1;const _0x29e658=Array[_0x42a7('0x10b')](_0x46045f[_0x42a7('0xb2')][_0x42a7('0x53')][_0x42a7('0x102')][_0x42a7('0x145')]()),_0x5756f7=new Set();for(const {name:_0xa7aa5,data:_0x22e1eb}of _0x29e658){const {group:_0x250806,type:_0x1b3d9e,id:_0x5586e9}=this['_splitMarkerName'](_0xa7aa5);if('suggestion'!==_0x250806)continue;const _0x1ddd78=this[_0x42a7('0x85')][_0x42a7('0x78')](_0x5586e9);if(null!=_0x22e1eb[_0x42a7('0x38')]){_0x42a7('0x141')==_0x1b3d9e&&(_0x26d99f=_0x26d99f||$t(_0x22e1eb[_0x42a7('0x38')],_0xa7aa5,_0x134ea7,_0x46045f[_0x42a7('0xb2')][_0x42a7('0x12d')]));if(_0x22e1eb[_0x42a7('0x38')][_0x42a7('0x126')]||'$graveyard'==_0x22e1eb[_0x42a7('0x38')][_0x42a7('0xca')]['rootName']||_0x42a7('0x34')==_0x1b3d9e&&!Rt(_0x22e1eb['newRange'])||_0x42a7('0x4f')==_0x1b3d9e&&!(!Mt(_0x550723=_0x22e1eb['newRange'])&&!function(_0x319c64){return _0x319c64[_0x42a7('0x42')]['parent']==_0x319c64[_0x42a7('0x44')]['nodeBefore']&&_0x319c64[_0x42a7('0x42')][_0x42a7('0xe')];}(_0x550723)))_0x134ea7['removeMarker'](_0xa7aa5),_0x26d99f=!0x0;else{if(!_0x1ddd78||!_0x1ddd78[_0x42a7('0x23')])continue;_0x5756f7[_0x42a7('0x5c')](_0x1ddd78);}}}var _0x550723;return _0x5756f7[_0x42a7('0xdd')]>0x0&&(_0x26d99f=!!this[_0x42a7('0xc1')](_0x5756f7)||_0x26d99f),_0x26d99f;}),_0x46045f[_0x42a7('0xb2')]['document'][_0x42a7('0x26')](_0x1e253f=>{let _0x34c168=!0x1;for(const _0x1afd82 of _0x46045f[_0x42a7('0xb2')][_0x42a7('0x53')][_0x42a7('0x102')][_0x42a7('0x56')]()){if(_0x42a7('0x12b')!=_0x1afd82[_0x42a7('0x80')])continue;const _0x4d5e77=_0x1afd82[_0x42a7('0x28')][_0x42a7('0x93')](_0x1afd82['length']);if(_0x4d5e77[_0x42a7('0xe')])for(const _0x3277a0 of this[_0x42a7('0x85')]['values']()){if(_0x3277a0[_0x42a7('0xc8')]||!_0x3277a0[_0x42a7('0x23')])continue;if('formatBlock'!=_0x3277a0[_0x42a7('0x80')])continue;const _0x2fb9d1=_0x3277a0[_0x42a7('0x131')]();if(_0x2fb9d1[_0x42a7('0x42')]['parent']!=_0x2fb9d1['end'][_0x42a7('0x113')]&&_0x2fb9d1[_0x42a7('0x44')][_0x42a7('0x110')](_0x1afd82[_0x42a7('0x28')])){const _0x45db21=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x116')](_0x2fb9d1[_0x42a7('0x42')],_0x4d5e77);_0x1e253f[_0x42a7('0xfb')](_0x3277a0[_0x42a7('0x114')](),{'range':_0x45db21}),_0x34c168=!0x0;}}}return _0x34c168;}),_0x46045f[_0x42a7('0xb2')][_0x42a7('0xde')]['on'](_0x42a7('0x117'),(_0x391dfb,_0x5f1a75,_0x2d1a17)=>{if(null==_0x2d1a17){const {id:_0x51066c}=this[_0x42a7('0x11')](_0x5f1a75[_0x42a7('0x125')]),_0x4bb055=this['_suggestions'][_0x42a7('0x78')](_0x51066c);_0x4bb055&&_0x4bb055['addMarkerName'](_0x5f1a75[_0x42a7('0x125')]);}}),_0x46045f['model'][_0x42a7('0x53')]['on']('change:data',()=>{const _0x5a2153=Array['from'](_0x46045f[_0x42a7('0xb2')]['document'][_0x42a7('0x102')]['getChangedMarkers']())[_0x42a7('0xfd')](_0x3899b3=>_0x42a7('0xad')===this[_0x42a7('0x11')](_0x3899b3['name'])[_0x42a7('0xc2')]);if(0x0===_0x5a2153[_0x42a7('0xe2')])return;_0x5a2153[_0x42a7('0x12e')]((_0x3a1f34,_0x40cc3a)=>{const _0x45e6e6=_0x3a1f34[_0x42a7('0xcb')][_0x42a7('0x62')],_0x3f8416=_0x40cc3a['data'][_0x42a7('0x62')];return null===_0x45e6e6&&null===_0x3f8416?0x0:null===_0x45e6e6&&null!==_0x3f8416?-0x1:null!==_0x45e6e6&&null===_0x3f8416?0x1:_0x45e6e6[_0x42a7('0x42')][_0x42a7('0x11f')](_0x3f8416[_0x42a7('0x42')])?-0x1:0x1;});const _0x20e17d=new Set(),_0x4912b7=new Set();for(const {name:_0xe7bb85,data:_0x60e77e}of _0x5a2153){const {id:_0x2e1fdb}=this['_splitMarkerName'](_0xe7bb85);if(null===_0x60e77e[_0x42a7('0x62')]){const _0x3751ba=this[_0x42a7('0x76')](_0xe7bb85);_0x4912b7[_0x42a7('0x5c')](_0x3751ba);}else{const _0x49438a=this[_0x42a7('0x85')][_0x42a7('0x78')](_0x2e1fdb);null!==_0x60e77e['newRange']||_0x49438a[_0x42a7('0x23')]?(_0x20e17d['add'](_0x49438a[_0x42a7('0x8c')]),_0x4912b7['add'](_0x49438a)):this[_0x42a7('0x9c')](_0x49438a);}}_0x4912b7[_0x42a7('0xdd')]>0x0&&this[_0x42a7('0xe1')](_0x4912b7);for(const _0x3da43e of _0x20e17d)this[_0x42a7('0x43')](_0x42a7('0x5d'),_0x3da43e);}),_0x46045f[_0x42a7('0xb2')]['on'](_0x42a7('0x1b'),(_0x30f8ff,_0x4fc628)=>{const _0x1a49e0=_0x4fc628[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a49e0[_0x42a7('0xe0')])return;if(_0x1a49e0[_0x42a7('0x135')][_0x42a7('0xa5')]||!_0x1a49e0['batch']['isLocal'])return;let _0x916624,_0x159181;switch(_0x1a49e0[_0x42a7('0x80')]){case'insert':_0x916624=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x11a')](_0x1a49e0[_0x42a7('0x28')]),_0x159181=_0x916624[_0x42a7('0x93')](_0x1a49e0['howMany']);break;case _0x42a7('0x86'):_0x916624=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x11a')](_0x1a49e0[_0x42a7('0x37')]),_0x159181=_0x46045f['model'][_0x42a7('0x11a')](_0x1a49e0[_0x42a7('0x118')]);break;case _0x42a7('0x6c'):_0x916624=_0x46045f[_0x42a7('0xb2')]['createPositionAt'](_0x1a49e0[_0x42a7('0x20')]),_0x159181=_0x916624[_0x42a7('0x93')](_0x1a49e0[_0x42a7('0xaa')]);break;default:return;}const _0x26884e=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x116')](_0x916624,_0x159181);_0x46045f[_0x42a7('0xb2')][_0x42a7('0xa8')](()=>{for(const {suggestion:_0x4e0861,meta:_0x373fb9}of this[_0x42a7('0xdb')](_0x26884e)){if(_0x4e0861[_0x42a7('0xc8')])continue;if(_0x42a7('0x141')==_0x4e0861[_0x42a7('0x80')])continue;const _0x2bd817=_0x4e0861[_0x42a7('0xcb')]&&_0x4e0861[_0x42a7('0xcb')][_0x42a7('0x139')];(_0x42a7('0x34')!=_0x4e0861[_0x42a7('0x80')]||_0x42a7('0x86')==_0x1a49e0[_0x42a7('0x80')]&&!_0x2bd817)&&(_0x373fb9[_0x42a7('0x9')]||_0x42a7('0x10')==_0x4e0861[_0x42a7('0x80')]&&_0x373fb9[_0x42a7('0x4')]||_0x4e0861[_0x42a7('0x131')]()[_0x42a7('0x10f')](_0x26884e)&&this[_0x42a7('0xb4')](_0x4e0861,_0x916624,_0x159181));}});},{'priority':_0x42a7('0x30')}),_0x46045f[_0x42a7('0xb2')]['on'](_0x42a7('0xda'),(_0x5f14a9,_0x1e80fb)=>{const _0x1e1ea4=_0x1e80fb[0x0],_0xcdcb96=_0x1e80fb[0x1];if(_0xcdcb96&&_0xcdcb96[_0x42a7('0x3a')])return;if(this[_0x42a7('0x138')])return;if(!this[_0x42a7('0x2a')]['value'])return;if(_0x1e1ea4[_0x42a7('0x126')])return;const _0x13f46c=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x12d')],{start:_0x25eee6,end:_0x5cc779}=_0x1e1ea4[_0x42a7('0x131')](),_0x5e3527=_0x25eee6[_0x42a7('0x1e')]&&_0x13f46c['isLimit'](_0x25eee6[_0x42a7('0x1e')])?null:_0x13f46c['getNearestSelectionRange'](_0x25eee6,_0x42a7('0xf1')),_0x599e80=_0x5cc779[_0x42a7('0xa0')]&&_0x13f46c[_0x42a7('0x10d')](_0x5cc779[_0x42a7('0xa0')])?null:_0x13f46c['getNearestSelectionRange'](_0x5cc779,_0x42a7('0x13b')),_0x1f4975=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x116')](_0x5e3527?_0x5e3527['start']:_0x25eee6,_0x599e80?_0x599e80[_0x42a7('0x44')]:_0x5cc779);_0x46045f['model'][_0x42a7('0xa8')](_0x12071c=>{this[_0x42a7('0x3c')](_0x1f4975);const _0x1bcc93=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x12d')][_0x42a7('0x129')](_0x1f4975[_0x42a7('0x42')]);_0x1e1ea4['is'](_0x42a7('0xaf'))?_0x12071c[_0x42a7('0x7c')](_0x1bcc93):_0x1e1ea4[_0x42a7('0x112')](_0x1bcc93);}),_0x5f14a9['stop']();},{'priority':_0x1747e1[_0x42a7('0xa4')]+0xa}),_0x46045f['model']['on'](_0x42a7('0x3e'),(_0x110d5a,_0xcf13d1)=>{const _0x553a1b=_0xcf13d1[_0xcf13d1[_0x42a7('0xe2')]-0x1];_0x553a1b&&_0x553a1b[_0x42a7('0x3a')]||this[_0x42a7('0x138')]||this[_0x42a7('0x2a')]['value']&&(_0x46045f[_0x42a7('0xb2')]['change'](()=>{let _0x139291=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x3e')](_0xcf13d1[0x0],_0xcf13d1[0x1],_0xcf13d1[0x2],{'forceDefaultExecution':!0x0});if(!_0x139291)return;_0x110d5a[_0x42a7('0xef')]=_0x139291[_0x42a7('0x81')]();const _0x4e445f=_0x139291['end'][_0x42a7('0xa0')],_0x28ab0e=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x12d')];_0x4e445f&&_0x28ab0e[_0x42a7('0x130')](_0x4e445f)&&!_0x28ab0e[_0x42a7('0x5b')](_0x4e445f)&&(_0x139291=_0x46045f[_0x42a7('0xb2')][_0x42a7('0x116')](_0x139291[_0x42a7('0x42')],_0x46045f['model'][_0x42a7('0x11a')](_0x4e445f,_0x42a7('0x44')))),this[_0x42a7('0x47')](_0x139291);}),_0x110d5a[_0x42a7('0x64')]());},{'priority':_0x42a7('0xff')}),this[_0x42a7('0xa9')][_0x42a7('0xb6')][_0x42a7('0x5c')](_0x42a7('0x140'),this[_0x42a7('0x2a')]),this[_0x42a7('0x95')](_0x42a7('0x140'));const _0x5afe40=new _0x76ff22(_0x46045f,this[_0x42a7('0x85')]);_0x46045f[_0x42a7('0xb6')][_0x42a7('0x5c')](_0x42a7('0x17'),_0x5afe40),this['enableCommand'](_0x42a7('0x17'));const _0x67a6f7=new _0x45e406(_0x46045f,this[_0x42a7('0x85')]);_0x46045f[_0x42a7('0xb6')][_0x42a7('0x5c')](_0x42a7('0x108'),_0x67a6f7),this[_0x42a7('0x95')](_0x42a7('0x108')),_0x46045f[_0x42a7('0xb6')][_0x42a7('0x5c')]('acceptAllSuggestions',new _0x5d751d(_0x46045f,_0x5afe40,this[_0x42a7('0x85')])),this[_0x42a7('0x95')](_0x42a7('0x68')),_0x46045f[_0x42a7('0xb6')]['add'](_0x42a7('0x111'),new _0x5d751d(_0x46045f,_0x67a6f7,this[_0x42a7('0x85')])),this[_0x42a7('0x95')]('discardAllSuggestions'),_0x46045f[_0x42a7('0xb6')][_0x42a7('0x5c')](_0x42a7('0x25'),new _0x106027(_0x46045f,_0x5afe40,this[_0x42a7('0x85')])),this[_0x42a7('0x95')](_0x42a7('0x25')),_0x46045f[_0x42a7('0xb6')][_0x42a7('0x5c')](_0x42a7('0x5e'),new _0x106027(_0x46045f,_0x67a6f7,this[_0x42a7('0x85')])),this[_0x42a7('0x95')]('discardSelectedSuggestions');const _0x59d09e=_0x46045f['plugins']['get'](_0x42a7('0x13d'));this[_0x42a7('0x109')](_0x59d09e,'addComment',(_0x5b68e7,{threadId:_0x13397c})=>{const _0x59a709=this[_0x42a7('0x85')][_0x42a7('0x78')](_0x13397c);_0x59a709&&_0x59a709['commentThread']&&0x1===_0x59a709['commentThread'][_0x42a7('0xe2')]&&this[_0x42a7('0x75')](_0x13397c,{'hasComments':!0x0});},{'priority':_0x42a7('0xba')}),this[_0x42a7('0x109')](_0x59d09e,_0x42a7('0xb1'),(_0x1c7697,{threadId:_0x357da3})=>{const _0x54d297=this[_0x42a7('0x85')][_0x42a7('0x78')](_0x357da3);_0x54d297&&_0x54d297[_0x42a7('0xf4')]&&!_0x54d297['commentThread'][_0x42a7('0xe2')]&&this[_0x42a7('0x75')](_0x357da3,{'hasComments':!0x1});},{'priority':_0x42a7('0xba')});}set[_0x42a7('0xe6')](_0x2c1652){if(this[_0x42a7('0xac')])throw new _0x571106(_0x42a7('0xd6'),this);this['_adapter']=_0x2c1652;}get[_0x42a7('0xe6')](){return this[_0x42a7('0xac')];}[_0x42a7('0xd5')]({skipNotAttached:_0x14a8b1=!0x1,toJSON:_0x1b4377=!0x1}={}){const _0x422042=[];for(const _0x37c57d of this[_0x42a7('0x85')]['values']())_0x14a8b1&&!_0x37c57d[_0x42a7('0x23')]||_0x422042[_0x42a7('0x1d')](_0x37c57d);return _0x1b4377?_0x422042[_0x42a7('0x121')](_0x24a68f=>_0x24a68f[_0x42a7('0xa')]()):_0x422042;}[_0x42a7('0x66')](_0x67c906){const _0xe44956=this['_suggestions'][_0x42a7('0x78')](_0x67c906);if(!_0xe44956)throw new _0x571106(_0x42a7('0x8a'),this);return _0xe44956;}[_0x42a7('0x60')](_0x16f6bf){return this[_0x42a7('0x85')][_0x42a7('0x6f')](_0x16f6bf);}[_0x42a7('0x24')](_0x2224c0){const {authorId:_0x1d401d,id:_0x298943,attributes:_0x163e32}=_0x2224c0,[_0x1aae47,_0x3a92dd]=_0x2224c0['type'][_0x42a7('0x86')](':'),_0x1c8a8f=this['_suggestions']['get'](_0x298943)||this[_0x42a7('0xd')](_0x1aae47,_0x3a92dd,_0x298943,_0x1d401d,_0x163e32);if(this['_addThreadToSuggestion'](_0x1c8a8f),this['_checkSuggestionCorrectness'](_0x1c8a8f,_0x1aae47,_0x3a92dd||null,_0x1d401d),_0x1c8a8f[_0x42a7('0x115')]=_0x2224c0['createdAt'],_0x1c8a8f[_0x42a7('0xbc')]=!0x0,_0x163e32&&_0x163e32['@external']){const _0x313348=_0x163e32['@external'],_0x176c2d=this['_getExternalAuthor'](_0x313348[_0x42a7('0x106')]);_0x1c8a8f['authoredAt']=_0x313348[_0x42a7('0x115')],_0x1c8a8f[_0x42a7('0x84')]=_0x176c2d,_0x1c8a8f[_0x42a7('0x45')]=!0x0;}else _0x1c8a8f[_0x42a7('0xf2')]=_0x2224c0['createdAt'];switch(_0x2224c0[_0x42a7('0xcb')]&&(_0x1c8a8f[_0x42a7('0xcb')]=_0x2224c0['data']),_0x2224c0[_0x42a7('0x32')]&&(_0x1c8a8f[_0x42a7('0x32')]=_0x2224c0[_0x42a7('0x32')]),this['_adapter']&&this[_0x42a7('0xac')][_0x42a7('0xc')]||(_0x1c8a8f[_0x42a7('0xfc')]=!0x0),this[_0x42a7('0x87')][_0x42a7('0x78')](_0x1c8a8f)){case'notReady':this[_0x42a7('0x87')][_0x42a7('0xd2')](_0x1c8a8f,_0x42a7('0xb9'));break;case'markerReady':_0x1c8a8f[_0x42a7('0x23')]?(this[_0x42a7('0xe1')](new Set([_0x1c8a8f])),this['_joinWithAdjacentSuggestions'](new Set([_0x1c8a8f])),this[_0x42a7('0x87')]['set'](_0x1c8a8f,_0x42a7('0x1')),this['fire'](_0x42a7('0x52'),_0x1c8a8f)):this[_0x42a7('0x87')]['set'](_0x1c8a8f,_0x42a7('0x3f'));}return _0x1c8a8f;}['acceptSuggestion'](_0x4111f1){this['forceDefaultExecution'](()=>{this[_0x42a7('0xa9')][_0x42a7('0xb2')][_0x42a7('0xa8')](()=>{for(const _0x290d1f of _0x4111f1['getAllAdjacentSuggestions']())_0x290d1f[_0x42a7('0x8b')]();});});}[_0x42a7('0x108')](_0x19f641){this['forceDefaultExecution'](()=>{this['editor'][_0x42a7('0xb2')]['change'](()=>{for(const _0x13f0c7 of _0x19f641['getAllAdjacentSuggestions']())_0x13f0c7[_0x42a7('0x11d')]();});});}['enableCommand'](_0xe4e56d,_0x22f63a){const _0x10ffeb=this[_0x42a7('0xa9')][_0x42a7('0xb6')]['get'](_0xe4e56d);if(!_0x10ffeb)throw new _0x571106(_0x42a7('0xe5'),this,{'commandName':_0xe4e56d});this[_0x42a7('0xeb')][_0x42a7('0x5c')](_0x10ffeb),_0x22f63a&&_0x10ffeb['on'](_0x42a7('0xa7'),(_0x216e94,_0xb1d29c)=>{this['trackChangesCommand'][_0x42a7('0xc4')]&&(this['_isForcedDefaultExecutionBlock']||_0xb1d29c[_0x42a7('0xe2')]>0x0&&_0xb1d29c[_0xb1d29c[_0x42a7('0xe2')]-0x1]&&_0xb1d29c[_0xb1d29c['length']-0x1][_0x42a7('0x3a')]||(_0x22f63a((..._0x5b9e0)=>_0x10ffeb[_0x42a7('0xa7')](..._0x5b9e0,{'forceDefaultExecution':!0x0}),..._0xb1d29c),_0x216e94[_0x42a7('0x64')]()));},{'priority':_0x42a7('0xff')});}[_0x42a7('0x3a')](_0x2fea8e){let _0x210929,_0x234de9;const _0x5055b8=this[_0x42a7('0x138')];this[_0x42a7('0x138')]=!0x0;try{_0x210929=_0x2fea8e();}catch(_0x10600a){_0x234de9=_0x10600a;}return _0x5055b8||(this[_0x42a7('0x138')]=!0x1),_0x234de9&&_0x571106[_0x42a7('0x134')](_0x234de9,this),_0x210929;}[_0x42a7('0x47')](_0x352aa4,_0x244133=null,_0x3eb929={}){if(_0x352aa4['isCollapsed'])return null;const _0x5466a4=this[_0x42a7('0xa9')][_0x42a7('0x13c')]['get'](_0x42a7('0xcd'))['me'];for(const {suggestion:_0xd457f0,meta:_0x37cbb4}of this[_0x42a7('0xdb')](_0x352aa4,'insertion'))if(_0x37cbb4['isOwn']){if(!_0x37cbb4[_0x42a7('0xed')]){if(_0x37cbb4[_0x42a7('0x9')]){if(!this[_0x42a7('0x6b')]||!Ot(_0xd457f0,_0x3eb929))continue;return _0xd457f0;}if(Ot(_0xd457f0,_0x3eb929))return _0xd457f0;this['_breakSuggestionMarker'](_0xd457f0,_0x352aa4[_0x42a7('0x42')],_0x352aa4[_0x42a7('0x44')]);break;}if(_0x244133==_0xd457f0[_0x42a7('0x6a')]&&Ot(_0xd457f0,_0x3eb929)){const _0x4aee81=_0xd457f0['getFirstRange']();return _0x4aee81[_0x42a7('0x42')][_0x42a7('0x110')](_0x352aa4[_0x42a7('0x44')])?this['_setSuggestionRange'](_0xd457f0,this[_0x42a7('0x46')][_0x42a7('0x116')](_0x352aa4[_0x42a7('0x42')],_0x4aee81['end'])):this[_0x42a7('0x6')](_0xd457f0,this[_0x42a7('0x46')]['createRange'](_0x4aee81[_0x42a7('0x42')],_0x352aa4[_0x42a7('0x44')])),_0xd457f0;}}const _0x81ab2d=_0x3347ed(),_0x25a07b=_0x5466a4['id'],_0x2889d4=_0x244133?_0x42a7('0x13e')+_0x244133:_0x42a7('0x10'),_0x523c06=this[_0x42a7('0x1f')]({'id':_0x81ab2d,'type':_0x2889d4,'createdAt':new Date(),'authorId':_0x25a07b,'attributes':_0x3eb929});return this[_0x42a7('0x0')](_0x2889d4,_0x81ab2d,_0x25a07b,_0x352aa4),_0x523c06;}[_0x42a7('0x2f')](_0x4ea51f,_0x383983=_0x42a7('0x105'),_0x5831c5={}){const _0x17ec3b=this[_0x42a7('0xa9')][_0x42a7('0x13c')][_0x42a7('0x78')]('Users')['me'],_0x4105c0=this['_suggestionFactory'][_0x42a7('0x107')](_0x42a7('0x10'),_0x383983,_0x42a7('0xb8'));for(const _0x1a78fd of this[_0x42a7('0xd5')]())if(_0x1a78fd['author']['id']==_0x17ec3b['id']&&_0x42a7('0x10')==_0x1a78fd['type']&&_0x1a78fd[_0x42a7('0x6a')]==_0x383983&&Ot(_0x1a78fd,_0x5831c5)&&(_0x4105c0(_0x1a78fd['getRanges'](),_0x4ea51f)||_0x4105c0(_0x4ea51f,_0x1a78fd['getRanges']()))){for(const _0x357f0b of _0x4ea51f)_0x1a78fd['addRange'](_0x357f0b);return _0x1a78fd;}for(const {suggestion:_0x3db0b3,meta:_0x507e8b}of this[_0x42a7('0xdb')](_0x4ea51f,_0x42a7('0x10'))){if(!_0x507e8b[_0x42a7('0x4')])continue;if(!this[_0x42a7('0x6b')]&&_0x507e8b[_0x42a7('0x9')])continue;if(!Ot(_0x3db0b3,_0x5831c5))continue;let _0x5a8ce6=!0x0;for(const _0x5deb51 of _0x3db0b3[_0x42a7('0xf5')]())for(const _0x44a3c2 of _0x4ea51f)if(!_0x5deb51[_0x42a7('0x10f')](_0x44a3c2)){_0x5a8ce6=!0x1;break;}if(_0x5a8ce6)return _0x3db0b3;}const _0x3586a3=_0x3347ed(),_0x5a27c1=_0x17ec3b['id'],_0x39a176=_0x42a7('0x13e')+_0x383983,_0x21984e=this[_0x42a7('0x1f')]({'id':_0x3586a3,'type':_0x39a176,'createdAt':new Date(),'authorId':_0x5a27c1,'attributes':_0x5831c5});for(const _0x4d718c of _0x4ea51f)this['_addSuggestionMarker'](_0x39a176,_0x3586a3,_0x5a27c1,_0x4d718c,_0x90b3a8[_0x42a7('0xa2')]());return _0x21984e;}[_0x42a7('0xec')](_0xda9139,_0x20cd35,_0x3424ae=null,_0x124a6e={}){if(_0x3424ae=_0x3424ae||Nt(_0x20cd35),_0xda9139[_0x42a7('0x126')])return null;if(_0x42a7('0x100')===this['_trackFormatChanges']){const _0x22156a=this[_0x42a7('0x136')][_0x42a7('0x107')](_0x42a7('0x141'),_0x3424ae,_0x42a7('0x8b'));return this[_0x42a7('0x3a')](()=>_0x22156a([_0xda9139],_0x20cd35,_0x124a6e)),null;}const _0x347de7=this[_0x42a7('0xa9')][_0x42a7('0x13c')]['get'](_0x42a7('0xcd'))['me'],_0x2721c=[];if(_0x42a7('0x39')!==this[_0x42a7('0xcc')])for(const {suggestion:_0xfc756b,meta:_0x40de73}of this[_0x42a7('0xdb')](_0xda9139,_0x42a7('0x10')))_0x40de73[_0x42a7('0x4')]&&!_0x40de73[_0x42a7('0x63')]&&_0x2721c['push'](..._0xfc756b[_0x42a7('0xf5')]());const _0x1488ed=function(_0x16ffec,_0x258bcd){const _0x1964bc=[];for(const _0x4cd2a9 of _0x258bcd){const _0x83adf8=_0x16ffec[_0x42a7('0x123')](_0x4cd2a9);_0x83adf8&&_0x1964bc[_0x42a7('0x1d')](_0x83adf8);}return _0x1964bc;}(_0xda9139,_0x2721c),_0x3b5e77=function(_0x36291d,_0x3ffa65){const _0x555707=[_0x36291d];for(const _0x3b6149 of _0x3ffa65){let _0x1642c7=0x0;for(;_0x1642c7<_0x555707[_0x42a7('0xe2')];){const _0x287080=_0x555707[_0x1642c7][_0x42a7('0x77')](_0x3b6149);_0x555707['splice'](_0x1642c7,0x1,..._0x287080),_0x1642c7+=_0x287080[_0x42a7('0xe2')];}}return _0x555707;}(_0xda9139,_0x2721c);_0x1488ed[_0x42a7('0xe2')]&&this[_0x42a7('0x46')]['change'](()=>{for(const _0x5eedc3 of _0x1488ed){const _0x1f4442=this['_suggestionFactory'][_0x42a7('0x107')]('formatInline',_0x3424ae,'accept');this[_0x42a7('0x3a')](()=>_0x1f4442([_0x5eedc3],_0x20cd35,_0x124a6e));}});for(const _0x144dba of _0x3b5e77){let _0x1e7de6=null,_0x425dc2=_0x144dba[_0x42a7('0x42')],_0x11b8d3=_0x144dba['end'];for(const {suggestion:_0x2fe6d1,meta:_0x2a280e}of this[_0x42a7('0xdb')](_0x144dba,'formatInline')){if(!_0x2a280e[_0x42a7('0x4')])continue;if(_0x2fe6d1[_0x42a7('0x6a')]!=_0x3424ae)continue;if(!Ot(_0x2fe6d1,_0x124a6e))continue;const _0x5653af=_0x2fe6d1[_0x42a7('0x131')]();if(_0x5653af[_0x42a7('0x10f')](_0x144dba,!0x0))return null;_0x425dc2=_0x425dc2[_0x42a7('0x11f')](_0x5653af[_0x42a7('0x42')])?_0x425dc2:_0x5653af[_0x42a7('0x42')],_0x11b8d3=_0x11b8d3[_0x42a7('0x120')](_0x5653af['end'])?_0x11b8d3:_0x5653af[_0x42a7('0x44')],_0x1e7de6?_0x5653af['start'][_0x42a7('0x11f')](_0x1e7de6[_0x42a7('0x131')]()['start'])?(_0x1e7de6['removeMarkers'](),_0x1e7de6=_0x2fe6d1):_0x2fe6d1[_0x42a7('0xf7')]():_0x1e7de6=_0x2fe6d1;}const _0x3753da=this[_0x42a7('0x46')]['createRange'](_0x425dc2,_0x11b8d3);if(_0x1e7de6)this[_0x42a7('0x6')](_0x1e7de6,_0x3753da);else{const _0x4bce01=_0x3347ed(),_0x549670=_0x347de7['id'];this[_0x42a7('0x1f')]({'id':_0x4bce01,'type':_0x42a7('0x146')+_0x3424ae,'data':_0x20cd35,'createdAt':new Date(),'authorId':_0x549670,'attributes':_0x124a6e}),this[_0x42a7('0x0')](_0x42a7('0x146')+_0x3424ae,_0x4bce01,_0x549670,_0x3753da);}}return null;}[_0x42a7('0x2')](_0x503d3d,_0x5463fd,_0x540c9d=[],_0x26903e=null,_0x408ccd={}){_0x5463fd['formatGroupId']||(_0x5463fd[_0x42a7('0xbf')]=_0x5463fd[_0x42a7('0xd7')]),_0x5463fd[_0x42a7('0x139')]=_0x503d3d['is'](_0x42a7('0xf6')),_0x26903e=_0x26903e||Nt(_0x5463fd);const _0x1fb1ec=_0x540c9d[_0x42a7('0x121')](_0x5e4f03=>jt(_0x5e4f03,this['_model'])),_0x2d30be=_0x503d3d['is'](_0x42a7('0xf6'))?_0x503d3d:jt(_0x503d3d,this[_0x42a7('0x46')]);if(_0x42a7('0x100')===this[_0x42a7('0xcc')]){const _0x22fe12=this['_suggestionFactory']['getSuggestionCallback'](_0x42a7('0x34'),_0x26903e,'accept');return this[_0x42a7('0x3a')](()=>_0x22fe12([_0x2d30be],_0x5463fd,_0x408ccd)),null;}_0x1fb1ec[_0x42a7('0x1d')](_0x2d30be);let _0x3f10b2=!0x0;for(const _0x171dfb of _0x1fb1ec)if(!this[_0x42a7('0x3b')](_0x171dfb)){_0x3f10b2=!0x1;break;}if(_0x3f10b2&&'always'!==this[_0x42a7('0xcc')]){const _0x859b30=this[_0x42a7('0x136')][_0x42a7('0x107')]('formatBlock',_0x26903e,'accept');return this[_0x42a7('0x3a')](()=>_0x859b30([_0x2d30be],_0x5463fd,_0x408ccd)),null;}let _0x4d99cc=null,_0x21b5c9=_0x2d30be[_0x42a7('0x42')],_0x5aa347=_0x2d30be['end'];for(const {suggestion:_0xe73f6d,meta:_0x48b979}of this['_findSuggestions'](_0x2d30be,_0x42a7('0x34'))){if(!_0x48b979[_0x42a7('0x4')])continue;if(_0x48b979[_0x42a7('0xed')]||_0x48b979[_0x42a7('0x9')]||_0x48b979['isInsideObject'])continue;if(_0xe73f6d[_0x42a7('0xcb')][_0x42a7('0xbf')]!=_0x5463fd[_0x42a7('0xbf')])continue;if(!Ot(_0xe73f6d,_0x408ccd))continue;const _0x2952e5=_0xe73f6d['getFirstRange']();if(_0xe73f6d[_0x42a7('0x6a')]==_0x26903e){if(_0x2952e5['containsRange'](_0x2d30be,!0x0))return null;_0x21b5c9=_0x21b5c9['isBefore'](_0x2952e5[_0x42a7('0x42')])?_0x21b5c9:_0x2952e5[_0x42a7('0x42')],_0x5aa347=_0x5aa347[_0x42a7('0x120')](_0x2952e5[_0x42a7('0x44')])?_0x5aa347:_0x2952e5['end'],_0x4d99cc?_0x2952e5[_0x42a7('0x42')][_0x42a7('0x11f')](_0x4d99cc[_0x42a7('0x131')]()[_0x42a7('0x42')])?(_0x4d99cc['removeMarkers'](),_0x4d99cc=_0xe73f6d):_0xe73f6d['removeMarkers']():_0x4d99cc=_0xe73f6d;}else{const _0x43dab6=_0x2d30be['getIntersection'](_0x2952e5);this[_0x42a7('0x10e')](_0xe73f6d,_0x43dab6);}}const _0x222555=this[_0x42a7('0xa9')]['plugins']['get'](_0x42a7('0xcd'))['me'],_0x196817=_0x3347ed(),_0x4643e1=_0x222555['id'];if(_0x4d99cc)return this[_0x42a7('0x6')](_0x4d99cc,this[_0x42a7('0x46')][_0x42a7('0x116')](_0x21b5c9,_0x5aa347)),_0x4d99cc;{const _0x299bbb=this[_0x42a7('0x1f')]({'id':_0x196817,'type':_0x42a7('0x10a')+_0x26903e,'data':_0x5463fd,'createdAt':new Date(),'authorId':_0x4643e1,'attributes':_0x408ccd});return this[_0x42a7('0x0')](_0x42a7('0x10a')+_0x26903e,_0x196817,_0x4643e1,this[_0x42a7('0x46')][_0x42a7('0x116')](_0x21b5c9,_0x5aa347)),_0x299bbb;}}['markMultiRangeBlockFormat'](_0x39cc7a,_0x25da30,_0x58a1b6=[],_0x7c181d=null,_0xebe483={}){_0x25da30['formatGroupId']||(_0x25da30[_0x42a7('0xbf')]=_0x25da30['commandName']);const _0x4af38b=_0x39cc7a[0x0];_0x25da30['multipleBlocks']=_0x4af38b['is'](_0x42a7('0xf6')),_0x7c181d=_0x7c181d||Nt(_0x25da30);const _0xb3c1f9=_0x58a1b6['map'](_0x51b637=>jt(_0x51b637,this[_0x42a7('0x46')])),_0x2a3439=_0x4af38b['is'](_0x42a7('0xf6'))?_0x39cc7a:_0x39cc7a[_0x42a7('0x121')](_0x502a84=>jt(_0x502a84,this[_0x42a7('0x46')]));if(_0x42a7('0x100')===this[_0x42a7('0xcc')]){const _0x34a8ee=this[_0x42a7('0x136')][_0x42a7('0x107')]('formatBlock',_0x7c181d,'accept');return this['forceDefaultExecution'](()=>_0x34a8ee(_0x2a3439,_0x25da30,_0xebe483)),null;}_0xb3c1f9[_0x42a7('0x1d')](..._0x2a3439);let _0x285b61=!0x0;for(const _0xd6a732 of _0xb3c1f9)if(!this[_0x42a7('0x3b')](_0xd6a732)){_0x285b61=!0x1;break;}if(_0x285b61&&_0x42a7('0x39')!==this['_trackFormatChanges']){const _0x486d59=this[_0x42a7('0x136')][_0x42a7('0x107')]('formatBlock',_0x7c181d,_0x42a7('0x8b'));return this['forceDefaultExecution'](()=>_0x486d59(_0x2a3439,_0x25da30,_0xebe483)),null;}const _0x3047b6=this[_0x42a7('0xa9')][_0x42a7('0x13c')][_0x42a7('0x78')](_0x42a7('0xcd'))['me'];for(const _0x176bbf of this[_0x42a7('0xd5')]()){if(_0x176bbf[_0x42a7('0x84')]['id']!=_0x3047b6['id'])continue;if('formatBlock'!=_0x176bbf[_0x42a7('0x80')]||_0x176bbf['data'][_0x42a7('0xbf')]!=_0x25da30[_0x42a7('0xbf')])continue;if(!Ot(_0x176bbf,_0xebe483))continue;const _0x114d01=_0x176bbf[_0x42a7('0x6a')]==_0x7c181d;for(let _0x29fc2e=0x0;_0x29fc2e<_0x2a3439['length'];_0x29fc2e++){const _0x31e060=_0x2a3439[_0x29fc2e];for(const _0x58e338 of _0x176bbf[_0x42a7('0x55')]()){const _0x38b535=_0x58e338[_0x42a7('0x104')]();if(_0x31e060[_0x42a7('0x110')](_0x38b535)){_0x114d01?(_0x2a3439[_0x42a7('0x94')](_0x29fc2e,0x1),_0x29fc2e--):_0x176bbf[_0x42a7('0x31')](_0x58e338[_0x42a7('0x125')]);break;}}}}if(0x0==_0x2a3439[_0x42a7('0xe2')])return null;const _0x22a456=this[_0x42a7('0x136')]['getSuggestionCallback'](_0x42a7('0x34'),_0x7c181d,_0x42a7('0xb8'));for(const _0x1c090c of this[_0x42a7('0xd5')]())if(_0x1c090c[_0x42a7('0x84')]['id']==_0x3047b6['id']&&_0x42a7('0x34')==_0x1c090c[_0x42a7('0x80')]&&_0x1c090c[_0x42a7('0xcb')][_0x42a7('0xbf')]==_0x25da30[_0x42a7('0xbf')]&&_0x1c090c[_0x42a7('0x6a')]==_0x7c181d&&Ot(_0x1c090c,_0xebe483)&&(_0x22a456(_0x1c090c[_0x42a7('0xf5')](),_0x2a3439)||_0x22a456(_0x2a3439,_0x1c090c['getRanges']()))){for(const _0x4d0f38 of _0x2a3439)_0x1c090c['addRange'](_0x4d0f38);return _0x1c090c;}const _0x3b0e4e=_0x3347ed(),_0x2dc4fe=_0x3047b6['id'],_0x2a69f8=_0x42a7('0x10a')+_0x7c181d,_0x51428a=this[_0x42a7('0x1f')]({'id':_0x3b0e4e,'type':_0x2a69f8,'data':_0x25da30,'createdAt':new Date(),'authorId':_0x2dc4fe,'attributes':_0xebe483});for(const _0x1bfdf2 of _0x2a3439)this[_0x42a7('0x0')](_0x2a69f8,_0x3b0e4e,_0x2dc4fe,_0x1bfdf2,_0x90b3a8[_0x42a7('0xa2')]());return _0x51428a;}[_0x42a7('0x3c')](_0x42103c,_0x1fef2e=null,_0x2da990={}){if(_0x42103c['isCollapsed'])return null;const _0x4410b0=this[_0x42a7('0xa9')][_0x42a7('0x13c')][_0x42a7('0x78')]('Users')['me'],_0x124522=new _0x10c0ff(_0x42103c['start'],_0x42103c[_0x42a7('0x44')]);for(const {suggestion:_0x405cdc,meta:_0x1842da}of this[_0x42a7('0xdb')](_0x124522,_0x42a7('0x10')))if(_0x1842da[_0x42a7('0x4')]&&!_0x1842da[_0x42a7('0xed')]){if(_0x405cdc['isMultiRange']){const _0x89fb47=_0x405cdc[_0x42a7('0xf5')]()[_0x42a7('0xfd')](_0x1e68e2=>_0x42a7('0x11b')!=_0x1e68e2[_0x42a7('0xca')]['rootName']);_0x89fb47['every'](_0x5da59e=>_0x124522[_0x42a7('0x10f')](_0x5da59e,!0x0))&&_0x405cdc[_0x42a7('0x11d')]();if(_0x89fb47[_0x42a7('0x9b')](_0x1acb74=>_0x1acb74[_0x42a7('0x10f')](_0x124522,!0x0))){const _0x4fcd1d=this[_0x42a7('0x136')]['getSuggestionCallback'](_0x42a7('0x4f'),_0x1fef2e,_0x42a7('0x8b'));return this[_0x42a7('0x3a')](()=>_0x4fcd1d([_0x124522],null,_0x2da990)),null;}}else{const _0xadf7ed=_0x124522[_0x42a7('0x123')](_0x405cdc['getFirstRange']());null!==_0xadf7ed&&_0x405cdc[_0x42a7('0xf0')]([_0xadf7ed],null,_0x2da990);}}if(_0x124522[_0x42a7('0xc9')](),_0x124522[_0x42a7('0x126')]||_0x42a7('0x11b')==_0x124522[_0x42a7('0xca')][_0x42a7('0x2e')])return null;let _0x328a1e=null,_0x134eb6=_0x124522['start'],_0x35a5e7=_0x124522['end'];const _0x52e053=this[_0x42a7('0xdb')](_0x124522,_0x42a7('0x4f'));for(const {suggestion:_0x42617a,meta:_0x4ae18e}of _0x52e053){const _0x3036fe=this[_0x42a7('0x46')]['createRange'](_0x134eb6,_0x35a5e7);if(_0x4ae18e[_0x42a7('0x4')]&&(this[_0x42a7('0x6b')]||!_0x4ae18e[_0x42a7('0x9')]&&!_0x4ae18e[_0x42a7('0x63')])){if(_0x42617a[_0x42a7('0xc8')]){if(!Ot(_0x42617a,_0x2da990))continue;let _0x12a3bc=!0x0;for(const _0x5f2265 of _0x42617a[_0x42a7('0xf5')]()){if(_0x5f2265['containsRange'](_0x3036fe,!0x0))return _0x42617a;_0x3036fe[_0x42a7('0x10f')](_0x5f2265)||(_0x12a3bc=!0x1);}_0x12a3bc&&_0x42617a[_0x42a7('0x11d')]();}else{const _0xaa3722=_0x42617a[_0x42a7('0x131')]();if(_0xaa3722['containsRange'](_0x3036fe,!0x0))return _0x42617a;if(!Ot(_0x42617a,_0x2da990)){_0x3036fe['containsRange'](_0xaa3722)?_0x42617a[_0x42a7('0xf7')]():_0xaa3722['containsPosition'](_0x134eb6)?_0x134eb6=_0xaa3722[_0x42a7('0x44')]:_0xaa3722['containsPosition'](_0x35a5e7)&&(_0x35a5e7=_0xaa3722[_0x42a7('0x42')]);continue;}_0x134eb6=_0x134eb6[_0x42a7('0x11f')](_0xaa3722[_0x42a7('0x42')])?_0x134eb6:_0xaa3722[_0x42a7('0x42')],_0x35a5e7=_0x35a5e7[_0x42a7('0x120')](_0xaa3722[_0x42a7('0x44')])?_0x35a5e7:_0xaa3722[_0x42a7('0x44')],_0x2da990=Object[_0x42a7('0x88')]({},_0x42617a[_0x42a7('0x32')]),_0x328a1e?_0xaa3722[_0x42a7('0x42')][_0x42a7('0x11f')](_0x328a1e[_0x42a7('0x131')]()[_0x42a7('0x42')])?(_0x328a1e[_0x42a7('0xf7')](),_0x328a1e=_0x42617a):_0x42617a[_0x42a7('0xf7')]():_0x328a1e=_0x42617a;}}}if(_0x328a1e)return this['_setSuggestionRange'](_0x328a1e,this['_model'][_0x42a7('0x116')](_0x134eb6,_0x35a5e7)),_0x328a1e;{const _0x40f272=_0x3347ed(),_0xc08e80=this[_0x42a7('0x46')][_0x42a7('0x116')](_0x134eb6,_0x35a5e7),_0x52a1e0=_0x4410b0['id'],_0x37cbe8=_0x1fef2e?_0x42a7('0x122')+_0x1fef2e:_0x42a7('0x4f'),_0x2ab9d4=this['_setSuggestionData']({'id':_0x40f272,'type':_0x37cbe8,'createdAt':new Date(),'authorId':_0x52a1e0,'attributes':_0x2da990});return this['_addSuggestionMarker'](_0x37cbe8,_0x40f272,_0x52a1e0,_0xc08e80),_0x2ab9d4;}}['markMultiRangeDeletion'](_0x1b6a53,_0x3261dc=_0x42a7('0x105'),_0x595f18={}){const _0x1e5a2e=this[_0x42a7('0xa9')][_0x42a7('0x13c')][_0x42a7('0x78')]('Users')['me'],_0x169619=_0x1b6a53[_0x42a7('0x121')](_0x529e0d=>new _0x10c0ff(_0x529e0d[_0x42a7('0x42')],_0x529e0d[_0x42a7('0x44')])),_0x375de6=new Set();for(const {suggestion:_0x4d9bb9,meta:_0x349af6}of this[_0x42a7('0xdb')](_0x169619,_0x42a7('0x10')))_0x349af6[_0x42a7('0x4')]&&!_0x349af6[_0x42a7('0xed')]&&_0x375de6[_0x42a7('0x5c')](_0x4d9bb9);for(const _0x58981e of _0x375de6)if(_0x58981e['isMultiRange']){const _0x172f7f=_0x58981e[_0x42a7('0xf5')]();(!_0x58981e[_0x42a7('0x32')]||!_0x58981e[_0x42a7('0x32')]['skipNestingCheck'])&&(_0x172f7f[_0x42a7('0x61')](_0x194804=>_0x169619[_0x42a7('0x9b')](_0x3242a2=>_0x3242a2[_0x42a7('0x10f')](_0x194804,!0x0)))&&_0x58981e[_0x42a7('0x11d')]());if(_0x169619[_0x42a7('0x61')](_0x4ea6fa=>_0x172f7f[_0x42a7('0x9b')](_0x5afd9c=>_0x5afd9c['containsRange'](_0x4ea6fa,!0x0)))){const _0x5ef92d=this[_0x42a7('0x136')][_0x42a7('0x107')](_0x42a7('0x4f'),_0x3261dc,_0x42a7('0x8b'));return this['forceDefaultExecution'](()=>_0x5ef92d(_0x1b6a53,null,_0x595f18)),null;}}else{const _0xe02f81=_0x58981e['getFirstRange']();_0x169619[_0x42a7('0x9b')](_0x6dde22=>_0x6dde22[_0x42a7('0x10f')](_0xe02f81,!0x0))&&_0x58981e[_0x42a7('0x11d')]();if(_0x169619[_0x42a7('0x61')](_0x4dd76d=>_0xe02f81[_0x42a7('0x10f')](_0x4dd76d,!0x0))){const _0x169eb6=this[_0x42a7('0x136')][_0x42a7('0x107')](_0x42a7('0x4f'),_0x3261dc,_0x42a7('0x8b'));return this[_0x42a7('0x3a')](()=>_0x169eb6(_0x169619,null,_0x595f18)),null;}}const _0x219fe8=this[_0x42a7('0x136')]['getSuggestionCallback'](_0x42a7('0x4f'),_0x3261dc,_0x42a7('0xb8'));let _0x86d062=null;for(const _0x5d22f3 of this[_0x42a7('0xd5')]())if(_0x5d22f3[_0x42a7('0x84')]['id']==_0x1e5a2e['id']&&_0x5d22f3[_0x42a7('0x23')]&&'deletion'==_0x5d22f3['type']&&_0x5d22f3[_0x42a7('0x6a')]==_0x3261dc&&Ot(_0x5d22f3,_0x595f18)&&(_0x219fe8(_0x5d22f3[_0x42a7('0xf5')](),_0x169619)||_0x219fe8(_0x169619,_0x5d22f3[_0x42a7('0xf5')]()))){if(_0x86d062){if(_0x5d22f3[_0x42a7('0xf4')]&&_0x5d22f3[_0x42a7('0xf4')][_0x42a7('0xe2')])continue;for(const _0x37e332 of _0x5d22f3[_0x42a7('0xf5')]())_0x86d062['isIntersectingWithRange'](_0x37e332)||_0x86d062[_0x42a7('0x9a')](_0x37e332);_0x5d22f3[_0x42a7('0xf7')]();}else{_0x86d062=_0x5d22f3;for(const _0x6faaac of _0x169619)_0x5d22f3[_0x42a7('0x79')](_0x6faaac)||_0x5d22f3[_0x42a7('0x9a')](_0x6faaac);}}if(_0x86d062)return _0x86d062;_0x375de6[_0x42a7('0x9d')]();for(const {suggestion:_0x2596f7,meta:_0x16dcd6}of this['_findSuggestions'](_0x169619,_0x42a7('0x4f')))_0x16dcd6[_0x42a7('0x4')]&&(this[_0x42a7('0x6b')]||!_0x16dcd6[_0x42a7('0x9')]&&!_0x16dcd6[_0x42a7('0x63')])&&Ot(_0x2596f7,_0x595f18)&&_0x375de6[_0x42a7('0x5c')](_0x2596f7);for(const _0x4d2f29 of _0x375de6){const _0x14daf0=_0x4d2f29['getRanges']();if(!_0x595f18||!_0x595f18['skipNestingCheck']){if(_0x169619['every'](_0x3c8271=>_0x14daf0[_0x42a7('0x9b')](_0x1753a6=>_0x1753a6[_0x42a7('0x10f')](_0x3c8271,!0x0))))return _0x4d2f29;}(!_0x4d2f29[_0x42a7('0x32')]||!_0x4d2f29[_0x42a7('0x32')][_0x42a7('0x128')])&&(_0x14daf0[_0x42a7('0x61')](_0x574efb=>_0x169619[_0x42a7('0x9b')](_0x38191c=>_0x38191c[_0x42a7('0x10f')](_0x574efb,!0x0)))&&_0x4d2f29[_0x42a7('0x11d')]());}const _0x29402a=_0x3347ed(),_0x366f05=_0x1e5a2e['id'],_0x46245d=_0x42a7('0x122')+_0x3261dc,_0xea194c=this[_0x42a7('0x1f')]({'id':_0x29402a,'type':_0x46245d,'createdAt':new Date(),'authorId':_0x366f05,'attributes':_0x595f18});for(const _0x4ba26c of _0x169619)_0x4ba26c[_0x42a7('0xc9')](),_0x4ba26c['isCollapsed']||_0x42a7('0x11b')==_0x4ba26c[_0x42a7('0xca')][_0x42a7('0x2e')]||this[_0x42a7('0x0')](_0x46245d,_0x29402a,_0x366f05,_0x4ba26c,_0x90b3a8[_0x42a7('0xa2')]());return _0xea194c;}[_0x42a7('0x6')](_0x32265c,_0x3b548){const _0x408d98=_0x32265c[_0x42a7('0x114')]();this[_0x42a7('0x46')][_0x42a7('0xa8')](_0x4d283c=>{_0x4d283c[_0x42a7('0xfb')](_0x408d98,{'range':_0x3b548});});}['_addThreadToSuggestion'](_0xf36be5){const _0x2c2fa9=_0xf36be5['id'],_0x345691=this['editor']['config'][_0x42a7('0x78')]('collaboration.channelId');this[_0x42a7('0xb3')][_0x42a7('0x2c')](_0x2c2fa9)||this[_0x42a7('0xb3')][_0x42a7('0xfa')]({'channelId':_0x345691,'threadId':_0x2c2fa9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x157cb3=this[_0x42a7('0xb3')][_0x42a7('0x8f')](_0x2c2fa9);_0x157cb3['unbind'](_0x42a7('0x9f')),_0x157cb3[_0x42a7('0x9f')]=!0x1,_0xf36be5[_0x42a7('0xf4')]=_0x157cb3;}[_0x42a7('0x8d')](_0x45d04e,_0x1928ce,_0x219cc9,_0x290fd8){if(_0x45d04e['type']!=_0x1928ce||_0x45d04e[_0x42a7('0x6a')]!=_0x219cc9||_0x45d04e[_0x42a7('0x48')]['id']!=_0x290fd8)throw this[_0x42a7('0xa9')][_0x42a7('0xb5')](_0x42a7('0x16')),new _0x571106('track-changes-suggestion-data-mismatch',this);}[_0x42a7('0x10e')](_0x4f247e,_0x142be2){const _0x3a921d=_0x4f247e[_0x42a7('0x131')]();if(_0x142be2[_0x42a7('0x110')](_0x3a921d))_0x4f247e[_0x42a7('0xf7')]();else{if(_0x3a921d[_0x42a7('0x10f')](_0x142be2)){const _0x14a9f4=this[_0x42a7('0x46')][_0x42a7('0x11a')](_0x142be2[_0x42a7('0x42')][_0x42a7('0xa0')],_0x42a7('0x44'));this[_0x42a7('0x6')](_0x4f247e,this['_model'][_0x42a7('0x116')](_0x3a921d[_0x42a7('0x42')],_0x14a9f4));const _0x23d36e=_0x3347ed(),_0x425f36=_0x4f247e[_0x42a7('0x48')]['id'],_0x1abf94=_0x4f247e[_0x42a7('0x80')]+':'+_0x4f247e[_0x42a7('0x6a')];this[_0x42a7('0x1f')]({'id':_0x23d36e,'type':_0x1abf94,'createdAt':new Date(),'authorId':_0x425f36,'data':_0x4f247e[_0x42a7('0xcb')],'attributes':_0x4f247e[_0x42a7('0x32')]});const _0x4adeca=this[_0x42a7('0x46')][_0x42a7('0x11a')](_0x142be2[_0x42a7('0x44')][_0x42a7('0x113')],'after'),_0x164e5d=this[_0x42a7('0x46')][_0x42a7('0x116')](_0x4adeca,_0x3a921d[_0x42a7('0x44')]);this[_0x42a7('0x0')](_0x1abf94,_0x23d36e,_0x425f36,_0x164e5d);}else{if(_0x3a921d[_0x42a7('0x90')](_0x142be2['start'])){const _0x375052=this[_0x42a7('0x46')]['createPositionAt'](_0x142be2['start'][_0x42a7('0xa0')],_0x42a7('0x44'));this['_setSuggestionRange'](_0x4f247e,this['_model'][_0x42a7('0x116')](_0x3a921d[_0x42a7('0x42')],_0x375052));}else{const _0x32bc9a=this[_0x42a7('0x46')]['createPositionAt'](_0x142be2[_0x42a7('0x44')]['parent'],_0x42a7('0x67'));this[_0x42a7('0x6')](_0x4f247e,this['_model'][_0x42a7('0x116')](_0x32bc9a,_0x3a921d[_0x42a7('0x44')]));}}}}[_0x42a7('0x3b')](_0x148ae4){for(const {suggestion:_0xcc90ee,meta:_0xaa51ea}of this[_0x42a7('0xdb')](_0x148ae4,_0x42a7('0x10'))){if(!_0xaa51ea[_0x42a7('0x4')])continue;const _0x163af3=_0xcc90ee[_0x42a7('0xf5')]();for(const _0x4b32d9 of _0x163af3)if(!_0x148ae4[_0x42a7('0x77')](_0x4b32d9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3657d1){const _0x7ca671=this[_0x42a7('0xa9')]['plugins']['get'](_0x42a7('0xcd'))['getUser'](_0x3657d1);if(!_0x7ca671)throw new _0x571106('track-changes-user-not-found',this);return _0x7ca671;}['_getExternalAuthor'](_0x40326e){const _0x54a8e3=this[_0x42a7('0xa9')][_0x42a7('0x13c')][_0x42a7('0x78')]('Users'),_0x4e092d=_0x1bee3c(_0x42a7('0x5')+_0x40326e),_0x54ddb5=_0x54a8e3[_0x42a7('0xb7')](_0x4e092d);return _0x54ddb5||_0x54a8e3['addUser']({'id':_0x4e092d,'name':_0x40326e});}['_createSuggestion'](_0x5e69ac,_0x3d8a54,_0x5a5fcc,_0xac08da,_0x570fad){const _0x42ba3e=this[_0x42a7('0xe8')](_0xac08da),_0x33b962=this[_0x42a7('0x136')]['buildSuggestion'](_0x5e69ac,_0x3d8a54,_0x5a5fcc,_0x42ba3e,_0x570fad,_0x1abb89=>this['_updateSuggestionData'](_0x5a5fcc,{'attributes':_0x1abb89}));return this[_0x42a7('0x109')](_0x33b962,_0x42a7('0x8b'),()=>{this[_0x42a7('0x75')](_0x5a5fcc,{'state':_0x42a7('0x15')});},{'priority':_0x42a7('0xff')}),this['listenTo'](_0x33b962,_0x42a7('0x11d'),()=>{this['_updateSuggestionData'](_0x5a5fcc,{'state':_0x42a7('0x5a')});},{'priority':'high'}),this[_0x42a7('0x85')][_0x42a7('0xd2')](_0x5a5fcc,_0x33b962),this[_0x42a7('0x87')][_0x42a7('0xd2')](_0x33b962,'notReady'),_0x33b962;}[_0x42a7('0x11')](_0x52df56){const _0xba8a44=_0x52df56['split'](':');return{'group':_0xba8a44[0x0],'type':_0xba8a44[0x1],'subType':_0xba8a44[_0x42a7('0xe2')]>=0x5?_0xba8a44[0x2]:null,'id':_0xba8a44[_0x42a7('0xe2')]<0x5?_0xba8a44[0x2]:_0xba8a44[0x3],'authorId':_0xba8a44[_0x42a7('0xe2')]<0x5?_0xba8a44[0x3]:_0xba8a44[0x4],'markerCount':0x6==_0xba8a44[_0x42a7('0xe2')]?_0xba8a44[0x5]:null};}[_0x42a7('0xb4')](_0x357756,_0x31b467,_0xb338a0){const _0x581d57=_0x357756['getFirstRange'](),_0x282423=_0x581d57[_0x42a7('0x42')],_0x3145fa=_0x581d57[_0x42a7('0x44')];this[_0x42a7('0x6')](_0x357756,this[_0x42a7('0x46')][_0x42a7('0x116')](_0x282423,_0x31b467));const _0x5e0dd3=_0x3347ed(),_0x6bc3e6=_0x357756[_0x42a7('0x48')]['id'],_0x4a4bdc=_0x357756[_0x42a7('0x80')]+(_0x357756[_0x42a7('0x6a')]?':'+_0x357756[_0x42a7('0x6a')]:'');this[_0x42a7('0x1f')]({'id':_0x5e0dd3,'type':_0x4a4bdc,'createdAt':new Date(),'authorId':_0x6bc3e6,'originalSuggestionId':_0x357756['id'],'attributes':_0x357756[_0x42a7('0x32')],'data':_0x357756[_0x42a7('0xcb')]}),'formatBlock'==_0x357756[_0x42a7('0x80')]&&(_0xb338a0=this[_0x42a7('0x46')][_0x42a7('0x13f')](_0xb338a0[_0x42a7('0x113')])),this[_0x42a7('0x0')](_0x4a4bdc,_0x5e0dd3,_0x6bc3e6,this[_0x42a7('0x46')][_0x42a7('0x116')](_0xb338a0,_0x3145fa));}[_0x42a7('0xdb')](_0xc535b5,_0x3cb3fd=null){const _0x2219b5=[],_0x3a88d4=this[_0x42a7('0xa9')][_0x42a7('0x13c')]['get']('Users')['me'];Array['isArray'](_0xc535b5)||(_0xc535b5=[_0xc535b5]);for(const _0xd8c261 of this['getSuggestions']()){if(!_0xd8c261[_0x42a7('0x23')])continue;if(_0x3cb3fd&&_0xd8c261['type']!=_0x3cb3fd)continue;let _0x3806f2=!0x1;for(const _0xe67a83 of _0xd8c261[_0x42a7('0xf5')]()){for(const _0x2964a6 of _0xc535b5){const _0x5e69dd=_0x2964a6[_0x42a7('0x42')][_0x42a7('0x110')](_0xe67a83[_0x42a7('0x44')])||_0x2964a6['end']['isEqual'](_0xe67a83[_0x42a7('0x42')]);if(_0x5e69dd||_0x2964a6[_0x42a7('0x123')](_0xe67a83)){const _0x34f6c4=_0x2964a6['containsRange'](_0xe67a83)&&_t(this[_0x42a7('0x46')][_0x42a7('0x12d')],_0xe67a83['start'],_0x2964a6),_0x59197d=_0xe67a83[_0x42a7('0x10f')](_0x2964a6)&&_t(this[_0x42a7('0x46')][_0x42a7('0x12d')],_0x2964a6['start'],_0xe67a83);_0x2219b5['push']({'suggestion':_0xd8c261,'meta':{'isOwn':_0x3a88d4==_0xd8c261[_0x42a7('0x84')],'isNextTo':_0x5e69dd,'isInsideObject':_0x34f6c4,'containsRangeInObject':_0x59197d}}),_0x3806f2=!0x0;break;}}if(_0x3806f2)break;}}return _0x2219b5;}[_0x42a7('0x0')](_0x31c2ae,_0x1529f9,_0x39eaad,_0x1663e0,_0x5a173c){this['_model'][_0x42a7('0xa8')](_0x159727=>{let _0x5a1713=_0x42a7('0x65')+_0x31c2ae+':'+_0x1529f9+':'+_0x39eaad;_0x5a173c&&(_0x5a1713=_0x5a1713+':'+_0x5a173c),_0x159727[_0x42a7('0x29')](_0x5a1713,{'range':_0x1663e0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x42a7('0x9c')](_0x187d5b){const _0x13210b=_0x187d5b[_0x42a7('0xbd')],_0x38167a=_0x187d5b['next'];_0x187d5b[_0x42a7('0xbd')]=null,null!=_0x13210b&&(_0x13210b[_0x42a7('0x91')]=null),_0x187d5b['next']=null,null!=_0x38167a&&(_0x38167a[_0x42a7('0xbd')]=null),'ready'==this[_0x42a7('0x87')]['get'](_0x187d5b)&&(this[_0x42a7('0x87')]['set'](_0x187d5b,_0x42a7('0x3f')),this[_0x42a7('0x43')]('suggestionUnloaded',_0x187d5b,_0x13210b,_0x38167a));}['_setSuggestionData'](_0x394b68){const _0x5df729=_0x394b68['id'],_0xe3d020=this[_0x42a7('0x24')](_0x394b68);if(this[_0x42a7('0xac')]&&this[_0x42a7('0xac')]['addSuggestion']){const _0x392e59=this['editor'][_0x42a7('0x13c')]['get'](_0x42a7('0xa1')),_0xe274e3=_0xe3d020[_0x42a7('0xb0')],_0x29a712=_0xe3d020['subType']?_0xe3d020[_0x42a7('0x80')]+':'+_0xe3d020[_0x42a7('0x6a')]:_0xe3d020[_0x42a7('0x80')],_0x8612d8=this[_0x42a7('0xa9')][_0x42a7('0x142')],_0x1eccda=_0x392e59[_0x42a7('0x5c')](_0x2313c1(_0x8612d8,'PENDING_ACTION_SUGGESTION')),_0x362da7={'id':_0x5df729,'type':_0x29a712,'hasComments':_0xe274e3,'data':_0x394b68[_0x42a7('0xcb')]||null,'originalSuggestionId':_0x394b68[_0x42a7('0x57')]||null,'attributes':_0xe3d020[_0x42a7('0x32')]};this[_0x42a7('0xac')][_0x42a7('0xc')](_0x362da7)[_0x42a7('0x54')](_0x2e89ed=>{_0xe3d020[_0x42a7('0xfc')]=!0x0,_0x392e59[_0x42a7('0x12')](_0x1eccda),_0x2e89ed&&_0x2e89ed[_0x42a7('0x115')]&&(this[_0x42a7('0x85')][_0x42a7('0x78')](_0x5df729)['createdAt']=_0x2e89ed[_0x42a7('0x115')]);})['catch'](_0x51202b=>{throw _0x5e7b21(_0x42a7('0x132')),this[_0x42a7('0xa9')][_0x42a7('0xb2')][_0x42a7('0x69')]({'isUndoable':!0x1},()=>{_0xe3d020[_0x42a7('0x11d')]();}),_0xe3d020[_0x42a7('0x8')](),this[_0x42a7('0x85')][_0x42a7('0x73')](_0xe3d020['id']),this['_suggestionState'][_0x42a7('0x73')](_0xe3d020),_0x51202b;});}return _0xe3d020;}[_0x42a7('0x75')](_0x320d68,_0x13502c){const _0xbbb06f=this[_0x42a7('0xa9')][_0x42a7('0x13c')][_0x42a7('0x78')](_0x42a7('0xa1')),_0x2bf090=this['getSuggestion'](_0x320d68);if(this[_0x42a7('0xac')]&&this[_0x42a7('0xac')][_0x42a7('0x83')]){if(_0x2bf090[_0x42a7('0xfc')]){const _0xd81b7e=_0xbbb06f[_0x42a7('0x5c')](_0x2313c1(this[_0x42a7('0xa9')][_0x42a7('0x142')],_0x42a7('0xd1')));this[_0x42a7('0xac')]['updateSuggestion'](_0x320d68,_0x13502c)[_0x42a7('0x54')](()=>{_0xbbb06f['remove'](_0xd81b7e);});}else _0x2bf090['on']('change:_saved',()=>{this[_0x42a7('0x75')](_0x320d68,_0x13502c);});}}[_0x42a7('0xcf')](_0x57cfe5){if(!this[_0x42a7('0xac')]||!this[_0x42a7('0xac')][_0x42a7('0x66')])throw new _0x571106('track-changes-adapter-missing-getsuggestion',this);return this[_0x42a7('0xac')][_0x42a7('0x66')](_0x57cfe5);}[_0x42a7('0x76')](_0x1d2602){const {id:_0x4d488d,type:_0x2d17a4,subType:_0x49b7ea,authorId:_0x1752f7}=this[_0x42a7('0x11')](_0x1d2602),_0x17c5b8=this[_0x42a7('0x85')]['get'](_0x4d488d)||this[_0x42a7('0xd')](_0x2d17a4,_0x49b7ea,_0x4d488d,_0x1752f7,{});switch(this['_checkSuggestionCorrectness'](_0x17c5b8,_0x2d17a4,_0x49b7ea,_0x1752f7),this[_0x42a7('0x87')][_0x42a7('0x78')](_0x17c5b8)){case'notReady':this[_0x42a7('0xcf')](_0x4d488d)[_0x42a7('0x54')](_0x3c6023=>{let _0x2a4ebe=Promise[_0x42a7('0x4b')]();_0x3c6023[_0x42a7('0xb0')]&&(_0x2a4ebe=this[_0x42a7('0xb3')][_0x42a7('0x6e')]({'channelId':this[_0x42a7('0xa9')][_0x42a7('0x72')][_0x42a7('0x78')](_0x42a7('0x58')),'threadId':_0x4d488d})),_0x2a4ebe[_0x42a7('0x54')](()=>{this[_0x42a7('0x24')](_0x3c6023)['_saved']=!0x0;});}),this[_0x42a7('0x87')][_0x42a7('0xd2')](_0x17c5b8,_0x42a7('0x12f'));break;case'removed':this[_0x42a7('0x75')](_0x4d488d,{'state':_0x42a7('0xa6')});case _0x42a7('0xb9'):this[_0x42a7('0x87')]['set'](_0x17c5b8,_0x42a7('0x1')),this[_0x42a7('0x43')](_0x42a7('0x52'),_0x17c5b8);break;case'ready':this[_0x42a7('0x43')]('suggestionChanged',_0x17c5b8);}return _0x17c5b8['addMarkerName'](_0x1d2602),_0x17c5b8;}[_0x42a7('0xe1')](_0x4adf98){const _0x331738=Array[_0x42a7('0x10b')](_0x4adf98)[_0x42a7('0xfd')](_0x3c5628=>!_0x3c5628[_0x42a7('0xc8')]),_0x4752b2=this[_0x42a7('0xd5')]({'skipNotAttached':!0x0})[_0x42a7('0xfd')](_0x254b3a=>!_0x254b3a[_0x42a7('0xc8')]),_0x591080=_0x4752b2['filter'](_0x202c87=>!_0x4adf98[_0x42a7('0x6f')](_0x202c87)),_0x3e2803=new Map(_0x4752b2[_0x42a7('0x121')](_0x1ba64a=>[_0x1ba64a,this['_suggestionFactory'][_0x42a7('0x107')](_0x1ba64a[_0x42a7('0x80')],_0x1ba64a['subType'],_0x42a7('0xab'))])),_0x5ce44f=new Map(_0x4752b2[_0x42a7('0x121')](_0x478bc3=>[_0x478bc3,_0x478bc3['getFirstRange']()])),_0x2f28a9=new Set(),_0x4d0864=new Set();for(let _0x221aa1=0x0;_0x221aa1<_0x331738[_0x42a7('0xe2')];_0x221aa1++)_0x1678b9(_0x331738[_0x221aa1],_0x331738,_0x221aa1+0x1);for(let _0x2fb511=0x0;_0x2fb511<_0x331738[_0x42a7('0xe2')];_0x2fb511++)_0x1678b9(_0x331738[_0x2fb511],_0x591080,0x0);for(let _0x4e8b86=0x0;_0x4e8b86<_0x331738[_0x42a7('0xe2')];_0x4e8b86++){const _0x225a56=_0x331738[_0x4e8b86];!_0x4d0864[_0x42a7('0x6f')](_0x225a56)&&_0x225a56[_0x42a7('0xbd')]&&(_0x225a56[_0x42a7('0xbd')][_0x42a7('0x91')]===_0x225a56&&(_0x225a56[_0x42a7('0xbd')][_0x42a7('0x91')]=null),_0x225a56[_0x42a7('0xbd')]=null),!_0x2f28a9[_0x42a7('0x6f')](_0x225a56)&&_0x225a56[_0x42a7('0x91')]&&(_0x225a56[_0x42a7('0x91')]['previous']===_0x225a56&&(_0x225a56['next'][_0x42a7('0xbd')]=null),_0x225a56[_0x42a7('0x91')]=null);}function _0x1678b9(_0x597ce5,_0x37bae8,_0x52963d){for(let _0x2f9d94=_0x52963d;_0x2f9d94<_0x37bae8['length'];_0x2f9d94++){const _0x5b50e1=_0x34f8fd(_0x597ce5,_0x37bae8[_0x2f9d94]);_0x5b50e1&&(_0x5b50e1[0x0][_0x42a7('0x91')]=_0x5b50e1[0x1],_0x5b50e1[0x1]['previous']=_0x5b50e1[0x0],_0x2f28a9['add'](_0x5b50e1[0x0]),_0x4d0864[_0x42a7('0x5c')](_0x5b50e1[0x1]));}}function _0x34f8fd(_0x35fd4b,_0x4bb4ce){if(_0x35fd4b[_0x42a7('0x84')]['id']!==_0x4bb4ce[_0x42a7('0x84')]['id'])return null;const _0x5162a6=_0x3e2803[_0x42a7('0x78')](_0x35fd4b)(_0x35fd4b,_0x4bb4ce,_0x5ce44f[_0x42a7('0x78')](_0x35fd4b),_0x5ce44f[_0x42a7('0x78')](_0x4bb4ce));if(!_0x5162a6)return null;return _0x3e2803[_0x42a7('0x78')](_0x4bb4ce)(_0x35fd4b,_0x4bb4ce,_0x5ce44f[_0x42a7('0x78')](_0x35fd4b),_0x5ce44f[_0x42a7('0x78')](_0x4bb4ce))?_0x5162a6[0x1]['commentThread']&&_0x5162a6[0x1][_0x42a7('0xf4')][_0x42a7('0xe2')]?null:_0x5162a6:null;}}[_0x42a7('0xc1')](_0x20ff51){const _0x1746e1=Array[_0x42a7('0x10b')](_0x20ff51),_0x2a8051=this[_0x42a7('0xd5')]({'skipNotAttached':!0x0}),_0x282a99=_0x2a8051[_0x42a7('0xfd')](_0x5f2a04=>!_0x20ff51[_0x42a7('0x6f')](_0x5f2a04)),_0x3c9ff3=new Map(_0x1746e1[_0x42a7('0x121')](_0x561bee=>[_0x561bee,this[_0x42a7('0x136')][_0x42a7('0x107')](_0x561bee['type'],_0x561bee['subType'],_0x42a7('0xb8'))])),_0x1acafc=new Map(_0x2a8051[_0x42a7('0x121')](_0xfda7c3=>[_0xfda7c3,_0xfda7c3[_0x42a7('0xf5')]()]));for(let _0x5387ba=0x0;_0x5387ba<_0x1746e1['length'];_0x5387ba++){if(_0x8e75fe(this,_0x1746e1[_0x5387ba],_0x1746e1,_0x5387ba+0x1))return!0x0;}for(let _0x5a7518=0x0;_0x5a7518<_0x1746e1[_0x42a7('0xe2')];_0x5a7518++){if(_0x8e75fe(this,_0x1746e1[_0x5a7518],_0x282a99,0x0))return!0x0;}return!0x1;function _0x8e75fe(_0x51a459,_0x5b54c0,_0x23360e,_0x3d93a4){for(let _0x2ecd37=_0x3d93a4;_0x2ecd37<_0x23360e[_0x42a7('0xe2')];_0x2ecd37++){const _0x13f7e5=_0x23360e[_0x2ecd37];if(_0x13f7e5[_0x42a7('0x80')]!==_0x5b54c0[_0x42a7('0x80')]||_0x13f7e5[_0x42a7('0x84')]['id']!==_0x5b54c0['author']['id']||_0x13f7e5[_0x42a7('0x6a')]!==_0x5b54c0[_0x42a7('0x6a')])continue;if(!Ut(_0x5b54c0,_0x13f7e5))continue;const _0xd7ba82=_0x3c9ff3[_0x42a7('0x78')](_0x5b54c0),_0x5da41e=_0x1acafc[_0x42a7('0x78')](_0x5b54c0),_0x3774d7=_0x1acafc[_0x42a7('0x78')](_0x13f7e5),_0x138d50=_0x5b54c0['commentThread']&&_0x5b54c0['commentThread'][_0x42a7('0xe2')],_0x3c7045=_0x13f7e5['commentThread']&&_0x13f7e5['commentThread'][_0x42a7('0xe2')];if(!_0x138d50&&_0xd7ba82(_0x3774d7,_0x5da41e))return _0x51a459['_joinSuggestions'](_0x13f7e5,_0x5b54c0),_0x1acafc[_0x42a7('0x73')](_0x5b54c0),!0x0;if(!_0x3c7045&&_0xd7ba82(_0x5da41e,_0x3774d7))return _0x51a459[_0x42a7('0x4e')](_0x5b54c0,_0x13f7e5),_0x1acafc[_0x42a7('0x73')](_0x13f7e5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x51342e,_0x13cdea){if(_0x51342e[_0x42a7('0xc8')])for(const _0x48944e of _0x13cdea[_0x42a7('0xf5')]())_0x51342e[_0x42a7('0x9a')](_0x48944e);else{const _0x41ba0=_0x13cdea['getFirstRange']()[_0x42a7('0x44')];this[_0x42a7('0x6')](_0x51342e,this['_model'][_0x42a7('0x116')](_0x51342e[_0x42a7('0x131')]()[_0x42a7('0x42')],_0x41ba0));}_0x13cdea[_0x42a7('0xf7')]();}}class Bt{constructor(_0x5f5d0a){this['_editor']=_0x5f5d0a,this['_model']=_0x5f5d0a['model'],this[_0x42a7('0xd4')]=new Map(),this[_0x42a7('0x41')]=new Map(),this['_registerDefaultCallbacks']();}[_0x42a7('0xc5')](_0x36d49c,_0x3e2213,_0x47ec80,_0x3d854a,_0x54330c,_0x1735f4){return new _0x90b3a8(this[_0x42a7('0x46')],{'type':_0x36d49c,'subType':_0x3e2213,'id':_0x47ec80,'author':_0x3d854a,'creator':_0x3d854a,'attributes':_0x54330c,'onAttributesChange':_0x1735f4,'onAccept':(..._0x505128)=>this[_0x42a7('0x107')](_0x36d49c,_0x3e2213,_0x42a7('0x8b'))(..._0x505128),'onDiscard':(..._0x58a64e)=>this[_0x42a7('0x107')](_0x36d49c,_0x3e2213,'discard')(..._0x58a64e)});}[_0x42a7('0xc3')](_0x176537,_0x978105,_0x21d88c,_0x24fedb){const _0x1840e4=_0x176537+':'+_0x978105+':'+_0x21d88c;this[_0x42a7('0xd4')][_0x42a7('0xd2')](_0x1840e4,_0x24fedb);}[_0x42a7('0x107')](_0x1f5374,_0x3e8d33,_0x2fce7c){const _0xfeda05=_0x1f5374+':'+_0x3e8d33+':'+_0x2fce7c;return this['_customCallbacks']['get'](_0xfeda05)||this['_defaultCallbacks']['get'](_0x1f5374+':'+_0x2fce7c);}[_0x42a7('0xbe')](){const _0x1455ed=()=>!0x1,_0x3523ad=_0x503708=>{_0x503708['sort']((_0x5cc78c,_0x55e9b8)=>_0x5cc78c[_0x42a7('0x42')][_0x42a7('0x11f')](_0x55e9b8[_0x42a7('0x42')])?0x1:-0x1),this['_model'][_0x42a7('0xa8')](_0x439b6d=>{for(const _0x10766f of _0x503708){let _0x6cbe53;_0x6cbe53=_0x10766f[_0x42a7('0x44')]['isAtEnd']&&_0x10766f[_0x42a7('0x44')][_0x42a7('0x113')]==_0x10766f['start'][_0x42a7('0x1e')]?_0x439b6d[_0x42a7('0x7f')](_0x10766f[_0x42a7('0x42')][_0x42a7('0x1e')],'on'):_0x439b6d[_0x42a7('0x7f')](_0x10766f),this['_model'][_0x42a7('0xda')](_0x6cbe53,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49d0d4=(_0x5092c4,_0x30e76b)=>{this[_0x42a7('0x46')][_0x42a7('0xa8')](_0x6f5ccf=>{const {commandName:_0x18c23c,commandParams:_0x3651a7=[]}=_0x30e76b,_0x2036a3=_0x5092c4['map'](_0x13b2e1=>(Mt(_0x13b2e1)&&(_0x13b2e1=this[_0x42a7('0x46')]['createRange'](_0x13b2e1[_0x42a7('0x44')])),_0x13b2e1))['filter'](_0x540799=>_0x42a7('0x11b')!==_0x540799['root'][_0x42a7('0x2e')]);if(_0x2036a3[_0x42a7('0xe2')]<0x1)return;const _0x1248cb=Array[_0x42a7('0x10b')](this['_model'][_0x42a7('0x53')]['selection'][_0x42a7('0xf5')]())[_0x42a7('0x121')](_0x138f3b=>_0x10c0ff[_0x42a7('0xdc')](_0x138f3b));_0x6f5ccf[_0x42a7('0x7c')](_0x2036a3);for(const _0x478b23 of this[_0x42a7('0x33')][_0x42a7('0xb6')][_0x42a7('0xb6')]())_0x478b23[_0x42a7('0x7b')]();_0x3651a7[_0x42a7('0x1d')]({'forceDefaultExecution':!0x0}),this[_0x42a7('0x33')]['execute'](_0x18c23c,..._0x3651a7);const _0x17537a=_0x1248cb[_0x42a7('0xfd')](_0x5dc03a=>_0x42a7('0x11b')!=_0x5dc03a['root'][_0x42a7('0x2e')]);_0x17537a[_0x42a7('0xe2')]>0x0&&_0x6f5ccf[_0x42a7('0x7c')](_0x17537a);for(const _0x2bfa9b of _0x1248cb)_0x2bfa9b['detach']();});},_0x434536=(_0x381bc2,_0xd068b5)=>0x1==_0x381bc2[_0x42a7('0xe2')]&&0x1==_0xd068b5[_0x42a7('0xe2')]&&_0x381bc2[0x0]['end'][_0x42a7('0x110')](_0xd068b5[0x0][_0x42a7('0x42')]),_0x55732b=(_0x17b9cd,_0x15592c,_0x26f73d,_0xa7ab4c)=>xt(_0x17b9cd,_0x15592c,_0x26f73d,_0xa7ab4c,this[_0x42a7('0x46')])?[_0x17b9cd,_0x15592c]:xt(_0x15592c,_0x17b9cd,_0xa7ab4c,_0x26f73d,this[_0x42a7('0x46')])?[_0x15592c,_0x17b9cd]:null;this[_0x42a7('0x41')][_0x42a7('0xd2')]('insertion:accept',_0x1455ed),this[_0x42a7('0x41')]['set']('insertion:discard',_0x3523ad),this[_0x42a7('0x41')]['set'](_0x42a7('0xc6'),_0x434536),this[_0x42a7('0x41')][_0x42a7('0xd2')]('insertion:chain',_0x55732b),this['_defaultCallbacks'][_0x42a7('0xd2')](_0x42a7('0xf8'),_0x3523ad),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0xe4'),_0x1455ed),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0x1c'),_0x434536),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0x6d'),_0x55732b),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0x133'),_0x49d0d4),this[_0x42a7('0x41')]['set'](_0x42a7('0xf'),_0x1455ed),this[_0x42a7('0x41')]['set'](_0x42a7('0x11e'),_0x434536),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0x98'),_0x1455ed),this[_0x42a7('0x41')]['set'](_0x42a7('0x71'),_0x49d0d4),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0xfe'),_0x1455ed),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0x14'),_0x434536),this[_0x42a7('0x41')][_0x42a7('0xd2')](_0x42a7('0xf9'),_0x1455ed);}}function _t(_0x3be80c,_0x2ec636,_0xe954db){for(const _0x5e765f of _0x2ec636[_0x42a7('0x113')][_0x42a7('0xf3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5e765f[_0x42a7('0xca')]==_0x5e765f)return!0x1;if(!_0xe954db[_0x42a7('0x70')](_0x5e765f))return!0x1;if(_0x3be80c[_0x42a7('0x5b')](_0x5e765f)||_0x3be80c[_0x42a7('0x10d')](_0x5e765f))return!0x0;}return!0x1;}function Mt(_0x33afb8){return _0x33afb8[_0x42a7('0x44')]['parent']==_0x33afb8['start'][_0x42a7('0x1e')]&&_0x33afb8['end'][_0x42a7('0x18')];}function $t(_0x25b4df,_0x43cba6,_0x33023e,_0x489cc7){const _0x4d69fa=_0x4b731e=>!_0x4b731e['item']['is'](_0x42a7('0x119'))&&!_0x489cc7[_0x42a7('0x5b')](_0x4b731e[_0x42a7('0x101')]),_0x2a898a=_0x25b4df[_0x42a7('0x42')][_0x42a7('0x22')](_0x4d69fa),_0x4594e2=_0x25b4df['end']['getLastMatchingPosition'](_0x4d69fa,{'direction':_0x42a7('0x13b')});return(!_0x25b4df['start'][_0x42a7('0x110')](_0x2a898a)||!_0x25b4df['end']['isEqual'](_0x4594e2))&&(_0x2a898a['isBefore'](_0x4594e2)?_0x33023e['updateMarker'](_0x43cba6,{'range':_0x33023e['createRange'](_0x2a898a,_0x4594e2)}):_0x33023e[_0x42a7('0x31')](_0x43cba6),!0x0);}function Nt(_0x52c75d){return _0x1bee3c(_0x52c75d);}function Rt(_0x244e59){const _0x54e43e=_0x244e59[_0x42a7('0x42')][_0x42a7('0x1e')];return _0x54e43e&&_0x54e43e['is']('element');}function jt(_0x575e25,_0x19213b){const _0x2c5e9f=_0x19213b[_0x42a7('0x12d')]['isObject'](_0x575e25)||_0x19213b[_0x42a7('0x12d')][_0x42a7('0x35')](_0x575e25);return _0x19213b[_0x42a7('0x116')](_0x19213b[_0x42a7('0x11a')](_0x575e25,_0x42a7('0x27')),_0x2c5e9f?_0x19213b[_0x42a7('0x49')](_0x575e25):_0x19213b[_0x42a7('0x11a')](_0x575e25,_0x42a7('0x44')));}function xt(_0x1d5f7b,_0x142241,_0x5d8cc5,_0x542f0f,_0x322d36){if(!Ut(_0x1d5f7b,_0x142241))return!0x1;if(_0x5d8cc5[_0x42a7('0x44')][_0x42a7('0x110')](_0x542f0f['start']))return!0x0;if(_0x1d5f7b[_0x42a7('0x80')]!=_0x142241[_0x42a7('0x80')])return!0x1;if(!_0x5d8cc5[_0x42a7('0x44')][_0x42a7('0x50')](_0x542f0f[_0x42a7('0x42')]))return!0x1;const _0x4c487b=_0x322d36[_0x42a7('0x116')](_0x5d8cc5['end'],_0x542f0f[_0x42a7('0x42')])[_0x42a7('0x103')]();for(const _0xcad9c7 of _0x4c487b)if([_0x42a7('0x13a'),_0x42a7('0xea')][_0x42a7('0xa3')](_0xcad9c7[_0x42a7('0x80')])&&_0x322d36[_0x42a7('0x12d')][_0x42a7('0x10d')](_0xcad9c7[_0x42a7('0x101')]))return!0x1;return!0x0;}function Ut(_0x145fff,_0x46a678){return!(!_0x145fff['_isDataLoaded']||!_0x46a678[_0x42a7('0xbc')])&&_0x31b012(_0x145fff[_0x42a7('0x32')],_0x46a678[_0x42a7('0x32')]);}function Ot(_0x1238c7,_0x4ca51f){const _0x14b75f=Et(_0x1238c7[_0x42a7('0x32')]),_0x52f18a=Et(_0x4ca51f);if(!_0x1238c7[_0x42a7('0xbc')])return!0x1;for(const _0x2d8aa6 of Object[_0x42a7('0x51')](_0x52f18a))if(!_0x31b012(_0x14b75f[_0x2d8aa6],_0x52f18a[_0x2d8aa6]))return!0x1;return!0x0;}function Et(_0x519bb8){const _0x26050c=Object['assign']({},_0x519bb8);return delete _0x26050c[_0x42a7('0x128')],delete _0x26050c[_0x42a7('0xdf')],_0x26050c;}
23
+ const _0x3ca7=['init','_updateSuggestionData','getSuggestions','return','isInsideObject','getAttribute','getNearestSelectionRange','track-changes-adapter-already-set','position','_setSuggestionData','registerPostFixer','containsRangeInObject','getDifference','setSelection','isCollapsed','name','options','addClass','isLimit','root','detach','ck-suggestion-marker-formatBlock','addMarker:suggestion','hasComments','stop','formatInline:discard','data','_addThreadToSuggestion','forceDefaultExecution','editingDowncast','pluginName','deletion:discard','nodeBefore','default','suggestion','fromCharCode','define','@external','error-saving-suggestion-data-suggestion-discarded','isEqual','_enabledCommands','low','_saved','trackChanges','elementToElement','acceptSelectedSuggestions','high','PENDING_ACTION_SUGGESTION','isAtEnd','dataDowncast','formatInline:','delete','isAfter','parent','getCommentThread','isRemovable','previous','refresh','setAttribute','_findSuggestions','has','_commentsRepository','toViewElement','newRange','discardSuggestion','insertion:accept','stopListening','every','moveTargetPosition','deletion:accept','_rangeIsInLocalUserInsertion','model','markerNameToElements','enableCommand','Users','update:suggestion','elementStart','clone','_joinSuggestions','PendingActions','assign','rootName','for','hasSuggestion','getCustomProperty','external:','_trackFormatChanges','addMarkerName','splitPosition','ready','isOwn','originalSuggestionId','multi','keys','multipleBlocks','getAllAdjacentSuggestions','createPositionAt','data-suggestion','markDeletion','start','formatInline:chain','_suggestionFactory','_mergeNestedSuggestions','widget','authorName','getMultiRangeId','_suggestionState','always','fromRange','getSuggestionCallback','acceptAllSuggestions','activeMarkers','removeMarkers','getSuggestion','batch','getFirstMarker','_getAuthorFromId','forward','getWalker','value','addRange','writer','attributes','commandName','range','markers','addMarker:suggestion:formatBlock','tablePasteChainId','markInlineFormat','oldRange','containsItem','getChangedMarkers','getShiftedBy','item','consume','_createSuggestion','documentSelection','ck-suggestion-marker','unbind','containerElement','isTouching','addComment','_refreshSuggestionsChain','map','createRange','skipNestingCheck','subType','_checkSuggestionCorrectness','_getSuggestionData','buildSuggestion','addSuggestionData','addHighlight','end','schema','split','enableReadOnlyMode','isNextTo','$graveyard','markInsertion','_cutOutSuggestionMarker','discardSelectedSuggestions','formatInline','addSuggestion','removeAttribute','isAtStart','head','author','isArray','dataToMarker','collaboration.channelId','discard','includes','deletion:chain','isBlock','$marker','join','showSuggestionHighlights','$textProxy','trackChangesCommand','document','_onDiscard','_customCallbacks','formatBlock:accept','removeComment','filter','commentThread','containsRange','differ','suggestion:','addCommentThread','setTo','updateMarker','formatGroupId','track-changes-suggestion-data-mismatch','change:data','isBefore','ck-suggestion-marker--active','push','markMultiRangeBlockFormat','insert','isInContent','bindElementToMarker','_setSuggestionRange','getFirstRange','splice','size','dataReady','change:activeMarkers','addUser','_adapter','_breakSuggestionMarker','elementEnd','change','isObject','move','getRange','consumable','_editor','formatBlock','before','conversion','listenTo','suggestion-type','element','_splitMarkerName','locale','formatInline:join','_addSuggestionMarker','insertion:join','normal','insertion:','removeClass','getLastMatchingPosition','createSelection','applyOperation','_model','substr','createPositionAfter','type','formatBlock:discard','deletion:','fetchCommentThread','rethrowUnexpectedError','fire','toJSON','length','suggestionLoaded','get','reconvertMarker','_isDataLoaded','TrackChangesEditing','isSelectable','set','CommentsRepository','getRanges','addMarker','editor','_descriptionFactory','ck-suggestion-marker-','_handleNewSuggestionMarker','registerCustomCallback','formatBlock:join','upcast','markerName','_isForcedDefaultExecutionBlock','marker-count','mapper','next','formatBlock:','isDocumentOperation','plugins','getIntersection','createPositionBefore','deleteContent','trackChanges.trackFormatChanges','notReady','isIntersectingWithRange','adapter','authoredAt','_defaultCallbacks','backward','isLocal','track-changes-suggestion-not-found','deletion','markerToData','then','markMultiRangeDeletion','creator','isMultiRange','acceptSuggestion','never','createElement','enqueueChange','add','markerReady','removeMarker:suggestion:formatBlock','unbindElementFromMarkerName','sort','from','commands','_getExternalAuthor','getMarkers','values','discardAllSuggestions','accept','execute','howMany','insertion:discard','createdAt','insertion','nodeAfter','_suggestions','track-changes-command-not-found','getUser','markerToHighlight','suggestionChanged','some','_removeSuggestion','config','insertContent','_joinWithAdjacentSuggestions','change:_saved','removeMarker'];(function(_0x5816dd,_0x3ca798){const _0x165cc1=function(_0x38faa8){while(--_0x38faa8){_0x5816dd['push'](_0x5816dd['shift']());}};_0x165cc1(++_0x3ca798);}(_0x3ca7,0x1d6));const _0x165c=function(_0x5816dd,_0x3ca798){_0x5816dd=_0x5816dd-0x0;let _0x165cc1=_0x3ca7[_0x5816dd];return _0x165cc1;};import{Plugin as _0x39a7e2,PendingActions as _0x1bf11d}from'ckeditor5/src/core';import{LiveRange as _0x3c45ef}from'ckeditor5/src/engine';import{CKEditorError as _0xb2381e,uid as _0x45f81c,priorities as _0x5d330b,logWarning as _0x17f9a1}from'ckeditor5/src/utils';import{toWidget as _0x1836ce}from'ckeditor5/src/widget';import{Users as _0x29a4b9,hashObject as _0x15ab5f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2bfc2f from'./commands/trackchangescommand';import _0x7f50d6 from'./commands/acceptsuggestioncommand';import _0x26413d from'./commands/discardsuggestioncommand';import _0x4fd953 from'./commands/executeonallsuggestionscommand';import _0x1dabf9 from'./commands/executeonselectedsuggestionscommand';import _0x46695f from'./suggestion';import _0xb322f0 from'./suggestiondescriptionfactory';import _0x505fc8 from'./integrations/aiassistant';import _0x132516 from'./integrations/alignment';import _0x279614 from'./integrations/basicstyles';import _0x3516f5 from'./integrations/blockquote';import _0x587d27 from'./integrations/ckbox';import _0x1fdfb2 from'./integrations/codeblock';import _0x57bebc from'./integrations/comments';import _0x12d8c3 from'./integrations/deletecommand';import _0x291925 from'./integrations/documentlist';import _0x56d72f from'./integrations/entercommand';import _0x49536c from'./integrations/findandreplace';import _0x3444a0 from'./integrations/font';import _0x2a72c4 from'./integrations/formatpainter';import _0x420cfb from'./integrations/heading';import _0x565184 from'./integrations/highlight';import _0x44b018 from'./integrations/horizontalline';import _0x36b0c4 from'./integrations/htmlembed';import _0x46ea70 from'./integrations/image';import _0x5413e7 from'./integrations/imagereplace';import _0x5231ca from'./integrations/importword';import _0x279ac2 from'./integrations/indent';import _0x3555b2 from'./integrations/inputcommand';import _0x1b8224 from'./integrations/link';import _0x585c92 from'./integrations/list';import _0x4c8606 from'./integrations/listproperties';import _0x2f2ab5 from'./integrations/mediaembed';import _0x1aeb31 from'./integrations/mention';import _0x56ab6a from'./integrations/pagebreak';import _0x141689 from'./integrations/paragraph';import _0x58f0bd from'./integrations/removeformat';import _0x3480af from'./integrations/restrictededitingmode';import _0x3ece1b from'./integrations/shiftentercommand';import _0x3844c7 from'./integrations/standardeditingmode';import _0x151466 from'./integrations/style';import _0x3b1ba1 from'./integrations/table';import _0x5629a4 from'./integrations/tablemergesplit';import _0x66ee91 from'./integrations/tableheadings';import _0x180455 from'./integrations/tableclipboard';import _0x5f4ac7 from'./integrations/tablecolumnresize';import _0x46c678 from'./integrations/template';import _0x25b59a from'./integrations/tableofcontents';import _0x141b8f from'./integrations/title';import _0x4ad006 from'./integrations/undo';import{getTranslation as _0x14a9fb}from'./utils/common-translations';import _0x303340 from'./integrations/tablecaption';import _0x2e28ee from'./integrations/documentlistproperties';import _0x19a12e from'./integrations/tableproperties';import{isEqual as _0x2a10e9}from'lodash-es';export default class p extends _0x39a7e2{static get['requires'](){return[_0x165c('0x6a'),_0x29a4b9,_0x1bf11d,_0x505fc8,_0x132516,_0x279614,_0x3516f5,_0x587d27,_0x1fdfb2,_0x57bebc,_0x12d8c3,_0x291925,_0x2e28ee,_0x56d72f,_0x49536c,_0x3444a0,_0x2a72c4,_0x420cfb,_0x565184,_0x44b018,_0x36b0c4,_0x46ea70,_0x5413e7,_0x5231ca,_0x279ac2,_0x3555b2,_0x1b8224,_0x585c92,_0x4c8606,_0x2f2ab5,_0x1aeb31,_0x56ab6a,_0x141689,_0x58f0bd,_0x3480af,_0x3ece1b,_0x3844c7,_0x151466,_0x3b1ba1,_0x5629a4,_0x66ee91,_0x303340,_0x180455,_0x5f4ac7,_0x25b59a,_0x19a12e,_0x46c678,_0x141b8f,_0x4ad006];}static get[_0x165c('0xce')](){return _0x165c('0x67');}constructor(_0x500d3d){function _0x4b62d1(_0x2f951a){return _0x2f951a[_0x165c('0x13f')](_0x1abc0f=>String[_0x165c('0xd3')](_0x1abc0f))['join']('');}super(_0x500d3d),this[_0x165c('0x69')](_0x165c('0x11f'),[]),this['on'](_0x165c('0x3c'),(_0x137740,_0x1a34b8,_0x93d5b1,_0x106534)=>{this[_0x165c('0x58')][_0x165c('0x41')](()=>{for(const _0x19dc4a of[..._0x106534,..._0x93d5b1])this[_0x165c('0x58')][_0x165c('0x12d')][_0x165c('0xec')](_0x19dc4a)&&_0x500d3d['editing'][_0x165c('0x65')](_0x19dc4a);});}),this[_0x165c('0x6e')]=new _0xb322f0(this[_0x165c('0x6d')][_0x165c('0xf7')][_0x165c('0x6')],this[_0x165c('0x6d')]['locale']),this[_0x165c('0x3e')]=null,this[_0x165c('0x115')]=new Bt(this[_0x165c('0x6d')]),this[_0x165c('0xa4')]=new Map(),this[_0x165c('0xed')]=_0x500d3d[_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0x6a')),this[_0x165c('0xd8')]=new Set(),this[_0x165c('0x58')]=this['editor'][_0x165c('0xf7')],this[_0x165c('0x11a')]=new WeakMap(),this[_0x165c('0x75')]=!0x1,_0x500d3d[_0x165c('0xab')][_0x165c('0xd4')](_0x165c('0x7f'),_0x165c('0xd1')),this[_0x165c('0x106')]=_0x500d3d[_0x165c('0xab')][_0x165c('0x64')]('trackChanges.trackFormatChanges'),_0x500d3d[_0x165c('0xab')][_0x165c('0xd4')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x165c('0x116')]=_0x500d3d[_0x165c('0xab')][_0x165c('0x64')]('trackChanges.mergeNestedSuggestions'),this[_0x165c('0x1f')]=new _0x2bfc2f(_0x500d3d,this['_enabledCommands']),this[_0x4b62d1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4b62d1([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x30]);}[_0x165c('0xb0')](){const _0x16d3b2=this[_0x165c('0x6d')];_0x16d3b2['conversion'][_0x165c('0x102')](_0x165c('0xcd'))[_0x165c('0xa7')]({'model':_0x165c('0xd2'),'view':_0xf6e794=>{const {id:_0x2227bd,type:_0x3e8b40}=this[_0x165c('0x4d')](_0xf6e794[_0x165c('0x74')]),_0x3d4122=[_0x165c('0x139'),_0x165c('0x6f')+_0x3e8b40];let _0x452361=0xbb8;return this[_0x165c('0x11f')][_0x165c('0x18')](_0xf6e794[_0x165c('0x74')])&&(_0x3d4122[_0x165c('0x32')]('ck-suggestion-marker--active'),_0x452361=0xbc2),_0x165c('0x88')==_0x3e8b40&&(_0x452361+=0x5),{'classes':_0x3d4122,'attributes':{'data-suggestion':_0x2227bd},'priority':_0x452361};}}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0xe1'))[_0x165c('0x92')](_0x35285a=>{_0x35285a['on'](_0x165c('0xc6'),(_0x3ac966,_0x44f1df,_0x13f1ed)=>{if(!_0x13f1ed[_0x165c('0xc0')][_0x165c('0x1d')])return;const _0x2e5ce2=_0x44f1df[_0x165c('0x135')];if(!_0x2e5ce2)return;const _0x2992ae=_0x13f1ed['mapper'][_0x165c('0xee')](_0x2e5ce2);_0x16d3b2['model'][_0x165c('0x6')][_0x165c('0x42')](_0x2e5ce2)&&_0x2992ae&&!_0x2992ae[_0x165c('0x104')](_0x165c('0x117'))&&_0x2992ae['is'](_0x165c('0x13b'))&&_0x1836ce(_0x2992ae,_0x13f1ed[_0x165c('0x129')]);},{'priority':_0x165c('0xde')});}),_0x16d3b2['conversion'][_0x165c('0x102')](_0x165c('0xe1'))[_0x165c('0xa7')]({'model':'suggestion','view':(_0x96c2fa,_0xfd5a5e)=>{if(!_0xfd5a5e[_0x165c('0xc0')][_0x165c('0x1d')])return null;const {type:_0x1df50d}=this[_0x165c('0x4d')](_0x96c2fa[_0x165c('0x74')]);return{'classes':[_0x165c('0x139'),'ck-suggestion-marker-'+_0x1df50d],'priority':0xbb8};}});const _0x1a73a8=({showActiveMarkers:_0x2b886c=!0x0}={})=>(_0x2f40dd,_0x1f37da,_0x925c57)=>{if(!_0x1f37da['item'])return;if(_0x1f37da[_0x165c('0x135')]['is']('selection'))return void _0x925c57[_0x165c('0x45')][_0x165c('0x136')](_0x1f37da[_0x165c('0x135')],_0x2f40dd[_0x165c('0xbf')]);const _0x49c7bc=_0x925c57[_0x165c('0x77')][_0x165c('0xee')](_0x1f37da['item']);if(!(_0x1f37da[_0x165c('0x135')]['is'](_0x165c('0x4c'))&&_0x16d3b2[_0x165c('0xf7')][_0x165c('0x6')][_0x165c('0x1a')](_0x1f37da[_0x165c('0x135')])&&!_0x49c7bc['getCustomProperty'](_0x165c('0x4'))))return;const {id:_0x2e8e7b}=this[_0x165c('0x4d')](_0x1f37da[_0x165c('0x74')]);_0x925c57[_0x165c('0x129')][_0x165c('0xc1')]([_0x165c('0x139'),_0x165c('0xc5')],_0x49c7bc),_0x925c57[_0x165c('0x129')][_0x165c('0xea')](_0x165c('0x111'),_0x2e8e7b,_0x49c7bc),_0x925c57[_0x165c('0x77')][_0x165c('0x36')](_0x49c7bc,_0x1f37da['markerName']),_0x2b886c&&(this['activeMarkers'][_0x165c('0x18')](_0x1f37da[_0x165c('0x74')])?_0x925c57[_0x165c('0x129')]['addClass'](_0x165c('0x31'),_0x49c7bc):_0x925c57['writer'][_0x165c('0x54')](_0x165c('0x31'),_0x49c7bc));for(const _0x2a82b9 of _0x16d3b2['model']['createRangeIn'](_0x1f37da['item'])['getItems']())_0x925c57[_0x165c('0x45')][_0x165c('0x136')](_0x2a82b9,_0x2f40dd[_0x165c('0xbf')]);_0x925c57['consumable'][_0x165c('0x136')](_0x1f37da[_0x165c('0x135')],_0x2f40dd[_0x165c('0xbf')]);};_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0xe1'))['add'](_0x238aae=>{_0x238aae['on'](_0x165c('0x12e'),(_0x50fc91,_0x1dbfb8,_0x1adba9)=>{_0x1adba9[_0x165c('0xc0')][_0x165c('0x1d')]&&_0x1a73a8({'showActiveMarkers':!0x1})(_0x50fc91,_0x1dbfb8,_0x1adba9);},{'priority':'highest'});}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')]('dataDowncast')[_0x165c('0x89')]({'model':_0x165c('0xd2'),'view':(_0x4134f5,_0x362987)=>_0x362987[_0x165c('0xc0')][_0x165c('0x1d')]?null:{'group':_0x165c('0xd2'),'name':_0x4134f5[_0x165c('0x59')](0xb)}}),_0x16d3b2['conversion'][_0x165c('0x102')](_0x165c('0x73'))[_0x165c('0xdc')]({'view':{'name':_0x165c('0xd2'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3afd3d,{writer:_0x474b10})=>{let _0x2da720=_0x165c('0x29')+_0x3afd3d[_0x165c('0xb5')](_0x165c('0x4b'))+':'+_0x3afd3d['getAttribute']('id');return _0x3afd3d[_0x165c('0xb5')](_0x165c('0x76'))&&(_0x2da720+=':'+_0x3afd3d[_0x165c('0xb5')](_0x165c('0x76'))),_0x474b10[_0x165c('0x90')](_0x165c('0x1b'),{'data-name':_0x2da720});}}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0x73'))[_0x165c('0x15')]({'view':_0x165c('0xd2')}),_0x16d3b2[_0x165c('0x49')][_0x165c('0x102')](_0x165c('0xcd'))[_0x165c('0x92')](_0xc4e935=>{_0xc4e935['on'](_0x165c('0x12e'),_0x1a73a8(),{'priority':_0x165c('0xde')});}),_0x16d3b2[_0x165c('0x49')]['for']('editingDowncast')[_0x165c('0x92')](_0x64d013=>{_0x64d013['on'](_0x165c('0x94'),(_0x5e33c4,_0x5713bd,_0x48acb9)=>{const _0x32eb38=_0x48acb9[_0x165c('0x77')][_0x165c('0xf8')](_0x5713bd[_0x165c('0x74')]);if(_0x32eb38)for(const _0x13b11a of _0x32eb38)_0x13b11a[_0x165c('0x104')](_0x165c('0x4'))||(_0x48acb9[_0x165c('0x129')][_0x165c('0x54')]([_0x165c('0x139'),_0x165c('0xc5'),_0x165c('0x31')],_0x13b11a),_0x48acb9[_0x165c('0x129')][_0x165c('0x10')](_0x165c('0x111'),_0x13b11a),_0x48acb9[_0x165c('0x77')][_0x165c('0x95')](_0x13b11a,_0x5713bd[_0x165c('0x74')]));},{'priority':_0x165c('0xde')});}),_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0xba')](_0x415741=>{let _0x566dbe=!0x1;const _0x209704=Array[_0x165c('0x97')](_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0x28')]['getChangedMarkers']()),_0x573eec=new Set();for(const {name:_0x52ab0a,data:_0x591645}of _0x209704){const {group:_0x1a3580,type:_0x2350ba,id:_0x114ee8}=this[_0x165c('0x4d')](_0x52ab0a);if(_0x165c('0xd2')!==_0x1a3580)continue;const _0x2317a8=this[_0x165c('0xa4')][_0x165c('0x64')](_0x114ee8);if(null!=_0x591645['newRange']){'formatInline'==_0x2350ba&&(_0x566dbe=_0x566dbe||$t(_0x591645[_0x165c('0xef')],_0x52ab0a,_0x415741,_0x16d3b2['model'][_0x165c('0x6')]));if(_0x591645['newRange'][_0x165c('0xbe')]||'$graveyard'==_0x591645[_0x165c('0xef')]['root'][_0x165c('0x101')]||_0x165c('0x47')==_0x2350ba&&!Rt(_0x591645['newRange'])||_0x165c('0x88')==_0x2350ba&&!(!Mt(_0x1e3884=_0x591645[_0x165c('0xef')])&&!function(_0x3c3baa){return _0x3c3baa['start'][_0x165c('0xe5')]==_0x3c3baa['end'][_0x165c('0xd0')]&&_0x3c3baa[_0x165c('0x113')][_0x165c('0xe0')];}(_0x1e3884)))_0x415741[_0x165c('0xaf')](_0x52ab0a),_0x566dbe=!0x0;else{if(!_0x2317a8||!_0x2317a8['isInContent'])continue;_0x573eec[_0x165c('0x92')](_0x2317a8);}}}var _0x1e3884;return _0x573eec[_0x165c('0x3a')]>0x0&&(_0x566dbe=!!this['_joinWithAdjacentSuggestions'](_0x573eec)||_0x566dbe),_0x566dbe;}),_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0xba')](_0x3a0df7=>{let _0x58a7b7=!0x1;for(const _0x19ec04 of _0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')][_0x165c('0x28')]['getChanges']()){if('insert'!=_0x19ec04['type'])continue;const _0x4078b1=_0x19ec04[_0x165c('0xb8')][_0x165c('0x134')](_0x19ec04['length']);if(_0x4078b1[_0x165c('0xe0')])for(const _0x25ffe1 of this[_0x165c('0xa4')][_0x165c('0x9b')]()){if(_0x25ffe1[_0x165c('0x8d')]||!_0x25ffe1[_0x165c('0x35')])continue;if('formatBlock'!=_0x25ffe1[_0x165c('0x5b')])continue;const _0x46eadf=_0x25ffe1[_0x165c('0x38')]();if(_0x46eadf[_0x165c('0x113')]['parent']!=_0x46eadf[_0x165c('0x5')][_0x165c('0xe5')]&&_0x46eadf[_0x165c('0x5')]['isEqual'](_0x19ec04['position'])){const _0x796b5c=_0x16d3b2['model'][_0x165c('0x140')](_0x46eadf[_0x165c('0x113')],_0x4078b1);_0x3a0df7[_0x165c('0x2c')](_0x25ffe1[_0x165c('0x123')](),{'range':_0x796b5c}),_0x58a7b7=!0x0;}}}return _0x58a7b7;}),_0x16d3b2['model'][_0x165c('0x12d')]['on'](_0x165c('0xfb'),(_0x13cf2c,_0xcf5310,_0x2478d9)=>{if(null==_0x2478d9){const {id:_0x27e764}=this[_0x165c('0x4d')](_0xcf5310[_0x165c('0xbf')]),_0x273709=this[_0x165c('0xa4')][_0x165c('0x64')](_0x27e764);_0x273709&&_0x273709[_0x165c('0x107')](_0xcf5310[_0x165c('0xbf')]);}}),_0x16d3b2[_0x165c('0xf7')][_0x165c('0x20')]['on'](_0x165c('0x2f'),()=>{const _0x767566=Array[_0x165c('0x97')](_0x16d3b2['model']['document'][_0x165c('0x28')][_0x165c('0x133')]())['filter'](_0x4dd306=>_0x165c('0xd2')===this[_0x165c('0x4d')](_0x4dd306[_0x165c('0xbf')])['group']);if(0x0===_0x767566[_0x165c('0x62')])return;_0x767566[_0x165c('0x96')]((_0x25377c,_0x22adfb)=>{const _0x2cf584=_0x25377c[_0x165c('0xca')][_0x165c('0x131')],_0x239241=_0x22adfb[_0x165c('0xca')][_0x165c('0x131')];return null===_0x2cf584&&null===_0x239241?0x0:null===_0x2cf584&&null!==_0x239241?-0x1:null!==_0x2cf584&&null===_0x239241?0x1:_0x2cf584['start'][_0x165c('0x30')](_0x239241[_0x165c('0x113')])?-0x1:0x1;});const _0x350fff=new Set(),_0x17c527=new Set();for(const {name:_0x58e395,data:_0x53bf73}of _0x767566){const {id:_0x50d725}=this[_0x165c('0x4d')](_0x58e395);if(null===_0x53bf73[_0x165c('0x131')]){const _0x4a588f=this[_0x165c('0x70')](_0x58e395);_0x17c527[_0x165c('0x92')](_0x4a588f);}else{const _0x3e67f1=this[_0x165c('0xa4')]['get'](_0x50d725);null!==_0x53bf73['newRange']||_0x3e67f1[_0x165c('0x35')]?(_0x350fff[_0x165c('0x92')](_0x3e67f1[_0x165c('0x12')]),_0x17c527[_0x165c('0x92')](_0x3e67f1)):this[_0x165c('0xaa')](_0x3e67f1);}}_0x17c527[_0x165c('0x3a')]>0x0&&this['_refreshSuggestionsChain'](_0x17c527);for(const _0x24e74a of _0x350fff)this['fire']('suggestionChanged',_0x24e74a);}),_0x16d3b2[_0x165c('0xf7')]['on'](_0x165c('0x57'),(_0x3be905,_0x1b28f)=>{const _0x47a40c=_0x1b28f[0x0];if(!this[_0x165c('0xa4')]['size'])return;if(!_0x47a40c[_0x165c('0x7a')])return;if(_0x47a40c[_0x165c('0x122')]['isUndo']||!_0x47a40c['batch'][_0x165c('0x86')])return;let _0x4e0f78,_0x59b1d3;switch(_0x47a40c[_0x165c('0x5b')]){case _0x165c('0x34'):_0x4e0f78=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x110')](_0x47a40c[_0x165c('0xb8')]),_0x59b1d3=_0x4e0f78[_0x165c('0x134')](_0x47a40c[_0x165c('0x9f')]);break;case _0x165c('0x7'):_0x4e0f78=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x110')](_0x47a40c[_0x165c('0x108')]),_0x59b1d3=_0x16d3b2['model'][_0x165c('0x110')](_0x47a40c[_0x165c('0xf4')]);break;case _0x165c('0x43'):_0x4e0f78=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x110')](_0x47a40c['targetPosition']),_0x59b1d3=_0x4e0f78['getShiftedBy'](_0x47a40c[_0x165c('0x9f')]);break;default:return;}const _0x2f0b04=_0x16d3b2['model'][_0x165c('0x140')](_0x4e0f78,_0x59b1d3);_0x16d3b2[_0x165c('0xf7')][_0x165c('0x41')](()=>{for(const {suggestion:_0x2f24c0,meta:_0x48a443}of this[_0x165c('0xeb')](_0x2f0b04)){if(_0x2f24c0[_0x165c('0x8d')])continue;if(_0x165c('0xe')==_0x2f24c0[_0x165c('0x5b')])continue;const _0x5ce236=_0x2f24c0[_0x165c('0xca')]&&_0x2f24c0[_0x165c('0xca')]['multipleBlocks'];('formatBlock'!=_0x2f24c0[_0x165c('0x5b')]||_0x165c('0x7')==_0x47a40c[_0x165c('0x5b')]&&!_0x5ce236)&&(_0x48a443[_0x165c('0xbb')]||_0x165c('0xa2')==_0x2f24c0[_0x165c('0x5b')]&&_0x48a443['isOwn']||_0x2f24c0['getFirstRange']()[_0x165c('0x27')](_0x2f0b04)&&this[_0x165c('0x3f')](_0x2f24c0,_0x4e0f78,_0x59b1d3));}});},{'priority':'lowest'}),_0x16d3b2[_0x165c('0xf7')]['on']('deleteContent',(_0x6dd9d9,_0x3e05a4)=>{const _0x5c2e3c=_0x3e05a4[0x0],_0x35035d=_0x3e05a4[0x1];if(_0x35035d&&_0x35035d[_0x165c('0xcc')])return;if(this[_0x165c('0x75')])return;if(!this[_0x165c('0x1f')]['value'])return;if(_0x5c2e3c[_0x165c('0xbe')])return;const _0x4e55dc=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x6')],{start:_0x1ecb4f,end:_0x1bee43}=_0x5c2e3c[_0x165c('0x38')](),_0xbdd2e3=_0x1ecb4f[_0x165c('0xa3')]&&_0x4e55dc[_0x165c('0xc2')](_0x1ecb4f[_0x165c('0xa3')])?null:_0x4e55dc[_0x165c('0xb6')](_0x1ecb4f,_0x165c('0x125')),_0x520968=_0x1bee43[_0x165c('0xd0')]&&_0x4e55dc[_0x165c('0xc2')](_0x1bee43[_0x165c('0xd0')])?null:_0x4e55dc[_0x165c('0xb6')](_0x1bee43,_0x165c('0x85')),_0x28e195=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x140')](_0xbdd2e3?_0xbdd2e3[_0x165c('0x113')]:_0x1ecb4f,_0x520968?_0x520968[_0x165c('0x5')]:_0x1bee43);_0x16d3b2[_0x165c('0xf7')][_0x165c('0x41')](_0x2d9f5f=>{this[_0x165c('0x112')](_0x28e195);const _0x52620b=_0x16d3b2[_0x165c('0xf7')][_0x165c('0x6')]['getNearestSelectionRange'](_0x28e195[_0x165c('0x113')]);_0x5c2e3c['is'](_0x165c('0x138'))?_0x2d9f5f['setSelection'](_0x52620b):_0x5c2e3c[_0x165c('0x2b')](_0x52620b);}),_0x6dd9d9[_0x165c('0xc8')]();},{'priority':_0x5d330b[_0x165c('0x52')]+0xa}),_0x16d3b2[_0x165c('0xf7')]['on'](_0x165c('0xac'),(_0x1387e8,_0x3fd8ff)=>{const _0x404faa=_0x3fd8ff[_0x3fd8ff[_0x165c('0x62')]-0x1];_0x404faa&&_0x404faa['forceDefaultExecution']||this[_0x165c('0x75')]||this[_0x165c('0x1f')][_0x165c('0x127')]&&(_0x16d3b2[_0x165c('0xf7')][_0x165c('0x41')](()=>{let _0x96dedd=_0x16d3b2[_0x165c('0xf7')][_0x165c('0xac')](_0x3fd8ff[0x0],_0x3fd8ff[0x1],_0x3fd8ff[0x2],{'forceDefaultExecution':!0x0});if(!_0x96dedd)return;_0x1387e8[_0x165c('0xb3')]=_0x96dedd[_0x165c('0xfd')]();const _0x1598e0=_0x96dedd['end'][_0x165c('0xd0')],_0xb4b2a7=_0x16d3b2[_0x165c('0xf7')]['schema'];_0x1598e0&&_0xb4b2a7[_0x165c('0x1a')](_0x1598e0)&&!_0xb4b2a7[_0x165c('0x42')](_0x1598e0)&&(_0x96dedd=_0x16d3b2[_0x165c('0xf7')]['createRange'](_0x96dedd[_0x165c('0x113')],_0x16d3b2[_0x165c('0xf7')]['createPositionAt'](_0x1598e0,_0x165c('0x5')))),this[_0x165c('0xb')](_0x96dedd);}),_0x1387e8[_0x165c('0xc8')]());},{'priority':_0x165c('0xde')}),this[_0x165c('0x6d')][_0x165c('0x98')][_0x165c('0x92')](_0x165c('0xdb'),this['trackChangesCommand']),this[_0x165c('0xf9')](_0x165c('0xdb'));const _0x43e317=new _0x7f50d6(_0x16d3b2,this[_0x165c('0xa4')]);_0x16d3b2[_0x165c('0x98')]['add'](_0x165c('0x8e'),_0x43e317),this[_0x165c('0xf9')]('acceptSuggestion');const _0x53c5f5=new _0x26413d(_0x16d3b2,this[_0x165c('0xa4')]);_0x16d3b2[_0x165c('0x98')][_0x165c('0x92')](_0x165c('0xf0'),_0x53c5f5),this[_0x165c('0xf9')](_0x165c('0xf0')),_0x16d3b2[_0x165c('0x98')][_0x165c('0x92')]('acceptAllSuggestions',new _0x4fd953(_0x16d3b2,_0x43e317,this['_suggestions'])),this[_0x165c('0xf9')](_0x165c('0x11e')),_0x16d3b2[_0x165c('0x98')][_0x165c('0x92')](_0x165c('0x9c'),new _0x4fd953(_0x16d3b2,_0x53c5f5,this[_0x165c('0xa4')])),this[_0x165c('0xf9')](_0x165c('0x9c')),_0x16d3b2[_0x165c('0x98')]['add'](_0x165c('0xdd'),new _0x1dabf9(_0x16d3b2,_0x43e317,this[_0x165c('0xa4')])),this[_0x165c('0xf9')](_0x165c('0xdd')),_0x16d3b2['commands'][_0x165c('0x92')](_0x165c('0xd'),new _0x1dabf9(_0x16d3b2,_0x53c5f5,this['_suggestions'])),this[_0x165c('0xf9')]('discardSelectedSuggestions');const _0x3f0582=_0x16d3b2[_0x165c('0x7b')][_0x165c('0x64')]('CommentsRepository');this[_0x165c('0x4a')](_0x3f0582,_0x165c('0x13d'),(_0x237014,{threadId:_0x427911})=>{const _0x419c94=this[_0x165c('0xa4')][_0x165c('0x64')](_0x427911);_0x419c94&&_0x419c94[_0x165c('0x26')]&&0x1===_0x419c94[_0x165c('0x26')][_0x165c('0x62')]&&this['_updateSuggestionData'](_0x427911,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3f0582,_0x165c('0x24'),(_0x2e8bce,{threadId:_0x474f0d})=>{const _0x2e8186=this['_suggestions'][_0x165c('0x64')](_0x474f0d);_0x2e8186&&_0x2e8186[_0x165c('0x26')]&&!_0x2e8186[_0x165c('0x26')]['length']&&this[_0x165c('0xb1')](_0x474f0d,{'hasComments':!0x1});},{'priority':_0x165c('0xd9')});}set[_0x165c('0x82')](_0x2f4ad2){if(this['_adapter'])throw new _0xb2381e(_0x165c('0xb7'),this);this[_0x165c('0x3e')]=_0x2f4ad2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x49a1d6=!0x1,toJSON:_0x3aa831=!0x1}={}){const _0x5bd7d2=[];for(const _0x4eb332 of this[_0x165c('0xa4')]['values']())_0x49a1d6&&!_0x4eb332[_0x165c('0x35')]||_0x5bd7d2[_0x165c('0x32')](_0x4eb332);return _0x3aa831?_0x5bd7d2[_0x165c('0x13f')](_0x38a0ba=>_0x38a0ba[_0x165c('0x61')]()):_0x5bd7d2;}['getSuggestion'](_0x45fbbb){const _0x39fb8b=this[_0x165c('0xa4')]['get'](_0x45fbbb);if(!_0x39fb8b)throw new _0xb2381e(_0x165c('0x87'),this);return _0x39fb8b;}[_0x165c('0x103')](_0x5c1c3d){return this[_0x165c('0xa4')][_0x165c('0xec')](_0x5c1c3d);}['addSuggestionData'](_0x29695b){const {authorId:_0x4dec7a,id:_0xc95f3e,attributes:_0x393e9d}=_0x29695b,[_0x3dd382,_0x8cac8c]=_0x29695b[_0x165c('0x5b')][_0x165c('0x7')](':'),_0x2ef929=this[_0x165c('0xa4')][_0x165c('0x64')](_0xc95f3e)||this[_0x165c('0x137')](_0x3dd382,_0x8cac8c,_0xc95f3e,_0x4dec7a,_0x393e9d);if(this['_addThreadToSuggestion'](_0x2ef929),this[_0x165c('0x0')](_0x2ef929,_0x3dd382,_0x8cac8c||null,_0x4dec7a),_0x2ef929[_0x165c('0xa1')]=_0x29695b[_0x165c('0xa1')],_0x2ef929[_0x165c('0x66')]=!0x0,_0x393e9d&&_0x393e9d[_0x165c('0xd5')]){const _0xf32b8f=_0x393e9d[_0x165c('0xd5')],_0x5e87fb=this[_0x165c('0x99')](_0xf32b8f[_0x165c('0x118')]);_0x2ef929['authoredAt']=_0xf32b8f[_0x165c('0xa1')],_0x2ef929[_0x165c('0x13')]=_0x5e87fb,_0x2ef929['isExternal']=!0x0;}else _0x2ef929[_0x165c('0x83')]=_0x29695b['createdAt'];switch(_0x29695b[_0x165c('0xca')]&&(_0x2ef929['data']=_0x29695b['data']),_0x29695b[_0x165c('0x12a')]&&(_0x2ef929['attributes']=_0x29695b[_0x165c('0x12a')]),this[_0x165c('0x3e')]&&this[_0x165c('0x3e')][_0x165c('0xf')]||(_0x2ef929['_saved']=!0x0),this[_0x165c('0x11a')][_0x165c('0x64')](_0x2ef929)){case _0x165c('0x80'):this[_0x165c('0x11a')]['set'](_0x2ef929,_0x165c('0x3b'));break;case _0x165c('0x93'):_0x2ef929['isInContent']?(this[_0x165c('0x13e')](new Set([_0x2ef929])),this[_0x165c('0xad')](new Set([_0x2ef929])),this[_0x165c('0x11a')][_0x165c('0x69')](_0x2ef929,_0x165c('0x109')),this[_0x165c('0x60')](_0x165c('0x63'),_0x2ef929)):this[_0x165c('0x11a')][_0x165c('0x69')](_0x2ef929,'removed');}return _0x2ef929;}['acceptSuggestion'](_0x43352b){this['forceDefaultExecution'](()=>{this['editor'][_0x165c('0xf7')][_0x165c('0x41')](()=>{for(const _0x5a33a5 of _0x43352b[_0x165c('0x10f')]())_0x5a33a5['accept']();});});}['discardSuggestion'](_0x18ffb4){this[_0x165c('0xcc')](()=>{this[_0x165c('0x6d')][_0x165c('0xf7')][_0x165c('0x41')](()=>{for(const _0x5d1998 of _0x18ffb4[_0x165c('0x10f')]())_0x5d1998[_0x165c('0x17')]();});});}['enableCommand'](_0x170ed1,_0x131127){const _0x524f67=this[_0x165c('0x6d')][_0x165c('0x98')]['get'](_0x170ed1);if(!_0x524f67)throw new _0xb2381e(_0x165c('0xa5'),this,{'commandName':_0x170ed1});this['_enabledCommands'][_0x165c('0x92')](_0x524f67),_0x131127&&_0x524f67['on'](_0x165c('0x9e'),(_0x161cc1,_0x2cc8aa)=>{this[_0x165c('0x1f')][_0x165c('0x127')]&&(this[_0x165c('0x75')]||_0x2cc8aa['length']>0x0&&_0x2cc8aa[_0x2cc8aa[_0x165c('0x62')]-0x1]&&_0x2cc8aa[_0x2cc8aa[_0x165c('0x62')]-0x1][_0x165c('0xcc')]||(_0x131127((..._0x37fa5f)=>_0x524f67[_0x165c('0x9e')](..._0x37fa5f,{'forceDefaultExecution':!0x0}),..._0x2cc8aa),_0x161cc1[_0x165c('0xc8')]()));},{'priority':_0x165c('0xde')});}['forceDefaultExecution'](_0xfcaece){let _0x4aea43,_0x22b955;const _0x349223=this['_isForcedDefaultExecutionBlock'];this[_0x165c('0x75')]=!0x0;try{_0x4aea43=_0xfcaece();}catch(_0x52d254){_0x22b955=_0x52d254;}return _0x349223||(this[_0x165c('0x75')]=!0x1),_0x22b955&&_0xb2381e[_0x165c('0x5f')](_0x22b955,this),_0x4aea43;}[_0x165c('0xb')](_0x3d72f6,_0x56ab67=null,_0xb37ecc={}){if(_0x3d72f6[_0x165c('0xbe')])return null;const _0x3ab9ee=this['editor'][_0x165c('0x7b')]['get'](_0x165c('0xfa'))['me'];for(const {suggestion:_0x3b7468,meta:_0x31ee12}of this[_0x165c('0xeb')](_0x3d72f6,_0x165c('0xa2')))if(_0x31ee12[_0x165c('0x10a')]){if(!_0x31ee12[_0x165c('0x9')]){if(_0x31ee12['containsRangeInObject']){if(!this[_0x165c('0x116')]||!Ot(_0x3b7468,_0xb37ecc))continue;return _0x3b7468;}if(Ot(_0x3b7468,_0xb37ecc))return _0x3b7468;this['_breakSuggestionMarker'](_0x3b7468,_0x3d72f6[_0x165c('0x113')],_0x3d72f6[_0x165c('0x5')]);break;}if(_0x56ab67==_0x3b7468['subType']&&Ot(_0x3b7468,_0xb37ecc)){const _0x333d7a=_0x3b7468['getFirstRange']();return _0x333d7a[_0x165c('0x113')][_0x165c('0xd7')](_0x3d72f6[_0x165c('0x5')])?this['_setSuggestionRange'](_0x3b7468,this[_0x165c('0x58')][_0x165c('0x140')](_0x3d72f6[_0x165c('0x113')],_0x333d7a['end'])):this['_setSuggestionRange'](_0x3b7468,this[_0x165c('0x58')]['createRange'](_0x333d7a['start'],_0x3d72f6[_0x165c('0x5')])),_0x3b7468;}}const _0x3cfdf9=_0x45f81c(),_0x63be43=_0x3ab9ee['id'],_0x553a73=_0x56ab67?_0x165c('0x53')+_0x56ab67:_0x165c('0xa2'),_0x5873d6=this[_0x165c('0xb9')]({'id':_0x3cfdf9,'type':_0x553a73,'createdAt':new Date(),'authorId':_0x63be43,'attributes':_0xb37ecc});return this[_0x165c('0x50')](_0x553a73,_0x3cfdf9,_0x63be43,_0x3d72f6),_0x5873d6;}['markMultiRangeInsertion'](_0x290ba3,_0x1a5a93=_0x165c('0x10c'),_0x3182c5={}){const _0x2bfa17=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x385f55=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0xa2'),_0x1a5a93,_0x165c('0x1c'));for(const _0x3094c5 of this[_0x165c('0xb2')]())if(_0x3094c5['author']['id']==_0x2bfa17['id']&&'insertion'==_0x3094c5['type']&&_0x3094c5[_0x165c('0x142')]==_0x1a5a93&&Ot(_0x3094c5,_0x3182c5)&&(_0x385f55(_0x3094c5['getRanges'](),_0x290ba3)||_0x385f55(_0x290ba3,_0x3094c5[_0x165c('0x6b')]()))){for(const _0x14dc09 of _0x290ba3)_0x3094c5[_0x165c('0x128')](_0x14dc09);return _0x3094c5;}for(const {suggestion:_0x33070f,meta:_0x3e8137}of this[_0x165c('0xeb')](_0x290ba3,'insertion')){if(!_0x3e8137[_0x165c('0x10a')])continue;if(!this['_mergeNestedSuggestions']&&_0x3e8137[_0x165c('0xbb')])continue;if(!Ot(_0x33070f,_0x3182c5))continue;let _0x4a4d10=!0x0;for(const _0x25e659 of _0x33070f['getRanges']())for(const _0x2888ef of _0x290ba3)if(!_0x25e659[_0x165c('0x27')](_0x2888ef)){_0x4a4d10=!0x1;break;}if(_0x4a4d10)return _0x33070f;}const _0x25f312=_0x45f81c(),_0x59fcae=_0x2bfa17['id'],_0x1ab503='insertion:'+_0x1a5a93,_0x26cc95=this[_0x165c('0xb9')]({'id':_0x25f312,'type':_0x1ab503,'createdAt':new Date(),'authorId':_0x59fcae,'attributes':_0x3182c5});for(const _0x69ae77 of _0x290ba3)this[_0x165c('0x50')](_0x1ab503,_0x25f312,_0x59fcae,_0x69ae77,_0x46695f[_0x165c('0x119')]());return _0x26cc95;}[_0x165c('0x130')](_0x2b368e,_0x88c73d,_0x29de74=null,_0x329ce9={}){if(_0x29de74=_0x29de74||Nt(_0x88c73d),_0x2b368e[_0x165c('0xbe')])return null;if(_0x165c('0x8f')===this[_0x165c('0x106')]){const _0x27e37f=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0xe'),_0x29de74,'accept');return this[_0x165c('0xcc')](()=>_0x27e37f([_0x2b368e],_0x88c73d,_0x329ce9)),null;}const _0x355676=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x566a85=[];if('always'!==this[_0x165c('0x106')])for(const {suggestion:_0x3c0ff9,meta:_0xdc1b60}of this[_0x165c('0xeb')](_0x2b368e,_0x165c('0xa2')))_0xdc1b60[_0x165c('0x10a')]&&!_0xdc1b60[_0x165c('0xb4')]&&_0x566a85[_0x165c('0x32')](..._0x3c0ff9[_0x165c('0x6b')]());const _0x6f16aa=function(_0xe24b89,_0x28e817){const _0xa9965b=[];for(const _0x263127 of _0x28e817){const _0x106517=_0xe24b89['getIntersection'](_0x263127);_0x106517&&_0xa9965b[_0x165c('0x32')](_0x106517);}return _0xa9965b;}(_0x2b368e,_0x566a85),_0x3402f7=function(_0x859ecc,_0x5431ec){const _0x1d30cb=[_0x859ecc];for(const _0x1e661f of _0x5431ec){let _0x58e043=0x0;for(;_0x58e043<_0x1d30cb[_0x165c('0x62')];){const _0x3b6473=_0x1d30cb[_0x58e043]['getDifference'](_0x1e661f);_0x1d30cb['splice'](_0x58e043,0x1,..._0x3b6473),_0x58e043+=_0x3b6473[_0x165c('0x62')];}}return _0x1d30cb;}(_0x2b368e,_0x566a85);_0x6f16aa[_0x165c('0x62')]&&this[_0x165c('0x58')][_0x165c('0x41')](()=>{for(const _0x208773 of _0x6f16aa){const _0x2b316a=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0xe'),_0x29de74,_0x165c('0x9d'));this[_0x165c('0xcc')](()=>_0x2b316a([_0x208773],_0x88c73d,_0x329ce9));}});for(const _0x14a262 of _0x3402f7){let _0x50176d=null,_0x26e864=_0x14a262['start'],_0x15c488=_0x14a262[_0x165c('0x5')];for(const {suggestion:_0x17ac15,meta:_0x20bc00}of this[_0x165c('0xeb')](_0x14a262,'formatInline')){if(!_0x20bc00[_0x165c('0x10a')])continue;if(_0x17ac15[_0x165c('0x142')]!=_0x29de74)continue;if(!Ot(_0x17ac15,_0x329ce9))continue;const _0x28735d=_0x17ac15[_0x165c('0x38')]();if(_0x28735d[_0x165c('0x27')](_0x14a262,!0x0))return null;_0x26e864=_0x26e864['isBefore'](_0x28735d['start'])?_0x26e864:_0x28735d[_0x165c('0x113')],_0x15c488=_0x15c488[_0x165c('0xe4')](_0x28735d[_0x165c('0x5')])?_0x15c488:_0x28735d[_0x165c('0x5')],_0x50176d?_0x28735d[_0x165c('0x113')][_0x165c('0x30')](_0x50176d['getFirstRange']()[_0x165c('0x113')])?(_0x50176d['removeMarkers'](),_0x50176d=_0x17ac15):_0x17ac15[_0x165c('0x120')]():_0x50176d=_0x17ac15;}const _0x15c7aa=this['_model'][_0x165c('0x140')](_0x26e864,_0x15c488);if(_0x50176d)this[_0x165c('0x37')](_0x50176d,_0x15c7aa);else{const _0xb8bbd6=_0x45f81c(),_0x521134=_0x355676['id'];this[_0x165c('0xb9')]({'id':_0xb8bbd6,'type':_0x165c('0xe2')+_0x29de74,'data':_0x88c73d,'createdAt':new Date(),'authorId':_0x521134,'attributes':_0x329ce9}),this[_0x165c('0x50')]('formatInline:'+_0x29de74,_0xb8bbd6,_0x521134,_0x15c7aa);}}return null;}['markBlockFormat'](_0x3f7650,_0xb62225,_0x5c774f=[],_0x382c08=null,_0x27fec2={}){_0xb62225['formatGroupId']||(_0xb62225[_0x165c('0x2d')]=_0xb62225['commandName']),_0xb62225[_0x165c('0x10e')]=_0x3f7650['is'](_0x165c('0x12c')),_0x382c08=_0x382c08||Nt(_0xb62225);const _0x4bd17e=_0x5c774f['map'](_0x7b7227=>jt(_0x7b7227,this[_0x165c('0x58')])),_0x10538b=_0x3f7650['is'](_0x165c('0x12c'))?_0x3f7650:jt(_0x3f7650,this[_0x165c('0x58')]);if('never'===this[_0x165c('0x106')]){const _0x2a139d=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0x47'),_0x382c08,_0x165c('0x9d'));return this[_0x165c('0xcc')](()=>_0x2a139d([_0x10538b],_0xb62225,_0x27fec2)),null;}_0x4bd17e[_0x165c('0x32')](_0x10538b);let _0x2f6f4e=!0x0;for(const _0x1de5c3 of _0x4bd17e)if(!this[_0x165c('0xf6')](_0x1de5c3)){_0x2f6f4e=!0x1;break;}if(_0x2f6f4e&&_0x165c('0x11b')!==this['_trackFormatChanges']){const _0x3fa504=this['_suggestionFactory']['getSuggestionCallback'](_0x165c('0x47'),_0x382c08,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x3fa504([_0x10538b],_0xb62225,_0x27fec2)),null;}let _0xb60310=null,_0xbbbfe=_0x10538b[_0x165c('0x113')],_0x47b11d=_0x10538b[_0x165c('0x5')];for(const {suggestion:_0xa6ed5a,meta:_0x150ed0}of this[_0x165c('0xeb')](_0x10538b,_0x165c('0x47'))){if(!_0x150ed0[_0x165c('0x10a')])continue;if(_0x150ed0['isNextTo']||_0x150ed0[_0x165c('0xbb')]||_0x150ed0[_0x165c('0xb4')])continue;if(_0xa6ed5a[_0x165c('0xca')][_0x165c('0x2d')]!=_0xb62225[_0x165c('0x2d')])continue;if(!Ot(_0xa6ed5a,_0x27fec2))continue;const _0x1ac592=_0xa6ed5a[_0x165c('0x38')]();if(_0xa6ed5a[_0x165c('0x142')]==_0x382c08){if(_0x1ac592[_0x165c('0x27')](_0x10538b,!0x0))return null;_0xbbbfe=_0xbbbfe[_0x165c('0x30')](_0x1ac592['start'])?_0xbbbfe:_0x1ac592['start'],_0x47b11d=_0x47b11d['isAfter'](_0x1ac592[_0x165c('0x5')])?_0x47b11d:_0x1ac592[_0x165c('0x5')],_0xb60310?_0x1ac592[_0x165c('0x113')][_0x165c('0x30')](_0xb60310[_0x165c('0x38')]()[_0x165c('0x113')])?(_0xb60310[_0x165c('0x120')](),_0xb60310=_0xa6ed5a):_0xa6ed5a['removeMarkers']():_0xb60310=_0xa6ed5a;}else{const _0x2458aa=_0x10538b[_0x165c('0x7c')](_0x1ac592);this['_cutOutSuggestionMarker'](_0xa6ed5a,_0x2458aa);}}const _0x411e8d=this['editor']['plugins'][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x49f084=_0x45f81c(),_0x32e85c=_0x411e8d['id'];if(_0xb60310)return this[_0x165c('0x37')](_0xb60310,this['_model']['createRange'](_0xbbbfe,_0x47b11d)),_0xb60310;{const _0xa5e486=this[_0x165c('0xb9')]({'id':_0x49f084,'type':_0x165c('0x79')+_0x382c08,'data':_0xb62225,'createdAt':new Date(),'authorId':_0x32e85c,'attributes':_0x27fec2});return this[_0x165c('0x50')](_0x165c('0x79')+_0x382c08,_0x49f084,_0x32e85c,this[_0x165c('0x58')][_0x165c('0x140')](_0xbbbfe,_0x47b11d)),_0xa5e486;}}[_0x165c('0x33')](_0x4d2503,_0x2cd730,_0x3bd6b7=[],_0x122121=null,_0xb60549={}){_0x2cd730[_0x165c('0x2d')]||(_0x2cd730[_0x165c('0x2d')]=_0x2cd730[_0x165c('0x12b')]);const _0x558693=_0x4d2503[0x0];_0x2cd730['multipleBlocks']=_0x558693['is']('range'),_0x122121=_0x122121||Nt(_0x2cd730);const _0x53aa60=_0x3bd6b7[_0x165c('0x13f')](_0x3b6187=>jt(_0x3b6187,this['_model'])),_0x1d183=_0x558693['is'](_0x165c('0x12c'))?_0x4d2503:_0x4d2503[_0x165c('0x13f')](_0x3b4754=>jt(_0x3b4754,this[_0x165c('0x58')]));if(_0x165c('0x8f')===this['_trackFormatChanges']){const _0x253258=this[_0x165c('0x115')]['getSuggestionCallback'](_0x165c('0x47'),_0x122121,_0x165c('0x9d'));return this[_0x165c('0xcc')](()=>_0x253258(_0x1d183,_0x2cd730,_0xb60549)),null;}_0x53aa60[_0x165c('0x32')](..._0x1d183);let _0x183c5d=!0x0;for(const _0x24e30e of _0x53aa60)if(!this[_0x165c('0xf6')](_0x24e30e)){_0x183c5d=!0x1;break;}if(_0x183c5d&&_0x165c('0x11b')!==this['_trackFormatChanges']){const _0x43e6e9=this[_0x165c('0x115')]['getSuggestionCallback']('formatBlock',_0x122121,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x43e6e9(_0x1d183,_0x2cd730,_0xb60549)),null;}const _0x26daa5=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'];for(const _0x16b001 of this[_0x165c('0xb2')]()){if(_0x16b001[_0x165c('0x13')]['id']!=_0x26daa5['id'])continue;if('formatBlock'!=_0x16b001[_0x165c('0x5b')]||_0x16b001[_0x165c('0xca')][_0x165c('0x2d')]!=_0x2cd730['formatGroupId'])continue;if(!Ot(_0x16b001,_0xb60549))continue;const _0x2c1601=_0x16b001[_0x165c('0x142')]==_0x122121;for(let _0x517396=0x0;_0x517396<_0x1d183[_0x165c('0x62')];_0x517396++){const _0xe4ca3d=_0x1d183[_0x517396];for(const _0x13d711 of _0x16b001[_0x165c('0x9a')]()){const _0xf97194=_0x13d711[_0x165c('0x44')]();if(_0xe4ca3d[_0x165c('0xd7')](_0xf97194)){_0x2c1601?(_0x1d183[_0x165c('0x39')](_0x517396,0x1),_0x517396--):_0x16b001[_0x165c('0xaf')](_0x13d711[_0x165c('0xbf')]);break;}}}}if(0x0==_0x1d183[_0x165c('0x62')])return null;const _0x2f4fd1=this['_suggestionFactory'][_0x165c('0x11d')](_0x165c('0x47'),_0x122121,'join');for(const _0x54c094 of this['getSuggestions']())if(_0x54c094[_0x165c('0x13')]['id']==_0x26daa5['id']&&_0x165c('0x47')==_0x54c094[_0x165c('0x5b')]&&_0x54c094[_0x165c('0xca')]['formatGroupId']==_0x2cd730[_0x165c('0x2d')]&&_0x54c094['subType']==_0x122121&&Ot(_0x54c094,_0xb60549)&&(_0x2f4fd1(_0x54c094[_0x165c('0x6b')](),_0x1d183)||_0x2f4fd1(_0x1d183,_0x54c094['getRanges']()))){for(const _0x14d9a2 of _0x1d183)_0x54c094[_0x165c('0x128')](_0x14d9a2);return _0x54c094;}const _0x1e6d5d=_0x45f81c(),_0x5582c2=_0x26daa5['id'],_0x4596e1=_0x165c('0x79')+_0x122121,_0x415806=this[_0x165c('0xb9')]({'id':_0x1e6d5d,'type':_0x4596e1,'data':_0x2cd730,'createdAt':new Date(),'authorId':_0x5582c2,'attributes':_0xb60549});for(const _0x46b2fc of _0x1d183)this['_addSuggestionMarker'](_0x4596e1,_0x1e6d5d,_0x5582c2,_0x46b2fc,_0x46695f[_0x165c('0x119')]());return _0x415806;}[_0x165c('0x112')](_0x37548d,_0xe025d8=null,_0x3e3984={}){if(_0x37548d[_0x165c('0xbe')])return null;const _0x3b4076=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x544c6d=new _0x3c45ef(_0x37548d[_0x165c('0x113')],_0x37548d[_0x165c('0x5')]);for(const {suggestion:_0x55d2a7,meta:_0x59da43}of this[_0x165c('0xeb')](_0x544c6d,'insertion'))if(_0x59da43[_0x165c('0x10a')]&&!_0x59da43[_0x165c('0x9')]){if(_0x55d2a7['isMultiRange']){const _0x1b7c56=_0x55d2a7[_0x165c('0x6b')]()['filter'](_0x178d50=>_0x165c('0xa')!=_0x178d50[_0x165c('0xc3')][_0x165c('0x101')]);_0x1b7c56[_0x165c('0xf3')](_0x55ac19=>_0x544c6d['containsRange'](_0x55ac19,!0x0))&&_0x55d2a7[_0x165c('0x17')]();if(_0x1b7c56[_0x165c('0xa9')](_0x3418f5=>_0x3418f5[_0x165c('0x27')](_0x544c6d,!0x0))){const _0x123c33=this['_suggestionFactory']['getSuggestionCallback'](_0x165c('0x88'),_0xe025d8,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x123c33([_0x544c6d],null,_0x3e3984)),null;}}else{const _0x337d7d=_0x544c6d[_0x165c('0x7c')](_0x55d2a7[_0x165c('0x38')]());null!==_0x337d7d&&_0x55d2a7[_0x165c('0x21')]([_0x337d7d],null,_0x3e3984);}}if(_0x544c6d[_0x165c('0xc4')](),_0x544c6d['isCollapsed']||_0x165c('0xa')==_0x544c6d[_0x165c('0xc3')][_0x165c('0x101')])return null;let _0x39c151=null,_0x56be58=_0x544c6d[_0x165c('0x113')],_0x1827af=_0x544c6d['end'];const _0x1b56a0=this[_0x165c('0xeb')](_0x544c6d,_0x165c('0x88'));for(const {suggestion:_0x1d4971,meta:_0x380bf8}of _0x1b56a0){const _0x53fa0a=this['_model']['createRange'](_0x56be58,_0x1827af);if(_0x380bf8[_0x165c('0x10a')]&&(this[_0x165c('0x116')]||!_0x380bf8[_0x165c('0xbb')]&&!_0x380bf8[_0x165c('0xb4')])){if(_0x1d4971['isMultiRange']){if(!Ot(_0x1d4971,_0x3e3984))continue;let _0x230225=!0x0;for(const _0x555d79 of _0x1d4971[_0x165c('0x6b')]()){if(_0x555d79[_0x165c('0x27')](_0x53fa0a,!0x0))return _0x1d4971;_0x53fa0a[_0x165c('0x27')](_0x555d79)||(_0x230225=!0x1);}_0x230225&&_0x1d4971[_0x165c('0x17')]();}else{const _0x4e3189=_0x1d4971[_0x165c('0x38')]();if(_0x4e3189[_0x165c('0x27')](_0x53fa0a,!0x0))return _0x1d4971;if(!Ot(_0x1d4971,_0x3e3984)){_0x53fa0a['containsRange'](_0x4e3189)?_0x1d4971[_0x165c('0x120')]():_0x4e3189['containsPosition'](_0x56be58)?_0x56be58=_0x4e3189['end']:_0x4e3189['containsPosition'](_0x1827af)&&(_0x1827af=_0x4e3189[_0x165c('0x113')]);continue;}_0x56be58=_0x56be58['isBefore'](_0x4e3189[_0x165c('0x113')])?_0x56be58:_0x4e3189[_0x165c('0x113')],_0x1827af=_0x1827af[_0x165c('0xe4')](_0x4e3189['end'])?_0x1827af:_0x4e3189[_0x165c('0x5')],_0x3e3984=Object['assign']({},_0x1d4971[_0x165c('0x12a')]),_0x39c151?_0x4e3189[_0x165c('0x113')][_0x165c('0x30')](_0x39c151[_0x165c('0x38')]()[_0x165c('0x113')])?(_0x39c151[_0x165c('0x120')](),_0x39c151=_0x1d4971):_0x1d4971[_0x165c('0x120')]():_0x39c151=_0x1d4971;}}}if(_0x39c151)return this[_0x165c('0x37')](_0x39c151,this[_0x165c('0x58')]['createRange'](_0x56be58,_0x1827af)),_0x39c151;{const _0x10aea1=_0x45f81c(),_0x5a39bf=this['_model']['createRange'](_0x56be58,_0x1827af),_0x46594a=_0x3b4076['id'],_0x408c38=_0xe025d8?'deletion:'+_0xe025d8:'deletion',_0x224941=this[_0x165c('0xb9')]({'id':_0x10aea1,'type':_0x408c38,'createdAt':new Date(),'authorId':_0x46594a,'attributes':_0x3e3984});return this[_0x165c('0x50')](_0x408c38,_0x10aea1,_0x46594a,_0x5a39bf),_0x224941;}}[_0x165c('0x8b')](_0x234d9d,_0x30b6b4=_0x165c('0x10c'),_0x18aeaa={}){const _0x54cefd=this[_0x165c('0x6d')][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'],_0x305b3a=_0x234d9d[_0x165c('0x13f')](_0x632f83=>new _0x3c45ef(_0x632f83[_0x165c('0x113')],_0x632f83[_0x165c('0x5')])),_0x273f9f=new Set();for(const {suggestion:_0x3c8071,meta:_0x453d25}of this[_0x165c('0xeb')](_0x305b3a,'insertion'))_0x453d25[_0x165c('0x10a')]&&!_0x453d25['isNextTo']&&_0x273f9f[_0x165c('0x92')](_0x3c8071);for(const _0x2e2bc0 of _0x273f9f)if(_0x2e2bc0['isMultiRange']){const _0x3c8c04=_0x2e2bc0[_0x165c('0x6b')]();(!_0x2e2bc0[_0x165c('0x12a')]||!_0x2e2bc0['attributes'][_0x165c('0x141')])&&(_0x3c8c04[_0x165c('0xf3')](_0x39c18d=>_0x305b3a[_0x165c('0xa9')](_0x4055b9=>_0x4055b9[_0x165c('0x27')](_0x39c18d,!0x0)))&&_0x2e2bc0['discard']());if(_0x305b3a[_0x165c('0xf3')](_0x5c10ad=>_0x3c8c04[_0x165c('0xa9')](_0x2881eb=>_0x2881eb[_0x165c('0x27')](_0x5c10ad,!0x0)))){const _0x2f1287=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0x88'),_0x30b6b4,'accept');return this[_0x165c('0xcc')](()=>_0x2f1287(_0x234d9d,null,_0x18aeaa)),null;}}else{const _0x1d58fc=_0x2e2bc0[_0x165c('0x38')]();_0x305b3a['some'](_0x37c8fb=>_0x37c8fb[_0x165c('0x27')](_0x1d58fc,!0x0))&&_0x2e2bc0[_0x165c('0x17')]();if(_0x305b3a[_0x165c('0xf3')](_0x4524b2=>_0x1d58fc[_0x165c('0x27')](_0x4524b2,!0x0))){const _0x54dc91=this[_0x165c('0x115')][_0x165c('0x11d')]('deletion',_0x30b6b4,_0x165c('0x9d'));return this['forceDefaultExecution'](()=>_0x54dc91(_0x305b3a,null,_0x18aeaa)),null;}}const _0x42c97c=this[_0x165c('0x115')][_0x165c('0x11d')](_0x165c('0x88'),_0x30b6b4,'join');let _0x585442=null;for(const _0xfc8bb7 of this['getSuggestions']())if(_0xfc8bb7['author']['id']==_0x54cefd['id']&&_0xfc8bb7[_0x165c('0x35')]&&'deletion'==_0xfc8bb7[_0x165c('0x5b')]&&_0xfc8bb7[_0x165c('0x142')]==_0x30b6b4&&Ot(_0xfc8bb7,_0x18aeaa)&&(_0x42c97c(_0xfc8bb7['getRanges'](),_0x305b3a)||_0x42c97c(_0x305b3a,_0xfc8bb7['getRanges']()))){if(_0x585442){if(_0xfc8bb7[_0x165c('0x26')]&&_0xfc8bb7[_0x165c('0x26')][_0x165c('0x62')])continue;for(const _0x34f714 of _0xfc8bb7['getRanges']())_0x585442[_0x165c('0x81')](_0x34f714)||_0x585442[_0x165c('0x128')](_0x34f714);_0xfc8bb7[_0x165c('0x120')]();}else{_0x585442=_0xfc8bb7;for(const _0xce833a of _0x305b3a)_0xfc8bb7[_0x165c('0x81')](_0xce833a)||_0xfc8bb7[_0x165c('0x128')](_0xce833a);}}if(_0x585442)return _0x585442;_0x273f9f['clear']();for(const {suggestion:_0x20e6f2,meta:_0x18634f}of this['_findSuggestions'](_0x305b3a,_0x165c('0x88')))_0x18634f[_0x165c('0x10a')]&&(this[_0x165c('0x116')]||!_0x18634f[_0x165c('0xbb')]&&!_0x18634f[_0x165c('0xb4')])&&Ot(_0x20e6f2,_0x18aeaa)&&_0x273f9f['add'](_0x20e6f2);for(const _0x402b07 of _0x273f9f){const _0x1b0227=_0x402b07[_0x165c('0x6b')]();if(!_0x18aeaa||!_0x18aeaa[_0x165c('0x141')]){if(_0x305b3a[_0x165c('0xf3')](_0x442797=>_0x1b0227['some'](_0xae6edb=>_0xae6edb[_0x165c('0x27')](_0x442797,!0x0))))return _0x402b07;}(!_0x402b07[_0x165c('0x12a')]||!_0x402b07[_0x165c('0x12a')][_0x165c('0x141')])&&(_0x1b0227[_0x165c('0xf3')](_0x5f6d1=>_0x305b3a['some'](_0x19ad47=>_0x19ad47[_0x165c('0x27')](_0x5f6d1,!0x0)))&&_0x402b07['discard']());}const _0x4b538e=_0x45f81c(),_0x2e7421=_0x54cefd['id'],_0x7cb5fe=_0x165c('0x5d')+_0x30b6b4,_0x125259=this[_0x165c('0xb9')]({'id':_0x4b538e,'type':_0x7cb5fe,'createdAt':new Date(),'authorId':_0x2e7421,'attributes':_0x18aeaa});for(const _0x2db8ad of _0x305b3a)_0x2db8ad['detach'](),_0x2db8ad[_0x165c('0xbe')]||_0x165c('0xa')==_0x2db8ad[_0x165c('0xc3')][_0x165c('0x101')]||this[_0x165c('0x50')](_0x7cb5fe,_0x4b538e,_0x2e7421,_0x2db8ad,_0x46695f['getMultiRangeId']());return _0x125259;}[_0x165c('0x37')](_0x2a8030,_0xbef432){const _0x5d2815=_0x2a8030[_0x165c('0x123')]();this['_model'][_0x165c('0x41')](_0x3d556e=>{_0x3d556e[_0x165c('0x2c')](_0x5d2815,{'range':_0xbef432});});}[_0x165c('0xcb')](_0x338368){const _0x27a659=_0x338368['id'],_0x2b7b13=this[_0x165c('0x6d')][_0x165c('0xab')][_0x165c('0x64')](_0x165c('0x16'));this['_commentsRepository']['hasCommentThread'](_0x27a659)||this['_commentsRepository'][_0x165c('0x2a')]({'channelId':_0x2b7b13,'threadId':_0x27a659,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c7801=this[_0x165c('0xed')][_0x165c('0xe6')](_0x27a659);_0x2c7801[_0x165c('0x13a')](_0x165c('0xe7')),_0x2c7801[_0x165c('0xe7')]=!0x1,_0x338368['commentThread']=_0x2c7801;}['_checkSuggestionCorrectness'](_0x4c633f,_0x358e71,_0x1215dd,_0x1d86b1){if(_0x4c633f['type']!=_0x358e71||_0x4c633f[_0x165c('0x142')]!=_0x1215dd||_0x4c633f['creator']['id']!=_0x1d86b1)throw this[_0x165c('0x6d')][_0x165c('0x8')]('track-changes-suggestion-data-mismatch'),new _0xb2381e(_0x165c('0x2e'),this);}[_0x165c('0xc')](_0x2023ed,_0x5f1652){const _0x2bcc4=_0x2023ed['getFirstRange']();if(_0x5f1652[_0x165c('0xd7')](_0x2bcc4))_0x2023ed[_0x165c('0x120')]();else{if(_0x2bcc4[_0x165c('0x27')](_0x5f1652)){const _0xb7c716=this[_0x165c('0x58')][_0x165c('0x110')](_0x5f1652[_0x165c('0x113')]['nodeBefore'],'end');this[_0x165c('0x37')](_0x2023ed,this[_0x165c('0x58')][_0x165c('0x140')](_0x2bcc4[_0x165c('0x113')],_0xb7c716));const _0x4f7de6=_0x45f81c(),_0x3306ed=_0x2023ed[_0x165c('0x8c')]['id'],_0x3c83d4=_0x2023ed['type']+':'+_0x2023ed['subType'];this[_0x165c('0xb9')]({'id':_0x4f7de6,'type':_0x3c83d4,'createdAt':new Date(),'authorId':_0x3306ed,'data':_0x2023ed[_0x165c('0xca')],'attributes':_0x2023ed[_0x165c('0x12a')]});const _0x2488ac=this[_0x165c('0x58')]['createPositionAt'](_0x5f1652['end'][_0x165c('0xe5')],'after'),_0x24c9db=this[_0x165c('0x58')][_0x165c('0x140')](_0x2488ac,_0x2bcc4[_0x165c('0x5')]);this[_0x165c('0x50')](_0x3c83d4,_0x4f7de6,_0x3306ed,_0x24c9db);}else{if(_0x2bcc4['containsPosition'](_0x5f1652[_0x165c('0x113')])){const _0x255384=this[_0x165c('0x58')][_0x165c('0x110')](_0x5f1652[_0x165c('0x113')][_0x165c('0xd0')],'end');this[_0x165c('0x37')](_0x2023ed,this[_0x165c('0x58')][_0x165c('0x140')](_0x2bcc4[_0x165c('0x113')],_0x255384));}else{const _0x230ac0=this[_0x165c('0x58')][_0x165c('0x110')](_0x5f1652[_0x165c('0x5')][_0x165c('0xe5')],'after');this[_0x165c('0x37')](_0x2023ed,this[_0x165c('0x58')][_0x165c('0x140')](_0x230ac0,_0x2bcc4[_0x165c('0x5')]));}}}}['_rangeIsInLocalUserInsertion'](_0x22f714){for(const {suggestion:_0x5b4e7e,meta:_0x271bb4}of this[_0x165c('0xeb')](_0x22f714,_0x165c('0xa2'))){if(!_0x271bb4[_0x165c('0x10a')])continue;const _0x445e93=_0x5b4e7e[_0x165c('0x6b')]();for(const _0x23a8dc of _0x445e93)if(!_0x22f714[_0x165c('0xbc')](_0x23a8dc)[_0x165c('0x62')])return!0x0;}return!0x1;}[_0x165c('0x124')](_0x1e3ceb){const _0x13d5b5=this[_0x165c('0x6d')]['plugins'][_0x165c('0x64')](_0x165c('0xfa'))[_0x165c('0xa6')](_0x1e3ceb);if(!_0x13d5b5)throw new _0xb2381e('track-changes-user-not-found',this);return _0x13d5b5;}['_getExternalAuthor'](_0x29d057){const _0x140e41=this['editor'][_0x165c('0x7b')][_0x165c('0x64')]('Users'),_0x39d929=_0x15ab5f(_0x165c('0x105')+_0x29d057),_0x307b7c=_0x140e41['getUser'](_0x39d929);return _0x307b7c||_0x140e41[_0x165c('0x3d')]({'id':_0x39d929,'name':_0x29d057});}[_0x165c('0x137')](_0x5bddee,_0xc78122,_0x94476a,_0x120e88,_0x2cdcaa){const _0x38e143=this[_0x165c('0x124')](_0x120e88),_0x2bcdf3=this[_0x165c('0x115')][_0x165c('0x2')](_0x5bddee,_0xc78122,_0x94476a,_0x38e143,_0x2cdcaa,_0x5862a3=>this['_updateSuggestionData'](_0x94476a,{'attributes':_0x5862a3}));return this[_0x165c('0x4a')](_0x2bcdf3,'accept',()=>{this[_0x165c('0xb1')](_0x94476a,{'state':'accepted'});},{'priority':_0x165c('0xde')}),this[_0x165c('0x4a')](_0x2bcdf3,'discard',()=>{this[_0x165c('0xb1')](_0x94476a,{'state':'rejected'});},{'priority':_0x165c('0xde')}),this[_0x165c('0xa4')][_0x165c('0x69')](_0x94476a,_0x2bcdf3),this[_0x165c('0x11a')][_0x165c('0x69')](_0x2bcdf3,_0x165c('0x80')),_0x2bcdf3;}[_0x165c('0x4d')](_0x42fd70){const _0x421f73=_0x42fd70[_0x165c('0x7')](':');return{'group':_0x421f73[0x0],'type':_0x421f73[0x1],'subType':_0x421f73['length']>=0x5?_0x421f73[0x2]:null,'id':_0x421f73['length']<0x5?_0x421f73[0x2]:_0x421f73[0x3],'authorId':_0x421f73['length']<0x5?_0x421f73[0x3]:_0x421f73[0x4],'markerCount':0x6==_0x421f73[_0x165c('0x62')]?_0x421f73[0x5]:null};}[_0x165c('0x3f')](_0x593cce,_0x3f5cd2,_0x8f343b){const _0x1d1b1d=_0x593cce['getFirstRange'](),_0xd14ee6=_0x1d1b1d[_0x165c('0x113')],_0x147da6=_0x1d1b1d['end'];this[_0x165c('0x37')](_0x593cce,this[_0x165c('0x58')][_0x165c('0x140')](_0xd14ee6,_0x3f5cd2));const _0x263d52=_0x45f81c(),_0x3ad89b=_0x593cce[_0x165c('0x8c')]['id'],_0x1790ea=_0x593cce[_0x165c('0x5b')]+(_0x593cce[_0x165c('0x142')]?':'+_0x593cce['subType']:'');this[_0x165c('0xb9')]({'id':_0x263d52,'type':_0x1790ea,'createdAt':new Date(),'authorId':_0x3ad89b,'originalSuggestionId':_0x593cce['id'],'attributes':_0x593cce[_0x165c('0x12a')],'data':_0x593cce[_0x165c('0xca')]}),_0x165c('0x47')==_0x593cce['type']&&(_0x8f343b=this[_0x165c('0x58')][_0x165c('0x7d')](_0x8f343b[_0x165c('0xe5')])),this[_0x165c('0x50')](_0x1790ea,_0x263d52,_0x3ad89b,this['_model'][_0x165c('0x140')](_0x8f343b,_0x147da6));}[_0x165c('0xeb')](_0x507084,_0x38dd01=null){const _0xb0c909=[],_0x101ae9=this['editor'][_0x165c('0x7b')][_0x165c('0x64')](_0x165c('0xfa'))['me'];Array[_0x165c('0x14')](_0x507084)||(_0x507084=[_0x507084]);for(const _0x2e4950 of this[_0x165c('0xb2')]()){if(!_0x2e4950[_0x165c('0x35')])continue;if(_0x38dd01&&_0x2e4950[_0x165c('0x5b')]!=_0x38dd01)continue;let _0x1e5a84=!0x1;for(const _0x41ea67 of _0x2e4950[_0x165c('0x6b')]()){for(const _0x1811a9 of _0x507084){const _0x3336be=_0x1811a9[_0x165c('0x113')][_0x165c('0xd7')](_0x41ea67['end'])||_0x1811a9['end'][_0x165c('0xd7')](_0x41ea67['start']);if(_0x3336be||_0x1811a9['getIntersection'](_0x41ea67)){const _0x30655f=_0x1811a9['containsRange'](_0x41ea67)&&_t(this[_0x165c('0x58')]['schema'],_0x41ea67[_0x165c('0x113')],_0x1811a9),_0x5820b1=_0x41ea67[_0x165c('0x27')](_0x1811a9)&&_t(this[_0x165c('0x58')][_0x165c('0x6')],_0x1811a9[_0x165c('0x113')],_0x41ea67);_0xb0c909['push']({'suggestion':_0x2e4950,'meta':{'isOwn':_0x101ae9==_0x2e4950[_0x165c('0x13')],'isNextTo':_0x3336be,'isInsideObject':_0x30655f,'containsRangeInObject':_0x5820b1}}),_0x1e5a84=!0x0;break;}}if(_0x1e5a84)break;}}return _0xb0c909;}[_0x165c('0x50')](_0x26770e,_0x5dc0f5,_0x5ffafe,_0x5081f3,_0x29bcee){this[_0x165c('0x58')][_0x165c('0x41')](_0x3d53a3=>{let _0x3bdd46=_0x165c('0x29')+_0x26770e+':'+_0x5dc0f5+':'+_0x5ffafe;_0x29bcee&&(_0x3bdd46=_0x3bdd46+':'+_0x29bcee),_0x3d53a3[_0x165c('0x6c')](_0x3bdd46,{'range':_0x5081f3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x165c('0xaa')](_0x512133){const _0x4c81c7=_0x512133['previous'],_0x2d5bf8=_0x512133['next'];_0x512133[_0x165c('0xe8')]=null,null!=_0x4c81c7&&(_0x4c81c7[_0x165c('0x78')]=null),_0x512133[_0x165c('0x78')]=null,null!=_0x2d5bf8&&(_0x2d5bf8[_0x165c('0xe8')]=null),_0x165c('0x109')==this[_0x165c('0x11a')][_0x165c('0x64')](_0x512133)&&(this[_0x165c('0x11a')][_0x165c('0x69')](_0x512133,'removed'),this[_0x165c('0x60')]('suggestionUnloaded',_0x512133,_0x4c81c7,_0x2d5bf8));}[_0x165c('0xb9')](_0x1eb0b8){const _0x2369f6=_0x1eb0b8['id'],_0x2ed5e6=this[_0x165c('0x3')](_0x1eb0b8);if(this[_0x165c('0x3e')]&&this[_0x165c('0x3e')][_0x165c('0xf')]){const _0x2db15c=this['editor'][_0x165c('0x7b')]['get'](_0x165c('0xff')),_0x32f1e6=_0x2ed5e6[_0x165c('0xc7')],_0x497470=_0x2ed5e6[_0x165c('0x142')]?_0x2ed5e6['type']+':'+_0x2ed5e6['subType']:_0x2ed5e6[_0x165c('0x5b')],_0x3eb3ee=this[_0x165c('0x6d')][_0x165c('0x4e')],_0x382f0b=_0x2db15c[_0x165c('0x92')](_0x14a9fb(_0x3eb3ee,_0x165c('0xdf'))),_0x2e64b2={'id':_0x2369f6,'type':_0x497470,'hasComments':_0x32f1e6,'data':_0x1eb0b8[_0x165c('0xca')]||null,'originalSuggestionId':_0x1eb0b8[_0x165c('0x10b')]||null,'attributes':_0x2ed5e6[_0x165c('0x12a')]};this['_adapter']['addSuggestion'](_0x2e64b2)[_0x165c('0x8a')](_0x4e51ac=>{_0x2ed5e6[_0x165c('0xda')]=!0x0,_0x2db15c['remove'](_0x382f0b),_0x4e51ac&&_0x4e51ac['createdAt']&&(this['_suggestions'][_0x165c('0x64')](_0x2369f6)[_0x165c('0xa1')]=_0x4e51ac[_0x165c('0xa1')]);})['catch'](_0x44e407=>{throw _0x17f9a1(_0x165c('0xd6')),this[_0x165c('0x6d')][_0x165c('0xf7')][_0x165c('0x91')]({'isUndoable':!0x1},()=>{_0x2ed5e6[_0x165c('0x17')]();}),_0x2ed5e6[_0x165c('0xf2')](),this[_0x165c('0xa4')][_0x165c('0xe3')](_0x2ed5e6['id']),this[_0x165c('0x11a')][_0x165c('0xe3')](_0x2ed5e6),_0x44e407;});}return _0x2ed5e6;}[_0x165c('0xb1')](_0x2fd762,_0x16f223){const _0x5744ee=this[_0x165c('0x6d')][_0x165c('0x7b')]['get']('PendingActions'),_0x3152b1=this[_0x165c('0x121')](_0x2fd762);if(this[_0x165c('0x3e')]&&this[_0x165c('0x3e')]['updateSuggestion']){if(_0x3152b1[_0x165c('0xda')]){const _0x9ddaf8=_0x5744ee[_0x165c('0x92')](_0x14a9fb(this[_0x165c('0x6d')][_0x165c('0x4e')],_0x165c('0xdf')));this['_adapter']['updateSuggestion'](_0x2fd762,_0x16f223)[_0x165c('0x8a')](()=>{_0x5744ee['remove'](_0x9ddaf8);});}else _0x3152b1['on'](_0x165c('0xae'),()=>{this[_0x165c('0xb1')](_0x2fd762,_0x16f223);});}}[_0x165c('0x1')](_0x936c9c){if(!this[_0x165c('0x3e')]||!this[_0x165c('0x3e')][_0x165c('0x121')])throw new _0xb2381e('track-changes-adapter-missing-getsuggestion',this);return this[_0x165c('0x3e')][_0x165c('0x121')](_0x936c9c);}['_handleNewSuggestionMarker'](_0x214a01){const {id:_0x279cd6,type:_0x71c1f9,subType:_0x5b045c,authorId:_0x10a118}=this['_splitMarkerName'](_0x214a01),_0x195a57=this[_0x165c('0xa4')][_0x165c('0x64')](_0x279cd6)||this[_0x165c('0x137')](_0x71c1f9,_0x5b045c,_0x279cd6,_0x10a118,{});switch(this[_0x165c('0x0')](_0x195a57,_0x71c1f9,_0x5b045c,_0x10a118),this[_0x165c('0x11a')][_0x165c('0x64')](_0x195a57)){case _0x165c('0x80'):this['_getSuggestionData'](_0x279cd6)[_0x165c('0x8a')](_0x409bed=>{let _0x3b23a6=Promise['resolve']();_0x409bed[_0x165c('0xc7')]&&(_0x3b23a6=this['_commentsRepository'][_0x165c('0x5e')]({'channelId':this[_0x165c('0x6d')][_0x165c('0xab')][_0x165c('0x64')](_0x165c('0x16')),'threadId':_0x279cd6})),_0x3b23a6[_0x165c('0x8a')](()=>{this['addSuggestionData'](_0x409bed)[_0x165c('0xda')]=!0x0;});}),this[_0x165c('0x11a')]['set'](_0x195a57,_0x165c('0x93'));break;case'removed':this[_0x165c('0xb1')](_0x279cd6,{'state':'open'});case _0x165c('0x3b'):this[_0x165c('0x11a')][_0x165c('0x69')](_0x195a57,_0x165c('0x109')),this[_0x165c('0x60')](_0x165c('0x63'),_0x195a57);break;case _0x165c('0x109'):this[_0x165c('0x60')](_0x165c('0xa8'),_0x195a57);}return _0x195a57[_0x165c('0x107')](_0x214a01),_0x195a57;}[_0x165c('0x13e')](_0xab8afe){const _0xaed081=Array[_0x165c('0x97')](_0xab8afe)['filter'](_0x139572=>!_0x139572[_0x165c('0x8d')]),_0xe711e9=this[_0x165c('0xb2')]({'skipNotAttached':!0x0})[_0x165c('0x25')](_0x32b9c8=>!_0x32b9c8[_0x165c('0x8d')]),_0x134053=_0xe711e9[_0x165c('0x25')](_0x1a99f6=>!_0xab8afe[_0x165c('0xec')](_0x1a99f6)),_0x393d8c=new Map(_0xe711e9[_0x165c('0x13f')](_0x586d4a=>[_0x586d4a,this['_suggestionFactory'][_0x165c('0x11d')](_0x586d4a[_0x165c('0x5b')],_0x586d4a['subType'],'chain')])),_0x4f3cad=new Map(_0xe711e9[_0x165c('0x13f')](_0x53909c=>[_0x53909c,_0x53909c['getFirstRange']()])),_0x2db9a6=new Set(),_0x1f1463=new Set();for(let _0x46253f=0x0;_0x46253f<_0xaed081[_0x165c('0x62')];_0x46253f++)_0x50756b(_0xaed081[_0x46253f],_0xaed081,_0x46253f+0x1);for(let _0x3848d3=0x0;_0x3848d3<_0xaed081[_0x165c('0x62')];_0x3848d3++)_0x50756b(_0xaed081[_0x3848d3],_0x134053,0x0);for(let _0x1d569e=0x0;_0x1d569e<_0xaed081['length'];_0x1d569e++){const _0x5a8575=_0xaed081[_0x1d569e];!_0x1f1463[_0x165c('0xec')](_0x5a8575)&&_0x5a8575['previous']&&(_0x5a8575[_0x165c('0xe8')][_0x165c('0x78')]===_0x5a8575&&(_0x5a8575[_0x165c('0xe8')][_0x165c('0x78')]=null),_0x5a8575[_0x165c('0xe8')]=null),!_0x2db9a6[_0x165c('0xec')](_0x5a8575)&&_0x5a8575[_0x165c('0x78')]&&(_0x5a8575[_0x165c('0x78')][_0x165c('0xe8')]===_0x5a8575&&(_0x5a8575[_0x165c('0x78')][_0x165c('0xe8')]=null),_0x5a8575['next']=null);}function _0x50756b(_0x5c3a15,_0x36c7c0,_0x385071){for(let _0x55fec2=_0x385071;_0x55fec2<_0x36c7c0['length'];_0x55fec2++){const _0x113f04=_0xf4b03e(_0x5c3a15,_0x36c7c0[_0x55fec2]);_0x113f04&&(_0x113f04[0x0]['next']=_0x113f04[0x1],_0x113f04[0x1]['previous']=_0x113f04[0x0],_0x2db9a6[_0x165c('0x92')](_0x113f04[0x0]),_0x1f1463[_0x165c('0x92')](_0x113f04[0x1]));}}function _0xf4b03e(_0x2e9de0,_0x253712){if(_0x2e9de0[_0x165c('0x13')]['id']!==_0x253712[_0x165c('0x13')]['id'])return null;const _0x256ec7=_0x393d8c['get'](_0x2e9de0)(_0x2e9de0,_0x253712,_0x4f3cad['get'](_0x2e9de0),_0x4f3cad['get'](_0x253712));if(!_0x256ec7)return null;return _0x393d8c['get'](_0x253712)(_0x2e9de0,_0x253712,_0x4f3cad[_0x165c('0x64')](_0x2e9de0),_0x4f3cad[_0x165c('0x64')](_0x253712))?_0x256ec7[0x1][_0x165c('0x26')]&&_0x256ec7[0x1][_0x165c('0x26')][_0x165c('0x62')]?null:_0x256ec7:null;}}['_joinWithAdjacentSuggestions'](_0x5d4dd2){const _0x14bf26=Array[_0x165c('0x97')](_0x5d4dd2),_0x464698=this[_0x165c('0xb2')]({'skipNotAttached':!0x0}),_0x51aa3d=_0x464698[_0x165c('0x25')](_0x44ebe4=>!_0x5d4dd2[_0x165c('0xec')](_0x44ebe4)),_0xad7234=new Map(_0x14bf26['map'](_0x1d5d82=>[_0x1d5d82,this['_suggestionFactory']['getSuggestionCallback'](_0x1d5d82['type'],_0x1d5d82[_0x165c('0x142')],'join')])),_0x59c968=new Map(_0x464698[_0x165c('0x13f')](_0x1399fb=>[_0x1399fb,_0x1399fb[_0x165c('0x6b')]()]));for(let _0x334c57=0x0;_0x334c57<_0x14bf26[_0x165c('0x62')];_0x334c57++){if(_0x33b206(this,_0x14bf26[_0x334c57],_0x14bf26,_0x334c57+0x1))return!0x0;}for(let _0x49822b=0x0;_0x49822b<_0x14bf26['length'];_0x49822b++){if(_0x33b206(this,_0x14bf26[_0x49822b],_0x51aa3d,0x0))return!0x0;}return!0x1;function _0x33b206(_0x2c7b82,_0x526395,_0xd4811d,_0x4814d8){for(let _0xbd834e=_0x4814d8;_0xbd834e<_0xd4811d['length'];_0xbd834e++){const _0x5ccd67=_0xd4811d[_0xbd834e];if(_0x5ccd67[_0x165c('0x5b')]!==_0x526395[_0x165c('0x5b')]||_0x5ccd67[_0x165c('0x13')]['id']!==_0x526395['author']['id']||_0x5ccd67[_0x165c('0x142')]!==_0x526395['subType'])continue;if(!Ut(_0x526395,_0x5ccd67))continue;const _0x5268f1=_0xad7234['get'](_0x526395),_0x30127f=_0x59c968[_0x165c('0x64')](_0x526395),_0x377929=_0x59c968['get'](_0x5ccd67),_0x37f580=_0x526395[_0x165c('0x26')]&&_0x526395[_0x165c('0x26')][_0x165c('0x62')],_0x3e14b6=_0x5ccd67[_0x165c('0x26')]&&_0x5ccd67[_0x165c('0x26')][_0x165c('0x62')];if(!_0x37f580&&_0x5268f1(_0x377929,_0x30127f))return _0x2c7b82[_0x165c('0xfe')](_0x5ccd67,_0x526395),_0x59c968[_0x165c('0xe3')](_0x526395),!0x0;if(!_0x3e14b6&&_0x5268f1(_0x30127f,_0x377929))return _0x2c7b82[_0x165c('0xfe')](_0x526395,_0x5ccd67),_0x59c968['delete'](_0x5ccd67),!0x0;}return!0x1;}}[_0x165c('0xfe')](_0xa45c7,_0x2aad4a){if(_0xa45c7[_0x165c('0x8d')])for(const _0x140ce2 of _0x2aad4a['getRanges']())_0xa45c7[_0x165c('0x128')](_0x140ce2);else{const _0x2f0881=_0x2aad4a[_0x165c('0x38')]()['end'];this['_setSuggestionRange'](_0xa45c7,this[_0x165c('0x58')][_0x165c('0x140')](_0xa45c7[_0x165c('0x38')]()[_0x165c('0x113')],_0x2f0881));}_0x2aad4a[_0x165c('0x120')]();}}class Bt{constructor(_0x13be1a){this[_0x165c('0x46')]=_0x13be1a,this['_model']=_0x13be1a[_0x165c('0xf7')],this[_0x165c('0x22')]=new Map(),this[_0x165c('0x84')]=new Map(),this['_registerDefaultCallbacks']();}[_0x165c('0x2')](_0x168322,_0x3051ff,_0x2ad434,_0x3078b9,_0x31c14b,_0x3910d6){return new _0x46695f(this[_0x165c('0x58')],{'type':_0x168322,'subType':_0x3051ff,'id':_0x2ad434,'author':_0x3078b9,'creator':_0x3078b9,'attributes':_0x31c14b,'onAttributesChange':_0x3910d6,'onAccept':(..._0x579095)=>this[_0x165c('0x11d')](_0x168322,_0x3051ff,_0x165c('0x9d'))(..._0x579095),'onDiscard':(..._0x5cb69f)=>this[_0x165c('0x11d')](_0x168322,_0x3051ff,_0x165c('0x17'))(..._0x5cb69f)});}[_0x165c('0x71')](_0x91bcea,_0x2bd5ec,_0x473cce,_0x3ef26f){const _0x333be5=_0x91bcea+':'+_0x2bd5ec+':'+_0x473cce;this[_0x165c('0x22')]['set'](_0x333be5,_0x3ef26f);}[_0x165c('0x11d')](_0x3da38e,_0x2cb82a,_0x55abb9){const _0x2caa14=_0x3da38e+':'+_0x2cb82a+':'+_0x55abb9;return this['_customCallbacks'][_0x165c('0x64')](_0x2caa14)||this[_0x165c('0x84')]['get'](_0x3da38e+':'+_0x55abb9);}['_registerDefaultCallbacks'](){const _0x55f9de=()=>!0x1,_0x235d36=_0x134997=>{_0x134997[_0x165c('0x96')]((_0x33a176,_0x2941fd)=>_0x33a176['start'][_0x165c('0x30')](_0x2941fd[_0x165c('0x113')])?0x1:-0x1),this[_0x165c('0x58')]['change'](_0x480921=>{for(const _0x1121cd of _0x134997){let _0x49a694;_0x49a694=_0x1121cd['end'][_0x165c('0xe0')]&&_0x1121cd['end'][_0x165c('0xe5')]==_0x1121cd[_0x165c('0x113')]['nodeAfter']?_0x480921[_0x165c('0x56')](_0x1121cd['start']['nodeAfter'],'on'):_0x480921[_0x165c('0x56')](_0x1121cd),this[_0x165c('0x58')][_0x165c('0x7e')](_0x49a694,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf7dad2=(_0x22a721,_0x5a2575)=>{this['_model'][_0x165c('0x41')](_0x2cd343=>{const {commandName:_0x5be08c,commandParams:_0x54108b=[]}=_0x5a2575,_0x5e1169=_0x22a721[_0x165c('0x13f')](_0x23a457=>(Mt(_0x23a457)&&(_0x23a457=this[_0x165c('0x58')][_0x165c('0x140')](_0x23a457['end'])),_0x23a457))[_0x165c('0x25')](_0x2300d0=>_0x165c('0xa')!==_0x2300d0['root'][_0x165c('0x101')]);if(_0x5e1169[_0x165c('0x62')]<0x1)return;const _0x21006f=Array['from'](this[_0x165c('0x58')]['document']['selection'][_0x165c('0x6b')]())['map'](_0x4e44d2=>_0x3c45ef[_0x165c('0x11c')](_0x4e44d2));_0x2cd343['setSelection'](_0x5e1169);for(const _0x209f19 of this['_editor'][_0x165c('0x98')][_0x165c('0x98')]())_0x209f19[_0x165c('0xe9')]();_0x54108b[_0x165c('0x32')]({'forceDefaultExecution':!0x0}),this[_0x165c('0x46')][_0x165c('0x9e')](_0x5be08c,..._0x54108b);const _0x28ad8d=_0x21006f[_0x165c('0x25')](_0x23a745=>_0x165c('0xa')!=_0x23a745[_0x165c('0xc3')][_0x165c('0x101')]);_0x28ad8d[_0x165c('0x62')]>0x0&&_0x2cd343[_0x165c('0xbd')](_0x28ad8d);for(const _0x5589cf of _0x21006f)_0x5589cf[_0x165c('0xc4')]();});},_0x19adf5=(_0x3e8b63,_0x4e7b53)=>0x1==_0x3e8b63[_0x165c('0x62')]&&0x1==_0x4e7b53[_0x165c('0x62')]&&_0x3e8b63[0x0][_0x165c('0x5')][_0x165c('0xd7')](_0x4e7b53[0x0][_0x165c('0x113')]),_0x173f72=(_0x21d45c,_0x48cd40,_0x4fcb91,_0x5c241a)=>xt(_0x21d45c,_0x48cd40,_0x4fcb91,_0x5c241a,this[_0x165c('0x58')])?[_0x21d45c,_0x48cd40]:xt(_0x48cd40,_0x21d45c,_0x5c241a,_0x4fcb91,this[_0x165c('0x58')])?[_0x48cd40,_0x21d45c]:null;this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xf1'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xa0'),_0x235d36),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x51'),_0x19adf5),this['_defaultCallbacks']['set']('insertion:chain',_0x173f72),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xf5'),_0x235d36),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xcf'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')]('deletion:join',_0x19adf5),this[_0x165c('0x84')]['set'](_0x165c('0x19'),_0x173f72),this[_0x165c('0x84')]['set']('formatInline:accept',_0xf7dad2),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0xc9'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x4f'),_0x19adf5),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x114'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x23'),_0xf7dad2),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x5c'),_0x55f9de),this[_0x165c('0x84')][_0x165c('0x69')](_0x165c('0x72'),_0x19adf5),this[_0x165c('0x84')][_0x165c('0x69')]('formatBlock:chain',_0x55f9de);}}function _t(_0x163138,_0x6b105d,_0x2ba416){for(const _0xd100c8 of _0x6b105d[_0x165c('0xe5')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd100c8[_0x165c('0xc3')]==_0xd100c8)return!0x1;if(!_0x2ba416[_0x165c('0x132')](_0xd100c8))return!0x1;if(_0x163138['isObject'](_0xd100c8)||_0x163138['isLimit'](_0xd100c8))return!0x0;}return!0x1;}function Mt(_0x577d40){return _0x577d40[_0x165c('0x5')]['parent']==_0x577d40[_0x165c('0x113')]['nodeAfter']&&_0x577d40[_0x165c('0x5')][_0x165c('0x11')];}function $t(_0x2921d2,_0x54804f,_0x7f739e,_0x24c13c){const _0x4dc1b7=_0x238728=>!_0x238728[_0x165c('0x135')]['is'](_0x165c('0x1e'))&&!_0x24c13c[_0x165c('0x42')](_0x238728[_0x165c('0x135')]),_0x298142=_0x2921d2[_0x165c('0x113')][_0x165c('0x55')](_0x4dc1b7),_0x52cc04=_0x2921d2[_0x165c('0x5')][_0x165c('0x55')](_0x4dc1b7,{'direction':_0x165c('0x85')});return(!_0x2921d2[_0x165c('0x113')][_0x165c('0xd7')](_0x298142)||!_0x2921d2[_0x165c('0x5')][_0x165c('0xd7')](_0x52cc04))&&(_0x298142[_0x165c('0x30')](_0x52cc04)?_0x7f739e[_0x165c('0x2c')](_0x54804f,{'range':_0x7f739e[_0x165c('0x140')](_0x298142,_0x52cc04)}):_0x7f739e[_0x165c('0xaf')](_0x54804f),!0x0);}function Nt(_0x154d36){return _0x15ab5f(_0x154d36);}function Rt(_0x3db48d){const _0x9368f=_0x3db48d[_0x165c('0x113')][_0x165c('0xa3')];return _0x9368f&&_0x9368f['is']('element');}function jt(_0x224929,_0x3377ed){const _0x456a9c=_0x3377ed[_0x165c('0x6')][_0x165c('0x42')](_0x224929)||_0x3377ed[_0x165c('0x6')][_0x165c('0x68')](_0x224929);return _0x3377ed[_0x165c('0x140')](_0x3377ed[_0x165c('0x110')](_0x224929,_0x165c('0x48')),_0x456a9c?_0x3377ed[_0x165c('0x5a')](_0x224929):_0x3377ed[_0x165c('0x110')](_0x224929,'end'));}function xt(_0x567f85,_0x343ea3,_0x492f45,_0x5009c4,_0x46d746){if(!Ut(_0x567f85,_0x343ea3))return!0x1;if(_0x492f45['end']['isEqual'](_0x5009c4['start']))return!0x0;if(_0x567f85[_0x165c('0x5b')]!=_0x343ea3[_0x165c('0x5b')])return!0x1;if(!_0x492f45[_0x165c('0x5')][_0x165c('0x13c')](_0x5009c4['start']))return!0x1;const _0x9aaeed=_0x46d746['createRange'](_0x492f45[_0x165c('0x5')],_0x5009c4[_0x165c('0x113')])[_0x165c('0x126')]();for(const _0x543833 of _0x9aaeed)if([_0x165c('0xfc'),_0x165c('0x40')][_0x165c('0x18')](_0x543833[_0x165c('0x5b')])&&_0x46d746['schema'][_0x165c('0xc2')](_0x543833['item']))return!0x1;return!0x0;}function Ut(_0x29d43b,_0x31b7aa){return!(!_0x29d43b[_0x165c('0x66')]||!_0x31b7aa['_isDataLoaded'])&&_0x2a10e9(_0x29d43b['attributes'],_0x31b7aa[_0x165c('0x12a')]);}function Ot(_0x3a3dc2,_0x4ce55f){const _0x306087=Et(_0x3a3dc2[_0x165c('0x12a')]),_0xe7485=Et(_0x4ce55f);if(!_0x3a3dc2[_0x165c('0x66')])return!0x1;for(const _0x4bd676 of Object[_0x165c('0x10d')](_0xe7485))if(!_0x2a10e9(_0x306087[_0x4bd676],_0xe7485[_0x4bd676]))return!0x1;return!0x0;}function Et(_0x28bad5){const _0x5b0608=Object[_0x165c('0x100')]({},_0x28bad5);return delete _0x5b0608[_0x165c('0x141')],delete _0x5b0608[_0x165c('0x12f')],_0x5b0608;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x408a=['bind','comments.maxCommentCharsWhenCollapsed','unbind','_descriptionFactory','buttonView','createCommentThreadController','actionView','filter','toMany','SuggestionThreadView','trackChanges.disableComments','activeAnnotations','registerAnnotation','hasSuggestion','plugins','head','createAnnotation','stopListening','_viewToController','getMarkerNames','execute','activeMarkers','isEnabled','focus','push','_suggestionToController','TrackChangesUI','_destroyController','commandName','Discard\x20all\x20selected\x20suggestions','button','acceptAllSuggestions','view','change:activeAnnotations','Annotations','delete','set','Discard\x20all\x20suggestions','discardSelectedSuggestions','isOn','Track\x20changes','getDescriptions','arrowView','type','clear','value','has','keys','model','editing','getFirstRange','switchbutton','getSuggestion','_annotationViews','discardButton','get','listenTo','CommentsRepository','acceptButton','from','some','pluginName','trackChanges','_refreshActiveMarkers','editor','refreshSelectedViews','change:previous','length','trackChanges.SuggestionThreadView','comments','destroy','getAllAdjacentSuggestions','source','_bindAnnotationToEditors','commands','getJoined','suggestion-','CommentsUI','locale','descriptionParts','requires','reduce','getRanges','map','discardAllSuggestions','getByInnerView','previous','isInContent','suggestionUnloaded','size','comments.maxThreadTotalWeight','createAnnotationView','mainView','lowest','separator','_handleControllerBuffer','addSourceCollector','componentFactory','_disableComments','acceptSelectedSuggestions','add','isDirty','suggestionLoaded','define','addComment','TrackChangesEditing','values','EditorAnnotations','config','_handleSuggestionControllerDelayed','_updateController'];(function(_0x4222a2,_0x408a25){const _0x552de7=function(_0x5580aa){while(--_0x5580aa){_0x4222a2['push'](_0x4222a2['shift']());}};_0x552de7(++_0x408a25);}(_0x408a,0x17a));const _0x552d=function(_0x4222a2,_0x408a25){_0x4222a2=_0x4222a2-0x0;let _0x552de7=_0x408a[_0x4222a2];return _0x552de7;};import{Plugin as _0x7c5cdb}from'ckeditor5/src/core';import{Collection as _0x3f86b1}from'ckeditor5/src/utils';import{Model as _0x5924f7,SplitButtonView as _0x2ac90c,createDropdown as _0xc19905,addListToDropdown as _0x39a25e}from'ckeditor5/src/ui';import{Users as _0x20bd8a,getDateTimeFormatter as _0x4f1434,getAllMarkersDomElementsSorted as _0x53fc25}from'ckeditor5-collaboration/src/collaboration-core';import _0x275f96 from'./trackchangesediting';import _0x1b43da from'./ui/suggestioncontroller';import _0x50f18c from'./ui/view/suggestionthreadview';import{getTranslation as _0x5cd81c}from'./utils/common-translations';import _0x5d1d40 from'../theme/icons/track-changes.svg';export default class d extends _0x7c5cdb{static get[_0x552d('0x23')](){return[_0x275f96,_0x20bd8a,_0x552d('0xc'),_0x552d('0x64'),_0x552d('0x3e')];}static get[_0x552d('0x10')](){return _0x552d('0x5c');}constructor(_0x38f477){super(_0x38f477),this[_0x552d('0x5b')]=new Map(),this[_0x552d('0x54')]=new Map(),this[_0x552d('0x8')]=new Map(),this[_0x552d('0x32')]=new Map();const _0x1f57fa=this[_0x552d('0x13')][_0x552d('0x3f')];_0x1f57fa[_0x552d('0x3a')](_0x552d('0x17'),_0x50f18c),_0x1f57fa[_0x552d('0x3a')](_0x552d('0x4c'),!0x1),this[_0x552d('0x35')]=_0x1f57fa['get'](_0x552d('0x4c'));}['_handleSuggestionControllerDelayed'](_0x575c53,_0x27a261){0x0===this[_0x552d('0x32')][_0x552d('0x2c')]&&setTimeout(()=>{for(const [_0x42d609,_0x5863ea]of this[_0x552d('0x32')]){const _0x2f9ecd=this[_0x552d('0x5b')]['has'](_0x42d609);_0x2f9ecd||_0x5863ea?_0x2f9ecd&&_0x5863ea&&this[_0x552d('0x5d')](_0x42d609):this['_initializeController'](_0x42d609);}this[_0x552d('0x13')][_0x552d('0x50')][_0x552d('0xa')](_0x552d('0x3e'))[_0x552d('0x14')](),this[_0x552d('0x12')](),this[_0x552d('0x32')][_0x552d('0x6e')]();},0xa),this[_0x552d('0x32')][_0x552d('0x66')](_0x575c53,_0x27a261);}['init'](){const _0x3787c6=this[_0x552d('0x13')],_0x2c8ee1=_0x3787c6[_0x552d('0x50')][_0x552d('0xa')](_0x552d('0x3c')),_0x376e86=_0x3787c6[_0x552d('0x50')][_0x552d('0xa')]('Annotations'),_0x44cd44=_0x3787c6[_0x552d('0x50')][_0x552d('0xa')](_0x552d('0x3e')),_0x1b3234=_0x3787c6[_0x552d('0x50')]['get']('CommentsRepository');_0x3787c6['ui'][_0x552d('0x34')][_0x552d('0x37')]('trackChanges',_0xbecf28=>this['_createUIButton'](_0xbecf28)),_0x44cd44[_0x552d('0x33')](()=>{const _0x26ae9e=[];for(const [_0x3cac21,_0x3e3da0]of Array[_0x552d('0xe')](this[_0x552d('0x5b')])){const _0x574ed6=_0x3cac21[_0x552d('0x1a')](),_0x20b7b7=[];for(const _0x1ef3d2 of _0x574ed6){if(!_0x1ef3d2[_0x552d('0x2a')])continue;if(_0x1ef3d2['isMultiRange']){_0x20b7b7[_0x552d('0x5a')](..._0x1ef3d2[_0x552d('0x25')]());continue;}const _0x1dac9a=_0x1ef3d2[_0x552d('0x5')]();if(_0x20b7b7[_0x552d('0x16')]>0x0){const _0x1321fd=_0x20b7b7[0x0][_0x552d('0x1e')](_0x1dac9a);if(_0x1321fd){_0x20b7b7[0x0]=_0x1321fd;continue;}}_0x20b7b7[_0x552d('0x5a')](_0x1dac9a);}_0x26ae9e[_0x552d('0x5a')]([_0x3e3da0[_0x552d('0x62')],_0x20b7b7]);}return _0x26ae9e;}),this[_0x552d('0xb')](_0x2c8ee1,_0x552d('0x39'),(_0x400dfd,_0x26fb7d)=>{this[_0x552d('0xb')](_0x26fb7d,_0x552d('0x15'),(_0x54c1f5,_0x38c1ac,_0x415303,_0x13dc63)=>{_0x26fb7d[_0x552d('0x2a')]&&(null==_0x415303?(this[_0x552d('0x41')](_0x13dc63[_0x552d('0x51')]),this[_0x552d('0x40')](_0x26fb7d,!0x1)):(this[_0x552d('0x41')](_0x415303['head']),this[_0x552d('0x40')](_0x26fb7d,!0x0)));}),null===_0x26fb7d[_0x552d('0x29')]?this['_handleSuggestionControllerDelayed'](_0x26fb7d,!0x1):this[_0x552d('0x41')](_0x26fb7d[_0x552d('0x51')]);}),this['listenTo'](_0x2c8ee1,_0x552d('0x2b'),(_0x20d5e6,_0x2a95,_0xf0c479)=>{this[_0x552d('0x53')](_0x2a95,_0x552d('0x15')),this[_0x552d('0x32')][_0x552d('0x65')](_0x2a95);const _0x4fe037=_0xf0c479?_0xf0c479[_0x552d('0x51')]:_0x2a95,_0x3fa848=this[_0x552d('0x5b')]['get'](_0x4fe037);null!==_0xf0c479&&this[_0x552d('0x41')](_0x4fe037),null===_0xf0c479&&_0x3fa848&&this['_destroyController'](_0x2a95);}),this['listenTo'](_0x2c8ee1,'suggestionChanged',(_0xdd65b0,_0x5d060e)=>{this[_0x552d('0x41')](_0x5d060e);}),this[_0x552d('0xb')](_0x376e86,_0x552d('0x63'),()=>{this['_refreshActiveMarkers']();}),this[_0x552d('0xb')](_0x1b3234,_0x552d('0x3b'),(_0x551b32,{threadId:_0x373e4c,isFromAdapter:_0x8a1eae})=>{if(_0x8a1eae||!_0x2c8ee1[_0x552d('0x4f')](_0x373e4c))return;const _0x41f7c9=_0x2c8ee1[_0x552d('0x7')](_0x373e4c);this[_0x552d('0x5b')]['get'](_0x41f7c9)['view'][_0x552d('0x59')]();},{'priority':_0x552d('0x30')});}['_refreshActiveMarkers'](){const _0x3e1685=this[_0x552d('0x13')]['plugins']['get'](_0x552d('0x64')),_0x56deb0=this[_0x552d('0x13')][_0x552d('0x50')][_0x552d('0xa')](_0x552d('0x3c')),_0x5c10c5=Array[_0x552d('0xe')](_0x3e1685[_0x552d('0x4d')],_0x32322a=>_0x32322a['innerView'])[_0x552d('0x49')](_0x2458da=>this[_0x552d('0x54')][_0x552d('0x1')](_0x2458da)),_0x465451=[];for(const _0x46d608 of _0x5c10c5){const _0x4e6218=this[_0x552d('0x54')][_0x552d('0xa')](_0x46d608)[_0x552d('0x3')][_0x552d('0x1a')]();_0x465451[_0x552d('0x5a')](..._0x4e6218[_0x552d('0x24')]((_0x3f382f,_0x7cfdce)=>[..._0x3f382f,..._0x7cfdce[_0x552d('0x55')]()],[]));}_0x56deb0[_0x552d('0x57')]=_0x465451;}['_createUIButton'](_0x4daa7d){const _0x4cc578=_0xc19905(_0x4daa7d,_0x2ac90c),_0x5e4735=this[_0x552d('0x13')][_0x552d('0x1d')][_0x552d('0xa')](_0x552d('0x11')),_0x3bfc8c=_0x5cd81c(_0x4daa7d,_0x552d('0x6a'));_0x4cc578['buttonView']['set']({'tooltip':_0x3bfc8c,'label':_0x3bfc8c,'icon':_0x5d1d40}),_0x4cc578[_0x552d('0x46')][_0x552d('0x42')](_0x552d('0x69'))['to'](_0x5e4735,_0x552d('0x0')),_0x4cc578['buttonView']['on']('execute',()=>{_0x5e4735[_0x552d('0x56')](),this[_0x552d('0x13')][_0x552d('0x4')][_0x552d('0x62')][_0x552d('0x59')]();});const _0xd2947b=new _0x3f86b1(),_0x219464=[{'type':_0x552d('0x6'),'model':{'withText':!0x0,'label':_0x3bfc8c,'commandName':'trackChanges'}},{'type':_0x552d('0x31')},{'type':'button','model':{'withText':!0x0,'label':_0x5cd81c(_0x4daa7d,'Accept\x20all\x20suggestions'),'commandName':_0x552d('0x61')}},{'type':_0x552d('0x60'),'model':{'withText':!0x0,'label':_0x5cd81c(_0x4daa7d,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x552d('0x36')}},{'type':_0x552d('0x60'),'model':{'withText':!0x0,'label':_0x5cd81c(_0x4daa7d,_0x552d('0x67')),'commandName':_0x552d('0x27')}},{'type':_0x552d('0x60'),'model':{'withText':!0x0,'label':_0x5cd81c(_0x4daa7d,_0x552d('0x5f')),'commandName':_0x552d('0x68')}}];for(const _0xe4fa3 of _0x219464){let _0x355bc4={'type':'separator'};if(_0xe4fa3[_0x552d('0x3')]){const _0x5209bf=new _0x5924f7(_0xe4fa3[_0x552d('0x3')]),_0x5a4ed9=this['editor'][_0x552d('0x1d')][_0x552d('0xa')](_0x5209bf[_0x552d('0x5e')]);_0x5209bf[_0x552d('0x42')](_0x552d('0x69'),'isEnabled')['to'](_0x5a4ed9,'value',_0x552d('0x58')),_0x355bc4={'type':_0xe4fa3[_0x552d('0x6d')],'model':_0x5209bf};}_0xd2947b['add'](_0x355bc4);}_0x39a25e(_0x4cc578,_0xd2947b);const _0x228111=_0x219464['filter'](_0x446e2f=>null!=_0x446e2f[_0x552d('0x3')])[_0x552d('0x26')](_0xe33441=>this[_0x552d('0x13')]['commands']['get'](_0xe33441['model'][_0x552d('0x5e')])),_0xe65ec5=_0x4cc578[_0x552d('0x46')];return _0xe65ec5[_0x552d('0x48')]['unbind'](_0x552d('0x58')),_0xe65ec5[_0x552d('0x6c')][_0x552d('0x44')]('isEnabled'),_0xe65ec5['actionView'][_0x552d('0x42')]('isEnabled')['to'](_0x5e4735,_0x552d('0x58')),_0xe65ec5[_0x552d('0x6c')][_0x552d('0x42')](_0x552d('0x58'))[_0x552d('0x4a')](_0x228111,'isEnabled',(..._0x45fda3)=>_0x45fda3[_0x552d('0xf')](_0x5d2d3c=>_0x5d2d3c)),_0x4cc578['on'](_0x552d('0x56'),_0x52c864=>{this[_0x552d('0x13')][_0x552d('0x56')](_0x52c864[_0x552d('0x1b')][_0x552d('0x5e')]),this[_0x552d('0x13')][_0x552d('0x4')][_0x552d('0x62')][_0x552d('0x59')]();}),_0x4cc578;}['_initializeController'](_0x4c0cf0){const _0x57e273=this[_0x552d('0x13')],_0x418cc7=_0x57e273['config'],_0x2c3c83=_0x57e273[_0x552d('0x50')]['get'](_0x552d('0x64')),_0x3e86ac=_0x57e273[_0x552d('0x50')]['get'](_0x552d('0xc')),_0x241e55=_0x57e273[_0x552d('0x50')][_0x552d('0xa')](_0x552d('0x3e')),_0x22941b=_0x57e273[_0x552d('0x50')][_0x552d('0xa')](_0x20bd8a)['me'],_0x1e99d1=_0x418cc7[_0x552d('0xa')](_0x552d('0x11'))[_0x552d('0x4b')],{CommentsListView:_0x393bd7,CommentThreadInputView:_0x5590fd}=_0x57e273[_0x552d('0x50')][_0x552d('0xa')](_0x552d('0x20'));let _0x5049f0,_0x1c5afc;this[_0x552d('0x8')][_0x552d('0x1')](_0x4c0cf0['id'])?(_0x1c5afc=this[_0x552d('0x8')][_0x552d('0xa')](_0x4c0cf0['id']),_0x5049f0=_0x1c5afc[_0x552d('0x2f')]):(_0x5049f0=new _0x1e99d1(_0x57e273[_0x552d('0x21')],_0x4c0cf0,_0x22941b,{'disableComments':this['_disableComments'],'editorConfig':_0x418cc7['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x418cc7[_0x552d('0xa')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x418cc7[_0x552d('0xa')](_0x552d('0x2d')),'maxCommentCharsWhenCollapsed':_0x418cc7['get'](_0x552d('0x43')),'formatDateTime':_0x4f1434(_0x418cc7['get'](_0x552d('0x21'))),'CommentView':_0x418cc7[_0x552d('0xa')](_0x552d('0x18'))['CommentView'],'CommentsListView':_0x393bd7,'CommentThreadInputView':_0x5590fd}),_0x5049f0[_0x552d('0xd')]['on'](_0x552d('0x56'),()=>{_0x57e273[_0x552d('0x4')][_0x552d('0x62')][_0x552d('0x59')]();}),_0x5049f0[_0x552d('0x9')]['on'](_0x552d('0x56'),()=>{_0x57e273[_0x552d('0x4')][_0x552d('0x62')][_0x552d('0x59')]();}),_0x1c5afc=_0x2c3c83[_0x552d('0x2e')](this['editor'][_0x552d('0x21')],_0x5049f0),_0x1c5afc[_0x552d('0x42')](_0x552d('0x38'))['to'](_0x5049f0,_0x552d('0x38')),_0x1c5afc[_0x552d('0x42')](_0x552d('0x16'))['to'](_0x5049f0),_0x1c5afc[_0x552d('0x42')](_0x552d('0x6d'))['to'](_0x5049f0,_0x552d('0x6d'),_0x4c75aa=>'suggestion-'+_0x4c75aa),this[_0x552d('0x8')][_0x552d('0x66')](_0x4c0cf0['id'],_0x1c5afc));const _0x1782bc=_0x3e86ac[_0x552d('0x47')](_0x4c0cf0['commentThread'],_0x5049f0),_0x1bef0a=new _0x1b43da(_0x57e273,_0x4c0cf0,_0x5049f0,_0x1782bc),_0x816a8b=_0x4c0cf0[_0x552d('0x1a')]()[_0x552d('0x49')](_0x2dc99e=>_0x2dc99e[_0x552d('0x2a')]);_0x5049f0[_0x552d('0x22')]=_0x57e273[_0x552d('0x50')]['get'](_0x552d('0x3c'))[_0x552d('0x45')][_0x552d('0x6b')](_0x816a8b),this[_0x552d('0x5b')][_0x552d('0x66')](_0x4c0cf0,_0x1bef0a),this[_0x552d('0x54')][_0x552d('0x66')](_0x5049f0,_0x1bef0a);const _0x3f7243=_0x2c3c83[_0x552d('0x52')]({'view':_0x1c5afc,'target':()=>{const _0x1d0cf9=[],_0x345303=_0x4c0cf0[_0x552d('0x1a')]()[_0x552d('0x49')](_0x1ea391=>_0x1ea391['isInContent']);for(const _0x17c104 of _0x345303)_0x1d0cf9[_0x552d('0x5a')](..._0x17c104['getMarkers']());return _0x53fc25(_0x57e273[_0x552d('0x4')],_0x1d0cf9);},'type':()=>_0x552d('0x1f')+_0x1bef0a[_0x552d('0x62')][_0x552d('0x6d')]});_0x3e86ac[_0x552d('0x1c')](_0x5049f0,_0x3f7243),_0x2c3c83['add'](_0x3f7243),_0x241e55[_0x552d('0x4e')](_0x3f7243);}[_0x552d('0x5d')](_0x30404d){const _0x1e7ace=this[_0x552d('0x13')][_0x552d('0x50')]['get']('CommentsRepository'),_0x2a8db3=this[_0x552d('0x13')][_0x552d('0x50')][_0x552d('0xa')]('Annotations'),_0x2daff1=this[_0x552d('0x5b')]['get'](_0x30404d),_0x5b0ea2=_0x2daff1[_0x552d('0x62')],_0x15db56=_0x2a8db3[_0x552d('0x28')](_0x5b0ea2);_0x1e7ace['_unbindEditors'](_0x5b0ea2),_0x15db56&&_0x2a8db3['remove'](_0x15db56),this[_0x552d('0x5b')][_0x552d('0x65')](_0x30404d),this[_0x552d('0x54')][_0x552d('0x65')](_0x5b0ea2),_0x2daff1[_0x552d('0x19')]();}['_updateController'](_0x293622){if(!_0x293622[_0x552d('0x2a')]||!this[_0x552d('0x5b')][_0x552d('0x1')](_0x293622))return;const _0x472bca=this[_0x552d('0x13')][_0x552d('0x50')]['get'](_0x552d('0x3c')),_0x1a39ef=this['_suggestionToController'][_0x552d('0xa')](_0x293622),_0xcdd839=_0x293622[_0x552d('0x1a')]();_0x1a39ef[_0x552d('0x62')][_0x552d('0x22')]=_0x472bca[_0x552d('0x45')][_0x552d('0x6b')](_0xcdd839);}[_0x552d('0x19')](){for(const _0x184045 of this[_0x552d('0x5b')][_0x552d('0x2')]())this[_0x552d('0x5d')](_0x184045);for(const _0x88a299 of this['_annotationViews'][_0x552d('0x3d')]())_0x88a299[_0x552d('0x2f')][_0x552d('0x19')]();super[_0x552d('0x19')]();}}
23
+ const _0x22dc=['getFirstRange','head','discardAllSuggestions','comments.maxThreadTotalWeight','arrowView','getByInnerView','unbind','discardSelectedSuggestions','mainView','type','requires','getJoined','delete','getMarkers','change:previous','commandName','get','plugins','getRanges','define','_disableComments','Annotations','comments.editorConfig','actionView','filter','model','getDescriptions','isDirty','config','toMany','discardButton','getAllAdjacentSuggestions','separator','suggestion-','Discard\x20all\x20suggestions','Accept\x20all\x20selected\x20suggestions','editor','_refreshActiveMarkers','activeMarkers','getMarkerNames','isInContent','componentFactory','_updateController','createAnnotationView','comments','registerAnnotation','TrackChangesUI','pluginName','trackChanges.disableComments','keys','set','acceptSelectedSuggestions','isEnabled','value','suggestionLoaded','_viewToController','length','map','destroy','execute','commands','locale','suggestionChanged','_suggestionToController','descriptionParts','suggestionUnloaded','add','change:activeAnnotations','init','buttonView','button','getSuggestion','comments.maxCommentsWhenCollapsed','trackChanges','CommentsUI','_descriptionFactory','isOn','push','isMultiRange','editing','EditorAnnotations','has','bind','_handleControllerBuffer','activeAnnotations','values','_annotationViews','Discard\x20all\x20selected\x20suggestions','_initializeController','createAnnotation','trackChanges.SuggestionThreadView','from','CommentsRepository','_destroyController','_createUIButton','acceptAllSuggestions','switchbutton','hasSuggestion','view','focus','_handleSuggestionControllerDelayed','_bindAnnotationToEditors','refreshSelectedViews','listenTo','acceptButton','TrackChangesEditing'];(function(_0x4ed4e6,_0x22dccf){const _0x1bf2df=function(_0xc81551){while(--_0xc81551){_0x4ed4e6['push'](_0x4ed4e6['shift']());}};_0x1bf2df(++_0x22dccf);}(_0x22dc,0x1af));const _0x1bf2=function(_0x4ed4e6,_0x22dccf){_0x4ed4e6=_0x4ed4e6-0x0;let _0x1bf2df=_0x22dc[_0x4ed4e6];return _0x1bf2df;};import{Plugin as _0x13fb3f}from'ckeditor5/src/core';import{Collection as _0x560ff0}from'ckeditor5/src/utils';import{Model as _0x4066b4,SplitButtonView as _0x510326,createDropdown as _0x597b09,addListToDropdown as _0x515693}from'ckeditor5/src/ui';import{Users as _0x4e535a,getDateTimeFormatter as _0x5a62b6,getAllMarkersDomElementsSorted as _0x5836f0}from'ckeditor5-collaboration/src/collaboration-core';import _0x20ffff from'./trackchangesediting';import _0x481371 from'./ui/suggestioncontroller';import _0x1463d8 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5d7f02}from'./utils/common-translations';import _0x495d16 from'../theme/icons/track-changes.svg';export default class d extends _0x13fb3f{static get[_0x1bf2('0x3')](){return[_0x20ffff,_0x4e535a,_0x1bf2('0x55'),_0x1bf2('0xe'),'EditorAnnotations'];}static get[_0x1bf2('0x28')](){return _0x1bf2('0x27');}constructor(_0x2491c2){super(_0x2491c2),this[_0x1bf2('0x38')]=new Map(),this[_0x1bf2('0x30')]=new Map(),this[_0x1bf2('0x4f')]=new Map(),this[_0x1bf2('0x4c')]=new Map();const _0x5118bd=this['editor'][_0x1bf2('0x15')];_0x5118bd[_0x1bf2('0xc')](_0x1bf2('0x53'),_0x1463d8),_0x5118bd['define'](_0x1bf2('0x29'),!0x1),this[_0x1bf2('0xd')]=_0x5118bd['get'](_0x1bf2('0x29'));}[_0x1bf2('0x5d')](_0x4878e7,_0x2fb494){0x0===this[_0x1bf2('0x4c')]['size']&&setTimeout(()=>{for(const [_0x4206c1,_0x499c57]of this[_0x1bf2('0x4c')]){const _0x1a5751=this[_0x1bf2('0x38')][_0x1bf2('0x4a')](_0x4206c1);_0x1a5751||_0x499c57?_0x1a5751&&_0x499c57&&this[_0x1bf2('0x56')](_0x4206c1):this[_0x1bf2('0x51')](_0x4206c1);}this[_0x1bf2('0x1d')][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x49'))[_0x1bf2('0x5f')](),this[_0x1bf2('0x1e')](),this['_handleControllerBuffer']['clear']();},0xa),this[_0x1bf2('0x4c')][_0x1bf2('0x2b')](_0x4878e7,_0x2fb494);}[_0x1bf2('0x3d')](){const _0x1fc399=this[_0x1bf2('0x1d')],_0x32919e=_0x1fc399[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x62')),_0xde9755=_0x1fc399[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x2518a=_0x1fc399[_0x1bf2('0xa')]['get'](_0x1bf2('0x49')),_0x5367c7=_0x1fc399[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x55'));_0x1fc399['ui'][_0x1bf2('0x22')][_0x1bf2('0x3b')](_0x1bf2('0x42'),_0x4299d7=>this[_0x1bf2('0x57')](_0x4299d7)),_0x2518a['addSourceCollector'](()=>{const _0x55d6db=[];for(const [_0x3df784,_0x23f869]of Array['from'](this[_0x1bf2('0x38')])){const _0x1e48a8=_0x3df784[_0x1bf2('0x18')](),_0x568b64=[];for(const _0x38832a of _0x1e48a8){if(!_0x38832a[_0x1bf2('0x21')])continue;if(_0x38832a[_0x1bf2('0x47')]){_0x568b64[_0x1bf2('0x46')](..._0x38832a[_0x1bf2('0xb')]());continue;}const _0x49767e=_0x38832a[_0x1bf2('0x63')]();if(_0x568b64[_0x1bf2('0x31')]>0x0){const _0x483a82=_0x568b64[0x0][_0x1bf2('0x4')](_0x49767e);if(_0x483a82){_0x568b64[0x0]=_0x483a82;continue;}}_0x568b64[_0x1bf2('0x46')](_0x49767e);}_0x55d6db['push']([_0x23f869[_0x1bf2('0x5b')],_0x568b64]);}return _0x55d6db;}),this['listenTo'](_0x32919e,_0x1bf2('0x2f'),(_0x3fcebe,_0x44d869)=>{this[_0x1bf2('0x60')](_0x44d869,_0x1bf2('0x7'),(_0x36ed69,_0x405f83,_0xb1589e,_0x2149c8)=>{_0x44d869['isInContent']&&(null==_0xb1589e?(this[_0x1bf2('0x23')](_0x2149c8[_0x1bf2('0x64')]),this[_0x1bf2('0x5d')](_0x44d869,!0x1)):(this[_0x1bf2('0x23')](_0xb1589e[_0x1bf2('0x64')]),this[_0x1bf2('0x5d')](_0x44d869,!0x0)));}),null===_0x44d869['previous']?this[_0x1bf2('0x5d')](_0x44d869,!0x1):this[_0x1bf2('0x23')](_0x44d869[_0x1bf2('0x64')]);}),this[_0x1bf2('0x60')](_0x32919e,_0x1bf2('0x3a'),(_0x55e1ee,_0x47f770,_0x320492)=>{this['stopListening'](_0x47f770,'change:previous'),this[_0x1bf2('0x4c')][_0x1bf2('0x5')](_0x47f770);const _0x23a7de=_0x320492?_0x320492['head']:_0x47f770,_0x4aca5a=this[_0x1bf2('0x38')][_0x1bf2('0x9')](_0x23a7de);null!==_0x320492&&this['_updateController'](_0x23a7de),null===_0x320492&&_0x4aca5a&&this[_0x1bf2('0x56')](_0x47f770);}),this[_0x1bf2('0x60')](_0x32919e,_0x1bf2('0x37'),(_0x57d058,_0x228041)=>{this[_0x1bf2('0x23')](_0x228041);}),this[_0x1bf2('0x60')](_0xde9755,_0x1bf2('0x3c'),()=>{this[_0x1bf2('0x1e')]();}),this[_0x1bf2('0x60')](_0x5367c7,'addComment',(_0x12c212,{threadId:_0x204158,isFromAdapter:_0x350997})=>{if(_0x350997||!_0x32919e[_0x1bf2('0x5a')](_0x204158))return;const _0x1a7e69=_0x32919e[_0x1bf2('0x40')](_0x204158);this[_0x1bf2('0x38')]['get'](_0x1a7e69)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x591809=this[_0x1bf2('0x1d')][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x1f15ea=this['editor']['plugins']['get'](_0x1bf2('0x62')),_0x28fd6b=Array[_0x1bf2('0x54')](_0x591809[_0x1bf2('0x4d')],_0x5a29ab=>_0x5a29ab['innerView'])['filter'](_0x5f08d2=>this[_0x1bf2('0x30')][_0x1bf2('0x4a')](_0x5f08d2)),_0x20acca=[];for(const _0x2e458a of _0x28fd6b){const _0x58d53c=this['_viewToController']['get'](_0x2e458a)['model']['getAllAdjacentSuggestions']();_0x20acca[_0x1bf2('0x46')](..._0x58d53c['reduce']((_0x20f53a,_0x3355f7)=>[..._0x20f53a,..._0x3355f7[_0x1bf2('0x20')]()],[]));}_0x1f15ea[_0x1bf2('0x1f')]=_0x20acca;}[_0x1bf2('0x57')](_0x3bd2b5){const _0x5b9824=_0x597b09(_0x3bd2b5,_0x510326),_0x4673a7=this[_0x1bf2('0x1d')]['commands'][_0x1bf2('0x9')](_0x1bf2('0x42')),_0x158463=_0x5d7f02(_0x3bd2b5,'Track\x20changes');_0x5b9824['buttonView'][_0x1bf2('0x2b')]({'tooltip':_0x158463,'label':_0x158463,'icon':_0x495d16}),_0x5b9824['buttonView']['bind'](_0x1bf2('0x45'))['to'](_0x4673a7,'value'),_0x5b9824['buttonView']['on'](_0x1bf2('0x34'),()=>{_0x4673a7[_0x1bf2('0x34')](),this[_0x1bf2('0x1d')]['editing']['view'][_0x1bf2('0x5c')]();});const _0x5c4d20=new _0x560ff0(),_0x2cad12=[{'type':_0x1bf2('0x59'),'model':{'withText':!0x0,'label':_0x158463,'commandName':'trackChanges'}},{'type':_0x1bf2('0x19')},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,'Accept\x20all\x20suggestions'),'commandName':_0x1bf2('0x58')}},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,_0x1bf2('0x1c')),'commandName':_0x1bf2('0x2c')}},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,_0x1bf2('0x1b')),'commandName':_0x1bf2('0x65')}},{'type':_0x1bf2('0x3f'),'model':{'withText':!0x0,'label':_0x5d7f02(_0x3bd2b5,_0x1bf2('0x50')),'commandName':_0x1bf2('0x0')}}];for(const _0x22d761 of _0x2cad12){let _0x1d0434={'type':_0x1bf2('0x19')};if(_0x22d761[_0x1bf2('0x12')]){const _0x1e7cdc=new _0x4066b4(_0x22d761[_0x1bf2('0x12')]),_0x15892b=this[_0x1bf2('0x1d')][_0x1bf2('0x35')]['get'](_0x1e7cdc[_0x1bf2('0x8')]);_0x1e7cdc[_0x1bf2('0x4b')]('isOn',_0x1bf2('0x2d'))['to'](_0x15892b,_0x1bf2('0x2e'),'isEnabled'),_0x1d0434={'type':_0x22d761[_0x1bf2('0x2')],'model':_0x1e7cdc};}_0x5c4d20['add'](_0x1d0434);}_0x515693(_0x5b9824,_0x5c4d20);const _0x411fc1=_0x2cad12[_0x1bf2('0x11')](_0x333883=>null!=_0x333883[_0x1bf2('0x12')])[_0x1bf2('0x32')](_0x38416a=>this[_0x1bf2('0x1d')]['commands'][_0x1bf2('0x9')](_0x38416a[_0x1bf2('0x12')][_0x1bf2('0x8')])),_0x15dc8e=_0x5b9824[_0x1bf2('0x3e')];return _0x15dc8e[_0x1bf2('0x10')][_0x1bf2('0x69')](_0x1bf2('0x2d')),_0x15dc8e['arrowView'][_0x1bf2('0x69')](_0x1bf2('0x2d')),_0x15dc8e[_0x1bf2('0x10')][_0x1bf2('0x4b')](_0x1bf2('0x2d'))['to'](_0x4673a7,_0x1bf2('0x2d')),_0x15dc8e[_0x1bf2('0x67')][_0x1bf2('0x4b')](_0x1bf2('0x2d'))[_0x1bf2('0x16')](_0x411fc1,'isEnabled',(..._0x4c616d)=>_0x4c616d['some'](_0x1bd548=>_0x1bd548)),_0x5b9824['on'](_0x1bf2('0x34'),_0x5807ed=>{this[_0x1bf2('0x1d')][_0x1bf2('0x34')](_0x5807ed['source'][_0x1bf2('0x8')]),this[_0x1bf2('0x1d')]['editing'][_0x1bf2('0x5b')]['focus']();}),_0x5b9824;}['_initializeController'](_0x1ebe9b){const _0xf7e106=this['editor'],_0x21e9a7=_0xf7e106[_0x1bf2('0x15')],_0x160f09=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x377d90=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x55')),_0x16cef7=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')]('EditorAnnotations'),_0x1c2197=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x4e535a)['me'],_0x5ad791=_0x21e9a7['get'](_0x1bf2('0x42'))['SuggestionThreadView'],{CommentsListView:_0x54a17e,CommentThreadInputView:_0x523bd4}=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x43'));let _0x415d0a,_0xc524cb;this[_0x1bf2('0x4f')][_0x1bf2('0x4a')](_0x1ebe9b['id'])?(_0xc524cb=this[_0x1bf2('0x4f')][_0x1bf2('0x9')](_0x1ebe9b['id']),_0x415d0a=_0xc524cb[_0x1bf2('0x1')]):(_0x415d0a=new _0x5ad791(_0xf7e106[_0x1bf2('0x36')],_0x1ebe9b,_0x1c2197,{'disableComments':this['_disableComments'],'editorConfig':_0x21e9a7['get'](_0x1bf2('0xf')),'maxCommentsWhenCollapsed':_0x21e9a7['get'](_0x1bf2('0x41')),'maxThreadTotalWeight':_0x21e9a7['get'](_0x1bf2('0x66')),'maxCommentCharsWhenCollapsed':_0x21e9a7[_0x1bf2('0x9')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a62b6(_0x21e9a7[_0x1bf2('0x9')](_0x1bf2('0x36'))),'CommentView':_0x21e9a7[_0x1bf2('0x9')](_0x1bf2('0x25'))['CommentView'],'CommentsListView':_0x54a17e,'CommentThreadInputView':_0x523bd4}),_0x415d0a[_0x1bf2('0x61')]['on'](_0x1bf2('0x34'),()=>{_0xf7e106[_0x1bf2('0x48')][_0x1bf2('0x5b')]['focus']();}),_0x415d0a[_0x1bf2('0x17')]['on'](_0x1bf2('0x34'),()=>{_0xf7e106['editing'][_0x1bf2('0x5b')]['focus']();}),_0xc524cb=_0x160f09[_0x1bf2('0x24')](this[_0x1bf2('0x1d')]['locale'],_0x415d0a),_0xc524cb['bind'](_0x1bf2('0x14'))['to'](_0x415d0a,'isDirty'),_0xc524cb[_0x1bf2('0x4b')](_0x1bf2('0x31'))['to'](_0x415d0a),_0xc524cb[_0x1bf2('0x4b')](_0x1bf2('0x2'))['to'](_0x415d0a,_0x1bf2('0x2'),_0x46125b=>'suggestion-'+_0x46125b),this[_0x1bf2('0x4f')][_0x1bf2('0x2b')](_0x1ebe9b['id'],_0xc524cb));const _0x35d602=_0x377d90['createCommentThreadController'](_0x1ebe9b['commentThread'],_0x415d0a),_0x3b0b9a=new _0x481371(_0xf7e106,_0x1ebe9b,_0x415d0a,_0x35d602),_0x297ab7=_0x1ebe9b[_0x1bf2('0x18')]()[_0x1bf2('0x11')](_0x1b6fd7=>_0x1b6fd7['isInContent']);_0x415d0a['descriptionParts']=_0xf7e106[_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x62'))['_descriptionFactory'][_0x1bf2('0x13')](_0x297ab7),this[_0x1bf2('0x38')][_0x1bf2('0x2b')](_0x1ebe9b,_0x3b0b9a),this[_0x1bf2('0x30')][_0x1bf2('0x2b')](_0x415d0a,_0x3b0b9a);const _0x21af08=_0x160f09[_0x1bf2('0x52')]({'view':_0xc524cb,'target':()=>{const _0x45fb03=[],_0x3d1310=_0x1ebe9b[_0x1bf2('0x18')]()['filter'](_0x2af3cd=>_0x2af3cd[_0x1bf2('0x21')]);for(const _0x268b99 of _0x3d1310)_0x45fb03[_0x1bf2('0x46')](..._0x268b99[_0x1bf2('0x6')]());return _0x5836f0(_0xf7e106[_0x1bf2('0x48')],_0x45fb03);},'type':()=>_0x1bf2('0x1a')+_0x3b0b9a['view'][_0x1bf2('0x2')]});_0x377d90[_0x1bf2('0x5e')](_0x415d0a,_0x21af08),_0x160f09[_0x1bf2('0x3b')](_0x21af08),_0x16cef7[_0x1bf2('0x26')](_0x21af08);}[_0x1bf2('0x56')](_0x4ec096){const _0x2aa327=this['editor'][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0x55')),_0x324ade=this['editor'][_0x1bf2('0xa')][_0x1bf2('0x9')](_0x1bf2('0xe')),_0x19c833=this[_0x1bf2('0x38')][_0x1bf2('0x9')](_0x4ec096),_0x5da0d7=_0x19c833[_0x1bf2('0x5b')],_0x555926=_0x324ade[_0x1bf2('0x68')](_0x5da0d7);_0x2aa327['_unbindEditors'](_0x5da0d7),_0x555926&&_0x324ade['remove'](_0x555926),this[_0x1bf2('0x38')]['delete'](_0x4ec096),this['_viewToController']['delete'](_0x5da0d7),_0x19c833[_0x1bf2('0x33')]();}[_0x1bf2('0x23')](_0x10bb7c){if(!_0x10bb7c[_0x1bf2('0x21')]||!this[_0x1bf2('0x38')]['has'](_0x10bb7c))return;const _0x38dac5=this[_0x1bf2('0x1d')][_0x1bf2('0xa')][_0x1bf2('0x9')]('TrackChangesEditing'),_0x488250=this[_0x1bf2('0x38')][_0x1bf2('0x9')](_0x10bb7c),_0x49d4e5=_0x10bb7c['getAllAdjacentSuggestions']();_0x488250[_0x1bf2('0x5b')][_0x1bf2('0x39')]=_0x38dac5[_0x1bf2('0x44')]['getDescriptions'](_0x49d4e5);}[_0x1bf2('0x33')](){for(const _0x52ea54 of this[_0x1bf2('0x38')][_0x1bf2('0x2a')]())this['_destroyController'](_0x52ea54);for(const _0x47563a of this[_0x1bf2('0x4f')][_0x1bf2('0x4e')]())_0x47563a[_0x1bf2('0x1')][_0x1bf2('0x33')]();super[_0x1bf2('0x33')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe546=['acceptSuggestion','discardSuggestion','view','destroy','unbind','_acceptCommand','isDirty','PendingActions','listenTo','model','add','_removePendingAction','_discardCommand','bind','execute','_editor','commentThreadController','_setPendingAction','canDiscard','commands','get','stopListening','locale','plugins','change:isDirty','getRanges','remove','canAccept','_pendingAction','isEnabled'];(function(_0x1fbd5f,_0xe54698){const _0x1c6888=function(_0x279cbf){while(--_0x279cbf){_0x1fbd5f['push'](_0x1fbd5f['shift']());}};_0x1c6888(++_0xe54698);}(_0xe546,0xe9));const _0x1c68=function(_0x1fbd5f,_0xe54698){_0x1fbd5f=_0x1fbd5f-0x0;let _0x1c6888=_0xe546[_0x1fbd5f];return _0x1c6888;};import{ObservableMixin as _0x56ee00}from'ckeditor5/src/utils';import{getTranslation as _0x12fcb0}from'../utils/common-translations';export default class Gt extends _0x56ee00(){constructor(_0x1e6b36,_0x35b3d7,_0x53b8e1,_0x284835){super(),this[_0x1c68('0x10')]=_0x35b3d7,this[_0x1c68('0x9')]=_0x53b8e1,this[_0x1c68('0x17')]=_0x284835,this[_0x1c68('0x16')]=_0x1e6b36,this['_acceptCommand']=_0x1e6b36[_0x1c68('0x1a')][_0x1c68('0x1b')](_0x1c68('0x7')),this[_0x1c68('0x13')]=_0x1e6b36['commands']['get'](_0x1c68('0x8')),this['view'][_0x1c68('0x14')]('isEnabled')['to'](this[_0x1c68('0xc')],this[_0x1c68('0x13')],(_0x1b3a25,_0x402d28)=>_0x1b3a25||_0x402d28),this[_0x1c68('0x9')]['bind']('canAccept')['to'](this['_acceptCommand'],_0x1c68('0x6'),_0x14f5e8=>_0x14f5e8&&this[_0x1c68('0x16')][_0x1c68('0x10')]['canEditAt'](_0x35b3d7[_0x1c68('0x2')]())),this[_0x1c68('0x9')][_0x1c68('0x14')](_0x1c68('0x19'))['to'](this['_discardCommand'],_0x1c68('0x6'),_0x2b9e58=>_0x2b9e58&&this[_0x1c68('0x16')][_0x1c68('0x10')]['canEditAt'](_0x35b3d7[_0x1c68('0x2')]())),this[_0x1c68('0x5')]=null,_0x53b8e1[_0x1c68('0xd')]&&this['_setPendingAction'](),this['listenTo'](_0x53b8e1,'acceptSuggestion',()=>this[_0x1c68('0x7')]()),this[_0x1c68('0xf')](_0x53b8e1,'discardSuggestion',()=>this[_0x1c68('0x8')]()),this[_0x1c68('0xf')](_0x53b8e1,_0x1c68('0x1'),()=>{_0x53b8e1[_0x1c68('0xd')]?this[_0x1c68('0x18')]():this['_removePendingAction']();});}[_0x1c68('0x7')](){this['_acceptCommand']['execute'](this[_0x1c68('0x10')]['id']);}['discardSuggestion'](){this[_0x1c68('0x13')][_0x1c68('0x15')](this[_0x1c68('0x10')]['id']);}[_0x1c68('0xa')](){this[_0x1c68('0x9')][_0x1c68('0xb')]('isEnabled'),this['view'][_0x1c68('0xb')](_0x1c68('0x4')),this[_0x1c68('0x9')][_0x1c68('0xb')]('canDiscard'),this[_0x1c68('0x1c')](),this[_0x1c68('0x17')]['destroy'](),this['_pendingAction']&&this[_0x1c68('0x12')]();}[_0x1c68('0x18')](){const _0x267d37=_0x12fcb0(this[_0x1c68('0x16')][_0x1c68('0x1d')],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor'][_0x1c68('0x0')][_0x1c68('0x1b')](_0x1c68('0xe'))[_0x1c68('0x11')](_0x267d37);}[_0x1c68('0x12')](){null!==this[_0x1c68('0x5')]&&this[_0x1c68('0x16')]['plugins']['get']('PendingActions')[_0x1c68('0x3')](this['_pendingAction']),this[_0x1c68('0x5')]=null;}}
23
+ const _0x1249=['acceptSuggestion','model','destroy','_pendingAction','commands','add','listenTo','_acceptCommand','_discardCommand','isDirty','_removePendingAction','get','_setPendingAction','commentThreadController','stopListening','PendingActions','_editor','canEditAt','view','plugins','execute','getRanges','isEnabled','bind','PENDING_ACTION_SUGGESTION','locale','unbind','discardSuggestion','canAccept'];(function(_0x3fca02,_0x12495c){const _0x40008b=function(_0x39f339){while(--_0x39f339){_0x3fca02['push'](_0x3fca02['shift']());}};_0x40008b(++_0x12495c);}(_0x1249,0x170));const _0x4000=function(_0x3fca02,_0x12495c){_0x3fca02=_0x3fca02-0x0;let _0x40008b=_0x1249[_0x3fca02];return _0x40008b;};import{ObservableMixin as _0x1f9482}from'ckeditor5/src/utils';import{getTranslation as _0x121b72}from'../utils/common-translations';export default class Gt extends _0x1f9482(){constructor(_0x4d211d,_0x23b831,_0x245700,_0x4372c7){super(),this['model']=_0x23b831,this[_0x4000('0x1b')]=_0x245700,this[_0x4000('0x16')]=_0x4372c7,this[_0x4000('0x19')]=_0x4d211d,this[_0x4000('0x10')]=_0x4d211d[_0x4000('0xd')][_0x4000('0x14')](_0x4000('0x9')),this['_discardCommand']=_0x4d211d['commands'][_0x4000('0x14')]('discardSuggestion'),this[_0x4000('0x1b')][_0x4000('0x3')]('isEnabled')['to'](this['_acceptCommand'],this[_0x4000('0x11')],(_0x31d1d9,_0x15ccda)=>_0x31d1d9||_0x15ccda),this[_0x4000('0x1b')]['bind'](_0x4000('0x8'))['to'](this[_0x4000('0x10')],_0x4000('0x2'),_0x33404c=>_0x33404c&&this[_0x4000('0x19')][_0x4000('0xa')][_0x4000('0x1a')](_0x23b831[_0x4000('0x1')]())),this[_0x4000('0x1b')][_0x4000('0x3')]('canDiscard')['to'](this[_0x4000('0x11')],_0x4000('0x2'),_0x18024c=>_0x18024c&&this[_0x4000('0x19')]['model']['canEditAt'](_0x23b831[_0x4000('0x1')]())),this[_0x4000('0xc')]=null,_0x245700[_0x4000('0x12')]&&this[_0x4000('0x15')](),this['listenTo'](_0x245700,_0x4000('0x9'),()=>this[_0x4000('0x9')]()),this[_0x4000('0xf')](_0x245700,'discardSuggestion',()=>this[_0x4000('0x7')]()),this[_0x4000('0xf')](_0x245700,'change:isDirty',()=>{_0x245700[_0x4000('0x12')]?this['_setPendingAction']():this[_0x4000('0x13')]();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this[_0x4000('0xa')]['id']);}[_0x4000('0x7')](){this['_discardCommand'][_0x4000('0x0')](this[_0x4000('0xa')]['id']);}[_0x4000('0xb')](){this[_0x4000('0x1b')][_0x4000('0x6')](_0x4000('0x2')),this[_0x4000('0x1b')][_0x4000('0x6')](_0x4000('0x8')),this['view']['unbind']('canDiscard'),this[_0x4000('0x17')](),this['commentThreadController'][_0x4000('0xb')](),this[_0x4000('0xc')]&&this[_0x4000('0x13')]();}['_setPendingAction'](){const _0x20f8e9=_0x121b72(this[_0x4000('0x19')][_0x4000('0x5')],_0x4000('0x4'));this[_0x4000('0xc')]=this[_0x4000('0x19')]['plugins']['get'](_0x4000('0x18'))[_0x4000('0xe')](_0x20f8e9);}[_0x4000('0x13')](){null!==this['_pendingAction']&&this[_0x4000('0x19')][_0x4000('0x1c')][_0x4000('0x14')](_0x4000('0x18'))['remove'](this['_pendingAction']),this[_0x4000('0xc')]=null;}}